(function(){var g,aa=aa||{},n=this;function p(a){a=a.split(".");for(var b=n,c;c=a.shift();)if(null!=b[c])b=b[c];else return null;return b}function ba(){}function ca(a){a.getInstance=function(){return a.Kc?a.Kc:a.Kc=new a}}
function da(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 r(a){return void 0!==a}function s(a){return"array"==da(a)}function ea(a){var b=da(a);return"array"==b||"object"==b&&"number"==typeof a.length}function t(a){return"string"==typeof a}function fa(a){return"number"==typeof a}function ga(a){return"function"==da(a)}function ha(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}function ia(a){return a[ja]||(a[ja]=++ka)}
var ja="closure_uid_"+(1E9*Math.random()>>>0),ka=0;function la(a,b,c){return a.call.apply(a.bind,arguments)}function ma(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 v(a,b,c){v=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?la:ma;return v.apply(null,arguments)}function na(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)}}var w=Date.now||function(){return+new Date};
function x(a,b){var c=a.split("."),d=n;c[0]in d||!d.execScript||d.execScript("var "+c[0]);for(var e;c.length&&(e=c.shift());)c.length||void 0===b?d[e]?d=d[e]:d=d[e]={}:d[e]=b}function z(a,b){function c(){}c.prototype=b.prototype;a.C=b.prototype;a.prototype=new c;a.Yd=function(a,c,f){return b.prototype[c].apply(a,Array.prototype.slice.call(arguments,2))}}
Function.prototype.bind=Function.prototype.bind||function(a,b){if(1<arguments.length){var c=Array.prototype.slice.call(arguments,1);c.unshift(this,a);return v.apply(null,c)}return v(this,a)};var oa;function pa(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")}function qa(a){return decodeURIComponent(a.replace(/\+/g," "))}function ra(a){var b={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'},c;c=document.createElement("div");return a.replace(sa,function(a,e){var f=b[a];if(f)return f;if("#"==e.charAt(0)){var h=Number("0"+e.substr(1));isNaN(h)||(f=String.fromCharCode(h))}f||(c.innerHTML=a+" ",f=c.firstChild.nodeValue.slice(0,-1));return b[a]=f})}
function ta(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 sa=/&([^;\s<&]+);?/g;function ua(a){a=r(void 0)?a.toFixed(void 0):String(a);var b=a.indexOf(".");-1==b&&(b=a.length);b=Math.max(0,2-b);return Array(b+1).join("0")+a}
function va(a,b){for(var c=0,d=pa(String(a)).split("."),e=pa(String(b)).split("."),f=Math.max(d.length,e.length),h=0;0==c&&h<f;h++){var k=d[h]||"",l=e[h]||"",m=RegExp("(\\d*)(\\D*)","g"),q=RegExp("(\\d*)(\\D*)","g");do{var y=m.exec(k)||["","",""],u=q.exec(l)||["","",""];if(0==y[0].length&&0==u[0].length)break;c=wa(0==y[1].length?0:parseInt(y[1],10),0==u[1].length?0:parseInt(u[1],10))||wa(0==y[2].length,0==u[2].length)||wa(y[2],u[2])}while(0==c)}return c}function wa(a,b){return a<b?-1:a>b?1:0}
function xa(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c),b%=4294967296;return b};function ya(){};var A=Array.prototype,za=A.indexOf?function(a,b,c){return A.indexOf.call(a,b,c)}:function(a,b,c){c=null==c?0:0>c?Math.max(0,a.length+c):c;if(t(a))return t(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},B=A.forEach?function(a,b,c){A.forEach.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)f in e&&b.call(c,e[f],f,a)},Aa=A.filter?function(a,b,c){return A.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,h=t(a)?
a.split(""):a,k=0;k<d;k++)if(k in h){var l=h[k];b.call(c,l,k,a)&&(e[f++]=l)}return e},C=A.map?function(a,b,c){return A.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=t(a)?a.split(""):a,h=0;h<d;h++)h in f&&(e[h]=b.call(c,f[h],h,a));return e},Ba=A.some?function(a,b,c){return A.some.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return!0;return!1},Ca=A.every?function(a,b,c){return A.every.call(a,b,c)}:function(a,b,c){for(var d=
a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&!b.call(c,e[f],f,a))return!1;return!0};function Da(a,b){var c=Fa(a,b,void 0);return 0>c?null:t(a)?a.charAt(c):a[c]}function Fa(a,b,c){for(var d=a.length,e=t(a)?a.split(""):a,f=0;f<d;f++)if(f in e&&b.call(c,e[f],f,a))return f;return-1}function D(a,b){return 0<=za(a,b)}function Ga(a){return 0==a.length}function Ha(){var a=Ia;if(!s(a))for(var b=a.length-1;0<=b;b--)delete a[b];a.length=0}function Ja(a,b){D(a,b)||a.push(b)}
function Ka(a,b){var c=za(a,b),d;(d=0<=c)&&A.splice.call(a,c,1);return d}function La(a,b){var c=Fa(a,b,void 0);0<=c&&A.splice.call(a,c,1)}function Ma(a){return A.concat.apply(A,arguments)}function Na(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 Oa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c],e;if(s(d)||(e=ea(d))&&Object.prototype.hasOwnProperty.call(d,"callee"))a.push.apply(a,d);else if(e)for(var f=a.length,h=d.length,k=0;k<h;k++)a[f+k]=d[k];else a.push(d)}}function Pa(a,b,c,d){return A.splice.apply(a,Qa(arguments,1))}function Qa(a,b,c){return 2>=arguments.length?A.slice.call(a,b):A.slice.call(a,b,c)}function Ra(a,b){a.sort(b||Sa)}
function Ta(a,b,c){if(!ea(a)||!ea(b)||a.length!=b.length)return!1;var d=a.length;c=c||Ua;for(var e=0;e<d;e++)if(!c(a[e],b[e]))return!1;return!0}function Sa(a,b){return a>b?1:a<b?-1:0}function Ua(a,b){return a===b};function Va(a,b,c){for(var d in a)b.call(c,a[d],d,a)}function Wa(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}function Xa(a){var b=[],c=0,d;for(d in a)b[c++]=d;return b}function Ya(a){var b=Za,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}function $a(a){for(var b in a)return!1;return!0}function ab(a){var b={},c;for(c in a)b[c]=a[c];return b}
function bb(a){var b=da(a);if("object"==b||"array"==b){if(a.clone)return a.clone();var b="array"==b?[]:{},c;for(c in a)b[c]=bb(a[c]);return b}return a}var cb="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function db(a,b){for(var c,d,e=1;e<arguments.length;e++){d=arguments[e];for(c in d)a[c]=d[c];for(var f=0;f<cb.length;f++)c=cb[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}};function eb(a,b,c){a.dataset?a.dataset[fb(b)]=c:a.setAttribute("data-"+b,c)}function E(a,b){return a.dataset?a.dataset[fb(b)]:a.getAttribute("data-"+b)}var gb={};function fb(a){return gb[a]||(gb[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))};function hb(){}hb.prototype.Bb=!1;hb.prototype.N=function(){return this.Bb};hb.prototype.dispose=function(){this.Bb||(this.Bb=!0,this.G())};function ib(a,b){a.q||(a.q=[]);a.q.push(v(b,void 0))}hb.prototype.G=function(){if(this.q)for(;this.q.length;)this.q.shift()()};function jb(a){a&&"function"==typeof a.dispose&&a.dispose()};function F(){this.b=[];this.P={}}z(F,hb);g=F.prototype;g.lc=1;g.qb=0;g.J=function(a,b,c){var d=this.P[a];d||(d=this.P[a]=[]);var e=this.lc;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.lc=e+3;d.push(e);return e};g.wa=function(a,b,c){if(a=this.P[a]){var d=this.b;if(a=Da(a,function(a){return d[a+1]==b&&d[a+2]==c}))return this.ia(a)}return!1};
g.ia=function(a){if(0!=this.qb)return this.g||(this.g=[]),this.g.push(a),!1;var b=this.b[a];if(b){var c=this.P[b];c&&Ka(c,a);delete this.b[a];delete this.b[a+1];delete this.b[a+2]}return!!b};g.t=function(a,b){var c=this.P[a];if(c){this.qb++;for(var d=Qa(arguments,1),e=0,f=c.length;e<f;e++){var h=c[e];this.b[h+1].apply(this.b[h+2],d)}this.qb--;if(this.g&&0==this.qb)for(;c=this.g.pop();)this.ia(c);return 0!=e}return!1};
g.clear=function(a){if(a){var b=this.P[a];b&&(B(b,this.ia,this),delete this.P[a])}else this.b.length=0,this.P={}};g.va=function(a){if(a){var b=this.P[a];return b?b.length:0}a=0;for(b in this.P)a+=this.va(b);return a};g.G=function(){F.C.G.call(this);delete this.b;delete this.P;delete this.g};var kb=window.yt&&window.yt.config_||{};x("yt.config_",kb);var lb=window.yt&&window.yt.tokens_||{};x("yt.tokens_",lb);var mb=window.yt&&window.yt.msgs_||{};x("yt.msgs_",mb);function nb(a){ob(kb,arguments)}function G(a,b){return a in kb?kb[a]:b}function pb(a){ob(lb,arguments)}function qb(){return"subscription_ajax"in lb?lb.subscription_ajax:void 0}
function H(a,b){if(ga(a)&&p("ytsched.enableSetTimeout")){var c=p("yt.scheduler.instance.addJob");if(c)return c(a,0,b);x("ytsched.enableSetTimeout",!1)}ga(a)&&(a=rb(a));return window.setTimeout(a,b)}function sb(a){ga(a)&&(a=rb(a));window.setInterval(a,1E4)}function tb(a){p("ytsched.enableSetTimeout")?p("yt.scheduler.instance.cancelJob")(a):window.clearTimeout(a)}function rb(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){throw ub(b),b;}}:a}
function ub(a,b){if(window&&window.yterr){var c=p("yt.www.errors.log");c?c(a,b):(c=G("ERRORS")||[],c.push(a),nb("ERRORS",c))}}function vb(a,b){var c={},d=a in mb?mb[a]:b;if(d)for(var e in c)d=d.replace(RegExp("\\$"+e,"gi"),function(){return c[e]});return d}function ob(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 wb="Microsoft Internet Explorer"==navigator.appName;function xb(){return p("yt.scheduler.instance")&&!p("ytsched.enableSetTimeout")}function yb(a){var b=void 0;void 0===b&&(b=NaN);var c=p("yt.scheduler.instance.addJob");c?(isNaN(b)&&(b=0),c(a,0,b)):isNaN(b)?a():H(a,b||0)}p("yt.scheduler.instance.cancelJob");var zb=p("yt.pubsub.instance_")||new F;F.prototype.subscribe=F.prototype.J;F.prototype.unsubscribeByKey=F.prototype.ia;F.prototype.publish=F.prototype.t;F.prototype.clear=F.prototype.clear;x("yt.pubsub.instance_",zb);var Ab=p("yt.pubsub.subscribedKeys_")||{};x("yt.pubsub.subscribedKeys_",Ab);var Bb=p("yt.pubsub.topicToKeys_")||{};x("yt.pubsub.topicToKeys_",Bb);var Cb=p("yt.pubsub.isSynchronous_")||{};x("yt.pubsub.isSynchronous_",Cb);var Db=p("yt.pubsub.skipSubId_")||null;
x("yt.pubsub.skipSubId_",Db);function I(a,b,c){var d=Eb();if(d){var e=d.subscribe(a,function(){if(!Db||Db!=e){var d=arguments,h=function(){Ab[e]&&b.apply(c||window,d)};try{Cb[a]?h():xb()?yb(h):H(h,0)}catch(k){ub(k)}}},c);Ab[e]=!0;Bb[a]||(Bb[a]=[]);Bb[a].push(e);return e}return 0}function Fb(a){var b=Eb();b&&("number"==typeof a?a=[a]:"string"==typeof a&&(a=[parseInt(a,10)]),B(a,function(a){b.unsubscribeByKey(a);delete Ab[a]}))}function J(a,b){var c=Eb();return c?c.publish.apply(c,arguments):!1}
function Gb(a){Bb[a]&&(a=Bb[a],B(a,function(a){Ab[a]&&delete Ab[a]}),a.length=0)}function Hb(a){var b=Eb();if(b)if(b.clear(a),a)Gb(a);else for(var c in Bb)Gb(c)}function Eb(){return p("yt.pubsub.instance_")};function Ib(a,b){Jb(a,b)}function Jb(a,b){var c=Kb(a),d=document.getElementById(c),e=d&&E(d,"loaded"),f=d&&!e;if(e)b&&b();else{if(b){var e=I(c,b),h=""+ia(b);Lb[h]=e}f||(d=Mb(a,c,function(){if(!E(d,"loaded")){eb(d,"loaded","true");J(c);var a=na(Hb,c);xb()?yb(a):H(a,0)}}))}}
function Mb(a,b,c){var d=document.createElement("script");d.id=b;d.onload=function(){c&&setTimeout(c,0)};d.onreadystatechange=function(){switch(d.readyState){case "loaded":case "complete":d.onload()}};d.src=a;a=document.getElementsByTagName("head")[0]||document.body;a.insertBefore(d,a.firstChild);return d}function Kb(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+xa(a)}var Lb={};var Nb=null;function Ob(){var a=G("BG_I",null),b=G("BG_IU",null),c=G("BG_P");b?Ib(b,function(){Nb=new botguard.bg(c)}):a&&(eval(a),Nb=new botguard.bg(c))};function Pb(a){if(a.classList)return a.classList;a=a.className;return t(a)&&a.match(/\S+/g)||[]}function Qb(a,b){return a.classList?a.classList.contains(b):D(Pb(a),b)}function Rb(a,b){a.classList?a.classList.add(b):Qb(a,b)||(a.className+=0<a.className.length?" "+b:b)}function Sb(a,b){a.classList?a.classList.remove(b):Qb(a,b)&&(a.className=Aa(Pb(a),function(a){return a!=b}).join(" "))};function K(a,b){this.x=r(a)?a:0;this.y=r(b)?b:0}K.prototype.clone=function(){return new K(this.x,this.y)};K.prototype.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};K.prototype.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};function Tb(a,b){this.width=a;this.height=b}Tb.prototype.clone=function(){return new Tb(this.width,this.height)};Tb.prototype.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};Tb.prototype.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};var Ub,Vb,Wb,Xb,Yb,Zb;function $b(){return n.navigator?n.navigator.userAgent:null}function ac(){return n.navigator}Xb=Wb=Vb=Ub=!1;var bc;if(bc=$b()){var cc=ac();Ub=0==bc.lastIndexOf("Opera",0);Vb=!Ub&&(-1!=bc.indexOf("MSIE")||-1!=bc.indexOf("Trident"));Wb=!Ub&&-1!=bc.indexOf("WebKit");Xb=!Ub&&!Wb&&!Vb&&"Gecko"==cc.product}var dc=Ub,L=Vb,ec=Xb,fc=Wb,gc=ac(),hc=gc&&gc.platform||"";Yb=-1!=hc.indexOf("Mac");Zb=-1!=hc.indexOf("Win");var ic=!!ac()&&-1!=(ac().appVersion||"").indexOf("X11");
function jc(){var a=n.document;return a?a.documentMode:void 0}var kc;t:{var lc="",mc;if(dc&&n.opera)var nc=n.opera.version,lc="function"==typeof nc?nc():nc;else if(ec?mc=/rv\:([^\);]+)(\)|;)/:L?mc=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:fc&&(mc=/WebKit\/(\S+)/),mc)var oc=mc.exec($b()),lc=oc?oc[1]:"";if(L){var pc=jc();if(pc>parseFloat(lc)){kc=String(pc);break t}}kc=lc}var qc=kc,rc={};function M(a){return rc[a]||(rc[a]=0<=va(qc,a))}function sc(a){return L&&tc>=a}
var uc=n.document,tc=uc&&L?jc()||("CSS1Compat"==uc.compatMode?parseInt(qc,10):5):void 0;!ec&&!L||L&&sc(9)||ec&&M("1.9.1");L&&M("9");function vc(a){a=a.className;return t(a)&&a.match(/\S+/g)||[]}function wc(a,b){for(var c=vc(a),d=Qa(arguments,1),e=c,f=0;f<d.length;f++)D(e,d[f])||e.push(d[f]);c=c.join(" ");a.className=c}function xc(a,b){var c=vc(a),d=Qa(arguments,1),c=yc(c,d).join(" ");a.className=c}function yc(a,b){return Aa(a,function(a){return!D(b,a)})}function zc(a,b,c){c?wc(a,b):xc(a,b)};function Ac(a){return a?new Bc(Cc(a)):oa||(oa=new Bc)}function Dc(a){return N(a)}function N(a){var b=document;return t(a)?b.getElementById(a):a}function Ec(a){var b=document;return b.querySelectorAll&&b.querySelector?b.querySelectorAll("."+a):Fc(a,void 0)}
function Fc(a,b){var c,d,e,f;c=document;c=b||c;if(c.querySelectorAll&&c.querySelector&&a)return c.querySelectorAll(""+(a?"."+a:""));if(a&&c.getElementsByClassName){var h=c.getElementsByClassName(a);return h}h=c.getElementsByTagName("*");if(a){f={};for(d=e=0;c=h[d];d++){var k=c.className;"function"==typeof k.split&&D(k.split(/\s+/),a)&&(f[e++]=c)}f.length=e;return f}return h}
function Gc(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}function Hc(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a}function Cc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}function Ic(a){var b=Jc.Pd;return b?Kc(a,function(a){var d;(d=!b)||(d=D(vc(a),b));return d},!0):null}
function Kc(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 Bc(a){this.b=a||n.document||document}Bc.prototype.createElement=function(a){return this.b.createElement(a)};function Lc(a){return"CSS1Compat"==a.b.compatMode}
function Mc(a){var b=a.b;a=fc||"CSS1Compat"!=b.compatMode?b.body||b.documentElement:b.documentElement;b=b.parentWindow||b.defaultView;return L&&M("10")&&b.pageYOffset!=a.scrollTop?new K(a.scrollLeft,a.scrollTop):new K(b.pageXOffset||a.scrollLeft,b.pageYOffset||a.scrollTop)}Bc.prototype.appendChild=function(a,b){a.appendChild(b)};
Bc.prototype.contains=function(a,b){if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||Boolean(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a};var Nc=p("yt.dom.getNextId_");if(!Nc){Nc=function(){return++Oc};x("yt.dom.getNextId_",Nc);var Oc=0}function Pc(a,b){if(a in b)return b[a];var c=a.charAt(0).toUpperCase()+a.substr(1);if("moz"+c in b)return b["moz"+c];if("ms"+c in b)return b["ms"+c];if("o"+c in b)return b["o"+c];if("webkit"+c in b)return b["webkit"+c]}function Qc(){var a=document,b;Ba(["fullscreenElement","fullScreenElement"],function(c){b=Pc(c,a);return!!b});return b};function Rc(a){if(a=a||window.event){for(var b in a)b in Sc||(this[b]=a[b]);this.Db=a;(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName&&b}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?
this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey;"MozMousePixelScroll"==this.type?(this.wheelDeltaX=a.axis==a.HORIZONTAL_AXIS?a.detail:0,this.wheelDeltaY=a.axis==a.HORIZONTAL_AXIS?0:a.detail):window.opera?(this.wheelDeltaX=0,this.wheelDeltaY=a.detail):0==a.wheelDelta%120?"WebkitTransform"in document.documentElement.style?window.chrome&&0==navigator.platform.indexOf("Mac")?(this.wheelDeltaX=a.wheelDeltaX/-30,this.wheelDeltaY=a.wheelDeltaY/-30):(this.wheelDeltaX=
a.wheelDeltaX/-1.2,this.wheelDeltaY=a.wheelDeltaY/-1.2):(this.wheelDeltaX=0,this.wheelDeltaY=a.wheelDelta/-1.6):(this.wheelDeltaX=a.wheelDeltaX/-3,this.wheelDeltaY=a.wheelDeltaY/-3)}}g=Rc.prototype;g.Db=null;g.type="";g.target=null;g.relatedTarget=null;g.currentTarget=null;g.data=null;g.source=null;g.state=null;g.keyCode=0;g.charCode=0;g.altKey=!1;g.ctrlKey=!1;g.shiftKey=!1;g.clientX=0;g.clientY=0;g.wheelDeltaX=0;g.wheelDeltaY=0;
g.preventDefault=function(){this.Db.returnValue=!1;this.Db.preventDefault&&this.Db.preventDefault()};var Sc={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,scale:1,rotation:1};var Za=p("yt.events.listeners_")||{};x("yt.events.listeners_",Za);var Tc=p("yt.events.counter_")||{count:0};x("yt.events.counter_",Tc);function Uc(a,b,c,d){return Ya(function(e){return e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
function O(a,b,c,d){if(!a||!a.addEventListener&&!a.attachEvent)return"";d=!!d;var e=Uc(a,b,c,d);if(e)return e;var e=++Tc.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document),h;h=f?function(d){d=new Rc(d);if(!Kc(d.relatedTarget,function(b){return b==a},!0))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Rc(b);b.currentTarget=a;return c.call(a,b)};h=rb(h);Za[e]=[a,b,c,h,d];a.addEventListener?"mouseenter"==b&&f?a.addEventListener("mouseover",
h,d):"mouseleave"==b&&f?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 Vc(a,b){var c=Uc(window,a,b,!1);c&&Wc(c)}
function Wc(a){a&&("string"==typeof a&&(a=[a]),B(a,function(a){if(a in Za){var c=Za[a],d=c[0],e=c[1],f=c[3],c=c[4];d.removeEventListener?d.removeEventListener(e,f,c):d.detachEvent&&d.detachEvent("on"+e,f);delete Za[a]}}))};function Xc(a,b,c,d,e){var f="";a&&(f+=a+":");b&&(f=f+"//"+b);c&&(f+=c);d&&(f+="?"+d);e&&(f+="#"+e);return f}var Yc=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Zc(a){if($c){$c=!1;var b=n.location;if(b){var c=b.href;if(c&&(c=ad(c))&&c!=b.hostname)throw $c=!0,Error();}}return a.match(Yc)}var $c=fc;function ad(a){return(a=Zc(a)[3]||null)&&decodeURIComponent(a)}
function bd(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 cd(a,b,c){if(s(b))for(var d=0;d<b.length;d++)cd(a,String(b[d]),c);else null!=b&&c.push("&",a,""===b?"":"=",encodeURIComponent(String(b)))}function dd(a,b,c){Math.max(b.length-(c||0),0);for(c=c||0;c<b.length;c+=2)cd(b[c],b[c+1],a);return a}function ed(a,b){for(var c in b)cd(c,b[c],a);return a}
function fd(a,b){return bd(2==arguments.length?dd([a],arguments[1],0):dd([a],arguments,1))};function gd(a){this.b=a}var hd=/\s*;\s*/;g=gd.prototype;g.set=function(a,b,c,d,e,f){if(/[;=\s]/.test(a))throw Error('Invalid cookie name "'+a+'"');if(/[;\r\n]/.test(b))throw Error('Invalid cookie value "'+b+'"');r(c)||(c=-1);e=e?";domain="+e:"";d=d?";path="+d:"";f=f?";secure":"";c=0>c?"":0==c?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(w()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f};
g.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(hd),e=0,f;f=d[e];e++){if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};g.remove=function(a,b,c){var d=r(this.get(a));this.set(a,"",0,b,c);return d};g.ma=function(){return id(this).keys};g.ea=function(){return id(this).nd};g.va=function(){return this.b.cookie?(this.b.cookie||"").split(hd).length:0};g.clear=function(){for(var a=id(this).keys,b=a.length-1;0<=b;b--)this.remove(a[b])};
function id(a){a=(a.b.cookie||"").split(hd);for(var b=[],c=[],d,e,f=0;e=a[f];f++)d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));return{keys:b,nd:c}}var jd=new gd(document);jd.g=3950;function kd(a,b,c){jd.set(""+a,b,c,"/","youtube.com")};function ld(a){"?"==a.charAt(0)&&(a=a.substr(1));a=a.split("&");for(var b={},c=0,d=a.length;c<d;c++){var e=a[c].split("=");if(1==e.length&&e[0]||2==e.length){var f=qa(e[0]||""),e=qa(e[1]||"");f in b?s(b[f])?Oa(b[f],e):b[f]=[b[f],e]:b[f]=e}}return b}function md(a){a=ed([],a);a[0]="";return a.join("")}function nd(a,b){return bd(ed([a],b))}var od=ad;
function pd(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=ld(d[1]||""),e;for(e in b)d[e]=b[e];return nd(a,d)+c}function qd(a){a=od(a);a=null===a?null:a.split(".").reverse();return(null===a?!1:"com"==a[0]&&a[1].match(/^youtube(?:-nocookie)?$/)?!0:!1)||(null===a?!1:"google"==a[1]?!0:"google"==a[2]?"au"==a[0]&&"com"==a[1]?!0:"uk"==a[0]&&"co"==a[1]?!0:!1:!1)};function rd(a,b){var c=ad(a);if(c==ad(window.location.href)||!c&&0==a.lastIndexOf("/",0)){var c=Zc(a),c=Xc(null,null,c[5],c[6],c[7]),d=c.indexOf("#");if(c=0>d?c:c.substr(0,d))c="s_tempdata-"+xa(c),d=b?md(b):"",kd(c,d,5)}};function sd(a,b,c){var d=G("EVENT_ID");d&&(b||(b={}),b.ei||(b.ei=d));b&&rd(a,b);if(c)return!1;(window.ytspf||{}).enabled?spf.navigate(a):window.location=nd(a,{})+"";return!0};function td(a,b,c){a.timeOfStartCall=(new Date).getTime();if(b&&JSON&&JSON.stringify){var d=JSON.stringify(b);200>=d.length&&(a.psdJson=d)}d=c||n;d.GOOGLE_FEEDBACK_START_ARGUMENTS=arguments;var e=a.serverUri||"//www.google.com/tools/feedback",f=d.GOOGLE_FEEDBACK_START;if(f)f.apply(d,arguments);else{var e=e+"/load.js?",h;for(h in a)f=a[h],null!=f&&!ha(f)&&(e+=encodeURIComponent(h)+"="+encodeURIComponent(f)+"&");h=d.document;d=h.createElement("script");d.src=e;h.body.appendChild(d)}};var ud=!1;function vd(a){if(a=a.match(/[\d]+/g))a.length=3,a.join(".")}
if(navigator.plugins&&navigator.plugins.length){var wd=navigator.plugins["Shockwave Flash"];wd&&(ud=!0,wd.description&&vd(wd.description));navigator.plugins["Shockwave Flash 2.0"]&&(ud=!0)}else if(navigator.mimeTypes&&navigator.mimeTypes.length){var xd=navigator.mimeTypes["application/x-shockwave-flash"];(ud=xd&&xd.enabledPlugin)&&vd(xd.enabledPlugin.description)}else try{var yd=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7"),ud=!0;vd(yd.GetVariable("$version"))}catch(zd){try{yd=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),
ud=!0}catch(Ad){try{yd=new ActiveXObject("ShockwaveFlash.ShockwaveFlash"),ud=!0,vd(yd.GetVariable("$version"))}catch(Bd){}}};var Cd,Dd,Ed,Fd,Gd,Hd,Id;Id=Hd=Gd=Fd=Ed=Dd=Cd=!1;var Jd=$b();Jd&&(-1!=Jd.indexOf("Firefox")?Cd=!0:-1!=Jd.indexOf("Camino")?Dd=!0:-1!=Jd.indexOf("iPhone")||-1!=Jd.indexOf("iPod")?Ed=!0:-1!=Jd.indexOf("iPad")?Fd=!0:-1!=Jd.indexOf("Chrome")?Hd=!0:-1!=Jd.indexOf("Android")?Gd=!0:-1!=Jd.indexOf("Safari")&&(Id=!0));var Kd=Cd,Ld=Dd,Md=Ed,Nd=Fd,Od=Gd,Pd=Hd,Qd=Id;function Rd(a){return(a=a.exec($b()))?a[1]:""}(function(){if(Kd)return Rd(/Firefox\/([0-9.]+)/);if(L||dc)return qc;if(Pd)return Rd(/Chrome\/([0-9.]+)/);if(Qd)return Rd(/Version\/([0-9.]+)/);if(Md||Nd){var a;if(a=/Version\/(\S+).*Mobile\/(\S+)/.exec($b()))return a[1]+"."+a[2]}else{if(Od)return(a=Rd(/Android\s+([0-9.]+)/))?a:Rd(/Version\/([0-9.]+)/);if(Ld)return Rd(/Camino\/([0-9.]+)/)}return""})();function Sd(){this.i=this.g=this.b=0;this.j="";var a=p("window.navigator.plugins"),b=p("window.navigator.mimeTypes"),a=a&&a["Shockwave Flash"],b=b&&b["application/x-shockwave-flash"],b=a&&b&&b.enabledPlugin&&a.description||"";if(a=b){var c=a.indexOf("Shockwave Flash");0<=c&&(a=a.substr(c+15));for(var c=a.split(" "),d="",a="",e=0,f=c.length;e<f;e++)if(d)if(a)break;else a=c[e];else d=c[e];d=d.split(".");c=parseInt(d[0],10)||0;d=parseInt(d[1],10)||0;e=0;if("r"==a.charAt(0)||"d"==a.charAt(0))e=parseInt(a.substr(1),
10)||0;a=[c,d,e]}else a=[0,0,0];this.j=b;b=a;this.b=b[0];this.g=b[1];this.i=b[2];if(0>=this.b){var h,k,l,m;if(wb)try{h=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(q){h=null}else l=document.body,m=document.createElement("object"),m.setAttribute("type","application/x-shockwave-flash"),h=l.appendChild(m);if(h&&"GetVariable"in h)try{k=h.GetVariable("$version")}catch(y){k=""}l&&m&&l.removeChild(m);(h=k||"")?(h=h.split(" ")[1].split(","),h=[parseInt(h[0],10)||0,parseInt(h[1],10)||0,parseInt(h[2],
10)||0]):h=[0,0,0];this.b=h[0];this.g=h[1];this.i=h[2]}}ca(Sd);Sd.prototype.getVersion=function(){return[this.b,this.g,this.i]};function Td(a,b,c,d){b="string"==typeof b?b.split("."):[b,c,d];b[0]=parseInt(b[0],10)||0;b[1]=parseInt(b[1],10)||0;b[2]=parseInt(b[2],10)||0;return a.b>b[0]||a.b==b[0]&&a.g>b[1]||a.b==b[0]&&a.g==b[1]&&a.i>=b[2]}function Ud(a){return-1<a.j.indexOf("Gnash")&&-1==a.j.indexOf("AVM2")||9==a.b&&1==a.g||9==a.b&&0==a.g&&1==a.i?!1:9<=a.b}
function Vd(a){return Zb?!Td(a,11,2):Yb?!Td(a,11,3):!Ud(a)};function Wd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}Wd.prototype.clone=function(){return new Wd(this.top,this.right,this.bottom,this.left)};Wd.prototype.contains=function(a){return this&&a?a instanceof Wd?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};
Wd.prototype.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};Wd.prototype.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};function Xd(a,b){var c=Cc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}function Yd(a,b){return Xd(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
function Zd(a){var b;try{b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}L&&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 $d(a){if(L&&!sc(8))return a.offsetParent;var b=Cc(a),c=Yd(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(c=Yd(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 ae(a){var b,c=Cc(a),d=Yd(a,"position"),e=ec&&c.getBoxObjectFor&&!a.getBoundingClientRect&&"absolute"==d&&(b=c.getBoxObjectFor(a))&&(0>b.screenX||0>b.screenY),f=new K(0,0),h;b=c?Cc(c):document;h=!L||sc(9)||Lc(Ac(b))?b.documentElement:b.body;if(a==h)return f;if(a.getBoundingClientRect)b=Zd(a),a=Mc(Ac(c)),f.x=b.left+a.x,f.y=b.top+a.y;else if(c.getBoxObjectFor&&!e)b=c.getBoxObjectFor(a),a=c.getBoxObjectFor(h),f.x=b.screenX-a.screenX,f.y=b.screenY-a.screenY;else{b=a;do{f.x+=b.offsetLeft;f.y+=
b.offsetTop;b!=a&&(f.x+=b.clientLeft||0,f.y+=b.clientTop||0);if(fc&&"fixed"==Yd(b,"position")){f.x+=c.body.scrollLeft;f.y+=c.body.scrollTop;break}b=b.offsetParent}while(b&&b!=a);if(dc||fc&&"absolute"==d)f.y-=c.body.offsetTop;for(b=a;(b=$d(b))&&b!=c.body&&b!=h;)f.x-=b.scrollLeft,dc&&"TR"==b.tagName||(f.y-=b.scrollTop)}return f}function be(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
function ce(a){var b=de;if("none"!=Yd(a,"display"))return b(a);var c=a.style,d=c.display,e=c.visibility,f=c.position;c.visibility="hidden";c.position="absolute";c.display="inline";a=b(a);c.display=d;c.position=f;c.visibility=e;return a}function de(a){var b=a.offsetWidth,c=a.offsetHeight,d=fc&&!b&&!c;return r(b)&&!d||!a.getBoundingClientRect?new Tb(b,c):(a=Zd(a),new Tb(a.right-a.left,a.bottom-a.top))}
function ee(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 fe(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?ee(a,c):0}var ge={thin:2,medium:4,thick:6};
function he(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 ge?ge[c]:ee(a,c)}var ie=/matrix\([0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, [0-9\.\-]+, ([0-9\.\-]+)p?x?, ([0-9\.\-]+)p?x?\)/;function je(a,b){if((a=N(a))&&a.style){a.style.display=b?"":"none";var c=a;b?Sb(c,"hid"):Rb(c,"hid")}}function ke(a){B(arguments,function(a){je(a,!0)})}function le(a){B(arguments,function(a){je(a,!1)})};var me="StopIteration"in n?n.StopIteration:Error("StopIteration");function ne(){}ne.prototype.next=function(){throw me;};ne.prototype.ca=function(){return this};function oe(a){if(a instanceof ne)return a;if("function"==typeof a.ca)return a.ca(!1);if(ea(a)){var b=0,c=new ne;c.next=function(){for(;;){if(b>=a.length)throw me;if(b in a)return a[b++];b++}};return c}throw Error("Not implemented");}
function pe(a,b,c){if(ea(a))try{B(a,b,c)}catch(d){if(d!==me)throw d;}else{a=oe(a);try{for(;;)b.call(c,a.next(),void 0,a)}catch(e){if(e!==me)throw e;}}}function qe(a){if(ea(a))return Na(a);a=oe(a);var b=[];pe(a,function(a){b.push(a)});return b};function re(a,b){this.g={};this.b=[];this.j=this.i=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 re?(c=a.ma(),d=a.ea()):(c=Xa(a),d=Wa(a));for(var e=0;e<c.length;e++)this.set(c[e],d[e])}}g=re.prototype;g.va=function(){return this.i};g.ea=function(){se(this);for(var a=[],b=0;b<this.b.length;b++)a.push(this.g[this.b[b]]);return a};g.ma=function(){se(this);return this.b.concat()};
g.equals=function(a,b){if(this===a)return!0;if(this.i!=a.va())return!1;var c=b||te;se(this);for(var d,e=0;d=this.b[e];e++)if(!c(this.get(d),a.get(d)))return!1;return!0};function te(a,b){return a===b}g.clear=function(){this.g={};this.j=this.i=this.b.length=0};g.remove=function(a){return ue(this.g,a)?(delete this.g[a],this.i--,this.j++,this.b.length>2*this.i&&se(this),!0):!1};
function se(a){if(a.i!=a.b.length){for(var b=0,c=0;b<a.b.length;){var d=a.b[b];ue(a.g,d)&&(a.b[c++]=d);b++}a.b.length=c}if(a.i!=a.b.length){for(var e={},c=b=0;b<a.b.length;)d=a.b[b],ue(e,d)||(a.b[c++]=d,e[d]=1),b++;a.b.length=c}}g.get=function(a,b){return ue(this.g,a)?this.g[a]:b};g.set=function(a,b){ue(this.g,a)||(this.i++,this.b.push(a),this.j++);this.g[a]=b};g.clone=function(){return new re(this)};
g.ca=function(a){se(this);var b=0,c=this.b,d=this.g,e=this.j,f=this,h=new ne;h.next=function(){for(;;){if(e!=f.j)throw Error("The map has changed since the iterator was created");if(b>=c.length)throw me;var h=c[b++];return a?h:d[h]}};return h};function ue(a,b){return Object.prototype.hasOwnProperty.call(a,b)};function ve(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 we(a){return eval("("+a+")")}function xe(a){return ye(new ze(void 0),a)}function ze(a){this.b=a}
function ye(a,b){var c=[];Ae(a,b,c);return c.join("")}
function Ae(a,b,c){switch(typeof b){case "string":Be(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(s(b)){var d=b.length;c.push("[");for(var e="",f=0;f<d;f++)c.push(e),e=b[f],Ae(a,a.b?a.b.call(b,String(f),e):e,c),e=",";c.push("]");break}c.push("{");d="";for(f in b)Object.prototype.hasOwnProperty.call(b,f)&&(e=b[f],"function"!=typeof e&&(c.push(d),Be(f,c),c.push(":"),
Ae(a,a.b?a.b.call(b,f,e):e,c),d=","));c.push("}");break;case "function":break;default:throw Error("Unknown type: "+typeof b);}}var Ce={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\x0B":"\\u000b"},De=/\uffff/.test("\uffff")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g;
function Be(a,b){b.push('"',a.replace(De,function(a){if(a in Ce)return Ce[a];var b=a.charCodeAt(0),e="\\u";16>b?e+="000":256>b?e+="00":4096>b&&(e+="0");return Ce[a]=e+b.toString(16)}),'"')};var Ee=null;"undefined"!=typeof XMLHttpRequest?Ee=function(){return new XMLHttpRequest}:"undefined"!=typeof ActiveXObject&&(Ee=function(){return new ActiveXObject("Microsoft.XMLHTTP")});function Fe(a,b,c,d,e,f,h){function k(){4==(l&&"readyState"in l?l.readyState:0)&&b&&rb(b)(l)}var l=Ee&&Ee();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);f&&(l.responseType=f);h&&(l.withCredentials=!0);f="POST"==c;if(e=Ge(a,e))for(var m in e)l.setRequestHeader(m,e[m]),"content-type"==m.toLowerCase()&&(f=!1);f&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
function Ge(a,b){b=b||{};var c;if(c=G("PAGE_CL"))if(c=G("PAGE_BUILD_TIMESTAMP")){var d;d||(d=window.location.href);c=Zc(a)[1]||null;var e=od(a);c&&e?(c=d,d=Zc(a),c=Zc(c),d=d[3]==c[3]&&d[1]==c[1]&&d[4]==c[4]):d=e?od(d)==e&&(Number(Zc(d)[4]||null)||null)==(Number(Zc(a)[4]||null)||null):!0;c=d||He(a)}c&&(b["X-YouTube-Page-CL"]=G("PAGE_CL"),b["X-YouTube-Page-Timestamp"]=G("PAGE_BUILD_TIMESTAMP"));return b}
function He(a){var b=["X-YouTube-Page-CL","X-YouTube-Page-Timestamp"],c=G("CORS_HEADER_WHITELIST")||{};a=od(a);if(!a)return!0;var d=c[a];return d?Ca(b,function(a){return D(d,a)}):!1}
function Ie(a,b){var c=b.format||"JSON";b.Wd&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=b.wc;d&&(a=pd(a,d));var e=b.Xd||"";(d=b.ka)&&t(e)&&(e=ld(e),db(e,d),e=md(e));var f=!1,h,k=Fe(a,function(a){if(!f){f=!0;h&&tb(h);var d;t:switch(a&&"status"in a?a.status:-1){case 0:case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:d=!0;break t;default:d=!1}var e=null;if(d||400<=a.status&&500>a.status)e=Je(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||{},k=b.La||n;d?b.onSuccess&&b.onSuccess.call(k,a,e):b.onError&&b.onError.call(k,a,e);b.zb&&b.zb.call(k,a,e)}},b.method,e,b.headers,b.responseType,b.withCredentials);b.zd&&0<b.timeout&&(h=H(function(){f||(f=!0,k.abort(),tb(h),b.zd.call(b.La||n,k))},b.timeout))}
function Je(a,b){var c=null;switch(a){case "JSON":var d=b.responseText,e=b.getResponseHeader("Content-Type")||"";d&&0<=e.indexOf("json")&&(c=we(d));break;case "XML":if(d=(d=b.responseXML)?Ke(d):null)c={},B(d.getElementsByTagName("*"),function(a){c[a.tagName]=Le(a)})}return c}function Ke(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}function Le(a){var b="";B(a.childNodes,function(a){b+=a.nodeValue});return b};function Me(){var a;if(a=jd.get("PREF",void 0)){a=unescape(a).split("&");for(var b=0;b<a.length;b++){var c=a[b].split("="),d=c[0];(c=c[1])&&(Ne[d]=c.toString())}}}ca(Me);var Ne=p("yt.prefs.UserPrefs.prefs_")||{};x("yt.prefs.UserPrefs.prefs_",Ne);function Oe(a){if(/^f([1-9][0-9]*)$/.test(a))throw"ExpectedRegexMatch: "+a;}function Pe(a){if(!/^\w+$/.test(a))throw"ExpectedRegexMismatch: "+a;}function Qe(a){return void 0!==Ne[a]?Ne[a].toString():null}
Me.prototype.get=function(a,b){Pe(a);Oe(a);var c=Qe(a);return null!=c?c:b?b:""};Me.prototype.set=function(a,b){Pe(a);Oe(a);if(null==b)throw"ExpectedNotNull";Ne[a]=b.toString()};Me.prototype.remove=function(a){Pe(a);Oe(a);delete Ne[a]};Me.prototype.clear=function(){Ne={}};var Re={},Se=0,Te=p("yt.net.ping.workerUrl_")||null;x("yt.net.ping.workerUrl_",Te);function Ue(a){var b=new Image,c=""+Se++;Re[c]=b;b.onload=b.onerror=function(){delete Re[c]};b.src=a;b=eval("null")};var Ve={},We="ontouchstart"in document;function Xe(a,b,c){var d;switch(a){case "mouseover":case "mouseout":d=3;break;case "mouseenter":case "mouseleave":d=9}return Kc(c,function(a){return D(vc(a),b)},!0,d)}
function P(a){var b="mouseover"==a.type&&"mouseenter"in Ve||"mouseout"==a.type&&"mouseleave"in Ve,c=a.type in Ve||b;if("HTML"!=a.target.tagName&&c){if(b){var b="mouseover"==a.type?"mouseenter":"mouseleave",c=Ve[b],d;for(d in c.P){var e=Xe(b,d,a.target);e&&!Kc(a.relatedTarget,function(a){return a==e},!0)&&c.t(d,e,b,a)}}if(b=Ve[a.type])for(d in b.P)(e=Xe(a.type,d,a.target))&&b.t(d,e,a.type,a)}}O(document,"blur",P,!0);O(document,"change",P,!0);O(document,"click",P);O(document,"focus",P,!0);
O(document,"mouseover",P);O(document,"mouseout",P);O(document,"mousedown",P);O(document,"keydown",P);O(document,"keyup",P);O(document,"keypress",P);O(document,"cut",P);O(document,"paste",P);We&&(O(document,"touchstart",P),O(document,"touchend",P),O(document,"touchcancel",P));var Ye=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};x("yt.uix.widgets_",Ye);function Ze(){this.b={}}function $e(a,b,c){var d=Q(a,void 0),e=v(c,a);b in Ve||(Ve[b]=new F);Ve[b].J(d,e);a.b[c]=e}function af(a,b){eb(a,"tooltip-text",b)}Ze.prototype.removeData=function(a,b){a.dataset?delete a.dataset[fb(b)]:a.removeAttribute("data-"+b)};function Q(a,b){return"yt-uix"+(a.Vb?"-"+a.Vb:"")+(b?"-"+b:"")};function R(a,b){this.type=a;this.currentTarget=this.target=b;this.defaultPrevented=!1;this.ac=!0}R.prototype.dispose=function(){};R.prototype.preventDefault=function(){this.defaultPrevented=!0;this.ac=!1};function bf(a){bf[" "](a);return a}bf[" "]=ba;var cf=!L||sc(9),df=L&&!M("9");!fc||M("528");ec&&M("1.9b")||L&&M("8")||dc&&M("9.5")||fc&&M("528");ec&&!M("8")||L&&M("9");function ef(a,b){R.call(this,a?a.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.charCode=this.keyCode=this.clientY=this.clientX=0;this.shiftKey=this.altKey=this.ctrlKey=!1;this.b=this.state=null;a&&this.init(a,b)}z(ef,R);
ef.prototype.init=function(a,b){var c=this.type=a.type;this.target=a.target||a.srcElement;this.currentTarget=b;var d=a.relatedTarget;if(d){if(ec){var e;t:{try{bf(d.nodeName);e=!0;break t}catch(f){}e=!1}e||(d=null)}}else"mouseover"==c?d=a.fromElement:"mouseout"==c&&(d=a.toElement);this.relatedTarget=d;this.clientX=void 0!==a.clientX?a.clientX:a.pageX;this.clientY=void 0!==a.clientY?a.clientY:a.pageY;this.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.state=a.state;this.b=a;a.defaultPrevented&&this.preventDefault()};ef.prototype.preventDefault=function(){ef.C.preventDefault.call(this);var a=this.b;if(a.preventDefault)a.preventDefault();else if(a.returnValue=!1,df)try{if(a.ctrlKey||112<=a.keyCode&&123>=a.keyCode)a.keyCode=-1}catch(b){}};ef.prototype.g=function(){return this.b};var ff="closure_listenable_"+(1E6*Math.random()|0);function gf(a){try{return!(!a||!a[ff])}catch(b){return!1}}var hf=0;function jf(a,b,c,d,e){this.Ca=a;this.proxy=null;this.src=b;this.type=c;this.g=!!d;this.i=e;this.key=++hf;this.b=this.mb=!1}function kf(a){a.b=!0;a.Ca=null;a.proxy=null;a.src=null;a.i=null};function lf(a){this.src=a;this.b={};this.g=0}lf.prototype.add=function(a,b,c,d,e){var f=this.b[a];f||(f=this.b[a]=[],this.g++);var h=mf(f,b,d,e);-1<h?(a=f[h],c||(a.mb=!1)):(a=new jf(b,this.src,a,!!d,e),a.mb=c,f.push(a));return a};lf.prototype.remove=function(a,b,c,d){if(!(a in this.b))return!1;var e=this.b[a];b=mf(e,b,c,d);return-1<b?(kf(e[b]),A.splice.call(e,b,1),0==e.length&&(delete this.b[a],this.g--),!0):!1};
function nf(a,b){var c=b.type;if(!(c in a.b))return!1;var d=Ka(a.b[c],b);d&&(kf(b),0==a.b[c].length&&(delete a.b[c],a.g--));return d}lf.prototype.removeAll=function(a){var b=0,c;for(c in this.b)if(!a||c==a){for(var d=this.b[c],e=0;e<d.length;e++)++b,kf(d[e]);delete this.b[c];this.g--}return b};function of(a,b,c,d,e){a=a.b[b];b=-1;a&&(b=mf(a,c,d,e));return-1<b?a[b]:null}function mf(a,b,c,d){for(var e=0;e<a.length;++e){var f=a[e];if(!f.b&&f.Ca==b&&f.g==!!c&&f.i==d)return e}return-1};var pf="closure_lm_"+(1E6*Math.random()|0),qf={},rf=0;function sf(a,b,c,d,e){if(s(b)){for(var f=0;f<b.length;f++)sf(a,b[f],c,d,e);return null}c=tf(c);if(gf(a))a=a.listen(b,c,d,e);else{if(!b)throw Error("Invalid event type");var f=!!d,h=uf(a);h||(a[pf]=h=new lf(a));c=h.add(b,c,!1,d,e);c.proxy||(d=vf(),c.proxy=d,d.src=a,d.Ca=c,a.addEventListener?a.addEventListener(b,d,f):a.attachEvent(b in qf?qf[b]:qf[b]="on"+b,d),rf++);a=c}return a}
function vf(){var a=wf,b=cf?function(c){return a.call(b.src,b.Ca,c)}:function(c){c=a.call(b.src,b.Ca,c);if(!c)return c};return b}function xf(a,b,c,d,e){if(s(b))for(var f=0;f<b.length;f++)xf(a,b[f],c,d,e);else c=tf(c),gf(a)?a.Lb(b,c,d,e):a&&(a=uf(a))&&(b=of(a,b,c,!!d,e))&&yf(b)}
function yf(a){if(fa(a)||!a||a.b)return!1;var b=a.src;if(gf(b))return nf(b.ra,a);var c=a.type,d=a.proxy;b.removeEventListener?b.removeEventListener(c,d,a.g):b.detachEvent&&b.detachEvent(c in qf?qf[c]:qf[c]="on"+c,d);rf--;(c=uf(b))?(nf(c,a),0==c.g&&(c.src=null,b[pf]=null)):kf(a);return!0}function zf(a,b,c,d){var e=1;if(a=uf(a))if(b=a.b[b])for(b=Na(b),a=0;a<b.length;a++){var f=b[a];f&&f.g==c&&!f.b&&(e&=!1!==Af(f,d))}return Boolean(e)}
function Af(a,b){var c=a.Ca,d=a.i||a.src;a.mb&&yf(a);return c.call(d,b)}
function wf(a,b){if(a.b)return!0;if(!cf){var c=b||p("window.event"),d=new ef(c,this),e=!0;if(!(0>c.keyCode||void 0!=c.returnValue)){t:{var f=!1;if(0==c.keyCode)try{c.keyCode=-1;break t}catch(h){f=!0}if(f||void 0==c.returnValue)c.returnValue=!0}c=[];for(f=d.currentTarget;f;f=f.parentNode)c.push(f);for(var f=a.type,k=c.length-1;0<=k;k--)d.currentTarget=c[k],e&=zf(c[k],f,!0,d);for(k=0;k<c.length;k++)d.currentTarget=c[k],e&=zf(c[k],f,!1,d)}return e}return Af(a,new ef(b,this))}
function uf(a){a=a[pf];return a instanceof lf?a:null}var Bf="__closure_events_fn_"+(1E9*Math.random()>>>0);function tf(a){return ga(a)?a:a[Bf]||(a[Bf]=function(b){return a.handleEvent(b)})};function Cf(){this.ra=new lf(this);this.Sa=this}z(Cf,hb);Cf.prototype[ff]=!0;g=Cf.prototype;g.Qb=null;g.addEventListener=function(a,b,c,d){sf(this,a,b,c,d)};g.removeEventListener=function(a,b,c,d){xf(this,a,b,c,d)};
function S(a,b){var c,d=a.Qb;if(d){c=[];for(var e=1;d;d=d.Qb)c.push(d),++e}var d=a.Sa,e=b,f=e.type||e;if(t(e))e=new R(e,d);else if(e instanceof R)e.target=e.target||d;else{var h=e,e=new R(f,d);db(e,h)}var h=!0,k;if(c)for(var l=c.length-1;0<=l;l--)k=e.currentTarget=c[l],h=Df(k,f,!0,e)&&h;k=e.currentTarget=d;h=Df(k,f,!0,e)&&h;h=Df(k,f,!1,e)&&h;if(c)for(l=0;l<c.length;l++)k=e.currentTarget=c[l],h=Df(k,f,!1,e)&&h}g.G=function(){Cf.C.G.call(this);this.removeAllListeners();this.Qb=null};
g.listen=function(a,b,c,d){return this.ra.add(String(a),b,!1,c,d)};g.Lb=function(a,b,c,d){return this.ra.remove(String(a),b,c,d)};g.removeAllListeners=function(a){return this.ra?this.ra.removeAll(a):0};function Df(a,b,c,d){b=a.ra.b[String(b)];if(!b)return!0;b=Na(b);for(var e=!0,f=0;f<b.length;++f){var h=b[f];if(h&&!h.b&&h.g==c){var k=h.Ca,l=h.i||h.src;h.mb&&nf(a.ra,h);e=!1!==k.call(l,d)&&e}}return e&&!1!=d.ac};function Ef(a,b){Cf.call(this);this.b=a||1;this.g=b||n;this.i=v(this.Wc,this);this.j=w()}z(Ef,Cf);g=Ef.prototype;g.ga=!1;g.T=null;function Ff(a,b){a.b=b;a.T&&a.ga?(a.stop(),a.start()):a.T&&a.stop()}g.Wc=function(){if(this.ga){var a=w()-this.j;0<a&&a<0.8*this.b?this.T=this.g.setTimeout(this.i,this.b-a):(this.T&&(this.g.clearTimeout(this.T),this.T=null),S(this,"tick"),this.ga&&(this.T=this.g.setTimeout(this.i,this.b),this.j=w()))}};
g.start=function(){this.ga=!0;this.T||(this.T=this.g.setTimeout(this.i,this.b),this.j=w())};g.stop=function(){this.ga=!1;this.T&&(this.g.clearTimeout(this.T),this.T=null)};g.G=function(){Ef.C.G.call(this);this.stop();delete this.g};function Gf(a,b,c){if(ga(a))c&&(a=v(a,c));else if(a&&"function"==typeof a.handleEvent)a=v(a.handleEvent,a);else throw Error("Invalid listener argument");return 2147483647<b?-1:n.setTimeout(a,b||0)};function Hf(a,b,c){this.j=a;this.i=b;this.g=c;this.b=v(this.Vc,this)}z(Hf,hb);g=Hf.prototype;g.Ab=!1;g.Ia=null;g.stop=function(){this.Ia&&(n.clearTimeout(this.Ia),this.Ia=null,this.Ab=!1)};g.G=function(){Hf.C.G.call(this);this.stop()};g.Vc=function(){this.Ia=null;this.Ab&&(this.Ab=!1,If(this))};function If(a){a.Ia=Gf(a.b,a.i);a.j.call(a.g)};var Jf;function Kf(){return(window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{}).timing}
function Lf(){var a=Mf().tick,b=Mf().span,c=Mf().info,d=p("yt.timing.reportbuilder_");if(d){if(d=d.apply(null,[a,b,c,void 0]))Nf(d),Of()}else{var d={v:2,s:"youtube",action:G("TIMING_ACTION")},e=G("TIMING_INFO")||{},f;for(f in e)c[f]=e[f];f=c.srt;delete c.srt;var h;if(!f&&0!==f)try{h=Kf(),f=Math.max(0,h.responseStart-h.navigationStart)}catch(k){c.pt&&(f=c.pt)}if(f||0===f)c.srt=f;a.aft||(a.aft=a.vr&&a.cl&&a.cl>a.vr?a.cl:a.vr?a.vr:a.ol);a.vr&&a.gv&&(b.vl=Math.round(a.vr-a.gv));if(void 0===Jf){h||(h=
Kf());t:if(h&&h.msFirstPaint)Jf=Math.max(0,h.msFirstPaint);else{if(f=window.chrome)if(f=f.loadTimes,ga(f)&&h){f=f();e=1E3*Math.min(f.requestTime||Infinity,f.startLoadTime||Infinity);e=Infinity===e?0:h.navigationStart-e;Jf=Math.max(0,Math.round(1E3*f.firstPaintTime+e)||0);break t}Jf=0}0<Jf&&(a.fpt=Jf)}for(var l in c)"_"!=l.charAt(0)&&(d[l]=c[l]);c={};l=[];h=a._start;for(var m in a)"_"!=m.charAt(0)&&(f=Math.max(Math.round(a[m]-h),0),c[m]=f,l.push(m+"."+f));d.rt=l.join(",");a={};m=[];for(var q in b)"_"!=
q.charAt(0)&&(a[q]=b[q],m.push(q+"."+b[q]));d.it=m.join(",");Nf(d);(b=p("ytdebug.logTiming"))&&b(d,c,a);Of()}}function Nf(a){var b="https:"==window.location.protocol?"https://gg.google.com/csi":"http://csi.gstatic.com/csi",c="",d;for(d in a)c+="&"+d+"="+a[d];(a=b+"?"+c.substring(1))&&Ue(a)}function Mf(){return p("ytcsi.data_")||Of()}function Of(){var a={tick:{},span:{},info:{}};x("ytcsi.data_",a);return a};var Pf={};
function Qf(a,b){try{var c=G("FEEDBACK_LOCALE_EXTRAS",{});b?db(Pf,b):db(Pf,c);try{var d=G("PLAYER_REFERENCE");d&&d.pauseVideo&&d.pauseVideo();var e=Sd.getInstance();Pf.flashVersion=e.getVersion().join(".");d&&(Pf.playback_id=d.getVideoData().cpn)}catch(f){}var h=G("SESSION_INDEX"),k=G("FEEDBACK_BUCKET_ID"),l={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",locale:G("FEEDBACK_LOCALE_LANGUAGE"),productId:(a||"59")+""};h&&(l.authuser=h+"");k&&(l.bucket=
k);var m=window.GOOGLE_FEEDBACK_DESTROY_FUNCTION;m&&m();td(l,Pf);return!1}catch(q){return!0}};function Rf(a){a=a||{};this.url=a.url||"";this.urlV8=a.url_v8||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||ab(Sf);this.assets=a.assets||{};this.attrs=a.attrs||ab(Tf);this.params=a.params||ab(Uf);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded}var Sf={enablejsapi:1},Tf={},Uf={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};
function Vf(a){a instanceof Rf||(a=new Rf(a));return a}Rf.prototype.clone=function(){var a=new Rf,b;for(b in this){var c=this[b];"object"==da(c)?a[b]=ab(c):a[b]=c}return a};function Wf(a,b,c){if((a=N(a))&&b&&c){c=Vf(c);var d=ab(c.attrs);d.tabindex=0;var e=ab(c.params);e.flashvars=md(c.args);if(wb){d.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";e.movie=b;b=document.createElement("object");for(var f in d)b.setAttribute(f,d[f]);for(f in e)d=document.createElement("param"),d.setAttribute("name",f),d.setAttribute("value",e[f]),b.appendChild(d)}else{d.type="application/x-shockwave-flash";d.src=b;b=document.createElement("embed");b.setAttribute("name",d.id);for(f in d)b.setAttribute(f,
d[f]);for(f in e)b.setAttribute(f,e[f])}e=document.createElement("div");e.appendChild(b);a.innerHTML=e.innerHTML}}
function Xf(a,b,c){if(a&&a.attrs&&a.attrs.id){a=Vf(a);var d=!!b,e=N(a.attrs.id),f=e?e.parentNode:null;if(e&&f){if(window!=window.top){var h=null;if(document.referrer){var k=document.referrer.substring(0,128);qd(k)||(h=k)}else h="unknown";h&&(d=!0,a.args.framer=h)}h=Yf();if(Td(h,a.minVersion)){var k=Zf(a,h),l="";-1<navigator.userAgent.indexOf("Sony/COM2")||(l=e.getAttribute("src")||e.movie);(l!=k||d)&&Wf(f,k,a);Vd(h)&&$f()}else ag(f,a,h);c&&c()}else H(function(){Xf(a,b,c)},50)}}
function ag(a,b,c){0==c.b&&b.fallback?b.fallback():0==c.b&&b.fallbackMessage?b.fallbackMessage():a.innerHTML='<div id="flash-upgrade">'+vb("FLASH_UPGRADE",'You need to upgrade your Adobe Flash Player to watchthis video. <br> <a href="http://get.adobe.com/flashplayer/">Download it from Adobe.</a>')+"</div>"}function Zf(a,b){return Ud(b)&&a.url||(-1<navigator.userAgent.indexOf("Sony/COM2")&&!Td(b,9,1,58)?!1:!0)&&a.urlV9As2||a.urlV8||a.url}
function Yf(){var a=Sd.getInstance();Me.getInstance().set("fv",a.getVersion().join("."));var b;b=[];for(var c in Ne)b.push(c+"="+escape(Ne[c]));b=b.join("&");kd("PREF",b,63072E3);return a}function $f(){var a=N("flash10-promo-div"),b;Me.getInstance();b=Qe("f"+(Math.floor(107/31)+1));b=!!(((null!=b&&/^[A-Fa-f0-9]+$/.test(b)?parseInt(b,16):null)||0)&16384);a&&!b&&ke(a)};function bg(a){var b=cg(a),c=document.getElementById(b),d=c&&E(c,"loaded");d||c&&!d||(c=dg(a,b,function(){if(!E(c,"loaded")){eb(c,"loaded","true");J(b);var a=na(Hb,b);xb()?yb(a):H(a,0)}}))}function dg(a,b,c){var d=document.createElement("link");d.id=b;d.rel="stylesheet";d.onload=function(){c&&setTimeout(c,0)};d.href=a;(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d}
function cg(a){var b=document.createElement("a");b.href=a;a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+xa(a)};var eg;var fg=$b(),fg=fg.toLowerCase();if(-1!=fg.indexOf("android")){var gg=fg.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(gg)eg=Number(gg[1]);else{var hg={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1},ig=fg.match("("+Xa(hg).join("|")+")");eg=ig?hg[ig[0]]:0}}else eg=void 0;function jg(){if(2.2==eg)return!0;var a;a=p("yt.player.utils.videoElement_");a||(a=document.createElement("video"),x("yt.player.utils.videoElement_",a));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 kg(a){if("function"==typeof a.ea)return a.ea();if(t(a))return a.split("");if(ea(a)){for(var b=[],c=a.length,d=0;d<c;d++)b.push(a[d]);return b}return Wa(a)}function lg(a,b,c){if("function"==typeof a.forEach)a.forEach(b,c);else if(ea(a)||t(a))B(a,b,c);else{var d;if("function"==typeof a.ma)d=a.ma();else if("function"!=typeof a.ea)if(ea(a)||t(a)){d=[];for(var e=a.length,f=0;f<e;f++)d.push(f)}else d=Xa(a);else d=void 0;for(var e=kg(a),f=e.length,h=0;h<f;h++)b.call(c,e[h],d&&d[h],a)}};function mg(a,b){var c;if(a instanceof mg)this.Ea=r(b)?b:a.Ea,ng(this,a.Na),this.tb=a.tb,og(this,a.Ma),pg(this,a.ab),this.bb=a.bb,qg(this,a.b.clone()),this.rb=a.rb;else if(a&&(c=Zc(String(a)))){this.Ea=!!b;ng(this,c[1]||"",!0);var d=c[2]||"";this.tb=d?decodeURIComponent(d):"";og(this,c[3]||"",!0);pg(this,c[4]);this.bb=(d=c[5]||"")?decodeURIComponent(d):"";qg(this,c[6]||"",!0);this.rb=(c=c[7]||"")?decodeURIComponent(c):""}else this.Ea=!!b,this.b=new rg(null,0,this.Ea)}g=mg.prototype;g.Na="";g.tb="";
g.Ma="";g.ab=null;g.bb="";g.rb="";g.Ea=!1;g.toString=function(){var a=[],b=this.Na;b&&a.push(sg(b,tg),":");if(b=this.Ma){a.push("//");var c=this.tb;c&&a.push(sg(c,tg),"@");a.push(encodeURIComponent(String(b)));b=this.ab;null!=b&&a.push(":",String(b))}if(b=this.bb)this.Ma&&"/"!=b.charAt(0)&&a.push("/"),a.push(sg(b,"/"==b.charAt(0)?ug:vg));(b=this.b.toString())&&a.push("?",b);(b=this.rb)&&a.push("#",sg(b,wg));return a.join("")};g.clone=function(){return new mg(this)};
function ng(a,b,c){a.Na=c?b?decodeURIComponent(b):"":b;a.Na&&(a.Na=a.Na.replace(/:$/,""))}function og(a,b,c){a.Ma=c?b?decodeURIComponent(b):"":b}function pg(a,b){if(b){b=Number(b);if(isNaN(b)||0>b)throw Error("Bad port number "+b);a.ab=b}else a.ab=null}function qg(a,b,c){b instanceof rg?(a.b=b,xg(a.b,a.Ea)):(c||(b=sg(b,yg)),a.b=new rg(b,0,a.Ea))}function T(a,b,c){a.b.set(b,c)}function zg(a,b,c){s(c)||(c=[String(c)]);Ag(a.b,b,c)}
function Bg(a){T(a,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^w()).toString(36));return a}function Cg(a){return a instanceof mg?a.clone():new mg(a,void 0)}function Dg(a,b,c,d){var e=new mg(null,void 0);a&&ng(e,a);b&&og(e,b);c&&pg(e,c);d&&(e.bb=d);return e}function sg(a,b){return t(a)?encodeURI(a).replace(b,Eg):null}function Eg(a){a=a.charCodeAt(0);return"%"+(a>>4&15).toString(16)+(a&15).toString(16)}
var tg=/[#\/\?@]/g,vg=/[\#\?:]/g,ug=/[\#\?]/g,yg=/[\#\?@]/g,wg=/#/g;function rg(a,b,c){this.b=a||null;this.g=!!c}function Fg(a){if(!a.A&&(a.A=new re,a.Q=0,a.b))for(var b=a.b.split("&"),c=0;c<b.length;c++){var d=b[c].indexOf("="),e=null,f=null;0<=d?(e=b[c].substring(0,d),f=b[c].substring(d+1)):e=b[c];e=qa(e);e=Gg(a,e);a.add(e,f?qa(f):"")}}g=rg.prototype;g.A=null;g.Q=null;g.va=function(){Fg(this);return this.Q};
g.add=function(a,b){Fg(this);this.b=null;a=Gg(this,a);var c=this.A.get(a);c||this.A.set(a,c=[]);c.push(b);this.Q++;return this};g.remove=function(a){Fg(this);a=Gg(this,a);return ue(this.A.g,a)?(this.b=null,this.Q-=this.A.get(a).length,this.A.remove(a)):!1};g.clear=function(){this.A=this.b=null;this.Q=0};function Hg(a,b){Fg(a);b=Gg(a,b);return ue(a.A.g,b)}g.ma=function(){Fg(this);for(var a=this.A.ea(),b=this.A.ma(),c=[],d=0;d<b.length;d++)for(var e=a[d],f=0;f<e.length;f++)c.push(b[d]);return c};
g.ea=function(a){Fg(this);var b=[];if(t(a))Hg(this,a)&&(b=Ma(b,this.A.get(Gg(this,a))));else{a=this.A.ea();for(var c=0;c<a.length;c++)b=Ma(b,a[c])}return b};g.set=function(a,b){Fg(this);this.b=null;a=Gg(this,a);Hg(this,a)&&(this.Q-=this.A.get(a).length);this.A.set(a,[b]);this.Q++;return this};g.get=function(a,b){var c=a?this.ea(a):[];return 0<c.length?String(c[0]):b};function Ag(a,b,c){a.remove(b);0<c.length&&(a.b=null,a.A.set(Gg(a,b),Na(c)),a.Q+=c.length)}
g.toString=function(){if(this.b)return this.b;if(!this.A)return"";for(var a=[],b=this.A.ma(),c=0;c<b.length;c++)for(var d=b[c],e=encodeURIComponent(String(d)),d=this.ea(d),f=0;f<d.length;f++){var h=e;""!==d[f]&&(h+="="+encodeURIComponent(String(d[f])));a.push(h)}return this.b=a.join("&")};g.clone=function(){var a=new rg;a.b=this.b;this.A&&(a.A=this.A.clone(),a.Q=this.Q);return a};function Gg(a,b){var c=String(b);a.g&&(c=c.toLowerCase());return c}
function xg(a,b){b&&!a.g&&(Fg(a),a.b=null,lg(a.A,function(a,b){var e=b.toLowerCase();b!=e&&(this.remove(b),Ag(this,e,a))},a));a.g=b};var Ig="corp.google.com googleplex.com youtube.com youtube-nocookie.com prod.google.com sandbox.google.com docs.google.com drive.google.com mail.google.com plus.google.com play.google.com googlevideo.com".split(" "),Jg="";function Kg(a){return a&&a==Jg?!0:RegExp("^https?://([a-z0-9-]{1,63}\\.)*("+Ig.join("|").replace(/\./g,".")+")(:[0-9]+)?([/?#]|$)","i").test(a)?(Jg=a,!0):!1};function Lg(){};function Mg(){}z(Mg,Lg);Mg.prototype.va=function(){var a=0;pe(this.ca(!0),function(){a++});return a};Mg.prototype.clear=function(){var a=qe(this.ca(!0)),b=this;B(a,function(a){b.remove(a)})};function Ng(a){this.b=a}z(Ng,Mg);g=Ng.prototype;g.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};g.set=function(a,b){try{this.b.setItem(a,b)}catch(c){if(0==this.b.length)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};g.get=function(a){a=this.b.getItem(a);if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.b.removeItem(a)};
g.va=function(){return this.b.length};g.ca=function(a){var b=0,c=this.b,d=new ne;d.next=function(){if(b>=c.length)throw me;var d;d=c.key(b++);if(a)return d;d=c.getItem(d);if(!t(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){this.b.clear()};g.key=function(a){return this.b.key(a)};function Og(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}z(Og,Ng);function Pg(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}z(Pg,Ng);function Qg(a){this.b=a}Qg.prototype.set=function(a,b){r(b)?this.b.set(a,xe(b)):this.b.remove(a)};Qg.prototype.get=function(a){var b;try{b=this.b.get(a)}catch(c){return}if(null!==b)try{return ve(b)}catch(d){throw"Storage: Invalid value was encountered";}};Qg.prototype.remove=function(a){this.b.remove(a)};function Rg(a){this.b=a}z(Rg,Qg);function Sg(a){this.data=a}function Tg(a){return!r(a)||a instanceof Sg?a:new Sg(a)}function Ug(a){a=a.data;if(!r(a))throw"Storage: Invalid value was encountered";return a}Rg.prototype.set=function(a,b){Rg.C.set.call(this,a,Tg(b))};Rg.prototype.cb=function(a){a=Rg.C.get.call(this,a);if(!r(a)||a instanceof Object)return a;throw"Storage: Invalid value was encountered";};Rg.prototype.get=function(a){return(a=this.cb(a))?Ug(a):void 0};function Vg(a){this.b=a}z(Vg,Rg);function Wg(a){var b=a.creation;a=a.expiration;return!!a&&a<w()||!!b&&b>w()}Vg.prototype.set=function(a,b,c){if(b=Tg(b)){if(c){if(c<w()){Vg.prototype.remove.call(this,a);return}b.expiration=c}b.creation=w()}Vg.C.set.call(this,a,b)};Vg.prototype.cb=function(a,b){var c=Vg.C.cb.call(this,a);if(c)if(!b&&Wg(c))Vg.prototype.remove.call(this,a);else return c};function Xg(a){this.b=a}z(Xg,Vg);function Yg(a,b,c){var d=[];pe(b,function(a){var b;try{b=Xg.prototype.cb.call(this,a,!0)}catch(h){if("Storage: Invalid value was encountered"==h){c&&d.push(a);return}throw h;}if(!r(b))d.push(a);else if(Wg(b))d.push(a);else if(c)try{Ug(b)}catch(k){if("Storage: Invalid value was encountered"==k)d.push(a);else throw k;}},a);return d}function Zg(a,b,c){b=Yg(a,b,c);B(b,function(a){Xg.prototype.remove.call(this,a)},a);return b}
Xg.prototype.g=function(a){Zg(this,this.b.ca(!0),a)};function $g(a,b,c){var d=c&&0<c?c:0;c=d?w()+1E3*d:0;if((d=d?ah:bh)&&window.JSON){t(b)||(b=JSON.stringify(b,void 0));try{d.set(a,b,c)}catch(e){d.remove(a)}}}function ch(a){if(!bh&&!ah||!window.JSON)return null;var b;try{b=bh.get(a),b=t(b)?b:ah.get(a)}catch(c){return null}if(!t(b))return null;try{b=JSON.parse(b,void 0)}catch(d){}return b}function dh(a){bh&&bh.remove(a);ah&&ah.remove(a)}var ah,eh=new Og;ah=eh.isAvailable()?new Xg(eh):null;var bh,fh=new Pg;bh=fh.isAvailable()?new Xg(fh):null;function gh(){var a={volume:100,muted:!1,nonNormalized:100},b=ch("yt-player-volume")||{};a.volume=isNaN(b.volume)?100:Math.min(Math.max(b.volume,0),100);a.nonNormalized=isNaN(b.nonNormalized)?a.volume:b.nonNormalized;a.muted=void 0==b.muted?!1:b.muted;return a}function hh(a){var b=ch("yt-player-two-stage-token")||{},c=ch("yt-player-two-stage-token")||{};r(void 0)?c[a]=void 0:delete c[a];$g("yt-player-two-stage-token",c,300);return b[a]};function ih(a,b){this.la=a;this.u=b;this.o=!1;this.g={};this.V=this.p=null;this.F=new F;ib(this,na(jb,this.F));this.j={};this.k=this.Y=this.i=this.ya=this.b=null;this.fa=!1;this.da=this.H=null;this.W={};this.Wb=["onReady"];this.Sa=0;jh(this);this.gb("onVolumeChange",v(this.Nc,this));this.gb("onError",v(this.Mc,this));this.gb("onTabOrderChange",v(this.Lc,this))}z(ih,hb);g=ih.prototype;g.Pb=function(a,b){this.N()||(kh(this,a),lh(this,b),this.o&&mh(this))};
function kh(a,b){a.ya=b;a.b=b.clone();a.i=a.b.attrs.id||a.i;"video-player"==a.i&&(a.i=a.u,a.b.attrs.id=a.u);a.la.id==a.i&&(a.i=a.i+"-player",a.b.attrs.id=a.i);var c;(c=a.b.args.eurl)||(c=document.location.toString(),c=-1!=c.indexOf("/embed/")?document.referrer&&document.referrer.substring(0,128)||"unknown":c);a.b.args.eurl=c;a.b.args.enablejsapi="1";a.b.args.playerapiid=a.u;jg()&&(nh()||a.b.assets.js)||(a.b.args.html5_unavailable="1",a.b.disable.html5=!0);Td(Yf(),a.b.minVersion)||(a.b.disable.flash=
!0);a.Y||(a.Y=oh(a,a.b.args.jsapicallback||"onYouTubePlayerReady"));a.b.args.jsapicallback=null;if(c=a.b.attrs.width)a.la.style.width=be(Number(c)||c,!0);if(c=a.b.attrs.height)a.la.style.height=be(Number(c)||c,!0);a.la.style.overflow="hidden"}g.pd=function(){return this.ya};function mh(a){a.b.loaded||(a.b.loaded=!0,"0"!=a.b.args.autoplay?a.g.loadVideoByPlayerVars(a.b.args):a.g.cueVideoByPlayerVars(a.b.args))}
function ph(a){var b=N(a.i);b&&b.stopVideo&&b.stopVideo();b&&b.logFallback&&b.logFallback();if(!a.b.disable.flash){var c=a.b;b&&b.getUpdatedConfigurationData&&(b=Vf(b.getUpdatedConfigurationData()),b.args.video_id==c.args.video_id&&(c=b));c.args.autoplay=1;c.args.html5_unavailable="1";kh(a,c);lh(a,"flash")}}function lh(a,b){if(!a.N()){if(!b){var c=!!a.b.disable.html5,d=!!a.b.disable.flash;b=!a.b.html5&&!d||c?d?"unsupported":"flash":"html5"}("flash"==b?a.jd:"html5"==b?a.kd:a.ld).call(a)}}
function nh(){return p("yt.player.Application")}g.kd=function(){if(!this.fa){var a=this.b.clone();"html5"==qh(this)?(this.k="html5",this.o||this.Ha(!0)):(rh(this),this.k="html5",this.da?(this.la.appendChild(this.da),this.Ha()):(this.b.loaded=!0,this.H=v(function(){new (nh())(this.la,a);this.Ha()},this),this.fa=!0,nh()?this.H():(Jb(this.b.assets.js,this.H),bg(this.b.assets.css))))}};
g.jd=function(){var a=this.b.clone();a.attrs.width=a.attrs.width||"100%";a.attrs.height=a.attrs.height||"100%";if("flash"==qh(this))this.k="flash",this.o||Xf(a,!1,v(this.Ha,this));else{rh(this);this.k="flash";this.b.loaded=!0;var b=this.la,b=N(b),a=Vf(a);if(window!=window.top){var c=null;document.referrer&&(c=document.referrer.substring(0,128));a.args.framer=c}c=Yf();Td(c,a.minVersion)?(c=Zf(a,c),Wf(b,c,a)):ag(b,a,c);this.Ha()}};
g.Ha=function(a){var b=N(this.i),c=!1;try{b&&b.getApiInterface&&b.getApiInterface()&&(c=!0)}catch(d){}if(c)if(this.fa=!1,a&&b.isNotServable&&b.isNotServable())ph(this);else{jh(this);this.o=!0;a=N(this.i);a.addEventListener&&(this.p=sh(a,"addEventListener"));a.removeEventListener&&(this.V=sh(a,"removeEventListener"));b=a.getApiInterface();b=b.concat(a.getInternalApiInterface());for(c=0;c<b.length;c++){var e=b[c];this.g[e]||(this.g[e]=sh(a,e))}for(var f in this.j)this.p(f,this.j[f]);mh(this);this.Y&&
this.Y(this.g);this.F.t("onReady",this.g)}else this.Sa=H(v(this.Ha,this),50)};function sh(a,b){var c=a[b];return function(){try{return c.apply(a,arguments)}catch(d){d.message+=" ("+b+")",ub(d,"WARNING")}}}
function jh(a){a.o=!1;if(a.V)for(var b in a.j)a.V(b,a.j[b]);a.p=null;a.V=null;for(var c in a.g)a.g[c]=null;a.g.addEventListener=v(a.gb,a);a.g.removeEventListener=v(a.rd,a);a.g.destroy=v(a.dispose,a);a.g.getPlayerType=v(a.qd,a);a.g.getCurrentVideoConfig=v(a.pd,a);a.g.loadNewVideoConfig=v(a.Pb,a);a.g.isReady=v(a.sd,a)}g.sd=function(){return this.o};
g.gb=function(a,b){if(!this.N()){var c=oh(this,b);if(c){if(!D(this.Wb,a)&&!this.j[a]){var d=th(this,a);this.p&&this.p(a,d)}this.F.J(a,c);"onReady"==a&&this.o&&H(na(c,this.g),0)}}};g.rd=function(a,b){if(!this.N()){var c=oh(this,b);c&&this.F.wa(a,c)}};function oh(a,b){var c=b;if("string"==typeof b){if(a.W[b])return a.W[b];c=function(){var a=p(b);a&&a.apply(n,arguments)};a.W[b]=c}return c?c:null}
function th(a,b){var c="ytPlayer"+b+a.u;a.j[b]=c;n[c]=function(c){H(function(){a.N()||a.F.t(b,c)},0)};return c}g.Lc=function(a){a=a?Hc:Gc;for(var b=a(document.activeElement);b&&(1!=b.nodeType||(b.focus(),b!=document.activeElement));)b=a(b)};g.Nc=function(a){var b={};b.volume=isNaN(a.volume)?gh().volume:Math.min(Math.max(a.volume,0),100);b.nonNormalized=a.nonNormalized;b.muted=void 0==a.muted?gh().muted:a.muted;$g("yt-player-volume",b,2592E3)};g.Mc=function(a){5==a&&ph(this)};
g.ld=function(){rh(this);this.k="unsupported";var a=vb("PLAYER_FALLBACK",'The Adobe Flash Player or an HTML5 supported browser is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/">Get the latest Flash Player</a> <br> <a href="/html5">Learn more about upgrading to an HTML5 browser</a>'),b=navigator.userAgent.match(/Version\/(\d).*Safari/);b&&5<=parseInt(b[1],10)&&(a=vb("QUICKTIME_FALLBACK",'The Adobe Flash Player or QuickTime is required for video playback. <br> <a href="http://get.adobe.com/flashplayer/">Get the latest Flash Player</a> <br> <a href="http://www.apple.com/quicktime/download/">Get the latest version of QuickTime</a>'));
b=N("player-unavailable");if(N("unavailable-submessage")&&b){N("unavailable-submessage").innerHTML=a;var a=b||document,c=null;a.querySelectorAll&&a.querySelector?c=a.querySelector(".icon"):c=Fc("icon",b)[0];if(c=a=c||null)c=a.dataset?fb("icon")in a.dataset:a.hasAttribute?!!a.hasAttribute("data-icon"):!!a.getAttribute("data-icon");c&&(a.src=E(a,"icon"));Sb(b,"hid");Rb(N("player"),"off-screen-trigger")}};g.qd=function(){return this.k||qh(this)};
function qh(a){return(a=N(a.i))?"div"==a.tagName.toLowerCase()?"html5":"flash":null}function rh(a){a.cancel();jh(a);a.k=null;a.b.loaded=!1;var b=N(a.i);"html5"==qh(a)?a.da=b:b&&b.destroy&&b.destroy();for(a=a.la;b=a.firstChild;)a.removeChild(b)}g.cancel=function(){var a=this.H;this.b.assets.js&&a&&(a=""+ia(a),(a=Lb[a])&&Fb(a));tb(this.Sa)};g.G=function(){rh(this);this.W=null;for(var a in this.j)n[this.j[a]]=null;this.g=null;this.b&&(this.ya=this.b=this.b.fallback=null);ih.C.G.call(this)};var uh={};function vh(a,b){a=N(a);if(!a)return null;b=Vf(b);var c="player"+ia(a),d=uh[c];if(d)return d.Pb(b),d.g;d||(d=new ih(a,c),uh[c]=d,J("player-added",d.g),ib(d,na(wh,d)));H(function(){d.Pb(b)},0);return d.g}function xh(){for(var a in uh){var b=uh[a];b&&b.cancel()}}function yh(a){if(a=N(a))a="player"+ia(a),(a=uh[a])&&a.dispose()}function wh(a){uh[a.u]=null}function zh(a){a=N(a);if(!a)return null;a="player"+ia(a);return(a=uh[a])?a.g:null};var Ah=p("yt.player.exports.navigate")||sd;x("yt.player.exports.navigate",Ah);var Bh=p("yt.player.embed")||vh;x("yt.player.embed",Bh);var Ch=p("yt.player.destroy")||yh;x("yt.player.destroy",Ch);var Dh=p("yt.player.cancelAll")||xh;x("yt.player.cancelAll",Dh);var Eh=p("yt.player.getPlayerByElement")||zh;x("yt.player.getPlayerByElement",Eh);var Fh=p("yt.player.exports.feedbackStart")||Qf;x("yt.player.exports.feedbackStart",Fh);function Gh(a,b){var c=fd("/signin?context=popup","next",document.location.protocol+"//"+document.domain+"/post_login");b&&(c=fd(c,"feature",b));if(c=window.open(c,"loginPopup","width=375,height=440,resizable=yes,scrollbars=yes",!0)){var d=I("LOGGED_IN",function(b){Fb(G("LOGGED_IN_PUBSUB_KEY"));nb("LOGGED_IN",!0);a(b)});nb("LOGGED_IN_PUBSUB_KEY",d);c.moveTo((screen.width-375)/2,(screen.height-440)/2)}}x("yt.pubsub.publish",J);function Hh(){var a=G("PLAYER_CONFIG");return a&&a.args&&void 0!==a.args.authuser||null!=G("SESSION_INDEX")||G("LOGGED_IN")?!0:!1};function Ih(){this.b={}}z(Ih,Ze);ca(Ih);g=Ih.prototype;g.Vb="tooltip";g.Cb=0;g.register=function(){$e(this,"mouseover",this.yc);$e(this,"mouseout",this.Tb);$e(this,"click",this.Tb);$e(this,"touchstart",this.Id);$e(this,"touchend",this.Dc);$e(this,"touchcancel",this.Dc)};
g.yc=function(a){if(!(this.Cb&&1E3>w()-this.Cb)){var b=parseInt(E(a,"tooltip-hide-timer"),10);b&&(this.removeData(a,"tooltip-hide-timer"),tb(b));var b=v(function(){Jh(this,a);this.removeData(a,"tooltip-show-timer")},this),c=parseInt(E(a,"tooltip-show-delay"),10)||0,b=H(b,c);eb(a,"tooltip-show-timer",b.toString());a.title&&(af(a,Kh(a)),a.title="")}};
g.Tb=function(a){var b=parseInt(E(a,"tooltip-show-timer"),10);b&&(tb(b),this.removeData(a,"tooltip-show-timer"));b=v(function(){if(a){var b=Dc(Lh(this,a));b&&(Mh(b),b&&b.parentNode&&b.parentNode.removeChild(b),this.removeData(a,"content-id"))}this.removeData(a,"tooltip-hide-timer")},this);b=H(b,50);eb(a,"tooltip-hide-timer",b.toString());if(b=E(a,"tooltip-text"))a.title=b};g.Id=function(a,b){this.Cb=0;var c=Xe(b,Q(this),null[0].target);this.yc(c)};
g.Dc=function(a,b){this.Cb=w();var c=Xe(b,Q(this),null[0].target);this.Tb(c)};function Nh(a,b){af(a,b);var c=E(a,"content-id");if(c=N(c))c.innerHTML=b}function Kh(a){return E(a,"tooltip-text")||a.title}
function Jh(a,b){if(b){var c=Kh(b);if(c){var d=Dc(Lh(a,b));if(!d){d=document.createElement("div");d.id=Lh(a,b);d.className=Q(a,"tip");var e=document.createElement("div");e.className=Q(a,"tip-body");var f=document.createElement("div");f.className=Q(a,"tip-arrow");var h=document.createElement("div");h.className=Q(a,"tip-content");var k=Oh(a,b),l=Lh(a,b,"content");h.id=l;eb(b,"content-id",l);e.appendChild(h);k&&d.appendChild(k);d.appendChild(e);d.appendChild(f);(Qc()||document.body).appendChild(d);Nh(b,
c);(c=parseInt(E(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",Rb(h,Q(a,"normal-wrap")));h=Qb(b,Q(a,"reverse"));Ph(a,b,d,e,k,h)||Ph(a,b,d,e,k,!h);var m=Q(a,"tip-visible");H(function(){Rb(d,m)},0)}}}}
function Ph(a,b,c,d,e,f){a=Q(a,"tip-reverse");f?Rb(c,a):Sb(c,a);var h=0;f&&(h=1);a=ce(b);f=new K((a.width-10)/2,f?a.height:0);var k=ae(b);var k=new K(k.x+f.x,k.y+f.y),k=k.clone(),l;l=(h&4&&"rtl"==Yd(c,"direction")?h^2:h)&-5;f=ce(c);h=f.clone();0!=l&&(l&2&&(k.x-=h.width+0),l&1&&(k.y-=h.height+0));var m=k;l=ec&&(Yb||ic)&&M("1.9");m instanceof K?(k=m.x,m=m.y):(k=m,m=void 0);c.style.left=be(k,l);c.style.top=be(m,l);if(!(f==h||f&&h&&f.width==h.width&&f.height==h.height))if(k=Lc(Ac(Cc(c))),!L||k&&M("8"))f=
c.style,ec?f.MozBoxSizing="border-box":fc?f.WebkitBoxSizing="border-box":f.boxSizing="border-box",f.width=Math.max(h.width,0)+"px",f.height=Math.max(h.height,0)+"px";else if(f=c.style,k){if(L){k=fe(c,"paddingLeft");l=fe(c,"paddingRight");var m=fe(c,"paddingTop"),q=fe(c,"paddingBottom"),k=new Wd(m,l,q,k)}else k=Xd(c,"paddingLeft"),l=Xd(c,"paddingRight"),m=Xd(c,"paddingTop"),q=Xd(c,"paddingBottom"),k=new Wd(parseFloat(m),parseFloat(l),parseFloat(q),parseFloat(k));if(L&&!sc(9)){l=he(c,"borderLeft");
var m=he(c,"borderRight"),q=he(c,"borderTop"),y=he(c,"borderBottom");l=new Wd(q,m,y,l)}else l=Xd(c,"borderLeftWidth"),m=Xd(c,"borderRightWidth"),q=Xd(c,"borderTopWidth"),y=Xd(c,"borderBottomWidth"),l=new Wd(parseFloat(q),parseFloat(m),parseFloat(y),parseFloat(l));f.pixelWidth=h.width-l.left-k.left-k.right-l.right;f.pixelHeight=h.height-l.top-k.top-k.bottom-l.bottom}else f.pixelWidth=h.width,f.pixelHeight=h.height;var h=window.document,h="CSS1Compat"==h.compatMode?h.documentElement:h.body,h=new Tb(h.clientWidth,
h.clientHeight),u;if(1==c.nodeType){c.getBoundingClientRect?(f=Zd(c),f=new K(f.left,f.top)):(f=Mc(Ac(c)),k=ae(c),f=new K(k.x-f.x,k.y-f.y));if(ec&&!M(12)){var Z;L?Z="-ms-transform":fc?Z="-webkit-transform":dc?Z="-o-transform":ec&&(Z="-moz-transform");Z&&(u=Yd(c,Z));u||(u=Yd(c,"transform"));c=u?(c=u.match(ie))?new K(parseFloat(c[1]),parseFloat(c[2])):new K(0,0):new K(0,0);c=new K(f.x+c.x,f.y+c.y)}else c=f;u=c}else Z=ga(c.g),u=c,c.targetTouches?u=c.targetTouches[0]:Z&&c.b.targetTouches&&(u=c.b.targetTouches[0]),
u=new K(u.clientX,u.clientY);c=ce(d);f=Math.floor(c.width/2);e&&(e.style.left="3px",e.style.height=c.height+"px",e.style.width=c.width+"px");e=!!(h.height<u.y+a.height);a=!!(u.y<a.height);Z=!!(u.x<f);u=!!(h.width<u.x+f);h=(c.width+3)/-2- -5;b=E(b,"force-tooltip-direction");if("left"==b||Z)h=-5;else if("right"==b||u)h=20-c.width-3;d.style.left=Math.floor(h)+"px";return!(e||a)}function Lh(a,b,c){a=Q(a);var d=b.__yt_uid_key;d||(d=Nc(),b.__yt_uid_key=d);b=a+d;c&&(b+="-"+c);return b}
function Oh(a,b){var c=null;Zb&&Qb(b,Q(a,"masked"))&&((c=N("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),ke(c)):(c=document.createElement("iframe"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Q(a,"tip-mask")));return c}function Mh(a){var b=N("yt-uix-tooltip-shared-mask"),c=b&&Kc(b,function(b){return b==a},!1,2);b&&c&&(b.parentNode.removeChild(b),le(b),document.body.appendChild(b))};function Qh(){this.b={};this.g=[]}z(Qh,Ze);ca(Qh);Qh.prototype.Vb="subscription-button";
Qh.prototype.register=function(){$e(this,"click",this.tc);this.g.push(I("subscription-subscribe-loading",this.sc,this),I("subscription-subscribe-loaded",this.qc,this),I("subscription-unsubscirbe-loading",this.sc,this),I("subscription-unsubscribe-loaded",this.qc,this),I("subscription-subscribe-success",this.vd,this),I("subscription-unsubscribe-success",this.wd,this),I("subscription-enable-ypc",this.ud,this),I("subscription-disable-ypc",this.td,this))};
var Jc={xc:"hover-enabled",Bd:"yt-uix-button-subscribe",Cd:"yt-uix-button-subscribed",Zd:"ypc-enabled",Pd:"yt-uix-button-subscription-container",Qd:"yt-subscription-button-disabled-mask-container"},U={$d:"channel-external-id",Dd:"subscriber-count-show-when-subscribed",Ed:"subscriber-count-tooltip",Fd:"subscriber-count-title",ae:"href",Hc:"is-subscribed",ce:"parent-url",de:"sessionlink",Gd:"style-type",Ic:"subscription-id",ee:"target",Jd:"ypc-enabled",Bc:"ypc-item-type",Ac:"ypc-item-id",Cc:"ypc-offers-url"};
g=Qh.prototype;g.tc=function(a){var b=E(a,"href"),c=Hh();if(b)a=E(a,"target")||"_self",window.open(b,a);else if(c){var b=E(a,"channel-external-id"),c=E(a,"sessionlink"),d;if(E(a,"ypc-enabled")){d=E(a,U.Bc);var e=E(a,U.Ac),f=E(a,U.Cc);d={itemType:d,itemId:e,offersUrl:f,subscriptionElement:a}}else d=null;e=E(a,"parent-url");E(a,"is-subscribed")?(f=E(a,"subscription-id"),J("subscription-unsubscribe",b,f,d,a,c,e)):J("subscription-subscribe",b,d,a,c,e)}else Rh(this,a)};
g.sc=function(a){this.Qa(a,this.Fc,!0)};g.qc=function(a){this.Qa(a,this.Fc,!1)};g.vd=function(a,b){this.Qa(a,this.Gc,!0,b)};g.wd=function(a){this.Qa(a,this.Gc,!1)};g.ud=function(a){this.Qa(a,this.Md)};g.td=function(a){this.Qa(a,this.Ld)};g.Gc=function(a,b,c){b?(eb(a,U.Hc,"true"),c&&eb(a,U.Ic,c)):(this.removeData(a,U.Hc),this.removeData(a,U.Ic));Sh(a)};g.Fc=function(a,b){var c;c=Ic(a);zc(c,Jc.Qd,b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
function Sh(a){var b=E(a,U.Gd),c=!!E(a,"is-subscribed"),b="-"+b,d=Jc.Cd+b;zc(a,Jc.Bd+b,!c);zc(a,d,c);E(a,U.Ed)&&!E(a,U.Dd)&&(b=Q(Ih.getInstance()),zc(a,b,!c),a.title=c?"":E(a,U.Fd));c?H(function(){wc(a,Jc.xc)},1E3):xc(a,Jc.xc)}g.Md=function(a){var b=!!E(a,U.Bc),c=!!E(a,U.Ac),d=!!E(a,U.Cc);!E(a,"ypc-enabled")&&b&&c&&d&&(wc(a,"ypc-enabled"),eb(a,U.Jd,"true"))};g.Ld=function(a){E(a,"ypc-enabled")&&(xc(a,"ypc-enabled"),this.removeData(a,"ypc-enabled"))};
function Th(a,b){var c=Ec(Q(a));return Aa(c,function(a){return b==E(a,"channel-external-id")},a)}g.Td=function(a,b,c){var d=Qa(arguments,2);B(a,function(a){b.apply(this,Ma(a,d))},this)};g.Qa=function(a,b,c){var d=Th(this,a),d=Ma([d],Qa(arguments,1));this.Td.apply(this,d)};function Rh(a,b){var c=v(function(a){a.subscription_ajax&&pb("subscription_ajax",a.subscription_ajax);this.tc(b)},a);Gh(c,"sub_button")};function Uh(a){a&&(this.id=a.id||"",this.name=a.name||"",this.activityId=a.activityId||"",this.status=a.status||"UNKNOWN")}g=Uh.prototype;g.id="";g.name="";g.activityId="";g.status="UNKNOWN";g.Jc=function(){return{key:this.id,name:this.name}};function Vh(a){return{id:a.id,name:a.name,activityId:a.activityId,status:a.status}}g.toString=function(){return"{id:"+this.id+",name:"+this.name+",activityId:"+this.activityId+",status:"+this.status+"}"};
function Wh(a){a=a||[];return"["+C(a,function(a){return a?a.toString():"null"}).join(",")+"]"};function Xh(a){a&&(this.name=a.name,this.K=a.screenId,this.S=a.loungeToken,this.R=a.dialId||"")}g=Xh.prototype;g.name="";g.K="";g.S="";g.R="";g.Jc=function(){return{key:this.K,name:this.name}};g.toString=function(){return"{name:"+this.name+",screenId:"+this.K+",loungeToken:..."+(this.S?this.S.slice(-6):"null")+",dialId:"+this.R+"}"};function Yh(a){return a?a.toString():"null"}function Zh(a){a=a||[];return"["+C(a,function(a){return Yh(a)}).join(",")+"]"};function $h(){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 ai(a,b){return Da(a,function(a){return a.key==b})}function bi(a){return C(a,function(a){return a.Jc()})}function ci(a){return C(a,function(a){return Vh(a)})}function di(a){return C(a,function(a){return new Uh(a)})}function ei(a,b){return a||b?a&&b?a.id==b.id&&a.name==b.name:!1:!0}function fi(a,b){return Da(a,function(a){return a.id==b})}
function gi(a){return C(a,function(a){return{name:a.name,screenId:a.K,loungeToken:a.S,dialId:a.R}})}function hi(a){return C(a,function(a){return new Xh(a)})}function ii(a,b){return a||b?a&&b?a.K==b.K&&a.S==b.S&&a.name==b.name&&a.R==b.R:!1:!0}function ji(a,b){return Da(a,function(a){return a||b?a&&b?a.K==b.K:!1:!0})}function ki(a,b){return Da(a,function(a){return b==a.K||b==a.R})};var li=w(),mi=null,ni=Array(50),oi=-1,pi=!1;function qi(){var a=ri;si();mi.push(a);ti(mi)}function ui(a,b){si();var c=mi,d=vi(a,String(b));Ga(c)?wi(d):(ti(c),B(c,function(a){a(d)}))}function si(){mi||(mi=p("yt.mdx.remote.debug.handlers_")||[],x("yt.mdx.remote.debug.handlers_",mi))}function wi(a){var b=(oi+1)%50;oi=b;ni[b]=a;pi||(pi=49==b)}function ti(a){var b=ni;if(b[0]){var c=oi,d=pi?c:-1;do{var d=(d+1)%50,e=b[d];B(a,function(a){a(e)})}while(d!=c);ni=Array(50);oi=-1;pi=!1}}
function vi(a,b){var c=(w()-li)/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 xi(){var a=yi(),b=zi();D(a,b);if(Ai()){var c=a,d;d=Sa;for(var e=0,f=c.length,h;e<f;){var k=e+f>>1,l;l=d(b,c[k]);0<l?e=k+1:(f=k,h=!l)}d=h?e:~e;0>d&&Pa(c,-(d+1),0,b)}a=Bi(a);Ga(a)?jd.remove("remote_sid","/","youtube.com"):kd("remote_sid",a.join(","))}function yi(){var a=ch("yt-remote-connected-devices")||[];Ra(a);return a}function Bi(a){if(Ga(a))return[];var b=a[0].indexOf("#"),c=-1==b?a[0]:a[0].substring(0,b);return C(a,function(a,b){return 0==b?a:a.substring(c.length)})}
function Ci(a){$g("yt-remote-connected-devices",a,86400)}function zi(){if(Di)return Di;var a=ch("yt-remote-device-id");a||(a=$h(),$g("yt-remote-device-id",a,31536E3));for(var b=yi(),c=1,d=a;D(b,d);)c++,d=a+"#"+c;return Di=d}function Ei(){return ch("yt-remote-session-browser-channel")}function Ai(){return ch("yt-remote-session-screen-id")}
function Fi(a){5<a.length&&(a=a.slice(a.length-5));var b=C(Gi(),function(a){return a.loungeToken}),c=C(a,function(a){return a.loungeToken});Ca(c,function(a){return!D(b,a)})&&$g("yt-remote-lounge-token-expiration",!0,86400);$g("yt-remote-local-screens",a,31536E3)}function Gi(){return ch("yt-remote-local-screens")||[]}function Hi(){return ch("yt-remote-online-screens")||[]}function Ii(a){$g("yt-remote-online-dial-devices",a,30)}function Ji(){return ch("yt-remote-online-dial-devices")||[]}
function Ki(a){a||(dh("yt-remote-session-screen-id"),dh("yt-remote-session-video-id"),dh("yt-remote-session-list-id"));xi();a=yi();Ka(a,zi());Ci(a)}var Di="";function Li(){if(!("cast"in window))return!1;var a=window.cast||{};return"ActivityStatus"in a&&"Api"in a&&"LaunchRequest"in a&&"Receiver"in a}function Mi(a){ui("CAST",a)}function ri(a){var b=Ni();b&&b.logMessage&&b.logMessage(a)}function Oi(a){if(a.source==window&&a.data&&"CastApi"==a.data.source&&"Hello"==a.data.event)for(;Pi.length;)Pi.shift()()}
function Qi(){if(!Ri&&(Ga(Ia)&&Oa(Ia,Ji()),Li())){var a=Ni();a?(a.removeReceiverListener("YouTube",Si),a.addReceiverListener("YouTube",Si),Mi("API initialized in the other binary")):(a=new cast.Api,Ti(a),a.addReceiverListener("YouTube",Si),a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(function(){H(function(){window.location.reload(!0)},1E3)}),qi(),Mi("API initialized"));Ri=!0}}
function Ui(){var a=Ni();if(a){Mi("API disposed");var b=ri,c=p("yt.mdx.remote.debug.handlers_");Ka(c||[],b);a.setReloadTabRequestHandler&&a.setReloadTabRequestHandler(ba);a.removeReceiverListener("YouTube",Si);Ti(null)}Ri=!1;Pi=null;Vc("message",Oi)}function Vi(a){var b=Fa(Ia,function(b){return b.id==a.id});0<=b&&(Ia[b]=Vh(a))}
function Si(a){Mi("Updating receivers: "+xe(a));Wi(a);J("yt-remote-cast-device-list-update");B(Xi(),function(a){Yi(a.id)});B(a,function(a){a.isTabProjected&&(a=Zi(a.id),Mi("Detected device: "+a.id+" is tab projected. Firing DEVICE_TAB_PROJECTED event."),J("yt-remote-cast-device-tab-projected",a.id))})}
function $i(a,b){Mi("Updating "+a+" activity status: "+xe(b));var c=Zi(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=""),Vi(c),J("yt-remote-cast-device-status-update",c)):Mi("Device not found")}function Xi(){Qi();return di(Ia)}
function Wi(a){a=C(a,function(a){var c=a.id,d;d=a.name;d=-1!=d.indexOf("&")?"document"in n?ra(d):ta(d):d;c={id:c,name:d};if(a=Zi(a.id))c.activityId=a.activityId,c.status=a.status;return c});Ha();Oa(Ia,a)}function Zi(a){var b=Xi();return Da(b,function(b){return b.id==a})||null}function Yi(a){var b=Zi(a),c=Ni();c&&b&&b.activityId&&c.getActivityStatus(b.activityId,function(b){"error"==b.status&&(b.status="stopped");$i(a,b)})}
function aj(a){Qi();var b=Zi(a),c=Ni();c&&b&&b.activityId?(Mi("Stopping cast activity"),c.stopActivity(b.activityId,na($i,a))):Mi("Dropping cast activity stop")}function Ni(){return p("yt.mdx.remote.castapi.api_")}function Ti(a){x("yt.mdx.remote.castapi.api_",a)}var Ri=!1,Pi=null,Ia=p("yt.mdx.remote.castapi.devices_")||[];x("yt.mdx.remote.castapi.devices_",Ia);function bj(){var a=hi(Hi()),b=di(Ji()),b=Aa(b,function(b){return!ki(a,b.id)});return bi(Ma(a,b))};function cj(a){a&&(this.id=a.id||a.name,this.name=a.name,this.app=a.app,this.type=a.type||"REMOTE_CONTROL")}g=cj.prototype;g.id="";g.name="";g.app="";g.type="REMOTE_CONTROL";g.equals=function(a){return a?this.id==a.id:!1};function dj(a,b){this.action=a;this.params=b||null};function ej(){this.b=w()}new ej;ej.prototype.set=function(a){this.b=a};ej.prototype.get=function(){return this.b};function fj(a,b){this.g=new ze(a);this.b=b?we:ve}fj.prototype.stringify=function(a){return ye(this.g,a)};fj.prototype.parse=function(a){return this.b(a)};function gj(a){this.g=a;this.b={}}z(gj,hb);var hj=[];g=gj.prototype;g.listen=function(a,b,c,d){s(b)||(hj[0]=b,b=hj);for(var e=0;e<b.length;e++){var f=sf(a,b[e],c||this.handleEvent,d||!1,this.g||this);if(!f)break;this.b[f.key]=f}return this};g.Lb=function(a,b,c,d,e){if(s(b))for(var f=0;f<b.length;f++)this.Lb(a,b[f],c,d,e);else c=c||this.handleEvent,e=e||this.g||this,c=tf(c),d=!!d,b=gf(a)?of(a.ra,String(b),c,d,e):a?(a=uf(a))?of(a,b,c,d,e):null:null,b&&(yf(b),delete this.b[b.key]);return this};
g.removeAll=function(){Va(this.b,yf);this.b={}};g.G=function(){gj.C.G.call(this);this.removeAll()};g.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented");};function ij(){}ij.prototype.b=null;function jj(a){var b;(b=a.b)||(b={},kj(a)&&(b[0]=!0,b[1]=!0),b=a.b=b);return b};var lj;function mj(){}z(mj,ij);function nj(a){return(a=kj(a))?new ActiveXObject(a):new XMLHttpRequest}function kj(a){if(!a.g&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var b=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],c=0;c<b.length;c++){var d=b[c];try{return new ActiveXObject(d),a.g=d}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed");}return a.g}lj=new mj;function oj(a,b,c,d,e){this.b=a;this.i=c;this.q=d;this.p=e||1;this.k=45E3;this.j=new gj(this);this.g=new Ef;Ff(this.g,250)}g=oj.prototype;g.xa=null;g.$=!1;g.Oa=null;g.Ob=null;g.Va=null;g.Ka=null;g.oa=null;g.ta=null;g.Ta=null;g.D=null;g.$a=0;g.aa=null;g.pb=null;g.Aa=null;g.Ra=-1;g.ec=!0;g.Ba=!1;g.Fb=0;g.jb=null;var pj={},qj={};g=oj.prototype;g.setTimeout=function(a){this.k=a};function rj(a,b,c){a.Ka=1;a.oa=Bg(b.clone());a.Ta=c;a.o=!0;sj(a,null)}
function tj(a,b,c,d,e){a.Ka=1;a.oa=Bg(b.clone());a.Ta=null;a.o=c;e&&(a.ec=!1);sj(a,d)}function sj(a,b){a.Va=w();uj(a);a.ta=a.oa.clone();zg(a.ta,"t",a.p);a.$a=0;a.D=a.b.Kb(a.b.Ua()?b:null);0<a.Fb&&(a.jb=new Hf(v(a.fc,a,a.D),a.Fb));a.j.listen(a.D,"readystatechange",a.Yc);var c=a.xa?ab(a.xa):{};a.Ta?(a.pb="POST",c["Content-Type"]="application/x-www-form-urlencoded",a.D.send(a.ta,a.pb,a.Ta,c)):(a.pb="GET",a.ec&&!fc&&(c.Connection="close"),a.D.send(a.ta,a.pb,null,c));a.b.Z(1)}
g.Yc=function(a){a=a.target;var b=this.jb;b&&3==vj(a)?b.Ia?b.Ab=!0:If(b):this.fc(a)};
g.fc=function(a){try{if(a==this.D)t:{var b=vj(this.D),c=this.D.j,d=wj(this.D);if(L&&!sc(10)||fc&&!M("420+")){if(4>b)break t}else if(3>b||3==b&&!dc&&!xj(this.D))break t;this.Ba||4!=b||7==c||(8==c||0>=d?this.b.Z(3):this.b.Z(2));yj(this);var e=wj(this.D);this.Ra=e;var f=xj(this.D);(this.$=200==e)?(4==b&&zj(this),this.o?(Aj(this,b,f),dc&&this.$&&3==b&&(this.j.listen(this.g,"tick",this.Uc),this.g.start())):Bj(this,f),this.$&&!this.Ba&&(4==b?this.b.kb(this):(this.$=!1,uj(this)))):(this.Aa=400==e&&0<f.indexOf("Unknown SID")?
3:0,V(),zj(this),Cj(this))}}catch(h){this.D&&xj(this.D)}finally{}};function Aj(a,b,c){for(var d=!0;!a.Ba&&a.$a<c.length;){var e=Dj(a,c);if(e==qj){4==b&&(a.Aa=4,V(),d=!1);break}else if(e==pj){a.Aa=4;V();d=!1;break}else Bj(a,e)}4==b&&0==c.length&&(a.Aa=1,V(),d=!1);a.$=a.$&&d;d||(zj(a),Cj(a))}g.Uc=function(){var a=vj(this.D),b=xj(this.D);this.$a<b.length&&(yj(this),Aj(this,a,b),this.$&&4!=a&&uj(this))};
function Dj(a,b){var c=a.$a,d=b.indexOf("\n",c);if(-1==d)return qj;c=Number(b.substring(c,d));if(isNaN(c))return pj;d+=1;if(d+c>b.length)return qj;var e=b.substr(d,c);a.$a=d+c;return e}
function Ej(a,b){a.Va=w();uj(a);var c=b?window.location.hostname:"";a.ta=a.oa.clone();T(a.ta,"DOMAIN",c);T(a.ta,"t",a.p);try{a.aa=new ActiveXObject("htmlfile")}catch(d){zj(a);a.Aa=7;V();Cj(a);return}var e="<html><body>";b&&(e+='<script>document.domain="'+c+'"\x3c/script>');e+="</body></html>";a.aa.open();a.aa.write(e);a.aa.close();a.aa.parentWindow.m=v(a.hd,a);a.aa.parentWindow.d=v(a.hc,a,!0);a.aa.parentWindow.rpcClose=v(a.hc,a,!1);c=a.aa.createElement("div");a.aa.parentWindow.document.body.appendChild(c);
c.innerHTML='<iframe src="'+a.ta+'"></iframe>';a.b.Z(1)}g.hd=function(a){Fj(v(this.Vd,this,a),0)};g.Vd=function(a){this.Ba||(yj(this),Bj(this,a),uj(this))};g.hc=function(a){Fj(v(this.Ud,this,a),0)};g.Ud=function(a){this.Ba||(zj(this),this.$=a,this.b.kb(this),this.b.Z(4))};g.cancel=function(){this.Ba=!0;zj(this)};function uj(a){a.Ob=w()+a.k;Gj(a,a.k)}function Gj(a,b){if(null!=a.Oa)throw Error("WatchDog timer not null");a.Oa=Fj(v(a.Nd,a),b)}function yj(a){a.Oa&&(n.clearTimeout(a.Oa),a.Oa=null)}
g.Nd=function(){this.Oa=null;var a=w();0<=a-this.Ob?(2!=this.Ka&&this.b.Z(3),zj(this),this.Aa=2,V(),Cj(this)):Gj(this,this.Ob-a)};function Cj(a){a.b.kc()||a.Ba||a.b.kb(a)}function zj(a){yj(a);jb(a.jb);a.jb=null;a.g.stop();a.j.removeAll();if(a.D){var b=a.D;a.D=null;Hj(b);b.dispose()}a.aa&&(a.aa=null)}function Bj(a,b){try{a.b.mc(a,b),a.b.Z(4)}catch(c){}};function Ij(a,b,c,d,e){if(0==d)c(!1);else{var f=e||0;d--;Jj(a,b,function(e){e?c(!0):n.setTimeout(function(){Ij(a,b,c,d,f)},f)})}}function Jj(a,b,c){var d=new Image;d.onload=function(){try{Kj(d),c(!0)}catch(a){}};d.onerror=function(){try{Kj(d),c(!1)}catch(a){}};d.onabort=function(){try{Kj(d),c(!1)}catch(a){}};d.ontimeout=function(){try{Kj(d),c(!1)}catch(a){}};n.setTimeout(function(){if(d.ontimeout)d.ontimeout()},b);d.src=a}
function Kj(a){a.onload=null;a.onerror=null;a.onabort=null;a.ontimeout=null};function Lj(a){this.b=a;this.g=new fj(null,!0)}g=Lj.prototype;g.Gb=null;g.O=null;g.ob=!1;g.$b=null;g.nb=null;g.Ib=null;g.Mb=null;g.U=null;g.ja=-1;g.Ya=null;g.Za=null;g.connect=function(a){this.Mb=a;a=Mj(this.b,null,this.Mb);V();this.$b=w();var b=this.b.q;null!=b?(this.Ya=b[0],(this.Za=b[1])?(this.U=1,Nj(this)):(this.U=2,Oj(this))):(zg(a,"MODE","init"),this.O=new oj(this,0,void 0,void 0,void 0),this.O.xa=this.Gb,tj(this.O,a,!1,null,!0),this.U=0)};
function Nj(a){var b=Mj(a.b,a.Za,"/mail/images/cleardot.gif");Bg(b);Ij(b.toString(),5E3,v(a.md,a),3,2E3);a.Z(1)}g.md=function(a){if(a)this.U=2,Oj(this);else{V();var b=this.b;b.X=b.qa.ja;W(b,9)}a&&this.Z(2)};
function Oj(a){var b=a.b.u;if(null!=b)V(),b?(V(),Pj(a.b,a,!1)):(V(),Pj(a.b,a,!0));else if(a.O=new oj(a,0,void 0,void 0,void 0),a.O.xa=a.Gb,b=a.b,b=Mj(b,b.Ua()?a.Ya:null,a.Mb),V(),!L||sc(10))zg(b,"TYPE","xmlhttp"),tj(a.O,b,!1,a.Ya,!1);else{zg(b,"TYPE","html");var c=a.O;a=Boolean(a.Ya);c.Ka=3;c.oa=Bg(b.clone());Ej(c,a)}}g.Kb=function(a){return this.b.Kb(a)};g.kc=function(){return!1};
g.mc=function(a,b){this.ja=a.Ra;if(0==this.U)if(b){try{var c=this.g.parse(b)}catch(d){c=this.b;c.X=this.ja;W(c,2);return}this.Ya=c[0];this.Za=c[1]}else c=this.b,c.X=this.ja,W(c,2);else if(2==this.U)if(this.ob)V(),this.Ib=w();else if("11111"==b){if(V(),this.ob=!0,this.nb=w(),c=this.nb-this.$b,!L||sc(10)||500>c)this.ja=200,this.O.cancel(),V(),Pj(this.b,this,!0)}else V(),this.nb=this.Ib=w(),this.ob=!1};
g.kb=function(){this.ja=this.O.Ra;if(this.O.$)0==this.U?this.Za?(this.U=1,Nj(this)):(this.U=2,Oj(this)):2==this.U&&(a=!1,(a=!L||sc(10)?this.ob:200>this.Ib-this.nb?!1:!0)?(V(),Pj(this.b,this,!0)):(V(),Pj(this.b,this,!1)));else{0==this.U?V():2==this.U&&V();var a=this.b;a.X=this.ja;W(a,2)}};g.Ua=function(){return this.b.Ua()};g.Z=function(a){this.b.Z(a)};function Qj(a){Cf.call(this);this.headers=new re;this.H=a||null;this.g=!1;this.F=this.b=null;this.Y="";this.j=0;this.k="";this.i=this.W=this.o=this.V=!1;this.u=0;this.p=null;this.fa="";this.da=this.ya=!1}z(Qj,Cf);var Rj=/^https?$/i,Sj=["POST","PUT"];g=Qj.prototype;
g.send=function(a,b,c,d){if(this.b)throw Error("[goog.net.XhrIo] Object is active with another request="+this.Y+"; newUri="+a);b=b?b.toUpperCase():"GET";this.Y=a;this.k="";this.j=0;this.V=!1;this.g=!0;this.b=this.H?nj(this.H):nj(lj);this.F=this.H?jj(this.H):jj(lj);this.b.onreadystatechange=v(this.Xb,this);try{this.W=!0,this.b.open(b,String(a),!0),this.W=!1}catch(e){Tj(this,e);return}a=c||"";var f=this.headers.clone();d&&lg(d,function(a,b){f.set(b,a)});d=Da(f.ma(),Uj);c=n.FormData&&a instanceof n.FormData;
!D(Sj,b)||d||c||f.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");lg(f,function(a,b){this.b.setRequestHeader(b,a)},this);this.fa&&(this.b.responseType=this.fa);"withCredentials"in this.b&&(this.b.withCredentials=this.ya);try{Vj(this),0<this.u&&((this.da=Wj(this.b))?(this.b.timeout=this.u,this.b.ontimeout=v(this.Yb,this)):this.p=Gf(this.Yb,this.u,this)),this.o=!0,this.b.send(a),this.o=!1}catch(h){Tj(this,h)}};function Wj(a){return L&&M(9)&&fa(a.timeout)&&r(a.ontimeout)}
function Uj(a){return"content-type"==a.toLowerCase()}g.Yb=function(){"undefined"!=typeof aa&&this.b&&(this.k="Timed out after "+this.u+"ms, aborting",this.j=8,S(this,"timeout"),Hj(this,8))};function Tj(a,b){a.g=!1;a.b&&(a.i=!0,a.b.abort(),a.i=!1);a.k=b;a.j=5;Xj(a);Yj(a)}function Xj(a){a.V||(a.V=!0,S(a,"complete"),S(a,"error"))}function Hj(a,b){a.b&&a.g&&(a.g=!1,a.i=!0,a.b.abort(),a.i=!1,a.j=b||7,S(a,"complete"),S(a,"abort"),Yj(a))}
g.G=function(){this.b&&(this.g&&(this.g=!1,this.i=!0,this.b.abort(),this.i=!1),Yj(this,!0));Qj.C.G.call(this)};g.Xb=function(){this.N()||(this.W||this.o||this.i?Zj(this):this.xd())};g.xd=function(){Zj(this)};
function Zj(a){if(a.g&&"undefined"!=typeof aa&&(!a.F[1]||4!=vj(a)||2!=wj(a)))if(a.o&&4==vj(a))Gf(a.Xb,0,a);else if(S(a,"readystatechange"),4==vj(a)){a.g=!1;try{var b=wj(a),c,d;t:switch(b){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:d=!0;break t;default:d=!1}if(!(c=d)){var e;if(e=0===b){var f=Zc(String(a.Y))[1]||null;if(!f&&self.location)var h=self.location.protocol,f=h.substr(0,h.length-1);e=!Rj.test(f?f.toLowerCase():"")}c=e}if(c)S(a,"complete"),S(a,"success");else{a.j=6;var k;
try{k=2<vj(a)?a.b.statusText:""}catch(l){k=""}a.k=k+" ["+wj(a)+"]";Xj(a)}}finally{Yj(a)}}}function Yj(a,b){if(a.b){Vj(a);var c=a.b,d=a.F[0]?ba:null;a.b=null;a.F=null;b||S(a,"ready");try{c.onreadystatechange=d}catch(e){}}}function Vj(a){a.b&&a.da&&(a.b.ontimeout=null);fa(a.p)&&(n.clearTimeout(a.p),a.p=null)}function vj(a){return a.b?a.b.readyState:0}function wj(a){try{return 2<vj(a)?a.b.status:-1}catch(b){return-1}}function xj(a){try{return a.b?a.b.responseText:""}catch(b){return""}};function ck(a,b,c){this.p=a||null;this.b=1;this.g=[];this.j=[];this.k=new fj(null,!0);this.q=b||null;this.u=null!=c?c:null}function dk(a,b){this.b=a;this.map=b;this.La=null}g=ck.prototype;g.eb=null;g.M=null;g.B=null;g.Eb=null;g.ib=null;g.Zb=null;g.lb=null;g.Xa=0;g.$c=0;g.I=null;g.ua=null;g.ha=null;g.Da=null;g.qa=null;g.hb=null;g.Ga=-1;g.dc=-1;g.X=-1;g.Wa=0;g.Ja=0;g.za=8;var ek=new Cf;function fk(a){R.call(this,"statevent",a)}z(fk,R);function gk(a){R.call(this,"timingevent",a)}z(gk,R);
function hk(a){R.call(this,"serverreachability",a)}z(hk,R);g=ck.prototype;g.connect=function(a,b,c,d,e){V();this.Eb=b;this.eb=c||{};d&&r(e)&&(this.eb.OSID=d,this.eb.OAID=e);this.qa=new Lj(this);this.qa.Gb=null;this.qa.g=this.k;this.qa.connect(a)};g.disconnect=function(){ik(this);if(3==this.b){var a=this.Xa++,b=this.ib.clone();T(b,"SID",this.i);T(b,"RID",a);T(b,"TYPE","terminate");jk(this,b);a=new oj(this,0,this.i,a,void 0);a.Ka=2;a.oa=Bg(b.clone());(new Image).src=a.oa;a.Va=w();uj(a)}kk(this)};
function ik(a){if(a.qa){var b=a.qa;b.O&&(b.O.cancel(),b.O=null);b.ja=-1;a.qa=null}a.B&&(a.B.cancel(),a.B=null);a.ha&&(n.clearTimeout(a.ha),a.ha=null);lk(a);a.M&&(a.M.cancel(),a.M=null);a.ua&&(n.clearTimeout(a.ua),a.ua=null)}function mk(a,b){if(0==a.b)throw Error("Invalid operation: sending map when state is closed");a.g.push(new dk(a.$c++,b));2!=a.b&&3!=a.b||nk(a)}g.kc=function(){return 0==this.b};function nk(a){a.M||a.ua||(a.ua=Fj(v(a.gc,a),0),a.Wa=0)}g.gc=function(a){this.ua=null;ok(this,a)};
function ok(a,b){if(1==a.b){if(!b){a.Xa=Math.floor(1E5*Math.random());var c=a.Xa++,d=new oj(a,0,"",c,void 0);d.xa=null;var e=pk(a),f=a.ib.clone();T(f,"RID",c);a.p&&T(f,"CVER",a.p);jk(a,f);rj(d,f,e);a.M=d;a.b=2}}else 3==a.b&&(b?qk(a,b):0!=a.g.length&&(a.M||qk(a)))}
function qk(a,b){var c,d;b?6<a.za?(a.g=a.j.concat(a.g),a.j.length=0,c=a.Xa-1,d=pk(a)):(c=b.q,d=b.Ta):(c=a.Xa++,d=pk(a));var e=a.ib.clone();T(e,"SID",a.i);T(e,"RID",c);T(e,"AID",a.Ga);jk(a,e);c=new oj(a,0,a.i,c,a.Wa+1);c.xa=null;c.setTimeout(Math.round(1E4)+Math.round(1E4*Math.random()));a.M=c;rj(c,e,d)}function jk(a,b){if(a.I){var c=a.I.zc(a);c&&lg(c,function(a,c){T(b,c,a)})}}
function pk(a){var b=Math.min(a.g.length,1E3),c=["count="+b],d;6<a.za&&0<b?(d=a.g[0].b,c.push("ofs="+d)):d=0;for(var e=0;e<b;e++){var f=a.g[e].b,h=a.g[e].map,f=6>=a.za?e:f-d;try{lg(h,function(a,b){c.push("req"+f+"_"+b+"="+encodeURIComponent(a))})}catch(k){c.push("req"+f+"_type="+encodeURIComponent("_badmap"))}}a.j=a.j.concat(a.g.splice(0,b));return c.join("&")}function rk(a){a.B||a.ha||(a.o=1,a.ha=Fj(v(a.vc,a),0),a.Ja=0)}
function sk(a){if(a.B||a.ha||3<=a.Ja)return!1;a.o++;a.ha=Fj(v(a.vc,a),tk(a,a.Ja));a.Ja++;return!0}g.vc=function(){this.ha=null;this.B=new oj(this,0,this.i,"rpc",this.o);this.B.xa=null;this.B.Fb=0;var a=this.Zb.clone();T(a,"RID","rpc");T(a,"SID",this.i);T(a,"CI",this.hb?"0":"1");T(a,"AID",this.Ga);jk(this,a);if(!L||sc(10))T(a,"TYPE","xmlhttp"),tj(this.B,a,!0,this.lb,!1);else{T(a,"TYPE","html");var b=this.B,c=Boolean(this.lb);b.Ka=3;b.oa=Bg(a.clone());Ej(b,c)}};
function Pj(a,b,c){a.hb=c;a.X=b.ja;a.yd(1,0);a.ib=Mj(a,null,a.Eb);nk(a)}
g.mc=function(a,b){if(0!=this.b&&(this.B==a||this.M==a))if(this.X=a.Ra,this.M==a&&3==this.b)if(7<this.za){var c;try{c=this.k.parse(b)}catch(d){c=null}if(s(c)&&3==c.length)if(0==c[0])t:{if(!this.ha){if(this.B)if(this.B.Va+3E3<this.M.Va)lk(this),this.B.cancel(),this.B=null;else break t;sk(this);V()}}else this.dc=c[1],0<this.dc-this.Ga&&37500>c[2]&&this.hb&&0==this.Ja&&!this.Da&&(this.Da=Fj(v(this.Xc,this),6E3));else W(this,11)}else"y2f%"!=b&&W(this,11);else if(this.B==a&&lk(this),!/^[\s\xa0]*$/.test(b)){c=
this.k.parse(b);s(c);for(var e=0;e<c.length;e++){var f=c[e];this.Ga=f[0];f=f[1];2==this.b?"c"==f[0]?(this.i=f[1],this.lb=f[2],f=f[3],null!=f?this.za=f:this.za=6,this.b=3,this.I&&this.I.cc(this),this.Zb=Mj(this,this.Ua()?this.lb:null,this.Eb),rk(this)):"stop"==f[0]&&W(this,7):3==this.b&&("stop"==f[0]?W(this,7):"noop"!=f[0]&&this.I&&this.I.bc(this,f),this.Ja=0)}}};g.Xc=function(){null!=this.Da&&(this.Da=null,this.B.cancel(),this.B=null,sk(this),V())};
function lk(a){null!=a.Da&&(n.clearTimeout(a.Da),a.Da=null)}
g.kb=function(a){var b;if(this.B==a)lk(this),this.B=null,b=2;else if(this.M==a)this.M=null,b=1;else return;this.X=a.Ra;if(0!=this.b)if(a.$)1==b?(w(),S(ek,new gk(ek)),nk(this),this.j.length=0):rk(this);else{var c=a.Aa,d;if(!(d=3==c||7==c||0==c&&0<this.X)){if(d=1==b)this.M||this.ua||1==this.b||2<=this.Wa?d=!1:(this.ua=Fj(v(this.gc,this,a),tk(this,this.Wa)),this.Wa++,d=!0);d=!(d||2==b&&sk(this))}if(d)switch(c){case 1:W(this,5);break;case 4:W(this,10);break;case 3:W(this,6);break;case 7:W(this,12);break;
default:W(this,2)}}};function tk(a,b){var c=5E3+Math.floor(1E4*Math.random());a.I||(c*=2);return c*b}g.yd=function(a){if(!D(arguments,this.b))throw Error("Unexpected channel state: "+this.b);};function W(a,b){if(2==b||9==b){var c=null;a.I&&(c=null);var d=v(a.Hd,a);c||(c=new mg("//www.google.com/images/cleardot.gif"),Bg(c));Jj(c.toString(),1E4,d)}else V();uk(a,b)}g.Hd=function(a){a?V():(V(),uk(this,8))};function uk(a,b){a.b=0;a.I&&a.I.jc(a,b);kk(a);ik(a)}
function kk(a){a.b=0;a.X=-1;if(a.I)if(0==a.j.length&&0==a.g.length)a.I.Hb(a);else{var b=Na(a.j),c=Na(a.g);a.j.length=0;a.g.length=0;a.I.Hb(a,b,c)}}function Mj(a,b,c){var d=Cg(c);if(""!=d.Ma)b&&og(d,b+"."+d.Ma),pg(d,d.ab);else var e=window.location,d=Dg(e.protocol,b?b+"."+e.hostname:e.hostname,e.port,c);a.eb&&lg(a.eb,function(a,b){T(d,b,a)});T(d,"VER",a.za);jk(a,d);return d}g.Kb=function(a){if(a)throw Error("Can't create secondary domain capable XhrIo object.");a=new Qj;a.ya=!1;return a};
function Fj(a,b){if(!ga(a))throw Error("Fn must not be null and must be a function");return n.setTimeout(function(){a()},b)}g.Z=function(){S(ek,new hk(ek))};function V(){S(ek,new fk(ek))}g.Ua=function(){return!(!L||sc(10))};function vk(){}g=vk.prototype;g.cc=function(){};g.bc=function(){};g.jc=function(){};g.Hb=function(){};g.zc=function(){return{}};function wk(a,b){Ef.call(this);if(ga(a))b&&(a=v(a,b));else if(a&&ga(a.handleEvent))a=v(a.handleEvent,a);else throw Error("Invalid listener argument");this.p=a;sf(this,"tick",v(this.o,this));this.stop();Ff(this,5E3+2E4*Math.random())}z(wk,Ef);wk.prototype.k=0;wk.prototype.o=function(){if(500<this.b){var a=this.b;24E4>2*a&&(a*=2);Ff(this,a)}this.p()};wk.prototype.start=function(){wk.C.start.call(this);this.k=w()+this.b};wk.prototype.stop=function(){this.k=0;wk.C.stop.call(this)};function xk(a,b){this.H=a;this.j=b;this.i=new F;this.g=new wk(this.Oc,this);this.b=null;this.F=!1;this.o=null;this.u="";this.q=this.k=0;this.p=[]}z(xk,vk);g=xk.prototype;g.J=function(a,b,c){return this.i.J(a,b,c)};g.wa=function(a,b,c){return this.i.wa(a,b,c)};g.ia=function(a){return this.i.ia(a)};g.t=function(a,b){return this.i.t.apply(this.i,arguments)};g.dispose=function(){this.F||(this.F=!0,this.i.clear(),this.disconnect(),jb(this.i))};g.N=function(){return this.F};
g.connect=function(a,b,c){if(!this.b||2!=this.b.b){this.u="";this.g.stop();this.o=a||null;this.k=b||0;a=this.H+"/test";b=this.H+"/bind";var d=new ck("1",c?c.firstTestResults:null,c?c.secondTestResults:null),e=this.b;e&&(e.I=null);d.I=this;this.b=d;e?this.b.connect(a,b,this.j,e.i,e.Ga):c?this.b.connect(a,b,this.j,c.sessionId,c.arrayId):this.b.connect(a,b,this.j)}};g.disconnect=function(a){this.q=a||0;this.g.stop();this.b&&(3==this.b.b&&ok(this.b),this.b.disconnect());this.q=0};
g.sendMessage=function(a,b){var c={_sc:a};b&&db(c,b);this.g.ga||2==(this.b?this.b.b:0)?this.p.push(c):yk(this)&&mk(this.b,c)};g.cc=function(){var a=this.g;a.stop();Ff(a,5E3+2E4*Math.random());this.o=null;this.k=0;if(this.p.length){a=this.p;this.p=[];for(var b=0,c=a.length;b<c;++b)mk(this.b,a[b])}this.t("handlerOpened")};g.jc=function(a,b){var c=2==b&&401==this.b.X;if(4!=b&&!c){if(6==b||410==this.b.X)c=this.g,c.stop(),Ff(c,500);this.g.start()}this.t("handlerError",b)};
g.Hb=function(a,b,c){if(!this.g.ga)this.t("handlerClosed");else if(c)for(a=0,b=c.length;a<b;++a)this.p.push(c[a].map)};g.zc=function(){var a={v:2};this.u&&(a.gsessionid=this.u);0!=this.k&&(a.ui=""+this.k);0!=this.q&&(a.ui=""+this.q);this.o&&db(a,this.o);return a};g.bc=function(a,b){if("S"==b[0])this.u=b[1];else if("gracefulReconnect"==b[0]){var c=this.g;c.stop();Ff(c,500);this.g.start();this.b.disconnect()}else this.t("handlerMessage",new dj(b[0],b[1]))};function yk(a){return!!a.b&&3==a.b.b}
g.getDeviceId=function(){return this.j.id};g.Oc=function(){this.g.stop();var a=this.b,b=0;a.B&&b++;a.M&&b++;0!=b?this.g.start():this.connect(this.o,this.k)};function zk(){this.j=new F;ib(this,na(jb,this.j))}z(zk,hb);zk.prototype.J=function(a,b,c){return this.N()?0:this.j.J(a,b,c)};zk.prototype.wa=function(a,b,c){return this.N()?!1:this.j.wa(a,b,c)};zk.prototype.ia=function(a){return this.N()?!1:this.j.ia(a)};zk.prototype.t=function(a,b){return this.N()?!1:this.j.t.apply(this.j,arguments)};function Ak(a){Bk(this,a)}function Ck(a){a.p=-1;a.o=!1;a.k=null;a.g=-1;a.i=null;a.j=0;a.q=w()}function Bk(a,b){a.b=[];a.index=-1;Ck(a);b&&(a.b=b.videoIds,a.index=b.index,a.g=b.playerState,a.i=b.errorReason,a.p=b.volume,a.o=b.muted,a.k=b.trackData,a.j=b.playerTime,a.q=b.playerTimeAt)}function Dk(a){return a.b[a.index]}function Ek(a){switch(a.g){case 1:return(w()-a.q)/1E3+a.j;case -1E3:return 0}return a.j}function Fk(a,b){var c=a.index;a.index=za(a.b,b);c!=a.index&&Ck(a)}
function Gk(a,b,c){c=c||Dk(a);Ta(a.b,b)&&c==Dk(a)||(a.b=Na(b),Fk(a,c))}Ak.prototype.add=function(a){return a&&!D(this.b,a)?(this.b.push(a),!0):!1};Ak.prototype.remove=function(a){var b=Dk(this);return Ka(this.b,a)?(this.index=za(this.b,b),!0):!1};function Hk(a){var b={};b.videoIds=Na(a.b);b.index=a.index;b.playerState=a.g;b.errorReason=a.i;b.volume=a.p;b.muted=a.o;b.trackData=bb(a.k);b.playerTime=a.j;b.playerTimeAt=a.q;return b}Ak.prototype.clone=function(){return new Ak(Hk(this))};function X(a,b){zk.call(this);this.u=[];this.u.push(O(window,"beforeunload",v(this.Pc,this)));this.i=[];this.b=new Ak;this.H=a.K;this.g=new xk("/api/lounge/bc",b);this.g.J("handlerOpened",this.Tc,this);this.g.J("handlerClosed",this.Qc,this);this.g.J("handlerError",this.Rc,this);this.g.J("handlerMessage",this.Sc,this);var c=this.g,d=a.S;(c.j.loungeIdToken=d)||c.g.stop()}z(X,zk);g=X.prototype;g.na=NaN;g.Rb=NaN;
g.connect=function(a,b){if(b){var c=b.videoIds[b.index],d=b.currentTime||0;5>=d&&(d=0);var e={videoIds:c,videoId:c,currentTime:d};this.b.b=[c];this.b.index=0;this.b.state=3;c=this.b;c.j=d;c.q=w();this.log_("Connecting with setPlaylist and params: "+xe(e));this.g.connect({method:"setPlaylist",params:xe(e)},a,Ei())}else this.log_("Connecting without params"),this.g.connect({},a,Ei());Ik(this)};g.dispose=function(){this.N()||Jk(this,3);X.C.dispose.call(this)};
g.G=function(){Kk(this);Lk(this);Wc(this.u);this.u.length=0;this.g.dispose();X.C.G.call(this);this.i=this.b=this.g=null};g.log_=function(a){ui("conn",a)};g.Pc=function(){this.o(2)};function Jk(a,b){a.t("proxyStateChange",b)}function Ik(a){a.na=H(v(function(){this.log_("Connecting timeout");this.o(1)},a),1E4)}function Kk(a){tb(a.na);a.na=NaN}function Mk(a){Lk(a);a.Rb=H(v(function(){this.p("getNowPlaying")},a),2E4)}function Lk(a){tb(a.Rb);a.Rb=NaN}
g.Tc=function(){this.log_("Channel opened");var a=this.g,b=this.H;$g("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!a.b.hb,sessionId:a.b.i,arrayId:a.b.Ga});$g("yt-remote-session-screen-id",b);a=yi();b=zi();D(a,b)||a.push(b);Ci(a);xi()};g.Qc=function(){this.log_("Channel closed");isNaN(this.na)?Ki(!0):Ki();this.dispose()};
g.Rc=function(a){Ki();isNaN(this.k())?(this.log_("Channel error: "+a+" without reconnection"),this.dispose()):(this.log_("Channel error: "+a+" with reconnection in "+this.k()+" ms"),Jk(this,2))};
g.Sc=function(a){a.params?this.log_("Received: action="+a.action+", params="+xe(a.params)):this.log_("Received: action="+a.action);Nk(this,a);Ok(this,a);if(yk(this.g)&&isNaN(this.na)){var b=this.b.clone(),c=!1,d,e,f,h,k,l,m;a.params&&(d=a.params.videoId||a.params.video_id,e=a.params.videoIds||a.params.video_ids,f=a.params.state,h=a.params.currentTime||a.params.current_time,k=a.params.volume,l=a.params.muted,r(a.params.currentError)&&(m=ve(a.params.currentError)));if("onSubtitlesTrackChanged"==a.action)d==
Dk(this.b)&&(delete a.params.videoId,$a(a.params)?this.b.k=null:this.b.k=a.params,this.t("remotePlayerChange"));else if(Dk(this.b)||"onStateChange"!=a.action)"playlistModified"!=a.action&&"nowPlayingPlaylist"!=a.action||e?(d||"nowPlaying"!=a.action&&"nowPlayingPlaylist"!=a.action?d||(d=Dk(this.b)):Fk(this.b,""),e&&(e=e.split(","),Gk(this.b,e,d))):Gk(this.b,[]),this.b.add(d)&&this.p("getPlaylist"),d&&Fk(this.b,d),b.index==this.b.index&&Ta(b.b,this.b.b)||this.t("remoteQueueChange"),r(f)&&(b=parseInt(f,
10),b=isNaN(b)?-1:b,-1==b&&-1E3==this.b.g&&(b=-1E3),0==b&&"0"==h&&(b=-1),c=c||b!=this.b.g,this.b.g=b,d=null,-1E3==b&&(d=this.b.i||"unknown",m&&(d=m.reason||d)),c=c||this.b.i!=d,this.b.i=d,1==this.b.g?Mk(this):Lk(this)),"onError"!=a.action||-1!=this.b.g&&-1E3!=this.b.g||(a=ve(a.params.errors)||[],1==a.length&&"PLAYER_ERROR"==a[0].error&&a[0].videoId==Dk(this.b)&&(this.b.g=-1E3,this.b.i=a[0].reason||"unknown",c=!0)),h&&(b=parseInt(h,10),c=this.b,c.j=isNaN(b)?0:b,c.q=w(),c=!0),r(k)&&(b=parseInt(k,10),
isNaN(b)||(c=c||this.b.p!=b,this.b.p=b),r(l)&&(l="true"==l,c=c||this.b.o!=l,this.b.o=l)),c&&this.t("remotePlayerChange")}};
function Nk(a,b){switch(b.action){case "loungeStatus":var c=ve(b.params.devices);a.i=C(c,function(a){return new cj(a)});break;case "loungeScreenDisconnected":La(a.i,function(a){return"LOUNGE_SCREEN"==a.type});break;case "remoteConnected":var d=new cj(ve(b.params.device));Da(a.i,function(a){return a.equals(d)})||Ja(a.i,d);break;case "remoteDisconnected":d=new cj(ve(b.params.device)),La(a.i,function(a){return a.equals(d)})}}
function Ok(a,b){var c=!1;if("loungeStatus"==b.action)c=!!Da(a.i,function(a){return"LOUNGE_SCREEN"==a.type});else if("loungeScreenConnected"==b.action)c=!0;else if("loungeScreenDisconnected"==b.action)c=!1;else return;c==(yk(a.g)&&isNaN(a.na))?c&&Jk(a,1):c?(Kk(a),a.F()&&Bk(a.b),Jk(a,1),a.p("getNowPlaying")):a.o(1)}X.prototype.subscribe=X.prototype.J;X.prototype.unsubscribeByKey=X.prototype.ia;
X.prototype.Y=function(){var a=3;isNaN(this.k())?yk(this.g)&&isNaN(this.na)?a=1:isNaN(this.na)||(a=0):a=2;return a};X.prototype.getProxyState=X.prototype.Y;X.prototype.o=function(a){this.log_("Disconnecting with "+a);1==a&&Ki();this.g.disconnect(a);this.dispose()};X.prototype.disconnect=X.prototype.o;X.prototype.W=function(){return Hk(this.b)};X.prototype.getPlayerContextData=X.prototype.W;
X.prototype.da=function(a){var b=new Ak(a),c=[];this.b.index==b.index&&Ta(this.b.b,b.b)||c.push("remoteQueueChange");this.b.g==b.g&&this.b.p==b.p&&this.b.o==b.o&&Ek(this.b)==Ek(b)&&xe(this.b.k)==xe(b.k)||c.push("remotePlayerChange");Bk(this.b,a);B(c,function(a){this.t(a)},this)};X.prototype.setPlayerContextData=X.prototype.da;X.prototype.V=function(){return this.g.j.loungeIdToken};X.prototype.getLoungeToken=X.prototype.V;
X.prototype.F=function(){var a=this.g.getDeviceId(),b=Da(this.i,function(b){return"REMOTE_CONTROL"==b.type&&b.id!=a});return b?b.id:""};X.prototype.getOtherConnectedRemoteId=X.prototype.F;X.prototype.k=function(){var a=this.g;return a.g.ga?a.g.k-w():NaN};X.prototype.getReconnectTimeout=X.prototype.k;X.prototype.fa=function(){if(!isNaN(this.k())){var a=this.g.g;a.ga&&(a.stop(),a.start(),a.o())}};X.prototype.reconnect=X.prototype.fa;
X.prototype.p=function(a,b){b?this.log_("Sending: action="+a+", params="+xe(b)):this.log_("Sending: action="+a);this.g.sendMessage(a,b)};X.prototype.sendMessage=X.prototype.p;function Pk(){zk.call(this);this.ba=hi(Gi());this.log_("Initializing local screens: "+Zh(this.ba));this.pa=Qk();this.log_("Initializing account screens: "+Zh(this.pa));this.Jb=null;this.b=[];this.g=[];Rk(this,Xi());this.log_("Initializing DIAL devices: "+Wh(this.g));var a=hi(Hi());Sk(this,a);this.log_("Initializing online screens: "+Zh(this.b));Tk(this)}z(Pk,zk);ca(Pk);var Uk=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];g=Pk.prototype;g.fb=NaN;g.yb="";g.log_=function(a){ui("RM",a)};
function Vk(a){var b=navigator.userAgent;if(0<=b.search("MSIE")&&(b=b.match(/MSIE ([\d.]+)/)[1],0>va(b,"10.0")))return a;b=Zc(document.location.href);return Xc("https",b[3],a)}function Qk(){var a=hi(Gi()),b=hi(Hi());return Aa(b,function(b){return!ji(a,b)})}function Tk(a){I("yt-remote-cast-device-list-update",function(){var a=Xi();Rk(this,a)},a);I("yt-remote-cast-device-status-update",a.Od,a);a.xb();sb(v(a.xb,a))}
g.t=function(a,b){if(this.N())return!1;this.log_("Firing "+a);return this.j.t.apply(this.j,arguments)};g.xb=function(){var a=Xi();Ga(a)||Rk(this,a);a=Wk(this);Ga(a)||(Ba(a,function(a){return!ji(this.pa,a)},this)&&!ch("yt-remote-lounge-token-expiration")?Xk(this):Yk(this,a))};function Zk(a){Sk(a,a.b,!0);Rk(a,Xi());a.t("managedScreenChange",Wk(a))}function $k(a,b){var c=Wk(a);return Aa(b,function(a){return a.R?(a=fi(this.g,a.R),!!a&&"RUNNING"==a.status):!!ji(c,a)},a)}
function Rk(a,b){var c=!1;B(b,function(a){var b=ki(this.ba,a.id);b&&b.name!=a.name&&(this.log_("Renaming screen id "+b.id+" from "+b.name+" to "+a.name),b.name=a.name,c=!0)},a);c&&(a.log_("Renaming due to DIAL."),al(a));Ii(ci(b));var d=!Ta(a.g,b,ei);d&&a.log_("Updating DIAL devices: "+Wh(a.g)+" to "+Wh(b));a.g=b;Sk(a,a.b);d&&a.t("onlineReceiverChange")}
g.Od=function(a){var b=fi(this.g,a.id);b&&(this.log_("Updating DIAL device: "+b.id+"("+b.name+") from status: "+b.status+" to status: "+a.status+" and from activityId: "+b.activityId+" to activityId: "+a.activityId),b.activityId=a.activityId,b.status=a.status,Ii(ci(this.g)));Sk(this,this.b)};function Sk(a,b,c){var d=$k(a,b),e=!Ta(a.b,d,ii);!e&&!c||Ga(b)||(b=gi(d),$g("yt-remote-online-screens",b,60));e&&(a.log_("Updating online screens: "+Zh(a.b)+" -> "+Zh(d)),a.b=d,a.t("onlineReceiverChange"))}
function Yk(a,b){var c=[],d={};B(b,function(a){a.S&&(d[a.S]=a,c.push(a.S))});var e={method:"POST",ka:{lounge_token:c.join(",")},La:a,onSuccess:function(a,b){var c=[];B(b.screens||[],function(a){"online"==a.status&&c.push(d[a.loungeToken])});var e=this.Jb?bl(this,this.Jb):null;e&&!ji(c,e)&&c.push(e);Sk(this,c,!0)}};Ie(Vk("/api/lounge/pairing/get_screen_availability"),e)}
function Xk(a){var b=Wk(a),c=C(b,function(a){return a.K});Ga(c)||(a.log_("Updating lounge tokens for: "+xe(c)),Ie(Vk("/api/lounge/pairing/get_lounge_token_batch"),{ka:{screen_ids:c.join(",")},method:"POST",La:a,onSuccess:function(a,c){cl(this,c.screens||[]);this.ba=Aa(this.ba,function(a){return!!a.S});al(this);Yk(this,b)}}))}function cl(a,b){B(Ma(a.ba,a.pa),function(a){var d=Da(b,function(b){return a.K==b.screenId});d&&(a.S=d.loungeToken)})}
function al(a){var b=hi(Gi());Ta(a.ba,b,ii)||(a.log_("Saving local screens: "+Zh(b)+" to "+Zh(a.ba)),Fi(gi(a.ba)),Zk(a))}function dl(a,b,c){var d=Fa(b,function(a){return c||a?c&&a?c.K==a.K:!1:!0}),e=0>d?!0:!1;0>d?b.push(c):b[d]=c;ji(a.b,c)||a.b.push(c);return e}
g.oc=function(a,b,c){var d=!1;b>=Uk.length&&(this.log_("Pairing DIAL device "+a+" with "+c+" timed out."),d=!0);var e=fi(this.g,a);if(!e)this.log_("Pairing DIAL device "+a+" with "+c+" failed: no device for "+a),d=!0;else if("ERROR"==e.status||"STOPPED"==e.status)this.log_("Pairing DIAL device "+a+" with "+c+" failed: launch error on "+a),d=!0;d?(el(this),this.t("screenPair",null)):Ie(Vk("/api/lounge/pairing/get_screen"),{method:"POST",ka:{pairing_code:c},La:this,onSuccess:function(a,b){if(c==this.yb){el(this);
var d=new Xh(b.screen);d.name=e.name;d.R=e.id;this.log_("Pairing "+c+" succeeded.");var l=dl(this,this.ba,d);this.log_("Paired with "+(l?"a new":"an old")+" local screen:"+Yh(d));al(this);this.t("screenPair",d)}},onError:function(){c==this.yb&&(this.log_("Polling pairing code: "+c),tb(this.fb),this.fb=H(v(this.oc,this,a,b+1,c),Uk[b]))}})};
function fl(a,b,c){var d=Y,e="";el(d);if(fi(d.g,a)){if(!e){var f=e=$h();Qi();var h=Zi(a),k=Ni();if(k&&h){var l=new cast.Receiver(h.id,h.name),l=new cast.LaunchRequest("YouTube",l);l.parameters="pairingCode="+f;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",Vi(h),J("yt-remote-cast-device-status-update",h));
Mi("Sending a cast launch request with params: "+l.parameters);k.launch(l,na($i,a))}else Mi("No cast API or no cast device. Dropping cast launch.")}d.yb=e;d.fb=H(v(d.oc,d,a,0,e),Uk[0])}else d.log_("No DIAL device with id: "+a)}function el(a){tb(a.fb);a.fb=NaN;a.yb=""}function bl(a,b){var c=ki(Wk(a),b);a.log_("Found screen: "+Yh(c)+" with key: "+b);return c}function gl(a){var b=Y,c=ki(b.b,a);b.log_("Found online screen: "+Yh(c)+" with key: "+a);return c}
function hl(a){var b=Y,c=fi(b.g,a);if(!c){var d=ki(b.ba,a);d&&(c=fi(b.g,d.R))}b.log_("Found DIAL: "+(c?c.toString():"null")+" with key: "+a);return c}function Wk(a){return Ma(a.pa,Aa(a.ba,function(a){return!ji(this.pa,a)},a))}
function il(a){var b=Vk("/api/lounge/screens");Ie(b,{method:"GET",La:a,withCredentials:!0,onSuccess:function(a,b){this.pa=C(Wa(b),function(a){return new Xh(a)});this.log_("Load account screens successfully.");this.xb();Zk(this);this.t("accountScreenLoad")},onError:function(){ui("RM","Load account screens failed.")}})};function jl(){if($a(kl)){var a=zi();kl={device:"REMOTE_CONTROL",id:a,name:"Desktop",app:"youtube-desktop"};x("yt.mdx.remote.channelParams_",kl);ll("Init with id = "+a+", name = Desktop, app = youtube-desktop");(a=ml())?(ll("Resume connection to: "+Yh(a)),nl(a,0)):(Ki(),ll("Skipping connecting because no session screen found."))}}
function ol(){pl&&(pl=!1,B(ql,function(a){a(null)}),ql.length=0,Y.wa("screenPair",rl),Y.wa("managedScreenChange",sl),Vc("storage",tl),x("yt.mdx.remote.deferredProxies_",null),ql=Y=null,kl={},Ui())}function ul(){var a=vl();return a?bl(Y,a):null}function wl(a,b){ll("Connecting to: "+xe(a));xl(1);yl(b||null);var c=gl(a.key);c?nl(c,1):(c=hl(a.key))?zl(c):H(function(){Al(null)},0)}function xl(a){el(Y);1==a&&Bl();var b=Cl();b&&b.disconnect(a);Al(null)}function ll(a){ui("remote",a)}
function vl(){return p("yt.mdx.remote.currentScreenId_")}function Dl(a){x("yt.mdx.remote.currentScreenId_",a);var b=Y;if((b.Jb=a)&&(a=bl(b,a))&&!ji(b.b,a)){var c=Na(b.b);c.push(a);Sk(b,c,!0)}}function El(){return p("yt.mdx.remote.currentDialId_")}function Fl(a){x("yt.mdx.remote.currentDialId_",a)}function Gl(){return p("yt.mdx.remote.connectData_")}function yl(a){x("yt.mdx.remote.connectData_",a)}function Cl(){return p("yt.mdx.remote.connection_")}
function Al(a){var b=Cl();yl(null);a?ya(!Cl()):(Dl(""),Fl(""));x("yt.mdx.remote.connection_",a);B(ql,function(b){b(a)});ql.length=0;b&&!a?J("remote-connection-change",!1):!b&&a&&J("remote-connection-change",!0)}function ml(){var a=Ai();return a?bl(Y,a):null}function nl(a,b){ya(!vl());Dl(a.K);var c=new X(a,kl);c.connect(b,Gl());ib(c,function(){Cl()&&(Cl(),Al(null))});Al(c)}
function zl(a){El();ll("Connecting to: "+(a?a.toString():"null"));Fl(a.id);var b=Gl();b?fl(a.id,b.videoIds[b.index],b.currentTime):fl(a.id)}function rl(a){ll("Paired with: "+Yh(a));a?nl(a,1):Al(null)}function Bl(){var a=Cl();if(a&&(a=a.getOtherConnectedRemoteId())){ll("Do not stop DIAL due to "+a);Fl("");return}(a=El())?(ll("Stopping DIAL: "+a),aj(a),Fl("")):(a=ul())&&a.R&&(ll("Stopping DIAL: "+a.R),aj(a.R))}
function sl(){var a=vl();a&&!ul()&&(ll("Dropping current screen with id: "+a),xl(1));ml()||Ki()}function tl(a){"yt-remote-session-screen-id"==a.key&&Ai()&&(ll("Disconnecting due to multiple connections."),Ai()!=vl()&&Bl(),xl(2))}var pl=!1,ql=null,Y=null,kl={};var Hl=null,Il=NaN;function Jl(){Ga(Hi())&&Ga(Ji())||Kl();var a;if(ch("yt-remote-delayed-connect-key"))a=!0;else{a=Ai();var b=hi(Hi());a=!!ki(b,a)}a&&(a=Hl,"html5"!=a.getPlayerType()&&a.loadNewVideoConfig(a.getCurrentVideoConfig(),"html5"))}function Ll(a){if(a=ai(bj(),a)){var b=Hl;if("html5"!=b.getPlayerType()){var c=b.getVideoData().video_id,d=b.getCurrentTime();wl(a,{videoIds:[c],index:0,currentTime:d});b.loadNewVideoConfig(b.getCurrentVideoConfig(),"html5")}}}
function Kl(){var a=Hl;a.updateRemoteReceivers&&a.updateRemoteReceivers(bj())};var Ml=null,Nl=[];function Ol(a){return{Ub:a.externalChannelId,Ec:a.offersUrl,source:a.source,Kd:a.subscriptionId}}function Pl(a){a=Ol(a);Hh()?(J("subscription-subscribe",a.Ub,a.Ec?{itemType:"U",itemId:a.Ub,offersUrl:a.Ec}:null),(a="/gen_204?"+md({event:"subscribe",source:a.source}))&&Ue(a)):Ql(a)}function Ql(a){Gh(function(b){b.subscription_ajax&&(pb("subscription_ajax",b.subscription_ajax),Pl(a))},"sub_button")}
function Rl(a){a=Ol(a);J("subscription-unsubscribe",a.Ub,a.Kd,null);(a="/gen_204?"+md({event:"unsubscribe",source:a.source}))&&Ue(a)}function Sl(a,b){Ml&&Ml.channelSubscribed(a,b)}function Tl(a){Ml&&Ml.channelUnsubscribed(a)};var Ul={auto:0,tiny:144,light:144,small:240,medium:360,large:480,hd720:720,hd1080:1080,hd1440:1440,highres:8192};function Vl(a,b,c){this.g=a||0;this.i=b||0;this.b=c}Vl.prototype.equals=function(a){return this.g==a.g&&this.i==a.i&&this.b==a.b};function Wl(a){new Vl(Ul.auto||0,Ul[a]||0,!1)}Wl("large");Wl("auto");var Xl;var Yl=$b(),Zl=Yl.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!Zl||2>Zl.length)Xl=void 0;else{var $l=Yl.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d_\d)[_ ]/);Xl=$l&&6==$l.length?Number($l[5].replace("_",".")):0}0<=Xl&&0<=$b().search("Safari")&&$b().search("Version");function am(a){return a?24==a.length&&"UC"==a.slice(0,2)?a.substr(2):22==a.length?a:null:null}
function bm(a,b){var c=G("CONVERSION_CONFIG_DICT");if(c&&(!t(b)||c.uid==am(b))){if(c.baseUrl&&c.uid){var d=c.rmktEnabled,e=c.focEnabled&&!c.isAd;if(d||e){var f={};if(d){d={utuid:c.uid,type:a};c.vid&&(d.utvid=c.vid);c.eventLabel&&(d.el=c.eventLabel);c.playerStyle&&(d.ps=c.playerStyle);c.feature&&(d.feature=c.feature);c.ppe&&(d.ppe=c.ppe);var h,k=[];for(h in d)k.push(encodeURIComponent(h)+"="+encodeURIComponent(d[h]));h=k.join(";");f.data=h}e&&"view"==a&&c.vid&&c.uid&&(c.oeid||c.ieid)&&(c.oeid&&(f.oeid=
c.oeid),c.ieid&&(f.ieid=c.ieid),f.evid=c.vid);e&&(f.label="followon_"+a,f.foc_id=c.uid);c=nd(c.baseUrl,f)}else c=null}else c=null;c&&c&&Ue(c)}};function cm(a){return(0==a.search("cue")||0==a.search("load"))&&"loadModule"!=a}function dm(a,b,c){t(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 em(a)}
function em(a,b,c){if(ha(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 fm(a,b,c,d){if(ha(a)&&!s(a)){b="playlist list listType index startSeconds suggestedQuality".split(" ");c={};for(d=0;d<b.length;d++){var e=b[d];a[e]&&(c[e]=a[e])}return c}c={index:b,startSeconds:c,suggestedQuality:d};t(a)&&16==a.length?c.list="PL"+a:c.playlist=a;return c};function gm(a,b){this.source=null;this.j=a||null;this.origin="*";this.q=window.document.location.protocol+"//"+window.document.location.hostname;this.o=b;this.i=this.b=this.g=this.k=null;O(window,"message",v(this.p,this))}
gm.prototype.p=function(a){var b=this.o||G("POST_MESSAGE_ORIGIN")||this.q;if("*"==b||a.origin==b)if(!this.j||a.source==this.j)if(this.source=a.source,this.origin="null"==a.origin?this.origin:a.origin,a=a.data,t(a)){try{a=ve(a)}catch(c){return}this.k=a.id;switch(a.event){case "listening":this.b&&(this.b(),this.b=null);break;case "command":this.g&&(this.i&&!D(this.i,a.func)||this.g(a.func,a.args))}}};gm.prototype.sendMessage=function(a){this.source&&(a.id=this.k,a=xe(a),this.source.postMessage(a,this.origin))};function hm(){var a=this.g=new gm,b=v(this.od,this);a.g=b;a.i=null;this.i=[];this.q=!1;this.p=(a=G("POST_MESSAGE_ORIGIN"))&&Kg(a)?a:null;this.j={}}g=hm.prototype;g.od=function(a,b){if(this.p&&this.p!=this.g.origin)this.dispose();else if("addEventListener"==a&&b){var c=b[0];this.j[c]||"onReady"==c||(this.addEventListener(c,im(this,c)),this.j[c]=!0)}else this.nc(a,b)};g.nc=function(){};function im(a,b){return v(function(a){this.sendMessage(b,a)},a)}g.addEventListener=function(){};
g.Zc=function(){this.q=!0;this.sendMessage("initialDelivery",this.Nb());this.sendMessage("onReady");B(this.i,this.uc,this);this.i=[]};g.Nb=function(){return null};function jm(a,b){a.sendMessage("infoDelivery",b)}g.uc=function(a){this.q?this.g.sendMessage(a):this.i.push(a)};g.sendMessage=function(a,b){this.uc({event:a,info:void 0==b?null:b})};g.dispose=function(){this.g=null};function km(a){hm.call(this);this.b=a;this.k={};this.o={};this.b.addEventListener("onReady",v(this.ad,this));this.b.addEventListener("onVideoProgress",v(this.fd,this));this.b.addEventListener("onVolumeChange",v(this.gd,this));this.b.addEventListener("onApiChange",v(this.bd,this));this.b.addEventListener("onPlaybackQualityChange",v(this.cd,this));this.b.addEventListener("onPlaybackRateChange",v(this.dd,this));this.b.addEventListener("onStateChange",v(this.ed,this))}z(km,hm);
function lm(a,b){var c=hh(b.video_id||b.videoId);c&&(b.two_stage_token=c);Va(a.k,function(a,c){if(b[c]){var f=this.o[a];f&&(b[a]=f)}},a)}g=km.prototype;
g.nc=function(a,b){if(this.b[a]){b=b||[];if(0<b.length&&cm(a)){var c;c=b;if(ha(c[0])&&!s(c[0]))c=c[0];else{var d={};switch(a){case "loadVideoById":case "cueVideoById":d=em.apply(window,c);break;case "loadVideoByUrl":case "cueVideoByUrl":d=dm.apply(window,c);break;case "loadPlaylist":case "cuePlaylist":d=fm.apply(window,c)}c=d}lm(this,c);b.length=1;b[0]=c}this.b[a].apply(this.b,b);cm(a)&&jm(this,this.Nb())}};g.ad=function(){var a=v(this.Zc,this);this.g.b=a};
g.addEventListener=function(a,b){this.b.addEventListener(a,b)};g.Nb=function(){var a=this.b.getApiInterface();Ka(a,"getVideoData");for(var b={apiInterface:a},c=0,d=a.length;c<d;c++){var e=a[c],f=e;if(0==f.search("get")||0==f.search("is")){var f=e,h=0;0==f.search("get")?h=3:0==f.search("is")&&(h=2);f=f.charAt(h).toLowerCase()+f.substr(h+1);try{var k=this.b[e]();b[f]=k}catch(l){}}}b.videoData=this.b.getVideoData();return b};
g.ed=function(a){jm(this,{playerState:a,currentTime:this.b.getCurrentTime(),duration:this.b.getDuration(),videoData:this.b.getVideoData(),videoStartBytes:0,videoBytesTotal:this.b.getVideoBytesTotal(),videoLoadedFraction:this.b.getVideoLoadedFraction(),playbackQuality:this.b.getPlaybackQuality(),availableQualityLevels:this.b.getAvailableQualityLevels(),videoUrl:this.b.getVideoUrl(),playlist:this.b.getPlaylist(),playlistIndex:this.b.getPlaylistIndex()})};g.cd=function(a){jm(this,{playbackQuality:a})};
g.dd=function(a){jm(this,{playbackRate:a})};g.bd=function(){for(var a=this.b.getOptions(),b={namespaces:a},c=0,d=a.length;c<d;c++){var e=a[c],f=this.b.getOptions(e);b[e]={options:f};for(var h=0,k=f.length;h<k;h++){var l=f[h],m=this.b.getOption(e,l);b[e][l]=m}}this.sendMessage("apiInfoDelivery",b)};g.gd=function(){jm(this,{muted:this.b.isMuted(),volume:this.b.getVolume()})};g.fd=function(a){jm(this,{currentTime:a,videoBytesLoaded:this.b.getVideoBytesLoaded(),videoLoadedFraction:this.b.getVideoLoadedFraction()})};var mm;
mm={k:["BC","AD"],j:["Before Christ","Anno Domini"],p:"JFMAMJJASOND".split(""),Y:"JFMAMJJASOND".split(""),o:"January February March April May June July August September October November December".split(" "),W:"January February March April May June July August September October November December".split(" "),F:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),fa:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),Wb:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),ya:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),
V:"Sun Mon Tue Wed Thu Fri Sat".split(" "),Bb:"Sun Mon Tue Wed Thu Fri Sat".split(" "),q:"SMTWTFS".split(""),da:"SMTWTFS".split(""),H:["Q1","Q2","Q3","Q4"],u:["1st quarter","2nd quarter","3rd quarter","4th quarter"],b:["AM","PM"],g:["EEEE, MMMM d, y","MMMM d, y","MMM d, y","M/d/yy"],Sa:["h:mm:ss a zzzz","h:mm:ss a z","h:mm:ss a","h:mm a"],i:["{1} 'at' {0}","{1} 'at' {0}","{1}, {0}","{1}, {0}"],Rd:6,be:[5,6],Sd:5};var nm=/^(\d{4})(?:(?:-?(\d{2})(?:-?(\d{2}))?)|(?:-?(\d{3}))|(?:-?W(\d{2})(?:-?([1-7]))?))?$/,om=/^(\d{2})(?::?(\d{2})(?::?(\d{2})(\.\d+)?)?)?$/,pm=/Z|(?:([-+])(\d{2})(?::?(\d{2}))?)$/;function qm(a,b,c,d,e,f){t(a)?(this.o="y"==a?b:0,this.j="m"==a?b:0,this.b="d"==a?b:0,this.g="h"==a?b:0,this.i="n"==a?b:0,this.k="s"==a?b:0):(this.o=a||0,this.j=b||0,this.b=c||0,this.g=d||0,this.i=e||0,this.k=f||0)}
qm.prototype.equals=function(a){return a.o==this.o&&a.j==this.j&&a.b==this.b&&a.g==this.g&&a.i==this.i&&a.k==this.k};qm.prototype.clone=function(){return new qm(this.o,this.j,this.b,this.g,this.i,this.k)};qm.prototype.add=function(a){this.o+=a.o;this.j+=a.j;this.b+=a.b;this.g+=a.g;this.i+=a.i;this.k+=a.k};
function rm(a,b,c){fa(a)?(this.b=sm(a,b||0,c||1),tm(this,c||1)):ha(a)?(this.b=sm(a.getFullYear(),a.getMonth(),a.getDate()),tm(this,a.getDate())):(this.b=new Date(w()),this.b.setHours(0),this.b.setMinutes(0),this.b.setSeconds(0),this.b.setMilliseconds(0))}function sm(a,b,c){b=new Date(a,b,c);0<=a&&100>a&&b.setFullYear(b.getFullYear()-1900);return b}g=rm.prototype;g.ub=mm.Rd;g.vb=mm.Sd;g.clone=function(){var a=new rm(this.b);a.ub=this.ub;a.vb=this.vb;return a};g.getFullYear=function(){return this.b.getFullYear()};
g.getMonth=function(){return this.b.getMonth()};g.getDate=function(){return this.b.getDate()};g.getTime=function(){return this.b.getTime()};function um(a){a=a.b.getTimezoneOffset();if(0==a)a="Z";else{var b=Math.abs(a)/60,c=Math.floor(b),b=60*(b-c);a=(0<a?"-":"+")+ua(c)+":"+ua(b)}return a}g.set=function(a){this.b=new Date(a.getFullYear(),a.getMonth(),a.getDate())};
g.add=function(a){if(a.o||a.j){var b=this.getMonth()+a.j+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.b.setDate(1);this.b.setFullYear(c);this.b.setMonth(b);this.b.setDate(d)}a.b&&(a=new Date((new Date(this.getFullYear(),this.getMonth(),this.getDate(),12)).getTime()+864E5*a.b),this.b.setDate(1),this.b.setFullYear(a.getFullYear()),
this.b.setMonth(a.getMonth()),this.b.setDate(a.getDate()),tm(this,a.getDate()))};g.wb=function(a,b){return[this.getFullYear(),ua(this.getMonth()+1),ua(this.getDate())].join(a?"-":"")+(b?um(this):"")};g.equals=function(a){return!(!a||this.getFullYear()!=a.getFullYear()||this.getMonth()!=a.getMonth()||this.getDate()!=a.getDate())};g.toString=function(){return this.wb()};function tm(a,b){a.getDate()!=b&&a.b.setUTCHours(a.b.getUTCHours()+(a.getDate()<b?1:-1))}g.valueOf=function(){return this.b.valueOf()};
function vm(a,b,c,d,e,f,h){this.b=fa(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,h||0):new Date(a?a.getTime():w())}z(vm,rm);g=vm.prototype;g.add=function(a){rm.prototype.add.call(this,a);a.g&&this.b.setHours(this.b.getHours()+a.g);a.i&&this.b.setMinutes(this.b.getMinutes()+a.i);a.k&&this.b.setSeconds(this.b.getSeconds()+a.k)};
g.wb=function(a,b){var c=rm.prototype.wb.call(this,a);return a?c+" "+ua(this.b.getHours())+":"+ua(this.b.getMinutes())+":"+ua(this.b.getSeconds())+(b?um(this):""):c+"T"+ua(this.b.getHours())+ua(this.b.getMinutes())+ua(this.b.getSeconds())+(b?um(this):"")};g.equals=function(a){return this.getTime()==a.getTime()};g.toString=function(){return this.wb()};g.clone=function(){var a=new vm(this.b);a.ub=this.ub;a.vb=this.vb;return a};function wm(a,b){this.b=a;this.i=b}z(wm,Xg);function xm(a){var b=[];pe(a.b.ca(!0),function(a){if("bounded-collectable-storage"!=a){var d;try{d=this.cb(a,!0)}catch(e){if("Storage: Invalid value was encountered"==e)return;throw e;}b.push({key:a,ic:d.creation})}},a);Ra(b,function(a,b){return a.ic-b.ic});return C(b,function(a){return a.key})}function ym(a,b){var c=wm.C.get.call(a,"bounded-collectable-storage")||null;c&&s(c)||(b?c=xm(a):c=[]);return c}
function zm(a,b){wm.C.set.call(a,"bounded-collectable-storage",b)}function Am(a,b){if(0==b.length)return Na(a);for(var c=[],d=0,e=0;e<b.length&&d<a.length;){for(var f=b[e];d<a.length&&a[d]!=f;)c.push(a[d]),++d;++e}return Ma(c,Qa(a,d+1))}function Bm(a,b,c){if(b.length<=c)return Na(b);c=Qa(b,0,b.length-c);B(c,function(a){wm.C.remove.call(this,a)},a);return Am(b,c)}wm.prototype.g=function(a){var b=ym(this,!0);a=Zg(this,b,a);b=Am(b,a);zm(this,b)};
wm.prototype.set=function(a,b,c){wm.C.set.call(this,a,b,c);c=ym(this,!0);Ka(c,a);r(b)&&(c.push(a),c.length>=this.i&&(a=Zg(this,c),c=Am(c,a),c=Bm(this,c,this.i)));zm(this,c)};wm.prototype.remove=function(a){wm.C.remove.call(this,a);var b=ym(this,!1);r(b)&&(Ka(b,a),zm(this,b))};function Cm(a,b){if(L&&!sc(9)){Dm||(Dm=new re);this.L=Dm.get(a);this.L||(b?this.L=document.getElementById(b):(this.L=document.createElement("userdata"),this.L.addBehavior("#default#userData"),document.body.appendChild(this.L)),Dm.set(a,this.L));this.Sb=a;try{this.L.load(this.Sb)}catch(c){this.L=null}}}z(Cm,Mg);var Em={".":".2E","!":".21","~":".7E","*":".2A","'":".27","(":".28",")":".29","%":"."},Dm=null;g=Cm.prototype;g.L=null;g.Sb=null;
function Fm(a){return"_"+encodeURIComponent(a).replace(/[.!~*'()%]/g,function(a){return Em[a]})}g.isAvailable=function(){return!!this.L};g.set=function(a,b){this.L.setAttribute(Fm(a),b);Gm(this)};g.get=function(a){a=this.L.getAttribute(Fm(a));if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};g.remove=function(a){this.L.removeAttribute(Fm(a));Gm(this)};g.va=function(){return Hm(this).attributes.length};
g.ca=function(a){var b=0,c=Hm(this).attributes,d=new ne;d.next=function(){if(b>=c.length)throw me;var d;d=c[b++];if(a)return decodeURIComponent(d.nodeName.replace(/\./g,"%")).substr(1);d=d.nodeValue;if(!t(d))throw"Storage mechanism: Invalid value was encountered";return d};return d};g.clear=function(){for(var a=Hm(this),b=a.attributes.length;0<b;b--)a.removeAttribute(a.attributes[b-1].nodeName);Gm(this)};function Gm(a){try{a.L.save(a.Sb)}catch(b){throw"Storage mechanism: Quota exceeded";}}
function Hm(a){return a.L.XMLDocument.documentElement};function Im(a,b){this.Pa=a;this.Fa=b+"::"}z(Im,Mg);g=Im.prototype;g.Pa=null;g.Fa="";g.set=function(a,b){this.Pa.set(this.Fa+a,b)};g.get=function(a){return this.Pa.get(this.Fa+a)};g.remove=function(a){this.Pa.remove(this.Fa+a)};g.ca=function(a){var b=this.Pa.ca(!0),c=this,d=new ne;d.next=function(){for(var d=b.next();d.substr(0,c.Fa.length)!=c.Fa;)d=b.next();return a?d.substr(c.Fa.length):c.Pa.get(d)};return d};function Jm(a){var b=new Og;(b=b.isAvailable()?a?new Im(b,a):b:null)||(a=new Cm(a||"UserDataSharedStore"),b=a.isAvailable()?a:null);return b};var Km={like:"l",dislike:"d",subscribe:"b",unsubscribe:"u",add_to_playlist:"d",comment:"c",share:"h"},Lm=null;function Mm(){if(!Lm){var a=Jm("history_channel_");if(!a)return null;Lm=new wm(a,50)}return Lm}function Nm(a){return a?new rm(a.getFullYear(),a.getMonth(),a.getDate()):new rm};var Om;var Pm=[];
function Qm(a,b){var c=am(b);if(c){var d;var e;i:{if(null==Om){e=Jm("aid");if(!e){e=null;break i}Om=new wm(e,50)}e=Om}e?(e=e.get(c),d=ha(e)?e:null):d=null;if(d){e={foc_id:c,aid:d.aid||"!aid",label:"followon_"+a};if(d.ytfocHistoryEnabled){var f=new rm;d=Km[a]||"x";var h=Mm();if(h){var k=h.get(c);if(null==k)k=f.toString()+":"+d;else{if(k=Mm()){var l=k.get(c);if(l){var f=Nm(f),m=l.substr(0,8),q=new vm(2E3),m=pa(m),m=m.split(-1==m.indexOf("T")?" ":"T"),y;var u=m[0].match(nm);if(u){var Z=Number(u[2]),ak=
Number(u[3]),bk=Number(u[4]);y=Number(u[5]);var Ea=Number(u[6])||1;q.b.setFullYear(Number(u[1]));bk?(q.b.setDate(1),q.b.setMonth(0),q.add(new qm("d",bk-1))):y?(q.b.setMonth(0),q.b.setDate(1),u=q.b.getDay()||7,q.add(new qm("d",(4>=u?1-u:8-u)+(Number(Ea)+7*(Number(y)-1))-1))):(Z&&(q.b.setDate(1),q.b.setMonth(Z-1)),ak&&q.b.setDate(ak));y=!0}else y=!1;y&&!(y=2>m.length)&&(m=m[1],y=m.match(pm),Ea=0,y&&("Z"!=y[0]&&(Ea=60*y[2]+Number(y[3]),Ea*="-"==y[1]?1:-1),Ea-=q.b.getTimezoneOffset(),m=m.substr(0,m.length-
y[0].length)),(y=m.match(om))?(q.b.setHours(Number(y[1])),q.b.setMinutes(Number(y[2])||0),q.b.setSeconds(Number(y[3])||0),q.b.setMilliseconds(y[4]?1E3*y[4]:0),0!=Ea&&q.b.setTime(q.getTime()+6E4*Ea),y=!0):y=!1);q=Nm(y?q:null);l=l.substr(9);for(m=new qm("d",1);0>q.getTime()-f.getTime();)l+="-",q.add(m);q=l?l.split("-").length-1:0;for(m=-1;7<=q;)m=l.indexOf("-",m+1),--q;l=l.substr(m+1,l.length);l=f.toString()+":"+l;k.set(c,l,w()+6048E5)}}k=h.get(c)+d}h.set(c,k,w()+6048E5)}if(d=Mm())if(c=d.get(c),null==
c)c=null;else{c=c.substr(9);l=f=k=h=d=0;q="x";for(m=0;m<c.length-1;m++)switch(c.charAt(m)){case "y":case "o":case "g":0<k?f+=1:d+=1;break;case "t":case "f":case "p":h+=1;break;case "a":k+=1;break;case "l":case "b":case "u":case "d":case "d":case "c":case "h":0==k&&(l=1)}if(0<c.length)switch(c.charAt(c.length-1)){case "y":case "o":case "g":q=0<k?"f":"y";break;case "t":case "f":case "p":q="s";break;case "a":q="a";break;case "l":case "b":case "u":case "d":case "d":case "c":case "h":q=c.charAt(c.length-
1)}c=[q,"y"+d,"s"+h,"a"+k,"f"+f,"e"+l].join("")}else c=null;e.h=c||""}(e=nd("//www.gstatic.com/youtube/followonevent/l",e))&&e&&Ue(e)}}(e=G("CONVERSION_CONFIG_DICT"))&&(!t(b)||e.uid==am(b))&&"L8ZULXASCc1I_oaOT0NaOQ"==e.uid&&e.baseUrl&&e.uid&&e.focEnabled&&!e.isAd&&(c={plus_label:"followon_"+a},"view"==a&&e.vid&&e.uid&&(e.oeid||e.ieid)&&(e.oeid&&(c.plus_oeid=e.oeid),e.ieid&&(c.plus_ieid=e.ieid),c.plus_evid=e.vid),c.plus_foc_id=e.uid,(e=nd(e.baseUrl,c))&&e&&Ue(e))};var Rm=!1,$=[];function Sm(a,b,c,d,e,f){b?Rm?J("subscription-external-subscribe",a,b,null,d,e):J("ypc-delayedloader-load",function(){J("ypc-init-subscription",b)}):Tm(a,c,d,e,f)}function Um(a,b,c,d,e,f,h){c?Rm?J("subscription-external-unsubscribe",a,b,c,null,e,f):J("ypc-delayedloader-load",function(){J("ypc-subscription-cancel",c)}):Vm(a,b,d,e,f,h)}
function Wm(a){if(a.length){var b=Pa(a,0,40);J("subscription-batch-subscribe-loading",b);Xm("subscription-subscribe-loading",b);var c={};c.session_token=qb();c.a=b.join(",");var d=function(){J("subscription-batch-subscribe-loaded",b);Xm("subscription-subscribe-loaded",b)};Ie("/subscription_ajax?action_create_subscription_to_all=1",{method:"POST",ka:c,onSuccess:function(c,f){d();var h=f.response,k=h.id;if(s(k)&&k.length==b.length){var l={};B(k,function(a,c){l[b[c]]=a});J("subscription-batch-subscribe-success",
l);Va(l,function(a,b){J("subscription-subscribe-success",b,a)});(h=h.guide_notification_html_content)&&J("guide-add-subscription",h);a.length&&Wm(a)}},onError:function(){d();J("subscription-batch-subscribe-failure",b);Xm("subscription-subscribe-failure",b)}})}}
function Ym(a){if(!$a(a)){var b=Xa(a),c=Pa(b,0,40),d=[];B(c,function(b){d.push(a[b])});var e={};B(b,function(b){e[b]=a[b]});J("subscription-batch-unsubscribe-loading",c);Xm("subscription-unsubscirbe-loading",c);b={};b.session_token=qb();b.s=d.join(",");var f=function(){J("subscription-batch-unsubscribe-loaded",c);Xm("subscription-unsubscribe-loaded",c)};Ie("/subscription_ajax?action_remove_subscriptions=1",{method:"POST",ka:b,onSuccess:function(){f();J("subscription-batch-unsubscribe-success",c);
Xm("subscription-unsubscribe-success",c);$a(e)||Ym(e)},onError:function(){f();J("subscription-batch-unsubscribe-failure",c);Xm("subscription-unsubscribe-failure",c)}})}}function Zm(a,b,c){$m(a,null,b,null,c)}function an(a,b,c){$m(a,null,null,b,c)}function bn(a,b,c){cn(a,b,null,c)}function dn(a,b,c){cn(a,null,b,c)}function en(a,b,c,d,e){$m(a,b,c,d,e)}function fn(a,b,c,d){a=a.subscriptionElement||null;(b=b.subscriptionId)&&J("subscription-subscribe-success",d,b,a)}
function gn(a,b){Va(a,function(a,b){J("subscription-subscribe-success",b,a)});J("guide-add-subscription",b)}function hn(a,b){J("subscription-unsubscribe-success",a.itemId,a.subscriptionElement||null);b&&(J("subscription-batch-unsubscribe-success",b),Xm("subscription-unsubscribe-success",b),Xm("subscription-enable-ypc",b))}
function Tm(a,b,c,d,e){J("subscription-subscribe-loading",a);var f={};f.c=a;d&&(f.eurl=d);e&&(f.source=e);d={};d.session_token=qb();(e=G("PLAYBACK_ID"))&&(d.plid=e);c&&jn("/subscription_ajax?action_create_subscription_to_channel=1",f,c);Ie("/subscription_ajax?action_create_subscription_to_channel=1",{method:"POST",wc:f,ka:d,onSuccess:function(c,d){var e=d.response;J("subscription-subscribe-success",a,e.id,b);e.show_feed_privacy_dialog&&J("SHOW-FEED-PRIVACY-SUBSCRIBE-DIALOG",a);(e=e.guide_notification_html_content)&&
J("guide-add-subscription",e)},onError:function(){J("subscription-subscribe-failure",a)},zb:function(){J("subscription-subscribe-loaded",a)}});bm("subscribe",a)}
function Vm(a,b,c,d,e,f){J("subscription-unsubscirbe-loading",a);var h={};e&&(h.eurl=e);f&&(h.source=f);e={};e.session_token=qb();e.c=a;e.s=b;(b=G("PLAYBACK_ID"))&&(e.plid=b);d&&jn("/subscription_ajax?action_remove_subscriptions=1",{},d);Ie("/subscription_ajax?action_remove_subscriptions=1",{method:"POST",wc:h,ka:e,onSuccess:function(){J("subscription-unsubscribe-success",a,c)},onError:function(){J("subscription-unsubscribe-failure",a)},zb:function(){J("subscription-unsubscribe-loaded",a)}});bm("unsubscribe",
a)}function $m(a,b,c,d,e){if(null!==c||null!==d){J("subscription-prefs-loading",a);var f={};f.session_token=qb();f.subscription_id=a;b&&(f.channel_id=b);null===c||(f.email_on_upload=c);null===d||(f.uploads_only=d);Ie("/subscription_ajax?action_update_subscription_preferences=1",{method:"POST",ka:f,onSuccess:function(){J("subscription-prefs-success",a)},onError:function(){e&&e();J("subscription-prefs-failure",a)},zb:function(){J("subscription-prefs-loaded",a)}})}}
function cn(a,b,c,d){if(a.length&&(null!==b||null!==c)){var e=Pa(a,0,40);J("subscription-batch-prefs-loading",e);var f={};f.session_token=qb();f.s=e.join(",");null===b||(f.email_on_upload=b);null===c||(f.uploads_only=c);var h=function(){J("subscription-batch-prefs-loaded",e)};Ie("/subscription_ajax?action_update_subscription_preferences_batch=1",{method:"POST",ka:f,onSuccess:function(){h();J("subscription-batch-prefs-success",e);a.length&&cn(a,b,c,d)},onError:function(){h();d&&d();J("subscription-batch-prefs-failure",
e)}})}}function Xm(a,b){B(b,function(b){J(a,b)})}function jn(a,b,c){a=pd(a,b);c=ld(c);rd(a,c)};var kn=null,ln=null,mn={cc_load_policy:"cc3_module",threed_load_policy:"threed_module",streaminglib_load_policy:"streaminglib_module"},nn=!1;function on(a){var b={};Va(mn,function(c){a.args[c]&&(b[c]=a.args[c],delete a.args[c])});return b};x("yt.abuse.invokeBotguard",function(){return Nb?Nb.invoke():null});x("yt.abuse.botguardInitialized",function(){return null!=Nb});x("yt.setAjaxToken",pb);x("yt.setConfig",nb);x("yt.setMsg",function(a){ob(mb,arguments)});x("yt.embed.openLoginDialog",function(){Gh(function(a){if(kn.onLoginDialogSuccess)kn.onLoginDialogSuccess(a)})});
x("writeEmbed",function(){var a=new Rf(G("PLAYER_CONFIG"));window!=window.top&&document.referrer&&document.referrer!=document.URL&&(a.args.loaderUrl=document.referrer);G("LIGHTWEIGHT_AUTOPLAY")&&(a.args.autoplay="1");if(a.args.autoplay){var b=hh(a.args.video_id||a.args.videoId);b&&(a.args.two_stage_token=b)}kn=vh("player",a);var b=ln=new km(kn),c=on(a);b.k=mn;b.o=c;b=a.args.eurl||"";c=G("POST_MESSAGE_ORIGIN","");nn=-1<b.indexOf(c)&&Kg(c)&&Kg(b)&&"0"==a.args.enablecastapi;nn||(a=a.args.has_mdx_screens,
b=kn,pl?$a(kl)&&jl():(pl=!0,Qi(),ah&&ah.g(),xi(),Y=Pk.getInstance(),Y.J("screenPair",rl),Y.J("managedScreenChange",sl),ql=p("yt.mdx.remote.deferredProxies_")||[],x("yt.mdx.remote.deferredProxies_",ql),kl=p("yt.mdx.remote.channelParams_")||{},jl()),Hl=b,Hl.addEventListener("onReady",Jl),Hl.addEventListener("onRemoteReceiverSelected",Ll),b=Y,b.J("onlineReceiverChange",Kl),a?il(b):Ga(b.pa)&&Ga(Qk())||(b.log_("Clear cached account screens."),b.pa=[],b.xb(),Zk(b)));G("BG_P")&&(G("BG_I")||G("BG_IU"))&&
Ob();Ml=kn;Ml.addEventListener("SUBSCRIBE",Pl);Ml.addEventListener("UNSUBSCRIBE",Rl);Nl.push(I("subscription-subscribe-success",Sl));Nl.push(I("subscription-unsubscribe-success",Tl))});x("yt.www.watch.ads.restrictioncookie.spr",function(a){(a=a+"mac_204?action_fcts=1")&&Ue(a);kd("CLAD","tlip="+w());return!0});
O(window,"load",function(){Mf().tick.ol=w();var a=G("TIMING_ACTION"),b=!!G("TIMING_WFF"),c=Mf().tick;a&&c._start&&(b&&c.vr?Lf():b||!c.ol&&!c.aft||Lf());Rm=!0;$.push(I("subscription-subscribe",Sm));$.push(I("subscription-unsubscribe",Um));Rm||($.push(I("subscription-external-subscribe",Sm)),$.push(I("subscription-external-unsubscribe",Um)),$.push(I("subscription-batch-subscribe",Wm)),$.push(I("subscription-batch-unsubscribe",Ym)),$.push(I("subscription-pref-email",Zm)),$.push(I("subscription-pref-uploads",
an)),$.push(I("subscription-prefs",en)),$.push(I("subscription-batch-pref-email",bn)),$.push(I("subscription-batch-pref-uploads",dn)),$.push(I("ypc-purchase-success",fn)),$.push(I("ypc-subscription-cancel-success",hn)),$.push(I("ypc-guide-sync-success",gn)),Pm.push(I("subscription-subscribe-success",na(Qm,"subscribe")),I("subscription-unsubscribe-success",na(Qm,"unsubscribe")),I("player-subscribe",na(Qm,"subscribe")),I("player-unsubscribe",na(Qm,"unsubscribe"))))});
O(window,"unload",function(){var a=kn;a&&a.sendAbandonmentPing&&a.sendAbandonmentPing();G("PL_ATT")&&(Nb=null);$&&(Fb($),$.length=0,Rm=!1);Fb(Pm);Pm.length=0;Ml&&(Ml.removeEventListener("SUBSCRIBE",Pl),Ml.removeEventListener("UNSUBSCRIBE",Rl));Ml=null;Fb(Nl);nn||(Fb(Il),Il=NaN,Y.wa("onlineReceiverChange",Kl),Hl&&(Hl.removeEventListener("onRemoteReceiverSelected",Ll),Hl.removeEventListener("onReady",Jl),Hl=null),ol());ln.dispose();kn.destroy()});var pn=Qh.getInstance(),qn=Q(pn);
qn in Ye||(pn.register(),Ye[qn]=pn);})();
