(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 r(a,b){for(var c=a.split("."),d=b||m,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}function u(){}function ba(a){a.getInstance=function(){return a.Db?a.Db:a.Db=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 ea(a){return null===a}function fa(a){return"array"==ca(a)}function ga(a){var b=ca(a);return"array"==b||"object"==b&&"number"==typeof a.length}function v(a){return"string"==typeof a}function ha(a){return"number"==typeof a}function ia(a){return"function"==ca(a)}function ja(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ka(a){return a[ma]||(a[ma]=++na)}
var ma="closure_uid_"+(1E9*Math.random()>>>0),na=0;function oa(a,b,c){return a.call.apply(a.bind,arguments)}function qa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
function x(a,b,c){x=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?oa:qa;return x.apply(null,arguments)}function ra(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}function sa(a,b){for(var c in b)a[c]=b[c]}var y=Date.now||function(){return+new Date};function ta(a,b){b&&(a=a.replace(/\{\$([^}]+)}/g,function(a,d){return d in b?b[d]:a}));return a}
function z(a,b){function c(){}c.prototype=b.prototype;a.J=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 ua(a){if(Error.captureStackTrace)Error.captureStackTrace(this,ua);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}z(ua,Error);ua.prototype.name="CustomError";var va;function wa(a,b){return 0==a.lastIndexOf(b,0)}function xa(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 ya=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};function za(a){return encodeURIComponent(String(a))}function Aa(a){return decodeURIComponent(a.replace(/\+/g," "))}
function Ba(a){if(!Ca.test(a))return a;-1!=a.indexOf("&")&&(a=a.replace(Da,"&amp;"));-1!=a.indexOf("<")&&(a=a.replace(Ea,"&lt;"));-1!=a.indexOf(">")&&(a=a.replace(Fa,"&gt;"));-1!=a.indexOf('"')&&(a=a.replace(Ga,"&quot;"));-1!=a.indexOf("'")&&(a=a.replace(Ha,"&#39;"));-1!=a.indexOf("\x00")&&(a=a.replace(Ia,"&#0;"));return a}var Da=/&/g,Ea=/</g,Fa=/>/g,Ga=/"/g,Ha=/'/g,Ia=/\x00/g,Ca=/[\x00&<>"']/;function Ja(a){return-1!=a.indexOf("&")?"document"in m?Ka(a):La(a):a}
function Ka(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=m.document.createElement("div");return a.replace(Ma,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 La(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 Ma=/&([^;\s<&]+);?/g;function Na(a,b){a.length>b&&(a=a.substring(0,b-3)+"...");return a}function Oa(a,b){return-1!=a.toLowerCase().indexOf(b.toLowerCase())}
function Pa(a){return String(a).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")}function Qa(a,b){return Array(b+1).join(a)}function Ra(a){a=n(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);return Qa("0",Math.max(0,2-b))+a}function B(a){return null==a?"":String(a)}function Sa(a){return Array.prototype.join.call(arguments,"")}
function Ta(a,b){for(var c=0,d=ya(String(a)).split("."),e=ya(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"),t=RegExp("(\\d*)(\\D*)","g");do{var w=p.exec(k)||["","",""],J=t.exec(l)||["","",""];if(0==w[0].length&&0==J[0].length)break;c=Ua(0==w[1].length?0:parseInt(w[1],10),0==J[1].length?0:parseInt(J[1],10))||Ua(0==w[2].length,0==J[2].length)||Ua(w[2],J[2])}while(0==c)}return c}function Ua(a,b){return a<b?-1:a>b?1:0}
var Va=2147483648*Math.random()|0;function Wa(){return"goog_"+Va++}function Xa(a){var b=Number(a);return 0==b&&A(a)?NaN:b}function Ya(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}function Za(a){var b=v(void 0)?Pa(void 0):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}function $a(a){isFinite(a)&&(a=String(a));return v(a)?/^\s*-?0x/i.test(a)?parseInt(a,16):parseInt(a,10):NaN}
function ab(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 bb(){};function cb(a){return a[a.length-1]}
var db=Array.prototype,eb=db.indexOf?function(a,b,c){return db.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(v(a))return v(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},fb=db.lastIndexOf?function(a,b,c){return db.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(v(a))return v(b)&&1==b.length?a.lastIndexOf(b,c):-1;for(;0<=c;c--)if(c in a&&a[c]===b)return c;
return-1},C=db.forEach?function(a,b,c){db.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,g=0;g<d;g++)g in e&&b.call(c,e[g],g,a)},gb=db.filter?function(a,b,c){return db.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],g=0,h=v(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},D=db.map?function(a,b,c){return db.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),g=v(a)?a.split(""):a,h=0;h<d;h++)h in g&&(e[h]=b.call(c,
g[h],h,a));return e},hb=db.reduce?function(a,b,c,d){d&&(b=x(b,d));return db.reduce.call(a,b,c)}:function(a,b,c,d){var e=c;C(a,function(c,h){e=b.call(d,e,c,h,a)});return e},ib=db.some?function(a,b,c){return db.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(a)?a.split(""):a,g=0;g<d;g++)if(g in e&&b.call(c,e[g],g,a))return!0;return!1},jb=db.every?function(a,b,c){return db.every.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=v(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 E(a,b,c){b=kb(a,b,c);return 0>b?null:v(a)?a.charAt(b):a[b]}function kb(a,b,c){for(var d=a.length,e=v(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 lb(a,b){var c=mb(a,b,void 0);return 0>c?null:v(a)?a.charAt(c):a[c]}function mb(a,b,c){for(var d=v(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 F(a,b){return 0<=eb(a,b)}function nb(a){return 0==a.length}
function ob(a){if(!fa(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function pb(a,b){F(a,b)||a.push(b)}function qb(a,b){var c=eb(a,b),d;(d=0<=c)&&rb(a,c);return d}function rb(a,b){db.splice.call(a,b,1)}function sb(a,b){var c=kb(a,b,void 0);0<=c&&rb(a,c)}function tb(a){return db.concat.apply(db,arguments)}function ub(a){var b=a.length;if(0<b){for(var c=Array(b),d=0;d<b;d++)c[d]=a[d];return c}return[]}
function vb(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ga(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 wb(a,b,c,d){db.splice.apply(a,xb(arguments,1))}function xb(a,b,c){return 2>=arguments.length?db.slice.call(a,b):db.slice.call(a,b,c)}
function yb(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 zb(a,b,c){c=c||Ab;for(var d=0,e=a.length,g;d<e;){var h=d+e>>1,k;k=c(b,a[h]);0<k?d=h+1:(e=h,g=!k)}return g?d:~d}function Bb(a,b){a.sort(b||Ab)}function Cb(a,b,c){var d=c||Ab;Bb(a,function(a,c){return d(b(a),b(c))})}function Db(a,b){Cb(a,function(a){return a[b]},void 0)}
function Eb(a,b,c){if(!ga(a)||!ga(b)||a.length!=b.length)return!1;var d=a.length;c=c||Fb;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Ab(a,b){return a>b?1:a<b?-1:0}function Fb(a,b){return a===b}function Gb(a,b,c){c=zb(a,b,c);0>c&&wb(a,-(c+1),0,b)}function Hb(a){for(var b=[],c=0;c<a;c++)b[c]=0;return b}
function Ib(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(fa(d))for(var e=0;e<d.length;e+=8192)for(var g=xb(d,e,e+8192),g=Ib.apply(null,g),h=0;h<g.length;h++)b.push(g[h]);else b.push(d)}return b};function Jb(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Kb(a,b,c){var d={},e;for(e in a)b.call(c,a[e],e,a)&&(d[e]=a[e]);return d}function Lb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return!0;return!1}function Mb(a,b){for(var c in a)if(!b.call(void 0,a[c],c,a))return!1;return!0}function Nb(a){var b=0,c;for(c in a)b++;return b}function Ob(a,b){return Pb(a,b)}function Qb(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Rb(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}
function Sb(a,b){for(var c=ga(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],n(a));c++);return a}function Pb(a,b){for(var c in a)if(a[c]==b)return!0;return!1}function Tb(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d}function Ub(a){var b=Vb;return(a=Tb(b,a,void 0))&&b[a]}function Xb(a){for(var b in a)return!1;return!0}function Yb(a){for(var b in a)delete a[b]}function Zb(a,b){b in a&&delete a[b]}function $b(a,b,c){return b in a?a[b]:c}
function ac(a){var b={},c;for(c in a)b[c]=a[c];return b}function bc(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]=bc(a[c]);return b}return a}var cc="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");
function dc(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<cc.length;g++)c=cc[g],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}function ec(a){var b=arguments.length;if(1==b&&fa(arguments[0]))return ec.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 fc(a){var b=arguments.length;if(1==b&&fa(arguments[0]))return fc.apply(null,arguments[0]);for(var c={},d=0;d<b;d++)c[arguments[d]]=!0;return c};var gc=fc("area base br col command embed hr img input keygen link meta param source track wbr".split(" "));var hc=/<[^>]*>|&[^;]+;/g;function ic(a,b){return b?a.replace(hc,""):a}
var jc=RegExp("[\u0591-\u07ff\u200f\ufb1d-\ufdff\ufe70-\ufefc]"),kc=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"),lc=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]"),mc=/^http:\/\/.*/,nc=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Arab|Hebr|Thaa|Nkoo|Tfng))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,oc=
/\s+/,pc=/\d/;function qc(){this.j=rc}qc.prototype.vf=!0;qc.prototype.mf=function(){return""};qc.prototype.toString=function(){return"Const{}"};function sc(a){return a instanceof qc&&a.constructor===qc&&a.j===rc?"":"type_error:Const"}var rc={};function tc(){this.j="";this.k=uc}tc.prototype.vf=!0;var uc={};tc.prototype.mf=function(){return this.j};function vc(a){var b=new tc;b.j=a;return b}var wc=vc(""),xc=/^[-.%_!# a-zA-Z0-9]+$/;function yc(){this.j=zc}yc.prototype.vf=!0;yc.prototype.mf=function(){return""};yc.prototype.Nl=!0;yc.prototype.hf=function(){return 1};function Ac(a){return a instanceof yc&&a.constructor===yc&&a.j===zc?"":"type_error:SafeUrl"}var zc={};function Bc(){this.j=Cc}Bc.prototype.vf=!0;Bc.prototype.mf=function(){return""};Bc.prototype.Nl=!0;Bc.prototype.hf=function(){return 1};var Cc={};function Dc(){this.j="";this.o=Ec;this.k=null}Dc.prototype.Nl=!0;Dc.prototype.hf=function(){return this.k};Dc.prototype.vf=!0;Dc.prototype.mf=function(){return this.j};function Fc(a){return a instanceof Dc&&a.constructor===Dc&&a.o===Ec?a.j:"type_error:SafeHtml"}var Gc=/^[a-zA-Z0-9-]+$/,Hc=fc("action","cite","data","formaction","href","manifest","poster","src"),Ic=fc("embed","iframe","link","object","script","style","template");
function Jc(a){function b(a){if(fa(a))C(a,b);else{if(!(a instanceof Dc)){var g=null;a.Nl&&(g=a.hf());a=Kc(Ba(a.vf?a.mf():String(a)),g)}d+=Fc(a);a=a.hf();0==c?c=a:0!=a&&c!=a&&(c=null)}}var c=0,d="";C(arguments,b);return Kc(d,c)}var Ec={};function Kc(a,b){var c=new Dc;c.j=a;c.k=b;return c}Kc("",0);function Lc(a,b,c){return Math.min(Math.max(a,b),c)};function Mc(a,b){this.x=n(a)?a:0;this.y=n(b)?b:0}f=Mc.prototype;f.clone=function(){return new Mc(this.x,this.y)};function Nc(a,b){return a==b?!0:a&&b?a.x==b.x&&a.y==b.y:!1}function Oc(a,b){return new Mc(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=ha(b)?b:a;this.x*=a;this.y*=c;return this};function G(a,b){this.width=a;this.height=b}function Pc(a,b){return a==b?!0:a&&b?a.width==b.width&&a.height==b.height:!1}f=G.prototype;f.clone=function(){return new G(this.width,this.height)};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=ha(b)?b:a;this.width*=a;this.height*=c;return this};var Qc;t:{var Rc=m.navigator;if(Rc){var Sc=Rc.userAgent;if(Sc){Qc=Sc;break t}}Qc=""}function Tc(a){return-1!=Qc.indexOf(a)};var Uc=Tc("Opera")||Tc("OPR"),Vc=Tc("Trident")||Tc("MSIE"),Wc=Tc("Gecko")&&!Oa(Qc,"WebKit")&&!(Tc("Trident")||Tc("MSIE")),Xc=Oa(Qc,"WebKit"),Yc=Xc&&Tc("Mobile"),Zc=Tc("Macintosh"),$c=Tc("Windows"),ad=Tc("Linux")||Tc("CrOS"),bd=Tc("Android"),cd=Tc("iPhone")&&!Tc("iPod")&&!Tc("iPad"),dd=Tc("iPad");function ed(){var a=m.document;return a?a.documentMode:void 0}
var fd=function(){var a="",b;if(Uc&&m.opera)return a=m.opera.version,ia(a)?a():a;Wc?b=/rv\:([^\);]+)(\)|;)/:Vc?b=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:Xc&&(b=/WebKit\/(\S+)/);b&&(a=(a=b.exec(Qc))?a[1]:"");return Vc&&(b=ed(),b>parseFloat(a))?String(b):a}(),gd={};function hd(a){return gd[a]||(gd[a]=0<=Ta(fd,a))}function id(a){return Vc&&jd>=a}var kd=m.document,jd=kd&&Vc?ed()||("CSS1Compat"==kd.compatMode?parseInt(fd,10):5):void 0;var ld=!Vc||id(9),md=!Wc&&!Vc||Vc&&id(9)||Wc&&hd("1.9.1"),nd=Vc&&!hd("9"),od=Vc||Uc||Xc;function pd(a){return a?new qd(rd(a)):va||(va=new qd)}function td(a){return v(a)?document.getElementById(a):a}function ud(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):vd("*",a,b)}function wd(a,b){var c=b||document,d=null;c.querySelectorAll&&c.querySelector?d=c.querySelector("."+a):d=vd("*",a,b)[0];return d||null}
function vd(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&&F(a.split(/\s+/),b)&&(d[e++]=h);d.length=e;return d}return c}
function xd(a,b){Jb(b,function(b,d){"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:d in yd?a.setAttribute(yd[d],b):wa(d,"aria-")||wa(d,"data-")?a.setAttribute(d,b):a[d]=b})}var yd={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 zd(a){a=a.document;a="CSS1Compat"==a.compatMode?a.documentElement:a.body;return new G(a.clientWidth,a.clientHeight)}function Ad(a){var b=Bd(a);a=a.parentWindow||a.defaultView;return Vc&&hd("10")&&a.pageYOffset!=b.scrollTop?new Mc(b.scrollLeft,b.scrollTop):new Mc(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}function Bd(a){return Xc||"CSS1Compat"!=a.compatMode?a.body||a.documentElement:a.documentElement}function Cd(a){return a?a.parentWindow||a.defaultView:window}
function H(a,b,c){return Dd(document,arguments)}function Dd(a,b){var c=b[0],d=b[1];if(!ld&&d&&(d.name||d.type)){c=["<",c];d.name&&c.push(' name="',Ba(d.name),'"');if(d.type){c.push(' type="',Ba(d.type),'"');var e={};dc(e,d);delete e.type;d=e}c.push(">");c=c.join("")}c=a.createElement(c);d&&(v(d)?c.className=d:fa(d)?c.className=d.join(" "):xd(c,d));2<b.length&&Ed(a,c,b,2);return c}
function Ed(a,b,c,d){function e(c){c&&b.appendChild(v(c)?a.createTextNode(c):c)}for(;d<c.length;d++){var g=c[d];!ga(g)||ja(g)&&0<g.nodeType?e(g):C(Fd(g)?ub(g):g,e)}}function Gd(a){return document.createElement(a)}function Hd(a){return document.createTextNode(String(a))}function Id(a,b){a.appendChild(b)}function Jd(a,b){Ed(rd(a),a,arguments,1)}function Kd(a){for(var b;b=a.firstChild;)a.removeChild(b)}function Ld(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
function Md(a,b){var c=b.parentNode;c&&c.replaceChild(a,b)}function Nd(a){return md&&void 0!=a.children?a.children:gb(a.childNodes,function(a){return 1==a.nodeType})}function Od(a){return void 0!=a.firstElementChild?a.firstElementChild:Pd(a.firstChild)}function Pd(a){for(;a&&1!=a.nodeType;)a=a.nextSibling;return a}function Qd(a){return ja(a)&&1==a.nodeType}
function Rd(a){var b;if(od&&!(Vc&&hd("9")&&!hd("10")&&m.SVGElement&&a instanceof m.SVGElement)&&(b=a.parentElement))return b;b=a.parentNode;return Qd(b)?b:null}function Sd(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 rd(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
function Td(a){return a.contentWindow||Cd(a.contentDocument||a.contentWindow.document)}function Ud(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{Kd(a);var c=rd(a);a.appendChild(c.createTextNode(String(b)))}}function Vd(a,b){var c=[];return Wd(a,b,c,!0)?c[0]:void 0}
function Wd(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||Wd(a,b,c,d))return!0;a=a.nextSibling}return!1}var Xd={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},Yd={IMG:" ",BR:"\n"};
function Zd(a){var b;(b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!$d(a)||ae(a)):$d(a)&&ae(a))&&Vc?(a=ia(a.getBoundingClientRect)?a.getBoundingClientRect():{height:a.offsetHeight,width:a.offsetWidth},a=null!=a&&0<a.height&&0<a.width):a=b;return a}function $d(a){a=a.getAttributeNode("tabindex");return null!=a&&a.specified}function ae(a){a=a.tabIndex;return ha(a)&&0<=a&&32768>a}
function be(a,b,c){if(!(a.nodeName in Xd))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 Yd)b.push(Yd[a.nodeName]);else for(a=a.firstChild;a;)be(a,b,c),a=a.nextSibling}function Fd(a){if(a&&"number"==typeof a.length){if(ja(a))return"function"==typeof a.item||"string"==typeof a.item;if(ia(a))return"function"==typeof a.item}return!1}
function ce(a,b,c,d){if(!b&&!c)return null;var e=b?b.toUpperCase():null;return de(a,function(a){return(!e||a.nodeName==e)&&(!c||v(a.className)&&F(a.className.split(/\s+/),c))},!0,d)}function ee(a,b){return ce(a,null,b,void 0)}function de(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 qd(a){this.j=a||m.document||document}f=qd.prototype;f.N=function(a){return v(a)?this.j.getElementById(a):a};f.setProperties=xd;
f.tx=function(a,b,c){return Dd(this.j,arguments)};f.createElement=function(a){return this.j.createElement(a)};function fe(a){return"CSS1Compat"==a.j.compatMode}function ge(a){a=a.j;return a.parentWindow||a.defaultView}function ie(a){return Ad(a.j)}f.appendChild=Id;f.append=Jd;f.contains=Sd;var je="StopIteration"in m?m.StopIteration:Error("StopIteration");function ke(){}ke.prototype.next=function(){throw je;};ke.prototype.Vb=function(){return this};function le(a){if(a instanceof ke)return a;if("function"==typeof a.Vb)return a.Vb(!1);if(ga(a)){var b=0,c=new ke;c.next=function(){for(;;){if(b>=a.length)throw je;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function me(a,b,c){if(ga(a))try{C(a,b,c)}catch(d){if(d!==je)throw d;}else{a=le(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==je)throw e;}}}function ne(a){if(ga(a))return ub(a);a=le(a);var b=[];me(a,function(a){b.push(a)});return b};function oe(a,b){this.k={};this.j=[];this.Yd=this.ma=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 oe?(c=a.Ia(),d=a.La()):(c=Rb(a),d=Qb(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}f=oe.prototype;f.Na=function(){return this.ma};f.La=function(){pe(this);for(var a=[],b=0;b<this.j.length;b++)a.push(this.k[this.j[b]]);return a};f.Ia=function(){pe(this);return this.j.concat()};
function qe(a,b){return re(a.k,b)}f.af=function(a){for(var b=0;b<this.j.length;b++){var c=this.j[b];if(re(this.k,c)&&this.k[c]==a)return!0}return!1};f.equals=function(a,b){if(this===a)return!0;if(this.ma!=a.Na())return!1;var c=b||se;pe(this);for(var d,e=0;d=this.j[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function se(a,b){return a===b}f.isEmpty=function(){return 0==this.ma};f.clear=function(){this.k={};this.Yd=this.ma=this.j.length=0};
f.remove=function(a){return re(this.k,a)?(delete this.k[a],this.ma--,this.Yd++,this.j.length>2*this.ma&&pe(this),!0):!1};function pe(a){if(a.ma!=a.j.length){for(var b=0,c=0;b<a.j.length;){var d=a.j[b];re(a.k,d)&&(a.j[c++]=d);b++}a.j.length=c}if(a.ma!=a.j.length){for(var e={},c=b=0;b<a.j.length;)d=a.j[b],re(e,d)||(a.j[c++]=d,e[d]=1),b++;a.j.length=c}}f.get=function(a,b){return re(this.k,a)?this.k[a]:b};f.set=function(a,b){re(this.k,a)||(this.ma++,this.j.push(a),this.Yd++);this.k[a]=b};
f.forEach=function(a,b){for(var c=this.Ia(),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 oe(this)};f.Vb=function(a){pe(this);var b=0,c=this.j,d=this.k,e=this.Yd,g=this,h=new ke;h.next=function(){for(;;){if(e!=g.Yd)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw je;var h=c[b++];return a?h:d[h]}};return h};function re(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function te(a){return"function"==typeof a.Na?a.Na():ga(a)||v(a)?a.length:Nb(a)}function ue(a){if("function"==typeof a.La)return a.La();if(v(a))return a.split("");if(ga(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Qb(a)}function ve(a){if("function"==typeof a.Ia)return a.Ia();if("function"!=typeof a.La){if(ga(a)||v(a)){var b=[];a=a.length;for(var c=0;c<a;c++)b.push(c);return b}return Rb(a)}}
function we(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ga(a)||v(a))C(a,b,c);else for(var d=ve(a),e=ue(a),g=e.length,h=0;h<g;h++)b.call(c,e[h],d&&d[h],a)}function xe(a,b,c){if("function"==typeof a.every)return a.every(b,c);if(ga(a)||v(a))return jb(a,b,c);for(var d=ve(a),e=ue(a),g=e.length,h=0;h<g;h++)if(!b.call(c,e[h],d&&d[h],a))return!1;return!0};var ye=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;function ze(a){if(Ae){Ae=!1;var b=m.location;if(b){var c=b.href;if(c&&(c=Be(c))&&c!=b.hostname)throw Ae=!0,Error();}}return a.match(ye)}var Ae=Xc;function Ce(a){return a?decodeURI(a):a}function Be(a){return Ce(ze(a)[3]||null)}
function De(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?Aa(h):"")}}function Ee(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 Fe(a,b,c){if(fa(b))for(var d=0;d<b.length;d++)Fe(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",za(b))}
function Ge(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)Fe(b[c],b[c+1],a);return a}function He(a,b){for(var c in b)Fe(c,b[c],a);return a}function Ie(a){a=He([],a);a[0]="";return a.join("")}function Je(a,b){return Ee(2==arguments.length?Ge([a],arguments[1],0):Ge([a],arguments,1))}function Ke(a,b){return Ee(He([a],b))}
function Le(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 Ne=/#|$/;function Oe(a,b){var c=a.search(Ne),d=Le(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 Aa(a.substr(d,e-d))}var Pe=/[?&]($|#)/;
function Qe(a,b,c){for(var d=a.search(Ne),e=0,g,h=[];0<=(g=Le(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(Pe,"$1"),"&",b];null!=c&&a.push("=",za(c));return Ee(a)};function I(a,b){var c;a instanceof I?(this.te=n(b)?b:a.te,Re(this,a.Jb),this.Le=a.Le,Se(this,a.mb),Ue(this,a.md),Ve(this,a.Ib),We(this,a.j.clone()),this.ef=a.jf()):a&&(c=ze(String(a)))?(this.te=!!b,Re(this,c[1]||"",!0),this.Le=Xe(c[2]||""),Se(this,c[3]||"",!0),Ue(this,c[4]),Ve(this,c[5]||"",!0),We(this,c[6]||"",!0),this.ef=Xe(c[7]||"")):(this.te=!!b,this.j=new Ye(null,0,this.te))}f=I.prototype;f.Jb="";f.Le="";f.mb="";f.md=null;f.Ib="";f.ef="";f.te=!1;
f.toString=function(){var a=[],b=this.Jb;b&&a.push(Ze(b,$e,!0),":");if(b=this.mb){a.push("//");var c=this.Le;c&&a.push(Ze(c,$e,!0),"@");a.push(za(b).replace(/%25([0-9a-fA-F]{2})/g,"%$1"));b=this.md;null!=b&&a.push(":",String(b))}if(b=this.Ib)this.mb&&"/"!=b.charAt(0)&&a.push("/"),a.push(Ze(b,"/"==b.charAt(0)?af:bf,!0));(b=this.j.toString())&&a.push("?",b);(b=this.jf())&&a.push("#",Ze(b,cf));return a.join("")};
f.resolve=function(a){var b=this.clone(),c=!!a.Jb;c?Re(b,a.Jb):c=!!a.Le;c?b.Le=a.Le:c=!!a.mb;c?Se(b,a.mb):c=null!=a.md;var d=a.Ib;if(c)Ue(b,a.md);else if(c=!!a.Ib){if("/"!=d.charAt(0))if(this.mb&&!this.Ib)d="/"+d;else{var e=b.Ib.lastIndexOf("/");-1!=e&&(d=b.Ib.substr(0,e+1)+d)}e=d;if(".."==e||"."==e)d="";else if(-1!=e.indexOf("./")||-1!=e.indexOf("/.")){for(var d=wa(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?Ve(b,d):c=""!==a.j.toString();c?We(b,Xe(a.j.toString())):c=!!a.ef;c&&(b.ef=a.jf());return b};f.clone=function(){return new I(this)};function Re(a,b,c){a.Jb=c?Xe(b,!0):b;a.Jb&&(a.Jb=a.Jb.replace(/:$/,""))}function df(a){return a.mb}function Se(a,b,c){a.mb=c?Xe(b,!0):b;return a}function Ue(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.md=b}else a.md=null;return a}
function Ve(a,b,c){a.Ib=c?Xe(b,!0):b}function We(a,b,c){b instanceof Ye?(a.j=b,ef(a.j,a.te)):(c||(b=Ze(b,ff)),a.j=new Ye(b,0,a.te));return a}function gf(a){return a.j}f.np=function(){return this.j.toString()};function K(a,b,c){a.j.set(b,c);return a}function hf(a,b,c){fa(c)||(c=[String(c)]);jf(a.j,b,c)}function kf(a,b){return a.j.get(b)}f.jf=function(){return this.ef};
function lf(a){K(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^y()).toString(36));return a}function mf(a){return a instanceof I?a.clone():new I(a,void 0)}function nf(a,b,c,d){var e=new I(null,void 0);a&&Re(e,a);b&&Se(e,b);c&&Ue(e,c);d&&Ve(e,d);return e}function Xe(a,b){return a?b?decodeURI(a):decodeURIComponent(a):""}function Ze(a,b,c){return v(a)?(a=encodeURI(a).replace(b,of),c&&(a=a.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),a):null}
function of(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}var $e=/[#\/\?@]/g,bf=/[\#\?:]/g,af=/[\#\?]/g,ff=/[\#\?@]/g,cf=/#/g;function Ye(a,b,c){this.j=a||null;this.k=!!c}function pf(a){a.$a||(a.$a=new oe,a.ma=0,a.j&&De(a.j,function(b,c){a.add(Aa(b),c)}))}f=Ye.prototype;f.$a=null;f.ma=null;f.Na=function(){pf(this);return this.ma};f.add=function(a,b){pf(this);this.j=null;a=qf(this,a);var c=this.$a.get(a);c||this.$a.set(a,c=[]);c.push(b);this.ma++;return this};
f.remove=function(a){pf(this);a=qf(this,a);return qe(this.$a,a)?(this.j=null,this.ma-=this.$a.get(a).length,this.$a.remove(a)):!1};f.clear=function(){this.$a=this.j=null;this.ma=0};f.isEmpty=function(){pf(this);return 0==this.ma};function rf(a,b){pf(a);b=qf(a,b);return qe(a.$a,b)}f.af=function(a){var b=this.La();return F(b,a)};f.Ia=function(){pf(this);for(var a=this.$a.La(),b=this.$a.Ia(),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.La=function(a){pf(this);var b=[];if(v(a))rf(this,a)&&(b=tb(b,this.$a.get(qf(this,a))));else{a=this.$a.La();for(var c=0;c<a.length;c++)b=tb(b,a[c])}return b};f.set=function(a,b){pf(this);this.j=null;a=qf(this,a);rf(this,a)&&(this.ma-=this.$a.get(a).length);this.$a.set(a,[b]);this.ma++;return this};f.get=function(a,b){var c=a?this.La(a):[];return 0<c.length?String(c[0]):b};function jf(a,b,c){a.remove(b);0<c.length&&(a.j=null,a.$a.set(qf(a,b),ub(c)),a.ma+=c.length)}
f.toString=function(){if(this.j)return this.j;if(!this.$a)return"";for(var a=[],b=this.$a.Ia(),c=0;c<b.length;c++)for(var d=b[c],e=za(d),d=this.La(d),g=0;g<d.length;g++){var h=e;""!==d[g]&&(h+="="+za(d[g]));a.push(h)}return this.j=a.join("&")};f.clone=function(){var a=new Ye;a.j=this.j;this.$a&&(a.$a=this.$a.clone(),a.ma=this.ma);return a};function qf(a,b){var c=String(b);a.k&&(c=c.toLowerCase());return c}
function ef(a,b){b&&!a.k&&(pf(a),a.j=null,a.$a.forEach(function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),jf(this,e,a))},a));a.k=b}f.extend=function(a){for(var b=0;b<arguments.length;b++)we(arguments[b],function(a,b){this.add(b,a)},this)};var sf=/^https?:\/\/([-\w.]+\.youtube(education)?\.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\/)/,tf=/^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]+)?([\/\?\#]|$)/,
uf=/^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\/+/,vf=/^https?:\/\/([A-Za-z0-9-]{1,63}\.)*(corp\.google\.com|borg\.google\.com|gdata\.youtube\.com|prod\.google\.com)(:[0-9]+)?([\/\?\#]|$)/,wf=/^(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]+)?([\/\?\#]|$))/,
xf=/^https?.*#ocr$|^https?:\/\/(secure\-..\.imrworldwide\.com\/|cdn\.imrworldwide\.com\/|aksecure\.imrworldwide\.com\/)/,yf=/^https?:\/\/(www\.google\.com\/(aclk|pagead\/conversion)|googleadservices\.com\/(aclk|pagead\/conversion)|googleads\.g\.doubleclick\.net\/(aclk|pagead\/conversion))/,zf=/^https?:\/\/(www\.google\.com\/pagead\/sul|www\.youtube\.com\/gen_204\?a=sul)/,Af=/^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]+)?([\/\?\#]|$)/,
Bf=/^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]+)?([\/\?\#]|$))/,
Cf=/^https?:\/\/(sf\.api\.[a-z0-9\-]+\.km\.playstation\.net\/|([A-Za-z0-9-]{1,63}\.)*(themis\.dl\.playstation\.net)(:[0-9]+)?([\/\?\#]|$))/,Df=/^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|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 Ef=window.yt&&window.yt.config_||{};q("yt.config_",Ef,void 0);q("yt.tokens_",window.yt&&window.yt.tokens_||{},void 0);var Ff=window.yt&&window.yt.msgs_||{};q("yt.msgs_",Ff,void 0);function Gf(a){Hf(Ef,arguments)}function If(a,b){return a in Ef?Ef[a]:b}function L(a,b){ia(a)&&(a=Jf(a));return window.setTimeout(a,b)}function Kf(a,b){ia(a)&&(a=Jf(a));return window.setInterval(a,b)}function M(a){window.clearTimeout(a)}function Lf(a){window.clearInterval(a)}
function Jf(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw Mf(b),b;}}:a}function Mf(a){var b=r("yt.www.errors.log");b?b(a,void 0):(b=If("ERRORS")||[],b.push([a,void 0]),Gf("ERRORS",b))}function Nf(a){Hf(Ff,arguments)}function Of(a,b,c){var d=b||{};if(a=a in Ff?Ff[a]:c)for(var e in d)a=a.replace(new RegExp("\\$"+e,"gi"),function(){return d[e]});return a}
ta=function(a,b){var c=b||{},d=a in Ff?Ff[a]:a;if(d)for(var e in c)var g=(""+c[e]).replace(/\$/g,"$$$$"),d=d.replace(new RegExp("\\{\\$"+e+"\\}","gi"),g),d=d.replace(new RegExp("\\$"+e,"gi"),g);return d};function Hf(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 Pf="corp.google.com googleplex.com youtube.com youtube-nocookie.com youtubeeducation.com borg.google.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com photos.google.com plus.google.com play.google.com googlevideo.com talkgadget.google.com survey.g.doubleclick.net youtube.googleapis.com vevo.com".split(" "),Qf="2mdn.net corp.google.com imasdk.googleapis.com static.doubleclick.net tpc.googlesyndication.com/pagead/gadgets gstatic.com/doubleclick/studio/innovation/h5/layouts/tetris studioapi.doubleclick.net googleads.g.doubleclick.net gstatic.com/doubleclick/studio/innovation/ytplayer".split(" "),
Rf="";function Sf(a){return a&&a==Rf?!0:Tf(a,Pf)?(Rf=a,!0):!1}function Uf(a){var b=!!a&&-1!=a.search(Df),c=Sf(a)||Tf(a,Qf);b!=c&&Mf(Error("isTrustedLoader("+a+") behavior is not consistent"));return c}function Vf(a){return!!a&&-1!=a.search(wf)}function Wf(a){return!!a&&-1!=a.search(Bf)}function Tf(a,b){return(new RegExp("^(https?:)?//([a-z0-9-]{1,63}\\.)*("+b.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a)}
function Xf(a){a=new I(a);Re(a,document.location.protocol);Se(a,document.location.hostname);document.location.port&&Ue(a,document.location.port);return a.toString()}function Yf(a){a=new I(a);Re(a,document.location.protocol);return a.toString()};var Zf={},$f=0,ag=r("yt.net.ping.workerUrl_")||null;q("yt.net.ping.workerUrl_",ag,void 0);function bg(a,b,c){a&&(c?a&&(a=H("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"}),rd(a).body.appendChild(a)):cg(a,b))}function cg(a,b){var c=new Image,d=""+$f++;Zf[d]=c;c.onload=c.onerror=function(){b&&Zf[d]&&b();delete Zf[d]};c.src=a;c=eval("null")};function dg(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 eg(a){return eval("("+a+")")}function fg(a){return(new gg(void 0)).D(a)}function gg(a){this.j=a}
gg.prototype.D=function(a){var b=[];hg(this,a,b);return b.join("")};
function hg(a,b,c){switch(typeof b){case "string":ig(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(fa(b)){var d=b.length;c.push("[");for(var e="",g=0;g<d;g++)c.push(e),e=b[g],hg(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),ig(g,c),
c.push(":"),hg(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 jg={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},kg=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function ig(a,b){b.push('"',a.replace(kg,function(a){if(a in jg)return jg[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return jg[a]=e+b.toString(16)}),'"')};function lg(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}f=lg.prototype;f.getHeight=function(){return this.bottom-this.top};f.clone=function(){return new lg(this.top,this.right,this.bottom,this.left)};f.contains=function(a){return this&&a?a instanceof lg?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=ha(b)?b:a;this.left*=a;this.right*=a;this.top*=c;this.bottom*=c;return this};function mg(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}f=mg.prototype;f.clone=function(){return new mg(this.left,this.top,this.width,this.height)};function ng(a){return new lg(a.top,a.left+a.width,a.top+a.height,a.left)}function og(a){return new mg(a.left,a.top,a.right-a.left,a.bottom-a.top)}function pg(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 qg(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 mg?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 rg(a){return new G(a.width,a.height)}f.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};f.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
f.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};f.scale=function(a,b){var c=ha(b)?b:a;this.left*=a;this.width*=a;this.top*=c;this.height*=c;return this};function sg(a){sg[" "](a);return a}sg[" "]=u;function tg(a,b){try{return sg(a[b]),!0}catch(c){}return!1};function ug(){return Xc?"Webkit":Wc?"Moz":Vc?"ms":Uc?"O":null}function vg(a,b){if(b&&a in b)return a;var c=ug();return c?(c=c.toLowerCase(),c+=Za(a),!n(b)||c in b?c:null):null};function wg(a,b,c){if(v(b))(b=xg(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],g=xg(c,d);g&&(c.style[g]=e)}}var yg={};function xg(a,b){var c=yg[b];if(!c){var d=Ya(b),c=d;void 0===a.style[d]&&(d=ug()+Za(d),void 0!==a.style[d]&&(c=d));yg[b]=c}return c}function zg(a,b){var c=a.style[Ya(b)];return"undefined"!==typeof c?c:a.style[xg(a,b)]||""}
function Ag(a,b){var c=rd(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Bg(a,b){return Ag(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}function Cg(a,b,c){var d;b instanceof Mc?(d=b.x,b=b.y):(d=b,b=c);a.style.left=Dg(d,!1);a.style.top=Dg(b,!1)}function Eg(a){return new Mc(a.offsetLeft,a.offsetTop)}
function Fg(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}Vc&&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 Gg(a){if(Vc&&!id(8))return a.offsetParent;var b=rd(a),c=Bg(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Bg(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 Hg(a){for(var b=new lg(0,Infinity,Infinity,0),c=pd(a),d=c.j.body,e=c.j.documentElement,g=Bd(c.j);a=Gg(a);)if(!(Vc&&0==a.clientWidth||Xc&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Bg(a,"overflow")){var h=Ig(a),k=new Mc(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=zd(ge(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 Ig(a){var b=rd(a);Bg(a,"position");var c=new Mc(0,0),d;d=b?rd(b):document;d=!Vc||id(9)||fe(pd(d))?d.documentElement:d.body;if(a==d)return c;a=Fg(a);b=ie(pd(b));c.x=a.left+b.x;c.y=a.top+b.y;return c}
function Jg(a,b){var c=new Mc(0,0),d=Cd(rd(a)),e=a;do{var g=d==b?Ig(e):Kg(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 Kg(a){a=Fg(a);return new Mc(a.left,a.top)}function Lg(a){if(1==a.nodeType)return Kg(a);var b=ia(a.jx),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 Mc(c.clientX,c.clientY)}
function Mg(a,b,c){if(b instanceof G)c=b.height,b=b.width;else if(void 0==c)throw Error("missing height argument");Ng(a,b);a.style.height=Dg(c,!0)}function Dg(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}function Ng(a,b){a.style.width=Dg(b,!0)}function Og(a){return Pg(a)}
function Pg(a){var b=Qg;if("none"!=Bg(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 Qg(a){var b=a.offsetWidth,c=a.offsetHeight,d=Xc&&!b&&!c;return n(b)&&!d||!a.getBoundingClientRect?new G(b,c):(a=Fg(a),new G(a.right-a.left,a.bottom-a.top))}function Rg(a){var b=Ig(a);a=Pg(a);return new mg(b.x,b.y,a.width,a.height)}
function Sg(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 Tg(a,b){a.style.display=b?"":"none"}function Ug(a){return"rtl"==Bg(a,"direction")}function Vg(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 Wg(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?Vg(a,c):0}var Xg={thin:2,medium:4,thick:6};function Yg(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 Xg?Xg[c]:Vg(a,c)}
function Zg(a){if(Vc&&!id(9)){var b=Yg(a,"borderLeft"),c=Yg(a,"borderRight"),d=Yg(a,"borderTop");a=Yg(a,"borderBottom");return new lg(d,c,a,b)}b=Ag(a,"borderLeftWidth");c=Ag(a,"borderRightWidth");d=Ag(a,"borderTopWidth");a=Ag(a,"borderBottomWidth");return new lg(parseFloat(d),parseFloat(c),parseFloat(a),parseFloat(b))}var $g=/[^\d]+$/,ah={cm:1,"in":1,mm:1,pc:1,pt:1},bh={em:1,ex:1};
function ch(a){var b=Bg(a,"fontSize"),c;c=(c=b.match($g))&&c[0]||null;if(b&&"px"==c)return parseInt(b,10);if(Vc){if(c in ah)return Vg(a,b);if(a.parentNode&&1==a.parentNode.nodeType&&c in bh)return a=a.parentNode,c=Bg(a,"fontSize"),Vg(a,b==c?"1em":b)}c=H("span",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;Ld(c);return b};function dh(a){if(a.classList)return a.classList;a=a.className;return v(a)&&a.match(/\S+/g)||[]}function eh(a,b){return a.classList?a.classList.contains(b):F(dh(a),b)}function N(a,b){a.classList?a.classList.add(b):eh(a,b)||(a.className+=0<a.className.length?" "+b:b)}function fh(a,b){if(a.classList)C(b,function(b){N(a,b)});else{var c={};C(dh(a),function(a){c[a]=!0});C(b,function(a){c[a]=!0});a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
function gh(a,b){a.classList?a.classList.remove(b):eh(a,b)&&(a.className=gb(dh(a),function(a){return a!=b}).join(" "))}function hh(a,b){a.classList?C(b,function(b){gh(a,b)}):a.className=gb(dh(a),function(a){return!F(b,a)}).join(" ")}function O(a,b,c){c?N(a,b):gh(a,b)}function ih(a,b){var c=!eh(a,b);O(a,b,c)};function jh(a,b,c){a&&(a.dataset?a.dataset[kh(b)]=c:a.setAttribute("data-"+b,c))}function lh(a,b){return a?a.dataset?a.dataset[kh(b)]:a.getAttribute("data-"+b):null}var mh={};function kh(a){return mh[a]||(mh[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};var nh=Xc?"webkit":Wc?"moz":Vc?"ms":Uc?"o":"";function oh(a){var b=a.__yt_uid_key;b||(b=ph(),a.__yt_uid_key=b);return b}var ph=r("yt.dom.getNextId_");if(!ph){ph=function(){return++qh};q("yt.dom.getNextId_",ph,void 0);var qh=0}function rh(a,b){var c=vd(a,null,b);return c.length?c[0]:null}function sh(a,b){if(a in b)return b[a];var c=nh+a.charAt(0).toUpperCase()+a.substr(1);if(c in b)return b[c]}function th(a,b){var c;ib(a,function(a){c=sh(a,b);return!!c});return c};function uh(a){if(a=a||window.event){for(var b in a)b in vh||(this[b]=a[b]);this.scale=a.scale;this.rotation=a.rotation;this.Lb=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.k=a.pageY}}function wh(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.k=a.clientY+b}}
function xh(a){n(a.j)||wh(a);return a.j}function yh(a){n(a.k)||wh(a);return a.k}f=uh.prototype;f.Lb=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.Lb.returnValue=!1;this.Lb.preventDefault&&this.Lb.preventDefault()};
f.stopPropagation=function(){this.Lb.cancelBubble=!0;this.Lb.stopPropagation&&this.Lb.stopPropagation()};f.stopImmediatePropagation=function(){this.Lb.cancelBubble=!0;this.Lb.stopImmediatePropagation&&this.Lb.stopImmediatePropagation()};var vh={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var zh=r("yt.events.listeners_")||{};q("yt.events.listeners_",zh,void 0);var Ah=r("yt.events.counter_")||{count:0};q("yt.events.counter_",Ah,void 0);function Bh(a,b,c,d){return Tb(zh,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=Bh(a,b,c,d);if(e)return e;var e=++Ah.count+"",g=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=g?function(d){d=new uh(d);if(!de(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new uh(b);b.currentTarget=a;return c.call(a,b)};h=Jf(h);zh[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 Ch(a,b){var c;c=P(a,"playing",function(){Dh(c);b.apply(a,arguments)},void 0)}function Eh(a,b,c,d){return Fh(a,b,c,function(a){return eh(a,d)})}
function Fh(a,b,c,d){var e=a||document;return P(e,b,function(a){var b=de(a.target,function(a){return a===e||d(a)},!0);b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}function Dh(a){a&&("string"==typeof a&&(a=[a]),C(a,function(a){if(a in zh){var c=zh[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 zh[a]}}))}function Gh(a){for(var b in zh)zh[b][0]==a&&Dh(b)}
function Hh(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 Ih(){return!!th(["fullscreenEnabled","fullScreenEnabled"],document)}function Jh(){return th(["fullscreenElement","fullScreenElement"],document)};function Kh(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ac(Lh);this.assets=a.assets||{};this.attrs=a.attrs||ac(Mh);this.params=a.params||ac(Nh);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 Lh={enablejsapi:1},Mh={},Nh={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
Kh.prototype.clone=function(){var a=new Kh,b;for(b in this){var c=this[b];"object"==ca(c)?a[b]=ac(c):a[b]=c}return a};var Oh,Ph,Qh,Rh,Sh,Th;Th=Sh=Rh=Qh=Ph=Oh=!1;var Uh=Qc;Uh&&(-1!=Uh.indexOf("Firefox")?Oh=!0:-1!=Uh.indexOf("iPad")?Qh=!0:-1!=Uh.indexOf("iPhone")||-1!=Uh.indexOf("iPod")?Ph=!0:-1!=Uh.indexOf("Chrome")?Sh=!0:-1!=Uh.indexOf("Android")?Rh=!0:-1!=Uh.indexOf("Safari")&&(Th=!0));var Vh=Oh,Wh=Ph,Xh=Qh,Yh=Rh,Zh=Sh,$h=Th;var ai=y(),bi=null,ci=Array(50),di=-1,ei=!1;function fi(a){gi();bi.push(a);hi(bi)}function ii(a){var b=r("yt.mdx.remote.debug.handlers_");qb(b||[],a)}function ji(a,b){gi();var c=bi,d=ki(a,String(b));nb(c)?li(d):(hi(c),C(c,function(a){a(d)}))}function gi(){bi||(bi=r("yt.mdx.remote.debug.handlers_")||[],q("yt.mdx.remote.debug.handlers_",bi,void 0))}function li(a){var b=(di+1)%50;di=b;ci[b]=a;ei||(ei=49==b)}
function hi(a){var b=ci;if(b[0]){var c=di,d=ei?c:-1;do{var d=(d+1)%50,e=b[d];C(a,function(a){a(e)})}while(d!=c);ci=Array(50);di=-1;ei=!1}}function ki(a,b){var c=(y()-ai)/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 mi(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 ni(a,b){return!!b&&(a.id==b||a.uuid==b)}function oi(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 pi(a){return{name:a.name,screenId:a.id,loungeToken:a.token,dialId:a.uuid}}function qi(a){return new mi(a)}function ri(a){return fa(a)?D(a,qi):[]}
function si(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 ti(a){return fa(a)?"["+D(a,si).join(",")+"]":"null"};function Q(){this.Ua=this.Ua;this.Ha=this.Ha}Q.prototype.Ua=!1;Q.prototype.ha=function(){return this.Ua};Q.prototype.dispose=function(){this.Ua||(this.Ua=!0,this.L())};function R(a,b){ui(a,ra(S,b))}function ui(a,b){a.Ua?b.call(void 0):(a.Ha||(a.Ha=[]),a.Ha.push(n(void 0)?x(b,void 0):b))}Q.prototype.L=function(){if(this.Ha)for(;this.Ha.length;)this.Ha.shift()()};function vi(a){return a&&"function"==typeof a.ha?a.ha():!1}function S(a){a&&"function"==typeof a.dispose&&a.dispose()}
function wi(a){for(var b=0,c=arguments.length;b<c;++b){var d=arguments[b];ga(d)?wi.apply(null,d):S(d)}};function xi(){Q.call(this);this.j=[];this.dc={}}z(xi,Q);f=xi.prototype;f.vp=1;f.Zi=0;f.subscribe=function(a,b,c){var d=this.dc[a];d||(d=this.dc[a]=[]);var e=this.vp;this.j[e]=a;this.j[e+1]=b;this.j[e+2]=c;this.vp=e+3;d.push(e);return e};f.unsubscribe=function(a,b,c){if(a=this.dc[a]){var d=this.j;if(a=E(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.Kb(a)}return!1};
f.Kb=function(a){if(0!=this.Zi)return this.k||(this.k=[]),this.k.push(a),!1;var b=this.j[a];if(b){var c=this.dc[b];c&&qb(c,a);delete this.j[a];delete this.j[a+1];delete this.j[a+2]}return!!b};f.publish=function(a,b){var c=this.dc[a];if(c){this.Zi++;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.Zi--;if(this.k&&0==this.Zi)for(;c=this.k.pop();)this.Kb(c);return 0!=e}return!1};
f.clear=function(a){if(a){var b=this.dc[a];b&&(C(b,this.Kb,this),delete this.dc[a])}else this.j.length=0,this.dc={}};f.Na=function(a){if(a){var b=this.dc[a];return b?b.length:0}a=0;for(b in this.dc)a+=this.Na(b);return a};f.L=function(){xi.J.L.call(this);delete this.j;delete this.dc;delete this.k};var yi=r("yt.pubsub.instance_")||new xi;xi.prototype.subscribe=xi.prototype.subscribe;xi.prototype.unsubscribeByKey=xi.prototype.Kb;xi.prototype.publish=xi.prototype.publish;xi.prototype.clear=xi.prototype.clear;q("yt.pubsub.instance_",yi,void 0);var zi=r("yt.pubsub.subscribedKeys_")||{};q("yt.pubsub.subscribedKeys_",zi,void 0);var Ai=r("yt.pubsub.topicToKeys_")||{};q("yt.pubsub.topicToKeys_",Ai,void 0);var Bi=r("yt.pubsub.isSynchronous_")||{};q("yt.pubsub.isSynchronous_",Bi,void 0);
var Ci=r("yt.pubsub.skipSubId_")||null;q("yt.pubsub.skipSubId_",Ci,void 0);function Di(a,b,c){var d=Ei();if(d){var e=d.subscribe(a,function(){if(!Ci||Ci!=e){var d=arguments,h=function(){zi[e]&&b.apply(c||window,d)};try{Bi[a]?h():L(h,0)}catch(k){Mf(k)}}},c);zi[e]=!0;Ai[a]||(Ai[a]=[]);Ai[a].push(e);return e}return 0}function Fi(a){var b=Ei();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),C(a,function(a){b.unsubscribeByKey(a);delete zi[a]}))}
function Gi(a,b){var c=Ei();c&&c.publish.apply(c,arguments)}function Hi(a,b){Bi[a]=!0;var c=Ei();c&&c.publish.apply(c,arguments);Bi[a]=!1}function Ei(){return r("yt.pubsub.instance_")};function Ii(){};function Ji(){}z(Ji,Ii);Ji.prototype.Na=function(){var a=0;me(this.Vb(!0),function(){a++});return a};Ji.prototype.clear=function(){var a=ne(this.Vb(!0)),b=this;C(a,function(a){b.remove(a)})};function Ki(a){this.j=a}z(Ki,Ji);f=Ki.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(!v(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};f.remove=function(a){this.j.removeItem(a)};
f.Na=function(){return this.j.length};f.Vb=function(a){var b=0,c=this.j,d=new ke;d.next=function(){if(b>=c.length)throw je;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!v(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 Li(){var a=null;try{a=window.localStorage||null}catch(b){}this.j=a}z(Li,Ki);function Mi(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.j=a}z(Mi,Ki);function Ni(a){this.j=a}Ni.prototype.set=function(a,b){n(b)?this.j.set(a,fg(b)):this.j.remove(a)};Ni.prototype.get=function(a){var b;try{b=this.j.get(a)}catch(c){return}if(null!==b)try{return dg(b)}catch(d){throw"Storage: Invalid value was encountered";}};Ni.prototype.remove=function(a){this.j.remove(a)};function Oi(a){this.j=a}z(Oi,Ni);function Pi(a){this.data=a}function Qi(a){return!n(a)||a instanceof Pi?a:new Pi(a)}Oi.prototype.set=function(a,b){Oi.J.set.call(this,a,Qi(b))};Oi.prototype.k=function(a){a=Oi.J.get.call(this,a);if(!n(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Oi.prototype.get=function(a){if(a=this.k(a)){if(a=a.data,!n(a))throw"Storage: Invalid value was encountered";}else a=void 0;return a};function Ri(a){this.j=a}z(Ri,Oi);function Si(a){var b=a.creation;a=a.expiration;return!!a&&a<y()||!!b&&b>y()}Ri.prototype.set=function(a,b,c){if(b=Qi(b)){if(c){if(c<y()){Ri.prototype.remove.call(this,a);return}b.expiration=c}b.creation=y()}Ri.J.set.call(this,a,b)};Ri.prototype.k=function(a,b){var c=Ri.J.k.call(this,a);if(c)if(!b&&Si(c))Ri.prototype.remove.call(this,a);else return c};function Ti(a){this.j=a}z(Ti,Ri);function Ui(a,b){var c=[];me(b,function(a){var b;try{b=Ti.prototype.k.call(this,a,!0)}catch(g){if("Storage: Invalid value was encountered"==g)return;throw g;}n(b)?Si(b)&&c.push(a):c.push(a)},a);return c}function Vi(a,b){var c=Ui(a,b);C(c,function(a){Ti.prototype.remove.call(this,a)},a)}function Wi(){var a=Xi;Vi(a,a.j.Vb(!0))};function Yi(a,b,c){var d=c&&0<c?c:0;c=d?y()+1E3*d:0;if((d=d?Xi:Zi)&&window.JSON){v(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function $i(a){if(!Zi&&!Xi||!window.JSON)return null;var b;try{b=Zi.get(a)}catch(c){}if(!v(b))try{b=Xi.get(a)}catch(d){}if(!v(b))return null;try{b=JSON.parse(b,void 0)}catch(e){}return b}function aj(a){Zi&&Zi.remove(a);Xi&&Xi.remove(a)}var Xi,bj=new Li;Xi=bj.isAvailable()?new Ti(bj):null;var Zi,cj=new Mi;Zi=cj.isAvailable()?new Ti(cj):null;var dj=["boadgeojelhgndaghljhdicfkmllpafd","dliochdbjfkdbacpmhlcpmleaejidimm","hfaagokkkhdbgiakmmlclaapfelnkoah","fmfcbgogabcbclcofgocippekhfcmgfj","enhhojjnijigcajfphajepfemndkmdlo"];function ej(a,b){a==dj.length?b(null):fj(dj[a],function(c){c?(c=dj[a],Yi("yt-remote-cast-last-extension",c),b(c)):ej(a+1,b)})}function gj(a){return"chrome-extension://"+a+"/cast_sender.js"}
function fj(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",gj(a),!0),c.send()}catch(d){b(!1)}}
function hj(a){window.__onGCastApiAvailable=a;ij(function(b){if(b){ji("bootstrap","Found cast extension: "+b);q("chrome.cast.extensionId",b,void 0);var c=document.createElement("script");c.src=gj(b);c.onerror=function(){jj();aj("yt-remote-cast-last-extension");a(!1,"Extension JS failed to load.")};(document.head||document.documentElement).appendChild(c)}else ji("bootstrap","No cast extension found"),a(!1,"No cast extension found")})}
function jj(){window.__onGCastApiAvailable&&delete window.__onGCastApiAvailable}function ij(a){var b=$i("yt-remote-cast-last-extension");b?a(b):ej(0,a)};var kj={QJ:"ska",xJ:"que",XI:"mus",NJ:"sus"};function lj(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 mj(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=Aa(h[0]||""),h=Aa(h[1]||"");k in d?fa(d[k])?vb(d[k],h):d[k]=[d[k],h]:d[k]=h}}return d}function nj(a,b){var c=[];Jb(a,function(a,b){var g=za(b),h;fa(a)?h=a:h=[a];C(h,function(a){""==a?c.push(g):c.push(g+"="+za(a))})});return c.join(b)}function oj(a){"?"==a.charAt(0)&&(a=a.substr(1));return mj(a,"&")}
function pj(a){return-1!=a.indexOf("?")?(a=(a||"").split("#")[0],a=a.split("?",2),oj(1<a.length?a[1]:a[0])):{}}var qj=Be;function rj(a){var b=ze(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 sj(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=oj(d[1]||""),e;for(e in b)d[e]=b[e];return Ke(a,d)+c}
function tj(){var a;a||(a=document.location.href);a=ze(a)[1]||null;return null!==a&&"https"==a};var uj=null;"undefined"!=typeof XMLHttpRequest?uj=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(uj=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function vj(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 wj(a,b,c,d,e,g,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&Jf(b)(l)}var l=uj&&uj();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=xj(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 xj(a,b){b=b||{};for(var c in yj){var d=If(yj[c]),e;if(e=d){e=a;var g=void 0;g=window.location.href;var h=ze(e)[1]||null,k=qj(e);h&&k?(e=ze(e),g=ze(g),e=e[3]==g[3]&&e[1]==g[1]&&e[4]==g[4]):e=k?qj(g)==k&&(Number(ze(g)[4]||null)||null)==(Number(ze(e)[4]||null)||null):!0;e||(e=c,g=If("CORS_HEADER_WHITELIST")||{},e=(h=qj(a))?(g=g[h])?F(g,e):!1:!0)}e&&(b[c]=d)}return b}
function zj(a,b){var c=If("XSRF_FIELD_NAME"),d;b.headers&&(d=b.headers["Content-Type"]);return!b.ZK&&(!qj(a)||qj(a)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.Eb&&b.Eb[c])}
function Aj(a,b){var c=b.format||"JSON";b.dL&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=If("XSRF_FIELD_NAME"),e=If("XSRF_TOKEN"),g=b.Of;g&&(g[d]&&delete g[d],a=sj(a,g));var h=b.VC||"",g=b.Eb;zj(a,b)&&(g||(g={}),g[d]=e);g&&v(h)&&(d=oj(h),dc(d,g),h=Ie(d));var k=!1,l,p=wj(a,function(a){if(!k){k=!0;l&&M(l);var d=vj(a),e=null;if(d||400<=a.status&&500>a.status)e=Bj(c,a);if(d)t:{switch(c){case "XML":d=0==parseInt(e&&e.return_code,
10);break t;case "RAW":d=!0;break t}d=!!e}var e=e||{},g=b.context||m;d?b.ab&&b.ab.call(g,a,e):b.onError&&b.onError.call(g,a,e);b.Zb&&b.Zb.call(g,a,e)}},b.method,h,b.headers,b.responseType,b.withCredentials);b.De&&0<b.timeout&&(l=L(function(){k||(k=!0,p.abort(),M(l),b.De.call(b.context||m,p))},b.timeout));return p}
function Bj(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=eg(d));break;case "XML":if(d=(d=b.responseXML)?Cj(d):null)c={},C(d.getElementsByTagName("*"),function(a){c[a.tagName]=Dj(a)})}return c}function Cj(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Dj(a){var b="";C(a.childNodes,function(a){b+=a.nodeValue});return b}
var Ej={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"},Fj={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 Gj(a,b,c,d){if(If("XSRF_TOKEN"))c&&window.setTimeout(c,0);else{var e=rj(document.location.href)+"/token_ajax",g={};a&&(g.authuser=a);b&&(g.pageid=b);g[Ej.watch_actions_ajax]=1;Aj(e,{format:"RAW",method:"GET",Of:g,Zb:function(a){var b=oj(a.responseText);b[Fj.watch_actions_ajax]?c&&c():d&&d(a,b)}})}}var yj={"X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Timestamp":"PAGE_BUILD_TIMESTAMP","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};function Hj(a){this.port=this.o="";this.j="/api/lounge";this.k=!0;a=a||document.location.href;var b=Number(ze(a)[4]||null)||null||"";b&&(this.port=":"+b);this.o=Be(a)||"";a=Qc;0<=a.search("MSIE")&&(a=a.match(/MSIE ([\d.]+)/)[1],0>Ta(a,"10.0")&&(this.k=!1))}function Ij(a,b,c,d){var e=a.j;if(n(d)?d:a.k)e="https://"+a.o+a.port+a.j;return Ke(e+b,c||{})}
Hj.prototype.sendRequest=function(a,b,c,d,e,g,h){a={format:g?"RAW":"JSON",method:a,context:this,timeout:5E3,withCredentials:!!h,ab:ra(this.B,d,!g),onError:ra(this.A,e),De:ra(this.C,e)};c&&(a.Eb=c,a.headers={"Content-Type":"application/x-www-form-urlencoded"});return Aj(b,a)};Hj.prototype.B=function(a,b,c,d){b?a(d):a({text:c.responseText})};Hj.prototype.A=function(a,b){a(Error("Request error: "+b.status))};Hj.prototype.C=function(a){a(Error("request timed out"))};function Jj(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}Jj.prototype.id="";Jj.prototype.name="";Jj.prototype.activityId="";Jj.prototype.status="UNKNOWN";Jj.prototype.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};function Kj(){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 Lj(a){return D(a,function(a){return{key:a.id,name:a.name}})}function Mj(a){return D(a,function(a){return new Jj(a)})}function Nj(a,b){return E(a,function(a){return a.id==b})}function Oj(a,b){return E(a,function(a){return a||b?!a!=!b?!1:a.id==b.id:!0})}function Pj(a,b){return E(a,function(a){return ni(a,b)})};function T(){Q.call(this);this.P=new xi;R(this,this.P)}z(T,Q);T.prototype.subscribe=function(a,b,c){return this.ha()?0:this.P.subscribe(a,b,c)};T.prototype.unsubscribe=function(a,b,c){return this.ha()?!1:this.P.unsubscribe(a,b,c)};T.prototype.Kb=function(a){return this.ha()?!1:this.P.Kb(a)};T.prototype.publish=function(a,b){return this.ha()?!1:this.P.publish.apply(this.P,arguments)};function Qj(a){T.call(this);this.C=a;this.screens=[]}z(Qj,T);f=Qj.prototype;f.Yb=function(){return this.screens};f.contains=function(a){return!!Oj(this.screens,a)};f.get=function(a){return a?Pj(this.screens,a):null};function Rj(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 Sj(a,b){var c=a.screens.length!=b.length;a.screens=gb(a.screens,function(a){return!!Oj(b,a)});for(var d=0,e=b.length;d<e;d++)c=Rj(a,b[d])||c;return c}function Tj(a,b){var c=a.screens.length;a.screens=gb(a.screens,function(a){return!(a||b?!a!=!b?0:a.id==b.id:1)});return a.screens.length<c}f.info=function(a){ji(this.C,a)};f.warn=function(a){ji(this.C,a)};function Uj(a,b,c,d){T.call(this);this.D=a;this.C=b;this.A=c;this.B=d;this.o=0;this.j=null;this.k=NaN}z(Uj,T);var Vj=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];f=Uj.prototype;f.start=function(){!this.j&&isNaN(this.k)&&this.Ns()};f.stop=function(){this.j&&(this.j.abort(),this.j=null);isNaN(this.k)||(M(this.k),this.k=NaN)};f.L=function(){this.stop();Uj.J.L.call(this)};
f.Ns=function(){this.k=NaN;this.j=Aj(Ij(this.D,"/pairing/get_screen"),{method:"POST",Eb:{pairing_code:this.C},timeout:5E3,ab:x(this.WD,this),onError:x(this.VD,this),De:x(this.XD,this)})};f.WD=function(a,b){this.j=null;var c=b.screen||{};c.dialId=this.A;c.name=this.B;this.publish("pairingComplete",new mi(c))};
f.VD=function(a){this.j=null;a.status&&404==a.status?this.o>=Vj.length?this.publish("pairingFailed",Error("DIAL polling timed out")):(a=Vj[this.o],this.k=L(x(this.Ns,this),a),this.o++):this.publish("pairingFailed",Error("Server error "+a.status))};f.XD=function(){this.j=null;this.publish("pairingFailed",Error("Server not responding"))};function Wj(a,b){this.Bf=a;this.xe=b+"::"}z(Wj,Ji);f=Wj.prototype;f.Bf=null;f.xe="";f.set=function(a,b){this.Bf.set(this.xe+a,b)};f.get=function(a){return this.Bf.get(this.xe+a)};f.remove=function(a){this.Bf.remove(this.xe+a)};f.Vb=function(a){var b=this.Bf.Vb(!0),c=this,d=new ke;d.next=function(){for(var d=b.next();d.substr(0,c.xe.length)!=c.xe;)d=b.next();return a?d.substr(c.xe.length):c.Bf.get(d)};return d};function Xj(a){var b=new Li;return b.isAvailable()?a?new Wj(b,a):b:null};function Yj(a){this.j=new oe;if(a){a=ue(a);for(var b=a.length,c=0;c<b;c++)this.add(a[c])}}function Zj(a){var b=typeof a;return"object"==b&&a||"function"==b?"o"+ka(a):b.substr(0,1)+a}f=Yj.prototype;f.Na=function(){return this.j.Na()};f.add=function(a){this.j.set(Zj(a),a)};f.removeAll=function(a){a=ue(a);for(var b=a.length,c=0;c<b;c++)this.remove(a[c])};f.remove=function(a){return this.j.remove(Zj(a))};f.clear=function(){this.j.clear()};f.isEmpty=function(){return this.j.isEmpty()};
f.contains=function(a){return qe(this.j,Zj(a))};f.La=function(){return this.j.La()};f.clone=function(){return new Yj(this)};f.equals=function(a){return this.Na()==te(a)&&ak(this,a)};function ak(a,b){var c=te(b);if(a.Na()>c)return!1;!(b instanceof Yj)&&5<c&&(b=new Yj(b));return xe(a,function(a){var c=b;return"function"==typeof c.contains?c.contains(a):"function"==typeof c.af?c.af(a):ga(c)||v(c)?F(c,a):Pb(c,a)})}f.Vb=function(){return this.j.Vb(!1)};function bk(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL",this.Es=a.user||"",this.avatar=a.userAvatarUri||"",this.theme=a.theme||"u",this.capabilities=new Yj(gb((a.capabilities||"").split(","),ra(Ob,kj))))}bk.prototype.id="";bk.prototype.name="";f=bk.prototype;f.app="";f.type="REMOTE_CONTROL";f.Es="";f.avatar="";f.theme="u";f.equals=function(a){return a?this.id==a.id:!1};function ck(a){this.j=a}var dk=/\s*;\s*/;f=ck.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(dk),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.Ia=function(){return ek(this).keys};f.La=function(){return ek(this).values};f.isEmpty=function(){return!this.j.cookie};f.Na=function(){return this.j.cookie?(this.j.cookie||"").split(dk).length:0};
f.af=function(a){for(var b=ek(this).values,c=0;c<b.length;c++)if(b[c]==a)return!0;return!1};f.clear=function(){for(var a=ek(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};function ek(a){a=(a.j.cookie||"").split(dk);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 fk=new ck(document);fk.k=3950;function gk(a,b){fk.set(""+a,b,void 0,"/","youtube.com")};var hk;function ik(){var a=jk(),b=kk();F(a,b);lk()&&Gb(a,b);a=mk(a);if(nb(a))try{a="remote_sid",fk.remove(""+a,"/","youtube.com")}catch(c){}else try{gk("remote_sid",a.join(","))}catch(d){}}function jk(){var a=$i("yt-remote-connected-devices")||[];Bb(a);return a}function mk(a){if(nb(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return D(a,function(a,b){return 0==b?a:a.substring(c.length)})}function nk(a){Yi("yt-remote-connected-devices",a,86400)}
function kk(){if(ok)return ok;var a=$i("yt-remote-device-id");a||(a=Kj(),Yi("yt-remote-device-id",a,31536E3));for(var b=jk(),c=1,d=a;F(b,d);)c++,d=a+"#"+c;return ok=d}function pk(){return $i("yt-remote-session-browser-channel")}function lk(){return $i("yt-remote-session-screen-id")}
function qk(a){5<a.length&&(a=a.slice(a.length-5));var b=D(rk(),function(a){return a.loungeToken}),c=D(a,function(a){return a.loungeToken});jb(c,function(a){return!F(b,a)})&&sk();Yi("yt-remote-local-screens",a,31536E3)}function rk(){return $i("yt-remote-local-screens")||[]}function sk(){Yi("yt-remote-lounge-token-expiration",!0,86400)}function tk(a){Yi("yt-remote-online-screens",a,60)}function uk(){return $i("yt-remote-online-dial-devices")||[]}
function vk(a,b){Yi("yt-remote-session-browser-channel",a);Yi("yt-remote-session-screen-id",b);var c=jk(),d=kk();F(c,d)||c.push(d);nk(c);ik()}function wk(a){a||(aj("yt-remote-session-screen-id"),aj("yt-remote-session-video-id"));ik();a=jk();qb(a,kk());nk(a)}function xk(){if(!hk){var a=Xj();a&&(hk=new Ni(a))}return hk?!!hk.get("yt-remote-use-staging-server"):!1}var ok="";function yk(a){Qj.call(this,"LocalScreenService");this.k=a;this.j=NaN;zk(this);this.info("Initializing with "+ti(this.screens))}z(yk,Qj);f=yk.prototype;f.start=function(){zk(this)&&this.publish("screenChange");!$i("yt-remote-lounge-token-expiration")&&Ak(this);M(this.j);this.j=L(x(this.start,this),1E4)};f.add=function(a,b){zk(this);Rj(this,a);Bk(this,!1);this.publish("screenChange");b(a);a.token||Ak(this)};f.remove=function(a,b){var c=zk(this);Tj(this,a)&&(Bk(this,!1),c=!0);b(a);c&&this.publish("screenChange")};
f.Gj=function(a,b,c,d){var e=zk(this),g=this.get(a.id);g?(g.name!=b&&(g.name=b,Bk(this,!1),e=!0),c(a)):d(Error("no such local screen."));e&&this.publish("screenChange")};f.L=function(){M(this.j);yk.J.L.call(this)};function Ak(a){if(a.screens.length){var b=D(a.screens,function(a){return a.id}),c=Ij(a.k,"/pairing/get_lounge_token_batch");a.k.sendRequest("POST",c,{screen_ids:b.join(",")},x(a.Tx,a),x(a.Sx,a))}}
f.Tx=function(a){zk(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)}Bk(this,!b);b&&this.warn("Missed "+b+" lounge tokens.")};f.Sx=function(a){this.warn("Requesting lounge tokens failed: "+a)};function zk(a){var b=ri(rk()),b=gb(b,function(a){return!a.uuid});return Sj(a,b)}function Bk(a,b){qk(D(a.screens,pi));b&&sk()};function Ck(a,b){T.call(this);this.B=b;for(var c=$i("yt-remote-online-screen-ids")||"",c=c?c.split(","):[],d={},e=this.B(),g=0,h=e.length;g<h;++g){var k=e[g].id;d[k]=F(c,k)}this.j=d;this.C=a;this.o=this.A=NaN;this.k=null;Dk("Initialized with "+fg(this.j))}z(Ck,T);f=Ck.prototype;f.start=function(){var a=parseInt($i("yt-remote-fast-check-period")||"0",10);(this.A=y()-144E5<a?0:a)?Ek(this):(this.A=y()+3E5,Yi("yt-remote-fast-check-period",this.A),this.Dm())};f.isEmpty=function(){return Xb(this.j)};
f.update=function(){Dk("Updating availability on schedule.");var a=this.B(),b=Kb(this.j,function(b,d){return b&&!!Pj(a,d)},this);Fk(this,b)};function Gk(a,b,c){var d=Ij(a.C,"/pairing/get_screen_availability");a.C.sendRequest("POST",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.L=function(){M(this.o);this.o=NaN;this.k&&(this.k.abort(),this.k=null);Ck.J.L.call(this)};
function Fk(a,b){var c;t:if(Nb(b)!=Nb(a.j))c=!1;else{c=Rb(b);for(var d=0,e=c.length;d<e;++d)if(!a.j[c[d]]){c=!1;break t}c=!0}c||(Dk("Updated online screens: "+fg(a.j)),a.j=b,a.publish("screenChange"));Hk(a)}function Ek(a){isNaN(a.o)||M(a.o);a.o=L(x(a.Dm,a),0<a.A&&a.A<y()?2E4:1E4)}
f.Dm=function(){M(this.o);this.o=NaN;this.k&&this.k.abort();var a=Ik(this);if(Nb(a)){var b=Ij(this.C,"/pairing/get_screen_availability"),c={lounge_token:Rb(a).join(",")};this.k=this.C.sendRequest("POST",b,c,x(this.NB,this,a),x(this.MB,this))}else Fk(this,{}),Ek(this)};
f.NB=function(a,b){this.k=null;var c=Rb(Ik(this));if(Eb(c,Rb(a))){for(var c=b.screens||[],d={},e=0,g=c.length;e<g;++e)d[a[c[e].loungeToken]]="online"==c[e].status;Fk(this,d);Ek(this)}else this.Qa("Changing Screen set during request."),this.Dm()};f.MB=function(a){this.Qa("Screen availability failed: "+a);this.k=null;Ek(this)};function Dk(a){ji("OnlineScreenService",a)}f.Qa=function(a){ji("OnlineScreenService",a)};
function Ik(a){var b={};C(a.B(),function(a){a.token?b[a.token]=a.id:this.Qa("Requesting availability of screen w/o lounge token.")});return b}function Hk(a){var b=Rb(Kb(a.j,function(a){return a}));Bb(b);b.length?Yi("yt-remote-online-screen-ids",b.join(","),60):aj("yt-remote-online-screen-ids");a=gb(a.B(),function(a){return!!this.j[a.id]},a);tk(D(a,pi))};function Jk(a){Qj.call(this,"ScreenService");this.B=a;this.j=this.k=null;this.o=[];this.A={};Kk(this)}z(Jk,Qj);f=Jk.prototype;f.start=function(){this.k.start();this.j.start();this.screens.length&&(this.publish("screenChange"),this.j.isEmpty()||this.publish("onlineScreenChange"))};f.add=function(a,b,c){this.k.add(a,b,c)};f.remove=function(a,b,c){this.k.remove(a,b,c);this.j.update()};
f.Gj=function(a,b,c,d){this.k.contains(a)?this.k.Gj(a,b,c,d):(a="Updating name of unknown screen: "+a.name,this.warn(a),d(Error(a)))};f.Yb=function(a){return a?this.screens:tb(this.screens,gb(this.o,function(a){return!this.contains(a)},this))};f.Os=function(){return gb(this.Yb(!0),function(a){return!!this.j.j[a.id]},this)};
function Lk(a,b,c,d,e,g){a.info("getAutomaticScreenByIds "+c+" / "+b);c||(c=a.A[b]);var h=a.Yb();if(h=(c?Pj(h,c):null)||Pj(h,b)){h.uuid=b;var k=Mk(a,h);Gk(a.j,k,function(a){e(a?k:null)})}else c?Nk(a,c,x(function(a){var g=Mk(this,new mi({name:d,screenId:c,loungeToken:a,dialId:b||""}));Gk(this.j,g,function(a){e(a?g:null)})},a),g):e(null)}
f.Ps=function(a,b,c,d,e){this.info("getDialScreenByPairingCode "+a+" / "+b);var g=new Uj(this.B,a,b,c);g.subscribe("pairingComplete",x(function(a){S(g);d(Mk(this,a))},this));g.subscribe("pairingFailed",function(a){S(g);e(a)});g.start();return x(g.stop,g)};function Ok(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.ox=function(a,b){for(var c=2,d=b(a,c);Ok(this,d);){c++;if(20<c)return a;d=b(a,c)}return d};
f.ZD=function(a,b,c,d){Aj(Ij(this.B,"/pairing/get_screen"),{method:"POST",Eb:{pairing_code:a},timeout:5E3,ab:x(function(a,d){var h=new mi(d.screen||{});if(!h.name||Ok(this,h.name))h.name=this.ox(h.name,b);c(Mk(this,h))},this),onError:x(function(a){d(Error("pairing request failed: "+a.status))},this),De:x(function(){d(Error("pairing request timed out."))},this)})};f.L=function(){S(this.k);S(this.j);Jk.J.L.call(this)};
function Nk(a,b,c,d){a.info("requestLoungeToken_ for "+b);var e={Eb:{screen_ids:b},method:"POST",context:a,ab: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"))}};Aj(Ij(a.B,"/pairing/get_lounge_token_batch"),e)}
function Pk(a){a.screens=a.k.Yb();var b=a.A,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: "+ti(a.screens))}f.vy=function(){Pk(this);this.publish("screenChange");this.j.update()};
function Kk(a){Qk(a);a.k=new yk(a.B);a.k.subscribe("screenChange",x(a.vy,a));Pk(a);a.o=ri($i("yt-remote-automatic-screen-cache")||[]);Qk(a);a.info("Initializing automatic screens: "+ti(a.o));a.j=new Ck(a.B,x(a.Yb,a,!0));a.j.subscribe("screenChange",x(function(){this.publish("onlineScreenChange")},a))}
function Mk(a,b){var c=a.get(b.id);c?(c.uuid=b.uuid,b=c):((c=Pj(a.o,b.uuid))?(c.id=b.id,c.token=b.token,b=c):a.o.push(b),Yi("yt-remote-automatic-screen-cache",D(a.o,pi)));Qk(a);a.A[b.uuid]=b.id;Yi("yt-remote-device-id-map",a.A,31536E3);return b}function Qk(a){a.A=$i("yt-remote-device-id-map")||{}}Jk.prototype.dispose=Jk.prototype.dispose;function Rk(a,b,c){T.call(this);this.K=c;this.G=a;this.k=b;this.o=null}z(Rk,T);function Sk(a,b){a.o=b;a.publish("sessionScreen",a.o)}f=Rk.prototype;f.Rb=function(a){this.ha()||(a&&this.warn(""+a),this.o=null,this.publish("sessionScreen",null))};f.info=function(a){ji(this.K,a)};f.warn=function(a){ji(this.K,a)};f.Rs=function(){return null};
f.Lm=function(a){var b=this.k;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.L=function(){this.Lm("");Rk.J.L.call(this)};function Tk(a,b){Rk.call(this,a,b,"CastSession");this.j=null;this.B=0;this.A=null;this.D=x(this.$D,this);this.C=x(this.QC,this);this.B=L(x(function(){Uk(this,null)},this),12E4)}z(Tk,Rk);f=Tk.prototype;
f.Km=function(a){if(this.j){if(this.j==a)return;this.warn("Overriding cast sesison with new session object");this.j.removeUpdateListener(this.D);this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C)}this.j=a;this.j.addUpdateListener(this.D);this.j.addMessageListener("urn:x-cast:com.google.youtube.mdx",this.C);this.A&&Vk(this);Wk(this,"getMdxSessionStatus")};f.yf=function(a){this.info("launchWithParams: "+fg(a));this.A=a;this.j&&Vk(this)};
f.stop=function(){this.j?this.j.stop(x(function(){this.Rb()},this),x(function(){this.Rb(Error("Failed to stop receiver app."))},this)):this.Rb(Error("Stopping cast device witout session."))};f.Lm=u;f.L=function(){this.info("disposeInternal");M(this.B);this.B=0;this.j&&(this.j.removeUpdateListener(this.D),this.j.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.C));this.j=null;Tk.J.L.call(this)};
function Vk(a){var b=a.A.videoId||a.A.videoIds[a.A.index];b&&Wk(a,"flingVideo",{videoId:b,currentTime:a.A.currentTime||0});a.A=null}function Wk(a,b,c){a.info("sendYoutubeMessage_: "+b+" "+fg(c));var d={};d.type=b;c&&(d.data=c);a.j?a.j.sendMessage("urn:x-cast:com.google.youtube.mdx",d,u,x(function(){this.warn("Failed to send message: "+b+".")},a)):a.warn("Sending yt message without session: "+fg(d))}
f.QC=function(a,b){if(!this.ha())if(b){var c=eg(b);if(c){var d=""+c.type,c=c.data||{};this.info("onYoutubeMessage_: "+d+" "+fg(c));switch(d){case "mdxSessionStatus":Uk(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 Uk(a,b){M(a.B);b?(a.info("onConnectedScreenId_: Received screenId: "+b),a.o&&a.o.id==b||Lk(a.G,a.k.label,b,a.k.friendlyName,x(function(a){a?Sk(this,a):this.Rb(Error("Unable to fetch screen."))},a),x(a.Rb,a))):a.Rb(Error("Waiting for session status timed out."))}f.Rs=function(){return this.j};f.$D=function(a){this.ha()||a||(this.warn("Cast session died."),this.Rb())};function Xk(a,b){Rk.call(this,a,b,"DialSession");this.B=this.F=null;this.H="";this.A=null;this.D=u;this.C=NaN;this.I=x(this.bE,this);this.j=u}z(Xk,Rk);f=Xk.prototype;f.Km=function(a){this.B=a;this.B.addUpdateListener(this.I)};f.yf=function(a){this.A=a;this.D()};f.stop=function(){this.j();this.j=u;M(this.C);this.B?this.B.stop(x(this.Rb,this,null),x(this.Rb,this,"Failed to stop DIAL device.")):this.Rb()};
f.L=function(){this.j();this.j=u;M(this.C);this.B&&this.B.removeUpdateListener(this.I);this.B=null;Xk.J.L.call(this)};function Yk(a){a.j=a.G.Ps(a.H,a.k.label,a.k.friendlyName,x(function(a){this.j=u;Sk(this,a)},a),x(function(a){this.j=u;this.Rb(a)},a))}f.bE=function(a){this.ha()||a||(this.warn("DIAL session died."),this.j(),this.j=u,this.Rb())};
function Zk(a){var b={};b.pairingCode=a.H;if(a.A){var c=a.A.index||0,d=a.A.currentTime||0;b.v=a.A.videoId||a.A.videoIds[c];b.t=d}xk()&&(b.env_useStageMdx=1);return Ie(b)}f.Ol=function(a){this.H=Kj();if(this.A){var b=new chrome.cast.DialLaunchResponse(!0,Zk(this));a(b);Yk(this)}else this.D=x(function(){M(this.C);this.D=u;this.C=NaN;var b=new chrome.cast.DialLaunchResponse(!0,Zk(this));a(b);Yk(this)},this),this.C=L(x(function(){this.D()},this),100)};
f.rz=function(a,b){Lk(this.G,this.F.receiver.label,a,this.k.friendlyName,x(function(a){a&&a.token?(Sk(this,a),b(new chrome.cast.DialLaunchResponse(!1))):this.Ol(b)},this),x(function(a){this.warn("Failed to get DIAL screen: "+a);this.Ol(b)},this))};function $k(a,b){Rk.call(this,a,b,"ManualSession");this.j=L(x(this.yf,this,null),150)}z($k,Rk);$k.prototype.stop=function(){this.Rb()};$k.prototype.Km=u;$k.prototype.yf=function(){M(this.j);this.j=NaN;var a=Pj(this.G.Yb(),this.k.label);a?Sk(this,a):this.Rb(Error("No such screen"))};$k.prototype.L=function(){M(this.j);this.j=NaN;$k.J.L.call(this)};function al(a){T.call(this);this.k=a;this.j=null;this.B=!1;this.o=[];this.A=x(this.FB,this)}z(al,T);f=al.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.or,this),x(this.IB,this),d,e);c.customDialLaunchCallback=x(this.LA,this);chrome.cast.initialize(c,x(function(){this.ha()||(chrome.cast.addReceiverActionListener(this.A),
fi(bl),this.k.subscribe("onlineScreenChange",x(this.Qs,this)),this.o=cl(this),chrome.cast.setCustomReceivers(this.o,u,x(function(a){this.Qa("Failed to set initial custom receivers: "+fg(a))},this)),this.publish("yt-remote-cast2-availability-change",dl(this)),b(!0))},this),function(a){this.Qa("Failed to initialize API: "+fg(a));b(!1)})};
f.jD=function(a,b){el("Setting connected screen ID: "+a+" -> "+b);if(this.j){var c=this.j.o;if(!a||c&&c.id!=a)el("Unsetting old screen status: "+this.j.k.friendlyName),S(this.j),this.j=null}if(a&&b){if(!this.j){c=Pj(this.k.Yb(),a);if(!c){el("setConnectedScreenStatus: Unknown screen.");return}var d=fl(this,c);d||(el("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.o.push(d),chrome.cast.setCustomReceivers(this.o,
u,x(function(a){this.Qa("Failed to set initial custom receivers: "+fg(a))},this)));el("setConnectedScreenStatus: new active receiver: "+d.friendlyName);gl(this,new $k(this.k,d),!0)}this.j.Lm(b)}else el("setConnectedScreenStatus: no screen.")};function fl(a,b){return b?E(a.o,function(a){return ni(b,a.label)},a):null}f.kD=function(a){this.ha()?this.Qa("Setting connection data on disposed cast v2"):this.j?this.j.yf(a):this.Qa("Setting connection data without a session")};
f.stopSession=function(){this.ha()?this.Qa("Stopping session on disposed cast v2"):this.j?(this.j.stop(),S(this.j),this.j=null):el("Stopping non-existing session")};f.requestSession=function(){chrome.cast.requestSession(x(this.or,this),x(this.RB,this))};f.L=function(){this.k.unsubscribe("onlineScreenChange",x(this.Qs,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.A);ii(bl);S(this.j);al.J.L.call(this)};function el(a){ji("Controller",a)}
f.Qa=function(a){ji("Controller",a)};function bl(a){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(a)}function dl(a){return a.B||!!a.o.length||!!a.j}function gl(a,b,c){S(a.j);(a.j=b)?(c?a.publish("yt-remote-cast2-receiver-resumed",b.k):a.publish("yt-remote-cast2-receiver-selected",b.k),b.subscribe("sessionScreen",x(a.pr,a,b)),b.o?a.publish("yt-remote-cast2-session-change",b.o):c&&a.j.yf(null)):a.publish("yt-remote-cast2-session-change",null)}
f.pr=function(a,b){this.j==a&&(b||gl(this,null),this.publish("yt-remote-cast2-session-change",b))};
f.FB=function(a,b){if(!this.ha())if(a)switch(el("onReceiverAction_ "+a.label+" / "+a.friendlyName+"-- "+b),b){case chrome.cast.ReceiverAction.CAST:if(this.j)if(this.j.k.label!=a.label)el("onReceiverAction_: Stopping active receiver: "+this.j.k.friendlyName),this.j.stop();else{el("onReceiverAction_: Casting to active receiver.");this.j.o&&this.publish("yt-remote-cast2-session-change",this.j.o);break}switch(a.receiverType){case chrome.cast.ReceiverType.CUSTOM:gl(this,new $k(this.k,a));break;case chrome.cast.ReceiverType.DIAL:gl(this,
new Xk(this.k,a));break;case chrome.cast.ReceiverType.CAST:gl(this,new Tk(this.k,a));break;default:this.Qa("Unknown receiver type: "+a.receiverType);return}break;case chrome.cast.ReceiverAction.STOP:this.j&&this.j.k.label==a.label?this.j.stop():this.Qa("Stopping receiver w/o session: "+a.friendlyName)}else this.Qa("onReceiverAction_ called without receiver.")};
f.LA=function(a){if(this.ha())return Promise.reject(Error("disposed"));var b=a.receiver;b.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.Qa("Not DIAL receiver: "+b.friendlyName),b.receiverType=chrome.cast.ReceiverType.DIAL);var c=this.j?this.j.k:null;if(!c||c.label!=b.label)return this.Qa("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.o)return el("Reselecting dial screen."),
this.publish("yt-remote-cast2-session-change",this.j.o),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.Qa('Changing CAST intent from "'+c.receiverType+'" to "dial" for '+b.friendlyName);gl(this,new Xk(this.k,b))}b=this.j;b.F=a;return b.F.appState==chrome.cast.DialAppState.RUNNING?new Promise(x(b.rz,b,(b.F.extraData||{}).screenId||null)):new Promise(x(b.Ol,b))};
f.or=function(a){if(!this.ha()){el("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)el("Got resumed cast session before resumed mdx connection."),gl(this,new Tk(this.k,b),!0);else{this.Qa("Got non-cast session without previous mdx receiver event, or mdx resume.");return}var c=this.j.k,d=Pj(this.k.Yb(),c.label);d&&ni(d,b.label)&&c.receiverType!=chrome.cast.ReceiverType.CAST&&b.receiverType==
chrome.cast.ReceiverType.CAST&&(el("onSessionEstablished_: manual to cast session change "+b.friendlyName),S(this.j),this.j=new Tk(this.k,b),this.j.subscribe("sessionScreen",x(this.pr,this,this.j)),this.j.yf(null));this.j.Km(a)}}};f.aE=function(){return this.j?this.j.Rs():null};f.RB=function(a){this.ha()||(this.Qa("Failed to estabilish a session: "+fg(a)),a.code!=chrome.cast.ErrorCode.CANCEL&&gl(this,null))};
f.IB=function(a){el("Receiver availability updated: "+a);if(!this.ha()){var b=dl(this);this.B=a==chrome.cast.ReceiverAvailability.AVAILABLE;dl(this)!=b&&this.publish("yt-remote-cast2-availability-change",dl(this))}};
function cl(a){var b=a.k.Os(),c=a.j&&a.j.k;a=D(b,function(a){c&&ni(a,c.label)&&(c=null);var b=a.uuid?a.uuid:a.id,g=fl(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.Qs=function(){if(!this.ha()){var a=dl(this);this.o=cl(this);el("Updating custom receivers: "+fg(this.o));chrome.cast.setCustomReceivers(this.o,u,x(function(){this.Qa("Failed to set custom receivers.")},this));var b=dl(this);b!=a&&this.publish("yt-remote-cast2-availability-change",b)}};al.prototype.setLaunchParams=al.prototype.kD;al.prototype.setConnectedScreenStatus=al.prototype.jD;al.prototype.stopSession=al.prototype.stopSession;al.prototype.getCastSession=al.prototype.aE;
al.prototype.requestSession=al.prototype.requestSession;al.prototype.init=al.prototype.init;al.prototype.dispose=al.prototype.dispose;function hl(a,b,c){il()?kl(b)&&(ll(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?ml(a,c):hj(function(b,e){b?ml(a,c):(nl("Failed to load cast API: "+e),ol(!1),ll(!1),aj("yt-remote-cast-available"),aj("yt-remote-cast-receiver"),pl(),c(!1))})):jl("Cannot initialize because not running Chrome")}function pl(){jl("dispose");jj();var a=ql();a&&a.dispose();rl=null;q("yt.mdx.remote.cloudview.instance_",null,void 0);sl(!1);Fi(tl);tl.length=0}function ul(){return!!$i("yt-remote-cast-installed")}
function vl(){var a=$i("yt-remote-cast-receiver");return a?a.friendlyName:null}function wl(){return ul()?ql()?rl.getCastSession():(nl("getCastSelector: Cast is not initialized."),null):(nl("getCastSelector: Cast API is not installed!"),null)}
function xl(){ul()?ql()?yl()?(jl("Requesting cast selector."),rl.requestSession()):(jl("Wait for cast API to be ready to request the session."),tl.push(Di("yt-remote-cast2-api-ready",xl))):nl("requestCastSelector: Cast is not initialized."):nl("requestCastSelector: Cast API is not installed!")}function zl(a){yl()?ql().setLaunchParams(a):nl("setLaunchParams called before ready.")}
function Al(){var a=Bl();yl()?ql().setConnectedScreenStatus(a,"YouTube TV"):nl("setConnectedScreenStatus called before ready.")}var rl=null;function il(){var a;a=0<=Qc.search(/\ (CrMo|Chrome|CriOS)\//);return Zh||a}function Cl(a,b){rl.init(a,b)}
function kl(a){var b=!1;if(!rl){var c=r("yt.mdx.remote.cloudview.instance_");c||(c=new al(a),c.subscribe("yt-remote-cast2-availability-change",function(a){Yi("yt-remote-cast-available",a);Gi("yt-remote-cast2-availability-change",a)}),c.subscribe("yt-remote-cast2-receiver-selected",function(a){jl("onReceiverSelected: "+a.friendlyName);Yi("yt-remote-cast-receiver",a);Gi("yt-remote-cast2-receiver-selected",a)}),c.subscribe("yt-remote-cast2-receiver-resumed",function(a){jl("onReceiverResumed: "+a.friendlyName);
Yi("yt-remote-cast-receiver",a)}),c.subscribe("yt-remote-cast2-session-change",function(a){jl("onSessionChange: "+si(a));a||aj("yt-remote-cast-receiver");Gi("yt-remote-cast2-session-change",a)}),q("yt.mdx.remote.cloudview.instance_",c,void 0),b=!0);rl=c}jl("cloudview.createSingleton_: "+b);return b}function ql(){rl||(rl=r("yt.mdx.remote.cloudview.instance_"));return rl}
function ml(a,b){ol(!0);ll(!1);Cl(a,function(a){a?(sl(!0),Gi("yt-remote-cast2-api-ready")):(nl("Failed to initialize cast API."),ol(!1),aj("yt-remote-cast-available"),aj("yt-remote-cast-receiver"),pl());b(a)})}function jl(a){ji("cloudview",a)}function nl(a){ji("cloudview",a)}function ol(a){jl("setCastInstalled_ "+a);Yi("yt-remote-cast-installed",a)}function yl(){return!!r("yt.mdx.remote.cloudview.apiReady_")}function sl(a){jl("setApiReady_ "+a);q("yt.mdx.remote.cloudview.apiReady_",a,void 0)}
function ll(a){q("yt.mdx.remote.cloudview.initializing_",a,void 0)}var tl=[];function Dl(a,b){this.action=a;this.params=b||null};function El(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Fl(a){ji("CAST",a)}function Gl(a){var b=Hl();b&&b.logMessage&&b.logMessage(a)}function Il(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Jl.length;)Jl.shift()()}
function Kl(){if(!r("yt.mdx.remote.castv2_")&&!Ll&&(nb(Ml)&&vb(Ml,uk()),El())){var a=Hl();a?(a.removeReceiverListener("YouTube",Nl),a.addReceiverListener("YouTube",Nl),Fl("API initialized in the other binary")):(a=new cast.Api,Ol(a),a.addReceiverListener("YouTube",Nl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){L(function(){window.location.reload(!0)},1E3)}),fi(Gl),Fl("API initialized"));Ll=!0}}
function Pl(){var a=Hl();a&&(Fl("API disposed"),ii(Gl),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(u),a.removeReceiverListener("YouTube",Nl),Ol(null));Ll=!1;Jl=null;(a=Bh(window,"message",Il,!1))&&Dh(a)}function Ql(a){var b=kb(Ml,function(b){return b.id==a.id});0<=b&&(Ml[b]={id:a.id,name:a.name,activityId:a.activityId,status:a.status})}
function Nl(a){a.length&&Fl("Updating receivers: "+fg(a));Rl(a);Gi("yt-remote-cast-device-list-update");C(Sl(),function(a){Tl(a.id)});C(a,function(a){if(a.isTabProjected){var c=Ul(a.id);Fl("Detected device: "+c.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event.");L(function(){Gi("yt-remote-cast-device-tab-projected",c.id)},1E3)}})}
function Vl(a,b){Fl("Updating "+a+" activity status: "+fg(b));var c=Ul(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=""),Ql(c),Gi("yt-remote-cast-device-status-update",c)):Fl("Device not found")}function Sl(){Kl();return Mj(Ml)}
function Rl(a){a=D(a,function(a){var c={id:a.id,name:Ja(a.name)};if(a=Ul(a.id))c.activityId=a.activityId,c.status=a.status;return c});ob(Ml);vb(Ml,a)}function Ul(a){var b=Sl();return E(b,function(b){return b.id==a})||null}function Tl(a){var b=Ul(a),c=Hl();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");Vl(a,b)})}
function Wl(a){Kl();var b=Ul(a),c=Hl();c&&b&&b.activityId?(Fl("Stopping cast activity"),c.stopActivity(b.activityId,ra(Vl,a))):Fl("Dropping cast activity stop")}function Hl(){return r("yt.mdx.remote.castapi.api_")}function Ol(a){q("yt.mdx.remote.castapi.api_",a,void 0)}var Ll=!1,Jl=null,Ml=r("yt.mdx.remote.castapi.devices_")||[];q("yt.mdx.remote.castapi.devices_",Ml,void 0);function Xl(){};function Yl(){this.j=y()}new Yl;Yl.prototype.set=function(a){this.j=a};Yl.prototype.get=function(){return this.j};function Zl(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=this.k=!1;this.Qr=!0}Zl.prototype.stopPropagation=function(){this.k=!0};Zl.prototype.preventDefault=function(){this.defaultPrevented=!0;this.Qr=!1};function $l(a){a.stopPropagation()};var am=!Vc||id(9),bm=Vc&&!hd("9");!Xc||hd("528");Wc&&hd("1.9b")||Vc&&hd("8")||Uc&&hd("9.5")||Xc&&hd("528");Wc&&!hd("8")||Vc&&hd("9");var cm="ontouchstart"in m||!!(m.document&&document.documentElement&&"ontouchstart"in document.documentElement)||!(!m.navigator||!m.navigator.msMaxTouchPoints);function dm(a,b){Zl.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=this.il=this.fl=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.j=this.state=null;a&&this.init(a,b)}z(dm,Zl);f=dm.prototype;
f.init=function(a,b){this.j=a;var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;d?Wc&&(tg(d,"nodeName")||(d=null)):"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;Object.defineProperties?Object.defineProperties(this,{fl:{configurable:!0,enumerable:!0,get:this.jp,set:this.lD},il:{configurable:!0,enumerable:!0,get:this.kp,set:this.mD}}):(this.fl=this.jp(),this.il=this.kp());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;a.defaultPrevented&&this.preventDefault()};f.stopPropagation=function(){dm.J.stopPropagation.call(this);this.j.stopPropagation?this.j.stopPropagation():this.j.cancelBubble=!0};
f.preventDefault=function(){dm.J.preventDefault.call(this);var a=this.j;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,bm)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};f.jx=function(){return this.j};f.jp=function(){return Xc||void 0!==this.j.offsetX?this.j.offsetX:this.j.layerX};f.lD=function(a){Object.defineProperties(this,{fl:{writable:!0,enumerable:!0,configurable:!0,value:a}})};f.kp=function(){return Xc||void 0!==this.j.offsetY?this.j.offsetY:this.j.layerY};
f.mD=function(a){Object.defineProperties(this,{il:{writable:!0,enumerable:!0,configurable:!0,value:a}})};var em="closure_listenable_"+(1E6*Math.random()|0);function fm(a){return!(!a||!a[em])}var gm=0;function hm(a,b,c,d,e){this.listener=a;this.proxy=null;this.src=b;this.type=c;this.Ye=!!d;this.Nc=e;this.key=++gm;this.removed=this.Ph=!1}function im(a){a.removed=!0;a.listener=null;a.proxy=null;a.src=null;a.Nc=null};function jm(a){this.src=a;this.j={};this.k=0}jm.prototype.add=function(a,b,c,d,e){var g=a.toString();a=this.j[g];a||(a=this.j[g]=[],this.k++);var h=km(a,b,d,e);-1<h?(b=a[h],c||(b.Ph=!1)):(b=new hm(b,this.src,g,!!d,e),b.Ph=c,a.push(b));return b};jm.prototype.remove=function(a,b,c,d){a=a.toString();if(!(a in this.j))return!1;var e=this.j[a];b=km(e,b,c,d);return-1<b?(im(e[b]),rb(e,b),0==e.length&&(delete this.j[a],this.k--),!0):!1};
function lm(a,b){var c=b.type;if(!(c in a.j))return!1;var d=qb(a.j[c],b);d&&(im(b),0==a.j[c].length&&(delete a.j[c],a.k--));return d}jm.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,im(d[e]);delete this.j[c];this.k--}return b};function mm(a,b,c,d,e){a=a.j[b.toString()];b=-1;a&&(b=km(a,c,d,e));return-1<b?a[b]:null}
function km(a,b,c,d){for(var e=0;e<a.length;++e){var g=a[e];if(!g.removed&&g.listener==b&&g.Ye==!!c&&g.Nc==d)return e}return-1};var nm="closure_lm_"+(1E6*Math.random()|0),om={},pm=0;function qm(a,b,c,d,e){if(fa(b)){for(var g=0;g<b.length;g++)qm(a,b[g],c,d,e);return null}c=rm(c);return fm(a)?a.listen(b,c,d,e):sm(a,b,c,!1,d,e)}function sm(a,b,c,d,e,g){if(!b)throw Error("Invalid event type");var h=!!e,k=tm(a);k||(a[nm]=k=new jm(a));c=k.add(b,c,d,e,g);if(c.proxy)return c;d=um();c.proxy=d;d.src=a;d.listener=c;a.addEventListener?a.addEventListener(b.toString(),d,h):a.attachEvent(vm(b.toString()),d);pm++;return c}
function um(){var a=wm,b=am?function(c){return a.call(b.src,b.listener,c)}:function(c){c=a.call(b.src,b.listener,c);if(!c)return c};return b}function xm(a,b,c,d,e){if(fa(b)){for(var g=0;g<b.length;g++)xm(a,b[g],c,d,e);return null}c=rm(c);return fm(a)?a.Zc.add(String(b),c,!0,d,e):sm(a,b,c,!0,d,e)}function ym(a,b,c,d,e){if(fa(b))for(var g=0;g<b.length;g++)ym(a,b[g],c,d,e);else c=rm(c),fm(a)?a.Fa(b,c,d,e):a&&(a=tm(a))&&(b=mm(a,b,c,!!d,e))&&zm(b)}
function zm(a){if(ha(a)||!a||a.removed)return!1;var b=a.src;if(fm(b))return lm(b.Zc,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.Ye):b.detachEvent&&b.detachEvent(vm(c),d);pm--;(c=tm(b))?(lm(c,a),0==c.k&&(c.src=null,b[nm]=null)):im(a);return!0}function vm(a){return a in om?om[a]:om[a]="on"+a}function Am(a,b,c,d){var e=!0;if(a=tm(a))if(b=a.j[b.toString()])for(b=b.concat(),a=0;a<b.length;a++){var g=b[a];g&&g.Ye==c&&!g.removed&&(g=Bm(g,d),e=e&&!1!==g)}return e}
function Bm(a,b){var c=a.listener,d=a.Nc||a.src;a.Ph&&zm(a);return c.call(d,b)}
function wm(a,b){if(a.removed)return!0;if(!am){var c=b||r("window.event"),d=new dm(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var g=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){g=!0}if(g||void 0==c.returnValue)c.returnValue=!0}c=[];for(g=d.currentTarget;g;g=g.parentNode)c.push(g);for(var g=a.type,k=c.length-1;!d.k&&0<=k;k--){d.currentTarget=c[k];var l=Am(c[k],g,!0,d),e=e&&l}for(k=0;!d.k&&k<c.length;k++)d.currentTarget=c[k],l=Am(c[k],g,!1,d),e=e&&l}return e}return Bm(a,new dm(b,
this))}function tm(a){a=a[nm];return a instanceof jm?a:null}var Cm="__closure_events_fn_"+(1E9*Math.random()>>>0);function rm(a){if(ia(a))return a;a[Cm]||(a[Cm]=function(b){return a.handleEvent(b)});return a[Cm]};function U(){Q.call(this);this.Zc=new jm(this);this.na=this;this.X=null}z(U,Q);U.prototype[em]=!0;f=U.prototype;f.pj=function(a){this.X=a};f.addEventListener=function(a,b,c,d){qm(this,a,b,c,d)};f.removeEventListener=function(a,b,c,d){ym(this,a,b,c,d)};
f.U=function(a){var b,c=this.X;if(c){b=[];for(var d=1;c;c=c.X)b.push(c),++d}c=this.na;d=a.type||a;if(v(a))a=new Zl(a,c);else if(a instanceof Zl)a.target=a.target||c;else{var e=a;a=new Zl(d,c);dc(a,e)}var e=!0,g;if(b)for(var h=b.length-1;!a.k&&0<=h;h--)g=a.currentTarget=b[h],e=Dm(g,d,!0,a)&&e;a.k||(g=a.currentTarget=c,e=Dm(g,d,!0,a)&&e,a.k||(e=Dm(g,d,!1,a)&&e));if(b)for(h=0;!a.k&&h<b.length;h++)g=a.currentTarget=b[h],e=Dm(g,d,!1,a)&&e;return e};
f.L=function(){U.J.L.call(this);this.removeAllListeners();this.X=null};f.listen=function(a,b,c,d){return this.Zc.add(String(a),b,!1,c,d)};f.Fa=function(a,b,c,d){return this.Zc.remove(String(a),b,c,d)};f.removeAllListeners=function(a){return this.Zc?this.Zc.removeAll(a):0};
function Dm(a,b,c,d){b=a.Zc.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.removed&&h.Ye==c){var k=h.listener,l=h.Nc||h.src;h.Ph&&lm(a.Zc,h);e=!1!==k.call(l,d)&&e}}return e&&0!=d.Qr};function Em(a,b){this.k=new gg(a);this.j=b?eg:dg}Em.prototype.stringify=function(a){return this.k.D(a)};Em.prototype.parse=function(a){return this.j(a)};function Fm(a){this.k=0;this.o=a||100;this.j=[]}f=Fm.prototype;f.add=function(a){var b=this.j[this.k];this.j[this.k]=a;this.k=(this.k+1)%this.o;return b};f.get=function(a){a=Gm(this,a);return this.j[a]};f.set=function(a,b){a=Gm(this,a);this.j[a]=b};f.Na=function(){return this.j.length};f.isEmpty=function(){return 0==this.j.length};f.clear=function(){this.k=this.j.length=0};f.La=function(){for(var a=this.Na(),b=this.Na(),c=[],a=this.Na()-a;a<b;a++)c.push(this.get(a));return c};
f.Ia=function(){for(var a=[],b=this.Na(),c=0;c<b;c++)a[c]=c;return a};f.af=function(a){for(var b=this.Na(),c=0;c<b;c++)if(this.get(c)==a)return!0;return!1};function Gm(a,b){if(b>=a.j.length)throw Error("Out of bounds exception");return a.j.length<a.o?b:(a.k+Number(b))%a.o};function Hm(a){m.setTimeout(function(){throw a;},0)}var Im;
function Jm(){var a=m.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!Tc("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&&!Tc("Trident")&&!Tc("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(n(c.next)){c=c.next;var a=c.Do;c.Do=null;a()}};return function(a){d.next={Do: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 Km(a,b){Lm||Mm();Nm||(Lm(),Nm=!0);Om.push(new Pm(a,b))}var Lm;function Mm(){if(m.Promise&&m.Promise.resolve){var a=m.Promise.resolve();Lm=function(){a.then(Qm)}}else Lm=function(){var a=Qm;!ia(m.setImmediate)||m.Window&&m.Window.prototype.setImmediate==m.setImmediate?(Im||(Im=Jm()),Im(a)):m.setImmediate(a)}}var Nm=!1,Om=[];function Qm(){for(;Om.length;){var a=Om;Om=[];for(var b=0;b<a.length;b++){var c=a[b];try{c.j.call(c.scope)}catch(d){Hm(d)}}}Nm=!1}
function Pm(a,b){this.j=a;this.scope=b};function Rm(a){a.prototype.then=a.prototype.then;a.prototype.$goog_Thenable=!0}function Sm(a){if(!a)return!1;try{return!!a.$goog_Thenable}catch(b){return!1}};function Tm(a,b){this.k=0;this.C=void 0;this.j=this.o=null;this.A=this.B=!1;try{var c=this;a.call(b,function(a){Um(c,2,a)},function(a){Um(c,3,a)})}catch(d){Um(this,3,d)}}Tm.prototype.then=function(a,b,c){return Vm(this,ia(a)?a:null,ia(b)?b:null,c)};Rm(Tm);Tm.prototype.cancel=function(a){0==this.k&&Km(function(){var b=new Wm(a);Xm(this,b)},this)};
function Xm(a,b){if(0==a.k)if(a.o){var c=a.o;if(c.j){for(var d=0,e=-1,g=0,h;h=c.j[g];g++)if(h=h.ig)if(d++,h==a&&(e=g),0<=e&&1<d)break;0<=e&&(0==c.k&&1==d?Xm(c,b):(d=c.j.splice(e,1)[0],Ym(c,d,3,b)))}}else Um(a,3,b)}function Zm(a,b){a.j&&a.j.length||2!=a.k&&3!=a.k||$m(a);a.j||(a.j=[]);a.j.push(b)}
function Vm(a,b,c,d){var e={ig:null,Oq:null,kr:null};e.ig=new Tm(function(a,h){e.Oq=b?function(c){try{var e=b.call(d,c);a(e)}catch(p){h(p)}}:a;e.kr=c?function(b){try{var e=c.call(d,b);!n(e)&&b instanceof Wm?h(b):a(e)}catch(p){h(p)}}:h});e.ig.o=a;Zm(a,e);return e.ig}Tm.prototype.D=function(a){this.k=0;Um(this,2,a)};Tm.prototype.F=function(a){this.k=0;Um(this,3,a)};
function Um(a,b,c){if(0==a.k){if(a==c)b=3,c=new TypeError("Promise cannot resolve to itself");else{if(Sm(c)){a.k=1;c.then(a.D,a.F,a);return}if(ja(c))try{var d=c.then;if(ia(d)){an(a,c,d);return}}catch(e){b=3,c=e}}a.C=c;a.k=b;$m(a);3!=b||c instanceof Wm||bn(a,c)}}function an(a,b,c){function d(b){g||(g=!0,a.F(b))}function e(b){g||(g=!0,a.D(b))}a.k=1;var g=!1;try{c.call(b,e,d)}catch(h){d(h)}}function $m(a){a.B||(a.B=!0,Km(a.G,a))}
Tm.prototype.G=function(){for(;this.j&&this.j.length;){var a=this.j;this.j=[];for(var b=0;b<a.length;b++)Ym(this,a[b],this.k,this.C)}this.B=!1};function Ym(a,b,c,d){if(2==c)b.Oq(d);else{if(b.ig)for(;a&&a.A;a=a.o)a.A=!1;b.kr(d)}}function bn(a,b){a.A=!0;Km(function(){a.A&&cn.call(null,b)})}var cn=Hm;function Wm(a){ua.call(this,a)}z(Wm,ua);Wm.prototype.name="cancel";function dn(a,b){U.call(this);this.j=a||1;this.k=b||m;this.o=x(this.qx,this);this.A=y()}z(dn,U);f=dn.prototype;f.enabled=!1;f.gc=null;function en(a,b){a.j=b;a.gc&&a.enabled?(a.stop(),a.start()):a.gc&&a.stop()}f.qx=function(){if(this.enabled){var a=y()-this.A;0<a&&a<.8*this.j?this.gc=this.k.setTimeout(this.o,this.j-a):(this.gc&&(this.k.clearTimeout(this.gc),this.gc=null),this.U("tick"),this.enabled&&(this.gc=this.k.setTimeout(this.o,this.j),this.A=y()))}};
f.start=function(){this.enabled=!0;this.gc||(this.gc=this.k.setTimeout(this.o,this.j),this.A=y())};f.stop=function(){this.enabled=!1;this.gc&&(this.k.clearTimeout(this.gc),this.gc=null)};f.L=function(){dn.J.L.call(this);this.stop();delete this.k};function fn(a,b,c){if(ia(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 gn(a){m.clearTimeout(a)};function hn(a,b,c){Q.call(this);this.A=a;this.o=b;this.k=c;this.j=x(this.bC,this)}z(hn,Q);f=hn.prototype;f.Kf=!1;f.Mg=0;f.ue=null;function jn(a){a.ue||a.Mg?a.Kf=!0:kn(a)}f.stop=function(){this.ue&&(gn(this.ue),this.ue=null,this.Kf=!1)};f.pause=function(){this.Mg++};f.resume=function(){this.Mg--;this.Mg||!this.Kf||this.ue||(this.Kf=!1,kn(this))};f.L=function(){hn.J.L.call(this);this.stop()};f.bC=function(){this.ue=null;this.Kf&&!this.Mg&&(this.Kf=!1,kn(this))};
function kn(a){a.ue=fn(a.j,a.o);a.A.call(a.k)};function ln(a){Q.call(this);this.A=a;this.k={}}z(ln,Q);var mn=[];f=ln.prototype;f.listen=function(a,b,c,d){return nn(this,a,b,c,d)};function on(a,b,c,d,e){nn(a,b,c,d,!1,e)}function nn(a,b,c,d,e,g){fa(c)||(c&&(mn[0]=c.toString()),c=mn);for(var h=0;h<c.length;h++){var k=qm(b,c[h],d||a.handleEvent,e||!1,g||a.A||a);if(!k)break;a.k[k.key]=k}return a}function pn(a,b,c,d){qn(a,b,c,d,void 0)}function rn(a,b,c,d,e){qn(a,b,c,d,!1,e)}
function qn(a,b,c,d,e,g){if(fa(c))for(var h=0;h<c.length;h++)qn(a,b,c[h],d,e,g);else(b=xm(b,c,d||a.handleEvent,e,g||a.A||a))&&(a.k[b.key]=b)}f.Fa=function(a,b,c,d,e){if(fa(b))for(var g=0;g<b.length;g++)this.Fa(a,b[g],c,d,e);else c=c||this.handleEvent,e=e||this.A||this,c=rm(c),d=!!d,b=fm(a)?mm(a.Zc,String(b),c,d,e):a?(a=tm(a))?mm(a,b,c,d,e):null:null,b&&(zm(b),delete this.k[b.key]);return this};f.removeAll=function(){Jb(this.k,zm);this.k={}};f.L=function(){ln.J.L.call(this);this.removeAll()};
f.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function sn(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 tn(){}tn.prototype.j=null;function un(a){var b;(b=a.j)||(b={},vn(a)&&(b[0]=!0,b[1]=!0),b=a.j=b);return b};var wn;function xn(){}z(xn,tn);function yn(a){return(a=vn(a))?new ActiveXObject(a):new XMLHttpRequest}function vn(a){if(!a.k&&"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.k=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.k}wn=new xn;function zn(a,b,c,d,e){this.j=a;this.o=c;this.D=d;this.C=e||1;this.vb=45E3;this.A=new ln(this);this.k=new dn;en(this.k,250)}f=zn.prototype;f.ve=null;f.Dc=!1;f.Qf=null;f.ln=null;f.Pg=null;f.nf=null;f.zd=null;f.Qd=null;f.Ee=null;f.rb=null;f.fh=0;f.Gc=null;f.Ij=null;f.we=null;f.wg=-1;f.Xr=!0;f.ne=!1;f.ql=0;f.bj=null;var An={},Bn={};f=zn.prototype;f.setTimeout=function(a){this.vb=a};function Cn(a,b,c){a.nf=1;a.zd=lf(b.clone());a.Ee=c;a.B=!0;Dn(a,null)}
function En(a,b,c,d,e){a.nf=1;a.zd=lf(b.clone());a.Ee=null;a.B=c;e&&(a.Xr=!1);Dn(a,d)}function Dn(a,b){a.Pg=y();Fn(a);a.Qd=a.zd.clone();hf(a.Qd,"t",a.C);a.fh=0;a.rb=a.j.Nk(a.j.Xg()?b:null);0<a.ql&&(a.bj=new hn(x(a.Ls,a,a.rb),a.ql));a.A.listen(a.rb,"readystatechange",a.ZC);var c=a.ve?ac(a.ve):{};a.Ee?(a.Ij="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.rb.send(a.Qd,a.Ij,a.Ee,c)):(a.Ij="GET",a.Xr&&!Xc&&(c.Connection="close"),a.rb.send(a.Qd,a.Ij,null,c));a.j.yc(1)}
f.ZC=function(a){a=a.target;var b=this.bj;b&&3==Gn(a)?jn(b):this.Ls(a)};
f.Ls=function(a){try{if(a==this.rb)t:{var b=Gn(this.rb),c=this.rb.k,d=this.rb.getStatus();if(Vc&&!id(10)||Xc&&!hd("420+")){if(4>b)break t}else if(3>b||3==b&&!Uc&&!Hn(this.rb))break t;this.ne||4!=b||7==c||(8==c||0>=d?this.j.yc(3):this.j.yc(2));In(this);var e=this.rb.getStatus();this.wg=e;var g=Hn(this.rb);(this.Dc=200==e)?(4==b&&Jn(this),this.B?(Kn(this,b,g),Uc&&this.Dc&&3==b&&(this.A.listen(this.k,"tick",this.UC),this.k.start())):Ln(this,g),this.Dc&&!this.ne&&(4==b?this.j.Wi(this):(this.Dc=!1,Fn(this)))):
(this.we=400==e&&0<g.indexOf("Unknown SID")?3:0,Mn(),Jn(this),Nn(this))}}catch(h){this.rb&&Hn(this.rb)}finally{}};function Kn(a,b,c){for(var d=!0;!a.ne&&a.fh<c.length;){var e=On(a,c);if(e==Bn){4==b&&(a.we=4,Mn(),d=!1);break}else if(e==An){a.we=4;Mn();d=!1;break}else Ln(a,e)}4==b&&0==c.length&&(a.we=1,Mn(),d=!1);a.Dc=a.Dc&&d;d||(Jn(a),Nn(a))}f.UC=function(){var a=Gn(this.rb),b=Hn(this.rb);this.fh<b.length&&(In(this),Kn(this,a,b),this.Dc&&4!=a&&Fn(this))};
function On(a,b){var c=a.fh,d=b.indexOf("\n",c);if(-1==d)return Bn;c=Number(b.substring(c,d));if(isNaN(c))return An;d+=1;if(d+c>b.length)return Bn;var e=b.substr(d,c);a.fh=d+c;return e}
function Pn(a,b){a.Pg=y();Fn(a);var c=b?window.location.hostname:"";a.Qd=a.zd.clone();K(a.Qd,"DOMAIN",c);K(a.Qd,"t",a.C);try{a.Gc=new ActiveXObject("htmlfile")}catch(d){Jn(a);a.we=7;Mn();Nn(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.Gc.open();a.Gc.write(e);a.Gc.close();a.Gc.parentWindow.m=x(a.lC,a);a.Gc.parentWindow.d=x(a.Ar,a,!0);a.Gc.parentWindow.rpcClose=x(a.Ar,a,!1);c=a.Gc.createElement("div");a.Gc.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.Qd+'"></iframe>';a.j.yc(1)}f.lC=function(a){Qn(x(this.kC,this,a),0)};f.kC=function(a){this.ne||(In(this),Ln(this,a),Fn(this))};f.Ar=function(a){Qn(x(this.jC,this,a),0)};f.jC=function(a){this.ne||(Jn(this),this.Dc=a,this.j.Wi(this),this.j.yc(4))};f.cancel=function(){this.ne=!0;Jn(this)};function Fn(a){a.ln=y()+a.vb;Rn(a,a.vb)}function Rn(a,b){if(null!=a.Qf)throw Error("WatchDog timer not null");a.Qf=Qn(x(a.KC,a),b)}
function In(a){a.Qf&&(m.clearTimeout(a.Qf),a.Qf=null)}f.KC=function(){this.Qf=null;var a=y();0<=a-this.ln?(2!=this.nf&&this.j.yc(3),Jn(this),this.we=2,Mn(),Nn(this)):Rn(this,this.ln-a)};function Nn(a){a.j.pp()||a.ne||a.j.Wi(a)}function Jn(a){In(a);S(a.bj);a.bj=null;a.k.stop();a.A.removeAll();if(a.rb){var b=a.rb;a.rb=null;b.abort();b.dispose()}a.Gc&&(a.Gc=null)}function Ln(a,b){try{a.j.nr(a,b),a.j.yc(4)}catch(c){}};function Sn(a,b,c,d,e){if(0==d)c(!1);else{var g=e||0;d--;Tn(a,b,function(e){e?c(!0):m.setTimeout(function(){Sn(a,b,c,d,g)},g)})}}function Tn(a,b,c){var d=new Image;d.onload=function(){try{Un(d),c(!0)}catch(a){}};d.onerror=function(){try{Un(d),c(!1)}catch(a){}};d.onabort=function(){try{Un(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Un(d),c(!1)}catch(a){}};m.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Un(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Vn(a){this.j=a;this.k=new Em(null,!0)}f=Vn.prototype;f.ll=null;f.ac=null;f.cj=!1;f.qp=null;f.di=null;f.nl=null;f.pl=null;f.hc=null;f.$c=-1;f.vg=null;f.hg=null;f.connect=function(a){this.pl=a;a=Wn(this.j,null,this.pl);Mn();this.qp=y();var b=this.j.F;null!=b?(this.vg=b[0],(this.hg=b[1])?(this.hc=1,Xn(this)):(this.hc=2,Yn(this))):(hf(a,"MODE","init"),this.ac=new zn(this,0,void 0,void 0,void 0),this.ac.ve=this.ll,En(this.ac,a,!1,null,!0),this.hc=0)};
function Xn(a){var b=Wn(a.j,a.hg,"/mail/images/cleardot.gif");lf(b);Sn(b.toString(),5E3,x(a.Jw,a),3,2E3);a.yc(1)}f.Jw=function(a){if(a)this.hc=2,Yn(this);else{Mn();var b=this.j;b.wc=b.Bd.$c;Zn(b,9)}a&&this.yc(2)};
function Yn(a){var b=a.j.G;if(null!=b)Mn(),b?(Mn(),$n(a.j,a,!1)):(Mn(),$n(a.j,a,!0));else if(a.ac=new zn(a,0,void 0,void 0,void 0),a.ac.ve=a.ll,b=a.j,b=Wn(b,b.Xg()?a.vg:null,a.pl),Mn(),!Vc||id(10))hf(b,"TYPE","xmlhttp"),En(a.ac,b,!1,a.vg,!1);else{hf(b,"TYPE","html");var c=a.ac;a=Boolean(a.vg);c.nf=3;c.zd=lf(b.clone());Pn(c,a)}}f.Nk=function(a){return this.j.Nk(a)};f.abort=function(){this.ac&&(this.ac.cancel(),this.ac=null);this.$c=-1};f.pp=function(){return!1};
f.nr=function(a,b){this.$c=a.wg;if(0==this.hc)if(b){try{var c=this.k.parse(b)}catch(d){c=this.j;c.wc=this.$c;Zn(c,2);return}this.vg=c[0];this.hg=c[1]}else c=this.j,c.wc=this.$c,Zn(c,2);else if(2==this.hc)if(this.cj)Mn(),this.nl=y();else if("11111"==b){if(Mn(),this.cj=!0,this.di=y(),c=this.di-this.qp,!Vc||id(10)||500>c)this.$c=200,this.ac.cancel(),Mn(),$n(this.j,this,!0)}else Mn(),this.di=this.nl=y(),this.cj=!1};
f.Wi=function(){this.$c=this.ac.wg;if(this.ac.Dc)0==this.hc?this.hg?(this.hc=1,Xn(this)):(this.hc=2,Yn(this)):2==this.hc&&(a=!1,(a=!Vc||id(10)?this.cj:200>this.nl-this.di?!1:!0)?(Mn(),$n(this.j,this,!0)):(Mn(),$n(this.j,this,!1)));else{0==this.hc?Mn():2==this.hc&&Mn();var a=this.j;a.wc=this.$c;Zn(a,2)}};f.Xg=function(){return this.j.Xg()};f.isActive=function(){return this.j.isActive()};f.yc=function(a){this.j.yc(a)};function ao(a){U.call(this);this.headers=new oe;this.K=a||null;this.o=!1;this.I=this.j=null;this.S=this.F="";this.k=0;this.C="";this.A=this.P=this.D=this.M=!1;this.B=0;this.G=null;this.T="";this.H=this.O=!1}z(ao,U);var bo=/^https?$/i,co=["POST","PUT"];function eo(a,b){a.B=Math.max(0,b)}f=ao.prototype;
f.send=function(a,b,c,d){if(this.j)throw Error("[goog.net.XhrIo] Object is active with another request="+this.F+"; newUri="+a);b=b?b.toUpperCase():"GET";this.F=a;this.C="";this.k=0;this.S=b;this.M=!1;this.o=!0;this.j=this.K?yn(this.K):yn(wn);this.I=this.K?un(this.K):un(wn);this.j.onreadystatechange=x(this.ir,this);try{Xl(fo(this,"Opening Xhr")),this.P=!0,this.j.open(b,String(a),!0),this.P=!1}catch(e){Xl(fo(this,"Error opening Xhr: "+e.message));go(this,e);return}a=c||"";var g=this.headers.clone();
d&&we(d,function(a,b){g.set(b,a)});d=E(g.Ia(),ho);c=m.FormData&&a instanceof m.FormData;!F(co,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.T&&(this.j.responseType=this.T);"withCredentials"in this.j&&(this.j.withCredentials=this.O);try{io(this),0<this.B&&(this.H=jo(this.j),Xl(fo(this,"Will abort after "+this.B+"ms if incomplete, xhr2 "+this.H)),this.H?(this.j.timeout=this.B,this.j.ontimeout=x(this.vb,
this)):this.G=fn(this.vb,this.B,this)),Xl(fo(this,"Sending request")),this.D=!0,this.j.send(a),this.D=!1}catch(h){Xl(fo(this,"Send error: "+h.message)),go(this,h)}};function jo(a){return Vc&&hd(9)&&ha(a.timeout)&&n(a.ontimeout)}function ho(a){return"content-type"==a.toLowerCase()}f.vb=function(){"undefined"!=typeof aa&&this.j&&(this.C="Timed out after "+this.B+"ms, aborting",this.k=8,fo(this,this.C),this.U("timeout"),this.abort(8))};
function go(a,b){a.o=!1;a.j&&(a.A=!0,a.j.abort(),a.A=!1);a.C=b;a.k=5;ko(a);lo(a)}function ko(a){a.M||(a.M=!0,a.U("complete"),a.U("error"))}f.abort=function(a){this.j&&this.o&&(fo(this,"Aborting"),this.o=!1,this.A=!0,this.j.abort(),this.A=!1,this.k=a||7,this.U("complete"),this.U("abort"),lo(this))};f.L=function(){this.j&&(this.o&&(this.o=!1,this.A=!0,this.j.abort(),this.A=!1),lo(this,!0));ao.J.L.call(this)};f.ir=function(){this.ha()||(this.P||this.D||this.A?mo(this):this.EB())};f.EB=function(){mo(this)};
function mo(a){if(a.o&&"undefined"!=typeof aa)if(a.I[1]&&4==Gn(a)&&2==a.getStatus())fo(a,"Local request error detected and ignored");else if(a.D&&4==Gn(a))fn(a.ir,0,a);else if(a.U("readystatechange"),4==Gn(a)){fo(a,"Request complete");a.o=!1;try{var b=a.getStatus(),c;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:c=!0;break t;default:c=!1}var d;if(!(d=c)){var e;if(e=0===b){var g=ze(String(a.F))[1]||null;if(!g&&self.location)var h=self.location.protocol,g=h.substr(0,h.length-
1);e=!bo.test(g?g.toLowerCase():"")}d=e}if(d)a.U("complete"),a.U("success");else{a.k=6;var k;try{k=2<Gn(a)?a.j.statusText:""}catch(l){k=""}a.C=k+" ["+a.getStatus()+"]";ko(a)}}finally{lo(a)}}}function lo(a,b){if(a.j){io(a);var c=a.j,d=a.I[0]?u:null;a.j=null;a.I=null;b||a.U("ready");try{c.onreadystatechange=d}catch(e){}}}function io(a){a.j&&a.H&&(a.j.ontimeout=null);ha(a.G)&&(gn(a.G),a.G=null)}f.isActive=function(){return!!this.j};function Gn(a){return a.j?a.j.readyState:0}
f.getStatus=function(){try{return 2<Gn(this)?this.j.status:-1}catch(a){return-1}};function Hn(a){try{return a.j?a.j.responseText:""}catch(b){return""}}function fo(a,b){return b+" ["+a.S+" "+a.F+" "+a.getStatus()+"]"};function no(a,b,c){this.D=a||null;this.j=1;this.k=[];this.A=[];this.B=new Em(null,!0);this.F=b||null;this.G=null!=c?c:null}function oo(a,b){this.j=a;this.map=b;this.context=null}f=no.prototype;f.pg=null;f.Nb=null;f.fb=null;f.kl=null;f.gi=null;f.xo=null;f.oi=null;f.Jg=0;f.Rz=0;f.Cb=null;f.Fd=null;f.Wc=null;f.pe=null;f.Bd=null;f.Hj=null;f.wf=-1;f.gq=-1;f.wc=-1;f.qg=0;f.We=0;f.oe=8;var po=new U;function qo(a){Zl.call(this,"statevent",a)}z(qo,Zl);
function ro(a,b){Zl.call(this,"timingevent",a);this.size=b}z(ro,Zl);function so(a){Zl.call(this,"serverreachability",a)}z(so,Zl);f=no.prototype;f.connect=function(a,b,c,d,e){Mn();this.kl=b;this.pg=c||{};d&&n(e)&&(this.pg.OSID=d,this.pg.OAID=e);this.Bd=new Vn(this);this.Bd.ll=null;this.Bd.k=this.B;this.Bd.connect(a)};
f.disconnect=function(){to(this);if(3==this.j){var a=this.Jg++,b=this.gi.clone();K(b,"SID",this.o);K(b,"RID",a);K(b,"TYPE","terminate");uo(this,b);a=new zn(this,0,this.o,a,void 0);a.nf=2;a.zd=lf(b.clone());(new Image).src=a.zd;a.Pg=y();Fn(a)}vo(this)};function to(a){a.Bd&&(a.Bd.abort(),a.Bd=null);a.fb&&(a.fb.cancel(),a.fb=null);a.Wc&&(m.clearTimeout(a.Wc),a.Wc=null);wo(a);a.Nb&&(a.Nb.cancel(),a.Nb=null);a.Fd&&(m.clearTimeout(a.Fd),a.Fd=null)}
function xo(a,b){if(0==a.j)throw Error("Invalid operation: sending map when state is closed");a.k.push(new oo(a.Rz++,b));2!=a.j&&3!=a.j||yo(a)}f.pp=function(){return 0==this.j};f.getState=function(){return this.j};function zo(a){var b=0;a.fb&&b++;a.Nb&&b++;return b}function yo(a){a.Nb||a.Fd||(a.Fd=Qn(x(a.wr,a),0),a.qg=0)}f.wr=function(a){this.Fd=null;Ao(this,a)};
function Ao(a,b){if(1==a.j){if(!b){a.Jg=Math.floor(1E5*Math.random());var c=a.Jg++,d=new zn(a,0,"",c,void 0);d.ve=null;var e=Bo(a),g=a.gi.clone();K(g,"RID",c);a.D&&K(g,"CVER",a.D);uo(a,g);Cn(d,g,e);a.Nb=d;a.j=2}}else 3==a.j&&(b?Co(a,b):0!=a.k.length&&(a.Nb||Co(a)))}
function Co(a,b){var c,d;b?6<a.oe?(a.k=a.A.concat(a.k),a.A.length=0,c=a.Jg-1,d=Bo(a)):(c=b.D,d=b.Ee):(c=a.Jg++,d=Bo(a));var e=a.gi.clone();K(e,"SID",a.o);K(e,"RID",c);K(e,"AID",a.wf);uo(a,e);c=new zn(a,0,a.o,c,a.qg+1);c.ve=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.Nb=c;Cn(c,e,d)}function uo(a,b){if(a.Cb){var c=a.Cb.bp(a);c&&Jb(c,function(a,c){K(b,c,a)})}}
function Bo(a){var b=Math.min(a.k.length,1E3),c=["count="+b],d;6<a.oe&&0<b?(d=a.k[0].j,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var g=a.k[e].j,h=a.k[e].map,g=6>=a.oe?e:g-d;try{we(h,function(a,b){c.push("req"+g+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+g+"_type="+encodeURIComponent("_badmap"))}}a.A=a.A.concat(a.k.splice(0,b));return c.join("&")}function Do(a){a.fb||a.Wc||(a.C=1,a.Wc=Qn(x(a.vr,a),0),a.We=0)}
function Eo(a){if(a.fb||a.Wc||3<=a.We)return!1;a.C++;a.Wc=Qn(x(a.vr,a),Fo(a,a.We));a.We++;return!0}f.vr=function(){this.Wc=null;this.fb=new zn(this,0,this.o,"rpc",this.C);this.fb.ve=null;this.fb.ql=0;var a=this.xo.clone();K(a,"RID","rpc");K(a,"SID",this.o);K(a,"CI",this.Hj?"0":"1");K(a,"AID",this.wf);uo(this,a);if(!Vc||id(10))K(a,"TYPE","xmlhttp"),En(this.fb,a,!0,this.oi,!1);else{K(a,"TYPE","html");var b=this.fb,c=Boolean(this.oi);b.nf=3;b.zd=lf(a.clone());Pn(b,c)}};
function $n(a,b,c){a.Hj=c;a.wc=b.$c;a.Xw(1,0);a.gi=Wn(a,null,a.kl);yo(a)}
f.nr=function(a,b){if(0!=this.j&&(this.fb==a||this.Nb==a))if(this.wc=a.wg,this.Nb==a&&3==this.j)if(7<this.oe){var c;try{c=this.B.parse(b)}catch(d){c=null}if(fa(c)&&3==c.length)if(0==c[0])t:{if(!this.Wc){if(this.fb)if(this.fb.Pg+3E3<this.Nb.Pg)wo(this),this.fb.cancel(),this.fb=null;else break t;Eo(this);Mn()}}else this.gq=c[1],0<this.gq-this.wf&&37500>c[2]&&this.Hj&&0==this.We&&!this.pe&&(this.pe=Qn(x(this.lA,this),6E3));else Zn(this,11)}else"y2f%"!=b&&Zn(this,11);else if(this.fb==a&&wo(this),!A(b)){c=
this.B.parse(b);fa(c);for(var e=0;e<c.length;e++){var g=c[e];this.wf=g[0];g=g[1];2==this.j?"c"==g[0]?(this.o=g[1],this.oi=g[2],g=g[3],null!=g?this.oe=g:this.oe=6,this.j=3,this.Cb&&this.Cb.Ho(this),this.xo=Wn(this,this.Xg()?this.oi:null,this.kl),Do(this)):"stop"==g[0]&&Zn(this,7):3==this.j&&("stop"==g[0]?Zn(this,7):"noop"!=g[0]&&this.Cb&&this.Cb.Go(this,g),this.We=0)}}};f.lA=function(){null!=this.pe&&(this.pe=null,this.fb.cancel(),this.fb=null,Eo(this),Mn())};
function wo(a){null!=a.pe&&(m.clearTimeout(a.pe),a.pe=null)}
f.Wi=function(a){var b;if(this.fb==a)wo(this),this.fb=null,b=2;else if(this.Nb==a)this.Nb=null,b=1;else return;this.wc=a.wg;if(0!=this.j)if(a.Dc)1==b?(y(),po.U(new ro(po,a.Ee?a.Ee.length:0)),yo(this),this.A.length=0):Do(this);else{var c=a.we,d;if(!(d=3==c||7==c||0==c&&0<this.wc)){if(d=1==b)this.Nb||this.Fd||1==this.j||2<=this.qg?d=!1:(this.Fd=Qn(x(this.wr,this,a),Fo(this,this.qg)),this.qg++,d=!0);d=!(d||2==b&&Eo(this))}if(d)switch(c){case 1:Zn(this,5);break;case 4:Zn(this,10);break;case 3:Zn(this,
6);break;case 7:Zn(this,12);break;default:Zn(this,2)}}};function Fo(a,b){var c=5E3+Math.floor(1E4*Math.random());a.isActive()||(c*=2);return c*b}f.Xw=function(a){if(!F(arguments,this.j))throw Error("Unexpected channel state: "+this.j);};function Zn(a,b){if(2==b||9==b){var c=null;a.Cb&&(c=null);var d=x(a.BD,a);c||(c=new I("//www.google.com/images/cleardot.gif"),lf(c));Tn(c.toString(),1E4,d)}else Mn();Go(a,b)}f.BD=function(a){a?Mn():(Mn(),Go(this,8))};
function Go(a,b){a.j=0;a.Cb&&a.Cb.Fo(a,b);vo(a);to(a)}function vo(a){a.j=0;a.wc=-1;if(a.Cb)if(0==a.A.length&&0==a.k.length)a.Cb.Fk(a);else{var b=ub(a.A),c=ub(a.k);a.A.length=0;a.k.length=0;a.Cb.Fk(a,b,c)}}function Wn(a,b,c){var d=mf(c);if(""!=d.mb)b&&Se(d,b+"."+d.mb),Ue(d,d.md);else var e=window.location,d=nf(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.pg&&Jb(a.pg,function(a,b){K(d,b,a)});K(d,"VER",a.oe);uo(a,d);return d}
f.Nk=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new ao;a.O=!1;return a};f.isActive=function(){return!!this.Cb&&this.Cb.isActive(this)};function Qn(a,b){if(!ia(a))throw Error("Fn must not be null and must be a function");return m.setTimeout(function(){a()},b)}f.yc=function(){po.U(new so(po))};function Mn(){po.U(new qo(po))}f.Xg=function(){return!(!Vc||id(10))};function Ho(){}f=Ho.prototype;f.Ho=function(){};f.Go=function(){};f.Fo=function(){};f.Fk=function(){};
f.bp=function(){return{}};f.isActive=function(){return!0};function Io(a,b){dn.call(this);if(ia(a))b&&(a=x(a,b));else if(a&&ia(a.handleEvent))a=x(a.handleEvent,a);else throw Error("Invalid listener argument");this.D=a;qm(this,"tick",x(this.C,this));this.stop();en(this,5E3+2E4*Math.random())}z(Io,dn);Io.prototype.B=0;Io.prototype.C=function(){if(500<this.j){var a=this.j;24E4>2*a&&(a*=2);en(this,a)}this.D()};Io.prototype.start=function(){Io.J.start.call(this);this.B=y()+this.j};Io.prototype.stop=function(){this.B=0;Io.J.stop.call(this)};function Jo(a,b){this.I=a;this.A=b;this.o=new xi;this.k=new Io(this.UD,this);this.j=null;this.H=!1;this.C=null;this.G="";this.F=this.B=0;this.D=[]}z(Jo,Ho);f=Jo.prototype;f.subscribe=function(a,b,c){return this.o.subscribe(a,b,c)};f.unsubscribe=function(a,b,c){return this.o.unsubscribe(a,b,c)};f.Kb=function(a){return this.o.Kb(a)};f.publish=function(a,b){return this.o.publish.apply(this.o,arguments)};f.dispose=function(){this.H||(this.H=!0,this.o.clear(),this.disconnect(),S(this.o))};f.ha=function(){return this.H};
function Ko(a){return{firstTestResults:[""],secondTestResults:!a.j.Hj,sessionId:a.j.o,arrayId:a.j.wf}}
f.connect=function(a,b,c){if(!this.j||2!=this.j.getState()){this.G="";this.k.stop();this.C=a||null;this.B=b||0;a=this.I+"/test";b=this.I+"/bind";var d=new no("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.j;e&&(e.Cb=null);d.Cb=this;this.j=d;e?(3!=e.getState()&&0==zo(e)||e.getState(),this.j.connect(a,b,this.A,e.o,e.wf)):c?this.j.connect(a,b,this.A,c.sessionId,c.arrayId):this.j.connect(a,b,this.A)}};
f.disconnect=function(a){this.F=a||0;this.k.stop();this.j&&(3==this.j.getState()&&Ao(this.j),this.j.disconnect());this.F=0};f.sendMessage=function(a,b){var c={_sc:a};b&&dc(c,b);this.k.enabled||2==(this.j?this.j.getState():0)?this.D.push(c):this.j&&3==this.j.getState()&&xo(this.j,c)};f.Ho=function(){var a=this.k;a.stop();en(a,5E3+2E4*Math.random());this.C=null;this.B=0;if(this.D.length){a=this.D;this.D=[];for(var b=0,c=a.length;b<c;++b)xo(this.j,a[b])}this.publish("handlerOpened")};
f.Fo=function(a,b){var c=2==b&&401==this.j.wc;if(4!=b&&!c){if(6==b||410==this.j.wc)c=this.k,c.stop(),en(c,500);this.k.start()}this.publish("handlerError",b)};f.Fk=function(a,b,c){if(!this.k.enabled)this.publish("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.D.push(c[a].map)};f.bp=function(){var a={v:2};this.G&&(a.gsessionid=this.G);0!=this.B&&(a.ui=""+this.B);0!=this.F&&(a.ui=""+this.F);this.C&&dc(a,this.C);return a};
f.Go=function(a,b){if("S"==b[0])this.G=b[1];else if("gracefulReconnect"==b[0]){var c=this.k;c.stop();en(c,500);this.k.start();this.j.disconnect()}else this.publish("handlerMessage",new Dl(b[0],b[1]))};function Lo(a,b){(a.A.loungeIdToken=b)||a.k.stop()}f.getDeviceId=function(){return this.A.id};f.UD=function(){this.k.stop();0!=zo(this.j)?this.k.start():this.connect(this.C,this.B)};function Mo(){this.j=[];this.k=[]}function No(a){nb(a.j)&&(a.j=a.k,a.j.reverse(),a.k=[])}function Oo(a,b){a.k.push(b)}function Po(a){No(a);return a.j.pop()}f=Mo.prototype;f.Na=function(){return this.j.length+this.k.length};f.isEmpty=function(){return nb(this.j)&&nb(this.k)};f.clear=function(){this.j=[];this.k=[]};f.contains=function(a){return F(this.j,a)||F(this.k,a)};f.remove=function(a){var b=fb(this.j,a);if(0>b)return qb(this.k,a);rb(this.j,b);return!0};
f.La=function(){for(var a=[],b=this.j.length-1;0<=b;--b)a.push(this.j[b]);for(var c=this.k.length,b=0;b<c;++b)a.push(this.k[b]);return a};function Qo(a){Ro(this,a)}function So(a,b){if(a.k)throw Error(b+" is not allowed in V3.");}function To(a){a.volume=-1;a.muted=!1;a.o=null;a.j=-1;a.A=null;a.B=0;a.C=y()}function Ro(a,b){a.videoIds=[];a.k="";Uo(a);b&&(a.videoIds=b.videoIds,a.index=b.index,a.k=b.listId,a.videoId=b.videoId,a.j=b.playerState,a.A=b.errorReason,a.volume=b.volume,a.muted=b.muted,a.o=b.trackData,a.B=b.playerTime,a.C=b.playerTimeAt)}function Uo(a){a.index=-1;a.videoId="";To(a)}f=Qo.prototype;f.ub=function(){return 1==this.j};
function Vo(a){return a.k?a.videoId:a.videoIds[a.index]}function Wo(a,b){a.B=b;a.C=y()}function Xo(a){switch(a.j){case 1:return(y()-a.C)/1E3+a.B;case -1E3:return 0}return a.B}f.setVideoId=function(a){So(this,"setVideoId");var b=this.index;this.index=eb(this.videoIds,a);b!=this.index&&To(this);return-1!=b};function Yo(a,b,c){var d=a.videoId;a.videoId=b;a.index=c;b!=d&&To(a)}function Zo(a,b,c){So(a,"setPlaylist");c=c||Vo(a);Eb(a.videoIds,b)&&c==Vo(a)||(a.videoIds=ub(b),a.setVideoId(c))}
f.add=function(a){So(this,"add");return a&&!F(this.videoIds,a)?(this.videoIds.push(a),!0):!1};f.remove=function(a){So(this,"remove");var b=Vo(this);return qb(this.videoIds,a)?(this.index=eb(this.videoIds,b),!0):!1};function $o(a){var b={};b.videoIds=ub(a.videoIds);b.index=a.index;b.listId=a.k;b.videoId=a.videoId;b.playerState=a.j;b.errorReason=a.A;b.volume=a.volume;b.muted=a.muted;b.trackData=bc(a.o);b.playerTime=a.B;b.playerTimeAt=a.C;return b}f.clone=function(){return new Qo($o(this))};function ap(a,b){T.call(this);this.o=0;this.A=a;this.D=[];this.C=new Mo;this.B=NaN;this.k=this.j=null;this.H=x(this.qA,this);this.F=x(this.Kg,this);this.G=x(this.pA,this);var c=0;a?(c=a.getProxyState(),3!=c&&(a.subscribe("proxyStateChange",this.vn,this),bp(this))):c=3;0!=c&&(b?this.vn(c):L(x(function(){this.vn(c)},this),0));cp(this,wl())}z(ap,T);f=ap.prototype;f.getState=function(){return this.o};function dp(a){return new Qo(a.A.getPlayerContextData())}
f.play=function(){1==this.getState()?(this.j?this.j.play(null,u,x(function(){this.Qa("Failed to play video with cast v2 channel.");ep(this,"play")},this)):ep(this,"play"),fp(this,1,Xo(dp(this))),gp(this)):hp(this,this.play)};f.pause=function(){1==this.getState()?(this.j?this.j.pause(null,u,x(function(){this.Qa("Failed to pause video with cast v2 channel.");ep(this,"pause")},this)):ep(this,"pause"),fp(this,2,Xo(dp(this))),gp(this)):hp(this,this.pause)};
f.Ms=function(a){if(1==this.getState()){if(this.j){var b=dp(this),c=new chrome.cast.media.SeekRequest;c.currentTime=a;c.resumeState=b.ub()||3==b.j?chrome.cast.media.ResumeState.PLAYBACK_START:chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.j.seek(c,u,x(function(){this.Qa("Failed to seek in video with cast v2 channel.");ep(this,"seekTo",{newTime:a})},this))}else ep(this,"seekTo",{newTime:a});fp(this,3,a);gp(this)}else hp(this,ra(this.Ms,a))};
f.stop=function(){if(1==this.getState()){this.j?this.j.stop(null,u,x(function(){this.Qa("Failed to stop video with cast v2 channel.");ep(this,"stopVideo")},this)):ep(this,"stopVideo");var a=dp(this);Uo(a);ip(this,a);gp(this)}else hp(this,this.stop)};
f.setVolume=function(a,b){if(1==this.getState()){var c=dp(this);if(this.k){if(c.volume!=a){var d=Math.round(a)/100;this.k.setReceiverVolumeLevel(d,x(function(){jp("set receiver volume: "+d)},this),x(function(){this.Qa("failed to set receiver volume.")},this))}c.muted!=b&&this.k.setReceiverMuted(b,x(function(){jp("set receiver muted: "+b)},this),x(function(){this.Qa("failed to set receiver muted.")},this))}else{var e={volume:a,muted:b};-1!=c.volume&&(e.delta=a-c.volume);ep(this,"setVolume",e)}c.muted=
b;c.volume=a;ip(this,c);gp(this)}else hp(this,ra(this.setVolume,a,b))};f.Om=function(a,b){if(1==this.getState()){var c=dp(this);if(b){c.o={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:fg(b.style)};dc(d,c.o);ep(this,"setSubtitlesTrack",d)}else d={videoId:a},ep(this,"setSubtitlesTrack",d);ip(this,c)}else hp(this,ra(this.Om,a,b))};
function kp(a,b,c,d,e){var g=dp(a);d=d||0;var h={videoId:b,currentIndex:d,listId:e||g.k};Yo(g,b,d);n(c)&&(Wo(g,c),h.currentTime=c);ep(a,"setPlaylist",h);e||ip(a,g)}f.dispose=function(){if(3!=this.o){var a=this.o;this.o=3;this.publish("proxyStateChange",a,this.o)}ap.J.dispose.call(this)};f.L=function(){M(this.B);this.B=NaN;lp(this);this.A=null;this.C.clear();cp(this,null);ap.J.L.call(this)};
function bp(a){C(["remotePlayerChange","remoteQueueChange"],function(a){this.D.push(this.A.subscribe(a,ra(this.yB,a),this))},a)}function lp(a){C(a.D,function(a){this.A.unsubscribeByKey(a)},a);a.D.length=0}function hp(a,b){50>a.C.Na()&&Oo(a.C,b)}function fp(a,b,c){var d=dp(a);Wo(d,c);-1E3!=d.j&&(d.j=b);ip(a,d)}function ep(a,b,c){a.A.sendMessage(b,c)}function ip(a,b){lp(a);a.A.setPlayerContextData($o(b));bp(a)}
f.vn=function(a){if((a!=this.o||2==a)&&3!=this.o&&0!=a){var b=this.o;this.o=a;this.publish("proxyStateChange",b,a);if(1==a)for(;!this.C.isEmpty();)Po(this.C).apply(this);else 3==a&&this.dispose()}};function gp(a){M(a.B);a.B=L(x(function(){this.publish("remotePlayerChange");this.B=NaN},a),2E3)}f.yB=function(a){("remotePlayerChange"!=a||isNaN(this.B))&&this.publish(a)};
function cp(a,b){a.k&&(a.k.removeUpdateListener(a.H),a.k.removeMediaListener(a.F),a.Kg(null));a.k=b;a.k&&(jp("Setting cast session: "+a.k.sessionId),a.k.addUpdateListener(a.H),a.k.addMediaListener(a.F),a.k.media.length&&a.Kg(a.k.media[0]))}
f.qA=function(a){if(!a)this.Kg(null),cp(this,null);else if(this.k.receiver.volume){a=this.k.receiver.volume;var b=dp(this);if(b.volume!=a.level||b.muted!=a.muted)jp("Cast volume update: "+a.level+(a.muted?" muted":"")),b.volume=Math.round(100*a.level||0),b.muted=!!a.muted,ip(this,b),gp(this)}};f.Kg=function(a){jp("Cast media: "+!!a);this.j&&this.j.removeUpdateListener(this.G);if(this.j=a)this.j.addUpdateListener(this.G),mp(this),gp(this)};
function mp(a){var b=a.j.customData;if(a.j.media){var c=a.j.media,d=dp(a);c.contentId!=d.videoId&&jp("Cast changing video to: "+c.contentId);var e=c.customData;d.index=e.currentIndex;d.k=e.listId;d.videoId=c.contentId;d.j=b.playerState;Wo(d,a.j.getEstimatedTime());ip(a,d)}else jp("No cast media video. Ignoring state update.")}f.pA=function(a){a?(mp(this),gp(this)):this.Kg(null)};function jp(a){ji("CP",a)}f.Qa=function(a){ji("CP",a)};function np(a,b,c){T.call(this);this.O=a;this.D=[];this.D.push(P(window,"beforeunload",x(this.zx,this)));this.k=[];this.ca=new Qo;3==c["mdx-version"]&&(this.ca.k="RQ"+b.token);this.F=b.id;this.j=op(this,c);this.j.subscribe("handlerOpened",this.vA,this);this.j.subscribe("handlerClosed",this.rA,this);this.j.subscribe("handlerError",this.sA,this);this.ca.k?this.j.subscribe("handlerMessage",this.tA,this):this.j.subscribe("handlerMessage",this.uA,this);Lo(this.j,b.token);this.subscribe("remoteQueueChange",
function(){var a=this.ca.videoId;lk()&&Yi("yt-remote-session-video-id",a)},this)}z(np,T);f=np.prototype;f.jg=NaN;f.Bm=!1;f.dj=NaN;f.ym=NaN;f.Vh=NaN;f.ri=NaN;
f.connect=function(a,b){if(b){if(this.ca.k){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.ca.k=c);this.ca.videoId=d;this.ca.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.ca.videoIds=[d];this.ca.index=0}this.ca.state=3;Wo(this.ca,g);this.Ja("Connecting with setPlaylist and params: "+fg(h));this.j.connect({method:"setPlaylist",
params:fg(h)},a,pk())}else this.Ja("Connecting without params"),this.j.connect({},a,pk());pp(this)};f.dispose=function(){this.ha()||(this.publish("beforeDispose"),qp(this,3));np.J.dispose.call(this)};f.L=function(){rp(this);sp(this);tp(this);M(this.Vh);this.Vh=NaN;M(this.ri);this.ri=NaN;this.A=null;Dh(this.D);this.D.length=0;this.j.dispose();np.J.L.call(this);this.k=this.ca=this.j=null};f.Ja=function(a){ji("conn",a)};f.zx=function(){this.o(2)};
function op(a,b){return new Jo(Ij(a.O,"/bc",void 0,!1),b)}function qp(a,b){a.publish("proxyStateChange",b)}function pp(a){a.jg=L(x(function(){this.Ja("Connecting timeout");this.o(1)},a),2E4)}function rp(a){M(a.jg);a.jg=NaN}function tp(a){M(a.dj);a.dj=NaN}function up(a){sp(a);a.ym=L(x(function(){vp(this,"getNowPlaying")},a),2E4)}function sp(a){M(a.ym);a.ym=NaN}function wp(a){var b=a.j;return!!b.j&&3==b.j.getState()&&isNaN(a.jg)}
f.vA=function(){this.Ja("Channel opened");this.Bm&&(this.Bm=!1,tp(this),this.dj=L(x(function(){this.Ja("Timing out waiting for a screen.");this.o(1)},this),15E3));vk(Ko(this.j),this.F)};f.rA=function(){this.Ja("Channel closed");isNaN(this.jg)?wk(!0):wk();this.dispose()};f.sA=function(a){wk();isNaN(this.B())?(this.Ja("Channel error: "+a+" without reconnection"),this.dispose()):(this.Bm=!0,this.Ja("Channel error: "+a+" with reconnection in "+this.B()+" ms"),qp(this,2))};
function xp(a,b){b&&(rp(a),tp(a));b==wp(a)?b&&(qp(a,1),vp(a,"getSubtitlesTrack")):b?(a.C()&&Ro(a.ca),qp(a,1),vp(a,"getNowPlaying"),yp(a)):a.o(1)}function zp(a,b){var c=b.params.videoId;delete b.params.videoId;c==a.ca.videoId&&(Xb(b.params)?a.ca.o=null:a.ca.o=b.params,a.publish("remotePlayerChange"))}function Ap(a,b){var c=b.params.videoId||b.params.video_id,d=parseInt(b.params.currentIndex,10);a.ca.k=b.params.listId||a.ca.k;Yo(a.ca,c,d);a.publish("remoteQueueChange")}
function Bp(a,b){b.params=b.params||{};Ap(a,b);Cp(a,b)}function Cp(a,b){var c=parseInt(b.params.currentTime||b.params.current_time,10);Wo(a.ca,isNaN(c)?0:c);c=parseInt(b.params.state,10);c=isNaN(c)?-1:c;-1==c&&-1E3==a.ca.j&&(c=-1E3);a.ca.j=c;var d=null;-1E3==c&&(d=a.ca.A||"unknown",n(b.params.currentError)&&(d=dg(b.params.currentError).reason||d));a.ca.A=d;1==a.ca.j?up(a):sp(a);a.publish("remotePlayerChange")}
function Dp(a,b){var c="true"==b.params.muted;a.ca.volume=parseInt(b.params.volume,10);a.ca.muted=c;a.publish("remotePlayerChange")}
f.tA=function(a){a.params?this.Ja("Received: action="+a.action+", params="+fg(a.params)):this.Ja("Received: action="+a.action+" {}");switch(a.action){case "loungeStatus":a=dg(a.params.devices);this.k=D(a,function(a){return new bk(a)});a=!!E(this.k,function(a){return"LOUNGE_SCREEN"==a.type});xp(this,a);break;case "loungeScreenConnected":xp(this,!0);break;case "loungeScreenDisconnected":sb(this.k,function(a){return"LOUNGE_SCREEN"==a.type});xp(this,!1);break;case "remoteConnected":var b=new bk(dg(a.params.device));
E(this.k,function(a){return a.equals(b)})||pb(this.k,b);break;case "remoteDisconnected":b=new bk(dg(a.params.device));sb(this.k,function(a){return a.equals(b)});break;case "gracefulDisconnect":break;case "playlistModified":Ap(this,a);break;case "nowPlaying":Bp(this,a);break;case "onStateChange":Cp(this,a);break;case "onVolumeChanged":Dp(this,a);break;case "onSubtitlesTrackChanged":zp(this,a);break;default:this.Ja("Unrecognized action: "+a.action)}};
f.uA=function(a){a.params?this.Ja("Received: action="+a.action+", params="+fg(a.params)):this.Ja("Received: action="+a.action);Ep(this,a);Fp(this,a);if(wp(this)){var b=this.ca.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=dg(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==Vo(this.ca)&&
(delete a.params.videoId,Xb(a.params)?this.ca.o=null:this.ca.o=a.params,this.publish("remotePlayerChange"));else if(Vo(this.ca)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=Vo(this.ca)):this.ca.setVideoId(""),e&&(e=e.split(","),Zo(this.ca,e,d))):Zo(this.ca,[]),this.ca.add(d)&&vp(this,"getPlaylist"),d&&this.ca.setVideoId(d),b.index==this.ca.index&&Eb(b.videoIds,this.ca.videoIds)||this.publish("remoteQueueChange"),
n(g)&&(b=parseInt(g,10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.ca.j&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.ca.j,this.ca.j=b,d=null,-1E3==b&&(d=this.ca.A||"unknown",p&&(d=p.reason||d)),c=c||this.ca.A!=d,this.ca.A=d,1==this.ca.j?up(this):sp(this)),"onError"!=a.action||-1!=this.ca.j&&-1E3!=this.ca.j||(a=dg(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==Vo(this.ca)&&(this.ca.j=-1E3,this.ca.A=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),Wo(this.ca,isNaN(b)?0:b),c=!0),
n(k)&&(b=parseInt(k,10),isNaN(b)||(c=c||this.ca.volume!=b,this.ca.volume=b),n(l)&&(l="true"==l,c=c||this.ca.muted!=l,this.ca.muted=l)),c&&this.publish("remotePlayerChange")}};
function Ep(a,b){switch(b.action){case "loungeStatus":var c=dg(b.params.devices);a.k=D(c,function(a){return new bk(a)});break;case "loungeScreenDisconnected":sb(a.k,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new bk(dg(b.params.device));E(a.k,function(a){return a.equals(d)})||pb(a.k,d);break;case "remoteDisconnected":d=new bk(dg(b.params.device)),sb(a.k,function(a){return a.equals(d)})}}
function Fp(a,b){var c=!1;if("loungeStatus"==b.action)c=!!E(a.k,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.dj))if(c)tp(a);else return;c==wp(a)?c&&qp(a,1):c?(rp(a),a.C()&&Ro(a.ca),qp(a,1),vp(a,"getNowPlaying"),yp(a)):a.o(1)}f.bD=function(){if(this.A){var a=this.A;this.A=null;this.ca.videoId!=a&&vp(this,"getNowPlaying")}};np.prototype.subscribe=np.prototype.subscribe;
np.prototype.unsubscribeByKey=np.prototype.Kb;np.prototype.I=function(){var a=3;this.ha()||(a=0,isNaN(this.B())?wp(this)&&(a=1):a=2);return a};np.prototype.getProxyState=np.prototype.I;np.prototype.o=function(a){this.Ja("Disconnecting with "+a);rp(this);this.publish("beforeDisconnect",a);1==a&&wk();this.j.disconnect(a);this.dispose()};np.prototype.disconnect=np.prototype.o;np.prototype.H=function(){var a=this.ca;this.A&&(a=this.ca.clone(),Yo(a,this.A,a.index));return $o(a)};
np.prototype.getPlayerContextData=np.prototype.H;
np.prototype.M=function(a){var b=new Qo(a);b.videoId&&b.videoId!=this.ca.videoId&&(this.A=b.videoId,M(this.Vh),this.Vh=L(x(this.bD,this),5E3));var c=[];this.ca.k==b.k&&this.ca.videoId==b.videoId&&this.ca.index==b.index&&Eb(this.ca.videoIds,b.videoIds)||c.push("remoteQueueChange");this.ca.j==b.j&&this.ca.volume==b.volume&&this.ca.muted==b.muted&&Xo(this.ca)==Xo(b)&&fg(this.ca.o)==fg(b.o)||c.push("remotePlayerChange");Ro(this.ca,a);C(c,function(a){this.publish(a)},this)};
np.prototype.setPlayerContextData=np.prototype.M;np.prototype.G=function(){return this.j.A.loungeIdToken};np.prototype.getLoungeToken=np.prototype.G;np.prototype.C=function(){var a=this.j.getDeviceId(),b=E(this.k,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};np.prototype.getOtherConnectedRemoteId=np.prototype.C;np.prototype.B=function(){var a=this.j;return a.k.enabled?a.k.B-y():NaN};np.prototype.getReconnectTimeout=np.prototype.B;
np.prototype.S=function(){if(!isNaN(this.B())){var a=this.j.k;a.enabled&&(a.stop(),a.start(),a.C())}};np.prototype.reconnect=np.prototype.S;function yp(a){M(a.ri);a.ri=L(x(a.o,a,1),864E5)}function vp(a,b,c){c?a.Ja("Sending: action="+b+", params="+fg(c)):a.Ja("Sending: action="+b);a.j.sendMessage(b,c)}np.prototype.K=function(a,b){vp(this,a,b);yp(this)};np.prototype.sendMessage=np.prototype.K;var Gp=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];function Hp(a,b){var c=Ip(a);return gb(b,function(a){return a.uuid?(a=Nj(this.o,a.uuid),!!a&&"RUNNING"==a.status):!!Oj(c,a)},a)}
function Jp(a,b,c){var d=Kp,e="";M(d.k);d.k=NaN;d.A="";if(Nj(d.o,a)){if(!e){var g=e=Kj();Kl();var h=Ul(a),k=Hl();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",Ql(h),Gi("yt-remote-cast-device-status-update",
h));Fl("Sending a cast launch request with params: "+l.parameters);k.launch(l,ra(Vl,a))}else Fl("No cast API or no cast device. Dropping cast launch.")}d.A=e;d.k=L(x(d.G,d,a,0,e),Gp[0])}else d.Ja("No DIAL device with id: "+a)}function Lp(a,b){var c=Pj(Ip(a),b);a.Ja("Found screen: "+si(c)+" with key: "+b);return c}function Mp(a){var b=Kp,c=Pj(b.j,a);b.Ja("Found online screen: "+si(c)+" with key: "+a);return c}
function Np(a){var b=Kp,c=Nj(b.o,a);if(!c){var d=Pj(b.C,a);d&&(c=Nj(b.o,d.uuid))}b.Ja("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function Ip(a){return tb(a.B,gb(a.C,function(a){return!Oj(this.B,a)},a))};function Op(a){Qj.call(this,"ScreenServiceProxy");this.Db=a;this.j=[];this.j.push(this.Db.$_s("screenChange",x(this.YD,this)));this.j.push(this.Db.$_s("onlineScreenChange",x(this.vB,this)))}z(Op,Qj);f=Op.prototype;f.Yb=function(a){return this.Db.$_gs(a)};f.contains=function(a){return!!this.Db.$_c(a)};f.get=function(a){return this.Db.$_g(a)};f.start=function(){this.Db.$_st()};f.add=function(a,b,c){this.Db.$_a(a,b,c)};f.remove=function(a,b,c){this.Db.$_r(a,b,c)};
f.Gj=function(a,b,c,d){this.Db.$_un(a,b,c,d)};f.L=function(){for(var a=0,b=this.j.length;a<b;++a)this.Db.$_ubk(this.j[a]);this.j.length=0;this.Db=null;Op.J.L.call(this)};f.YD=function(){this.publish("screenChange")};f.vB=function(){this.publish("onlineScreenChange")};Jk.prototype.$_st=Jk.prototype.start;Jk.prototype.$_gspc=Jk.prototype.ZD;Jk.prototype.$_gsppc=Jk.prototype.Ps;Jk.prototype.$_c=Jk.prototype.contains;Jk.prototype.$_g=Jk.prototype.get;Jk.prototype.$_a=Jk.prototype.add;
Jk.prototype.$_un=Jk.prototype.Gj;Jk.prototype.$_r=Jk.prototype.remove;Jk.prototype.$_gs=Jk.prototype.Yb;Jk.prototype.$_gos=Jk.prototype.Os;Jk.prototype.$_s=Jk.prototype.subscribe;Jk.prototype.$_ubk=Jk.prototype.Kb;function Pp(a){q("yt.mdx.remote.castv2_",!0,void 0);Xi&&Wi();ik();Qp||(Qp=new Hj,xk()&&(Qp.j="/api/loungedev"));Rp||(Rp=r("yt.mdx.remote.deferredProxies_")||[],q("yt.mdx.remote.deferredProxies_",Rp,void 0));Sp();var b=Tp();if(!b){var c=new Jk(Qp);q("yt.mdx.remote.screenService_",c,void 0);b=Tp();hl(a,c,function(a){a?Bl()&&Al():c.subscribe("onlineScreenChange",function(){Gi("yt-remote-receiver-availability-change")})})}}
function Up(){Fi(Vp);Vp.length=0;S(Wp);Wp=null;Rp&&(C(Rp,function(a){a(null)}),Rp.length=0,Rp=null,q("yt.mdx.remote.deferredProxies_",null,void 0));Kp&&(S(Kp),Kp=null);Qp=null;Pl()}
function Xp(){if(Yp()&&ul()){var a=[];if($i("yt-remote-cast-available")||r("yt.mdx.remote.cloudview.castButtonShown_")||Zp())a.push({key:"cast-selector-receiver",name:$p()}),q("yt.mdx.remote.cloudview.castButtonShown_",!0,void 0);return a}if(r("yt.mdx.remote.cloudview.initializing_"))return[];var b=[],b=aq()?Tp().Db.$_gos():ri($i("yt-remote-online-screens")||[]);(a=bq())&&Zp()&&(Oj(b,a)||b.push(a));aq()||(a=Mj(uk()),a=gb(a,function(a){return!Pj(b,a.id)}),b=tb(b,a));return Lj(b)}
function cq(){if(Yp()&&ul()){var a=vl();return a?{key:"cast-selector-receiver",name:a}:null}var a=Xp(),b=dq(),c=bq();c||(c=eq());return E(a,function(a){return c&&ni(c,a.key)||b&&(a=Np(a.key))&&a.id==b?!0:!1})}function $p(){if(Yp()&&ul())return vl();var a=bq();return a?a.name:null}function bq(){var a=Bl();if(!a)return null;if(!Kp){var b=Tp().Yb();return Pj(b,a)}return Lp(Kp,a)}
function fq(a,b){gq("Connecting to: "+fg(a));if("cast-selector-receiver"==a.key)hq(b||null),zl(b||null);else{iq();hq(b||null);var c=null;Kp?c=Mp(a.key):(c=Tp().Yb(),c=Pj(c,a.key));if(c)jq(c);else{if(Kp&&(c=Np(a.key))){kq(c);return}L(function(){lq(null)},0)}}}
function iq(){if(Kp){var a=Kp;M(a.k);a.k=NaN;a.A=""}t:{if(a=Zp())if(a=a.getOtherConnectedRemoteId()){gq("Do not stop DIAL due to "+a);mq("");break t}(a=dq())?(gq("Stopping DIAL: "+a),Wl(a),mq("")):(a=bq())&&a.uuid&&(gq("Stopping DIAL: "+a.uuid),Wl(a.uuid))}yl()?ql().stopSession():nl("stopSession called before API ready.");(a=Zp())?a.disconnect(1):(Hi("yt-remote-before-disconnect",1),Hi("yt-remote-connection-change",!1));lq(null)}
function nq(){var a=oq(),a=a?a.currentTime:0,b=pq();0==a&&b&&(a=Xo(dp(b)));return a}function pq(){var a=Zp();return a&&3!=a.getProxyState()?new ap(a,void 0):null}function gq(a){ji("remote",a)}function Yp(){return!!r("yt.mdx.remote.castv2_")}function aq(){return r("yt.mdx.remote.screenService_")}function Tp(){if(!Wp){var a=aq();Wp=a?new Op(a):null}return Wp}function Bl(){return r("yt.mdx.remote.currentScreenId_")}
function qq(a){q("yt.mdx.remote.currentScreenId_",a,void 0);if(Kp){var b=Kp;b.F=y()+3E5;if(b.D=a){var c=Lp(b,a);if(c&&!Oj(b.j,c)){a=ub(b.j);a.push(c);var c=Hp(b,a),d=!Eb(b.j,c,oi);nb(a)||tk(D(c,pi));d&&(b.Ja("Updating online screens: "+ti(b.j)+" -> "+ti(c)),b.j=c,b.publish("onlineReceiverChange"))}}}}function dq(){return r("yt.mdx.remote.currentDialId_")}function mq(a){q("yt.mdx.remote.currentDialId_",a,void 0)}function oq(){return r("yt.mdx.remote.connectData_")}
function hq(a){q("yt.mdx.remote.connectData_",a,void 0)}function Zp(){return r("yt.mdx.remote.connection_")}function lq(a){var b=Zp();hq(null);a?bb(!Zp()):(qq(""),mq(""));q("yt.mdx.remote.connection_",a,void 0);Rp&&(C(Rp,function(b){b(a)}),Rp.length=0);b&&!a?Hi("yt-remote-connection-change",!1):!b&&a&&Gi("yt-remote-connection-change",!0)}function eq(){var a=lk();if(!a)return null;if(aq()){var b=Tp().Yb();return Pj(b,a)}return Kp?Lp(Kp,a):null}
function jq(a){bb(!Bl());qq(a.id);a=new np(Qp,a,rq());a.connect(1,oq());a.subscribe("beforeDisconnect",function(a){Hi("yt-remote-before-disconnect",a)});a.subscribe("beforeDispose",function(){Zp()&&(Zp(),lq(null))});lq(a)}function kq(a){dq();gq("Connecting to: "+(a?a.toString():"null"));mq(a.id);var b=oq();b?Jp(a.id,b.videoIds[b.index],b.currentTime):Jp(a.id)}var Qp=null,Rp=null,Wp=null,Kp=null;
function Sp(){var a=rq();if(Xb(a)){var a=kk(),b=$i("yt-remote-session-name")||"",c=$i("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 rq(){return r("yt.mdx.remote.channelParams_")||{}}var Vp=[];function sq(){var a={volume:100,muted:!1},b=$i("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Lc(b.volume,0,100);a.muted=void 0==b.muted?!1:b.muted;return a}function tq(a){Yi("yt-player-bandwidth",a,2592E3)};function uq(a,b,c){v(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 vq(a)}function vq(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 wq(a,b,c){this.errorCode=a;this.k=b;this.j=c||""};function xq(a,b){Q.call(this);this.app=a;this.ae=null;this.Ef={};this.Eg={};this.o={};this.k={};this.j=null;this.playerType=b;V(this,"cueVideoById",this.sE);V(this,"loadVideoById",this.Bn);V(this,"cueVideoByUrl",this.tE);V(this,"loadVideoByUrl",this.IE);V(this,"playVideo",this.Cn);V(this,"pauseVideo",this.pauseVideo);V(this,"stopVideo",this.Fn);V(this,"clearVideo",this.qE);V(this,"getVideoBytesLoaded",this.CE);V(this,"getVideoBytesTotal",this.DE);V(this,"getVideoLoadedFraction",this.An);V(this,"getVideoStartBytes",
this.FE);V(this,"cuePlaylist",this.rE);V(this,"loadPlaylist",this.jt);V(this,"nextVideo",this.lt);V(this,"previousVideo",this.qt);V(this,"playVideoAt",this.Dn);V(this,"setShuffle",this.QE);V(this,"setLoop",this.NE);V(this,"getPlaylist",this.rd);V(this,"getPlaylistIndex",this.ct);V(this,"getPlaylistId",this.bt);V(this,"loadModule",this.ht);V(this,"unloadModule",this.wt);V(this,"setOption",this.ut);V(this,"getOption",this.Uj);V(this,"getOptions",this.yE);V(this,"mute",this.kt);V(this,"unMute",this.vt);
V(this,"isMuted",this.gt);V(this,"setVolume",this.setVolume);V(this,"getVolume",this.ft);V(this,"seekTo",this.lh);V(this,"getPlayerState",this.getPlayerState);V(this,"getPlaybackRate",this.AE);V(this,"setPlaybackRate",this.PE);V(this,"getAvailablePlaybackRates",this.vE);V(this,"getPlaybackQuality",this.zE);V(this,"setPlaybackQuality",this.En);V(this,"getAvailableQualityLevels",this.wE);V(this,"getCurrentTime",this.getCurrentTime);V(this,"getDuration",this.kh);V(this,"addEventListener",this.addEventListener);
V(this,"removeEventListener",this.removeEventListener);V(this,"getVideoUrl",this.getVideoUrl);V(this,"getDebugText",this.$s);V(this,"getVideoEmbedCode",this.EE);V(this,"getVideoData",this.getVideoData);V(this,"addCueRange",this.Zs);V(this,"removeCueRange",this.JE);V(this,"setSize",this.RE);V(this,"getApiInterface",this.uE);V(this,"destroy",this.destroy);V(this,"showVideoInfo",this.SE);V(this,"hideVideoInfo",this.GE);yq(this,"getInternalApiInterface",this.xE);yq(this,"getAdState",this.getAdState);
yq(this,"isNotServable",this.HE);yq(this,"getUpdatedConfigurationData",this.BE);yq(this,"updateRemoteReceivers",this.TE);yq(this,"sendAbandonmentPing",this.KE);yq(this,"setAutonav",this.LE);yq(this,"setAutonavState",this.ME);yq(this,"setMinimized",this.OE);yq(this,"channelSubscribed",u);yq(this,"channelUnsubscribed",u)}z(xq,Q);function V(a,b,c){a.Ef[b]=x(c,a)}function yq(a,b,c){a.Eg[b]=x(c,a)}f=xq.prototype;f.uE=function(){return Rb(this.Ef)};f.xE=function(){return Rb(this.Eg)};f.N=function(){return this.ae};
f.addEventListener=function(a,b){if(v(b)){var c=function(){r(b).apply(window,arguments)};this.o[b]=c;this.app.subscribe(a,c)}else this.app.subscribe(a,b)};f.Yw=function(a,b){var c=v(b)?a+b:a+ka(b);if(!this.k[c]){var d;v(b)?d=function(){r(b).apply(window,arguments)}:d=b;var e=x(function(a){d({target:this.j,data:a})},this);this.k[c]=e;this.addEventListener(a,e)}};f.removeEventListener=function(a,b){if(v(b)){var c=this.o[b];Zb(this.o,b);this.app.unsubscribe(a,c)}else this.app.unsubscribe(a,b)};
f.Zw=function(a,b){var c=v(b)?a+b:a+ka(b),d=this.k[c];d&&(this.removeEventListener(a,d),Zb(this.k,c))};f.getPlayerState=function(){return this.app.ta};f.lh=function(a,b){zq(this.app,!0,this.playerType);Aq(this.app,a,b,void 0,this.playerType)};f.getCurrentTime=function(){return this.app.getCurrentTime(this.playerType)};f.kh=function(){return Bq(this.app,1)};f.ft=function(){return Cq(this.app)};f.setVolume=function(a){this.app.setVolume(a)};f.gt=function(){return this.app.H.muted};f.kt=function(){Dq(this.app)};
f.vt=function(){Eq(this.app)};f.Cn=function(){zq(this.app,!0,this.playerType);Fq(this.app,this.playerType)};f.pauseVideo=function(){Gq(this.app,this.playerType)};f.Fn=function(){var a=this.app,b=this.playerType;Hq(a.j)&&Iq(a,!1);Jq(a,"play_pause")||Kq(a,b)};f.qE=function(){};f.AE=function(){return this.app.ja};f.PE=function(a){Lq(this.app,a)};f.vE=function(){return this.app.j.K?Mq:[1]};f.zE=function(){return Nq(this.app,this.playerType)};
f.En=function(a){var b=this.app,c=Oq(b,this.playerType);c&&!b.j.isMobile&&(a=Pq(a,a,!0),Qq(c,"p",a))};f.wE=function(){var a=Oq(this.app,this.playerType);return a?Rq(a):[]};f.CE=function(){return this.An()};f.DE=function(){return 1};f.An=function(){return Sq(this.app.ba)};f.FE=function(){return 0};f.RE=function(){this.app.o.Sh()};f.LE=function(a){var b=this.app;a=a?2:1;b.getVideoData().yd=a;b.Pa("autonavchange",a)};f.ME=function(a){var b=this.app;b.getVideoData().yd=a;b.Pa("autonavchange",a)};
f.OE=function(a){this.app.j.dq=a};f.ht=function(a){this.app.D.isAvailable(a)&&(a=Tq(this.app.D,a))&&!a.loaded&&a.load()};f.wt=function(a){this.app.D.isAvailable(a)&&(a=Tq(this.app.D,a))&&a.loaded&&a.unload()};f.Bn=function(a,b,c){a=Uq(this.app,vq(a,b,c),this.playerType);zq(this.app,a,this.playerType)};f.sE=function(a,b,c){Vq(this.app,vq(a,b,c),this.playerType)};
f.IE=function(a,b,c){a=uq(a,b,c);b=Uq(this.app,a,this.playerType);zq(this.app,b,this.playerType);b=this.app;(a=gf(new I(a.mediaContentUrl)))&&Wq(b.j,a)};f.tE=function(a,b,c){b=uq(a,b,c);Vq(this.app,b,this.playerType);a=this.app;(b=gf(new I(b.mediaContentUrl)))&&Wq(a.j,b)};f.getVideoUrl=function(){return Xq(this.app)};f.$s=function(){return Yq(this.app)};f.EE=function(){return Zq(this.app)};f.Zs=function(a,b,c){return $q(this.app,a,b,c)};
f.JE=function(a){t:{for(var b=this.app,c=b.k.D.j.j||[],d=0;d<c.length;d++){var e=c[d];if(e.getId()==a){e.Wa.clear();b.k.D.jh(e);b.publish("cuerangesremoved",[e]);a=!0;break t}}a=!1}return a};f.jt=function(a,b,c,d){var e=this.app;e.S=!1;ar(e,a,b,c,d);zq(this.app,!0,this.playerType)};f.rE=function(a,b,c,d){var e=this.app;e.S=!0;ar(e,a,b,c,d)};f.lt=function(){br(this.app);zq(this.app,!0,this.playerType)};f.qt=function(){cr(this.app);zq(this.app,!0,this.playerType)};
f.Dn=function(a){dr(this.app,a);zq(this.app,!0,this.playerType)};f.QE=function(a){var b=this.app;b.A&&er(b.A,a)};f.NE=function(a){var b=this.app;b.A&&(b.A.Uf=a)};f.rd=function(){var a=this.app.A;if(!a)return null;for(var b=[],c=0;c<a.jc;c++){var d=fr(a,c);d&&b.push(d.videoId)}return b};f.ct=function(){var a;a=this.app;a=a.A?a.A.Ra:null;return null==a?-1:a};f.bt=function(){return gr(this.app)};f.ut=function(a,b,c){return hr(this.app,a,b,c)};f.Uj=function(a,b,c){return hr(this.app,a,b,c)};
f.yE=function(a){return ir(this.app,a)};f.getVideoData=function(){var a=Oq(this.app,this.playerType),a=a?a.getVideoData():{},a={video_id:a.videoId,author:a.author,title:a.title},b=this.bt();b&&(a.list=b);return a};f.SE=function(){this.app.o.M.show()};f.GE=function(){this.app.o.M.hide()};f.getAdState=function(){return this.app.getAdState()};f.HE=function(a){var b=this.app;a!=b.X.args.video_id?a=!1:(a=(a=b.k)?a.getPlayerState():null,a=!(!a||!W(a,128)||5!=jr[a.j.errorCode]));return a};
f.BE=function(){var a=this.app,b=a.X.clone(),c=b.args,a=kr(a),d=ac(a.A);!a.Sa&&0<a.startSeconds&&(d.start=a.startSeconds);sa(c,d);return b};f.TE=function(a,b){var c=this.app;c.G&&lr(c.G,a,b);mr(c.j)&&6!=c.I&&(c.j.kg=!nb(a),c.j.kg?(1!=c.I&&3!=c.I||!b||nr(c.F),a.length&&1!=c.I&&or(c)):nr(c.G))};f.destroy=function(){this.app.dispose()};f.KE=function(){var a=Oq(this.app);a&&!W(a.getPlayerState(),128)&&(pr(a),qr(a))};
f.L=function(){if(this.ae){for(var a in this.Ef)this.ae[a]=null;for(a in this.Eg)this.ae[a]=null;this.ae=null}this.o=this.k=null;xq.J.L.call(this)};function rr(a,b){xq.call(this,a,b);V(this,"addInfoCardXml",this.UE);V(this,"cueVideoByPlayerVars",this.VE);V(this,"loadVideoByPlayerVars",this.xt);V(this,"preloadVideoByPlayerVars",this.$E);V(this,"seekBy",this.zt);V(this,"enableLicenseIntercept",this.WE);V(this,"updatePlaylist",this.eF);V(this,"resumeLicenseSession",this.aF);V(this,"updateLastActiveTime",this.dF);V(this,"updateVideoData",this.fF);V(this,"getStoryboardFormat",this.YE);V(this,"getProgressState",this.mh);V(this,"hideUserInterface",
this.ZE);V(this,"showUserInterface",this.cF);V(this,"getHousebrandProperties",this.XE);V(this,"setPlaybackQualityRange",this.bF);V(this,"getCurrentPlaylistSequence",this.kx);V(this,"canPlayType",this.canPlayType)}z(rr,xq);f=rr.prototype;f.Zs=function(a,b,c,d,e){return $q(this.app,a,b,c,d,e)};f.UE=function(a,b){var c=this.app;c.j.X=a;c.j.jb=b};f.VE=function(a){Vq(this.app,a,this.playerType)};f.getPlayerState=function(a){var b=this.app;return 2==a?b.Ca:b.ta};f.xt=function(a){Uq(this.app,a,this.playerType)};
f.$E=function(a){var b=this.app,c=this.playerType;c&&1!=c||b.M&&b.M.getVideoData().videoId==a.videoId||(a=new sr(a),tr(b,a))};f.Cn=function(){Fq(this.app,this.playerType)};f.lh=function(a,b){Aq(this.app,a,b,void 0,this.playerType)};f.jt=function(a,b,c,d){var e=this.app;e.S=!1;ar(e,a,b,c,d)};f.lt=function(){br(this.app)};f.qt=function(){cr(this.app)};f.Dn=function(a){dr(this.app,a)};f.zt=function(a,b,c){var d=this.app,e=this.playerType;Aq(d,d.getCurrentTime()+a,b,c,e)};
f.WE=function(){var a=this.app;a.hb||(a.hb=!0,a.va={})};f.eF=function(){var a=this.app;ur(a,kr(a));a.Pa("onPlaylistUpdate")};f.aF=function(a,b){var c=this.app,d=c.va[a];d&&(vr(d,b),d.start(),delete c.va[a])};f.dF=function(){wr()};f.fF=function(a){var b=Oq(this.app,this.playerType||1);b&&(b=b.j,xr(b,a),b.publish("dataupdated"))};f.YE=function(){var a=this.app.getVideoData();return a.A.storyboard_spec||a.A.live_storyboard_spec};f.ZE=function(){this.app.o.Ug(!1)};f.cF=function(){this.app.o.Ug(!0)};
f.XE=function(){var a=this.app.R();return{Qb:a.Qb,Ab:a.Ab(),Wg:a.Wg}};f.getVideoData=function(){var a=rr.J.getVideoData.call(this),b=Oq(this.app,this.playerType),b=b?b.getVideoData():{};a.cpn=b.za;a.isLive=b.Sa;return a};f.getCurrentTime=function(a){return a?this.app.getCurrentTime(a):rr.J.getCurrentTime.call(this)};f.kh=function(a){return a?Bq(this.app,a):rr.J.kh.call(this)};
f.mh=function(){var a=this.app.getVideoData(),b=a.Sa&&!a.yb?this.getCurrentTime():a.k&&!isNaN(yr(a.k))?yr(a.k):a.lengthSeconds,c=!a.Sa||a.yb,d=a.clipEnd,e=a.clipStart,g=this.getCurrentTime(),h=this.kh(),k;k=(k=Oq(this.app,void 0))?zr(k.k):0;return{allowSeeking:c,clipEnd:d,clipStart:e,current:g,displayedStart:-1,duration:h,loaded:k,seekableEnd:b,seekableStart:Ar(a)}};f.An=function(a){var b=this.app;return(b.C&&2==b.C.getPlayerType())==(2==a)?Sq(b.ba):0};f.canPlayType=function(a){return this.app.canPlayType(a)};
f.bF=function(a,b){Br(this.app,a,this.playerType,b)};f.kx=function(){var a;var b=this.app.getVideoData();a=this.app.getCurrentTime();if(b.k&&b.Sa){var c=b.k.j[b.o.id];c&&c.index?(b=c.index.tg(a),c=c.index.Se(b),a={sequence:b,elapsed:a-c}):a=null}else a=null;return a};function Cr(a,b){rr.call(this,a,b)}z(Cr,rr);f=Cr.prototype;f.getPlayerType=function(){return this.playerType};f.Bn=function(a,b,c){Uq(this.app,vq(a,b,c),this.playerType)};function Dr(a,b){a.app.o.o.appendChild(b)}f.Ka=function(){return this.app.o.N()};f.R=function(){return this.app.R()};f.rd=function(){return this.app.A};f.getVideoData=function(){var a=Oq(this.app,this.playerType);return a&&a.getVideoData()};f.isFullscreen=function(){return this.app.R().Za};
f.addEventListener=function(a,b,c){this.app.subscribe(a,b,c)};f.removeEventListener=function(a,b,c){this.app.unsubscribe(a,b,c)};f.En=function(a){Br(this.app,a,1)};f.$s=function(a){return Yq(this.app,a)};f.getVideoUrl=function(a){return Xq(this.app,a)};function Er(a,b){this.start=a;this.end=b;this.j=ka(this)}function Fr(a,b){return a.start!=b.start?a.start-b.start:a.end!=b.end?a.end-b.end:a.j!=b.j?a.j-b.j:0}Er.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)};Er.prototype.toString=function(){return"Interval["+this.start+", "+this.end+"]"};function Gr(){this.j=[]}function Hr(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 Ir(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 Jr(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(Ab);return c[0]};function Kr(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 Lr(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 Mr(a,b){var c=Lr(a,b);return 0<=c?a.end(c):NaN}function Nr(a){return a&&a.length?a.end(a.length-1):NaN}function Or(a,b){var c=Mr(a,b);return 0<=c?c-b:0};var Pr,Qr;var Rr=Qc,Sr=Rr.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Sr||2>Sr.length)Pr=void 0;else{var Tr=Rr.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Pr=Tr&&6==Tr.length?Number(Tr[5].replace("_",".")):0}(Qr=0<=Pr)&&0<=Qc.search("Safari")&&Qc.search("Version");var Ur=Wh||Xh;function Vr(){return Wr("(ps3; leanback shell)")}function Xr(){return Wr("safari/")&&Wr(" version/8")}function Yr(){return Zh&&Wr("crkey")}function Wr(a){var b=Qc;return b?0<=b.toLowerCase().indexOf(a):!1};function Zr(){}var $r=Qr&&4>Pr?.1:0,as=new Zr;f=Zr.prototype;f.ud=null;f.yk=!1;function bs(a,b){var c="";b&&(a.ud=b,c=cs(b));a.src&&""==c||(c&&a.src!=c&&(a.src=c),b&&b.j||a.load())}function ds(a,b){0<a.readyState&&(a.currentTime=Math.max($r,b))}f.getCurrentTime=function(){return this.currentTime||0};function zr(a){return 0<Nr(a.buffered)&&a.duration?Mr(a.buffered,a.currentTime):0}function Sq(a){var b=a.duration||0;return Infinity==b?1:b?zr(a)/b:0}function es(a){return a.paused||a.ended}
function fs(a){a.ended&&ds(a,0);!a.hasAttribute("src")&&a.ud&&(a.src=cs(a.ud),a.ud.j||a.load());a.play();Qr&&7<=Pr&&Ch(a,x(function(){L(x(this.ap,this,this.currentTime,0),500)},a))}f.ap=function(a,b){this.paused||this.currentTime>a||10<b||(this.play(),L(x(this.ap,this,this.currentTime,b+1),500))};f.pauseVideo=function(){this.pause()};function gs(a){a.currentSrc&&(Ur&&ds(a,0),Kd(a),a.removeAttribute("src"),a.load(),a.ud&&a.ud.j&&(a.ud=null))}function hs(a){gs(a);a.ud=null}
f.setVolume=function(a,b){this.volume=a/100;this.muted=b};function is(a,b){a.defaultPlaybackRate=b;a.playbackRate=b}f.Kw=function(){this.hasAttribute("controls")&&this.setAttribute("controls","true")};f.Mw=function(){this.yk&&!this.muted&&(this.muted=!0)};
Zr.prototype.getDebugInfo=function(){return{vct:this.currentTime.toFixed(3),vd:this.duration.toFixed(3),vpl:Kr(this.played),vbu:Kr(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 js(a,b){this.k=a||64;this.j=b||null}
function ks(a,b,c){if(W(a,128))return a;var d=a.k,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":W(a,256)?(d^=256)||(d=64):W(a,32)||W(a,2)||(d=4,W(a,1)&&W(a,8)&&(d|=1),e=null);break;case "playing":d=8;e=null;break;case "abort":if(64==d)break;case "error":t:if((b=g.error)&&b.code){switch(b.code){case b.MEDIA_ERR_NETWORK:b="progressive.net";break;case b.MEDIA_ERR_DECODE:b="fmt.decode";break;case b.MEDIA_ERR_SRC_NOT_SUPPORTED:b="fmt.unplayable";
break;default:b=null;break t}b={errorCode:b}}else b=null;b&&(e=b,d|=128);break;case "canplay":d&=-2;break;case "progress":W(a,8)&&ls(c,g)&&(d|=1);break;case "seeked":d&=-17;break;case "seeking":d|=16;0>=Or(g.buffered,g.currentTime)&&(d|=1);d&=-3;break;case "waiting":W(a,2)||(d|=1);break;case "timeupdate":W(a,16)||(d=ls(c,g)?d|1:d&-2);1<g.readyState&&0<g.currentTime&&(d&=-65);break;default:return a}return ms(a,d,e)}
function ls(a,b){if(!a)return!1;var c=Or(b.buffered,b.currentTime);return ns(a,b.currentTime,y(),c)}function ms(a,b,c){return b==a.k&&c==a.j||b&128&&!c||b&2&&b&16?a:new js(b,c)}function os(a,b){return ms(a,a.k|b)}function ps(a,b){return ms(a,a.k&~b)}function W(a,b){return!!(a.k&b)}js.prototype.ub=function(){return W(this,8)&&!W(this,64)&&!W(this,2)};function qs(a){return W(a,8)&&!W(a,2)}function rs(a){return W(a,128)?-1:W(a,2)?0:W(a,1)&&!W(a,32)?3:W(a,64)?-1:W(a,8)?1:W(a,4)?2:-1};function ss(a,b,c){Er.call(this,a,b);a=c||{};this.xa=a.id||"";void 0!=a.priority&&(this.ph=a.priority);this.namespace=a.namespace||"";this.Wa=new xi;this.tooltip=a.tooltip;a.style&&(this.style=a.style);a.visible&&(this.visible=a.visible)}z(ss,Er);f=ss.prototype;f.xa="";f.ph=7;f.active=!0;f.visible=!1;f.style="ytp-ad-progress";f.Wa=null;f.namespace="";f.getId=function(){return this.xa};function ts(a){switch(a.style){case "ytp-chapter-marker":return 8;case "ytp-ad-progress":return 6}}
function us(a,b){return a.start==b.start?a.ph==b.ph?0:a.ph<b.ph?-1:1:a.start<b.start?-1:1}f.toString=function(){return ss.J.toString.call(this)};function vs(a,b,c,d){T.call(this);this.F=a;this.D=b;this.C=c;this.G=d;this.A=new dn(250);qm(this.A,"tick",this.nc,!1,this);R(this,this.A);this.k=[];this.j=new Gr}z(vs,T);f=vs.prototype;f.Ji=!1;f.Ud=!1;f.Zl=!1;f.yl=!1;f.Ig=null;function ws(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(Fr);else for(var d=0;d<b.length;d++){var e=b[d];!c.j.length||0<Fr(e,c.j[c.j.length-1])?c.j.push(e):Gb(c.j,e,Fr)}a.nc()}
f.jh=function(a){for(var b=arguments.length-1;0<=b;b--){var c=arguments[b];if(c){var d=this.k.indexOf(c);0<=d&&this.k.splice(d,1);d=this.j.j;c=zb(d,c,Fr);0<=c&&rb(d,c)}}this.nc()};f.Mf=function(){this.o=xs(this);this.Ud=!0;this.nc()};function zs(a,b){var c=[];if(!b.length)return c;b.sort(us);for(var d=0;d<b.length;d++){var e=b[d];e.active&&-1==a.k.indexOf(e)&&(a.k.push(e),c.push(["onEnter",e]))}return c}
function As(a,b){var c=[];if(!b.length)return c;b.sort(us);for(var d=0;d<b.length;d++){var e=b[d],g=a.k.indexOf(e);0>g||(a.k.splice(g,1),c.push(["onExit",e]))}return c}
f.nc=function(){this.yl=!0;if(!this.Zl)for(var a=3;this.yl&&a;){this.yl=!1;this.Zl=!0;if(this.Ud&&!this.Ji){Bs(this);for(var b=xs(this),c=[],d=[],e=0;e<this.k.length;e++){var g=this.k[e];g.active&&!g.contains(b)&&d.push(g)}c=c.concat(As(this,d));d=Hr(this.j,b);e=this.C();!W(e,48)&&b>this.o&&(d=d.concat(Ir(this.j,this.o,b)));c=c.concat(zs(this,d));this.o=b;!this.Ji&&this.B&&(c.unshift(["onLockBlockExit",this.B]),this.B=null,W(e,2)&&(this.o=2147483647));this.G()&&(b=Jr(this.j,this.o),null!=b&&(b=(b-
this.o)/this.D(),this.Ig=fn(x(this.nc,this),b)));Cs(this,c)}this.Zl=!1;a--}};function Cs(a,b){for(var c=0;c<b.length;c++){var d=b[c],e=d[1];"onLockBlockExit"==d[0]||"onLockBlockEnter"==d[0]?a.publish.apply(a,d):e.Wa.publish.apply(e.Wa,d)}}function Bs(a){null!=a.Ig&&(gn(a.Ig),a.Ig=null)}function xs(a){return W(a.C(),2)?2147483647:1E3*a.F()}f.L=function(){ym(this.A,"tick",this.nc,!1,this);Bs(this);this.B=this.j=this.k=null;vs.J.L.call(this)};function Ds(a){T.call(this);this.j=a;this.Qm&&(a=Xj("yt-html5-player-modules::"+this.Qm))&&(this.da=new Ni(a))}z(Ds,T);f=Ds.prototype;f.ua="";f.sc="";f.ce=!1;f.loaded=!1;f.Xj=!1;f.Sb=null;f.sd=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];d&&(d.namespace=this.ua,d.Wa.subscribe("onEnter",this.zc,this),d.Wa.subscribe("onExit",this.Qc,this),b.push(d))}this.publish("command_add_cuerange",b,this.j.getPlayerType())};
f.Yj=function(a){var b=ub(arguments);this.publish("command_remove_cuerange",b,this.j.getPlayerType())};function Es(a){a.publish("command_remove_cuerange_all",a.ua,a.j.getPlayerType())}function Fs(a){a.publish("command_preroll_ready",a.ua,a.j.getPlayerType())}function Gs(a,b){N(b,a.ua);a.j.app.o.la.appendChild(b)}function Hs(a,b){a.publish("command_show_dialog",b)}f.zg=function(){Hs(this)};f.create=function(){this.ce||(this.Ea(this.j),N(this.j.Ka(),this.ua+"-created"),this.ce=!0)};
f.destroy=function(){this.loaded&&this.unload();gh(this.j.Ka(),this.ua+"-created");this.ce=!1};f.load=function(){this.loaded=!0;N(this.j.Ka(),this.ua+"-loaded");this.publish("loaded",this.ua)};f.unload=function(){this.loaded=!1;gh(this.j.Ka(),this.ua+"-loaded");this.publish("unloaded",this.ua)};f.zc=function(){};f.Qc=function(){};f.Pd=function(){};function Is(a,b,c){a.publish("command_navigate_to_url",b,c)}f.log=function(a){this.publish("command_log",this.sc,a)};
function Js(a,b,c){var d={},e;for(e in b)d[a.ua+"_"+e]=b[e];b={};for(var g in c)b[a.ua+"_"+g]=c[g];a.publish("command_log_timing",d,b)}f.qh=function(){return null};function Ks(a,b){if(!a.da)return null;var c;try{c=a.da.get(b)}catch(d){a.da&&a.da.remove(b)}return c}function Ls(a,b,c){if(a.da)try{a.da.set(b,c)}catch(d){}}function Ms(a,b){a.publish("command_disable_controls",b,a.ua)}function Ns(a,b){a.publish("command_enable_controls",b,a.ua)}
function Os(a){a.publish("command_stop_redirect_controls")}function Ps(a){a.publish("command_play",!1,a.j.getPlayerType())}f.pauseVideo=function(){this.publish("command_pause",!1,this.j.getPlayerType())};function Qs(a,b){a.publish("command_redirected_show_is_playing",b)}function Rs(a){return a.j.app.o.k}function Ss(a,b,c){a.publish("module_menu_button_add",b,c)}function Ts(a,b){a.publish("module_menu_button_remove",b)}function Us(a,b){a.publish("module_menu_item_add",b)}
function Vs(a,b){a.publish("module_menu_item_remove",b)}function Ws(a){a.publish("module_menu_show")}f.Vf=function(){};f.Wf=function(){return[]};f.Ea=function(){return!1};f.Rm=function(){return!0};f.fj=function(a,b){this.Sb&&this.Sb.Pd&&this.Sb.Pd.apply(this.Sb,arguments)};f.Ui=function(){};var Xs={cH:"YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE",gH:"ERROR_AUTHENTICATION_EXPIRED",hH:"ERROR_AUTHENTICATION_MALFORMED",iH:"ERROR_AUTHENTICATION_MISSING",jH:"ERROR_BAD_REQUEST",qH:"YTP_ERROR_CANNOT_ACTIVATE_RENTAL",yH:"ERROR_CGI_PARAMS_MALFORMED",zH:"ERROR_CGI_PARAMS_MISSING",IH:"YTP_DEVICE_FALLBACK",OH:"YTP_ERROR_LICENSE",RH:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH",SH:"YTP_ERROR_GEO_FAILURE",jI:"YTP_ERROR_GENERIC",kI:"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",tI:"YTP_ERROR_INVALID_DRM_MESSAGE",
yI:"LEARN_MORE",bJ:"YTP_ERROR_NOT_SIGNED_IN",vJ:"YTP_ERROR_PURCHASE_NOT_FOUND",wJ:"YTP_ERROR_PURCHASE_REFUNDED",AJ:"YTP_ERROR_RENTAL_EXPIRED",sH:"YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED",tH:"YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED",vH:"YTP_ERROR_CAST_TOKEN_FAILED",uH:"YTP_ERROR_CAST_TOKEN_EXPIRED",wH:"YTP_ERROR_CAST_TOKEN_MALFORMED",LJ:"YTP_ERROR_SERVER_ERROR",YJ:"YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK",$J:"YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",aK:"YTP_ERROR_STREAMING_NOT_ALLOWED",bK:"YTP_ERROR_STREAMING_UNAVAILABLE",
DJ:"YTP_ERROR_RETRYABLE_ERROR",nK:"YTP_ERROR_TOO_MANY_STREAMS_PER_USER",mK:"YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT",uK:"YTP_ERROR_UNSUPPORTED_DEVICE",vK:"YTP_ERROR_UNUSUAL_ACTIVITY",EK:"YTP_ERROR_VIDEO_FORBIDDEN",GK:"YTP_ERROR_VIDEO_NOT_FOUND"},Ys={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 Zs(a){return(a=Ys[a.toString()])?a:"YTP_ERROR_LICENSE"};var $s={hw:function(a){a.reverse()},tN:function(a,b){var c=a[0];a[0]=a[b%a.length];a[b]=c},kB:function(a,b){a.splice(0,b)}};function at(a){a=a.split("");$s.kB(a,2);$s.tN(a,44);$s.hw(a,28);$s.kB(a,3);$s.tN(a,17);$s.kB(a,1);return a.join("")};var bt={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 ct(a,b,c){this.k=a;this.j=b;this.o=c}var dt={playready:["com.youtube.playready","com.microsoft.playready"],widevine:["com.widevine.alpha"],clearkey:["org.w3.clearkey","webkit-org.w3.clearkey"]},et=["widevine","playready"];function ft(){var a=window.MediaKeys||window.MSMediaKeys;return a&&a.isTypeSupported?a:null}function gt(a,b,c,d){return!(0!=b.indexOf("audio/mp4")||"widevine"!=c||!a.canPlayType(b)||!a.canPlayType('video/mp4; codecs="avc1"',d))}
function ht(a,b,c){var d,e=ft();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<et.length;g++){var h=et[g];if(c[h])for(var k=dt[h],l=0;l<k.length;l++){var p=k[l];if(d(b,p)||gt(a,b,h,p))return new ct(h,p,c[h])}}return null};function it(){};function jt(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.ra=h||0;this.k=c||null;this.video=d||null;this.Kd=e||null;this.A=g||null;this.o=bt[kt(this)]||""}function kt(a){return a.id.split(";",1)[0]}function lt(a){return 2==a.j}function mt(a){return!(a.k&&a.video)}function nt(a){return 0<=a.indexOf("opus")||0<=a.indexOf("vorbis")||0<=a.indexOf("mp4a")}
function ot(a){return 0<=a.indexOf("vp9")||0<=a.indexOf("vp8")||0<=a.indexOf("avc1")};function pt(a){this.languageCode=a.languageCode;this.languageName=a.languageName||null;this.Fi=a.languageOriginal||null;this.id=a.id||null;this.isDefault=a.is_default||!1}pt.prototype.toString=function(){return this.languageCode+"_"+this.languageName+"_"+this.Fi+"_"+this.id+"_"+this.isDefault};function qt(a){a=a||{};this.H=a.formats||"";this.C=a.format||1;if(1==this.C)for(var b=this.H.split(","),c=0;c<b.length;c++){var d=parseInt(b[c],10);isNaN(d)||(this.C=Math.max(d,this.C))}this.k=a.languageCode||"";this.D=a.languageName;this.A=a.kind||"";this.o=a.name;this.xa=a.id;this.I=a.is_servable;this.isDefault=a.is_default;this.F=a.is_translateable;this.B=a.url||null;this.G=a.vss_id||"";this.j=null;a.translationLanguage&&(this.j=new pt(a.translationLanguage))}
function rt(a){var b={format:a.C,languageCode:a.k,languageName:a.D,displayName:st(a),kind:a.A,name:a.o,id:a.xa,is_servable:a.I,is_default:a.isDefault,is_translateable:a.F};if(a.j){var c=a.j;b.translationLanguage={languageCode:c.languageCode,languageName:c.languageName,languageOriginal:c.Fi,id:c.id,is_default:c.isDefault}}a.B&&(b.url=a.B);return b}
function st(a){var b=[a.D];"asr"==a.A&&-1==a.D.indexOf("(")&&b.push(" (",Of("YTP_ASR_SETTINGS_LABEL"),")");a.o&&b.push(" - ",a.o);a.j&&b.push(" >> ",a.j.languageName);return b.join("")}qt.prototype.toString=function(){var a=[this.k,": ",this.o," (",this.A,")"];this.j&&a.push(" >> ",this.j.languageCode);return a.join("")};
qt.prototype.equals=function(a){if(!a)return!1;var b=this.j,c=a.j;if(b&&c){if(b.languageCode!=c.languageCode)return!1}else if(b||c)return!1;return this.k==a.k&&this.o==a.o&&this.A==a.A};function tt(a,b,c,d,e){this.id=a;this.name=b;this.language=c;this.xk=d;this.isDefault=e;this.captionTracks=[];this.fi=this.Pk=null;this.Bo=0}tt.prototype.toString=function(){return this.name};var Vb={Eu:"auto",hK:"tiny",zI:"light",SMALL:"small",Iv:"medium",LARGE:"large",XH:"hd720",TH:"hd1080",UH:"hd1440",VH:"hd2160",WH:"hd2880",hI:"highres",UNKNOWN:"unknown"},ut={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,hd2160:2160,hd2880:2880,highres:4320},vt="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");function wt(a,b,c){this.k=a||0;this.j=b||0;this.o=c}wt.prototype.equals=function(a){return this.k==a.k&&this.j==a.j&&this.o==a.o};function Pq(a,b,c){return new wt(ut[a]||0,ut[b]||0,c)}var xt=Pq("auto","large",!1),zt=Pq("auto","auto",!1);function At(a){var b=ut.auto;return a.k==b&&a.j==b}function Bt(a){return a.o&&!!a.k&&a.k==a.j}
function Ct(a,b){if(b.o&&At(b))return zt;if(b.o||At(a))return b;if(a.o||At(b))return a;var c=a.k&&b.k?Math.max(a.k,b.k):a.k||b.k,d=a.j&&b.j?Math.min(a.j,b.j):a.j||b.j,c=Math.min(c,d);return c==a.k&&d==a.j?a:new wt(c,d,!1)}function Dt(a){var b=a.j||a.k;return Ub(function(a){return ut[a]==b})||"auto"}wt.prototype.A=function(a){if(!a.video)return!1;a=ut[a.video.quality];return this.k<=a&&(!this.j||this.j>=a)};function Et(a,b){this.k=a;this.j=b||null;this.audioTracks=[];if(this.j){var c={};C(this.j,x(function(a){if(a.Kd&&!c[a.id]){var b=new tt(a.id,a.Kd.name,a.Kd.language,a.Kd.xk,a.Kd.isDefault);c[a.id]=b;this.audioTracks.push(b)}},this))}}function Ft(a,b){var c=b||zt,c=gb(a.k,x(c.A,c)),c=D(c,function(a){return a.video.quality});yb(c);return c}function Gt(a){var b={};D(a.k,function(a){b[a.video.quality]=a.video.fps});return b};function Ht(a,b,c,d,e,g){this.width=a;this.height=b;if(!g)t:{g=Math.max(a,b);a=Math.min(a,b);for(b=0;b<vt.length;b++){var h=vt[b],k=ut[h];if(g>=16*k/9||a>=k){g=h;break t}}g="tiny"}this.quality=g;this.fps=c||0;this.j=e||0;this.projectionType=d||0};var It,Jt;var Kt=Qc,Kt=Kt.toLowerCase();if(-1!=Kt.indexOf("android")){var Lt=Kt.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(Lt)It=Number(Lt[1]);else{var Mt={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},Nt=Kt.match("("+Rb(Mt).join("|")+")");It=Nt?Mt[Nt[0]]:0}}else It=void 0;Jt=0<=It;var Ot,Pt;function Qt(){var a=r("yt.player.utils.videoElement_");a||(a=document.createElement("video"),q("yt.player.utils.videoElement_",a,void 0));return a}function Rt(){if(2.2==It)return!0;var a=Qt();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 St(a){return(a=a.exec(Qc))?a[1]:""}var Tt=function(){if(Vh)return St(/Firefox\/([0-9.]+)/);if(Vc||Uc)return fd;if(Zh)return St(/Chrome\/([0-9.]+)/);if($h)return St(/Version\/([0-9.]+)/);if(Wh||Xh){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec(Qc))return a[1]+"."+a[2]}else if(Yh)return(a=St(/Android\s+([0-9.]+)/))?a:St(/Version\/([0-9.]+)/);return""}();function Ut(a,b){this.k=a;this.o=b;this.A=0;Object.defineProperty(this,"timestampOffset",{get:this.PD,set:this.TD});Object.defineProperty(this,"buffered",{get:this.ND})}f=Ut.prototype;f.append=function(a){this.k.webkitSourceAppend(this.o,a)};f.abort=function(){this.k.webkitSourceAbort(this.o)};f.ND=function(){return this.k.webkitSourceState==this.k.SOURCE_CLOSED?new Vt:this.k.webkitSourceBuffered(this.o)};f.PD=function(){return this.A};
f.TD=function(a){this.A=a;this.k.webkitSourceTimestampOffset(this.o,a)};function Vt(){this.length=0};function Wt(a){this.activeSourceBuffers=this.sourceBuffers=[];this.j=a;this.k=NaN;this.o=0;Object.defineProperty(this,"duration",{get:this.OD,set:this.SD});Object.defineProperty(this,"readyState",{get:this.QD});this.j.addEventListener("webkitsourceclose",x(this.RD,this),!0)}f=Wt.prototype;f.addEventListener=function(a,b,c){this.j.addEventListener(a,b,c)};f.QG=function(){return this.j.webkitMediaSourceURL};
f.addSourceBuffer=function(a){var b=(this.o++).toString();this.j.webkitSourceAddId(b,a);a=new Ut(this.j,b);this.sourceBuffers.push(a);return a};f.QD=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.RD=function(){ob(this.sourceBuffers)};
f.OD=function(){return this.k};f.SD=function(a){this.k=a;this.j.webkitSourceSetDuration&&this.j.webkitSourceSetDuration(a)};function Xt(a){this.A=[];this.H=a||null}function Yt(a,b,c,d){for(var e=0;e<c.length;e++)a.listen(b,c[e],d)}Xt.prototype.listen=function(a,b,c){c=x(c,this.H||this);a.addEventListener(b,c,!1);this.A.push(a,b,c)};Xt.prototype.removeAll=function(){if(this.A)for(;this.A.length;){var a=this.A.shift(),b=this.A.shift(),c=this.A.shift();a.removeEventListener&&a.removeEventListener(b,c)}};Xt.prototype.ha=function(){return null===this.A};Xt.prototype.dispose=function(){this.removeAll();this.A=null};function Zt(a,b,c,d){Xt.call(this);this.k=this.j=null;this.C=b;this.o=window.MediaSource?new window.MediaSource:window.WebKitMediaSource?new window.WebKitMediaSource:new Wt(a);this.B="";this.D=null;Yt(this,this.o,["sourceopen","webkitsourceopen"],ra(this.G,d,c));Yt(this,this.o,["sourceclose","webkitsourceclose"],this.F)}z(Zt,Xt);function $t(a,b){a.D=b}function au(a){if(!a.B){var b;b=a.o;b=b.QG?b.j.webkitMediaSourceURL:window.URL.createObjectURL(b);a.B=b}return a.B}
Zt.prototype.If=function(a){bu(this)?this.o.duration=a:this.C=a};function bu(a){return"open"==a.o.readyState}function cu(a){return"closed"==a.o.readyState}function du(a){return a.j.updating||a.k.updating}function eu(a){return a.j?!!a.j.appendBuffer:!(!window.MediaSource||!window.MediaSource.isTypeSupported)}Zt.prototype.G=function(a,b){isNaN(this.C)||(this.o.duration=this.C,this.C=NaN,this.j=this.o.addSourceBuffer(a),this.k=this.o.addSourceBuffer(b),this.D&&(this.D(this),this.D=null))};
Zt.prototype.F=function(){this.dispose()};Zt.prototype.dispose=function(){var a=this.B;if(a)try{window.URL.revokeObjectURL(a)}catch(b){}this.B="";Zt.J.dispose.call(this)};
function fu(a){if(/opus/.test(a)&&(Zh&&!(0<=Ta(Tt,"38"))||Yr()))return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(a);if(/webm/.test(a)&&!Wr("(ps4; leanback shell)"))return!1;'audio/mp4; codecs="mp4a.40.2"'==a&&(a='video/mp4; codecs="avc1.4d401f"');return!!Qt().canPlayType(a)};function gu(a,b){this.o=a;this.j=b;this.k={}}function cs(a){return a.j?a.o:Ke(a.o,a.k)};function hu(a,b){this.k=new gu(a,!1);this.j=b}var iu="9h8(H*".split(""),ju="h98H(*".split(""),ku="oMavAV".split("");hu.prototype.getInfo=function(){return this.j};hu.prototype.$k=function(){return this.j.video.quality};var lu={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},mu={"application/x-mpegURL":"maybe"},nu={"application/x-mpegURL":"maybe"};
function ou(a,b){if(!Rt())return[];var c=pu(a,b);a=!c.length&&b?pu(a,!1):c;for(var d={},c=Qt(),e=0;e<a.length;e++){var g=a[e];if(qu(c,g.getInfo().mimeType)&&!ru(g)){var h=g.$k();if(!d[h]||lt(d[h].getInfo()))d[h]=g}}var k=[];d.auto&&k.push(d.auto);C(vt,function(a){(g=d[a])&&k.push(g)});return k}function qu(a,b){var c;if(!(c=a.canPlayType(b))){var d;Ur?d=nu[b]:2.2==It?d=lu[b]:Wr("android")&&Wr("chrome")&&(d=mu[b]);c=d||""}return c}function ru(a){return kt(a.j)in su||Vr()&&"5"==kt(a.j)}
function tu(){var a=Wr("android")&&Wr("chrome")&&!hd(29),b=Wr("google tv")&&Wr("chrome")&&!hd(30);return a||b?!1:!!(window.MediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}var su={52:!0,53:!0,54:!0,55:!0,60:!0,79:!0,87:!0};function uu(a){var b=[];C(a,function(a){a.url&&b.push(vu(a.url,a.type,"medium","0"))});return b}
function vu(a,b,c,d,e){var g=new it;c in ut||(c="small");var h=ut[c],k=Math.round(16*h/9);c=new Ht(k,h,0,null,e?-1:0,c);b=unescape(b.replace(/&quot;/g,'"'));return new hu(a,new jt(d,b,g,c))}function pu(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d],g;if(g=Wc&&0!=e.j.video.j)g=1==e.getInfo().j;g||0!=e.j.video.j==b&&c.push(e)}return c}
function wu(a,b){for(var c=[],d=0;d<a.length;d++){var e=a[d];if(e.sig||e.s){var g=e.sig||at(e.s);e.url=sj(e.url,{signature:g})}e.url&&c.push(vu(e.url,e.type,e.quality,e.itag,e.stereo3d))}return ou(c,!!b)}function xu(a){a=uu(a);return ou(a,!1)}function yu(a,b){if(!b.j)return a[0];for(var c=0;c<a.length;c++){var d=a[c].getInfo(),e=ut[d.video.quality];if((!b.o||"auto"!=d.video.quality)&&e<=b.j)return a[c]}return a[a.length-1]}
function zu(a){function b(a){return!!c[a]}var c={},d,e;for(e in a.j){var g=a.j[e];if(fu(g.info.mimeType)){if(g.info.A){d||(d=Qt());if(!ht(d,g.info.mimeType,g.info.A))continue;if(261==kt(g.info)&&(Vr()||!d.canPlayType('audio/mp4; codecs="aac51"',"com.widevine.alpha")))continue}c[g.info.o]=c[g.info.o]||[];c[g.info.o].push(g.info)}}a=iu;if(Wr("cros armv7")||Wr("windows nt 5.1"))a=ju;d=E(a,b);a=E(ku,b);if(!d||!a)return null;"9"==d&&c.h&&(e=function(a,b){return Math.max(a,b.video.height)},g=hb(c["9"],
e,0),hb(c.h,e,0)>1.5*g&&(d="h"));d=c[d];a=c[a];Bb(d,function(a,b){return b.video.width-a.video.width||b.ra-a.ra});Bb(a,function(a,b){return b.ra-a.ra});return new Et(d,a)};var Au={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 Bu(a,b){this.B=[];this.K=a;this.I=b||null;this.A=this.j=!1;this.o=void 0;this.G=this.M=this.D=!1;this.C=0;this.k=null;this.F=0}Bu.prototype.cancel=function(a){if(this.j)this.o instanceof Bu&&this.o.cancel();else{if(this.k){var b=this.k;delete this.k;a?b.cancel(a):(b.F--,0>=b.F&&b.cancel())}this.K?this.K.call(this.I,this):this.G=!0;this.j||Cu(this,new Du)}};Bu.prototype.H=function(a,b){this.D=!1;Eu(this,a,b)};function Eu(a,b,c){a.j=!0;a.o=c;a.A=!b;Fu(a)}
function Gu(a){if(a.j){if(!a.G)throw new Hu;a.G=!1}}function Cu(a,b){Gu(a);Eu(a,!1,b)}function Iu(a,b,c){Ju(a,b,null,c)}function Ju(a,b,c,d){a.B.push([b,c,d]);a.j&&Fu(a)}Bu.prototype.then=function(a,b,c){var d,e,g=new Tm(function(a,b){d=a;e=b});Ju(this,d,function(a){a instanceof Du?g.cancel():e(a)});return g.then(a,b,c)};Rm(Bu);function Ku(a){return ib(a.B,function(a){return ia(a[1])})}
function Fu(a){if(a.C&&a.j&&Ku(a)){var b=a.C,c=Lu[b];c&&(m.clearTimeout(c.xa),delete Lu[b]);a.C=0}a.k&&(a.k.F--,delete a.k);for(var b=a.o,d=c=!1;a.B.length&&!a.D;){var e=a.B.shift(),g=e[0],h=e[1],e=e[2];if(g=a.A?h:g)try{var k=g.call(e||a.I,b);n(k)&&(a.A=a.A&&(k==b||k instanceof Error),a.o=b=k);Sm(b)&&(d=!0,a.D=!0)}catch(l){b=l,a.A=!0,Ku(a)||(c=!0)}}a.o=b;d&&(k=x(a.H,a,!0),d=x(a.H,a,!1),b instanceof Bu?(Ju(b,k,d),b.M=!0):b.then(k,d));c&&(b=new Mu(b),Lu[b.xa]=b,a.C=b.xa)}
function Hu(){ua.call(this)}z(Hu,ua);Hu.prototype.message="Deferred has already fired";Hu.prototype.name="AlreadyCalledError";function Du(){ua.call(this)}z(Du,ua);Du.prototype.message="Deferred was canceled";Du.prototype.name="CanceledError";function Mu(a){this.xa=m.setTimeout(x(this.k,this),0);this.j=a}Mu.prototype.k=function(){delete Lu[this.xa];throw this.j;};var Lu={};function Nu(a,b){var c=b||{},d=c.document||document,e=Gd("SCRIPT"),g={Tr:e,vb:void 0},h=new Bu(Ou,g),k=null,l=null!=c.timeout?c.timeout:5E3;0<l&&(k=window.setTimeout(function(){Pu(e,!0);Cu(h,new Qu(1,"Timeout reached for loading script "+a))},l),g.vb=k);e.onload=e.onreadystatechange=function(){e.readyState&&"loaded"!=e.readyState&&"complete"!=e.readyState||(Pu(e,c.Nw||!1,k),Gu(h),Eu(h,!0,null))};e.onerror=function(){Pu(e,!0,k);Cu(h,new Qu(0,"Error while loading script "+a))};xd(e,{type:"text/javascript",
charset:"UTF-8",src:a});Ru(d).appendChild(e);return h}function Ru(a){var b=a.getElementsByTagName("HEAD");return!b||nb(b)?a.documentElement:b[0]}function Ou(){if(this&&this.Tr){var a=this.Tr;a&&"SCRIPT"==a.tagName&&Pu(a,!0,this.vb)}}function Pu(a,b,c){null!=c&&m.clearTimeout(c);a.onload=u;a.onerror=u;a.onreadystatechange=u;b&&window.setTimeout(function(){Ld(a)},0)}function Qu(a,b){var c="Jsloader error (code #"+a+")";b&&(c+=": "+b);ua.call(this,c);this.code=a}z(Qu,ua);function Su(a,b){this.k=new I(a);this.j=b?b:"callback";this.vb=5E3}var Tu=0;Su.prototype.send=function(a,b,c,d){a=a||null;d=d||"_"+(Tu++).toString(36)+y().toString(36);m._callbacks_||(m._callbacks_={});var e=this.k.clone();if(a)for(var g in a)a.hasOwnProperty&&!a.hasOwnProperty(g)||hf(e,g,a[g]);b&&(m._callbacks_[d]=Uu(d,b),hf(e,this.j,"_callbacks_."+d));b=Nu(e.toString(),{timeout:this.vb,Nw:!0});Ju(b,null,Vu(d,a,c),void 0);return{xa:d,Mo:b}};
Su.prototype.cancel=function(a){a&&(a.Mo&&a.Mo.cancel(),a.xa&&Wu(a.xa,!1))};function Vu(a,b,c){return function(){Wu(a,!1);c&&c(b)}}function Uu(a,b){return function(c){Wu(a,!0);b.apply(void 0,arguments)}}function Wu(a,b){m._callbacks_[a]&&(b?delete m._callbacks_[a]:m._callbacks_[a]=u)};function Xu(a,b){T.call(this);this.A=b+"feeds/api/users/live/broadcasts/"+a+"/states?v=2&alt=json-in-script";this.j=new dn(15E3+Math.floor(3E4*Math.random()));qm(this.j,"tick",x(this.k,this));this.k();this.j.start()}z(Xu,T);Xu.prototype.L=function(){this.j.dispose();Xu.J.L.call(this)};Xu.prototype.k=function(){(new Su(this.A)).send(null,x(this.o,this),x(this.B,this))};Xu.prototype.o=function(a){this.publish("payload",a);en(this.j,15E3+Math.floor(3E4*Math.random()))};
Xu.prototype.B=function(){this.publish("error");var a=this.j.j;192E4>a&&en(this.j,2*a)};function Yu(a){Q.call(this);this.j={};this.o={};this.A={};this.k=Zu(this,a)}z(Yu,Q);function Zu(a,b,c){var d=0,e=Gd(b[d++]);if(v(b[d])||fa(b[d])||null===b[d]){var g=b[d++];fa(g)&&(g=g.join(" "));if(g=$u(a,e,"className",g))av(a,e,"className",g),bv(a,g,e)}for(;d<b.length;d++){var h=b[d];if(fa(h))Zu(a,h,e);else if(ja(h)){var g=a,k=e,l=void 0;for(l in h)h[l]&&av(g,k,l,$u(g,k,l,h[l]))}else v(h)&&(g=$u(a,e,"child",h),null!=g&&e.appendChild(Hd(g)))}c&&c.appendChild(e);return e}f=Yu.prototype;f.N=function(){return this.k};
function bv(a,b,c){var d=b.split(" ");if(1<d.length)for(b=0;b<d.length;b++)bv(a,d[b],c);else a.j[b]=c}f.Y=function(a,b){n(b)?a.insertBefore(this.k,a.childNodes[b]||null):a.appendChild(this.k)};f.detach=function(){Ld(this.k)};function $u(a,b,c,d){return v(d)&&"{{"==d.substr(0,2)?(a.o[d]=[b,c],null):d}f.update=function(a){for(var b in a)cv(this,b,a[b])};function cv(a,b,c){if(c!=a.A[b]){var d=a.o["{{"+b+"}}"];d&&(a.A[b]=c,av(a,d[0],d[1],c))}}function dv(a){return fa(a)&&v(a[0])}
function av(a,b,c,d){if("child"==c){Kd(b);if(!fa(d)||dv(d))d=[d];c=[];for(var e=0;e<d.length;e++){var g=d[e];if(ha(g)||v(g)||ja(g))!g.nodeType||1!=g.nodeType&&3!=g.nodeType?dv(g)?c.push(Zu(a,g)):g.N?c.push(g.N()):c.push(Hd(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.L=function(){this.j={};this.o={};this.A={};this.detach();delete this.k;Yu.J.L.call(this)};function ev(a,b){a&&(a.style.display=b)}function fv(a,b){var c=sh("requestAnimationFrame",window);return L(function(){c?c.call(window,a):a()},b||0)};function X(a){Q.call(this);this.template=new Yu(a);R(this,this.template);this.element=this.template.N();this.da="block";this.F=!0;this.Oa=[]}z(X,Q);f=X.prototype;f.N=function(){return this.element};f.Y=function(a,b){this.template.Y(a,b)};f.detach=function(){this.template.detach()};f.pa=function(a,b){cv(this.template,b||"content",a)};f.show=function(){ev(this.element,this.da);this.F=!0;this.element.removeAttribute("aria-hidden")};
f.hide=function(){ev(this.element,"none");this.F=!1;this.element.setAttribute("aria-hidden","true")};function gv(a,b){a.element.setAttribute("role",b)}f.bb=function(a){this.element.setAttribute("aria-label",a)};f.Ub=function(a){Hh(this.element,a)};f.listen=function(a,b,c){return hv(this,this.element,a,b,c)};function hv(a,b,c,d,e,g){b=P(b,c,x(d,e||a),g);a.Oa.push(b);return b}f.Fa=function(a){Dh(a)};f.L=function(){this.Fa(this.Oa);delete this.element;X.J.L.call(this)};function iv(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 jv(a){return Math.round(1E3*a)/10}function kv(a){return(!ha(a.button)||0==a.button)&&!a.shiftKey&&!a.altKey&&!a.metaKey&&!a.ctrlKey};var lv={ZJ:"html5-stop-propagation",cJ:"ytp-no-controls",BI:"html5-live-dvr-disabled",CI:"html5-live-dvr-engaged",DI:"html5-live-playback",vI:"ytp-iv-drawer-enabled",wI:"ytp-iv-drawer-open",OI:"html5-mobile",SI:"modest-branding",ZI:"html5-native-controls",dK:"html5-tablet",cK:"html5-tablet-body",JI:"html5-main-video",zK:"html5-video-container",AK:"html5-video-content",BK:"html5-video-controls",CK:"ytp-fallback",DK:"ytp-fallback-content",FK:"html5-video-loader",MK:"html5-watermark",nH:"html5-branded-watermark",
DH:"html5-context-menu",Pu:"html5-context-menu-copy-debug-info",Qu:"html5-context-menu-copy-embed-html",Ru:"html5-context-menu-copy-video-url",Su:"html5-context-menu-copy-video-url-at-current-time",Tu:"html5-context-menu-link",Uu:"html5-context-menu-report-playback-issue",Vu:"html5-context-menu-show-video-info",EH:"html5-show-video-info-template",QI:"html5-modal-panel",lI:"ideal-aspect",ZH:"autohide-controls",aI:"autohide-controls-aspect",$H:"autohide-controls-fullscreen",MI:"autominimize-progress-bar",
NI:"autominimize-progress-bar-non-aspect",bI:"hide-info-bar",cI:"html5-hide-share",dI:"html5-hide-volume",iK:"ytp-tiny-mode",IK:"video-thumbnail",qJ:"ytp-dialog",eH:"html5-async-progress",fH:"html5-async-success",dH:"html5-async-error",xH:"html5-center-overlay",GJ:"ytp-scalable-icon-shrink",FJ:"ytp-scalable-icon-grow",iI:"house-brand",KJ:"sentiment-like",JJ:"sentiment-dislike"};function mv(){X.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.k=0;this.j=null}z(mv,X);
mv.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.o())};function nv(a){var b=Math.floor(y()/1E3);return b>a?Of("YTP_FRESCA_STARTING_SOON_MESSAGE"):iv(a-b)}
mv.prototype.o=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:nv(this.j.startTime)}),M(this.k),this.k=L(x(this.o,this),1E3))};mv.prototype.L=function(){M(this.k);mv.J.L.call(this)};function ov(a){this.messageText=[];this.j=!1;a&&pv(this,a)}ov.prototype.state=-1;function qv(a){return{imageUrl:a.imageUrl,messageText:a.getMessage(),startTime:a.startTime,state:a.state}}
function pv(a,b){var c=b.feed;if(c){var d=c.yt$lifeCycleState;d&&(a.state=Au[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=D(d,function(a){return a.$t}));if(c=c.entry)a.j=0<=kb(c,function(a){a=a.yt$status;return!!a&&"inactive"!=a.$t})}}ov.prototype.getMessage=function(){return this.messageText.length?this.messageText:rv(this)};
function rv(a){switch(a.state){case 6:return a.j?[]:[Of("YTP_FRESCA_STAND_BY_MESSAGE"),Of("YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE")];case 8:return[Of("YTP_FRESCA_EVENT_OVER_MESSAGE")];case 7:return[Of("YTP_FRESCA_EVENT_OVER_MESSAGE"),Of("YTP_FRESCA_COMPLETE_MESSAGE")];default:return[Of("YTP_FRESCA_STAND_BY_MESSAGE")]}};function sv(a){Ds.call(this,a);Nf({YTP_FRESCA_STARTING_SOON_MESSAGE:"Starting soon...",YTP_FRESCA_EVENT_OVER_MESSAGE:"This live event is over.",YTP_FRESCA_COMPLETE_MESSAGE:"Thanks for watching!",YTP_FRESCA_STAND_BY_MESSAGE:"Please stand by.",YTP_FRESCA_TECHNICAL_DIFFICULTIES_MESSAGE:"We're experiencing technical difficulties."})}z(sv,Ds);f=sv.prototype;f.ua="fresca";f.sc="fresca";f.Xi=!1;f.Sg=!1;f.Ea=function(){return tv(this.j.getVideoData(),"fresca_module")};
f.create=function(a){sv.J.create.call(this);qu(Qt(),"application/x-mpegURL")||tu()?(this.Xi=this.Sg=!1,Ms(this,["play_pause","seek"]),this.o=new mv,Dr(this.j,this.o.N()),this.A=a||new Xu(this.j.getVideoData().videoId,this.j.R().od),this.A.subscribe("payload",this.HB,this),this.A.subscribe("error",this.GB,this),this.subscribe("onStateChange",this.Et,this)):uv(this.j.app.k,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)};
f.destroy=function(){this.unsubscribe("onStateChange",this.Et,this);wi(this.A,this.o);sv.J.destroy.call(this)};f.Et=function(a){this.k&&(this.Xi=W(a.state,2),(vv(a,16)||this.Xi)&&wv(this,this.k))};f.GB=function(){this.Sg||(xv(this,new ov),wv(this,this.k))};f.HB=function(a){xv(this,new ov(a));a=this.j.getVideoData();6!=this.k.state||a.S||a.O?wv(this,this.k):this.j.Bn(a.videoId)};
function wv(a,b){var c=6>b.state;!c&&a.j.app.k.la&&(b.imageUrl||b.messageText.length)&&(c=!0);a.Xi&&!a.j.R().Cc&&(c=!0);b.j||(c=!0);if(!a.Sg)switch(b.state){case 6:b.j&&(a.Sg=!0,Ns(a,["play_pause","seek"]),Fs(a));break;case 8:case 7:c=a.Sg=!0}c&&a.o.update(b);c&&!a.loaded?a.load():!c&&a.loaded&&a.unload()}function yv(a){return tv(a.getVideoData(),"fresca_module")?new sv(a):null}function xv(a,b){a.k!=b&&(a.k=b,a.j.R().Ab()&&a.publish("publish_external_event","onFrescaStateChange",qv(a.k)))};function zv(a){this.un=a||window;this.Rf=[]}f=zv.prototype;f.un=null;f.Rf=null;f.listen=function(a,b,c,d){c=x(c,d||this.un);a=P(a,b,c);this.Rf.push(a);return a};function Av(a,b,c,d,e,g){d=x(d,g||a.un);b=Eh(b,c,d,e);a.Rf.push(b)}f.Fa=function(a){Dh(a);qb(this.Rf,a)};f.removeAll=function(){Dh(this.Rf);this.Rf=[]};function Bv(a,b,c){Q.call(this);this.j=a;this.A=b||0;this.k=c;this.o=x(this.rx,this)}z(Bv,Q);f=Bv.prototype;f.xa=0;f.L=function(){Bv.J.L.call(this);this.stop();delete this.j;delete this.k};f.start=function(a){this.stop();this.xa=fn(this.o,n(a)?a:this.A)};f.stop=function(){this.isActive()&&gn(this.xa);this.xa=0};f.isActive=function(){return 0!=this.xa};f.rx=function(){this.xa=0;this.j&&this.j.call(this.k)};function Cv(a,b){U.call(this);this.j=a;var c=Qd(this.j)?this.j:this.j?this.j.body:null;c&&Ug(c);this.k=qm(this.j,Wc?"DOMMouseScroll":"mousewheel",this,b)}z(Cv,U);
Cv.prototype.handleEvent=function(a){var b=0,c=0,d=0;a=a.j;if("mousewheel"==a.type){c=1;if(Vc||Xc&&($c||hd("532.0")))c=40;d=Dv(-a.wheelDelta,c);n(a.wheelDeltaX)?(b=Dv(-a.wheelDeltaX,c),c=Dv(-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;ha(this.o)&&Lc(b,-this.o,this.o);ha(this.A)&&Lc(c,-this.A,this.A);b=new Ev(d,a);this.U(b)};function Dv(a,b){return Xc&&(Zc||ad)&&0!=a%b?a:a/b}
Cv.prototype.L=function(){Cv.J.L.call(this);zm(this.k);this.k=null};function Ev(a,b){dm.call(this,b);this.type="mousewheel";this.detail=a}z(Ev,dm);var Fv={},Gv=null;function Hv(a){a=ka(a);delete Fv[a];Xb(Fv)&&Gv&&Gv.stop()}function Iv(){Gv||(Gv=new Bv(function(){Jv()},20));var a=Gv;a.isActive()||a.start()}function Jv(){var a=y();Jb(Fv,function(b){Kv(b,a)});Xb(Fv)||Iv()};function Lv(){U.call(this);this.j=0;this.endTime=this.startTime=null}z(Lv,U);f=Lv.prototype;f.ub=function(){return 1==this.j};f.Oi=function(){this.uc("begin")};f.Lg=function(){this.uc("end")};f.Zb=function(){this.uc("finish")};f.onStop=function(){this.uc("stop")};f.uc=function(a){this.U(a)};function Mv(a,b,c,d){Lv.call(this);if(!fa(a)||!fa(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.A=a;this.G=b;this.duration=c;this.D=d;this.o=[];this.k=this.F=0;this.C=null}z(Mv,Lv);f=Mv.prototype;
f.play=function(a){if(a||0==this.j)this.k=0,this.o=this.A;else if(this.ub())return!1;Hv(this);this.startTime=a=y();-1==this.j&&(this.startTime-=this.duration*this.k);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.k||this.Oi();this.uc("play");-1==this.j&&this.uc("resume");this.j=1;var b=ka(this);b in Fv||(Fv[b]=this);Iv();Kv(this,a);return!0};f.stop=function(a){Hv(this);this.j=0;a&&(this.k=1);Nv(this,this.k);this.onStop();this.Lg()};
f.pause=function(){this.ub()&&(Hv(this),this.j=-1,this.uc("pause"))};f.L=function(){0==this.j||this.stop(!1);this.uc("destroy");Mv.J.L.call(this)};f.destroy=function(){this.dispose()};function Kv(a,b){a.k=(b-a.startTime)/(a.endTime-a.startTime);1<=a.k&&(a.k=1);a.F=1E3/(b-a.C);a.C=b;Nv(a,a.k);1==a.k?(a.j=0,Hv(a),a.Zb(),a.Lg()):a.ub()&&a.km()}function Nv(a,b){ia(a.D)&&(b=a.D(b));a.o=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.o[c]=(a.G[c]-a.A[c])*b+a.A[c]}f.km=function(){this.uc("animate")};
f.uc=function(a){this.U(new Ov(a,this))};function Ov(a,b){Zl.call(this,a);this.x=b.o[0];this.y=b.o[1];this.duration=b.duration;this.fps=b.F;this.state=b.j}z(Ov,Zl);function Pv(a){return Math.pow(a,3)}function Qv(a){return 3*a*a-2*a*a*a};function Rv(a){return fa(a)&&a.length?a[0]:a}function Sv(a){var b=/.+/;return v(a)&&null!=b&&null!=a&&a.match(b)?a:""}function Tv(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 Uv(a){return v(a)?a:""}function Vv(a,b,c){for(var d in b)if(b[d]==a)return a;return c}function Wv(a,b){return"true"==a||"false"==a?"true"==a:b}function Xv(a,b){return v(a)?parseFloat(a):b}
function Yv(a,b,c,d,e,g){a=10==b?parseFloat(a):parseInt(a,b);if(null!=a&&!isNaN(a)){if(e)return Lc(a,c,d);if(a>=c&&a<=d)return a}return g}function Zv(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;C(a,function(a){a=parseFloat(a);0>a&&(c=-c);b=60*b+Math.abs(a)});return c*b}function $v(a,b){if(null==a)return null;if(ga(a)){var c=[];C(a,function(a){(a=b(a))&&c.push(a)});return c}var d=b(a);return d?[d]:[]}
function aw(a){function b(a){return null!=a&&!isNaN(a)}return(a=a?new lg(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 bw(a){function b(a){return gb(a.split(/ +/),function(a){return""!=a})}return null==a?[]:b(a)};function cw(a,b,c){this.value=a;this.target=b;this.showLinkIcon=c}var dw={HH:"current",aJ:"new"};function ew(a){if(!a)return null;var b=Uv(a.value);if(!b||null==pj(b))return null;var c=Vv(a.target,dw,"current");return null==c?null:new cw(b,c,Wv(a.show_link_icon,!0))};function fw(a){if(!a)return!1;var b=gw(a);return("com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1])&&-1==a.indexOf("/redirect?")}function gw(a){a=a.replace(/https?:\/\//g,"");a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()}
function hw(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=!fw(c))||(d=Ce(ze(c)[5]||null)||"",d=d.split("/"),d="/"+(1<d.length?d[1]:""),d="/watch"!=d);if(d)return-1;d=pj(c);if(!d||d.v!=b||d.list||d.p)return-1;c=c.split("#",2);if(!c||2>c.length)return-1;(c=oj(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 iw(a,b,c,d){(a=a.value?a.value:null)?fw(a)?d=sj(a,{src_vid:c,feature:"iv",annotation_id:b}):(a?(b=gw(a),b="com"==b[0]&&"google"==b[1]&&"plus"==b[2]):b=!1,b&&d?(d=ra(jw,d.pageId,d.Xa),a=new I(a),Ve(a,d(a.Ib)),d=a.toString()):d=a):d=null;return d}function jw(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 kw(a){return a.target?"new"==a.target?"_blank":"_top":fw(a.value?a.value:null)?"_top":"_blank"};function lw(a,b){this.o=a;this.k=b;this.j={}}function mw(a,b,c,d){if(b){var e=nw(a,b);a.j[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;dc(e,c||{});b=ub(d||[]);30==e["a-type"]&&(c=ow(a,e["a-id"],"cta_annotation_shown"))&&b.push(c);pw(a,e,b)}}function qw(a,b,c,d,e){if(b){var g=nw(a,b);g["iv-event"]=3;g["i-time"]=a.j[b]||"";dc(g,d||{});b=ub(e||[]);30==g["a-type"]&&(d=ow(a,g["a-id"],"cta_annotation_clicked"))&&b.push(d);pw(a,g,b,c)}}
function rw(a,b){if(b){var c=nw(a,b);c["iv-event"]=4;c["i-time"]=a.j[b]||"";dc(c,{});var d=ub([]);if(30==c["a-type"]){var e=ow(a,c["a-id"],"cta_annotation_closed");e&&d.push(e)}pw(a,c,d)}}function ow(a,b,c){a=a.k.getVideoData();if(a.Ac){if((c=a.Ac[c])&&-1!=c.search(yf))return a=za("[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.ka)return sj(a.ka,{label:c,value:"a_id="+b});return""}
function pw(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)}C(c||[],function(a){e++;bg(a,g)});a.Ja(b,g)}function nw(a,b){var c={};if(b){var d=new Ye(b);C(d.Ia(),function(a){c[a]=escape(d.get(a,""))})}c["p-time"]=a.k.getCurrentTime().toFixed(2);c.ps=a.k.R().j;return c}function sw(a,b,c){var d=nw(a);d["iv-event"]=b;d["a-id"]="card:drawer";d["a-type"]=51;pw(a,d,c)}
function tw(a,b,c,d,e){c&&(c=nw(a,c),c["iv-event"]=b,dc(c,d||{}),pw(a,c,e))}lw.prototype.Ja=function(a,b){this.o.publish("command_log","iv",a,b)};function uw(a,b){this.K=a;this.context=b;this.hn=!1;this.D=0}function vw(a,b,c,d,e,g){b=new ss(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.publish("command_add_cuerange",[b],a.context.k.getPlayerType())}f=uw.prototype;f.rj=function(){this.context.Wa.subscribe("onResize",this.Dk,this)};f.N=function(){return this.K};
f.sj=function(a,b,c,d,e){Av(this.context.j,a,"click",ra(this.Ce,a,b,c,d,e||[]),"iv-click-target",this);Av(this.context.j,a,"touchend",ra(this.Ce,a,b,c,d,e||[]),"iv-click-target",this);Av(this.context.j,a,"touchstart",ra(function(){this.hn=!1}),"iv-click-target",this);Av(this.context.j,a,"touchmove",ra(function(){this.hn=!0}),"iv-click-target",this)};
f.Ce=function(a,b,c,d,e,g){if(this.hn)return!0;g.stopPropagation();g.preventDefault();var h=iw(b,c,this.context.o.videoId);a=x(function(){this.context.k.pauseVideo();window.open(h,kw(b))},this);fw(b.value?b.value:null)&&"new"!=b.target||(a(),a=null);c={};c.interval=y()-this.D;qw(this.context.logger,d,a,c,e);return!1};f.show=function(){this.D=y()};f.hide=function(){};f.destroy=function(){Ld(this.N())};f.Dk=function(){};var ww=16/9,xw=4/3,Mq=[.25,.5,1,1.25,1.5,2];function yw(a,b){fa(b)||(b=[b]);var c=D(b,function(a){return v(a)?a:a.property+" "+a.duration+"s "+a.timing+" "+a.No+"s"});zw(a,c.join(","))}
var Aw=function(a){var b=!1,c;return function(){b||(c=a(),b=!0);return c}}(function(){if(Vc)return hd("10.0");var a=document.createElement("div"),b=Xc?"-webkit":Wc?"-moz":Vc?"-ms":Uc?"-o":null,c={transition:"opacity 1s linear"};b&&(c[b+"-transition"]="opacity 1s linear");b={style:c};if(!Gc.test("div"))throw Error("Invalid tag name <div>.");if("div"in Ic)throw Error("Tag name <div> is not allowed for SafeHtml.");var c=null,d="<div";if(b)for(var e in b){if(!Gc.test(e))throw Error('Invalid attribute name "'+
e+'".');var g=b[e];if(null!=g){var h;h=e;if(g instanceof qc)g=sc(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 tc)){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];null!=p&&(p instanceof qc?p=sc(p):xc.test(p)||(p="zClosurez"),k+=l+":"+p+";")}g=k?vc(k):wc}k=void 0;k=g instanceof tc&&g.constructor===
tc&&g.k===uc?g.j:"type_error:SafeStyle";g=k}else{if(/^on/i.test(h))throw Error('Attribute "'+h+'" requires goog.string.Const value, "'+g+'" given.');if(h.toLowerCase()in Hc)if(g instanceof Bc)g=g instanceof Bc&&g.constructor===Bc&&g.j===Cc?"":"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.vf&&(g=g.mf());h=h+'="'+Ba(String(g))+'"';d=d+(" "+h)}}e=void 0;n(e)?fa(e)||
(e=[e]):e=[];!0===gc.div?d+=">":(c=Jc(e),d+=">"+Fc(c)+"</div>",c=c.hf());(b=b&&b.dir)&&(/^(ltr|rtl|auto)$/i.test(b)?c=0:c=null);b=Kc(d,c);a.innerHTML=Fc(b);return""!=zg(a.firstChild,"transition")});function zw(a,b){wg(a,"transition",b)};function Bw(a,b){(a=td(a))&&a.style&&(Tg(a,b),O(a,"hid",!b))}function Cw(a){return(a=td(a))?!("none"==a.style.display||eh(a,"hid")):!1}function Dw(a){C(arguments,function(a){Bw(a,!0)})}function Ew(a){C(arguments,function(a){Bw(a,!1)})}var Fw={};function Gw(){return!!r("yt.scheduler.instance")}function Hw(a,b){void 0===b&&(b=NaN);var c=r("yt.scheduler.instance.addJob");return c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?(a(),NaN):L(a,b||0)}function Iw(a,b){return Hw(a,b)}function Jw(a){var b=r("yt.scheduler.instance.cancelJob");b?b(a):M(a)}function Kw(){var a=r("yt.scheduler.instance.start");a&&(M(Lw),a())}var Lw=0;function Mw(){var a=r("yt.scheduler.instance.pause");a&&(a(),M(Lw),Lw=L(Kw,800))};function Nw(a,b){this.version=a;this.args=b}function Ow(a){if(!a.Yd){var b={};a.call(b);a.Yd=b.version}return a.Yd}
function Pw(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=Ow(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;}}Nw.prototype.D=function(){return{version:this.version,args:this.args}};
function Qw(a,b){this.k=a;this.j=b}Qw.prototype.toString=function(){return this.k};var Rw=r("yt.pubsub2.instance_")||new xi;xi.prototype.subscribe=xi.prototype.subscribe;xi.prototype.unsubscribeByKey=xi.prototype.Kb;xi.prototype.publish=xi.prototype.publish;xi.prototype.clear=xi.prototype.clear;q("yt.pubsub2.instance_",Rw,void 0);var Sw=r("yt.pubsub2.subscribedKeys_")||{};q("yt.pubsub2.subscribedKeys_",Sw,void 0);var Tw=r("yt.pubsub2.topicToKeys_")||{};q("yt.pubsub2.topicToKeys_",Tw,void 0);var Uw=r("yt.pubsub2.isAsync_")||{};q("yt.pubsub2.isAsync_",Uw,void 0);
q("yt.pubsub2.skipSubKey_",null,void 0);
function Vw(a,b){var c=Ww,d=Xw();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(Sw[e])try{if(h&&c instanceof Qw&&c!=d)try{h=Pw(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){Mf(p)}};Uw[c.toString()]?Gw()?Hw(k,void 0):L(k,0):k()}});Sw[e]=!0;Tw[c.toString()]||(Tw[c.toString()]=[]);Tw[c.toString()].push(e);return e}
function Yw(a,b){var c=Vw(function(d){a.apply(b,arguments);Zw(c)},b);return c}function Zw(a){var b=Xw();b&&(ha(a)&&(a=[a]),C(a,function(a){b.unsubscribeByKey(a);delete Sw[a]}))}function Xw(){return r("yt.pubsub2.instance_")};var $w={},ax="ontouchstart"in document;function bx(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return de(c,function(a){return eh(a,b)},!0,d)}
function cx(a){var b="mouseover"==a.type&&"mouseenter"in $w||"mouseout"==a.type&&"mouseleave"in $w,c=a.type in $w||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=$w[b],d;for(d in c.dc){var e=bx(b,d,a.target);e&&!de(a.relatedTarget,function(a){return a==e},!0)&&c.publish(d,e,b,a)}}if(b=$w[a.type])for(d in b.dc)(e=bx(a.type,d,a.target))&&b.publish(d,e,a.type,a)}}P(document,"blur",cx,!0);P(document,"change",cx,!0);P(document,"click",cx);
P(document,"focus",cx,!0);P(document,"mouseover",cx);P(document,"mouseout",cx);P(document,"mousedown",cx);P(document,"keydown",cx);P(document,"keyup",cx);P(document,"keypress",cx);P(document,"cut",cx);P(document,"paste",cx);ax&&(P(document,"touchstart",cx),P(document,"touchend",cx),P(document,"touchcancel",cx));function dx(){this.A={};this.Am=[]}function ex(a,b){return"yt-uix"+(a.Wh?"-"+a.Wh:"")+(b?"-"+b:"")}dx.prototype.init=u;dx.prototype.dispose=u;function fx(a,b,c){var d=ex(a,void 0),e=x(c,a);b in $w||($w[b]=new xi);$w[b].subscribe(d,e);a.A[c]=e}dx.prototype.k=function(a,b,c){var d=lh(a,b);if(d&&(d=r(d))){var e=xb(arguments,2);wb(e,0,0,a);d.apply(null,e)}};function gx(a,b){jh(a,"tooltip-text",b)}dx.prototype.removeData=function(a,b){a&&(a.dataset?delete a.dataset[kh(b)]:a.removeAttribute("data-"+b))};function hx(){dx.call(this);this.j={}}z(hx,dx);ba(hx);f=hx.prototype;f.Wh="scroller";f.register=function(){fx(this,"mouseenter",this.Pz);fx(this,"mouseleave",this.xq)};f.dispose=function(){for(var a in this.j)this.xq(this.j[a]);this.j={}};f.Pz=function(a){var b=P(a,"mousewheel",x(this.$x,this,a));jh(a,"scroller-mousewheel-listener",b);b=P(a,"scroll",x(this.wy,this,a));jh(a,"scroller-scroll-listener",b);a&&(b=ka(a).toString(),this.j[b]=a)};
f.xq=function(a){var b=lh(a,"scroller-mousewheel-listener")||"";jh(a,"scroller-mousewheel-listener","");var c=lh(a,"scroller-scroll-listener")||"";jh(a,"scroller-scroll-listener","");Dh(b);Dh(c);jh(a,"scroller-scroll-listener","");a&&(a=ka(a).toString(),delete this.j[a])};f.$x=function(a,b){b.preventDefault();b.wheelDeltaY&&(a.scrollTop=a.scrollTop+b.wheelDeltaY);Gi("yt-dom-content-change",a)};f.wy=function(a){this.k(a,"scroll-action")};var ix=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};q("yt.uix.widgets_",ix,void 0);function jx(a){a=a.getInstance();var b=ex(a);b in ix||(a.register(),a.Am.push(Di("yt-uix-init-"+b,a.init,a)),a.Am.push(Di("yt-uix-dispose-"+b,a.dispose,a)),ix[b]=a)};function kx(a,b,c){this.id=a;this.type=b.card_type;this.B=b.teaser_text||b.title;this.teaserDurationMs=b.teaser_duration_ms||5E3;this.startMs=b.start_ms;this.endMs=b.end_ms;this.ib=c;a=b.tracking||{};this.j={qz:a.impression,click:a.click,close:a.close,AD:a.teaser_impression,vs:a.teaser_click}};function lx(a,b,c){kx.call(this,a,b,c);this.A=b.image_url;this.title=b.title;this.k=b.meta_info;this.o=b.html_blobs;this.url=ew({target:b.target||"new",value:b.url})}z(lx,kx);function mx(a,b,c){this.j=a;this.C=b;this.k=c}function nx(a,b){var c=ox(a,b.url,b.id),d=b.o&&b.o["iv-blob-subscribe"]?["div","iv-blob-subscribe"]:px(b),c=new X(["article","",["div",["iv-card-image","iv-click-target"],{style:"background-image: url("+b.A+");"}],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],d]]),e=c.N();Jb(b.o,function(a,b){var c=ud(b,e);C(c,function(b){b.innerHTML=a})},c);Av(a.j.j,e,"click",ra(a.o,b),"iv-click-target",a);return c}
function qx(a,b){var c=ox(a,b.url,b.id),c=["article","iv-card-playlist",["div",["iv-card-image","iv-click-target"],["img",{src:b.o,alt:""}],["div","iv-card-image-overlay",["span","iv-card-playlist-video-count",b.playlistVideoCount.toString()],["span","iv-card-playlist-play-all",Of("YTP_PLAY_ALL")]]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],px(b)]],c=new X(c),d=c.N();rx(a,d,b);return c}
function sx(a,b){var c=["ul","yt-uix-form-list-option"];vb(c,D(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",
Of("YTP_DRAWER_POLL_SUBMIT")]]]]],c=new X(c),d=c.N();Av(a.j.j,d,"click",ra(a.A,b),"yt-uix-button",a);return c}function tx(a,b){var c=ox(a,b.url,b.id),c=ux(b,c),c=new X(c),d=c.N();rx(a,d,b);return c}function vx(a,b){var c=ox(a,b.url,b.id),c=ux(b,c),c=new X(c),d=c.N();Av(a.j.j,d,"click",ra(a.B,b),"iv-click-target",a);return c}
function wx(a,b){var c=ox(a,b.url,b.id),c=["article","iv-card-video",["div",["iv-card-image","iv-click-target"],["img",{src:b.A,alt:""}],["span","iv-card-video-duration",b.o]],["div",["iv-card-content","iv-click-target"],["h2","",["a",{href:c},b.title]],px(b)]],c=new X(c),d=c.N();rx(a,d,b);return c}function px(a){if(!a.k||0==a.k.length)return"";var b=["ul","iv-card-meta-info"];C(a.k,function(a){b.push(["li","",a])});return b}
function ux(a,b){var c=a.displayDomain?["a",{href:b},a.displayDomain]:"",d=["iv-card-action"],e={href:b},g=["span","",a.A];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]]}
mx.prototype.o=function(a,b){ce(b.target,"","iv-blob-subscribe")?b.preventDefault():this.k(b.target,a.url,a.id,a.ib,a.j.click,b)};mx.prototype.A=function(a,b){b.stopPropagation();b.preventDefault();var c=a.id,d;t:{var e=b.currentTarget.form.elements.radio;if(e){if(e.type){d=lj(e);break t}for(d=0;d<e.length;d++){var g=lj(e[d]);if(g){d=g;break t}}}d=null}e=this.j.o.Mh;c={Of:{action_poll_vote:1},Eb:{poll_id:c,index:d},method:"POST"};c.Eb||(c.Eb={});Aj(e,c)};
mx.prototype.B=function(a,b){b.stopPropagation();b.preventDefault();this.j.k.pauseVideo();this.j.k.isFullscreen()&&xx(this.j.k.app);qw(this.j.logger,a.ib,a.j.click);var c=r("yt.www.ypc.bootstrap.api.loadOffers");c&&c(a.F,a.D,a.C)};function ox(a,b,c){return b?iw(b,c,a.j.o.videoId,a.j.Z):null}function rx(a,b,c){a.C(b,c.url,c.id,c.ib,c.j.click)};function yx(a,b,c){kx.call(this,a,b,c);this.o=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.title=b.title;this.k=b.meta_info;this.url=ew({target:b.target||"new",value:b.url})}z(yx,kx);function zx(a,b,c){kx.call(this,a,b,c);this.imageUrl=b.image_url;this.title=b.title;this.options=b.options}z(zx,kx);function Ax(a,b,c){kx.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.A=b.custom_message;this.url=ew({target:b.target||"new",value:b.url})}z(Ax,kx);function Bx(a,b,c){Ax.call(this,a,b,c);this.F=b.ypc_item_type;this.D=b.ypc_item_id;this.C=b.ypc_flow_type}z(Bx,Ax);function Cx(a,b,c){kx.call(this,a,b,c);this.A=b.image_url;this.o=b.video_duration;this.title=b.title;this.k=b.meta_info;this.url=ew({target:b.target||"new",value:b.url})}z(Cx,kx);function Dx(a,b){uw.call(this,a,b);this.am=this.k=this.G=this.I=!1;this.Bk=new Bv(u,b.Z.Sc?4E3:3E3);this.B=new mx(b,x(this.sj,this),x(this.Ce,this));var c=["header","iv-drawer-header",Of("YTP_DRAWER_HEADER_TEXT"),["button","iv-drawer-close-button"]];this.F=(new X(c)).N();this.Yc=(new X(["section",["iv-drawer","yt-uix-scroller"]])).N();this.o=(new X(["div","iv-drawer-teaser",["div","iv-drawer-teaser-box"],["div","iv-drawer-teaser-text"],["button","",["span"]]])).N();this.C=wd("iv-drawer-teaser-text",
this.o);this.Fc=null;this.A=[];this.H=this.j=null;b.Z.experiments.sz&&vw(this,1E3*b.o.lengthSeconds-5E3,2147483647,"",ra(this.Gr,null))}z(Dx,uw);var Ex={associated:Ax,channel:lx,fundraising:Ax,merch:Ax,playlist:yx,poll:zx,product:Ax,tip:Bx,video:Cx};function Fx(a){a=ee(a.N(),"ytp-iv-player-content");if(!a)return!1;a=Pg(a);return 177<a.width&&177<a.height}
function Gx(a){var b=["html5-stop-propagation","iv-drawer-manager"];a.context.Z.experiments.uz&&b.push("iv-drawer-teaser-style-exp");fh(a.N(),b);a.N().appendChild(a.o);a.N().appendChild(a.F);a.N().appendChild(a.Yc);Av(a.context.j,a.F,"click",a.Ww,"iv-drawer-close-button",a);b=new Cv(a.Yc);qm(b,"mousewheel",function(){this.Bk.start()},!1,a);a.context.j.listen(a.Yc,"touchend",function(){this.Bk.start()},a);a.context.j.listen(a.Yc,"scroll",a.OA,a);jx(hx);a.context.j.listen(a.o,"click",a.zD,a);a.context.j.listen(a.o,
"mouseover",function(){this.Fc&&this.Fc.stop()},a);a.context.j.listen(a.o,"mouseout",function(){this.Fc&&this.Fc.start()},a);a.context.Wa.subscribe("onHideControls",function(){this.am=!0},a);a.context.Wa.subscribe("onShowControls",function(){this.am=!1},a)}f=Dx.prototype;
f.add=function(a){this.I||(Gx(this),this.I=!0);var b,c;switch(a.type){case "associated":case "fundraising":case "merch":case "product":b=tx(this.B,a);break;case "tip":b=vx(this.B,a);break;case "video":b=wx(this.B,a);break;case "playlist":b=qx(this.B,a);break;case "channel":b=nx(this.B,a);break;case "poll":b=sx(this.B,a)}if(b){c=b.N();c={card:a,Gw:c,kq:!1,lq:!1};var d=zb(this.A,c,function(a,b){return a.card.startMs-b.card.startMs});0>d&&(d=-(d+1));wb(this.A,d,0,c);b.Y(this.Yc,d);this.Dk();b=1E3*this.context.k.getCurrentTime();
5E3>b&&b>a.startMs&&this.Zr(c);vw(this,a.startMs,a.startMs+1,a.id,ra(this.Zr,c))}};f.Dp=function(){this.Fc&&(gh(this.o,"iv-drawer-teaser-active"),L(x(function(){this.Fc=null},this),330))};f.Gr=function(a){a&&a.stopPropagation();this.k||(this.Dp(),N(this.N(),"iv-drawer-open"),this.k=!0,N(this.context.k.Ka(),"ytp-iv-drawer-open"),this.D=y(),sw(this.context.logger,7),C(this.A,function(a){a.lq||(a.lq=!0,mw(this.context.logger,a.card.ib,Hx(this,!0),a.card.j.qz))},this))};
f.OA=function(){O(this.N(),"iv-drawer-scrolled",0<this.Yc.scrollTop)};f.Ww=function(a){sw(this.context.logger,4,Ix(this).j.close);a&&a.stopPropagation();this.k&&(gh(this.N(),"iv-drawer-open"),this.k=!1,gh(this.context.k.Ka(),"ytp-iv-drawer-open"),sw(this.context.logger,10))};f.zD=function(a){if(!this.k){var b=Hx(this);if(this.j){var c=Ix(this);this.Fc?tw(this.context.logger,9,c.ib,b,c.j.vs):tw(this.context.logger,12,c.ib,b,c.j.vs)}else sw(this.context.logger,12);this.Gr(a)}};
f.Zr=function(a){if(!this.Fc){this.j!=a&&(this.j=a,Ud(this.C,a.card.B));var b;if(b=Cw(this.N()))2==Oq(this.context.k.app).getPlayerType()?b=1==(isNaN(void 0)?this.context.k.getAdState():void 0):(b=isNaN(void 0)?this.context.k.getPlayerState():void 0,b=1==b||0==b&&0===this.context.k.getCurrentTime());if(b&&!this.Fc&&!this.k&&this.j){N(this.o,"iv-drawer-teaser-active");b=this.j.card;this.Fc=new Bv(this.Dp,580+b.teaserDurationMs,this);this.Fc.start();var c=Hx(this);tw(this.context.logger,8,b.ib,c,b.j.AD);
this.context.Z.experiments.Pl&&(this.H=ch(this.C))}(!this.k||!this.Bk.isActive()&&this.am)&&Jx(this,a)}};function Jx(a,b){var c=new Mv([0,a.Yc.scrollTop],[0,b.Gw.offsetTop],600,Qv);a.context.j.listen(c,"animate",function(a){this.Yc.scrollTop=a.y},a);a.context.j.listen(c,"finish",function(a){this.Yc.scrollTop=a.y},a);c.play()}
f.Dk=function(){var a=Fx(this)&&!!this.A.length;Bw(this.N(),a);O(this.context.k.Ka(),"ytp-iv-drawer-enabled",a);a&&(this.G||(sw(this.context.logger,11),this.G=!0),C(this.A,function(a){a.kq||(a.kq=!0,tw(this.context.logger,11,a.card.ib))},this));this.context.Z.experiments.Pl&&Kx(this)};function Ix(a){return a.j&&a.j.card||a.A[0]&&a.A[0].card}
function Kx(a){var b=a.context.Z.Jj;if(b){var c=360*ww,b=Lc(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!==ch(a.C)&&wg(a.C,"font-size",c+"px")}}function Hx(a,b){var c;if(a.context.Z.experiments.Pl){c={};var d=b?a.H:ch(a.C);d&&(c["a-fs"]=d)}return c}f.Ce=function(a,b,c,d,e,g){var h=Hx(this,!0);h&&"a-fs"in h&&(d+="&a-fs="+h["a-fs"]);return Dx.J.Ce.call(this,a,b,c,d,e,g)};var Lx=/#(.)(.)(.)/;function Mx(a){if(!Nx.test(a))throw Error("'"+a+"' is not a valid hex color");4==a.length&&(a=a.replace(Lx,"#$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 Nx=/^#(?:[0-9a-f]{3}){1,2}$/i;function Ox(a,b,c,d,e){Mv.call(this,b,c,d,e);this.element=a}z(Ox,Mv);Ox.prototype.B=u;Ox.prototype.km=function(){this.B();Ox.J.km.call(this)};Ox.prototype.Lg=function(){this.B();Ox.J.Lg.call(this)};Ox.prototype.Oi=function(){this.B();Ox.J.Oi.call(this)};function Px(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Ox.apply(this,arguments)}z(Px,Ox);
Px.prototype.B=function(){this.element.style.left=Math.round(this.o[0])+"px";this.element.style.top=Math.round(this.o[1])+"px"};function Qx(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");Ox.apply(this,arguments)}z(Qx,Ox);Qx.prototype.B=function(){this.element.style.width=Math.round(this.o[0])+"px";this.element.style.height=Math.round(this.o[1])+"px"};function Rx(a,b,c){uw.call(this,a,b);this.annotation=c;this.isActive=!1}z(Rx,uw);Rx.prototype.rj=function(){Rx.J.rj.call(this);var a=this.annotation.data;"start_ms"in a&&"end_ms"in a&&vw(this,this.annotation.data.start_ms,this.annotation.data.end_ms,this.annotation.id,this.show,this.hide)};function Sx(a,b,c){Rx.call(this,a,b,c);this.j=null;this.o=!1;this.qi=null;this.gd=!1;this.k=0}z(Sx,Rx);
function Tx(a){N(a.N(),"iv-branding");a.context.Z.experiments.Ql||N(a.N(),"iv-branding-legacy");var b=a.annotation.data;a.k=b.image_width;a.j=H("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=H("div","branding-img-container",a.j);a.N().appendChild(c);var d=H("div","iv-branding-context-name");Ud(d,b.channel_name);var e=H("div","iv-branding-context-subscribe");a.annotation.o?e.innerHTML=a.annotation.o:b.num_subscribers&&
Ud(e,b.num_subscribers);c=H("div","iv-branding-context-subscribe-caret");d=H("div",["branding-context-container-inner","iv-view-target"],c,d,e);e=H("div","branding-context-container-outer",d);wg(e,"right",a.k+"px");a.N().appendChild(e);a.sj(a.N(),Ux(a.annotation),a.annotation.id,a.annotation.ib);a.qi=new Bv(ra(function(a){var b=Pg(a.parentElement);(new Qx(a.parentElement,[b.width,b.height],[0,0],200,Pv)).play();this.gd=!1},d),500,a);Av(a.context.j,a.N(),"mouseover",ra(function(a,b,c){this.qi.stop();
if(!this.gd){var d=Pg(a);Ng(a,d.width);c=Math.min(d.height,c);var e=Math.round(10);c=this.context.Z.experiments.Ql?d.height-Math.max(c/2+e,20):Math.max(c/2-e,0);Cg(b,d.width,c);this.gd=!0;b=9;d=Pg(a);c=Pg(a.parentElement);(new Qx(a.parentElement,[c.width,c.height],[d.width+b,d.height],200,Pv)).play()}},d,c,b.image_height),"iv-view-target",a);Av(a.context.j,a.N(),"mouseout",x(a.qi.start,a.qi),"iv-view-target",a)}
Sx.prototype.show=function(){if(!this.isActive){Sx.J.show.call(this);this.o||(Tx(this),this.o=!0);mw(this.context.logger,this.annotation.ib);Dw(this.N());this.isActive=!0;var a=this.j,b,c=Rg(a).width,d=ha(void 0)?void 0:c;b=b||0;Cg(a,d);b=new Px(a,[d,a.offsetTop],[d-c-b,a.offsetTop],200,Pv);qm(b,"begin",ra(Dw,a));b.play()}};Sx.prototype.hide=function(){this.isActive&&(Ew(this.N()),this.isActive=!1)};function Vx(a,b,c,d,e,g){this.j=a;this.Z=b;this.o=c;this.logger=d;this.k=e;this.Wa=g};function Wx(a){this.value=a};function Xx(a,b,c,d){this.type=a;this.trigger=b;this.url=c;this.duration=d}var Yx={CLOSE:"close",iJ:"openUrl",PAUSE:"pause",aw:"subscribe"},Zx={CLICK:"click",CLOSE:"close",YH:"hidden",EJ:"rollOut",Vv:"rollOver",Yv:"shown"};function $x(a){if(!a)return null;var b=Vv(a.type,Yx),c=Vv(a.trigger,Zx),d=ew(Rv(a.url));Rv(a.subscribeData);(a=Rv(a.duration))?(a=Zv(a.value),a=new Wx(a)):a=null;return b?new Xx(b,c,d,a):null};function ay(a,b,c,d,e,g,h,k,l,p,t,w,J,la){this.B=a;this.A=b;this.C=c;this.D=d;this.k=e;this.H=g;this.o=h;this.textAlign=k;this.I=l;this.F=p;this.G=t;this.effects=w;this.j=J;this.K=la}
function by(a){if(!a)return null;var b=Tv(a.fgColor,"#1A1A1A"),c=Tv(a.bgColor,"#FFF"),d=Tv(a.borderColor,"#000"),e=Yv(a.borderWidth,10,0,5,!1,0),g=Yv(a.bgAlpha,10,0,1,!1,.8);Yv(a.borderAlpha,10,0,1,!1,.2);Yv(a.gloss,16,0,255,!1,0);var h=Tv(a.highlightFontColor,"#F2F2F2"),k=Yv(a.highlightWidth,10,0,5,!1,3),l=Uv(a.textAlign),p=Yv(a.textSize,10,3.3,30.1,!0,3.6107),t=Uv(a.fontWeight),w=aw(a.padding),J=bw(a.effects),la=Yv(a.cornerRadius,10,0,10,!0,0);var Y=Rv(a.gradient);if(Y){a=Yv(Y.x1,10,0,100,!0,0);
var da=Yv(Y.y1,10,0,100,!0,0),pa=Yv(Y.x2,10,0,100,!0,100),Me=Yv(Y.y2,10,0,100,!0,100),he=Tv(Y.color1,"#FFF"),ys=Tv(Y.color2,"#000"),Iz=Yv(Y.opacity1,10,0,100,!0,100),Y=Yv(Y.opacity2,10,0,100,!0,0);a=new cy(a,da,pa,Me,he,ys,Iz,Y)}else a=null;return new ay(b,c,d,e,g,h,k,l,p,t,w,J,la,a)}function cy(a,b,c,d,e,g,h,k){this.B=a;this.D=b;this.C=c;this.F=d;this.j=e;this.k=g;this.o=h;this.A=k};function dy(a,b){this.j=a;this.videoId=b};var ey={RK:"xx",SK:"xy",VK:"yx",WK:"yy"};function fy(a,b,c){var d=a.D,e=a.F,g=a.j?a.j:"xy",h=gy(c,a.A,g);a=hy(c,a.o,g);var g=640*b.width*h/100,k=360*b.height*a/100;return new mg(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 gy(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;return(d+((c?a.width:a.height)-d)*b)/d}function hy(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;return(d+((c?a.height:a.width)-d)*b)/d};function iy(a,b,c,d,e,g,h,k,l,p,t){this.x=a;this.y=b;this.B=c;this.h=d;this.k=e;this.C=g;this.D=h;this.F=k;this.A=l;this.o=p;this.j=t}function jy(a,b){if(!a)return null;var c=Xv(a.x,0),d=Xv(a.y,0),e=Xv(a.w,0),g=Xv(a.h,0),h=Zv(a.t),k=Xv(a.scaleSlope,1);return b(c,d,e,g,h,Xv(a.d,0),Xv(a.px,0),Xv(a.py,0),Xv(a.scaleSlopeX,k),Xv(a.scaleSlopeY,k),Vv(a.scaleDimension,ey,"xy"))}
function ky(a,b,c){c=c?ky(c,b):null;a=fy(a,new mg(a.x,a.y,a.B,a.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);c=a.clone();b&&!b.contains(a)&&(a.width<b.width?c.left=Lc(a.left,b.left,b.left+b.width-a.width):(c.left=b.left,c.width=b.width),a.height<b.height?c.top=Lc(a.top,b.top,b.top+b.height-a.height):(c.top=b.top,c.height=b.height));return c}function ly(a){return a?jy(a,function(a,c,d,e,g,h,k,l,p,t,w){return new iy(a,c,d,e,g,h,k,l,p,t,w)}):null};function my(a,b,c,d,e,g,h,k,l,p,t,w,J){iy.call(this,a,b,c,d,e,k,l,p,t,w,J);this.G=g;this.H=h}z(my,iy);function ny(a){if(!a)return null;var b=Xv(a.sx,0),c=Xv(a.sy,0);return jy(a,function(a,e,g,h,k,l,p,t,w,J,la){return new my(a,e,g,h,k,b,c,l,p,t,w,J,la)})};function oy(a,b,c,d){this.type=a;this.k=b;this.j=c;this.o=d}var py={Du:"anchored",yJ:"rect",MJ:"shapeless"};function qy(a){if(!a)return null;var b=Vv(a.type,py,"rect"),c=$v(a.rectRegion,ly),d=$v(a.anchoredRegion,ny);a=$v(a.shapelessRegion,ly);return new oy(b,c,d,a)}function ry(a){return a.k&&a.k.length?a.k[0]:a.j&&a.j.length?a.j[0]:a.o&&a.o.length?a.o[0]:null};function sy(a,b){this.k=a;this.j=b};function ty(a,b){this.state=a;this.j=b}var uy={CLOSED:"closed",mJ:"playerControlShow",Vv:"rollOver",Yv:"shown"};function vy(a){if(!a)return null;var b=Vv(a.state,uy);a=Sv(a.ref);return b?new ty(b,a):null};function wy(a,b,c,d){this.j=a||[];this.o=b||[];this.A=c;this.k=d;this.value=!1}function xy(a){if(!a)return null;var b=$v(a.condition,vy),c=$v(a.notCondition,vy),d=Wv(a.show_delay,!1);a=Wv(a.hide_delay,!1);return b||c?new wy(b,c,d,a):null}function yy(a,b,c){C(a.j,ra(b,!1),c);C(a.o,ra(b,!0),c)};function zy(a,b,c,d,e,g,h,k,l,p,t,w,J,la,Y,da){this.id=a;this.author=b;this.type=c;this.style=d;this.C=e;this.k=g;this.B=h||[];this.F=k||[];this.j=l;this.G=p;this.A=t;this.D=w;this.o=la;this.data=Y;this.ib=da}
var Ay={Du:"anchored",Iu:"branding",AH:"channel",GH:"cta",gI:"highlightText",xI:"label",oJ:"playlist",pJ:"popup",UJ:"speech",aw:"subscribe",jK:"title",VIDEO:"video",LK:"vote",PK:"website"},By={Iu:"branding",rH:"card",fI:"highlight",Xn:"image",MARKER:"marker",PAUSE:"pause",uJ:"promotion",lo:"survey",TEXT:"text",QK:"widget"},Cy={HK:"video_relative",nJ:"player_relative"};
function Dy(a){if(!a)return null;var b=Sv(a.id),c=Sv(a.author),d=Vv(a.type,By),e=Vv(a.style,Ay),g=Uv(Rv(a.TEXT)),h=Uv(a.data),h=0!=h.length?dg(h):{},k;var l=Rv(a.segment);l?(Sv(l.timeRelative),k=Sv(l.spaceRelative),k=(l=$v(l.movingRegion,qy))?new sy(k,l):null):k=null;var l=$v(a.action,$x),p=$v(a.trigger,xy),t=by(Rv(a.appearance));t||(t=by({}));var w=Vv(a.coordinate_system,Cy,"video_relative"),J;J=(J=Rv(a.image_source))?new dy(Uv(J.standard_url),Uv(J.video_id)):null;var la=Wv(a.closeable,!0),Y=Uv(a.html_blob);
a=Uv(a.log_data);return b&&d?new zy(b,c,d,e,g,k,l,p,t,w,J,la,0,Y,h,a):null}function Ux(a){return(a=Ey(a,function(a){return"openUrl"==a.type&&null!=a.url}))?a.url:null}zy.prototype.showLinkIcon=function(){return Fy(this,function(a){return null!=a.url&&a.url.showLinkIcon})};function Gy(a){return Fy(a,function(a){return"click"==a.trigger})}function Fy(a,b){return ib(a.B,b,void 0)}function Hy(a,b,c){C(a.B,b,c)}function Ey(a,b){return E(a.B,b,void 0)}function Iy(a,b,c){C(a.F,b,c)}
function Jy(a,b){D(a.F,b,void 0)}function Ky(a){return(a=Ly(a))?ry(a):null}function Ly(a){a.k?(a=a.k,a=a.j.length?a.j[0]:null):a=null;return a}function My(a,b){var c=Ky(a);return c&&b?hy(b,c.o,c.j?c.j:"xy"):1};function Ny(a,b,c){Rx.call(this,a,b,c);this.A=this.k=this.B=!1;this.o=5E3;this.j=null;this.bf=H("div","iv-promo-contents")}z(Ny,Rx);
function Oy(a){var b=a.annotation.data;a.o=b.collapse_delay_ms||a.o;var c=["iv-promo","iv-promo-inactive"],d;if(b.image_url){d=H("div","iv-promo-img");var e=H("img",{src:b.image_url,"class":"iv-click-target"});d.appendChild(e);b.video_duration&&!b.is_live?(e=H("span",["iv-promo-video-duration","iv-click-target"],b.video_duration),d.appendChild(e)):b.playlist_length&&(e=H("span",["iv-promo-playlist-length","iv-click-target"],b.playlist_length.toString()),d.appendChild(e))}var e=H("div","iv-promo-txt"),
g,h,k;switch(a.annotation.style){case "cta":case "website":g=H("p","iv-click-target",H("strong",null,b.text_line_1));h=H("p",["iv-promo-link","iv-click-target"],b.text_line_2);N(e,"iv-click-target");break;case "playlist":case "video":g=H("p","iv-click-target",b.text_line_1);h=H("p","iv-click-target",H("strong",null,b.text_line_2));b.is_live&&(g=h,h=H("span",["yt-badge","iv-promo-badge-live","iv-click-target"],Of("YTP_LIVE_NOW")));N(e,"iv-click-target");c.push("iv-promo-video");break;case "vote":g=
H("p",null,H("strong",null,b.text_line_1));h=H("p",null,b.text_line_2);k=H("div","iv-promo-button-container");var l=H("button","iv-promo-button",H("span","iv-promo-button-content",b.button_text));a.context.j.listen(l,"click",function(a){a.stopPropagation();qw(this.context.logger,this.annotation.ib,null,{contest_vote:"1"},(b.tracking||{}).vote);var c=this.annotation.data;a=wd("iv-promo-txt",this.bf);var d=wd("iv-promo-button-container",this.bf),e=H("div",["iv-promo-txt","iv-click-target"]),g=H("p",
"iv-click-target",H("strong",null,c.text_line_3)),c=H("p","iv-click-target",c.text_line_4);Jd(e,g,c);Ld(d);Md(e,a);gh(this.N(),"iv-promo-with-button");this.sj(this.bf,Ux(this.annotation),this.annotation.id,this.annotation.ib)},a);k.appendChild(l);c.push("iv-promo-with-button")}g&&e.appendChild(g);h&&e.appendChild(h);a.bf.appendChild(e);k&&a.bf.appendChild(k);g=H("div","iv-promo-actions");h=H("div","iv-promo-expand");g.appendChild(h);a.context.j.listen(a.N(),"mouseover",a.by,a);a.context.j.listen(a.N(),
"touchend",ra(a.xp,5E3),a);a.context.j.listen(a.N(),"mouseout",a.ay,a);h=H("div","iv-promo-close");g.appendChild(h);Py(a,x(function(){this.hide()},a),h);fh(a.N(),c);d&&Id(a.N(),d);Id(a.N(),a.bf);Id(a.N(),g);a.sj(a.N(),Ux(a.annotation),a.annotation.id,a.annotation.ib)}f=Ny.prototype;
f.show=function(){this.isActive||(Ny.J.show.call(this),this.B||(Oy(this),this.B=!0),Dw(this.N()),this.annotation&&this.annotation.ib&&mw(this.context.logger,this.annotation.ib),gh(this.N(),"iv-promo-inactive"),this.isActive=!0,this.j&&(gn(this.j),this.j=null),Qy(this),Ry(this,this.o))};f.hide=function(){this.isActive&&(N(this.N(),"iv-promo-inactive"),this.isActive=!1)};f.Ce=function(a,b,c,d,e,g){return this.k?!0:Ny.J.Ce.call(this,a,b,c,d,e,g)};
f.xp=function(a,b){b.stopPropagation();Qy(this);Ry(this,a)};f.by=function(a){this.A=!0;this.xp(500,a)};f.ay=function(){this.A=!1;Sy(this)};function Sy(a){a.k||a.A||a.j||(N(a.N(),"iv-promo-collapsed"),a.k=!0)}function Qy(a){a.k&&(gh(a.N(),"iv-promo-collapsed"),a.k=!1)}function Ry(a,b){a.j||(a.j=fn(function(){this.j&&(gn(this.j),this.j=null);Sy(this)},b,a))}
function Py(a,b,c){function d(a){rw(this.context.logger,this.annotation.ib);b(a);a.stopPropagation()}a.context.j.listen(c,"click",x(d,a));a.context.j.listen(c,"touchend",x(d,a))};var Ty={EI:1,FI:2,GI:3};function Uy(a,b,c){this.j={};this.k=!1;this.B="ivTrigger:"+a;this.o=c;yy(b,function(a,b){var c=Vy(b.state,b.j);this.o.subscribe(c,x(this.A,this,c,a));this.j[c]=a},this)}Uy.prototype.A=function(a,b,c,d){this.j[a]=b?!c:c;a=Mb(this.j,function(a){return a});this.k!=a&&(this.k=a,this.o.publish(this.B,a,d))};function Vy(a,b){var c="ivTriggerCondition:"+a;return b?c+":"+b:c};function Wy(a,b,c){this.o=a;this.annotation=b;this.j=c;this.k=null;this.B=this.isVisible=!1;Xy(b,a)}function Xy(a,b){Jy(a,function(c){return new Uy(a.id,c,b)})}Wy.prototype.hide=function(){this.isVisible=!1;this.o.unsubscribe("onResize",this.A,this);this.j&&this.j.hide()};Wy.prototype.show=function(){this.isVisible=!0;this.j&&this.j.show();this.o.subscribe("onResize",this.A,this)};
Wy.prototype.destroy=function(){this.o.unsubscribe("onResize",this.A,this);if(this.j){var a=this.j;a.F.removeAll();a.k&&Ld(a.k);a.o&&a.o.N()&&Ld(a.o.N())}Yy(this)};function Yy(a){a.k&&(a.k.stop(),a.k=null)}Wy.prototype.A=function(){this.j&&Zy(this.j)};function $y(){};function az(a,b,c,d,e,g,h,k){this.B=a;this.D=b;this.C=c;this.F=d;this.j=e;this.k=g;this.o=n(h)?h:null;this.A=n(k)?k:null}z(az,$y);function bz(){this.ia=[];this.ma=[];this.Vc=[]}bz.prototype.Ze=null;bz.prototype.Lc=null;bz.prototype.uj=!0;var cz=[2,2,6,6,0];f=bz.prototype;f.clear=function(){this.ia.length=0;this.ma.length=0;this.Vc.length=0;delete this.Ze;delete this.Lc;delete this.uj;return this};function dz(a,b,c){0==cb(a.ia)?a.Vc.length-=2:(a.ia.push(0),a.ma.push(1));a.Vc.push(b,c);a.Lc=a.Ze=[b,c]}
f.Ya=function(a){var b=cb(this.ia);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.ia.push(1),this.ma.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Vc.push(c,d)}this.ma[this.ma.length-1]+=b/2;this.Lc=[c,d]};f.close=function(){var a=cb(this.ia);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.ia.push(4),this.ma.push(1),this.Lc=this.Ze);return this};
function ez(a,b,c,d,e){var g=a.Lc[0]-b*Math.cos(d*Math.PI/180)+b*Math.cos((d+e)*Math.PI/180),h=a.Lc[1]-c*Math.sin(d*Math.PI/180)+c*Math.sin((d+e)*Math.PI/180);a.ia.push(3);a.ma.push(1);a.Vc.push(b,c,d,e,g,h);a.uj=!1;a.Lc=[g,h]}function fz(a,b){for(var c=a.Vc,d=0,e=0,g=a.ia.length;e<g;e++){var h=a.ia[e],k=cz[h]*a.ma[e];b(h,c.slice(d,d+k));d+=k}}
f.clone=function(){var a=new this.constructor;a.ia=this.ia.concat();a.ma=this.ma.concat();a.Vc=this.Vc.concat();a.Ze=this.Ze&&this.Ze.concat();a.Lc=this.Lc&&this.Lc.concat();a.uj=this.uj;return a};f.isEmpty=function(){return 0==this.ia.length};function gz(a,b){this.G=a;this.H=null==b?1:b}z(gz,$y);function hz(a,b){this.j=a;this.k=b};function iz(){}ba(iz);iz.prototype.j=0;function jz(a){U.call(this);this.K=a||pd();this.xa=null;this.Ae=!1;this.j=null;this.B=void 0;this.C=this.F=this.G=null}z(jz,U);f=jz.prototype;f.Qy=iz.getInstance();f.getId=function(){return this.xa||(this.xa=":"+(this.Qy.j++).toString(36))};f.N=function(){return this.j};f.pj=function(a){if(this.G&&this.G!=a)throw Error("Method not supported");jz.J.pj.call(this,a)};f.wp=function(){this.j=this.K.createElement("div")};
f.og=function(){kz(this,function(a){a.Ae&&a.og()});this.B&&this.B.removeAll();this.Ae=!1};f.L=function(){this.Ae&&this.og();this.B&&(this.B.dispose(),delete this.B);kz(this,function(a){a.dispose()});this.j&&Ld(this.j);this.G=this.j=this.C=this.F=null;jz.J.L.call(this)};f.se=function(){return this.j};function kz(a,b){a.F&&C(a.F,b,void 0)}
f.removeChild=function(a,b){if(a){var c=v(a)?a:a.getId();a=this.C&&c?$b(this.C,c)||null:null;if(c&&a){Zb(this.C,c);qb(this.F,a);b&&(a.og(),a.j&&Ld(a.j));c=a;if(null==c)throw Error("Unable to set parent component");c.G=null;jz.J.pj.call(c,null)}}if(!a)throw Error("Child is not in parent component");return a};function lz(a,b,c,d,e){jz.call(this,e);this.width=a;this.height=b;this.A=c||null;this.H=d||null}z(lz,jz);lz.prototype.o=null;lz.prototype.sg=function(){return this.Ae?Og(this.N()):ha(this.width)&&ha(this.height)?new G(this.width,this.height):null};function mz(a){var b=a.sg();return b?b.width/(a.A?new G(a.A,a.H):a.sg()).width:0}lz.prototype.resume=function(){};function nz(a,b){U.call(this);this.ug=a;this.jl=b;this[em]=!1}z(nz,U);f=nz.prototype;f.jl=null;f.ug=null;f.N=function(){return this.ug};f.addEventListener=function(a,b,c,d){qm(this.ug,a,b,c,d)};f.removeEventListener=function(a,b,c,d){ym(this.ug,a,b,c,d)};f.L=function(){nz.J.L.call(this);var a=this.ug;if(a)if(fm(a))a.removeAllListeners(void 0);else if(a=tm(a)){var b=0,c;for(c in a.j)for(var d=a.j[c].concat(),e=0;e<d.length;++e)zm(d[e])&&++b}};function oz(a,b,c,d){nz.call(this,a,b);a=this.jl;b=this.N();c?(b.setAttribute("stroke",c.k),b.setAttribute("stroke-opacity",1),c=c.j,v(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",parseFloat(c)/mz(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");c=this.jl;a=this.N();if(d instanceof gz)a.setAttribute("fill",d.G),a.setAttribute("fill-opacity",d.H);else if(d instanceof az){b="lg-"+d.B+"-"+d.D+"-"+d.C+"-"+d.F+"-"+d.j+"-"+d.k;var e=pz(c,b);if(!e){var e=qz(c,"linearGradient",
{x1:d.B,y1:d.D,x2:d.C,y2:d.F,gradientUnits:"userSpaceOnUse"}),g="stop-color:"+d.j;ha(d.o)&&(g+=";stop-opacity:"+d.o);g=qz(c,"stop",{offset:"0%",style:g});e.appendChild(g);g="stop-color:"+d.k;ha(d.A)&&(g+=";stop-opacity:"+d.A);d=qz(c,"stop",{offset:"100%",style:g});e.appendChild(d);e=rz(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")}z(oz,nz);function sz(a,b){nz.call(this,a,b)}z(sz,nz);function tz(a,b){nz.call(this,a,b)}z(tz,nz);function uz(a,b,c,d){oz.call(this,a,b,c,d)}z(uz,oz);function vz(a,b){nz.call(this,a,b)}z(vz,sz);vz.prototype.clear=function(){Kd(this.N())};function wz(a,b,c,d){oz.call(this,a,b,c,d)}z(wz,uz);function xz(a,b){nz.call(this,a,b)}z(xz,tz);function yz(a,b,c,d,e){lz.call(this,a,b,c,d,e);this.k={};this.M=Xc&&!hd(526);this.I=new ln(this)}var zz;z(yz,lz);var Az=0;function qz(a,b,c){a=a.K.j.createElementNS("http://www.w3.org/2000/svg",b);if(c)for(var d in c)a.setAttribute(d,c[d]);return a}f=yz.prototype;
f.wp=function(){var a=qz(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=qz(this,"g");this.D=qz(this,"defs");this.o=new vz(b,this);a.appendChild(this.D);a.appendChild(b);this.j=a;this.A&&(this.N().setAttribute("preserveAspectRatio","none"),this.M?this.Bs():this.N().setAttribute("viewBox","0 0 "+(this.A?this.A+" "+this.H:"")))};
f.Bs=function(){if(this.Ae){var a=this.sg();if(0==a.width)this.N().style.visibility="hidden";else{this.N().style.visibility="";var b=a.width/this.A,a=a.height/this.H;this.o.N().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
f.sg=function(){if(!Wc)return this.Ae?Og(this.N()):yz.J.sg.call(this);var a=this.width,b=this.height,c=v(a)&&-1!=a.indexOf("%"),d=v(b)&&-1!=b.indexOf("%");if(!this.Ae&&(c||d))return null;var e,g;c&&(e=this.N().parentNode,g=Pg(e),a=parseFloat(a)*g.width/100);d&&(e=e||this.N().parentNode,g=g||Pg(e),b=parseFloat(b)*g.height/100);return new G(a,b)};f.clear=function(){this.o.clear();Kd(this.D);this.k={}};function Bz(a,b,c,d){b=qz(a,"path",{d:Cz(b)});c=new wz(b,a,c,d);a.o.N().appendChild(c.N())}
function Cz(a){var b=[];fz(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 rz(a,b,c){if(b in a.k)return a.k[b];var d="_svgdef_"+Az++;c.setAttribute("id",d);a.k[b]=d;a.D.appendChild(c);return d}
function pz(a,b){return b in a.k?a.k[b]:null}f.og=function(){yz.J.og.call(this);this.M&&this.I.Fa(Dz(),"tick",this.Bs)};f.L=function(){delete this.k;delete this.D;delete this.o;this.I.dispose();delete this.I;yz.J.L.call(this)};function Dz(){zz||(zz=new dn(400),zz.start());return zz};function Ez(a,b,c){this.j=a;this.k=0;this.D=b;this.F=c||70;this.o=!1}Ez.prototype.start=function(a){this.C=y();this.k=a;this.B=this.C+this.k;this.o=!0;Dw(this.j);Lf(this.A);this.A=Kf(x(this.G,this),this.F)};Ez.prototype.stop=function(){this.o=!1;Ew(this.j);this.A&&Lf(this.A)};
Ez.prototype.G=function(){if(this.o){var a=y(),b;b=0==this.k||a>=this.B?0:1-(a-this.C)/this.k;var c=wd("countdowntimer-diminishing-pieslice",this.j),d=rh("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 bz,g=d/2-5;dz(e,d/2,d/2);e.Ya(d/2,5);ez(e,g,g,-90,360*-b);e.Ya(d/2,d/2);e.close();c.setAttribute("d",Cz(e));a>=this.B&&(this.stop(),this.D&&this.D())}};function Fz(){Q.call(this);this.element=this.label=null;this.priority=0;this.A=this.B=!1;this.k=null}z(Fz,Q);Fz.prototype.listen=function(a,b,c){return this.element.listen(a,b,c||this)};Fz.prototype.Fa=function(a){this.element.Fa(a)};function Gz(a,b,c,d){X.call(this,["div",{className:"ytp-button","aria-disabled":"{{disabled}}",tabindex:"{{tabindex}}"},"{{content}}"]);this.da="inline-block";this.H=a;this.K=this.o=this.B=null;this.A=!1;this.listen("click",this.aG);this.listen("keypress",this.bG);this.H.cg(this.element,x(this.nx,this));gv(this,"button");b&&Hz(this,b);c&&this.bb(c);d&&(this.o=d)}z(Gz,X);function Hz(a,b){b&&""!=b&&(a.B&&gh(a.element,a.B),a.B=b,N(a.element,b))}function Jz(a,b){a.K=b;cv(a.template,"tabindex",b)}f=Gz.prototype;
f.nx=function(){return this.A?null:this.o?this.o:null};f.enable=function(){this.A=!1;this.template.update({disabled:null,tabindex:this.K});gh(this.element,"ytp-disabled")};f.disable=function(){this.A=!0;this.template.update({disabled:"true",tabindex:null});N(this.element,"ytp-disabled")};f.aG=function(a){this.A&&(a.stopImmediatePropagation(),a.preventDefault())};f.bG=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Ub("click")};
f.L=function(){this.H.Cm(this.element);this.H=null;Gz.J.L.call(this)};function Kz(a,b,c){X.call(this,["div","ytp-segmented-control"]);this.o=a;this.k=-1;this.j=[];if(null!=b)for(wi(this.j),this.j=[],a=0;a<b.length;a++){var d=new Gz(this.o);gv(d,"radio");this.j.push(d);c?d.pa(["div",b[a]]):d.pa(b[a]);0!=a&&N(d.N(),"ytp-segmented-control-other");Lz(d,a==this.k);d.listen("click",ra(this.OB,a),this);d.Y(this.element)}gv(this,"radiogroup")}z(Kz,X);f=Kz.prototype;
f.Y=function(a,b){Kz.J.Y.call(this,a,b);for(var c=0,d=0;d<this.j.length;d++)c=Math.max(c,Og(this.j[d].N()).width);if(c)for(d=0;d<this.j.length;d++)Ng(this.j[d].N(),c)};f.Da=function(a){this.k=a;for(var b=0;b<this.j.length;b++)Lz(this.j[b],b==a)};f.getSelected=function(){return this.k};function Mz(a,b){for(var c=0;c<a.j.length;c++)Jz(a.j[c],b)}
function Lz(a,b){var c=a.N();b?(gh(c,"ytp-segmented-control-deselected"),N(c,"ytp-segmented-control-selected"),c.setAttribute("aria-checked",!0)):(gh(c,"ytp-segmented-control-selected"),N(c,"ytp-segmented-control-deselected"),c.setAttribute("aria-checked",!1))}f.OB=function(a){a!=this.k&&(this.Da(a),this.Ub("change"))};f.L=function(){wi(this.j);this.j=[];Kz.J.L.call(this)};function Nz(a){Fz.call(this);this.label=Z(0,"YTP_ANNOTATIONS");this.element=new Kz(a,[Z(0,"YTP_OFF"),Z(0,"YTP_ON")]);R(this,this.element);this.element.bb(this.label);Mz(this.element,2200);this.priority=3;this.Da(0)}z(Nz,Fz);Nz.prototype.getSelected=function(){return this.element.getSelected()};Nz.prototype.Da=function(a){this.element.Da(a)};function Oz(a,b){this.start=a<b?a:b;this.end=a<b?b:a}Oz.prototype.clone=function(){return new Oz(this.start,this.end)};function Pz(){this.j=!1;this.B=this.o=null}function Qz(a,b,c){a.o?(Mg(a.o.N(),b,c),a.o.clear()):(b=new yz(b,c,void 0,void 0,void 0),a.o=b,a.o.wp(),a.B=H("div"),b=a.o.N(),a.B.appendChild(b));return a.o}Pz.prototype.N=function(){return this.B};Pz.prototype.k=function(){};function Rz(a,b,c){var d=document.createElementNS("http://www.w3.org/2000/svg",a);b&&Jb(b,function(a,b){d.setAttribute(b,a)});for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d}function Sz(a,b){var c;c=":"+(iz.getInstance().j++).toString(36);b.setAttribute("result",c);a.appendChild(b);return c};function Tz(a,b){var c=Sz(a,Rz("feGaussianBlur",{"in":b,stdDeviation:"1.8"})),c=Sz(a,Rz("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},Rz("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"}))),c=Sz(a,Rz("feComposite",{"in":c,in2:b,operator:"in"}));return Sz(a,Rz("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))}
function Uz(a,b){var c=Sz(a,Rz("feOffset",{"in":b,dx:"-7",dy:"-7"})),c=Sz(a,Rz("feGaussianBlur",{"in":c,stdDeviation:"3"})),c=Sz(a,Rz("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=Sz(a,Rz("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=Sz(a,Rz("feGaussianBlur",{"in":d,stdDeviation:"1"})),c=Sz(a,Rz("feComposite",{operator:"out","in":c,in2:d}));return Sz(a,Rz("feComposite",{operator:"over","in":b,in2:c}))}
function Vz(a,b){return b}function Wz(a){var b=Rz("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";C(a,function(a){t:{switch(a){case "bevel":a=Tz;break t;case "dropshadow":a=Uz;break t}a=Vz}c=a(b,c)});return b}function Xz(a){a=gb(a,function(a){return a in Yz});Bb(a,function(a,c){return Yz[a]-Yz[c]});return a}function Zz(a){return E(a,function(a){return"dropshadow"==a})?new lg(0,7,7,0):new lg(0,0,0,0)}var Yz={bevel:1,dropshadow:2};function $z(a,b,c,d,e){b=aA(b,c,d?d.j/2+1:0);Bz(a,b,d,e)}function aA(a,b,c){var d=new bz;dz(d,a.left+b+c,a.top+c);d.Ya(a.left+a.width-b-c,a.top+c);ez(d,b,b,-90,90);d.Ya(a.left+a.width-c,a.top+a.height-b-c);ez(d,b,b,0,90);d.Ya(a.left+b+c,a.top+a.height-c);ez(d,b,b,90,90);d.Ya(a.left+c,a.top+b+c);ez(d,b,b,180,90);d.close();return d}function bA(a,b,c,d){var e=a.K;e?a=new az(e.B*b/100,e.D*c/100,e.C*b/100,e.F*c/100,e.j,e.k,e.o,e.A):(b=cA(d,a.k),a=new gz(a.A,b));return a}
function cA(a,b){return a?Math.max(b,.9):b}function dA(a,b){var c=ng(a),d=Zz(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 og(c)}function eA(a,b,c){if(c.length&&(b=vd("g",void 0,b),b.length)){var d=Xz(c);if(d){c="effects:"+(d?d.join("|"):"");var e=pz(a,c);e?a=e:(d=Wz(d),a=0<d.childNodes.length?rz(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}};function fA(){Pz.call(this);this.A=0}z(fA,Pz);
fA.prototype.k=function(a,b,c){var d=a.j,e=d.D,g=this.j&&Gy(a),e=(e+=g?1:0)?new hz(e,g?d.B:d.C):null;if(g=Ky(a)){var h=ky(g,b,c);if(!(0>=h.width||0>=h.height)){var k;if(k=(a=(a=Ly(a))&&a.j?a.j:null)&&a.length?a[0]:null){var l;c=c?ky(c,b):null;a=fy(k,new mg(k.G,k.H,k.B,k.h),b);c?(a.top+=c.top,a.left+=c.left):(a.top+=b.top,a.left+=b.left);l=new Mc(a.left,a.top);c=h.clone();a=new mg(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=dA(c,d.effects);a=Qz(this,c.width,c.height);var g=bA(d,c.width,c.height,this.j),h=new mg(h.left-c.left,h.top-c.top,h.width,h.height),t=new Mc(l.x-c.left,l.y-c.top);this.A=17*hy(b,k.o,k.j?k.j:"xy");b=d.j;k=e?e.j/2:0;l=gA(h,t);var p=this.C(h,b,t,l),w=t.x,t=t.y,J=h.width,la=h.height,Y=h.left,h=h.top,da=new bz;dz(da,Y+b+k,h+k);"t"==l&&(da.Ya(p.start,h+k),da.Ya(w,t),da.Ya(p.end,h+k));da.Ya(Y+J-b-k,h+k);ez(da,b,b,-90,90);"r"==l&&(da.Ya(Y+
J-k,p.start),da.Ya(w,t),da.Ya(Y+J-k,p.end));da.Ya(Y+J-k,h+la-b-k);ez(da,b,b,0,90);"b"==l&&(da.Ya(p.end,h+la-k),da.Ya(w,t),da.Ya(p.start,h+la-k));da.Ya(Y+b+k,h+la-k);ez(da,b,b,90,90);"l"==l&&(da.Ya(Y+k,p.end),da.Ya(w,t),da.Ya(Y+k,p.start));da.Ya(Y+k,h+b+k);ez(da,b,b,180,90);da.close();Bz(a,da,e,g);if(e=this.N())N(e,"annotation-shape"),N(e,"annotation-speech-shape"),Cg(e,c.left,c.top),Mg(e,c.width,c.height),eA(a,e,d.effects)}}}};
function gA(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"}fA.prototype.C=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=Lc(c-a/2,d+b,d+e-a-b);return new Oz(c,c+a)}return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new Oz(0,0)};function hA(){Pz.call(this)}z(hA,Pz);hA.prototype.k=function(a,b,c){var d=Ky(a);d&&(b=ky(d,b,c),0>=b.width||0>=b.height||(a=a.j,c=dA(b,a.effects),d=Qz(this,c.width,c.height),$z(d,new mg(0,0,b.width,b.height),a.j,new hz(!a.o&&this.j?1:a.o,a.A),new gz("#000",0)),b=this.N(),N(b,"annotation-shape"),Sg(b,cA(this.j,a.k)),Cg(b,c.left,c.top),Mg(b,c.width,c.height)))};function iA(a,b){return window.location.protocol+"//i1.ytimg.com/vi/"+escape(a)+"/"+(b||"hqdefault.jpg")};function jA(a,b,c){Pz.call(this);this.A=a||0;this.D=b||0;this.C=c||!1}z(jA,Pz);function kA(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 mg(e,g,c,d)}
jA.prototype.k=function(a,b,c){var d=ky(Ky(a),b,c);if(!(0>=d.width||0>=d.height)){var e=kA(d,this.D);e.left+=d.left;e.top+=d.top;b=a.j;c=dA(e,b.effects);var g=Qz(this,c.width,c.height),h=new gz("#000",0),e=kA(e,this.A);a=a.A?a.A.j?a.A.j:a.A.videoId?iA(a.A.videoId,"hqdefault.jpg"):"":"";e=qz(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 xz(e,g);g.o.N().appendChild(e.N());
if(a=this.N()){var k=cA(this.j,b.k);Sg(a,k);if(this.C&&0<b.o){var k=new hz(b.o,b.A),d=new mg(0,0,d.width,d.height),l;l=aA(d,b.j,k.j/2+1);var p=pz(g,"mask");if(p)l=p;else{var p=document.createElementNS("http://www.w3.org/2000/svg","mask"),t=document.createElementNS("http://www.w3.org/2000/svg","path");t.setAttribute("d",Cz(l));t.setAttribute("fill","#FFF");p.appendChild(t);l=rz(g,"mask",p)}e=e.N();l&&e.setAttribute("mask","url(#"+l+")");$z(g,d,b.j,k,h)}N(a,"annotation-shape");N(a,"annotation-image-shape");
Cg(a,c.left,c.top);Mg(a,c.width,c.height);eA(g,a,b.effects)}}};function lA(){Pz.call(this)}z(lA,Pz);lA.prototype.k=function(a,b,c){var d=Ky(a);if(d){var e=ky(d,b,c);if(!(0>=e.width||0>=e.height)){b=a.j;c=dA(e,b.effects);var d=Qz(this,c.width,c.height),g=b.D;a=this.j&&Gy(a);a=(g+=a?1:0)?new hz(g,a?b.B:b.C):null;g=new mg(0,0,e.width,e.height);e=bA(b,e.width,e.height,this.j);$z(d,g,b.j,a,e);if(a=this.N())N(a,"annotation-shape"),N(a,"annotation-popup-shape"),Cg(a,c.left,c.top),Mg(a,c.width,c.height),eA(d,a,b.effects)}}};function mA(){fA.call(this)}z(mA,fA);mA.prototype.C=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 Oz(c,c+a)}return"t"==d||"b"==d?e(this.A,c.x,a.left,a.width):"l"==d||"r"==d?e(this.A,c.y,a.top,a.height):new Oz(0,0)};function nA(a,b,c,d,e){this.j=a;this.H=b;this.D=c;this.K=d;this.I=e;this.F=new zv(this);this.G=this.o=this.B=this.A=this.C=this.k=null}function oA(a,b){var c=x(function(a,c,g){c=g?pA(this,c,x(g,this)):pA(this,c);this.F.listen(b,a,c)},a);c("mouseover","d",a.P);c("mouseout","c",a.M);c("click","a");c("touchend","a")}
function qA(a){if(a.j.D){var b;Fy(a.j,function(a){return"close"==a.type})?b=a.k:(a.B=H("div",["annotation-close-button","hid"]),jh(a.B,"annotation_id",a.j.id),a.k.appendChild(a.B),b=a.B);var c=function(a){a.stopPropagation()};a.F.listen(b,"click",pA(a,"b",c));a.F.listen(b,"touchend",pA(a,"b",c))}}
function pA(a,b,c){return x(function(a){if(this.I)c&&c(a);else if(a.target instanceof Element){var e=a.target;Ew(e);try{var g=document.elementFromPoint(a.clientX,a.clientY);if(ee(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{Dw(e)}}e=Rg(a.target);a=new Mc(a.clientX,a.clientY);"c"==b&&e.contains(a)||
this.K.publish(b,this.j)},a)}nA.prototype.P=function(){this.B&&Dw(this.B);this.A&&Sg(this.A,1);var a=rA(this);this.o&&(this.o.j=!0,Sg(this.k,sA(this)?1:0),a&&this.o.k(this.j,a,tA(this)))};nA.prototype.M=function(){this.B&&Ew(this.B);this.A&&Sg(this.A,0);var a=rA(this);this.o&&(this.o.j=!1,Sg(this.k,sA(this)?1:0),a&&this.o.k(this.j,a,tA(this)))};function tA(a){return a.G?Ky(a.G):null}
function Zy(a){if(a.k||a.o){var b=Ky(a.j);if(b){var c=rA(a),d=tA(a);if(a.k&&c){b=ky(b,c,d);Mg(a.k,b.width,b.height);Cg(a.k,b.left,b.top);var e=a.D.Dj;if(e){var g;g=(g=Ky(a.j))&&e?gy(e,g.A,g.j?g.j:"xy"):1;var e=My(a.j,e),h;h=a.j.j;h.G?h=h.G:(h="speech"==a.j.style?1.6:.8,h=new lg(h,h,h,h));h=new lg(360*h.top*e/100,640*h.right*g/100,360*h.bottom*e/100,640*h.left*g/100);a.A&&(h.right+=1.5*c.height/100);a.k.style.padding=h.top+"px "+h.right+"px "+h.bottom+"px "+h.left+"px";"label"==a.j.style&&a.C&&(a.C.style.padding=
a.k.style.padding);a.A&&(g=g/e*c.height*4.2/100,g=new G(g,g),Mg(a.A,g),"highlight"==a.j.type||"label"==a.j.style?(e=1.5*c.height/100,g=new Mc(b.width-g.width-e,b.height-g.height-e)):g=new Mc(b.width-g.width-3*c.height/100,(b.height-g.height)/2),Cg(a.A,g));a.B&&(g=9<=c.left+c.width-(b.left+b.width),e=9<=b.top-c.top,Cg(a.B,g&&e?new Mc(b.width-9,-9):g?new Mc(b.width-9,45<b.height?9:b.height-9):e?new Mc(45<b.width?b.width-9-18:-9,-9):b.width/c.width>b.height/c.height?new Mc(45<b.width?b.width-9-18:-9,
b.height-9):new Mc(-9,45<b.height?9:b.height-9)))}}a.o&&c&&a.o.k(a.j,c,d);if(a.k){c=a.k;d=a.j.j;c.style.color="highlightText"==a.j.style?d.H:d.B;c.style.fontSize=360*d.I*My(a.j,a.D.Dj)/100+"px";b=a.j.style;c.style.textAlign=d.textAlign?d.textAlign:"title"==b||"highlightText"==b?"center":"left";d.F&&(c.style.fontWeight=d.F);a=a.k;c=a.style.overflow;d=wd("annotation-link-icon",a);b=Cw(d);g=wd("annotation-close-button",a);e=Cw(g);d&&b&&Ew(d);g&&e&&Ew(g);var k=h="",l=wd("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=ch(a),t=p,w=5,J=Math.floor(p/2);J;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(w=t,t=Math.min(t+J,p)):t=Math.max(t-J,w),J=Math.floor(J/2),a.style.fontSize=t+"px";t!=w&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=w+"px")}a.style.overflow=c;l&&(l.style.overflow=h,l.style.position=
k);g&&e&&Dw(g);d&&b&&Dw(d)}}}}
nA.prototype.show=function(){var a=this.j.j,a=(a&&0==a.k||"title"==this.j.style||"highlightText"==this.j.style||"pause"==this.j.type?!1:!0)&&!this.o,b=!this.k,c="widget"==this.j.type;if(a){var d=rA(this);if(d){var e=null;"highlight"==this.j.type||"label"==this.j.style?e=new hA:"popup"==this.j.style?e=new lA:"anchored"==this.j.style?e=new fA:"speech"==this.j.style?e=new mA:"image"==this.j.type&&("video"==this.j.style?e=new jA(xw,ww,!0):"channel"==this.j.style&&(e=new jA));e&&(e.k(this.j,d,tA(this)),
this.o=e,d=e.N())&&(Ew(d),N(d,"annotation-type-"+this.j.type.toLowerCase()),this.H(d))}}if(b){d=["annotation","hid"];"highlightText"!=this.j.style||d.push("annotation-no-mouse");d.push("annotation-type-"+this.j.type.toLowerCase());this.k=H("div",d);this.j.C&&(this.C=H("div","inner-text"),"label"==this.j.style&&(N(this.C,"label-text"),this.C.style.backgroundColor=this.j.j.A),Ud(this.C,this.j.C),this.k.appendChild(this.C));jh(this.k,"annotation_id",this.j.id);this.H(this.k);oA(this,this.k);if(Gy(this.j)&&
"image"!=this.j.type&&this.j.showLinkIcon()){if(d=Ux(this.j))this.k.title=d.value?d.value:null;this.A=H("span","annotation-link-icon");this.k.appendChild(this.A)}qA(this);Gy(this.j)||(this.k.style.cursor="default")}c&&("subscribe"==this.j.style?wd("yt-uix-subscription-button",this.k)||(this.k.innerHTML=this.j.o):this.j.o&&(this.k.innerHTML=this.j.o));if(a||b){t:{a=this.j.k.j;if(a.length&&(a=ry(a[0]))){a=a.C;break t}a=0}this.k&&(this.k.style.zIndex=a);this.o&&this.o.N()&&(this.o.N().style.zIndex=a)}Dw(this.k);
Sg(this.k,sA(this)?1:0);Zy(this);this.o&&Dw(this.o.N())};nA.prototype.hide=function(){Ew(this.k);this.o&&Ew(this.o.N())};function sA(a){return"label"!=a.j.style||a.o.j}function rA(a){var b=a.D.Dj;return b?"player_relative"==a.j.G?(a=a.D.Jj)?new mg(-b.left,-b.top,a.width,a.height):null:new mg(0,0,b.width,b.height):null};function uA(a){Ds.call(this,a);this.Xj=!0;this.ua="iv-module";this.sc="iv";this.M=!1;this.T=!0;this.F=!1;this.A=0;this.k={};this.K={};this.H=null;this.D=new lw(this.P,a);a=vA;this.B=new Nz(Rs(this));R(this,this.B);this.B.listen("change",this.iF,this);this.subscribe("onHideControls",this.$A,this);this.subscribe("onShowControls",this.UB,this);this.subscribe("onStateChange",this.AB,this);this.subscribe("d",this.kF,this);this.subscribe("c",this.jF,this);this.subscribe("a",this.$z,this);this.subscribe("b",
this.xA,this);this.subscribe("videodatachange",this.Kn,this);var b=new Yu(["div",[a.Wu,"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.N();this.S=H("DIV",[a.zv,"html5-stop-propagation"]);this.X=H("DIV",a.av);this.C=null;Gs(this,H("DIV",a.Fu,this.S,this.X));Gs(this,b);this.I=new Ez(b,x(this.Tk,
this));this.G=this.o=null;this.O=[]}z(uA,Ds);uA.B="AnnotationsModule";var vA={Fu:"video-annotations",Wu:"countdowntimer",av:"video-custom-annotations",zv:"video-legacy-annotations"};uA.A=function(a){switch(a.type){case "branding":case "promotion":case "survey":return!0}return!1};uA.o=function(a){return"card"==a.type};uA.k=function(a){return uA.Ea(a)?new uA(a):null};uA.Ea=function(a){var b=a.R();return"leanback"==b.ea?!1:b.X?!0:tv(a.getVideoData(),"iv3_module")};
uA.j=function(){return H("div",["annotation","annotation-type-custom","hid"])};f=uA.prototype;f.Ea=function(){return uA.Ea(this.j)};f.create=function(){uA.J.create.call(this);this.C=new X(["div",["ytp-player-content","ytp-iv-player-content"]]);this.C.Y(this.j.Ka());Us(this,this.B);var a=this.j.R();(1==(a.la||this.j.getVideoData().ta)||a.X)&&this.load()};f.destroy=function(){this.C.detach();this.C.dispose();Vs(this,this.B);this.unsubscribe("videodatachange",this.Kn,this);uA.J.destroy.call(this)};
f.iF=function(){var a=this.F||this.A,b=1==this.B.getSelected();a&&!b?(this.unload(),this.log({toggle:0})):!a&&b&&(this.load(),this.log({toggle:1}))};f.AB=function(a){this.T=W(a.state,8);0>vv(a,4)&&this.I.stop()};
f.load=function(){uA.J.load.call(this);var a=this.j.getVideoData(),b=x(this.Nq,this,a.videoId);Gw()&&(b=wA(this,b));var b={format:"XML",method:"GET",Zb:b},c=this.j.R(),d=c.X,e=c.jb;if(d||e)b.method="POST",b.Eb={},d&&(b.Eb.ic_xml=d,c.X=""),e&&(b.Eb.ic_track=e,c.jb="");a.Mh&&(this.A++,Aj(a.Mh,b));a.vk&&(b=x(this.Nq,this,a.videoId),Gw()&&(b=wA(this,b)),b={format:"XML",method:"GET",Zb:b},this.A++,Aj(a.vk,b));this.B.Da(1)};
f.unload=function(){this.B.Da(0);this.D.Ja({"iv-event":1});this.Tk();Es(this);Jb(this.k,function(a){a.destroy()});Jb(this.K,function(a){a.destroy()});this.G=null;this.o&&(this.o.destroy(),this.o=null);this.A=0;this.F=!1;this.k={};this.K={};uA.J.unload.call(this)};
function xA(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(xA(a,e))}return c}
f.Nq=function(a,b){if(this.A&&!this.F&&this.j.getVideoData().videoId==a){this.A--;var c=b.responseXML?b.responseXML.getElementsByTagName("annotations"):null;if(vj(b)&&c){yA(this,c[0]);N(this.j.Ka(),this.ua+"-loaded");0==this.A&&(this.F=!0);var c=[],d;for(d in this.k){var e=this.k[d].annotation,g;if(e.k)if(g=e.k,g.j.length)if(g=g.j[0].k||g.j[0].j||g.j[0].o,!g||2>g.length)g=null;else{var h=g.length-1;g=0>=g[0].k&&0>=g[h].k?null:{start:g[0].k,end:g[h].k}}else g=null;else g=null;if(h=g)if(g=1E3*h.start,
h=1E3*h.end,0==g&&(g++,h++),g==h&&h++,!(h<g)){var k={id:d};"marker"==e.type&&(k.style="ytp-chapter-marker",k.tooltip=e.C,k.visible=!0);e=new ss(g,h,k);c.push(e)}}this.sd.apply(this,c)}}};function zA(a,b){var c=AA(a,b);if(!c&&"marker"!=b.type)return null;Iy(b,function(a){a=x(this.mC,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);return new Wy(a.P,b,c)}
function BA(a,b){var c=a.C.N(),d=uA.j(),e=a.j.R(),g=null;switch(b.type){case "branding":if(e.experiments.Ql&&e.gb)break;c.appendChild(d);g=new Sx(d,CA(a),b);break;case "promotion":e.experiments.I&&"video"==b.style?(c=pj(Ux(b).value).v,d=Zv(b.data.video_duration),c&&d&&(a.H={id:c,gL:d,jL:"feature=endscreen",author:b.data.text_line_1,title:b.data.text_line_2,fL:1},a.Kn())):(c.appendChild(d),g=new Ny(d,CA(a),b))}g&&g.rj();return g}
f.Kn=function(){if(this.H){var a=this.j.getVideoData().M;!a||1>=a.length||a[1].id==this.H.id||(wb(a,1,0,this.H),rb(a,a.length-1))}};function DA(a,b){if(!a.o){var c=uA.j();a.C.N().appendChild(c);a.o=new Dx(c,CA(a));a.o.rj()}(c=b&&b.data&&b.data.card_type)&&Ex[c]&&a.o.add(new Ex[c](b.id,b.data,b.ib))}function CA(a){a.G||(a.G=new Vx(new zv(a),a.j.R(),a.j.getVideoData(),a.D,a.j,a.P));return a.G}
function yA(a,b){for(var c=b.getElementsByTagName("annotation"),d=0;d<c.length;d++){var e=xA(a,c[d]),g=null;try{g=Dy(e)}catch(h){}g&&(uA.A(g)?(e=BA(a,g))&&(a.K[g.id]=e):uA.o(g)?DA(a,g):(e=zA(a,g))&&(a.k[g.id]=e))}Jb(a.k,function(a){var b=a.annotation;b.k&&b.k.k&&(b=this.k[b.k.k])&&(a.j.G=b.annotation)},a)}f.zc=function(a){uA.J.zc.call(this,a);a=a.getId();var b=this.k[a];b&&!b.B&&(b=b.annotation,"pause"==b.type?EA(this,b):(FA(this,a),mw(this.D,b.ib)))};
f.Qc=function(a){uA.J.Qc.call(this,a);GA(this,a.getId())};function EA(a,b){if(a.T){var c=Ey(b,function(a){return"pause"==a.type&&!!a.duration&&!!a.duration.value});c&&(a.M=!0,a.publish("command_pause"),a.I.start(1E3*c.duration.value))}}function HA(a,b,c,d){d?FA(a,b,c):GA(a,b,c)}function GA(a,b,c){if(b=a.k[b])Yy(b),c&&c.k?(a=x(a.Cp,a,b),b.k=new Bv(a,2E3),b.k.start()):a.Cp(b)}f.Cp=function(a){a&&(a.hide(),IA(this,"shown",!1,a.annotation.id),this.ci(a.annotation,"hidden"))};
function FA(a,b,c){if(b=a.k[b])Yy(b),c&&c.A?(a=x(a.ks,a,b),b.k=new Bv(a,2E3),b.k.start()):a.ks(b)}f.ks=function(a){a&&(a.show(),IA(this,"shown",!0,a.annotation.id),this.ci(a.annotation,"shown"))};f.mC=function(a,b,c){var d=this.k[a];if(d&&b.value!=c){b.value=c;var e=!1;Iy(d.annotation,function(a){e|=a.value});HA(this,a,b,e)}};f.$z=function(a){if(a&&a.id){var b=Ux(a);if(b){var c=x(this.ci,this,a,"click"),d=this.j.getVideoData();if("new"==b.target||-1!=hw(b,d.videoId))c(),c=null;qw(this.D,a.ib,c)}}};
f.ci=function(a,b){Hy(a,function(c){if(c.trigger==b&&"openUrl"==c.type){var d=this.j.getVideoData(),e=hw(c.url,d.videoId);if(-1!=e)this.publish("command_seek",e),this.Tk();else if(d=iw(c.url,a.id,d.videoId,this.j.R()))this.pauseVideo(),window.open(d,kw(c.url))}},this)};f.$A=function(){IA(this,"playerControlShow",!1)};f.UB=function(){IA(this,"playerControlShow",!0)};f.kF=function(a){IA(this,"rollOver",!0,a.id)};f.jF=function(a){IA(this,"rollOver",!1,a.id)};
f.xA=function(a){if(a||a.id)this.k[a.id].B=!0,GA(this,a.id),a&&(rw(this.D,a.ib),this.ci(a,"close")),IA(this,"closed",!0,a.id)};f.Tk=function(){this.I.stop();this.M&&(this.M=!1,this.publish("command_play"))};function AA(a,b){if(JA(b)){var c=b.D||Fy(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});return new nA(b,x(a.S.appendChild,a.S),a.j.R(),a.P,c)}return null}
function JA(a){if("highlight"==a.type||"image"==a.type||"widget"==a.type)return!0;if("text"==a.type)for(var b in Ay)if(a.style==Ay[b])return!0;return!1}function IA(a,b,c,d){a.publish(Vy(b,d),c,d)}function wA(a,b){return x(function(){if(!this.ha()){var a=Array.prototype.slice.call(arguments,0);a.unshift(b);b=ra.apply(window,a);this.O.push(Hw(b,void 0))}},a)}f.L=function(){for(var a=this.O,b=0,c=a.length;b<c;b++)Jw(a[b]);this.O.length=0;uA.J.L.call(this)};var KA=/^#(?:[0-9a-f]{3}){1,2}$/i,LA="default monoSerif propSerif monoSans propSans casual cursive smallCaps".split(" "),MA=["none","raised","depressed","uniform","dropShadow"],NA=["sub","inherit","super"],OA=["left","right","center"],PA={id:0,priority:0,anchorPoint:7,Ii:50,MD:80,Vd:100,nd:15,Jk:100,isVisible:!0,textAlign:2,Nf:0,background:"#080808",color:"#fff",yo:1,CD:1,Hw:0,windowColor:"#000",lL:0},QA={id:98},RA={id:99,priority:1,anchorPoint:0,Ii:5,Vd:5,nd:2,Jk:32,textAlign:0},SA=["en_CA","en_US",
"es_MX","fr_CA"];var TA=[{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"}],UA=[{option:0,text:"0%"},{option:.25,text:"25%"},{option:.5,text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],VA=[{option:.25,text:"25%"},{option:.5,
text:"50%"},{option:.75,text:"75%"},{option:1,text:"100%"}],WA=[{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:TA},
{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:TA},{option:"backgroundOpacity",message:"YTP_BACKGROUND_OPACITY",options:UA},{option:"windowColor",message:"YTP_WINDOW_COLOR",options:TA},{option:"windowOpacity",message:"YTP_WINDOW_OPACITY",options:UA},{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:VA}];var XA;function YA(a,b){fa(b)&&(b=b.join(" "));if(""===b||void 0==b){var c;XA||(XA={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=XA;"pressed"in c?a.setAttribute("aria-pressed",c.pressed):a.removeAttribute("aria-pressed")}else a.setAttribute("aria-pressed",b)};function ZA(a,b,c,d,e){Gz.call(this,a,b,c,c);this.I=b;this.defaultTooltip=this.M=c;this.C=d||null;this.D=e||null;this.G=e||null;this.j=!1}z(ZA,Gz);ZA.prototype.update=function(){Hz(this,this.j&&this.C?this.C:this.I);this.bb(this.j&&this.D?this.D:this.M);this.o=this.j&&this.G?this.G:this.defaultTooltip;O(this.element,"ytp-button-pressed",this.j)};function bB(a){a.j=!0;YA(a.element,!0);a.update()}function cB(a){a.j=!1;YA(a.element,!1);a.update()}function dB(a,b){a.I=b;a.update()}
ZA.prototype.L=function(){this.G=this.D=this.C=null;ZA.J.L.call(this)};function eB(a){ZA.call(this,a,"ytp-subtitles-button",Z(0,"YTP_SUBTITLES"),"ytp-subtitles-button-active");Jz(this,6500);this.element.setAttribute("aria-haspopup",!0);this.element.id="subtitles_button"}z(eB,ZA);function fB(a){X.call(this,a)}z(fB,X);fB.prototype.fu=function(){};fB.prototype.focus=function(){};function gB(a,b,c,d){X.call(this,["li","ytp-subtitles-settings-dialog-list-option","{{content}}"]);var e=b.text||(b.message?Z(0,b.message):""),e=[new Yu(["div","ytp-subtitles-settings-dialog-list-text",e])];d&&(d=new Yu(["div","ytp-subtitles-settings-dialog-list-swatch"]),d.N().style.background=b.option.toString(),e.unshift(d));c?e.unshift(new Yu(["div","ytp-subtitles-settings-dialog-list-caret"])):e.unshift(new Yu(["div","ytp-subtitles-settings-dialog-list-check"]));this.j=new Gz(a);R(this,this.j);
this.j.pa(e);this.pa(this.j)}z(gB,X);gB.prototype.setEnabled=function(a){O(this.j.N(),"ytp-subtitles-settings-dialog-list-selected",a)};function hB(a){X.call(this,["div",["ytp-subtitles-settings-dialog","ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body",["div","ytp-subtitles-settings-dialog-top-level","{{top}}"],["div","ytp-subtitles-settings-dialog-sub-level","{{sub}}"]],["div","ytp-dialog-buttons","{{buttons}}"]]);this.A=a;this.k=null;var b=Z(0,"YTP_DONE"),c=new Gz(a,"ytp-dialog-button",b);R(this,c);c.pa(b);c.listen("click",ra(this.Ub,"cancel"),this);Jz(c,1400);b=Z(0,"YTP_RESET");a=new Gz(a,"ytp-dialog-button",b);R(this,
a);a.pa(b);N(a.N(),"ytp-dialog-button-left");a.listen("click",ra(this.Ub,"select"),this);Jz(a,1300);this.o={};this.j={};this.template.update({top:iB(this,WA),buttons:[a,c]})}z(hB,fB);
function iB(a,b,c){var d=new X(["ul","ytp-subtitles-settings-dialog-list"]),e,g=!1;n(c)?(a.j={},e=a.j):(a.o={},e=a.o,g=!0);for(var h=0;h<b.length;h++){var k=b[h],l=new gB(a.A,k,g,b==TA);g?(l.listen("click",x(a.os,a,k.options,k.option)),Jz(l.j,1100)):c&&(l.listen("click",x(a.nD,a,c,k.option)),Jz(l.j,1200));e[k.option]=l;l.Y(d.N())}return d}f=hB.prototype;f.os=function(a,b){this.template.update({sub:iB(this,a,b)});jB(this,this.o,b);jB(this,this.j,this.k[b]);kB(this.template.j["ytp-subtitles-settings-dialog-sub-level"])};
function kB(a){(a=wd("ytp-subtitles-settings-dialog-list-selected",a))&&a.focus()}f.focus=function(){kB(this.template.j["ytp-subtitles-settings-dialog-top-level"])};function jB(a,b,c){Jb(b,function(a,b){a.setEnabled(b==c)},a)}f.setProperties=function(a){this.k=a;(a=WA[0])&&a.options&&this.os(a.options,a.option)};f.nD=function(a,b){this.k&&(this.k[a]=b,this.Ub("change"));jB(this,this.j,b);this.focus()};
f.fu=function(){var a=this.A.xb(),b=2*Math.floor(Math.min(560,Math.max(230,.65*a.width))/2);this.N().style.width=b+"px";this.template.j["ytp-dialog-body"].style.height=a.height-140+"px"};f.L=function(){this.o=[];this.j=[];hB.J.L.call(this)};function lB(a,b,c){X.call(this,["div","ytp-drop-down","{{content}}"]);this.o=!1;this.B=0;this.G=this.D=null;this.A=new zv(this);this.k=new X(["div","ytp-drop-down-menu","{{content}}",{tabindex:-1}]);R(this,this.k);gv(this.k,"listbox");this.j=new Gz(a,"ytp-drop-down-label");R(this,this.j);this.j.listen("click",this.oG,this);this.C=new X(["div","ytp-drop-down-label-content","{{content}}"]);R(this,this.C);this.j.pa([this.C,["div","ytp-drop-down-arrow"]]);this.pa([this.k,this.j]);n(b)&&this.Rd(b);n(c)&&
this.G!=c&&(this.k.pa(c),this.G=c,mB(this));mB(this)}z(lB,X);f=lB.prototype;f.Rd=function(a){this.D!=a&&(this.C.pa(a),this.D=a,mB(this))};f.de=function(){this.o=!1;mB(this)};f.nG=function(a){a.target&&(Sd(this.k.N(),a.target)||Sd(this.j.N(),a.target))||this.de()};f.oG=function(){this.o=!this.o;mB(this);this.o&&this.k.N().focus()};function nB(a,b){b>a.B&&(a.B=b,a.element.style.minWidth=a.B+"px")}f.focus=function(){this.j.N().focus()};
function mB(a){a.o?(a.k.show(),a.A.listen(window,"blur",a.de),a.A.listen(document,"click",a.nG)):(a.k.hide(),a.A.removeAll());var b=Og(a.j.N());a.k.N().style.bottom=b.height-1+"px";nB(a,b.width)};function oB(a,b){Gz.call(this,a,"ytp-drop-down-menu-button");gv(this,"option");this.j=new X(["div","ytp-drop-down-menu-button-check"]);R(this,this.j);this.k=!!b}z(oB,Gz);oB.prototype.pa=function(a){oB.J.pa.call(this,[this.j,a])};oB.prototype.Da=function(a){O(this.element,"ytp-drop-down-menu-button-selected",a);this.k||O(this.element,"ytp-drop-down-menu-button-checked",a);this.element.setAttribute("aria-checked",a)};function pB(a,b){O(a.element,"ytp-drop-down-menu-button-checked",b)};function qB(a,b,c,d){X.call(this,["div","ytp-drop-down-menu-content",{tabindex:"{{tabindex}}"},"{{content}}"]);this.G=a;this.B=!!d;this.o={};this.A=[];this.j=this.k=null;this.C=b;this.D=c}z(qB,X);function rB(a,b){Eb(a.A,b)||(Jb(a.o,function(a){a.detach()}),a.A=[],b&&C(b,function(a){this.A.push(a);var b=sB(this,a);this.B&&pB(b,a==this.j);b.Da(a==this.k);b.Y(this.element)},a))}qB.prototype.Da=function(a){null!=this.k&&sB(this,this.k).Da(!1);null!=a&&sB(this,a).Da(!0);this.k=a;this.B||(this.j=a)};
qB.prototype.getSelected=function(){return this.k};function tB(a,b){var c=sB(a,"translate");b?c.disable():c.enable()}function uB(a,b){Jb(a.o,function(a){Jz(a,b)})}function sB(a,b){var c=a.o[b.toString()];if(c)return c.pa(a.C(b)),c;c=new oB(a.G,a.B);R(a,c);a.o[b.toString()]=c;c.pa(a.C(b));c.listen("click",x(a.D,a,b));return c};function vB(a,b,c,d,e,g){Fz.call(this);this.K=b;this.M=c;this.I=d;this.P=e;this.H=g;this.o={};this.o.off=Z(0,"YTP_LANGUAGE_OFF");this.o.translate=Z(0,"YTP_TRANSLATE_MENU_ITEM");this.o.contribute=Z(0,"YTP_CONTRIBUTE_MENU_ITEM");this.label=Z(0,"YTP_SUBTITLES");this.j=new qB(a,x(this.F,this),x(this.O,this));R(this,this.j);this.element=new lB(a,void 0,this.j);R(this,this.element);nB(this.element,150);this.element.bb(this.label);this.priority=1;this.B=!0;this.D=this.C=!1;wB(this,[]);this.off()}z(vB,Fz);
vB.prototype.G=function(){this.I()};function wB(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]=st(e));c.push(g)}c.push("translate");a.D&&c.push("contribute");rB(a.j,c);tB(a.j,!a.C);c=sB(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;uB(a.j,c++);c=c++;Jz(a.element.j,c)}function xB(a,b){a.o[b]&&(a.j.Da(b),a.element.Rd(a.F(b)))}vB.prototype.off=function(){xB(this,"off")};
vB.prototype.F=function(a){return this.o[a]};vB.prototype.O=function(a){this.element.de();"off"==a?this.K():"translate"==a?this.P():"contribute"==a?this.H():this.M(a,!0)};function yB(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Z(0,"YTP_TRANSLATE_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);var c=Z(0,"YTP_DISMISS"),b=new Gz(a,"ytp-dialog-button",c);R(this,b);b.pa(c);b.listen("click",ra(this.Ub,"change"),this);Jz(b,1400);var c=Z(0,"YTP_CANCEL"),d=new Gz(a,"ytp-dialog-button",c);R(this,d);d.pa(c);d.listen("click",ra(this.Ub,"cancel"),this);Jz(d,1500);this.k=new qB(a,
x(this.gp,this),x(this.xF,this),!0);R(this,this.k);this.k.element.style.maxHeight="100px";this.j=new lB(a,void 0,this.k);R(this,this.j);nB(this.j,200);this.j.bb(Z(0,"YTP_TRANSLATE_DIALOG_TITLE"));this.o=null;this.template.update({content:this.j,buttons:[b,d]})}z(yB,fB);f=yB.prototype;f.Da=function(a){this.o=a;this.j.Rd(a?this.gp(a):null)};f.getSelected=function(){return this.o};f.xF=function(a){this.j.de();this.Da(a)};f.gp=function(a){return a.Fi?a.languageName+" -- "+a.Fi:a.languageName};
f.focus=function(){this.j.focus()};function zB(a){ZA.call(this,a,"ytp-settings-button",Z(0,"YTP_SETTINGS"),"ytp-settings-button-active");Jz(this,6600);this.element.setAttribute("aria-haspopup",!0);this.element.id="settings_button";this.k=new X(["div","{{content}}"]);R(this,this.k);this.pa(this.k);AB(this,"")}z(zB,ZA);
function AB(a,b){"highres"==b?a.k.pa("ytp-settings-8k-quality-badge"):"hd2880"==b?a.k.pa("ytp-settings-5k-quality-badge"):"hd2160"==b?a.k.pa("ytp-settings-4k-quality-badge"):-1!=b.indexOf("hd")?a.k.pa("ytp-settings-hd-quality-badge"):a.k.pa("")};function BB(a){this.anchorPoint=7;this.Ii=50;this.Vd=100;this.MD=80;this.Nf=0;this.textAlign=2;this.backgroundColor="#080808";this.color="#fff";this.CD=this.yo=1;this.nd=15;this.Jk=32;this.isVisible=!0;this.j=0;this.bold=!1;this.offset=1;this.Hw=3;a=a||PA;sa(this,a)};function CB(a,b){this.id=a;this.Aa=new BB(b);var c="caption-window";0==this.id&&(c="standard-caption-window");this.Ga=H("div",{id:"caption-window-"+this.id,"class":c});this.Pb=H("span",{"class":"captions-text",style:"visibility: hidden"});this.Pb.innerHTML="C";this.Ma=H("span",{"class":"captions-text",tabindex:7E3,"aria-live":"assertive"});this.eh=H("div",{"class":"caption-window-transform"});this.eh.appendChild(this.Ma);this.Ga.appendChild(this.eh);this.j=1}CB.prototype.id=0;f=CB.prototype;
f.Aa=null;f.mg="";f.tc=null;f.Ga=null;f.eh=null;f.Ma=null;f.Pb=null;f.type=0;
f.qd=function(a,b){a&&sa(this.Aa,a);var c=this.Aa.charEdgeStyle,d=this.Aa.textOpacity,e="";if(0!=c){var g="rgba(34, 34, 34, "+d+")",h="rgba(204, 204, 204, "+d+")";this.Aa.charEdgeColor&&(h=g=this.Aa.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.Aa.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=Mx(this.Aa.color),h=Mx(this.Aa.background),k="rgba("+k[0]+","+k[1]+","+k[2]+","+d+")",d=this.Aa.offset||1;wg(this.Ma,{color:k,fill:k,"background-color":"rgba("+h[0]+","+h[1]+","+h[2]+","+this.Aa.backgroundOpacity+")","text-shadow":e,"font-variant":7==c?"small-caps":"","font-family":g,"font-weight":this.Aa.bold?"bold":"","font-style":this.Aa.italic?"italic":"","text-decoration":this.Aa.underline?
"underline":"","vertical-align":NA[d]});b&&(this.j=b.height/360);e=Mx(this.Aa.windowColor);c=this.Aa.windowOpacity;g=this.Aa.fontSizeIncrement||0;1!=d&&(g*=.8);wg(this.eh,{"background-color":"rgba("+e[0]+","+e[1]+","+e[2]+","+c+")","font-size":Math.round(16*(1+.25*g)*this.j)+"px"})};f.ki=function(){var a;this.Pb.style.fontFamily=this.Ma.style.fontFamily;this.Ga.appendChild(this.Pb);a=this.Pb.offsetHeight;this.Ga.removeChild(this.Pb);return a};
f.He=function(){this.Ma&&(0!=this.id&&(Ng(this.Ga,"100%"),Ng(this.Ga,this.Ma.offsetWidth+1)),DB(this),Bw(this.Ga,this.Aa.isVisible))};function DB(a){Cg(a.Ga,a.Aa.Ii+"%",a.Aa.Vd+"%");for(var b=0;8>=b;b++)gh(a.Ga,"anchor-point-"+b);N(a.Ga,"anchor-point-"+a.Aa.anchorPoint)}f.bs=function(a){var b=[];C(a,function(a){a.k?b[b.length-1]+=a.j:b.push(a.j)});if(a.length){var c=a[a.length-1].um;c&&this.qd(EB(c))}this.Sd(b.join("\n"));this.tc=a};
f.Sd=function(a){this.mg=a=FB(a);this.Ma.innerHTML=this.mg;this.Ga.style.textAlign=OA[this.Aa.textAlign];1==this.Aa.Nf?this.Ma.setAttribute("dir","rtl"):this.Ma.removeAttribute("dir");this.He()};f.toString=function(){var a="Caption window ("+this.id+"): "+this.mg,b;for(b in this.Aa)a+=b+" "+this.Aa[b]+" | ";return a};function FB(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.Uh=function(){this.tc=[];this.Sd("")};function GB(a){if("undefined"!=typeof DOMParser)return(new DOMParser).parseFromString(a,"application/xml");if("undefined"!=typeof ActiveXObject){var b=HB();b.loadXML(a);return b}throw Error("Your browser does not support loading xml documents");}function IB(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 JB(a,b){if("undefined"!=typeof a.selectSingleNode){var c=rd(a);"undefined"!=typeof c.setProperty&&c.setProperty("SelectionLanguage","XPath");return a.selectSingleNode(b)}if(document.implementation.hasFeature("XPath","3.0")){var c=rd(a),d=c.createNSResolver(c.documentElement);return c.evaluate(b,a,d,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}return null}
function KB(a){if("undefined"!=typeof a.selectNodes){var b=rd(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=rd(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 HB(){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 LB(){this.k=[];this.j=[]};function MB(a){this.o=a.startMs||0;this.A=a.priority||0;this.durationMs=a.durationMs||0}MB.prototype.end=null;MB.prototype.start=null;MB.prototype.nb=function(){return this.o};MB.prototype.toString=function(){return this.o+", "+this.durationMs};function NB(a){MB.call(this,a);this.windowId=a.windowId||0;this.j=a.text||"";this.k=a.params.append||!1;this.um=a.um||null}z(NB,MB);NB.prototype.toString=function(){return this.o+", "+this.durationMs+": "+this.j};
function OB(a){var b=a.firstChild&&a.firstChild.nodeValue||"",c=1E3*parseFloat(a.getAttribute("start")||0);a.getAttribute("t")&&(c=parseInt(a.getAttribute("t"),10));var d=1E3*parseFloat(a.getAttribute("dur")||0);a.getAttribute("d")&&(d=parseFloat(a.getAttribute("d")));var e=parseInt(a.getAttribute("w"),10)||0,b={startMs:c,durationMs:d,text:b,windowId:e,priority:5,params:{}};a.getAttribute("r")&&(b.params.row=parseInt(a.getAttribute("r"),10));a.getAttribute("c")&&(b.params.col=parseInt(a.getAttribute("c"),
10));a.getAttribute("append")&&(b.priority=6,b.params.append=!0);return new NB(b)}function PB(a){MB.call(this,a);this.id=a.windowId||0;this.params=a.params||{};this.Lj=a.Lj||null;this.Mj=a.Mj||null;this.j="";this.k=!1;QB(this)}z(PB,MB);function RB(a){return a.params.Mz?a.params.Mz:a.params.DD?2:a.k?1:0}function SB(){return new PB({startMs:0,durationMs:2147483647,params:PA})}function QB(a){a.Lj&&sa(a.params,EB(a.Lj));a.Mj&&sa(a.params,EB(a.Mj))};function TB(a){LB.call(this);this.j.push(SB());a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++){var d=OB(a[b]);this.k.push(d)}}z(TB,LB);function UB(a){LB.call(this);this.o={};a=a.firstChild.childNodes;for(var b=0,c=a.length;b<c;b++)switch(a[b].tagName){case "window":var d=a[b],e=parseInt(d.getAttribute("id"),10);t:{var g=this.o[e];if(d.getAttribute("t")||d.getAttribute("start")){var h=parseInt(d.getAttribute("t"),10);d.getAttribute("start")&&(h=1E3*parseFloat(d.getAttribute("start")));g&&(g.nb()+g.durationMs>=h?g.durationMs=h:g=null);switch(d.getAttribute("op")){case "kill":d=null;break t;case "define":g=null}g?g.B=!0:g=SB();var k=
{};sa(k,g?g.params:PA);d.getAttribute("id")&&(k.id=d.getAttribute("id"));d.getAttribute("op")&&(k.hL=d.getAttribute("op"));d.getAttribute("rc")&&(k.nd=parseInt(d.getAttribute("rc"),10));d.getAttribute("cc")&&(k.Jk=parseInt(d.getAttribute("cc"),10));d.getAttribute("ap")&&(g=parseInt(d.getAttribute("ap"),10),k.anchorPoint=0>g||8<g?7:g);d.getAttribute("ah")&&(k.Ii=parseInt(d.getAttribute("ah"),10));d.getAttribute("av")&&(k.Vd=parseInt(d.getAttribute("av"),10));d.getAttribute("id")&&(k.id=parseInt(d.getAttribute("id"),
10)||0);d.getAttribute("vs")&&(k.isVisible=Boolean(d.getAttribute("vs")));d.getAttribute("ju")&&(k.textAlign=parseInt(d.getAttribute("ju"),10));d.getAttribute("pd")&&(k.Nf=1,0==parseInt(d.getAttribute("pd"),10)&&(k.Nf=0));d.getAttribute("bc")&&(k.backgroundColor=parseInt(d.getAttribute("bc"),16));d.getAttribute("bo")&&(k.yo=parseInt(d.getAttribute("bo"),10)/100);d.getAttribute("fc")&&(k.color=parseInt(d.getAttribute("fc"),16));d.getAttribute("sd")&&(k.DD=parseInt(d.getAttribute("sd"),10));g=parseInt(d.getAttribute("d"),
10)||1E3*parseFloat(d.getAttribute("dur"))||2147483647;d={startMs:h,durationMs:g,params:k,windowId:parseInt(d.getAttribute("id"),10)};d=new PB(d)}else d=null}this.o[e]=d;this.j.push(d);break;case "text":e=OB(a[b]),this.k.push(e),d=e.windowId,this.o[d]&&(d=this.o[d],e=e.j,""!=d.j&&(d.k=!0),d.j+=e)}}z(UB,LB);function VB(a){this.parent=a||null;this.j={}}function WB(a,b,c){var d=a.j[b];if(void 0!=d)return d;if(a.parent&&(void 0==c||c))return WB(a.parent,b)}function XB(a,b,c){void 0!=c&&(a.j[b]=c)}function YB(a,b,c){void 0!=c&&(a.j[b]=c)}function EB(a){var b=a.parent?EB(a.parent):{};sa(b,a.j);return b};function ZB(a){LB.call(this);var b={Ng:{},mn:{},nn:{}},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=$B(e,"p"),k=void 0;h&&g.Ng[h]&&(k=g.Ng[h]);g=new VB(k);XB(g,"id",$B(e,"id"));h=aC(e,"b");void 0!=h&&(g.j.bold=h);h=aC(e,"i");void 0!=h&&(g.j.italic=h);h=aC(e,"u");void 0!=h&&(g.j.underline=h);XB(g,"charEdgeStyle",bC(e,"et"));XB(g,"offset",
bC(e,"of"));XB(g,"textType",bC(e,"tt"));YB(g,"background",cC(e,"bc"));YB(g,"charEdgeColor",cC(e,"ec"));YB(g,"color",cC(e,"fc"));h=bC(e,"fs");void 0!=h&&0!=h&&XB(g,"fontFamily",h);h=$B(e,"sz");void 0!=h&&XB(g,"fontSizeIncrement",h/100-1);h=$B(e,"bo");void 0!=h&&XB(g,"backgroundOpacity",h/255);e=$B(e,"fo");void 0!=e&&XB(g,"textOpacity",e/255);e=WB(g,"id",!1);b.Ng[e]=g;break;case "ws":g=dC(b,e);e=WB(g,"id",!1);b.nn[e]=g;break;case "wp":g=eC(b,e),e=WB(g,"id",!1),b.mn[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=fC(b,g);if(g=c[k.id])g.durationMs=k.nb()-g.nb();c[k.id]=k;this.j.push(k);break;case "p":var h=b,l=g,p={},k={startMs:$B(l,"t"),durationMs:$B(l,"d"),text:l.textContent,params:p},t=$B(l,"w");void 0!=t&&(k.windowId=t);aC(l,"a")?(k.priority=6,p.append=!0):k.priority=5;(l=$B(l,"p"))&&h.Ng[l]&&(k.um=h.Ng[l]);h=new NB(k);k=c[h.windowId];k||(k=fC(b,g),k.id=a--,h.windowId=k.id,this.j.push(k));g=k;k=h.j;""!=g.j&&(g.k=!0);g.j+=k;this.k.push(h)}}z(ZB,LB);
function $B(a,b){var c=a.getAttribute(b);if(null!=c)return parseFloat(c)}function aC(a,b){var c=a.getAttribute(b);if(null!=c)return"1"==c}function bC(a,b){var c=$B(a,b);if(void 0!=c)return c}function cC(a,b){var c=a.getAttribute(b);if(null!=c)return KA.test(c),c}
function dC(a,b){var c=$B(b,"ws"),d;c&&a.nn[c]&&(d=a.nn[c]);c=new VB(d);XB(c,"id",$B(b,"id"));XB(c,"modeHint",bC(b,"mh"));XB(c,"textAlign",$B(b,"ju"));XB(c,"textPrintDirection",bC(b,"pd"));XB(c,"textScrollDirection",bC(b,"sd"));XB(c,"windowBorderType",bC(b,"et"));YB(c,"windowBorderColor",cC(b,"wbc"));YB(c,"windowColor",cC(b,"wfc"));d=$B(b,"wfo");void 0!=d&&XB(c,"windowOpacity",d/255);return c}
function eC(a,b){var c=$B(b,"wp"),d;c&&a.mn[c]&&(d=a.mn[c]);c=new VB(d);XB(c,"anchorPoint",bC(b,"ap"));XB(c,"colCount",$B(b,"cc"));XB(c,"id",$B(b,"id"));XB(c,"leftPercentage",$B(b,"ah"));XB(c,"rowCount",$B(b,"rc"));XB(c,"topPercentage",$B(b,"av"));return c}function fC(a,b){var c={windowId:$B(b,"id"),startMs:$B(b,"t"),durationMs:$B(b,"d")||2147483647,Lj:eC(a,b),Mj:dC(a,b)};return new PB(c)};function gC(a,b){LB.call(this);this.j.push(SB());for(var c=a.split(hC),d=1;d<c.length;d++){var e;e=c[d];var g=b;if(""==e||0==e.search(iC))e=null;else{var h=e.split(jC),k=0,l=h[k++].match(kC);l||(l=h[k++].match(kC));l?(e=lC(l[1],g),g=lC(l[3],g),h=h.slice(k).join("\n"),e=new NB({startMs:e,durationMs:g-e,text:h,windowId:0,priority:5,params:{}})):e=null}e&&this.k.push(e)}}z(gC,LB);var iC=/NOTE/,hC=/(?:\r\n|\r|\n){2,}/,jC=/\r\n|\r|\n/,kC=/(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})[\t ]+--\x3e[\t ]+(([\d]{2}:)?[\d]{2}:[\d]{2}\.[\d]{3})/;
function lC(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 mC(a,b){this.j=[];this.k=[];var c;c=a?"WEBVTT"==a.substring(0,6)?new gC(a,b||0):(c=GB(a))&&c.firstChild?"timedtext"==c.firstChild.tagName?3==parseInt(c.firstChild.getAttribute("format"),10)?new ZB(c):new UB(c):new TB(c):null:null;c&&(this.k=c.j,this.j=c.k)};function nC(){this.k=[];this.j=[];this.o=-1}function oC(a,b){return b?a.j.concat(a.k):a.j}function pC(a,b){switch(b.A){case "asr":return qC(b,a.k);default:if(b.isDefault||0>a.o)a.o=a.j.length;return qC(b,a.j)}}function qC(a,b){return E(b,x(a.equals,a))?!1:(b.push(a),!0)};function rC(a){this.Zp=!!a;this.k=new nC;this.A=[]}z(rC,Q);function sC(a,b){return E(oC(a.k,!0),function(a){return a.toString()==b})}f=rC.prototype;f.fp=function(a){var b=this.k.o,c=oC(this.k,!0);a&&0>b&&0<c.length&&(b=0);return 0>b?null:c[b]};f.Gd=function(){return null};f.seek=function(){};f.an=function(){};f.L=function(){rC.J.L.call(this);this.an()};function tC(a){rC.call(this,a.Rh);this.o=null;this.A=a.od}z(tC,rC);f=tC.prototype;f.Lo=function(){for(var a=[],b=oC(this.k,void 0),c=0;c<b.length;c++){var d=b[c],e={kind:"subtitles",label:d.o,srclang:d.k,src:uC(d)};d.isDefault&&(e["default"]=1);a.push(H("track",e))}return a};f.dm=function(a,b){var c=uC(a),d=x(function(c){this.j=null;c=new mC(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Aj(c,{format:"RAW",ab:d,withCredentials:!0});this.o&&this.o.fi!=a&&(this.o.Pk=a)};
f.fm=function(a,b,c,d){if(this.o=d||null)for(b=0;b<this.o.captionTracks.length;b++)pC(this.k,this.o.captionTracks[b]);a()};function uC(a){return a.j?sj(a.B,{tlang:a.j.languageCode}):a.B}f.Gd=function(){return this.o?this.o.fi:null};f.fp=function(){return this.o?this.o.Pk:null};f.L=function(){this.j&&this.j.abort();tC.J.L.call(this)};function vC(){this.F=1;this.C=20971520;this.B=8388608;this.j=5242880;this.ra=NaN;this.H=2;this.M=25;this.D=2097152;this.o=!1;this.k=1800;this.A=ut.auto;this.K=!0;this.liveChunkReadahead=3;this.P=Wr("xboxone");this.G=0;this.S=this.O=this.I=!1};function wC(){this.ia=[]}wC.prototype.contains=function(a){a=zb(this.ia,a);return 0<=a||0>a&&1==(-a-1)%2};wC.prototype.length=function(){return this.ia.length/2};function xC(a,b){Q.call(this);this.$=b;this.D=new wC;this.A=!0;this.F=this.j=this.B=this.C=this.k=null;this.o=0}z(xC,Q);xC.prototype.L=function(){Lf(this.o);this.o=0;this.A=!0;this.j&&this.j.abort()};xC.prototype.resume=function(){this.A=!1;Lf(this.o);this.seek(this.$.getCurrentTime());yC(this)};xC.prototype.seek=function(a){this.k=cb(this.F.mi(a).j)};function zC(a,b){a.C=b}function AC(a){var b;if(b=!a.A&&null!==a.k)b=a.k,b=b.j.oh(b);return b&&!a.j&&!(a.k&&30<a.k.startTime-a.$.getCurrentTime())}
function BC(a){var b;b=a.k;b=CC(b.j,b);if(!a.D.contains(b.j[0].A)){var c=DC(EC(b));a.j=Aj(c,{format:"RAW",Zb:x(a.G,a),withCredentials:!0});a.B=b;var c=a.D,d=a.B.j[0].A,e=zb(c.ia,d);0<=e||0>e&&1==(-e-1)%2||(e=-e-1,0<e&&1==d-c.ia[e-1]&&e<c.ia.length&&1==c.ia[e]-d?(rb(c.ia,e),rb(c.ia,e-1)):0<e&&1==d-c.ia[e-1]?c.ia[e-1]=d:e<c.ia.length&&1==c.ia[e]-d?c.ia[e]=d:(wb(c.ia,e,0,d),wb(c.ia,e+1,0,d)))}a.k=cb(b.j)}
xC.prototype.G=function(a){null==a.responseText||400<=a.status||this.A||null===this.C||(a=new mC(a.responseText,1E3*this.B.j[0].startTime),this.C(a));this.j=this.B=null};function yC(a){a.o=Kf(x(function(){AC(this)&&BC(this)},a),1E3);AC(a)&&BC(a)};function FC(a,b){rC.call(this);this.o=a;this.j=new xC(new vC,b)}z(FC,rC);f=FC.prototype;f.dm=function(a,b){zC(this.j,function(c){b(c,a)});this.j.F=this.o.j[a.k];this.j.resume()};f.fm=function(a){pC(this.k,new qt({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.an=function(){var a=this.j;Lf(a.o);a.o=0;a.A=!0};f.L=function(){this.j.dispose();FC.J.L.call(this)};function GC(a,b){CB.call(this,a,b);this.Ma.style.display="block";this.Ma.style.padding="0";this.bc=[];var c=this.Ma;gh(c,"captions-text");N(c,"caption-painton-text-rows")}z(GC,CB);f=GC.prototype;f.type=1;f.Ht="";f.Ym="";f.Zg=!1;f.Ob=null;f.bc=null;f.ki=function(){return this.bc[0]?this.bc[0].offsetHeight:0};function HC(a){return a.bc.reduce(function(a,c){return Math.max(a,c.offsetWidth)},0)}
f.He=function(){0!=this.id&&(Ng(this.Ga,"100%"),Ng(this.Ga,this.Zg?HC(this):this.Ob.width));var a=Math.round(this.Aa.nd*this.ki());this.Ga.style.maxHeight=a+"px";DB(this);Bw(this.Ga,this.Aa.isVisible)};
f.Sd=function(a){this.Uh();a=FB(a);this.Zg||(this.mg=a);a=a.split("<br>");for(var b=0,c=a.length;b<c;b++)if(a[b]){var d=H("div",{"class":"caption-row-holder"}),e=H("span",{"class":"caption-row captions-text"});e.style.backgroundColor=this.Ym;d.appendChild(e);e.innerHTML=a[b];this.Zg||(this.Ma.style.height=this.Ob.height+"px",this.Ma.style.width=this.Ob.width+"px",d.style.position="absolute",d.style.top=this.Ob.Sr[b]+"px",d.style.left=this.Ob.Rr[b]+"px");this.Ma.appendChild(d);this.bc.push(e)}this.He()};
f.Uh=function(){for(var a=0,b=this.bc.length;a<b;a++){var c=ee(this.bc[a],"caption-row-holder");Ld(c)}this.bc=[]};f.qd=function(a){GC.J.qd.call(this,a);this.Ym=this.Ma.style.backgroundColor;this.Ma.style.backgroundColor="";a=0;for(var b=this.bc.length;a<b;a++)this.bc[a].style.backgroundColor=this.Ym};function IC(a,b){CB.call(this,a,b);this.tc=[];this.Ed=[];this.Mb=[];this.Hf=new dn(433);this.Hf.stop();P(this.Hf,"tick",x(this.LB,this))}z(IC,CB);f=IC.prototype;f.type=2;f.Hz=32;f.Mb=null;f.Dd=0;f.Ed=null;f.Hf=null;f.He=function(){Ng(this.Ga,"100%");var a=this.Ga.offsetWidth,a=Math.min(JC(this),a);Ng(this.Ga,a+"px");Ng(this.eh,"100%");this.Ma.style.whiteSpace="nowrap";DB(this);Bw(this.Ga,this.Aa.isVisible)};
f.bs=function(a){var b=a.length;if(0>=b)this.Uh();else{for(var c=0;c<b&&0<=this.tc.indexOf(a[c]);)c++;this.tc=this.tc.concat(a.slice(c));KC(this)}};f.Uh=function(){this.tc=[];this.Mb=[];this.Dd=0;this.Mb=[];this.Ed=[];LC(this)};
function KC(a){if(!MC(a))if(a.Dd>=a.tc.length)LC(a);else{var b=a.Mb.length-1;0>b&&(a.Ed.push(0),a.Dd=0,a.Mb.push(""),b=0);for(var c=a.tc.length,d=a.Dd;d<c;d++){var e=a.tc[d];if("\n"==e.j){a.Dd++;a.Ed[b]++;break}if(e.k||0==a.Mb[b].length)a.Mb[b]+=e.j,a.Dd++,a.Ed[b]++;else break}LC(a);d<c&&!MC(a)&&(b=a.ki(),N(a.Ma,"caption-rollup"),a.Ga.style.overflow="hidden",a.Ma.style.top=-b+"px",a.Hf.start())}}function MC(a){return a.Hf.enabled||eh(a.Ma,"caption-rollup")}
f.LB=function(){this.Ga.style.overflow="visible";this.Ma.style.top=0;this.Hf.stop();gh(this.Ma,"caption-rollup");this.Mb.push("");this.Ed.push(0);KC(this)};function LC(a){if(!MC(a)){for(;a.Mb.length<a.Aa.nd;)a.Mb.unshift(""),a.Ed.unshift(0);for(;a.Mb.length>a.Aa.nd;){a.Mb.shift();var b=a.Ed.shift();0<b&&(a.Dd-=b,a.tc.splice(0,b))}a.Sd(a.Mb.join("\n"))}}
function JC(a){a.Pb.style.fontFamily=a.Ma.style.fontFamily;a.Pb.style.fontSize=a.Ma.style.fontSize;a.Ma.appendChild(a.Pb);a.Pb.innerHTML="\u2014";var b=a.Pb.offsetWidth;a.Pb.innerHTML="&nbsp;";b=2*a.Pb.offsetWidth+b*a.Hz;a.Ma.removeChild(a.Pb);return b};function NC(a,b,c,d){rC.call(this,d);c||(c=pj(a).hl||"",c=c.split("_").join("-"));this.o=sj(a,{hl:c});this.B=b;this.C={};this.j=null}z(NC,rC);NC.prototype.Lo=function(){for(var a=[],b=oC(this.k,void 0),c=0;c<b.length;c++){var d=b[c],e=OC(this,d),e={kind:"subtitles",label:d.o,srclang:d.k,src:e};d.isDefault&&(e["default"]=1);a.push(H("track",e))}return a};
NC.prototype.dm=function(a,b){var c=OC(this,a),d=x(function(c){this.j=null;c=new mC(c.responseText);b(c,a)},this);this.j&&this.j.abort();this.j=Aj(c,{format:"RAW",ab:d,withCredentials:!0})};
NC.prototype.fm=function(a,b,c){var d=this.o;b={type:"list",tlangs:1,v:this.B,fmts:Number(b||!1),vssids:1};this.Zp&&(b.asrs=1);d=sj(d,b);b=x(function(b){this.j=null;if((b=b.responseXML)&&b.firstChild){for(var d=this.k,h=b.getElementsByTagName("track"),k=h.length,l=0;l<k;l++){var p=h[l].getAttribute("formats"),t=c,w=h[l].getAttribute("lang_code"),J=h[l].getAttribute("lang_translated"),la=h[l].getAttribute("name"),Y=h[l].getAttribute("kind"),da=h[l].getAttribute("id"),pa="true"==h[l].getAttribute("lang_default"),
Me="true"==h[l].getAttribute("cantran"),he=h[l].getAttribute("vss_id"),p=new qt({formats:p,format:t,languageCode:w,languageName:J,name:la,kind:Y,id:da,is_servable:!0,is_default:pa,is_translateable:Me,vss_id:he});pC(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"),t=b[h].getAttribute("id"),w="true"==b[h].getAttribute("lang_default"),k={languageCode:k,languageName:l,languageOriginal:p,
id:t,is_default:w},this.C[k.languageCode]=k.languageName,this.A.push(new pt(k))}a()},this);this.j&&this.j.abort();this.j=Aj(d,{format:"RAW",ab:b,withCredentials:!0})};function OC(a,b){var c=a.o,d={v:a.B,type:"track",lang:b.k,name:b.o,kind:b.A,fmt:b.C};b.j&&(d.tlang=b.j.languageCode);return c=sj(c,d)}NC.prototype.L=function(){this.j&&this.j.abort();NC.J.L.call(this)};function PC(a){Ds.call(this,a);Nf({YTP_TRANSLATE_MENU_ITEM:"Translate captions",YTP_CONTRIBUTE_MENU_ITEM:"Add subtitles/CC",YTP_TRANSLATE_DIALOG_TITLE:"Translate...",YTP_ASR_SETTINGS_LABEL:"Automatic Captions",YTP_LANGUAGE_OFF:"Off",YTP_FONT_FAMILY:"Font family",YTP_FONT_SIZE:"Font size",YTP_FONT_COLOR:"Font color",YTP_FONT_OPACITY:"Font opacity",YTP_BACKGROUND_COLOR:"Background color",YTP_BACKGROUND_OPACITY:"Background opacity",YTP_WINDOW_COLOR:"Window color",YTP_WINDOW_OPACITY:"Window opacity",
YTP_COLOR_WHITE:"White",YTP_COLOR_YELLOW:"Yellow",YTP_COLOR_GREEN:"Green",YTP_COLOR_CYAN:"Cyan",YTP_COLOR_BLUE:"Blue",YTP_COLOR_MAGENTA:"Magenta",YTP_COLOR_RED:"Red",YTP_COLOR_BLACK:"Black",YTP_FONT_FAMILY_MONO_SERIF:"Monospaced Serif",YTP_FONT_FAMILY_PROP_SERIF:"Proportional Serif",YTP_FONT_FAMILY_MONO_SANS:"Monospaced Sans-Serif",YTP_FONT_FAMILY_PROP_SANS:"Proportional Sans-Serif",YTP_FONT_FAMILY_CASUAL:"Casual",YTP_FONT_FAMILY_CURSIVE:"Cursive",YTP_FONT_FAMILY_SMALL_CAPS:"Small Capitals",YTP_CHAR_EDGE_STYLE:"Character edge style",
YTP_EDGE_STYLE_NONE:"None",YTP_EDGE_STYLE_RAISED:"Raised",YTP_EDGE_STYLE_DEPRESSED:"Depressed",YTP_EDGE_STYLE_OUTLINE:"Outline",YTP_EDGE_STYLE_DROP_SHADOW:"Drop Shadow",YTP_CLICK_FOR_SETTINGS:"Click $GEAR_ICON for settings"});this.Xj=!0;this.oa=this.T=this.ta=!1;this.Oa=new zv(this);this.F=a.R();this.C=null;this.O=a.app.o;this.la=this.ja=null;this.va={};this.ba=[];this.Ca=0;this.K={};this.W={};this.na=this.ya=this.I=this.wa=!1;this.ka=new CB(99,RA);this.A=this.o=this.D=null;this.Ba=!1;this.G=this.H=
0;this.X=new eB(Rs(this));R(this,this.X);this.X.listen("click",this.Jz,this);this.M=this.ua+"-mdx";this.ga=new zB(Rs(this));R(this,this.ga);N(this.ga.N(),"ytp-mdx-settings-button");this.ga.listen("click",this.lF,this);this.B=new vB(Rs(this),x(this.im,this),x(this.jq,this),x(this.tD,this),x(this.uD,this),x(this.Qz,this));this.S=new hB(Rs(this));R(this,this.S);this.S.listen("change",x(this.Wd,this,!0));this.S.listen("cancel",this.Oy,this);this.S.listen("select",this.qr,this);this.V=new yB(Rs(this));
R(this,this.V);this.V.listen("change",this.iC,this);this.V.listen("cancel",this.zg,this);this.subscribe("onResize",x(this.Mq,this));this.subscribe("onBackgroundChange",x(this.eD,this));this.subscribe("onTextOpacityChange",x(this.fD,this));this.subscribe("onWindowOpacityChange",x(this.gD,this));this.subscribe("onFontSizeIncrease",x(this.WA,this));this.subscribe("onFontSizeDecrease",x(this.VA,this));this.subscribe("onCaptionsToggle",x(this.cC,this));this.subscribe("onPlaybackAudioChange",x(this.iA,
this))}z(PC,Ds);PC.prototype.ua="captions";PC.prototype.sc="cc";PC.prototype.Qm="subtitlesModuleData";var QC={background:"#080808",backgroundOpacity:1,charEdgeStyle:3,color:"#fff",fontFamily:4,fontSizeIncrement:0,textOpacity:1,windowColor:"#080808",windowOpacity:0};function RC(a){return"3"!=a.F.k?!1:!!a.O.j.textTracks}function SC(a,b,c,d,e){v(a.k[b])&&(a.k[c]=d.indexOf(a.k[b]),-1==a.k[c]&&(a.k[c]=e),delete a.k[b])}f=PC.prototype;
f.create=function(){PC.J.create.call(this);this.C=this.j.getVideoData();-1==SA.indexOf(this.F.P)&&N(this.j.Ka(),"cc-international");this.k=ac(QC);sa(this.k,Ks(this,"display-settings"));SC(this,"fontFamilyOption","fontFamily",LA,QC.fontFamily);SC(this,"charEdgeStyle","charEdgeStyle",MA,QC.charEdgeStyle);this.S.setProperties(this.k);this.la=new X(["div",["ytp-player-content","ytp-subtitles-player-content"]]);this.la.Y(this.j.Ka());this.ja=this.la.N();RC(this)||(Ss(this,this.ua,this.X),Us(this,this.B));
(this.C.captionTracks.length&&TC(this.j.app,1).fi||UC(this))&&this.load()};f.destroy=function(){this.la.detach();this.la.dispose();this.ja=null;PC.J.destroy.call(this)};function UC(a){if(a.C.captionTracks.length){var b=TC(a.j.app,1).Bo;if(2==b||3==b)return!0}if(1==a.F.B.cc_load_policy||1==a.C.Ao||"alwayson"==a.C.vc("yt:cc")||RC(a))return!0;b=Ks(a,"module-enabled");return null!=b?!!b:"on"==a.C.vc("yt:cc")}function VC(a){a.o.fm(x(a.zr,a),!0,RC(a)?"vtt":void 0,TC(a.j.app,1))}
f.load=function(){this.na="alwayson"==this.C.vc("yt:cc");this.ya="1"==this.C.A.cc_auto_caps||"1"==this.F.B.cc_auto_caps;this.B.D="1"==this.C.A.cc_contribute||"1"==this.F.B.cc_contribute;this.Sb?(Ss(this,this.M,this.ga),this.B.k=this.M):(Ts(this,this.M),this.B.k=null);PC.J.load.call(this);this.ta=!0;if(this.C.Sa)this.o=new FC(this.C.k,this.j),this.subscribe("seekto",this.Gt,this);else{var a=this.C.A.cc_lang_pref||this.F.B.cc_lang_pref||this.C.vc("yt:cc_default_lang")||this.F.P,a=a&&a.split("_").join("-");
this.C.captionTracks.length?this.o=new tC(this.C):this.o=new NC(this.C.Xe,this.C.videoId,a,this.C.Rh)}VC(this)};f.lF=function(){this.loaded||this.load()};f.unload=function(){this.Sb&&(Ts(this,this.M),this.B.k=null,WC(this,!1),this.fj("control_subtitles_set_track"));if(RC(this)){var a;a=vd("track",void 0,void 0);for(var b=0;b<a.length;b++)Ld(a[b])}else XC(this,!1),YC(this),this.unsubscribe("seekto",this.Gt,this),this.o.dispose(),this.o=null,this.zg();this.I=this.oa=this.T=this.ta=!1;PC.J.unload.call(this)};
f.Ja=function(){};
f.zr=function(){this.ta=!1;if(RC(this))for(var a=this.O.j,b=this.o.Lo(),c=0;c<b.length;c++)a.appendChild(b[c]);else if(a=this.V,b=this.o.A,rB(a.k,b),uB(a.k,1E3),cv(a.k.template,"tabindex",1E3),Jz(a.j.j,1001),b.length?a.Da(b[0]):a.Da(null),b=this.I||UC(this)||ZC(this.F),a=oC(this.o.k,!0),0<a.length){this.Ja("Caption track list loaded, found "+a.length+" tracks.");this.oa=!0;wB(this.B,a);a=!1;if(b)if(b=this.o.fp())this.wa=!0,$C(this,b),a=!0;else if(this.T||aD(this),b=this.o.k.k,b.length&&(b=b[0].toString(),
this.I||this.ya))this.jq(b),a=!0;this.publish("publish_external_event","onCaptionsTrackListChanged");a||this.o.Gd()&&$C(this,this.o.Gd())}else this.Ja("No captions found."),this.unload()};function aD(a){a.T=!0;RC(a)||(a.Wd(),a.Mq())}
f.hC=function(a,b){this.T||aD(this);this.wa&&(this.wa=!1,this.publish("publish_external_event","onCaptionsTrackListChanged"));if(b&&(!this.A||!b.equals(this.A))){YC(this);this.A=b;this.Ba=nc.test(b.k);var c={trackName:b.o,trackKind:b.A};b.j?(c.trackLangCode=b.j.languageCode,c.fromLangCode=b.k):c.trackLangCode=b.k;this.log(c);if(b!=this.o.Gd()){this.I&&(c=st(b)||"",(c=c.replace(/<[^>]*>?/g,""))&&(c+="\n"),c+=Of("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.ja.appendChild(this.ka.Ga),this.ka.Sd(c),this.ka.qd(this.k,this.O.kb()),this.G||(this.G=L(x(this.Lr,this),2E3)));this.publish("publish_external_event","captionschanged",rt(b));bB(this.X);var c=this.B,d=!this.na&&0<this.o.A.length;c.C=d;tB(c.j,!d);xB(this.B,b.toString());Ls(this,"module-enabled",!0);this.publish("vss_segment")}}bD(this,a.k.concat(a.j))};
function bD(a,b){a.Ja("Caption track loaded with "+b.length+" events.");var c=[];C(b,function(a){a.nb();var b;this.Ca++;b="caption"+this.Ca.toString();c.push(new ss(a.nb(),a.nb()+a.durationMs,{id:b}));this.va[b]=a},a);a.sd.apply(a,c)}f.zc=function(a){if(a=cD(this,a))this.ba.push(a),this.H||(this.H=L(x(this.Ej,this),0))};f.Qc=function(a){if(a=cD(this,a))qb(this.ba,a),this.H||(this.H=L(x(this.Ej,this),0))};function cD(a,b){var c=b.getId();return 0!=c.indexOf("caption")?null:a.va[c]}
f.XC=function(a){if(a instanceof PB){var b=this.K[a.id];sa(a.params,this.k);QB(a);b&&b.type!=RB(a)&&(Ld(b.Ga),delete this.K[a.id],b=null);if(!b){var b=this.K,c=a.id,d;t:{d=a.id;var e=a.params;switch(RB(a)){case 1:d=new GC(d,e);break t;case 2:d=new IC(d,e);break t;default:d=new CB(d,e)}}b=b[c]=d;c=b.Ga;O(c,"captions-asr","asr"==this.A.A);null!=a.params.Nf&&(a.params.Nf=this.Ba?1:0);0==b.id?this.ja.appendChild(c):Gs(this,c)}b.qd(a.params,this.O.kb());if(1==RB(a)){b.Ht=a.j;b.Ob={};b.Zg=!0;b.Sd(b.Ht);
b.Ob.nd=b.bc.length;b.Ob.width=b.Ga.offsetWidth;b.Ob.height=b.Ga.offsetHeight;b.Ob.Rr=[];b.Ob.Sr=[];for(a=0;a<b.Ob.nd;a++)b.Ob.Sr.push(b.bc[a].offsetTop),b.Ob.Rr.push(b.bc[a].offsetLeft);b.Zg=!1;b.Sd(b.mg)}}else b=a.windowId,this.W[b]||(this.W[b]=[]),this.W[b].push(a)};f.Mq=function(){this.T&&(this.Wd(),Jb(this.K,function(a){a.He()},this))};
function dD(a){var b=[];Jb(a.K,function(a){a instanceof GC&&b.push(a)});if(0!=b.length){b.sort(function(a,b){return b.Aa.Vd-a.Aa.Vd});var c=eD(a.O).height,d=b[0].Aa.Vd;C(b,function(a){a.Aa.Vd=d;var b=Math.round(a.Aa.nd*a.ki());d-=Math.round(b/c*100);a.He()},a)}}f.Lr=function(){this.G=0;Ld(this.ka.Ga)};
f.Ej=function(){this.H=0;this.T&&(Yb(this.W),this.ba.sort(function(a,b){return a.nb()==b.nb()?a.A-b.A:a.nb()-b.nb()}),C(this.ba,this.XC,this),Jb(this.K,function(a,b){this.W[b]?a.bs(this.W[b]):(Ld(a.Ga),delete this.K[b])},this),dD(this),this.D&&this.D.He(),this.Ja("Refreshing caption display..."))};function fD(a,b,c){if(c&&c.length){for(var d=a.k[b],e=0,g=0;g<c.length;g++)if(d==c[g].option){e=(g+1)%c.length;break}a.k[b]=c[e].option;a.Wd(!0)}}f.eD=function(){fD(this,"backgroundOpacity",UA)};
f.fD=function(){fD(this,"textOpacity",VA)};f.gD=function(){fD(this,"windowOpacity",UA)};f.VA=function(){gD(this,-1)};f.WA=function(){gD(this,1)};function gD(a,b){var c=a.k.fontSizeIncrement+b,c=Math.max(-2,Math.min(4,c));a.k.fontSizeIncrement=c;a.Wd()}function YC(a){if(a.A){a.A=null;Es(a);a.ba=[];a.va={};a.A=null;a.Ej();cB(a.X);a.B.off();var b=a.B;b.C=!1;tB(b.j,!0);a.o.an()}}
function $C(a,b,c){!b||a.A&&b.equals(a.A)||(null!=c&&(a.I=c),a.Sb?(a.A=b,WC(a,!0),a.fj("control_subtitles_set_track",rt(b)),a.T||aD(a)):(a.o.dm(b,x(a.hC,a)),a.ta=!0,xB(a.B,b.toString())))}f.jq=function(a,b){var c=sC(this.o,a);$C(this,c,b);Ws(this)};f.uD=function(){this.na||(Hs(this,this.V),Ws(this))};
f.iC=function(){if(!this.na){this.zg();var a=this.V.getSelected();if(a){var b=this.A,c=new qt;c.k=b.k;c.D=b.D;c.o=b.o;c.A=b.A;c.isDefault=!1;c.F=b.F;c.G=b.G;c.B=b.B;c.j=a;pC(this.o.k,c)&&(a=c.toString(),wB(this.B,oC(this.o.k,!0)),xB(this.B,a));$C(this,c,!0)}}};f.Oy=function(){this.zg();this.Sb&&this.A&&this.fj("control_subtitles_set_track",rt(this.A))};f.qr=function(){delete this.k;this.k=ac(QC);this.S.setProperties(this.k);Ls(this,"display-settings",this.k);this.Wd()};
f.Wd=function(a){var b=this.O.kb();Jb(this.K,function(a){a.qd(this.k,b)},this);this.D&&this.D.qd(this.k,b);this.ka.qd(this.k,b);this.Ej();n(a)&&!a||Ls(this,"display-settings",this.k)};f.Jz=function(){this.I=!0;hD(this)};function hD(a){a.loaded?a.A&&a.A!=a.o.Gd()?a.im():a.zr():a.load()}
f.im=function(){this.G&&(M(this.G),this.Lr());Ls(this,"module-enabled",!1);this.publish("vss_segment");YC(this);Ws(this);this.I=!1;this.Sb?(WC(this,!1),this.fj("control_subtitles_set_track")):this.publish("publish_external_event","captionschanged",{});this.o.Gd()&&$C(this,this.o.Gd())};f.tD=function(){Hs(this,this.S);Ws(this)};f.Qz=function(){Is(this,this.F.A+"timedtext_video?v="+this.C.videoId);Ws(this)};function iD(a){return PC.prototype.Ea(a)?new PC(a):null}
f.Vf=function(a,b){switch(a){case "fontSize":return isNaN(b)||(this.k.fontSizeIncrement=Math.max(-2,Math.min(4,b)),this.Wd()),this.k.fontSizeIncrement;case "reload":b&&VC(this);break;case "stickyLoading":this.F.Ab()&&Ls(this,"module-enabled",!!b);break;case "track":if(b){if(!ja(b))break;if(Xb(b)){this.im();break}var c=new qt(b);c.equals(this.A)||($C(this,c,!0),xB(this.B,c.toString()))}else return this.A&&this.A!=this.o.Gd()?rt(this.A):{};return"";case "tracklist":return this.oa?D(oC(this.o.k,b&&b.includeAsr),
function(a){return rt(a)}):[];case "translationLanguages":return this.oa?this.o.A:[];case "displaySettings":return b&&ja(b)&&jD(this,b),c=ac(this.k),c.fontFamilyOption=LA[c.fontFamily],c.charEdgeStyle=MA[c.charEdgeStyle],c;case "sampleSubtitles":XC(this,!!b)}};function XC(a,b){if(b&&!a.D){a.D=new CB(98,QA);a.ja.appendChild(a.D.Ga);var c=a.D,d=Z(Rs(a),"YTP_SAMPLE_SUBTITLES");d&&(d=d.replace(/<[^>]*>?/g,""),c.Sd(d));a.D.qd(a.k,a.O.kb())}else!b&&a.D&&(Ld(a.D.Ga),a.D=null)}
f.Wf=function(){var a="reload fontSize track tracklist translationLanguages displaySettings sampleSubtitle".split(" ");this.F.Ab()&&a.push("stickyLoading");return a};f.Kk=function(a,b){return a&&v(a)&&KA.test(a)?a:b};f.hm=function(a,b){return ha(a)&&!isNaN(a)?Math.max(0,Math.min(1,parseFloat(a))):b};f.Iw=function(a,b){if(a&&v(a)){var c=MA.indexOf(a);return-1!=c?c:b}return b};f.gx=function(a,b){if(a&&v(a)){var c=LA.indexOf(a);return-1!=c?c:b}return b};
f.hx=function(a,b){return ha(a)&&!isNaN(a)?Math.max(-2,Math.min(4,a)):b};var kD=null;function jD(a,b){if(b)if($b(b,"reset"))a.qr();else{if(!kD){var c={};c.color=a.Kk;c.textOpacity=a.hm;c.background=a.Kk;c.backgroundOpacity=a.hm;c.windowColor=a.Kk;c.windowOpacity=a.hm;c.charEdgeStyle=a.Iw;c.fontFamilyOption=a.gx;c.fontSizeIncrement=a.hx;kD=c}var c=kD,d;for(d in c)switch(d){case "fontFamilyOption":a.k.fontFamily=c[d](b[d],a.k.fontFamily);break;default:a.k[d]=c[d](b[d],a.k[d])}a.Wd(ZC(a.F))}}f=PC.prototype;
f.Ea=function(a){if("lb3"==a.R().j)return!1;a=a.getVideoData();var b;if(b=a.Sa)b=a.k,b=!(!b||null==b.j.en);return!!(a.Xe||a.captionTracks.length||b)};f.Ui=function(a){Vs(this,this.B);a?(this.B.k=this.M,Ss(this,this.M,this.ga)):(this.B.k=null,Ts(this,this.M));Us(this,this.B);a?YC(this):this.loaded&&(this.unload(),this.load())};function WC(a,b){b?(bB(a.X),xB(a.B,a.A.toString())):(cB(a.X),a.B.off())}f.Gt=function(){this.o.seek(this.j.getCurrentTime())};
f.qh=function(){var a=this.A;return a?{cc:a.G}:null};f.cC=function(){this.I=!0;hD(this)};f.iA=function(){this.C.captionTracks.length&&VC(this)};f.L=function(){this.Oa.removeAll();this.H&&(M(this.H),this.H=0);this.G&&(Lf(this.G),this.G=0);PC.J.L.call(this)};function lD(){if(void 0==Ot&&(Ot=!1,window.crypto&&window.crypto.getRandomValues))try{var a=new Uint8Array(1);window.crypto.getRandomValues(a);Ot=!0}catch(b){}if(Ot){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 mD(){for(var a=lD(),b=[],c=0;c<a.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(a[c]&63));return b.join("")}function nD(){return D(lD(),function(a){return(a&15).toString(16)}).join("")};function oD(a){Ds.call(this,a);this.ua="ypc_license_checker";this.sc="ypc_license";this.C=!1;this.B=0;this.A=!1;this.k=NaN;this.D=nD();this.o=null}z(oD,Ds);
var pD={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 qD(a){return tv(a.getVideoData(),"ypc_license_checker_module")}f=oD.prototype;f.Ea=function(){return qD(this.j)};f.create=function(){oD.J.create.call(this);var a=new ss(1E3,2147483646,{priority:0});this.sd(a);this.subscribe("heartbeatparams",this.sF,this);this.subscribe("onStateChange",this.tF,this)};function rD(a){return qD(a)?new oD(a):null}f.destroy=function(){sD(this);oD.J.destroy.call(this)};f.zc=function(){this.C=!0;tD(this,2E3)};f.sF=function(a){this.o=a;tD(this,2E3)};
f.tF=function(a){W(a.state,2)||W(a.state,64)?sD(this):(W(a.state,1)||W(a.state,8))&&tD(this,2E3)};function uD(a){var b=a.j.getVideoData();return vD(b)?!!a.o:!!b.heartbeatToken||!!b.jb}function tD(a,b){if(!a.k&&a.C&&uD(a)&&(vD(a.j.getVideoData())||!ZC(a.j.R()))){var c=b;void 0==c&&(c=a.A?(c=a.j.getVideoData().Qe)?c:a.o?1E3*a.o.j:6E4:1E3);a.k=L(x(a.hD,a),c)}}
f.hD=function(){var a,b,c;c=this.j.R().A;var d=this.j.getVideoData();uD(this)?(vD(d)?(b="GET",a={},c=Ke(this.o.url,{request_id:nD()}),d.F&&(c=Ke(c,{vvt:d.F})),d.C&&(c=Ke(c,{access_token:d.C}))):d.heartbeatToken?(b="GET",a={},c=Ke(c+"heartbeat",{video_id:d.videoId,heartbeat_token:d.heartbeatToken}),d.F&&(c=Ke(c,{vvt:d.F})),d.C&&(c=Ke(c,{access_token:d.C}))):(b="POST",a={video_id:d.videoId,player_id:this.D,request_id:nD(),purchase_id:d.purchaseId,version:"4",player_time_seconds:this.j.getCurrentTime().toString(),
gid:d.bo,ypc_token:d.jb},d.F&&(a.vvt=d.F),d.C&&(a.access_token=d.C),c+="ypc_license_server"),c=Ke(c,{cpn:d.za}),Aj(c,{format:"RAW",method:b,Eb:a,timeout:3E4,ab:x(this.Dz,this),onError:x(this.Cz,this),De:x(this.Ez,this),withCredentials:!0})):sD(this)};
f.Dz=function(a){if(this.k){a=a.responseText;var b;t:if(b=a,this.j.getVideoData().heartbeatToken)b=dg(b),b="ok"==b.status?0:"stop"==b.status?1:-1;else{var c=b.match(wD);if(c){if("0"!=c[1]){b=1;break t}b=c[3]}b=b in pD?1:64<=b.length&&b.match(/[0-9a-fA-f]+/)?0:-1}-1==b?xD(this,"decode"):(this.B=0,this.k=NaN,1==b?(this.A=!1,b="YTP_ERROR_LICENSE",this.j.getVideoData().heartbeatToken?a=dg(a).reason||Of(b):((c=a.match(wD))?(a=parseInt(c[1],10))&&(b=Zs(a)):a in pD&&(b=pD[a]),a=Of(b)),uv(this.j.app.k,"heartbeat",
a,void 0)):(this.A=!0,tD(this)))}};f.Cz=function(a){xD(this,"net-"+a.status)};f.Ez=function(){xD(this,"timeout")};function xD(a,b){if(a.k){a.log({errorType:b});a.k=NaN;var c=++a.B,d=a.j.getVideoData().Ve;c>(d?d:a.o?a.o.k:5)?(c=Of("YTP_ERROR_LICENSE"),uv(a.j.app.k,"heartbeat",c,void 0)):tD(a)}}var wD=/^GLS\/1.0 (\d+) (\w+).*?\r\n\r\n([^]*)$/;function sD(a){a.B=0;a.k&&(M(a.k),a.k=NaN);a.A=!1};function yD(a){X.call(this,a);this.S=new T;R(this,this.S)}z(yD,X);yD.prototype.subscribe=function(a,b,c){return this.S.subscribe(a,b,c)};yD.prototype.unsubscribe=function(a,b,c){return this.S.unsubscribe(a,b,c)};yD.prototype.Kb=function(a){return this.S.Kb(a)};yD.prototype.publish=function(a,b){return this.S.publish.apply(this.S,arguments)};function zD(a,b,c){yD.call(this,["div",["html5-endscreen","ytp-player-content",c||"base-endscreen"]]);this.k=a;this.Wa=b;this.B=!1}z(zD,yD);zD.prototype.create=function(){this.B=!0};zD.prototype.destroy=function(){this.B=!1};zD.prototype.Oh=function(){return!1};function AD(){X.call(this,["div","ytp-channel-banner-container",["img","ytp-channel-banner",{src:"{{banner}}"}]])}z(AD,X);function BD(){X.call(this,["div","ytp-subscribe-card",["img","ytp-author-image",{src:"{{image}}"}],["div","ytp-subscribe-card-right",["div","ytp-author-name","{{author}}"],["div","html5-subscribe-button-container"]]])}z(BD,X);function CD(a,b){yD.call(this,b);this.G=a;this.videoId=null}z(CD,yD);
CD.prototype.qj=function(a,b){this.videoId=a?a.id||a.video_id:"";O(this.element,"ytp-suggestion-set",!!this.videoId);if(this.videoId){var c,d=a.list?a.playlist_iurlhq:a.iurlhq_webp||a.iurlhq,e=a.list?a.playlist_iurlmq:a.iurlmq_webp||a.iurlmq;b&&d?c=d:!b&&e?c=e:c=iA(a.thumbnail_ids?a.thumbnail_ids.split(",")[0]:this.videoId,b?"hqdefault.jpg":"mqdefault.jpg");d=ac(a);d.playlist_length=d.playlist_length||0;d.title=d.title||d.playlist_title;d.author=d.author||d.playlist_author;d.watch=Z(0,"YTP_WATCH_VIDEO_OR_PLAYLIST",
{TITLE:d.title});d.image=c;d.background="background-image: url("+c+")";d.duration=iv(a.length_seconds);d.episodic_title=d.title;d.episodic_index=parseInt(d.index,10)+1;d.episodic_length=d.playlist_length;this.template.update(d)}};function DD(a){var b=["div","ytp-watch-next-card",["div","ytp-watch-next-content",["div","ytp-watch-next-header",Z(0,"YTP_WATCH_NEXT")],["img","ytp-watch-next-thumbnail",{src:"{{image}}"}],["div","ytp-watch-next-title","{{title}}"],["div","ytp-watch-next-views","{{view_count_string}}"],["div","ytp-watch-next-uploaded","{{uploaded}}"]]];CD.call(this,a,b)}z(DD,CD);function ED(a,b,c){zD.call(this,a,b,"subscribecard-endscreen");this.A=new AD;R(this,this.A);this.C=new Yu(["div","ytp-channel-curtain"]);R(this,this.C);this.o=new BD;R(this,this.o);(this.j=c?new DD(this.k.app.o.k):null)&&R(this,this.j);this.hide()}z(ED,zD);
ED.prototype.create=function(){ED.J.create.call(this);Kd(this.N());this.A.Y(this.N());this.C.Y(this.N());this.o.Y(this.N());var a=this.k.getVideoData().videoId,b=this.D,c=this.k.R().Xa,d=this.k.R().pageId;a&&(a={video_id:a,html5:1,page_subscribe:1},c&&(a.authuser=c),d&&(a.pageid=d),Aj("/get_video_metadata",{method:"GET",onError:u,ab:b,Of:a,context:this}))};
ED.prototype.D=function(a,b){if(this.B){var c=b.user_info,d=this.k.getVideoData();d&&(d.SG=c.external_id);d=c.channel_banner_url;Vf(d)||(d="");var e=c.channel_logo_url||c.image_url;Vf(e)||(e="");cv(this.A.template,"banner",d);cv(this.o.template,"image",e);cv(this.o.template,"author",c.channel_title||c.username);this.j&&b.watch_next&&(this.j.qj(b.watch_next),this.j.Y(this.N()));c=c.subscription_button_html;this.o.template.j["html5-subscribe-button-container"].innerHTML=c?c:""}};function FD(a,b){return Xh&&GD(a,"947233")||b&&GD(a,"947243")}function GD(a,b){return F(a.experiments.experimentIds,b)}function HD(a,b){return ib(xb(arguments,1),ra(F,a.experiments.experimentIds))};function ID(a,b){var c;c=["div",["video-ads","html5-stop-propagation"],["div","video-ad-interstitial",["span","",Z(0,"YTP_AD_INTERRUPT_MESSAGE")]],["div","video-ad-status-bar",["div","video-ad-label",Z(0,"YTP_ADVERTISEMENT")],["div","video-ad-time-left"],["div",["html5-progress-bar","html5-stop-propagation"],["div",["html5-ad-progress-list","html5-progress-list"]]]],["div","ad-container"]];X.call(this,c);this.$=b}z(ID,X);ID.prototype.o=null;ID.prototype.k=null;ID.prototype.j=null;
function JD(a){if(!a.o&&(a.o=a.template.j["ad-container"],a.$.R().C)){var b=GD(a.$.R(),"927622")?"ad-container-single-media-element-annotations":"ad-container-single-media-element";N(a.o,b)}return a.o}function KD(a){a.j&&(a.$.R().C?(gh(a.j,"ad-video"),LD(a.$.app,a.j),a.j=null):(Ld(a.j),hs(a.j)))}
function MD(a){if(!a.k){if(a.$.R().Sc){var b=Gd("button");N(b,"video-click-tracking");Jd(b,Of("YTP_VISIT_ADVERTISERS_SITE"));var c=Gd("div");N(c,"video-click-tracking-container");c.appendChild(b);JD(a).appendChild(c)}else b=Gd("div"),fh(b,["video-click-tracking","ad-video"]),JD(a).appendChild(b);a.k=b}return a.k}ID.prototype.L=function(){ID.J.L.call(this);this.j&&(LD(this.$.app,this.j),this.j=null);KD(this);Kd(JD(this));Kd(MD(this));this.k=this.o=null;delete this.$};
function ND(a){if(!a.j){var b;b=a.$.app;if(b.j.C){var c=Eg(b.B),d=Pg(b.B);b.da=new mg(c.x,c.y,d.width,d.height);OD(b.C);is(b.B,1);hs(b.B);b=b.B}else b=PD.getTag(void 0);a.j=b;fh(a.j,["video-stream","ad-video"])}return a.j};function QD(a,b){this.type=a||"";this.id=b||""}function RD(a){return new QD(a.substr(0,2),a.substr(2))}QD.prototype.toString=function(){return this.type+this.id};function SD(a,b){X.call(this,["canvas"]);this.element.width=a;this.element.height=b;this.width=a;this.height=b;this.context=this.element.getContext("2d");this.j=0;this.A=null}z(SD,X);SD.prototype.B=function(a,b){M(this.j);this.context&&(this.j=fv(x(this.B,this,a,b),b),a.call(this,new Date-this.A))};SD.prototype.L=function(){M(this.j);this.context=null;SD.J.L.call(this)};function TD(a,b){SD.call(this,2*(a+2),2*(a+2));this.D=a;this.k=b;this.C=this.width/2;this.o=this.height/2}z(TD,SD);var UD=3*Math.PI/2,VD=2*Math.PI;function WD(a,b){var c=a.app.o.k,d=["span","videowall-still-info-upnext",Z(0,"YTP_PLAYLIST_UP_NEXT")],e=["span","videowall-still-info-paused",Z(0,"YTP_AUTOPLAY_PAUSED")],g=[["div",["videowall-still-listlabel-episodic","videowall-still-listlabel"],["div","videowall-still-listlabel-episodic-heading",Z(0,"YTP_PLAYLIST_UP_NEXT")],["span","videowall-still-listlabel-episodic-icon"],["div","videowall-still-listlabel-episodic-info",["span","videowall-still-listlabel-episodic-index",["span","","{{episodic_index}}"],
" / ",["span","","{{episodic_length}}"]],["span","","{{episodic_title}}"]]],["span",["videowall-still-listlabel-regular","videowall-still-listlabel"],["span","videowall-still-listlabel-icon"],Z(0,"YTP_PLAYLIST"),["span","videowall-still-listlabel-length"," (",["span","","{{playlist_length}}"],")"]],["span",["videowall-still-listlabel-mix","videowall-still-listlabel"],["span","videowall-still-listlabel-mix-icon"],Z(0,"YTP_MIX"),["span","videowall-still-listlabel-length"," (50+)"]]];CD.call(this,c,
["a","videowall-still",{tabIndex:5E3,style:"{{background}}",href:"{{linkurl}}","aria-label":"{{watch}}"},["span","videowall-still-featured-label",Z(0,"YTP_FEATURED")],["span","videowall-still-info",["span","videowall-still-info-bg",["span","videowall-still-info-content",d,["span","videowall-still-info-title","{{title}}"],["span","videowall-still-info-author","{{author}}"],["span","videowall-still-info-duration","{{duration}}"],["span","videowall-still-info-cancel"]].concat([e])]]].concat(g));this.$=
a;this.H=b;this.D={};this.k=this.B=null;this.C=0;this.o=this.A=this.j=null;this.listen("click",this.vF);this.listen("keypress",this.wF)}z(WD,CD);f=WD.prototype;
f.qj=function(a,b){WD.J.qj.call(this,a,b);this.D=a.session_data?mj(a.session_data,"&"):null;if((this.B=a.endscreen_autoplay_session_data?mj(a.endscreen_autoplay_session_data,"&"):null)&&!this.o){this.o=new Yu(["div","videowall-still-listlabel-autoplay",["div","videowall-still-listlabel-autoplay-label",["span","videowall-still-listlabel-autoplay-label-message",Z(0,"YTP_AUTOPLAY")]," ",["span","videowall-still-listlabel-autoplay-countdown","{{autoplay}}"]]]);R(this,this.o);this.o.Y(this.element);var c=
new Gz(this.G);R(this,c);c.listen("click",this.Iq,this);c.bb(Z(0,"YTP_AUTOPLAY_CANCEL"));c.Y(this.template.j["videowall-still-info-cancel"]);Hz(c,"videowall-still-info-cancel-button");Jz(c,5100);c.pa(Z(0,"YTP_CANCEL"));c=new Gz(this.G);R(this,c);c.listen("click",this.Iq,this);c.Y(this.template.j["videowall-still-info-bg"],0);Hz(c,"videowall-still-info-close");this.A=new TD(44,48);R(this,this.A);N(this.A.N(),"autoplay-play-canvas");this.A.Y(this.element)}this.k=a.list;cv(this.template,"linkurl",XD(this.$.R(),
this.videoId,this.k));var d=c=!1,e=!1;"1"!=a.is_episodic?this.k&&"RD"==RD(this.k).type?e=!0:this.k&&(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)};f.select=function(a){YD(this);ZD(this.$.app,this.videoId,a?this.B:this.D,this.k||void 0,void 0)};
f.Ln=function(){var a=y()-this.C,b=this.A,c=a/1E4;b.context.clearRect(0,0,b.width,b.height);b.context.beginPath();b.context.arc(b.C,b.o,b.D+2,0,VD);b.context.fillStyle="rgba(0, 0, 0, 0.6)";b.context.fill();var d=Math.sqrt(3)/2*b.k;b.context.save();b.context.fillStyle="#fff";b.context.translate(b.C-b.k/3,b.o);b.context.beginPath();b.context.lineTo(0,d/2);b.context.lineTo(b.k/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.C,
b.o,b.D,UD,c*VD+UD,!1);b.context.lineWidth=4;b.context.strokeStyle="#fff";b.context.stroke();b=Math.max(1E4-a,0);cv(this.o,"autoplay",Of("YTP_AUTOPLAY_COUNTDOWN_2",{SECONDS_LEFT:Math.ceil(b/1E3)}));1E4<=a?this.select(!0):this.j&&this.j.start()};function $D(a){a.j||(a.C=y(),a.j=new Bv(a.Ln,50,a),R(a,a.j),a.Ln(),144E5<aE(a.$.R())&&YD(a));N(a.element,"videowall-still-autoplay");gh(a.element,"videowall-still-autoplay-paused")}function YD(a){a.j&&(S(a.j),a.j=null)}
function bE(a){YD(a);a.C=y();a.Ln();fh(a.element,["videowall-still-autoplay","videowall-still-autoplay-paused"])}f.Iq=function(a){a.preventDefault();cE(this)&&(this.$.R().experiments.A&&this.H.log({cancelButtonClick:"1"}),this.publish("autonavchangerequest",1))};function dE(a){cE(a)&&(YD(a),O(a.element,"videowall-still-autoplay",!1),a.element.blur(),a.publish("autonavchangerequest",1))}function cE(a){return eh(a.element,"videowall-still-autoplay")}
f.vF=function(a){!1!==a.Lb.returnValue&&kv(a)&&(this.select(!1),a.preventDefault())};f.wF=function(a){switch(a.keyCode){case 13:case 32:!1!==a.Lb.returnValue&&(this.select(),a.preventDefault())}};f.L=function(){dE(this);WD.J.L.call(this)};function eE(a,b,c){zD.call(this,a,b,"videowall-endscreen");this.H=c;this.j=[];this.A=this.o=null;this.C=!1;this.G=new Bv(ra(N,this.element,"ytp-animate-tiles"),0);R(this,this.G);this.D=new Yu(["div","ytp-endscreen-content"]);R(this,this.D);this.D.Y(this.element);this.hide()}z(eE,zD);eE.C=96;eE.B=54;eE.k=1;eE.j=2;f=eE.prototype;
f.create=function(){eE.J.create.call(this);var a=this.k.getVideoData();a&&(this.o=a.M);this.Xf();this.Wa.subscribe("onResize",this.Xf,this);this.Wa.subscribe("videodatachange",this.M,this);this.Wa.subscribe("autonavchange",this.K,this)};f.destroy=function(){this.Wa.unsubscribe("onResize",this.Xf,this);this.Wa.unsubscribe("videodatachange",this.M,this);wi(this.j);this.o=[];this.j=[];eE.J.destroy.call(this)};f.Oh=function(){return 1!=this.k.getVideoData().yd};
function fE(a){a=a.k.R();return a.experiments.o&&"detailpage"==a.ea}function gE(a){return fE(a)&&a.Oh()&&!a.A}
f.show=function(){eE.J.show.call(this);this.G.start();if(this.C||this.A&&this.A!=this.k.getVideoData().za)this.A=null,this.C=!1,this.Xf();var a=!this.A&&!!this.j[0].B&&fE(this)&&this.Oh();fE(this)&&this.k.R().experiments.A&&this.H.log({cancelButtonShow:a?"1":"0",state:this.Oh()?"enabled":"disabled"});a?(2==this.k.getVideoData().yd?$D(this.j[0]):3==this.k.getVideoData().yd&&bE(this.j[0]),this.j[0].subscribe("autonavchangerequest",this.I,this)):this.A=this.k.getVideoData().za};
f.hide=function(){eE.J.hide.call(this);this.B&&(this.j[0].unsubscribe("autonavchangerequest",this.I,this),dE(this.j[0]))};
f.Xf=function(){if(this.o&&this.o.length){var a=this.element,b;t:{if(eh(this.k.Ka(),"ad-showing")&&(b=wd("ad-container"))){b=Pg(b).height+20;break t}b=0}wg(a,"marginBottom",b+"px");var a=Pg(this.element),c=eE.C,d=eE.B,e=a.width/a.height,g=c/d,h=b=0,k=Math.max(a.width/c,2),l=Math.max(a.height/d,2);gE(this)&&(k=l=Math.min(k,l));for(var p=this.o.length,t=Math.pow(eE.j,2),w=p*t,J=hE(this,0,l,k),la=hE(this,1,l,k),w=w+(Math.pow(J,2)-t),w=w+(Math.pow(la,2)-t);0<w&&(b<k||h<l);){var Y=b/eE.j,da=h/eE.j,pa=
b<=k-eE.j&&w>=da*t,Me=h<=l-eE.j&&w>=Y*t;if(Y/da*g>e&&Me)w-=Y*t,h+=eE.j;else if(pa)w-=da*t,b+=eE.j;else if(Me)w-=Y*t,h+=eE.j;else break}g=!1;k=eE.j+J;w>=3*t&&6>=p*t-w&&(h>=k||b>=k)&&la<=eE.j&&(g=!0);c*=b;p=h*d;d=1;d=c/p<e?a.height/p:a.width/c;d=Math.min(d,eE.A);c*=d;p*=d;c*=Lc(a.width/c||1,1,eE.o);p*=Lc(a.height/p||1,1,eE.o);c=Math.floor(Math.min(a.width,c));p=Math.floor(Math.min(a.height,p));gE(this)&&(c=a.width);e=this.D.N();Mg(e,c,p);wg(e,{marginLeft:c/-2+"px",marginTop:p/-2+"px"});d=c+eE.k;t=p+
eE.k;c=0;w=!1;for(k=0;k<b;k++)for(l=0;l<h;l++)if(da=la>eE.j&&1<=c&&!w?c+1:c,Y=0,g&&k>=b-eE.j&&l>=h-eE.j?Y=1:0==l%eE.j&&0==k%eE.j&&(l<J&&k<J?0==l&&0==k&&(Y=J):la>eE.j&&l>=h-la&&k>=b-la?l==h-la&&k==b-la&&(w=!0,da=1,Y=la):Y=eE.j),0!=Y){p=this.j[c];p||(p=new WD(this.k,this.H),this.j[c]=p,pa=p.N(),e.appendChild(pa));p.qj(this.o[da],2<Y);var da=Math.floor(t*l/h),pa=Math.floor(d*k/b),Me=Math.floor(t*(l+Y)/h)-da-eE.k,he=Math.floor(d*(k+Y)/b)-pa-eE.k;gE(this)&&(pa=0,he=a.width);Cg(p.N(),pa,da);Mg(p.N(),he,
Me);wg(p.N(),"transitionDelay",(l+k)/50+"s");O(p.N(),"videowall-still-mini",1==Y);O(p.N(),"videowall-still-takeover",0==c&&gE(this));c++}for(a=this.j.length-1;a>=c;a--)p=this.j[a],Ld(p.N()),S(p);this.j.length=c}};eE.A=1.42;eE.o=1.21;eE.prototype.M=function(){var a=this.k.getVideoData().M;this.o!=a&&(this.o=a,this.Xf())};
eE.prototype.K=function(a){var b=this.j[0]&&cE(this.j[0]);1==a?(this.C=!1,this.A=this.k.getVideoData().za,b&&dE(this.j[0]),this.j[0]&&this.Xf()):(this.C=!0,b&&(2==a?$D(this.j[0]):3==a&&bE(this.j[0])))};eE.prototype.I=function(a){this.K(a);this.publish("autonavchangerequest",a)};function hE(a,b,c,d){a.k.R();var e=a.o.length;return 0==b&&gE(a)?eE.j*Math.floor(Math.min(c,d)/eE.j):0==b&&c>=3*eE.j&&d>=3*eE.j&&1<=e&&1==a.o[0].episodic?2*eE.j:eE.j};function iE(a){Ds.call(this,a);Nf({});this.ua="endscreen";this.sc="end";this.k=null;var b=a.R();jE(a)?this.k=new eE(this.j,this.P,this):b.Yg?(a=b.experiments.G,b=new ED(this.j,this.P,a),a&&P(b.j.N(),"click",x(this.MC,this)),this.k=b):this.k=new zD(this.j,this.P);this.k.Y(this.j.Ka())}z(iE,Ds);function kE(a){return lE(a.R())&&1==Oq(a.app).getPlayerType()}function jE(a){a=a.R();return a.Cc&&!a.Yg}f=iE.prototype;f.Ea=function(a){return kE(a)};
f.create=function(){iE.J.create.call(this);mE(this);this.j.getVideoData().subscribe("dataupdated",this.Br,this)};f.destroy=function(){this.j.getVideoData().unsubscribe("dataupdated",this.Br,this);Es(this);this.k.B&&this.k.destroy();iE.J.destroy.call(this)};f.load=function(){iE.J.load.call(this);this.k.show();if(this.j.R().Yg&&.01>Math.random()){var a=this.j.R().experiments.G;this.log({trailerEndscreenShow:1,watchNext:a?1:0})}};f.unload=function(){iE.J.unload.call(this);this.k.hide()};
f.zc=function(a){iE.J.zc.call(this,a);var b=this.j.getVideoData(),c=!jE(this.j)||!(!b.M||!b.M.length);this.j.R();var b=tv(b,"ypc_module"),d=nE(this.j.app);!c||b||d||(this.k.B||this.k.create(),"load"==a.getId()&&this.load())};f.Qc=function(a){"load"==a.getId()&&this.loaded&&this.unload();iE.J.Qc.call(this,a)};f.Br=function(){Es(this);mE(this)};f.MC=function(a){var b=this.k.j.videoId,b=XD(this.j.R(),b,null);Is(this,b,a.ctrlKey)};
function mE(a){var b=Math.max(1E3*(a.j.getVideoData().lengthSeconds-10),0),b=new ss(b,2147483647,{id:"preload"}),c=new ss(2147483647,2147483647,{id:"load",priority:6});a.sd(b,c)}function oE(a){return kE(a)?new iE(a):null};function pE(){X.call(this,["div","ytp-playlist-tray-index-length",["span","ytp-playlist-tray-index","{{index}}"]," / ",["span","ytp-playlist-tray-length","{{length}}"]])}z(pE,X);pE.prototype.oj=function(a){cv(this.template,"index",a+1)};function qE(a){ZA.call(this,a,"ytp-button-expand",Z(0,"YTP_ST_EXPAND"),"ytp-button-collapse",Z(0,"YTP_ST_COLLAPSE"));Jz(this,3050);this.element.setAttribute("aria-haspopup",!0);this.pa([["div","ytp-button-playlist-icon"],["div","ytp-button-playlist-text",Z(0,"YTP_PLAYLIST")]])}z(qE,ZA);function rE(a){X.call(this,["div","ytp-playlist-tray-controller"]);this.j=new qE(a);this.j.Y(this.template.N());R(this,this.j);this.k=new pE;this.k.Y(this.template.N());R(this,this.k)}z(rE,X);function sE(a,b){var c=tE(a,"default.jpg");X.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.listen("keypress",this.k)}z(sE,X);
sE.prototype.oj=function(a){a=this.j==a;O(this.element,"ytp-playlist-tray-item-current",a);this.element.setAttribute("aria-checked",a)};sE.prototype.k=function(a){if(13==a.keyCode||32==a.keyCode)a.preventDefault(),this.Ub("click")};function uE(){yD.call(this,["div","ytp-playlist-tray-tray",{role:"menu"}]);this.j=null;this.k=[]}z(uE,yD);function vE(a,b){a.j&&a.j.unsubscribe("shuffle",a.o,a);a.j=b;a.j.subscribe("shuffle",a.o,a);a.o()}uE.prototype.o=function(){wi(this.k);this.k=[];Kd(this.element);for(var a=0;a<=this.j.jc-1;++a){var b=fr(this.j,a);b&&(b=new sE(b,a),b.oj(this.j.Ra),this.k.push(b),b.listen("click",x(this.A,this,a)),b.Y(this.element))}};uE.prototype.A=function(a){this.publish("playvideoat",a)};
uE.prototype.L=function(){wi(this.k);this.k=[];Kd(this.element);uE.J.L.call(this)};function wE(a){Ds.call(this,a);var b=a.Ka();this.F=a.app.o.k;this.C=!1;this.o=this.A=null;this.D=wd("ytp-button-playlist",b);P(this.D,"click",x(this.Vq,this));this.k=this.B=null}z(wE,Ds);f=wE.prototype;f.ua="playlist";
f.create=function(){wE.J.create.call(this);xE(this,this.j.rd());this.B=new Yu(["div",["ytp-playlist-tray-container","ytp-player-content"]]);this.B.Y(this.j.Ka());this.o=new uE;this.o.subscribe("playvideoat",this.Er,this);this.o.Y(this.B.N(),0);this.k=new rE(this.F);this.k.Y(wd("html5-title",void 0),0);this.k.j.listen("click",this.Vq,this);this.subscribe("fullscreentoggled",this.Pq,this);this.subscribe("videodatachange",this.Ft,this);this.subscribe("clearvideooverlays",this.As,this);this.Fj()};
f.Fj=function(){var a=this.j.ct(),b=this.k.k;null!=a?b.show():b.hide();this.k.k.oj(a);a=this.j.rd();cv(this.k.k.template,"length",a.jc)};f.destroy=function(){wE.J.destroy.call(this);xE(this,null);this.unsubscribe("fullscreentoggled",this.Pq,this);this.unsubscribe("videodatachange",this.Ft,this);this.unsubscribe("clearvideooverlays",this.As,this);Ld(this.B.N());this.o.dispose();this.o=null;this.B.dispose();this.B=null;Ld(this.k.N());this.k.dispose();this.k=null};
f.load=function(){this.publish("command_clear_video_overlays",!0);wE.J.load.call(this);this.C||(vE(this.o,this.A),this.C=!0);for(var a=this.o,b=0;b<a.k.length;b++)a.k[b].oj(a.j.Ra);bB(this.k.j)};f.unload=function(){wE.J.unload.call(this);this.C=!1;cB(this.k.j)};f.As=function(){this.loaded&&this.unload()};f.Er=function(a){this.j.Dn(a);this.publish("command_clear_video_overlays",!1)};f.Vq=function(){this.loaded?this.publish("command_clear_video_overlays",!1):this.load()};
f.Pq=function(a){var b=this.j.R().ea;this.loaded&&!a&&"detailpage"==b&&this.publish("command_clear_video_overlays",!1)};f.Ft=function(){xE(this,this.j.rd());this.C&&vE(this.o,this.A);this.Fj()};function xE(a,b){a.A&&a.A.unsubscribe("shuffle",a.Fj,a);a.A=b;a.A&&a.A.subscribe("shuffle",a.Fj,a)}wE.Ea=function(a){return!!a.rd()&&!0};wE.prototype.Ea=function(a){return wE.Ea(a)};wE.prototype.Rm=function(a){return!wE.Ea(a)};wE.j=function(a){return wE.Ea(a)?new wE(a):null};
wE.prototype.L=function(){this.o.unsubscribe("playvideoat",this.Er,this);Gh(this.D);wE.J.L.call(this)};function yE(a){bg("/gen_204?"+a,void 0)}function zE(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=Ke("/sharing_services",a);bg(h)};function AE(a,b){Q.call(this);this.j=a;this.k=!!b}z(AE,Q);function BE(a,b,c){if(c)if(a.k)c({id:b,fmt_list:[{itag:18,lmt:14200992E5}]});else{var d;a.j&&(d=CE(a.j));d&&b?(d=[d,"cache/videos",b,"metadata"].join("/"),Aj(d,{format:"JSON",method:"GET",context:a,timeout:600,ab:function(a,d){c(d);DE("success",{v:b})},onError:function(){DE("error",{v:b});c({})},De:function(){DE("timeout",{v:b});EE("__notfound__");c({})}})):c({})}}
function DE(a,b){var c={a:"spacecast",module:"cache",request:"meta",status:a};dc(c,b);yE(Ie(c))}AE.prototype.L=function(){this.j=null;AE.J.L.call(this)};function FE(a){Q.call(this);(this.j=a)&&EE("//"+a)}z(FE,Q);function CE(a){var b;(b=(b=$i("yt-spacecast-uri"))&&b.hasOwnProperty("uri")?b.uri:null)?"__notfound__"==b&&(b=null):b=a.j?"//"+a.j:null;return b}function EE(a){var b=$i("yt-spacecast-uri");b||(b={});a?b.uri=a:delete b.uri;Yi("yt-spacecast-uri",b)};function GE(){Q.call(this);this.k=this.j=null}z(GE,Q);ba(GE);GE.prototype.init=function(a){this.j||(this.j=new FE(a||null),this.k=new AE(this.j))};GE.prototype.L=function(){this.k&&(this.k.dispose(),this.k=null);this.j&&(this.j.dispose(),this.j=null);GE.J.L.call(this);delete GE.Db};function HE(a){Ds.call(this,a);this.sc=this.ua="spacecast";this.k=null}z(HE,Ds);f=HE.prototype;f.Ea=function(){return!!this.j.getVideoData().gb};function IE(a){return a.getVideoData().gb?new HE(a):null}f.create=function(){HE.J.create.call(this);var a=this.j.getVideoData().gb,b=GE.getInstance();b&&b.init(a);this.k=b;this.load()};f.destroy=function(){HE.J.destroy.call(this);this.k=null};
f.load=function(){HE.J.load.call(this);var a=this.j.getVideoData().videoId,b=this.k.k,c=y(),c=x(this.Ey,this,a,c),d=window.spacecastMeta;d&&d.id&&d.id==a?(c(d),DE("prefetch",{v:a})):BE(b,a,c)};f.Ey=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={};C(c,function(a){a.itag&&(g[a.itag.toString()]=!0)});if(c=JE(this,CE(this.k.j),e,g))d=this.j.getVideoData(),d.da=c,KE(d),this.j.En("auto"),d=1}}Fs(this);yE(Ie({a:"spacecast",module:"player",v:a,docid:a,cached:d,"cache-latency":b}))};
function JE(a,b,c,d){if(!b)return null;a=a.j.getVideoData();a=LE(a.Ke);a=gb(a,function(a){return!!d[a.itag]});if(!a.length)return null;var e=qj(b)||"",g=Number(ze(b)[4]||null)||null;return D(a,function(a){var b=K(K(Ue(Se(mf(a.url),e),g),"orig_host",rj(a.url)),"scid",c);a.url=b.toString();return Ie(a)}).join(",")};function ME(){var a=Qc,b;if(b=Rt())t:{if(navigator.plugins&&0<navigator.plugins.length)for(b=0;b<navigator.plugins.length;b++)if(0<=navigator.plugins[b].name.indexOf("NVIDIA 3D Vision")){b=!0;break t}b=!1}if(b)t:{var c=navigator.userAgent.match(/Firefox[\/\s](\d+\.\d+)/);if(c&&1<c.length&&4<=c[1]){c=document.createElement("embed");c.setAttribute("id","NvImageDetectionFFID");c.setAttribute("style","visibility: hidden");c.setAttribute("width",25);c.setAttribute("height",25);c.setAttribute("type","image/jps");
Jd(document.documentElement,c);c=td("NvImageDetectionFFID");try{if(null!=c){b=27527<=c.NvGetDriverVersion();break t}}catch(d){}}b=!1}return b||!(!a||-1==a.indexOf("Sony"))};function NE(a){Fz.call(this);this.label=Z(0,"YTP_THREED_SHORT");this.element=new Kz(a,[Z(0,"YTP_OFF"),Z(0,"YTP_ON")]);R(this,this.element);this.element.bb(this.label);Mz(this.element,2100);this.priority=10;this.B=!0;this.Da(0)}z(NE,Fz);NE.prototype.G=function(){this.element.Ub("select")};NE.prototype.getSelected=function(){return this.element.getSelected()};NE.prototype.Da=function(a){this.element.Da(a)};function OE(a){X.call(this,["span"]);this.element.innerHTML=a}z(OE,X);function PE(a){var b=["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-title",Z(0,"YTP_THREED_HTML5_WARNING_DIALOG_TITLE")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Z(0,"YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE");this.j=new Gz(a,"ytp-dialog-button",b);R(this,this.j);this.j.pa(b);b=Z(0,"YTP_CLOSE");this.k=new Gz(a,"ytp-dialog-button",b);this.k.pa(b);R(this,this.k);this.template.update({content:new OE(Z(0,"YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE",
{BEGIN_LINK:'<a href="//support.google.com/youtube/bin/answer.py?answer=1229982">',END_LINK:"</a>"})),buttons:[this.j,this.k]})}z(PE,fB);function QE(a){Ds.call(this,a);Nf({YTP_THREED_HTML5_WARNING_DIALOG_TITLE:"No HTML5 3D hardware detected",YTP_THREED_HTML5_WARNING_DIALOG_MESSAGE:"Get $BEGIN_LINKhelp setting up HTML5 3D$END_LINK, or change 3D viewing modes.",YTP_THREED_HTML5_WARNING_DIALOG_CHANGE_MODE:"Change 3D viewing mode"});this.k=new NE(Rs(this));R(this,this.k);this.k.Da(1);this.k.listen("change",this.mF,this);this.k.listen("select",this.nF,this);this.o=new PE(Rs(this));R(this,this.o);this.o.j.listen("click",this.Eo,this);this.o.k.listen("click",
this.zg,this)}z(QE,Ds);f=QE.prototype;f.Qm="threeDModuleData";f.ua="threed";f.sc="threed";f.create=function(){RE(this.j.app,void 0);Us(this,this.k);QE.J.create.call(this)};f.destroy=function(){Vs(this,this.k);RE(this.j.app,!0);QE.J.destroy.call(this)};function SE(a){return QE.prototype.Ea(a)?new QE(a):null}f.Ea=function(a){a=a.getVideoData();return ME()?!!a.na||!!a.ws:!1};
function TE(a,b){if(a.j.getVideoData().$g!=b)if(Hs(a),ME()){var c=a.j.app,d=Oq(c);d.j.j&&d.j.j.j||(d.j.$g=!d.j.$g,KE(d.j),Qq(d,"r"));RE(c)}else b&&(Hs(a,a.o),a.k.Da(0),Ws(a))}f.Eo=function(){Is(this,"/select_3d_mode?video_id="+this.j.getVideoData().videoId)};f.mF=function(){1==this.k.getSelected()?TE(this,!0):TE(this,!1)};f.nF=function(){Ws(this);this.Eo()};function UE(a){Fz.call(this);this.j=2;this.label=Z(0,"YTP_THREED_SHORT");this.menu=new qB(a,x(this.o,this),x(this.C,this));R(this,this.menu);this.element=new lB(a,Z(0,"YTP_WEBGL_ANAGLYPH"),this.menu);R(this,this.element);nB(this.element,100);rB(this.menu,[0,1,2]);a=2100;uB(this.menu,a++);a=a++;Jz(this.element.j,a);VE(this,this.j);this.priority=1;this.A=!0}z(UE,Fz);function VE(a,b){a.j=b;a.menu.Da(b);a.element.Rd(a.o(b))}
UE.prototype.o=function(a){switch(a){case 0:return Z(0,"YTP_OFF");case 1:return Z(0,"YTP_WEBGL_3D_2D");case 2:return Z(0,"YTP_WEBGL_3D_ANAGLYPH")}return"."};UE.prototype.C=function(a){this.element.de();VE(this,a);this.element.Ub("change")};function WE(a,b,c){this.B=null;this.A=-1;this.o=a.getVideoData().la;0!=this.o||"LR"!=a.getVideoData().vc("yt3d:enable")&&"true"!=a.getVideoData().vc("yt3d:enable")||(this.o=1);this.j=new UE(a.app.o.k);this.j.listen("change",this.CF,this);this.j.listen("change",c,this);this.k=null;this.C=!0;Us(b,this.j);R(b,this.j)}function XE(a){if(ME())return!1;a=a.getVideoData();var b;(b=1==a.la||2==a.la)||(b=a.vc["3D"])||(a=a.vc("yt3d:enable"),b="true"==a||"LR"==a||"RL"==a);return b?!0:!1}f=WE.prototype;f.ni=function(){return"attribute vec3 aVertPos;attribute vec2 aTexCrd;varying vec2 vTexCrd;void main(void) {  vTexCrd = aTexCrd;  gl_Position = vec4(aVertPos, 1.0);}"};
f.ji=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.Si=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.A=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.A);this.k=a.getUniformLocation(b,"mode");a.uniform1i(this.k,this.j.j);var c=1==this.o;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.Qi=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.Ni=4;this.B=b};f.Ri=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.B);a.vertexAttribPointer(this.A,this.B.j,a.FLOAT,!1,0,0)};f.ak=function(){};f.$j=function(){};f.Zj=function(){};f.$h=function(a,b){this.C&&a.uniform1i(this.k,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.Yi=function(){return!0};f.hj=function(){return!1};f.CF=function(){this.C=!0};f.destroy=function(a){Vs(a,this.j)};function YE(){this.j=new Float32Array(16);this.o=new Float32Array(16);this.k=new Float32Array(16);this.identity()}YE.prototype.identity=function(){this.j.set([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])};YE.prototype.get=function(){return this.j};
function ZE(a,b){for(var c=0;16>c;c+=4)a.k[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.k[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.k[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.k[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.k;a.k=c};function $E(){this.B=new YE;this.H=this.G=this.I=this.F=this.K=null;this.j=.872;this.C=!0;this.D=this.A=this.k=this.o=0}function aF(a){if(!a.k)return!1;for(var b in a.k.j){var c=a.k.j[b].info.video;if(c&&2==c.projectionType)return!0}return!1}f=$E.prototype;f.ni=function(){return"attribute vec3 aVertPos;\nvarying vec3 pos;\nvoid main() {\n  gl_Position = vec4(aVertPos.xyz, 1.0);\n  pos = aVertPos;\n}"};f.ji=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.Si=function(a,b){this.K=a.getUniformLocation(b,"uVMat");this.G=a.getUniformLocation(b,"uFOVx");this.H=a.getUniformLocation(b,"uFOVy");this.I=a.getUniformLocation(b,"uSplr");a.uniform1i(this.I,0)};f.Qi=function(a){this.F=a.createBuffer();a.bindBuffer(a.ELEMENT_ARRAY_BUFFER,this.F);a.bufferData(a.ELEMENT_ARRAY_BUFFER,new Uint16Array([0,1,2,1,2,3]),a.STATIC_DRAW)};f.Ri=function(){};
f.$j=function(a){switch(a.keyCode){case 65:case 97:case 68:case 100:case 87:case 119:case 83:case 115:case 187:case 107:case 109:case 189:0==this.A&&(this.D=Date.now()),this.A=a.keyCode}};f.ak=function(){this.A=0};f.Zj=function(a,b){this.o+=3.1415*a*this.j;this.k+=3.1415*b*this.j;this.C=!0};
f.$h=function(a,b,c,d){if(this.A){c=Date.now();var e=.003*this.j*(c-this.D);switch(this.A){case 65:case 97:this.o+=e;break;case 68:case 100:this.o-=e;break;case 87:case 119:this.k+=e;break;case 83:case 115:this.k-=e;break;case 187:case 107:this.j+=e;this.j=Math.min(this.j,2);break;case 109:case 189:this.j-=e,this.j=Math.max(this.j,.26)}this.D=c;this.C=!0}if(this.C){a.uniform1f(this.G,this.j);a.uniform1f(this.H,this.j/ww);this.k=Lc(this.k,-1.57075,1.57075);this.B.identity();c=this.B;var g=this.k,e=
Math.sin(g),g=Math.cos(g);c.o.set([1,0,0,0,0,g,e,0,0,-e,g,0,0,0,0,1]);ZE(c,c.o);c=this.B;g=this.o;e=Math.sin(g);g=Math.cos(g);c.o.set([g,0,-e,0,0,1,0,0,e,0,g,0,0,0,0,1]);ZE(c,c.o);a.uniformMatrix4fv(this.K,!1,this.B.get());this.C=!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.F);a.drawElements(a.TRIANGLES,6,a.UNSIGNED_SHORT,
0)};f.Yi=function(){return!1};f.hj=function(){return 0!=this.A};f.destroy=function(){};function bF(){this.k=null;this.j=-1}f=bF.prototype;f.ni=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.ji=function(){return"precision mediump float;\nuniform sampler2D uSplr;\nvarying vec2 vTexCrd;\nvoid main(void) {\n  gl_FragColor = texture2D(uSplr, vTexCrd);\n}"};
f.Si=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.Qi=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.Ni=4;this.k=b};f.Ri=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.k);a.vertexAttribPointer(this.j,this.k.j,a.FLOAT,!1,0,0)};f.ak=function(){};f.$j=function(){};f.Zj=function(){};
f.$h=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.Yi=function(){return!0};f.hj=function(){return!1};f.destroy=function(){};function cF(){this.A=null;this.o=-1;this.j=43758.5453;this.k=null}f=cF.prototype;f.ni=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.ji=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.Si=function(a,b){b.j=a.getUniformLocation(b,"uSplr");a.uniform1i(b.j,0);this.k=a.getUniformLocation(b,"seed");a.uniform1f(this.k,this.j);this.o=a.getAttribLocation(b,"aTexCrd");a.enableVertexAttribArray(this.o)};f.Qi=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.Ni=4;this.A=b};f.Ri=function(a){a.bindBuffer(a.ARRAY_BUFFER,this.A);a.vertexAttribPointer(this.o,this.A.j,a.FLOAT,!1,0,0)};f.ak=function(){};
f.$j=function(){};f.Zj=function(){};f.$h=function(a,b){this.j+=1;a.uniform1f(this.k,this.j);a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,b);a.drawArrays(a.TRIANGLE_STRIP,0,4)};f.Yi=function(){return!0};f.hj=function(){return!1};f.destroy=function(){};function dF(a,b,c,d){this.T=c;this.o=a.app.o.j;this.G=10;this.B=!0;this.O=this.K=this.M=this.A=this.k=null;this.D=b;this.j=null;this.S=a;this.I=d;this.F=this.C=-1;this.H=!1}
function eF(a){a.k=document.createElement("canvas");if(!a.k)return 1;a.T(a.k);try{a.A=a.k.getContext("webgl")}catch(b){return 2}if(null==a.A)return 3;fF(a);var c=gF(a);if(0!=c)return c;a.k.addEventListener("click",a.yF.bind(a),!0);a.k.addEventListener("mousedown",a.zF.bind(a));a.k.addEventListener("mousemove",a.AF.bind(a));a.k.addEventListener("mouseup",a.BF.bind(a));var c=a.A,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.K=d;a.j.Qi(c);c=a.A;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.M=d;c=a.A;c.clearColor(0,0,0,1);c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT);c.bindBuffer(c.ARRAY_BUFFER,a.K);c.vertexAttribPointer(a.P,3,c.FLOAT,!1,0,0);c.activeTexture(c.TEXTURE0);
c.bindTexture(c.TEXTURE_2D,a.M);a.j.Ri(c);a.Od();a.o.crossOrigin="use-credentials";return 0}
function gF(a){var b=a.A,c=b.createShader(b.VERTEX_SHADER);b.shaderSource(c,a.j.ni());b.compileShader(c);if(!b.getShaderParameter(c,b.COMPILE_STATUS))return 4;var d=b.createShader(b.FRAGMENT_SHADER);b.shaderSource(d,a.j.ji());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.P=b.getAttribLocation(e,"aVertPos");b.enableVertexAttribArray(a.P);a.O=e;a.j.Si(b,a.O);return 0}f=dF.prototype;f.Od=function(){this.A&&(this.o.videoWidth||this.o.videoHeight)&&(fF(this),this.j.$h(this.A,this.o,this.K,this.M));(this.B||this.j.hj())&&requestAnimationFrame(this.Od.bind(this))};
function fF(a){if(0==a.G&&null!=a.o.offsetParent){if(a.j.Yi())var b=a.o.offsetWidth,c=a.o.offsetHeight,d=a.o.offsetTop;else b=a.o.offsetParent.offsetWidth,d=a.o.offsetParent.offsetHeight;c=9*b/16;a.k.top=d;a.k.width=b;a.k.height=c;a.A.k=b;a.A.j=c;a.A.viewport(0,0,b,c)}}f.yF=function(a){this.H&&(a.stopPropagation(),this.H=!1)};f.zF=function(a){this.C=a.x;this.F=a.y};
f.AF=function(a){-1!=this.C&&this.j&&(this.j.Zj((a.x-this.C)/this.k.width,(a.y-this.F)/this.k.height),this.C=a.x,this.F=a.y,this.H=!0,this.B||requestAnimationFrame(this.Od.bind(this)))};f.BF=function(){this.F=this.C=-1};f.SB=function(){this.B||requestAnimationFrame(this.Od.bind(this));Ws(this.I)};function hF(a){a.k&&(Ld(a.k),a.k=null);a.A=null;a.B=!1;a.j&&a.j.destroy(a.I);a.j=null;a.o.removeAttribute("crossorigin");a.o.hidden=!1;a.G=10};function iF(a){Ds.call(this,a);this.Xj=!0;this.ua="webgl";this.subscribe("onResize",this.rF,this);this.subscribe("onKeyPress",this.pF,this);this.subscribe("onKeyDown",this.oF,this);this.subscribe("onKeyUp",this.qF,this);this.subscribe("onStateChange",this.Vi,this);this.B=H("DIV",jF.Gu);Gs(this,this.B);this.A=a;a=window.localStorage["yt-html5-player-module-webgl-shadertype"];if(void 0==a||null==a)if(a="",XE(this.A))a="Anaglyph3D";else{var b=this.A.getVideoData();aF(b)&&this.A.R().experiments.spherical?
a="Spherical":this.A.R().experiments.D&&(a="NoOp")}this.k=new dF(this.A,a.toString(),x(this.B.appendChild,this.B),this);this.o=!1}z(iF,Ds);var jF={Gu:"video-annotations"};iF.j=function(a){return iF.Ea(a)?new iF(a):null};iF.prototype.Ea=function(){return iF.Ea(this.j)};iF.Ea=function(a){var b;(b=XE(a)&&a.R().experiments.ka)||(b=a.getVideoData(),b=aF(b)&&a.R().experiments.spherical);return b||a.R().experiments.D?!0:!1};f=iF.prototype;f.rF=function(){this.o&&fF(this.k)};
f.pF=function(){if(this.o){var a=this.k;a.j&&(a.B||requestAnimationFrame(a.Od.bind(a)))}};f.qF=function(a){if(this.o){var b=this.k;b.j&&(b.j.ak(a),b.B||requestAnimationFrame(b.Od.bind(b)))}};f.oF=function(a){if(this.o){var b=this.k;b.j&&(b.j.$j(a),b.B||requestAnimationFrame(b.Od.bind(b)))}};f.Vi=function(a){if(this.o){var b=this.k,c=b.B;b.B=W(a.state,8);b.B&&!c&&requestAnimationFrame(b.Od.bind(b))}};f.L=function(){iF.J.L.call(this)};
f.create=function(){var a=this.k;a.j=null;null!=a.D&&("Anaglyph3D"==a.D?a.j=new WE(a.S,a.I,a.SB.bind(a)):"Spherical"==a.D?a.j=new $E:"WhiteNoise"==a.D?a.j=new cF:"NoOp"==a.D&&(a.j=new bF));a.j&&(a.G=eF(a),0==a.G?a.o.hidden=!0:(a.S.app.k.Tj(new wq("html5.missingapi.webgl",!1)),hF(a)));this.o=null!=this.k.j;iF.J.create.call(this)};f.destroy=function(){hF(this.k);this.o=!1;iF.J.destroy.call(this)};function kF(a){Ds.call(this,a);Nf({YTP_YPC_START_RENTAL_HEADER:"Would you like to start this rental?",YTP_YPC_START_RENTAL_BUTTON:"Start rental period"});this.o=this.k=null}z(kF,Ds);f=kF.prototype;f.ua="ypc_clickwrap";f.sc="ypc-clickwrap";f.Ea=function(){return tv(this.j.getVideoData(),"ypc_clickwrap_module")};function lF(a){return tv(a.getVideoData(),"ypc_clickwrap_module")?new kF(a):null}f.create=function(){kF.J.create.call(this);this.load()};
f.load=function(){kF.J.load.call(this);this.k=new Yu(["div",["ytp-ypc-clickwrap-overlay","ytp-player-content"],["h2","ytp-ypc-clickwrap-header",Of("YTP_YPC_START_RENTAL_HEADER")],["div","ytp-ypc-clickwrap-description",this.j.getVideoData().A.ypc_clickwrap_message],["button","ytp-ypc-clickwrap-confirm",Of("YTP_YPC_START_RENTAL_BUTTON")]]);this.k.Y(this.j.Ka());R(this,this.k);this.o=this.k.j["ytp-ypc-clickwrap-confirm"];P(this.o,"click",x(this.AA,this))};
f.unload=function(){kF.J.unload.call(this);Gh(this.o);this.k.detach();this.k.dispose();this.k=null};f.AA=function(){Fs(this);this.destroy()};function mF(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))Vc&&-1!=c.indexOf(";")&&(c="'"+c.replace(/'/g,"%27")+"'"),b.opener=null,c=Ba(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 nF(a,b){var c;c=b||{};c.target=c.target||a.target||"YouTube";c.width=c.width||600;c.height=c.height||600;(c=mF(a,c))?(c.opener||(c.opener=window),c.focus()):c=null;return!c};function oF(a){a=a.A;this.o=a.ypc_offer_button_text;this.description=a.ypc_offer_description;this.B=a.ypc_offer_headline;this.A=a.ypc_full_video_message;this.offerId=a.ypc_offer_id;this.j=a.ypc_buy_url;this.thumbnail=a.ypc_item_thumbnail;Vf(this.thumbnail)||(this.thumbnail="");this.title=a.ypc_item_title;this.k=a.ypc_item_url;this.videoId=a.ypc_vid};function pF(){X.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"];hv(this,this.template.j["ytp-drawer-close-button"],"click",this.hide);hv(this,a,"click",this.show);this.j=new Bv(ra(gh,this.element,"ytp-drawer-closed"),0);R(this,this.j);this.pa(null);this.hide()}z(pF,X);pF.prototype.hide=function(){this.j.stop();N(this.element,"ytp-drawer-closed")};
pF.prototype.pa=function(a){a?(pF.J.pa.call(this,a),ev(this.element,"block")):ev(this.element,"none")};pF.prototype.show=function(){this.j.start()};function qF(a,b){T.call(this);this.j=new pF;R(this,this.j);this.k=document.createElement("div");N(this.k,"html5-ypc-endscreen");this.A=document.createElement("div");N(this.A,"html5-ypc-overlay");this.o=new Yu(["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.o);this.B=
this.o.j["html5-ypc-purchase"];P(this.B,"click",x(this.C,this));Ud(this.A,b.A);var c=b.title;b.k&&(c=["a",{href:b.k,target:"blank_"},b.title]);var d="";b.thumbnail&&(d=["img",{src:b.thumbnail}]);this.o.update({heading:b.B,title:c,thumbnail_element:d,description:b.description,button_label:b.o});this.Y(a)}z(qF,T);qF.prototype.L=function(){qF.J.L.call(this);this.B&&Gh(this.B);Ld(this.k);Ld(this.A)};qF.prototype.Y=function(a){this.j.Y(a);this.j.pa(this.o.N());a.appendChild(this.k)};
function rF(a){var b=a.o.N();a.k.appendChild(b);a.j.pa(null);ev(a.k,"block")}qF.prototype.C=function(){this.publish("ypcContentRequest")};function sF(a){Ds.call(this,a);this.o=this.k=null;this.B=NaN;this.A=null}z(sF,Ds);f=sF.prototype;f.ua="ypc";f.sc="ypc";f.Ea=function(){return tv(this.j.getVideoData(),"ypc_module")};function tF(a){return tv(a.getVideoData(),"ypc_module")?new sF(a):null}f.create=function(){sF.J.create.call(this);this.k=new oF(this.j.getVideoData());L(x(this.uF,this),0);this.A=new X(["div",["ytp-player-content","ytp-ypc-player-content"]]);this.A.Y(this.j.Ka())};
f.destroy=function(){sF.J.destroy.call(this);this.k=null;this.A.detach();this.A.dispose();this.A=null};f.uF=function(){this.ce&&!this.loaded&&this.load()};
f.load=function(){sF.J.load.call(this);var a=this.j.getVideoData();if(this.k.videoId&&!a.oa)this.j.xt({video_id:this.k.videoId,ypc_preview:1});else{this.o=new qF(this.A.N(),this.k);this.o.subscribe("ypcContentRequest",this.DA,this);this.k.videoId&&Id(this.A.N(),this.o.A);if(lE(this.j.R())){var b=new ss(2147483647,2147483647,{priority:2});this.sd(b)}this.o.j.show();M(this.B);this.B=L(x(function(){this.o.j.hide()},this),1E4);this.k.videoId?a.oa&&Fs(this):rF(this.o)}};
f.unload=function(){Es(this);wi(this.o);this.o=null;sF.J.unload.call(this)};f.zc=function(a){sF.J.zc.call(this,a);rF(this.o)};f.Qc=function(a){sF.J.Qc.call(this,a);a=this.o;ev(a.k,"none");a.j.pa(a.o.N())};f.DA=function(){if(this.k.j)"embedded"==this.j.R().ea?mF(this.k.j):window.location=Ke(this.k.j,{})+"";else if(this.k.offerId){var a=r("yt.www.watch.player.handleEndPreview");a&&(this.j.isFullscreen()&&xx(this.j.app),a(this.k.offerId))}};function uF(a){this.A=Math.exp(Math.log(.5)/a);this.j=this.o=0}uF.prototype.k=function(a,b){var c=Math.pow(this.A,a);this.j=b*(1-c)+c*this.j;this.o+=a};uF.prototype.B=function(){return this.j/(1-Math.pow(this.A,this.o))};function vF(a){this.k=window.Float32Array?new Float32Array(a):Array(a);this.j=a-1}vF.prototype.add=function(a){this.j=(this.j+1)%this.k.length;this.k[this.j]=a};vF.prototype.forEach=function(a){for(var b=this.j+1;b<this.k.length;b++)a(this.k[b]||0);for(b=0;b<=this.j;b++)a(this.k[b]||0)};function wF(a,b,c){this.G=0;this.D=a;this.A=b||.5;this.C=c||0;this.F="index";this.j=0;this.o=[]}wF.prototype.k=function(a,b){xF(this,"index");this.o.push({index:this.G++,weight:a,value:b});this.j+=a;for(xF(this,"index");this.j>this.D;){var c=this.j-this.D,d=this.o[0];d.weight<=c?(this.j-=d.weight,this.o.shift()):(this.j-=c,d.weight-=c)}};function yF(a,b){xF(a,"value");var c=b*a.j,d=0,e=NaN;a.o.some(function(a){d+=a.weight;e=a.value;if(d>=c)return!0});return e}
wF.prototype.B=function(){return this.C?(yF(this,this.A-this.C)+yF(this,this.A)+yF(this,this.A+this.C))/3:yF(this,this.A)};function xF(a,b){a.F!=b&&(a.F=b,Db(a.o,b))};function zF(){this.j={}}function AF(a,b){var c=a.j[b]||{Ud:0,done:0,ys:0,Xo:0};return a.j[b]=c};function BF(a){this.policy=a;this.j=new zF;this.o=this.C=this.D=0;this.G=new vF(100);this.F=0;this.H=y();this.B=new wF(16,.6);this.A=new uF(4);this.policy.k?this.k=new uF(17):this.k=new wF(17,.5,.1);a=$i("yt-player-bandwidth")||{};this.k.k(this.policy.j,0<a.byterate?a.byterate:13E4);0<a.delay&&this.B.k(1,Math.min(+a.delay,2));0<a.tailDelay&&this.A.k(1,+a.tailDelay);this.o=y()}function CF(a,b,c){b=Math.max(b,.05);a.k.k(b,c/b);DF(a)}
function EF(a,b,c){isNaN(c)||(a.C+=c);isNaN(b)||(a.D+=b/1E3);DF(a)}function FF(a){a=a.B.B();a=isNaN(a)?.5:a;return a=Math.min(a,5)}function GF(a){return a.A.B()||0}function HF(a){a=a.k.B();return 0<a?a:1}function IF(a){var b={};b.delay=FF(a);b.tailDelay=GF(a);b.byterate=HF(a);return b}function JF(a){3E4<y()-a.o&&(tq(IF(a)),a.o=y())}function DF(a){var b=y();a.H=b;500<b-a.F&&(a.G.add(1/(1/HF(a)+GF(a))),a.F=b)}function KF(a){return 4E3<=y()-a.H};function LF(){this.j=.5;this.k=!1};function MF(a,b,c,d){this.name=a;this.language=b;this.xk=c;this.isDefault=d}MF.prototype.toString=function(){return this.name};function NF(a){this.k=a;this.B=this.A=this.C="";this.j={};this.o=""}NF.prototype.set=function(a,b){this.j[a]!==b&&(this.j[a]=b,this.o="")};NF.prototype.get=function(a){OF(this);return this.j[a]||null};function PF(a){a.o||(a.o=QF(a));return a.o}function RF(a){OF(a);return Lb(a.j,function(a){return null!==a})}
function OF(a){if(a.k){var b=a.k;if(!b||-1==b.search(Af))throw Error("Untrusted URL: "+a.k);b=mf(a.k);a.C=b.Jb;a.B=b.mb+(null!=b.md?":"+b.md:"");var c=b.Ib;if(0==c.indexOf("/videoplayback"))a.A="/videoplayback",c=c.substr(14);else if(0==c.indexOf("/api/manifest/")){var d=c.indexOf("/",14);0<d?(a.A=c.substr(0,d),c=c.substr(d+1)):(a.A=c,c="")}d=a.j;a.j=SF(c);sa(a.j,TF(b.np()));sa(a.j,d);a.k="";a.o=""}}
function QF(a){OF(a);var b=a.C+(a.C?"://":"//")+a.B+a.A;if(RF(a)){var c=[];Jb(a.j,function(a,b){null!==a&&c.push(b+"="+a)});a=c.join("&");b+="?"+a}return b}function SF(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 TF(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 UF(a,b){this.start=a;this.end=b;this.length=b-a+1}function VF(a){a=a.split("-");return 2==a.length&&(a=new UF(parseInt(a[0],10),parseInt(a[1],10)),!isNaN(a.start)&&!isNaN(a.end)&&!isNaN(a.length)&&0<a.length)?a:null}function WF(a,b){return new UF(a,a+b-1)}UF.prototype.toString=function(){return this.start+"-"+(null==this.end?"":this.end)};function XF(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 YF(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 ZF(a,b,c,d,e){this.duration=c;this.endTime=b+c;this.j=a;this.sourceURL=d;this.startTime=b;this.aa=e||null};function $F(){this.ia=[]}f=$F.prototype;f.nh=function(a){return(a=aG(this,a))?a.duration:0};f.Zk=function(a){return this.nh(a)};f.rg=function(){return this.ia[0].j};f.Hb=function(){return this.ia[this.ia.length-1].j};f.Tf=function(){return this.ia[this.ia.length-1].endTime};f.At=function(){return this.ia[0].startTime};f.ip=function(){return this.ia.length};f.Vj=function(){return 0};f.tg=function(a){return(a=bG(this,a))?a.j:-1};f.lp=function(a){return aG(this,a).sourceURL};
f.Se=function(a){return(a=aG(this,a))?a.startTime:0};f.Gn=function(){return 0<this.ia.length};function aG(a,b){var c=zb(a.ia,new ZF(b,0,0,""),function(a,b){return a.j-b.j});return 0<=c?a.ia[c]:null}function bG(a,b){var c=zb(a.ia,{startTime:b},function(a,b){return a.startTime-b.startTime});return 0<=c?a.ia[c]:a.ia[Math.max(0,-c-2)]}
f.append=function(a){if(0!=a.length)if(a=ub(a),0==this.ia.length)this.ia=a;else{var b=this.ia.length?cb(this.ia).endTime:0,c=a[0].j-this.Hb();1<c&&ob(this.ia);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.ia.push(a[c])}}};function cG(a,b){var c=kb(a.ia,function(a){return a.j>=b},a);0<c&&a.ia.splice(0,c)};function dG(a){this.j=a;this.k={};this.o=""}dG.prototype.set=function(a,b){this.j.get(a);this.k[a]=b;this.o=""};dG.prototype.get=function(a){return this.k[a]||this.j.get(a)};function eG(a,b){var c=b.indexOf("?");if(0<c){var d=TF(b.substr(c+1));Jb(d,function(a,b){this.set(b,a)},a);b=b.substr(0,c)}d=SF(b);Jb(d,function(a,b){this.set(b,a)},a)}function DC(a){a.o||(a.o=fG(a));return a.o}
function fG(a){var b=PF(a.j),c=[];Jb(a.k,function(a,b){c.push(b+"="+a)});if(!c.length)return b;var d=c.join("&");a=RF(a.j)?"&":"?";return b+a+d}function gG(a,b){var c=new NF(b);Jb(a.k,function(a,b){c.set(b,null)});return c};function hG(a){this.j=a;this.k=0;this.o=-1}var iG=0;function jG(a,b){this.index=null;this.info=b;this.j=null;this.B=this.o=!1;this.C=new hG(a)}jG.prototype.Tl=function(){return!1};jG.prototype.Pc=function(){return!1};jG.prototype.Pr=function(a){return[a]};jG.prototype.kj=function(a){return[a]};function kG(a,b,c,d,e,g,h,k,l){this.j=b;this.aa=c;this.type=a;this.A=0<=d?d:-1;this.startTime=e||0;this.duration=g||0;this.o=h||0;this.k=0<=k?k:this.aa?this.aa.length:NaN;this.F=!!l;this.aa?(this.C=this.o+this.k==this.aa.length,this.B=this.startTime+this.duration*this.o/this.aa.length,this.G=this.duration*this.k/this.aa.length):(this.C=0!=this.k,this.B=this.startTime,this.G=this.duration);this.D=this.B+this.G}function lG(a){return 1==a.type||2==a.type}
function mG(a,b){return a.j==b.j&&a.aa.start+a.o+a.k==b.aa.start+b.o}function nG(a){bb(1==a.length||jb(a,function(a){return!!a.aa}));for(var b=1;b<a.length;b++);b=a[a.length-1];return new UF(a[0].aa.start+a[0].o,b.aa.start+b.o+b.k-1)}function oG(a){var b="i="+a.j.info.id+",s="+a.A;a.aa&&(b=b+",r="+(a.aa.start+a.o)+"-"+(a.aa.start+a.o+a.k-1));return b=b+",t="+a.B.toFixed(1)+","+(a.B+a.G).toFixed(1)};function pG(a,b){this.k=a[0].j.C;this.o=b||"";this.j=a;this.aa=this.j[0].aa&&0<this.j[0].k?nG(this.j):null}function EC(a){var b;/http[s]?:\/\//.test(a.o)?b=new dG(new NF(a.o)):(b=new dG(a.k.j),a.o&&eG(b,a.o));a.aa&&b.set("range",a.aa.toString());return b}function qG(a){if(a.aa)return a.aa.length;a=a.j[0];return Math.round(a.G*a.j.info.ra)};function rG(a,b,c,d,e){jG.call(this,a,b);this.index=e||new $F;this.A=d||null;this.D=c;this.k=!0}z(rG,jG);f=rG.prototype;f.Qh=function(){return!1};f.hp=function(){var a=new kG(1,this,this.A);return[new pG([a],this.D)]};function CC(a,b){a.oh(b);return sG(a,b.C?b.A+1:b.A,!1)}f.mi=function(a,b){var c=this.index.tg(a);b&&(c=Math.min(this.index.Hb(),c+1));return sG(this,c,!0)};f.yp=function(a){this.j=new Uint8Array(tG(a).buffer)};f.Tl=function(){return!1};f.Pc=function(){return null!==this.j&&this.index.Gn()};
f.oh=function(a){return 0==a.k?!0:this.index.Hb()>a.A&&this.index.rg()<=a.A+1};f.update=function(a,b,c){this.index.append(a);cG(this.index,c);this.k=b};function sG(a,b,c){var d=a.index.lp(b),e=a.index.Se(b),g=a.index.nh(b);c?g=c=0:c=0<a.info.ra?a.info.ra*g:1E3;a=new kG(3,a,null,b,e,g,0,c,b==a.index.Hb()&&!a.k&&0<c);return new pG([a],d)};function uG(a,b){this.Td=a;this.context=b};function vG(a,b,c){this.k=a;this.Td=b;this.j=c}function wG(){this.j=[];this.k=null;this.A=0;this.o=[]}
wG.prototype.update=function(a){var b=void 0;this.k&&(b=this.k);var c=b,b=+XF(a,"timescale")||1,d=+XF(a,"startNumber")||0,e=0,g=1;c&&(e=c.Td+c.j,g=d-c.k);c=new wG;g=0<g?0:-g+1;c.A=g;for(a=a.getElementsByTagName("S");g<a.length;g++){var h=a[g],k=+h.getAttribute("d")/b,l=new vG(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.o.push(new uG(+k/b+l.Td,h))}c.j.length&&(c.k=cb(c.j));this.A=
c.A;this.k=c.k||this.k;this.j=c.j;vb(this.o,c.o)};function xG(a){var b=a.o;a.o=[];return b};function yG(){this.A=[];this.B=!1;this.j=null;this.k={};this.o={}}function zG(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 wG:"AdaptationSet"==e.nodeName?a.k[e.attributes.mimeType.value]=new wG:"Representation"==e.nodeName&&(a.o[e.attributes.id.value]=new wG)}a.B=!0}
function AG(a,b){a.B||zG(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.k[g.attributes.mimeType.value]:"Representation"==g.nodeName&&(h=a.o[g.attributes.id.value]);if(null==h)return;h.update(d[e]);vb(c,xG(h))}Cb(c,function(a){return a.Td});vb(a.A,c)}function BG(a){a.j&&(a.j.j=[]);Jb(a.k,function(a){a.j=[]});Jb(a.o,function(a){a.j=[]})};function CG(a,b){var c=DG(a,0,1836019558);if(!c)return null;var d=DG(a,c.offset+8,1835427940),e=DG(a,c.offset+8,1953653094);if(!d||!e)return null;var g=DG(a,e.offset+8,1952868452),h=DG(a,e.offset+8,1953658222),k=DG(a,e.offset+8,1952867444);if(!g||!h||!k)return null;var l=DG(a,e.offset+8,1935763823),e=DG(a,e.offset+8,1935763834);if(l){var p=EG(l),t=EG(l);if(0!=p||1!=t)return null;p=EG(l)}for(var w=EG(g),J=EG(g),la=w&2,Y=w&1?FG(g):0,da=la?EG(g):0,pa=w&8?EG(g):0,t=w&16?EG(g):0,Me=w&32?EG(g):0,w=EG(h),
he=w&1,ys=w&4,Iz=w&256,g=w&512,Q0=w&1024,R0=w&2048,w=EG(h),S0=he?EG(h):0,T0=ys?EG(h):0,he=[],eN=[],$A=[],aB=[],fN=0,Te=0,Wb=0;Wb<w;Wb++){var U0=Iz?EG(h):pa;g&&he.push(EG(h));var sd=Me;ys&&0==Wb?sd=T0:Q0&&(sd=EG(h));eN.push(sd);sd=R0?EG(h):0;0==Wb&&(fN=sd);$A.push(Te+sd);aB.push(Wb);Te+=U0}Bb(aB,function(a,b){return $A[a]-$A[b]});h=[];for(Wb=0;Wb<w;Wb++)h[aB[Wb]]=Wb;Te=la?4:0;Wb=16*w;sd=68+Te+k.size+Wb+(l?l.size:0)+(e?e.size:0);c=sd-c.size;pa=new GG(sd);HG(pa,sd);HG(pa,1836019558);IG(pa,d);HG(pa,sd-
24);HG(pa,1953653094);HG(pa,16+Te);HG(pa,1952868452);HG(pa,131072|(la?2:0));HG(pa,J);la&&HG(pa,da);IG(pa,k);HG(pa,20+Wb);HG(pa,1953658222);HG(pa,16781057);HG(pa,w);HG(pa,Y+S0+c);for(Wb=Te=0;Wb<w;Wb++)k=h[Wb],d=Math.round(b*k/w),k=Math.round(b*(k+1)/w)-d,sd=d-Te+fN,HG(pa,k),HG(pa,g?he[Wb]:t),HG(pa,eN[Wb]),HG(pa,sd),Te+=k;l&&(HG(pa,l.size),HG(pa,1935763823),HG(pa,0),HG(pa,1),HG(pa,p+c));e&&IG(pa,e);return pa.data.buffer}
function DG(a,b,c){for(;JG(a,b);){var d=KG(a,b);if(d.type==c)return d;b+=d.size}return null}function KG(a,b){var c=a.getUint32(b),d=a.getUint32(b+4);return new LG(a,b,c,d)}function MG(a,b){return 4294967296*a.getUint32(b)+a.getUint32(b+4)}function JG(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 LG(a,b,c,d){this.data=a;this.offset=b;this.size=c;this.type=d;this.j=8}
function EG(a){var b=a.data.getInt32(a.offset+a.j);a.j+=4;return b}function FG(a){var b=MG(a.data,a.offset+a.j);a.j+=8;return b}LG.prototype.skip=function(a){this.j+=a};function GG(a){this.data=new DataView(new ArrayBuffer(a));this.j=0}function HG(a,b){a.data.setInt32(a.j,b);a.j+=4}function IG(a,b){for(var c=0;c+4<=b.size;)HG(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 NG(a,b,c,d){this.info=a;this.buffer=b;this.aa=c;this.j=d}function tG(a){return a.aa?new DataView(a.buffer,a.aa.start,a.aa.length):new DataView(a.buffer)}function OG(a){if(a.info.k!=a.aa.length)return!1;if(1==a.info.j.info.j){if(8>a.info.k||4==a.info.type)return!0;var b=tG(a),c=b.getUint32(0,!1),b=b.getUint32(4,!1);if(2==a.info.type)return c==a.info.k&&1936286840==b;if(3==a.info.type&&0==a.info.o)return 1836019558==b||1936286840==b||1937013104==b||1718909296==b}return!0}
function PG(a){var b;if(1==a.info.j.info.j){var c=NaN,d=NaN;b=0;for(a=new DataView(a.buffer);JG(a,b);){var e=KG(a,b);if(1936286840==e.type)d=e.data.getUint32(e.offset+16);else if(1836476516==e.type)var d=e,g=d.data.getUint8(d.offset+8)?28:20,d=d.data.getUint32(d.offset+g);else 1952867444==e.type&&(c=e,c=c.data.getUint8(c.offset+8)?MG(c.data,c.offset+12):c.data.getUint32(c.offset+12));g=e.type;b=1836019558==g||1836019574==g||1953653094==g?b+8:b+e.size}b=c/d}else b=NaN;return b};function QG(){this.ma=0;this.j=new Float64Array(128);this.k=new Float64Array(128);this.A=1;this.o=!1}f=QG.prototype;f.Vj=function(a){return this.j[a]};f.Se=function(a){return this.k[a]/this.A};f.nh=function(a){a=this.Zk(a);return 0<=a?a/this.A:-1};f.Zk=function(a){return a+1<this.ma||this.o?this.k[a+1]-this.k[a]:-1};f.rg=function(){return 0};f.Hb=function(){return this.ma-1};f.Tf=function(){return this.o?this.k[this.ma]/this.A:NaN};f.At=function(){return 0};f.ip=function(){return this.ma};f.lp=function(){return""};
f.tg=function(a){a=zb(this.k.subarray(0,this.ma),a*this.A);return 0<=a?a:Math.max(0,-a-2)};f.Gn=function(){return 0<=this.Hb()};function RG(a){if(a.j.length<a.ma+1){var b=2*a.j.length,b=b+2,c=a.j;a.j=new Float64Array(b+1);var d=a.k;a.k=new Float64Array(b+1);for(b=0;b<a.ma+1;b++)a.j[b]=c[b],a.k[b]=d[b]}}function SG(a,b){this.k=a;this.j=0;this.o=b||0}function TG(a){for(var b=UG(a,!1);236==b;)VG(a),b=UG(a,!1);return b}
function WG(a){var b=UG(a,!0),c=a.k.byteOffset+a.j,d=Math.min(b,a.k.buffer.byteLength-c),c=new DataView(a.k.buffer,c,d),c=new SG(c,a.o+a.j);a.j+=b;return c}function XG(a){for(var b=UG(a,!0),c=YG(a),d=1;d<b;d++)c=256*c+YG(a);return c}function VG(a){var b=UG(a,!0);a.j+=b}function UG(a,b){var c=YG(a);if(1==c){for(var d=c=0;7>d;d++)c=256*c+YG(a);return c}for(var e=128,d=0;6>d&&e>c;d++)c=256*c+YG(a),e*=128;return b?c-e:c}function YG(a){return a.k.getUint8(a.j++)};function ZG(a,b,c,d,e,g){jG.call(this,a,b);this.initRange=c;this.indexRange=d;this.A=null;this.index=new QG;this.k=e;this.lastModified=g}z(ZG,jG);f=ZG.prototype;f.Pc=function(){return!(!this.j||!this.index.Gn())};
f.hp=function(a){var b=new kG(1,this,this.initRange),c=new kG(2,this,this.indexRange),d=[],e=[b];mG(b,c)?e.push(c):(d.push(new pG([c])),a=0);isNaN(this.k)?a=0:a>this.k&&(a=this.k);b=e[e.length-1];c=b.aa.end-e[0].aa.start+1;a>c&&(a=WF(b.aa.end+1,a-c),e.push(new kG(4,this,a)));d.push(new pG(e));return d};
f.yp=function(a){if(1==a.info.type){if(this.j)return;this.j=new Uint8Array(a.buffer,a.aa.start,a.aa.length)}else if(2==a.info.type){if(this.A||0<=this.index.Hb())return;if(1==this.info.j){var b=this.index,c=tG(a),d=a.info.aa.start;a=0;var e=c.getUint32(0,!1),g=c.getUint8(a+8);a+=12;var h=c.getUint32(a+4,!1);b.A=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.k[0]=g;b.o=!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.ma++;RG(g);g.j[g.ma]=g.j[g.ma-1]+k;g.k[g.ma]=g.k[g.ma-1]+h}}else this.A=tG(a)}if(lt(this.info)&&this.j&&this.A){c=new DataView(this.j.buffer,this.j.byteOffset,this.j.byteLength);b=this.index;g=this.A;c=new SG(c);if(440786851==TG(c)&&(VG(c),408125543==TG(c))){d=c;e=d.j;a=UG(d,!0);d.j=e;for(var c=WG(c),d=c.o+c.j,l=TG(c);357149030!=l;)VG(c),l=TG(c);c=WG(c);h=1E6;k=1E9;for(e=0;!(c.j>=
c.k.byteLength);)if(l=TG(c),2807729==l)h=XG(c);else if(2807730==l)k=XG(c);else if(17545==l){var e=c,l=UG(e,!0),p=0;4==l?p=e.k.getFloat32(e.j):8==l&&(p=e.k.getFloat64(e.j));e.j+=l;e=p}else VG(c);b.A=k/h;c=new SG(g);if(475249515==TG(c)){for(c=WG(c);!(c.j>=c.k.byteLength);)if(l=TG(c),187==l){g=WG(c);h=d;if(179!=TG(g))k=null;else if(k=XG(g),183!=TG(g))k=null;else{g=WG(g);for(l=h;!(g.j>=g.k.byteLength);)241==TG(g)?l=XG(g)+h:VG(g);k=[l,k]}g=b;h=k[0];k=k[1];RG(g);g.j[g.ma]=h;g.k[g.ma]=k;g.ma++}else VG(c);
c=a+d;a=e;RG(b);b.o=!0;b.k[b.ma]=a;b.j[b.ma]=c}}this.A=null}};function $G(a,b,c,d){for(var e=[];b<=a.index.Hb();b++){var g;g=a.index;var h=b;g=WF(g.Vj(h),h+1<g.ma||g.o?g.j[h+1]-g.j[h]:-1);var h=a.index.Se(b),k=a.index.nh(b),l=Math.max(0,c-g.start),p=Math.min(g.end+1,c+d)-(g.start+l);e.push(new kG(3,a,g,b,h,k,l,p,b==a.index.Hb()&&l+p==g.length));if(g.start+l+p>=c+d)break}return new pG(e)}
f.Pr=function(a){for(var b=this.kj(a.info),c=[],d=a.j,e=0;e<b.length;e++){var g=WF(b[e].aa.start+b[e].o-a.info.aa.start+a.aa.start,b[e].k);c.push(new NG(b[e],a.buffer,g,d));d=!1}return c};f.kj=function(a){for(var b=0;b<this.index.Hb()&&a.aa.start>=this.index.Vj(b+1);)b++;return $G(this,b,a.aa.start,a.aa.length).j};f.oh=function(a){return this.Pc()?!0:isNaN(this.k)?!1:a.aa.end+1<this.k};
function aH(a,b,c){a.oh(b);if(!a.Pc())return c=WF(b.aa.end+1,c),c.end+1>a.k&&(c=new UF(c.start,a.k-1)),a=[new kG(4,b.j,c)],new pG(a);4==b.type&&(b=a.kj(b),b=b[b.length-1]);var d=0,e=b.aa.start+b.o+b.k;3==b.type&&(d=b.A,e==b.aa.end+1&&(d+=1));return $G(a,d,e,c)}f.mi=function(a,b){var c=this.index.tg(a);b&&(c=Math.min(this.index.Hb(),c+1));return $G(this,c,this.index.Vj(c),0)};f.Tl=function(){var a;if(a=this.Pc()&&!isNaN(this.k))a=this.index,a=(a.o?a.j[a.ma]:-1)!=this.k;return a};f.Qh=function(){return!0};function bH(a,b){T.call(this);this.M=!!b;this.F=this.duration=0;this.isLive=this.B=!1;this.H=y();this.C=Infinity;this.j={};this.I=a||"";this.K=this.G=0;this.D=!1;this.k=this.A=0;this.o=null}z(bH,T);bH.prototype.getErrorCode=function(){return 3>this.k?"manifest.net":"manifest.net.retryexhausted"};function cH(a){return Lb(a.j,function(a){return!!a.info.A},a)}var dH=/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/;
function eH(a,b){var c=new bH;C(a,function(a){var e=a.type,g=a.itag,h=null;ot(e)&&(h=a.size.split("x"),h=new Ht(+h[0],+h[1],+a.fps,+a.projection_type));var k=null,l=null;if(nt(e)&&(k=new it,a.name)){var l=a.name,p=a.lang,t=a.acont;if(a.url){var w=pj(a.url);w.xtags&&(w=mj(w.xtags,":"),w.lang&&(p=w.lang),w.acont&&(t=w.acont))}l=new MF(l,p,t,"1"==a.isDefault)}a.xtags&&(g=a.itag+";"+a.xtags);var p=parseInt(a.bitrate,10)/8,J=null;b&&a.drm_families&&(J={},C(a.drm_families.split(","),function(a){J[a]=b[a]}));
e=new jt(g,e,k,h,l,J,p);h=VF(a.init);k=VF(a.index);l=fH(a.url,e,a.s);p=parseInt(a.clen,10);a=parseInt(a.lmt,10);l&&(c.j[g]=new ZG(l,e,h,k,p,a))});return c}function gH(a){if(!a)return 0;var b=dH.exec(a);return b?3600*parseFloat(b[2]||0)+60*parseFloat(b[4]||0)+parseFloat(b[6]||0):parseFloat(a)}function fH(a,b,c){a=new NF(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",at(c));return a}
function hH(a){var b=XF(a,"id"),b=b.replace(":",";");"captions"==b&&(b=XF(a,"lang"));var c=XF(a,"mimeType"),d=XF(a,"codecs"),c=d?c+'; codecs="'+d+'"':c,d=parseInt(XF(a,"bandwidth"),10)/8,e=null;ot(c)&&(e=new Ht(parseInt(XF(a,"width"),10),parseInt(XF(a,"height"),10),parseInt(XF(a,"frameRate"),10)));var g=null,h=null;if(nt(c)){g=new it;var h=XF(a,"lang")||"",k=YF(a,"Role");if(k){var k=XF(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 MF(XF(a,"yt:langName")||h+" - "+l,h,l,"original"==l):null}else h=null}k=null;if(a=YF(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 jt(b,c,g,e,h,k,d)}
function iH(a,b,c,d){a.A=1;b=b||a.I;c={format:"RAW",method:"GET",Zb:x(a.O,a,c,d||null)};a.M&&(c.timeout=15E3);Aj(b,c)}
bH.prototype.O=function(a,b,c){this.K=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.C=1E3*gH(XF(c,"minimumUpdatePeriod"))||Infinity;this.isLive=Infinity>this.C;this.B=!0;this.F=parseInt(XF(c,"yt:earliestMediaSequence"),10);this.o||(this.o=new yG);AG(this.o,c);this.publish("refresh");for(c=0;c<b.length;c++){var d=
hH(b[c]);if(!this.j[d.id]){var e=fH(YF(b[c],"BaseURL").textContent,d),g=YF(b[c],"Initialization"),h=XF(g,"sourceURL"),g=VF(XF(g,"range"));this.j[d.id]=new rG(e,d,h,null===g?void 0:g)}for(var d=this.j[d.id],e=this.o,h=d,g=ab(h.info.mimeType,";",1)[0],h=e.o[h.info.id]||e.k[g]||e.j||null,e=xb(YF(b[c],"SegmentList").getElementsByTagName("SegmentURL"),h.A),h=h.j,g=[],k=0;k<e.length;k++)g.push(jH(e[k],h[k]));d.update(g,this.isLive,this.F)}BG(this.o)}else i:for(this.duration=gH(XF(c,"mediaPresentationDuration")),
c=0;c<b.length;c++){g=b[c];d=hH(g);h=YF(g,"BaseURL");e=fH(h.textContent,d);k=YF(g,"SegmentBase");g=VF(k.attributes.indexRange.value);k=VF(k.getElementsByTagName("Initialization")[0].attributes.range.value);h=parseInt(h.getAttribute("yt:contentLength"),10);d=new ZG(e,d,k,g,h,NaN);if(!d)break i;this.j[d.info.id]=d}this.H=y();this.A=2;this.D=!1;this.k=0;a&&a(this);this.publish("loaded")}else this.A=3,this.D?this.k+=1:this.D=!0,b&&b(c),this.publish("load_error")};
function jH(a,b){var c=a.getAttribute("media"),d=null,e=a.getAttribute("mediaRange");null!=e&&(0<=parseInt(e.split("-")[1],10)?d=VF(e):c=c+"?range="+e);return new ZF(b.k,b.Td,b.j,c,d)}function yr(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.Tf();return NaN}function kH(a){for(var b in a.j)if(a.j[b].index)return a.j[b].index.At();return 0}function lH(a,b){Jb(a.j,function(a){Jb(b,function(b,e){a.C.j.set(e,b)})})};function mH(a,b,c,d){this.o={};this.K=a;this.H=b;a=c.split("#");this.F=parseInt(a[0],10);this.D=parseInt(a[1],10);this.k=parseInt(a[2],10);this.Bb=parseInt(a[3],10);this.rows=parseInt(a[4],10);this.B=parseInt(a[5],10);this.A=a[6];this.C=a[7];this.I=d}f=mH.prototype;f.getHeight=function(){return this.D};f.kf=function(){return this.k};f.isDefault=function(){return-1!=this.A.indexOf("default")};
function nH(a,b){var c=a.H,c=c.replace("$N",a.A),c=c.replace("$L",a.K.toString()),c=c.replace("$M",b.toString());a.C&&(c=Ke(c,{sigh:a.C}));return c}function oH(a,b){var c=Math.floor(b/(a.Bb*a.rows)),d=a.Bb*a.rows,e=b%d,g=e%a.Bb,e=Math.floor(e/a.Bb),h=a.rows,k=a.Jn()+1-d*c;k<d&&(h=Math.ceil(k/a.Bb));return{url:nH(a,c),Qw:g,Bb:a.Bb,row:e,rows:h,wq:a.F*a.Bb,tq:a.D*h}}f.Wj=function(a){var b=this.kf()-1;a=0==this.B?Math.round(a*this.k/this.I):Math.round(1E3*a/this.B);return Lc(a,0,b)};
f.Jn=function(){return this.k-1};f.Ct=function(){return this.k?0:-1};f.Dt=function(){};function pH(a,b){this.j=this.k(a,b);this.o={};1<this.j.length&&this.j[0].isDefault()&&this.j.splice(0,1)}pH.prototype.k=function(a,b){for(var c=[],d=a.split("|"),e=d[0],g=1;g<d.length;g++){var h=this.A(g-1,e,d[g],b);180>h.getHeight()&&c.push(h)}return c};pH.prototype.A=function(a,b,c,d){return new mH(a,b,c,d)};function qH(a,b){var c=a.o[b];if(c)return c;for(var c=a.j.length,d=0;d<c;d++)if(a.j[d].F>=b)return a.o[b]=d;a.o[b]=c-1;return c-1}pH.prototype.B=function(){};function rH(a,b,c,d){c=c.split("#");c=[c[1],c[2],0,c[3],c[4],-1,c[0],""].join("#");mH.call(this,a,b,c,0);this.j=null;this.G=d?3:0}z(rH,mH);f=rH.prototype;f.kf=function(){return this.j?this.j.ip():-1};f.Wj=function(a){var b=this.rows*this.Bb*this.G,c=-1,d=-1,e=this.j;e&&(c=e.Hb(),d=e.tg(a));return d>c-b?-1:d};f.Jn=function(){return this.j?this.j.Hb():-1};f.Ct=function(){return this.j?this.j.rg():-1};f.Dt=function(a){this.j=a?a.index:null};function sH(a,b){this.C=b;pH.call(this,a,0)}z(sH,pH);sH.prototype.k=function(a,b){return sH.J.k.call(this,"$N|"+a,b)};sH.prototype.A=function(a,b,c){return new rH(a,b,c,this.C.isLive)};sH.prototype.B=function(a){for(var b=0;b<this.j.length;b++)this.j[b].Dt(a)};var tH={0:"MONO",1:"LEFT_RIGHT",2:"RIGHT_LEFT",3:"TOP_BOTTOM",4:"BOTTOM_TOP"};function uH(a,b,c){b={cpn:b};c&&(b.ibw="1369843");return{url:Ke(a,b),type:"application/x-mpegURL",quality:"auto",itag:"93"}};function vH(a,b){return void 0==b?a:"1"==b?!0:!1}function wH(a,b,c){for(var d in c)if(c[d]==b)return c[d];return a}function xH(a,b){return void 0==b?a:Number(b)}function yH(a,b){return void 0==b?a:b.toString()}function zH(a,b){var c=yH(a,b);c&&(c=Xf(c));return c}var AH=/^([0-9\.]+)\:([0-9\.]+)$/;function BH(a){if(a&&(a=a.match(AH))){var b=parseFloat(a[2]);if(0<b)return parseFloat(a[1])/b}return NaN}function CH(a,b){var c=ut.auto,d=ut[b];return d>=ut.medium?new wt(d,c,!1):d>=c?new wt(c,d,!1):a};var DH,EH,FH;function GH(a){Nw.call(this,1,arguments);this.j=a}z(GH,Nw);var Ww=new Qw("timing-sent",GH);var HH=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{},IH=x(HH.clearResourceTimings||HH.webkitClearResourceTimings||HH.mozClearResourceTimings||HH.msClearResourceTimings||HH.oClearResourceTimings||u,HH),JH=HH.mark?function(a){HH.mark(a)}:u;
function KH(a,b,c){LH(c)[a]=b||y();b||JH(a);if(If("CSI_LOG_ON_TICK")&&(b=If("TIMING_ACTION"),a=LH(c),b&&a._start&&MH(c))){b=!0;var d=If("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)&&NH(c)}}function OH(a,b){var c=LH(b);return a in c}function PH(a,b,c){QH(c).info[a]=b}function MH(a){a=LH(a);if(a.aft)return a.aft;for(var b=If("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}
function RH(a){return Math.round(HH.timing.navigationStart+a)}
function SH(a){var b=window.location.protocol,c=HH.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=RH(d.startTime),a.wfce=RH(d.responseEnd));c&&0<c.startTime&&0<c.responseEnd&&(a.wffs=RH(c.startTime),a.wffe=RH(c.responseEnd))}
function NH(a){var b=LH(a),c=QH(a).span,d=QH(a).info,e=r("yt.timing.reportbuilder_");if(e){if(e=e(b,c,d,a))TH(e),UH(a),IH()}else{e={v:2,s:"youtube",action:If("TIMING_ACTION")};if(HH.now&&HH.timing){var g=HH.timing.navigationStart+HH.now(),g=Math.round(y()-g);d.yt_hrd=g}var g=If("TIMING_INFO")||{},h;for(h in g)d[h]=g[h];h=d.srt;delete d.srt;var k;h||0===h||(k=HH.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+
r("ytplayer.config.assets.js"),(g=HH.getEntriesByName?HH.getEntriesByName(g)[0]:null)?d.h5jse=Math.round(d.h5jse-g.responseEnd):delete d.h5jse);b.aft=MH(a);g=b._start;if(!DH){k||(k=HH.timing||{});var l;t:if(l=k,l.msFirstPaint)l=Math.max(0,l.msFirstPaint);else{var p=window.chrome;if(p&&(p=p.loadTimes,ia(p))){var p=p(),t=1E3*Math.min(p.requestTime||Infinity,p.startLoadTime||Infinity),t=Infinity===t?0:l.navigationStart-t;l=Math.max(0,Math.round(1E3*p.firstPaintTime+t)||0);break t}l=0}0<l&&l>g&&(b.fpt=
l);l=k.redirectEnd-k.redirectStart;0<l&&(c.rtime_=l);l=k.domainLookupEnd-k.domainLookupStart;0<l&&(c.dns_=l);l=k.connectEnd-k.connectStart;0<l&&(c.tcp_=l);l=k.connectEnd-k.secureConnectionStart;k.secureConnectionStart&&0<l&&(c.stcp_=l);l=k.responseStart-k.requestStart;0<l&&(c.req_=l);l=k.responseEnd-k.responseStart;0<l&&(c.rcv_=l);If("EXP_WEBFONT_ENABLED")&&HH.getEntriesByType&&SH(b);DH=!0}If("CSI_MORE")&&(d.p=If("CLIENT_PROTOCOL")||"unknown",d.t=If("CLIENT_TRANSPORT")||"unknown");for(var w in d)"_"!=
w.charAt(0)&&(e[w]=d[w]);d={};w=[];for(var J in b)"_"!=J.charAt(0)&&(l=Math.max(Math.round(b[J]-g),0),d[J]=l,w.push(J+"."+l));e.rt=w.join(",");b={};J=[];for(var la in c)"_"!=la.charAt(0)&&(b[la]=c[la],J.push(la+"."+c[la]));e.it=J.join(",");(c=r("ytdebug.logTiming"))&&c(e,d,b);UH(a);IH();If("EXP_DEFER_CSI_PING")?(VH(),EH=e,FH=L(VH,0)):TH(e);a=new GH(d.aft+(h||0));c=Ww;(e=Xw())&&e.publish.call(e,c.toString(),c,a)}}
function TH(a){If("EXP_DEFER_CSI_PING")&&(M(FH),EH=null);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];bg(b+"?"+c.substring(1))}function VH(a){EH&&(a&&(EH.yt_fss=a),TH(EH))}function LH(a){return QH(a).tick}function QH(a){return r("ytcsi."+(a||"")+"data_")||UH(a)}function UH(a){var b={tick:{},span:{},info:{}};q("ytcsi."+(a||"")+"data_",b,void 0);return b};var WH={AI:0,JH:1,oI:2};function XH(a,b,c){c=c||{};Gj(c.Xa,c.pageId,x(YH,m,a,b,c),c.onError)}
function YH(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.Xa&&(d.authuser=c.Xa);c.pageId&&(d.pageid=c.pageId);a={screen:Ie({h:screen.height,w:screen.width,d:screen.colorDepth})};c.yD&&(a.station_id=c.yD);Aj("/watch_actions_ajax",{format:"XML",method:"POST",Of:d,Eb:a,ab:c.ab,onError:c.onError,Zb:c.Zb})};function ZH(a,b){this.j=a;this.k=b}ZH.prototype.getValue=function(){return this.k};ZH.prototype.clone=function(){return new ZH(this.j,this.k)};function $H(a){this.j=[];if(a)t:{var b,c;if(a instanceof $H){if(b=a.Ia(),c=a.La(),0>=a.Na()){a=this.j;for(var d=0;d<b.length;d++)a.push(new ZH(b[d],c[d]));break t}}else b=Rb(a),c=Qb(a);for(d=0;d<b.length;d++)aI(this,b[d],c[d])}}function aI(a,b,c){var d=a.j;d.push(new ZH(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=$H.prototype;
f.remove=function(){var a=this.j,b=a.length,c=a[0];if(!(0>=b)){if(1==b)ob(a);else{a[0]=a.pop();for(var a=0,b=this.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.La=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].getValue());return b};f.Ia=function(){for(var a=this.j,b=[],c=a.length,d=0;d<c;d++)b.push(a[d].j);return b};f.af=function(a){return ib(this.j,function(b){return b.getValue()==a})};
f.clone=function(){return new $H(this)};f.Na=function(){return this.j.length};f.isEmpty=function(){return nb(this.j)};f.clear=function(){ob(this.j)};function bI(){$H.call(this)}z(bI,$H);function cI(a,b){T.call(this);this.j=a;this.o=new bI;this.B={};this.A=b||""}z(cI,T);cI.prototype.k=!1;function dI(a,b,c){var d;for(c=qH(a.j,c);0<=c;){d=a.j.j[c];if(d=d.o[Math.floor(b/(d.Bb*d.rows))]?oH(d,b):null)return d;c--}return oH(a.j.j[0],b)}function eI(a,b,c){c=qH(a.j,c);for(var d,e;0<=c;c--)if(d=a.j.j[c],e=Math.floor(b/(d.Bb*d.rows)),!d.o[e]){d=a;var g=c,h=g+"-"+e;d.B[h]||(d.B[h]=!0,aI(d.o,g,{iq:g,uq:e}))}fI(a)}
function fI(a){if(!a.k)if(a.o.isEmpty())a.k=!1;else{a.k=!0;var b=a.o.remove(),c=new Image;a.A&&(c.crossOrigin=a.A);c.src=Yf(nH(a.j.j[b.iq],b.uq));c.onload=x(a.C,a,b.iq,b.uq)}}cI.prototype.C=function(a,b){this.k=!1;var c=this.j.j[a];c.o[b]=!0;fI(this);var d,e=c.Bb*c.rows;d=b*e;c=Math.min(d+e-1,c.kf()-1);d=[d,c];this.publish("l",d[0],d[1])};function sr(a){T.call(this);this.$n=new G(0,0);this.Oa=this.ga=!1;this.Pe="";this.Oe=this.va=!1;this.hb={};this.captionTracks=[];this.wa=[];this.od=[];this.V=new tt("und","Default","und","und",!0);this.Ba=0;this.Hh=new Bv(this.Yr,5E3,this);R(this,this.Hh);this.H=[];this.A={};this.keywords={};this.B={};gI(this,a)}z(sr,T);sr.D=/\/img\/watermark\/youtube_(hd_)?watermark(-vfl\S{6})?.png$/;sr.j=1;sr.A=-21;sr.B=18E3;sr.C="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(" ");
sr.k={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlmaxres:"maxresdefault.jpg"};sr.o=["www.youtube.com","manifest.googlevideo.com"];f=sr.prototype;f.adModule=!1;f.adaptiveFormats="";f.Ys=null;f.allowEmbed=!0;f.yb=!1;f.Mh="";f.vk="";f.zk=!1;f.vo=sr.j;f.Rj=null;f.Js=null;f.author="";f.Pj=0;f.Rh=!1;f.Ao=3;f.Oo=!1;f.Xe="";f.za="";f.contentCheckOk=!1;f.Re=0;f.Sk=!1;f.ai=!1;f.Rk=!1;f.cf=0;f.Af=!1;f.Bp=!1;f.Qj=0;f.$p=!1;f.Fg=!1;f.cq=!0;f.Di=!1;f.Sl=!1;f.Ul=!1;
f.Sa=!1;f.Vl=!1;f.Wl=!1;f.$d=!1;f.fq=!1;f.$l=!1;f.Bz=0;f.lengthSeconds=0;f.yn=0;f.Hr=!1;f.racyCheckOk=!1;f.yd=1;f.Jm=zt;f.$r=0;f.Tm=!1;f.startSeconds=0;f.wj=null;f.Im=2;f.xj=zt;f.ws=!1;f.$g=!1;f.Je=null;f.title="";f.Ke="";f.Kj=null;f.gn="vvt";f.Or=!1;f.gs=!1;f.clipStart=0;f.clipEnd=Infinity;
function xr(a,b){var c=b||{};c.iv_invideo_url&&(a.Mh=Xf(c.iv_invideo_url));c.iv_cta_url&&(a.vk=Xf(c.iv_cta_url));c.cta_conversion_urls&&(a.Ac=c.cta_conversion_urls);a.author=yH(a.author,c.author);a.Rh=vH(a.Rh,c.cc_asr);var d=c.ttsurl||a.Xe;d&&Sf(d)?a.Xe=d:a.Xe=zH(a.Xe,c.ttsurl);c.caption_tracks&&c.caption_audio_tracks&&(hI(a,c.caption_tracks),a.wa=LE(c.caption_audio_tracks),iI(a,c.caption_translation_languages));a.za=yH(a.za,c.cpn);a.subscribed=yH(a.subscribed,c.subscribed);a.Im=wH(a.Im,c.sentiment,
WH);a.title=yH(a.title,c.title);a.oa=yH(a.oa,c.ypc_preview);a.Hr=vH(a.Hr,c.paygated);a.Or=vH(a.Or,c.requires_purchase);c.keywords&&(a.keywords=jI(c.keywords));c.rvs&&(a.M=LE(c.rvs));a.contentCheckOk=vH(a.contentCheckOk,"1"==c.cco);a.racyCheckOk=vH(a.racyCheckOk,"1"==c.rco);a.C=yH(a.C,c.oauth_token);C(sr.C,function(a){a in c&&(this.A[a]=c[a])},a)}
function gI(a,b){var c=b||{};a.yb="1"!=c.hlsdvr||$h||Xh&&5>Pr?!1:!0;a.zk="1"==c.infringe||"1"==c.muted;a.Ec=c.authkey;a.Xa=c.authuser;a.za||(a.za=c.cpn||mD());a.rw=y();a.Sv=c.t;a.Sk=vH(a.Sk,c.cenchd);a.ai=vH(a.ai,c.enable_cardio);a.Rk=vH(a.Rk,c.enable_cardio_before_playback);a.cf=xH(a.cf,c.end||c.endSeconds);a.ya=yH(a.ya,c.itct);a.cq="1"!=c.no_get_video_log;a.Di="1"==c.tmi;a.Sl=vH(a.Sl,c.noiba);a.Ul="1"==c.livemonitor;a.Sa="1"==c.live_playback;a.Vl=vH(a.Vl,c.mdx);a.Wl=vH(a.Wl,c.on3g);a.$l=vH(a.$l,
c.utpsa);for(var d in sr.k){var e=c[d+"_webp"]||c[d];Vf(e)&&(a.hb[sr.k[d]]=e)}a.F=yH(a.F,c.vvt);a.Wv=c.osig;a.dg=c.ptchn;a.Bh=c.oid;a.K=c.ptk;a.Dh=c.pltype;a.playbackId=c.plid;a.G=c.eventid;a.ob=c.osid;a.uw=c.vm;a.tw=c.of;a.playlistId=yH(a.playlistId,c.list);a.Gh=c.pyv_view_beacon_url;a.ew=c.pyv_quartile25_beacon_url;a.iw=c.pyv_quartile50_beacon_url;a.lw=c.pyv_quartile75_beacon_url;a.bw=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.co=c.sdetail;!a.Va&&c.session_data&&(a.Va=mj(c.session_data,"&").feature);a.ee=1==xH(a.ee?1:0,c.is_fling);a.qb=yH(a.qb,c.ctrl);a.$b=yH(a.$b,c.ytr);a.Me=c.ytrcc;a.gs="1"==c.skip_kansas_logging;a.kc=yH(a.kc,c.cl);a.Jm=CH(a.Jm,c.vq);a.xj=CH(a.xj,c.suggestedQuality);a.la=c.approx_threed_layout||0;a.ws="1"==c.threed_converted;a.startSeconds=xH(a.startSeconds,c.start||c.startSeconds);a.eo=vH(a.eo,c.ssrt);a.videoId=c.docid||c.video_id||c.videoId||a.videoId;
a.ao=yH(a.ao,c.vss_credentials_token);a.gn=yH(a.gn,c.vss_credentials_token_type);kI(a,c.watermark);a.bo=yH(a.bo,c.ypc_gid);a.jb=yH(a.jb,c.ypc_license_session_token);a.heartbeatToken=yH(a.heartbeatToken,c.heartbeat_token);a.Qe=xH(a.Qe,c.heartbeat_interval);a.Ve=xH(a.Ve,c.heartbeat_retries);if(c.ad3_module||c.ad_module)"1"==c.allow_html5_ads?(a.adModule=!0,"1"==c.ad_preroll&&a.H.push("ad")):"1"!=c.supported_without_ads&&(a.Bp=!0);c.adaptive_fmts&&(a.adaptiveFormats=c.adaptive_fmts);void 0!=c.atc&&(a.ba=
c.atc);c.license_info&&(a.Ys=lI(c.license_info));c.allow_embed&&(a.allowEmbed="1"==c.allow_embed);c.autonav&&(a.$p="1"==c.autonav);c.autoplay&&(a.Fg="1"==c.autoplay);c.iv_load_policy&&(a.ta=mI(c.iv_load_policy,a.ta));c.cc_load_policy&&(a.Ao=mI(c.cc_load_policy,2));"0"==c.dash&&(a.Oo=!0);c.dashmpd&&(a.O=Ke(c.dashmpd,{cpn:a.za}),d=/\/s\/([0-9A-F.]+)/,e=d.exec(a.O))&&(e=at(e[1]),a.O=a.O.replace(d,"/signature/"+e));c.delay&&(a.Re=Xa(c.delay));void 0!=c.end&&(a.clipEnd=c.end);c.fresca_preroll&&a.H.push("fresca");
c.idpj&&(a.Qj=Xa(c.idpj));c.url_encoded_fmt_stream_map&&(a.Ke=c.url_encoded_fmt_stream_map);c.hlsvp&&(a.S=c.hlsvp);c.length_seconds&&(a.lengthSeconds=Xa(c.length_seconds));c.ldpj&&(a.yn=Xa(c.ldpj));c.loudness&&(a.perceptualLoudnessDb=c.loudness,a.vo=nI(a));c.partnerid&&(a.X=Xa(c.partnerid));c.probe_url&&(a.probeUrl=Yf(Ke(c.probe_url,{cpn:a.za})));c.pyv_billable_url&&-1!=c.pyv_billable_url.search(yf)&&(a.ja=c.pyv_billable_url);c.pyv_conv_url&&-1!=c.pyv_conv_url.search(yf)&&(a.ka=c.pyv_conv_url);c.video_masthead_ad_quartile_urls&&
(d=c.video_masthead_ad_quartile_urls,a.Ca=d.quartile_0_url,a.ge=d.quartile_25_url,a.he=d.quartile_50_url,a.ie=d.quartile_75_url,a.fe=d.quartile_100_url);c.spacecast_address&&(a.H.push("spacecast"),a.gb=c.spacecast_address);void 0==c.start||"1"==c.resume||a.Sa||(a.clipStart=c.start);c.threed_module&&!c.threed_converted&&(a.na=c.threed_module,a.ow=6);c.two_stage_token&&(a.Rj=c.two_stage_token);c.url_encoded_third_party_media&&(a.Je=LE(c.url_encoded_third_party_media));c.watch_ajax_token&&(a.Js=c.watch_ajax_token);
c.ypc_module&&a.H.push("ypc");c.ypc_clickwrap_module&&a.H.push("ypc_clickwrap");a.Zn=yH(a.Zn,c.ucid);C("baseUrl uid oeid ieid ppe engaged subscribed".split(" "),function(a){c[a]&&(this.B[a]=c[a])},a);a.B.focEnabled=vH(a.B.focEnabled,c.focEnabled);a.B.rmktEnabled=vH(a.B.rmktEnabled,c.rmktEnabled);a.A=c;xr(a,c);oI(a)}function oI(a){(a.Sa||a.Ul)&&"1"==a.A.as3fb||!tu()||a.Oo||(a.adaptiveFormats?a.k=eH(pI(a,a.adaptiveFormats),a.Ys):a.O&&(a.Af=!0,a.ga=!0))}
f.IA=function(a){this.ha()||(this.k=a,this.k.subscribe("refresh",this.Lq,this),KH("mrc"),this.k&&(this.lengthSeconds=this.k.duration||yr(this.k)||this.lengthSeconds),this.zn())};f.Lq=function(){this.k.isLive||this.k.unsubscribe("refresh",this.Lq,this);var a=xb(this.k.o.A,this.Ba);0<a.length&&(this.publish("cuepointupdated",a),this.Ba+=a.length)};f.zn=function(){this.ha()||(this.Af=!1,this.va&&!qI(this)?this.publish("dataloaderror",new wq("fmt.noneavailable",!0)):this.publish("dataloaded",this.A))};
function KE(a){if(!a.ha()){a.j=null;a.T=null;a.I=null;if(a.da){var b=pI(a,a.da);a.I=wu(b,!1);a.j=new Et(D(a.I,function(a){return a.getInfo()}))}!a.j&&a.k&&(a.j=zu(a.k));if(!a.j){if(a.Je&&a.fq)a.I=xu(a.Je);else{b=pI(a,a.Ke);if(a.S){var c=uH(a.S,a.za,-1==a.S.indexOf("/ibw/")&&!a.Wl);b.push(c)}a.I=wu(b,!!a.na||a.$g)}a.I.length&&(a.j=new Et(D(a.I,function(a){return a.getInfo()})))}rI(a);a.$r=Math.min(.8*a.lengthSeconds,180)}}function vD(a){return a.o&&a.o.A||null}
f.vc=function(a){return v(this.keywords[a])?this.keywords[a]:null};function sI(a){a.Kj||(a.A.storyboard_spec?a.Kj=new pH(a.A.storyboard_spec,Xa(a.A.length_seconds)):a.A.live_storyboard_spec&&a.k&&(a.Kj=new sH(a.A.live_storyboard_spec,a.k)));return a.Kj}function tI(a){var b=sI(a);!a.wj&&b&&(a.wj=new cI(b),R(a,a.wj));return a.wj}function Ar(a){return a.k&&!isNaN(kH(a.k))?kH(a.k):0}function uI(a){return!a.ha()&&!(!a.videoId&&!a.Je)}
function qI(a){return uI(a)&&!a.Af&&!a.ga&&(!!(a.k||a.Ke||a.Je||a.da||a.S)||F(a.H,"fresca")||F(a.H,"ypc"))}function vI(a,b,c){a.ha()||(a.Pe=b,a.va=!!c,a.Af=!0,a.Yr())}f.Yr=function(){Aj(this.Pe,{format:"RAW",method:"GET",context:this,ab:this.YA,onError:this.Qq});KH("vir")};
function tE(a,b){if(30==a.X){var c=a.hb["default.jpg"];return c?c:a.videoId?Ke("//docs.google.com/vt",{id:a.videoId,authuser:a.Xa,authkey:a.Ec}):"//docs.google.com/images/doclist/cleardot.gif"}b||(b="hqdefault.jpg");return(c=a.hb[b])||"sddefault.jpg"==b||"maxresdefault.jpg"==b?c:iA(a.videoId,b)}f.YA=function(a){if(!this.ha()){var b=a.responseText;b?(this.Af=!1,a=oj(b),"fail"==a.status?this.publish("onStatusFail",a):(KH("virc"),gI(this,a),this.zn())):this.Qq(a)}};
f.Qq=function(a){if(!this.ha()){var b="manifest.net",c=!0,d="rc."+a.status;this.va&&(this.Oe?b="manifest.net.retryexhausted":(this.Oe=!0,c=!1,b=a.status?"manifest.net.badstatus":"manifest.net.connect",this.Hh.start()));this.publish("dataloaderror",new wq(b,c,d))}};function nI(a){return a.perceptualLoudnessDb?(a=Math.min(sr.A-a.perceptualLoudnessDb,0),Math.pow(10,a/20)):sr.j}function mI(a,b){var c=parseInt(a,10);return Pb(Ty,c)?c:b}
function LE(a){a=a.split(",");return a=a.map(function(a){return oj(a)})}function pI(a,b){var c=LE(b);C(c,function(a){a.url&&(a.url=Ke(a.url,{cpn:this.za}))},a);return c}function jI(a){var b={};C(a.split(","),function(a){var d=a.split("=");2==d.length?b[d[0]]=d[1]:b[a]=!0});return b}function kI(a,b){if(b){var c=b.split(",");2<=c.length&&(a.W=c[1],Vf(a.W)&&-1==a.W.search(sr.D)||(a.W=""))}}function lI(a){a=LE(a);var b={};C(a,function(a){var d=a.family;a=a.url;d&&a&&(b[d]=a)});return b}
function hI(a,b){for(var c=LE(b),d=0;d<c.length;d++){var e=c[d];a.captionTracks.push(new qt({eL:e.is_translatable,languageCode:e.language_code,languageName:e.name,url:e.base_url,kL:e.vss_id,kind:e.kind}))}}function iI(a,b){for(var c=LE(b),d=0;d<c.length;d++){var e=c[d];a.od.push(new pt({languageCode:e.language_code,languageName:e.language_name}))}}
function rI(a){for(var b=a.j?a.j.audioTracks:[],b=b.concat(a.V),c=0;c<a.wa.length;c++)for(var d=a.wa[c],e=0;e<b.length;e++){var g=b[e],h=d.audio_content_type,k=g.xk==h&&g.language==d.language_code;if(g==a.V&&"original"==h||k){h=d.caption_track_indices.split(",");for(k=0;k<h.length;k++)g.captionTracks[k]=a.captionTracks[parseInt(h[k],10)];d.default_caption_track_index&&(g.Pk=a.captionTracks[parseInt(d.default_caption_track_index,10)]);d.forced_caption_track_index&&(g.fi=a.captionTracks[parseInt(d.forced_caption_track_index,
10)]);g.Bo=parseInt(d.visibility,10)}}}function tv(a,b){return!!a.A[b]}function wI(a){return a.Sa&&!a.yb}function xI(a){return a.Sa&&a.yb};function yI(a){T.call(this);this.views=0;this.j=[];this.k=[];this.Ra=Math.max(0,a.index||0);this.Uf=!!a.loop;this.startSeconds=a.startSeconds||0;this.zq="1"==a.mob;this.title=a.playlist_title||"";this.description=a.playlist_description||"";this.author=a.author||"";a.video_id&&(this.j[this.Ra]=a);a.api&&("string"==typeof a.api&&16==a.api.length?a.list="PL"+a.api:a.playlist=a.api);this.A=0;if(a.list)switch(a.listType){case "user_uploads":zI(this,a.list);break;case "user_favorites":AI(this,a.list);break;
case "search":BI(this,a.list);break;default:a.playlist_length&&(this.jc=a.playlist_length),this.o=RD(a.list),0==a.fetch&&a.videoList?CI(this,a.videoList):DI(this)}else if(a.playlist){var b=a.playlist.toString().split(",");0<this.Ra&&(this.j=[]);C(b,function(a){a&&this.j.push({video_id:a})},this);this.jc=this.j.length;b=D(this.j,function(a){return a.video_id});EI(this,"/list_ajax?style=json&action_get_templist=1",{video_ids:b.join(",")});this.be=!0}else a.videoList&&CI(this,a.videoList);er(this,!!a.shuffle);
a.suggestedQuality&&(this.quality=a.suggestedQuality)}z(yI,T);f=yI.prototype;f.Uf=!1;f.startSeconds=0;f.rs=!1;f.Ra=0;f.title="";f.jc=0;f.zq=!1;f.be=!1;f.Hg=!1;f.Ge=null;function FI(a){return a.Uf||a.Ra+1<a.jc}function GI(a){var b=a.Ra+1;b>=a.jc&&(b=a.Uf?0:-1);return b}function HI(a){var b=GI(a);if(-1==b)return null;II(a,b);return fr(a,b)}function JI(a){var b;b=a.Ra-1;0>b&&(b=a.Uf?a.jc-1:-1);if(-1==b)return null;II(a,b);return fr(a,a.Ra)}
function fr(a,b){var c=void 0!=b?b:a.Ra,c=a.j&&c in a.j?a.j[a.k[c]]:null,d=null;c&&(d=new sr(c),d.startSeconds=a.startSeconds||d.clipStart||0,a.o&&(d.playlistId=a.o.toString()));return d}
function er(a,b){a.rs=b;var c=a.k&&null!=a.k[a.Ra]?a.k[a.Ra]:a.Ra;a.k=[];for(var d=0;d<a.j.length;d++)a.k.push(d);a.Ra=c;a.A++;if(a.rs){c=a.k[a.Ra];for(d=1;d<a.k.length;d++){var e=Math.floor(Math.random()*(d+1)),g=a.k[d];a.k[d]=a.k[e];a.k[e]=g}for(d=0;d<a.k.length;d++)a.k[d]==c&&(a.Ra=d);a.A++}a.publish("shuffle")}function II(a,b){a.Ra=Lc(b,0,a.jc-1);a.startSeconds=0}
function zI(a,b){a.Hg||(a.o=new QD("UU","PLAYER_"+b),EI(a,"/list_ajax?style=json&action_get_user_uploads_by_user=1",{username:b}))}function AI(a,b){a.Hg||(a.o=new QD("FL","PLAYER_"+b),EI(a,"/list_ajax?style=json&action_get_favorited_by_user=1",{username:b}))}function BI(a,b){if(!a.Hg){a.o=new QD("SR",b);var c={search_query:b};a.zq&&(c.mob="1");EI(a,"/search_ajax?style=json&embeddable=1",c)}}
function DI(a){if(!a.Hg){var b={list:a.o},c=fr(a);c&&c.videoId&&(b.v=c.videoId);EI(a,"/list_ajax?style=json&action_get_list=1",b)}}function EI(a,b,c){Aj(Ke(b,c),{format:"JSON",ab:function(a,b){KI(this,b)},onError:function(){this.publish("error")},context:a})}
function KI(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=fr(a);a.j=[];C(b.video,function(a){a&&(a.video_id=a.encrypted_id,this.j.push(a))},a);a.jc=a.j.length;LI(a,c);er(a,!1);a.Hg=!1;a.be=!0;a.A++;a.Ge&&a.Ge()}}function CI(a,b){0<a.Ra&&(a.j=[]);C(b,function(a){this.j.push(a)},a);a.jc=a.j.length;a.be=!0}
function LI(a,b){if(b){var c=b.videoId;if(!a.j[a.Ra]||a.j[a.Ra].video_id!=c)for(var d=0;d<a.j.length;d++)if(a.j[d].video_id==c){a.Ra=d;break}}}f.L=function(){this.Ge=null;wi(this.j);yI.J.L.call(this)};function MI(){Q.call(this);this.j=[];this.C={};this.o={};this.A={};this.k=this.D=null;this.B=[];this.F=null}z(MI,Q);MI.prototype.Ko=function(a){if(this.k){var b;var c=ka(a);b=this.C[c];if(!b)if(this.k){if(b=a(this.k)){a=this.C[c]=b;for(var d in this.D)a.subscribe(d,this.D[d]);a.subscribe("command_log_timing",this.G,this);R(this,b)}}else b=null;b&&b.Ea(this.k)&&!F(this.j,b)&&(b.create(),this.j.push(b),F(this.B,b.ua)&&(b.Sb=this.F,b.Ui(!!b.Sb)))}};
function NI(a){a.j=gb(a.j,function(a){if(!this.k||a.Rm(this.k)){try{a.destroy()}catch(c){Mf(c)}return!1}return!0},a)}function OI(a,b,c){PI(a);a.F=b;a.B=ub(c);C(a.j,function(a){0<=eb(c,a.ua)&&(a.Sb=b,a.Ui(!!a.Sb))})}function PI(a){C(a.B,function(a){if(a=Tq(this,a))a.Sb=null,a.Ui(!1)},a);a.F=null;a.B=[]}function QI(a,b){if(!b)return D(a.j,function(a){return a.ua});var c=Tq(a,b);return c?c.Wf():[]}function Tq(a,b){return E(a.j,function(a){return a.ua==b})}
MI.prototype.H=function(a,b){C(this.j,function(c){c.publish(a,b)})};function RI(a){var b={};C(a.j,function(a){sa(b,a.qh())});return b}MI.prototype.G=function(a,b){sa(this.A,a||null);sa(this.o,b||null)};MI.prototype.isAvailable=function(a){a=Tq(this,a);return!(!a||!a.Xj)};function SI(a,b,c){this.A=b;this.j=c;this.o=a}SI.prototype.getMessage=function(){return this.A};SI.prototype.getErrorCode=function(){return this.j};SI.prototype.toString=function(){return"AdError "+this.getErrorCode()+": "+this.getMessage()+(null!=this.k?" Caused by: "+this.k:"")};function TI(a,b){Zl.call(this,"adError");this.o=a;this.A=b?b:null}z(TI,Zl);var UI="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(" "),VI="acceptinvitation click collapse creativeview expand progress close".split(" ");function WI(a,b,c){Zl.call(this,a);this.A=b;this.o=null!=c?c:null}z(WI,Zl);WI.prototype.getAd=function(){return this.A};
var XI={CONTENT_PAUSE_REQUESTED:"contentPauseRequested",CONTENT_RESUME_REQUESTED:"contentResumeRequested",CLICK:"click",yK:"videoClicked",NH:"engagedview",QH:"expandedChanged",STARTED:"start",Yn:"impression",KI:"measurable_impression",oo:"viewable_impression",PAUSED:"pause",CJ:"resume",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",USER_CLOSE:"userClose",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",$v:"skipshown",SJ:"skippableStateChanged",
VG:"adMetadata",UG:"adBreakReady",HI:"log",VOLUME_CHANGED:"volumeChange",KK:"mute",BH:"companionBackfill",UK:"youTubeVideoMetadata",TK:"youTubeChannelMetadata",wK:"urlNavigationRequested"};var YI=["://secure-...imrworldwide.com/","://cdn.imrworldwide.com/","://aksecure.imrworldwide.com/","www.google.com/pagead/sul","www.youtube.com/gen_204\\?a=sul"],ZI=/\bocr\b/,$I=0,aJ={};function bJ(a){return A(B(a))?!1:(new I(a)).jf().match(ZI)?!0:null!=E(YI,function(b){return null!=a.match(b)})}
function cJ(a){if(a){var b=H("iframe",{src:'javascript:"data:text/html,<body><img src=\\"'+a+'\\"></body>"',style:"display:none"});a=rd(b).body;var c,d=fn(function(){zm(c);Ld(b)},15E3);c=xm(b,["load","error"],function(){fn(function(){gn(d);Ld(b)},5E3)});a.appendChild(b)}}function dJ(a){if(a){var b=new Image,c=""+$I++;aJ[c]=b;b.onload=b.onerror=function(){delete aJ[c]};b.src=a}};var eJ={"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"},fJ=["ADSENSE","ADSENSE/ADX"],gJ=["DART","DART_DFA","DART_DFP"],hJ=["FREEWHEEL"],iJ=["GDFP"],jJ={UI:"video/mp4",WI:"video/mpeg",II:"application/x-mpegURL",fJ:"video/ogg",eK:"video/3gpp",NK:"video/webm",TI:"audio/mpeg",VI:"audio/mp4"};var kJ=["google-developers.appspot.com","devsite.googleplex.com"],lJ=["*.googlesyndication.com"],mJ=["*.youtu.be","*.youtube.com"],nJ="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(" "),
oJ=["googleads.g.doubleclick.net","pubads.g.doubleclick.net"];function pJ(a,b){try{var c=df(new I(b)),c=c.replace(/^www./i,"");return ib(a,function(a){return qJ(a,c)})}catch(d){return!1}}function qJ(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 rJ(a){var b;if(b="https:"==window.location.protocol)b=(new RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+nJ.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i")).test(a);return b?(a=new I(a),Re(a,"https"),a.toString()):a};function sJ(a){window.open(rJ(a),"_blank")}function tJ(a,b,c,d,e){null!=b&&(a=uJ(a,b));null!=c&&(A(B(c))||(b=new I(a),rf(b.j,"label")&&(K(b,"acvw",c),a=b.toString().replace(/%2C/g,","))));null!=e&&(a=vJ(a,e));a=rJ(a);null!=d&&d?cJ(a):(c=a)&&(bJ(c)?cJ(c):dJ(c))}function wJ(a,b){null!=a&&C(a,function(a){tJ(a,b)})}function vJ(a,b,c){if(A(B(b)))return a;var d=new I(a);return c||rf(d.j,"label")?(K(d,"ged",b),d.toString()):a}
function uJ(a,b){return a.replace(/\[[a-zA-Z0-9_]+\]/g,function(a){try{var d=$b(b,a),d=d.toString();if(!A(B(d)))return encodeURIComponent(d).replace(/%2C/g,",")}catch(e){}return a})}function xJ(a,b,c){if(null==a)return"";K(a,"label",b);null!=c&&K(a,"value",c.join(";"));return a.toString()};function yJ(a,b){this.message=a;this.errorCode=b}yJ.prototype.getErrorCode=function(){return this.errorCode};yJ.prototype.getMessage=function(){return this.message};
var zJ=new yJ("Unable to request ads from server. Cause: {0}.",1005),AJ=new yJ("Unable to request ads from server due to network error.",1012),BJ=new yJ("Cannot parse the {0} value for the adslist response: {1}.",900),CJ=new yJ("Invalid usage of the API. Cause: {0}",900),DJ=new yJ("Unable to display one or more required companions.",602),EJ=new yJ("There was a problem requesting ads from the server.",1005),FJ=new yJ("Ad tag URI {0} is invalid. It must be properly encoded before being passed.",1013),
GJ=new yJ("The provided ad type: {0} is not supported.",1005),HJ=new yJ("The provided {0} information: {1} is invalid.",1101),IJ=new yJ("The response does not contain any valid ads.",1009),JJ=new yJ("The overlay ad content could not be displayed since creative dimensions do not align with display area.",501),KJ=new yJ("The ad playlist response was malformed or empty.",1010),LJ=new yJ("The ad response was not understood and cannot be parsed.",1010),MJ=new yJ("An unexpected error occurred and the cause is not known. Refer to the inner error for more info.",
900),NJ=new yJ("The ad response contains unexpected element. Cause {0}.",1010),OJ=new yJ("No assets were found in the VAST ad response.",200),PJ=new yJ("Duplicate node in <{0}>: {1}",101),QJ=new yJ("The VAST response document is empty.",1009),RJ=new yJ("Linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",403),SJ=new yJ("Ad request reached a timeout.",301),TJ=new yJ("VAST response was malformed and could not be parsed.",100),UJ=new yJ("VAST media file loading reached a timeout of {0} seconds.",
402),VJ=new yJ("Ad request could not be completed due to a network error.",301),WJ=new yJ("Non linear assets were found in the VAST ad response, but none of them matched the video player's capabilities.",503),XJ=new yJ("The maximum number of VAST wrappers ({0}) has been reached.",302),YJ=new yJ("VAST media file duration differs from the VAST response duration by {0} seconds.",202),ZJ=new yJ("Video player received an ad with unexpected or incompatible linearity",201),$J=new yJ("Unknown node in <{0}>: {1}",
101),aK=new yJ("Invalid VAST resource type: {0}",101),bK=new yJ("Invalid VAST version",102),cK=new yJ("No additional VAST wrappers allowed.",300),dK=new yJ("No Ads VAST response after one or more Wrappers",303),eK=new yJ("There was an error playing the video ad.",400),fK=new yJ("VMAP unsupported node in <{0}>: {1}",1010),gK=new yJ("An unexpected error occurred within the VPAID creative. Refer to the inner error for more info.",901);
function hK(a,b,c){return iK("adLoadError",a,b||null,xb(arguments,2))}function jK(a,b,c){return iK("adPlayError",a,b||null,xb(arguments,2))}function kK(a,b,c,d,e){var g=a.apply(null,tb([c,d],xb(arguments,3)));b.U(new WI("log",null,g))}function iK(a,b,c,d){if(c instanceof SI)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 SI(a,b,e);a.k=c;return a}
function lK(a,b,c,d){var e=jK.apply(null,tb([b,c],xb(arguments,3)));a.U(new TI(e))};function mK(a){this.j=a}function nK(){var a=oK();return pK(a,"disableExperiments")}function pK(a,b){if(b in a.j){var c=a.j[b];if("boolean"==typeof c)return c}return!1};function qK(a){return(a=a.match(/^\w{2,3}([-_]|$)/))?a[0].replace(/[_-]/g,""):""};function rK(){this.k="always";this.j=!1;this.A=!0;this.C=!1;this.B=null}function sK(){return tK.C}rK.prototype.getPlayerType=function(){return""};function oK(){var a=tK;if(null==a.B){var b={},c=gf(new I(Cd().location.href));if(rf(c,"tcnfp"))try{b=dg(c.get("tcnfp"))}catch(d){}a.B=new mK(b)}return a.B}var tK=new rK;var uK={},vK="",wK=/OS (\S+) like/,xK=/Android (\S+);/;function yK(){return bd||Oa(Qc,"Mobile")}function zK(){return cd&&!dd||Oa(Qc,"iPod")}function AK(){return zK()||dd}function BK(a,b){if(null==uK[b]){var c;A(vK)&&(c=a.exec(Qc))&&(vK=c[1]);(c=vK)?(c=c.replace(/_/g,"."),uK[b]=0<=Ta(c,b)):uK[b]=!1}return uK[b]}function CK(){var a=Qc;return a?Oa(a,"AppleTV")||Oa(a,"GoogleTV")||Oa(a,"HbbTV")||Oa(a,"NetCast.TV")||Oa(a,"POV_TV")||Oa(a,"SMART-TV")||Oa(a,"SmartTV")||bd&&Oa(a,"AFT"):!1}
function DK(){return Oa(Qc,"PlayStation")}function EK(){return zK()||bd&&(!bd||!BK(xK,4))||!sK()&&(Oa(Qc,"CrKey")||DK()||Oa(Qc,"Roku")||CK()||Oa(Qc,"Xbox"))?!1:!0};function FK(){this.j=.05>Math.random();this.k=Math.floor(4503599627370496*Math.random())}ba(FK);function GK(a,b,c,d){if(a.j||d){c=c||{};c.lid=b;c=HK(a,c);var e=new I("http://pagead2.googlesyndication.com/pagead/gen_204");Jb(c,function(a,b){K(e,b,null!=a?"boolean"==typeof a?a?"t":"f":""+a:"")},a);a=IK();Re(e,a.Jb);tJ(e.toString())}}function HK(a,b){b.id="";var c=IK();b.c=a.k;b.domain=c.mb;return b}function IK(){var a=Cd(),b=document;return new I(a.parent==a?a.location.href:b.referrer)};function JK(){}f=JK.prototype;f.Aw=!1;f.qo=!1;f.wo=!0;f.baseYouTubeUrl=null;f.bitrate=-1;f.contentId=null;f.Uw=!1;f.Al=!1;f.mimeTypes=null;f.surveyCreativeData=null;f.KD=!0;f.Ds=!1;f.useShareButton=!1;f.useStyledNonLinearAds=!1;f.useVideoAdUi=!0;f.LD=!0;f.ro=!1;f.Qo=!1;f.youTubeAdNamespace=0;f.showContentThumbnail=!0;f.cn=!1;f.loadVideoTimeout=15E3;window.console&&"function"===typeof window.console.log&&x(window.console.log,window.console);function KK(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 LK(){this.domLoading=KK("domLoading");this.domComplete=KK("domComplete");this.unloadEventStart=KK("unloadEventStart")}LK.prototype.toString=function(){function a(a){a=$b(c,a);null!=a?b.push(""+a):b.push("u")}var b=[],c=this;a("domLoading");a("domComplete");a("unloadEventStart");return b.join(".")};
function MK(a){var b={},c=new LK,d=null;null!=c.domLoading&&(d=c.domLoading);null==d&&null!=a&&(d=a);b.pt=c;b.td=d;return b};function NK(a){for(var b=[],c=a=Cd(a.ownerDocument);c!=a.top;c=c.parent)if(c.frameElement)b.push(c.frameElement);else break;return b};var OK=null;function PK(){this.j={};this.k=0}function QK(a,b){this.A=a;this.o=!0;this.j=b}QK.prototype.getValue=function(){return this.j};QK.prototype.D=function(){return this.o?this.k():""};QK.prototype.k=function(){return String(this.j)};function RK(a,b){QK.call(this,a,b);this.j=!!b}z(RK,QK);RK.prototype.k=function(){return this.j?"1":"0"};function SK(a){QK.call(this,"sv",a);this.j=null==a?"1":"2"}z(SK,QK);SK.prototype.k=function(){return String(this.j)};function TK(a,b){QK.call(this,a,b)}
z(TK,QK);TK.prototype.k=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 UK(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 TK("",new mg(c,b,Number(a[3])-c,Number(a[2])-b))}return new TK("",new mg(0,0,0,0))}function VK(){OK||(OK=new PK);return OK}
PK.prototype.setItem=function(a){this.j[a.A]=a};PK.prototype.getItem=function(a){return $b(this.j,a,null)};PK.prototype.D=function(){var a=[],b;for(b in this.j){var c=this.j[b].D();c&&a.push(b+c)}return a.join("_")};function WK(a){var b=null;a&&(b=a());if(b){a=VK();a.j={};var c=new RK("ef",!0);c.o=!1;a.setItem(c);c=Cd().document;c=c.webkitVisibilityState||c.mozVisibilityState||c.visibilityState||c.msVisibilityState||"";c="hidden"!=c.toLowerCase().substring(c.length-6)?!0:!1;a.setItem(new RK("tv",c));var d;try{var e;var g=Cd().top;try{e=!!g.location.href||""===g.location.href}catch(h){e=!1}if(e){var k=NK(b);d=k&&0!=k.length?"1":"0"}else d="2"}catch(l){d="2"}a.setItem(new QK("is",d));if(c){k=e=Cd().top;"2"==d&&
(k=Cd());g=XK(b,k);a.setItem(new TK("er",g));var p;try{p=k.document&&!k.document.body?null:zd(k||window)}catch(t){p=null}a.setItem(new SK(p));p?(k=ie(pd(k.document)),a.setItem(new RK("sp",!!k)),p=k?new mg(k.x,k.y,p.width,p.height):null):p=null;a.setItem(new TK("vi",p));if(p&&"1"==d){d=NK(b);b=[];for(k=0;k<d.length;k++)(c=XK(d[k],e))&&b.push(c);b.push(p);p=YK(b)}ZK(a,g,p)}a.k&&(d=Math.round(y()/1E3)-a.k,a.setItem(new QK("ts",d)));a.k=Math.round(y()/1E3)}else a=VK(),a.j={},a.k=Math.round(y()/1E3),a.setItem(new RK("ef",
!1));return a}function YK(a){var b=new mg(-Number.MAX_VALUE/2,-Number.MAX_VALUE/2,Number.MAX_VALUE,Number.MAX_VALUE),c=new mg(0,0,0,0);if(!a||0==a.length)return c;for(var d=0;d<a.length;d++)if(!qg(b,a[d]))return c;return b}function XK(a,b){var c=a.getBoundingClientRect(),d=Jg(a,b);return new mg(Math.round(d.x),Math.round(d.y),Math.round(c.right-c.left),Math.round(c.bottom-c.top))}
function ZK(a,b,c){if(b&&c){var d;t:{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 mg(d,g,e-d,h-g);break t}}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 QK("vp",d));d&&0<d?(e=ng(b),g=ng(c),e=e.top>=g.top&&e.top<g.bottom):e=!1;a.setItem(new RK("ct",e));d&&0<d?(e=ng(b),g=ng(c),e=e.bottom<=g.bottom&&e.bottom>g.top):e=!1;a.setItem(new RK("vb",
e));d&&0<d?(e=ng(b),g=ng(c),e=e.left>=g.left&&e.left<g.right):e=!1;a.setItem(new RK("vl",e));d&&0<d?(b=ng(b),c=ng(c),c=b.right<=c.right&&b.right>c.left):c=!1;a.setItem(new RK("vr",c))}}
function $K(a,b,c){if(b&&c){b=UK(b).getValue();c=UK(c).getValue();var d=null;a.getItem("er")&&(d=a.getItem("er").getValue(),d.top+=b.top,d.left+=b.left,a.setItem(new TK("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=YK(g);ZK(a,d,b);a.setItem(new TK("vi",c))}}};fc("m","c","s","t");function aL(a){this.j=ec.apply(null,arguments);return this}aL.prototype.set=function(a,b){this.j[a]=b};function bL(a,b){var c=$b(a.j,"eb",0);a.j.eb=c|b}aL.prototype.get=function(a){return $b(this.j,a,null)};aL.prototype.extend=function(a){dc(this.j,a)};aL.prototype.D=function(){var a=[],b;for(b in this.j)a.push(b+this.j[b]);return a.join("_")};var cL=null,dL=null;function eL(a,b){var c=0;Sb(Cd(),"ima","video","client","tagged")&&(c=1);this.o=WK(a);this.k=new aL("ta",c,"ve",2);c&&bL(this.k,1);Sb(Cd(),"ima","video","client","periscopeTag")&&bL(this.k,4);Sb(Cd(),"ima","video","client","sdkTag")&&bL(this.k,8);Sb(Cd(),"ima","video","client","jsTag")&&bL(this.k,2);b&&$b(b,"fullscreen",!1)&&bL(this.k,16);var d=null;this.j=null;if(c&&(c=Sb(Cd(),"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 $b(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=Sb(Cd(),"ima","video","client","getLastSnapshotFromTop"))if(d=d())this.j.extendWithDataFromTopIframe(d.buckets,d.tt,d.pd),$K(this.o,d.er,d.vi);d=this.j.getTimeSinceTagLoadSeconds()}this.k.extend(MK(d))}
eL.prototype.D=function(){var a=[],b=this.k.D();b&&a.push(b);this.j&&(b=this.j.serialize())&&a.push(b);(b=this.o.D())&&a.push(b);return a.join("_")};function fL(a,b){try{return(new eL(a,b)).D()}catch(c){return"tle;"+Na(c.name,12)+";"+Na(c.message,40)}};var gL={ko:"start",FIRST_QUARTILE:"firstquartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdquartile",COMPLETE:"complete",METRIC:"metric",PAUSE:"pause",Uv:"resume",SKIPPED:"skip",oo:"viewable_impression",Lv:"mute",gw:"unmute",FULLSCREEN:"fullscreen",hv:"exitfullscreen"},hL={UNKNOWN:-1,ko:0,FIRST_QUARTILE:1,MIDPOINT:2,THIRD_QUARTILE:3,COMPLETE:4,METRIC:5,PAUSE:6,Uv:7,SKIPPED:8,oo:9,Lv:10,gw:11,FULLSCREEN:12,hv:13};function iL(a){try{return!!a&&null!=a.location.href&&tg(a,"foo")}catch(b){return!1}}function jL(){var a=[1,2];if(!(1E-4>Math.random())){var b=Math.random();if(.02>b){try{var c=new Uint16Array(1);window.crypto.getRandomValues(c);b=c[0]/65536}catch(d){b=Math.random()}return a[Math.floor(b*a.length)]}}return null};var kL=document,lL=window;function mL(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 nL(a){lL.google_image_requests||(lL.google_image_requests=[]);var b=lL.document.createElement("img");b.src=a;lL.google_image_requests.push(b)};function oL(a,b){for(var c in a)Object.prototype.hasOwnProperty.call(a,c)&&b.call(null,a[c],c,a)}function pL(a){return"function"==typeof encodeURIComponent?encodeURIComponent(a):escape(a)};var qL=!0,rL={};function sL(a,b,c,d){var e=tL,g,h=qL;try{g=b()}catch(k){try{var l=mL(k);b="";k.fileName&&(b=k.fileName);var p=-1;k.lineNumber&&(p=k.lineNumber);h=e(a,l,b,p,c)}catch(t){try{var w=mL(t);a="";t.fileName&&(a=t.fileName);c=-1;t.lineNumber&&(c=t.lineNumber);tL("pAR",w,a,c,void 0,void 0)}catch(J){uL({context:"mRE",msg:J.toString()+"\n"+(J.stack||"")},void 0)}}if(!h)throw k;}finally{if(d)try{d()}catch(la){}}return g}
function tL(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=kL.URL.substring(0,512);h.ref=kL.referrer.substring(0,512);vL(h);uL(h,g);return qL}function uL(a,b){try{if(Math.random()<(b||.01)){var c="/pagead/gen_204?id=jserror"+wL(a),d="http"+("http:"==lL.location.protocol?"":"s")+"://pagead2.googlesyndication.com"+c,d=d.substring(0,2E3);nL(d)}}catch(e){}}function vL(a){var b=a||{};oL(rL,function(a,d){b[d]=lL[a]})}
function xL(a,b,c,d,e){return function(){var g=arguments;return sL(a,function(){return b.apply(c,g)},d,e)}}function yL(a,b){return xL(a,b,void 0,void 0,void 0)}function wL(a){var b="";oL(a,function(a,d){if(0===a||a)b+="&"+d+"="+pL(a)});return b};function zL(){for(var a=lL,b=a,c=0;a&&a!=a.parent;)a=a.parent,c++,iL(a)&&(b=a);return b};var AL=!1,BL="";function CL(a){a=a.match(/[\d]+/g);if(!a)return"";a.length=3;return a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var DL=navigator.plugins["Shockwave Flash"];DL&&(AL=!0,DL.description&&(BL=CL(DL.description)));navigator.plugins["Shockwave Flash 2.0"]&&(AL=!0,BL="2.0.0.11")}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var EL=navigator.mimeTypes["application/x-shockwave-flash"];(AL=EL&&EL.enabledPlugin)&&(BL=CL(EL.enabledPlugin.description))}else try{var FL=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),AL=!0,BL=CL(FL.GetVariable("$version"))}catch(GL){try{FL=
new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),AL=!0,BL="6.0.21"}catch(HL){try{FL=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),AL=!0,BL=CL(FL.GetVariable("$version"))}catch(IL){}}}var JL=AL,KL=BL;if(kL&&kL.URL)var LL=kL.URL,qL=!(LL&&(0<LL.indexOf("?google_debug")||0<LL.indexOf("&google_debug")));function ML(a,b,c,d){c=xL(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 NL(a,b){var c=a||lL;c.top!=c&&(c=c.top);try{return c.document&&!c.document.body?new G(-1,-1):b?new G(c.innerWidth,c.innerHeight):zd(c||window)}catch(d){return new G(-12245933,-12245933)}}var OL=0;
function PL(){var a=QL,b=0<=RL?SL()-RL:-1,c=TL?SL()-UL:-1,d=0<=VL?SL()-VL:-1,e;if(79463068==a)return 500;947190538==a?(a=[4E3],e=[250,1E3]):947190541==a?(a=[4E3],e=[100,1E3]):947190542==a?(a=[],e=[100]):(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 WL=(new Date).getTime(),RL=-1,TL=!1,UL=-1,VL=-1;function SL(){return(new Date).getTime()-WL}
function XL(a){var b=[];Jb(a,function(a,d){d in Object.prototype||"undefined"==typeof a||(fa(a)&&(a=a.join(",")),b.push([d,"=",a].join("")))});return b.join("&")}function YL(){var a=H("div");a.style.cssText="position:relative;left:0px;top:0px;width:0;height:0;";return a}
function ZL(a){for(var b;a&&a!=a.parentElement;){if(a.style&&"none"==zg(a,"display"))return!0;b=a;a=a.parentElement}if(b&&(a=rd(b))){var c,d;try{if(c=Cd(a))d=c.frameElement}catch(e){return!1}if(c&&d&&c!=c.parent)return ZL(d)}return!1};function $L(a,b){this.G=a||3E3;this.F=b||3E3;this.k="u";this.B=null;this.j=[];this.C=!1;this.o=-1;this.A=0}function aM(a,b,c){this.snapshot=a;this.k=b;this.j=c}
function bM(a,b,c){if(!(b&&b.getBoundingClientRect&&0<=Ta(KL,"11")&&c)||Vc&&9>fd||0<a.j.length)return!1;try{var d=b.getBoundingClientRect()}catch(e){return!1}var g="DIV"==b.tagName,h=rd(b),k=[];if(g){var l=YL(),d=cM(d);C(d,function(a,b){var d=new dM("e",h,c,String(b));this.j.push(d);k.push(x(d.F,d,l,a))},a);b.insertBefore(l,b.childNodes[0]||null)}else d=eM(a,d),C(d,function(a,d){var e=new dM("e",h,c,String(d));this.j.push(e);k.push(x(e.D,e,b,a))},a);var p=!0;C(k,function(a){p=p&&a()});p?(a.k="l",
a.B=b,a.C=!g):(C(a.j,function(a){a.remove()}),a.j=[]);return p}function cM(a){return[new Mc(Math.floor((a.right-a.left)/2),Math.floor((a.bottom-a.top)/2))]}function eM(a,b){var c;try{c=b||a.B.getBoundingClientRect()}catch(d){c=new lg(0,0,0,0)}var e=cM(c);C(e,function(a){a.x+=c.left;a.y+=c.top});return e}function fM(a){if(a.B&&a.C){var b=eM(a);C(b,function(a,b){this.j[b]&&gM(this.j[b],a)},a)}}function hM(a){C(a.j,function(a){a.remove()});a.j=[];a.k="d"}
function iM(a){var b=(new Date).getTime(),c=a.D?b-a.D:0,d=-1;4==a.j.length?(d=D(a.j,function(a){return jM(a,b)}),d=kM(d)):1==a.j.length&&(d=[-1,0,1,2,3,5][jM(a.j[0],b)+1]);a.A=d==a.o?a.A+c:0;c=new aM(d,a.o,c);a.o=d;a.D=b;lM(a,d);fM(a);return c}function kM(a){var b=Hb(Nb(mM));C(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 lM(a,b){0==b&&nM(a)?a.k="n":a.k="dlfcrrrr".split("")[b+1]}$L.prototype.getStatus=function(){return this.k};
function nM(a){return"n"==a.k?!0:"l"==a.k&&a.A>=a.F}
function dM(a,b,c,d){this.module=null;this.A=a;this.xa="e"==a?String(c)+"~"+String(d):"";this.j=[];this.k=-1;this.B=0;this.o=Hb(Nb(oM));this.G=Hb(Nb(mM));"e"==this.A&&(pM[this.xa]=x(this.C,this));Vc?(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="'+qM(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=rM(this,b);a.width=1;a.height=1;a.style.zIndex=-999999;this.module=a}var mM={tK:-1,LOADING:0,rv:1,Xu:2,uI:3,VISIBLE:4},oM={LOADING:0,rv:1,Xu:2,lK:3,eJ:4,qK:5,rK:6,pK:7,hJ:8,kK:9},pM={};
function rM(a,b){function c(a,c,d){var e=b.createElement("param");e.name=c;e.value=d;a.appendChild(e)}var d=qM(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 qM(a,b){var c="//www.gstatic.com/osd/hbt.swf";"e"==a.A&&(c=Je("//www.gstatic.com/osd/hbe.swf","id",a.xa));b&&(c=Je(c,"delay","1"));return c}
dM.prototype.F=function(a,b){if(!this.module)return!1;this.module.style.position="absolute";gM(this,b);var c=!0;try{a.appendChild(this.module)}catch(d){c=!1}return c};dM.prototype.D=function(a,b){if(!this.module||!a.parentNode)return!1;this.module.style.position="fixed";gM(this,b);var c=!0;try{a.parentNode&&a.parentNode.insertBefore(this.module,a.nextSibling)}catch(d){c=!1}return c};function gM(a,b){a.module&&!Nc(b,Eg(a.module))&&Cg(a.module,b)}
dM.prototype.remove=function(){if(this.module)try{Ld(this.module)}catch(a){}this.module=null};dM.prototype.C=function(a){this.k=a?3:4};
function jM(a,b){if("e"==a.A){var c=null;try{c=a.module.it()}catch(d){}null===c?(c=0,0<a.k&&(c=2)):c=c?3:4;++a.G[c+1];a.k=c}else{var e=Number(b),g=null;try{g=a.module.fc()}catch(h){}sM(a,g,e);c=a.j[a.j.length-1];if(null===g){if(g=e=0,0<a.k||ha(c.Bj))g=e=2}else null===c.Bj||c.Zm>=e?(e=10<=g?4:0,g=0):g>c.Bj?(c=(g-c.Bj)/(e-c.Zm)*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.B&&6==c&&(c=7),g=c):g=e=1;6==a.B&&(--a.o[6],4==g||8==g?++a.o[5]:++a.o[7]);++a.o[g];a.k=e;a.B=g}return a.k}
function sM(a,b,c){var d=c-1E3,e=a.j.length;C(a.j,function(a,b){a.Zm<=d&&(e=Math.min(e,b+1))});var g=a.j.length-e;0<g&&a.j.splice(e,g);a.j.unshift({Bj:b,Zm:c})}q("gteh",xL("osd_or_lidar::gteh_ex",function(a,b){var c=pM[a];ia(c)&&c(b)}),void 0);function tM(a,b,c,d,e,g,h,k){this.j=uM.clone();this.A=this.T=0;this.ob=this.qb=this.da=-1;this.M=[0,0,0,0,0];this.I=[0,0,0,0,0];this.G=[0,0,0,0,0];this.ja=[0,0,0,0,0];this.S=d;this.X=this.W=-1;this.H=e;this.od=h||"";this.ee=k||"";this.va=function(){};this.he=function(){};this.K=this.element=c;this.Pe=0;this.Dh=-1;this.Gh=b?-1!=b.indexOf("dcopt=anid"):!1;this.B="";this.Me=c?String(c._avi_||""):"";this.jb=null;this.Ec="";this.C={};this.C.le=0;this.C.nt=2;this.C.Fr=3;this.k=this.Va=null;this.na=!1;this.P=
this.Ve=this.Oe=null;this.la=0;this.ka=!1;this.Ua=null;this.Qe=this.oa=this.gb=!1;this.Hh=.01>Math.random();this.fe=null;this.kc=void 0;this.ie=!1;this.ya=[];this.ga=void 0;this.Ac=this.wa=!1;this.F=void 0;this.$b=0;this.ba=-1;this.hb=this.V=0;this.ta=void 0;this.Oa=this.Ba=this.Ha=0;this.Ca=!1;this.o=0;this.O=!1;this.ge=5==e?.02>Math.random():Boolean(c&&c._tos_);this.Bh=1!=this.H?0:jL()||0;vM(this,a,g)}var uM=new lg(0,0,0,0);
function wM(a,b,c,d,e){if(!(0>a.S)){var g=lL.innerWidth,h=lL.innerHeight,k=new lg(Math.round(lL.mozInnerScreenY),Math.round(lL.mozInnerScreenX+g),Math.round(lL.mozInnerScreenY+h),Math.round(lL.mozInnerScreenX));c=new lg(lL.screenY+d,lL.screenX+c.width,lL.screenY+c.height,lL.screenX);e||(d=new lg(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.T=g*h);xM(a,k,c,b,e,!0)}}
function yM(a,b,c){var d=zM(a,lL&&lL.document);if(d){c||vM(a,lL,!0);var e=Math.floor((a.j.left+a.j.right)/2),g=Math.floor((a.j.top+a.j.bottom)/2),h=Ad(document),d=d(e-h.x,g-h.y)?.5:0;xM(a,a.j,d,b,c,!0)}}function zM(a,b){AM(a);if(!a.Va){var c=[];C(Rb(a.C),function(a){c[this.C[a]+1]=a},a);var d=c.join(""),d=b&&b[d];a.Va=d&&x(d,b)}return a.Va}function AM(a){a.C.e=-1;a.C.i=6;a.C.n=7;a.C.t=8}
tM.prototype.update=function(a,b,c,d,e){if(0>this.S)return null;c||vM(this,d,e);Boolean(null)&&c&&(d.clearInterval(this.Oe),this.Oe=null);Boolean(null)&&c&&(d.clearInterval(this.Ve),this.Ve=null);null!=this.Ua&&(c?(d.clearInterval(this.P),this.P=null,this.ka=!1):this.gb&&!this.P&&(this.P=d.setInterval(yL("osd_or_lidar::adblock::iem_int",x(this.dg,this,d,1E3)),1E3),this.dg(d)));return xM(this,this.j,b,a,c,!1)};
function xM(a,b,c,d,e,g){var h=d-a.S||1,k=null;ha(c)?b=BM(a,c):(k=c,b=BM(a,b,k));a.ga||CM(a,b,h,a.W,g,e,k,void 0);a.W=e?-1:b;a.S=d;-1!=b&&(0>a.da&&(a.da=d),a.ob=d);-1==a.qb&&1E3<=Math.max(a.G[2],a.I[2])&&(a.qb=d);a.va(a,k||uM);return a.A}
function BM(a,b,c){if(a.O&&7==a.H)return a.A=1,DM(a.A);var d=null;if(ha(b))a.A=b;else{c=new lg(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.T||c.top>=c.bottom||c.left>=c.right)return a.A=0,-1;var d=c.clone(),e=-b.left;b=-b.top;e instanceof Mc?(d.left+=e.x,d.right+=e.x,d.top+=e.y,d.bottom+=e.y):(d.left+=e,d.right+=e,ha(b)&&(d.top+=b,d.bottom+=b));d=(c.bottom-c.top)*(c.right-c.left);a.A=d/a.T}return DM(a.A)}
function DM(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 CM(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.M[d]+=c);(h=h||null)?(-1!=d&&2>=d&&-1!=a.X&&(a.ja[a.X]+=c),h=100*a.T/((h.bottom-h.top)*(h.right-h.left)),a.X=20<=h?0:10<=h?1:5<=h?2:2.5<=h?3:4):a.X=-1;if(7==a.H){k=n(k)?k:EM(a);h=-1!=d&&2>=d;e=.01<=k&&.01<=a.ta;e&&h||(a.Ca=!1);a.Ha+=c;e&&(a.Ba+=c,h?a.Oa+=c:a.V+=c);a.V>a.hb&&(a.hb=a.V);if(h||!n(k)||.01>k)a.V=0;k=n(k)?Number(k)?FM(k,3):0:k;a.ta=k}for(k=d;0<=k&&4>=k;k++)a.G[k]+=c,a.G[k]>a.I[k]&&(a.I[k]=
a.G[k]);for(k=0;k<a.G.length;++k)if(k<b||g||-1==b)a.G[k]=0}function GM(a,b,c){if(!Boolean(Boolean(a.K&&!!c&&!$h)&&!$h))return a.na=!0,!1;var d=new $L;(c=bM(d,a.K,c))?(a.he=b,a.k=d):a.na=!0;return c}
tM.prototype.dg=function(a,b){var c=zM(this,a&&a.document);if(c){vM(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=Ad(document),c=Boolean(c(d-g.x,e-g.y)),d=b||0;c?(this.la+=this.ka?d:0,this.ka=!0):(this.la=0,this.ka=!1);1E3<=this.la&&(a.clearInterval(this.P),this.P=null,this.gb=!1,this.Ua="v");vM(this,a,!1)}else a.clearInterval(this.P),this.P=null,this.gb=!1,this.Ua="i"};
tM.prototype.D=function(){var a=this.j,a=["p:",a.top,a.left,a.bottom,a.right];a.push("tos:",this.M.join(","));a.push("mtos:",this.I.join(","));a.push("rs:",this.H);var b=5===this.H||6===this.H;b||(a.push("zoom:",this.ja.join(",")),a.push("ht:",this.Pe));0<=this.da&&a.push("tfs:",this.da,"tls:",this.ob);a.push("vt:",this.qb);7===this.H&&a.push("qid:",this.B);this.Me&&a.push("avi:",this.Me);this.Ua&&a.push("iemv:",this.Ua);this.k?a.push("swf:",this.k.getStatus()):this.na&&a.push("swf:","-");b&&(this.ee&&
a.push("ord:",this.ee),this.od&&a.push("amd:",this.od,";"),this.Gh&&a.push("anid:","1"),this.Ec&&a.push("xbid:",this.Ec));null!==this.jb&&a.push("tp:"+this.jb);null!=this.kc&&a.push("vl:"+this.kc);return a.join(",")};
function vM(a,b,c){b=c?b:b.top;try{var d=uM.clone(),e=new Mc(0,0);if(a.K){if(c||2!=a.Bh||!ZL(a.K))d=a.K.getBoundingClientRect();if(c||!b.frameElement)e=Jg(a.K,b)}var g=e.x,h=e.y,k=d.right-d.left,l=d.bottom-d.top;a.j=new lg(Math.round(h),Math.round(g+k),Math.round(h+l),Math.round(g))}catch(p){a.j=uM.clone()}finally{a.C.Po=5,a.C.me=1,a.C.om=4}a.T=(a.j.bottom-a.j.top)*(a.j.right-a.j.left);2!=a.H&&3!=a.H&&6!=a.H||0!=a.T?(a.Qe=!1,a.fe=null):(a.Qe=!0,a.K&&a.K.parentElement&&a.Hh&&(c=a.K.parentElement.getBoundingClientRect(),
a.fe=new lg(c.top,c.right,c.bottom,c.left)))}function HM(a,b){var c=a.$b;TL||a.ga||-1==a.ba||(c+=b-a.ba);return c}function EM(a){if("as"==a.F&&ia(a.element.sdkVolume))try{return Number(a.element.sdkVolume())}catch(b){return-1}if("h"==a.F){var c=r("ima.common.sdkVolume");if(ia(c))try{return Number(c(a.B))}catch(d){return-1}}}function IM(a,b){vb(a.ya,Hb(b-a.ya.length+1));a.ya[b]=(100*a.A|0)/100}
function JM(a){if(a.oa)return{"if":0};var b=a.j.clone();b.round();var c=D(a.ya,function(a){return 100*a|0}),b={"if":KM?1:void 0,sdk:a.F?a.F:void 0,p:[b.top,b.left,b.bottom,b.right],tos:a.M,mtos:a.I,ps:void 0,pt:c,vht:HM(a,SL()),mut:a.hb,a:a.ta};LM(a,b);MM&&(b.ps=[MM.width,MM.height]);a.wa&&(b.ven="1");a.o&&(b.vds=a.o);NM()?b.c=(100*a.A|0)/100:b.tth=SL()-OL;return b}
function LM(a,b){b.avss=a.Ca;if(0==a.Ha)b.aoc=0,b.voc=0,b.avoc=0;else{var c=a.M[0]+a.M[1]+a.M[2];b.aoc=FM(a.Ba/a.Ha,2);b.voc=FM(c/a.Ha,2);b.avoc=FM(a.Oa/a.Ha,2)}}function FM(a,b){var c=Math.pow(10,b);return Math.round(a*c)/c};function OM(){return!PM()&&(Tc("iPod")||Tc("iPhone")||Tc("Android")||Tc("IEMobile"))}function PM(){return Tc("iPad")||Tc("Android")&&!Tc("Mobile")||Tc("Silk")};var QM=null,RM=null,SM=null,TM=!1,QL=void 0;function UM(){if(!TM){TM=!0;QM=QM||ML(lL,"scroll",VM,"osd_or_lidar::scroll");RM=RM||ML(lL,"resize",WM,"osd_or_lidar::resize");var a=XM,b;kL.mozVisibilityState?b="mozvisibilitychange":kL.webkitVisibilityState?b="webkitvisibilitychange":kL.visibilityState&&(b="visibilitychange");b&&(SM=SM||ML(kL,b,a,"osd_or_lidar::visibility"));XM()}}function WM(){YM(!1);VM()}function VM(){ZM($M,!1)}
function aN(){var a;bN&&(cN=NL(lL,bN));a=cN;var b=dN,c=gN;if(hN){a=b;YM(!1);var d=iN,e=d.height-a;0>=e&&(e=d.height,a=0);cN=new G(d.width,e);e=new jN;e.C=!0;e.A=cN;e.o=d;e.k=a;return e}if(c)return a=new jN,a.B=!0,a;if(kN)return a=new jN,a.D=!0,a;if(lN)return a=new jN,a.G=!0,a;t:{b=new jN;b.A=a;b.j=!1;if(null!=a&&-1!=a.width&&-1!=a.height&&-12245933!=a.width&&-12245933!=a.height){try{var c=bN,g=lL||lL,g=g.top,e=a||NL(g,c),h=ie(pd(g.document)),d=-1==e.width||-12245933==e.width?new lg(e.width,e.width,
e.width,e.width):new lg(h.y,h.x+e.width,h.y+e.height,h.x)}catch(k){a=b;break t}b.F=d;b.j=!0}a=b}return a}
function ZM(a,b){var c;if(!mN)if(window.clearTimeout(nN),nN=null,0==a.length)b||oN();else{var d=aN();try{var e=SL();if(d.C)for(c=0;c<a.length;c++)wM(a[c],e,d.o,d.k,b);else if(d.B)for(c=0;c<a.length;c++)yM(a[c],e,b);else if(lN)C(a,function(){});else if(d.D)C(a,function(a){if(b){if(a.k){var c=a.k;3<=c.o&&(c.o=3);a.W=-1}}else if(a.k&&"d"!=a.k.getStatus()){var c=iM(a.k),d=[-1,-1,-1,-1,-1,4,2,0],e=d[c.snapshot+1];CM(a,e,c.j,d[c.k+1],!0,!1);a.W=e;a.va(a,uM);7==a.H?2E3<=Math.max(a.G[2],a.I[2])&&a.k&&hM(a.k):
1E3<=Math.max(a.G[2],a.I[2])&&!a.ge&&a.k&&hM(a.k);(c=2==c.snapshot||nM(a.k))||(c=a.k,c="f"==c.k&&c.A>=c.G);c&&(a.he(a),a.ge=!1,a.k&&hM(a.k))}});else if(d.j)for(c=0;c<a.length;c++)a[c].update(e,d.F,b,lL,KM);++pN}finally{b?C(a,function(a){a.A=0}):oN()}}}function XM(){var a=NM();if(a){if(!TL){var b=SL();UL=b;C($M,function(a){a.$b=HM(a,b)})}TL=!0;YM(!0)}else b=SL(),TL=!1,OL=b,C($M,function(a){0<=a.S&&(a.ba=b)});ZM($M,!a)}
function NM(){if(qN())return!0;var a;a=lL.document;a={visible:1,hidden:2,prerender:3,preview:4}[a.webkitVisibilityState||a.mozVisibilityState||a.visibilityState||""]||0;return 1==a||0==a}function oN(){lL&&(nN=lL.setTimeout(yL("osd_or_lidar::psamp_to",function(){ZM($M,!1)}),PL()))}function rN(a){return null!=E($M,function(b){return b.element==a})}var $M=[],mN=!1,cN=null,iN=null,MM=null,nN=null,KM=!iL(lL.top),dN=0,hN=!1,gN=!1,kN=!1,lN=!1,bN=PM()||OM(),pN=0;
function sN(){var a=lL.document;return a.body&&a.body.getBoundingClientRect?!0:!1}
function YM(a){cN=NL(lL,bN);if(!a){iN=lL.outerWidth?new G(lL.outerWidth,lL.outerHeight):new G(-12245933,-12245933);a=lL;a.top!=a&&(a=a.top);var b=0,c=0,d=cN;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,t=h.offsetWidth;h.clientHeight!=p&&(k=g.scrollHeight,l=g.scrollWidth,p=g.offsetHeight,
t=g.offsetWidth);k>d.height?k>p?(b=k,c=l):(b=p,c=t):k<p?(b=k,c=l):(b=p,c=t)}MM=new G(c,b)}catch(w){MM=new G(-12245933,-12245933)}}}function tN(){var a=uN,b=!1;C($M,function(c,d){if(1>Math.random()){var e=GM(c,a,String(d));b=b||e}});(kN=b)&&C($M,function(b){Boolean(b.k)||a(b)});return b}function vN(a){C(a,function(a){rN(a.element)||$M.push(a)})}function qN(){return ib($M,function(a){return a.O})}function jN(){this.o=this.A=null;this.k=0;this.F=null;this.j=this.G=this.D=this.B=this.C=!1};function wN(a,b){return a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())};var xN=null,yN="",zN=!1;function AN(){var a=xN||lL;if(!a)return"";var b=a.document,c=[];c.push("url="+pL(a.location.href.substring(0,512)));b&&b.referrer&&c.push("referrer="+pL(b.referrer.substring(0,512)));b=a.location&&a.location.ancestorOrigins;if(KM&&b&&0<b.length){for(var d=[],a=b.length,e=a-1;0<=e;--e)d.push(pL(b[e]));b=d.join(",");b=b.substring(0,512);c.push("anc="+b);c.push("adep="+a)}return c.join("&")};var BN=!1,CN=!1,DN=!1;function EN(){BN=!0;try{RL=SL(),.01>Math.random()&&(DN=!0),xN=zL(),YM(!1),sN()?(window.setTimeout(function(){},1),KM?FN():UM()):zN=!0}catch(a){throw $M=[],a;}}
function FN(){var a;if(Wc&&ha(lL.screenX)&&ha(lL.mozInnerScreenX)&&ha(lL.outerWidth)&&1>Math.random()){var b=lL.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&&(dN=a,hN=!0);a=!0}else a=!1;a?UM():(a=Vc&&hd(8)&&1>Math.random()?gN=!0:!1,a?UM():tN()?(UM(),CN=!0):(window.clearTimeout(nN),nN=null,yN="i",mN=!0))}function uN(a){if(a){if(!a.ie){var b=[];b.push("v=258v");b.push("r=fp");b.push("efm="+(CN?1:0));b.push(Ie(JM(a)));b.push(AN());b="&"+b.join("&");nL(("//pagead2.googlesyndication.com/pagead/gen_204?id=lidarvf"+b).substring(0,2E3));a.ie=!0}a.oa=!0}}
function GN(a,b,c){var d={};dc(d,{opt_videoAdElement:void 0,opt_VideoAdLength:void 0,opt_fullscreen:void 0,opt_nativeMobile:!1},c||{});var e=a.toLowerCase();if(a=Tb(gL,function(a){return a==e})){a={e:hL[a],hd:mN?"1":"0",v:"258v",hdr:yN||void 0};if(d.opt_offset)return a.msg="ol",XL(a);if(zN)return a.msg="ue",XL(a);b=HN(b,d);if(!b)return a.msg="nf",XL(a);BN||EN();"i"==yN&&(b.oa=!0);DN&&IN(b);c=d.opt_fullscreen;n(c)&&(b.O=Boolean(c));c={};c.start=JN;c.firstquartile=KN;c.midpoint=LN;c.thirdquartile=MN;
c.complete=NN;c.metric=ON;c.pause=PN;c.resume=QN;c.skip=RN;c.viewable_impression=ON;c.mute=SN;c.unmute=TN;c.fullscreen=UN;c.exitfullscreen=VN;if(c=c[e]){d=c(b,d);if(!n(d)||v(d))return d;dc(a,d);return XL(a)}}}function JN(a,b){"i"!=yN&&(mN=!1);!CN||Boolean(a.k)||a.na||GM(a,uN,String(eb($M,a)));WN(a,b);IM(a,0);.5<=(100*a.A|0)/100&&.01<=a.ta&&(a.Ca=!0);return JM(a)}function KN(a){IM(a,1);ZM([a],!NM());return JM(a)}function LN(a){IM(a,2);ZM([a],!NM());return JM(a)}
function MN(a){IM(a,3);ZM([a],!NM());return JM(a)}function NN(a){IM(a,4);ZM([a],!NM());var b=JM(a);a.O=!1;XN(a.B);return b}function PN(a){a.$b=HM(a,SL());var b=!NM();ZM([a],b);a.ga=!0;return JM(a)}function QN(a){var b=NM();a.ga&&!b&&(a.ba=SL());ZM([a],!b);a.ga=!1;return JM(a)}function ON(a){return JM(a)}function RN(a){var b=!NM();ZM([a],b);b=JM(a);a.O=!1;XN(a.B);return b}function SN(a){ZM([a],!NM());return JM(a)}function TN(a){ZM([a],!NM());return JM(a)}
function UN(a){a.O=!0;ZM([a],!NM());return JM(a)}function VN(a){a.O=!1;ZM([a],!NM());return JM(a)}function WN(a,b){b&&b.opt_VideoAdLength&&(a.kc=b.opt_VideoAdLength);var c=n(b)?b.opt_nativeTime:void 0;VL=c=ha(c)?c:SL();a.M=[0,0,0,0,0];a.I=[0,0,0,0,0];a.G=[0,0,0,0,0];a.ja=[0,0,0,0,0];a.S=-1;a.da=-1;a.ob=-1;a.Pe=0;a.Dh=-1;a.W=-1;a.X=-1;a.A=0;a.S=c;var d=!1;NM()||(d=!0,a.ba=c);ZM([a],d)}function XN(a){if(v(a)){var b=kb($M,function(b){return b.B==a});0<=b&&rb($M,b)}}
function HN(a,b){if(b.opt_nativeMobile)return YN(a,b);if(b.opt_videoAdElement)return ZN(a,b.opt_videoAdElement);var c=$N(a);return c?c:c=E($M,function(b){return b.B==a})}function YN(a,b){var c=E($M,function(b){return b.B==a});c||(c=new tM(window,"",null,b.opt_nativeTime,7,!1),c.F="n",c.va=aO,vN([c]),c.B=a);return c}function ZN(a,b){var c=E($M,function(a){return a.element==b});c||(c=bO(b),c.B=a,c.F="h");return c}
function $N(a){var b=E($M,function(b){return b.element?cO(b.element)==a:!1});if(b)return b;b=dO();b=E(b,function(b){return cO(b)==a});if(!b)return null;b=bO(b);b.F="as";eO(b);return b}function eO(a){var b=cO(a.element);v(b)&&(a.B=b)}function dO(){var a=lL.document,b=Ib(D(["embed","object"],function(b){return ub(a.getElementsByTagName(b))}));return b=gb(b,function(a){if(!a||!Qd(a))return!1;var b=a.getBoundingClientRect();return 0!=b.width&&0!=b.height&&a.metricID&&ia(a.metricID)?!0:!1})}
function cO(a){if(!a||!a.metricID||!ia(a.metricID))return null;var b;try{b=a.metricID()}catch(c){return null}return b.queryID}
function bO(a){var b=SL(),c=wN(a,"admeta")||wN(a,"admetaDfp")||"",d=wN(a,"ord")||"",e;t:if(d){e=lL.document.getElementsByTagName("script");for(var g=new RegExp(".doubleclick.net/(N.+/)?(pf)?(ad[ijx])/.*;ord="+Pa(d)),h=0;h<e.length;h++){var k=e[h];if(k&&k.src&&g.test(k.src)){e=k.src;break t}}e=lL!=lL.top&&g.test(lL.location.href)?lL.location.href:""}else e="";a=new tM(lL,e,a,b,7,KM,c,d);b=e.match(/.doubleclick.net\/(N.+\/)?(pf)?(ad[ijx])\//);a.jb=b?{adi:"adi",adj:"adj",adx:"adx"}[b[3]]:"";if(e){t:{if(e&&
(b=e.match(/\/\/.*(;u=xb[^;\?]*)/i))&&(b=b[b.length-1].split("="))&&2==b.length){b=b[1];break t}b=null}a.Ec=b}a.va=aO;vN([a]);UM();return a}function aO(a){if(2E3<=Math.max(a.G[2],a.I[2])&&!a.wa){var b="as"==a.F,c="h"==a.F,d="n"==a.F,e=r("ima.common.triggerViewEvent"),g=JM(a);g.e=9;try{var h=XL(g);c||d?ia(e)?(e(a.B,h),a.wa=!0):a.o=4:b?a.element&&a.element.triggerViewEvent?(a.element.triggerViewEvent(h),a.wa=!0):a.o=1:a.o=5}catch(k){a.o=a.o||2}}else a.o=3}
function IN(a){if(a.Ac||a.oa)a.o=a.o||13;else{var b="as"==a.F,c="h"==a.F;try{if(c){var d=r("ima.common.triggerMeasurableEvent");ia(d)?(d(a.B),a.Ac=!0):a.o=a.o||14}else b?a.element&&a.element.triggerMeasurableEvent?(a.element.triggerMeasurableEvent(),a.Ac=!0):a.o=a.o||11:a.o=a.o||15}catch(e){a.o=a.o||12}}}q("Goog_AdSense_Lidar_startMetricMeasurement",xL("lidar::startmm_ex",function(a,b){var c=b||{};if(!v(a)){var d=HN(a,c);d&&WN(d,c)}}),void 0);
q("Goog_AdSense_Lidar_stopMetricMeasurement",xL("lidar::stopmm_ex",XN),void 0);q("Goog_AdSense_Lidar_getMetric",xL("lidar::getmetric_ex",function(a){var b=E($M,function(b){return b.B===a});if(!b)return"-1";var c={xsj:b.M,mkdj:b.I};NM()?c.c7=(100*b.A|0)/100:c.ftr=SL()-OL;return fg(c)}),void 0);q("Goog_AdSense_Lidar_sendVastMessage",xL("lidar::handlevast_ex",GN),void 0);function fO(){U.call(this);this.j=null;this.A=new ln(this);R(this,this.A);this.B=null;this.F=new oe;this.D=new oe;this.o=null;this.k=!1}z(fO,U);var gO=null;function hO(){null!=gO||(gO=new fO);return gO}fO.prototype.destroy=function(){this.A.Fa(this.j,"activityMonitor",this.C);this.k=!1};
fO.prototype.init=function(a){if(!this.k){(this.j=a||null)&&this.A.listen(this.j,"activityMonitor",this.C);if(tK.A&&!(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.k=!0}};
function iO(a){if(null==a)return!1;if(zK()&&null!=a.webkitDisplayingFullscreen)return a.webkitDisplayingFullscreen;var b=window.screen.availWidth||window.screen.width,c=window.screen.availHeight||window.screen.height;a=jO(a);return 0>=b-a.width&&42>=c-a.height}function jO(a){return ia(a.getBoundingClientRect)?a.getBoundingClientRect():{left:a.offsetLeft,top:a.offsetTop,width:a.offsetWidth,height:a.offsetHeight}}function kO(a,b){a.o=b}
function lO(a,b,c,d,e){if(a.k){e=e||{};if(d=d?a.D.get(d):tK.o)null!=e.opt_fullscreen||(e.opt_fullscreen=iO(d)),null!=e.opt_videoAdElement||(e.opt_videoAdElement=d);null==e.opt_offset&&a.o&&(e.opt_offset=jO(a.o));return GN(b,c,e)||""}return""}
fO.prototype.C=function(a){var b=a.jd,c=b.queryId,d={};d.eventId=b.eventId;switch(a.ic){case "getViewability":d.viewabilityString=lO(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_offset=b.overlayBounds);var h=null;"isFullscreen"in b&&(h=b.isFullscreen);d.viewabilityString=lO(this,e,c,a,g);d.engagementString=mO(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=mO(this,a,h),this.j.send("activityMonitor","engagement",c)}};function mO(a,b,c){if(!tK.A)return"";var d=b?a.D.get(b):tK.o;a={};null!=c&&(a.fullscreen=c);return fL(function(){return d},a)}q("ima.common.sdkVolume",function(a){var b=hO();a=b.F.get(a)||b.B;return null!=a?a():-1},void 0);
q("ima.common.triggerViewEvent",function(a,b){var c={};c.queryId=a;c.viewabilityString=b;var d=hO().j;d?d.send("activityMonitor","viewableImpression",c):hO().U(new WI("viewable_impression",null,c))},void 0);q("ima.common.triggerMeasurableEvent",function(a){var b={};b.queryId=a;(a=hO().j)?a.send("activityMonitor","measurableImpression",b):hO().U(new WI("measurable_impression",null,b))},void 0);function nO(a,b,c){if(nb(a))return null;a=gb(a,function(a){var b=a.A;return"application/x-mpegurl"==B(a.j).toLowerCase()||"progressive"==b});nb(c)||(c=D(c,function(a){return a.toLowerCase()}),a=gb(a,function(a){return F(c,B(a.j).toLowerCase())}));if(!ha(b)||0>=b)b=OM()?500:1E3;return oO(a,b)}function oO(a,b){return pO(a,b)||qO(a,b)||rO(a,b)}function pO(a,b){var c=null;C(a,function(a){var e=a.Md,g=a.Ld;e>b||g<b||!(null==c||c.Md>e)||(c=a)});return c}
function qO(a,b){var c=null;C(a,function(a){var e=a.Md,g=a.Ld;g>b||(null==c||c.Ld<g?c=a:null!=c&&c.Ld==g&&c.Md>e&&(c=a))});return c}function rO(a,b){var c=null;C(a,function(a){var e=a.Md,g=a.Ld;if(!(e<b))if(null!=c&&c.Md==e&&c.Ld<g)c=a;else if(null==c||c.Md>e)c=a});return c};function sO(){U.call(this);this.C=this.F=this.H=this.D=!1;this.k=0;this.A=[];this.I=!1;this.o=0;this.B=new ln(this);this.G={}}z(sO,U);function tO(a,b){null==b||a.D||(a.j=b,uO(a),a.D=!0)}function vO(a){null!=a.j&&a.D&&(wO(a),a.D=!1,a.F=!1,a.C=!1,a.k=0,a.A=[],a.I=!1)}
function uO(a){wO(a);!(a.j instanceof U)&&"ontouchstart"in document.documentElement&&AK()?(a.G={touchstart:x(a.gC,a),touchmove:x(a.fC,a),touchend:x(a.eC,a)},Jb(a.G,function(a,c){this.j.addEventListener(c,a,!1)},a)):a.B.listen(a.j,"click",a.Hp)}function wO(a){a.B.Fa(a.j,"click",a.Hp);Jb(a.G,function(a,c){this.j.removeEventListener(c,a,!1)},a);a.G={}}f=sO.prototype;
f.gC=function(a){this.F=!0;this.k=a.touches.length;this.o&&(window.clearTimeout(this.o),this.o=0,this.H=!0);this.I=xO(this,a.touches)||1!=a.touches.length;yO(this,a.touches)};f.fC=function(a){this.k=a.touches.length;this.C=!0};f.eC=function(a){!this.F||1!=this.k||this.C||this.H||this.I||!xO(this,a.changedTouches)||(this.o=window.setTimeout(x(this.Ro,this),300));this.k=a.touches.length;0==this.k&&(this.C=this.F=!1,this.A=[]);this.H=!1};f.Hp=function(){this.Ro()};
function yO(a,b){a.A=[];C(b,function(a){pb(this.A,a.identifier)},a)}function xO(a,b){return ib(b,function(a){return F(this.A,a.identifier)},a)}f.Ro=function(){this.o=0;this.U(new Zl("click"))};f.L=function(){vO(this);this.B.dispose();this.B=null;sO.J.L.call(this)};function zO(a,b,c,d,e,g,h,k,l){this.A=a;this.j=b;isNaN(c)&&isNaN(d)&&isNaN(e)?e=d=0:isNaN(d)&&!isNaN(e)?d=e:!isNaN(d)&&isNaN(e)?e=d:!isNaN(c)&&isNaN(d)&&isNaN(e)&&(d=e=c);this.Md=d;this.Ld=e;this.B=h;this.k=k;this.o=l}zO.prototype.getHeight=function(){return this.B};function AO(){U.call(this)}z(AO,U);var BO={kH:"beginFullscreen",CLICK:"click",KH:"end",MH:"endFullscreen",ERROR:"error",LI:"mediaLoadTimeout",PAUSE:"pause",PLAY:"play",RJ:"skip",$v:"skipShown",ko:"start",gK:"timeUpdate",fK:"timedMetadata",JK:"volumeChange"};AO.prototype.Np=u;AO.prototype.gf=function(){return null};function CO(a){U.call(this);this.j=a;this.M=new Fm(4);this.A=0;this.K=this.o=this.F=!1;this.H=this.Bg();this.G=this.Id();this.O=15E3;this.I=!1}z(CO,AO);f=CO.prototype;
f.Wr=function(a,b,c){a=gb(a,function(a){var b=a.j;A(B(a.k))||"progressive"!=a.A&&"application/x-mpegurl"!=B(b).toLowerCase()?a=!1:(b=B(b).toLowerCase(),a=A(b)||bd&&BK(xK,2.3)&&-1!=b.indexOf("application/ogg")?!1:bd&&(-1!=b.indexOf("video/mp4")||-1!=b.indexOf("video/3gpp"))||AK()&&(-1!=b.indexOf("application/x-mpegurl")||-1!=b.indexOf("application/vnd.apple.mpegurl"))?!0:!A(this.j.canPlayType(b)));return a},this);return nO(a,b,c)};
f.al=function(){return gb(Qb(jJ),function(a){return!A(this.j.canPlayType(a))},this)};f.Nm=function(a){this.O=0<a.vb?a.vb:15E3};f.load=function(a){DO(this);this.j.src=a;this.j.load()};f.getVideoUrl=function(){return this.j.src};f.setVolume=function(a){this.j.volume=a};f.ed=function(){return this.j.volume};f.play=function(){this.I=!1;fn(this.j.play,0,this.j);this.P=fn(this.Lw,this.O,this)};f.pause=function(){this.I=!0;this.j.pause()};
f.Dg=function(){return this.j.paused?AK()||Zh?this.j.currentTime<this.j.duration:!0:!1};f.Cg=function(){return this.j.muted};f.Uk=function(){zK()&&this.j.webkitDisplayingFullscreen&&this.j.webkitExitFullscreen()};f.Id=function(){return iO(this.j)};f.lg=function(a){var b;t:{for(b=this.M.La();b.length;){var c=b.pop();if(0<c){b=c;break t}}b=-1}return b>=a};f.qf=function(a){this.j.currentTime=a};f.getCurrentTime=function(){return this.j.currentTime};f.dp=function(){return EO(this)};
f.bd=function(){return isNaN(this.j.duration)?-1:this.j.duration};f.Be=function(){return this.j.ended};f.Bg=function(){return new G(this.j.offsetWidth,this.j.offsetHeight)};f.Pp=function(){return this.j.seeking};f.L=function(){this.rf();this.j=null;CO.J.L.call(this)};f.Op=function(){return this.j.error};
f.Ai=function(){this.rf();this.k=new ln(this);this.k.listen(this.j,"canplay",this.oA);this.k.listen(this.j,"ended",this.Zy);this.k.listen(this.j,"webkitbeginfullscreen",this.Dl);this.k.listen(this.j,"webkitendfullscreen",this.Rp);this.k.listen(this.j,"pause",this.az);this.k.listen(this.j,"playing",this.BB);this.k.listen(this.j,"timeupdate",this.aC);this.k.listen(this.j,"volumechange",this.bz);this.k.listen(this.j,"error",this.Qp);this.C=new sO;this.k.listen(this.C,"click",this.Yy);tO(this.C,this.j);
this.D=new dn(1E3);this.k.listen(this.D,"tick",this.$y);this.D.start()};f.rf=function(){null!=this.C&&(vO(this.C),this.C=null);null!=this.D&&this.D.dispose();null!=this.k&&(this.k.dispose(),this.k=null);DO(this)};function DO(a){a.o=!1;a.F=!1;a.A=0;a.K=!1;a.M.clear();gn(a.P);S(a.B)}function FO(a){a.o||(a.o=!0,gn(a.P),a.U("start"),EK()||!bd||bd&&BK(xK,3)||zK()&&(!AK()||!BK(wK,4))||a.Dl())}
f.oA=function(){var a;if(a=$h)a=Qc,a=!(a&&(Oa(a,"SMART-TV")||Oa(a,"SmartTV")));a&&!this.K&&(this.qf(.001),this.K=!0)};f.BB=function(){this.U("play");AK()||Yh||FO(this)};f.aC=function(){if(!this.o&&(AK()||Yh)){if(0>=this.getCurrentTime())return;if(Yh&&this.Be()&&1==this.bd()){this.Qp();return}FO(this)}if(AK()){if(1.5<this.getCurrentTime()-this.A){this.F=!0;this.qf(this.A);return}this.F=!1;this.getCurrentTime()>this.A&&(this.A=this.getCurrentTime())}this.M.add(this.j.currentTime);this.U("timeUpdate")};
f.bz=function(){this.U("volumeChange")};f.az=function(){var a;this.o&&AK()&&!this.I&&2>EO(this)-this.j.currentTime?(this.B=new dn(250),this.k.listen(this.B,"tick",this.jA),this.B.start(),a=!0):a=!1;a||this.U("pause")};f.Zy=function(){var a=!0;AK()&&(a=this.A>=this.j.duration-1.5);!this.F&&a&&this.U("end")};f.Dl=function(){this.U("beginFullscreen")};f.Rp=function(){this.U("endFullscreen")};f.Qp=function(){gn(this.P);this.U("error")};f.Yy=function(){this.U("click")};
f.$y=function(){var a=this.Bg(),b=this.Id();if(a.width!=this.H.width||a.height!=this.H.height)!this.G&&b?this.Dl():this.G&&!b&&this.Rp(),this.H=a,this.G=b};f.Lw=function(){if(!this.o){try{GK(FK.getInstance(),16)}catch(a){}DO(this);this.U("mediaLoadTimeout")}};f.jA=function(){if(this.Be()||!this.Dg())S(this.B);else{var a=this.j.duration-this.j.currentTime,b=EO(this)-this.j.currentTime;0<b&&(2<=b||2>a)&&(S(this.B),this.play())}};
function EO(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 GO(){U.call(this);this.j=new HO;this.k=new ln(this);var a=oK();if(a){t:{if("videoElementMockDuration"in a.j&&(a=a.j.videoElementMockDuration,ha(a)))break t;a=NaN}this.duration=a}}z(GO,U);function IO(){var a=["video/mp4"],b=["video/ogg"],c=new GO;c.canPlayType=function(c){return F(a,c)?"probably":F(b,c)?"maybe":""};c.width=0;c.height=0;c.offsetWidth=0;c.offsetHeight=0;return c}function JO(a){this.startTime=0;this.endTime=a}function HO(){this.length=0;this.j=[]}HO.prototype.start=function(a){return this.j[a].startTime};
HO.prototype.end=function(a){return this.j[a].endTime};f=GO.prototype;f.readyState=0;f.currentTime=0;f.duration=NaN;f.tf=!0;f.Wp=!1;f.autoplay=!1;f.volume=1;f.muted=!1;f.src="";f.gz=1;f.playbackRate=0;f.Rc=null;f.Hi=0;f.TC=4;f.gg=null;f.zj=null;
f.play=function(){this.Wp&&(this.currentTime=0,this.U("timeupdate"));this.tf&&(this.tf=!1,this.U("play"),this.readyState=this.TC,2>=this.readyState?this.U("waiting"):this.U("playing"));if(null===this.Rc||this.Rc.ha())this.Rc=new dn(10),this.Rc.listen("tick",x(this.xs,this));this.Hi=y();this.Rc.start();this.autoplay=!1};f.pause=function(){this.autoplay=!1;this.tf||(this.Rc.stop(),this.tf=!0,this.U("timeupdate"),this.U("pause"))};
f.load=function(){this.readyState=0;this.tf=!0;this.U("loadstart");this.setProperty("duration",isNaN(this.duration)?10+20*Math.random():this.duration);var a=this.j;a.j.push(new JO(this.duration));a.length=a.j.length;this.U("loadedmetadata");0<this.currentTime&&this.U("timeupdate");this.U("loadeddata");this.U("canplay");this.U("canplaythrough");this.U("progress");this.playbackRate=this.gz};
f.setProperty=function(a,b){switch(a){case "currentTime":var c=Number(b);this.U("seeking");this.currentTime=c;this.U("seeked");this.xs();break;case "duration":this.duration=Number(b);this.U("durationchange");break;case "volume":this.volume=Number(b),this.U("volumechange")}};f.xs=function(){var a=y()-this.Hi,b=this.currentTime+a/1E3;this.Hi+=a;2<this.readyState&&(this.currentTime=Math.min(b,this.duration));this.U("timeupdate");this.currentTime==this.duration&&(this.Wp=this.tf=!0,this.Rc.stop(),this.U("ended"))};
f.L=function(){this.Rc&&!this.Rc.ha()&&this.Rc.dispose()};f.vC=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.zj&&(this.zj.innerText=b);c&&this.gg&&(this.gg.style.backgroundColor=c)};Vc&&hd(8);function KO(){};var LO={},MO={},NO={};function OO(){throw Error("Do not instantiate directly");}OO.prototype.Cd=null;OO.prototype.getContent=function(){return this.content};OO.prototype.toString=function(){return this.content};function PO(a,b){var c=pd().createElement("DIV"),d=QO(a(b||RO,void 0,void 0));c.innerHTML=d;return 1==c.childNodes.length&&(d=c.firstChild,1==d.nodeType)?d:c}function QO(a){if(!ja(a))return String(a);if(a instanceof OO){if(a.Kc===LO)return a.getContent();if(a.Kc===NO)return Ba(a.getContent())}return"zSoyz"}var RO={};function SO(a){if(null!=a)switch(a.Cd){case 1:return 1;case -1:return-1;case 0:return 0}return null}function TO(){OO.call(this)}z(TO,OO);TO.prototype.Kc=LO;function UO(a){return null!=a&&a.Kc===LO?a:a instanceof Dc?VO(Fc(a),a.hf()):VO(Ba(String(String(a))),SO(a))}function WO(){OO.call(this)}z(WO,OO);WO.prototype.Kc={};WO.prototype.Cd=1;function XO(){OO.call(this)}z(XO,OO);XO.prototype.Kc=MO;XO.prototype.Cd=1;function YO(){OO.call(this)}z(YO,OO);YO.prototype.Kc={};YO.prototype.Cd=1;
function ZO(){OO.call(this)}z(ZO,OO);ZO.prototype.Kc={};ZO.prototype.Cd=1;function $O(a,b){this.content=String(a);this.Cd=null!=b?b:null}z($O,OO);$O.prototype.Kc=NO;function aP(a){function b(a){this.content=a}b.prototype=a.prototype;return function(a){return new b(String(a))}}var VO=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.Cd=d);return e}}(TO);aP(WO);aP(XO);var bP=aP(YO);aP(ZO);
(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.Cd=d);return e}})(TO);function cP(a){return UO(a)}var dP=/['()]/g;function eP(a){return"%"+a.charCodeAt(0).toString(16)}function fP(a){if(null!=a&&a.Kc===MO)return String(a).replace(gP,hP);if(a instanceof yc)return a=Ac(a),String(a).replace(gP,hP);a=za(String(a));dP.lastIndex=0;return dP.test(a)?a.replace(dP,eP):a}var iP={};
function jP(a){iP[1]||(iP[1]=new KO);var b=SO(a);if(null==b){var c=b=0,d=!1;a=ic(a+"",null!=a&&a.Kc===LO).split(oc);for(var e=0;e<a.length;e++){var g=a[e];lc.test(ic(g,void 0))?(b++,c++):mc.test(g)?d=!0:kc.test(ic(g,void 0))?c++:pc.test(g)&&(d=!0)}b=0==c?d?1:0:.4<b/c?-1:1}return bP(1!=b?-1==b?'dir="rtl"':1==b?'dir="ltr"':"":"")}
var kP={"\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 hP(a){return kP[a]}var gP=/[\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 lP(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">'+UO(a.zf)+'</div><div class="videoAdUiShare"></div></div><div class="videoAdUiBottomBar"><div class="videoAdUiLearnMoreText">'+UO(a.zf)+'<div class="videoAdUiLearnMoreIcon"></div></div><div class="videoAdUiAttributionContainer"><div class="videoAdUiAttribution"'+
cP(jP(a.xd))+">"+UO(a.xd)+'</div><div class="videoAdUiAttributionIconContainer"><div class="videoAdUiAttributionIcon" id="videoAdUiAttributionIcon"></div><div class="videoAdUiAdInfoPopup"><div class="videoAdUiAdInfoPopupCallout"></div><div class="videoAdUiAdInfoPopupText" '+cP(jP(a.Lh))+">"+UO(a.Lh)+'</div></div></div></div></div><div class="videoAdUiProgressBar"><div class="videoAdUiBuffer"></div><div class="videoAdUiProgress"></div></div></div>'}
function mP(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+cP(jP(a.xd))+">"+UO(a.xd)+'</div></div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function nP(a){return'<div class="videoAdUi"><div class="videoAdUiTopBar"><div class="videoAdUiAttributionContainer videoAdUiAttributionContainer-gvn"><div class="videoAdUiAttribution"'+cP(jP(a.xd))+">"+UO(a.xd)+'</div></div><div class="videoAdUiLearnMoreText videoAdUiLearnMoreText-gvn">'+UO(a.zf)+'<div class="videoAdUiLearnMoreIcon"></div></div></div><div class="videoAdUiProgressBar"><div class="videoAdUiProgress"></div></div></div>'}
function oP(){return'<div class="videoAdUiPreSkipContainer"><div class="videoAdUiPreSkipButton"><div class="videoAdUiPreSkipText"></div><div class="videoAdUiPreSkipThumbnail" aria-hidden="true"></div></div></div>'}function pP(a){var b="";a=ta("You can skip this ad in {$xSeconds}",{xSeconds:UO(a.Ks)});return b+a}function qP(a){return'<div class="videoAdUiSkipContainer html5-stop-propagation"><button class="videoAdUiSkipButton">'+UO(a.xD)+'<div class="videoAdUiSkipIcon"></div></button></div>'}
function rP(a){var b="";a=2<=a.Cj&&1<=a.Jh?ta("Ad {$adPosition} of {$totalAds} {$timeLeft}",{adPosition:UO(a.Jh),totalAds:UO(a.Cj),timeLeft:UO(a.Aj)}):ta("Ad {$timeLeft}",{timeLeft:UO(a.Aj)});return b+=a};function sP(a,b,c){if(null==a||!Sd(rd(a),a))throw jK(HJ,null,"containerElement","element");this.B=a;this.k=this.j=null;this.A=b;this.C=c;this.o=null;this.j=H("div",{style:"display:none;"});a=oK();pK(a,"useVideoElementMock")?(a=IO(),b=H("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;"}),sa(b,a),a.gg=H("div",{style:"position:absolute;width:100%;height:100%;top:0px;left:0px;background-color:#000"}),a.zj=H("p",{style:"position:absolute;top:25%;margin-left:10px;font-size:24px;color:#fff;"}),
a.gg.appendChild(a.zj),b.appendChild(a.gg),a.k.listen(a,["loadeddata","playing","pause","ended"],a.vC),a=b):(a="",b=ta("Advertisement"),a=H("video",{style:"background-color:#000;position:absolute;width:100%;height:100%;",title:a+b}));a.setAttribute("webkit-playsinline",!0);this.k=a;this.B.appendChild(this.j);this.j.appendChild(this.k);this.A&&(a=H("div",{id:this.A,style:"display:none;background-color:#000;position:absolute;width:100%;height:100%;"}),this.j.appendChild(a));this.C&&(this.o=H("div",
{style:"position:absolute;width:100%;height:100%;"}),this.j.appendChild(this.o))}z(sP,Q);sP.prototype.initialize=function(){yK()&&this.k.load()};sP.prototype.L=function(){Ld(this.j);sP.J.L.call(this)};sP.prototype.show=function(){var a=this.j;null!=a&&(a.style.display="block")};sP.prototype.hide=function(){var a=this.j;null!=a&&(a.style.display="none")};function tP(a){null!=a?pJ(lJ,a)?(a=a.match(/yt_vid\/([a-zA-Z0-9_-]{11})/),a=null!=a&&1<a.length?a[1]:null):a=null!=a&&pJ(mJ,a)?uP(a):null:a=null;return a}function vP(a,b,c){if(null==a)return null;c=new I((null!=c?c:"//www.youtube.com/")+"watch");var d=c.j;d.set("v",a);d.set("feature",b?"trueview-instream":"instream");We(c,d);return c.toString()}
function uP(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=gf(new I(a));return rf(a,"v")?a.get("v").toString():rf(a,"video_id")?a.get("video_id").toString():null};function wP(a){U.call(this);this.H="ima-chromeless-video";var b=null;null!=a&&(v(a)?this.H=a:b=a);this.I=new ln(this);this.B=null;this.o=!1;this.V=this.Bg();this.T=this.Id();this.D=-1;this.P=!1;this.C=-1;this.k=this.M=this.F=null;this.S="";this.j=!1;this.da=null!=b;this.G=this.O=this.$=null;this.A=void 0;this.W=null;null!=b?(this.j=!0,this.$=b,this.A=2):(a=x(this.Sw,this),xP?a():(yP.push(a),a=Gd("script"),a.src="https://www.youtube.com/iframe_api",b=document.getElementsByTagName("script")[0],b.parentNode.insertBefore(a,
b)))}z(wP,AO);var zP=["video/mp4","video/webm"],AP={el:"adunit",controls:0,html5:1,playsinline:1,showinfo:0},yP=[],xP=!1;f=wP.prototype;f.Wr=function(a,b,c){var d=E(a,function(a){return null!==tP(a.k)});if(null!==d)return d;a=gb(a,function(a){a=B(a.j);return this.j?this.$.canPlayType(a):F(zP,a)},this);nb(c)||(d=nO(a,b,c));return null!=d?d:nO(a,b,[])};f.Nm=function(a){this.k=a};f.load=function(a,b){null!==a&&(this.S=a,this.j?BP(this,a,b):(this.F=a,this.M=b))};f.getVideoUrl=function(){return this.S};
f.setVolume=function(a){this.da?this.U("volumeChange"):this.j?(a=Lc(100*a,0,100),this.$.setVolume(a),this.C=-1,this.U("volumeChange")):this.C=a};f.ed=function(){return this.j?this.$.getVolume()/100:this.C};f.play=function(){if(!A(B(this.S))){if(!this.o){CP(this);var a=15E3;null!=this.k&&0<this.k.vb&&(a=this.k.vb);this.ba=fn(this.wB,a,this)}this.j?(this.P=!1,!this.o&&this.k&&this.k.j?this.$.loadVideoByPlayerVars(this.W):this.$.playVideo()):this.P=!0}};f.pause=function(){this.j&&this.o&&this.$.pauseVideo()};
f.Dg=function(){return this.j?2==this.$.getPlayerState(this.A):!1};f.Cg=function(){return this.j?this.$.isMuted():0==this.ed()};f.Uk=function(){};f.Id=function(){var a=tK.j?tK.o:document.getElementById(this.H);return a?iO(a):!1};f.lg=function(a){return this.j?this.$.getCurrentTime(this.A)>=a:!1};f.qf=function(a){this.j?this.$.seekTo(a,!1):this.D=a};f.getCurrentTime=function(){return this.j?this.$.getCurrentTime(this.A):-1};
f.dp=function(){return this.j&&this.o?this.$.getVideoLoadedFraction(this.A)*this.$.getDuration(this.A):0};f.bd=function(){return this.j&&this.o?this.$.getDuration(this.A):-1};f.Op=function(){return null};f.al=function(){return Qb(jJ)};f.Be=function(){return this.j?0==this.$.getPlayerState(this.A):!1};f.Bg=function(){var a=tK.j?tK.o:document.getElementById(this.H);return a?new G(a.offsetWidth,a.offsetHeight):new G(0,0)};f.Pp=function(){return!1};
f.fz=function(){var a=this.Bg(),b=this.Id();if(a.width!=this.V.width||a.height!=this.V.height)!this.T&&b?this.U("beginFullscreen"):this.T&&!b&&this.U("endFullscreen"),this.V=a,this.T=b};f.Ai=function(){this.O=x(this.dr,this);this.G=x(this.El,this);this.da&&(this.$.addEventListener("onAdStateChange",this.G),this.$.addEventListener("onReady",this.O),this.$.addEventListener("onStateChange",this.G));this.K=new dn(1E3);this.I.listen(this.K,"tick",this.fz);this.K.start()};
f.rf=function(){this.da&&(this.$.removeEventListener("onAdStateChange",this.G),this.$.removeEventListener("onReady",this.O),this.$.removeEventListener("onStateChange",this.G));null!=this.K&&this.K.dispose()};f.Sw=function(){var a=this.H,b={playerVars:ac(AP),events:{onError:x(this.zB,this),onReady:x(this.dr,this),onAdStateChange:x(this.El,this),onStateChange:x(this.El,this)}},c=r("YT");this.$=null!=c&&null!=c.Player?new c.Player(a,b):null};
function BP(a,b,c){var d={};if(null!=a.k){var e=a.k.k;null!=e&&(d.agcid=e);e=a.k.B;null!=e&&(d.adformat=e);(e=a.k.o)&&(d.cta_conversion_urls=e);d.iv_load_policy=sK()&&a.k.C?1:3;a.k.A&&(d.noiba=1);a.k.D&&(d.utpsa=1)}e=tP(b);null===e?d.url_encoded_third_party_media="url="+encodeURIComponent(b)+"&type="+encodeURIComponent(null===c?"":c):d.videoId=e;a.o=!1;a.k&&a.k.j?(a.W=d,a.$.preloadVideoByPlayerVars(a.W)):a.$.cueVideoByPlayerVars(d)}f.zB=function(){this.U("error")};
f.dr=function(){this.j=!0;-1!=this.C&&(this.setVolume(this.C),this.C=-1);null!=this.F&&(BP(this,this.F,this.M),this.M=this.F=null);-1!=this.D&&(this.qf(this.D),this.D=-1);this.P&&this.play()};f.El=function(a){switch(a.data){case 0:this.o?this.U("end"):this.U("error");break;case 1:this.o||(CP(this),this.o=!0,this.U("start"));this.U("play");DP(this);this.B=new dn(100);this.I.listen(this.B,"tick",this.Kq);this.B.start();break;case 2:this.U("pause"),DP(this)}};
function DP(a){a.I.Fa(a.B,"tick",a.Kq);null!=a.B&&(a.B.stop(),a.B=null)}function CP(a){null!=a.ba&&gn(a.ba)}f.Kq=function(){this.U("timeUpdate")};f.wB=function(){this.U("mediaLoadTimeout")};f.Np=function(a,b){this.j&&this.$.addInfoCardXml(a,b)};f.gf=function(){if(!this.j)return null;var a=this.$.getVideoData();return a?a.cpn:null};
f.L=function(){DP(this);CP(this);this.rf();this.j=!1;this.I.dispose();this.D=-1;this.M=null;this.P=!1;this.F=null;this.C=-1;this.O=this.$=this.k=null;this.o=!1;this.S="";wP.J.L.call(this)};q("onYouTubeIframeAPIReady",function(){xP=!0;C(yP,function(a){a()});ob(yP)},window);function EP(a){U.call(this);this.j=a||Wa();this.k=[]}z(EP,U);EP.prototype.o=!1;EP.prototype.connect=function(){for(this.o=!0;!nb(this.k);){var a=this.k.shift();this.sendMessage(a.name,a.type,a.data)}};EP.prototype.send=function(a,b,c){this.o?this.sendMessage(a,b,c):this.k.push({name:a,type:b,data:c})};function FP(a,b,c,d,e){Zl.call(this,a);this.ic=b;this.jd=c;this.Gp=d;this.A=e}z(FP,Zl);FP.prototype.getOrigin=function(){return this.A};FP.prototype.toString=function(){return""};function GP(a,b){EP.call(this,b);this.A=a;this.Bc=null;this.B=new ln(this);this.logger=null;this.B.listen(Cd(),"message",this.receive)}z(GP,EP);function HP(a){if(null==a||!v(a)||!wa(a,"ima://"))return null;a=a.substr(6);try{return dg(a)}catch(b){return null}}GP.prototype.sendMessage=function(a,b,c){null!=this.Bc&&null!=this.Bc.postMessage&&this.Bc.postMessage(IP(this,a,b,c),"*");null!=this.Bc&&null==this.Bc.postMessage&&GK(FK.getInstance(),11)};GP.prototype.L=function(){this.B.dispose();GP.J.L.call(this)};
GP.prototype.receive=function(a){a=a.j;var b=HP(a.data);if(null!=b){if(null==this.Bc)this.Bc=a.source;else if(this.Bc!=a.source)return;var c=b.channel;null!=c&&c==this.A&&(c=b.sid,null!=c&&("*"!=this.j&&c!=this.j||this.U(new FP(b.name,b.type,b.data||{},b.sid,a.origin))))}};function IP(a,b,c,d){var e={};e.name=b;e.type=c;null!=d&&(e.data=d);e.sid=a.j;e.channel=a.A;return"ima://"+fg(e)};function JP(a,b){U.call(this);this.A=a;this.o=b;this.j={};this.k=new ln(this);this.k.listen(Cd(),"message",this.B)}z(JP,U);JP.prototype.send=function(a){var b=a.getChannelId();this.j.hasOwnProperty(b)?this.j[b].send(a.type,a.ic,a.jd):a.getChannelId()};function KP(a,b,c,d){a.j.hasOwnProperty(b)||(c=new GP(b,c),a.k.listen(c,a.A,function(a){a=new LP(a.type,a.ic,a.jd,a.Gp,a.getOrigin(),b);this.U(a)}),c.Bc=d,c.connect(),a.j[b]=c)}
JP.prototype.L=function(){this.k.dispose();for(var a in this.j)S(this.j[a]);JP.J.L.call(this)};JP.prototype.B=function(a){a=a.j;var b=HP(a.data);if(null!=b){var c=b.channel;if(this.o&&!this.j.hasOwnProperty(c)){var d=b.sid;KP(this,c,d,a.source);this.U(new LP(b.name,b.type,b.data||{},d,a.origin,c))}}};function LP(a,b,c,d,e,g){FP.call(this,a,b,c,d,e);this.o=g}z(LP,FP);LP.prototype.getChannelId=function(){return this.o};function MP(){var a=r("google.ima.gptProxyInstance",Cd());if(null!=a)return a;ln.call(this);this.o=new JP("gpt",!0);R(this,this.o);this.listen(this.o,"gpt",this.C);this.j=null;NP()||Cd().top===Cd()||(this.j=new JP("gpt",!1),R(this,this.j),this.listen(this.j,"gpt",this.B))}z(MP,ln);function NP(){return!!r("googletag.cmd",Cd())}function OP(){var a=r("googletag.console",Cd());return null!=a?a:null}
MP.prototype.C=function(a){var b=a.getOrigin(),c=ze("//imasdk.googleapis.com"),b=ze(b);if(c[3]==b[3]&&c[4]==b[4])if(null!=this.j)KP(this.j,a.getChannelId(),a.Gp,Cd().parent),null!=this.j&&this.j.send(a);else if(c=a.jd,null!=c&&n(c.scope)){var b=c.scope,c=c.args,d;if("proxy"==b)c=a.ic,"isGptPresent"==c?d=NP():"isConsolePresent"==c&&(d=null!=OP());else if(NP())if("pubads"==b||"companionAds"==b){d=a.ic;var e,g=Cd().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.ic,e=OP(),null!=e&&(g=e[g],null!=g))try{g.apply(e,c)}catch(k){}}else if(null===b){e=a.ic;d=Cd();if(F(["googleGetCompanionAdSlots","googleSetCompanionAdContents"],e)&&(e=d[e],null!=e))try{g=e.apply(d,c)}catch(l){}d=g}n(d)&&(a.jd.returnValue=d,this.o.send(a))}};MP.prototype.B=function(a){this.o.send(a)};function PP(a,b,c,d,e,g,h,k){this.B=a;this.k=b;this.o=c;this.A=h;this.C=d;this.D=e;this.vb=g;this.j=k};function QP(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,t,w){if("%"==p)return"%";var J=c.shift();if("undefined"==typeof J)throw Error("[goog.string.format] Not enough arguments");arguments[0]=J;return RP[p].apply(null,arguments)})}
var RP={s:function(a,b,c){return isNaN(c)||""==c||a.length>=c?a:a=-1<b.indexOf("-",0)?a+Qa(" ",c-a.length):Qa(" ",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+Qa(" ",a):g+Qa(0<=b.indexOf("0",0)?"0":" ",a)+d},d:function(a,b,c,d,e,g,h,k){return RP.f(parseInt(a,
10),b,c,d,0,g,h,k)}};RP.i=RP.d;RP.u=RP.d;function SP(a,b){U.call(this);this.A=new ln(this);this.F=!1;this.G=Wa();this.C=new oe;var c=this.G,c=H("iframe",{src:("https:"==document.location.protocol?"https:":"http:")+QP("//imasdk.googleapis.com/js/core/bridge0.0.0_%s.html","en")+"#"+c,style:"border:0; opacity:0; margin:0; padding:0; position:relative;"});pn(this.A,c,"load",this.ix);a.appendChild(c);this.k=c;c=this.C.get("*");null==c&&(c=new GP(this.G,"*"),this.F&&(c.Bc=Td(this.k),c.connect()),this.C.set("*",c));this.B=c;this.D=b;this.j=this.D.o;
this.o=null;this.A.listen(this.B,"mouse",this.Zx);this.A.listen(this.B,"touch",this.Ay);null!=this.j&&(this.A.listen(this.B,"displayContainer",this.Nx),this.A.listen(this.B,"videoDisplay",this.xy),this.A.listen(this.j,Qb(BO),this.uC));var c=Cd(),d=r("google.ima.gptProxyInstance",c);null==d&&(d=new MP,q("google.ima.gptProxyInstance",d,c))}z(SP,U);f=SP.prototype;
f.L=function(){this.A.dispose();null!==this.o&&(this.o.dispose(),this.o=null);me(this.C.Vb(!1),function(a){a.dispose()});this.C.clear();Ld(this.k);SP.J.L.call(this)};f.Zx=function(a){var b=a.jd,c=Ig(this.k),d=document.createEvent("MouseEvent");d.initMouseEvent(a.ic,!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(!$h||AK()||0==document.webkitIsFullScreen)this.k.blur(),window.focus();this.k.dispatchEvent(d)};
function TP(a,b){var c=Ig(a.k),d=D(b,function(a){return document.createTouch(window,this.k,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.jd,c=Ig(this.k),d=document.createEvent("TouchEvent");d.initTouchEvent(a.ic,!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,TP(this,b.touches),TP(this,b.targetTouches),TP(this,b.changedTouches),b.scale,b.rotation);this.k.dispatchEvent(d)};
f.xy=function(a){if(null!=this.j){var b=a.jd;switch(a.ic){case "startTracking":this.j.Ai();break;case "stopTracking":this.j.rf();break;case "exitFullscreen":this.j.Uk();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.qf(b.currentTime);break;case "setPlaybackOptions":a=b.playbackOptions,this.j.Nm(new PP(a.adFormat,a.adSenseAgcid,a.ctaAnnotationTrackingEvents,a.showAnnotations,a.viewCountsDisabled,
a.loadVideoTimeout,a.ibaDisabled,a.enablePreloading))}}};
f.uC=function(a){var b={};switch(a.type){case "beginFullscreen":a="fullscreen";break;case "endFullscreen":a="exitFullscreen";break;case "click":a="click";break;case "end":a="end";break;case "error":a="error";break;case "mediaLoadTimeout":a="mediaLoadTimeout";break;case "pause":a="pause";b.ended=this.j.Be();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.bd();break;case "volumeChange":a=
"volumeChange";b.volume=this.j.ed();break;default:return}this.B.send("videoDisplay",a,b)};f.Nx=function(a){switch(a.ic){case "showVideo":null!=this.o?vO(this.o):(this.o=new sO,this.A.listen(this.o,"click",this.qC));tO(this.o,UP(this.D));a=this.D;null!=a.j&&a.j.show();break;case "hide":null!==this.o&&(this.o.dispose(),this.o=null),this.D.hide()}};f.qC=function(){this.B.send("displayContainer","videoClick")};f.ix=function(){me(this.C.Vb(!1),function(a){a.Bc=Td(this.k);a.connect()},this);this.F=!0};function VP(a,b,c,d){if(null==a||!Sd(rd(a),a))throw jK(HJ,null,"containerElement","element");this.A=a;var e=null!=b||null!=d,g=e,h=!1;tK.j||(AK()||bd||Oa(Qc,"CrKey")||DK()||Oa(Qc,"Roku")||CK()||Oa(Qc,"Xbox"))&&e||(yK()||Oa(Qc,"CrKey")||DK()||Oa(Qc,"Roku")||CK()||Oa(Qc,"Xbox")||(h=!0),g=!1);this.C=g;this.F=h||g&&null!=d;tK.j?a=null:(e=H("div",{style:"position:absolute"}),a.insertBefore(e,a.firstChild),a=e);this.k=a;this.j=!this.C&&this.k&&!tK.j&&yK()?new sP(this.k,null,!0):null;a=null;this.C?b?a=new CO(b):
d&&(a=new wP(d)):this.j&&(a=new CO(this.j.k));this.B=(this.o=a)?c||null:null;this.G=null!=this.B;GK(FK.getInstance(),8,{enabled:this.C,yt:null!=d,customClick:null!=this.B});tK.j&&(b=this.A,tK.o=b);this.D=null==this.k||tK.j?null:new SP(this.k,this)}VP.prototype.initialize=function(){null!=this.j&&this.j.initialize()};VP.prototype.destroy=function(){S(this.j);S(this.D);S(this.o);Ld(this.k)};VP.prototype.hide=function(){null!=this.j&&this.j.hide()};
function UP(a){return a.G&&a.B?a.B:null!=a.j?a.j.o:null};function WP(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();t:{if(g&&g.nodeName&&g.parentElement){c=g.nodeName.toLowerCase();d=g.parentElement.childNodes;for(var k=e=0;k<d.length;++k){var l=d[k];if(l.nodeName&&l.nodeName.toLowerCase()==c){if(g==l){c="."+e;break t}++e}}}c=""}}h.push(b,c);if(null!=a)h.push(Oe(a,"ad_type")||""),h.push(Oe(a,"videoad_start_delay")||""),
h.push(Oe(a,"sz")||""),h.push(Oe(a,"vpos")||""),h.push(Oe(a,"mridx")||""),h.push(Oe(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 XP(){U.call(this);this.currentTime=0}z(XP,U);function YP(a){XP.call(this);this.currentTime=a.currentTime;if(!("currentTime"in a)||isNaN(a.currentTime))throw jK(HJ,null,"content","currentTime");this.k=a;this.j=new dn(250);this.o=new ln(this);on(this.o,this.j,"tick",this.A,this)}z(YP,XP);YP.prototype.start=function(){this.j.start()};YP.prototype.stop=function(){this.j.stop()};YP.prototype.L=function(){YP.J.L.call(this);this.o.dispose();this.j.dispose()};
YP.prototype.A=function(){if("currentTime"in this.k&&!isNaN(this.k.currentTime)){var a=this.currentTime;this.currentTime=this.k.currentTime;a!=this.currentTime&&this.U(new Zl("currentTimeUpdate"))}else this.U(new Zl("contentWrapperError")),this.stop()};function ZP(){this.j=0;this.k=null};var $P;
$P={B:["BC","AD"],A:["Before Christ","Anno Domini"],D:"JFMAMJJASOND".split(""),P:"JFMAMJJASOND".split(""),C:"January February March April May June July August September October November December".split(" "),M:"January February March April May June July August September October November December".split(" "),H:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),S:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),V:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),X:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
K:"Sun Mon Tue Wed Thu Fri Sat".split(" "),T:"Sun Mon Tue Wed Thu Fri Sat".split(" "),F:"SMTWTFS".split(""),O:"SMTWTFS".split(""),I:["Q1","Q2","Q3","Q4"],G:["1st quarter","2nd quarter","3rd quarter","4th quarter"],j:["AM","PM"],k:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Ha:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],o:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],nv:6,Ua:[5,6],ov:5};function aQ(a,b,c,d,e,g){v(a)?(this.o="y"==a?b:0,this.k="m"==a?b:0,this.j="d"==a?b:0,this.A="h"==a?b:0,this.B="n"==a?b:0,this.C="s"==a?b:0):(this.o=a||0,this.k=b||0,this.j=c||0,this.A=d||0,this.B=e||0,this.C=g||0)}aQ.prototype.equals=function(a){return a.o==this.o&&a.k==this.k&&a.j==this.j&&a.A==this.A&&a.B==this.B&&a.C==this.C};aQ.prototype.clone=function(){return new aQ(this.o,this.k,this.j,this.A,this.B,this.C)};
aQ.prototype.add=function(a){this.o+=a.o;this.k+=a.k;this.j+=a.j;this.A+=a.A;this.B+=a.B;this.C+=a.C};function bQ(a,b,c){ha(a)?(this.j=cQ(a,b||0,c||1),dQ(this,c||1)):ja(a)?(this.j=cQ(a.getFullYear(),a.getMonth(),a.getDate()),dQ(this,a.getDate())):(this.j=new Date(y()),this.j.setHours(0),this.j.setMinutes(0),this.j.setSeconds(0),this.j.setMilliseconds(0))}function cQ(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}f=bQ.prototype;f.Zo=$P.nv;f.$o=$P.ov;
f.clone=function(){var a=new bQ(this.j);a.Zo=this.Zo;a.$o=this.$o;return a};f.getFullYear=function(){return this.j.getFullYear()};f.getMonth=function(){return this.j.getMonth()};f.getDate=function(){return this.j.getDate()};f.getTime=function(){return this.j.getTime()};f.set=function(a){this.j=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
f.add=function(a){if(a.o||a.k){var b=this.getMonth()+a.k+12*a.o,c=this.getFullYear()+Math.floor(b/12),b=b%12;0>b&&(b+=12);var d;t:{switch(b){case 1:d=0!=c%4||0==c%100&&0!=c%400?28:29;break t;case 5:case 8:case 10:case 3:d=30;break t}d=31}d=Math.min(d,this.getDate());this.j.setDate(1);this.j.setFullYear(c);this.j.setMonth(b);this.j.setDate(d)}a.j&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.j),this.j.setDate(1),this.j.setFullYear(a.getFullYear()),
this.j.setMonth(a.getMonth()),this.j.setDate(a.getDate()),dQ(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(),Ra(this.getMonth()+1),Ra(this.getDate())].join("")+""};function dQ(a,b){a.getDate()!=b&&a.j.setUTCHours(a.j.getUTCHours()+(a.getDate()<b?1:-1))}f.valueOf=function(){return this.j.valueOf()};function eQ(){this.k=this.j=null};function fQ(){this.j=gQ();this.G=-1;this.K=this.M=this.o=this.F=this.A=null;this.C=gQ();this.k=null;this.O=this.H=this.I="";this.D=this.P=this.B=null}function gQ(){return Math.floor(4503599627370496*Math.random())}var hQ=new fQ;fQ.prototype.clear=function(){this.j=gQ();this.o=this.F=this.A=null;this.C=gQ();this.k=null;this.O=this.H=this.I="";this.D=this.P=this.B=null};function iQ(a){if(tK.j)return"h.3.0.0";var b="h."+a.O;null!=a.B&&(b+="/n."+a.B,null!=a.A&&(b+="/"+a.A));return b};function jQ(a,b){this.C=a;this.B=D(b,function(a){return a.clone()});this.A="";this.j=this.o=0;this.k=!0}function kQ(a){a.A="";a.o=0;a.j=0;a.k=!0}jQ.prototype.getContent=function(){return this.A};jQ.prototype.clone=function(){var a=new jQ(this.C,this.B),b=this.o,c=this.j,d=this.k;a.A=this.A;a.o=b;a.j=c;a.k=d;return a};function lQ(){U.call(this);this.A=!1;this.impressionUrls=[]}z(lQ,U);function mQ(a){Zl.call(this,a)}z(mQ,Zl);function nQ(){lQ.call(this);this.F=[];this.B=!1;this.o="not_loaded";this.k=null;this.C=0;this.j=null;this.G=new qd}z(nQ,lQ);ba(nQ);function oQ(a){var b=["googletag","googletag.cmd"];return E(a,function(a){return jb(b,function(b){return!ea(r(b,a))})})||null}f=nQ.prototype;f.L=function(){this.k&&this.k.dispose()};f.initialize=function(){if(!this.A){var a;var b=ge(new qd);try{r("googletag"),oQ([b,b.top]),a=!0}catch(c){a=!1}a?pQ(this):(this.A=!0,this.o="not_available")}};
function qQ(a){return a.A?D(a.F,function(a){return a.clone()}):[]}function rQ(a){a=qQ(a);return null!=a?D(a,function(a){return a.B}):void 0}function sQ(a,b,c){var d=0,e=0;null!=b&&(b=new I(b.adTagUrl),d=Number(kf(b,"pod")||0),e=Number(kf(b,"ppos")||0));if(null!=a.setVideoSessionInfo)try{a.setVideoSessionInfo(hQ.j,"","","",d,e,c)}catch(g){}}function tQ(a,b){var c=uQ(a);if(null!==c){sQ(c,b,!0);try{c.refreshAllSlots()}catch(d){}}}
f.setVideoContent=function(a,b){var c=vQ(this);if(null!=c)try{c.setVideoContent(a,b)}catch(d){}};function wQ(a,b){a.D=b;a.setVideoContent("","");var c=uQ(a);sQ(c,null,!1)}function uQ(a){null==a.j&&xQ(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.companionAds?a.j.googletag.companionAds():null}function vQ(a){null==a.j&&xQ(a);return null!=a.j&&null!=a.j.googletag&&null!=a.j.googletag.pubads?a.j.googletag.pubads():null}
f.gr=function(){0<this.C&&y()>=this.C?(this.A=!0,yQ(this),zQ(this)):pQ(this)};function yQ(a){a.k&&(a.k.stop(),a.k.Fa("tick",a.gr,!1,a),a.k.dispose(),a.k=null)}
function pQ(a){var b;if(b=!a.B)xQ(a),b=null!=a.j&&null!=a.j.googleGetCompanionAdSlots;if(b){var c;try{if(null==a.j)a.B=!0,c=[];else{var d=a.j.googleGetCompanionAdSlots();c=D(d,a.iD,a)}}catch(e){a.B=!0,c=[]}a.F=c;a.B=!0}if("retrieved"!=a.o&&"not_available"!=a.o&&!ea(uQ(a))){var g;b=uQ(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.o=g;break;default:g=Number(g),isNaN(g)?a.o="not_available":
(a.D=g,a.o="retrieved")}}a.B&&"retrieved"==a.o?(a.A=!0,yQ(a),a.U(new mQ("companions_success"))):a.B&&"not_available"==a.o?(a.A=!0,yQ(a),zQ(a)):a.k||(a.C=y()+5E3,a.k=new dn(100),a.k.listen("tick",a.gr,!1,a),a.k.start())}function xQ(a){var b=ge(a.G);try{a.j=oQ([b,b.top])}catch(c){a.j=null}}function zQ(a){a.U(new mQ("companion_initialization_failed"))}f.iD=function(a){var b=D(a.adSizes,function(a){return new G(a.adWidth,a.adHeight)});return new jQ(a.slotId,b)};
f.xw=function(a){var b={};b.slotId=a.C;b.adContent=a.getContent();b.adWidth=a.o;b.adHeight=a.j;b.friendlyIframeRendering=a.k;return b};f.sendImpressionUrls=function(a){wJ(this.impressionUrls,a)};function AQ(a){Zl.call(this,a)}z(AQ,Zl);function BQ(){U.call(this);this.o=[]}z(BQ,U);BQ.prototype.uo=function(){return!0};function CQ(){return new DQ("empty-ad","GDFP","GDFP","",0,0,0,[],[],[],[],new oe)}BQ.prototype.re=function(){return null};function EQ(a){BQ.call(this);this.j=a;this.C=null;this.D=!1;this.k=null;this.B=new ln;on(this.B,this.j,["companions_success","companion_initialization_failed"],this.PB,this);on(this.B,this.j,"companion_display_error",this.yA,this);this.j.A?this.D=!0:this.j.initialize()}z(EQ,BQ);f=EQ.prototype;f.destroy=function(){null!=this.B&&this.B.dispose();this.k=null};function FQ(a,b){a.k=b;a.A=!0;a.D?GQ(a):(a.A=HQ(IQ(b),[]),a.A||(a.k=null))}
function GQ(a){var b=a.k;a.k=null;if(null!=a.j)if(nb(a.o))JQ(a);else if(null!=b){var c=KQ(a,b),d=a.j;try{d.j.googleSetCompanionAdContents(D(a.o,d.xw,d)),d.sendImpressionUrls()}catch(e){d.U(new mQ("companion_display_error"))}if(0<c.length&&b.ga&&(d=a.j,0!=c.length&&"GDFP"==LQ(b)[0])){a=[];for(var g=0;g<c.length;g++)a.push(c[g].C);b=b.o;c=uQ(d);if(null!==c){sQ(c,b,!1);try{c.notifyUnfilledSlots(a)}catch(h){}}}}else JQ(a)}function JQ(a){a.U(new AQ("companion_display_error"))}f.uo=function(){return this.A};
f.PB=function(){null!=this.C&&(this.C.stop(),this.C.dispose(),this.C=null);if(null!=this.j){var a=qQ(this.j);null!=a&&(this.o=a)}this.D=!0;null!=this.k&&GQ(this);this.U(new Zl("initialized"))};f.yA=function(){JQ(this)};
function KQ(a,b){var c=[],d=[];C(a.o,function(a){kQ(a);ib(a.B,function(d){t:{var e=MQ(b);d=NQ(new OQ(new G(d.width,d.height)),e);if(!nb(d)&&(d=PQ(d,c),null!=d)){e=d.o;if(null!=e&&0!=a.C.indexOf(e)){d=!1;break t}c.push(d);var e=d.getContent(),l=d.j.fd(),p=d.getHeight();d="IFrame"!=d.j.T;a.A=e;a.o=l;a.j=p;a.k=d;d=!0;break t}d=!1}return d},this)||d.push(a)},a);var e=IQ(b);a.A=HQ(e,c);a.A||C(a.o,function(a){kQ(a)},a);return d}
function HQ(a,b){if(null==a)return!0;var c=a.j;return"all"==a.k?QQ(c,b):"any"==a.k?RQ(c,b):!0}function IQ(a){return null==a||null==a.j||isNaN(a.j.j)?null:E(SQ(a,!0),function(a){a=a.j;return nb(a)?!1:isNaN(a[0].j.j)?!1:a[0].j.j==TQ(a[0])})}function QQ(a,b){return jb(a,function(a){return F(b,a)})}function RQ(a,b){return ib(a,function(a){return F(b,a)})}function PQ(a,b){return E(a,function(a){return!F(b,a)})}f.re=function(){return this.j};function UQ(a){Zl.call(this,a);this.C=[];this.B={};this.o=null;this.A=!0}z(UQ,Zl);function VQ(){this.k=new oe;this.j=.01>Math.random()&&!sK();this.o=0}ba(VQ);VQ.prototype.start=function(a){this.j&&this.k.set(a,y())};VQ.prototype.end=function(a,b){if(this.j&&qe(this.k,a)){var c=y()-this.k.get(a),d=WQ(this,a,c,b);tJ(d);this.k.remove(a);this.o+=c}};function WQ(a,b,c,d){d=d||{};var e=new I("https://csi.gstatic.com/csi?v=2&s=ima_sdk&action=html5");d.it=b+"."+c;d.sdkv=iQ(hQ);Jb(d,function(a,b){K(e,b,a)},a);return e.toString()};function XQ(a,b,c){this.C=b;this.A=c;this.B=null;this.k=new ln(this);this.H=a;this.o=this.j=null;this.D=!1}XQ.prototype.start=function(a,b){this.B=a;this.G=b;YQ(this);this.C.D?this.F():rn(this.k,this.C,"initialized",this.F,this)};XQ.prototype.F=function(){var a=this.C.re(),b;b=a.A?"retrieved"!=a.o?void 0:a.D:void 0;a=rQ(a);null!=b&&(this.A.C=b);null!=a&&(this.A.D=a);ZQ(this)};
function ZQ(a){if(null===a.B)$Q(a);else{var b=new I(a.B.adTagUrl),c=B(kf(b,"vid")),b=B(kf(b,"cmsid")),d=a.A.I,e=a.A.H;a.A.I=c;a.A.H=b;if(A(B(c))||A(B(b)))$Q(a);else if(c==d&&b==e)$Q(a);else{var g=a.C.re();g.setVideoContent(c,b);tQ(g,a.B);a.o=new dn(100);on(a.k,a.o,"tick",function(){var a;t:{var b=vQ(g);if(null!=b)try{a=!1!==b.isAdRequestFinished();break t}catch(c){a=!0;break t}a=!1}a&&$Q(this)},a);a.o.start()}}}
function YQ(a){a.j=new dn;rn(a.k,a.j,"tick",function(){$Q(this)},a);en(a.j,a.H);a.j.start()}function $Q(a){null!=a.k&&(a.k.dispose(),a.k=null);null!=a.j&&(a.j.stop(),a.j=null);null!=a.o&&(a.o.stop(),a.o=null);a.D=!0;null===a.G||a.G()};function aR(){U.call(this);this.j=new oe;this.k=null;this.C=new ln(this);R(this,this.C);this.B="";this.o=null}z(aR,U);var bR=null;function cR(){null!=bR||(bR=new aR);return bR}function dR(a,b){a.o=b}function eR(a,b){if(a.k){var c=a.j,d=window.setTimeout(function(){b("");C(c.Ia(),function(a){c.get(a)===b&&c.remove(a)})},200);a.j.set(d,b);var e={};a.A&&(e.isFullscreen=a.A.Id());e.osdId=a.B;e.eventId=d;a.k.send("activityMonitor","fetchAdTagUrl",e)}else b("")}
function fR(a,b,c,d){if(a.k){var e=a.j,g=window.setTimeout(function(){d("");C(e.Ia(),function(a){e.get(a)===d&&e.remove(a)})},200);a.j.set(g,d);var h={};a.A&&(h.isFullscreen=a.A.Id());a.B&&(h.osdId=a.B);h.queryId=c;h.eventId=g;h.vastEvent=b;h.isOverlay=null!=a.o;h.isOverlay&&(h.overlayBounds=jO(a.o));a.k.send("activityMonitor","reportVastEvent",h)}else d("")}aR.prototype.destroy=function(){this.C.Fa(this.k,"activityMonitor",this.D);this.k=null};
aR.prototype.D=function(a){var b=a.jd,c=b.engagementString;switch(a.ic){case "measurableImpression":c={};c.queryId=b.queryId;cR().U(new WI("measurable_impression",null,c));break;case "viewableImpression":c=b.viewabilityString;a={};a.queryId=b.queryId;a.viewabilityString=c;cR().U(new WI("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){cR();b({})},void 0);function gR(){};function hR(a){return hK($J,null,a.parentNode.nodeName,a.nodeName)}function iR(a){return hK(PJ,null,a.parentNode.nodeName,a.nodeName)}function jR(a,b){return null!=a?gb(Nd(a),function(a){return a.nodeName==b}):[]}function kR(a,b){var c=a.getAttribute(b);return null!=c?c.toLowerCase():null}function lR(a,b){if(null==a)return null;var c="";C(a.childNodes,function(a){if(4==a.nodeType||3==a.nodeType)c+=a.nodeValue});c=ya(c);return b?Ja(c):c}
function mR(a,b,c,d){null!=a&&C(Nd(a),function(a){if(a.nodeName==b)c.call(d,a);else throw hR(a);})}function nR(a){return A(B(a))?NaN:Xa(B(a))}function oR(a,b){if(null!=a){var c=a.split(":");if(3==c.length)return c=new aQ(0,0,0,Xa(c[0]),Xa(c[1]),Xa(c[2])),60*(60*(24*c.j+c.A)+c.B)+c.C}return null!=b?b:-1}function pR(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 qR(a,b,c){this.k=a;this.j=c;this.o=b};function rR(a){this.o=a};function sR(a){this.o=a;this.k=this.j=!1}z(sR,rR);function tR(a,b,c){this.j=a;this.k=b;this.o=c};function uR(){this.j=new oe}function vR(a,b,c){if(isNaN(c))throw Error("Incorrect time offset.");var d=[];qe(a.j,c)&&(d=a.j.get(c,[]));C(b,function(a){null!=a&&pb(d,a)});a.j.set(c,d)};function wR(a,b){this.j=a;this.k=b}z(wR,gR);wR.prototype.o=function(){return new qR(this.j,null,xR(this))};
function xR(a){var b=new uR;C(Nd(Od(a.j)),function(a){switch(a.nodeName){case "Preroll":a=yR(this,a);vR(b,a,0);break;case "Midroll":var d=kR(a,"timeOffset"),e=oR(d);if(-1==e)throw hK(BJ,null,"timeOffset",B(d));a=yR(this,a);vR(b,a,e);break;case "Postroll":a=yR(this,a);vR(b,a,-1);break;default:throw hK(LJ,null,a.parentNode.nodeName,a.nodeName);}},a);if(0==b.j.Ia().length)throw hK(KJ);return b}
function yR(a,b){var c=[];C(Nd(b),function(a){switch(a.nodeName){case "Ad":var b=B(lR(a));if(!A(b)){a=kR(a,"bumper");var g=this.k.clone();g.adTagUrl=b;b=new sR(g);b.j=null!=a;b.k="always"==a;pb(c,b)}break;default:throw hK(LJ,null,a.parentNode.nodeName,a.nodeName);}},a);return c};function zR(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 AR(a){var b={};C(a.split(","),function(a){var d=a.split("=");2==d.length&&(a=ya(d[0]),d=ya(d[1]),0<a.length&&(b[a]=d))});return b};var BR=["ai","sigh"];function CR(a,b){if(b)return a;var c;c=null!=a&&/(doubleclick.net|googleadservices.com)/.test(a)?-1!=a.indexOf("/pagead/adview")?DR(a)?0:2:-1!=a.indexOf("/pagead/conversion")?DR(a)?1:2:2:2;if(0==c||1==c){c="&sdkv="+iQ(hQ);var d=a.indexOf("&adurl=");c=-1!=d?Sa(a.substr(0,d),c,a.substr(d,a.length)):a+c}else c=a;return c}function DR(a){return jb(BR,function(b){var c=a||"";return 0<=Le(c,0,b,c.search(Ne))})};function ER(a,b){this.j=a;this.k=b}function FR(a){return a.k?-1:a.j}function GR(a,b){a.k&&(a.k=!1,a.j=a.j*b/100)};function HR(){this.j=new oe}function IR(a,b){this.o=a;this.j=b}function JR(a,b){IR.call(this,"progress",a);this.k=b}z(JR,IR);function KR(a,b){C(b,function(a){var b=a.o.toLowerCase(),e=LR(this,b);e.push(a);this.j.set(b,e)},a)}function MR(a,b,c,d){b=b.toLowerCase();var e=LR(a,b);null!=d?(d=new JR(c,d),null!=d?e.push(d):e.push(new IR(b,c))):e.push(new IR(b,c));a.j.set(b,e)}function LR(a,b){return null!=b?a.j.get(b.toLowerCase())||[]:[]}
function NR(a,b){var c=LR(a,"progress");C(c,function(a){GR(a.k,b)});Bb(c,function(a,b){return FR(a.k)-FR(b.k)})}HR.prototype.isEmpty=function(){return this.j.isEmpty()};function OR(a,b){return D(LR(a,b)||[],function(a){return a.j})};function PR(a,b){var c=new HR;mR(a,"Tracking",function(a){var e=kR(a,"event"),g=CR(lR(a),b);QR(g)&&null!=e&&("progress"==e?(a=kR(a,"offset"),a=RR(a),null!=a&&MR(c,e,g,a)):MR(c,e,g))});return c}function SR(a){if(A(B(a)))return null;a=new I(a);if("thismessage"!=a.Jb||"extensions"!=a.mb)return null;a=a.Ib;if(!wa(a,"/"))return null;a=a.substr(1);return A(B(a))?null:a}
function RR(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 ER(a,!0))):(a=oR(a),0<=a&&(b=new ER(a,!1)));return b}function QR(a){var b=!0;if(A(B(a)))b=!1;else try{new I(a)}catch(c){b=!1}return b};function TR(a,b){this.j=null!=a?a:new HR;this.D=null!=b?b:[]}function UR(a,b){var c=b.j;C(c.Ia(),function(a){KR(this.j,c.get(a))},a)}function VR(a,b){var c=OR(a.j,b);return null!=c?c:[]};function WR(){this.j="Ads by Google";this.k="http://www.google.com/adsense/support";this.o=0};function XR(a,b,c,d,e,g,h,k,l,p){TR.call(this,l,p);this.A=a;this.B=b;this.k=c;this.F=h;this.C=g;this.o=e}z(XR,TR);function YR(){}YR.prototype.parse=function(a){var b;mR(a,"config",function(a){null!=b||(b=ZR(this,a))},this);return b};function ZR(a,b){var c;C(Nd(b),function(a){switch(a.nodeName){case "context":c="default"==a.getAttribute("data")?new WR:null;break;case "params":null!=c&&$R(this,c,a)}},a);return c}function $R(a,b,c){C(Nd(c),function(a){var c=a.attributes[0].value;switch(a.nodeName){case "attribution_url":b.k=c;break;case "attribution_text":b.j=c;break;case "signals":b.o=parseInt(c,10)}},a)};function aS(){}
aS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e,g,h,k,l=!1;C(Nd(a),function(a){switch(a.nodeName){case "AttributionText":c=lR(a);break;case "AttributionUrl":d=lR(a);break;case "ConversionUrl":g=lR(a);break;case "CustomTracking":null!=Nd(a)&&(e=PR(a));break;case "CheckedEvents":a=Nd(a);b=D(a,function(a){return kR(a,"id")});null!=b||(b=[]);break;case "PreviousAdInformation":lR(a);break;case "VisibleUrl":h=lR(a);break;case "UI":k=(new YR).parse(a);break;case "ShowYouTubeAnnotations":var t=lR(a);
l=pR(B(t),!1);case "QueryId":lR(a)}},this);null!=k||(k=new WR);return new XR(c,d,g,0,h,k,l,0,e,b)};function bS(a,b){TR.call(this,b);this.k=a}z(bS,TR);function cS(){}cS.prototype.parse=function(a){if(null==a)return null;var b;C(Nd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Nd(a)&&(b=PR(a))}});a=null;null!=b&&0<LR(b,"skip").length&&(a="Generic");return new bS(a,b)};function dS(){}dS.prototype.parse=function(a){if(null==a)return null;var b,c;C(Nd(a),function(a){switch(a.nodeName){case "SkippableAdType":b=lR(a);break;case "CustomTracking":null!=Nd(a)&&(c=PR(a))}});return new bS(b,c)};function eS(){}eS.prototype.parse=function(a){if(null==a)return null;var b;C(Nd(a),function(a){switch(a.nodeName){case "CustomTracking":null!=Nd(a)&&(b=PR(a))}},this);return new TR(b)};function fS(a){TR.call(this);this.k=a}z(fS,TR);function gS(){}gS.prototype.parse=function(a){a=IB(a);return A(B(a))?null:new fS(a)};function hS(a){TR.call(this);this.k=a}z(hS,TR);function iS(){TR.call(this)}z(iS,TR);function jS(){}jS.prototype.j={cw:"TEMPLATE_PARAMETERS",dw:"TEMPLATE_URL"};jS.prototype.parse=function(a){if(null==a)return null;C(Nd(a),function(a){switch(a.nodeName){case this.j.cw:kS(this,a)}},this);return new iS};function kS(a,b){C(Nd(b),function(a){a.nodeName==this.j.dw&&lR(a)},a)};function lS(a,b,c,d){TR.call(this);this.o=a;this.A=b;this.B=c;this.k=d}z(lS,TR);function mS(){}mS.prototype.j={Av:"Line1",Bv:"Line2",Cv:"Line3",yv:"ImageUrl"};mS.prototype.parse=function(a){if(null==a)return null;var b,c,d,e;C(Nd(a),function(a){switch(a.nodeName){case this.j.Av:b=lR(a,!0);break;case this.j.Bv:c=lR(a,!0);break;case this.j.Cv:d=lR(a,!0);break;case this.j.yv:e=lR(a)}},this);return new lS(b,c,d,e)};function nS(a){TR.call(this);this.k=a}z(nS,TR);function oS(){}oS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("sequence");a=null!=a?Xa(a):NaN;a=isNaN(a)?-1:a;return new nS(a)};function pS(){TR.call(this)}z(pS,TR);function qS(){}qS.prototype.parse=function(a){return null!=a?new pS:null};function rS(a){TR.call(this);this.k=isNaN(a)?-1:a}z(rS,TR);function sS(){}sS.prototype.parse=function(a){if(null==a)return null;a=a.getAttribute("fallback_index");a=null!=a?Xa(a):NaN;return new rS(a)};function tS(a,b,c,d){this.xa=a;this.j=Lc(c||0,0,1);this.k=null!=d?d:!0}tS.prototype.getId=function(){return this.xa};function uS(a){this.xa=a;this.k=new oe;this.j=null}function vS(a){var b=Math.random(),c=0,d=a.k.La();C(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 wS(){this.j=new oe;xS(this,41351020);xS(this,41351021);xS(this,41351090);xS(this,41351091);yS(this)}var zS=null;function AS(){zS||(zS=new wS);return zS}function xS(a,b){if(!(A(B("GvnExternalLayer"))||isNaN(b)||0>=b)){var c=new tS(b,0,.01);BS(a,"GvnExternalLayer").k.set(c.getId(),c)}}function yS(a){nK()||C(a.j.La(),function(a){vS(a)},a)}function CS(a,b,c){C(b,function(a){var b=Number(a),g="forcedLayer"+a;isNaN(b)||0>=b||A(B(g))||(a=null!=c?c:!0,g=BS(this,g),b=new tS(b,0,0,a),g.j=b)},a)}
function DS(a){var b=AS();return ib(b.j.La(),function(b){return!!b.j&&b.j.getId()==a})}function ES(a){var b=[];C(a.j.La(),function(a){(a=a.j)&&a.k&&b.push(a.getId())});return b.sort().join(",")}function BS(a,b){var c=a.j.get(b);null==c&&(c=new uS(b),a.j.set(b,c));return c};function FS(a){if(DS(947225)){if(a&&a.items&&a.items.length){a=a.items[0];this.channelId=a.id;var b=a.snippet;b&&(this.k=b.title,this.j=Sb(b,"thumbnails","default","url"));if(a=a.statistics)this.videoCount=a.videoCount}}else GS(this,a)}FS.prototype.videoCount=0;
function GS(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&ib(d.$t.split(":"),function(a,b,c){return"channel"==a?(this.channelId=c[b+1],!0):!1},a);(d=c.author)&&d[0]&&d[0].name&&(a.k=d[0].name.$t);(c=c.media$thumbnail)&&c[0]&&(a.j=c[0].url)}}};function HS(a){if(DS(947225)){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}}else IS(this,a)}HS.prototype.j=!0;
function IS(a,b){if(b){var c=b.entry;if(c){var d=c.id;d&&ib(d.$t.split(":"),function(a,b,c){return"video"==a?(this.videoId=c[b+1],!0):!1},a);if(d=c.title)a.title=d.$t;if(d=c.media$group)if(d=d.yt$uploaderId)a.channelId=d.$t;c.yt$accessControl&&(c=E(c.yt$accessControl,function(a){return"list"==a.action}))&&(a.j="denied"!=c.permission)}}};function JS(){}var KS={Xn:"Image",pv:"Flash",zu:"All"},LS={HTML:"Html",mI:"IFrame",WJ:"Static",zu:"All"},MS={nI:"IgnoreSize",HJ:"SelectExactMatch",IJ:"SelectNearMatch"};function OQ(a){if(null==a||0>=a.width||0>=a.height)throw jK(HJ,null,"ad slot size",a.toString());this.k=a;this.j=new JS;this.B=NS(LS,this.j.o)?this.j.o:"All";this.A=NS(KS,this.j.creativeType)?this.j.creativeType:"All";this.D=NS(MS,this.j.A)?this.j.A:"SelectExactMatch";this.o=null!=this.j.k?this.j.k:[];this.C=ha(this.j.j)&&0<this.j.j&&100>=this.j.j?this.j.j:90}
function NQ(a,b){var c=[];C(b,function(a){!A(B(a.j.A))&&(isNaN(a.j.j)||isNaN(TQ(a))||TQ(a)==a.j.j)&&OS(this,a)?c.push(a):(a=PS(this,a),null!=a&&!A(B(a.j.A))&&c.push(a))},a);return c}
function OS(a,b){var c;if(c="Flash"!=b.getContentType()||JL){if(c="All"==a.B||a.B==b.j.T)c=b.getContentType(),c=null!=c?"All"==a.A||a.A==c:!0;c&&(c=b.o,c=nb(a.o)?!0:null!=c?0<=eb(a.o,c):!1)}c?(c=b.j.xc(),c="IgnoreSize"==a.D||Pc(a.k,c)?!0:"SelectNearMatch"==a.D&&(c.width>a.k.width||c.height>a.k.height||c.width<a.C/100*a.k.width||c.height<a.C/100*a.k.height?!1:!0)):c=!1;return c}function PS(a,b){var c=b.k;return null!=c?E(c,function(a){return OS(this,a)},a):null}
function NS(a,b){return null!=b&&Pb(a,b)};function QS(a){I.call(this,a);this.k=new oe;a=this.Ib;var b=a.indexOf(";"),c=null;0<=b?(Ve(this,a.substring(0,b)),c=a.substring(b+1)):Ve(this,a);RS(this,c)}z(QS,I);QS.prototype.toString=function(){return SS(this,QS.J.toString.call(this))};QS.prototype.np=function(){return""};QS.prototype.jf=function(){return""};
function RS(a,b){A(B(b))||C(b.split(";"),function(a){var b=a.indexOf("=");if(0<b){var e=Aa(a.substring(0,b));a=Aa(a.substring(b+1));b=this.k.get(e);null!=b?F(b,a)||b.push(a):b=[B(a)];this.k.set(e,b)}},a)}function TS(a){if(A(B("ord")))return null;a=a.k.get("ord");return null!=a?a:null}function US(a,b,c){A(B(b))||(c=D(c,B),a.k.set(b,c))}function SS(a,b){var c=[B(b)];vb(c,VS(a));return c.join(";")}
function VS(a){var b=TS(a);null!=b?A(B("ord"))||a.k.remove("ord"):b=[B(y())];var c=[];C(a.k.Ia(),function(a){C(this.k.get(a),function(b){vb(c,a+"="+b)})},a);vb(c,"ord="+b[0]);US(a,"ord",b);return c}QS.prototype.clone=function(){return new QS(this.toString())};function WS(a){a=a.adTagUrl;if(null==a)return!1;a=new I(a);var b=a.Ib;return xa(a.mb,"googleads.g.doubleclick.net")&&XS("/pagead/ads",b)}function YS(a){a=a.adTagUrl;return null!=a?"bid.g.doubleclick.net"==df(new I(a)):!1}function ZS(a){a=a.adTagUrl;if(null==a)return!1;var b=new QS(a);a=b.mb;b=SS(b,b.Ib);return!xa(a,".g.doubleclick.net")&&xa(a,"doubleclick.net")&&XS("/(ad|pfad)[x|i|j]?/",b)}
function $S(a){a=a.adTagUrl;if(null==a)return!1;a=new I(a);var b=a.Ib;return xa(a.mb,"doubleclick.net")&&XS("/gampad/ads",b)}function XS(a,b){return A(B(b))?!1:(new RegExp(a)).test(b)};function aT(){this.j=this.o=1;this.B=this.k=0;this.A=1};function bT(){this.F={};this.Ha="";this.uf=new HR}bT.prototype.Ll=function(){return null};function cT(a,b,c){a.Ha=b;a.F=c}bT.prototype.Tg=function(a){this.W=a};bT.prototype.getAd=function(){return this.W};function dT(a,b){var c=[],d=a.K();C(d,function(a){a=LR(a.uf,b)||[];c=tb(a,c)},a);return c}bT.prototype.K=function(){for(var a=[this],b=this.W.k;b;){var c=eT(this,b)||eT(this,b,!0);null!=c&&a.push(c);b=b.k}return a};
function eT(a,b,c){var d=c||!1;return E(b.A,function(a){var b=a.j==this.j;return a instanceof this.constructor&&(d||b)},a)};function fT(a,b,c,d,e,g){bT.call(this);this.da=a;this.o=b;this.k=c;this.H=ub(d);this.ja=this.ga=null;this.A=e;this.ba=ub(g);yb(this.ba,null,function(a){return a.G})}z(fT,bT);fT.prototype.Oc=function(){return this.o};function gT(a){var b=new oe,c=a.K();C(c,function(a){if(a instanceof fT){var c=a.k;C(c.Ia(),function(a){b.set(a,tb(c.get(a),b.get(a)||[]))},this)}},a);return b}
fT.prototype.getMediaUrl=function(a){var b="";ib(this.H,function(c){var d=c.k;return!A(B(a))&&a!=c.j||null==d||A(B(d))?!1:(b=d,!0)},this);return b};fT.prototype.setMediaUrl=function(a){this.ja=a};fT.prototype.Ll=function(){var a=E(this.H,function(a){return!A(B(a.j))&&-1!=a.j.indexOf("javascript")&&("VPAID"==a.o||"surveys"==a.o)});return null!=a?a.k:null};function hT(a,b,c){Q.call(this);this.k=a;this.o=b;this.A=c;this.C=0;this.j=new ln(this);iT(this)}z(hT,Q);function iT(a){a.A.forEach(function(a,c){this.j.listen(c,"mousedown",this.D);this.j.listen(c,"mouseup",this.G)},a);a.j.listen(a.o,"mouseover",a.F)}hT.prototype.D=function(){this.B=y()};
hT.prototype.G=function(a){var b=null!=a.target.href?a.target:a.target.parentNode,c=[];this.k&1&&c.push("nm="+this.C);this.k&2&&c.push("nb="+this.A.get(b));if(this.k&8){var d=Ig(this.o);c.push("nx="+(a.clientX-d.x));c.push("ny="+(a.clientY-d.y))}this.k&16&&null!=this.B&&c.push("clkt="+(y()-this.B));0<c.length&&(b.href+=0<=b.href.indexOf("?")?"&"+c.join("&"):"?"+c.join("&"))};hT.prototype.F=function(){this.C++};hT.prototype.L=function(){hT.J.L.call(this);this.j.dispose()};function jT(a,b,c,d,e){bT.call(this);A(B(a))&&(a=Wa()+"_ima");this.xa=B(a);this.na=b;this.T=c;this.S=d;this.A=e;this.V=[];null!=this.S?this.Ua=eJ[this.S]||"Other":this.Ua=null}z(jT,bT);f=jT.prototype;f.getContent=function(){var a;a=this.se();if("outerHTML"in a)a=a.outerHTML;else{var b=rd(a).createElement("div");b.appendChild(a.cloneNode(!0));a=b.innerHTML}return a};f.getContentType=function(){return this.Ua};f.xc=function(){return this.na};f.fd=function(){return this.xc().width};f.getHeight=function(){return this.xc().height};
f.Ll=function(){return"VPAID"==this.G?this.A:null};f.Oc=function(){return this.M};function kT(a,b,c,d,e){jT.call(this,a,b,c,d,e);this.ka=-2;this.o=null;this.P=this.I=u;this.O=[];this.la=!0;this.X=[];this.D=!1}z(kT,jT);function lT(a,b){a.o=b;null!=a.k&&null!=b&&(mT(a,a.I),nT(a,a.P))}function mT(a,b){null!=a.o&&null!=a.k&&C(a.O,function(a){this.o.Fa(a,"click",this.I);A(B(this.Oc()))||this.o.listen(a,"click",b)},a);a.I=b}function nT(a,b){null!=a.o&&null!=a.k&&(a.o.Fa(a.k,"creativeview",a.P),a.o.listen(a.k,"creativeview",b));a.P=b}
function oT(a){C(a.X,function(a){Ld(td(a))},a);a.X=[]}kT.prototype.B=function(a){null==this.o||A(B(this.Oc()))||(this.o.listen(a,"click",this.I),this.O.push(a))};kT.prototype.se=function(){null==this.k&&(this.k=this.$e(),Jd(this.k,pT(this)));null!=this.o&&this.o.listen(this.k,"creativeview",this.P);return this.k};
function qT(a,b){var c=a.xa,d={};d.style="cursor:default;position:relative;z-index:1001;height:"+a.getHeight()+"px;";"Text"!=a.getContentType()&&(d.style+="width:"+a.fd()+"px");A(B(c))||(d.id=c);return H("div",d,b)}kT.prototype.ep=function(){return 2};
function pT(a){if(!a.la)return null;var b=dT(a,"start");vb(b,dT(a,"creativeview"));if(null!=b&&!nb(b)){var c=[];C(b,function(a){if(!A(B(a))){var b;b=pd().tx("iframe",{frameborder:0,style:"border:0;vertical-align:bottom;",src:'javascript:""'});wg(b,{display:"block",height:"0px",width:"0px"});var g="iframe"+Math.floor(1E9*Math.random());b.setAttribute("height",0);b.setAttribute("width",0);b.setAttribute("src",rJ(a.j));b.setAttribute("id",g);this.X.push(g);pb(c,b)}},a);return c}return null}
function rT(a,b){if(null!=a.k){var c=new oe;C(a.O,function(a){c.set(a,this.ep(a))},a);new hT(b,a.k,c)}}function sT(a){var b=[],c=a.K();C(c,function(a){b=tb(b,a.V)},a);return b}kT.prototype.K=function(){var a=[this],b;for(b=this.getAd().k;b;){var c=this.D?eT(this,b)||eT(this,b,!0):tT(this,b)||tT(this,b,!0);null!=c&&a.push(c);b=b.k}return a};function tT(a,b,c){var d=c||!1;return E(b.A,function(a){var b=a.j==this.j;return this instanceof a.constructor&&(d||b)},a)};function DQ(a,b,c,d,e,g,h,k,l,p,t,w,J,la,Y,da){U.call(this);this.V=a;this.M=b;this.W=c;this.ya=d;this.O=new ln(this);uT(this);this.ka=isNaN(h)||""==h||0==h?-1:h;this.P=k?ub(k):[];this.S=l?ub(l):[];this.A=p?ub(p):[];this.da=t?ub(t):[];this.C=[];C(this.da,function(a){vb(this.C,ub(a.j))},this);this.ga=!0;this.k=this.j=null;this.D=new oe(w);this.F=null!=da;this.va=(this.G=null!=J)?la||!1:!1;this.wa=this.xz?Y||!1:!1;this.Ba=B(J);this.Ca=B(da);this.ta=this.o=null;this.B=new aT;this.ba=new G(0,0);this.T=
String(Math.floor(1E9*Math.random()));this.H=this.K=this.I=null;this.oa=y();this.la=this.ja=0;C(tb(this.A,this.C),function(a){a.Tg(this)},this);sK()&&vT(this)&&(this.C=gb(this.C,function(a){return 60>=a.getHeight()}))}z(DQ,U);function wT(a){var b;b=xT(a)?yT(a)?"2_1":"2_2":"2";return(zT(a,gJ)||zT(a,iJ)?1:zT(a,fJ)?2:0)+"_"+b}function AT(a){return null!=a.M?a.M:""}function BT(a){return null!=a.k?tb(BT(a.k),a.P):a.P}function CT(a){return null!=a.k?tb(CT(a.k),a.S):a.S}f=DQ.prototype;
f.getContentType=function(){var a=this.j,b="";if(null===a)return b;if(a instanceof fT)a=a.ga,null===a||(b=B(a.j));else if(a instanceof kT)switch(a.T){case "IFrame":case "Html":case "Static":b=B(a.S)}return b};function MQ(a){return null!=a.k?tb(a.C,MQ(a.k)):a.C}function DT(a){return null!=a.j?a.j.Ha:""}f.getExtension=function(a){return this.D.get(a)};function ET(a,b){a.j=b;a.ba=null!=a.j&&a.j instanceof kT?a.j.xc():new G(0,0)}function FT(a){return a.j}
f.Ux=function(a){a.o.queryId==this.T&&this.U(new WI("measurable_impression",this,a.o))};f.Fy=function(a){a.o.queryId==this.T&&this.U(new WI("viewable_impression",this,a.o))};function GT(a){return null!=a.V?a.V:""}function HT(a){if(null==a.k)return[];var b=[GT(a.k)];vb(b,HT(a.k));return b}function IT(a){var b=HT(a).reverse();b.push(GT(a));return b}function JT(a){if(null==a.k)return[];var b=[AT(a.k)];vb(b,JT(a.k));return b}function KT(a){var b=JT(a).reverse();b.push(AT(a));return b}
function LQ(a){if(null==a.k)return[a.W];var b=LQ(a.k);b.push(a.W);return b}function LT(a){a=a.getExtension("waterfall");return null!=a&&-1!=a.k?a.k:-1}function MT(a){if(-1!=a.ka)return a.ka;a=a.getExtension("pod");return null!=a&&-1!=a.k?a.k:-1}function SQ(a,b){return b||null==a.k?a.da:tb(a.da,SQ(a.k))}function NT(a,b){return ib(a.A,function(a){return a instanceof fT&&"linear"==b||a instanceof kT&&"nonlinear"==b?!0:!1})}function vT(a){return OT(a)?"video"==a.ya:NT(a,"linear")}
function xT(a){return null!=PT(a)}function QT(a,b){var c=PT(a);if(!c)return null;GR(c,b);return FR(c)}function PT(a){if(DS(919139)||DS(919140))return new ER(0,!1);var b=new ER(5,!1),c=RT(a);if("implicit"==c)return b;a=a.j;var d=null;null!=a&&a instanceof fT&&(d=a.A);null!=d||"explicit"!=c||(d=b);return null!=d&&sK()?b:d}
function RT(a){if(null!=E(a.D.La(),function(a){return!nb(VR(a,"skip"))}))return"implicit";var b=a.D.get("DFP");if(b instanceof bS)switch(b.k){case "InstreamSelect":return"implicit";case "Generic":return"explicit"}a=a.j;return null==a||(a=a.uf,null==a||nb(LR(a,"skip")))?"none":"explicit"}function ST(a){return null!=a.o&&(WS(a.o)||$S(a.o)||ZS(a.o))}
function yT(a){if(null==a.M||null==a.o)return!1;var b;(b=ST(a)||!1)&&!(b=OT(a)&&!TT(a,["ADSENSE/ADX"]))&&(TT(a,iJ)?(b=a.D.get("DFP"),b=null!=b?"InstreamSelect"==b.k:!1):b=!1);if(b||a.k&&a.k.F&&ST(a.k))return!0;a=zT(a,["ADSENSE/ADX"])||a.k&&zT(a,fJ);return sK()&&!a}f.xz=function(){return this.G};function UT(a){return null===a.j?null:a.j.Oc()}function VT(a){return null==a.j||a.j instanceof kT?-1:a.j.da}function WT(a){return null===a.j?null:a.j.Ll()}function OT(a){return TT(a,fJ)}
function XT(a){var b=WT(a);return TT(a,["402"])||v(b)&&!ea(b.match("//s0.2mdn.net/instream/html5/survey/survey.html"))}f.getHeight=function(){return this.ba.height};function ZT(a){return a.I}f.toString=function(){return"Ad: "+this.V};function TT(a,b){return null!=a.M?F(b,a.W):!1}function zT(a,b){for(var c=LQ(a),d=c.length-1;0<=d;d--)if("UNKNOWN"!=c[d]){if(F(b,c[d]))return!0;break}return!1}
function uT(a){var b=tK.j?hO():cR();a.O.listen(b,"measurable_impression",a.Ux);a.O.listen(b,"viewable_impression",a.Fy)}f.L=function(){null!=this.O&&this.O.dispose();DQ.J.L.call(this)};function $T(a,b){this.j=a;this.k=b};function aU(a,b,c){this.j=a;this.k=b;this.o=c}aU.prototype.getContent=function(){return this.j.getContent()};aU.prototype.getContentType=function(){return this.j.getContentType()};aU.prototype.getHeight=function(){return this.j.getHeight()};function TQ(a){a=FT(a.j.getAd());return null!=a?a.j:NaN}aU.prototype.Tg=function(a){this.j.Tg(a);C(this.k,function(b){b.Tg(a)},this)};function bU(a,b,c){this.k=a;this.j=b;this.o=c}bU.prototype.getContentType=function(){return null!=this.j?eJ[this.j]||"Other":null};function cU(a){return'<div class="text-container '+(a.image?"pyv":"")+'"><div class="text-inner-container">'+(a.image?'<a class="text-image-link" target="_blank" href="'+UO(a.Xc)+'"><img src="'+UO(a.image)+'" class="text-image">'+(a.duration?'<div class="text-image-duration">'+UO(a.duration)+"</div>":"")+"</a>":"")+'<a class="text-title" href="'+UO(a.Xc)+'" target="_blank" dir='+UO(a.dir)+">"+UO(a.title)+'</a><div class="text-description" dir='+UO(a.dir)+">"+UO(a.text)+"</div>"+(a.Gs?'<a target="_blank" href="'+
UO(a.Xc)+'" class="text-ad-channel">'+UO(a.Gs)+"</a>":"")+"</div></div>"}
function dU(a){return'<div class="flash-container '+(a.Ye?"click-capture":"")+'"><a class="click-layer" target="_blank" href="'+UO(a.Xc)+'"></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="'+UO(a.width)+'" height="'+UO(a.height)+'"><param name="movie" value="'+UO(a.url)+'"><param name="quality" value="high"><param name="wmode" value="transparent"><param name="AllowScriptAccess" value="never"><param name="FlashVars" value="clickTAG='+fP(a.Xc)+
'"><embed width="'+UO(a.width)+'" height="'+UO(a.height)+'" wmode="transparent" type="application/x-shockwave-flash" src="'+UO(a.url)+'" allowscriptaccess="never" pluginspage="//www.macromedia.com/go/getflashplayer" flashvars="clickTAG='+fP(a.Xc)+'"></object></div>'}function eU(a){return'<div class="image-container" id="'+UO(a.id)+'" style="width:'+UO(a.width)+";height:"+UO(a.height)+'"><a target="_blank" href="'+UO(a.Xc)+'"><img src="'+UO(a.url)+'" border="0"></a></div>'};function fU(a,b,c,d){kT.call(this,a,b,"Static",c,d);this.Co=!1}z(fU,kT);fU.prototype.$e=function(){var a=this.G,a=null!=a&&"clicktag"==a.toLowerCase(),a={url:rJ(B(this.A)),width:this.fd(),height:this.getHeight(),Xc:this.Oc(),Ye:this.Co||!a},a=PO(dU,a);a.style.width=this.fd()+"px";a.style.height=this.getHeight()+"px";a.id=this.xa;C(a.getElementsByTagName("object"),this.B,this);C(a.getElementsByTagName("a"),this.B,this);return a};function gU(a,b,c,d){kT.call(this,a,b,"Html",c,d)}z(gU,kT);gU.prototype.$e=function(){var a=H("div");a.innerHTML=this.A;this.B(a);return qT(this,a)};function hU(a,b,c,d){kT.call(this,a,b,"Static",c,d)}z(hU,kT);hU.prototype.getContent=function(){var a=hU.J.getContent.call(this);this.D&&(a=a.replace('<img src=""','<img src="'+rJ(B(this.A))+'"'));return a};hU.prototype.$e=function(){var a="";this.D||(a=rJ(B(this.A)));a={id:this.xa,url:a,Xc:this.Oc(),width:this.fd()+"px",height:this.getHeight()+"px"};a=PO(eU,a);C(a.getElementsByTagName("a"),this.B,this);return a};function iU(a,b){kT.call(this,a,b,"Static","text","")}z(iU,kT);f=iU.prototype;f.xc=function(){return new G(this.fd(),this.getHeight())};f.getHeight=function(){return 63};f.fd=function(){return null!=this.C?Rg(this.C).width:0};f.ep=function(a){return eh(a,"text-image")?9:eh(a,"text-ad-channel")?1:0};
f.$e=function(){var a=this.getAd(),b=a.getExtension("AdSense"),c=a.getExtension("TextAd"),d=c.o,e="rtl";null!=d&&(e=jc.test(ic(d,void 0))?"rtl":"ltr");d={title:d,text:c.A+" "+c.B,dir:e,Xc:this.Oc()};if(c=c.k)d.image=rJ(c),a=E(a.A,function(a){return a instanceof fT}),null!=a&&(d.duration=zR(a.da));b.o&&(d.Gs=b.o);this.C=PO(cU,d);C(this.C.getElementsByTagName("a"),this.B,this);this.C.id=this.xa;this.C.style.height=this.getHeight()+"px";return this.C};function jU(a,b,c,d,e){kT.call(this,a,b,c,d,e)}z(jU,kT);jU.prototype.$e=function(){var a=B(this.A);A(B(this.Oc()))||(a=new I(a),K(a,"clickTAG",za(this.Oc())),a=a.toString());var b=H("iframe",{marginwidth:0,marginheight:0,hspace:0,vspace:0,frameborder:0,scrolling:"no"},null);b.height=this.getHeight();"Text"!=this.getContentType()&&(b.width=this.fd());b.setAttribute("src",rJ(a));this.B(b);return qT(this,b)};function kU(a,b,c){if(nb(c))return new kT(a,b,"",null,"");var d=lU(c);c=d.k;var e=d.j,d=d.o;switch(c){case "Html":return new gU(a,b,e,d);case "Static":switch(eJ[e]){case "Image":return new hU(a,b,e,d);case "Flash":return new fU(a,b,e,d);case "Text":return new iU(a,b)}}return new jU(a,b,c,e,d)}
function lU(a){var b=E(a,function(a){return"Static"==a.k&&"Flash"==eJ[a.j]}),c=E(a,function(a){return"IFrame"==a.k}),d=E(a,function(a){return"Html"==a.k}),e=E(a,function(a){return"Static"==a.k&&"Image"==eJ[a.j]}),g=E(a,function(a){return"Static"==a.k&&"Text"==eJ[a.j]});return JL&&null!=b?b:null!=c?c:null!=d?d:null!=e?e:null!=g?g:a[0]};function mU(a,b,c,d,e){var g=lU(e),h=kU(a.id,a.size,[g]);h.D=!0;h.G=a.apiFramework;h.M=b;h.j=c;d&&(h.uf=d);qb(e,g);var k=[];C(e,function(e){e=kU(a.id,a.size,[e]);e.D=!0;e.G=a.apiFramework;e.M=b;e.j=c;d&&(e.uf=d);k.push(new aU(e,[],a.adSlotId))});return new aU(h,k,a.adSlotId)};function nU(a,b,c,d,e,g,h){this.o=a;this.G=b;this.B=c;this.C=d;this.k=e;this.D=g;this.F=h;this.j=this.o.$e()}nU.prototype.se=function(){return this.j};
nU.prototype.display=function(a){this.A=a;this.A.appendChild(this.j);a=this.j;var b=Pg(this.A),b="left"==this.B?"0px":"right"==this.B?b.width-this.o.xc().width+"px":this.B+"px",c;c=Pg(this.A);c="bottom"==this.C?"0px":"top"==this.C?c.height-this.o.xc().height+"px":c.height-this.o.xc().height-$a(this.C)+"px";wg(a,{position:"absolute",overflow:"hidden",left:b,bottom:c});Tg(this.j,!1)};
nU.prototype.update=function(a,b){var c=null!=this.D?FR(this.D):0;this.k=0<=this.k?this.k:b;c<=a&&c+this.k>=a?oU(this):Tg(this.j,!1)};function oU(a){"none"==a.j.style.display&&(Tg(a.j,!0),C(a.F,function(a){tJ(a)}))};function pU(a,b,c,d,e,g,h,k,l,p){b=kU("icon"+a,b,p);b.G=h;b.M=k.iconClickThrough;return new nU(b,a,c,d,e,g,l)};function qU(a){this.A=a;this.logger=null}z(qU,gR);
qU.prototype.j={vu:"Ad",gk:"AdParameters",xu:"AdSystem",yu:"AdTitle",TG:"Advertiser",Cu:"AltText",Ju:"ClickThrough",Ku:"ClickTracking",Lu:"Companion",Mu:"CompanionAds",Nu:"CompanionClickThrough",Ou:"CompanionClickTracking",Yu:"Creative",FH:"CreativeExtensions",Zu:"Creatives",cv:"CustomClick",fv:"Description",hk:"Duration",ERROR:"Error",kv:"Extension",lv:"Extensions",Ch:"HTMLResource",sv:"Icon",tv:"Icons",uv:"IconClicks",vv:"IconClickThrough",wv:"IconClickTracking",xv:"IconViewTracking",Fh:"IFrameResource",
Yn:"Impression",pI:"InLine",LINEAR:"Linear",Gv:"MediaFile",Hv:"MediaFiles",Mv:"NonLinear",Nv:"NonLinearAds",Ov:"NonLinearClickThrough",Pv:"NonLinearClickTracking",tJ:"Pricing",Ih:"StaticResource",lo:"Survey",oK:"Tracking",lk:"TrackingEvents",xK:"VAST",jw:"VASTAdTagURI",kw:"VideoClicks",mw:"Wrapper"};
qU.prototype.k={wu:"adSlotID",Bu:"allowMultipleAds",Ah:"apiFramework",Hu:"bitrate",$u:"creativeType",ev:"delivery",hk:"duration",PH:"event",qv:"followAdditionalWrappers",iv:"expandedHeight",jv:"expandedWidth",ik:"height",Eh:"id",Dv:"maintainAspectRatio",Fv:"maxBitrate",Jv:"minBitrate",Kv:"minSuggestedDuration",Qv:"offset",Rv:"program",Tv:"required",Xv:"scalable",fo:"sequence",Zv:"skipoffset",no:"type",VERSION:"version",mk:"width",qw:"xPosition",sw:"yPosition"};
function rU(a){if(null==a)return!1;a=Od(a);return null!=a&&"VAST"==a.nodeName}function sU(a){if(null==a)return 0;a=parseInt(a.getAttribute("version"),10);return ha(a)&&!isNaN(a)?a:0}function tU(a){var b=[],c=Od(a.A),d=sU(c);mR(c,a.j.vu,function(a){var c;c=uU(a);if(null==c)throw hR(a);var h=a.getAttribute(this.k.Eh);a=Number(a.getAttribute(this.k.fo));c=vU(this,c,h||null,a||0);null!=c&&(c.la=d,b.push(c))},a);return b}qU.prototype.o=function(){return new qR(this.A,tU(this),null)};
function uU(a){var b=null;C(Nd(a),function(a){switch(a.nodeName){case "InLine":case "Wrapper":b=a;break;default:throw hR(a);}});return b}
function vU(a,b,c,d){var e,g,h=[],k=[],l=[],p=[],t=new oe,w,J=b.nodeName==a.j.mw,la=J,Y=J,da;C(Nd(b),function(a){switch(a.nodeName){case this.j.jw:if(J){if(null!=w)throw iR(a);w=lR(a);da=SR(w);la=pR(b.getAttribute(this.k.Bu),la);Y=pR(b.getAttribute(this.k.qv),Y)}else throw hR(a);break;case this.j.xu:e=lR(a);break;case this.j.yu:g=lR(a);break;case this.j.fv:lR(a);break;case this.j.lo:lR(a);break;case this.j.Yn:a=lR(a);QR(a)&&h.push(CR(a));break;case this.j.ERROR:a=lR(a);k.push(CR(a));break;case this.j.Zu:a=
wU(this,a);l=a.creatives;p=a.Rw;break;case this.j.lv:t=xU(this,a,da)}},a);return new DQ(B(c),e,yU(e),g,0,0,d,k,h,l,p,t,w,la,Y,zU(t))}function zU(a){var b=null;a=a.get("AdSense");null!=a&&(a=VR(a,"vast2tracking"),null!=a&&!nb(a)&&(b=a[0]));return b}function yU(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 AU(a){if(A(B(a)))return"none";switch(a){case "all":case "any":case "none":return a;default:return"none"}}
function xU(a,b,c){var d=new oe;try{var e=jR(b,a.j.kv);C(e,function(a){var b=a.getAttribute(this.k.no);null!=b&&(b=b.toLowerCase());switch(b){case "geo":a=(new qS).parse(a);break;case "pod":a=(new oS).parse(a);break;case "waterfall":a=(new sS).parse(a);break;case "dart":a=(new cS).parse(a);break;case "dfp":b="DFP";a=(new dS).parse(a);break;case "adsense":b="AdSense";a=(new aS).parse(a);break;case "textad":b="TextAd";a=(new mS).parse(a);break;case "templatead":b="TemplateAd";a=(new jS).parse(a);break;
case "infocards":var b="InfoCards",e=new gS;a=e.parse(a);break;case "infocardstracking":b="InfoCardsTracking";e=new gS;a=e.parse(a);break;case c:b="LocalRedirect";null!=a?(e=null,a=jR(a,"AdXml"),1==a.length&&(e='<?xml version="1.0" encoding="UTF-8"?>'+IB(Od(a[0]))),a=new hS(e)):a=null;break;default:e=new eS,b="generic",a=e.parse(a)}null!=a&&(e=d.get(b),null!=e?"generic"==b&&(UR(e,a.j),d.set(b,e)):d.set(b,a))},a)}catch(g){}return d}
function wU(a,b){var c=[],d=[];mR(b,a.j.Yu,function(a){var b=a.getAttribute(this.k.fo),h;A(B(b))||(h=parseFloat(b));a.getAttribute(this.k.Eh);var k=!1;C(Nd(a),function(a){switch(a.nodeName){case this.j.LINEAR:if(k)throw iR(a);a=BU(this,a,isNaN(h)?0:h);vb(c,a);k=!0;break;case this.j.Mu:if(k)throw iR(a);a=CU(this,a,isNaN(h)?void 0:h);vb(d,a);k=!0;break;case this.j.Nv:if(k)throw iR(a);a=DU(this,a,isNaN(h)?0:h);vb(c,a);k=!0}},this)},a);return{creatives:c,Rw:d}}
function DU(a,b,c){var d=[],e=new HR;C(Nd(b),function(a){switch(a.nodeName){case this.j.Mv:a=EU(this,a,c);null!=a&&d.push(a);break;case this.j.lk:e=PR(a);break;default:throw hR(a);}},a);0!=d.length||e.isEmpty()||(a=new kT(null,new G(-1,-1),"",null,""),a.j=c,d.push(a));C(d,function(a){e&&(a.uf=e)});return d}
function FU(a,b){var c={};c.id=b.getAttribute(a.k.Eh);c.adSlotId=b.getAttribute(a.k.wu);c.apiFramework=b.getAttribute(a.k.Ah);var d=Xa(b.getAttribute(a.k.mk)),e=Xa(b.getAttribute(a.k.ik));c.size=new G(d,e);d=b.getAttribute(a.k.jv);e=b.getAttribute(a.k.iv);A(B(d))||A(B(e))||(c.$K=new G(Xa(d),Xa(e)));return c}
function EU(a,b,c){var d=FU(a,b);b.getAttribute(a.k.Ah);b.getAttribute(a.k.Xv);b.getAttribute(a.k.Dv);var e=b.getAttribute(a.k.Kv),e=oR(e,-1),g=[];new oe;var h={},k="",l,p=[];C(Nd(b),function(a){switch(a.nodeName){case this.j.Pv:p.push(lR(a));break;case this.j.Ov:l=lR(a);break;case this.j.gk:h=GU(a);k=B(lR(a));break;case this.j.Fh:case this.j.Ih:case this.j.Ch:g.push(HU(this,a));break;default:throw hR(a);}},a);a=kU(d.id,d.size,g);cT(a,k,h);a.G=d.apiFramework;a.M=l;a.V=p;a.ka=e;a.j=c;return a}
function HU(a,b){var c=kR(b,a.k.$u),d;t:switch(d=b.nodeName,d){case a.j.Ih:d="Static";break t;case a.j.Fh:d="IFrame";break t;case a.j.Ch:d="Html";break t;default:throw hK(aK,null,d);}var e=lR(b);null!=e||(e="");return new bU(d,c,e)}function CU(a,b,c){var d=[],e=AU(kR(b,a.k.Tv));mR(b,a.j.Lu,function(a){a=IU(this,a,c);null!=a&&d.push(a)},a);return new $T(d,e)}
function IU(a,b,c){var d=FU(a,b),e=[],g=new HR,h;C(Nd(b),function(a){switch(a.nodeName){case this.j.Ou:break;case this.j.lk:g=PR(a,!0);break;case this.j.Nu:h=lR(a);break;case this.j.Cu:lR(a);break;case this.j.gk:lR(a);break;case this.j.Fh:case this.j.Ih:case this.j.Ch:e.push(HU(this,a));break;default:throw hR(a);}},a);return nb(e)?null:mU(d,h,c,g,e)}
function BU(a,b,c){var d=new HR,e={},g="",h=[],k,l=new oe,p=[],t=[],w,J=RR(kR(b,a.k.Zv));C(Nd(b),function(a){switch(a.nodeName){case this.j.tv:t=JU(this,a);break;case this.j.gk:e=GU(a);g=B(lR(a));break;case this.j.hk:w=oR(lR(a),0);break;case this.j.lk:d=PR(a);break;case this.j.Hv:p=KU(this,a);break;case this.j.kw:a=LU(this,a);l=a.customClicks;k=a.clickThrough;h=a.clickTrackingUrls;break;default:throw hR(a);}},a);C(h,function(a){MR(d,"click",a)});a=new fT(w,k,l,p,J,t);cT(a,g,e);a.j=c;d&&(a.uf=d);return a}
function LU(a,b){var c,d=[],e=new oe;C(Nd(b),function(a){switch(a.nodeName){case this.j.Ju:c=lR(a);break;case this.j.Ku:a=lR(a);d.push(a);break;case this.j.cv:var b=kR(a,this.k.Eh);null!=b||(b="");var k=e.get(b,[]);k.push(lR(a));e.set(b,k);break;default:throw hR(a);}},a);return{clickThrough:c,clickTrackingUrls:d,customClicks:e}}
function KU(a,b){var c=[];mR(b,a.j.Gv,function(a){var b=kR(a,this.k.ev),g=kR(a,this.k.no);a.getAttribute(this.k.mk);var h=Xa(a.getAttribute(this.k.ik)),k=a.getAttribute(this.k.Ah),l=lR(a),p=nR(a.getAttribute(this.k.Hu)),t=nR(a.getAttribute(this.k.Jv));a=nR(a.getAttribute(this.k.Fv));c.push(new zO(b,g,p,t,a,0,h,l,k))},a);return c}function JU(a,b){var c=[];mR(b,a.j.sv,function(a){a=MU(this,a);null!=a&&c.push(a)},a);return c}
function MU(a,b){var c=b.getAttribute(a.k.Rv),d=kR(b,a.k.qw),e=kR(b,a.k.sw),g=Xa(b.getAttribute(a.k.mk)),h=Xa(b.getAttribute(a.k.ik)),g=new G(g,h),h=b.getAttribute(a.k.Ah),k=RR(kR(b,a.k.Qv)),l=b.getAttribute(a.k.hk),l=oR(l,-1),p=[],t=[],w;C(Nd(b),function(a){switch(a.nodeName){case this.j.xv:t.push(lR(a));break;case this.j.uv:w=NU(this,a);break;case this.j.Fh:case this.j.Ih:case this.j.Ch:p.push(HU(this,a));break;default:throw hR(a);}},a);return nb(p)?null:pU(c,g,d,e,l,k,h,w,t,p)}
function NU(a,b){var c=[],d;C(Nd(b),function(a){switch(a.nodeName){case this.j.vv:d=lR(a);break;case this.j.wv:c.push(lR(a));break;default:throw hR(a);}},a);return{iconClickThrough:d,cL:c}}function GU(a){a=lR(a);return null!=a?AR(a):{}};function OU(a,b){this.k=a;this.j=b}z(OU,gR);OU.prototype.o=function(){return new qR(this.k,null,PU(this))};function QU(a){var b=KB(a);return nb(b)?[kR(a,"timeOffset")]:D(b,function(a){return kR(a,"timeOffset")})}
function PU(a){var b=new uR;C(Nd(Od(a.k)),function(a){if("vmap:AdBreak"==a.nodeName){var d=RU(this,a);a=QU(a);C(a,function(a,c){var h=oR(a);0<c&&(d=SU(this,d));if("start"==a||0==h)vR(b,d,0);else if("end"==a)vR(b,d,-1);else{if(-1==h)throw hK(BJ,null,"timeOffset",B(a));vR(b,d,h)}},this)}},a);if(0==b.j.Ia().length)throw hK(IJ);return b}function SU(a,b){return D(b,function(a){var b=new sR(a.o.clone());b.j=a.j;b.k=a.k;return b},a)}
function TU(a){a=kR(a,"timeOffset");var b=oR(a);return"start"==a||0==b?0:"end"==a||-1==b?-1:1E3*b}
function RU(a,b){var c=[],d="",e=null,g=!1,h=!1;C(Nd(b),function(a){switch(a.nodeName){case "vmap:AdSource":if(!e&&(e=JB(a,"vmap:VASTData/VAST")||JB(a,"vmap:VASTAdData/VAST"),!e)){var b=jR(a,"vmap:AdTagURI"),c="";b.length&&(c=B(lR(b[0])));if(A(c))throw hK(fK,null,a.parentNode.nodeName,a.nodeName);d=c}break;case "vmap:Extensions":a=jR(a,"vmap:Extension"),a=UU(this,a),null!=a&&(g=!0,a=kR(a,"suppress_bumper"),h=null!=a?"true"==a:!0)}},a);var k=null;e?k=VU(a,e):A(d)||(k=WU(a,d));k&&(sK()&&(k.gh=TU(b)),
k=new sR(k),k.j=g,k.k=g&&!h,pb(c,k));return c}function UU(a,b){return E(b,function(a){return"bumper"==kR(a,"type")},a)}function WU(a,b){var c=a.j.clone();A(c.adsResponse)||(c.adsResponse="");c.adTagUrl=b;return c}function VU(a,b){var c=a.j.clone();c.adsResponse=IB(b);c.adTagUrl="";return c};function XU(a,b){if(null!=a){var c;null!=a?(c=Od(a),c=null!=c&&"Playlist"==c.nodeName):c=!1;if(c)return VQ.getInstance().j=!1,new wR(a,b);null!=a?(c=Od(a),c=null!=c&&"vmap:VMAP"==c.nodeName):c=!1;if(c)return VQ.getInstance().j=!1,new OU(a,b);if(rU(a)){if(!rU(a))throw hK(LJ);c=Od(a);var d=sU(c);if(1>d||3<d)throw hK(bK);c=jR(c,"Ad");if(nb(c))throw hK(QJ);c=uU(c[0]);if(null==c)throw hK(TJ);if(1!=jR(c,"AdSystem").length)throw hK(TJ);return new qU(a)}}return null};function YU(){}f=YU.prototype;
f.clone=function(){var a=new YU;"auto"==this.Ne?a.Ne="auto":"click"==this.Ne&&(a.Ne="click");a.adTagUrl=this.adTagUrl;a.je=ac(this.je);a.adsResponse=this.adsResponse;a.Mc=ac(this.Mc);a.Fp=this.Fp;a.isYouTube=this.isYouTube;a.location=this.location;a.referrer=this.referrer;a.lastActivity=this.lastActivity;a.language=this.language;a.linearAdSlotWidth=this.linearAdSlotWidth;a.linearAdSlotHeight=this.linearAdSlotHeight;a.nonLinearAdSlotWidth=this.nonLinearAdSlotWidth;a.nonLinearAdSlotHeight=this.nonLinearAdSlotHeight;
a.oc=this.oc;a.tagForChildDirectedContent=this.tagForChildDirectedContent;a.ah=this.ah;a.Wm=this.Wm;a.youTubeAdType=this.youTubeAdType;a.youTubeExperimentIds=this.youTubeExperimentIds;a.gh=this.gh;a.ti=this.ti;this.j&&(a.j=ub(this.j));return a};f.je=null;f.Mc=null;f.Ne="unknown";f.Fp=!1;f.isYouTube=!1;f.linearAdSlotWidth=0;f.linearAdSlotHeight=0;f.nonLinearAdSlotWidth=0;f.nonLinearAdSlotHeight=0;f.oc=null;f.tagForChildDirectedContent=!1;f.ah=!1;f.Wm=!0;f.gh=0;f.To=!0;f.ti=null;function ZU(a,b){this.k=a;this.o=b;var c=a.j;sK()&&c&&CS(AS(),c,!1)}function $U(a,b){"auto"!=a.k.Ne&&"click"!=a.k.Ne||b.set("vpa",a.k.Ne)}function aV(a){A(tK.getPlayerType())||(a.set("mpt",tK.getPlayerType()),A("")||a.set("mpv",""))}function bV(a,b){var c=a.o.B;null!=c&&b.set("js","ima-"+c)}function cV(a,b){b.set("osd",2);-1!=a.o.G&&b.set("frm",a.o.G)}ZU.prototype.F=function(){return this.A(this.C()).toString()};function dV(a){return tK.j?"h.3.0.0":null!=a.o?iQ(a.o):null}
ZU.prototype.B=function(){var a;a=1;EK()&&(a+=4);return a};function eV(){this.j=["video"]}var fV={sK:"ultrahigh",eI:"high",Iv:"medium"},gV={WG:1E3,XG:1001,YG:1002,ZG:1003,$G:1004,aH:1005,bH:1006},hV={Ev:1,mv:2},iV={CH:"content",OJ:"site",PJ:"site_content"};f=eV.prototype;f.Kh="high";f.Fl=!1;f.nk=1;f.ok=null;f.adType="video";f.adBlock=1;f.Gl=null;f.tk=!0;f.uk=null;f.Mk=null;f.ng=null;f.experimentIds=null;f.Hl=null;f.host=null;f.hostTierId=null;f.Il=!1;f.language=null;f.Tp=null;f.Sp=null;f.Bi=1E5;f.Ki=null;f.Vp=null;f.Up=null;f.gm=0;f.sf=null;f.aj=null;
f.mj=null;f.Xm=null;f.tagForChildDirectedTreatment=-1;f.url=null;f.Ci=null;f.Jl=null;f.Kl=null;f.tn=null;f.pn=null;f.qn=null;f.rn=null;f.Ak=null;var jV=(new Date).getTime();var kV=[202,1009],lV=["[CONTENT_V]","[CPN]","[DISALLOW]","[LACT]"];function mV(a,b,c){var d={};a=new nV(a,n(b)?b:null,n(c)?c:null);oV(d,a);b=a.error;d["[ERRORCODE]"]=1E3>b.j?b.j:900;pV(d,a);qV(d,a);rV(d,a);b=a.error.getErrorCode();d["[ERROR_MSG]"]=a.error.getMessage();d["[IMA_ERROR]"]=b;d["[INTERNAL_ID]"]="0";a=-1!=eb(kV,b);d["[BLOCKING_ERROR]"]=a?"1":"0";d["[YT_ERROR_CODE]"]=3;return d}
function sV(a,b){var c={},d=new nV(null,a,n(b)?b:null);oV(c,d);pV(c,d);qV(c,d);rV(c,d);c["[BREAK_TYPE]"]="0";c["[SLOT_POS]"]="0";c["[MIDROLL_POS]"]="0";if(null!=d.j){var e=d.j.o;null!=e&&null!=e.je&&null!=e.je.video_start_delay?(e=e.je.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.B,c["[BREAK_TYPE]"]=0==e.k?"1":-1==e.k?"3":"2",c["[SLOT_POS]"]=e.j-1,0<e.B&&(c["[MIDROLL_POS]"]=Math.round(1E3*e.B)))}tV(c,d);uV(c,d);d=a.oa;
for(e=a;null!=e;)d=e.ja+","+d,e=e.k;c["[RWT]"]=d;return c}function nV(a,b,c){this.error=a;this.j=b;this.display=c}function vV(a,b){null!=b&&(a["[VIEWABILITY]"]=b);return a}function oV(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 uV(a,b){a["[AD_CPN]"]={toString:function(){return b.display.gf()}};a["[AD_MT]"]={toString:function(){return Math.round(Math.max(0,1E3*b.display.getCurrentTime())).toString()}}}function pV(a,b){a["[SDKV]"]="h.0.0.0";a["[EL]"]="adunit";a["[CONN]"]="0";null!=b.j&&(a["[VIEWABILITY]"]={toString:function(){var a;tK.j?(a=hO(),a=lO(a,"metric",b.j.T)):(cR(),a="");return a}});a["[VIS]"]="0";a["[WT]"]={toString:function(){return Date.now()}}}
function qV(a,b){if(null!=b.j&&null!=b.j.o&&null!=b.j.o.Mc&&sK()){var c=b.j.o.Mc;C(lV,function(b){b in c&&(a[b]=c[b])})}}
function rV(a,b){if(null!=b.j){a["[AD_ID]"]=IT(b.j);a["[AD_SYS]"]=KT(b.j);a["[AD_V]"]={toString:function(){return null!=b.display?tP(b.display.getVideoUrl()):""}};a["[FORMAT_NAMESPACE]"]="0";a["[FORMAT_TYPE]"]="0";a["[FORMAT_SUBTYPE]"]="0";var c=[];try{c=wT(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 tV(a,b){null!=b.j&&(a["[AD_LEN]"]={toString:function(){var a=VT(b.j);return 0>a?"-1":Math.round(1E3*a).toString()}},a["[VOL]"]={toString:function(){return null!=b.display?Math.round(100*b.display.ed()).toString():""}})};var wV={pv:"flash",Xn:"image",TJ:"skippablevideo",VJ:"standardvideo",XJ:"staticimage",TEXT:"text",VIDEO:"video"},xV=["flash","image","staticimage"],yV=[new G(200,200),new G(250,250),new G(300,250),new G(336,280),new G(450,50),new G(468,60),new G(480,70),new G(728,90)];
function zV(a,b){var c=null!=b.linearAdSlotHeight?b.linearAdSlotHeight:0,d=null!=b.nonLinearAdSlotHeight?b.nonLinearAdSlotHeight:0;a.set("sz",Math.max(null!=b.linearAdSlotWidth?b.nonLinearAdSlotWidth:0,null!=b.nonLinearAdSlotWidth?b.nonLinearAdSlotWidth:0)+"x"+Math.max(c,d))}
function AV(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",jV)}
function BV(a){if(a.Mc&&a.Mc["[LACT]"]){var b=a.Mc["[LACT]"].toString();if(b)return $a(b)}return a.lastActivity}function CV(a,b,c){var d=new oe;d.set("ad_type",b.adType);JL&&d.set("flash",KL);zV(d,a);DV(b)&&(d.set("ea","0"),null!=a.nonLinearAdSlotWidth&&null!=a.nonLinearAdSlotHeight&&d.set("image_size",EV(b,a.nonLinearAdSlotWidth,a.nonLinearAdSlotHeight)));FV(d,c);d.set("lact",BV(a));d.set("videoad_start_delay",a.gh);AV(d);GV(a,d,!0);return d}
function GV(a,b,c){A(B(a.referrer))||(a=a.referrer,c&&(a=za(a)),HV("ref",a,b))}function IV(a,b){var c=null!=b?b.split("_"):a;C(c,function(a){if(!Pb(wV,a))throw hK(HJ,null,"ad_type",String(b));});if(!EK()){var d=[];C(c,function(a){"video"==a?d.push("standardvideo"):"skippablevideo"!=a&&d.push(a)});if(0==d.length)throw hK(GJ,null,"skippablevideo");return d}return c}function JV(a,b){return null!=b?b.split(/[+, ]/):a}
function EV(a,b,c){a.o&&(c=Math.min(c,90));var d=[];C(yV,function(a){b>=a.width&&c>=a.height&&d.push(a.width+"x"+a.height)});return d.join(",")}function KV(a,b){return null==b||isNaN(b)?a:Number(b)}function LV(a,b){return null!=b?String(b):null!=a?a:null}function MV(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 NV(a,b,c){return null!=b&&Pb(c,b)?b:a}function DV(a){return ib(xV,function(b){return F(a.j,b)})}
function FV(a,b){JL?a.set("ca_type","flash"):a.set("ca_type","image");if(null!=b){var c=b.o;null!=c&&0<c.length&&(c=c[0].B,0<c.length&&(a.set("ca_w",c[0].width),a.set("ca_h",c[0].height)))}}function HV(a,b,c){null!=b&&c.set(a,b)};function OV(a,b,c){ZU.call(this,a,b);b=new eV;a=gf(new I(a.adTagUrl));b.Gl=NV(b.Gl,a.get("cust_age"),gV);b.Kh=NV(b.Kh,a.get("adsafe"),fV);b.j=IV(b.j,a.get("ad_type"));b.adType=b.j.join("_");b.nk=KV(b.nk,a.get("videoad_start_delay"));b.ok=LV(b.ok,a.get("slotname"));b.Fl=MV(b.Fl,a.get("adtest"));b.tk=MV(b.tk,a.get("scs"));b.uk=LV(b.uk,a.get("alternate_ad_url"));b.channels=JV(b.channels,a.get("channel"));b.Mk=KV(b.Mk,a.get("cpm"));b.ng=LV(b.ng,a.get("description_url"));b.experimentIds=LV(b.experimentIds,
a.get("eid"));b.Hl=NV(b.Hl,a.get("cust_gender"),hV);b.o=MV(b.o,a.get("overlay"));b.host=LV(b.host,a.get("host"));b.k=JV(b.k,a.get("h_ch"));b.hostTierId=KV(b.hostTierId,a.get("ht_id"));b.Il=MV(b.Il,a.get("lsv"));var d;null!=this.k.language?d=this.k.language:(d=m.navigator||null,d=qK(d.language||d.userLanguage||d.browserLanguage||d.systemLanguage||""));var e=null!=a.get("hl")?String(a.get("hl")):null;d=LV(e,d);var g;null!=d&&!A(B(d))&&(g=qK(d));b.language=LV(b.language,g);b.Tp=KV(b.Tp,a.get("linearAdSlotWidth"));
b.Sp=KV(b.Sp,a.get("linearAdSlotHeight"));b.Bi=KV(b.Bi,a.get("max_ad_duration"));b.gm=KV(b.gm,a.get("min_ad_duration"));b.Ki=KV(b.Ki,a.get("sdmax"));b.Vp=KV(b.Vp,a.get("nonLinearAdSlotWidth"));b.Up=KV(b.Up,a.get("nonLinearAdSlotHeight"));b.sf=LV(b.sf,a.get("client"));b.aj=LV(b.aj,a.get("t_pyv"));b.mj=KV(b.mj,a.get("sdki"));b.tagForChildDirectedTreatment=KV(b.tagForChildDirectedTreatment,a.get("tfcd"));b.Xm=NV(b.Xm,a.get("targeting"),iV);b.Ci=KV(b.Ci,a.get("video_format"));b.Jl=KV(b.Jl,a.get("video_cpm"));
b.Kl=LV(b.Kl,a.get("loeid"));b.tn=LV(b.tn,a.get("yt_pt"));b.pn=LV(b.pn,a.get("ytdevice"));b.qn=LV(b.qn,a.get("ytdevicever"));b.rn=LV(b.rn,a.get("dbp"));b.A=LV(b.A,a.get("ms"));b.adBlock=KV(b.adBlock,a.get("adBlock"));b.url=LV(b.url,a.get("url"));b.Ak=LV(b.Ak,a.get("avo"));this.j=b;this.G=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),CS(AS(),c))}z(OV,ZU);var PV=["skippablevideo","standardvideo","video"];OV.prototype.D={Au:"allow",gv:"exclude",BJ:"require"};
OV.prototype.B=function(){var a=OV.J.B.call(this);this.j.mj&&(a+=this.j.mj&2);return a};OV.prototype.A=function(a){var b=new I("//googleads.g.doubleclick.net/pagead/ads"),c=a.Ia();C(c,function(c){K(b,c,a.get(c))});return b};
OV.prototype.C=function(){var a=new oe;a.set("sdkv",dV(this));a.set("sdki",this.B().toString(16));a.set("video_product_type",null!=this.j.sf?sK()?5:wa(this.j.sf,"ca-games-")?4:wa(this.j.sf,"ca-video-")?0:-1:-1);a.set("correlator",this.o.j);a.set("client",this.j.sf);sK()&&!A(B(this.j.url))?a.set("url",this.j.url):a.set("url",this.k.location?this.k.location:this.k.referrer);null!=this.k.oc&&a.set("adk",this.k.oc);a.set("num_ads",QV(this));a.set("channel",RV(this));a.set("ad_type",this.j.adType);DS(41351020)?
a.set("output","xml_vast3"):a.set("output","xml_vast2");this.j.Fl&&a.set("adtest","on");JL&&a.set("flash",KL);HV("alternate_ad_url",this.j.uk,a);HV("cpm",this.j.Mk,a);zV(a,this.k);sK()||Pb(fV,this.j.Kh)&&a.set("adsafe",this.j.Kh);this.j.host&&(a.set("host",this.j.host),HV("ht_id",this.j.hostTierId,a),null!=this.j.k&&HV("h_ch",this.j.k.join("+"),a));HV("hl",this.j.language,a);HV("cust_age",this.j.Gl,a);HV("cust_gender",this.j.Hl,a);-1!=this.j.tagForChildDirectedTreatment&&HV("tfcd",this.j.tagForChildDirectedTreatment,
a);HV("slotname",this.j.ok,a);var b=ES(AS());A(B(b))||a.set("eid",b);AV(a);b=this.j.ng;if(null!=b){var c;c=this.o;null==c.o&&(c.o=new ZP);c=c.o;var d;null!=b&&c.k!=b?(c.j=1,c.k=b):c.j=null!=b?c.j+1:1;d=c.j;1!=d&&a.set("ad_block",d);d=this.o;null==d.K&&(d.K=new eQ);d=d.K;var e=b!=this.o.M;(c=0==c.j%100||e)||(c=36E5<(null===d.j?0:(new bQ).getTime()-d.j));c&&(d.j=null,d.k=null);this.o.M=b;b=d.k;null!==b&&a.set("tok",b)}a.set("unviewed_position_start","1");b=this.j.nk;a.set("videoad_start_delay",null!=
b?b:1);bV(this,a);cV(this,a);$U(this,a);DV(this.j)&&(a.set("ea","0"),null!=this.k.nonLinearAdSlotWidth&&null!=this.k.nonLinearAdSlotHeight&&a.set("image_size",EV(this.j,this.k.nonLinearAdSlotWidth,this.k.nonLinearAdSlotHeight)));SV(this)&&a.set("video_format",null!=this.j.Ci&&sK()?this.j.Ci:Zh&&0<=Ta(Tt,6)||Vh&&0<=Ta(Tt,4)||bd&&BK(xK,2.3)?43:18);b=null!=this.j.aj?this.j.aj:F(this.j.adType.split("_"),"text")?this.D.Au:this.D.gv;a.set("t_pyv",b);HV("min_ad_duration",this.j.gm,a);0<this.j.Bi&&a.set("max_ad_duration",
TV(this.j.Bi,QV(this)));0<this.j.Ki&&a.set("sdmax",TV(this.j.Ki,QV(this)));FV(a,this.G);sK()&&(b=tP(this.j.ng),null!=b&&a.set("video_doc_id","yt_"+b));HV("description_url",this.j.ng,a);sK()&&(HV("lact",BV(this.k),a),HV("loeid",this.j.Kl,a),HV("lsv",this.j.Il,a),this.j.tk||HV("scs","false",a),HV("targeting",this.j.Xm,a),HV("video_cpm",this.j.Jl,a),HV("yt_pt",this.j.tn,a),HV("ytdevice",this.j.pn,a),HV("ytdevicever",this.j.qn,a),HV("dbp",this.j.rn,a),HV("avo",this.j.Ak,a));HV("ms",this.j.A,a);aV(a);
GV(this.k,a,!1);null!=this.k.je&&HV("loc",this.k.je.page_location,a);return a};function SV(a){return ib(PV,function(a){return F(this.j.j,a)},a)}function QV(a){return sK()?1:F(a.j.adType.split("_"),"text")?3:1}function RV(a){a=a.j.channels?a.j.channels:[];yb(a);a=xb(a,0,30);return a.join("+")}function TV(a,b){return Math.round(1.1*(a||0)+0*b)};function UV(a,b){ZU.call(this,a,b)}z(UV,ZU);UV.prototype.A=function(a){var b=new I(this.k.adTagUrl);C(a.Ia(),function(c){A(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};UV.prototype.C=function(){var a=new oe;a.set("sdkv",dV(this));cV(this,a);$U(this,a);aV(a);null!=this.k.oc&&a.set("adk",this.k.oc);return a};function VV(a,b){ZU.call(this,a,b)}z(VV,ZU);VV.prototype.C=function(){return null};
VV.prototype.A=function(){var a=new QS(this.k.adTagUrl),b=dV(this);b&&US(a,"dc_sdkv",[b]);(b=this.B().toString(16))&&US(a,"dc_sdki",[b]);(b=this.o.F)&&US(a,"dc_submodel",[b]);null!=this.k.oc&&US(a,"dc_adk",[this.k.oc]);b=new oe;bV(this,b);cV(this,b);$U(this,b);aV(b);qe(b,"js")&&US(a,"dc_js",[b.get("js")]);qe(b,"msid")&&US(a,"dc_msid",[b.get("msid")]);qe(b,"frm")&&US(a,"dc_frm",[b.get("frm")]);qe(b,"osd")&&(US(a,"osd",[b.get("osd")]),US(a,"dc_osd",[b.get("osd")]));US(a,"dcmt",["text/xml"]);qe(b,"vpa")&&
US(a,"vpa",[b.get("vpa")]);qe(b,"mpt")&&US(a,"mpt",[b.get("mpt")]);qe(b,"mpv")&&US(a,"mpv",[b.get("mpv")]);return a};function WV(a){ZU.call(this,a,null)}z(WV,ZU);WV.prototype.A=function(a){return new I(a.get("adTagUrl"))};WV.prototype.F=function(){return B(this.C().get("adTagUrl"))};WV.prototype.C=function(){var a=new oe;a.set("adTagUrl",this.k.adTagUrl);a.set("adsResponse",this.k.adsResponse);return a};function XV(a){ZU.call(this,a,null)}z(XV,ZU);XV.prototype.A=function(a){return new I(a.get("adTagUrl"))};XV.prototype.C=function(){var a=new oe;a.set("adTagUrl",this.k.adTagUrl);a.set("adsResponse",this.k.adsResponse);return a};function YV(a,b){ZU.call(this,a,b)}z(YV,ZU);YV.prototype.A=function(a){var b=new I(this.k.adTagUrl);C(a.Ia(),function(c){A(a.get(c))?b.j.remove(c):K(b,c,a.get(c))});return b};
YV.prototype.C=function(){var a=new oe;a.set("sdkv",dV(this));a.set("sdki",this.B().toString(16));a.set("correlator",this.o.C);a.set("scor",this.o.j);null!=this.k.oc&&a.set("adk",this.k.oc);bV(this,a);cV(this,a);$U(this,a);aV(a);var b=this.o.k;null!=b&&(this.o.k=null,a.set("fbidx",b));b=this.o.P;null!=b&&a.set("ppid",b);var b="null",c=this.o.A;null!=c?b=c:ZV(this.k.location)?b=this.k.location:ZV(this.k.referrer)&&(b=this.k.referrer);a.set("url",b);b=this.o.F;null!=b&&a.set("submodel",b);b=this.o.D;
null!=b&&(b=$V(b),a.set("ciu_szs",b));a.set("impl","");return a};function ZV(a){if(A(B(a)))return!1;a=new I(a);if(!a.Jb||"http"!=a.Jb&&"https"!=a.Jb)return!1;a=a.mb;return-1==a.indexOf(".")||a.match(/^[\.0-9]*$/)?!1:!0}function $V(a){var b=[];C(a,function(a){0<a.length&&b.push(D(a,function(a){return a.width+"x"+a.height}).join("|"))});return b.join(",")};function aW(a,b,c){ZU.call(this,a,b);this.G=A(B(a.youTubeAdType));a=new eV;a.j=IV(a.j,this.k.youTubeAdType);a.adType=a.j.join("_");a.experimentIds=LV(a.experimentIds,this.k.youTubeExperimentIds);this.j=a;this.D=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),CS(AS(),c))}z(aW,YV);aW.prototype.A=function(a){a=aW.J.A.call(this,a);this.G||bW(this,a);return a};function cW(a){var b=CV(a.k,a.j,a.D);b.set("sdkv",dV(a));b.set("sdki",a.B().toString(16));return b}
function bW(a,b){var c=cW(a),d=D(c.Ia(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});K(b,"afvparams",d.join("&"))};function dW(a,b,c){ZU.call(this,a,b);this.G=A(B(a.youTubeAdType));a=new eV;a.j=IV(a.j,this.k.youTubeAdType);a.adType=a.j.join("_");a.experimentIds=LV(a.experimentIds,this.k.youTubeExperimentIds);this.j=a;this.D=c;A(B(this.j.experimentIds))||(c=this.j.experimentIds.split(","),CS(AS(),c))}z(dW,VV);dW.prototype.A=function(a){a=dW.J.A.call(this,a);this.G||eW(this,a);return a};function fW(a){var b=CV(a.k,a.j,a.D);b.set("sdkv",dV(a));b.set("sdki",a.B().toString(16));return b}
function eW(a,b){var c=fW(a),d=D(c.Ia(),function(a){var b=c.get(a);return a+"="+(null!=b?b:"")});US(b,"afvparams",[za(d.join("&"))])};function gW(a,b){var c;!ZS(a)&&!$S(a)||A(B(a.youTubeAdType))||null==a.adTagUrl||-1==a.adTagUrl.search("afvbase=")?ZS(a)?c=new VV(a,hQ):WS(a)?c=new OV(a,hQ,b):$S(a)?c=new YV(a,hQ):YS(a)?c=new UV(a,hQ):(c=a.adTagUrl,null!=c?(c=df(new I(c)),c=xa(c,".fwmrm.net")):c=!1,c=c?new WV(a):new XV(a)):c=ZS(a)?new dW(a,hQ,b):new aW(a,hQ,b);return c};function hW(a){a=gb(a,function(a){return 0<MT(a)});Bb(a,function(a,c){return MT(a)-MT(c)});return a}function iW(a){return gb(a,function(a){return-1==MT(a)})};function jW(a){this.j=a};function kW(){this.j=0}function lW(a,b,c,d,e,g){var h=x(function(a){d(a,Error(sn(a)))},a),k=x(function(a){6==a?mW(this,b,!1,c,h,e,g):h(a)},a);mW(a,b,!0,c,k,e,g)}
function mW(a,b,c,d,e,g,h){var k=new ao;k.O=c;eo(k,nW(g));var l=new ln,p=x(function(){l.dispose();k.dispose()},a);c=x(function(){e(k.k);p()},a);rn(l,k,"success",function(){var a;try{a=k.j?k.j.responseXML:null}catch(b){a=null}if(null==a){var c=Hn(k);try{a=GB(c)}catch(e){t:if(document.implementation&&document.implementation.createDocument)a=document.implementation.createDocument("","parsererror",null);else{if("undefined"!=typeof ActiveXObject&&(a=HB())){a.appendChild(a.createNode(1,"parsererror",""));
break t}throw Error("Your browser does not support creating new documents");}}}d(a);p()},a);rn(l,k,["error","timeout"],c,a);var t;"POST"==h&&(b=new I(b),t=b.j.toString(),We(b,""),b=b.toString());a.j=y();k.send(rJ(b),h,t)};function oW(a,b,c){var d=null,e=c+b;C(a.A,function(g){if("true"!=g.F.rm||TT(a,hJ)){var h;if(h=g instanceof kT)0==c&&0==b||g instanceof iU?h=!0:(h=g.xc(),h=h.width<=b&&h.height<=c);if(h&&(h=0==c&&0==b?0:c-g.xc().height+b-g.xc().width,"Flash"!=g.getContentType()||JL))if(null==d)d=g,e=h;else if(h==e&&g.j<d.j||h<e)d=g,e=h}else h=sV(a),wJ(CT(a),h),(h=a.o)&&h.adTagUrl&&-1!=h.adTagUrl.indexOf(";afc=1")&&(d=g)});ET(a,d)}
function pW(a){var b=null;C(a.A,function(a){a instanceof fT&&(null===b||a.j<b.j)&&(b=a)});ET(a,b)};function qW(a,b,c,d){this.A=a;this.G=b;this.ads=0<this.A.length?this.A:this.G;this.C=c;this.B=this.I=!0;this.k=-1;this.j=null;this.D=0;this.M=d;this.logger=null}qW.prototype.ad=function(){return null!=this.j&&this.j.ad()?!0:0<this.ads.length&&this.k<this.ads.length-1};function rW(a,b,c){null!=a.j?sW(a,b,c):a.ad()?tW(a,b,x(function(a){this.ad()&&301!=a.getErrorCode()?rW(this,b,c):c(a)},a)):c(new SI("adLoadError","The ad source contains no more ads.",1005))}
qW.prototype.H=function(a,b){return this.B?0<a.length?a:b:xb(b,0,1)};qW.prototype.o=function(a,b,c){var d;if(!(d=null!=a.j)){var e=this.C;d=e.nonLinearAdSlotWidth||0;e=e.nonLinearAdSlotHeight||0;OT(a)&&!a.G?NT(a,"nonlinear")?oW(a,d,e):pW(a):NT(a,"linear")?pW(a):NT(a,"nonlinear")&&oW(a,d,e);d=null!=a.j}d?(this.D++,b(a)):(b=nb(a.A)?hK(TJ):vT(a)?hK(OJ):hK(WJ),d=mV(b,a),wJ(a.P,d),c(b))};
qW.prototype.F=function(a,b,c){var d=this.C.clone();d.adsResponse="";d.adTagUrl=a.Ba;d.oc=WP(d.adTagUrl,d.linearAdSlotWidth,d.linearAdSlotHeight,d.nonLinearAdSlotWidth,d.nonLinearAdSlotHeight,d.ti);uW(this,a,d,b,c)};function vW(a,b,c,d){var e=a.C.clone();e.adsResponse="";e.adTagUrl=b.Ca;uW(a,b,e,c,d)}
function uW(a,b,c,d,e){var g=b.getExtension("LocalRedirect");null!=g&&(g=g.k,null!=g&&(c.adsResponse=g));a.M.o(c,x(function(a){if(a instanceof qW){var c=this.B&&b.va,g=b.wa,p;for(p in a.ads)a.ads[p].k=b;a.B=c;a.ads=a.H(a.A,a.G);a.k=-1;a.I=g;d(a)}else a instanceof jW?e(new SI("adLoadError","Ad source cannot contain playlist response.",2)):e(new SI("adLoadError","Unknown ad source.",2))},a),e)}function wW(a){var b=0;for(a=a.k;null!=a;)a=a.k,b++;return b}
function sW(a,b,c){a.j.ad()?rW(a.j,x(function(a){this.o(a,b,x(function(a){this.ad()?rW(this,b,c):c(a)},this))},a),x(function(a){xW(this.ads[this.k],a);this.j=null;301==a.getErrorCode()?c(a):this.ad()?rW(this,b,c):c(a)},a)):(0==a.j.D&&xW(a.ads[a.k],hK(dK)),a.j=null,rW(a,b,c))}function xW(a,b){1012==b.getErrorCode()&&(b=hK(VJ));var c=mV(b,a);wJ(a.P,c)}
function tW(a,b,c){a.k++;var d=a.ads[a.k];d.G||d.F?d.F?vW(a,d,x(function(a){this.j=a;rW(this,b,c)},a),x(function(a){a=yW(a);xW(d,a);c(a)},a)):4<=wW(d)?(a=hK(XJ,null,"4"),xW(d,a),c(a)):a.I?a.F(d,x(function(a){this.j=a;rW(this,b,c)},a),x(function(a){a=yW(a);xW(d,a);c(a)},a)):c(hK(cK)):a.o(d,b,c)}function yW(a){switch(a.getErrorCode()){case 300:case 301:case 302:case 303:case 200:case 1012:break;default:a=hK(dK)}return a};function zW(a,b,c,d){qW.call(this,[],a,b,c);this.K=d}z(zW,qW);zW.prototype.ad=function(){return null!=this.j&&this.j.ad()?!0:0<this.ads.length&&this.k<this.ads.length-1&&0==this.D};zW.prototype.H=function(a,b){return b};zW.prototype.o=function(a,b,c){var d=-1,d=null==this.j?LT(a):LT(this.ads[this.k]);this.K.k=d;zW.J.o.call(this,a,b,c)};zW.prototype.F=function(a,b,c){this.K.k=-1;zW.J.F.call(this,a,b,c)};function AW(a,b,c,d,e){this.C=a;this.A=b;this.B=c;this.j=d;this.vb=e}AW.prototype.o=function(a,b,c){A(B(a.adsResponse))?$S(a)&&null!=this.j&&!this.j.D?this.j.start(a,x(function(){BW(this,a,b,c)},this)):BW(this,a,b,c):CW(this,a,b,c)};function CW(a,b,c,d){var e;try{e=GB(b.adsResponse)}catch(g){d(hK(LJ,g));return}null!=e?DW(a,e,b,c,d):d(hK(LJ))}
function BW(a,b,c,d){var e;if(e=null!=b.adTagUrl){t:{try{Aa(b.adTagUrl)}catch(g){e=!1;break t}e=!0}e=!e}e?d(hK(FJ,null,b.adTagUrl)):tK.A?eR(cR(),x(a.k,a,b,c,d)):a.k(b,c,d)}
AW.prototype.k=function(a,b,c,d){var e=gW(a,this.B).F(),e=vJ(e,d,!0);d=a.ah&&pJ(oJ,e)?"POST":"GET";lW(this.A,e,x(function(d){DW(this,d,a,b,c)},this),x(function(b,d){var e;e=8==b?hK(SJ):5==b||6==b?hK(AJ):hK(EJ,d);c(e);e="third_party";WS(a)?e="adsense":ZS(a)?e="dart":$S(a)&&(e="xfp");e={rt:e,ec:b};GK(FK.getInstance(),18,e,!0)},this),this.vb,d);EW(a)};function EW(a){var b="third_party";WS(a)?b="adsense":ZS(a)?b="dart":$S(a)?b="xfp":YS(a)&&(b="dbm");a={rt:b};GK(FK.getInstance(),17,a,!0)}
function DW(a,b,c,d,e){var g;try{var h=XU(b,c);if(!h)throw hK(LJ);g=h.o();FW(a,g,c,d)}catch(k){k instanceof SI?e(k):e(hK(MJ,k))}}function FW(a,b,c,d){var e=b.j;if(null!=e)d(new jW(e));else{var g=b.o;if(null==g)throw hK(QJ);C(g,function(a){a.o=c;a.ja=this.A.j;sK()&&(a.ta=b.k)},a);e=hW(g);g=iW(g);0<g.length&&0<=LT(g[0])?d(new zW(g,c,a,a.C)):d(new qW(e,g,c,a))}};function GW(){this.j=8E3+y()}function nW(a){var b=y();a=a.j-b;return 0<a?a:0};function HW(a,b){this.j=a;this.k=b;tK.j&&hO().init();var c;t:{try{c=window.top.location.href}catch(d){c=2;break t}c=null!=c?c==window.document.location.href?0:1:2}hQ.G=c}function IW(a,b,c,d){var e=null;null!=a.j&&(e=new XQ(1E3,a.j,a.k));(new AW(a.k,new kW,a.j,e,new GW)).o(b,x(function(a){a instanceof jW?c(a):JW(this,a,c,d)},a),d)}
function JW(a,b,c,d){var e=[],g=x(function(a,b){a.ad()?rW(a,x(function(b){e.push(b);g(a,null)},this),x(function(b){301==b.getErrorCode()?d(hK(SJ)):g(a,b)},this)):0<e.length?c(e):(null==b&&(b=hK(IJ)),1012==b.getErrorCode()&&(b=hK(VJ)),d(b))},a);g(b,null)};function KW(a){this.k=a;this.j=new Mo}function LW(a,b,c,d){var e=x(function(a){c(a);Po(this.j);MW(this)},a),g=x(function(a){d(a);Po(this.j);MW(this)},a);Oo(a.j,x(function(){IW(this.k,b,e,g)},a));MW(a)}function MW(a){1==a.j.Na()?(a=a.j,No(a),a=cb(a.j),null!=a&&a()):a.j.Na()};function NW(a,b,c){U.call(this);this.A=new KW(new HW(b,c));this.k=b;this.j=!0;this.o=c}z(NW,U);function OW(a,b,c){if(a.j){var d=null!=c?c:{};VQ.getInstance().end("rtr");VQ.getInstance().start("vl");LW(a.A,b,x(function(a){PW(this,a,d)},a),x(function(a){QW(this,a,d)},a))}}function RW(a,b,c){if(!a.j){var d=null!=c?c:{};LW(a.A,b,x(function(a){PW(this,a,d)},a),x(function(a){QW(this,a,d)},a))}}
function PW(a,b,c){if(a.j)b instanceof jW?(b=new SW(b.j,a),b.C=a.k,a.U(new TW(b,c))):(b=UW(b),b.C=a.k,null!=b?(a.U(new TW(b,c)),VQ.getInstance().end("vl")):QW(a,hK(OJ,null),c));else if(b instanceof jW)QW(a,hK(zJ,null,"Unsupported ad format."),c);else{var d=new UQ("adsLoaderSdkAdLoaded");d.C=b;d.B=c;a.U(d)}}function QW(a,b,c){a.j?("always"==tK.k&&null!=a.k&&FQ(a.k,CQ()),a.U(new TI(b,c))):(c=new UQ("adsLoaderSdkAdError"),c.o=b,a.U(c))};var VW={NORMAL:"normal",FULLSCREEN:"fullscreen"};function WW(){return'<div class="close-padding"><div class="close-button"></div></div>'}function XW(){return'<div class="recall-button"></div>'}function YW(a){return'<a target="_blank" href="'+UO(a.url)+'" class="attribution-button">'+UO(a.text)+"</a>"};function ZW(a,b){this.G=a;this.j=H("div",{"class":"controls"});this.P=b||u;this.Nc=new ln(this)}z(ZW,Q);f=ZW.prototype;f.gd=!1;f.Ep=1E3;f.rq=30;f.sq=45E3;f.Jr=15E3;f.Is=!1;function $W(a){var b=H("div",{"class":"container"});yw(b,"opacity 0.4s");a.Nc.listen(b,"mouseover",a.Py);a.Nc.listen(b,"mouseout",a.ID);b.appendChild(a.j);return b}f.Lk=function(){var a=$W(this);this.j.appendChild(this.G);this.display(this.G);this.play();return a};f.N=function(){null==this.I&&(this.I=this.Lk());return this.I};
f.play=function(){null==this.k&&(this.k=fn(function(){this.gd||(this.hide(),this.Is=!0);this.k=null},this.Is?this.Jr:this.sq,this))};f.stop=function(){null!=this.k&&(gn(this.k),this.k=null)};f.display=function(a){var b=document.createEvent("Event");b.initEvent("creativeview",!0,!0);a.dispatchEvent(b)};f.show=function(){Sg(this.N(),1);null!=this.o&&(gn(this.o),this.o=null)};f.hide=function(){Sg(this.N(),this.rq/100);null==this.o&&(this.o=fn(function(){this.P();this.o=null},400,this))};
f.Py=function(){this.show();this.gd=!0;this.C=fn(function(){this.gd&&this.stop();this.C=null},this.Ep,this)};f.ID=function(){null!=this.C&&(gn(this.C),this.C=null);this.gd&&this.play();this.gd=!1};f.L=function(){ZW.J.L.call(this);this.stop();S(this.Nc)};function aX(a,b){this.H=a;this.M=new oe;this.K=15E3;this.D=H("span");ZW.call(this,a[0],b);this.j.appendChild(this.D)}z(aX,ZW);
aX.prototype.Lk=function(){var a=$W(this);N(a,"container-rotator");this.F=H("div");this.j.appendChild(this.F);C(this.H,function(a,c){N(a,"container-highlight");var d=63/this.H.length*(c+.5)-5,e=H("div",{id:Wa(),"class":"container-selector"});e.style.top=d+"px";this.Nc.listen(e,"click",function(a){bX(this,a.target)});this.M.set(e.id,a);this.D.appendChild(e)},this);bX(this,Od(this.D));this.play();return a};
aX.prototype.play=function(){null==this.A&&(this.A=new dn(this.K),this.Nc.listen(this.A,"tick",this.O));aX.J.play.call(this);this.A.start()};aX.prototype.stop=function(){null!=this.A&&this.A.stop();aX.J.stop.call(this)};aX.prototype.O=function(){var a=this.B;bX(this,(void 0!=a.nextElementSibling?a.nextElementSibling:Pd(a.nextSibling))||Od(this.B.parentNode))};function bX(a,b){a.B&&gh(a.B,"container-active");N(b,"container-active");var c=a.M.get(b.id);Md(c,a.F);a.B=b;a.F=c;a.display(c)};function cX(a,b){ZW.call(this,a[0],b);this.A=a;N(this.j,"container-stack")}z(cX,ZW);cX.prototype.hide=u;cX.prototype.Lk=function(){var a=$W(this);C(this.A,function(a){N(a,"container-highlight");this.j.appendChild(a);this.display(a)},this);this.play();return a};function dX(){Q.call(this);this.D="";this.k=new HR;this.o=new oe;this.A=[];this.F=!1;this.j={};this.C=-1;this.B=[]}z(dX,Q);function eX(a,b){if(tK.j){var c=lO(hO(),b.type,a.D);a.G(b.type,c)}else fR(cR(),b.type,a.D,x(a.G,a,b.type))}
dX.prototype.G=function(a,b,c){null!=b&&vV(this.j,b);if("impression"==a&&!this.F&&null!=this.A&&0<this.A.length){var d=F(this.B,"impression");fX(this,this.A,"",d);this.F=!0}t:switch(a){case "click":d=!0;break t;case "complete":d=!qe(this.o,a)&&!qe(this.o,"skip");break t;default:d=!qe(this.o,a)}if(d){var d=F(this.B,a),e=OR(this.k,a);0<e.length&&(fX(this,e,b,d,c),this.o.set(a,!0))}};function gX(a,b){null!=b&&C(b,function(a){F(this.B,a)||this.B.push(a)},a)}
function fX(a,b,c,d,e){C(b,function(a){tJ(a,this.j,c,d,e)},a)};function hX(a){U.call(this);this.ads=a;this.G=null;this.I="normal";this.A=this.volume=null;this.k=new JK;this.ga=!1;this.content={};this.B=new dX;this.O=!1;C(a,function(){});C(a,function(b,c){var d=b.B;d.o=a.length;var e=c+1;d.j=e;d.A=e})}z(hX,U);function iX(a){if(jX(a)){if(xT(a.G)&&!EK())throw jK(GJ,null,"skippablevideo");return a.G}throw jK(CJ,null,"An ad has not been selected.");}function jX(a){return null!==a.G}f=hX.prototype;
f.Rg=function(){var a=eb(this.ads,this.G);-1!=a&&++a<this.ads.length?this.G=this.ads[a]:this.G=null};f.Vr=function(){if(!jX(this)){if(nb(this.ads))throw jK(OJ);this.G=this.ads[0];if(null==this.G.j)throw hK(OJ);}};f.qa=function(a){jX(this)?this.U(new WI(a,iX(this))):this.U(new WI(a,null))};function kX(a){null==a.F&&(a.F=new ln(a));return a.F}function lX(a,b){if(null!=a.C&&(pn(kX(a),a.C,"companion_display_error",function(){}),FQ(a.C,b),!a.C.uo()))throw jK(DJ);}
f.destroy=function(){tK.j&&(hO().B=null);this.dispose()};f.L=function(){jX(this)&&(ET(this.G,null),this.G=null);S(this.F);this.F=null;S(this.C);this.C=null;this.O=!1;hX.J.L.call(this)};f.ze=function(){return[]};f.getCurrentAd=function(){return this.ads[0]};f.init=function(a){mX(this);this.zi(a);this.ga=!0;this.Ti()};f.Ti=function(){this.qa("loaded")};f.sendImpressionUrls=function(a){jX(this)&&sK()&&wJ(CT(iX(this)),a)};f.Hm=function(){};
f.Jc=function(a,b,c){if(!this.O){if(null==a)throw jK(HJ,null,"displayContainer");if(null!=c){var d=new Yj(Rb(this.k));if(!xe(Rb(c),d.contains,d))throw jK(HJ,null,"opt_adsRenderingSettings should be instance of AdsRenderingSettings");d=this.k;if(null==c.bitrate||0>=c.bitrate)c.bitrate=-1;null==c.mimeTypes&&(c.mimeTypes=[]);nX(c.mimeTypes);ha(c.loadVideoTimeout)||(c.loadVideoTimeout=15E3);dc(d,c)}this.content=b;this.A=a;this.Vr();tK.j&&(a=hO(),b=x(this.Kp,this),a.B=b);this.O=!0}};
f.Gf=function(a){C(CT(a),function(a){pb(this.B.A,a)},this)};f.Ie=function(a,b){C(b,function(b){b=dT(a,b);KR(this.B.k,b)},this)};f.gj=function(a){if(a instanceof fT){var b=gT(a);C(b.Ia(),function(a){var d=b.get(a);C(d,function(b){MR(this.B.k,a,b)},this)},this)}};function oX(a,b){eX(a.B,new Zl(b))}f.Xb=function(a){eX(this.B,new Zl(a));this.qa(a)};f.getRemainingTime=function(){return-1};f.Ag=u;f.pause=function(){};f.resume=function(){};f.skip=function(){};
f.start=function(){mX(this);if(!this.ga)throw hK(CJ,null,"Must call init before start.");};f.stop=function(){this.destroy()};f.Kp=function(){return null!=this.volume?this.volume:0};f.setVolume=function(a){(isNaN(a)||0>a||1<a)&&lK(this,HJ,null,"volume",String(a));this.volume=a};f.zi=function(a){if(!Pb(VW,a))throw jK(HJ,null,"view mode",a);this.I=a};f.setMediaUrl=function(){};function mX(a){if(!a.O)throw jK(CJ,null,"Ads manager is not correctly configured.");}f.getMediaUrl=function(){return null};
f.Lp=function(){return null};f.gf=function(){return null};function nX(a){if(!fa(a))throw jK(CJ,null,"adsRenderingSettings.mimeTypes should be an array");var b=tb(Qb(jJ),Qb(eJ));C(a,function(a){if(!F(b,a))throw jK(CJ,null,"Invalid or unsuppoted mime type "+a);})};function pX(a){hX.call(this,a);this.o=null;this.V=H("div",{style:"display:none;position:absolute;top:0;left:0;bottom:0;right:0;z-index:2000"});this.M=!1;this.P=[]}z(pX,hX);f=pX.prototype;f.start=function(){pX.J.start.call(this);this.A.tj();this.o=this.A.lf();if(null!=this.o){Kd(this.o);var a=this.Ck();tK.j?kO(hO(),a):dR(cR(),a);this.o.appendChild(a);qX(this);C(this.P,function(a){a()});ob(this.P);this.M=!0;this.qa("start")}};f.Ag=function(){pX.J.Ag.call(this);qX(this)};
f.L=function(){S(this.j);this.A=this.j=null;this.M=!1;tK.j?hO().o=null:cR().o=null;null!=this.o&&(Kd(this.o),this.o=null);pX.J.L.call(this)};function rX(a,b){var c=sT(b);C(c,function(a){MR(this.B.k,"click",a)},a)}
f.Ck=function(){var a=FT(iX(this));if(null==a)throw a=jK(OJ),sX(this,a),a;lT(a,kX(this));mT(a,this.Bx);try{lX(this,iX(this))}catch(b){throw sX(this,b),b;}var c=iX(this),d=sV(c);this.B.j=d;c.j&&(this.Gf(c),(c=c.j)&&this.Ie(c,VI));rX(this,a);this.M?this.Xb("impression"):this.P.push(x(this.Xb,this,"impression"));return tX(this,[a.se()])};f.Mp=function(a,b){return new ZW(a[0],b)};
function tX(a,b){null!=a.j&&a.j.stop();a.j=a.Mp(b,x(a.Wo,a));var c=a.j.N();if(tK.j){var d=H("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-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.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%}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;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%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttributionContainer{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiAttributionContainer-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiAttribution{display:inline-block;opacity:.9}.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}.videoAdUiAttributionIconContainer:hover .videoAdUiAdInfoPopup{display:inline-block}.videoAdUiAdInfoPopup{background:white;border:1px solid black;box-sizing:border-box;color:black;display:none;font-size:12px;left:-15px;padding:7px;position:absolute;text-align:left;text-shadow:none;bottom:20px;width:211px}.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}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;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}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}.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.k.wo);O(c,"viewmode-fullscreen","fullscreen"==a.I);c.appendChild(a.V);kX(a).listen(c,"click",$l);(jX(a)&&OT(iX(a))||a.k.useStyledNonLinearAds)&&a.wk(a.j.j);return c}f.wk=function(a){var b=kX(this);this.T=PO(XW);b.listen(this.T,"click",this.ty);var c=PO(WW);b.listen(c,"click",this.tl);a.appendChild(c)};function qX(a){if(null!=a.j){var b=Pg(a.A.lf()),c=Pg(Od(a.j.j));if(c.width>b.width||c.height>b.height)throw b=jK(JJ,null),sX(a,b),a.stop(),b;}}
function sX(a,b){var c=mV(b,iX(a)),d=BT(iX(a));wJ(d,c)}f.Bx=function(a){this.Xb("click");$l(a)};f.tl=function(){this.Wo();this.qa("userClose");oX(this,"close")};f.Wo=function(){this.j.stop();var a=FT(iX(this));null!=a&&oT(a);Md(this.T,this.j.j)};f.ty=function(a){$l(a);this.j.show();this.j.play();Md(this.j.j,this.T);fn(function(){Tg(this.V,!1)},500,this);Tg(this.V,!0)};function uX(a){pX.call(this,a);this.D=!1;this.K=this.W=null;nb(a)||null==a[0].o||(this.W=a[0].o,kf(new I(this.W.adTagUrl),"channel"))}z(uX,pX);f=uX.prototype;f.Mp=function(a,b){if(this.D||null==b)b=u;var c;sK()&&this.D?c=new ZW(a[0],b):"fullscreen"==this.I?c=new cX(a):1<a.length?(c=new aX(a),c.K=15E3):c=new ZW(a[0],b);c.Ep=100;this.D&&(c.rq=30);c.sq=45E3;c.Jr=6E3;O(c.j,"scalable",this.D);O(c.N(),"yt-text-overlay",sK()&&this.D);return c};
f.dD=function(a){var b=a.j;null!=b?(null==this.S&&(this.S=a.getExtension("AdSense").C),nT(b,ra(this.Ty,a,b)),mT(b,ra(this.Cx,a,b)),b.la=!1,"Text"==b.getContentType()&&(this.D=!0),this.K.push(b)):(b=hK(OJ),b=mV(b,a),wJ(BT(a),b))};f.Jc=function(a,b,c){uX.J.Jc.call(this,a,b,c);this.k.wo=!0;null!=this.ads[0]&&0<MQ(this.ads[0]).length?lX(this,this.ads[0]):sK()&&this.qa("companionBackfill")};
f.Ck=function(){null==this.K&&(this.K=[],C(this.ads,this.dD,this));if(0==this.K.length)throw jK(OJ);var a=[];C(this.K,function(b){lT(b,kX(this));"Flash"!=b.getContentType()||b.getAd().getExtension("TemplateAd")||(b.Co=!0);a.push(b.se());rT(b,this.S.o)},this);if(0==a.length)throw jK(OJ);return tX(this,a)};f.tl=function(a){uX.J.tl.call(this,a);C(this.K,function(a){var c=sV(a.getAd());this.B.j=c;this.Ie(a,["close"]);oX(this,"close");this.B=new dX},this)};
f.wk=function(a){uX.J.wk.call(this,a);var b=this.ads[0].getExtension("AdSense"),c=b.A,b=b.B,c=PO(YW,{text:null!=c?c:this.S.j,url:null!=b?b:this.S.k});a.appendChild(c)};f.Ty=function(a,b){this.M?this.Mr(a,b):this.P.push(x(this.Mr,this,a,b));nT(b,u)};f.Mr=function(a,b){var c=sV(a);this.B.j=c;this.Gf(a);this.Ie(b,["creativeview"]);oX(this,"impression");oX(this,"creativeview");this.B=new dX};
f.Cx=function(a,b,c){c=Lg(c);a=a.getExtension("AdSense");a=new I(a.k);var d=b.fd();isNaN(d)&&(d=Og(b.se()).width);var e=b.getHeight();isNaN(e)&&(e=Og(b.se()).height);b=AS();b=["0","aw="+d,"ah="+e,"nx="+c.x,"ny="+c.y,"viewMode="+this.I,"sdkv=h.0.0.0","eids="+ES(b)];b=xJ(a,"elementclick",b);tJ(b);this.qa("click")};f.zi=function(a){this.I!=a&&(uX.J.zi.call(this,a),null!=this.o&&(Kd(this.o),a=this.Ck(),this.o.appendChild(a)),this.qa("expandedChanged"))};function vX(a){WI.call(this,"adMetadata",a)}z(vX,WI);var wX={};q("adsense.mobileads.afmanotify.receiveMessage",function(a,b){if(wX.hasOwnProperty(a))for(var c=wX[a],d=0;d<c.length;++d){var e=c[d];e.callback.call(e.object,a,b)}},void 0);new oe;function xX(a,b,c){var d=u,e;DS(947225)?(e=new I("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")):e=new I("https://gdata.youtube.com/feeds/api/videos/"+a);null!=c&&(b=x(b,c),d=x(d,c));yX(new ao,e,b,d)}
function zX(a,b,c){var d=u,e;DS(947225)?(e=new I("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")):e=new I("https://gdata.youtube.com/feeds/api/channels/"+a);null!=c&&(b=x(b,c),d=x(d,c));yX(new ao,e,b,d)}
function yX(a,b,c,d){AX(b);eo(a,2E3);var e=new ln(a);pn(e,a,"success",function(a){a=a.target;var b;b=a.j?dg(a.j.responseText):void 0;c(b||{});e.dispose();a.dispose()});pn(e,a,["error","timeout"],function(a){a=a.target;var b=null;0!=a.k&&(b=Error(sn(a.k)));d(b);e.dispose();a.dispose()});a.send(b)}function AX(a){DS(947225)?K(a,"key","AIzaSyDykhSj35yFHOiDglTp-ZuD9HCUQf62oS0"):(K(a,"alt","json"),K(a,"v","2"))};function BX(a,b,c,d,e){Lv.call(this);this.k=a;this.B=b;this.C=c;this.o=d;this.D=fa(e)?e:[e]}z(BX,Lv);f=BX.prototype;f.play=function(){if(this.ub())return!1;this.Oi();this.uc("play");this.startTime=y();this.j=1;if(Aw())return wg(this.k,this.C),this.A=fn(this.ux,void 0,this),!0;this.Um(!1);return!1};f.ux=function(){Pg(this.k);yw(this.k,this.D);wg(this.k,this.o);this.A=fn(x(this.Um,this,!1),1E3*this.B)};f.stop=function(){this.ub()&&this.Um(!0)};
f.Um=function(a){zw(this.k,"");gn(this.A);wg(this.k,this.o);this.endTime=y();this.j=0;if(a)this.onStop();else this.Zb();this.Lg()};f.L=function(){this.stop();BX.J.L.call(this)};f.pause=function(){};function CX(a,b,c,d){return new BX(a,.5,{opacity:c},{opacity:d},{property:"opacity",duration:.5,timing:b,No:0})};function DX(a,b){U.call(this);this.o=a;this.M=0;this.G=!1;this.k=1;this.j=this.T=this.I=this.O=this.A=null;this.B=new ln(this);this.S=!1;this.W=this.V=this.P=0;this.C=this.F=this.D=null;this.K=!1;this.H=new sO;this.o.D&&(this.B.listen(b,"touchstart",this.ez),this.B.listen(b,"touchmove",this.dz),this.B.listen(b,"touchend",this.cz));this.A=PO(oP);this.O=wd("videoAdUiPreSkipButton",this.A);this.I=wd("videoAdUiPreSkipText",this.O);this.T=wd("videoAdUiPreSkipThumbnail",this.O);Ud(this.I,pP({Ks:EX(this)}));
var c=this.o.Ha,c=(A(B(c))?null:"//i1.ytimg.com/vi/"+c+"/mqdefault.jpg")||"";if(this.o.showContentThumbnail&&!A(B(c))){var d=Gd("img");d.setAttribute("src",c);N(d,"videoAdUiPreSkipThumbnailImage");this.T.appendChild(d)}else N(this.I,"videoAdUiPreSkipTextOnly");this.o.D?c="\u00ab Swipe to Skip":(c="",d=ta("Skip Ad \u00bb"),c=c+d,d=new RegExp(Pa("\u00bb"),""),c=c.replace(d,""),c=ya(c));this.j=PO(qP,{xD:c});Tg(this.A,!1);b.appendChild(this.A);Tg(this.j,!1);Sg(this.j,0);b.appendChild(this.j);this.B.listen(this.H,
"click",this.vD);tO(this.H,this.j)}z(DX,U);f=DX.prototype;f.L=function(){null!=this.D&&(this.D.dispose(),this.D=null);null!=this.F&&(this.F.dispose(),this.F=null);FX(this);null!=this.A&&(Ld(this.A),this.A=null);null!=this.j&&(Ld(this.j),this.j=null);this.H.dispose();this.H=null;this.B.dispose();this.B=null;this.K=!1;DX.J.L.call(this)};
f.update=function(a,b){this.M=b;if(!(0>=this.M||null==this.o.skipOffset||0>FR(this.o.skipOffset))){var c=FR(this.o.skipOffset);c>=this.M||3==this.k||(0>a?this.k=1:a<=c?(2!=this.k&&(GX(this,0),CX(this.A,"ease-out",0,1).play(),Tg(this.A,!0)),this.k=2):(3!=this.k&&(Tg(this.j,!0),this.F=new BX(this.A,.5,{opacity:1,visibility:"shown"},{opacity:.9,visibility:"hidden"},{property:"opacity",duration:.5,timing:"ease-out",No:0}),this.D=CX(this.j,"ease-out",0,1),this.F.play(),this.D.play(),this.B.listen(Rd(this.j),
"mouseover",this.aD),this.B.listen(Rd(this.j),"mouseout",this.as),this.as()),this.k=3,this.U("skipshown")))}2==this.k&&GX(this,a)};f.skip=function(){return null==this.o.skipOffset||3!=this.k||this.G?!1:(this.G=!0,this.U("PUBLISHER_INVOKED_SKIP"),!0)};f.ez=function(a){var b=a.j;3==this.k&&1==b.touches.length&&(this.S=!0,this.W=b.touches[0].pageX,a.preventDefault())};
f.dz=function(a){var b=a.j;3==this.k&&1==b.touches.length&&this.S&&(b=b.touches[0].pageX,this.P=this.V-b,this.V=b,b=this.W-b,0<b&&(this.j.style.right=b+"px"),a.preventDefault())};f.cz=function(){this.S=!1;if(3==this.k){var a=Og(Rd(this.j));if(parseInt(this.j.style.right,10)+4*this.P>.25*a.width&&0<this.P){Tg(this.j,!1);this.G=!0;this.U("skip");return}}this.j.style.right=0};function EX(a){return null!=a.o.skipOffset&&-1!=FR(a.o.skipOffset)?FR(a.o.skipOffset):-1}
function GX(a,b){var c=EX(a);if(!(0>c)){var c=Math.round(c-b),d=" "+c;60<=c&&(d=" "+zR(c));c=pP({Ks:d});Ud(a.I,c)}}f.vD=function(a){sK()||a.stopPropagation();3!=this.k||this.G||(this.G=!0,this.U("skip"))};f.as=function(){null==this.C&&(this.C=fn(function(){this.K=!0;CX(this.j,"ease-in",1,.5).play();this.C=null},this.K?5E3:15E3,this))};f.aD=function(){Sg(this.j,1);FX(this)};function FX(a){null!=a.C&&(gn(a.C),a.C=null)};function HX(a,b,c){U.call(this);this.j=a;this.W=c;this.S=this.M=this.K=this.F=this.D=this.O=this.P=this.k=null;this.V=!1;this.G=this.A=this.C=this.T=this.I=this.H=this.B=null;this.o=new ln(this);this.da=[];this.k=PO(this.j.C,{xd:this.j.xd,zf:this.j.zf,Lh:this.j.Lh});this.o.listen(this.k,"touchmove",this.Xy);this.I=wd("videoAdUiProgress",this.k);this.T=wd("videoAdUiBuffer",this.k);this.P=wd("videoAdUiAttributionContainer",this.k);this.O=wd("videoAdUiAttribution",this.k);this.D=wd("videoAdUiAuthorIcon",
this.k);this.F=wd("videoAdUiAuthorName",this.k);this.K=wd("videoAdUiLearnMore",this.k);this.M=wd("videoAdUiLearnMoreText",this.k);this.G=wd("videoAdUiShare",this.k);this.B=wd("videoAdUiTitle",this.k);this.H=wd("videoAdUiTopBar",this.k);this.S=wd("videoAdUiBottomBar",this.k);null!=this.D&&this.o.listen(this.D,"click",this.Cw);null!=this.F&&this.o.listen(this.F,"click",this.Dw);null!=this.K&&this.o.listen(this.K,"click",this.hq);null!=this.M&&this.o.listen(this.M,"click",this.hq);null!=this.G&&this.o.listen(this.G,
"click",this.pD);null!=this.B&&this.o.listen(this.B,"click",this.FD);null!=this.H&&this.o.listen(this.k,"mouseover",this.oD);null!=this.j.skipOffset&&(this.A=new DX(this.j,this.k),this.A.pj(this));400>=(parseInt(Ag(b,"width"),10)||b.width)&&N(this.k,"videoAdUi-mobile");this.j.F&&(N(this.k,"blazer"),window.settings&&window.settings.isTablet?N(this.k,"tablet"):N(this.k,"phone"));this.j.D&&N(this.k,"videoAdUi-swipeable");Tg(this.k,!1);b.appendChild(this.k);this.j.o||(this.C=H("div",{style:"width:100%;height:100%"}),
this.k.appendChild(this.C));IX(this)}z(HX,U);f=HX.prototype;f.show=function(){null!=this.k&&Tg(this.k,!0)};f.skip=function(){var a;if(a=null!=this.A)a=this.A,a=null!=a.o.skipOffset&&3==a.k;return a?this.A.skip():!1};f.L=function(){null!=this.k&&(Ld(this.k),this.k=null);null!=this.A&&(this.A.dispose(),this.A=null);this.C=null;this.o.dispose();this.o=null;this.V=!1;HX.J.L.call(this)};
f.update=function(a,b,c,d,e){this.V=!0;null!=this.k&&(null!=this.O&&JX(this,a,c,d,e),null!=this.I&&Ng(this.I,a/c*100+"%"),null!=this.T&&Ng(this.T,b/c*100+"%"),0<c&&null!=this.j.skipOffset&&null!=this.A&&(GR(this.j.skipOffset,c),this.A.update(a,c)),this.j.B&&0<c&&5>c-a&&N(this.H,"videoAdUiTopBarNoFade"),C(this.da,function(b){b.update(a,c)},this))};function KX(a,b){a.da=b;C(b,function(a){a.display(this.k)},a)}
function IX(a){var b=a.j.M&&(a.W>a.j.T||0==a.W),c=b&&a.j.O,d=b&&a.j.S,e=b&&a.j.k,g=b&&a.j.K,b=b&&a.j.B,h=a.j.I&&a.j.j,k="0px";null!=a.B&&(Tg(a.B,b),null!=a.D&&Tg(a.D,c),null!=a.F&&Tg(a.F,d),null!=a.K&&Tg(a.K,e),null!=a.G&&(Tg(a.G,g),g&&a.U("videoShareShown")),null!=a.H&&Tg(a.H,b||c||d||e));null!=a.P&&LX(a);null!=a.I&&(Tg(a.I,h),h&&(k=Ag(a.I,"height")));null!=a.S&&wg(a.S,"bottom",k);null!=a.M&&Tg(a.M,a.j.o)}
function JX(a,b,c,d,e){var g=rP({Aj:"",Jh:0,Cj:0});a.j.j&&a.j.H&&(b=zR(c-b),g=rP({Aj:a.j.F?" \u2022 "+b:": ("+b+")",Jh:d,Cj:e}));Ud(a.O,g);LX(a)}function LX(a){Tg(a.P,a.j.A&&(!a.j.j||a.V))}f.Cw=function(){this.U("videoAuthorIconClicked")};f.Dw=function(){this.U("videoAuthorClicked")};f.hq=function(){this.U("videoLearnMoreClicked")};f.pD=function(){this.U("videoShareClicked")};f.FD=function(){this.U("videoTitleClicked")};f.Xy=function(a){a.preventDefault()};
f.Fs=function(){this.j.G?this.U("click"):this.U("videoClicked")};f.oD=function(){N(this.H,"videoAdUiTopBarTransitions")};function MX(){this.xd=rP({Aj:"",Jh:0,Cj:0});var a="",b=ta("Learn More {$suffix}",{suffix:UO("")});this.zf=a+b;var b=VO('<a href="https://www.google.com/settings/ads/onweb">'),c=VO("</a>"),a="",b=ta("Visit Google's {$beginFormat}Ad Settings{$endFormat} to learn more about how ads are targeted or to opt out of personalized ads.",{beginFormat:UO(b),endFormat:UO(c)});this.Lh=VO(a+b);this.skipOffset=null;this.T=6E3;this.H=this.j=this.G=this.A=!0;this.K=this.I=this.k=!1;this.M=!0;this.B=this.S=this.O=this.P=
this.o=!1;this.C=null;this.D=cm&&DS(0);this.showContentThumbnail=!0;this.F=!1}function NX(a,b,c,d){var e=new MX;e.o=a;e.X=b;e.skipOffset=c;e.Ha=null!=d?d.contentId:null;e.C=lP;e.Ua=vP(b,null!=c,d.baseYouTubeUrl);e.showContentThumbnail=null!=d.contentId&&d.showContentThumbnail;return e};function OX(a){Zl.call(this,a)}z(OX,Zl);function PX(a){U.call(this);this.B=a;this.H=new oe;this.F=-1;this.I=!1}z(PX,U);function QX(a){this.k=!1;this.j=a.Cg();this.volume=a.ed()}QX.prototype.muted=function(a,b){return!this.j&&a||0<this.volume&&0==b};f=PX.prototype;f.L=function(){RX(this);PX.J.L.call(this)};function RX(a){null!=a.k&&a.k.dispose();null!=a.j&&a.j.rf();null!=a.C&&a.C.dispose();a.C=null;null!=a.D&&a.D.dispose();a.D=null;a.H.clear();a.F=-1;a.I=!1}
function SX(a,b,c){if(!c||null==a.H.get(b)){a.H.set(b,!0);t:{if(a.o&&a.o.j.k){if("click"==b)break t;"videoLearnMoreClicked"==b&&eX(a.B,new Zl("click"))}eX(a.B,new Zl(b))}a.U(b)}}f.nB=function(){SX(this,"measurable_impression",!1)};f.FC=function(a){a=a.o;a=vV(this.B.j,null!=a?a.viewabilityString:null);this.B.j=a;SX(this,"viewable_impression",!1)};
f.oz=function(){var a=this.j.bd();if(-1!=a){this.j.lg(.25*a)&&SX(this,"firstquartile",!0);this.j.lg(.5*a)&&SX(this,"midpoint",!0);this.j.lg(.75*a)&&SX(this,"thirdquartile",!0);var b=this.B,c=this.j.getCurrentTime();0>b.C&&(NR(b.k,a),b.C=0);for(var a=LR(b.k,"progress"),d=b.C;d<a.length;d++){var e=a[d];if(FR(e.k)>c)break;b.C=d+1;tJ(e.j,b.j)}}TX(this)};function TX(a){0>a.F||a.I||!a.j.lg(a.F)&&!a.j.Be()||(a.I=!0,SX(a,"engagedview",!0),a.U(new OX("viewCount")))}
f.nz=function(){SX(this,"impression",!0);SX(this,"creativeview",!0);null!=this.G||null!=this.o||this.k.listen(this.j,"click",this.Ml);null!=this.G&&(this.C=new sO,this.k.listen(this.C,"click",this.Ml,!1),tO(this.C,this.G));null!=this.o&&(this.D=new sO,this.k.listen(this.D,"click",this.Ml,!1),tO(this.D,this.o));SX(this,"start",!0);(this.j.Cg()||0==this.j.ed())&&SX(this,"mute",!1)};
f.pz=function(){var a=this.j.Cg(),b=this.j.ed(),c=this.A;c.j&&!a||!a&&0==c.volume&&0<b?SX(this,"unmute",!1):this.A.muted(a,b)&&SX(this,"mute",!1);this.A.j=a;this.A.volume=b};f.lz=function(){this.j.Be()?(TX(this),SX(this,"complete",!0)):this.j.Dg()&&!this.j.Pp()&&(this.A.k=!0,SX(this,"pause",!1))};f.mz=function(){this.A.k&&(this.A.k=!1,SX(this,"resume",!1))};f.hz=function(){TX(this);SX(this,"complete",!0)};f.Ml=function(){SX(this,"click",!1)};f.iz=function(){SX(this,"error",!1)};
f.kz=function(){SX(this,"mediaLoadTimeout",!1)};f.ur=function(){SX(this,"skipshown",!0)};f.pC=function(){SX(this,"videoAuthorIconClicked",!1)};f.oC=function(){SX(this,"videoAuthorClicked",!1)};f.rC=function(){SX(this,"videoClicked",!1)};f.xC=function(){SX(this,"videoLearnMoreClicked",!1)};f.BC=function(){SX(this,"videoShareClicked",!1)};f.CC=function(){SX(this,"videoShareShown",!0)};f.EC=function(){SX(this,"videoTitleClicked",!1)};f.Xp=function(){SX(this,"skip",!0)};
f.CB=function(){SX(this,"skip",!0)};f.jz=function(){SX(this,"fullscreen",!1)};f.UA=function(){SX(this,"exitfullscreen",!1)};function UX(a){hX.call(this,a);this.o=null;this.D=new PX(this.B);this.S=this.V=this.T=this.M=!1;this.P=1;this.K=null}z(UX,hX);f=UX.prototype;f.L=function(){VX(this);var a=!1;null!=this.A&&(a=this.A.Bl(),this.A.hide(),this.A=null);this.M&&(this.M=!1,this.j.Dg()||this.j.Be()||this.j.pause(),AK()&&!a&&(this.j.qf(.001),this.j.load("","")),zK()&&this.j.Id()&&!a&&this.j.Uk(),this.qa("contentResumeRequested"),this.qa("allAdsCompleted"));UX.J.L.call(this)};
function VX(a){S(a.o);a.o=null;S(a.D);S(a.B);S(a.G);a.T=!1;a.S=!1}function WX(a){a.Rg();jX(a)?a.start():a.stop()}f.Rg=function(){VX(this);UX.J.Rg.call(this);jX(this)&&(this.B=new dX,this.D=new PX(this.B))};
f.Fz=function(a,b,c){if(!this.T){this.T=!0;var d=tP(b);if(this.k.useVideoAdUi){var e=a.getExtension("AdSense"),g=this.k.Al&&((null===b?!1:"modules"==(new I(b)).jf().toLowerCase())||null!=e&&e.F),h=!0,k=!0;if(DS(909720)||xT(a)&&30<VT(a)&&DS(909721))k=h=!1;e=-1!=VT(a)&&0!=VT(a)&&7>=VT(a)?null:PT(a);if(sK()){var l=this.k,p=A(B(UT(a)))?!1:this.k.Ds;zT(a,fJ);d=NX(g,d,e,l);d.k=p;d.I=k;d.H=h;d.F=l.cn;d.G=l.KD;d.K=l.useShareButton;d.P=l.LD;d.T=0;l.cn&&(e="",l=ta("Visit Advertiser"),d.zf=e+l)}else zT(a,fJ)||
!A(B(a.I))?(l=g,p=this.k,!A(B(d))&&null!==e&&0<FR(e)&&DS(41351090)&&(l=!0),d=NX(l,d,e,p),d.C=l?nP:mP):(d=NX(g,d,e,this.k),d.M=!1,d.A=!1,d.j=!1);e=this.A.bl();null===e?e=document.body:(Kd(e),l=H("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-user-select:none;-moz-user-select:none;-ms-user-select:none;background-color:rgba(0,0,0,0);bottom:0;cursor:pointer;height:100%;left:0;min-height:100%;position:absolute;right:0;top:0;overflow:hidden}.videoAdUiTopBar{background:#000;border-bottom:1px solid #444;cursor:default;left:0;opacity:.8;padding:0;position:relative;top:0;right:0;z-index:1000}.videoAdUiTopBarWithGradients{background-image:-webkit-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-image:linear-gradient(top,rgba(0,0,0,0.8),rgba(0,0,0,0.7) 40%,rgba(0,0,0,0) 99%);background-color:rgba(0,0,0,0);border-bottom:none;height:40px}.videoAdUiTopBarTransitions{-webkit-transition:opacity ease-in .5s;-moz-transition:opacity ease-in .5s;-o-transition:opacity ease-in .5s;transition:opacity ease-in .5s;opacity:0}.videoAdUi:hover .videoAdUiTopBarTransitions{-webkit-transition:opacity ease-out .5s;-moz-transition:opacity ease-out .5s;-o-transition:opacity ease-out .5s;transition:opacity ease-out .5s;opacity:.8}.videoAdUiTopBarNoFade{opacity:.8!important}.videoAdUiBottomBar{background-image:-webkit-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-moz-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-ms-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:-o-linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);background-image:linear-gradient(bottom,rgba(0,0,0,0.5),rgba(0,0,0,0.4) 60%,rgba(0,0,0,0) 99%);bottom:5px;left:0;padding:0;position:absolute;width:100%;z-index:1000}.videoAdUiProgressBar{background-color:#fff;bottom:0;cursor:default;left:0;position:absolute;width:100%;z-index:1000}.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%}.videoAdUiBuffer{height:4px;width:0%;display:none}.videoAdUiAuthorIcon{background:#000;display:inline-block;height:40px;margin:0 10px;position:absolute}.videoAdUiAuthorIconImage{cursor:pointer;width:40px;height:40px}.videoAdUiAuthorIconImage:hover{opacity:.6}.videoAdUiAuthorName{color:#ccc;cursor:pointer;display:inline-block;font:normal 12px arial,sans-serif;margin:10px 5px 5px;text-decoration:none;max-width:20%}.videoAdUiLearnMore{color:#fff;display:inline-block;float:right;font:normal 16px arial,sans-serif;padding:5px}.videoAdUiLearnMoreText{color:#e5bb00;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%}.videoAdUiTitleWithAuthorIcon{margin-left:60px}.videoAdUiAuthorName:hover,.videoAdUiTitle:hover{text-decoration:underline}.ellipsisText{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.videoAdUiAttributionContainer{bottom:0;color:#fff;display:inline-block;font:normal 11px arial,sans-serif;padding:5px;padding-right:10px;position:absolute;text-shadow:0 0 5px rgba(0,0,0,0.8)}.videoAdUiAttributionContainer-gvn{color:#e5bb00;font-size:12px;position:relative;text-shadow:none}.videoAdUiAttribution{display:inline-block;opacity:.9}.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}.videoAdUiAttributionIconContainer:hover .videoAdUiAdInfoPopup{display:inline-block}.videoAdUiAdInfoPopup{background:white;border:1px solid black;box-sizing:border-box;color:black;display:none;font-size:12px;left:-15px;padding:7px;position:absolute;text-align:left;text-shadow:none;bottom:20px;width:211px}.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}.videoAdUiShare{color:#fff;display:inline-block;float:right;font:normal 13px arial,sans-serif;margin:10px 10px 5px}.videoAdUiShare:hover{text-decoration:underline;cursor:pointer}.videoAdUiPreSkipContainer{bottom:22px;cursor:default;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiPreSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiSkipContainer{-webkit-tap-highlight-color:rgba(0,0,0,0);bottom:22px;cursor:pointer;padding:15px 0 15px 15px;position:absolute;right:0;z-index:1000}.videoAdUi-mobile .videoAdUiSkipContainer{bottom:11px;padding:8px 0 8px 8px}.videoAdUiPreSkipButton{background:rgba(0,0,0,0.8);min-width:155px;padding:6px}.videoAdUi-mobile .videoAdUiPreSkipButton{min-width:105px}.videoAdUiPreSkipText{color:#e6e6e6;font:normal 11px arial,helvetica,sans-serif;padding-right:8px;text-align:center;display:inline-block;width:70px;vertical-align:middle}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{width:100%;padding-right:0;line-height:21px}.videoAdUiPreSkipThumbnail{cursor:pointer;display:inline-block;vertical-align:middle}.videoAdUiPreSkipThumbnailImage{display:block;max-width:78px;max-height:42px;width:auto;height:auto}.videoAdUiSkipButton{-webkit-tap-highlight-color:rgba(0,0,0,0);background:rgba(0,0,0,0.8);border:1px solid rgba(255,255,255,0.5);border-right:0;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}.videoAdUiSkipButton:hover{border-color:rgba(255,255,255,1)}.videoAdUi-swipeable .videoAdUiSkipButton{background:rgba(255,255,255,0.8);border:1px solid rgba(0,0,0,0.8);color:#000}.videoAdUiSkipIcon{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAVCAQAAADs3AYjAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAJiS0dEAP+Hj8y/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAACXZwQWcAAAAUAAAAFQC6IBuQAAAAUElEQVQoz93QwQkAIAwDwOIirtJNHM3RHCW+CqXG9q15hoNARB7KRAfrAeAoGKaQ4SuMOIUel9CwwZY9oaL8Bp+FUU8bSqFHVxgRhQxR+EM2fqKwh5sgSyYAAAAASUVORK5CYII=);display:inline-block;height:25px;margin-left:2px;vertical-align:middle;width:20px}@media all and (min-width:800px) and (min-height:400px){.videoAdUiTitle{font-size:15px}.videoAdUiAttribution{font-size:13px}.videoAdUiAttribution-gvn{font-size:16px!important}.videoAdUiPreSkipButton{min-width:200px}.videoAdUiPreSkipText{font-size:13px;width:105px;padding-right:6px}.videoAdUiPreSkipText.videoAdUiPreSkipTextOnly{font-size:13px}.videoAdUiPreSkipThumbnailImage{max-width:98px;max-height:52px}.videoAdUiShare{font-size:15px}.videoAdUiSkipButton{font-size:23px;min-width:200px}}.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*VT(iX(this));this.o=new HX(d,e,l);e=d.X;null!=e&&(iX(this).I=e,d.P&&XX(this,e));e=[];d.A&&e.push("adAttribution");d.j&&e.push("countdown")}else d&&this.k.ro&&(iX(this).I=d,XX(this,d));d=this.D;e=this.j;l=this.A.Yk();p=this.o;RX(d);d.B.D=a.T;d.j=e;d.o=p||null;d.j.Ai();d.A=new QX(d.j);d.G=l||null;d.k=new ln(d);d.k.listen(a,"measurable_impression",d.nB);d.k.listen(a,"viewable_impression",d.FC);d.k.listen(d.j,"timeUpdate",d.oz);d.k.listen(d.j,"volumeChange",d.pz);d.k.listen(d.j,
"pause",d.lz);d.k.listen(d.j,"play",d.mz);d.k.listen(d.j,"end",d.hz);d.k.listen(d.j,"beginFullscreen",d.jz);d.k.listen(d.j,"endFullscreen",d.UA);d.k.listen(d.j,"skip",d.Xp);d.k.listen(d.j,"skipShown",d.ur);d.k.listen(d.j,"start",d.nz);d.k.listen(d.j,"error",d.iz);d.k.listen(d.j,"mediaLoadTimeout",d.kz);null!=d.o&&(d.k.listen(d.o,"videoAuthorIconClicked",d.pC),d.k.listen(d.o,"videoAuthorClicked",d.oC),d.k.listen(d.o,"videoClicked",d.rC),d.k.listen(d.o,"videoLearnMoreClicked",d.xC),d.k.listen(d.o,"videoTitleClicked",
d.EC),d.k.listen(d.o,"videoShareClicked",d.BC),d.k.listen(d.o,"videoShareShown",d.CC),d.k.listen(d.o,"skipshown",d.ur),d.k.listen(d.o,"skip",d.Xp),d.k.listen(d.o,"PUBLISHER_INVOKED_SKIP",d.CB));kX(this).listen(this.D,"engagedview",this.kd);kX(this).listen(this.D,"videoAuthorIconClicked",this.kd);kX(this).listen(this.D,"videoAuthorClicked",this.kd);kX(this).listen(this.D,"videoClicked",this.kd);kX(this).listen(this.D,"videoLearnMoreClicked",this.kd);kX(this).listen(this.D,"videoShareClicked",this.kd);
kX(this).listen(this.D,"videoShareShown",this.kd);kX(this).listen(this.D,"videoTitleClicked",this.kd);kX(this).listen(this.j,"timeUpdate",this.DC);kX(this).listen(this.j,"volumeChange",this.Wy);this.Gf(a);d=sV(a,this.j);this.B.j=d;d=a.j;null!=d&&d instanceof fT&&(this.Ie(d,UI),this.gj(d),d=kX(this),on(d,this.D,"error",this.Uy,this),on(d,this.D,"mediaLoadTimeout",this.Vy,this));YX(this,a);xT(a)&&(this.D.F=30);this.j.Nm(ZX(this,a));this.j.load(b,c)}};
f.RC=function(a,b,c){this.V||(this.V=!0,this.qa("contentPauseRequested"));this.M=!0;this.Fz(a,b,c);this.setVolume(this.P);this.o&&(A(B($X(a)))?(b=this.o,null!=b.C&&(b.o.Fa(b.C,"click",b.Fs),wg(b.C,"cursor","default"))):(b=this.o,null!=b.C&&(b.o.listen(b.C,"click",b.Fs),wg(b.C,"cursor","pointer"))),b=a.j.ba,nb(b)||KX(this.o,b),this.o.show());this.A.xi();try{lX(this,a)}catch(d){aY(this,DJ,d);return}VQ.getInstance().end("pi");VQ.getInstance().start("bt");this.j.play()};
function bY(a,b,c,d){b=LR(b.j,c);nb(b)||(a[d]=b[0].j)}function cY(a,b,c){b=c.getExtension(b);null!=b&&(bY(a,b,"annotation_click","cta_annotation_clicked"),bY(a,b,"annotation_close","cta_annotation_closed"),bY(a,b,"annotation_start","cta_annotation_shown"))}
function ZX(a,b){var c=OT(b)&&!b.G?GT(b):null,d=xT(b)&&!yT(b),e=null!=a.o&&a.k.Al&&a.o.j.o,g=b.o,h=wT(b),k;a.o?(k={},cY(k,"AdSense",b),cY(k,"dart",b),cY(k,"DFP",b)):k=null;return new PP(h,c,k,e,d,a.k.loadVideoTimeout,g?g.tagForChildDirectedContent:!1,!1)}function dY(a){var b=0;C(a.ads,function(a){!eY(a)||sK()&&0!=b||b++},a);var c=1;C(a.ads,function(a){var e=a.B;e.o=b;eY(a)&&(e.j=c,e.A=c,c++)},a)}function eY(a){a=a.j;return null!=a&&a instanceof fT}
function fY(a){return ib(a.ads,function(a){return ib(gY(a),function(a){return!A(B(tP(a.k)))})},a)}function $X(a){var b=a.k;return b&&b.F&&(b=b.A,!nb(b)&&b[0]instanceof fT)?b[0].Oc():UT(a)}function gY(a){var b=a.k;if(b&&b.F&&(b=b.A,!nb(b)&&b[0]instanceof fT))return b[0].H;b=a.j;return eY(a)?b.H:[]}
function hY(a,b){if(FK.getInstance().j){var c=new Yj,d=!1;C(gY(b),function(a){c.add(a.j);"VPAID"==a.o&&(d=!0)},a);var e=a.j.al(),e={aid:GT(b),mt:c.La().join(","),smt:e.join(","),hvp:d,st:LQ(b).join(",")};GK(FK.getInstance(),28,e)}}function iY(a,b,c){try{var d=D(a,function(a){return a.Ld}),e=D(a,function(a){return a.j}),g={brs:d.join(","),mts:e.join(","),pubbr:b,selbr:null===c?-1:c.Ld,selmt:null===c?"":c.j,nat:!1};GK(FK.getInstance(),22,g)}catch(h){}}f.Ti=function(){dY(this);this.qa("loaded");this.U(new vX(iX(this)))};
f.Jc=function(a,b,c){UX.J.Jc.call(this,a,b,c);a=fY(this);this.j=this.A.wi(a);t:{if(jX(this)&&(b=this.G.getExtension("InfoCards"),b=null!=b?b.k:null,null!=b))break t;b=""}t:{if(jX(this)&&(c=this.G.getExtension("InfoCardsTracking"),c=null!=c?c.k:null,null!=c))break t;c=""}a&&(b||c)&&this.j.Np(b,c)};f.skip=function(){jX(this)&&xT(iX(this))&&(null!=this.o?this.o.skip():(oX(this,"skip"),jY(this)))};f.Hm=function(){this.Xb("skipshown")};
f.start=function(){UX.J.start.call(this);VQ.getInstance().start("pi");try{var a=iX(this),b;if(!eY(a))throw jK(ZJ);var c=a.j,d=c.ja;if(A(B(d))){var e=gY(a),g=this.j.Wr(e,this.k.bitrate,this.k.mimeTypes||[],null!=a&&(sK()||this.A.yi()||this.A.Cl()&&bd));iY(e,this.k.bitrate,g);if(null!=g)b=c.ga=g;else{try{hY(this,a)}catch(h){}throw jK(RJ);}}else b=new zO("","",0,0,0,0,0,d,"");this.K=b;fn(x(UX.prototype.RC,this,a,this.K.k,this.K.j))}catch(k){kY(this,k),this.Rg(),jX(this)?(kK(jK,this,eK,k,void 0),this.start()):
(this.M?kK(jK,this,eK,k,void 0):(null!=this.C&&FQ(this.C,CQ()),lK(this,eK,k)),this.stop())}};f.Kp=function(){mX(this);return this.j.Cg()?0:this.j.ed()};f.setVolume=function(a){mX(this);this.M?this.j.setVolume(a):this.P=a};
f.setMediaUrl=function(a){mX(this);var b;if(b=jX(this))b=null!=iX(this).o;if(b){b=iX(this);var c=b.o.location,d;if(d=null!=c)(d=pJ(kJ,c))||(d=df(new I(c)),d=null!=d?xa(d,".corp.google.com")||"corp.google.com"==d:!1),d=d||(null!=c?pJ(mJ,c):!1);(d||sK())&&null!=b.j&&b.j instanceof fT&&b.j.setMediaUrl(a)}};f.pause=function(){mX(this);this.j.pause()};f.resume=function(){mX(this);this.j.play()};
f.getRemainingTime=function(){mX(this);var a=this.j.bd(),b=this.j.getCurrentTime();return 0<=a&&0<=b?Math.max(0,a-b):-1};f.gf=function(){return this.j.gf()};f.Uy=function(){aY(this,eK,jK(eK,this.j.Op()))};f.Vy=function(){aY(this,UJ,jK(UJ,null,(this.k.loadVideoTimeout/1E3).toString()))};function aY(a,b,c){kY(a,c);a.Rg();jX(a)?(kK(jK,a,b,c,void 0),a.start()):(lK(a,b,c),a.stop())}function kY(a,b){var c=jK(eK,b),c=mV(c,iX(a),a.j),d=BT(iX(a));wJ(d,c)}
function lY(a){if(tK.j){var b=$X(iX(a));null!=b&&sJ(b)}a.qa("click")}function YX(a,b){var c=b;do c.D.forEach(function(a){C(UI,function(b){var c=LR(a.j,b);nb(c)||mY(this,b,c)},this);gX(this.B,a.D)},a),c=c.k;while(c)}function mY(a,b,c){C(c,function(a){MR(this.B.k,a.o,a.j)},a);nY(a,b)}function nY(a,b){Pb(XI,b)&&on(kX(a),a.D,b,a.kd,a)}
f.kd=function(a){switch(a.type){case "start":a=VQ.getInstance();if(a.j){var b={};if(null!=this.K){var c=df(new I(this.K.k));if(null!=c){var c=ab(c,".",10),d=c.length;2<=d&&(b.dn=c[d-2]+"."+c[d-1])}b.br=this.K.Md;b.mt=this.K.j}a.end("bt",b)}a=VQ.getInstance();a.j&&(b=WQ(a,"ff",a.o),tJ(b),a.o=0);this.qa("start");break;case "impression":this.qa("impression");break;case "pause":this.qa("pause");break;case "resume":this.qa("resume");break;case "firstquartile":this.qa("firstquartile");break;case "midpoint":this.qa("midpoint");
break;case "thirdquartile":this.qa("thirdquartile");break;case "complete":this.qa("complete");WX(this);break;case "click":this.o&&this.o.j.k?this.j.Dg()?this.resume():this.pause():lY(this);break;case "engagedview":b=iX(this);a=b.I;yT(b)&&!sK()&&!this.A.yi()&&a&&(b=this.j.getCurrentTime(),c=this.j.bd(),d=new I("//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)),tJ(d.toString()));this.qa("engagedview");break;case "videoAuthorIconClicked":oY(this);break;case "videoAuthorClicked":oY(this);break;case "videoClicked":this.qa("videoClicked");break;case "videoLearnMoreClicked":this.j.pause();lY(this);break;case "videoShareClicked":a=iX(this).K;null!=a&&(a=a.videoId,b=this.k.baseYouTubeUrl,A(B(a))?a=null:(b=new I((null!=b?b:"//www.youtube.com/")+"watch"),c=b.j,c.set("v",a),We(b,c),b.ef="action=share",a=b.toString()),null!=
a&&(sJ(a),a=pY(this),null!=a&&(a=xJ(a,"sharebuttonclicked",void 0),tJ(a))));break;case "videoShareShown":a=pY(this);null!=a&&(a=xJ(a,"sharebuttondisplayed",void 0),tJ(a));break;case "videoTitleClicked":a=iX(this);b=a.K;null!=b&&(a=vP(b.videoId,null!=PT(a),this.k.baseYouTubeUrl),null!==a&&(this.j.pause(),sJ(a)));break;case "skipshown":this.qa("skippableStateChanged");break;case "skip":jY(this)}};
function pY(a){var b=iX(a).getExtension("AdSense");if(!(b=null!=b?new I(b.k):null))t:{if(a=FT(iX(a)))if(a=dT(a,"start"),!nb(a)){b=new I(a[0].j);break t}b=null}return b}function jY(a){fn(function(){this.qa("skip");WX(this)},0,a)}f.Gf=function(a){UX.J.Gf.call(this,a);nY(this,"impression")};f.Ie=function(a,b){UX.J.Ie.call(this,a,b);C(b,function(a){nY(this,a)},this)};f.gj=function(a){UX.J.gj.call(this,a);a instanceof fT&&(a=gT(a),C(a.Ia(),function(a){nY(this,a)},this))};
f.getMediaUrl=function(){if(!jX(this))return null;var a=iX(this);if(!eY(a))throw jK(ZJ);a=a.j.H;return nb(a)?null:a[0].k};f.DC=function(){var a=this.j.bd(),b=this.j.dp(),c=this.j.getCurrentTime(),d=0,e=0;jX(this)&&(e=iX(this),d=e.B.j,e=e.B.o);if(null!=this.o&&0<=a&&0<=c){var g;if(g=!this.S)g=3==iX(this).la;if(g){g=this.j.bd();var h=VT(iX(this));g=Math.abs(g-h);2<g&&(g=jK(YJ,null,Number(g).toFixed(2)),g=mV(g,iX(this),this.j),h=BT(iX(this)),wJ(h,g));this.S=!0}this.o.update(c,b,a,d,e)}};
f.Wy=function(){var a=this.j.ed();a!=this.P&&(this.P=a,this.qa("volumeChange"),0==a&&this.qa("mute"))};
function XX(a,b){xX(b,function(a){a=new HS(a);ZT(iX(this))==a.videoId&&(qY(this,a),!A(B(a.channelId))&&a.j&&zX(a.channelId,function(a){a=new FS(a);if(null!=this.o){var b=this.o,c=a.k;b.j.S=!A(B(c));b.j.V=c;if(null!=b.F){var c="",h=ta("by {$userDisplayName}",{userDisplayName:""+b.j.V});Ud(b.F,(new $O(c+h,void 0)).getContent())}IX(b);b=this.o;c=a.j;b.j.O=!A(B(c));null!=b.D&&(h=Gd("img"),h.setAttribute("src",c),N(h,"videoAdUiAuthorIconImage"),b.D.appendChild(h),null!=b.B&&N(b.B,"videoAdUiTitleWithAuthorIcon"));
IX(b)}iX(this).H=a;this.qa("youTubeChannelMetadata");if(a=this.o)a=iX(this),b=a.K,a=sK()&&nb(MQ(a))&&null!=a.H&&null!=b&&b.j;if(a){a=iX(this);kX(this).listen(window,"message",this.Ex);var b=iX(this),c=b.H.channelId,h=wT(b),k=this.k.contentId,l=this.k.baseYouTubeUrl,l=new I((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 jU("1",new G(300,250),"IFrame",null,l.toString());c.Tg(b);c.D=!0;a.C=[new aU(c,
[],null)];lX(this,a)}},this))},a)}f.Ex=function(a){var b=a.j;if("companion-setup-complete"==b.data){a=iX(this);var c=encodeURIComponent(B(UT(a)))+","+encodeURIComponent(pY(this).toString());b.source.postMessage(c,"*");b=b.source.frameElement;b.parentNode.style.cssText="";b.width=370;b.height=null!=UT(a)?210:185}else"pause-video"==b.data&&this.pause()};
function qY(a,b){if(null!=a.o&&b.j){var c=a.o,d=b.title;c.j.B=!A(B(d));c.j.title=d;jc.test(ic(c.j.title,void 0));null!=c.B&&Ud(c.B,c.j.title);IX(c);c=a.o;if(null!=c.G){var c=c.G,d="",e=ta("Share");Ud(c,d+e)}}iX(a).K=b;a.qa("youTubeVideoMetadata")}function oY(a){var b;b=iX(a).H;if(null!=b){var c;c=a.k.baseYouTubeUrl;b=B(b.channelId);c=A(b)?null:(null!=c?c:"//www.youtube.com/")+"channel/"+(wa(b,"UC")&&24==b.length?b:"UC"+b);null!==c&&(a.j.pause(),sJ(c))}};function rY(a){this.j=a}f=rY.prototype;f.Yk=function(){return this.j.Yk()};f.bl=function(){return this.j.bl()};f.lf=function(){return this.j.lf()};f.wi=function(a){return this.j.wi(a)};f.Bl=function(){return this.j.Bl()};f.Cl=function(){return this.j.Cl()};f.yi=function(){return this.j.yi()};f.hide=u;f.xi=u;f.tj=u;function sY(a,b,c,d,e,g,h){U.call(this);this.A=this.C=0;this.D=a;this.wd=b;this.W=c;this.B=null;this.M=d;this.O=g;this.K=tK.k;this.j=null;this.T="normal";this.I=null;this.G=e;this.o=[];this.V=this.S=this.H=!1;this.P=h;tY(this)}z(sY,U);f=sY.prototype;f.init=function(a,b,c){uY(this,c);null==this.F&&(this.F=new ln(this),on(this.F,this.M,"adsLoaderSdkAdLoaded",this.Yz,this),on(this.F,this.M,"adsLoaderSdkAdError",this.Vz,this));vY(this)};
f.start=function(){this.H=!0;wY(this);0<this.o.length?xY(this):("always"==tK.k&&null!=this.P&&FQ(this.P,CQ()),kK(hK,this,IJ,void 0,void 0),0==this.wd&&this.U("contentResumeRequested"),yY(this))};f.destroy=function(){null!=this.F&&(this.F.dispose(),this.F=null);this.G.hide();zY(this);tK.k=this.K;this.H=!1};f.getCurrentAd=function(){return this.A<this.o.length?this.o[this.A].j[0]:null};f.ub=function(){return this.H};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.I=a,null!=this.j&&this.j.setVolume(this.I))};function uY(a,b){null!=b&&(a.T=b);null!=a.j&&(a.j.zi(b),a.j.Ag())}function tY(a){C(a.D,function(a){a=new I(a.o.adTagUrl);var c=kf(a,"max_ad_duration");n(c)||kf(a,"pmxd")})}
f.Yz=function(a){tK.k=this.K;var b=a.C;nb(b)||(a=a.B,a.j&&C(b,function(a){a.ga=!1},this),pb(this.o,new tR(b,a.j,a.k)));this.C++;vY(this)};f.Vz=function(a){a=a.o;tK.k=this.K;a.getMessage();kK(hK,this,IJ,void 0,void 0);this.C++;vY(this)};function vY(a){a.C<a.D.length&&null!=a.D[a.C]&&!(2<=a.o.length-a.A)?AY(a):a.S||(a.U("adBreakInitialized"),a.S=!0)}function AY(a){var b=a.D[a.C];tK.k="on_master_ad";RW(a.M,b.o,b)}
function wY(a){null==a.wd||ib(a.o,function(a){return!a.k})||(a.o=gb(a.o,function(a){return!(a.k&&!a.o)}))}
function xY(a){if(a.A<a.o.length){var b=a.o[a.A];zY(a);try{var c=b.j,b=null;if(vT(c[0]))a.O.Qo&&(c=xb(c,0,1)),b=new UX(c);else{var d=c[0];if(null!=d&&NT(d,"nonlinear"))b=new pX(c);else throw Error("No valid creative type found.");}b.C=a.P;b.Jc(new rY(a.G),{currentTime:0},a.O);a.j=b;if(null==a.j)throw Error("The current ads manager is not defined");null!=a.k&&(a.k.dispose(),a.k=null);a.k=new ln(a);var e=a.j;on(a.k,e,"adError",a.Wz,a);on(a.k,e,"click videoClicked start pause resume firstquartile midpoint thirdquartile complete skip loaded adMetadata log".split(" "),
a.Zz,a);a.k.listen(e,["allAdsCompleted"],u);on(a.k,e,"contentPauseRequested",a.Ry,a);on(a.k,e,"contentResumeRequested",a.Sy,a);if(BY(a.j)){var g;g=FT(iX(a.j)).ka;g=0<g?g:15;null!=a.B&&a.B.dispose();a.B=new dn(1E3*g);rn(a.k,a.B,"tick",a.tB,a)}a.j.init(a.T);null!=a.I&&a.j.setVolume(a.I);if(BY(a.j))a.U("contentResumeRequested"),a.G.hide(),a.G.tj(),a.j.start(),null!=a.B&&a.B.start();else{var h=a.j;if(null!=h&&h instanceof UX)a.G.xi(),a.j.start();else throw Error("Unknown ads manager type.");}}catch(k){a.A++,
xY(a)}a.C<a.D.length&&null!=a.D[a.C]&&AY(a)}else a.U("contentResumeRequested"),yY(a)}function zY(a){null!=a.B&&(a.B.dispose(),a.B=null);null!=a.k&&(a.k.dispose(),a.k=null);null!=a.j&&(a.j.destroy(),a.j=null)}f.tB=function(){zY(this);yY(this)};f.Wz=function(){this.A++;xY(this)};f.Sy=function(){this.A++;xY(this)};f.Ry=function(){this.V||(this.U("contentPauseRequested"),this.V=!0)};function BY(a){return null!=a&&a instanceof pX}function yY(a){a.H=!1;a.U("allAdsCompleted")}
f.Zz=function(a){CY(this,a.type,a.getAd());this.U(a)};function CY(a,b,c){if("loaded"==b||"start"==b||"adMetadata"==b||"firstquartile"==b){var d=0,e=0;C(a.o,function(a,b){var g=a.j;eb(g,c);d+=g.length;b<this.A&&(e+=g.length)},a);b=c.B;var g=e+b.A;b.o=d+(a.D.length-a.C);b.j=g;b.k=a.W;b.B=a.wd}};function DY(a){Zl.call(this,a);this.o=null}z(DY,Zl);function EY(a,b,c){U.call(this);this.k=a;this.j=[];this.C=null!=c&&"boolean"==typeof c.backlog?c.backlog:!1;this.F=null!=c&&ha(c.prefetch)&&0<=c.prefetch?c.prefetch:0;this.o=null;this.A=!1;FY(this,b)}z(EY,U);function GY(a){this.j=a;this.o=this.k=!1}function HY(a){null!=a.o&&(a.o.dispose(),a.o=null);a.k.stop();a.A=!1}function IY(a){if(a.A){var b=E(a.j,function(a){return-1==a.j},a);null!=b&&JY(a,!0,b)}}
function FY(a,b){C(b,function(a){if(isNaN(a))throw Error("The ad play time is not a number:"+a);Gb(this.j,new GY(a),function(a,b){return Ab(a.j,b.j)})},a)}EY.prototype.B=function(){if(this.A){var a=this.k.currentTime;if(isNaN(a)||0>a)KY(this);else{var b=LY(this,a);this.C?C(b,function(a){JY(this,!0,a)},this):JY(this,!0,cb(b));JY(this,!1,MY(this,a))}}};function LY(a,b){for(var c=[],d=0;d<a.j.length;d++){var e=a.j[d];-1!=e.j&&e.j<=b&&pb(c,e)}return c}
function MY(a,b){for(var c=0;c<a.j.length;c++){var d=a.j[c];if(-1!=d.j&&b>=d.j-a.F&&b<d.j&&!a.j[c].k)return d}return null}EY.prototype.D=function(){KY(this)};function KY(a){a.U(new DY("contentTrackingError"))}function JY(a,b,c){if(null!=c){if(!c.k){var d=new DY("requestAds");d.o=c.j;a.U(d);c.k=!0}b&&!c.o&&(b=new DY("playAds"),b.o=c.j,a.U(b),c.o=!0)}};function NY(a,b){Q.call(this);this.o=a;this.k=-1;this.j=b}z(NY,Q);function OY(a,b){if(0==b.wd||0>=a.j||0>=a.k)return!1;var c=y()/1E3,d=b.wd-a.o.currentTime;0<d&&(c+=d);return c-a.k<=a.j};function SW(a,b){hX.call(this,[]);this.P=a;this.H=new oe;this.o=this.j=null;this.W=new Mo;this.D=null;this.M=b;this.T=this.V=!1;this.K=null;this.da=this.ba=-1;this.S=null}z(SW,hX);f=SW.prototype;
f.Jc=function(a,b,c){null!=this.o&&(HY(this.o),this.o.dispose(),this.o=null);SW.J.Jc.call(this,a,b,c);c=this.P.j.Ia();b=new YP(b);this.o=new EY(b,c,{prefetch:4});C(c,function(b,c){if(isNaN(b))throw hK(BJ,null,"timeOffset",b+"");var g=ha(b)&&!isNaN(b)?this.P.j.get(b,[]):[];if(!nb(g)){g=new sY(g,b,0==b||-1==b?b:c,this.M,a,this.k,this.C);if(qe(this.H,b))throw hK(NJ,null,"Multiple ad breaks cannot share same ad play time.");this.H.set(b,g)}},this);this.K=cb(c);ib(c,function(a){if(-1==a)return this.K=
a,!0;this.K=this.K<a?a:this.K;return!1},this)};
f.init=function(a){SW.J.init.call(this,a);null!=this.o&&(PY(this),a=kX(this),on(a,this.o,"requestAds",this,this),on(a,this.o,"playAds",this,this),on(a,this.o,"contentTrackingError",this,this),on(a,this.o,"adBreakReady",this.Tz,this),on(a,this.M,"contentComplete",this.CA,this),this.M.j=!1,a=this.o,a.A||(null==a.o&&(a.o=new ln(a)),a.o.listen(a.k,"currentTimeUpdate",a.B,!1),a.o.listen(a.k,"contentWrapperError",a.D,!1)),a.k.start(),a.A=!0,this.o.B(),a=ha(0)&&!isNaN(0)?this.P.j.get(0,[]):[],nb(a)&&this.qa("contentResumeRequested"))};
f.Ti=function(){this.ze();this.U(new vX(null))};f.destroy=function(){this.dispose()};f.L=function(){this.M.j=!0;if(0<this.H.Na()){var a=this.H.La();C(a,this.Yh,this);this.H.clear()}PY(this);QY(this);null!=this.A&&(this.A.hide(),this.A=null);SW.J.L.call(this)};f.start=function(){SW.J.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){SW.J.setVolume.call(this,a);null!=this.j&&this.j.setVolume(a)};f.Ag=function(){SW.J.Ag.call(this);var a=zd(window);this.ba=a.width;this.da=a.height;null!=this.j&&uY(this.j,this.I)};f.getRemainingTime=function(){return null!=this.j?this.j.getRemainingTime():-1};f.ze=function(){return this.P.j.Ia()};f.getCurrentAd=function(){return null!=this.j?this.j.getCurrentAd():null};f.Vr=function(){};f.handleEvent=function(a){"contentTrackingError"!=a.type&&(Oo(this.W,a),RY(this))};
function PY(a){null!=a.F&&(a.F.dispose(),a.F=null);a.V=!1;null!=a.o&&HY(a.o)}
function RY(a){if(null==a.D){var b=Po(a.W);if(null!=b){a.D=b;var c=a.H.get(a.D.o);null==c?(a.D=null,RY(a)):"requestAds"!=b.type&&"playAds"!=b.type?(a.D=null,RY(a)):null!=a.S&&OY(a.S,c)?(a.D=null,RY(a)):"requestAds"==b.type?(b=kX(a),on(b,c,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),a.U,a),on(b,c,"allAdsCompleted",a.Bq,a),on(b,c,"contentPauseRequested",a.Ip,a),on(b,c,"contentResumeRequested",a.Jp,a),on(b,c,"adBreakInitialized",
a.Cq,a),c.init(a.ba,a.da,a.I)):"playAds"==b.type&&(null!=a.j&&a.j.ub()&&a.Yh(a.j),a.j=c,a.j.setVolume(a.volume),uY(a.j,a.I),a.j.start())}}}
f.Yh=function(a){a.destroy();this.H.remove(a.wd);this.j=null;null!=this.F&&(this.F.Fa(a,"click videoClicked start pause firstquartile midpoint thirdquartile complete skip loaded adMetadata pause resume log".split(" "),this.U,!1,this),this.F.Fa(a,"allAdsCompleted",this.Bq,!1,this),this.F.Fa(a,"contentPauseRequested",this.Ip,!1,this),this.F.Fa(a,"contentResumeRequested",this.Jp,!1,this),this.F.Fa(a,"adBreakInitialized",this.Cq,!1,this))};
f.CA=function(a){this.V=!0;-1==this.K?a.A=!1:sK()&&0!=this.H.La().length||SY(this);IY(this.o)};f.Tz=function(a){var b=a.o;-1==b?fn(function(){var a=this.H.get(b);a&&this.Yh(a);sK()&&0!=this.H.La().length||SY(this)},500,this):0==b&&fn(function(){this.qa("contentResumeRequested")},100,this);this.U(new WI("adBreakReady",null,{XK:b}))};f.Bq=function(a){this.Yh(a.target);(0==this.H.La().length||!sK()&&this.V)&&SY(this);this.D=null;RY(this)};
function SY(a){a.T||(a.T=!0,a.M.j=!0,a.qa("allAdsCompleted"),-1==a.K&&QY(a))}function QY(a){hQ.clear();null!=a.C&&(a=a.C.re(),null!=a&&wQ(a,hQ.j))}f.Ip=function(){var a=this.o;a.k.stop();a.A=!1;this.qa("contentPauseRequested")};f.Jp=function(){this.qa("contentResumeRequested");if(!this.T){var a=this.o;a.k.start();a.A=!0}this.D=null};f.Cq=function(){this.D=null;RY(this)};f.qa=function(a){var b=null;null!=this.j&&(b=this.j.getCurrentAd());this.U(new WI(a,b))};
f.Lp=function(a,b){return this.S=new NY(a,b)};function TY(a){hX.call(this,a);this.W=this.V=this.P=!1;this.M=[];this.T=Wa();this.j=null;this.o=!0;this.S=-1;this.K=1}z(TY,hX);f=TY.prototype;
f.init=function(a){TY.J.init.call(this,a);a=WT(iX(this));if(/\.html(\?.*)?$/.test(a)){if(a.match("//s0.2mdn.net/instream/html5/survey/survey.html")){var b="en".replace("-","_");a=a.replace(".html","_"+b+".html");null!=this.k.contentId&&(a=Qe(a,"v",this.k.contentId))}a=B(a)}else{var b=new I(a),c=new I("http://tpc.googlesyndication.com/pagead/js/loader7.html");"https"==b.Jb&&Re(c,"https");a=We(c,a||"",void 0).toString()}this.D=H("iframe",{src:rJ(a),allowtransparency:!0,background:"transparent",style:"border:0; opacity:0; margin:0; overflow:hidden;padding:0; width:100%; height:100%;position: absolute;"});
kX(this).listen(window,"message",this.JC);kX(this).listen(this.D,"load",this.Tw);kX(this).listen(this.D,"error",this.gB);this.A.lf().appendChild(this.D)};f.Jc=function(a,b,c){TY.J.Jc.call(this,a,b,c);this.o=FT(iX(this))instanceof fT;this.j=a.wi(!1);kX(this).listen(this.j,"click end error mediaLoadTimeout pause play timeUpdate volumeChange".split(" "),this.NA)};f.stop=function(){this.A.hide();TY.J.stop.call(this)};
f.start=function(){TY.J.start.call(this);var a=iX(this),b=sV(a,this.j);this.B.j=b;if(b=a.j)this.Gf(a),this.Ie(b,UI),this.gj(b);this.j.Ai();this.A.tj();this.D.style.opacity=1;this.W=!0;this.o&&this.qa("contentPauseRequested");UY(this)};f.pause=function(){VY(this,"pauseAd")};f.resume=function(){VY(this,"resumeAd")};f.setVolume=function(a){TY.J.setVolume.call(this,a);VY(this,"setAdVolume",{value:a})};
f.L=function(){var a=this.A.lf();null!=a&&Kd(a);this.o&&this.qa("contentResumeRequested");this.qa("allAdsCompleted");this.P=!1;this.M=[];TY.J.L.call(this)};f.Ti=function(){};
f.Tw=function(){var a=this.j.al();nb(a)&&(a=this.k.mimeTypes);WY(this,"wrapperCall",{messageType:"supportedMimeTypes",supportedMimeTypes:a});var a=DT(iX(this)),b=B(UT(iX(this))),b={desiredBitrate:this.k.bitrate,creativeData:a,viewMode:this.I,clickThroughUrl:b};WT(iX(this)).match("//s0.2mdn.net/instream/html5/survey/survey.html")&&0<=a.indexOf("yt_override")&&null!=this.k.surveyCreativeData&&(b.creativeData=this.k.surveyCreativeData);WY(this,"initAd",b);C(this.M,function(a){WY(this,a.type,a.params)},
this);this.P=!0;this.M=[]};function VY(a,b,c){a.P?WY(a,b,c):a.M.push({type:b,params:c})}function WY(a,b,c){null!=a.D?(null!=c||(c={}),c.session=a.T,c.type=b,a.D.contentWindow.postMessage(fg(c),"*")):(XY(a,gK,null),a.stop())}
f.JC=function(a){a=a.j;if(a.source==this.D.contentWindow&&(a=dg(a.data),a.session==this.T&&v(a.type)))switch(a.type){case "videoCall":switch(a.func){case "play":this.A.xi();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.o||(gn(this.S),ha(a)&&-1!=a||(a=30),this.S=fn(this.uB,1E3*a,this));break;case "AdClickThru":oX(this,"click");this.qa("click");break;case "AdError":XY(this,gK,null);this.stop();
break;case "AdExpandedChange":this.qa("expandedChanged");break;case "AdImpression":this.qa("impression");break;case "AdLinearChange":a=a.isLinear;!this.o&&a?(this.qa("contentPauseRequested"),gn(this.S)):!a&&this.o&&(this.qa("contentResumeRequested"),this.o=a,VY(this,"getAdRemainingTime"));this.o=a;break;case "AdLoaded":this.V=!0;UY(this);this.Xb("loaded");break;case "AdPaused":this.Xb("pause");break;case "AdPlaying":this.Xb("resume");break;case "AdRemainingTimeChange":this.o||VY(this,"getAdRemainingTime");
break;case "AdSkipped":this.Xb("skip");break;case "AdStarted":oX(this,"impression");oX(this,"creativeview");this.qa("start");break;case "AdStopped":oX(this,"stop");this.stop();break;case "AdUserAcceptInvitation":this.o?oX(this,"acceptinvitationlinear"):oX(this,"acceptinvitation");break;case "AdUserMinimize":oX(this,"collapse");break;case "AdUserClose":this.Xb("userClose");break;case "AdVideoComplete":this.Xb("complete");break;case "AdVideoFirstQuartile":this.Xb("firstquartile");break;case "AdVideoMidpoint":this.Xb("midpoint");
break;case "AdVideoStart":oX(this,"start");break;case "AdVideoThirdQuartile":this.Xb("thirdquartile");break;case "AdVolumeChange":a=a.volume;a!=this.K&&this.qa("volumeChange");0==a&&0!=this.K?(oX(this,"mute"),this.qa("mute")):0==this.K&&0!=a&&oX(this,"unmute");this.K=a;this.j.setVolume(a);break;case "Ping":tJ(a.url)}};f.gB=function(a){XY(this,OJ,a);this.stop()};function XY(a,b,c){var d=jK(b,c),d=mV(d,iX(a)),e=BT(iX(a));wJ(e,d);lK(a,b,c)}
f.NA=function(a){switch(a.type){case "timeUpdate":a=this.j.bd();var b=this.j.getCurrentTime();WY(this,"wrapperCall",{messageType:"timeupdate",duration:a,currentTime:b});break;case "end":YY(this,"ended");break;case "mediaLoadTimeout":YY(this,"stalled");break;default:YY(this,a.type)}};function YY(a,b){WY(a,"wrapperCall",{messageType:b})}function UY(a){a.V&&a.W&&(VY(a,"startAd"),a.o||VY(a,"getAdRemainingTime"))}f.uB=function(){VY(this,"stopAd")};function ZY(){}function UW(a){if(!nb(a)){var b=a[0],c=XT(b)&&sK();switch(null!=WT(b)&&c?"vpaid":OT(b)&&NT(b,"nonlinear")?"overlay":NT(b,"linear")?"video":NT(b,"nonlinear")?"overlay":null){case "overlay":return OT(b)?new uX(a):new pX(a);case "video":return new UX(a);case "vpaid":return new TY(a)}}return null};function $Y(a){U.call(this);this.k=a;a=new EQ(new nQ);this.j=new NW(new ZY,a,hQ);this.j.listen("adsManagerLoaded",this.U,!1,this);this.j.listen("adError",this.U,!1,this);this.j.listen("adLoadError",this.U,!1,this)}z($Y,U);function aZ(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.oc=WP(b.adTagUrl,b.linearAdSlotWidth,b.linearAdSlotHeight,b.nonLinearAdSlotWidth,b.nonLinearAdSlotHeight,a.k.A);b.Wm=a.k.F;OW(a.j,b,c)}
$Y.prototype.L=function(){null!=this.j&&(this.j.Fa("adsManagerLoaded",this.U),this.j.Fa("adError",this.U),this.j.Fa("adLoadError",this.U),this.j=null);$Y.J.L.call(this)};function bZ(a,b){rr.call(this,a,b)}z(bZ,rr);f=bZ.prototype;f.Cn=function(){zq(this.app,!0,this.playerType);this.app.Zd(this.playerType)};f.pauseVideo=function(){this.app.pauseVideo(this.playerType)};f.zt=function(a,b,c){zq(this.app,!0,this.playerType);var d=this.app,e=this.playerType;d.Sf(d.getCurrentTime()+a,b,c,e)};f.lh=function(a,b){zq(this.app,!0,this.playerType);this.app.Sf(a,b,void 0,this.playerType)};f.Fn=function(){Kq(this.app,this.playerType)};function cZ(a){this.app=a;Ds.call(this,a.lc)}z(cZ,Ds);cZ.prototype.getAdState=function(){return-1};cZ.prototype.subscribe=function(a,b,c){return cZ.J.subscribe.call(this,a,b,c)};function dZ(a,b,c){this.A=a;this.j=b||"";this.k=c||null;this.o=!1}function eZ(a,b,c){var d;if(d=OH("grc",a.j))QH(a.j),d=!0;d?(a.span(b,"grc",c),a.A.experiments.j&&!OH(b,a.j)&&KH(b,c)):OH(b,a.j)||(KH(b,c,a.j),a.A.experiments.j&&"new_playback"==a.j&&KH(b,c))}dZ.prototype.info=function(a,b){PH(a,b,this.j)};dZ.prototype.span=function(a,b,c){var d=this.j,e=QH(d).span,d=LH(d);b in d&&(e[a]=(c||y())-d[b])};
function fZ(a,b){var c=a.A;if(c.ba&&("detailpage"==c.ea||"leanback"==c.ea||"embedded"==c.ea&&(c.da||c.experiments.F))&&!a.o){a.o=!0;If("TIMING_ACTION")||Gf("TIMING_ACTION",a.A.oa);if(a.k){var c=a.k.A,d;for(d in c)KH(d,c[d],a.j);d=a.k.o;for(var e in d)PH(e,d[e],a.j)}if(e=sh("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}PH("yt_vis",d,a.j)}PH("yt_pt","html5",a.j);b&&!OH("pbs",a.j)&&eZ(a,"pbs",b);OH("_start",
a.j)&&(NH(a.j),a.A.experiments.j&&"new_playback"==a.j&&(a.j="",a.o=!1,fZ(a),a.j="new_playback"));a.k&&(e=a.k,e.A={},e.o={})}}vg("hidden",window.document);function gZ(a,b){a=!!a;q("_lactCookie",a,window);if(null==r("_lact",window)){if(a&&b){var c;c=fk.get("ACTIVITY","-1");q("_lact",parseInt(c,10),window)}else q("_lact",-1,window),wr();P(document,"keypress",wr);P(document,"mousedown",wr);P(document,"mouseup",wr)}}function wr(){var a=r("_lact",window);null==a&&(gZ(),a=r("_lact",window));var b=y();q("_lact",b,window);r("_lactCookie",window)&&1E3<=b-a&&gk("ACTIVITY",""+b)}function hZ(){var a=r("_lact",window);return null==a?-1:Math.max(y()-a,0)};var iZ={dJ:"0",gJ:"1",Eu:"2",YI:"3"};var jZ={zJ:"red",WHITE:"white",lH:"blue"};function kZ(a){this.experimentIds=(a||"").split(",");var b={};C(this.experimentIds,function(a){b[a]=!0});this.k=!!b["913424"];this.C=!!b["932250"];this.ga=!!b["945066"];this.F=!!b["945069"];this.ba=!!b["945074"];this.O=!!b["945089"];this.T=!!b["945090"];this.W=!!b["934052"];this.da=!!b["945093"];this.Ua=!!b["945094"];this.la=!!b["945097"];this.na=!!b["945098"];this.ja=!!b["945099"];this.S=!!b["927845"];this.B=!!b["936926"];this.G=!!b["913430"];this.V=!!b["927877"];this.o=!!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"];this.A=!!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.k;this.I=!!b["953500"];this.ka=
!!b["951502"];this.spherical=!!b["951503"];this.D=!!b["951506"];this.X=!!b["930676"]||!!b["930677"];this.sz=!!b["943610"];this.Pl=!!b["943605"];this.uz=!!b["943606"];this.Ql=!!b["900720"];this.M=!!b["909722"];this.K=!!b["939977"]||!!b["930678"];this.H=!!b["959800"];this.Ha=!!b["937222"];this.P=!!b["939945"];this.j=!!b["922317"]};var lZ={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},mZ={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},nZ="blogger books docs google-live play picasaweb".split(" ");
function oZ(a){Q.call(this);a=ac(a);this.B={};this.experiments=new kZ(a.fexp);this.Ba=a.forced_experiments||null;this.origin=yH(this.origin,a.origin);this.G=yH("",a.loaderUrl);var b=document.location.toString();this.Me=(this.H=!!b&&-1!=b.search(uf))?yH("",a.loaderUrl):document.location.toString();"adunit"==a.el?Wf(this.G)?this.ea="adunit":this.ea="embedded":this.ea=a.el||this.ea;gZ("detailpage"==this.ea,a.autonav);var b=null,c=a.ps;!c||F(nZ,c)&&!this.Ab()||(b=c);this.j=b;switch(this.ea){case "adunit":this.ls=
!1;break;case "detailpage":this.mc=!0;break;case "profilepage":this.Yg=!0}switch(this.j){case "blazer":this.mc=this.bi=!1;this.ba=!0;break;case "blogger":this.Lf=this.mc=this.Cc=!1;this.Tc="bl";break;case "books":this.Cc=!1;this.mc=!0;this.Lf=!1;this.Tc="gb";break;case "docs":this.Lf=this.mc=this.Cc=!1;this.Tc="gd";break;case "google-live":this.Lf=this.mc=this.Cc=!1;this.Tc="gl";break;case "play":this.mc=this.Cc=!1;this.Tc="gp";break;case "native":this.bi=!1;break;case "picasaweb":this.Lf=this.mc=
this.Cc=!1;this.Tc="pw";break;case "touch":this.bi=!1}this.Qb=this.Ab()&&F(nZ,this.j);b="blogger"==this.j||"books"==this.j||"docs"==this.j||"google-live"==this.j||"picasaweb"==this.j;this.Ca=!b;this.Wg=vH(!1,a.logwatch);this.o={};this.o.c="web";this.o.cver="html5";this.o.cplayer="UNIPLAYER";this.wa=vH(!1,a.edu_mode);this.K=!(!Qt().defaultPlaybackRate||Uc&&!Wr("chrome")||Xh||Wh||Wr("android")||Wr("silk"));if(a.use_media_volume)c=!1;else{var c=Qt(),d=c.muted;c.muted=!d;c=c.muted!=d}this.Ec=c;this.Pe=
Yh;this.ee=(Xh||Wh||$h)&&"blazer"!=this.j&&!ZC(this);this.Va=vH("adunit"!=this.ea&&"detailpage"!=this.ea&&!this.Qb,a.showinfo);this.isMobile=vH("blazer"==this.j,a.is_html5_mobile_device);this.I=vH(!1,a.playsinline);c=this.isMobile&&Jt&&2.3>=It;d=Wh&&!this.I||!c&&vH("native"==this.j,a.use_native_controls)?"3":"1";this.k="0"!=a.controls?d:"0";this.Sc=vH("blazer"==this.j||"touch"==this.j,a.use_tablet_controls);this.na="1"!=this.k?"0":this.Sc?"blazer"==this.j?"3":"1":wH("2",a.autohide,iZ);this.color=
wH("red",a.color,jZ);this.Oa="3"==this.k||vH(!1,a.modestbranding)&&"red"==this.color;if(d=vH(!1,a.nologo))var d=this.H?this.G:document.location.toString(),e=!!d&&-1!=d.search(Cf),d=Uf(d)||e;this.Qe=d;d=!this.Oa&&"1"==this.k;this.gb="embedded"==this.ea&&!this.Va&&!this.Qb&&!d;this.fe=this.Oe=c;this.C=!Wh;this.ya=this.H||!1;if(this.experiments.X)c="detailpage"!=this.ea?this.Me.substring(0,128):"";else if(c=yH("",a.eurl),"detailpage"==this.ea||"unknown"==c||"undefined"==c)c="";this.F=c;this.va=!!a.disableCast;
var g;this.wa?g="s.youtubeeducation.com":b?g="video.google.com":g=a.videostats_playback_base_url&&a.videostats_playback_base_url.split("/")[2]||"s.youtube.com";this.ge=g;this.hb="//"+g+"/api/stats/qoe";this.autoplay=vH(!1,a.autoplay);this.Ac=vH(!1,a.autoplayoverride);this.ob=this.autoplay||"detailpage"==this.ea;g=this.Ac||!this.isMobile&&!Wr("nintendo wiiu");this.da=this.ob&&g;g="detailpage"==this.ea&&"blazer"==this.j;this.ka=vH(!0,a.fs)&&(g||Ih());this.Ve=!!a.use_airplay_data_id;this.A=((g=(g=a.BASE_YT_URL)&&
g.match(sf))?g[0]:"")||"/";this.od=((g=a.gdatabaseurl)&&-1!=g.search(vf)?a.gdatabaseurl:null)||"//gdata.youtube.com/";this.Xa=yH(this.Xa,a.authuser);this.M=yH(this.M,a.content_v);this.Qk=vH(this.Qk,a.disablekb);this.S=yH(this.S,a.framer);this.la=wH(this.la,a.iv_load_policy,Ty);this.P=yH(this.P,a.hl);this.aq=vH(this.aq,a.bwlogging);this.Jd=vH(this.Jd,a.player_wide);this.Ei=vH(this.Ei,a.privembed);this.W=xH(this.W,a.live_chunk_readahead||a.hls_live_chunk_readahead);this.Xs=vH(this.Xs,a.loop);this.pageId=
yH(this.pageId,a.pageid);this.wm=CH(this.wm,a.vq);this.xm=yH(this.xm,a.playerapiid);this.qb=yH(this.qb,a.cr);this.Sm=vH(this.Sm,a.canplaylive);this.Cc=vH(this.Cc,a.rel);this.mc=vH(this.mc,a.enablesizebutton);this.yj=vH(this.yj,a.ss);this.theme=yH(this.theme,a.theme);this.Ab()&&(this.Fm=vH(this.Fm,a.retryneterr));"3"==this.k&&(this.la=3);this.useSsl=vH(this.useSsl,a.ssl);if(this.jj=vH(this.jj,a.ssl_stream))this.useSsl=!0;this.Sc&&(this.theme="dark");g=this.bh;if(b=a.video_container_override)c=b.split("x"),
2==c.length&&(b=parseInt(c[0],10),c=parseInt(c[1],10),g=isNaN(b)||isNaN(c)||0>=b*c?g:new G(b,c));this.bh=g;this.he=yH(this.he,a.attrib);this.ie=yH(this.ie,a.sk);this.protocol=this.useSsl?"https":"http";this.Vm=vH("0"!=this.k,a.store_user_volume);this.Xd=vH(this.Xd,a.use_media_volume);pZ(this,a);this.B=a}z(oZ,Q);var qZ={mH:"cbrand",oH:"cbr",pH:"cbrver",qI:"c",sI:"cver",rI:"cplayer",RI:"cmodel",$I:"cnetwork",jJ:"cos",kJ:"cosver",lJ:"cplatform"};f=oZ.prototype;f.eg=null;f.Xa="";f.Qk=!1;f.bi=!0;
f.ea="detailpage";f.aq=!1;f.Za=!1;f.dq=!1;f.Jd=!1;f.Ei=!1;f.kg=!1;f.Xs=!1;f.wm=zt;f.xm="";f.pageId="";f.Fm=!1;f.Sm=!0;f.Vm=!0;f.Xd=!1;f.ls=!0;f.Cc=!0;f.Yg=!1;f.mc=!1;f.Lf=!0;f.yj=!1;f.useSsl=!1;f.jj=!1;f.Jj=null;f.bh=null;f.Dj=null;f.wb=null;f.Tc="yt";function Wq(a,b){a.ta=b.get("d",a.ta);a.ga=b.get("f",a.ga)}
function pZ(a,b){a.D=void 0;var c;(c=b.adformat)||(c=(c=b.attrib)&&c in lZ&&c in mZ?mZ[c]+"_"+lZ[c]:void 0);if(c){var d=c.match(/^(\d*)_((\d*)_?(\d*))$/);d&&5==d.length&&(d=d[3],d=6==d||7==d||8==d||10==d,a.Ab()||d)&&(a.D=c,a.B.adformat=b.adformat,d||(a.ea="adunit"))}a.eg=b&&b.adpings?oj(b.adpings):null;c=b.agcid;a.kc=c;a.B.agcid=c;c=b.feature;a.O=c;a.B.feature=c;c=b.referrer;a.referrer=c;a.B.referrer=c;a.searchQuery=b.q;for(var e in qZ)c=qZ[e],d=b[c],void 0!=d&&(a.o[c]=d);a.Wg=vH(a.Wg,b.logwatch);
a.userAge=xH(a.userAge,b.user_age);a.T=yH(a.T,b.user_display_image);Vf(a.T)||(a.T="");a.ja=yH(a.ja,b.user_display_name);a.$b=yH(a.$b,b.user_gender);a.V=yH(a.V,b.eventid);a.oa=yH(a.oa,b.csi_page_type);a.ba=vH(a.ba,b.enablecsi)}
function rZ(a,b,c){switch(b.X){case 38:return a=b.videoId.indexOf(":"),Ke("//play.google.com/books/volumes/"+b.videoId.slice(0,a)+"/content/media",{aid:b.videoId.slice(a+1),sig:b.Wv});case 30:return c="//docs.google.com/",a.A!=oZ.prototype.A&&(c=a.A),Ke(c+"get_video_info",{docid:b.videoId,authuser:b.Xa,authkey:b.Ec,eurl:a.F});case 33:return Ke("//google-liveplayer.appspot.com/get_video_info",{key:b.videoId});default:var d={html5:"1",video_id:b.videoId,cpn:b.za,eurl:a.F,ps:a.j,el:a.ea,hl:a.P,list:b.playlistId,
agcid:a.kc,sts:16462,lact:sZ(a)?hZ():"-1"};a.Ba&&(d.forced_experiments=a.Ba);b.F?d.vvt=b.F:b.C&&(d.access_token=b.C);a.D&&(d.adformat=a.D);b.ta&&(d.iv_load_policy=b.ta);b.ya&&(d.itct=b.ya);b.Fg&&(d.autoplay="1");b.Sl&&(d.noiba="1");b.Vl&&(d.mdx="1");b.Me&&(d.ytrcc=b.Me);b.$l&&(d.utpsa="1");b.ee&&(d.is_fling="1");c.width&&(d.width=c.width);c.height&&(d.height=c.height);b.oa&&(d.ypc_preview="1");b.$d&&(d.splay="1");a.M&&(d.content_v=a.M);b.Ul&&(d.livemonitor=1);a.Xa&&(d.authuser=a.Xa);a.pageId&&(d.pageid=
a.pageId);a.V&&(d.ei=a.V);a.jj&&(d.ssl_stream="1");a.H&&(d.iframe="1");b.Rj&&(d.tst=b.Rj);b.contentCheckOk&&(d.cco="1");b.racyCheckOk&&(d.rco="1");sa(d,a.o);return Ke(a.A+"get_video_info",d)}}function tZ(a){return a.referrer?a.referrer.slice(0,128):""}f.getVideoUrl=function(a,b,c){return XD(this,a.videoId,a.playlistId,b,c)};function uZ(a){return"www.youtube-nocookie.com"==window.location.host||a.wa?"www.youtube.com":window.location.host}
function XD(a,b,c,d,e){b={v:b,list:c};d&&sa(b,d);a=Ke(a.protocol+"://"+uZ(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=oj(b);for(var g in e)b[g]=e[g];e=d+Ie(b);a=a+e}return a}
function vZ(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.G,v:b.videoId,p:"movies_playback"};b.o&&(c.fmt=b.o.id);b.za&&(c.cpn=b.za);b.X&&(c.partnerid=b.X);return Ke("//support.google.com/googleplay/",c)}
function wZ(a){var b={};if(!a.wb)return b;a.wb.webkitDecodedFrameCount&&(b.hmewdfc=a.wb.webkitDecodedFrameCount,b.hmewdrop=a.wb.webkitDroppedFrameCount,b.hmewvdbc=a.wb.webkitVideoDecodedByteCount,b.hmewadbc=a.wb.webkitAudioDecodedByteCount);a.wb.mozParsedFrames&&(b.hmempf=a.wb.mozParsedFrames,b.hmemdf=a.wb.mozDecodedFrames,b.hmempresented=a.wb.mozPresentedFrames,b.hmempainted=a.wb.mozPaintedFrames,b.hmempaintdelay=a.wb.mozPaintDelay);return b}function aE(){return hZ()}
function sZ(a){return a.experiments.M?"detailpage"==a.ea||"leanback"==a.ea:!0}function lE(a){return"leanback"==a.ea||a.Qb||!a.Cc&&!a.Yg?!1:!0}function mr(a){return"detailpage"!=a.ea&&"embedded"!=a.ea&&"profilepage"!=a.ea?!1:!0}f.Ab=function(){var a;a=document.location.toString();var b=(a=!!a&&-1!=a.search(tf))&&!this.H;return a&&this.H&&Uf(this.G)||b};function Hq(a){var b=null!=a.G&&0==a.G.search("^https?://www.youtube.com");return"detailpage"==a.ea||"profilepage"==a.ea||b}
function ZC(a){return Yr()||"tv"==a.o.cplatform}f.L=function(){this.wb=null;oZ.J.L.call(this)};function xZ(a,b){this.j=a;this.k=b;this.o=1}function yZ(a,b,c,d){d/=a.o;var e=GF(a.j)+1/HF(a.j),g;g=Math.max(.9*(d-3),FF(a.j)+8192*e);c=g/e/(b+c);c=Math.min(c,d);c=Math.max(a.k.H,Math.min(a.k.M,c));a=Math.max(a.k.D,Math.ceil(a.k.H*b));return Math.min(a,Math.max(Math.ceil(c*b),65536))}function zZ(a){var b=HF(a.j);a=FF(a.j)+1048576*GF(a.j);return b*Math.min(1,1048576/(b*a))}function AZ(a){return zZ(a)/a.o};function BZ(a,b,c){this.j=a;this.video=b;this.reason=c};function CZ(a,b,c,d){this.M=a;this.P=b;this.F=c;this.D=d;this.o=this.G=this.j=null;this.B="i";this.I=-1;this.C=this.A=null;this.k=[];this.H=this.K=0;this.O=null}function DZ(a,b,c){"m"==c&&Bt(a.j)&&!Bt(b)&&(c="a");if("m"==c&&Bt(b))return a.B=c,EZ(a,b),FZ(a),a.o=GZ(a),new BZ(HZ(a),a.o,c);var d=a.j.equals(b);if("m"==a.B&&Bt(a.j)&&d)return null;"r"!=c||d||(a.I=-1);EZ(a,b);b=GZ(a);if("r"==c&&b==a.o){if(d)return null;a.o=b;return new BZ(HZ(a),b,c)}a.B=c;return null}
function IZ(a,b){JZ(a);a.O=b;a.H=y();a.I=-1;EZ(a,a.j)}function JZ(a){return!!a.H&&9E4>=y()-a.H}function HZ(a){KZ(a);return a.A}function GZ(a){KZ(a);return a.C}function LZ(a){var b=a.B;a.B="a";a.I=y();return new BZ(a.G,a.o,b)}
function KZ(a){if(Bt(a.j)||!(8E3>y()-a.I)){a.H&&!JZ(a)&&(a.H=0,EZ(a,a.j));FZ(a);var b=AZ(a.M);if(Bt(a.j))a.C=a.F.j[a.k[a.k.length-1].id];else{for(var c=Math.min(a.K,a.k.length-1),d=b/1.05-a.A.info.ra;0<c&&!(a.k[c].ra<=d);c--);for(b=b/1.15-a.A.info.ra;c<a.k.length-1&&!(a.k[c+1].ra>=b);c++);a.K=c;a.C=a.F.j[a.k[c].id]}}}
function EZ(a,b){a.j=b;var c=a.D.k;if(!Bt(a.j)&&(c=gb(c,function(a){return a.ra>this.P.ra?!1:!this.F.j[a.id].B},a),JZ(a))){var c=gb(c,function(a){return a.id!=this.O.id},a),d=gb(c,function(a){a=kt(a);return"140"==a||"134"==a||"243"==a});d.length&&(c=d)}c.length||(c=a.D.k);c=gb(c,a.j.A,a.j);c.length||(c=[a.D.k[0]]);c.sort(function(a,b){return a.ra-b.ra});for(d=1;d<c.length;d++){var e=c[d-1],g=c[d];e.video.width>g.video.width?(rb(c,d),d--):1.15*e.ra>g.ra&&(rb(c,d-1),d--)}a.k=c}
function MZ(a){var b=E(a.D.j,function(a){return!!a.Kd&&a.Kd.isDefault}),b=b||a.D.j[0];a.A=a.F.j[b.id];FZ(a)}function FZ(a){if(!a.A.info.Kd&&(a.A=a.F.j[a.D.j[0].id],1<a.D.j.length)){var b=!1;if(Bt(a.j))b=240>a.j.j;else{for(b=0;b+1<a.k.length&&"tiny"==a.k[b].video.quality;)b++;var c=AZ(a.M)/1.15,b=a.A.info.ra+a.k[b].ra>c}b&&(a.A=a.F.j[a.D.j[1].id])}}
function NZ(a){var b=AZ(a.M)/1.05-a.A.info.ra,c=mb(a.k,function(a){return this.P.A&&this.P.A<ut[a.video.quality]?!1:a.ra<b},a);0>c&&(c=0);a.K=c;a.C=a.F.j[a.k[c].id]};function OZ(){this.j=this.k=!1}OZ.prototype.start=function(){this.k=!0};function PZ(a,b){this.H=a;this.o=b;this.B=[];this.j=[];this.A=this.k=null;this.C=0;this.ra=b.info.ra;this.F=this.G=!1;this.D=new OZ}function QZ(a,b){a.B.push(b);a.k=cb(b.info.j);a.C+=qG(b.info)}function RZ(a){for(;a.B.length&&5==a.B[0].state;){var b=a.B.shift();a.C-=qG(b.info);a.C+=cb(b.B).buffer.byteLength;C(b.B,a.K,a)}}PZ.prototype.K=function(a){if(4==a.info.type){var b=a.info.j.Pr(a);a.info==this.k&&(this.k=cb(b).info);C(b,this.K,this)}else 3==a.info.type&&this.j.push(a)};
function SZ(a){var b=tG(a.j[0]);return b.getInt32(0)>b.byteLength&&1==a.j.length}
function TZ(a,b){if(a.G)return a.j[0].aa;var c=a.o.info.k,d=a.o.Qh();if(a.j[0].info.B>=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.B>b||g||a.H.I)break}e--;var g=a.j[e].aa.end,h=a.j[e].info.D-b;if(d&&c&&0<=a.H.F&&h>a.H.F){c=Math.floor((b-a.j[e].info.B)/a.j[e].info.G*a.j[e].info.k);if(0==c)return null;g=a.j[e].aa.start+c-1}return new UF(a.j[0].j?0:a.j[0].aa.start,g)}
function UZ(a,b){for(var c;a.j.length;){if(a.j[0].aa.end>b.end){var d;c=a.j[0];var e=b.end-a.j[0].aa.start+1,e=Math.min(e,c.info.k),g=new kG(c.info.type,c.info.j,c.info.aa,c.info.A,c.info.startTime,c.info.duration,c.info.o,e,!1);d=WF(c.aa.start,e);g=new NG(g,c.buffer,d,c.j);e=new kG(c.info.type,c.info.j,c.info.aa,c.info.A,c.info.startTime,c.info.duration,c.info.o+e,c.info.k-e,c.info.F);d=new UF(d.end+1,c.aa.end);d=[g,new NG(e,c.buffer,d,!1)];c=d[0];a.j[0]=d[1]}else c=a.j.shift();d=a;g=c.info;d.A=
g;d.G&&d.A.C&&(d.G=!1);d.ra=Math.max(d.ra,g.j.info.ra);if(c.aa.end==b.end)break}a.j.length&&c.buffer==a.j[0].buffer||(a.C-=c.buffer.byteLength)}function VZ(a,b){var c=WZ(a,b);if(0<=c)return c;a.k=a.o.mi(b).j[0];XZ(a)&&(a.A=null);return a.k.startTime}
function YZ(a,b){ZZ(a);if(a.o.info.video&&a.A&&!a.A.C&&b){var c=kb(a.j,function(a){return a.info.C});a.j=xb(a.j,0,c+1);a.G=!0}else a.j=[];if(a.j.length)for(a.C=a.j[0].buffer.byteLength,c=1;c<a.j.length;c++)a.j[c].buffer!=a.j[c-1].buffer&&(a.C+=a.j[c].buffer.byteLength);else a.C=0}function $Z(a){a.D.k||a.D.start();YZ(a,!1);XZ(a)&&(a.A=null)}
function a_(a,b){for(var c=0;c<a.B.length&&b!==a.B[c];c++);if(c==a.B.length)b.dispose();else{for(;c<a.B.length;)a.I(a.B.pop());3==b.info.j[0].type?(c=b.info.j[0],c=new kG(c.type,c.j,c.aa,c.A,c.startTime,0,c.o,0,!1),a.k=c):a.k=null}}function b_(a){return ib(a.j,function(a){return a.info.C})}function XZ(a){return!!a.A&&a.A.F}
function c_(a){var b=[];a.A&&b.push(a.A);C(a.j,function(a){b.push(a.info)});C(a.B,function(a){C(a.info.j,function(a){3!=a.type&&4!=a.type||b.push(a)})});a.k&&a.k!=cb(b)&&b.push(a.k);return b}function d_(a){if(!a.k||!a.k.k)return!1;a=c_(a);if(!a.length)return!1;for(var b=1;b<a.length;b++)if(!(1E-6>=Math.abs(a[b].B-a[b-1].D)))return!1;return!0}
function WZ(a,b){if(d_(a)){var c;t:{c=c_(a);for(var d=0;d<c.length;d++)if(c[d].B<=b&&c[d].startTime+c[d].duration>=b){c=c[d];break t}c=null}if(c)return c.startTime}return NaN}function e_(a){return ib(a.B,function(a){return 3<=a.state})}function f_(a){return!(!a.k||!a.o.Pc()||a.k.j==a.o)}function g_(a){return f_(a)&&a.k.j.info.ra<a.o.info.ra}PZ.prototype.I=function(a){a.dispose();this.C-=qG(a.info)};function ZZ(a){C(a.B,a.I,a);a.B=[];a.k=null}function h_(a){return!!a.k&&a.k.A<a.o.index.rg()};function i_(a,b,c){this.D=a;this.info=b;this.timing=c;this.state=1;this.j=this.B=null;this.F=this.A=this.G=0;this.o=NaN;this.C=this.k=this.H=null;this.I=0}i_.k=!1;i_.j=1E4;function j_(a){a.k?(a=a.k.j,OF(a),a=a.B):a="";return a}f=i_.prototype;f.getErrorCode=function(){return this.C};function k_(a){var b;b=a.timing;b={rt:((y()-b.o)/1E3).toFixed(2),lb:b.k,pt:(b.M/1E3).toFixed(2),pb:b.K};b.shost=j_(a);a.I&&(b.rc=a.I.toString());return b}
f.start=function(){var a=1==this.state,b=6==this.state;1==this.state||4==this.state||b&&l_(this);m_(this,2);var c;(c=!this.D.O)||(c=this.info.k,c=this.G>c.o&&1<=c.k);c?c=!1:(c=j_(this),c=bc(AF(this.timing.j.j,c)),c=2<=c.Ud&&0==c.done&&(0<c.ys||0<c.Xo));if(c||b&&2<=this.A){b=this.info.k;if(!(this.G<=b.o)){b.k++;b.o=iG-1;c=PF(b.j);var d=new I(c);d.mb.match("\\.googlevideo\\.com$")?(Se(d,"redirector.googlevideo.com"),c=d.toString()):d.mb.match("r[1-9].*\\.c\\.youtube\\.com$")?(Se(d,"www.youtube.com"),
c=d.toString()):c=Xf(c);b.j=new NF(c);b.j.set("cmo",encodeURIComponent("pf="+b.k))}this.A=0}else if(b){this.A++;a=i_.j*(.5+Math.random());1==this.A&&(a=2E3);L(x(this.Hn,this),a);return}a?this.Hn():L(x(this.Hn,this),0)};
f.Hn=function(){if(!this.ha()){this.G=iG++;this.k=EC(this.info);this.A&&this.k.set("playerretry",this.A.toString());var a=DC(this.k);this.j=new XMLHttpRequest;try{this.j.open("GET",a)}catch(b){this.C="net.ssl";m_(this,6);return}this.j.responseType="arraybuffer";this.j.withCredentials=!0;a=x(this.OC,this);this.j.addEventListener("load",a,!1);this.j.addEventListener("error",a,!1);this.j.send();this.F=0;var a=this.timing,c=j_(this);a.G=c;AF(a.j.j,c).Ud+=1;a.o=y();a.C=a.o;a.k=0;a.H=!1;a.I=!1;a.B=0;a.F=
IF(a.j);n_(a);a.M=a.D-a.o;this.j.addEventListener("progress",x(this.PC,this),!1);0<this.D.k&&(this.o=L(x(this.Nr,this),this.D.k));this.k.get("itag");this.k.get("range");Math.round(this.info.j[0].B);Math.round(cb(this.info.j).D);y()}};f.PC=function(a){if(!this.ha()){this.j&&(this.I=this.j.status);var b=this.timing,c=a.timeStamp;a=a.loaded;c=c>b.o&&4E12>c?c:y();20>c-b.C||o_(b,c,a);b=this.timing;b.k>b.P&&8192<b.k&&3>this.state&&m_(this,3)}};
f.OC=function(a){var b=this.j;if(!this.ha()&&a.target==b){this.o&&(M(this.o),this.o=NaN);this.I=b.status;a=!1;400<=b.status?(a=!0,this.C="net.badstatus"):null==b.response&&(a=!0,this.C="net.connect");if(!a){var b=b.response,c;t:{if(2048>b.byteLength&&(c=String.fromCharCode.apply(String,new Uint8Array(b)))&&-1!=c.search(Af))break t;c=""}if(c){var b=this.info.k,d=this.k;d.j===b.j&&(b.j=gG(d,c));m_(this,4)}else if(this.info.aa&&b.byteLength!=this.info.aa.length)a=!0,this.C="fmt.unparseable";else{c=this.info.j;
if(1==c.length&&!c[0].aa){var d=c[0],e=WF(0,b.byteLength),d=new kG(d.type,d.j,e,d.A,d.startTime,d.duration,d.o,e.length,d.F);c[0]=d}for(var d=[],e=0,g=!1,h=!1,k=0;k<c.length;k++){var l=c[k],p=b,t=WF(e,l.k),w=!1;if(1==l.type)b.slice?p=b.slice(e,e+l.k):(g=new Uint8Array(b,e,e+l.k),p=(new Uint8Array(g)).buffer),t=WF(0,l.k),g=!0;else if(3==l.type||4==l.type)w=g&&!h,h=!0;d.push(new NG(l,p,t,w));e+=l.k}this.B=d;c=this.timing;d=y();b=b.byteLength;c.H||(c.H=!0,AF(c.j.j,c.G).done+=1,d=d>c.o&&4E12>d?d:y(),
o_(c,d,b),e=(d-c.o)/1E3,!c.I&&8192<=c.k&&CF(c.j,e,b),8192<=c.k&&(e=c.j,h=c.B,b=Math.max(b,8192),e.A.k(1,h/b),JF(e)),EF(c.j,d-c.o,c.k),c.A&&(c.A=!1));y();m_(this,5)}}a&&(l_(this),m_(this,6),a=this.timing,y(),AF(a.j.j,a.G).Xo+=1)}};function l_(a){if(2>a.A)a=!0;else{var b=a.info.k;a=!(a.G>b.o&&1<=b.k)}return a}function m_(a,b){a.state=b;if(4<=a.state){var c=a.timing;c.A&&(c.A=!1)}a.H&&a.H(a)}
f.Nr=function(){this.o=NaN;if(!this.ha()){var a=y(),b=!1;if(8192<=this.timing.k){var c=this.timing.D;n_(this.timing);this.timing.D-c>=.8*this.D.k?(this.F++,b=5<=this.F):this.F=0}else b=this.timing,b=5E3<a-(b.o+1E3*b.F.delay);if(b){b=this.timing;a=a>b.o&&4E12>a?a:y();b.B+=(a-b.C)/1E3;var c=b.j,d=b.K,e=b.B,d=Math.max(d,8192);c.A.k(1,e/d);JF(c);EF(b.j,a-b.o,b.k);AF(b.j.j,b.G).ys+=1;p_(this);this.C="net.timeout";m_(this,6)}else this.o=L(x(this.Nr,this),this.D.k)}};f.ha=function(){return-1==this.state};
f.dispose=function(){lG(this.info.j[0])&&5!=this.state&&(this.info.j[0].j.o=!1);m_(this,-1);this.H=this.B=null;p_(this);M(this.o);this.o=NaN};function p_(a){if(a.j){var b=a.j;a.j=null;b.abort()}a=a.timing;a.A&&(a.A=!1)};function q_(a,b,c){this.j=a;this.K=b;this.P=c;this.k=this.C=this.o=NaN;this.I=this.H=this.A=!1;this.B=0;this.D=this.M=NaN}function o_(a,b,c){if(a.A){var d=(b-a.C)/1E3,e=c-a.k;0<e&&(.2<d||1024>e?(a.B+=d,.2<d&&CF(a.j,.05,e)):CF(a.j,d,e),a.I=!0)}else 8192<=c&&(d=a.j,d.B.k(1,(b-a.o)/1E3),JF(d),a.A=!0);a.C=b;a.k=c}function n_(a){var b=a.K-a.k,b=1E3*(b*a.F.tailDelay+b/a.F.byterate),c=y(),b=8192<=a.k?b+c:b+Math.max(c,a.o+1E3*a.F.delay);a.D=b};function r_(a,b,c,d){T.call(this);this.F=a;this.D=b;this.C=c;this.k=this.o=null;this.H=new xZ(a,b);this.j=null;this.B=new CZ(this.H,b,this.C,d);this.A=this.ka=this.ja=this.V=this.W=NaN;this.K=!1;this.O=NaN;this.ba=0;this.da=this.G=!1;this.la={};this.S="";this.ga=!1;this.X=this.I=0}z(r_,T);r_.C=!1;r_.j=2/24;r_.o=1E3;r_.k=.2;r_.B=1E4;r_.A=.2;f=r_.prototype;
f.initialize=function(a,b,c){a=a||0;var d=this.B;d.B="i";EZ(d,b);MZ(d);d.G=d.A;NZ(d);d.o=d.C;b=LZ(d);this.o=new PZ(this.D,b.j);this.k=new PZ(this.D,b.video);this.publish("videoformatchange",b);this.A=a;c?(this.G=!0,s_(this)):t_(this)};function t_(a){0==a.A&&(a.o.o.o||u_(a,a.o,!0),a.k.o.o||u_(a,a.k,!0));a.seek(a.A);v_(a,"gv")}f.resume=function(){this.G&&(this.G=!1)};
f.Bw=function(a){this.resume();this.j=a;eu(a)&&(a.j.addEventListener("updateend",x(this.qc,this),!1),a.k.addEventListener("updateend",x(this.qc,this),!1));v_(this,"msa");this.T&&this.M&&Kw();this.qc();this.ja=Kf(x(this.qc,this),r_.B)};function w_(a){a.j&&a.j.j&&a.j.j.removeEventListener&&(a.j.j.removeEventListener("updateend",x(a.qc,a),!1),a.j.k.removeEventListener("updateend",x(a.qc,a),!1));a.j=null;a.G=!0;a.o&&(YZ(a.k,!1),YZ(a.o,!1))}function x_(a){a.j&&cu(a.j)&&w_(a)}
function y_(a,b,c){if(!b.D.k||!c.remove)return!1;if(c.updating)return!0;if(!b.D.j&&c.buffered.length)return a=c.buffered.end(c.buffered.length-1),c.remove(0,a),b.D.j=!0;b=b.D;b.k=!1;b.j=!1;a.publish("seekrequired");return!1}
function z_(a,b,c){if(a.G)return!1;if(!b.k){if(!b.o.Pc())return b.o.o||u_(a,b,!1),!1;VZ(b,a.A)}var d=b.B.length+c.B.length;(e_(b)||e_(c)||a.C.isLive)&&--d;if(2<=d+1)return!1;d=b.k;4==d.type&&d.j.Pc()&&(b.k=cb(d.j.kj(d)),d=b.k);!d.F&&!d.j.oh(d)||d.j.info.k&&4==d.type?a=!1:g_(b)&&!a.D.o?a=!0:(!(c=d.F||b.C+c.C>a.D.j||!!(c.k&&!c.k.F&&c.k.D<d.D))&&(c=3==d.type)&&(d=d.D,b=A_(a,b,!0),Bt(a.B.j)||(c=(y()-a.ba)/1E3,b=Math.min(b,30+2*c)),c=d>a.A+b),a=c?!1:!0);return a}
function B_(a,b,c){if(!a.j||bu(a.j)||eu(a.j)){var d=a.A,e;e=a.H;c=yZ(e,b.o.info.ra,c.o.info.ra,0);e=FF(e.j)+c*GF(e.j)+c/HF(e.j);e=Math.max(e,e+5-c/b.o.info.ra);d=d+e;a=a.B;t:{a=!a.o||!a.C||a.o.info.ra>=a.C.info.ra?!1:a.C.info.video.width>1.6*a.o.info.video.width?!0:"r"==a.B;if(b.B.length){if(b.B[0].info.j[0].startTime<=d)break t;ZZ(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.C-=c.buffer.byteLength));b.B.length?b.k=cb(b.B[b.B.length-
1].info.j):b.j.length?b.k=cb(b.j).info:b.k=b.A;a&&b.k&&d<b.k.startTime&&(b.k=b.o.mi(d,!0).j[0])}}}
function C_(a,b,c){z_(a,b,c);var d=b.k;if(b.k.j.Pc()){g_(b)&&!a.D.o&&(B_(a,b,c),b.k||VZ(b,a.A));var d=b.k,e=d.D-a.A,g=!d.aa||0==d.k&&0==d.o?0:d.aa.length-(d.o+d.k);f_(b)&&(g_(b)||25>=e)&&0==g&&(g=d.startTime+r_.j,d.k&&(g+=d.duration),VZ(b,g),d=b.k);d.j.Qh()?(c=yZ(a.H,d.j.info.ra,c.o.info.ra,e),e=f_(b),c=aH(d.j,d,c),c.aa&&1<c.j.length&&(e?c=aH(d.j,d,c.j[0].k):(e=c.j[c.j.length-1],g=e.k/c.aa.length,!e.C&&.4>g&&(c=aH(d.j,d,c.aa.length-e.k)))),d=c):d=CC(d.j,d)}else d.j.Qh()?(c=yZ(a.H,b.o.info.ra,c.o.info.ra,
0),d=aH(d.j,d,c)):d=CC(d.j,d);QZ(b,D_(a,d))}function D_(a,b){if(3==b.j[b.j.length-1].type){var c;t:{c=a.B;var d=b.j[0].j;if(d.info.video){if(c.o!=d){c.o=d;c=LZ(c);break t}}else c.G=d;c=null}c&&a.publish("videoformatchange",c)}c=qG(b);var d=a.F,e=a.H,g=Math.min(2.5,FF(e.j)),e=zZ(e);c=new i_(a.D,b,new q_(d,c,c-g*e));d=x(a.JB,a);c.H=d;c.start();return c}
f.JB=function(a){if(!this.ha()&&3<=a.state){var b=a.info.j[0].j,c=!this.T&&b.info.video,d=!this.M&&b.info.k;4==a.state?(c?v_(this,"vrr"):d&&v_(this,"arr"),a.start()):5==a.state?(c?(this.T=a.k?DC(a.k):"",Mw()):d&&(this.M=a.k?DC(a.k):""),C(a.B,function(a){lG(a.info)&&a.info.j.yp(a)}),jb(a.B,function(a){return OG(a)})&&!a.B[0].info.j.Tl()?this.qc():this.Fe(!0,"fmt.unparseable",k_(a))):3==a.state?(this.qc(),c&&Mw()):6==a.state&&l_(a)?(this.Fe(!1,a.getErrorCode(),k_(a)),(c=b.info.video&&0<a.A&&90&&!JZ(this.B))&&
IZ(this.B,b.info),6==a.state&&"net.timeout"==a.C||c?(a_(b.info.video?this.k:this.o,a),this.qc()):a.start()):lG(a.info.j[0])?(b.B=!0,this.qc()):this.Fe(!0,"net.retryexhausted",k_(a))}};function E_(a){if(isNaN(a.W)){var b=x(a.qc,a);a.W=L(b,0)}}function s_(a){if(isNaN(a.V)){var b=x(function(){this.V=NaN;this.qc()},a);a.V=L(b,r_.o)}}
f.qc=function(){this.W=NaN;x_(this);if(this.j&&!du(this.j))if(this.C.isLive)Infinity!=this.O&&(this.O=Infinity,this.j.If(Infinity));else if(!isFinite(this.O)){var a=Math.floor(Math.max(this.o.o.index.Tf(),this.k.o.index.Tf()));0<a&&(this.j.If(a),this.O=a)}if(!this.ha())if(a=this.C,y()-a.H>=a.C){if(3==this.C.A&&(this.Fe(!(3>this.C.k),this.C.getErrorCode(),{rc:this.C.K.toString()}),!(3>this.C.k)))return;a=this.C;if(3!=a.A||y()-a.G>=1E3*Math.pow(2,a.k))if(a=this.C,1!=a.A){var b;t:{var c=a.j;for(b in c){b=
c[b];break t}b=void 0}b=Ke(a.I,{start_seq:(b.index.Hb()+1).toString()});a.G=y();iH(a,b)}s_(this)}else if(this.C.isLive&&(h_(this.k)||h_(this.o))&&(b=F_(this),isNaN(b)||this.seek(b)),"prerender"==window.document.webkitVisibilityState)s_(this);else if(x_(this),RZ(this.k),RZ(this.o),this.o.o.o||(!this.G||KF(this.F)?t_(this):s_(this)),!this.j||y_(this,this.o,this.j.j)||y_(this,this.k,this.j.k)||((b=G_(this,this.k,this.j.k))&&!this.I&&(this.I=y(),v_(this,"vda"),this.X&&Mw()),a=Mr(this.j.k.buffered,this.A+
r_.j),isNaN(a)&&!XZ(this.k)&&this.j.j.buffered.length||(XZ(this.k)&&(a=NaN),a=G_(this,this.o,this.j.j,a),b|=a,a&&!this.X&&(this.X=y(),v_(this,"ada"),this.I&&Mw())),XZ(this.k)&&XZ(this.o)&&bu(this.j)&&!du(this.j)&&(a=this.j,bu(a)&&a.o.endOfStream(),a=this.F,tq(IF(a)),a.o=y()),b&&!eu(this.j)&&E_(this)),H_(this,this.k,GZ(this.B)),H_(this,this.o,HZ(this.B)),this.k.o.B||this.o.o.B)this.Fe(!0,"net.retryexhausted");else{b=this.I?y()-this.I:0;if(this.ga||b>=this.D.G)z_(this,this.k,this.o)&&C_(this,this.k,
this.o),z_(this,this.o,this.k)&&C_(this,this.o,this.k);this.D.K&&this.S&&!this.G&&KF(this.F)&&(b=this.S,this.S="",a=qj(b),Aj(b,{format:"RAW",responseType:"arraybuffer",timeout:15E3,onError:x(this.Fe,this,!1,"pathprobe.net",{shost:a})}))}};
function G_(a,b,c,d){if(c.updating)return!0;var e=b.j.length?b.j[0]:null;if(!e)return!1;!b.A||b.A.C||mG(b.A,e.info)||(b.A=null,bu(a.j)&&c.abort(),c.j=null);var g;if(g=a.C.isLive){var h;b.j.length&&1==b.j[0].info.j.info.j&&0==b.j[0].info.o&&8<b.j[0].info.k&&3==b.j[0].info.type?(h=tG(b.j[0]),h=!!DG(h,0,1718909296)):h=!1;g=h}h=!(!b.H.I||!b.j.length||1!=b.j[0].info.j.info.j||0!=b.j[0].info.o)&&!a.C.B;if(g)c.j=null;else{if(g=h||!e.j)g=e.info.j.j,c.j==g?g=!1:(I_(a,c,g),c.j=g,a.publish("initsegment",c.j),
g=c.updating);if(g)return!0}g=A_(a,b,!1);g=a.A+g;0<=d&&(g=Math.min(g,d));d=TZ(b,g);if(!d)return!1;if(h){if(SZ(b))return!1;var k;t:{SZ(b);h=b.j[0];var l=tG(h);g=l.getInt32(0);if(g>l.byteLength){var p=b.j[1];if(p.aa.length+l.byteLength<g){k=null;break t}k=new Uint8Array(g);l=new Uint8Array(h.buffer,h.aa.start,h.aa.length);k.set(l);l=new Uint8Array(p.buffer,p.aa.start,g-h.aa.length);k.set(l,h.aa.length);l=new DataView(k.buffer)}var t=h.info.j.index.Zk(h.info.A);(l=CG(l,t))?(k?(UZ(b,h.aa),UZ(b,WF(p.aa.start,
g-h.aa.length))):UZ(b,WF(h.aa.start,g)),k=l):k=null}if(k)return I_(a,c,new Uint8Array(k)),!0}k=new Uint8Array(e.buffer,d.start,d.length);a.C.B&&3==e.info.type&&ha(c.timestampOffset)&&(p=0,p=a.D.P&&!b.F?-PG(e):-(PG(e)-e.info.startTime),Math.abs(c.timestampOffset-p)>r_.A&&(b.A&&b.A.A+1==e.info.A&&(p=Mr(c.buffered,b.A.startTime)-PG(e)),c.timestampOffset=p));if(!I_(a,c,k))return $Z(b),!0;a.C.B&&a.D.P&&!b.F||UZ(b,d);b.F||(b.F=!0);e.j&&(c.j=e.info.j.j,a.publish("initsegment",c.j));return!0}
function I_(a,b,c){if(eu(a.j))try{b.appendBuffer(c)}catch(d){return!1}else b.append(c);return!cu(a.j)}function A_(a,b,c){var d;d=!a.D.o&&(Bt(a.B.j)||a.D.S&&a.da)?b.o.info.k?10485760:62914560:b.o.info.k?a.D.B:a.D.C;c&&(d+=a.D.j);return d/(Bt(a.B.j)?b.k?b.k.j.info.ra:b.o.info.ra:b.ra)}
function F_(a){if(a.C.isLive){var b=a.k.o.index.rg(),c=a.k.o.index.Hb(),d=a.k.o.index;if(1>a.D.liveChunkReadahead)return d.Se(c)+d.nh(c)-r_.k;a=Math.max(b,c-a.D.liveChunkReadahead+1);return d.Se(a)+r_.k}return Math.floor(Math.min(a.o.o.index.Tf(),a.k.o.index.Tf()))}f.seek=function(a){if(!this.ha()){x_(this);this.ba=y();this.k.o=GZ(this.B);var b=J_(this,this.k,a,this.j&&this.j.k);this.o.o=HZ(this.B);var c=J_(this,this.o,b,this.j&&this.j.j);this.A=Math.max(a,b,c);this.K=!0;E_(this)}};
function J_(a,b,c,d){if(b.o.Pc())if(d){var e=Mr(d.buffered,c),g=NaN,h=b.A;h&&(g=Mr(d.buffered,h.j.index.Se(h.A)));if(e==g&&d_(b))return c;d=WZ(b,c);if(0<=d)return d;YZ(b,!0);b.o.info.video&&b.A&&!b.A.C&&!b_(b)&&(d=b.A,b.j.length&&(d=cb(b.j).info),d=b.k||d,d=aH(d.j,d,d.aa.length-(d.k+d.o)),QZ(b,D_(a,d)));if(isNaN(e))return VZ(b,c);VZ(b,e+r_.j)}else VZ(b,c);else b.o.o||u_(a,b,!1),0!=c&&ZZ(b);return c}function H_(a,b,c){b.o!=c&&(b.o=c,c.o||u_(a,b,!1))}
function u_(a,b,c){var d=r("ytplayer.playback_delay");d?(a.Fe(!1,"playback.delay",{ms:d}),a.ka=L(x(a.So,a,b,c),d)):a.So(b,c);b.o.o=!0}f.So=function(a,b){var c=b?65536:0;b&&!isNaN(2)&&(c=Math.floor(Math.max(c,2*a.o.info.ra)));c=a.o.hp(c);C(c,function(b){var c=D_(this,b);!lG(b.j[b.j.length-1])&&QZ(a,c)},this)};f.L=function(){w_(this);this.o&&(ZZ(this.o),ZZ(this.k));Lf(this.ja);M(this.ka);this.k=this.o=null;r_.J.L.call(this)};
f.Fe=function(a,b,c){var d;if(c)for(var e in c)d=(d?d+";":"")+e+"."+c[e];this.publish("error",new wq(b,a,d));a&&(this.j&&bu(this.j)&&(a=this.j,bu(a)&&a.o.endOfStream("network")),this.dispose())};
r_.prototype.getDebugInfo=function(){var a={lct:this.A.toFixed(3),lsk:this.K,lmf:Bt(this.B.j),lbw:HF(this.F).toFixed(3),lhd:FF(this.F).toFixed(3),ltd:(1E9*GF(this.F)).toFixed(3),laa:this.o.A?oG(this.o.A):"",lva:this.k.A?oG(this.k.A):"",lar:this.o.k?oG(this.o.k):"",lvr:this.k.k?oG(this.k.k):""};this.j&&!cu(this.j)&&(a.lab=Kr(this.j.j.buffered),a.lvb=Kr(this.j.k.buffered));return a};function v_(a,b,c){a.la[b]=c?window.performance.timing.navigationStart+c:y()};function K_(a,b,c,d){Q.call(this);this.o=a;this.H=b;this.C=c;this.j=d;this.B="";this.k=this.D=this.F=this.G=null;this.A=new Xt(this);R(this,this.A);this.j&&(Yt(this.A,this.j,["message","mskeymessage"],this.Tq),Yt(this.A,this.j,["error","mskeyerror"],this.Sq),Yt(this.A,this.j,["ready","mskeyadded"],this.Rq))}z(K_,Q);f=K_.prototype;f.setCallbacks=function(a,b,c,d){this.G=a;this.F=b;this.D=c;this.k=d};f.Tq=function(a){this.G.call(this.k,a)};
f.Sq=function(a){var b;this.j?(b=this.j.error.code,a=this.j.error.systemCode):(b=a.errorCode.code,a=a.systemCode);this.F.call(this.k,b,a)};f.Rq=function(a){this.D.call(this.k,a)};f.update=function(a){this.j?this.j.update(a):this.o.addKey?this.o.addKey(this.H.j,a,this.C,this.B):this.o.webkitAddKey(this.H.j,a,this.C,this.B)};f.L=function(){this.o=null;K_.J.L.call(this)};function L_(a,b){Q.call(this);this.j=a;this.A=b;this.C={};this.o=null;this.B=new Xt(this);R(this,this.B);ft()||(Yt(this.B,this.j,["keymessage","webkitkeymessage"],this.G),Yt(this.B,this.j,["keyerror","webkitkeyerror"],this.F),Yt(this.B,this.j,["keyadded","webkitkeyadded"],this.D));this.k=null}z(L_,Q);function M_(a){a.k=new (ft())(a.A.j);a.j&&(a.j.msSetMediaKeys?a.j.msSetMediaKeys(a.k):a.j.setMediaKeys(a.k))}
function N_(a,b){var c=a.C[b.sessionId];!c&&a.o&&(c=a.o,a.o=null,c.B=b.sessionId,a.C[b.sessionId]=c);return c}L_.prototype.G=function(a){var b=N_(this,a);b&&b.Tq(a)};L_.prototype.F=function(a){var b=N_(this,a);b&&b.Sq(a)};L_.prototype.D=function(a){var b=N_(this,a);b&&b.Rq(a)};L_.prototype.L=function(){this.j=null;L_.J.L.call(this)};function O_(a,b,c){this.url=a;this.j=b;this.k=c};function P_(a,b,c){this.j=a;this.headers=b;this.message=c};function Q_(a,b,c,d,e){Q.call(this);this.H=a;this.k=d;this.k.subscribe("oauthtoken",this.Bt,this);this.B={session_id:e};vr(this,a.o);this.j=[];this.A=this.D=this.G=!1;var g;try{var h=c.j;if(ft()){b.k||M_(b);var k=c.k||"video/mp4",l;if("com.microsoft.playready"==b.A.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.k.createSession(k,h,p)}else l=
b.k.createSession(k,h);g=new K_(null,null,null,l)}else b.j.generateKeyRequest?b.j.generateKeyRequest(b.A.j,h):b.j.webkitGenerateKeyRequest(b.A.j,h),b.o=new K_(b.j,b.A,h,null),g=b.o}catch(t){b="g",t instanceof DOMException&&(b+=t.code),this.k.publish("licenseerror","drm.unavailable",b,"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"),g=null}if(this.o=g)this.o.setCallbacks(this.In,this.hF,this.gF,this),R(this,this.o)}z(Q_,Q);f=Q_.prototype;f.Bt=function(a){this.F=a};
function vr(a,b){if(Sf(b)){for(var c in a.B)b=Qe(b,c,a.B[c]);a.C=b}else R_(a,"drm.net","u")}f.start=function(){this.ha()||(this.G=!0,this.j.length&&this.In(this.j.shift()))};
f.In=function(a){if(!this.ha()){var b=a.defaultURL||a.destinationURL;this.A&&b&&vr(this,b);if(this.G){a=a.message;if("com.microsoft.playready"==this.H.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(!cL)for(cL={},dL={},c=0;65>c;c++)cL[c]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c),dL[cL[c]]=c,62<=c&&(dL["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(c)]=
c);for(var c=dL,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",VC:a,responseType:"arraybuffer",withCredentials:!0,ab:this.dB,onError:this.Uq,context:this};b=this.C;this.F&&(b=Qe(b,"access_token",this.F));Aj(b,a)}else this.j.push(a),
this.D||(this.D=!0,this.k.publish("newsession",this))}};f.gF=function(){this.ha()||(this.A||(this.k.publish("sessionready"),this.A=!0),this.j.length&&this.In(this.j.shift()))};
f.dB=function(a){if(!this.ha())if(0!=a.status&&a.response){t:{a=new Uint8Array(a.response);var b=0,c=String.fromCharCode.apply(String,a.subarray(0,16384)).split("\r\n"),d=c[0];rb(c,0);c.pop();var b=b+(d.length+2),e=d.match(/^GLS\/1.\d ([0-9]{1,3}) (\w+)$/);if(null!=e)for(var d=$a(e[1]),g={},h=0;h<c.length;h++){e=c[h];b+=e.length+2;if(0==e.length){a=new P_(d,g,a.subarray(b));break t}e=e.match(/([^:]+):\s+([^]+)/);if(null==e)break;g[e[1]]=e[2]}a=null}a?0!=a.j?R_(this,"drm.auth","f"+a.j,Zs(a.j)):(b=
(b=a.headers["Authorized-Format-Types"])?b.split(","):null,c=null,(d=a.headers["Heartbeat-Url"])&&(c=new O_(d,parseInt(a.headers["Heartbeat-Interval-Secs"],10)||60,parseInt(a.headers["Heartbeat-Num-Retries"],10)||4)),(b||c)&&this.k.publish("newlicense",b,c),this.o.update(a.message)):R_(this,"drm.net","p","YTP_ERROR_SERVER_ERROR")}else this.Uq(a)};f.hF=function(a,b){this.ha()||R_(this,"drm.keyerror","s"+a+"."+b)};f.Uq=function(a){R_(this,"drm.net","r"+a.status)};
function R_(a,b,c,d){a.ha()||a.k.publish("licenseerror",b,c,d);a.dispose()}f.L=function(){this.k=null;Q_.J.L.call(this)};function S_(a,b){this.j=a;this.k=b||null};function T_(a,b){T.call(this);this.G=a;this.j=b;this.subscribe("newlicense",this.rB,this);this.subscribe("newsession",this.sB,this);this.subscribe("sessionready",this.QB,this);this.M=nD();this.A=null;this.F={};this.k=[];this.o=xt;this.K=new L_("com.microsoft.playready"==b.j?null:a,b);R(this,this.K);this.C=new L_(a,b);R(this,this.C);this.D=2;this.H=new Xt(this);R(this,this.H);this.B=!1;this.I=null;Yt(this.H,this.G,ft()?["needkey","msneedkey"]:["needkey","webkitneedkey"],this.qB)}z(T_,T);f=T_.prototype;
f.qB=function(a){U_(this,new S_(a.initData,a.contentType),!0)};
function U_(a,b,c){if(!(a.ha()||"com.microsoft.playready"==a.j.j^!c||(c=b.j,a.B&&"widevine"==a.j.k))){var d=String.fromCharCode.apply(String,c);if(!a.F[d]){a.F[d]=!0;d="clearkey"==a.j.k;if(112==c[4]&&115==c[5]&&115==c[6]&&104==c[7]&&d){t:{for(var e=new DataView(c.buffer),d=0;d<e.byteLength;){var g=e.getUint32(d,!1);if(1886614376!=e.getUint32(d+4,!1))break;if(1477738184==e.getUint32(d+12,!1)&&69420633==e.getUint32(d+16,!1)&&2464609580==e.getUint32(d+20,!1)&&1558758348==e.getUint32(d+24,!1)){e=e.getUint32(d+
28,!1);if(16!=e)break;c=c.subarray(d+32,d+32+e);break t}d+=g}c=null}if(!c)return}a.k.push(b);1<a.k.length||(V_(a,b),a.B=!0)}}}function V_(a,b){var c=new Q_(a.j,a.K,b,a,a.M);c.Bt(a.A);R(a,c)}f.rB=function(a,b){a&&F(a,"HD")&&!At(this.o)&&"com.microsoft.playready"!=this.j.j&&(this.o=zt,this.publish("qualitychange"));b&&!this.I&&(this.I=b,this.publish("heartbeatparams",b))};f.sB=function(){this.ha()||(this.k.shift(),this.k.length&&V_(this,this.k[0]))};f.QB=function(){this.D--;0==this.D&&M_(this.C)};
f.L=function(){this.G=null;this.k=[];T_.J.L.call(this)};function W_(a){this.k={};this.k.c1a=x(this.A,this);this.k.c3a=x(this.B,this);(this.j=a)&&this.j.ba?this.o=oj(this.j.ba):this.o=[]}W_.prototype.A=function(){var a=r("yt.abuse.botguardInitialized");return a&&a()?(a=r("yt.abuse.invokeBotguard")())?"r1a="+a:null:null};W_.prototype.B=function(a){return"r3a="+Math.floor(this.j.lengthSeconds%Xa(a.c3a))};function X_(a,b,c){this.j=a;this.reason=b;this.k=c};function Y_(a,b){this.j=a;this.k=b}function Z_(a,b){return Ct(Ct(a.j.wm,b.Jm),b.xj)}
function $_(a,b){var c;c=!!b.j.j;var d;Wh&&!a.j.I&&(d=window.screen&&window.screen.width?new G(window.screen.width,window.screen.height):null);d||(d=a.j.bh?a.j.bh.clone():a.k.kb());(Wh||Zc||c)&&d.scale(window.devicePixelRatio||1);c=d;var e;d=b.j.k;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=Pq("auto",e.quality,!1)}else e=zt;c=e.j;Yr()&&(c=Math.max(c,ut.hd1080));if(d=(Wr("armv7")||Wr("android"))&&!ZC(a.j))d=b.j.k[0],d="9"==d.o||"("==
d.o;d&&(c=Math.min(c,ut.large));c=Math.max(c,ut.medium);e.j!=c&&(e=new wt(e.k,c,e.o));return e};function a0(){this.A=this.j=NaN;this.o=this.k=!1}function ns(a,b,c,d){if(d=1<d)a.o=!0;if(a.k)b!=a.j&&(a.k=!1);else if(0<b&&a.j==b)return c-a.A>(d||!a.o?1500:400);a.j=b;a.A=c;return!1};function b0(){this.k=0;this.j=this.B=this.o=this.A=NaN};var c0={};function d0(a){this.k=a;this.j=0;this.B=NaN;this.o=0;this.ia=[];this.A=e0(this.k);this.C=this.D=0}function f0(a){a.A.startTime=a.o;a.A.endTime=a.j;a.ia.length&&cb(a.ia).isEmpty()?a.ia[a.ia.length-1]=a.A:a.ia.length&&a.A.isEmpty()||a.ia.push(a.A);a.D+=a.j-a.o;a.A=e0(a.k);a.o=a.j}function g0(a){return a.D+a.k.k()-a.o}function h0(a){a.ia.length&&a.j==a.o||f0(a);var b=a.ia;a.ia=[];return b}
d0.prototype.update=function(){var a=this.k.k()||0,b=i0(this.k);if(a!=this.j||j0(this,a,b)){if(a<this.j||a-this.j>b-this.B+.5||j0(this,a,b))f0(this),this.o=a;this.B=b;this.j=a}};function j0(a,b,c){c-=a.B;return b==a.j&&.5<c};function k0(a,b){this.Z=b;this.o=!1;this.j=a}k0.prototype.k=function(){return{ps:this.Z.j,el:this.Z.ea}};k0.prototype.send=function(){this.o||(bg(Ke(this.Z.A+"set_awesome",this.k())),this.o=!0)};function l0(a,b,c){k0.call(this,b,c);this.A=a}z(l0,k0);
l0.prototype.k=function(){var a=l0.J.k.call(this);sa(a,this.Z.o);var b=Lc(this.j.Pj/this.j.lengthSeconds,0,1);sa(a,{html5:"1",video_id:this.j.videoId,eurl:this.Z.F,framer:this.Z.S,feature:this.Z.O,list:this.j.playlistId,w:b,l:this.j.lengthSeconds,plid:this.j.playbackId,ei:this.j.G,access_token:this.j.C,tpmt:g0(this.A),cpn:this.j.za});this.Z.D&&(a.adformat=this.Z.D);this.Z.referrer&&(a.referrer=tZ(this.Z));this.Z.autoplay&&(a.autoplay="1");this.Z.Xa&&(a.authuser=this.Z.Xa);this.Z.pageId&&(a.pageid=
this.Z.pageId);this.j.$d&&(a.splay="1");this.j.subscribed&&(a.subscribed=this.j.subscribed);sa(a,l0.J.k.call(this));sa(a,this.Z.o);return a};function m0(a){Q.call(this);this.j=a;this.o={};this.M=NaN;this.B=new Bv(this.ZA,3E4,this);R(this,this.B);this.C=new Bv(this.ej,100,this);R(this,this.C);this.k="N";this.A=0;this.P=NaN;this.H=0;this.G=this.S="";this.F=this.I=0;this.K=this.D=!1}z(m0,Q);var n0={5:"N","-1":"N",3:"B",0:"EN",2:"PA",1:"PL"};function o0(a,b,c,d){var e=a.o[b];e||(e=[],a.o[b]=e);a=0<=d?d:i0(a.j);e.push(a.toFixed(3)+":"+c.join(":"))}f=m0.prototype;
f.ej=function(a){a=a||i0(this.j);var b=this.j.C();if(!isNaN(this.O)&&!isNaN(b.o)){var c=b.o-this.O;0<c&&o0(this,"bwm",[c,(b.B-this.T).toFixed(3)],a)}this.O=b.o;this.T=b.B;isNaN(b.j)||o0(this,"bwe",[b.j.toFixed(0)],a);isNaN(b.k)||(c=b.k,b.A<c&&(c=b.A),this.P!=c&&(o0(this,"bh",[c.toFixed(3)],a),this.P=c),this.j.Z.experiments.C&&3>c&&("PL"==this.k||"B"==this.k)&&this.C.start());o0(this,"cmt",[this.j.k()],a)};
function p0(a){var b={event:"streamingstats"};if(a.j.j.o){b.fmt=a.j.j.o.id;var c=a.j.j.D;c&&c.id!=b.fmt&&(b.afmt=c.id)}b.cpn=a.j.j.za;b.ei=a.j.j.G;b.el=a.j.Z.ea;b.docid=a.j.j.videoId;b.ns=a.j.Z.Tc;b.fexp=a.j.Z.experiments.experimentIds.toString();b.cl=a.j.j.kc;a.j.Z.D&&(b.adformat=a.j.Z.D);a.j.j.Sa&&(b.live=a.j.j.yb?"dvr":"live");b.html5="1";return b}
f.Og=function(a){if(!this.ha()&&!Xb(this.o)){this.C.isActive()||this.ej(a);a=wZ(this.j.Z).hmewdrop;a>this.H&&o0(this,"df",[a-this.H]);this.H=a;a=p0(this);dc(a,this.j.Z.o);a=Ke(this.j.Z.hb,a);for(var b in this.o)a+="&"+b+"="+this.o[b].join(",");bg(a);this.o={};this.B.start()}};f.Mf=function(){o0(this,"vps",["N"]);this.j.j.Oa&&(this.o.cat=["preload"]);this.M=Kf(x(this.Og,this),1E4);this.B.start()};
f.onError=function(a,b){var c=this.j.k(),c=[a,c.toFixed(3)];b&&c.push(b);var d=i0(this.j);o0(this,"error",c,d);this.ej(d)};f.ZA=function(){"PL"==this.k&&(o0(this,"vps",[this.k]),this.Og())};f.L=function(){m0.J.L.call(this);Lf(this.M)};function q0(a,b,c,d){this.Z=b;this.segments=[];this.experimentIds=[];this.H=!1;this.j="watchtime"==c;this.W="playback"==c;this.Ua="delayplay"==c;this.la=(this.G="atr"==c)?"/api/stats/"+c:"//"+b.ge+"/api/stats/"+c;d&&(this.su=d.fs,d.rtn&&(this.Qg=d.rtn),this.j?(this.hb=d.state,0<d.rti&&(this.lj=d.rti)):(this.da=d.mos,this.ga=d.volume,d.at&&(this.adType=d.at),d.allowed&&(this.A=d.allowed),d.ex_ads&&(this.F=d.ex_ads)),d.autonav&&(this.Nh=d.autonav));this.na=b.D;this.autoplay=b.autoplay;this.ta=b.M;this.va=
ac(b.o);this.wa=b.F;this.Ba=b.ea;this.experimentIds=b.experiments.experimentIds;this.M=b.P;this.Aq=b.Tc;this.referrer=b.referrer;this.P=b.qb;this.k=b.O;this.searchQuery=b.searchQuery;this.userAge=b.userAge;this.X=b.$b;this.ka=hZ();this.autoplay=a.Fg||this.autoplay;this.Nh=a.$p||this.Nh;this.T=a.Rj;this.oa=a.za;this.D=a.ao;this.V=a.gn;this.o=a.Pj;this.K=a.Re;a.o&&(this.Ha=a.o.id,a.D&&a.D.id!=this.Ha&&(this.C=a.D.id));this.tu=a.$d;this.Ca=a.Qj;a.Sa&&(this.ba=a.yb?"dvr":"live");this.Oa=a.yn;this.playbackId=
a.playbackId;this.ya=a.G;this.playlistId=a.playlistId;this.k=a.Va||this.k;this.O=a.qb;this.S=a.$b;this.ob=a.eo;this.subscribed=a.subscribed;this.jb=a.kc;this.videoId=a.videoId;this.qb=a.uw;this.Va=a.ob;this.gb=a.tw}f=q0.prototype;f.Nh=!1;f.autoplay=!1;f.vz=!1;f.bq=!1;f.su=!1;f.wz=!1;f.tu=!1;f.Aq="yt";f.lj=null;f.Qg=null;f.send=function(){if(!this.H){var a=r0(this),a=Ke(this.la,a);this.G?this.B&&Aj(a,{method:"POST",Eb:{atr:this.B}}):bg(a);this.H=!0}};
function r0(a){var b={ns:a.Aq,el:a.Ba,cpn:a.oa,docid:a.videoId,ver:2,referrer:a.referrer,cmt:a.df(a.o),plid:a.playbackId,ei:a.ya,fmt:a.Ha,fs:a.su?"1":"0",rt:a.df(a.ja),of:a.gb,adformat:a.na,content_v:a.ta,euri:a.wa,subscribed:a.subscribed,lact:a.ka,live:a.ba,cl:a.jb,mos:a.da,q:a.searchQuery,osid:a.Va,state:a.hb,vm:a.qb,volume:a.ga};sa(b,a.va);a.Nh&&(b.autonav="1");a.autoplay&&(b.autoplay="1");a.bq&&(b["final"]="1");a.tu&&(b.splay="1");a.K&&(b.delay=a.K);a.M&&(b.hl=a.M);a.P&&(b.cr=a.P);n(a.userAge)&&
a.X&&(b.uga=a.X+a.userAge);n(a.I)&&(b.len=a.df(a.I));!a.j&&0<a.experimentIds.length&&(b.fexp=a.experimentIds.toString());null!=a.Qg&&(b.rtn=a.df(a.Qg));a.k&&(b.feature=a.k);a.playlistId&&(b.list=a.playlistId);a.O&&(b.ctrl=a.O);a.S&&(b.ytr=a.S);a.ob&&(b.ssrt="1");a.C&&(b.afmt=a.C);a.j?(b.idpj=a.Ca,b.ldpj=a.Oa,null!=a.lj&&(b.rti=a.df(a.lj))):(n(a.adType)&&(b.at=a.adType),n(a.A)&&(b.allowed=a.A),n(a.F)&&(b.ex_ads=a.F));(a.W||a.Ua)&&a.T&&(b.tst=a.T);a.j&&(b.st=s0(a,D(a.segments,function(a){return a.startTime})),
b.et=s0(a,D(a.segments,function(a){return a.endTime})));ib(a.segments,function(a){return 0!=a.visibilityState})&&(b.vis=s0(a,D(a.segments,function(a){return a.visibilityState})));ib(a.segments,function(a){return 1!=a.playbackRate})&&(b.rate=s0(a,D(a.segments,function(a){return a.playbackRate})));ib(a.segments,function(a){return"-"!=a.Ek})&&(b.cc=D(a.segments,function(a){return a.Ek}).join(","));tj()&&a.D&&(b.ctt=a.D,b.cttype=a.V);return b}f.df=function(a){return(1*a.toFixed(3)).toString()};
function s0(a,b){return D(b,a.df).join(",")};function t0(a){Q.call(this);this.j=a;this.A=new m0(a);R(this,this.A);this.k=new d0(a);this.C="paused";this.D=NaN;this.H=[10,10,10,40];this.I=this.G=0;this.P=this.F=this.M=this.K=this.o=!1;this.B=NaN;this.O=new l0(this.k,this.j.j,this.j.Z)}z(t0,Q);function u0(a,b,c){var d=i0(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.D=L(x(a.KA,a,c,b),d);return c}f=t0.prototype;
f.KA=function(a,b){if(!this.ha()){this.D=NaN;this.k.update();var c=h0(this.k),d=v0(this,c);b&&(d.lj=a);var e=400<this.I;!(1<c.length)&&c[0].isEmpty()||e||(d.Qg=u0(this,!0,a));d.send();this.I++}};function w0(a,b){var c=x0(a.j);sa(c,{state:a.C});c=new q0(a.j.j,a.j.Z,b,c);c.o=a.j.k();c.I=a.j.B();c.ja=i0(a.j);c.segments=[e0(a.j)];return c}function v0(a,b){var c=w0(a,"watchtime");c.segments=b;c.o=a.k.j;return c}function y0(a){a.k.update();return v0(a,h0(a.k))}
function z0(a){var b=a.j.Z;a=a.j.j;var c=a.Va||b.O,c={ns:b.Tc,html5:"1",el:b.ea,ps:b.j,fexp:b.experiments.experimentIds.join(",")||void 0,feature:c||void 0,ctrl:a.qb||void 0,ytr:a.$b||void 0,list:a.playlistId,d:b.ta,f:b.ga};b.autoplay&&(c.autoplay="1");a.subscribed&&(c.subscribed=a.subscribed);return c}function A0(a){a.j.j.remarketingUrl&&!a.F&&(bg(a.j.j.remarketingUrl),a.F=!0);a.j.j.ppvRemarketingUrl&&!a.P&&(bg(a.j.j.ppvRemarketingUrl),a.P=!0);a.j.j.remarketingUrl||B0(a)}f.Mf=function(){this.A.Mf()};
f.onError=function(a,b){this.A.onError(a,b)};
function C0(a,b){if(!a.ha()){W(b.state,2)?(a.C="paused",0<vv(b,2)&&a.o&&y0(a).send()):W(b.state,8)?(a.C="playing",a.o&&isNaN(a.D)&&u0(a,!1)):a.C="paused";var c=a.A,d=b.state,e;e=b.state;if(W(e,128))e="ER";else if(W(e,16)||W(e,32))e="S";else{var g=n0[rs(e)];"B"==g&&W(e,4)&&(g="PB");e=g}if(e!=c.k){var g=e,h=i0(c.j);if(!(h<c.A)){if("PL"==c.k)c.F+=h-c.A;else if("B"==c.k&&c.D&&(c.D=!1,c.I+=h-c.A,!c.K&&10<=c.I&&180>=c.F)){c.j.D();if(!c.ha()){var k=p0(c);k.qoealert="1";k=Ke(c.j.Z.hb,k);bg(k)}c.K=!0}"B"!=
g||"PL"!=c.k&&"PB"!=c.k||(c.D=!0);c.A=h}!c.j.Z.experiments.C||"B"!=e&&"PB"!=e?o0(c,"cmt",[c.j.k().toFixed(3)]):c.ej();o0(c,"vps",[e]);c.k=e}if(W(d,128))c.onError(d.j.errorCode,d.j.errorDetail);(W(d,2)||W(d,128))&&c.Og();a.B&&W(b.state,128)&&(a.nj("error-100"),M(a.B))}}function D0(a){a.B=Kf(x(a.nj,a,"heartbeat"),3E4)}
f.nj=function(a){var b=this.j.Z,c=this.j.j,d={ns:b.Tc,el:b.ea,eurl:b.F,fmt:c.o?c.o.id:0,html5:1,list:c.playlistId,plid:c.playbackId,cpn:c.za,ei:c.G,ps:b.j,noflv:1,st:this.j.k(),video_id:c.videoId,metric:a};b.autoplay&&(d.autoplay="1");c.Di&&(d.tmi="1");"heartbeat"==a&&(d.tpmt=g0(this.k));sa(d,b.o);bg(Ke("//www.youtube.com/live_204",d))};f.L=function(){t0.J.L.call(this);M(this.D);this.D=NaN;var a=this.k;Lf(a.C);a.C=NaN};t0.prototype.getDebugInfo=function(){return r0(w0(this,"playback"))};
function B0(a){if(!a.F){a.j.j.B.eventLabel=a.j.Z.ea;a.j.j.B.playerStyle=a.j.Z.j;a.j.j.ja&&(a.j.j.B.feature="pyv");a.j.j.B.vid=a.j.j.videoId;a.j.j.B.isAd=!("adunit"!=a.j.Z.ea&&!a.j.j.ja);var b=a.j.j.B;b&&b.uid&&(c0[b.uid]=b);t:{var c=a.j.j.B.uid;if(!c){b=If("CONVERSION_CONFIG_DICT");if(!b)break t;c=b.uid||null;if(!c)break t}i:{b=If("CONVERSION_CONFIG_DICT");if(v(c)&&(c=c?24==c.length&&"UC"==c.slice(0,2)?c.substr(2):22==c.length?c:null:null,!b||b.uid!=c)&&(b=c0[c],!b||b.uid!=c))break i;var d;if(b&&
b.baseUrl&&b.uid){var e=b.rmktEnabled,c=b.focEnabled&&(!b.isAd||!1);if(e||c){var g={};if(e){e={utuid:b.uid,type:"view",client_name:"html5"};b.vid&&(e.utvid=b.vid);b.eventLabel&&(e.el=b.eventLabel);b.playerStyle&&(e.ps=b.playerStyle);b.feature&&(e.feature=b.feature);b.ppe&&(e.ppe=b.ppe);b.subscribed&&(e.subscribed=b.subscribed);b.engaged&&(e.engaged=b.engaged);var h=[];for(d in e)h.push(encodeURIComponent(d)+"="+encodeURIComponent(e[d]));d=h.join(";");g.data=d}c&&(g.label="followon_view",g.foc_id=
b.uid,g.r=Math.round(1E4*Math.random()));d=Ke(b.baseUrl,g)}else d=null}else d=null;d&&bg(d)}}a.F=!0}};function E0(){this.endTime=this.startTime=-1;this.Ek="-";this.playbackRate=1;this.visibilityState=0}E0.prototype.isEmpty=function(){return this.endTime==this.startTime};function F0(a,b,c,d,e,g,h,k){this.j=a;this.Z=b;this.A=c;this.B=d;this.k=e;this.C=g;this.F=h;this.D=k||function(){};this.o=-1}function i0(a){var b=window.performance&&window.performance.now?window.performance.now():y();0>a.o&&(a.o=b);return Math.round(b-a.o)/1E3}
function x0(a){var b=a.A();a=a.j;var c={};a.o&&(c.fmt=a.o.id,a.D&&a.D.id!=a.o.id&&(c.afmt=a.D.id));a.na&&(c.threed=a.ow);c.plid=a.playbackId;c.ei=a.G;c.list=a.playlistId;c.cpn=a.za;a.videoId&&(c.v=a.videoId);a.zk&&(c.infringe=1);a.$d&&(c.splay=1);a.Sa&&(c.live=a.yb?"dvr":"live");a.Fg&&(c.autoplay=1);a.co&&(c.sdetail=a.co);a.X&&(c.partnerid=a.X);a.ob&&(c.osid=a.ob);sa(b,c);return b}
function e0(a){var b=new E0;b.Ek=a.A().cc||"-";var c=a.Z;b.playbackRate=c.wb&&c.wb.playbackRate||1;(c=sh("visibilityState",document))&&"visible"!=c&&(b.visibilityState=3);a.Z.Za?b.visibilityState=2:a.Z.dq&&(b.visibilityState=1);return b};function G0(a,b){this.state=a;this.j=b}function vv(a,b){return W(a.state,b)&&!W(a.j,b)?1:!W(a.state,b)&&W(a.j,b)?-1:0};function H0(a,b,c,d){T.call(this);this.va=new a0;this.G=c;this.ta=d;this.D=new vs(x(this.getCurrentTime,this),x(this.mE,this),x(this.getPlayerState,this),x(this.ub,this));R(this,this.D);this.V=NaN;this.K=this.F=null;this.C=a;this.ka=new Y_(a,this.ta);this.la=!1;this.H=this.o=null;this.M=[];this.T=new OZ;this.O=new OZ;this.Ba=this.na=!1;this.oa=NaN;this.B=new js;this.Oa=b;this.X=this.da=null;this.I=NaN;this.W=new zv(this);this.j=new sr;this.k=this.S=null;this.ga=NaN;this.A=null;this.ya=!1;this.ba=
0;this.Ca=null;this.ja=!1}z(H0,T);function qr(a){Gw()?Jw(a.ba):M(a.ba)}f=H0.prototype;f.L=function(){M(this.ga);Lf(this.oa);pr(this);I0(this);qr(this);OD(this);wi(this.X,this.W,this.j);this.W=this.K=null;this.ja=!1};
function J0(a,b,c){a.M.length=0;var d=a.T;d.k=!1;d.j=!1;d=a.O;d.k=!1;d.j=!1;a.V=NaN;a.I=NaN;a.S=null;a.ya=!1;a.k&&hs(a.k);K0(a);pr(a);I0(a);qr(a);S(a.j);d=a.D;d.Ji=!1;d.Ud=!1;Bs(d);d.j.j=[];d.k=[];d.nc();d.B=null;if(2==a.Oa||Wf(a.C.G))b.fq=!0;b.yd=a.j.yd;a.j=b;a.j.subscribe("dataupdated",a.tC,a);a.j.subscribe("dataloaded",a.Io,a);a.j.subscribe("dataloaderror",a.Tj,a);a.j.subscribe("onStatusFail",a.sC,a);b.cf&&b.cf>b.startSeconds&&(b=b.cf,a.K&&(a.D.jh(a.K),a.K=null),a.K=new ss(1E3*b,2147483646),a.K.Wa.subscribe("onEnter",
a.Jf,a),ws(a.D,[a.K]));pr(a);a.j.Je||(c=new F0(a.j,a.C,c,x(a.Uc,a),x(a.getCurrentTime,a),x(a.mx,a),x(a.ta.xb,a.ta),x(a.Fx,a)),a.A=new t0(c));a.ja=!1;L0(a,"newdata");M0(a,new js)}function pr(a){if(a.A){var b=a.A;if(!b.ha()&&b.o){b.C="paused";var c=y0(b);c.bq=!0;c.send();c=b.A;"PL"==c.k&&(c.k="N");o0(c,"vps",[c.k]);c.Og();M(b.B);b.dispose()}S(a.A);a.A=null}}f.getVideoData=function(){return this.j};f.R=function(){return this.C};function N0(a){return!(!a.j.j||!a.j.j.k.length)}
function O0(a){if(uI(a.j))return!0;uv(a,"api.invalidparam");return!1}function P0(a,b){a.na=!!b;O0(a)&&!a.T.k&&(a.T.start(),a.A&&a.A.Mf(),a.Io())}
f.Io=function(){if(qI(this.j))qI(this.j),this.T.j=!0,this.M=ub(this.j.H),KE(this.j),N0(this)&&(this.j.yb&&(V0(this,this.j.lengthSeconds),W0(this,!0)),this.j.j.j&&X0(this),Qq(this,"i")),L0(this,"dataloaded"),this.O.k&&Y0(this);else if(this.j.ga){var a=this.j,b=this.C.experiments.O;a.ga=!1;var c=a.O,d=qj(c),c=0>sr.o.indexOf(d)?Xf(c):Yf(c),d=x(a.IA,a),a=x(a.zn,a);iH(new bH(c,b),c,d,a);KH("mrs")}else this.j.Af||(b=rZ(this.C,this.j,this.ta.xb()),vI(this.j,b,this.C.experiments.ba))};
function Z0(a){P0(a);O0(a)&&!W(a.B,128)&&(a.O.k||(a.O.start(),M0(a,os(a.B,8))),Y0(a))}function Y0(a){if(!(a.O.j||!a.T.j||W(a.B,128)||a.M.length||(a.D.Ud||a.D.Mf(),a.M.length||0<Hr(a.D.j,-2147483648).length))){if(a.o){var b=a.o;a.Ba=!!b.M&&!!b.T}a.O.j=!0;a.j.Sa&&$0(a,Infinity,!0);a.A&&(b=a.A,b.j.j.ai&&b.j.j.Rk&&(b.nj("connected"),D0(b)));a.publish("playbackready",a)}}f.Jf=function(a){this.pauseVideo();a=0==a?new js:new js(14);M0(this,a)};
function a1(a,b,c,d){a.j.o=c;a.j.D=d||c;if(a.A){var e=a.j,g=$_(a.ka,e),e=E(e.j.k,x(g.A,g)),e=new X_(c,b,e?e.id:"");d&&"i"==b&&b1(a,b,d);d=a.A.A;c=i0(d.j);o0(d,"vfs",[e.j.id,e.k,d.S,e.reason],c);d.S=e.j.id;e=d.j.F();0<e.width&&0<e.height&&(e=[Math.round(e.width),Math.round(e.height)],1<window.devicePixelRatio&&e.push(window.devicePixelRatio),o0(d,"view",e,c));o0(d,"vps",[d.k],c);d.Og(c)}a.publish("internalvideoformatchange",a.j,"m"==b)}
function b1(a,b,c){a.j.D=c;if(a.A){var d=a.A.A;c=new X_(c,b,"");var e=i0(d.j);c.j.id!=d.G&&(o0(d,"afs",[c.j.id,d.G,c.reason],e),d.G=c.j.id)}"i"!=b&&a.publish("internalaudioformatchange",a.j,"m"==b)}function uv(a,b,c,d){if(Pb(Xs,c))var e=c;else var g=c;M0(a,ms(a.B,128,{errorCode:b,errorDetail:d,message:g,messageKey:e}));qr(a);I0(a);c1(a)}function d1(a,b){a.M=a.M.filter(function(a){return b!=a});a.O.k&&Y0(a)}f.ub=function(){return this.B.ub()};f.getPlayerState=function(){return this.B};
f.getPlayerType=function(){return this.Oa};function e1(a,b){a.k&&OD(a);a.k=b;f1(a)}function OD(a){a.H=null;a.o&&(E_(a.o),a.o.G=!0);a.k&&(a.A&&a.T.k&&W(a.B,64)&&g1(a),K0(a),a.W.removeAll(),hs(a.k),a.k=null)}
function h1(a){Z0(a);W(a.B,64)&&M0(a,os(a.B,8));if(a.O.j&&a.k)if(a.j.j){var b;if(a.j.j.j)i1(a),b=a.Ca,a.o.resume();else{I0(a);b=a.j.T.k;var c=a.j,d={};c.K&&(d.ptk=c.K,d.oid=c.Bh,d.ptchn=c.dg,d.pltype=c.Dh);sa(b.k,d);sa(b.k,{c:a.C.o.c,cver:a.C.o.cver})}a.k.ud!=b?j1(a,b):(wI(a.j)&&es(a.k)&&$0(a,Infinity,!0),fs(a.k))}else uv(a,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}function Rq(a){if(!a.j.j)return[];var b=k1(a);a=Ft(a.j.j,b);a.length&&(a=a.concat(["auto"]));return a}
function l1(a){return Ct(Ct(Z_(a.ka,a.j),$_(a.ka,a.j)),k1(a))}function k1(a){return a.j.Sk?zt:a.F?a.F.o:N0(a)&&a.j.j.j&&cH(a.j.k)?xt:zt}function Qq(a,b,c){if(!a.ha()&&!W(a.B,128)&&(c&&(a.j.xj=c),N0(a))){"m"==b&&c&&At(c)&&(b="a");var d=l1(a);a.j.j.j?"i"!=b&&(c=a.o,c.ha()||((d=DZ(c.B,d,b))&&c.publish("videoformatchange",d),H_(c,c.k,GZ(c.B)),Bt(c.B.j)&&"m"==b&&$Z(c.k),g_(c.k)&&B_(c,c.k,c.o),E_(c))):(a.j.T=yu(a.j.I,d),a1(a,b,a.j.T.getInfo()));a.ub()&&h1(a)}}
function m1(a){var b=a.getVideoData().D;if(!b)return a.getVideoData().V;var c=E(a.j.j?a.j.j.audioTracks:[],function(a){return a.id==b.id});return c?c:a.getVideoData().V}
function X0(a){lH(a.j.k,{c:a.C.o.c,cver:a.C.o.cver});var b=a.C,c=new vC;if(Xr()||b.experiments.ga)c.I=!0;Xr()&&(c.F=-1);0<=b.W&&(c.liveChunkReadahead=b.W);b.experiments.V&&(c.G=300);b.experiments.la&&(c.O=!0);b.experiments.na&&(c.S=!0);if(ZC(b)){var d=b.experiments;c.C=8388608;c.B=524288;c.j=2097152;c.D=1048576;c.H=1.5;c.M=15;c.o=!0;c.K=!1;c.G=0;c.A=ut.hd720;Wr("(ps4; leanback shell)")&&(c.ra=d.W?625E3:562500)}Yr()&&(c.C=20971520,c.B=1572864,c.ra=812500,c.j=20971520,c.k=1E3);var d=b.bh||new G(window.screen.width,
window.screen.height),e=window.devicePixelRatio||1;2560<=d.width*e&&1440<=d.height*e&&(c.C=52428800,c.B=5242880,c.j=20971520,c.D=8388608,c.A=ut.auto);b.experiments.T&&(c.ra=NaN);b.experiments.da&&(c.j=1.5*c.D);a.o=new r_(a.da,c,a.j.k,a.j.j);a.o.subscribe("initsegment",a.aB,a);a.o.subscribe("videoformatchange",a.lB,a);a.o.subscribe("audioformatchange",a.jB,a);a.o.subscribe("error",a.Tj,a);a.o.subscribe("seekrequired",a.cD,a);b=F(a.M,"spacecast")||a.na;a.o.initialize(a.j.startSeconds,l1(a),b);a.j.probeUrl&&
(a.o.S=a.j.probeUrl);if(a.M.length||a.na)a.o.G=!0;a.na&&g1(a)}function g1(a){var b=new G0(new js(4),a.B);C0(a.A,b)}function I0(a){a.o&&(a.o.dispose(),a.o=null);a.H&&(a.H.dispose(),a.H=null)}
function i1(a){if(!a.H){a.o?a.o.seek(a.getCurrentTime()):X0(a);a.H=new Zt(a.k,a.j.lengthSeconds,a.j.j.k[0].mimeType,a.j.j.j[0].mimeType);try{var b=au(a.H)}catch(c){c.message="window.URL object overwritten by external code";window.setTimeout(function(){throw c;},0);uv(a,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK");return}a.Ca=new gu(b,!0);$t(a.H,x(a.o.Bw,a.o))}}
f.aB=function(a){if(this.F){var b=this.F;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&&U_(b,new S_(a),!1)}}};f.lB=function(a){a1(this,a.reason,a.video.info,a.j.info);var b=sI(this.j);b&&b.B(a.video)};
f.jB=function(a){b1(this,a.reason,a.j.info)};f.Tj=function(a){if(a.k)uv(this,a.errorCode,void 0,a.j);else{var b;if(b=this.C.experiments.B&&("net.badstatus"==a.errorCode||"manifest.net"==a.errorCode))b=this.j,b=y()-b.rw>sr.B;if(this.A&&(this.A.onError(a.errorCode,a.j),b))this.A.onError("staleconfig");b&&this.publish("signatureexpired")}};f.pauseVideo=function(a){W(this.B,64)&&!a&&M0(this,ps(this.B,8));this.k&&(a&&!W(this.B,128)&&M0(this,os(this.B,256)),this.k.pauseVideo())};
function c1(a){a.pauseVideo(!0);a.k&&(K0(a),a.H&&(a.H.dispose(),a.H=null),a.j&&(a.j.startSeconds=a.getCurrentTime()),a.I=NaN,gs(a.k),W(a.B,128)||M0(a,ms(a.B)))}function $0(a,b,c,d){if(a.k&&a.O.j){b=Lc(b||0,Ar(a.j),n1(a));b>=n1(a)?W0(a,!0):W0(a,!1);a.j.startSeconds=b;a.I=b;var e=a.va;e.j=b;e.k=!0;c?a.Sj():(o1(a),d&&(a.X||(a.X=new Bv(a.Sj,d,a)),a.X.start()),p1(a,!0));a.K&&b>a.j.cf&&(a.D.jh(a.K),a.K=null);b<a.Uc()&&M0(a,ps(a.B,2));a.publish("seekto",a,b)}else a.j.startSeconds=b||0}
function o1(a){W(a.B,32)||(M0(a,os(a.B,32)),W(a.B,8)&&a.pauseVideo(!0),a.publish("beginseeking",a))}f.Sj=function(){if(!isNaN(this.I)&&this.k){var a=this.Uc();!this.j.Sa&&this.I>=Math.floor(a)?(this.I=a,this.publish("endseeking",this),this.pauseVideo(!0),this.Jf()):(this.o&&this.o.seek(this.I),ds(this.k,this.I))}this.X&&(this.X.dispose(),this.X=null);W(this.B,32)&&(M0(this,os(ps(this.B,32),16)),this.publish("endseeking",this))};
f.getCurrentTime=function(){if(!isNaN(this.I))return this.I;var a=0;this.k&&1<=this.k.readyState?a=this.k.getCurrentTime():this.j&&(a=this.j.Pj||this.j.startSeconds||0);return a};f.Uc=function(){return wI(this.j)?Infinity:this.j&&this.j.lengthSeconds?this.j.lengthSeconds:n1(this)?n1(this):0};
f.mx=function(){var a=new b0;if(this.da&&this.o){var b=this.da;a.o=b.C;a.B=b.D;a.j=HF(b);b=this.o;b.j&&!cu(b.j)&&(a.k=Or(b.j.k.buffered,b.A),a.A=Or(b.j.j.buffered,b.A));a.j=zZ(b.H);HF(b.F);FF(b.F);GF(b.F)}else this.k&&(a.k=Or(this.k.buffered,this.getCurrentTime()));return a};function q1(a){if(a.k)if(wI(a.j))a=1;else if(xI(a.j))if(a.la)a=0;else{var b=a.k;a=(0<Nr(b.buffered)&&b.duration?b.buffered.end(b.buffered.length-1):0)/a.Uc()}else a=Sq(a.k);else a=0;return a}
H0.prototype.getDebugInfo=function(a){var b={};a&&(this.A?sa(b,this.A.getDebugInfo()):this.j&&(b.cpn=this.j.za),this.k&&sa(b,this.k.getDebugInfo()),this.o&&sa(b,this.o.getDebugInfo()),W(this.B,128)&&(b.debug_error=this.B.j),(this.M.length||0<Hr(this.D.j,-2147483648).length)&&(b.preroll="1"));b.debug_videoId=this.j.videoId;return b};f=H0.prototype;f.tC=function(){if(this.F){var a=this.F,b=this.j.C;a.A=b;a.publish("oauthtoken",b)}L0(this)};
f.sC=function(a){uv(this,"auth",unescape(a.reason),a.errordetail||"sec."+a.errorcode)};function L0(a,b){a.publish("internalvideodatachange",b||"dataupdated",a,a.j)}function f1(a){C("loadstart loadeddata loadedmetadata play playing pause ended suspend progress seeking seeked timeupdate durationchange ratechange error waiting abort".split(" "),function(a){this.W.listen(this.k,a,this.pE)},a)}
f.pE=function(a){var b=a.target;if(b==this.k&&b.currentSrc){switch(a.type){case "error":if(this.C.Fm&&b.error&&b.error.errorCode==b.error.MEDIA_ERR_NETWORK){setTimeout(x(function(){this.k&&(this.j.T&&this.k.load(),h1(this))},this),500);if(this.A)this.A.onError("progressive.net");return}break;case "durationchange":if(!this.j.yb||this.j.k&&!this.j.k.isLive)b=b.duration||0,(!this.H||isFinite(b)&&0<b)&&1!=b&&V0(this,b);break;case "ratechange":this.o&&(this.o.H.o=Math.max(1,this.k.playbackRate));this.D.Mf();
break;case "ended":M0(this,ms(this.B,4));this.Gm();break;case "loadedmetadata":this.j.startSeconds&&(this.k.currentTime=this.j.startSeconds),this.C.ee&&this.j.startSeconds&&(this.V=this.j.startSeconds,this.pauseVideo(!0));case "loadstart":Lf(this.oa);this.Gk()||(this.oa=Kf(x(this.Gk,this),100));break;case "progress":this.V&&this.k.seekable.length&&this.k.seekable.end(0)>this.V&&(this.k.currentTime=this.V,this.V=NaN,this.wa=this.W.listen(this.k,"canplay",this.JA));case "suspend":p1(this);this.publish("onLoadProgress",
this,q1(this));break;case "seeked":r1(this);break;case "seeking":this.o&&this.o.seek(b.currentTime);break;case "playing":KH("plev",void 0,this.G.j);break;case "timeupdate":this.ya=!0;this.Gk();r1(this);p1(this);this.publish("onVideoProgress",this,b.getCurrentTime());break;case "waiting":if(this.C.experiments.ja&&0<b.played.length&&0==b.buffered.length&&0<b.currentTime&&5>b.currentTime&&this.o)return}this.publish("videoelementevent",a);a=ks(this.B,a,this.va);M0(this,a)}};
f.Gk=function(){var a=this.k;a&&this.ya&&!this.j.Tm&&!OH("vfp",this.G.j)&&2<=a.readyState&&!a.ended&&0<Nr(a.buffered)&&KH("vfp",void 0,this.G.j);if((a=this.k)&&!this.j.Tm&&0<(a.duration||0)&&(!OH("pbr",this.G.j)&&es(a)&&2<=a.readyState&&0<Nr(a.buffered)&&eZ(this.G,"pbr"),0<a.getCurrentTime())){Lf(this.oa);M(this.ga);this.j.Tm=!0;s1(this);if(this.A){a=this.A;if(!a.o){var b=w0(a,"playback");a.H=[10+a.j.j.Qj,10,10,40+a.j.j.yn-a.j.j.Qj,40];var c=a.k;Lf(c.C);c.C=NaN;c.C=Kf(x(c.update,c),100);c.B=i0(c.k);
c.A=e0(c.k);b.Qg=u0(a,!0);b.wz=!0;b.send();!a.j.Z.Wg||a.j.Z.Ei||a.o||(b=a.j.Z,c=a.j.j,b={noflv:"1",html5:"1",video_id:c.videoId,cpn:c.za,plid:c.playbackId,ei:c.G,referrer:tZ(b),eurl:b.F,framer:b.S,feature:b.O,fmt:c.o?c.o.id:0,ptk:c.K,skl:c.gs,access_token:c.C,ucid:c.Zn},sa(b,z0(a)),delete b.fexp,b=Ke(a.j.Z.A+"user_watch",b),bg(b));a.j.j.K&&(b=a.j.Z,c=a.j.j,b=Ke(b.A+"ptracking",{html5:"1",video_id:c.videoId,cpn:c.za,plid:c.playbackId,ei:c.G,ptk:c.K,oid:c.Bh,ptchn:c.dg,pltype:c.Dh,content_v:b.M}),bg(b));
if(a.j.j.cq&&a.j.Z.Ca&&!a.o){var b=a.j.Z,c=a.j.j,d={noflv:1,video_id:c.videoId,cpn:c.za,el:b.ea,ps:b.j,referrer:tZ(b),eurl:b.F,framer:b.S,fmt:c.o?c.o.id:0,ptk:c.K,subscribed:c.subscribed,t:c.Sv};b.autoplay&&(d.autoplay="1");c.$d&&(d.splay="1");0<c.startSeconds&&(d.start=1E3*c.startSeconds);c.Di&&(d.tmi="1");b=Ke(a.j.Z.A+"get_video",d);bg(b)}a.j.j.ai&&(a.nj("playback"),a.B||D0(a));a.j.j.Re||A0(a);a.o=!0;a=a.k;a.j=a.k.k();a.B=i0(a.k);.5<a.j-a.o&&(a.o=a.j)}L(x(this.Gm,this),4500)}this.publish("playbackstarted");
this.o&&(this.o.ga=!0);Gw()&&Kw();return!0}return!1};
function s1(a){var b=a.getCurrentTime(),c=a.j;!OH("pbs",a.G.j)&&HH.measure&&HH.getEntriesByName&&(HH.getEntriesByName("mark_navigation_requested")[0]?HH.measure("measure_above_the_fold","mark_navigation_requested"):HH.measure("measure_above_the_fold"));c.videoId&&a.G.info("docid",c.videoId);c.G&&a.G.info("ei",c.G);c.za&&a.G.info("cpn",c.za);0<c.startSeconds&&a.G.info("start",c.startSeconds.toString());a.k&&es(a.k)&&a.G.info("paused",1);c.o?a.G.info("fmt",c.o.id):a.G.info("fmt","-1");c.Oa&&a.G.info("yt_pre",
a.Ba?"2":"1");a.C.Za&&a.G.info("yt_fs","1");a.G.info("tds",Math.round(q1(a)*a.Uc()).toString());a.G.info("cmt",b.toFixed(3));if(a.o){b=a.o;window&&window.performance&&window.performance.getEntriesByName&&(c=window.performance.getEntriesByName(b.T),c.length&&(c=c[0],v_(b,"vri",c.fetchStart),v_(b,"vdns",c.domainLookupEnd),v_(b,"vreq",c.requestStart),v_(b,"fvb",c.responseStart),v_(b,"vrc",c.responseEnd)),c=window.performance.getEntriesByName(b.M),c.length&&(c=c[0],v_(b,"ari",c.fetchStart),v_(b,"adns",
c.domainLookupEnd),v_(b,"areq",c.requestStart),v_(b,"avb",c.responseStart),v_(b,"arc",c.responseEnd)));var b=b.la,d;for(d in b)KH(d,b[d],a.G.j)}}f.JA=function(){this.wa&&(this.W.Fa(this.wa),this.wa=void 0,fs(this.k))};
function p1(a,b){if(a.k&&a.j){var c=a.getCurrentTime();if(c<Ar(a.j))$0(a,n1(a),!0);else{if(a.o){var d=a.o;if(d.j){d.resume();if(d.K&&!cu(d.j)){var e=d.A<=c&&c<d.A+10,g=0<=Lr(d.j.j.buffered,d.A+r_.j)&&0<=Lr(d.j.k.buffered,d.A+r_.j);e&&g&&(d.K=!1)}d.K||(d.A=c);s_(d)}}xI(a.j)&&c>a.Uc()&&(d=a.Uc(),0==d&&(d=c),V0(a,1.2*d));5<c&&(a.j.startSeconds=c);(d=Gw())?Jw(a.ba):M(a.ba);es(a.k)||(e=x(a.oy,a),a.ba=a.k.played&&0==a.k.played.length?d?Hw(e,100):L(e,100):d?Hw(e,500):L(e,500));a.j.Pj=c;!b&&a.ub()&&a.A&&
(d=a.A,d.k.update(),d.j.j.lengthSeconds&&d.j.j.Re&&!d.M&&g0(d.k)>=d.j.j.Re&&(d.o&&d.j.j.Re&&(e=w0(d,"delayplay"),e.vz=!0,e.send(),d.M=!0),A0(d)),e=d.O,!e.o&&e.Z.Ca&&!e.Z.Ei&&e.j.lengthSeconds&&g0(e.A)>=e.j.$r&&d.O.send());a.publish("progresssync",a,b);a.j.Bz=c}}}f.oy=function(){if(this.k){var a=this.getCurrentTime();if(W(this.B,8)&&ns(this.va,a,Date.now(),Or(this.k.buffered,a))){var b=this.Uc();b&&1>Math.abs(b-a)?this.Jf():M0(this,os(this.B,1))}p1(this)}};
function M0(a,b){var c=a.B;if(b.k!=c.k||b.j!=c.j){c=new G0(b,a.B);a.B=b;0>vv(c,8)&&(M(a.ga),W0(a,!1));0<vv(c,32)&&W0(a,!1);a.o&&(0>vv(c,8)&&0<vv(c,4)?a.o.da=!0:W(b,4)||(a.o.da=!1));xI(a.j)&&W(c.state,2)&&(V0(a,a.getCurrentTime()),p1(a,!0));a.A&&C0(a.A,c);var d=a.D;if(d.Ud&&!d.Ji)if(Bs(d),W(c.state,2)){d.B=null;for(var e=[],g=0;g<d.k.length;g++){var h=d.k[g];h.active&&2147483647>h.end&&e.push(h)}g=Hr(d.j,2147483646);g=g.concat(Ir(d.j,2147483646));e=As(d,e).concat(zs(d,g));Cs(d,e)}else W(c.state,16)?
(d.o=xs(d),d.A.stop(),d.A.start(),d.nc()):(d.A.stop(),W(c.j,16)?(d.o=xs(d),null!=Jr(d.j,Math.max(d.o-2E3,0))&&(d.Ig=fn(x(d.nc,d)))):d.nc());a.publish("statechange",c)}}f.Fx=function(){this.j.Sa||this.publish("connectionissue")};f.cD=function(){ds(this.k,Math.max(0,this.k.currentTime+.1))};function r1(a){W(a.B,2)||W(a.B,32)||(a.I=NaN)}function W0(a,b){a.j.yb&&a.la!=b&&(a.la=b,a.publish("liveviewshift",b))}function j1(a,b){t1(a,b);a.C.Pe?L(x(function(){fs(this.k)},a),0):fs(a.k)}
function t1(a,b){KH("vta",void 0,a.G.j);bs(a.k,b);a.H&&!b.j&&(a.H=null);if(vD(a.j)){var c=vD(a.j);if(c&&!a.F&&a.k){var d=a.j.o.mimeType;if(c=ht(a.k,d,c)){a.F=new T_(a.k,c);a.F.subscribe("newsession",a.oE,a);a.F.subscribe("licenseerror",a.bB,a);a.F.subscribe("qualitychange",a.cB,a);a.F.subscribe("heartbeatparams",a.nE,a);var e=a.F,g=a.j.C;e.A=g;e.publish("oauthtoken",g);R(a,a.F);a.k.canPlayType(d,c.j)}else uv(a,"fmt.unplayable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK")}}a.H&&Mw();M(a.ga);a.ga=L(x(a.iB,
a),15E3)}function K0(a){a.F&&(a.F.dispose(),a.F=null)}f.oE=function(a){var b={};sa(b,this.C.o);b.cpn=this.j.za;this.j.F&&(b.vvt=this.j.F);this.C.Xa&&(b.authuser=this.C.Xa);this.C.pageId&&(b.pageid=this.C.pageId);dc(a.B,b);vr(a,a.C);this.publish("newlicensesession",a)};f.bB=function(a,b,c){uv(this,a,n(c)?c:"YTP_ERROR_LICENSE",b)};f.cB=function(){Qq(this,"r");L0(this)};f.nE=function(a){this.publish("heartbeatparams",a)};f.iB=function(){if(this.A)this.A.onError("qoe.start15s");this.publish("loadsofttimeout")};
function V0(a,b){a.j.lengthSeconds!=b&&(a.j.lengthSeconds=b,L0(a))}f.Gm=function(){if(!this.ja){var a=new W_(this.j),b;"c1a"in a.o?(b=r("yt.abuse.botguardInitialized"),b=!(b&&b())):b=!1;if(b)L(x(this.Gm,this),4500);else{var c;if(a.j&&a.j.ba){b=[a.j.ba];for(c in a.k)if(a.o[c]&&a.k[c]){var d=a.k[c](a.o);d&&b.push(d)}c=b.join("&")}else c=null;c&&this.A&&(a=this.A,a.K||(b=w0(a,"atr"),b.B=c,b.send(),a.K=!0),this.ja=!0)}}};
function n1(a){if(!a.k)return 0;if(a.o){var b=F_(a.o);return Math.max(b,Ar(a.j))}a=a.k;return(1>a.seekable.length?NaN:a.seekable.end(a.seekable.length-1))||0}f.mE=function(){return this.k?this.k.playbackRate:1};var u1={sJ:0,rJ:-1,LH:-2};function v1(a){this.j=a}f=v1.prototype;f.Yk=function(){return UP(this.j)};f.bl=function(){return this.j.A};f.lf=function(){return this.j.A};f.wi=function(){var a=this.j.o;return null!=a?a:new wP};f.xi=function(){var a=this.j;null!=a.j&&a.j.show()};f.tj=function(){};f.Bl=function(){return this.j.C};f.Cl=function(){return!1};f.yi=function(){return this.j.F};f.hide=function(){};function TW(a,b){Zl.call(this,"adsManagerLoaded");this.o=a;this.A=b}z(TW,Zl);function w1(a,b,c,d){a.o.Jc(new v1(b),c,d);return a.o};function x1(a){return a?-1!=a.toString().search(/(?:true|1)/i):!1}function y1(a,b){if(a){var c="getErrorCode"in a?a.getErrorCode():null,d="";c?b.error_code=c:(c="getMessage"in a&&ia(a.getMessage)?a.getMessage():a.message,d=Na(c||"",50),b.error_message=d)}}function z1(a,b){if(a){var c=GT(a);if(c){var d=HT(a)||[];b.ad_id=tb(d,c).join(",");if(c=AT(a))d=JT(a)||[],b.ad_sys=tb(d,c).join(",");XT(a)?b.survey=1:xT(a)&&(b.skip=1)}}}
function A1(a,b){if(a[b])return x1(a[b]);var c=b.toLowerCase(),d;for(d in a)if(d&&d.toLowerCase()==c)return x1(a[d]);return!1}function B1(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 C1(a,b,c,d){this.A=a;this.B=b;this.j=c;this.C=d}C1.prototype.o="";C1.prototype.k="";function D1(a){var b={};b.l_ns=a.B;b.l_state=a.C;b.sst=a.A;b.sidx=0;a.o&&(b.at=a.o);a.k&&(b.ad_id=a.k);return b};var E1=!1;function F1(){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 G1(){var a=r("window.google_show_companion_ad");ia(a)?a():E1=!0}function H1(){var a=r("yt.www.watch.ads.setCompanion");a&&a()}function I1(a){var b=r("yt.www.watch.ads.showForcedMpu");b&&b(a)}Di("showCompanionAdLoaded",function(){E1&&(G1(),E1=!1)});function J1(a,b){this.k=a;this.j=b}function K1(a){return a.j-a.k}function L1(a,b){return a.k+b*K1(a)}function M1(a,b){return K1(a)?Lc((b-a.k)/K1(a),0,1):Infinity};function N1(a,b,c){Q.call(this);this.o=a;c||(O1(this,!0),a.hide());this.B=b;this.j=null;this.A=!1;this.k=new Bv(this.bn,0,this);R(this,this.k)}z(N1,Q);f=N1.prototype;f.show=function(a,b){this.A=!!a;1==this.j||2==this.j||3==this.j&&a||(4==this.j||3==this.j?a||(this.o.show(),O1(this,!1),this.j=null,this.k.stop()):(O1(this,!this.A),this.j=1,b?this.k.start(b):this.bn()))};f.hide=function(){3!=this.j&&(1==this.j||2==this.j?(this.o.hide(),this.j=null,this.k.stop()):(O1(this,!0),this.j=3,this.k.start(this.B)))};
f.bn=function(){switch(this.j){case 1:this.o.show();this.j=2;this.k.start(10);break;case 2:O1(this,this.A);this.A?(this.j=3,this.k.start(this.B)):this.j=null;break;case 3:this.o.hide();O1(this,!1);this.j=4;this.k.start(0);break;case 4:this.j=null}};function O1(a,b){var c=a.o.N();b?c.setAttribute("aria-hidden",!0):c.removeAttribute("aria-hidden")}f.stop=function(){for(;null!=this.j&&4!=this.j;)this.k.stop(),this.bn()};f.L=function(){this.o.ha()||this.o.N().removeAttribute("aria-hidden");N1.J.L.call(this)};function P1(a,b,c,d){var e=Math.min(c/(b.wq/b.Bb),d/(b.tq/b.rows)),g=b.wq*e,e=b.tq*e,g=Math.floor(g/b.Bb)*b.Bb,e=Math.floor(e/b.rows)*b.rows,h=g/b.Bb,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.Qw*h*-1;var t=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 "+t+"px";a.backgroundSize=g+"px "+e+"px"};function Q1(){this.k=this.j=null}function Z(a,b,c){return Of(b,c,void 0)}f=Q1.prototype;f.cg=function(a,b){this.j&&this.j.cg(a,b)};f.fg=function(a,b,c){this.j&&this.j.fg(a,b,c)};f.Cm=function(a){this.j&&this.j.Cm(a)};f.xb=function(){return this.k.xb()};f.kb=function(){return this.k.kb()};function R1(a,b){T.call(this);this.A=!!b;this.k=a;this.j=new zv(this);this.o=this.B=null;b&&Xc&&a.setAttribute("draggable","true");S1(this)}z(R1,T);function S1(a){a.o=null;a.B=null;a.j.listen(a.k,T1("over"),a.pG);a.j.listen(a.k,"touchstart",a.sG)}f=R1.prototype;
f.pG=function(a){this.j.removeAll();this.j.listen(this.k,T1("move"),this.ju);this.j.listen(this.k,T1("out"),this.ku);this.A&&this.j.listen(this.k,T1("down"),this.iu);this.publish("hoverstart",xh(a),yh(a),a.target);this.publish("hovermove",xh(a),yh(a),a.target)};f.ju=function(a){this.o&&xh(this.o)==xh(a)&&yh(this.o)==yh(a)&&this.o.relatedTarget==a.target||this.publish("hovermove",xh(a),yh(a),a.target);this.o=null};
f.ku=function(a){a.relatedTarget&&Sd(this.k,a.relatedTarget)?(this.o=a,this.publish("hovermove",xh(a),yh(a),a.relatedTarget)):(this.j.removeAll(),S1(this),this.publish("hoverend",xh(a),yh(a),a.relatedTarget))};
f.iu=function(a){ha(a.button)&&0!=a.button||(this.j.removeAll(),this.j.listen(document,T1("move"),this.Nz),this.j.listen(document,T1("up"),this.qG),Xc?this.j.listen(this.k,"dragstart",this.Vw):a.preventDefault(),this.publish("dragstart",xh(a),yh(a),a.target),this.publish("dragmove",xh(a),yh(a),a.target))};f.Vw=function(a){a.preventDefault()};f.Nz=function(a){var b=a.target==document?null:a.target;this.publish("hovermove",xh(a),yh(a),b);this.publish("dragmove",xh(a),yh(a),b)};
f.qG=function(a){this.j.removeAll();a.target&&Sd(this.k,a.target)?(this.j.listen(this.k,T1("move"),this.ju),this.j.listen(this.k,T1("out"),this.ku),this.j.listen(this.k,T1("down"),this.iu),this.publish("dragend",xh(a),yh(a),a.target)):(S1(this),this.publish("dragend",xh(a),yh(a),a.target),this.publish("hoverend",xh(a),yh(a),a.target))};
f.sG=function(a){var b=a.changedTouches[0];b&&(this.j.removeAll(),this.j.listen(this.k,"touchmove",this.rG),this.j.listen(this.k,"touchend",this.lu),this.j.listen(this.k,"touchcancel",this.lu),this.B=b.identifier,this.publish("hoverstart",b.pageX,b.pageY,a.target),this.publish("hovermove",b.pageX,b.pageY,a.target),this.A&&(this.publish("dragstart",b.pageX,b.pageY,a.target),this.publish("dragmove",b.pageX,b.pageY,a.target)))};
f.rG=function(a){var b=U1(this,a);b&&(a.preventDefault(),this.publish("hovermove",b.pageX,b.pageY,a.target),this.A&&this.publish("dragmove",b.pageX,b.pageY,a.target))};f.lu=function(a){var b=U1(this,a);b&&(a.preventDefault(),this.j.removeAll(),S1(this),this.A&&this.publish("dragend",b.pageX,b.pageY,a.target),this.publish("hoverend",b.pageX,b.pageY,a.target))};function U1(a,b){for(var c=0;c<b.changedTouches.length;c++){var d=b.changedTouches[c];if(d.identifier==a.B)return d}return null}
function T1(a){return window.navigator.msPointerEnabled?"MSPointer"+a.charAt(0).toUpperCase()+a.substr(1):"mouse"+a}f.L=function(){this.j.removeAll();R1.J.L.call(this)};function V1(a,b,c,d){this.width=b;this.k=c;this.B=d;this.j=b-c-d;this.A=Lc(a-c,0,this.j);this.position=this.A+c;this.o=this.A/this.j};function W1(){X.call(this,["div","ytp-progress-tooltip",["div","ytp-progress-tooltip-thumbnail-container",["div","ytp-progress-tooltip-thumbnail"]],["div","ytp-progress-tooltip-text-container",["div","ytp-progress-tooltip-text","{{text}}"]],["div","ytp-progress-tooltip-timestamp-container",["div","ytp-progress-tooltip-timestamp","{{timestamp}}"]],["div","ytp-progress-tooltip-arrow"]]);this.o=this.template.j["ytp-progress-tooltip-arrow"];this.j=-1;this.da="";this.k=new J1(0,0);this.hide()}z(W1,X);
f=W1.prototype;f.Zh=!1;f.Ue=null;f.zh=null;f.disable=function(){this.Zh=!0};f.show=function(){this.Zh||W1.J.show.call(this)};function X1(a){gh(a.N(),"with-thumbnail");a.Ue=null;a.zh=null;a.template.j["ytp-progress-tooltip-thumbnail"].removeAttribute("style")}f.BG=function(a,b){a<=this.j&&this.j<=b&&Y1(this)};function Y1(a){var b=dI(a.zh,a.j,108);P1(a.template.j["ytp-progress-tooltip-thumbnail"],b,108,60)}f.L=function(){this.o=this.zh=this.Ue=null;W1.J.L.call(this)};function Z1(a,b){var c;c=a.xb().width;var d=["div","ytp-progress-bar-container",["div",["html5-progress-bar","ytp-force-transform"],{tabindex:6250,role:"slider","aria-label":Of("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-hover-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:Of("YTP_TOOLTIP_CLIP_MARKER")}],["div",["ytp-clip-end","html5-clip-marker","yt-uix-tooltip"],{title:Of("YTP_TOOLTIP_CLIP_MARKER")}]];
yD.call(this,d);this.o=c;this.D=1;this.A=this.gb=this.I=0;this.Va=!1;this.K=this.X=0;this.ka=this.template.j["html5-ad-progress-list"];this.ob=this.template.j["ytp-marker-progress-list"];this.Ca=this.template.j["ytp-marker-crenellation-list"];this.G={};this.T={};this.M=Infinity;this.ba=this.template.j["ytp-clip-end"];this.na=new R1(this.ba,!0);R(this,this.na);this.na.subscribe("hoverstart",this.pu,this);this.na.subscribe("hoverend",this.ou,this);hv(this,this.ba,"click",this.Vn);this.la=this.template.j["ytp-clip-end-exclude"];
this.Ba=this.template.j["ytp-clip-start-exclude"];this.P=0;this.ga=this.template.j["ytp-clip-start"];this.oa=new R1(this.ga,!0);R(this,this.oa);this.oa.subscribe("hoverstart",this.pu,this);this.oa.subscribe("hoverend",this.ou,this);hv(this,this.ga,"click",this.Vn);this.ya=this.template.j["ytp-unloaded-progress"];this.ja=this.template.j["ytp-load-progress"];this.O=0;this.wa=this.template.j["ytp-play-progress"];this.B=0;this.H=this.template.j["html5-progress-bar"];this.k=this.C=null;this.V=new X(["div",
"html5-scrubber-button"]);R(this,this.V);this.V.Y(this.H);this.qb=this.template.j["ytp-scrubber-pull-indicator"];this.hb=0;this.ta=!1;this.va=new Mc;this.j=new J1(0,0);this.jb=!1;this.W=b;$1(this)}z(Z1,yD);f=Z1.prototype;f.wG=function(){this.k&&this.k.show()};
f.yG=function(a,b,c){var d=Ig(this.N()),e=a2(this).j,g=c?c.getAttribute("data-tooltip"):void 0;g&&(a=M1(this.j,Number(c.getAttribute("data-position")))*e+Ig(this.H).x);this.va.x=a-d.x;this.va.y=b-d.y;b=this.jb?this.j.j:0;d=a2(this);this.k&&(a=this.k,a.Zh||(c=50,a.Ue?(c=108,g&&(c*=2)):g&&(c=108),a.N().style.padding="2px",a.N().style.width=c+"px",e=c/2+2,e=(new V1(d.position,d.width,e,e)).position-e,a.N().style.left=e+"px",a.o.style.left=Lc(d.position,0,d.width)-e-5+"px",d=L1(a.k,d.o),a.pa(iv(d-b),
"timestamp"),a.Ue&&(b=qH(a.Ue,c),b=a.Ue.j[b].Wj(d),0<b&&b!=a.j&&(a.j=b,Y1(a))),g?(N(a.N(),"with-text"),a.pa(g,"text")):gh(a.N(),"with-text")))};f.xG=function(){this.k&&this.k.hide()};f.vG=function(a,b,c){a=b2(this);this.hb=a.k-a2(this).o*(a.k+a.B);this.k&&this.k.hide();this.A&&(Lf(this.A),this.A=0);this.gb=b;this.ta=!0;this.publish("beginseeking",parseFloat(c.getAttribute("data-position")))};
f.zG=function(){this.X=0;gh(this.N(),"ytp-pull-ui");gh(this.N(),"ytp-pulling");if(0<this.I){var a=y(),b=this.I,c=a2(this).position;this.A&&Lf(this.A);this.A=fv(x(this.ru,this,a,b,c),0)}this.k&&this.k.show();this.ta=!1;this.publish("endseeking")};f.ru=function(a,b,c){var d;d=(y()-a)/200;d=1-Math.pow(1-d,3);var e=c+d*(this.B*this.o-c);if(0>d||1<d)d=1;c2(this,(1-d)*b,e,this.B);this.A=1>d?fv(x(this.ru,this,a,b,c),0):0};
function c2(a,b,c,d){b=Lc(b,0,40);a.I=b;var e=a.D,g=Math.max(K1(a.j)/a.o,1);a.D=b/40*(g-1)+1;b=a.o*a.D;a.K=Lc(d*b-c,0,b-a.o);e!=a.D&&$1(a)}
f.AG=function(a,b){var c=!1,d=!1,e=a2(this);3600<=K1(this.j)&&(c2(this,this.gb-b-10,e.position,e.o),d=!0,c=4<this.I,e=a2(this));O(this.N(),"ytp-pull-ui",d);c&&N(this.N(),"ytp-pulling");c=0;e.k&&0>=e.position?c=-1:e.B&&e.position>=e.width&&(c=1);!this.A||c&&c==this.X||M(this.A);c&&(this.A=fv(x(this.qu,this,y(),this.K),0));this.X=c;this.publish("seekto",L1(this.j,e.o),!1)};
f.qu=function(a,b){if(this.X){var c=this.o*(this.D-1);this.K=Lc(b+this.X*(y()-a)*.3,0,c);$1(this);this.publish("seekto",L1(this.j,a2(this).o),!1);0<this.K&&this.K<c&&(this.A=fv(x(this.qu,this,a,b),0))}};
function $1(a){var b=a2(a),c=Nd(a.Ca),d=0;if(8<a.I)for(var e=(-b.k+b.width)/b.j*(K1(a.j)/60),g=Math.ceil(-b.k/b.j*(K1(a.j)/60));g<e;g++){var h=c[d];h||(h=document.createElement("div"),a.Ca.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/K1(a.j)*b.j+"px"}for(e=c.length-1;e>=d;e--)Ld(c[e]);c=(-b.k+b.width)/b.j;a.pa(iv(L1(a.j,-b.k/b.j)),"boundTimeLeft");a.pa(iv(L1(a.j,c)),"boundTimeRight");a.H.style.width=
b.j+"px";a.N().style.height=a.I+(a.W?20:8)+"px";b=b.k;wg(a.H,"transform",b?"translatex("+b+"px)":"");a.V.N().style.height=a.I+(a.W?12:6)+"px";for(var k in a.G)d2(a,a.G[k],a.T[k]);e2(a);f2(a,a.B,a.O)}function g2(a){var b=Math.floor(a.j.j),c=Math.floor(L1(a.j,a.B));a.template.update({ariamin:Math.floor(a.j.k),ariamax:b,arianow:c,arianowtext:Of("YTP_PROGRESS_LABEL",{PLAY_PROGRESS:c,DURATION:b})})}
function a2(a){var b=a.va.x;if(a.ta)var c=a.W?32:16,b=(b+a.hb-c/2)/(a.o-c)*a.o;c=a.o*a.D;b=Lc(b,0,a.o);return new V1(b,a.o,-a.K,-(c-a.K-a.o))}function b2(a){var b=a.W?32:16,c=a.o*a.D;return new V1(a.B*(c-b)+b/2,c,b/2,b/2)}
function f2(a,b,c){if(b<a.P||b>a.M)a.Vn();else{a.B=b;a.O=Math.max(a.B,c);g2(a);var d=M1(a.j,a.P),e=M1(a.j,a.M),g=Lc(b,d,e);c=a.Va?1:Lc(c,d,e);var h=g;g<e&&(h=a.o*a.D,h=(g*h-g)/h);a.wa.style.left=jv(d)+"%";wg(a.wa,"transform","scalex("+(h-d)+")");wg(a.V.N(),"transformOrigin",jv(b)+"%");b=b2(a).position+"px";a.V.N().style.left=b;a.qb.style.left=b;a.ja.style.left=jv(d)+"%";wg(a.ja,"transform","scalex("+(c-d)+")");a.ya.style.left=jv(d)+"%";wg(a.ya,"transform","scalex("+(e-d)+")")}}
function e2(a){var b=a.P>a.j.k,c=0<a.j.j&&a.M<a.j.j;O(a.N(),"ytp-clip-start-enabled",b);O(a.N(),"ytp-clip-end-enabled",c);b=b?M1(a.j,a.P):0;c=c?M1(a.j,a.M):1;a.ga.style.left=jv(b)+"%";a.ba.style.left=jv(c)+"%";a.Ba.style.width=jv(b)+"%";a.la.style.left=jv(c)+"%";a.la.style.width=jv(1-c)+"%"}f.pu=function(){N(this.N(),"ytp-clip-hover")};f.ou=function(){gh(this.N(),"ytp-clip-hover")};f.Vn=function(){this.P=0;this.M=Infinity;e2(this);f2(this,this.B,this.O)};
function d2(a,b,c){var d=a2(a).j,e=M1(a.j,b.start/1E3)*d;switch(b.style){case "ytp-chapter-marker":a=ts(b);var g=a/2,d=Lc(e,g,d-g)-g;break;default:a=Math.min(Math.min(M1(a.j,b.end/1E3)*d,d)-e,ts(b)),d=Lc(e,0,d-a)}c.style.width=a+"px";c.style.left=d+"px";c.className=b.style}
function h2(a,b){C(b,function(a){if(a.visible){var b=a.getId();if(!this.G[b]){var e=document.createElement("div");a.tooltip&&(e.setAttribute("data-tooltip",a.tooltip),e.setAttribute("data-position",a.start/1E3));this.G[b]=a;this.T[b]=e;d2(this,a,e);"ytp-chapter-marker"==a.style?this.ob.appendChild(e):this.ka.appendChild(e)}}else i2(this,a)},a)}function j2(a,b){C(b,function(a){i2(this,a)},a)}function i2(a,b){var c=b.getId();a.G[c]==b&&(Ld(a.T[c]),delete a.G[c],delete a.T[c])}
function k2(a,b){b?a.C||(a.C=new R1(a.H,!0),a.C.subscribe("hoverstart",a.wG,a),a.C.subscribe("hovermove",a.yG,a),a.C.subscribe("hoverend",a.xG,a),a.C.subscribe("dragstart",a.vG,a),a.C.subscribe("dragmove",a.AG,a),a.C.subscribe("dragend",a.zG,a)):a.C&&(a.C.dispose(),a.C=null)}f.L=function(){this.A&&(M(this.A),this.A=0);k2(this,!1);this.ja=this.ga=this.Ba=this.ba=this.la=this.ka=null;this.T={};this.ya=this.H=this.wa=null;this.W=!1;Z1.J.L.call(this)};function l2(a,b,c,d){T.call(this);this.j=a;this.type=b+"_"+c;this.k=d;this.o=null;this.I=c}z(l2,T);l2.prototype.B=function(){return this.type};l2.prototype.getCurrentAd=function(){return this.k?this.k.getCurrentAd():null};function m2(){this.clickThroughUrl="";this.isSkippable=!1;this.skipShown=this.skip=u;this.skipTime=0;this.videoUrl=this.videoId=""};function n2(a){this.j=a}var o2=[1,2];function p2(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 q2(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 r2(a,b){this.j=a;this.A=b}r2.prototype.B=null;r2.prototype.k=NaN;function s2(a,b,c){a.j.publish("AD_LOGGING_EVENT",b,c)}function t2(a){u2(a);var b=v2(a);if(a.o){var c=w2(a.A),d=a.o.y-c.top,d=Math.round(a.o.x-c.left)+"x"+Math.round(d);b.ck_xy=d;b.ck_wh=c.width+"x"+c.height}s2(a,15,b)}function x2(a){u2(a);var b=v2(a);if(isNaN(a.k))u2(a);else{var c=y()-a.k;b.ad_stl=c}s2(a,4,b)}function y2(a){u2(a);var b=v2(a),c=a.j.Vk();c?b.ad_fmt=c:u2(a);s2(a,5,b)}
function z2(a){var b=v2(a),c=a.j.Vk();c?b.ad_fmt=c:u2(a);s2(a,14,b)}function v2(a){var b={},c=a.j.o,d=a.j.hi(),e=a.j.Wk();z1(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=qj(e),b.ad_dom=c,a.A.fa.A&&(b.ad_v_url=e.substr(0,512)));e=a.j;(e=e.k?e.k.gf():null)&&(b.ad_cpn=e);b.at=a.j.B();return b}function u2(a){a.B||(a.B="InstreamAdDisplay ("+a.j.B()+")")};function A2(a,b,c,d,e,g){l2.call(this,b,a,2,c);this.j.subscribe("onVolumeChange",this.Rt,this);this.j.subscribe("control_toggle_play_pause",this.St,this);this.j.subscribe("control_play",this.On,this);this.j.subscribe("control_pause",this.Nn,this);this.H=d;this.C=new r2(this,this.j);this.A=new zv(this);this.G=this.D=!1;this.F=0;this.M=e;this.K=!!g}z(A2,l2);A2.j=2E3;f=A2.prototype;f.Tb=null;f.Zf=!1;f.uh=null;f.sh=null;f.rh=null;
f.show=function(){this.C.k=y();var a;if(a=this.H){var b=pj(a),b=b.v||b.video_id;if(!b){var c=Ce(ze(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 sr({video_id:b,dash:"0"}):null}else a=null;this.o=a;var d;a=new m2;a.isSkippable=this.M;a.skip=x(this.wD,this);a.skipShown=x(this.k.Hm,this.k);if(b=this.getCurrentAd())a.clickThroughUrl=UT(b)||"",a.skipTime=QT(b,VT(b))||0;this.o?(this.o.$d=!0,d={video_id:this.o.videoId},
a.videoId=this.o.videoId,this.o.subscribe("onStatusFail",this.Ot,this),this.o.subscribe("dataloaded",this.Cr,this),b=this.j.R(),b=ac(b.B),b.autoplay="1",b=new oZ(b),b.ea="adunit",b.D=this.type,b=rZ(b,this.o,this.j.app.o.xb()),vI(this.o,b)):(this.H&&(a.videoUrl=this.H),B2(this));this.D||(C2(this.j,-1,d,a),this.Hq())};f.wD=function(){this.j.A.o.U("skip")};function D2(a){a.o&&(a.o.unsubscribe("onStatusFail",a.Ot,a),a.o.unsubscribe("dataloaded",a.Cr,a))}
f.Cr=function(){D2(this);KE(this.o);var a=new Y_(this.j.R(),this.j.app.o),b=this.o;b.j&&b.j.k.length?(a=yu(this.o.I,$_(a,this.o)))?(a=a.k)?(a=new I(cs(a)),a.j.set("autoplay","1"),this.k.setMediaUrl(a.toString()),B2(this)):E2(this,Error("Failed to determine ad media resource.")):E2(this,Error("Failed to determine ad media format.")):E2(this,Error("No selectable formats."))};
function B2(a){if(Wh||2.2<=It&&3>It||(Wh||Xh)&&!$h){var b=y()-a.C.k,b=A2.j-b;a.F=L(x(a.hs,a),Math.max(0,b));N(a.j.Ka(),"ad-interstitial-showing")}else a.hs()}
f.hs=function(){F2(this);this.Tb=G2(this.j,!0);this.rh=this.j.Ka();if(this.j.fa.D)Ld(wd("video-ad-status-bar"));else{var a=this.j.Ka();this.uh=wd("video-ad-time-left",a);var a=wd("html5-ad-progress-list",a),b=Gd("div");N(b,"ytp-ad-progress");a.appendChild(b);this.sh=b;this.A.listen(this.Tb,"timeupdate",this.LF)}fh(this.rh,["ad-showing","ad-interrupting"]);this.A.listen(MD(this.j.k),"mouseup",this.JF);this.A.listen(this.Tb,"waiting",this.Hq);this.j.subscribe("onResize",this.Pn,this);try{this.A.listen(this.k,
"adError",this.IF);this.A.listen(this.k,"click",this.HF);this.A.listen(this.k,"complete",this.lm);this.A.listen(this.k,"pause",this.Pt);this.A.listen(this.k,"start",this.Qt);this.A.listen(this.k,"skip",this.KF);this.Pn();var c=this.j,d=c.k,e=H2(c);d.$.R().C&&(Mg(d.j,e),Cg(d.j,0,0));this.K||this.k.start()}catch(g){E2(this,g)}};f.Qt=function(){this.Zf=!0;this.D=!1;this.G||(this.G=!0,x2(this.C),I2(this.j,1));Qs(this.j,!0);C2(this.j,1);this.publish("adPlay",this)};
f.Pt=function(){this.Zf=!1;Qs(this.j,!1);C2(this.j,2)};f.KF=function(){z2(this.C);this.lm()};f.lm=function(){this.D||(y2(this.C),this.Zf=!1,this.D=!0,this.G=!1,C2(this.j,0),I2(this.j,0),this.publish("adEnd",this))};f.IF=function(a){E2(this,a.o)};function E2(a,b){a.Zf=!1;a.D=!0;C2(a.j,0);a.publish("adError",b)}f.Ot=function(){D2(this);E2(this,Error("Request to get video data failed."))};f.HF=function(){t2(this.C);this.publish("select")};f.JF=function(a){a=new Mc(xh(a),yh(a));this.C.o=a};
f.LF=function(a){var b=iv(this.k.getRemainingTime());this.uh.innerHTML=b;b=this.hi()?this.Tb.getCurrentTime()/this.hi():0;b=jv(b);this.sh.style.width=b+"%";this.Tb.ended&&L(x(this.lm,this,a),50)};f.Hq=function(){!this.Zf&&this.G||C2(this.j,3)};
f.L=function(){this.j.unsubscribe("control_toggle_play_pause",this.St,this);this.j.unsubscribe("control_play",this.On,this);this.j.unsubscribe("control_pause",this.Nn,this);this.j.unsubscribe("onResize",this.Pn,this);this.j.unsubscribe("onVolumeChange",this.Rt,this);this.A.removeAll();D2(this);this.K||this.k.destroy();this.Tb&&(KD(this.j.k),this.Tb=null);F2(this);this.uh&&(this.uh.innerHTML="",this.uh=null);this.sh&&(Ld(this.sh),this.sh=null);this.rh&&(hh(this.rh,["ad-showing","ad-interrupting"]),
this.rh=null);this.D=!0;A2.J.L.call(this)};function F2(a){a.F&&(M(a.F),a.F=0,gh(a.j.Ka(),"ad-interstitial-showing"))}f.hi=function(){return this.Tb?this.Tb.duration||0:null};f.Vk=function(){return null};f.Wk=function(){return this.Tb&&this.Tb.currentSrc?this.Tb.currentSrc:null};f.Rt=function(a){a=a.muted?0:a.volume;isNaN(a)||(a=Lc(a/100,0,1),this.k.setVolume(a))};f.St=function(){this.Zf?this.Nn():this.On()};f.On=function(){this.Tb&&(this.k.resume(),this.Qt())};
f.Nn=function(){this.Tb&&(this.k.pause(),this.Pt())};f.Pn=function(){JD(this.j.k)&&Mg(JD(this.j.k),H2(this.j))};function J2(){this.o=!1;this.k=0;this.j=""};function K2(a,b,c,d,e){l2.call(this,b,a,2,c);this.j.subscribe("control_toggle_play_pause",this.Wt,this);this.j.subscribe("control_play",this.Rn,this);this.j.subscribe("control_pause",this.Qn,this);this.F=new r2(this,this.j);this.A=new zv(this);this.C=L2(b);this.C.subscribe("statechange",this.Vi,this);this.C.subscribe("internalvideodatachange",this.Vt,this);this.D=this.G=!1;this.K=d;this.H=!!e}z(K2,l2);f=K2.prototype;f.ck=!1;f.yh=null;f.xh=null;f.wh=null;
f.show=function(){var a=this.j,b=L2(a);M2(a.app,b);this.F.k=y();this.wh=this.j.Ka();this.C.subscribe("progresssync",this.Fq,this);this.j.fa.D?Ld(wd("video-ad-status-bar")):(a=this.j.Ka(),this.yh=wd("video-ad-time-left",a),a=wd("html5-ad-progress-list",a),b=Gd("div"),N(b,"ytp-ad-progress"),a.appendChild(b),this.xh=b);fh(this.wh,["ad-showing","ad-interrupting"]);this.j.subscribe("onResize",this.Sn,this);try{this.A.listen(this.k,"adError",this.NF),this.A.listen(this.k,"click",this.MF),this.A.listen(this.k,
"complete",this.zA),this.A.listen(this.k,"engagedview",this.SA),this.A.listen(this.k,"pause",this.Tt),this.A.listen(this.k,"start",this.Ut),this.A.listen(this.k,"skip",this.OF),this.A.listen(this.k,"youTubeChannelMetadata",this.pB),this.Sn(),this.H||this.k.start()}catch(c){N2(this,c)}};
f.Vt=function(a,b,c){if("newdata"==a&&this.o!=c){a={video_id:c.videoId};b=new m2;b.isSkippable=this.K;b.skip=x(this.k.skip,this.k);b.skipShown=x(this.k.Hm,this.k);var d=this.getCurrentAd();d&&(b.clickThroughUrl=UT(d)||"",b.skipTime=QT(d,c.lengthSeconds)||0);b.videoId=c.videoId;b.videoId||(b.videoUrl=this.Wk()||"");C2(this.j,-1,a,b)}this.o=c};f.Vi=function(a){a=a.state;W(a,128)&&N2(this,Error(a.j.message||"Video player error."))};
f.Ut=function(){this.ck=!0;this.D=!1;if(!this.G){this.G=!0;x2(this.F);I2(this.j,1);var a=this.j.R();this.j.fa.D&&"3"==a.k&&(a=this.j.app.o,"3"==a.app.R().k&&(a.j.controls=!1))}C2(this.j,1);this.publish("adPlay",this)};f.Tt=function(){this.ck&&(this.ck=!1,C2(this.j,2))};f.zA=function(){this.D||(y2(this.F),O2(this),this.D=this.G=!1)};
function O2(a){var b=new J2;b.o=a.D;b.k=y();a.o&&a.o.za&&(b.j=a.o.za);c1(L2(a.j));C2(a.j,0,b);I2(a.j,0);a.publish("adEnd",a);b=a.j.R();a.j.fa.D&&"3"==b.k&&(a=a.j.app.o,"3"==a.app.R().k&&(a.j.controls=!0))}f.SA=function(){var a=this.F;a.j.publish("AD_LOGGING_EVENT",777,v2(a))};f.OF=function(){this.D=!0;z2(this.F);O2(this)};
f.pB=function(){var a=this.getCurrentAd();if(a){var b=a.K;if((a=a.H)&&b){var c={};c.videoTitle=b.title;c.channelThumbnailUrl=a.j;c.channelTitle=a.k;c.channelVideoCount=a.videoCount;this.j.publish("publish_external_event","onAdMetadataAvailable",c)}}};f.NF=function(a){var b={};try{b.error_code=a.o.getErrorCode()}catch(c){b.error_code=900,b.error_message=c.toString()}var d=this.F;u2(d);var e=v2(d);b&&sa(e,b);e.ad_error=32;s2(d,7,e);N2(this,a.o)};
function N2(a,b){a.C.Jf();C2(a.j,0);a.publish("adError",b)}f.MF=function(){t2(this.F);this.k.pause();this.publish("select")};f.Fq=function(){var a=this.j.j.mh();this.j.fa.D||(this.yh.innerHTML=iv(a.duration-a.current),a=jv(a.current/a.duration),this.xh.style.width=a+"%")};
f.L=function(){this.j.unsubscribe("control_toggle_play_pause",this.Wt,this);this.j.unsubscribe("control_play",this.Rn,this);this.j.unsubscribe("control_pause",this.Qn,this);this.j.unsubscribe("onResize",this.Sn,this);this.A.removeAll();this.C.subscribe("statechange",this.Vi,this);this.C.unsubscribe("internalvideodatachange",this.Vt,this);this.C.unsubscribe("progresssync",this.Fq,this);this.H||this.k.destroy();this.yh&&(this.yh.innerHTML="",this.yh=null);this.xh&&(Ld(this.xh),this.xh=null);this.wh&&
(hh(this.wh,["ad-showing","ad-interrupting"]),this.wh=null);this.D=!1;var a=this.j;if(a.o){var b=a.app,a=a.o;P2(b);a!=b.k&&M2(b,b.k)}K2.J.L.call(this)};f.hi=function(){return this.C.Uc()};f.Vk=function(){return this.o&&this.o.o?this.o.o.mimeType:null};f.Wk=function(){return this.o&&this.o.T?cs(this.o.T.k):null};f.Wt=function(){this.ck?this.Qn():this.Rn()};f.Rn=function(){this.k.resume();this.Ut()};f.Qn=function(){this.k.pause();this.Tt()};f.Sn=function(){Mg(JD(this.j.k),H2(this.j))};function Q2(a,b){this.o=a;this.k=b}function R2(a,b,c){a.o.publish("AD_LOGGING_EVENT",b,c)}function S2(a){var b={};z1(a.o.getCurrentAd(),b);a.B&&a.j&&(b.ot=a.j-a.B);var c;c=a.k.isFullscreen()?2:a.k.R().Jd?1:0;b.ad_ps=c;b.at=a.o.B();return b};function T2(a,b,c,d){l2.call(this,b,a,1,c);this.C=new Q2(this,b);this.A=new zv(this);this.D=!!d}z(T2,l2);f=T2.prototype;f.ld=null;f.Xl=!1;
f.show=function(){if(!this.Xl||!U2(this.j)){var a=this.j.Ka();N(a,"ad-showing");this.ld=JD(this.j.k);a=this.k.getCurrentAd().getHeight();this.ld.style.height=Dg(a,!0);N(this.ld,"ad-overlay");this.A.listen(this.ld,"mouseup",this.RF);try{this.A.listen(this.k,"userClose",this.nC);this.A.listen(this.k,"click",this.QF);this.A.listen(this.k,"adError",this.PF);V2(this,"normal");this.D||this.k.start();var b=this.C;b.B=y();var c=S2(b);R2(b,3,c);this.j.subscribe("onResize",this.dk,this);this.j.subscribe("onStateChange",
this.Xt,this);this.publish("adEnd",this)}catch(d){this.publish("adError",d)}}};f.L=function(){this.A.removeAll();this.j.unsubscribe("onResize",this.dk,this);this.j.unsubscribe("onStateChange",this.Xt,this);var a=this.j.Ka();gh(a,"ad-showing");this.k&&(this.D||this.k.destroy(),this.k=null);this.ld&&gh(this.ld,"ad-overlay");this.ld=null;this.Xl=!1;T2.J.L.call(this)};
f.nC=function(){this.ld&&this.k&&this.k.getCurrentAd()&&(this.ld.style.height=Dg(0,!0));this.Xl=!0;var a=this.C;a.j=y();var b=S2(a);R2(a,6,b)};f.QF=function(){this.j.pauseVideo();var a=this.C;a.j=y();var b=S2(a);if(a.A){var c=w2(a.k),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}R2(a,100,b)};f.RF=function(a){this.C.A=a.target==a.currentTarget?null:new Mc(a.pageX,a.pageY)};f.PF=function(a){this.publish("adError",a.o)};
f.Xt=function(a){W(a.state,16)&&V2(this,"normal")};function V2(a,b){a.F!=b&&(a.F=b)}f.dk=function(){};function W2(a,b,c,d){Q.call(this);this.M=a;this.k=b.j;this.F=b;this.I=b.getId();this.j=c;this.o=d;this.B=new C1(this.k,this.Te(),c,d);this.C=null;this.K=new ln(this);this.A=new ln(this)}z(W2,Q);W2.j="rm";W2.k=10;W2.C=200;W2.A=200;W2.B=190;W2.o=100;f=W2.prototype;f.Mn=null;
f.load=function(){var a;a=this.j;a=a.fa.A?H2(a):a.app.o.k.xb();var b;this.j.fa.j?b=!1:(b=0<(this.o&3)?W2.B:W2.A,b=a.width<W2.C||a.height<b);if(b){b=this.B;var c=D1(b);c.ck_wh=a.width+"x"+a.height;X2(b.j,14,c);H1();this.ye(Error("The player size is too small."))}else if(this.C=this.j.Yf){a=this.B;Y2(a.j,9,D1(a));a=new YU;(b=this.j.fa.serverPrefetchedVast)&&0<(this.o&3)?(a.adsResponse=b,this.j.fa.serverPrefetchedVast=void 0):a.adTagUrl=this.ff();b=H2(this.j);a.linearAdSlotWidth=b.width;a.linearAdSlotHeight=
b.height;a.nonLinearAdSlotWidth=b.width;a.nonLinearAdSlotHeight=W2.o;a.To=sZ(this.j.R());a.j=this.j.R().experiments.experimentIds;if(b=a.To?aE(this.j.R()):-1)a.lastActivity=b;this.j.fa.tagForChildDirected&&(a.tagForChildDirectedContent=!0);GD(this.j.R(),"937420")&&(a.ah=!0);b=kr(this.j.app);a.Mc={"[CONTENT_V]":b.videoId,"[CPN]":b.za,"[LACT]":Z2(this)};sZ(this.j.R())||(a.Mc["[LACT]"]="-1");this.C.listen("adsManagerLoaded",this.Lt,!1,this);this.C.listen("adError",this.Kt,!1,this);this.ij(this.C,a)}};
f.Xk=function(){var a=new JK,b=this.j.fa,c=this.j.R();a.baseYouTubeUrl=c.A;a.contentId=kr(this.j.app).videoId;a.Al=GD(c,"927622");a.showContentThumbnail=b.showContentThumbnail;a.surveyCreativeData=b.surveyCreativeData;a.useShareButton=!0;a.useStyledNonLinearAds=!0;a.useVideoAdUi=b.D;a.youTubeAdNamespace=this.Te();b.O&&(a.ro=!0,a.Uw=!0,a.showContentThumbnail=!1,a.cn=!0,a.Ds=!0,a.useShareButton=!1);return a};f.Te=function(){return this.M};function $2(a){var b=W2.k;a.k=b;a.B.A=b}
function a3(a,b){a.Mn=b;a.B.o=b.B()}function b3(a,b){var c=r("yt.www.watch.ads.setAdId");c&&c(b);a.B.k=b}function c3(a){a=a.k;return 0==a||-1==a?a:1E3*a}function Z2(a){var b=a.j;return{toString:function(){return null==b||b.ha()?b=null:aE(b.R()).toString()}}}
f.Lt=function(a){if(a.A===this){KH("aml");try{var b=this.Xk(),c=a.o}catch(d){this.Nd(d);return}this.A.listen(c,"companionBackfill",x(this.GF,this,c));this.A.listen(c,"loaded",x(this.FF,this,c));this.A.listen(c,"adError",x(this.EF,this,c));this.A.listen(c,"allAdsCompleted",u);this.A.listen(c,"contentPauseRequested",u);this.A.listen(c,"contentResumeRequested",u);c=w1(a,this.j.A,{},b);try{c.init("normal")}catch(e){c.destroy(),this.Nd(e)}}};
f.FF=function(a,b){this.A.removeAll();var c=b.getAd(),d=vT(c),e=this.B,g=D1(e);g.ad_man=d?"instream":"overlay";Y2(e.j,12,g);e=a.getMediaUrl();switch(d?this.xg(a,c,e):this.Hd(a,c)){case 0:d3(this.F,this.Mn,this.k);break;case 1:a.destroy();this.ye(Error("Unable to create a display state."));break;case 2:c=this.B;X2(c.j,21,D1(c));a.destroy();this.ye(Error("Fallback to next ad."));break;default:a.destroy()}};f.EF=function(a,b){this.A.removeAll();a.destroy();this.Nd(b.o)};
f.Kt=function(a){var b=a.o;"adLoadError"==b.o&&a.A===this&&this.Nd(b)};f.GF=function(){G1()};f.xg=function(a,b,c){b3(this,GT(b));var d;this.j.fa.P?d=new K2(this.Te(),this.j,a,xT(b)):d=new A2(this.Te(),this.j,a,c,xT(b));a3(this,d);return 0};f.Hd=function(a,b){b3(this,GT(b));a3(this,new T2(this.Te(),this.j,a));return 0};f.Nd=function(a){if(a){var b=this.B,c=D1(b);a&&y1(a,c);X2(b.j,32,c);this.ye(a)}};f.ye=function(){e3(this.F)};
f.L=function(){this.C&&(this.C.Fa("adsManagerLoaded",this.Lt,!1,this),this.C.Fa("adError",this.Kt,!1,this));this.K.removeAll();this.A.removeAll();W2.J.L.call(this)};f.ij=function(a,b){try{aZ(a,b,this),KH("ar")}catch(c){this.Nd(c)}};function f3(a){this.j=a};function g3(a){l2.call(this,a,2,3,null);this.A=this.C=0}z(g3,l2);g3.prototype.show=function(){var a=r("yt.www.watch.ads.loadAfc");a&&a();this.publish("adEnd",this);this.C=Kf(x(this.D,this),1E3)};g3.prototype.L=function(){h3(this);g3.J.L.call(this)};function h3(a){a.C&&(Lf(a.C),a.A=0)}g3.prototype.D=function(){var a=r("yt.www.watch.ads.isAfcAdVisible");this.A++;var b={};b.at=this.B();10<=this.A||!a?(h3(this),this.publish("AD_LOGGING_EVENT",2,b)):a()&&(h3(this),this.publish("AD_LOGGING_EVENT",3,b))};function i3(a,b,c){W2.call(this,2,a,b,c);this.D=new f3(this.j.fa);F1()}z(i3,W2);i3.prototype.Xk=function(){var a=i3.J.Xk.call(this);a.qo=0==this.I;a.Aw=U2(this.j)?a.qo:!0;return a};i3.prototype.ff=function(){var a;var b=this.D;a=c3(this);(b=4==this.o&&b.j.afvInvideoAdTag?b.j.afvInvideoAdTag:b.j.afvAdTag)?(wa(b,"http:")&&(b=b.substr(5)),a=sj(b,{videoad_start_delay:a})):a="";return a};
i3.prototype.Hd=function(a,b){if(this.j.fa.j)return 1;0==this.k&&($2(this),Y2(this.j,1));return i3.J.Hd.call(this,a,b)};i3.prototype.ye=function(a){var b=this.j.fa;b.j?i3.J.ye.call(this,a):b.ka||this.o&4?(a3(this,new g3(this.j)),d3(this.F,this.Mn,this.k)):i3.J.ye.call(this,a)};function j3(a,b){if(a){this.Mt=a;this.zp=b;var c,d=this.Mt,e=d.indexOf(";sz=");c=mj(d.substring(e),";");d=d.substring(0,e).split("pfadx");if(c=2!=d.length?null:{Fw:d[0],WC:d[1],YC:c})this.zo=c.Fw,this.Ir=c.WC,this.Nt=c.YC}}f=j3.prototype;f.Mt="";f.zo="";f.zp=!1;f.tm="";f.Ir="";f.Nt=null;
f.ii=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=bc(this.Nt);c&&(k.pos=c);h&&(k.tile=h.toString());g&&(k.kmyd=g);e&&0<e.length&&this.zp&&(k.ciu_szs=e.join(","));k.dcmt="text/xml";this.tm||(this.tm=Math.floor(999999999*Math.random()).toString());
k.ord=this.tm;d&&d.length&&Zb(k,"sz");e=nj(k,";");d&&d.length&&(e="sz="+d.join(",")+";"+e);return[this.zo,"pfadx",this.Ir,";",e,"?"].join("")};function k3(a){this.j=a?a:""}k3.prototype.ii=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 I(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 l3(a,b,c){T2.call(this,1,a,b,c)}z(l3,T2);l3.prototype.dk=function(){};l3.prototype.B=function(){return"1_3"};function m3(a,b,c){W2.call(this,1,a,b,c);a=this.j.fa;this.P=a.Gg?new k3(a.adTag):new j3(a.adTag,a.ja)}z(m3,W2);m3.prototype.ff=function(){return this.P.ii(this.k,this.o)};
m3.prototype.Hd=function(a,b){b3(this,GT(b));var c=null!=b.j?b.j.F:{};if(A1(c,W2.j))return 1==this.o||U2(this.j)||H1(),a.sendImpressionUrls(),this.j.fa.pi?(a3(this,new g3(this.j)),0):2;if(A1(c,"blockAllAds"))return a.sendImpressionUrls(),a3(this,new l3(this.j,a)),0;if(A1(c,"hideMaster"))return a3(this,new l3(this.j,a)),0;if(this.j.fa.j)return 1;a3(this,new T2(this.Te(),this.j,a));return 0};function n3(a,b,c,d){m3.call(this,a,b,c|d);this.H=c;this.G=d;this.D=null;F1()}z(n3,m3);var o3={GDFP:1,DART:1,DART_DFP:1,DART_DFA:1,ADSENSE:2,"ADSENSE/ADX":2};f=n3.prototype;f.ff=function(){if(this.j.fa.Gg){var a=new k3(this.j.fa.dynamicAllocationAdTag);return a.ii(this.k,this.H)}a=new j3(this.j.fa.dynamicAllocationAdTag,this.j.fa.ja);return a.ii(this.k,this.H)};
f.ij=function(a,b){if(this.G){b.youTubeAdType=B1(this.G);var c=this.j.fa.da;c&&(b.youTubeExperimentIds=c);b.gh=c3(this)}n3.J.ij.call(this,a,b)};f.xg=function(a,b,c){p3(this,a);return 1!=this.D&&2!=this.D?1:n3.J.xg.call(this,a,b,c)};f.Hd=function(a,b){p3(this,a);switch(this.D){case 1:return n3.J.Hd.call(this,a,b);case 2:var c;this.j.fa.j?c=1:(0==this.k&&($2(this),Y2(this.j,1)),b3(this,GT(b)),a3(this,new T2(2,this.j,a)),c=0);return c;default:return 1}};f.Te=function(){return this.D||0};
function p3(a,b){var c=b.getCurrentAd(),d=JT(c);d.unshift(AT(c));for(c=0;c<d.length;++c){var e=o3[d[c].toUpperCase()];if(e){a.D=e;return}}a.D=0};function q3(a,b){var c=b.fa;this.D=c.Ca;var d=0,c=c.ga.toUpperCase();"INVIDEO"==c?d=4:"INSTREAM"==c?d=1:"MPU"==c&&(d=8);W2.call(this,2,a,b,d)}z(q3,W2);q3.k="https://www.googleapis.com/urlshortener/v1/url?key=AIzaSyBbSB-E7SYd1iggX6r2b5C7ljvO6fVqaj0&shortUrl=";q3.o="43";
q3.j=function(a){var b=new Bu;Aj(a,{format:"RAW",method:"GET",timeout:5E3,withCredentials:!0,De:function(){Cu(b,Error(a+" timed out"))},onError:function(c){Cu(b,Error("Problem loading "+a+" with status code "+c.status))},ab:function(a){Gu(b);Eu(b,!0,a)}});return b};q3.prototype.ff=function(){return""};
q3.prototype.ij=function(a,b){var c=this.o;c&1||c&4||c&8?this.D?c&8?I1(this.D):("goo.gl"==qj(this.D)?(c=q3.j(q3.k+this.D),Iu(c,function(a){a=dg(a.responseText);if(!a)throw Error("Invalid expanded forced ad URL.");if(!a.longUrl)throw Error("Missing forced ad URL information.");a=new I(a.longUrl);K(a,"video_format",q3.o);return q3.j(a.toString())},this)):c=q3.j(this.D),Iu(c,function(c){b.adsResponse=c.responseText;aZ(a,b,this)},this),Ju(c,null,this.Nd,this)):this.Nd(Error("Invalid empty URL")):this.Nd(Error("Invalid request type: "+
c))};function r3(a,b,c,d){this.j=a;this.A=c;this.o=d;this.B=b;Wh||Xh?this.k="html5_ios":Yh?this.k="html5_android":Vr()?this.k="html5_ps3":"leanback"==this.A.ea?(a=(Sb(window,"environment","brand")||"").toLowerCase(),this.k="roku"==a||"bskyb"==a?"roku":"html5_tv_leanback"):s3(this)?this.k="html5_desktop":this.k="html5"}var t3="kyvDG3GPNY0 F_HOziu_duk T8uOdgwGUvc Ojs8LzuieSI JzTfd-RlK4M bfHSqiuB_QA b2nJxZl0xEk Bj9O5BESM1o tu3C_TjRpGM FQYmOyuKtwg FEWg27qS_aY 9_edKusM2j0 SbL08XsN9rk u31pf-9Rsjc 64J_K7R7Bu8 wDzg2Eh-TiQ qERY1A8AnM0 B5uvc8NhkwI".split(" ");
function s3(a){return F(t3,a.j.V)||HD(a.A,"952600","952605")&&!a.j.gb};function u3(a,b){T2.call(this,4,a,b)}z(u3,T2);u3.prototype.dk=function(){};u3.prototype.B=function(){return"4_3"};function v3(a,b,c){W2.call(this,4,a,b,c);this.D=new r3(this.j.fa,kr(this.j.app).lengthSeconds,this.j.R(),c)}z(v3,W2);
v3.prototype.ff=function(){var a;var b=this.D;if(b.j.Ha&&b.j.V){a={};var c="youtube_watch_"+b.k;a.nw="10613";a.asnw=b.j.Ha;a.ssnw=b.j.Ha;a.caid=b.j.V;a.vdur=b.B;a.csid=c;a.resp="vast2";c={};isNaN(b.j.oa)||(c._fw_d_001=b.j.oa);b.j.va&&(c._fw_d_002=b.j.va);b.j.na&&(c["_fwu:10613:lang"]=b.j.na);b.j.ba&&(c._fw_dbp=b.j.ba);b.j.ta&&(c._fw_distributorvideoassetid=b.j.ta);c._fw_yt_type=b.j.B?"short":"long";if(s3(b)){a.prof="10613:10613_youtube_html5_2014";a.crtp="youtube";a.flag="+slcb+qtcb+amcb+exvt+emcr";
var d="",e;b.o&1&&(e={slid:"preroll",ptgt:"a",slau:"preroll",tpos:"0"},d=nj(e,"&")+";",e={slid:"page_display1",w:"300",h:"60",ptgt:"s",slau:"display",flag:"+cmpn"},d+=nj(e,"&")+";");b.o&4&&(e={slid:"overlay",ptgt:"a",slau:"overlay",tpos:"10"},d+=nj(e,"&")+";",e={slid:"page_display2",w:"300",h:"250",ptgt:"s",slau:"display",flag:"+cmpn"},d+=nj(e,"&")+";");b.o&8&&(e={slid:"dis",w:"300",h:"250",ptgt:"s",slau:"display"},d+=nj(e,"&")+";");b=d.substr(0,d.length-1);a="//2975c.v.fwmrm.net/ad/g/1?"+nj(a,"&")+
";"+nj(c,"&")+";"+b}else{d="10613:10613_youtube_"+b.k.split("_")[0];a.prof="10613:10613_youtube_"+b.k;a.crtp="vast2s";a.flag="+emcr";e={ptgt:"a",slid:"preroll"};var g="";b.j.C&&!b.j.o?g=";linear-skippable":!b.j.C&&b.j.o&&(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?"+nj(a,"&")+";"+nj(c,"&")+";"+nj(e,"&")}}else a="";return a};v3.prototype.xg=function(a,b){return 0!=this.k?1:v3.J.xg.call(this,a,b,null)};
v3.prototype.Hd=function(a,b){var c=null!=b.j?b.j.F:{};if(A1(c,W2.j))return this.F.A=ac(a),2;if(this.j.fa.j)return 1;if(A1(c,"hideMaster")){if(a.C&&a.C.re()){var c=a.C.re(),d;d=a.getCurrentAd();if(sK()){var e=d.S;d.S=[];d=e}else d=[];c.impressionUrls=d}a3(this,new u3(this.j,a));return 0}return v3.J.Hd.call(this,a,b)};function w3(a,b,c){W2.call(this,13,a,b,c)}z(w3,W2);var x3=[{Em:4,size:"480x70",Jo:"300x250"},{Em:1,size:"480x360",Jo:"300x60"}];
w3.prototype.ff=function(){var a=new I(this.j.fa.hb,!0),b=this.o,c=x3.filter(function(a){return(b&a.Em)==a.Em}),d=c.map(function(a){return a.size}).join("|");K(a,"sz",d);c=c.map(function(a){return a.Jo}).join(",");K(a,"ciu_szs",c);c=4==(this.o&4);1==(this.o&1)?(c||K(a,"vad_type","linear"),c="midroll",0==this.k?c="preroll":-1==this.k&&(c="postroll"),K(a,"vpos",c)):c&&K(a,"vad_type","nonlinear");return a.toString()};function y3(a,b,c){this.o=a;this.j=b;this.k=c||0}y3.prototype.create=function(a,b){switch(this.o){case 1:return new i3(a,b,this.j);case 2:return new m3(a,b,this.j);case 3:return new n3(a,b,this.j,this.k);case 5:return new v3(a,b,this.j);case 4:return new q3(a,b);case 6:return new w3(a,b,this.j);default:return null}};function z3(a){return 0<((a.j|a.k)&3)};function A3(a,b,c,d,e){T.call(this);this.xa=b;this.o=a;this.j=c;this.B=d;this.A=this.k=null;this.C=!!e;this.D=NaN}z(A3,T);f=A3.prototype;f.fn=!0;f.tb=!1;f.isVisible=!0;f.Ic="unloaded";f.jn=!1;f.nb=function(){return 0==this.j?B3(this)&&C3(this)?-2147483648:0:-1==this.j||-2==this.j?2147483647:1E3*this.j};function D3(a){return 0==a.j||-2==a.j?!1:jb(a.B,function(a){switch(a.o){case 1:case 2:case 3:case 6:return!0;default:return!1}})}function B3(a){return"loaded"==a.Ic||"error"==a.Ic}
function C3(a){if(!B3(a))throw Error("Preroll status is undefined before ad load.");return 0==a.j&&a.tb}function e3(a){a.Ic="loading";0==a.j&&!ib(a.B,z3)&&Fs(a.o);if(a.C)a.Ic="loaded",a.tb=!0,E3(a);else{var b=a.B.shift();if(b){0==a.j&&F3(a.o,"nl");b=b.create(a,a.o);R(a,b);var c=r("ytplayer.playback_delay");c?a.D=L(x(b.load,b),c):b.load()}else Y2(a.o,2,G3(a,{})),H3(a,!1),a.Ic="error",E3(a)}}f.getId=function(){return this.xa};
function I3(a){a.k&&(a.k.unsubscribe("adEnd",a.Eq,a),a.k.unsubscribe("adError",a.Jt,a),a.k.unsubscribe("AD_LOGGING_EVENT",a.Xq,a),a.k.unsubscribe("select",a.It,a))}function d3(a,b,c){a.k=b;a.j=c;R(a,a.k);0==a.xa&&(a.o.C.at=a.k.B());a.k instanceof A2||a.k instanceof K2?a.tb=!0:a.k instanceof g3?a.isVisible=!1:a.k instanceof u3?a.isVisible=!1:a.k instanceof l3&&(a.isVisible=!1);a.Ic="loaded";E3(a)}function E3(a){a.publish("adBreakComplete",a)}
f.show=function(){this.jn?this.k instanceof T2&&V2(this.k,"normal"):(this.jn=!0,(this.k instanceof A2||this.k instanceof K2)&&F3(this.o,"bs"),this.k.subscribe("adEnd",this.Eq,this),this.k.subscribe("adError",this.Jt,this),this.k.subscribe("AD_LOGGING_EVENT",this.Xq,this),this.k.subscribe("select",this.It,this),this.k.show(),H3(this,!0))};function H3(a,b){a.A&&(a.A.sendImpressionUrls({"[FILLED_OPPORTUNITY]":b?1:0}),a.A.dispose(),a.A=null)}
f.Eq=function(){if(this.tb){I3(this);var a=this.o;if(a.fa.la&&!a.Rl){var b=a.R().A;bg(b+"mac_204?action_fcts=1");a.Rl=!0}}E3(this)};f.Jt=function(a){if(a){var b={};y1(a,b);G3(this,b);X2(this.o,32,b)}I3(this);E3(this)};f.Xq=function(a,b){G3(this,b);Y2(this.o,a,b)};f.It=function(){this.fn=!1};function G3(a,b){b.sst=a.j;b.sidx=0;return b}f.L=function(){I3(this);this.k=null;null!=this.A&&(this.A.dispose(),this.A=null);M(this.D);A3.J.L.call(this)};function J3(a){this.Ew=a}function K3(a){try{var b=GB(a).getElementsByTagName("AdBreak"),c=D(b,function(a){a=a.getAttribute("time");return Xa(a)});return new J3(c)}catch(d){return new J3([0])}};function L3(a){var b=0;if(a.K||a.I)a.K&&(b|=1),a.I&&(b|=2);var c=0;a.B&&(a.H&&(a.afvMergeEnabled&&b?b|=4:c=4),b||(b=c,c=0));a=new oe;a.set(3,b);a.set(4,c);return a}
function M3(a){var b=[];if(a.X)return b.push(new y3(4,0)),b;if(a.S){var c=0;if(a.o||a.C)c|=1;a.F&&(c|=4);a.T&&(c|=8);b.push(new y3(5,c))}a.Yl&&(c=0,a.o&&(c|=1),a.F&&a.B&&(c|=4),b.push(new y3(6,c)));c=0;a.M&&(a.o&&(c|=1),a.C&&(c|=2),a.F&&a.B&&(c|=4),a.T&&a.B&&(c|=8));var d=L3(a);a.Va&&c&&d.get(3)?b.push(new y3(3,c,d.get(3))):(c&&b.push(new y3(2,c)),d.get(3)&&b.push(new y3(1,d.get(3))));d.get(4)&&b.push(new y3(1,d.get(4)));return b};function N3(a){this.j=a};function O3(a,b){this.G=a;this.O=this.G.isMobile;this.A="leanback"==this.G.ea;this.j=this.O||this.A;this.D=!this.A&&!(Wh&&!a.I);this.P=a.C&&(!this.j||this.A)||this.O&&!(Wh&&!a.I);this.apply(b);if(this.C&&!this.P)throw"Skippable instreams were enabled without FullPlayerApiSupport";}var P3={Ev:"m",mv:"f"};f=O3.prototype;
f.apply=function(a){var b=x1(a.instream),c=x1(a.trueview),d=x1(a.aftv);this.Ua=a.ad_slots;this.W=a.ad_breaks;this.adFlags=a.ad_flags||0;this.da=a.cafe_experiment_id;this.adTag=a.ad_tag;this.ob=!!a.adtest;this.afvAdTag=a.afv_ad_tag;this.ya=Q3(this.afvAdTag);this.afvInvideoAdTag=a.afv_invideo_ad_tag;this.afvMergeEnabled=!!a.afv_merge_enabled;this.oa=parseInt(a.ad_age,10);this.amsBaseTag=a.ams_base_tag;this.applyFadeOnMidrolls=!!a.apply_fade_on_midrolls;this.Ba=a.cid;this.ta=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.Ca=a.force_ad_url;this.va=Tb(P3,function(b){return b==a.ad_gender});this.ba=
a.dbp;this.pi=x1(a.afc_rm_fallback);this.ja=!!a.mpu;this.H=x1(a.afv)&&!this.j;this.I=d&&c;this.K=d&&b&&!x1(a.no_afv_instream);this.M=x1(a.dclk);this.Gg=x1(a.gpt_migration);this.wa=1==a.livestream;this.X=x1(a.forced_ad)&&!this.j;this.S=1==parseInt(a.tpas_ad_type_id,10);this.qb=!!a.fqsf;this.o=b;this.F=x1(a.invideo)&&!this.j;this.T=x1(a.mpu)&&!this.j;this.gb=F(this.ya,"yt_mabv");this.la=x1(a.shortform);this.B=x1(a.sffb);this.Yl=x1(a.xfp);this.hb=a.xfp_tag;this.Yp=GD(this.G,"961401");b=FD(this.G,this.A);
this.to=(!this.j||b)&&!this.S;this.C=c;this.na=a.ad_language_iso639_2;c=parseInt(a.max_dynamic_allocation_ad_tag_length,10);isNaN(c)&&(c=2E3);this.maxDynamicAllocationAdTagLength=c;this.k=parseInt(a.midroll_freqcap,10);isNaN(this.k)&&(this.k=-1);this.midrollPrefetchSize=parseInt(a.midroll_prefetch_size,10)||0;"boolean"==typeof a.show_content_thumbnail&&(this.showContentThumbnail=a.show_content_thumbnail);this.tagForChildDirected=x1(a.tag_for_child_directed);this.serverPrefetchedVast=a.server_prefetched_vast;
this.surveyCreativeData=a.surveyCreativeData;this.ka=d&&this.B&&!this.H;this.Oa=this.H||this.ka;this.jb=parseInt(a.ad_device,10);this.V=a.tpas_video_id;this.Ha=a.tpas_partner_id;this.vmap=a.vmap;this.Va=R3(this);this.Qb=this.G.Qb};
function R3(a){if(A(B(a.dynamicAllocationAdTag)))return!1;if(GD(a.G,"942306"))return!0;var b=(a.o||a.C)&&a.M;a.B&&a.M&&(b=b||a.F||a.T);if(!b)return!1;b=a.I||a.K;if(!(b||a.B&&a.H))return!1;if(a.serverPrefetchedVast)return!0;var c=a.dynamicAllocationAdTag.length+330+(a.Gg?25:102);window.document.referrer&&(c+=za("ref="+za(window.document.referrer)).length);b||(c+=41);return c<=a.maxDynamicAllocationAdTagLength}
function Q3(a){if(A(B(a)))return[];a=kf(new I(a),"channel");return null!=a?a.split("+"):[]}f.applyFadeOnMidrolls=!1;f.to=!0;f.Yp=!1;f.pi=!1;f.Gg=!1;f.Yl=!1;f.showContentThumbnail=!0;function S3(a){Q.call(this);this.j=a;this.k=0;this.B={};a=a.fa;this.C=a.fadeInDurationMilliseconds;this.D=a.fadeInStartMilliseconds;this.o=a.fadeOutDurationMilliseconds;this.A=a.fadeOutStartMilliseconds;this.us()}z(S3,Q);f=S3.prototype;f.us=function(){this.j.subscribe("beginseeking",this.Th,this)};f.ds=function(a,b){return a.tb&&0<a.j?b+this.A+this.o:b};f.cs=function(a,b){return a.tb&&-1!=a.j&&2147483646!=b&&2147483647!=b?b+this.A+this.o:b};
f.po=function(a){if(a.tb&&0<a.j&&!(0>=this.o)){var b={priority:2,id:String(a.getId()),style:"ytp-ad-fadeout"},c=a.nb()+this.A,b=new ss(c,c+this.o-1,b);this.B[a.getId()]=b;this.j.sd(b)}};function T3(a,b){a.B[b]&&(a.j.Yj(a.B[b]),delete a.B[b])}f.sr=function(a){a.tb&&0<a.j&&(T3(this,a.getId()),this.Th())};f.Th=function(){this.k&&(M(this.k),this.k=0);var a=G2(this.j,!1);a.volume=Cq(this.j.app)/100;wg(a,"transition","");wg(a,"opacity","1")};
f.Ur=function(a){var b=a.nb()+this.A+this.o,b=50>=1E3*this.j.j.getCurrentTime()-b;a.tb&&0<a.j&&b&&(a=.001*(a.nb()+this.D),this.j.publish("command_seek",a),0>=this.C||(a=G2(this.j,!1),wg(a,"opacity","0"),a.volume=0,L(x(this.$w,this),0)))};f.$w=function(){var a=G2(this.j,!1);wg(a,"transition","opacity "+String(this.C)+"ms linear");wg(a,"opacity","1");U3(this,a,this.C,1)};function U3(a,b,c,d){0>=c||(a.k&&M(a.k),c=y()+c,a.k=0==d?fv(x(a.Vo,a,b,c,100),0):fv(x(a.Uo,a,b,c,100),0))}
f.Vo=function(a,b,c){if(this.k){var d=Math.max(1,b-y()),d=Math.max(0,a.volume+-1*a.volume*c/d);a.volume=d;this.k=0<d?fv(x(this.Vo,this,a,b,c),c):0}};f.Uo=function(a,b,c){if(this.k){var d=Math.max(1,b-y()),e=Cq(this.j.app)/100,d=Math.min(e,a.volume+(e-a.volume)*c/d);a.volume=d;this.k=d<e?fv(x(this.Uo,this,a,b,c),c):0}};f.L=function(){this.Th();this.j.unsubscribe("beginseeking",this.Th,this)};function V3(a){S3.call(this,a)}z(V3,S3);f=V3.prototype;f.us=u;f.ds=function(a,b){return b};f.cs=function(a,b){return b};f.po=u;f.sr=u;f.Ur=u;f.L=u;function W3(a,b){return b?new S3(a):new V3(a)};function X3(a,b,c){Q.call(this);this.j=a;this.C=b;this.o=c;this.B=this.k=-1;this.o&&0<this.j.fa.k&&this.j.subscribe("endseeking",this.A,this)}z(X3,Q);function Y3(a,b){Z3(a);0<b&&(a.B=L(x(a.A,a),1E3*b))}function Z3(a){-1!=a.B&&(M(a.B),a.B=-1)}
X3.prototype.A=function(){var a=this.j.fa.k;if(this.o&&!(0>=a)){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;Jb(this.C.o,function(a){if(a.isVisible&&!(0>=$3(this,a))){var g;g=a.getId();g=this.C.B[g];if($3(this,a)>b){var l=!a4(this,a);l!=g.visible&&(g.visible=l,c.push(g));l||(g=$3(this,a)-b,g<e&&(e=g,d=a))}else g.visible||(g.visible=!0,c.push(g))}},this);0<c.length&&b4(this.j,c);if(d){var g=0;0<this.k&&(g=y()/1E3-this.k);Y3(this,a-g-e+2)}else Z3(this)}};
function a4(a,b){if(!a.o||!(0<b.j)&&-1!=b.j)return!1;var c=a.j.fa.k;if(0>=c||0>=a.k)return!1;var d=y()/1E3,e=$3(a,b)-a.j.j.getCurrentTime();0<e&&(d+=e);return d-a.k<=c}function $3(a,b){return-1==b.j?a.j.j.getVideoData().lengthSeconds:b.j}X3.prototype.L=function(){Z3(this)};function c4(a,b){Q.call(this);this.k=b;this.C=[];this.o={};this.B={};this.j=a;var c=a.fa,d=!c.wa&&ib(this.k,function(a){return 0<a.j||-1==a.j});this.F=new X3(this.j,this,d);c=c.applyFadeOnMidrolls&&(c.o||c.C)&&ib(this.k,function(a){return 0<a.j});this.A=W3(this.j,c);this.M=ib(this.k,function(a){return 0==a.j})}z(c4,Q);f=c4.prototype;f.Gb=null;function d4(a){a.C.length||(a.C=gb(a.k,function(a){return"unloaded"==a.Ic}),0==a.C.length?Fs(a.j):(a.M||Fs(a.j),e4(a)))}
function e4(a){if(a.C.length){var b=a.C.shift();b.subscribe("adBreakComplete",a.Cf,a);e3(b)}}f.Cf=function(a){a.unsubscribe("adBreakComplete",this.Cf,this);L(x(this.Sz,this,a),0)};
f.Sz=function(a){var b=eb(this.k,a),c=this.k[b+1],b=this.k[b-1],d=2147483646;-2==a.j||-1==a.j?d=2147483647:c&&2147483647!=c.j&&(d=c.nb()-1);0==a.xa&&(F3(this.j,"bl"),C3(a)||F3(this.j,"fb"));if(c="loaded"!=a.Ic||0==a.xa&&C3(a)&&c&&1E3*this.j.j.getCurrentTime()>c.nb()){if(b&&B3(b)){var e=b.nb();e>d&&(d=e);f4(this,b);g4(this,b,d)}}else this.o[a.getId()]=a,g4(this,a,d);Fs(this.j);c&&this.qe(a);Nb(this.o)==this.k.length&&this.F.A();e4(this)};
function g4(a,b,c){var d=b.nb();if(!isNaN(d)){var e={};e.priority=-2!=b.j?2:3;e.id=String(b.getId());e.visible=b.isVisible;d=a.A.ds(b,d);c=a.A.cs(b,c);c=new ss(d,c,e);a.B[b.getId()]=c;a.j.sd(c);a.A.po(b)}}function f4(a,b){var c=b.getId();a.B[c]&&(T3(a.A,c),a.j.Yj(a.B[c]),delete a.B[c])}f.qe=function(a){a.unsubscribe("adBreakComplete",this.Cf,this);this.Gb&&a==this.Gb&&(this.Gb=null);f4(this,a);qb(this.k,a);delete this.o[a.getId()];S(a)};f.bk=function(a){return this.o[a]};
f.jm=function(a){if(a.tb){if(-1!=a.j&&a.fn){var b=this.j;h4(b);Ps(b);this.A.Ur(a)}else C3(a)&&!a.fn?(b=this.j,h4(b),Ps(b)):(h4(this.j),Qs(this.j,!1));this.qe(a);a=this.F;a.o&&0<a.j.fa.k&&(a.k=y()/1E3,a.A())}else a.isVisible||this.qe(a)};f.L=function(){S(this.A);S(this.F);C(this.k,this.qe,this);c4.J.L.call(this)};function i4(a,b,c){c4.call(this,a,b);this.H=[];this.I=[];this.D=[];this.P=c;this.G=0;this.K=a.fa.k;if(1<=c)for(a=0;a<b.length;a++)if(c=b[a],D3(c)){var d=new A3(c.o,c.xa,c.j,c.B,!0);b[a]=d;this.H.push(c)}this.M||this.Df()}z(i4,c4);f=i4.prototype;
f.bk=function(a){a=i4.J.bk.call(this,a);if(!a)return null;if(!a.C)return a;var b;b=null;if(this.D.length){var c=b=this.D.shift();c.j=a.j;c.xa=a.getId()}b&&"loaded"==b.Ic?(a.unsubscribe("adBreakComplete",this.Cf,this),this.o[a.getId()]=b,this.k[this.k.indexOf(a)]=b,S(a)):(this.Df(),b&&(S(b),b=null),this.qe(a));b&&!b.tb&&this.Df();return b};f.Cf=function(a){0!=a.j||"loaded"==a.Ic&&a.tb||this.Df();i4.J.Cf.call(this,a)};
f.jm=function(a){a.tb&&10<this.K?(j4(this),this.G=L(x(this.Df,this),1E3*(this.K-10))):this.Df();i4.J.jm.call(this,a)};f.Df=function(){for(j4(this);this.H.length&&this.I.length+this.D.length<this.P;){var a=this.H.shift();a.subscribe("adBreakComplete",this.Dq,this);this.I.push(a);e3(a)}};f.Dq=function(a){a.unsubscribe("adBreakComplete",this.Dq,this);qb(this.I,a);this.D.push(a)};f.L=function(){j4(this);C(this.I,S);C(this.D,S);C(this.H,S);i4.J.L.call(this)};function j4(a){a.G&&M(a.G);a.G=0};function k4(a,b){c4.call(this,a,b);this.I=a;this.D=[];this.O=1}z(k4,c4);k4.prototype.getVideoData=function(){return null};k4.prototype.K=function(a){this.D.push(a);a.unsubscribe("adBreakComplete",this.K,this)};
k4.prototype.G=function(){if(null!=this.Gb&&0<this.D.length){var a=this.D.shift();delete this.o[a.j];var b=Math.floor((new Date).getTime()/1E3)-this.P;this.P=null;a.unsubscribe("adBreakComplete",this.G,this);this.qe(a);this.Gb=null}a=this.I;h4(a);Ps(a);isFinite(b)&&$0(this.H,this.H.getCurrentTime()+b)};function l4(a,b){this.F=a;this.$=b;this.D=y();this.j=a.fa;this.A={};this.C=new n2(a);var c=[];this.j.S&&this.j.o&&c.push("4_2");this.j.Yl&&(this.j.o&&c.push("13_2"),this.j.F&&c.push("13_1"));this.j.M&&(this.j.o&&c.push("1_2"),this.j.C&&c.push("1_2_1"),this.j.F&&c.push("1_1"),this.j.T&&c.push("1_3"));this.j.I&&c.push("2_2_1");this.j.K&&c.push("2_2");this.j.H&&c.push("2_1");(this.j.Oa||this.j.pi)&&c.push("2_3");this.o=c.join(",");this.k="";this.A.allowed=this.o;(c=this.j.excludedAds)&&(this.A.ex_ads=
c)}l4.prototype.B=0;function m4(a){if(!/^\d+?(:\d+){0,2}(\.\d+)?$/.test(a))return null;var b=0;C(a.split(":"),function(a){b=60*b+Math.abs(parseFloat(a))});return 1E3*b};function n4(a,b,c){Q.call(this);this.j=a;this.o=b;this.D=c;this.A=this.C=-1;this.k=o4(this.o.ze());a=this.o.ze();a.length&&(a=a[a.length-1],-1==a&&this.j.sd(this.k[a]));0<this.j.fa.k&&this.j.subscribe("endseeking",this.B,this)}z(n4,Q);function p4(a,b){q4(a);0<b&&(a.A=L(x(a.B,a),1E3*b))}function q4(a){-1!=a.A&&(M(a.A),a.A=-1)}function r4(a){a.k||(a.k=o4(a.o.ze()));b4(a.j,Qb(a.k))}
function o4(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 ss(-1==d?2147483647:1E3*d,2147483647==e?e:e-1,{id:String(d),visible:!0})}d=a[a.length-1];b[d]=new ss(-1==d?2147483647:1E3*d,2147483647,{id:String(d),visible:!0});return b}
n4.prototype.B=function(){var a=this.j.fa.k;if(!(0>=a)&&this.k){var b=this.j.j.getCurrentTime(),c=[],d=null,e=Number.MAX_VALUE;C(this.o.ze(),function(a){var g=this.k[a];if(g){var l=this.o.H.get(a);l&&l.wd>b?(a=!OY(this.D,l),a!=g.visible&&(g.visible=a,c.push(g)),a||(g=l.wd-b,g<e&&(e=g,d=l))):!l||l.ub()?(this.j.Yj(g),delete this.k[a]):!g.visible&&l&&(g.visible=!0,c.push(g))}},this);0<c.length&&b4(this.j,c);if(d){var g=0;0<this.C&&(g=y()/1E3-this.C);p4(this,a-g-e+2)}else q4(this)}};
n4.prototype.L=function(){n4.J.L.call(this);q4(this)};function s4(a){Q.call(this);this.j=a;this.A=null;this.C=new ln(this);this.o=new ln(this)}z(s4,Q);f=s4.prototype;f.Ta=null;f.Xh=null;f.zb=null;f.Wb=null;f.ek=null;function t4(a,b,c){a=a.cloneNode(!0);a.setAttribute("timeOffset",b);C(a.getElementsByTagName("VASTAdTagURI"),function(a){var e,g;"end"==b?(e="post",g=-1):(e="mid",g=m4(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 u4(a){var b=GB(a),c=b.childNodes[0];if(!c)return a;var d=E(c.childNodes,function(a){return"#1"==a.getAttribute("timeOffset")});if(d){a=E(d.childNodes,function(a){return"Extensions"==a.localName});var e=E(a?a.childNodes:[],function(a){return"YTBreakTime"==a.getAttribute("type")});a=a.removeChild(e);var g=d,h=1;C(a?a.childNodes:[],function(a){a=a.getAttribute("timeOffset");a=t4(d,a,h);h++;c.insertBefore(a,g.nextSibling);g=a});c.removeChild(d);return IB(b)}return a}
f.load=function(a){if(this.A=this.j.Yf){var b=new YU;b.adsResponse=u4(a);a=H2(this.j);b.linearAdSlotWidth=a.width;b.linearAdSlotHeight=a.height;b.nonLinearAdSlotWidth=a.width;b.nonLinearAdSlotHeight=100;b.j=this.j.R().experiments.experimentIds;b.ti=this.j.A.A;if(a=aE(this.j.R()))b.lastActivity=a;this.j.fa.tagForChildDirected&&(b.tagForChildDirectedContent=!0);GD(this.j.R(),"937420")&&(b.ah=!0);a=L3(this.j.fa);b.youTubeAdType=B1(a.get(3));if(a=this.j.fa.da)b.youTubeExperimentIds=a;a=kr(this.j.app);
var c=this.j;b.Mc={"[CONTENT_V]":a.videoId,"[CPN]":a.za,"[LACT]":{toString:function(){return null==c||c.ha()?c=null:aE(c.R()).toString()}}};this.A.listen("adsManagerLoaded",this.Zt,!1,this);this.A.listen("adError",this.Yt,!1,this);try{aZ(this.A,b,this)}catch(d){}}};function v4(a){var b=new JK;b.baseYouTubeUrl=a.j.R().A;b.contentId=kr(a.j.app).videoId;b.useShareButton=!0;b.useStyledNonLinearAds=!0;b.useVideoAdUi=a.j.fa.D;b.showContentThumbnail=a.j.fa.showContentThumbnail;b.Qo=!0;return b}
f.Zt=function(a){if(a.A===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=v4(this);this.Ta=w1(a,this.j.A,b,c)}catch(d){return}if(this.ek=this.Ta.Lp(b,this.j.fa.k)){this.Xh=new n4(this.j,this.Ta,this.ek);r4(this.Xh);F(this.Ta.ze(),0)||w4(this);this.o.listen(this.Ta,"companionBackfill",x(this.UF,
this));this.o.listen(this.Ta,"loaded",x(this.TF,this));this.o.listen(this.Ta,"adError",x(this.SF,this));this.o.listen(this.Ta,"start",x(this.Xz,this));this.o.listen(this.Ta,"complete",x(this.Uz,this));this.o.listen(this.Ta,"contentPauseRequested",x(this.VF,this));this.o.listen(this.Ta,"contentResumeRequested",x(this.WF,this));this.o.listen(this.Ta,"allAdsCompleted",u);try{this.Ta.init("normal"),this.Ta.start()}catch(e){this.Ta.destroy(),this.k=null}}}};
f.VF=function(a){this.zb&&this.zb.dispose();(this.Wb=a.getAd())&&vT(this.Wb)&&(a=x4(this.Wb),this.j.fa.P?this.zb=new K2(a,this.j,this.Ta,xT(this.Wb),!0):this.zb=new A2(a,this.j,this.Ta,this.Ta.getMediaUrl(),xT(this.Wb),!0),y4(this.j),this.zb.show())};
function z4(a,b){var c=null!=b.j?b.j.F:{};if(A1(c,W2.j)&&a.j.fa.pi)return a.zb=new g3(a.j),a.zb.show(),!1;if(A1(c,"blockAllAds"))return a.Ta.sendImpressionUrls(),a.zb=new l3(a.j,a.Ta,!0),!1;if(A1(c,"hideMaster"))return a.zb=new l3(a.j,a.Ta,!0),!1;a.zb=new T2(x4(b),a.j,a.Ta,!0);a.zb.show();return!0}
f.WF=function(a){this.zb&&this.zb.dispose();w4(this);if(this.j.j.getCurrentTime()<this.j.j.getVideoData().lengthSeconds){var b=this.j;h4(b);Ps(b)}a=a.getAd();b=!0;a&&a!==this.Wb&&!vT(a)&&(b=z4(this,a));if(this.Wb&&vT(this.Wb)||a&&a!==this.Wb&&!vT(a)&&b)b=this.ek,0<b.j&&(b.k=y()/1E3),b=this.Xh,0<b.j.fa.k&&(b.C=y()/1E3,b.B());r4(this.Xh);this.Wb=a};f.Xz=function(a){if((a=a.getAd())&&this.zb){a=x4(a);var b=this.zb;b.type=a+"_"+b.I;2==a&&F1();G1()}};
f.Uz=function(a){vT(a.getAd())||this.Wb!==a.getAd()||(this.zb&&this.zb.dispose(),this.Wb=null)};f.TF=function(a){a.getAd().B.k||vT(a.getAd())||w4(this)};f.SF=function(){};f.Yt=function(){};f.UF=function(){G1()};f.L=function(){this.A&&(this.A.Fa("adsManagerLoaded",this.Zt,!1,this),this.A.Fa("adError",this.Yt,!1,this));this.C.removeAll();this.o.removeAll();this.B=!1;this.Ta&&(this.Ta.destroy(),this.Ta=null);s4.J.L.call(this)};
function x4(a){switch(AT(a).toUpperCase()){case "ADSENSE":return 2;case "DOUBLECLICK":return 1;case "FREEWHEEL":return 4;case "XFP":return 13;default:return 0}}function w4(a){a.B||(Fs(a.j),a.B=!0)};function A4(a){cZ.call(this,a);tK.j=!0;tK.A=!1;tK.C=!0;this.A=null;this.D={};this.C={at:"0"};this.k=new ID(0,this.j);Dr(this.j,this.k.N());this.F=this.o=null;this.B=-1}z(A4,cZ);f=A4.prototype;f.ua="ad";f.sc="ad";f.ke=null;f.cb=null;f.fa=null;f.Rl=!1;f.xl=!1;f.Yf=null;f.Pf=null;A4.Ea=function(a){return!!a.lc.getVideoData().adModule};f=A4.prototype;f.Ea=function(){return A4.Ea(this.app)};
f.create=function(){A4.J.create.call(this);F3(this,"i");this.fa=new O3(this.R(),this.j.getVideoData().A||{});this.ke=new l4(this,this.j);this.Rl=!1;if(this.Yf)this.Yf.j.o.C=gQ();else{var a=this.fa.D?void 0:MD(this.k);if(this.fa.P){var b=new bZ(this.app,2),c=JD(this.k);b.j||(b.j=ac(b.Ef),b.j.addEventListener=x(b.Yw,b),b.j.removeEventListener=x(b.Zw,b));this.A=new VP(c,void 0,a,b.j)}else{b=G2(this,!1);if(!b)throw"initAdsLoader_: getVideoElement returned a null element";this.A=new VP(JD(this.k),b,a,
void 0)}a=this.A;b=a.k;null!=b&&(b.style.right=0,b.style.left=0,b.style.bottom=0,b.style.top=0);null!=a.D&&(a=a.D,a.k.width="100%",a.k.height="100%");this.Yf=new $Y(this.A)}var d;t:{a=new N3(this);b=[];try{var e=a.j.fa,g;if(e.to){var h;if(e.W)h=K3(e.W);else{var k;if(e.Ua){var l=D(e.Ua.split(","),Xa);k=new J3(l)}else k=new J3([0]);h=k}g=h}else g=new J3([0]);d=g.Ew;for(e=0;e<d.length;e++){var p=new A3(a.j,e,d[e],M3(a.j.fa));b.push(p)}}catch(t){}finally{d=b;break t}}!this.fa.vmap||this.fa.j||this.fa.X||
this.fa.Gg||1!=d.length||0!=d[0].j?(F3(this,"bd"),p=this.fa,e=p.midrollPrefetchSize,this.cb=p.wa&&p.Yp?new k4(this,d):0<e?new i4(this,d,e):new c4(this,d),d4(this.cb)):(this.Pf=new s4(this),this.Pf.load(this.fa.vmap));d={};d.allowed=this.ke.o;Js(this,{},d)};f.destroy=function(){this.xl&&h4(this);if(this.o){var a=this.app,b=this.o;P2(a);b!=a.k&&M2(a,a.k)}wi(this.cb,this.o,this.Pf);this.ke=this.Pf=this.o=this.cb=null;KD(this.k);E1=!1;this.ce&&A4.J.destroy.call(this)};f.R=function(){return this.app.R()};
f.isFullscreen=function(){return this.j.isFullscreen()||this.fa.A};
function Y2(a,b,c){a=a.ke;c=c||{};var d=(y()-a.D)/1E3;c.art=d;d=a.F.R();d.O&&(c.feature=d.ga);c.ad_flags=a.j.adFlags;(d=a.j.Ba)&&(c.cid=d);c.mt=a.$.getCurrentTime();(d=hZ())&&(c.lact=d);(d=a.$.kh())&&(c.len=d);a.j.qb&&(c.fqsf=1);c.sdkv="3";c.ad_event=b;if(3==b||4==b)a.k=c.at;b=a.C;t:{if(7==c.ad_event&&(a=c.ad_error,21==a||30==a||54==a||32==a&&(1009==c.error_code||!c.ad_id))){a=!1;break t}a=c&&c.ad_event?q2(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.fa.jb;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==u1?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=p2(d);break;case "error_code":g.ima_error=
d;case "error_message":g.error_msg=d;break;case "ad_event":g.event=q2(d);break;case "ck_xy":a=d.split("x"),2==a.length&&(g.i_x=a[0],g.i_y=a[1])}}h=L2(b.j);c=kr(b.j.app);e.cpn=c.za;e.content_v=c.videoId;e.mt=Math.round(1E3*h.getCurrentTime());e.ei=c.G;e.lact=aE(b.j.R());h=w2(b.j);e.p_w=h.width;e.p_h=h.height;e.rt=(new Date).getTime();c=ve(e);if("undefined"==typeof c)throw Error("Keys are undefined");h=new Ye(null,0,void 0);g=ue(e);for(a=0;a<c.length;a++)d=c[a],k=g[a],fa(k)?jf(h,d,k):h.add(d,k);c=b.j.R().A+
"api/stats/ads";c=new I(c);We(c,h);bg(c.toString());h=e.event;c=-1!=o2.indexOf(h);g=b.j.fa.amsBaseTag;b=HD(b.j.R(),"932015","932016");c&&!A(B(g))&&b&&(b=new I(g),c=b.j,c.set("ad_break_id",$b(e,"m_pos","0")),c.set("ad_slot_id",$b(e,"slot_pos","0")),c.set("ad_break_rel_start_time",$b(e,"m_pos","0")),c.set("ad_break_type",$b(e,"break_type","")),c.set("rel_time",$b(e,"mt","")),c.set("wall_time",$b(e,"rt","")),2==h&&(c.set("served",$b(e,"format","")),c.set("ad_id",$b(e,"ad_id","")),c.set("ad_len",$b(e,
"ad_len",""))),bg(b.toString()))}}function X2(a,b,c){c=c||{};c.ad_error=b;Y2(a,7,c)}f.qh=function(){var a;if(this.ke){a=this.ke;var b={allowed:a.o};a.j.excludedAds&&(b.ex_ad=a.j.excludedAds);a.k&&(b.at=a.k);a=b}else a=A4.J.qh.call(this);return a};f.Ka=function(){return this.j.Ka()};function B4(a){return a.cb instanceof k4?a.cb:null}function G2(a,b){var c;if(b){c=a.k;var d=ND(c);c.$.R().C||Rd(d)||JD(c).appendChild(d);c=d}else c=a.k,c=c.$.R().C?c.$.app.o.j:ND(c);return c}
function L2(a){if(!a.o){var b=ac(a.R().B);b.autoplay="1";b=new oZ(b);b.ea="adunit";var c=G2(a,!1);b.wb=c;a.o=new H0(b,2,new dZ(b,""),a.app.o)}return a.o}f.getVideoData=function(){return this.F};function w2(a){return a.fa.A?(a=H2(a),new mg(0,0,a.width,a.height)):Rg(a.Ka())}function H2(a){return a.app.o.mp()}function y4(a){a.xl=!0;a.publish("command_redirect_controls",a,["play_pause"],void 0);Ms(a,["seek"]);a.R().Xd&&Ms(a,["audio"]);a.Pf||a.pauseVideo()}
function h4(a){KD(a.k);a.xl=!1;Os(a);Ns(a,["seek"]);a.R().Xd&&Ns(a,["audio"])}f.getAdState=function(){return this.B};function I2(a,b){switch(b){case 1:a.B=1;a.publish("publish_external_event","onAdStart");break;case 0:a.B=0,a.publish("publish_external_event","onAdEnd")}}function C2(a,b,c,d){d&&a.publish("publish_external_event","onAdInfoChange",d);a.publish("publish_external_event","onAdStateChange",b,G2(a,!1),c)}
f.zc=function(a){A4.J.zc.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.bk(b);if(d&&!a4(c.F,d)&&(c=c.A,d.tb)){var e=G2(c.j,!1),d=Math.max(0,d.nb()+c.A+c.o-1E3*c.j.j.getCurrentTime());wg(e,"transition","opacity "+String(d)+"ms linear");wg(e,"opacity","0");U3(c,e,d,0)}}else if(d=this.cb,n(b)&&(c=d.bk(b)))d.Gb==c&&!c.tb&&c.isVisible?c.show():(d.Gb&&d.qe(d.Gb),a4(d.F,c)?(d.Gb=null,c=d.B[c.getId()],c.visible||(c.visible=!0,b4(d.j,[c]))):
(d.Gb=c,c.subscribe("adBreakComplete",d.jm,d),c.tb&&y4(d.j),d.A.sr(c),c.show()));!isNaN(b)&&0>b&&this.Pf&&(b=this.Yf.j,d=new UQ("contentComplete"),b.U(d),d.A&&(b.o.clear(),null!=b.k&&(d=b.k.re(),null!=d&&wQ(d,b.o.j))));"livead"===a.getId()&&null!=B4(this)&&(b=B4(this),a=a.start,Math.round(a),n(b.o[a])||(d=b.O++,d=new A3(b.I,d,a,M3(b.I.fa),!1),b.o[a]=d,d.subscribe("adBreakComplete",b.K,b),e3(d)))};
f.Qc=function(a){A4.J.Qc.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.o[b])&&c.Gb==b&&!b.tb&&b.isVisible&&b.jn&&b.k instanceof T2&&V2(b.k,"fullscreen"));"livead"===a.getId()&&null!=B4(this)&&1E3*this.j.getCurrentTime()>=a.start&&(this.Yj(a),a=B4(this),null==a.Gb&&0<a.D.length?(b=a.D[0],b.isVisible?(a.P=Math.ceil(y()/1E3),b.subscribe("adBreakComplete",a.G,a),a.Gb=b,b.show()):a.G()):a.G())};
function F3(a,b){var c=b;"nl"==b&&(c=a.ke,c.B++,c=c.B.toString());a.D[c]=y();"bs"!=c&&"fb"!=c||Js(a,a.D,a.C)}function b4(a,b){a.publish("command_update_cuerange_markers",b,a.j.getPlayerType())}function U2(a){return Boolean(a.fa.B&&a.cb&&1<a.cb.k.length)}f.Pd=function(a){this.publish(a)};
f.HA=function(a){var b=B4(this);if(null!=b&&null!=b.H){var c=B4(this).H.getCurrentTime();C(a,function(a){a.Td-10>c&&(a=new ss(1E3*Math.floor(c+Math.random()*(a.Td-10-c)),1E3*a.Td,{id:"livead",priority:2}),this.sd(a))},this)}};
f.Vf=function(a){switch(a){case "addata":var b=this.fa;return{adTag:b.adTag,adTest:b.ob,forceAdType:b.ga,isAfvSkippableInstreamEnabled:b.I,isAfvStandardInstreamEnabled:b.K,isBlazer:b.O,isDoubleClickEnabled:b.M,isForcedAd:b.X,isFreeWheelEnabled:b.S,isHouseBrandPlayer:b.Qb,isLeanback:b.A,isShortform:b.la,tagForChildDirected:b.tagForChildDirected};case "adstate":return this.getAdState();case "midrollfreqcap":return b=this.cb instanceof i4?this.cb:null,null!=b?b.K:0;case "breakscount":return this.cb?
this.cb.k.length:0;case "displaystate":return b=null,this.cb&&this.cb.Gb&&(b=this.cb.Gb.k),{adFormat:b instanceof l2?b.I:!1,adSkipped:b instanceof K2?b.D:!1,hasVideoStarted:b instanceof K2?b.G:!1,skippable:b instanceof K2?b.K:!1};case "getContentVideoData":return b=kr(this.app),{adModule:b.adModule,isGetVideoThirdPartyOnly:b.Di,partnerTrackingToken:b.K,title:b.title,videoId:b.videoId};case "loadedadbreaks":if(this.cb){a=this.cb.o;var c=[];for(b in a)a.hasOwnProperty(b)&&c.push({isInterruptive:a[Number(b)].tb});
return c}return 0}};f.Wf=function(){return"addata adstate breakscount displaystate getContentVideoData loadedadbreaks midrollfreqcap".split(" ")};function C4(a,b){var c=["ytp-large-play-button","html5-center-overlay","ytp-scalable-icon-shrink"],d;b&&c.push("ytp-housebrand-large-play-button");a?b?c.push("ytp-housebrand-large-play-button-image"):c.push("ytp-large-play-button-image"):d=b?'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-housebrand-large-play-button-svg" d="M59.6,1.35c0.267,0.5,0.4,1.133,0.4,1.9v53.5c0,0.767-0.133,1.4-0.4,1.9c-0.5,0.9-1.45,1.35-2.85,1.35H3.25c-1.4,0-2.333-0.433-2.8-1.3C0.15,58.167,0,57.517,0,56.75V3.25c0-0.833,0.167-1.5,0.5-2C1,0.417,1.917,0,3.25,0h53.5C58.15,0,59.1,0.45,59.6,1.35z M21,41.65l22.7-11.8L21,18V41.65z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="21,41.65 21,18 43.7,29.85"/></svg>':
'<svg><path fill-rule="evenodd" clip-rule="evenodd" fill="#1F1F1F" class="ytp-large-play-button-svg" d="M84.15,26.4v6.35c0,2.833-0.15,5.967-0.45,9.4c-0.133,1.7-0.267,3.117-0.4,4.25l-0.15,0.95c-0.167,0.767-0.367,1.517-0.6,2.25c-0.667,2.367-1.533,4.083-2.6,5.15c-1.367,1.4-2.967,2.383-4.8,2.95c-0.633,0.2-1.316,0.333-2.05,0.4c-0.767,0.1-1.3,0.167-1.6,0.2c-4.9,0.367-11.283,0.617-19.15,0.75c-2.434,0.034-4.883,0.067-7.35,0.1h-2.95C38.417,59.117,34.5,59.067,30.3,59c-8.433-0.167-14.05-0.383-16.85-0.65c-0.067-0.033-0.667-0.117-1.8-0.25c-0.9-0.133-1.683-0.283-2.35-0.45c-2.066-0.533-3.783-1.5-5.15-2.9c-1.033-1.067-1.9-2.783-2.6-5.15C1.317,48.867,1.133,48.117,1,47.35L0.8,46.4c-0.133-1.133-0.267-2.55-0.4-4.25C0.133,38.717,0,35.583,0,32.75V26.4c0-2.833,0.133-5.95,0.4-9.35l0.4-4.25c0.167-0.966,0.417-2.05,0.75-3.25c0.7-2.333,1.567-4.033,2.6-5.1c1.367-1.434,2.967-2.434,4.8-3c0.633-0.167,1.333-0.3,2.1-0.4c0.4-0.066,0.917-0.133,1.55-0.2c4.9-0.333,11.283-0.567,19.15-0.7C35.65,0.05,39.083,0,42.05,0L45,0.05c2.467,0,4.933,0.034,7.4,0.1c7.833,0.133,14.2,0.367,19.1,0.7c0.3,0.033,0.833,0.1,1.6,0.2c0.733,0.1,1.417,0.233,2.05,0.4c1.833,0.566,3.434,1.566,4.8,3c1.066,1.066,1.933,2.767,2.6,5.1c0.367,1.2,0.617,2.284,0.75,3.25l0.4,4.25C84,20.45,84.15,23.567,84.15,26.4z M33.3,41.4L56,29.6L33.3,17.75V41.4z"/><polygon fill-rule="evenodd" clip-rule="evenodd" fill="#FFFFFF" points="33.3,41.4 33.3,17.75 56,29.6"/></svg>';
X.call(this,["div",c]);d&&(this.element.innerHTML=d)}z(C4,X);function D4(a){this.k=a||30;SD.call(this,this.k,this.k);this.C=this.width/2;this.o=this.height/2;this.D=0;this.context.translate(this.C,this.o);this.hide()}z(D4,SD);D4.prototype.show=function(){D4.J.show.call(this);var a=this.G;this.A=new Date;this.B(a,125)};
D4.prototype.G=function(){this.context.clearRect(-this.C,-this.o,this.width,this.height);for(var a=this.D++%8,b=0;8>b;b++){var c=2*Math.PI/8*(a+b),d=11/30*this.k,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.k,0,2*Math.PI,!1);this.context.fillStyle="rgba(189, 189, 189, "+d+")";this.context.fill()}};D4.prototype.hide=function(){M(this.j);D4.J.hide.call(this)};function E4(a,b,c){yD.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}}"]],["div","ytp-remote-display-watch-while",["div","","{{maximizebutton}}"]]]);this.A=c;this.B=this.template.j["ytp-remote-display-thumbnail"];this.j=this.k=this.o=null;F4(this,a,b)}z(E4,yD);function G4(a){H4(a,Z(0,"YTP_MDX_STATUS_CONNECTING"));I4(a,2)}function J4(a,b){H4(a,Z(0,"YTP_MDX_STATUS_ERROR"));cv(a.template,"error",b);I4(a,0)}
function I4(a,b){var c=a.template.j["ytp-remote-display-error"],d=a.template.j["ytp-remote-display-status"];Ew(c);Ew(d);a.o.hide();a.j.hide();a.k.hide();switch(b){case 0:Dw(d);Dw(c);break;case 1:Dw(d);break;case 2:Dw(d);a.j.show();break;case 3:a.o.show()}}
function F4(a,b,c){var d=b.j.R();a.o=new C4(d.isMobile,d.Qb);R(a,a.o);a.j=new D4(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.k=new Gz(a.A,"ytp-button-remote-reconnect");a.k.pa(Z(0,"YTP_MDX_PLAYER_RECONNECT_BUTTON"));R(a,a.k);d=new Gz(a.A,"ytp-button-remote-maximize");d.pa(["div",["html5-center-overlay","ytp-button-remote-maximize-icon"]]);R(a,d);b=b.j.getVideoData();a.B.style.backgroundImage=b.videoId?"url("+tE(b,
"hqdefault.jpg")+")":"";cv(a.template,"largeplaybutton",a.o);cv(a.template,"reconnectbutton",a.k);cv(a.template,"loadingicon",a.j);cv(a.template,"maximizebutton",d);a.k.listen("click",function(){this.publish("reconnect-button-click")},a);d.listen("click",function(a){a.stopPropagation();this.publish("maximize-button-click")},a);G4(a);cv(a.template,"receiver",c)}function H4(a,b){cv(a.template,"statustext",b)};function K4(a,b,c){Q.call(this);this.k=a;a.subscribe("onVolumeChange",this.Wq,this);this.G=x(this.mB,this);a.j.addEventListener("onCaptionsTrackListChanged",this.G);this.B=!1;this.o=b;b.subscribe("reconnect-button-click",this.jr,this);b.subscribe("maximize-button-click",this.Yq,this);this.j=c;c.subscribe("proxyStateChange",this.lr,this);c.subscribe("remotePlayerChange",this.nm,this);c.subscribe("remoteQueueChange",this.pm,this);this.I=new js;this.D=this.C=NaN;this.H=0;this.A={};this.F=new hn(this.ED,
1E3,this);R(this,this.F);this.K=0;a=this.k.j.Uj("captions","track");Xb(a)||L4(this,a);this.pm();this.nm()}z(K4,Q);f=K4.prototype;
f.L=function(){M4(this,new js);N4(this);O4(this);this.k.unsubscribe("onVolumeChange",this.Wq,this);this.k.j.removeEventListener("onCaptionsTrackListChanged",this.G);vi(this.o)||(this.o.unsubscribe("reconnect-button-click",this.jr,this),this.o.unsubscribe("maximize-button-click",this.Yq,this));vi(this.j)||(this.j.unsubscribe("proxyStateChange",this.lr,this),this.j.unsubscribe("remotePlayerChange",this.nm,this),this.j.unsubscribe("remoteQueueChange",this.pm,this));P4(this,this.A);this.j=this.o=this.k=
null};f.XF=function(a,b){2==this.j.o||(Q4(this)?this.ly.apply(this,arguments):this.o.o.F&&this.gy.apply(this,arguments))};function R4(a,b){var c=a.k.j.getVideoData().lengthSeconds;a.k.publish("command_progress",b,c)}f.gy=function(a,b){var c=Array.prototype.slice.call(arguments,1);switch(a){case "control_toggle_play_pause":case "control_play":case "control_pause":S4(this,this.k.j.getCurrentTime());break;case "control_seek":S4(this,c[0])}};
f.ly=function(a,b){if(1081==dp(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":dp(this.j).ub()?T4(this):U4(this);break;case "control_play":U4(this);break;case "control_pause":T4(this);break;case "control_seek":this.K=c[0];jn(this.F);break;case "control_subtitles_set_track":L4(this,c[0])}};
f.Wq=function(a){if(Q4(this)){var b=Math.round(a.volume);a=!!a.muted;var c=dp(this.j);b==c.volume&&a==c.muted||this.j.setVolume(b,a)}};f.mB=function(){Xb(this.A)||P4(this,this.A);this.B=!1};f.jr=function(){O4(this);this.j.A.reconnect();G4(this.o)};f.Yq=function(){var a=this.k,b={video_id:a.j.getVideoData().videoId},b=new sr(b),b=a.app.lc.R().getVideoUrl(b,{});Is(a,b)};f.lr=function(a,b){O4(this);2==b&&this.ts()};
f.nm=function(){if(Q4(this)){N4(this);var a=dp(this.j);switch(a.j){case 1:V4(this);M4(this,new js(8));break;case 3:M4(this,new js(1));break;case 0:M4(this,new js(2));this.F.stop();var b=this.k.j;(b=Oq(b.app,b.playerType||1))&&b.Jf(!0);R4(this,this.k.j.getVideoData().lengthSeconds);break;case 2:M4(this,new js(4));R4(this,Xo(a));break;case -1:M4(this,new js);break;case -1E3:M4(this,new js(128,{}))}0==this.H&&(b=this.k.j,(b=Oq(b.app,b.playerType||1))&&b.Jf(!1));this.H=a.j;a=dp(this.j).o;b=this.A;(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.A=a,P4(this,a));a=dp(this.j);-1==a.volume||Math.round(this.k.j.ft())==a.volume&&this.k.j.gt()==a.muted||(this.k.j.setVolume(a.volume),a.muted?this.k.j.kt():this.k.j.vt())}else W4(this)};function W4(a){a.o.o.F||(R4(a,0),N4(a),M4(a,new js));"detailpage"!=a.k.app.lc.R().ea&&I4(a.o,3)}f.pm=function(){Q4(this)||W4(this)};
function L4(a,b){if(Q4(a)&&!a.B){if(b){var c={style:a.k.j.Uj("captions","displaySettings")};dc(c,b);a.j.Om(X4(a),c)}else a.j.Om(X4(a),null);a.A=dp(a.j).o}}function T4(a){a.j.pause();var b=dp(a.j);R4(a,Xo(b));N4(a);M4(a,new js(4))}function U4(a){a.j.play();V4(a);M4(a,new js(8))}function S4(a,b){var c=a.k.j.rd();c?kp(a.j,X4(a),b,c.Ra,a.k.j.getVideoData().playlistId):kp(a.j,X4(a),b);M4(a,new js(1))}
function P4(a,b){if(b){var c=a.k.j.Uj("captions","tracklist",{Zp:1});c&&c.length?(c=E(c,function(a){return a.languageCode==b.languageCode&&a.name==b.trackName}),a.k.j.ut("captions","track",c)):(a.k.j.ht("captions"),a.B=!0)}else a.k.j.wt("captions")}f.ED=function(){var a=this.K;N4(this);R4(this,a);-1==dp(this.j).j?S4(this,a):this.j.Ms(a);M4(this,new js(1))};function Q4(a){return Vo(dp(a.j))==X4(a)}function X4(a){return a.k.j.getVideoData().videoId}
function V4(a){N4(a);if(!a.j.ha()){var b=dp(a.j);b.ub()&&M4(a,new js(8));R4(a,Xo(b));a.C=L(x(function(){V4(this)},a),500)}}function N4(a){M(a.C);a.C=NaN}f.ts=function(){O4(this);N4(this);var a=this.j.A.getReconnectTimeout();if(2!=this.j.o||isNaN(a))G4(this.o);else{var b=this.o;J4(b,Z(0,"YTP_MDX_PLAYER_RECONNECT_TIME",{FORMATTED_TIME:iv(a/1E3)}));b.k.show();this.D=L(x(this.ts,this),1E3)}};function O4(a){M(a.D);a.D=NaN}
function M4(a,b){O4(a);var c=a.I;a.I=b;var d=a.o;H4(d,Z(0,"YTP_MDX_STATUS_CONNECTED"));I4(d,1);W(b,1)&&(d=a.o,H4(d,Z(0,"YTP_MDX_STATUS_CONNECTED")),I4(d,2));W(b,128)&&J4(a.o,Of("YTP_MDX_PLAYER_ERROR"));d=a.k;Qs(d,W(b,8));d.app.publish("presentingplayerstatechange",new G0(b,c))};function Y4(a){cZ.call(this,a);this.M=a.o.k;this.B={key:Kj(),name:Z(0,"YTP_MDX_MY_COMPUTER")};this.A=this.o=null;this.H=[];this.I=this.K=this.k=null;this.O=[this.B];this.F=this.B;this.D=new ZA(this.M,"ytp-remote-button",Z(0,"YTP_MDX_TOOLTIP"),"ytp-remote-button-active");R(this,this.D);Jz(this.D,6950);this.D.listen("click",this.DF,this);this.D.N().id="remote_button";this.C=new qB(this.M,x(this.lx,this),x(this.PA,this));N(this.C.N(),"ytp-drop-down-background");R(this,this.C);this.G=new Fz;this.G.label=
Z(0,"YTP_MDX_TITLE");this.G.element=this.C;this.G.k=this.ua;R(this,this.G);this.C.bb(this.G.label)}z(Y4,cZ);var Z4=["play_pause","seek"],$4=["captions"];f=Y4.prototype;f.ua="remote";f.sc="remote";f.Ea=function(){return this.app.lc.R().kg};
f.create=function(){Y4.J.create.call(this);this.H.push(Di("yt-remote-before-disconnect",this.mA,this));this.H.push(Di("yt-remote-connection-change",this.mr,this));this.mr();Ss(this,this.ua,this.D);Us(this,this.G);var a=this.j.app.I;this.F&&this.F!=this.B&&1!=a&&3!=a&&this.load()};f.destroy=function(){Fi(this.H);this.H.length=0;S(this.k);this.k=null;Y4.J.destroy.call(this)};
f.load=function(){if(!this.loaded){Y4.J.load.call(this);dB(this.D,"ytp-remote-button-active");this.A=new E4(this,this.F.name,this.M);Dr(this.j,this.A.N());this.k&&(this.o=new K4(this,this.A,this.k));this.j.Fn();this.publish("command_redirect_controls",this,Z4,$4);var a=nq();if(0!=a){var b=this.k?Vo(dp(this.k)):null;b&&b!=this.j.getVideoData().videoId||L(x(function(){this.publish("command_progress",a,void 0)},this),0)}}};
f.unload=function(){this.loaded&&(dB(this.D,"ytp-remote-button"),this.C.Da(this.B),Os(this),wi(this.o,this.A),this.A=this.o=null,Y4.J.unload.call(this))};f.L=function(){this.destroy();wi(this.o,this.A,this.k);this.k=this.A=this.o=null;Y4.J.L.call(this)};f.Pd=function(a,b){this.o&&this.o.XF.apply(this.o,arguments)};
function lr(a,b,c){var d=c||a.B;b.unshift(a.B);a.O=b||[a.B];d=E(b,function(a){return a.key==d.key});a5(a,b);a.C.Da(d);a.F=d||a.B;a.A&&cv(a.A.template,"receiver",d.name);a.publish("publish_external_event","onMdxReceiversChange")}f.mA=function(a){1==a&&(this.K=this.k?dp(this.k):null);this.I=a};
f.mr=function(){var a=pq();a?(this.k=a,this.I=this.K=null,this.load(),this.o||(this.o=new K4(this,this.A,this.k))):(S(this.k),this.k=null,this.loaded&&1==this.I&&(this.unload(),(a=this.K)&&Vo(a)==this.j.getVideoData().videoId?this.j.lh(Xo(a)):this.j.lh(0)))};f.PA=function(a){Ws(this);a!=this.C.getSelected()&&(this.C.Da(a),b5(this,a))};
function b5(a,b){a.F=b||a.B;if(b.key==a.B.key)iq();else{var c=0,d="",e=a.j.rd();e&&(c=e.Ra,d=a.j.getVideoData().playlistId);if(e=a.j.rd()){for(var g=[],h=0;h<e.jc;h++)g[h]=fr(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()};fq(b,c);a.A&&cv(a.A.template,"receiver",b.name);S(a.o);a.o=null;a.load()}}function a5(a,b){C(b,function(a){a.toString=function(){return a.key}},a);rB(a.C,b)}
f.DF=function(a){var b=Xp();1==b.length&&"cast-selector-receiver"==b[0].key&&(a.stopImmediatePropagation(),a.preventDefault(),xl())};f.lx=function(a){return a.name};f.Vf=function(a,b){switch(a){case "casting":return this.loaded;case "receivers":return this.O;case "currentReceiver":return b&&("cast-selector-receiver"==b.key?xl():b5(this,b)),this.F;case "castSelector":var c=Xp(),c=1==c.length&&"cast-selector-receiver"==c[0].key;b&&c&&xl();return c}};
f.Wf=function(){return["casting","receivers","currentReceiver","castSelector"]};function c5(a){this.addEventListener=x(a.addEventListener,a);this.removeEventListener=x(a.removeEventListener,a);this.dispatchEvent=x(a.dispatchEvent,a)}
function d5(a,b,c){T.call(this);this.D=a;this.K=x(b,null);this.G=c;this.j=0;this.A=new Mc(NaN,NaN);b=c?4E3:3E3;this.B=new Bv(ra(this.Fb,1,!1),b,this);R(this,this.B);this.C=new Bv(ra(this.Fb,2,!1),b,this);R(this,this.C);c||(this.o=P(a,"mouseover",x(this.bu,this)),this.H=P(a,"mousemove",x(this.YF,this)),this.I=P(a,"mouseleave",x(this.Oz,this)));this.F=Wc?P(a,"keypress",x(this.Az,this)):P(a,"focusin",x(this.fx,this));this.k=P(a,"mousedown",x(this.au,this));this.Fb(130,!0)}z(d5,T);f=d5.prototype;
f.YF=function(a){a=new Mc(xh(a),yh(a));Nc(a,this.A)||(this.A=a,this.Fb(2,!0))};f.Oz=function(){this.Fb(2,!1)};f.bu=function(a){var b=new Mc(xh(a),yh(a));Nc(b,this.A)||(this.A=b,this.j&2&&this.K(a.target)&&(this.Fb(4,!0),Dh(this.o),this.o=P(this.D,"mouseout",x(this.ZF,this))))};f.ZF=function(){this.Fb(4,!1);Dh(this.o);this.o=P(this.D,"mouseover",x(this.bu,this))};f.Az=function(){this.Fb(1,!0)};f.fx=function(){this.Fb(1,!0)};
f.au=function(){var a=8;this.G&&(a|=2);this.Fb(a,!0);Dh(this.k);this.k=P(document,"mouseup",x(this.$F,this))};f.$F=function(){this.Fb(8,!1);Dh(this.k);this.k=P(this.D,"mousedown",x(this.au,this))};f.Fb=function(a,b){var c=!this.j;b?(this.j|=a,a&1&&this.B.start(),a&2&&this.C.start()):(this.j&=~a,a&1&&this.B.stop(),a&2&&this.C.stop());var d=!this.j;c!=d&&this.publish("autohideupdate",d)};f.L=function(){Dh(this.o);Dh(this.H);Dh(this.I);Dh(this.F);Dh(this.k);d5.J.L.call(this)};function e5(a,b){X.call(this,["span","","{{sparkline_container}}"]);this.o=a;this.k=b;this.j=new OE("");R(this,this.j);cv(this.template,"sparkline_container",this.j)}z(e5,X);function f5(a){X.call(this,["div","html5-video-info-panel",["span","html5-video-info-panel-close",{role:"button",title:"close"},"[x]"],["div","html5-video-info-panel-content",["table","html5-video-info-table",["tr","",["th","","Video ID:"],["td","","{{video_id}}"]],["tr","",["th","","Dimensions:"],["td","","{{dimensions}}"]],["tr","",["th","","Resolution:"],["td","","{{resolution}}"]],["tr","",["th","","Volume:"],["td","","{{volume}}"]],["tr","",["th","","Stream Type:"],["td","","{{stream_type}}"]],
["tr",{style:"{{cpn_style}}"},["th","","CPN:"],["td","","{{cpn}}"]],["tr","",["th","","Mime Type:"],["td","","{{mime}}"]],["tr","",["th","","DASH:"],["td","","{{dash}}"]],["tr",{style:"{{drm_style}}"},["th","","Protected:"],["td","","{{drm}}"]],["tr","",["th","","Bandwidth:"],["td","",["span","","{{bandwidth_sparkline}}"],["span","","{{bandwidth_kbps}}"]]]],["table",["html5-video-info-table","html5-video-element-info-table"],["tr","",["th","","Decoded Frames"],["th","","Dropped Frames"],["th","",
"Parsed Frames"],["th","","Presented Frames"]],["tr","",["td","","{{decoded_frames}}"],["td","","{{dropped_frames}}"],["td","","{{parsed_frames}}"],["td","","{{presented_frames}}"]],["tr","",["th","","Video Bytes Decoded"],["th","","Audio Bytes Decoded"],["th","","Painted Frames"],["th","","Paint Delay"]],["tr","",["td","","{{video_bytes_decoded}}"],["td","","{{audio_bytes_decoded}}"],["td","","{{painted_frames}}"],["td","","{{paint_delay}}"]]]]]);hv(this,this.template.j["html5-video-info-panel-close"],
"click",this.hide);this.k=new e5(200,14);R(this,this.k);cv(this.template,"bandwidth_sparkline",this.k);this.o=new Bv(this.A,500,this);R(this,this.o);this.j=a}z(f5,X);f5.prototype.show=function(){f5.J.show.call(this);this.A()};f5.prototype.hide=function(){f5.J.hide.call(this);this.o.stop()};
f5.prototype.A=function(){var a=Oq(this.j),b=this.j.getVideoData(),c=this.j.ih(),d=this.j.o.j,e=this.j.R(),g;g=this.j;if(g.oa){var h=[];g.oa.G.forEach(x(h.push,h));g=h}else g=[0];var h=(a=a.F?a.F.j:null)&&a.k,k=b.videoId,l=b.za,p=b.za?"":"display:none",t;t:{if(b.Ke&&(t=b.Ke.match(/url=(https?)/))&&2==t.length){t=t[1];break t}t=""}c={video_id:k,cpn:l,cpn_style:p,mime:"",dash:"no",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(Cq(this.j))+"%",bandwidth_kbps:(8*cb(g)/1024).toFixed(0)+" Kbps",drm_style:h?"":"display:none",drm:h?a.k+" / "+a.j:""};b.o&&(d=mt(b.o)?"yes":"no",d+=" ("+
b.o.id,b.D&&mt(b.o)&&(d+="/"+b.D.id),c.dash=d+")",c.mime=b.o.mimeType,b=b.o.video.fps,1<b&&(c.resolution+="@"+b));d=this.k;b=d.j;e=Math.max.apply(Math,g)||1;a=[];for(h=0;h<g.length;h++)a.push(h/g.length*d.o+","+d.k*(1-g[h]/e));g='<svg width="'+d.o+'" height="'+d.k+'" viewbox="0 0 '+d.o+" "+d.k+'"><g><polyline stroke="white" fill="none" points="'+a.join(" ")+'"/></g></svg>';b.element.innerHTML=g;this.template.update(c);this.o.start()};function g5(a){var b=["div","html5-video-container"],c=["div","html5-video-player",{tabindex:-1,id:a.X.attrs.id},b];b.push(["div","html5-video-content"]);yD.call(this,c);jh(this.element,"version",a.X.assets.js);this.app=a;this.ka=null;this.o=this.template.j["html5-video-container"];this.I=new mg(0,0,0,0);this.j=null;this.V=new mg(0,0,0,0);this.la=this.template.j["html5-video-content"];this.va=this.Ca=0;this.X=null;this.T=0;this.ja=null;b=a.R();this.Ba=b.ya||"blazer"==b.j;this.M=new f5(a);R(this,this.M);
this.M.Y(this.element);this.k=new Q1;this.Pm();Nf({YTP_ADVERTISEMENT:"Advertisement",YTP_AUDIO_TRACK_TITLE:"Audio track",YTP_AUTO:"Auto",YTP_AUTO_WITH_QUALITY_2:"Auto ($VIDEO_QUALITY)",YTP_CHANGE_QUALITY_WITH_QUALITY_2:"Change quality ($VIDEO_QUALITY)",YTP_COPY_DEBUG_INFO:"Copy debug info",YTP_COPY_VIDEO_URL:"Copy video URL",YTP_COPY_VIDEO_URL_AT_TIME:"Copy video URL at current time",YTP_DRAWER_HEADER_TEXT:"In this video",YTP_DRAWER_POLL_SUBMIT:"Submit",YTP_GET_DEBUG_INFO:"Get debug info",YTP_GET_VIDEO_URL:"Get video URL",
YTP_GET_VIDEO_URL_AT_TIME:"Get video URL at current time",YTP_GET_EMBED:"Get embed code",YTP_DECREASE_PLAYBACK_SPEED:"Decrease playback speed",YTP_DEFAULT_VIEW:"Default view",YTP_EMBED_COPY:"Copy embed code",YTP_ERROR_GENERIC:"An error occurred, please try again later.",YTP_ERROR_GENERIC_WITH_LINK_2:"An error occurred, please try again later. $BEGIN_LINKLearn More$END_LINK",YTP_EXIT_FULLSCREEN:"Exit full screen",YTP_FEATURED:"Featured",YTP_FULLSCREEN:"Full screen",YTP_INCREASE_PLAYBACK_SPEED:"Increase playback speed",
YTP_GOTO_LIVE_TOOLTIP:"Skip ahead to live broadcast.",YTP_KEYBOARD_SHORTCUTS:"Keyboard shortcuts",YTP_LIVE:"Live",YTP_LIVE_NOW:"LIVE NOW",YTP_MIX:"Mix",YTP_MORE:"More",YTP_MDX_TITLE:"Play on",YTP_MDX_TOOLTIP:"Play on TV",YTP_MDX_MY_COMPUTER:"This computer",YTP_MUTE:"Mute",YTP_NEXT:"Next",YTP_NEXT_VIDEO_IN:"Next video in $TIME_LEFT",YTP_NORMAL_SPEED:"Normal",YTP_ON:"On",YTP_OFF:"Off",YTP_OPTIONS:"Options",YTP_PLAY_ALL:"Play all",YTP_PLAY_PAUSE:"Toggle play/pause",YTP_PREVIOUS:"Previous",YTP_PLAYLIST:"Playlist",
YTP_PLAYLIST_UP_NEXT:"Up Next",YTP_QUALITY_TITLE:"Quality",YTP_REPLAY:"Replay",YTP_REPORT_ISSUE:"Report playback issue",YTP_SEEK_BACK:"Seek back 10 seconds",YTP_SEEK_FORWARD:"Seek forward 10 seconds",YTP_SEEK_PERCENT:"Seek to 0%-90%.",YTP_SETTINGS:"Settings",YTP_SHARE:"Share",YTP_SHARE_WITH_PLAYLIST:"Share with playlist",YTP_SHOW_VIDEO_INFO:"Stats for nerds",YTP_SPEED_TITLE:"Speed",YTP_ST_COLLAPSE:"Collapse",YTP_ST_EXPAND:"Expand",YTP_SUBTITLES:"Subtitles/CC",YTP_THREED_SHORT:"3D",YTP_THEATER_MODE:"Theater mode",
YTP_TOGGLE_FULLSCREEN:"Toggle fullscreen.",YTP_TOGGLE_MUTE:"Toggle mute",YTP_UNMUTE:"Unmute",YTP_URL_NAVIGATE:"Watch on YouTube.com",YTP_WATCH_ALL:"Watch entire video",YTP_WATCH_LATER:"Watch Later",YTP_WATCH_LATER_AS_2:"Watch later as $USER_NAME",YTP_WEBGL_3D_ANAGLYPH:"Anaglyph",YTP_WEBGL_3D_2D:"2D",YTP_SUBSCRIBE_AS:"Subscribe as $USER_NAME",YTP_LIKE_AS:"Like as $USER_NAME",YTP_DISLIKE_AS:"Dislike as $USER_NAME",YTP_WATCH_NEXT:"Watch next",YTP_PLAY:"Play",YTP_WATERMARK:"Watermark",YTP_ERROR_STREAMING_UNAVAILABLE:"Video playback is unavailable right now because this video has been downloaded for offline viewing.",
YTP_ERROR_LICENSE:"Sorry, there was an error licensing this video.",YTP_ERROR_VIDEO_NOT_FOUND:"This video can not be found.",YTP_ERROR_ALREADY_PINNED_ON_A_DEVICE:"This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",YTP_ERROR_CANNOT_ACTIVATE_RENTAL:"An error occurred when activating your rental. Please reload this page or try again later.",YTP_ERROR_PURCHASE_NOT_FOUND:"This video requires payment.",
YTP_ERROR_PURCHASE_REFUNDED:"This video's purchase has been refunded.",YTP_ERROR_STOPPED_BY_ANOTHER_PLAYBACK:"Your account is playing this video in another location. Please reload this page to resume watching.",YTP_ERROR_TOO_MANY_STREAMS_PER_USER:"Playback stopped because too many videos belonging to the same account are playing.",YTP_ERROR_TOO_MANY_STREAMS_PER_ENTITLEMENT:"Playback stopped because this video has been played on too many devices.",YTP_ERROR_STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED:"Too many devices/IP addresses have been used over the 24 hour period.",
YTP_ERROR_UNUSUAL_ACTIVITY:"Due to unusual account activity, this video is not currently available.",YTP_ERROR_NOT_SIGNED_IN:"Please sign in to resume watching.",YTP_CLOSE:"Close",YTP_ANNOTATIONS:"Annotations",YTP_DONE:"Done",YTP_SHARE_THIS_PLAYLIST:"Share this playlist",YTP_UPLOADED_BY_2:"by $AUTHOR",YTP_SEEK_SLIDER:"Seek slider",YTP_PAUSE:"Pause",YTP_AUTOPLAY:"Autoplay",YTP_AUTOPLAY_COUNTDOWN_2:"Next video in $SECONDS_LEFT",YTP_AUTOPLAY_PAUSED:"Busy? We've paused autoplay.",YTP_AUTOPLAY_PAUSED_2:"Autoplay is paused.",
YTP_AUTOPLAY_CANCEL:"Cancel autoplay",YTP_WATCH_VIDEO_OR_PLAYLIST:"Watch $TITLE",YTP_CANCEL:"Cancel",YTP_ON_GOOGLE_PLUS:"On Google+",YTP_STILL_THERE:"Are you still there? If so, please click the button below to continue watching the playlist.",YTP_DISMISS:"OK",YTP_RESET:"Reset",YTP_STOP:"Stop live playback",YTP_LIKE:"Like",YTP_DISLIKE:"Dislike",YTP_SCREENREADER_VOLUME_SETTING:"volume",YTP_SCREENREADER_VOLUME_MUTED:"muted",YTP_SCREENREADER_VOLUME_MUTE:"mute",YTP_SCREENREADER_VOLUME_UNMUTE:"unmute",
YTP_SCREENREADER_CONTROL_TOGGLE:"toggle",YTP_SAMPLE_SUBTITLES:"Captions look like this",YTP_HTML5_CONTEXT_MENU_LINK:"About the HTML5 player",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK:"This video format is not supported.",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK:"Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK",YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH:"The Adobe Flash Player is required for video playback. $BEGIN_LINKGet the latest Flash Player$END_LINK.",
YTP_ERROR_CAST_SESSION_DEVICE_MISMATCHED:"The device in the cast session doesn't match the requested one.",YTP_ERROR_CAST_SESSION_VIDEO_MISMATCHED:"The video in the cast session doesn't match the requested one.",YTP_ERROR_CAST_TOKEN_EXPIRED:"Cast session was expired. Please refresh.",YTP_ERROR_CAST_TOKEN_FAILED:"Cast session not available. Please refresh or try again later.",YTP_ERROR_CAST_TOKEN_MALFORMED:"Invalid cast session. Please refresh or try again later.",YTP_ERROR_GEO_FAILURE:"This video isn't available in your country.",
YTP_ERROR_INVALID_DRM_MESSAGE:"The DRM system specific message is invalid.",YTP_ERROR_RENTAL_EXPIRED:"This video's rental has expired.",YTP_ERROR_RETRYABLE_ERROR:"There was a temporary server error. Please try again later.",YTP_ERROR_SERVER_ERROR:"There was an internal server error. Please try again later.",YTP_ERROR_STREAMING_NOT_ALLOWED:"Playback not allowed because this video is pinned on another device.",YTP_ERROR_UNSUPPORTED_DEVICE:"Playback isn't supported on this device.",YTP_ERROR_VIDEO_FORBIDDEN:"Access to this video is forbidden.",
YTP_MDX_STATUS_CONNECTED:"Playing on",YTP_MDX_STATUS_CONNECTING:"Connecting to",YTP_MDX_STATUS_ERROR:"Error on",YTP_MDX_PLAYER_ERROR:"This video is not available for remote playback.",YTP_MDX_PLAYER_RECONNECT_TIME:"Please check your Internet connection. Retrying in $FORMATTED_TIME...",YTP_MDX_PLAYER_RECONNECT_BUTTON:"Reconnect",YTP_DEVICE_FALLBACK:"Sorry, this video is not available on this device.",YTP_AD_INTERRUPT_MESSAGE:"Your video will play after this ad.",YTP_VISIT_ADVERTISERS_SITE:"Visit advertiser's site",
YTP_PROGRESS_LABEL:"$PLAY_PROGRESS of $DURATION seconds",YTP_PLAYLIST_NAME:"Playlist: $PLAYLIST_NAME",YTP_PLAYLIST_POSITION:"$CURRENT_POSITION/$PLAYLIST_LENGTH"});this.pk()}z(g5,yD);f=g5.prototype;f.pk=function(){this.app.subscribe("initializingmode",this.Cy,this);this.app.subscribe("videoplayerreset",this.dG,this);this.app.subscribe("videodatachange",this.cG,this);this.app.subscribe("presentingplayerstatechange",this.vl,this)};f.initialize=function(a){this.ka=td(a);this.Y(this.ka)};
f.Cy=function(){this.V=new mg(0,0,0,0);this.I=new mg(0,0,0,0)};f.addClass=function(a){fh(this.element,arguments)};f.removeClass=function(a){hh(this.element,arguments)};
f.Tn=function(){var a=this.app.R();this.addClass("el-"+a.ea);this.addClass("ps-"+a.j);O(this.element,"html5-native-controls","3"==a.k);O(this.element,"html5-mobile",a.isMobile);this.Ug(!0);a.C||this.addClass("tag-pool-enabled");a.Qb&&this.addClass("house-brand");this.Ba?this.X=P(window,"resize",x(this.Sh,this)):(a=Gw()?x(this.yw,this):x(this.Sh,this),this.X=Kf(a,250))};f.Ug=function(a){var b=this.app.R();O(this.element,"ytp-no-controls",!a||"0"==b.k)};
f.yw=function(){this.T&&Jw(this.T);this.T=Iw(x(this.Sh,this),0)};f.Sh=function(){Pc(this.kb(),rg(this.I))||this.$f()};f.$f=function(){if(this.j){var a=this.kb();if(!a.isEmpty()){var b=!Pc(a,rg(this.I)),c=h5(this);b&&(this.I.width=a.width,this.I.height=a.height,this.yg(a));(c||b)&&this.publish("resize")}}};f.yg=function(){};f.wl=function(){};f.cG=function(a,b){this.fk(b)};f.dG=function(a){a.getVideoData()&&this.fk(a.getVideoData())};
f.fk=function(a){if(this.j){var b=this.app.R();Ur&&(this.j.setAttribute("x-webkit-airplay","allow"),b.Ve&&this.j.setAttribute("data-youtube-id",a.videoId),a.title?this.j.setAttribute("title",a.title):this.j.removeAttribute("title"));b.fe&&(this.j.poster=a.videoId?tE(a,"default.jpg"):"")}b=a.vc("yt:bgcolor");this.o.style.backgroundColor=b?b:"";this.Ca=BH(a.vc("yt:stretch"));a=a.vc("yt:crop");this.va="fullwidth"==a?Infinity:BH(a)};f.ag=function(){};f.Mm=function(){};
f.xb=function(){var a=this.app.R();return a.ya||a.Za?new G(window.innerWidth,window.innerHeight):new G(this.element.clientWidth,this.element.clientHeight)};f.kb=function(){return this.xb()};f.mp=function(){return this.kb()};function eD(a){return a.j?new G(0<a.j.style.width.indexOf("px")?parseInt(a.j.style.width,10):a.j.clientWidth,0<a.j.style.height.indexOf("px")?parseInt(a.j.style.height,10):a.j.clientHeight):new G(0,0)}function i5(a){return a.j?new G(a.j.videoWidth,a.j.videoHeight):new G(0,0)}
function j5(a,b,c,d,e){c.isEmpty()?d=b:d?(c=a.Ca||k5(c),a=a.va||c,d=k5(b),d=a>d?new G(b.width,b.width/(isFinite(a)?a:c)):a<d?new G(b.height*a,b.height):b.clone(),e||(c>a?d.width=d.height*c:c<a&&(d.height=d.width/c))):(e=c.clone(),d=e.scale(e.width/e.height>b.width/b.height?b.width/e.width:b.height/e.height));return new mg((b.width-d.width)/2,(b.height-d.height)/2,d.width,d.height)}function k5(a){return 1>Math.abs(ww*a.height-a.width)||1>Math.abs(ww/a.width-a.height)?ww:a.width/a.height}
function l5(a){return"3"!=a.app.R().k&&!i5(a).isEmpty()}function h5(a){var b=i5(a),c=a.kb(),d=1,e=l5(a),g=!1,h;e?(h=j5(a,c,b,e,!1),d=k5(new G(h.width,h.height))/k5(b),h=new mg(h.left+h.width/2*(1-1/d),h.top,h.width/d,h.height)):h=new mg(0,0,c.width,c.height);pg(a.V,h)||(a.V=h,Mg(a.j,rg(h)),Cg(a.j,new Mc(h.left,h.top)),g=!0);b=j5(a,c,b,e);pg(a.I,b)||(a.I=b,Mg(a.la,b.width,b.height),Cg(a.la,b.left,b.top),g=!0);wg(a.j,"transform",1==d?"none":"scaleX("+d+")");return g}f.Un=function(){};
f.Pm=function(){this.k.k=this};f.vl=function(){};f.L=function(){this.X&&(this.Ba?Dh(this.X):Lf(this.X),this.T&&Jw(this.T));this.ja&&Dh(this.ja);this.M.hide();this.j=this.o=this.ka=null;g5.J.L.call(this)};function m5(a,b,c){Q.call(this);this.B=P(a,"click",x(this.H,this));this.C=P(a,"dblclick",x(this.F,this));this.G=b;this.o=c;this.k=new Bv(this.D,200,this);R(this,this.k);this.j=!0;this.A=null}z(m5,Q);m5.prototype.H=function(a){this.k.isActive()?(this.k.stop(),this.o(a),this.j=!1):(this.A=a,this.k.start(),this.j=!0)};m5.prototype.F=function(a){this.j&&this.o(a)};m5.prototype.D=function(){this.G(this.A);this.j=!0};m5.prototype.L=function(){Dh(this.B);Dh(this.C);m5.J.L.call(this)};var n5=new G(1720,980),o5=new G(1294,630),p5=new G(640,560),q5=new G(1320,870),r5={kk:new G(1280,720),j:new G(960,540),jk:new G(854,480),jo:new G(640,360),ho:new G(426,240)},s5={kk:new G(1280,750),j:new G(960,570),jk:new G(854,510),jo:new G(640,390),ho:new G(426,270)};
function t5(a,b){var c=new G(window.innerWidth,window.innerHeight),d=b&&!a.experiments.K?s5:r5;return a.Jd?c.width>=q5.width&&c.height>=q5.height?d.kk.clone():d.jk.clone():c.width>=n5.width&&c.height>=n5.height?d.kk.clone():c.width>=o5.width&&c.height>=o5.height?d.jk.clone():!a.experiments.P||c.width>=p5.width?d.jo.clone():d.ho.clone()};function u5(a){X.call(this,["div","ytp-action-buttons"]);this.shareButton=new Gz(a,"ytp-button-share",Z(0,"YTP_SHARE"));R(this,this.shareButton);this.shareButton.Y(this.element);Jz(this.shareButton,3400);this.j=new Gz(a,"ytp-button-dislike",Z(0,"YTP_DISLIKE"));R(this,this.j);this.j.Y(this.element);Jz(this.j,3300);jh(this.j.N(),"tooltip-below","1");a.fg(this.j.N(),"YTP_DISLIKE_AS",Z(0,"YTP_DISLIKE"));this.likeButton=new Gz(a,"ytp-button-like",Z(0,"YTP_LIKE"));R(this,this.likeButton);this.likeButton.Y(this.element);
Jz(this.likeButton,3200);jh(this.likeButton.N(),"tooltip-below","1");a.fg(this.likeButton.N(),"YTP_LIKE_AS",Z(0,"YTP_LIKE"))}z(u5,X);function v5(){X.call(this,["div",["html5-bezel","html5-center-overlay"],["div","{{icon}}"]]);this.j=new N1(this,500);R(this,this.j)}z(v5,X);function w5(a,b,c,d,e,g){var h,k;if(h=c.offsetParent){var l="HTML"==h.tagName||"BODY"==h.tagName;l&&"static"==Bg(h,"position")||(k=Ig(h),l||(l=(l=Ug(h))&&Wc?-h.scrollLeft:!l||Vc&&hd("8")||"visible"==Bg(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft,k=Oc(k,new Mc(l,h.scrollTop))))}h=k||new Mc;k=Rg(a);(l=Hg(a))&&qg(k,og(l));var l=pd(a),p=pd(c);if(l.j!=p.j){var t=l.j.body,p=Jg(t,ge(p)),p=Oc(p,Ig(t));!Vc||id(9)||fe(l)||(p=Oc(p,ie(l)));k.left+=p.x;k.top+=p.y}a=x5(a,b);b=new Mc(a&
2?k.left+k.width:k.left,a&1?k.top+k.height:k.top);b=Oc(b,h);e&&(b.x+=(a&2?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);if(e=Hg(c))e.top-=h.y,e.right-=h.x,e.bottom-=h.y,e.left-=h.x;y5(b,c,d,g,e,197,void 0)}
function y5(a,b,c,d,e,g,h){a=a.clone();var k=x5(b,c);c=Pg(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);g&&(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),d.x<e.left&&d.x+k.width>e.right&&g&16&&(k.width=Math.max(k.width-(d.x+k.width-e.right),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),d.y<=e.top&&d.y+k.height<e.bottom&&g&32&&(k.height=Math.max(k.height-(e.top-d.y),0),d.y=e.top,l|=8),d.y>=e.top&&d.y+k.height>e.bottom&&g&32&&(k.height=Math.max(k.height-(d.y+k.height-e.bottom),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):e=256,l=e);e=new mg(0,0,0,0);e.left=
a.x;e.top=a.y;e.width=h.width;e.height=h.height;l&496||(Cg(b,new Mc(e.left,e.top)),h=rg(e),Pc(c,h)||(c=h,e=rd(b),h=fe(pd(e)),!Vc||hd("10")||h&&hd("8")?(b=b.style,Wc?b.MozBoxSizing="border-box":Xc?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?(Vc?(h=Wg(b,"paddingLeft"),g=Wg(b,"paddingRight"),a=Wg(b,"paddingTop"),d=Wg(b,"paddingBottom"),h=new lg(a,g,d,h)):(h=Ag(b,"paddingLeft"),g=Ag(b,"paddingRight"),a=Ag(b,
"paddingTop"),d=Ag(b,"paddingBottom"),h=new lg(parseFloat(a),parseFloat(g),parseFloat(d),parseFloat(h))),b=Zg(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 x5(a,b){return(b&4&&Ug(a)?b^2:b)&-5};function z5(a){X.call(this,["div",["ytp-dialog","html5-stop-propagation"],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]]);this.j=new X(["input","html5-modal-panel-input",{type:"text",readonly:"readonly"}]);R(this,this.j);Yc&&this.j.N().removeAttribute("readonly");this.j.listen("click",this.o,this);var b=Z(0,"YTP_CLOSE");this.k=new Gz(a,"ytp-dialog-button",b);this.k.pa(b);R(this,this.k);this.template.update({content:this.j,buttons:this.k});this.listen("contextmenu",
this.A)}z(z5,fB);z5.prototype.A=function(a){a.stopPropagation()};z5.prototype.o=function(){this.j.N().select()};function A5(a,b,c){X.call(this,["ul",["html5-context-menu","yt-uix-button-menu"],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url"],Z(0,"YTP_GET_VIDEO_URL")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-video-url-at-current-time"],Z(0,"YTP_GET_VIDEO_URL_AT_TIME")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-embed-html"],Z(0,"YTP_GET_EMBED")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-report-playback-issue"],
Z(0,"YTP_REPORT_ISSUE")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-copy-debug-info"],Z(0,"YTP_GET_DEBUG_INFO")]],["li","",["span",["yt-uix-button-menu-item","html5-context-menu-show-video-info"],Z(0,"YTP_SHOW_VIDEO_INFO")]],["li","",["a",["yt-uix-button-menu-item","html5-context-menu-link"],{target:"_blank",href:"/html5"},Z(0,"YTP_HTML5_CONTEXT_MENU_LINK")]]]);this.$=a;this.$.subscribe("internalvideodatachange",this.du,this);this.o=new zv(this);this.o.listen(b,"contextmenu",
this.FA);this.j=new zv(this);this.k=new z5(c);R(this,this.k);this.k.k.listen("click",this.Ny,this);a={Pu:this.fG,Qu:this.gG,Ru:x(this.cu,this,!1),Su:x(this.cu,this,!0),Uu:this.hG,Vu:this.iG,Tu:this.fB};for(var d in a)B5(this,d,a[d]);this.hide()}z(A5,X);f=A5.prototype;f.Ny=function(){this.$.o.ag()};function C5(a,b){var c=a.k;c.j.N().value=b;c.j.N().focus();L(x(c.o,c),100);a.$.o.ag(a.k)}
function B5(a,b,c){a.o.listen(a.template.j[lv[b]],"click",function(a){a.stopImmediatePropagation();a.preventDefault();c.call(this,a);this.hide();a=b.replace("CONTEXT_MENU_","").toLowerCase();D5(this.$,"contextmenu."+a)})}f.du=function(a,b){Bw(this.template.j["html5-context-menu-copy-embed-html"],b.allowEmbed)};f.cu=function(a){C5(this,Xq(this.$,a))};f.gG=function(){C5(this,Zq(this.$))};f.fB=function(a){E5(this.$,a.target.getAttribute("href"))};
f.hG=function(){var a=Oq(this.$);a&&a.Tj(new wq("feedback",!1));var a=this.$.R(),b=!0;"detailpage"==a.ea&&(b=r("yt.player.exports.feedbackStart")(void 0,{as3:!1,html5:!0,player:!0}));b&&(this.$.pauseVideo(),window.open(vZ(a,this.$.getVideoData())))};f.fG=function(){C5(this,Yq(this.$,!0))};f.iG=function(){this.$.o.M.show()};f.FA=function(a){a.preventDefault();var b=xh(a);a=yh(a);var c=Hg(document.body);y5(new Mc(b,a),this.element,0,null,c,5);this.show()};f.EA=function(a){!1===a.Lb.returnValue||this.hide()};
f.show=function(){this.F||(this.j.removeAll(),this.j.listen(window,"blur",this.hide),this.j.listen(document,"click",this.eG),this.j.listen(document,"contextmenu",this.EA),A5.J.show.call(this))};f.eG=function(a){2==a.button||a.target&&Sd(this.element,a.target)||this.hide()};f.hide=function(){A5.J.hide.call(this);this.j.removeAll()};f.L=function(){this.o.removeAll();this.j.removeAll();this.$.unsubscribe("internalvideodatachange",this.du,this);this.$=null;A5.J.L.call(this)};function F5(){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(0,"YTP_MORE")]];X.call(this,a)}z(F5,X);function G5(a,b,c,d){Gz.call(this,a,"share-service-icon-"+d+"-sharebar",b,c);N(this.element,"share-service-icon-sharebar");Jz(this,3700)}z(G5,Gz);function H5(){X.call(this,["div","ytp-share-url-container",{tabIndex:3600},["input","ytp-share-url"]]);this.j=this.template.j["ytp-share-url"]}z(H5,X);H5.prototype.focus=function(){this.j.focus();this.j.select()};H5.prototype.L=function(){this.j=null;H5.J.L.call(this)};function I5(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(0,"YTP_SHARE_WITH_PLAYLIST")]]];yD.call(this,c);this.Z=b;this.A=a;this.shareUrl=null;this.o=[];this.k=this.j=null;this.closeButton=new Gz(this.A,"yt-uix-button-icon-share-bar-close",Z(0,"YTP_CLOSE"),Z(0,"YTP_CLOSE"));this.closeButton.Y(this.template.j["share-bar-content"]);
Jz(this.closeButton,3900)}z(I5,yD);function J5(a){var b={action_get_share_info:1,feature:"player_embedded",video_id:a.k?a.k.videoId:void 0};a.Z.Xa&&(b.authuser=a.Z.Xa);a.Z.pageId&&(b.pageid=a.Z.pageId);var c;K5(a)?(c=wd("ytp-share-bar-checkbox"),c=!c||eh(c,"ytp-share-bar-checked")):c=!1;c&&(b.list=K5(a));Aj("/share_ajax",{context:a,method:"GET",onError:a.C,ab:a.D,Of:b})}
I5.prototype.D=function(a,b){if(!this.ha()){L5(this);var c=this.template.j["share-bar-content"];this.shareUrl=new H5;R(this,this.shareUrl);xd(this.shareUrl.j,{value:b.url_short});this.shareUrl.Y(c);for(var d=b.links,e=0;e<Math.min(3,d.length);e++){var g=new G5(this.A,d[e].name,d[e].sname,d[e].img);R(this,g);g.Y(c);g.listen("click",ra(nF,d[e].url,{}));this.o.push(g)}this.j=new F5;R(this,this.j);this.j.listen("click",x(this.G,this,b.more));this.j.Y(c);hv(this,this.template.j["ytp-share-bar-checkbox"],
"click",this.B,this);this.publish("menu_show")}};I5.prototype.C=function(){};I5.prototype.G=function(a){mF(a)};function K5(a){return a.k?a.k.playlistId:void 0}I5.prototype.B=function(){var a=wd("ytp-share-bar-checkbox");ih(a,"ytp-share-bar-checked");J5(this)};function L5(a){a.shareUrl&&(a.shareUrl.detach(),a.shareUrl=null);a.j&&(a.j.detach(),a.j=null);C(a.o,function(a){Ld(a.N())});a.o=[]};function M5(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(0,"YTP_URL_NAVIGATE")},"YouTube"],["div","html5-title-text-wrapper",["a","html5-title-text",{tabIndex:3100,href:"{{titlelink}}"},"{{titletext}}"]]]];yD.call(this,c);this.Z=b;this.B=a;this.k=null;hv(this,this.template.j["html5-title-text"],"click",this.yr);c=this.template.j["html5-title-logo"];jh(c,"tooltip",Z(0,"YTP_URL_NAVIGATE"));
jh(c,"tooltip-below","1");a.cg(c);hv(this,c,"click",this.yr);c=this.template.j["html5-title"];this.actionButtons=new u5(this.B);R(this,this.actionButtons);this.actionButtons.Y(c,1);this.actionButtons.shareButton.listen("click",this.$m,this);this.j=null}z(M5,yD);f=M5.prototype;f.update=function(a){this.k=a;if(this.j){var b=this.j;b.k=a;J5(b)}b=a.title||"";a=this.Z.getVideoUrl(a);this.template.update({titletext:b,titlelink:a,logolink:a})};f.yr=function(a){kv(a)&&(this.xr(),a.preventDefault())};
f.xr=function(){this.hu()};function N5(a){return eh(a.element,"show-share")}f.$m=function(){O5(this,!N5(this))};function O5(a,b){if(b&&!a.j){a.j=new I5(a.B,a.Z);var c=a.j;c.k=a.k;J5(c);a.j.Y(a.template.j["html5-info-bar"]);a.j.closeButton.listen("click",a.$m,a);a.j.subscribe("menu_show",x(a.rr,a))}O(a.element,"show-share",b);O(a.element,"share-with-playlist",b&&!!K5(a.j));a.rr()}f.rr=function(){N5(this)&&this.j.shareUrl&&this.j.shareUrl.N().focus()};f.gu=function(a){mF(a)};f.hu=function(){this.gu(this.Z.getVideoUrl(this.k))};
f.L=function(){this.k=this.Z=null;M5.J.L.call(this)};function P5(a,b){M5.call(this,a,b.R());this.$=b;this.A=2;this.o=!1;this.actionButtons.likeButton.listen("click",this.eB,this);this.actionButtons.j.listen("click",this.MA,this)}z(P5,M5);f=P5.prototype;f.update=function(a){P5.J.update.call(this,a);Q5(this,a.Im);a=!(!a||!a.Js||this.$.A);var b=!this.$.R().yj;O(this.element,"ytp-can-share",b);O(this.element,"ytp-can-sentiment",a)};f.$m=function(){this.publish("share-click")};f.xr=function(){this.publish("title-click")};f.eB=function(){R5(this,0)};
f.MA=function(){R5(this,1)};function R5(a,b){if(!a.o&&(a.A==b&&(b=2),Q5(a,b),a.k)){if("detailpage"!=a.Z.ea){a.o=!0;var c={playbackId:a.k.playbackId,ab:x(function(){this.o=!1},a),onError:x(function(){this.o=!1},a),Xa:a.Z.Xa,pageId:a.Z.pageId};XH(a.k.videoId,b,c)}a.$.publish("RATE_SENTIMENT",{videoId:a.k.videoId,sentiment:b})}}function Q5(a,b){a.A=b;O(a.element,"sentiment-like",0==b);O(a.element,"sentiment-dislike",1==b)}f.gu=function(a){E5(this.$,a)};f.hu=function(){S5(this.$)};
f.L=function(){this.$=null;P5.J.L.call(this)};function T5(a){var b=["div",["ytp-dialog","html5-stop-propagation"],{tabindex:1E3},["div","ytp-dialog-title",Z(0,"YTP_KEYBOARD_SHORTCUTS")],["div","ytp-dialog-body","{{content}}"],["div","ytp-dialog-buttons","{{buttons}}"]];X.call(this,b);b=Z(0,"YTP_DONE");this.j=new Gz(a,"ytp-dialog-button",b);this.j.pa(b);R(this,this.j);Jz(this.j,1400);this.j.listen("click",this.k,this);this.template.update({content:U5(),buttons:this.j})}z(T5,fB);
function U5(){var a=[{key:"K",message:Z(0,"YTP_PLAY_PAUSE")},{key:"J",message:Z(0,"YTP_SEEK_BACK")},{key:"L",message:Z(0,"YTP_SEEK_FORWARD")},{key:"0-9",message:Z(0,"YTP_SEEK_PERCENT")},{key:">",message:Z(0,"YTP_INCREASE_PLAYBACK_SPEED")},{key:"<",message:Z(0,"YTP_DECREASE_PLAYBACK_SPEED")},{key:"F",message:Z(0,"YTP_TOGGLE_FULLSCREEN")},{key:"M",message:Z(0,"YTP_TOGGLE_MUTE")}],b=[];C(a,function(a){a=new X(["p",null,a.key+": "+a.message]);b.push(a)});return b}T5.prototype.k=function(){this.Ub("done")};
T5.prototype.focus=function(){this.element.focus()};function V5(a,b,c,d,e,g,h,k){this.B=[];C(Ib(b),function(b){this.B.push(P(a,b,x(this.YB,this)))},this);C(Ib(d),function(b){this.B.push(P(a,b,x(this.QA,this)))},this);this.C=g||null;this.H=c;this.G=h||0;this.o=0;this.A=!1;this.F=e;this.D=k||0;this.j=0;this.k=!1}f=V5.prototype;f.YB=function(a){M(this.j);this.j=0;this.o=L(x(this.bx,this,a),this.G)};f.QA=function(a){M(this.o);this.o=0;this.j=L(x(this.ax,this,a),this.D)};f.bx=function(a){this.k||this.A||(this.A=!0,this.H.call(this.C||m,a))};
f.ax=function(a){!this.k&&this.A&&(this.A=!1,this.F.call(this.C||m,a))};f.dispose=function(){this.k=!0;M(this.o);M(this.j);Dh(this.B)};f.ha=function(){return this.k};function W5(){X.call(this,["div","ytp-tooltip",["div","ytp-tooltip-body","{{content}}"],["div","ytp-tooltip-arrow"]]);this.j=this.template.j["ytp-tooltip-body"]}z(W5,X);W5.prototype.hide=function(){W5.J.hide.call(this);Cg(this.j,0)};W5.prototype.L=function(){Kd(this.j);this.j=null;W5.J.L.call(this)};function X5(a,b){Q.call(this);this.j={};this.Wn=a;this.k=b}z(X5,Q);
X5.prototype.cg=function(a,b){var c,d=new V5(a,"mouseover",function(){if(this.Wn){var d=new W5;d.Y(this.Wn);c=d}else c=null;if(c&&(d=b&&b(a),!b||d)){d=d||lh(a,"tooltip")||"";if(v(d)){var g=Hd(d),d=Gd("span");d.className="ytp-text-tooltip";d.appendChild(g)}cv(c.template,"content",d);var g=!!lh(a,"tooltip-below"),d=c,h=Pg(a),h=new Mc(h.width/2,g?h.height:0),k=Ig(a),h=new Mc(k.x+h.x,k.y+h.y),g=!!g;O(d.element,"ytp-tooltip-below",g);if(k=Gg(d.element))var l=Ig(k),p=Zg(k),h=Oc(h,new Mc(l.x+p.left,l.y+
p.top));y5(h,d.element,g?1:0);d.show();var p=Pg(d.j),g=p.width/2*-1,t=zd(window),w=Ad(document),h=w.x,t=t.width+w.x,w=h,J=t;k&&(k=Pg(k),w=l.x,J=k.width+l.x);k=Ig(d.j);l=k.x+g;k=k.x+p.width+g;l<Math.max(h,w)?g-=l-Math.max(h,w):k>Math.min(t,J)&&(g-=k-Math.min(t,J));Cg(d.j,g)}},["mouseout","mousedown"],function(){c&&(c.hide(),S(c),c=null)},this,10,50);this.j[ka(a)]=d};
X5.prototype.fg=function(a,b,c){var d=this.k;this.cg(a,function(){if(d){var a="detailpage"==d.ea;if(!d.ja||a)return c}else return c;var g=d.ja,h=d.T,a=Gd("div");N(a,"ytp-identity-tooltip");var k=Gd("img");k.src=h;h=Gd("span");g=Hd(Of(b,{USER_NAME:g}));Jd(h,g);Jd(a,k,h);return a})};X5.prototype.Cm=function(a){a=ka(a);S(this.j[a]);this.j[a]=null};X5.prototype.L=function(){this.k=this.Wn=null;for(var a in this.j)S(this.j[a]);this.j={};X5.J.L.call(this)};function Y5(){this.j=[];this.k=[]}ba(Y5);var PD=r("yt.player.utils.VideoTagPool.instance_")||Y5.getInstance();q("yt.player.utils.VideoTagPool.instance_",PD,void 0);f=Y5.prototype;f.Yo=function(a){if(!(this.j.length>=a)){a-=this.j.length;for(var b=0;b<a;b++){var c=Z5(this);this.j.push(c)}}};function Z5(a,b){var c=document.createElement("video");sa(c,as);P(c,"loadeddata",x(c.Kw,c));P(c,"volumechange",x(c.Mw,c));Wh&&6<=Pr&&P(c,"webkitbeginfullscreen",x(c.play,c));b||bs(c);a.k.push(c);return c}
f.RG=function(a){return this.j.length?this.j.pop():Z5(this,a)};f.$C=function(a){a&&F(this.k,a)&&(hs(a),Gh(a),qb(this.k,a))};f.Ap=function(a){return this.j.length>=(a||1)};f.ww=function(){this.j=[];this.Ap(4)?C(this.k,function(a){bs(a);this.j.push(a)},this):this.Yo(4)};Y5.prototype.fillPool=Y5.prototype.Yo;Y5.prototype.getTag=Y5.prototype.RG;Y5.prototype.releaseTag=Y5.prototype.$C;Y5.prototype.hasTags=Y5.prototype.Ap;Y5.prototype.activateTags=Y5.prototype.ww;function $5(a){X.call(this,["div","ytp-dialog-holder","{{content}}"]);this.k=a;this.j=null}z($5,X);$5.prototype.show=function(){$5.J.show.call(this);a6(this);this.j.focus()};$5.prototype.hide=function(){$5.J.hide.call(this);var a=Rd(this.element);a&&a.focus()};function a6(a){if(a.j){a.j.fu();var b=a.k.xb(),c=Og(a.j.N());a=a.j;b=new Mc(Math.floor((b.width-c.width)/2),Math.floor((b.height-c.height)/2));a.N().style.marginLeft=b.x+"px";a.N().style.marginTop=b.y+"px"}}
$5.prototype.L=function(){this.j=null;$5.J.L.call(this)};function b6(a,b){SD.call(this,a,b);this.C=null;this.D=this.G=this.o=this.k=0;N(this.element,"ytp-tv-static");c6(this,a,b)}z(b6,SD);function d6(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 c6(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.C=d;a.G=d6(b);a.D=d6(c/10);a.context.scale(1.5,1.5)}}b6.prototype.show=function(){b6.J.show.call(this);var a=this.H;this.A=new Date;this.B(a,75)};
b6.prototype.H=function(){var a=1-1/1.5;this.k=(this.k+this.G)%(this.width*a);this.o=(this.o+this.D)%(this.height*a);this.context.drawImage(this.C,-1*this.k,-1*this.o)};b6.prototype.hide=function(){M(this.j);b6.J.hide.call(this)};function e6(){X.call(this,["div",["ytp-error","html5-stop-propagation"],["div","ytp-error-content",["div","ytp-error-content-wrap","{{content}}"]]]);this.da="table";this.k=[];if(void 0==Pt){var a=document.createElement("canvas");Pt=!(!a.getContext||!a.getContext("2d"))}Pt&&(this.j=new b6(1,1),this.j.Y(this.element,0),R(this,this.j))}z(e6,X);e6.prototype.show=function(){e6.J.show.call(this);f6(this);this.j&&this.j.show()};e6.prototype.hide=function(){e6.J.hide.call(this);this.j&&this.j.hide()};
function f6(a){a.j&&c6(a.j,a.element.clientWidth,a.element.clientHeight)}e6.prototype.L=function(){Dh(this.k);this.k=[];e6.J.L.call(this)};function g6(a){yD.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.V=!1;this.O=new hn(this.Gz,
250,this);R(this,this.O);this.A=0;this.A=a;this.o=this.template.j["html5-storyboard-filmstrip"];this.X=this.template.j["html5-storyboard-lens"];this.W=this.template.j["html5-storyboard-lens-thumbnail"];this.ba=this.template.j["html5-storyboard-lens-timestamp"];this.M=this.template.j["html5-storyboard-thumbnail"];Ld(this.M);this.C=0;this.G=new J1(0,0);this.T=!1;this.K=this.I=0;this.P=10;this.H=this.D=this.j=0;this.B=this.k=null;this.hide()}z(g6,yD);g6.k=12;g6.j=20;g6.o=10;g6.A=72;f=g6.prototype;
f.zw=function(){for(var a=this.o.cloneNode(!0),b=this.k.j[0].Jn(),c,d,e=this.k.j[0].Ct();e<=b;e++)d=this.M.cloneNode(!1),c=dI(this.B,e,this.j),P1(d,c,this.j,this.D),a.appendChild(d);Md(a,this.o);this.o=a};f.Cs=function(a,b){Tg(this.o,!1);for(var c,d,e=a;e<=b;e++)if(d=this.o.children[e])c=dI(this.B,e,this.j),P1(d,c,this.j,this.D);Tg(this.o,!0)};function h6(a,b){if(b!=a.H){var c=dI(a.B,b,2*a.j),d=Math.round(2*a.j),e=Math.round(2*a.D);P1(a.W,c,d,e);a.H=b}}
f.Gz=function(){for(var a=this.I,b=Math.max(Math.floor(a/this.j),0),a=Math.min(Math.ceil((a+this.A)/this.j),this.k.j[0].kf()-1);b<=a;b++)eI(this.B,b,2*this.j)};function i6(a,b){a.P=Math.min(g6.o,Math.ceil(a.A/g6.A));a.j=Math.floor(a.A/a.P);a.D=.555*a.j;a.K=a.j*a.k.j[0].kf();Ng(a.o,a.K);var c=Math.round(2*a.j),d;d=.555*c+g6.k;Mg(a.X,c,d);Cg(a.X,(a.A-c)/2);c=d+g6.j;a.N().style.height=Dg(c,!0);b&&(a.Cs(0,a.k.j[0].kf()-1),h6(a,a.H),a.V=!0)}f.show=function(){this.k&&g6.J.show.call(this)};
f.L=function(){this.B=this.k=null;Jw(this.C);g6.J.L.call(this)};function j6(a){X.call(this,["div","html5-storyboard-framepreview",["img","html5-storyboard-framepreview-img",{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"}]]);this.D=this.template.j["html5-storyboard-framepreview-img"];this.C=a;this.j=this.C.kb();this.o=this.k=null;this.A=0;this.B=new J1(0,0);this.hide()}z(j6,X);function k6(a){var b=dI(a.o,a.A,a.j.width);P1(a.D,b,a.j.width,a.j.height);eI(a.o,a.A,a.j.width)}j6.prototype.show=function(){this.k&&j6.J.show.call(this)};function l6(a,b,c){X.call(this,["div",["ytp-thumbnail","html5-stop-propagation"]]);this.k=a;this.j=null;c&&(this.j=new C4(a,b),R(this,this.j),this.j.Y(this.element))}z(l6,X);
function m6(a,b){if(b&&b.videoId){var c;if(!a.k){var d=a.element.clientWidth,e=a.element.clientHeight;if(900<d||600<e)c=tE(b,"maxresdefault.jpg");!c&&(430<d||320<e)&&(c=tE(b,"sddefault.jpg")||tE(b,"hqdefault.jpg"))}c||(c=tE(b,"default.jpg"));a.element.style.backgroundImage="url("+c+")"}else a.element.style.backgroundImage=""};function n6(){dx.call(this);this.j={}}z(n6,dx);ba(n6);f=n6.prototype;f.Wh="tooltip";f.Gi=0;f.register=function(){fx(this,"mouseover",this.yq);fx(this,"mouseout",this.Mi);fx(this,"click",this.Mi);fx(this,"touchstart",this.HD);fx(this,"touchend",this.zs);fx(this,"touchcancel",this.zs)};f.dispose=function(){for(var a in this.j)this.Mi(this.j[a]);this.j={}};
f.yq=function(a){if(!(this.Gi&&1E3>y()-this.Gi)){var b=parseInt(lh(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),M(b));var b=x(function(){o6(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(lh(a,"tooltip-show-delay"),10)||0,b=L(b,c);jh(a,"tooltip-show-timer",b.toString());a.title&&(gx(a,p6(a)),a.title="");b=ka(a).toString();this.j[b]=a}};
f.Mi=function(a){var b=parseInt(lh(a,"tooltip-show-timer"),10);b&&(M(b),this.removeData(a,"tooltip-show-timer"));b=x(function(){q6(this,a);this.removeData(a,"tooltip-hide-timer")},this);b=L(b,50);jh(a,"tooltip-hide-timer",b.toString());if(b=lh(a,"tooltip-text"))a.title=b;b=ka(a).toString();delete this.j[b]};f.HD=function(a,b,c){this.Gi=0;a=bx(b,ex(this),c.changedTouches[0].target);this.yq(a)};f.zs=function(a,b,c){this.Gi=y();a=bx(b,ex(this),c.changedTouches[0].target);this.Mi(a)};
function r6(a,b){gx(a,b);var c=lh(a,"content-id");if(c=td(c))c.innerHTML=b}function p6(a){return lh(a,"tooltip-text")||a.title}
function o6(a,b){if(b){var c=p6(b);if(c){var d=td(s6(a,b));if(!d){d=document.createElement("div");d.id=s6(a,b);d.className=ex(a,"tip");var e=document.createElement("div");e.className=ex(a,"tip-body");var g=document.createElement("div");g.className=ex(a,"tip-arrow");var h=document.createElement("div");h.className=ex(a,"tip-content");var k=t6(a,b),l=s6(a,b,"content");h.id=l;jh(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(g);(Jh()||document.body).appendChild(d);
r6(b,c);(c=parseInt(lh(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",N(h,ex(a,"normal-wrap")));h=eh(b,ex(a,"reverse"));u6(a,b,d,e,k,h)||u6(a,b,d,e,k,!h);var p=ex(a,"tip-visible");L(function(){N(d,p)},0)}}}}
function u6(a,b,c,d,e,g){O(c,ex(a,"tip-reverse"),g);a=0;g&&(a=1);var h=Pg(b);g=new Mc((h.width-10)/2,g?h.height:0);var k=Ig(b);y5(new Mc(k.x+g.x,k.y+g.y),c,a);var k=zd(window),l=Lg(c);c=Pg(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=lh(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 q6(a,b){if(b){var c=td(s6(a,b));c&&(v6(c),Ld(c),a.removeData(b,"content-id"))}}function s6(a,b,c){a=ex(a)+oh(b);c&&(a+="-"+c);return a}function t6(a,b){var c=null;$c&&eh(b,ex(a,"masked"))&&((c=td("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),Dw(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=ex(a,"tip-mask")));return c}
function v6(a){var b=td("yt-uix-tooltip-shared-mask"),c=b&&de(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),Ew(b),document.body.appendChild(b))};function w6(a,b){hh(a,["html5-async-progress","html5-async-success","html5-async-error"]);b&&N(a,b);q6(n6.getInstance(),a)};function x6(a){Fz.call(this);this.o=null;this.j=new qB(a,x(this.C,this),x(this.D,this));R(this,this.j);this.label=Z(0,"YTP_AUDIO_TRACK_TITLE");this.element=new lB(a,void 0,this.j);R(this,this.element);nB(this.element,100);this.element.bb(this.label);this.priority=0;this.A=!0}z(x6,Fz);function y6(a,b){a.o!=b&&(a.o=b,a.j.Da(b),a.element.Rd(a.C(b)))}x6.prototype.C=function(a){return a.name};x6.prototype.D=function(a){this.element.de();y6(this,a);this.element.Ub("change")};function z6(a){Fz.call(this);this.label=Z(0,"YTP_AUTOPLAY");this.element=new Kz(a,[Z(0,"YTP_OFF"),Z(0,"YTP_ON")]);R(this,this.element);this.element.bb(this.label);Mz(this.element,2050);this.priority=4;this.Da(0)}z(z6,Fz);z6.prototype.getSelected=function(){return this.element.getSelected()};z6.prototype.Da=function(a){this.element.Da(a)};function A6(a){Gz.call(this,a);Jz(this,6900);B6(this)}z(A6,Gz);function B6(a){Hz(a,"ytp-button-fullscreen-enter");var b=Z(0,"YTP_FULLSCREEN");a.bb(b);a.o=b};function C6(a,b,c){X.call(this,["div","ytp-menu-container",{tabIndex:-1,role:"menu","aria-labelledby":b},["div","ytp-menu",["div","ytp-menu-content","{{content}}"]]]);this.A=a;this.o=c||!1;this.j=[];this.k=[]}z(C6,X);f=C6.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}}wb(this.j,b,0,a);D6(this)};f.remove=function(a){qb(this.j,a);D6(this)};
function D6(a){wi(a.k);a.k=[];var b,c,d=[],e=1==a.j.length||a.o;e&&a.j.length&&(c=new X(["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].B;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.A;c=e?!g||c?new X(["div","ytp-menu-row",["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]):!g||k.A?new X(["div",
"ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div",h,"{{content}}"]]):new X(["div","ytp-menu-row",["div",["ytp-menu-cell","ytp-menu-title"],k.label],["div","ytp-menu-cell","{{content}}"],["div","ytp-menu-cell","{{more}}"]]);c.pa(k.element);c.pa(E6(a,k),"more");d.push(c)}a.pa(d)}function E6(a,b){if(b.B){var c=Z(0,"YTP_OPTIONS"),d=new Gz(a.A,"ytp-menu-more-options",c);Jz(d,2700);d.pa(c);a.k.push(d);d.listen("click",b.G,b);return d}return null}f.focus=function(){this.N().focus()};
f.Ni=function(){return this.j.length};f.L=function(){this.j=[];D6(this);C6.J.L.call(this)};function F6(a){Gz.call(this,a,"ytp-button-next",Z(0,"YTP_NEXT"),Z(0,"YTP_NEXT"));Jz(this,6051)}z(F6,Gz);function G6(a){Gz.call(this,a);Jz(this,6E3);H6(this)}z(G6,Gz);function H6(a){Hz(a,"ytp-button-play");var b=Z(0,"YTP_PLAY");a.bb(b)};function I6(a){Gz.call(this,a,"ytp-button-prev",Z(0,"YTP_PREVIOUS"),Z(0,"YTP_PREVIOUS"));Jz(this,6050)}z(I6,Gz);function J6(a){Fz.call(this);this.D=this.F="unknown";this.H={};this.label=Z(0,"YTP_QUALITY_TITLE");this.o=new qB(a,x(this.C,this),x(this.I,this),!0);R(this,this.o);this.j=NaN;this.element=new lB(a,void 0,this.o);R(this,this.element);nB(this.element,100);this.element.bb(this.label);this.priority=-1;this.A=!0}z(J6,Fz);J6.prototype.$k=function(){return this.F};
function K6(a,b,c){a.F=b;a.D=c;a.o.Da(c);var d=a.o;null!=d.j&&pB(sB(d,d.j),!1);null!=b&&pB(sB(d,b),!0);d.j=b;"auto"==c&&c!=b?(b=Z(0,"YTP_AUTO_WITH_QUALITY_2",{VIDEO_QUALITY:L6(a,b)}),b=new OE(b)):b=a.C(b);isNaN(a.j)||(Gw()?Jw(a.j):M(a.j));Gw()?a.j=Iw(x(a.element.Rd,a.element,b),0):a.j=L(x(a.element.Rd,a.element,b),0)}function L6(a,b){var c=ut[b],c=c?c+"p":Of("YTP_AUTO"),d=a.H[b];return d&&30<d?c+d.toString():c}
J6.prototype.C=function(a){var b=["span","",L6(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 Yu(b)};J6.prototype.I=function(a){this.element.de();if("auto"!=this.D||"auto"!=a)K6(this,a,a),this.element.Ub("change")};J6.prototype.L=function(){Gw()?Jw(this.j):M(this.j);J6.J.L.call(this)};function M6(a){ZA.call(this,a,"ytp-size-toggle-large",Z(0,"YTP_THEATER_MODE"),"ytp-size-toggle-small",Z(0,"YTP_DEFAULT_VIEW"));Jz(this,6800)}z(M6,ZA);M6.prototype.update=function(){M6.J.update.call(this);this.element.removeAttribute("aria-pressed")};function N6(a){Fz.call(this);this.o=2;this.label=Z(0,"YTP_SPEED_TITLE");this.j=new qB(a,x(this.C,this),x(this.D,this));R(this,this.j);this.element=new lB(a,void 0,this.j);R(this,this.element);nB(this.element,100);this.element.bb(this.label);O6(this,this.o);this.priority=1;this.A=!0}z(N6,Fz);function O6(a,b){a.o=b;a.j.Da(b);a.element.Rd(a.C(b))}N6.prototype.C=function(a){return 1==a?Z(0,"YTP_NORMAL_SPEED"):a.toString()};N6.prototype.D=function(a){this.element.de();O6(this,a);this.element.Ub("change")};function P6(){X.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(P6,X);P6.prototype.If=function(a){cv(this.template,"duration",iv(a))};function Q6(a,b,c){O(a.element,"ytp-time-liveonly",b&&!c);O(a.element,"ytp-time-live",b&&c)}
P6.prototype.L=function(){this.liveBadge=null;P6.J.L.call(this)};function R6(a,b){this.C=a;X.call(this,["div","ytp-volume-control",["div","ytp-volume-panel",{role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:6200},["div","ytp-volume-slider",["div","ytp-volume-slider-foreground"]]]]);this.j=new Gz(this.C,"ytp-button-volume",Z(0,"YTP_BUTTON_VOLUME"));R(this,this.j);this.j.Y(this.element,0);Jz(this.j,6100);this.A=this.template.j["ytp-volume-panel"];this.o=this.template.j["ytp-volume-slider"];
this.B=this.template.j["ytp-volume-slider-foreground"];this.k=b}z(R6,X);R6.prototype.bb=function(a){this.j.bb(a)};
R6.prototype.setVolume=function(a,b){var c=Z(0,b?"YTP_UNMUTE":"YTP_MUTE");this.j.o=c;var c=Math.round(a),d=c+"% "+Z(0,"YTP_SCREENREADER_VOLUME_SETTING")+(b?" "+Z(0,"YTP_SCREENREADER_VOLUME_MUTED"):"");this.bb(Z(0,b?"YTP_SCREENREADER_VOLUME_UNMUTE":"YTP_SCREENREADER_VOLUME_MUTE")+" "+Z(0,"YTP_SCREENREADER_CONTROL_TOGGLE"));cv(this.template,"valuenow",c);cv(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");jh(this.j.N(),"value",c);c=(this.k?
85:54)-(this.k?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.B.style.left=c+"px"};function S6(a,b,c){yD.call(this,["div","html5-video-controls"]);this.ya=a;this.oa=new zv(this);this.D={};this.B=null;this.W=new zv(this);this.la=-1;this.ka=null;this.wa=c;this.ga=new Z1(a,b);R(this,this.ga);this.ga.Y(this.element);c=new Yu(["div","html5-player-chrome"]);R(this,c);c.Y(this.element);c=c.N();this.ja=this.T=!1;this.X=new I6(a);R(this,this.X);this.X.listen("click",ra(this.publish,"previousvideo"),this);this.X.Y(c);this.A=new G6(a);R(this,this.A);this.A.Y(c);this.A.listen("click",this.SC,
this);this.ba=new F6(a);R(this,this.ba);this.ba.listen("click",ra(this.publish,"nextvideo"),this);this.ba.Y(c);var d=new Yu(["span","ytp-volume-hover-area"]);R(this,d);d.Y(c);this.j=new R6(a,b);R(this,this.j);this.j.Y(d.N());this.j.j.listen("click",this.GD,this);this.V=new R1(this.j.o,!0);R(this,this.V);this.V.subscribe("dragstart",this.IC,this);this.V.subscribe("dragmove",this.HC,this);this.V.subscribe("dragend",this.GC,this);this.C=new P6;R(this,this.C);this.C.Y(d.N());this.oa.listen(this.C.liveBadge,
"click",ra(this.publish,"seekto",Infinity));this.va=new R1(this.j.N());R(this,this.va);this.va.subscribe("hoverstart",this.MG,this);this.ta=new R1(d.N());R(this,this.ta);this.ta.subscribe("hoverend",this.LG,this);this.I=new A6(a);R(this,this.I);this.I.Y(c);this.I.listen("click",this.dC,this);this.o=new M6(a);R(this,this.o);this.o.hide();this.o.Y(c);this.o.listen("click",this.WB,this);this.H=new Gz(a,"ytp-button-watch-on-youtube",Z(0,"YTP_URL_NAVIGATE"),Z(0,"YTP_URL_NAVIGATE"));R(this,this.H);Jz(this.H,
6700);this.H.Y(c);this.H.listen("click",this.NC,this);this.K=new zB(a);R(this,this.K);T6(this,"__default__",this.K,this.H.N());this.na=new Gz(a,"ytp-button-playlist",Z(0,"YTP_PLAYLIST"),Z(0,"YTP_PLAYLIST"));Jz(this.na,6400);this.na.Y(c);R(this,this.na);this.k=new Gz(a,"ytp-button-watch-later",Z(0,"YTP_WATCH_LATER"));a.fg(this.k.N(),"YTP_WATCH_LATER_AS_2",Z(0,"YTP_WATCH_LATER"));this.k.Y(c);Jz(this.k,6300);this.k.bb(Z(0,"YTP_WATCH_LATER"));R(this,this.k);this.k.listen("click",this.LC,this);this.G=
new J6(a);R(this,this.G);this.G.listen("change",this.DB,this);this.P=new N6(a);R(this,this.P);this.P.listen("change",this.XB,this);this.M=new x6(a);R(this,this.M);this.M.listen("change",this.hA,this);this.O=new z6(a);R(this,this.O);this.O.listen("change",this.kA,this)}z(S6,yD);f=S6.prototype;f.dv="__default__";f.bm=!1;f.disable=function(a){U6(this,a,!0)};f.enable=function(a){U6(this,a,!1)};
function U6(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.A;c?e.disable():e.enable();break;case "seek":O(a.element,"disabled-control-seek",c)}}f.setVolume=function(a,b){if(this.la!=a||this.ka!=b)this.j.setVolume(a,b),this.la=a,this.ka=b};f.If=function(a){this.C.If(a)};f.GD=function(){this.publish("mutetoggled")};
function V6(a,b){if(b){if(a.bm){var c=a.A;Hz(c,"ytp-button-stop");var d=Z(0,"YTP_STOP")}else c=a.A,Hz(c,"ytp-button-pause"),d=Z(0,"YTP_PAUSE");c.bb(d)}else H6(a.A)}function W6(a){var b=a.ba;a.T||a.ja?b.show():b.hide();b=a.X;a.T?b.show():b.hide()}f.SC=function(){this.publish("playpausetoggled")};f.MG=function(){N(this.j.N(),"ytp-volume-control-hover")};f.LG=function(){gh(this.j.N(),"ytp-volume-control-hover")};f.IC=function(){N(this.j.N(),"ytp-volume-slider-active");this.publish("volumechangestart")};
f.HC=function(a){a=(a-Ig(this.j.o).x)/(this.j.k?85:54)*100;a={volume:Lc(a,0,100),muted:!1};this.publish("volumechanged",a)};f.GC=function(){gh(this.j.N(),"ytp-volume-slider-active");this.publish("volumechangeend");this.j.A.blur()};f.dC=function(){this.publish("fullscreentoggled")};function X6(a,b){var c=a.D[b.k||"__default__"].menu;c&&c.add(b)}function Y6(a,b){var c=a.D[b.k||"__default__"].menu;c&&c.remove(b)}
function T6(a,b,c,d){if(!a.D[b]){if("remote"==b){var e=Rd(a.K.N());d=c.N();e.insertBefore(d,e.childNodes[0]||null)}else e=c.N(),d=d||a.K.N(),d.parentNode&&d.parentNode.insertBefore(e,d.nextSibling);e=c.listen("click",ra(a.KG,b),a);c.N().getAttribute("aria-label");d=c.N().id;d=new C6(a.ya,d,"__default__"!=b);d.hide();d.Y(a.element);a.D[b]={menu:d,button:c,Pw:e}}}function Z6(a,b){var c=a.D[b];c&&(c.button.detach(),c.button.Fa(c.Pw),c.menu.dispose(),delete a.D[b])}
f.LC=function(){var a=this.k.N();if(!eh(a,"html5-async-progress")){var b=eh(a,"html5-async-success");w6(a,"html5-async-progress");this.publish("watchlater",b)}};f.NC=function(){this.publish("watchonyoutube")};f.JG=function(a){a.target&&(Sd(this.B.button.N(),a.target)||Sd(this.B.menu.N(),a.target))||this.pf()};f.pf=function(){this.publish("menu_show")};f.KG=function(a){var b=this.D[a];b&&b.menu.Ni()&&(b.button.j?this.pf():this.publish("menu_show",a))};
f.hA=function(){this.publish("audiotrackchanged",this.M.o);this.pf()};f.DB=function(){var a=this.G.$k();this.publish("qualitychanged",a);this.publish("controlclick","quality-"+a);this.pf()};f.WB=function(){var a=this.o;a.j?cB(a):bB(a);this.o.N().focus();this.publish("sizechangerequested",1==this.o.j)};f.XB=function(){var a=this.P.o;this.publish("speedchanged",a);this.publish("controlclick","speed-"+a);this.pf()};f.kA=function(){this.publish("autonavchangerequest",1==this.O.getSelected()?2:1)};
f.GA=function(a){var b=a.target;a=b==this.A.N()?"playpause":b==this.j?"volume":b==this.C?"time":b==this.K?"settings":b==this.k?"watchlater":b==this.H?"youtube":b==this.I.N()?"fullscreen":b==this.o?"size":a.target.className;this.publish("controlclick",a)};f.focus=function(){this.A.N().focus()};f.L=function(){this.oa.removeAll();this.W.removeAll();this.B=null;for(var a in this.D)Z6(this,a);this.wa||(this.la=-1,this.ka=null);S6.J.L.call(this)};function $6(a){a7("add_to_watch_later_list",a)}function b7(a){a7("delete_from_watch_later_list",a)}function a7(a,b){Aj("/playlist_video_ajax?action_"+a+"=1",{method:"POST",Of:{feature:b.aL||null,authuser:b.Xa||null,pageid:b.pageId||null},Eb:{video_ids:b.videoIds||null,source_playlist_id:b.sourcePlaylistId||null,full_list_id:b.bL||null,delete_from_playlists:b.iL||null,add_to_playlists:b.YK||null,plid:If("PLAYBACK_ID")||null},context:b.context,onError:b.onError,ab:b.ab,Zb:b.Zb})};function c7(a,b){Q.call(this);this.G=a;this.D=[];this.H=b;this.F=[]}z(c7,Q);function d7(a,b,c){a.D.push(a.G.subscribe(b,c,a))}function e7(a,b,c){a.F.push(a.H.subscribe(b,c,a))}function f7(a){for(var b=0;b<a.D.length;b++)a.G.Kb(a.D[b]);for(b=0;b<a.F.length;b++)a.H.Kb(a.F[b])}c7.prototype.L=function(){f7(this);c7.J.L.call(this)};function g7(a,b,c,d){c7.call(this,a,b);this.C=!1;this.B=a;this.j=b;this.A=c;this.k=0;this.o=d;a=a.R();a.color&&N(this.j.H,a.color);a.bi&&(a=this.j,a.k=new W1,a.k.Y(a.N()),R(a,a.k));h7(this)}z(g7,c7);
function h7(a){f7(a);a.C=!0;d7(a,"cuerangesadded",a.Lx);d7(a,"cuerangesremoved",a.Mx);d7(a,"cuerangemarkersupdated",a.Kx);d7(a,"progresssync",a.nu);d7(a,"resize",a.uy);d7(a,"seekto",a.tG);d7(a,"videodatachange",a.uG);d7(a,"videoplayerreset",a.mu);d7(a,"videoready",a.By);e7(a,"beginseeking",a.Ax);e7(a,"endseeking",a.Ox);e7(a,"seekto",a.yx)}f=g7.prototype;f.Lx=function(a){h2(this.j,a)};f.Mx=function(a){j2(this.j,a)};f.Kx=function(a){h2(this.j,a)};
f.uy=function(a){var b=this.j;b.o=a.width;$1(b);b=this.A;b.j=b.C.kb();b.k&&b.o&&k6(b);b=this.o;a=a.width;!b.k||b.A==a&&b.V||(b.A=a,i6(b,!0))};f.tG=function(a){var b=this.B.lc.mh();a=M1(new J1(b.seekableStart,b.seekableEnd),a);b=this.j;f2(b,n(a)?a:b.B,n(void 0)?void 0:b.O);b=this.o;if(b.k){b.I=b.K*a-b.A/2;Cg(b.o,-1*b.I);var c=L1(b.G,a),d=qH(b.k,b.j),d=b.k.j[d].Wj(c);h6(b,d);Ud(b.ba,iv(b.T?c-b.G.j:c));jn(b.O)}b=this.A;b.k&&b.o&&(a=L1(b.B,a),c=qH(b.k,b.j.width),b.A=b.k.j[c].Wj(a),k6(b))};
f.mu=function(a){if(1!=a.getPlayerType()){if(!this.C)return;f7(this);this.C=!1;d7(this,"videoplayerreset",this.mu)}else if(!this.C){h7(this);var b=this.j;Kd(b.ka);b.G={};b.T={};h2(this.j,a.D.j.j||[])}this.j.k&&X1(this.j.k);this.k&&(M(this.k),this.k=0);this.o.hide();this.A.hide();this.nu()};
f.uG=function(a,b){var c=new J1(0,b.lengthSeconds),d=this.j;d.j=c;g2(d);$1(d);this.j.k&&(this.j.k.k=c);this.o.G=c;this.A.B=c;c=this.j;d=b.clipEnd;c.P=b.clipStart;c.M=d;e2(c);f2(c,c.B,c.O);c=this.j;d=!!b.da;c.Va=d;O(c.ja,"ytp-fast-load",d)};
f.By=function(a){if(this.j.k){var b=this.j.k;b.Zh||(sI(a)?(N(b.N(),"with-thumbnail"),b.Ue=sI(a),b.zh=tI(a),b.zh.subscribe("l",b.BG,b)):X1(b))}b=this.o;b.M&&Kd(b.o);gh(b.N(),"enabled");Jw(b.C);b.k=sI(a);b.B=tI(a);b.T=a.Sa;b.k&&(N(b.N(),"enabled"),b.B.subscribe("l",b.Cs,b),i6(b),Jw(b.C),b.C=Iw(x(b.zw,b)));b=this.A;b.k=sI(a);b.o=tI(a);this.j.jb=a.yb;k2(this.j,!wI(a))};
f.nu=function(a,b){var c=this.B.lc.mh(),d=n(a)?a:c.current,e=new J1(c.seekableStart,n(b)?b:c.seekableEnd),c=M1(e,c.loaded),d=M1(e,d),g=this.j;g.j=e;g2(g);$1(g);g=this.j;f2(g,n(d)?d:g.B,n(c)?c:g.O);this.j.k&&(this.j.k.k=e);this.o.G=e;this.A.B=e};f.Ax=function(a){o1(this.B.k);null==a||isNaN(a)||this.B.Oj("chaptermarker",{position:a});this.k&&M(this.k);this.k=L(x(this.sD,this),200)};f.Ox=function(){this.B.k.Sj();this.o.hide();this.A.hide();this.k&&(M(this.k),this.k=0)};
f.yx=function(a,b){Aq(this.B,a,b)};f.sD=function(){this.o.show();this.A.show()};f.L=function(){g7.J.L.call(this)};function i7(a,b,c,d){c7.call(this,a,b);d7(this,"applicationplayerstatechange",this.vx);d7(this,"controlsdisabled",this.Hx);d7(this,"controlsenabled",this.Ix);d7(this,"liveviewshift",this.Rx);d7(this,"fullscreentoggled",this.Qx);d7(this,"presentingplayerstatechange",this.ky);d7(this,"progresssync",this.IG);d7(this,"videoplayerreset",this.HG);d7(this,"videodatachange",this.GG);d7(this,"onPlaybackQualityChange",this.qy);d7(this,"onVolumeChange",this.Iy);d7(this,"menu_button_add",this.Vx);d7(this,"menu_button_remove",
this.Wx);d7(this,"menu_item_add",this.Xx);d7(this,"menu_item_remove",this.Yx);d7(this,"menu_show",this.EG);d7(this,"onPlaybackRateChange",this.jy);d7(this,"onPlaylistUpdate",this.my);d7(this,"autonavchange",this.DG);e7(this,"fullscreentoggled",this.Jx);e7(this,"mutetoggled",this.ey);e7(this,"nextvideo",this.fy);e7(this,"playpausetoggled",this.iy);e7(this,"previousvideo",this.ny);e7(this,"qualitychanged",this.ry);e7(this,"audiotrackchanged",this.xx);e7(this,"seekto",this.FG);e7(this,"sizechangerequested",
this.yy);e7(this,"speedchanged",this.zy);e7(this,"volumechanged",this.Jy);e7(this,"volumechangestart",this.Hy);e7(this,"volumechangeend",this.Gy);e7(this,"watchlater",this.Ky);e7(this,"watchonyoutube",this.Ly);e7(this,"controlclick",this.Gx);e7(this,"showdialog",this.qD);e7(this,"menu_show",x(a.Li,a));e7(this,"autonavchangerequest",this.CG);this.j=a;this.k=b;this.o=NaN;this.A=new g7(a,b.ga,c,d);R(this,this.A);a=a.R();a.mc&&(b=this.k,this.j.R().Jd?bB(b.o):cB(b.o),b.o.show());a.Lf||this.k.k.hide();
a.ka&&this.k.I.show();a.K&&(b=this.k,c=b.P,rB(c.j,this.j.j.K?Mq:[1]),d=2300,uB(c.j,d++),d=d++,Jz(c.element.j,d),X6(b,b.P));if(a.experiments.k)for(b=this.k,c=[b.A,b.j,b.C,b.k,b.H,b.I,b.K,b.o],d=0;d<c.length;d++)b.oa.listen(c[d].N(),"click",b.GA,b);Hq(a)&&this.k.H.hide()}z(i7,c7);f=i7.prototype;f.Hx=function(a){this.k.disable(a)};f.Ix=function(a){this.k.enable(a)};f.Rx=function(a){O(this.k.C.element,"ytp-time-live-dvr",!a)};
f.Qx=function(a){var b=this.k;this.j.R();a?(a=b.I,Hz(a,"ytp-button-fullscreen-exit"),b=Z(0,"YTP_EXIT_FULLSCREEN"),a.bb(b),a.o=b):B6(b.I);j7(this)};f.ky=function(a){W(a.state,2)||(0<vv(a,8)?V6(this.k,!0):0>vv(a,8)?V6(this.k,!1):0>vv(a,2)&&V6(this.k,W(a.state,8)));0>vv(a,16)&&k7(this,this.j.getCurrentTime())};f.vx=function(a){if(W(a.state,2)&&!nE(this.j)){a=this.k.A;Hz(a,"ytp-button-replay");var b=Z(0,"YTP_REPLAY");a.bb(b)}};
f.HG=function(a){l7(this)&&(k7(this,a.getCurrentTime()),w6(this.k.k.N()),O6(this.k.P,1),a.getVideoData()&&m7(this,a.getVideoData()))};f.GG=function(a,b){l7(this)&&m7(this,b)};function j7(a){a.j.A?(a=a.k,a.T=!0):(a=a.k,a.T=!1);W6(a)}function n7(a){var b=a.j.R();!b.experiments.o||b.isMobile||a.j.A||a.j.getVideoData().Sa||"detailpage"!=b.ea?(a=a.k,Y6(a,a.O)):(a=a.k,X6(a,a.O))}
function m7(a,b){a.k.If(b.lengthSeconds);var c=Oq(a.j),d=a.k,e=Rq(c),g=c.j.j?Gt(c.j.j):{},h=d.G;h.H=g;rB(h.o,e);uB(h.o,2600);Jz(h.element.j,2601);e.length?X6(d,d.G):Y6(d,d.G);d=a.k;e=Nq(a.j);g=o7(a.j);K6(d.G,e,g);AB(d.K,e);d=a.k;c=c.j.j?c.j.j.audioTracks:[];rB(d.M.j,c);1<c.length?X6(d,d.M):Y6(d,d.M);(c=TC(a.j))&&y6(a.k.M,c);c=a.k;d=b.Sa;e=b.yb;c.bm=d&&!e;Q6(c.C,d,e);c=Oq(a.j,1).getPlayerState();W(c,2)||V6(a.k,W(c,8));j7(a);n7(a)}
f.qy=function(a){if(l7(this)){var b=this.k,c=o7(this.j);K6(b.G,a,c);AB(b.K,a)}};f.Iy=function(a){this.k.setVolume(a.volume,a.muted)};f.Xx=function(a){X6(this.k,a)};f.Yx=function(a){Y6(this.k,a)};f.Vx=function(a,b){T6(this.k,a,b)};f.Wx=function(a){Z6(this.k,a)};
f.EG=function(a){if(a==S6.prototype.dv&&this.j.D.isAvailable("captions")){var b=Tq(this.j.D,"captions");b&&!b.loaded&&b.load()}b=this.k;b.W.removeAll();b.B&&(document.activeElement&&Sd(b.B.menu.N(),document.activeElement)&&Rd(b.element).focus(),b.B.menu.hide(),cB(b.B.button),b.B=null);if(a){var c=b.D[a];c&&(b.publish("showdialog"),b.B=c,bB(c.button),c.menu.show(),c.menu.focus(),b.W.listen(window,"blur",b.pf),b.W.listen(document,"click",b.JG))}this.j.publish("onAutonavPauseRequest",!!a)};
f.IG=function(a){k7(this,n(a)?a:this.j.lc.mh().current)};f.Jx=function(){Iq(this.j,!this.j.R().Za)};f.ey=function(){this.j.H.muted?Eq(this.j):Dq(this.j)};f.fy=function(){br(this.j)};f.iy=function(){p7(this.j)};f.ny=function(){cr(this.j)};f.ry=function(a){Br(this.j,a,1)};f.xx=function(a){var b=Oq(this.j,1);if(b&&!b.ha()&&!W(b.B,128)&&b.j.j.j&&(b=b.o,!b.ha())){var c=b.B;a=a.id;c.B="m";c.A=c.F.j[a];c.G=HZ(c);b.publish("audioformatchange",new BZ(c.G,c.o,c.B));H_(b,b.o,HZ(b.B));$Z(b.o);E_(b)}};f.qD=function(a){this.j.xn(a)};
f.FG=function(a){Aq(this.j,a,!0)};f.yy=function(a){var b=this.j;Iq(b,!1);a!=b.j.Jd&&(b.j.Jd=a,b.publish("SIZE_CLICKED",a))};f.zy=function(a){Lq(this.j,a)};f.Hy=function(){this.o=Cq(this.j)};f.Jy=function(a){q7(this.j,a)};f.Gy=function(){Cq(this.j)||q7(this.j,{muted:!0,volume:this.o})};f.Ly=function(){S5(this.j)};f.Gx=function(a){D5(this.j,a)};f.Ky=function(a){(a?b7:$6).call(this,r7(this,a?this.ZB:this.$B))};f.jy=function(a){O6(this.k.P,a)};f.my=function(){j7(this);n7(this)};
f.DG=function(a){var b=this.k;b.ja=1!=a;W6(b);b.O.Da(b.ja?1:0)};f.CG=function(a){this.j.publish("onAutonavChangeRequest",1!=a)};function r7(a,b){return{videoIds:kr(a.j).videoId,Xa:a.j.R().Xa,pageId:a.j.R().pageId,ab:b,onError:a.TA,context:a}}f.$B=function(){var a=this.k.k.N();w6(a,"html5-async-success");this.j.publish("WATCH_LATER_VIDEO_ADDED")};f.ZB=function(){w6(this.k.k.N());this.j.publish("WATCH_LATER_VIDEO_REMOVED")};
f.TA=function(a,b){var c=b&&b.error_message,d=this.k.k.N();w6(d,"html5-async-error");if(c){var e=n6.getInstance(),g=p6(d);r6(d,c);o6(e,d);gx(d,g)}};function l7(a){return 1==Oq(a.j).getPlayerType()}function k7(a,b){if(l7(a)&&(cv(a.k.C.template,"current",iv(b)),14400<b&&a.j.getVideoData().yb)){var c=a.k;c.bm=!0;Q6(c.C,!0,!1)}};var s7={0:[],1:["autohide-controls"],2:["autohide-controls-aspect","autohide-controls-fullscreen","autominimize-progress-bar-non-aspect"],3:["autominimize-progress-bar"]};
function t7(a){g5.call(this,a);this.ta=this.W=this.ba=this.G=this.ya=this.B=null;a=a.R();if("1"==a.k){this.G=new S6(this.k,a.Sc,a.experiments.S);R(this,this.G);this.G.Y(this.element);this.ba=new j6(this.k);var b=this.ba.N();this.o.appendChild(b);R(this,this.ba);this.W=new g6(this.k.xb().width);this.W.Y(this.G.ga.N(),0);R(this,this.W);this.ta=new i7(this.app,this.G,this.ba,this.W);R(this,this.ta)}this.K=new D4(60);R(this,this.K);N(this.K.element,"html5-video-loader");N(this.K.element,"html5-center-overlay");
N(this.K.element,"ytp-scalable-icon-grow");this.K.Y(this.o);this.Va=new X(["div","ytp-clickguard"]);R(this,this.Va);this.Va.Y(this.element);this.O=new l6(a.isMobile,a.Qb,a.ls);R(this,this.O);this.O.Y(this.o);this.O.listen("click",this.wA,this);this.oa=null;this.H=new d5(new c5(this.element),x(this.NG,this),a.Sc);this.H.subscribe("autohideupdate",x(this.PG,this));this.wa=!0;this.A=new $5(this.k);R(this,this.A);this.A.hide();this.A.Y(this.element)}z(t7,g5);f=t7.prototype;
f.pk=function(){t7.J.pk.call(this);this.app.subscribe("appstatechange",this.wx,this);this.app.subscribe("initializingmode",this.My,this);this.app.subscribe("onDetailedError",this.rD,this);this.app.subscribe("clearvideooverlays",this.rl,this);this.app.subscribe("menu_show",this.OG,this)};f.Tn=function(){t7.J.Tn.call(this);this.Ok(this.app.R());this.qk()};f.NG=function(a){if(Sd(this.o,a))return!1;for(;!a||!Zd(a);){if(!a||a==this.element)return!1;a=Rd(a)}return!0};
f.PG=function(a){O(this.element,"ytp-block-autohide",!a);this.app.Pa(a?"onHideControls":"onShowControls")};f.Ok=function(a){a.theme&&this.addClass(a.theme+"-theme");(a.Oa||"0"==a.k)&&this.addClass("modest-branding");a.yj&&this.addClass("html5-hide-share");a.Ec||this.addClass("html5-hide-volume");a.Sc&&(this.addClass("html5-tablet"),N(document.body,"html5-tablet-body"));u7(this)&&this.addClass("ideal-aspect");!this.H.j||this.addClass("ytp-block-autohide")};
f.Ug=function(a){t7.J.Ug.call(this,a);var b=this.app.R();O(this.element,"hide-info-bar",!a||!b.Va);var c=s7[b.na];a&&"1"==b.k?fh(this.element,c):hh(this.element,c)};f.yg=function(a){t7.J.yg.call(this,a);v7(this,a);this.B&&f6(this.B);O(this.element,"ideal-aspect",u7(this));this.A.F&&a6(this.A)};f.wl=function(){t7.J.wl.call(this);v7(this,this.kb())};f.wx=function(a){(this.wa=2==a)?(this.addClass("cued-mode"),m6(this.O,this.app.getVideoData())):this.removeClass("cued-mode")};
f.vl=function(a){t7.J.vl.call(this,a);if(this.element){W(a.state,2)&&m6(this.O,this.app.getVideoData());this.H.Fb(128,!(W(a.state,8)&&!W(a.state,32)&&!W(a.state,2)));var b;b=a.state;if(W(b,2))b=["ended-mode"];else{var c=[];W(b,8)?c.push("playing-mode"):W(b,4)&&c.push("paused-mode");W(b,1)&&!W(b,32)&&c.push("buffering-mode");W(b,32)&&c.push("seeking-mode");W(b,64)&&c.push("unstarted-mode");b=c}F(b,"ended-mode")&&((c=w7())&&c.autoPlay||nE(this.app))&&qb(b,"ended-mode");this.oa&&hh(this.element,this.oa);
fh(this.element,b);this.oa=b;b=Oq(this.app);c=b.getPlayerState();!W(c,1)||W(c,2)||W(b.getPlayerState(),4)||2==b.getPlayerType()?this.K.hide():this.K.show();0>vv(a,64)&&x7(this.app)}};f.qk=function(){this.app.R().Sc&&(hv(this,this.element,"gesturechange",this.yC),hv(this,this.element,"gestureend",this.zC));Ur?this.o.onclick=x(function(a){this.sm(new uh(a))},this):this.rk();var a,b=x(function(){var b=this.j;b&&(bs(b),PD.fillPool(4),this.Fa(a))},this);a=hv(this,this.element,"click",b,void 0,!0)};
f.rk=function(){hv(this,this.o,"click",this.sm);hv(this,this.o,"dblclick",this.Dr)};f.Pi=function(){p7(this.app)};f.wA=function(){var a=this.app.R();a.experiments.H&&"embedded"==a.ea&&a.isMobile&&(!Wh||a.I)&&Iq(this.app,!0);this.Pi()};f.sm=function(a){ee(a.target,"html5-stop-propagation")||(this.element.focus(),"3"!=this.app.R().k&&this.Pi());D5(this.app,"screenclick")};f.Dr=function(a){6!=this.app.I&&this.app.R().ka&&(!ee(a.target,"html5-stop-propagation")&&xx(this.app),D5(this.app,"screendoubleclick"))};
f.yC=function(a){var b=a.scale,c=this.app.R().Za;b*(c?-1:1)>(c?-.7:1.3)&&xx(this.app);a.preventDefault()};f.zC=function(a){a=a.scale;var b=this.app.R().Za;a*(b?-1:1)>(b?-.9:1.1)&&xx(this.app)};function u7(a){a=new G(a.element.clientWidth,a.element.clientHeight);a=(a.width/a.height).toFixed(1);return"1.3"==a||"1.8"==a}f.ag=function(a){if(a){var b=this.A;b.j=a;b.pa(a);this.A.show();this.H.Fb(32,!0)}else a=this.A,a.j=null,a.pa(null),this.A.hide(),this.H.Fb(32,!1)};
f.OG=function(a){O(this.element,"ytp-menu-shown",!!a);this.H.Fb(64,!!a)};
f.rD=function(a){if(this.element){this.B||(this.B=new e6,this.B.Y(this.element),R(this,this.B));var b=this.app.R(),c=a.message,d="embedded"==b.ea,e=a.messageKey,g;a=!1;"YTP_ERROR_GENERIC"!=e||b.Qb?"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH"==e?(g="https://get.adobe.com/flashplayer/",d=!0):"YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK"!=e||b.Qb||(g="/html5",e="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK"):(g="//support.google.com/youtube/?p=player_error1",e="YTP_ERROR_GENERIC_WITH_LINK_2",Hq(this.app.R())&&
(a=!0));g&&(c=Of(e,{BEGIN_LINK:'<br/><a href="'+g+'"'+(d?' target="_blank"':"")+">",END_LINK:"</a>"}));b=this.B;Dh(b.k);b.k=[];cv(b.template,"content",new OE(c));if(a)for(c=this.B,a=x(this.Px,this),b=c.element.getElementsByTagName("a"),d=0;d<b.length;d++)c.k.push(P(b[d],"click",a));this.B.show()}};f.Px=function(a){var b=r("yt.player.exports.feedbackShowArticle"),c={as3:!1,html5:!0,player:!0,cpn:this.app.getVideoData().za};b(3037019,"player_error",c)||a.preventDefault()};
f.kb=function(){var a=this.app.R();return"0"==a.k||"3"==a.k||"1"==a.na&&(a=Oq(this.app),!a||2!=a.getPlayerType())?this.xb():new G(this.o.clientWidth,this.o.clientHeight)};f.My=function(){this.B&&this.B.hide()};f.$f=function(){var a=this.app.R();jh(document.documentElement,"player-size",a.Za?"fullscreen":a.Jd?"large":"small");t7.J.$f.call(this)};f.rl=function(a){this.H.Fb(16,a)};
function v7(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=Lc(e/g,.5,1),d=ud("ytp-scalable-icon-shrink",a.element),h=0;h<d.length;h++){var k=1==c?"":"scale("+c+")";wg(d[h],"transform",k)}c=Lc(e/g*.33,.5,1);d=ud("ytp-scalable-icon-grow",a.element);for(h=0;h<d.length;h++)k=1==c?"":"scale("+c+")",wg(d[h],"transform",k)}}f.Un=function(a){this.G&&V6(this.G,a)};
f.L=function(){this.H.dispose();Gh(this.element);Ld(this.ya);t7.J.L.call(this);this.O=this.ya=null};function y7(a){t7.call(this,a);this.P=new X(["img",["html5-watermark","ytp-scalable-icon-shrink"],{src:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",alt:Z(0,"YTP_WATERMARK")}]);R(this,this.P);this.P.hide();this.P.Y(this.element);this.P.listen("click",this.eu,this);this.C=new A5(this.app,this.element,this.k);R(this,this.C);this.C.Y(document.body);a.R().Qb&&N(this.C.N(),"house-brand");this.na=null;this.D=new P5(this.k,this.app);this.D.Y(this.element);R(this,this.D);
this.D.subscribe("title-click",x(this.eu,this));this.D.subscribe("share-click",x(this.TB,this));this.ga=new v5;R(this,this.ga);this.ga.Y(this.o);this.Hs(y7.k/y7.j)}z(y7,t7);y7.k=3E4;y7.j=50;f=y7.prototype;f.Vg=null;f.Hs=function(a){var b;if(!(b=0>=a)){b=H("div",{"class":"html5-player-css-loaded"});document.body.appendChild(b);var c="none"==Ag(b,"display");Ld(b);b=c}b?0>=a&&Mf(Error("Warning: Player CSS missing.")):L(x(this.Hs,this,a-1),y7.j)};f.Ok=function(a){y7.J.Ok.call(this,a);z7(this);a.mc&&this.$f()};
function z7(a){O(a.element,"ytp-tiny-mode",290>a.xb().width)}f.rk=function(){this.app.R().ka?this.na||(this.na=new m5(this.o,x(this.sm,this),x(this.Dr,this)),R(this,this.na)):y7.J.rk.call(this)};f.fk=function(a){y7.J.fk.call(this,a);this.D&&this.D.update(a);var b=this.app;if(b.j.Qe?0:b.getVideoData().W||b.j.gb){if(a=a.W)this.P.N().src=a;this.P.show()}};
f.qk=function(){y7.J.qk.call(this);var a=this.app.R();a.Sc||(hv(this,this.element,"mousedown",this.jG,void 0,!0),hv(this,this.element,"keydown",this.Iz,void 0,!0));a.Qk||(hv(this,this.element,"keypress",this.lG),hv(this,this.element,"keydown",this.kG),hv(this,this.element,"keyup",this.mG))};f.Iz=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.jG=function(){gh(this.element,"ytp-keyboard-focus")};
f.lG=function(a){var b=!1===a.Lb.returnValue,c=a.keyCode;if(!b){if(179==c||178==c)179==c&&(this.publish("playpausetoggled",!0),b=!0),178==c&&(Gq(this.app),b=!0);98==c&&(this.app.Hc("onBackgroundChange"),b=!0);111==c&&(this.app.Hc("onTextOpacityChange"),b=!0);119==c&&(this.app.Hc("onWindowOpacityChange"),b=!0);if(61==c||43==c)this.app.Hc("onFontSizeIncrease"),b=!0;if(45==c||95==c)this.app.Hc("onFontSizeDecrease"),b=!0;99==c&&(this.app.Hc("onCaptionsToggle"),b=!0);102==c&&(xx(this.app),b=!0);109==c&&
(this.app.H.muted?Eq(this.app):Dq(this.app),b=!0);32==c&&(A7(this),p7(this.app),b=!0);48<=c&&57>=c&&(Aq(this.app,(c-48)/10*Bq(this.app)),b=!0);if(60==c||62==c){var b=this.app.j.K?Mq:[1],d=b.indexOf(this.app.ja);60==c&&0<d?Lq(this.app,b[d-1]):62==c&&d<b.length-1&&Lq(this.app,b[d+1]);b=!0}if(d=63==c)d=this.app.R(),d=d.experiments.Ha?!Hq(d)||d.Za:!0;d&&(this.Vg||(this.Vg=new T5(this.k),R(this,this.Vg),this.Vg.listen("done",this.zl,this)),this.A.F?this.zl():this.ag(this.Vg),b=!0);b&&a.preventDefault()}this.app.Hc("onKeyPress",
a);this.app.R().Ab()&&this.app.$i("onKeyPress",{keyCode:c,handled:b})};
f.kG=function(a){var b=!1===a.Lb.returnValue,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.app,q7(b,{volume:b.H.volume+5,muted:!1});else if(40==c)b=this.app,q7(b,{volume:b.H.volume-5,muted:!1});else if(37==c){var d=this.app,b=-1*b;Aq(d,d.getCurrentTime()+b,!1,250,void 0)}else 39==c&&(d=this.app,Aq(d,d.getCurrentTime()+b,!1,250,void 0));b=!0}36==c&&(Aq(this.app,0),b=!0);35==c&&(Aq(this.app,Infinity),b=!0);27==c&&(Jh()?(Iq(this.app,!1),b=!0):this.C&&this.C.F?
(this.C.hide(),b=!0):"1"==this.app.R().k&&null!=this.G.B?(this.app.Li(),b=!0):this.A.F&&(this.zl(),b=!0));b&&a.preventDefault()}this.app.Hc("onKeyDown",a);this.app.R().Ab()&&this.app.$i("onKeyPress",{keyCode:c,altKey:a.altKey,ctrlKey:a.ctrlKey,metaKey:a.metaKey,shiftKey:a.shiftKey,handled:b,fullscreen:this.app.R().Za})};f.mG=function(a){this.app.Hc("onKeyUp",a)};f.eu=function(){S5(this.app)};
f.TB=function(){if("detailpage"==this.app.R().ea){Iq(this.app,!1);var a=this.app,b=a.getVideoData();a.publish("SHARE_CLICKED",{videoId:b.videoId,listId:b.playlistId,feature:"player_"+a.j.ea})}else a=!N5(this.D),this.app.Ik(a),a&&O5(this.D,!0)};f.rl=function(a){y7.J.rl.call(this,a);O5(this.D,!1)};f.zl=function(){this.ag()};f.Mm=function(a){y7.J.Mm.call(this,a);this.C&&(a?this.C.Y(this.N()):this.C.Y(document.body),this.C.hide());a&&"1"==this.app.R().k&&this.G.focus()};
function A7(a){var b=Oq(a.app).getPlayerState(),c=a.app.getVideoData(),d="html5-bezel-pause";W(b,8)?c.Sa&&!c.yb&&(d="html5-bezel-stop"):d="html5-bezel-play";a=a.ga;d&&cv(a.template,"icon",d);a.j.show(!0)}f.Pi=function(){A7(this);y7.J.Pi.call(this)};f.yg=function(a){y7.J.yg.call(this,a);z7(this)};f.Pm=function(){y7.J.Pm.call(this);if(!this.app.R().isMobile){var a=new X5(this.element,this.app.R());R(this,a);this.k.j=a;var b=ud("ytp-tooltip-anchor",this.element);C(b,function(b){a.cg(b)})}};
f.xb=function(){var a=this.app.R();return"detailpage"!=a.ea||a.Za?y7.J.xb.call(this):t5(a,!0)};f.kb=function(){var a=this.app.R();return"detailpage"!=a.ea||a.Za?y7.J.kb.call(this):t5(a)};f.mp=function(){var a=this.kb();"1"==this.app.R().k&&(a=a.clone(),a.height+=3);return a};var B7=r("yt.prefs.UserPrefs.prefs_")||{};q("yt.prefs.UserPrefs.prefs_",B7,void 0);var jr={"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 C7(a,b){T.call(this);var c=b;c instanceof Kh||(c=new Kh(c));this.X=c;this.j=new oZ(this.X.args||{});R(this,this.j);this.o=new y7(this);R(this,this.o);this.o.subscribe("resize",this.hE,this);this.I=1;this.ya={};this.W=null;this.H=this.j.Vm?sq():{volume:100,muted:!1};this.Ec=this.j.Ab()?new rr(this,1):new xq(this,1);R(this,this.Ec);this.qb=new Cr(this);R(this,this.qb);this.lc=new Cr(this,1);R(this,this.lc);this.ba=this.B=null;this.na={};c=new LF;ZC(this.j)&&(c.k=!0,c.j=.1);this.oa=new BF(c);
this.Ba={internalvideodatachange:this.cA,liveviewshift:this.dE,playbackready:this.dA,playbackstarted:this.eA,statechange:this.fA,signatureexpired:this.VB};var c=new MI,d=this.qb;c.k!=d&&(NI(c),c.C={},c.k=d);d={};d.loaded=x(this.Zq,this);d.unloaded=x(this.ar,this);d.command_pause=D7(this.pauseVideo,this);d.command_play=D7(this.Zd,this);d.command_seek=D7(this.Sf,this);d.command_disable_controls=x(this.hh,this);d.command_enable_controls=x(this.Nj,this);d.command_redirect_controls=x(this.Ts,this);d.command_stop_redirect_controls=
x(this.vj,this);d.command_redirected_show_is_playing=x(this.o.Un,this.o);d.command_progress=x(this.zm,this);d.command_add_cuerange=x(this.Ss,this);d.command_remove_cuerange=x(this.Us,this);d.command_remove_cuerange_all=x(this.Kr,this);d.command_preroll_ready=x(this.Vs,this);d.command_update_cuerange_markers=x(this.Ws,this);d.command_show_dialog=x(this.xn,this);d.command_clear_video_overlays=x(this.Ik,this);d.command_navigate_to_url=x(this.wn,this);d.command_log=x(this.Oj,this);d.publish_external_event=
x(this.$i,this);d.module_menu_button_add=x(this.nq,this);d.module_menu_button_remove=x(this.oq,this);d.module_menu_item_add=x(this.pq,this);d.module_menu_item_remove=x(this.qq,this);d.module_menu_show=x(this.Li,this);d.vss_segment=x(this.lE,this);c.D=d;this.D=c;R(this,this.D);this.K=new dZ(this.j,"",this.D);c=new H0(this.j,1,this.K,this.o);E7(this,c,this.Ba);this.k=c;this.k.da=this.oa;this.kc={beginseeking:this.nA,endseeking:this.RA,internalaudioformatchange:this.gA,internalvideodatachange:this.jE,
internalvideoformatchange:this.wC,progresssync:this.gE,seekto:this.iE,onLoadProgress:this.hB,onVideoProgress:this.AC,newlicensesession:this.eE,playbackready:this.xB,statechange:this.fE,connectionissue:this.BA,heartbeatparams:this.cE,videoelementevent:this.kE};this.M=this.C=null;this.Ca=this.ta=-1;this.G=this.F=null;this.O={};this.da=null;this.V={};this.ka=null;this.jb=0;this.wa=!1;this.list=null;this.S=!0;this.la=this.A=null;this.ja=1;this.Ac=this.ga=this.Oa=null;this.hb=this.gb=!1;this.va=null;this.ob=
0;this.od=!1;this.$b=null;this.Va=this.T=0;c=new sr(this.X.args);if(uI(c)){J0(this.k,c,x(this.ih,this));if("detailpage"==this.j.ea){var d=c.videoId,e=$i("yt-player-restore-playhead"),d=e?e[d]:void 0;d&&(c.startSeconds=d)}aj("yt-player-restore-playhead");(this.j.da||this.j.ob&&this.j.experiments.Ua)&&P0(this.k)}eZ(this.K,"fs");this.o.initialize(a);this.o.Tn();c=this.Ec;d=this.o.N();c.ae=d;for(var g in c.Ef)c.ae[g]=c.Ef[g];for(g in c.Eg)c.ae[g]=c.Eg[g];g=x(this.XA,this);c=document;"onfullscreenchange"in
c?d="fullscreenchange":(d=nh+"fullscreenchange",d="on"+d in c?d:null);"msfullscreenchange"==d&&(d="MSFullscreenChange");this.Oa=d?P(c,d,g):null;this.Ac=P(window,"resize",x(this.KB,this));c=this.X.args;if(Rt()){F7(this);g=kr(this);d=this.o.kb();this.j.Jj=d;this.Pa("onVolumeChange",this.H);"detailpage"==this.j.ea?ur(this,g):c&&(c.playlist||c.list||c.api)&&(G7(this,c),uI(g)||(c=this.A,d=x(this.fr,this),c.Ge=d,c.be&&L(c.Ge,0)));if(c=this.X.args.jsapicallback)ia(c)||(c=r(c)),c&&D7(x(c,m,this.j.xm),m);
this.j.va||(Pp("embedded"==this.j.ea),this.j.kg=mr(this.j)&&!nb(Xp()));M2(this,this.k);this.j.da&&uI(g)?H7(this):"leanback"!=this.j.ea&&I7(this)}else uv(this.k,"html5.missingapi","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0);this.o.wl();D5(this,"init")}z(C7,T);C7.k="defaultcontext";C7.j={};C7.create=function(a,b){try{var c=C7.o(a);if(C7.j[c]){try{C7.j[c].dispose()}catch(d){Mf(d)}C7.j[c]=null}var e=new C7(a,b);ui(e,function(){C7.j[c]=null});return C7.j[c]=e}catch(g){throw Mf(g),g;}};
C7.o=function(a){return v(a)?a:"player"+ka(a)};
function F7(a){a.B=PD.getTag(!0);a.ba=a.B;a.C&&e1(a.C,a.B);is(a.B,a.ja);a.j.Xd?(a.ga&&Dh(a.ga),a.ga=P(a.B,"volumechange",x(a.oB,a),!1)):a.B.setVolume(a.H.volume,a.H.muted);var b=a.o;b.j=a.B;if(!b.j.parentNode){var c=b.o;c.insertBefore(b.j,c.childNodes[0]||null)}b.V=new mg(0,0,0,0);h5(b);N(b.j,"video-stream");N(b.j,"html5-main-video");c=b.app.R();"3"==c.k&&b.j.setAttribute("controls",!0);c.I&&b.j.setAttribute("webkit-playsinline","");c.Oe&&(b.ja=P(b.j,"click",x(b.j.play,b.j)));a.j.wb=a.B;bs(a.B)}
function J7(a){if(a.B){a.ga&&(Dh(a.ga),a.ga=null);a.C&&OD(a.C);var b=a.o;b.j&&(Ld(b.j),b.j=null);a.j.wb=null;PD.releaseTag(a.B);a.B=null}}function LD(a,b){a.j.C?(a.da&&(Cg(a.B,a.da.left,a.da.top),Mg(a.B,rg(a.da)),a.da=null),hs(a.B),OD(a.C),e1(a.C,a.B),is(a.B,a.ja)):PD.releaseTag(b)}function M2(a,b){if(a.C!=b){a.C&&(NI(a.D),P2(a));if(b!=a.k){var c=b.getPlayerType();a.na[c]=b}a.C=b;b.da=a.oa;a.B&&e1(b,a.B);E7(a,b,a.kc);K7(a,b,b.getVideoData());b.T.j&&L7(a,"dataloaded",b,b.getVideoData())}}
function E7(a,b,c){for(var d in c)b.subscribe(d,c[d],a)}function P2(a){OD(a.C);var b=a.C,c=a.kc,d;for(d in c)b.unsubscribe(d,c[d],a);b=a.C;b!=a.k&&(c=b.getPlayerType(),a.na[c]==b&&delete a.na[c]);a.C=null}f=C7.prototype;f.subscribe=function(a,b,c){return C7.J.subscribe.call(this,a,b,c)};function Oq(a,b){return b?1==b?a.k:a.na[b]||null:a.C}function M7(a){var b=a.D,c=[uA.k,oE,yv,IE,iD,SE,iF.j,lF,rD,tF];c.push(wE.j);C(c,b.Ko,b);a.publish("videoready",a.getVideoData())}
f.dA=function(){N7(this)||O7(this,5)};f.xB=function(a){N7(this)||(P7(this),qs(a.getPlayerState())&&this.Zd())};function or(a){!a.G&&a.lc.R().kg&&(a.G=new Y4(a),Q7(a,a.G));if(a.G){var b=cq();lr(a.G,Xp(),b);var c=a.G;c&&!c.ce&&c.Ea(a.lc)&&c.create();b&&a.G.load()}}
function Q7(a,b){R(a,b);b.subscribe("loaded",a.Zq,a);b.subscribe("unloaded",a.ar,a);b.subscribe("command_pause",D7(a.pauseVideo,a));b.subscribe("command_play",D7(a.Zd,a));b.subscribe("command_seek",D7(a.Sf,a));b.subscribe("command_disable_controls",a.hh,a);b.subscribe("command_enable_controls",a.Nj,a);b.subscribe("command_redirect_controls",a.Ts,a);b.subscribe("command_stop_redirect_controls",a.vj,a);b.subscribe("command_redirected_show_is_playing",a.o.Un,a.o);b.subscribe("command_progress",a.zm,
a);b.subscribe("command_add_cuerange",a.Ss,a);b.subscribe("command_remove_cuerange",a.Us,a);b.subscribe("command_remove_cuerange_all",a.Kr,a);b.subscribe("command_update_cuerange_markers",a.Ws,a);b.subscribe("command_preroll_ready",a.Vs,a);b.subscribe("command_show_dialog",a.xn,a);b.subscribe("command_clear_video_overlays",a.Ik,a);b.subscribe("command_log",a.Oj,a);b.subscribe("command_navigate_to_url",a.wn,a);b.subscribe("publish_external_event",a.$i,a);b.subscribe("module_menu_button_add",a.nq,a);
b.subscribe("module_menu_button_remove",a.oq,a);b.subscribe("module_menu_item_add",a.pq,a);b.subscribe("module_menu_item_remove",a.qq,a);b.subscribe("module_menu_show",a.Li,a);b.subscribe("command_log_timing",a.D.G,a.D)}function nr(a){a&&a.ce&&a.destroy()}f.Pa=function(a,b){this.publish.apply(this,arguments);this.Hc.apply(this,arguments)};f.Ff=function(a,b){var c=ub(arguments);this.j.Ab()&&this.C&&c.push(this.C.getPlayerType());this.publish.apply(this,c)};f.canPlayType=function(a){return!!Qt().canPlayType(a)};
f.R=function(){return this.j};f.getVideoData=function(){return this.C.getVideoData()};function kr(a){return a.k.getVideoData()}f.ih=function(){var a=wZ(this.j);sa(a,RI(this.D));this.F&&sa(a,this.F.qh());a.fs=this.j.Za;a.volume=Math.round(Cq(this));a.mos=this.H.muted?1:0;return a};f.xn=function(a){this.o.ag(a)};function I7(a){a.publish("initializingmode");O7(a,2)}
function H7(a){if(W(a.k.getPlayerState(),128))return!1;a.publish("initializingmode");M2(a,a.k);O7(a,3);var b;(b=!a.j.C)||(r("yt.mobile.blazer.blazer_config.isMobilePersistentUniplayer"),b=!1);b&&(J7(a),F7(a),e1(a.k,a.B));Z0(a.k);if(W(a.k.getPlayerState(),128))return!1;R7(a,3);return a.od=!0}function N7(a){return mr(a.j)&&!!cq()}function D7(a,b){return function(){var c=Array.prototype.slice.call(arguments);L(function(){a.apply(b||this,c)},0)}}
f.wn=function(a,b){b?E5(this,a):(window.ytspf||{}).enabled?spf.navigate(a):window.location=Ke(a,{})+""};f.Oj=function(a,b,c){var d=Oq(this);b.event=a;this.j.Za&&(b.fs=1);d.A&&(a=d.A,b.rt=i0(a.j).toFixed(3),sa(b,x0(a.j)),sa(b,z0(a)),delete b.fexp,b=sj(a.j.Z.A+"player_204",b),bg(b,c))};function Lq(a,b){if(!isNaN(b)&&a.B){var c=1,c=a.j.K?Mq:[1],c=1>b?E(c,function(a){return a>=b}):lb(c,function(a){return a<=b});a.ja!=c&&(a.ja=c,a.k==a.C&&is(a.B,c),a.publish("onPlaybackRateChange",c))}}
function Nq(a,b){var c=Oq(a,b);return c&&c.getVideoData().o?c.getVideoData().o.video.quality:"unknown"}function TC(a,b){var c=Oq(a,b);return c?m1(c):a.getVideoData().V}function o7(a){return(a=Oq(a,void 0))?Dt(Z_(a.ka,a.j)):"unknown"}function Br(a,b,c,d){if(a=Oq(a,c))b=Pq(b,d||b,!0),Qq(a,"m",b)}f.getCurrentTime=function(a){return(a=Oq(this,a))?a.getCurrentTime():0};function Bq(a,b){var c=Oq(a,b);return c?c.Uc():0}
function Yq(a,b){var c=a.k.getDebugInfo(b);if(a.C&&a.C!=a.k){var d=a.C.getDebugInfo(b),e;for(e in d)c["ad_"+e]=d[e]}c.debug_playbackQuality=Nq(a);c.debug_date=(new Date).toString();delete c.uga;return fg(c)}
function RE(a,b){var c=a.getVideoData(),d=!!c.na||!!c.$g||!b;d&&a.B.setAttribute("mozStereoMode","1");ME()&&(a.B.setAttribute("mozStereoMode",d?"1":"0"),c=tH[d?c.la:0],d=document.createElement("NvStereoExtDataElement"),d.setAttribute("stereoMode",c),Jd(document.documentElement,d),Hh(d,"3DModeEvent"))}
f.kE=function(a){var b=a.target;switch(a.type){case "loadedmetadata":eZ(this.K,"fvb");this.jb=L(x(this.o.$f,this.o),16);break;case "loadstart":eZ(this.K,"gv");break;case "progress":case "timeupdate":eZ(this.K,"1pb"),2<=Nr(b.buffered)&&eZ(this.K,"l2s")}};f.eE=function(a){if(this.hb){var b=this.ob.toString();this.ob++;this.va[b]=a;a={request:ub(a.j[0]?a.j[0].message:null),sessionId:b,system:a.H.j,url:a.C};this.publish("onNewLicenseSession",a)}else a.start()};
f.hB=function(a,b){this.Ff("onLoadProgress",b)};f.AC=function(a,b){this.Ff("onVideoProgress",b)};f.gE=function(){this.zm()};f.zm=function(a,b){this.publish("progresssync",a,b)};
f.fA=function(a){var b;if(b=0<vv(a,2))this.A&&("embedded"==this.j.ea||this.j.Za)&&nE(this)?(br(this),b=!0):b=!1,b=!b;b&&(this.pauseVideo(),W(a.j,32)&&this.k.Sj(),this.j.isMobile&&Iq(this,!1));W(a.state,128)&&(b=a.state,Kq(this),b=b.j,b.message||b.messageKey||(b.messageKey="YTP_ERROR_GENERIC"),b.message||(b.message=Of(b.messageKey)),this.publish("onError",jr[b.errorCode]||5),this.publish("onDetailedError",b));this.publish("applicationplayerstatechange",a);W(a.state,2)&&(a=this.getVideoData(),a.Sa&&
!a.yb&&this.hh(["play_pause"]))};f.fE=function(a){!W(a.state,32)&&0>vv(a,16)&&(!W(a.state,8)||this.B.ended&&!W(a.state,2)||this.Zd());this.publish("presentingplayerstatechange",a);this.Hc("onStateChange",a);R7(this,rs(a.state))};function S7(a){nr(a.F);nr(a.G);a.gb=!1;var b=[],c;for(c in a.O)Jq(a,c)&&b.push(c);a.O={};0<b.length&&a.publish("controlsenabled",b);a.vj();a.ya={};a=a.K;b=a.k;b.A={};b.o={};a.o=!1}function K7(a,b){NI(a.D);Lq(a,1);a.Pa("videoplayerreset",b)}
function L7(a,b,c,d){if(a.B){if("dataloaded"==b)if(pZ(c.R(),d.A),a.C==a.k){a.j.va||Pp("embedded"==a.j.ea);var e=N7(a),g;if(g=!e)g=kr(a).Bp&&!a.j.isMobile;if(g){var h="YTP_DEVICE_FALLBACK";Yc||Wr("iemobile")||Wr("xbox")&&Wr("trident")||Wr("nintendo wiiu")||(h="YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK_FLASH");uv(a.k,"html5.unsupportedads",h,void 0)}else if(g=kr(a),!(g.k||g.Ke||g.Je||g.da||g.S)||e||N0(a.k)){qI(g);e&&O7(a,6);e=!1;!a.F&&A4.Ea(a)&&(a.F=new A4(a),a.F&&Q7(a,a.F),e=!0);try{(h=a.F)&&!h.ce&&
h.Ea(a.lc)&&h.create()}catch(k){Mf(k),a.k&&d1(a.k,"ad")}e&&(e=a.F,g=kr(a),h=Oq(a),g.subscribe("cuepointupdated",e.HA,e),e.F=g,e=B4(e),null!=e&&(e.H=h));or(a);M7(a)}else uv(a.k,"fmt.noneavailable","YTP_HTML5_NO_AVAILABLE_FORMATS_FALLBACK",void 0)}else M7(a);1==c.getPlayerType()&&(a.getVideoData().zk?(a.W=ac(a.H),a.hh(["audio"]),h=a.B,h.yk=!0,h.muted=!0):(Jq(a,"audio")&&a.Nj(["audio"]),a.B.yk=!1,a.W&&(q7(a,a.W),a.W=null)),h=a.getVideoData(),h.Sa&&!a.j.Sm?uv(a.k,"html5.unsupportedlive","YTP_DEVICE_FALLBACK",
void 0):h.Sa&&!h.yb?a.hh(["seek"]):a.Nj(["seek"]),d.ja||d.Ca||d.B.focEnabled||d.B.rmktEnabled||a.j.eg)&&(h=a.getVideoData(),e=1E3*h.lengthSeconds,T7(a,"part2viewed",1,e),T7(a,"engagedview",Math.max(1,1E3*h.Re),e),T7(a,"videoplaytime25",.25*e,e),T7(a,"videoplaytime50",.5*e,e),T7(a,"videoplaytime75",.75*e,e),T7(a,"videoplaytime100",e,2147483647),T7(a,"conversionview",e,2147483647));a.Pa("videodatachange",b,d,c.getPlayerType())}}f.cA=function(a){"newdata"==a&&S7(this)};
f.gA=function(a,b){var c=this.C.getVideoData();a==c&&this.Pa("onPlaybackAudioChange",TC(this).name,b)};f.jE=function(a,b,c){"newdata"==a?K7(this,b):L7(this,a,b,c)};f.wC=function(a,b){var c=this.C.getVideoData();a==c&&this.publish("onPlaybackQualityChange",a.o.video.quality,b)};
function ur(a,b){if(b.playlistId){var c=w7();if(c&&!c.list)a.Hk();else if(c&&0<=c.index){var d=[];C(c.videoIds,function(a){if(a=c.videoData?c.videoData[a]:void 0)a.video_id=a.id,a.author=a.Es,d.push(a)});G7(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.la&&U7(a,a.la)}else G7(a,{videoList:[b.videoId],list:b.playlistId,fetch:0}),a.la=null}}
function G7(a,b){if(a.A){a.A.unsubscribe("error",a.Hk,a);S(a.A);a.A=null;var c=Tq(a.D,"playlist");if(c){var d=a.D;if(!d.k||c.Rm(d.k))c.destroy(),qb(d.j,c)}}b&&(a.A=new yI(b),a.A.subscribe("error",a.Hk,a),a.D&&(c=a.D,C([wE.j],c.Ko,c)))}f.Hk=function(){G7(this,null);this.Pa("onPlaylistUpdate")};function T7(a,b,c,d){b in a.ya||(c=new ss(c,d,{id:b,priority:1}),c.Wa.subscribe("onEnter",a.Gq,a),c.Wa.subscribe("onExit",a.Gq,a),ws(a.k.D,[c]),a.ya[b]=c)}
f.Gq=function(a){var b=a.getId(),c=kr(this);if("part2viewed"==b)c.Gh&&bg(c.Gh),c.Ca&&bg(c.Ca);else if("conversionview"==b){var d=this.k;d.A&&B0(d.A)}else"engagedview"==b&&bg(c.ja);c.ka&&(d=a.getId(),d=sj(c.ka,{label:d}),bg(d));switch(b){case "videoplaytime25":c.ge&&bg(c.ge);bg(c.ew);break;case "videoplaytime50":c.he&&bg(c.he);bg(c.iw);break;case "videoplaytime75":c.ie&&bg(c.ie);bg(c.lw);break;case "videoplaytime100":c.fe&&bg(c.fe),bg(c.bw)}this.j.eg&&this.j.eg[a.getId()]&&(b=this.j.eg[a.getId()],
c=A(B(b))?!1:-1!=b.search(zf)||-1!=b.search(xf),bg(b,void 0,c));this.k.D.jh(a)};function O7(a,b){b!=a.I&&(2==b&&(R7(a,-1),R7(a,5)),a.I=b,a.publish("appstatechange",b))}function R7(a,b){a.C&&2==a.C.getPlayerType()?a.Ca!=b&&(a.Ca=b,a.Ff("onAdStateChange",b)):a.ta!=b&&(a.ta=b,a.Ff("onStateChange",b))}function D5(a,b){a.j.experiments.k&&a.Oj("controlclicked",{controlClicked:b})}f.Sf=function(a,b,c,d){b=0!=b;if(d=Oq(this,d))2==this.I&&H7(this),$0(d,a,b,c)};
f.iE=function(a,b){var c=a.getVideoData();if(1==this.I||2==this.I)c.startSeconds=b;2==this.I?H7(this):this.Pa("seekto",b)};f.nA=function(){this.Pa("beginseeking")};f.RA=function(){this.Pa("endseeking")};function Cq(a){return a.H.volume}f.setVolume=function(a){var b=this.H;b.volume=a;q7(this,b)};
function q7(a,b){a.H=b;b.volume=Lc(b.volume,0,100);if(a.j.Vm&&!a.j.Xd){var c={};c.volume=isNaN(b.volume)?sq().volume:Lc(b.volume,0,100);c.muted=void 0==b.muted?sq().muted:b.muted;Yi("yt-player-volume",c,2592E3)}Jq(a,"audio")?a.W&&(a.W=ac(b),a.Pa("onVolumeChange",b)):(P7(a),a.j.Xd||a.Pa("onVolumeChange",b))}function Dq(a){var b=a.H;b.muted=!0;q7(a,b)}function Eq(a){var b=a.H;b.muted=!1;5>b.volume&&(b.volume=5);q7(a,b)}
function Uq(a,b,c){b.list=b.list||a.list;b=new sr(b);kr(a).playlistId!=b.playlistId&&G7(a,null);"detailpage"==a.j.ea&&ur(a,b);return V7(a,b,c)}function tr(a,b){a.M&&a.M.getVideoData().videoId==b.videoId||(b.Oa=!0,a.M||(a.M=new H0(a.j,1,a.K,a.o),a.M.da=a.oa),J0(a.M,b,x(a.ih,a)),P0(a.M,!0))}
function V7(a,b,c){if(!OH("_start",a.K.j)){var d=a.K.j;PH("yt_sts","p",d);KH("_start",void 0,d);a.K.info("srt",0)}if(a.M&&a.M.getVideoData().videoId==b.videoId){d=a.M;a.M=null;b=d;c=a.k;var e=a.Ba,g;for(g in e)c.unsubscribe(g,e[g],a);a.k.dispose();a.k=b;E7(a,b,a.Ba);S7(a)}else{d=Oq(a,c);if(!d)return!1;M(a.jb);Kq(a,c);J0(d,b,x(a.ih,a))}if(!O0(d))return!1;if(d==a.k)return O7(a,1),H7(a);Z0(d);return!0}function zq(a,b,c){c=Oq(a,c);b&&c==a.k&&(c.getVideoData().$d=!0)}
function Vq(a,b,c){b.list=b.list||a.list;W7(a,new sr(b),c)}function W7(a,b,c){var d=Oq(a,c);d&&(Kq(a,c),J0(d,b,x(a.ih,a)),O0(d)&&(pZ(d.R(),b.A),d==a.k&&(O7(a,1),I7(a))))}
function ZD(a,b,c,d,e){if(!b&&!d)throw Error("Playback source is invalid");b={video_id:b,list:d};a.j.Za||"detailpage"!=a.j.ea?(c=a.K,e=c.k,e.A={},e.o={},c.o=!1,UH(a.K.j),IH(),d?(a.S=!1,ar(a,b,void 0,void 0,void 0)):Uq(a,b,1)):(d=new sr(b),d=a.j.getVideoUrl(d,{}),(c||{}).lact=hZ(),r("yt.player.exports.navigate")(d,c,!0),a.wn(d,e))}
function ar(a,b,c,d,e){if(ja(b)&&!fa(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},v(b)&&16==b.length?d.list="PL"+b:d.playlist=b,b=d;G7(a,b);b=a.A;a=x(a.fr,a);b.Ge=a;b.be&&L(b.Ge,0)}f.fr=function(){var a=fr(this.A);if(this.getVideoData().Fg||!this.S){var b=this.getVideoData().$d,a=V7(this,a);b&&zq(this,a)}else a&&W7(this,a)};
function nE(a){var b=w7();return!(!a.A||!FI(a.A)||b&&!b.autoPlay)}function br(a){if(a.A)"detailpage"!=a.j.ea||a.j.Za?a.A.be?FI(a.A)&&V7(a,HI(a.A),1):(HI(a.A),a.S=!1):U7(a,"yt.www.watch.lists.next");else if(1!=a.getVideoData().yd&&Oq(a,1).getVideoData().M){var b=Oq(a,1).getVideoData().M[0],c=b.id||b.video_id||"",d=b.session_data?mj(b.session_data,"&"):null;ZD(a,c,d,b.list||void 0)}}
function cr(a){if(a.A)if("detailpage"!=a.j.ea||a.j.Za)if(a.A.be){var b=a.A;(b.Uf||0<=b.Ra-1)&&V7(a,JI(a.A),1)}else JI(a.A),a.S=!1;else U7(a,"yt.www.watch.lists.prev")}function U7(a,b){var c=r(b);if(c){var d=w7();d&&d.list&&c();a.la=null}else a.la=b}function dr(a,b){a.A&&(a.A.be?V7(a,fr(a.A,b),1):a.S=!1,II(a.A,b))}function w7(){var a=r("yt.www.watch.lists.getState");return a?a():null}function gr(a){return a.A&&a.A.o?a.A.o.toString():null}
function Zq(a){var b=kr(a),c=a.o.xb();a="https://"+uZ(a.j)+"/embed/"+b.videoId;b.playlistId&&(a=Ke(a,{list:b.playlistId}));return'<iframe width="'+c.width+'" height="'+c.height+'" src="'+Ba(a)+'" frameborder="0" allowfullscreen></iframe>'}function Xq(a,b){var c=null;if(b){var d=a.getCurrentTime(1),e=Bq(a,1);10<d&&10<e-d&&(c={t:Math.floor(d)})}return a.j.getVideoUrl(kr(a),null,c)}
function $q(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 ss(1E3*c,1E3*d,b);c.Wa.subscribe("onEnter",a.aA,a);c.Wa.subscribe("onExit",a.bA,a);ws(a.k.D,[c]);a.publish("cuerangesadded",[c]);return!0}f.aA=function(a){this.publish("onCueRangeEnter",a.getId())};f.bA=function(a){this.publish("onCueRangeExit",a.getId())};f.Ss=function(a,b){var c=Oq(this,b);c&&(ws(c.D,a),this.publish("cuerangesadded",a))};
f.Us=function(a,b){var c=Oq(this,b);c&&(c.D.jh.apply(c.D,a),this.publish("cuerangesremoved",a))};f.Kr=function(a,b){var c=Oq(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.k.indexOf(h);0<=k&&c.k.splice(k,1);var k=c.j.j,l=zb(k,h,Fr);0<=l&&rb(k,l);d.push(h)}}c.nc();this.publish("cuerangesremoved",d)}};f.Ws=function(a){this.publish("cuerangemarkersupdated",a)};f.Vs=function(a,b){var c=Oq(this,b);c&&d1(c,a)};
f.eA=function(){this.T||(this.T=Yw(this.Jq,this));fZ(this.K,X7(this));if(!this.gb&&"detailpage"==this.j.ea){this.gb=!0;var a=this.k;if(a.S&&a.S.j){var b={},c={};a.j.videoId&&(b.docid=a.j.videoId);a.j.playbackId&&(b.plid=a.j.playbackId);b.cpn=a.j.za;b.ad_cpn=a.S.j;var d=y()-a.S.k;a.S.o?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=If("TIMING_INFO")||{};"e"in b&&(a.e=b.e);"ei"in b&&(a.ei=b.ei);TH(a)}}if(this.wa&&(b=this.k,b.A))b.A.onError("html5.reboot");this.wa=!1;this.j.experiments.F&&nE(this)&&(b=fr(this.A,GI(this.A)))&&tr(this,b)};f.Jq=function(a){a=a.j;if(!isNaN(a)&&0<a&&this.k){var b=this.k;b.A&&0<a&&(b.A.A.o.aft=[a])}};function X7(a){var b=y(),c=a.getCurrentTime();a=a.getVideoData();return b-Math.max(1E3*(c-a.startSeconds),0)}f.Zq=function(a){"remote"==a?(2==this.I&&H7(this),O7(this,6),nr(this.F)):this.Ff("onApiChange")};
f.ar=function(a){"remote"!=a||N7(this)||(this.Zd(),this.pauseVideo());this.Ff("onApiChange")};f.oB=function(){if(!Jq(this,"audio")){var a={volume:100*this.B.volume,muted:this.B.muted};this.H=ac(a);this.Pa("onVolumeChange",a)}};function P7(a){var b=a.j.Xd?sr.j:a.getVideoData().vo;a.B.setVolume(a.H.volume*b,a.H.muted)}f.XA=function(){Y7(this,Jh()?1:0)};
function Y7(a,b){var c=!!b,d=!!a.Va!=c;a.Va=b;if(d){a.o.Mm(c);if("detailpage"==a.j.ea&&!c&&(d=kr(a),If("VIDEO_ID")!=d.videoId)){var e=a.getCurrentTime(),g={};g[d.videoId]=e;Yi("yt-player-restore-playhead",g,172800);a.pauseVideo()}KH("fsc",void 0,a.K.j);a.j.Za=c;a.o.$f();a.Pa("fullscreentoggled",c);c={fullscreen:c,videoId:kr(a).videoId};gr(a)&&(c.listId=gr(a));a.publish("onFullscreenChange",c)}}f.hE=function(){x7(this)};f.KB=function(){2!=this.Va&&Y7(this,Jh()?1:0)};
f.Ik=function(a){this.Pa("clearvideooverlays",!!a)};f.nq=function(a,b){this.Pa("menu_button_add",a,b)};f.oq=function(a){this.Pa("menu_button_remove",a)};f.pq=function(a){this.Pa("menu_item_add",a)};f.qq=function(a){this.Pa("menu_item_remove",a)};f.Li=function(a){this.Pa("menu_show",a)};f.lE=function(a){(a=Oq(this,a))&&a.A&&f0(a.A.k)};f.dE=function(a){this.Pa("liveviewshift",a)};
f.$i=function(a,b){if("onAdStateChange"==a){var c=arguments[1],d=arguments[2],e=arguments[3]||{};1==c&&(eZ(this.K,"vr"),this.T||(this.T=Yw(this.Jq,this)),s1(this.C),fZ(this.K,X7(this)));0==c&&e&&(this.k.S=e);var g=this.j;"leanback"==g.ea&&g.Ab()&&(0==c?this.ba=this.B:this.ba=d,this.publish("onAdStateChange",c,e.video_id))}else this.publish.apply(this,arguments)};f.Hc=function(a,b){this.D.H.apply(this.D,arguments);this.F&&this.F.publish.apply(this.F,arguments);this.G&&this.G.publish.apply(this.G,arguments)};
f.Zd=function(a){(a=Oq(this,a))&&(2==this.I?H7(this):W(a.getPlayerState(),2)?this.Sf(0):h1(a))};f.pauseVideo=function(a){(a=Oq(this,a))&&a.pauseVideo()};function Kq(a,b){Zw(a.T);a.T=0;var c=Oq(a,b);c&&1!=a.I&&2!=a.I&&(NI(a.D),c1(c),1==b&&nr(a.F))}function Fq(a,b){if(!Jq(a,"play_pause")){var c=a.V.play_pause?a.ka:null;c?c.Pd("control_play"):a.Zd(b)}}function Gq(a,b){if(!Jq(a,"play_pause")){var c=a.V.play_pause?a.ka:null;c?c.Pd("control_pause"):a.pauseVideo(b)}}
function p7(a){var b;if(b=!Jq(a,"play_pause"))(b=!a.j.Sc||2!=a.I)||(b=PD.hasTags(void 0));b&&((b=a.V.play_pause?a.ka:null)?b.Pd("control_toggle_play_pause"):(b=Oq(a,void 0))&&(qs(b.getPlayerState())?a.pauseVideo(void 0):a.Zd(void 0)))}function Aq(a,b,c,d,e){if(!Jq(a,"seek")){var g=a.V.seek?a.ka:null;g?g.Pd("control_seek",b):a.Sf(b,c,d,e)}}
function Iq(a,b){if(a.j.Za!=b)if(Ih())if(b){var c=a.o.N(),d=th(["requestFullscreen","requestFullScreen"],c);d&&d.apply(c)}else(c=th(["exitFullscreen","cancelFullscreen","cancelFullScreen"],document))&&c.call(document);else Y7(a,b?2:0)}function xx(a){Iq(a,!a.j.Za)}function E5(a,b){Iq(a,!1);a.pauseVideo();mF(b)}function S5(a){var b=a.getVideoData();"detailpage"==a.j.ea&&a.j.Za&&If("VIDEO_ID")==b.videoId?Iq(a,!1):E5(a,Xq(a,!0))}f.getAdState=function(){return this.F?this.F.getAdState():-1};
function x7(a){var b=a.o.kb();a.j.Jj=b;if(a.B){b=!1;if(0!=a.B.readyState&&a.C){var c=new G(a.B.videoWidth,a.B.videoHeight),d=a.getVideoData();Pc(d.$n,c)||(d.$n=c,b=!0)}c=a.o;c=j5(c,c.kb(),i5(c),l5(c),void 0);pg(a.$b,c)||(a.$b=c,a.j.Dj=c,b=!0);b&&(a.C&&Qq(a.C,"r"),a.publish("resize",a.o.xb()),a.Pa("onResize"))}}function Jq(a,b){return!(!a.O[b]||!a.O[b].length)}
f.hh=function(a,b){b=b||C7.k;var c=[];C(a,function(a){this.O[a]?0>this.O[a].indexOf(b)&&this.O[a].push(b):(this.O[a]=[b],c.push(a))},this);0<c.length&&this.publish("controlsdisabled",c)};f.Nj=function(a,b){b=b||C7.k;var c=[];C(a,function(a){if(Jq(this,a)){var e=this.O[a].indexOf(b);0<=e&&this.O[a].splice(e,1);0==this.O[a].length&&c.push(a)}},this);0<c.length&&this.publish("controlsenabled",c)};f.Ts=function(a,b,c){this.vj();this.ka=a;b&&C(b,function(a){this.V[a]=!0},this);c&&OI(this.D,a,c)};
f.vj=function(){this.ka=null;this.V={};PI(this.D)};function hr(a,b,c,d){if(a.j.Ab()){if(a.F&&b==a.F.ua)return a.F.Vf(c,d);if(a.G&&b==a.G.ua)return a.G.Vf(c,d)}c=b&&c?(a=Tq(a.D,b))?a.Vf(c,d):null:null;return c}function ir(a,b){if(!b){var c=QI(a.D);a.j.Ab()&&(a.F&&c.push(a.F.ua),a.G&&c.push(a.G.ua));return c}if(a.j.Ab()){if(a.F&&b==a.F.ua)return a.F.Wf();if(a.G&&b==a.G.ua)return a.G.Wf()}return QI(a.D,b)}
f.VB=function(){if(this.j.experiments.B&&!this.wa){this.wa=!0;var a=this.getVideoData(),b=Oq(this).getCurrentTime();Uq(this,{video_id:a.videoId,start:b,autoplay:1,splay:1,resume:1,feature:"resume"})}};f.BA=function(){this.Pa("CONNECTION_ISSUE")};f.cE=function(a){this.Pa("heartbeatparams",a)};f.L=function(){Up();this.k.dispose();this.M&&this.M.dispose();J7(this);this.Oa&&Dh(this.Oa);Dh(this.Ac);wi(Qb(this.na),this.A);this.ba=null;M(this.jb);Zw(this.T);this.T=0;C7.J.L.call(this)};function Z7(){dx.call(this);this.j=[];this.o={}}z(Z7,dx);ba(Z7);f=Z7.prototype;f.Wh="button";f.xf=null;f.register=function(){fx(this,"click",this.Ow);fx(this,"keydown",this.yz);fx(this,"keypress",this.zz);this.Am.push(Di("page-scroll",this.hy,this))};f.Ow=function(a){a&&!a.disabled&&($7(this,a),this.click(a))};
f.yz=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=a8(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=Vd(b,d);if(e){e=e.tagName.toLowerCase();var g;"ul"==e?g=this.Lz:"table"==e&&(g=this.Kz);g&&b8(this,a,b,c,x(g,this))}}};f.hy=function(){var a=this.o;if(0!=Nb(a))for(var b in a){var c=a[b],d=ee(c.activeButtonNode||c.parentNode,ex(this));if(void 0==d||void 0==c)break;c8(this,d,c,!0)}};
function b8(a,b,c,d,e){var g=Cw(c),h=9==d.keyCode;h||32==d.keyCode||13==d.keyCode?(d=d8(a,c))?(b=Od(d),"a"==b.tagName.toLowerCase()?window.location=b.href:Hh(b,"click")):h&&e8(a,b):g?27==d.keyCode?(d8(a,c),e8(a,b)):e(b,c,d):(a=eh(b,ex(a,"reverse"))?38:40,d.keyCode==a&&(Hh(b,"click"),d.preventDefault()))}f.zz=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=a8(this,a),Cw(a)&&c.preventDefault())};function d8(a,b){var c=ex(a,"menu-item-highlight"),d=wd(c,b);d&&gh(d,c);return d}
function f8(a,b,c){N(c,ex(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=ex(a,"item-id-"+ka(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}f.Kz=function(a,b,c){var d=d8(this,b);b=rh("table",b);var e=rh("tr",b),e=vd("td",null,e).length;b=vd("td",null,b);d=g8(d,b,e,c);-1!=d&&(f8(this,a,b[d]),c.preventDefault())};f.Lz=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=d8(this,b);b=gb(vd("li",null,b),Cw);d=g8(d,b,1,c);f8(this,a,b[d]);c.preventDefault()}};
function g8(a,b,c,d){var e=b.length;a=eb(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 h8(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=ex(a,"menu-mask"),b.iframeMask=c);return c}
function c8(a,b,c,d){var e=ee(b,ex(a,"group")),g=!!lh(b,"button-menu-ignore-group"),e=e&&!g?e:b,g=5,h=4,k=Rg(b);if(eh(b,ex(a,"reverse"))){g=4;h=5;k=k.top+"px";try{c.style.maxHeight=k}catch(l){}}eh(b,"flip")&&(eh(b,ex(a,"reverse"))?(g=6,h=7):(g=7,h=6));var p;lh(b,"button-has-sibling-menu")?p=Gg(e):lh(b,"button-menu-root-container")&&(p=i8(b));Vc&&!hd("8")&&(p=null);var t;p&&(t=Rg(p),t=new lg(-t.top,t.left,t.top,-t.left));p=new Mc(0,1);eh(b,ex(a,"center-menu"))&&(p.x-=Math.round((Pg(c).width-Pg(b).width)/
2));d&&(p.y+=Ad(document).y);if(a=h8(a,b))b=Pg(c),a.style.width=b.width+"px",a.style.height=b.height+"px",w5(e,g,a,h,p,t),d&&(d=td(a))&&d.style&&("position"in Fw?a=Fw.position:(a=vg("position",document.body.style),Fw.position=a),a&&(d.style[a]="fixed"));w5(e,g,c,h,p,t)}function i8(a){if(lh(a,"button-menu-root-container")){var b=lh(a,"button-menu-root-container");return ee(a,b)}return document.body}
f.uu=function(a){if(a){var b=a8(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;lh(a,"button-has-sibling-menu")?c=a.parentNode:c=i8(a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=h8(this,a);d&&c.appendChild(d);(c=!!lh(a,"button-menu-fixed"))&&(this.o[oh(a).toString()]=b);c8(this,a,b,c);Hi("yt-uix-button-menu-before-show",a,b);Dw(b);this.k(a,"button-menu-action",
!0);N(a,ex(this,"active"));b=x(this.mq,this,a,!1);c=x(this.mq,this,a,!0);d=x(this.JD,this,a,void 0);this.xf&&a8(this,this.xf)==a8(this,a)||this.xf&&e8(this,this.xf);Gi("yt-uix-button-menu-show",a);Dh(this.j);this.j=[P(document,"click",c),P(document,"contextmenu",b),P(window,"resize",d)];this.xf=a}}};
function e8(a,b){if(b){var c=a8(a,b);if(c){a.xf=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");Ew(c);a.k(b,"button-menu-action",!1);var d=h8(a,b),e=oh(c).toString();delete a.o[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=ee(b,ex(a,"group")),g=[ex(a,"active")];
e&&g.push(ex(a,"group-active"));hh(b,g);Gi("yt-uix-button-menu-hide",b);Dh(a.j);a.j.length=0}}f.JD=function(a,b){var c=a8(this,a);if(c){b&&(c.innerHTML=b);var d=!!lh(a,"button-menu-fixed");c8(this,a,c,d)}};f.getContent=function(a){return wd(ex(this,"content"),a)};
f.mq=function(a,b,c){c=c||window.event;c=c.target||c.srcElement;3==c.nodeType&&(c=c.parentNode);var d=ee(c,ex(this));if(d){var d=a8(this,d),e=a8(this,a);if(d==e)return}var d=ee(c,ex(this,"menu")),e=d==a8(this,a),g=eh(c,ex(this,"menu-item")),h=eh(c,ex(this,"menu-close"));if(!d||e&&(g||h))if(e8(this,a),d&&b&&lh(a,"button-menu-indicate-selected")){if(a=wd(ex(this,"content"),a))nd&&"innerText"in c?b=c.innerText.replace(/(\r\n|\r|\n)/g,"\n"):(b=[],be(c,b,!0),b=b.join("")),b=b.replace(/ \xAD /g," ").replace(/\xAD/g,
""),b=b.replace(/\u200B/g,""),nd||(b=b.replace(/ +/g," "))," "!=b&&(b=b.replace(/^\s*/,"")),Ud(a,b);j8(this,d,c)}};function j8(a,b,c){var d=ex(a,"menu-item-selected");a=ud(d,b);C(a,function(a){gh(a,d)});N(c.parentNode,d)}function a8(a,b){if(!b.widgetMenu){var c=lh(b,"button-menu-id"),c=c&&td(c),d=ex(a,"menu");c?fh(c,[d,ex(a,"menu-external")]):c=wd(d,b);b.widgetMenu=c}return b.widgetMenu}
function $7(a,b){if(lh(b,"button-toggle")){var c=ee(b,ex(a,"group")),d=ex(a,"toggled"),e=eh(b,d);if(c&&lh(c,"button-toggle-group")){var g=lh(c,"button-toggle-group"),c=ud(ex(a),c);C(c,function(a){a!=b||"optional"==g&&e?(gh(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"),ih(b,d)}}
f.click=function(a){if(a8(this,a)){var b=a8(this,a),c=ee(b.activeButtonNode||b.parentNode,ex(this));c&&c!=a?(e8(this,c),L(x(this.uu,this,a),1)):Cw(b)?e8(this,a):this.uu(a);a.focus()}this.k(a,"button-action")};jx(Z7);jx(n6);r("yt.tracking.share")||q("yt.tracking.share",zE,void 0);r("yt.net.ping")||q("yt.net.ping.send",bg,void 0);r("yt.window.popup")||(q("yt.window.popup",nF,void 0),q("yt.window.open",mF,void 0));q("yt.player.Application.create",C7.create,void 0);var k8=r("ytcsi.tick"),l8=r("ytcsi.info");k8&&(k8("pe"),window.performance&&window.performance.now&&l8("h5jse",window.performance.now()));})();
