(function(){var f,aa=aa||{},m=this;function n(a){return void 0!==a}function q(a,b,c){a=a.split(".");c=c||m;a[0]in c||!c.execScript||c.execScript("var "+a[0]);for(var d;a.length&&(d=a.shift());)!a.length&&n(b)?c[d]=b:c[d]?c=c[d]:c=c[d]={}}function u(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 v(){}function ba(a){a.getInstance=function(){return a.Gb?a.Gb:a.Gb=new a}}
function ca(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 da(a){return null===a}function ea(a){return"array"==ca(a)}function fa(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function w(a){return"string"==typeof a}function ga(a){return"number"==typeof a}function ha(a){return"function"==ca(a)}function ja(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ka(a){return a[la]||(a[la]=++ma)}
var la="closure_uid_"+(1E9*Math.random()>>>0),ma=0;function na(a,b,c){return a.call.apply(a.bind,arguments)}function oa(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 x(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?na:oa;return x.apply(null,arguments)}function pa(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 qa(a,b){for(var c in b)a[c]=b[c]}var y=Date.now||function(){return+new Date};
function z(a,b){function c(){}c.prototype=b.prototype;a.K=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.base=function(a,c,g){for(var h=Array(arguments.length-2),k=2;k<arguments.length;k++)h[k-2]=arguments[k];return b.prototype[c].apply(a,h)}}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 x.apply(null,c)}return x(this,a)};function ra(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ra);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}z(ra,Error);ra.prototype.name="CustomError";var sa;function ta(a,b){return 0==a.lastIndexOf(b,0)}function ua(a,b){var c=a.length-b.length;return 0<=c&&a.indexOf(b,c)==c}function A(a){return/^[\s\xa0]*$/.test(a)}var va=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function wa(a){return encodeURIComponent(String(a))}function xa(a){return decodeURIComponent(a.replace(/\+/g," "))}
function ya(a){if(!za.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Aa,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ca,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Da,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ea,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Fa,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ga,"&#0;"));return a}var Aa=/&/g,Ca=/</g,Da=/>/g,Ea=/"/g,Fa=/'/g,Ga=/\x00/g,za=/[\x00&<>"']/;function Ha(a){return-1!=a.indexOf("&")?"document"in m?Ia(a):Ja(a):a}
function Ia(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Ka,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 Ja(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 Ka=/&([^;\s<&]+);?/g;function La(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a}function Ma(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}
function Na(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Oa(a,b){return Array(b+1).join(a)}function Pa(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Oa("0",Math.max(0,2-b))+a}function B(a){return null==a?"":String(a)}function Qa(a){return Array.prototype.join.call(arguments,"")}
function Ra(a,b){for(var c=0,d=va(String(a)).split("."),e=va(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)||["","",""],C=r.exec(l)||["","",""];if(0==t[0].length&&0==C[0].length)break;c=Sa(0==t[1].length?0:parseInt(t[1],10),0==C[1].length?0:parseInt(C[1],10))||Sa(0==t[2].length,0==C[2].length)||Sa(t[2],C[2])}while(0==c)}return c}function Sa(a,b){return a<b?-1:a>b?1:0}
var Ta=2147483648*Math.random()|0;function Ua(){return"goog_"+Ta++}function Va(a){var b=Number(a);return 0==b&&A(a)?NaN:b}function Wa(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Xa(a){var b=w(void 0)?Na(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}function Ya(a){isFinite(a)&&(a=String(a));return w(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN}
function Za(a,b,c){a=a.split(b);for(var d=[];0<c&&a.length;)d.push(a.shift()),c--;a.length&&d.push(a.join(b));return d};function $a(){};function ab(a){return a[a.length-1]}
var bb=Array.prototype,cb=bb.indexOf?function(a,b,c){return bb.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(w(a))return w(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},db=bb.lastIndexOf?function(a,b,c){return bb.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(w(a))return w(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},D=bb.forEach?function(a,b,c){bb.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},eb=bb.filter?function(a,b,c){return bb.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=w(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},E=bb.map?function(a,b,c){return bb.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=w(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},fb=bb.reduce?function(a,b,c,d){d&&(b=x(b,d));return bb.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;D(a,function(c,h){e=b.call(d,e,c,h,a)});return e},gb=bb.some?function(a,b,c){return bb.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},hb=bb.every?function(a,b,c){return bb.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=w(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 F(a,b,c){b=ib(a,b,c);return 0>b?null:w(a)?a.charAt(b):a[b]}function ib(a,b,c){for(var d=a.length,e=w(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 jb(a,b){var c=kb(a,b,void 0);return 0>c?null:w(a)?a.charAt(c):a[c]}function kb(a,b,c){for(var d=w(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 G(a,b){return 0<=cb(a,b)}function lb(a){return 0==a.length}
function mb(a){if(!ea(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function nb(a,b){G(a,b)||a.push(b)}function ob(a,b){var c=cb(a,b),d;(d=0<=c)&&pb(a,c);return d}function pb(a,b){bb.splice.call(a,b,1)}function qb(a,b){var c=ib(a,b,void 0);0<=c&&pb(a,c)}function rb(a){return bb.concat.apply(bb,arguments)}function sb(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 tb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(fa(d)){var e=a.length||0,g=d.length||0;a.length=e+g;for(var h=0;h<g;h++)a[e+h]=d[h]}else a.push(d)}}function ub(a,b,c,d){bb.splice.apply(a,vb(arguments,1))}function vb(a,b,c){return 2>=arguments.length?bb.slice.call(a,b):bb.slice.call(a,b,c)}
function wb(a,b,c){b=b||a;c=c||function(){return ja(h)?"o"+ka(h):(typeof h).charAt(0)+h};for(var d={},e=0,g=0;g<a.length;){var h=a[g++],k=c(h);Object.prototype.hasOwnProperty.call(d,k)||(d[k]=!0,b[e++]=h)}b.length=e}function xb(a,b,c){c=c||yb;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 zb(a,b){a.sort(b||yb)}function Ab(a,b,c){var d=c||yb;zb(a,function(a,c){return d(b(a),b(c))})}function Bb(a,b){Ab(a,function(a){return a[b]},void 0)}
function Cb(a,b,c){if(!fa(a)||!fa(b)||a.length!=b.length)return!1;var d=a.length;c=c||Db;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function yb(a,b){return a>b?1:a<b?-1:0}function Db(a,b){return a===b}function Eb(a,b,c){c=xb(a,b,c);0>c&&ub(a,-(c+1),0,b)}function Fb(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}
function Gb(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ea(d))for(var e=0;e<d.length;e+=8192)for(var g=vb(d,e,e+8192),g=Gb.apply(null,g),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b};function Hb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Ib(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function Jb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Kb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Lb(a){var b=0,c;for(c in a)b++;return b}function Mb(a,b){return Nb(a,b)}function Ob(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Pb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function Qb(a,b){for(var c=fa(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);return a}function Nb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Rb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Sb(a){var b=Tb;return(a=Rb(b,a,void 0))&&b[a]}function Ub(a){for(var b in a)return!1;return!0}function Vb(a){for(var b in a)delete a[b]}function Wb(a,b){b in a&&delete a[b]}function Xb(a,b,c){return b in a?a[b]:c}
function Yb(a){var b={},c;for(c in a)b[c]=a[c];return b}function Zb(a){var b=ca(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=Zb(a[c]);return b}return a}var $b="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function ac(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<$b.length;g++)c=$b[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function bc(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return bc.apply(null,arguments[0]);if(b%2)throw Error("Uneven number of arguments");for(var c={},d=0;d<b;d+=2)c[arguments[d]]=arguments[d+1];return c}
function dc(a){var b=arguments.length;if(1==b&&ea(arguments[0]))return dc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var ec=dc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var fc=/<[^>]*>|&[^;]+;/g;function gc(a,b){return b?a.replace(fc,""):a}
var hc=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),ic=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),jc=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]"),kc=/^http:\/\/.*/,lc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,mc=
/\s+/,nc=/\d/;function oc(){this.j="";this.o=pc}oc.prototype.Pe=!0;oc.prototype.Ge=function(){return this.j};oc.prototype.toString=function(){return"Const{"+this.j+"}"};function qc(a){return a instanceof oc&&a.constructor===oc&&a.o===pc?a.j:"type_error:Const"}function rc(){var a=new oc;a.j="HTML that is escaped and sanitized server-side and passed through yt.net.ajax";return a}var pc={};function sc(){this.j="";this.o=tc}sc.prototype.Pe=!0;var tc={};sc.prototype.Ge=function(){return this.j};function uc(a){return a instanceof sc&&a.constructor===sc&&a.o===tc?a.j:"type_error:SafeStyle"}function vc(a){var b=new sc;b.j=a;return b}var wc=vc(""),xc=/^[-,."'%_!# a-zA-Z0-9]+$/;function yc(){this.j="";this.o=zc}yc.prototype.Pe=!0;yc.prototype.Ge=function(){return this.j};yc.prototype.bm=!0;yc.prototype.zf=function(){return 1};function Ac(a){return a instanceof yc&&a.constructor===yc&&a.o===zc?a.j:"type_error:SafeUrl"}var Bc=/^(?:(?:https?|mailto|ftp):|[^&:/?#]*(?:[/?#]|$))/i;function Cc(a){try{var b=encodeURI(a)}catch(c){return"about:invalid#zClosurez"}return b.replace(Dc,function(a){return Ec[a]})}
var Dc=/[()']|%5B|%5D|%25/g,Ec={"'":"%27","(":"%28",")":"%29","%5B":"[","%5D":"]","%25":"%"},zc={};function Fc(){this.j=Gc}Fc.prototype.Pe=!0;Fc.prototype.Ge=function(){return""};Fc.prototype.bm=!0;Fc.prototype.zf=function(){return 1};var Gc={};function Hc(){this.j="";this.A=Ic;this.o=null}Hc.prototype.bm=!0;Hc.prototype.zf=function(){return this.o};Hc.prototype.Pe=!0;Hc.prototype.Ge=function(){return this.j};function Jc(a){return a instanceof Hc&&a.constructor===Hc&&a.A===Ic?a.j:"type_error:SafeHtml"}var Kc=/^[a-zA-Z0-9-]+$/,Lc=dc("action","cite","data","formaction","href","manifest","poster","src"),Mc=dc("embed","iframe","link","object","script","style","template");
function Nc(a){function b(a){if(ea(a))D(a,b);else{var g;a instanceof Hc?g=a:(g=null,a.bm&&(g=a.zf()),a=ya(a.Pe?a.Ge():String(a)),g=Oc(a,g));d+=Jc(g);g=g.zf();0==c?c=g:0!=g&&c!=g&&(c=null)}}var c=0,d="";D(arguments,b);return Oc(d,c)}var Ic={};function Oc(a,b){var c=new Hc;c.j=a;c.o=b;return c}Oc("",0);function Pc(a,b,c){return Math.min(Math.max(a,b),c)};function Qc(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=Qc.prototype;f.clone=function(){return new Qc(this.x,this.y)};function Rc(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Sc(a,b){return new Qc(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=ga(b)?b:a;this.x*=a;this.y*=c;return this};function H(a,b){this.width=a;this.height=b}function Tc(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=H.prototype;f.clone=function(){return new H(this.width,this.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=ga(b)?b:a;this.width*=a;this.height*=c;return this};var Uc;i:{var Vc=m.navigator;if(Vc){var Wc=Vc.userAgent;if(Wc){Uc=Wc;break i}}Uc=""}function Xc(a){return-1!=Uc.indexOf(a)};function Yc(){return Xc("Opera")||Xc("OPR")}function Zc(){return Xc("Edge")||Xc("Trident")||Xc("MSIE")}function $c(){return(Xc("Chrome")||Xc("CriOS"))&&!Yc()&&!Zc()};function ad(){return Xc("Edge")};function bd(){return Xc("iPhone")&&!Xc("iPod")&&!Xc("iPad")};var cd=Yc(),dd=Zc(),ed=Xc("Gecko")&&!(Ma(Uc,"WebKit")&&!ad())&&!(Xc("Trident")||Xc("MSIE"))&&!ad(),fd=Ma(Uc,"WebKit")&&!ad(),gd=fd&&Xc("Mobile"),hd=Xc("Macintosh"),id=Xc("Windows"),jd=Xc("Linux")||Xc("CrOS"),kd=Xc("Android"),ld=bd(),md=Xc("iPad");function nd(){var a=Uc;if(ed)return/rv\:([^\);]+)(\)|;)/.exec(a);if(dd&&ad())return/Edge\/([\d\.]+)/.exec(a);if(dd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(fd)return/WebKit\/(\S+)/.exec(a)}
function od(){var a=m.document;return a?a.documentMode:void 0}var pd=function(){if(cd&&m.opera){var a=m.opera.version;return ha(a)?a():a}var a="",b=nd();b&&(a=b?b[1]:"");return dd&&!ad()&&(b=od(),b>parseFloat(a))?String(b):a}(),qd={};function rd(a){return qd[a]||(qd[a]=0<=Ra(pd,a))}function td(a){return dd&&(ad()||ud>=a)}var vd=m.document,wd=od(),ud=!vd||!dd||!wd&&ad()?void 0:wd||("CSS1Compat"==vd.compatMode?parseInt(pd,10):5);var xd=!dd||td(9),yd=!ed&&!dd||dd&&td(9)||ed&&rd("1.9.1"),zd=dd&&!rd("9"),Ad=dd||cd||fd;function Bd(a){return a?new Cd(Dd(a)):sa||(sa=new Cd)}function Ed(a){return w(a)?document.getElementById(a):a}function Fd(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):Gd("*",a,b)}function Hd(a,b){var c=b||document,d=null;c.getElementsByClassName?d=c.getElementsByClassName(a)[0]:c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=Gd("*",a,b)[0];return d||null}
function Gd(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&&G(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function Id(a,b){Hb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in Jd?a.setAttribute(Jd[d],b):ta(d,"aria-")||ta(d,"data-")?a.setAttribute(d,b):a[d]=b})}var Jd={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 Kd(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new H(a.clientWidth,a.clientHeight)}function Ld(a){var b=Md(a);a=a.parentWindow||a.defaultView;return dd&&rd("10")&&a.pageYOffset!=b.scrollTop?new Qc(b.scrollLeft,b.scrollTop):new Qc(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Md(a){return fd||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function Nd(a){return a?a.parentWindow||a.defaultView:window}
function I(a,b,c){return Od(document,arguments)}function Od(a,b){var c=b[0],d=b[1];if(!xd&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',ya(d.name),'"');if(d.type){c.push(' type="',ya(d.type),'"');var e={};ac(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(w(d)?c.className=d:ea(d)?c.className=d.join(" "):Id(c,d));2<b.length&&Pd(a,c,b,2);return c}
function Pd(a,b,c,d){function e(c){c&&b.appendChild(w(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!fa(g)||ja(g)&&0<g.nodeType?e(g):D(Qd(g)?sb(g):g,e)}}function Rd(a){return document.createElement(a)}function Sd(a){return document.createTextNode(String(a))}function Td(a,b){a.appendChild(b)}function Ud(a,b){Pd(Dd(a),a,arguments,1)}function Vd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Wd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
function Xd(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Yd(a){return yd&&void 0!=a.children?a.children:eb(a.childNodes,function(a){return 1==a.nodeType})}function Zd(a){return void 0!=a.firstElementChild?a.firstElementChild:$d(a.firstChild)}function $d(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function ae(a){return ja(a)&&1==a.nodeType}
function be(a){var b;if(Ad&&!(dd&&rd("9")&&!rd("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return ae(b)?b:null}function ce(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 Dd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function de(a){return a.contentWindow||Nd(a.contentDocument||a.contentWindow.document)}function ee(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{Vd(a);var c=Dd(a);a.appendChild(c.createTextNode(String(b)))}}function fe(a,b){var c=[];return ge(a,b,c,!0)?c[0]:void 0}
function ge(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||ge(a,b,c,d))return!0;a=a.nextSibling}return!1}var he={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ie={IMG:" ",BR:"\n"};
function je(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!ke(a)||le(a)):ke(a)&&le(a))&&dd?(a=ha(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a}function ke(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}function le(a){a=a.tabIndex;return ga(a)&&0<=a&&32768>a}
function me(a,b,c){if(!(a.nodeName in he))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 ie)b.push(ie[a.nodeName]);else for(a=a.firstChild;a;)me(a,b,c),a=a.nextSibling}function Qd(a){if(a&&"number"==typeof a.length){if(ja(a))return"function"==typeof a.item||"string"==typeof a.item;if(ha(a))return"function"==typeof a.item}return!1}
function ne(a,b){return b?oe(a,function(a){return!b||w(a.className)&&G(a.className.split(/\s+/),b)},!0,void 0):null}function oe(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 Cd(a){this.j=a||m.document||document}f=Cd.prototype;f.Q=function(a){return w(a)?this.j.getElementById(a):a};f.Uw=function(a,b,c){return Od(this.j,arguments)};f.createElement=function(a){return this.j.createElement(a)};
function pe(a){return"CSS1Compat"==a.j.compatMode}function qe(a){a=a.j;return a.parentWindow||a.defaultView}function re(a){return Ld(a.j)}f.appendChild=Td;f.append=Ud;f.contains=ce;var se="StopIteration"in m?m.StopIteration:Error("StopIteration");function te(){}te.prototype.next=function(){throw se;};te.prototype.bc=function(){return this};function ue(a){if(a instanceof te)return a;if("function"==typeof a.bc)return a.bc(!1);if(fa(a)){var b=0,c=new te;c.next=function(){for(;;){if(b>=a.length)throw se;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function ve(a,b,c){if(fa(a))try{D(a,b,c)}catch(d){if(d!==se)throw d;}else{a=ue(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==se)throw e;}}}function we(a){if(fa(a))return sb(a);a=ue(a);var b=[];ve(a,function(a){b.push(a)});return b};function xe(a,b){this.o={};this.j=[];this.he=this.ra=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 xe?(c=a.Ka(),d=a.Oa()):(c=Pb(a),d=Ob(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=xe.prototype;f.Ta=function(){return this.ra};f.Oa=function(){ye(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.o[this.j[b]]);return a};f.Ka=function(){ye(this);return this.j.concat()};
function ze(a,b){return Ae(a.o,b)}f.sf=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(Ae(this.o,c)&&this.o[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ra!=a.Ta())return!1;var c=b||Be;ye(this);for(var d,e=0;d=this.j[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function Be(a,b){return a===b}f.isEmpty=function(){return 0==this.ra};f.clear=function(){this.o={};this.he=this.ra=this.j.length=0};
f.remove=function(a){return Ae(this.o,a)?(delete this.o[a],this.ra--,this.he++,this.j.length>2*this.ra&&ye(this),!0):!1};function ye(a){if(a.ra!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];Ae(a.o,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.ra!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],Ae(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}}f.get=function(a,b){return Ae(this.o,a)?this.o[a]:b};f.set=function(a,b){Ae(this.o,a)||(this.ra++,this.j.push(a),this.he++);this.o[a]=b};
f.forEach=function(a,b){for(var c=this.Ka(),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 xe(this)};f.bc=function(a){ye(this);var b=0,c=this.j,d=this.o,e=this.he,g=this,h=new te;h.next=function(){for(;;){if(e!=g.he)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw se;var h=c[b++];return a?h:d[h]}};return h};function Ae(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function Ce(a){return"function"==typeof a.Ta?a.Ta():fa(a)||w(a)?a.length:Lb(a)}function De(a){if("function"==typeof a.Oa)return a.Oa();if(w(a))return a.split("");if(fa(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Ob(a)}function Ee(a){if("function"==typeof a.Ka)return a.Ka();if("function"!=typeof a.Oa){if(fa(a)||w(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Pb(a)}}
function Fe(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(fa(a)||w(a))D(a,b,c);else for(var d=Ee(a),e=De(a),g=e.length,h=0;h<g;h++)b.call(c,e[h],d&&d[h],a)}function Ge(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(fa(a)||w(a))return hb(a,b,c);for(var d=Ee(a),e=De(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};var He=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function Ie(a){if(Je){Je=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Ke(c))&&c!=b.hostname)throw Je=!0,Error();}}return a.match(He)}var Je=fd;function Me(a){return a?decodeURI(a):a}function Ke(a){return Me(Ie(a)[3]||null)}
function Ne(a,b){for(var c=a.split("&"),d=0;d<c.length;d++){var e=c[d].indexOf("="),g=null,h=null;0<=e?(g=c[d].substring(0,e),h=c[d].substring(e+1)):g=c[d];b(g,h?xa(h):"")}}function Oe(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 Pe(a,b,c){if(ea(b))for(var d=0;d<b.length;d++)Pe(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",wa(b))}
function Qe(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Pe(b[c],b[c+1],a);return a}function Re(a,b){for(var c in b)Pe(c,b[c],a);return a}function Te(a){a=Re([],a);a[0]="";return a.join("")}function Ue(a,b){return Oe(2==arguments.length?Qe([a],arguments[1],0):Qe([a],arguments,1))}function Ve(a,b){return Oe(Re([a],b))}
function We(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 Xe=/#|$/;function Ye(a,b){var c=a.search(Xe),d=We(a,0,b,c);if(0>d)return null;var e=a.indexOf("&",d);if(0>e||e>c)e=c;d+=b.length+1;return xa(a.substr(d,e-d))}var Ze=/[?&]($|#)/;
function $e(a,b,c){for(var d=a.search(Xe),e=0,g,h=[];0<=(g=We(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(Ze,"$1"),"&",b];null!=c&&a.push("=",wa(c));return Oe(a)};function J(a,b){var c;a instanceof J?(this.He=n(b)?b:a.He,af(this,a.Mb),this.$e=a.$e,bf(this,a.rb),cf(this,a.Cd),df(this,a.Lb),ef(this,a.j.clone()),this.wf=a.Af()):a&&(c=Ie(String(a)))?(this.He=!!b,af(this,c[1]||"",!0),this.$e=ff(c[2]||""),bf(this,c[3]||"",!0),cf(this,c[4]),df(this,c[5]||"",!0),ef(this,c[6]||"",!0),this.wf=ff(c[7]||"")):(this.He=!!b,this.j=new gf(null,0,this.He))}f=J.prototype;f.Mb="";f.$e="";f.rb="";f.Cd=null;f.Lb="";f.wf="";f.He=!1;
f.toString=function(){var a=[],b=this.Mb;b&&a.push(hf(b,jf,!0),":");if(b=this.rb){a.push("//");var c=this.$e;c&&a.push(hf(c,jf,!0),"@");a.push(wa(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.Cd;null!=b&&a.push(":",String(b))}if(b=this.Lb)this.rb&&"/"!=b.charAt(0)&&a.push("/"),a.push(hf(b,"/"==b.charAt(0)?kf:lf,!0));(b=this.j.toString())&&a.push("?",b);(b=this.Af())&&a.push("#",hf(b,mf));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Mb;c?af(b,a.Mb):c=!!a.$e;c?b.$e=a.$e:c=!!a.rb;c?bf(b,a.rb):c=null!=a.Cd;var d=a.Lb;if(c)cf(b,a.Cd);else if(c=!!a.Lb){if("/"!=d.charAt(0))if(this.rb&&!this.Lb)d="/"+d;else{var e=b.Lb.lastIndexOf("/");-1!=e&&(d=b.Lb.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=ta(e,"/"),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?df(b,d):c=""!==a.j.toString();c?ef(b,ff(a.j.toString())):c=!!a.wf;c&&(b.wf=a.Af());return b};f.clone=function(){return new J(this)};function af(a,b,c){a.Mb=c?ff(b,!0):b;a.Mb&&(a.Mb=a.Mb.replace(/:$/,""))}function nf(a){return a.rb}function bf(a,b,c){a.rb=c?ff(b,!0):b;return a}function cf(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.Cd=b}else a.Cd=null;return a}
function df(a,b,c){a.Lb=c?ff(b,!0):b}function ef(a,b,c){b instanceof gf?(a.j=b,of(a.j,a.He)):(c||(b=hf(b,pf)),a.j=new gf(b,0,a.He));return a}function qf(a){return a.j}f.hp=function(){return this.j.toString()};function K(a,b,c){a.j.set(b,c);return a}function rf(a,b,c){ea(c)||(c=[String(c)]);sf(a.j,b,c)}function tf(a,b){return a.j.get(b)}f.Af=function(){return this.wf};
function uf(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^y()).toString(36));return a}function vf(a){return a instanceof J?a.clone():new J(a,void 0)}function wf(a,b,c,d){var e=new J(null,void 0);a&&af(e,a);b&&bf(e,b);c&&cf(e,c);d&&df(e,d);return e}function ff(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function hf(a,b,c){return w(a)?(a=encodeURI(a).replace(b,xf),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}
function xf(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var jf=/[#\/\?@]/g,lf=/[\#\?:]/g,kf=/[\#\?]/g,pf=/[\#\?@]/g,mf=/#/g;function gf(a,b,c){this.j=a||null;this.o=!!c}function yf(a){a.ib||(a.ib=new xe,a.ra=0,a.j&&Ne(a.j,function(b,c){a.add(xa(b),c)}))}f=gf.prototype;f.ib=null;f.ra=null;f.Ta=function(){yf(this);return this.ra};f.add=function(a,b){yf(this);this.j=null;a=zf(this,a);var c=this.ib.get(a);c||this.ib.set(a,c=[]);c.push(b);this.ra++;return this};
f.remove=function(a){yf(this);a=zf(this,a);return ze(this.ib,a)?(this.j=null,this.ra-=this.ib.get(a).length,this.ib.remove(a)):!1};f.clear=function(){this.ib=this.j=null;this.ra=0};f.isEmpty=function(){yf(this);return 0==this.ra};function Af(a,b){yf(a);b=zf(a,b);return ze(a.ib,b)}f.sf=function(a){var b=this.Oa();return G(b,a)};f.Ka=function(){yf(this);for(var a=this.ib.Oa(),b=this.ib.Ka(),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.Oa=function(a){yf(this);var b=[];if(w(a))Af(this,a)&&(b=rb(b,this.ib.get(zf(this,a))));else{a=this.ib.Oa();for(var c=0;c<a.length;c++)b=rb(b,a[c])}return b};f.set=function(a,b){yf(this);this.j=null;a=zf(this,a);Af(this,a)&&(this.ra-=this.ib.get(a).length);this.ib.set(a,[b]);this.ra++;return this};f.get=function(a,b){var c=a?this.Oa(a):[];return 0<c.length?String(c[0]):b};function sf(a,b,c){a.remove(b);0<c.length&&(a.j=null,a.ib.set(zf(a,b),sb(c)),a.ra+=c.length)}
f.toString=function(){if(this.j)return this.j;if(!this.ib)return"";for(var a=[],b=this.ib.Ka(),c=0;c<b.length;c++)for(var d=b[c],e=wa(d),d=this.Oa(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+wa(d[g]));a.push(h)}return this.j=a.join("&")};f.clone=function(){var a=new gf;a.j=this.j;this.ib&&(a.ib=this.ib.clone(),a.ra=this.ra);return a};function zf(a,b){var c=String(b);a.o&&(c=c.toLowerCase());return c}
function of(a,b){b&&!a.o&&(yf(a),a.j=null,a.ib.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),sf(this,e,a))},a));a.o=b}f.extend=function(a){for(var b=0;b<arguments.length;b++)Fe(arguments[b],function(a,b){this.add(b,a)},this)};var Bf=/^https?:\/\/([-\w.]+\.youtube(education|-nocookie)?\.com\/|[a-z0-9\-]{1,63}\.([a-z]{3}|i)\.corp\.google\.com\/|0\.borg-playground-[a-z0-9\-]+\.youtube-dev\.([a-z]{2}|i)\.borg\.google\.com(:[0-9]+)?\/|yt-devenv-shared\.corp\.google\.com\/|(docs|drive)\.google\.com\/(a\/[^/\\%]+\/|)|play\.google\.com\/)/,Cf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(docs\.google\.com|drive\.google\.com|prod\.google\.com|plus\.sandbox\.google\.com|plus\.google\.com|mail\.google\.com|youtube\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,
Df=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(youtube\.com)(:[0-9]+)?([\/\?\#]|$)/,Ef=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?([\/\?\#]|$)/,Ff=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|prod\.google\.com|video\.google\.com|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com)(:[0-9]+)?\/+embed(\/+|\?|#|$)/,
Gf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,Hf=/^(https?:\/\/(lh|dp|gp)[3-6]\.googleusercontent\.com(:[0-9]+)?\/)?[A-Za-z0-9_/-]+photo\.jpg($|\?)|^https?:\/\/(s2\.googleusercontent\.com\/s2\/favicons\?|yt[3-4]\.ggpht\.com\/|([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|plus\.google\.com|video\.google\.com|youtube\.com|ytimg\.com)(:[0-9]+)?([\/\?\#]|$))/,
If=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,Jf=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,Kf=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Lf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(ba\.l\.google\.com|c\.googlesyndication\.com|corp\.google\.com|borg\.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]+)?([\/\?\#]|$)/,
Mf=/^https?:\/\/(www\.gstatic\.com\/doubleclick\/studio\/innovation\/ytplayer|www\.gstatic\.com\/doubleclick\/studio\/innovation\/h5\/layouts\/tetris|tpc\.googlesyndication\.com\/pagead\/gadgets\/|([A-Za-z0-9-]{1,63}\.)*(imasdk\.googleapis\.com|2mdn\.net|googlesyndication\.com|corp\.google\.com|borg\.google\.com|googleads\.g\.doubleclick\.net|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]+)?([\/\?\#]|$))/,
Nf=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Of=/^https?:\/\/((www\.|encrypted\.)?google(\.com|\.co)?\.[a-z]{2,3}\/(search|webhp)\?|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|borg\.google\.com|docs\.google\.com|drive\.google\.com|googleplex\.com|play\.google\.com|prod\.google\.com|sandbox\.google\.com|photos\.google\.com|plus\.google\.com|books\.googleusercontent\.com|mail\.google\.com|talkgadget\.google\.com|survey\.g\.doubleclick\.net|youtube\.com|youtube\.googleapis\.com|youtube-nocookie\.com|youtubeeducation\.com|vevo\.com)(:[0-9]+)?([\/\?\#]|$))/;var Pf=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};q("yt.config_",Pf,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Qf=window.yt&&window.yt.msgs_||{};q("yt.msgs_",Qf,void 0);function Rf(a){Sf(Pf,arguments)}function Tf(a,b){return a in Pf?Pf[a]:b}function L(a,b){ha(a)&&(a=Uf(a));return window.setTimeout(a,b)}function Vf(a,b){ha(a)&&(a=Uf(a));return window.setInterval(a,b)}function M(a){window.clearTimeout(a)}function Wf(a){window.clearInterval(a)}
function Uf(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Xf(b),b;}}:a}function Xf(a,b){var c=u("yt.www.errors.log");c?c(a,b):(c=Tf("ERRORS")||[],c.push([a,b]),Rf("ERRORS",c))}function Yf(a){Sf(Qf,arguments)}function Zf(a,b,c){var d=b||{};if(a=a in Qf?Qf[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}function Sf(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 $f=["2mdn.net","imasdk.googleapis.com","googleads.g.doubleclick.net"];function ag(a){return!!a&&-1!=a.search(Lf)}function bg(a){var b=!!a&&-1!=a.search(Of),c;c=(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+$f.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);!b&&c&&(a=Error("isTrustedLoader("+a+") behavior is not consistent"),.01>Math.random()&&Xf(a,"WARNING"));return b||c}function cg(a){return!!a&&-1!=a.search(Hf)}function dg(a){return!!a&&-1!=a.search(Mf)}
function eg(a){a=new J(a);af(a,document.location.protocol);bf(a,document.location.hostname);document.location.port&&cf(a,document.location.port);return a.toString()}function fg(a){a=new J(a);af(a,document.location.protocol);return a.toString()};var gg={},hg=0,ig=u("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",ig,void 0);function jg(a,b,c){a&&(c?a&&(a=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),Dd(a).body.appendChild(a)):kg(a,b))}function kg(a,b){var c=new Image,d=""+hg++;gg[d]=c;c.onload=c.onerror=function(){b&&gg[d]&&b();delete gg[d]};c.src=a;c=eval("null")};function lg(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 mg(a){return eval("("+a+")")}function ng(a){return(new og(void 0)).F(a)}function og(a){this.j=a}
og.prototype.F=function(a){var b=[];pg(this,a,b);return b.join("")};
function pg(a,b,c){switch(typeof b){case "string":qg(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(ea(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],pg(a,a.j?a.j.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),qg(g,c),
c.push(":"),pg(a,a.j?a.j.call(b,g,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var rg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},sg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function qg(a,b){b.push('"',a.replace(sg,function(a){if(a in rg)return rg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return rg[a]=e+b.toString(16)}),'"')};function tg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=tg.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new tg(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof tg?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=ga(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function ug(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=ug.prototype;f.clone=function(){return new ug(this.left,this.top,this.width,this.height)};function vg(a){return new tg(a.top,a.left+a.width,a.top+a.height,a.left)}function wg(a){return new ug(a.left,a.top,a.right-a.left,a.bottom-a.top)}function xg(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}
function yg(a,b){var c=Math.max(a.left,b.left),d=Math.min(a.left+a.width,b.left+b.width);if(c<=d){var e=Math.max(a.top,b.top),g=Math.min(a.top+a.height,b.top+b.height);if(e<=g)return a.left=c,a.top=e,a.width=d-c,a.height=g-e,!0}return!1}f.contains=function(a){return a instanceof ug?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 zg(a){return new H(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=ga(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function Ag(a){Ag[" "](a);return a}Ag[" "]=v;function Bg(a,b){try{return Ag(a[b]),!0}catch(c){}return!1};function Cg(){return fd?"Webkit":ed?"Moz":dd?"ms":cd?"O":null};function Dg(a,b,c){if(w(b))(b=Eg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=Eg(c,d);g&&(c.style[g]=e)}}var Fg={};function Eg(a,b){var c=Fg[b];if(!c){var d=Wa(b),c=d;void 0===a.style[d]&&(d=Cg()+Xa(d),void 0!==a.style[d]&&(c=d));Fg[b]=c}return c}function Gg(a,b){var c=a.style[Wa(b)];return"undefined"!==typeof c?c:a.style[Eg(a,b)]||""}
function Hg(a,b){var c=Dd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Ig(a,b){return Hg(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Jg(a,b,c){var d;b instanceof Qc?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Kg(d,!1);a.style.top=Kg(b,!1)}function Lg(a){return new Qc(a.offsetLeft,a.offsetTop)}
function Mg(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}dd&&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 Ng(a){if(dd&&!td(8))return a.offsetParent;var b=Dd(a),c=Ig(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Ig(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 Og(a){for(var b=new tg(0,Infinity,Infinity,0),c=Bd(a),d=c.j.body,e=c.j.documentElement,g=Md(c.j);a=Ng(a);)if(!(dd&&0==a.clientWidth||fd&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Ig(a,"overflow")){var h=Pg(a),k=new Qc(a.clientLeft,a.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=Kd(qe(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 Pg(a){var b=Dd(a),c=new Qc(0,0),d;d=b?Dd(b):document;d=!dd||td(9)||pe(Bd(d))?d.documentElement:d.body;if(a==d)return c;a=Mg(a);b=re(Bd(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}
function Qg(a,b){var c=new Qc(0,0),d=Nd(Dd(a)),e=a;do{var g=d==b?Pg(e):Rg(e);c.x+=g.x;c.y+=g.y}while(d&&d!=b&&d!=d.parent&&(e=d.frameElement)&&(d=d.parent));return c}function Rg(a){a=Mg(a);return new Qc(a.left,a.top)}function Sg(a){if(1==a.nodeType)return Rg(a);var b=ha(a.F),c=a;a.targetTouches&&a.targetTouches.length?c=a.targetTouches[0]:b&&a.j.targetTouches&&a.j.targetTouches.length&&(c=a.j.targetTouches[0]);return new Qc(c.clientX,c.clientY)}
function Tg(a,b,c){if(b instanceof H)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Ug(a,b);a.style.height=Kg(c,!0)}function Kg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ug(a,b){a.style.width=Kg(b,!0)}function Vg(a){return Wg(a)}
function Wg(a){var b=Xg;if("none"!=Ig(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 Xg(a){var b=a.offsetWidth,c=a.offsetHeight,d=fd&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new H(b,c):(a=Mg(a),new H(a.right-a.left,a.bottom-a.top))}function Yg(a){var b=Pg(a);a=Wg(a);return new ug(b.x,b.y,a.width,a.height)}
function Zg(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 $g(a,b){a.style.display=b?"":"none"}function ah(a){return"rtl"==Ig(a,"direction")}function ch(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 dh(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?ch(a,c):0}var eh={thin:2,medium:4,thick:6};function fh(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 eh?eh[c]:ch(a,c)}
function gh(a){if(dd&&!td(9)){var b=fh(a,"borderLeft"),c=fh(a,"borderRight"),d=fh(a,"borderTop");a=fh(a,"borderBottom");return new tg(d,c,a,b)}b=Hg(a,"borderLeftWidth");c=Hg(a,"borderRightWidth");d=Hg(a,"borderTopWidth");a=Hg(a,"borderBottomWidth");return new tg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var hh=/[^\d]+$/,ih={cm:1,"in":1,mm:1,pc:1,pt:1},jh={em:1,ex:1};
function kh(a){var b=Ig(a,"fontSize"),c;c=(c=b.match(hh))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(dd){if(c in ih)return ch(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in jh)return a=a.parentNode,c=Ig(a,"fontSize"),ch(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;Wd(c);return b};function lh(a){if(a.classList)return a.classList;a=a.className;return w(a)&&a.match(/\S+/g)||[]}function mh(a,b){return a.classList?a.classList.contains(b):G(lh(a),b)}function N(a,b){a.classList?a.classList.add(b):mh(a,b)||(a.className+=0<a.className.length?" "+b:b)}function nh(a,b){if(a.classList)D(b,function(b){N(a,b)});else{var c={};D(lh(a),function(a){c[a]=!0});D(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function oh(a,b){a.classList?a.classList.remove(b):mh(a,b)&&(a.className=eb(lh(a),function(a){return a!=b}).join(" "))}function ph(a,b){a.classList?D(b,function(b){oh(a,b)}):a.className=eb(lh(a),function(a){return!G(b,a)}).join(" ")}function O(a,b,c){c?N(a,b):oh(a,b)}function qh(a,b){var c=!mh(a,b);O(a,b,c)};var rh=fd?"webkit":ed?"moz":dd?"ms":cd?"o":"";function sh(a){var b=a.__yt_uid_key;b||(b=th(),a.__yt_uid_key=b);return b}var th=u("yt.dom.getNextId_");if(!th){th=function(){return++uh};q("yt.dom.getNextId_",th,void 0);var uh=0}function vh(a,b){var c=Gd(a,null,b);return c.length?c[0]:null}function wh(a,b){if(a in b)return b[a];var c=rh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function xh(a,b){var c;gb(a,function(a){c=wh(a,b);return!!c});return c};function yh(a){if(a=a||window.event){for(var b in a)b in zh||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Oc=a;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;
this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=
a.wheelDeltaY/-30):(this.wheelDeltaX=a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3);this.j=a.pageX;this.o=a.pageY}}function Ah(a){if(document.body&&document.documentElement){var b=document.body.scrollTop+document.documentElement.scrollTop;a.j=a.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);a.o=a.clientY+b}}
function Bh(a){n(a.j)||Ah(a);return a.j}function Ch(a){n(a.o)||Ah(a);return a.o}f=yh.prototype;f.Oc=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.Oc.returnValue=!1;this.Oc.preventDefault&&this.Oc.preventDefault()};
f.Rg=function(){return!1===this.Oc.returnValue};f.stopPropagation=function(){this.Oc.cancelBubble=!0;this.Oc.stopPropagation&&this.Oc.stopPropagation()};f.stopImmediatePropagation=function(){this.Oc.cancelBubble=!0;this.Oc.stopImmediatePropagation&&this.Oc.stopImmediatePropagation()};var zh={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Dh=u("yt.events.listeners_")||{};q("yt.events.listeners_",Dh,void 0);var Eh=u("yt.events.counter_")||{count:0};q("yt.events.counter_",Eh,void 0);function Fh(a,b,c,d){return Rb(Dh,function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function P(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Fh(a,b,c,d);if(e)return e;var e=++Eh.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new yh(d);if(!oe(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new yh(b);b.currentTarget=a;return c.call(a,b)};h=Uf(h);Dh[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 Gh(a,b){var c;c=P(a,"playing",function(){Hh(c);b.apply(a,arguments)},void 0)}function Ih(a,b,c,d){return Jh(a,b,c,function(a){return mh(a,d)})}
function Jh(a,b,c,d){var e=a||document;return P(e,b,function(a){var b=oe(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Hh(a){a&&("string"==typeof a&&(a=[a]),D(a,function(a){if(a in Dh){var c=Dh[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 Dh[a]}}))}function Kh(a){for(var b in Dh)Dh[b][0]==a&&Hh(b)}
function Lh(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()}function Mh(a){a=a||window.event;return!1===a.returnValue||a.Rg&&a.Rg()}function Nh(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 Oh(){return!!xh(["fullscreenEnabled","fullScreenEnabled"],document)}function Ph(){return xh(["fullscreenElement","fullScreenElement"],document)};function Qh(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Yb(Rh);this.assets=a.assets||{};this.attrs=a.attrs||Yb(Sh);this.params=a.params||Yb(Th);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}}var Rh={enablejsapi:1},Sh={},Th={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Qh.prototype.clone=function(){var a=new Qh,b;for(b in this){var c=this[b];"object"==ca(c)?a[b]=Yb(c):a[b]=c}return a};var Uh=Xc("Firefox"),Vh=bd()||Xc("iPod"),Wh=Xc("iPad"),Xh=Xc("Android")&&!($c()||Xc("Firefox")||Yc()||Xc("Silk")),Yh=$c(),Zh=Xc("Safari")&&!($c()||Xc("Coast")||Yc()||Zc()||Xc("Silk")||Xc("Android"))&&!(bd()||Xc("iPad")||Xc("iPod"));var $h=y(),ai=null,bi=Array(50),ci=-1,di=!1;function ei(a){fi();ai.push(a);gi(ai)}function hi(a){var b=u("yt.mdx.remote.debug.handlers_");ob(b||[],a)}function ii(a,b){fi();var c=ai,d=ji(a,String(b));lb(c)?ki(d):(gi(c),D(c,function(a){a(d)}))}function fi(){ai||(ai=u("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",ai,void 0))}function ki(a){var b=(ci+1)%50;ci=b;bi[b]=a;di||(di=49==b)}
function gi(a){var b=bi;if(b[0]){var c=ci,d=di?c:-1;do{var d=(d+1)%50,e=b[d];D(a,function(a){a(e)})}while(d!=c);bi=Array(50);ci=-1;di=!1}}function ji(a,b){var c=(y()-$h)/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 li(a){a=a||{};this.name=a.name||"";this.id=a.id||a.screenId||"";this.token=a.token||a.loungeToken||"";this.uuid=a.uuid||a.dialId||""}function mi(a,b){return!!b&&(a.id==b||a.uuid==b)}function ni(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 oi(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function pi(a){return new li(a)}function qi(a){return ea(a)?E(a,pi):[]}
function ri(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 si(a){return ea(a)?"["+E(a,ri).join(",")+"]":"null"};function ti(a,b,c){a&&(a.dataset?a.dataset[ui(b)]=c:a.setAttribute("data-"+b,c))}function vi(a,b){return a?a.dataset?a.dataset[ui(b)]:a.getAttribute("data-"+b):null}var wi={};function ui(a){return wi[a]||(wi[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};function Q(){this.fb=this.fb;this.Ga=this.Ga}Q.prototype.fb=!1;Q.prototype.ka=function(){return this.fb};Q.prototype.dispose=function(){this.fb||(this.fb=!0,this.P())};function R(a,b){xi(a,pa(yi,b))}function xi(a,b){a.fb?b.call(void 0):(a.Ga||(a.Ga=[]),a.Ga.push(n(void 0)?x(b,void 0):b))}Q.prototype.P=function(){if(this.Ga)for(;this.Ga.length;)this.Ga.shift()()};function zi(a){return a&&"function"==typeof a.ka?a.ka():!1}function yi(a){a&&"function"==typeof a.dispose&&a.dispose()}
function Ai(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];fa(d)?Ai.apply(null,d):yi(d)}};function Bi(){Q.call(this);this.j=[];this.qc={}}z(Bi,Q);f=Bi.prototype;f.kp=1;f.tj=0;f.subscribe=function(a,b,c){var d=this.qc[a];d||(d=this.qc[a]=[]);var e=this.kp;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.kp=e+3;d.push(e);return e};f.qa=function(a,b,c){if(a=this.qc[a]){var d=this.j;if(a=F(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Pb(a)}return!1};
f.Pb=function(a){if(0!=this.tj)return this.o||(this.o=[]),this.o.push(a),!1;var b=this.j[a];if(b){var c=this.qc[b];c&&ob(c,a);delete this.j[a];delete this.j[a+1];delete this.j[a+2]}return!!b};f.L=function(a,b){var c=this.qc[a];if(c){this.tj++;for(var d=Array(arguments.length-1),e=1,g=arguments.length;e<g;e++)d[e-1]=arguments[e];e=0;for(g=c.length;e<g;e++){var h=c[e];this.j[h+1].apply(this.j[h+2],d)}this.tj--;if(this.o&&0==this.tj)for(;c=this.o.pop();)this.Pb(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.qc[a];b&&(D(b,this.Pb,this),delete this.qc[a])}else this.j.length=0,this.qc={}};f.Ta=function(a){if(a){var b=this.qc[a];return b?b.length:0}a=0;for(b in this.qc)a+=this.Ta(b);return a};f.P=function(){Bi.K.P.call(this);delete this.j;delete this.qc;delete this.o};var Ci=u("yt.pubsub.instance_")||new Bi;Bi.prototype.subscribe=Bi.prototype.subscribe;Bi.prototype.unsubscribeByKey=Bi.prototype.Pb;Bi.prototype.publish=Bi.prototype.L;Bi.prototype.clear=Bi.prototype.clear;q("yt.pubsub.instance_",Ci,void 0);var Di=u("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",Di,void 0);var Ei=u("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ei,void 0);var Fi=u("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Fi,void 0);
var Gi=u("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Gi,void 0);function Hi(a,b,c){var d=Ii();if(d){var e=d.subscribe(a,function(){if(!Gi||Gi!=e){var d=arguments,h=function(){Di[e]&&b.apply(c||window,d)};try{Fi[a]?h():L(h,0)}catch(k){Xf(k)}}},c);Di[e]=!0;Ei[a]||(Ei[a]=[]);Ei[a].push(e);return e}return 0}function Ji(a){var b=Ii();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),D(a,function(a){b.unsubscribeByKey(a);delete Di[a]}))}
function Ki(a,b){var c=Ii();c&&c.publish.apply(c,arguments)}function Li(a,b){Fi[a]=!0;var c=Ii();c&&c.publish.apply(c,arguments);Fi[a]=!1}function Ii(){return u("yt.pubsub.instance_")};function Mi(){};function Ni(){}z(Ni,Mi);Ni.prototype.Ta=function(){var a=0;ve(this.bc(!0),function(){a++});return a};Ni.prototype.clear=function(){var a=we(this.bc(!0)),b=this;D(a,function(a){b.remove(a)})};function Oi(a){this.j=a}z(Oi,Ni);f=Oi.prototype;f.isAvailable=function(){if(!this.j)return!1;try{return this.j.setItem("__sak","1"),this.j.removeItem("__sak"),!0}catch(a){return!1}};f.set=function(a,b){try{this.j.setItem(a,b)}catch(c){if(0==this.j.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};f.get=function(a){a=this.j.getItem(a);if(!w(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.j.removeItem(a)};
f.Ta=function(){return this.j.length};f.bc=function(a){var b=0,c=this.j,d=new te;d.next=function(){if(b>=c.length)throw se;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!w(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};f.clear=function(){this.j.clear()};f.key=function(a){return this.j.key(a)};function Pi(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}z(Pi,Oi);function Qi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}z(Qi,Oi);function Ri(a){this.j=a}Ri.prototype.set=function(a,b){n(b)?this.j.set(a,ng(b)):this.j.remove(a)};Ri.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return lg(b)}catch(d){throw"Storage: Invalid value was encountered";}};Ri.prototype.remove=function(a){this.j.remove(a)};function Si(a){this.j=a}z(Si,Ri);function Ti(a){this.data=a}function Ui(a){return!n(a)||a instanceof Ti?a:new Ti(a)}Si.prototype.set=function(a,b){Si.K.set.call(this,a,Ui(b))};Si.prototype.o=function(a){a=Si.K.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Si.prototype.get=function(a){if(a=this.o(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Vi(a){this.j=a}z(Vi,Si);function Wi(a){var b=a.creation;a=a.expiration;return!!a&&a<y()||!!b&&b>y()}Vi.prototype.set=function(a,b,c){if(b=Ui(b)){if(c){if(c<y()){Vi.prototype.remove.call(this,a);return}b.expiration=c}b.creation=y()}Vi.K.set.call(this,a,b)};Vi.prototype.o=function(a,b){var c=Vi.K.o.call(this,a);if(c)if(!b&&Wi(c))Vi.prototype.remove.call(this,a);else return c};function Xi(a){this.j=a}z(Xi,Vi);function Yi(a,b){var c=[];ve(b,function(a){var b;try{b=Xi.prototype.o.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?Wi(b)&&c.push(a):c.push(a)},a);return c}function Zi(a,b){var c=Yi(a,b);D(c,function(a){Xi.prototype.remove.call(this,a)},a)}function $i(){var a=aj;Zi(a,a.j.bc(!0))};function bj(a,b,c){var d=c&&0<c?c:0;c=d?y()+1E3*d:0;if((d=d?aj:cj)&&window.JSON){w(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function dj(a){if(!cj&&!aj||!window.JSON)return null;var b;try{b=cj.get(a)}catch(c){}if(!w(b))try{b=aj.get(a)}catch(d){}if(!w(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function ej(a){cj&&cj.remove(a);aj&&aj.remove(a)}var aj,fj=new Pi;aj=fj.isAvailable()?new Xi(fj):null;var cj,gj=new Qi;cj=gj.isAvailable()?new Xi(gj):null;var hj=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"];function ij(a,b){a==hj.length?b(null):jj(hj[a],function(c){c?(c=hj[a],bj("yt-remote-cast-last-extension",c),b(c)):ij(a+1,b)})}function kj(a){return"chrome-extension://"+a+"/cast_sender.js"}
function jj(a,b){var c=new XMLHttpRequest;c.onreadystatechange=function(){4==c.readyState&&200==c.status&&b(!0)};c.onerror=function(){b(!1)};try{c.open("GET",kj(a),!0),c.send()}catch(d){b(!1)}}
function lj(a){window.__onGCastApiAvailable=a;mj(function(b){if(b){ii("bootstrap","Found cast extension: "+b);q("chrome.cast.extensionId",b,void 0);var c=document.createElement("script");c.src=kj(b);c.onerror=function(){nj();ej("yt-remote-cast-last-extension");a(!1,"Extension JS failed to load.")};(document.head||document.documentElement).appendChild(c)}else ii("bootstrap","No cast extension found"),a(!1,"No cast extension found")})}
function nj(){window.__onGCastApiAvailable&&delete window.__onGCastApiAvailable}function mj(a){var b=dj("yt-remote-cast-last-extension");b?a(b):ij(0,a)};var oj={tJ:"ska",aJ:"que",zI:"mus",qJ:"sus"};function pj(a){var b=a.type;if(!n(b))return null;switch(b.toLowerCase()){case "checkbox":case "radio":return a.checked?a.value:null;case "select-one":return b=a.selectedIndex,0<=b?a.options[b].value:null;case "select-multiple":for(var b=[],c,d=0;c=a.options[d];d++)c.selected&&b.push(c.value);return b.length?b:null;default:return n(a.value)?a.value:null}};function qj(a,b){qc(a);qc(a);return Oc(b,null)};function rj(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=xa(h[0]||""),h=xa(h[1]||"");k in d?ea(d[k])?tb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function sj(a,b){var c=[];Hb(a,function(a,b){var g=wa(b),h;ea(a)?h=a:h=[a];D(h,function(a){""==a?c.push(g):c.push(g+"="+wa(a))})});return c.join(b)}function tj(a){"?"==a.charAt(0)&&(a=a.substr(1));return rj(a,"&")}
function uj(a){a=a.split(",");return a=a.map(function(a){return tj(a)})}function vj(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),tj(1<a.length?a[1]:a[0])):{}}var wj=Ke;function xj(a){var b=Ie(a);a=b[1];var c=b[2],d=b[3],b=b[4],e="";a&&(e+=a+":");d&&(e+="//",c&&(e+=c+"@"),e+=d,b&&(e+=":"+b));return e}function yj(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=tj(d[1]||""),e;for(e in b)d[e]=b[e];return Ve(a,d)+c}
function zj(){var a;a||(a=document.location.href);a=Ie(a)[1]||null;return null!==a&&"https"==a};var Aj=null;"undefined"!=typeof XMLHttpRequest?Aj=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Aj=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Bj(a){switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};function Cj(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Uf(b)(l)}var l=Aj&&Aj();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=Dj(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 Dj(a,b){b=b||{};for(var c in Ej){var d=Tf(Ej[c]),e;if(e=d){e=a;var g=void 0;g=window.location.href;var h=Ie(e)[1]||null,k=wj(e);h&&k?(e=Ie(e),g=Ie(g),e=e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]):e=k?wj(g)==k&&(Number(Ie(g)[4]||null)||null)==(Number(Ie(e)[4]||null)||null):!0;e||(e=c,g=Tf("CORS_HEADER_WHITELIST")||{},e=(h=wj(a))?(g=g[h])?G(g,e):!1:!0)}e&&(b[c]=d)}return b}
function Fj(a,b){var c=Tf("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.EK&&(!wj(a)||wj(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Ib&&b.Ib[c])}
function Gj(a,b){var c=b.format||"JSON";b.JK&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=Tf("XSRF_FIELD_NAME"),e=Tf("XSRF_TOKEN"),g=b.dg;g&&(g[d]&&delete g[d],a=yj(a,g));var h=b.EC||"",g=b.Ib;Fj(a,b)&&(g||(g={}),g[d]=e);g&&w(h)&&(d=tj(h),ac(d,g),h=Te(d));var k=!1,l,p=Cj(a,function(a){if(!k){k=!0;l&&M(l);var d=Bj(a),e=null;if(d||400<=a.status&&500>a.status)e=Hj(c,a,b.DK);if(d)i:{switch(c){case "XML":d=0==parseInt(e&&
e.return_code,10);break i;case "RAW":d=!0;break i}d=!!e}var e=e||{},g=b.context||m;d?b.jb&&b.jb.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.Wb&&b.Wb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.Ue&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),M(l),b.Ue.call(b.context||m,p))},b.timeout));return p}
function Hj(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=mg(a));break;case "XML":if(b=(b=b.responseXML)?Ij(b):null)d={},D(b.getElementsByTagName("*"),function(a){d[a.tagName]=Jj(a)})}if(c)for(var e in d)if("html_content"==e||ua(e,"_html"))d[e]=qj(rc(),d[e]);return d}function Ij(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}
function Jj(a){var b="";D(a.childNodes,function(a){b+=a.nodeValue});return b}var Kj={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"},Lj={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 Mj(a,b,c,d){if(Tf("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=xj(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Kj.watch_actions_ajax]=1;Gj(e,{format:"RAW",method:"GET",dg:g,Wb:function(a){var b=tj(a.responseText);b[Lj.watch_actions_ajax]?c&&c():d&&d(a,b)}})}}var Ej={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Nj(a){this.port=this.A="";this.j="/api/lounge";this.o=!0;a=a||document.location.href;var b=Number(Ie(a)[4]||null)||null||"";b&&(this.port=":"+b);this.A=Ke(a)||"";a=Uc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ra(a,"10.0")&&(this.o=!1))}function Oj(a,b,c,d){var e=a.j;if(n(d)?d:a.o)e="https://"+a.A+a.port+a.j;return Ve(e+b,c||{})}
function Pj(a,b,c,d,e){a={format:"JSON",method:"POST",context:a,timeout:5E3,withCredentials:!1,jb:pa(a.C,d,!0),onError:pa(a.B,e),Ue:pa(a.D,e)};c&&(a.Ib=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Gj(b,a)}Nj.prototype.C=function(a,b,c,d){b?a(d):a({text:c.responseText})};Nj.prototype.B=function(a,b){a(Error("Request error: "+b.status))};Nj.prototype.D=function(a){a(Error("request timed out"))};function Qj(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Qj.prototype.id="";Qj.prototype.name="";Qj.prototype.activityId="";Qj.prototype.status="UNKNOWN";Qj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};function Rj(){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 Sj(a){return E(a,function(a){return{key:a.id,name:a.name}})}function Tj(a){return E(a,function(a){return new Qj(a)})}function Uj(a,b){return F(a,function(a){return a.id==b})}function Vj(a,b){return F(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function Wj(a,b){return F(a,function(a){return mi(a,b)})};function S(){Q.call(this);this.S=new Bi;R(this,this.S)}z(S,Q);S.prototype.subscribe=function(a,b,c){return this.ka()?0:this.S.subscribe(a,b,c)};S.prototype.qa=function(a,b,c){return this.ka()?!1:this.S.qa(a,b,c)};S.prototype.Pb=function(a){return this.ka()?!1:this.S.Pb(a)};S.prototype.L=function(a,b){return this.ka()?!1:this.S.L.apply(this.S,arguments)};function Xj(a){S.call(this);this.D=a;this.screens=[]}z(Xj,S);f=Xj.prototype;f.gc=function(){return this.screens};f.contains=function(a){return!!Vj(this.screens,a)};f.get=function(a){return a?Wj(this.screens,a):null};function Yj(a,b){var c=a.get(b.uuid)||a.get(b.id);if(c){var d=c.name;c.id=b.id||c.id;c.name=b.name;c.token=b.token;c.uuid=b.uuid||c.uuid;return c.name!=d}a.screens.push(b);return!0}
function Zj(a,b){var c=a.screens.length!=b.length;a.screens=eb(a.screens,function(a){return!!Vj(b,a)});for(var d=0,e=b.length;d<e;d++)c=Yj(a,b[d])||c;return c}function ak(a,b){var c=a.screens.length;a.screens=eb(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c}f.info=function(a){ii(this.D,a)};f.warn=function(a){ii(this.D,a)};function bk(a,b,c,d){S.call(this);this.F=a;this.D=b;this.B=c;this.C=d;this.A=0;this.j=null;this.o=NaN}z(bk,S);var ck=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=bk.prototype;f.start=function(){!this.j&&isNaN(this.o)&&this.Cs()};f.stop=function(){this.j&&(this.j.abort(),this.j=null);isNaN(this.o)||(M(this.o),this.o=NaN)};f.P=function(){this.stop();bk.K.P.call(this)};
f.Cs=function(){this.o=NaN;this.j=Gj(Oj(this.F,"/pairing/get_screen"),{method:"POST",Ib:{pairing_code:this.D},timeout:5E3,jb:x(this.GD,this),onError:x(this.FD,this),Ue:x(this.HD,this)})};f.GD=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.B;c.name=this.C;this.L("pairingComplete",new li(c))};
f.FD=function(a){this.j=null;a.status&&404==a.status?this.A>=ck.length?this.L("pairingFailed",Error("DIAL polling timed out")):(a=ck[this.A],this.o=L(x(this.Cs,this),a),this.A++):this.L("pairingFailed",Error("Server error "+a.status))};f.HD=function(){this.j=null;this.L("pairingFailed",Error("Server not responding"))};function dk(a,b){this.Qf=a;this.Le=b+"::"}z(dk,Ni);f=dk.prototype;f.Qf=null;f.Le="";f.set=function(a,b){this.Qf.set(this.Le+a,b)};f.get=function(a){return this.Qf.get(this.Le+a)};f.remove=function(a){this.Qf.remove(this.Le+a)};f.bc=function(a){var b=this.Qf.bc(!0),c=this,d=new te;d.next=function(){for(var d=b.next();d.substr(0,c.Le.length)!=c.Le;)d=b.next();return a?d.substr(c.Le.length):c.Qf.get(d)};return d};function ek(a){var b=new Pi;return b.isAvailable()?a?new dk(b,a):b:null};function fk(a){this.j=new xe;if(a){a=De(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function gk(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a}f=fk.prototype;f.Ta=function(){return this.j.Ta()};f.add=function(a){this.j.set(gk(a),a)};f.removeAll=function(a){a=De(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.j.remove(gk(a))};f.clear=function(){this.j.clear()};f.isEmpty=function(){return this.j.isEmpty()};
f.contains=function(a){return ze(this.j,gk(a))};f.Oa=function(){return this.j.Oa()};f.clone=function(){return new fk(this)};f.equals=function(a){return this.Ta()==Ce(a)&&hk(this,a)};function hk(a,b){var c=Ce(b);if(a.Ta()>c)return!1;!(b instanceof fk)&&5<c&&(b=new fk(b));return Ge(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.sf?c.sf(a):fa(c)||w(c)?G(c,a):Nb(c,a)})}f.bc=function(){return this.j.bc(!1)};function ik(a){a&&(this.id=a.id||a.name,this.name=a.name,this.type=a.type||"REMOTE_CONTROL",this.os=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new fk(eb((a.capabilities||"").split(","),pa(Mb,oj))))}ik.prototype.id="";ik.prototype.name="";f=ik.prototype;f.type="REMOTE_CONTROL";f.os="";f.avatar="";f.theme="u";f.equals=function(a){return a?this.id==a.id:!1};function jk(a){this.j=a}var kk=/\s*;\s*/;f=jk.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(y()+1E3*c)).toUTCString();this.j.cookie=a+"="+b+e+d+c+g};
f.get=function(a,b){for(var c=a+"=",d=(this.j.cookie||"").split(kk),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.Ka=function(){return lk(this).keys};f.Oa=function(){return lk(this).values};f.isEmpty=function(){return!this.j.cookie};f.Ta=function(){return this.j.cookie?(this.j.cookie||"").split(kk).length:0};
f.sf=function(a){for(var b=lk(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=lk(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function lk(a){a=(a.j.cookie||"").split(kk);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,values:c}}var mk=new jk(document);mk.o=3950;function nk(a,b){mk.set(""+a,b,-1,"/","youtube.com")};var ok;function pk(){var a=qk(),b=rk();G(a,b);sk()&&Eb(a,b);a=tk(a);if(lb(a))try{a="remote_sid",mk.remove(""+a,"/","youtube.com")}catch(c){}else try{nk("remote_sid",a.join(","))}catch(d){}}function qk(){var a=dj("yt-remote-connected-devices")||[];zb(a);return a}function tk(a){if(lb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return E(a,function(a,b){return 0==b?a:a.substring(c.length)})}function uk(a){bj("yt-remote-connected-devices",a,86400)}
function rk(){if(vk)return vk;var a=dj("yt-remote-device-id");a||(a=Rj(),bj("yt-remote-device-id",a,31536E3));for(var b=qk(),c=1,d=a;G(b,d);)c++,d=a+"#"+c;return vk=d}function wk(){return dj("yt-remote-session-browser-channel")}function sk(){return dj("yt-remote-session-screen-id")}
function xk(a){5<a.length&&(a=a.slice(a.length-5));var b=E(yk(),function(a){return a.loungeToken}),c=E(a,function(a){return a.loungeToken});hb(c,function(a){return!G(b,a)})&&zk();bj("yt-remote-local-screens",a,31536E3)}function yk(){return dj("yt-remote-local-screens")||[]}function zk(){bj("yt-remote-lounge-token-expiration",!0,86400)}function Ak(a){bj("yt-remote-online-screens",a,60)}function Bk(){return dj("yt-remote-online-dial-devices")||[]}
function Ck(a,b){bj("yt-remote-session-browser-channel",a);bj("yt-remote-session-screen-id",b);var c=qk(),d=rk();G(c,d)||c.push(d);uk(c);pk()}function Dk(a){a||(ej("yt-remote-session-screen-id"),ej("yt-remote-session-video-id"));pk();a=qk();ob(a,rk());uk(a)}function Ek(){if(!ok){var a=ek();a&&(ok=new Ri(a))}return ok?!!ok.get("yt-remote-use-staging-server"):!1}var vk="";function Fk(a){Xj.call(this,"LocalScreenService");this.o=a;this.j=NaN;Gk(this);this.info("Initializing with "+si(this.screens))}z(Fk,Xj);f=Fk.prototype;f.start=function(){Gk(this)&&this.L("screenChange");!dj("yt-remote-lounge-token-expiration")&&Hk(this);M(this.j);this.j=L(x(this.start,this),1E4)};f.add=function(a,b){Gk(this);Yj(this,a);Ik(this,!1);this.L("screenChange");b(a);a.token||Hk(this)};f.remove=function(a,b){var c=Gk(this);ak(this,a)&&(Ik(this,!1),c=!0);b(a);c&&this.L("screenChange")};
f.Xj=function(a,b,c,d){var e=Gk(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,Ik(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.L("screenChange")};f.P=function(){M(this.j);Fk.K.P.call(this)};function Hk(a){if(a.screens.length){var b=E(a.screens,function(a){return a.id}),c=Oj(a.o,"/pairing/get_lounge_token_batch");Pj(a.o,c,{screen_ids:b.join(",")},x(a.wx,a),x(a.vx,a))}}
f.wx=function(a){Gk(this);var b=this.screens.length;a=a&&a.screens||[];for(var c=0,d=a.length;c<d;++c){var e=a[c],g=this.get(e.screenId);g&&(g.token=e.loungeToken,--b)}Ik(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};f.vx=function(a){this.warn("Requesting lounge tokens failed: "+a)};function Gk(a){var b=qi(yk()),b=eb(b,function(a){return!a.uuid});return Zj(a,b)}function Ik(a,b){xk(E(a.screens,oi));b&&zk()};function Jk(a,b){S.call(this);this.C=b;for(var c=dj("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.C(),g=0,h=e.length;g<h;++g){var k=e[g].id;d[k]=G(c,k)}this.j=d;this.D=a;this.A=this.B=NaN;this.o=null;Kk("Initialized with "+ng(this.j))}z(Jk,S);f=Jk.prototype;f.start=function(){var a=parseInt(dj("yt-remote-fast-check-period")||"0",10);(this.B=y()-144E5<a?0:a)?Lk(this):(this.B=y()+3E5,bj("yt-remote-fast-check-period",this.B),this.Pm())};f.isEmpty=function(){return Ub(this.j)};
f.update=function(){Kk("Updating availability on schedule.");var a=this.C(),b=Ib(this.j,function(b,d){return b&&!!Wj(a,d)},this);Mk(this,b)};function Nk(a,b,c){var d=Oj(a.D,"/pairing/get_screen_availability");Pj(a.D,d,{lounge_token:b.token},x(function(a){a=a.screens||[];for(var d=0,h=a.length;d<h;++d)if(a[d].loungeToken==b.token){c("online"==a[d].status);return}c(!1)},a),x(function(){c(!1)},a))}f.P=function(){M(this.A);this.A=NaN;this.o&&(this.o.abort(),this.o=null);Jk.K.P.call(this)};
function Mk(a,b){var c;i:if(Lb(b)!=Lb(a.j))c=!1;else{c=Pb(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break i}c=!0}c||(Kk("Updated online screens: "+ng(a.j)),a.j=b,a.L("screenChange"));Ok(a)}function Lk(a){isNaN(a.A)||M(a.A);a.A=L(x(a.Pm,a),0<a.B&&a.B<y()?2E4:1E4)}
f.Pm=function(){M(this.A);this.A=NaN;this.o&&this.o.abort();var a=Pk(this);if(Lb(a)){var b=Oj(this.D,"/pairing/get_screen_availability"),c={lounge_token:Pb(a).join(",")};this.o=Pj(this.D,b,c,x(this.wB,this,a),x(this.vB,this))}else Mk(this,{}),Lk(this)};f.wB=function(a,b){this.o=null;var c=Pb(Pk(this));if(Cb(c,Pb(a))){for(var c=b.screens||[],d={},e=0,g=c.length;e<g;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Mk(this,d);Lk(this)}else this.Ua("Changing Screen set during request."),this.Pm()};
f.vB=function(a){this.Ua("Screen availability failed: "+a);this.o=null;Lk(this)};function Kk(a){ii("OnlineScreenService",a)}f.Ua=function(a){ii("OnlineScreenService",a)};function Pk(a){var b={};D(a.C(),function(a){a.token?b[a.token]=a.id:this.Ua("Requesting availability of screen w/o lounge token.")});return b}
function Ok(a){var b=Pb(Ib(a.j,function(a){return a}));zb(b);b.length?bj("yt-remote-online-screen-ids",b.join(","),60):ej("yt-remote-online-screen-ids");a=eb(a.C(),function(a){return!!this.j[a.id]},a);Ak(E(a,oi))};function Qk(a){Xj.call(this,"ScreenService");this.C=a;this.j=this.o=null;this.A=[];this.B={};Rk(this)}z(Qk,Xj);f=Qk.prototype;f.start=function(){this.o.start();this.j.start();this.screens.length&&(this.L("screenChange"),this.j.isEmpty()||this.L("onlineScreenChange"))};f.add=function(a,b,c){this.o.add(a,b,c)};f.remove=function(a,b,c){this.o.remove(a,b,c);this.j.update()};f.Xj=function(a,b,c,d){this.o.contains(a)?this.o.Xj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,this.warn(a),d(Error(a)))};
f.gc=function(a){return a?this.screens:rb(this.screens,eb(this.A,function(a){return!this.contains(a)},this))};f.Ds=function(){return eb(this.gc(!0),function(a){return!!this.j.j[a.id]},this)};
function Sk(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.B[b]);var h=a.gc();if(h=(c?Wj(h,c):null)||Wj(h,b)){h.uuid=b;var k=Tk(a,h);Nk(a.j,k,function(a){e(a?k:null)})}else c?Uk(a,c,x(function(a){var g=Tk(this,new li({name:d,screenId:c,loungeToken:a,dialId:b||""}));Nk(this.j,g,function(a){e(a?g:null)})},a),g):e(null)}
f.Es=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var g=new bk(this.C,a,b,c);g.subscribe("pairingComplete",x(function(a){yi(g);d(Tk(this,a))},this));g.subscribe("pairingFailed",function(a){yi(g);e(a)});g.start();return x(g.stop,g)};function Vk(a,b){for(var c=0,d=a.screens.length;c<d;++c)if(a.screens[c].name==b)return a.screens[c];return null}f.Rw=function(a,b){for(var c=2,d=b(a,c);Vk(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.JD=function(a,b,c,d){Gj(Oj(this.C,"/pairing/get_screen"),{method:"POST",Ib:{pairing_code:a},timeout:5E3,jb:x(function(a,d){var h=new li(d.screen||{});if(!h.name||Vk(this,h.name))h.name=this.Rw(h.name,b);c(Tk(this,h))},this),onError:x(function(a){d(Error("pairing request failed: "+a.status))},this),Ue:x(function(){d(Error("pairing request timed out."))},this)})};f.P=function(){yi(this.o);yi(this.j);Qk.K.P.call(this)};
function Uk(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Ib:{screen_ids:b},method:"POST",context:a,jb:function(a,e){var k=e&&e.screens||[];k[0]&&k[0].screenId==b?c(k[0].loungeToken):d(Error("Missing lounge token in token response"))},onError:function(){d(Error("Request screen lounge token failed"))}};Gj(Oj(a.C,"/pairing/get_lounge_token_batch"),e)}
function Wk(a){a.screens=a.o.gc();var b=a.B,c={},d;for(d in b)c[b[d]]=d;b=0;for(d=a.screens.length;b<d;++b){var e=a.screens[b];e.uuid=c[e.id]||""}a.info("Updated manual screens: "+si(a.screens))}f.Wx=function(){Wk(this);this.L("screenChange");this.j.update()};
function Rk(a){Xk(a);a.o=new Fk(a.C);a.o.subscribe("screenChange",x(a.Wx,a));Wk(a);a.A=qi(dj("yt-remote-automatic-screen-cache")||[]);Xk(a);a.info("Initializing automatic screens: "+si(a.A));a.j=new Jk(a.C,x(a.gc,a,!0));a.j.subscribe("screenChange",x(function(){this.L("onlineScreenChange")},a))}
function Tk(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=Wj(a.A,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.A.push(b),bj("yt-remote-automatic-screen-cache",E(a.A,oi)));Xk(a);a.B[b.uuid]=b.id;bj("yt-remote-device-id-map",a.B,31536E3);return b}function Xk(a){a.B=dj("yt-remote-device-id-map")||{}}Qk.prototype.dispose=Qk.prototype.dispose;function Yk(a,b,c){S.call(this);this.N=c;this.H=a;this.o=b;this.A=null}z(Yk,S);function Zk(a,b){a.A=b;a.L("sessionScreen",a.A)}f=Yk.prototype;f.Xb=function(a){this.ka()||(a&&this.warn(""+a),this.A=null,this.L("sessionScreen",null))};f.info=function(a){ii(this.N,a)};f.warn=function(a){ii(this.N,a)};f.Gs=function(){return null};
f.Wm=function(a){var b=this.o;a?(b.displayStatus=new chrome.cast.ReceiverDisplayStatus(a,[]),b.displayStatus.showStop=!0):b.displayStatus=null;chrome.cast.setReceiverDisplayStatus(b,x(function(){this.info("Updated receiver status for "+b.friendlyName+": "+a)},this),x(function(){this.warn("Failed to update receiver status for: "+b.friendlyName)},this))};f.P=function(){this.Wm("");Yk.K.P.call(this)};function $k(a,b){Yk.call(this,a,b,"CastSession");this.j=null;this.C=0;this.B=null;this.F=x(this.KD,this);this.D=x(this.zC,this);this.C=L(x(function(){al(this,null)},this),12E4)}z($k,Yk);f=$k.prototype;
f.Vm=function(a){if(this.j){if(this.j==a)return;this.warn("Overriding cast sesison with new session object");this.j.removeUpdateListener(this.F);this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D)}this.j=a;this.j.addUpdateListener(this.F);this.j.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.D);this.B&&bl(this);cl(this,"getMdxSessionStatus")};f.Nf=function(a){this.info("launchWithParams: "+ng(a));this.B=a;this.j&&bl(this)};
f.stop=function(){this.j?this.j.stop(x(function(){this.Xb()},this),x(function(){this.Xb(Error("Failed to stop receiver app."))},this)):this.Xb(Error("Stopping cast device witout session."))};f.Wm=v;f.P=function(){this.info("disposeInternal");M(this.C);this.C=0;this.j&&(this.j.removeUpdateListener(this.F),this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.D));this.j=null;$k.K.P.call(this)};
function bl(a){var b=a.B.videoId||a.B.videoIds[a.B.index];b&&cl(a,"flingVideo",{videoId:b,currentTime:a.B.currentTime||0});a.B=null}function cl(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+ng(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,v,x(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+ng(d))}
f.zC=function(a,b){if(!this.ka())if(b){var c=mg(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+ng(c));switch(d){case "mdxSessionStatus":al(this,c.screenId);break;default:this.warn("Unknown youtube message: "+d)}}else this.warn("Unable to parse message.")}else this.warn("No data in message.")};
function al(a,b){M(a.C);b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.A&&a.A.id==b||Sk(a.H,a.o.label,b,a.o.friendlyName,x(function(a){a?Zk(this,a):this.Xb(Error("Unable to fetch screen."))},a),x(a.Xb,a))):a.Xb(Error("Waiting for session status timed out."))}f.Gs=function(){return this.j};f.KD=function(a){this.ka()||a||(this.warn("Cast session died."),this.Xb())};function dl(a,b){Yk.call(this,a,b,"DialSession");this.C=this.G=null;this.I="";this.B=null;this.F=v;this.D=NaN;this.J=x(this.MD,this);this.j=v}z(dl,Yk);f=dl.prototype;f.Vm=function(a){this.C=a;this.C.addUpdateListener(this.J)};f.Nf=function(a){this.B=a;this.F()};f.stop=function(){this.j();this.j=v;M(this.D);this.C?this.C.stop(x(this.Xb,this,null),x(this.Xb,this,"Failed to stop DIAL device.")):this.Xb()};
f.P=function(){this.j();this.j=v;M(this.D);this.C&&this.C.removeUpdateListener(this.J);this.C=null;dl.K.P.call(this)};function el(a){a.j=a.H.Es(a.I,a.o.label,a.o.friendlyName,x(function(a){this.j=v;Zk(this,a)},a),x(function(a){this.j=v;this.Xb(a)},a))}f.MD=function(a){this.ka()||a||(this.warn("DIAL session died."),this.j(),this.j=v,this.Xb())};
function fl(a){var b={};b.pairingCode=a.I;if(a.B){var c=a.B.index||0,d=a.B.currentTime||0;b.v=a.B.videoId||a.B.videoIds[c];b.t=d}Ek()&&(b.env_useStageMdx=1);return Te(b)}f.dm=function(a){this.I=Rj();if(this.B){var b=new chrome.cast.DialLaunchResponse(!0,fl(this));a(b);el(this)}else this.F=x(function(){M(this.D);this.F=v;this.D=NaN;var b=new chrome.cast.DialLaunchResponse(!0,fl(this));a(b);el(this)},this),this.D=L(x(function(){this.F()},this),100)};
f.Xy=function(a,b){Sk(this.H,this.G.receiver.label,a,this.o.friendlyName,x(function(a){a&&a.token?(Zk(this,a),b(new chrome.cast.DialLaunchResponse(!1))):this.dm(b)},this),x(function(a){this.warn("Failed to get DIAL screen: "+a);this.dm(b)},this))};function gl(a,b){Yk.call(this,a,b,"ManualSession");this.j=L(x(this.Nf,this,null),150)}z(gl,Yk);gl.prototype.stop=function(){this.Xb()};gl.prototype.Vm=v;gl.prototype.Nf=function(){M(this.j);this.j=NaN;var a=Wj(this.H.gc(),this.o.label);a?Zk(this,a):this.Xb(Error("No such screen"))};gl.prototype.P=function(){M(this.j);this.j=NaN;gl.K.P.call(this)};function hl(a){S.call(this);this.o=a;this.j=null;this.C=!1;this.A=[];this.B=x(this.oB,this)}z(hl,S);f=hl.prototype;
f.init=function(a,b){chrome.cast.timeout.requestSession=3E4;var c=new chrome.cast.SessionRequest("233637DE");c.dialRequest=new chrome.cast.DialRequest("YouTube");var d=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED,e=a?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION,c=new chrome.cast.ApiConfig(c,x(this.Xq,this),x(this.rB,this),d,e);c.customDialLaunchCallback=x(this.qA,this);chrome.cast.initialize(c,x(function(){this.ka()||(chrome.cast.addReceiverActionListener(this.B),
ei(il),this.o.subscribe("onlineScreenChange",x(this.Fs,this)),this.A=jl(this),chrome.cast.setCustomReceivers(this.A,v,x(function(a){this.Ua("Failed to set initial custom receivers: "+ng(a))},this)),this.L("yt-remote-cast2-availability-change",kl(this)),b(!0))},this),function(a){this.Ua("Failed to initialize API: "+ng(a));b(!1)})};
f.TC=function(a,b){ll("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.A;if(!a||c&&c.id!=a)ll("Unsetting old screen status: "+this.j.o.friendlyName),yi(this.j),this.j=null}if(a&&b){if(!this.j){c=Wj(this.o.gc(),a);if(!c){ll("setConnectedScreenStatus: Unknown screen.");return}var d=ml(this,c);d||(ll("setConnectedScreenStatus: Connected receiver not custom..."),d=new chrome.cast.Receiver(c.uuid?c.uuid:c.id,c.name),d.receiverType=chrome.cast.ReceiverType.CUSTOM,this.A.push(d),chrome.cast.setCustomReceivers(this.A,
v,x(function(a){this.Ua("Failed to set initial custom receivers: "+ng(a))},this)));ll("setConnectedScreenStatus: new active receiver: "+d.friendlyName);nl(this,new gl(this.o,d),!0)}this.j.Wm(b)}else ll("setConnectedScreenStatus: no screen.")};function ml(a,b){return b?F(a.A,function(a){return mi(b,a.label)},a):null}f.UC=function(a){this.ka()?this.Ua("Setting connection data on disposed cast v2"):this.j?this.j.Nf(a):this.Ua("Setting connection data without a session")};
f.stopSession=function(){this.ka()?this.Ua("Stopping session on disposed cast v2"):this.j?(this.j.stop(),yi(this.j),this.j=null):ll("Stopping non-existing session")};f.requestSession=function(){chrome.cast.requestSession(x(this.Xq,this),x(this.zB,this))};f.P=function(){this.o.qa("onlineScreenChange",x(this.Fs,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.B);hi(il);yi(this.j);hl.K.P.call(this)};function ll(a){ii("Controller",a)}f.Ua=function(a){ii("Controller",a)};
function il(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function kl(a){return a.C||!!a.A.length||!!a.j}function nl(a,b,c){yi(a.j);(a.j=b)?(c?a.L("yt-remote-cast2-receiver-resumed",b.o):a.L("yt-remote-cast2-receiver-selected",b.o),b.subscribe("sessionScreen",x(a.Yq,a,b)),b.A?a.L("yt-remote-cast2-session-change",b.A):c&&a.j.Nf(null)):a.L("yt-remote-cast2-session-change",null)}
f.Yq=function(a,b){this.j==a&&(b||nl(this,null),this.L("yt-remote-cast2-session-change",b))};
f.oB=function(a,b){if(!this.ka())if(a)switch(ll("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.o.label!=a.label)ll("onReceiverAction_: Stopping active receiver: "+this.j.o.friendlyName),this.j.stop();else{ll("onReceiverAction_: Casting to active receiver.");this.j.A&&this.L("yt-remote-cast2-session-change",this.j.A);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:nl(this,new gl(this.o,a));break;case chrome.cast.ReceiverType.DIAL:nl(this,
new dl(this.o,a));break;case chrome.cast.ReceiverType.CAST:nl(this,new $k(this.o,a));break;default:this.Ua("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.o.label==a.label?this.j.stop():this.Ua("Stopping receiver w/o session: "+a.friendlyName)}else this.Ua("onReceiverAction_ called without receiver.")};
f.qA=function(a){if(this.ka())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Ua("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.o:null;if(!c||c.label!=b.label)return this.Ua("Receiving DIAL launch request for non-clicked DIAL receiver: "+b.friendlyName),Promise.reject(Error("illegal DIAL launch"));if(c&&c.label==b.label&&c.receiverType!=chrome.cast.ReceiverType.DIAL){if(this.j.A)return ll("Reselecting dial screen."),
this.L("yt-remote-cast2-session-change",this.j.A),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Ua('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);nl(this,new dl(this.o,b))}b=this.j;b.G=a;return b.G.appState==chrome.cast.DialAppState.RUNNING?new Promise(x(b.Xy,b,(b.G.extraData||{}).screenId||null)):new Promise(x(b.dm,b))};
f.Xq=function(a){if(!this.ka()){ll("New cast session ID: "+a.sessionId);var b=a.receiver;if(b.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.j)if(b.receiverType==chrome.cast.ReceiverType.CAST)ll("Got resumed cast session before resumed mdx connection."),nl(this,new $k(this.o,b),!0);else{this.Ua("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.o,d=Wj(this.o.gc(),c.label);d&&mi(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==
chrome.cast.ReceiverType.CAST&&(ll("onSessionEstablished_: manual to cast session change "+b.friendlyName),yi(this.j),this.j=new $k(this.o,b),this.j.subscribe("sessionScreen",x(this.Yq,this,this.j)),this.j.Nf(null));this.j.Vm(a)}}};f.LD=function(){return this.j?this.j.Gs():null};f.zB=function(a){this.ka()||(this.Ua("Failed to estabilish a session: "+ng(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&nl(this,null))};
f.rB=function(a){ll("Receiver availability updated: "+a);if(!this.ka()){var b=kl(this);this.C=a==chrome.cast.ReceiverAvailability.AVAILABLE;kl(this)!=b&&this.L("yt-remote-cast2-availability-change",kl(this))}};
function jl(a){var b=a.o.Ds(),c=a.j&&a.j.o;a=E(b,function(a){c&&mi(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,g=ml(this,a);g?(g.label=b,g.friendlyName=a.name):(g=new chrome.cast.Receiver(b,a.name),g.receiverType=chrome.cast.ReceiverType.CUSTOM);return g},a);c&&(c.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(c=new chrome.cast.Receiver(c.label,c.friendlyName),c.receiverType=chrome.cast.ReceiverType.CUSTOM),a.push(c));return a}
f.Fs=function(){if(!this.ka()){var a=kl(this);this.A=jl(this);ll("Updating custom receivers: "+ng(this.A));chrome.cast.setCustomReceivers(this.A,v,x(function(){this.Ua("Failed to set custom receivers.")},this));var b=kl(this);b!=a&&this.L("yt-remote-cast2-availability-change",b)}};hl.prototype.setLaunchParams=hl.prototype.UC;hl.prototype.setConnectedScreenStatus=hl.prototype.TC;hl.prototype.stopSession=hl.prototype.stopSession;hl.prototype.getCastSession=hl.prototype.LD;
hl.prototype.requestSession=hl.prototype.requestSession;hl.prototype.init=hl.prototype.init;hl.prototype.dispose=hl.prototype.dispose;function ol(a,b,c){pl()?rl(b)&&(sl(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?tl(a,c):lj(function(b,e){b?tl(a,c):(ul("Failed to load cast API: "+e),vl(!1),sl(!1),ej("yt-remote-cast-available"),ej("yt-remote-cast-receiver"),wl(),c(!1))})):ql("Cannot initialize because not running Chrome")}function wl(){ql("dispose");nj();var a=xl();a&&a.dispose();yl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);zl(!1);Ji(Al);Al.length=0}function Bl(){return!!dj("yt-remote-cast-installed")}
function Cl(){var a=dj("yt-remote-cast-receiver");return a?a.friendlyName:null}function Dl(){return Bl()?xl()?yl.getCastSession():(ul("getCastSelector: Cast is not initialized."),null):(ul("getCastSelector: Cast API is not installed!"),null)}
function El(){Bl()?xl()?Fl()?(ql("Requesting cast selector."),yl.requestSession()):(ql("Wait for cast API to be ready to request the session."),Al.push(Hi("yt-remote-cast2-api-ready",El))):ul("requestCastSelector: Cast is not initialized."):ul("requestCastSelector: Cast API is not installed!")}function Gl(a){Fl()?xl().setLaunchParams(a):ul("setLaunchParams called before ready.")}
function Hl(){var a=Il();Fl()?xl().setConnectedScreenStatus(a,"YouTube TV"):ul("setConnectedScreenStatus called before ready.")}var yl=null;function pl(){var a;a=0<=Uc.search(/\ (CrMo|Chrome|CriOS)\//);return Yh||a}function Jl(a,b){yl.init(a,b)}
function rl(a){var b=!1;if(!yl){var c=u("yt.mdx.remote.cloudview.instance_");c||(c=new hl(a),c.subscribe("yt-remote-cast2-availability-change",function(a){bj("yt-remote-cast-available",a);Ki("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){ql("onReceiverSelected: "+a.friendlyName);bj("yt-remote-cast-receiver",a);Ki("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){ql("onReceiverResumed: "+a.friendlyName);
bj("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){ql("onSessionChange: "+ri(a));a||ej("yt-remote-cast-receiver");Ki("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);yl=c}ql("cloudview.createSingleton_: "+b);return b}function xl(){yl||(yl=u("yt.mdx.remote.cloudview.instance_"));return yl}
function tl(a,b){vl(!0);sl(!1);Jl(a,function(a){a?(zl(!0),Ki("yt-remote-cast2-api-ready")):(ul("Failed to initialize cast API."),vl(!1),ej("yt-remote-cast-available"),ej("yt-remote-cast-receiver"),wl());b(a)})}function ql(a){ii("cloudview",a)}function ul(a){ii("cloudview",a)}function vl(a){ql("setCastInstalled_ "+a);bj("yt-remote-cast-installed",a)}function Fl(){return!!u("yt.mdx.remote.cloudview.apiReady_")}function zl(a){ql("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function sl(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var Al=[];function Kl(a,b){this.action=a;this.params=b||null};function Ll(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Ml(a){ii("CAST",a)}function Nl(a){var b=Ol();b&&b.logMessage&&b.logMessage(a)}function Pl(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Ql.length;)Ql.shift()()}
function Rl(){if(!u("yt.mdx.remote.castv2_")&&!Sl&&(lb(Tl)&&tb(Tl,Bk()),Ll())){var a=Ol();a?(a.removeReceiverListener("YouTube",Ul),a.addReceiverListener("YouTube",Ul),Ml("API initialized in the other binary")):(a=new cast.Api,Vl(a),a.addReceiverListener("YouTube",Ul),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),ei(Nl),Ml("API initialized"));Sl=!0}}
function Wl(){var a=Ol();a&&(Ml("API disposed"),hi(Nl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(v),a.removeReceiverListener("YouTube",Ul),Vl(null));Sl=!1;Ql=null;(a=Fh(window,"message",Pl,!1))&&Hh(a)}function Xl(a){var b=ib(Tl,function(b){return b.id==a.id});0<=b&&(Tl[b]={id:a.id,name:a.name,activityId:a.activityId,status:a.status})}
function Ul(a){a.length&&Ml("Updating receivers: "+ng(a));Yl(a);Ki("yt-remote-cast-device-list-update");D(Zl(),function(a){$l(a.id)});D(a,function(a){if(a.isTabProjected){var c=am(a.id);Ml("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){Ki("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function bm(a,b){Ml("Updating "+a+" activity status: "+ng(b));var c=am(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=""),Xl(c),Ki("yt-remote-cast-device-status-update",c)):Ml("Device not found")}function Zl(){Rl();return Tj(Tl)}
function Yl(a){a=E(a,function(a){var c={id:a.id,name:Ha(a.name)};if(a=am(a.id))c.activityId=a.activityId,c.status=a.status;return c});mb(Tl);tb(Tl,a)}function am(a){var b=Zl();return F(b,function(b){return b.id==a})||null}function $l(a){var b=am(a),c=Ol();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");bm(a,b)})}
function cm(a){Rl();var b=am(a),c=Ol();c&&b&&b.activityId?(Ml("Stopping cast activity"),c.stopActivity(b.activityId,pa(bm,a))):Ml("Dropping cast activity stop")}function Ol(){return u("yt.mdx.remote.castapi.api_")}function Vl(a){q("yt.mdx.remote.castapi.api_",a,void 0)}var Sl=!1,Ql=null,Tl=u("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Tl,void 0);function dm(){};function em(){this.j=y()}new em;em.prototype.set=function(a){this.j=a};em.prototype.reset=function(){this.set(y())};em.prototype.get=function(){return this.j};function fm(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.o=!1;this.Dr=!0}fm.prototype.stopPropagation=function(){this.o=!0};fm.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Dr=!1};function gm(a){a.stopPropagation()};var hm=!dd||td(9),im=dd&&!rd("9");!fd||rd("528");ed&&rd("1.9b")||dd&&rd("8")||cd&&rd("9.5")||fd&&rd("528");ed&&!rd("8")||dd&&rd("9");var jm="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function km(a,b){fm.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.j=this.state=null;a&&this.init(a,b)}z(km,fm);
km.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?ed&&(Bg(d,"nodeName")||(d=null)):"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.j=a;a.defaultPrevented&&this.preventDefault()};km.prototype.stopPropagation=function(){km.K.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
km.prototype.preventDefault=function(){km.K.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,im)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};km.prototype.F=function(){return this.j};var lm="closure_listenable_"+(1E6*Math.random()|0);function mm(a){return!(!a||!a[lm])}var nm=0;function om(a,b,c,d,e){this.Te=a;this.j=null;this.src=b;this.type=c;this.pf=!!d;this.Wc=e;this.key=++nm;this.Wf=this.hi=!1}function pm(a){a.Wf=!0;a.Te=null;a.j=null;a.src=null;a.Wc=null};function qm(a){this.src=a;this.j={};this.o=0}qm.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.j[g];a||(a=this.j[g]=[],this.o++);var h=rm(a,b,d,e);-1<h?(b=a[h],c||(b.hi=!1)):(b=new om(b,this.src,g,!!d,e),b.hi=c,a.push(b));return b};qm.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=rm(e,b,c,d);return-1<b?(pm(e[b]),pb(e,b),0==e.length&&(delete this.j[a],this.o--),!0):!1};
function sm(a,b){var c=b.type;if(!(c in a.j))return!1;var d=ob(a.j[c],b);d&&(pm(b),0==a.j[c].length&&(delete a.j[c],a.o--));return d}qm.prototype.removeAll=function(a){a=a&&a.toString();var b=0,c;for(c in this.j)if(!a||c==a){for(var d=this.j[c],e=0;e<d.length;e++)++b,pm(d[e]);delete this.j[c];this.o--}return b};function tm(a,b,c,d,e){a=a.j[b.toString()];b=-1;a&&(b=rm(a,c,d,e));return-1<b?a[b]:null}
function rm(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.Wf&&g.Te==b&&g.pf==!!c&&g.Wc==d)return e}return-1};var um="closure_lm_"+(1E6*Math.random()|0),vm={},wm=0;function xm(a,b,c,d,e){if(ea(b)){for(var g=0;g<b.length;g++)xm(a,b[g],c,d,e);return null}c=ym(c);return mm(a)?a.M(b,c,d,e):zm(a,b,c,!1,d,e)}function zm(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=Am(a);k||(a[um]=k=new qm(a));c=k.add(b,c,d,e,g);if(c.j)return c;d=Bm();c.j=d;d.src=a;d.Te=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(Cm(b.toString()),d);wm++;return c}
function Bm(){var a=Dm,b=hm?function(c){return a.call(b.src,b.Te,c)}:function(c){c=a.call(b.src,b.Te,c);if(!c)return c};return b}function Em(a,b,c,d,e){if(ea(b)){for(var g=0;g<b.length;g++)Em(a,b[g],c,d,e);return null}c=ym(c);return mm(a)?a.md.add(String(b),c,!0,d,e):zm(a,b,c,!0,d,e)}function Fm(a,b,c,d,e){if(ea(b))for(var g=0;g<b.length;g++)Fm(a,b[g],c,d,e);else c=ym(c),mm(a)?a.Ia(b,c,d,e):a&&(a=Am(a))&&(b=tm(a,b,c,!!d,e))&&Gm(b)}
function Gm(a){if(ga(a)||!a||a.Wf)return!1;var b=a.src;if(mm(b))return sm(b.md,a);var c=a.type,d=a.j;b.removeEventListener?b.removeEventListener(c,d,a.pf):b.detachEvent&&b.detachEvent(Cm(c),d);wm--;(c=Am(b))?(sm(c,a),0==c.o&&(c.src=null,b[um]=null)):pm(a);return!0}function Cm(a){return a in vm?vm[a]:vm[a]="on"+a}function Hm(a,b,c,d){var e=!0;if(a=Am(a))if(b=a.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.pf==c&&!g.Wf&&(g=Im(g,d),e=e&&!1!==g)}return e}
function Im(a,b){var c=a.Te,d=a.Wc||a.src;a.hi&&Gm(a);return c.call(d,b)}
function Dm(a,b){if(a.Wf)return!0;if(!hm){var c=b||u("window.event"),d=new km(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){i:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break i}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.o&&0<=k;k--){d.currentTarget=c[k];var l=Hm(c[k],g,!0,d),e=e&&l}for(k=0;!d.o&&k<c.length;k++)d.currentTarget=c[k],l=Hm(c[k],g,!1,d),e=e&&l}return e}return Im(a,new km(b,this))}
function Am(a){a=a[um];return a instanceof qm?a:null}var Jm="__closure_events_fn_"+(1E9*Math.random()>>>0);function ym(a){if(ha(a))return a;a[Jm]||(a[Jm]=function(b){return a.handleEvent(b)});return a[Jm]};function U(){Q.call(this);this.md=new qm(this);this.ta=this;this.aa=null}z(U,Q);U.prototype[lm]=!0;f=U.prototype;f.Ij=function(a){this.aa=a};f.addEventListener=function(a,b,c,d){xm(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Fm(this,a,b,c,d)};
f.X=function(a){var b,c=this.aa;if(c){b=[];for(var d=1;c;c=c.aa)b.push(c),++d}c=this.ta;d=a.type||a;if(w(a))a=new fm(a,c);else if(a instanceof fm)a.target=a.target||c;else{var e=a;a=new fm(d,c);ac(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.o&&0<=h;h--)g=a.currentTarget=b[h],e=Km(g,d,!0,a)&&e;a.o||(g=a.currentTarget=c,e=Km(g,d,!0,a)&&e,a.o||(e=Km(g,d,!1,a)&&e));if(b)for(h=0;!a.o&&h<b.length;h++)g=a.currentTarget=b[h],e=Km(g,d,!1,a)&&e;return e};
f.P=function(){U.K.P.call(this);this.removeAllListeners();this.aa=null};f.M=function(a,b,c,d){return this.md.add(String(a),b,!1,c,d)};f.Ia=function(a,b,c,d){return this.md.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.md?this.md.removeAll(a):0};function Km(a,b,c,d){b=a.md.j[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.Wf&&h.pf==c){var k=h.Te,l=h.Wc||h.src;h.hi&&sm(a.md,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Dr};function Lm(a,b){this.o=new og(a);this.j=b?mg:lg}Lm.prototype.stringify=function(a){return this.o.F(a)};Lm.prototype.parse=function(a){return this.j(a)};function Mm(a){this.o=0;this.A=a||100;this.j=[]}f=Mm.prototype;f.add=function(a){var b=this.j[this.o];this.j[this.o]=a;this.o=(this.o+1)%this.A;return b};f.get=function(a){a=Nm(this,a);return this.j[a]};f.set=function(a,b){a=Nm(this,a);this.j[a]=b};f.Ta=function(){return this.j.length};f.isEmpty=function(){return 0==this.j.length};f.clear=function(){this.o=this.j.length=0};f.Oa=function(){for(var a=this.Ta(),b=this.Ta(),c=[],a=this.Ta()-a;a<b;a++)c.push(this.get(a));return c};
f.Ka=function(){for(var a=[],b=this.Ta(),c=0;c<b;c++)a[c]=c;return a};f.sf=function(a){for(var b=this.Ta(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Nm(a,b){if(b>=a.j.length)throw Error("Out of bounds exception");return a.j.length<a.A?b:(a.o+Number(b))%a.A};function Om(a){m.setTimeout(function(){throw a;},0)}var Pm;
function Qm(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Xc("Presto")&&(a=function(){var a=document.createElement("iframe");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=x(function(a){if(("*"==d||a.origin==d)&&a.data==
c)this.port1.onmessage()},this);b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});if("undefined"!==typeof a&&!Zc()){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.Co;c.Co=null;a()}};return function(a){d.next={Co:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("script")?function(a){var b=document.createElement("script");b.onreadystatechange=
function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};document.documentElement.appendChild(b)}:function(a){m.setTimeout(a,0)}};function Rm(a,b,c){this.C=c;this.A=a;this.B=b;this.o=0;this.j=null}Rm.prototype.get=function(){var a;0<this.o?(this.o--,a=this.j,this.j=a.next,a.next=null):a=this.A();return a};Rm.prototype.put=function(a){this.B(a);this.o<this.C&&(this.o++,a.next=this.j,this.j=a)};function Sm(){this.o=this.j=null}var Um=new Rm(function(){return new Tm},function(a){a.reset()},100);Sm.prototype.add=function(a,b){var c=Um.get();c.set(a,b);this.o?this.o.next=c:this.j=c;this.o=c};Sm.prototype.remove=function(){var a=null;this.j&&(a=this.j,this.j=this.j.next,this.j||(this.o=null),a.next=null);return a};function Tm(){this.next=this.scope=this.j=null}Tm.prototype.set=function(a,b){this.j=a;this.scope=b;this.next=null};Tm.prototype.reset=function(){this.next=this.scope=this.j=null};function Vm(a,b){Wm||Xm();Ym||(Wm(),Ym=!0);Zm.add(a,b)}var Wm;function Xm(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Wm=function(){a.then($m)}}else Wm=function(){var a=$m;!ha(m.setImmediate)||m.Window&&m.Window.prototype&&m.Window.prototype.setImmediate==m.setImmediate?(Pm||(Pm=Qm()),Pm(a)):m.setImmediate(a)}}var Ym=!1,Zm=new Sm;function $m(){for(var a=null;a=Zm.remove();){try{a.j.call(a.scope)}catch(b){Om(b)}Um.put(a)}Ym=!1};function an(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function bn(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function cn(a,b){this.j=0;this.F=void 0;this.B=this.o=this.A=null;this.C=this.D=!1;if(a==dn)en(this,2,b);else try{var c=this;a.call(b,function(a){en(c,2,a)},function(a){en(c,3,a)})}catch(d){en(this,3,d)}}function fn(){this.next=this.context=this.o=this.A=this.j=null;this.B=!1}fn.prototype.reset=function(){this.context=this.o=this.A=this.j=null;this.B=!1};var gn=new Rm(function(){return new fn},function(a){a.reset()},100);function hn(a,b,c){var d=gn.get();d.A=a;d.o=b;d.context=c;return d}
function dn(){}cn.prototype.then=function(a,b,c){return jn(this,ha(a)?a:null,ha(b)?b:null,c)};an(cn);cn.prototype.cancel=function(a){0==this.j&&Vm(function(){var b=new kn(a);ln(this,b)},this)};function ln(a,b){if(0==a.j)if(a.A){var c=a.A;if(c.o){for(var d=0,e=null,g=null,h=c.o;h&&(h.B||(d++,h.j==a&&(e=h),!(e&&1<d)));h=h.next)e||(g=h);e&&(0==c.j&&1==d?ln(c,b):(g?(d=g,d.next==c.B&&(c.B=d),d.next=d.next.next):mn(c),nn(c,e,3,b)))}a.A=null}else en(a,3,b)}
function on(a,b){a.o||2!=a.j&&3!=a.j||pn(a);a.B?a.B.next=b:a.o=b;a.B=b}function jn(a,b,c,d){var e=hn(null,null,null);e.j=new cn(function(a,h){e.A=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.o=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof kn?h(b):a(e)}catch(p){h(p)}}:h});e.j.A=a;on(a,e);return e.j}cn.prototype.G=function(a){this.j=0;en(this,2,a)};cn.prototype.H=function(a){this.j=0;en(this,3,a)};
function en(a,b,c){if(0==a.j){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(bn(c)){a.j=1;b=c;c=a.G;var d=a.H;b instanceof cn?on(b,hn(c||v,d||null,a)):b.then(c,d,a);return}if(ja(c))try{if(d=c.then,ha(d)){qn(a,c,d);return}}catch(e){b=3,c=e}}a.F=c;a.j=b;a.A=null;pn(a);3!=b||c instanceof kn||rn(a,c)}}function qn(a,b,c){function d(b){g||(g=!0,a.H(b))}function e(b){g||(g=!0,a.G(b))}a.j=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function pn(a){a.D||(a.D=!0,Vm(a.I,a))}
function mn(a){var b=null;a.o&&(b=a.o,a.o=b.next,b.next=null);a.o||(a.B=null);return b}cn.prototype.I=function(){for(var a=null;a=mn(this);)nn(this,a,this.j,this.F);this.D=!1};function nn(a,b,c,d){b.j&&(b.j.A=null);if(2==c)b.A.call(b.context,d);else if(null!=b.o){if(!b.B)for(;a&&a.C;a=a.A)a.C=!1;b.o.call(b.context,d)}gn.put(b)}function rn(a,b){a.C=!0;Vm(function(){a.C&&sn.call(null,b)})}var sn=Om;function kn(a){ra.call(this,a)}z(kn,ra);kn.prototype.name="cancel";function tn(a,b){U.call(this);this.j=a||1;this.o=b||m;this.A=x(this.Sw,this);this.B=y()}z(tn,U);f=tn.prototype;f.enabled=!1;f.tc=null;function un(a,b){a.j=b;a.tc&&a.enabled?(a.stop(),a.start()):a.tc&&a.stop()}f.Sw=function(){if(this.enabled){var a=y()-this.B;0<a&&a<.8*this.j?this.tc=this.o.setTimeout(this.A,this.j-a):(this.tc&&(this.o.clearTimeout(this.tc),this.tc=null),this.X("tick"),this.enabled&&(this.tc=this.o.setTimeout(this.A,this.j),this.B=y()))}};
f.start=function(){this.enabled=!0;this.tc||(this.tc=this.o.setTimeout(this.A,this.j),this.B=y())};f.stop=function(){this.enabled=!1;this.tc&&(this.o.clearTimeout(this.tc),this.tc=null)};f.P=function(){tn.K.P.call(this);this.stop();delete this.o};function vn(a,b,c){if(ha(a))c&&(a=x(a,c));else if(a&&"function"==typeof a.handleEvent)a=x(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:m.setTimeout(a,b||0)}function wn(a){m.clearTimeout(a)};function xn(a,b,c){Q.call(this);this.B=a;this.A=b;this.o=c;this.j=x(this.KB,this)}z(xn,Q);f=xn.prototype;f.$f=!1;f.Zg=0;f.Ie=null;f.Ki=function(){this.Ie||this.Zg?this.$f=!0:yn(this)};f.stop=function(){this.Ie&&(wn(this.Ie),this.Ie=null,this.$f=!1)};f.pause=function(){this.Zg++};f.resume=function(){this.Zg--;this.Zg||!this.$f||this.Ie||(this.$f=!1,yn(this))};f.P=function(){xn.K.P.call(this);this.stop()};f.KB=function(){this.Ie=null;this.$f&&!this.Zg&&(this.$f=!1,yn(this))};
function yn(a){a.Ie=vn(a.j,a.A);a.B.call(a.o)};function zn(a){Q.call(this);this.B=a;this.o={}}z(zn,Q);var An=[];f=zn.prototype;f.M=function(a,b,c,d){return Bn(this,a,b,c,d)};function Cn(a,b,c,d,e){Bn(a,b,c,d,!1,e)}function Bn(a,b,c,d,e,g){ea(c)||(c&&(An[0]=c.toString()),c=An);for(var h=0;h<c.length;h++){var k=xm(b,c[h],d||a.handleEvent,e||!1,g||a.B||a);if(!k)break;a.o[k.key]=k}return a}function Dn(a,b,c,d){En(a,b,c,d,void 0)}function Fn(a,b,c,d,e){En(a,b,c,d,!1,e)}
function En(a,b,c,d,e,g){if(ea(c))for(var h=0;h<c.length;h++)En(a,b,c[h],d,e,g);else(b=Em(b,c,d||a.handleEvent,e,g||a.B||a))&&(a.o[b.key]=b)}f.Ia=function(a,b,c,d,e){if(ea(b))for(var g=0;g<b.length;g++)this.Ia(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.B||this,c=ym(c),d=!!d,b=mm(a)?tm(a.md,String(b),c,d,e):a?(a=Am(a))?tm(a,b,c,d,e):null:null,b&&(Gm(b),delete this.o[b.key]);return this};f.removeAll=function(){Hb(this.o,Gm);this.o={}};f.P=function(){zn.K.P.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function Gn(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 Hn(){}Hn.prototype.j=null;function In(a){var b;(b=a.j)||(b={},Jn(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};var Kn;function Ln(){}z(Ln,Hn);function Mn(a){return(a=Jn(a))?new ActiveXObject(a):new XMLHttpRequest}function Jn(a){if(!a.o&&"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.o=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.o}Kn=new Ln;function Nn(a,b,c,d,e){this.j=a;this.A=c;this.F=d;this.D=e||1;this.zb=45E3;this.B=new zn(this);this.o=new tn;un(this.o,250)}f=Nn.prototype;f.Je=null;f.Kc=!1;f.fg=null;f.tn=null;f.eh=null;f.Df=null;f.Id=null;f.ae=null;f.Ve=null;f.vb=null;f.qh=0;f.Nc=null;f.$j=null;f.Ke=null;f.Hg=-1;f.Lr=!0;f.Ae=!1;f.Hl=0;f.vj=null;var On={},Pn={};f=Nn.prototype;f.setTimeout=function(a){this.zb=a};function Qn(a,b,c){a.Df=1;a.Id=uf(b.clone());a.Ve=c;a.C=!0;Rn(a,null)}
function Sn(a,b,c,d,e){a.Df=1;a.Id=uf(b.clone());a.Ve=null;a.C=c;e&&(a.Lr=!1);Rn(a,d)}function Rn(a,b){a.eh=y();Tn(a);a.ae=a.Id.clone();rf(a.ae,"t",a.D);a.qh=0;a.vb=a.j.kl(a.j.lh()?b:null);0<a.Hl&&(a.vj=new xn(x(a.ws,a,a.vb),a.Hl));a.B.M(a.vb,"readystatechange",a.IC);var c=a.Je?Yb(a.Je):{};a.Ve?(a.$j="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.vb.send(a.ae,a.$j,a.Ve,c)):(a.$j="GET",a.Lr&&!fd&&(c.Connection="close"),a.vb.send(a.ae,a.$j,null,c));a.j.Hc(1)}
f.IC=function(a){a=a.target;var b=this.vj;b&&3==Un(a)?b.Ki():this.ws(a)};
f.ws=function(a){try{if(a==this.vb)i:{var b=Un(this.vb),c=this.vb.o,d=this.vb.getStatus();if(dd&&!td(10)||fd&&!rd("420+")){if(4>b)break i}else if(3>b||3==b&&!cd&&!Vn(this.vb))break i;this.Ae||4!=b||7==c||(8==c||0>=d?this.j.Hc(3):this.j.Hc(2));Wn(this);var e=this.vb.getStatus();this.Hg=e;var g=Vn(this.vb);(this.Kc=200==e)?(4==b&&Xn(this),this.C?(Yn(this,b,g),cd&&this.Kc&&3==b&&(this.B.M(this.o,"tick",this.DC),this.o.start())):Zn(this,g),this.Kc&&!this.Ae&&(4==b?this.j.pj(this):(this.Kc=!1,Tn(this)))):
(this.Ke=400==e&&0<g.indexOf("Unknown SID")?3:0,$n(),Xn(this),ao(this))}}catch(h){this.vb&&Vn(this.vb)}finally{}};function Yn(a,b,c){for(var d=!0;!a.Ae&&a.qh<c.length;){var e=bo(a,c);if(e==Pn){4==b&&(a.Ke=4,$n(),d=!1);break}else if(e==On){a.Ke=4;$n();d=!1;break}else Zn(a,e)}4==b&&0==c.length&&(a.Ke=1,$n(),d=!1);a.Kc=a.Kc&&d;d||(Xn(a),ao(a))}f.DC=function(){var a=Un(this.vb),b=Vn(this.vb);this.qh<b.length&&(Wn(this),Yn(this,a,b),this.Kc&&4!=a&&Tn(this))};
function bo(a,b){var c=a.qh,d=b.indexOf("\n",c);if(-1==d)return Pn;c=Number(b.substring(c,d));if(isNaN(c))return On;d+=1;if(d+c>b.length)return Pn;var e=b.substr(d,c);a.qh=d+c;return e}
function co(a,b){a.eh=y();Tn(a);var c=b?window.location.hostname:"";a.ae=a.Id.clone();K(a.ae,"DOMAIN",c);K(a.ae,"t",a.D);try{a.Nc=new ActiveXObject("htmlfile")}catch(d){Xn(a);a.Ke=7;$n();ao(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Nc.open();a.Nc.write(e);a.Nc.close();a.Nc.parentWindow.m=x(a.UB,a);a.Nc.parentWindow.d=x(a.mr,a,!0);a.Nc.parentWindow.rpcClose=x(a.mr,a,!1);c=a.Nc.createElement("div");a.Nc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.ae+'"></iframe>';a.j.Hc(1)}f.UB=function(a){eo(x(this.TB,this,a),0)};f.TB=function(a){this.Ae||(Wn(this),Zn(this,a),Tn(this))};f.mr=function(a){eo(x(this.SB,this,a),0)};f.SB=function(a){this.Ae||(Xn(this),this.Kc=a,this.j.pj(this),this.j.Hc(4))};f.cancel=function(){this.Ae=!0;Xn(this)};function Tn(a){a.tn=y()+a.zb;fo(a,a.zb)}function fo(a,b){if(null!=a.fg)throw Error("WatchDog timer not null");a.fg=eo(x(a.tC,a),b)}
function Wn(a){a.fg&&(m.clearTimeout(a.fg),a.fg=null)}f.tC=function(){this.fg=null;var a=y();0<=a-this.tn?(2!=this.Df&&this.j.Hc(3),Xn(this),this.Ke=2,$n(),ao(this)):fo(this,this.tn-a)};function ao(a){a.j.ip()||a.Ae||a.j.pj(a)}function Xn(a){Wn(a);yi(a.vj);a.vj=null;a.o.stop();a.B.removeAll();if(a.vb){var b=a.vb;a.vb=null;b.abort();b.dispose()}a.Nc&&(a.Nc=null)}function Zn(a,b){try{a.j.Wq(a,b),a.j.Hc(4)}catch(c){}};function go(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;ho(a,b,function(e){e?c(!0):m.setTimeout(function(){go(a,b,c,d,g)},g)})}}function ho(a,b,c){var d=new Image;d.onload=function(){try{io(d),c(!0)}catch(a){}};d.onerror=function(){try{io(d),c(!1)}catch(a){}};d.onabort=function(){try{io(d),c(!1)}catch(a){}};d.ontimeout=function(){try{io(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function io(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function jo(a){this.j=a;this.o=new Lm(null,!0)}f=jo.prototype;f.El=null;f.kc=null;f.wj=!1;f.jp=null;f.Ai=null;f.Fl=null;f.Gl=null;f.uc=null;f.nd=-1;f.Gg=null;f.tg=null;f.connect=function(a){this.Gl=a;a=ko(this.j,null,this.Gl);$n();this.jp=y();var b=this.j.G;null!=b?(this.Gg=b[0],(this.tg=b[1])?(this.uc=1,lo(this)):(this.uc=2,mo(this))):(rf(a,"MODE","init"),this.kc=new Nn(this,0,void 0,void 0,void 0),this.kc.Je=this.El,Sn(this.kc,a,!1,null,!0),this.uc=0)};
function lo(a){var b=ko(a.j,a.tg,"/mail/images/cleardot.gif");uf(b);go(b.toString(),5E3,x(a.ow,a),3,2E3);a.Hc(1)}f.ow=function(a){if(a)this.uc=2,mo(this);else{$n();var b=this.j;b.Fc=b.Jd.nd;no(b,9)}a&&this.Hc(2)};
function mo(a){var b=a.j.H;if(null!=b)$n(),b?($n(),oo(a.j,a,!1)):($n(),oo(a.j,a,!0));else if(a.kc=new Nn(a,0,void 0,void 0,void 0),a.kc.Je=a.El,b=a.j,b=ko(b,b.lh()?a.Gg:null,a.Gl),$n(),!dd||td(10))rf(b,"TYPE","xmlhttp"),Sn(a.kc,b,!1,a.Gg,!1);else{rf(b,"TYPE","html");var c=a.kc;a=Boolean(a.Gg);c.Df=3;c.Id=uf(b.clone());co(c,a)}}f.kl=function(a){return this.j.kl(a)};f.abort=function(){this.kc&&(this.kc.cancel(),this.kc=null);this.nd=-1};f.ip=function(){return!1};
f.Wq=function(a,b){this.nd=a.Hg;if(0==this.uc)if(b){try{var c=this.o.parse(b)}catch(d){c=this.j;c.Fc=this.nd;no(c,2);return}this.Gg=c[0];this.tg=c[1]}else c=this.j,c.Fc=this.nd,no(c,2);else if(2==this.uc)if(this.wj)$n(),this.Fl=y();else if("11111"==b){if($n(),this.wj=!0,this.Ai=y(),c=this.Ai-this.jp,!dd||td(10)||500>c)this.nd=200,this.kc.cancel(),$n(),oo(this.j,this,!0)}else $n(),this.Ai=this.Fl=y(),this.wj=!1};
f.pj=function(){this.nd=this.kc.Hg;if(this.kc.Kc)0==this.uc?this.tg?(this.uc=1,lo(this)):(this.uc=2,mo(this)):2==this.uc&&(a=!1,(a=!dd||td(10)?this.wj:200>this.Fl-this.Ai?!1:!0)?($n(),oo(this.j,this,!0)):($n(),oo(this.j,this,!1)));else{0==this.uc?$n():2==this.uc&&$n();var a=this.j;a.Fc=this.nd;no(a,2)}};f.lh=function(){return this.j.lh()};f.isActive=function(){return this.j.isActive()};f.Hc=function(a){this.j.Hc(a)};function po(a){U.call(this);this.headers=new xe;this.N=a||null;this.A=!1;this.J=this.j=null;this.V=this.G="";this.o=0;this.D="";this.B=this.S=this.F=this.O=!1;this.C=0;this.H=null;this.U="";this.I=this.R=!1}z(po,U);var qo=/^https?$/i,ro=["POST","PUT"];function so(a,b){a.C=Math.max(0,b)}f=po.prototype;
f.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.G+"; newUri="+a);b=b?b.toUpperCase():"GET";this.G=a;this.D="";this.o=0;this.V=b;this.O=!1;this.A=!0;this.j=this.N?Mn(this.N):Mn(Kn);this.J=this.N?In(this.N):In(Kn);this.j.onreadystatechange=x(this.Sq,this);try{dm(to(this,"Opening Xhr")),this.S=!0,this.j.open(b,String(a),!0),this.S=!1}catch(e){dm(to(this,"Error opening Xhr: "+e.message));uo(this,e);return}a=c||"";var g=this.headers.clone();
d&&Fe(d,function(a,b){g.set(b,a)});d=F(g.Ka(),vo);c=m.FormData&&a instanceof m.FormData;!G(ro,b)||d||c||g.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");g.forEach(function(a,b){this.j.setRequestHeader(b,a)},this);this.U&&(this.j.responseType=this.U);"withCredentials"in this.j&&(this.j.withCredentials=this.R);try{wo(this),0<this.C&&(this.I=xo(this.j),dm(to(this,"Will abort after "+this.C+"ms if incomplete, xhr2 "+this.I)),this.I?(this.j.timeout=this.C,this.j.ontimeout=x(this.zb,
this)):this.H=vn(this.zb,this.C,this)),dm(to(this,"Sending request")),this.F=!0,this.j.send(a),this.F=!1}catch(h){dm(to(this,"Send error: "+h.message)),uo(this,h)}};function xo(a){return dd&&rd(9)&&ga(a.timeout)&&n(a.ontimeout)}function vo(a){return"content-type"==a.toLowerCase()}f.zb=function(){"undefined"!=typeof aa&&this.j&&(this.D="Timed out after "+this.C+"ms, aborting",this.o=8,to(this,this.D),this.X("timeout"),this.abort(8))};
function uo(a,b){a.A=!1;a.j&&(a.B=!0,a.j.abort(),a.B=!1);a.D=b;a.o=5;yo(a);zo(a)}function yo(a){a.O||(a.O=!0,a.X("complete"),a.X("error"))}f.abort=function(a){this.j&&this.A&&(to(this,"Aborting"),this.A=!1,this.B=!0,this.j.abort(),this.B=!1,this.o=a||7,this.X("complete"),this.X("abort"),zo(this))};f.P=function(){this.j&&(this.A&&(this.A=!1,this.B=!0,this.j.abort(),this.B=!1),zo(this,!0));po.K.P.call(this)};f.Sq=function(){this.ka()||(this.S||this.F||this.B?Ao(this):this.nB())};f.nB=function(){Ao(this)};
function Ao(a){if(a.A&&"undefined"!=typeof aa)if(a.J[1]&&4==Un(a)&&2==a.getStatus())to(a,"Local request error detected and ignored");else if(a.F&&4==Un(a))vn(a.Sq,0,a);else if(a.X("readystatechange"),4==Un(a)){to(a,"Request complete");a.A=!1;try{var b=a.getStatus(),c;i:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break i;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var g=Ie(String(a.G))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!qo.test(g?g.toLowerCase():"")}d=e}if(d)a.X("complete"),a.X("success");else{a.o=6;var k;try{k=2<Un(a)?a.j.statusText:""}catch(l){k=""}a.D=k+" ["+a.getStatus()+"]";yo(a)}}finally{zo(a)}}}function zo(a,b){if(a.j){wo(a);var c=a.j,d=a.J[0]?v:null;a.j=null;a.J=null;b||a.X("ready");try{c.onreadystatechange=d}catch(e){}}}function wo(a){a.j&&a.I&&(a.j.ontimeout=null);ga(a.H)&&(wn(a.H),a.H=null)}f.isActive=function(){return!!this.j};function Un(a){return a.j?a.j.readyState:0}
f.getStatus=function(){try{return 2<Un(this)?this.j.status:-1}catch(a){return-1}};function Vn(a){try{return a.j?a.j.responseText:""}catch(b){return""}}function to(a,b){return b+" ["+a.V+" "+a.G+" "+a.getStatus()+"]"};function Bo(a,b,c){this.F=a||null;this.j=1;this.o=[];this.B=[];this.C=new Lm(null,!0);this.G=b||null;this.H=null!=c?c:null}function Co(a,b){this.j=a;this.map=b;this.context=null}f=Bo.prototype;f.Ag=null;f.Sb=null;f.nb=null;f.Dl=null;f.Ci=null;f.wo=null;f.Li=null;f.Wg=0;f.xz=0;f.Fb=null;f.Od=null;f.jd=null;f.Ce=null;f.Jd=null;f.Zj=null;f.Lf=-1;f.Wp=-1;f.Fc=-1;f.Bg=0;f.nf=0;f.Be=8;var Do=new U;function Eo(a){fm.call(this,"statevent",a)}z(Eo,fm);
function Fo(a,b){fm.call(this,"timingevent",a);this.size=b}z(Fo,fm);function Go(a){fm.call(this,"serverreachability",a)}z(Go,fm);f=Bo.prototype;f.connect=function(a,b,c,d,e){$n();this.Dl=b;this.Ag=c||{};d&&n(e)&&(this.Ag.OSID=d,this.Ag.OAID=e);this.Jd=new jo(this);this.Jd.El=null;this.Jd.o=this.C;this.Jd.connect(a)};
function Ho(a){Io(a);if(3==a.j){var b=a.Wg++,c=a.Ci.clone();K(c,"SID",a.A);K(c,"RID",b);K(c,"TYPE","terminate");Jo(a,c);b=new Nn(a,0,a.A,b,void 0);b.Df=2;b.Id=uf(c.clone());(new Image).src=b.Id;b.eh=y();Tn(b)}Ko(a)}function Io(a){a.Jd&&(a.Jd.abort(),a.Jd=null);a.nb&&(a.nb.cancel(),a.nb=null);a.jd&&(m.clearTimeout(a.jd),a.jd=null);Lo(a);a.Sb&&(a.Sb.cancel(),a.Sb=null);a.Od&&(m.clearTimeout(a.Od),a.Od=null)}
function Mo(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.o.push(new Co(a.xz++,b));2!=a.j&&3!=a.j||No(a)}f.ip=function(){return 0==this.j};function No(a){a.Sb||a.Od||(a.Od=eo(x(a.ir,a),0),a.Bg=0)}f.ir=function(a){this.Od=null;Oo(this,a)};
function Oo(a,b){if(1==a.j){if(!b){a.Wg=Math.floor(1E5*Math.random());var c=a.Wg++,d=new Nn(a,0,"",c,void 0);d.Je=null;var e=Po(a),g=a.Ci.clone();K(g,"RID",c);a.F&&K(g,"CVER",a.F);Jo(a,g);Qn(d,g,e);a.Sb=d;a.j=2}}else 3==a.j&&(b?Qo(a,b):0!=a.o.length&&(a.Sb||Qo(a)))}
function Qo(a,b){var c,d;b?6<a.Be?(a.o=a.B.concat(a.o),a.B.length=0,c=a.Wg-1,d=Po(a)):(c=b.F,d=b.Ve):(c=a.Wg++,d=Po(a));var e=a.Ci.clone();K(e,"SID",a.A);K(e,"RID",c);K(e,"AID",a.Lf);Jo(a,e);c=new Nn(a,0,a.A,c,a.Bg+1);c.Je=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Sb=c;Qn(c,e,d)}function Jo(a,b){if(a.Fb){var c=a.Fb.ap(a);c&&Hb(c,function(a,c){K(b,c,a)})}}
function Po(a){var b=Math.min(a.o.length,1E3),c=["count="+b],d;6<a.Be&&0<b?(d=a.o[0].j,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.o[e].j,h=a.o[e].map,g=6>=a.Be?e:g-d;try{Fe(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.B=a.B.concat(a.o.splice(0,b));return c.join("&")}function Ro(a){a.nb||a.jd||(a.D=1,a.jd=eo(x(a.gr,a),0),a.nf=0)}
function So(a){if(a.nb||a.jd||3<=a.nf)return!1;a.D++;a.jd=eo(x(a.gr,a),To(a,a.nf));a.nf++;return!0}f.gr=function(){this.jd=null;this.nb=new Nn(this,0,this.A,"rpc",this.D);this.nb.Je=null;this.nb.Hl=0;var a=this.wo.clone();K(a,"RID","rpc");K(a,"SID",this.A);K(a,"CI",this.Zj?"0":"1");K(a,"AID",this.Lf);Jo(this,a);if(!dd||td(10))K(a,"TYPE","xmlhttp"),Sn(this.nb,a,!0,this.Li,!1);else{K(a,"TYPE","html");var b=this.nb,c=Boolean(this.Li);b.Df=3;b.Id=uf(a.clone());co(b,c)}};
function oo(a,b,c){a.Zj=c;a.Fc=b.nd;a.Cw(1,0);a.Ci=ko(a,null,a.Dl);No(a)}
f.Wq=function(a,b){if(0!=this.j&&(this.nb==a||this.Sb==a))if(this.Fc=a.Hg,this.Sb==a&&3==this.j)if(7<this.Be){var c;try{c=this.C.parse(b)}catch(d){c=null}if(ea(c)&&3==c.length)if(0==c[0])i:{if(!this.jd){if(this.nb)if(this.nb.eh+3E3<this.Sb.eh)Lo(this),this.nb.cancel(),this.nb=null;else break i;So(this);$n()}}else this.Wp=c[1],0<this.Wp-this.Lf&&37500>c[2]&&this.Zj&&0==this.nf&&!this.Ce&&(this.Ce=eo(x(this.Rz,this),6E3));else no(this,11)}else"y2f%"!=b&&no(this,11);else if(this.nb==a&&Lo(this),!A(b)){c=
this.C.parse(b);ea(c);for(var e=0;e<c.length;e++){var g=c[e];this.Lf=g[0];g=g[1];2==this.j?"c"==g[0]?(this.A=g[1],this.Li=g[2],g=g[3],null!=g?this.Be=g:this.Be=6,this.j=3,this.Fb&&this.Fb.Go(this),this.wo=ko(this,this.lh()?this.Li:null,this.Dl),Ro(this)):"stop"==g[0]&&no(this,7):3==this.j&&("stop"==g[0]?no(this,7):"noop"!=g[0]&&this.Fb&&this.Fb.Fo(this,g),this.nf=0)}}};f.Rz=function(){null!=this.Ce&&(this.Ce=null,this.nb.cancel(),this.nb=null,So(this),$n())};
function Lo(a){null!=a.Ce&&(m.clearTimeout(a.Ce),a.Ce=null)}
f.pj=function(a){var b;if(this.nb==a)Lo(this),this.nb=null,b=2;else if(this.Sb==a)this.Sb=null,b=1;else return;this.Fc=a.Hg;if(0!=this.j)if(a.Kc)1==b?(y(),Do.X(new Fo(Do,a.Ve?a.Ve.length:0)),No(this),this.B.length=0):Ro(this);else{var c=a.Ke,d;if(!(d=3==c||7==c||0==c&&0<this.Fc)){if(d=1==b)this.Sb||this.Od||1==this.j||2<=this.Bg?d=!1:(this.Od=eo(x(this.ir,this,a),To(this,this.Bg)),this.Bg++,d=!0);d=!(d||2==b&&So(this))}if(d)switch(c){case 1:no(this,5);break;case 4:no(this,10);break;case 3:no(this,
6);break;case 7:no(this,12);break;default:no(this,2)}}};function To(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}f.Cw=function(a){if(!G(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};function no(a,b){if(2==b||9==b){var c=null;a.Fb&&(c=null);var d=x(a.hD,a);c||(c=new J("//www.google.com/images/cleardot.gif"),uf(c));ho(c.toString(),1E4,d)}else $n();Uo(a,b)}f.hD=function(a){a?$n():($n(),Uo(this,8))};
function Uo(a,b){a.j=0;a.Fb&&a.Fb.Eo(a,b);Ko(a);Io(a)}function Ko(a){a.j=0;a.Fc=-1;if(a.Fb)if(0==a.B.length&&0==a.o.length)a.Fb.Yk(a);else{var b=sb(a.B),c=sb(a.o);a.B.length=0;a.o.length=0;a.Fb.Yk(a,b,c)}}function ko(a,b,c){var d=vf(c);if(""!=d.rb)b&&bf(d,b+"."+d.rb),cf(d,d.Cd);else var e=window.location,d=wf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.Ag&&Hb(a.Ag,function(a,b){K(d,b,a)});K(d,"VER",a.Be);Jo(a,d);return d}
f.kl=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new po;a.R=!1;return a};f.isActive=function(){return!!this.Fb&&this.Fb.isActive(this)};function eo(a,b){if(!ha(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.Hc=function(){Do.X(new Go(Do))};function $n(){Do.X(new Eo(Do))}f.lh=function(){return!(!dd||td(10))};function Vo(){}f=Vo.prototype;f.Go=function(){};f.Fo=function(){};f.Eo=function(){};f.Yk=function(){};
f.ap=function(){return{}};f.isActive=function(){return!0};function Wo(a,b){tn.call(this);if(ha(a))b&&(a=x(a,b));else if(a&&ha(a.handleEvent))a=x(a.handleEvent,a);else throw Error("Invalid listener argument");this.F=a;xm(this,"tick",x(this.D,this));this.stop();un(this,5E3+2E4*Math.random())}z(Wo,tn);Wo.prototype.C=0;Wo.prototype.D=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);un(this,a)}this.F()};Wo.prototype.start=function(){Wo.K.start.call(this);this.C=y()+this.j};Wo.prototype.stop=function(){this.C=0;Wo.K.stop.call(this)};function Xo(a,b){this.J=a;this.B=b;this.A=new Bi;this.o=new Wo(this.ED,this);this.j=null;this.I=!1;this.D=null;this.H="";this.G=this.C=0;this.F=[]}z(Xo,Vo);f=Xo.prototype;f.subscribe=function(a,b,c){return this.A.subscribe(a,b,c)};f.qa=function(a,b,c){return this.A.qa(a,b,c)};f.Pb=function(a){return this.A.Pb(a)};f.L=function(a,b){return this.A.L.apply(this.A,arguments)};f.dispose=function(){this.I||(this.I=!0,this.A.clear(),Yo(this),yi(this.A))};f.ka=function(){return this.I};
function Zo(a){return{firstTestResults:[""],secondTestResults:!a.j.Zj,sessionId:a.j.A,arrayId:a.j.Lf}}f.connect=function(a,b,c){if(!this.j||2!=this.j.j){this.H="";this.o.stop();this.D=a||null;this.C=b||0;a=this.J+"/test";b=this.J+"/bind";var d=new Bo("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Fb=null);d.Fb=this;this.j=d;e?this.j.connect(a,b,this.B,e.A,e.Lf):c?this.j.connect(a,b,this.B,c.sessionId,c.arrayId):this.j.connect(a,b,this.B)}};
function Yo(a,b){a.G=b||0;a.o.stop();a.j&&(3==a.j.j&&Oo(a.j),Ho(a.j));a.G=0}f.Go=function(){var a=this.o;a.stop();un(a,5E3+2E4*Math.random());this.D=null;this.C=0;if(this.F.length){a=this.F;this.F=[];for(var b=0,c=a.length;b<c;++b)Mo(this.j,a[b])}this.L("handlerOpened")};f.Eo=function(a,b){var c=2==b&&401==this.j.Fc;if(4!=b&&!c){if(6==b||410==this.j.Fc)c=this.o,c.stop(),un(c,500);this.o.start()}this.L("handlerError",b)};
f.Yk=function(a,b,c){if(!this.o.enabled)this.L("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.F.push(c[a].map)};f.ap=function(){var a={v:2};this.H&&(a.gsessionid=this.H);0!=this.C&&(a.ui=""+this.C);0!=this.G&&(a.ui=""+this.G);this.D&&ac(a,this.D);return a};f.Fo=function(a,b){if("S"==b[0])this.H=b[1];else if("gracefulReconnect"==b[0]){var c=this.o;c.stop();un(c,500);this.o.start();Ho(this.j)}else this.L("handlerMessage",new Kl(b[0],b[1]))};
function $o(a,b){(a.B.loungeIdToken=b)||a.o.stop()}f.ED=function(){this.o.stop();var a=this.j,b=0;a.nb&&b++;a.Sb&&b++;0!=b?this.o.start():this.connect(this.D,this.C)};function ap(){this.j=[];this.o=[]}function bp(a){lb(a.j)&&(a.j=a.o,a.j.reverse(),a.o=[])}function cp(a,b){a.o.push(b)}function dp(a){bp(a);return a.j.pop()}f=ap.prototype;f.Ta=function(){return this.j.length+this.o.length};f.isEmpty=function(){return lb(this.j)&&lb(this.o)};f.clear=function(){this.j=[];this.o=[]};f.contains=function(a){return G(this.j,a)||G(this.o,a)};f.remove=function(a){var b=db(this.j,a);if(0>b)return ob(this.o,a);pb(this.j,b);return!0};
f.Oa=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);for(var c=this.o.length,b=0;b<c;++b)a.push(this.o[b]);return a};function ep(a){this.reset(a)}function fp(a,b){if(a.o)throw Error(b+" is not allowed in V3.");}function gp(a){a.volume=-1;a.muted=!1;a.A=null;a.j=-1;a.B=null;a.C=0;a.D=y()}f=ep.prototype;f.reset=function(a){this.videoIds=[];this.o="";hp(this);a&&(this.videoIds=a.videoIds,this.index=a.index,this.o=a.listId,this.videoId=a.videoId,this.j=a.playerState,this.B=a.errorReason,this.volume=a.volume,this.muted=a.muted,this.A=a.trackData,this.C=a.playerTime,this.D=a.playerTimeAt)};
function hp(a){a.index=-1;a.videoId="";gp(a)}f.tb=function(){return 1==this.j};function ip(a){return a.o?a.videoId:a.videoIds[a.index]}function jp(a,b){a.C=b;a.D=y()}function kp(a){switch(a.j){case 1:return(y()-a.D)/1E3+a.C;case -1E3:return 0}return a.C}f.setVideoId=function(a){fp(this,"setVideoId");var b=this.index;this.index=cb(this.videoIds,a);b!=this.index&&gp(this);return-1!=b};function lp(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&gp(a)}
function mp(a,b,c){fp(a,"setPlaylist");c=c||ip(a);Cb(a.videoIds,b)&&c==ip(a)||(a.videoIds=sb(b),a.setVideoId(c))}f.add=function(a){fp(this,"add");return a&&!G(this.videoIds,a)?(this.videoIds.push(a),!0):!1};f.remove=function(a){fp(this,"remove");var b=ip(this);return ob(this.videoIds,a)?(this.index=cb(this.videoIds,b),!0):!1};
function np(a){var b={};b.videoIds=sb(a.videoIds);b.index=a.index;b.listId=a.o;b.videoId=a.videoId;b.playerState=a.j;b.errorReason=a.B;b.volume=a.volume;b.muted=a.muted;b.trackData=Zb(a.A);b.playerTime=a.C;b.playerTimeAt=a.D;return b}f.clone=function(){return new ep(np(this))};function op(a,b){S.call(this);this.o=0;this.B=a;this.F=[];this.D=new ap;this.C=NaN;this.A=this.j=null;this.I=x(this.Wz,this);this.G=x(this.Xg,this);this.H=x(this.Vz,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.Cn,this),pp(this))):c=3;0!=c&&(b?this.Cn(c):L(x(function(){this.Cn(c)},this),0));qp(this,Dl())}z(op,S);function rp(a){return new ep(a.B.getPlayerContextData())}f=op.prototype;
f.play=function(){1==this.o?(this.j?this.j.play(null,v,x(function(){this.Ua("Failed to play video with cast v2 channel.");sp(this,"play")},this)):sp(this,"play"),tp(this,1,kp(rp(this))),up(this)):vp(this,this.play)};f.pause=function(){1==this.o?(this.j?this.j.pause(null,v,x(function(){this.Ua("Failed to pause video with cast v2 channel.");sp(this,"pause")},this)):sp(this,"pause"),tp(this,2,kp(rp(this))),up(this)):vp(this,this.pause)};
f.Bs=function(a){if(1==this.o){if(this.j){var b=rp(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.tb()||3==b.j?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,v,x(function(){this.Ua("Failed to seek in video with cast v2 channel.");sp(this,"seekTo",{newTime:a})},this))}else sp(this,"seekTo",{newTime:a});tp(this,3,a);up(this)}else vp(this,pa(this.Bs,a))};
f.stop=function(){if(1==this.o){this.j?this.j.stop(null,v,x(function(){this.Ua("Failed to stop video with cast v2 channel.");sp(this,"stopVideo")},this)):sp(this,"stopVideo");var a=rp(this);hp(a);wp(this,a);up(this)}else vp(this,this.stop)};
f.setVolume=function(a,b){if(1==this.o){var c=rp(this);if(this.A){if(c.volume!=a){var d=Math.round(a)/100;this.A.setReceiverVolumeLevel(d,x(function(){xp("set receiver volume: "+d)},this),x(function(){this.Ua("failed to set receiver volume.")},this))}c.muted!=b&&this.A.setReceiverMuted(b,x(function(){xp("set receiver muted: "+b)},this),x(function(){this.Ua("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);sp(this,"setVolume",e)}c.muted=b;c.volume=
a;wp(this,c);up(this)}else vp(this,pa(this.setVolume,a,b))};f.Zm=function(a,b){if(1==this.o){var c=rp(this);if(b){c.A={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:ng(b.style)};ac(d,c.A);sp(this,"setSubtitlesTrack",d)}else d={videoId:a},sp(this,"setSubtitlesTrack",d);wp(this,c)}else vp(this,pa(this.Zm,a,b))};
function yp(a,b,c,d,e){var g=rp(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||g.o};lp(g,b,d);n(c)&&(jp(g,c),h.currentTime=c);sp(a,"setPlaylist",h);e||wp(a,g)}f.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.L("proxyStateChange",a,this.o)}op.K.dispose.call(this)};f.P=function(){M(this.C);this.C=NaN;zp(this);this.B=null;this.D.clear();qp(this,null);op.K.P.call(this)};
function pp(a){D(["remotePlayerChange","remoteQueueChange"],function(a){this.F.push(this.B.subscribe(a,pa(this.hB,a),this))},a)}function zp(a){D(a.F,function(a){this.B.unsubscribeByKey(a)},a);a.F.length=0}function vp(a,b){50>a.D.Ta()&&cp(a.D,b)}function tp(a,b,c){var d=rp(a);jp(d,c);-1E3!=d.j&&(d.j=b);wp(a,d)}function sp(a,b,c){a.B.sendMessage(b,c)}function wp(a,b){zp(a);a.B.setPlayerContextData(np(b));pp(a)}
f.Cn=function(a){if((a!=this.o||2==a)&&3!=this.o&&0!=a){var b=this.o;this.o=a;this.L("proxyStateChange",b,a);if(1==a)for(;!this.D.isEmpty();)dp(this.D).apply(this);else 3==a&&this.dispose()}};function up(a){M(a.C);a.C=L(x(function(){this.L("remotePlayerChange");this.C=NaN},a),2E3)}f.hB=function(a){("remotePlayerChange"!=a||isNaN(this.C))&&this.L(a)};
function qp(a,b){a.A&&(a.A.removeUpdateListener(a.I),a.A.removeMediaListener(a.G),a.Xg(null));a.A=b;a.A&&(xp("Setting cast session: "+a.A.sessionId),a.A.addUpdateListener(a.I),a.A.addMediaListener(a.G),a.A.media.length&&a.Xg(a.A.media[0]))}
f.Wz=function(a){if(!a)this.Xg(null),qp(this,null);else if(this.A.receiver.volume){a=this.A.receiver.volume;var b=rp(this);if(b.volume!=a.level||b.muted!=a.muted)xp("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,wp(this,b),up(this)}};f.Xg=function(a){xp("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.H);if(this.j=a)this.j.addUpdateListener(this.H),Ap(this),up(this)};
function Ap(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=rp(a);c.contentId!=d.videoId&&xp("Cast changing video to: "+c.contentId);d.videoId=c.contentId;d.j=b.playerState;jp(d,a.j.getEstimatedTime());wp(a,d)}else xp("No cast media video. Ignoring state update.")}f.Vz=function(a){a?(Ap(this),up(this)):this.Xg(null)};function xp(a){ii("CP",a)}f.Ua=function(a){ii("CP",a)};function Bp(a,b,c){S.call(this);this.R=a;this.F=[];this.F.push(P(window,"beforeunload",x(this.$w,this)));this.o=[];this.ia=new ep;3==c["mdx-version"]&&(this.ia.o="RQ"+b.token);this.G=b.id;this.j=Cp(this,c);this.j.subscribe("handlerOpened",this.aA,this);this.j.subscribe("handlerClosed",this.Xz,this);this.j.subscribe("handlerError",this.Yz,this);this.ia.o?this.j.subscribe("handlerMessage",this.Zz,this):this.j.subscribe("handlerMessage",this.$z,this);$o(this.j,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.ia.videoId;sk()&&bj("yt-remote-session-video-id",a)},this)}z(Bp,S);f=Bp.prototype;f.ug=NaN;f.Nm=!1;f.xj=NaN;f.Jm=NaN;f.pi=NaN;f.Pi=NaN;
f.connect=function(a,b){if(b){if(this.ia.o){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.ia.o=c);this.ia.videoId=d;this.ia.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.ia.videoIds=[d];this.ia.index=0}this.ia.state=3;jp(this.ia,g);this.Pa("Connecting with setPlaylist and params: "+ng(h));this.j.connect({method:"setPlaylist",
params:ng(h)},a,wk())}else this.Pa("Connecting without params"),this.j.connect({},a,wk());Dp(this)};f.dispose=function(){this.ka()||(this.L("beforeDispose"),Ep(this,3));Bp.K.dispose.call(this)};f.P=function(){Fp(this);Gp(this);Hp(this);M(this.pi);this.pi=NaN;M(this.Pi);this.Pi=NaN;this.B=null;Hh(this.F);this.F.length=0;this.j.dispose();Bp.K.P.call(this);this.o=this.ia=this.j=null};f.Pa=function(a){ii("conn",a)};f.$w=function(){this.A(2)};function Cp(a,b){return new Xo(Oj(a.R,"/bc",void 0,!1),b)}
function Ep(a,b){a.L("proxyStateChange",b)}function Dp(a){a.ug=L(x(function(){this.Pa("Connecting timeout");this.A(1)},a),2E4)}function Fp(a){M(a.ug);a.ug=NaN}function Hp(a){M(a.xj);a.xj=NaN}function Ip(a){Gp(a);a.Jm=L(x(function(){Jp(this,"getNowPlaying")},a),2E4)}function Gp(a){M(a.Jm);a.Jm=NaN}function Kp(a){var b=a.j;return!!b.j&&3==b.j.j&&isNaN(a.ug)}
f.aA=function(){this.Pa("Channel opened");this.Nm&&(this.Nm=!1,Hp(this),this.xj=L(x(function(){this.Pa("Timing out waiting for a screen.");this.A(1)},this),15E3));Ck(Zo(this.j),this.G)};f.Xz=function(){this.Pa("Channel closed");isNaN(this.ug)?Dk(!0):Dk();this.dispose()};f.Yz=function(a){Dk();isNaN(this.C())?(this.Pa("Channel error: "+a+" without reconnection"),this.dispose()):(this.Nm=!0,this.Pa("Channel error: "+a+" with reconnection in "+this.C()+" ms"),Ep(this,2))};
function Lp(a,b){b&&(Fp(a),Hp(a));b==Kp(a)?b&&(Ep(a,1),Jp(a,"getSubtitlesTrack")):b?(a.D()&&a.ia.reset(),Ep(a,1),Jp(a,"getNowPlaying"),Mp(a)):a.A(1)}function Np(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ia.videoId&&(Ub(b.params)?a.ia.A=null:a.ia.A=b.params,a.L("remotePlayerChange"))}function Op(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.ia.o=b.params.listId||a.ia.o;lp(a.ia,c,d);a.L("remoteQueueChange")}
function Pp(a,b){b.params=b.params||{};Op(a,b);Qp(a,b)}function Qp(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);jp(a.ia,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.ia.j&&(c=-1E3);a.ia.j=c;var d=null;-1E3==c&&(d=a.ia.B||"unknown",n(b.params.currentError)&&(d=lg(b.params.currentError).reason||d));a.ia.B=d;1==a.ia.j?Ip(a):Gp(a);a.L("remotePlayerChange")}
function Rp(a,b){var c="true"==b.params.muted;a.ia.volume=parseInt(b.params.volume,10);a.ia.muted=c;a.L("remotePlayerChange")}
f.Zz=function(a){a.params?this.Pa("Received: action="+a.action+", params="+ng(a.params)):this.Pa("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=lg(a.params.devices);this.o=E(a,function(a){return new ik(a)});a=!!F(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Lp(this,a);break;case "loungeScreenConnected":Lp(this,!0);break;case "loungeScreenDisconnected":qb(this.o,function(a){return"LOUNGE_SCREEN"==a.type});Lp(this,!1);break;case "remoteConnected":var b=new ik(lg(a.params.device));
F(this.o,function(a){return a.equals(b)})||nb(this.o,b);break;case "remoteDisconnected":b=new ik(lg(a.params.device));qb(this.o,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Op(this,a);break;case "nowPlaying":Pp(this,a);break;case "onStateChange":Qp(this,a);break;case "onVolumeChanged":Rp(this,a);break;case "onSubtitlesTrackChanged":Np(this,a);break;default:this.Pa("Unrecognized action: "+a.action)}};
f.$z=function(a){a.params?this.Pa("Received: action="+a.action+", params="+ng(a.params)):this.Pa("Received: action="+a.action);Sp(this,a);Tp(this,a);if(Kp(this)){var b=this.ia.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=lg(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==ip(this.ia)&&
(delete a.params.videoId,Ub(a.params)?this.ia.A=null:this.ia.A=a.params,this.L("remotePlayerChange"));else if(ip(this.ia)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=ip(this.ia)):this.ia.setVideoId(""),e&&(e=e.split(","),mp(this.ia,e,d))):mp(this.ia,[]),this.ia.add(d)&&Jp(this,"getPlaylist"),d&&this.ia.setVideoId(d),b.index==this.ia.index&&Cb(b.videoIds,this.ia.videoIds)||this.L("remoteQueueChange"),
n(g)&&(b=parseInt(g,10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.ia.j&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.ia.j,this.ia.j=b,d=null,-1E3==b&&(d=this.ia.B||"unknown",p&&(d=p.reason||d)),c=c||this.ia.B!=d,this.ia.B=d,1==this.ia.j?Ip(this):Gp(this)),"onError"!=a.action||-1!=this.ia.j&&-1E3!=this.ia.j||(a=lg(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==ip(this.ia)&&(this.ia.j=-1E3,this.ia.B=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),jp(this.ia,isNaN(b)?0:b),c=!0),
n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.ia.volume!=b,this.ia.volume=b),n(l)&&(l="true"==l,c=c||this.ia.muted!=l,this.ia.muted=l)),c&&this.L("remotePlayerChange")}};
function Sp(a,b){switch(b.action){case "loungeStatus":var c=lg(b.params.devices);a.o=E(c,function(a){return new ik(a)});break;case "loungeScreenDisconnected":qb(a.o,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new ik(lg(b.params.device));F(a.o,function(a){return a.equals(d)})||nb(a.o,d);break;case "remoteDisconnected":d=new ik(lg(b.params.device)),qb(a.o,function(a){return a.equals(d)})}}
function Tp(a,b){var c=!1;if("loungeStatus"==b.action)c=!!F(a.o,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;if(!isNaN(a.xj))if(c)Hp(a);else return;c==Kp(a)?c&&Ep(a,1):c?(Fp(a),a.D()&&a.ia.reset(),Ep(a,1),Jp(a,"getNowPlaying"),Mp(a)):a.A(1)}f.LC=function(){if(this.B){var a=this.B;this.B=null;this.ia.videoId!=a&&Jp(this,"getNowPlaying")}};Bp.prototype.subscribe=Bp.prototype.subscribe;
Bp.prototype.unsubscribeByKey=Bp.prototype.Pb;Bp.prototype.J=function(){var a=3;this.ka()||(a=0,isNaN(this.C())?Kp(this)&&(a=1):a=2);return a};Bp.prototype.getProxyState=Bp.prototype.J;Bp.prototype.A=function(a){this.Pa("Disconnecting with "+a);Fp(this);this.L("beforeDisconnect",a);1==a&&Dk();Yo(this.j,a);this.dispose()};Bp.prototype.disconnect=Bp.prototype.A;Bp.prototype.I=function(){var a=this.ia;this.B&&(a=this.ia.clone(),lp(a,this.B,a.index));return np(a)};Bp.prototype.getPlayerContextData=Bp.prototype.I;
Bp.prototype.O=function(a){var b=new ep(a);b.videoId&&b.videoId!=this.ia.videoId&&(this.B=b.videoId,M(this.pi),this.pi=L(x(this.LC,this),5E3));var c=[];this.ia.o==b.o&&this.ia.videoId==b.videoId&&this.ia.index==b.index&&Cb(this.ia.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ia.j==b.j&&this.ia.volume==b.volume&&this.ia.muted==b.muted&&kp(this.ia)==kp(b)&&ng(this.ia.A)==ng(b.A)||c.push("remotePlayerChange");this.ia.reset(a);D(c,function(a){this.L(a)},this)};
Bp.prototype.setPlayerContextData=Bp.prototype.O;Bp.prototype.H=function(){return this.j.B.loungeIdToken};Bp.prototype.getLoungeToken=Bp.prototype.H;Bp.prototype.D=function(){var a=this.j.B.id,b=F(this.o,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};Bp.prototype.getOtherConnectedRemoteId=Bp.prototype.D;Bp.prototype.C=function(){var a=this.j;return a.o.enabled?a.o.C-y():NaN};Bp.prototype.getReconnectTimeout=Bp.prototype.C;
Bp.prototype.V=function(){if(!isNaN(this.C())){var a=this.j.o;a.enabled&&(a.stop(),a.start(),a.D())}};Bp.prototype.reconnect=Bp.prototype.V;function Mp(a){M(a.Pi);a.Pi=L(x(a.A,a,1),864E5)}function Jp(a,b,c){c?a.Pa("Sending: action="+b+", params="+ng(c)):a.Pa("Sending: action="+b);a=a.j;b={_sc:b};c&&ac(b,c);a.o.enabled||2==(a.j?a.j.j:0)?a.F.push(b):a.j&&3==a.j.j&&Mo(a.j,b)}Bp.prototype.N=function(a,b){Jp(this,a,b);Mp(this)};Bp.prototype.sendMessage=Bp.prototype.N;var Up=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];function Vp(a,b){var c=Wp(a);return eb(b,function(a){return a.uuid?(a=Uj(this.A,a.uuid),!!a&&"RUNNING"==a.status):!!Vj(c,a)},a)}
function Xp(a,b,c){var d=Yp,e="";M(d.o);d.o=NaN;d.B="";if(Uj(d.A,a)){if(!e){var g=e=Rj();Rl();var h=am(a),k=Ol();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",Xl(h),Ki("yt-remote-cast-device-status-update",
h));Ml("Sending a cast launch request with params: "+l.parameters);k.launch(l,pa(bm,a))}else Ml("No cast API or no cast device. Dropping cast launch.")}d.B=e;d.o=L(x(d.H,d,a,0,e),Up[0])}else d.Pa("No DIAL device with id: "+a)}function Zp(a,b){var c=Wj(Wp(a),b);a.Pa("Found screen: "+ri(c)+" with key: "+b);return c}function $p(a){var b=Yp,c=Wj(b.j,a);b.Pa("Found online screen: "+ri(c)+" with key: "+a);return c}
function aq(a){var b=Yp,c=Uj(b.A,a);if(!c){var d=Wj(b.D,a);d&&(c=Uj(b.A,d.uuid))}b.Pa("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function Wp(a){return rb(a.C,eb(a.D,function(a){return!Vj(this.C,a)},a))};function bq(a){Xj.call(this,"ScreenServiceProxy");this.Gb=a;this.j=[];this.j.push(this.Gb.$_s("screenChange",x(this.ID,this)));this.j.push(this.Gb.$_s("onlineScreenChange",x(this.cB,this)))}z(bq,Xj);f=bq.prototype;f.gc=function(a){return this.Gb.$_gs(a)};f.contains=function(a){return!!this.Gb.$_c(a)};f.get=function(a){return this.Gb.$_g(a)};f.start=function(){this.Gb.$_st()};f.add=function(a,b,c){this.Gb.$_a(a,b,c)};f.remove=function(a,b,c){this.Gb.$_r(a,b,c)};
f.Xj=function(a,b,c,d){this.Gb.$_un(a,b,c,d)};f.P=function(){for(var a=0,b=this.j.length;a<b;++a)this.Gb.$_ubk(this.j[a]);this.j.length=0;this.Gb=null;bq.K.P.call(this)};f.ID=function(){this.L("screenChange")};f.cB=function(){this.L("onlineScreenChange")};Qk.prototype.$_st=Qk.prototype.start;Qk.prototype.$_gspc=Qk.prototype.JD;Qk.prototype.$_gsppc=Qk.prototype.Es;Qk.prototype.$_c=Qk.prototype.contains;Qk.prototype.$_g=Qk.prototype.get;Qk.prototype.$_a=Qk.prototype.add;Qk.prototype.$_un=Qk.prototype.Xj;
Qk.prototype.$_r=Qk.prototype.remove;Qk.prototype.$_gs=Qk.prototype.gc;Qk.prototype.$_gos=Qk.prototype.Ds;Qk.prototype.$_s=Qk.prototype.subscribe;Qk.prototype.$_ubk=Qk.prototype.Pb;function cq(a){q("yt.mdx.remote.castv2_",!0,void 0);aj&&$i();pk();dq||(dq=new Nj,Ek()&&(dq.j="/api/loungedev"));eq||(eq=u("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",eq,void 0));fq();var b=gq();if(!b){var c=new Qk(dq);q("yt.mdx.remote.screenService_",c,void 0);b=gq();ol(a,c,function(a){a?Il()&&Hl():c.subscribe("onlineScreenChange",function(){Ki("yt-remote-receiver-availability-change")})})}}
function hq(){Ji(iq);iq.length=0;yi(jq);jq=null;eq&&(D(eq,function(a){a(null)}),eq.length=0,eq=null,q("yt.mdx.remote.deferredProxies_",null,void 0));Yp&&(yi(Yp),Yp=null);dq=null;Wl()}function kq(){if(lq()&&Bl()){var a=[];if(dj("yt-remote-cast-available")||u("yt.mdx.remote.cloudview.castButtonShown_")||mq())a.push({key:"cast-selector-receiver",name:nq()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}return u("yt.mdx.remote.cloudview.initializing_")?[]:oq()}
function oq(){var a=[],a=pq()?gq().Gb.$_gos():qi(dj("yt-remote-online-screens")||[]),b=qq();b&&mq()&&(Vj(a,b)||a.push(b));pq()||(b=Tj(Bk()),b=eb(b,function(b){return!Wj(a,b.id)}),a=rb(a,b));return Sj(a)}function rq(){if(lq()&&Bl()){var a=Cl();return a?{key:"cast-selector-receiver",name:a}:null}return sq()}function sq(){var a=oq(),b=tq(),c=qq();c||(c=uq());return F(a,function(a){return c&&mi(c,a.key)||b&&(a=aq(a.key))&&a.id==b?!0:!1})}
function nq(){if(lq()&&Bl())return Cl();var a=qq();return a?a.name:null}function qq(){var a=Il();if(!a)return null;if(!Yp){var b=gq().gc();return Wj(b,a)}return Zp(Yp,a)}function vq(a,b){wq("Connecting to: "+ng(a));if("cast-selector-receiver"==a.key)xq(b||null),Gl(b||null);else{yq();xq(b||null);var c=null;Yp?c=$p(a.key):(c=gq().gc(),c=Wj(c,a.key));if(c)zq(c);else{if(Yp&&(c=aq(a.key))){Aq(c);return}L(function(){Bq(null)},0)}}}
function yq(){if(Yp){var a=Yp;M(a.o);a.o=NaN;a.B=""}i:{if(a=mq())if(a=a.getOtherConnectedRemoteId()){wq("Do not stop DIAL due to "+a);Cq("");break i}(a=tq())?(wq("Stopping DIAL: "+a),cm(a),Cq("")):(a=qq())&&a.uuid&&(wq("Stopping DIAL: "+a.uuid),cm(a.uuid))}Fl()?xl().stopSession():ul("stopSession called before API ready.");(a=mq())?a.disconnect(1):(Li("yt-remote-before-disconnect",1),Li("yt-remote-connection-change",!1));Bq(null)}
function Dq(){var a=Eq(),a=a?a.currentTime:0,b=Fq();0==a&&b&&(a=kp(rp(b)));return a}function Fq(){var a=mq();return a&&3!=a.getProxyState()?new op(a,void 0):null}function wq(a){ii("remote",a)}function lq(){return!!u("yt.mdx.remote.castv2_")}function pq(){return u("yt.mdx.remote.screenService_")}function gq(){if(!jq){var a=pq();jq=a?new bq(a):null}return jq}function Il(){return u("yt.mdx.remote.currentScreenId_")}
function Gq(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(Yp){var b=Yp;b.G=y()+3E5;if(b.F=a){var c=Zp(b,a);if(c&&!Vj(b.j,c)){a=sb(b.j);a.push(c);var c=Vp(b,a),d=!Cb(b.j,c,ni);lb(a)||Ak(E(c,oi));d&&(b.Pa("Updating online screens: "+si(b.j)+" -> "+si(c)),b.j=c,b.L("onlineReceiverChange"))}}}}function tq(){return u("yt.mdx.remote.currentDialId_")}function Cq(a){q("yt.mdx.remote.currentDialId_",a,void 0)}function Eq(){return u("yt.mdx.remote.connectData_")}
function xq(a){q("yt.mdx.remote.connectData_",a,void 0)}function mq(){return u("yt.mdx.remote.connection_")}function Bq(a){var b=mq();xq(null);a?$a(!mq()):(Gq(""),Cq(""));q("yt.mdx.remote.connection_",a,void 0);eq&&(D(eq,function(b){b(a)}),eq.length=0);b&&!a?Li("yt-remote-connection-change",!1):!b&&a&&Ki("yt-remote-connection-change",!0)}function uq(){var a=sk();if(!a)return null;if(pq()){var b=gq().gc();return Wj(b,a)}return Yp?Zp(Yp,a):null}
function zq(a){$a(!Il());Gq(a.id);a=new Bp(dq,a,Hq());a.connect(1,Eq());a.subscribe("beforeDisconnect",function(a){Li("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){mq()&&(mq(),Bq(null))});Bq(a)}function Aq(a){tq();wq("Connecting to: "+(a?a.toString():"null"));Cq(a.id);var b=Eq();b?Xp(a.id,b.videoIds[b.index],b.currentTime):Xp(a.id)}var dq=null,eq=null,jq=null,Yp=null;
function fq(){var a=Hq();if(Ub(a)){var a=rk(),b=dj("yt-remote-session-name")||"",c=dj("yt-remote-session-app")||"",a={device:"REMOTE_CONTROL",id:a,name:b,app:c,"mdx-version":3};q("yt.mdx.remote.channelParams_",a,void 0)}}function Hq(){return u("yt.mdx.remote.channelParams_")||{}}var iq=[];function Iq(){var a={volume:100,muted:!1},b=dj("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Pc(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a}function Jq(a){bj("yt-player-bandwidth",a,2592E3)};function Kq(a,b,c){w(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 Lq(a)}function Lq(a,b,c){if(ja(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 Mq(a,b,c){this.errorCode=a;this.j=b;this.details=c||""};function Nq(a,b){Q.call(this);this.T=a;this.qe=null;this.Uf={};this.Pg={};this.A={};this.o={};this.j=null;this.playerType=b;W(this,"cueVideoById",this.dE);W(this,"loadVideoById",this.In);W(this,"cueVideoByUrl",this.eE);W(this,"loadVideoByUrl",this.tE);W(this,"playVideo",this.Jn);W(this,"pauseVideo",this.pauseVideo);W(this,"stopVideo",this.Ys);W(this,"clearVideo",this.bE);W(this,"getVideoBytesLoaded",this.nE);W(this,"getVideoBytesTotal",this.oE);W(this,"getVideoLoadedFraction",this.Hn);W(this,"getVideoStartBytes",
this.qE);W(this,"cuePlaylist",this.cE);W(this,"loadPlaylist",this.Us);W(this,"nextVideo",this.Ws);W(this,"previousVideo",this.Xs);W(this,"playVideoAt",this.Kn);W(this,"setShuffle",this.CE);W(this,"setLoop",this.zE);W(this,"getPlaylist",this.Fd);W(this,"getPlaylistIndex",this.Qs);W(this,"getPlaylistId",this.Ps);W(this,"loadModule",this.Ts);W(this,"unloadModule",this.FE);W(this,"setOption",this.Ln);W(this,"getOption",this.kk);W(this,"getOptions",this.jE);W(this,"mute",this.Vs);W(this,"unMute",this.Zs);
W(this,"isMuted",this.Ss);W(this,"setVolume",this.setVolume);W(this,"getVolume",this.Rs);W(this,"seekTo",this.xh);W(this,"getPlayerState",this.getPlayerState);W(this,"getPlaybackRate",this.lE);W(this,"setPlaybackRate",this.BE);W(this,"getAvailablePlaybackRates",this.gE);W(this,"getPlaybackQuality",this.kE);W(this,"setPlaybackQuality",this.Mn);W(this,"getAvailableQualityLevels",this.hE);W(this,"getCurrentTime",this.getCurrentTime);W(this,"getDuration",this.wh);W(this,"addEventListener",this.addEventListener);
W(this,"removeEventListener",this.removeEventListener);W(this,"getVideoUrl",this.getVideoUrl);W(this,"getDebugText",this.Os);W(this,"getVideoEmbedCode",this.pE);W(this,"getVideoData",this.getVideoData);W(this,"addCueRange",this.Ns);W(this,"removeCueRange",this.vE);W(this,"setSize",this.DE);W(this,"getApiInterface",this.fE);W(this,"destroy",this.destroy);W(this,"showVideoInfo",this.EE);W(this,"hideVideoInfo",this.rE);W(this,"onExternalMouseMove",this.uE);Oq(this,"apiProxyReady",this.aE);Oq(this,"getInternalApiInterface",
this.iE);Oq(this,"getAdState",this.getAdState);Oq(this,"isNotServable",this.sE);Oq(this,"getUpdatedConfigurationData",this.mE);Oq(this,"updateRemoteReceivers",this.GE);Oq(this,"sendAbandonmentPing",this.wE);Oq(this,"setAutonav",this.xE);Oq(this,"setAutonavState",this.yE);Oq(this,"setMinimized",this.AE);Oq(this,"channelSubscribed",v);Oq(this,"channelUnsubscribed",v)}z(Nq,Q);function W(a,b,c){a.Uf[b]=x(c,a)}function Oq(a,b,c){a.Pg[b]=x(c,a)}f=Nq.prototype;f.fE=function(){return Pb(this.Uf)};f.iE=function(){return Pb(this.Pg)};
f.Q=function(){return this.qe};f.addEventListener=function(a,b){if(w(b)){var c=function(){u(b).apply(window,arguments)};this.A[b]=c;this.T.subscribe(a,c)}else this.T.subscribe(a,b)};f.Ew=function(a,b){var c=w(b)?a+b:a+ka(b);if(!this.o[c]){var d;w(b)?d=function(){u(b).apply(window,arguments)}:d=b;var e=x(function(a){d({target:this.j,data:a})},this);this.o[c]=e;this.addEventListener(a,e)}};f.removeEventListener=function(a,b){if(w(b)){var c=this.A[b];Wb(this.A,b);this.T.qa(a,c)}else this.T.qa(a,b)};
f.Fw=function(a,b){var c=w(b)?a+b:a+ka(b),d=this.o[c];d&&(this.removeEventListener(a,d),Wb(this.o,c))};f.getPlayerState=function(){return Pq(this.T)};f.xh=function(a,b){Qq(this.T,!0,this.playerType);Rq(this.T,a,b,void 0,this.playerType)};f.getCurrentTime=function(){return this.T.getCurrentTime(this.playerType)};f.wh=function(){return Sq(this.T,1)};f.Rs=function(){return Tq(this.T)};f.setVolume=function(a){this.T.setVolume(a)};f.Ss=function(){return this.T.I.muted};f.Vs=function(){Uq(this.T)};
f.Zs=function(){Vq(this.T)};f.Jn=function(){Qq(this.T,!0,this.playerType);Wq(this.T,this.playerType)};f.pauseVideo=function(){Xq(this.T,this.playerType)};f.Ys=function(){var a=this.T,b=this.playerType;Yq(a.j)&&Zq(a,!1);$q(a,"play_pause")||ar(a,b)};f.bE=function(){};f.lE=function(){return this.T.Z};f.BE=function(a){br(this.T,a)};f.gE=function(){return cr(this.T)};f.kE=function(){return dr(this.T,this.playerType)};
f.Mn=function(a){var b=this.T,c=er(b,this.playerType);c&&!b.j.isMobile&&(a=fr(a,a,!0),gr(c,"p",a))};f.hE=function(){var a=er(this.T,this.playerType);return a?hr(a):[]};f.nE=function(){return this.Hn()};f.oE=function(){return 1};f.Hn=function(){return ir(this.T.ma)};f.qE=function(){return 0};f.DE=function(){this.T.A.mi()};f.xE=function(a){var b=this.T;a=a?2:1;b.getVideoData().ze=a;b.Ra("autonavchange",a)};f.yE=function(a){var b=this.T;b.getVideoData().ze=a;b.Ra("autonavchange",a)};
f.AE=function(a){this.T.j.Up=a};f.Ts=function(a){this.T.F.isAvailable(a)&&(a=jr(this.T.F,a))&&!a.loaded&&a.load()};f.FE=function(a){this.T.F.isAvailable(a)&&(a=jr(this.T.F,a))&&a.loaded&&a.unload()};f.In=function(a,b,c){a=kr(this.T,Lq(a,b,c),this.playerType);Qq(this.T,a,this.playerType)};f.dE=function(a,b,c){lr(this.T,Lq(a,b,c),this.playerType)};f.tE=function(a,b,c){a=Kq(a,b,c);b=kr(this.T,a,this.playerType);Qq(this.T,b,this.playerType);b=this.T;(a=qf(new J(a.mediaContentUrl)))&&mr(b.j,a)};
f.eE=function(a,b,c){b=Kq(a,b,c);lr(this.T,b,this.playerType);a=this.T;(b=qf(new J(b.mediaContentUrl)))&&mr(a.j,b)};f.getVideoUrl=function(){return nr(this.T)};f.Os=function(){return or(this.T)};f.pE=function(){return pr(this.T)};f.Ns=function(a,b,c){return qr(this.T,a,b,c)};f.vE=function(a){i:{for(var b=this.T,c=b.o.D.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.Wa.clear();b.o.D.vh(e);rr(b,"cuerangesremoved",[e]);a=!0;break i}}a=!1}return a};
f.Us=function(a,b,c,d){var e=this.T;e.V=!1;sr(e,a,b,c,d);Qq(this.T,!0,this.playerType)};f.cE=function(a,b,c,d){var e=this.T;e.V=!0;sr(e,a,b,c,d)};f.Ws=function(){tr(this.T);Qq(this.T,!0,this.playerType)};f.Xs=function(){ur(this.T);Qq(this.T,!0,this.playerType)};f.Kn=function(a){vr(this.T,a);Qq(this.T,!0,this.playerType)};f.CE=function(a){var b=this.T;b.B&&wr(b.B,a)};f.zE=function(a){var b=this.T;b.B&&(b.B.ig=a)};
f.Fd=function(){var a=this.T.B;if(!a)return null;for(var b=[],c=0;c<a.xc;c++){var d=xr(a,c);d&&b.push(d.videoId)}return b};f.Qs=function(){var a;a=this.T;a=a.B?a.B.Xa:null;return null==a?-1:a};f.Ps=function(){return yr(this.T)};f.Ln=function(a,b,c){return zr(this.T,a,b,c)};f.kk=function(a,b,c){return zr(this.T,a,b,c)};f.jE=function(a){return Ar(this.T,a)};
f.getVideoData=function(){var a=er(this.T,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.Ps();b&&(a.list=b);return a};f.EE=function(){this.T.A.S.va()};f.rE=function(){this.T.A.S.$()};f.getAdState=function(){return this.T.getAdState()};f.sE=function(a){var b=this.T;a!=b.Y.args.video_id?a=!1:(a=(a=b.o)?a.getPlayerState():null,a=!(!a||!X(a,128)||5!=Br[a.j.errorCode]));return a};
f.mE=function(){var a=this.T,b=a.Y.clone(),c=b.args,a=Cr(a),d=Yb(a.B);!a.Qa&&0<a.startSeconds&&(d.start=a.startSeconds);qa(c,d);return b};f.GE=function(a,b){var c=this.T;c.G&&Dr(c.G,a,b);Er(c.j)&&6!=c.J&&(c.j.vg=!lb(a),c.j.vg?(1!=c.J&&3!=c.J||!b||Fr(c.H),a.length&&1!=c.J&&Gr(c)):Fr(c.G))};f.destroy=function(){this.T.dispose()};f.wE=function(){var a=er(this.T);a&&!X(a.getPlayerState(),128)&&(Hr(a),Ir(a))};f.uE=function(){this.T.A.Rt()};f.aE=function(){var a=this.T;a.j.experiments.I&&a.L("onMouseMoveCapture")};
f.P=function(){if(this.qe){for(var a in this.Uf)this.qe[a]=null;for(a in this.Pg)this.qe[a]=null;this.qe=null}this.A=this.o=null;Nq.K.P.call(this)};function Jr(a,b){Nq.call(this,a,b);W(this,"addInfoCardXml",this.HE);W(this,"cueVideoByPlayerVars",this.IE);W(this,"loadVideoByPlayerVars",this.$s);W(this,"preloadVideoByPlayerVars",this.NE);W(this,"seekBy",this.bt);W(this,"enableLicenseIntercept",this.JE);W(this,"updatePlaylist",this.SE);W(this,"resumeLicenseSession",this.OE);W(this,"updateLastActiveTime",this.RE);W(this,"updateVideoData",this.TE);W(this,"getStoryboardFormat",this.LE);W(this,"getProgressState",this.yh);W(this,"getHousebrandProperties",
this.KE);W(this,"setPlaybackQualityRange",this.QE);W(this,"getCurrentPlaylistSequence",this.Nw);W(this,"canPlayType",this.canPlayType);W(this,"sendVideoStatsEngageEvent",this.PE);W(this,"handleGlobalKeyDown",this.ME)}z(Jr,Nq);f=Jr.prototype;f.Ns=function(a,b,c,d,e){return qr(this.T,a,b,c,d,e)};f.HE=function(a,b){var c=this.T;c.j.Y=a;c.j.ke=b};f.IE=function(a){lr(this.T,a,this.playerType)};f.getPlayerState=function(a){return Pq(this.T,a)};f.$s=function(a){kr(this.T,a,this.playerType)};
f.NE=function(a){var b=this.T,c=this.playerType;c&&1!=c||b.O&&b.O.getVideoData().videoId==a.videoId||(a=new Kr(a),Lr(b,a))};f.Jn=function(){Wq(this.T,this.playerType)};f.xh=function(a,b){Rq(this.T,a,b,void 0,this.playerType)};f.Us=function(a,b,c,d){var e=this.T;e.V=!1;sr(e,a,b,c,d)};f.Ws=function(){tr(this.T)};f.Xs=function(){ur(this.T)};f.Kn=function(a){vr(this.T,a)};f.bt=function(a,b,c){var d=this.T,e=this.playerType;Rq(d,d.getCurrentTime()+a,b,c,e)};
f.JE=function(){var a=this.T;a.ab||(a.ab=!0,a.Aa={})};f.SE=function(){var a=this.T;Mr(a,Cr(a));a.Ra("onPlaylistUpdate")};f.OE=function(a,b){var c=this.T,d=c.Aa[a];d&&(Nr(d,b),d.start(),delete c.Aa[a])};f.RE=function(){Or()};f.TE=function(a){var b=er(this.T,this.playerType||1);b&&(b=b.j,Pr(b,a),b.L("dataupdated"))};f.LE=function(){var a=this.T.getVideoData();return a.B.storyboard_spec||a.B.live_storyboard_spec};f.KE=function(){var a=this.T.W();return{Nb:a.Nb,Hb:a.Hb(),kh:a.kh}};
f.getVideoData=function(){var a=Jr.K.getVideoData.call(this),b=er(this.T,this.playerType),b=b?b.getVideoData():{};a.cpn=b.clientPlaybackNonce;a.isLive=b.Qa;return a};f.getCurrentTime=function(a){return a?this.T.getCurrentTime(a):Jr.K.getCurrentTime.call(this)};f.wh=function(a){return a?Sq(this.T,a):Jr.K.wh.call(this)};
f.yh=function(){var a=this.T.getVideoData(),b=!a.Qa||a.xb,c=a.clipEnd,a=a.clipStart,d=this.getCurrentTime(),e=this.wh(),g=er(this.T,void 0);if(g)var h=Qr(g.o),g=isNaN(h)?g.getCurrentTime():h;else g=0;return{allowSeeking:b,clipEnd:c,clipStart:a,current:d,displayedStart:-1,duration:e,loaded:g,seekableEnd:Rr(er(this.T)),seekableStart:Sr(er(this.T).j)}};f.Hn=function(a){var b=this.T;return(b.D&&2==b.D.getPlayerType())==(2==a)?ir(b.ma):0};f.canPlayType=function(a){return this.T.canPlayType(a)};
f.QE=function(a,b){Tr(this.T,a,this.playerType,b)};f.Nw=function(){var a;var b=this.T.getVideoData();a=this.T.getCurrentTime();if(b.o&&b.Qa){var c=b.o.j[b.j.id];c&&c.index?(b=c.index.Eg(a),c=c.index.cf(b),a={sequence:b,elapsed:a-c}):a=null}else a=null;return a};f.PE=function(a){var b=this.T;b.j.experiments.N&&(b=er(b,this.playerType))&&b.B&&(b=Ur(b.B,"engage"),b.G=a,b.send())};f.ME=function(a,b){this.T.A.uk(a,b)};function Vr(a,b){Jr.call(this,a,b)}z(Vr,Jr);f=Vr.prototype;f.getPlayerType=function(){return this.playerType};f.In=function(a,b,c){kr(this.T,Lq(a,b,c),this.playerType)};function Wr(a,b){a.T.A.A.appendChild(b)}f.La=function(){return this.T.A.Q()};f.Cf=function(){return this.T.Cf()};f.W=function(){return this.T.W()};f.Fd=function(){return this.T.B};f.getVideoData=function(){var a=er(this.T,this.playerType);return a&&a.getVideoData()};f.Sg=function(){return this.T.W().hb};
f.addEventListener=function(a,b,c){this.T.subscribe(a,b,c)};f.removeEventListener=function(a,b,c){this.T.qa(a,b,c)};f.Mn=function(a){Tr(this.T,a,1)};f.Os=function(a){return or(this.T,a)};f.getVideoUrl=function(a){return nr(this.T,a)};function Xr(a,b){this.start=a;this.end=b}function Yr(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:ka(a)-ka(b)}Xr.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)};Xr.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function Zr(){this.j=[]}function $r(a,b){for(var c=[],d=0;d<a.j.length;++d){var e=a.j[d];e.contains(b)&&c.push(e);if(e.start>b)break}return c}function as(a,b,c){for(var d=[],e=0;e<a.j.length;++e){var g=a.j[e];if(null!=c&&g.start>c)break;g.start>b&&d.push(g)}return d}function bs(a,b){for(var c=[],d=0;d<a.j.length;++d){var e=a.j[d];e.contains(b)&&c.push(e.end);if(e.start>b){c.push(e.start);break}}c.sort(yb);return c[0]};function cs(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 ds(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 es(a,b){var c=ds(a,b);return 0<=c?a.end(c):NaN}function fs(a){return a&&a.length?a.end(a.length-1):NaN}function gs(a,b){var c=es(a,b);return 0<=c?c-b:0};var hs,is;var js=Uc,ks=js.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!ks||2>ks.length)hs=void 0;else{var ls=js.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);hs=ls&&6==ls.length?Number(ls[5].replace("_",".")):0}(is=0<=hs)&&0<=Uc.search("Safari")&&Uc.search("Version");var ms=Vh||Wh;function ns(){return os("(ps3; leanback shell)")}function ps(){return os("safari/")&&os(" version/8")}function qs(){return Yh&&os("crkey")}function os(a){var b=Uc;return b?0<=b.toLowerCase().indexOf(a):!1};function rs(){}var ss=is&&4>hs?.1:0,ts=new rs;f=rs.prototype;f.Cc=null;f.Rk=!1;function us(a,b){var c="";b&&(vs(a,b),c=ws(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.j||a.load())}function xs(a,b){0<a.readyState&&(a.currentTime=Math.max(ss,b))}f.getCurrentTime=function(){return this.currentTime||0};function Qr(a){return 0<fs(a.buffered)&&a.duration?es(a.buffered,a.currentTime):0}function ir(a){var b=a.duration||0;return Infinity==b?1:b?Qr(a)/b:0}function ys(a){return a.paused||a.ended}
function zs(a){a.ended&&xs(a,0);!a.hasAttribute("src")&&a.Cc&&(a.src=ws(a.Cc),a.Cc.j||a.load());a.play();is&&7<=hs&&Gh(a,x(function(){L(x(this.$o,this,this.currentTime,0),500)},a))}f.$o=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(x(this.$o,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function As(a){a.currentSrc&&(ms&&xs(a,0),Vd(a),a.removeAttribute("src"),a.load(),a.Cc&&a.Cc.j&&(a.Cc=null))}function Bs(a){As(a);vs(a,null)}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function Cs(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.pw=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.rw=function(){this.Rk&&!this.muted&&(this.muted=!0)};
rs.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:cs(this.played),vbu:cs(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 vs(a,b){a.Cc&&a.Cc.equals(b)||(a.Cc&&a.Cc.dispose(),a.Cc=b)};function Ds(a,b){this.o=a||64;this.j=b||null}
function Es(a,b,c){if(X(a,128))return a;var d=a.o,e=a.j,g=b.target;switch(b.type){case "ended":if(0>=g.networkState||!g.src)break;d=14;e=null;break;case "pause":X(a,256)?(d^=256)||(d=64):X(a,32)||X(a,2)||(d=4,X(a,1)&&X(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":i: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 i}b={errorCode:b}}else b=null;b&&(e=b,d|=128);break;case "canplay":d&=-2;break;case "progress":X(a,8)&&Fs(c,g)&&(d|=1);break;case "seeked":d&=-17;break;case "seeking":d|=16;0>=gs(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":X(a,2)||(d|=1);break;case "timeupdate":X(a,16)||(d=Fs(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return Gs(a,d,e)}
function Fs(a,b){if(!a)return!1;var c=gs(b.buffered,b.currentTime);return Hs(a,b.currentTime,y(),c)}function Gs(a,b,c){return b==a.o&&c==a.j||b&128&&!c||b&2&&b&16?a:new Ds(b,c)}function Is(a,b){return Gs(a,a.o|b)}function Js(a,b){return Gs(a,a.o&~b)}function X(a,b){return!!(a.o&b)}Ds.prototype.tb=function(){return X(this,8)&&!X(this,64)&&!X(this,2)};function Ks(a){return X(a,8)&&!X(a,2)}function Ls(a){return X(a,128)?-1:X(a,2)?0:X(a,1)&&!X(a,32)?3:X(a,64)?-1:X(a,8)?1:X(a,4)?2:-1};function Ms(a,b,c){Xr.call(this,a,b);a=c||{};this.Ca=a.id||"";void 0!=a.priority&&(this.Tf=a.priority);this.namespace=a.namespace||"";this.Wa=new Bi;this.tooltip=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.visible=a.visible)}z(Ms,Xr);function Ns(a){return{start:a.start,end:a.end,id:a.Ca,priority:a.Tf,namespace:a.namespace,tooltip:a.tooltip,style:"ytp-chapter-marker"==a.style?"chapter":"ad",visible:a.visible}}f=Ms.prototype;f.Ca="";f.Tf=7;f.mo=!0;f.visible=!1;f.style="ytp-ad-progress";
f.Wa=null;f.namespace="";f.getId=function(){return this.Ca};function Ps(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}function Qs(a,b){return a.start==b.start?a.Tf==b.Tf?0:a.Tf<b.Tf?-1:1:a.start<b.start?-1:1}f.toString=function(){return Ms.K.toString.call(this)};function Rs(a,b,c,d){S.call(this);this.G=a;this.F=b;this.D=c;this.H=d;this.B=new tn(250);xm(this.B,"tick",this.nc,!1,this);R(this,this.B);this.o=[];this.j=new Zr}z(Rs,S);f=Rs.prototype;f.cj=!1;f.de=!1;f.Tg=!1;f.Ni=!1;f.Vg=null;function Ss(a,b){a.nc();var c=a.j;if(1<b.length&&b.length>c.j.length)c.j=c.j.concat(b),c.j.sort(Yr);else for(var d=0;d<b.length;d++){var e=b[d];!c.j.length||0<Yr(e,c.j[c.j.length-1])?c.j.push(e):Eb(c.j,e,Yr)}a.nc()}
f.vh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.o.indexOf(c);0<=d&&this.o.splice(d,1);d=this.j.j;c=xb(d,c,Yr);0<=c&&pb(d,c)}}this.nc()};f.ag=function(){this.A=Ts(this);this.de=!0;this.nc()};f.reset=function(){this.de=this.cj=!1;Us(this);this.j.j=[];this.o=[];this.nc();this.C=null};function Vs(a,b){var c=[];if(!b.length)return c;b.sort(Qs);for(var d=0;d<b.length;d++){var e=b[d];-1==a.o.indexOf(e)&&(a.o.push(e),c.push(["onEnter",e]))}return c}
function Ws(a,b){var c=[];if(!b.length)return c;b.sort(Qs);for(var d=0;d<b.length;d++){var e=b[d],g=a.o.indexOf(e);0>g||(a.o.splice(g,1),c.push(["onExit",e]))}return c}
f.nc=function(){this.Ni=!0;if(!this.Tg)for(var a=3;this.Ni&&a;){this.Ni=!1;this.Tg=!0;if(this.de&&!this.cj){Us(this);for(var b=Ts(this),c=[],d=[],e=0;e<this.o.length;e++){var g=this.o[e];g.mo&&!g.contains(b)&&d.push(g)}c=c.concat(Ws(this,d));d=$r(this.j,b);e=this.D();!X(e,48)&&b>this.A&&(d=d.concat(as(this.j,this.A,b)));c=c.concat(Vs(this,d));this.A=b;!this.cj&&this.C&&(c.unshift(["onLockBlockExit",this.C]),this.C=null,X(e,2)&&(this.A=2147483647));this.H()&&(b=bs(this.j,this.A),null!=b&&(b=(b-this.A)/
this.F(),this.Vg=vn(x(this.nc,this),b)));Xs(this,c)}this.Tg=!1;a--}};function Xs(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.L.apply(a,d):e.Wa.L.apply(e.Wa,d)}}function Us(a){null!=a.Vg&&(wn(a.Vg),a.Vg=null)}function Ts(a){return X(a.D(),2)?2147483647:1E3*a.G()}f.P=function(){Fm(this.B,"tick",this.nc,!1,this);Us(this);this.C=this.j=this.o=null;Rs.K.P.call(this)};function Ys(a){S.call(this);this.j=a;this.an&&(a=ek("yt-html5-player-modules::"+this.an))&&(this.ba=new Ri(a))}z(Ys,S);f=Ys.prototype;f.xa="";f.Bc="";f.se=!1;f.loaded=!1;f.gi=!1;f.Yb=null;function Zs(a,b){for(var c=0;c<b.length;c++){var d=b[c];d.namespace=a.xa;d.Wa.subscribe("onEnter",a.Ic,a);d.Wa.subscribe("onExit",a.Zc,a)}a.L("command_add_cuerange",b,a.j.getPlayerType())}function $s(a,b){a.L("command_remove_cuerange",b,a.j.getPlayerType())}
function at(a){a.L("command_remove_cuerange_all",a.xa,a.j.getPlayerType())}function bt(a){a.L("command_preroll_ready",a.xa,a.j.getPlayerType())}function ct(a,b){N(b,a.xa);a.j.T.A.sa.appendChild(b)}function dt(a,b){a.L("command_show_dialog",b)}f.Kg=function(){dt(this)};f.Na=function(){this.se||(this.Ha(this.j),N(this.j.La(),this.xa+"-created"),this.se=!0)};f.destroy=function(){this.loaded&&this.unload();oh(this.j.La(),this.xa+"-created");this.se=!1;this.L("destroyed",this.xa)};
f.load=function(){this.loaded=!0;N(this.j.La(),this.xa+"-loaded");this.L("loaded",this.xa)};f.unload=function(){this.loaded=!1;oh(this.j.La(),this.xa+"-loaded");this.L("unloaded",this.xa)};f.Ic=function(){};f.Zc=function(){};f.Yd=function(){};function et(a,b,c){a.L("command_navigate_to_url",b,c)}f.log=function(a){this.L("command_log",this.Bc,a)};function ft(a,b,c){var d={},e;for(e in b)d[a.xa+"_"+e]=b[e];b={};for(var g in c)b[a.xa+"_"+g]=c[g];a.L("command_log_timing",d,b)}f.Bh=function(){return null};
function gt(a,b){if(!a.ba)return null;var c;try{c=a.ba.get(b)}catch(d){a.ba&&a.ba.remove(b)}return c}function ht(a,b,c){if(a.ba)try{a.ba.set(b,c)}catch(d){}}function it(a,b){a.L("command_disable_controls",b,a.xa)}function jt(a,b){a.L("command_enable_controls",b,a.xa)}function kt(a){a.L("command_stop_redirect_controls")}function lt(a){a.L("command_play",!1,a.j.getPlayerType())}f.pauseVideo=function(){this.L("command_pause",!1,this.j.getPlayerType())};
function mt(a,b){a.L("command_redirected_show_is_playing",b)}f.Yj=function(a,b){this.L("command_progress",a,b)};function nt(a){return a.j.T.A.B}function ot(a,b,c){a.L("module_menu_button_add",b,c)}function pt(a,b){a.L("module_menu_button_remove",b)}function qt(a,b){a.L("module_menu_item_add",b)}function rt(a,b){a.L("module_menu_item_remove",b)}function st(a){a.L("module_menu_show")}f.jg=function(){};f.kg=function(){return[]};f.Ha=function(){return!1};f.bn=function(){return!0};
f.zj=function(a,b){this.Yb&&this.Yb.Yd&&this.Yb.Yd.apply(this.Yb,arguments)};f.nj=function(){};var tt={IG:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",MG:"ERROR_AUTHENTICATION_EXPIRED",NG:"ERROR_AUTHENTICATION_MALFORMED",OG:"ERROR_AUTHENTICATION_MISSING",PG:"ERROR_BAD_REQUEST",WG:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",dH:"ERROR_CGI_PARAMS_MALFORMED",eH:"ERROR_CGI_PARAMS_MISSING",nH:"YTP_DEVICE_FALLBACK",tH:"YTP_ERROR_LICENSE",wH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",xH:"YTP_ERROR_GEO_FAILURE",OH:"YTP_ERROR_GENERIC",PH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",XH:"YTP_ERROR_INVALID_DRM_MESSAGE",
bI:"LEARN_MORE",EI:"YTP_ERROR_NOT_SIGNED_IN",ZI:"YTP_ERROR_PURCHASE_NOT_FOUND",$I:"YTP_ERROR_PURCHASE_REFUNDED",dJ:"YTP_ERROR_RENTAL_EXPIRED",YG:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",ZG:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",aH:"YTP_ERROR_CAST_TOKEN_FAILED",$G:"YTP_ERROR_CAST_TOKEN_EXPIRED",bH:"YTP_ERROR_CAST_TOKEN_MALFORMED",oJ:"YTP_ERROR_SERVER_ERROR",BJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",DJ:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",EJ:"YTP_ERROR_STREAMING_NOT_ALLOWED",FJ:"YTP_ERROR_STREAMING_UNAVAILABLE",
gJ:"YTP_ERROR_RETRYABLE_ERROR",RJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",QJ:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",YJ:"YTP_ERROR_UNSUPPORTED_DEVICE",ZJ:"YTP_ERROR_UNUSUAL_ACTIVITY",iK:"YTP_ERROR_VIDEO_FORBIDDEN",kK:"YTP_ERROR_VIDEO_NOT_FOUND"},ut={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 vt(a){return(a=ut[a.toString()])?a:"YTP_ERROR_LICENSE"};var wt={160:"h",133:"h",134:"h",135:"h",136:"h",137:"h",264:"h",266:"h",138:"h",298:"h",299:"h",304:"h",305:"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",278:"9",242:"9",243:"9",244:"9",247:"9",248:"9",271:"9",313:"9",272:"9",302:"9",303:"9",308:"9",315:"9",171:"v",250:"o",251:"o",194:"*",195:"*",220:"*",221:"*",196:"*",197:"*",198:"V",279:"(",280:"(",273:"(",274:"(",275:"(",276:"(",314:"(",277:"("};function xt(a,b,c){this.o=a;this.j=b;this.A=c}var zt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},At=["widevine","playready"];function Bt(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}function Ct(a,b,c,d){return!(0!=b.indexOf("audio/mp4")||"widevine"!=c||!a.canPlayType(b)||!a.canPlayType('video/mp4; codecs="avc1"',d))}
function Dt(a,b,c){var d,e=Bt();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<At.length;g++){var h=At[g];if(c[h])for(var k=zt[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||Ct(a,b,h,p))return new xt(h,p,c[h])}}return null};function Et(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.Zi=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}Et.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.Zi+"_"+this.id+"_"+this.isDefault};function Ft(a){a=a||{};this.I=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.I.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.C=Math.max(d,this.C))}this.j=a.languageCode||"";this.D=a.languageName;this.A=a.kind||"";this.B=a.name;this.Ca=a.id;this.J=a.is_servable;this.isDefault=a.is_default;this.G=a.is_translateable;this.H=a.url||null;this.F=a.vss_id||"";this.o=null;a.translationLanguage&&(this.o=new Et(a.translationLanguage))}
function Gt(a){var b={format:a.C,languageCode:a.j,languageName:a.D,displayName:Ht(a),kind:a.A,name:a.B,id:a.Ca,is_servable:a.J,is_default:a.isDefault,is_translateable:a.G};a.o&&(a=a.o,b.translationLanguage={languageCode:a.languageCode,languageName:a.languageName,languageOriginal:a.Zi,id:a.id,is_default:a.isDefault});return b}
function Ht(a){var b=a.D||"",c=[b];"asr"==a.A&&-1==b.indexOf("(")&&c.push(" (",Zf("YTP_ASR_SETTINGS_LABEL"),")");a.B&&c.push(" - ",a.B);a.o&&c.push(" >> ",a.o.languageName);return c.join("")}Ft.prototype.toString=function(){return this.j+": "+Ht(this)+" - "+this.F};function It(a,b){var c=new Ft;c.j=a.j;c.D=a.D;c.B=a.B;c.A=a.A;c.isDefault=!1;c.G=a.G;c.F=a.F;c.H=a.H;c.o=b;return c}Ft.prototype.equals=function(a){return a?this.toString()==a.toString():!1};function Jt(a,b,c,d,e){this.id=a;this.name=b;this.language=c;this.Qk=d;this.isDefault=e;this.captionTracks=[];this.Bi=this.ml=null;this.Ao=0}Jt.prototype.toString=function(){return this.name};var Tb={qu:"auto",LJ:"tiny",cI:"light",SMALL:"small",tv:"medium",LARGE:"large",CH:"hd720",yH:"hd1080",zH:"hd1440",AH:"hd2160",BH:"hd2880",MH:"highres",UNKNOWN:"unknown"},Kt={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},Lt="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");function Mt(a,b,c){this.o=a||0;this.j=b||0;this.A=c}Mt.prototype.equals=function(a){return this.o==a.o&&this.j==a.j&&this.A==a.A};function fr(a,b,c){return new Mt(Kt[a]||0,Kt[b]||0,c)}var Nt=fr("auto","large",!1),Ot=fr("auto","auto",!1);function Pt(a){var b=Kt.auto;return a.o==b&&a.j==b}function Qt(a){return a.A&&!!a.o&&a.o==a.j}
function Rt(a,b){if(b.A&&Pt(b))return Ot;if(b.A||Pt(a))return b;if(a.A||Pt(b))return a;var c=a.o&&b.o?Math.max(a.o,b.o):a.o||b.o,d=a.j&&b.j?Math.min(a.j,b.j):a.j||b.j,c=Math.min(c,d);return c==a.o&&d==a.j?a:new Mt(c,d,!1)}function St(a){var b=a.j||a.o;return Sb(function(a){return Kt[a]==b})||"auto"}Mt.prototype.B=function(a){if(!a.video)return!1;a=Kt[a.video.quality];return this.o<=a&&(!this.j||this.j>=a)};function Tt(a,b){this.o=a;this.j=b||null;this.audioTracks=[];if(this.j){var c={};D(this.j,x(function(a){if(a.Ud&&!c[a.id]){var b=new Jt(a.id,a.Ud.name,a.Ud.language,a.Ud.Qk,a.Ud.isDefault);c[a.id]=b;this.audioTracks.push(b)}},this))}}function Ut(a,b){var c=b||Ot,c=eb(a.o,x(c.B,c)),c=E(c,function(a){return a.video.quality});wb(c);return c}function Vt(a){var b={};E(a.o,function(a){b[a.video.quality]=a.video.fps});return b};var Wt,Xt;var Yt=Uc,Yt=Yt.toLowerCase();if(-1!=Yt.indexOf("android")){var Zt=Yt.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Zt)Wt=Number(Zt[1]);else{var $t={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},au=Yt.match("("+Pb($t).join("|")+")");Wt=au?$t[au[0]]:0}}else Wt=void 0;Xt=0<=Wt;var bu,cu;function du(){var a=u("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function eu(){if(2.2==Wt)return!0;var a=du();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 fu(a){return(a=a.exec(Uc))?a[1]:""}var gu=function(){if(Uh)return fu(/Firefox\/([0-9.]+)/);if(dd||cd)return pd;if(Yh)return fu(/Chrome\/([0-9.]+)/);if(Zh&&!(bd()||Xc("iPad")||Xc("iPod")))return fu(/Version\/([0-9.]+)/);if(Vh||Wh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Uc))return a[1]+"."+a[2]}else if(Xh)return(a=fu(/Android\s+([0-9.]+)/))?a:fu(/Version\/([0-9.]+)/);return""}();function hu(a,b){this.B=a;this.j=!!b;this.A=!1;this.o={}}hu.prototype.dispose=function(){if(!this.A){if(this.j)try{URL.revokeObjectURL(this.B)}catch(a){}this.A=!0}};hu.prototype.ka=function(){return this.A};function ws(a){return a.j?a.B:Ve(a.B,a.o)}hu.prototype.equals=function(a){return null!=a&&ws(a)==ws(this)};function iu(a,b){this.o=a;this.A=b;this.B=0;Object.defineProperty(this,"timestampOffset",{get:this.vD,set:this.zD});Object.defineProperty(this,"buffered",{get:this.tD})}f=iu.prototype;f.append=function(a){this.o.webkitSourceAppend(this.A,a)};f.abort=function(){this.o.webkitSourceAbort(this.A)};f.tD=function(){return this.o.webkitSourceState==this.o.SOURCE_CLOSED?new ju:this.o.webkitSourceBuffered(this.A)};f.vD=function(){return this.B};
f.zD=function(a){this.B=a;this.o.webkitSourceTimestampOffset(this.A,a)};function ju(){this.length=0};function ku(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.o=NaN;this.A=0;Object.defineProperty(this,"duration",{get:this.uD,set:this.yD});Object.defineProperty(this,"readyState",{get:this.wD});this.j.addEventListener("webkitsourceclose",x(this.xD,this),!0)}f=ku.prototype;f.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};f.wG=function(){return this.j.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.A++).toString();this.j.webkitSourceAddId(b,a);a=new iu(this.j,b);this.sourceBuffers.push(a);return a};f.wD=function(){switch(this.j.webkitSourceState){case this.j.SOURCE_CLOSED:return"closed";case this.j.SOURCE_OPEN:return"open";case this.j.SOURCE_ENDED:return"ended"}return""};f.endOfStream=function(a){var b=this.j.EOS_NO_ERROR;"network"==a?b=this.j.EOS_NETWORK_ERR:"decode"==a&&(b=this.j.EOS_DECODE_ERR);this.j.webkitSourceEndOfStream(b)};f.xD=function(){mb(this.sourceBuffers)};
f.uD=function(){return this.o};f.yD=function(a){this.o=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};function lu(a){this.B=[];this.I=a||null}function mu(a,b,c,d){for(var e=0;e<c.length;e++)a.M(b,c[e],d)}lu.prototype.M=function(a,b,c){c=x(c,this.I||this);a.addEventListener(b,c,!1);this.B.push(a,b,c)};lu.prototype.removeAll=function(){if(this.B)for(;this.B.length;){var a=this.B.shift(),b=this.B.shift(),c=this.B.shift();a.removeEventListener&&a.removeEventListener(b,c)}};lu.prototype.ka=function(){return null===this.B};lu.prototype.dispose=function(){this.removeAll();this.B=null};function nu(a,b,c,d){lu.call(this);this.o=this.j=null;this.C=b;this.A=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new ku(a);this.D=this.F=null;mu(this,this.A,["sourceopen","webkitsourceopen"],pa(this.H,d,c));mu(this,this.A,["sourceclose","webkitsourceclose"],this.G)}z(nu,lu);function ou(a,b){a.D=b}function pu(a){if(!a.F){var b;b=a.A;b=b.wG?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.F=new hu(b,!0)}return a.F}
nu.prototype.Yf=function(a){qu(this)?this.A.duration=a:this.C=a};function qu(a){return"open"==a.A.readyState}function ru(a){return"closed"==a.A.readyState}function su(a){return a.j.updating||a.o.updating}function tu(a){return a.j?!!a.j.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}nu.prototype.H=function(a,b){isNaN(this.C)||(this.A.duration=this.C,this.C=NaN,this.j=this.A.addSourceBuffer(a),this.o=this.A.addSourceBuffer(b),this.D&&(this.D(this),this.D=null))};
nu.prototype.G=function(){this.dispose()};function uu(a){if(/opus/.test(a)&&(Yh&&!(0<=Ra(gu,"38"))||qs()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!os("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!du().canPlayType(a)};function vu(a){this.Rb=a}var wu="9h8(H*".split(""),xu="h98H(*".split(""),yu="oMavAV".split("");vu.prototype.j=function(){return null};vu.prototype.zl=function(){return this.Rb.video.quality};var zu={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},Au={"application/x-mpegURL":"maybe"},Bu={"application/x-mpegURL":"maybe"};
function Cu(a,b){if(!eu())return[];var c=Du(a,b);a=!c.length&&b?Du(a,!1):c;for(var d={},c=du(),e=0;e<a.length;e++){var g=a[e];if(Eu(c,g.Rb.mimeType)&&!Fu(g)){var h=g.zl();d[h]&&2!=d[h].Rb.j||(d[h]=g)}}var k=[];d.auto&&k.push(d.auto);D(Lt,function(a){(g=d[a])&&k.push(g)});return k}function Eu(a,b){var c;if(!(c=a.canPlayType(b))){var d;ms?d=Bu[b]:2.2==Wt?d=zu[b]:os("android")&&os("chrome")&&(d=Au[b]);c=d||""}return c}function Fu(a){return Gu(a.Rb)in Hu||ns()&&"5"==Gu(a.Rb)}
function Iu(){var a=os("android")&&os("chrome")&&!(0<=Ra(gu,29)),b=os("google tv")&&os("chrome")&&!(0<=Ra(gu,30));return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var Hu={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function Du(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];ed&&0!=e.Rb.video.j&&1==e.Rb.j||0!=e.Rb.video.j==b&&c.push(e)}return c}
function Ju(a,b){if(!b.j)return a[0];for(var c=0;c<a.length;c++){var d=a[c].Rb,e=Kt[d.video.quality];if((!b.A||"auto"!=d.video.quality)&&e<=b.j)return a[c]}return a[a.length-1]}
function Ku(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.j){var g=a.j[e];if(uu(g.info.mimeType)){if(g.info.B){d||(d=du());if(!Dt(d,g.info.mimeType,g.info.B))continue;if(261==Gu(g.info)&&(ns()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.A]=c[g.info.A]||[];c[g.info.A].push(g.info)}}a=wu;if(os("cros armv7")||os("windows nt 5.1"))a=xu;d=F(a,b);a=F(yu,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=fb(c["9"],
e,0),fb(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];zb(d,function(a,b){return b.video.width-a.video.width||b.ya-a.ya});zb(a,function(a,b){return b.ya-a.ya});return new Tt(d,a)};var Lu={created:1,ready:2,testing:4,"testing-starting":3,live:6,"live-starting":5,complete:8,"complete-starting":7};/*
 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 Mu(a,b){this.C=[];this.N=a;this.J=b||null;this.B=this.j=!1;this.A=void 0;this.H=this.O=this.F=!1;this.D=0;this.o=null;this.G=0}Mu.prototype.cancel=function(a){if(this.j)this.A instanceof Mu&&this.A.cancel();else{if(this.o){var b=this.o;delete this.o;a?b.cancel(a):(b.G--,0>=b.G&&b.cancel())}this.N?this.N.call(this.J,this):this.H=!0;this.j||Nu(this,new Ou)}};Mu.prototype.I=function(a,b){this.F=!1;Pu(this,a,b)};function Pu(a,b,c){a.j=!0;a.A=c;a.B=!b;Qu(a)}
function Ru(a){if(a.j){if(!a.H)throw new Su;a.H=!1}}function Nu(a,b){Ru(a);Pu(a,!1,b)}function Tu(a,b,c){Uu(a,b,null,c)}function Uu(a,b,c,d){a.C.push([b,c,d]);a.j&&Qu(a)}Mu.prototype.then=function(a,b,c){var d,e,g=new cn(function(a,b){d=a;e=b});Uu(this,d,function(a){a instanceof Ou?g.cancel():e(a)});return g.then(a,b,c)};an(Mu);function Vu(a){return gb(a.C,function(a){return ha(a[1])})}
function Qu(a){if(a.D&&a.j&&Vu(a)){var b=a.D,c=Wu[b];c&&(m.clearTimeout(c.Ca),delete Wu[b]);a.D=0}a.o&&(a.o.G--,delete a.o);for(var b=a.A,d=c=!1;a.C.length&&!a.F;){var e=a.C.shift(),g=e[0],h=e[1],e=e[2];if(g=a.B?h:g)try{var k=g.call(e||a.J,b);n(k)&&(a.B=a.B&&(k==b||k instanceof Error),a.A=b=k);bn(b)&&(d=!0,a.F=!0)}catch(l){b=l,a.B=!0,Vu(a)||(c=!0)}}a.A=b;d&&(k=x(a.I,a,!0),d=x(a.I,a,!1),b instanceof Mu?(Uu(b,k,d),b.O=!0):b.then(k,d));c&&(b=new Xu(b),Wu[b.Ca]=b,a.D=b.Ca)}
function Su(){ra.call(this)}z(Su,ra);Su.prototype.message="Deferred has already fired";Su.prototype.name="AlreadyCalledError";function Ou(){ra.call(this)}z(Ou,ra);Ou.prototype.message="Deferred was canceled";Ou.prototype.name="CanceledError";function Xu(a){this.Ca=m.setTimeout(x(this.o,this),0);this.j=a}Xu.prototype.o=function(){delete Wu[this.Ca];throw this.j;};var Wu={};function Yu(a,b){var c=b||{},d=c.document||document,e=Rd("SCRIPT"),g={Hr:e,zb:void 0},h=new Mu(Zu,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){$u(e,!0);Nu(h,new av(1,"Timeout reached for loading script "+a))},l),g.zb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||($u(e,c.sw||!1,k),Ru(h),Pu(h,!0,null))};e.onerror=function(){$u(e,!0,k);Nu(h,new av(0,"Error while loading script "+a))};Id(e,{type:"text/javascript",
charset:"UTF-8",src:a});bv(d).appendChild(e);return h}function bv(a){var b=a.getElementsByTagName("HEAD");return!b||lb(b)?a.documentElement:b[0]}function Zu(){if(this&&this.Hr){var a=this.Hr;a&&"SCRIPT"==a.tagName&&$u(a,!0,this.zb)}}function $u(a,b,c){null!=c&&m.clearTimeout(c);a.onload=v;a.onerror=v;a.onreadystatechange=v;b&&window.setTimeout(function(){Wd(a)},0)}function av(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ra.call(this,c);this.code=a}z(av,ra);function cv(a,b){this.o=new J(a);this.j=b?b:"callback";this.zb=5E3}var dv=0;cv.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(dv++).toString(36)+y().toString(36);m._callbacks_||(m._callbacks_={});var e=this.o.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||rf(e,g,a[g]);b&&(m._callbacks_[d]=ev(d,b),rf(e,this.j,"_callbacks_."+d));b=Yu(e.toString(),{timeout:this.zb,sw:!0});Uu(b,null,fv(d,a,c),void 0);return{Ca:d,Lo:b}};
cv.prototype.cancel=function(a){a&&(a.Lo&&a.Lo.cancel(),a.Ca&&gv(a.Ca,!1))};function fv(a,b,c){return function(){gv(a,!1);c&&c(b)}}function ev(a,b){return function(c){gv(a,!0);b.apply(void 0,arguments)}}function gv(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=v)};function hv(a,b){S.call(this);this.B=b+"feeds/api/users/live/broadcasts/"+a+"/states?v=2&alt=json-in-script";this.j=new tn(15E3+Math.floor(3E4*Math.random()));xm(this.j,"tick",x(this.o,this));this.o();this.j.start()}z(hv,S);hv.prototype.P=function(){this.j.dispose();hv.K.P.call(this)};hv.prototype.o=function(){(new cv(this.B)).send(null,x(this.A,this),x(this.C,this))};hv.prototype.A=function(a){this.L("payload",a);un(this.j,15E3+Math.floor(3E4*Math.random()))};
hv.prototype.C=function(){this.L("error");var a=this.j.j;192E4>a&&un(this.j,2*a)};function iv(a){Q.call(this);this.j={};this.A={};this.B={};this.o=jv(this,a)}z(iv,Q);function jv(a,b,c){var d=0,e=Rd(b[d++]);if(w(b[d])||ea(b[d])||null===b[d]){var g=b[d++];ea(g)&&(g=g.join(" "));if(g=kv(a,e,"className",g))lv(a,e,"className",g),mv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(ea(h))jv(a,h,e);else if(ja(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&lv(g,k,l,kv(g,k,l,h[l]))}else w(h)&&(g=kv(a,e,"child",h),null!=g&&e.appendChild(Sd(g)))}c&&c.appendChild(e);return e}f=iv.prototype;f.Q=function(){return this.o};
function mv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)mv(a,d[b],c);else a.j[b]=c}f.ea=function(a,b){n(b)?a.insertBefore(this.o,a.childNodes[b]||null):a.appendChild(this.o)};f.detach=function(){Wd(this.o)};function kv(a,b,c,d){return w(d)&&"{{"==d.substr(0,2)?(a.A[d]=[b,c],null):d}f.update=function(a){for(var b in a)nv(this,b,a[b])};function nv(a,b,c){if(c!=a.B[b]){var d=a.A["{{"+b+"}}"];d&&(a.B[b]=c,lv(a,d[0],d[1],c))}}function ov(a){return ea(a)&&w(a[0])}
function lv(a,b,c,d){if("child"==c){Vd(b);if(!ea(d)||ov(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ga(g)||w(g)||ja(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?ov(g)?c.push(jv(a,g)):g.Q?c.push(g.Q()):c.push(Sd(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.P=function(){this.j={};this.A={};this.B={};this.detach();delete this.o;iv.K.P.call(this)};function pv(a,b){a&&(a.style.display=b)}function qv(a,b){var c=wh("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function Y(a){Q.call(this);this.template=new iv(a);R(this,this.template);this.element=this.template.Q();this.ba="block";this.D=!0;this.ob=[]}z(Y,Q);f=Y.prototype;f.Q=function(){return this.element};f.ea=function(a,b){this.template.ea(a,b)};f.detach=function(){this.template.detach()};f.za=function(a,b){nv(this.template,b||"content",a)};f.va=function(){pv(this.element,this.ba);this.D=!0;this.element.removeAttribute("aria-hidden")};
f.$=function(){pv(this.element,"none");this.D=!1;this.element.setAttribute("aria-hidden","true")};function rv(a,b){a.element.setAttribute("role",b)}f.kb=function(a){this.element.setAttribute("aria-label",a)};f.$b=function(a){Nh(this.element,a)};f.M=function(a,b,c){return sv(this,this.element,a,b,c)};function sv(a,b,c,d,e,g){b=P(b,c,x(d,e||a),g);a.ob.push(b);return b}f.Ia=function(a){Hh(a)};f.P=function(){this.Ia(this.ob);delete this.element;Y.K.P.call(this)};function tv(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 uv(a){return Math.round(1E3*a)/10}function vv(a){return(!ga(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var wv={CJ:"html5-stop-propagation",FI:"ytp-no-controls",eI:"html5-live-dvr-disabled",fI:"html5-live-dvr-engaged",gI:"html5-live-playback",ZH:"ytp-iv-drawer-enabled",$H:"ytp-iv-drawer-open",rI:"html5-mobile",uI:"modest-branding",BI:"html5-native-controls",HJ:"html5-tablet",GJ:"html5-tablet-body",mI:"html5-main-video",dK:"html5-video-container",eK:"html5-video-content",fK:"html5-video-controls",gK:"ytp-fallback",hK:"ytp-fallback-content",jK:"html5-video-loader",qK:"html5-watermark",TG:"html5-branded-watermark",
iH:"html5-context-menu",Bu:"html5-context-menu-copy-debug-info",Cu:"html5-context-menu-copy-embed-html",Du:"html5-context-menu-copy-video-url",Eu:"html5-context-menu-copy-video-url-at-current-time",Fu:"html5-context-menu-link",Gu:"html5-context-menu-report-playback-issue",Hu:"html5-context-menu-show-video-info",jH:"html5-show-video-info-template",sI:"html5-modal-panel",QH:"ideal-aspect",DH:"autohide-controls",FH:"autohide-controls-aspect",EH:"autohide-controls-fullscreen",pI:"autominimize-progress-bar",
qI:"autominimize-progress-bar-non-aspect",GH:"hide-info-bar",HH:"html5-hide-share",IH:"html5-hide-volume",MJ:"ytp-tiny-mode",mK:"video-thumbnail",UI:"ytp-dialog",KG:"html5-async-progress",LG:"html5-async-success",JG:"html5-async-error",cH:"html5-center-overlay",jJ:"ytp-scalable-icon-shrink",iJ:"ytp-scalable-icon-grow",NH:"house-brand",nJ:"sentiment-like",mJ:"sentiment-dislike"};function xv(){Y.call(this,["div",["ytp-fresca-module","html5-stop-propagation"],["div","ytp-fresca-band-slate",["hgroup","ytp-fresca-message",["h2","ytp-fresca-heading","{{heading}}"],["h3","ytp-fresca-subheading","{{subheading}}"],["h4","ytp-fresca-long-test","{{long_text}}"]],["span","ytp-fresca-countdown","{{countdown}}"]]]);this.o=0;this.j=null}z(xv,Y);
xv.prototype.update=function(a){this.j&&this.j.state==a.state&&this.j.startTime==a.startTime&&this.j.imageUrl==a.imageUrl&&this.j.messageText.join()==a.messageText.join()||(this.j=a,this.element.style.backgroundImage=this.j.imageUrl||"none",a=this.j.getMessage(),this.template.update({heading:a[0]||"",subheading:a[1]||"",long_text:a[2]||""}),this.A())};function yv(a){var b=Math.floor(y()/1E3);return b>a?Zf("YTP_FRESCA_STARTING_SOON_MESSAGE"):tv(a-b)}
xv.prototype.A=function(){var a;a=this.j;a.startTime?(a=a.state,a=6==a||8==a||7==a?!1:!0):a=!1;O(this.element,"ytp-fresca-show-countdown",a);a&&(this.template.update({countdown:yv(this.j.startTime)}),M(this.o),this.o=L(x(this.A,this),1E3))};xv.prototype.P=function(){M(this.o);xv.K.P.call(this)};function zv(a){this.messageText=[];this.j=!1;a&&Av(this,a)}zv.prototype.state=-1;function Bv(a){return{imageUrl:a.imageUrl,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function Av(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Lu[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.imageUrl="url("+d.imgUrl+")"),(d=d.content)&&d.length&&(d=d.splice(0,3),a.messageText=E(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=ib(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}zv.prototype.getMessage=function(){return this.messageText.length?this.messageText:Cv(this)};
function Cv(a){switch(a.state){case 6:return a.j?[]:[Zf("YTP_FRESCA_STAND_BY_MESSAGE"),Zf("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Zf("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Zf("YTP_FRESCA_EVENT_OVER_MESSAGE"),Zf("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Zf("YTP_FRESCA_STAND_BY_MESSAGE")]}};function Dv(a){Ys.call(this,a);Yf({YTP_FRESCA_STARTING_SOON_MESSAGE:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0441\u043a\u043e\u0440\u043e \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f...",YTP_FRESCA_EVENT_OVER_MESSAGE:"\u0422\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044f \u0437\u0430\u043a\u043e\u043d\u0447\u0435\u043d\u0430.",YTP_FRESCA_COMPLETE_MESSAGE:"\u0411\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u043c \u0437\u0430 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440!",
YTP_FRESCA_STAND_BY_MESSAGE:"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043f\u043e\u0434\u043e\u0436\u0434\u0438\u0442\u0435.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"\u041a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u0443 \u043d\u0430\u0441 \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u0438 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b."})}z(Dv,Ys);f=Dv.prototype;f.xa="fresca";f.Bc="fresca";
f.rj=!1;f.hh=!1;f.Ha=function(){return Ev(this.j.getVideoData(),"fresca_module")};
f.Na=function(a){Dv.K.Na.call(this);Eu(du(),"application/x-mpegURL")||Iu()?(this.rj=this.hh=!1,it(this,["play_pause","seek"]),this.A=new xv,Wr(this.j,this.A.Q()),this.B=a||new hv(this.j.getVideoData().videoId,this.j.W().Mh),this.B.subscribe("payload",this.qB,this),this.B.subscribe("error",this.pB,this),this.subscribe("onStateChange",this.jt,this)):Fv(this.j.T.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
f.destroy=function(){this.qa("onStateChange",this.jt,this);Ai(this.B,this.A);Dv.K.destroy.call(this)};f.jt=function(a){this.o&&(this.rj=X(a.state,2),(Gv(a,16)||this.rj)&&Hv(this,this.o))};f.pB=function(){this.hh||(Iv(this,new zv),Hv(this,this.o))};f.qB=function(a){Iv(this,new zv(a));a=this.j.getVideoData();6!=this.o.state||a.aa||a.O?Hv(this,this.o):this.j.In(a.videoId)};
function Hv(a,b){var c=6>b.state;!c&&a.j.T.o.oa&&(b.imageUrl||b.messageText.length)&&(c=!0);a.rj&&!a.j.W().ua&&(c=!0);b.j||(c=!0);if(!a.hh)switch(b.state){case 6:b.j&&(a.hh=!0,jt(a,["play_pause","seek"]),bt(a));break;case 8:case 7:c=a.hh=!0}c&&a.A.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function Jv(a){return Ev(a.getVideoData(),"fresca_module")?new Dv(a):null}function Iv(a,b){a.o!=b&&(a.o=b,a.j.W().Hb()&&a.L("publish_external_event","onFrescaStateChange",Bv(a.o)))};function Kv(a){this.Bn=a||window;this.gg=[]}f=Kv.prototype;f.Bn=null;f.gg=null;f.M=function(a,b,c,d){c=x(c,d||this.Bn);a=P(a,b,c);this.gg.push(a);return a};function Lv(a,b,c,d,e,g){d=x(d,g||a.Bn);b=Ih(b,c,d,e);a.gg.push(b)}f.Ia=function(a){Hh(a);ob(this.gg,a)};f.removeAll=function(){Hh(this.gg);this.gg=[]};function Mv(a,b,c){Q.call(this);this.j=a;this.B=b||0;this.o=c;this.A=x(this.Tw,this)}z(Mv,Q);f=Mv.prototype;f.Ca=0;f.P=function(){Mv.K.P.call(this);this.stop();delete this.j;delete this.o};f.start=function(a){this.stop();this.Ca=vn(this.A,n(a)?a:this.B)};f.stop=function(){this.isActive()&&wn(this.Ca);this.Ca=0};f.isActive=function(){return 0!=this.Ca};f.Tw=function(){this.Ca=0;this.j&&this.j.call(this.o)};function Nv(a,b){U.call(this);this.j=a;var c=ae(this.j)?this.j:this.j?this.j.body:null;c&&ah(c);this.o=xm(this.j,ed?"DOMMouseScroll":"mousewheel",this,b)}z(Nv,U);
Nv.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.j;if("mousewheel"==a.type){c=1;if(dd||fd&&(id||rd("532.0")))c=40;d=Ov(-a.wheelDelta,c);n(a.wheelDeltaX)?(b=Ov(-a.wheelDeltaX,c),c=Ov(-a.wheelDeltaY,c)):c=d}else d=a.detail,100<d?d=3:-100>d&&(d=-3),n(a.axis)&&a.axis===a.HORIZONTAL_AXIS?b=d:c=d;ga(this.A)&&Pc(b,-this.A,this.A);ga(this.B)&&Pc(c,-this.B,this.B);b=new Pv(d,a);this.X(b)};function Ov(a,b){return fd&&(hd||jd)&&0!=a%b?a:a/b}
Nv.prototype.P=function(){Nv.K.P.call(this);Gm(this.o);this.o=null};function Pv(a,b){km.call(this,b);this.type="mousewheel";this.detail=a}z(Pv,km);var Qv={},Rv=null;function Sv(a){a=ka(a);delete Qv[a];Ub(Qv)&&Rv&&Rv.stop()}function Tv(){Rv||(Rv=new Mv(function(){Uv()},20));var a=Rv;a.isActive()||a.start()}function Uv(){var a=y();Hb(Qv,function(b){Vv(b,a)});Ub(Qv)||Tv()};function Wv(){U.call(this);this.j=0;this.endTime=this.startTime=null}z(Wv,U);f=Wv.prototype;f.tb=function(){return 1==this.j};f.hj=function(){this.sc("begin")};f.Yg=function(){this.sc("end")};f.Wb=function(){this.sc("finish")};f.sc=function(a){this.X(a)};function Xv(a,b,c,d){Wv.call(this);if(!ea(a)||!ea(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.B=a;this.H=b;this.duration=c;this.F=d;this.A=[];this.o=this.G=0;this.D=null}z(Xv,Wv);f=Xv.prototype;
f.play=function(a){if(a||0==this.j)this.o=0,this.A=this.B;else if(this.tb())return!1;Sv(this);this.startTime=a=y();-1==this.j&&(this.startTime-=this.duration*this.o);this.endTime=this.startTime+this.duration;this.D=this.startTime;this.o||this.hj();this.sc("play");-1==this.j&&this.sc("resume");this.j=1;var b=ka(this);b in Qv||(Qv[b]=this);Tv();Vv(this,a);return!0};f.stop=function(a){Sv(this);this.j=0;a&&(this.o=1);Yv(this,this.o);this.sc("stop");this.Yg()};
f.pause=function(){this.tb()&&(Sv(this),this.j=-1,this.sc("pause"))};f.P=function(){0==this.j||this.stop(!1);this.sc("destroy");Xv.K.P.call(this)};f.destroy=function(){this.dispose()};function Vv(a,b){a.o=(b-a.startTime)/(a.endTime-a.startTime);1<=a.o&&(a.o=1);a.G=1E3/(b-a.D);a.D=b;Yv(a,a.o);1==a.o?(a.j=0,Sv(a),a.Wb(),a.Yg()):a.tb()&&a.Bm()}function Yv(a,b){ha(a.F)&&(b=a.F(b));a.A=Array(a.B.length);for(var c=0;c<a.B.length;c++)a.A[c]=(a.H[c]-a.B[c])*b+a.B[c]}f.Bm=function(){this.sc("animate")};
f.sc=function(a){this.X(new Zv(a,this))};function Zv(a,b){fm.call(this,a);this.x=b.A[0];this.y=b.A[1];this.duration=b.duration;this.fps=b.G;this.state=b.j}z(Zv,fm);function $v(a){return Math.pow(a,3)}function aw(a){return 3*a*a-2*a*a*a};function bw(a){return ea(a)&&a.length?a[0]:a}function cw(a){var b=/.+/;return w(a)&&null!=b&&null!=a&&a.match(b)?a:""}function dw(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 ew(a){return w(a)?a:""}function fw(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function gw(a,b){return"true"==a||"false"==a?"true"==a:b}function hw(a,b){return w(a)?parseFloat(a):b}
function iw(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Pc(a,c,d);if(a>=c&&a<=d)return a}return g}function jw(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;D(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function kw(a,b){if(null==a)return null;if(fa(a)){var c=[];D(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function lw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new tg(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 mw(a){function b(a){return eb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function nw(a,b,c){this.value=a;this.target=b;this.showLinkIcon=c}var ow={mH:"current",DI:"new"};function pw(a){if(!a)return null;var b=ew(a.value);if(!b||null==vj(b))return null;var c=fw(a.target,ow,"current");return null==c?null:new nw(b,c,gw(a.show_link_icon,!0))};function qw(a){if(!a)return!1;var b=rw(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function sw(a){if(!a)return!1;a=rw(a);return"com"==a[0]&&"google"==a[1]&&"plus"==a[2]}function rw(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function tw(a,b){if("new"==a.target)return-1;var c=a.value?a.value:null;if(!c)return-1;var c=c.replace(/https?:\/\//g,""),d;(d=!qw(c))||(d=Me(Ie(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=vj(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=tj(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 uw(a,b,c,d){a=a.value?a.value:null;if(!a)return null;if(qw(a)){var e={feature:"iv",src_vid:c,annotation_id:b},g=vj(a);Hb(e,function(a,b){b in g&&Wb(e,b)});return yj(a,e)}return sw(a)&&d?vw(a,pa(ww,d.pageId,d.mb)):a}function vw(a,b){var c=new J(a);df(c,b(c.Lb));return c.toString()}function ww(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 xw(a){return a.target?"new"==a.target?"_blank":"_top":qw(a.value?a.value:null)?"_top":"_blank"};function yw(a,b){this.A=a;this.o=b;this.j={}}function zw(a,b,c,d){if(b){var e=Aw(a,b);a.j[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;ac(e,c||{});b=sb(d||[]);30==e["a-type"]&&(c=Bw(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);Cw(a,e,b)}}function Dw(a,b,c,d,e){if(b){var g=Aw(a,b);g["iv-event"]=3;g["i-time"]=a.j[b]||"";ac(g,d||{});b=sb(e||[]);30==g["a-type"]&&(d=Bw(a,g["a-id"],"cta_annotation_clicked"))&&b.push(d);Cw(a,g,b,c)}}
function Ew(a,b){if(b){var c=Aw(a,b);c["iv-event"]=4;c["i-time"]=a.j[b]||"";ac(c,{});var d=sb([]);if(30==c["a-type"]){var e=Bw(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}Cw(a,c,d)}}function Bw(a,b,c){a=a.o.getVideoData();if(a.Lc){if((c=a.Lc[c])&&-1!=c.search(Jf))return a=wa("[ANNOTATION_ID]"),0<=c.indexOf("[ANNOTATION_ID]")?c=c.replace("[ANNOTATION_ID]",b):0<=c.indexOf(a)&&(c=c.replace(a,b)),c}else if(a.na)return yj(a.na,{label:c,value:"a_id="+b});return""}
function Cw(a,b,c,d){var e=1,g,h=-1;if(d){var k=!1;g=function(){e--;e||k||(clearTimeout(h),k=!0,d())};h=setTimeout(function(){k=!0;d()},1E3)}D(c||[],function(a){e++;jg(a,g)});a.Pa(b,g)}function Aw(a,b){var c={};if(b){var d=new gf(b);D(d.Ka(),function(a){c[a]=escape(d.get(a,""))})}c["p-time"]=a.o.getCurrentTime().toFixed(2);c.ps=a.o.W().j;return c}function Fw(a,b,c){var d=Aw(a);d["iv-event"]=b;d["a-id"]="card:drawer";d["a-type"]=51;Cw(a,d,c)}
function Gw(a,b,c,d,e){c&&(c=Aw(a,c),c["iv-event"]=b,ac(c,d||{}),Cw(a,c,e))}yw.prototype.Pa=function(a,b){this.A.L("command_log","iv",a,b)};function Hw(a,b){this.N=a;this.context=b;this.rn=!1;this.F=0}function Iw(a,b,c,d,e,g){b=new Ms(b,c,{id:d});b.namespace="iv-module";e&&b.Wa.subscribe("onEnter",e,a);g&&b.Wa.subscribe("onExit",g,a);a.context.Wa.L("command_add_cuerange",[b],a.context.o.getPlayerType())}f=Hw.prototype;f.Jj=function(){this.context.Wa.subscribe("onResize",this.Wk,this)};f.Q=function(){return this.N};
f.Kj=function(a,b,c,d,e){Lv(this.context.j,a,"click",pa(this.Se,a,b,c,d,e||[]),"iv-click-target",this);Lv(this.context.j,a,"touchend",pa(this.Se,a,b,c,d,e||[]),"iv-click-target",this);Lv(this.context.j,a,"touchstart",pa(function(){this.rn=!1}),"iv-click-target",this);Lv(this.context.j,a,"touchmove",pa(function(){this.rn=!0}),"iv-click-target",this)};
f.Se=function(a,b,c,d,e,g){if(this.rn)return!0;g.stopPropagation();g.preventDefault();var h=uw(b,c,this.context.A.videoId);a=x(function(){this.context.o.pauseVideo();window.open(h,xw(b))},this);qw(b.value?b.value:null)&&"new"!=b.target||(a(),a=null);c={};c.interval=y()-this.F;Dw(this.context.logger,d,a,c,e);return!1};f.Dh=function(){this.F=y()};f.$=function(){};f.destroy=function(){Wd(this.Q())};f.Wk=function(){};var Jw=16/9,Kw=4/3,Lw=[.25,.5,1,1.25,1.5,2];function Mw(a,b){ea(b)||(b=[b]);var c=E(b,function(a){return w(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.Mo+"s"});Nw(a,c.join(","))}
var Ow=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(dd)return rd("10.0");var a=document.createElement("div"),b=fd?"-webkit":ed?"-moz":dd?"-ms":cd?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Kc.test("div"))throw Error("Invalid tag name <div>.");if("div"in Mc)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!Kc.test(e))throw Error('Invalid attribute name "'+
e+'".');var g=b[e];if(null!=g){var h;h=e;if(g instanceof oc)g=qc(g);else if("style"==h.toLowerCase()){if(!ja(g))throw Error('The "style" attribute requires goog.html.SafeStyle or map of style properties, '+typeof g+" given: "+g);if(!(g instanceof sc)){var k="",l=void 0;for(l in g){if(!/^[-_a-zA-Z0-9]+$/.test(l))throw Error("Name allows only [-_a-zA-Z0-9], got: "+l);var p=g[l];if(null!=p){if(p instanceof oc)p=qc(p);else if(xc.test(p)){for(var r=!0,t=!0,C=0;C<p.length;C++){var V=p.charAt(C);"'"==V&&
t?r=!r:'"'==V&&r&&(t=!t)}r&&t||(p="zClosurez")}else p="zClosurez";k+=l+":"+p+";"}}g=k?vc(k):wc}g=uc(g)}else{if(/^on/i.test(h))throw Error('Attribute "'+h+'" requires goog.string.Const value, "'+g+'" given.');if(h.toLowerCase()in Lc)if(g instanceof Fc)g=g instanceof Fc&&g.constructor===Fc&&g.j===Gc?"":"type_error:TrustedResourceUrl";else if(g instanceof yc)g=Ac(g);else throw Error('Attribute "'+h+'" on tag "div" requires goog.html.SafeUrl or goog.string.Const value, "'+g+'" given.');}g.Pe&&(g=g.Ge());
h=h+'="'+ya(String(g))+'"';d=d+(" "+h)}}e=void 0;n(e)?ea(e)||(e=[e]):e=[];!0===ec.div?d+=">":(c=Nc(e),d+=">"+Jc(c)+"</div>",c=c.zf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Oc(d,c);a.innerHTML=Jc(b);return""!=Gg(a.firstChild,"transition")});function Nw(a,b){Dg(a,"transition",b)};function Pw(a,b){(a=Ed(a))&&a.style&&($g(a,b),O(a,"hid",!b))}function Qw(a){return(a=Ed(a))?!("none"==a.style.display||mh(a,"hid")):!1}function Rw(a){D(arguments,function(a){Pw(a,!0)})}function Sw(a){D(arguments,function(a){Pw(a,!1)})};function Tw(){return!!u("yt.scheduler.instance")}function Uw(a,b){void 0===b&&(b=NaN);var c=u("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):L(a,b||0)}function Vw(a,b){return Uw(a,b)}function Ww(a){var b=u("yt.scheduler.instance.cancelJob");b?b(a):M(a)}function Xw(){var a=u("yt.scheduler.instance.start");a&&(M(Yw),a())}var Yw=0;function Zw(){var a=u("yt.scheduler.instance.pause");a&&(a(),M(Yw),Yw=L(Xw,800))};function $w(a,b){this.version=a;this.args=b}function ax(a){if(!a.he){var b={};a.call(b);a.he=b.version}return a.he}
function bx(a,b){function c(){a.apply(this,b.args)}if(!b.args||!b.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");var d;try{d=ax(a)}catch(e){}if(!d||b.version!=d)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");c.prototype=a.prototype;try{return new c}catch(g){throw g.message="yt.pubsub2.Data.deserialize(): "+g.message,g;}}$w.prototype.F=function(){return{version:this.version,args:this.args}};
function cx(a,b){this.o=a;this.j=b}cx.prototype.toString=function(){return this.o};var dx=u("yt.pubsub2.instance_")||new Bi;Bi.prototype.subscribe=Bi.prototype.subscribe;Bi.prototype.unsubscribeByKey=Bi.prototype.Pb;Bi.prototype.publish=Bi.prototype.L;Bi.prototype.clear=Bi.prototype.clear;q("yt.pubsub2.instance_",dx,void 0);var ex=u("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",ex,void 0);var fx=u("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",fx,void 0);var gx=u("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",gx,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);
function hx(a,b){var c=ix,d=jx();if(!d)return 0;var e=d.subscribe(c.toString(),function(d,h){if(!window.yt.pubsub2.skipSubKey_||window.yt.pubsub2.skipSubKey_!=e){var k=function(){if(ex[e])try{if(h&&c instanceof cx&&c!=d)try{h=bx(c.j,h)}catch(k){throw k.message="yt.pubsub2 cross-binary conversion error for "+c.toString()+": "+k.message,k;}a.call(b||window,h)}catch(p){Xf(p)}};gx[c.toString()]?Tw()?Uw(k,void 0):L(k,0):k()}});ex[e]=!0;fx[c.toString()]||(fx[c.toString()]=[]);fx[c.toString()].push(e);return e}
function kx(a,b){var c=hx(function(d){a.apply(b,arguments);lx(c)},b);return c}function lx(a){var b=jx();b&&(ga(a)&&(a=[a]),D(a,function(a){b.unsubscribeByKey(a);delete ex[a]}))}function jx(){return u("yt.pubsub2.instance_")};var mx={},nx="ontouchstart"in document;function ox(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return oe(c,function(a){return mh(a,b)},!0,d)}
function px(a){var b="mouseover"==a.type&&"mouseenter"in mx||"mouseout"==a.type&&"mouseleave"in mx,c=a.type in mx||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=mx[b],d;for(d in c.qc){var e=ox(b,d,a.target);e&&!oe(a.relatedTarget,function(a){return a==e},!0)&&c.L(d,e,b,a)}}if(b=mx[a.type])for(d in b.qc)(e=ox(a.type,d,a.target))&&b.L(d,e,a.type,a)}}P(document,"blur",px,!0);P(document,"change",px,!0);P(document,"click",px);P(document,"focus",px,!0);
P(document,"mouseover",px);P(document,"mouseout",px);P(document,"mousedown",px);P(document,"keydown",px);P(document,"keyup",px);P(document,"keypress",px);P(document,"cut",px);P(document,"paste",px);nx&&(P(document,"touchstart",px),P(document,"touchend",px),P(document,"touchcancel",px));function qx(){this.B={};this.Mm=[]}function rx(a,b){return"yt-uix"+(a.qi?"-"+a.qi:"")+(b?"-"+b:"")}qx.prototype.init=v;qx.prototype.dispose=v;function sx(a,b,c){var d=rx(a,void 0),e=x(c,a);b in mx||(mx[b]=new Bi);mx[b].subscribe(d,e);a.B[c]=e}qx.prototype.o=function(a,b,c){var d=vi(a,b);if(d&&(d=u(d))){var e=vb(arguments,2);ub(e,0,0,a);d.apply(null,e)}};function tx(a,b){ti(a,"tooltip-text",b)}qx.prototype.removeData=function(a,b){a&&(a.dataset?delete a.dataset[ui(b)]:a.removeAttribute("data-"+b))};function ux(){qx.call(this);this.j={}}z(ux,qx);ba(ux);f=ux.prototype;f.qi="scroller";f.register=function(){sx(this,"mouseenter",this.vz);sx(this,"mouseleave",this.mq)};f.dispose=function(){for(var a in this.j)this.mq(this.j[a]);this.j={}};f.vz=function(a){var b=P(a,"mousewheel",x(this.Ex,this,a));ti(a,"scroller-mousewheel-listener",b);b=P(a,"scroll",x(this.Xx,this,a));ti(a,"scroller-scroll-listener",b);a&&(b=ka(a).toString(),this.j[b]=a)};
f.mq=function(a){var b=vi(a,"scroller-mousewheel-listener")||"";ti(a,"scroller-mousewheel-listener","");var c=vi(a,"scroller-scroll-listener")||"";ti(a,"scroller-scroll-listener","");Hh(b);Hh(c);ti(a,"scroller-scroll-listener","");a&&(a=ka(a).toString(),delete this.j[a])};f.Ex=function(a,b){b.preventDefault();b.wheelDeltaY&&(a.scrollTop=a.scrollTop+b.wheelDeltaY);Ki("yt-dom-content-change",a)};f.Xx=function(a){this.o(a,"scroll-action")};var vx=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};q("yt.uix.widgets_",vx,void 0);function wx(a){a=a.getInstance();var b=rx(a);b in vx||(a.register(),a.Mm.push(Hi("yt-uix-init-"+b,a.init,a)),a.Mm.push(Hi("yt-uix-dispose-"+b,a.dispose,a)),vx[b]=a)};function xx(a,b,c){this.id=a;this.type=b.card_type;this.teaserText=b.teaser_text||b.title;this.teaserDurationMs=b.teaser_duration_ms||5E3;this.startMs=b.start_ms;this.endMs=b.end_ms;this.qb=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.j={Wy:a.impression,click:a.click,close:a.close,gD:a.teaser_impression,as:a.teaser_click}};function yx(a,b,c){xx.call(this,a,b,c);this.A=b.custom_message;this.B=b.image_url;this.title=b.title;this.o=b.meta_info;this.url=pw({target:b.target||"new",value:b.url})}z(yx,xx);function zx(a,b,c){this.j=a;this.C=b;this.o=c}function Ax(a,b){var c=Bx(a,b.url,b.id),c=["article","iv-card-channel",["div",["iv-card-content","iv-click-target"],b.A?["p","",["a",{href:c},b.A]]:"",["div","iv-card-channel-content",{style:"background-image: url("+b.B+");"},["h2","",["a",{href:c},b.title]],Cx(b)]]],c=new Y(c),d=c.Q();Dx(a,d,b);return c}
function Ex(a,b){var c=Bx(a,b.url,b.id),c=["article","iv-card-playlist",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.A+");"},["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Zf("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],Cx(b)]],c=new Y(c),d=c.Q();Dx(a,d,b);return c}
function Fx(a,b){var c=["ul","yt-uix-form-list-option"];tb(c,E(b.options,function(a){return["li","",["label","iv-click-target",["span","yt-uix-form-input-radio-container",["input","yt-uix-form-input-radio",{type:"radio",name:"radio",value:a.index.toString()}],["span","yt-uix-form-input-radio-element"]]," ",a.desc]]}));var c=["article","iv-card-poll",["div","iv-card-content",["h2","",b.title],["form","",c,["button",["yt-uix-button","yt-uix-button-size-default","yt-uix-button-primary"],["span","yt-uix-button-content",
Zf("YTP_DRAWER_POLL_SUBMIT")]]]]],c=new Y(c),d=c.Q();Lv(a.j.j,d,"click",pa(a.A,b),"yt-uix-button",a);return c}function Gx(a,b){var c=Bx(a,b.url,b.id),c=Hx(b,c),c=new Y(c),d=c.Q();Dx(a,d,b);return c}function Ix(a,b){var c=Bx(a,b.url,b.id),c=Hx(b,c),c=new Y(c),d=c.Q();Lv(a.j.j,d,"click",pa(a.B,b),"iv-click-target",a);return c}
function Jx(a,b){var c=Bx(a,b.url,b.id),c=["article","iv-card-video",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.A+");"},["span","iv-card-video-duration",b.videoDuration]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],Cx(b)]],c=new Y(c),d=c.Q();Dx(a,d,b);return c}function Cx(a){if(!a.o||0==a.o.length)return"";var b=["ul","iv-card-meta-info"];D(a.o,function(a){b.push(["li","",a])});return b}
function Hx(a,b){var c=a.displayDomain?["a",{href:b},a.displayDomain]:"",d=["iv-card-action"],e={href:b},g=["span","",a.D];a.o&&(d.push("iv-card-action-icon"),e.style="background-image: url("+a.o+");");d=["a",d,e,g];a.showLinkIcon&&(d.push("\u00a0"),d.push(["span","iv-card-link-icon"]));return["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+a.imageUrl+");"},c],["div",["iv-card-content","iv-click-target"],["h2","",a.title],d]]}
zx.prototype.A=function(a,b){b.stopPropagation();b.preventDefault();var c=a.id,d;i:{var e=b.currentTarget.form.elements.radio;if(e){if(e.type){d=pj(e);break i}for(d=0;d<e.length;d++){var g=pj(e[d]);if(g){d=g;break i}}}d=null}e=this.j.A.di;c={dg:{action_poll_vote:1},Ib:{poll_id:c,index:d},method:"POST"};c.Ib||(c.Ib={});Gj(e,c)};
zx.prototype.B=function(a,b){b.stopPropagation();b.preventDefault();var c=u("yt.www.ypc.bootstrap.api.loadOffers");c?(this.j.o.pauseVideo(),this.j.o.Sg()&&Kx(this.j.o.T),Dw(this.j.logger,a.qb,a.j.click),c(a.C,a.B,a.A)):this.o(b.target,a.url,a.id,a.qb,a.j.click,b)};function Bx(a,b,c){return b?uw(b,c,a.j.A.videoId,a.j.fa):null}function Dx(a,b,c){a.C(b,c.url,c.id,c.qb,c.j.click)};function Lx(a,b,c){xx.call(this,a,b,c);this.A=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.title=b.title;this.o=b.meta_info;this.url=pw({target:b.target||"new",value:b.url})}z(Lx,xx);function Mx(a,b,c){xx.call(this,a,b,c);this.imageUrl=b.image_url;this.title=b.title;this.options=b.options}z(Mx,xx);function Nx(a,b,c){xx.call(this,a,b,c);this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.o=b.button_icon_url;this.title=b.title;this.D=b.custom_message;this.url=pw({target:b.target||"new",value:b.url})}z(Nx,xx);function Ox(a,b,c){Nx.call(this,a,b,c);this.C=b.ypc_item_type;this.B=b.ypc_item_id;this.A=b.ypc_flow_type}z(Ox,Nx);function Px(a,b,c){xx.call(this,a,b,c);this.A=b.image_url;this.videoDuration=b.video_duration;this.title=b.title;this.o=b.meta_info;this.url=pw({target:b.target||"new",value:b.url})}z(Px,xx);function Qx(a,b){Hw.call(this,a,b);this.sm=this.j=this.H=this.J=!1;this.Uk=new Mv(v,b.fa.bd?4E3:3E3);this.C=new zx(b,x(this.Kj,this),x(this.Se,this));var c=["div","iv-drawer",["div","iv-drawer-header",Zf("YTP_DRAWER_HEADER_TEXT"),["button","iv-drawer-close-button"]],["div",["iv-drawer-content","yt-uix-scroller"]]];this.G=(new Y(c)).Q();this.Nd=Hd("iv-drawer-content",this.G);this.A=(new Y(["div","iv-drawer-teaser",["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button","",["span"]]])).Q();
this.D=Hd("iv-drawer-teaser-text",this.A);this.Mc=null;this.B=[];this.I=this.o=null;b.fa.experiments.Yy&&Iw(this,1E3*b.A.lengthSeconds-5E3,2147483647,"",pa(this.sr,null))}z(Qx,Hw);var Rx={associated:Nx,channel:yx,collaborator:yx,fundraising:Nx,merch:Nx,playlist:Lx,poll:Mx,product:Nx,tip:Ox,video:Px};function Sx(a){a=a.Q();a=ne(a,"ytp-iv-player-content");if(!a)return!1;a=Wg(a);return 177<a.width&&177<a.height}
function Tx(a){var b=["html5-stop-propagation","iv-drawer-manager"];a.context.fa.experiments.Zy&&b.push("iv-drawer-teaser-style-exp");nh(a.Q(),b);a.Q().appendChild(a.A);a.Q().appendChild(a.G);b=Hd("iv-drawer-close-button",a.G);a.context.j.M(b,"click",a.Ro,a);a.context.j.M(b,"touchend",a.Ro,a);b=new Nv(a.Nd);xm(b,"mousewheel",function(){this.Uk.start()},!1,a);a.context.j.M(a.Nd,"touchend",function(){this.Uk.start()},a);a.context.j.M(a.Nd,"scroll",a.tA,a);wx(ux);a.context.j.M(a.A,"click",a.fD,a);a.context.j.M(a.A,
"mouseover",function(){this.Mc&&this.Mc.stop()},a);a.context.j.M(a.A,"mouseout",function(){this.Mc&&this.Mc.start()},a);a.context.Wa.subscribe("onHideControls",function(){this.sm=!0},a);a.context.Wa.subscribe("onShowControls",function(){this.sm=!1},a)}f=Qx.prototype;
f.add=function(a){this.J||(Tx(this),this.J=!0);var b,c;switch(a.type){case "associated":case "fundraising":case "merch":case "product":b=Gx(this.C,a);break;case "tip":b=Ix(this.C,a);break;case "video":b=Jx(this.C,a);break;case "playlist":b=Ex(this.C,a);break;case "collaborator":case "channel":b=Ax(this.C,a);break;case "poll":b=Fx(this.C,a)}if(b){c=b.Q();c={kd:a,kw:c,$p:!1,aq:!1};var d=xb(this.B,c,function(a,b){return a.kd.startMs-b.kd.startMs});0>d&&(d=-(d+1));ub(this.B,d,0,c);b.ea(this.Nd,d);this.Wk();
b=1E3*this.context.o.getCurrentTime();5E3>b&&b>a.startMs&&this.Or(c);Iw(this,a.startMs,a.startMs+1,a.id,pa(this.Or,c))}};f.tp=function(){this.Mc&&(oh(this.A,"iv-drawer-teaser-active"),L(x(function(){this.Mc=null},this),330))};f.sr=function(a){a&&a.stopPropagation();this.j||(this.tp(),N(this.Q(),"iv-drawer-open"),this.j=!0,N(this.context.o.La(),"ytp-iv-drawer-open"),this.F=y(),Fw(this.context.logger,7),D(this.B,function(a){a.aq||(a.aq=!0,zw(this.context.logger,a.kd.qb,Ux(this,!0),a.kd.j.Wy))},this))};
f.tA=function(){O(this.Q(),"iv-drawer-scrolled",0<this.Nd.scrollTop)};f.Ro=function(){this.j&&(Fw(this.context.logger,4,Vx(this).j.close),this.j&&(oh(this.Q(),"iv-drawer-open"),this.j=!1,oh(this.context.o.La(),"ytp-iv-drawer-open"),Fw(this.context.logger,10)))};f.fD=function(a){if(!this.j){var b=Ux(this);if(this.o){var c=Vx(this);this.Mc?Gw(this.context.logger,9,c.qb,b,c.j.as):Gw(this.context.logger,12,c.qb,b,c.j.as)}else Fw(this.context.logger,12);this.sr(a)}};
f.Or=function(a){if(!this.Mc){this.o!=a&&(this.o=a,ee(this.D,a.kd.teaserText));var b;if(b=Qw(this.Q()))2==this.context.o.Cf()?b=1==(isNaN(void 0)?this.context.o.getAdState():void 0):(b=isNaN(void 0)?this.context.o.getPlayerState():void 0,b=1==b||0==b&&0===this.context.o.getCurrentTime());if(b&&!this.Mc&&!this.j&&this.o){N(this.A,"iv-drawer-teaser-active");b=this.o.kd;this.Mc=new Mv(this.tp,580+b.teaserDurationMs,this);this.Mc.start();var c=Ux(this);Gw(this.context.logger,8,b.qb,c,b.j.gD);this.context.fa.experiments.gm&&
(this.I=kh(this.D))}(!this.j||!this.Uk.isActive()&&this.sm)&&Wx(this,a)}};function Wx(a,b){var c=new Xv([0,a.Nd.scrollTop],[0,b.kw.offsetTop],600,aw);a.context.j.M(c,"animate",function(a){this.Nd.scrollTop=a.y},a);a.context.j.M(c,"finish",function(a){this.Nd.scrollTop=a.y},a);c.play()}
f.Wk=function(){var a=Sx(this)&&!!this.B.length;Pw(this.Q(),a);O(this.context.o.La(),"ytp-iv-drawer-enabled",a);a&&(this.H||(Fw(this.context.logger,11),this.H=!0),D(this.B,function(a){a.$p||(a.$p=!0,Gw(this.context.logger,11,a.kd.qb))},this));this.context.fa.experiments.gm&&Xx(this)};function Vx(a){return a.o&&a.o.kd||a.B[0]&&a.B[0].kd}
function Xx(a){var b=a.context.fa.bk;if(b){var c=360*Jw,b=Pc(b.width/b.height>=c/360?b.height/360:b.width/c,1,1.3),b=Math.round(10*b)/10,c=12;switch(b){case 1.1:c=13;break;case 1.2:c=14;break;case 1.3:c=15}c!==kh(a.D)&&Dg(a.D,"font-size",c+"px")}}function Ux(a,b){var c;if(a.context.fa.experiments.gm){c={};var d=b?a.I:kh(a.D);d&&(c["a-fs"]=d)}return c}f.Se=function(a,b,c,d,e,g){var h=Ux(this,!0);h&&"a-fs"in h&&(d+="&a-fs="+h["a-fs"]);return Qx.K.Se.call(this,a,b,c,d,e,g)};var Yx=/#(.)(.)(.)/;function Zx(a){if(!$x.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Yx,"#$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 $x=/^#(?:[0-9a-f]{3}){1,2}$/i;function ay(a,b,c,d,e){Xv.call(this,b,c,d,e);this.element=a}z(ay,Xv);ay.prototype.C=v;ay.prototype.Bm=function(){this.C();ay.K.Bm.call(this)};ay.prototype.Yg=function(){this.C();ay.K.Yg.call(this)};ay.prototype.hj=function(){this.C();ay.K.hj.call(this)};function by(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");ay.apply(this,arguments)}z(by,ay);
by.prototype.C=function(){this.element.style.left=Math.round(this.A[0])+"px";this.element.style.top=Math.round(this.A[1])+"px"};function cy(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");ay.apply(this,arguments)}z(cy,ay);cy.prototype.C=function(){this.element.style.width=Math.round(this.A[0])+"px";this.element.style.height=Math.round(this.A[1])+"px"};function dy(a,b,c){Hw.call(this,a,b);this.annotation=c;this.isActive=!1}z(dy,Hw);dy.prototype.Jj=function(){dy.K.Jj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&Iw(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.Dh,this.$)};function ey(a,b,c){dy.call(this,a,b,c);this.j=null;this.A=!1;this.Oi=null;this.wd=!1;this.o=0}z(ey,dy);
function fy(a){N(a.Q(),"iv-branding");a.context.fa.experiments.hm||N(a.Q(),"iv-branding-legacy");var b=a.annotation.data;a.o=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.Q().appendChild(c);var d=I("div","iv-branding-context-name");ee(d,b.channel_name);var e=I("div","iv-branding-context-subscribe");a.annotation.A?e.innerHTML=a.annotation.A:b.num_subscribers&&
ee(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);Dg(e,"right",a.o+"px");a.Q().appendChild(e);a.Kj(a.Q(),gy(a.annotation),a.annotation.id,a.annotation.qb);a.Oi=new Mv(pa(function(a){var b=Wg(a.parentElement);(new cy(a.parentElement,[b.width,b.height],[0,0],200,$v)).play();this.wd=!1},d),500,a);Lv(a.context.j,a.Q(),"mouseover",pa(function(a,b,c){this.Oi.stop();
if(!this.wd){var d=Wg(a);Ug(a,d.width);c=Math.min(d.height,c);var e=Math.round(10);c=this.context.fa.experiments.hm?d.height-Math.max(c/2+e,20):Math.max(c/2-e,0);Jg(b,d.width,c);this.wd=!0;b=9;d=Wg(a);c=Wg(a.parentElement);(new cy(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,$v)).play()}},d,c,b.image_height),"iv-view-target",a);Lv(a.context.j,a.Q(),"mouseout",x(a.Oi.start,a.Oi),"iv-view-target",a)}
ey.prototype.Dh=function(){if(!this.isActive){ey.K.Dh.call(this);this.A||(fy(this),this.A=!0);zw(this.context.logger,this.annotation.qb);Rw(this.Q());this.isActive=!0;var a=this.j,b,c=Yg(a).width,d=ga(void 0)?void 0:c;b=b||0;Jg(a,d);b=new by(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,$v);xm(b,"begin",pa(Rw,a));b.play()}};ey.prototype.$=function(){this.isActive&&(Sw(this.Q()),this.isActive=!1)};function hy(a,b,c,d,e,g){this.j=a;this.fa=b;this.A=c;this.logger=d;this.o=e;this.Wa=g};function iy(a){this.value=a};function jy(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var ky={CLOSE:"close",LI:"openUrl",PAUSE:"pause",Kv:"subscribe"},ly={CLICK:"click",CLOSE:"close",HIDDEN:"hidden",hJ:"rollOut",Fv:"rollOver",Hv:"shown"};function my(a){if(!a)return null;var b=fw(a.type,ky),c=fw(a.trigger,ly),d=pw(bw(a.url));bw(a.subscribeData);(a=bw(a.duration))?(a=jw(a.value),a=new iy(a)):a=null;return b?new jy(b,c,d,a):null};function ny(a,b,c,d,e,g,h,k,l,p,r,t,C,V){this.C=a;this.B=b;this.D=c;this.F=d;this.o=e;this.I=g;this.A=h;this.textAlign=k;this.textSize=l;this.G=p;this.H=r;this.effects=t;this.j=C;this.J=V}
function oy(a){if(!a)return null;var b=dw(a.fgColor,"#1A1A1A"),c=dw(a.bgColor,"#FFF"),d=dw(a.borderColor,"#000"),e=iw(a.borderWidth,10,0,5,!1,0),g=iw(a.bgAlpha,10,0,1,!1,.8);iw(a.borderAlpha,10,0,1,!1,.2);iw(a.gloss,16,0,255,!1,0);var h=dw(a.highlightFontColor,"#F2F2F2"),k=iw(a.highlightWidth,10,0,5,!1,3),l=ew(a.textAlign),p=iw(a.textSize,10,3.3,30.1,!0,3.6107),r=ew(a.fontWeight),t=lw(a.padding),C=mw(a.effects),V=iw(a.cornerRadius,10,0,10,!0,0);var T=bw(a.gradient);if(T){a=iw(T.x1,10,0,100,!0,0);
var ia=iw(T.y1,10,0,100,!0,0),Ba=iw(T.x2,10,0,100,!0,100),Le=iw(T.y2,10,0,100,!0,100),bh=dw(T.color1,"#FFF"),Os=dw(T.color2,"#000"),Wz=iw(T.opacity1,10,0,100,!0,100),T=iw(T.opacity2,10,0,100,!0,0);a=new py(a,ia,Ba,Le,bh,Os,Wz,T)}else a=null;return new ny(b,c,d,e,g,h,k,l,p,r,t,C,V,a)}function py(a,b,c,d,e,g,h,k){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=g;this.A=h;this.B=k};function qy(a,b){this.j=a;this.videoId=b};var ry={uK:"xx",vK:"xy",yK:"yx",zK:"yy"};function sy(a,b,c){var d=a.G,e=a.H,g=a.j?a.j:"xy",h=ty(c,a.C,g);a=uy(c,a.A,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new ug(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 ty(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function uy(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function vy(a,b,c,d,e,g,h,k,l,p,r){this.x=a;this.y=b;this.D=c;this.B=d;this.o=e;this.F=g;this.G=h;this.H=k;this.C=l;this.A=p;this.j=r}function wy(a,b){if(!a)return null;var c=hw(a.x,0),d=hw(a.y,0),e=hw(a.w,0),g=hw(a.h,0),h=jw(a.t),k=hw(a.scaleSlope,1);return b(c,d,e,g,h,hw(a.d,0),hw(a.px,0),hw(a.py,0),hw(a.scaleSlopeX,k),hw(a.scaleSlopeY,k),fw(a.scaleDimension,ry,"xy"))}
function xy(a,b,c){c=c?xy(c,b):null;a=sy(a,new ug(a.x,a.y,a.D,a.B),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=Pc(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Pc(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function yy(a){return a?wy(a,function(a,c,d,e,g,h,k,l,p,r,t){return new vy(a,c,d,e,g,h,k,l,p,r,t)}):null};function zy(a,b,c,d,e,g,h,k,l,p,r,t,C){vy.call(this,a,b,c,d,e,k,l,p,r,t,C);this.I=g;this.J=h}z(zy,vy);function Ay(a){if(!a)return null;var b=hw(a.sx,0),c=hw(a.sy,0);return wy(a,function(a,e,g,h,k,l,p,r,t,C,V){return new zy(a,e,g,h,k,b,c,l,p,r,t,C,V)})};function By(a,b,c,d){this.type=a;this.o=b;this.j=c;this.A=d}var Cy={pu:"anchored",bJ:"rect",pJ:"shapeless"};function Dy(a){if(!a)return null;var b=fw(a.type,Cy,"rect"),c=kw(a.rectRegion,yy),d=kw(a.anchoredRegion,Ay);a=kw(a.shapelessRegion,yy);return new By(b,c,d,a)}function Ey(a){return a.o&&a.o.length?a.o[0]:a.j&&a.j.length?a.j[0]:a.A&&a.A.length?a.A[0]:null};function Fy(a,b){this.o=a;this.j=b};function Gy(a,b){this.state=a;this.j=b}var Hy={CLOSED:"closed",QI:"playerControlShow",Fv:"rollOver",Hv:"shown"};function Iy(a){if(!a)return null;var b=fw(a.state,Hy);a=cw(a.ref);return b?new Gy(b,a):null};function Jy(a,b,c,d){this.j=a||[];this.A=b||[];this.B=c;this.o=d;this.value=!1}function Ky(a){if(!a)return null;var b=kw(a.condition,Iy),c=kw(a.notCondition,Iy),d=gw(a.show_delay,!1);a=gw(a.hide_delay,!1);return b||c?new Jy(b,c,d,a):null}function Ly(a,b,c){D(a.j,pa(b,!1),c);D(a.A,pa(b,!0),c)};function My(a,b,c,d,e,g,h,k,l,p,r,t,C,V,T,ia){this.id=a;this.author=b;this.type=c;this.style=d;this.D=e;this.o=g;this.C=h||[];this.G=k||[];this.j=l;this.H=p;this.B=r;this.F=t;this.A=V;this.data=T;this.qb=ia}
var Ny={pu:"anchored",uu:"branding",fH:"channel",lH:"cta",LH:"highlightText",aI:"label",SI:"playlist",TI:"popup",xJ:"speech",Kv:"subscribe",NJ:"title",VIDEO:"video",pK:"vote",sK:"website"},Oy={uu:"branding",XG:"card",KH:"highlight",IMAGE:"image",MARKER:"marker",PAUSE:"pause",YI:"promotion",TEXT:"text",tK:"widget"},Py={lK:"video_relative",RI:"player_relative"};
function Qy(a){if(!a)return null;var b=cw(a.id),c=cw(a.author),d=fw(a.type,Oy),e=fw(a.style,Ny),g=ew(bw(a.TEXT)),h=ew(a.data),h=0!=h.length?lg(h):{},k;var l=bw(a.segment);l?(cw(l.timeRelative),k=cw(l.spaceRelative),k=(l=kw(l.movingRegion,Dy))?new Fy(k,l):null):k=null;var l=kw(a.action,my),p=kw(a.trigger,Ky),r=oy(bw(a.appearance));r||(r=oy({}));var t=fw(a.coordinate_system,Py,"video_relative"),C;C=(C=bw(a.image_source))?new qy(ew(C.standard_url),ew(C.video_id)):null;var V=gw(a.closeable,!0),T=ew(a.html_blob);
a=ew(a.log_data);return b&&d?new My(b,c,d,e,g,k,l,p,r,t,C,V,0,T,h,a):null}function gy(a){return(a=Ry(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}My.prototype.showLinkIcon=function(){return Sy(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function Ty(a){return Sy(a,function(a){return"click"==a.trigger})}function Sy(a,b){return gb(a.C,b,void 0)}function Uy(a,b,c){D(a.C,b,c)}function Ry(a,b){return F(a.C,b,void 0)}function Vy(a,b,c){D(a.G,b,c)}
function Wy(a,b){E(a.G,b,void 0)}function Xy(a){return(a=Yy(a))?Ey(a):null}function Yy(a){a.o?(a=a.o,a=a.j.length?a.j[0]:null):a=null;return a}function Zy(a,b){var c=Xy(a);return c&&b?uy(b,c.A,c.j?c.j:"xy"):1};function $y(a,b,c){dy.call(this,a,b,c);this.B=this.o=this.C=!1;this.A=5E3;this.j=null;this.tf=I("div","iv-promo-contents")}z($y,dy);
function az(a){var b=a.annotation.data;a.A=b.collapse_delay_ms||a.A;var c=["iv-promo","iv-promo-inactive"],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&&!b.is_live?(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.annotation.style){case "cta":case "website":g=I("p","iv-click-target",I("strong",null,b.text_line_1));h=I("p",["iv-promo-link","iv-click-target"],b.text_line_2);N(e,"iv-click-target");break;case "playlist":case "video":g=I("p","iv-click-target",b.text_line_1);h=I("p","iv-click-target",I("strong",null,b.text_line_2));b.is_live&&(g=h,h=I("span",["yt-badge","iv-promo-badge-live","iv-click-target"],Zf("YTP_LIVE_NOW")));N(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=
I("p",null,I("strong",null,b.text_line_1));h=I("p",null,b.text_line_2);k=I("div","iv-promo-button-container");var l=I("button","iv-promo-button",I("span","iv-promo-button-content",b.button_text));a.context.j.M(l,"click",function(a){a.stopPropagation();Dw(this.context.logger,this.annotation.qb,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;a=Hd("iv-promo-txt",this.tf);var d=Hd("iv-promo-button-container",this.tf),e=I("div",["iv-promo-txt","iv-click-target"]),g=I("p","iv-click-target",
I("strong",null,c.text_line_3)),c=I("p","iv-click-target",c.text_line_4);Ud(e,g,c);Wd(d);Xd(e,a);oh(this.Q(),"iv-promo-with-button");this.Kj(this.tf,gy(this.annotation),this.annotation.id,this.annotation.qb)},a);k.appendChild(l);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.j.M(a.Q(),"mouseover",a.Gx,a);a.context.j.M(a.Q(),"touchend",pa(a.mp,5E3),
a);a.context.j.M(a.Q(),"mouseout",a.Fx,a);h=I("div","iv-promo-close");g.appendChild(h);bz(a,x(function(){this.$()},a),h);nh(a.Q(),c);d&&Td(a.Q(),d);Td(a.Q(),a.tf);Td(a.Q(),g);a.Kj(a.Q(),gy(a.annotation),a.annotation.id,a.annotation.qb)}f=$y.prototype;
f.Dh=function(){this.isActive||($y.K.Dh.call(this),this.C||(az(this),this.C=!0),Rw(this.Q()),this.annotation&&this.annotation.qb&&zw(this.context.logger,this.annotation.qb),oh(this.Q(),"iv-promo-inactive"),this.isActive=!0,this.j&&(wn(this.j),this.j=null),cz(this),dz(this,this.A))};f.$=function(){this.isActive&&(N(this.Q(),"iv-promo-inactive"),this.isActive=!1)};f.Se=function(a,b,c,d,e,g){return this.o?!0:$y.K.Se.call(this,a,b,c,d,e,g)};f.mp=function(a,b){b.stopPropagation();cz(this);dz(this,a)};
f.Gx=function(a){this.B=!0;this.mp(500,a)};f.Fx=function(){this.B=!1;ez(this)};function ez(a){a.o||a.B||a.j||(N(a.Q(),"iv-promo-collapsed"),a.o=!0)}function cz(a){a.o&&(oh(a.Q(),"iv-promo-collapsed"),a.o=!1)}function dz(a,b){a.j||(a.j=vn(function(){this.j&&(wn(this.j),this.j=null);ez(this)},b,a))}function bz(a,b,c){function d(a){Ew(this.context.logger,this.annotation.qb);b(a);a.stopPropagation()}a.context.j.M(c,"click",x(d,a));a.context.j.M(c,"touchend",x(d,a))};var fz={hI:1,iI:2,jI:3};function gz(a,b,c){this.j={};this.o=!1;this.C="ivTrigger:"+a;this.A=c;Ly(b,function(a,b){var c=hz(b.state,b.j);this.A.subscribe(c,x(this.B,this,c,a));this.j[c]=a},this)}gz.prototype.B=function(a,b,c,d){this.j[a]=b?!c:c;a=Kb(this.j,function(a){return a});this.o!=a&&(this.o=a,this.A.L(this.C,a,d))};function hz(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function iz(a,b,c){this.A=a;this.annotation=b;this.j=c;this.o=null;this.C=this.isVisible=!1;jz(b,a)}function jz(a,b){Wy(a,function(c){return new gz(a.id,c,b)})}iz.prototype.$=function(){this.isVisible=!1;this.A.qa("onResize",this.B,this);this.j&&this.j.$()};iz.prototype.destroy=function(){this.A.qa("onResize",this.B,this);if(this.j){var a=this.j;a.G.removeAll();a.o&&Wd(a.o);a.A&&a.A.Q()&&Wd(a.A.Q())}kz(this)};function kz(a){a.o&&(a.o.stop(),a.o=null)}iz.prototype.B=function(){this.j&&lz(this.j)};function mz(){};function nz(a,b,c,d,e,g,h,k){this.C=a;this.F=b;this.D=c;this.G=d;this.j=e;this.o=g;this.A=n(h)?h:null;this.B=n(k)?k:null}z(nz,mz);function oz(){this.pa=[];this.ra=[];this.gd=[]}oz.prototype.qf=null;oz.prototype.Uc=null;oz.prototype.Mj=!0;var pz=[2,2,6,6,0];f=oz.prototype;f.clear=function(){this.pa.length=0;this.ra.length=0;this.gd.length=0;delete this.qf;delete this.Uc;delete this.Mj;return this};function qz(a,b,c){0==ab(a.pa)?a.gd.length-=2:(a.pa.push(0),a.ra.push(1));a.gd.push(b,c);a.Uc=a.qf=[b,c]}
f.gb=function(a){var b=ab(this.pa);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.pa.push(1),this.ra.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.gd.push(c,d)}this.ra[this.ra.length-1]+=b/2;this.Uc=[c,d]};f.close=function(){var a=ab(this.pa);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.pa.push(4),this.ra.push(1),this.Uc=this.qf);return this};
function rz(a,b,c,d,e){var g=a.Uc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+e)*Math.PI/180),h=a.Uc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+e)*Math.PI/180);a.pa.push(3);a.ra.push(1);a.gd.push(b,c,d,e,g,h);a.Mj=!1;a.Uc=[g,h]}function sz(a,b){for(var c=a.gd,d=0,e=0,g=a.pa.length;e<g;e++){var h=a.pa[e],k=pz[h]*a.ra[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.pa=this.pa.concat();a.ra=this.ra.concat();a.gd=this.gd.concat();a.qf=this.qf&&this.qf.concat();a.Uc=this.Uc&&this.Uc.concat();a.Mj=this.Mj;return a};f.isEmpty=function(){return 0==this.pa.length};function tz(a,b){this.H=a;this.I=null==b?1:b}z(tz,mz);function uz(a,b){this.j=a;this.o=b};function vz(){}ba(vz);vz.prototype.j=0;function wz(a){U.call(this);this.N=a||Bd();this.Ca=null;this.Qe=!1;this.j=null;this.C=void 0;this.D=this.G=this.H=null}z(wz,U);f=wz.prototype;f.ty=vz.getInstance();f.getId=function(){return this.Ca||(this.Ca=":"+(this.ty.j++).toString(36))};f.Q=function(){return this.j};f.Ij=function(a){if(this.H&&this.H!=a)throw Error("Method not supported");wz.K.Ij.call(this,a)};f.lp=function(){this.j=this.N.createElement("div")};
f.zg=function(){xz(this,function(a){a.Qe&&a.zg()});this.C&&this.C.removeAll();this.Qe=!1};f.P=function(){this.Qe&&this.zg();this.C&&(this.C.dispose(),delete this.C);xz(this,function(a){a.dispose()});this.j&&Wd(this.j);this.H=this.j=this.D=this.G=null;wz.K.P.call(this)};f.Fe=function(){return this.j};function xz(a,b){a.G&&D(a.G,b,void 0)}
f.removeChild=function(a,b){if(a){var c=w(a)?a:a.getId();a=this.D&&c?Xb(this.D,c)||null:null;if(c&&a){Wb(this.D,c);ob(this.G,a);b&&(a.zg(),a.j&&Wd(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.H=null;wz.K.Ij.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function yz(a,b,c,d,e){wz.call(this,e);this.width=a;this.height=b;this.B=c||null;this.I=d||null}z(yz,wz);yz.prototype.A=null;yz.prototype.Dg=function(){return this.Qe?Vg(this.Q()):ga(this.width)&&ga(this.height)?new H(this.width,this.height):null};function zz(a){var b=a.Dg();return b?b.width/(a.B?new H(a.B,a.I):a.Dg()).width:0}yz.prototype.resume=function(){};function Az(a,b){U.call(this);this.Fg=a;this.Cl=b;this[lm]=!1}z(Az,U);f=Az.prototype;f.Cl=null;f.Fg=null;f.Q=function(){return this.Fg};f.addEventListener=function(a,b,c,d){xm(this.Fg,a,b,c,d)};f.removeEventListener=function(a,b,c,d){Fm(this.Fg,a,b,c,d)};f.P=function(){Az.K.P.call(this);var a=this.Fg;if(a)if(mm(a))a.removeAllListeners(void 0);else if(a=Am(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)Gm(d[e])&&++b}};function Bz(a,b,c,d){Az.call(this,a,b);a=this.Cl;b=this.Q();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",1),c=c.j,w(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/zz(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.Cl;a=this.Q();if(d instanceof tz)a.setAttribute("fill",d.H),a.setAttribute("fill-opacity",d.I);else if(d instanceof nz){b="lg-"+d.C+"-"+d.F+"-"+d.D+"-"+d.G+"-"+d.j+"-"+d.o;var e=Cz(c,b);if(!e){var e=Dz(c,"linearGradient",
{x1:d.C,y1:d.F,x2:d.D,y2:d.G,gradientUnits:"userSpaceOnUse"}),g="stop-color:"+d.j;ga(d.A)&&(g+=";stop-opacity:"+d.A);g=Dz(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.o;ga(d.B)&&(g+=";stop-opacity:"+d.B);d=Dz(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=Ez(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}z(Bz,Az);function Fz(a,b){Az.call(this,a,b)}z(Fz,Az);function Gz(a,b){Az.call(this,a,b)}z(Gz,Az);function Hz(a,b,c,d){Bz.call(this,a,b,c,d)}z(Hz,Bz);function Iz(a,b){Az.call(this,a,b)}z(Iz,Fz);Iz.prototype.clear=function(){Vd(this.Q())};function Jz(a,b,c,d){Bz.call(this,a,b,c,d)}z(Jz,Hz);function Kz(a,b){Az.call(this,a,b)}z(Kz,Gz);function Lz(a,b,c,d,e){yz.call(this,a,b,c,d,e);this.o={};this.O=fd&&!rd(526);this.J=new zn(this)}var Mz;z(Lz,yz);var Nz=0;function Dz(a,b,c){a=a.N.j.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=Lz.prototype;
f.lp=function(){var a=Dz(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=Dz(this,"g");this.F=Dz(this,"defs");this.A=new Iz(b,this);a.appendChild(this.F);a.appendChild(b);this.j=a;this.B&&(this.Q().setAttribute("preserveAspectRatio","none"),this.O?this.hs():this.Q().setAttribute("viewBox","0 0 "+(this.B?this.B+" "+this.I:"")))};
f.hs=function(){if(this.Qe){var a=this.Dg();if(0==a.width)this.Q().style.visibility="hidden";else{this.Q().style.visibility="";var b=a.width/this.B,a=a.height/this.I;this.A.Q().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.Dg=function(){if(!ed)return this.Qe?Vg(this.Q()):Lz.K.Dg.call(this);var a=this.width,b=this.height,c=w(a)&&-1!=a.indexOf("%"),d=w(b)&&-1!=b.indexOf("%");if(!this.Qe&&(c||d))return null;var e,g;c&&(e=this.Q().parentNode,g=Wg(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.Q().parentNode,g=g||Wg(e),b=parseFloat(b)*g.height/100);return new H(a,b)};f.clear=function(){this.A.clear();Vd(this.F);this.o={}};function Oz(a,b,c,d){b=Dz(a,"path",{d:Pz(b)});c=new Jz(b,a,c,d);a.A.Q().appendChild(c.Q())}
function Pz(a){var b=[];sz(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 Ez(a,b,c){if(b in a.o)return a.o[b];var d="_svgdef_"+Nz++;c.setAttribute("id",d);a.o[b]=d;a.F.appendChild(c);return d}
function Cz(a,b){return b in a.o?a.o[b]:null}f.zg=function(){Lz.K.zg.call(this);this.O&&this.J.Ia(Qz(),"tick",this.hs)};f.P=function(){delete this.o;delete this.F;delete this.A;this.J.dispose();delete this.J;Lz.K.P.call(this)};function Qz(){Mz||(Mz=new tn(400),Mz.start());return Mz};function Rz(a,b,c){this.j=a;this.o=0;this.F=b;this.G=c||70;this.A=!1}Rz.prototype.start=function(a){this.D=y();this.o=a;this.C=this.D+this.o;this.A=!0;Rw(this.j);Wf(this.B);this.B=Vf(x(this.H,this),this.G)};Rz.prototype.stop=function(){this.A=!1;Sw(this.j);this.B&&Wf(this.B)};
Rz.prototype.H=function(){if(this.A){var a=y(),b;b=0==this.o||a>=this.C?0:1-(a-this.D)/this.o;var c=Hd("countdowntimer-diminishing-pieslice",this.j),d=vh("svg",this.j);!d&&this.j.querySelectorAll&&(d=this.j.querySelectorAll("svg"),d=d.length?d[0]:null);var d=parseInt(d.getAttribute("width"),10),e=new oz,g=d/2-5;qz(e,d/2,d/2);e.gb(d/2,5);rz(e,g,g,-90,360*-b);e.gb(d/2,d/2);e.close();c.setAttribute("d",Pz(e));a>=this.C&&(this.stop(),this.F&&this.F())}};function Sz(){Q.call(this);this.element=this.label=null;this.priority=0;this.B=this.C=!1;this.A=null}z(Sz,Q);Sz.prototype.M=function(a,b,c){return this.element.M(a,b,c||this)};Sz.prototype.Ia=function(a){this.element.Ia(a)};function Tz(a,b,c,d){Y.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.ba="inline-block";this.I=a;this.N=this.A=this.C=null;this.B=!1;this.M("click",this.LF);this.M("keypress",this.MF);this.I.pg(this.element,x(this.Qw,this));rv(this,"button");b&&Uz(this,b);c&&this.kb(c);d&&(this.A=d)}z(Tz,Y);function Uz(a,b){b&&""!=b&&(a.C&&oh(a.element,a.C),a.C=b,N(a.element,b))}function Vz(a,b){a.N=b;nv(a.template,"tabindex",b)}f=Tz.prototype;
f.Qw=function(){return this.B?null:this.A?this.A:null};function Xz(a){a.B=!1;a.template.update({disabled:null,tabindex:a.N});oh(a.element,"ytp-disabled")}f.disable=function(){this.B=!0;this.template.update({disabled:"true",tabindex:null});N(this.element,"ytp-disabled")};f.LF=function(a){this.B&&(a.stopImmediatePropagation(),a.preventDefault())};f.MF=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.$b("click")};f.P=function(){this.I.Om(this.element);this.I=null;Tz.K.P.call(this)};function Yz(a,b,c){Y.call(this,["div","ytp-segmented-control"]);this.C=a;this.A=-1;this.o=[];if(null!=b)for(Ai(this.o),this.o=[],a=0;a<b.length;a++){var d=new Tz(this.C);rv(d,"radio");this.o.push(d);c?d.za(["div",b[a]]):d.za(b[a]);0!=a&&N(d.Q(),"ytp-segmented-control-other");Zz(d,a==this.A);d.M("click",pa(this.B,a),this);d.ea(this.element)}rv(this,"radiogroup")}z(Yz,Y);
Yz.prototype.ea=function(a,b){Yz.K.ea.call(this,a,b);for(var c=0,d=0;d<this.o.length;d++)c=Math.max(c,Vg(this.o[d].Q()).width);if(c)for(d=0;d<this.o.length;d++)Ug(this.o[d].Q(),c)};Yz.prototype.j=function(a){this.A=a;for(var b=0;b<this.o.length;b++)Zz(this.o[b],b==a)};function $z(a,b){for(var c=0;c<a.o.length;c++)Vz(a.o[c],b)}
function Zz(a,b){var c=a.Q();b?(oh(c,"ytp-segmented-control-deselected"),N(c,"ytp-segmented-control-selected"),c.setAttribute("aria-checked",!0)):(oh(c,"ytp-segmented-control-selected"),N(c,"ytp-segmented-control-deselected"),c.setAttribute("aria-checked",!1))}Yz.prototype.B=function(a){a!=this.A&&(this.j(a),this.$b("change"))};Yz.prototype.P=function(){Ai(this.o);this.o=[];Yz.K.P.call(this)};function aA(a){Sz.call(this);this.label=Z("YTP_ANNOTATIONS");this.element=new Yz(a,[Z("YTP_OFF"),Z("YTP_ON")]);R(this,this.element);this.element.kb(this.label);$z(this.element,2200);this.priority=3;this.j(0)}z(aA,Sz);aA.prototype.j=function(a){this.element.j(a)};function bA(a,b){this.start=a<b?a:b;this.end=a<b?b:a}bA.prototype.clone=function(){return new bA(this.start,this.end)};function cA(){this.j=!1;this.C=this.A=null}function dA(a,b,c){a.A?(Tg(a.A.Q(),b,c),a.A.clear()):(b=new Lz(b,c,void 0,void 0,void 0),a.A=b,a.A.lp(),a.C=I("div"),b=a.A.Q(),a.C.appendChild(b));return a.A}cA.prototype.Q=function(){return this.C};cA.prototype.o=function(){};function eA(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Hb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function fA(a,b){var c;c=":"+(vz.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function gA(a,b){var c=fA(a,eA("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=fA(a,eA("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},eA("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=fA(a,eA("feComposite",{"in":c,in2:b,operator:"in"}));return fA(a,eA("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function hA(a,b){var c=fA(a,eA("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=fA(a,eA("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=fA(a,eA("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=fA(a,eA("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=fA(a,eA("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=fA(a,eA("feComposite",{operator:"out","in":c,in2:d}));return fA(a,eA("feComposite",{operator:"over","in":b,in2:c}))}
function iA(a,b){return b}function jA(a){var b=eA("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";D(a,function(a){i:{switch(a){case "bevel":a=gA;break i;case "dropshadow":a=hA;break i}a=iA}c=a(b,c)});return b}function kA(a){a=eb(a,function(a){return a in lA});zb(a,function(a,c){return lA[a]-lA[c]});return a}function mA(a){return F(a,function(a){return"dropshadow"==a})?new tg(0,7,7,0):new tg(0,0,0,0)}var lA={bevel:1,dropshadow:2};function nA(a,b,c,d,e){b=oA(b,c,d?d.j/2+1:0);Oz(a,b,d,e)}function oA(a,b,c){var d=new oz;qz(d,a.left+b+c,a.top+c);d.gb(a.left+a.width-b-c,a.top+c);rz(d,b,b,-90,90);d.gb(a.left+a.width-c,a.top+a.height-b-c);rz(d,b,b,0,90);d.gb(a.left+b+c,a.top+a.height-c);rz(d,b,b,90,90);d.gb(a.left+c,a.top+b+c);rz(d,b,b,180,90);d.close();return d}function pA(a,b,c,d){var e=a.J;e?a=new nz(e.C*b/100,e.F*c/100,e.D*b/100,e.G*c/100,e.j,e.o,e.A,e.B):(b=qA(d,a.o),a=new tz(a.B,b));return a}
function qA(a,b){return a?Math.max(b,.9):b}function rA(a,b){var c=vg(a),d=mA(b);ja(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 wg(c)}function sA(a,b,c){if(c.length&&(b=Gd("g",void 0,b),b.length)){var d=kA(c);if(d){c="effects:"+(d?d.join("|"):"");var e=Cz(a,c);e?a=e:(d=jA(d),a=0<d.childNodes.length?Ez(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function tA(){cA.call(this);this.B=0}z(tA,cA);
tA.prototype.o=function(a,b,c){var d=a.j,e=d.F,g=this.j&&Ty(a),e=(e+=g?1:0)?new uz(e,g?d.C:d.D):null;if(g=Xy(a)){var h=xy(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=Yy(a))&&a.j?a.j:null)&&a.length?a[0]:null){var l;c=c?xy(c,b):null;a=sy(k,new ug(k.I,k.J,k.D,k.B),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new Qc(a.left,a.top);c=h.clone();a=new ug(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=rA(c,d.effects);a=dA(this,c.width,c.height);var g=pA(d,c.width,c.height,this.j),h=new ug(h.left-c.left,h.top-c.top,h.width,h.height),r=new Qc(l.x-c.left,l.y-c.top);this.B=17*uy(b,k.A,k.j?k.j:"xy");b=d.j;k=e?e.j/2:0;l=uA(h,r);var p=this.D(h,b,r,l),t=r.x,r=r.y,C=h.width,V=h.height,T=h.left,h=h.top,ia=new oz;qz(ia,T+b+k,h+k);"t"==l&&(ia.gb(p.start,h+k),ia.gb(t,r),ia.gb(p.end,h+k));ia.gb(T+C-b-k,h+k);rz(ia,b,b,-90,90);"r"==l&&(ia.gb(T+
C-k,p.start),ia.gb(t,r),ia.gb(T+C-k,p.end));ia.gb(T+C-k,h+V-b-k);rz(ia,b,b,0,90);"b"==l&&(ia.gb(p.end,h+V-k),ia.gb(t,r),ia.gb(p.start,h+V-k));ia.gb(T+b+k,h+V-k);rz(ia,b,b,90,90);"l"==l&&(ia.gb(T+k,p.end),ia.gb(t,r),ia.gb(T+k,p.start));ia.gb(T+k,h+b+k);rz(ia,b,b,180,90);ia.close();Oz(a,ia,e,g);if(e=this.Q())N(e,"annotation-shape"),N(e,"annotation-speech-shape"),Jg(e,c.left,c.top),Tg(e,c.width,c.height),sA(a,e,d.effects)}}}};
function uA(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"}tA.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=Pc(c-a/2,d+b,d+e-a-b);return new bA(c,c+a)}return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new bA(0,0)};function vA(){cA.call(this)}z(vA,cA);vA.prototype.o=function(a,b,c){var d=Xy(a);d&&(b=xy(d,b,c),0>=b.width||0>=b.height||(a=a.j,c=rA(b,a.effects),d=dA(this,c.width,c.height),nA(d,new ug(0,0,b.width,b.height),a.j,new uz(!a.A&&this.j?1:a.A,a.B),new tz("#000",0)),b=this.Q(),N(b,"annotation-shape"),Zg(b,qA(this.j,a.o)),Jg(b,c.left,c.top),Tg(b,c.width,c.height)))};function wA(a,b){return window.location.protocol+"//i1.ytimg.com/vi/"+escape(a)+"/"+(b||"hqdefault.jpg")};function xA(a,b,c){cA.call(this);this.B=a||0;this.F=b||0;this.D=c||!1}z(xA,cA);function yA(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 ug(e,g,c,d)}
xA.prototype.o=function(a,b,c){var d=xy(Xy(a),b,c);if(!(0>=d.width||0>=d.height)){var e=yA(d,this.F);e.left+=d.left;e.top+=d.top;b=a.j;c=rA(e,b.effects);var g=dA(this,c.width,c.height),h=new tz("#000",0),e=yA(e,this.B);a=a.B?a.B.j?a.B.j:a.B.videoId?wA(a.B.videoId,"hqdefault.jpg"):"":"";e=Dz(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 Kz(e,g);g.A.Q().appendChild(e.Q());
if(a=this.Q()){var k=qA(this.j,b.o);Zg(a,k);if(this.D&&0<b.A){var k=new uz(b.A,b.B),d=new ug(0,0,d.width,d.height),l;l=oA(d,b.j,k.j/2+1);var p=Cz(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",Pz(l));r.setAttribute("fill","#FFF");p.appendChild(r);l=Ez(g,"mask",p)}e=e.Q();l&&e.setAttribute("mask","url(#"+l+")");nA(g,d,b.j,k,h)}N(a,"annotation-shape");N(a,"annotation-image-shape");
Jg(a,c.left,c.top);Tg(a,c.width,c.height);sA(g,a,b.effects)}}};function zA(){cA.call(this)}z(zA,cA);zA.prototype.o=function(a,b,c){var d=Xy(a);if(d){var e=xy(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.j;c=rA(e,b.effects);var d=dA(this,c.width,c.height),g=b.F;a=this.j&&Ty(a);a=(g+=a?1:0)?new uz(g,a?b.C:b.D):null;g=new ug(0,0,e.width,e.height);e=pA(b,e.width,e.height,this.j);nA(d,g,b.j,a,e);if(a=this.Q())N(a,"annotation-shape"),N(a,"annotation-popup-shape"),Jg(a,c.left,c.top),Tg(a,c.width,c.height),sA(d,a,b.effects)}}};function AA(){tA.call(this)}z(AA,tA);AA.prototype.D=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new bA(c,c+a)}return"t"==d||"b"==d?e(this.B,c.x,a.left,a.width):"l"==d||"r"==d?e(this.B,c.y,a.top,a.height):new bA(0,0)};function BA(a,b,c,d,e){this.j=a;this.I=b;this.F=c;this.N=d;this.J=e;this.G=new Kv(this);this.H=this.A=this.C=this.B=this.D=this.o=null}function CA(a,b){var c=x(function(a,c,g){c=g?DA(this,c,x(g,this)):DA(this,c);this.G.M(b,a,c)},a);c("mouseover","d",a.S);c("mouseout","c",a.O);c("click","a");c("touchend","a")}
function EA(a){if(a.j.F){var b;Sy(a.j,function(a){return"close"==a.type})?b=a.o:(a.C=I("div",["annotation-close-button","hid"]),ti(a.C,"annotation_id",a.j.id),a.o.appendChild(a.C),b=a.C);var c=function(a){a.stopPropagation()};a.G.M(b,"click",DA(a,"b",c));a.G.M(b,"touchend",DA(a,"b",c))}}
function DA(a,b,c){return x(function(a){if(this.J)c&&c(a);else if(a.target instanceof Element){var e=a.target;Sw(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(ne(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{Rw(e)}}e=Yg(a.target);a=new Qc(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.N.L(b,this.j)},a)}BA.prototype.S=function(){this.C&&Rw(this.C);this.B&&Zg(this.B,1);var a=FA(this);this.A&&(this.A.j=!0,Zg(this.o,GA(this)?1:0),a&&this.A.o(this.j,a,HA(this)))};BA.prototype.O=function(){this.C&&Sw(this.C);this.B&&Zg(this.B,0);var a=FA(this);this.A&&(this.A.j=!1,Zg(this.o,GA(this)?1:0),a&&this.A.o(this.j,a,HA(this)))};function HA(a){return a.H?Xy(a.H):null}
function lz(a){if(a.o||a.A){var b=Xy(a.j);if(b){var c=FA(a),d=HA(a);if(a.o&&c){b=xy(b,c,d);Tg(a.o,b.width,b.height);Jg(a.o,b.left,b.top);var e=a.F.Uj;if(e){var g;g=(g=Xy(a.j))&&e?ty(e,g.C,g.j?g.j:"xy"):1;var e=Zy(a.j,e),h;h=a.j.j;h.H?h=h.H:(h="speech"==a.j.style?1.6:.8,h=new tg(h,h,h,h));h=new tg(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.B&&(h.right+=1.5*c.height/100);a.o.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.j.style&&a.D&&(a.D.style.padding=
a.o.style.padding);a.B&&(g=g/e*c.height*4.2/100,g=new H(g,g),Tg(a.B,g),"highlight"==a.j.type||"label"==a.j.style?(e=1.5*c.height/100,g=new Qc(b.width-g.width-e,b.height-g.height-e)):g=new Qc(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Jg(a.B,g));a.C&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Jg(a.C,g&&e?new Qc(b.width-9,-9):g?new Qc(b.width-9,45<b.height?9:b.height-9):e?new Qc(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new Qc(45<b.width?b.width-9-18:-9,
b.height-9):new Qc(-9,45<b.height?9:b.height-9)))}}a.A&&c&&a.A.o(a.j,c,d);if(a.o){c=a.o;d=a.j.j;c.style.color="highlightText"==a.j.style?d.I:d.C;c.style.fontSize=360*d.textSize*Zy(a.j,a.F.Uj)/100+"px";b=a.j.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.G&&(c.style.fontWeight=d.G);a=a.o;c=a.style.overflow;d=Hd("annotation-link-icon",a);b=Qw(d);g=Hd("annotation-close-button",a);e=Qw(g);d&&b&&Sw(d);g&&e&&Sw(g);var k=h="",l=Hd("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=kh(a),r=p,t=5,C=Math.floor(p/2);C;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(t=r,r=Math.min(r+C,p)):r=Math.max(r-C,t),C=Math.floor(C/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&&Rw(g);d&&b&&Rw(d)}}}}BA.prototype.$=function(){Sw(this.o);this.A&&Sw(this.A.Q())};function GA(a){return"label"!=a.j.style||a.A.j}function FA(a){var b=a.F.Uj;return b?"player_relative"==a.j.H?(a=a.F.bk)?new ug(-b.left,-b.top,a.width,a.height):null:new ug(0,0,b.width,b.height):null};function IA(a){Ys.call(this,a);this.gi=!0;this.xa="iv-module";this.Bc="iv";this.I=!1;this.R=!0;this.O=new JA;this.o={};this.H={};this.D=new yw(this.S,a);a=KA;this.B=new aA(nt(this));R(this,this.B);this.B.M("change",this.WE,this);this.subscribe("onHideControls",this.GA,this);this.subscribe("onShowControls",this.CB,this);this.subscribe("onStateChange",this.jB,this);this.subscribe("d",this.YE,this);this.subscribe("c",this.XE,this);this.subscribe("a",this.Fz,this);this.subscribe("b",this.bA,this);var b=
new iv(["div",[a.Iu,"hid"],["svg",{width:"60",height:"60"},["g","",["circle","countdowntimer-background-circle",{cx:"30",cy:"30",r:"15"}],["path","countdowntimer-diminishing-pieslice",{d:"M30,30 z"}],["circle","countdowntimer-middle-dot",{cx:"30",cy:"30",r:"4"}]]]]);R(this,b);b=b.Q();this.N=I("DIV",[a.kv,"html5-stop-propagation"]);this.V=I("DIV",a.Nu);this.C=null;ct(this,I("DIV",a.ru,this.N,this.V));ct(this,b);this.G=new Rz(b,x(this.ql,this));this.F=this.A=null;this.J=[]}z(IA,Ys);IA.C="AnnotationsModule";
var KA={ru:"video-annotations",Iu:"countdowntimer",Nu:"video-custom-annotations",kv:"video-legacy-annotations"};IA.B=function(a){switch(a.type){case "branding":case "promotion":return!0}return!1};IA.A=function(a){return"card"==a.type};IA.o=function(a){return IA.Ha(a)?new IA(a):null};IA.Ha=function(a){var b=a.W();return"leanback"==b.ja?!1:b.Y?!0:Ev(a.getVideoData(),"iv3_module")};IA.j=function(){return I("div",["annotation","annotation-type-custom","hid"])};f=IA.prototype;f.Ha=function(){return IA.Ha(this.j)};
f.Na=function(){IA.K.Na.call(this);this.C=new Y(["div",["ytp-player-content","ytp-iv-player-content"]]);this.C.ea(this.j.La());qt(this,this.B);var a=this.j.W();(1==(a.Fk||this.j.getVideoData().ua)||a.Y)&&this.load()};f.destroy=function(){oh(this.j.La(),"ytp-iv-drawer-open");this.C.detach();this.C.dispose();rt(this,this.B);IA.K.destroy.call(this)};f.WE=function(){var a=1==this.B.element.A;this.loaded&&!a?(this.unload(),this.log({toggle:0})):!this.loaded&&a&&(this.load(),this.log({toggle:1}))};
f.jB=function(a){this.R=X(a.state,8);0>Gv(a,4)&&this.G.stop()};f.load=function(){IA.K.load.call(this);var a=x(this.AA,this);Tw()&&(a=LA(this,a));var a={format:"XML",method:"GET",Wb:a},b=this.j.W(),c=b.Y,d=b.ke;if(c||d)a.method="POST",a.Ib={},c&&(a.Ib.ic_xml=c,b.Y=""),d&&(a.Ib.ic_track=d,b.ke="");b=this.j.getVideoData();!b.di||b.qo&&!c||this.O.add(b.di,a);this.B.j(1)};
f.unload=function(){this.B.j(0);this.D.Pa({"iv-event":1});this.ql();at(this);Hb(this.o,function(a){a.destroy()});Hb(this.H,function(a){a.destroy()});this.F=null;this.A&&(this.A.destroy(),this.A=null);this.O.clear();this.o={};this.H={};IA.K.unload.call(this)};
function MA(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&&(g=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof g?g.trim():g);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(MA(a,e))}return c}
f.AA=function(a){var b=a.responseXML?a.responseXML.getElementsByTagName("annotations"):null;if(Bj(a)&&b){NA(this,b[0]);N(this.j.La(),this.xa+"-loaded");a=[];for(var c in this.o){var b=this.o[c].annotation,d;if(b.o)if(d=b.o,d.j.length)if(d=d.j[0].o||d.j[0].j||d.j[0].A,!d||2>d.length)d=null;else{var e=d.length-1;d=0>=d[0].o&&0>=d[e].o?null:{start:d[0].o,end:d[e].o}}else d=null;else d=null;if(e=d)if(d=1E3*e.start,e=1E3*e.end,0==d&&(d++,e++),d==e&&e++,!(e<d)){var g={id:c};"marker"==b.type&&(g.style="ytp-chapter-marker",
g.tooltip=b.D,g.visible=!0);b=new Ms(d,e,g);a.push(b)}}Zs(this,a)}};function OA(a,b){var c=PA(a,b);if(!c&&"marker"!=b.type)return null;Vy(b,function(a){a=x(this.VB,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new iz(a.S,b,c)}function QA(a,b){var c=a.C.Q(),d=IA.j(),e=null;switch(b.type){case "branding":var g=a.j.W();if(g.experiments.hm&&g.ad)break;c.appendChild(d);e=new ey(d,RA(a),b);break;case "promotion":c.appendChild(d),e=new $y(d,RA(a),b)}e&&e.Jj();return e}
function SA(a,b){if(!a.A){var c=new Y(["div","hid"]);a.A=new Qx(c.Q(),RA(a));c.ea(a.C.Q());a.A.Jj()}(c=b&&b.data&&b.data.card_type)&&Rx[c]&&a.A.add(new Rx[c](b.id,b.data,b.qb))}function RA(a){a.F||(a.F=new hy(new Kv(a),a.j.W(),a.j.getVideoData(),a.D,a.j,a.S));return a.F}
function NA(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=MA(a,c[d]),g=null;try{g=Qy(e)}catch(h){}g&&(IA.B(g)?(e=QA(a,g))&&(a.H[g.id]=e):IA.A(g)?SA(a,g):(e=OA(a,g))&&(a.o[g.id]=e))}Hb(a.o,function(a){var b=a.annotation;b.o&&b.o.o&&(b=this.o[b.o.o])&&(a.j.H=b.annotation)},a)}f.Ic=function(a){IA.K.Ic.call(this,a);a=a.getId();var b=this.o[a];b&&!b.C&&(b=b.annotation,"pause"==b.type?TA(this,b):(UA(this,a),zw(this.D,b.qb)))};
f.Zc=function(a){IA.K.Zc.call(this,a);VA(this,a.getId())};function TA(a,b){if(a.R){var c=Ry(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.I=!0,a.L("command_pause"),a.G.start(1E3*c.duration.value))}}function WA(a,b,c,d){d?UA(a,b,c):VA(a,b,c)}function VA(a,b,c){if(b=a.o[b])kz(b),c&&c.o?(a=x(a.sp,a,b),b.o=new Mv(a,2E3),b.o.start()):a.sp(b)}f.sp=function(a){a&&(a.$(),XA(this,"shown",!1,a.annotation.id),this.yi(a.annotation,"hidden"))};
function UA(a,b,c){if(b=a.o[b])kz(b),c&&c.B?(a=x(a.Wr,a,b),b.o=new Mv(a,2E3),b.o.start()):a.Wr(b)}
f.Wr=function(a){if(a){a.isVisible=!0;if(a.j){var b=a.j,c=b.j.j,c=(c&&0==c.o||"title"==b.j.style||"highlightText"==b.j.style||"pause"==b.j.type?!1:!0)&&!b.A,d=!b.o,e="widget"==b.j.type;if(c){var g=FA(b);if(g){var h=null;"highlight"==b.j.type||"label"==b.j.style?h=new vA:"popup"==b.j.style?h=new zA:"anchored"==b.j.style?h=new tA:"speech"==b.j.style?h=new AA:"image"==b.j.type&&("video"==b.j.style?h=new xA(Kw,Jw,!0):"channel"==b.j.style&&(h=new xA));h&&(h.o(b.j,g,HA(b)),b.A=h,g=h.Q())&&(Sw(g),N(g,"annotation-type-"+
b.j.type.toLowerCase()),b.I(g))}}if(d){g=["annotation","hid"];"highlightText"!=b.j.style||g.push("annotation-no-mouse");g.push("annotation-type-"+b.j.type.toLowerCase());b.o=I("div",g);b.j.D&&(b.D=I("div","inner-text"),"label"==b.j.style&&(N(b.D,"label-text"),b.D.style.backgroundColor=b.j.j.B),ee(b.D,b.j.D),b.o.appendChild(b.D));ti(b.o,"annotation_id",b.j.id);b.I(b.o);CA(b,b.o);if(Ty(b.j)&&"image"!=b.j.type&&b.j.showLinkIcon()){if(g=gy(b.j))b.o.title=g.value?g.value:null;b.B=I("span","annotation-link-icon");
b.o.appendChild(b.B)}EA(b);Ty(b.j)||(b.o.style.cursor="default")}e&&("subscribe"==b.j.style?Hd("yt-uix-subscription-button",b.o)||(b.o.innerHTML=b.j.A):b.j.A&&(b.o.innerHTML=b.j.A));if(c||d){i:{c=b.j.o.j;if(c.length&&(c=Ey(c[0]))){c=c.F;break i}c=0}b.o&&(b.o.style.zIndex=c);b.A&&b.A.Q()&&(b.A.Q().style.zIndex=c)}Rw(b.o);Zg(b.o,GA(b)?1:0);lz(b);b.A&&Rw(b.A.Q())}a.A.subscribe("onResize",a.B,a);XA(this,"shown",!0,a.annotation.id);this.yi(a.annotation,"shown")}};
f.VB=function(a,b,c){var d=this.o[a];if(d&&b.value!=c){b.value=c;var e=!1;Vy(d.annotation,function(a){e|=a.value});WA(this,a,b,e)}};f.Fz=function(a){if(a&&a.id){var b=gy(a);if(b){var c=x(this.yi,this,a,"click"),d=this.j.getVideoData();if("new"==b.target||-1!=tw(b,d.videoId))c(),c=null;Dw(this.D,a.qb,c)}}};
f.yi=function(a,b){Uy(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e=tw(c.url,d.videoId);if(-1!=e)this.L("command_seek",e),this.ql();else if(d=uw(c.url,a.id,d.videoId,this.j.W()))this.pauseVideo(),window.open(d,xw(c.url))}},this)};f.GA=function(){XA(this,"playerControlShow",!1)};f.CB=function(){XA(this,"playerControlShow",!0)};f.YE=function(a){XA(this,"rollOver",!0,a.id)};f.XE=function(a){XA(this,"rollOver",!1,a.id)};
f.bA=function(a){if(a||a.id)this.o[a.id].C=!0,VA(this,a.id),a&&(Ew(this.D,a.qb),this.yi(a,"close")),XA(this,"closed",!0,a.id)};f.ql=function(){this.G.stop();this.I&&(this.I=!1,this.L("command_play"))};function PA(a,b){if(YA(b)){var c=b.F||Sy(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new BA(b,x(a.N.appendChild,a.N),a.j.W(),a.S,c)}return null}
function YA(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in Ny)if(a.style==Ny[b])return!0;return!1}function XA(a,b,c,d){a.L(hz(b,d),c,d)}function LA(a,b){return x(function(){if(!this.ka()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=pa.apply(window,a);this.J.push(Uw(b,void 0))}},a)}f.P=function(){for(var a=this.J,b=0,c=a.length;b<c;b++)Ww(a[b]);this.J.length=0;this.O.clear();IA.K.P.call(this)};function JA(){this.j=[]}
JA.prototype.add=function(a,b){b.Wb=x(function(a,b,c,h){ob(this.j,c);a&&a.call(b,c,h)},this,b.Wb||null,b.context||m);var c=Gj(a,b);c&&this.j.push(c)};JA.prototype.clear=function(){for(var a;a=this.j.shift();)a.abort()};var ZA=/^#(?:[0-9a-f]{3}){1,2}$/i,$A="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),aB=["none","raised","depressed","uniform","dropShadow"],bB=["sub","inherit","super"],cB=["left","right","center"],dB={id:0,priority:0,anchorPoint:7,bj:50,sD:80,ee:100,Dd:15,bl:100,isVisible:!0,textAlign:2,cg:0,background:"#080808",color:"#fff",xo:1,iD:1,lw:0,windowColor:"#000",PK:0},eB={id:98},fB={id:99,priority:1,anchorPoint:0,bj:5,ee:5,Dd:2,bl:32,textAlign:0},gB=["en_CA","en_US",
"es_MX","fr_CA"];var hB=[{option:"#fff",message:"YTP_COLOR_WHITE"},{option:"#ff0",message:"YTP_COLOR_YELLOW"},{option:"#0f0",message:"YTP_COLOR_GREEN"},{option:"#0ff",message:"YTP_COLOR_CYAN"},{option:"#00f",message:"YTP_COLOR_BLUE"},{option:"#f0f",message:"YTP_COLOR_MAGENTA"},{option:"#f00",message:"YTP_COLOR_RED"},{option:"#080808",message:"YTP_COLOR_BLACK"}],iB=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],jB=[{option:.25,text:"25%"},{option:.5,
text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],kB=[{option:"fontFamily",message:"YTP_FONT_FAMILY",options:[{option:1,message:"YTP_FONT_FAMILY_MONO_SERIF"},{option:2,message:"YTP_FONT_FAMILY_PROP_SERIF"},{option:3,message:"YTP_FONT_FAMILY_MONO_SANS"},{option:4,message:"YTP_FONT_FAMILY_PROP_SANS"},{option:5,message:"YTP_FONT_FAMILY_CASUAL"},{option:6,message:"YTP_FONT_FAMILY_CURSIVE"},{option:7,message:"YTP_FONT_FAMILY_SMALL_CAPS"}]},{option:"color",message:"YTP_FONT_COLOR",options:hB},
{option:"fontSizeIncrement",message:"YTP_FONT_SIZE",options:[{option:-2,text:"50%"},{option:-1,text:"75%"},{option:0,text:"100%"},{option:1,text:"150%"},{option:2,text:"200%"},{option:3,text:"300%"},{option:4,text:"400%"}]},{option:"background",message:"YTP_BACKGROUND_COLOR",options:hB},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:iB},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:hB},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:iB},{option:"charEdgeStyle",
message:"YTP_CHAR_EDGE_STYLE",options:[{option:0,message:"YTP_EDGE_STYLE_NONE"},{option:4,message:"YTP_EDGE_STYLE_DROP_SHADOW"},{option:1,message:"YTP_EDGE_STYLE_RAISED"},{option:2,message:"YTP_EDGE_STYLE_DEPRESSED"},{option:3,message:"YTP_EDGE_STYLE_OUTLINE"}]},{option:"textOpacity",message:"YTP_FONT_OPACITY",options:jB}];var lB;function mB(a,b){ea(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;lB||(lB={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=lB;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function nB(a,b,c,d,e){Tz.call(this,a,b,c,c);this.J=b;this.defaultTooltip=this.O=c;this.F=d||null;this.G=e||null;this.H=e||null;this.j=!1}z(nB,Tz);nB.prototype.update=function(){Uz(this,this.j&&this.F?this.F:this.J);this.kb(this.j&&this.G?this.G:this.O);this.A=this.j&&this.H?this.H:this.defaultTooltip;O(this.element,"ytp-button-pressed",this.j)};function oB(a){a.j=!0;mB(a.element,!0);a.update()}function pB(a){a.j=!1;mB(a.element,!1);a.update()}function sB(a,b){a.J=b;a.update()}
nB.prototype.P=function(){this.H=this.G=this.F=null;nB.K.P.call(this)};function tB(a){nB.call(this,a,"ytp-subtitles-button",Z("YTP_SUBTITLES"),"ytp-subtitles-button-active");Vz(this,6500);this.element.setAttribute("aria-haspopup",!0);this.element.id="subtitles_button"}z(tB,nB);function uB(a){Y.call(this,a)}z(uB,Y);uB.prototype.Ut=function(){};uB.prototype.focus=function(){};function vB(a,b,c,d){Y.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Z(b.message):""),e=[new iv(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new iv(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.Q().style.background=b.option.toString(),e.unshift(d));c?e.unshift(new iv(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new iv(["div","ytp-subtitles-settings-dialog-list-check"]));this.j=new Tz(a);R(this,this.j);
this.j.za(e);this.za(this.j)}z(vB,Y);function wB(a){Y.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.B=a;this.o=null;var b=Z("YTP_DONE"),c=new Tz(a,"ytp-dialog-button",b);R(this,c);c.za(b);c.M("click",pa(this.$b,"cancel"),this);Vz(c,1400);b=Z("YTP_RESET");a=new Tz(a,"ytp-dialog-button",b);R(this,a);
a.za(b);N(a.Q(),"ytp-dialog-button-left");a.M("click",pa(this.$b,"select"),this);Vz(a,1300);this.A={};this.j={};this.template.update({top:xB(this,kB),buttons:[a,c]})}z(wB,uB);
function xB(a,b,c){var d=new Y(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.j={},e=a.j):(a.A={},e=a.A,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new vB(a.B,k,g,b==hB);g?(l.M("click",x(a.Xr,a,k.options,k.option)),Vz(l.j,1100)):c&&(l.M("click",x(a.VC,a,c,k.option)),Vz(l.j,1200));e[k.option]=l;l.ea(d.Q())}return d}f=wB.prototype;f.Xr=function(a,b){this.template.update({sub:xB(this,a,b)});yB(this,this.A,b);yB(this,this.j,this.o[b]);zB(this.template.j["ytp-subtitles-settings-dialog-sub-level"])};
function zB(a){(a=Hd("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.focus=function(){zB(this.template.j["ytp-subtitles-settings-dialog-top-level"])};function yB(a,b,c){Hb(b,function(a,b){var g=b==c;O(a.j.Q(),"ytp-subtitles-settings-dialog-list-selected",g)},a)}function AB(a,b){a.o=b;var c=kB[0];c&&c.options&&a.Xr(c.options,c.option)}f.VC=function(a,b){this.o&&(this.o[a]=b,this.$b("change"));yB(this,this.j,b);this.focus()};
f.Ut=function(){var a=this.B.wb(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.Q().style.width=b+"px";this.template.j["ytp-dialog-body"].style.height=a.height-140+"px"};f.P=function(){this.A=[];this.j=[];wB.K.P.call(this)};function BB(a,b,c){Y.call(this,["div","ytp-drop-down","{{content}}"]);this.A=!1;this.C=0;this.H=this.G=null;this.B=new Kv(this);this.o=new Y(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);R(this,this.o);rv(this.o,"listbox");this.j=new Tz(a,"ytp-drop-down-label");R(this,this.j);this.j.M("click",this.YF,this);this.F=new Y(["div","ytp-drop-down-label-content","{{content}}"]);R(this,this.F);this.j.za([this.F,["div","ytp-drop-down-arrow"]]);this.za([this.o,this.j]);n(b)&&this.ue(b);n(c)&&this.H!=
c&&(this.o.za(c),this.H=c,CB(this));CB(this)}z(BB,Y);f=BB.prototype;f.ue=function(a){this.G!=a&&(this.F.za(a),this.G=a,CB(this))};f.te=function(){this.A=!1;CB(this)};f.XF=function(a){a.target&&(ce(this.o.Q(),a.target)||ce(this.j.Q(),a.target))||this.te()};f.YF=function(){this.A=!this.A;CB(this);this.A&&this.o.Q().focus()};function DB(a,b){b>a.C&&(a.C=b,a.element.style.minWidth=a.C+"px")}f.focus=function(){this.j.Q().focus()};
function CB(a){a.A?(a.o.va(),a.B.M(window,"blur",a.te),a.B.M(document,"click",a.XF)):(a.o.$(),a.B.removeAll());var b=Vg(a.j.Q());a.o.Q().style.bottom=b.height-1+"px";DB(a,b.width)};function EB(a,b){Tz.call(this,a,"ytp-drop-down-menu-button");rv(this,"option");this.o=new Y(["div","ytp-drop-down-menu-button-check"]);R(this,this.o);this.F=!!b}z(EB,Tz);EB.prototype.za=function(a){EB.K.za.call(this,[this.o,a])};EB.prototype.j=function(a){O(this.element,"ytp-drop-down-menu-button-selected",a);this.F||O(this.element,"ytp-drop-down-menu-button-checked",a);this.element.setAttribute("aria-checked",a)};function FB(a,b){O(a.element,"ytp-drop-down-menu-button-checked",b)};function GB(a,b,c,d){Y.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.I=a;this.F=!!d;this.B={};this.C=[];this.o=this.A=null;this.G=b;this.H=c}z(GB,Y);function HB(a,b){Cb(a.C,b)||(Hb(a.B,function(a){a.detach()}),a.C=[],b&&D(b,function(a){this.C.push(a);var b=IB(this,a);this.F&&FB(b,a==this.o);b.j(a==this.A);b.ea(this.element)},a))}GB.prototype.j=function(a){null!=this.A&&IB(this,this.A).j(!1);null!=a&&IB(this,a).j(!0);this.A=a;this.F||(this.o=a)};
function JB(a,b){var c=IB(a,"translate");b?c.disable():Xz(c)}function KB(a,b){Hb(a.B,function(a){Vz(a,b)})}function IB(a,b){var c=a.B[b.toString()];if(c)return c.za(a.G(b)),c;c=new EB(a.I,a.F);R(a,c);a.B[b.toString()]=c;c.za(a.G(b));c.M("click",x(a.H,a,b));return c};function LB(a,b,c,d,e,g){Sz.call(this);this.N=b;this.O=c;this.J=d;this.S=e;this.I=g;this.o={};this.o.off=Z("YTP_LANGUAGE_OFF");this.o.translate=Z("YTP_TRANSLATE_MENU_ITEM");this.o.contribute=Z("YTP_CONTRIBUTE_MENU_ITEM");this.label=Z("YTP_SUBTITLES");this.j=new GB(a,x(this.G,this),x(this.R,this));R(this,this.j);this.element=new BB(a,void 0,this.j);R(this,this.element);DB(this.element,150);this.element.kb(this.label);this.priority=1;this.C=!0;this.F=this.D=!1;MB(this,[]);this.off()}z(LB,Sz);
LB.prototype.H=function(){this.J()};function MB(a,b){for(var c=["off"],d=0;d<b.length;d++){var e=b[d],g=e.toString();a.o[g]||(a.o[g]=Ht(e));c.push(g)}c.push("translate");a.F&&c.push("contribute");HB(a.j,c);JB(a.j,!a.D);c=IB(a.j,"translate");O(c.element,"ytp-drop-down-menu-button-separated",!1);O(c.element,"ytp-drop-down-menu-button-separated-above",!0);c=2500;KB(a.j,c++);c=c++;Vz(a.element.j,c)}function NB(a,b){a.o[b]&&(a.j.j(b),a.element.ue(a.G(b)))}LB.prototype.off=function(){NB(this,"off")};
LB.prototype.G=function(a){return this.o[a]};LB.prototype.R=function(a){this.element.te();"off"==a?this.N():"translate"==a?this.S():"contribute"==a?this.I():this.O(a,!0)};function OB(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Z("YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);var c=Z("YTP_DISMISS"),b=new Tz(a,"ytp-dialog-button",c);R(this,b);b.za(c);b.M("click",pa(this.$b,"change"),this);Vz(b,1400);var c=Z("YTP_CANCEL"),d=new Tz(a,"ytp-dialog-button",c);R(this,d);d.za(c);d.M("click",pa(this.$b,"cancel"),this);Vz(d,1500);this.A=new GB(a,x(this.B,this),
x(this.F,this),!0);R(this,this.A);this.A.element.style.maxHeight="100px";this.o=new BB(a,void 0,this.A);R(this,this.o);DB(this.o,200);this.o.kb(Z("YTP_TRANSLATE_DIALOG_TITLE"));this.C=null;this.template.update({content:this.o,buttons:[b,d]})}z(OB,uB);OB.prototype.j=function(a){this.C=a;this.o.ue(a?this.B(a):null)};OB.prototype.F=function(a){this.o.te();this.j(a)};OB.prototype.B=function(a){return a.Zi?a.languageName+" -- "+a.Zi:a.languageName};OB.prototype.focus=function(){this.o.focus()};function PB(a){nB.call(this,a,"ytp-settings-button",Z("YTP_SETTINGS"),"ytp-settings-button-active");Vz(this,6600);this.element.setAttribute("aria-haspopup",!0);this.element.id="settings_button";this.o=new Y(["div","{{content}}"]);R(this,this.o);this.za(this.o);QB(this,"")}z(PB,nB);
function QB(a,b){"highres"==b?a.o.za("ytp-settings-8k-quality-badge"):"hd2880"==b?a.o.za("ytp-settings-5k-quality-badge"):"hd2160"==b?a.o.za("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.o.za("ytp-settings-hd-quality-badge"):a.o.za("")};function RB(a){this.anchorPoint=7;this.bj=50;this.ee=100;this.sD=80;this.cg=0;this.textAlign=2;this.backgroundColor="#080808";this.color="#fff";this.iD=this.xo=1;this.Dd=15;this.bl=32;this.isVisible=!0;this.fontFamily=4;this.j=0;this.bold=!1;this.offset=1;this.lw=3;a=a||dB;qa(this,a)};function SB(a,b){this.id=a;this.Ea=new RB(b);var c="caption-window";0==this.id&&(c+=" standard-caption-window");this.Ja=I("div",{id:"caption-window-"+this.id,"class":c});this.Ub=I("span",{"class":"captions-text",style:"visibility: hidden"});this.Ub.innerHTML="C";this.Sa=I("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.ph=I("div",{"class":"caption-window-transform"});this.ph.appendChild(this.Sa);this.Ja.appendChild(this.ph);this.j=1}SB.prototype.id=0;f=SB.prototype;
f.Ea=null;f.xg="";f.Dc=null;f.Ja=null;f.ph=null;f.Sa=null;f.Ub=null;f.type=0;
f.Ed=function(a,b){a&&qa(this.Ea,a);var c=this.Ea.charEdgeStyle,d=this.Ea.textOpacity,e="";if(0!=c){var g="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.Ea.charEdgeColor&&(h=g=this.Ea.charEdgeColor);switch(c){case 4:e="2px 2px 3px "+g+", 2px 2px 4px "+g+", 2px 2px 5px "+g;break;case 1:e="1px 1px "+g+", 2px 2px "+g+", 3px 3px "+g;break;case 2:e="1px 1px "+h+", 0 1px "+h+", -1px -1px "+g+", 0 -1px "+g;break;case 3:e="0 0 4px "+g+", 0 0 4px "+g+", 0 0 4px "+g+", 0 0 4px "+g}}c=this.Ea.fontFamily;
g="";switch(c){case 1:g='"Courier New", Courier, "Nimbus Mono L", "Cutive Mono", monospace';break;case 2:g='"Times New Roman", Times, Georgia, Cambria, "PT Serif Caption", serif';break;case 3:g='"Deja Vu Sans Mono", "Lucida Console", Monaco, Consolas, "PT Mono", monospace';break;case 5:g='"Comic Sans MS", Impact, Handlee, fantasy';break;case 6:g='"Monotype Corsiva", "URW Chancery L", "Apple Chancery", "Dancing Script", cursive';break;case 7:g='"Arial Unicode Ms", Arial, Helvetica, Verdana, "Marcellus SC", sans-serif';
break;case 0:case 4:g='"Arial Unicode Ms", Arial, Helvetica, Verdana, "PT Sans Caption", sans-serif'}var k=Zx(this.Ea.color),h=Zx(this.Ea.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.Ea.offset||1;Dg(this.Sa,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.Ea.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":g,"font-weight":this.Ea.bold?"bold":"","font-style":this.Ea.italic?"italic":"","text-decoration":this.Ea.underline?
"underline":"","vertical-align":bB[d]});b&&(this.j=b.height/360);e=Zx(this.Ea.windowColor);c=this.Ea.windowOpacity;g=this.Ea.fontSizeIncrement||0;1!=d&&(g*=.8);Dg(this.ph,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*g)*this.j)+"px"})};f.Hi=function(){var a;this.Ub.style.fontFamily=this.Sa.style.fontFamily;this.Ja.appendChild(this.Ub);a=this.Ub.offsetHeight;this.Ja.removeChild(this.Ub);return a};
f.$d=function(){this.Sa&&(0!=this.id&&98!=this.id&&(Ug(this.Ja,"100%"),Ug(this.Ja,this.Sa.offsetWidth+1)),TB(this),Pw(this.Ja,this.Ea.isVisible))};function TB(a){Jg(a.Ja,a.Ea.bj+"%",a.Ea.ee+"%");for(var b=0;8>=b;b++)oh(a.Ja,"anchor-point-"+b);N(a.Ja,"anchor-point-"+a.Ea.anchorPoint)}f.Rr=function(a){var b=[];D(a,function(a){a.A?b[b.length-1]+=a.j:b.push(a.j)});if(a.length){var c=a[a.length-1].B;c&&this.Ed(UB(c))}this.be(b.join("\n"));this.Dc=a};
f.be=function(a){this.xg=a=VB(a);this.Sa.innerHTML=this.xg;this.Ja.style.textAlign=cB[this.Ea.textAlign];1==this.Ea.cg?this.Sa.setAttribute("dir","rtl"):this.Sa.removeAttribute("dir");this.$d()};f.toString=function(){var a="Caption window ("+this.id+"): "+this.xg,b;for(b in this.Ea)a+=b+" "+this.Ea[b]+" | ";return a};function VB(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.oi=function(){this.Dc=[];this.be("")};function WB(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=XB();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function YB(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 ZB(a,b){if("undefined"!=typeof a.selectSingleNode){var c=Dd(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=Dd(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}
function $B(a){if("undefined"!=typeof a.selectNodes){var b=Dd(a);"undefined"!=typeof b.setProperty&&b.setProperty("SelectionLanguage","XPath");return a.selectNodes('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]')}if(document.implementation.hasFeature("XPath","3.0")){var b=Dd(a),c=b.createNSResolver(b.documentElement);a=b.evaluate('vmap:Extensions/vmap:Extension[@type = "YTBreakTime"]/*[name() = "yt:BreakTime"]',a,c,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE,null);for(var b=
[],c=a.snapshotLength,d=0;d<c;d++)b.push(a.snapshotItem(d));return b}return[]}function XB(){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 aC(){this.o=[];this.j=[]};function bC(a,b,c,d,e,g,h){Ms.call(this,a,a+b,{priority:c});this.o=d;this.j=e;this.A=g||!1;this.B=h||null}z(bC,Ms);bC.prototype.toString=function(){return bC.K.toString.call(this)};
function cC(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=a.getAttribute("t"),c=c?parseInt(c,10):1E3*parseFloat(a.getAttribute("start")||0),d=a.getAttribute("d"),d=d?parseFloat(d):1E3*parseFloat(a.getAttribute("dur")||0),e=parseInt(a.getAttribute("w"),10)||0;a=!!a.getAttribute("append");return new bC(c,d,a?6:5,e,b,a)}function dC(a,b,c,d,e,g,h){Ms.call(this,a,a+b,{priority:c});this.id=d;this.params=e||{};this.A=g||null;this.B=h||null;this.j="";this.o=!1;eC(this)}z(dC,Ms);dC.prototype.C=!1;
function fC(a){return a.params.rz?a.params.rz:a.params.jD?2:a.o?1:0}function gC(){return new dC(0,2147483647,0,0,dB)}function eC(a){a.A&&qa(a.params,UB(a.A));a.B&&qa(a.params,UB(a.B))};function hC(a){aC.call(this);this.j.push(gC());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=cC(a[b]);this.o.push(d)}}z(hC,aC);function iC(a){aC.call(this);this.A={};for(a=a.firstChild.firstChild;a;){switch(a.tagName){case "window":var b=a,c=parseInt(b.getAttribute("id"),10);i:{var d=b,e=this.A[c];if(d.getAttribute("t")||d.getAttribute("start")){b=d.getAttribute("start")?1E3*parseFloat(d.getAttribute("start")):parseInt(d.getAttribute("t"),10);e&&(e.end>=b?e.end=b:e=null);switch(d.getAttribute("op")){case "kill":b=null;break i;case "define":e=null}e?e.C=!0:e=gC();var g={};qa(g,e?e.params:dB);d.getAttribute("id")&&(g.id=d.getAttribute("id"));
d.getAttribute("op")&&(g.KK=d.getAttribute("op"));d.getAttribute("rc")&&(g.Dd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(g.bl=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(e=parseInt(d.getAttribute("ap"),10),g.anchorPoint=0>e||8<e?7:e);d.getAttribute("ah")&&(g.bj=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(g.ee=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(g.id=parseInt(d.getAttribute("id"),10)||0);d.getAttribute("vs")&&(g.isVisible=Boolean(d.getAttribute("vs")));
d.getAttribute("ju")&&(g.textAlign=parseInt(d.getAttribute("ju"),10));d.getAttribute("pd")&&(g.cg=1,0==parseInt(d.getAttribute("pd"),10)&&(g.cg=0));d.getAttribute("bc")&&(g.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(g.xo=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(g.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(g.jD=parseInt(d.getAttribute("sd"),10));e=parseInt(d.getAttribute("d"),10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;
d=parseInt(d.getAttribute("id"),10)||0;b=new dC(b,e,0,d,g)}else b=null}this.A[c]=b;this.j.push(b);break;case "text":c=cC(a),this.o.push(c),b=c.o,this.A[b]&&(b=this.A[b],c=c.j,""!=b.j&&(b.o=!0),b.j+=c)}a=a.nextSibling}0==this.j.length&&this.j.push(gC())}z(iC,aC);function jC(a){this.parent=a||null;this.j={}}function kC(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return kC(a.parent,b)}function lC(a,b,c){void 0!=c&&(a.j[b]=c)}function mC(a,b,c){void 0!=c&&(a.j[b]=c)}function UB(a){var b=a.parent?UB(a.parent):{};qa(b,a.j);return b};function nC(a){aC.call(this);var b={qj:{},un:{},vn:{}},c,d;a=a.firstChild.childNodes;for(var e=0;e<a.length;e++){var g=a[e];switch(g.tagName){case "head":c=g;break;case "body":d=g}}if(c)for(c=c.childNodes,a=0;a<c.length;a++)switch(e=c[a],e.tagName){case "pen":var g=b,h=oC(e,"p"),k=void 0;h&&g.qj[h]&&(k=g.qj[h]);g=new jC(k);lC(g,"id",oC(e,"id"));h=pC(e,"b");void 0!=h&&(g.j.bold=h);h=pC(e,"i");void 0!=h&&(g.j.italic=h);h=pC(e,"u");void 0!=h&&(g.j.underline=h);lC(g,"charEdgeStyle",qC(e,"et"));lC(g,"offset",
qC(e,"of"));lC(g,"textType",qC(e,"tt"));mC(g,"background",rC(e,"bc"));mC(g,"charEdgeColor",rC(e,"ec"));mC(g,"color",rC(e,"fc"));h=qC(e,"fs");void 0!=h&&0!=h&&lC(g,"fontFamily",h);h=oC(e,"sz");void 0!=h&&lC(g,"fontSizeIncrement",h/100-1);h=oC(e,"bo");void 0!=h&&lC(g,"backgroundOpacity",h/255);e=oC(e,"fo");void 0!=e&&lC(g,"textOpacity",e/255);e=kC(g,"id",!1);b.qj[e]=g;break;case "ws":g=sC(b,e);e=kC(g,"id",!1);b.vn[e]=g;break;case "wp":g=tC(b,e),e=kC(g,"id",!1),b.un[e]=g}if(d)for(c={},a=-1,d=d.childNodes,
e=0;e<d.length;e++)switch(g=d[e],g.tagName){case "w":k=uC(b,g);if(g=c[k.id])g.end=k.start;c[k.id]=k;this.j.push(k);break;case "p":var h=b,l=g,k=oC(l,"t")||0,p=oC(l,"d")||0,r=l.textContent||"",t=oC(l,"w")||0,C=!!pC(l,"a"),V=C?6:5,l=oC(l,"p"),h=new bC(k,p,V,t,r,C,l?h.qj[l]:null),k=c[h.o];k||(k=uC(b,g),k.id=a--,h.o=k.id,this.j.push(k));g=k;k=h.j;""!=g.j&&(g.o=!0);g.j+=k;this.o.push(h)}}z(nC,aC);function oC(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}
function pC(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function qC(a,b){var c=oC(a,b);if(void 0!=c)return c}function rC(a,b){var c=a.getAttribute(b);if(null!=c)return ZA.test(c),c}
function sC(a,b){var c=oC(b,"ws"),d;c&&a.vn[c]&&(d=a.vn[c]);c=new jC(d);lC(c,"id",oC(b,"id"));lC(c,"modeHint",qC(b,"mh"));lC(c,"textAlign",oC(b,"ju"));lC(c,"textPrintDirection",qC(b,"pd"));lC(c,"textScrollDirection",qC(b,"sd"));lC(c,"windowBorderType",qC(b,"et"));mC(c,"windowBorderColor",rC(b,"wbc"));mC(c,"windowColor",rC(b,"wfc"));d=oC(b,"wfo");void 0!=d&&lC(c,"windowOpacity",d/255);return c}
function tC(a,b){var c=oC(b,"wp"),d;c&&a.un[c]&&(d=a.un[c]);c=new jC(d);lC(c,"anchorPoint",qC(b,"ap"));lC(c,"colCount",oC(b,"cc"));lC(c,"id",oC(b,"id"));lC(c,"leftPercentage",oC(b,"ah"));lC(c,"rowCount",oC(b,"rc"));lC(c,"topPercentage",oC(b,"av"));return c}function uC(a,b){var c=oC(b,"id")||0,d;d=oC(b,"t");var e=oC(b,"d")||2147483647,g=tC(a,b),h=sC(a,b);return new dC(d,e,0,c,null,g,h)};function vC(a,b){aC.call(this);this.j.push(gC());for(var c=a.split(wC),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(xC))e=null;else{var h=e.split(yC),k=0,l=h[k++].match(zC);l||(l=h[k++].match(zC));l?(e=AC(l[1],g)||0,g=AC(l[3],g)||0,h=h.slice(k).join("\n"),e=new bC(e,g-e,5,0,h)):e=null}e&&this.o.push(e)}}z(vC,aC);var xC=/NOTE/,wC=/(?:\r\n|\r|\n){2,}/,yC=/\r\n|\r|\n/,zC=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function AC(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 BC(a,b){this.j=[];this.o=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new vC(a,b||0):(c=WB(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new nC(c):new iC(c):new hC(c):null:null;c&&(this.o=c.j,this.j=c.o)};function CC(){this.A=[];this.j=[];this.o=-1}function DC(a,b){return b?a.j.concat(a.A):a.j}function EC(a,b){switch(b.A){case "asr":return FC(b,a.A);default:if(b.isDefault||0>a.o)a.o=a.j.length;return FC(b,a.j)}}function FC(a,b){return F(b,x(a.equals,a))?!1:(b.push(a),!0)}function GC(a,b){var c=ib(a.j,x(b.equals,b));-1!=c&&(a.o=c)};function HC(a){this.Qp=!!a;this.o=new CC;this.B=[]}z(HC,Q);function IC(a,b){return F(DC(a.o,!0),function(a){return a.toString()==b})}f=HC.prototype;f.xl=function(a){var b=this.o.o,c=DC(this.o,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};f.Pd=function(){return null};f.seek=function(){};f.mn=function(){};f.P=function(){HC.K.P.call(this);this.mn()};function JC(a){HC.call(this,a.ji);this.A=null;this.C=void 0;this.B=a.ie}z(JC,HC);f=JC.prototype;f.Ko=function(){for(var a=[],b=DC(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:Ht(d),srclang:d.j,src:KC(this,d)};d==this.xl()&&(e["default"]=1);a.push(I("track",e))}return a};
f.um=function(a,b){var c=KC(this,a),d=x(function(c){this.j=null;c=new BC(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Gj(c,{format:"RAW",jb:d,withCredentials:!0});this.A&&this.A.Bi!=a&&(this.A.ml=a)};f.wm=function(a,b,c,d){this.C=c;if(this.A=d||null)for(b=0;b<this.A.captionTracks.length;b++)EC(this.o,this.A.captionTracks[b]);a()};function KC(a,b){var c=b.H,d={};if(a.C||b.C)d.fmt=a.C||"srv"+b.C;b.o&&(d.tlang=b.o.languageCode);return yj(c,d)}f.Pd=function(){return this.A?this.A.Bi:null};
f.xl=function(){return this.A?this.A.ml:null};f.P=function(){this.j&&this.j.abort();JC.K.P.call(this)};function LC(){this.H=1;this.A=20971520;this.o=8388608;this.G=NaN;this.j=5242880;this.ya=NaN;this.J=2;this.R=25;this.F=2097152;this.C=!1;this.B=1800;this.D=Kt.auto;this.S=!0;this.liveChunkReadahead=3;this.O=os("xboxone");this.I=0;this.Ga=this.V=this.Y=this.U=this.N=!1};function MC(){this.pa=[]}MC.prototype.contains=function(a){a=xb(this.pa,a);return 0<=a||0>a&&1==(-a-1)%2};MC.prototype.length=function(){return this.pa.length/2};function NC(a,b){Q.call(this);this.ca=b;this.F=new MC;this.B=!0;this.G=this.j=this.C=this.D=this.o=null;this.A=0}z(NC,Q);NC.prototype.P=function(){Wf(this.A);this.A=0;this.B=!0;this.j&&this.j.abort()};NC.prototype.resume=function(){this.B=!1;Wf(this.A);this.seek(this.ca.getCurrentTime());OC(this)};NC.prototype.seek=function(a){this.o=ab(this.G.Ii(a).j)};function PC(a,b){a.D=b}
function QC(a){var b;if(b=!a.B&&null!==a.o)b=a.o,b=b.j.Ah(b);return b&&!a.j&&!(a.o&&30<a.o.startTime-a.ca.getCurrentTime())}
function RC(a){var b;b=a.o;b=SC(b.j,b);if(!a.F.contains(b.j[0].B)){var c=TC(UC(b));a.j=Gj(c,{format:"RAW",Wb:x(a.H,a),withCredentials:!0});a.C=b;var c=a.F,d=a.C.j[0].B,e=xb(c.pa,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.pa[e-1]&&e<c.pa.length&&1==c.pa[e]-d?(pb(c.pa,e),pb(c.pa,e-1)):0<e&&1==d-c.pa[e-1]?c.pa[e-1]=d:e<c.pa.length&&1==c.pa[e]-d?c.pa[e]=d:(ub(c.pa,e,0,d),ub(c.pa,e+1,0,d)))}a.o=ab(b.j)}
NC.prototype.H=function(a){null==a.responseText||400<=a.status||this.B||null===this.D||(a=new BC(a.responseText,1E3*this.C.j[0].startTime),this.D(a));this.j=this.C=null};function OC(a){a.A=Vf(x(function(){QC(this)&&RC(this)},a),1E3);QC(a)&&RC(a)};function VC(a,b){HC.call(this);this.A=a;this.j=new NC(new LC,b)}z(VC,HC);f=VC.prototype;f.um=function(a,b){PC(this.j,function(c){b(c,a)});this.j.G=this.A.j[a.j];this.j.resume()};f.wm=function(a){EC(this.o,new Ft({format:1,languageCode:"en",languageName:"English",name:"",is_servable:!0,is_default:!0,is_translateable:!1}));a()};f.seek=function(a){this.j.seek(a)};f.mn=function(){var a=this.j;Wf(a.A);a.A=0;a.B=!0};f.P=function(){this.j.dispose();VC.K.P.call(this)};function WC(a,b){SB.call(this,a,b);this.Sa.style.display="block";this.Sa.style.padding="0";this.oc=[];var c=this.Sa;oh(c,"captions-text");N(c,"caption-painton-text-rows")}z(WC,SB);f=WC.prototype;f.type=1;f.ut="";f.jn="";f.mh=!1;f.Tb=null;f.oc=null;f.Hi=function(){return this.oc[0]?this.oc[0].offsetHeight:0};function XC(a){return a.oc.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.$d=function(){0!=this.id&&(Ug(this.Ja,"100%"),Ug(this.Ja,this.mh?XC(this):this.Tb.width));var a=Math.round(this.Ea.Dd*this.Hi());this.Ja.style.maxHeight=a+"px";TB(this);Pw(this.Ja,this.Ea.isVisible)};
f.be=function(a){this.oi();a=VB(a);this.mh||(this.xg=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"});e.style.backgroundColor=this.jn;d.appendChild(e);e.innerHTML=a[b];this.mh||(this.Sa.style.height=this.Tb.height+"px",this.Sa.style.width=this.Tb.width+"px",d.style.position="absolute",d.style.top=this.Tb.Gr[b]+"px",d.style.left=this.Tb.Er[b]+"px");this.Sa.appendChild(d);this.oc.push(e)}this.$d()};
f.oi=function(){for(var a=0,b=this.oc.length;a<b;a++){var c=ne(this.oc[a],"caption-row-holder");Wd(c)}this.oc=[]};f.Ed=function(a){WC.K.Ed.call(this,a);this.jn=this.Sa.style.backgroundColor;this.Sa.style.backgroundColor="";a=0;for(var b=this.oc.length;a<b;a++)this.oc[a].style.backgroundColor=this.jn};function YC(a,b){SB.call(this,a,b);this.Dc=[];this.Md=[];this.Qb=[];this.Xf=new tn(433);this.Xf.stop();P(this.Xf,"tick",x(this.uB,this))}z(YC,SB);f=YC.prototype;f.type=2;f.mz=32;f.Qb=null;f.Ld=0;f.Md=null;f.Xf=null;f.$d=function(){Ug(this.Ja,"100%");var a=this.Ja.offsetWidth,a=Math.min(ZC(this),a);Ug(this.Ja,a+"px");Ug(this.ph,"100%");this.Sa.style.whiteSpace="nowrap";TB(this);Pw(this.Ja,this.Ea.isVisible)};
f.Rr=function(a){var b=a.length;if(0>=b)this.oi();else{for(var c=0;c<b&&0<=this.Dc.indexOf(a[c]);)c++;this.Dc=this.Dc.concat(a.slice(c));$C(this)}};f.oi=function(){this.Dc=[];this.Qb=[];this.Ld=0;this.Qb=[];this.Md=[];aD(this)};
function $C(a){if(!bD(a))if(a.Ld>=a.Dc.length)aD(a);else{var b=a.Qb.length-1;0>b&&(a.Md.push(0),a.Ld=0,a.Qb.push(""),b=0);for(var c=a.Dc.length,d=a.Ld;d<c;d++){var e=a.Dc[d];if("\n"==e.j){a.Ld++;a.Md[b]++;break}if(e.A||0==a.Qb[b].length)a.Qb[b]+=e.j,a.Ld++,a.Md[b]++;else break}aD(a);d<c&&!bD(a)&&(b=a.Hi(),N(a.Sa,"caption-rollup"),a.Ja.style.overflow="hidden",a.Sa.style.top=-b+"px",a.Xf.start())}}function bD(a){return a.Xf.enabled||mh(a.Sa,"caption-rollup")}
f.uB=function(){this.Ja.style.overflow="visible";this.Sa.style.top=0;this.Xf.stop();oh(this.Sa,"caption-rollup");this.Qb.push("");this.Md.push(0);$C(this)};function aD(a){if(!bD(a)){for(;a.Qb.length<a.Ea.Dd;)a.Qb.unshift(""),a.Md.unshift(0);for(;a.Qb.length>a.Ea.Dd;){a.Qb.shift();var b=a.Md.shift();0<b&&(a.Ld-=b,a.Dc.splice(0,b))}a.be(a.Qb.join("\n"))}}
function ZC(a){a.Ub.style.fontFamily=a.Sa.style.fontFamily;a.Ub.style.fontSize=a.Sa.style.fontSize;a.Sa.appendChild(a.Ub);a.Ub.innerHTML="\u2014";var b=a.Ub.offsetWidth;a.Ub.innerHTML="&nbsp;";b=2*a.Ub.offsetWidth+b*a.mz;a.Sa.removeChild(a.Ub);return b};function cD(a,b,c,d){HC.call(this,d);c||(c=vj(a).hl||"",c=c.split("_").join("-"));this.A=yj(a,{hl:c});this.C=b;this.D={};this.j=null}z(cD,HC);cD.prototype.Ko=function(){for(var a=[],b=DC(this.o,void 0),c=0;c<b.length;c++){var d=b[c],e=dD(this,d),e={kind:"subtitles",label:d.B,srclang:d.j,src:e};d.isDefault&&(e["default"]=1);a.push(I("track",e))}return a};
cD.prototype.um=function(a,b){var c=dD(this,a),d=x(function(c){this.j=null;c=new BC(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Gj(c,{format:"RAW",jb:d,withCredentials:!0});GC(this.o,a)};
cD.prototype.wm=function(a,b,c){var d=this.A;b={type:"list",tlangs:1,v:this.C,fmts:Number(b||!1),vssids:1};this.Qp&&(b.asrs=1);d=yj(d,b);b=x(function(b){this.j=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.o,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"),C=h[l].getAttribute("lang_translated"),V=h[l].getAttribute("name"),T=h[l].getAttribute("kind"),ia=h[l].getAttribute("id"),Ba="true"==h[l].getAttribute("lang_default"),
Le="true"==h[l].getAttribute("cantran"),bh=h[l].getAttribute("vss_id"),p=new Ft({formats:p,format:r,languageCode:t,languageName:C,name:V,kind:T,id:ia,is_servable:!0,is_default:Ba,is_translateable:Le,vss_id:bh});EC(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.D[k.languageCode]=k.languageName,this.B.push(new Et(k))}a()},this);this.j&&this.j.abort();this.j=Gj(d,{format:"RAW",jb:b,withCredentials:!0})};function dD(a,b){var c=a.A,d={v:a.C,type:"track",lang:b.j,name:b.B,kind:b.A,fmt:b.C};b.o&&(d.tlang=b.o.languageCode);return c=yj(c,d)}cD.prototype.P=function(){this.j&&this.j.abort();cD.K.P.call(this)};function eD(a){Ys.call(this,a);Yf({YTP_TRANSLATE_MENU_ITEM:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_CONTRIBUTE_MENU_ITEM:"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_TRANSLATE_DIALOG_TITLE:"\u041f\u0435\u0440\u0435\u0432\u043e\u0434\u0447\u0438\u043a...",YTP_ASR_SETTINGS_LABEL:"\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u0438\u0442\u0440\u044b",
YTP_LANGUAGE_OFF:"\u0412\u044b\u043a\u043b.",YTP_FONT_FAMILY:"\u0421\u0435\u043c\u0435\u0439\u0441\u0442\u0432\u043e \u0448\u0440\u0438\u0444\u0442\u043e\u0432",YTP_FONT_SIZE:"\u0420\u0430\u0437\u043c\u0435\u0440 \u0448\u0440\u0438\u0444\u0442\u0430",YTP_FONT_COLOR:"\u0426\u0432\u0435\u0442 \u0448\u0440\u0438\u0444\u0442\u0430",YTP_FONT_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0448\u0440\u0438\u0444\u0442\u0430",YTP_BACKGROUND_COLOR:"\u0426\u0432\u0435\u0442 \u0444\u043e\u043d\u0430",
YTP_BACKGROUND_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0444\u043e\u043d\u0430",YTP_WINDOW_COLOR:"\u0426\u0432\u0435\u0442 \u043e\u043a\u043d\u0430",YTP_WINDOW_OPACITY:"\u041f\u0440\u043e\u0437\u0440\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u043e\u043a\u043d\u0430",YTP_COLOR_WHITE:"\u0411\u0435\u043b\u044b\u0439",YTP_COLOR_YELLOW:"\u0416\u0435\u043b\u0442\u044b\u0439",YTP_COLOR_GREEN:"\u0417\u0435\u043b\u0435\u043d\u044b\u0439",YTP_COLOR_CYAN:"\u0413\u043e\u043b\u0443\u0431\u043e\u0439",
YTP_COLOR_BLUE:"\u0421\u0438\u043d\u0438\u0439",YTP_COLOR_MAGENTA:"\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439",YTP_COLOR_RED:"\u041a\u0440\u0430\u0441\u043d\u044b\u0439",YTP_COLOR_BLACK:"\u0427\u0435\u0440\u043d\u044b\u0439",YTP_FONT_FAMILY_MONO_SERIF:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438",YTP_FONT_FAMILY_PROP_SERIF:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441 \u0437\u0430\u0441\u0435\u0447\u043a\u0430\u043c\u0438",
YTP_FONT_FAMILY_MONO_SANS:"\u041c\u043e\u043d\u043e\u0448\u0438\u0440\u0438\u043d\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a",YTP_FONT_FAMILY_PROP_SANS:"\u041f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0431\u0435\u0437 \u0437\u0430\u0441\u0435\u0447\u0435\u043a",YTP_FONT_FAMILY_CASUAL:"\u041e\u0431\u044b\u0447\u043d\u044b\u0439",YTP_FONT_FAMILY_CURSIVE:"\u041a\u0443\u0440\u0441\u0438\u0432",YTP_FONT_FAMILY_SMALL_CAPS:"\u041c\u0430\u043b\u044b\u0435 \u043f\u0440\u043e\u043f\u0438\u0441\u043d\u044b\u0435",
YTP_CHAR_EDGE_STYLE:"\u0421\u0442\u0438\u043b\u044c \u043a\u043e\u043d\u0442\u0443\u0440\u0430 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432",YTP_EDGE_STYLE_NONE:"\u0411\u0435\u0437 \u043a\u043e\u043d\u0442\u0443\u0440\u0430",YTP_EDGE_STYLE_RAISED:"\u041f\u0440\u0438\u043f\u043e\u0434\u043d\u044f\u0442\u044b\u0439",YTP_EDGE_STYLE_DEPRESSED:"\u0423\u0442\u043e\u043f\u043b\u0435\u043d\u043d\u044b\u0439",YTP_EDGE_STYLE_OUTLINE:"\u0413\u0440\u0430\u043d\u0438\u0446\u044b",YTP_EDGE_STYLE_DROP_SHADOW:"\u0421 \u0442\u0435\u043d\u044c\u044e",
YTP_CLICK_FOR_SETTINGS:"\u0414\u043b\u044f \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043d\u0430 \u0437\u043d\u0430\u0447\u043e\u043a $GEAR_ICON"});this.gi=!0;this.ma=this.V=this.ua=!1;this.Fa=new Kv(this);this.G=a.W();this.C=null;this.O=a.T.A;this.na=this.ga=null;this.da=[];this.N={};this.Z={};this.sa=this.Ba=this.H=this.Aa=!1;this.Y=new SB(99,fB);this.B=this.A=this.F=null;this.Da=!1;this.I=this.J=0;this.U=new tB(nt(this));R(this,this.U);this.U.M("click",
this.oz,this);this.oa=this.xa+"-mdx";this.ta=new PB(nt(this));R(this,this.ta);N(this.ta.Q(),"ytp-mdx-settings-button");this.ta.M("click",this.ZE,this);this.D=new LB(nt(this),x(this.zm,this),x(this.Zp,this),x(this.$C,this),x(this.aD,this),x(this.wz,this));this.R=new wB(nt(this));R(this,this.R);this.R.M("change",x(this.fe,this,!0));this.R.M("cancel",this.qy,this);this.R.M("select",this.Zq,this);this.aa=new OB(nt(this));R(this,this.aa);this.aa.M("change",this.RB,this);this.aa.M("cancel",this.Kg,this);
this.subscribe("onResize",x(this.Dq,this));this.subscribe("onBackgroundChange",x(this.OC,this));this.subscribe("onTextOpacityChange",x(this.PC,this));this.subscribe("onWindowOpacityChange",x(this.QC,this));this.subscribe("onFontSizeIncrease",x(this.CA,this));this.subscribe("onFontSizeDecrease",x(this.BA,this));this.subscribe("onCaptionsToggle",x(this.LB,this));this.subscribe("onPlaybackAudioChange",x(this.Oz,this))}z(eD,Ys);eD.prototype.xa="captions";eD.prototype.Bc="cc";eD.prototype.an="subtitlesModuleData";
var fD={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function gD(a){return"3"!=a.G.o?!1:!!a.O.o.textTracks}function hD(a,b,c,d,e){w(a.o[b])&&(a.o[c]=d.indexOf(a.o[b]),-1==a.o[c]&&(a.o[c]=e),delete a.o[b])}f=eD.prototype;
f.Na=function(){eD.K.Na.call(this);this.C=this.j.getVideoData();-1==gB.indexOf(this.G.da)&&N(this.j.La(),"cc-international");this.o=Yb(fD);qa(this.o,gt(this,"display-settings"));hD(this,"fontFamilyOption","fontFamily",$A,fD.fontFamily);hD(this,"charEdgeStyle","charEdgeStyle",aB,fD.charEdgeStyle);AB(this.R,this.o);this.na=new Y(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.na.ea(this.j.La());this.ga=this.na.Q();gD(this)||(ot(this,this.xa,this.U),iD(this));(this.C.captionTracks.length&&
jD(this.j.T,1).Bi||kD(this,!0))&&this.load()};f.destroy=function(){this.na.detach();this.na.dispose();this.ga=null;rt(this,this.D);pt(this,this.xa);eD.K.destroy.call(this)};function kD(a,b){if(b&&a.C.captionTracks.length){var c=jD(a.j.T,1).Ao;if(2==c||3==c)return!0}if(1==a.G.C.cc_load_policy||1==a.C.zo||"alwayson"==a.C.Ec("yt:cc")||gD(a))return!0;c=gt(a,"module-enabled");return null!=c?!!c:"on"==a.C.Ec("yt:cc")}
function lD(a){a.B&&a.B==a.A.Pd()&&mD(a);a.A.wm(x(a.lr,a),!0,gD(a)?"vtt":void 0,jD(a.j.T,1))}
f.load=function(){this.sa="alwayson"==this.C.Ec("yt:cc");this.Ba="1"==this.C.B.cc_auto_caps||"1"==this.G.C.cc_auto_caps;this.D.F=this.C.Da;eD.K.load.call(this);this.ua=!0;if(this.C.Qa)this.A=new VC(this.C.o,this.j),this.subscribe("seekto",this.qt,this);else{var a=this.C.B.cc_lang_pref||this.G.C.cc_lang_pref||this.C.Ec("yt:cc_default_lang")||this.G.da,a=a&&a.split("_").join("-");this.C.captionTracks.length?this.A=new JC(this.C):this.A=new cD(this.C.ki,this.C.videoId,a,this.C.ji)}lD(this)};
f.ZE=function(){this.loaded||this.load()};f.unload=function(){this.Yb&&(pt(this,this.oa),this.D.A=null,nD(this,!1),this.zj("control_subtitles_set_track"));if(gD(this)){var a;a=Gd("track",void 0,void 0);for(var b=0;b<a.length;b++)Wd(a[b])}else oD(this,!1),mD(this),this.qa("seekto",this.qt,this),this.A.dispose(),this.A=null,this.Kg();this.H=this.ma=this.V=this.ua=!1;eD.K.unload.call(this)};f.Pa=function(){};
f.lr=function(){this.ua=!1;if(gD(this))for(var a=this.O.o,b=this.A.Ko(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(a=this.aa,b=this.A.B,HB(a.A,b),KB(a.A,1E3),nv(a.A.template,"tabindex",1E3),Vz(a.o.j,1001),b.length?a.j(b[0]):a.j(null),c=this.H||kD(this,!this.ma),b=DC(this.A.o,!0),0<b.length){this.Pa("Caption track list loaded, found "+b.length+" tracks.");this.ma=!0;MB(this.D,b);a=this.B&&-1!=b.indexOf(this.B);if(c&&!a)if(c=this.A.xl(),!c&&this.H&&(c=b[0]),c)this.Aa=!0,pD(this,c),a=!0;else if(this.V||
qD(this),b=this.A.o.A,b.length&&(b=b[0].toString(),this.H||this.Ba))this.Zp(b),a=!0;this.L("publish_external_event","onCaptionsTrackListChanged");a||rD(this)}else this.A.Pd()?rD(this):(this.Pa("No captions found."),a=this.j,(b=jr(a.T.F,this.xa))&&sD(a.T.F,b))};function qD(a){a.V=!0;gD(a)||(a.fe(),a.Dq())}
f.QB=function(a,b){this.Aa&&(this.Aa=!1,this.L("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.B||!b.equals(this.B))){mD(this);this.B=b;this.Da=lc.test(b.j);var c={trackName:b.B,trackKind:b.A};b.o?(c.trackLangCode=b.o.languageCode,c.fromLangCode=b.j):c.trackLangCode=b.j;this.log(c);if(b!=this.A.Pd()){this.H&&(c=Ht(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=Zf("YTP_CLICK_FOR_SETTINGS",{GEAR_ICON:'<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="15px" height="15px" viewBox="0 0 15 15"><path fill-rule="evenodd" clip-rule="evenodd" d="M9.25,5.7C8.783,5.233,8.2,5,7.5,5S6.2,5.233,5.7,5.7C5.233,6.2,5,6.8,5,7.5s0.233,1.283,0.7,1.75C6.2,9.75,6.8,10,7.5,10s1.283-0.25,1.75-0.75C9.75,8.783,10,8.2,10,7.5S9.75,6.2,9.25,5.7z M8.75,2.15c0.6,0.1,1.15,0.317,1.65,0.65l1.5-1.5l1.75,1.75l-1.5,1.5c0.333,0.534,0.583,1.1,0.75,1.7H15v2.5h-2.1c-0.133,0.6-0.367,1.15-0.7,1.65l1.5,1.5l-1.75,1.75l-1.5-1.5c-0.534,0.333-1.1,0.583-1.7,0.75V15h-2.5v-2.1c-0.6-0.167-1.167-0.417-1.7-0.75l-1.5,1.5L1.3,11.9l1.5-1.5C2.467,9.9,2.25,9.35,2.15,8.75H0v-2.5h2.15c0.133-0.6,0.367-1.167,0.7-1.7l-1.5-1.5L3.1,1.3l1.5,1.5c0.5-0.333,1.05-0.55,1.65-0.65V0h2.5V2.15z"/></svg>'}),
this.ga.appendChild(this.Y.Ja),this.Y.be(c),this.Y.Ed(this.o,this.O.sb()),this.Y.$d(),this.I||(this.I=L(x(this.yr,this),2E3)));this.L("publish_external_event","captionschanged",Gt(b));oB(this.U);var c=this.D,d=!this.sa&&0<this.A.B.length;c.D=d;JB(c.j,!d);NB(this.D,b.toString());ht(this,"module-enabled",!0);this.L("vss_segment")}}this.V||qD(this);Zs(this,a.o.concat(a.j))};function rD(a){a.A.Pd()&&pD(a,a.A.Pd())}f.Ic=function(a){this.da.push(a);this.J||(this.J=L(x(this.Vj,this),0))};
f.Zc=function(a){ob(this.da,a);this.J||(this.J=L(x(this.Vj,this),0))};
f.GC=function(a){if(this.B)if(a instanceof dC){var b=this.N[a.id];qa(a.params,this.o);eC(a);b&&b.type!=fC(a)&&(Wd(b.Ja),delete this.N[a.id],b=null);if(!b){var b=this.N,c=a.id,d;i:{d=a.id;var e=a.params;switch(fC(a)){case 1:d=new WC(d,e);break i;case 2:d=new YC(d,e);break i;default:d=new SB(d,e)}}b=b[c]=d;c=b.Ja;O(c,"captions-asr","asr"==this.B.A);null!=a.params.cg&&(a.params.cg=this.Da?1:0);this.ga.appendChild(c)}b.Ed(a.params,this.O.sb());if(1==fC(a)){b.ut=a.j;b.Tb={};b.mh=!0;b.be(b.ut);b.Tb.Dd=
b.oc.length;b.Tb.width=b.Ja.offsetWidth;b.Tb.height=b.Ja.offsetHeight;b.Tb.Er=[];b.Tb.Gr=[];for(a=0;a<b.Tb.Dd;a++)b.Tb.Gr.push(b.oc[a].offsetTop),b.Tb.Er.push(b.oc[a].offsetLeft);b.mh=!1;b.be(b.xg)}}else b=a.o,this.Z[b]||(this.Z[b]=[]),this.Z[b].push(a)};f.Dq=function(){this.V&&(this.fe(),Hb(this.N,function(a){a.$d()},this))};
function tD(a){var b=[];Hb(a.N,function(a){a instanceof WC&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Ea.ee-a.Ea.ee});var c=uD(a.O).height,d=b[0].Ea.ee;D(b,function(a){a.Ea.ee=d;var b=Math.round(a.Ea.Dd*a.Hi());d-=Math.round(b/c*100);a.$d()},a)}}f.yr=function(){this.I=0;Wd(this.Y.Ja)};
f.Vj=function(){this.J=0;this.V&&(Vb(this.Z),this.da.sort(Qs),D(this.da,this.GC,this),Hb(this.N,function(a,b){this.Z[b]?a.Rr(this.Z[b]):(Wd(a.Ja),delete this.N[b])},this),tD(this),this.F&&this.F.$d(),this.Pa("Refreshing caption display..."))};function vD(a,b,c){if(c&&c.length){for(var d=a.o[b],e=0,g=0;g<c.length;g++)if(d==c[g].option){e=(g+1)%c.length;break}a.o[b]=c[e].option;a.fe(!0)}}f.OC=function(){vD(this,"backgroundOpacity",iB)};f.PC=function(){vD(this,"textOpacity",jB)};
f.QC=function(){vD(this,"windowOpacity",iB)};f.BA=function(){wD(this,-1)};f.CA=function(){wD(this,1)};function wD(a,b){var c=a.o.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.o.fontSizeIncrement=c;a.fe()}function mD(a){if(a.B){a.B=null;at(a);a.da=[];a.B=null;a.Vj();pB(a.U);a.D.off();var b=a.D;b.D=!1;JB(b.j,!0);a.A.mn()}}
function pD(a,b,c){!b||a.B&&b.equals(a.B)||(null!=c&&(a.H=c),a.Yb?(a.B=b,nD(a,!0),a.zj("control_subtitles_set_track",Gt(b)),a.V||qD(a)):(a.A.um(b,x(a.QB,a)),a.ua=!0,NB(a.D,b.toString())))}f.Zp=function(a,b){var c=IC(this.A,a);pD(this,c,b);st(this)};f.aD=function(){this.sa||(dt(this,this.aa),st(this))};f.RB=function(){if(!this.sa){this.Kg();var a=this.aa.C;if(a){a=It(this.B,a);if(EC(this.A.o,a)){var b=a.toString();MB(this.D,DC(this.A.o,!0));NB(this.D,b)}pD(this,a,!0)}}};
f.qy=function(){this.Kg();this.Yb&&this.B&&this.zj("control_subtitles_set_track",Gt(this.B))};f.Zq=function(){delete this.o;this.o=Yb(fD);AB(this.R,this.o);ht(this,"display-settings",this.o);this.fe()};f.fe=function(a){var b=this.O.sb();Hb(this.N,function(a){a.Ed(this.o,b)},this);this.F&&this.F.Ed(this.o,b);this.Y.Ed(this.o,b);this.Vj();n(a)&&!a||ht(this,"display-settings",this.o)};f.oz=function(){this.H=!0;xD(this)};function xD(a){a.loaded?a.B&&a.B!=a.A.Pd()?a.zm():a.lr():a.load()}
f.zm=function(){this.loaded&&(this.I&&(M(this.I),this.yr()),ht(this,"module-enabled",!1),this.L("vss_segment"),mD(this),st(this),this.H=!1,this.Yb?(nD(this,!1),this.zj("control_subtitles_set_track")):this.L("publish_external_event","captionschanged",{}),rD(this))};f.$C=function(){dt(this,this.R);st(this)};f.wz=function(){et(this,this.G.B+"timedtext_video?v="+this.C.videoId);st(this)};function yD(a){return eD.prototype.Ha(a)?new eD(a):null}
f.jg=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.o.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.fe()),this.o.fontSizeIncrement;case "reload":b&&lD(this);break;case "stickyLoading":this.G.Hb()&&ht(this,"module-enabled",!!b);break;case "track":if(b){if(!ja(b))break;if(Ub(b)){this.zm();break}for(var c,d=DC(this.A.o,!0),e=0;e<d.length;e++){var g=d[e];g.j!=b.languageCode||c&&g.D!=b.languageName||(c=b.translationLanguage?It(g,b.translationLanguage):g)}c&&(pD(this,c,!0),NB(this.D,
c.toString()))}else return this.B&&this.B!=this.A.Pd()?Gt(this.B):{};return"";case "tracklist":return this.ma?E(DC(this.A.o,b&&b.includeAsr),function(a){return Gt(a)}):[];case "translationLanguages":return this.ma?this.A.B:[];case "displaySettings":return b&&ja(b)&&zD(this,b),c=Yb(this.o),c.fontFamilyOption=$A[c.fontFamily],c.charEdgeStyle=aB[c.charEdgeStyle],c;case "sampleSubtitles":oD(this,!!b)}};
function oD(a,b){if(b&&!a.F){a.F=new SB(98,eB);a.ga.appendChild(a.F.Ja);var c=a.F,d=Zf("YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.be(d));a.F.Ed(a.o,a.O.sb())}else!b&&a.F&&(Wd(a.F.Ja),a.F=null)}f.kg=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.G.Hb()&&a.push("stickyLoading");return a};f.fl=function(a,b){return a&&w(a)&&ZA.test(a)?a:b};
f.ym=function(a,b){return ga(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.mw=function(a,b){if(a&&w(a)){var c=aB.indexOf(a);return-1!=c?c:b}return b};f.Kw=function(a,b){if(a&&w(a)){var c=$A.indexOf(a);return-1!=c?c:b}return b};f.Lw=function(a,b){return ga(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var AD=null;
function zD(a,b){if(b)if(Xb(b,"reset"))a.Zq();else{if(!AD){var c={};c.color=a.fl;c.textOpacity=a.ym;c.background=a.fl;c.backgroundOpacity=a.ym;c.windowColor=a.fl;c.windowOpacity=a.ym;c.charEdgeStyle=a.mw;c.fontFamilyOption=a.Kw;c.fontSizeIncrement=a.Lw;AD=c}var c=AD,d;for(d in c)switch(d){case "fontFamilyOption":a.o.fontFamily=c[d](b[d],a.o.fontFamily);break;default:a.o[d]=c[d](b[d],a.o[d])}a.fe(BD(a.G))}}f=eD.prototype;
f.Ha=function(a){if("lb3"==a.W().j)return!1;a=a.getVideoData();var b;if(b=a.Qa)b=a.o,b=!(!b||null==b.j.en);return!!(a.ki||a.captionTracks.length||b)};function iD(a){rt(a,a.D);a.Yb?(a.D.A=a.oa,ot(a,a.oa,a.ta)):(a.D.A=null,pt(a,a.oa));qt(a,a.D)}f.nj=function(a){iD(this);a?mD(this):this.loaded&&(this.unload(),this.load())};function nD(a,b){var c={};a.B&&(c=Gt(a.B));a.L("publish_external_event","captionschanged",c);b?(oB(a.U),NB(a.D,a.B.toString())):(pB(a.U),a.D.off())}f.qt=function(){this.A.seek(this.j.getCurrentTime())};
f.Bh=function(){var a=this.B;return a?{cc:a.F}:null};f.LB=function(){this.H=!0;xD(this)};f.Oz=function(){this.C.captionTracks.length&&lD(this)};f.P=function(){this.Fa.removeAll();this.J&&(M(this.J),this.J=0);this.I&&(Wf(this.I),this.I=0);eD.K.P.call(this)};function CD(){if(void 0==bu&&(bu=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);bu=!0}catch(b){}if(bu){var a=Array(16),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=y(),e=0;e<d%23;e++)a[c]=Math.random();a[c]=Math.floor(256*Math.random())}return a}
function DD(){for(var a=CD(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function ED(){return E(CD(),function(a){return(a&15).toString(16)}).join("")};function FD(a){Ys.call(this,a);this.xa="ypc_license_checker";this.Bc="ypc_license";this.D=!1;this.C=0;this.B=!1;this.o=NaN;this.F=ED();this.A=null}z(FD,Ys);
var GD={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 HD(a){return Ev(a.getVideoData(),"ypc_license_checker_module")}f=FD.prototype;f.Ha=function(){return HD(this.j)};f.Na=function(){FD.K.Na.call(this);var a=new Ms(1E3,2147483646,{priority:0});Zs(this,[a]);this.subscribe("heartbeatparams",this.fF,this);this.subscribe("onStateChange",this.gF,this)};function ID(a){return HD(a)?new FD(a):null}f.destroy=function(){JD(this);FD.K.destroy.call(this)};f.Ic=function(){this.D=!0;KD(this,2E3)};f.fF=function(a){this.A=a;KD(this,2E3)};
f.gF=function(a){X(a.state,2)||X(a.state,64)?JD(this):(X(a.state,1)||X(a.state,8))&&KD(this,2E3)};function LD(a){var b=a.j.getVideoData();return MD(b)?!!a.A:!!b.heartbeatToken||!!b.bb}function KD(a,b){if(!a.o&&a.D&&LD(a)&&(MD(a.j.getVideoData())||!BD(a.j.W()))){var c=b;void 0==c&&(c=a.B?(c=a.j.getVideoData().Gd)?c:a.A?1E3*a.A.interval:6E4:1E3);a.o=L(x(a.RC,a),c)}}
f.RC=function(){var a,b,c;c=this.j.W().B;var d=this.j.getVideoData();LD(this)?(MD(d)?(b="GET",a={},c=Ve(this.A.url,{request_id:ED()}),d.G&&(c=Ve(c,{vvt:d.G})),d.C&&(c=Ve(c,{access_token:d.C}))):d.heartbeatToken?(b="GET",a={},c=Ve(c+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken}),d.G&&(c=Ve(c,{vvt:d.G})),d.C&&(c=Ve(c,{access_token:d.C}))):(b="POST",a={video_id:d.videoId,player_id:this.F,request_id:ED(),purchase_id:d.purchaseId,version:"4",player_time_seconds:this.j.getCurrentTime().toString(),
gid:d.Yh,ypc_token:d.bb},d.G&&(a.vvt=d.G),d.C&&(a.access_token=d.C),c+="ypc_license_server"),c=Ve(c,{cpn:d.clientPlaybackNonce}),Gj(c,{format:"RAW",method:b,Ib:a,timeout:3E4,jb:x(this.iz,this),onError:x(this.hz,this),Ue:x(this.jz,this),withCredentials:!0})):JD(this)};
f.iz=function(a){if(this.o){a=a.responseText;var b;i:if(b=a,this.j.getVideoData().heartbeatToken)b=lg(b),b="ok"==b.status?0:"stop"==b.status?1:-1;else{var c=b.match(ND);if(c){if("0"!=c[1]){b=1;break i}b=c[3]}b=b in GD?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?OD(this,"decode"):(this.C=0,this.o=NaN,1==b?(this.B=!1,b="YTP_ERROR_LICENSE",this.j.getVideoData().heartbeatToken?a=lg(a).reason||Zf(b):((c=a.match(ND))?(a=parseInt(c[1],10))&&(b=vt(a)):a in GD&&(b=GD[a]),a=Zf(b)),Fv(this.j.T.o,"heartbeat",
a,void 0)):(this.B=!0,KD(this)))}};f.hz=function(a){OD(this,"net-"+a.status)};f.jz=function(){OD(this,"timeout")};function OD(a,b){if(a.o){a.log({errorType:b});a.o=NaN;var c=++a.C,d=a.j.getVideoData().Hd;c>(d?d:a.A?a.A.j:5)?(c=Zf("YTP_ERROR_LICENSE"),Fv(a.j.T.o,"heartbeat",c,void 0)):KD(a)}}var ND=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function JD(a){a.C=0;a.o&&(M(a.o),a.o=NaN);a.B=!1};function PD(a){Y.call(this,a);this.V=new S;R(this,this.V)}z(PD,Y);PD.prototype.subscribe=function(a,b,c){return this.V.subscribe(a,b,c)};PD.prototype.qa=function(a,b,c){return this.V.qa(a,b,c)};PD.prototype.Pb=function(a){return this.V.Pb(a)};PD.prototype.L=function(a,b){return this.V.L.apply(this.V,arguments)};function QD(a,b,c){PD.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.j=a;this.Wa=b;this.F=!1}z(QD,PD);QD.prototype.Ch=function(){this.F=!0};QD.prototype.destroy=function(){this.F=!1};QD.prototype.rg=function(){return!1};function RD(){Y.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}z(RD,Y);function SD(){Y.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"]]])}z(SD,Y);function TD(a){PD.call(this,a);this.videoId=null}z(TD,PD);
TD.prototype.hf=function(a,b){this.videoId=a?a.id||a.video_id:"";O(this.element,"ytp-suggestion-set",!!this.videoId);var c=Yb(a);c.playlist_length=c.playlist_length||0;c.title=c.title||c.playlist_title;c.author=c.author||c.playlist_author;c.watch=Zf("YTP_WATCH_VIDEO_OR_PLAYLIST",{TITLE:c.title});c.duration=tv(a.length_seconds);c.episodic_title=c.title;c.episodic_index=parseInt(c.index,10)+1;c.episodic_length=c.playlist_length;this.template.update(c);if(c=a?a.id||a.video_id:""){var d,e=a.list?a.playlist_iurlhq:
a.iurlhq_webp||a.iurlhq,g=a.list?a.playlist_iurlmq:a.iurlmq_webp||a.iurlmq;b&&e?d=e:!b&&g?d=g:d=wA(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:c,b?"hqdefault.jpg":"mqdefault.jpg");nv(this.template,"background","background-image: url("+d+")");nv(this.template,"image",d)}};function UD(){var a=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Zf("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}}"]]];TD.call(this,a)}z(UD,TD);function VD(a,b,c){QD.call(this,a,b,"subscribecard-endscreen");this.B=new RD;R(this,this.B);this.C=new iv(["div","ytp-channel-curtain"]);R(this,this.C);this.A=new SD;R(this,this.A);(this.o=c?new UD:null)&&R(this,this.o);this.$()}z(VD,QD);
VD.prototype.Ch=function(){VD.K.Ch.call(this);Vd(this.Q());this.B.ea(this.Q());this.C.ea(this.Q());this.A.ea(this.Q());var a=this.j.getVideoData().videoId,b=this.G,c=this.j.W().mb,d=this.j.W().pageId;a&&(a={video_id:a,html5:1,page_subscribe:1},c&&(a.authuser=c),d&&(a.pageid=d),Gj("/get_video_metadata",{method:"GET",onError:v,jb:b,dg:a,context:this}))};
VD.prototype.G=function(a,b){if(this.F){var c=b.user_info,d=this.j.getVideoData();d&&(d.CK=c.external_id);d=c.channel_banner_url;cg(d)||(d="");var e=c.channel_logo_url||c.image_url;cg(e)||(e="");nv(this.B.template,"banner",d);nv(this.A.template,"image",e);nv(this.A.template,"author",c.channel_title||c.username);this.o&&b.watch_next&&(this.o.hf(b.watch_next),this.o.ea(this.Q()));c=c.subscription_button_html;this.A.template.j["html5-subscribe-button-container"].innerHTML=c?c:""}};function WD(a,b){return Wh&&XD(a,"947233","947250")||b&&YD(a,"947243")}function YD(a,b){return G(a.experiments.experimentIds,b)}function XD(a,b){return gb(vb(arguments,1),pa(G,a.experiments.experimentIds))};function ZD(a){var b;b=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Zf("YTP_AD_INTERRUPT_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Zf("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"]];Y.call(this,b);this.ca=a}z(ZD,Y);ZD.prototype.A=null;ZD.prototype.o=null;ZD.prototype.j=null;
function $D(a){if(!a.A&&(a.A=a.template.j["ad-container"],a.ca.W().D)){var b=YD(a.ca.W(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";N(a.A,b)}return a.A}function aE(a){a.j&&(a.ca.W().D?(oh(a.j,"ad-video"),bE(a.ca.T,a.j),a.j=null):(Wd(a.j),Bs(a.j)))}
function cE(a){if(!a.o){if(a.ca.W().bd){var b=Rd("button");N(b,"video-click-tracking");Ud(b,Zf("YTP_VISIT_ADVERTISERS_SITE"));var c=Rd("div");N(c,"video-click-tracking-container");c.appendChild(b);$D(a).appendChild(c)}else b=Rd("div"),nh(b,["video-click-tracking","ad-video"]),$D(a).appendChild(b);a.o=b}return a.o}ZD.prototype.P=function(){ZD.K.P.call(this);this.j&&(bE(this.ca.T,this.j),this.j=null);aE(this);Vd($D(this));Vd(cE(this));this.o=this.A=null;delete this.ca};
function dE(a){if(!a.j){var b;b=a.ca.T;if(b.j.D){var c=Lg(b.C),d=Wg(b.C);b.ga=new ug(c.x,c.y,d.width,d.height);eE(b.D);Cs(b.C,1);Bs(b.C);b=b.C}else b=fE.getTag(void 0);a.j=b;nh(a.j,["video-stream","ad-video"])}return a.j};function gE(a,b){Y.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.j=0;this.C=null}z(gE,Y);gE.prototype.F=function(a,b){M(this.j);this.context&&(this.j=qv(x(this.F,this,a,b),b),a.call(this,new Date-this.C))};gE.prototype.P=function(){M(this.j);this.context=null;gE.K.P.call(this)};function hE(a,b){gE.call(this,2*(a+2),2*(a+2));this.G=a;this.o=b;this.B=this.width/2;this.A=this.height/2}z(hE,gE);var iE=3*Math.PI/2,jE=2*Math.PI;function kE(a,b){var c;c=["span","videowall-still-info",["span","ytp-endscreen-upnext-content",["span","ytp-endscreen-upnext-header",Zf("YTP_PLAYLIST_UP_NEXT")],["span","ytp-endscreen-upnext-title","{{title}}"],["span","ytp-endscreen-upnext-author","{{author}}"],["span","ytp-endscreen-upnext-cancel"],["span","ytp-endscreen-upnext-paused",Zf("YTP_AUTOPLAY_PAUSED_2")]]];var d=["a","ytp-endscreen-upnext",{tabIndex:5E3,href:"{{linkurl}}","aria-label":"{{watch}}"}];d.push(["div","videowall-still-image",
{style:"{{background}}"}]);d.push(c);TD.call(this,d);this.ca=a;this.G=b;c=new Tz(a.T.A.B);R(this,c);c.M("click",this.zq,this);c.kb(Zf("YTP_AUTOPLAY_CANCEL"));c.ea(this.template.j["ytp-endscreen-upnext-cancel"]);Uz(c,"ytp-endscreen-upnext-cancel-button");Vz(c,5100);c.za(Zf("YTP_CANCEL"));c=new Tz(a.T.A.B);R(this,c);c.M("click",this.zq,this);c.ea(this.template.j["videowall-still-info"]);Uz(c,"ytp-endscreen-upnext-close");this.o=new hE(44,48);R(this,this.o);N(this.o.Q(),"ytp-endscreen-upnext-canvas");
this.o.ea(this.element);this.j=null;this.A=0;this.B=this.C=this.F=null}z(kE,TD);f=kE.prototype;f.hf=function(a,b){kE.K.hf.call(this,a,b);this.F=a.session_data?rj(a.session_data,"&"):null;this.C=a.endscreen_autoplay_session_data?rj(a.endscreen_autoplay_session_data,"&"):null;this.B=a.list;nv(this.template,"linkurl",lE(this.ca.W(),this.videoId,this.B))};
function mE(a){a.j||(Ki("a11y-announce",a.template.j["ytp-endscreen-upnext-header"].innerHTML+" "+a.template.j["ytp-endscreen-upnext-title"].innerHTML),a.A=y(),a.j=new Mv(a.Rn,50,a),a.Rn());oh(a.element,"ytp-endscreen-upnext-autoplay-paused")}
f.Rn=function(){var a=Math.min(y()-this.A,1E4),b=this.o,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.B,b.A,b.G+2,0,jE);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*b.o;b.context.save();b.context.fillStyle="#fff";b.context.translate(b.B-b.o/3,b.A);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(b.o/1.25,0);b.context.lineTo(0,-d/2);b.context.closePath();b.context.fill();b.context.restore();b.context.beginPath();
b.context.arc(b.B,b.A,b.G,iE,c*jE+iE,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();1E4<=a?this.select(!0):this.j&&this.j.start()};function nE(a){oE(a);a.A=y();a.Rn();N(a.element,"ytp-endscreen-upnext-autoplay-paused")}function oE(a){a.j&&(a.j.dispose(),a.j=null)}f.select=function(a){oE(this);pE(this.ca.T,this.videoId,a?this.C:this.F,this.B||void 0,void 0)};f.zq=function(a){Lh(a);this.ca.W().experiments.o&&this.G.log({cancelButtonClick:"1"});qE(this.ca.T,!0)};
f.P=function(){oE(this);kE.K.P.call(this)};function rE(a,b,c,d){Q.call(this);this.o=a;d||(sE(this,!0),a.$());this.F=c?0:b;this.D=!!c;this.j=null;this.B=!1;this.A=new Mv(this.C,0,this);R(this,this.A)}z(rE,Q);rE.prototype.$=function(){3!=this.j&&(1==this.j||2==this.j?(this.o.$(),this.j=null,this.A.stop()):this.o.D&&(sE(this,!0),this.j=3,this.D?this.C():this.A.start(this.F)))};
rE.prototype.C=function(){switch(this.j){case 1:if(this.o.va(),this.j=2,!this.D){this.A.start(10);break}case 2:sE(this,this.B);this.B?(this.j=3,this.A.start(this.F)):this.j=null;break;case 3:this.o.$();sE(this,!1);this.j=4;this.A.start(0);break;case 4:this.j=null}};function sE(a,b){var c=a.o.Q();b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")}rE.prototype.stop=function(){for(;null!=this.j&&4!=this.j;)this.A.stop(),this.C()};
rE.prototype.P=function(){this.o.ka()||this.o.Q().removeAttribute("aria-hidden");rE.K.P.call(this)};function tE(a,b){this.type=a||"";this.id=b||""}function uE(a){return new tE(a.substr(0,2),a.substr(2))}tE.prototype.toString=function(){return this.type+this.id};function vE(a){var b=[["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Zf("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"],Zf("YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Zf("YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]];TD.call(this,["a","videowall-still",{tabIndex:5E3,href:"{{linkurl}}","aria-label":"{{watch}}"},["div","videowall-still-image",{style:"{{background}}"}],["span","videowall-still-featured-label",
Zf("YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg",["span","videowall-still-info-content",["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"]]]]].concat(b));this.ca=a;this.o={};this.j=null;this.M("click",this.A);this.M("keypress",this.B)}z(vE,TD);
vE.prototype.hf=function(a,b){vE.K.hf.call(this,a,b);this.o=a.session_data?rj(a.session_data,"&"):null;this.j=a.list;nv(this.template,"linkurl",lE(this.ca.W(),this.videoId,this.j));var c=!1,d=!1,e=!1;"1"!=a.is_episodic?this.j&&"RD"==uE(this.j).type?e=!0:this.j&&(c=!0):d=!0;O(this.element,"videowall-still-featured",!!a.featured);O(this.element,"videowall-still-list",c);O(this.element,"videowall-still-episodic",d);O(this.element,"videowall-still-mix",e)};
vE.prototype.select=function(){pE(this.ca.T,this.videoId,this.o,this.j||void 0,void 0)};vE.prototype.A=function(a){!Mh(a)&&vv(a)&&(this.select(),Lh(a))};vE.prototype.B=function(a){switch(a.keyCode){case 13:case 32:Mh(a)||(this.select(),Lh(a))}};function wE(a,b,c){QD.call(this,a,b,"videowall-endscreen");this.S=c;this.C=[];this.B=this.o=null;this.G=!1;this.I=new Mv(pa(N,this.element,"ytp-animate-tiles"),0);R(this,this.I);this.H=new iv(["div","ytp-endscreen-content"]);R(this,this.H);this.H.ea(this.element);this.A=new kE(a,c);R(this,this.H);this.A.ea(this.Q());this.$()}z(wE,QD);wE.D=96;wE.C=54;wE.o=1;wE.j=2;f=wE.prototype;
f.Ch=function(){wE.K.Ch.call(this);var a=this.j.getVideoData();a&&(this.o=a.V);this.lg();this.Wa.subscribe("onResize",this.lg,this);this.Wa.subscribe("videodatachange",this.N,this);this.Wa.subscribe("autonavchange",this.J,this);this.Wa.subscribe("autonavcancel",this.O,this)};f.destroy=function(){this.Wa.qa("onResize",this.lg,this);this.Wa.qa("videodatachange",this.N,this);Ai(this.C);this.o=[];this.C=[];wE.K.destroy.call(this)};f.rg=function(){return 1!=this.j.getVideoData().ze};
f.va=function(){wE.K.va.call(this);this.I.start();(this.G||this.B&&this.B!=this.j.getVideoData().clientPlaybackNonce)&&qE(this.j.T,!1);var a=!this.B&&this.rg()&&xE(this.j.W());xE(this.j.W())&&this.j.W().experiments.o&&this.S.log({cancelButtonShow:a?"1":"0",state:this.rg()?"enabled":"disabled"});a?2==this.j.getVideoData().ze?mE(this.A):3==this.j.getVideoData().ze&&nE(this.A):qE(this.j.T,!0)};f.$=function(){wE.K.$.call(this);nE(this.A)};
f.lg=function(){if(this.o&&this.o.length){var a=this.element,b;i:{if(mh(this.j.La(),"ad-showing")&&(b=Hd("ad-container"))){b=Wg(b).height+20;break i}b=0}Dg(a,"marginBottom",b+"px");var c=Wg(this.element),d=wE.D,e=wE.C,g=c.width/c.height,h=d/e;b=a=0;for(var k=Math.max(c.width/d,2),l=Math.max(c.height/e,2),p=this.o.length,r=Math.pow(wE.j,2),t=p*r,C=yE(this,0,l,k),V=yE(this,1,l,k),t=t+(Math.pow(C,2)-r),t=t+(Math.pow(V,2)-r);0<t&&(a<k||b<l);){var T=a/wE.j,ia=b/wE.j,Ba=a<=k-wE.j&&t>=ia*r,Le=b<=l-wE.j&&
t>=T*r;if(T/ia*h>g&&Le)t-=T*r,b+=wE.j;else if(Ba)t-=ia*r,a+=wE.j;else if(Le)t-=T*r,b+=wE.j;else break}h=!1;k=wE.j+C;t>=3*r&&6>=p*r-t&&(b>=k||a>=k)&&V<=wE.j&&(h=!0);d*=a;e*=b;p=1;p=d/e<g?c.height/e:c.width/d;p=Math.min(p,wE.B);d*=p;e*=p;d*=Pc(c.width/d||1,1,wE.A);e*=Pc(c.height/e||1,1,wE.A);d=Math.floor(Math.min(c.width,d));e=Math.floor(Math.min(c.height,e));c=this.H.Q();Tg(c,d,e);Dg(c,{marginLeft:d/-2+"px",marginTop:e/-2+"px"});this.A.hf(this.o[0],!0);O(this.Q(),"ytp-endscreen-takeover",xE(this.j.W())&&
this.rg()&&!this.B);g=d+wE.o;p=e+wE.o;e=0;r=!1;for(t=0;t<a;t++)for(k=0;k<b;k++)T=V>wE.j&&1<=e&&!r?e+1:e,l=0,h&&t>=a-wE.j&&k>=b-wE.j?l=1:0==k%wE.j&&0==t%wE.j&&(k<C&&t<C?0==k&&0==t&&(l=C):V>wE.j&&k>=b-V&&t>=a-V?k==b-V&&t==a-V&&(r=!0,T=1,l=V):l=wE.j),0!=l&&(d=this.C[e],d||(d=new vE(this.j),this.C[e]=d,ia=d.Q(),c.appendChild(ia)),d.hf(this.o[T],2<l),T=Math.floor(p*k/b),ia=Math.floor(g*t/a),Ba=Math.floor(p*(k+l)/b)-T-wE.o,Le=Math.floor(g*(t+l)/a)-ia-wE.o,Jg(d.Q(),ia,T),Tg(d.Q(),Le,Ba),Dg(d.Q(),"transitionDelay",
(k+t)/50+"s"),O(d.Q(),"videowall-still-mini",1==l),e++);for(a=this.C.length-1;a>=e;a--)d=this.C[a],Wd(d.Q()),yi(d);this.C.length=e}};wE.B=1.42;wE.A=1.21;wE.prototype.N=function(){var a=this.j.getVideoData().V;this.o!=a&&(this.o=a,this.lg())};wE.prototype.J=function(a){1==a?(this.G=!1,this.B=this.j.getVideoData().clientPlaybackNonce,oE(this.A),this.D&&this.lg()):(this.G=!0,this.D&&xE(this.j.W())&&this.rg()&&!this.B&&(2==a?mE(this.A):3==a&&nE(this.A)))};
wE.prototype.O=function(a){a?this.J(1):(this.B=null,this.G=!1,this.lg())};function yE(a,b,c,d){return 0==b&&c>=3*wE.j&&d>=3*wE.j&&a.o.length&&1==a.o[0].episodic?2*wE.j:wE.j};function zE(a){Ys.call(this,a);Yf({});this.xa="endscreen";this.Bc="end";this.o=null;var b=a.W();AE(a)?this.o=new wE(this.j,this.S,this):b.V?(a=b.experiments.F,b=new VD(this.j,this.S,a),a&&P(b.o.Q(),"click",x(this.vC,this)),this.o=b):this.o=new QD(this.j,this.S);this.o.ea(this.j.La())}z(zE,Ys);function BE(a){return CE(a.W())&&1==a.Cf()}function AE(a){a=a.W();return a.ua&&!a.V}f=zE.prototype;f.Ha=function(a){return BE(a)};
f.Na=function(){zE.K.Na.call(this);DE(this);this.j.getVideoData().subscribe("dataupdated",this.nr,this)};f.destroy=function(){this.j.getVideoData().qa("dataupdated",this.nr,this);at(this);this.o.F&&this.o.destroy();zE.K.destroy.call(this)};f.load=function(){zE.K.load.call(this);this.o.va();if(this.j.W().V&&.01>Math.random()){var a=this.j.W().experiments.F;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){zE.K.unload.call(this);this.o.$()};
f.Ic=function(a){zE.K.Ic.call(this,a);var b=this.j.getVideoData(),c=!AE(this.j)||!(!b.V||!b.V.length);this.j.W();var b=Ev(b,"ypc_module"),d=EE(this.j.T);!c||b||d||(this.o.F||this.o.Ch(),"load"==a.getId()&&this.load())};f.Zc=function(a){"load"==a.getId()&&this.loaded&&this.unload();zE.K.Zc.call(this,a)};f.nr=function(){at(this);DE(this)};f.vC=function(a){var b=this.o.o.videoId,b=lE(this.j.W(),b,null);et(this,b,a.ctrlKey)};
function DE(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new Ms(b,2147483647,{id:"preload"}),c=new Ms(2147483647,2147483647,{id:"load",priority:6});Zs(a,[b,c])}function FE(a){return BE(a)?new zE(a):null};function GE(){Y.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}z(GE,Y);GE.prototype.Hj=function(a){nv(this.template,"index",a+1)};function HE(a){nB.call(this,a,"ytp-button-expand",Z("YTP_ST_EXPAND"),"ytp-button-collapse",Z("YTP_ST_COLLAPSE"));Vz(this,3050);this.element.setAttribute("aria-haspopup",!0);this.za([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Z("YTP_PLAYLIST")]])}z(HE,nB);function IE(a){Y.call(this,["div","ytp-playlist-tray-controller"]);this.j=new HE(a);this.j.ea(this.template.Q());R(this,this.j);this.o=new GE;this.o.ea(this.template.Q());R(this,this.o)}z(IE,Y);function JE(a,b){var c=a.Qd("default.jpg");Y.call(this,["div","ytp-playlist-tray-item",{tabIndex:3910,"aria-label":a.title,role:"menuitemradio"},["span","ytp-playlist-tray-item-index",b+1],["span","ytp-playlist-tray-item-now-playing","\u25b6"],["img","ytp-playlist-tray-item-thumbnail",{src:c}],["span","ytp-playlist-tray-item-title",a.title],["span","ytp-playlist-tray-item-author",a.author]]);this.j=b;this.M("keypress",this.o)}z(JE,Y);
JE.prototype.Hj=function(a){a=this.j==a;O(this.element,"ytp-playlist-tray-item-current",a);this.element.setAttribute("aria-checked",a)};JE.prototype.o=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.$b("click")};function KE(){PD.call(this,["div","ytp-playlist-tray-tray",{role:"menu"}]);this.j=null;this.o=[]}z(KE,PD);function LE(a,b){a.j&&a.j.qa("shuffle",a.A,a);a.j=b;a.j.subscribe("shuffle",a.A,a);a.A()}KE.prototype.A=function(){Ai(this.o);this.o=[];Vd(this.element);for(var a=0;a<=this.j.xc-1;++a){var b=xr(this.j,a);b&&(b=new JE(b,a),b.Hj(this.j.Xa),this.o.push(b),b.M("click",x(this.B,this,a)),b.ea(this.element))}};KE.prototype.B=function(a){this.L("playvideoat",a)};
KE.prototype.P=function(){Ai(this.o);this.o=[];Vd(this.element);KE.K.P.call(this)};function ME(a){Ys.call(this,a);var b=a.La();this.G=a.T.A.B;this.D=!1;this.A=this.B=null;this.F=Hd("ytp-button-playlist",b);P(this.F,"click",x(this.Jq,this));this.o=this.C=null}z(ME,Ys);f=ME.prototype;f.xa="playlist";
f.Na=function(){ME.K.Na.call(this);NE(this,this.j.Fd());this.C=new iv(["div",["ytp-playlist-tray-container","ytp-player-content"]]);this.C.ea(this.j.La());this.A=new KE;this.A.subscribe("playvideoat",this.qr,this);this.A.ea(this.C.Q(),0);this.o=new IE(this.G);this.o.ea(Hd("html5-title",void 0),0);this.o.j.M("click",this.Jq,this);this.subscribe("fullscreentoggled",this.kt,this);this.subscribe("videodatachange",this.lt,this);this.subscribe("clearvideooverlays",this.gs,this);this.Wj()};
f.Wj=function(){var a=this.j.Qs(),b=this.o.o;null!=a?b.va():b.$();this.o.o.Hj(a);a=this.j.Fd();nv(this.o.o.template,"length",a.xc)};f.destroy=function(){ME.K.destroy.call(this);NE(this,null);this.qa("fullscreentoggled",this.kt,this);this.qa("videodatachange",this.lt,this);this.qa("clearvideooverlays",this.gs,this);Wd(this.C.Q());this.A.dispose();this.A=null;this.C.dispose();this.C=null;Wd(this.o.Q());this.o.dispose();this.o=null};
f.load=function(){this.L("command_clear_video_overlays",!0);ME.K.load.call(this);this.D||(LE(this.A,this.B),this.D=!0);for(var a=this.A,b=0;b<a.o.length;b++)a.o[b].Hj(a.j.Xa);oB(this.o.j)};f.unload=function(){ME.K.unload.call(this);this.D=!1;pB(this.o.j)};f.gs=function(){this.loaded&&this.unload()};f.qr=function(a){this.j.Kn(a);this.L("command_clear_video_overlays",!1)};f.Jq=function(){this.loaded?this.L("command_clear_video_overlays",!1):this.load()};
f.kt=function(a){var b=this.j.W().ja;this.loaded&&!a&&"detailpage"==b&&this.L("command_clear_video_overlays",!1)};f.lt=function(){NE(this,this.j.Fd());this.D&&LE(this.A,this.B);this.Wj()};function NE(a,b){a.B&&a.B.qa("shuffle",a.Wj,a);a.B=b;a.B&&a.B.subscribe("shuffle",a.Wj,a)}ME.Ha=function(a){return!!a.Fd()&&!0};ME.prototype.Ha=function(a){return ME.Ha(a)};ME.prototype.bn=function(a){return!ME.Ha(a)};ME.j=function(a){return ME.Ha(a)?new ME(a):null};
ME.prototype.P=function(){this.A.qa("playvideoat",this.qr,this);Kh(this.F);ME.K.P.call(this)};function OE(a){jg("/gen_204?"+a,void 0)}function PE(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=Ve("/sharing_services",a);jg(h)};function QE(a,b){Q.call(this);this.j=a;this.o=!!b}z(QE,Q);function RE(a,b,c){if(c)if(a.o)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.j&&(d=SE(a.j));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Gj(d,{format:"JSON",method:"GET",context:a,timeout:600,jb:function(a,d){c(d);TE("success",{v:b})},onError:function(){TE("error",{v:b});c({})},Ue:function(){TE("timeout",{v:b});UE("__notfound__");c({})}})):c({})}}
function TE(a,b){var c={a:"spacecast",module:"cache",request:"meta",status:a};ac(c,b);OE(Te(c))}QE.prototype.P=function(){this.j=null;QE.K.P.call(this)};function VE(a){Q.call(this);(this.j=a)&&UE("//"+a)}z(VE,Q);function SE(a){var b;(b=(b=dj("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.j?"//"+a.j:null;return b}VE.prototype.reset=function(){ej("yt-spacecast-uri")};function UE(a){var b=dj("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;bj("yt-spacecast-uri",b)};function WE(){Q.call(this);this.o=this.j=null}z(WE,Q);ba(WE);WE.prototype.init=function(a){this.j||(this.j=new VE(a||null),this.o=new QE(this.j))};WE.prototype.P=function(){this.o&&(this.o.dispose(),this.o=null);this.j&&(this.j.dispose(),this.j=null);WE.K.P.call(this);delete WE.Gb};function XE(a){Ys.call(this,a);this.Bc=this.xa="spacecast";this.o=null}z(XE,Ys);f=XE.prototype;f.Ha=function(){return!!this.j.getVideoData().ob};function YE(a){return a.getVideoData().ob?new XE(a):null}f.Na=function(){XE.K.Na.call(this);var a=this.j.getVideoData().ob,b=WE.getInstance();b&&b.init(a);this.o=b;this.load()};f.destroy=function(){XE.K.destroy.call(this);this.o=null};
f.load=function(){XE.K.load.call(this);var a=this.j.getVideoData().videoId,b=this.o.o,c=y(),c=x(this.fy,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),TE("prefetch",{v:a})):RE(b,a,c)};f.fy=function(a,b,c){b=y()-b;var d=0;if(c){var e=c.id;c=c.fmt_list;if(e&&c){var g={};D(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=ZE(this,SE(this.o.j),e,g))d=this.j.getVideoData(),d.ba=c,$E(d),this.j.Mn("auto"),d=1}}bt(this);OE(Te({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function ZE(a,b,c,d){if(!b)return null;a=a.j.getVideoData();a=uj(a.Ze);a=eb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=wj(b)||"",g=Number(Ie(b)[4]||null)||null;return E(a,function(a){var b=K(K(cf(bf(vf(a.url),e),g),"orig_host",xj(a.url)),"scid",c);a.url=b.toString();return Te(a)}).join(",")};function aF(){var a=Uc,b;if(b=eu())i:{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 i}b=!1}if(b)i:{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");
Ud(document.documentElement,c);c=Ed("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break i}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function bF(a){Sz.call(this);this.label=Z("YTP_THREED_SHORT");this.element=new Yz(a,[Z("YTP_OFF"),Z("YTP_ON")]);R(this,this.element);this.element.kb(this.label);$z(this.element,2100);this.priority=10;this.C=!0;this.j(0)}z(bF,Sz);bF.prototype.H=function(){this.element.$b("select")};bF.prototype.j=function(a){this.element.j(a)};function cF(a){Y.call(this,["span"]);this.element.innerHTML=a}z(cF,Y);function dF(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Z("YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);b=Z("YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.j=new Tz(a,"ytp-dialog-button",b);R(this,this.j);this.j.za(b);b=Z("YTP_CLOSE");this.o=new Tz(a,"ytp-dialog-button",b);this.o.za(b);R(this,this.o);this.template.update({content:new cF(Z("YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE",
{BEGIN_LINK:'<a href="//support.google.com/youtube/bin/answer.py?answer=1229982">',END_LINK:"</a>"})),buttons:[this.j,this.o]})}z(dF,uB);function eF(a){Ys.call(this,a);Yf({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"\u0410\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0435 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u044f HTML5 3D \u043d\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043e",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"\u041f\u0440\u043e\u0447\u0442\u0438\u0442\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0443 \u043e $BEGIN_LINK\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D-\u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e HTML5$END_LINK \u0438\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 \u0440\u0435\u0436\u0438\u043c\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D.",
YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0440\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 3D-\u0432\u0438\u0434\u0435\u043e"});this.o=new bF(nt(this));R(this,this.o);this.o.j(1);this.o.M("change",this.$E,this);this.o.M("select",this.aF,this);this.A=new dF(nt(this));R(this,this.A);this.A.j.M("click",this.Do,this);this.A.o.M("click",this.Kg,this)}z(eF,Ys);f=eF.prototype;f.an="threeDModuleData";f.xa="threed";
f.Bc="threed";f.Na=function(){fF(this.j.T,void 0);qt(this,this.o);eF.K.Na.call(this)};f.destroy=function(){rt(this,this.o);fF(this.j.T,!0);eF.K.destroy.call(this)};function gF(a){return eF.prototype.Ha(a)?new eF(a):null}f.Ha=function(a){a=a.getVideoData();return aF()?!!a.sa||!!a.bs:!1};function hF(a,b){if(a.j.getVideoData().nh!=b)if(dt(a),aF()){var c=a.j.T,d=er(c);d.j.A&&d.j.A.j||(d.j.nh=!d.j.nh,$E(d.j),gr(d,"r"));fF(c)}else b&&(dt(a,a.A),a.o.j(0),st(a))}
f.Do=function(){et(this,"/select_3d_mode?video_id="+this.j.getVideoData().videoId)};f.$E=function(){1==this.o.element.A?hF(this,!0):hF(this,!1)};f.aF=function(){st(this);this.Do()};function iF(a){Sz.call(this);this.j=2;this.label=Z("YTP_THREED_SHORT");this.menu=new GB(a,x(this.o,this),x(this.D,this));R(this,this.menu);this.element=new BB(a,Z("YTP_WEBGL_ANAGLYPH"),this.menu);R(this,this.element);DB(this.element,100);HB(this.menu,[0,1,2]);a=2100;KB(this.menu,a++);a=a++;Vz(this.element.j,a);jF(this,this.j);this.priority=1;this.B=!0}z(iF,Sz);function jF(a,b){a.j=b;a.menu.j(b);a.element.ue(a.o(b))}
iF.prototype.o=function(a){switch(a){case 0:return Z("YTP_OFF");case 1:return Z("YTP_WEBGL_3D_2D");case 2:return Z("YTP_WEBGL_3D_ANAGLYPH")}return"."};iF.prototype.D=function(a){this.element.te();jF(this,a);this.element.$b("change")};function kF(a,b,c){this.C=null;this.B=-1;this.A=a.getVideoData().oa;0!=this.A||"LR"!=a.getVideoData().Ec("yt3d:enable")&&"true"!=a.getVideoData().Ec("yt3d:enable")||(this.A=1);this.j=new iF(a.T.A.B);this.j.M("change",this.mF,this);this.j.M("change",c,this);this.o=null;this.D=!0;qt(b,this.j);R(b,this.j)}function lF(a){if(aF())return!1;a=a.getVideoData();var b;(b=1==a.oa||2==a.oa)||(b=a.Ec["3D"])||(a=a.Ec("yt3d:enable"),b="true"==a||"LR"==a||"RL"==a);return b?!0:!1}f=kF.prototype;f.Ji=function(){return"attribute vec3 aVertPos;attribute vec2 aTexCrd;varying vec2 vTexCrd;void main(void) {  vTexCrd = aTexCrd;  gl_Position = vec4(aVertPos, 1.0);}"};
f.Fi=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nuniform int mode;\nvarying vec2 vTexCrd;\nuniform mat4 mLt;\nuniform mat4 mRt;\nvoid anaglyph(float x, float y) {\n  x *= 0.5;\n  vec4 cLt = texture2D(uSplr, vec2(x, y));\n  vec4 cRt = texture2D(uSplr, vec2(0.5 + x, y));\n  gl_FragColor = mLt * cLt + mRt * cRt;\n}\nvoid main(void) {\n  if (mode == 2)\n    anaglyph(vTexCrd.x, vTexCrd.y);\n  else if (mode == 0)\n    gl_FragColor = texture2D(uSplr, vTexCrd);\n  else if (mode == 1)\n    gl_FragColor = texture2D(uSplr, vec2(vTexCrd.x * 0.5, vTexCrd.y));\n}"};
f.lj=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.B=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.B);this.o=a.getUniformLocation(b,"mode");a.uniform1i(this.o,this.j.j);var c=1==this.A;a.uniformMatrix4fv(a.getUniformLocation(b,c?"mLt":"mRt"),!1,new Float32Array([.456,-.04,-.015,0,.5,-.038,-.021,0,.176,-.016,-.005,0,0,0,0,1]));a.uniformMatrix4fv(a.getUniformLocation(b,c?"mRt":"mLt"),!1,new Float32Array([-.043,.378,-.072,0,-.088,.734,-.113,0,0,-.018,1.226,
0,0,0,0,1]))};f.jj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0]),a.STATIC_DRAW);b.j=2;b.gj=4;this.C=b};f.kj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.C);a.vertexAttribPointer(this.B,this.C.j,a.FLOAT,!1,0,0)};f.pk=function(){};f.ok=function(){};f.nk=function(){};f.wi=function(a,b){this.D&&a.uniform1i(this.o,this.j.j);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};
f.sj=function(){return!0};f.Bj=function(){return!1};f.mF=function(){this.D=!0};f.destroy=function(a){rt(a,this.j)};function mF(a,b,c,d,e,g){this.width=a;this.height=b;if(!g)i:{g=Math.max(a,b);a=Math.min(a,b);for(b=0;b<Lt.length;b++){var h=Lt[b],k=Kt[h];if(g>=Math.floor(16*k/9)||a>=k){g=h;break i}}g="tiny"}this.quality=g;this.fps=c||0;this.j=e||0;this.projectionType=d||0};function nF(){this.j=new Float32Array(16);this.A=new Float32Array(16);this.o=new Float32Array(16);this.identity()}nF.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};nF.prototype.get=function(){return this.j};
function oF(a,b){for(var c=0;16>c;c+=4)a.o[c+0]=a.j[c+0]*b[0]+a.j[c+1]*b[4]+a.j[c+2]*b[8]+a.j[c+3]*b[12],a.o[c+1]=a.j[c+0]*b[1]+a.j[c+1]*b[5]+a.j[c+2]*b[9]+a.j[c+3]*b[13],a.o[c+2]=a.j[c+0]*b[2]+a.j[c+1]*b[6]+a.j[c+2]*b[10]+a.j[c+3]*b[14],a.o[c+3]=a.j[c+0]*b[3]+a.j[c+1]*b[7]+a.j[c+2]*b[11]+a.j[c+3]*b[15];c=a.j;a.j=a.o;a.o=c};function pF(a){this.S=a;this.D=new nF;this.J=this.I=this.N=this.H=this.O=null;this.j=.872;this.F=!0;this.C=3.14;this.G=this.B=this.A=0;this.o=null}function qF(a){if(!a.o)return!1;for(var b in a.o.j){var c=a.o.j[b].info.video;if(c&&2==c.projectionType)return!0}return!1}f=pF.prototype;f.Ji=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};f.Fi=function(){return"precision mediump float;varying vec3 pos;uniform sampler2D uSplr;uniform mat4 uVMat;uniform float uFOVx;uniform float uFOVy;\n#define INV_PI 0.3183\nvoid main() {  vec3 ray = vec3(sin(pos.x * uFOVx), sin(pos.y * uFOVy),                  -cos(pos.x * uFOVx));  ray = (uVMat * vec4(ray, 1.0)).xyz;  ray = normalize(ray);  vec2 texCrd = vec2(0.5 - atan(ray.x, ray.z) * INV_PI * 0.5,                     acos(ray.y) * INV_PI);  gl_FragColor = vec4(texture2D(uSplr, texCrd).xyz, 1.0);}"};
f.lj=function(a,b,c){this.O=a.getUniformLocation(b,"uVMat");this.I=a.getUniformLocation(b,"uFOVx");this.J=a.getUniformLocation(b,"uFOVy");this.N=a.getUniformLocation(b,"uSplr");a.uniform1i(this.N,0);this.o=new Y(["span","webgl-pan-button"]);this.o.ea(c);this.o.M("mousedown",this.dB.bind(this));this.o.M("mouseup",this.eB.bind(this));this.o.M("click",this.Oq.bind(this));this.o.M("dblclick",this.Oq.bind(this))};
f.jj=function(a){this.H=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.H);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,2,3]),a.STATIC_DRAW)};f.kj=function(){};f.Oq=function(a){a.stopPropagation()};f.dB=function(a){a.offsetX>a.offsetY?this.o.Q().offsetWidth-a.offsetX>a.offsetY?rF(this,1):rF(this,4):this.o.Q().offsetHeight-a.offsetY<a.offsetX?rF(this,2):rF(this,3);requestAnimationFrame(this.S)};f.eB=function(){this.B=0};
var sF={65:3,97:3,68:4,100:4,87:1,119:1,83:2,115:2,187:5,107:5,109:6,189:6};f=pF.prototype;f.ok=function(a){a=sF[a.keyCode];void 0!=a&&rF(this,a)};function rF(a,b){0==a.B&&(a.G=Date.now());a.B=b}f.pk=function(){this.B=0};f.nk=function(a,b){this.C+=3.1415*a*this.j;this.A+=3.1415*b*this.j;this.F=!0};
f.wi=function(a,b,c,d){if(0!=this.B){c=Date.now();var e=.003*this.j*(c-this.G);switch(this.B){case 3:this.C+=e;break;case 4:this.C-=e;break;case 1:this.A+=e;break;case 2:this.A-=e;break;case 6:this.j+=e;this.j=Math.min(this.j,1.05);break;case 5:this.j-=e,this.j=Math.max(this.j,.32)}this.G=c;this.F=!0}if(this.F){a.uniform1f(this.I,this.j);a.uniform1f(this.J,this.j/Jw);this.A=Pc(this.A,-1.57075,1.57075);this.D.identity();c=this.D;var g=this.A,e=Math.sin(g),g=Math.cos(g);c.A.set([1,0,0,0,0,g,e,0,0,-e,
g,0,0,0,0,1]);oF(c,c.A);c=this.D;g=this.C;e=Math.sin(g);g=Math.cos(g);c.A.set([g,0,-e,0,0,1,0,0,e,0,g,0,0,0,0,1]);oF(c,c.A);a.uniformMatrix4fv(this.O,!1,this.D.get());this.F=!1}a.clearColor(0,0,0,1);a.clear(a.DEPTH_BUFFER_BIT|a.COLOR_BUFFER_BIT);a.activeTexture(a.TEXTURE0);a.bindTexture(a.TEXTURE_2D,d);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.H);a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,0)};f.sj=function(){return!1};
f.Bj=function(){return 0!=this.B};f.destroy=function(){this.o&&this.o.dispose()};function tF(){this.o=null;this.j=-1}f=tF.prototype;f.Ji=function(){return"attribute vec3 aVertPos;\nattribute vec2 aTexCrd;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = aTexCrd;\n  gl_Position = vec4(aVertPos, 1.0);\n}"};f.Fi=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}"};
f.lj=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.j=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.j)};f.jj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,1,1,1,0,0,1,0]),a.STATIC_DRAW);b.j=2;b.gj=4;this.o=b};f.kj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.o);a.vertexAttribPointer(this.j,this.o.j,a.FLOAT,!1,0,0)};f.pk=function(){};f.ok=function(){};f.nk=function(){};
f.wi=function(a,b){a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.sj=function(){return!0};f.Bj=function(){return!1};f.destroy=function(){};function uF(){this.B=null;this.A=-1;this.j=43758.5453;this.o=null}f=uF.prototype;f.Ji=function(){return"attribute vec3 aVertPos;\nattribute vec2 aTexCrd;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  vTexCrd = aTexCrd;\n  gl_Position = vec4(aVertPos, 1.0);\n}"};f.Fi=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nuniform float seed;\nvarying vec2 vTexCrd;\nfloat noise(float n)\n{\n    return fract(sin(n) * seed);\n}\nvoid main(void) {\n  vec4 col = vec4(texture2D(uSplr,\n      vec2(vTexCrd.x, 1.0 - vTexCrd.y)).xyz, 1.0);\n  float amt = 0.035;\n  float maxCol = max(max(col.x, col.y), col.z);\n  amt = amt * smoothstep(0.0, 0.1, maxCol);\n  amt = amt * smoothstep(0.0, 0.1, 1.0 - maxCol);\n  float noiseL = noise(gl_FragCoord.x + gl_FragCoord.y * 2000.0) * amt;\n  col.xyz = col.xyz + noiseL;\n  gl_FragColor = col;\n}"};
f.lj=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.o=a.getUniformLocation(b,"seed");a.uniform1f(this.o,this.j);this.A=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.A)};f.jj=function(a){var b=a.createBuffer();a.bindBuffer(a.ARRAY_BUFFER,b);a.bufferData(a.ARRAY_BUFFER,new Float32Array([0,0,1,0,0,1,1,1]),a.STATIC_DRAW);b.j=2;b.gj=4;this.B=b};f.kj=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.B);a.vertexAttribPointer(this.A,this.B.j,a.FLOAT,!1,0,0)};f.pk=function(){};
f.ok=function(){};f.nk=function(){};f.wi=function(a,b){this.j+=1;a.uniform1f(this.o,this.j);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.sj=function(){return!0};f.Bj=function(){return!1};f.destroy=function(){};function vF(a,b,c,d){this.I=c;this.A=a.T.A.o;this.H=10;this.C=!0;this.V=this.O=this.S=this.B=this.o=null;this.F=b;this.j=null;this.U=a;this.N=d;this.G=this.D=-1;this.J=!1}
function wF(a){a.o=document.createElement("canvas");if(!a.o)return 1;a.I.appendChild(a.o);try{a.B=a.o.getContext("webgl")}catch(b){return 2}if(null==a.B)return 3;xF(a);var c=yF(a);if(0!=c)return c;a.o.addEventListener("click",a.iF.bind(a),!0);a.o.addEventListener("mousedown",a.jF.bind(a));a.o.addEventListener("mousemove",a.kF.bind(a));a.o.addEventListener("mouseup",a.lF.bind(a));var c=a.B,d=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,d);c.bufferData(c.ARRAY_BUFFER,new Float32Array([-1,-1,0,1,-1,
0,-1,1,0,1,1,0]),c.STATIC_DRAW);a.O=d;a.j.jj(c);c=a.B;d=c.createTexture();c.bindTexture(c.TEXTURE_2D,d);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.LINEAR);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);a.S=d;c=a.B;c.clearColor(0,0,0,1);c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT);c.bindBuffer(c.ARRAY_BUFFER,a.O);c.vertexAttribPointer(a.R,3,c.FLOAT,
!1,0,0);c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,a.S);a.j.kj(c);a.yd();a.A.crossOrigin="use-credentials";return 0}
function yF(a){var b=a.B,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.Ji());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.Fi());b.compileShader(d);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 5;var e=b.createProgram();b.attachShader(e,c);if(1!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 6;b.attachShader(e,d);if(2!=b.getProgramParameter(e,b.ATTACHED_SHADERS))return 7;b.linkProgram(e);if(0==
b.getProgramParameter(e,b.LINK_STATUS))return 8;b.validateProgram(e);b.useProgram(e);if(0==b.getProgramParameter(e,b.VALIDATE_STATUS))return 9;a.R=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.R);a.V=e;a.j.lj(b,a.V,a.I);return 0}f=vF.prototype;f.yd=function(){this.B&&(this.A.videoWidth||this.A.videoHeight)&&(xF(this),this.j.wi(this.B,this.A,this.O,this.S));(this.C||this.j.Bj())&&requestAnimationFrame(this.yd.bind(this))};
function xF(a){if(0==a.H&&null!=a.A.offsetParent){if(a.j.sj())var b=a.A.offsetWidth,c=a.A.offsetHeight,d=0,e=0;else b=a.A.offsetParent.offsetWidth,c=a.A.offsetParent.offsetHeight,d=-a.A.offsetTop,e=-a.A.offsetLeft;a.I.style.left=e+"px";a.I.style.top=d+"px";a.o.width=b;a.o.height=c;a.B.o=b;a.B.j=c;a.B.viewport(0,0,b,c)}}f.iF=function(a){this.J&&(a.stopPropagation(),this.J=!1)};f.jF=function(a){this.D=a.x;this.G=a.y};
f.kF=function(a){-1!=this.D&&this.j&&(this.j.nk((a.x-this.D)/this.o.width,(a.y-this.G)/this.o.height),this.D=a.x,this.G=a.y,this.J=!0,this.C||requestAnimationFrame(this.yd.bind(this)))};f.lF=function(){this.G=this.D=-1};f.AB=function(){this.C||requestAnimationFrame(this.yd.bind(this));st(this.N)};function zF(a){a.o&&(Wd(a.o),a.o=null);a.B=null;a.C=!1;a.j&&a.j.destroy(a.N);a.j=null;a.A.removeAttribute("crossorigin");a.A.hidden=!1;a.H=10};function AF(a){Ys.call(this,a);this.gi=!0;this.xa="webgl";this.subscribe("onResize",this.eF,this);this.subscribe("onKeyPress",this.cF,this);this.subscribe("onKeyDown",this.bF,this);this.subscribe("onKeyUp",this.dF,this);this.subscribe("onStateChange",this.oj,this);this.C=I("DIV",BF.su);ct(this,this.C);this.B=a;a=window.localStorage["yt-html5-player-module-webgl-shadertype"];if(void 0==a||null==a)if(a="",lF(this.B))a="Anaglyph3D";else{var b=this.B.getVideoData();qF(b)&&this.B.W().experiments.spherical?
a="Spherical":this.B.W().experiments.C&&(a="NoOp")}this.o=new vF(this.B,a.toString(),this.C,this);this.A=!1}z(AF,Ys);var BF={su:"video-annotations"};AF.j=function(a){return AF.Ha(a)?new AF(a):null};AF.prototype.Ha=function(){return AF.Ha(this.j)};AF.Ha=function(a){var b;(b=lF(a)&&a.W().experiments.na)||(b=a.getVideoData(),b=qF(b)&&a.W().experiments.spherical);return b||a.W().experiments.C?!0:!1};f=AF.prototype;f.eF=function(){this.A&&xF(this.o)};
f.cF=function(){if(this.A){var a=this.o;a.j&&(a.C||requestAnimationFrame(a.yd.bind(a)))}};f.dF=function(a){if(this.A){var b=this.o;b.j&&(b.j.pk(a),b.C||requestAnimationFrame(b.yd.bind(b)))}};f.bF=function(a){if(this.A){var b=this.o;b.j&&(b.j.ok(a),b.C||requestAnimationFrame(b.yd.bind(b)))}};f.oj=function(a){if(this.A){var b=this.o,c=b.C;b.C=X(a.state,8);b.C&&!c&&requestAnimationFrame(b.yd.bind(b))}};f.P=function(){AF.K.P.call(this)};
f.Na=function(){var a=this.o;a.j=null;null!=a.F&&("Anaglyph3D"==a.F?a.j=new kF(a.U,a.N,a.AB.bind(a)):"Spherical"==a.F?a.j=new pF(a.yd.bind(a)):"WhiteNoise"==a.F?a.j=new uF:"NoOp"==a.F&&(a.j=new tF));a.j&&(a.H=wF(a),0==a.H?a.A.hidden=!0:(a.U.T.o.jk(new Mq("html5.missingapi.webgl",!1)),zF(a)));this.A=null!=this.o.j;AF.K.Na.call(this)};f.destroy=function(){zF(this.o);this.A=!1;AF.K.destroy.call(this)};function CF(a){Ys.call(this,a);Yf({YTP_YPC_START_RENTAL_HEADER:"\u041d\u0430\u0447\u0430\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0432\u0438\u0434\u0435\u043e, \u0432\u0437\u044f\u0442\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u043e\u043a\u0430\u0442?",YTP_YPC_START_RENTAL_BUTTON:"\u041d\u0430\u0447\u0430\u0442\u044c \u0441\u0440\u043e\u043a \u043f\u0440\u043e\u043a\u0430\u0442\u0430"});this.A=this.o=null}z(CF,Ys);f=CF.prototype;
f.xa="ypc_clickwrap";f.Bc="ypc-clickwrap";f.Ha=function(){return Ev(this.j.getVideoData(),"ypc_clickwrap_module")};function DF(a){return Ev(a.getVideoData(),"ypc_clickwrap_module")?new CF(a):null}f.Na=function(){CF.K.Na.call(this);this.load()};
f.load=function(){CF.K.load.call(this);this.o=new iv(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",Zf("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().B.ypc_clickwrap_message],["button","ytp-ypc-clickwrap-confirm",Zf("YTP_YPC_START_RENTAL_BUTTON")]]);this.o.ea(this.j.La());R(this,this.o);this.A=this.o.j["ytp-ypc-clickwrap-confirm"];P(this.A,"click",x(this.eA,this))};
f.unload=function(){CF.K.unload.call(this);Kh(this.A);this.o.detach();this.o.dispose();this.o=null};f.eA=function(){bt(this);this.destroy()};function EF(a){var b=window.location;a=Ve(a,{})+"";if(!(a instanceof yc||a instanceof yc)){a=a.Pe?a.Ge():String(a);a=Bc.test(a)?Cc(a):"about:invalid#zClosurez";var c=new yc;c.j=a;a=c}b.href=Ac(a)}
function FF(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))dd&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=ya(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 GF(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=FF(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function HF(a){a=a.B;this.A=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.C=a.ypc_offer_headline;this.B=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.j=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;cg(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.o=a.ypc_item_url;this.videoId=a.ypc_vid};function IF(){PD.call(this,["div",["ytp-drawer","html5-stop-propagation"],["div","ytp-drawer-content","{{content}}"],["a","ytp-drawer-close-button"],["a","ytp-drawer-open-button"]]);var a=this.template.j["ytp-drawer-open-button"];sv(this,this.template.j["ytp-drawer-close-button"],"click",this.o);sv(this,a,"click",this.va);this.j=new Mv(pa(oh,this.element,"ytp-drawer-closed"),0);R(this,this.j);this.za(null);this.$()}z(IF,PD);IF.prototype.o=function(){this.$();this.L("close-clicked")};
IF.prototype.$=function(){this.j.stop();N(this.element,"ytp-drawer-closed")};IF.prototype.za=function(a){a?(IF.K.za.call(this,a),pv(this.element,"block")):pv(this.element,"none")};IF.prototype.va=function(){this.j.start()};function JF(a,b){S.call(this);this.j=new IF;this.j.subscribe("close-clicked",this.D,this);R(this,this.j);this.o=document.createElement("div");N(this.o,"html5-ypc-endscreen");this.B=document.createElement("div");N(this.B,"html5-ypc-overlay");this.A=new iv(["div","html5-ypc-module",["div","html5-ypc-action-heading","{{heading}}"],["div","html5-ypc-thumbnail","{{thumbnail_element}}"],["div","html5-ypc-title","{{title}}"],["div","html5-ypc-description","{{description}}"],["button","html5-ypc-purchase",
"{{button_label}}"]]);R(this,this.A);this.C=this.A.j["html5-ypc-purchase"];P(this.C,"click",x(this.F,this));ee(this.B,b.B);var c=b.title;b.o&&(c=["a",{href:b.o,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.A.update({heading:b.C,title:c,thumbnail_element:d,description:b.description,button_label:b.A});this.ea(a)}z(JF,S);JF.prototype.P=function(){JF.K.P.call(this);this.C&&Kh(this.C);Wd(this.o);Wd(this.B)};
JF.prototype.ea=function(a){this.j.ea(a);this.j.za(this.A.Q());a.appendChild(this.o)};function KF(a){var b=a.A.Q();a.o.appendChild(b);a.j.za(null);pv(a.o,"block")}JF.prototype.D=function(){this.L("ypcModuleCloseClicked")};JF.prototype.F=function(){this.L("ypcContentRequest")};function LF(a){Ys.call(this,a);this.A=this.o=null;this.C=NaN;this.B=null}z(LF,Ys);f=LF.prototype;f.xa="ypc";f.Bc="ypc";f.Ha=function(){return Ev(this.j.getVideoData(),"ypc_module")};function MF(a){return Ev(a.getVideoData(),"ypc_module")?new LF(a):null}f.Na=function(){LF.K.Na.call(this);this.o=new HF(this.j.getVideoData());L(x(this.hF,this),0);this.B=new Y(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.B.ea(this.j.La())};
f.destroy=function(){LF.K.destroy.call(this);this.o=null;this.B.detach();this.B.dispose();this.B=null};f.hF=function(){this.se&&!this.loaded&&this.load()};
f.load=function(){LF.K.load.call(this);var a=this.j.getVideoData();if(this.o.videoId&&!a.ta)this.j.$s({video_id:this.o.videoId,ypc_origin:a.videoId,ypc_preview:1});else{this.A=new JF(this.B.Q(),this.o);this.A.subscribe("ypcContentRequest",this.hA,this);this.A.subscribe("ypcModuleCloseClicked",this.XA,this);this.o.videoId&&Td(this.B.Q(),this.A.B);if(CE(this.j.W())){var b=new Ms(2147483647,2147483647,{priority:2});Zs(this,[b])}this.A.j.va();M(this.C);this.C=L(x(function(){this.j.W().experiments.S||
this.A.j.$()},this),1E4);this.o.videoId?a.ta&&bt(this):KF(this.A)}};f.unload=function(){at(this);Ai(this.A);this.A=null;LF.K.unload.call(this)};f.Ic=function(a){LF.K.Ic.call(this,a);KF(this.A)};f.Zc=function(a){LF.K.Zc.call(this,a);a=this.A;pv(a.o,"none");a.j.za(a.A.Q())};f.hA=function(){if(this.o.j)"embedded"==this.j.W().ja?FF(this.o.j):EF(this.o.j);else if(this.o.offerId){var a=u("yt.www.watch.player.handleEndPreview");a&&(this.j.Sg()&&Kx(this.j.T),a(this.o.offerId))}};
f.XA=function(){this.log({a:"ypc-checkout",label:"ypc-player-module-close-click",playertype:"html5"})};function NF(a){this.B=Math.exp(Math.log(.5)/a);this.j=this.A=0}NF.prototype.o=function(a,b){var c=Math.pow(this.B,a);this.j=b*(1-c)+c*this.j;this.A+=a};NF.prototype.C=function(){return this.j/(1-Math.pow(this.B,this.A))};function OF(a){this.o=window.Float32Array?new Float32Array(a):Array(a);this.j=a-1}OF.prototype.add=function(a){this.j=(this.j+1)%this.o.length;this.o[this.j]=a};OF.prototype.forEach=function(a){for(var b=this.j+1;b<this.o.length;b++)a(this.o[b]||0);for(b=0;b<=this.j;b++)a(this.o[b]||0)};function PF(a,b,c){this.H=0;this.F=a;this.B=b||.5;this.D=c||0;this.G="index";this.j=0;this.A=[]}PF.prototype.o=function(a,b){QF(this,"index");this.A.push({index:this.H++,weight:a,value:b});this.j+=a;for(QF(this,"index");this.j>this.F;){var c=this.j-this.F,d=this.A[0];d.weight<=c?(this.j-=d.weight,this.A.shift()):(this.j-=c,d.weight-=c)}};function RF(a,b){QF(a,"value");var c=b*a.j,d=0,e=NaN;a.A.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
PF.prototype.C=function(){return this.D?(RF(this,this.B-this.D)+RF(this,this.B)+RF(this,this.B+this.D))/3:RF(this,this.B)};function QF(a,b){a.G!=b&&(a.G=b,Bb(a.A,b))};function SF(){this.j={}}function TF(a,b){var c=a.j[b]||{de:0,done:0,ds:0,Wo:0};return a.j[b]=c};function UF(a){this.J=a;this.j=new SF;this.A=this.D=this.F=0;this.H=new OF(100);this.G=0;this.I=y();this.C=new PF(16,.6);this.B=new NF(4);this.J.o?this.o=new NF(17):this.o=new PF(17,.5,.1);a=dj("yt-player-bandwidth")||{};this.o.o(this.J.j,0<a.byterate?a.byterate:13E4);0<a.delay&&this.C.o(1,Math.min(+a.delay,2));0<a.tailDelay&&this.B.o(1,+a.tailDelay);this.A=y()}function VF(a,b,c){b=Math.max(b,.05);a.o.o(b,c/b);WF(a)}function XF(a,b,c){isNaN(c)||(a.D+=c);isNaN(b)||(a.F+=b/1E3);WF(a)}
function YF(a){a=a.C.C();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function ZF(a){return a.B.C()||0}function $F(a){a=a.o.C();return 0<a?a:1}function aG(a){var b={};b.delay=YF(a);b.tailDelay=ZF(a);b.byterate=$F(a);return b}function bG(a){3E4<y()-a.A&&(Jq(aG(a)),a.A=y())}function WF(a){var b=y();a.I=b;500<b-a.G&&(a.H.add(1/(1/$F(a)+ZF(a))),a.G=b)}function cG(a){return 4E3<=y()-a.I};function dG(){this.j=.5;this.o=!1};var eG={jA:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},gz:function(a,b){a.splice(0,b)},Gt:function(a){a.reverse()}};function fG(a){a=a.split("");eG.jA(a,66);eG.Gt(a,66);eG.gz(a,3);eG.jA(a,60);return a.join("")};function gG(){};function hG(a,b,c,d,e,g,h){this.id=""+a;this.j=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.ya=h||0;this.o=c||null;this.video=d||null;this.Ud=e||null;this.B=g||null;this.A=wt[Gu(this)]||""}function Gu(a){return a.id.split(";",1)[0]}function iG(a){return!(a.o&&a.video)}function jG(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function kG(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function lG(a,b,c,d){this.name=a;this.language=b;this.Qk=c;this.isDefault=d}lG.prototype.toString=function(){return this.name};function mG(a){this.o=a;this.C=this.B=this.D="";this.j={};this.A=""}mG.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.A="")};mG.prototype.get=function(a){nG(this);return this.j[a]||null};function oG(a){a.A||(a.A=pG(a));return a.A}function qG(a){nG(a);return a.C}function rG(a){nG(a);return Jb(a.j,function(a){return null!==a})}
function nG(a){if(a.o){if(!ag(a.o))throw Error("Untrusted URL: "+a.o);var b=vf(a.o);a.D=b.Mb;a.C=b.rb+(null!=b.Cd?":"+b.Cd:"");var c=b.Lb;if(0==c.indexOf("/videoplayback"))a.B="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.B=c.substr(0,d),c=c.substr(d+1)):(a.B=c,c="")}d=a.j;a.j=sG(c);qa(a.j,tG(b.hp()));qa(a.j,d);a.o="";a.A=""}}
function pG(a){nG(a);var b=a.D+(a.D?"://":"//")+a.C+a.B;if(rG(a)){var c=[];Hb(a.j,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b}function sG(a){a=a.split("/");var b=0;a[0]||b++;for(var c={};b<a.length;b+=2)a[b]&&(c[a[b]]=a[b+1]);return c}function tG(a){a=a.split("&");for(var b={},c=0;c<a.length;c++){var d=a[c],e=d.indexOf("=");0<e?b[d.substr(0,e)]=d.substr(e+1):d&&(b[d]="")}return b};function uG(a,b){this.start=a;this.end=b;this.length=b-a+1}function vG(a){a=a.split("-");return 2==a.length&&(a=new uG(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function wG(a,b){return new uG(a,a+b-1)}uG.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function xG(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 yG(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 zG(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.j=a;this.sourceURL=d;this.startTime=b;this.ha=e||null};function AG(){this.pa=[]}f=AG.prototype;f.zh=function(a){return(a=BG(this,a))?a.duration:0};f.yl=function(a){return this.zh(a)};f.Cg=function(){return this.pa[0].j};f.Kb=function(){return this.pa[this.pa.length-1].j};f.hg=function(){var a=this.pa[this.pa.length-1];return a?a.endTime:NaN};f.ct=function(){return this.pa[0].startTime};f.ep=function(){return this.pa.length};f.lk=function(){return 0};f.Eg=function(a){return(a=CG(this,a))?a.j:-1};f.fp=function(a){return BG(this,a).sourceURL};
f.cf=function(a){return(a=BG(this,a))?a.startTime:0};f.Nn=function(){return 0<this.pa.length};function BG(a,b){var c=xb(a.pa,new zG(b,0,0,""),function(a,b){return a.j-b.j});return 0<=c?a.pa[c]:null}function CG(a,b){var c=xb(a.pa,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.pa[c]:a.pa[Math.max(0,-c-2)]}
f.append=function(a){if(0!=a.length)if(a=sb(a),0==this.pa.length)this.pa=a;else{var b=this.pa.length?ab(this.pa).endTime:0,c=a[0].j-this.Kb();1<c&&mb(this.pa);for(c=0<c?0:-c+1;c<a.length;c++){var d=a[c];d.startTime=b;d.endTime=d.startTime+d.duration;b+=a[c].duration;this.pa.push(a[c])}}};function DG(a,b){var c=ib(a.pa,function(a){return a.j>=b},a);0<c&&a.pa.splice(0,c)};function EG(a){this.j=a;this.o={};this.A=""}EG.prototype.set=function(a,b){this.j.get(a);this.o[a]=b;this.A=""};EG.prototype.get=function(a){return this.o[a]||this.j.get(a)};function FG(a,b){var c=b.indexOf("?");if(0<c){var d=tG(b.substr(c+1));Hb(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=sG(b);Hb(d,function(a,b){this.set(b,a)},a)}function TC(a){a.A||(a.A=GG(a));return a.A}
function GG(a){var b=oG(a.j),c=[];Hb(a.o,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=rG(a.j)?"&":"?";return b+a+d}function HG(a,b){var c=new mG(b);Hb(a.o,function(a,b){c.set(b,null)});return c};function IG(a){this.j=a;this.o=0;this.A=-1}var JG=0;function KG(a,b){this.index=null;this.info=b;this.j=null;this.C=this.A=!1;this.D=new IG(a)}KG.prototype.km=function(){return!1};KG.prototype.Yc=function(){return!1};KG.prototype.Cr=function(a){return[a]};KG.prototype.Dj=function(a){return[a]};function LG(a,b,c,d,e,g,h,k,l){this.j=b;this.ha=c;this.type=a;this.B=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.A=h||0;this.o=0<=k?k:this.ha?this.ha.length:NaN;this.G=!!l;this.ha?(this.D=this.A+this.o==this.ha.length,this.C=this.startTime+this.duration*this.A/this.ha.length,this.H=this.duration*this.o/this.ha.length):(this.D=0!=this.o,this.C=this.startTime,this.H=this.duration);this.F=this.C+this.H}function MG(a){return 1==a.type||2==a.type}
function NG(a,b){return a.j==b.j&&a.ha.start+a.A+a.o==b.ha.start+b.A}function OG(a){$a(1==a.length||hb(a,function(a){return!!a.ha}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new uG(a[0].ha.start+a[0].A,b.ha.start+b.A+b.o-1)}function PG(a){var b="";Hb(QG(a),function(a,d){b+=d+"="+a+","});return b.slice(0,-1)}function QG(a){var b={};b.itag=a.j.info.id;b.seg=a.B;a.ha&&(b.range=""+(a.ha.start+a.A)+"-"+(a.ha.start+a.A+a.o-1));b.time=""+a.C.toFixed(1)+","+(a.C+a.H).toFixed(1);return b};function RG(a,b){this.o=a[0].j.D;this.A=b||"";this.j=a;this.ha=this.j[0].ha&&0<this.j[0].o?OG(this.j):null}function UC(a){var b;/http[s]?:\/\//.test(a.A)?b=new EG(new mG(a.A)):(b=new EG(a.o.j),a.A&&FG(b,a.A));a.ha&&b.set("range",a.ha.toString());return b}function SG(a){if(a.ha)return a.ha.length;a=a.j[0];return Math.round(a.H*a.j.info.ya)};function TG(a,b,c,d,e){KG.call(this,a,b);this.index=e||new AG;this.B=d||null;this.F=c;this.o=!0}z(TG,KG);f=TG.prototype;f.ii=function(){return!1};f.dp=function(){var a=new LG(1,this,this.B);return[new RG([a],this.F)]};function SC(a,b){a.Ah(b);return UG(a,b.D?b.B+1:b.B,!1)}f.Ii=function(a,b){var c=this.index.Eg(a);b&&(c=Math.min(this.index.Kb(),c+1));return UG(this,c,!0)};f.np=function(a){this.j=new Uint8Array(VG(a).buffer)};f.km=function(){return!1};f.Yc=function(){return null!==this.j&&this.index.Nn()};
f.Ah=function(a){return 0==a.o?!0:this.index.Kb()>a.B&&this.index.Cg()<=a.B+1};f.update=function(a,b,c){this.index.append(a);DG(this.index,c);this.o=b};function UG(a,b,c){var d=a.index.fp(b),e=a.index.cf(b),g=a.index.zh(b);c?g=c=0:c=0<a.info.ya?a.info.ya*g:1E3;a=new LG(3,a,null,b,e,g,0,c,b==a.index.Kb()&&!a.o&&0<c);return new RG([a],d)};function WG(a,b){this.ce=a;this.context=b};function XG(a,b,c){this.o=a;this.ce=b;this.j=c}function YG(){this.j=[];this.o=null;this.B=0;this.A=[]}
YG.prototype.update=function(a){var b=void 0;this.o&&(b=this.o);var c=b,b=+xG(a,"timescale")||1,d=+xG(a,"startNumber")||0,e=0,g=1;c&&(e=c.ce+c.j,g=d-c.o);c=new YG;g=0<g?0:-g+1;c.B=g;for(a=a.getElementsByTagName("S");g<a.length;g++){var h=a[g],k=+h.getAttribute("d")/b,l=new XG(d+g,e,k);c.j.push(l);var e=e+k,k=h.getAttribute("yt:cuepointTimeOffset"),p=h.getAttribute("yt:cuepointDuration"),h=h.getAttribute("yt:cuepointContext")||null;k&&p&&c.A.push(new WG(+k/b+l.ce,h))}c.j.length&&(c.o=ab(c.j));this.B=
c.B;this.o=c.o||this.o;this.j=c.j;tb(this.A,c.A)};function ZG(a){var b=a.A;a.A=[];return b};function $G(){this.B=[];this.C=!1;this.j=null;this.o={};this.A={}}function aH(a,b){for(var c=b.getElementsByTagName("SegmentTimeline"),d=0;d<c.length;d++){var e=c[d].parentNode.parentNode;"Period"==e.nodeName?a.j=new YG:"AdaptationSet"==e.nodeName?a.o[e.attributes.mimeType.value]=new YG:"Representation"==e.nodeName&&(a.A[e.attributes.id.value]=new YG)}a.C=!0}
function bH(a,b){a.C||aH(a,b);for(var c=[],d=b.getElementsByTagName("SegmentTimeline"),e=0;e<d.length;e++){var g=d[e].parentNode.parentNode,h=null;"Period"==g.nodeName?h=a.j:"AdaptationSet"==g.nodeName?h=a.o[g.attributes.mimeType.value]:"Representation"==g.nodeName&&(h=a.A[g.attributes.id.value]);if(null==h)return;h.update(d[e]);tb(c,ZG(h))}Ab(c,function(a){return a.ce});tb(a.B,c)}function cH(a){a.j&&(a.j.j=[]);Hb(a.o,function(a){a.j=[]});Hb(a.A,function(a){a.j=[]})};function dH(a,b){var c=eH(a,0,1836019558);if(!c)return null;var d=eH(a,c.offset+8,1835427940),e=eH(a,c.offset+8,1953653094);if(!d||!e)return null;var g=eH(a,e.offset+8,1952868452),h=eH(a,e.offset+8,1953658222),k=eH(a,e.offset+8,1952867444);if(!g||!h||!k)return null;var l=eH(a,e.offset+8,1935763823),e=eH(a,e.offset+8,1935763834);if(l){var p=fH(l),r=fH(l);if(0!=p||1!=r)return null;p=fH(l)}for(var t=fH(g),C=fH(g),V=t&2,T=t&1?gH(g):0,ia=V?fH(g):0,Ba=t&8?fH(g):0,r=t&16?fH(g):0,Le=t&32?fH(g):0,t=fH(h),
bh=t&1,Os=t&4,Wz=t&256,g=t&512,a2=t&1024,b2=t&2048,t=fH(h),c2=bh?fH(h):0,d2=Os?fH(h):0,bh=[],HN=[],qB=[],rB=[],IN=0,Se=0,cc=0;cc<t;cc++){var e2=Wz?fH(h):Ba;g&&bh.push(fH(h));var sd=Le;Os&&0==cc?sd=d2:a2&&(sd=fH(h));HN.push(sd);sd=b2?fH(h):0;0==cc&&(IN=sd);qB.push(Se+sd);rB.push(cc);Se+=e2}zb(rB,function(a,b){return qB[a]-qB[b]});h=[];for(cc=0;cc<t;cc++)h[rB[cc]]=cc;Se=V?4:0;cc=16*t;sd=68+Se+k.size+cc+(l?l.size:0)+(e?e.size:0);c=sd-c.size;Ba=new hH(sd);iH(Ba,sd);iH(Ba,1836019558);jH(Ba,d);iH(Ba,sd-
24);iH(Ba,1953653094);iH(Ba,16+Se);iH(Ba,1952868452);iH(Ba,131072|(V?2:0));iH(Ba,C);V&&iH(Ba,ia);jH(Ba,k);iH(Ba,20+cc);iH(Ba,1953658222);iH(Ba,16781057);iH(Ba,t);iH(Ba,T+c2+c);for(cc=Se=0;cc<t;cc++)k=h[cc],d=Math.round(b*k/t),k=Math.round(b*(k+1)/t)-d,sd=d-Se+IN,iH(Ba,k),iH(Ba,g?bh[cc]:r),iH(Ba,HN[cc]),iH(Ba,sd),Se+=k;l&&(iH(Ba,l.size),iH(Ba,1935763823),iH(Ba,0),iH(Ba,1),iH(Ba,p+c));e&&jH(Ba,e);return Ba.data.buffer}
function kH(a){a=new DataView(a.buffer,a.byteOffset,a.byteLength);for(var b=0;lH(a,b);){var c=mH(a,b);if(1836476516==c.type)return nH(c);b=oH(c.type)?b+8:b+c.size}return NaN}function eH(a,b,c){for(;lH(a,b);){var d=mH(a,b);if(d.type==c)return d;b+=d.size}return null}function mH(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new pH(a,b,c,d)}function nH(a){var b=a.data.getUint8(a.offset+8)?28:20;return a.data.getUint32(a.offset+b)}function qH(a){return a.data.getUint32(a.offset+16)}
function rH(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}function lH(a,b){if(8>a.byteLength-b)return!1;var c=a.getUint32(b);if(8>c)return!1;for(var d=4;8>d;d++){var e=a.getInt8(b+d);if(97>e||122<e)return!1}return a.byteLength-b>=c}function oH(a){return 1836019558==a||1836019574==a||1953653094==a}function pH(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8}function fH(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}
function gH(a){var b=rH(a.data,a.offset+a.j);a.j+=8;return b}pH.prototype.skip=function(a){this.j+=a};function hH(a){this.data=new DataView(new ArrayBuffer(a));this.j=0}function iH(a,b){a.data.setInt32(a.j,b);a.j+=4}function jH(a,b){for(var c=0;c+4<=b.size;)iH(a,b.data.getUint32(b.offset+c)),c+=4;for(;c<b.size;)a.data.setUint8(a.j++,b.data.getUint8(b.offset+c++))};function sH(a,b,c,d){this.info=a;this.buffer=b;this.ha=c;this.j=d}function VG(a){return a.ha?new DataView(a.buffer,a.ha.start,a.ha.length):new DataView(a.buffer)}
function tH(a,b){if(a.info.o!=a.ha.length)return!1;if(1==a.info.j.info.j){if(8>a.info.o||4==a.info.type)return!0;var c=VG(a),d=c.getUint32(0,!1),c=c.getUint32(4,!1);if(2==a.info.type)return d==a.info.o&&1936286840==c;if(3==a.info.type&&0==a.info.A)return 1836019558==c||1936286840==c||1937013104==c||1718909296==c}else if(2==a.info.j.info.j&&b){if(4>a.info.o||4==a.info.type)return!0;c=VG(a);d=c.getUint32(0,!1);if(3==a.info.type&&0==a.info.A)return 524531317==d}return!0}
function uH(a){var b;i:{for(var c=0,d=new DataView(a.buffer);lH(d,c);){b=mH(d,c);if(1936286840==b.type){c=qH(b);d=b.data.getUint8(b.offset+8);b.data.getUint16(b.offset+(0==d?30:38));b=b.data.getUint32(b.offset+(0==d?36:42))/c;break i}c=oH(b.type)?c+8:c+b.size}b=NaN}if(!(0<=b)){c=a.info.j.j;d=0;b=new DataView(a.buffer);for(var e,g;lH(b,d);){var h=mH(b,d);1936286840==h.type?e=qH(h):1836476516==h.type?e=nH(h):1836019558==h.type&&(g=h);d=oH(h.type)?d+8:d+h.size}!e&&c&&(e=kH(c));if(g&&e){g=eH(b,g.offset+
8,1953653094);c=eH(b,g.offset+8,1952868452);g=eH(b,g.offset+8,1953658222);b=fH(c);fH(c);b&2&&fH(c);b=b&8?fH(c):0;var k=fH(g),l=k&1,c=k&4,d=k&256,h=k&512,p=k&1024,k=k&2048,r=g.data.getUint32(g.offset+g.j);g.j+=4;l&&fH(g);c&&fH(g);for(var t=l=0;t<r;t++){var C=d?fH(g):b;h&&fH(g);c&&0==t||!p||fH(g);k&&fH(g);l+=C}b=l/e}else b=NaN}return b||a.info.H};function vH(){this.ra=0;this.j=new Float64Array(128);this.o=new Float64Array(128);this.B=1;this.A=!1}f=vH.prototype;f.lk=function(a){return this.j[a]};f.cf=function(a){return this.o[a]/this.B};f.zh=function(a){a=this.yl(a);return 0<=a?a/this.B:-1};f.yl=function(a){return a+1<this.ra||this.A?this.o[a+1]-this.o[a]:-1};f.Cg=function(){return 0};f.Kb=function(){return this.ra-1};f.hg=function(){return this.A?this.o[this.ra]/this.B:NaN};f.ct=function(){return 0};f.ep=function(){return this.ra};f.fp=function(){return""};
f.Eg=function(a){a=xb(this.o.subarray(0,this.ra),a*this.B);return 0<=a?a:Math.max(0,-a-2)};f.Nn=function(){return 0<=this.Kb()};function wH(a){if(a.j.length<a.ra+1){var b=2*a.j.length,b=b+2,c=a.j;a.j=new Float64Array(b+1);var d=a.o;a.o=new Float64Array(b+1);for(b=0;b<a.ra+1;b++)a.j[b]=c[b],a.o[b]=d[b]}}function xH(a,b){this.o=a;this.j=0;this.A=b||0}function yH(a){for(var b=zH(a,!1);236==b;)AH(a),b=zH(a,!1);return b}
function BH(a){var b=zH(a,!0),c=a.o.byteOffset+a.j,d=Math.min(b,a.o.buffer.byteLength-c),c=new DataView(a.o.buffer,c,d),c=new xH(c,a.A+a.j);a.j+=b;return c}function CH(a){for(var b=zH(a,!0),c=DH(a),d=1;d<b;d++)c=256*c+DH(a);return c}function AH(a){var b=zH(a,!0);a.j+=b}function zH(a,b){var c=DH(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+DH(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+DH(a),e*=128;return b?c-e:c}function DH(a){return a.o.getUint8(a.j++)};function EH(a,b,c,d,e,g){KG.call(this,a,b);this.initRange=c;this.indexRange=d;this.B=null;this.index=new vH;this.o=e;this.lastModified=g}z(EH,KG);f=EH.prototype;f.Yc=function(){return!(!this.j||!this.index.Nn())};
f.dp=function(a){var b=new LG(1,this,this.initRange),c=new LG(2,this,this.indexRange),d=[],e=[b];NG(b,c)?e.push(c):(d.push(new RG([c])),a=0);isNaN(this.o)?a=0:a>this.o&&(a=this.o);b=e[e.length-1];c=b.ha.end-e[0].ha.start+1;a>c&&(a=wG(b.ha.end+1,a-c),e.push(new LG(4,this,a)));d.push(new RG(e));return d};
f.np=function(a){if(1==a.info.type){if(this.j)return;this.j=new Uint8Array(a.buffer,a.ha.start,a.ha.length)}else if(2==a.info.type){if(this.B||0<=this.index.Kb())return;if(1==this.info.j){var b=this.index,c=VG(a),d=a.info.ha.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.B=h;a+=8;0==g?(g=c.getUint32(a,!1),h=c.getUint32(a+4,!1),a+=8):(g=4294967296*c.getUint32(a,!1)+c.getUint32(a+4,!1),h=4294967296*c.getUint32(a+8,!1)+c.getUint32(a+12,!1),a+=16);b.j[0]=h+(e+d);
b.o[0]=g;b.A=!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.ra++;wH(g);g.j[g.ra]=g.j[g.ra-1]+k;g.o[g.ra]=g.o[g.ra-1]+h}}else this.B=VG(a)}if(2==this.info.j&&this.j&&this.B){a=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength);b=this.index;h=this.B;c="o"==this.info.A?this.indexRange.end:void 0;a=new xH(a);if(440786851==yH(a)&&(AH(a),408125543==yH(a))){e=a;g=e.j;d=zH(e,!0);e.j=g;a=BH(a);for(var e=a.A+a.j,l=yH(a);357149030!=l;)AH(a),
l=yH(a);a=BH(a);for(var k=1E6,p=1E9,g=0;!(a.j>=a.o.byteLength);)if(l=yH(a),2807729==l)k=CH(a);else if(2807730==l)p=CH(a);else if(17545==l){var g=a,l=zH(g,!0),r=0;4==l?r=g.o.getFloat32(g.j):8==l&&(r=g.o.getFloat64(g.j));g.j+=l;g=r}else AH(a);b.B=p/k;a=new xH(h);if(475249515==yH(a)){a=BH(a);h=!0;for(k=!1;!(a.j>=a.o.byteLength);)if(l=yH(a),187==l){p=BH(a);l=e;if(179!=yH(p))r=null;else if(r=CH(p),183!=yH(p))r=null;else{for(var p=BH(p),t=l;!(p.j>=p.o.byteLength);)241==yH(p)?t=CH(p)+l:AH(p);r=[t,r]}h&&
c==r[0]&&(k=!0);h=!1;k&&(r[0]+=1);p=b;l=r[0];r=r[1];wH(p);p.j[p.ra]=l;p.o[p.ra]=r;p.ra++}else AH(a);c=d+e;a=g;wH(b);b.A=!0;b.o[b.ra]=a;b.j[b.ra]=c}}this.B=null}};function FH(a,b,c,d){for(var e=[];b<=a.index.Kb();b++){var g;g=a.index;var h=b;g=wG(g.lk(h),h+1<g.ra||g.A?g.j[h+1]-g.j[h]:-1);var h=a.index.cf(b),k=a.index.zh(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new LG(3,a,g,b,h,k,l,p,b==a.index.Kb()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new RG(e)}
f.Cr=function(a){for(var b=this.Dj(a.info),c=[],d=a.j,e=0;e<b.length;e++){var g=wG(b[e].ha.start+b[e].A-a.info.ha.start+a.ha.start,b[e].o);c.push(new sH(b[e],a.buffer,g,d));d=!1}return c};f.Dj=function(a){for(var b=0;b<this.index.Kb()&&a.ha.start>=this.index.lk(b+1);)b++;return FH(this,b,a.ha.start,a.ha.length).j};f.Ah=function(a){return this.Yc()?!0:isNaN(this.o)?!1:a.ha.end+1<this.o};
function GH(a,b,c){a.Ah(b);if(!a.Yc())return c=wG(b.ha.end+1,c),c.end+1>a.o&&(c=new uG(c.start,a.o-1)),a=[new LG(4,b.j,c)],new RG(a);4==b.type&&(b=a.Dj(b),b=b[b.length-1]);var d=0,e=b.ha.start+b.A+b.o;3==b.type&&(d=b.B,e==b.ha.end+1&&(d+=1));return FH(a,d,e,c)}f.Ii=function(a,b){var c=this.index.Eg(a);b&&(c=Math.min(this.index.Kb(),c+1));return FH(this,c,this.index.lk(c),0)};f.km=function(){var a;if(a=this.Yc()&&!isNaN(this.o))a=this.index,a=(a.A?a.j[a.ra]:-1)!=this.o;return a};f.ii=function(){return!0};function HH(a,b){S.call(this);this.O=!!b;this.G=this.duration=0;this.isLive=this.C=!1;this.I=y();this.D=Infinity;this.j={};this.J=a||"";this.N=this.H=0;this.F=!1;this.o=this.B=0;this.A=null}z(HH,S);HH.prototype.getErrorCode=function(){return 3>this.o?"manifest.net":"manifest.net.retryexhausted"};function IH(a){return Jb(a.j,function(a){return!!a.info.B},a)}var JH=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function KH(a,b){var c=new HH;D(a,function(a){var e=a.type,g=a.itag,h=null;kG(e)&&(h=a.size.split("x"),h=new mF(+h[0],+h[1],+a.fps,+a.projection_type));var k=null,l=null;if(jG(e)&&(k=new gG,a.name)){var l=a.name,p=a.lang,r=a.acont;if(a.url){var t=vj(a.url);t.xtags&&(t=rj(t.xtags,":"),t.lang&&(p=t.lang),t.acont&&(r=t.acont))}l=new lG(l,p,r,"1"==a.isDefault)}a.xtags&&(g=a.itag+";"+a.xtags);var p=parseInt(a.bitrate,10)/8,C=null;b&&a.drm_families&&(C={},D(a.drm_families.split(","),function(a){C[a]=b[a]}));
e=new hG(g,e,k,h,l,C,p);h=vG(a.init);k=vG(a.index);l=LH(a.url,e,a.s);p=parseInt(a.clen,10);a=parseInt(a.lmt,10);l&&(c.j[g]=new EH(l,e,h,k,p,a))});return c}function MH(a){if(!a)return 0;var b=JH.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function LH(a,b,c){a=new mG(a);a.set("alr","yes");a.set("keepalive","yes");a.set("ratebypass","yes");a.set("mime",encodeURIComponent(b.mimeType.split(";")[0]));c&&a.set("signature",fG(c));return a}
function NH(a){var b=xG(a,"id"),b=b.replace(":",";");"captions"==b&&(b=xG(a,"lang"));var c=xG(a,"mimeType"),d=xG(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(xG(a,"bandwidth"),10)/8,e=null;kG(c)&&(e=new mF(parseInt(xG(a,"width"),10),parseInt(xG(a,"height"),10),parseInt(xG(a,"frameRate"),10)));var g=null,h=null;if(jG(c)){g=new gG;var h=xG(a,"lang")||"",k=yG(a,"Role");if(k){var k=xG(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 lG(xG(a,"yt:langName")||h+" - "+l,h,l,"original"==l):null}else h=null}k=null;if(a=yG(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 hG(b,c,g,e,h,k,d)}
function OH(a,b,c,d){a.B=1;b=b||a.J;c={format:"RAW",method:"GET",Wb:x(a.R,a,c,d||null)};a.O&&(c.timeout=15E3);Gj(b,c)}
HH.prototype.R=function(a,b,c){this.N=c.status;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){this.D=1E3*MH(xG(c,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.D;this.C=!0;this.G=parseInt(xG(c,"yt:earliestMediaSequence"),10);this.A||(this.A=new $G);bH(this.A,c);this.L("refresh");for(c=0;c<b.length;c++){var d=NH(b[c]);
if(!this.j[d.id]){var e=LH(yG(b[c],"BaseURL").textContent,d),g=yG(b[c],"Initialization"),h=xG(g,"sourceURL"),g=vG(xG(g,"range"));this.j[d.id]=new TG(e,d,h,null===g?void 0:g)}for(var d=this.j[d.id],e=this.A,h=d,g=Za(h.info.mimeType,";",1)[0],h=e.A[h.info.id]||e.o[g]||e.j||null,e=vb(yG(b[c],"SegmentList").getElementsByTagName("SegmentURL"),h.B),h=h.j,g=[],k=0;k<e.length;k++)g.push(PH(e[k],h[k]));d.update(g,this.isLive,this.G)}cH(this.A)}else t:for(this.duration=MH(xG(c,"mediaPresentationDuration")),
c=0;c<b.length;c++){g=b[c];d=NH(g);h=yG(g,"BaseURL");e=LH(h.textContent,d);k=yG(g,"SegmentBase");g=vG(k.attributes.indexRange.value);k=vG(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),10);d=new EH(e,d,k,g,h,NaN);if(!d)break t;this.j[d.info.id]=d}this.I=y();this.B=2;this.F=!1;this.o=0;a&&a(this);this.L("loaded")}else this.B=3,this.F?this.o+=1:this.F=!0,b&&b(c),this.L("load_error")};
function PH(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=parseInt(e.split("-")[1],10)?d=vG(e):c=c+"?range="+e);return new zG(b.o,b.ce,b.j,c,d)}function QH(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.hg();return NaN}function RH(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.ct();return 0}function SH(a,b){Hb(a.j,function(a){Hb(b,function(b,e){a.D.j.set(e,b)})})};function TH(a,b,c,d){this.A={};this.N=a;this.I=b;a=c.split("#");this.G=parseInt(a[0],10);this.F=parseInt(a[1],10);this.o=parseInt(a[2],10);this.Eb=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.C=parseInt(a[5],10);this.B=a[6];this.D=a[7];this.J=d}f=TH.prototype;f.getHeight=function(){return this.F};f.Gi=function(){return this.o};f.isDefault=function(){return-1!=this.B.indexOf("default")};
function UH(a,b){var c=a.I,c=c.replace("$N",a.B),c=c.replace("$L",a.N.toString()),c=c.replace("$M",b.toString());a.D&&(c=Ve(c,{sigh:a.D}));return fg(c)}function VH(a,b){var c=Math.floor(b/(a.Eb*a.rows)),d=a.Eb*a.rows,e=b%d,g=e%a.Eb,e=Math.floor(e/a.Eb),h=a.rows,k=a.Qn()+1-d*c;k<d&&(h=Math.ceil(k/a.Eb));return{url:UH(a,c),vw:g,Eb:a.Eb,row:e,rows:h,lq:a.G*a.Eb,jq:a.F*h}}f.mk=function(a){var b=this.Gi()-1;a=0==this.C?Math.round(a*this.o/this.J):Math.round(1E3*a/this.C);return Pc(a,0,b)};
f.Qn=function(){return this.o-1};f.gt=function(){return this.o?0:-1};f.ht=function(){};function WH(a,b){this.j=this.o(a,b);this.A={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)}WH.prototype.o=function(a,b){for(var c=[],d=a.split("|"),e=d[0],g=1;g<d.length;g++){var h=this.B(g-1,e,d[g],b);180>h.getHeight()&&c.push(h)}return c};WH.prototype.B=function(a,b,c,d){return new TH(a,b,c,d)};function XH(a,b){var c=a.A[b];if(c)return c;for(var c=a.j.length,d=0;d<c;d++)if(a.j[d].G>=b)return a.A[b]=d;a.A[b]=c-1;return c-1}WH.prototype.C=function(){};function YH(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");TH.call(this,a,b,c,0);this.j=null;this.H=d?3:0}z(YH,TH);f=YH.prototype;f.Gi=function(){return this.j?this.j.ep():-1};f.mk=function(a){var b=this.rows*this.Eb*this.H,c=-1,d=-1,e=this.j;e&&(c=e.Kb(),d=e.Eg(a));return d>c-b?-1:d};f.Qn=function(){return this.j?this.j.Kb():-1};f.gt=function(){return this.j?this.j.Cg():-1};f.ht=function(a){this.j=a?a.index:null};function ZH(a,b){this.D=b;WH.call(this,a,0)}z(ZH,WH);ZH.prototype.o=function(a,b){return ZH.K.o.call(this,"$N|"+a,b)};ZH.prototype.B=function(a,b,c){return new YH(a,b,c,this.D.isLive)};ZH.prototype.C=function(a){for(var b=0;b<this.j.length;b++)this.j[b].ht(a)};var $H={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};function aI(a,b){return void 0==b?a:"1"==b?!0:!1}function bI(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function cI(a,b){return void 0==b?a:Number(b)}function dI(a,b){return void 0==b?a:b.toString()}var eI=/^([0-9\.]+)\:([0-9\.]+)$/;function fI(a){if(a&&(a=a.match(eI))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function gI(a,b){var c=Kt.auto,d=Kt[b];return d>Kt.medium?new Mt(d,c,!1):d>=c?new Mt(c,d,!1):a};function hI(a){$w.call(this,1,arguments);this.j=a}z(hI,$w);var ix=new cx("timing-sent",hI);var iI=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},jI=x(iI.clearResourceTimings||iI.webkitClearResourceTimings||iI.mozClearResourceTimings||iI.msClearResourceTimings||iI.oClearResourceTimings||v,iI),kI=iI.mark?function(a){iI.mark(a)}:v;
function lI(a,b,c){mI(c)[a]=b||y();b||kI(a);if(Tf("CSI_LOG_ON_TICK")&&(b=Tf("TIMING_ACTION"),a=mI(c),b&&a._start&&nI(c))){b=!0;var d=Tf("TIMING_WAIT",[]);if(d.length)for(var e=0,g=d.length;e<g;++e)if(!(d[e]in a)){b=!1;break}(b||c)&&oI(c)}}function pI(a,b){var c=mI(b);return a in c}function qI(a,b,c){rI(c).info[a]=b}function sI(a){tI(a);jI();q("yt.timing.pingSent_",!1,void 0)}
function nI(a){a=mI(a);if(a.aft)return a.aft;for(var b=Tf("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}function uI(a){return Math.round(iI.timing.navigationStart+a)}
function vI(a){var b=window.location.protocol,c=iI.getEntriesByType("resource"),d=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.googleapis.com/css?family=")})[0],c=c.filter(function(a){return 0==a.name.indexOf(b+"//fonts.gstatic.com/s/")}).reduce(function(a,b){return b.duration>a.duration?b:a},{duration:0});d&&0<d.startTime&&0<d.responseEnd&&(a.wfcs=uI(d.startTime),a.wfce=uI(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=uI(c.startTime),a.wffe=uI(c.responseEnd))}
function oI(a){var b=mI(a),c=rI(a).span,d=rI(a).info,e=u("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))wI(e),sI(a)}else{e={v:2,s:Tf("CSI_SERVICE_NAME","youtube"),action:Tf("TIMING_ACTION")};if(iI.now&&iI.timing){var g=iI.timing.navigationStart+iI.now(),g=Math.round(y()-g);d.yt_hrd=g}var g=Tf("TIMING_INFO")||{},h;for(h in g)d[h]=g[h];h=d.srt;delete d.srt;var k;h||0===h||(k=iI.timing||{},h=Math.max(0,k.responseStart-k.navigationStart),isNaN(h)&&d.pt&&(h=d.pt));if(h||0===h)d.srt=h;d.h5jse&&(g=window.location.protocol+
u("ytplayer.config.assets.js"),(g=iI.getEntriesByName?iI.getEntriesByName(g)[0]:null)?d.h5jse=Math.round(d.h5jse-g.responseEnd):delete d.h5jse);b.aft=nI(a);g=b._start;if("cold"==d.yt_lt){k||(k=iI.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,ha(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&&(b.fpt=l);l=rI(a).span;p=k.redirectEnd-k.redirectStart;0<p&&(l.rtime_=p);p=k.domainLookupEnd-k.domainLookupStart;0<p&&(l.dns_=p);p=k.connectEnd-k.connectStart;0<p&&(l.tcp_=p);p=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart>=k.navigationStart&&0<p&&(l.stcp_=p);p=k.responseStart-k.requestStart;0<p&&(l.req_=p);p=k.responseEnd-k.responseStart;0<p&&(l.rcv_=p);Tf("EXP_WEBFONT_ENABLED")&&iI.getEntriesByType&&vI(b)}d.p=Tf("CLIENT_PROTOCOL")||"unknown";d.t=Tf("CLIENT_TRANSPORT")||"unknown";
for(var t in d)"_"!=t.charAt(0)&&(e[t]=d[t]);Tf("CSI_MORE")&&(b.ps=y());d={};t=[];for(var C in b)"_"!=C.charAt(0)&&(l=Math.max(Math.round(b[C]-g),0),d[C]=l,t.push(C+"."+l));e.rt=t.join(",");b={};C=[];for(var V in c)"_"!=V.charAt(0)&&(b[V]=c[V],C.push(V+"."+c[V]));e.it=C.join(",");(c=u("ytdebug.logTiming"))&&c(e,d,b);sI(a);Tf("EXP_DEFER_CSI_PING")?(xI(),q("yt.timing.deferredPingArgs_",e,void 0),a=L(xI,0),q("yt.timing.deferredPingTimer_",a,void 0)):wI(e);a=new hI(d.aft+(h||0));c=ix;(e=jx())&&e.publish.call(e,
c.toString(),c,a)}}function wI(a){Tf("EXP_DEFER_CSI_PING")&&(M(u("yt.timing.deferredPingTimer_")),q("yt.timing.deferredPingArgs_",null,void 0));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];jg(b+"?"+c.substring(1));q("yt.timing.pingSent_",!0,void 0)}function xI(a){if(Tf("EXP_DEFER_CSI_PING")){var b=u("yt.timing.deferredPingArgs_");b&&(a&&(b.yt_fss=a),wI(b))}}function mI(a){return rI(a).tick}
function rI(a){return u("ytcsi."+(a||"")+"data_")||tI(a)}function tI(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};var yI={dI:0,oH:1,SH:2};function zI(a,b,c){c=c||{};Mj(c.mb,c.pageId,x(AI,m,a,b,c),c.onError)}
function AI(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.playbackId;c.playlistId&&(d.list=c.playlistId);c.mb&&(d.authuser=c.mb);c.pageId&&(d.pageid=c.pageId);a={screen:Te({h:screen.height,w:screen.width,d:screen.colorDepth})};c.eD&&(a.station_id=c.eD);Gj("/watch_actions_ajax",{format:"XML",method:"POST",dg:d,Ib:a,jb:c.jb,onError:c.onError,Wb:c.Wb})};function BI(a,b){this.o=a;this.j=b;this.A=0}function CI(a){for(var b=a.A-a.o.bitrate,c=[],d=[],e=0,g=a.j.length;e<g;++e){var h=a.j[e];h.bitrate<=b?c.push(h):d.push(h)}c.sort(function(a,b){return b.bitrate-a.bitrate});d.sort(function(a,b){return a.bitrate-b.bitrate});a.j=c.concat(d)};function DI(a,b,c,d,e,g,h){this.itag=a;this.url=b;this.j=c;this.width=d;this.height=e;this.bitrate=h;this.fps=g};function EI(a,b){this.Rb=a;this.A=b;this.o=null}z(EI,vu);function FI(a,b,c,d,e,g,h,k){var l=new gG;d=new mF(d,e,g,null,0,h);c=new hG(c,"application/x-mpegURL",l,d);a=new BI(a,b);a.A=k?k:1369843;return new EI(c,a)}
EI.prototype.j=function(){if(!this.o||this.o.ka()){var a;a=this.A;CI(a);var b=["#EXTM3U"];b.push('#EXT-X-MEDIA:TYPE=AUDIO,NAME="audio",DEFAULT=YES,AUTOSELECT=YES,GROUP-ID="aud",URI="'+a.o.url+'"');for(var c=0,d=a.j.length;c<d;++c){var e=a.j[c],g=a.o;b.push("#EXT-X-STREAM-INF:BANDWIDTH="+(e.bitrate+g.bitrate)+',CODECS="'+(e.j+","+g.j)+'",RESOLUTION='+(e.width+"x"+e.height)+',AUDIO="aud",CLOSED-CAPTIONS=NONE');b.push(e.url)}a=b.join("\n");this.o=new hu("data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(a))}return this.o};function GI(a,b){this.Rb=a;this.o=b}z(GI,vu);function HI(a,b,c,d,e){var g=new gG;c in Kt||(c="small");var h=Kt[c],k=Math.round(16*h/9);c=new mF(k,h,0,null,e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new GI(new hG(d,b,g,c),a)}function II(a){var b=[];D(a,function(a){a.url&&b.push(HI(a.url,a.type,"medium","0"))});return b}
function JI(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||fG(e.s);e.url=yj(e.url,{signature:g})}e.url&&c.push(HI(e.url,e.type,e.quality,e.itag,e.stereo3d))}return Cu(c,!!b)}GI.prototype.j=function(){return new hu(this.o)};function KI(a,b){this.j=a;this.o=b}KI.prototype.getValue=function(){return this.o};KI.prototype.clone=function(){return new KI(this.j,this.o)};function LI(a){this.j=[];if(a)i:{var b,c;if(a instanceof LI){if(b=a.Ka(),c=a.Oa(),0>=a.Ta()){a=this.j;for(var d=0;d<b.length;d++)a.push(new KI(b[d],c[d]));break i}}else b=Pb(a),c=Ob(a);for(d=0;d<b.length;d++)MI(this,b[d],c[d])}}function MI(a,b,c){var d=a.j;d.push(new KI(b,c));b=d.length-1;a=a.j;for(c=a[b];0<b;)if(d=b-1>>1,a[d].j>c.j)a[b]=a[d],b=d;else break;a[b]=c}f=LI.prototype;
f.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)mb(a);else{a[0]=a.pop();for(var a=0,b=this.j,d=b.length,e=b[a];a<d>>1;){var g=2*a+1,h=2*a+2,g=h<d&&b[h].j<b[g].j?h:g;if(b[g].j>e.j)break;b[a]=b[g];a=g}b[a]=e}return c.getValue()}};f.Oa=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};f.Ka=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};f.sf=function(a){return gb(this.j,function(b){return b.getValue()==a})};
f.clone=function(){return new LI(this)};f.Ta=function(){return this.j.length};f.isEmpty=function(){return lb(this.j)};f.clear=function(){mb(this.j)};function NI(){LI.call(this)}z(NI,LI);function OI(a,b){S.call(this);this.j=a;this.A=new NI;this.C={};this.B=b||""}z(OI,S);OI.prototype.o=!1;function PI(a,b,c){var d;for(c=XH(a.j,c);0<=c;){d=a.j.j[c];if(d=d.A[Math.floor(b/(d.Eb*d.rows))]?VH(d,b):null)return d;c--}return VH(a.j.j[0],b)}function QI(a,b,c){c=XH(a.j,c);for(var d,e;0<=c;c--)if(d=a.j.j[c],e=Math.floor(b/(d.Eb*d.rows)),!d.A[e]){d=a;var g=c,h=g+"-"+e;d.C[h]||(d.C[h]=!0,MI(d.A,g,{Yp:g,kq:e}))}RI(a)}
function RI(a){if(!a.o)if(a.A.isEmpty())a.o=!1;else{a.o=!0;var b=a.A.remove(),c=new Image;a.B&&(c.crossOrigin=a.B);c.src=UH(a.j.j[b.Yp],b.kq);c.onload=x(a.D,a,b.Yp,b.kq)}}OI.prototype.D=function(a,b){this.o=!1;var c=this.j.j[a];c.A[b]=!0;RI(this);var d,e=c.Eb*c.rows;d=b*e;c=Math.min(d+e-1,c.Gi()-1);d=[d,c];this.L("l",d[0],d[1])};function Kr(a){S.call(this);this.Wh=new H(0,0);this.Za=this.ga=!1;this.ve="";this.ke=this.Aa=!1;this.ub={};this.captionTracks=[];this.Ba=[];this.ge=0;this.ie=[];this.Da=!1;this.Y=new Jt("und","Default","und","und",!0);this.Ma=0;this.Uh=new Mv(this.Mr,5E3,this);R(this,this.Uh);this.I=[];this.B={};this.keywords={};this.D={};SI(this,a)}z(Kr,S);Kr.F=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;Kr.o=1;Kr.B=-21;Kr.C=18E3;Kr.D="author cc_asr cc_load_policy iv_load_policy iv_new_window keywords oauth_token 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(" ");
Kr.j={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};Kr.A=["www.youtube.com","manifest.googlevideo.com"];f=Kr.prototype;f.adModule=!1;f.adaptiveFormats="";f.Ms=null;f.allowEmbed=!0;f.xb=!1;f.di="";f.qo=!1;f.Sk=!1;f.to=Kr.o;f.hk=null;f.us=null;f.author="";f.fk=0;f.ji=!1;f.zo=3;f.No=!1;f.ki="";f.clientPlaybackNonce="";f.contentCheckOk=!1;f.bf=0;f.pl=!1;f.xi=!1;f.nl=!1;f.uf=0;f.Pf=!1;f.qp=!1;f.gk=0;f.fm=0;f.Rp=!1;f.Qg=!1;f.Tp=!0;
f.Yi=!1;f.jm=!1;f.lm=!1;f.Qa=!1;f.nm=!1;f.pe=!1;f.Vp=!1;f.rm=!1;f.fz=0;f.lengthSeconds=0;f.Fn=0;f.ur=!1;f.racyCheckOk=!1;f.ze=1;f.Um=Ot;f.Pr=0;f.cn=!1;f.startSeconds=0;f.Oj=null;f.Tm=2;f.Pj=Ot;f.bs=!1;f.nh=!1;f.Ye=null;f.title="";f.Ze="";f.hlsFormats="";f.ck=null;f.qn="vvt";f.Br=!1;f.Ur=!1;f.clipStart=0;f.clipEnd=Infinity;
function Pr(a,b){var c=b||{};c.iv_invideo_url&&(a.di=eg(c.iv_invideo_url));c.iv_ads_only&&(a.qo="1"==c.iv_ads_only);c.cta_conversion_urls&&(a.Lc=c.cta_conversion_urls);a.author=dI(a.author,c.author);a.ji=aI(a.ji,c.cc_asr);var d=c.ttsurl;d&&-1!=d.search(Cf)?a.ki=d:d&&(d=eg(d))&&-1!=d.search(Cf)&&(a.ki=d);c.caption_tracks&&c.caption_audio_tracks&&(TI(a,c.caption_tracks),a.Ba=uj(c.caption_audio_tracks),c.default_audio_track_index&&(a.ge=parseInt(c.default_audio_track_index,10)||0),c.caption_translation_languages&&
UI(a,c.caption_translation_languages));a.Da=aI(a.Da,c.cc_contribute);a.clientPlaybackNonce=dI(a.clientPlaybackNonce,c.cpn);a.subscribed=dI(a.subscribed,c.subscribed);a.Tm=bI(a.Tm,c.sentiment,yI);a.title=dI(a.title,c.title);a.ta=dI(a.ta,c.ypc_preview);a.ab=dI(a.ab,c.ypc_origin);a.ur=aI(a.ur,c.paygated);a.Br=aI(a.Br,c.requires_purchase);c.keywords&&(a.keywords=VI(c.keywords));c.rvs&&(a.V=uj(c.rvs));a.contentCheckOk=aI(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=aI(a.racyCheckOk,"1"==c.rco);a.C=dI(a.C,
c.oauth_token);D(Kr.D,function(a){a in c&&(this.B[a]=c[a])},a)}
function SI(a,b){var c=b||{};a.xb="1"!=c.hlsdvr||Zh||Wh&&5>hs?!1:!0;a.Sk="1"==c.infringe||"1"==c.muted;a.ad=c.authkey;a.mb=c.authuser;a.clientPlaybackNonce||(a.clientPlaybackNonce=c.cpn||DD());a.Zv=y();a.Bk=c.t;a.pl=aI(a.pl,c.cenchd);a.xi=aI(a.xi,c.enable_cardio);a.nl=aI(a.nl,c.enable_cardio_before_playback);a.uf=cI(a.uf,c.end||c.endSeconds);a.Fa=dI(a.Fa,c.itct);a.Tp="1"!=c.no_get_video_log;a.Yi="1"==c.tmi;a.jm=aI(a.jm,c.noiba);a.lm="1"==c.livemonitor;a.Qa="1"==c.live_playback;a.nm=aI(a.nm,c.mdx);
a.rm=aI(a.rm,c.utpsa);for(var d in Kr.j){var e=c[d+"_webp"]||c[d];cg(e)&&(a.ub[Kr.j[d]]=e)}a.G=dI(a.G,c.vvt);a.Dk=c.osig;a.Oh=c.ptchn;a.Rh=c.oid;a.J=c.ptk;a.Sh=c.pltype;a.playbackId=c.plid;a.H=c.eventid;a.Ob=c.osid;a.$v=c.vm;a.gu=c.of;a.playlistId=dI(a.playlistId,c.list);a.Th=c.pyv_view_beacon_url;a.Fk=c.pyv_quartile25_beacon_url;a.Uv=c.pyv_quartile50_beacon_url;a.Wv=c.pyv_quartile75_beacon_url;a.Ek=c.pyv_quartile100_beacon_url;c.remarketing_url&&(a.remarketingUrl=c.remarketing_url);c.ppv_remarketing_url&&
(a.ppvRemarketingUrl=c.ppv_remarketing_url);a.purchaseId=c.purchase_id;a.Zh=c.sdetail;!a.$a&&c.session_data&&(a.$a=rj(c.session_data,"&").feature);a.we=1==cI(a.we?1:0,c.is_fling);a.ic=dI(a.ic,c.ctrl);a.jc=dI(a.jc,c.ytr);a.je=c.ytrcc;a.Ur="1"==c.skip_kansas_logging;a.mc=dI(a.mc,c.cl);a.Um=gI(a.Um,c.vq);a.Pj=gI(a.Pj,c.suggestedQuality);a.oa=c.approx_threed_layout||0;a.bs="1"==c.threed_converted;a.startSeconds=cI(a.startSeconds,c.start||c.startSeconds);a.$h=aI(a.$h,c.ssrt);a.videoId=c.docid||c.video_id||
c.videoId||a.videoId;a.Xh=dI(a.Xh,c.vss_credentials_token);a.qn=dI(a.qn,c.vss_credentials_token_type);WI(a,c.watermark);a.Yh=dI(a.Yh,c.ypc_gid);a.bb=dI(a.bb,c.ypc_license_session_token);a.heartbeatToken=dI(a.heartbeatToken,c.heartbeat_token);a.Gd=cI(a.Gd,c.heartbeat_interval);a.Hd=cI(a.Hd,c.heartbeat_retries);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.I.push("ad")):"1"!=c.supported_without_ads&&(a.qp=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);
void 0!=c.atc&&(a.da=c.atc);c.license_info&&(a.Ms=XI(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.autonav&&(a.Rp="1"==c.autonav);c.autoplay&&(a.Qg="1"==c.autoplay);c.iv_load_policy&&(a.ua=YI(c.iv_load_policy,a.ua));c.cc_load_policy&&(a.zo=YI(c.cc_load_policy,2));"0"==c.dash&&(a.No=!0);c.dashmpd&&(a.O=Ve(c.dashmpd,{cpn:a.clientPlaybackNonce}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O))&&(e=fG(e[1]),a.O=a.O.replace(d,"/signature/"+e));c.delay&&(a.bf=Va(c.delay));void 0!=c.end&&(a.clipEnd=
c.end);c.fresca_preroll&&a.I.push("fresca");c.idpj&&(a.gk=Va(c.idpj));c.ismb&&(a.fm=Va(c.ismb));c.url_encoded_fmt_stream_map&&(a.Ze=c.url_encoded_fmt_stream_map);c.hls_formats&&(a.hlsFormats=c.hls_formats);c.hlsvp&&(a.aa=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Va(c.length_seconds));!a.lengthSeconds&&a.Qa&&(a.lengthSeconds=a.xb?3600:Infinity);c.ldpj&&(a.Fn=Va(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.to=ZI(a));c.partnerid&&(a.U=Va(c.partnerid));c.probe_url&&(a.probeUrl=fg(Ve(c.probe_url,
{cpn:a.clientPlaybackNonce})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(Jf)&&(a.ma=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(Jf)&&(a.na=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&(d=c.video_masthead_ad_quartile_urls,a.Ya=d.quartile_0_url,a.kf=d.quartile_25_url,a.lf=d.quartile_50_url,a.Mh=d.quartile_75_url,a.jf=d.quartile_100_url);c.spacecast_address&&(a.I.push("spacecast"),a.ob=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Qa||(a.clipStart=c.start);c.threed_module&&
!c.threed_converted&&(a.sa=c.threed_module,a.Yv=6);c.two_stage_token&&(a.hk=c.two_stage_token);c.url_encoded_third_party_media&&(a.Ye=uj(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.us=c.watch_ajax_token);c.ypc_module&&a.I.push("ypc");c.ypc_clickwrap_module&&a.I.push("ypc_clickwrap");a.Vh=dI(a.Vh,c.ucid);D("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.D[a]=c[a])},a);a.D.focEnabled=aI(a.D.focEnabled,c.focEnabled);a.D.rmktEnabled=aI(a.D.rmktEnabled,c.rmktEnabled);
a.B=c;Pr(a,c);$I(a)}function aJ(a){return!(!a.A||!a.A.o.length)}function $I(a){(a.Qa||a.lm)&&"1"==a.B.as3fb||!Iu()||a.No||(a.adaptiveFormats?a.o=KH(bJ(a,a.adaptiveFormats),a.Ms):a.O&&(a.Pf=!0,a.ga=!0))}f.nA=function(a){this.ka()||(this.o=a,this.o.subscribe("refresh",this.Cq,this),lI("mrc"),this.o&&(this.lengthSeconds=this.o.duration||QH(this.o)||this.lengthSeconds),this.Gn())};
f.Cq=function(){this.o.isLive||this.o.qa("refresh",this.Cq,this);var a=vb(this.o.A.B,this.Ma);0<a.length&&(this.L("cuepointupdated",a),this.Ma+=a.length)};f.Gn=function(){this.ka()||(this.Pf=!1,this.Aa&&!cJ(this)?this.L("dataloaderror",new Mq("fmt.noneavailable",!0)):this.L("dataloaded",this.B))};
function $E(a){if(!a.ka()){a.A=null;a.R=null;a.N=null;if(a.ba){var b=bJ(a,a.ba);a.N=JI(b,!1);a.A=new Tt(E(a.N,function(a){return a.Rb}))}!a.A&&a.o&&(a.A=Ku(a.o));a.A||(a.N=dJ(a),a.N.length&&(a.A=new Tt(E(a.N,function(a){return a.Rb}))));eJ(a);a.Pr=Math.min(.8*a.lengthSeconds,180)}}
function dJ(a){if(a.hlsFormats){var b=bJ(a,a.hlsFormats),c;c=a.fm;if(ms){var d;d=null;for(var e=[],g=0,h=b.length;g<h;++g){var k;k=b[g];var l=k.type.match(/codecs="([^"]*)"/);k=new DI(k.itag,k.url,l?l[1]:"",+k.width,+k.height,+k.fps,+k.bitrate);0==k.width?d=k:e.push(k)}if(d=d?{audioPlaylist:d,videoPlaylists:e}:null){b=d.audioPlaylist;d=d.videoPlaylists;e=[];g=0;for(h=d.length;g<h;++g)k=d[g],e.push(FI(b,[k],k.itag,k.width,k.height,k.fps));e.push(FI(b,d,"93",0,0,0,"auto",c));c=Cu(e,!1)}else c=[]}else c=
[];if(c.length)return c}if(a.Ye&&a.Vp)return a=II(a.Ye),Cu(a,!1);c=!!a.sa||a.nh;b=bJ(a,a.Ze);a.aa&&(d=a.aa,e=a.fm,a={cpn:a.clientPlaybackNonce},-1==d.indexOf("/ibw/")&&(a.ibw=e?String(e):"1369843"),a={url:Ve(d,a),type:"application/x-mpegURL",quality:"auto",itag:"93"},b.push(a));return JI(b,c)}function MD(a){return a.j&&a.j.B||null}f.Ec=function(a){return w(this.keywords[a])?this.keywords[a]:null};
function fJ(a){a.ck||(a.B.storyboard_spec?a.ck=new WH(a.B.storyboard_spec,Va(a.B.length_seconds)):a.B.live_storyboard_spec&&a.o&&(a.ck=new ZH(a.B.live_storyboard_spec,a.o)));return a.ck}function gJ(a){var b=fJ(a);!a.Oj&&b&&(a.Oj=new OI(b),R(a,a.Oj));return a.Oj}function Sr(a){return a.o&&!isNaN(RH(a.o))?RH(a.o):0}function hJ(a){return!a.ka()&&!(!a.videoId&&!a.Ye)}function cJ(a){return hJ(a)&&!a.Pf&&!a.ga&&(!!(a.o||a.Ze||a.Ye||a.ba||a.aa)||G(a.I,"fresca")||G(a.I,"ypc"))}
function iJ(a,b,c){a.ka()||(a.ve=b,a.Aa=!!c,a.Pf=!0,a.Mr())}f.Mr=function(){Gj(this.ve,{format:"RAW",method:"GET",context:this,jb:this.EA,onError:this.Eq});lI("vir")};f.Qd=function(a){if(30==this.U)return(a=this.ub["default.jpg"])?a:this.videoId?Ve("//docs.google.com/vt",{id:this.videoId,authuser:this.mb,authkey:this.ad}):"//docs.google.com/images/doclist/cleardot.gif";a||(a="hqdefault.jpg");var b=this.ub[a];return b||"sddefault.jpg"==a||"maxresdefault.jpg"==a?b:wA(this.videoId,a)};
f.EA=function(a){if(!this.ka()){var b=a.responseText;b?(this.Pf=!1,a=tj(b),"fail"==a.status?this.L("onStatusFail",a):(lI("virc"),SI(this,a),this.Gn())):this.Eq(a)}};f.Eq=function(a){if(!this.ka()){var b="manifest.net",c=!0,d="rc."+a.status;this.Aa&&(this.ke?b="manifest.net.retryexhausted":(this.ke=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Uh.start()));this.L("dataloaderror",new Mq(b,c,d))}};
function ZI(a){return a.perceptualLoudnessDb?(a=Math.min(Kr.B-a.perceptualLoudnessDb,0),Math.pow(10,a/20)):Kr.o}function YI(a,b){var c=parseInt(a,10);return Nb(fz,c)?c:b}function bJ(a,b){var c=uj(b);D(c,function(a){a.url&&(a.url=Ve(a.url,{cpn:this.clientPlaybackNonce}))},a);return c}function VI(a){var b={};D(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}
function WI(a,b){if(b){var c=b.split(",");2<=c.length&&(a.Z=c[1],cg(a.Z)&&-1==a.Z.search(Kr.F)||(a.Z=""))}}function XI(a){a=uj(a);var b={};D(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}function TI(a,b){for(var c=uj(b),d=0;d<c.length;d++){var e=c[d],g=e.u;g&&-1!=g.search(Cf)&&(g={is_translateable:e.t,languageCode:e.lc,languageName:e.n,url:g,vss_id:e.v,kind:e.k},"asr"!=e.k&&(g.format=2),a.captionTracks.push(new Ft(g)))}}
function UI(a,b){for(var c=uj(b),d=0;d<c.length;d++){var e=c[d];a.ie.push(new Et({languageCode:e.lc,languageName:e.n}))}}
function eJ(a){for(var b=a.A?a.A.audioTracks:[],b=b.concat(a.Y),c=0;c<a.Ba.length;c++)for(var d=a.Ba[c],e=0;e<b.length;e++){var g=b[e],h=g.Qk==d.ac&&g.language==d.lc||g.name==d.n;if(g==a.Y&&c==a.ge||h){if(d.i)for(var h=d.i.split(","),k=0;k<h.length;k++)g.captionTracks[k]=a.captionTracks[parseInt(h[k],10)];d.d&&(g.ml=a.captionTracks[parseInt(d.d,10)]);d.f&&(g.Bi=a.captionTracks[parseInt(d.f,10)]);g.Ao=parseInt(d.v,10)}}}function Ev(a,b){return!!a.B[b]}function jJ(a){return a.Qa&&!a.xb}
function kJ(a){return a.Qa&&a.xb};function lJ(a){S.call(this);this.views=0;this.j=[];this.o=[];this.Xa=Math.max(0,a.index||0);this.ig=!!a.loop;this.startSeconds=a.startSeconds||0;this.oq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||"";this.C={};a.video_id&&(this.j[this.Xa]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.B=0;if(a.list)switch(a.listType){case "user_uploads":mJ(this,a.list);break;case "user_favorites":nJ(this,
a.list);break;case "search":oJ(this,a.list);break;default:a.playlist_length&&(this.xc=a.playlist_length),this.A=uE(a.list),0==a.fetch&&a.videoList?pJ(this,a.videoList):qJ(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Xa&&(this.j=[]);D(b,function(a){a&&this.j.push({video_id:a})},this);this.xc=this.j.length;b=E(this.j,function(a){return a.video_id});rJ(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.re=!0}else a.videoList&&pJ(this,a.videoList);
wr(this,!!a.shuffle);a.suggestedQuality&&(this.quality=a.suggestedQuality);for(var c in Kr.j)b="playlist_"+c,b=a[b+"_webp"]||a[b],cg(b)&&(this.C[Kr.j[c]]=b)}z(lJ,S);f=lJ.prototype;f.ig=!1;f.startSeconds=0;f.Yr=!1;f.Xa=0;f.title="";f.xc=0;f.oq=!1;f.re=!1;f.Ug=!1;f.We=null;function sJ(a){return a.ig||a.Xa+1<a.xc}function tJ(a){var b=a.Xa+1;b>=a.xc&&(b=a.ig?0:-1);return b}function uJ(a){var b=tJ(a);if(-1==b)return null;vJ(a,b);return xr(a,b)}
function wJ(a){var b;b=a.Xa-1;0>b&&(b=a.ig?a.xc-1:-1);if(-1==b)return null;vJ(a,b);return xr(a,a.Xa)}function xr(a,b){var c=void 0!=b?b:a.Xa,c=a.j&&c in a.j?a.j[a.o[c]]:null,d=null;c&&(d=new Kr(c),d.startSeconds=a.startSeconds||d.clipStart||0,a.A&&(d.playlistId=a.A.toString()));return d}
function wr(a,b){a.Yr=b;var c=a.o&&null!=a.o[a.Xa]?a.o[a.Xa]:a.Xa;a.o=[];for(var d=0;d<a.j.length;d++)a.o.push(d);a.Xa=c;a.B++;if(a.Yr){c=a.o[a.Xa];for(d=1;d<a.o.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.o[d];a.o[d]=a.o[e];a.o[e]=g}for(d=0;d<a.o.length;d++)a.o[d]==c&&(a.Xa=d);a.B++}a.L("shuffle")}f.Qd=function(a){return this.C[a||"hqdefault.jpg"]};function vJ(a,b){a.Xa=Pc(b,0,a.xc-1);a.startSeconds=0}
function mJ(a,b){a.Ug||(a.A=new tE("UU","PLAYER_"+b),rJ(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function nJ(a,b){a.Ug||(a.A=new tE("FL","PLAYER_"+b),rJ(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function oJ(a,b){if(!a.Ug){a.A=new tE("SR",b);var c={search_query:b};a.oq&&(c.mob="1");rJ(a,"/search_ajax?style=json&embeddable=1",c)}}
function qJ(a){if(!a.Ug){var b={list:a.A},c=xr(a);c&&c.videoId&&(b.v=c.videoId);rJ(a,"/list_ajax?style=json&action_get_list=1",b)}}function rJ(a,b,c){Gj(Ve(b,c),{format:"JSON",jb:function(a,b){xJ(this,b)},onError:function(){this.L("error")},context:a})}
function xJ(a,b){if(b.video&&b.video.length){a.title=b.title;a.description=b.description;a.views=b.views;a.author=b.author;var c=xr(a);a.j=[];D(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.j.push(a))},a);a.xc=a.j.length;yJ(a,c);wr(a,!1);a.Ug=!1;a.re=!0;a.B++;a.We&&a.We()}}function pJ(a,b){0<a.Xa&&(a.j=[]);D(b,function(a){this.j.push(a)},a);a.xc=a.j.length;a.re=!0}
function yJ(a,b){if(b){var c=b.videoId;if(!a.j[a.Xa]||a.j[a.Xa].video_id!=c)for(var d=0;d<a.j.length;d++)if(a.j[d].video_id==c){a.Xa=d;break}}}f.P=function(){this.We=null;Ai(this.j);lJ.K.P.call(this)};function zJ(){Q.call(this);this.j=[];this.D={};this.A={};this.B={};this.o=this.F=null;this.C=[];this.G=null}z(zJ,Q);zJ.prototype.Jo=function(a){if(this.o){var b;var c=ka(a);b=this.D[c];if(!b)if(this.o){if(b=a(this.o)){a=this.D[c]=b;for(var d in this.F)a.subscribe(d,this.F[d]);a.subscribe("command_log_timing",this.H,this);R(this,b)}}else b=null;b&&b.Ha(this.o)&&!G(this.j,b)&&(b.Na(),this.j.push(b),G(this.C,b.xa)&&(b.Yb=this.G,b.nj(!!b.Yb)))}};
function AJ(a){a.j=eb(a.j,function(a){if(!this.o||a.bn(this.o)){try{a.destroy()}catch(c){Xf(c)}return!1}return!0},a)}function sD(a,b){if(!a.o||b.bn(a.o))ob(a.j,b),b.destroy()}function BJ(a,b,c){CJ(a);a.G=b;a.C=sb(c);D(a.j,function(a){0<=cb(c,a.xa)&&(a.Yb=b,a.nj(!!a.Yb))})}function CJ(a){D(a.C,function(a){if(a=jr(this,a))a.Yb=null,a.nj(!1)},a);a.G=null;a.C=[]}function DJ(a,b){if(!b)return E(a.j,function(a){return a.xa});var c=jr(a,b);return c?c.kg():[]}
function jr(a,b){return F(a.j,function(a){return a.xa==b})}zJ.prototype.I=function(a,b){D(this.j,function(c){c.L(a,b)})};function EJ(a){var b={};D(a.j,function(a){qa(b,a.Bh())});return b}zJ.prototype.H=function(a,b){qa(this.B,a||null);qa(this.A,b||null)};zJ.prototype.isAvailable=function(a){a=jr(this,a);return!(!a||!a.gi)};function FJ(a,b,c){this.B=b;this.j=c;this.A=a}FJ.prototype.getMessage=function(){return this.B};FJ.prototype.getErrorCode=function(){return this.j};FJ.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.o?" Caused by: "+this.o:"")};function GJ(a,b){fm.call(this,"adError");this.A=a;this.B=b?b:null}z(GJ,fm);var HJ="acceptinvitation acceptinvitationlinear click close collapse complete creativeview engagedview exitfullscreen expand firstquartile fullscreen midpoint mute pause progress replay resume rewind skipshown skip start stop thirdquartile unmute userClose videoShareClicked videoShareShown measurable_impression viewable_impression".split(" "),IJ="acceptinvitation click collapse creativeview expand progress close".split(" ");function JJ(a,b,c){fm.call(this,a);this.B=b;this.A=null!=c?c:null}z(JJ,fm);JJ.prototype.getAd=function(){return this.B};
var KJ={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",cK:"videoClicked",sH:"engagedview",vH:"expandedChanged",STARTED:"start",co:"impression",nI:"measurable_impression",lo:"viewable_impression",PAUSED:"pause",fJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",Jv:"skipshown",vJ:"skippableStateChanged",
AG:"adMetadata",zG:"adBreakReady",kI:"log",VOLUME_CHANGED:"volumeChange",oK:"mute",gH:"companionBackfill",xK:"youTubeVideoMetadata",wK:"youTubeChannelMetadata",aK:"urlNavigationRequested"};var LJ=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"],MJ=/\bocr\b/,NJ=0,OJ={};function PJ(a){return A(B(a))?!1:(new J(a)).Af().match(MJ)?!0:null!=F(LJ,function(b){return null!=a.match(b)})}
function QJ(a){if(a){var b=I("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"});a=Dd(b).body;var c,d=vn(function(){Gm(c);Wd(b)},15E3);c=Em(b,["load","error"],function(){vn(function(){wn(d);Wd(b)},5E3)});a.appendChild(b)}}function RJ(a){if(a){var b=new Image,c=""+NJ++;OJ[c]=b;b.onload=b.onerror=function(){delete OJ[c]};b.src=a}};var SJ=["ADSENSE","ADSENSE/ADX"],TJ=["DART","DART_DFA","DART_DFP"],UJ=["FREEWHEEL"],VJ=["GDFP"],WJ={"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"},XJ={wI:"video/mp4",yI:"video/mpeg",lI:"application/x-mpegURL",II:"video/ogg",IJ:"video/3gpp",rK:"video/webm",vI:"audio/mpeg",xI:"audio/mp4"};var YJ=["google-developers.appspot.com","devsite.googleplex.com"],ZJ=["*.googlesyndication.com"],$J=["*.youtu.be","*.youtube.com"],aK="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(" "),
bK=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function cK(a,b){try{var c=nf(new J(b)),c=c.replace(/^www./i,"");return gb(a,function(a){return dK(a,c)})}catch(d){return!1}}function dK(a,b){if(A(B(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 eK(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+aK.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new J(a),af(a,"https"),a.toString()):a};function fK(a){window.open(eK(a),"_blank")}function gK(a,b,c){null!=a?(K(a,"label",b),null!=c&&K(a,"value",c.join(";")),a=a.toString()):a="";hK(a)}function hK(a,b,c,d,e){null!=b&&(a=iK(a,b));null!=c&&(A(B(c))||(b=new J(a),Af(b.j,"label")&&(K(b,"acvw",c),a=b.toString().replace(/%2C/g,","))));null!=e&&(a=jK(a,e));a=eK(a);null!=d&&d?QJ(a):(c=a)&&(PJ(c)?QJ(c):RJ(c))}function kK(a,b){null!=a&&D(a,function(a){hK(a,b)})}
function jK(a,b,c){if(A(B(b)))return a;var d=new J(a);return c||Af(d.j,"label")?(K(d,"ged",b),d.toString()):a}function iK(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=Xb(b,a),d=d.toString();if(!A(B(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(e){}return a})};function lK(a,b){this.message=a;this.errorCode=b}lK.prototype.getErrorCode=function(){return this.errorCode};lK.prototype.getMessage=function(){return this.message};
var mK=new lK("Unable to request ads from server. Cause: {0}.",1005),nK=new lK("Unable to request ads from server due to network error.",1012),oK=new lK("Cannot parse the {0} value for the adslist response: {1}.",900),pK=new lK("Invalid usage of the API. Cause: {0}",900),qK=new lK("Unable to display one or more required companions.",602),rK=new lK("There was a problem requesting ads from the server.",1005),sK=new lK("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
tK=new lK("The provided ad type: {0} is not supported.",1005),uK=new lK("The provided {0} information: {1} is invalid.",1101),vK=new lK("The response does not contain any valid ads.",1009),wK=new lK("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),xK=new lK("The ad playlist response was malformed or empty.",1010),yK=new lK("The ad response was not understood and cannot be parsed.",1010),zK=new lK("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",
900),AK=new lK("The ad response contains unexpected element. Cause {0}.",1010),BK=new lK("No assets were found in the VAST ad response.",200),CK=new lK("Duplicate node in <{0}>: {1}",101),DK=new lK("The VAST response document is empty.",1009),EK=new lK("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),FK=new lK("Ad request reached a timeout.",301),GK=new lK("VAST response was malformed and could not be parsed.",100),HK=new lK("VAST media file loading reached a timeout of {0} seconds.",
402),IK=new lK("Ad request could not be completed due to a network error.",301),JK=new lK("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),KK=new lK("The maximum number of VAST wrappers ({0}) has been reached.",302),LK=new lK("VAST media file duration differs from the VAST response duration by {0} seconds.",202),MK=new lK("Video player received an ad with unexpected or incompatible linearity",201),NK=new lK("Unknown node in <{0}>: {1}",
101),OK=new lK("Invalid VAST resource type: {0}",101),PK=new lK("Invalid VAST version",102),QK=new lK("No additional VAST wrappers allowed.",300),RK=new lK("No Ads VAST response after one or more Wrappers",303),SK=new lK("There was an error playing the video ad.",400),TK=new lK("VMAP unsupported node in <{0}>: {1}",1010),UK=new lK("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);
function VK(a,b,c){return WK("adLoadError",a,b||null,vb(arguments,2))}function XK(a,b,c){return WK("adPlayError",a,b||null,vb(arguments,2))}function YK(a,b,c,d,e){var g=a.apply(null,rb([c,d],vb(arguments,3)));b.X(new JJ("log",null,g))}function WK(a,b,c,d){if(c instanceof FJ)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 FJ(a,b,e);a.o=c;return a}
function ZK(a,b,c,d){var e=XK.apply(null,rb([b,c],vb(arguments,3)));a.X(new GJ(e))};function $K(a){this.j=a}function aL(){var a=bL();return cL(a,"disableExperiments")}function cL(a,b){if(b in a.j){var c=a.j[b];if("boolean"==typeof c)return c}return!1};function dL(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};function eL(){this.o="always";this.j=!1;this.B=!0;this.D=!1;this.C=null}function fL(){return gL.D}eL.prototype.getPlayerType=function(){return""};function bL(){var a=gL;if(null==a.C){var b={},c=qf(new J(Nd().location.href));if(Af(c,"tcnfp"))try{b=lg(c.get("tcnfp"))}catch(d){}a.C=new $K(b)}return a.C}var gL=new eL;var hL={},iL="",jL=/OS (\S+) like/,kL=/Android (\S+);/;function lL(){return kd||Ma(Uc,"Mobile")}function mL(){return ld&&!md||Ma(Uc,"iPod")}function nL(){return mL()||md}function oL(a,b){if(null==hL[b]){var c;A(iL)&&(c=a.exec(Uc))&&(iL=c[1]);(c=iL)?(c=c.replace(/_/g,"."),hL[b]=0<=Ra(c,b)):hL[b]=!1}return hL[b]}
function pL(){var a=Uc;return a?Ma(a,"AppleTV")||Ma(a,"GoogleTV")||Ma(a,"HbbTV")||Ma(a,"NetCast.TV")||Ma(a,"Opera TV")||Ma(a,"POV_TV")||Ma(a,"SMART-TV")||Ma(a,"SmartTV")||kd&&Ma(a,"AFT"):!1}function qL(){return Ma(Uc,"PlayStation")}function rL(){return mL()||kd&&(!kd||!oL(kL,4))||!fL()&&(Ma(Uc,"CrKey")||qL()||Ma(Uc,"Roku")||pL()||Ma(Uc,"Xbox"))?!1:!0};function sL(){this.j=.05>Math.random();this.o=Math.floor(4503599627370496*Math.random())}ba(sL);function tL(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;c=uL(a,c);var e=new J("http://pagead2.googlesyndication.com/pagead/gen_204");Hb(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=vL();af(e,a.Mb);hK(e.toString())}}function uL(a,b){b.id="";var c=vL();b.c=a.o;b.domain=c.rb;return b}function vL(){var a=Nd(),b=document;return new J(a.parent==a?a.location.href:b.referrer)};function wL(){}f=wL.prototype;f.dw=!1;f.oo=!1;f.uo=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.zw=!1;f.Ol=!1;f.mimeTypes=null;f.surveyCreativeData=null;f.qD=!0;f.ls=!1;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.rD=!0;f.po=!1;f.Aw=!1;f.Km=0;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.nn=!1;f.loadVideoTimeout=15E3;f.vo=!0;window.console&&"function"===typeof window.console.log&&x(window.console.log,window.console);function xL(a){return window.performance&&window.performance.timing&&window.performance.timing.domLoading&&0<window.performance.timing[a]?(a=y()-window.performance.timing[a],Math.round(a/1E3)):null}function yL(){this.domLoading=xL("domLoading");this.domComplete=xL("domComplete");this.unloadEventStart=xL("unloadEventStart")}yL.prototype.toString=function(){function a(a){a=Xb(c,a);null!=a?b.push(""+a):b.push("u")}var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};
function zL(a){var b={},c=new yL,d=null;null!=c.domLoading&&(d=c.domLoading);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};function AL(a){for(var b=[],c=a=Nd(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};var BL=null;function CL(){this.j={};this.o=0}function DL(a,b){this.B=a;this.A=!0;this.j=b}DL.prototype.getValue=function(){return this.j};DL.prototype.F=function(){return this.A?this.o():""};DL.prototype.o=function(){return String(this.j)};function EL(a,b){DL.call(this,a,b);this.j=!!b}z(EL,DL);EL.prototype.o=function(){return this.j?"1":"0"};function FL(a){DL.call(this,"sv",a);this.j=null==a?"1":"2"}z(FL,DL);FL.prototype.o=function(){return String(this.j)};function GL(a,b){DL.call(this,a,b)}
z(GL,DL);GL.prototype.o=function(){return this.j?Math.round(this.j.top)+"."+Math.round(this.j.left)+"."+(Math.round(this.j.top)+Math.round(this.j.height))+"."+(Math.round(this.j.left)+Math.round(this.j.width)):""};function HL(a){if(a.match(/^-?[0-9]+\.-?[0-9]+\.-?[0-9]+\.-?[0-9]+$/)){a=a.split(".");var b=Number(a[0]),c=Number(a[1]);return new GL("",new ug(c,b,Number(a[3])-c,Number(a[2])-b))}return new GL("",new ug(0,0,0,0))}function IL(){BL||(BL=new CL);return BL}
CL.prototype.setItem=function(a){this.j[a.B]=a};CL.prototype.getItem=function(a){return Xb(this.j,a,null)};CL.prototype.F=function(){var a=[],b;for(b in this.j){var c=this.j[b].F();c&&a.push(b+c)}return a.join("_")};function JL(a){var b=null;a&&(b=a());if(b){a=IL();a.j={};var c=new EL("ef",!0);c.A=!1;a.setItem(c);c=Nd().document;c=c.webkitVisibilityState||c.mozVisibilityState||c.visibilityState||c.msVisibilityState||"";c="hidden"!=c.toLowerCase().substring(c.length-6)?!0:!1;a.setItem(new EL("tv",c));var d;try{var e;var g=Nd().top;try{e=!!g.location.href||""===g.location.href}catch(h){e=!1}if(e){var k=AL(b);d=k&&0!=k.length?"1":"0"}else d="2"}catch(l){d="2"}a.setItem(new DL("is",d));if(c){k=e=Nd().top;"2"==d&&
(k=Nd());g=KL(b,k);a.setItem(new GL("er",g));var p;try{p=k.document&&!k.document.body?null:Kd(k||window)}catch(r){p=null}a.setItem(new FL(p));p?(k=re(Bd(k.document)),a.setItem(new EL("sp",!!k)),p=k?new ug(k.x,k.y,p.width,p.height):null):p=null;a.setItem(new GL("vi",p));if(p&&"1"==d){d=AL(b);b=[];for(k=0;k<d.length;k++)(c=KL(d[k],e))&&b.push(c);b.push(p);p=LL(b)}ML(a,g,p)}a.o&&(d=Math.round(y()/1E3)-a.o,a.setItem(new DL("ts",d)));a.o=Math.round(y()/1E3)}else a=IL(),a.j={},a.o=Math.round(y()/1E3),a.setItem(new EL("ef",
!1));return a}function LL(a){var b=new ug(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new ug(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++)if(!yg(b,a[d]))return c;return b}function KL(a,b){var c=a.getBoundingClientRect(),d=Qg(a,b);return new ug(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))}
function ML(a,b,c){if(b&&c){var d;i:{d=Math.max(b.left,c.left);var e=Math.min(b.left+b.width,c.left+c.width);if(d<=e){var g=Math.max(b.top,c.top),h=Math.min(b.top+b.height,c.top+c.height);if(g<=h){d=new ug(d,g,e-d,h-g);break i}}d=null}e=d?d.height*d.width:0;g=d?b.height*b.width:0;d=d&&g?Math.round(e/g*100):0;a.setItem(new DL("vp",d));d&&0<d?(e=vg(b),g=vg(c),e=e.top>=g.top&&e.top<g.bottom):e=!1;a.setItem(new EL("ct",e));d&&0<d?(e=vg(b),g=vg(c),e=e.bottom<=g.bottom&&e.bottom>g.top):e=!1;a.setItem(new EL("vb",
e));d&&0<d?(e=vg(b),g=vg(c),e=e.left>=g.left&&e.left<g.right):e=!1;a.setItem(new EL("vl",e));d&&0<d?(b=vg(b),c=vg(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new EL("vr",c))}}
function NL(a,b,c){if(b&&c){b=HL(b).getValue();c=HL(c).getValue();var d=null;a.getItem("er")&&(d=a.getItem("er").getValue(),d.top+=b.top,d.left+=b.left,a.setItem(new GL("er",d)));if(a.getItem("vi")){var e=a.getItem("vi").getValue();e.top+=b.top;e.left+=b.left;var g=[];g.push(e);g.push(b);g.push(c);b=LL(g);ML(a,d,b);a.setItem(new GL("vi",c))}}};dc("m","c","s","t");function OL(a){this.j=bc.apply(null,arguments);return this}OL.prototype.set=function(a,b){this.j[a]=b};function PL(a,b){var c=Xb(a.j,"eb",0);a.j.eb=c|b}OL.prototype.get=function(a){return Xb(this.j,a,null)};OL.prototype.extend=function(a){ac(this.j,a)};OL.prototype.F=function(){var a=[],b;for(b in this.j)a.push(b+this.j[b]);return a.join("_")};var QL=null,RL=null;function SL(a,b){var c=0;Qb(Nd(),"ima","video","client","tagged")&&(c=1);this.A=JL(a);this.o=new OL("ta",c,"ve",2);c&&PL(this.o,1);Qb(Nd(),"ima","video","client","periscopeTag")&&PL(this.o,4);Qb(Nd(),"ima","video","client","sdkTag")&&PL(this.o,8);Qb(Nd(),"ima","video","client","jsTag")&&PL(this.o,2);b&&Xb(b,"fullscreen",!1)&&PL(this.o,16);var d=null;this.j=null;if(c&&(c=Qb(Nd(),"ima","video","client"),c.getEData)){this.j=c.getEData();if(!("getTimeSinceTagLoadSeconds"in this.j)){var e=this;this.j.extendWithDataFromTopIframe=
void 0;this.j.getTimeSinceTagLoadSeconds=function(){return Xb(e.j,"tt",null)};this.j.serialize=function(){var a="",b;for(b in e.j)"serialize"!=b&&"getTimeSinceTagLoadSeconds"!=b&&(a=a?a+("_"+b+e.j[b]):b+e.j[b]);return a}}if(d=Qb(Nd(),"ima","video","client","getLastSnapshotFromTop"))if(d=d())this.j.extendWithDataFromTopIframe(d.buckets,d.tt,d.pd),NL(this.A,d.er,d.vi);d=this.j.getTimeSinceTagLoadSeconds()}this.o.extend(zL(d))}
SL.prototype.F=function(){var a=[],b=this.o.F();b&&a.push(b);this.j&&(b=this.j.serialize())&&a.push(b);(b=this.A.F())&&a.push(b);return a.join("_")};function TL(a,b){try{return(new SL(a,b)).F()}catch(c){return"tle;"+La(c.name,12)+";"+La(c.message,40)}};var UL={jo:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",Ev:"resume",SKIPPED:"skip",lo:"viewable_impression",wv:"mute",Pv:"unmute",FULLSCREEN:"fullscreen",Tu:"exitfullscreen"},VL={UNKNOWN:-1,jo:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,Ev:7,SKIPPED:8,lo:9,wv:10,Pv:11,FULLSCREEN:12,Tu:13};function WL(a){try{return!!a&&null!=a.location.href&&Bg(a,"foo")}catch(b){return!1}}function XL(a){var b=[1,2];if(!(1E-4>Math.random())){var c=Math.random();if(c<a){try{var d=new Uint16Array(1);window.crypto.getRandomValues(d);c=d[0]/65536}catch(e){c=Math.random()}return b[Math.floor(c*b.length)]}}return null};var YL=document,ZL=window;function $L(a){var b=a.toString();a.name&&-1==b.indexOf(a.name)&&(b+=": "+a.name);a.message&&-1==b.indexOf(a.message)&&(b+=": "+a.message);if(a.stack){a=a.stack;var c=b;try{-1==a.indexOf(c)&&(a=c+"\n"+a);for(var d;a!=d;)d=a,a=a.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");b=a.replace(/\n */g,"\n")}catch(e){b=c}}return b}function aM(a){ZL.google_image_requests||(ZL.google_image_requests=[]);var b=ZL.document.createElement("img");b.src=a;ZL.google_image_requests.push(b)};function bM(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(null,a[c],c,a)}function cM(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)};var dM=!0,eM={};function fM(a,b,c,d){var e=gM,g,h=dM;try{g=b()}catch(k){try{var l=$L(k);b="";k.fileName&&(b=k.fileName);var p=-1;k.lineNumber&&(p=k.lineNumber);h=e(a,l,b,p,c)}catch(r){try{var t=$L(r);a="";r.fileName&&(a=r.fileName);c=-1;r.lineNumber&&(c=r.lineNumber);gM("pAR",t,a,c,void 0,void 0)}catch(C){hM({context:"mRE",msg:C.toString()+"\n"+(C.stack||"")},void 0)}}if(!h)throw k;}finally{if(d)try{d()}catch(V){}}return g}
function gM(a,b,c,d,e,g){var h={};if(e)try{e(h)}catch(k){}h.context=a;h.msg=b.substring(0,512);c&&(h.file=c);0<d&&(h.line=d.toString());h.url=YL.URL.substring(0,512);h.ref=YL.referrer.substring(0,512);iM(h);hM(h,g);return dM}function hM(a,b){try{if(Math.random()<(b||.01)){var c="/pagead/gen_204?id=jserror"+jM(a),d="http"+("http:"==ZL.location.protocol?"":"s")+"://pagead2.googlesyndication.com"+c,d=d.substring(0,2E3);aM(d)}}catch(e){}}function iM(a){var b=a||{};bM(eM,function(a,d){b[d]=ZL[a]})}
function kM(a,b,c,d,e){return function(){var g=arguments;return fM(a,function(){return b.apply(c,g)},d,e)}}function lM(a,b){return kM(a,b,void 0,void 0,void 0)}function jM(a){var b="";bM(a,function(a,d){if(0===a||a)b+="&"+d+"="+cM(a)});return b};function mM(){for(var a=ZL,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,WL(a)&&(b=a);return b};var nM={$J:"ud=1",Ov:"ts=1"};var oM=!1,pM="";function qM(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var rM=navigator.plugins["Shockwave Flash"];rM&&(oM=!0,rM.description&&(pM=qM(rM.description)));navigator.plugins["Shockwave Flash 2.0"]&&(oM=!0,pM="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var sM=navigator.mimeTypes["application/x-shockwave-flash"];(oM=sM&&sM.enabledPlugin)&&(pM=qM(sM.enabledPlugin.description))}else try{var tM=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),oM=!0,pM=qM(tM.GetVariable("$version"))}catch(uM){try{tM=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),oM=!0,pM="6.0.21"}catch(vM){try{tM=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),oM=!0,pM=qM(tM.GetVariable("$version"))}catch(wM){}}}var xM=oM,yM=pM;if(YL&&YL.URL)var zM=YL.URL,dM=!(zM&&(0<zM.indexOf("?google_debug")||0<zM.indexOf("&google_debug")));function AM(a,b,c,d){c=kM(d||"osd_or_lidar::"+b,c,void 0,void 0,void 0);a.addEventListener?a.addEventListener(b,c,!1):a.attachEvent&&a.attachEvent("on"+b,c);return c};function BM(a,b){var c=a||ZL;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new H(-1,-1):b?new H(c.innerWidth,c.innerHeight):Kd(c||window)}catch(d){return new H(-12245933,-12245933)}}var CM=0;
function DM(){var a=EM,b=0<=FM?GM()-FM:-1,c=HM?GM()-IM:-1,d=0<=JM?GM()-JM:-1,e;if(79463068==a)return 500;if(947190538==a)a=[4E3],e=[250,1E3];else if(947190541==a)a=[4E3],e=[100,1E3];else{if(947190542==a)return 100;if(79463069==a)return 200;a=[2E3,4E3];e=[250,500,1E3]}var g=b;-1!=c&&c<b&&(g=c);for(var h,b=0;b<a.length;++b)if(g<a[b]){h=e[b];break}void 0===h&&(h=e[a.length]);return-1!=d&&1500<d&&4E3>d?500:h}var KM=(new Date).getTime(),FM=-1,HM=!1,IM=-1,JM=-1;
function GM(){return(new Date).getTime()-KM}function LM(a){var b=[];Hb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(ea(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});return b.join("&")}function MM(){var a=I("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a}
function NM(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==Gg(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=Dd(b))){var c,d;try{if(c=Nd(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return NM(d)}return!1};function OM(a,b){this.H=a||3E3;this.G=b||3E3;this.o="u";this.C=null;this.j=[];this.D=!1;this.A=-1;this.B=0}function PM(a,b,c){this.snapshot=a;this.o=b;this.j=c}
function QM(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ra(yM,"11")&&c)||dd&&9>pd||0<a.j.length)return!1;try{var d=b.getBoundingClientRect()}catch(e){return!1}var g="DIV"==b.tagName,h=Dd(b),k=[];if(g){var l=MM(),d=RM(d);D(d,function(a,b){var d=new SM("e",h,c,String(b));this.j.push(d);k.push(x(d.G,d,l,a))},a);b.insertBefore(l,b.childNodes[0]||null)}else d=TM(a,d),D(d,function(a,d){var e=new SM("e",h,c,String(d));this.j.push(e);k.push(x(e.F,e,b,a))},a);var p=!0;D(k,function(a){p=p&&a()});p?(a.o="l",
a.C=b,a.D=!g):(D(a.j,function(a){a.remove()}),a.j=[]);return p}function RM(a){return[new Qc(Math.floor((a.right-a.left)/2),Math.floor((a.bottom-a.top)/2))]}function TM(a,b){var c;try{c=b||a.C.getBoundingClientRect()}catch(d){c=new tg(0,0,0,0)}var e=RM(c);D(e,function(a){a.x+=c.left;a.y+=c.top});return e}function UM(a){if(a.C&&a.D){var b=TM(a);D(b,function(a,b){this.j[b]&&VM(this.j[b],a)},a)}}function WM(a){D(a.j,function(a){a.remove()});a.j=[];a.o="d"}
function XM(a){var b=(new Date).getTime(),c=a.F?b-a.F:0,d=-1;4==a.j.length?(d=E(a.j,function(a){return YM(a,b)}),d=ZM(d)):1==a.j.length&&(d=[-1,0,1,2,3,5][YM(a.j[0],b)+1]);a.B=d==a.A?a.B+c:0;c=new PM(d,a.A,c);a.A=d;a.F=b;$M(a,d);UM(a);return c}function ZM(a){var b=Fb(Lb(aN));D(a,function(a){0<=a&&++b[a]});return 4==b[4]?6:3<=b[4]?5:0<b[4]?4:4==b[2]?2:4==b[1]?1:4==b[0]?0:3}function $M(a,b){0==b&&bN(a)?a.o="n":a.o="dlfcrrrr".split("")[b+1]}OM.prototype.getStatus=function(){return this.o};
function bN(a){return"n"==a.o?!0:"l"==a.o&&a.B>=a.G}
function SM(a,b,c,d){this.module=null;this.B=a;this.Ca="e"==a?String(c)+"~"+String(d):"";this.j=[];this.o=-1;this.C=0;this.A=Fb(Lb(cN));this.H=Fb(Lb(aN));"e"==this.B&&(dN[this.Ca]=x(this.D,this));dd?(a=b.createElement("div"),a.innerHTML='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" style="opacity:0;-ms-filter:\'progid:DXImageTransform.Microsoft.Alpha(opacity=0)\';filter:alpha(opacity=0)"><param name="movie" value="'+eN(this,!0)+'"></param><param name="allowscriptaccess" value="always"></param><param name="wmode" value="transparent"></param></object>',a=
a.firstChild,a.id=String(Math.random())):a=fN(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a}var aN={XJ:-1,LOADING:0,cv:1,Ju:2,YH:3,VISIBLE:4},cN={LOADING:0,cv:1,Ju:2,PJ:3,HI:4,UJ:5,VJ:6,TJ:7,KI:8,OJ:9},dN={};
function fN(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}var d=eN(a),e=b.createElement("object");e.type="application/x-shockwave-flash";e.data=d;c(e,"movie",d);c(e,"allowscriptaccess","always");c(e,"wmode","opaque");e.style.visibility="hidden";e.style.opacity=0;return e}function eN(a,b){var c="//www.gstatic.com/osd/hbt.swf";"e"==a.B&&(c=Ue("//www.gstatic.com/osd/hbe.swf","id",a.Ca));b&&(c=Ue(c,"delay","1"));return c}
SM.prototype.G=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";VM(this,b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};SM.prototype.F=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";VM(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};function VM(a,b){a.module&&!Rc(b,Lg(a.module))&&Jg(a.module,b)}
SM.prototype.remove=function(){if(this.module)try{Wd(this.module)}catch(a){}this.module=null};SM.prototype.D=function(a){this.o=a?3:4};
function YM(a,b){if("e"==a.B){var c=null;try{c=a.module.it()}catch(d){}null===c?(c=0,0<a.o&&(c=2)):c=c?3:4;++a.H[c+1];a.o=c}else{var e=Number(b),g=null;try{g=a.module.fc()}catch(h){}gN(a,g,e);c=a.j[a.j.length-1];if(null===g){if(g=e=0,0<a.o||ga(c.Sj))g=e=2}else null===c.Sj||c.kn>=e?(e=10<=g?4:0,g=0):g>c.Sj?(c=(g-c.Sj)/(e-c.kn)*1E3,e=10<=c?4:3,c=0==c?1:1>c?3:4>c?4:23>c?6:26>c?8:9,6==a.C&&6==c&&(c=7),g=c):g=e=1;6==a.C&&(--a.A[6],4==g||8==g?++a.A[5]:++a.A[7]);++a.A[g];a.o=e;a.C=g}return a.o}
function gN(a,b,c){var d=c-1E3,e=a.j.length;D(a.j,function(a,b){a.kn<=d&&(e=Math.min(e,b+1))});var g=a.j.length-e;0<g&&a.j.splice(e,g);a.j.unshift({Sj:b,kn:c})}q("gteh",kM("osd_or_lidar::gteh_ex",function(a,b){var c=dN[a];ha(c)&&c(b)}),void 0);function hN(a,b,c,d,e,g){this.j=iN.clone();this.B=this.U=0;this.ub=this.Ob=this.ba=-1;this.R=[0,0,0,0,0];this.N=[0,0,0,0,0];this.H=[0,0,0,0,0];this.ma=[0,0,0,0,0];this.S=d;this.Y=this.fb=-1;this.I=e;this.Aa=function(){};this.ve=function(){};this.J=this.element=c;this.ge=0;this.kf=-1;this.D="";this.Lc=c?String(c._avi_||""):"";this.C={};this.C.le=0;this.C.nt=2;this.C.Fr=3;this.o=this.Za=null;this.sa=!1;this.O=this.je=this.ad=null;this.oa=0;this.na=!1;this.Z=null;this.ie=this.ta=this.$a=!1;this.lf=.01>
Math.random();this.ke=null;this.jc=void 0;this.Gd=!1;this.Da=[];this.ga=void 0;this.mc=this.Ba=!1;this.G=void 0;this.ic=0;this.da=-1;this.ab=this.aa=0;this.ua=void 0;this.Ya=this.Fa=this.Ga=0;this.Ma=!1;this.A=0;this.we=this.ob=this.V=!1;this.bb=c&&c._tos_?!0:!1;this.jf=1!=this.I?0:XL(.5)||0;jN(this,c&&c._avm_);kN(this,a,g)}var iN=new tg(0,0,0,0);function jN(a,b){if(w(b)&&0!=b.length)for(var c=b.split("&"),d=0;d<c.length;d++)c[d]==nM.Ov&&(a.bb=!0)}
function lN(a,b,c,d,e){if(!(0>a.S)){var g=ZL.innerWidth,h=ZL.innerHeight,k=new tg(Math.round(ZL.mozInnerScreenY),Math.round(ZL.mozInnerScreenX+g),Math.round(ZL.mozInnerScreenY+h),Math.round(ZL.mozInnerScreenX));c=new tg(ZL.screenY+d,ZL.screenX+c.width,ZL.screenY+c.height,ZL.screenX);e||(d=new tg(k.top-c.top,k.right-c.left,k.bottom-c.top,k.left-c.left),d.top>a.j.top?a.j=d:(a.j.right=a.j.left+g,a.j.bottom=a.j.top+h),a.U=g*h);mN(a,k,c,b,e,!0)}}
function nN(a,b,c){var d=oN(a,ZL&&ZL.document);if(d){c||kN(a,ZL,!0);var e=Math.floor((a.j.left+a.j.right)/2),g=Math.floor((a.j.top+a.j.bottom)/2),h=Ld(document),d=d(e-h.x,g-h.y)?.5:0;mN(a,a.j,d,b,c,!0)}}function oN(a,b){pN(a);if(!a.Za){var c=[];D(Pb(a.C),function(a){c[this.C[a]+1]=a},a);var d=c.join(""),d=b&&b[d];a.Za=d&&x(d,b)}return a.Za}function pN(a){a.C.e=-1;a.C.i=6;a.C.n=7;a.C.t=8}
hN.prototype.update=function(a,b,c,d,e){if(0>this.S)return null;c||kN(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.ad),this.ad=null);Boolean(null)&&c&&(d.clearInterval(this.je),this.je=null);null!=this.Z&&(c?(d.clearInterval(this.O),this.O=null,this.na=!1):this.$a&&!this.O&&(this.O=d.setInterval(lM("osd_or_lidar::adblock::iem_int",x(this.Hd,this,d,1E3)),1E3),this.Hd(d)));return mN(this,this.j,b,a,c,!1)};
function mN(a,b,c,d,e,g){var h=d-a.S||1,k=null;ga(c)?b=qN(a,c):(k=c,b=qN(a,b,k));a.ga||rN(a,b,h,a.fb,g,e,k,void 0);a.fb=e?-1:b;a.S=d;-1!=b&&(0>a.ba&&(a.ba=d),a.ub=d);-1==a.Ob&&1E3<=Math.max(a.H[2],a.N[2])&&(a.Ob=d);a.Aa(a,k||iN);return a.B}
function qN(a,b,c){if(a.ob)return a.B=0,sN(a.B);if(a.V&&7==a.I)return a.B=1,sN(a.B);var d=null;if(ga(b))a.B=b;else{c=new tg(Math.max(b.top,c.top),Math.min(b.right,c.right),Math.min(b.bottom,c.bottom),Math.max(b.left,c.left));if(0>=a.U||c.top>=c.bottom||c.left>=c.right)return a.B=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof Qc?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ga(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.B=d/a.U}return sN(a.B)}
function sN(a){var b=-1;1<=a?b=0:.75<=a?b=1:.5<=a?b=2:.25<=a?b=3:0<a&&(b=4);return b}
function rN(a,b,c,d,e,g,h,k){e=e&&-1!=d&&2>=d;var l=-1==d||-1==b?-1:Math.max(d,b);d=e?l:d;-1!=d&&(a.R[d]+=c);(h=h||null)?(-1!=d&&2>=d&&-1!=a.Y&&(a.ma[a.Y]+=c),h=100*a.U/((h.bottom-h.top)*(h.right-h.left)),a.Y=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):a.Y=-1;if(7==a.I){k=n(k)?k:tN(a);h=-1!=d&&2>=d;e=.1<=k&&.1<=a.ua;e&&0==d||(a.Ma=!1);a.Ga+=c;e&&(a.Fa+=c,h?a.Ya+=c:a.aa+=c);a.aa>a.ab&&(a.ab=a.aa);if(h||!n(k)||.1>k)a.aa=0;k=n(k)?Number(k)?uN(k,3):0:k;a.ua=k}for(k=d;0<=k&&4>=k;k++)a.H[k]+=c,a.H[k]>a.N[k]&&(a.N[k]=
a.H[k]);for(k=0;k<a.H.length;++k)if(k<b||g||-1==b)a.H[k]=0}function vN(a,b,c){if(!Boolean(Boolean(a.J&&!!c&&!Zh)&&!Zh))return a.sa=!0,!1;var d=new OM;(c=QM(d,a.J,c))?(a.ve=b,a.o=d):a.sa=!0;return c}
hN.prototype.Hd=function(a,b){var c=oN(this,a&&a.document);if(c){kN(this,a,!0);var d=Math.floor((this.j.left+this.j.right)/2),e=Math.floor((this.j.top+this.j.bottom)/2),g=Ld(document),c=Boolean(c(d-g.x,e-g.y)),d=b||0;c?(this.oa+=this.na?d:0,this.na=!0):(this.oa=0,this.na=!1);1E3<=this.oa&&(a.clearInterval(this.O),this.O=null,this.$a=!1,this.Z="v");kN(this,a,!1)}else a.clearInterval(this.O),this.O=null,this.$a=!1,this.Z="i"};
hN.prototype.F=function(){var a=this.j,a=["p:",a.top,a.left,a.bottom,a.right];a.push("tos:",this.R.join(","));a.push("mtos:",this.N.join(","));a.push("rs:",this.I);5!==this.I&&6!==this.I&&(a.push("zoom:",this.ma.join(",")),a.push("ht:",this.ge));0<=this.ba&&a.push("tfs:",this.ba,"tls:",this.ub);a.push("vt:",this.Ob);7===this.I&&a.push("qid:",this.D);this.Lc&&a.push("avi:",this.Lc);this.Z&&a.push("iemv:",this.Z);this.o?a.push("swf:",this.o.getStatus()):this.sa&&a.push("swf:","-");null!=this.jc&&a.push("vl:"+
this.jc);return a.join(",")};
function kN(a,b,c){b=c?b:b.top;try{var d=iN.clone(),e=new Qc(0,0);if(a.J){if(c||2!=a.jf||!NM(a.J))d=a.J.getBoundingClientRect();if(c||!b.frameElement)e=Qg(a.J,b)}var g=e.x,h=e.y,k=d.right-d.left,l=d.bottom-d.top;a.j=new tg(Math.round(h),Math.round(g+k),Math.round(h+l),Math.round(g))}catch(p){a.j=iN.clone()}finally{a.C.Po=5,a.C.me=1,a.C.om=4}a.U=(a.j.bottom-a.j.top)*(a.j.right-a.j.left);2!=a.I&&3!=a.I&&6!=a.I||0!=a.U?(a.ie=!1,a.ke=null):(a.ie=!0,a.J&&a.J.parentElement&&a.lf&&(c=a.J.parentElement.getBoundingClientRect(),
a.ke=new tg(c.top,c.right,c.bottom,c.left)))}function wN(a,b){var c=a.ic;HM||a.ga||-1==a.da||(c+=b-a.da);return c}function tN(a){if("as"==a.G&&ha(a.element.sdkVolume))try{return Number(a.element.sdkVolume())}catch(b){return-1}if("h"==a.G){var c=u("ima.common.sdkVolume");if(ha(c))try{return Number(c(a.D))}catch(d){return-1}}}function xN(a,b){tb(a.Da,Fb(b-a.Da.length+1));a.Da[b]=(100*a.B|0)/100}
function yN(a){if(a.ta)return{"if":0};var b=a.j.clone();b.round();var c=E(a.Da,function(a){return 100*a|0}),b={"if":zN?1:void 0,sdk:a.G?a.G:void 0,p:[b.top,b.left,b.bottom,b.right],tos:a.R,mtos:a.N,ps:void 0,pt:c,vht:wN(a,GM()),mut:a.ab,a:a.ua};AN(a,b);BN&&(b.ps=[BN.width,BN.height]);a.Ba&&(b.ven="1");a.A&&(b.vds=a.A);CN()?b.c=(100*a.B|0)/100:b.tth=GM()-CM;return b}
function AN(a,b){b.avss=a.Ma;if(0==a.Ga)b.aoc=0,b.voc=0,b.avoc=0;else{var c=a.R[0]+a.R[1]+a.R[2];b.aoc=uN(a.Fa/a.Ga,2);b.voc=uN(c/a.Ga,2);b.avoc=uN(a.Ya/a.Ga,2)}}function uN(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c};function DN(){return!EN()&&(Xc("iPod")||Xc("iPhone")||Xc("Android")||Xc("IEMobile"))}function EN(){return Xc("iPad")||Xc("Android")&&!Xc("Mobile")||Xc("Silk")};var FN=null,GN=null,JN=null,KN=null,LN=!1,EM=void 0,MN=!1;
function NN(){if(!LN){LN=!0;if(!FN){var a;a=XL(.01)||0;0==a||1==a?FN=AM(ZL,"scroll",ON,"osd_or_lidar::scroll"):(GN=new xn(ON,100),a=x(GN.Ki,GN),FN=AM(ZL,"scroll",a,"osd_or_lidar::throttled_scroll"))}JN=JN||AM(ZL,"resize",PN,"osd_or_lidar::resize");a=QN;var b;YL.mozVisibilityState?b="mozvisibilitychange":YL.webkitVisibilityState?b="webkitvisibilitychange":YL.visibilityState&&(b="visibilitychange");b&&(KN=KN||AM(YL,b,a,"osd_or_lidar::visibility"));QN()}}function PN(){RN(!1);ON()}
function ON(){SN(TN,!1)}
function UN(){var a;VN&&(WN=BM(ZL,VN));a=WN;var b=XN,c=YN;if(ZN){a=b;RN(!1);var d=$N,e=d.height-a;0>=e&&(e=d.height,a=0);WN=new H(d.width,e);e=new aO;e.D=!0;e.B=WN;e.A=d;e.o=a;return e}if(c)return a=new aO,a.C=!0,a;if(bO)return a=new aO,a.F=!0,a;if(cO)return a=new aO,a.H=!0,a;i:{b=new aO;b.B=a;b.j=!1;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){try{var c=VN,g=ZL||ZL,g=g.top,e=a||BM(g,c),h=re(Bd(g.document)),d=-1==e.width||-12245933==e.width?new tg(e.width,e.width,
e.width,e.width):new tg(h.y,h.x+e.width,h.y+e.height,h.x)}catch(k){a=b;break i}b.G=d;b.j=!0}a=b}return a}
function SN(a,b){var c;if(!dO)if(window.clearTimeout(eO),eO=null,0==a.length)b||fO();else{var d=UN();try{var e=GM();if(d.D)for(c=0;c<a.length;c++)lN(a[c],e,d.A,d.o,b);else if(d.C)for(c=0;c<a.length;c++)nN(a[c],e,b);else if(cO)D(a,function(){});else if(d.F)D(a,function(a){if(b){if(a.o){var c=a.o;3<=c.A&&(c.A=3);a.fb=-1}}else if(a.o&&"d"!=a.o.getStatus()){var c=XM(a.o),d=[-1,-1,-1,-1,-1,4,2,0],e=d[c.snapshot+1];rN(a,e,c.j,d[c.o+1],!0,!1);a.fb=e;a.Aa(a,iN);7==a.I?2E3<=Math.max(a.H[2],a.N[2])&&a.o&&WM(a.o):
1E3<=Math.max(a.H[2],a.N[2])&&!a.bb&&a.o&&WM(a.o);(c=2==c.snapshot||bN(a.o))||(c=a.o,c="f"==c.o&&c.B>=c.H);c&&(a.ve(a),a.bb=!1,a.o&&WM(a.o))}});else if(d.j)for(c=0;c<a.length;c++)a[c].update(e,d.G,b,ZL,zN);++gO}finally{b?D(a,function(a){a.B=0}):fO()}}}function QN(){var a=CN();if(a){if(!HM){var b=GM();IM=b;D(TN,function(a){a.ic=wN(a,b)})}HM=!0;RN(!0)}else b=GM(),HM=!1,CM=b,D(TN,function(a){0<=a.S&&(a.da=b)});SN(TN,!a)}
function CN(){if(hO())return!0;var a;a=ZL.document;a={visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0;return 1==a||0==a}function fO(){ZL&&(eO=ZL.setTimeout(lM("osd_or_lidar::psamp_to",function(){SN(TN,!1)}),DM()))}function iO(a){return null!=F(TN,function(b){return b.element==a})}var TN=[],dO=!1,WN=null,$N=null,BN=null,eO=null,zN=!WL(ZL.top),XN=0,ZN=!1,YN=!1,bO=!1,cO=!1,VN=EN()||DN(),gO=0;
function jO(){var a=ZL.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function RN(a){WN=BM(ZL,VN);if(!a){$N=ZL.outerWidth?new H(ZL.outerWidth,ZL.outerHeight):new H(-12245933,-12245933);a=ZL;a.top!=a&&(a=a.top);var b=0,c=0,d=WN;try{var e=a.document,g=e.body,h=e.documentElement;if("CSS1Compat"==e.compatMode&&h.scrollHeight)b=h.scrollHeight!=d.height?h.scrollHeight:h.offsetHeight,c=h.scrollWidth!=d.width?h.scrollWidth:h.offsetWidth;else{var k=h.scrollHeight,l=h.scrollWidth,p=h.offsetHeight,r=h.offsetWidth;h.clientHeight!=p&&(k=g.scrollHeight,l=g.scrollWidth,p=g.offsetHeight,
r=g.offsetWidth);k>d.height?k>p?(b=k,c=l):(b=p,c=r):k<p?(b=k,c=l):(b=p,c=r)}BN=new H(c,b)}catch(t){BN=new H(-12245933,-12245933)}}}function kO(){var a=lO,b=!1;D(TN,function(c,d){if(1>Math.random()){var e=vN(c,a,String(d));b=b||e}});(bO=b)&&D(TN,function(b){Boolean(b.o)||a(b)});return b}function mO(a){D(a,function(a){iO(a.element)||TN.push(a)})}function hO(){return gb(TN,function(a){return a.V})}function aO(){this.A=this.B=null;this.o=0;this.G=null;this.j=this.H=this.F=this.C=this.D=!1};var nO=null,oO="",pO=!1;function qO(){var a=nO||ZL;if(!a)return"";var b=a.document,c=[];c.push("url="+cM(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+cM(b.referrer.substring(0,512)));b=a.location&&a.location.ancestorOrigins;if(zN&&b&&0<b.length){for(var d=[],a=b.length,e=a-1;0<=e;--e)d.push(cM(b[e]));b=d.join(",");b=b.substring(0,512);c.push("anc="+b);c.push("adep="+a)}return c.join("&")};var rO=!1,sO=!1,tO=!1;function uO(){rO=!0;try{FM=GM(),.01>Math.random()&&(tO=!0),nO=mM(),RN(!1),jO()?(window.setTimeout(function(){},1),zN?vO():NN()):pO=!0}catch(a){throw TN=[],a;}}
function vO(){var a;if(ed&&ga(ZL.screenX)&&ga(ZL.mozInnerScreenX)&&ga(ZL.outerWidth)&&1>Math.random()){var b=ZL.navigator.userAgent,c=b.indexOf("Firefox/");a=-1;if(0<=c){a=Math.floor(b.substr(c+8))||-1;var d=b.indexOf("Mac OS X 10."),c=-1;0<=d&&(c=Number(b.substr(d+12,1))||-1);var e=0<c?-1:b.indexOf("Windows NT "),d=-1;0<=e&&(d={"6.0":0,"6.1":1,"6.2":2}[b.substr(e+11,3)]||-1);b=148;5<=c?b=4<=a?108:3<=a?127:108:0<=d&&(16==a||17==a||18==a)&&(b=[[146,146,146],[148,147,148],[131,130,136]][d][a-16]);a=
b}else a=null;null!==a&&(XN=a,ZN=!0);a=!0}else a=!1;a?NN():(a=dd&&rd(8)&&1>Math.random()?YN=!0:!1,a?NN():kO()?(NN(),sO=!0):(window.clearTimeout(eO),eO=null,oO="i",dO=!0))}function lO(a){if(a){if(!a.Gd){var b=[];b.push("v=271v");b.push("r=fp");b.push("efm="+(sO?1:0));b.push(Te(yN(a)));b.push(qO());b="&"+b.join("&");aM(("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3));a.Gd=!0}a.ta=!0}}
function wO(a,b,c){var d={};ac(d,{opt_videoAdElement:void 0,opt_VideoAdLength:void 0,opt_fullscreen:void 0,opt_nativeMobile:!1},c||{});var e=a.toLowerCase();if(a=Rb(UL,function(a){return a==e})){a={e:VL[a],hd:dO?"1":"0",v:"271v",hdr:oO||void 0};if(d.opt_bounds)return a.msg="ol",LM(a);if(pO)return a.msg="ue",LM(a);b=xO(b,d);if(!b)return a.msg="nf",LM(a);rO||uO();"i"==oO&&(b.ta=!0);tO&&yO(b);c=d.opt_fullscreen;n(c)&&(b.V=Boolean(c));c={};c.start=zO;c.firstquartile=AO;c.midpoint=BO;c.thirdquartile=CO;
c.complete=DO;c.metric=EO;c.pause=FO;c.resume=GO;c.skip=HO;c.viewable_impression=EO;c.mute=IO;c.unmute=JO;c.fullscreen=KO;c.exitfullscreen=LO;if(c=c[e]){d=c(b,d);if(!n(d)||w(d))return d;ac(a,d);return LM(a)}}}function MO(a,b){if(MN!=a){MN=a;var c=gb(TN,function(a){return a.we});D(TN,function(d){a||c||(d.S=b);d.ob=a;d.we=!1})}}
function zO(a,b){"i"!=oO&&(dO=!1);!sO||Boolean(a.o)||a.sa||vN(a,lO,String(cb(TN,a)));b&&b.opt_VideoAdLength&&(a.jc=b.opt_VideoAdLength);var c=n(b)?b.opt_nativeTime:void 0;JM=c=ga(c)?c:GM();a.R=[0,0,0,0,0];a.N=[0,0,0,0,0];a.H=[0,0,0,0,0];a.ma=[0,0,0,0,0];a.S=-1;a.ba=-1;a.ub=-1;a.ge=0;a.kf=-1;a.fb=-1;a.Y=-1;a.B=0;a.S=c;var d=!1;CN()||(d=!0,a.da=c);SN([a],d);xN(a,0);1<=(100*a.B|0)/100&&.1<=a.ua&&(a.Ma=!0);return yN(a)}function AO(a){xN(a,1);SN([a],!CN());return yN(a)}
function BO(a){xN(a,2);SN([a],!CN());return yN(a)}function CO(a){xN(a,3);SN([a],!CN());return yN(a)}function DO(a){xN(a,4);SN([a],!CN());var b=yN(a);a.V=!1;NO(a.D);return b}function FO(a){a.ic=wN(a,GM());var b=!CN();SN([a],b);a.ga=!0;return yN(a)}function GO(a){var b=CN();a.ga&&!b&&(a.da=GM());SN([a],!b);a.ga=!1;return yN(a)}function EO(a){a=yN(a);a.hvem="1";return a}function HO(a){var b=!CN();SN([a],b);b=yN(a);a.V=!1;NO(a.D);return b}function IO(a){SN([a],!CN());return yN(a)}
function JO(a){SN([a],!CN());return yN(a)}function KO(a){a.V=!0;SN([a],!CN());return yN(a)}function LO(a){a.V=!1;SN([a],!CN());return yN(a)}function NO(a){if(w(a)){var b=ib(TN,function(b){return b.D==a});0<=b&&pb(TN,b)}}function xO(a,b){if(b.opt_nativeMobile)return OO(a,b);if(b.opt_videoAdElement)return PO(a,b.opt_videoAdElement);var c=QO(a);return c?c:c=F(TN,function(b){return b.D==a})}
function OO(a,b){var c=F(TN,function(b){return b.D==a});c||(c=new hN(window,0,null,b.opt_nativeTime,7,!1),c.G="n",c.Aa=RO,mO([c]),c.D=a,c.ob=MN);return c}function PO(a,b){var c=F(TN,function(a){return a.element==b});c||(c=SO(b),c.D=a,c.G="h");return c}function QO(a){var b=F(TN,function(b){return b.element?TO(b.element)==a:!1});if(b)return b;b=UO();b=F(b,function(b){return TO(b)==a});if(!b)return null;b=SO(b);b.G="as";VO(b);return b}function VO(a){var b=TO(a.element);w(b)&&(a.D=b)}
function UO(){var a=ZL.document,b=Gb(E(["embed","object"],function(b){return sb(a.getElementsByTagName(b))}));return b=eb(b,function(a){if(!a||!ae(a))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a.metricID&&ha(a.metricID)?!0:!1})}function TO(a){if(!a||!a.metricID||!ha(a.metricID))return null;var b;try{b=a.metricID()}catch(c){return null}return b.queryID}function SO(a){a=new hN(ZL,0,a,GM(),7,zN);a.Aa=RO;EM=79463069;mO([a]);NN();return a}
function RO(a){if(2E3<=Math.max(a.H[2],a.N[2])&&!a.Ba){var b="as"==a.G,c="h"==a.G,d="n"==a.G,e=u("ima.common.triggerViewEvent"),g={e:9,hmu:"1"};try{var h=LM(g);c||d?ha(e)?(e(a.D,h),a.Ba=!0):a.A=4:b?a.element&&a.element.triggerViewEvent?(a.element.triggerViewEvent(h),a.Ba=!0):a.A=1:a.A=5}catch(k){a.A=a.A||2}}else a.A=3}
function yO(a){if(a.mc||a.ta)a.A=a.A||13;else{var b="as"==a.G,c="h"==a.G;try{if(c){var d=u("ima.common.triggerMeasurableEvent");ha(d)?(d(a.D),a.mc=!0):a.A=a.A||14}else b?a.element&&a.element.triggerMeasurableEvent?(a.element.triggerMeasurableEvent(),a.mc=!0):a.A=a.A||11:a.A=a.A||15}catch(e){a.A=a.A||12}}}q("Goog_AdSense_Lidar_sendVastMessage",kM("lidar::handlevast_ex",wO),void 0);function WO(){U.call(this);this.j=null;this.B=new zn(this);R(this,this.B);this.C=null;this.G=new xe;this.F=new xe;this.A=null;this.o=!1}z(WO,U);var XO=null;function YO(){null!=XO||(XO=new WO);return XO}function ZO(a){var b=YO();a=b.G.get(a)||b.C;return null!=a?a():{}}WO.prototype.destroy=function(){this.B.Ia(this.j,"activityMonitor",this.D);this.o=!1};
WO.prototype.init=function(a){if(!this.o){(this.j=a||null)&&this.B.M(this.j,"activityMonitor",this.D);if(gL.B&&!(window.ima&&window.ima.video&&window.ima.video.client&&window.ima.video.client.tagged)){q("ima.video.client.sdkTag",!0,void 0);a=document.createElement("script");a.src=document.location.protocol+"//s0.2mdn.net/instream/video/client.js";a.async=!0;a.type="text/javascript";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}this.o=!0}};
function $O(a){if(null==a)return!1;if(mL()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=aP(a);return 0>=b-a.width&&42>=c-a.height}function aP(a){return ha(a.getBoundingClientRect)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}function bP(a,b){a.A=b}
function cP(a,b,c,d,e){if(a.o){e=e||{};if(d=d?a.F.get(d):gL.A)null!=e.opt_fullscreen||(e.opt_fullscreen=$O(d)),null!=e.opt_videoAdElement||(e.opt_videoAdElement=d);null==e.opt_bounds&&a.A&&(e.opt_bounds=aP(a.A));return wO(b,c,e)||""}return""}
WO.prototype.D=function(a){var b=a.xd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.wc){case "getViewability":d.viewabilityString=cP(this,"metric",c)||"";this.j.send("activityMonitor","viewability",d);break;case "reportVastEvent":var e=b.vastEvent;a=b.osdId;var g={};g.opt_fullscreen=b.isFullscreen;b.isOverlay&&(g.opt_bounds=b.overlayBounds);var h=null;"isFullscreen"in b&&(h=b.isFullscreen);d.viewabilityString=cP(this,e,c,a,g);d.engagementString=dP(this,a,h);this.j.send("activityMonitor","viewability",
d);break;case "fetchAdTagUrl":c={},c.eventId=b.eventId,a=b.osdId,h=null,"isFullscreen"in b&&(h=b.isFullscreen),c.engagementString=dP(this,a,h),this.j.send("activityMonitor","engagement",c)}};function dP(a,b,c){if(!gL.B)return"";var d=b?a.F.get(b):gL.A;a={};null!=c&&(a.fullscreen=c);return TL(function(){return d},a)}q("ima.common.getVideoMetadata",ZO,void 0);q("ima.common.sdkVolume",function(a){a=ZO(a).volume;return null!=a?a:-1},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=YO().j;d?d.send("activityMonitor","viewableImpression",c):YO().X(new JJ("viewable_impression",null,c))},void 0);q("ima.common.triggerMeasurableEvent",function(a){var b={};b.queryId=a;(a=YO().j)?a.send("activityMonitor","measurableImpression",b):YO().X(new JJ("measurable_impression",null,b))},void 0);function eP(a,b,c){if(lb(a))return null;a=eb(a,function(a){var b=a.B;return"application/x-mpegurl"==B(a.j).toLowerCase()||"progressive"==b});lb(c)||(c=E(c,function(a){return a.toLowerCase()}),a=eb(a,function(a){return G(c,B(a.j).toLowerCase())}));if(!ga(b)||0>=b)b=DN()?500:1E3;return fP(a,b)}function fP(a,b){return gP(a,b)||hP(a,b)||iP(a,b)}function gP(a,b){var c=null;D(a,function(a){var e=a.Wd,g=a.Vd;e>b||g<b||!(null==c||c.Wd>e)||(c=a)});return c}
function hP(a,b){var c=null;D(a,function(a){var e=a.Wd,g=a.Vd;g>b||(null==c||c.Vd<g?c=a:null!=c&&c.Vd==g&&c.Wd>e&&(c=a))});return c}function iP(a,b){var c=null;D(a,function(a){var e=a.Wd,g=a.Vd;if(!(e<b))if(null!=c&&c.Wd==e&&c.Vd<g)c=a;else if(null==c||c.Wd>e)c=a});return c};function jP(){U.call(this);this.D=this.G=this.I=this.F=!1;this.o=0;this.B=[];this.J=!1;this.A=0;this.C=new zn(this);this.H={}}z(jP,U);function kP(a,b){null==b||a.F||(a.j=b,lP(a),a.F=!0)}function mP(a){null!=a.j&&a.F&&(nP(a),a.F=!1,a.G=!1,a.D=!1,a.o=0,a.B=[],a.J=!1)}
function lP(a){nP(a);!(a.j instanceof U)&&"ontouchstart"in document.documentElement&&nL()?(a.H={touchstart:x(a.PB,a),touchmove:x(a.OB,a),touchend:x(a.NB,a)},Hb(a.H,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.C.M(a.j,"click",a.yp)}function nP(a){a.C.Ia(a.j,"click",a.yp);Hb(a.H,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.H={}}f=jP.prototype;
f.PB=function(a){this.G=!0;this.o=a.touches.length;this.A&&(window.clearTimeout(this.A),this.A=0,this.I=!0);this.J=oP(this,a.touches)||1!=a.touches.length;pP(this,a.touches)};f.OB=function(a){this.o=a.touches.length;this.D=!0};f.NB=function(a){!this.G||1!=this.o||this.D||this.I||this.J||!oP(this,a.changedTouches)||(this.A=window.setTimeout(x(this.Oo,this),300));this.o=a.touches.length;0==this.o&&(this.D=this.G=!1,this.B=[]);this.I=!1};f.yp=function(){this.Oo()};
function pP(a,b){a.B=[];D(b,function(a){nb(this.B,a.identifier)},a)}function oP(a,b){return gb(b,function(a){return G(this.B,a.identifier)},a)}f.Oo=function(){this.A=0;this.X(new fm("click"))};f.P=function(){mP(this);this.C.dispose();this.C=null;jP.K.P.call(this)};function qP(a){null!=a?cK(ZJ,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&cK($J,a)?rP(a):null:a=null;return a}function sP(a,b,c){if(null==a)return null;c=new J((null!=c?c:"//www.youtube.com/")+"watch");var d=c.j;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");ef(c,d);return c.toString()}
function rP(a){if(A(B(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=qf(new J(a));return Af(a,"v")?a.get("v").toString():Af(a,"video_id")?a.get("video_id").toString():null};function tP(a,b,c,d,e,g,h,k,l,p){this.B=a;this.j=b;this.F=c;isNaN(d)&&isNaN(e)&&isNaN(g)?g=e=0:isNaN(e)&&!isNaN(g)?e=g:!isNaN(e)&&isNaN(g)?g=e:!isNaN(d)&&isNaN(e)&&isNaN(g)&&(e=g=d);this.Wd=e;this.Vd=g;this.D=h;this.C=k;this.o=l;this.A=p}tP.prototype.getHeight=function(){return this.C};function uP(){U.call(this)}z(uP,U);var vP={QG:"beginFullscreen",CLICK:"click",pH:"end",rH:"endFullscreen",ERROR:"error",LOADED:"loaded",oI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",uJ:"skip",Jv:"skipShown",jo:"start",KJ:"timeUpdate",JJ:"timedMetadata",nK:"volumeChange"};uP.prototype.Nr=v;uP.prototype.Ep=v;uP.prototype.yf=function(){return null};function wP(a){U.call(this);this.j=a;this.V=new Mm(4);this.B=0;this.R=this.I=this.A=this.G=this.H=!1;this.O=this.rd();this.N=this.Td();this.U=15E3;this.S=!1}z(wP,uP);f=wP.prototype;
f.Kr=function(a,b,c,d){if(d&&(d=F(a,function(a){return!da(qP(a.o))}),null!==d))return d;a=eb(a,function(a){var b=a.j;A(B(a.o))||"progressive"!=a.B&&"application/x-mpegurl"!=B(b).toLowerCase()?a=!1:(b=B(b).toLowerCase(),a=A(b)||kd&&oL(kL,2.3)&&-1!=b.indexOf("application/ogg")?!1:kd&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||nL()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!A(this.j.canPlayType(b)));return a},this);return eP(a,b,c)};
f.Al=function(){return eb(Ob(XJ),function(a){return!A(this.j.canPlayType(a))},this)};f.Ym=function(a){this.U=0<a.zb?a.zb:15E3};f.load=function(a){xP(this);this.j.src=a;this.j.load();yP(this)};f.getVideoUrl=function(){return this.j.src};f.setVolume=function(a){this.j.volume=a};f.sd=function(){return this.j.volume};f.play=function(){this.S=!1;vn(this.j.play,0,this.j);this.I=!0;yP(this)};f.pause=function(){this.S=!0;this.j.pause()};
f.Og=function(){return this.j.paused?nL()||Yh?this.j.currentTime<this.j.duration:!0:!1};f.Ng=function(){return this.j.muted};f.rl=function(){mL()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};f.Td=function(){return $O(this.j)};f.wg=function(a){var b;i:{for(b=this.V.Oa();b.length;){var c=b.pop();if(0<c){b=c;break i}}b=-1}return b>=a};f.Ff=function(a){this.j.currentTime=a};f.getCurrentTime=function(){return this.j.currentTime};f.bp=function(){return zP(this)};
f.qd=function(){return isNaN(this.j.duration)?-1:this.j.duration};f.Re=function(){return this.j.ended};f.rd=function(){return new H(this.j.offsetWidth,this.j.offsetHeight)};f.Gp=function(){return this.j.seeking};f.P=function(){this.Gf();this.j=null;wP.K.P.call(this)};f.Fp=function(){return this.j.error};
f.Vi=function(){this.Gf();this.o=new zn(this);this.o.M(this.j,"canplay",this.Uz);this.o.M(this.j,"ended",this.Ey);this.o.M(this.j,"webkitbeginfullscreen",this.Sl);this.o.M(this.j,"webkitendfullscreen",this.Ip);this.o.M(this.j,"loadeddata",this.QA);this.o.M(this.j,"pause",this.Gy);this.o.M(this.j,"playing",this.kB);this.o.M(this.j,"timeupdate",this.JB);this.o.M(this.j,"volumechange",this.Hy);this.o.M(this.j,"error",this.Hp);this.D=new jP;this.o.M(this.D,"click",this.Cy);kP(this.D,this.j);this.F=new tn(1E3);
this.o.M(this.F,"tick",this.Fy);this.F.start()};f.Gf=function(){null!=this.D&&(mP(this.D),this.D=null);null!=this.F&&this.F.dispose();null!=this.o&&(this.o.dispose(),this.o=null);xP(this)};function xP(a){a.G=!1;a.A=!1;a.I=!1;a.H=!1;a.B=0;a.R=!1;a.V.clear();AP(a);yi(a.C)}function BP(a){a.A||(a.A=!0,AP(a),a.X("start"),rL()||!kd||kd&&oL(kL,3)||mL()&&(!nL()||!oL(jL,4))||a.Sl())}f.Uz=function(){var a;if(a=Zh)a=Uc,a=!(a&&(Ma(a,"SMART-TV")||Ma(a,"SmartTV")));a&&!this.R&&(this.Ff(.001),this.R=!0);Xh||CP(this)};
f.QA=function(){Xh&&CP(this)};function CP(a){a.G||(a.G=!0,a.I||AP(a),a.X("loaded"))}f.kB=function(){this.X("play");nL()||Xh||BP(this)};f.JB=function(){if(!this.A&&(nL()||Xh)){if(0>=this.getCurrentTime())return;if(Xh&&this.Re()&&1==this.qd()){this.Hp();return}BP(this)}if(nL()){if(1.5<this.getCurrentTime()-this.B){this.H=!0;this.Ff(this.B);return}this.H=!1;this.getCurrentTime()>this.B&&(this.B=this.getCurrentTime())}this.V.add(this.j.currentTime);this.X("timeUpdate")};f.Hy=function(){this.X("volumeChange")};
f.Gy=function(){var a;this.A&&nL()&&!this.S&&2>zP(this)-this.j.currentTime?(this.C=new tn(250),this.o.M(this.C,"tick",this.Pz),this.C.start(),a=!0):a=!1;a||this.X("pause")};f.Ey=function(){var a=!0;nL()&&(a=this.B>=this.j.duration-1.5);!this.H&&a&&this.X("end")};f.Sl=function(){this.X("beginFullscreen")};f.Ip=function(){this.X("endFullscreen")};f.Hp=function(){AP(this);this.X("error")};f.Cy=function(){this.X("click")};
f.Fy=function(){var a=this.rd(),b=this.Td();if(a.width!=this.O.width||a.height!=this.O.height)!this.N&&b?this.Sl():this.N&&!b&&this.Ip(),this.O=a,this.N=b};f.qw=function(){if(!this.A||!this.I&&!this.G){try{tL(sL.getInstance(),16)}catch(a){}xP(this);this.X("mediaLoadTimeout")}};f.Pz=function(){if(this.Re()||!this.Og())yi(this.C);else{var a=this.j.duration-this.j.currentTime,b=zP(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(yi(this.C),this.play())}};
function zP(a){for(var b=a.j.buffered.length-1;0<=b;){if(a.j.buffered.start(b)<=a.j.currentTime)return a.j.buffered.end(b);b--}return 0}function yP(a){a.J||(a.J=vn(a.qw,a.U,a))}function AP(a){a.J&&(wn(a.J),a.J=null)};function DP(){U.call(this);this.j=new EP;this.o=new zn(this);var a=bL();if(a){i:{if("videoElementMockDuration"in a.j&&(a=a.j.videoElementMockDuration,ga(a)))break i;a=NaN}this.duration=a}}z(DP,U);function FP(){var a=["video/mp4"],b=["video/ogg"],c=new DP;c.canPlayType=function(c){return G(a,c)?"probably":G(b,c)?"maybe":""};c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c}function GP(a){this.startTime=0;this.endTime=a}function EP(){this.length=0;this.j=[]}EP.prototype.start=function(a){return this.j[a].startTime};
EP.prototype.end=function(a){return this.j[a].endTime};f=DP.prototype;f.readyState=0;f.currentTime=0;f.duration=NaN;f.If=!0;f.Np=!1;f.autoplay=!1;f.volume=1;f.muted=!1;f.src="";f.My=1;f.playbackRate=0;f.$c=null;f.aj=0;f.CC=4;f.sg=null;f.Qj=null;
f.play=function(){this.Np&&(this.currentTime=0,this.X("timeupdate"));this.If&&(this.If=!1,this.X("play"),this.readyState=this.CC,2>=this.readyState?this.X("waiting"):this.X("playing"));if(null===this.$c||this.$c.ka())this.$c=new tn(10),this.$c.M("tick",x(this.cs,this));this.aj=y();this.$c.start();this.autoplay=!1};f.pause=function(){this.autoplay=!1;this.If||(this.$c.stop(),this.If=!0,this.X("timeupdate"),this.X("pause"))};
f.load=function(){this.readyState=0;this.If=!0;this.X("loadstart");this.setProperty("duration",isNaN(this.duration)?10+20*Math.random():this.duration);var a=this.j;a.j.push(new GP(this.duration));a.length=a.j.length;this.X("loadedmetadata");0<this.currentTime&&this.X("timeupdate");this.X("loadeddata");this.X("canplay");this.X("canplaythrough");this.X("progress");this.playbackRate=this.My};
f.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.X("seeking");this.currentTime=c;this.X("seeked");this.cs();break;case "duration":this.duration=Number(b);this.X("durationchange");break;case "volume":this.volume=Number(b),this.X("volumechange")}};f.cs=function(){var a=y()-this.aj,b=this.currentTime+a/1E3;this.aj+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.X("timeupdate");this.currentTime==this.duration&&(this.Np=this.If=!0,this.$c.stop(),this.X("ended"))};
f.P=function(){this.$c&&!this.$c.ka()&&this.$c.dispose()};f.dC=function(a){var b=null,c=null;switch(a.type){case "loadeddata":b="Loaded";break;case "playing":b="Playing";c="#00f";break;case "pause":b="Paused";break;case "ended":b="Ended",c="#000"}b&&this.Qj&&(this.Qj.innerText=b);c&&this.sg&&(this.sg.style.backgroundColor=c)};dd&&rd(8);function HP(){};var IP={},JP={},KP={};function LP(){throw Error("Do not instantiate directly");}LP.prototype.Kd=null;LP.prototype.getContent=function(){return this.content};LP.prototype.toString=function(){return this.content};function MP(a,b){var c=Bd().createElement("DIV"),d=NP(a(b||OP,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function NP(a){if(!ja(a))return String(a);if(a instanceof LP){if(a.Tc===IP)return a.getContent();if(a.Tc===KP)return ya(a.getContent())}return"zSoyz"}var OP={};function PP(a){if(null!=a)switch(a.Kd){case 1:return 1;case -1:return-1;case 0:return 0}return null}function QP(){LP.call(this)}z(QP,LP);QP.prototype.Tc=IP;function RP(a){return null!=a&&a.Tc===IP?a:a instanceof Hc?SP(Jc(a),a.zf()):SP(ya(String(String(a))),PP(a))}function TP(){LP.call(this)}z(TP,LP);TP.prototype.Tc={};TP.prototype.Kd=1;function UP(){LP.call(this)}z(UP,LP);UP.prototype.Tc=JP;UP.prototype.Kd=1;function VP(){LP.call(this)}z(VP,LP);VP.prototype.Tc={};VP.prototype.Kd=1;
function WP(){LP.call(this)}z(WP,LP);WP.prototype.Tc={};WP.prototype.Kd=1;function XP(a,b){this.content=String(a);this.Kd=null!=b?b:null}z(XP,LP);XP.prototype.Tc=KP;function YP(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var SP=function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var e=new b(String(a));void 0!==d&&(e.Kd=d);return e}}(QP);YP(TP);YP(UP);var ZP=YP(VP);YP(WP);var $P={},aQ={};
function bQ(a,b,c){var d="key_"+a+":"+b,e=$P[d];if(void 0===e||0>e)$P[d]=0,aQ[d]=c;else if(0==e)throw Error('Encountered two active delegates with the same priority ("'+a+":"+b+'").');}function cQ(a,b){var c=aQ["key_"+a+":"+b];c||""==b||(c=aQ["key_"+a+":"]);return c?c:dQ;throw Error('Found no active impl for delegate call to "'+a+":"+b+'" (and not allowemptydefault="true").');}function dQ(){return""}
(function(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a,d){var e=String(a);if(!e)return"";e=new b(e);void 0!==d&&(e.Kd=d);return e}})(QP);function eQ(a){return RP(a)}var fQ=/['()]/g;function gQ(a){return"%"+a.charCodeAt(0).toString(16)}function hQ(a){if(null!=a&&a.Tc===JP)return String(a).replace(iQ,jQ);if(a instanceof yc)return a=Ac(a),String(a).replace(iQ,jQ);a=wa(String(a));fQ.lastIndex=0;return fQ.test(a)?a.replace(fQ,gQ):a}var kQ={};
function lQ(a){kQ[1]||(kQ[1]=new HP);var b=PP(a);if(null==b){var c=b=0,d=!1;a=gc(a+"",null!=a&&a.Tc===IP).split(mc);for(var e=0;e<a.length;e++){var g=a[e];jc.test(gc(g,void 0))?(b++,c++):kc.test(g)?d=!0:ic.test(gc(g,void 0))?c++:nc.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return ZP(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var mQ={"\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 jQ(a){return mQ[a]}var iQ=/[\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 nQ(a){return""+cQ("a",a.zi)(a)}
bQ("a","",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div><div class="videoAdUiLearnMore">'+RP(a.Of)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+RP(a.Of)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+eQ(lQ(a.Qc))+
">"+RP(a.Qc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+eQ(lQ(a.mf))+">"+RP(a.mf)+'</div></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
bQ("a","redesign2014q4",function(a){a=a||{};return'<div class="videoAdUi"><div class="videoAdUiTopBar videoAdUiTopBarWithGradients"><div class="videoAdUiAuthorIcon"></div><div class="videoAdUiTopButtons"><div class="videoAdUiTopButton videoAdUiTopButtonInfo"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+RP(a.infoText)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonShare"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip videoAdUiTopButtonShareTooltip">'+
RP(a.MK)+'</div></div></div><div class="videoAdUiTopButton videoAdUiTopButtonWatchLater"><div class="videoAdUiTopButtonCallout"><div class="videoAdUiTopButtonTooltip">'+RP(a.NK)+'</div></div></div></div><div class="videoAdUiTitle ellipsisText"></div><div class="videoAdUiAuthorName ellipsisText"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiBottomBarText"><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+eQ(lQ(a.Qc))+">"+RP(a.Qc)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+
eQ(lQ(a.mf))+">"+RP(a.mf)+'</div></div></div></div><div class="videoAdUiVisitAdvertiserLink"><div class="videoAdUiVisitAdvertiserLinkText"></div><div class="videoAdUiVisitAdvertiserIcon"></div></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'});
function oQ(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+eQ(lQ(a.Qc))+">"+RP(a.Qc)+'</div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}
function pQ(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+eQ(lQ(a.Qc))+">"+RP(a.Qc)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+RP(a.Of)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar" dir="ltr"><div class="videoAdUiProgress"></div></div></div>'}
function qQ(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'}function rQ(){return"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f"}function sQ(a){return""+cQ("b",a.zi)(a)}
bQ("b","",function(a){a=a||{};var b="";a="\u0420\u0435\u043a\u043b\u0430\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 "+(RP(a.wn)+"\u00a0\u0441.");return b+a});
bQ("b","redesign2014q4",function(a){a=a||{};var b="";a="\u0420\u0435\u043a\u043b\u0430\u043c\u0443 \u043c\u043e\u0436\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0447\u0435\u0440\u0435\u0437 "+RP(a.wn);return b+a});function tQ(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton">'+RP(a.dD)+'<div class="videoAdUiSkipIcon"></div></button></div>'}
function uQ(a){var b="";a=2<=a.Tj&&1<=a.bi?"\u041e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0435 "+(RP(a.bi)+(" \u0438\u0437 "+(RP(a.Tj)+(" "+RP(a.Rj))))):"\u041e\u0441\u0442\u0430\u043b\u043e\u0441\u044c "+RP(a.Rj);return b+=a};function vQ(a,b,c){if(null==a||!ce(Dd(a),a))throw XK(uK,null,"containerElement","element");this.C=a;this.o=this.j=null;this.B=b;this.D=c;this.A=null;this.j=I("div",{style:"display:none;"});a=bL();cL(a,"useVideoElementMock")?(a=FP(),b=I("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),qa(b,a),a.sg=I("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.Qj=I("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.sg.appendChild(a.Qj),b.appendChild(a.sg),a.o.M(a,["loadeddata","playing","pause","ended"],a.dC),a=b):a=I("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430"});a.setAttribute("webkit-playsinline",!0);this.o=a;this.C.appendChild(this.j);this.j.appendChild(this.o);this.B&&(a=I("div",{id:this.B,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.j.appendChild(a));this.D&&(this.A=I("div",
{style:"position:absolute;width:100%;height:100%;"}),this.j.appendChild(this.A))}z(vQ,Q);vQ.prototype.initialize=function(){lL()&&this.o.load()};vQ.prototype.P=function(){Wd(this.j);vQ.K.P.call(this)};vQ.prototype.$=function(){wQ(this.j,!1)};function wQ(a,b){null!=a&&(a.style.display=b?"block":"none")};function xQ(a){U.call(this);this.I="ima-chromeless-video";var b=null;null!=a&&(w(a)?this.I=a:b=a);this.J=new zn(this);this.C=null;this.A=!1;this.Y=this.rd();this.U=this.Td();this.F=-1;this.S=!1;this.D=-1;this.o=this.O=this.G=null;this.V="";this.j=!1;this.ba=null!=b;this.H=this.R=this.ca=null;this.B=void 0;this.Z=null;null!=b?(this.j=!0,this.ca=b,this.B=2):(a=x(this.xw,this),yQ?a():(zQ.push(a),a=Rd("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,
b)))}z(xQ,uP);var AQ=["video/mp4","video/webm"],BQ={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},zQ=[],yQ=!1;f=xQ.prototype;f.Kr=function(a,b,c){var d=F(a,function(a){return!da(qP(a.o))});if(null!==d)return d;a=eb(a,function(a){a=B(a.j);return this.j?this.ca.canPlayType(a):G(AQ,a)},this);lb(c)||(d=eP(a,b,c));return null!=d?d:eP(a,b,[])};f.Ym=function(a){this.o=a};f.load=function(a,b){null!==a&&(this.V=a,this.j?CQ(this,a,b):(this.G=a,this.O=b))};f.getVideoUrl=function(){return this.V};
f.setVolume=function(a){this.ba?this.X("volumeChange"):this.j?(a=Pc(100*a,0,100),this.ca.setVolume(a),this.D=-1,this.X("volumeChange")):this.D=a};f.sd=function(){return this.j?this.ca.getVolume()/100:this.D};f.play=function(){if(!A(B(this.V))){if(!this.A){DQ(this);var a=15E3;null!=this.o&&0<this.o.zb&&(a=this.o.zb);this.da=vn(this.fB,a,this)}this.j?(this.S=!1,!this.A&&this.o&&this.o.j?this.ca.loadVideoByPlayerVars(this.Z):this.ca.playVideo()):this.S=!0}};f.pause=function(){this.j&&this.A&&this.ca.pauseVideo()};
f.Og=function(){return this.j?2==this.ca.getPlayerState(this.B):!1};f.Ng=function(){return this.j?this.ca.isMuted():0==this.sd()};f.rl=function(){};f.Td=function(){var a=gL.j?gL.A:document.getElementById(this.I);return a?$O(a):!1};f.wg=function(a){return this.j?this.ca.getCurrentTime(this.B)>=a:!1};f.Ff=function(a){this.j?this.ca.seekTo(a,!1):this.F=a};f.getCurrentTime=function(){return this.j?this.ca.getCurrentTime(this.B):-1};
f.bp=function(){return this.j&&this.A?this.ca.getVideoLoadedFraction(this.B)*this.ca.getDuration(this.B):0};f.qd=function(){return this.j&&this.A?this.ca.getDuration(this.B):-1};f.Fp=function(){return null};f.Al=function(){return Ob(XJ)};f.Re=function(){return this.j?0==this.ca.getPlayerState(this.B):!1};f.rd=function(){var a=gL.j?gL.A:document.getElementById(this.I);return a?new H(a.offsetWidth,a.offsetHeight):new H(0,0)};f.Gp=function(){return!1};
f.Ly=function(){var a=this.rd(),b=this.Td();if(a.width!=this.Y.width||a.height!=this.Y.height)!this.U&&b?this.X("beginFullscreen"):this.U&&!b&&this.X("endFullscreen"),this.Y=a,this.U=b};f.Vi=function(){this.R=x(this.Pq,this);this.H=x(this.Tl,this);this.ba&&(this.ca.addEventListener("onAdStateChange",this.H),this.ca.addEventListener("onReady",this.R),this.ca.addEventListener("onStateChange",this.H));this.N=new tn(1E3);this.J.M(this.N,"tick",this.Ly);this.N.start()};
f.Gf=function(){this.ba&&(this.ca.removeEventListener("onAdStateChange",this.H),this.ca.removeEventListener("onReady",this.R),this.ca.removeEventListener("onStateChange",this.H));null!=this.N&&this.N.dispose()};f.xw=function(){var a=this.I,b={playerVars:Yb(BQ),events:{onError:x(this.iB,this),onReady:x(this.Pq,this),onAdStateChange:x(this.Tl,this),onStateChange:x(this.Tl,this)}},c=u("YT");this.ca=null!=c&&null!=c.Player?new c.Player(a,b):null};
function CQ(a,b,c){var d={};if(null!=a.o){var e=a.o.o;null!=e&&(d.agcid=e);e=a.o.C;null!=e&&(d.adformat=e);(e=a.o.A)&&(d.cta_conversion_urls=e);d.iv_load_policy=fL()&&a.o.D?1:3;a.o.B&&(d.noiba=1);a.o.F&&(d.utpsa=1)}e=qP(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.A=!1;a.o&&a.o.j?(a.Z=d,a.ca.preloadVideoByPlayerVars(a.Z)):a.ca.cueVideoByPlayerVars(d);a.X("loaded")}f.iB=function(){this.X("error")};
f.Pq=function(){this.j=!0;-1!=this.D&&(this.setVolume(this.D),this.D=-1);null!=this.G&&(CQ(this,this.G,this.O),this.O=this.G=null);-1!=this.F&&(this.Ff(this.F),this.F=-1);this.S&&this.play()};f.Tl=function(a){switch(a.data){case 0:this.A?this.X("end"):this.X("error");break;case 1:this.A||(DQ(this),this.A=!0,this.X("start"));this.X("play");EQ(this);this.C=new tn(100);this.J.M(this.C,"tick",this.Bq);this.C.start();break;case 2:this.X("pause"),EQ(this)}};
function EQ(a){a.J.Ia(a.C,"tick",a.Bq);null!=a.C&&(a.C.stop(),a.C=null)}function DQ(a){null!=a.da&&wn(a.da)}f.Bq=function(){this.X("timeUpdate")};f.fB=function(){this.X("mediaLoadTimeout")};f.Ep=function(a,b){this.j&&this.ca.addInfoCardXml(a,b)};f.yf=function(){if(!this.j)return null;var a=this.ca.getVideoData();return a?a.cpn:null};f.Nr=function(a){this.j&&qP(this.getVideoUrl())&&this.ca.sendVideoStatsEngageEvent(a)};
f.P=function(){EQ(this);DQ(this);this.Gf();this.j=!1;this.J.dispose();this.F=-1;this.O=null;this.S=!1;this.G=null;this.D=-1;this.R=this.ca=this.o=null;this.A=!1;this.V="";xQ.K.P.call(this)};q("onYouTubeIframeAPIReady",function(){yQ=!0;D(zQ,function(a){a()});mb(zQ)},window);function FQ(a){U.call(this);this.j=a||Ua();this.o=[]}z(FQ,U);FQ.prototype.A=!1;FQ.prototype.connect=function(){for(this.A=!0;!lb(this.o);){var a=this.o.shift();GQ(this,a.name,a.type,a.data)}};FQ.prototype.send=function(a,b,c){this.A?GQ(this,a,b,c):this.o.push({name:a,type:b,data:c})};function HQ(a,b,c,d,e){fm.call(this,a);this.wc=b;this.xd=c;this.xp=d;this.B=e}z(HQ,fm);HQ.prototype.getOrigin=function(){return this.B};HQ.prototype.toString=function(){return""};function IQ(a,b){FQ.call(this,b);this.B=a;this.Jc=null;this.C=new zn(this);this.logger=null;this.C.M(Nd(),"message",this.receive)}z(IQ,FQ);function JQ(a){if(null==a||!w(a)||!ta(a,"ima://"))return null;a=a.substr(6);try{return lg(a)}catch(b){return null}}function GQ(a,b,c,d){null!=a.Jc&&null!=a.Jc.postMessage&&a.Jc.postMessage(KQ(a,b,c,d),"*");null!=a.Jc&&null==a.Jc.postMessage&&tL(sL.getInstance(),11)}IQ.prototype.P=function(){this.C.dispose();IQ.K.P.call(this)};
IQ.prototype.receive=function(a){a=a.j;var b=JQ(a.data);if(null!=b){if(null==this.Jc)this.Jc=a.source;else if(this.Jc!=a.source)return;var c=b.channel;null!=c&&c==this.B&&(c=b.sid,null!=c&&("*"!=this.j&&c!=this.j||this.X(new HQ(b.name,b.type,b.data||{},b.sid,a.origin))))}};function KQ(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.j;e.channel=a.B;return"ima://"+ng(e)};function LQ(a,b){U.call(this);this.B=a;this.A=b;this.j={};this.o=new zn(this);this.o.M(Nd(),"message",this.C)}z(LQ,U);LQ.prototype.send=function(a){var b=a.A;this.j.hasOwnProperty(b)&&this.j[b].send(a.type,a.wc,a.xd)};function MQ(a,b,c,d){a.j.hasOwnProperty(b)||(c=new IQ(b,c),a.o.M(c,a.B,function(a){a=new NQ(a.type,a.wc,a.xd,a.xp,a.getOrigin(),b);this.X(a)}),c.Jc=d,c.connect(),a.j[b]=c)}LQ.prototype.P=function(){this.o.dispose();for(var a in this.j)yi(this.j[a]);LQ.K.P.call(this)};
LQ.prototype.C=function(a){a=a.j;var b=JQ(a.data);if(null!=b){var c=b.channel;if(this.A&&!this.j.hasOwnProperty(c)){var d=b.sid;MQ(this,c,d,a.source);this.X(new NQ(b.name,b.type,b.data||{},d,a.origin,c))}}};function NQ(a,b,c,d,e,g){HQ.call(this,a,b,c,d,e);this.A=g}z(NQ,HQ);function OQ(){var a=u("google.ima.gptProxyInstance",Nd());if(null!=a)return a;zn.call(this);this.A=new LQ("gpt",!0);R(this,this.A);this.M(this.A,"gpt",this.D);this.j=null;PQ()||Nd().top===Nd()||(this.j=new LQ("gpt",!1),R(this,this.j),this.M(this.j,"gpt",this.C))}z(OQ,zn);function PQ(){return!!u("googletag.cmd",Nd())}function QQ(){var a=u("googletag.console",Nd());return null!=a?a:null}
OQ.prototype.D=function(a){var b=a.getOrigin(),c=Ie("//imasdk.googleapis.com"),b=Ie(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)MQ(this.j,a.A,a.xp,Nd().parent),null!=this.j&&this.j.send(a);else if(c=a.xd,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.wc,"isGptPresent"==c?d=PQ():"isConsolePresent"==c&&(d=null!=QQ());else if(PQ())if("pubads"==b||"companionAds"==b){d=a.wc;var e,g=Nd().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.wc,e=QQ(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.wc;d=Nd();if(G(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.xd.returnValue=d,this.A.send(a))}};OQ.prototype.C=function(a){this.A.send(a)};function RQ(a,b,c,d,e,g,h,k){this.C=a;this.o=b;this.A=c;this.B=h;this.D=d;this.F=e;this.zb=g;this.j=k};function SQ(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 C=c.shift();if("undefined"==typeof C)throw Error("[goog.string.format] Not enough arguments");arguments[0]=C;return TQ[p].apply(null,arguments)})}
var TQ={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Oa(" ",c-a.length):Oa(" ",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+Oa(" ",a):g+Oa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return TQ.f(parseInt(a,
10),b,c,d,0,g,h,k)}};TQ.i=TQ.d;TQ.u=TQ.d;function UQ(a,b){U.call(this);this.B=new zn(this);this.G=!1;this.H=Ua();this.D=new xe;var c=this.H,c=I("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+SQ("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});Dn(this.B,c,"load",this.Mw);a.appendChild(c);this.o=c;c=this.D.get("*");null==c&&(c=new IQ(this.H,"*"),this.G&&(c.Jc=de(this.o),c.connect()),this.D.set("*",c));this.C=c;this.F=b;this.j=this.F.A;
this.A=null;this.B.M(this.C,"mouse",this.Cx);this.B.M(this.C,"touch",this.ay);null!=this.j&&(this.B.M(this.C,"displayContainer",this.qx),this.B.M(this.C,"videoDisplay",this.Yx),this.B.M(this.j,Ob(vP),this.cC));var c=Nd(),d=u("google.ima.gptProxyInstance",c);null==d&&(d=new OQ,q("google.ima.gptProxyInstance",d,c))}z(UQ,U);f=UQ.prototype;f.P=function(){this.B.dispose();null!==this.A&&(this.A.dispose(),this.A=null);ve(this.D.bc(!1),function(a){a.dispose()});this.D.clear();Wd(this.o);UQ.K.P.call(this)};
f.Cx=function(a){var b=a.xd,c=Pg(this.o),d=document.createEvent("MouseEvent");d.initMouseEvent(a.wc,!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(!Zh||nL()||0==document.webkitIsFullScreen)this.o.blur(),window.focus();this.o.dispatchEvent(d)};
function VQ(a,b){var c=Pg(a.o),d=E(b,function(a){return document.createTouch(window,this.o,a.identifier,a.pageX+c.x,a.pageY+c.y,a.screenX,a.screenY)},a);return document.createTouchList.apply(document,d)}
f.ay=function(a){var b=a.xd,c=Pg(this.o),d=document.createEvent("TouchEvent");d.initTouchEvent(a.wc,!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,VQ(this,b.touches),VQ(this,b.targetTouches),VQ(this,b.changedTouches),b.scale,b.rotation);this.o.dispatchEvent(d)};
f.Yx=function(a){if(null!=this.j){var b=a.xd;switch(a.wc){case "startTracking":this.j.Vi();break;case "stopTracking":this.j.Gf();break;case "exitFullscreen":this.j.rl();break;case "play":this.j.play();break;case "pause":this.j.pause();break;case "load":this.j.load(b.videoUrl,b.mimeType);break;case "setCurrentTime":this.j.Ff(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Ym(new RQ(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading))}}};
f.cC=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 "loaded":a="loaded";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.j.Re();break;case "play":a="play";break;case "skip":a="skip";break;case "start":a="start";break;case "timeUpdate":a="timeupdate";b.currentTime=this.j.getCurrentTime();b.duration=
this.j.qd();break;case "volumeChange":a="volumeChange";b.volume=this.j.sd();break;default:return}this.C.send("videoDisplay",a,b)};f.qx=function(a){switch(a.wc){case "showVideo":null!=this.A?mP(this.A):(this.A=new jP,this.B.M(this.A,"click",this.ZB));kP(this.A,WQ(this.F));a=this.F;null!=a.j&&wQ(a.j.j,!0);break;case "hide":null!==this.A&&(this.A.dispose(),this.A=null),this.F.$()}};f.ZB=function(){this.C.send("displayContainer","videoClick")};
f.Mw=function(){ve(this.D.bc(!1),function(a){a.Jc=de(this.o);a.connect()},this);this.G=!0};function XQ(a,b,c,d){if(null==a||!ce(Dd(a),a))throw XK(uK,null,"containerElement","element");this.B=a;var e=null!=b||null!=d,g=e,h=!1;gL.j||(nL()||kd||Ma(Uc,"CrKey")||qL()||Ma(Uc,"Roku")||pL()||Ma(Uc,"Xbox"))&&e||(lL()||Ma(Uc,"CrKey")||qL()||Ma(Uc,"Roku")||pL()||Ma(Uc,"Xbox")||(h=!0),g=!1);this.D=g;this.G=h||g&&null!=d;gL.j?a=null:(e=I("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.o=a;this.j=!this.D&&this.o&&!gL.j&&lL()?new vQ(this.o,null,!0):null;a=null;this.D?b?a=new wP(b):
d&&(a=new xQ(d)):this.j&&(a=new wP(this.j.o));this.C=(this.A=a)?c||null:null;this.H=null!=this.C;tL(sL.getInstance(),8,{enabled:this.D,yt:null!=d,customClick:null!=this.C});null===this.o&&(b=this.B,gL.A=b);this.F=null==this.o||gL.j?null:new UQ(this.o,this)}XQ.prototype.initialize=function(){null!=this.j&&this.j.initialize()};XQ.prototype.destroy=function(){yi(this.j);yi(this.F);yi(this.A);Wd(this.o)};XQ.prototype.$=function(){null!=this.j&&this.j.$()};
function WQ(a){return a.H&&a.C?a.C:null!=a.j?a.j.A:null};function YQ(a,b,c,d,e,g){var h=[];h.push(b||"");h.push(c||"");h.push(d||"");h.push(e||"");c=b="";if(null!=g){b=[];c=0;for(d=g;d&&25>c;d=d.parentNode,++c)b.push(9!=d.nodeType&&d.id||"");b=b.join();i:{if(g&&g.nodeName&&g.parentElement){c=g.nodeName.toString().toLowerCase();d=g.parentElement.childNodes;for(var k=e=0;k<d.length;++k){var l=d[k];if(l.nodeName&&l.nodeName.toString().toLowerCase()==c){if(g==l){c="."+e;break i}++e}}}c=""}}h.push(b,c);if(null!=a)h.push(Ye(a,"ad_type")||""),h.push(Ye(a,"videoad_start_delay")||
""),h.push(Ye(a,"sz")||""),h.push(Ye(a,"vpos")||""),h.push(Ye(a,"mridx")||""),h.push(Ye(a,"vad_type")||"");else for(a=0;8>a;++a)h.push("");h.join(":");h=h.join(":");a=h.length;if(0==a)h=0;else{g=305419896;for(b=0;b<a;b++)g^=(g<<5)+(g>>2)+h.charCodeAt(b)&4294967295;h=0<g?g:4294967296+g}return h.toString()};function ZQ(){U.call(this);this.currentTime=0}z(ZQ,U);function $Q(a){ZQ.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw XK(uK,null,"content","currentTime");this.o=a;this.j=new tn(250);this.A=new zn(this);Cn(this.A,this.j,"tick",this.B,this)}z($Q,ZQ);$Q.prototype.start=function(){this.j.start()};$Q.prototype.stop=function(){this.j.stop()};$Q.prototype.P=function(){$Q.K.P.call(this);this.A.dispose();this.j.dispose()};
$Q.prototype.B=function(){if("currentTime"in this.o&&!isNaN(this.o.currentTime)){var a=this.currentTime;this.currentTime=this.o.currentTime;a!=this.currentTime&&this.X(new fm("currentTimeUpdate"))}else this.X(new fm("contentWrapperError")),this.stop()};function aR(){this.reset()}aR.prototype.reset=function(){this.j=0;this.o=null};var bR;
bR={C:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],B:["\u0434\u043e \u043d. \u044d.","\u043d. \u044d."],F:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),S:"\u042f\u0424\u041c\u0410\u041c\u0418\u0418\u0410\u0421\u041e\u041d\u0414".split(""),D:"\u044f\u043d\u0432\u0430\u0440\u044f \u0444\u0435\u0432\u0440\u0430\u043b\u044f \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440\u0435\u043b\u044f \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433\u0443\u0441\u0442\u0430 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f \u043e\u043a\u0442\u044f\u0431\u0440\u044f \u043d\u043e\u044f\u0431\u0440\u044f \u0434\u0435\u043a\u0430\u0431\u0440\u044f".split(" "),O:"\u044f\u043d\u0432\u0430\u0440\u044c \u0444\u0435\u0432\u0440\u0430\u043b\u044c \u043c\u0430\u0440\u0442 \u0430\u043f\u0440\u0435\u043b\u044c \u043c\u0430\u0439 \u0438\u044e\u043d\u044c \u0438\u044e\u043b\u044c \u0430\u0432\u0433\u0443\u0441\u0442 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044c \u043e\u043a\u0442\u044f\u0431\u0440\u044c \u043d\u043e\u044f\u0431\u0440\u044c \u0434\u0435\u043a\u0430\u0431\u0440\u044c".split(" "),
I:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442\u0430 \u0430\u043f\u0440. \u043c\u0430\u044f \u0438\u044e\u043d\u044f \u0438\u044e\u043b\u044f \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),V:"\u044f\u043d\u0432. \u0444\u0435\u0432\u0440. \u043c\u0430\u0440\u0442 \u0430\u043f\u0440. \u043c\u0430\u0439 \u0438\u044e\u043d\u044c \u0438\u044e\u043b\u044c \u0430\u0432\u0433. \u0441\u0435\u043d\u0442. \u043e\u043a\u0442. \u043d\u043e\u044f\u0431. \u0434\u0435\u043a.".split(" "),
aa:"\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0432\u0442\u043e\u0440\u043d\u0438\u043a \u0441\u0440\u0435\u0434\u0430 \u0447\u0435\u0442\u0432\u0435\u0440\u0433 \u043f\u044f\u0442\u043d\u0438\u0446\u0430 \u0441\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),Y:"\u0412\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435 \u041f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a \u0412\u0442\u043e\u0440\u043d\u0438\u043a \u0421\u0440\u0435\u0434\u0430 \u0427\u0435\u0442\u0432\u0435\u0440\u0433 \u041f\u044f\u0442\u043d\u0438\u0446\u0430 \u0421\u0443\u0431\u0431\u043e\u0442\u0430".split(" "),
N:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),U:"\u0412\u0441 \u041f\u043d \u0412\u0442 \u0421\u0440 \u0427\u0442 \u041f\u0442 \u0421\u0431".split(" "),G:"\u0432\u0441 \u043f\u043d \u0432\u0442 \u0441\u0440 \u0447\u0442 \u043f\u0442 \u0441\u0431".split(" "),R:"\u0412\u041f\u0412\u0421\u0427\u041f\u0421".split(""),J:["1-\u0439 \u043a\u0432.","2-\u0439 \u043a\u0432.","3-\u0439 \u043a\u0432.","4-\u0439 \u043a\u0432."],H:["1-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b",
"2-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","3-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b","4-\u0439 \u043a\u0432\u0430\u0440\u0442\u0430\u043b"],j:["AM","PM"],o:["EEEE, d MMMM y '\u0433'.","d MMMM y '\u0433'.","d MMM y '\u0433'.","dd.MM.yy"],Ga:["H:mm:ss zzzz","H:mm:ss z","H:mm:ss","H:mm"],A:["{1}, {0}","{1}, {0}","{1}, {0}","{1}, {0}"],Zu:0,Z:[5,6],$u:6};function cR(a,b,c,d,e,g){w(a)?(this.A="y"==a?b:0,this.o="m"==a?b:0,this.j="d"==a?b:0,this.B="h"==a?b:0,this.C="n"==a?b:0,this.D="s"==a?b:0):(this.A=a||0,this.o=b||0,this.j=c||0,this.B=d||0,this.C=e||0,this.D=g||0)}cR.prototype.equals=function(a){return a.A==this.A&&a.o==this.o&&a.j==this.j&&a.B==this.B&&a.C==this.C&&a.D==this.D};cR.prototype.clone=function(){return new cR(this.A,this.o,this.j,this.B,this.C,this.D)};
cR.prototype.add=function(a){this.A+=a.A;this.o+=a.o;this.j+=a.j;this.B+=a.B;this.C+=a.C;this.D+=a.D};function dR(a,b,c){ga(a)?(this.date=eR(a,b||0,c||1),fR(this,c||1)):ja(a)?(this.date=eR(a.getFullYear(),a.getMonth(),a.getDate()),fR(this,a.getDate())):(this.date=new Date(y()),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0))}function eR(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=dR.prototype;f.Yo=bR.Zu;
f.Zo=bR.$u;f.clone=function(){var a=new dR(this.date);a.Yo=this.Yo;a.Zo=this.Zo;return a};f.getFullYear=function(){return this.date.getFullYear()};f.getMonth=function(){return this.date.getMonth()};f.getDate=function(){return this.date.getDate()};f.getTime=function(){return this.date.getTime()};f.set=function(a){this.date=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.A||a.o){var b=this.getMonth()+a.o+12*a.A,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;i:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break i;case 5:case 8:case 10:case 3:d=30;break i}d=31}d=Math.min(d,this.getDate());this.date.setDate(1);this.date.setFullYear(c);this.date.setMonth(b);this.date.setDate(d)}a.j&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.j),this.date.setDate(1),this.date.setFullYear(a.getFullYear()),
this.date.setMonth(a.getMonth()),this.date.setDate(a.getDate()),fR(this,a.getDate()))};f.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};f.toString=function(){return[this.getFullYear(),Pa(this.getMonth()+1),Pa(this.getDate())].join("")+""};function fR(a,b){a.getDate()!=b&&a.date.setUTCHours(a.date.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.date.valueOf()};function gR(){this.o=this.j=null}gR.prototype.reset=function(){this.o=this.j=null};function hR(){this.j=iR();this.H=-1;this.N=this.O=this.A=this.G=this.B=null;this.D=iR();this.o=null;this.R=this.I=this.J="";this.F=this.S=this.C=null}function iR(){return Math.floor(4503599627370496*Math.random())}var jR=new hR;hR.prototype.clear=function(){this.j=iR();this.A=this.G=this.B=null;this.D=iR();this.o=null;this.R=this.I=this.J="";this.F=this.S=this.C=null};function kR(a){if(gL.j)return"h.3.0.0";var b="h."+a.R;null!=a.C&&(b+="/n."+a.C,null!=a.B&&(b+="/"+a.B));return b};function lR(a,b){this.D=a;this.C=E(b,function(a){return a.clone()});this.B="";this.j=this.A=0;this.o=!0}function mR(a){a.B="";a.A=0;a.j=0;a.o=!0}lR.prototype.getContent=function(){return this.B};lR.prototype.clone=function(){var a=new lR(this.D,this.C),b=this.A,c=this.j,d=this.o;a.B=this.B;a.A=b;a.j=c;a.o=d;return a};function nR(){U.call(this);this.B=!1;this.impressionUrls=[]}z(nR,U);function oR(a){fm.call(this,a)}z(oR,fm);function pR(){nR.call(this);this.G=[];this.C=!1;this.A="not_loaded";this.o=null;this.D=0;this.j=null;this.H=new Cd}z(pR,nR);ba(pR);function qR(a){var b=["googletag","googletag.cmd"];return F(a,function(a){return hb(b,function(b){return!da(u(b,a))})})||null}f=pR.prototype;f.P=function(){this.o&&this.o.dispose()};f.initialize=function(){if(!this.B){var a;var b=qe(new Cd);try{u("googletag"),qR([b,b.top]),a=!0}catch(c){a=!1}a?rR(this):(this.B=!0,this.A="not_available")}};
function sR(a){return a.B?E(a.G,function(a){return a.clone()}):[]}function tR(a){a=sR(a);return null!=a?E(a,function(a){return a.C}):void 0}function uR(a,b,c){var d=0,e=0;null!=b&&(b=new J(b.adTagUrl),d=Number(tf(b,"pod")||0),e=Number(tf(b,"ppos")||0));if(null!=a.setVideoSession)try{a.setVideoSession(jR.j,d,e,c)}catch(g){}}function vR(a,b){var c=wR(a);if(null!==c){uR(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}f.setVideoContent=function(a,b){var c=xR(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};
function yR(a,b){a.F=b;a.setVideoContent("","");var c=wR(a);uR(c,null,!1)}function wR(a){null==a.j&&zR(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null}function xR(a){null==a.j&&zR(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null}f.Rq=function(){0<this.D&&y()>=this.D?(this.B=!0,AR(this),BR(this)):rR(this)};function AR(a){a.o&&(a.o.stop(),a.o.Ia("tick",a.Rq,!1,a),a.o.dispose(),a.o=null)}
function rR(a){var b;if(b=!a.C)zR(a),b=null!=a.j&&null!=a.j.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.j)a.C=!0,c=[];else{var d=a.j.googleGetCompanionAdSlots();c=E(d,a.SC,a)}}catch(e){a.C=!0,c=[]}a.G=c;a.C=!0}if("retrieved"!=a.A&&"not_available"!=a.A&&!da(wR(a))){var g;b=wR(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.A=g;break;default:g=Number(g),isNaN(g)?a.A="not_available":
(a.F=g,a.A="retrieved")}}a.C&&"retrieved"==a.A?(a.B=!0,AR(a),a.X(new oR("companions_success"))):a.C&&"not_available"==a.A?(a.B=!0,AR(a),BR(a)):a.o||(a.D=y()+5E3,a.o=new tn(100),a.o.M("tick",a.Rq,!1,a),a.o.start())}function zR(a){var b=qe(a.H);try{a.j=qR([b,b.top])}catch(c){a.j=null}}function BR(a){a.X(new oR("companion_initialization_failed"))}f.SC=function(a){var b=E(a.adSizes,function(a){return new H(a.adWidth,a.adHeight)});return new lR(a.slotId,b)};
f.bw=function(a){var b={};b.slotId=a.D;b.adContent=a.getContent();b.adWidth=a.A;b.adHeight=a.j;b.friendlyIframeRendering=a.o;return b};f.sendImpressionUrls=function(a){kK(this.impressionUrls,a)};function CR(a){fm.call(this,a)}z(CR,fm);function DR(){U.call(this);this.A=[]}z(DR,U);DR.prototype.so=function(){return!0};function ER(){return new FR("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new xe)}DR.prototype.Ee=function(){return null};function GR(a){DR.call(this);this.j=a;this.D=null;this.F=!1;this.o=null;this.C=new zn;Cn(this.C,this.j,["companions_success","companion_initialization_failed"],this.xB,this);Cn(this.C,this.j,"companion_display_error",this.cA,this);this.j.B?this.F=!0:this.j.initialize()}z(GR,DR);f=GR.prototype;f.destroy=function(){null!=this.C&&this.C.dispose();this.o=null};function HR(a,b){a.o=b;a.B=!0;a.F?IR(a):(a.B=JR(KR(b),[]),a.B||(a.o=null))}
function IR(a){var b=a.o;a.o=null;if(null!=a.j)if(lb(a.A))LR(a);else if(null!=b){var c=MR(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(E(a.A,d.bw,d)),d.sendImpressionUrls()}catch(e){d.X(new oR("companion_display_error"))}if(0<c.length&&b.ga&&(d=a.j,0!=c.length&&"GDFP"==NR(b,!0))){a=[];for(var g=0;g<c.length;g++)a.push(c[g].D);b=b.A;c=wR(d);if(null!==c){uR(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else LR(a)}function LR(a){a.X(new CR("companion_display_error"))}f.so=function(){return this.B};
f.xB=function(){null!=this.D&&(this.D.stop(),this.D.dispose(),this.D=null);if(null!=this.j){var a=sR(this.j);null!=a&&(this.A=a)}this.F=!0;null!=this.o&&IR(this);this.X(new fm("initialized"))};f.cA=function(){LR(this)};
function MR(a,b){var c=[],d=[];D(a.A,function(a){mR(a);gb(a.C,function(d){i:{var e=OR(b);d=PR(new QR(new H(d.width,d.height)),e);if(!lb(d)&&(d=RR(d,c),null!=d)){e=d.A;if(null!=e&&0!=a.D.indexOf(e)){d=!1;break i}c.push(d);var e=d.getContent(),l=d.j.ud(),p=d.getHeight();d="IFrame"!=d.j.U;a.B=e;a.A=l;a.j=p;a.o=d;d=!0;break i}d=!1}return d},this)||d.push(a)},a);var e=KR(b);a.B=JR(e,c);a.B||D(a.A,function(a){mR(a)},a);return d}
function JR(a,b){if(null==a)return!0;var c=a.j;return"all"==a.o?SR(c,b):"any"==a.o?TR(c,b):!0}function KR(a){return null==a||null==a.j||isNaN(a.j.j)?null:F(UR(a,!0),function(a){a=a.j;return lb(a)?!1:isNaN(a[0].j.j)?!1:a[0].j.j==VR(a[0])})}function SR(a,b){return hb(a,function(a){return G(b,a)})}function TR(a,b){return gb(a,function(a){return G(b,a)})}function RR(a,b){return F(a,function(a){return!G(b,a)})}f.Ee=function(){return this.j};function WR(a){fm.call(this,a);this.D=[];this.C={};this.A=null;this.B=!0}z(WR,fm);function XR(){this.o=new xe;this.j=.01>Math.random()&&!fL();this.B=0;this.A="0"}ba(XR);var YR=/iu\=\/(\d+)\//;XR.prototype.start=function(a){this.j&&this.o.set(a,y())};XR.prototype.end=function(a,b){if(this.j&&ze(this.o,a)){var c=y()-this.o.get(a),d=ZR(this,a,c,b);hK(d);this.o.remove(a);this.B+=c}};function ZR(a,b,c,d){d=d||{};var e=new J("https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5");d.it=b+"."+c;d.sdkv=kR(jR);Hb(d,function(a,b){K(e,b,a)},a);return e.toString()}
function $R(a,b){if(null!=b){var c=xa(b),c=YR.exec(c);a.A=c&&2==c.length?c[1]:"0"}else a.A="0"};function aS(a,b,c){this.D=b;this.B=c;this.C=null;this.o=new zn(this);this.I=a;this.A=this.j=null;this.F=!1}aS.prototype.start=function(a,b){this.C=a;this.H=b;bS(this);this.D.F?this.G():Fn(this.o,this.D,"initialized",this.G,this)};aS.prototype.G=function(){var a=this.D.Ee(),b;b=a.B?"retrieved"!=a.A?void 0:a.F:void 0;a=tR(a);null!=b&&(this.B.D=b);null!=a&&(this.B.F=a);cS(this)};
function cS(a){if(null===a.C)dS(a);else{var b=new J(a.C.adTagUrl),c=B(tf(b,"vid")),b=B(tf(b,"cmsid")),d=a.B.J,e=a.B.I;a.B.J=c;a.B.I=b;if(A(B(c))||A(B(b)))dS(a);else if(c==d&&b==e)dS(a);else{var g=a.D.Ee();g.setVideoContent(c,b);vR(g,a.C);a.A=new tn(100);Cn(a.o,a.A,"tick",function(){var a;i:{var b=xR(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break i}catch(c){a=!0;break i}a=!1}a&&dS(this)},a);a.A.start()}}}
function bS(a){a.j=new tn;Fn(a.o,a.j,"tick",function(){dS(this)},a);un(a.j,a.I);a.j.start()}function dS(a){null!=a.o&&(a.o.dispose(),a.o=null);null!=a.j&&(a.j.stop(),a.j=null);null!=a.A&&(a.A.stop(),a.A=null);a.F=!0;null===a.H||a.H()};function eS(){U.call(this);this.j=new xe;this.o=null;this.D=new zn(this);R(this,this.D);this.C="";this.A=null}z(eS,U);var fS=null;function gS(){null!=fS||(fS=new eS);return fS}function hS(a,b){a.A=b}function iS(a,b){if(a.o){var c=a.j,d=window.setTimeout(function(){b("");D(c.Ka(),function(a){c.get(a)===b&&c.remove(a)})},200);a.j.set(d,b);var e={};a.B&&(e.isFullscreen=a.B.Td());e.osdId=a.C;e.eventId=d;a.o.send("activityMonitor","fetchAdTagUrl",e)}else b("")}
function jS(a,b,c,d){if(a.o){var e=a.j,g=window.setTimeout(function(){d("");D(e.Ka(),function(a){e.get(a)===d&&e.remove(a)})},200);a.j.set(g,d);var h={};a.B&&(h.isFullscreen=a.B.Td());a.C&&(h.osdId=a.C);h.queryId=c;h.eventId=g;h.vastEvent=b;h.isOverlay=null!=a.A;a.A&&(h.overlayBounds=aP(a.A));a.o.send("activityMonitor","reportVastEvent",h)}else d("")}eS.prototype.destroy=function(){this.D.Ia(this.o,"activityMonitor",this.F);this.o=null};
eS.prototype.F=function(a){var b=a.xd,c=b.engagementString;switch(a.wc){case "appStateChanged":MO(b.appState,b.nativeTime);break;case "measurableImpression":c={};c.queryId=b.queryId;gS().X(new JJ("measurable_impression",null,c));break;case "viewableImpression":c=b.viewabilityString;a={};a.queryId=b.queryId;a.viewabilityString=c;gS().X(new JJ("viewable_impression",null,a));break;case "viewability":a=b.eventId;window.clearTimeout(a);var d=this.j.get(a);d&&(this.j.remove(a),d(b.viewabilityString,c));
break;case "engagement":if(a=b.eventId,window.clearTimeout(a),d=this.j.get(a))this.j.remove(a),d(c)}};q("ima.bridge.getNativeViewability",function(a,b){gS();b({})},void 0);function kS(){};function lS(a){return VK(NK,null,a.parentNode.nodeName,a.nodeName)}function mS(a){return VK(CK,null,a.parentNode.nodeName,a.nodeName)}function nS(a,b){return null!=a?eb(Yd(a),function(a){return a.nodeName==b}):[]}function oS(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function pS(a,b){if(null==a)return null;var c="";D(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=va(c);return b?Ha(c):c}
function qS(a,b,c,d){null!=a&&D(Yd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw lS(a);})}function rS(a){return A(B(a))?NaN:Va(B(a))}function sS(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new cR(0,0,0,Va(c[0]),Va(c[1]),Va(c[2])),60*(60*(24*c.j+c.B)+c.C)+c.D}return null!=b?b:-1}function tS(a,b){if(!A(B(a)))switch(a.toLowerCase()){case "true":case "1":return!0;case "false":case "0":return!1}return null!=b?b:!1};function uS(a,b,c){this.o=a;this.j=c;this.A=b};function vS(a){this.A=a};function wS(a){this.A=a;this.o=this.j=!1}z(wS,vS);function xS(a,b,c){this.j=a;this.o=b;this.A=c};function yS(){this.j=new xe}function zS(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];ze(a.j,c)&&(d=a.j.get(c,[]));D(b,function(a){null!=a&&nb(d,a)});a.j.set(c,d)};function AS(a,b){this.j=a;this.o=b}z(AS,kS);AS.prototype.A=function(){return new uS(this.j,null,BS(this))};
function BS(a){var b=new yS;D(Yd(Zd(a.j)),function(a){switch(a.nodeName){case "Preroll":a=CS(this,a);zS(b,a,0);break;case "Midroll":var d=oS(a,"timeOffset"),e=sS(d);if(-1==e)throw VK(oK,null,"timeOffset",B(d));a=CS(this,a);zS(b,a,e);break;case "Postroll":a=CS(this,a);zS(b,a,-1);break;default:throw VK(yK,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.j.Ka().length)throw VK(xK);return b}
function CS(a,b){var c=[];D(Yd(b),function(a){switch(a.nodeName){case "Ad":var b=B(pS(a));if(!A(b)){a=oS(a,"bumper");var g=this.o.clone();g.adTagUrl=b;b=new wS(g);b.j=null!=a;b.o="always"==a;nb(c,b)}break;default:throw VK(yK,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function DS(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 ES(a){var b={};D(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=va(d[0]),d=va(d[1]),0<a.length&&(b[a]=d))});return b}function FS(a,b){if(a[b])return GS(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return GS(a[d]);return!1}
function GS(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1};var HS=["ai","sigh"];function IS(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?JS(a)?0:2:-1!=a.indexOf("/pagead/conversion")?JS(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+kR(jR);var d=a.indexOf("&adurl=");c=-1!=d?Qa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}function JS(a){return hb(HS,function(b){var c=a||"";return 0<=We(c,0,b,c.search(Xe))})};function KS(a,b){this.j=a;this.o=b}function LS(a){return a.o?-1:a.j}function MS(a,b){a.o&&(a.o=!1,a.j=a.j*b/100)};function NS(){this.j=new xe}function OS(a,b){this.A=a;this.j=b}function PS(a,b){OS.call(this,"progress",a);this.o=b}z(PS,OS);function QS(a,b){D(b,function(a){var b=a.A.toLowerCase(),e=RS(this,b);e.push(a);this.j.set(b,e)},a)}function SS(a,b,c,d){b=b.toLowerCase();var e=RS(a,b);null!=d?(d=new PS(c,d),null!=d?e.push(d):e.push(new OS(b,c))):e.push(new OS(b,c));a.j.set(b,e)}function RS(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]}
function TS(a,b){var c=RS(a,"progress");D(c,function(a){MS(a.o,b)});zb(c,function(a,b){return LS(a.o)-LS(b.o)})}NS.prototype.isEmpty=function(){return this.j.isEmpty()};function US(a,b){return E(RS(a,b)||[],function(a){return a.j})};function VS(a,b){var c=new NS;qS(a,"Tracking",function(a){var e=oS(a,"event"),g=IS(pS(a),b);WS(g)&&null!=e&&("progress"==e?(a=oS(a,"offset"),a=XS(a),null!=a&&SS(c,e,g,a)):SS(c,e,g))});return c}function YS(a){if(A(B(a)))return null;a=new J(a);if("thismessage"!=a.Mb||"extensions"!=a.rb)return null;a=a.Lb;if(!ta(a,"/"))return null;a=a.substr(1);return A(B(a))?null:a}
function XS(a){if(A(B(a)))return null;var b=null;0<a.indexOf("%")?(a=Number(a.substr(0,a.indexOf("%"))),!isNaN(a)&&0<=a&&(b=new KS(a,!0))):(a=sS(a),0<=a&&(b=new KS(a,!1)));return b}function WS(a){var b=!0;if(A(B(a)))b=!1;else try{new J(a)}catch(c){b=!1}return b};function ZS(a,b){this.j=null!=a?a:new NS;this.F=null!=b?b:[]}function $S(a,b){var c=b.j;D(c.Ka(),function(a){QS(this.j,c.get(a))},a)}function aT(a,b){var c=US(a.j,b);return null!=c?c:[]};function bT(){this.j="Ads by Google";this.o="http://www.google.com/adsense/support";this.A=0};function cT(a,b,c,d,e,g,h,k,l,p){ZS.call(this,l,p);this.B=a;this.C=b;this.A=c;this.G=h;this.D=g;this.o=e}z(cT,ZS);function dT(){}dT.prototype.parse=function(a){var b;qS(a,"config",function(a){null!=b||(b=eT(this,a))},this);return b};function eT(a,b){var c;D(Yd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new bT:null;break;case "params":null!=c&&fT(this,c,a)}},a);return c}function fT(a,b,c){D(Yd(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.o=c;break;case "attribution_text":b.j=c;break;case "signals":b.A=parseInt(c,10)}},a)};function gT(){}
gT.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k,l=!1;D(Yd(a),function(a){switch(a.nodeName){case "AttributionText":c=pS(a);break;case "AttributionUrl":d=pS(a);break;case "ConversionUrl":g=pS(a);break;case "CustomTracking":null!=Yd(a)&&(e=VS(a));break;case "CheckedEvents":a=Yd(a);b=E(a,function(a){return oS(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":pS(a);break;case "VisibleUrl":h=pS(a);break;case "UI":k=(new dT).parse(a);break;case "ShowYouTubeAnnotations":var r=pS(a);
l=tS(B(r),!1);case "QueryId":pS(a)}},this);null!=k||(k=new bT);return new cT(c,d,g,0,h,k,l,0,e,b)};function hT(a,b){ZS.call(this,b);this.o=a}z(hT,ZS);function iT(){}iT.prototype.parse=function(a){if(null==a)return null;var b;D(Yd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Yd(a)&&(b=VS(a))}});a=null;null!=b&&0<RS(b,"skip").length&&(a="Generic");return new hT(a,b)};function jT(){}jT.prototype.parse=function(a){if(null==a)return null;var b,c;D(Yd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=pS(a);break;case "CustomTracking":null!=Yd(a)&&(c=VS(a))}});return new hT(b,c)};function kT(){}kT.prototype.parse=function(a){if(null==a)return null;var b;D(Yd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Yd(a)&&(b=VS(a))}},this);return new ZS(b)};function lT(a){ZS.call(this);this.o=a}z(lT,ZS);function mT(){}mT.prototype.parse=function(a){a=YB(a);return A(B(a))?null:new lT(a)};function nT(a){ZS.call(this);this.o=a}z(nT,ZS);function oT(){ZS.call(this)}z(oT,ZS);function pT(){}pT.prototype.j={Mv:"TEMPLATE_PARAMETERS",Nv:"TEMPLATE_URL"};pT.prototype.parse=function(a){if(null==a)return null;D(Yd(a),function(a){switch(a.nodeName){case this.j.Mv:qT(this,a)}},this);return new oT};function qT(a,b){D(Yd(b),function(a){a.nodeName==this.j.Nv&&pS(a)},a)};function rT(a,b,c,d){ZS.call(this);this.A=a;this.B=b;this.C=c;this.o=d}z(rT,ZS);function sT(){}sT.prototype.j={lv:"Line1",mv:"Line2",nv:"Line3",jv:"ImageUrl"};sT.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;D(Yd(a),function(a){switch(a.nodeName){case this.j.lv:b=pS(a,!0);break;case this.j.mv:c=pS(a,!0);break;case this.j.nv:d=pS(a,!0);break;case this.j.jv:e=pS(a)}},this);return new rT(b,c,d,e)};function tT(a){ZS.call(this);this.o=a}z(tT,ZS);function uT(){}uT.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Va(a):NaN;a=isNaN(a)?-1:a;return new tT(a)};function vT(){ZS.call(this)}z(vT,ZS);function wT(){}wT.prototype.parse=function(a){return null!=a?new vT:null};function xT(a){ZS.call(this);this.o=isNaN(a)?-1:a}z(xT,ZS);function yT(){}yT.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Va(a):NaN;return new xT(a)};function zT(a,b,c,d){this.Ca=a;this.j=Pc(c||0,0,1);this.o=null!=d?d:!0}zT.prototype.getId=function(){return this.Ca};function AT(a){this.Ca=a;this.o=new xe;this.j=null}function BT(a){var b=Math.random(),c=0,d=a.o.Oa();D(d,function(a){c+=a.j},a);var e=1<c?c:1;a.j=null;for(var g=0,h=0;h<d.length;++h)if(g+=d[h].j,g/e>=b){a.j=d[h];break}};function CT(){this.j=new xe;DT(this,41351090);DT(this,41351091);DT(this,41351024);DT(this,41351025);DT(this,41351040);DT(this,41351041);DT(this,41351042);DT(this,41351043);ET(this)}var FT=null;function GT(){FT||(FT=new CT);return FT}function DT(a,b){if(!(A(B("GvnExternalLayer"))||isNaN(b)||0>=b)){var c=new zT(b,0,.01);HT(a,"GvnExternalLayer").o.set(c.getId(),c)}}function ET(a){aL()||D(a.j.Oa(),function(a){BT(a)},a)}
function IT(a,b,c){D(b,function(a){var b=Number(a),g="forcedLayer"+a;isNaN(b)||0>=b||A(B(g))||(a=null!=c?c:!0,g=HT(this,g),b=new zT(b,0,0,a),g.j=b)},a)}function JT(a){var b=GT();return gb(b.j.Oa(),function(b){return!!b.j&&b.j.getId()==a})}function KT(a){var b=[];D(a.j.Oa(),function(a){(a=a.j)&&a.o&&b.push(a.getId())});return b.sort().join(",")}function HT(a,b){var c=a.j.get(b);null==c&&(c=new AT(b),a.j.set(b,c));return c};function LT(a){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.o=b.title,this.j=Qb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}LT.prototype.videoCount=0;function MT(a){if(a&&a.items&&a.items.length){a=a.items[0];this.videoId=a.id;var b=a.snippet;a.snippet&&(this.channelId=b.channelId,this.title=b.title);if(a=a.status)this.j="unlisted"!=a.privacyStatus}}MT.prototype.j=!0;function NT(){}var OT={IMAGE:"Image",av:"Flash",lu:"All"},PT={HTML:"Html",IFRAME:"IFrame",zJ:"Static",lu:"All"},QT={RH:"IgnoreSize",kJ:"SelectExactMatch",lJ:"SelectNearMatch"};function QR(a){if(null==a||0>=a.width||0>=a.height)throw XK(uK,null,"ad slot size",a.toString());this.o=a;this.j=new NT;this.C=RT(PT,this.j.A)?this.j.A:"All";this.B=RT(OT,this.j.creativeType)?this.j.creativeType:"All";this.F=RT(QT,this.j.B)?this.j.B:"SelectExactMatch";this.A=null!=this.j.o?this.j.o:[];this.D=ga(this.j.j)&&0<this.j.j&&100>=this.j.j?this.j.j:90}
function PR(a,b){var c=[];D(b,function(a){!A(B(a.j.B))&&(isNaN(a.j.j)||isNaN(VR(a))||VR(a)==a.j.j)&&ST(this,a)?c.push(a):(a=TT(this,a),null!=a&&!A(B(a.j.B))&&c.push(a))},a);return c}
function ST(a,b){var c;if(c="Flash"!=b.getContentType()||xM){if(c="All"==a.C||a.C==b.j.U)c=b.getContentType(),c=null!=c?"All"==a.B||a.B==c:!0;c&&(c=b.A,c=lb(a.A)?!0:null!=c?0<=cb(a.A,c):!1)}c?(c=b.j.Gc(),c="IgnoreSize"==a.F||Tc(a.o,c)?!0:"SelectNearMatch"==a.F&&(c.width>a.o.width||c.height>a.o.height||c.width<a.D/100*a.o.width||c.height<a.D/100*a.o.height?!1:!0)):c=!1;return c}function TT(a,b){var c=b.o;return null!=c?F(c,function(a){return ST(this,a)},a):null}
function RT(a,b){return null!=b&&Nb(a,b)};function UT(a){J.call(this,a);this.o=new xe;a=this.Lb;var b=a.indexOf(";"),c=null;0<=b?(df(this,a.substring(0,b)),c=a.substring(b+1)):df(this,a);VT(this,c)}z(UT,J);UT.prototype.toString=function(){return WT(this,UT.K.toString.call(this))};UT.prototype.hp=function(){return""};UT.prototype.Af=function(){return""};
function VT(a,b){A(B(b))||D(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=xa(a.substring(0,b));a=xa(a.substring(b+1));b=this.o.get(e);null!=b?G(b,a)||b.push(a):b=[B(a)];this.o.set(e,b)}},a)}function XT(a){if(A(B("ord")))return null;a=a.o.get("ord");return null!=a?a:null}function ZT(a,b,c){A(B(b))||(c=E(c,B),a.o.set(b,c))}function WT(a,b){var c=[B(b)];tb(c,$T(a));return c.join(";")}
function $T(a){var b=XT(a);null!=b?A(B("ord"))||a.o.remove("ord"):b=[B(y())];var c=[];D(a.o.Ka(),function(a){D(this.o.get(a),function(b){tb(c,a+"="+b)})},a);tb(c,"ord="+b[0]);ZT(a,"ord",b);return c}UT.prototype.clone=function(){return new UT(this.toString())};function aU(a){a=a.adTagUrl;if(null==a)return!1;a=new J(a);var b=a.Lb;return ua(a.rb,"googleads.g.doubleclick.net")&&bU("/pagead/ads",b)}function cU(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==nf(new J(a)):!1}function dU(a){a=a.adTagUrl;if(null==a)return!1;var b=new UT(a);a=b.rb;b=WT(b,b.Lb);return!ua(a,".g.doubleclick.net")&&ua(a,"doubleclick.net")&&bU("/(ad|pfad)[x|i|j]?/",b)}
function eU(a){a=a.adTagUrl;if(null==a)return!1;a=new J(a);var b=a.Lb;return ua(a.rb,"doubleclick.net")&&bU("/gampad/ads",b)}function bU(a,b){return A(B(b))?!1:(new RegExp(a)).test(b)};function fU(){this.o=this.B=1;this.j=this.A=0;this.C=1};function gU(){this.S={};this.Ga="";this.Jf=new NS}gU.prototype.$l=function(){return null};function hU(a,b,c){a.Ga=b;a.S=c}gU.prototype.ih=function(a){this.fb=a};gU.prototype.getAd=function(){return this.fb};function iU(a,b){var c=[],d=a.J();D(d,function(a){a=RS(a.Jf,b)||[];c=rb(a,c)},a);return c}gU.prototype.J=function(){for(var a=[this],b=this.fb.o;b;){var c=jU(this,b)||jU(this,b,!0);null!=c&&a.push(c);b=b.o}return a};
function jU(a,b,c){var d=c||!1;return F(b.B,function(a){var b=a.j==this.j;return a instanceof this.constructor&&(d||b)},a)};function kU(a,b,c,d,e,g){gU.call(this);this.ba=a;this.A=b;this.o=c;this.H=sb(d);this.ma=this.ga=null;this.B=e;this.da=sb(g);wb(this.da,null,function(a){return a.H})}z(kU,gU);kU.prototype.Xc=function(){return this.A};function lU(a){var b=new xe,c=a.J();D(c,function(a){if(a instanceof kU){var c=a.o;D(c.Ka(),function(a){b.set(a,rb(c.get(a),b.get(a)||[]))},this)}},a);return b}
kU.prototype.getMediaUrl=function(a){var b="";gb(this.H,function(c){var d=c.o;return!A(B(a))&&a!=c.j||null==d||A(B(d))?!1:(b=d,!0)},this);return b};kU.prototype.setMediaUrl=function(a){this.ma=a};kU.prototype.$l=function(){var a=F(this.H,function(a){return!A(B(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.A||"surveys"==a.A)});return null!=a?a.o:null};function mU(a,b,c){Q.call(this);this.o=a;this.A=b;this.B=c;this.D=0;this.j=new zn(this);nU(this)}z(mU,Q);function nU(a){a.B.forEach(function(a,c){this.j.M(c,"mousedown",this.F);this.j.M(c,"mouseup",this.H)},a);a.j.M(a.A,"mouseover",a.G)}mU.prototype.F=function(){this.C=y()};
mU.prototype.H=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.o&1&&c.push("nm="+this.D);this.o&2&&c.push("nb="+this.B.get(b));if(this.o&8){var d=Pg(this.A);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.o&16&&null!=this.C&&c.push("clkt="+(y()-this.C));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};mU.prototype.G=function(){this.D++};mU.prototype.P=function(){mU.K.P.call(this);this.j.dispose()};function oU(a,b,c,d,e){gU.call(this);A(B(a))&&(a=Ua()+"_ima");this.Ca=B(a);this.sa=b;this.U=c;this.V=d;this.B=e;this.aa=[];null!=this.V?this.Z=WJ[this.V]||"Other":this.Z=null}z(oU,gU);f=oU.prototype;f.getContent=function(){var a;a=this.Fe();if("outerHTML"in a)a=a.outerHTML;else{var b=Dd(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.Z};f.Gc=function(){return this.sa};f.ud=function(){return this.Gc().width};f.getHeight=function(){return this.Gc().height};
f.$l=function(){return"VPAID"==this.G?this.B:null};f.Xc=function(){return this.N};function pU(a,b,c,d,e){oU.call(this,a,b,c,d,e);this.na=-2;this.A=null;this.O=this.I=v;this.R=[];this.oa=!0;this.Y=[];this.F=!1}z(pU,oU);function qU(a,b){a.A=b;null!=a.o&&null!=b&&(rU(a,a.I),sU(a,a.O))}function rU(a,b){null!=a.A&&null!=a.o&&D(a.R,function(a){this.A.Ia(a,"click",this.I);A(B(this.Xc()))||this.A.M(a,"click",b)},a);a.I=b}function sU(a,b){null!=a.A&&null!=a.o&&(a.A.Ia(a.o,"creativeview",a.O),a.A.M(a.o,"creativeview",b));a.O=b}function tU(a){D(a.Y,function(a){Wd(Ed(a))},a);a.Y=[]}
pU.prototype.C=function(a){null==this.A||A(B(this.Xc()))||(this.A.M(a,"click",this.I),this.R.push(a))};pU.prototype.Fe=function(){null==this.o&&(this.o=this.rf(),Ud(this.o,uU(this)));null!=this.A&&this.A.M(this.o,"creativeview",this.O);return this.o};function vU(a,b){var c=a.Ca,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.ud()+"px");A(B(c))||(d.id=c);return I("div",d,b)}pU.prototype.cp=function(){return 2};
function uU(a){if(!a.oa)return null;var b=iU(a,"start");tb(b,iU(a,"creativeview"));if(null!=b&&!lb(b)){var c=[];D(b,function(a){if(!A(B(a))){var b,g=Bd();b instanceof sc&&(b=uc(b));b=g.Uw("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;"+(b||""),src:'javascript:""'});Dg(b,{display:"block",height:"0px",width:"0px"});g="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",eK(a.j));b.setAttribute("id",g);this.Y.push(g);nb(c,b)}},
a);return c}return null}function wU(a,b){if(null!=a.o){var c=new xe;D(a.R,function(a){c.set(a,this.cp(a))},a);new mU(b,a.o,c)}}function xU(a){var b=[],c=a.J();D(c,function(a){b=rb(b,a.aa)},a);return b}pU.prototype.J=function(){var a=[this],b;for(b=this.getAd().o;b;){var c=this.F?jU(this,b)||jU(this,b,!0):yU(this,b)||yU(this,b,!0);null!=c&&a.push(c);b=b.o}return a};function yU(a,b,c){var d=c||!1;return F(b.B,function(a){var b=a.j==this.j;return this instanceof a.constructor&&(d||b)},a)};function FR(a,b,c,d,e,g,h,k,l,p,r,t,C,V,T,ia){U.call(this);this.Z=a;this.R=b;this.S=c;this.Da=d;this.U=new zn(this);zU(this);this.na=isNaN(h)||""==h||0==h?-1:h;this.V=k?sb(k):[];this.G=l?sb(l):[];this.B=p?sb(p):[];this.ba=r?sb(r):[];this.D=[];D(this.ba,function(a){tb(this.D,sb(a.j))},this);this.ga=!0;this.o=this.j=null;this.F=new xe(t);this.H=null!=ia;this.Aa=(this.I=null!=C)?V||!1:!1;this.Ba=this.bz?T||!1:!1;this.Fa=B(C);this.Ma=B(ia);this.ua=this.A=null;this.C=new fU;this.da=new H(0,0);this.Y=String(Math.floor(1E9*
Math.random()));this.J=this.O=this.N=null;this.sa=y();this.oa=this.ma=0;D(rb(this.B,this.D),function(a){a.ih(this)},this);fL()&&AU(this)&&(this.D=eb(this.D,function(a){return 60>=a.getHeight()}))}z(FR,U);function BU(a){var b;b=CU(a);b=FS(b,"hideMaster")||FS(b,"blockAllAds")?"3":AU(a)?DU(a)?EU(a)?"2_1":"2_2":"2":"1";return(FU(a,TJ)||FU(a,VJ)?1:FU(a,SJ)?2:0)+"_"+b}function GU(a){return null!=a.R?a.R:""}function NR(a,b){return b?HU(a)[0]:a.S}function IU(a){return null!=a.o?rb(IU(a.o),a.V):a.V}
function JU(a){return null!=a.o?rb(JU(a.o),a.G):a.G}f=FR.prototype;f.getContentType=function(){var a=this.j,b="";if(null===a)return b;if(a instanceof kU)a=a.ga,null===a||(b=B(a.j));else if(a instanceof pU)switch(a.U){case "IFrame":case "Html":case "Static":b=B(a.V)}return b};function OR(a){return null!=a.o?rb(a.D,OR(a.o)):a.D}function CU(a){return null!=a.j?a.j.S:{}}function KU(a){return null!=a.j?a.j.Ga:""}f.getExtension=function(a){return this.F.get(a)};
function LU(a,b){a.j=b;a.da=null!=a.j&&a.j instanceof pU?a.j.Gc():new H(0,0)}function MU(a){return a.j}f.xx=function(a){a.A.queryId==this.Y&&this.X(new JJ("measurable_impression",this,a.A))};f.gy=function(a){a.A.queryId==this.Y&&this.X(new JJ("viewable_impression",this,a.A))};function NU(a){return null!=a.Z?a.Z:""}function OU(a){if(null==a.o)return[];var b=[NU(a.o)];tb(b,OU(a.o));return b}function PU(a){var b=OU(a).reverse();b.push(NU(a));return b}
function QU(a){if(null==a.o)return[];var b=[GU(a.o)];tb(b,QU(a.o));return b}function RU(a){var b=QU(a).reverse();b.push(GU(a));return b}function HU(a){if(null==a.o)return[a.S];var b=HU(a.o);b.push(a.S);return b}function SU(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.o?a.o:-1}function TU(a){if(-1!=a.na)return a.na;a=a.getExtension("pod");return null!=a&&-1!=a.o?a.o:-1}function UR(a,b){return b||null==a.o?a.ba:rb(a.ba,UR(a.o))}
function UU(a,b){return gb(a.B,function(a){return a instanceof kU&&"linear"==b||a instanceof pU&&"nonlinear"==b?!0:!1})}function AU(a){return VU(a)?"video"==a.Da:UU(a,"linear")}function DU(a){return null!=WU(a)}function XU(a,b){var c=WU(a);if(!c)return null;MS(c,b);return LS(c)}function WU(a){if(JT(919139)||JT(919140))return new KS(0,!1);var b=new KS(5,!1),c=YU(a);if("implicit"==c)return b;a=a.j;var d=null;null!=a&&a instanceof kU&&(d=a.B);null!=d||"explicit"!=c||(d=b);return null!=d&&fL()?b:d}
function YU(a){if(null!=F(a.F.Oa(),function(a){return!lb(aT(a,"skip"))}))return"implicit";var b=a.F.get("DFP");if(b instanceof hT)switch(b.o){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.j;return null==a||(a=a.Jf,null==a||lb(RS(a,"skip")))?"none":"explicit"}function ZU(a){return null!=a.A&&(aU(a.A)||eU(a.A)||dU(a.A))}
function EU(a){if(null==a.R||null==a.A)return!1;var b;(b=ZU(a)||!1)&&!(b=VU(a)&&!$U(a,["ADSENSE/ADX"]))&&($U(a,VJ)?(b=a.F.get("DFP"),b=null!=b?"InstreamSelect"==b.o:!1):b=!1);if(b||a.o&&a.o.H&&ZU(a.o))return!0;a=FU(a,["ADSENSE/ADX"])||a.o&&FU(a,SJ);return fL()&&!a}f.bz=function(){return this.I};function aV(a){return null===a.j?null:a.j.Xc()}function bV(a){return null==a.j||a.j instanceof pU?-1:a.j.ba}function cV(a){return null===a.j?null:a.j.$l()}function VU(a){return $U(a,SJ)}
function dV(a){var b=cV(a);return $U(a,["402"])||w(b)&&!da(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}f.getHeight=function(){return this.da.height};function eV(a){return a.N}f.toString=function(){return"Ad: "+this.Z};function $U(a,b){return null!=a.R?G(b,a.S):!1}function FU(a,b){for(var c=HU(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(G(b,c[d]))return!0;break}return!1}
function zU(a){var b=gL.j?YO():gS();a.U.M(b,"measurable_impression",a.xx);a.U.M(b,"viewable_impression",a.gy)}function fV(a){var b=dV(a)&&fL();return null!=cV(a)&&b}f.P=function(){null!=this.U&&this.U.dispose();FR.K.P.call(this)};function gV(a,b){this.j=a;this.o=b};function hV(a,b,c){this.j=a;this.o=b;this.A=c}hV.prototype.getContent=function(){return this.j.getContent()};hV.prototype.getContentType=function(){return this.j.getContentType()};hV.prototype.getHeight=function(){return this.j.getHeight()};function VR(a){a=MU(a.j.getAd());return null!=a?a.j:NaN}hV.prototype.ih=function(a){this.j.ih(a);D(this.o,function(b){b.ih(a)},this)};function iV(a,b,c){this.o=a;this.j=b;this.A=c}iV.prototype.getContentType=function(){return null!=this.j?WJ[this.j]||"Other":null};function jV(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+RP(a.ld)+'"><img src="'+RP(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+RP(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+RP(a.ld)+'" target="_blank" dir='+RP(a.dir)+">"+RP(a.title)+'</a><div class="text-description" dir='+RP(a.dir)+">"+RP(a.text)+"</div>"+(a.qs?'<a target="_blank" href="'+
RP(a.ld)+'" class="text-ad-channel">'+RP(a.qs)+"</a>":"")+"</div></div>"}
function kV(a){return'<div class="flash-container '+(a.pf?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+RP(a.ld)+'"></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="'+RP(a.width)+'" height="'+RP(a.height)+'"><param name="movie" value="'+RP(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+hQ(a.ld)+
'"><embed width="'+RP(a.width)+'" height="'+RP(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+RP(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+hQ(a.ld)+'"></object></div>'}function lV(a){return'<div class="image-container" id="'+RP(a.id)+'" style="width:'+RP(a.width)+";height:"+RP(a.height)+'"><a target="_blank" href="'+RP(a.ld)+'"><img src="'+RP(a.url)+'" border="0"></a></div>'};function mV(a,b,c,d){pU.call(this,a,b,"Static",c,d);this.Bo=!1}z(mV,pU);mV.prototype.rf=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:eK(B(this.B)),width:this.ud(),height:this.getHeight(),ld:this.Xc(),pf:this.Bo||!a},a=MP(kV,a);a.style.width=this.ud()+"px";a.style.height=this.getHeight()+"px";a.id=this.Ca;D(a.getElementsByTagName("object"),this.C,this);D(a.getElementsByTagName("a"),this.C,this);return a};function nV(a,b,c,d){pU.call(this,a,b,"Html",c,d)}z(nV,pU);nV.prototype.rf=function(){var a=I("div");a.innerHTML=this.B;this.C(a);return vU(this,a)};function oV(a,b,c,d){pU.call(this,a,b,"Static",c,d)}z(oV,pU);oV.prototype.getContent=function(){var a=oV.K.getContent.call(this);this.F&&(a=a.replace('<img src=""','<img src="'+eK(B(this.B))+'"'));return a};oV.prototype.rf=function(){var a="";this.F||(a=eK(B(this.B)));a={id:this.Ca,url:a,ld:this.Xc(),width:this.ud()+"px",height:this.getHeight()+"px"};a=MP(lV,a);D(a.getElementsByTagName("a"),this.C,this);return a};function pV(a,b){pU.call(this,a,b,"Static","text","")}z(pV,pU);f=pV.prototype;f.Gc=function(){return new H(this.ud(),this.getHeight())};f.getHeight=function(){return 63};f.ud=function(){return null!=this.D?Yg(this.D).width:0};f.cp=function(a){return mh(a,"text-image")?9:mh(a,"text-ad-channel")?1:0};
f.rf=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.A,e="rtl";null!=d&&(e=hc.test(gc(d,void 0))?"rtl":"ltr");d={title:d,text:c.B+" "+c.C,dir:e,ld:this.Xc()};if(c=c.o)d.image=eK(c),a=F(a.B,function(a){return a instanceof kU}),null!=a&&(d.duration=DS(a.ba));b.o&&(d.qs=b.o);this.D=MP(jV,d);D(this.D.getElementsByTagName("a"),this.C,this);this.D.id=this.Ca;this.D.style.height=this.getHeight()+"px";return this.D};function qV(a,b,c,d,e){pU.call(this,a,b,c,d,e)}z(qV,pU);qV.prototype.rf=function(){var a=B(this.B);A(B(this.Xc()))||(a=new J(a),K(a,"clickTAG",wa(this.Xc())),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.ud());b.setAttribute("src",eK(a));this.C(b);return vU(this,b)};function rV(a,b,c){if(lb(c))return new pU(a,b,"",null,"");var d=sV(c);c=d.o;var e=d.j,d=d.A;switch(c){case "Html":return new nV(a,b,e,d);case "Static":switch(WJ[e]){case "Image":return new oV(a,b,e,d);case "Flash":return new mV(a,b,e,d);case "Text":return new pV(a,b)}}return new qV(a,b,c,e,d)}
function sV(a){var b=F(a,function(a){return"Static"==a.o&&"Flash"==WJ[a.j]}),c=F(a,function(a){return"IFrame"==a.o}),d=F(a,function(a){return"Html"==a.o}),e=F(a,function(a){return"Static"==a.o&&"Image"==WJ[a.j]}),g=F(a,function(a){return"Static"==a.o&&"Text"==WJ[a.j]});return xM&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function tV(a,b,c,d,e){var g=sV(e),h=rV(a.id,a.size,[g]);h.F=!0;h.G=a.apiFramework;h.N=b;h.j=c;d&&(h.Jf=d);ob(e,g);var k=[];D(e,function(e){e=rV(a.id,a.size,[e]);e.F=!0;e.G=a.apiFramework;e.N=b;e.j=c;d&&(e.Jf=d);k.push(new hV(e,[],a.adSlotId))});return new hV(h,k,a.adSlotId)};function uV(a,b,c,d,e,g,h){this.A=a;this.H=b;this.C=c;this.D=d;this.o=e;this.F=g;this.G=h;this.j=this.A.rf()}uV.prototype.Fe=function(){return this.j};
uV.prototype.display=function(a){this.B=a;this.B.appendChild(this.j);a=this.j;var b=Wg(this.B),b="left"==this.C?"0px":"right"==this.C?b.width-this.A.Gc().width+"px":this.C+"px",c;c=Wg(this.B);c="bottom"==this.D?"0px":"top"==this.D?c.height-this.A.Gc().height+"px":c.height-this.A.Gc().height-Ya(this.D)+"px";Dg(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});$g(this.j,!1)};
uV.prototype.update=function(a,b){var c=null!=this.F?LS(this.F):0;this.o=0<=this.o?this.o:b;c<=a&&c+this.o>=a?vV(this):$g(this.j,!1)};function vV(a){"none"==a.j.style.display&&($g(a.j,!0),D(a.G,function(a){hK(a)}))};function wV(a,b,c,d,e,g,h,k,l,p){b=rV("icon"+a,b,p);b.G=h;b.N=k.iconClickThrough;return new uV(b,a,c,d,e,g,l)};function xV(a){this.B=a;this.logger=null}z(xV,kS);
xV.prototype.j={hu:"Ad",wk:"AdParameters",ju:"AdSystem",ku:"AdTitle",yG:"Advertiser",ou:"AltText",vu:"ClickThrough",wu:"ClickTracking",xu:"Companion",yu:"CompanionAds",zu:"CompanionClickThrough",Au:"CompanionClickTracking",Ku:"Creative",kH:"CreativeExtensions",Lu:"Creatives",Ou:"CustomClick",Ru:"Description",xk:"Duration",ERROR:"Error",Wu:"Extension",Xu:"Extensions",Nh:"HTMLResource",dv:"Icon",ev:"Icons",fv:"IconClicks",gv:"IconClickThrough",hv:"IconClickTracking",iv:"IconViewTracking",Qh:"IFrameResource",
co:"Impression",TH:"InLine",LINEAR:"Linear",rv:"MediaFile",sv:"MediaFiles",xv:"NonLinear",yv:"NonLinearAds",zv:"NonLinearClickThrough",Av:"NonLinearClickTracking",XI:"Pricing",ai:"StaticResource",Lv:"Survey",SJ:"Tracking",Ck:"TrackingEvents",bK:"VAST",Qv:"VASTAdTagURI",Rv:"VideoClicks",Tv:"Wrapper"};
xV.prototype.o={iu:"adSlotID",nu:"allowMultipleAds",Lh:"apiFramework",tu:"bitrate",Mu:"creativeType",Qu:"delivery",xk:"duration",uH:"event",bv:"followAdditionalWrappers",Uu:"expandedHeight",Vu:"expandedWidth",yk:"height",Ph:"id",ov:"maintainAspectRatio",qv:"maxBitrate",uv:"minBitrate",vv:"minSuggestedDuration",Bv:"offset",Cv:"program",Dv:"required",Gv:"scalable",eo:"sequence",Iv:"skipoffset",ko:"type",VERSION:"version",Sv:"codec",Gk:"width",Vv:"xPosition",Xv:"yPosition"};
function yV(a){if(null==a)return!1;a=Zd(a);return null!=a&&"VAST"==a.nodeName}function zV(a){if(null==a)return 0;a=parseInt(a.getAttribute("version"),10);return ga(a)&&!isNaN(a)?a:0}function AV(a){var b=[],c=Zd(a.B),d=zV(c);qS(c,a.j.hu,function(a){var c;c=BV(a);if(null==c)throw lS(a);var h=a.getAttribute(this.o.Ph);a=Number(a.getAttribute(this.o.eo));c=CV(this,c,h||null,a||0);null!=c&&(c.oa=d,b.push(c))},a);return b}xV.prototype.A=function(){return new uS(this.B,AV(this),null)};
function BV(a){var b=null;D(Yd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw lS(a);}});return b}
function CV(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],r=new xe,t,C=b.nodeName==a.j.Tv,V=C,T=C,ia;D(Yd(b),function(a){switch(a.nodeName){case this.j.Qv:if(C){if(null!=t)throw mS(a);t=pS(a);ia=YS(t);V=tS(b.getAttribute(this.o.nu),V);T=tS(b.getAttribute(this.o.bv),T)}else throw lS(a);break;case this.j.ju:e=pS(a);break;case this.j.ku:g=pS(a);break;case this.j.Ru:pS(a);break;case this.j.Lv:pS(a);break;case this.j.co:a=pS(a);WS(a)&&h.push(IS(a));break;case this.j.ERROR:a=pS(a);k.push(IS(a));break;case this.j.Lu:a=
DV(this,a);l=a.creatives;p=a.ww;break;case this.j.Xu:r=EV(this,a,ia)}},a);return new FR(B(c),e,FV(e),g,0,0,d,k,h,l,p,r,t,V,T,GV(r))}function GV(a){var b=null;a=a.get("AdSense");null!=a&&(a=aT(a,"vast2tracking"),null!=a&&!lb(a)&&(b=a[0]));return b}function FV(a){if(A(B(a)))return"UNKNOWN";a=a.toUpperCase();switch(a){case "ADSENSE":case "ADSENSE/ADX":case "DART":case "DART_DFP":case "DART_DFA":case "FREEWHEEL":case "GDFP":case "402":return a;default:return"UNKNOWN"}}
function HV(a){if(A(B(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function EV(a,b,c){var d=new xe;try{var e=nS(b,a.j.Wu);D(e,function(a){var b=a.getAttribute(this.o.ko);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new wT).parse(a);break;case "pod":a=(new uT).parse(a);break;case "waterfall":a=(new yT).parse(a);break;case "dart":a=(new iT).parse(a);break;case "dfp":b="DFP";a=(new jT).parse(a);break;case "adsense":b="AdSense";a=(new gT).parse(a);break;case "textad":b="TextAd";a=(new sT).parse(a);break;case "templatead":b="TemplateAd";a=(new pT).parse(a);break;
case "infocards":var b="InfoCards",e=new mT;a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new mT;a=e.parse(a);break;case c:b="LocalRedirect";null!=a?(e=null,a=nS(a,"AdXml"),1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+YB(Zd(a[0]))),a=new nT(e)):a=null;break;default:e=new kT,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&($S(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function DV(a,b){var c=[],d=[];qS(b,a.j.Ku,function(a){var b=a.getAttribute(this.o.eo),h;A(B(b))||(h=parseFloat(b));a.getAttribute(this.o.Ph);var k=!1;D(Yd(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(k)throw mS(a);a=IV(this,a,isNaN(h)?0:h);tb(c,a);k=!0;break;case this.j.yu:if(k)throw mS(a);a=JV(this,a,isNaN(h)?void 0:h);tb(d,a);k=!0;break;case this.j.yv:if(k)throw mS(a);a=KV(this,a,isNaN(h)?0:h);tb(c,a);k=!0}},this)},a);return{creatives:c,ww:d}}
function KV(a,b,c){var d=[],e=new NS;D(Yd(b),function(a){switch(a.nodeName){case this.j.xv:a=LV(this,a,c);null!=a&&d.push(a);break;case this.j.Ck:e=VS(a);break;default:throw lS(a);}},a);0!=d.length||e.isEmpty()||(a=new pU(null,new H(-1,-1),"",null,""),a.j=c,d.push(a));D(d,function(a){e&&(a.Jf=e)});return d}
function MV(a,b){var c={};c.id=b.getAttribute(a.o.Ph);c.adSlotId=b.getAttribute(a.o.iu);c.apiFramework=b.getAttribute(a.o.Lh);var d=Va(b.getAttribute(a.o.Gk)),e=Va(b.getAttribute(a.o.yk));c.size=new H(d,e);d=b.getAttribute(a.o.Vu);e=b.getAttribute(a.o.Uu);A(B(d))||A(B(e))||(c.FK=new H(Va(d),Va(e)));return c}
function LV(a,b,c){var d=MV(a,b);b.getAttribute(a.o.Lh);b.getAttribute(a.o.Gv);b.getAttribute(a.o.ov);var e=b.getAttribute(a.o.vv),e=sS(e,-1),g=[];new xe;var h={},k="",l,p=[];D(Yd(b),function(a){switch(a.nodeName){case this.j.Av:p.push(pS(a));break;case this.j.zv:l=pS(a);break;case this.j.wk:h=NV(a);k=B(pS(a));break;case this.j.Qh:case this.j.ai:case this.j.Nh:a=OV(this,a);null!=a&&g.push(a);break;default:throw lS(a);}},a);a=rV(d.id,d.size,g);hU(a,k,h);a.G=d.apiFramework;a.N=l;a.aa=p;a.na=e;a.j=c;
return a}function OV(a,b){var c=oS(b,a.o.Mu);if(null!=c&&"text/javascript"==c)return null;var d;i:switch(d=b.nodeName,d){case a.j.ai:d="Static";break i;case a.j.Qh:d="IFrame";break i;case a.j.Nh:d="Html";break i;default:throw VK(OK,null,d);}var e=pS(b);null!=e||(e="");return new iV(d,c,e)}function JV(a,b,c){var d=[],e=HV(oS(b,a.o.Dv));qS(b,a.j.xu,function(a){a=PV(this,a,c);null!=a&&d.push(a)},a);return new gV(d,e)}
function PV(a,b,c){var d=MV(a,b),e=[],g=new NS,h;D(Yd(b),function(a){switch(a.nodeName){case this.j.Au:break;case this.j.Ck:g=VS(a,!0);break;case this.j.zu:h=pS(a);break;case this.j.ou:pS(a);break;case this.j.wk:pS(a);break;case this.j.Qh:case this.j.ai:case this.j.Nh:a=OV(this,a);null!=a&&e.push(a);break;default:throw lS(a);}},a);return lb(e)?null:tV(d,h,c,g,e)}
function IV(a,b,c){var d=new NS,e={},g="",h=[],k,l=new xe,p=[],r=[],t,C=XS(oS(b,a.o.Iv));D(Yd(b),function(a){switch(a.nodeName){case this.j.ev:r=QV(this,a);break;case this.j.wk:e=NV(a);g=B(pS(a));break;case this.j.xk:t=sS(pS(a),0);break;case this.j.Ck:d=VS(a);break;case this.j.sv:p=RV(this,a);break;case this.j.Rv:a=SV(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw lS(a);}},a);D(h,function(a){SS(d,"click",a)});a=new kU(t,k,l,p,C,r);hU(a,g,e);a.j=c;d&&(a.Jf=d);return a}
function SV(a,b){var c,d=[],e=new xe;D(Yd(b),function(a){switch(a.nodeName){case this.j.vu:c=pS(a);break;case this.j.wu:a=pS(a);d.push(a);break;case this.j.Ou:var b=oS(a,this.o.Ph);null!=b||(b="");var k=e.get(b,[]);k.push(pS(a));e.set(b,k);break;default:throw lS(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function RV(a,b){var c=[];qS(b,a.j.rv,function(a){var b=oS(a,this.o.Qu),g=oS(a,this.o.ko),h=oS(a,this.o.Sv),k=Va(a.getAttribute(this.o.Gk)),l=Va(a.getAttribute(this.o.yk)),p=a.getAttribute(this.o.Lh),r=pS(a),t=rS(a.getAttribute(this.o.tu)),C=rS(a.getAttribute(this.o.uv));a=rS(a.getAttribute(this.o.qv));c.push(new tP(b,g,h,t,C,a,k,l,r,p))},a);return c}function QV(a,b){var c=[];qS(b,a.j.dv,function(a){a=TV(this,a);null!=a&&c.push(a)},a);return c}
function TV(a,b){var c=b.getAttribute(a.o.Cv),d=oS(b,a.o.Vv),e=oS(b,a.o.Xv),g=Va(b.getAttribute(a.o.Gk)),h=Va(b.getAttribute(a.o.yk)),g=new H(g,h),h=b.getAttribute(a.o.Lh),k=XS(oS(b,a.o.Bv)),l=b.getAttribute(a.o.xk),l=sS(l,-1),p=[],r=[],t;D(Yd(b),function(a){switch(a.nodeName){case this.j.iv:r.push(pS(a));break;case this.j.fv:t=UV(this,a);break;case this.j.Qh:case this.j.ai:case this.j.Nh:a=OV(this,a);null!=a&&p.push(a);break;default:throw lS(a);}},a);return lb(p)?null:wV(c,g,d,e,l,k,h,t,r,p)}
function UV(a,b){var c=[],d;D(Yd(b),function(a){switch(a.nodeName){case this.j.gv:d=pS(a);break;case this.j.hv:c.push(pS(a));break;default:throw lS(a);}},a);return{iconClickThrough:d,IK:c}}function NV(a){a=pS(a);return null!=a?ES(a):{}};function VV(a,b){this.o=a;this.j=b}z(VV,kS);VV.prototype.A=function(){return new uS(this.o,null,WV(this))};function XV(a){var b=$B(a);return lb(b)?[oS(a,"timeOffset")]:E(b,function(a){return oS(a,"timeOffset")})}
function WV(a){var b=new yS;D(Yd(Zd(a.o)),function(a){if("vmap:AdBreak"==a.nodeName){var d=YV(this,a);a=XV(a);D(a,function(a,c){var h=sS(a);0<c&&(d=ZV(this,d));if("start"==a||0==h)zS(b,d,0);else if("end"==a)zS(b,d,-1);else{if(-1==h)throw VK(oK,null,"timeOffset",B(a));zS(b,d,h)}},this)}},a);if(0==b.j.Ka().length)throw VK(vK);return b}function ZV(a,b){return E(b,function(a){var b=new wS(a.A.clone());b.j=a.j;b.o=a.o;return b},a)}
function $V(a){a=oS(a,"timeOffset");var b=sS(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}
function YV(a,b){var c=[],d="",e=null,g=!1,h=!1;D(Yd(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e&&(e=ZB(a,"vmap:VASTData/VAST")||ZB(a,"vmap:VASTAdData/VAST"),!e)){var b=nS(a,"vmap:AdTagURI"),c="";b.length&&(c=B(pS(b[0])));if(A(c))throw VK(TK,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=nS(a,"vmap:Extension"),a=aW(this,a),null!=a&&(g=!0,a=oS(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=bW(a,e):A(d)||(k=cW(a,d));k&&(fL()&&(k.rh=$V(b)),
k=new wS(k),k.j=g,k.o=g&&!h,nb(c,k));return c}function aW(a,b){return F(b,function(a){return"bumper"==oS(a,"type")},a)}function cW(a,b){var c=a.j.clone();A(c.j)||(c.j="");c.adTagUrl=b;return c}function bW(a,b){var c=a.j.clone();c.j=YB(b);c.adTagUrl="";return c};function dW(a,b){if(null!=a){var c;null!=a?(c=Zd(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return XR.getInstance().j=!1,new AS(a,b);null!=a?(c=Zd(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return XR.getInstance().j=!1,new VV(a,b);if(yV(a)){if(!yV(a))throw VK(yK);c=Zd(a);var d=zV(c);if(1>d||3<d)throw VK(PK);c=nS(c,"Ad");if(lb(c))throw VK(DK);c=BV(c[0]);if(null==c)throw VK(GK);if(1!=nS(c,"AdSystem").length)throw VK(GK);return new xV(a)}}return null};function eW(){}f=eW.prototype;f.clone=function(){var a=new eW;"auto"==this.af?a.af="auto":"click"==this.af&&(a.af="click");a.adTagUrl=this.adTagUrl;a.xe=Yb(this.xe);a.j=this.j;a.Vc=Yb(this.Vc);a.vp=this.vp;a.wp=this.wp;a.location=this.location;a.referrer=this.referrer;a.C=this.C;a.language=this.language;a.Ne=this.Ne;a.Sd=this.Sd;a.Vb=this.Vb;a.hc=this.hc;a.zc=this.zc;a.Lg=this.Lg;a.oh=this.oh;a.gn=this.gn;a.o=this.o;a.A=this.A;a.rh=this.rh;a.Qi=this.Qi;this.B&&(a.B=sb(this.B));return a};f.xe=null;
f.Vc=null;f.af="unknown";f.vp=!1;f.wp=!1;f.Ne=0;f.Sd=0;f.Vb=0;f.hc=0;f.zc=null;f.Lg=!1;f.oh=!1;f.gn=!0;f.rh=0;f.So=!0;f.Qi=null;function fW(a,b){this.o=a;this.A=b;var c=a.B;fL()&&c&&IT(GT(),c,!1)}function gW(a,b){"auto"!=a.o.af&&"click"!=a.o.af||b.set("vpa",a.o.af)}function hW(a){A(gL.getPlayerType())||(a.set("mpt",gL.getPlayerType()),A("")||a.set("mpv",""))}function iW(a,b){var c=a.A.C;null!=c&&b.set("js","ima-"+c)}function jW(a,b){b.set("osd",2);-1!=a.A.H&&b.set("frm",a.A.H)}fW.prototype.G=function(){return this.B(this.D()).toString()};function kW(a){return gL.j?"h.3.0.0":null!=a.A?kR(a.A):null}
fW.prototype.C=function(){var a;a=1;rL()&&(a+=4);return a};function lW(){this.j=["video"]}var mW={WJ:"ultrahigh",JH:"high",tv:"medium"},nW={BG:1E3,CG:1001,DG:1002,EG:1003,FG:1004,GG:1005,HG:1006},oW={pv:1,Yu:2},pW={hH:"content",rJ:"site",sJ:"site_content"};f=lW.prototype;f.ci="high";f.Ul=!1;f.Hk=1;f.Ik=null;f.adType="video";f.adBlock=1;f.Vl=null;f.Nk=!0;f.Ok=null;f.jl=null;f.yg=null;f.experimentIds=null;f.Wl=null;f.host=null;f.hostTierId=null;f.Xl=!1;f.language=null;f.Kp=null;f.Jp=null;f.Wi=1E5;f.dj=null;f.Mp=null;f.Lp=null;f.xm=0;f.Hf=null;f.uj=null;
f.Fj=null;f.hn=null;f.tagForChildDirectedTreatment=-1;f.url=null;f.Xi=null;f.Yl=null;f.Zl=null;f.An=null;f.xn=null;f.yn=null;f.zn=null;f.Tk=null;var qW=(new Date).getTime();var rW=[202,1009],sW=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function tW(a,b,c){var d={};a=new uW(a,n(b)?b:null,n(c)?c:null);vW(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.j?b.j:900;wW(d,a);xW(d,a);yW(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=cb(rW,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function zW(a,b){var c={},d=new uW(null,a,n(b)?b:null);vW(c,d);wW(c,d);xW(c,d);yW(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.j){var e=d.j.A;null!=e&&null!=e.xe&&null!=e.xe.video_start_delay?(e=e.xe.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.j.C,c["[BREAK_TYPE]"]=0==e.A?"1":-1==e.A?"3":"2",c["[SLOT_POS]"]=e.o-1,0<e.j&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.j)))}AW(c,d);BW(c,d);d=a.sa;
for(e=a;null!=e;)d=e.ma+","+d,e=e.o;c["[RWT]"]=d;return c}function uW(a,b,c){this.error=a;this.j=b;this.display=c}function CW(a,b){null!=b&&(a["[VIEWABILITY]"]=b);return a}function vW(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.getVideoUrl():""}}}
function BW(a,b){a["[AD_CPN]"]={toString:function(){return b.display.yf()}};a["[AD_MT]"]={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}};var c=b.j.C;0<c.j&&(a["[MIDROLL_POS]"]=Math.round(1E3*c.j));a["[MT]"]={toString:function(){if(AU(b.j)){var a=b.j.C;return 0<a.j?Math.round(1E3*a.j).toString():"0"}return b.display?Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString():"0"}};a["[P_W]"]={toString:function(){return null!=b.display&&null!=b.display.rd()?
b.display.rd().width.toString():""}};a["[P_H]"]={toString:function(){return null!=b.display&&null!=b.display.rd()?b.display.rd().height.toString():""}}}function wW(a,b){a["[SDKV]"]=gL.j?"h.3.0.0":"h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";null!=b.j&&(a["[VIEWABILITY]"]={toString:function(){var a;gL.j?(a=YO(),a=cP(a,"metric",b.j.Y)):(gS(),a="");return a}});a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function xW(a,b){if(null!=b.j&&null!=b.j.A&&null!=b.j.A.Vc&&fL()){var c=b.j.A.Vc;D(sW,function(b){b in c&&(a[b]=c[b])})}}
function yW(a,b){if(null!=b.j){a["[AD_ID]"]=PU(b.j);a["[AD_SYS]"]=RU(b.j);a["[AD_V]"]={toString:function(){return null!=b.display?qP(b.display.getVideoUrl()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=BU(b.j).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 AW(a,b){null!=b.j&&(a["[AD_LEN]"]={toString:function(){var a=bV(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.sd()).toString():""}})};var DW={av:"flash",IMAGE:"image",wJ:"skippablevideo",yJ:"standardvideo",AJ:"staticimage",TEXT:"text",VIDEO:"video"},EW=["flash","image","staticimage"],FW=[new H(200,200),new H(250,250),new H(300,250),new H(336,280),new H(450,50),new H(468,60),new H(480,70),new H(728,90)];function GW(a,b){var c=null!=b.Sd?b.Sd:0,d=null!=b.hc?b.hc:0;a.set("sz",Math.max(null!=b.Ne?b.Vb:0,null!=b.Vb?b.Vb:0)+"x"+Math.max(c,d))}
function HW(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",qW)}
function IW(a){if(a.Vc&&a.Vc["[LACT]"]){var b=a.Vc["[LACT]"].toString();if(b)return Ya(b)}return a.C}function JW(a,b,c){var d=new xe;d.set("ad_type",b.adType);xM&&d.set("flash",yM);GW(d,a);KW(b)&&(d.set("ea","0"),null!=a.Vb&&null!=a.hc&&d.set("image_size",LW(b,a.Vb,a.hc)));MW(d,c);d.set("lact",IW(a));d.set("videoad_start_delay",a.rh);HW(d);NW(a,d,!0);return d}function NW(a,b,c){A(B(a.referrer))||(a=a.referrer,c&&(a=wa(a)),OW("ref",a,b))}
function PW(a,b){var c=null!=b?b.split("_"):a;D(c,function(a){if(!Nb(DW,a))throw VK(uK,null,"ad_type",String(b));});if(!rL()){var d=[];D(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw VK(tK,null,"skippablevideo");return d}return c}function QW(a,b){return null!=b?b.split(/[+, ]/):a}function LW(a,b,c){a.A&&(c=Math.min(c,90));var d=[];D(FW,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}
function RW(a,b){return null==b||isNaN(b)?a:Number(b)}function SW(a,b){return null!=b?String(b):null!=a?a:null}function TW(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 UW(a,b,c){return null!=b&&Nb(c,b)?b:a}function KW(a){return gb(EW,function(b){return G(a.j,b)})}
function MW(a,b){xM?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.A;null!=c&&0<c.length&&(c=c[0].C,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function OW(a,b,c){null!=b&&c.set(a,b)};function VW(a,b,c){fW.call(this,a,b);b=new lW;a=qf(new J(a.adTagUrl));b.Vl=UW(b.Vl,a.get("cust_age"),nW);b.ci=UW(b.ci,a.get("adsafe"),mW);b.j=PW(b.j,a.get("ad_type"));b.adType=b.j.join("_");b.Hk=RW(b.Hk,a.get("videoad_start_delay"));b.Ik=SW(b.Ik,a.get("slotname"));b.Ul=TW(b.Ul,a.get("adtest"));b.Nk=TW(b.Nk,a.get("scs"));b.Ok=SW(b.Ok,a.get("alternate_ad_url"));b.channels=QW(b.channels,a.get("channel"));b.jl=RW(b.jl,a.get("cpm"));b.yg=SW(b.yg,a.get("description_url"));b.experimentIds=SW(b.experimentIds,
a.get("eid"));b.Wl=UW(b.Wl,a.get("cust_gender"),oW);b.A=TW(b.A,a.get("overlay"));b.host=SW(b.host,a.get("host"));b.o=QW(b.o,a.get("h_ch"));b.hostTierId=RW(b.hostTierId,a.get("ht_id"));b.Xl=TW(b.Xl,a.get("lsv"));var d;null!=this.o.language?d=this.o.language:(d=m.navigator||null,d=dL(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=SW(e,d);var g;null!=d&&!A(B(d))&&(g=dL(d));b.language=SW(b.language,g);b.Kp=RW(b.Kp,a.get("linearAdSlotWidth"));
b.Jp=RW(b.Jp,a.get("linearAdSlotHeight"));b.Wi=RW(b.Wi,a.get("max_ad_duration"));b.xm=RW(b.xm,a.get("min_ad_duration"));b.dj=RW(b.dj,a.get("sdmax"));b.Mp=RW(b.Mp,a.get("nonLinearAdSlotWidth"));b.Lp=RW(b.Lp,a.get("nonLinearAdSlotHeight"));b.Hf=SW(b.Hf,a.get("client"));b.uj=SW(b.uj,a.get("t_pyv"));b.Fj=RW(b.Fj,a.get("sdki"));b.tagForChildDirectedTreatment=RW(b.tagForChildDirectedTreatment,a.get("tfcd"));b.hn=UW(b.hn,a.get("targeting"),pW);b.Xi=RW(b.Xi,a.get("video_format"));b.Yl=RW(b.Yl,a.get("video_cpm"));
b.Zl=SW(b.Zl,a.get("loeid"));b.An=SW(b.An,a.get("yt_pt"));b.xn=SW(b.xn,a.get("ytdevice"));b.yn=SW(b.yn,a.get("ytdevicever"));b.zn=SW(b.zn,a.get("dbp"));b.B=SW(b.B,a.get("ms"));b.adBlock=RW(b.adBlock,a.get("adBlock"));b.url=SW(b.url,a.get("url"));b.Tk=SW(b.Tk,a.get("avo"));this.j=b;this.H=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),IT(GT(),c))}z(VW,fW);var WW=["skippablevideo","standardvideo","video"];VW.prototype.F={mu:"allow",Su:"exclude",eJ:"require"};
VW.prototype.C=function(){var a=VW.K.C.call(this);this.j.Fj&&(a+=this.j.Fj&2);return a};VW.prototype.B=function(a){var b=new J("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ka();D(c,function(c){K(b,c,a.get(c))});return b};
VW.prototype.D=function(){var a=new xe;a.set("sdkv",kW(this));a.set("sdki",this.C().toString(16));a.set("video_product_type",null!=this.j.Hf?fL()?5:ta(this.j.Hf,"ca-games-")?4:ta(this.j.Hf,"ca-video-")?0:-1:-1);a.set("correlator",this.A.j);a.set("client",this.j.Hf);fL()&&!A(B(this.j.url))?a.set("url",this.j.url):a.set("url",this.o.location?this.o.location:this.o.referrer);null!=this.o.zc&&a.set("adk",this.o.zc);a.set("num_ads",XW(this));a.set("channel",YW(this));a.set("ad_type",this.j.adType);a.set("output",
"xml_vast3");this.j.Ul&&a.set("adtest","on");xM&&a.set("flash",yM);OW("alternate_ad_url",this.j.Ok,a);OW("cpm",this.j.jl,a);GW(a,this.o);fL()||Nb(mW,this.j.ci)&&a.set("adsafe",this.j.ci);this.j.host&&(a.set("host",this.j.host),OW("ht_id",this.j.hostTierId,a),null!=this.j.o&&OW("h_ch",this.j.o.join("+"),a));OW("hl",this.j.language,a);OW("cust_age",this.j.Vl,a);OW("cust_gender",this.j.Wl,a);-1!=this.j.tagForChildDirectedTreatment&&OW("tfcd",this.j.tagForChildDirectedTreatment,a);OW("slotname",this.j.Ik,
a);var b=KT(GT());A(B(b))||a.set("eid",b);HW(a);b=this.j.yg;if(null!=b){var c;c=this.A;null==c.A&&(c.A=new aR);c=c.A;var d;null!=b&&c.o!=b?(c.j=1,c.o=b):c.j=null!=b?c.j+1:1;d=c.j;1!=d&&a.set("ad_block",d);d=this.A;null==d.N&&(d.N=new gR);d=d.N;var e=b!=this.A.O;(c=0==c.j%100||e)||(c=36E5<(null===d.j?0:(new dR).getTime()-d.j));c&&d.reset();this.A.O=b;b=d.o;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.j.Hk;a.set("videoad_start_delay",null!=b?b:1);iW(this,a);jW(this,a);gW(this,
a);KW(this.j)&&(a.set("ea","0"),null!=this.o.Vb&&null!=this.o.hc&&a.set("image_size",LW(this.j,this.o.Vb,this.o.hc)));ZW(this)&&a.set("video_format",null!=this.j.Xi&&fL()?this.j.Xi:Yh&&0<=Ra(gu,6)||Uh&&0<=Ra(gu,4)||kd&&oL(kL,2.3)?43:18);b=null!=this.j.uj?this.j.uj:G(this.j.adType.split("_"),"text")?this.F.mu:this.F.Su;a.set("t_pyv",b);OW("min_ad_duration",this.j.xm,a);0<this.j.Wi&&a.set("max_ad_duration",$W(this.j.Wi,XW(this)));0<this.j.dj&&a.set("sdmax",$W(this.j.dj,XW(this)));MW(a,this.H);fL()&&
(b=qP(this.j.yg),null!=b&&a.set("video_doc_id","yt_"+b));OW("description_url",this.j.yg,a);fL()&&(OW("lact",IW(this.o),a),OW("loeid",this.j.Zl,a),OW("lsv",this.j.Xl,a),this.j.Nk||OW("scs","false",a),OW("targeting",this.j.hn,a),OW("video_cpm",this.j.Yl,a),OW("yt_pt",this.j.An,a),OW("ytdevice",this.j.xn,a),OW("ytdevicever",this.j.yn,a),OW("dbp",this.j.zn,a),OW("avo",this.j.Tk,a));OW("ms",this.j.B,a);hW(a);NW(this.o,a,!1);null!=this.o.xe&&OW("loc",this.o.xe.page_location,a);return a};
function ZW(a){return gb(WW,function(a){return G(this.j.j,a)},a)}function XW(a){return fL()?1:G(a.j.adType.split("_"),"text")?3:1}function YW(a){a=a.j.channels?a.j.channels:[];wb(a);a=vb(a,0,30);return a.join("+")}function $W(a,b){return Math.round(1.1*(a||0)+0*b)};function aX(a,b){fW.call(this,a,b)}z(aX,fW);aX.prototype.B=function(a){var b=new J(this.o.adTagUrl);D(a.Ka(),function(c){A(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};aX.prototype.D=function(){var a=new xe;a.set("sdkv",kW(this));jW(this,a);gW(this,a);hW(a);null!=this.o.zc&&a.set("adk",this.o.zc);return a};function bX(a,b){fW.call(this,a,b)}z(bX,fW);bX.prototype.D=function(){return null};
bX.prototype.B=function(){var a=new UT(this.o.adTagUrl),b=kW(this);b&&ZT(a,"dc_sdkv",[b]);(b=this.C().toString(16))&&ZT(a,"dc_sdki",[b]);(b=this.A.G)&&ZT(a,"dc_submodel",[b]);null!=this.o.zc&&ZT(a,"dc_adk",[this.o.zc]);b=new xe;iW(this,b);jW(this,b);gW(this,b);hW(b);ze(b,"js")&&ZT(a,"dc_js",[b.get("js")]);ze(b,"msid")&&ZT(a,"dc_msid",[b.get("msid")]);ze(b,"frm")&&ZT(a,"dc_frm",[b.get("frm")]);ze(b,"osd")&&(ZT(a,"osd",[b.get("osd")]),ZT(a,"dc_osd",[b.get("osd")]));ZT(a,"dcmt",["text/xml"]);ze(b,"vpa")&&
ZT(a,"vpa",[b.get("vpa")]);ze(b,"mpt")&&ZT(a,"mpt",[b.get("mpt")]);ze(b,"mpv")&&ZT(a,"mpv",[b.get("mpv")]);return a};function cX(a){fW.call(this,a,null)}z(cX,fW);cX.prototype.B=function(a){return new J(a.get("adTagUrl"))};cX.prototype.G=function(){return B(this.D().get("adTagUrl"))};cX.prototype.D=function(){var a=new xe;a.set("adTagUrl",this.o.adTagUrl);a.set("adsResponse",this.o.j);return a};function dX(a){fW.call(this,a,null)}z(dX,fW);dX.prototype.B=function(a){return new J(a.get("adTagUrl"))};dX.prototype.D=function(){var a=new xe;a.set("adTagUrl",this.o.adTagUrl);a.set("adsResponse",this.o.j);return a};function eX(a,b){fW.call(this,a,b)}z(eX,fW);eX.prototype.B=function(a){var b=new J(this.o.adTagUrl);D(a.Ka(),function(c){A(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};
eX.prototype.D=function(){var a=new xe;a.set("sdkv",kW(this));a.set("sdki",this.C().toString(16));a.set("correlator",this.A.D);a.set("scor",this.A.j);null!=this.o.zc&&a.set("adk",this.o.zc);iW(this,a);jW(this,a);gW(this,a);hW(a);var b=this.A.o;null!=b&&(this.A.o=null,a.set("fbidx",b));b=this.A.S;null!=b&&a.set("ppid",b);var b="null",c=this.A.B;null!=c?b=c:fX(this.o.location)?b=this.o.location:fX(this.o.referrer)&&(b=this.o.referrer);a.set("url",b);b=this.A.G;null!=b&&a.set("submodel",b);b=this.A.F;
null!=b&&(b=gX(b),a.set("ciu_szs",b));a.set("impl","");return a};function fX(a){if(A(B(a)))return!1;a=new J(a);if(!a.Mb||"http"!=a.Mb&&"https"!=a.Mb)return!1;a=a.rb;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0}function gX(a){var b=[];D(a,function(a){0<a.length&&b.push(E(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function hX(a,b,c){fW.call(this,a,b);this.H=A(B(a.o));a=new lW;a.j=PW(a.j,this.o.o);a.adType=a.j.join("_");a.experimentIds=SW(a.experimentIds,this.o.A);this.j=a;this.F=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),IT(GT(),c))}z(hX,eX);hX.prototype.B=function(a){a=hX.K.B.call(this,a);this.H||iX(this,a);return a};function jX(a){var b=JW(a.o,a.j,a.F);b.set("sdkv",kW(a));b.set("sdki",a.C().toString(16));return b}
function iX(a,b){var c=jX(a),d=E(c.Ka(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});K(b,"afvparams",d.join("&"))};function kX(a,b,c){fW.call(this,a,b);this.H=A(B(a.o));a=new lW;a.j=PW(a.j,this.o.o);a.adType=a.j.join("_");a.experimentIds=SW(a.experimentIds,this.o.A);this.j=a;this.F=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),IT(GT(),c))}z(kX,bX);kX.prototype.B=function(a){a=kX.K.B.call(this,a);this.H||lX(this,a);return a};function mX(a){var b=JW(a.o,a.j,a.F);b.set("sdkv",kW(a));b.set("sdki",a.C().toString(16));return b}
function lX(a,b){var c=mX(a),d=E(c.Ka(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});ZT(b,"afvparams",[wa(d.join("&"))])};function nX(a,b){var c;!dU(a)&&!eU(a)||A(B(a.o))||null==a.adTagUrl||-1==a.adTagUrl.search("afvbase=")?dU(a)?c=new bX(a,jR):aU(a)?c=new VW(a,jR,b):eU(a)?c=new eX(a,jR):cU(a)?c=new aX(a,jR):(c=a.adTagUrl,null!=c?(c=nf(new J(c)),c=ua(c,".fwmrm.net")):c=!1,c=c?new cX(a):new dX(a)):c=dU(a)?new kX(a,jR,b):new hX(a,jR,b);return c};function oX(a){a=eb(a,function(a){return 0<TU(a)});zb(a,function(a,c){return TU(a)-TU(c)});return a}function pX(a){return eb(a,function(a){return-1==TU(a)})};function qX(a){this.j=a};function rX(){this.j=0}function sX(a,b,c,d,e,g){var h=x(function(a){d(a,Error(Gn(a)))},a),k=x(function(a){6==a?tX(this,b,!1,c,h,e,g):h(a)},a);tX(a,b,!0,c,k,e,g)}
function tX(a,b,c,d,e,g,h){var k=new po;k.R=c;so(k,uX(g));var l=new zn,p=x(function(){l.dispose();k.dispose()},a);c=x(function(){e(k.o);p()},a);Fn(l,k,"success",function(){var a;try{a=k.j?k.j.responseXML:null}catch(b){a=null}if(null==a){var c=Vn(k);try{a=WB(c)}catch(e){i:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=XB())){a.appendChild(a.createNode(1,"parsererror",""));
break i}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);Fn(l,k,["error","timeout"],c,a);var r;"POST"==h&&(b=new J(b),r=b.j.toString(),ef(b,""),b=b.toString());a.j=y();k.send(eK(b),h,r)};function vX(a,b,c){var d=null,e=c+b;D(a.B,function(g){if(FS(g.S,"rm")&&!$U(a,UJ)){var h=zW(a);kK(a.G,h);(h=a.A)&&h.adTagUrl&&-1!=h.adTagUrl.indexOf(";afc=1")&&(d=g)}else{if(h=g instanceof pU)0==c&&0==b||g instanceof pV?h=!0:(h=g.Gc(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-g.Gc().height+b-g.Gc().width,"Flash"!=g.getContentType()||xM))if(null==d)d=g,e=h;else if(h==e&&g.j<d.j||h<e)d=g,e=h}});LU(a,d)}
function wX(a){var b=null;D(a.B,function(a){a instanceof kU&&(null===b||a.j<b.j)&&(b=a)});LU(a,b)};function xX(a,b,c,d){this.B=a;this.H=b;this.ads=0<this.B.length?this.B:this.H;this.D=c;this.C=this.J=!0;this.o=-1;this.j=null;this.F=0;this.O=d;this.logger=null}xX.prototype.od=function(){return null!=this.j&&this.j.od()?!0:0<this.ads.length&&this.o<this.ads.length-1};function yX(a,b,c){null!=a.j?zX(a,b,c):a.od()?AX(a,b,x(function(a){this.od()&&301!=a.getErrorCode()?yX(this,b,c):c(a)},a)):c(new FJ("adLoadError","The ad source contains no more ads.",1005))}
xX.prototype.I=function(a,b){return this.C?0<a.length?a:b:vb(b,0,1)};xX.prototype.A=function(a,b,c){var d;if(!(d=null!=a.j)){var e=this.D;d=e.Vb||0;e=e.hc||0;VU(a)&&!a.I?UU(a,"nonlinear")?vX(a,d,e):wX(a):UU(a,"linear")?wX(a):UU(a,"nonlinear")&&vX(a,d,e);d=null!=a.j}d?(this.F++,b(a)):(b=lb(a.B)?VK(GK):AU(a)?VK(BK):VK(JK),d=tW(b,a),kK(a.V,d),c(b))};xX.prototype.G=function(a,b,c){var d=this.D.clone();d.j="";d.adTagUrl=a.Fa;d.zc=YQ(d.adTagUrl,d.Ne,d.Sd,d.Vb,d.hc,d.Qi);BX(this,a,d,b,c)};
function CX(a,b,c,d){var e=a.D.clone();e.j="";e.adTagUrl=b.Ma;BX(a,b,e,c,d)}function BX(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.o,null!=g&&(c.j=g));DX(a.O,c,x(function(a){if(a instanceof xX){var c=this.C&&b.Aa,g=b.Ba,p;for(p in a.ads)a.ads[p].o=b;a.C=c;a.ads=a.I(a.B,a.H);a.o=-1;a.J=g;d(a)}else a instanceof qX?e(new FJ("adLoadError","Ad source cannot contain playlist response.",2)):e(new FJ("adLoadError","Unknown ad source.",2))},a),e)}
function EX(a){var b=0;for(a=a.o;null!=a;)a=a.o,b++;return b}function zX(a,b,c){a.j.od()?yX(a.j,x(function(a){this.A(a,b,x(function(a){this.od()?yX(this,b,c):c(a)},this))},a),x(function(a){FX(this.ads[this.o],a);this.j=null;301==a.getErrorCode()?c(a):this.od()?yX(this,b,c):c(a)},a)):(0==a.j.F&&FX(a.ads[a.o],VK(RK)),a.j=null,yX(a,b,c))}function FX(a,b){1012==b.getErrorCode()&&(b=VK(IK));var c=tW(b,a);kK(a.V,c)}
function AX(a,b,c){a.o++;var d=a.ads[a.o];d.I||d.H?d.H?CX(a,d,x(function(a){this.j=a;yX(this,b,c)},a),x(function(a){a=GX(a);FX(d,a);c(a)},a)):4<=EX(d)?(a=VK(KK,null,"4"),FX(d,a),c(a)):a.J?a.G(d,x(function(a){this.j=a;yX(this,b,c)},a),x(function(a){a=GX(a);FX(d,a);c(a)},a)):c(VK(QK)):a.A(d,b,c)}function GX(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=VK(RK)}return a};function HX(a,b,c,d){xX.call(this,[],a,b,c);this.N=d}z(HX,xX);HX.prototype.od=function(){return null!=this.j&&this.j.od()?!0:0<this.ads.length&&this.o<this.ads.length-1&&0==this.F};HX.prototype.I=function(a,b){return b};HX.prototype.A=function(a,b,c){var d=-1,d=null==this.j?SU(a):SU(this.ads[this.o]);this.N.o=d;HX.K.A.call(this,a,b,c)};HX.prototype.G=function(a,b,c){this.N.o=-1;HX.K.G.call(this,a,b,c)};function IX(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.j=d;this.zb=e}function DX(a,b,c,d){A(B(b.j))?eU(b)&&null!=a.j&&!a.j.F?a.j.start(b,x(function(){JX(this,b,c,d)},a)):JX(a,b,c,d):KX(a,b,c,d)}function KX(a,b,c,d){var e;try{e=WB(b.j)}catch(g){d(VK(yK,g));return}null!=e?LX(a,e,b,c,d):d(VK(yK))}function JX(a,b,c,d){var e;if(e=null!=b.adTagUrl){i:{try{xa(b.adTagUrl)}catch(g){e=!1;break i}e=!0}e=!e}e?d(VK(sK,null,b.adTagUrl)):gL.B?iS(gS(),x(a.o,a,b,c,d)):a.o(b,c,d)}
IX.prototype.o=function(a,b,c,d){var e=nX(a,this.B).G(),e=jK(e,d,!0);d=a.oh&&cK(bK,e)?"POST":"GET";sX(this.A,e,x(function(d){LX(this,d,a,b,c)},this),x(function(b,d){var e;e=8==b?VK(FK):5==b||6==b?VK(nK):VK(rK,d);c(e);e="third_party";aU(a)?e="adsense":dU(a)?e="dart":eU(a)&&(e="xfp");e={rt:e,ec:b};tL(sL.getInstance(),18,e,!0)},this),this.zb,d);MX(a)};function MX(a){var b="third_party";aU(a)?b="adsense":dU(a)?b="dart":eU(a)?b="xfp":cU(a)&&(b="dbm");a={rt:b};tL(sL.getInstance(),17,a,!0)}
function LX(a,b,c,d,e){var g;try{var h=dW(b,c);if(!h)throw VK(yK);g=h.A();NX(a,g,c,d)}catch(k){k instanceof FJ?e(k):e(VK(zK,k))}}function NX(a,b,c,d){var e=b.j;if(null!=e)d(new qX(e));else{var g=b.A;if(null==g)throw VK(DK);D(g,function(a){a.A=c;a.ma=this.A.j;fL()&&(a.ua=b.o)},a);e=oX(g);g=pX(g);0<g.length&&0<=SU(g[0])?d(new HX(g,c,a,a.C)):d(new xX(e,g,c,a))}};function OX(a){this.j=a+y()}OX.prototype.reset=function(a){this.j=a+y()};function uX(a){var b=y();a=a.j-b;return 0<a?a:0};function PX(a,b){this.j=a;this.o=b;gL.j&&YO().init();var c;i:{try{c=window.top.location.href}catch(d){c=2;break i}c=null!=c?c==window.document.location.href?0:1:2}jR.H=c}function QX(a,b,c,d){var e=null;null!=a.j&&(e=new aS(1E3,a.j,a.o));DX(new IX(a.o,new rX,a.j,e,new OX(8E3)),b,x(function(a){a instanceof qX?c(a):RX(this,a,c,d)},a),d)}
function RX(a,b,c,d){var e=[],g=x(function(a,b){a.od()?yX(a,x(function(b){e.push(b);g(a,null)},this),x(function(b){301==b.getErrorCode()?d(VK(FK)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=VK(vK)),1012==b.getErrorCode()&&(b=VK(IK)),d(b))},a);g(b,null)};function SX(a){this.o=a;this.j=new ap}function TX(a,b,c,d){var e=x(function(a){c(a);dp(this.j);UX(this)},a),g=x(function(a){d(a);dp(this.j);UX(this)},a);cp(a.j,x(function(){QX(this.o,b,e,g)},a));UX(a)}function UX(a){1==a.j.Ta()?(a=a.j,bp(a),a=ab(a.j),null!=a&&a()):a.j.Ta()};function VX(a,b,c){U.call(this);this.B=new SX(new PX(b,c));this.C=a;this.o=b;this.j=!0;this.A=c}z(VX,U);function WX(a,b,c){if(a.j){var d=null!=c?c:{};XR.getInstance().end("rtr");$R(XR.getInstance(),b.adTagUrl);XR.getInstance().start("vl");TX(a.B,b,x(function(a){XX(this,a,d)},a),x(function(a){YX(this,a,d)},a))}}function ZX(a,b,c){if(!a.j){var d=null!=c?c:{};TX(a.B,b,x(function(a){XX(this,a,d)},a),x(function(a){YX(this,a,d)},a))}}
function XX(a,b,c){if(a.j)b instanceof qX?(b=new $X(b.j,a),b.D=a.o,a.X(new aY(b,c))):(b=bY(b),b.D=a.o,null!=b?(a.X(new aY(b,c)),XR.getInstance().end("vl")):YX(a,VK(BK,null),c));else if(b instanceof qX)YX(a,VK(mK,null,"Unsupported ad format."),c);else{var d=new WR("adsLoaderSdkAdLoaded");d.D=b;d.C=c;a.X(d)}}function YX(a,b,c){a.j?("always"==gL.o&&null!=a.o&&HR(a.o,ER()),a.X(new GJ(b,c))):(c=new WR("adsLoaderSdkAdError"),c.A=b,a.X(c))};var cY={NORMAL:"normal",FULLSCREEN:"fullscreen"};function dY(){return'<div class="close-padding"><div class="close-button"></div></div>'}function eY(){return'<div class="recall-button"></div>'}function fY(a){return'<a target="_blank" href="'+RP(a.url)+'" class="attribution-button">'+RP(a.text)+"</a>"};function gY(a,b){this.H=a;this.j=I("div",{"class":"controls"});this.S=b||v;this.Wc=new zn(this)}z(gY,Q);f=gY.prototype;f.wd=!1;f.up=1E3;f.hq=30;f.iq=45E3;f.wr=15E3;f.ts=!1;function hY(a){var b=I("div",{"class":"container"});Mw(b,"opacity 0.4s");a.Wc.M(b,"mouseover",a.ry);a.Wc.M(b,"mouseout",a.oD);b.appendChild(a.j);return b}f.il=function(){var a=hY(this);this.j.appendChild(this.H);this.display(this.H);this.play();return a};f.Q=function(){null==this.J&&(this.J=this.il());return this.J};
f.play=function(){null==this.o&&(this.o=vn(function(){this.wd||(this.$(),this.ts=!0);this.o=null},this.ts?this.wr:this.iq,this))};f.stop=function(){null!=this.o&&(wn(this.o),this.o=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};function iY(a){Zg(a.Q(),1);null!=a.A&&(wn(a.A),a.A=null)}f.$=function(){Zg(this.Q(),this.hq/100);null==this.A&&(this.A=vn(function(){this.S();this.A=null},400,this))};
f.ry=function(){iY(this);this.wd=!0;this.D=vn(function(){this.wd&&this.stop();this.D=null},this.up,this)};f.oD=function(){null!=this.D&&(wn(this.D),this.D=null);this.wd&&this.play();this.wd=!1};f.P=function(){gY.K.P.call(this);this.stop();yi(this.Wc)};function jY(a,b){this.I=a;this.O=new xe;this.N=15E3;this.F=I("span");gY.call(this,a[0],b);this.j.appendChild(this.F)}z(jY,gY);
jY.prototype.il=function(){var a=hY(this);N(a,"container-rotator");this.G=I("div");this.j.appendChild(this.G);D(this.I,function(a,c){N(a,"container-highlight");var d=63/this.I.length*(c+.5)-5,e=I("div",{id:Ua(),"class":"container-selector"});e.style.top=d+"px";this.Wc.M(e,"click",function(a){kY(this,a.target)});this.O.set(e.id,a);this.F.appendChild(e)},this);kY(this,Zd(this.F));this.play();return a};
jY.prototype.play=function(){null==this.B&&(this.B=new tn(this.N),this.Wc.M(this.B,"tick",this.R));jY.K.play.call(this);this.B.start()};jY.prototype.stop=function(){null!=this.B&&this.B.stop();jY.K.stop.call(this)};jY.prototype.R=function(){var a=this.C;kY(this,(void 0!=a.nextElementSibling?a.nextElementSibling:$d(a.nextSibling))||Zd(this.C.parentNode))};function kY(a,b){a.C&&oh(a.C,"container-active");N(b,"container-active");var c=a.O.get(b.id);Xd(c,a.G);a.C=b;a.G=c;a.display(c)};function lY(a,b){gY.call(this,a[0],b);this.B=a;N(this.j,"container-stack")}z(lY,gY);lY.prototype.$=v;lY.prototype.il=function(){var a=hY(this);D(this.B,function(a){N(a,"container-highlight");this.j.appendChild(a);this.display(a)},this);this.play();return a};function mY(){Q.call(this);this.F="";this.o=new NS;this.A=new xe;this.B=[];this.G=!1;this.j={};this.D=-1;this.C=[]}z(mY,Q);function nY(a,b){if(gL.j){var c=cP(YO(),b.type,a.F);a.H(b.type,c)}else jS(gS(),b.type,a.F,x(a.H,a,b.type))}
mY.prototype.H=function(a,b,c){null!=b&&CW(this.j,b);if("impression"==a&&!this.G&&null!=this.B&&0<this.B.length){var d=G(this.C,"impression");oY(this,this.B,"",d);this.G=!0}i:switch(a){case "click":d=!0;break i;case "complete":d=!ze(this.A,a)&&!ze(this.A,"skip");break i;default:d=!ze(this.A,a)}if(d){var d=G(this.C,a),e=US(this.o,a);0<e.length&&(oY(this,e,b,d,c),this.A.set(a,!0))}CW(this.j,"")};function pY(a,b){null!=b&&D(b,function(a){G(this.C,a)||this.C.push(a)},a)}
function oY(a,b,c,d,e){D(b,function(a){hK(a,this.j,c,d,e)},a)};function qY(a){U.call(this);this.ads=a;this.H=null;this.N="normal";this.B=this.volume=null;this.o=new wL;this.ga=!1;this.content={};this.C=new mY;this.R=!1;D(a,function(){});D(a,function(b,c){var d=b.C;d.B=a.length;var e=c+1;d.o=e;d.C=e})}z(qY,U);function rY(a){if(sY(a)){if(DU(a.H)&&!rL())throw XK(tK,null,"skippablevideo");return a.H}throw XK(pK,null,"An ad has not been selected.");}function sY(a){return null!==a.H}f=qY.prototype;
f.gh=function(){var a=cb(this.ads,this.H);-1!=a&&++a<this.ads.length?this.H=this.ads[a]:this.H=null};f.Jr=function(){if(!sY(this)){if(lb(this.ads))throw XK(BK);this.H=this.ads[0];if(null==this.H.j)throw VK(BK);}};f.wa=function(a){sY(this)?this.X(new JJ(a,rY(this))):this.X(new JJ(a,null))};function tY(a){null==a.G&&(a.G=new zn(a));return a.G}function uY(a,b){if(null!=a.D&&(Dn(tY(a),a.D,"companion_display_error",function(){}),HR(a.D,b),!a.D.so()))throw XK(qK);}
f.destroy=function(){gL.j&&(YO().C=null);this.dispose()};f.P=function(){sY(this)&&(LU(this.H,null),this.H=null);yi(this.G);this.G=null;yi(this.D);this.D=null;this.R=!1;qY.K.P.call(this)};f.Oe=function(){return[]};f.getCurrentAd=function(){return this.ads[0]};f.init=function(a){vY(this);this.Ui(a);this.ga=!0;this.mj()};f.mj=function(){this.wa("loaded")};f.sendImpressionUrls=function(a){sY(this)&&fL()&&kK(JU(rY(this)),a)};f.Sm=function(){};
f.Sc=function(a,b,c){if(!this.R){if(null==a)throw XK(uK,null,"displayContainer");if(null!=c){var d=new fk(Pb(this.o));if(!Ge(Pb(c),d.contains,d))throw XK(uK,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.o;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.mimeTypes&&(c.mimeTypes=[]);wY(c.mimeTypes);ga(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);ac(d,c)}this.content=b;this.B=a;this.Jr();gL.j&&(a=YO(),b=x(this.xy,this),a.C=b);this.R=!0}};
f.Vf=function(a){D(JU(a),function(a){nb(this.C.B,a)},this)};f.Xe=function(a,b){D(b,function(b){b=iU(a,b);QS(this.C.o,b)},this)};f.Aj=function(a){if(a instanceof kU){var b=lU(a);D(b.Ka(),function(a){var d=b.get(a);D(d,function(b){SS(this.C.o,a,b)},this)},this)}};function xY(a,b){nY(a.C,new fm(b))}f.dc=function(a){nY(this.C,new fm(a));this.wa(a)};f.getRemainingTime=function(){return-1};f.Mg=v;f.pause=function(){};f.resume=function(){};f.skip=function(){};
f.start=function(){vY(this);if(!this.ga)throw VK(pK,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.Bp=function(){return null!=this.volume?this.volume:0};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&ZK(this,uK,null,"volume",String(a));this.volume=a};f.Ui=function(a){if(!Nb(cY,a))throw XK(uK,null,"view mode",a);this.N=a};f.setMediaUrl=function(){};function vY(a){if(!a.R)throw XK(pK,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
f.Cp=function(){return null};f.yf=function(){return null};f.xy=function(){var a=-1,b=-1,c=!1;this.getCurrentAd()&&(b=bV(this.getCurrentAd()),c=fV(this.getCurrentAd()));0<=this.getRemainingTime()&&0<=b&&(a=b-this.getRemainingTime());return{currentTime:a,duration:b,isVpaid:c,volume:this.Bp()}};function wY(a){if(!ea(a))throw XK(pK,null,"adsRenderingSettings.mimeTypes should be an array");var b=rb(Ob(XJ),Ob(WJ));D(a,function(a){if(!G(b,a))throw XK(pK,null,"Invalid or unsuppoted mime type "+a);})};function yY(a){qY.call(this,a);this.A=null;this.Y=I("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.O=!1;this.S=[]}z(yY,qY);f=yY.prototype;f.start=function(){yY.K.start.call(this);this.B.Lj();this.A=this.B.Bf();if(null!=this.A){Vd(this.A);var a=this.Vk();gL.j?bP(YO(),a):hS(gS(),a);this.A.appendChild(a);zY(this);D(this.S,function(a){a()});mb(this.S);this.O=!0;this.wa("start")}};f.Mg=function(){yY.K.Mg.call(this);zY(this)};
f.P=function(){yi(this.j);this.B=this.j=null;this.O=!1;gL.j?YO().A=null:gS().A=null;null!=this.A&&(Vd(this.A),this.A=null);yY.K.P.call(this)};function AY(a,b){var c=xU(b);D(c,function(a){SS(this.C.o,"click",a)},a)}
f.Vk=function(){var a=MU(rY(this));if(null==a)throw a=XK(BK),BY(this,a),a;qU(a,tY(this));rU(a,this.bx);try{uY(this,rY(this))}catch(b){throw BY(this,b),b;}var c=rY(this),d=zW(c);this.C.j=d;c.j&&(this.Vf(c),(c=c.j)&&this.Xe(c,IJ));AY(this,a);this.O?this.dc("impression"):this.S.push(x(this.dc,this,"impression"));return CY(this,[a.Fe()])};f.Dp=function(a,b){return new gY(a[0],b)};
function CY(a,b){null!=a.j&&a.j.stop();a.j=a.Dp(b,x(a.Vo,a));var c=a.j.Q();if(gL.j){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{bottom:auto;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%;z-index:1000}.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}.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}.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%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-tap-highlight-color:rgba(0,0,0,0);-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}.videoAdUiRedesign .videoAdUi{cursor:default;text-shadow:0 0 4px rgba(0,0,0,0.75)}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiRedesign .videoAdUiTopBar{opacity:1;padding:14px 12px 10px;position:absolute}.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}.videoAdUiRedesign .videoAdUiTopBarWithGradients{background-image:none;box-shadow:inset 0 120px 90px -90px rgba(0,0,0,0.65);height:110px}.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}.videoAdUiRedesign .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:1}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiRedesign .videoAdUiTopBarNoFade{opacity:1!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;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiRedesign .videoAdUiBottomBar{background-image:none;box-shadow:inset 0 -120px 90px -90px rgba(0,0,0,0.65);height:110px;opacity:1;padding:0 12px}.videoAdUiRedesign .videoAdUiBottomBarText{bottom:0;font:normal 12px arial,sans-serif;left:7px;line-height:30px;position:absolute}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiRedesign .videoAdUiProgressBar{background-color:#888}.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%}.videoAdUiRedesign .videoAdUiProgress{background:#edcb3c;border-right:none;opacity:1}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiRedesign .videoAdUiAuthorIcon{height:40px;left:12px;margin:0;position:absolute;top:10px}.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}.videoAdUiRedesign .videoAdUiAuthorName{color:rgba(255,255,255,0.75);display:block;margin:0;padding:6px 0;position:absolute;top:30px;left:22px;right:48px}.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiTitle,.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiAuthorName,.videoAdUiRedesign.videoAdUiHasWatchLater .videoAdUiTitle,.videoAdUiRedesign.videoAdUiHasWatchLater .videoAdUiAuthorName{right:90px}.videoAdUiRedesign.ytp-iv-drawer-enabled.videoAdUiHasWatchLater .videoAdUiTitle,.videoAdUiRedesign.ytp-iv-drawer-enabled.videoAdUiHasWatchLater .videoAdUiAuthorName{right:132px}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;cursor:pointer;font:normal 13px arial,sans-serif;margin-bottom:5px;opacity:.9;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreText-gvn{display:inline-block;float:right;padding:5px;padding-right:10px}.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%}.videoAdUiRedesign .videoAdUiTitle{color:rgba(255,255,255,0.75);font:normal 17px arial,sans-serif;max-width:none;margin:0;padding-top:14px;position:absolute;top:0;left:22px;right:48px}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.rtl .videoAdUiTitleWithAuthorIcon{margin-left:auto;margin-right:60px}.videoAdUiRedesign .videoAdUiTitleWithAuthorIcon,.videoAdUiRedesign .videoAdUiAuthorNameWithAuthorIcon{margin-left:0;margin-right:0;left:62px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.videoAdUiRedesign .videoAdUiAuthorName:hover,.videoAdUiRedesign .videoAdUiTitle:hover{color:#fff}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttributionContainer{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;left:0;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiRedesign .videoAdUiAttributionContainer{font:normal 12px arial,sans-serif;line-height:30px;margin-top:6px;padding:0;padding-right:0;position:static;text-shadow:inherit}.videoAdUiAttributionContainer-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiAttribution{display:inline-block;opacity:.9;text-align:initial}.rtl .videoAdUiAttribution,.rtl .videoAdUiAdInfoPopupText,.rtl .videoAdUiAdvertiserLink{direction:rtl}.videoAdUiRedesign .videoAdUiAttribution,.videoAdUiRedesign .videoAdUiAttributionIcon{opacity:.75}.ltr .videoAdUiRedesign .videoAdUiAttribution{margin-left:5px}.videoAdUiAttributionContainer-gvn .videoAdUiAttribution{opacity:1}.videoAdUiAttributionIconContainer{display:inline-block;position:relative}.videoAdUiAttributionIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAACISURBVAjXPY6xDYJAAADPj0NQ27CAPBsYEztI2MGO6C4mbIAWdLbGglYbrUgMOsnZoNddrjlEXNr68OnRKDITKraceRFYsOHACTN7c3FwEHN7I3bWIhYWItZ2+DEVsbERMfU9BwIAK/4EbpOGKa65Y7Q3iqWlkyFWXtybmLjzaiWImNk6Ov7mvwScZI0STqHEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==);height:10px;margin:10px 10px 0;position:relative;width:10px}.videoAdUiAdInfoPopup{background:white;border:1px solid black;box-sizing:border-box;color:black;display:none;font-size:12px;left:-15px;line-height:normal;padding:7px;position:absolute;text-shadow:none;bottom:20px;width:211px}.videoAdUiRedesign .videoAdUiAdInfoPopup{left:-20px;bottom:30px}.videoAdUiAttributionIconContainer:hover .videoAdUiAdInfoPopup{display:inline-block}.videoAdUiAdInfoPopupCallout{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid white;box-sizing:border-box;display:inline-block;height:0;left:24px;overflow:visible;position:absolute;text-align:center;top:100%;width:0}.videoAdUiRedesign .videoAdUiAttributionIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAACISURBVAjXPY6xDYJAAADPj0NQ27CAPBsYEztI2MGO6C4mbIAWdLbGglYbrUgMOsnZoNddrjlEXNr68OnRKDITKraceRFYsOHACTN7c3FwEHN7I3bWIhYWItZ2+DEVsbERMfU9BwIAK/4EbpOGKa65Y7Q3iqWlkyFWXtybmLjzaiWImNk6Ov7mvwScZI0STqHEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==);display:inline-block;height:10px;margin:0 5px;opacity:.75;width:10px}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink{color:rgba(255,255,255,0.75);display:inline-block;margin:0 5px;cursor:pointer;text-decoration:none}.videoAdUiRedesign .videoAdUiVisitAdvertiserLinkText{display:inline-block;margin:-5px 0;padding:5px;text-decoration:inherit}.videoAdUiRedesign .videoAdUiVisitAdvertiserIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAABXSURBVAjXVY6xDYAwEMT8iBaJDWAWhFDYfwCo6MgKpiEh+JuXdYVDKvXtPkcQJDJg4XQ2ebspKu8ls6u0cje7OrVy9HIRD5FvOUiZhBK0WfFPqvRtdOEBg3RMtKey4oQAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAAElFTkSuQmCC);display:inline-block;height:10px;opacity:.75;width:10px}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink:hover{color:rgba(255,255,255,1.0);text-decoration:underline}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink:hover .videoAdUiVisitAdvertiserIcon{opacity:1}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.rtl .videoAdUiShare{float:left}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiRedesign .videoAdUiTopButtons{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif}.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiTopButtons{position:relative;right:34px}.videoAdUiRedesign .videoAdUiTopButton{background-position:center;background-repeat:no-repeat;border-left:5px solid transparent;border-right:5px solid transparent;border-top:14px solid transparent;display:inline-block;margin:-14px 0 0;height:24px;opacity:.75;text-align:center;width:24px}.videoAdUiRedesign .videoAdUiTopButton:hover{cursor:pointer;opacity:1}.videoAdUiRedesign .videoAdUiTopButtonShare{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAABoAAAAeAGPeoysAAACqSURBVDjL7ZJBEcIwEEU3GEgdREIlBAeVgITUQSSAk0oAB5VQHJQqeBwomcAMZHNghkPfKZvJn5+/80U2/g0cHlcnGQCYsHqJ50nI73dfJFb6NDRalyn5zIVUOFosRwBGOgKxkGgN/iDWBh9pP797XcQ+nW5y1a7YMWfhO63MEgl4zgAM2KpGcMhc9Y3Arn41jTCLXNLQKJ2yxbw1wpS+KL2InMyidtr4BXdaZZpobfXi6QAAAABJRU5ErkJggg==)}.videoAdUiRedesign .videoAdUiTopButton:hover .videoAdUiTopButtonCallout{display:inline-block}.videoAdUiRedesign .videoAdUiTopButtonCallout{border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #444;box-sizing:border-box;display:none;height:0;overflow:visible;position:relative;text-align:center;top:100%;width:0}.videoAdUiRedesign .videoAdUiTopButtonTooltip{background:#444;border-radius:3px;box-sizing:border-box;color:white;display:inline-block;font-size:11px;padding:8px;position:relative;top:5px;width:50px}.ltr .videoAdUiRedesign .videoAdUiTopButtonTooltip{left:-25px}.rtl .videoAdUiRedesign .videoAdUiTopButtonTooltip{right:-25px}.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}.videoAdUiRedesign .videoAdUiPreSkipContainer,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiPreSkipContainer{background:rgba(0,0,0,0.4);bottom:30px;height:52px;padding:0;vertical-align:middle}.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}.videoAdUiRedesign .videoAdUiSkipContainer,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiSkipContainer{bottom:30px;padding:0}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiRedesign .videoAdUiPreSkipButton,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiPreSkipButton{background:transparent;display:inline-block;font-size:12px;min-height:52px;min-width:0;padding:0;text-align:center}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiRedesign .videoAdUiPreSkipText{color:inherit;font:normal 12px arial,helvetica,sans-serif;width:auto;max-width:105px}.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}.videoAdUiRedesign .videoAdUiPreSkipThumbnailImage{max-width:92px;max-height:52px}.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;box-sizing:content-box;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center;cursor:pointer}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiRedesign .videoAdUiSkipButton,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiSkipButton{background:rgba(0,0,0,0.7);line-height:45px;min-width:164px;padding:0}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUiRedesign .videoAdUiSkipButton:hover{background:rgba(0,0,0,0.9)}.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}.rtl .videoAdUiSkipIcon{margin:0 0 0 2px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiRedesign .videoAdUiTitle{font-size:17px}.videoAdUiAttribution{font-size:13px}.videoAdUiRedesign .videoAdUiAttribution{font-size:12px}.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}}.videoAdUi.blazer .videoAdUiProgressBar{background-color:#222;height:4px}.videoAdUi.blazer .videoAdUiProgress{background-image:none;background-color:#e6bc27;opacity:1;position:absolute}.videoAdUi.blazer .videoAdUiBuffer{background-color:#666;display:block;position:absolute}.videoAdUi.blazer .videoAdUiAuthorName{display:none}.videoAdUi.blazer .videoadUiTitle,.videoAdUi.blazer .videoAdUiLearnMore{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:14px;text-shadow:0 0 2px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiAttribution{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:16px;text-shadow:0 0 2px rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiSkipButton,.videoAdUi.blazer .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-size:13px}.videoAdUi.blazer .videoAdUiSkipButton{font-family:"Helvetica Neue Light","Arial",sans-serif;border:1px solid rgba(255,255,255,0.25);background-color:rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiPreSkipButton{font-family:"Helvetica Neue","Arial",sans-serif;background-color:rgba(0,0,0,0.25);text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiPreSkipText{padding:5px 0}.videoAdUi.blazer .videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{line-height:inherit}.videoAdUi.blazer .videoAdUiLearnMore{text-shadow:1px 1px 1px rgba(0,0,0,0.75);margin:5px;margin-right:20px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.videoAdUi.blazer.phone .videoAdUiAttribution{font-size:14px}.videoAdUi.blazer.phone .videoAdUiSkipButton{padding:6px 0}.videoAdUi.blazer.phone .videoAdUiSkipIcon{margin-left:6px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon,.videoAdUi.blazer.tablet .videoadUiTitle{left:0;position:absolute;margin-top:17px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon{margin:5px 10px}.videoAdUi.blazer.tablet .videoAdUiSkipButton,.videoAdUi.blazer.tablet .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:13px;text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer.tablet .videoAdUiPreSkipContainer,.videoAdUi.blazer.tablet .videoAdUiSkipContainer{bottom:55px}.videoAdUi.blazer.tablet .videoAdUiAttribution{left:0;bottom:0}.videoAdUi.blazer.tablet:hover .videoAdUiAttribution{right:84%;bottom:26px;text-align:right}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar{bottom:35px;left:16%;width:68%}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar,.videoAdUi.blazer.tablet:hover .videoAdUiBuffer,.videoAdUi.blazer.tablet:hover .videoAdUiProgress{height:20px}');c.appendChild(d)}O(c,
"autoalign",a.o.uo);O(c,"viewmode-fullscreen","fullscreen"==a.N);c.appendChild(a.Y);tY(a).M(c,"click",gm);(sY(a)&&VU(rY(a))||a.o.useStyledNonLinearAds)&&a.Pk(a.j.j);return c}f.Pk=function(a){var b=tY(this);this.U=MP(eY);b.M(this.U,"click",this.Ux);var c=MP(dY);b.M(c,"click",this.Jl);a.appendChild(c)};function zY(a){if(null!=a.j){var b=Wg(a.B.Bf()),c=Wg(Zd(a.j.j));if(c.width>b.width||c.height>b.height)throw b=XK(wK,null),BY(a,b),a.stop(),b;}}function BY(a,b){var c=tW(b,rY(a)),d=IU(rY(a));kK(d,c)}
f.bx=function(a){this.dc("click");gm(a)};f.Jl=function(){this.Vo();this.wa("userClose");xY(this,"close")};f.Vo=function(){this.j.stop();var a=MU(rY(this));null!=a&&tU(a);Xd(this.U,this.j.j)};f.Ux=function(a){gm(a);iY(this.j);this.j.play();Xd(this.j.j,this.U);vn(function(){$g(this.Y,!1)},500,this);$g(this.Y,!0)};function DY(a){yY.call(this,a);this.J=!1;this.F=this.Z=null;lb(a)||null==a[0].A||(this.Z=a[0].A,tf(new J(this.Z.adTagUrl),"channel"))}z(DY,yY);f=DY.prototype;f.Dp=function(a,b){if(this.J||null==b)b=v;var c;fL()&&this.J?c=new gY(a[0],b):"fullscreen"==this.N?c=new lY(a):1<a.length?(c=new jY(a),c.N=15E3):c=new gY(a[0],b);c.up=100;this.J&&(c.hq=30);c.iq=45E3;c.wr=6E3;O(c.j,"scalable",this.J);O(c.Q(),"yt-text-overlay",fL()&&this.J);return c};
f.NC=function(a){var b=a.j;null!=b?(null==this.V&&(this.V=a.getExtension("AdSense").D),sU(b,pa(this.wy,a,b)),rU(b,pa(this.fx,a,b)),b.oa=!1,"Text"==b.getContentType()&&(this.J=!0),this.F.push(b)):(b=VK(BK),b=tW(b,a),kK(IU(a),b))};f.Sc=function(a,b,c){DY.K.Sc.call(this,a,b,c);this.o.uo=!0;null!=this.ads[0]&&0<OR(this.ads[0]).length?uY(this,this.ads[0]):fL()&&this.wa("companionBackfill")};
f.Vk=function(){null==this.F&&(this.F=[],D(this.ads,this.NC,this));if(0==this.F.length)throw XK(BK);var a=[];D(this.F,function(b){qU(b,tY(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Bo=!0);a.push(b.Fe());wU(b,this.V.A)},this);if(0==a.length)throw XK(BK);return CY(this,a)};f.Jl=function(a){DY.K.Jl.call(this,a);D(this.F,function(a){var c=zW(a.getAd());this.C.j=c;this.Xe(a,["close"]);xY(this,"close");this.C=new mY},this)};
f.Pk=function(a){DY.K.Pk.call(this,a);var b=this.ads[0].getExtension("AdSense"),c=b.B,b=b.C,c=MP(fY,{text:null!=c?c:this.V.j,url:null!=b?b:this.V.o});a.appendChild(c)};f.wy=function(a,b){this.O?this.zr(a,b):this.S.push(x(this.zr,this,a,b));sU(b,v)};f.zr=function(a,b){var c=zW(a);this.C.j=c;this.Vf(a);this.Xe(b,["creativeview"]);xY(this,"impression");xY(this,"creativeview");this.C=new mY};
f.fx=function(a,b,c){c=Sg(c);a=a.getExtension("AdSense");a=new J(a.A);var d=b.ud();isNaN(d)&&(d=Vg(b.Fe()).width);var e=b.getHeight();isNaN(e)&&(e=Vg(b.Fe()).height);b=GT();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.N,"sdkv=h.0.0.0","eids="+KT(b)];gK(a,"elementclick",b);D(this.F,function(a){var b=zW(a.getAd());this.C.j=b;AY(this,a);xY(this,"click");this.C=new mY},this);this.wa("click")};
f.Ui=function(a){this.N!=a&&(DY.K.Ui.call(this,a),null!=this.A&&(Vd(this.A),a=this.Vk(),this.A.appendChild(a)),this.wa("expandedChanged"))};function EY(a){JJ.call(this,"adMetadata",a)}z(EY,JJ);function FY(a,b,c){var d=v,e=new J("https://www.googleapis.com/youtube/v3/videos");K(e,"id",a);K(e,"part","snippet,status");K(e,"fields","items/id,items/snippet/title,items/snippet/channelId,items/status/privacyStatus");null!=c&&(b=x(b,c),d=x(d,c));GY(new po,e,b,d)}
function HY(a,b,c){var d=v,e=new J("https://www.googleapis.com/youtube/v3/channels");K(e,"id",a);K(e,"part","snippet,statistics");K(e,"fields","items/id,items/snippet/title,items/snippet/thumbnails/default/url,items/statistics/videoCount");null!=c&&(b=x(b,c),d=x(d,c));GY(new po,e,b,d)}
function GY(a,b,c,d){K(b,"key","AIzaSyDykhSj35yFHOiDglTp-ZuD9HCUQf62oS0");so(a,2E3);var e=new zn(a);Dn(e,a,"success",function(a){a=a.target;var b;b=a.j?lg(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});Dn(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.o&&(b=Error(Gn(a.o)));d(b);e.dispose();a.dispose()});a.send(b)};function IY(a,b,c,d,e){Wv.call(this);this.o=a;this.C=b;this.D=c;this.A=d;this.F=ea(e)?e:[e]}z(IY,Wv);f=IY.prototype;f.play=function(){if(this.tb())return!1;this.hj();this.sc("play");this.startTime=y();this.j=1;if(Ow())return Dg(this.o,this.D),this.B=vn(this.Vw,void 0,this),!0;this.fn(!1);return!1};f.Vw=function(){Wg(this.o);Mw(this.o,this.F);Dg(this.o,this.A);this.B=vn(x(this.fn,this,!1),1E3*this.C)};f.stop=function(){this.tb()&&this.fn(!0)};
f.fn=function(a){Nw(this.o,"");wn(this.B);Dg(this.o,this.A);this.endTime=y();this.j=0;a?this.sc("stop"):this.Wb();this.Yg()};f.P=function(){this.stop();IY.K.P.call(this)};f.pause=function(){};function JY(a,b,c,d){return new IY(a,.5,{opacity:c},{opacity:d},{property:"opacity",duration:.5,timing:b,Mo:0})};function KY(a,b){U.call(this);this.A=a;this.O=0;this.H=!1;this.o=1;this.j=this.Y=this.J=this.R=this.B=null;this.C=new zn(this);this.V=!1;this.ba=this.Z=this.S=0;this.D=this.G=this.F=null;this.N=!1;this.I=new jP;this.U="";this.A.G&&(this.C.M(b,"touchstart",this.Ky),this.C.M(b,"touchmove",this.Jy),this.C.M(b,"touchend",this.Iy));this.B=MP(qQ);this.R=Hd("videoAdUiPreSkipButton",this.B);this.J=Hd("videoAdUiPreSkipText",this.R);this.Y=Hd("videoAdUiPreSkipThumbnail",this.R);ee(this.J,sQ({wn:LY(this)}));
var c=this.A.Ga,c=(A(B(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.A.showContentThumbnail&&!A(B(c))){var d=Rd("img");d.setAttribute("src",c);N(d,"videoAdUiPreSkipThumbnailImage");this.Y.appendChild(d)}else N(this.J,"videoAdUiPreSkipTextOnly");this.A.G?c="\u00ab Swipe to Skip":(c="\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0440\u0435\u043a\u043b\u0430\u043c\u0443 \u00bb",d=new RegExp(Na("\u00bb"),""),c=c.replace(d,""),c=va(c));this.j=MP(tQ,{dD:c});$g(this.B,!1);
b.appendChild(this.B);$g(this.j,!1);Zg(this.j,0);b.appendChild(this.j);this.C.M(this.I,"click",this.bD);kP(this.I,this.j)}z(KY,U);f=KY.prototype;f.P=function(){null!=this.F&&(this.F.dispose(),this.F=null);null!=this.G&&(this.G.dispose(),this.G=null);MY(this);null!=this.B&&(Wd(this.B),this.B=null);null!=this.j&&(Wd(this.j),this.j=null);this.I.dispose();this.I=null;this.C.dispose();this.C=null;this.N=!1;KY.K.P.call(this)};
f.update=function(a,b){this.O=b;if(!(0>=this.O||null==this.A.skipOffset||0>LS(this.A.skipOffset))){var c=LS(this.A.skipOffset);c>=this.O||3==this.o||(0>a?this.o=1:a<=c?(2!=this.o&&(NY(this,0),JY(this.B,"ease-out",0,1).play(),$g(this.B,!0)),this.o=2):(3!=this.o&&($g(this.j,!0),this.G=new IY(this.B,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",Mo:0}),this.F=JY(this.j,"ease-out",0,1),this.G.play(),this.F.play(),this.C.M(be(this.j),
"mouseover",this.KC),this.C.M(be(this.j),"mouseout",this.Qr),this.Qr()),this.o=3,this.X("skipshown")))}2==this.o&&NY(this,a)};f.skip=function(){return null==this.A.skipOffset||3!=this.o||this.H?!1:(this.H=!0,this.X("PUBLISHER_INVOKED_SKIP"),!0)};f.Ky=function(a){var b=a.j;3==this.o&&1==b.touches.length&&(this.V=!0,this.ba=b.touches[0].pageX,a.preventDefault())};
f.Jy=function(a){var b=a.j;3==this.o&&1==b.touches.length&&this.V&&(b=b.touches[0].pageX,this.S=this.Z-b,this.Z=b,b=this.ba-b,0<b&&(this.j.style.right=b+"px"),a.preventDefault())};f.Iy=function(){this.V=!1;if(3==this.o){var a=Vg(be(this.j));if(parseInt(this.j.style.right,10)+4*this.S>.25*a.width&&0<this.S){$g(this.j,!1);this.H=!0;this.X("skip");return}}this.j.style.right=0};function LY(a){return null!=a.A.skipOffset&&-1!=LS(a.A.skipOffset)?LS(a.A.skipOffset):-1}
function NY(a,b){var c=LY(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+DS(c));c=sQ({wn:d,zi:a.U});ee(a.J,c)}}f.bD=function(a){fL()||a.stopPropagation();3!=this.o||this.H||(this.H=!0,this.X("skip"))};f.Qr=function(){null==this.D&&(this.D=vn(function(){this.N=!0;JY(this.j,"ease-in",1,.5).play();this.D=null},this.N?5E3:15E3,this))};f.KC=function(){Zg(this.j,1);MY(this)};function MY(a){null!=a.D&&(wn(a.D),a.D=null)};function OY(a,b,c){U.call(this);this.j=a;this.O=!1;this.oa=c;this.Z=this.V=this.R=this.C=this.I=this.J=this.G=this.Y=this.U=this.o=null;this.ma=!1;this.na=this.ba=this.da=this.H=this.B=this.F=this.ga=this.S=this.N=this.D=null;this.A=new zn(this);this.sa=[];this.O=!this.j.o&&(JT(956001)||JT(956002));a={Qc:this.j.Qc,Of:this.j.Of,mf:this.j.mf,zi:this.O?"redesign2014q4":""};this.o=MP(this.j.F,a);this.A.M(this.o,"touchmove",this.By);this.S=Hd("videoAdUiProgress",this.o);this.ga=Hd("videoAdUiBuffer",this.o);
this.U=Hd("videoAdUiAttributionContainer",this.o);this.Y=Hd("videoAdUiAttribution",this.o);this.G=Hd("videoAdUiVisitAdvertiserLinkText",this.o);this.J=Hd("videoAdUiVisitAdvertiserIcon",this.o);this.I=Hd("videoAdUiAuthorIcon",this.o);this.C=Hd("videoAdUiAuthorName",this.o);this.R=Hd("videoAdUiLearnMore",this.o);this.V=Hd("videoAdUiLearnMoreText",this.o);this.O?(this.H=Hd("videoAdUiTopButtonShare",this.o),this.da=Hd("videoAdUiTopButtonShareTooltip",this.o),this.ba=Hd("videoAdUiTopButtonInfo",this.o),
this.na=Hd("videoAdUiTopButtonWatchLater",this.o)):this.H=Hd("videoAdUiShare",this.o);this.D=Hd("videoAdUiTitle",this.o);this.N=Hd("videoAdUiTopBar",this.o);this.Z=Hd("videoAdUiBottomBar",this.o);null!=this.I&&this.A.M(this.I,"click",this.gw);null!=this.C&&this.A.M(this.C,"click",this.hw);null!=this.R&&this.A.M(this.R,"click",this.Xp);null!=this.V&&this.A.M(this.V,"click",this.Xp);null!=this.H&&this.A.M(this.H,"click",this.XC);null!=this.D&&this.A.M(this.D,"click",this.lD);null!=this.N&&this.A.M(this.o,
"mouseover",this.WC);null!=this.G&&this.A.M(this.G,"click",this.ak);null!=this.J&&this.A.M(this.J,"click",this.ak);null!=this.j.skipOffset&&(this.B=new KY(this.j,this.o),this.B.Ij(this),this.B.U=a.zi);400>=(parseInt(Hg(b,"width"),10)||b.width)&&N(this.o,"videoAdUi-mobile");this.j.o&&(N(this.o,"blazer"),window.settings&&window.settings.isTablet?N(this.o,"tablet"):N(this.o,"phone"));this.j.G&&N(this.o,"videoAdUi-swipeable");this.O&&N(ne(b,"html5-video-player"),"videoAdUiRedesign");$g(this.o,!1);b.appendChild(this.o);
this.j.B||this.O||(this.F=I("div",{style:"width:100%;height:100%"}),this.o.appendChild(this.F));PY(this)}z(OY,U);f=OY.prototype;f.skip=function(){var a;if(a=null!=this.B)a=this.B,a=null!=a.A.skipOffset&&3==a.o;return a?this.B.skip():!1};f.P=function(){null!=this.o&&(Wd(this.o),this.o=null);null!=this.B&&(this.B.dispose(),this.B=null);this.F=null;this.A.dispose();this.A=null;this.ma=!1;OY.K.P.call(this)};
f.update=function(a,b,c,d,e){this.ma=!0;null!=this.o&&(null!=this.Y&&QY(this,a,c,d,e),null!=this.S&&Ug(this.S,a/c*100+"%"),null!=this.ga&&Ug(this.ga,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.B&&(MS(this.j.skipOffset,c),this.B.update(a,c)),this.j.D&&0<c&&5>c-a&&N(this.N,"videoAdUiTopBarNoFade"),D(this.sa,function(b){b.update(a,c)},this))};function RY(a,b){a.sa=b;D(b,function(a){a.display(this.o)},a)}
function SY(a){null!=a.G&&($g(a.G,!0),ee(a.G,a.j.visitAdvertiserText));null!=a.J&&$g(a.J,!0)}
function PY(a){var b=a.j.O&&(a.oa>a.j.U||0==a.oa),c=b&&a.j.R,d=b&&a.j.V,e=b&&a.j.A,g=b&&a.j.N,b=b&&a.j.D,h=a.j.J&&a.j.j,k="0px";null!=a.D&&($g(a.D,b),null!=a.I&&$g(a.I,c),null!=a.C&&$g(a.C,d),null!=a.R&&$g(a.R,e),null!=a.H&&($g(a.H,g),g&&a.X("videoShareShown")),null!=a.ba&&$g(a.ba,!1),null!=a.na&&$g(a.na,!1),null!=a.N&&$g(a.N,b||c||d||e));null!=a.U&&TY(a);null!=a.S&&($g(a.S,h),h&&(k=Hg(a.S,"height")));null!=a.Z&&Dg(a.Z,"bottom",k);null!=a.V&&$g(a.V,a.j.B)}
function QY(a,b,c,d,e){var g=uQ({Rj:"",bi:0,Tj:0});a.j.j&&a.j.I&&(b=DS(c-b),g=uQ({Rj:a.j.o?" \u2022 "+b:a.O?" \u00b7 "+b:": ("+b+")",bi:d,Tj:e}));ee(a.Y,g);TY(a)}function TY(a){$g(a.U,a.j.C&&(!a.j.j||a.ma))}f.gw=function(){this.X("videoAuthorIconClicked")};f.hw=function(){this.X("videoAuthorClicked")};f.Xp=function(){this.X("videoLearnMoreClicked")};f.XC=function(){this.X("videoShareClicked")};f.lD=function(){this.X("videoTitleClicked")};f.By=function(a){a.preventDefault()};
f.ak=function(){this.j.H?this.X("click"):this.X("videoClicked")};f.WC=function(){N(this.N,"videoAdUiTopBarTransitions")};function UY(){this.Qc=uQ({Rj:"",bi:0,Tj:0});var a="",b="\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435... "+RP("");this.Of=a+b;this.visitAdvertiserText="Visit Advertiser's Site";var b=SP('<a href="https://www.google.com/settings/ads/onweb">'),c=SP("</a>"),a="",b="\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u0435 "+(RP(b)+("\u0440\u0430\u0437\u0434\u0435\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 Google"+(RP(c)+", \u0447\u0442\u043e\u0431\u044b \u0443\u0437\u043d\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043e \u0442\u0430\u0440\u0433\u0435\u0442\u0438\u043d\u0433\u0435 \u043e\u0431\u044a\u044f\u0432\u043b\u0435\u043d\u0438\u0439 \u0438\u043b\u0438 \u043e\u0442\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0430\u0434\u0440\u0435\u0441\u043d\u043e\u0439 \u0440\u0435\u043a\u043b\u0430\u043c\u044b.")));
this.mf=SP(a+b);this.skipOffset=null;this.U=6E3;this.I=this.j=this.H=this.C=!0;this.N=this.J=this.A=!1;this.O=!0;this.D=this.V=this.R=this.S=this.B=!1;this.F=null;this.G=jm&&JT(0);this.showContentThumbnail=!0;this.o=!1}function VY(a,b,c,d){var e=new UY;e.B=a;e.Y=b;e.skipOffset=c;e.Ga=null!=d?d.contentId:null;e.F=nQ;e.Z=sP(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};function WY(a){fm.call(this,a)}z(WY,fm);function XY(a){U.call(this);this.C=a;this.I=new xe;this.G=-1;this.J=!1}z(XY,U);function YY(a){this.o=!1;this.j=a.Ng();this.volume=a.sd()}YY.prototype.muted=function(a,b){return!this.j&&a||0<this.volume&&0==b};f=XY.prototype;f.P=function(){ZY(this);XY.K.P.call(this)};function ZY(a){null!=a.o&&a.o.dispose();null!=a.j&&a.j.Gf();null!=a.D&&a.D.dispose();a.D=null;null!=a.F&&a.F.dispose();a.F=null;a.I.clear();a.G=-1;a.J=!1}
function $Y(a,b,c){if(!c||null==a.I.get(b)){a.I.set(b,!0);i:{if(a.A&&a.A.j.A){if("click"==b)break i;"videoLearnMoreClicked"==b&&nY(a.C,new fm("click"))}c="click"==b||"videoLearnMoreClicked"==b?3:null;null!=c&&null!=a.j&&a.j.Nr(c);nY(a.C,new fm(b))}a.X(b)}}f.UA=function(){$Y(this,"measurable_impression",!1)};f.oC=function(a){a=a.A;a=CW(this.C.j,null!=a?a.viewabilityString:null);this.C.j=a;$Y(this,"viewable_impression",!1)};
f.Uy=function(){var a=this.j.qd();if(-1!=a){this.j.wg(.25*a)&&$Y(this,"firstquartile",!0);this.j.wg(.5*a)&&$Y(this,"midpoint",!0);this.j.wg(.75*a)&&$Y(this,"thirdquartile",!0);var b=this.C,c=this.j.getCurrentTime();0>b.D&&(TS(b.o,a),b.D=0);for(var a=RS(b.o,"progress"),d=b.D;d<a.length;d++){var e=a[d];if(LS(e.o)>c)break;b.D=d+1;hK(e.j,b.j)}}aZ(this)};function aZ(a){0>a.G||a.J||!a.j.wg(a.G)&&!a.j.Re()||(a.J=!0,$Y(a,"engagedview",!0),a.X(new WY("viewCount")))}
f.Ty=function(){$Y(this,"impression",!0);$Y(this,"creativeview",!0);null!=this.H||null!=this.A||this.o.M(this.j,"click",this.am);null!=this.H&&(this.D=new jP,this.o.M(this.D,"click",this.am,!1),kP(this.D,this.H));null!=this.A&&(this.F=new jP,this.o.M(this.F,"click",this.am,!1),kP(this.F,this.A));$Y(this,"start",!0);(this.j.Ng()||0==this.j.sd())&&$Y(this,"mute",!1)};
f.Vy=function(){var a=this.j.Ng(),b=this.j.sd(),c=this.B;c.j&&!a||!a&&0==c.volume&&0<b?$Y(this,"unmute",!1):this.B.muted(a,b)&&$Y(this,"mute",!1);this.B.j=a;this.B.volume=b};f.Ry=function(){this.j.Re()?(aZ(this),$Y(this,"complete",!0)):this.j.Og()&&!this.j.Gp()&&(this.B.o=!0,$Y(this,"pause",!1))};f.Sy=function(){this.B.o&&(this.B.o=!1,$Y(this,"resume",!1))};f.Ny=function(){aZ(this);$Y(this,"complete",!0)};f.am=function(){$Y(this,"click",!1)};f.Oy=function(){$Y(this,"error",!1)};
f.Qy=function(){$Y(this,"mediaLoadTimeout",!1)};f.fr=function(){$Y(this,"skipshown",!0)};f.YB=function(){$Y(this,"videoAuthorIconClicked",!1)};f.XB=function(){$Y(this,"videoAuthorClicked",!1)};f.$B=function(){$Y(this,"videoClicked",!1)};f.fC=function(){$Y(this,"videoLearnMoreClicked",!1)};f.kC=function(){$Y(this,"videoShareClicked",!1)};f.lC=function(){$Y(this,"videoShareShown",!0)};f.nC=function(){$Y(this,"videoTitleClicked",!1)};f.Op=function(){$Y(this,"skip",!0)};
f.lB=function(){$Y(this,"skip",!0)};f.Py=function(){$Y(this,"fullscreen",!1)};f.zA=function(){$Y(this,"exitfullscreen",!1)};function bZ(a){qY.call(this,a);this.A=null;this.F=new XY(this.C);this.V=this.Z=this.Y=this.U=this.O=!1;this.S=1;this.J=null}z(bZ,qY);f=bZ.prototype;f.P=function(){cZ(this);var a=!1;null!=this.B&&(a=this.B.Ql(),this.B.$(),this.B=null);this.O&&(this.O=!1,this.j.Og()||this.j.Re()||this.j.pause(),nL()&&!a&&(this.j.Ff(.001),this.j.load("","")),mL()&&this.j.Td()&&!a&&this.j.rl(),this.wa("contentResumeRequested"),this.wa("allAdsCompleted"));bZ.K.P.call(this)};
function cZ(a){yi(a.A);a.A=null;yi(a.F);yi(a.C);yi(a.H);a.U=!1;a.V=!1}function dZ(a){a.gh();sY(a)?a.start():a.stop()}f.gh=function(){cZ(this);bZ.K.gh.call(this);sY(this)&&(this.C=new mY,this.F=new XY(this.C))};
f.kz=function(a,b,c){if(!this.U){this.U=!0;var d=qP(b);if(this.o.useVideoAdUi){var e=a.getExtension("AdSense"),g=this.o.Ol&&((null===b?!1:"modules"==(new J(b)).Af().toLowerCase())||null!=e&&e.G),h=!0,k=!0;if(JT(909720)||DU(a)&&30<bV(a)&&JT(909721))k=h=!1;e=-1!=bV(a)&&0!=bV(a)&&7>=bV(a)?null:WU(a);if(fL()){var l=this.o,p=A(B(aV(a)))?!1:this.o.ls;FU(a,SJ);d=VY(g,d,e,l);d.A=p;d.J=k;d.I=h;d.o=l.nn;d.H=l.qD;d.N=l.useShareButton;d.S=l.rD;d.U=0;l.nn&&(d.Of="Visit Advertiser")}else FU(a,SJ)||!A(B(a.N))?(l=
g,p=this.o,!A(B(d))&&null!==e&&0<LS(e)&&JT(41351090)&&(l=!0),d=VY(l,d,e,p),d.F=l?pQ:oQ):(d=VY(g,d,e,this.o),d.O=!1,d.C=!1,d.j=!1);e=this.B.Bl();null===e?e=document.body:(Vd(e),l=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{bottom:auto;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%;z-index:1000}.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}.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}.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%}.ima-sdk-frame-native body{background:#000}.ima-sdk-frame-native video{bottom:0;left:0;margin:auto;right:0;top:0}.ytp-iv-drawer-open .videoAdUiTopBar,.ytp-iv-drawer-open .videoAdUiPreSkipContainer,.ytp-iv-drawer-open .videoAdUiSkipContainer,.ytp-iv-drawer-open .ad-overlay .container{display:none}.videoAdUi{-webkit-tap-highlight-color:rgba(0,0,0,0);-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}.videoAdUiRedesign .videoAdUi{cursor:default;text-shadow:0 0 4px rgba(0,0,0,0.75)}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiRedesign .videoAdUiTopBar{opacity:1;padding:14px 12px 10px;position:absolute}.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}.videoAdUiRedesign .videoAdUiTopBarWithGradients{background-image:none;box-shadow:inset 0 120px 90px -90px rgba(0,0,0,0.65);height:110px}.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}.videoAdUiRedesign .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:1}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiRedesign .videoAdUiTopBarNoFade{opacity:1!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;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiRedesign .videoAdUiBottomBar{background-image:none;box-shadow:inset 0 -120px 90px -90px rgba(0,0,0,0.65);height:110px;opacity:1;padding:0 12px}.videoAdUiRedesign .videoAdUiBottomBarText{bottom:0;font:normal 12px arial,sans-serif;left:7px;line-height:30px;position:absolute}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.videoAdUiRedesign .videoAdUiProgressBar{background-color:#888}.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%}.videoAdUiRedesign .videoAdUiProgress{background:#edcb3c;border-right:none;opacity:1}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiRedesign .videoAdUiAuthorIcon{height:40px;left:12px;margin:0;position:absolute;top:10px}.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}.videoAdUiRedesign .videoAdUiAuthorName{color:rgba(255,255,255,0.75);display:block;margin:0;padding:6px 0;position:absolute;top:30px;left:22px;right:48px}.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiTitle,.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiAuthorName,.videoAdUiRedesign.videoAdUiHasWatchLater .videoAdUiTitle,.videoAdUiRedesign.videoAdUiHasWatchLater .videoAdUiAuthorName{right:90px}.videoAdUiRedesign.ytp-iv-drawer-enabled.videoAdUiHasWatchLater .videoAdUiTitle,.videoAdUiRedesign.ytp-iv-drawer-enabled.videoAdUiHasWatchLater .videoAdUiAuthorName{right:132px}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;cursor:pointer;font:normal 13px arial,sans-serif;margin-bottom:5px;opacity:.9;text-align:center}.videoAdUiLearnMoreText:hover{text-decoration:underline}.videoAdUiLearnMoreText-gvn{display:inline-block;float:right;padding:5px;padding-right:10px}.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%}.videoAdUiRedesign .videoAdUiTitle{color:rgba(255,255,255,0.75);font:normal 17px arial,sans-serif;max-width:none;margin:0;padding-top:14px;position:absolute;top:0;left:22px;right:48px}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.rtl .videoAdUiTitleWithAuthorIcon{margin-left:auto;margin-right:60px}.videoAdUiRedesign .videoAdUiTitleWithAuthorIcon,.videoAdUiRedesign .videoAdUiAuthorNameWithAuthorIcon{margin-left:0;margin-right:0;left:62px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.videoAdUiRedesign .videoAdUiAuthorName:hover,.videoAdUiRedesign .videoAdUiTitle:hover{color:#fff}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttributionContainer{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;left:0;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiRedesign .videoAdUiAttributionContainer{font:normal 12px arial,sans-serif;line-height:30px;margin-top:6px;padding:0;padding-right:0;position:static;text-shadow:inherit}.videoAdUiAttributionContainer-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiAttribution{display:inline-block;opacity:.9;text-align:initial}.rtl .videoAdUiAttribution,.rtl .videoAdUiAdInfoPopupText,.rtl .videoAdUiAdvertiserLink{direction:rtl}.videoAdUiRedesign .videoAdUiAttribution,.videoAdUiRedesign .videoAdUiAttributionIcon{opacity:.75}.ltr .videoAdUiRedesign .videoAdUiAttribution{margin-left:5px}.videoAdUiAttributionContainer-gvn .videoAdUiAttribution{opacity:1}.videoAdUiAttributionIconContainer{display:inline-block;position:relative}.videoAdUiAttributionIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAACISURBVAjXPY6xDYJAAADPj0NQ27CAPBsYEztI2MGO6C4mbIAWdLbGglYbrUgMOsnZoNddrjlEXNr68OnRKDITKraceRFYsOHACTN7c3FwEHN7I3bWIhYWItZ2+DEVsbERMfU9BwIAK/4EbpOGKa65Y7Q3iqWlkyFWXtybmLjzaiWImNk6Ov7mvwScZI0STqHEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==);height:10px;margin:10px 10px 0;position:relative;width:10px}.videoAdUiAdInfoPopup{background:white;border:1px solid black;box-sizing:border-box;color:black;display:none;font-size:12px;left:-15px;line-height:normal;padding:7px;position:absolute;text-shadow:none;bottom:20px;width:211px}.videoAdUiRedesign .videoAdUiAdInfoPopup{left:-20px;bottom:30px}.videoAdUiAttributionIconContainer:hover .videoAdUiAdInfoPopup{display:inline-block}.videoAdUiAdInfoPopupCallout{border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid white;box-sizing:border-box;display:inline-block;height:0;left:24px;overflow:visible;position:absolute;text-align:center;top:100%;width:0}.videoAdUiRedesign .videoAdUiAttributionIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAACISURBVAjXPY6xDYJAAADPj0NQ27CAPBsYEztI2MGO6C4mbIAWdLbGglYbrUgMOsnZoNddrjlEXNr68OnRKDITKraceRFYsOHACTN7c3FwEHN7I3bWIhYWItZ2+DEVsbERMfU9BwIAK/4EbpOGKa65Y7Q3iqWlkyFWXtybmLjzaiWImNk6Ov7mvwScZI0STqHEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAABJRU5ErkJggg==);display:inline-block;height:10px;margin:0 5px;opacity:.75;width:10px}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink{color:rgba(255,255,255,0.75);display:inline-block;margin:0 5px;cursor:pointer;text-decoration:none}.videoAdUiRedesign .videoAdUiVisitAdvertiserLinkText{display:inline-block;margin:-5px 0;padding:5px;text-decoration:inherit}.videoAdUiRedesign .videoAdUiVisitAdvertiserIcon{background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAQAAAAnOwc2AAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAAAoAAAAKAE6mduUAAABXSURBVAjXVY6xDYAwEMT8iBaJDWAWhFDYfwCo6MgKpiEh+JuXdYVDKvXtPkcQJDJg4XQ2ebspKu8ls6u0cje7OrVy9HIRD5FvOUiZhBK0WfFPqvRtdOEBg3RMtKey4oQAAAAZdEVYdFNvZnR3YXJlAEFkb2JlIEltYWdlUmVhZHlxyWU8AAAAAElFTkSuQmCC);display:inline-block;height:10px;opacity:.75;width:10px}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink:hover{color:rgba(255,255,255,1.0);text-decoration:underline}.videoAdUiRedesign .videoAdUiVisitAdvertiserLink:hover .videoAdUiVisitAdvertiserIcon{opacity:1}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.rtl .videoAdUiShare{float:left}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiRedesign .videoAdUiTopButtons{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif}.videoAdUiRedesign.ytp-iv-drawer-enabled .videoAdUiTopButtons{position:relative;right:34px}.videoAdUiRedesign .videoAdUiTopButton{background-position:center;background-repeat:no-repeat;border-left:5px solid transparent;border-right:5px solid transparent;border-top:14px solid transparent;display:inline-block;margin:-14px 0 0;height:24px;opacity:.75;text-align:center;width:24px}.videoAdUiRedesign .videoAdUiTopButton:hover{cursor:pointer;opacity:1}.videoAdUiRedesign .videoAdUiTopButtonShare{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAeCAQAAACY0sZTAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAAAEgAAABIAEbJaz4AAAAJdnBBZwAAABoAAAAeAGPeoysAAACqSURBVDjL7ZJBEcIwEEU3GEgdREIlBAeVgITUQSSAk0oAB5VQHJQqeBwomcAMZHNghkPfKZvJn5+/80U2/g0cHlcnGQCYsHqJ50nI73dfJFb6NDRalyn5zIVUOFosRwBGOgKxkGgN/iDWBh9pP797XcQ+nW5y1a7YMWfhO63MEgl4zgAM2KpGcMhc9Y3Arn41jTCLXNLQKJ2yxbw1wpS+KL2InMyidtr4BXdaZZpobfXi6QAAAABJRU5ErkJggg==)}.videoAdUiRedesign .videoAdUiTopButton:hover .videoAdUiTopButtonCallout{display:inline-block}.videoAdUiRedesign .videoAdUiTopButtonCallout{border-left:5px solid transparent;border-right:5px solid transparent;border-bottom:5px solid #444;box-sizing:border-box;display:none;height:0;overflow:visible;position:relative;text-align:center;top:100%;width:0}.videoAdUiRedesign .videoAdUiTopButtonTooltip{background:#444;border-radius:3px;box-sizing:border-box;color:white;display:inline-block;font-size:11px;padding:8px;position:relative;top:5px;width:50px}.ltr .videoAdUiRedesign .videoAdUiTopButtonTooltip{left:-25px}.rtl .videoAdUiRedesign .videoAdUiTopButtonTooltip{right:-25px}.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}.videoAdUiRedesign .videoAdUiPreSkipContainer,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiPreSkipContainer{background:rgba(0,0,0,0.4);bottom:30px;height:52px;padding:0;vertical-align:middle}.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}.videoAdUiRedesign .videoAdUiSkipContainer,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiSkipContainer{bottom:30px;padding:0}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiRedesign .videoAdUiPreSkipButton,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiPreSkipButton{background:transparent;display:inline-block;font-size:12px;min-height:52px;min-width:0;padding:0;text-align:center}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiRedesign .videoAdUiPreSkipText{color:inherit;font:normal 12px arial,helvetica,sans-serif;width:auto;max-width:105px}.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}.videoAdUiRedesign .videoAdUiPreSkipThumbnailImage{max-width:92px;max-height:52px}.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;box-sizing:content-box;color:#fff;font:normal 18px arial,helvetica,sans-serif;min-width:150px;padding:10px 7px;text-align:center;cursor:pointer}.videoAdUi-mobile .videoAdUiSkipButton{font:normal 16px arial,helvetica,sans-serif;min-width:100px;padding:6px 7px}.videoAdUiRedesign .videoAdUiSkipButton,.videoAdUi-mobile.videoAdUiRedesign .videoAdUiSkipButton{background:rgba(0,0,0,0.7);line-height:45px;min-width:164px;padding:0}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUiRedesign .videoAdUiSkipButton:hover{background:rgba(0,0,0,0.9)}.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}.rtl .videoAdUiSkipIcon{margin:0 0 0 2px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiRedesign .videoAdUiTitle{font-size:17px}.videoAdUiAttribution{font-size:13px}.videoAdUiRedesign .videoAdUiAttribution{font-size:12px}.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}}.videoAdUi.blazer .videoAdUiProgressBar{background-color:#222;height:4px}.videoAdUi.blazer .videoAdUiProgress{background-image:none;background-color:#e6bc27;opacity:1;position:absolute}.videoAdUi.blazer .videoAdUiBuffer{background-color:#666;display:block;position:absolute}.videoAdUi.blazer .videoAdUiAuthorName{display:none}.videoAdUi.blazer .videoadUiTitle,.videoAdUi.blazer .videoAdUiLearnMore{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:14px;text-shadow:0 0 2px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiAttribution{font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:16px;text-shadow:0 0 2px rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiSkipButton,.videoAdUi.blazer .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-size:13px}.videoAdUi.blazer .videoAdUiSkipButton{font-family:"Helvetica Neue Light","Arial",sans-serif;border:1px solid rgba(255,255,255,0.25);background-color:rgba(0,0,0,0.5)}.videoAdUi.blazer .videoAdUiPreSkipButton{font-family:"Helvetica Neue","Arial",sans-serif;background-color:rgba(0,0,0,0.25);text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer .videoAdUiPreSkipText{padding:5px 0}.videoAdUi.blazer .videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{line-height:inherit}.videoAdUi.blazer .videoAdUiLearnMore{text-shadow:1px 1px 1px rgba(0,0,0,0.75);margin:5px;margin-right:20px}.videoAdUi.blazer.phone .videoAdUiAuthorIcon,.videoAdUi.blazer.phone .videoadUiTitle{display:none}.videoAdUi.blazer.phone .videoAdUiAttribution{font-size:14px}.videoAdUi.blazer.phone .videoAdUiSkipButton{padding:6px 0}.videoAdUi.blazer.phone .videoAdUiSkipIcon{margin-left:6px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon,.videoAdUi.blazer.tablet .videoadUiTitle{left:0;position:absolute;margin-top:17px}.videoAdUi.blazer.tablet .videoAdUiAuthorIcon{margin:5px 10px}.videoAdUi.blazer.tablet .videoAdUiSkipButton,.videoAdUi.blazer.tablet .videoAdUiPreSkipButton{min-width:95px;width:95px;min-height:24px;font-family:"Helvetica Neue Light","Arial",sans-serif;font-size:13px;text-shadow:1px 1px 1px rgba(0,0,0,0.75)}.videoAdUi.blazer.tablet .videoAdUiPreSkipContainer,.videoAdUi.blazer.tablet .videoAdUiSkipContainer{bottom:55px}.videoAdUi.blazer.tablet .videoAdUiAttribution{left:0;bottom:0}.videoAdUi.blazer.tablet:hover .videoAdUiAttribution{right:84%;bottom:26px;text-align:right}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar{bottom:35px;left:16%;width:68%}.videoAdUi.blazer.tablet:hover .videoAdUiProgressBar,.videoAdUi.blazer.tablet:hover .videoAdUiBuffer,.videoAdUi.blazer.tablet:hover .videoAdUiProgress{height:20px}'),
e.appendChild(l));l=1E3*bV(rY(this));this.A=new OY(d,e,l);e=d.Y;null!=e&&(rY(this).N=e,d.S&&eZ(this,e));e=[];d.C&&e.push("adAttribution");d.j&&e.push("countdown")}else d&&this.o.po&&(rY(this).N=d,eZ(this,d));d=this.F;e=this.j;l=this.B.wl();p=this.A;ZY(d);d.C.F=a.Y;d.j=e;d.A=p||null;d.j.Vi();d.B=new YY(d.j);d.H=l||null;d.o=new zn(d);d.o.M(a,"measurable_impression",d.UA);d.o.M(a,"viewable_impression",d.oC);d.o.M(d.j,"timeUpdate",d.Uy);d.o.M(d.j,"volumeChange",d.Vy);d.o.M(d.j,"pause",d.Ry);d.o.M(d.j,
"play",d.Sy);d.o.M(d.j,"end",d.Ny);d.o.M(d.j,"beginFullscreen",d.Py);d.o.M(d.j,"endFullscreen",d.zA);d.o.M(d.j,"skip",d.Op);d.o.M(d.j,"skipShown",d.fr);d.o.M(d.j,"start",d.Ty);d.o.M(d.j,"error",d.Oy);d.o.M(d.j,"mediaLoadTimeout",d.Qy);null!=d.A&&(d.o.M(d.A,"videoAuthorIconClicked",d.YB),d.o.M(d.A,"videoAuthorClicked",d.XB),d.o.M(d.A,"videoClicked",d.$B),d.o.M(d.A,"videoLearnMoreClicked",d.fC),d.o.M(d.A,"videoTitleClicked",d.nC),d.o.M(d.A,"videoShareClicked",d.kC),d.o.M(d.A,"videoShareShown",d.lC),
d.o.M(d.A,"skipshown",d.fr),d.o.M(d.A,"skip",d.Op),d.o.M(d.A,"PUBLISHER_INVOKED_SKIP",d.lB));tY(this).M(this.F,"engagedview",this.zd);tY(this).M(this.F,"videoAuthorIconClicked",this.zd);tY(this).M(this.F,"videoAuthorClicked",this.zd);tY(this).M(this.F,"videoClicked",this.zd);tY(this).M(this.F,"videoLearnMoreClicked",this.zd);tY(this).M(this.F,"videoShareClicked",this.zd);tY(this).M(this.F,"videoShareShown",this.zd);tY(this).M(this.F,"videoTitleClicked",this.zd);tY(this).M(this.j,"loaded",this.gC);
tY(this).M(this.j,"timeUpdate",this.mC);tY(this).M(this.j,"volumeChange",this.Ay);this.Vf(a);d=zW(a,this.j);this.C.j=d;d=a.j;null!=d&&d instanceof kU&&(this.Xe(d,HJ),this.Aj(d),d=tY(this),Cn(d,this.F,"error",this.yy,this),Cn(d,this.F,"mediaLoadTimeout",this.zy,this));fZ(this,a);DU(a)&&(this.F.G=30);this.j.Ym(gZ(this,a));this.j.load(b,c)}};
f.AC=function(a,b,c){this.Z||(this.Z=!0,this.wa("contentPauseRequested"));this.O=!0;this.kz(a,b,c);this.setVolume(this.S);this.A&&(A(B(hZ(a)))?(b=this.A,null!=b.F&&(b.A.Ia(b.F,"click",b.ak),Dg(b.F,"cursor","default"))):(b=this.A,null!=b.F&&(b.A.M(b.F,"click",b.ak),Dg(b.F,"cursor","pointer"))),b=a.j.da,lb(b)||RY(this.A,b),this.A.j.o||!JT(956001)&&!JT(956002)||(c=a.getExtension("AdSense"),null!=c?(b=this.A,c=B(c.o),null!=b.G&&($g(b.G,!0),c=B(c).replace(/^www\./i,""),A(c)?SY(b):ee(b.G,c)),null!=b.J&&
$g(b.J,!0)):SY(this.A)),b=this.A,null!=b.o&&$g(b.o,!0));this.B.Si();try{uY(this,a)}catch(d){iZ(this,qK,d);return}XR.getInstance().end("pi");XR.getInstance().start("bt");this.j.play()};function jZ(a,b,c,d){b=RS(b.j,c);lb(b)||(a[d]=b[0].j)}function kZ(a,b,c){b=c.getExtension(b);null!=b&&(jZ(a,b,"annotation_click","cta_annotation_clicked"),jZ(a,b,"annotation_close","cta_annotation_closed"),jZ(a,b,"annotation_start","cta_annotation_shown"))}
function gZ(a,b){var c=VU(b)&&!b.I?NU(b):null,d=DU(b)&&!EU(b),e=null!=a.A&&a.o.Ol&&a.A.j.B,g=b.A,h=BU(b),k;a.A?(k={},kZ(k,"AdSense",b),kZ(k,"dart",b),kZ(k,"DFP",b)):k=null;return new RQ(h,c,k,e,d,a.o.loadVideoTimeout,g?g.Lg:!1,!1)}function lZ(a){var b=0;D(a.ads,function(a){!mZ(a)||fL()&&0!=b||b++},a);var c=1;D(a.ads,function(a){var e=a.C;e.B=b;mZ(a)&&(e.o=c,e.C=c,c++)},a)}function mZ(a){a=a.j;return null!=a&&a instanceof kU}
function nZ(a){return gb(a.ads,function(a){return gb(oZ(a),function(a){return!A(B(qP(a.o)))})},a)}function hZ(a){var b=a.o;return b&&b.H&&(b=b.B,!lb(b)&&b[0]instanceof kU)?b[0].Xc():aV(a)}function oZ(a){var b=a.o;if(b&&b.H&&(b=b.B,!lb(b)&&b[0]instanceof kU))return b[0].H;b=a.j;return mZ(a)?b.H:[]}
function pZ(a,b){if(sL.getInstance().j){var c=new fk,d=!1;D(oZ(b),function(a){c.add(a.j);"VPAID"==a.A&&(d=!0)},a);var e=a.j.Al(),e={aid:NU(b),mt:c.Oa().join(","),smt:e.join(","),hvp:d,st:HU(b).join(",")};tL(sL.getInstance(),28,e)}}function qZ(a,b,c){try{var d=E(a,function(a){return a.Vd}),e=E(a,function(a){return a.j}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.Vd,selmt:null===c?"":c.j,nat:!1};tL(sL.getInstance(),22,g)}catch(h){}}f.mj=function(){lZ(this);rZ(this)};
function rZ(a){a.Y||(a.Y=!0,a.wa("loaded"),a.X(new EY(rY(a))))}f.Sc=function(a,b,c){bZ.K.Sc.call(this,a,b,c);a=nZ(this);this.j=this.B.Ri(a);i:{if(sY(this)&&(b=this.H.getExtension("InfoCards"),b=null!=b?b.o:null,null!=b))break i;b=""}i:{if(sY(this)&&(c=this.H.getExtension("InfoCardsTracking"),c=null!=c?c.o:null,null!=c))break i;c=""}a&&(b||c)&&this.j.Ep(b,c)};f.skip=function(){sY(this)&&DU(rY(this))&&(null!=this.A?this.A.skip():(xY(this,"skip"),sZ(this)))};f.Sm=function(){this.dc("skipshown")};
f.start=function(){bZ.K.start.call(this);XR.getInstance().start("pi");try{var a=rY(this),b;if(!mZ(a))throw XK(MK);var c=a.j,d=c.ma;if(A(B(d))){var e=oZ(a),g=this.j.Kr(e,this.o.bitrate,this.o.mimeTypes||[],null!=a&&(fL()||this.B.Ti()||this.B.Rl()||kd||Ma(Uc,"Mobile")));qZ(e,this.o.bitrate,g);if(null!=g)b=c.ga=g;else{try{pZ(this,a)}catch(h){}throw XK(EK);}}else b=new tP("","","",0,0,0,0,0,d,"");this.J=b;vn(x(bZ.prototype.AC,this,a,this.J.o,this.J.j))}catch(k){tZ(this,k),this.gh(),sY(this)?(YK(XK,this,
SK,k,void 0),this.start()):(this.O?YK(XK,this,SK,k,void 0):(null!=this.D&&HR(this.D,ER()),ZK(this,SK,k)),this.stop())}};f.Bp=function(){vY(this);return this.j.Ng()?0:this.j.sd()};f.setVolume=function(a){vY(this);this.O?this.j.setVolume(a):this.S=a};
f.setMediaUrl=function(a){vY(this);var b;if(b=sY(this))b=null!=rY(this).A;if(b){b=rY(this);var c=b.A.location,d;if(d=null!=c)(d=cK(YJ,c))||(d=nf(new J(c)),d=null!=d?ua(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||(null!=c?cK($J,c):!1);(d||fL())&&null!=b.j&&b.j instanceof kU&&b.j.setMediaUrl(a)}};f.pause=function(){vY(this);this.j.pause()};f.resume=function(){vY(this);this.j.play()};
f.getRemainingTime=function(){vY(this);var a=this.j.qd(),b=this.j.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.yf=function(){return this.j.yf()};f.yy=function(){iZ(this,SK,XK(SK,this.j.Fp()))};f.zy=function(){iZ(this,HK,XK(HK,null,(this.o.loadVideoTimeout/1E3).toString()))};function iZ(a,b,c){tZ(a,c);a.gh();sY(a)?(YK(XK,a,b,c,void 0),a.start()):(ZK(a,b,c),a.stop())}function tZ(a,b){var c=XK(SK,b),c=tW(c,rY(a),a.j),d=IU(rY(a));kK(d,c)}
function uZ(a){if(gL.j){var b=hZ(rY(a));null!=b&&fK(b)}a.wa("click")}function fZ(a,b){var c=b;do c.F.forEach(function(a){D(HJ,function(b){var c=RS(a.j,b);lb(c)||vZ(this,b,c)},this);pY(this.C,a.F)},a),c=c.o;while(c)}function vZ(a,b,c){D(c,function(a){SS(this.C.o,a.A,a.j)},a);wZ(a,b)}function wZ(a,b){Nb(KJ,b)&&Cn(tY(a),a.F,b,a.zd,a)}
f.zd=function(a){switch(a.type){case "start":a=XR.getInstance();if(a.j){var b={};if(null!=this.J){var c=nf(new J(this.J.o));if(null!=c){var c=Za(c,".",10),d=c.length;2<=d&&(b.dn=c[d-2]+"."+c[d-1])}b.br=this.J.Wd;b.mt=this.J.j;b.pid=a.A;b.smb=this.o.bitrate;c=this.J.D;d=this.J.getHeight();null!=c&&null!=d&&(b.vs=c+"x"+d);null!=this.B&&(c=this.B.Pl(),b.ps=c.width+"x"+c.height);c=this.J.F;A(B(c))||(b.vc=c)}a.end("bt",b)}a=XR.getInstance();a.j&&(b=ZR(a,"ff",a.B),hK(b),a.B=0);this.wa("start");break;case "impression":this.wa("impression");
break;case "pause":this.wa("pause");break;case "resume":this.wa("resume");break;case "firstquartile":this.wa("firstquartile");break;case "midpoint":this.wa("midpoint");break;case "thirdquartile":this.wa("thirdquartile");break;case "complete":this.wa("complete");dZ(this);break;case "click":this.A&&this.A.j.A?this.j.Og()?this.resume():this.pause():uZ(this);break;case "engagedview":b=rY(this);a=b.N;EU(b)&&!fL()&&!this.B.Ti()&&a&&(b=this.j.getCurrentTime(),c=this.j.qd(),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)),hK(d.toString()));this.wa("engagedview");break;case "videoAuthorIconClicked":xZ(this);break;case "videoAuthorClicked":xZ(this);break;case "videoClicked":this.wa("videoClicked");break;case "videoLearnMoreClicked":this.j.pause();uZ(this);break;case "videoShareClicked":a=rY(this).O;null!=a&&(a=a.videoId,
b=this.o.baseYouTubeUrl,A(B(a))?a=null:(b=new J((null!=b?b:"//www.youtube.com/")+"watch"),c=b.j,c.set("v",a),ef(b,c),b.wf="action=share",a=b.toString()),null!=a&&(fK(a),a=yZ(this),null!=a&&gK(a,"sharebuttonclicked")));break;case "videoShareShown":a=yZ(this);null!=a&&gK(a,"sharebuttondisplayed");break;case "videoTitleClicked":a=rY(this);b=a.O;null!=b&&(a=sP(b.videoId,null!=WU(a),this.o.baseYouTubeUrl),null!==a&&(this.j.pause(),fK(a)));break;case "skipshown":this.wa("skippableStateChanged");break;case "skip":sZ(this)}};
function yZ(a){var b=rY(a).getExtension("AdSense");if(!(b=null!=b?new J(b.A):null))i:{if(a=MU(rY(a)))if(a=iU(a,"start"),!lb(a)){b=new J(a[0].j);break i}b=null}return b}function sZ(a){vn(function(){this.wa("skip");dZ(this)},0,a)}f.Vf=function(a){bZ.K.Vf.call(this,a);wZ(this,"impression")};f.Xe=function(a,b){bZ.K.Xe.call(this,a,b);D(b,function(a){wZ(this,a)},this)};f.Aj=function(a){bZ.K.Aj.call(this,a);a instanceof kU&&(a=lU(a),D(a.Ka(),function(a){wZ(this,a)},this))};
f.getMediaUrl=function(){if(!sY(this))return null;var a=rY(this);if(!mZ(a))throw XK(MK);a=a.j.H;return lb(a)?null:(a=a[0].o,fL()&&JT(952626)&&(a=new J(a),af(a,"https"),a=a.toString()),a)};f.gC=function(){rZ(this)};
f.mC=function(){var a=this.j.qd(),b=this.j.bp(),c=this.j.getCurrentTime(),d=0,e=0;sY(this)&&(e=rY(this),d=e.C.o,e=e.C.B);if(null!=this.A&&0<=a&&0<=c){var g;if(g=!this.V)g=3==rY(this).oa;if(g){g=this.j.qd();var h=bV(rY(this));g=Math.abs(g-h);2<g&&(g=XK(LK,null,Number(g).toFixed(2)),g=tW(g,rY(this),this.j),h=IU(rY(this)),kK(h,g));this.V=!0}this.A.update(c,b,a,d,e)}};f.Ay=function(){var a=this.j.sd();a!=this.S&&(this.S=a,this.wa("volumeChange"),0==a&&this.wa("mute"))};
function eZ(a,b){FY(b,function(a){a=new MT(a);eV(rY(this))==a.videoId&&(zZ(this,a),!A(B(a.channelId))&&a.j&&HY(a.channelId,function(a){a=new LT(a);if(null!=this.A){var b=this.A,c=a.o;b.j.V=!A(B(c));b.j.aa=c;null!=b.C&&(c="\u043e\u0442 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f "+b.j.aa,ee(b.C,(new XP(c,void 0)).getContent()));PY(b);b=this.A;c=a.j;b.j.R=!A(B(c));if(null!=b.I){var h=Rd("img");h.setAttribute("src",c);N(h,"videoAdUiAuthorIconImage");b.I.appendChild(h);null!=
b.D&&N(b.D,"videoAdUiTitleWithAuthorIcon");null!=b.C&&N(b.C,"videoAdUiAuthorNameWithAuthorIcon")}PY(b)}rY(this).J=a;this.wa("youTubeChannelMetadata");if(a=this.A)a=rY(this),b=a.O,a=fL()&&lb(OR(a))&&null!=a.J&&null!=b&&b.j;if(a){a=rY(this);tY(this).M(window,"message",this.gx);var b=rY(this),c=b.J.channelId,h=BU(b),k=this.o.contentId,l=this.o.baseYouTubeUrl,l=new J((null!=l?l:"//www.youtube.com/")+"ad_companion"),p=l.j;p.set("adformat",h);p.set("p",c);p.set("render","video_wall_companion");k&&p.set("content",
k);c=new qV("1",new H(300,250),"IFrame",null,l.toString());c.ih(b);c.F=!0;a.D=[new hV(c,[],null)];uY(this,a)}},this))},a)}f.gx=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=rY(this);var c=encodeURIComponent(B(aV(a)))+","+encodeURIComponent(yZ(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=aV(a)?210:185}else"pause-video"==b.data&&this.pause()};
function zZ(a,b){if(null!=a.A&&b.j){var c=a.A,d=b.title;c.j.D=!A(B(d));c.j.title=d;hc.test(gc(c.j.title,void 0));null!=c.D&&ee(c.D,c.j.title);PY(c);c=a.A;null!=c.da?ee(c.da,rQ()):null!=c.H&&ee(c.H,rQ())}rY(a).O=b;a.wa("youTubeVideoMetadata")}function xZ(a){var b;b=rY(a).J;if(null!=b){var c;c=a.o.baseYouTubeUrl;b=B(b.channelId);c=A(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(ta(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.j.pause(),fK(c))}};function AZ(a){this.j=a}f=AZ.prototype;f.wl=function(){return this.j.wl()};f.Bl=function(){return this.j.Bl()};f.Bf=function(){return this.j.Bf()};f.Ri=function(a){return this.j.Ri(a)};f.Pl=function(){return this.j.Pl()};f.Ql=function(){return this.j.Ql()};f.Rl=function(){return this.j.Rl()};f.Ti=function(){return this.j.Ti()};f.$=v;f.Si=v;f.Lj=v;function BZ(a,b,c,d,e,g,h){U.call(this);this.B=this.D=0;this.F=a;this.fd=b;this.ba=c;this.C=null;this.I=d;this.V=g;this.S=gL.o;this.j=null;this.Y="normal";this.O=null;this.J=e;this.o=[];this.Z=this.H=this.U=this.N=!1;this.R=h;CZ(this)}z(BZ,U);f=BZ.prototype;f.init=function(a,b,c){DZ(this,c);null==this.G&&(this.G=new zn(this),Cn(this.G,this.I,"adsLoaderSdkAdLoaded",this.Ez,this),Cn(this.G,this.I,"adsLoaderSdkAdError",this.Bz,this));EZ(this)};
f.start=function(){this.N=!0;FZ(this);0<this.o.length?GZ(this):("always"==gL.o&&null!=this.R&&HR(this.R,ER()),YK(VK,this,vK,void 0,void 0),0==this.fd&&this.X("contentResumeRequested"),HZ(this))};f.destroy=function(){null!=this.G&&(this.G.dispose(),this.G=null);IZ(this);gL.o=this.S;this.N=!1};f.getCurrentAd=function(){return this.B<this.o.length?this.o[this.B].j[0]:null};function JZ(a){return null!=a&&UU(a,"nonlinear")}f.tb=function(){return this.N};f.pause=function(){null!=this.j&&this.j.pause()};
f.resume=function(){null!=this.j&&this.j.resume()};f.skip=function(){null!=this.j&&this.j.skip()};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.setVolume=function(a){null!=a&&(this.O=a,null!=this.j&&this.j.setVolume(this.O))};function DZ(a,b){null!=b&&(a.Y=b);null!=a.j&&(a.j.Ui(b),a.j.Mg())}function CZ(a){D(a.F,function(a){a=new J(a.A.adTagUrl);var c=tf(a,"max_ad_duration");n(c)||tf(a,"pmxd")})}
f.Ez=function(a){gL.o=this.S;var b=a.D;lb(b)||(a=a.C,a.j&&D(b,function(a){a.ga=!1},this),fL()&&!lb(b)&&0==this.fd&&JZ(b[0])&&"ADSENSE"==NR(b[0])&&(this.H=!0),nb(this.o,new xS(b,a.j,a.o)));this.D++;EZ(this)};f.Bz=function(a){a=a.A;gL.o=this.S;a.getMessage();YK(VK,this,vK,void 0,void 0);this.D++;EZ(this)};function EZ(a){a.D<a.F.length&&null!=a.F[a.D]&&!(2<=a.o.length-a.B)?KZ(a):a.U||(a.X("adBreakInitialized"),a.U=!0)}function KZ(a){var b=a.F[a.D];gL.o="on_master_ad";ZX(a.I,b.A,b)}
function FZ(a){null==a.fd||gb(a.o,function(a){return!a.o})||(a.o=eb(a.o,function(a){return!(a.o&&!a.A)}))}function LZ(a){a.X("contentResumeRequested");HZ(a)}
function GZ(a){if(a.B<a.o.length){var b=a.o[a.B];try{if(a.H||(IZ(a),a.j=MZ(a,b.j),NZ(a)),a.j.init(a.Y),null!=a.O&&a.j.setVolume(a.O),OZ(a.j))a.X("contentResumeRequested"),a.J.Lj(),a.j.start(),null!=a.C&&a.C.start();else{var c=a.j;if(null!=c&&c instanceof bZ)a.J.Si(),a.j.start();else throw Error("Unknown ads manager type.");}}catch(d){a.B++,GZ(a)}a.D<a.F.length&&null!=a.F[a.D]&&KZ(a)}else LZ(a)}
function MZ(a,b){var c=null;if(null!=a.I.C)c=bY(b);else if(AU(b[0]))c=new bZ(b);else if(JZ(b[0]))c=new yY(b);else throw Error("No valid creative type found.");c.D=a.R;null!=a.A&&(a.A.dispose(),a.A=null);a.A=new zn(a);Cn(a.A,c,"companionBackfill",a.wq,a);c.Sc(new AZ(a.J),{currentTime:0},a.V);return c}function IZ(a){a.J.$();null!=a.C&&(a.C.dispose(),a.C=null);null!=a.A&&(a.A.dispose(),a.A=null);null!=a.j&&(a.j.destroy(),a.j=null)}f.aB=function(){IZ(this);HZ(this)};f.Cz=function(){this.B++;GZ(this)};
function NZ(a){if(null==a.j)throw Error("The current ads manager is not defined");var b=a.j;Cn(a.A,b,"adError",a.Cz,a);Cn(a.A,b,"click videoClicked start pause resume firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),a.wq,a);a.A.M(b,["allAdsCompleted"],v);Cn(a.A,b,"contentPauseRequested",a.uy,a);Cn(a.A,b,"contentResumeRequested",a.vy,a);OZ(a.j)&&(b=MU(rY(a.j)).na,0<b||a.V.vo)&&(0>b&&(b=15),null!=a.C&&a.C.dispose(),a.C=new tn(1E3*b),Fn(a.A,a.C,"tick",a.aB,a))}
f.vy=function(){this.B++;GZ(this)};f.uy=function(){this.Z||(this.X("contentPauseRequested"),this.Z=!0)};function OZ(a){return null!=a&&a instanceof yY}function HZ(a){a.N=!1;a.X("allAdsCompleted")}f.wq=function(a){PZ(this,a.type,a.getAd());this.X(a)};function PZ(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;D(a.o,function(a,b){var g=a.j;cb(g,c);d+=g.length;b<this.B&&(e+=g.length)},a);b=c.C;var g=e+b.C;b.B=d+(a.F.length-a.D);b.o=g;b.A=a.ba;b.j=a.fd}};function QZ(a){fm.call(this,a);this.A=null}z(QZ,fm);function RZ(a,b,c){U.call(this);this.o=a;this.j=[];this.D=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.G=null!=c&&ga(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.A=null;this.B=!1;SZ(this,b)}z(RZ,U);function TZ(a){this.j=a;this.A=this.o=!1}function UZ(a){null!=a.A&&(a.A.dispose(),a.A=null);a.o.stop();a.B=!1}function VZ(a){if(a.B){var b=F(a.j,function(a){return-1==a.j},a);null!=b&&WZ(a,!0,b)}}
function SZ(a,b){D(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Eb(this.j,new TZ(a),function(a,b){return yb(a.j,b.j)})},a)}RZ.prototype.C=function(){if(this.B){var a=this.o.currentTime;if(isNaN(a)||0>a)XZ(this);else{var b=YZ(this,a);this.D?D(b,function(a){WZ(this,!0,a)},this):WZ(this,!0,ab(b));WZ(this,!1,ZZ(this,a))}}};function YZ(a,b){for(var c=[],d=0;d<a.j.length;d++){var e=a.j[d];-1!=e.j&&e.j<=b&&nb(c,e)}return c}
function ZZ(a,b){for(var c=0;c<a.j.length;c++){var d=a.j[c];if(-1!=d.j&&b>=d.j-a.G&&b<d.j&&!a.j[c].o)return d}return null}RZ.prototype.F=function(){XZ(this)};function XZ(a){a.X(new QZ("contentTrackingError"))}function WZ(a,b,c){if(null!=c){if(!c.o){var d=new QZ("requestAds");d.A=c.j;a.X(d);c.o=!0}b&&!c.A&&(b=new QZ("playAds"),b.A=c.j,a.X(b),c.A=!0)}};function $Z(a,b){Q.call(this);this.A=a;this.o=-1;this.j=b}z($Z,Q);function a_(a,b){if(0==b.fd||0>=a.j||0>=a.o)return!1;var c=y()/1E3,d=b.fd-a.A.currentTime;0<d&&(c+=d);return c-a.o<=a.j};function $X(a,b){qY.call(this,[]);this.S=a;this.I=new xe;this.A=this.j=null;this.Z=new ap;this.F=null;this.O=b;this.U=this.Y=!1;this.J=null;this.ba=this.da=-1;this.V=null}z($X,qY);f=$X.prototype;
f.Sc=function(a,b,c){null!=this.A&&(UZ(this.A),this.A.dispose(),this.A=null);$X.K.Sc.call(this,a,b,c);c=this.S.j.Ka();b=new $Q(b);this.A=new RZ(b,c,{prefetch:4});D(c,function(b,c){if(isNaN(b))throw VK(oK,null,"timeOffset",b+"");var g=ga(b)&&!isNaN(b)?this.S.j.get(b,[]):[];if(!lb(g)){g=new BZ(g,b,0==b||-1==b?b:c,this.O,a,this.o,this.D);if(ze(this.I,b))throw VK(AK,null,"Multiple ad breaks cannot share same ad play time.");this.I.set(b,g)}},this);this.J=ab(c);gb(c,function(a){if(-1==a)return this.J=
a,!0;this.J=this.J<a?a:this.J;return!1},this)};
f.init=function(a){$X.K.init.call(this,a);null!=this.A&&(b_(this),a=tY(this),Cn(a,this.A,"requestAds",this,this),Cn(a,this.A,"playAds",this,this),Cn(a,this.A,"contentTrackingError",this,this),Cn(a,this.A,"adBreakReady",this.zz,this),Cn(a,this.O,"contentComplete",this.gA,this),this.O.j=!1,a=this.A,a.B||(null==a.A&&(a.A=new zn(a)),a.A.M(a.o,"currentTimeUpdate",a.C,!1),a.A.M(a.o,"contentWrapperError",a.F,!1)),a.o.start(),a.B=!0,this.A.C(),a=ga(0)&&!isNaN(0)?this.S.j.get(0,[]):[],lb(a)&&this.wa("contentResumeRequested"))};
f.mj=function(){this.Oe();this.X(new EY(null))};f.destroy=function(){this.dispose()};f.P=function(){this.O.j=!0;if(0<this.I.Ta()){var a=this.I.Oa();D(a,this.si,this);this.I.clear()}b_(this);c_(this);null!=this.B&&(this.B.$(),this.B=null);$X.K.P.call(this)};f.start=function(){$X.K.start.call(this)};f.stop=function(){null!=this.j&&this.j.destroy()};f.pause=function(){null!=this.j&&this.j.pause()};f.resume=function(){null!=this.j&&this.j.resume()};f.skip=function(){null!=this.j&&this.j.skip()};
f.setVolume=function(a){$X.K.setVolume.call(this,a);null!=this.j&&this.j.setVolume(a)};f.Mg=function(){$X.K.Mg.call(this);var a=Kd(window);this.da=a.width;this.ba=a.height;null!=this.j&&DZ(this.j,this.N)};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.Oe=function(){return this.S.j.Ka()};f.getCurrentAd=function(){return null!=this.j?this.j.getCurrentAd():null};f.Jr=function(){};f.handleEvent=function(a){"contentTrackingError"!=a.type&&(cp(this.Z,a),d_(this))};
function b_(a){null!=a.G&&(a.G.dispose(),a.G=null);a.Y=!1;null!=a.A&&UZ(a.A)}
function d_(a){if(null==a.F){var b=dp(a.Z);if(null!=b){a.F=b;var c=a.I.get(a.F.A);null==c&&null!=a.j&&a.j.H&&(c=a.j);if(null==c)a.F=null,d_(a);else if("requestAds"!=b.type&&"playAds"!=b.type)a.F=null,d_(a);else if(null!=a.V&&a_(a.V,c))a.F=null,d_(a);else if("requestAds"==b.type)c.H?a.F=null:(b=c,c=tY(a),Cn(c,b,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume companionBackfill log".split(" "),a.X,a),Cn(c,b,"allAdsCompleted",a.qq,a),Cn(c,
b,"contentPauseRequested",a.zp,a),Cn(c,b,"contentResumeRequested",a.Ap,a),Cn(c,b,"adBreakInitialized",a.rq,a),b.init(a.da,a.ba,a.N));else if("playAds"==b.type)if(null!=a.j&&a.j.tb()&&a.si(a.j),a.j=c,a.j.setVolume(a.volume),DZ(a.j,a.N),a.j.H&&a.content.currentTime<a.o.Km){SZ(a.A,[a.o.Km]);a.wa("contentResumeRequested");b=a.j;if(b.B<b.o.length){c=b.o[b.B];IZ(b);try{b.j=MZ(b,c.j),NZ(b)}catch(d){b.B++,GZ(b)}}else LZ(b);a.F=null}else a.j.start()}}}
f.si=function(a){a.destroy();this.I.remove(a.fd);this.j=null;null!=this.G&&(this.G.Ia(a,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),this.X,!1,this),this.G.Ia(a,"allAdsCompleted",this.qq,!1,this),this.G.Ia(a,"contentPauseRequested",this.zp,!1,this),this.G.Ia(a,"contentResumeRequested",this.Ap,!1,this),this.G.Ia(a,"adBreakInitialized",this.rq,!1,this))};
f.gA=function(a){this.Y=!0;-1==this.J?a.B=!1:fL()&&0!=this.I.Oa().length||e_(this);VZ(this.A)};f.zz=function(a){var b=a.A;-1==b?vn(function(){var a=this.I.get(b);a&&this.si(a);fL()&&0!=this.I.Oa().length||e_(this)},500,this):0==b&&vn(function(){this.wa("contentResumeRequested")},100,this);a={};a.adBreakTime=b;this.X(new JJ("adBreakReady",null,a))};f.qq=function(a){this.si(a.target);(0==this.I.Oa().length||!fL()&&this.Y)&&e_(this);this.F=null;d_(this)};
function e_(a){a.U||(a.U=!0,a.O.j=!0,a.wa("allAdsCompleted"),-1==a.J&&c_(a))}function c_(a){jR.clear();null!=a.D&&(a=a.D.Ee(),null!=a&&yR(a,jR.j))}f.zp=function(){var a=this.A;a.o.stop();a.B=!1;this.wa("contentPauseRequested")};f.Ap=function(){this.wa("contentResumeRequested");if(!this.U){var a=this.A;a.o.start();a.B=!0}this.F=null};f.rq=function(){this.F=null;d_(this)};f.wa=function(a){var b=null;null!=this.j&&(b=this.j.getCurrentAd());this.X(new JJ(a,b))};
f.Cp=function(a,b){return this.V=new $Z(a,b)};function f_(a){qY.call(this,a);this.Z=this.Y=this.S=!1;this.O=[];this.U=Ua();this.j=null;this.A=!0;this.V=-1;this.J=1;this.ba=""}z(f_,qY);f=f_.prototype;
f.init=function(a){f_.K.init.call(this,a);a=cV(rY(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="ru".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.o.contentId&&(a=$e(a,"v",this.o.contentId))}a=B(a)}else{var b=new J(a),c=new J("http://tpc.googlesyndication.com/pagead/js/loader7.html");"https"==b.Mb&&af(c,"https");this.ba=b.rb;a=ef(c,a||"",void 0).toString()}this.F=I("iframe",{src:eK(a),allowtransparency:!0,background:"transparent",
style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});tY(this).M(window,"message",this.sC);tY(this).M(this.F,"load",this.yw);tY(this).M(this.F,"error",this.NA);this.B.Bf().appendChild(this.F)};f.Sc=function(a,b,c){f_.K.Sc.call(this,a,b,c);this.A=MU(rY(this))instanceof kU;this.j=a.Ri(!1);tY(this).M(this.j,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.sA)};f.stop=function(){this.B.$();f_.K.stop.call(this)};
f.start=function(){f_.K.start.call(this);if(!fL()){var a={},b=XR.getInstance();a.pid=b.A;a.dn=this.ba;tL(sL.getInstance(),29,a,!0)}a=rY(this);b=zW(a,this.j);this.C.j=b;if(b=a.j)this.Vf(a),this.Xe(b,HJ),this.Aj(b);this.j.Vi();this.B.Lj();this.F.style.opacity=1;this.Z=!0;this.A&&this.wa("contentPauseRequested");g_(this)};f.pause=function(){h_(this,"pauseAd")};f.resume=function(){h_(this,"resumeAd")};f.setVolume=function(a){f_.K.setVolume.call(this,a);h_(this,"setAdVolume",{value:a})};
f.P=function(){var a=this.B.Bf();null!=a&&Vd(a);this.A&&this.wa("contentResumeRequested");this.wa("allAdsCompleted");this.S=!1;this.O=[];f_.K.P.call(this)};f.mj=function(){};
f.yw=function(){var a=this.j.Al();lb(a)&&(a=this.o.mimeTypes);i_(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=KU(rY(this)),b=B(aV(rY(this))),b={desiredBitrate:this.o.bitrate,creativeData:a,viewMode:this.N,clickThroughUrl:b};cV(rY(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.o.surveyCreativeData&&(b.creativeData=this.o.surveyCreativeData);i_(this,"initAd",b);D(this.O,function(a){i_(this,a.type,a.params)},
this);this.S=!0;this.O=[]};function h_(a,b,c){a.S?i_(a,b,c):a.O.push({type:b,params:c})}function i_(a,b,c){null!=a.F?(null!=c||(c={}),c.session=a.U,c.type=b,a.F.contentWindow.postMessage(ng(c),"*")):(j_(a,UK,null),a.stop())}
f.sC=function(a){a=a.j;if(a.source==this.F.contentWindow&&(a=lg(a.data),a.session==this.U&&w(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.B.Si();this.j.getVideoUrl()!=a.src&&this.j.load(a.src,a.mimetype);this.j.play();break;case "pause":this.j.pause()}break;case "getAdRemainingTime":a=a.remainingTime;this.A||(wn(this.V),ga(a)&&-1!=a||(a=30),this.V=vn(this.bB,1E3*a,this));break;case "AdClickThru":xY(this,"click");this.wa("click");break;case "AdError":j_(this,UK,null);this.stop();
break;case "AdExpandedChange":this.wa("expandedChanged");break;case "AdImpression":this.wa("impression");break;case "AdLinearChange":a=a.isLinear;!this.A&&a?(this.wa("contentPauseRequested"),wn(this.V)):!a&&this.A&&(this.wa("contentResumeRequested"),this.A=a,h_(this,"getAdRemainingTime"));this.A=a;break;case "AdLoaded":this.Y=!0;g_(this);this.dc("loaded");break;case "AdPaused":this.dc("pause");break;case "AdPlaying":this.dc("resume");break;case "AdRemainingTimeChange":this.A||h_(this,"getAdRemainingTime");
break;case "AdSkipped":this.dc("skip");break;case "AdStarted":xY(this,"impression");xY(this,"creativeview");this.wa("start");break;case "AdStopped":xY(this,"stop");this.stop();break;case "AdUserAcceptInvitation":this.A?xY(this,"acceptinvitationlinear"):xY(this,"acceptinvitation");break;case "AdUserMinimize":xY(this,"collapse");break;case "AdUserClose":this.dc("userClose");break;case "AdVideoComplete":this.dc("complete");break;case "AdVideoFirstQuartile":this.dc("firstquartile");break;case "AdVideoMidpoint":this.dc("midpoint");
break;case "AdVideoStart":xY(this,"start");break;case "AdVideoThirdQuartile":this.dc("thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.J&&this.wa("volumeChange");0==a&&0!=this.J?(xY(this,"mute"),this.wa("mute")):0==this.J&&0!=a&&xY(this,"unmute");this.J=a;this.j.setVolume(a);break;case "Ping":hK(a.url)}};f.NA=function(a){j_(this,BK,a);this.stop()};function j_(a,b,c){var d=XK(b,c),d=tW(d,rY(a)),e=IU(rY(a));kK(e,d);ZK(a,b,c)}
f.sA=function(a){switch(a.type){case "timeUpdate":a=this.j.qd();var b=this.j.getCurrentTime();i_(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":k_(this,"ended");break;case "mediaLoadTimeout":k_(this,"stalled");break;case "play":k_(this,"playing");break;default:k_(this,a.type)}};function k_(a,b){i_(a,"wrapperCall",{messageType:b})}function g_(a){a.Y&&a.Z&&(h_(a,"startAd"),a.A||h_(a,"getAdRemainingTime"))}f.bB=function(){h_(this,"stopAd")};function l_(){}function bY(a){if(!lb(a)){var b=a[0];switch(fV(b)?"vpaid":VU(b)&&UU(b,"nonlinear")?"overlay":UU(b,"linear")?"video":UU(b,"nonlinear")?"overlay":null){case "overlay":return VU(b)?new DY(a):new yY(a);case "video":return new bZ(a);case "vpaid":return new f_(a)}}return null};function m_(a){U.call(this);this.o=a;a=new GR(new pR);this.j=new VX(new l_,a,jR);this.j.M("adsManagerLoaded",this.X,!1,this);this.j.M("adError",this.X,!1,this);this.j.M("adLoadError",this.X,!1,this)}z(m_,U);function n_(a,b,c){var d;try{d=window.top.location.href}catch(e){d=window.location.href}b.location=d;b.referrer=window.document.referrer;b.zc=YQ(b.adTagUrl,b.Ne,b.Sd,b.Vb,b.hc,a.o.B);b.gn=a.o.G;WX(a.j,b,c)}
m_.prototype.P=function(){null!=this.j&&(this.j.Ia("adsManagerLoaded",this.X),this.j.Ia("adError",this.X),this.j.Ia("adLoadError",this.X),this.j=null);m_.K.P.call(this)};function o_(a,b){Jr.call(this,a,b)}z(o_,Jr);f=o_.prototype;f.Jn=function(){Qq(this.T,!0,this.playerType);this.T.ne(this.playerType)};f.pauseVideo=function(){this.T.pauseVideo(this.playerType)};f.bt=function(a,b,c){Qq(this.T,!0,this.playerType);var d=this.T,e=this.playerType;d.oe(d.getCurrentTime()+a,b,c,e)};f.xh=function(a,b){Qq(this.T,!0,this.playerType);this.T.oe(a,b,void 0,this.playerType)};f.Ys=function(){ar(this.T,this.playerType)};function p_(a){this.o=a;Ys.call(this,a.yc)}z(p_,Ys);p_.prototype.getAdState=function(){return-1};p_.prototype.subscribe=function(a,b,c){return p_.K.subscribe.call(this,a,b,c)};function q_(a,b,c){this.B=a;this.j=b||"";this.o=c||null;this.A=!1}q_.prototype.reset=function(){sI(this.j)};q_.prototype.info=function(a,b){qI(a,b,this.j)};
function r_(a,b){var c=a.B;if(c.sa&&("detailpage"==c.ja||"leanback"==c.ja||"embedded"==c.ja&&(c.oa||c.experiments.D))&&!a.A){a.A=!0;Tf("TIMING_ACTION")||Rf("TIMING_ACTION",a.B.Za);if(a.o){var c=a.o.B,d;for(d in c)lI(d,c[d],a.j);d=a.o.A;for(var e in d)qI(e,d[e],a.j);e=a.o;e.B={};e.A={}}if(e=wh("visibilityState",document)){d=-1;switch(e){case "hidden":d=0;break;case "visible":d=1;break;case "prerender":d=2;break;case "unloaded":d=3}qI("yt_vis",d,a.j)}qI("yt_pt","html5",a.j);b&&!pI("pbs",a.j)&&lI("pbs",
b,a.j);pI("_start",a.j)&&oI(a.j)}}(function(){var a=window.document;if(a&&"hidden"in a)return"hidden";var b=Cg();return b?(b=b.toLowerCase(),b+=Xa("hidden"),!n(a)||b in a?b:null):null})();function s_(a,b){a=!!a;q("_lactCookie",a,window);if(null==u("_lact",window)){if(Tf("EXP_LACT_TEMPDATA")){var c=parseInt(Tf("LACT"),10),c=isFinite(c)?y()-Math.max(c,0):-1;q("_lact",c,window);-1==c&&Or()}else a&&b?(c=mk.get("ACTIVITY","-1"),q("_lact",parseInt(c,10),window)):(q("_lact",-1,window),Or());P(document,"keydown",Or);P(document,"keyup",Or);P(document,"mousedown",Or);P(document,"mouseup",Or)}}
function Or(){var a=u("_lact",window);null==a&&(s_(),a=u("_lact",window));var b=y();q("_lact",b,window);Tf("EXP_LACT_TEMPDATA")||u("_lactCookie",window)&&1E3<=b-a&&nk("ACTIVITY",""+b);Ki("USER_ACTIVE")}function t_(){var a=u("_lact",window);return null==a?-1:Math.max(y()-a,0)};var u_={GI:"0",JI:"1",qu:"2",AI:"3"};var v_={cJ:"red",WHITE:"white",RG:"blue"};function w_(a){this.experimentIds=(a||"").split(",");var b={};D(this.experimentIds,function(a){b[a]=!0});this.j=!!b["913424"];this.B=!!b["932250"]||!!b["9406444"];this.da=!!b["945066"]||!!b["9405188"];this.D=!!b["945069"]||!!b["9405408"];this.ba=!!b["945074"]||!!b["9405191"];this.R=!!b["945089"]||b["9405194"];this.V=!!b["945090"]||!!b["9405409"];this.Z=!!b["934052"]||!!b["9407054"];this.fb=!!b["945093"]||!!b["9406673"];this.Ga=!!b["945094"]||!!b["9406674"];this.sa=!!b["945097"]||!!b["9407011"];this.ta=
!!b["945098"]||!!b["9407012"];this.oa=!!b["964602"]||!!b["9407014"];this.ua=!!b["964603"]||!!b["9407013"];this.ma=!!b["964605"]||!!b["9407105"];this.A=!!b["936926"];this.F=!!b["913430"];this.Y=!!b["927877"];this.G=!!b["913444"]||!!b["934947"]||!!b["934952"]||!!b["934953"]||!!b["934954"]||!!b["937225"]||!!b["937226"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["948909"]||!!b["948910"]||!!b["948911"]||!!b["948912"]||!!b["948913"]||!!b["937235"]||!!b["934959"]||!!b["934963"]||
!!b["934964"]||!!b["934965"]||!!b["934966"];this.o=!!b["913444"]||!!b["934947"]||!!b["937225"]||!!b["937226"]||!!b["948904"]||!!b["948905"]||!!b["948906"]||!!b["948907"]||!!b["948908"]||!!b["948909"]||!!b["948910"]||!!b["948911"]||!!b["948912"]||!!b["948913"]||!!b["937235"]||this.j;this.na=!!b["951502"]||!!b["9406692"];this.spherical=!!b["951503"]||!!b["951509"]||!!b["9407041"]||!!b["9406693"];this.C=!!b["951506"]||!!b["9406696"];this.Yy=!!b["943610"];this.gm=!!b["943605"];this.Zy=!!b["943606"];this.hm=
!!b["900720"];this.J=!!b["909722"];this.H=!!b["9407561"]||!!b["9407562"]||!!b["9407669"]||!!b["9407675"]||!!b["9407684"];this.I=!!b["9407562"];this.U=!!b["937222"];this.N=!!b["909727"];this.ga=!!b["922333"];this.aa=!!b["934053"]||!!b["9407488"];this.S=!!b["937009"];this.O=!!b["9407699"]};var x_={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},y_={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},z_="blogger books docs google-live play picasaweb".split(" ");
function A_(a){Q.call(this);a=Yb(a);this.C={};this.experiments=new w_(a.fexp);this.ub=a.forced_experiments||null;this.origin=dI(this.origin,a.origin);this.H=dI("",a.loaderUrl);var b=document.location.toString();this.Oh=(this.I=!!b&&-1!=b.search(Ff))?dI("",a.loaderUrl):document.location.toString();"adunit"==a.el?dg(this.H)?this.ja="adunit":this.ja="embedded":this.ja=a.el||this.ja;s_("detailpage"==this.ja,a.autonav);var b=null,c=a.ps;!c||G(z_,c)&&!this.Hb()||(b=c);this.j=b;this.Nb=G(z_,this.j);b="blogger"==
this.j||"books"==this.j||"docs"==this.j||"google-live"==this.j||"picasaweb"==this.j;this.ma=!b;this.kh=aI(!1,a.logwatch);this.Yh=!b;this.A={};this.A.c="web";this.A.cver="html5";this.A.cplayer="UNIPLAYER";this.ab=aI(!1,a.edu_mode);this.ba=!(!du().defaultPlaybackRate||cd&&!os("chrome")||Wh||Vh||os("android")||os("silk"));a.use_media_volume?b=!1:(b=du(),c=b.muted,b.muted=!c,b=b.muted!=c);this.lf=b;this.Uh=Xh;this.Bk=(Wh||Vh||Zh)&&"blazer"!=this.j&&!BD(this);this.ta=aI("adunit"!=this.ja&&"detailpage"!=
this.ja&&!this.Nb,a.showinfo);this.isMobile=aI("blazer"==this.j,a.is_html5_mobile_device);this.O=aI(!1,a.playsinline);b=this.isMobile&&Xt&&2.3>=Wt;c=Vh&&!this.O||!b&&aI("native"==this.j,a.use_native_controls)?"3":"1";this.o="0"!=a.controls?c:"0";this.bd=aI("blazer"==this.j||"touch"==this.j,a.use_tablet_controls);this.Ya="1"!=this.o?"0":this.bd?"blazer"==this.j?"3":"1":bI("2",a.autohide,u_);this.color=bI("red",a.color,v_);this.jc="3"==this.o||aI(!1,a.modestbranding)&&"red"==this.color;if(c=aI(!1,a.nologo))var c=
this.I?this.H:document.location.toString(),d=!!c&&-1!=c.search(Nf),c=bg(c)||d;this.Zh=c;c=!this.jc&&"1"==this.o;this.ad="embedded"==this.ja&&!this.ta&&!this.Nb&&!c;this.Dk=this.Rh=b;this.D=Vh?this.experiments.ga&&7<=hs:!0;this.bb=this.I||!1;this.G="detailpage"==this.ja?"":this.Oh.substring(0,128);this.ob=!!a.disableCast;this.autoplay=aI(!1,a.autoplay);this.we=aI(!1,a.autoplayoverride);this.Gd=this.autoplay||"detailpage"==this.ja;b=this.we||!this.isMobile&&!os("nintendo wiiu");this.oa=this.Gd&&b;b=
"detailpage"==this.ja&&"blazer"==this.j;this.Fa=aI(!0,a.fs)&&(b||Oh());this.$h=!!a.use_airplay_data_id;this.B=((b=(b=a.BASE_YT_URL)&&b.match(Bf))?b[0]:"")||"/";this.Mh=((b=a.gdatabaseurl)&&-1!=b.search(Gf)?a.gdatabaseurl:null)||"//gdata.youtube.com/";this.ua=aI(!this.Nb,a.rel);this.Lc=aI("detailpage"==this.ja&&"blazer"!=this.j||"books"==this.j,a.enablesizebutton);this.protocol=(this.Ek=(this.mc=aI(!1,a.ssl_stream))||aI(!1,a.ssl))?"https":"http";this.Xh="adunit"!=this.ja;this.V="profilepage"==this.ja;
this.theme="light"!=a.theme||this.bd?"dark":"light";this.kf="blazer"!=this.j&&"native"!=this.j&&"touch"!=this.j;this.sa="blazer"==this.j;switch(this.j){case "blogger":b="bl";break;case "books":b="gb";break;case "docs":b="gd";break;case "google-live":b="gl";break;case "play":b="gp";break;case "picasaweb":b="pw";break;default:b="yt"}this.aa=b;this.mb=dI("",a.authuser);this.jf=aI(!1,a.disablekb);this.pageId=dI("",a.pageid);this.Sh=gI(Ot,a.vq);this.Th=dI("",a.playerapiid);this.Wh=aI(!0,a.canplaylive);
this.je=aI(!1,a.ss);(b=a.video_container_override)?(c=b.split("x"),2!=c.length?b=null:(b=parseInt(c[0],10),c=parseInt(c[1],10),b=isNaN(b)||isNaN(c)||0>=b*c?null:new H(b,c))):b=null;this.Da=b;this.ge=aI("0"!=this.o,a.store_user_volume);this.N=aI(!1,a.use_media_volume);this.Vh=aI(!1,a.retryneterr)&&this.Hb();this.Fk="3"==this.o?3:bI(void 0,a.iv_load_policy,fz);this.Z=void 0==a.content_v?void 0:a.content_v.toString();this.ga=void 0==a.framer?void 0:a.framer.toString();this.da=void 0==a.hl?void 0:a.hl.toString();
this.region=void 0==a.cr?void 0:a.cr.toString();this.J=aI(!1,a.player_wide);this.Ob=aI(!1,a.privembed);this.ic=cI(NaN,a.live_chunk_readahead||a.hls_live_chunk_readahead);B_(this,a);this.C=a}z(A_,Q);var C_={SG:"cbrand",UG:"cbr",VG:"cbrver",UH:"c",WH:"cver",VH:"cplayer",tI:"cmodel",CI:"cnetwork",MI:"cos",NI:"cosver",OI:"cplatform"};f=A_.prototype;f.ja="detailpage";f.hb=!1;f.Up=!1;f.vg=!1;f.bk=null;f.Uj=null;f.Bb=null;function mr(a,b){a.$a=b.get("d",a.$a);a.Aa=b.get("f",a.Aa)}
function B_(a,b){a.F=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&c in x_&&c in y_?y_[c]+"_"+x_[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.Hb()||d)&&(a.F=c,a.C.adformat=b.adformat,d||(a.ja="adunit"))}a.R=b.adpings?tj(b.adpings):null;a.Ma=b.agcid;a.C.agcid=a.Ma;var e;a.ab?e="s.youtubeeducation.com":a.ma?e=b.videostats_playback_base_url&&b.videostats_playback_base_url.split("/")[2]||"s.youtube.com":e="video.google.com";a.ve=e;a.ie="//"+
a.ve+"/api/stats/qoe";e=b.feature;a.S=e;a.C.feature=e;e=b.referrer;a.referrer=e;a.C.referrer=e;a.searchQuery=b.q;for(var g in C_)e=C_[g],c=b[e],void 0!=c&&(a.A[e]=c);a.kh=aI(a.kh,b.logwatch);a.userAge=cI(a.userAge,b.user_age);a.U=dI(a.U,b.user_display_image);cg(a.U)||(a.U="");a.Ba=dI(a.Ba,b.user_display_name);a.Hd=dI(a.Hd,b.user_gender);a.na=dI(a.na,b.eventid);a.Za=dI(a.Za,b.csi_page_type);a.sa=aI(a.sa,b.enablecsi)}
function D_(a,b,c){switch(b.U){case 38:return a=b.videoId.indexOf(":"),Ve("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.Dk});case 30:return c="//docs.google.com/",a.B!=A_.prototype.B&&(c=a.B),Ve(c+"get_video_info",{docid:b.videoId,authuser:b.mb,authkey:b.ad,eurl:a.G});case 33:return Ve("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:var d={html5:"1",video_id:b.videoId,cpn:b.clientPlaybackNonce,eurl:a.G,ps:a.j,el:a.ja,
hl:a.da,list:b.playlistId,agcid:a.Ma,sts:16497,lact:E_(a)?t_():"-1"};a.ub&&(d.forced_experiments=a.ub);b.G?d.vvt=b.G:b.C&&(d.access_token=b.C);a.F&&(d.adformat=a.F);b.ua&&(d.iv_load_policy=b.ua);b.Fa&&(d.itct=b.Fa);b.Qg&&(d.autoplay="1");b.jm&&(d.noiba="1");b.nm&&(d.mdx="1");b.je&&(d.ytrcc=b.je);b.rm&&(d.utpsa="1");b.we&&(d.is_fling="1");c.width&&(d.width=c.width);c.height&&(d.height=c.height);b.ta&&(d.ypc_preview="1");b.pe&&(d.splay="1");a.Z&&(d.content_v=a.Z);b.lm&&(d.livemonitor=1);a.mb&&(d.authuser=
a.mb);a.pageId&&(d.pageid=a.pageId);a.na&&(d.ei=a.na);a.mc&&(d.ssl_stream="1");a.I&&(d.iframe="1");b.hk&&(d.tst=b.hk);b.contentCheckOk&&(d.cco="1");b.racyCheckOk&&(d.rco="1");qa(d,a.A);return Ve(a.B+"get_video_info",d)}}function F_(a){return a.referrer?a.referrer.slice(0,128):""}f.getVideoUrl=function(a,b,c){return lE(this,a.videoId,a.playlistId,b,c)};function G_(a){return"www.youtube-nocookie.com"==window.location.host||a.ab?"www.youtube.com":window.location.host}
function lE(a,b,c,d,e){b={v:b,list:c};d&&qa(b,d);a=Ve(a.protocol+"://"+G_(a)+"/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=tj(b);for(var g in e)b[g]=e[g];e=d+Te(b);a=a+e}return a}
function H_(a,b){if("play"!=a.j)return"https://support.google.com/youtube/?p=report_playback";var c={contact_type:"playbackissue",html5:1,plid:b.playbackId,ei:b.H,v:b.videoId,p:"movies_playback"};b.j&&(c.fmt=b.j.id);b.clientPlaybackNonce&&(c.cpn=b.clientPlaybackNonce);b.U&&(c.partnerid=b.U);return Ve("//support.google.com/googleplay/",c)}
function I_(a){var b={};if(!a.Bb)return b;a.Bb.webkitDecodedFrameCount&&(b.hmewdfc=a.Bb.webkitDecodedFrameCount,b.hmewdrop=a.Bb.webkitDroppedFrameCount,b.hmewvdbc=a.Bb.webkitVideoDecodedByteCount,b.hmewadbc=a.Bb.webkitAudioDecodedByteCount);a.Bb.mozParsedFrames&&(b.hmempf=a.Bb.mozParsedFrames,b.hmemdf=a.Bb.mozDecodedFrames,b.hmempresented=a.Bb.mozPresentedFrames,b.hmempainted=a.Bb.mozPaintedFrames,b.hmempaintdelay=a.Bb.mozPaintDelay);return b}function J_(){return t_()}
function E_(a){return a.experiments.J?"detailpage"==a.ja||"leanback"==a.ja:!0}function CE(a){return"leanback"==a.ja||a.Nb||!a.ua&&!a.V?!1:!0}function Er(a){return"detailpage"!=a.ja&&"embedded"!=a.ja&&"profilepage"!=a.ja?!1:!0}f.Hb=function(){var a;a=document.location.toString();var b=(a=!!a&&-1!=a.search(Ef))&&!this.I;return a&&this.I&&bg(this.H)||b};function Yq(a){var b=null!=a.H&&0==a.H.search("^https?://www.youtube.com");return"detailpage"==a.ja||"profilepage"==a.ja||b}
function BD(a){return qs()||"tv"==a.A.cplatform}function xE(a){return a.experiments.G&&"detailpage"==a.ja&&"blazer"!=a.j}f.P=function(){this.Bb=null;A_.K.P.call(this)};function K_(a,b){this.j=a;this.o=b;this.A=1}function L_(a,b,c,d){d/=a.A;var e=ZF(a.j)+1/$F(a.j),g;g=Math.max(.9*(d-3),YF(a.j)+8192*e);c=g/e/(b+c);c=Math.min(c,d);c=Math.max(a.o.J,Math.min(a.o.R,c));a=Math.max(a.o.F,Math.ceil(a.o.J*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function M_(a){var b=$F(a.j);a=YF(a.j)+1048576*ZF(a.j);return b*Math.min(1,1048576/(b*a))}function N_(a){return M_(a)/a.A};function O_(a,b,c){this.j=a;this.video=b;this.reason=c};function P_(a,b,c,d){this.O=a;this.S=b;this.G=c;this.F=d;this.A=this.H=this.j=null;this.C="i";this.J=-1;this.D=this.B=null;this.o=[];this.I=this.N=0;this.R=null}function Q_(a,b,c){"m"==c&&Qt(a.j)&&!Qt(b)&&(c="a");if("m"==c&&Qt(b))return a.C=c,R_(a,b),S_(a),a.A=T_(a),new O_(U_(a),a.A,c);var d=a.j.equals(b);if("m"==a.C&&Qt(a.j)&&d)return null;"r"!=c||d||(a.J=-1);R_(a,b);b=T_(a);if("r"==c&&b==a.A){if(d)return null;a.A=b;return new O_(U_(a),b,c)}a.C=c;return null}
function V_(a,b){W_(a);a.R=b;a.I=y();a.J=-1;R_(a,a.j)}function W_(a){return!!a.I&&9E4>=y()-a.I}function U_(a){X_(a);return a.B}function T_(a){X_(a);return a.D}function Y_(a){var b=a.C;a.C="a";a.J=y();return new O_(a.H,a.A,b)}
function X_(a){if(Qt(a.j)||!(8E3>y()-a.J)){a.I&&!W_(a)&&(a.I=0,R_(a,a.j));S_(a);var b=N_(a.O);if(Qt(a.j))a.D=a.G.j[a.o[a.o.length-1].id];else{for(var c=Math.min(a.N,a.o.length-1),d=b/1.05-a.B.info.ya;0<c&&!(a.o[c].ya<=d);c--);for(b=b/1.15-a.B.info.ya;c<a.o.length-1&&!(a.o[c+1].ya>=b);c++);a.N=c;a.D=a.G.j[a.o[c].id]}}}
function R_(a,b){a.j=b;var c=a.F.o;if(!Qt(a.j)&&(c=eb(c,function(a){return a.ya>this.S.ya?!1:!this.G.j[a.id].C},a),W_(a))){var c=eb(c,function(a){return a.id!=this.R.id},a),d=eb(c,function(a){a=Gu(a);return"140"==a||"134"==a||"243"==a});d.length&&(c=d)}c.length||(c=a.F.o);c=eb(c,a.j.B,a.j);c.length||(c=[a.F.o[0]]);c.sort(function(a,b){return a.ya-b.ya});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(pb(c,d),d--):1.15*e.ya>g.ya&&(pb(c,d-1),d--)}a.o=c}
function Z_(a){var b=F(a.F.j,function(a){return!!a.Ud&&a.Ud.isDefault}),b=b||a.F.j[0];a.B=a.G.j[b.id];S_(a)}function S_(a){if(!a.B.info.Ud&&(a.B=a.G.j[a.F.j[0].id],1<a.F.j.length)){var b=!1;if(Qt(a.j))b=240>a.j.j;else{for(b=0;b+1<a.o.length&&"tiny"==a.o[b].video.quality;)b++;var c=N_(a.O)/1.15,b=a.B.info.ya+a.o[b].ya>c}b&&(a.B=a.G.j[a.F.j[1].id])}}
function $_(a){var b=N_(a.O)/1.05-a.B.info.ya,c=kb(a.o,function(a){return this.S.D&&this.S.D<Kt[a.video.quality]?!1:a.ya<b},a);0>c&&(c=0);a.N=c;a.D=a.G.j[a.o[c].id]};function a0(){this.j=this.o=!1}a0.prototype.start=function(){this.o=!0};a0.prototype.reset=function(){this.j=this.o=!1};function b0(a,b){this.J=a;this.A=b;this.C=[];this.j=[];this.B=this.o=null;this.D=0;this.ya=b.info.ya;this.G=this.I=!1;this.F=new a0;this.H=null;this.N=0}function c0(a,b){a.C.push(b);a.o=ab(b.info.j);a.D+=SG(b.info)}function d0(a){for(;a.C.length&&5==a.C[0].state;){var b=a.C.shift();a.D-=SG(b.info);a.D+=ab(b.C).buffer.byteLength;D(b.C,a.S,a)}}b0.prototype.S=function(a){if(4==a.info.type){var b=a.info.j.Cr(a);a.info==this.o&&(this.o=ab(b).info);D(b,this.S,this)}else 3==a.info.type&&this.j.push(a)};
function e0(a){var b=VG(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length}
function f0(a,b){if(a.I)return a.j[0].ha;var c=a.A.info.o,d=a.A.ii();if(a.j[0].info.C>=b)return null;var e;for(e=1;e<a.j.length;e++){var g=a.j[e].buffer!=a.j[e-1].buffer;if(a.j[e].info.C>b||g||a.J.N)break}e--;var g=a.j[e].ha.end,h=a.j[e].info.F-b;if(d&&c&&0<=a.J.H&&h>a.J.H){c=Math.floor((b-a.j[e].info.C)/a.j[e].info.H*a.j[e].info.o);if(0==c)return null;g=a.j[e].ha.start+c-1}return new uG(a.j[0].j?0:a.j[0].ha.start,g)}
function g0(a,b){for(var c;a.j.length;){if(a.j[0].ha.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].ha.start+1,e=Math.min(e,c.info.o),g=new LG(c.info.type,c.info.j,c.info.ha,c.info.B,c.info.startTime,c.info.duration,c.info.A,e,!1);d=wG(c.ha.start,e);g=new sH(g,c.buffer,d,c.j);e=new LG(c.info.type,c.info.j,c.info.ha,c.info.B,c.info.startTime,c.info.duration,c.info.A+e,c.info.o-e,c.info.G);d=new uG(d.end+1,c.ha.end);d=[g,new sH(e,c.buffer,d,!1)];c=d[0];a.j[0]=d[1]}else c=a.j.shift();d=a;g=c.info;d.B=
g;d.I&&d.B.D&&(d.I=!1);d.ya=Math.max(d.ya,g.j.info.ya);if(c.ha.end==b.end)break}a.j.length&&c.buffer==a.j[0].buffer||(a.D-=c.buffer.byteLength)}function h0(a,b){var c=i0(a,b);if(0<=c)return c;a.o=a.A.Ii(b).j[0];j0(a)&&(a.B=null);a.H=null;a.N=0;return a.o.startTime}
function k0(a,b){l0(a);if(a.A.info.video&&a.B&&!a.B.D&&b){var c=ib(a.j,function(a){return a.info.D});a.j=vb(a.j,0,c+1);a.I=!0}else a.j=[];if(a.j.length)for(a.D=a.j[0].buffer.byteLength,c=1;c<a.j.length;c++)a.j[c].buffer!=a.j[c-1].buffer&&(a.D+=a.j[c].buffer.byteLength);else a.D=0}function m0(a){a.F.o||a.F.start();k0(a,!1);j0(a)&&(a.B=null)}
function n0(a,b){for(var c=0;c<a.C.length&&b!==a.C[c];c++);if(c==a.C.length)b.dispose();else{for(;c<a.C.length;)a.O(a.C.pop());3==b.info.j[0].type?(c=b.info.j[0],c=new LG(c.type,c.j,c.ha,c.B,c.startTime,0,c.A,0,!1),a.o=c):a.o=null}}function o0(a){return gb(a.j,function(a){return a.info.D})}function j0(a){return!!a.B&&a.B.G}
function p0(a){var b=[];a.B&&b.push(a.B);D(a.j,function(a){b.push(a.info)});D(a.C,function(a){D(a.info.j,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.o&&a.o!=ab(b)&&b.push(a.o);return b}function q0(a){if(!a.o||!a.o.o)return!1;a=p0(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].C-a[b-1].F)))return!1;return!0}
function i0(a,b){if(q0(a)){var c;i:{c=p0(a);for(var d=0;d<c.length;d++)if(c[d].C<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break i}c=null}if(c)return c.startTime}return NaN}function r0(a){return gb(a.C,function(a){return 3<=a.state})}function s0(a){return!(!a.o||!a.A.Yc()||a.o.j==a.A)}function t0(a){return s0(a)&&a.o.j.info.ya<a.A.info.ya}b0.prototype.O=function(a){a.dispose();this.D-=SG(a.info)};function l0(a){D(a.C,a.O,a);a.C=[];a.o=null}function u0(a){return!!a.o&&a.o.B<a.A.index.Cg()};function v0(a,b,c){this.F=a;this.info=b;this.timing=c;this.state=1;this.o=this.C=null;this.G=this.B=this.H=0;this.A=NaN;this.D=this.j=this.I=null;this.J=0}v0.o=!1;v0.j=1E4;f=v0.prototype;f.getErrorCode=function(){return this.D};function w0(a){var b;b=a.timing;b={rt:((y()-b.A)/1E3).toFixed(2),lb:b.o,pt:(b.O/1E3).toFixed(2),pb:b.N};b.shost=a.j?qG(a.j.j):"";a.J&&(b.rc=a.J.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&x0(this);y0(this,2);var c;(c=!this.F.U)||(c=this.info.o,c=this.H>c.A&&1<=c.o);c?c=!1:(c=this.j?qG(this.j.j):"",c=Zb(TF(this.timing.j.j,c)),c=2<=c.de&&0==c.done&&(0<c.ds||0<c.Wo));if(c||b&&2<=this.B){b=this.info.o;if(!(this.H<=b.A)){b.o++;b.A=JG-1;c=oG(b.j);var d=new J(c);d.rb.match("\\.googlevideo\\.com$")?(bf(d,"redirector.googlevideo.com"),c=d.toString()):d.rb.match("r[1-9].*\\.c\\.youtube\\.com$")?(bf(d,"www.youtube.com"),
c=d.toString()):c=eg(c);b.j=new mG(c);b.j.set("cmo",encodeURIComponent("pf="+b.o))}this.B=0}else if(b){this.B++;a=v0.j*(.5+Math.random());1==this.B&&(a=2E3);L(x(this.On,this),a);return}a?this.On():L(x(this.On,this),0)};
f.On=function(){if(!this.ka()){this.H=JG++;this.j=UC(this.info);this.B&&this.j.set("playerretry",this.B.toString());var a=TC(this.j);this.o=new XMLHttpRequest;try{this.o.open("GET",a)}catch(b){this.D="net.ssl";y0(this,6);return}this.o.responseType="arraybuffer";this.o.withCredentials=!0;a=x(this.xC,this);this.o.addEventListener("load",a,!1);this.o.addEventListener("error",a,!1);this.o.send();this.G=0;var a=this.timing,c=this.j?qG(this.j.j):"";a.H=c;TF(a.j.j,c).de+=1;a.A=y();a.D=a.A;a.o=0;a.I=!1;a.J=
!1;a.C=0;a.G=aG(a.j);z0(a);a.O=a.F-a.A;this.o.addEventListener("progress",x(this.yC,this),!1);0<this.F.B&&(this.A=L(x(this.Ar,this),this.F.B));this.j.get("itag");this.j.get("range");Math.round(this.info.j[0].C);Math.round(ab(this.info.j).F);y()}};f.yC=function(a){if(!this.ka()){this.o&&(this.J=this.o.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.A&&4E12>c?c:y();20>c-b.D||A0(b,c,a);b=this.timing;b.o>b.S&&8192<b.o&&3>this.state&&y0(this,3)}};
f.xC=function(a){var b=this.o;if(!this.ka()&&a.target==b){this.A&&(M(this.A),this.A=NaN);this.J=b.status;a=!1;400<=b.status?(a=!0,this.D="net.badstatus"):null==b.response&&(a=!0,this.D="net.connect");if(!a){var b=b.response,c;i:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)),ag(c)))break i;c=""}if(c){var b=this.info.o,d=this.j;d.j===b.j&&(b.j=HG(d,c));y0(this,4)}else if(this.info.ha&&b.byteLength!=this.info.ha.length)a=!0,this.D="fmt.unparseable";else{c=this.info.j;if(1==
c.length&&!c[0].ha){var d=c[0],e=wG(0,b.byteLength),d=new LG(d.type,d.j,e,d.B,d.startTime,d.duration,d.A,e.length,d.G);c[0]=d}for(var d=[],e=0,g=!1,h=!1,k=0;k<c.length;k++){var l=c[k],p=b,r=wG(e,l.o),t=!1;if(1==l.type)b.slice?p=b.slice(e,e+l.o):(g=new Uint8Array(b,e,e+l.o),p=(new Uint8Array(g)).buffer),r=wG(0,l.o),g=!0;else if(3==l.type||4==l.type)t=g&&!h,h=!0;d.push(new sH(l,p,r,t));e+=l.o}this.C=d;c=this.timing;d=y();b=b.byteLength;c.I||(c.I=!0,TF(c.j.j,c.H).done+=1,d=d>c.A&&4E12>d?d:y(),A0(c,d,
b),e=(d-c.A)/1E3,!c.J&&8192<=c.o&&VF(c.j,e,b),8192<=c.o&&(e=c.j,h=c.C,b=Math.max(b,8192),e.B.o(1,h/b),bG(e)),XF(c.j,d-c.A,c.o),c.B&&(c.B=!1));y();y0(this,5)}}a&&(x0(this),y0(this,6),a=this.timing,y(),TF(a.j.j,a.H).Wo+=1)}};function x0(a){if(2>a.B)a=!0;else{var b=a.info.o;a=!(a.H>b.A&&1<=b.o)}return a}function y0(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.B&&(c.B=!1)}a.I&&a.I(a)}
f.Ar=function(){this.A=NaN;if(!(this.ka()||this.F.V&&this.o&&"quic"==this.o.getResponseHeader("client-protocol"))){var a=y(),b=!1;if(8192<=this.timing.o){var c=this.timing.F;z0(this.timing);this.timing.F-c>=.8*this.F.B?(this.G++,b=5<=this.G):this.G=0}else b=this.timing,b=5E3<a-(b.A+1E3*b.G.delay);if(b){b=this.timing;a=a>b.A&&4E12>a?a:y();b.C+=(a-b.D)/1E3;var c=b.j,d=b.N,e=b.C,d=Math.max(d,8192);c.B.o(1,e/d);bG(c);XF(b.j,a-b.A,b.o);TF(b.j.j,b.H).ds+=1;B0(this);this.D="net.timeout";y0(this,6)}else this.A=
L(x(this.Ar,this),this.F.B)}};f.ka=function(){return-1==this.state};f.dispose=function(){MG(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.A=!1);y0(this,-1);this.I=this.C=null;B0(this);M(this.A);this.A=NaN};function B0(a){if(a.o){var b=a.o;a.o=null;b.abort()}a=a.timing;a.B&&(a.B=!1)};function C0(a,b,c){this.j=a;this.N=b;this.S=c;this.o=this.D=this.A=NaN;this.J=this.I=this.B=!1;this.C=0;this.F=this.O=NaN}function A0(a,b,c){if(a.B){var d=(b-a.D)/1E3,e=c-a.o;0<e&&(.2<d||1024>e?(a.C+=d,.2<d&&VF(a.j,.05,e)):VF(a.j,d,e),a.J=!0)}else 8192<=c&&(d=a.j,d.C.o(1,(b-a.A)/1E3),bG(d),a.B=!0);a.D=b;a.o=c}function z0(a){var b=a.N-a.o,b=1E3*(b*a.G.tailDelay+b/a.G.byterate),c=y(),b=8192<=a.o?b+c:b+Math.max(c,a.A+1E3*a.G.delay);a.F=b};function D0(a,b,c,d){S.call(this);this.G=a;this.B=b;this.F=c;this.o=this.A=null;this.I=new K_(a,b);this.j=null;this.D=new P_(this.I,b,this.F,d);this.C=this.na=this.ma=this.aa=this.Z=NaN;this.N=!1;this.R=NaN;this.da=0;this.ba=this.H=!1;this.oa={};this.V="";this.ga=!1;this.Y=this.J=0}z(D0,S);D0.F=!1;D0.j=2/24;D0.A=1E3;D0.o=.2;D0.D=1E4;D0.C=.2;D0.B=1.25;f=D0.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.D;d.C="i";R_(d,b);Z_(d);d.H=d.B;$_(d);d.A=d.D;b=Y_(d);this.A=new b0(this.B,b.j);this.o=new b0(this.B,b.video);this.L("videoformatchange",b);this.C=a;c?(this.H=!0,E0(this)):F0(this)};function F0(a){0==a.C&&(a.A.A.A||G0(a,a.A,!0),a.o.A.A||G0(a,a.o,!0));a.seek(a.C);H0(a,"gv")}f.resume=function(){this.H&&(this.H=!1)};
f.ew=function(a){this.resume();this.j=a;tu(a)&&(a.j.addEventListener("updateend",x(this.Ac,this),!1),a.o.addEventListener("updateend",x(this.Ac,this),!1));H0(this,"msa");this.U&&this.O&&Xw();this.Ac();this.ma=Vf(x(this.Ac,this),D0.D)};function I0(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",x(a.Ac,a),!1),a.j.o.removeEventListener("updateend",x(a.Ac,a),!1));a.j=null;a.H=!0;a.A&&(k0(a.o,!1),k0(a.A,!1))}function J0(a){a.j&&ru(a.j)&&I0(a)}
function K0(a,b,c){if(!b.F.o||!c.remove)return!1;if(c.updating)return!0;if(!b.F.j&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.F.j=!0;b.F.reset();a.L("seekrequired");return!1}
function L0(a,b,c){if(a.H)return!1;if(!b.o){if(!b.A.Yc())return b.A.A||G0(a,b,!1),!1;h0(b,a.C)}var d=b.C.length+c.C.length;(r0(b)||r0(c)||a.F.isLive)&&--d;if(2<=d+1)return!1;d=b.o;4==d.type&&d.j.Yc()&&(b.o=ab(d.j.Dj(d)),d=b.o);!d.G&&!d.j.Ah(d)||d.j.info.o&&4==d.type?a=!1:t0(b)&&!a.B.C?a=!0:(!(c=d.G||b.D+c.D>a.B.j||!!(c.o&&!c.o.G&&c.o.F<d.F))&&(c=3==d.type)&&(d=d.F,b=M0(a,b,!0),Qt(a.D.j)||(c=(y()-a.da)/1E3,b=Math.min(b,30+2*c)),c=d>a.C+b),a=c?!1:!0);return a}
function N0(a,b,c){if(!a.j||qu(a.j)||tu(a.j)){var d=a.C,e;e=a.I;c=L_(e,b.A.info.ya,c.A.info.ya,0);e=YF(e.j)+c*ZF(e.j)+c/$F(e.j);e=Math.max(e,e+5-c/b.A.info.ya);d=d+e;a=a.D;i:{a=!a.A||!a.D||a.A.info.ya>=a.D.info.ya?!1:a.D.info.video.width>1.6*a.A.info.video.width?!0:"r"==a.C;if(b.C.length){if(b.C[0].info.j[0].startTime<=d)break i;l0(b)}for(e=b.j.length-1;0<=e;e--)c=b.j[e],c.info.startTime>d&&(b.j.pop(),b.j.length&&b.j[e-1].buffer==c.buffer||(b.D-=c.buffer.byteLength));b.C.length?b.o=ab(b.C[b.C.length-
1].info.j):b.j.length?b.o=ab(b.j).info:b.o=b.B;a&&b.o&&d<b.o.startTime&&(b.H=null,b.o=b.A.Ii(d,!0).j[0])}}}
function O0(a,b,c){L0(a,b,c);var d=b.o;if(b.o.j.Yc()){t0(b)&&!a.B.C&&(N0(a,b,c),b.o||h0(b,a.C));var d=b.o,e=d.F-a.C,g=!d.ha||0==d.o&&0==d.A?0:d.ha.length-(d.A+d.o);s0(b)&&(t0(b)||25>=e)&&0==g&&(g=d.startTime+D0.j,d.o&&(g+=d.duration),h0(b,g),d=b.o);d.j.ii()?(c=L_(a.I,d.j.info.ya,c.A.info.ya,e),e=s0(b),c=GH(d.j,d,c),c.ha&&1<c.j.length&&(e?c=GH(d.j,d,c.j[0].o):(e=c.j[c.j.length-1],g=e.o/c.ha.length,!e.D&&.4>g&&(c=GH(d.j,d,c.ha.length-e.o)))),d=c):d=SC(d.j,d)}else d.j.ii()?(c=L_(a.I,b.A.info.ya,c.A.info.ya,
0),d=GH(d.j,d,c)):d=SC(d.j,d);c0(b,P0(a,d))}function P0(a,b){if(3==b.j[b.j.length-1].type){var c;i:{c=a.D;var d=b.j[0].j;if(d.info.video){if(c.A!=d){c.A=d;c=Y_(c);break i}}else c.H=d;c=null}c&&a.L("videoformatchange",c)}c=SG(b);var d=a.G,e=a.I,g=Math.min(2.5,YF(e.j)),e=M_(e);c=new v0(a.B,b,new C0(d,c,c-g*e));d=x(a.sB,a);c.I=d;c.start();return c}
f.sB=function(a){if(!this.ka()&&3<=a.state){var b=a.info.j[0].j,c=!this.U&&b.info.video,d=!this.O&&b.info.o;4==a.state?(c?H0(this,"vrr"):d&&H0(this,"arr"),a.start()):5==a.state?(c?(this.U=a.j?TC(a.j):"",Zw()):d&&(this.O=a.j?TC(a.j):""),D(a.C,function(a){MG(a.info)&&a.info.j.np(a)}),hb(a.C,function(a){return tH(a,this.B.Ga)},this)&&!a.C[0].info.j.km()?this.Ac():this.Zd(!0,"fmt.unparseable",w0(a))):3==a.state?(this.Ac(),c&&Zw()):6==a.state&&x0(a)?(this.Zd(!1,a.getErrorCode(),w0(a)),(c=b.info.video&&
0<a.B&&90&&!W_(this.D))&&V_(this.D,b.info),6==a.state&&"net.timeout"==a.D||c?(n0(b.info.video?this.o:this.A,a),this.Ac()):a.start()):MG(a.info.j[0])?(b.C=!0,this.Ac()):this.Zd(!0,"net.retryexhausted",w0(a))}};function Q0(a){if(isNaN(a.Z)){var b=x(a.Ac,a);a.Z=L(b,0)}}function E0(a){if(isNaN(a.aa)){var b=x(function(){this.aa=NaN;this.Ac()},a);a.aa=L(b,D0.A)}}
f.Ac=function(){this.Z=NaN;J0(this);if(this.j&&!su(this.j))if(this.F.isLive)Infinity!=this.R&&(this.R=Infinity,this.j.Yf(Infinity));else if(!isFinite(this.R)){var a=Math.floor(Math.max(this.A.A.index.hg(),this.o.A.index.hg()));0<a&&(this.j.Yf(a),this.R=a)}if(!this.ka())if(a=this.F,y()-a.I>=a.D){if(3==this.F.B&&(this.Zd(!(3>this.F.o),this.F.getErrorCode(),{rc:this.F.N.toString()}),!(3>this.F.o)))return;a=this.F;if(3!=a.B||y()-a.H>=1E3*Math.pow(2,a.o))if(a=this.F,1!=a.B){var b;i:{var c=a.j;for(b in c){b=
c[b];break i}b=void 0}b=Ve(a.J,{start_seq:(b.index.Kb()+1).toString()});a.H=y();OH(a,b)}E0(this)}else if(this.F.isLive&&(u0(this.o)||u0(this.A))&&(b=R0(this),isNaN(b)||this.seek(b)),"prerender"==window.document.webkitVisibilityState)E0(this);else if(J0(this),d0(this.o),d0(this.A),this.A.A.A||(!this.H||cG(this.G)?F0(this):E0(this)),!this.j||K0(this,this.A,this.j.j)||K0(this,this.o,this.j.o)||((b=S0(this,this.o,this.j.o))&&!this.J&&(this.J=y(),H0(this,"vda"),this.Y&&Zw()),a=es(this.j.o.buffered,this.C+
D0.j),isNaN(a)&&!j0(this.o)&&this.j.j.buffered.length||(j0(this.o)&&(a=NaN),a=S0(this,this.A,this.j.j,a),b|=a,a&&!this.Y&&(this.Y=y(),H0(this,"ada"),this.J&&Zw())),j0(this.o)&&j0(this.A)&&qu(this.j)&&!su(this.j)&&(a=this.j,qu(a)&&a.A.endOfStream(),a=this.G,Jq(aG(a)),a.A=y()),b&&!tu(this.j)&&Q0(this)),T0(this,this.o,T_(this.D)),T0(this,this.A,U_(this.D)),this.o.A.C||this.A.A.C)this.Zd(!0,"net.retryexhausted");else{b=this.J?y()-this.J:0;if(this.ga||b>=this.B.I)L0(this,this.o,this.A)&&O0(this,this.o,
this.A),L0(this,this.A,this.o)&&O0(this,this.A,this.o);this.B.S&&this.V&&!this.H&&cG(this.G)&&(b=this.V,this.V="",a=wj(b),Gj(b,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:x(this.Zd,this,!1,"pathprobe.net",{shost:a})}))}};
function S0(a,b,c,d){if(c.updating)return!0;var e=b.j.length?b.j[0]:null;if(!e)return!1;!b.B||b.B.D||NG(b.B,e.info)||(b.B=null,qu(a.j)&&c.abort(),c.j=null);var g;if(g=a.F.isLive){var h=VG(e);g=!!eH(h,0,1718909296)}h=!(!b.J.N||!b.j.length||1!=b.j[0].info.j.info.j||0!=b.j[0].info.A)&&!a.F.C;if(g)c.j=null;else{if(g=h||!e.j)g=e.info.j.j,c.j==g?g=!1:(U0(a,c,g),c.j=g,a.L("initsegment",c.j),g=c.updating);if(g)return!0}g=M0(a,b,!1);g=a.C+g;0<=d&&(g=Math.min(g,d));d=f0(b,g);if(!d)return!1;if(h){if(e0(b))return!1;
var k;i:{e0(b);var h=b.j[0],l=VG(h);g=l.getInt32(0);if(g>l.byteLength){var p=b.j[1];if(p.ha.length+l.byteLength<g){k=null;break i}k=new Uint8Array(g);l=new Uint8Array(h.buffer,h.ha.start,h.ha.length);k.set(l);l=new Uint8Array(p.buffer,p.ha.start,g-h.ha.length);k.set(l,h.ha.length);l=new DataView(k.buffer)}var r=h.info.j.index.yl(h.info.B);(l=dH(l,r))?(k?(g0(b,h.ha),g0(b,wG(p.ha.start,g-h.ha.length))):g0(b,wG(h.ha.start,g)),k=l):k=null}if(k)return U0(a,c,new Uint8Array(k)),!0}k=new Uint8Array(e.buffer,
d.start,d.length);h=e.info.j.info.o?"audio":"video";if(a.F.C&&3==e.info.type){p=a.B.O&&!b.G?0:null===b.H?e.info.startTime:b.H;g=uH(e)-e.info.duration;l=p-e.info.startTime;r=l+g;if(Math.abs(g)>D0.C||Math.abs(r-b.N)>D0.B)b.N=r,r=QG(e.info),r.delta=g,r.currOffset=l,a.Zd(!1,"qoe.avsync",r);if(!a.B.O||b.G)isNaN(p)||uH(e),b.H=p+uH(e);if(a.F.isLive){g=e.info.j.j;for(var l=NaN,r=0,t=new DataView(e.buffer);lH(t,r);){var C=mH(t,r);if(1936286840==C.type)l=qH(C);else if(1836476516==C.type)l=nH(C);else if(1952867444==
C.type){var V=C;V.data.getUint8(V.offset+8)?rH(V.data,V.offset+12):V.data.getUint32(V.offset+12)}r=oH(C.type)?r+8:r+C.size}!l&&g&&kH(g);cs("audio"==h?a.j.j.buffered:a.j.o.buffered)}g=e.info.j.j;for(var h=NaN,T,l=0,r=new DataView(e.buffer);lH(r,l);)t=mH(r,l),1936286840==t.type?h=qH(t):1836476516==t.type?h=nH(t):1952867444==t.type&&(T=t),l=oH(t.type)?l+8:l+t.size;!h&&g&&(h=kH(g));T.data.getUint8(T.offset+8)?(g=T.data,T=T.offset+12,p=Math.round(p*h),g.setUint32(T,Math.round(p/4294967296)),g.setUint32(T+
4,Math.round(p&4294967295))):T.data.setUint32(T.offset+12,Math.round(p*h))}if(!U0(a,c,k))return m0(b),!0;a.F.C&&a.B.O&&!b.G||(g0(b,d),PG(b.B));b.G||(b.G=!0);e.j&&(c.j=e.info.j.j,a.L("initsegment",c.j));return!0}function U0(a,b,c){try{tu(a.j)?b.appendBuffer(c):b.append(c)}catch(d){return!1}return!ru(a.j)}
function M0(a,b,c){var d;d=!a.B.C&&(Qt(a.D.j)||a.B.Y&&a.ba)?b.A.info.o?10485760:62914560:b.A.info.o?a.B.o:a.B.A;c&&(d+=a.B.j);b=d/(Qt(a.D.j)?b.o?b.o.j.info.ya:b.A.info.ya:b.ya);0<a.B.G&&(b=Math.min(b,a.B.G));return b}function R0(a){if(a.F.isLive){var b=a.o.A.index.Cg(),c=a.o.A.index.Kb(),d=a.o.A.index;if(1>a.B.liveChunkReadahead)return d.cf(c)+d.zh(c)-D0.o;a=Math.max(b,c-a.B.liveChunkReadahead+1);return d.cf(a)+D0.o}return Math.floor(Math.min(a.A.A.index.hg(),a.o.A.index.hg()))}
f.seek=function(a){if(!this.ka()){J0(this);this.da=y();this.o.A=T_(this.D);var b=V0(this,this.o,a,this.j&&this.j.o);this.A.A=U_(this.D);var c=V0(this,this.A,b,this.j&&this.j.j);this.C=Math.max(a,b,c);this.N=!0;Q0(this)}};
function V0(a,b,c,d){if(b.A.Yc())if(d){var e=es(d.buffered,c),g=NaN,h=b.B;h&&(g=es(d.buffered,h.j.index.cf(h.B)));if(e==g&&q0(b))return c;d=i0(b,c);if(0<=d)return d;k0(b,!0);b.A.info.video&&b.B&&!b.B.D&&!o0(b)&&(d=b.B,b.j.length&&(d=ab(b.j).info),d=b.o||d,d=GH(d.j,d,d.ha.length-(d.o+d.A)),c0(b,P0(a,d)));if(isNaN(e))return h0(b,c);h0(b,e+D0.j)}else h0(b,c);else b.A.A||G0(a,b,!1),0!=c&&l0(b);return c}function T0(a,b,c){b.A!=c&&(b.A=c,c.A||G0(a,b,!1))}
function G0(a,b,c){var d=u("ytplayer.playback_delay");null!=d?(a.Zd(!1,"playback.delay",{ms:d}),a.na=L(x(a.Qo,a,b,c),d)):a.Qo(b,c);b.A.A=!0}f.Qo=function(a,b){var c=b?65536:0;b&&!isNaN(2)&&(c=Math.floor(Math.max(c,2*a.A.info.ya)));c=a.A.dp(c);D(c,function(b){var c=P0(this,b);!MG(b.j[b.j.length-1])&&c0(a,c)},this)};f.P=function(){I0(this);this.A&&(l0(this.A),l0(this.o));Wf(this.ma);M(this.na);this.o=this.A=null;D0.K.P.call(this)};
f.Zd=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.L("error",new Mq(b,a,d));a&&(this.j&&qu(this.j)&&(a=this.j,qu(a)&&a.A.endOfStream("network")),this.dispose())};function W0(a){if(!a.o.o)return"";a=qG(a.o.o.j.D.j);return a.substr(0,a.indexOf("."))}
D0.prototype.getDebugInfo=function(){var a={lct:this.C.toFixed(3),lsk:this.N,lmf:Qt(this.D.j),lbw:$F(this.G).toFixed(3),lhd:YF(this.G).toFixed(3),ltd:(1E9*ZF(this.G)).toFixed(3),laa:this.A.B?PG(this.A.B):"",lva:this.o.B?PG(this.o.B):"",lar:this.A.o?PG(this.A.o):"",lvr:this.o.o?PG(this.o.o):"",lvh:W0(this)};this.j&&!ru(this.j)&&(a.lab=cs(this.j.j.buffered),a.lvb=cs(this.j.o.buffered));return a};function H0(a,b,c){a.oa[b]=c?window.performance.timing.navigationStart+c:y()};function X0(a,b,c,d){Q.call(this);this.A=a;this.I=b;this.D=c;this.j=d;this.C="";this.o=this.F=this.G=this.H=null;this.B=new lu(this);R(this,this.B);this.j&&(mu(this.B,this.j,["message","mskeymessage"],this.Hq),mu(this.B,this.j,["error","mskeyerror"],this.Gq),mu(this.B,this.j,["ready","mskeyadded"],this.Fq))}z(X0,Q);f=X0.prototype;f.setCallbacks=function(a,b,c,d){this.H=a;this.G=b;this.F=c;this.o=d};f.Hq=function(a){this.H.call(this.o,a)};
f.Gq=function(a){var b;this.j?(b=this.j.error.code,a=this.j.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.G.call(this.o,b,a)};f.Fq=function(a){this.F.call(this.o,a)};f.update=function(a){this.j?this.j.update(a):this.A.addKey?this.A.addKey(this.I.j,a,this.D,this.C):this.A.webkitAddKey(this.I.j,a,this.D,this.C)};f.P=function(){this.A=null;X0.K.P.call(this)};function Y0(a,b){Q.call(this);this.j=a;this.B=b;this.D={};this.A=null;this.C=new lu(this);R(this,this.C);Bt()||(mu(this.C,this.j,["keymessage","webkitkeymessage"],this.H),mu(this.C,this.j,["keyerror","webkitkeyerror"],this.G),mu(this.C,this.j,["keyadded","webkitkeyadded"],this.F));this.o=null}z(Y0,Q);function Z0(a){a.o=new (Bt())(a.B.j);a.j&&(a.j.msSetMediaKeys?a.j.msSetMediaKeys(a.o):a.j.setMediaKeys(a.o))}
function $0(a,b){var c=a.D[b.sessionId];!c&&a.A&&(c=a.A,a.A=null,c.C=b.sessionId,a.D[b.sessionId]=c);return c}Y0.prototype.H=function(a){var b=$0(this,a);b&&b.Hq(a)};Y0.prototype.G=function(a){var b=$0(this,a);b&&b.Gq(a)};Y0.prototype.F=function(a){var b=$0(this,a);b&&b.Fq(a)};Y0.prototype.P=function(){this.j=null;Y0.K.P.call(this)};function a1(a,b,c){this.url=a;this.interval=b;this.j=c};function b1(a,b,c){this.j=a;this.headers=b;this.message=c};function c1(a,b,c,d,e){Q.call(this);this.I=a;this.o=d;this.o.subscribe("oauthtoken",this.ft,this);this.C={session_id:e};Nr(this,a.A);this.j=[];this.B=this.F=this.H=!1;var g;try{var h=c.j;if(Bt()){b.o||Z0(b);var k=c.o||"video/mp4",l;if("com.microsoft.playready"==b.B.j){var p=new Uint8Array(270);for(a=0;135>a;a++)p[2*a]='<PlayReadyCDMData type="LicenseAcquisition"><LicenseAcquisition version="1.0" Proactive="true"></LicenseAcquisition></PlayReadyCDMData>'.charCodeAt(a);l=b.o.createSession(k,h,p)}else l=
b.o.createSession(k,h);g=new X0(null,null,null,l)}else b.j.generateKeyRequest?b.j.generateKeyRequest(b.B.j,h):b.j.webkitGenerateKeyRequest(b.B.j,h),b.A=new X0(b.j,b.B,h,null),g=b.A}catch(r){b="g",r instanceof DOMException&&(b+=r.code),this.o.L("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),g=null}if(this.A=g)this.A.setCallbacks(this.Pn,this.VE,this.UE,this),R(this,this.A)}z(c1,Q);f=c1.prototype;f.ft=function(a){this.G=a};
function Nr(a,b){if(b&&-1!=b.search(Df)){for(var c in a.C)b=$e(b,c,a.C[c]);a.D=b}else d1(a,"drm.net","u")}f.start=function(){this.ka()||(this.H=!0,this.j.length&&this.Pn(this.j.shift()))};
f.Pn=function(a){if(!this.ka()){var b=a.defaultURL||a.destinationURL;this.B&&b&&Nr(this,b);if(this.H){a=a.message;if("com.microsoft.playready"==this.I.j){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(!QL)for(QL={},RL={},c=0;65>c;c++)QL[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),RL[QL[c]]=c,62<=c&&(RL["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=
c);for(var c=RL,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",EC:a,responseType:"arraybuffer",withCredentials:!0,jb:this.KA,onError:this.Iq,context:this};b=this.D;this.G&&(b=$e(b,"access_token",this.G));Gj(b,a)}else this.j.push(a),
this.F||(this.F=!0,this.o.L("newsession",this))}};f.UE=function(){this.ka()||(this.B||(this.o.L("sessionready"),this.B=!0),this.j.length&&this.Pn(this.j.shift()))};
f.KA=function(a){if(!this.ka())if(0!=a.status&&a.response){i:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];pb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e)for(var d=Ya(e[1]),g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new b1(d,g,a.subarray(b));break i}e=e.match(/([^:]+):\s+([^]+)/);if(null==e)break;g[e[1]]=e[2]}a=null}a?0!=a.j?d1(this,"drm.auth","f"+a.j,vt(a.j)):(b=
(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new a1(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60,parseInt(a.headers["Heartbeat-Num-Retries"],10)||4)),(b||c)&&this.o.L("newlicense",b,c),this.A.update(a.message)):d1(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Iq(a)};f.VE=function(a,b){this.ka()||d1(this,"drm.keyerror","s"+a+"."+b)};f.Iq=function(a){d1(this,"drm.net","r"+a.status)};
function d1(a,b,c,d){a.ka()||a.o.L("licenseerror",b,c,d);a.dispose()}f.P=function(){this.o=null;c1.K.P.call(this)};function e1(a,b){this.j=a;this.o=b||null};function f1(a,b){S.call(this);this.H=a;this.j=b;this.subscribe("newlicense",this.ZA,this);this.subscribe("newsession",this.$A,this);this.subscribe("sessionready",this.yB,this);this.O=ED();this.B=null;this.G={};this.o=[];this.A=Nt;this.N=new Y0("com.microsoft.playready"==b.j?null:a,b);R(this,this.N);this.D=new Y0(a,b);R(this,this.D);this.F=2;this.I=new lu(this);R(this,this.I);this.C=!1;this.J=null;mu(this.I,this.H,Bt()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.YA)}z(f1,S);f=f1.prototype;
f.YA=function(a){g1(this,new e1(a.initData,a.contentType),!0)};
function g1(a,b,c){if(!(a.ka()||"com.microsoft.playready"==a.j.j^!c||(c=b.j,a.C&&"widevine"==a.j.o))){var d=String.fromCharCode.apply(String,c);if(!a.G[d]){a.G[d]=!0;d="clearkey"==a.j.o;if(112==c[4]&&115==c[5]&&115==c[6]&&104==c[7]&&d){i:{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 i}d+=g}c=null}if(!c)return}a.o.push(b);1<a.o.length||(h1(a,b),a.C=!0)}}}function h1(a,b){var c=new c1(a.j,a.N,b,a,a.O);c.ft(a.B);R(a,c)}f.ZA=function(a,b){a&&G(a,"HD")&&!Pt(this.A)&&"com.microsoft.playready"!=this.j.j&&(this.A=Ot,this.L("qualitychange"));b&&!this.J&&(this.J=b,this.L("heartbeatparams",b))};f.$A=function(){this.ka()||(this.o.shift(),this.o.length&&h1(this,this.o[0]))};f.yB=function(){this.F--;0==this.F&&Z0(this.D)};
f.P=function(){this.H=null;this.o=[];f1.K.P.call(this)};function i1(a){this.o={};this.o.c1a=x(this.B,this);this.o.c3a=x(this.C,this);(this.j=a)&&this.j.da?this.A=tj(this.j.da):this.A=[]}i1.prototype.B=function(){var a=u("yt.abuse.botguardInitialized");return a&&a()?(a=u("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};i1.prototype.C=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%Va(a.c3a))};function j1(a,b,c){this.j=a;this.reason=b;this.o=c};function k1(a,b){this.j=a;this.o=b}function l1(a,b){return Rt(Rt(a.j.Sh,b.Um),b.Pj)}
function m1(a,b){var c;c=!!b.A.j;var d;Vh&&!a.j.O&&(d=window.screen&&window.screen.width?new H(window.screen.width,window.screen.height):null);d||(d=a.j.Da?a.j.Da.clone():a.o.sb());(Vh||hd||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.A.o;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=fr("auto",e.quality,!1)}else e=Ot;c=e.j;qs()&&(c=Math.max(c,Kt.hd1080));if(d=(os("armv7")||os("android"))&&!BD(a.j))d=b.A.o[0],d="9"==d.A||"("==
d.A;d&&(c=Math.min(c,Kt.large));c=Math.max(c,Kt.medium);e.j!=c&&(e=new Mt(e.o,c,e.A));return e};function n1(){this.B=this.j=NaN;this.A=this.o=!1}function Hs(a,b,c,d){if(d=1<d)a.A=!0;if(a.o)b!=a.j&&(a.o=!1);else if(0<b&&a.j==b)return c-a.B>(d||!a.A?1500:400);a.j=b;a.B=c;return!1};function o1(){this.o=0;this.j=this.C=this.A=this.B=NaN};function p1(a){this.o=a;this.j=0;this.C=NaN;this.A=0;this.pa=[];this.B=q1(this.o);this.D=this.F=0}function r1(a){a.B.startTime=a.A;a.B.endTime=a.j;a.pa.length&&ab(a.pa).isEmpty()?a.pa[a.pa.length-1]=a.B:a.pa.length&&a.B.isEmpty()||a.pa.push(a.B);a.F+=a.j-a.A;a.B=q1(a.o);a.A=a.j}function s1(a){return a.F+a.o.o()-a.A}function t1(a){a.pa.length&&a.j==a.A||r1(a);var b=a.pa;a.pa=[];return b}
p1.prototype.update=function(){var a=this.o.o()||0,b=u1(this.o);if(a!=this.j||v1(this,a,b)){if(a<this.j||a-this.j>b-this.C+.5||v1(this,a,b))r1(this),this.A=a;this.C=b;this.j=a}};function v1(a,b,c){c-=a.C;return b==a.j&&.5<c};function w1(a,b){this.fa=b;this.A=!1;this.j=a}w1.prototype.o=function(){return{ps:this.fa.j,el:this.fa.ja}};w1.prototype.send=function(){this.A||(jg(Ve(this.fa.B+"set_awesome",this.o())),this.A=!0)};function x1(a,b,c){w1.call(this,b,c);this.B=a}z(x1,w1);
x1.prototype.o=function(){var a=x1.K.o.call(this);qa(a,this.fa.A);var b=Pc(this.j.fk/this.j.lengthSeconds,0,1);qa(a,{html5:"1",video_id:this.j.videoId,eurl:this.fa.G,framer:this.fa.ga,feature:this.fa.S,list:this.j.playlistId,w:b,l:this.j.lengthSeconds,plid:this.j.playbackId,ei:this.j.H,access_token:this.j.C,tpmt:s1(this.B),cpn:this.j.clientPlaybackNonce});this.fa.F&&(a.adformat=this.fa.F);this.fa.referrer&&(a.referrer=F_(this.fa));this.fa.autoplay&&(a.autoplay="1");this.fa.mb&&(a.authuser=this.fa.mb);
this.fa.pageId&&(a.pageid=this.fa.pageId);this.j.pe&&(a.splay="1");this.j.subscribed&&(a.subscribed=this.j.subscribed);qa(a,x1.K.o.call(this));qa(a,this.fa.A);return a};function y1(a){Q.call(this);this.j=a;this.A={};this.O=NaN;this.C=new Mv(this.FA,3E4,this);R(this,this.C);this.D=new Mv(this.yj,100,this);R(this,this.D);this.o="N";this.B=0;this.S=NaN;this.I=0;this.H=this.V="";this.G=this.J=0;this.N=this.F=!1}z(y1,Q);var z1={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function A1(a,b,c,d){var e=a.A[b];e||(e=[],a.A[b]=e);a=0<=d?d:u1(a.j);e.push(a.toFixed(3)+":"+c.join(":"))}f=y1.prototype;
f.yj=function(a){a=a||u1(this.j);var b=this.j.D();if(!isNaN(this.R)&&!isNaN(b.A)){var c=b.A-this.R;0<c&&A1(this,"bwm",[c,(b.C-this.U).toFixed(3)],a)}this.R=b.A;this.U=b.C;isNaN(b.j)||A1(this,"bwe",[b.j.toFixed(0)],a);isNaN(b.o)||(c=b.o,b.B<c&&(c=b.B),this.S!=c&&(A1(this,"bh",[c.toFixed(3)],a),this.S=c),this.j.fa.experiments.B&&3>c&&("PL"==this.o||"B"==this.o)&&this.D.start());A1(this,"cmt",[this.j.o()],a)};
function B1(a){var b={event:"streamingstats"};if(a.j.j.j){b.fmt=a.j.j.j.id;var c=a.j.j.F;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.j.j.clientPlaybackNonce;b.ei=a.j.j.H;b.el=a.j.fa.ja;b.docid=a.j.j.videoId;b.ns=a.j.fa.aa;b.fexp=a.j.fa.experiments.experimentIds.toString();b.cl=a.j.j.mc;a.j.fa.F&&(b.adformat=a.j.fa.F);a.j.j.Qa&&(b.live=a.j.j.xb?"dvr":"live");b.html5="1";return b}
f.bh=function(a){if(!this.ka()&&!Ub(this.A)){this.D.isActive()||this.yj(a);a=I_(this.j.fa).hmewdrop;a>this.I&&A1(this,"df",[a-this.I]);this.I=a;a=B1(this);ac(a,this.j.fa.A);a=Ve(this.j.fa.ie,a);for(var b in this.A)a+="&"+b+"="+this.A[b].join(",");jg(a);this.A={};this.C.start()}};f.ag=function(){A1(this,"vps",["N"]);this.j.j.Za&&(this.A.cat=["preload"]);this.O=Vf(x(this.bh,this),1E4);this.C.start()};
f.onError=function(a,b){var c=this.j.o(),c=[a,c.toFixed(3)];b&&c.push(b);var d=u1(this.j);A1(this,"error",c,d);this.yj(d)};f.FA=function(){"PL"==this.o&&(A1(this,"vps",[this.o]),this.bh())};f.P=function(){y1.K.P.call(this);Wf(this.O)};function C1(a,b,c,d){this.fa=b;this.segments=[];this.experimentIds=[];this.J=!1;this.j="watchtime"==c;this.da="playback"==c;this.fb="delayplay"==c;this.I="atr"==c;this.ba="engage"==c;this.ta=this.I?"/api/stats/"+c:"//"+b.ve+"/api/stats/"+c;d&&(this.du=d.fs,d.rtn&&(this.fh=d.rtn),this.j?(this.ob=d.state,0<d.rti&&(this.Ej=d.rti)):(this.ga=d.mos,this.na=d.volume,d.at&&(this.adType=d.at),d.allowed&&(this.B=d.allowed),d.ex_ads&&(this.H=d.ex_ads)),d.autonav&&(this.fi=d.autonav));this.ua=b.F;this.autoplay=
b.autoplay;this.Aa=b.Z;this.Ba=Yb(b.A);this.Z=b.G;this.Fa=b.ja;this.experimentIds=b.experiments.experimentIds;this.S=b.da;this.pq=b.aa;this.referrer=b.referrer;this.region=b.region;this.o=b.S;this.searchQuery=b.searchQuery;this.userAge=b.userAge;this.Y=b.Hd;this.sa=t_();this.autoplay=a.Qg||this.autoplay;this.fi=a.Rp||this.fi;this.U=a.hk;this.clientPlaybackNonce=a.clientPlaybackNonce;this.F=a.Xh;this.aa=a.qn;this.A=a.fk;this.O=a.bf;a.j&&(this.Ga=a.j.id,a.F&&a.F.id!=this.Ga&&(this.D=a.F.id));this.eu=
a.pe;this.Ma=a.gk;a.Qa&&(this.ma=a.xb?"dvr":"live");this.Ya=a.Fn;this.playbackId=a.playbackId;this.Da=a.H;this.playlistId=a.playlistId;this.o=a.$a||this.o;this.R=a.ic;this.V=a.jc;this.bb=a.$h;this.subscribed=a.subscribed;this.ab=a.mc;this.videoId=a.videoId;this.ub=a.$v;this.Za=a.Ob;this.$a=a.gu}f=C1.prototype;f.fi=!1;f.autoplay=!1;f.$y=!1;f.Sp=!1;f.du=!1;f.az=!1;f.eu=!1;f.pq="yt";f.Ej=null;f.fh=null;
f.send=function(){if(!this.J){var a=D1(this),a=Ve(this.ta,a);this.I?this.C&&Gj(a,{method:"POST",Ib:{atr:this.C}}):jg(a);this.J=!0}};
function D1(a){var b={ns:a.pq,el:a.Fa,cpn:a.clientPlaybackNonce,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.vf(a.A),plid:a.playbackId,ei:a.Da,fmt:a.Ga,fs:a.du?"1":"0",rt:a.vf(a.oa),of:a.$a,adformat:a.ua,content_v:a.Aa,euri:a.Z,subscribed:a.subscribed,lact:a.sa,live:a.ma,cl:a.ab,mos:a.ga,q:a.searchQuery,osid:a.Za,state:a.ob,vm:a.ub,volume:a.na};qa(b,a.Ba);a.fi&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.Sp&&(b["final"]="1");a.eu&&(b.splay="1");a.O&&(b.delay=a.O);a.S&&(b.hl=a.S);a.region&&(b.cr=
a.region);n(a.userAge)&&a.Y&&(b.uga=a.Y+a.userAge);n(a.N)&&(b.len=a.vf(a.N));!a.j&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.fh&&(b.rtn=a.vf(a.fh));a.o&&(b.feature=a.o);a.playlistId&&(b.list=a.playlistId);a.R&&(b.ctrl=a.R);a.V&&(b.ytr=a.V);a.bb&&(b.ssrt="1");a.D&&(b.afmt=a.D);a.j?(b.idpj=a.Ma,b.ldpj=a.Ya,null!=a.Ej&&(b.rti=a.vf(a.Ej))):(n(a.adType)&&(b.at=a.adType),n(a.B)&&(b.allowed=a.B),n(a.H)&&(b.ex_ads=a.H));(a.da||a.fb)&&a.U&&(b.tst=a.U);a.j&&(b.st=E1(a,E(a.segments,
function(a){return a.startTime})),b.et=E1(a,E(a.segments,function(a){return a.endTime})));gb(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=E1(a,E(a.segments,function(a){return a.visibilityState})));gb(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=E1(a,E(a.segments,function(a){return a.playbackRate})));gb(a.segments,function(a){return"-"!=a.Xk})&&(b.cc=E(a.segments,function(a){return a.Xk}).join(","));zj()&&a.F&&(b.ctt=a.F,b.cttype=a.aa);a.ba&&(b.etype=n(a.G)?a.G:0);return b}
f.vf=function(a){return(1*a.toFixed(3)).toString()};function E1(a,b){return E(b,a.vf).join(",")};function F1(a){Q.call(this);this.j=a;this.B=new y1(a);R(this,this.B);this.o=new p1(a);this.D="paused";this.F=NaN;this.H=[10,10,10,40];this.I=this.G=0;this.O=this.S=this.N=this.J=this.A=!1;this.C=NaN;this.R=new x1(this.o,this.j.j,this.j.fa)}z(F1,Q);function G1(a,b,c){var d=u1(a.j);c=isNaN(c)?d:c;c=Math.ceil(c);var e=a.H[a.G];a.G+1<a.H.length&&a.G++;c=c+e;d=1E3*(c-d);a.F=L(x(a.pA,a,c,b),d);return c}f=F1.prototype;
f.pA=function(a,b){if(!this.ka()){this.F=NaN;this.o.update();var c=t1(this.o),d=H1(this,c);b&&(d.Ej=a);var e=400<this.I;!(1<c.length)&&c[0].isEmpty()||e||(d.fh=G1(this,!0,a));d.send();this.I++}};function Ur(a,b){var c=I1(a.j);qa(c,{state:a.D});c=new C1(a.j.j,a.j.fa,b,c);c.A=a.j.o();c.N=a.j.C();c.oa=u1(a.j);c.segments=[q1(a.j)];return c}function H1(a,b){var c=Ur(a,"watchtime");c.segments=b;c.A=a.o.j;return c}function J1(a){a.o.update();return H1(a,t1(a.o))}
function K1(a){var b=a.j.fa;a=a.j.j;var c=a.$a||b.S,c={ns:b.aa,html5:"1",el:b.ja,ps:b.j,fexp:b.experiments.experimentIds.join(",")||void 0,feature:c||void 0,ctrl:a.ic||void 0,ytr:a.jc||void 0,list:a.playlistId,d:b.$a,f:b.Aa};b.autoplay&&(c.autoplay="1");a.subscribed&&(c.subscribed=a.subscribed);return c}function L1(a){a.j.j.remarketingUrl&&!a.S&&(jg(a.j.j.remarketingUrl),a.S=!0);a.j.j.ppvRemarketingUrl&&!a.O&&(jg(a.j.j.ppvRemarketingUrl),a.O=!0);M1(a)}f.ag=function(){this.B.ag()};
f.onError=function(a,b){this.B.onError(a,b)};
function N1(a,b){if(!a.ka()){X(b.state,2)?(a.D="paused",0<Gv(b,2)&&a.A&&J1(a).send()):X(b.state,8)?(a.D="playing",a.A&&isNaN(a.F)&&G1(a,!1)):a.D="paused";var c=a.B,d=b.state,e;e=b.state;if(X(e,128))e="ER";else if(X(e,16)||X(e,32))e="S";else{var g=z1[Ls(e)];"B"==g&&X(e,4)&&(g="PB");e=g}if(e!=c.o){var g=e,h=u1(c.j);if(!(h<c.B)){if("PL"==c.o)c.G+=h-c.B;else if("B"==c.o&&c.F&&(c.F=!1,c.J+=h-c.B,!c.N&&10<=c.J&&180>=c.G)){c.j.F();if(!c.ka()){var k=B1(c);k.qoealert="1";k=Ve(c.j.fa.ie,k);jg(k)}c.N=!0}"B"!=
g||"PL"!=c.o&&"PB"!=c.o||(c.F=!0);c.B=h}!c.j.fa.experiments.B||"B"!=e&&"PB"!=e?A1(c,"cmt",[c.j.o().toFixed(3)]):c.yj();A1(c,"vps",[e]);c.o=e}if(X(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(X(d,2)||X(d,128))&&c.bh();a.C&&X(b.state,128)&&(a.Gj("error-100"),M(a.C))}}function O1(a){a.C=Vf(x(a.Gj,a,"heartbeat"),3E4)}
f.Gj=function(a){var b=this.j.fa,c=this.j.j,d={ns:b.aa,el:b.ja,eurl:b.G,fmt:c.j?c.j.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.clientPlaybackNonce,ei:c.H,ps:b.j,noflv:1,st:this.j.o(),video_id:c.videoId,metric:a};b.autoplay&&(d.autoplay="1");c.Yi&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=s1(this.o));qa(d,b.A);jg(Ve("//www.youtube.com/live_204",d))};f.P=function(){F1.K.P.call(this);M(this.F);this.F=NaN;var a=this.o;Wf(a.D);a.D=NaN};F1.prototype.getDebugInfo=function(){return D1(Ur(this,"playback"))};
function M1(a){a.j.j.D.eventLabel=a.j.fa.ja;a.j.j.D.playerStyle=a.j.fa.j;a.j.j.ma&&(a.j.j.D.feature="pyv");a.j.j.D.vid=a.j.j.videoId;a.j.j.D.isAd=!("adunit"!=a.j.fa.ja&&!a.j.j.ma)};function P1(){this.endTime=this.startTime=-1;this.Xk="-";this.playbackRate=1;this.visibilityState=0}P1.prototype.isEmpty=function(){return this.endTime==this.startTime};function Q1(a,b,c,d,e,g,h,k){this.j=a;this.fa=b;this.B=c;this.C=d;this.o=e;this.D=g;this.G=h;this.F=k||function(){};this.A=-1}function u1(a){var b=window.performance&&window.performance.now?window.performance.now():y();0>a.A&&(a.A=b);return Math.round(b-a.A)/1E3}
function I1(a){var b=a.B();a=a.j;var c={};a.j&&(c.fmt=a.j.id,a.F&&a.F.id!=a.j.id&&(c.afmt=a.F.id));a.sa&&(c.threed=a.Yv);c.plid=a.playbackId;c.ei=a.H;c.list=a.playlistId;c.cpn=a.clientPlaybackNonce;a.videoId&&(c.v=a.videoId);a.Sk&&(c.infringe=1);a.pe&&(c.splay=1);a.Qa&&(c.live=a.xb?"dvr":"live");a.Qg&&(c.autoplay=1);a.Zh&&(c.sdetail=a.Zh);a.U&&(c.partnerid=a.U);a.Ob&&(c.osid=a.Ob);qa(b,c);return b}
function q1(a){var b=new P1;b.Xk=a.B().cc||"-";var c=a.fa;b.playbackRate=c.Bb&&c.Bb.playbackRate||1;(c=wh("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.fa.hb?b.visibilityState=2:a.fa.Up&&(b.visibilityState=1);return b};function R1(a,b){this.state=a;this.j=b}function Gv(a,b){return X(a.state,b)&&!X(a.j,b)?1:!X(a.state,b)&&X(a.j,b)?-1:0};function S1(a,b,c,d){S.call(this);this.Aa=new n1;this.H=c;this.ua=d;this.D=new Rs(x(this.getCurrentTime,this),x(this.XD,this),x(this.getPlayerState,this),x(this.tb,this));R(this,this.D);this.aa=NaN;this.N=this.G=null;this.F=a;this.na=new k1(a,this.ua);this.oa=!1;this.I=this.A=null;this.O=[];this.U=new a0;this.R=new a0;this.Fa=this.sa=!1;this.ta=NaN;this.C=new Ds;this.Ma=b;this.Y=this.ba=null;this.J=NaN;this.Z=new Kv(this);this.j=new Kr;this.o=this.V=null;this.ga=NaN;this.B=null;this.Da=!1;this.da=
0;this.ma=!1}z(S1,S);function Ir(a){Tw()?Ww(a.da):M(a.da)}f=S1.prototype;f.P=function(){M(this.ga);Wf(this.ta);Hr(this);T1(this);Ir(this);eE(this);Ai(this.Y,this.Z,this.j);this.Z=this.N=null;this.ma=!1};
function U1(a,b,c){a.O.length=0;a.U.reset();a.R.reset();a.aa=NaN;a.J=NaN;a.V=null;a.Da=!1;a.o&&Bs(a.o);V1(a);Hr(a);T1(a);Ir(a);yi(a.j);a.D.reset();if(2==a.Ma||dg(a.F.H))b.Vp=!0;b.ze=a.j.ze;a.j=b;a.j.subscribe("dataupdated",a.bC,a);a.j.subscribe("dataloaded",a.Ho,a);a.j.subscribe("dataloaderror",a.jk,a);a.j.subscribe("onStatusFail",a.aC,a);b.uf&&b.uf>b.startSeconds&&(b=b.uf,a.N&&(a.D.vh(a.N),a.N=null),a.N=new Ms(1E3*b,2147483646),a.N.Wa.subscribe("onEnter",a.Zf,a),Ss(a.D,[a.N]));Hr(a);a.j.Ye||(c=new Q1(a.j,
a.F,c,x(a.ed,a),x(a.getCurrentTime,a),x(a.Pw,a),x(a.ua.wb,a.ua),x(a.hx,a)),a.B=new F1(c));a.ma=!1;W1(a,"newdata");X1(a,new Ds)}function Hr(a){if(a.B){var b=a.B;if(!b.ka()&&b.A){b.D="paused";var c=J1(b);c.Sp=!0;c.send();c=b.B;"PL"==c.o&&(c.o="N");A1(c,"vps",[c.o]);c.bh();M(b.C);b.dispose()}yi(a.B);a.B=null}}f.getVideoData=function(){return this.j};f.W=function(){return this.F};function Y1(a){if(hJ(a.j))return!0;Fv(a,"api.invalidparam");return!1}
function Z1(a,b){a.sa=!!b;Y1(a)&&!a.U.o&&(a.U.start(),a.B&&a.B.ag(),a.Ho())}
f.Ho=function(){if(cJ(this.j))cJ(this.j),this.U.j=!0,this.O=sb(this.j.I),$E(this.j),aJ(this.j)&&(this.j.xb&&($1(this,this.j.lengthSeconds),f2(this,!0)),this.j.A.j&&g2(this),gr(this,"i")),W1(this,"dataloaded"),this.R.o&&h2(this);else if(this.j.ga){var a=this.j,b=this.F.experiments.R;a.ga=!1;var c=a.O;ag(c)||Xf(Error("DASH MPD Origin invalid: "+c),"WARNING");var d=wj(c),c=0>Kr.A.indexOf(d)?eg(c):fg(c),d=x(a.nA,a),a=x(a.Gn,a);OH(new HH(c,b),c,d,a);lI("mrs")}else this.j.Pf||(b=D_(this.F,this.j,this.ua.wb()),
iJ(this.j,b,this.F.experiments.ba))};function i2(a){Z1(a);Y1(a)&&!X(a.C,128)&&(a.R.o||(a.R.start(),X1(a,Is(a.C,8))),h2(a))}function h2(a){if(!(a.R.j||!a.U.j||X(a.C,128)||a.O.length||(a.D.de||a.D.ag(),a.O.length||0<$r(a.D.j,-2147483648).length))){if(a.A){var b=a.A;a.Fa=!!b.O&&!!b.U}a.R.j=!0;a.j.Qa&&j2(a,Infinity,!0);a.B&&(b=a.B,b.j.j.xi&&b.j.j.nl&&(b.Gj("connected"),O1(b)));a.L("playbackready",a)}}f.Zf=function(a){this.pauseVideo();a=0==a?new Ds:new Ds(14);X1(this,a)};
function k2(a,b,c,d){a.j.j=c;a.j.F=d||c;if(a.B){var e=a.j,g=m1(a.na,e),e=F(e.A.o,x(g.B,g)),e=new j1(c,b,e?e.id:"");d&&"i"==b&&l2(a,b,d);d=a.B.B;c=u1(d.j);A1(d,"vfs",[e.j.id,e.o,d.V,e.reason],c);d.V=e.j.id;e=d.j.G();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],1<window.devicePixelRatio&&e.push(window.devicePixelRatio),A1(d,"view",e,c));A1(d,"vps",[d.o],c);d.bh(c)}a.L("internalvideoformatchange",a.j,"m"==b)}
function l2(a,b,c){a.j.F=c;if(a.B){var d=a.B.B;c=new j1(c,b,"");var e=u1(d.j);c.j.id!=d.H&&(A1(d,"afs",[c.j.id,d.H,c.reason],e),d.H=c.j.id)}"i"!=b&&a.L("internalaudioformatchange",a.j,"m"==b)}function Fv(a,b,c,d){if(Nb(tt,c))var e=c;else var g=c;X1(a,Gs(a.C,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));Ir(a);T1(a);m2(a)}function n2(a,b){a.O=a.O.filter(function(a){return b!=a});a.R.o&&h2(a)}f.tb=function(){return this.C.tb()};f.getPlayerState=function(){return this.C};f.getPlayerType=function(){return this.Ma};
function o2(a,b){a.o&&eE(a);a.o=b;p2(a)}function eE(a){a.I=null;a.A&&(Q0(a.A),a.A.H=!0);a.o&&(a.B&&a.U.o&&X(a.C,64)&&q2(a),V1(a),a.Z.removeAll(),Bs(a.o),a.o=null)}
function r2(a){i2(a);X(a.C,64)&&X1(a,Is(a.C,8));if(a.R.j&&a.o)if(a.j.A){a.j.Qa&&(0==a.getCurrentTime()||a.getCurrentTime()<Sr(a.j))&&j2(a,Rr(a),!0);var b;if(a.j.A.j)b=s2(a),a.A.resume();else{T1(a);b=a.j.R.j();var c=a.j,d={};c.J&&(d.ptk=c.J,d.oid=c.Rh,d.ptchn=c.Oh,d.pltype=c.Sh);qa(b.o,d);qa(b.o,{c:a.F.A.c,cver:a.F.A.cver})}(c=a.o.Cc)&&c.equals(b)?zs(a.o):t2(a,b)}else Fv(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}
function hr(a){if(!a.j.A)return[];var b=u2(a);a=Ut(a.j.A,b);a.length&&(a=a.concat(["auto"]));return a}function v2(a){return Rt(Rt(l1(a.na,a.j),m1(a.na,a.j)),u2(a))}function u2(a){return a.j.pl?Ot:a.G?a.G.A:aJ(a.j)&&a.j.A.j&&IH(a.j.o)?Nt:Ot}
function gr(a,b,c){if(!a.ka()&&!X(a.C,128)&&(c&&(a.j.Pj=c),aJ(a.j))){"m"==b&&c&&Pt(c)&&(b="a");var d=v2(a);a.j.A.j?"i"!=b&&(c=a.A,c.ka()||((d=Q_(c.D,d,b))&&c.L("videoformatchange",d),T0(c,c.o,T_(c.D)),Qt(c.D.j)&&"m"==b&&m0(c.o),t0(c.o)&&N0(c,c.o,c.A),Q0(c))):(a.j.R=Ju(a.j.N,d),k2(a,b,a.j.R.Rb));a.tb()&&r2(a)}}function w2(a){var b=a.getVideoData().F;if(!b)return a.getVideoData().Y;var c=F(a.j.A?a.j.A.audioTracks:[],function(a){return a.id==b.id});return c?c:a.getVideoData().Y}
function g2(a){SH(a.j.o,{c:a.F.A.c,cver:a.F.A.cver});var b=a.F,c=new LC;if(ps()||b.experiments.da)c.N=!0;ps()&&(c.H=-1);0<=b.ic&&(c.liveChunkReadahead=b.ic);b.experiments.Y&&(c.I=300);b.experiments.sa&&(c.U=!0);b.experiments.ta&&(c.Y=!0);b.experiments.oa&&(c.V=!0);b.experiments.ua&&(c.Ga=!0);if(os("trident/")||os("edge/"))c.G=240;if(BD(b)){var d=b.experiments;c.A=8388608;c.o=524288;c.j=2097152;c.F=1048576;c.J=1.5;c.R=15;c.C=!0;c.S=!1;c.I=0;c.D=Kt.hd720;os("(ps4; leanback shell)")&&(c.ya=d.Z?625E3:
562500);ns()&&d.aa&&(c.A=12582912,c.o=2621440)}qs()&&(c.A=20971520,c.o=1572864,c.ya=812500,c.j=20971520,c.B=1E3);var d=b.Da||new H(window.screen.width,window.screen.height),e=window.devicePixelRatio||1;2560<=d.width*e&&1440<=d.height*e&&(c.A=52428800,c.o=5242880,c.j=20971520,c.F=8388608,c.D=Kt.auto);b.experiments.V&&(c.ya=NaN);b.experiments.fb&&(c.j=1.5*c.F);a.A=new D0(a.ba,c,a.j.o,a.j.A);a.A.subscribe("initsegment",a.HA,a);a.A.subscribe("videoformatchange",a.SA,a);a.A.subscribe("audioformatchange",
a.RA,a);a.A.subscribe("error",a.jk,a);a.A.subscribe("seekrequired",a.MC,a);b=G(a.O,"spacecast")||a.sa;a.A.initialize(a.j.startSeconds,v2(a),b);a.j.probeUrl&&(a.A.V=a.j.probeUrl);if(a.O.length||a.sa)a.A.H=!0;a.sa&&q2(a)}function q2(a){var b=new R1(new Ds(4),a.C);N1(a.B,b)}function T1(a){a.A&&(a.A.dispose(),a.A=null);a.I&&(a.I.dispose(),a.I=null)}
function s2(a){a.I||(a.A?a.A.seek(a.getCurrentTime()):g2(a),a.I=new nu(a.o,a.j.lengthSeconds,a.j.A.o[0].mimeType,a.j.A.j[0].mimeType),ou(a.I,x(a.A.ew,a.A)));try{return pu(a.I)}catch(b){return b.message="window.URL object overwritten by external code",window.setTimeout(function(){throw b;},0),Fv(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),null}}
f.HA=function(a){if(this.G){var b=this.G;if("com.microsoft.playready"==b.j.j){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&&g1(b,new e1(a),!1)}}};f.SA=function(a){k2(this,a.reason,a.video.info,a.j.info);var b=fJ(this.j);b&&b.C(a.video)};
f.RA=function(a){l2(this,a.reason,a.j.info)};f.jk=function(a){if(a.j)Fv(this,a.errorCode,void 0,a.details);else{var b;if(b=this.F.experiments.A&&("net.badstatus"==a.errorCode||"manifest.net"==a.errorCode))b=this.j,b=y()-b.Zv>Kr.C;if(this.B&&(this.B.onError(a.errorCode,a.details),b))this.B.onError("staleconfig");b&&this.L("signatureexpired")}};f.pauseVideo=function(a){X(this.C,64)&&!a&&X1(this,Js(this.C,8));this.o&&(a&&!X(this.C,128)&&X1(this,Is(this.C,256)),this.o.pauseVideo())};
function m2(a){a.pauseVideo(!0);a.o&&(V1(a),a.I&&(a.I.dispose(),a.I=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.J=NaN,As(a.o),X(a.C,128)||X1(a,Gs(a.C)))}function j2(a,b,c,d){if(a.o&&a.R.j){b=Pc(b||0,Sr(a.j),Rr(a));b>=Rr(a)?f2(a,!0):f2(a,!1);a.j.startSeconds=b;a.J=b;var e=a.Aa;e.j=b;e.o=!0;c?a.ik():(x2(a),d&&(a.Y||(a.Y=new Mv(a.ik,d,a)),a.Y.start()),y2(a,!0));a.N&&b>a.j.uf&&(a.D.vh(a.N),a.N=null);b<a.ed()&&X1(a,Js(a.C,2));a.L("seekto",a,b)}else a.j.startSeconds=b||0}
function x2(a){X(a.C,32)||(X1(a,Is(a.C,32)),X(a.C,8)&&a.pauseVideo(!0),a.L("beginseeking",a))}f.ik=function(){if(!isNaN(this.J)&&this.o){var a=this.ed();!this.j.Qa&&this.J>=Math.floor(a)?(this.J=a,this.L("endseeking",this),this.pauseVideo(!0),this.Zf()):(this.A&&this.A.seek(this.J),xs(this.o,this.J))}this.Y&&(this.Y.dispose(),this.Y=null);X(this.C,32)&&(X1(this,Is(Js(this.C,32),16)),this.L("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.J))return this.J;var a=0;this.o&&1<=this.o.readyState?a=this.o.getCurrentTime():this.j&&(a=this.j.fk||this.j.startSeconds||0);return a};f.ed=function(){return jJ(this.j)?Infinity:this.j&&this.j.lengthSeconds?this.j.lengthSeconds:Rr(this)?Rr(this):0};
f.Pw=function(){var a=new o1;if(this.ba&&this.A){var b=this.ba;a.A=b.D;a.C=b.F;a.j=$F(b);b=this.A;b.j&&!ru(b.j)&&(a.o=gs(b.j.o.buffered,b.C),a.B=gs(b.j.j.buffered,b.C));a.j=M_(b.I);$F(b.G);YF(b.G);ZF(b.G)}else this.o&&(a.o=gs(this.o.buffered,this.getCurrentTime()));return a};function z2(a){if(a.o)if(jJ(a.j))a=1;else if(kJ(a.j))if(a.oa)a=0;else{var b=a.o;a=(0<fs(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.ed()}else a=ir(a.o);else a=0;return a}
S1.prototype.getDebugInfo=function(a){var b={};a&&(this.B?qa(b,this.B.getDebugInfo()):this.j&&(b.cpn=this.j.clientPlaybackNonce),this.o&&qa(b,this.o.getDebugInfo()),this.A&&qa(b,this.A.getDebugInfo()),X(this.C,128)&&(b.debug_error=this.C.j),(this.O.length||0<$r(this.D.j,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.j.videoId;return b};f=S1.prototype;f.bC=function(){if(this.G){var a=this.G,b=this.j.C;a.B=b;a.L("oauthtoken",b)}W1(this)};
f.aC=function(a){Fv(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};function W1(a,b){a.L("internalvideodatachange",b||"dataupdated",a,a.j)}function p2(a){D("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.Z.M(this.o,a,this.$D)},a)}
f.$D=function(a){var b=a.target;if(b==this.o&&b.currentSrc){switch(a.type){case "error":if(this.F.Vh&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(x(function(){this.o&&(this.j.R&&this.o.load(),r2(this))},this),500);if(this.B)this.B.onError("progressive.net");return}break;case "durationchange":if(!this.j.xb||this.j.o&&!this.j.o.isLive)b=b.duration||0,(!this.I||isFinite(b)&&0<b)&&1!=b&&$1(this,b);break;case "ratechange":this.A&&(this.A.I.A=Math.max(1,this.o.playbackRate));this.D.ag();
break;case "ended":X1(this,Gs(this.C,4));this.Rm();break;case "loadedmetadata":this.j.startSeconds&&(this.o.currentTime=this.j.startSeconds),this.F.Bk&&this.j.startSeconds&&(this.aa=this.j.startSeconds,this.pauseVideo(!0));case "loadstart":Wf(this.ta);this.Zk()||(this.ta=Vf(x(this.Zk,this),100));break;case "progress":this.aa&&this.o.seekable.length&&this.o.seekable.end(0)>this.aa&&(this.o.currentTime=this.aa,this.aa=NaN,this.Ba=this.Z.M(this.o,"canplay",this.oA));case "suspend":y2(this);this.L("onLoadProgress",
this,z2(this));break;case "seeked":A2(this);break;case "seeking":this.A&&this.A.seek(b.currentTime);break;case "playing":lI("plev",void 0,this.H.j);break;case "timeupdate":this.Da=!0;this.Zk();A2(this);y2(this);this.L("onVideoProgress",this,b.getCurrentTime());break;case "waiting":if(0<b.played.length&&0==b.buffered.length&&0<b.currentTime&&5>b.currentTime&&this.A)return}this.L("videoelementevent",a);a=Es(this.C,a,this.Aa);X1(this,a)}};
f.Zk=function(){var a=this.o;a&&this.Da&&!this.j.cn&&!pI("vfp",this.H.j)&&2<=a.readyState&&!a.ended&&0<fs(a.buffered)&&lI("vfp",void 0,this.H.j);if((a=this.o)&&!this.j.cn&&0<(a.duration||0)&&(!pI("pbr",this.H.j)&&ys(a)&&2<=a.readyState&&0<fs(a.buffered)&&lI("pbr",void 0,this.H.j),0<a.getCurrentTime())){Wf(this.ta);M(this.ga);this.j.cn=!0;B2(this);if(this.B){a=this.B;if(!a.A){var b=Ur(a,"playback");a.H=[10+a.j.j.gk,10,10,40+a.j.j.Fn-a.j.j.gk,40];var c=a.o;Wf(c.D);c.D=NaN;c.D=Vf(x(c.update,c),100);
c.C=u1(c.o);c.B=q1(c.o);b.fh=G1(a,!0);b.az=!0;b.send();!a.j.fa.kh||a.j.fa.Ob||a.A||(b=a.j.fa,c=a.j.j,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.H,referrer:F_(b),eurl:b.G,framer:b.ga,feature:b.S,fmt:c.j?c.j.id:0,ptk:c.J,skl:c.Ur,access_token:c.C,ucid:c.Vh},qa(b,K1(a)),delete b.fexp,b=Ve(a.j.fa.B+"user_watch",b),jg(b));a.j.j.J&&(b=a.j.fa,c=a.j.j,b=Ve(b.B+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.clientPlaybackNonce,plid:c.playbackId,ei:c.H,ptk:c.J,
oid:c.Rh,ptchn:c.Oh,pltype:c.Sh,content_v:b.Z}),jg(b));if(a.j.j.Tp&&a.j.fa.ma&&!a.A){var b=a.j.fa,c=a.j.j,d={noflv:1,video_id:c.videoId,cpn:c.clientPlaybackNonce,el:b.ja,ps:b.j,referrer:F_(b),eurl:b.G,framer:b.ga,fmt:c.j?c.j.id:0,ptk:c.J,subscribed:c.subscribed,t:c.Bk};b.autoplay&&(d.autoplay="1");c.pe&&(d.splay="1");0<c.startSeconds&&(d.start=1E3*c.startSeconds);c.Yi&&(d.tmi="1");b=Ve(a.j.fa.B+"get_video",d);jg(b)}a.j.j.xi&&(a.Gj("playback"),a.C||O1(a));a.j.j.bf||L1(a);a.A=!0;a=a.o;a.j=a.o.o();a.C=
u1(a.o);.5<a.j-a.A&&(a.A=a.j)}L(x(this.Rm,this),4500)}this.L("playbackstarted");this.A&&(this.A.ga=!0);Tw()&&Xw();return!0}return!1};
function B2(a){var b=a.getCurrentTime(),c=a.j;!pI("pbs",a.H.j)&&iI.measure&&iI.getEntriesByName&&(iI.getEntriesByName("mark_navigation_requested")[0]?iI.measure("measure_above_the_fold","mark_navigation_requested"):iI.measure("measure_above_the_fold"));c.videoId&&a.H.info("docid",c.videoId);c.H&&a.H.info("ei",c.H);c.clientPlaybackNonce&&a.H.info("cpn",c.clientPlaybackNonce);0<c.startSeconds&&a.H.info("start",c.startSeconds.toString());a.o&&ys(a.o)&&a.H.info("paused",1);c.j?a.H.info("fmt",c.j.id):
a.H.info("fmt","-1");c.Za&&a.H.info("yt_pre",a.Fa?"2":"1");a.F.hb&&a.H.info("yt_fs","1");a.H.info("tds",Math.round(z2(a)*a.ed()).toString());a.H.info("cmt",b.toFixed(3));if(a.A){b=a.A;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.U),c.length&&(c=c[0],H0(b,"vri",c.fetchStart),H0(b,"vdns",c.domainLookupEnd),H0(b,"vreq",c.requestStart),H0(b,"fvb",c.responseStart),H0(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.O),c.length&&
(c=c[0],H0(b,"ari",c.fetchStart),H0(b,"adns",c.domainLookupEnd),H0(b,"areq",c.requestStart),H0(b,"avb",c.responseStart),H0(b,"arc",c.responseEnd)));var b=b.oa,d;for(d in b)lI(d,b[d],a.H.j)}}f.oA=function(){this.Ba&&(this.Z.Ia(this.Ba),this.Ba=void 0,zs(this.o))};
function y2(a,b){if(a.o&&a.j){var c=a.getCurrentTime();if(c<Sr(a.j))j2(a,Rr(a),!0);else{if(a.A){var d=a.A;if(d.j){d.resume();if(d.N&&!ru(d.j)){var e=d.C<=c&&c<d.C+10,g=0<=ds(d.j.j.buffered,d.C+D0.j)&&0<=ds(d.j.o.buffered,d.C+D0.j);e&&g&&(d.N=!1)}d.N||(d.C=c);E0(d)}}kJ(a.j)&&c>a.ed()&&(d=a.ed(),0==d&&(d=c),$1(a,1.2*d));5<c&&(a.j.startSeconds=c);(d=Tw())?Ww(a.da):M(a.da);ys(a.o)||(e=x(a.Rx,a),a.da=a.o.played&&0==a.o.played.length?d?Uw(e,100):L(e,100):d?Uw(e,500):L(e,500));a.j.fk=c;!b&&a.tb()&&a.B&&
(d=a.B,d.o.update(),d.j.j.lengthSeconds&&d.j.j.bf&&!d.N&&s1(d.o)>=d.j.j.bf&&(d.A&&d.j.j.bf&&(e=Ur(d,"delayplay"),e.$y=!0,e.send(),d.N=!0),L1(d)),e=d.R,!e.A&&e.fa.ma&&!e.fa.Ob&&e.j.lengthSeconds&&s1(e.B)>=e.j.Pr&&d.R.send());a.L("progresssync",a,b);a.j.fz=c}}}f.Rx=function(){if(this.o){var a=this.getCurrentTime();if(X(this.C,8)&&Hs(this.Aa,a,Date.now(),gs(this.o.buffered,a))){var b=this.ed();b&&1>Math.abs(b-a)?this.Zf():X1(this,Is(this.C,1))}y2(this)}};
function X1(a,b){var c=a.C;if(b.o!=c.o||b.j!=c.j){c=new R1(b,a.C);a.C=b;0>Gv(c,8)&&(M(a.ga),f2(a,!1));0<Gv(c,32)&&f2(a,!1);a.A&&(0>Gv(c,8)&&0<Gv(c,4)?a.A.ba=!0:X(b,4)||(a.A.ba=!1));kJ(a.j)&&X(c.state,2)&&($1(a,a.getCurrentTime()),y2(a,!0));a.B&&N1(a.B,c);var d=a.D;if(d.de&&!d.cj)if(Us(d),X(c.state,2)){d.C=null;for(var e=[],g=0;g<d.o.length;g++){var h=d.o[g];h.mo&&2147483647>h.end&&e.push(h)}g=$r(d.j,2147483646);g=g.concat(as(d.j,2147483646));e=Ws(d,e).concat(Vs(d,g));d.Tg=!0;Xs(d,e);d.Tg=!1;d.Ni&&
d.nc()}else X(c.state,16)?(d.A=Ts(d),d.B.stop(),d.B.start(),d.nc()):(d.B.stop(),X(c.j,16)?(d.A=Ts(d),null!=bs(d.j,Math.max(d.A-2E3,0))&&(d.Vg=vn(x(d.nc,d)))):d.nc());a.L("statechange",c)}}f.hx=function(){this.j.Qa||this.L("connectionissue")};f.MC=function(){xs(this.o,Math.max(0,this.o.currentTime+.1))};function A2(a){X(a.C,2)||X(a.C,32)||(a.J=NaN)}function f2(a,b){a.j.xb&&a.oa!=b&&(a.oa=b,a.L("liveviewshift",b))}function t2(a,b){C2(a,b);a.F.Uh?L(x(function(){zs(this.o)},a),0):zs(a.o)}
function C2(a,b){lI("vta",void 0,a.H.j);us(a.o,b);if(MD(a.j)){var c=MD(a.j);if(c&&!a.G&&a.o){var d=a.j.j.mimeType;if(c=Dt(a.o,d,c)){a.G=new f1(a.o,c);a.G.subscribe("newsession",a.ZD,a);a.G.subscribe("licenseerror",a.IA,a);a.G.subscribe("qualitychange",a.JA,a);a.G.subscribe("heartbeatparams",a.YD,a);var e=a.G,g=a.j.C;e.B=g;e.L("oauthtoken",g);R(a,a.G);a.o.canPlayType(d,c.j)}else Fv(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}}a.I&&Zw();M(a.ga);a.ga=L(x(a.PA,a),15E3)}
function V1(a){a.G&&(a.G.dispose(),a.G=null)}f.ZD=function(a){var b={};qa(b,this.F.A);b.cpn=this.j.clientPlaybackNonce;this.j.G&&(b.vvt=this.j.G);this.F.mb&&(b.authuser=this.F.mb);this.F.pageId&&(b.pageid=this.F.pageId);ac(a.C,b);Nr(a,a.D);this.L("newlicensesession",a)};f.IA=function(a,b,c){Fv(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.JA=function(){gr(this,"r");W1(this)};f.YD=function(a){this.L("heartbeatparams",a)};f.PA=function(){if(this.B)this.B.onError("qoe.start15s");this.L("loadsofttimeout")};
function $1(a,b){a.j.lengthSeconds!=b&&(a.j.lengthSeconds=b,W1(a))}f.Rm=function(){if(!this.ma){var a=new i1(this.j),b;"c1a"in a.A?(b=u("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(x(this.Rm,this),4500);else{var c;if(a.j&&a.j.da){b=[a.j.da];for(c in a.o)if(a.A[c]&&a.o[c]){var d=a.o[c](a.A);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.B&&(a=this.B,a.J||(b=Ur(a,"atr"),b.C=c,b.send(),a.J=!0),this.ma=!0)}}};
function Rr(a){if(!a.o)return 0;if(!a.j.Qa)return a=a.j,a.o&&!isNaN(QH(a.o))?QH(a.o):a.lengthSeconds;if(!a.j.xb)return a.getCurrentTime();if(a.A){var b=R0(a.A),b=Math.max(b,Sr(a.j));return Math.max(b,a.getCurrentTime())}a=a.o;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}f.XD=function(){return this.o?this.o.playbackRate:1};var D2={WI:0,VI:-1,qH:-2};function E2(a){this.j=a}f=E2.prototype;f.wl=function(){return WQ(this.j)};f.Bl=function(){return this.j.B};f.Bf=function(){return this.j.B};f.Ri=function(){var a=this.j.A;return null!=a?a:new xQ};f.Si=function(){var a=this.j;null!=a.j&&wQ(a.j.j,!0)};f.Lj=function(){};f.Ql=function(){return this.j.D};f.Rl=function(){return!1};f.Ti=function(){return this.j.G};f.Pl=function(){};f.$=function(){};function aY(a,b){fm.call(this,"adsManagerLoaded");this.A=a;this.B=b}z(aY,fm);function F2(a,b,c,d){a.A.Sc(new E2(b),c,d);return a.A};function G2(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function H2(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ha(a.getMessage)?a.getMessage():a.message,d=La(c||"",50),b.error_message=d)}}function I2(a,b){if(a){var c=NU(a);if(c){var d=OU(a)||[];b.ad_id=rb(d,c).join(",");if(c=GU(a))d=QU(a)||[],b.ad_sys=rb(d,c).join(",");dV(a)?b.survey=1:DU(a)&&(b.skip=1)}}}
function J2(a,b){if(a[b])return G2(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return G2(a[d]);return!1}function K2(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 L2(a,b,c,d){this.B=a;this.C=b;this.j=c;this.D=d}L2.prototype.A="";L2.prototype.o="";function M2(a){var b={};b.l_ns=a.C;b.l_state=a.D;b.sst=a.B;b.sidx=0;a.A&&(b.at=a.A);a.o&&(b.ad_id=a.o);return b};var N2=!1;function O2(){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 P2(){var a=u("window.google_show_companion_ad");ha(a)?a():N2=!0}function Q2(){var a=u("yt.www.watch.ads.setCompanion");a&&a()}function R2(a){var b=u("yt.www.watch.ads.showForcedMpu");b&&b(a)}Hi("showCompanionAdLoaded",function(){N2&&(P2(),N2=!1)});function S2(a,b){S.call(this);this.B=!!b;this.o=a;this.j=new Kv(this);this.A=this.C=null;b&&fd&&a.setAttribute("draggable","true");T2(this)}z(S2,S);function T2(a){a.A=null;a.C=null;a.j.M(a.o,U2("over"),a.AD);a.j.M(a.o,"touchstart",a.DD)}f=S2.prototype;f.AD=function(a){this.j.removeAll();this.j.M(this.o,U2("move"),this.ys);this.j.M(this.o,U2("out"),this.zs);this.B&&this.j.M(this.o,U2("down"),this.xs);this.L("hoverstart",Bh(a),Ch(a),a.target);this.L("hovermove",Bh(a),Ch(a),a.target)};
f.ys=function(a){this.A&&Bh(this.A)==Bh(a)&&Ch(this.A)==Ch(a)&&this.A.relatedTarget==a.target||this.L("hovermove",Bh(a),Ch(a),a.target);this.A=null};f.zs=function(a){a.relatedTarget&&ce(this.o,a.relatedTarget)?(this.A=a,this.L("hovermove",Bh(a),Ch(a),a.relatedTarget)):(this.j.removeAll(),T2(this),this.L("hoverend",Bh(a),Ch(a),a.relatedTarget))};
f.xs=function(a){ga(a.button)&&0!=a.button||(this.j.removeAll(),this.j.M(document,U2("move"),this.sz),this.j.M(document,U2("up"),this.BD),fd?this.j.M(this.o,"dragstart",this.Bw):a.preventDefault(),this.L("dragstart",Bh(a),Ch(a),a.target),this.L("dragmove",Bh(a),Ch(a),a.target))};f.Bw=function(a){a.preventDefault()};f.sz=function(a){var b=a.target==document?null:a.target;this.L("hovermove",Bh(a),Ch(a),b);this.L("dragmove",Bh(a),Ch(a),b)};
f.BD=function(a){this.j.removeAll();a.target&&ce(this.o,a.target)?(this.j.M(this.o,U2("move"),this.ys),this.j.M(this.o,U2("out"),this.zs),this.j.M(this.o,U2("down"),this.xs),this.L("dragend",Bh(a),Ch(a),a.target)):(T2(this),this.L("dragend",Bh(a),Ch(a),a.target),this.L("hoverend",Bh(a),Ch(a),a.target))};
f.DD=function(a){var b=a.changedTouches[0];b&&(this.j.removeAll(),this.j.M(this.o,"touchmove",this.CD),this.j.M(this.o,"touchend",this.As),this.j.M(this.o,"touchcancel",this.As),this.C=b.identifier,this.L("hoverstart",b.pageX,b.pageY,a.target),this.L("hovermove",b.pageX,b.pageY,a.target),this.B&&(this.L("dragstart",b.pageX,b.pageY,a.target),this.L("dragmove",b.pageX,b.pageY,a.target)))};
f.CD=function(a){var b=V2(this,a);b&&(a.preventDefault(),this.L("hovermove",b.pageX,b.pageY,a.target),this.B&&this.L("dragmove",b.pageX,b.pageY,a.target))};f.As=function(a){var b=V2(this,a);b&&(a.preventDefault(),this.j.removeAll(),T2(this),this.B&&this.L("dragend",b.pageX,b.pageY,a.target),this.L("hoverend",b.pageX,b.pageY,a.target))};function V2(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.C)return d}return null}
function U2(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.P=function(){this.j.removeAll();S2.K.P.call(this)};function W2(a,b){this.o=a;this.j=b}function X2(a){return a.j-a.o}function Y2(a,b){return a.o+b*X2(a)}function Z2(a,b){return X2(a)?Pc((b-a.o)/X2(a),0,1):Infinity};function $2(a,b,c,d){this.width=b;this.o=c;this.C=d;this.j=b-c-d;this.B=Pc(a-c,0,this.j);this.position=this.B+c;this.A=this.B/this.j};function a3(a,b,c,d){var e=Math.min(c/(b.lq/b.Eb),d/(b.jq/b.rows)),g=b.lq*e,e=b.jq*e,g=Math.floor(g/b.Eb)*b.Eb,e=Math.floor(e/b.rows)*b.rows,h=g/b.Eb,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.vw*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 b3(){Y.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.A=this.template.j["ytp-progress-tooltip-arrow"];this.j=-1;this.ba="";this.o=new W2(0,0);this.$()}z(b3,Y);f=b3.prototype;
f.ti=!1;f.gf=null;f.Kh=null;f.disable=function(){this.ti=!0};f.va=function(){this.ti||b3.K.va.call(this)};f.reset=function(){oh(this.Q(),"with-thumbnail");this.Kh=this.gf=null;this.template.j["ytp-progress-tooltip-thumbnail"].removeAttribute("style")};f.gG=function(a,b){a<=this.j&&this.j<=b&&c3(this)};function c3(a){var b=PI(a.Kh,a.j,108);a3(a.template.j["ytp-progress-tooltip-thumbnail"],b,108,60)}f.P=function(){this.A=this.Kh=this.gf=null;b3.K.P.call(this)};function d3(a,b){var c=["div","ytp-progress-bar-container",["div",["html5-progress-bar","ytp-force-transform"],{tabindex:6250,role:"slider","aria-label":Zf("YTP_SEEK_SLIDER"),"aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},["div","ytp-progress-bar-padding"],["div","ytp-progress-list",["div","ytp-unloaded-progress"],["div","ytp-play-progress"],["div","ytp-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","ytp-bound-time-left","{{boundTimeLeft}}"],["div","ytp-bound-time-right","{{boundTimeRight}}"],["div",["ytp-clip-start","html5-clip-marker","yt-uix-tooltip"],{title:Zf("YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:Zf("YTP_TOOLTIP_CLIP_MARKER")}]];PD.call(this,c);this.A=a.wb().width;this.G=1;this.B=
this.$a=this.J=0;this.Za=!1;this.N=this.Y=0;this.oa=this.template.j["html5-ad-progress-list"];this.bb=this.template.j["ytp-marker-progress-list"];this.Ya=this.template.j["ytp-marker-crenellation-list"];this.H={};this.U={};this.O=Infinity;this.da=this.template.j["ytp-clip-end"];this.ta=new S2(this.da,!0);R(this,this.ta);this.ta.subscribe("hoverstart",this.au,this);this.ta.subscribe("hoverend",this.Zt,this);sv(this,this.da,"click",this.ao);this.sa=this.template.j["ytp-clip-end-exclude"];this.Ma=this.template.j["ytp-clip-start-exclude"];
this.S=0;this.ga=this.template.j["ytp-clip-start"];this.ua=new S2(this.ga,!0);R(this,this.ua);this.ua.subscribe("hoverstart",this.au,this);this.ua.subscribe("hoverend",this.Zt,this);sv(this,this.ga,"click",this.ao);this.Da=this.template.j["ytp-unloaded-progress"];this.ma=this.template.j["ytp-load-progress"];this.R=0;this.Ba=this.template.j["ytp-play-progress"];this.C=0;this.I=this.template.j["html5-progress-bar"];this.o=this.F=null;this.aa=new Y(["div","html5-scrubber-button"]);R(this,this.aa);this.aa.ea(this.I);
this.ub=this.template.j["ytp-scrubber-pull-indicator"];this.Fa=0;this.na=!1;this.Aa=new Qc;this.j=new W2(0,0);this.ab=!1;this.Z=b;e3(this)}z(d3,PD);f=d3.prototype;f.bG=function(){this.o&&this.o.va()};
f.dG=function(a,b,c){var d=Pg(this.Q()),e=f3(this).j,g=c?c.getAttribute("data-tooltip"):void 0;g&&(a=Z2(this.j,Number(c.getAttribute("data-position")))*e+Pg(this.I).x);this.Aa.x=a-d.x;this.Aa.y=b-d.y;b=this.ab?this.j.j:0;d=f3(this);this.o&&(a=this.o,a.ti||(c=50,a.gf?(c=108,g&&(c*=2)):g&&(c=108),a.Q().style.padding="2px",a.Q().style.width=c+"px",e=c/2+2,e=(new $2(d.position,d.width,e,e)).position-e,a.Q().style.left=e+"px",a.A.style.left=Pc(d.position,0,d.width)-e-5+"px",d=Y2(a.o,d.A),a.za(tv(d-b),
"timestamp"),a.gf&&(b=XH(a.gf,c),b=a.gf.j[b].mk(d),0<b&&b!=a.j&&(a.j=b,c3(a))),g?(N(a.Q(),"with-text"),a.za(g,"text")):oh(a.Q(),"with-text")))};f.cG=function(){this.o&&this.o.$()};f.aG=function(a,b,c){a=g3(this);this.Fa=a.o-f3(this).A*(a.o+a.C);this.o&&this.o.$();this.B&&(Wf(this.B),this.B=0);this.$a=b;this.na=!0;this.L("beginseeking",parseFloat(c.getAttribute("data-position")))};
f.eG=function(){this.Y=0;oh(this.Q(),"ytp-pull-ui");oh(this.Q(),"ytp-pulling");if(0<this.J){var a=y(),b=this.J,c=f3(this).position;this.B&&Wf(this.B);this.B=qv(x(this.cu,this,a,b,c),0)}this.o&&this.o.va();this.na=!1;this.L("endseeking")};f.cu=function(a,b,c){var d;d=(y()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.C*this.A-c);if(0>d||1<d)d=1;h3(this,(1-d)*b,e,this.C);this.B=1>d?qv(x(this.cu,this,a,b,c),0):0};
function h3(a,b,c,d){b=Pc(b,0,40);a.J=b;var e=a.G,g=Math.max(X2(a.j)/a.A,1);a.G=b/40*(g-1)+1;b=a.A*a.G;a.N=Pc(d*b-c,0,b-a.A);e!=a.G&&e3(a)}
f.fG=function(a,b){var c=!1,d=!1,e=f3(this);3600<=X2(this.j)&&(h3(this,this.$a-b-10,e.position,e.A),d=!0,c=4<this.J,e=f3(this));O(this.Q(),"ytp-pull-ui",d);c&&N(this.Q(),"ytp-pulling");c=0;e.o&&0>=e.position?c=-1:e.C&&e.position>=e.width&&(c=1);!this.B||c&&c==this.Y||M(this.B);c&&(this.B=qv(x(this.bu,this,y(),this.N),0));this.Y=c;this.L("seekto",Y2(this.j,e.A),!1)};
f.bu=function(a,b){if(this.Y){var c=this.A*(this.G-1);this.N=Pc(b+this.Y*(y()-a)*.3,0,c);e3(this);this.L("seekto",Y2(this.j,f3(this).A),!1);0<this.N&&this.N<c&&(this.B=qv(x(this.bu,this,a,b),0))}};
function e3(a){var b=f3(a),c=Yd(a.Ya),d=0;if(8<a.J)for(var e=(-b.o+b.width)/b.j*(X2(a.j)/60),g=Math.ceil(-b.o/b.j*(X2(a.j)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),a.Ya.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/X2(a.j)*b.j+"px"}for(e=c.length-1;e>=d;e--)Wd(c[e]);c=(-b.o+b.width)/b.j;a.za(tv(Y2(a.j,-b.o/b.j)),"boundTimeLeft");a.za(tv(Y2(a.j,c)),"boundTimeRight");a.I.style.width=
b.j+"px";a.Q().style.height=a.J+(a.Z?20:8)+"px";b=b.o;Dg(a.I,"transform",b?"translatex("+b+"px)":"");a.aa.Q().style.height=a.J+(a.Z?12:6)+"px";for(var k in a.H)i3(a,a.H[k],a.U[k]);j3(a);k3(a,a.C,a.R)}function l3(a){var b=a.j.j,c=Y2(a.j,a.C);a.template.update({ariamin:Math.floor(a.j.o),ariamax:Math.floor(b),arianow:Math.floor(c),arianowtext:Zf("YTP_PROGRESS_LABEL_2",{PLAY_PROGRESS:tv(c),DURATION:tv(b)})})}
function f3(a){var b=a.Aa.x;if(a.na)var c=a.Z?32:16,b=(b+a.Fa-c/2)/(a.A-c)*a.A;c=a.A*a.G;b=Pc(b,0,a.A);return new $2(b,a.A,-a.N,-(c-a.N-a.A))}function g3(a){var b=a.Z?32:16,c=a.A*a.G;return new $2(a.C*(c-b)+b/2,c,b/2,b/2)}
function k3(a,b,c){if(b<a.S||b>a.O)a.ao();else{a.C=b;a.R=Math.max(a.C,c);l3(a);var d=Z2(a.j,a.S),e=Z2(a.j,a.O),g=Pc(b,d,e);c=a.Za?1:Pc(c,d,e);var h=g;g<e&&(h=a.A*a.G,h=(g*h-g)/h);a.Ba.style.left=uv(d)+"%";Dg(a.Ba,"transform","scalex("+(h-d)+")");Dg(a.aa.Q(),"transformOrigin",uv(b)+"%");b=g3(a).position+"px";a.aa.Q().style.left=b;a.ub.style.left=b;a.ma.style.left=uv(d)+"%";Dg(a.ma,"transform","scalex("+(c-d)+")");a.Da.style.left=uv(d)+"%";Dg(a.Da,"transform","scalex("+(e-d)+")")}}
function j3(a){var b=a.S>a.j.o,c=0<a.j.j&&a.O<a.j.j;O(a.Q(),"ytp-clip-start-enabled",b);O(a.Q(),"ytp-clip-end-enabled",c);b=b?Z2(a.j,a.S):0;c=c?Z2(a.j,a.O):1;a.ga.style.left=uv(b)+"%";a.da.style.left=uv(c)+"%";a.Ma.style.width=uv(b)+"%";a.sa.style.left=uv(c)+"%";a.sa.style.width=uv(1-c)+"%"}f.au=function(){N(this.Q(),"ytp-clip-hover")};f.Zt=function(){oh(this.Q(),"ytp-clip-hover")};f.ao=function(){this.S=0;this.O=Infinity;j3(this);k3(this,this.C,this.R)};
function i3(a,b,c){var d=f3(a).j,e=Z2(a.j,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=Ps(b);var g=a/2,d=Pc(e,g,d-g)-g;break;default:a=Math.min(Math.min(Z2(a.j,b.end/1E3)*d,d)-e,Ps(b)),d=Pc(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function m3(a,b){for(var c=0;c<b.length;c++){var d=b[c];if(d.visible){var e=a,g=d.getId();if(!e.H[g]){var h=document.createElement("div");d.tooltip&&(h.setAttribute("data-tooltip",d.tooltip),h.setAttribute("data-position",d.start/1E3));e.H[g]=d;e.U[g]=h;i3(e,d,h);"ytp-chapter-marker"==d.style?e.bb.appendChild(h):e.oa.appendChild(h)}}else n3(a,d)}}function n3(a,b){var c=b.getId();a.H[c]==b&&(Wd(a.U[c]),delete a.H[c],delete a.U[c])}
function o3(a,b){b?a.F||(a.F=new S2(a.I,!0),a.F.subscribe("hoverstart",a.bG,a),a.F.subscribe("hovermove",a.dG,a),a.F.subscribe("hoverend",a.cG,a),a.F.subscribe("dragstart",a.aG,a),a.F.subscribe("dragmove",a.fG,a),a.F.subscribe("dragend",a.eG,a)):a.F&&(a.F.dispose(),a.F=null)}f.P=function(){this.B&&(M(this.B),this.B=0);o3(this,!1);this.ma=this.ga=this.Ma=this.da=this.sa=this.oa=null;this.U={};this.Da=this.I=this.Ba=null;this.Z=!1;d3.K.P.call(this)};function p3(a,b,c,d){S.call(this);this.j=a;this.type=b+"_"+c;this.o=d;this.A=null;this.J=c}z(p3,S);p3.prototype.C=function(){return this.type};p3.prototype.getCurrentAd=function(){return this.o?this.o.getCurrentAd():null};function q3(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=v;this.skipTime=0;this.videoUrl=this.videoId=""};function r3(a){this.j=a}function s3(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 t3(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 u3(a,b){this.j=a;this.B=b}u3.prototype.C=null;u3.prototype.o=NaN;function v3(a,b,c){a.j.L("AD_LOGGING_EVENT",b,c)}function w3(a){x3(a);var b=y3(a);if(a.A){var c=z3(a.B),d=a.A.y-c.top,d=Math.round(a.A.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}v3(a,15,b)}function A3(a){x3(a);var b=y3(a);if(isNaN(a.o))x3(a);else{var c=y()-a.o;b.ad_stl=c}v3(a,4,b)}function B3(a){x3(a);var b=y3(a),c=a.j.sl();c?b.ad_fmt=c:x3(a);v3(a,5,b)}
function C3(a){var b=y3(a),c=a.j.sl();c?b.ad_fmt=c:x3(a);v3(a,14,b)}function y3(a){var b={},c=a.j.A,d=a.j.Di(),e=a.j.tl();I2(a.j.getCurrentAd(),b);d&&0<d&&(b.ad_len=d);b.ad_v="0";c&&c.videoId?b.ad_v=c.videoId:e&&(c=wj(e),b.ad_dom=c,a.B.la.B&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.o?e.o.yf():null)&&(b.ad_cpn=e);b.at=a.j.C();return b}function x3(a){a.C||(a.C="InstreamAdDisplay ("+a.j.C()+")")};function D3(a,b,c,d,e,g){p3.call(this,b,a,2,c);this.j.subscribe("onVolumeChange",this.Ft,this);this.j.subscribe("control_toggle_play_pause",this.Ht,this);this.j.subscribe("control_play",this.Un,this);this.j.subscribe("control_pause",this.Tn,this);this.I=d;this.D=new u3(this,this.j);this.B=new Kv(this);this.H=this.F=!1;this.G=0;this.O=e;this.N=!!g}z(D3,p3);D3.j=2E3;f=D3.prototype;f.Zb=null;f.ng=!1;f.Gh=null;f.Fh=null;f.Eh=null;
f.df=function(){this.D.o=y();var a;if(a=this.I){var b=vj(a),b=b.v||b.video_id;if(!b){var c=Me(Ie(a)[5]||null).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 Kr({video_id:b,dash:"0"}):null}else a=null;this.A=a;var d;a=new q3;a.isSkippable=this.O;a.skip=x(this.cD,this);a.skipShown=x(this.o.Sm,this.o);if(b=this.getCurrentAd())a.clickThroughUrl=aV(b)||"",a.skipTime=XU(b,bV(b))||0;this.A?(this.A.pe=!0,d={video_id:this.A.videoId},
a.videoId=this.A.videoId,this.A.subscribe("onStatusFail",this.Ct,this),this.A.subscribe("dataloaded",this.or,this),b=this.j.W(),b=Yb(b.C),b.autoplay="1",b=new A_(b),b.ja="adunit",b.F=this.type,b=D_(b,this.A,this.j.o.A.wb()),iJ(this.A,b)):(this.I&&(a.videoUrl=this.I),E3(this));this.F||(F3(this.j,-1,d,a),this.yq())};f.cD=function(){this.j.C.A.X("skip")};function G3(a){a.A&&(a.A.qa("onStatusFail",a.Ct,a),a.A.qa("dataloaded",a.or,a))}
f.or=function(){G3(this);$E(this.A);var a=new k1(this.j.W(),this.j.o.A);aJ(this.A)?(a=Ju(this.A.N,m1(a,this.A)))?(a=a.j())?(a=new J(ws(a)),a.j.set("autoplay","1"),this.o.setMediaUrl(a.toString()),E3(this)):H3(this,Error("Failed to determine ad media resource.")):H3(this,Error("Failed to determine ad media format.")):H3(this,Error("No selectable formats."))};
function E3(a){if(Vh||2.2<=Wt&&3>Wt||(Vh||Wh)&&!Zh){var b=y()-a.D.o,b=D3.j-b;a.G=L(x(a.Vr,a),Math.max(0,b));N(a.j.La(),"ad-interstitial-showing")}else a.Vr()}
f.Vr=function(){I3(this);this.Zb=J3(this.j,!0);this.Eh=this.j.La();if(this.j.la.G)Wd(Hd("video-ad-status-bar"));else{var a=this.j.La();this.Gh=Hd("video-ad-time-left",a);var a=Hd("html5-ad-progress-list",a),b=Rd("div");N(b,"ytp-ad-progress");a.appendChild(b);this.Fh=b;this.B.M(this.Zb,"timeupdate",this.vF)}nh(this.Eh,["ad-showing","ad-interrupting"]);this.B.M(cE(this.j.A),"mouseup",this.tF);this.B.M(this.Zb,"waiting",this.yq);this.j.subscribe("onResize",this.Vn,this);try{this.B.M(this.o,"adError",
this.sF);this.B.M(this.o,"click",this.rF);this.B.M(this.o,"complete",this.Dm);this.B.M(this.o,"pause",this.Dt);this.B.M(this.o,"start",this.Et);this.B.M(this.o,"skip",this.uF);this.Vn();var c=this.j,d=c.A,e=K3(c);d.ca.W().D&&(Tg(d.j,e),Jg(d.j,0,0));this.N||this.o.start()}catch(g){H3(this,g)}};f.Et=function(){this.ng=!0;this.F=!1;this.H||(this.H=!0,A3(this.D),L3(this.j,1));mt(this.j,!0);F3(this.j,1);this.L("adPlay",this)};f.Dt=function(){this.ng=!1;mt(this.j,!1);F3(this.j,2)};
f.uF=function(){C3(this.D);this.Dm()};f.Dm=function(){this.F||(B3(this.D),this.ng=!1,this.F=!0,this.H=!1,F3(this.j,0),L3(this.j,0),this.L("adEnd",this))};f.sF=function(a){H3(this,a.A)};function H3(a,b){a.ng=!1;a.F=!0;F3(a.j,0);a.L("adError",b)}f.Ct=function(){G3(this);H3(this,Error("Request to get video data failed."))};f.rF=function(){w3(this.D);this.L("select")};f.tF=function(a){a=new Qc(Bh(a),Ch(a));this.D.A=a};
f.vF=function(a){var b=tv(this.o.getRemainingTime());this.Gh.innerHTML=b;b=this.Di()?this.Zb.getCurrentTime()/this.Di():0;b=uv(b);this.Fh.style.width=b+"%";this.Zb.ended&&L(x(this.Dm,this,a),50)};f.yq=function(){!this.ng&&this.H||F3(this.j,3)};
f.P=function(){this.j.qa("control_toggle_play_pause",this.Ht,this);this.j.qa("control_play",this.Un,this);this.j.qa("control_pause",this.Tn,this);this.j.qa("onResize",this.Vn,this);this.j.qa("onVolumeChange",this.Ft,this);this.B.removeAll();G3(this);this.N||this.o.destroy();this.Zb&&(aE(this.j.A),this.Zb=null);I3(this);this.Gh&&(this.Gh.innerHTML="",this.Gh=null);this.Fh&&(Wd(this.Fh),this.Fh=null);this.Eh&&(ph(this.Eh,["ad-showing","ad-interrupting"]),this.Eh=null);this.F=!0;D3.K.P.call(this)};
function I3(a){a.G&&(M(a.G),a.G=0,oh(a.j.La(),"ad-interstitial-showing"))}f.Di=function(){return this.Zb?this.Zb.duration||0:null};f.sl=function(){return null};f.tl=function(){return this.Zb&&this.Zb.currentSrc?this.Zb.currentSrc:null};f.Ft=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Pc(a/100,0,1),this.o.setVolume(a))};f.Ht=function(){this.ng?this.Tn():this.Un()};f.Un=function(){this.Zb&&(this.o.resume(),this.Et())};f.Tn=function(){this.Zb&&(this.o.pause(),this.Dt())};
f.Vn=function(){$D(this.j.A)&&Tg($D(this.j.A),K3(this.j))};function M3(){this.A=!1;this.o=0;this.j=""};function N3(a,b,c,d,e){p3.call(this,b,a,2,c);this.j.subscribe("control_toggle_play_pause",this.Lt,this);this.j.subscribe("control_play",this.Xn,this);this.j.subscribe("control_pause",this.Wn,this);this.G=new u3(this,this.j);this.B=new Kv(this);this.D=O3(b);this.D.subscribe("statechange",this.oj,this);this.D.subscribe("internalvideodatachange",this.Kt,this);this.F=this.H=!1;this.N=d;this.I=!!e}z(N3,p3);f=N3.prototype;f.rk=!1;f.Jh=null;f.Ih=null;f.Hh=null;
f.df=function(){var a=this.j,b=O3(a);P3(a.o,b);this.G.o=y();this.Hh=this.j.La();this.D.subscribe("progresssync",this.uq,this);this.j.la.G?Wd(Hd("video-ad-status-bar")):(a=this.j.La(),this.Jh=Hd("video-ad-time-left",a),a=Hd("html5-ad-progress-list",a),b=Rd("div"),N(b,"ytp-ad-progress"),a.appendChild(b),this.Ih=b);nh(this.Hh,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.Yn,this);try{this.B.M(this.o,"adError",this.xF),this.B.M(this.o,"click",this.wF),this.B.M(this.o,"complete",this.dA),
this.B.M(this.o,"engagedview",this.xA),this.B.M(this.o,"pause",this.It),this.B.M(this.o,"start",this.Jt),this.B.M(this.o,"skip",this.yF),this.B.M(this.o,"youTubeChannelMetadata",this.WA),this.Yn(),this.I||this.o.start()}catch(c){Q3(this,c)}};
f.Kt=function(a,b,c){if("newdata"==a&&this.A!=c){a={video_id:c.videoId};b=new q3;b.isSkippable=this.N;b.skip=x(this.o.skip,this.o);b.skipShown=x(this.o.Sm,this.o);var d=this.getCurrentAd();d&&(b.clickThroughUrl=aV(d)||"",b.skipTime=XU(d,c.lengthSeconds)||0);b.videoId=c.videoId;b.videoId||(b.videoUrl=this.tl()||"");F3(this.j,-1,a,b)}this.A=c};f.oj=function(a){a=a.state;X(a,128)&&Q3(this,Error(a.j.message||"Video player error."))};
f.Jt=function(){this.rk=!0;this.F=!1;if(!this.H){this.H=!0;A3(this.G);L3(this.j,1);var a=this.j.W();this.j.la.G&&"3"==a.o&&(a=this.j.o.A,"3"==a.j.W().o&&(a.o.controls=!1))}F3(this.j,1);this.L("adPlay",this)};f.It=function(){this.rk&&(this.rk=!1,F3(this.j,2))};f.dA=function(){this.F||(B3(this.G),R3(this),this.F=this.H=!1)};
function R3(a){var b=new M3;b.A=a.F;b.o=y();a.A&&a.A.clientPlaybackNonce&&(b.j=a.A.clientPlaybackNonce);m2(O3(a.j));F3(a.j,0,b);L3(a.j,0);a.L("adEnd",a);b=a.j.W();a.j.la.G&&"3"==b.o&&(a=a.j.o.A,"3"==a.j.W().o&&(a.o.controls=!0))}f.xA=function(){var a=this.G;a.j.L("AD_LOGGING_EVENT",777,y3(a))};f.yF=function(){this.F=!0;C3(this.G);R3(this)};
f.WA=function(){var a=this.getCurrentAd();if(a){var b=a.O;if((a=a.J)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.j;c.channelTitle=a.o;c.channelVideoCount=a.videoCount;this.j.L("publish_external_event","onAdMetadataAvailable",c)}}};f.xF=function(a){var b={};try{b.error_code=a.A.getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}var d=this.G;x3(d);var e=y3(d);b&&qa(e,b);e.ad_error=32;v3(d,7,e);Q3(this,a.A)};function Q3(a,b){a.D.Zf();F3(a.j,0);a.L("adError",b)}
f.wF=function(){w3(this.G);this.o.pause();this.L("select")};f.uq=function(){var a=this.j.j.yh();this.j.la.G||(this.Jh.innerHTML=tv(a.duration-a.current),a=uv(a.current/a.duration),this.Ih.style.width=a+"%")};
f.P=function(){this.j.qa("control_toggle_play_pause",this.Lt,this);this.j.qa("control_play",this.Xn,this);this.j.qa("control_pause",this.Wn,this);this.j.qa("onResize",this.Yn,this);this.B.removeAll();this.D.subscribe("statechange",this.oj,this);this.D.qa("internalvideodatachange",this.Kt,this);this.D.qa("progresssync",this.uq,this);this.I||this.o.destroy();this.Jh&&(this.Jh.innerHTML="",this.Jh=null);this.Ih&&(Wd(this.Ih),this.Ih=null);this.Hh&&(ph(this.Hh,["ad-showing","ad-interrupting"]),this.Hh=
null);this.F=!1;var a=this.j;if(a.B){var b=a.o,a=a.B;S3(b);a!=b.o&&P3(b,b.o)}N3.K.P.call(this)};f.Di=function(){return this.D.ed()};f.sl=function(){return this.A&&this.A.j?this.A.j.mimeType:null};f.tl=function(){return this.A&&this.A.R?ws(this.A.R.j()):null};f.Lt=function(){this.rk?this.Wn():this.Xn()};f.Xn=function(){this.o.resume();this.Jt()};f.Wn=function(){this.o.pause();this.It()};f.Yn=function(){Tg($D(this.j.A),K3(this.j))};function T3(a,b){this.A=a;this.o=b}function U3(a,b,c){a.A.L("AD_LOGGING_EVENT",b,c)}function V3(a){var b={};I2(a.A.getCurrentAd(),b);a.C&&a.j&&(b.ot=a.j-a.C);var c;c=a.o.Sg()?2:a.o.W().J?1:0;b.ad_ps=c;b.at=a.A.C();return b};function W3(a,b,c,d){p3.call(this,b,a,1,c);this.D=new T3(this,b);this.B=new Kv(this);this.F=!!d}z(W3,p3);f=W3.prototype;f.Bd=null;f.pm=!1;
f.df=function(){if(!this.pm||!X3(this.j)){var a=this.j.La();N(a,"ad-showing");this.Bd=$D(this.j.A);a=this.o.getCurrentAd().getHeight();this.Bd.style.height=Kg(a,!0);N(this.Bd,"ad-overlay");this.B.M(this.Bd,"mouseup",this.BF);try{this.B.M(this.o,"userClose",this.WB);this.B.M(this.o,"click",this.AF);this.B.M(this.o,"adError",this.zF);Y3(this,"normal");this.F||this.o.start();var b=this.D;b.C=y();var c=V3(b);U3(b,3,c);this.j.subscribe("onResize",this.sk,this);this.j.subscribe("onStateChange",this.Mt,
this);this.L("adEnd",this)}catch(d){this.L("adError",d)}}};f.P=function(){this.B.removeAll();this.j.qa("onResize",this.sk,this);this.j.qa("onStateChange",this.Mt,this);var a=this.j.La();oh(a,"ad-showing");this.o&&(this.F||this.o.destroy(),this.o=null);this.Bd&&oh(this.Bd,"ad-overlay");this.Bd=null;this.pm=!1;W3.K.P.call(this)};f.WB=function(){this.Bd&&this.o&&this.o.getCurrentAd()&&(this.Bd.style.height=Kg(0,!0));this.pm=!0;var a=this.D;a.j=y();var b=V3(a);U3(a,6,b)};
f.AF=function(){this.j.pauseVideo();var a=this.D;a.j=y();var b=V3(a);if(a.B){var c=z3(a.o),d=a.B.y-c.top,d=Math.round(a.B.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}U3(a,100,b)};f.BF=function(a){this.D.B=a.target==a.currentTarget?null:new Qc(a.pageX,a.pageY)};f.zF=function(a){this.L("adError",a.A)};f.Mt=function(a){X(a.state,16)&&Y3(this,"normal")};function Y3(a,b){a.G!=b&&(a.G=b)}f.sk=function(){};function Z3(a,b,c,d){Q.call(this);this.O=a;this.o=b.j;this.G=b;this.J=b.getId();this.j=c;this.A=d;this.C=new L2(this.o,this.ef(),c,d);this.D=null;this.N=new zn(this);this.B=new zn(this)}z(Z3,Q);Z3.j="rm";Z3.o=10;Z3.D=200;Z3.B=200;Z3.C=190;Z3.A=100;f=Z3.prototype;f.Sn=null;
f.load=function(){var a;a=this.j;a=a.la.B?K3(a):a.o.A.wb();var b;this.j.la.j?b=!1:(b=0<(this.A&3)?Z3.C:Z3.B,b=a.width<Z3.D||a.height<b);if(b){b=this.C;var c=M2(b);c.ck_wh=a.width+"x"+a.height;$3(b.j,14,c);Q2();this.Me(Error("The player size is too small."))}else if(this.D=this.j.mg){a=this.C;a4(a.j,9,M2(a));a=new eW;(b=this.j.la.serverPrefetchedVast)&&0<(this.A&3)?(a.j=b,this.j.la.serverPrefetchedVast=void 0):a.adTagUrl=this.xf();b=K3(this.j);a.Ne=b.width;a.Sd=b.height;a.Vb=b.width;a.hc=Z3.A;a.So=
E_(this.j.W());a.B=this.j.W().experiments.experimentIds;if(b=a.So?J_(this.j.W()):-1)a.C=b;this.j.la.tagForChildDirected&&(a.Lg=!0);YD(this.j.W(),"937420")&&(a.oh=!0);b=Cr(this.j.o);a.Vc={"[CONTENT_V]":b.videoId,"[CPN]":b.clientPlaybackNonce,"[LACT]":b4(this)};E_(this.j.W())||(a.Vc["[LACT]"]="-1");this.D.M("adsManagerLoaded",this.zt,!1,this);this.D.M("adError",this.xt,!1,this);this.Cj(this.D,a)}};
f.vl=function(){var a=new wL,b=this.j.la,c=this.j.W();a.baseYouTubeUrl=c.B;a.contentId=Cr(this.j.o).videoId;a.Ol=YD(c,"927622");a.showContentThumbnail=b.showContentThumbnail;a.surveyCreativeData=b.surveyCreativeData;a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=b.G;a.youTubeAdNamespace=this.ef();b.R&&(a.po=!0,a.zw=!0,a.showContentThumbnail=!1,a.nn=!0,a.ls=!0,a.useShareButton=!1);return a};f.ef=function(){return this.O};function c4(a){var b=Z3.o;a.o=b;a.C.B=b}
function d4(a,b){a.Sn=b;a.C.A=b.C()}function e4(a,b){var c=u("yt.www.watch.ads.setAdId");c&&c(b);a.C.o=b}function f4(a){a=a.o;return 0==a||-1==a?a:1E3*a}function b4(a){var b=a.j;return{toString:function(){return null==b||b.ka()?b=null:J_(b.W()).toString()}}}
f.zt=function(a){if(a.B===this){lI("aml");try{var b=this.vl(),c=a.A}catch(d){this.Xd(d);return}this.B.M(c,"companionBackfill",x(this.qF,this,c));this.B.M(c,"loaded",x(this.pF,this,c));this.B.M(c,"adError",x(this.oF,this,c));this.B.M(c,"allAdsCompleted",v);this.B.M(c,"contentPauseRequested",v);this.B.M(c,"contentResumeRequested",v);c=F2(a,this.j.C,{},b);try{c.init("normal")}catch(e){c.destroy(),this.Xd(e)}}};
f.pF=function(a,b){this.B.removeAll();var c=b.getAd(),d=AU(c),e=this.C,g=M2(e);g.ad_man=d?"instream":"overlay";a4(e.j,12,g);e=a.getMediaUrl();switch(d?this.Ig(a,c,e):this.Rd(a,c)){case 0:g4(this.G,this.Sn,this.o);break;case 1:a.destroy();this.Me(Error("Unable to create a display state."));break;case 2:c=this.C;$3(c.j,21,M2(c));a.destroy();this.Me(Error("Fallback to next ad."));break;default:a.destroy()}};f.oF=function(a,b){this.B.removeAll();a.destroy();this.Xd(b.A)};
f.xt=function(a){var b=a.A;"adLoadError"==b.A&&a.B===this&&this.Xd(b)};f.qF=function(){P2()};f.Ig=function(a,b,c){e4(this,NU(b));var d;this.j.la.S?d=new N3(this.ef(),this.j,a,DU(b)):d=new D3(this.ef(),this.j,a,c,DU(b));d4(this,d);return 0};f.Rd=function(a,b){e4(this,NU(b));d4(this,new W3(this.ef(),this.j,a));return 0};f.Xd=function(a){if(a){var b=this.C,c=M2(b);a&&H2(a,c);$3(b.j,32,c);this.Me(a)}};f.Me=function(){h4(this.G)};
f.P=function(){this.D&&(this.D.Ia("adsManagerLoaded",this.zt,!1,this),this.D.Ia("adError",this.xt,!1,this));this.N.removeAll();this.B.removeAll();Z3.K.P.call(this)};f.Cj=function(a,b){try{n_(a,b,this),lI("ar")}catch(c){this.Xd(c)}};function i4(a){this.j=a};function j4(a){p3.call(this,a,2,3,null);this.B=this.D=0}z(j4,p3);j4.prototype.df=function(){var a=u("yt.www.watch.ads.loadAfc");a&&a();this.L("adEnd",this);this.D=Vf(x(this.F,this),1E3)};j4.prototype.P=function(){k4(this);j4.K.P.call(this)};function k4(a){a.D&&(Wf(a.D),a.B=0)}j4.prototype.F=function(){var a=u("yt.www.watch.ads.isAfcAdVisible");this.B++;var b={};b.at=this.C();10<=this.B||!a?(k4(this),this.L("AD_LOGGING_EVENT",2,b)):a()&&(k4(this),this.L("AD_LOGGING_EVENT",3,b))};function l4(a,b,c){Z3.call(this,2,a,b,c);this.F=new i4(this.j.la);O2()}z(l4,Z3);l4.prototype.vl=function(){var a=l4.K.vl.call(this);a.oo=0==this.J;a.dw=X3(this.j)?a.oo:!0;return a};l4.prototype.xf=function(){var a;a=this.F;var b=f4(this),c=4==this.A&&a.j.afvInvideoAdTag?a.j.afvInvideoAdTag:a.j.afvAdTag;if(c){ta(c,"http:")&&(c=c.substr(5));var d={videoad_start_delay:b};a.j.Y&&0<b&&(d.AK=a.j.D?"video":"standardvideo");a=yj(c,d)}else a="";return a};
l4.prototype.Rd=function(a,b){if(this.j.la.j)return 1;0==this.o&&(c4(this),a4(this.j,1));return l4.K.Rd.call(this,a,b)};l4.prototype.Me=function(a){var b=this.j.la;b.j?l4.K.Me.call(this,a):b.na||this.A&4?(d4(this,new j4(this.j)),g4(this.G,this.Sn,this.o)):l4.K.Me.call(this,a)};function m4(a,b){if(a){this.At=a;this.op=b;var c,d=this.At,e=d.indexOf(";sz=");c=rj(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{jw:d[0],FC:d[1],HC:c})this.yo=c.jw,this.vr=c.FC,this.Bt=c.HC}}f=m4.prototype;f.At="";f.yo="";f.op=!1;f.Im="";f.vr="";f.Bt=null;
f.Ei=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=Zb(this.Bt);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.op&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.Im||(this.Im=Math.floor(999999999*Math.random()).toString());
k.ord=this.Im;d&&d.length&&Wb(k,"sz");e=sj(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.yo,"pfadx",this.vr,";",e,"?"].join("")};function n4(a){this.j=a?a:""}n4.prototype.Ei=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.j),g=e.j,h=g.get("scp",""),c=(h?h+"&":"")+("pos="+c);g.set("scp",c);g.set("vpos",d);return e.toString()}return this.j};function o4(a,b,c){W3.call(this,1,a,b,c)}z(o4,W3);o4.prototype.sk=function(){};o4.prototype.C=function(){return"1_3"};function p4(a,b,c){Z3.call(this,1,a,b,c);a=this.j.la;this.S=a.Kf?new n4(a.adTag):new m4(a.adTag,a.ma)}z(p4,Z3);p4.prototype.xf=function(){return this.S.Ei(this.o,this.A)};
p4.prototype.Rd=function(a,b){e4(this,NU(b));var c=CU(b);if(J2(c,Z3.j))return 1==this.A||X3(this.j)||Q2(),a.sendImpressionUrls(),this.j.la.Mi?(d4(this,new j4(this.j)),0):2;if(J2(c,"blockAllAds"))return a.sendImpressionUrls(),d4(this,new o4(this.j,a)),0;if(J2(c,"hideMaster"))return d4(this,new o4(this.j,a)),0;if(this.j.la.j)return 1;d4(this,new W3(this.ef(),this.j,a));return 0};function q4(a,b,c,d){p4.call(this,a,b,c|d);this.I=c;this.H=d;this.F=null;O2()}z(q4,p4);var r4={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=q4.prototype;f.xf=function(){if(this.j.la.Kf){var a=new n4(this.j.la.dynamicAllocationAdTag);return a.Ei(this.o,this.I)}a=new m4(this.j.la.dynamicAllocationAdTag,this.j.la.ma);return a.Ei(this.o,this.I)};f.Cj=function(a,b){if(this.H){b.o=K2(this.H);var c=this.j.la.ba;c&&(b.A=c);b.rh=f4(this)}q4.K.Cj.call(this,a,b)};
f.Ig=function(a,b,c){s4(this,a);return 1!=this.F&&2!=this.F?1:q4.K.Ig.call(this,a,b,c)};f.Rd=function(a,b){s4(this,a);switch(this.F){case 1:return q4.K.Rd.call(this,a,b);case 2:var c;this.j.la.j?c=1:(0==this.o&&(c4(this),a4(this.j,1)),e4(this,NU(b)),d4(this,new W3(2,this.j,a)),c=0);return c;default:return 1}};f.ef=function(){return this.F||0};function s4(a,b){var c=b.getCurrentAd(),d=QU(c);d.unshift(GU(c));for(c=0;c<d.length;++c){var e=r4[d[c].toUpperCase()];if(e){a.F=e;return}}a.F=0};function t4(a,b){var c=b.la;this.F=c.Za;var d=0,c=c.ga.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);Z3.call(this,2,a,b,d)}z(t4,Z3);t4.o="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";t4.A="43";
t4.j=function(a){var b=new Mu;Gj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,Ue:function(){Nu(b,Error(a+" timed out"))},onError:function(c){Nu(b,Error("Problem loading "+a+" with status code "+c.status))},jb:function(a){Ru(b);Pu(b,!0,a)}});return b};t4.prototype.xf=function(){return""};
t4.prototype.Cj=function(a,b){var c=this.A;c&1||c&4||c&8?this.F?c&8?R2(this.F):("goo.gl"==wj(this.F)?(c=t4.j(t4.o+this.F),Tu(c,function(a){a=lg(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",t4.A);return t4.j(a.toString())},this)):c=t4.j(this.F),Tu(c,function(c){b.j=c.responseText;n_(a,b,this)},this),Uu(c,null,this.Xd,this)):this.Xd(Error("Invalid empty URL")):this.Xd(Error("Invalid request type: "+
c))};function u4(a,b,c,d){this.j=a;this.B=c;this.A=d;this.C=b;Vh||Wh?this.o="html5_ios":Xh?this.o="html5_android":ns()?this.o="html5_ps3":"leanback"==this.B.ja?(a=(Qb(window,"environment","brand")||"").toLowerCase(),this.o="roku"==a||"bskyb"==a?"roku":"html5_tv_leanback"):this.o=this.j.sa?"html5":"embedded"==this.B.ja?"html5_desktop_embed":"html5_desktop"};function v4(a,b){W3.call(this,4,a,b)}z(v4,W3);v4.prototype.sk=function(){};v4.prototype.C=function(){return"4_3"};function w4(a,b,c){Z3.call(this,4,a,b,c);this.F=new u4(this.j.la,Cr(this.j.o).lengthSeconds,this.j.W(),c)}z(w4,Z3);
w4.prototype.xf=function(){var a;var b=this.F;if(b.j.aa&&b.j.Aa){a={};var c="youtube_watch_"+b.o;a.nw="10613";a.asnw=b.j.aa;a.ssnw=b.j.aa;a.caid=b.j.Aa;a.vdur=b.C;a.csid=c;a.resp="vast2";c={};isNaN(b.j.Ba)||(c._fw_d_001=b.j.Ba);b.j.Fa&&(c._fw_d_002=b.j.Fa);b.j.ua&&(c["_fwu:10613:lang"]=b.j.ua);b.j.da&&(c._fw_dbp=b.j.da);b.j.Da&&(c._fw_distributorvideoassetid=b.j.Da);c._fw_yt_type=b.j.C?"short":"long";if(b.j.sa){var d="10613:10613_youtube_"+b.o.split("_")[0];a.prof="10613:10613_youtube_"+b.o;a.crtp=
"vast2s";a.flag="+emcr";var e={ptgt:"a",slid:"preroll"},g="";b.j.D&&!b.j.A?g=";linear-skippable":!b.j.D&&b.j.A&&(g=";video");e.slau="preroll"+g;e.w="480";e.h="360";e.tpos="0";e.tpcl="preroll";e.envp=d;e.cd="1440,900";a="//2975c.v.fwmrm.net/ad/g/1?"+sj(a,"&")+";"+sj(c,"&")+";"+sj(e,"&")}else a.prof="10613:10613_youtube_html5_2014",a.crtp="youtube",a.flag="+slcb+qtcb+amcb+exvt+emcr",d="",b.A&1&&(e={slid:"preroll",ptgt:"a",slau:"preroll",tpos:"0"},d=sj(e,"&")+";",e={slid:"page_display1",w:"300",h:"60",
ptgt:"s",slau:"display",flag:"+cmpn"},d+=sj(e,"&")+";"),b.A&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=sj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=sj(e,"&")+";"),b.A&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display"},d+=sj(e,"&")+";"),b=d.substr(0,d.length-1),a="//2975c.v.fwmrm.net/ad/g/1?"+sj(a,"&")+";"+sj(c,"&")+";"+b}else a="";return a};w4.prototype.Ig=function(a,b){return 0!=this.o?1:w4.K.Ig.call(this,a,b,null)};
w4.prototype.Rd=function(a,b){var c=CU(b);if(J2(c,Z3.j))return this.G.B=Yb(a),2;if(this.j.la.j)return 1;if(J2(c,"hideMaster")){if(a.D&&a.D.Ee()){var c=a.D.Ee(),d;d=a.getCurrentAd();if(fL()){var e=d.G;d.G=[];d=e}else d=[];c.impressionUrls=d}d4(this,new v4(this.j,a));return 0}return w4.K.Rd.call(this,a,b)};function x4(a,b,c){Z3.call(this,13,a,b,c)}z(x4,Z3);var y4=[{Qm:4,size:"480x70",Io:"300x250"},{Qm:1,size:"480x360",Io:"300x60"}];
x4.prototype.xf=function(){var a=new J(this.j.la.ab,!0),b=this.A,c=y4.filter(function(a){return(b&a.Qm)==a.Qm}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Io}).join(",");K(a,"ciu_szs",c);c=4==(this.A&4);1==(this.A&1)?(c||K(a,"vad_type","linear"),c="midroll",0==this.o?c="preroll":-1==this.o&&(c="postroll"),K(a,"vpos",c)):c&&K(a,"vad_type","nonlinear");return a.toString()};function z4(a,b,c){this.A=a;this.j=b;this.o=c||0}function A4(a,b,c){switch(a.A){case 1:return new l4(b,c,a.j);case 2:return new p4(b,c,a.j);case 3:return new q4(b,c,a.j,a.o);case 5:return new w4(b,c,a.j);case 4:return new t4(b,c);case 6:return new x4(b,c,a.j);default:return null}}function B4(a){return 0<((a.j|a.o)&3)};function C4(a,b,c,d,e){S.call(this);this.Ca=b;this.A=a;this.j=c;this.C=d;this.B=this.o=null;this.D=!!e;this.F=NaN}z(C4,S);f=C4.prototype;f.pn=!0;f.yb=!1;f.isVisible=!0;f.Rc="unloaded";f.sn=!1;function D4(a){return 0==a.j?E4(a)&&F4(a)?-2147483648:0:-1==a.j||-2==a.j?2147483647:1E3*a.j}function G4(a){return 0==a.j||-2==a.j?!1:hb(a.C,function(a){switch(a.A){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function E4(a){return"loaded"==a.Rc||"error"==a.Rc}
function F4(a){if(!E4(a))throw Error("Preroll status is undefined before ad load.");return 0==a.j&&a.yb}function h4(a){a.Rc="loading";0==a.j&&!gb(a.C,B4)&&bt(a.A);if(a.D)a.Rc="loaded",a.yb=!0,H4(a);else{var b=a.C.shift();if(b){0==a.j&&I4(a.A,"nl");b=A4(b,a,a.A);R(a,b);var c=u("ytplayer.playback_delay");null!=c?a.F=L(x(b.load,b),c):b.load()}else a4(a.A,2,J4(a,{})),K4(a,!1),a.Rc="error",H4(a)}}f.getId=function(){return this.Ca};
function L4(a){a.o&&(a.o.qa("adEnd",a.tq,a),a.o.qa("adError",a.wt,a),a.o.qa("AD_LOGGING_EVENT",a.Lq,a),a.o.qa("select",a.vt,a))}function g4(a,b,c){a.o=b;a.j=c;R(a,a.o);0==a.Ca&&(a.A.F.at=a.o.C());a.o instanceof D3||a.o instanceof N3?a.yb=!0:a.o instanceof j4?a.isVisible=!1:a.o instanceof v4?a.isVisible=!1:a.o instanceof o4&&(a.isVisible=!1);a.Rc="loaded";H4(a)}function H4(a){a.L("adBreakComplete",a)}
function M4(a){a.sn?a.o instanceof W3&&Y3(a.o,"normal"):(a.sn=!0,(a.o instanceof D3||a.o instanceof N3)&&I4(a.A,"bs"),a.o.subscribe("adEnd",a.tq,a),a.o.subscribe("adError",a.wt,a),a.o.subscribe("AD_LOGGING_EVENT",a.Lq,a),a.o.subscribe("select",a.vt,a),a.o.df(),K4(a,!0))}function K4(a,b){a.B&&(a.B.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.B.dispose(),a.B=null)}f.tq=function(){this.yb&&(L4(this),N4(this.A));H4(this)};
f.wt=function(a){if(a){var b={};H2(a,b);J4(this,b);$3(this.A,32,b)}L4(this);H4(this)};f.Lq=function(a,b){J4(this,b);a4(this.A,a,b)};f.vt=function(){this.pn=!1};function J4(a,b){b.sst=a.j;b.sidx=0;return b}f.P=function(){L4(this);this.o=null;null!=this.B&&(this.B.dispose(),this.B=null);M(this.F);C4.K.P.call(this)};function O4(a){this.iw=a}function P4(a){try{var b=WB(a).getElementsByTagName("AdBreak"),c=E(b,function(a){a=a.getAttribute("time");return Va(a)});return new O4(c)}catch(d){return new O4([0])}};function Q4(a){var b=0;if(a.N||a.J)a.N&&(b|=1),a.J&&(b|=2);var c=0;a.C&&(a.I&&(a.afvMergeEnabled&&b?b|=4:c=4),b||(b=c,c=0));a=new xe;a.set(3,b);a.set(4,c);return a}
function R4(a){var b=[];if(a.Ga)return b.push(new z4(4,0)),b;if(a.V){var c=0;if(a.A||a.D)c|=1;a.H&&(c|=4);a.U&&(c|=8);b.push(new z4(5,c))}a.qm&&(c=0,a.A&&(c|=1),a.H&&a.C&&(c|=4),b.push(new z4(6,c)));c=0;a.O&&(a.A&&(c|=1),a.D&&(c|=2),a.H&&a.C&&(c|=4),a.U&&a.C&&(c|=8));var d=Q4(a);a.ob&&c&&d.get(3)?b.push(new z4(3,c,d.get(3))):(c&&b.push(new z4(2,c)),d.get(3)&&b.push(new z4(1,d.get(3))));d.get(4)&&b.push(new z4(1,d.get(4)));return b};function S4(a){this.j=a}function T4(a){var b=[];try{var c=a.j.la,d;if(c.ro){var e;if(c.fb)e=P4(c.fb);else{var g;if(c.Z){var h=E(c.Z.split(","),Va);g=new O4(h)}else g=new O4([0]);e=g}d=e}else d=new O4([0]);for(var k=d.iw,c=0;c<k.length;c++){var l=new C4(a.j,c,k[c],R4(a.j.la));b.push(l)}}catch(p){}finally{return b}};function U4(a,b){this.F=a;this.R=this.F.isMobile;this.B="leanback"==this.F.ja;this.j=this.R||this.B;this.oa="embedded"==this.F.ja;this.G=!this.B&&!(Vh&&!a.O);this.S=a.D&&(!this.j||this.B)||this.R&&!(Vh&&!a.O);this.apply(b);if(this.D&&!this.S)throw"Skippable instreams were enabled without FullPlayerApiSupport";}var V4={pv:"m",Yu:"f"};f=U4.prototype;
f.apply=function(a){var b=G2(a.instream);this.Y=1==a.livestream;this.Hm=YD(this.F,"961403");var c=G2(a.trueview)&&(!this.Y||!this.Hm),d=G2(a.aftv);this.Z=a.ad_slots;this.fb=a.ad_breaks;this.adFlags=a.ad_flags||0;this.ba=a.cafe_experiment_id;this.adTag=a.ad_tag;this.ub=!!a.adtest;this.afvAdTag=a.afv_ad_tag;this.Ma=W4(this.afvAdTag);this.afvInvideoAdTag=a.afv_invideo_ad_tag;this.afvMergeEnabled=!!a.afv_merge_enabled;this.Ba=parseInt(a.ad_age,10);this.applyFadeOnMidrolls=!!a.apply_fade_on_midrolls;this.Ya=
a.cid;this.Da=a.docid||a.video_id||a.videoId;this.dynamicAllocationAdTag=a.dynamic_allocation_ad_tag;this.excludedAds=a.excluded_ads;this.fadeInDurationMilliseconds=parseInt(a.fade_in_duration_milliseconds,10)||0;this.fadeInStartMilliseconds=parseInt(a.fade_in_start_milliseconds,10)||0;this.fadeOutDurationMilliseconds=parseInt(a.fade_out_duration_milliseconds,10)||0;this.fadeOutStartMilliseconds=parseInt(a.fade_out_start_milliseconds,10)||0;this.ga=a.force_ad_type;this.Za=a.force_ad_url;this.Fa=Rb(V4,
function(b){return b==a.ad_gender});this.da=a.dbp;this.Mi=G2(a.afc_rm_fallback);this.ma=!!a.mpu;this.I=G2(a.afv)&&!this.j;this.J=d&&c;this.N=d&&b&&!G2(a.no_afv_instream);this.O=G2(a.dclk);this.Kf=G2(a.gpt_migration);this.Ga=G2(a.forced_ad)&&!this.j;this.V=1==parseInt(a.tpas_ad_type_id,10);this.Ob=!!a.fqsf;this.A=b;this.H=G2(a.invideo)&&!this.j;this.U=G2(a.mpu)&&!this.j;this.sa=G(this.Ma,"yt_mabv");this.ta=G2(a.shortform);this.C=G2(a.sffb);this.qm=G2(a.xfp);this.ab=a.xfp_tag;this.Pp=YD(this.F,"961401");
b=WD(this.F,this.B);this.ro=(!this.j||b)&&!this.V;this.D=c;this.ua=a.ad_language_iso639_2;c=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(c)&&(c=2E3);this.maxDynamicAllocationAdTagLength=c;this.o=parseInt(a.midroll_freqcap,10);isNaN(this.o)&&(this.o=-1);this.midrollPrefetchSize=parseInt(a.midroll_prefetch_size,10)||0;"boolean"==typeof a.show_content_thumbnail&&(this.showContentThumbnail=a.show_content_thumbnail);this.tagForChildDirected=G2(a.tag_for_child_directed);this.serverPrefetchedVast=
a.server_prefetched_vast;this.surveyCreativeData=a.surveyCreativeData;this.na=d&&this.C&&!this.I;this.$a=this.I||this.na;this.bb=parseInt(a.ad_device,10);this.Aa=a.tpas_video_id;this.aa=a.tpas_partner_id;this.vmap=a.vmap;this.ob=X4(this);this.Nb=this.F.Nb};
function X4(a){if(A(B(a.dynamicAllocationAdTag)))return!1;if(YD(a.F,"942306")&&null!=a.F.ja&&!a.oa)return!0;var b=(a.A||a.D)&&a.O;a.C&&a.O&&(b=b||a.H||a.U);if(!b)return!1;b=a.J||a.N;if(!(b||a.C&&a.I))return!1;if(a.serverPrefetchedVast)return!a.Kf;var c=a.dynamicAllocationAdTag.length+330+(a.Kf?25:102);window.document.referrer&&(c+=wa("ref="+wa(window.document.referrer)).length);b||(c+=41);return c<=a.maxDynamicAllocationAdTagLength}
function W4(a){if(A(B(a)))return[];a=tf(new J(a),"channel");return null!=a?a.split("+"):[]}f.applyFadeOnMidrolls=!1;f.ro=!0;f.Pp=!1;f.Hm=!1;f.Mi=!1;f.Kf=!1;f.qm=!1;f.showContentThumbnail=!0;function Y4(a){Q.call(this);this.j=a;this.o=0;this.C={};a=a.la;this.D=a.fadeInDurationMilliseconds;this.F=a.fadeInStartMilliseconds;this.A=a.fadeOutDurationMilliseconds;this.B=a.fadeOutStartMilliseconds;this.$r()}z(Y4,Q);f=Y4.prototype;f.$r=function(){this.j.subscribe("beginseeking",this.ni,this)};f.Tr=function(a,b){return a.yb&&0<a.j?b+this.B+this.A:b};f.Sr=function(a,b){return a.yb&&-1!=a.j&&2147483646!=b&&2147483647!=b?b+this.B+this.A:b};
f.no=function(a){if(a.yb&&0<a.j&&!(0>=this.A)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=D4(a)+this.B,b=new Ms(c,c+this.A-1,b);this.C[a.getId()]=b;Zs(this.j,[b])}};function Z4(a,b){a.C[b]&&($s(a.j,[a.C[b]]),delete a.C[b])}f.dr=function(a){a.yb&&0<a.j&&(Z4(this,a.getId()),this.ni())};f.ni=function(){this.o&&(M(this.o),this.o=0);var a=J3(this.j,!1);a.volume=Tq(this.j.o)/100;Dg(a,"transition","");Dg(a,"opacity","1")};
f.Ir=function(a){var b=D4(a)+this.B+this.A,b=50>=1E3*this.j.j.getCurrentTime()-b;a.yb&&0<a.j&&b&&(a=.001*(D4(a)+this.F),this.j.L("command_seek",a),0>=this.D||(a=J3(this.j,!1),Dg(a,"opacity","0"),a.volume=0,L(x(this.Gw,this),0)))};f.Gw=function(){var a=J3(this.j,!1);Dg(a,"transition","opacity "+String(this.D)+"ms linear");Dg(a,"opacity","1");$4(this,a,this.D,1)};function $4(a,b,c,d){0>=c||(a.o&&M(a.o),c=y()+c,a.o=0==d?qv(x(a.Uo,a,b,c,100),0):qv(x(a.To,a,b,c,100),0))}
f.Uo=function(a,b,c){if(this.o){var d=Math.max(1,b-y()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.o=0<d?qv(x(this.Uo,this,a,b,c),c):0}};f.To=function(a,b,c){if(this.o){var d=Math.max(1,b-y()),e=Tq(this.j.o)/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.o=d<e?qv(x(this.To,this,a,b,c),c):0}};f.P=function(){this.ni();this.j.qa("beginseeking",this.ni,this)};function a5(a){Y4.call(this,a)}z(a5,Y4);f=a5.prototype;f.$r=v;f.Tr=function(a,b){return b};f.Sr=function(a,b){return b};f.no=v;f.dr=v;f.Ir=v;f.P=v;function b5(a,b){return b?new Y4(a):new a5(a)};function c5(a,b,c){Q.call(this);this.j=a;this.D=b;this.A=c;this.C=this.o=-1;this.A&&0<this.j.la.o&&this.j.subscribe("endseeking",this.B,this)}z(c5,Q);function d5(a,b){e5(a);0<b&&(a.C=L(x(a.B,a),1E3*b))}function e5(a){-1!=a.C&&(M(a.C),a.C=-1)}
c5.prototype.B=function(){var a=this.j.la.o;if(this.A&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Hb(this.D.A,function(a){if(a.isVisible&&!(0>=f5(this,a))){var g;g=a.getId();g=this.D.C[g];if(f5(this,a)>b){var l=!g5(this,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=f5(this,a)-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))}},this);0<c.length&&h5(this.j,c);if(d){var g=0;0<this.o&&(g=y()/1E3-this.o);d5(this,a-g-e+2)}else e5(this)}};
function g5(a,b){if(!a.A||!(0<b.j)&&-1!=b.j)return!1;var c=a.j.la.o;if(0>=c||0>=a.o)return!1;var d=y()/1E3,e=f5(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.o<=c}function f5(a,b){return-1==b.j?a.j.j.getVideoData().lengthSeconds:b.j}c5.prototype.P=function(){e5(this)};function i5(a,b){Q.call(this);this.o=b;this.D=[];this.A={};this.C={};this.j=a;var c=a.la,d=!c.Y&&gb(this.o,function(a){return 0<a.j||-1==a.j});this.G=new c5(this.j,this,d);c=c.applyFadeOnMidrolls&&(c.A||c.D)&&gb(this.o,function(a){return 0<a.j});this.B=b5(this.j,c);this.O=gb(this.o,function(a){return 0==a.j})}z(i5,Q);f=i5.prototype;f.Db=null;function j5(a){a.D.length||(a.D=eb(a.o,function(a){return"unloaded"==a.Rc}),0==a.D.length?bt(a.j):(a.O||bt(a.j),k5(a)))}
function k5(a){if(a.D.length){var b=a.D.shift();b.subscribe("adBreakComplete",a.Rf,a);h4(b)}}f.Rf=function(a){a.qa("adBreakComplete",this.Rf,this);L(x(this.yz,this,a),0)};
f.yz=function(a){var b=cb(this.o,a),c=this.o[b+1],b=this.o[b-1],d=2147483646;-2==a.j||-1==a.j?d=2147483647:c&&2147483647!=c.j&&(d=D4(c)-1);0==a.Ca&&(I4(this.j,"bl"),F4(a)||I4(this.j,"fb"));if(c="loaded"!=a.Rc||0==a.Ca&&F4(a)&&c&&1E3*this.j.j.getCurrentTime()>D4(c)){if(b&&E4(b)){var e=D4(b);e>d&&(d=e);l5(this,b);m5(this,b,d)}}else this.A[a.getId()]=a,m5(this,a,d);bt(this.j);c&&this.De(a);Lb(this.A)==this.o.length&&this.G.B();k5(this)};
function m5(a,b,c){var d=D4(b);if(!isNaN(d)){var e={};e.priority=-2!=b.j?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.B.Tr(b,d);c=a.B.Sr(b,c);c=new Ms(d,c,e);a.C[b.getId()]=c;Zs(a.j,[c]);a.B.no(b)}}function l5(a,b){var c=b.getId();a.C[c]&&(Z4(a.B,c),$s(a.j,[a.C[c]]),delete a.C[c])}f.De=function(a){a.qa("adBreakComplete",this.Rf,this);this.Db&&a==this.Db&&(this.Db=null);l5(this,a);ob(this.o,a);delete this.A[a.getId()];yi(a)};f.qk=function(a){return this.A[a]};
f.Am=function(a){if(a.yb){if(-1!=a.j&&a.pn){var b=this.j;n5(b);lt(b);this.B.Ir(a)}else F4(a)&&!a.pn?(b=this.j,n5(b),lt(b)):(n5(this.j),mt(this.j,!1));this.De(a);a=this.G;a.A&&0<a.j.la.o&&(a.o=y()/1E3,a.B())}else a.isVisible||this.De(a)};f.P=function(){yi(this.B);yi(this.G);D(this.o,this.De,this);i5.K.P.call(this)};function o5(a,b,c){i5.call(this,a,b);this.I=[];this.J=[];this.F=[];this.S=c;this.H=0;this.N=a.la.o;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],G4(c)){var d=new C4(c.A,c.Ca,c.j,c.C,!0);b[a]=d;this.I.push(c)}this.O||this.Sf()}z(o5,i5);f=o5.prototype;
f.qk=function(a){a=o5.K.qk.call(this,a);if(!a)return null;if(!a.D)return a;var b;b=null;if(this.F.length){var c=b=this.F.shift();c.j=a.j;c.Ca=a.getId()}b&&"loaded"==b.Rc?(a.qa("adBreakComplete",this.Rf,this),this.A[a.getId()]=b,this.o[this.o.indexOf(a)]=b,yi(a)):(this.Sf(),b&&(yi(b),b=null),this.De(a));b&&!b.yb&&this.Sf();return b};f.Rf=function(a){0!=a.j||"loaded"==a.Rc&&a.yb||this.Sf();o5.K.Rf.call(this,a)};
f.Am=function(a){a.yb&&10<this.N?(p5(this),this.H=L(x(this.Sf,this),1E3*(this.N-10))):this.Sf();o5.K.Am.call(this,a)};f.Sf=function(){for(p5(this);this.I.length&&this.J.length+this.F.length<this.S;){var a=this.I.shift();a.subscribe("adBreakComplete",this.sq,this);this.J.push(a);h4(a)}};f.sq=function(a){a.qa("adBreakComplete",this.sq,this);ob(this.J,a);this.F.push(a)};f.P=function(){p5(this);D(this.J,yi);D(this.F,yi);D(this.I,yi);o5.K.P.call(this)};function p5(a){a.H&&M(a.H);a.H=0};function q5(a,b){i5.call(this,a,b);this.J=a;this.F=[];this.R=1}z(q5,i5);q5.prototype.getVideoData=function(){return null};q5.prototype.N=function(a){this.F.push(a);a.qa("adBreakComplete",this.N,this)};q5.prototype.H=function(){if(null!=this.Db&&0<this.F.length){var a=this.F.shift();delete this.A[a.j];var b=Math.floor((new Date).getTime()/1E3)-this.S;this.S=null;a.qa("adBreakComplete",this.H,this);this.De(a);this.Db=null}a=this.J;n5(a);lt(a);isFinite(b)&&j2(this.I,this.I.getCurrentTime()+b)};function r5(a,b){this.G=a;this.ca=b;this.F=y();this.j=a.la;this.B={};this.D=new r3(a);var c=[];this.j.V&&this.j.A&&c.push("4_2");this.j.qm&&(this.j.A&&c.push("13_2"),this.j.H&&c.push("13_1"));this.j.O&&(this.j.A&&c.push("1_2"),this.j.D&&c.push("1_2_1"),this.j.H&&c.push("1_1"),this.j.U&&c.push("1_3"));this.j.J&&c.push("2_2_1");this.j.N&&c.push("2_2");this.j.I&&c.push("2_1");(this.j.$a||this.j.Mi)&&c.push("2_3");this.A=c.join(",");this.o="";this.B.allowed=this.A;(c=this.j.excludedAds)&&(this.B.ex_ads=
c)}r5.prototype.C=0;function s5(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;D(a.split(":"),function(a){b=60*b+Math.abs(parseFloat(a))});return 1E3*b};function t5(a,b,c){Q.call(this);this.j=a;this.A=b;this.F=c;this.B=this.D=-1;this.o=u5(this.A.Oe());a=this.A.Oe();a.length&&(a=a[a.length-1],-1==a&&Zs(this.j,[this.o[a]]));0<this.j.la.o&&this.j.subscribe("endseeking",this.C,this)}z(t5,Q);function v5(a,b){w5(a);0<b&&(a.B=L(x(a.C,a),1E3*b))}function w5(a){-1!=a.B&&(M(a.B),a.B=-1)}function x5(a){a.o||(a.o=u5(a.A.Oe()));h5(a.j,Ob(a.o))}
function u5(a){if(!a.length)return{};for(var b={},c=0;c<a.length-1;c++){var d=a[c],e;e=a[c+1];e=-1==e?2147483647:1E3*e;b[d]=new Ms(-1==d?2147483647:1E3*d,2147483647==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new Ms(-1==d?2147483647:1E3*d,2147483647,{id:String(d),visible:!0});return b}
t5.prototype.C=function(){var a=this.j.la.o;if(!(0>=a)&&this.o){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;D(this.A.Oe(),function(a){var g=this.o[a];if(g){var l=this.A.I.get(a);l&&l.fd>b?(a=!a_(this.F,l),a!=g.visible&&(g.visible=a,c.push(g)),a||(g=l.fd-b,g<e&&(e=g,d=l))):!l||l.tb()?($s(this.j,[g]),delete this.o[a]):!g.visible&&l&&(g.visible=!0,c.push(g))}},this);0<c.length&&h5(this.j,c);if(d){var g=0;0<this.D&&(g=y()/1E3-this.D);v5(this,a-g-e+2)}else w5(this)}};
t5.prototype.P=function(){t5.K.P.call(this);w5(this)};function y5(a){Q.call(this);this.j=a;this.B=null;this.D=new zn(this);this.A=new zn(this)}z(y5,Q);f=y5.prototype;f.Va=null;f.ri=null;f.Cb=null;f.Jb=null;f.tk=null;function z5(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);D(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,g;"end"==b?(e="post",g=-1):(e="mid",g=s5(b).toString());var h={"[INDEX]":c.toString(),"[POSITION]":e,"[START]":g};a.innerHTML=a.innerHTML.replace(/\[[A-Z_]+\]/g,function(a){return h[a]||a})});return a}
function A5(a){var b=WB(a),c=b.childNodes[0];if(!c)return a;var d=F(c.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(d){a=F(d.childNodes,function(a){return"Extensions"==a.localName});var e=F(a?a.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")});a=a.removeChild(e);var g=d,h=1;D(a?a.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=z5(d,a,h);h++;c.insertBefore(a,g.nextSibling);g=a});c.removeChild(d);return YB(b)}return a}
f.load=function(a){if(this.B=this.j.mg){var b=new eW;b.j=A5(a);a=K3(this.j);b.Ne=a.width;b.Sd=a.height;b.Vb=a.width;b.hc=100;b.B=this.j.W().experiments.experimentIds;b.Qi=this.j.C.B;if(a=J_(this.j.W()))b.C=a;this.j.la.tagForChildDirected&&(b.Lg=!0);YD(this.j.W(),"937420")&&(b.oh=!0);a=Q4(this.j.la);b.o=K2(a.get(3));if(a=this.j.la.ba)b.A=a;a=Cr(this.j.o);var c=this.j;b.Vc={"[CONTENT_V]":a.videoId,"[CPN]":a.clientPlaybackNonce,"[LACT]":{toString:function(){return null==c||c.ka()?c=null:J_(c.W()).toString()}}};
this.B.M("adsManagerLoaded",this.Ot,!1,this);this.B.M("adError",this.Nt,!1,this);try{n_(this.B,b,this)}catch(d){}}};function B5(a){var b=new wL;b.baseYouTubeUrl=a.j.W().B;b.contentId=Cr(a.j.o).videoId;b.useShareButton=!0;b.useStyledNonLinearAds=!0;b.useVideoAdUi=a.j.la.G;b.showContentThumbnail=a.j.la.showContentThumbnail;b.Aw=!0;b.Km=10;b.vo=!1;return b}
f.Ot=function(a){if(a.B===this){var b={};Object.defineProperty(b,"currentTime",{get:x(function(){return this.j.j.getCurrentTime()},this),enumerable:!0});Object.defineProperty(b,"duration",{get:x(function(){return this.j.j.getVideoData().lengthSeconds},this),enumerable:!0});try{var c=B5(this);this.Va=F2(a,this.j.C,b,c)}catch(d){return}if(this.tk=this.Va.Cp(b,this.j.la.o)){this.ri=new t5(this.j,this.Va,this.tk);x5(this.ri);G(this.Va.Oe(),0)||C5(this);this.A.M(this.Va,"companionBackfill",x(this.EF,this));
this.A.M(this.Va,"loaded",x(this.DF,this));this.A.M(this.Va,"adError",x(this.CF,this));this.A.M(this.Va,"start",x(this.Dz,this));this.A.M(this.Va,"complete",x(this.Az,this));this.A.M(this.Va,"contentPauseRequested",x(this.FF,this));this.A.M(this.Va,"contentResumeRequested",x(this.GF,this));this.A.M(this.Va,"allAdsCompleted",v);try{this.Va.init("normal"),this.Va.start()}catch(e){this.Va.destroy(),this.o=null}}}};
f.FF=function(a){this.Cb&&this.Cb.dispose();(this.Jb=a.getAd())&&AU(this.Jb)&&(a=D5(this.Jb),this.j.la.S?this.Cb=new N3(a,this.j,this.Va,DU(this.Jb),!0):this.Cb=new D3(a,this.j,this.Va,this.Va.getMediaUrl(),DU(this.Jb),!0),E5(this.j),this.Cb.df())};
function F5(a,b){var c=CU(b);if(J2(c,Z3.j)&&a.j.la.Mi)return a.Cb=new j4(a.j),a.Cb.df(),!1;if(J2(c,"blockAllAds"))return a.Va.sendImpressionUrls(),a.Cb=new o4(a.j,a.Va,!0),!1;if(J2(c,"hideMaster"))return a.Cb=new o4(a.j,a.Va,!0),!1;a.Cb=new W3(D5(b),a.j,a.Va,!0);a.Cb.df();return!0}
f.GF=function(a){this.Cb&&this.Cb.dispose();C5(this);if(this.j.j.getCurrentTime()<this.j.j.getVideoData().lengthSeconds){var b=this.j;n5(b);lt(b)}a=a.getAd();b=!0;if(a&&a!==this.Jb&&!AU(a)){b=this.Va;if(null!=b.j&&b.j.H&&10>this.j.j.getCurrentTime())return;b=F5(this,a)}this.Jb&&AU(this.Jb)&&N4(this.j);if(this.Jb&&AU(this.Jb)||a&&a!==this.Jb&&!AU(a)&&b)b=this.tk,0<b.j&&(b.o=y()/1E3),b=this.ri,0<b.j.la.o&&(b.D=y()/1E3,b.C());x5(this.ri);this.Jb=a};
f.Dz=function(a){if((a=a.getAd())&&this.Cb){var b=this.Cb;b.type=D5(a)+"_"+b.J}};f.Az=function(a){AU(a.getAd())||this.Jb!==a.getAd()||(this.Cb&&this.Cb.dispose(),this.Jb=null)};f.DF=function(a){null!=a.getAd()&&(a.getAd().C.A||AU(a.getAd())||C5(this))};f.CF=function(){};f.Nt=function(){};f.EF=function(){O2();P2()};
f.P=function(){this.B&&(this.B.Ia("adsManagerLoaded",this.Ot,!1,this),this.B.Ia("adError",this.Nt,!1,this));this.D.removeAll();this.A.removeAll();this.C=!1;this.Va&&(this.Va.destroy(),this.Va=null);y5.K.P.call(this)};function D5(a){switch(GU(a).toUpperCase()){case "ADSENSE":return 2;case "DOUBLECLICK":return 1;case "FREEWHEEL":return 4;case "XFP":return 13;default:return 0}}function C5(a){a.C||(bt(a.j),a.C=!0)};function G5(a){p_.call(this,a);gL.j=!0;gL.B=!1;gL.D=!0;this.C=null;this.G={};this.F={at:"0"};this.A=new ZD(this.j);Wr(this.j,this.A.Q());this.H=this.B=null;this.D=-1}z(G5,p_);f=G5.prototype;f.xa="ad";f.Bc="ad";f.ye=null;f.cb=null;f.la=null;f.im=!1;f.Ml=!1;f.mg=null;f.eg=null;G5.Ha=function(a){return!!a.yc.getVideoData().adModule};f=G5.prototype;f.Ha=function(){return G5.Ha(this.o)};
f.Na=function(){G5.K.Na.call(this);I4(this,"i");this.la=new U4(this.W(),this.j.getVideoData().B||{});this.ye=new r5(this,this.j);this.im=!1;if(this.mg)this.mg.j.A.D=iR();else{var a=this.la.G?void 0:cE(this.A);if(this.la.S){var b=new o_(this.o,2),c=$D(this.A);b.j||(b.j=Yb(b.Uf),b.j.addEventListener=x(b.Ew,b),b.j.removeEventListener=x(b.Fw,b));this.C=new XQ(c,void 0,a,b.j)}else{b=J3(this,!1);if(!b)throw"initAdsLoader_: getVideoElement returned a null element";this.C=new XQ($D(this.A),b,a,void 0)}a=
this.C;b=a.o;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=0,b.style.top=0);null!=a.F&&(a=a.F,a.o.width="100%",a.o.height="100%");this.mg=new m_(this.C)}a=T4(new S4(this));if(b=this.la.vmap)b=T4(new S4(this)),(b=1==b.length&&0==b[0].j)||(b=this.W(),b=YD(b,"924643")),b=!this.la.j&&!this.la.Ga&&!this.la.Kf&&b&&!this.la.oa;b?(this.eg=new y5(this),this.eg.load(this.la.vmap)):(I4(this,"bd"),b=this.la,c=b.midrollPrefetchSize,this.cb=b.Y&&(b.Pp||b.Hm)?new q5(this,a):0<c?new o5(this,a,c):new i5(this,
a),j5(this.cb));a={};a.allowed=this.ye.A;ft(this,{},a)};f.destroy=function(){this.Ml&&n5(this);if(this.B){var a=this.o,b=this.B;S3(a);b!=a.o&&P3(a,a.o)}Ai(this.cb,this.B,this.eg);this.ye=this.eg=this.B=this.cb=null;aE(this.A);N2=!1;this.se&&G5.K.destroy.call(this)};f.W=function(){return this.o.W()};f.Sg=function(){return this.j.Sg()||this.la.B};
function a4(a,b,c){a=a.ye;c=c||{};var d=(y()-a.F)/1E3;c.art=d;d=a.G.W();d.S&&(c.feature=d.Aa);c.ad_flags=a.j.adFlags;(d=a.j.Ya)&&(c.cid=d);c.mt=a.ca.getCurrentTime();(d=t_())&&(c.lact=d);(d=a.ca.wh())&&(c.len=d);a.j.Ob&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.o=c.at;b=a.D;i:{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 i}a=c&&c.ad_event?t3(c.ad_event):0;a=8==a||0!=a?!0:!1}if(a){var e;c.at&&(e=c.at);var g;c.sst&&(g=c.sst);"2_1"==
e&&10==g&&(c.sst=0);e={};e.device=b.j.la.bb;e.ns=1;e.sdkv="h.3.0";e.ver="2.0";for(var h in c){g=e;a=h;var d=c[h],k=c;switch(a){case "at":g.format=d;k.survey?g.format+="_3":k.skip&&(g.format+="_1");break;case "sst":0==d?g.break_type=1:-1==d||-2==D2?g.break_type=3:(g.break_type=2,g.m_pos=d);break;case "trsp":g.slot_pos=d;break;case "ad_id":case "ad_v":case "ad_cpn":case "ad_sys":g[a]=d;break;case "ad_len":g[a]=Math.round(1E3*d);break;case "ad_error":g.error_code=s3(d);break;case "error_code":g.ima_error=
d;case "error_message":g.error_msg=d;break;case "ad_event":g.event=t3(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(g.i_x=a[0],g.i_y=a[1])}}g=O3(b.j);h=Cr(b.j.o);e.cpn=h.clientPlaybackNonce;e.content_v=h.videoId;c.at&&c.at.match(/\d+_2.*/g)?(c=b.j.cb,e.mt=null!=c&&null!=c.Db?1E3*c.Db.j:0):e.mt=Math.round(1E3*g.getCurrentTime());e.ei=h.H;e.lact=J_(b.j.W());c=z3(b.j);e.p_w=c.width;e.p_h=c.height;e.rt=(new Date).getTime();h=Ee(e);if("undefined"==typeof h)throw Error("Keys are undefined");c=new gf(null,
0,void 0);e=De(e);for(g=0;g<h.length;g++)a=h[g],d=e[g],ea(d)?sf(c,a,d):c.add(a,d);b=b.j.W().B+"api/stats/ads";b=new J(b);ef(b,c);jg(b.toString())}}function $3(a,b,c){c=c||{};c.ad_error=b;a4(a,7,c)}f.Bh=function(){var a;if(this.ye){a=this.ye;var b={allowed:a.A};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.o&&(b.at=a.o);a=b}else a=G5.K.Bh.call(this);return a};function N4(a){if(a.la.ta&&!a.im){var b=a.W().B;jg(b+"mac_204?action_fcts=1");a.im=!0}}f.La=function(){return this.j.La()};
function H5(a){return a.cb instanceof q5?a.cb:null}function J3(a,b){var c;if(b){c=a.A;var d=dE(c);c.ca.W().D||be(d)||$D(c).appendChild(d);c=d}else c=a.A,c=c.ca.W().D?c.ca.T.A.o:dE(c);return c}function O3(a){if(!a.B){var b=Yb(a.W().C);b.autoplay="1";b=new A_(b);b.ja="adunit";var c=J3(a,!1);b.Bb=c;a.B=new S1(b,2,new q_(b,""),a.o.A)}return a.B}f.getVideoData=function(){return this.H};function z3(a){return a.la.B?(a=K3(a),new ug(0,0,a.width,a.height)):Yg(a.La())}function K3(a){return a.o.A.gp()}
function E5(a){a.Ml=!0;a.L("command_redirect_controls",a,["play_pause"],void 0);it(a,["seek"]);a.W().N&&it(a,["audio"]);a.eg||a.pauseVideo()}function n5(a){aE(a.A);a.Ml=!1;kt(a);jt(a,["seek"]);a.W().N&&jt(a,["audio"])}f.getAdState=function(){return this.D};function L3(a,b){switch(b){case 1:a.D=1;a.L("publish_external_event","onAdStart");break;case 0:a.D=0,a.L("publish_external_event","onAdEnd")}}
function F3(a,b,c,d){d&&a.L("publish_external_event","onAdInfoChange",d);a.L("publish_external_event","onAdStateChange",b,J3(a,!1),c)}
f.Ic=function(a){G5.K.Ic.call(this,a);var b=parseInt(a.getId(),10);if(this.cb&&!isNaN(b))if("ytp-ad-fadeout"==a.style){var c=this.cb,d=c.qk(b);if(d&&!g5(c.G,d)&&(c=c.B,d.yb)){var e=J3(c.j,!1),d=Math.max(0,D4(d)+c.B+c.A-1E3*c.j.j.getCurrentTime());Dg(e,"transition","opacity "+String(d)+"ms linear");Dg(e,"opacity","0");$4(c,e,d,0)}}else if(d=this.cb,n(b)&&(c=d.qk(b)))d.Db==c&&!c.yb&&c.isVisible?M4(c):(d.Db&&d.De(d.Db),g5(d.G,c)?(d.Db=null,c=d.C[c.getId()],c.visible||(c.visible=!0,h5(d.j,[c]))):(d.Db=
c,c.subscribe("adBreakComplete",d.Am,d),c.yb&&E5(d.j),d.B.dr(c),M4(c)));!isNaN(b)&&0>b&&this.eg&&(b=this.mg.j,d=new WR("contentComplete"),b.X(d),d.B&&(b.A.clear(),null!=b.o&&(d=b.o.Ee(),null!=d&&yR(d,b.A.j))));"livead"===a.getId()&&null!=H5(this)&&(b=H5(this),a=Math.floor(a.start/1E3),Math.round(a),n(b.A[a])||(d=b.R++,d=new C4(b.J,d,a,R4(b.J.la),!1),b.A[a]=d,d.subscribe("adBreakComplete",b.N,b),h4(d)))};
f.Zc=function(a){G5.K.Zc.call(this,a);var b=parseInt(a.getId(),10),c=1E3*this.j.getCurrentTime();this.cb&&!isNaN(b)&&c>a.start&&(2147483647==a.end||2147483646==a.end)&&(c=this.cb,(b=c.A[b])&&c.Db==b&&!b.yb&&b.isVisible&&b.sn&&b.o instanceof W3&&Y3(b.o,"fullscreen"));"livead"===a.getId()&&null!=H5(this)&&1E3*this.j.getCurrentTime()>=a.start&&($s(this,[a]),a=H5(this),null==a.Db&&0<a.F.length?(b=a.F[0],b.isVisible?(a.S=Math.ceil(y()/1E3),b.subscribe("adBreakComplete",a.H,a),a.Db=b,M4(b)):a.H()):a.H())};
function I4(a,b){var c=b;"nl"==b&&(c=a.ye,c.C++,c=c.C.toString());a.G[c]=y();"bs"!=c&&"fb"!=c||ft(a,a.G,a.F)}function h5(a,b){a.L("command_update_cuerange_markers",b,a.j.getPlayerType())}function X3(a){return Boolean(a.la.C&&a.cb&&1<a.cb.o.length)}f.Yd=function(a){this.L(a)};f.mA=function(a){var b=H5(this);if(null!=b&&null!=b.I){var c=H5(this).I.getCurrentTime();D(a,function(a){a.ce-10>c&&(a=new Ms(1E3*Math.floor(c+Math.random()*(a.ce-10-c)),1E3*a.ce,{id:"livead",priority:2}),Zs(this,[a]))},this)}};
f.jg=function(a){switch(a){case "addata":var b=this.la;return{adTag:b.adTag,adTest:b.ub,forceAdType:b.ga,isAfvSkippableInstreamEnabled:b.J,isAfvStandardInstreamEnabled:b.N,isBlazer:b.R,isDoubleClickEnabled:b.O,isForcedAd:b.Ga,isFreeWheelEnabled:b.V,isHouseBrandPlayer:b.Nb,isLeanback:b.B,isShortform:b.ta,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.cb instanceof o5?this.cb:null,null!=b?b.N:0;case "breakscount":return this.cb?
this.cb.o.length:0;case "displaystate":return b=null,this.cb&&this.cb.Db&&(b=this.cb.Db.o),{adFormat:b instanceof p3?b.J:!1,adSkipped:b instanceof N3?b.F:!1,hasVideoStarted:b instanceof N3?b.H:!1,skippable:b instanceof N3?b.N:!1};case "getContentVideoData":return b=Cr(this.o),{adModule:b.adModule,isGetVideoThirdPartyOnly:b.Yi,partnerTrackingToken:b.J,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.cb){a=this.cb.A;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].yb});
return c}return 0}};f.kg=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};function I5(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>';
Y.call(this,["div",c]);d&&(this.element.innerHTML=d)}z(I5,Y);function J5(a){this.o=a||30;gE.call(this,this.o,this.o);this.B=this.width/2;this.A=this.height/2;this.G=0;this.context.translate(this.B,this.A);this.$()}z(J5,gE);J5.prototype.va=function(){J5.K.va.call(this);var a=this.H;this.C=new Date;this.F(a,125)};
J5.prototype.H=function(){this.context.clearRect(-this.B,-this.A,this.width,this.height);for(var a=this.G++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.o,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.o,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};J5.prototype.$=function(){M(this.j);J5.K.$.call(this)};function K5(a,b,c){PD.call(this,["div","html5-remote-module",["div","ytp-remote-display-thumbnail"],["div","","{{largeplaybutton}}"],["div","ytp-remote-display-controls",["div",["ytp-remote-display-error","html5-center-overlay"],["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}}"]]]);this.C=c;this.B=this.template.j["ytp-remote-display-thumbnail"];this.j=this.o=this.A=null;L5(this,a,b)}z(K5,PD);function M5(a){N5(a,Z("YTP_MDX_STATUS_CONNECTING"));O5(a,2)}function P5(a,b){N5(a,Z("YTP_MDX_STATUS_ERROR"));nv(a.template,"error",b);O5(a,0)}
function O5(a,b){var c=a.template.j["ytp-remote-display-error"],d=a.template.j["ytp-remote-display-status"];Sw(c);Sw(d);a.A.$();a.j.$();a.o.$();switch(b){case 0:Rw(d);Rw(c);break;case 1:Rw(d);break;case 2:Rw(d);a.j.va();break;case 3:a.A.va()}}
function L5(a,b,c){var d=b.j.W();a.A=new I5(d.isMobile,d.Nb);R(a,a.A);a.j=new J5(60);N(a.j.element,"html5-video-loader");N(a.j.element,"html5-center-overlay");N(a.j.element,"ytp-scalable-icon-grow");R(a,a.j);a.o=new Tz(a.C,"ytp-button-remote-reconnect");a.o.za(Z("YTP_MDX_PLAYER_RECONNECT_BUTTON"));R(a,a.o);b=b.j.getVideoData();a.B.style.backgroundImage=b.videoId?"url("+b.Qd("hqdefault.jpg")+")":"";nv(a.template,"largeplaybutton",a.A);nv(a.template,"reconnectbutton",a.o);nv(a.template,"loadingicon",
a.j);a.o.M("click",function(){this.L("reconnect-button-click")},a);M5(a);nv(a.template,"receiver",c)}function N5(a,b){nv(a.template,"statustext",b)};function Q5(a,b,c){Q.call(this);this.o=a;a.subscribe("onVolumeChange",this.Kq,this);this.I=x(this.TA,this);a.j.addEventListener("onCaptionsTrackListChanged",this.I);this.D=!1;this.A=b;b.subscribe("reconnect-button-click",this.Tq,this);this.j=c;c.subscribe("proxyStateChange",this.Uq,this);c.subscribe("remotePlayerChange",this.Em,this);c.subscribe("remoteQueueChange",this.Fm,this);this.N=new Ds;this.G=this.F=NaN;this.J=0;this.C={};this.H=new xn(this.kD,1E3,this);R(this,this.H);this.O=0;this.B=!1;a=
this.o.j.kk("captions","track");Ub(a)||R5(this,a);this.Fm();this.Em()}z(Q5,Q);f=Q5.prototype;f.P=function(){S5(this,new Ds);T5(this);U5(this);this.o.qa("onVolumeChange",this.Kq,this);this.o.j.removeEventListener("onCaptionsTrackListChanged",this.I);zi(this.A)||this.A.qa("reconnect-button-click",this.Tq,this);zi(this.j)||(this.j.qa("proxyStateChange",this.Uq,this),this.j.qa("remotePlayerChange",this.Em,this),this.j.qa("remoteQueueChange",this.Fm,this));V5(this,this.C);this.j=this.A=this.o=null};
f.HF=function(a,b){2==this.j.o||(W5(this)?this.Ox.apply(this,arguments):this.B&&this.Jx.apply(this,arguments))};function X5(a,b){a.o.Yj(b,a.o.j.getVideoData().lengthSeconds)}f.Jx=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":Y5(this,this.o.j.getCurrentTime());break;case "control_seek":Y5(this,c[0])}};
f.Ox=function(a,b){if(1081==rp(this.j).j)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":rp(this.j).tb()?Z5(this):$5(this);break;case "control_play":$5(this);break;case "control_pause":Z5(this);break;case "control_seek":this.O=c[0];this.H.Ki();break;case "control_subtitles_set_track":R5(this,c[0])}};
f.Kq=function(a){if(W5(this)){var b=Math.round(a.volume);a=!!a.muted;var c=rp(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};f.TA=function(){Ub(this.C)||V5(this,this.C);this.D=!1};f.Tq=function(){U5(this);this.j.B.reconnect();M5(this.A);this.B=!1};f.Uq=function(a,b){U5(this);2==b&&this.Zr()};
f.Em=function(){if(W5(this)){T5(this);var a=rp(this.j);switch(a.j){case 1:a6(this);S5(this,new Ds(8));break;case 3:S5(this,new Ds(1));break;case 0:S5(this,new Ds(2));this.H.stop();var b=this.o.j;(b=er(b.T,b.playerType||1))&&b.Zf(!0);X5(this,this.o.j.getVideoData().lengthSeconds);break;case 2:S5(this,new Ds(4));X5(this,kp(a));break;case -1:S5(this,new Ds);break;case -1E3:S5(this,new Ds(128,{}))}0==this.J&&(b=this.o.j,(b=er(b.T,b.playerType||1))&&b.Zf(!1));this.J=a.j;a=rp(this.j).A;b=this.C;(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.C=a,V5(this,a));a=rp(this.j);-1==a.volume||Math.round(this.o.j.Rs())==a.volume&&this.o.j.Ss()==a.muted||(this.o.j.setVolume(a.volume),a.muted?this.o.j.Vs():this.o.j.Zs())}else b6(this)};function b6(a){a.B||(X5(a,0),T5(a),S5(a,new Ds));"detailpage"!=a.o.o.yc.W().ja&&(O5(a.A,3),a.B=!0)}f.Fm=function(){W5(this)||b6(this)};
function R5(a,b){if(W5(a)&&!a.D){if(b){var c={style:a.o.j.kk("captions","displaySettings")};ac(c,b);a.j.Zm(c6(a),c)}else a.j.Zm(c6(a),null);a.C=rp(a.j).A}}function Z5(a){a.j.pause();var b=rp(a.j);X5(a,kp(b));T5(a);S5(a,new Ds(4))}function $5(a){a.j.play();a6(a);S5(a,new Ds(8))}function Y5(a,b){var c=a.o.j.Fd();c?yp(a.j,c6(a),b,c.Xa,a.o.j.getVideoData().playlistId):yp(a.j,c6(a),b);S5(a,new Ds(1))}
function V5(a,b){if(b){var c=a.o.j.kk("captions","tracklist",{Qp:1});c&&c.length?a.o.j.Ln("captions","track",b):(a.o.j.Ts("captions"),a.D=!0)}else a.o.j.Ln("captions","track",{})}f.kD=function(){var a=this.O;T5(this);X5(this,a);-1==rp(this.j).j?Y5(this,a):this.j.Bs(a);S5(this,new Ds(1))};function W5(a){return ip(rp(a.j))==c6(a)}function c6(a){return a.o.j.getVideoData().videoId}
function a6(a){T5(a);if(!a.j.ka()){var b=rp(a.j);b.tb()&&S5(a,new Ds(8));X5(a,kp(b));a.F=L(x(function(){a6(this)},a),500)}}function T5(a){M(a.F);a.F=NaN}f.Zr=function(){U5(this);T5(this);var a=this.j.B.getReconnectTimeout();if(2!=this.j.o||isNaN(a))M5(this.A),this.B=!1;else{var b=this.A;P5(b,Z("YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:tv(a/1E3)}));b.o.va();this.G=L(x(this.Zr,this),1E3)}};function U5(a){M(a.G);a.G=NaN}
function S5(a,b){U5(a);var c=a.N;a.N=b;var d=a.A;N5(d,Z("YTP_MDX_STATUS_CONNECTED"));O5(d,1);X(b,1)&&(d=a.A,N5(d,Z("YTP_MDX_STATUS_CONNECTED")),O5(d,2));X(b,128)&&P5(a.A,Zf("YTP_MDX_PLAYER_ERROR"));a.B=!1;d=a.o;d.U=b;mt(d,X(b,8));d.o.L("presentingplayerstatechange",new R1(b,c))};function d6(a){p_.call(this,a);this.R=a.A.B;this.D={key:Rj(),name:Zf("YTP_MDX_MY_COMPUTER")};this.C=this.B=null;this.J=[];this.N=this.O=this.A=null;this.Y=[this.D];this.H=this.D;this.G=new nB(this.R,"ytp-remote-button",Zf("YTP_MDX_TOOLTIP"),"ytp-remote-button-active");R(this,this.G);Vz(this.G,6950);this.G.M("click",this.nF,this);this.G.Q().id="remote_button";this.F=new GB(this.R,x(this.Ow,this),x(this.uA,this));N(this.F.Q(),"ytp-drop-down-background");R(this,this.F);this.I=new Sz;this.I.label=Zf("YTP_MDX_TITLE");
this.I.element=this.F;this.I.A=this.xa;R(this,this.I);this.F.kb(this.I.label);this.U=new Ds;this.V=0}z(d6,p_);var e6=["play_pause","seek"],f6=["captions"];f=d6.prototype;f.xa="remote";f.Bc="remote";f.Ha=function(){return this.o.yc.W().vg};f.Na=function(){d6.K.Na.call(this);this.J.push(Hi("yt-remote-before-disconnect",this.Sz,this));this.J.push(Hi("yt-remote-connection-change",this.Vq,this));this.Vq();ot(this,this.xa,this.G);qt(this,this.I);var a=this.j.T.J;this.H&&this.H!=this.D&&1!=a&&3!=a&&this.load()};
f.destroy=function(){Ji(this.J);this.J.length=0;yi(this.A);this.A=null;d6.K.destroy.call(this)};f.load=function(){if(!this.loaded){d6.K.load.call(this);sB(this.G,"ytp-remote-button-active");this.C=new K5(this,this.H.name,this.R);Wr(this.j,this.C.Q());this.A&&(this.B=new Q5(this,this.C,this.A));this.j.pauseVideo();this.L("command_redirect_controls",this,e6,f6);var a=Dq();if(0!=a){var b=this.A?ip(rp(this.A)):null;b&&b!=this.j.getVideoData().videoId||L(x(function(){this.Yj(a)},this),0)}}};
f.unload=function(){this.loaded&&(sB(this.G,"ytp-remote-button"),this.F.j(this.D),kt(this),Ai(this.B,this.C),this.B=this.C=null,d6.K.unload.call(this))};f.P=function(){this.destroy();Ai(this.B,this.C,this.A);this.A=this.B=this.C=null;d6.K.P.call(this)};f.Yd=function(a,b){this.B&&this.B.HF.apply(this.B,arguments)};
function Dr(a,b,c){var d=c||a.D;b.unshift(a.D);a.Y=b||[a.D];d=F(b,function(a){return a.key==d.key});g6(a,b);a.F.j(d);a.H=d||a.D;a.C&&nv(a.C.template,"receiver",d.name);a.L("publish_external_event","onMdxReceiversChange")}f.Yj=function(a,b){this.V=a||0;d6.K.Yj.call(this,a,b)};f.getCurrentTime=function(){return this.V};f.Sz=function(a){1==a&&(this.O=this.A?rp(this.A):null);this.N=a};
f.Vq=function(){var a=Fq();a?(this.A=a,this.N=this.O=null,this.load(),this.B||(this.B=new Q5(this,this.C,this.A))):(yi(this.A),this.A=null,this.loaded&&1==this.N&&(this.unload(),(a=this.O)&&ip(a)==this.j.getVideoData().videoId?this.j.xh(kp(a)):this.j.xh(0)))};f.uA=function(a){st(this);a!=this.F.A&&(this.F.j(a),h6(this,a))};
function h6(a,b){a.H=b||a.D;if(b.key==a.D.key)yq();else{var c=0,d="",e=a.j.Fd();e&&(c=e.Xa,d=a.j.getVideoData().playlistId);if(e=a.j.Fd()){for(var g=[],h=0;h<e.xc;h++)g[h]=xr(e,h).videoId;e=g}else e=[a.j.getVideoData().videoId];c={videoIds:e,listId:d,videoId:a.j.getVideoData().videoId,index:c,currentTime:a.j.getCurrentTime()};vq(b,c);a.C&&nv(a.C.template,"receiver",b.name);yi(a.B);a.B=null;a.load()}}function g6(a,b){D(b,function(a){a.toString=function(){return a.key}},a);HB(a.F,b)}
f.nF=function(a){var b=kq();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),El())};f.Ow=function(a){return a.name};f.jg=function(a,b){switch(a){case "casting":return!!this.A&&!!this.B;case "receivers":return this.Y;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?El():h6(this,b)),this.H;case "castSelector":var c=kq(),c=1==c.length&&"cast-selector-receiver"==c[0].key;b&&c&&El();return c}};
f.kg=function(){return["casting","receivers","currentReceiver","castSelector"]};function i6(a){this.addEventListener=x(a.addEventListener,a);this.removeEventListener=x(a.removeEventListener,a);this.dispatchEvent=x(a.dispatchEvent,a)}
function j6(a,b,c){S.call(this);this.G=a;this.O=x(b,null);this.I=c;this.j=0;this.A=new Qc(NaN,NaN);b=c?4E3:3E3;this.C=new Mv(pa(this.Ab,1,!1),b,this);R(this,this.C);this.D=new Mv(pa(this.Ab,2,!1),b,this);R(this,this.D);this.F=new Mv(pa(this.Ab,512,!1),5E3,this);R(this,this.F);c||(this.B=P(a,"mouseover",x(this.Qt,this)),this.J=P(a,"mousemove",x(this.IF,this)),this.N=P(a,"mouseleave",x(this.uz,this)));this.H=ed?P(a,"keypress",x(this.ez,this)):P(a,"focusin",x(this.Jw,this));this.o=P(a,"mousedown",x(this.Pt,
this));this.Ab(640,!0)}z(j6,S);f=j6.prototype;f.IF=function(a){a=new Qc(Bh(a),Ch(a));Rc(a,this.A)||(this.A=a,this.Ab(2,!0))};f.uz=function(){this.Ab(2,!1)};f.Qt=function(a){var b=new Qc(Bh(a),Ch(a));Rc(b,this.A)||(this.A=b,this.j&2&&this.O(a.target)&&(this.Ab(4,!0),Hh(this.B),this.B=P(this.G,"mouseout",x(this.JF,this))))};f.JF=function(){this.A=new Qc(NaN,NaN);this.Ab(4,!1);Hh(this.B);this.B=P(this.G,"mouseover",x(this.Qt,this))};f.ez=function(){this.Ab(1,!0)};
f.Jw=function(a){a.target instanceof Element&&!(0<a.target.tabIndex)||this.Ab(1,!0)};f.Pt=function(){var a=8;this.I&&(a|=2);this.Ab(a,!0);Hh(this.o);this.o=P(document,"mouseup",x(this.KF,this))};f.KF=function(){this.Ab(8,!1);Hh(this.o);this.o=P(this.G,"mousedown",x(this.Pt,this))};
f.Ab=function(a,b){var c=!this.j;b?(this.j|=a,a&1&&this.C.start(),a&2&&this.D.start(),a&512&&this.F.start()):(this.j&=~a,a&1&&this.C.stop(),a&2&&this.D.stop(),a&512&&this.F.stop());var d=!this.j;c!=d&&this.L("autohideupdate",d)};f.P=function(){Hh(this.B);Hh(this.J);Hh(this.N);Hh(this.H);Hh(this.o);j6.K.P.call(this)};function k6(){this.o=this.j=null}function Z(a,b){return Zf(a,b,void 0)}f=k6.prototype;f.pg=function(a,b){this.j&&this.j.pg(a,b)};f.qg=function(a,b,c){this.j&&this.j.qg(a,b,c)};f.Om=function(a){this.j&&this.j.Om(a)};f.wb=function(){return this.o.wb()};f.sb=function(){return this.o.sb()};function l6(a,b){Y.call(this,["span","","{{sparkline_container}}"]);this.A=a;this.o=b;this.j=new cF("");R(this,this.j);nv(this.template,"sparkline_container",this.j)}z(l6,Y);function m6(a){Y.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 Host:"],["td","","{{stream_host}}"]],
["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}}"]]]]]);
sv(this,this.template.j["html5-video-info-panel-close"],"click",this.$);this.o=new l6(200,14);R(this,this.o);nv(this.template,"bandwidth_sparkline",this.o);this.A=new Mv(this.B,500,this);R(this,this.A);this.j=a}z(m6,Y);m6.prototype.va=function(){m6.K.va.call(this);this.B()};m6.prototype.$=function(){m6.K.$.call(this);this.A.stop()};
m6.prototype.B=function(){var a=er(this.j),b=this.j.getVideoData(),c=this.j.uh(),d=this.j.A.o,e=this.j.W(),g;g=this.j;if(g.ua){var h=[];g.ua.H.forEach(x(h.push,h));g=h}else g=[0];var k=(h=a.G?a.G.j:null)&&h.o,l=b.videoId,p=b.clientPlaybackNonce,r=b.clientPlaybackNonce?"":"display:none",a=a.A?W0(a.A):"",t;i:{if(b.Ze&&(t=b.Ze.match(/url=(https?)/))&&2==t.length){t=t[1];break i}t=""}c={video_id:l,cpn:p,cpn_style:r,mime:"",dash:"no",stream_host:a,stream_type:t||e.protocol,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||"-",dimensions:d.clientWidth+" x "+d.clientHeight+(window.devicePixelRatio?" * "+window.devicePixelRatio:""),resolution:d.videoWidth+" x "+d.videoHeight,volume:Math.round(Tq(this.j))+"%",bandwidth_kbps:(8*ab(g)/1024).toFixed(0)+" Kbps",drm_style:k?"":"display:none",
drm:k?h.o+" / "+h.j:""};b.j&&(d=iG(b.j)?"yes":"no",d+=" ("+b.j.id,b.F&&iG(b.j)&&(d+="/"+b.F.id),c.dash=d+")",c.mime=b.j.mimeType,b=b.j.video.fps,1<b&&(c.resolution+="@"+b));d=this.o;b=d.j;e=Math.max.apply(Math,g)||1;a=[];for(h=0;h<g.length;h++)a.push(h/g.length*d.A+","+d.o*(1-g[h]/e));g='<svg width="'+d.A+'" height="'+d.o+'" viewbox="0 0 '+d.A+" "+d.o+'"><g><polyline stroke="white" fill="none" points="'+a.join(" ")+'"/></g></svg>';b.element.innerHTML=g;this.template.update(c);this.A.start()};function n6(a){var b=["div","html5-video-container"],c=["div","html5-video-player",{tabindex:-1,id:a.Y.attrs.id},b];b.push(["div","html5-video-content"]);PD.call(this,c);ti(this.element,"version",a.Y.assets.js);this.j=a;this.oa=null;this.A=this.template.j["html5-video-container"];this.N=new ug(0,0,0,0);this.o=null;this.Z=new ug(0,0,0,0);this.sa=this.template.j["html5-video-content"];this.Da=this.$a=0;this.aa=null;this.Y=0;this.na=null;b=a.W();this.Za=b.bb||"blazer"==b.j;this.S=new m6(a);R(this,this.S);
this.S.ea(this.element);this.B=new k6;this.$m();Yf({YTP_ADVERTISEMENT:"\u0420\u0435\u043a\u043b\u0430\u043c\u0430",YTP_AUDIO_TRACK_TITLE:"\u0417\u0432\u0443\u043a\u043e\u0432\u0430\u044f \u0434\u043e\u0440\u043e\u0436\u043a\u0430",YTP_AUTO:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430",YTP_AUTO_WITH_QUALITY_2:"\u0410\u0432\u0442\u043e\u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"\u0418\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e ($VIDEO_QUALITY)",
YTP_COPY_DEBUG_INFO:"\u0421\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u043e\u0442\u043b\u0430\u0434\u043a\u0438",YTP_COPY_VIDEO_URL:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e",YTP_COPY_VIDEO_URL_AT_TIME:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438",
YTP_DRAWER_HEADER_TEXT:"\u0412 \u044d\u0442\u043e\u043c \u0432\u0438\u0434\u0435\u043e",YTP_DRAWER_POLL_SUBMIT:"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c",YTP_GET_DEBUG_INFO:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e\u0431 \u043e\u0442\u043b\u0430\u0434\u043a\u0435",YTP_GET_VIDEO_URL:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e",YTP_GET_VIDEO_URL_AT_TIME:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c URL \u0432\u0438\u0434\u0435\u043e \u0441 \u043f\u0440\u0438\u0432\u044f\u0437\u043a\u043e\u0439 \u043a\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438",
YTP_GET_EMBED:"\u041f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043a\u043e\u0434 \u0434\u043b\u044f \u0432\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u043d\u0438\u044f",YTP_DECREASE_PLAYBACK_SPEED:"\u0423\u043c\u0435\u043d\u044c\u0448\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_DEFAULT_VIEW:"\u0420\u0435\u0436\u0438\u043c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e",
YTP_EMBED_COPY:"\u041a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c HTML-\u043a\u043e\u0434",YTP_ERROR_GENERIC:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GENERIC_WITH_LINK_2:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435. $BEGIN_LINK\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435...$END_LINK",
YTP_EXIT_FULLSCREEN:"\u0412\u044b\u0445\u043e\u0434 \u0438\u0437 \u043f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430",YTP_FEATURED:"\u0418\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0435",YTP_FULLSCREEN:"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",YTP_INCREASE_PLAYBACK_SPEED:"\u0423\u0432\u0435\u043b\u0438\u0447\u0438\u0442\u044c \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",
YTP_GOTO_LIVE_TOOLTIP:"\u041f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438 \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a \u043f\u0440\u044f\u043c\u043e\u0439 \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u0438",YTP_KEYBOARD_SHORTCUTS:"\u0411\u044b\u0441\u0442\u0440\u044b\u0435 \u043a\u043b\u0430\u0432\u0438\u0448\u0438",YTP_LIVE:"\u0412 \u044d\u0444\u0438\u0440\u0435",YTP_LIVE_NOW:"\u0421\u0415\u0419\u0427\u0410\u0421 \u0412 \u041f\u0420\u042f\u041c\u041e\u041c \u042d\u0424\u0418\u0420\u0415",
YTP_MIX:"\u041c\u0438\u043a\u0441",YTP_MORE:"\u0415\u0449\u0451",YTP_MDX_TITLE:"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430",YTP_MDX_TOOLTIP:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u043d\u0430 \u0442\u0435\u043b\u0435\u0432\u0438\u0437\u043e\u0440\u0435",YTP_MDX_MY_COMPUTER:"\u042d\u0442\u043e\u0442 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440",
YTP_MUTE:"\u041e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0437\u0432\u0443\u043a\u0430",YTP_NEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",YTP_NEXT_VIDEO_IN:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e \u0447\u0435\u0440\u0435\u0437\u00a0$TIME_LEFT",YTP_NORMAL_SPEED:"\u041e\u0431\u044b\u0447\u043d\u0430\u044f",YTP_ON:"\u0412\u041a\u041b",YTP_OFF:"\u0412\u042b\u041a\u041b",YTP_OPTIONS:"\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b",
YTP_PLAY_ALL:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0441\u0435",YTP_PLAY_PAUSE:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435/\u043f\u0430\u0443\u0437\u0430",YTP_PREVIOUS:"\u041d\u0430\u0437\u0430\u0434",YTP_PLAYLIST:"\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442",YTP_PLAYLIST_UP_NEXT:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435",YTP_QUALITY_TITLE:"\u041a\u0430\u0447\u0435\u0441\u0442\u0432\u043e",
YTP_REPLAY:"\u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u044c",YTP_REPORT_ISSUE:"\u0421\u043e\u043e\u0431\u0449\u0438\u0442\u044c \u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f",YTP_SEEK_BACK:"\u041d\u0430\u0437\u0430\u0434 \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434",YTP_SEEK_FORWARD:"\u0412\u043f\u0435\u0440\u0435\u0434 \u043d\u0430 10 \u0441\u0435\u043a\u0443\u043d\u0434",YTP_SEEK_PERCENT:"\u041f\u0435\u0440\u0435\u0439\u0442\u0438 \u043a 0%-90%.",
YTP_SETTINGS:"\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438",YTP_SHARE:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f",YTP_SHARE_WITH_PLAYLIST:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u0432 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0435",YTP_SHOW_VIDEO_INFO:"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0434\u043b\u044f \u0441\u0438\u0441\u0430\u0434\u043c\u0438\u043d\u043e\u0432",YTP_SPEED_TITLE:"\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c",
YTP_ST_COLLAPSE:"\u0421\u0432\u0435\u0440\u043d\u0443\u0442\u044c",YTP_ST_EXPAND:"\u0420\u0430\u0437\u0432\u0435\u0440\u043d\u0443\u0442\u044c",YTP_SUBTITLES:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b",YTP_THREED_SHORT:"3D",YTP_THEATER_MODE:"\u0428\u0438\u0440\u043e\u043a\u0438\u0439 \u044d\u043a\u0440\u0430\u043d",YTP_TOGGLE_FULLSCREEN:"\u0412\u043e \u0432\u0435\u0441\u044c \u044d\u043a\u0440\u0430\u043d",YTP_TOGGLE_MUTE:"\u041f\u0435\u0440\u0435\u0432\u0435\u0441\u0442\u0438 \u0432 \u0431\u0435\u0437\u0437\u0432\u0443\u0447\u043d\u044b\u0439 \u0440\u0435\u0436\u0438\u043c",
YTP_UNMUTE:"\u0412\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_URL_NAVIGATE:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043d\u0430 YouTube.com",YTP_WATCH_ALL:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432\u0438\u0434\u0435\u043e \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e",YTP_WATCH_LATER:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435",YTP_WATCH_LATER_AS_2:"\u041f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043f\u043e\u0437\u0436\u0435 \u043a\u0430\u043a $USER_NAME",
YTP_WEBGL_3D_ANAGLYPH:"\u0410\u043d\u0430\u0433\u043b\u0438\u0444",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"\u041f\u043e\u0434\u043f\u0438\u0441\u0430\u0442\u044c\u0441\u044f \u043a\u0430\u043a $USER_NAME",YTP_LIKE_AS:'\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 "\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f" \u043a\u0430\u043a $USER_NAME',YTP_DISLIKE_AS:'\u041f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u043e\u0442\u043c\u0435\u0442\u043a\u0443 "\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f" \u043a\u0430\u043a $USER_NAME',
YTP_WATCH_NEXT:"\u0420\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0438\u0438",YTP_PLAY:"\u0421\u043c\u043e\u0442\u0440\u0435\u0442\u044c",YTP_WATERMARK:"\u0412\u043e\u0434\u044f\u043d\u043e\u0439 \u0437\u043d\u0430\u043a",YTP_ERROR_STREAMING_UNAVAILABLE:"\u0421\u0435\u0439\u0447\u0430\u0441 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u043e\u043d\u043e \u0431\u044b\u043b\u043e \u0441\u043a\u0430\u0447\u0430\u043d\u043e \u0434\u043b\u044f \u043e\u0444\u043b\u0430\u0439\u043d-\u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430.",
YTP_ERROR_LICENSE:"\u041d\u0435 \u0443\u0434\u0430\u043b\u043e\u0441\u044c \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0441\u0442\u0438 \u0432\u0438\u0434\u0435\u043e \u0438\u0437-\u0437\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u0435\u0439.",YTP_ERROR_VIDEO_NOT_FOUND:"\u041d\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0439\u0442\u0438 \u0432\u0438\u0434\u0435\u043e.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"\u0412\u044b \u0443\u0436\u0435 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432, \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u043d\u043e\u0435 \u043f\u0440\u0430\u0432\u043e\u043e\u0431\u043b\u0430\u0434\u0430\u0442\u0435\u043b\u0435\u043c. \u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u0437\u0434\u0435\u0441\u044c, \u043e\u0442\u043a\u0440\u0435\u043f\u0438\u0442\u0435 \u0435\u0433\u043e \u043e\u0442 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430.",
YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"\u041e\u0448\u0438\u0431\u043a\u0430 \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u0438 \u043f\u043b\u0430\u0442\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u044d\u0442\u0443 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_PURCHASE_NOT_FOUND:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043f\u043b\u0430\u0442\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u044d\u0442\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e.",YTP_ERROR_PURCHASE_REFUNDED:"\u041f\u043e \u0434\u0430\u043d\u043d\u043e\u0439 \u043f\u043e\u043a\u0443\u043f\u043a\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0441\u0440\u0435\u0434\u0441\u0442\u0432.",
YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"\u0412\u0438\u0434\u0435\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0432\u0430\u0448\u0435\u0433\u043e \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0435\u0441\u0442\u0435. \u041f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440.",
YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0432\u0438\u0434\u0435\u043e, \u043e\u0442\u043d\u043e\u0441\u044f\u0449\u0438\u0445\u0441\u044f \u043a \u043e\u0434\u043d\u043e\u043c\u0443 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0443.",
YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442 \u044d\u0442\u043e \u0432\u0438\u0434\u0435\u043e.",
YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"\u0417\u0430 \u0441\u0443\u0442\u043a\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u043e \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432/IP-\u0430\u0434\u0440\u0435\u0441\u043e\u0432.",YTP_ERROR_UNUSUAL_ACTIVITY:"\u0412\u0438\u0434\u0435\u043e \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0438\u0437-\u0437\u0430 \u043d\u0435\u043e\u0431\u044b\u0447\u043d\u043e\u0439 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0435.",
YTP_ERROR_NOT_SIGNED_IN:"\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440, \u0432\u043e\u0439\u0434\u0438\u0442\u0435 \u0432 \u0430\u043a\u043a\u0430\u0443\u043d\u0442.",YTP_CLOSE:"\u0417\u0430\u043a\u0440\u044b\u0442\u044c",YTP_ANNOTATIONS:"\u0410\u043d\u043d\u043e\u0442\u0430\u0446\u0438\u0438",YTP_DONE:"\u0413\u043e\u0442\u043e\u0432\u043e",YTP_SHARE_THIS_PLAYLIST:"\u041f\u043e\u0434\u0435\u043b\u0438\u0442\u044c\u0441\u044f \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u043e\u043c",
YTP_UPLOADED_BY_2:"\u0410\u0432\u0442\u043e\u0440: $AUTHOR",YTP_SEEK_SLIDER:"\u041f\u043e\u043b\u0437\u0443\u043d\u043e\u043a \u043f\u043e\u0438\u0441\u043a\u0430",YTP_PAUSE:"\u041f\u0430\u0443\u0437\u0430",YTP_AUTOPLAY:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",YTP_AUTOPLAY_COUNTDOWN_2:"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u0432\u0438\u0434\u0435\u043e \u0447\u0435\u0440\u0435\u0437 $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.",
YTP_AUTOPLAY_PAUSED_2:"\u0410\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043f\u0440\u0438\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043e.",YTP_AUTOPLAY_CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c \u0430\u0432\u0442\u043e\u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435",YTP_WATCH_VIDEO_OR_PLAYLIST:"\u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c $TITLE",
YTP_CANCEL:"\u041e\u0442\u043c\u0435\u043d\u0430",YTP_ON_GOOGLE_PLUS:"\u041d\u0430 Google+",YTP_STILL_THERE:"\u0427\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440 \u043f\u043b\u0435\u0439\u043b\u0438\u0441\u0442\u0430, \u043d\u0430\u0436\u043c\u0438\u0442\u0435 \u043a\u043d\u043e\u043f\u043a\u0443 \u043d\u0438\u0436\u0435.",YTP_DISMISS:"\u041e\u041a",YTP_RESET:"\u0421\u0431\u0440\u043e\u0441\u0438\u0442\u044c",
YTP_STOP:"\u041e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u044f\u043c\u0443\u044e \u0442\u0440\u0430\u043d\u0441\u043b\u044f\u0446\u0438\u044e",YTP_LIKE:"\u041d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",YTP_DISLIKE:"\u041d\u0435 \u043d\u0440\u0430\u0432\u0438\u0442\u0441\u044f",YTP_SCREENREADER_VOLUME_SETTING:"\u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c",YTP_SCREENREADER_VOLUME_MUTED:"\u0437\u0432\u0443\u043a \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d",
YTP_SCREENREADER_VOLUME_MUTE:"\u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_SCREENREADER_VOLUME_UNMUTE:"\u0432\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u0437\u0432\u0443\u043a",YTP_SCREENREADER_CONTROL_TOGGLE:"\u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0438\u0442\u044c",YTP_SAMPLE_SUBTITLES:"\u0421\u0443\u0431\u0442\u0438\u0442\u0440\u044b \u0431\u0443\u0434\u0443\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u0442\u0430\u043a",YTP_HTML5_CONTEXT_MENU_LINK:"\u041e \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u0435 HTML5",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"\u042d\u0442\u043e\u0442 \u0444\u043e\u0440\u043c\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"\u0412 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0432\u0430\u0448 \u0431\u0440\u0430\u0443\u0437\u0435\u0440 \u043d\u0435 \u0440\u0430\u0441\u043f\u043e\u0437\u043d\u0430\u0435\u0442 \u043d\u0438 \u043e\u0434\u0438\u043d \u0438\u0437 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0445 \u0432\u0438\u0434\u0435\u043e\u0444\u043e\u0440\u043c\u0430\u0442\u043e\u0432. $BEGIN_LINK\u041d\u0430\u0436\u043c\u0438\u0442\u0435 \u0437\u0434\u0435\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u043e\u0442\u0432\u0435\u0442\u044b \u043d\u0430 \u0447\u0430\u0441\u0442\u043e \u0437\u0430\u0434\u0430\u0432\u0430\u0435\u043c\u044b\u0435 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043e \u0432\u0438\u0434\u0435\u043e HTML5.$END_LINK",
YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"\u0414\u043b\u044f \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f \u0432\u0438\u0434\u0435\u043e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0438\u0433\u0440\u044b\u0432\u0430\u0442\u0435\u043b\u044c Adobe Flash Player. $BEGIN_LINK\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u044e\u044e \u0432\u0435\u0440\u0441\u0438\u044e$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"\u0423\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"\u0412\u0438\u0434\u0435\u043e \u0432 \u0441\u0435\u0430\u043d\u0441\u0435 \u043d\u0435 \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c\u043e\u043c\u0443.",
YTP_ERROR_CAST_TOKEN_EXPIRED:"\u0412\u0440\u0435\u043c\u044f \u0441\u0435\u0430\u043d\u0441\u0430 \u0438\u0441\u0442\u0435\u043a\u043b\u043e. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443.",YTP_ERROR_CAST_TOKEN_FAILED:"\u0421\u0435\u0430\u043d\u0441 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_CAST_TOKEN_MALFORMED:"\u041d\u0435\u0432\u0435\u0440\u043d\u044b\u0439 \u0441\u0435\u0430\u043d\u0441. \u041e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0443 \u0438\u043b\u0438 \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_GEO_FAILURE:"\u042d\u0442\u043e \u0432\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0430 \u0432 \u0432\u0430\u0448\u0435\u0439 \u0441\u0442\u0440\u0430\u043d\u0435.",
YTP_ERROR_INVALID_DRM_MESSAGE:"\u041d\u0435\u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b DRM.",YTP_ERROR_RENTAL_EXPIRED:"\u0412\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u043a\u0430\u0442\u0430 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u043e\u0441\u044c.",YTP_ERROR_RETRYABLE_ERROR:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u043f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",
YTP_ERROR_SERVER_ERROR:"\u041f\u0440\u043e\u0438\u0437\u043e\u0448\u043b\u0430 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u044f\u044f \u043e\u0448\u0438\u0431\u043a\u0430. \u041f\u043e\u0432\u0442\u043e\u0440\u0438\u0442\u0435 \u043f\u043e\u043f\u044b\u0442\u043a\u0443 \u043f\u043e\u0437\u0436\u0435.",YTP_ERROR_STREAMING_NOT_ALLOWED:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0442\u0430\u043a \u043a\u0430\u043a \u0432\u0438\u0434\u0435\u043e \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u043b\u0435\u043d\u043e \u043a \u0434\u0440\u0443\u0433\u043e\u043c\u0443 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0443.",
YTP_ERROR_UNSUPPORTED_DEVICE:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e\u043c.",YTP_ERROR_VIDEO_FORBIDDEN:"\u0414\u043e\u0441\u0442\u0443\u043f \u043a \u0432\u0438\u0434\u0435\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d.",YTP_MDX_STATUS_CONNECTED:"\u0412\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u043d\u0430",
YTP_MDX_STATUS_CONNECTING:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a",YTP_MDX_STATUS_ERROR:"\u041e\u0448\u0438\u0431\u043a\u0430",YTP_MDX_PLAYER_ERROR:"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0434\u043b\u044f \u0443\u0434\u0430\u043b\u0435\u043d\u043d\u043e\u0433\u043e \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u0435\u0434\u0435\u043d\u0438\u044f.",YTP_MDX_PLAYER_RECONNECT_TIME:"\u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0418\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. \u041f\u043e\u0432\u0442\u043e\u0440\u043d\u0430\u044f \u043f\u043e\u043f\u044b\u0442\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 $FORMATTED_TIME...",
YTP_MDX_PLAYER_RECONNECT_BUTTON:"\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e",YTP_DEVICE_FALLBACK:"\u0412\u0438\u0434\u0435\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u043d\u0430 \u044d\u0442\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0435.",YTP_AD_INTERRUPT_MESSAGE:"\u042d\u0442\u0430 \u0440\u0435\u043a\u043b\u0430\u043c\u0430 \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u043c \u0432\u0438\u0434\u0435\u043e.",
YTP_VISIT_ADVERTISERS_SITE:"\u041f\u043e\u0441\u0435\u0442\u0438\u0442\u044c \u0441\u0430\u0439\u0442 \u0440\u0435\u043a\u043b\u0430\u043c\u043e\u0434\u0430\u0442\u0435\u043b\u044f",YTP_PROGRESS_LABEL_2:"$PLAY_PROGRESS of $DURATION",YTP_PLAYLIST_NAME:'\u041f\u043b\u0435\u0439\u043b\u0438\u0441\u0442 "$PLAYLIST_NAME"',YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH",YTP_SHARE_PANEL_ERROR:"An error occurred while retrieving sharing information. Please try again later.",YTP_PLAYLIST_AUTHOR_AND_POSITION:"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH",
YTP_PLAYER_NORMAL:"YouTube Video Player",YTP_PLAYER_FULLSCREEN:"YouTube Video Player in Fullscreen"});this.Jk()}z(n6,PD);f=n6.prototype;f.Jk=function(){this.j.subscribe("initializingmode",this.ey,this);this.j.subscribe("videoplayerreset",this.OF,this);this.j.subscribe("videodatachange",this.NF,this);this.j.subscribe("presentingplayerstatechange",this.Kl,this)};f.initialize=function(a){this.oa=Ed(a);this.ea(this.oa)};f.ey=function(){this.Z=new ug(0,0,0,0);this.N=new ug(0,0,0,0)};
f.addClass=function(a){nh(this.element,arguments)};f.removeClass=function(a){ph(this.element,arguments)};f.uk=function(){return!1};
f.Zn=function(){var a=this.j.W();this.addClass("el-"+a.ja);this.addClass("ps-"+a.j);O(this.element,"html5-native-controls","3"==a.o);O(this.element,"html5-mobile",a.isMobile);O(this.element,"ytp-no-controls","0"==a.o);a.D||this.addClass("tag-pool-enabled");a.Nb&&this.addClass("house-brand");this.Za?this.aa=P(window,"resize",x(this.mi,this)):(a=Tw()?x(this.cw,this):x(this.mi,this),this.aa=Vf(a,250))};f.cw=function(){this.Y&&Ww(this.Y);this.Y=Vw(x(this.mi,this),0)};
f.mi=function(){Tc(this.sb(),zg(this.N))||this.ff()};f.ff=function(){if(this.o){var a=this.sb();if(!a.isEmpty()){var b=!Tc(a,zg(this.N)),c=o6(this);b&&(this.N.width=a.width,this.N.height=a.height,this.Jg(a));(c||b)&&this.L("resize")}}};f.Jg=function(){};f.Ll=function(){};f.NF=function(a,b){this.vk(b)};f.OF=function(a){a.getVideoData()&&this.vk(a.getVideoData())};
f.vk=function(a){if(this.o){var b=this.j.W();ms&&(this.o.setAttribute("x-webkit-airplay","allow"),b.$h&&this.o.setAttribute("data-youtube-id",a.videoId),a.title?this.o.setAttribute("title",a.title):this.o.removeAttribute("title"));b.Dk&&(this.o.poster=a.videoId?a.Qd("default.jpg"):"")}b=a.Ec("yt:bgcolor");this.A.style.backgroundColor=b?b:"";this.$a=fI(a.Ec("yt:stretch"));a=a.Ec("yt:crop");this.Da="fullwidth"==a?Infinity:fI(a)};f.og=function(){};f.Xm=function(){};
f.wb=function(){var a=this.j.W();return a.bb||a.hb?new H(window.innerWidth,window.innerHeight):new H(this.element.clientWidth,this.element.clientHeight)};f.sb=function(){return this.wb()};f.gp=function(){return this.sb()};function uD(a){return a.o?new H(0<a.o.style.width.indexOf("px")?parseInt(a.o.style.width,10):a.o.clientWidth,0<a.o.style.height.indexOf("px")?parseInt(a.o.style.height,10):a.o.clientHeight):new H(0,0)}function p6(a){return a.o?new H(a.o.videoWidth,a.o.videoHeight):new H(0,0)}
function q6(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.$a||r6(c),a=a.Da||c,d=r6(b),d=a>d?new H(b.width,b.width/(isFinite(a)?a:c)):a<d?new H(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(e.width/e.height>b.width/b.height?b.width/e.width:b.height/e.height));return new ug((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function r6(a){return 1>Math.abs(Jw*a.height-a.width)||1>Math.abs(Jw/a.width-a.height)?Jw:a.width/a.height}
function s6(a){return"3"!=a.j.W().o&&!p6(a).isEmpty()}
function o6(a){var b=p6(a),c=a.sb(),d=1,e=s6(a),g=!1,h;h=(h=er(a.j))&&h.getPlayerState();!h||X(h,2)||X(h,64)?h=0==b.width&&0==b.height?new ug(0,-c.height,c.width,c.height):new ug(0,-b.height,b.width,b.height):e?(h=q6(a,c,b,e,!1),d=r6(new H(h.width,h.height))/r6(b),h=new ug(h.left+h.width/2*(1-1/d),h.top,h.width/d,h.height)):h=new ug(0,0,c.width,c.height);xg(a.Z,h)||(a.Z=h,Tg(a.o,zg(h)),Jg(a.o,new Qc(h.left,h.top)),g=!0);b=q6(a,c,b,e);xg(a.N,b)||(a.N=b,Tg(a.sa,b.width,b.height),Jg(a.sa,b.left,b.top),
g=!0);Dg(a.o,"transform",1==d?"none":"scaleX("+d+")");return g}f.$n=function(){};f.$m=function(){this.B.o=this};f.Kl=function(){this.ff()};f.Rt=function(){};f.P=function(){this.aa&&(this.Za?Hh(this.aa):Wf(this.aa),this.Y&&Ww(this.Y));this.na&&Hh(this.na);this.S.$();this.o=this.A=this.oa=null;n6.K.P.call(this)};function t6(a,b,c,d){Q.call(this);this.F=P(a,"click",x(this.N,this));this.G=P(a,"dblclick",x(this.I,this));this.J=b;this.B=c;this.C=d||null;this.o=new Mv(this.H,200,this);R(this,this.o);this.j=!0;this.A=!1;this.D=null}z(t6,Q);t6.prototype.N=function(a){this.C&&this.C()?this.A=!0:this.o.isActive()?(this.o.stop(),this.B(a),this.A=this.j=!1):(this.D=a,this.o.start(),this.j=!0)};t6.prototype.I=function(a){this.A?this.A=!1:this.j&&this.B(a)};t6.prototype.H=function(){this.J(this.D);this.j=!0};
t6.prototype.P=function(){Hh(this.F);Hh(this.G);t6.K.P.call(this)};var u6=new H(1720,980),v6=new H(1294,630),w6=new H(640,560),x6=new H(1320,870),y6={Ak:new H(1280,720),j:new H(960,540),zk:new H(854,480),ho:new H(640,360),fo:new H(426,240)},z6={Ak:new H(1280,750),j:new H(960,570),zk:new H(854,510),ho:new H(640,390),fo:new H(426,270)};
function A6(a,b){var c=new H(window.innerWidth,window.innerHeight),d=b&&!a.experiments.H?z6:y6;return a.J?c.width>=x6.width&&c.height>=x6.height?d.Ak.clone():d.zk.clone():c.width>=u6.width&&c.height>=u6.height?d.Ak.clone():c.width>=v6.width&&c.height>=v6.height?d.zk.clone():c.width>=w6.width?d.ho.clone():d.fo.clone()};function B6(a){Y.call(this,["div","ytp-action-buttons"]);this.shareButton=new Tz(a,"ytp-button-share",Z("YTP_SHARE"));R(this,this.shareButton);this.shareButton.ea(this.element);Vz(this.shareButton,3400);this.j=new Tz(a,"ytp-button-dislike",Z("YTP_DISLIKE"));R(this,this.j);this.j.ea(this.element);Vz(this.j,3300);ti(this.j.Q(),"tooltip-below","1");a.qg(this.j.Q(),"YTP_DISLIKE_AS",Z("YTP_DISLIKE"));this.likeButton=new Tz(a,"ytp-button-like",Z("YTP_LIKE"));R(this,this.likeButton);this.likeButton.ea(this.element);
Vz(this.likeButton,3200);ti(this.likeButton.Q(),"tooltip-below","1");a.qg(this.likeButton.Q(),"YTP_LIKE_AS",Z("YTP_LIKE"))}z(B6,Y);function C6(){Y.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.j=new rE(this,500);R(this,this.j)}z(C6,Y);function D6(a,b,c,d,e,g){var h,k;if(h=c.offsetParent){var l="HTML"==h.tagName||"BODY"==h.tagName;l&&"static"==Ig(h,"position")||(k=Pg(h),l||(l=(l=ah(h))&&ed?-h.scrollLeft:!l||dd&&rd("8")||"visible"==Ig(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft,k=Sc(k,new Qc(l,h.scrollTop))))}h=k||new Qc;k=Yg(a);(l=Og(a))&&yg(k,wg(l));var l=Bd(a),p=Bd(c);if(l.j!=p.j){var r=l.j.body,p=Qg(r,qe(p)),p=Sc(p,Pg(r));!dd||td(9)||pe(l)||(p=Sc(p,re(l)));k.left+=p.x;k.top+=p.y}a=E6(a,b);b=new Qc(a&
2?k.left+k.width:k.left,a&1?k.top+k.height:k.top);b=Sc(b,h);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);if(e=Og(c))e.top-=h.y,e.right-=h.x,e.bottom-=h.y,e.left-=h.x;F6(b,c,d,g,e,197,void 0)}
function F6(a,b,c,d,e,g,h){a=a.clone();var k=E6(b,c);c=Wg(b);h=h?h.clone():c.clone();a=a.clone();h=h.clone();var l=0;if(d||0!=k)k&2?a.x-=h.width+(d?d.right:0):d&&(a.x+=d.left),k&1?a.y-=h.height+(d?d.bottom:0):d&&(a.y+=d.top);if(g){if(e){d=a;k=h;l=0;65==(g&65)&&(d.x<e.left||d.x>=e.right)&&(g&=-2);132==(g&132)&&(d.y<e.top||d.y>=e.bottom)&&(g&=-5);d.x<e.left&&g&1&&(d.x=e.left,l|=1);if(g&16){var p=d.x;d.x<e.left&&(d.x=e.left,l|=4);d.x+k.width>e.right&&(k.width=Math.min(e.right-d.x,p+k.width-e.left),k.width=
Math.max(k.width,0),l|=4)}d.x+k.width>e.right&&g&1&&(d.x=Math.max(e.right-k.width,e.left),l|=1);g&2&&(l=l|(d.x<e.left?16:0)|(d.x+k.width>e.right?32:0));d.y<e.top&&g&4&&(d.y=e.top,l|=2);g&32&&(p=d.y,d.y<e.top&&(d.y=e.top,l|=8),d.y+k.height>e.bottom&&(k.height=Math.min(e.bottom-d.y,p+k.height-e.top),k.height=Math.max(k.height,0),l|=8));d.y+k.height>e.bottom&&g&4&&(d.y=Math.max(e.bottom-k.height,e.top),l|=2);g&8&&(l=l|(d.y<e.top?64:0)|(d.y+k.height>e.bottom?128:0));e=l}else e=256;l=e}e=new ug(0,0,0,
0);e.left=a.x;e.top=a.y;e.width=h.width;e.height=h.height;l&496||(Jg(b,new Qc(e.left,e.top)),h=zg(e),Tc(c,h)||(c=h,e=Dd(b),h=pe(Bd(e)),!dd||rd("10")||h&&rd("8")?(b=b.style,ed?b.MozBoxSizing="border-box":fd?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(c.width,0)+"px",b.height=Math.max(c.height,0)+"px"):(e=b.style,h?(dd?(h=dh(b,"paddingLeft"),a=dh(b,"paddingRight"),g=dh(b,"paddingTop"),d=dh(b,"paddingBottom"),h=new tg(g,a,d,h)):(h=Hg(b,"paddingLeft"),a=Hg(b,"paddingRight"),
g=Hg(b,"paddingTop"),d=Hg(b,"paddingBottom"),h=new tg(parseFloat(g),parseFloat(a),parseFloat(d),parseFloat(h))),b=gh(b),e.pixelWidth=c.width-b.left-h.left-h.right-b.right,e.pixelHeight=c.height-b.top-h.top-h.bottom-b.bottom):(e.pixelWidth=c.width,e.pixelHeight=c.height))))}function E6(a,b){return(b&4&&ah(a)?b^2:b)&-5};function G6(a){Y.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.j=new Y(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);R(this,this.j);gd&&this.j.Q().removeAttribute("readonly");this.j.M("click",this.A,this);var b=Z("YTP_CLOSE");this.o=new Tz(a,"ytp-dialog-button",b);this.o.za(b);R(this,this.o);this.template.update({content:this.j,buttons:this.o});this.M("contextmenu",this.B)}
z(G6,uB);G6.prototype.B=function(a){a.stopPropagation()};G6.prototype.A=function(){this.j.Q().select()};function H6(a,b,c){Y.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Z("YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Z("YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Z("YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Z("YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Z("YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Z("YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Z("YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.ca=a;this.ca.subscribe("internalvideodatachange",this.Tt,this);this.A=new Kv(this);this.A.M(b,"contextmenu",this.kA);this.j=
new Kv(this);this.o=new G6(c);R(this,this.o);this.o.o.M("click",this.oy,this);a={Bu:this.QF,Cu:this.RF,Du:x(this.St,this,!1),Eu:x(this.St,this,!0),Gu:this.SF,Hu:this.TF,Fu:this.MA};for(var d in a)I6(this,d,a[d]);this.$()}z(H6,Y);f=H6.prototype;f.oy=function(){this.ca.A.og()};function J6(a,b){var c=a.o;c.j.Q().value=b;c.j.Q().focus();L(x(c.A,c),100);a.ca.A.og(a.o)}
function I6(a,b,c){a.A.M(a.template.j[wv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.$();a=b.replace("CONTEXT_MENU_","").toLowerCase();K6(this.ca,"contextmenu."+a)})}f.Tt=function(a,b){Pw(this.template.j["html5-context-menu-copy-embed-html"],b.allowEmbed)};f.St=function(a){J6(this,nr(this.ca,a))};f.RF=function(){J6(this,pr(this.ca))};f.MA=function(a){L6(this.ca,a.target.getAttribute("href"))};
f.SF=function(){var a=er(this.ca);a&&a.jk(new Mq("feedback",!1));var a=this.ca.W(),b=!0;"detailpage"==a.ja&&(b=u("yt.player.exports.feedbackStart")(void 0,{as3:!1,html5:!0,player:!0}));b&&(this.ca.pauseVideo(),window.open(H_(a,this.ca.getVideoData())))};f.QF=function(){J6(this,or(this.ca,!0))};f.TF=function(){this.ca.A.S.va()};f.kA=function(a){a.preventDefault();var b=Bh(a);a=Ch(a);var c=Og(document.body);F6(new Qc(b,a),this.element,0,null,c,5);this.va()};f.iA=function(a){a.Rg()||this.$()};
f.va=function(){this.D||(this.j.removeAll(),this.j.M(window,"blur",this.$),this.j.M(document,"click",this.PF),this.j.M(document,"contextmenu",this.iA),H6.K.va.call(this))};f.PF=function(a){2==a.button||a.target&&ce(this.element,a.target)||this.$()};f.$=function(){H6.K.$.call(this);this.j.removeAll()};f.P=function(){this.A.removeAll();this.j.removeAll();this.ca.qa("internalvideodatachange",this.Tt,this);this.ca=null;H6.K.P.call(this)};function M6(){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",Z("YTP_MORE")]];Y.call(this,a)}z(M6,Y);function N6(a,b,c,d){Tz.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);N(this.element,"share-service-icon-sharebar");Vz(this,3700)}z(N6,Tz);function O6(){Y.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.j=this.template.j["ytp-share-url"]}z(O6,Y);O6.prototype.focus=function(){this.j.focus();this.j.select()};O6.prototype.P=function(){this.j=null;O6.K.P.call(this)};function P6(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",Z("YTP_SHARE_WITH_PLAYLIST")]]];PD.call(this,c);this.fa=b;this.B=a;this.shareUrl=null;this.A=[];this.o=this.j=null;this.closeButton=new Tz(this.B,"yt-uix-button-icon-share-bar-close",Z("YTP_CLOSE"),Z("YTP_CLOSE"));this.closeButton.ea(this.template.j["share-bar-content"]);
Vz(this.closeButton,3900)}z(P6,PD);function Q6(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.o?a.o.videoId:void 0};a.fa.mb&&(b.authuser=a.fa.mb);a.fa.pageId&&(b.pageid=a.fa.pageId);var c;R6(a)?(c=Hd("ytp-share-bar-checkbox"),c=!c||mh(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=R6(a));Gj("/share_ajax",{context:a,method:"GET",onError:a.F,jb:a.G,dg:b})}
P6.prototype.G=function(a,b){if(!this.ka()){S6(this);var c=this.template.j["share-bar-content"];this.shareUrl=new O6;R(this,this.shareUrl);Id(this.shareUrl.j,{value:b.url_short});this.shareUrl.ea(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new N6(this.B,d[e].name,d[e].sname,d[e].img);R(this,g);g.ea(c);g.M("click",pa(GF,d[e].url,{}));this.A.push(g)}this.j=new M6;R(this,this.j);this.j.M("click",x(this.H,this,b.more));this.j.ea(c);sv(this,this.template.j["ytp-share-bar-checkbox"],"click",
this.C,this);this.L("menu_show")}};P6.prototype.F=function(){};P6.prototype.H=function(a){FF(a)};function R6(a){return a.o?a.o.playlistId:void 0}P6.prototype.C=function(){var a=Hd("ytp-share-bar-checkbox");qh(a,"ytp-share-bar-checked");Q6(this)};function S6(a){a.shareUrl&&(a.shareUrl.detach(),a.shareUrl=null);a.j&&(a.j.detach(),a.j=null);D(a.A,function(a){Wd(a.Q())});a.A=[]};function T6(a,b){var c=["div","html5-info-bar",["div","html5-title",["div",["html5-like-dislike-buttons","hid"]],["a","html5-title-logo",{tabIndex:3550,href:"{{logolink}}","aria-label":Z("YTP_URL_NAVIGATE")},"YouTube"],["div","html5-title-text-wrapper",["a","html5-title-text",{tabIndex:3100,href:"{{titlelink}}"},"{{titletext}}"]]]];PD.call(this,c);this.fa=b;this.C=a;this.o=null;sv(this,this.template.j["html5-title-text"],"click",this.kr);c=this.template.j["html5-title-logo"];ti(c,"tooltip",Z("YTP_URL_NAVIGATE"));
ti(c,"tooltip-below","1");a.pg(c);sv(this,c,"click",this.kr);c=this.template.j["html5-title"];this.actionButtons=new B6(this.C);R(this,this.actionButtons);this.actionButtons.ea(c,1);this.actionButtons.shareButton.M("click",this.ln,this);this.j=null}z(T6,PD);f=T6.prototype;f.update=function(a){this.o=a;if(this.j){var b=this.j;b.o=a;Q6(b)}b=a.title||"";a=this.fa.getVideoUrl(a);this.template.update({titletext:b,titlelink:a,logolink:a})};f.kr=function(a){vv(a)&&(this.jr(),a.preventDefault())};f.jr=function(){this.Wt()};
function U6(a){return mh(a.element,"show-share")}f.ln=function(){V6(this,!U6(this))};function V6(a,b){if(b&&!a.j){a.j=new P6(a.C,a.fa);var c=a.j;c.o=a.o;Q6(c);a.j.ea(a.template.j["html5-info-bar"]);a.j.closeButton.M("click",a.ln,a);a.j.subscribe("menu_show",x(a.ar,a))}O(a.element,"show-share",b);O(a.element,"share-with-playlist",b&&!!R6(a.j));a.ar()}f.ar=function(){U6(this)&&this.j.shareUrl&&this.j.shareUrl.Q().focus()};f.Vt=function(a){FF(a)};f.Wt=function(){this.Vt(this.fa.getVideoUrl(this.o))};
f.P=function(){this.o=this.fa=null;T6.K.P.call(this)};function W6(a,b){T6.call(this,a,b.W());this.ca=b;this.B=2;this.A=!1;this.actionButtons.likeButton.M("click",this.LA,this);this.actionButtons.j.M("click",this.rA,this)}z(W6,T6);f=W6.prototype;f.update=function(a){W6.K.update.call(this,a);X6(this,a.Tm);a=!(!a||!a.us||this.ca.B);var b=!this.ca.W().je;O(this.element,"ytp-can-share",b);O(this.element,"ytp-can-sentiment",a)};f.ln=function(){this.L("share-click")};f.jr=function(){this.L("title-click")};f.LA=function(){Y6(this,0)};
f.rA=function(){Y6(this,1)};function Y6(a,b){if(!a.A&&(a.B==b&&(b=2),X6(a,b),a.o)){if("detailpage"!=a.fa.ja){a.A=!0;var c={playbackId:a.o.playbackId,jb:x(function(){this.A=!1},a),onError:x(function(){this.A=!1},a),mb:a.fa.mb,pageId:a.fa.pageId};zI(a.o.videoId,b,c)}a.ca.L("RATE_SENTIMENT",{videoId:a.o.videoId,sentiment:b})}}function X6(a,b){a.B=b;O(a.element,"sentiment-like",0==b);O(a.element,"sentiment-dislike",1==b)}f.Vt=function(a){L6(this.ca,a)};f.Wt=function(){Z6(this.ca)};
f.P=function(){this.ca=null;W6.K.P.call(this)};function $6(a){var b=["div",["ytp-dialog","html5-stop-propagation"],{tabindex:1E3},["div","ytp-dialog-title",Z("YTP_KEYBOARD_SHORTCUTS")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];Y.call(this,b);b=Z("YTP_DONE");this.j=new Tz(a,"ytp-dialog-button",b);this.j.za(b);R(this,this.j);Vz(this.j,1400);this.j.M("click",this.o,this);this.template.update({content:a7(),buttons:this.j})}z($6,uB);
function a7(){var a=[{key:"K",message:Z("YTP_PLAY_PAUSE")},{key:"J",message:Z("YTP_SEEK_BACK")},{key:"L",message:Z("YTP_SEEK_FORWARD")},{key:"0-9",message:Z("YTP_SEEK_PERCENT")},{key:">",message:Z("YTP_INCREASE_PLAYBACK_SPEED")},{key:"<",message:Z("YTP_DECREASE_PLAYBACK_SPEED")},{key:"F",message:Z("YTP_TOGGLE_FULLSCREEN")},{key:"M",message:Z("YTP_TOGGLE_MUTE")}],b=[];D(a,function(a){a=new Y(["p",null,a.key+": "+a.message]);b.push(a)});return b}$6.prototype.o=function(){this.$b("done")};
$6.prototype.focus=function(){this.element.focus()};function b7(a,b,c,d,e,g,h,k){this.C=[];D(Gb(b),function(b){this.C.push(P(a,b,x(this.GB,this)))},this);D(Gb(d),function(b){this.C.push(P(a,b,x(this.vA,this)))},this);this.D=g||null;this.I=c;this.H=h||0;this.o=0;this.B=!1;this.G=e;this.F=k||0;this.j=0;this.A=!1}f=b7.prototype;f.GB=function(a){M(this.j);this.j=0;this.o=L(x(this.Iw,this,a),this.H)};f.vA=function(a){M(this.o);this.o=0;this.j=L(x(this.Hw,this,a),this.F)};f.Iw=function(a){this.A||this.B||(this.B=!0,this.I.call(this.D||m,a))};
f.Hw=function(a){!this.A&&this.B&&(this.B=!1,this.G.call(this.D||m,a))};f.dispose=function(){this.A=!0;M(this.o);M(this.j);Hh(this.C)};f.ka=function(){return this.A};function c7(){Y.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.j=this.template.j["ytp-tooltip-body"]}z(c7,Y);c7.prototype.$=function(){c7.K.$.call(this);Jg(this.j,0)};c7.prototype.P=function(){Vd(this.j);this.j=null;c7.K.P.call(this)};function d7(a,b){Q.call(this);this.j={};this.bo=a;this.o=b}z(d7,Q);
d7.prototype.pg=function(a,b){var c,d=new b7(a,"mouseover",function(){if(this.bo){var d=new c7;d.ea(this.bo);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||vi(a,"tooltip")||"";if(w(d)){var g=Sd(d),d=Rd("span");d.className="ytp-text-tooltip";d.appendChild(g)}nv(c.template,"content",d);var g=!!vi(a,"tooltip-below"),d=c,h=Wg(a),h=new Qc(h.width/2,g?h.height:0),k=Pg(a),h=new Qc(k.x+h.x,k.y+h.y),g=!!g;O(d.element,"ytp-tooltip-below",g);if(k=Ng(d.element))var l=Pg(k),p=gh(k),h=Sc(h,new Qc(l.x+p.left,l.y+
p.top));F6(h,d.element,g?1:0);d.va();var p=Wg(d.j),g=p.width/2*-1,r=Kd(window),t=Ld(document),h=t.x,r=r.width+t.x,t=h,C=r;k&&(k=Wg(k),t=l.x,C=k.width+l.x);k=Pg(d.j);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,C)&&(g-=k-Math.min(r,C));Jg(d.j,g)}},["mouseout","mousedown"],function(){c&&(c.$(),yi(c),c=null)},this,10,50);this.j[ka(a)]=d};
d7.prototype.qg=function(a,b,c){var d=this.o;this.pg(a,function(){if(d){var a="detailpage"==d.ja;if(!d.Ba||a)return c}else return c;var g=d.Ba,h=d.U,a=Rd("div");N(a,"ytp-identity-tooltip");var k=Rd("img");k.src=h;h=Rd("span");g=Sd(Zf(b,{USER_NAME:g}));Ud(h,g);Ud(a,k,h);return a})};d7.prototype.Om=function(a){a=ka(a);yi(this.j[a]);this.j[a]=null};d7.prototype.P=function(){this.o=this.bo=null;for(var a in this.j)yi(this.j[a]);this.j={};d7.K.P.call(this)};function e7(){this.j=[];this.o=[]}ba(e7);var fE=u("yt.player.utils.VideoTagPool.instance_")||e7.getInstance();q("yt.player.utils.VideoTagPool.instance_",fE,void 0);f=e7.prototype;f.Xo=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=f7(this);this.j.push(c)}}};function f7(a,b){var c=document.createElement("video");qa(c,ts);P(c,"loadeddata",x(c.pw,c));P(c,"volumechange",x(c.rw,c));Vh&&6<=hs&&P(c,"webkitbeginfullscreen",x(c.play,c));b||us(c);a.o.push(c);return c}
f.xG=function(a){return this.j.length?this.j.pop():f7(this,a)};f.JC=function(a){a&&G(this.o,a)&&(Bs(a),Kh(a),ob(this.o,a))};f.pp=function(a){return this.j.length>=(a||1)};f.aw=function(){this.j=[];this.pp(4)?D(this.o,function(a){us(a);this.j.push(a)},this):this.Xo(4)};e7.prototype.fillPool=e7.prototype.Xo;e7.prototype.getTag=e7.prototype.xG;e7.prototype.releaseTag=e7.prototype.JC;e7.prototype.hasTags=e7.prototype.pp;e7.prototype.activateTags=e7.prototype.aw;function g7(a){Y.call(this,["div","ytp-dialog-holder","{{content}}"]);this.o=a;this.j=null}z(g7,Y);g7.prototype.va=function(){g7.K.va.call(this);h7(this);this.j.focus()};g7.prototype.$=function(){g7.K.$.call(this);var a=be(this.element);a&&a.focus()};function h7(a){if(a.j){a.j.Ut();var b=a.o.wb(),c=Vg(a.j.Q());a=a.j;b=new Qc(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.Q().style.marginLeft=b.x+"px";a.Q().style.marginTop=b.y+"px"}}g7.prototype.P=function(){this.j=null;g7.K.P.call(this)};function i7(a,b){gE.call(this,a,b);this.G=null;this.H=this.I=this.A=this.o=0;this.B=-75;N(this.element,"ytp-tv-static");j7(this,a,b)}z(i7,gE);function k7(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 j7(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.G=d;a.I=k7(b);a.H=k7(c/10);a.context.scale(1.5,1.5);a.context.fillStyle="rgba(255, 255, 255, 0.02)"}}
i7.prototype.va=function(){i7.K.va.call(this);var a=this.J;this.C=new Date;this.F(a,75)};i7.prototype.J=function(){var a=1-1/1.5;this.o=(this.o+this.I)%(this.width*a);this.A=(this.A+this.H)%(this.height*a);this.context.drawImage(this.G,-1*this.o,-1*this.A);this.context.fillRect(0,this.B,this.width,75);this.B=(this.B+75+7)%this.height-75};i7.prototype.$=function(){M(this.j);i7.K.$.call(this)};function l7(a){var b=["ytp-error"];b.push("html5-stop-propagation");Y.call(this,["div",b,["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.ba="table";this.A=a;this.o=[];void 0==cu&&(a=document.createElement("canvas"),cu=!(!a.getContext||!a.getContext("2d")));cu&&(this.j=new i7(1,1),this.j.ea(this.element,0),R(this,this.j))}z(l7,Y);l7.prototype.va=function(){l7.K.va.call(this);m7(this);this.j&&this.j.va()};l7.prototype.$=function(){l7.K.$.call(this);this.j&&this.j.$()};
function m7(a){var b,c;a.j&&(c=a.element.clientWidth,b=a.element.clientHeight,j7(a.j,c,b))}l7.prototype.B=function(a){var b=u("yt.player.exports.feedbackShowArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.A.getVideoData().clientPlaybackNonce};b(3037019,"player_error",c)||Lh(a)};l7.prototype.P=function(){Hh(this.o);this.o=[];l7.K.P.call(this)};function n7(a){PD.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"}],["div","ytp-storyboard-lens-timestamp-wrapper",["span","html5-storyboard-lens-timestamp"]]]]);this.da=!1;this.aa=new xn(this.lz,
250,this);R(this,this.aa);this.C=0;this.C=a;this.A=this.template.j["html5-storyboard-filmstrip"];this.Z=this.template.j["html5-storyboard-lens"];this.ga=this.template.j["html5-storyboard-lens-thumbnail"];this.ma=this.template.j["html5-storyboard-lens-timestamp"];this.U=this.template.j["html5-storyboard-thumbnail"];Wd(this.U);this.H=0;this.N=new W2(0,0);this.J=!1;this.R=this.S=0;this.Y=10;this.O=this.F=this.B=this.I=this.j=0;this.G=this.o=null;this.$()}z(n7,PD);n7.o=12;n7.j=20;n7.A=10;n7.B=72;
n7.C=200;f=n7.prototype;f.Mk=function(){Ww(this.H);if(this.o){var a,b,c;a=this.o.j[0].gt();var d=this.o.j[0].Qn();if(a!=this.B||d!=this.F){var e=Math.min(a,this.F);for(b=this.B;b<e;b++)(c=this.A.children[b-this.B])&&this.A.removeChild(c);this.B=a;for(b=Math.max(a,this.F);b<d;b++)c=this.U.cloneNode(!1),a=PI(this.G,b,this.j),a3(c,a,this.j,this.I),this.A.appendChild(c);this.F=d;o7(this)}}};
f.ks=function(a,b){$g(this.A,!1);for(var c,d,e=a;e<=b;e++)if(d=this.A.children[e-this.B])c=PI(this.G,e,this.j),a3(d,c,this.j,this.I);$g(this.A,!0)};function p7(a,b){if(b!=a.O){var c=PI(a.G,b,2*a.j),d=Math.round(2*a.j),e=Math.round(2*a.I);a3(a.ga,c,d,e);a.O=b}}f.lz=function(){for(var a=this.S,b=Math.max(Math.floor(a/this.j),0),a=Math.min(Math.ceil((a+this.C)/this.j),this.o.j[0].Gi()-1);b<=a;b++)QI(this.G,b,2*this.j)};
function o7(a,b){a.Y=Math.min(n7.A,Math.ceil(a.C/n7.B));a.j=Math.floor(a.C/a.Y);a.I=.555*a.j;a.R=a.j*(a.F-a.B);Ug(a.A,a.R);var c=Math.round(2*a.j),d;d=.555*c+n7.o;Tg(a.Z,c,d);Jg(a.Z,(a.C-c)/2);c=d+n7.j;a.Q().style.height=Kg(c,!0);b&&(a.ks(a.B,a.F),p7(a,a.O),a.da=!0)}f.va=function(){this.o&&(this.J&&this.Mk(),n7.K.va.call(this))};f.$=function(){n7.K.$.call(this)};f.P=function(){this.G=this.o=null;Ww(this.H);n7.K.P.call(this)};function q7(a){Y.call(this,["div","html5-storyboard-framepreview",["img","html5-storyboard-framepreview-img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]]);this.F=this.template.j["html5-storyboard-framepreview-img"];this.j=a.sb();this.A=this.o=null;this.B=0;this.C=new W2(0,0);this.$()}z(q7,Y);function r7(a){var b=PI(a.A,a.B,a.j.width);a3(a.F,b,a.j.width,a.j.height);QI(a.A,a.B,a.j.width)}q7.prototype.va=function(){this.o&&q7.K.va.call(this)};function s7(a,b,c){Y.call(this,["div",["ytp-thumbnail","html5-stop-propagation"]]);this.A=a;this.j=null;c&&(this.j=new I5(a,b),R(this,this.j),this.j.ea(this.element))}z(s7,Y);
s7.prototype.o=function(a){for(var b,c=0;c<arguments.length;c++){var d=arguments[c];if(!(!d||d instanceof Kr&&!d.videoId)){if(!this.A){var e=this.element.clientWidth,g=this.element.clientHeight;if(900<e||600<g)if(b=d.Qd("maxresdefault.jpg"))break;if(430<e||320<g)if(b=d.Qd("sddefault.jpg")||d.Qd("hqdefault.jpg"))break}if(b=d.Qd("default.jpg"))break}}this.element.style.backgroundImage=b?"url("+b+")":""};function t7(){qx.call(this);this.j={}}z(t7,qx);ba(t7);f=t7.prototype;f.qi="tooltip";f.$i=0;f.register=function(){sx(this,"mouseover",this.nq);sx(this,"mouseout",this.fj);sx(this,"click",this.fj);sx(this,"touchstart",this.nD);sx(this,"touchend",this.es);sx(this,"touchcancel",this.es)};f.dispose=function(){for(var a in this.j)this.fj(this.j[a]);this.j={}};
f.nq=function(a){if(!(this.$i&&1E3>y()-this.$i)){var b=parseInt(vi(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),M(b));var b=x(function(){u7(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(vi(a,"tooltip-show-delay"),10)||0,b=L(b,c);ti(a,"tooltip-show-timer",b.toString());a.title&&(tx(a,v7(a)),a.title="");b=ka(a).toString();this.j[b]=a}};
f.fj=function(a){var b=parseInt(vi(a,"tooltip-show-timer"),10);b&&(M(b),this.removeData(a,"tooltip-show-timer"));b=x(function(){w7(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);ti(a,"tooltip-hide-timer",b.toString());if(b=vi(a,"tooltip-text"))a.title=b;b=ka(a).toString();delete this.j[b]};f.nD=function(a,b,c){this.$i=0;a=ox(b,rx(this),c.changedTouches[0].target);this.nq(a)};f.es=function(a,b,c){this.$i=y();a=ox(b,rx(this),c.changedTouches[0].target);this.fj(a)};
function x7(a,b){tx(a,b);var c=vi(a,"content-id");(c=Ed(c))&&ee(c,b)}function v7(a){return vi(a,"tooltip-text")||a.title}
function u7(a,b){if(b){var c=v7(b);if(c){var d=Ed(y7(a,b));if(!d){d=document.createElement("div");d.id=y7(a,b);d.className=rx(a,"tip");var e=document.createElement("div");e.className=rx(a,"tip-body");var g=document.createElement("div");g.className=rx(a,"tip-arrow");var h=document.createElement("div");h.className=rx(a,"tip-content");var k=z7(a,b),l=y7(a,b,"content");h.id=l;ti(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Ph()||document.body).appendChild(d);
x7(b,c);(c=parseInt(vi(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",N(h,rx(a,"normal-wrap")));h=mh(b,rx(a,"reverse"));A7(a,b,d,e,k,h)||A7(a,b,d,e,k,!h);var p=rx(a,"tip-visible");L(function(){N(d,p)},0)}}}}
function A7(a,b,c,d,e,g){O(c,rx(a,"tip-reverse"),g);a=0;g&&(a=1);var h=Wg(b);g=new Qc((h.width-10)/2,g?h.height:0);var k=Pg(b);F6(new Qc(k.x+g.x,k.y+g.y),c,a);var k=Kd(window),l=Sg(c);c=Wg(d);var p=Math.floor(c.width/2);a=!!(k.height<l.y+h.height);h=!!(l.y<h.height);g=!!(l.x<p);k=!!(k.width<l.x+p);l=(c.width+3)/-2- -5;b=vi(b,"force-tooltip-direction");if("left"==b||g)l=-5;else if("right"==b||k)l=20-c.width-3;b=Math.floor(l)+"px";d.style.left=b;e&&(e.style.left=b,e.style.height=c.height+"px",e.style.width=
c.width+"px");return!(a||h)}function w7(a,b){if(b){var c=Ed(y7(a,b));c&&(B7(c),Wd(c),a.removeData(b,"content-id"))}}function y7(a,b,c){a=rx(a)+sh(b);c&&(a+="-"+c);return a}function z7(a,b){var c=null;id&&mh(b,rx(a,"masked"))&&((c=Ed("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Rw(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=rx(a,"tip-mask")));return c}
function B7(a){var b=Ed("yt-uix-tooltip-shared-mask"),c=b&&oe(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Sw(b),document.body.appendChild(b))};function C7(a,b){ph(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&N(a,b);w7(t7.getInstance(),a)};function D7(a){Sz.call(this);this.o=null;this.j=new GB(a,x(this.D,this),x(this.F,this));R(this,this.j);this.label=Z("YTP_AUDIO_TRACK_TITLE");this.element=new BB(a,void 0,this.j);R(this,this.element);DB(this.element,100);this.element.kb(this.label);this.priority=0;this.B=!0}z(D7,Sz);function E7(a,b){a.o!=b&&(a.o=b,a.j.j(b),a.element.ue(a.D(b)))}D7.prototype.D=function(a){return a.name};D7.prototype.F=function(a){this.element.te();E7(this,a);this.element.$b("change")};function F7(a){Sz.call(this);this.label=Z("YTP_AUTOPLAY");this.element=new Yz(a,[Z("YTP_OFF"),Z("YTP_ON")]);R(this,this.element);this.element.kb(this.label);$z(this.element,2050);this.priority=4;this.j(0)}z(F7,Sz);F7.prototype.j=function(a){this.element.j(a)};function G7(a){Tz.call(this,a);Vz(this,6900);H7(this)}z(G7,Tz);function H7(a){Uz(a,"ytp-button-fullscreen-enter");var b=Z("YTP_FULLSCREEN");a.kb(b);a.A=b};function I7(a,b,c){Y.call(this,["div","ytp-menu-container",{tabIndex:-1,role:"menu","aria-labelledby":b},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.B=a;this.A=c||!1;this.j=[];this.o=[]}z(I7,Y);f=I7.prototype;f.add=function(a){for(var b=this.j.length,c=0;c<this.j.length;c++){if(this.j[c]==a)return;if(c<b&&this.j[c].priority<a.priority){b=c;break}}ub(this.j,b,0,a);J7(this)};f.remove=function(a){ob(this.j,a);J7(this)};
function J7(a){Ai(a.o);a.o=[];var b,c,d=[],e=1==a.j.length||a.A;e&&a.j.length&&(c=new Y(["div","ytp-menu-row",["div","ytp-menu-cell",a.j[0].label]]),d.push(c));var g=!1;for(b=0;b<a.j.length;b++)g=g||a.j[b].C;var h=g?["ytp-menu-cell","ytp-menu-cell-span"]:"ytp-menu-cell";for(b=0;b<a.j.length;b++){var k=a.j[b];c=k.B;c=e?!g||c?new Y(["div","ytp-menu-row",["div",h,"{{content}}"]]):new Y(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.B?new Y(["div",
"ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div",h,"{{content}}"]]):new Y(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.za(k.element);c.za(K7(a,k),"more");d.push(c)}a.za(d)}function K7(a,b){if(b.C){var c=Z("YTP_OPTIONS"),d=new Tz(a.B,"ytp-menu-more-options",c);Vz(d,2700);d.za(c);a.o.push(d);d.M("click",b.H,b);return d}return null}f.focus=function(){this.Q().focus()};
f.gj=function(){return this.j.length};f.P=function(){this.j=[];J7(this);I7.K.P.call(this)};function L7(a){Tz.call(this,a,"ytp-button-next",Z("YTP_NEXT"),Z("YTP_NEXT"));Vz(this,6051)}z(L7,Tz);function M7(a){Tz.call(this,a);Vz(this,6E3);N7(this)}z(M7,Tz);function N7(a){Uz(a,"ytp-button-play");var b=Z("YTP_PLAY");a.kb(b)};function O7(a){Tz.call(this,a,"ytp-button-prev",Z("YTP_PREVIOUS"),Z("YTP_PREVIOUS"));Vz(this,6050)}z(O7,Tz);function P7(a){Sz.call(this);this.F=this.G="unknown";this.I={};this.label=Z("YTP_QUALITY_TITLE");this.o=new GB(a,x(this.D,this),x(this.J,this),!0);R(this,this.o);this.j=NaN;this.element=new BB(a,void 0,this.o);R(this,this.element);DB(this.element,100);this.element.kb(this.label);this.priority=-1;this.B=!0}z(P7,Sz);P7.prototype.zl=function(){return this.G};
function Q7(a,b,c){a.G=b;a.F=c;a.o.j(c);var d=a.o;null!=d.o&&FB(IB(d,d.o),!1);null!=b&&FB(IB(d,b),!0);d.o=b;"auto"==c&&c!=b?(b=Z("YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:R7(a,b)}),b=new cF(b)):b=a.D(b);isNaN(a.j)||(Tw()?Ww(a.j):M(a.j));Tw()?a.j=Vw(x(a.element.ue,a.element,b),0):a.j=L(x(a.element.ue,a.element,b),0)}function R7(a,b){var c=Kt[b],c=c?c+"p":Zf("YTP_AUTO"),d=a.I[b];return d&&30<d?c+d.toString():c}
P7.prototype.D=function(a){var b=["span","",R7(this,a)],c;"highres"==a?c="8K":"hd2880"==a?c="5K":"hd2160"==a?c="4K":0==a.indexOf("hd")&&(c="HD");c&&(b.push(" "),b.push(["sup","",c]));return new iv(b)};P7.prototype.J=function(a){this.element.te();if("auto"!=this.F||"auto"!=a)Q7(this,a,a),this.element.$b("change")};P7.prototype.P=function(){Tw()?Ww(this.j):M(this.j);P7.K.P.call(this)};function S7(a){nB.call(this,a,"ytp-size-toggle-large",Z("YTP_THEATER_MODE"),"ytp-size-toggle-small",Z("YTP_DEFAULT_VIEW"));Vz(this,6800)}z(S7,nB);S7.prototype.update=function(){S7.K.update.call(this);this.element.removeAttribute("aria-pressed")};function T7(a){Sz.call(this);this.o=2;this.label=Z("YTP_SPEED_TITLE");this.j=new GB(a,x(this.D,this),x(this.F,this));R(this,this.j);this.element=new BB(a,void 0,this.j);R(this,this.element);DB(this.element,100);this.element.kb(this.label);U7(this,this.o);this.priority=1;this.B=!0}z(T7,Sz);function U7(a,b){a.o=b;a.j.j(b);a.element.ue(a.D(b))}T7.prototype.D=function(a){return 1==a?Z("YTP_NORMAL_SPEED"):a.toString()};T7.prototype.F=function(a){this.element.te();U7(this,a);this.element.$b("change")};function V7(){Y.call(this,["div",["ytp-time-display","html5-control"],{"aria-hidden":"true"},["span","ytp-time-current","{{current}}"],["span","ytp-time-separator"," / "],["span","ytp-time-duration","{{duration}}"],["span","ytp-time-live-badge","Live"]]);this.liveBadge=this.template.j["ytp-time-live-badge"]}z(V7,Y);V7.prototype.Yf=function(a){nv(this.template,"duration",tv(a))};function W7(a,b,c){O(a.element,"ytp-time-liveonly",b&&!c);O(a.element,"ytp-time-live",b&&c)}
V7.prototype.P=function(){this.liveBadge=null;V7.K.P.call(this)};function X7(a,b){this.F=a;Y.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.j=new Tz(this.F,"ytp-button-volume",Z("YTP_BUTTON_VOLUME"));R(this,this.j);this.j.ea(this.element,0);Vz(this.j,6100);this.B=this.template.j["ytp-volume-panel"];this.A=this.template.j["ytp-volume-slider"];
this.C=this.template.j["ytp-volume-slider-foreground"];this.o=b}z(X7,Y);X7.prototype.kb=function(a){this.j.kb(a)};
X7.prototype.setVolume=function(a,b){var c=Z(b?"YTP_UNMUTE":"YTP_MUTE");this.j.A=c;var c=Math.round(a),d=c+"% "+Z("YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Z("YTP_SCREENREADER_VOLUME_MUTED"):"");this.kb(Z(b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Z("YTP_SCREENREADER_CONTROL_TOGGLE"));nv(this.template,"valuenow",c);nv(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");ti(this.j.Q(),"value",c);c=(this.o?85:54)-
(this.o?7:5);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.C.style.left=c+"px"};function Y7(a,b){PD.call(this,["div","html5-video-controls"]);this.Ba=a;this.ta=new Kv(this);this.G={};this.C=null;this.Z=new Kv(this);this.oa=-1;this.na=null;this.ga=new d3(a,b);R(this,this.ga);this.ga.ea(this.element);var c=new iv(["div","html5-player-chrome"]);R(this,c);c.ea(this.element);c=c.Q();this.ma=this.U=!1;this.Y=new O7(a);R(this,this.Y);this.Y.M("click",pa(this.L,"previousvideo"),this);this.Y.ea(c);this.B=new M7(a);R(this,this.B);this.B.ea(c);this.B.M("click",this.BC,this);this.da=new L7(a);
R(this,this.da);this.da.M("click",pa(this.L,"nextvideo"),this);this.da.ea(c);var d=new iv(["span","ytp-volume-hover-area"]);R(this,d);d.ea(c);this.j=new X7(a,b);R(this,this.j);this.j.ea(d.Q());this.j.j.M("click",this.mD,this);this.aa=new S2(this.j.A,!0);R(this,this.aa);this.aa.subscribe("dragstart",this.rC,this);this.aa.subscribe("dragmove",this.qC,this);this.aa.subscribe("dragend",this.pC,this);this.F=new V7;R(this,this.F);this.F.ea(d.Q());this.ta.M(this.F.liveBadge,"click",pa(this.L,"seekto",Infinity));
this.Aa=new S2(this.j.Q());R(this,this.Aa);this.Aa.subscribe("hoverstart",this.rG,this);this.ua=new S2(d.Q());R(this,this.ua);this.ua.subscribe("hoverend",this.qG,this);this.J=new G7(a);R(this,this.J);this.J.ea(c);this.J.M("click",this.MB,this);this.A=new S7(a);R(this,this.A);this.A.$();this.A.ea(c);this.A.M("click",this.EB,this);this.I=new Tz(a,"ytp-button-watch-on-youtube",Z("YTP_URL_NAVIGATE"),Z("YTP_URL_NAVIGATE"));R(this,this.I);Vz(this.I,6700);this.I.ea(c);this.I.M("click",this.wC,this);this.N=
new PB(a);R(this,this.N);Z7(this,"__default__",this.N,this.I.Q());this.sa=new Tz(a,"ytp-button-playlist",Z("YTP_PLAYLIST"),Z("YTP_PLAYLIST"));Vz(this.sa,6400);this.sa.ea(c);R(this,this.sa);this.o=new Tz(a,"ytp-button-watch-later",Z("YTP_WATCH_LATER"));a.qg(this.o.Q(),"YTP_WATCH_LATER_AS_2",Z("YTP_WATCH_LATER"));this.o.ea(c);Vz(this.o,6300);this.o.kb(Z("YTP_WATCH_LATER"));R(this,this.o);this.o.M("click",this.uC,this);this.H=new P7(a);R(this,this.H);this.H.M("change",this.mB,this);this.S=new T7(a);
R(this,this.S);this.S.M("change",this.FB,this);this.O=new D7(a);R(this,this.O);this.O.M("change",this.Nz,this);this.R=new F7(a);R(this,this.R);this.R.M("change",this.Qz,this)}z(Y7,PD);f=Y7.prototype;f.Pu="__default__";f.tm=!1;f.disable=function(a){$7(this,a,!0)};function $7(a,b,c){for(var d=0;d<b.length;d++)switch(b[d]){case "audio":O(a.element,"disabled-control-audio",c);break;case "play_pause":var e=a.B;c?e.disable():Xz(e);break;case "seek":O(a.element,"disabled-control-seek",c)}}
f.setVolume=function(a,b){if(this.oa!=a||this.na!=b)this.j.setVolume(a,b),this.oa=a,this.na=b};f.Yf=function(a){this.F.Yf(a)};f.mD=function(){this.L("mutetoggled")};function a8(a,b){if(b){if(a.tm){var c=a.B;Uz(c,"ytp-button-stop");var d=Z("YTP_STOP")}else c=a.B,Uz(c,"ytp-button-pause"),d=Z("YTP_PAUSE");c.kb(d)}else N7(a.B)}function b8(a){var b=a.da;a.U||a.ma?b.va():b.$();b=a.Y;a.U?b.va():b.$()}f.BC=function(){this.L("playpausetoggled")};f.rG=function(){N(this.j.Q(),"ytp-volume-control-hover")};
f.qG=function(){oh(this.j.Q(),"ytp-volume-control-hover")};f.rC=function(){N(this.j.Q(),"ytp-volume-slider-active");this.L("volumechangestart")};f.qC=function(a){a=(a-Pg(this.j.A).x)/(this.j.o?85:54)*100;a={volume:Pc(a,0,100),muted:!1};this.L("volumechanged",a)};f.pC=function(){oh(this.j.Q(),"ytp-volume-slider-active");this.L("volumechangeend");this.j.B.blur()};f.MB=function(){this.L("fullscreentoggled")};function c8(a,b){var c=a.G[b.A||"__default__"].menu;c&&c.add(b)}
function d8(a,b){var c=a.G[b.A||"__default__"].menu;c&&c.remove(b)}function Z7(a,b,c,d){if(!a.G[b]){if("remote"==b){var e=be(a.N.Q());d=c.Q();e.insertBefore(d,e.childNodes[0]||null)}else e=c.Q(),d=d||a.N.Q(),d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling);e=c.M("click",pa(a.pG,b),a);c.Q().getAttribute("aria-label");d=c.Q().id;d=new I7(a.Ba,d,"__default__"!=b);d.$();d.ea(a.element);a.G[b]={menu:d,button:c,uw:e}}}
function e8(a,b){var c=a.G[b];c&&(c.button.detach(),c.button.Ia(c.uw),c.menu.dispose(),delete a.G[b])}f.uC=function(){var a=this.o.Q();if(!mh(a,"html5-async-progress")){var b=mh(a,"html5-async-success");C7(a,"html5-async-progress");this.L("watchlater",b)}};f.wC=function(){this.L("watchonyoutube")};f.oG=function(a){a.target&&(ce(this.C.button.Q(),a.target)||ce(this.C.menu.Q(),a.target))||this.Ef()};f.Ef=function(){this.L("menu_show")};
f.pG=function(a){var b=this.G[a];b&&b.menu.gj()&&(b.button.j?this.Ef():this.L("menu_show",a))};f.Nz=function(){this.L("audiotrackchanged",this.O.o);this.Ef()};f.mB=function(){var a=this.H.zl();this.L("qualitychanged",a);this.L("controlclick","quality-"+a);this.Ef()};f.EB=function(){var a=this.A;a.j?pB(a):oB(a);this.A.Q().focus();this.L("sizechangerequested",1==this.A.j)};f.FB=function(){var a=this.S.o;this.L("speedchanged",a);this.L("controlclick","speed-"+a);this.Ef()};
f.Qz=function(){this.L("autonavchangerequest",1==this.R.element.A?2:1)};f.lA=function(a){var b=a.target;a=b==this.B.Q()?"playpause":b==this.j?"volume":b==this.F?"time":b==this.N?"settings":b==this.o?"watchlater":b==this.I?"youtube":b==this.J.Q()?"fullscreen":b==this.A?"size":a.target.className;this.L("controlclick",a)};f.focus=function(){this.B.Q().focus()};f.P=function(){this.ta.removeAll();this.Z.removeAll();this.C=null;for(var a in this.G)e8(this,a);this.oa=-1;this.na=null;Y7.K.P.call(this)};function f8(a){g8("add_to_watch_later_list",a)}function h8(a){g8("delete_from_watch_later_list",a)}function g8(a,b){Gj("/playlist_video_ajax?action_"+a+"=1",{method:"POST",dg:{feature:b.GK||null,authuser:b.mb||null,pageid:b.pageId||null},Ib:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.HK||null,delete_from_playlists:b.LK||null,add_to_playlists:b.BK||null,plid:Tf("PLAYBACK_ID")||null},context:b.context,onError:b.onError,jb:b.jb,Wb:b.Wb})};function i8(a,b){Q.call(this);this.H=a;this.F=[];this.I=b;this.G=[]}z(i8,Q);function j8(a,b,c){a.F.push(a.H.subscribe(b,c,a))}function k8(a,b,c){a.G.push(a.I.subscribe(b,c,a))}function l8(a){for(var b=0;b<a.F.length;b++)a.H.Pb(a.F[b]);for(b=0;b<a.G.length;b++)a.I.Pb(a.G[b])}i8.prototype.P=function(){l8(this);i8.K.P.call(this)};function m8(a,b,c,d){i8.call(this,a,b);this.D=!1;this.C=a;this.j=b;this.B=c;this.o=0;this.A=d;a=a.W();a.color&&N(this.j.I,a.color);a.kf&&(a=this.j,a.o=new b3,a.o.ea(a.Q()),R(a,a.o));n8(this)}z(m8,i8);
function n8(a){l8(a);a.D=!0;j8(a,"cuerangesadded",a.nx);j8(a,"cuerangesremoved",a.ox);j8(a,"cuerangemarkersupdated",a.mx);j8(a,"progresssync",a.Yt);j8(a,"resize",a.Vx);j8(a,"seekto",a.ZF);j8(a,"videodatachange",a.$F);j8(a,"videoplayerreset",a.Xt);j8(a,"videoready",a.by);k8(a,"beginseeking",a.ax);k8(a,"endseeking",a.rx);k8(a,"seekto",a.Zw)}f=m8.prototype;f.nx=function(a){m3(this.j,a)};f.ox=function(a){for(var b=this.j,c=0;c<a.length;c++)n3(b,a[c])};f.mx=function(a){m3(this.j,a)};
f.Vx=function(a){var b=this.j;b.A=a.width;e3(b);b=this.B;b.j=a;b.o&&b.A&&r7(b);b=this.A;!b.o||b.C==a.width&&b.da||(b.C=a.width,o7(b,!0))};f.ZF=function(a){var b=this.C.yc.yh();a=Z2(new W2(b.seekableStart,b.seekableEnd),a);b=this.j;k3(b,n(a)?a:b.C,n(void 0)?void 0:b.R);b=this.A;if(b.o){b.J&&b.Mk();b.S=b.R*a-b.C/2;Jg(b.A,-1*b.S);var c=Y2(b.N,a),d=XH(b.o,b.j),d=b.o.j[d].mk(c);p7(b,d);ee(b.ma,tv(b.J?c-b.N.j:c));b.aa.Ki()}b=this.B;b.o&&b.A&&(a=Y2(b.C,a),c=XH(b.o,b.j.width),b.B=b.o.j[c].mk(a),r7(b))};
f.Xt=function(a){if(1!=a.getPlayerType()){if(!this.D)return;l8(this);this.D=!1;j8(this,"videoplayerreset",this.Xt)}else if(!this.D){n8(this);var b=this.j;Vd(b.oa);b.H={};b.U={};m3(this.j,a.D.j.j||[])}this.j.o&&this.j.o.reset();this.o&&(M(this.o),this.o=0);this.A.$();this.B.$();this.Yt()};
f.$F=function(a,b){var c=new W2(0,b.lengthSeconds),d=this.j;d.j=c;l3(d);e3(d);this.j.o&&(this.j.o.o=c);this.A.N=c;this.B.C=c;c=this.j;d=b.clipEnd;c.S=b.clipStart;c.O=d;j3(c);k3(c,c.C,c.R);c=this.j;d=!!b.ba;c.Za=d;O(c.ma,"ytp-fast-load",d)};
f.by=function(a){if(this.j.o){var b=this.j.o;b.ti||(fJ(a)?(N(b.Q(),"with-thumbnail"),b.gf=fJ(a),b.Kh=gJ(a),b.Kh.subscribe("l",b.gG,b)):b.reset())}b=this.A;b.U&&(Vd(b.A),b.B=0,b.F=0);oh(b.Q(),"enabled");b.o=fJ(a);b.G=gJ(a);b.J=a.Qa;b.o&&(N(b.Q(),"enabled"),b.G.subscribe("l",b.ks,b),o7(b),Ww(b.H),b.H=Vw(x(b.Mk,b)));b=this.B;b.o=fJ(a);b.A=gJ(a);this.j.ab=a.xb;o3(this.j,!jJ(a))};
f.Yt=function(a,b){var c=this.C.yc.yh(),d=n(a)?a:c.current,e=new W2(c.seekableStart,n(b)?b:c.seekableEnd),c=Z2(e,c.loaded),d=Z2(e,d),g=this.j;g.j=e;l3(g);e3(g);g=this.j;k3(g,n(d)?d:g.C,n(c)?c:g.R);this.j.o&&(this.j.o.o=e);this.A.N=e;this.B.C=e};f.ax=function(a){x2(this.C.o);null==a||isNaN(a)||this.C.ek("chaptermarker",{position:a});this.o&&M(this.o);this.o=L(x(this.ZC,this),200)};f.rx=function(){this.C.o.ik();this.A.$();this.B.$();this.o&&(M(this.o),this.o=0)};f.Zw=function(a,b){Rq(this.C,a,b)};
f.ZC=function(){this.A.va();this.B.va()};f.P=function(){m8.K.P.call(this)};function o8(a,b,c,d){i8.call(this,a,b);j8(this,"applicationplayerstatechange",this.Ww);j8(this,"controlsdisabled",this.jx);j8(this,"controlsenabled",this.kx);j8(this,"liveviewshift",this.ux);j8(this,"fullscreentoggled",this.tx);j8(this,"presentingplayerstatechange",this.Nx);j8(this,"progresssync",this.nG);j8(this,"videoplayerreset",this.mG);j8(this,"videodatachange",this.lG);j8(this,"onPlaybackQualityChange",this.Sx);j8(this,"onVolumeChange",this.jy);j8(this,"menu_button_add",this.yx);j8(this,"menu_button_remove",
this.zx);j8(this,"menu_item_add",this.Ax);j8(this,"menu_item_remove",this.Bx);j8(this,"menu_show",this.jG);j8(this,"onPlaybackRateChange",this.Mx);j8(this,"onPlaylistUpdate",this.Px);j8(this,"autonavchange",this.iG);k8(this,"fullscreentoggled",this.lx);k8(this,"mutetoggled",this.Hx);k8(this,"nextvideo",this.Ix);k8(this,"playpausetoggled",this.Lx);k8(this,"previousvideo",this.Qx);k8(this,"qualitychanged",this.Tx);k8(this,"audiotrackchanged",this.Yw);k8(this,"seekto",this.kG);k8(this,"sizechangerequested",
this.Zx);k8(this,"speedchanged",this.$x);k8(this,"volumechanged",this.ky);k8(this,"volumechangestart",this.iy);k8(this,"volumechangeend",this.hy);k8(this,"watchlater",this.ly);k8(this,"watchonyoutube",this.my);k8(this,"controlclick",this.ix);k8(this,"showdialog",this.YC);k8(this,"menu_show",x(a.ej,a));k8(this,"autonavchangerequest",this.hG);this.j=a;this.o=b;this.A=NaN;this.B=new m8(a,b.ga,c,d);R(this,this.B);a=a.W();a.Lc&&(b=this.o,this.j.W().J?oB(b.A):pB(b.A),b.A.va());a.Yh||this.o.o.$();a.Fa&&
this.o.J.va();a.ba&&(b=this.o,c=b.S,HB(c.j,cr(this.j)),d=2300,KB(c.j,d++),d=d++,Vz(c.element.j,d),c8(b,b.S));if(a.experiments.j)for(b=this.o,c=[b.B,b.j,b.F,b.o,b.I,b.J,b.N,b.A],d=0;d<c.length;d++)b.ta.M(c[d].Q(),"click",b.lA,b);(Yq(a)||a.experiments.O&&a.ta)&&this.o.I.$()}z(o8,i8);f=o8.prototype;f.jx=function(a){this.o.disable(a)};f.kx=function(a){$7(this.o,a,!1)};f.ux=function(a){O(this.o.F.element,"ytp-time-live-dvr",!a)};
f.tx=function(a){var b=this.o;this.j.W();a?(a=b.J,Uz(a,"ytp-button-fullscreen-exit"),b=Z("YTP_EXIT_FULLSCREEN"),a.kb(b),a.A=b):H7(b.J);p8(this)};f.Nx=function(a){X(a.state,2)||(0<Gv(a,8)?a8(this.o,!0):0>Gv(a,8)?a8(this.o,!1):0>Gv(a,2)&&a8(this.o,X(a.state,8)));0>Gv(a,16)&&q8(this,this.j.getCurrentTime())};f.Ww=function(a){if(X(a.state,2)&&!EE(this.j)){a=this.o.B;Uz(a,"ytp-button-replay");var b=Z("YTP_REPLAY");a.kb(b)}};
f.mG=function(a){r8(this)&&(q8(this,a.getCurrentTime()),C7(this.o.o.Q()),U7(this.o.S,1),a.getVideoData()&&s8(this,a.getVideoData()))};f.lG=function(a,b){r8(this)&&s8(this,b)};function p8(a){a.j.B?(a=a.o,a.U=!0):(a=a.o,a.U=!1);b8(a)}function t8(a){!xE(a.j.W())||a.j.B||a.j.getVideoData().Qa?(a=a.o,a.ma=!1,b8(a),d8(a,a.R)):(a=a.o,a.ma=!0,b8(a),c8(a,a.R))}
function s8(a,b){a.o.Yf(b.lengthSeconds);var c=er(a.j),d=a.o,e=hr(c),g=c.j.A?Vt(c.j.A):{},h=d.H;h.I=g;HB(h.o,e);KB(h.o,2600);Vz(h.element.j,2601);e.length?c8(d,d.H):d8(d,d.H);d=a.o;e=dr(a.j);g=u8(a.j);Q7(d.H,e,g);QB(d.N,e);d=a.o;c=c.j.A?c.j.A.audioTracks:[];HB(d.O.j,c);1<c.length?c8(d,d.O):d8(d,d.O);(c=jD(a.j))&&E7(a.o.O,c);c=a.o;d=b.Qa;e=b.xb;c.tm=d&&!e;W7(c.F,d,e);c=er(a.j,1).getPlayerState();X(c,2)||a8(a.o,X(c,8));p8(a);t8(a)}
f.Sx=function(a){if(r8(this)){var b=this.o,c=u8(this.j);Q7(b.H,a,c);QB(b.N,a)}};f.jy=function(a){this.o.setVolume(a.volume,a.muted)};f.Ax=function(a){c8(this.o,a)};f.Bx=function(a){d8(this.o,a)};f.yx=function(a,b){Z7(this.o,a,b)};f.zx=function(a){e8(this.o,a)};
f.jG=function(a){if(a==Y7.prototype.Pu&&this.j.F.isAvailable("captions")){var b=jr(this.j.F,"captions");b&&!b.loaded&&b.load()}b=this.o;b.Z.removeAll();b.C&&(document.activeElement&&ce(b.C.menu.Q(),document.activeElement)&&be(b.element).focus(),b.C.menu.$(),pB(b.C.button),b.C=null);a&&(a=b.G[a])&&(b.L("showdialog"),b.C=a,oB(a.button),a.menu.va(),a.menu.focus(),b.Z.M(window,"blur",b.Ef),b.Z.M(document,"click",b.oG))};f.nG=function(a){q8(this,n(a)?a:this.j.yc.yh().current)};
f.lx=function(){Zq(this.j,!this.j.W().hb)};f.Hx=function(){this.j.I.muted?Vq(this.j):Uq(this.j)};f.Ix=function(){tr(this.j)};f.Lx=function(){v8(this.j)};f.Qx=function(){ur(this.j)};f.Tx=function(a){Tr(this.j,a,1)};f.Yw=function(a){var b=er(this.j,1);if(b&&!b.ka()&&!X(b.C,128)&&b.j.A.j&&(b=b.A,!b.ka())){var c=b.D;a=a.id;c.C="m";c.B=c.G.j[a];c.H=U_(c);b.L("audioformatchange",new O_(c.H,c.A,c.C));T0(b,b.A,U_(b.D));m0(b.A);Q0(b)}};f.YC=function(a){this.j.En(a)};f.kG=function(a){Rq(this.j,a,!0)};
f.Zx=function(a){var b=this.j;Zq(b,!1);a!=b.j.J&&(b.j.J=a,b.L("SIZE_CLICKED",a))};f.$x=function(a){br(this.j,a)};f.iy=function(){this.A=Tq(this.j)};f.ky=function(a){w8(this.j,a)};f.hy=function(){Tq(this.j)||w8(this.j,{muted:!0,volume:this.A})};f.my=function(){Z6(this.j)};f.ix=function(a){K6(this.j,a)};f.ly=function(a){(a?h8:f8).call(this,x8(this,a?this.HB:this.IB))};f.Mx=function(a){U7(this.o.S,a)};f.Px=function(){p8(this);t8(this)};f.iG=function(a){this.o.R.j(1==a?0:1)};
f.hG=function(a){this.j.L("onAutonavChangeRequest",1!=a)};function x8(a,b){return{videoIds:Cr(a.j).videoId,mb:a.j.W().mb,pageId:a.j.W().pageId,jb:b,onError:a.yA,context:a}}f.IB=function(){var a=this.o.o.Q();C7(a,"html5-async-success");this.j.L("WATCH_LATER_VIDEO_ADDED")};f.HB=function(){C7(this.o.o.Q());this.j.L("WATCH_LATER_VIDEO_REMOVED")};f.yA=function(a,b){var c=b&&b.error_message,d=this.o.o.Q();C7(d,"html5-async-error");if(c){var e=t7.getInstance(),g=v7(d);x7(d,c);u7(e,d);tx(d,g)}};
function r8(a){return 1==er(a.j).getPlayerType()}function q8(a,b){if(r8(a)&&(nv(a.o.F.template,"current",tv(b)),14400<b&&a.j.getVideoData().xb)){var c=a.o;c.tm=!0;W7(c.F,!0,!1)}};var y8={0:[],1:["autohide-controls"],2:["autohide-controls-aspect","autohide-controls-fullscreen","autominimize-progress-bar-non-aspect"],3:["autominimize-progress-bar"]};
function z8(a){n6.call(this,a);this.Ba=this.da=this.ga=this.J=this.Ya=this.G=null;this.Aa=this.bb=this.Ma=!1;a=a.W();if("1"==a.o){this.J=new Y7(this.B,a.bd);R(this,this.J);this.J.ea(this.element);this.ga=new q7(this.B);var b=this.ga.Q();this.A.appendChild(b);R(this,this.ga);this.da=new n7(this.B.wb().width);this.da.ea(this.J.ga.Q(),0);R(this,this.da);this.Ba=new o8(this.j,this.J,this.ga,this.da);R(this,this.Ba)}this.O=new J5(60);R(this,this.O);N(this.O.element,"html5-video-loader");N(this.O.element,
"html5-center-overlay");N(this.O.element,"ytp-scalable-icon-grow");this.O.ea(this.A);this.ab=new Y(["div","ytp-clickguard"]);R(this,this.ab);this.ab.ea(this.element);this.U=new s7(a.isMobile,a.Nb,a.Xh);R(this,this.U);this.U.ea(this.A);this.U.M("click",this.ij,this);this.ua=null;this.I=new j6(new i6(this.element),x(this.sG,this),a.bd);this.I.subscribe("autohideupdate",x(this.uG,this));this.Fa=!0;this.C=new g7(this.B);R(this,this.C);this.C.$();this.C.ea(this.element)}z(z8,n6);f=z8.prototype;
f.Jk=function(){z8.K.Jk.call(this);this.j.subscribe("appstatechange",this.Xw,this);this.j.subscribe("initializingmode",this.ny,this);this.j.subscribe("onDetailedError",this.vG,this);this.j.subscribe("clearvideooverlays",this.Il,this);this.j.subscribe("menu_show",this.tG,this)};f.Zn=function(){z8.K.Zn.call(this);this.ll(this.j.W());this.Kk()};f.sG=function(a){if(ce(this.A,a))return!1;for(;!a||!je(a);){if(!a||a==this.element)return!1;a=be(a)}return!0};
f.uG=function(a){O(this.element,"ytp-block-autohide",!a);this.j.Ra(a?"onHideControls":"onShowControls")};
f.ll=function(a){"light"==a.theme&&this.addClass("light-theme");(a.jc||"0"==a.o)&&this.addClass("modest-branding");a.je&&this.addClass("html5-hide-share");a.lf||this.addClass("html5-hide-volume");a.bd&&(this.addClass("html5-tablet"),N(document.body,"html5-tablet-body"));"1"==a.o&&A8(this)&&this.addClass("ideal-aspect");!this.I.j||this.addClass("ytp-block-autohide");O(this.element,"hide-info-bar",!a.ta);"1"==a.o&&nh(this.element,y8[a.Ya])};
f.Jg=function(a){z8.K.Jg.call(this,a);B8(this,a);this.G&&m7(this.G);"1"==this.j.W().o&&O(this.element,"ideal-aspect",A8(this));this.C.D&&h7(this.C)};f.Ll=function(){z8.K.Ll.call(this);B8(this,this.sb())};f.Xw=function(a){(this.Fa=2==a)?(this.addClass("cued-mode"),this.U.o(this.j.B,this.j.getVideoData())):this.removeClass("cued-mode")};
f.Kl=function(a){z8.K.Kl.call(this,a);if(this.element){X(a.state,2)&&this.U.o(this.j.B,this.j.getVideoData());this.I.Ab(128,!(X(a.state,8)&&!X(a.state,32)&&!X(a.state,2)));var b;b=a.state;if(X(b,2))b=["ended-mode"];else{var c=[];X(b,8)?c.push("playing-mode"):X(b,4)&&c.push("paused-mode");X(b,1)&&!X(b,32)&&c.push("buffering-mode");X(b,32)&&c.push("seeking-mode");X(b,64)&&c.push("unstarted-mode");b=c}G(b,"ended-mode")&&((c=C8())&&c.autoPlay||EE(this.j))&&ob(b,"ended-mode");this.ua&&ph(this.element,
this.ua);nh(this.element,b);this.ua=b;b=er(this.j);c=b.getPlayerState();if(c=X(c,1)&&!X(c,2))c=b.getPlayerState(),c=!X(c,4);c&&2!=b.getPlayerType()?this.O.va():this.O.$();0>Gv(a,64)&&D8(this.j)}};
f.Kk=function(){this.j.W().bd&&(sv(this,this.element,"gesturechange",this.hC),sv(this,this.element,"gestureend",this.iC));ms?this.A.onclick=x(function(a){this.Gm(new yh(a))},this):this.Lk();var a,b=x(function(){var b=this.o;b&&(us(b),fE.fillPool(4),this.Ia(a))},this);a=sv(this,this.element,"click",b,void 0,!0)};f.Lk=function(){sv(this,this.A,"click",this.Gm);sv(this,this.A,"dblclick",this.pr)};f.ij=function(){v8(this.j)};f.Rt=function(){this.I.Ab(2,!0)};
f.Gm=function(a){ne(a.target,"html5-stop-propagation")||(this.element.focus(),"3"!=this.j.W().o&&this.ij());K6(this.j,"screenclick")};f.pr=function(a){6!=this.j.J&&this.j.W().Fa&&(!ne(a.target,"html5-stop-propagation")&&Kx(this.j),K6(this.j,"screendoubleclick"))};f.hC=function(a){var b=a.scale,c=this.j.W().hb;b*(c?-1:1)>(c?-.7:1.3)&&Kx(this.j);a.preventDefault()};f.iC=function(a){a=a.scale;var b=this.j.W().hb;a*(b?-1:1)>(b?-.9:1.1)&&Kx(this.j)};
function A8(a){a=a.wb();a=(a.width/a.height).toFixed(1);return"1.3"==a||"1.8"==a}f.og=function(a){if(a){var b=this.C;b.j=a;b.za(a);this.C.va();this.I.Ab(32,!0)}else b=this.C,b.j=null,b.za(null),this.C.$(),this.I.Ab(32,!1);this.Ma=!!a;E8(this)};f.tG=function(a){a=!!a;O(this.element,"ytp-menu-shown",a);this.I.Ab(64,a);this.bb=a;E8(this)};function E8(a){var b=a.bb||a.Ma;a.Aa!=b&&(a.Aa=b,a.j.L("onAutonavPauseRequest",a.Aa))}
f.vG=function(a){if(this.element){this.G||(this.G=new l7(this.j.yc),this.G.ea(this.element),R(this,this.G));var b=this.G,c=b.A.W(),d=a.message,e="embedded"==c.ja;a=a.messageKey;var g,h=!1;"YTP_ERROR_GENERIC"!=a||c.Nb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==a?(g="https://get.adobe.com/flashplayer/",e=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=a||c.Nb||(g="/html5",a="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(g="//support.google.com/youtube/?p=player_error1",a="YTP_ERROR_GENERIC_WITH_LINK_2",
Yq(c)&&(h=!0));g&&(d=Zf(a,{BEGIN_LINK:'<br/><a href="'+g+'"'+(e?' target="_blank"':"")+">",END_LINK:"</a>"}));Hh(b.o);b.o=[];nv(b.template,"content",new cF(d));if(h)for(c=x(b.B,b),d=b.element.getElementsByTagName("a"),e=0;e<d.length;e++)g=P(d[e],"click",c),b.o.push(g);this.G.va()}};f.sb=function(){var a=this.j.W();return"0"==a.o||"3"==a.o||"1"==a.Ya&&(a=er(this.j),!a||2!=a.getPlayerType())?this.wb():new H(this.A.clientWidth,this.A.clientHeight)};f.ny=function(){this.G&&this.G.$()};
f.ff=function(){var a=this.j.W();ti(document.documentElement,"player-size",a.hb?"fullscreen":a.J?"large":"small");z8.K.ff.call(this)};f.Il=function(a){this.I.Ab(16,a)};
function B8(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=Pc(e/g,.5,1),d=Fd("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++){var k=1==c?"":"scale("+c+")";Dg(d[h],"transform",k)}c=Pc(e/g*.33,.5,1);d=Fd("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)k=1==c?"":"scale("+c+")",Dg(d[h],"transform",k)}}f.$n=function(a){this.J&&a8(this.J,a)};
f.P=function(){this.I.dispose();Kh(this.element);Wd(this.Ya);z8.K.P.call(this);this.U=this.Ya=null};function F8(a){z8.call(this,a);this.R=new Y(["img",["html5-watermark","ytp-scalable-icon-shrink"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Z("YTP_WATERMARK")}]);R(this,this.R);this.R.$();this.R.ea(this.element);this.R.M("click",this.rr,this);this.F=new H6(this.j,this.element,this.B);R(this,this.F);this.F.ea(document.body);a.W().Nb&&N(this.F.Q(),"house-brand");this.ta=null;this.H=new W6(this.B,this.j);this.H.ea(this.element);R(this,this.H);this.H.subscribe("title-click",
x(this.rr,this));this.H.subscribe("share-click",x(this.BB,this));this.ma=new C6;R(this,this.ma);this.ma.ea(this.A);this.rs(F8.o/F8.j)}z(F8,z8);F8.o=3E4;F8.j=50;f=F8.prototype;f.jh=null;f.rs=function(a){var b;if(!(b=0>=a)){b=I("div",{"class":"html5-player-css-loaded"});document.body.appendChild(b);var c="none"==Hg(b,"display");Wd(b);b=c}b?0>=a&&Xf(Error("Warning: Player CSS missing.")):L(x(this.rs,this,a-1),F8.j)};f.ll=function(a){F8.K.ll.call(this,a);G8(this);a.Lc&&this.ff()};
function G8(a){O(a.element,"ytp-tiny-mode",290>a.wb().width)}f.Lk=function(){this.j.W().Fa?this.ta||(this.ta=new t6(this.A,x(this.Gm,this),x(this.pr,this)),R(this,this.ta)):F8.K.Lk.call(this)};f.vk=function(a){F8.K.vk.call(this,a);this.H&&this.H.update(a);var b=this.j;if(b.j.Zh?0:b.getVideoData().Z||b.j.ad){if(a=a.Z)this.R.Q().src=a;this.R.va()}};
f.Kk=function(){F8.K.Kk.call(this);var a=this.j.W();a.bd||(sv(this,this.element,"mousedown",this.Dw,void 0,!0),sv(this,this.element,"keydown",this.nz,void 0,!0));a.jf||(sv(this,this.element,"keypress",this.VF),sv(this,this.element,"keydown",this.UF),sv(this,this.element,"keyup",this.WF))};f.nz=function(a){var b=!1;switch(a.keyCode){case 32:case 13:if(b=a.target)a=a.target,b="BUTTON"==a.tagName||"A"==a.tagName||"button"==a.getAttribute("role");break;case 9:b=!0}b&&N(this.element,"ytp-keyboard-focus")};
f.Dw=function(){oh(this.element,"ytp-keyboard-focus")};
f.VF=function(a){var b=a.Rg(),c=a.keyCode;if(!b){if(179==c||178==c)179==c&&(this.L("playpausetoggled",!0),b=!0),178==c&&(Xq(this.j),b=!0);98==c&&(this.j.Pc("onBackgroundChange"),b=!0);111==c&&(this.j.Pc("onTextOpacityChange"),b=!0);119==c&&(this.j.Pc("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.j.Pc("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.j.Pc("onFontSizeDecrease"),b=!0;99==c&&(this.j.Pc("onCaptionsToggle"),b=!0);102==c&&(Kx(this.j),b=!0);32==c&&(H8(this),v8(this.j),b=!0);48<=c&&57>=
c&&(Rq(this.j,(c-48)/10*Sq(this.j)),b=!0);var d;if(d=63==c)d=this.j.W(),d=d.experiments.U?!Yq(d)||d.hb:!0;d&&(this.jh||(this.jh=new $6(this.B),R(this,this.jh),this.jh.M("done",this.Nl,this)),this.C.D?this.Nl():this.og(this.jh),b=!0);b&&a.preventDefault()}this.j.Pc("onKeyPress",a);this.j.W().Hb()&&this.j.ah("onKeyPress",{keyCode:c,handled:b})};
f.uk=function(a,b){switch(a){case 80:if(b)return ur(this.j),!0;break;case 78:if(b)return tr(this.j),!0;break;case 74:var c=this.j;c.oe(c.getCurrentTime()+-10,void 0,void 0,void 0);return!0;case 76:return c=this.j,c.oe(c.getCurrentTime()+10,void 0,void 0,void 0),!0;case 77:return this.j.I.muted?Vq(this.j):Uq(this.j),!0;case 75:return v8(this.j),!0;case 190:if(b&&this.j.W().ba)for(var c=cr(this.j),d=this.j.Z,e=0;e<c.length-1;e++)if(c[e]==d)return br(this.j,c[e+1]),!0;break;case 188:if(b&&this.j.W().ba)for(c=
cr(this.j),d=this.j.Z,e=c.length-1;1<=e;e--)if(c[e]==d)return br(this.j,c[e-1]),!0}return F8.K.uk.call(this,a,b)};
f.UF=function(a){var b=a.Rg(),c=a.keyCode;if(!b){if(38==c||40==c||37==c||39==c){b=5;a.ctrlKey&&(b*=2);if(38==c)b=this.j,w8(b,{volume:b.I.volume+5,muted:!1});else if(40==c)b=this.j,w8(b,{volume:b.I.volume-5,muted:!1});else if(37==c){var d=this.j,b=-1*b;Rq(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.j,Rq(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(Rq(this.j,0),b=!0);35==c&&(Rq(this.j,Infinity),b=!0);27==c&&(Ph()?(Zq(this.j,!1),b=!0):this.F&&this.F.D?(this.F.$(),b=!0):"1"==this.j.W().o&&
null!=this.J.C?(this.j.ej(),b=!0):this.C.D&&(this.Nl(),b=!0));(b||this.uk(a.keyCode,a.shiftKey))&&a.preventDefault()}this.j.Pc("onKeyDown",a);this.j.W().Hb()&&this.j.ah("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.j.W().hb})};f.WF=function(a){this.j.Pc("onKeyUp",a)};f.rr=function(){Z6(this.j)};
f.BB=function(){if("detailpage"==this.j.W().ja){Zq(this.j,!1);var a=this.j,b=a.getVideoData();a.L("SHARE_CLICKED",{videoId:b.videoId,listId:b.playlistId,feature:"player_"+a.j.ja})}else a=!U6(this.H),this.j.al(a),a&&V6(this.H,!0)};f.Il=function(a){F8.K.Il.call(this,a);V6(this.H,!1)};f.Nl=function(){this.og()};f.Xm=function(a){F8.K.Xm.call(this,a);this.F&&(a?this.F.ea(this.Q()):this.F.ea(document.body),this.F.$());a&&"1"==this.j.W().o&&this.J.focus()};
function H8(a){var b=er(a.j).getPlayerState(),c=a.j.getVideoData(),d="html5-bezel-pause";X(b,8)?c.Qa&&!c.xb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.ma;d&&nv(a.template,"icon",d);d=a.j;d.B=!0;1==d.j||2==d.j||3==d.j||4==d.j||3==d.j||d.o.D||(sE(d,!d.B),d.j=1,d.C())}f.ij=function(){H8(this);F8.K.ij.call(this)};f.Jg=function(a){F8.K.Jg.call(this,a);G8(this)};
f.$m=function(){F8.K.$m.call(this);if(!this.j.W().isMobile){var a=new d7(this.element,this.j.W());R(this,a);this.B.j=a;var b=Fd("ytp-tooltip-anchor",this.element);D(b,function(b){a.pg(b)})}};f.wb=function(){var a=this.j.W();return"detailpage"!=a.ja||a.hb?F8.K.wb.call(this):A6(a,!0)};f.sb=function(){var a=this.j.W();return"detailpage"!=a.ja||a.hb?F8.K.sb.call(this):A6(a)};f.gp=function(){var a=this.sb();"1"==this.j.W().o&&(a=a.clone(),a.height+=3);return a};var I8=u("yt.prefs.UserPrefs.prefs_")||{};q("yt.prefs.UserPrefs.prefs_",I8,void 0);var Br={"api.invalidparam":2,auth:150,"drm.auth":150,heartbeat:150,"html5.unsupportedads":5,"fmt.noneavailable":5,"fmt.decode":5,"fmt.unplayable":5,"html5.missingapi":5,"drm.unavailable":5};function J8(a,b){S.call(this);var c=b;c instanceof Qh||(c=new Qh(c));this.Y=c;this.j=new A_(this.Y.args||{});R(this,this.j);this.A=new F8(this);R(this,this.A);this.A.subscribe("resize",this.SD,this);this.J=1;this.Da={};this.da=null;this.I=this.j.ge?Iq():{volume:100,muted:!1};this.Lc=this.j.Hb()?new Jr(this,1):new Nq(this,1);R(this,this.Lc);this.Ob=new Vr(this);R(this,this.Ob);this.yc=new Vr(this,1);R(this,this.yc);this.ma=this.C=null;this.ta={};c=new dG;BD(this.j)&&(c.o=!0,c.j=.1);this.ua=new UF(c);
this.Fa={internalvideodatachange:this.Iz,liveviewshift:this.OD,playbackready:this.Jz,playbackstarted:this.Kz,statechange:this.Lz,signatureexpired:this.DB};var c=new zJ,d=this.Ob;c.o!=d&&(AJ(c),c.D={},c.o=d);d={};d.loaded=x(this.Mq,this);d.unloaded=x(this.Nq,this);d.destroyed=x(this.Cm,this);d.command_pause=K8(this.pauseVideo,this);d.command_play=K8(this.ne,this);d.command_seek=K8(this.oe,this);d.command_disable_controls=x(this.sh,this);d.command_enable_controls=x(this.dk,this);d.command_redirect_controls=
x(this.Is,this);d.command_stop_redirect_controls=x(this.Nj,this);d.command_redirected_show_is_playing=x(this.A.$n,this.A);d.command_progress=x(this.Lm,this);d.command_add_cuerange=x(this.Hs,this);d.command_remove_cuerange=x(this.Js,this);d.command_remove_cuerange_all=x(this.xr,this);d.command_preroll_ready=x(this.Ks,this);d.command_update_cuerange_markers=x(this.Ls,this);d.command_show_dialog=x(this.En,this);d.command_clear_video_overlays=x(this.al,this);d.command_navigate_to_url=x(this.Dn,this);
d.command_log=x(this.ek,this);d.publish_external_event=x(this.ah,this);d.module_menu_button_add=x(this.cq,this);d.module_menu_button_remove=x(this.dq,this);d.module_menu_item_add=x(this.fq,this);d.module_menu_item_remove=x(this.gq,this);d.module_menu_show=x(this.ej,this);d.vss_segment=x(this.WD,this);c.F=d;this.F=c;R(this,this.F);this.N=new q_(this.j,"",this.F);c=new S1(this.j,1,this.N,this.A);L8(this,c,this.Fa);this.o=c;this.o.ba=this.ua;this.jc={beginseeking:this.Tz,endseeking:this.wA,internalaudioformatchange:this.Mz,
internalvideodatachange:this.UD,internalvideoformatchange:this.eC,progresssync:this.RD,seekto:this.TD,onLoadProgress:this.OA,onVideoProgress:this.jC,newlicensesession:this.PD,playbackready:this.gB,statechange:this.QD,connectionissue:this.fA,heartbeatparams:this.ND,videoelementevent:this.VD};this.O=this.D=null;this.Ma=this.Ya=-1;this.G=this.H=null;this.R={};this.ga=null;this.ba={};this.oa=null;this.bb=0;this.Ba=!1;this.list=null;this.V=!0;this.sa=this.B=null;this.Z=1;this.mc=this.na=this.Za=null;this.ab=
this.ob=!1;this.Aa=null;this.ub=0;this.ad=!1;this.ic=null;this.U=0;this.aa=null;this.$a=0;c=new Kr(this.Y.args);if(hJ(c)){U1(this.o,c,x(this.uh,this));if("detailpage"==this.j.ja){var d=c.videoId,e=dj("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.startSeconds=d)}ej("yt-player-restore-playhead");(this.j.oa||this.j.Gd&&this.j.experiments.Ga)&&Z1(this.o)}lI("fs",void 0,this.N.j);this.A.initialize(a);this.A.Zn();c=this.Lc;d=this.A.Q();c.qe=d;for(var g in c.Uf)c.qe[g]=c.Uf[g];for(g in c.Pg)c.qe[g]=
c.Pg[g];g=x(this.DA,this);c=document;"onfullscreenchange"in c?d="fullscreenchange":(d=rh+"fullscreenchange",d="on"+d in c?d:null);"msfullscreenchange"==d&&(d="MSFullscreenChange");this.Za=d?P(c,d,g):null;this.mc=P(window,"resize",x(this.tB,this));c=this.Y.args;if(eu()){M8(this);g=Cr(this);d=this.A.sb();this.j.bk=d;this.Ra("onVolumeChange",this.I);"detailpage"==this.j.ja?Mr(this,g):c&&(c.playlist||c.list||c.api)&&(N8(this,c),hJ(g)||(c=this.B,d=x(this.Qq,this),c.We=d,c.re&&L(c.We,0)));if(c=this.Y.args.jsapicallback)ha(c)||
(c=u(c)),c&&K8(x(c,m,this.j.Th),m);this.j.ob||(cq("embedded"==this.j.ja),this.j.vg=Er(this.j)&&!lb(kq()));P3(this,this.o);this.j.oa&&hJ(g)?O8(this):"leanback"!=this.j.ja&&P8(this)}else Fv(this.o,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.A.Ll();K6(this,"init")}z(J8,S);J8.o="defaultcontext";J8.j={};
J8.A=function(a,b){try{var c=J8.C(a);if(J8.j[c]){try{J8.j[c].dispose()}catch(d){Xf(d)}J8.j[c]=null}var e=new J8(a,b);xi(e,function(){J8.j[c]=null});return J8.j[c]=e}catch(g){throw Xf(g),g;}};J8.B=function(a,b){lI("pwc");var c=document.querySelector(a);document.registerElement(a,{});var d=c.querySelector("template"),c=c.createShadowRoot(),d=document.importNode(d.content,!0);c.appendChild(d);c=c.getElementById(b);d=u("ytplayer.config");c=J8.A(c,d);d.loaded=!0;return c};
J8.C=function(a){return w(a)?a:"player"+ka(a)};
function M8(a){a.C=fE.getTag(!0);a.ma=a.C;a.D&&o2(a.D,a.C);Cs(a.C,a.Z);a.j.N?(a.na&&Hh(a.na),a.na=P(a.C,"volumechange",x(a.VA,a),!1)):a.C.setVolume(a.I.volume,a.I.muted);var b=a.A;b.o=a.C;if(!b.o.parentNode){var c=b.A;c.insertBefore(b.o,c.childNodes[0]||null)}b.Z=new ug(0,0,0,0);o6(b);N(b.o,"video-stream");N(b.o,"html5-main-video");c=b.j.W();"3"==c.o&&b.o.setAttribute("controls",!0);c.O&&b.o.setAttribute("webkit-playsinline","");c.Rh&&(b.na=P(b.o,"click",x(b.o.play,b.o)));a.j.Bb=a.C;us(a.C)}
function Q8(a){if(a.C){a.na&&(Hh(a.na),a.na=null);a.D&&eE(a.D);var b=a.A;b.o&&(Wd(b.o),b.o=null);a.j.Bb=null;fE.releaseTag(a.C);a.C=null}}function bE(a,b){a.j.D?(a.ga&&(Jg(a.C,a.ga.left,a.ga.top),Tg(a.C,zg(a.ga)),a.ga=null),Bs(a.C),eE(a.D),o2(a.D,a.C),Cs(a.C,a.Z)):fE.releaseTag(b)}function P3(a,b){if(a.D!=b){a.D&&(AJ(a.F),S3(a));if(b!=a.o){var c=b.getPlayerType();a.ta[c]=b}a.D=b;b.ba=a.ua;a.C&&o2(b,a.C);L8(a,b,a.jc);R8(a,b,b.getVideoData());b.U.j&&S8(a,"dataloaded",b,b.getVideoData())}}
function L8(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function S3(a){eE(a.D);var b=a.D,c=a.jc,d;for(d in c)b.qa(d,c[d],a);b=a.D;b!=a.o&&(c=b.getPlayerType(),a.ta[c]==b&&delete a.ta[c]);a.D=null}f=J8.prototype;f.subscribe=function(a,b,c){return J8.K.subscribe.call(this,a,b,c)};function er(a,b){return b?1==b?a.o:a.ta[b]||null:a.D}function T8(a){var b=a.F,c=[IA.o,FE,Jv,YE,yD,gF,AF.j,DF,ID,MF];c.push(ME.j);D(c,b.Jo,b);a.L("videoready",a.getVideoData())}f.Jz=function(){U8(this)||V8(this,5)};
f.gB=function(a){U8(this)||(W8(this),Ks(a.getPlayerState())&&this.ne())};function Gr(a){!a.G&&a.yc.W().vg&&(a.G=new d6(a),X8(a,a.G));if(a.G){var b=rq();Dr(a.G,kq(),b);var c=a.G;c&&!c.se&&c.Ha(a.yc)&&c.Na();b&&a.G.load()}}
function X8(a,b){R(a,b);b.subscribe("loaded",a.Mq,a);b.subscribe("unloaded",a.Nq,a);b.subscribe("command_pause",K8(a.pauseVideo,a));b.subscribe("command_play",K8(a.ne,a));b.subscribe("command_seek",K8(a.oe,a));b.subscribe("command_disable_controls",a.sh,a);b.subscribe("command_enable_controls",a.dk,a);b.subscribe("command_redirect_controls",a.Is,a);b.subscribe("command_stop_redirect_controls",a.Nj,a);b.subscribe("command_redirected_show_is_playing",a.A.$n,a.A);b.subscribe("command_progress",a.Lm,
a);b.subscribe("command_add_cuerange",a.Hs,a);b.subscribe("command_remove_cuerange",a.Js,a);b.subscribe("command_remove_cuerange_all",a.xr,a);b.subscribe("command_update_cuerange_markers",a.Ls,a);b.subscribe("command_preroll_ready",a.Ks,a);b.subscribe("command_show_dialog",a.En,a);b.subscribe("command_clear_video_overlays",a.al,a);b.subscribe("command_log",a.ek,a);b.subscribe("command_navigate_to_url",a.Dn,a);b.subscribe("publish_external_event",a.ah,a);b.subscribe("module_menu_button_add",a.cq,a);
b.subscribe("module_menu_button_remove",a.dq,a);b.subscribe("module_menu_item_add",a.fq,a);b.subscribe("module_menu_item_remove",a.gq,a);b.subscribe("module_menu_show",a.ej,a);b.subscribe("command_log_timing",a.F.H,a.F)}function Fr(a){a&&a.se&&a.destroy()}f.Ra=function(a,b){this.L.apply(this,arguments);this.Pc.apply(this,arguments)};f.$g=function(a,b){var c=sb(arguments);this.j.Hb()&&this.D&&c.push(this.D.getPlayerType());this.L.apply(this,c)};f.canPlayType=function(a){return!!du().canPlayType(a)};
f.W=function(){return this.j};f.getVideoData=function(){return this.D.getVideoData()};function Cr(a){return a.o.getVideoData()}f.uh=function(){var a=I_(this.j);qa(a,EJ(this.F));this.H&&qa(a,this.H.Bh());a.fs=this.j.hb;a.volume=Math.round(Tq(this));a.mos=this.I.muted?1:0;return a};f.En=function(a){this.A.og(a)};function P8(a){a.L("initializingmode");V8(a,2)}
function O8(a){if(X(a.o.getPlayerState(),128))return!1;a.L("initializingmode");P3(a,a.o);V8(a,3);var b;(b=!a.j.D)||(u("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(Q8(a),M8(a),o2(a.o,a.C));i2(a.o);if(X(a.o.getPlayerState(),128))return!1;Y8(a,3);return a.ad=!0}function U8(a){return Er(a.j)&&!!rq()}function K8(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}
f.Dn=function(a,b){b?L6(this,a):(window.ytspf||{}).enabled?spf.navigate(a):EF(a)};f.ek=function(a,b,c){var d=er(this);b.event=a;this.j.hb&&(b.fs=1);d.B&&(a=d.B,b.rt=u1(a.j).toFixed(3),qa(b,I1(a.j)),qa(b,K1(a)),delete b.fexp,b=yj(a.j.fa.B+"player_204",b),jg(b,c))};function br(a,b){if(!isNaN(b)&&a.C){var c=1,c=cr(a),c=1>b?F(c,function(a){return a>=b}):jb(c,function(a){return a<=b});a.Z!=c&&(a.Z=c,a.o==a.D&&Cs(a.C,c),a.L("onPlaybackRateChange",c))}}function cr(a){return a.j.ba?Lw:[1]}
function dr(a,b){var c=er(a,b);return c&&c.getVideoData().j?c.getVideoData().j.video.quality:"unknown"}function jD(a,b){var c=er(a,b);return c?w2(c):a.getVideoData().Y}function u8(a){return(a=er(a,void 0))?St(l1(a.na,a.j)):"unknown"}function Tr(a,b,c,d){if(a=er(a,c))b=fr(b,d||b,!0),gr(a,"m",b)}f.getCurrentTime=function(a){return 3==this.Cf()?this.G.getCurrentTime():(a=er(this,a))?a.getCurrentTime():0};function Sq(a,b){var c=er(a,b);return c?c.ed():0}
function or(a,b){var c=a.o.getDebugInfo(b);if(a.D&&a.D!=a.o){var d=a.D.getDebugInfo(b),e;for(e in d)c["ad_"+e]=d[e]}c.debug_playbackQuality=dr(a);c.debug_date=(new Date).toString();delete c.uga;delete c.q;return ng(c)}
function fF(a,b){var c=a.getVideoData(),d=!!c.sa||!!c.nh||!b;d&&a.C.setAttribute("mozStereoMode","1");aF()&&(a.C.setAttribute("mozStereoMode",d?"1":"0"),c=$H[d?c.oa:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),Ud(document.documentElement,d),Nh(d,"3DModeEvent"))}f.Cf=function(){var a;if(a=this.G)a=this.G,a=!!a.A&&!!a.B;return a?3:er(this).getPlayerType()};function Pq(a,b){return 3==a.Cf()?Ls(a.G.U):2==b?a.Ma:a.Ya}
f.VD=function(a){var b=a.target;switch(a.type){case "loadedmetadata":lI("fvb",void 0,this.N.j);this.bb=L(x(this.A.ff,this.A),16);break;case "loadstart":lI("gv",void 0,this.N.j);break;case "progress":case "timeupdate":2<=fs(b.buffered)&&lI("l2s",void 0,this.N.j)}};f.PD=function(a){if(this.ab){var b=this.ub.toString();this.ub++;this.Aa[b]=a;a={request:sb(a.j[0]?a.j[0].message:null),sessionId:b,system:a.I.j,url:a.D};this.L("onNewLicenseSession",a)}else a.start()};
f.OA=function(a,b){this.$g("onLoadProgress",b)};f.jC=function(a,b){this.$g("onVideoProgress",b)};f.RD=function(){this.Lm()};f.Lm=function(a,b){this.L("progresssync",a,b)};
f.Lz=function(a){var b;if(b=0<Gv(a,2))this.B&&("embedded"==this.j.ja||this.j.hb)&&EE(this)?(tr(this),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),X(a.j,32)&&this.o.ik(),this.j.isMobile&&Zq(this,!1));X(a.state,128)&&(b=a.state,ar(this),b=b.j,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Zf(b.messageKey)),this.L("onError",Br[b.errorCode]||5),this.L("onDetailedError",b));this.L("applicationplayerstatechange",a);X(a.state,2)&&(a=this.getVideoData(),a.Qa&&!a.xb&&this.sh(["play_pause"]))};
f.QD=function(a){!X(a.state,32)&&0>Gv(a,16)&&(!X(a.state,8)||X(a.state,64)||this.C.ended||X(a.state,2)||this.ne());this.L("presentingplayerstatechange",a);this.Pc("onStateChange",a);Y8(this,Ls(a.state));Z8(this)};function $8(a){Fr(a.H);Fr(a.G);a.ob=!1;var b=[],c;for(c in a.R)$q(a,c)&&b.push(c);a.R={};0<b.length&&a.L("controlsenabled",b);a.Nj();a.Da={};a=a.N;b=a.o;b.B={};b.A={};a.A=!1}function R8(a,b){AJ(a.F);br(a,1);a.Ra("videoplayerreset",b)}
function S8(a,b,c,d){if(a.C){if("dataloaded"==b)if(B_(c.W(),d.B),a.D==a.o){a.j.ob||cq("embedded"==a.j.ja);var e=U8(a),g;if(g=!e)g=Cr(a).qp&&!a.j.isMobile;if(g){var h="YTP_DEVICE_FALLBACK";gd||os("iemobile")||os("xbox")&&os("trident")||os("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");Fv(a.o,"html5.unsupportedads",h,void 0)}else if(g=Cr(a),!(g.o||g.Ze||g.Ye||g.ba||g.aa)||e||aJ(a.o.j)){cJ(g);e&&V8(a,6);e=!1;!a.H&&G5.Ha(a)&&(a.H=new G5(a),a.H&&X8(a,a.H),e=!0);try{(h=a.H)&&!h.se&&
h.Ha(a.yc)&&h.Na()}catch(k){Xf(k),a.o&&n2(a.o,"ad")}e&&(e=a.H,g=Cr(a),h=er(a),g.subscribe("cuepointupdated",e.mA,e),e.H=g,e=H5(e),null!=e&&(e.I=h));Gr(a);T8(a)}else Fv(a.o,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else T8(a);1==c.getPlayerType()&&(a.getVideoData().Sk?(a.da=Yb(a.I),a.sh(["audio"]),h=a.C,h.Rk=!0,h.muted=!0):($q(a,"audio")&&a.dk(["audio"]),a.C.Rk=!1,a.da&&(w8(a,a.da),a.da=null)),h=a.getVideoData(),h.Qa&&!a.j.Wh?Fv(a.o,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",
void 0):h.Qa&&!h.xb?a.sh(["seek"]):a.dk(["seek"]),d.ma||d.Ya||d.D.focEnabled||d.D.rmktEnabled||a.j.R)&&(h=a.getVideoData(),e=1E3*h.lengthSeconds,a9(a,"part2viewed",1,e),a9(a,"engagedview",Math.max(1,1E3*h.bf),e),a9(a,"videoplaytime25",.25*e,e),a9(a,"videoplaytime50",.5*e,e),a9(a,"videoplaytime75",.75*e,e),a9(a,"videoplaytime100",e,2147483647),a9(a,"conversionview",e,2147483647));a.Ra("videodatachange",b,d,c.getPlayerType())}}f.Iz=function(a){"newdata"==a&&$8(this)};
f.Mz=function(a,b){var c=this.D.getVideoData();a==c&&this.Ra("onPlaybackAudioChange",jD(this).name,b)};f.UD=function(a,b,c){"newdata"==a?R8(this,b):S8(this,a,b,c)};f.eC=function(a,b){var c=this.D.getVideoData();a==c&&(this.L("onPlaybackQualityChange",a.j.video.quality,b),Z8(this))};
function Z8(a){if(a.j.experiments.ma){var b=!1,c=a.getVideoData();c&&c.j&&er(a).tb()&&(b=Kt[c.j.video.quality],b=1440<=b||1080<=b&&30<c.j.video.fps);if(b&&!a.aa){a.aa=new Y(["canvas",{style:"display: none"}]);a.aa.ea(a.A.Q());a=a.aa.Q();try{a.getContext("webgl")}catch(d){}}else!b&&a.aa&&(a.aa.detach(),a.aa=null)}}
function Mr(a,b){if(b.playlistId){var c=C8();if(c&&!c.list)a.$k();else if(c&&0<=c.index){var d=[];D(c.videoIds,function(a){if(a=c.videoData&&c.videoData[a])a.video_id=a.id,a.author=a.os,d.push(a)});N8(a,{videoList:d,loop:c.autoPlay,index:c.index,list:c.list,playlist_title:c.listTitle,playlist_description:c.listDescription,author:c.author,fetch:0});a.sa&&b9(a,a.sa)}else N8(a,{videoList:[b.videoId],list:b.playlistId,fetch:0}),a.sa=null}}
function N8(a,b){if(a.B){a.B.qa("error",a.$k,a);yi(a.B);a.B=null;var c=jr(a.F,"playlist");c&&sD(a.F,c)}b&&(a.B=new lJ(b),a.B.subscribe("error",a.$k,a),a.F&&(c=a.F,D([ME.j],c.Jo,c)))}f.$k=function(){N8(this,null);this.Ra("onPlaylistUpdate")};function a9(a,b,c,d){b in a.Da||(c=new Ms(c,d,{id:b,priority:1}),c.Wa.subscribe("onEnter",a.xq,a),c.Wa.subscribe("onExit",a.xq,a),Ss(a.o.D,[c]),a.Da[b]=c)}
f.xq=function(a){var b=a.getId(),c=Cr(this);if("part2viewed"==b)c.Th&&jg(c.Th),c.Ya&&jg(c.Ya);else if("conversionview"==b){var d=this.o;d.B&&M1(d.B)}else"engagedview"==b&&jg(c.ma);c.na&&(d=a.getId(),d=yj(c.na,{label:d}),jg(d));switch(b){case "videoplaytime25":c.kf&&jg(c.kf);jg(c.Fk);break;case "videoplaytime50":c.lf&&jg(c.lf);jg(c.Uv);break;case "videoplaytime75":c.Mh&&jg(c.Mh);jg(c.Wv);break;case "videoplaytime100":c.jf&&jg(c.jf),jg(c.Ek)}this.j.R&&this.j.R[a.getId()]&&(b=this.j.R[a.getId()],c=A(B(b))?
!1:-1!=b.search(Kf)||-1!=b.search(If),jg(b,void 0,c));this.o.D.vh(a)};function V8(a,b){b!=a.J&&(2==b&&(Y8(a,-1),Y8(a,5)),a.J=b,a.L("appstatechange",b))}function Y8(a,b){a.D&&2==a.D.getPlayerType()?a.Ma!=b&&(a.Ma=b,a.$g("onAdStateChange",b)):a.Ya!=b&&(a.Ya=b,a.$g("onStateChange",b))}function K6(a,b){a.j.experiments.j&&a.ek("controlclicked",{controlClicked:b})}f.oe=function(a,b,c,d){b=0!=b;if(d=er(this,d))2==this.J&&O8(this),j2(d,a,b,c)};
f.TD=function(a,b){var c=a.getVideoData();if(1==this.J||2==this.J)c.startSeconds=b;2==this.J?O8(this):this.Ra("seekto",b)};f.Tz=function(){this.Ra("beginseeking")};f.wA=function(){this.Ra("endseeking")};function Tq(a){return a.I.volume}f.setVolume=function(a){var b=this.I;b.volume=a;w8(this,b)};
function w8(a,b){a.I=b;b.volume=Pc(b.volume,0,100);if(a.j.ge&&!a.j.N){var c={};c.volume=isNaN(b.volume)?Iq().volume:Pc(b.volume,0,100);c.muted=void 0==b.muted?Iq().muted:b.muted;bj("yt-player-volume",c,2592E3)}$q(a,"audio")?a.da&&(a.da=Yb(b),a.Ra("onVolumeChange",b)):(W8(a),a.j.N||a.Ra("onVolumeChange",b))}function Uq(a){var b=a.I;b.muted=!0;w8(a,b)}function Vq(a){var b=a.I;b.muted=!1;5>b.volume&&(b.volume=5);w8(a,b)}
function kr(a,b,c){b.list=b.list||a.list;b=new Kr(b);Cr(a).playlistId!=b.playlistId&&N8(a,null);"detailpage"==a.j.ja&&Mr(a,b);return c9(a,b,c)}function Lr(a,b){a.O&&a.O.getVideoData().videoId==b.videoId||(b.Za=!0,a.O||(a.O=new S1(a.j,1,a.N,a.A),a.O.ba=a.ua),U1(a.O,b,x(a.uh,a)),Z1(a.O,!0))}
function c9(a,b,c){if(!pI("_start",a.N.j)){var d=a.N.j;qI("yt_sts","p",d);lI("_start",void 0,d);a.N.info("srt",0)}if(a.O&&a.O.getVideoData().videoId==b.videoId){d=a.O;a.O=null;b=d;c=a.o;var e=a.Fa,g;for(g in e)c.qa(g,e[g],a);a.o.dispose();a.o=b;L8(a,b,a.Fa);$8(a)}else{d=er(a,c);if(!d)return!1;M(a.bb);ar(a,c);U1(d,b,x(a.uh,a))}if(!Y1(d))return!1;if(d==a.o)return V8(a,1),O8(a);i2(d);return!0}function Qq(a,b,c){c=er(a,c);b&&c==a.o&&(c.getVideoData().pe=!0)}
function lr(a,b,c){b.list=b.list||a.list;d9(a,new Kr(b),c)}function d9(a,b,c){var d=er(a,c);d&&(ar(a,c),U1(d,b,x(a.uh,a)),Y1(d)&&(B_(d.W(),b.B),d==a.o&&(V8(a,1),P8(a))))}function pE(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");b={video_id:b,list:d};a.j.hb||"detailpage"!=a.j.ja?(c=a.N,e=c.o,e.B={},e.A={},c.A=!1,a.N.reset(),d?(a.V=!1,sr(a,b,void 0,void 0,void 0)):kr(a,b,1)):(d=new Kr(b),d=a.j.getVideoUrl(d,{}),(c||{}).lact=t_(),u("yt.player.exports.navigate")(d,c,!0),a.Dn(d,e))}
function sr(a,b,c,d,e){if(ja(b)&&!ea(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},w(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;N8(a,b);b=a.B;a=x(a.Qq,a);b.We=a;b.re&&L(b.We,0)}f.Qq=function(){var a=xr(this.B);if(this.getVideoData().Qg||!this.V){var b=this.getVideoData().pe,a=c9(this,a);b&&Qq(this,a)}else a&&d9(this,a)};
function EE(a){var b=C8();return!(!a.B||!sJ(a.B)||b&&!b.autoPlay)}function qE(a,b){a.Ra("autonavcancel",b)}function tr(a){if(a.B)"detailpage"!=a.j.ja||a.j.hb?a.B.re?sJ(a.B)&&c9(a,uJ(a.B),1):(uJ(a.B),a.V=!1):b9(a,"yt.www.watch.lists.next");else if(xE(a.j)&&er(a,1).getVideoData().V){var b=er(a,1).getVideoData().V[0],c=b.id||b.video_id||"",d=b.session_data?rj(b.session_data,"&"):null;pE(a,c,d,b.list||void 0)}}
function ur(a){if(a.B)if("detailpage"!=a.j.ja||a.j.hb)if(a.B.re){var b=a.B;(b.ig||0<=b.Xa-1)&&c9(a,wJ(a.B),1)}else wJ(a.B),a.V=!1;else b9(a,"yt.www.watch.lists.prev")}function b9(a,b){var c=u(b);if(c){var d=C8();d&&d.list&&c();a.sa=null}else a.sa=b}function vr(a,b){a.B&&(a.B.re?c9(a,xr(a.B,b),1):a.V=!1,vJ(a.B,b))}function C8(){var a=u("yt.www.watch.lists.getState");return a?a():null}function yr(a){return a.B&&a.B.A?a.B.A.toString():null}
function pr(a){var b=Cr(a),c=a.A.wb();a="https://"+G_(a.j)+"/embed/"+b.videoId;b.playlistId&&(a=Ve(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+ya(a)+'" frameborder="0" allowfullscreen></iframe>'}function nr(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Sq(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return a.j.getVideoUrl(Cr(a),c)}
function qr(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 Ms(1E3*c,1E3*d,b);c.Wa.subscribe("onEnter",a.Gz,a);c.Wa.subscribe("onExit",a.Hz,a);Ss(a.o.D,[c]);rr(a,"cuerangesadded",[c]);return!0}f.Gz=function(a){this.L("onCueRangeEnter",a.getId())};f.Hz=function(a){this.L("onCueRangeExit",a.getId())};f.Hs=function(a,b){var c=er(this,b);c&&(Ss(c.D,a),rr(this,"cuerangesadded",a))};
f.Js=function(a,b){var c=er(this,b);c&&(c.D.vh.apply(c.D,a),rr(this,"cuerangesremoved",a))};f.xr=function(a,b){var c=er(this,b);if(c){for(var c=c.D,d=[],e=c.j.j,g=e.length-1;0<=g;g--){var h=e[g];if(h.namespace==a){var k=c.o.indexOf(h);0<=k&&c.o.splice(k,1);var k=c.j.j,l=xb(k,h,Yr);0<=l&&pb(k,l);d.push(h)}}c.nc();rr(this,"cuerangesremoved",d)}};f.Ls=function(a){rr(this,"cuerangemarkersupdated",a)};f.Ks=function(a,b){var c=er(this,b);c&&n2(c,a)};
f.Kz=function(){this.U||(this.U=kx(this.Aq,this));r_(this.N,e9(this));if(!this.ob&&"detailpage"==this.j.ja){this.ob=!0;var a=this.o;if(a.V&&a.V.j){var b={},c={};a.j.videoId&&(b.docid=a.j.videoId);a.j.playbackId&&(b.plid=a.j.playbackId);b.cpn=a.j.clientPlaybackNonce;b.ad_cpn=a.V.j;var d=y()-a.V.o;a.V.A?c.astv=d:c.actv=d;a={v:2,s:"youtube",action:"watch,ad2video_html5"};c.aft=c.pbs=c.astv||c.actv;var 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=Tf("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);wI(a)}}if(this.Ba&&(b=this.o,b.B))b.B.onError("html5.reboot");this.Ba=!1;this.j.experiments.D&&EE(this)&&(b=xr(this.B,tJ(this.B)))&&Lr(this,b)};f.Aq=function(a){a=a.j;if(!isNaN(a)&&0<a&&this.o){var b=this.o;b.B&&0<a&&(b.B.B.A.aft=[a])}};function e9(a){var b=y(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)}f.Mq=function(a){"remote"==a?(2==this.J&&O8(this),V8(this,6),Fr(this.H)):this.Cm()};
f.Nq=function(a){"remote"!=a||U8(this)||(this.ne(),this.pauseVideo());this.Cm()};f.Cm=function(){this.$g("onApiChange")};f.VA=function(){if(!$q(this,"audio")){var a={volume:100*this.C.volume,muted:this.C.muted};this.I=Yb(a);this.Ra("onVolumeChange",a)}};function W8(a){var b=a.j.N?Kr.o:a.getVideoData().to;a.C.setVolume(a.I.volume*b,a.I.muted)}f.DA=function(){f9(this,Ph()?1:0)};
function f9(a,b){var c=!!b,d=!!a.$a!=c;a.$a=b;if(d){a.A.Xm(c);if("detailpage"==a.j.ja&&!c&&(d=Cr(a),Tf("VIDEO_ID")!=(d.ab||d.videoId))){var e=a.getCurrentTime(),g={};g[d.videoId]=e;bj("yt-player-restore-playhead",g,172800);a.pauseVideo()}lI("fsc",void 0,a.N.j);a.j.hb=c;a.A.ff();a.Ra("fullscreentoggled",c);d=Cr(a);c={fullscreen:c,videoId:d.ab||d.videoId};yr(a)&&(c.listId=yr(a));a.L("onFullscreenChange",c)}}f.SD=function(){D8(this)};f.tB=function(){2!=this.$a&&f9(this,Ph()?1:0)};
f.al=function(a){this.Ra("clearvideooverlays",!!a)};f.cq=function(a,b){this.Ra("menu_button_add",a,b)};f.dq=function(a){this.Ra("menu_button_remove",a)};f.fq=function(a){this.Ra("menu_item_add",a)};f.gq=function(a){this.Ra("menu_item_remove",a)};f.ej=function(a){this.Ra("menu_show",a)};f.WD=function(a){(a=er(this,a))&&a.B&&r1(a.B.o)};f.OD=function(a){this.Ra("liveviewshift",a)};
function rr(a,b,c){a.L(b,c);var d;switch(b){case "cuerangemarkersupdated":d="onCueRangeMarkersUpdated";break;case "cuerangesadded":d="onCueRangesAdded";break;case "cuerangesremoved":d="onCueRangesRemoved"}d&&c&&a.ah(d,E(c,Ns))}
f.ah=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(lI("vr",void 0,this.N.j),this.U||(this.U=kx(this.Aq,this)),B2(this.D),r_(this.N,e9(this)));0==c&&e&&(this.o.V=e);var g=this.j;"leanback"==g.ja&&g.Hb()&&(0==c?this.ma=this.C:this.ma=d,this.L("onAdStateChange",c,e.video_id))}else this.L.apply(this,arguments)};f.Pc=function(a,b){this.F.I.apply(this.F,arguments);this.H&&this.H.L.apply(this.H,arguments);this.G&&this.G.L.apply(this.G,arguments)};
f.ne=function(a){(a=er(this,a))&&(2==this.J?O8(this):X(a.getPlayerState(),2)?this.oe(0):r2(a))};f.pauseVideo=function(a){(a=er(this,a))&&a.pauseVideo()};function ar(a,b){lx(a.U);a.U=0;var c=er(a,b);c&&1!=a.J&&2!=a.J&&(AJ(a.F),m2(c),1==b&&Fr(a.H))}function Wq(a,b){if(!$q(a,"play_pause")){var c=a.ba.play_pause?a.oa:null;c?c.Yd("control_play"):a.ne(b)}}function Xq(a,b){if(!$q(a,"play_pause")){var c=a.ba.play_pause?a.oa:null;c?c.Yd("control_pause"):a.pauseVideo(b)}}
function v8(a){var b;if(b=!$q(a,"play_pause"))(b=!a.j.bd||2!=a.J)||(b=fE.hasTags(void 0));b&&((b=a.ba.play_pause?a.oa:null)?b.Yd("control_toggle_play_pause"):(b=er(a,void 0))&&(Ks(b.getPlayerState())?a.pauseVideo(void 0):a.ne(void 0)))}function Rq(a,b,c,d,e){if(!$q(a,"seek")){var g=a.ba.seek?a.oa:null;g?g.Yd("control_seek",b):a.oe(b,c,d,e)}}
function Zq(a,b){if(a.j.hb!=b)if(Oh())if(b){var c=a.A.Q(),d=xh(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=xh(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else f9(a,b?2:0)}function Kx(a){Zq(a,!a.j.hb)}function L6(a,b){Zq(a,!1);a.pauseVideo();FF(b)}function Z6(a){var b=a.getVideoData();"detailpage"==a.j.ja&&a.j.hb&&Tf("VIDEO_ID")==b.videoId?Zq(a,!1):L6(a,nr(a,!0))}f.getAdState=function(){return this.H?this.H.getAdState():-1};
function D8(a){var b=a.A.sb();a.j.bk=b;if(a.C){b=!1;if(0!=a.C.readyState&&a.D){var c=new H(a.C.videoWidth,a.C.videoHeight),d=a.getVideoData();Tc(d.Wh,c)||(d.Wh=c,b=!0)}c=a.A;c=q6(c,c.sb(),p6(c),s6(c),void 0);xg(a.ic,c)||(a.ic=c,a.j.Uj=c,b=!0);b&&(a.D&&gr(a.D,"r"),a.L("resize",a.A.wb()),a.Ra("onResize"))}}function $q(a,b){return!(!a.R[b]||!a.R[b].length)}
f.sh=function(a,b){b=b||J8.o;var c=[];D(a,function(a){this.R[a]?0>this.R[a].indexOf(b)&&this.R[a].push(b):(this.R[a]=[b],c.push(a))},this);0<c.length&&this.L("controlsdisabled",c)};f.dk=function(a,b){b=b||J8.o;var c=[];D(a,function(a){if($q(this,a)){var e=this.R[a].indexOf(b);0<=e&&this.R[a].splice(e,1);0==this.R[a].length&&c.push(a)}},this);0<c.length&&this.L("controlsenabled",c)};f.Is=function(a,b,c){this.Nj();this.oa=a;b&&D(b,function(a){this.ba[a]=!0},this);c&&BJ(this.F,a,c)};
f.Nj=function(){this.oa=null;this.ba={};CJ(this.F)};function zr(a,b,c,d){if(a.j.Hb()){if(a.H&&b==a.H.xa)return a.H.jg(c,d);if(a.G&&b==a.G.xa)return a.G.jg(c,d)}c=b&&c?(a=jr(a.F,b))?a.jg(c,d):null:null;return c}function Ar(a,b){if(!b){var c=DJ(a.F);a.j.Hb()&&(a.H&&c.push(a.H.xa),a.G&&c.push(a.G.xa));return c}if(a.j.Hb()){if(a.H&&b==a.H.xa)return a.H.kg();if(a.G&&b==a.G.xa)return a.G.kg()}return DJ(a.F,b)}
f.DB=function(){if(this.j.experiments.A&&!this.Ba){this.Ba=!0;var a=this.getVideoData(),b=er(this).getCurrentTime();kr(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.fA=function(){this.Ra("CONNECTION_ISSUE")};f.ND=function(a){this.Ra("heartbeatparams",a)};f.P=function(){hq();this.o.dispose();this.O&&this.O.dispose();Q8(this);this.Za&&Hh(this.Za);Hh(this.mc);Ai(Ob(this.ta),this.B);this.ma=null;M(this.bb);lx(this.U);this.U=0;J8.K.P.call(this)};function g9(){qx.call(this);this.j=[];this.A={}}z(g9,qx);ba(g9);f=g9.prototype;f.qi="button";f.Mf=null;f.register=function(){sx(this,"click",this.tw);sx(this,"keydown",this.cz);sx(this,"keypress",this.dz);this.Mm.push(Hi("page-scroll",this.Kx,this))};f.tw=function(a){a&&!a.disabled&&(h9(this,a),this.click(a))};
f.cz=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=i9(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=fe(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.qz:"table"==e&&(g=this.pz);g&&j9(this,a,b,c,x(g,this))}}};f.Kx=function(){var a=this.A;if(0!=Lb(a))for(var b in a){var c=a[b],d=ne(c.activeButtonNode||c.parentNode,rx(this));if(void 0==d||void 0==c)break;k9(this,d,c,!0)}};
function j9(a,b,c,d,e){var g=Qw(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=l9(a,c))?(b=Zd(d),"a"==b.tagName.toLowerCase()?EF(b.href):Nh(b,"click")):h&&m9(a,b):g?27==d.keyCode?(l9(a,c),m9(a,b)):e(b,c,d):(a=mh(b,rx(a,"reverse"))?38:40,d.keyCode==a&&(Nh(b,"click"),d.preventDefault()))}f.dz=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=i9(this,a),Qw(a)&&c.preventDefault())};function l9(a,b){var c=rx(a,"menu-item-highlight"),d=Hd(c,b);d&&oh(d,c);return d}
function n9(a,b,c){N(c,rx(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=rx(a,"item-id-"+ka(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}f.pz=function(a,b,c){var d=l9(this,b);b=vh("table",b);var e=vh("tr",b),e=Gd("td",null,e).length;b=Gd("td",null,b);d=o9(d,b,e,c);-1!=d&&(n9(this,a,b[d]),c.preventDefault())};f.qz=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=l9(this,b);b=eb(Gd("li",null,b),Qw);d=o9(d,b,1,c);n9(this,a,b[d]);c.preventDefault()}};
function o9(a,b,c,d){var e=b.length;a=cb(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):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a}function p9(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=rx(a,"menu-mask"),b.iframeMask=c);return c}
function k9(a,b,c,d){var e=ne(b,rx(a,"group")),g=!!vi(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=Yg(b);if(mh(b,rx(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}mh(b,"flip")&&(mh(b,rx(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;vi(b,"button-has-sibling-menu")?p=Ng(e):vi(b,"button-menu-root-container")&&(p=q9(b));dd&&!rd("8")&&(p=null);var r;p&&(r=Yg(p),r=new tg(-r.top,r.left,r.top,-r.left));p=new Qc(0,1);mh(b,rx(a,"center-menu"))&&(p.x-=Math.round((Wg(c).width-Wg(b).width)/
2));d&&(p.y+=Ld(document).y);if(a=p9(a,b))b=Wg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",D6(e,g,a,h,p,r),d&&Dg(a,"position","fixed");D6(e,g,c,h,p,r)}function q9(a){if(vi(a,"button-menu-root-container")){var b=vi(a,"button-menu-root-container");return ne(a,b)}return document.body}
f.fu=function(a){if(a){var b=i9(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;vi(a,"button-has-sibling-menu")?c=a.parentNode:c=q9(a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=p9(this,a);d&&c.appendChild(d);(c=!!vi(a,"button-menu-fixed"))&&(this.A[sh(a).toString()]=b);k9(this,a,b,c);Li("yt-uix-button-menu-before-show",a,b);Rw(b);this.o(a,"button-menu-action",
!0);N(a,rx(this,"active"));b=x(this.bq,this,a,!1);c=x(this.bq,this,a,!0);d=x(this.pD,this,a,void 0);this.Mf&&i9(this,this.Mf)==i9(this,a)||this.Mf&&m9(this,this.Mf);Ki("yt-uix-button-menu-show",a);Hh(this.j);this.j=[P(document,"click",c),P(document,"contextmenu",b),P(window,"resize",d)];this.Mf=a}}};
function m9(a,b){if(b){var c=i9(a,b);if(c){a.Mf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Sw(c);a.o(b,"button-menu-action",!1);var d=p9(a,b),e=sh(c).toString();delete a.A[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=ne(b,rx(a,"group")),g=[rx(a,"active")];
e&&g.push(rx(a,"group-active"));ph(b,g);Ki("yt-uix-button-menu-hide",b);Hh(a.j);a.j.length=0}}f.pD=function(a,b){var c=i9(this,a);if(c){b&&(b instanceof Hc?c.innerHTML=Jc(b):ee(c,b));var d=!!vi(a,"button-menu-fixed");k9(this,a,c,d)}};f.getContent=function(a){return Hd(rx(this,"content"),a)};
f.bq=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=ne(c,rx(this));if(d){var d=i9(this,d),e=i9(this,a);if(d==e)return}var d=ne(c,rx(this,"menu")),e=d==i9(this,a),g=mh(c,rx(this,"menu-item")),h=mh(c,rx(this,"menu-close"));if(!d||e&&(g||h))if(m9(this,a),d&&b&&vi(a,"button-menu-indicate-selected")){if(a=Hd(rx(this,"content"),a))zd&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],me(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),zd||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),ee(a,b);r9(this,d,c)}};function r9(a,b,c){var d=rx(a,"menu-item-selected");a=Fd(d,b);D(a,function(a){oh(a,d)});N(c.parentNode,d)}function i9(a,b){if(!b.widgetMenu){var c=vi(b,"button-menu-id"),c=c&&Ed(c),d=rx(a,"menu");c?nh(c,[d,rx(a,"menu-external")]):c=Hd(d,b);b.widgetMenu=c}return b.widgetMenu}
function h9(a,b){if(vi(b,"button-toggle")){var c=ne(b,rx(a,"group")),d=rx(a,"toggled"),e=mh(b,d);if(c&&vi(c,"button-toggle-group")){var g=vi(c,"button-toggle-group"),c=Fd(rx(a),c);D(c,function(a){a!=b||"optional"==g&&e?(oh(a,d),a.removeAttribute("aria-pressed")):(N(b,d),a.setAttribute("aria-pressed","true"))})}else e?b.removeAttribute("aria-pressed"):b.setAttribute("aria-pressed","true"),qh(b,d)}}
f.click=function(a){if(i9(this,a)){var b=i9(this,a),c=ne(b.activeButtonNode||b.parentNode,rx(this));c&&c!=a?(m9(this,c),L(x(this.fu,this,a),1)):Qw(b)?m9(this,a):this.fu(a);a.focus()}this.o(a,"button-action")};wx(g9);wx(t7);u("yt.tracking.share")||q("yt.tracking.share",PE,void 0);u("yt.net.ping")||q("yt.net.ping.send",jg,void 0);u("yt.window.popup")||(q("yt.window.popup",GF,void 0),q("yt.window.open",FF,void 0));q("yt.player.Application.create",J8.A,void 0);q("yt.player.Application.createWebComponent",J8.B,void 0);var s9=u("ytcsi.tick"),t9=u("ytcsi.info");s9&&(s9("pe"),window.performance&&window.performance.now&&t9("h5jse",window.performance.now()));})();
