You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
642 lines
103 KiB
JavaScript
642 lines
103 KiB
JavaScript
(function(){var k;function aa(a,b){function c(){}
|
|
c.prototype=b.prototype;a.D=b.prototype;a.prototype=new c;a.prototype.constructor=a;for(var d in b)if(Object.defineProperties){var e=Object.getOwnPropertyDescriptor(b,d);e&&Object.defineProperty(a,d,e)}else a[d]=b[d]}
|
|
var ba="function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){a!=Array.prototype&&a!=Object.prototype&&(a[b]=c.value)},ca="undefined"!=typeof window&&window===this?this:"undefined"!=typeof global&&null!=global?global:this;
|
|
function da(a,b){if(b){for(var c=ca,d=a.split("."),e=0;e<d.length-1;e++){var f=d[e];f in c||(c[f]={});c=c[f]}d=d[d.length-1];e=c[d];f=b(e);f!=e&&null!=f&&ba(c,d,{configurable:!0,writable:!0,value:f})}}
|
|
da("String.prototype.startsWith",function(a){return a?a:function(a,c){if(null==this)throw new TypeError("The 'this' value for String.prototype.startsWith must not be null or undefined");if(a instanceof RegExp)throw new TypeError("First argument to String.prototype.startsWith must not be a regular expression");var b=this+"";a+="";for(var e=b.length,f=a.length,g=Math.max(0,Math.min(c|0,b.length)),h=0;h<f&&g<e;)if(b[g++]!=a[h++])return!1;return h>=f}});
|
|
da("Reflect.apply",function(a){if(a)return a;var b=Function.prototype.apply;return function(a,d,e){return b.call(a,d,e)}});
|
|
var ea="function"==typeof Object.create?Object.create:function(a){function b(){}
|
|
b.prototype=a;return new b};
|
|
da("Reflect.construct",function(a){return a?a:function(a,c,d){void 0===d&&(d=a);d=ea(d.prototype||Object.prototype);return Reflect.apply(a,d,c)||d}});
|
|
var n=this;function q(a){return void 0!==a}
|
|
function t(a){return"string"==typeof a}
|
|
function u(a,b){for(var c=a.split("."),d=b||n,e;e=c.shift();)if(null!=d[e])d=d[e];else return null;return d}
|
|
function fa(){}
|
|
function ga(a){a.la=void 0;a.B=function(){return a.la?a.la:a.la=new a}}
|
|
function ha(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 ia(a){return"array"==ha(a)}
|
|
function ja(a){var b=ha(a);return"array"==b||"object"==b&&"number"==typeof a.length}
|
|
function ka(a){return"function"==ha(a)}
|
|
function la(a){var b=typeof a;return"object"==b&&null!=a||"function"==b}
|
|
function ma(a){return a[na]||(a[na]=++oa)}
|
|
var na="closure_uid_"+(1E9*Math.random()>>>0),oa=0;function pa(a,b,c){return a.call.apply(a.bind,arguments)}
|
|
function qa(a,b,c){if(!a)throw Error();if(2<arguments.length){var d=Array.prototype.slice.call(arguments,2);return function(){var c=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(c,d);return a.apply(b,c)}}return function(){return a.apply(b,arguments)}}
|
|
function v(a,b,c){Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v=pa:v=qa;return v.apply(null,arguments)}
|
|
function ra(a,b){var c=Array.prototype.slice.call(arguments,1);return function(){var b=c.slice();b.push.apply(b,arguments);return a.apply(this,b)}}
|
|
var sa=Date.now||function(){return+new Date};
|
|
function w(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&&q(b)?d[e]=b:d[e]&&d[e]!==Object.prototype[e]?d=d[e]:d=d[e]={}}
|
|
function x(a,b){function c(){}
|
|
c.prototype=b.prototype;a.D=b.prototype;a.prototype=new c;a.prototype.constructor=a;a.Hb=function(a,c,f){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];return b.prototype[c].apply(a,d)}}
|
|
;function ta(a,b,c){for(var d in a)b.call(c,a[d],d,a)}
|
|
function ua(a){var b=[],c=0,d;for(d in a)b[c++]=a[d];return b}
|
|
function va(a){var b=wa,c;for(c in b)if(a.call(void 0,b[c],c,b))return c}
|
|
function xa(){var a=ya,b;for(b in a)return!1;return!0}
|
|
function za(a,b){if(null!==a&&b in a)throw Error('The object already contains the key "'+b+'"');a[b]=!0}
|
|
function Aa(a){var b={},c;for(c in a)b[c]=a[c];return b}
|
|
var Ba="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ca(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<Ba.length;f++)c=Ba[f],Object.prototype.hasOwnProperty.call(d,c)&&(a[c]=d[c])}}
|
|
;function Da(a){if(Error.captureStackTrace)Error.captureStackTrace(this,Da);else{var b=Error().stack;b&&(this.stack=b)}a&&(this.message=String(a))}
|
|
x(Da,Error);Da.prototype.name="CustomError";var Ea;var Fa=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(/^[\s\xa0]+|[\s\xa0]+$/g,"")};
|
|
function Ga(a,b){for(var c=0,d=Fa(String(a)).split("."),e=Fa(String(b)).split("."),f=Math.max(d.length,e.length),g=0;0==c&&g<f;g++){var h=d[g]||"",l=e[g]||"";do{h=/(\d*)(\D*)(.*)/.exec(h)||["","","",""];l=/(\d*)(\D*)(.*)/.exec(l)||["","","",""];if(0==h[0].length&&0==l[0].length)break;c=Ha(0==h[1].length?0:parseInt(h[1],10),0==l[1].length?0:parseInt(l[1],10))||Ha(0==h[2].length,0==l[2].length)||Ha(h[2],l[2]);h=h[3];l=l[3]}while(0==c)}return c}
|
|
function Ha(a,b){return a<b?-1:a>b?1:0}
|
|
function Ia(a){for(var b=0,c=0;c<a.length;++c)b=31*b+a.charCodeAt(c)>>>0;return b}
|
|
function Ja(a){return String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()})}
|
|
function Ka(a){var b=t(void 0)?"undefined".replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"):"\\s";return a.replace(new RegExp("(^"+(b?"|["+b+"]+":"")+")([a-z])","g"),function(a,b,e){return b+e.toUpperCase()})}
|
|
;var La=Array.prototype.indexOf?function(a,b,c){return Array.prototype.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},y=Array.prototype.forEach?function(a,b,c){Array.prototype.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)},Ma=Array.prototype.filter?function(a,b,c){return Array.prototype.filter.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=[],f=0,g=t(a)?a.split(""):a,h=0;h<d;h++)if(h in g){var l=g[h];
|
|
b.call(c,l,h,a)&&(e[f++]=l)}return e},Na=Array.prototype.map?function(a,b,c){return Array.prototype.map.call(a,b,c)}:function(a,b,c){for(var d=a.length,e=Array(d),f=t(a)?a.split(""):a,g=0;g<d;g++)g in f&&(e[g]=b.call(c,f[g],g,a));
|
|
return e},Oa=Array.prototype.some?function(a,b,c){return Array.prototype.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};
|
|
function Pa(a,b){a:{var c=a.length;for(var d=t(a)?a.split(""):a,e=0;e<c;e++)if(e in d&&b.call(void 0,d[e],e,a)){c=e;break a}c=-1}return 0>c?null:t(a)?a.charAt(c):a[c]}
|
|
function Qa(a,b){return 0<=La(a,b)}
|
|
function Ra(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 Sa(a,b){for(var c=1;c<arguments.length;c++){var d=arguments[c];if(ja(d)){var e=a.length||0,f=d.length||0;a.length=e+f;for(var g=0;g<f;g++)a[e+g]=d[g]}else a.push(d)}}
|
|
function Ta(a,b,c,d){Array.prototype.splice.apply(a,Ua(arguments,1))}
|
|
function Ua(a,b,c){return 2>=arguments.length?Array.prototype.slice.call(a,b):Array.prototype.slice.call(a,b,c)}
|
|
function Va(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];if(ia(d))for(var e=0;e<d.length;e+=8192)for(var f=Va.apply(null,Ua(d,e,e+8192)),g=0;g<f.length;g++)b.push(f[g]);else b.push(d)}return b}
|
|
;function Wa(){this.b="";this.f=Xa}
|
|
Wa.prototype.X=!0;Wa.prototype.W=function(){return this.b};
|
|
Wa.prototype.toString=function(){return"Const{"+this.b+"}"};
|
|
var Xa={};function Ya(a){var b=new Wa;b.b=a;return b}
|
|
Ya("");function Za(){this.b="";this.f=ab}
|
|
Za.prototype.X=!0;Za.prototype.W=function(){return this.b};
|
|
function bb(a){return a instanceof Za&&a.constructor===Za&&a.f===ab?a.b:"type_error:TrustedResourceUrl"}
|
|
var ab={};function cb(a){var b=new Za;b.b=a;return b}
|
|
;function db(){this.b="";this.f=eb}
|
|
db.prototype.X=!0;db.prototype.W=function(){return this.b};
|
|
function fb(a){return a instanceof db&&a.constructor===db&&a.f===eb?a.b:"type_error:SafeUrl"}
|
|
var gb=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function hb(a){if(a instanceof db)return a;a=a.X?a.W():String(a);gb.test(a)||(a="about:invalid#zClosurez");return ib(a)}
|
|
var eb={};function ib(a){var b=new db;b.b=a;return b}
|
|
ib("about:blank");var jb;a:{var kb=n.navigator;if(kb){var lb=kb.userAgent;if(lb){jb=lb;break a}}jb=""}function z(a){return-1!=jb.indexOf(a)}
|
|
;function mb(){return z("Safari")&&!(nb()||z("Coast")||z("Opera")||z("Edge")||z("Silk")||z("Android"))}
|
|
function nb(){return(z("Chrome")||z("CriOS"))&&!z("Edge")}
|
|
;function ob(){this.b="";this.f=pb}
|
|
ob.prototype.X=!0;ob.prototype.W=function(){return this.b};
|
|
function qb(a){return a instanceof ob&&a.constructor===ob&&a.f===pb?a.b:"type_error:SafeHtml"}
|
|
var pb={};function rb(a){var b=new ob;b.b=a;return b}
|
|
rb("<!DOCTYPE html>");rb("");rb("<br>");function sb(a,b){var c=b instanceof db?b:hb(b);a.href=fb(c)}
|
|
function tb(a,b){a.src=bb(b)}
|
|
;function ub(){return z("iPhone")&&!z("iPod")&&!z("iPad")}
|
|
;function vb(a){vb[" "](a);return a}
|
|
vb[" "]=fa;function wb(a,b){var c=xb;return Object.prototype.hasOwnProperty.call(c,a)?c[a]:c[a]=b(a)}
|
|
;var yb=z("Opera"),A=z("Trident")||z("MSIE"),zb=z("Edge"),Ab=zb||A,Bb=z("Gecko")&&!(-1!=jb.toLowerCase().indexOf("webkit")&&!z("Edge"))&&!(z("Trident")||z("MSIE"))&&!z("Edge"),Cb=-1!=jb.toLowerCase().indexOf("webkit")&&!z("Edge");function Db(){var a=n.document;return a?a.documentMode:void 0}
|
|
var Eb;a:{var Fb="",Gb=function(){var a=jb;if(Bb)return/rv\:([^\);]+)(\)|;)/.exec(a);if(zb)return/Edge\/([\d\.]+)/.exec(a);if(A)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a);if(Cb)return/WebKit\/(\S+)/.exec(a);if(yb)return/(?:Version)[ \/]?(\S+)/.exec(a)}();
|
|
Gb&&(Fb=Gb?Gb[1]:"");if(A){var Hb=Db();if(null!=Hb&&Hb>parseFloat(Fb)){Eb=String(Hb);break a}}Eb=Fb}var Ib=Eb,xb={};function Jb(a){return wb(a,function(){return 0<=Ga(Ib,a)})}
|
|
var Kb;var Lb=n.document;Kb=Lb&&A?Db()||("CSS1Compat"==Lb.compatMode?parseInt(Ib,10):5):void 0;function Mb(a,b,c){this.j=c;this.g=a;this.m=b;this.f=0;this.b=null}
|
|
Mb.prototype.get=function(){if(0<this.f){this.f--;var a=this.b;this.b=a.next;a.next=null}else a=this.g();return a};
|
|
function Nb(a,b){a.m(b);a.f<a.j&&(a.f++,b.next=a.b,a.b=b)}
|
|
;function Ob(a){n.setTimeout(function(){throw a;},0)}
|
|
var Pb;
|
|
function Qb(){var a=n.MessageChannel;"undefined"===typeof a&&"undefined"!==typeof window&&window.postMessage&&window.addEventListener&&!z("Presto")&&(a=function(){var a=document.createElement("IFRAME");a.style.display="none";a.src="";document.documentElement.appendChild(a);var b=a.contentWindow,a=b.document;a.open();a.write("");a.close();var c="callImmediate"+Math.random(),d="file:"==b.location.protocol?"*":b.location.protocol+"//"+b.location.host,a=v(function(a){if(("*"==d||a.origin==d)&&a.data==
|
|
c)this.port1.onmessage()},this);
|
|
b.addEventListener("message",a,!1);this.port1={};this.port2={postMessage:function(){b.postMessage(c,d)}}});
|
|
if("undefined"!==typeof a&&!z("Trident")&&!z("MSIE")){var b=new a,c={},d=c;b.port1.onmessage=function(){if(q(c.next)){c=c.next;var a=c.ra;c.ra=null;a()}};
|
|
return function(a){d.next={ra:a};d=d.next;b.port2.postMessage(0)}}return"undefined"!==typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(a){var b=document.createElement("SCRIPT");
|
|
b.onreadystatechange=function(){b.onreadystatechange=null;b.parentNode.removeChild(b);b=null;a();a=null};
|
|
document.documentElement.appendChild(b)}:function(a){n.setTimeout(a,0)}}
|
|
;function Rb(){this.f=this.b=null}
|
|
var Tb=new Mb(function(){return new Sb},function(a){a.reset()},100);
|
|
Rb.prototype.remove=function(){var a=null;this.b&&(a=this.b,this.b=this.b.next,this.b||(this.f=null),a.next=null);return a};
|
|
function Sb(){this.next=this.scope=this.b=null}
|
|
Sb.prototype.set=function(a,b){this.b=a;this.scope=b;this.next=null};
|
|
Sb.prototype.reset=function(){this.next=this.scope=this.b=null};function Ub(a,b){Vb||Wb();Xb||(Vb(),Xb=!0);var c=Yb,d=Tb.get();d.set(a,b);c.f?c.f.next=d:c.b=d;c.f=d}
|
|
var Vb;function Wb(){if(-1!=String(n.Promise).indexOf("[native code]")){var a=n.Promise.resolve(void 0);Vb=function(){a.then(Zb)}}else Vb=function(){var a=Zb;
|
|
!ka(n.setImmediate)||n.Window&&n.Window.prototype&&!z("Edge")&&n.Window.prototype.setImmediate==n.setImmediate?(Pb||(Pb=Qb()),Pb(a)):n.setImmediate(a)}}
|
|
var Xb=!1,Yb=new Rb;function Zb(){for(var a;a=Yb.remove();){try{a.b.call(a.scope)}catch(b){Ob(b)}Nb(Tb,a)}Xb=!1}
|
|
;function B(a,b){this.b=0;this.u=void 0;this.j=this.f=this.g=null;this.m=this.o=!1;if(a!=fa)try{var c=this;a.call(b,function(a){$b(c,2,a)},function(a){$b(c,3,a)})}catch(d){$b(this,3,d)}}
|
|
function ac(){this.next=this.context=this.f=this.g=this.b=null;this.j=!1}
|
|
ac.prototype.reset=function(){this.context=this.f=this.g=this.b=null;this.j=!1};
|
|
var bc=new Mb(function(){return new ac},function(a){a.reset()},100);
|
|
function cc(a,b,c){var d=bc.get();d.g=a;d.f=b;d.context=c;return d}
|
|
function dc(a){if(a instanceof B)return a;var b=new B(fa);$b(b,2,a);return b}
|
|
B.prototype.then=function(a,b,c){return ec(this,ka(a)?a:null,ka(b)?b:null,c)};
|
|
B.prototype.then=B.prototype.then;B.prototype.$goog_Thenable=!0;B.prototype.cancel=function(a){0==this.b&&Ub(function(){var b=new fc(a);gc(this,b)},this)};
|
|
function gc(a,b){if(0==a.b)if(a.g){var c=a.g;if(c.f){for(var d=0,e=null,f=null,g=c.f;g&&(g.j||(d++,g.b==a&&(e=g),!(e&&1<d)));g=g.next)e||(f=g);e&&(0==c.b&&1==d?gc(c,b):(f?(d=f,d.next==c.j&&(c.j=d),d.next=d.next.next):hc(c),ic(c,e,3,b)))}a.g=null}else $b(a,3,b)}
|
|
function jc(a,b){a.f||2!=a.b&&3!=a.b||kc(a);a.j?a.j.next=b:a.f=b;a.j=b}
|
|
function ec(a,b,c,d){var e=cc(null,null,null);e.b=new B(function(a,g){e.g=b?function(c){try{var e=b.call(d,c);a(e)}catch(m){g(m)}}:a;
|
|
e.f=c?function(b){try{var e=c.call(d,b);!q(e)&&b instanceof fc?g(b):a(e)}catch(m){g(m)}}:g});
|
|
e.b.g=a;jc(a,e);return e.b}
|
|
B.prototype.A=function(a){this.b=0;$b(this,2,a)};
|
|
B.prototype.F=function(a){this.b=0;$b(this,3,a)};
|
|
function $b(a,b,c){if(0==a.b){a===c&&(b=3,c=new TypeError("Promise cannot resolve to itself"));a.b=1;a:{var d=c,e=a.A,f=a.F;if(d instanceof B){jc(d,cc(e||fa,f||null,a));var g=!0}else{if(d)try{var h=!!d.$goog_Thenable}catch(m){h=!1}else h=!1;if(h)d.then(e,f,a),g=!0;else{if(la(d))try{var l=d.then;if(ka(l)){lc(d,l,e,f,a);g=!0;break a}}catch(m){f.call(a,m);g=!0;break a}g=!1}}}g||(a.u=c,a.b=b,a.g=null,kc(a),3!=b||c instanceof fc||mc(a,c))}}
|
|
function lc(a,b,c,d,e){function f(a){h||(h=!0,d.call(e,a))}
|
|
function g(a){h||(h=!0,c.call(e,a))}
|
|
var h=!1;try{b.call(a,g,f)}catch(l){f(l)}}
|
|
function kc(a){a.o||(a.o=!0,Ub(a.w,a))}
|
|
function hc(a){var b=null;a.f&&(b=a.f,a.f=b.next,b.next=null);a.f||(a.j=null);return b}
|
|
B.prototype.w=function(){for(var a;a=hc(this);)ic(this,a,this.b,this.u);this.o=!1};
|
|
function ic(a,b,c,d){if(3==c&&b.f&&!b.j)for(;a&&a.m;a=a.g)a.m=!1;if(b.b)b.b.g=null,nc(b,c,d);else try{b.j?b.g.call(b.context):nc(b,c,d)}catch(e){oc.call(null,e)}Nb(bc,b)}
|
|
function nc(a,b,c){2==b?a.g.call(a.context,c):a.f&&a.f.call(a.context,c)}
|
|
function mc(a,b){a.m=!0;Ub(function(){a.m&&oc.call(null,b)})}
|
|
var oc=Ob;function fc(a){Da.call(this,a)}
|
|
x(fc,Da);fc.prototype.name="cancel";function pc(a){this.b=a;a.then(v(function(){},this))}
|
|
function qc(a,b,c){for(var d=Array(arguments.length-2),e=2;e<arguments.length;e++)d[e-2]=arguments[e];e=rc(a,b).then(function(a){return a.apply(null,d)});
|
|
return new pc(e)}
|
|
var sc={};function rc(a,b){var c=sc[b];if(c)return c;c=(c=u(b))?dc(c):(new B(function(b,c){var d=document.createElement("script");d.async=!0;tb(d,cb(a instanceof Wa&&a.constructor===Wa&&a.f===Xa?a.b:"type_error:Const"));d.onload=d.onreadystatechange=function(){d.readyState&&"loaded"!=d.readyState&&"complete"!=d.readyState||b()};
|
|
d.onerror=c;(document.head||document.getElementsByTagName("head")[0]).appendChild(d)})).then(function(){var c=u(b);
|
|
if(!c)throw Error("Failed to load "+b+" from "+a);return c});
|
|
return sc[b]=c}
|
|
function tc(a,b){a.b.then(function(a){var c=a.startHelp;if(!c)throw Error("Method not found: startHelp");return c.apply(a,b)})}
|
|
;function uc(a){this.b=a}
|
|
var vc=Ya("https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");uc.prototype.f=function(a){tc(this.b,arguments)};function wc(a){if(!a)return"";a=a.split("#")[0].split("?")[0];a=a.toLowerCase();0==a.indexOf("//")&&(a=window.location.protocol+a);/^[\w\-]*:\/\//.test(a)||(a=window.location.href);var b=a.substring(a.indexOf("://")+3),c=b.indexOf("/");-1!=c&&(b=b.substring(0,c));a=a.substring(0,a.indexOf("://"));if("http"!==a&&"https"!==a&&"chrome-extension"!==a&&"file"!==a&&"android-app"!==a&&"chrome-search"!==a)throw Error("Invalid URI scheme in origin");var c="",d=b.indexOf(":");if(-1!=d){var e=b.substring(d+
|
|
1),b=b.substring(0,d);if("http"===a&&"80"!==e||"https"===a&&"443"!==e)c=":"+e}return a+"://"+b+c}
|
|
;function xc(){function a(){e[0]=1732584193;e[1]=4023233417;e[2]=2562383102;e[3]=271733878;e[4]=3285377520;r=m=0}
|
|
function b(a){for(var b=g,c=0;64>c;c+=4)b[c/4]=a[c]<<24|a[c+1]<<16|a[c+2]<<8|a[c+3];for(c=16;80>c;c++)a=b[c-3]^b[c-8]^b[c-14]^b[c-16],b[c]=(a<<1|a>>>31)&4294967295;a=e[0];for(var d=e[1],f=e[2],h=e[3],l=e[4],m,r,c=0;80>c;c++)40>c?20>c?(m=h^d&(f^h),r=1518500249):(m=d^f^h,r=1859775393):60>c?(m=d&f|h&(d|f),r=2400959708):(m=d^f^h,r=3395469782),m=((a<<5|a>>>27)&4294967295)+m+l+r+b[c]&4294967295,l=h,h=f,f=(d<<30|d>>>2)&4294967295,d=a,a=m;e[0]=e[0]+a&4294967295;e[1]=e[1]+d&4294967295;e[2]=e[2]+f&4294967295;
|
|
e[3]=e[3]+h&4294967295;e[4]=e[4]+l&4294967295}
|
|
function c(a,c){if("string"===typeof a){a=unescape(encodeURIComponent(a));for(var d=[],e=0,g=a.length;e<g;++e)d.push(a.charCodeAt(e));a=d}c||(c=a.length);d=0;if(0==m)for(;d+64<c;)b(a.slice(d,d+64)),d+=64,r+=64;for(;d<c;)if(f[m++]=a[d++],r++,64==m)for(m=0,b(f);d+64<c;)b(a.slice(d,d+64)),d+=64,r+=64}
|
|
function d(){var a=[],d=8*r;56>m?c(h,56-m):c(h,64-(m-56));for(var g=63;56<=g;g--)f[g]=d&255,d>>>=8;b(f);for(g=d=0;5>g;g++)for(var l=24;0<=l;l-=8)a[d++]=e[g]>>l&255;return a}
|
|
for(var e=[],f=[],g=[],h=[128],l=1;64>l;++l)h[l]=0;var m,r;a();return{reset:a,update:c,digest:d,Pa:function(){for(var a=d(),b="",c=0;c<a.length;c++)b+="0123456789ABCDEF".charAt(Math.floor(a[c]/16))+"0123456789ABCDEF".charAt(a[c]%16);return b}}}
|
|
;function yc(a,b,c){var d=[],e=[];if(1==(ia(c)?2:1))return e=[b,a],y(d,function(a){e.push(a)}),zc(e.join(" "));
|
|
var f=[],g=[];y(c,function(a){g.push(a.key);f.push(a.value)});
|
|
c=Math.floor((new Date).getTime()/1E3);e=0==f.length?[c,b,a]:[f.join(":"),c,b,a];y(d,function(a){e.push(a)});
|
|
a=zc(e.join(" "));a=[c,a];0==g.length||a.push(g.join(""));return a.join("_")}
|
|
function zc(a){var b=xc();b.update(a);return b.Pa().toLowerCase()}
|
|
;function Ac(a){this.b=a||{cookie:""}}
|
|
k=Ac.prototype;k.isEnabled=function(){return navigator.cookieEnabled};
|
|
k.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+'"');q(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(sa()+1E3*c)).toUTCString();this.b.cookie=a+"="+b+e+d+c+f};
|
|
k.get=function(a,b){for(var c=a+"=",d=(this.b.cookie||"").split(";"),e=0,f;e<d.length;e++){f=Fa(d[e]);if(0==f.lastIndexOf(c,0))return f.substr(c.length);if(f==a)return""}return b};
|
|
k.remove=function(a,b,c){var d=q(this.get(a));this.set(a,"",0,b,c);return d};
|
|
k.isEmpty=function(){return!this.b.cookie};
|
|
k.clear=function(){for(var a=(this.b.cookie||"").split(";"),b=[],c=[],d,e,f=0;f<a.length;f++)e=Fa(a[f]),d=e.indexOf("="),-1==d?(b.push(""),c.push(e)):(b.push(e.substring(0,d)),c.push(e.substring(d+1)));for(a=b.length-1;0<=a;a--)this.remove(b[a])};function Bc(){var a=[],b=wc(String(n.location.href)),c=n.__OVERRIDE_SID;null==c&&(c=(new Ac(document)).get("SID"));if(c&&(b=(c=0==b.indexOf("https:")||0==b.indexOf("chrome-extension:"))?n.__SAPISID:n.__APISID,null==b&&(b=(new Ac(document)).get(c?"SAPISID":"APISID")),b)){var c=c?"SAPISIDHASH":"APISIDHASH",d=String(n.location.href);return d&&b&&c?[c,yc(wc(d),b,a||null)].join(" "):null}return null}
|
|
;var Cc=z("Firefox"),Dc=ub()||z("iPod"),Ec=z("iPad"),Fc=z("Android")&&!(nb()||z("Firefox")||z("Opera")||z("Silk")),Gc=nb(),Hc=mb()&&!(ub()||z("iPad")||z("iPod"));function Ic(){this.M=this.M;this.F=this.F}
|
|
Ic.prototype.M=!1;Ic.prototype.H=function(){return this.M};
|
|
Ic.prototype.dispose=function(){this.M||(this.M=!0,this.P())};
|
|
function Jc(a,b){a.M?q(void 0)?b.call(void 0):b():(a.F||(a.F=[]),a.F.push(q(void 0)?v(b,void 0):b))}
|
|
Ic.prototype.P=function(){if(this.F)for(;this.F.length;)this.F.shift()()};
|
|
function Kc(a){a&&"function"==typeof a.dispose&&a.dispose()}
|
|
;var Lc=!Bb&&!A||A&&9<=Number(Kb)||Bb&&Jb("1.9.1"),Mc=A&&!Jb("9");function Nc(a){if(a.classList)return a.classList;a=a.className;return t(a)&&a.match(/\S+/g)||[]}
|
|
function C(a,b){return a.classList?a.classList.contains(b):Qa(Nc(a),b)}
|
|
function D(a,b){a.classList?a.classList.add(b):C(a,b)||(a.className+=0<a.className.length?" "+b:b)}
|
|
function Oc(a,b){if(a.classList)y(b,function(b){D(a,b)});
|
|
else{var c={};y(Nc(a),function(a){c[a]=!0});
|
|
y(b,function(a){c[a]=!0});
|
|
a.className="";for(var d in c)a.className+=0<a.className.length?" "+d:d}}
|
|
function E(a,b){a.classList?a.classList.remove(b):C(a,b)&&(a.className=Ma(Nc(a),function(a){return a!=b}).join(" "))}
|
|
function Pc(a,b){a.classList?y(b,function(b){E(a,b)}):a.className=Ma(Nc(a),function(a){return!Qa(b,a)}).join(" ")}
|
|
function Qc(a,b,c){c?D(a,b):E(a,b)}
|
|
function Rc(a,b,c){C(a,b)&&(E(a,b),D(a,c))}
|
|
function Sc(a,b){var c=!C(a,b);Qc(a,b,c)}
|
|
;var Tc=!A&&!mb();function Uc(a,b){return Tc&&a.dataset?b in a.dataset?a.dataset[b]:null:a.getAttribute("data-"+String(b).replace(/([A-Z])/g,"-$1").toLowerCase())}
|
|
;function F(a,b){this.h=q(a)?a:0;this.i=q(b)?b:0}
|
|
F.prototype.equals=function(a){return a instanceof F&&(this==a?!0:this&&a?this.h==a.h&&this.i==a.i:!1)};
|
|
function Vc(a,b){return new F(a.h-b.h,a.i-b.i)}
|
|
F.prototype.ceil=function(){this.h=Math.ceil(this.h);this.i=Math.ceil(this.i);return this};
|
|
F.prototype.floor=function(){this.h=Math.floor(this.h);this.i=Math.floor(this.i);return this};
|
|
F.prototype.round=function(){this.h=Math.round(this.h);this.i=Math.round(this.i);return this};function Wc(a,b){this.width=a;this.height=b}
|
|
k=Wc.prototype;k.aspectRatio=function(){return this.width/this.height};
|
|
k.isEmpty=function(){return!(this.width*this.height)};
|
|
k.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
|
|
k.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
|
|
k.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Xc(a){return a?new Yc(Zc(a)):Ea||(Ea=new Yc)}
|
|
function H(a){return t(a)?document.getElementById(a):a}
|
|
function $c(a){var b=document;return t(a)?b.getElementById(a):a}
|
|
function ad(a,b){var c=b||document;return c.querySelectorAll&&c.querySelector?c.querySelectorAll("."+a):bd(document,"*",a,b)}
|
|
function K(a,b){var c=b||document;if(c.getElementsByClassName)c=c.getElementsByClassName(a)[0];else var c=document,d=b||c,c=d.querySelectorAll&&d.querySelector&&a?d.querySelector(""+(a?"."+a:"")):bd(c,"*",a,b)[0]||null;return c||null}
|
|
function bd(a,b,c,d){a=d||a;var e=b&&"*"!=b?String(b).toUpperCase():"";if(a.querySelectorAll&&a.querySelector&&(e||c))return a.querySelectorAll(e+(c?"."+c:""));if(c&&a.getElementsByClassName){d=a.getElementsByClassName(c);if(e){a={};for(var f=b=0,g;g=d[f];f++)e==g.nodeName&&(a[b++]=g);a.length=b;return a}return d}d=a.getElementsByTagName(e||"*");if(c){a={};for(f=b=0;g=d[f];f++)e=g.className,"function"==typeof e.split&&Qa(e.split(/\s+/),c)&&(a[b++]=g);a.length=b;return a}return d}
|
|
function cd(a,b){ta(b,function(b,d){b&&b.X&&(b=b.W());"style"==d?a.style.cssText=b:"class"==d?a.className=b:"for"==d?a.htmlFor=b:dd.hasOwnProperty(d)?a.setAttribute(dd[d],b):0==d.lastIndexOf("aria-",0)||0==d.lastIndexOf("data-",0)?a.setAttribute(d,b):a[d]=b})}
|
|
var dd={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function ed(a){a=a.document;a=fd(a)?a.documentElement:a.body;return new Wc(a.clientWidth,a.clientHeight)}
|
|
function gd(a){var b=hd(a);a=id(a);return A&&Jb("10")&&a.pageYOffset!=b.scrollTop?new F(b.scrollLeft,b.scrollTop):new F(a.pageXOffset||b.scrollLeft,a.pageYOffset||b.scrollTop)}
|
|
function hd(a){return a.scrollingElement?a.scrollingElement:!Cb&&fd(a)?a.documentElement:a.body||a.documentElement}
|
|
function id(a){return a.parentWindow||a.defaultView}
|
|
function fd(a){return"CSS1Compat"==a.compatMode}
|
|
function jd(a){for(var b;b=a.firstChild;)a.removeChild(b)}
|
|
function kd(a){a&&a.parentNode&&a.parentNode.removeChild(a)}
|
|
function ld(a){return Lc&&void 0!=a.children?a.children:Ma(a.childNodes,function(a){return 1==a.nodeType})}
|
|
function md(a){if(q(a.firstElementChild))a=a.firstElementChild;else for(a=a.firstChild;a&&1!=a.nodeType;)a=a.nextSibling;return a}
|
|
function nd(a){if(!a)return null;if(a.firstChild)return a.firstChild;for(;a&&!a.nextSibling;)a=a.parentNode;return a?a.nextSibling:null}
|
|
function od(a){if(!a)return null;if(!a.previousSibling)return a.parentNode;for(a=a.previousSibling;a&&a.lastChild;)a=a.lastChild;return a}
|
|
function pd(a){return la(a)&&1==a.nodeType}
|
|
function qd(a,b){if(!a||!b)return!1;if(a.contains&&1==b.nodeType)return a==b||a.contains(b);if("undefined"!=typeof a.compareDocumentPosition)return a==b||!!(a.compareDocumentPosition(b)&16);for(;b&&a!=b;)b=b.parentNode;return b==a}
|
|
function Zc(a){return 9==a.nodeType?a:a.ownerDocument||a.document}
|
|
function rd(a,b){if("textContent"in a)a.textContent=b;else if(3==a.nodeType)a.data=b;else if(a.firstChild&&3==a.firstChild.nodeType){for(;a.lastChild!=a.firstChild;)a.removeChild(a.lastChild);a.firstChild.data=b}else jd(a),a.appendChild(Zc(a).createTextNode(String(b)))}
|
|
function sd(a,b){var c=[];return td(a,b,c,!0)?c[0]:void 0}
|
|
function td(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||td(a,b,c,d))return!0;a=a.nextSibling}return!1}
|
|
var ud={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},vd={IMG:" ",BR:"\n"};function wd(a){var b;if((b="A"==a.tagName||"INPUT"==a.tagName||"TEXTAREA"==a.tagName||"SELECT"==a.tagName||"BUTTON"==a.tagName?!a.disabled&&(!xd(a)||yd(a)):xd(a)&&yd(a))&&A){var c;!ka(a.getBoundingClientRect)||A&&null==a.parentElement?c={height:a.offsetHeight,width:a.offsetWidth}:c=a.getBoundingClientRect();a=null!=c&&0<c.height&&0<c.width}else a=b;return a}
|
|
function xd(a){return A&&!Jb("9")?(a=a.getAttributeNode("tabindex"),null!=a&&a.specified):a.hasAttribute("tabindex")}
|
|
function yd(a){a=a.tabIndex;return"number"==typeof a&&0<=a&&32768>a}
|
|
function zd(a){if(Mc&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");else{var b=[];Ad(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");Mc||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a}
|
|
function Ad(a,b,c){if(!(a.nodeName in ud))if(3==a.nodeType)c?b.push(String(a.nodeValue).replace(/(\r\n|\r|\n)/g,"")):b.push(a.nodeValue);else if(a.nodeName in vd)b.push(vd[a.nodeName]);else for(a=a.firstChild;a;)Ad(a,b,c),a=a.nextSibling}
|
|
function Bd(a,b,c,d){if(!b&&!c)return null;var e=b?String(b).toUpperCase():null;return Cd(a,function(a){return(!e||a.nodeName==e)&&(!c||t(a.className)&&Qa(a.className.split(/\s+/),c))},d)}
|
|
function L(a,b){return Bd(a,null,b,void 0)}
|
|
function Cd(a,b,c){for(var d=0;a&&(null==c||d<=c);){if(b(a))return a;a=a.parentNode;d++}return null}
|
|
function Yc(a){this.b=a||n.document||document}
|
|
Yc.prototype.getElementsByTagName=function(a,b){return(b||this.b).getElementsByTagName(String(a))};
|
|
Yc.prototype.createElement=function(a){return this.b.createElement(String(a))};
|
|
Yc.prototype.appendChild=function(a,b){a.appendChild(b)};
|
|
Yc.prototype.isElement=pd;var Dd="StopIteration"in n?n.StopIteration:{message:"StopIteration",stack:""};function Ed(){}
|
|
Ed.prototype.next=function(){throw Dd;};
|
|
Ed.prototype.fa=function(){return this};
|
|
function Fd(a){if(a instanceof Ed)return a;if("function"==typeof a.fa)return a.fa(!1);if(ja(a)){var b=0,c=new Ed;c.next=function(){for(;;){if(b>=a.length)throw Dd;if(b in a)return a[b++];b++}};
|
|
return c}throw Error("Not implemented");}
|
|
function Gd(a,b){if(ja(a))try{y(a,b,void 0)}catch(c){if(c!==Dd)throw c;}else{a=Fd(a);try{for(;;)b.call(void 0,a.next(),void 0,a)}catch(c){if(c!==Dd)throw c;}}}
|
|
function Hd(a){if(ja(a))return Ra(a);a=Fd(a);var b=[];Gd(a,function(a){b.push(a)});
|
|
return b}
|
|
;function Id(a){Jd();return cb(a)}
|
|
var Jd=fa;function Kd(a,b,c,d){this.top=a;this.right=b;this.bottom=c;this.left=d}
|
|
Kd.prototype.getHeight=function(){return this.bottom-this.top};
|
|
Kd.prototype.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this};
|
|
Kd.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};
|
|
Kd.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 Ld(a,b,c,d){this.left=a;this.top=b;this.width=c;this.height=d}
|
|
Ld.prototype.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
|
|
Ld.prototype.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
|
|
Ld.prototype.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this};function Md(a,b,c){if(t(b))(b=Nd(a,b))&&(a.style[b]=c);else for(var d in b){c=a;var e=b[d],f=Nd(c,d);f&&(c.style[f]=e)}}
|
|
var Od={};function Nd(a,b){var c=Od[b];if(!c){var d=Ja(b),c=d;void 0===a.style[d]&&(d=(Cb?"Webkit":Bb?"Moz":A?"ms":yb?"O":null)+Ka(d),void 0!==a.style[d]&&(c=d));Od[b]=c}return c}
|
|
function Pd(a,b){var c=Zc(a);return c.defaultView&&c.defaultView.getComputedStyle&&(c=c.defaultView.getComputedStyle(a,null))?c[b]||c.getPropertyValue(b)||"":""}
|
|
function Qd(a,b){return Pd(a,b)||(a.currentStyle?a.currentStyle[b]:null)||a.style&&a.style[b]}
|
|
function Rd(a){try{var b=a.getBoundingClientRect()}catch(c){return{left:0,top:0,right:0,bottom:0}}A&&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 Sd(a){if(A&&!(8<=Number(Kb)))return a.offsetParent;var b=Zc(a),c=Qd(a,"position"),d="fixed"==c||"absolute"==c;for(a=a.parentNode;a&&a!=b;a=a.parentNode)if(11==a.nodeType&&a.host&&(a=a.host),c=Qd(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 Td(a){for(var b=new Kd(0,Infinity,Infinity,0),c=Xc(a),d=c.b.body,e=c.b.documentElement,f=hd(c.b);a=Sd(a);)if(!(A&&0==a.clientWidth||Cb&&0==a.clientHeight&&a==d)&&a!=d&&a!=e&&"visible"!=Qd(a,"overflow")){var g=Ud(a),h=new F(a.clientLeft,a.clientTop);g.h+=h.h;g.i+=h.i;b.top=Math.max(b.top,g.i);b.right=Math.min(b.right,g.h+a.clientWidth);b.bottom=Math.min(b.bottom,g.i+a.clientHeight);b.left=Math.max(b.left,g.h)}d=f.scrollLeft;f=f.scrollTop;b.left=Math.max(b.left,d);b.top=Math.max(b.top,f);c=
|
|
ed(id(c.b)||window);b.right=Math.min(b.right,d+c.width);b.bottom=Math.min(b.bottom,f+c.height);return 0<=b.top&&0<=b.left&&b.bottom>b.top&&b.right>b.left?b:null}
|
|
function Ud(a){var b=Zc(a),c=new F(0,0);var d=b?Zc(b):document;d=!A||9<=Number(Kb)||fd(Xc(d).b)?d.documentElement:d.body;if(a==d)return c;a=Rd(a);b=gd(Xc(b).b);c.h=a.left+b.h;c.i=a.top+b.i;return c}
|
|
function Vd(a,b){"number"==typeof a&&(a=(b?Math.round(a):a)+"px");return a}
|
|
function Wd(a){var b=Xd;if("none"!=Qd(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 Xd(a){var b=a.offsetWidth,c=a.offsetHeight,d=Cb&&!b&&!c;return q(b)&&!d||!a.getBoundingClientRect?new Wc(b,c):(a=Rd(a),new Wc(a.right-a.left,a.bottom-a.top))}
|
|
function Yd(a){var b=Ud(a);a=Wd(a);return new Ld(b.h,b.i,a.width,a.height)}
|
|
function Zd(a){return"rtl"==Qd(a,"direction")}
|
|
function $d(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 ae(a,b){var c=a.currentStyle?a.currentStyle[b]:null;return c?$d(a,c):0}
|
|
var be={thin:2,medium:4,thick:6};function ce(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 be?be[c]:$d(a,c)}
|
|
;function de(a,b,c,d,e,f,g){var h;if(h=c.offsetParent){var l="HTML"==h.tagName||"BODY"==h.tagName;if(!l||"static"!=Qd(h,"position")){var m=Ud(h);l||(l=(l=Zd(h))&&Bb?-h.scrollLeft:!l||Ab&&Jb("8")||"visible"==Qd(h,"overflowX")?h.scrollLeft:h.scrollWidth-h.clientWidth-h.scrollLeft,m=Vc(m,new F(l,h.scrollTop)))}}h=m||new F;m=Yd(a);if(l=Td(a)){var r=new Ld(l.left,l.top,l.right-l.left,l.bottom-l.top),l=Math.max(m.left,r.left),I=Math.min(m.left+m.width,r.left+r.width);if(l<=I){var T=Math.max(m.top,r.top),
|
|
r=Math.min(m.top+m.height,r.top+r.height);T<=r&&(m.left=l,m.top=T,m.width=I-l,m.height=r-T)}}l=Xc(a);T=Xc(c);if(l.b!=T.b){var I=l.b.body;var T=id(T.b),r=new F(0,0);var J=(J=Zc(I))?id(J):window;b:{try{vb(J.parent);var G=!0;break b}catch(Ti){}G=!1}if(G){G=I;do{if(J==T)var $a=Ud(G);else $a=Rd(G),$a=new F($a.left,$a.top);r.h+=$a.h;r.i+=$a.i}while(J&&J!=T&&J!=J.parent&&(G=J.frameElement)&&(J=J.parent))}G=Vc(r,Ud(I));!A||9<=Number(Kb)||fd(l.b)||(G=Vc(G,gd(l.b)));m.left+=G.h;m.top+=G.i}a=ee(a,b);b=m.left;
|
|
a&4?b+=m.width:a&2&&(b+=m.width/2);b=new F(b,m.top+(a&1?m.height:0));b=Vc(b,h);e&&(b.h+=(a&4?-1:1)*e.h,b.i+=(a&1?-1:1)*e.i);var p;g&&(p=Td(c))&&(p.top-=h.i,p.right-=h.h,p.bottom-=h.i,p.left-=h.h);e=b;e=new F(e.h,e.i);b=ee(c,d);d=Wd(c);a=new Wc(d.width,d.height);e=new F(e.h,e.i);a=new Wc(a.width,a.height);h=0;if(f||0!=b)b&4?e.h-=a.width+(f?f.right:0):b&2?e.h-=a.width/2:f&&(e.h+=f.left),b&1?e.i-=a.height+(f?f.bottom:0):f&&(e.i+=f.top);g&&(p?(f=e,b=a,h=0,65==(g&65)&&(f.h<p.left||f.h>=p.right)&&(g&=-2),
|
|
132==(g&132)&&(f.i<p.top||f.i>=p.bottom)&&(g&=-5),f.h<p.left&&g&1&&(f.h=p.left,h|=1),g&16&&(m=f.h,f.h<p.left&&(f.h=p.left,h|=4),f.h+b.width>p.right&&(b.width=Math.min(p.right-f.h,m+b.width-p.left),b.width=Math.max(b.width,0),h|=4)),f.h+b.width>p.right&&g&1&&(f.h=Math.max(p.right-b.width,p.left),h|=1),g&2&&(h|=(f.h<p.left?16:0)|(f.h+b.width>p.right?32:0)),f.i<p.top&&g&4&&(f.i=p.top,h|=2),g&32&&(m=f.i,f.i<p.top&&(f.i=p.top,h|=8),f.i+b.height>p.bottom&&(b.height=Math.min(p.bottom-f.i,m+b.height-p.top),
|
|
b.height=Math.max(b.height,0),h|=8)),f.i+b.height>p.bottom&&g&4&&(f.i=Math.max(p.bottom-b.height,p.top),h|=2),g&8&&(h|=(f.i<p.top?64:0)|(f.i+b.height>p.bottom?128:0)),g=h):g=256,h=g);f=new Ld(0,0,0,0);f.left=e.h;f.top=e.i;f.width=a.width;f.height=a.height;g=h;g&496||(e=new F(f.left,f.top),e instanceof F?(p=e.h,e=e.i):(p=e,e=void 0),c.style.left=Vd(p,!1),c.style.top=Vd(e,!1),a=new Wc(f.width,f.height),d==a||d&&a&&d.width==a.width&&d.height==a.height||(f=a,p=fd(Xc(Zc(c)).b),!A||Jb("10")||p&&Jb("8")?
|
|
(c=c.style,Bb?c.MozBoxSizing="border-box":Cb?c.WebkitBoxSizing="border-box":c.boxSizing="border-box",c.width=Math.max(f.width,0)+"px",c.height=Math.max(f.height,0)+"px"):(d=c.style,p?(A?(b=ae(c,"paddingLeft"),a=ae(c,"paddingRight"),e=ae(c,"paddingTop"),p=ae(c,"paddingBottom"),p=new Kd(e,a,p,b)):(b=Pd(c,"paddingLeft"),a=Pd(c,"paddingRight"),e=Pd(c,"paddingTop"),p=Pd(c,"paddingBottom"),p=new Kd(parseFloat(e),parseFloat(a),parseFloat(p),parseFloat(b))),!A||9<=Number(Kb)?(b=Pd(c,"borderLeftWidth"),a=
|
|
Pd(c,"borderRightWidth"),e=Pd(c,"borderTopWidth"),c=Pd(c,"borderBottomWidth"),c=new Kd(parseFloat(e),parseFloat(a),parseFloat(c),parseFloat(b))):(b=ce(c,"borderLeft"),a=ce(c,"borderRight"),e=ce(c,"borderTop"),c=ce(c,"borderBottom"),c=new Kd(e,a,c,b)),d.pixelWidth=f.width-c.left-p.left-p.right-c.right,d.pixelHeight=f.height-c.top-p.top-p.bottom-c.bottom):(d.pixelWidth=f.width,d.pixelHeight=f.height))));return g}
|
|
function ee(a,b){return(b&8&&Zd(a)?b^4:b)&-9}
|
|
;function M(a){Ic.call(this);this.m=1;this.g=[];this.j=0;this.b=[];this.f={};this.o=!!a}
|
|
x(M,Ic);k=M.prototype;k.subscribe=function(a,b,c){var d=this.f[a];d||(d=this.f[a]=[]);var e=this.m;this.b[e]=a;this.b[e+1]=b;this.b[e+2]=c;this.m=e+3;d.push(e);return e};
|
|
function fe(a,b){var c=!1,d=a.subscribe("ROOT_MENU_REMOVED",function(a){c||(c=!0,this.T(d),b.apply(void 0,arguments))},a)}
|
|
function ge(a,b,c){if(b=a.f[b]){var d=a.b;(b=Pa(b,function(a){return d[a+1]==c&&void 0==d[a+2]}))&&a.T(b)}}
|
|
k.T=function(a){var b=this.b[a];if(b){var c=this.f[b];if(0!=this.j)this.g.push(a),this.b[a+1]=fa;else{if(c){var d=La(c,a);0<=d&&Array.prototype.splice.call(c,d,1)}delete this.b[a];delete this.b[a+1];delete this.b[a+2]}}return!!b};
|
|
k.G=function(a,b){var c=this.f[a];if(c){for(var d=Array(arguments.length-1),e=1,f=arguments.length;e<f;e++)d[e-1]=arguments[e];if(this.o)for(e=0;e<c.length;e++){var g=c[e];he(this.b[g+1],this.b[g+2],d)}else{this.j++;try{for(e=0,f=c.length;e<f;e++)g=c[e],this.b[g+1].apply(this.b[g+2],d)}finally{if(this.j--,0<this.g.length&&0==this.j)for(;g=this.g.pop();)this.T(g)}}return 0!=e}return!1};
|
|
function he(a,b,c){Ub(function(){a.apply(b,c)})}
|
|
k.clear=function(a){if(a){var b=this.f[a];b&&(y(b,this.T,this),delete this.f[a])}else this.b.length=0,this.f={}};
|
|
function ie(a,b){if(b){var c=a.f[b];return c?c.length:0}var c=0,d;for(d in a.f)c+=ie(a,d);return c}
|
|
k.P=function(){M.D.P.call(this);this.clear();this.g.length=0};function je(){}
|
|
;function ke(){}
|
|
x(ke,je);ke.prototype.clear=function(){var a=Hd(this.fa(!0)),b=this;y(a,function(a){b.remove(a)})};function le(a){this.b=a}
|
|
x(le,ke);k=le.prototype;k.isAvailable=function(){if(!this.b)return!1;try{return this.b.setItem("__sak","1"),this.b.removeItem("__sak"),!0}catch(a){return!1}};
|
|
k.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";}};
|
|
k.get=function(a){a=this.b.getItem(a);if(!t(a)&&null!==a)throw"Storage mechanism: Invalid value was encountered";return a};
|
|
k.remove=function(a){this.b.removeItem(a)};
|
|
k.fa=function(a){var b=0,c=this.b,d=new Ed;d.next=function(){if(b>=c.length)throw Dd;var 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};
|
|
k.clear=function(){this.b.clear()};
|
|
k.key=function(a){return this.b.key(a)};function me(){var a=null;try{a=window.localStorage||null}catch(b){}this.b=a}
|
|
x(me,le);function ne(){var a=null;try{a=window.sessionStorage||null}catch(b){}this.b=a}
|
|
x(ne,le);var oe=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function pe(a){return a?decodeURI(a):a}
|
|
function qe(a,b,c){if(ia(b))for(var d=0;d<b.length;d++)qe(a,String(b[d]),c);else null!=b&&c.push(a+(""===b?"":"="+encodeURIComponent(String(b))))}
|
|
function re(a){var b=[],c;for(c in a)qe(c,a[c],b);return b.join("&")}
|
|
function se(a,b){var c=re(b);if(c){var d=a.indexOf("#");0>d&&(d=a.length);var e=a.indexOf("?");if(0>e||e>d){e=d;var f=""}else f=a.substring(e+1,d);d=[a.substr(0,e),f,a.substr(d)];e=d[1];d[1]=c?e?e+"&"+c:c:e;c=d[0]+(d[1]?"?"+d[1]:"")+d[2]}else c=a;return c}
|
|
;function te(a){return(a=a.exec(jb))?a[1]:""}
|
|
var ue=function(){if(Cc)return te(/Firefox\/([0-9.]+)/);if(A||zb||yb)return Ib;if(Gc)return ub()||z("iPad")||z("iPod")?te(/CriOS\/([0-9.]+)/):te(/Chrome\/([0-9.]+)/);if(Hc&&!(ub()||z("iPad")||z("iPod")))return te(/Version\/([0-9.]+)/);if(Dc||Ec){var a=/Version\/(\S+).*Mobile\/(\S+)/.exec(jb);if(a)return a[1]+"."+a[2]}else if(Fc)return(a=te(/Android\s+([0-9.]+)/))?a:te(/Version\/([0-9.]+)/);return""}();var ve=/^[\w+/]+[=]{0,2}$/;w("userfeedback.api.startFeedback",function(a,b,c){a.timeOfStartCall=(new Date).getTime();var d=c||n,e=d.document,f;a:{if((f=(d||n).document.querySelector("script[nonce]"))&&(f=f.nonce||f.getAttribute("nonce"))&&ve.test(f))break a;f=void 0}f&&(a.nonce=f);if("help"==a.flow){var g=u("document.location.href",d);!a.helpCenterContext&&g&&(a.helpCenterContext=g.substring(0,1200));g=!0;if(b&&JSON&&JSON.stringify){var h=JSON.stringify(b);(g=1200>=h.length)&&(a.psdJson=h)}g||(b={invalidPsd:!0})}b=[a,b,c];
|
|
d.GOOGLE_FEEDBACK_START_ARGUMENTS=b;c=a.serverUri||"//www.google.com/tools/feedback";if(g=d.GOOGLE_FEEDBACK_START)g.apply(d,b);else{var d=c+"/load.js?",l;for(l in a)b=a[l],null!=b&&!la(b)&&(d+=encodeURIComponent(l)+"="+encodeURIComponent(b)+"&");a=e.createElement("script");f&&a.setAttribute("nonce",f);a.src=d;e.body.appendChild(a)}});w("userfeedback.api.isBrowserSupportedForGenie",function(){return we()});
|
|
function we(){return A?0<=Ga(ue,"8"):Cc?0<=Ga(ue,"15"):Hc?0<=Ga(ue,"5"):Gc||zb}
|
|
w("userfeedback.api.isBrowserSupportedForHelp",we);var xe=window.performance&&window.performance.timing&&window.performance.now?function(){return window.performance.timing.navigationStart+window.performance.now()}:function(){return(new Date).getTime()},ye="Microsoft Internet Explorer"==navigator.appName;var ze=window.yt&&window.yt.config_||window.ytcfg&&window.ytcfg.data_||{};w("yt.config_",ze);function Ae(a){var b=arguments;if(1<b.length)ze[b[0]]=b[1];else{var b=b[0],c;for(c in b)ze[c]=b[c]}}
|
|
function N(a,b){return a in ze?ze[a]:b}
|
|
function Be(a){return N(a,void 0)}
|
|
;function Ce(a,b){var c=u("yt.logging.errors.log");c?c(a,b,void 0,void 0,void 0):(c=N("ERRORS",[]),c.push([a,b,void 0,void 0,void 0]),Ae("ERRORS",c))}
|
|
function De(a){return a&&window.yterr?function(){try{return a.apply(this,arguments)}catch(b){Ce(b)}}:a}
|
|
;function O(a,b){ka(a)&&(a=De(a));return window.setTimeout(a,b)}
|
|
;var Ee=u("ytPubsubPubsubInstance")||new M;M.prototype.subscribe=M.prototype.subscribe;M.prototype.unsubscribeByKey=M.prototype.T;M.prototype.publish=M.prototype.G;M.prototype.clear=M.prototype.clear;w("ytPubsubPubsubInstance",Ee);var Fe=u("ytPubsubPubsubSubscribedKeys")||{};w("ytPubsubPubsubSubscribedKeys",Fe);var Ge=u("ytPubsubPubsubTopicToKeys")||{};w("ytPubsubPubsubTopicToKeys",Ge);var He=u("ytPubsubPubsubIsSynchronous")||{};w("ytPubsubPubsubIsSynchronous",He);
|
|
function Ie(a,b,c){var d=Je();if(d){var e=d.subscribe(a,function(){var d=arguments;var g=function(){Fe[e]&&b.apply(c||window,d)};
|
|
try{He[a]?g():O(g,0)}catch(h){Ce(h)}},c);
|
|
Fe[e]=!0;Ge[a]||(Ge[a]=[]);Ge[a].push(e);return e}return 0}
|
|
function Je(){return u("ytPubsubPubsubInstance")}
|
|
function Ke(a){Ge[a]&&(a=Ge[a],y(a,function(a){Fe[a]&&delete Fe[a]}),a.length=0)}
|
|
function Le(a){var b=Je();if(b)if(b.clear(a),a)Ke(a);else for(var c in Ge)Ke(c)}
|
|
function P(a,b){var c=Je();c&&c.publish.apply(c,arguments)}
|
|
function Me(a,b){He[a]=!0;var c=Je();c&&c.publish.apply(c,arguments);He[a]=!1}
|
|
function Ne(a){var b=Je();b&&("number"==typeof a?a=[a]:t(a)&&(a=[parseInt(a,10)]),y(a,function(a){b.unsubscribeByKey(a);delete Fe[a]}))}
|
|
;var Oe={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};
|
|
function Pe(a){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.shiftKey=this.ctrlKey=this.altKey=!1;this.clientY=this.clientX=0;this.changedTouches=this.touches=null;if(a=a||window.event){this.event=a;for(var b in a)b in Oe||(this[b]=a[b]);(b=a.target||a.srcElement)&&3==b.nodeType&&(b=b.parentNode);this.target=b;if(b=a.relatedTarget)try{b=b.nodeName?b:null}catch(c){b=null}else"mouseover"==this.type?b=a.fromElement:
|
|
"mouseout"==this.type&&(b=a.toElement);this.relatedTarget=b;this.clientX=void 0!=a.clientX?a.clientX:a.pageX;this.clientY=void 0!=a.clientY?a.clientY:a.pageY;this.keyCode=a.keyCode?a.keyCode:a.which;this.charCode=a.charCode||("keypress"==this.type?this.keyCode:0);this.altKey=a.altKey;this.ctrlKey=a.ctrlKey;this.shiftKey=a.shiftKey}}
|
|
Pe.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
|
|
Pe.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
|
|
Pe.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Qe=0;function Re(a,b){var c=bd(document,a,null,b);return c.length?c[0]:null}
|
|
var Se=u("ytDomDomGetNextId")||function(){return++Qe};
|
|
w("ytDomDomGetNextId",Se);function Te(a){var b=a.__yt_uid_key;b||(b=Se(),a.__yt_uid_key=b);return b}
|
|
function Ue(a,b){a=H(a);b=H(b);return!!Cd(a,function(a){return a===b},void 0)}
|
|
function Ve(){Qc(document.body,"hide-players",!1);y(ad("preserve-players"),function(a){E(a,"preserve-players")})}
|
|
;var wa=u("ytEventsEventsListeners")||{};w("ytEventsEventsListeners",wa);var We=u("ytEventsEventsCounter")||{count:0};w("ytEventsEventsCounter",We);function Xe(a,b,c,d){d=void 0===d?!1:d;a.addEventListener&&("mouseenter"!=b||"onmouseenter"in document?"mouseleave"!=b||"onmouseenter"in document?"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"):b="mouseout":b="mouseover");return va(function(e){return!!e.length&&e[0]==a&&e[1]==b&&e[2]==c&&e[4]==!!d})}
|
|
function Q(a,b,c,d){d=void 0===d?!1:d;if(!a||!a.addEventListener&&!a.attachEvent)return"";var e=Xe(a,b,c,d);if(e)return e;var e=++We.count+"",f=!("mouseenter"!=b&&"mouseleave"!=b||!a.addEventListener||"onmouseenter"in document);var g=f?function(d){d=new Pe(d);if(!Cd(d.relatedTarget,function(b){return b==a}))return d.currentTarget=a,d.type=b,c.call(a,d)}:function(b){b=new Pe(b);
|
|
b.currentTarget=a;return c.call(a,b)};
|
|
g=De(g);a.addEventListener?("mouseenter"==b&&f?b="mouseover":"mouseleave"==b&&f?b="mouseout":"mousewheel"==b&&"MozBoxSizing"in document.documentElement.style&&(b="MozMousePixelScroll"),a.addEventListener(b,g,d)):a.attachEvent("on"+b,g);wa[e]=[a,b,c,g,d];return e}
|
|
function Ye(a,b,c,d){var e=a||document;return Q(e,b,function(a){var b=Cd(a.target,function(a){return a===e||d(a)});
|
|
b&&b!==e&&!b.disabled&&(a.currentTarget=b,c.call(b,a))})}
|
|
function Ze(a){a=a||window.event;a=a.target||a.srcElement;3==a.nodeType&&(a=a.parentNode);return a}
|
|
function $e(a,b,c,d){return Ye(a,b,c,function(a){return C(a,d)})}
|
|
function af(a){if(document.createEvent){var b=document.createEvent("HTMLEvents");b.initEvent("click",!0,!0);a.dispatchEvent(b)}else b=document.createEventObject(),a.fireEvent("onclick",b)}
|
|
function R(a){a&&("string"==typeof a&&(a=[a]),y(a,function(a){if(a in wa){var b=wa[a],d=b[0],e=b[1],f=b[3],b=b[4];d.removeEventListener?d.removeEventListener(e,f,b):d.detachEvent&&d.detachEvent("on"+e,f);delete wa[a]}}))}
|
|
;function bf(){this.f=window;this.b=[]}
|
|
function cf(a,b,c,d,e){d=v(d,a.f);b=$e(b,c,d,e);a.b.push(b)}
|
|
function df(a){R(a.b);a.b.length=0}
|
|
;function ef(a,b){(a=H(a))&&a.style&&(a.style.display=b?"":"none",Qc(a,"hid",!b))}
|
|
function ff(a){return(a=H(a))?"none"!=a.style.display&&!C(a,"hid"):!1}
|
|
function gf(a){y(arguments,function(a){!ja(a)||a instanceof Element?ef(a,!0):y(a,function(a){gf(a)})})}
|
|
function hf(a){y(arguments,function(a){!ja(a)||a instanceof Element?ef(a,!1):y(a,function(a){hf(a)})})}
|
|
;var jf={};function kf(a){return jf[a]||(jf[a]=String(a).replace(/\-([a-z])/g,function(a,c){return c.toUpperCase()}))}
|
|
function S(a,b){return a?a.dataset?a.dataset[kf(b)]:a.getAttribute("data-"+b):null}
|
|
function lf(a,b,c){a&&(a.dataset?a.dataset[kf(b)]=String(c):a.setAttribute("data-"+b,c))}
|
|
;function mf(a,b){this.version=a;this.args=b}
|
|
;function nf(a){this.topic=a}
|
|
nf.prototype.toString=function(){return this.topic};function of(){var a=pf,b=5E3;isNaN(b)&&(b=void 0);var c=u("yt.scheduler.instance.addJob");return c?c(a,0,b):void 0===b?(a(),NaN):O(a,b||0)}
|
|
;var qf=u("ytPubsub2Pubsub2Instance")||new M;M.prototype.subscribe=M.prototype.subscribe;M.prototype.unsubscribeByKey=M.prototype.T;M.prototype.publish=M.prototype.G;M.prototype.clear=M.prototype.clear;w("ytPubsub2Pubsub2Instance",qf);var rf=u("ytPubsub2Pubsub2SubscribedKeys")||{};w("ytPubsub2Pubsub2SubscribedKeys",rf);var sf=u("ytPubsub2Pubsub2TopicToKeys")||{};w("ytPubsub2Pubsub2TopicToKeys",sf);var tf=u("ytPubsub2Pubsub2IsAsync")||{};w("ytPubsub2Pubsub2IsAsync",tf);
|
|
w("ytPubsub2Pubsub2SkipSubKey",null);function uf(a,b){var c=u("ytPubsub2Pubsub2Instance");c&&c.publish.call(c,a.toString(),a,b)}
|
|
function vf(a){var b=u("ytPubsub2Pubsub2Instance");b&&("number"==typeof a&&(a=[a]),y(a,function(a){b.unsubscribeByKey(a);delete rf[a]}))}
|
|
;var wf={},xf="ontouchstart"in document;function yf(a,b,c){switch(a){case "mouseover":case "mouseout":var d=3;break;case "mouseenter":case "mouseleave":d=9}return Cd(c,function(a){return C(a,b)},d)}
|
|
function U(a){var b,c="mouseover"==a.type&&"mouseenter"in wf||"mouseout"==a.type&&"mouseleave"in wf,d=a.type in wf||c;if("HTML"!=a.target.tagName&&d){if(c){var c="mouseover"==a.type?"mouseenter":"mouseleave",d=wf[c],e;for(e in d.f)(b=yf(c,e,a.target))&&!Cd(a.relatedTarget,function(a){return a==b})&&d.G(e,b,c,a)}if(c=wf[a.type])for(e in c.f)(b=yf(a.type,e,a.target))&&c.G(e,b,a.type,a)}}
|
|
Q(document,"blur",U,!0);Q(document,"change",U,!0);Q(document,"click",U);Q(document,"focus",U,!0);Q(document,"mouseover",U);Q(document,"mouseout",U);Q(document,"mousedown",U);Q(document,"keydown",U);Q(document,"keyup",U);Q(document,"keypress",U);Q(document,"cut",U);Q(document,"paste",U);xf&&(Q(document,"touchstart",U),Q(document,"touchend",U),Q(document,"touchcancel",U));function V(a){this.m=a;this.u={};this.w=[];this.A=[]}
|
|
k=V.prototype;k.C=function(a){return L(a,W(this))};
|
|
function W(a,b){return"yt-uix"+(a.m?"-"+a.m:"")+(b?"-"+b:"")}
|
|
k.unregister=function(){Ne(this.w);this.w.length=0;vf(this.A);this.A.length=0};
|
|
k.init=fa;k.dispose=fa;function zf(a,b,c){a.w.push(Ie(b,c,a))}
|
|
function X(a,b,c,d){d=W(a,d);var e=v(c,a);b in wf||(wf[b]=new M);wf[b].subscribe(d,e);a.u[c]=e}
|
|
function Y(a,b,c,d){if(b in wf){var e=wf[b];ge(e,W(a,d),a.u[c]);0>=ie(e)&&(e.dispose(),delete wf[b])}delete a.u[c]}
|
|
k.R=function(a,b,c){var d=this.l(a,b);if(d&&(d=u(d))){var e=Ua(arguments,2);Ta(e,0,0,a);d.apply(null,e)}};
|
|
k.l=function(a,b){return S(a,b)};function Af(a){return N("EXPERIMENT_FLAGS",{})[a]}
|
|
;var Bf={log_event:"events",log_interaction:"interactions"},Cf=Object.create(null);Cf.log_event="GENERIC_EVENT_LOGGING";Cf.log_interaction="INTERACTION_LOGGING";var Df={},Ef={},Ff=0,ya=u("ytLoggingTransportLogPayloadsQueue_")||{};w("ytLoggingTransportLogPayloadsQueue_",ya);var Gf=u("ytLoggingTransportTokensToCttTargetIds_")||{};w("ytLoggingTransportTokensToCttTargetIds_",Gf);var Hf=u("ytLoggingTransportDispatchedStats_")||{};w("ytLoggingTransportDispatchedStats_",Hf);
|
|
var If=u("ytLoggingTransportCapturedTime_")||{};w("ytytLoggingTransportCapturedTime_",If);
|
|
function Jf(){window.clearTimeout(Ff);if(!xa()){for(var a in ya){var b=Df[a];if(!b){var c=Ef[a];if(!c)continue;b=new c;Df[a]=b}var c=void 0,d=a,e=b,f=Bf[d],g=Hf[d]||{};Hf[d]=g;b=Math.round(xe());for(c in ya[d]){var h=e.b,h={client:{hl:h.bb,gl:h.ab,clientName:h.Za,clientVersion:h.innertubeContextClientVersion}};N("DELEGATED_SESSION_ID")&&(h.user={onBehalfOfUser:N("DELEGATED_SESSION_ID")});h={context:h};h[f]=Kf(d,c);g.dispatchedEventCount=g.dispatchedEventCount||0;g.dispatchedEventCount+=h[f].length;
|
|
h.requestTimeMs=b;var l=Gf[c];if(l)a:{var m=h,r=c;if(l.videoId)var I="VIDEO";else if(l.playlistId)I="PLAYLIST";else break a;m.credentialTransferTokenTargetId=l;m.context=m.context||{};m.context.user=m.context.user||{};m.context.user.credentialTransferTokens=[{token:r,scope:I}]}delete Gf[c];Lf(e,d,h)}c=g;d=b;c.previousDispatchMs&&(b=d-c.previousDispatchMs,e=c.diffCount||0,c.averageTimeBetweenDispatchesMs=e?(c.averageTimeBetweenDispatchesMs*e+b)/(e+1):b,c.diffCount=e+1);c.previousDispatchMs=d;delete ya[a]}xa()||
|
|
Mf()}}
|
|
function Mf(){window.clearTimeout(Ff);Ff=O(Jf,N("LOGGING_BATCH_TIMEOUT",1E4))}
|
|
function Kf(a,b){b||(b="");ya[a]=ya[a]||{};ya[a][b]=ya[a][b]||[];return ya[a][b]}
|
|
;function Nf(a,b,c){var d=Of,e={};e.eventTimeMs=Math.round(c||xe());e[a]=b;a=String;b=u("_lact",window);b=null==b?-1:Math.max(sa()-b,0);e.context={lastActivityMs:a(b)};Ef.log_event=d;d=Kf("log_event");d.push(e);e=Number(Af("web_logging_max_batch")||0)||20;d.length>=e?Jf():Mf()}
|
|
;(new me).isAvailable();(new ne).isAvailable();function Pf(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=decodeURIComponent((e[0]||"").replace(/\+/g," ")),e=decodeURIComponent((e[1]||"").replace(/\+/g," "));f in b?ia(b[f])?Sa(b[f],e):b[f]=[b[f],e]:b[f]=e}}return b}
|
|
function Qf(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=Pf(d[1]||""),e;for(e in b)d[e]=b[e];return se(a,d)+c}
|
|
;function Rf(){V.call(this,"button");this.b=null;this.g=[];this.f={}}
|
|
x(Rf,V);ga(Rf);k=Rf.prototype;k.register=function(){X(this,"click",this.sa);X(this,"keydown",this.za);X(this,"keypress",this.Aa);zf(this,"page-scroll",this.Wa)};
|
|
k.unregister=function(){Y(this,"click",this.sa);Y(this,"keydown",this.za);Y(this,"keypress",this.Aa);Sf(this);this.f={};Rf.D.unregister.call(this)};
|
|
k.sa=function(a){a&&!a.disabled&&(Tf(this,a),this.click(a))};
|
|
k.za=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey)&&(b=Uf(this,a))){var d=function(a){var b="";a.tagName&&(b=a.tagName.toLowerCase());return"ul"==b||"table"==b},e;
|
|
d(b)?e=b:e=sd(b,d);if(e){e=e.tagName.toLowerCase();if("ul"==e)var f=this.jb;else"table"==e&&(f=this.ib);f&&Vf(this,a,b,c,v(f,this))}}};
|
|
k.Wa=function(){var a=this.f,b=0;for(d in a)b++;if(0!=b)for(var c in a){b=a[c];var d=L(b.activeButtonNode||b.parentNode,W(this));if(void 0==d||void 0==b)break;Wf(this,d,b,!0)}};
|
|
function Vf(a,b,c,d,e){var f=ff(c),g=9==d.keyCode;if(g||32==d.keyCode||13==d.keyCode)if(d=Xf(a,c))if(a=md(d),"a"==a.tagName.toLowerCase()){var h=void 0===h?{}:h;var l=void 0===l?"":l;var m=void 0===m?window:m;b=m.location;h=se(a.href,h)+l;h=h instanceof db?h:hb(h);b.href=fb(h)}else af(a);else g&&Yf(a,b);else f?27==d.keyCode?(Xf(a,c),Yf(a,b)):e(b,c,d):(h=C(b,W(a,"reverse"))?38:40,d.keyCode==h&&(af(b),d.preventDefault()))}
|
|
k.Aa=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||(a=Uf(this,a),ff(a)&&c.preventDefault())};
|
|
function Xf(a,b){var c=W(a,"menu-item-highlight"),d=K(c,b);d&&E(d,c);return d}
|
|
function Zf(a,b,c){D(c,W(a,"menu-item-highlight"));var d=c.getAttribute("id");d||(d=W(a,"item-id-"+ma(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)}
|
|
k.ib=function(a,b,c){var d=Xf(this,b);if(d){var e=Re("table",b);b=bd(document,"td",null,e);d=$f(d,b,bd(document,"td",null,Re("tr",e)).length,c);-1!=d&&(Zf(this,a,b[d]),c.preventDefault())}};
|
|
k.jb=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=Xf(this,b);d&&(b=Ma(bd(document,"li",null,b),ff),Zf(this,a,b[$f(d,b,1,c)]),c.preventDefault())}};
|
|
function $f(a,b,c,d){var e=b.length;a=La(b,a);if(-1==a)if(38==d.keyCode)a=e-c;else{if(37==d.keyCode||38==d.keyCode||40==d.keyCode)a=0}else 39==d.keyCode?(a%c==c-1&&(a-=c),a+=1):37==d.keyCode?(0==a%c&&(a+=c),--a):38==d.keyCode?(a<c&&(a+=e),a-=c):40==d.keyCode&&(a>=e-c&&(a-=e),a+=c);return a}
|
|
function ag(a,b){var c=b.iframeMask;c||(c=document.createElement("iframe"),c.src='javascript:""',c.className=W(a,"menu-mask"),hf(c),b.iframeMask=c);return c}
|
|
function Wf(a,b,c,d){var e=L(b,W(a,"group")),f=!!a.l(b,"button-menu-ignore-group"),e=e&&!f?e:b,f=9,g=8,h=Yd(b);if(C(b,W(a,"reverse"))){f=8;g=9;h=h.top+"px";try{c.style.maxHeight=h}catch(r){}}C(b,"flip")&&(C(b,W(a,"reverse"))?(f=12,g=13):(f=13,g=12));var l;a.l(b,"button-has-sibling-menu")?l=Sd(e):a.l(b,"button-menu-root-container")&&(l=bg(a,b));A&&!Jb("8")&&(l=null);if(l){var m=Yd(l);m=new Kd(-m.top,m.left,m.top,-m.left)}l=new F(0,1);C(b,W(a,"center-menu"))&&(l.h-=Math.round((Wd(c).width-Wd(b).width)/
|
|
2));d&&(l.i+=gd(document).i);if(a=ag(a,b))b=Wd(c),a.style.width=b.width+"px",a.style.height=b.height+"px",de(e,f,a,g,l,m,197),d&&Md(a,"position","fixed");de(e,f,c,g,l,m,197)}
|
|
function bg(a,b){if(a.l(b,"button-menu-root-container")){var c=a.l(b,"button-menu-root-container");return L(b,c)}return document.body}
|
|
k.La=function(a){if(a){var b=Uf(this,a);if(b){a.setAttribute("aria-pressed","true");a.setAttribute("aria-expanded","true");b.originalParentNode=b.parentNode;b.activeButtonNode=a;b.parentNode.removeChild(b);var c;this.l(a,"button-has-sibling-menu")?c=a.parentNode:c=bg(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=ag(this,a);d&&c.appendChild(d);(c=!!this.l(a,"button-menu-fixed"))&&(this.f[Te(a).toString()]=b);Wf(this,a,b,c);Me("yt-uix-button-menu-before-show",a,b);gf(b);d&&gf(d);
|
|
this.R(a,"button-menu-action",!0);D(a,W(this,"active"));b=v(this.Ka,this,a,!1);d=v(this.Ka,this,a,!0);c=v(this.xb,this,a,void 0);this.b&&Uf(this,this.b)==Uf(this,a)||Sf(this);P("yt-uix-button-menu-show",a);R(this.g);this.g=[Q(document,"click",d),Q(document,"contextmenu",b),Q(window,"resize",c)];this.b=a}}};
|
|
function Yf(a,b){if(b){var c=Uf(a,b);if(c){a.b=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");hf(c);a.R(b,"button-menu-action",!1);var d=ag(a,b),e=Te(c).toString();delete a.f[e];O(function(){d&&d.parentNode&&(hf(d),d.parentNode.removeChild(d));c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}var e=L(b,W(a,"group")),f=[W(a,"active")];
|
|
e&&f.push(W(a,"group-active"));Pc(b,f);P("yt-uix-button-menu-hide",b);R(a.g);a.g.length=0}}
|
|
k.xb=function(a,b){var c=Uf(this,a);if(c){b&&(b instanceof ob?c.innerHTML=qb(b):rd(c,b));var d=!!this.l(a,"button-menu-fixed");Wf(this,a,c,d)}};
|
|
k.Ka=function(a,b,c){c=Ze(c);var d=L(c,W(this));if(d){var d=Uf(this,d),e=Uf(this,a);if(d==e)return}var d=L(c,W(this,"menu")),e=d==Uf(this,a),f=C(c,W(this,"menu-item")),g=C(c,W(this,"menu-close"));if(!d||e&&(f||g))Yf(this,a),d&&b&&this.l(a,"button-menu-indicate-selected")&&((a=K(W(this,"content"),a))&&rd(a,zd(c)),cg(this,d,c))};
|
|
function cg(a,b,c){var d=W(a,"menu-item-selected");y(ad(d,b),function(a){E(a,d)});
|
|
D(c.parentNode,d)}
|
|
function Uf(a,b){if(!b.widgetMenu){var c=a.l(b,"button-menu-id"),c=c&&H(c),d=W(a,"menu");c?Oc(c,[d,W(a,"menu-external")]):c=K(d,b);b.widgetMenu=c}return b.widgetMenu}
|
|
k.isToggled=function(a){return C(a,W(this,"toggled"))};
|
|
function Tf(a,b){if(a.l(b,"button-toggle")){var c=L(b,W(a,"group")),d=W(a,"toggled"),e=C(b,d);if(c&&a.l(c,"button-toggle-group")){var f=a.l(c,"button-toggle-group");y(ad(W(a),c),function(a){a!=b||"optional"==f&&e?(E(a,d),a.removeAttribute("aria-pressed")):(D(b,d),a.setAttribute("aria-pressed","true"))})}else e?b.removeAttribute("aria-pressed"):b.setAttribute("aria-pressed","true"),Sc(b,d)}}
|
|
k.click=function(a){if(Uf(this,a)){var b=Uf(this,a);if(b){var c=L(b.activeButtonNode||b.parentNode,W(this));c&&c!=a?(Yf(this,c),O(v(this.La,this,a),1)):ff(b)?Yf(this,a):this.La(a)}a.focus()}this.R(a,"button-action")};
|
|
function Sf(a){a.b&&Yf(a,a.b)}
|
|
;function dg(a){V.call(this,a);this.g=null}
|
|
x(dg,V);k=dg.prototype;k.C=function(a){var b=V.prototype.C.call(this,a);return b?b:a};
|
|
k.register=function(){zf(this,"yt-uix-kbd-nav-move-out-done",this.hide)};
|
|
k.dispose=function(){dg.D.dispose.call(this);eg(this)};
|
|
k.l=function(a,b){var c=dg.D.l.call(this,a,b);return c?c:(c=dg.D.l.call(this,a,"card-config"))&&(c=u(c))&&c[b]?c[b]:null};
|
|
k.show=function(a){var b=this.C(a);if(b){D(b,W(this,"active"));var c=fg(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;gg(this,a,c);var d=W(this,"card-visible"),e=this.l(a,"card-delegate-show")&&this.l(b,"card-action");this.R(b,"card-action",a);this.g=a;hf(c);O(v(function(){e||(gf(c),P("yt-uix-card-show",b,a,c));hg(c);D(c,d);P("yt-uix-kbd-nav-move-in-to",c)},this),10)}}};
|
|
function fg(a,b,c){var d=c||b,e=W(a,"card");c=ig(a,d);var f=H(W(a,"card")+Te(d));if(f)return a=K(W(a,"card-body"),f),qd(a,c)||(kd(c),a.appendChild(c)),f;f=document.createElement("div");f.id=W(a,"card")+Te(d);f.className=e;(d=a.l(d,"card-class"))&&Oc(f,d.split(/\s+/));d=document.createElement("div");d.className=W(a,"card-border");b=a.l(b,"orientation")||"horizontal";e=document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var g=document.createElement("div");
|
|
g.className=W(a,"card-body");a=document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;kd(c);g.appendChild(c);d.appendChild(a);d.appendChild(g);f.appendChild(e);f.appendChild(d);document.body.appendChild(f);return f}
|
|
function gg(a,b,c){var d=a.l(b,"orientation")||"horizontal",e=K(W(a,"anchor"),b)||b,f=a.l(b,"position"),g=!!a.l(b,"force-position"),h=a.l(b,"position-fixed"),d="horizontal"==d,l="bottomright"==f||"bottomleft"==f,m="topright"==f||"bottomright"==f;if(m&&l){var r=13;var I=8}else m&&!l?(r=12,I=9):!m&&l?(r=9,I=12):(r=8,I=13);var T=Zd(document.body),f=Zd(b);T!=f&&(r^=4);if(d){f=b.offsetHeight/2-12;var J=new F(-12,b.offsetHeight+6)}else f=b.offsetWidth/2-6,J=new F(b.offsetWidth+6,-12);var G=Wd(c),f=Math.min(f,
|
|
(d?G.height:G.width)-24-6);6>f&&(f=6,d?J.i+=12-b.offsetHeight/2:J.h+=12-b.offsetWidth/2);G=null;g||(G=10);b=W(a,"card-flip");a=W(a,"card-reverse");Qc(c,b,m);Qc(c,a,l);G=de(e,r,c,I,J,null,G);!g&&G&&(G&48&&(m=!m,r^=4,I^=4),G&192&&(l=!l,r^=1,I^=1),Qc(c,b,m),Qc(c,a,l),de(e,r,c,I,J));h&&(e=parseInt(c.style.top,10),g=gd(document).i,Md(c,"position","fixed"),Md(c,"top",e-g+"px"));T&&(c.style.right="",e=Yd(c),e.left=e.left||parseInt(c.style.left,10),g=ed(window),c.style.left="",c.style.right=g.width-e.left-
|
|
e.width+"px");e=K("yt-uix-card-body-arrow",c);g=K("yt-uix-card-border-arrow",c);d=d?l?"top":"bottom":!T&&m||T&&!m?"left":"right";e.setAttribute("style","");g.setAttribute("style","");e.style[d]=f+"px";g.style[d]=f+"px";l=K("yt-uix-card-arrow",c);m=K("yt-uix-card-arrow-background",c);l&&m&&(c="right"==d?Wd(c).width-f-13:f+11,f=c/Math.sqrt(2),l.style.left=c+"px",l.style.marginLeft="1px",m.style.marginLeft=-f+"px",m.style.marginTop=f+"px")}
|
|
k.hide=function(a){if(a=this.C(a)){var b=H(W(this,"card")+Te(a));b&&(E(a,W(this,"active")),E(b,W(this,"card-visible")),hf(b),this.g=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(kd(b.cardMask),b.cardMask=null))}};
|
|
function eg(a){a.g&&a.hide(a.g)}
|
|
k.wb=function(a,b){var c=this.C(a);if(c){if(b){var d=ig(this,c);if(!d)return;b instanceof ob?d.innerHTML=qb(b):rd(d,b)}C(c,W(this,"active"))&&(c=fg(this,a,c),gg(this,a,c),gf(c),hg(c))}};
|
|
k.isActive=function(a){return(a=this.C(a))?C(a,W(this,"active")):!1};
|
|
function ig(a,b){var c=b.cardContentNode;if(!c){var d=W(a,"content"),e=W(a,"card-content");(c=(c=a.l(b,"card-id"))?H(c):K(d,b))||(c=document.createElement("div"));var f=c;E(f,d);D(f,e);b.cardContentNode=c}return c}
|
|
function hg(a){var b=a.cardMask;b||(b=document.createElement("iframe"),b.src='javascript:""',Oc(b,["yt-uix-card-iframe-mask"]),a.cardMask=b);b.style.position=a.style.position;b.style.top=a.style.top;b.style.left=a.offsetLeft+"px";b.style.height=a.clientHeight+"px";b.style.width=a.clientWidth+"px";document.body.appendChild(b)}
|
|
;function jg(){V.call(this,"kbd-nav")}
|
|
var kg;x(jg,V);ga(jg);k=jg.prototype;k.register=function(){X(this,"keydown",this.xa);zf(this,"yt-uix-kbd-nav-move-in",this.Fa);zf(this,"yt-uix-kbd-nav-move-in-to",this.kb);zf(this,"yt-uix-kbd-move-next",this.Ga);zf(this,"yt-uix-kbd-nav-move-to",this.ga)};
|
|
k.unregister=function(){Y(this,"keydown",this.xa);R(kg)};
|
|
k.xa=function(a,b,c){var d=c.keyCode;if(a=L(a,W(this)))switch(d){case 13:case 32:this.Fa(a);break;case 27:c.preventDefault();c.stopImmediatePropagation();a:{for(c=Uc(a,"kbdNavMoveOut");!c;){c=L(a.parentElement,W(this));if(!c)break a;c=Uc(c,"kbdNavMoveOut")}c=H(c);this.ga(c);P("yt-uix-kbd-nav-move-out-done",c)}break;case 40:case 38:if((b=c.target)&&C(a,W(this,"list")))switch(d){case 40:this.Ga(b,a);break;case 38:d=document.activeElement==a,a=lg(a),b=a.indexOf(b),0>b&&!d||(b=d?a.length-1:(a.length+
|
|
b-1)%a.length,a[b].focus(),mg(this,a[b]))}c.preventDefault()}};
|
|
k.Fa=function(a){var b=Uc(a,"kbdNavMoveIn"),b=H(b);ng(this,a,b);this.ga(b)};
|
|
k.kb=function(a){a:{var b=document;try{var c=b&&b.activeElement;break a}catch(d){}c=null}ng(this,c,a);this.ga(a)};
|
|
k.ga=function(a){if(a)if(wd(a))a.focus();else{var b=sd(a,function(a){return pd(a)?wd(a):!1});
|
|
b?b.focus():(a.setAttribute("tabindex","-1"),a.focus())}};
|
|
function ng(a,b,c){b&&c&&(D(c,W(a)),a=b.id,a||(a="kbd-nav-"+Math.floor(1E6*Math.random()+1),b.id=a),b=a,Tc&&c.dataset?c.dataset.kbdNavMoveOut=b:c.setAttribute("data-"+"kbdNavMoveOut".replace(/([A-Z])/g,"-$1").toLowerCase(),b))}
|
|
k.Ga=function(a,b){var c=document.activeElement==b,d=lg(b),e=d.indexOf(a);0>e&&!c||(c=c?0:(e+1)%d.length,d[c].focus(),mg(this,d[c]))};
|
|
function mg(a,b){if(b){var c=Bd(b,"LI");c&&(D(c,W(a,"highlight")),kg=Q(b,"blur",v(function(a){E(a,W(this,"highlight"));R(kg)},a,c)))}}
|
|
function lg(a){if("UL"!=a.tagName.toUpperCase())return[];a=Ma(ld(a),function(a){return"LI"==a.tagName.toUpperCase()});
|
|
return Ma(Na(a,function(a){return ff(a)?sd(a,function(a){return pd(a)?wd(a):!1}):!1}),function(a){return!!a})}
|
|
;function og(){V.call(this,"menu");this.f=this.b=null;this.g={};this.o={};this.j=null}
|
|
x(og,V);ga(og);function pg(a){var b=og.B();if(C(a,W(b)))return a;var c=b.C(a);return c?c:L(a,W(b,"content"))==b.b?b.f:null}
|
|
k=og.prototype;k.register=function(){X(this,"click",this.wa);X(this,"mouseenter",this.Ua);zf(this,"page-scroll",this.Xa);zf(this,"yt-uix-kbd-nav-move-out-done",function(a){a=this.C(a);qg(this,a)});
|
|
this.j=new M};
|
|
k.unregister=function(){Y(this,"click",this.wa);this.f=this.b=null;R(Va(ua(this.g)));this.g={};ta(this.o,function(a){kd(a)},this);
|
|
this.o={};Kc(this.j);this.j=null;og.D.unregister.call(this)};
|
|
k.wa=function(a,b,c){a&&(b=rg(this,a),!b.disabled&&Ue(c.target,b)&&sg(this,a))};
|
|
k.Ua=function(a,b,c){a&&C(a,W(this,"hover"))&&Ue(c.target,rg(this,a))&&sg(this,a,!0)};
|
|
k.Xa=function(){this.b&&this.f&&tg(this,this.f,this.b)};
|
|
function tg(a,b,c){var d=ug(a,b);if(d){var e=Wd(c);if(e instanceof Wc){var f=e.height;e=e.width}else throw Error("missing height argument");d.style.width=Vd(e,!0);d.style.height=Vd(f,!0)}c==a.b&&(e=9,f=8,C(b,W(a,"reversed"))&&(e^=1,f^=1),C(b,W(a,"flipped"))&&(e^=4,f^=4),a=new F(0,1),d&&de(b,e,d,f,a,null,197),de(b,e,c,f,a,null,197))}
|
|
function sg(a,b,c){vg(a,b)&&!c?qg(a,b):(wg(a,b),!a.b||Ue(b,a.b)?a.Ma(b):fe(a.j,v(a.Ma,a,b)))}
|
|
k.Ma=function(a){if(a){var b=xg(this,a);if(b){Me("yt-uix-menu-before-show",a,b);this.b?Ue(a,this.b)||qg(this,this.f):(this.f=a,this.b=b,C(a,W(this,"sibling-content"))||(kd(b),document.body.appendChild(b)),b.style.minWidth=rg(this,a).offsetWidth-2+"px");var c=ug(this,a);c&&b.parentNode&&b.parentNode.insertBefore(c,b.nextSibling);E(b,W(this,"content-hidden"));tg(this,a,b);Oc(rg(this,a),[W(this,"trigger-selected"),"yt-uix-button-toggled"]);P("yt-uix-menu-show",a);yg(b);zg(this,a);P("yt-uix-kbd-nav-move-in-to",
|
|
b);var d=v(this.Cb,this,a),e=v(this.gb,this,a),c=ma(a).toString();this.g[c]=[Q(b,"click",e),Q(document,"click",d)];C(a,W(this,"indicate-selected"))&&(d=v(this.hb,this,a),this.g[c].push(Q(b,"click",d)));C(a,W(this,"hover"))&&(a=v(this.Va,this,a),this.g[c].push(Q(document,"mousemove",a)))}}};
|
|
k.Va=function(a,b){var c=Ze(b);c&&(Ue(c,rg(this,a))||Ag(this,c)||Bg(this,a))};
|
|
k.Cb=function(a,b){var c=Ze(b);if(c){if(Ag(this,c)){var d=L(c,W(this,"content"));var e=Bd(c,"LI");e&&d&&qd(d,e)&&Me("yt-uix-menu-item-clicked",c);c=L(c,W(this,"close-on-select"));if(!c)return;d=pg(c)}qg(this,d||a)}};
|
|
function wg(a,b){if(b){var c=L(b,W(a,"content"));c&&y(ad(W(a),c),function(a){!Ue(a,b)&&vg(this,a)&&Bg(this,a)},a)}}
|
|
function qg(a,b){if(b){var c=[];c.push(b);var d=xg(a,b);d&&(d=ad(W(a),d),d=Ra(d),c=c.concat(d),y(c,function(a){vg(this,a)&&Bg(this,a)},a))}}
|
|
function Bg(a,b){if(b){var c=xg(a,b);Pc(rg(a,b),[W(a,"trigger-selected"),"yt-uix-button-toggled"]);D(c,W(a,"content-hidden"));var d=xg(a,b);d&&cd(d,{"aria-expanded":"false"});(d=ug(a,b))&&d.parentNode&&kd(d);c&&c==a.b&&(a.f.appendChild(c),a.b=null,a.f=null,a.j&&a.j.G("ROOT_MENU_REMOVED"));P("yt-uix-menu-hide",b);c=ma(b).toString();R(a.g[c]);delete a.g[c]}}
|
|
k.gb=function(a,b){var c=Ze(b);c&&Cg(this,a,c)};
|
|
k.hb=function(a,b){var c=Ze(b);if(c){var d=rg(this,a);if(d&&(c=Bd(c,"LI")))if(c=zd(c).trim(),d.hasChildNodes()){var e=Rf.B();(d=K(W(e,"content"),d))&&rd(d,c)}else rd(d,c)}};
|
|
function zg(a,b){var c=xg(a,b);if(c){y(c.children,function(a){"LI"==a.tagName&&cd(a,{role:"menuitem"})});
|
|
cd(c,{"aria-expanded":"true"});var d=c.id;d||(d="aria-menu-id-"+ma(c),c.id=d);(c=rg(a,b))&&cd(c,{"aria-controls":d})}}
|
|
function Cg(a,b,c){var d=xg(a,b);d&&C(b,W(a,"checked"))&&(a=Bd(c,"LI"))&&(a=K("yt-ui-menu-item-checked-hid",a))&&(y(ad("yt-ui-menu-item-checked",d),function(a){Rc(a,"yt-ui-menu-item-checked","yt-ui-menu-item-checked-hid")}),Rc(a,"yt-ui-menu-item-checked-hid","yt-ui-menu-item-checked"))}
|
|
function vg(a,b){var c=xg(a,b);return c?!C(c,W(a,"content-hidden")):!1}
|
|
function yg(a){y(bd(document,"UL",null,a),function(a){a.tabIndex=0;var b=jg.B();Oc(a,[W(b),W(b,"list")])})}
|
|
function xg(a,b){var c=S(b,"menu-content-id");return c&&(c=H(c))?(Oc(c,[W(a,"content"),W(a,"content-external")]),c):b==a.f?a.b:K(W(a,"content"),b)}
|
|
function ug(a,b){var c=ma(b).toString(),d=a.o[c];if(!d){d=document.createElement("IFRAME");d.src='javascript:""';var e=[W(a,"mask")];y(Nc(b),function(a){e.push(a+"-mask")});
|
|
Oc(d,e);a.o[c]=d}return d||null}
|
|
function rg(a,b){return K(W(a,"trigger"),b)}
|
|
function Ag(a,b){return Ue(b,a.b)||Ue(b,a.f)}
|
|
;function Dg(){dg.call(this,"clickcard");this.b={};this.f={}}
|
|
x(Dg,dg);ga(Dg);k=Dg.prototype;k.register=function(){Dg.D.register.call(this);X(this,"click",this.ua,"target");X(this,"click",this.ta,"close")};
|
|
k.unregister=function(){Dg.D.unregister.call(this);Y(this,"click",this.ua,"target");Y(this,"click",this.ta,"close");for(var a in this.b)R(this.b[a]);this.b={};for(a in this.f)R(this.f[a]);this.f={}};
|
|
k.ua=function(a,b,c){c.preventDefault();b=Bd(c.target,"button");b&&b.disabled||(a=(b=this.l(a,"card-target"))?$c(b):a,b=this.C(a),this.l(b,"disabled")||(C(b,W(this,"active"))?(this.hide(a),E(b,W(this,"active"))):(this.show(a),D(b,W(this,"active")))))};
|
|
k.show=function(a){Dg.D.show.call(this,a);var b=this.C(a),c=ma(a).toString();if(!S(b,"click-outside-persists")){if(this.b[c])return;var b=Q(document,"click",v(this.va,this,a)),d=Q(window,"blur",v(this.va,this,a));this.b[c]=[b,d]}a=Q(window,"resize",v(this.wb,this,a,void 0));this.f[c]=a};
|
|
k.hide=function(a){Dg.D.hide.call(this,a);a=ma(a).toString();var b=this.b[a];b&&(R(b),this.b[a]=null);if(b=this.f[a])R(b),delete this.f[a]};
|
|
k.va=function(a,b){var c="yt-uix"+(this.m?"-"+this.m:"")+"-card",d=null;b.target&&(d=L(b.target,c)||L(pg(b.target),c));(d=d||L(document.activeElement,c)||L(pg(document.activeElement),c))||this.hide(a)};
|
|
k.ta=function(a){(a=L(a,W(this,"card")))&&(a=a.cardTargetNode)&&this.hide(a)};function Eg(){dg.call(this,"hovercard")}
|
|
x(Eg,dg);ga(Eg);k=Eg.prototype;k.register=function(){X(this,"mouseenter",this.Ba,"target");X(this,"mouseleave",this.Da,"target");X(this,"mouseenter",this.Ca,"card");X(this,"mouseleave",this.Ea,"card")};
|
|
k.unregister=function(){Y(this,"mouseenter",this.Ba,"target");Y(this,"mouseleave",this.Da,"target");Y(this,"mouseenter",this.Ca,"card");Y(this,"mouseleave",this.Ea,"card")};
|
|
k.Ba=function(a){if(Fg!=a){Fg&&(this.hide(Fg),Fg=null);var b=v(this.show,this,a),c=parseInt(this.l(a,"delay-show"),10),b=O(b,-1<c?c:200);lf(a,"card-timer",b.toString());Fg=a;a.alt&&(lf(a,"card-alt",a.alt),a.alt="");a.title&&(lf(a,"card-title",a.title),a.title="")}};
|
|
k.Da=function(a){var b=parseInt(this.l(a,"card-timer"),10);window.clearTimeout(b);this.C(a).isCardHidable=!0;b=parseInt(this.l(a,"delay-hide"),10);b=-1<b?b:200;O(v(this.Ya,this,a),b);if(b=this.l(a,"card-alt"))a.alt=b;if(b=this.l(a,"card-title"))a.title=b};
|
|
k.Ya=function(a){this.C(a).isCardHidable&&(this.hide(a),Fg=null)};
|
|
k.Ca=function(a){a&&(a.cardRootNode.isCardHidable=!1)};
|
|
k.Ea=function(a){a&&this.hide(a.cardTargetNode)};
|
|
var Fg=null;function Gg(a,b,c,d,e,f){this.b=a;this.u=null;this.g=K("yt-dialog-fg",this.b)||this.b;if(a=K("yt-dialog-title",this.g)){var g="yt-dialog-title-"+ma(this.g);a.setAttribute("id",g);this.g.setAttribute("aria-labelledby",g)}this.g.setAttribute("tabindex","-1");this.F=K("yt-dialog-focus-trap",this.b);this.K=!1;this.j=new M;this.w=[];this.w.push($e(this.b,"click",v(this.lb,this),"yt-dialog-dismiss"));this.w.push(Q(this.F,"focus",v(this.Qa,this),!0));Hg(this);this.L=b;this.N=c;this.M=d;this.A=e;this.O=f;
|
|
this.o=this.m=null}
|
|
var Ig={LOADING:"loading",Db:"content",Eb:"working"};function Jg(a,b){a.H()||a.j.subscribe("post-all",b)}
|
|
function Hg(a){a=K("yt-dialog-fg-content",a.b);var b=[];ta(Ig,function(a){b.push("yt-dialog-show-"+a)});
|
|
Pc(a,b);D(a,"yt-dialog-show-content")}
|
|
k=Gg.prototype;
|
|
k.show=function(){if(!this.H()){this.u=document.activeElement;if(!this.M){this.f||(this.f=H("yt-dialog-bg"),this.f||(this.f=document.createElement("div"),this.f.id="yt-dialog-bg",this.f.className="yt-dialog-bg",document.body.appendChild(this.f)));var a=window,b=a.document;var c=0;if(b){c=b.body;var d=b.documentElement;if(d&&c)if(a=ed(a).height,fd(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{var b=d.scrollHeight,e=d.offsetHeight;d.clientHeight!=e&&(b=c.scrollHeight,e=c.offsetHeight);
|
|
c=b>a?b>e?b:e:b<e?b:e}else c=0}this.f.style.height=c+"px";gf(this.f)}this.ya();c=Kg(this);Lg(c);this.m=Q(document,"keydown",v(this.fb,this));c=this.b;d=Ie("player-added",this.ya,this);lf(c,"player-ready-pubsub-key",d);this.N&&(this.o=Q(document,"click",v(this.ub,this)));gf(this.b);this.g.setAttribute("tabindex","0");Mg(this);this.A||D(document.body,"yt-dialog-active");Sf(Rf.B());eg(Dg.B());eg(Eg.B());P("yt-ui-dialog-show-complete",this)}};
|
|
function Ng(){return Oa(ad("yt-dialog"),function(a){return ff(a)})}
|
|
k.ya=function(){if(!this.O){var a=this.b;Qc(document.body,"hide-players",!0);a&&Qc(a,"preserve-players",!0)}};
|
|
function Kg(a){var b=bd(document,"iframe",null,a.b);y(b,function(a){var b=S(a,"onload");b&&(b=u(b))&&Q(a,"load",b);if(b=S(a,"src"))a.src=b},a);
|
|
return Ra(b)}
|
|
function Lg(a){y(document.getElementsByTagName("iframe"),function(b){-1==La(a,b)&&D(b,"iframe-hid")})}
|
|
function Og(){y(ad("iframe-hid"),function(a){E(a,"iframe-hid")})}
|
|
k.lb=function(a){a=a.currentTarget;a.disabled||(a=S(a,"action")||"",this.dismiss(a))};
|
|
k.dismiss=function(a){if(!this.H()){this.j.G("pre-all");this.j.G("pre-"+a);hf(this.b);eg(Dg.B());eg(Eg.B());this.g.setAttribute("tabindex","-1");Ng()||(hf(this.f),this.A||E(document.body,"yt-dialog-active"),Ve(),Og());this.m&&(R(this.m),this.m=null);this.o&&(R(this.o),this.o=null);var b=this.b;if(b){var c=S(b,"player-ready-pubsub-key");c&&(Ne(c),b&&(b.dataset?delete b.dataset[kf("player-ready-pubsub-key")]:b.removeAttribute("data-player-ready-pubsub-key")))}this.j.G("post-all");P("yt-ui-dialog-hide-complete",
|
|
this);"cancel"==a&&P("yt-ui-dialog-cancelled",this);this.j&&this.j.G("post-"+a);this.u&&this.u.focus()}};
|
|
k.setTitle=function(a){rd(K("yt-dialog-title",this.b),a)};
|
|
k.fb=function(a){O(v(function(){this.L||27!=a.keyCode||this.dismiss("cancel")},this),0);
|
|
9==a.keyCode&&a.shiftKey&&C(document.activeElement,"yt-dialog-fg")&&a.preventDefault()};
|
|
k.ub=function(a){"yt-dialog-base"==a.target.className&&this.dismiss("cancel")};
|
|
k.H=function(){return this.K};
|
|
k.dispose=function(){ff(this.b)&&this.dismiss("dispose");R(this.w);this.w.length=0;O(v(function(){this.u=null},this),0);
|
|
this.F=this.g=null;this.j.dispose();this.j=null;this.K=!0};
|
|
k.Qa=function(a){a.stopPropagation();Mg(this)};
|
|
function Mg(a){O(v(function(){this.g&&this.g.focus()},a),0)}
|
|
w("yt.ui.Dialog",Gg);function Pg(){V.call(this,"overlay");this.g=this.f=this.j=this.b=null}
|
|
x(Pg,V);ga(Pg);k=Pg.prototype;k.register=function(){X(this,"click",this.na,"target");X(this,"click",this.hide,"close");Qg(this)};
|
|
k.unregister=function(){Pg.D.unregister.call(this);Y(this,"click",this.na,"target");Y(this,"click",this.hide,"close");this.g&&(Ne(this.g),this.g=null);this.f&&(R(this.f),this.f=null)};
|
|
k.na=function(a){if(!this.b||!ff(this.b.b)){var b=this.C(a);a=Rg(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.l(b,"disable-shortcuts")||!1,d=!!this.l(b,"disable-outside-click-dismiss")||!1;this.b=new Gg(a,c);this.j=b;var e=K("yt-dialog-fg",a);if(e){var f=this.l(b,"overlay-class")||"",g=this.l(b,"overlay-style")||"default",h=this.l(b,"overlay-shape")||"default",f=f?f.split(" "):[];f.push(W(this,g));f.push(W(this,h));Oc(e,f)}this.b.show();P("yt-uix-kbd-nav-move-to",e||a);Qg(this);c||
|
|
d||(c=v(function(a){C(a.target,"yt-dialog-base")&&Sg(this)},this),this.f=Q(K("yt-dialog-base",a),"click",c));
|
|
this.R(b,"overlay-shown");P("yt-uix-overlay-shown",b)}}};
|
|
function Qg(a){a.g||(a.g=Ie("yt-uix-overlay-hide",Tg));a.b&&Jg(a.b,function(){var a=Pg.B();a.j=null;a.b.dispose();a.b=null})}
|
|
function Sg(a){if(a.b){var b=a.j;a.b.dismiss("overlayhide");b&&a.R(b,"overlay-hidden");a.j=null;a.f&&(R(a.f),a.f=null);a.b=null}}
|
|
function Rg(a,b){var c;if(a)if(c=K("yt-dialog",a)){var d=H("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=L(b,"yt-dialog"));return c}
|
|
k.hide=function(a){a&&a.disabled||P("yt-uix-overlay-hide")};
|
|
function Tg(){Sg(Pg.B())}
|
|
k.show=function(a){this.na(a)};function Ug(){this.b=null}
|
|
Ug.prototype.init=function(){this.b=new bf;var a=K("body-container");cf(this.b,K("copynotice-claim-details-table"),"click",this.g,"copynotice-cancel-appeal");cf(this.b,a,"change",this.f,"copynotice-cancel-appeal-checkbox")};
|
|
Ug.prototype.g=function(a){a=L(a.currentTarget,"cancel-appeal-content");a=K("copynotice-cancel-appeal-content",a);Pg.B().show(a)};
|
|
Ug.prototype.f=function(a){a=a.currentTarget;var b=L(a,"yt-dialog-content"),b=K("copynotice-cancel-appeal-confirm-button",b);C(a,"checked")?b.removeAttribute("disabled"):b.setAttribute("disabled","disabled")};
|
|
Ug.prototype.dispose=function(){this.b&&df(this.b)};function Vg(){this.g=this.f=this.b=0;this.j="";var a=u("window.navigator.plugins"),b=u("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.f=b[1];this.g=b[2];if(0>=this.b){if(ye)try{var g=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(r){g=null}else{var h=document.body;var l=document.createElement("object");l.setAttribute("type","application/x-shockwave-flash");g=h.appendChild(l)}if(g&&"GetVariable"in g)try{var m=g.GetVariable("$version")}catch(r){m=""}h&&l&&h.removeChild(l);(g=m||"")?(g=g.split(" ")[1].split(","),g=[parseInt(g[0],10)||0,parseInt(g[1],10)||0,parseInt(g[2],
|
|
10)||0]):g=[0,0,0];this.b=g[0];this.f=g[1];this.g=g[2]}}
|
|
ga(Vg);function Wg(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.f>b[1]||a.b==b[0]&&a.f==b[1]&&a.g>=b[2]}
|
|
;function Xg(a){a=a||{};this.url=a.url||"";this.urlV9As2=a.url_v9as2||"";this.args=a.args||Aa(Yg);this.assets=a.assets||{};this.attrs=a.attrs||Aa(Zg);this.params=a.params||Aa($g);this.minVersion=a.min_version||"8.0.0";this.fallback=a.fallback||null;this.fallbackMessage=a.fallbackMessage||null;this.html5=!!a.html5;this.disable=a.disable||{};this.loaded=!!a.loaded;this.messages=a.messages||{}}
|
|
var Yg={enablejsapi:1},Zg={},$g={allowscriptaccess:"always",allowfullscreen:"true",bgcolor:"#000000"};function ah(a){var b=new Xg,c;for(c in a)if(a.hasOwnProperty(c)){var d=a[c];b[c]="object"==ha(d)?Aa(d):d}return b}
|
|
;function bh(a){Ic.call(this);this.b=[];this.f=a||this}
|
|
aa(bh,Ic);function ch(a,b,c,d){d=De(v(d,a.f));d={target:b,name:c,qa:d};b.addEventListener(c,d.qa,void 0);a.b.push(d)}
|
|
function dh(a){for(;a.b.length;){var b=a.b.pop();b.target.removeEventListener(b.name,b.qa)}}
|
|
bh.prototype.P=function(){dh(this);Ic.prototype.P.call(this)};w("yt.msgs_",window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{});var eh=/\.vflset|-vfl[a-zA-Z0-9_+=-]+/,fh=/-[a-zA-Z]{2,3}_[a-zA-Z]{2,3}(?=(\/|$))/;function gh(a,b){var c=hh(a),d=document.getElementById(c),e=d&&S(d,"loaded"),f=d&&!e;if(e)b&&b();else{if(b){var e=Ie(c,b),g=""+ma(b);ih[g]=e}f||(d=jh(a,c,function(){S(d,"loaded")||(lf(d,"loaded","true"),P(c),O(ra(Le,c),0))}))}}
|
|
function jh(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 hh(a){var b=document.createElement("a");sb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+Ia(a)}
|
|
var ih={};function kh(a,b){if(window.spf){var c="";if(a){var d=a.indexOf("jsbin/"),e=a.lastIndexOf(".js"),f=d+6;-1<d&&-1<e&&e>f&&(c=a.substring(f,e),c=c.replace(eh,""),c=c.replace(fh,""),c=c.replace("debug-",""),c=c.replace("tracing-",""))}spf.script.load(a,c,b)}else gh(a,b)}
|
|
;var lh=/cssbin\/(?:debug-)?([a-zA-Z0-9_-]+?)(?:-2x|-web|-rtl|-vfl|.css)/;function mh(a){a=a||"";if(window.spf){var b=a.match(lh);spf.style.load(a,b?b[1]:"",void 0)}else nh(a)}
|
|
function nh(a){var b=oh(a),c=document.getElementById(b),d=c&&S(c,"loaded");d||c&&!d||(c=ph(a,b,function(){S(c,"loaded")||(lf(c,"loaded","true"),P(b),O(ra(Le,b),0))}))}
|
|
function ph(a,b,c){var d=document.createElement("link");d.id=b;d.onload=function(){c&&setTimeout(c,0)};
|
|
a=Id(a);d.rel="stylesheet";d.href=bb(a);(document.getElementsByTagName("head")[0]||document.body).appendChild(d);return d}
|
|
function oh(a){var b=document.createElement("a");sb(b,a);a=b.href.replace(/^[a-zA-Z]+:\/\//,"//");return"css-"+Ia(a)}
|
|
;var Z={},qh=(Z["api.invalidparam"]=2,Z.auth=150,Z["drm.auth"]=150,Z["heartbeat.net"]=150,Z["heartbeat.servererror"]=150,Z["heartbeat.stop"]=150,Z["html5.unsupportedads"]=5,Z["fmt.noneavailable"]=5,Z["fmt.decode"]=5,Z["fmt.unplayable"]=5,Z["html5.missingapi"]=5,Z["html5.unsupportedlive"]=5,Z["drm.unavailable"]=5,Z);var rh;var sh=jb,sh=sh.toLowerCase();if(-1!=sh.indexOf("android")){var th=sh.match(/android\D*(\d\.\d)[^\;|\)]*[\;\)]/);if(th)rh=Number(th[1]);else{var uh={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},vh=[],wh=0,xh;for(xh in uh)vh[wh++]=xh;var yh=sh.match("("+vh.join("|")+")");rh=yh?uh[yh[0]]:0}}else rh=void 0;var zh=['video/mp4; codecs="avc1.42001E, mp4a.40.2"','video/webm; codecs="vp8.0, vorbis"'],Ah=['audio/mp4; codecs="mp4a.40.2"'];sa();var Bh=q(XMLHttpRequest)?function(){return new XMLHttpRequest}:q(ActiveXObject)?function(){return new ActiveXObject("Microsoft.XMLHTTP")}:null;
|
|
function Ch(){if(!Bh)return null;var a=Bh();return"open"in a?a:null}
|
|
;var Dh={"X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL","X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-YouTube-Variants-Checksum":"VARIANTS_CHECKSUM"};
|
|
function Eh(a,b){b=void 0===b?{}:b;var c=void 0;c=window.location.href;var d=a.match(oe)[1]||null,e=pe(a.match(oe)[3]||null);d&&e?(d=c,c=a.match(oe),d=d.match(oe),c=c[3]==d[3]&&c[1]==d[1]&&c[4]==d[4]):c=e?pe(c.match(oe)[3]||null)==e&&(Number(c.match(oe)[4]||null)||null)==(Number(a.match(oe)[4]||null)||null):!0;for(var f in Dh){if((e=d=N(Dh[f]))&&!(e=c)){var g=a,e=f,h=N("CORS_HEADER_WHITELIST")||{};e=(g=pe(g.match(oe)[3]||null))?(h=h[g])?Qa(h,e):!1:!0}e&&(b[f]=d)}return b}
|
|
function Fh(a,b){var c=N("XSRF_FIELD_NAME",void 0),d;b.headers&&(d=b.headers["Content-Type"]);return!b.Kb&&(!pe(a.match(oe)[3]||null)||b.withCredentials||pe(a.match(oe)[3]||null)==document.location.hostname)&&"POST"==b.method&&(!d||"application/x-www-form-urlencoded"==d)&&!(b.J&&b.J[c])}
|
|
function Gh(a,b){var c=b.format||"JSON";b.Mb&&(a=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+a);var d=N("XSRF_FIELD_NAME",void 0),e=N("XSRF_TOKEN",void 0),f=b.yb;f&&(f[d]&&delete f[d],a=Qf(a,f||{}));var g=b.postBody||"",f=b.J;Fh(a,b)&&(f||(f={}),f[d]=e);f&&t(g)&&(d=Pf(g),Ca(d,f),g=b.Ja&&"JSON"==b.Ja?JSON.stringify(d):re(d));var h=!1,l,m=Hh(a,function(a){if(!h){h=!0;l&&window.clearTimeout(l);a:switch(a&&"status"in a?a.status:-1){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:var d=
|
|
!0;break a;default:d=!1}var e=null;if(d||400<=a.status&&500>a.status)e=Ih(c,a,b.Ib);if(d)a:if(204==a.status)d=!0;else{switch(c){case "XML":d=0==parseInt(e&&e.return_code,10);break a;case "RAW":d=!0;break a}d=!!e}var e=e||{},f=b.context||n;d||b.onError&&b.onError.call(f,a,e);b.mb&&b.mb.call(f,a,e)}},b.method,g,b.headers,b.responseType,b.withCredentials);
|
|
b.ma&&0<b.timeout&&(l=O(function(){h||(h=!0,m.abort(),window.clearTimeout(l),b.ma.call(b.context||n,m))},b.timeout))}
|
|
function Ih(a,b,c){var d=null;switch(a){case "JSON":a=b.responseText;b=b.getResponseHeader("Content-Type")||"";a&&0<=b.indexOf("json")&&(d=JSON.parse(a));break;case "XML":if(b=(b=b.responseXML)?Jh(b):null)d={},y(b.getElementsByTagName("*"),function(a){d[a.tagName]=Kh(a)})}c&&Lh(d);
|
|
return d}
|
|
function Lh(a){if(la(a))for(var b in a){var c;(c="html_content"==b)||(c=b.length-5,c=0<=c&&b.indexOf("_html",c)==c);if(c){c=b;Ya("HTML that is escaped and sanitized server-side and passed through yt.net.ajax");var d=rb(a[b]);a[c]=d}else Lh(a[b])}}
|
|
function Jh(a){return a?(a=("responseXML"in a?a.responseXML:a).getElementsByTagName("root"))&&0<a.length?a[0]:null:null}
|
|
function Kh(a){var b="";y(a.childNodes,function(a){b+=a.nodeValue});
|
|
return b}
|
|
function Mh(a,b){b.method="POST";b.J||(b.J={});Gh(a,b)}
|
|
function Hh(a,b,c,d,e,f,g){function h(){4==(l&&"readyState"in l?l.readyState:0)&&b&&De(b)(l)}
|
|
c=void 0===c?"GET":c;d=void 0===d?"":d;var l=Ch();if(!l)return null;"onloadend"in l?l.addEventListener("loadend",h,!1):l.onreadystatechange=h;l.open(c,a,!0);f&&(l.responseType=f);g&&(l.withCredentials=!0);c="POST"==c;if(e=Eh(a,e))for(var m in e)l.setRequestHeader(m,e[m]),"content-type"==m.toLowerCase()&&(c=!1);c&&l.setRequestHeader("Content-Type","application/x-www-form-urlencoded");l.send(d);return l}
|
|
;var Nh=0,Oh={};function Ph(a,b,c){c.context&&c.context.capabilities&&(c=c.context.capabilities,c.snapshot||c.golden)&&(a="vix");return"/youtubei/"+a+"/"+b}
|
|
;function Of(a){a||(a={apiaryHost:Be("APIARY_HOST"),Gb:Be("APIARY_HOST_FIRSTPARTY"),gapiHintOverride:!!N("GAPI_HINT_OVERRIDE",void 0),gapiHintParams:Be("GAPI_HINT_PARAMS"),innertubeApiKey:Be("INNERTUBE_API_KEY"),innertubeApiVersion:Be("INNERTUBE_API_VERSION"),Za:N("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientVersion:Be("INNERTUBE_CONTEXT_CLIENT_VERSION"),bb:Be("INNERTUBE_CONTEXT_HL"),ab:Be("INNERTUBE_CONTEXT_GL"),xhrApiaryHost:Be("XHR_APIARY_HOST")||"",cb:Be("INNERTUBE_HOST_OVERRIDE")||
|
|
""});this.b=a}
|
|
function Lf(a,b,c){var d={};!N("VISITOR_DATA")&&.01>Math.random()&&Ce(Error("Missing VISITOR_DATA when sending innertube request."),"WARNING");var e={headers:{"Content-Type":"application/json","X-Goog-Visitor-Id":N("VISITOR_DATA","")},J:c,Ja:"JSON",ma:d.ma,Nb:function(){},
|
|
onError:function(a,b){if(d.onError)d.onError(b)},
|
|
timeout:d.timeout,withCredentials:!0},f=Bc();f&&(e.headers.Authorization=f,e.headers["X-Goog-AuthUser"]=N("SESSION_INDEX",0));var g=a.b.xhrApiaryHost;g&&!g.startsWith("http")&&(g="//"+g);Af("youtubei_for_web")&&(g="");var h=a.b.cb;h&&(g=h);f&&!g&&(e.headers["x-origin"]=window.location.origin);Mh(""+g+Ph(a.b.innertubeApiVersion,b,c)+"?alt=json&key="+a.b.innertubeApiKey,e)}
|
|
;var Qh=u("ytLoggingLatencyUsageStats_")||{};w("ytLoggingLatencyUsageStats_",Qh);var Rh=0;
|
|
function Sh(a){Qh[a]=Qh[a]||{count:0};var b=Qh[a];b.count++;b.time=xe();Rh||(Rh=of());if(10<b.count){if(11==b.count){var b=Error("CSI data exceeded logging limit with key: "+a),c=void 0,d=void 0,c=void 0===c?"ERROR":c,d=void 0===d?!1:d;a={name:N("INNERTUBE_CONTEXT_CLIENT_NAME",1),version:Be("INNERTUBE_CONTEXT_CLIENT_VERSION")};c=void 0===c?"ERROR":c;d=window&&window.yterr||(void 0===d?!1:d)||!1;if(b&&d&&!(5<=Nh)){var d=b.stacktrace,e=b.columnNumber;var f=u("window.location.href");if(t(b))b={message:b,
|
|
name:"Unknown error",lineNumber:"Not available",fileName:f,stack:"Not available"};else{var g=!1;try{var h=b.lineNumber||b.line||"Not available"}catch(I){h="Not available",g=!0}try{var l=b.fileName||b.filename||b.sourceURL||n.$googDebugFname||f}catch(I){l="Not available",g=!0}b=!g&&b.lineNumber&&b.fileName&&b.stack&&b.message&&b.name?b:{message:b.message||"Not available",name:b.name||"UnknownError",lineNumber:h,fileName:l,stack:b.stack||"Not available"}}d=d||b.stack;h=b.lineNumber.toString();isNaN(h)||
|
|
isNaN(e)||(h=h+":"+e);if(!(Oh[b.message]||0<=d.indexOf("/YouTubeCenter.js")||0<=d.indexOf("/mytube.js"))){l=b.fileName;h={yb:{a:"logerror",t:"jserror",type:b.name,msg:b.message.substr(0,1E3),line:h,level:c},J:{url:N("PAGE_NAME",window.location.href),file:l},method:"POST"};d&&(h.J.stack=d);for(var m in a)h.J["client."+m]=a[m];if(m=N("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",void 0))for(var r in m)h.J[r]=m[r];Gh("/error_204",h);Oh[b.message]=!0;Nh++}}}return!0}return!1}
|
|
function pf(){var a=xe(),b;for(b in Qh)6E4<a-Qh[b].time&&delete Qh[b];Rh=0}
|
|
;var Th={},Uh=0;function Vh(a,b){a&&(N("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)?Hh(a,b):Wh(a,b))}
|
|
function Wh(a,b){var c=new Image,d=""+Uh++;Th[d]=c;c.onload=c.onerror=function(){b&&Th[d]&&b();delete Th[d]};
|
|
c.src=a}
|
|
;var Xh=window.performance||window.mozPerformance||window.msPerformance||window.webkitPerformance||{};function Yh(a,b){mf.call(this,1,arguments)}
|
|
x(Yh,mf);function Zh(a,b){mf.call(this,1,arguments)}
|
|
x(Zh,mf);var $h=new nf("aft-recorded"),ai=new nf("timing-sent");var bi=sa().toString();var ci={vc:!0},di={ad_at:"adType",cpn:"clientPlaybackNonce",csn:"clientScreenNonce",is_nav:"isNavigation",yt_lt:"loadType",yt_ad:"isMonetized",yt_ad_pr:"prerollAllowed",yt_red:"isRedSubscriber",yt_vis:"isVisible",docid:"videoId",plid:"videoId",fmt:"playerInfo.itag"},ei="ap c cver ei yt_fss yt_li GetBrowse_rid GetPlayer_rid GetSearch_rid GetWatchNext_rid ad_allowed ad_cpn ad_docid ba c cmt cver ncnp nr p pa paused pc prerender psc rc srt st start vpil vpni vps yt_abt yt_ad_an yt_eil yt_fn yt_fs yt_hrd yt_li yt_pft yt_pl yt_pre yt_pt yt_pvis yt_ref yt_sts".split(" "),
|
|
fi=["isNavigation","isMonetized","prerollAllowed","isRedSubscriber","isVisible"],gi=!1;function hi(){var a=ii().info.yt_lt="hot_bg";ji().info_yt_lt=a;if(Af("csi_on_gel"))if("yt_lt"in di){var b={},c=di.yt_lt.split(".");Qa(fi,c)&&(a=!!a);for(var d=b,e=0;e<c.length-1;e++)d[c[e]]=d[c[e]]||{},d=d[c[e]];b[c[c.length-1]]=a;a=ki();c=Object.keys(b).join("");Sh("info_"+c+"_"+a)||(b.clientActionNonce=a,Nf("latencyActionInfo",b))}else Qa(ei,"yt_lt")||Ce(Error("Unknown label yt_lt logged with GEL CSI."))}
|
|
function li(){var a=mi();if(a.aft)return a.aft;for(var b=N("TIMING_AFT_KEYS",["ol"]),c=b.length,d=0;d<c;d++){var e=a[b[d]];if(e)return e}return NaN}
|
|
function ni(){if(!Af("csi_on_gel")){var a=mi(),b=ii().info,c=a._start,d;for(d in a)if(0==d.lastIndexOf("_",0)&&ia(a[d])){var e=d.slice(1);if(e in ci){var f=Na(a[d],function(a){return Math.round(a-c)});
|
|
b["all_"+e]=f.join()}delete a[d]}e=!!b.ap;if(f=u("ytglobal.timingReportbuilder_")){if(f=f(a,b,void 0))oi(f,e),pi(),qi(),ri(!1,void 0),N("TIMING_ACTION")&&Ae("PREVIOUS_ACTION",N("TIMING_ACTION")),Ae("TIMING_ACTION","")}else{var g=N("CSI_SERVICE_NAME","youtube");f={v:2,s:g,action:N("TIMING_ACTION",void 0)};var h=b.srt;void 0!==a.srt&&delete b.srt;if(b.h5jse){var l=window.location.protocol+u("ytplayer.config.assets.js");(l=Xh.getEntriesByName?Xh.getEntriesByName(l)[0]:null)?b.h5jse=Math.round(b.h5jse-
|
|
l.responseEnd):delete b.h5jse}a.aft=li();si()&&"youtube"==g&&(hi(),g=a.vc,l=a.pbs,delete a.aft,b.aft=Math.round(l-g));for(var m in b)"_"!=m.charAt(0)&&(f[m]=b[m]);a.ps=xe();b={};m=[];for(d in a)"_"!=d.charAt(0)&&(g=Math.round(a[d]-c),b[d]=g,m.push(d+"."+g));f.rt=m.join(",");(a=u("ytdebug.logTiming"))&&a(f,b);oi(f,e,void 0);uf(ai,new Zh(b.aft+(h||0),void 0))}}}
|
|
var qi=v(Xh.clearResourceTimings||Xh.webkitClearResourceTimings||Xh.mozClearResourceTimings||Xh.msClearResourceTimings||Xh.oClearResourceTimings||fa,Xh);
|
|
function oi(a,b,c){if(Af("debug_csi_data")){var d=u("yt.timing.csiData");d||(d=[],w("yt.timing.csiData",d));d.push({page:location.href,time:new Date,args:a})}var d="",e;for(e in a)d+="&"+e+"="+a[e];a="/csi_204?"+d.substring(1);if(window.navigator&&window.navigator.sendBeacon&&b)try{window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(a,"")||Vh(a,void 0)}catch(f){Vh(a,void 0)}else Vh(a);ri(!0,c)}
|
|
function ki(){var a=ii().nonce;if(!a){a:{if(window.crypto&&window.crypto.getRandomValues)try{var b=Array(16),c=new Uint8Array(16);window.crypto.getRandomValues(c);for(a=0;a<b.length;a++)b[a]=c[a];var d=b;break a}catch(e){}d=Array(16);for(b=0;16>b;b++){c=sa();for(a=0;a<c%23;a++)d[b]=Math.random();d[b]=Math.floor(256*Math.random())}if(bi)for(b=1,c=0;c<bi.length;c++)d[b%16]=d[b%16]^d[(b-1)%16]/4^bi.charCodeAt(c),b++}b=[];for(c=0;c<d.length;c++)b.push("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_".charAt(d[c]&
|
|
63));a=b.join("");ii().nonce=a}return a}
|
|
function mi(){return ii().tick}
|
|
function ji(){var a=ii();"gel"in a||(a.gel={});return a.gel}
|
|
function ii(){return u("ytcsi.data_")||pi()}
|
|
function pi(){var a={tick:{},info:{}};w("ytcsi.data_",a);return a}
|
|
function ri(a,b){w("yt.timing."+(b||"")+"pingSent_",a)}
|
|
function si(){var a=mi(),b=a.pbr,c=a.vc,a=a.pbs;return b&&c&&a&&b<c&&c<a&&1==ii().info.yt_pvis}
|
|
;function ti(a,b){Ic.call(this);this.u=this.m=a;this.ba=b;this.A=!1;this.f={};this.ca=this.U=null;this.V=new M;Jc(this,ra(Kc,this.V));this.j={};this.K=this.da=this.g=this.ka=this.b=null;this.Y=!1;this.L=this.w=this.o=this.O=null;this.ea={};this.Na=["onReady"];this.Z=new bh(this);Jc(this,ra(Kc,this.Z));this.ia=null;this.oa=NaN;this.aa={};ui(this);this.I("onDetailedError",v(this.pb,this));this.I("onTabOrderChange",v(this.Oa,this));this.I("onTabAnnounce",v(this.pa,this));this.I("WATCH_LATER_VIDEO_ADDED",
|
|
v(this.qb,this));this.I("WATCH_LATER_VIDEO_REMOVED",v(this.rb,this));Cc||(this.I("onMouseWheelCapture",v(this.nb,this)),this.I("onMouseWheelRelease",v(this.ob,this)));this.I("onAdAnnounce",v(this.pa,this));this.N=new bh(this);Jc(this,ra(Kc,this.N));this.ja=!1;this.ha=null}
|
|
x(ti,Ic);var vi=["drm.unavailable","fmt.noneavailable","html5.missingapi","html5.unsupportedads","html5.unsupportedlive"];k=ti.prototype;k.Bb=function(a,b){this.H()||(wi(this,a),xi(this,b),this.A&&yi(this))};
|
|
function wi(a,b){a.ka=b;a.b=ah(b);a.g=a.b.attrs.id||a.g;"video-player"==a.g&&(a.g=a.ba,a.b.attrs.id=a.ba);a.u.id==a.g&&(a.g+="-player",a.b.attrs.id=a.g);a.b.args.enablejsapi="1";a.b.args.playerapiid=a.ba;a.da||(a.da=zi(a,a.b.args.jsapicallback||"onYouTubePlayerReady"));a.b.args.jsapicallback=null;var c=a.b.attrs.width;c&&(a.u.style.width=Vd(Number(c)||c,!0));if(c=a.b.attrs.height)a.u.style.height=Vd(Number(c)||c,!0)}
|
|
k.Ra=function(){return this.ka};
|
|
function yi(a){a.b.loaded||(a.b.loaded=!0,"0"!=a.b.args.autoplay?a.f.loadVideoByPlayerVars(a.b.args):a.f.cueVideoByPlayerVars(a.b.args))}
|
|
function Ai(a){var b=a.b&&a.b.args&&a.b.args.fflags;if(b&&(0<=b.indexOf("web_player_disable_flash=true")||0<=b.indexOf("web_player_disable_flash_playerproxy=true")))return!1;if(!q(a.b.disable.flash)){var b=a.b.disable;var c=Wg(Vg.B(),a.b.minVersion);b.flash=!c}return!a.b.disable.flash}
|
|
function Bi(a,b){var c;(c=!b)||(c=5!=(qh[b.errorCode]||5)?!1:(c=a.b&&a.b.args&&a.b.args.fflags)&&0<=c.indexOf("web_player_disable_flash_fallback=true")?!1:-1!=vi.indexOf(b.errorCode));if(c&&Ai(a)){(c=Ci(a))&&c.stopVideo&&c.stopVideo();var d=a.b;c&&c.getUpdatedConfigurationData&&(c=c.getUpdatedConfigurationData(),c instanceof Xg||(c=new Xg(c)),d=c);d.args.autoplay=1;d.args.html5_unavailable="1";wi(a,d);xi(a,"flash")}}
|
|
function xi(a,b){if(!a.H()){if(!b){var c;if(!(c=!a.b.html5&&Ai(a))){if(!q(a.b.disable.html5)){c=!0;void 0!=a.b.args.deviceHasDisplay&&(c=a.b.args.deviceHasDisplay);if(2.2==rh)var d=!0;else{a:{var e=c;c=u("yt.player.utils.videoElement_");c||(c=document.createElement("VIDEO"),w("yt.player.utils.videoElement_",c));try{if(c.canPlayType)for(var e=e?zh:Ah,f=0;f<e.length;f++)if(c.canPlayType(e[f])){d=null;break a}d="fmt.noneavailable"}catch(g){d="html5.missingapi"}}d=!d}d&&(d=Di(a)||a.b.assets.js);a.b.disable.html5=
|
|
!d;d||(a.b.args.html5_unavailable="1")}c=!!a.b.disable.html5}b=c?Ai(a)?"flash":"unsupported":"html5"}("flash"==b?a.zb:a.Ab).call(a)}}
|
|
function Di(a){var b=!0,c=Ci(a);c&&a.b&&(a=a.b,b=S(c,"version")==a.assets.js);return b&&!!u("yt.player.Application.create")}
|
|
k.Ab=function(){if(!this.Y){var a=Di(this);if(a&&"html5"==Ei(this))this.K="html5",this.A||this.S();else if(Fi(this),this.K="html5",a&&this.o)this.m.appendChild(this.o),this.S();else{this.b.loaded=!0;var b=!1;this.O=v(function(){b=!0;var a=this.m,d=ah(this.b);u("yt.player.Application.create")(a,d);this.S()},this);
|
|
this.Y=!0;a?this.O():(kh(this.b.assets.js,this.O),mh(this.b.assets.css),Gi(this)&&!b&&w("yt.player.Application.create",null))}}};
|
|
k.zb=function(){var a=ah(this.b);if(!this.w){var b=Ci(this);b&&(this.w=document.createElement("SPAN"),this.w.tabIndex=0,ch(this.Z,this.w,"focus",this.Ha),this.L=document.createElement("SPAN"),this.L.tabIndex=0,ch(this.Z,this.L,"focus",this.Ha),b.parentNode&&b.parentNode.insertBefore(this.w,b),b.parentNode&&b.parentNode.insertBefore(this.L,b.nextSibling))}a.attrs.width=a.attrs.width||"100%";a.attrs.height=a.attrs.height||"100%";if("flash"==Ei(this))this.K="flash",this.A||this.S();else{Fi(this);this.K=
|
|
"flash";this.b.loaded=!0;var b=Vg.B(),c=(-1<b.j.indexOf("Gnash")&&-1==b.j.indexOf("AVM2")||9==b.b&&1==b.f||9==b.b&&0==b.f&&1==b.g?0:9<=b.b)||-1<navigator.userAgent.indexOf("Sony/COM2")&&!Wg(b,9,1,58)?a.url:a.urlV9As2;window!=window.top&&document.referrer&&(a.args.framer=document.referrer.substring(0,128));b=this.m;if(c){var b=t(b)?$c(b):b,d=Aa(a.attrs);d.tabindex=0;var e=Aa(a.params);e.flashvars=re(a.args);if(ye){d.classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000";e.movie=c;var a=document.createElement("object");
|
|
for(g in d)a.setAttribute(g,d[g]);for(var f in e){var g=document.createElement("param");g.setAttribute("name",f);g.setAttribute("value",e[f]);a.appendChild(g)}}else{d.type="application/x-shockwave-flash";d.src=c;a=document.createElement("embed");a.setAttribute("name",d.id);for(var h in d)a.setAttribute(h,d[h]);for(var l in e)a.setAttribute(l,e[l])}f=document.createElement("div");f.appendChild(a);b.innerHTML=f.innerHTML}this.S()}};
|
|
k.Ha=function(){Ci(this).focus()};
|
|
function Ci(a){var b=H(a.g);!b&&a.u&&a.u.querySelector&&(b=a.u.querySelector("#"+a.g));return b}
|
|
k.S=function(){if(!this.H()){var a=Ci(this),b=!1;try{a&&a.getApiInterface&&a.getApiInterface()&&(b=!0)}catch(f){}if(b)if(this.Y=!1,a.isNotServable&&a.isNotServable(this.b.args.video_id))Bi(this);else{ui(this);this.A=!0;a=Ci(this);a.addEventListener&&(this.U=Hi(this,a,"addEventListener"));a.removeEventListener&&(this.ca=Hi(this,a,"removeEventListener"));for(var b=a.getApiInterface(),b=b.concat(a.getInternalApiInterface()),c=0;c<b.length;c++){var d=b[c];this.f[d]||(this.f[d]=Hi(this,a,d))}for(var e in this.j)this.U(e,
|
|
this.j[e]);yi(this);this.da&&this.da(this.f);this.V.G("onReady",this.f)}else this.oa=O(v(this.S,this),50)}};
|
|
function Hi(a,b,c){var d=b[c];return function(){try{return a.ia=null,d.apply(b,arguments)}catch(e){"Bad NPObject as private data!"!=e.message&&"sendAbandonmentPing"!=c&&(e.message+=" ("+c+")",a.ia=e,Ce(e,"WARNING"))}}}
|
|
function ui(a){a.A=!1;if(a.ca)for(var b in a.j)a.ca(b,a.j[b]);for(var c in a.aa)window.clearTimeout(parseInt(c,10));a.aa={};a.U=null;a.ca=null;for(var d in a.f)a.f[d]=null;a.f.addEventListener=v(a.I,a);a.f.removeEventListener=v(a.vb,a);a.f.destroy=v(a.dispose,a);a.f.getLastError=v(a.Sa,a);a.f.getPlayerType=v(a.Ta,a);a.f.getCurrentVideoConfig=v(a.Ra,a);a.f.loadNewVideoConfig=v(a.Bb,a);a.f.isReady=v(a.eb,a)}
|
|
k.eb=function(){return this.A};
|
|
k.I=function(a,b){if(!this.H()){var c=zi(this,b);if(c){if(!Qa(this.Na,a)&&!this.j[a]){var d=Ii(this,a);this.U&&this.U(a,d)}this.V.subscribe(a,c);"onReady"==a&&this.A&&O(ra(c,this.f),0)}}};
|
|
k.vb=function(a,b){if(!this.H()){var c=zi(this,b);c&&ge(this.V,a,c)}};
|
|
function zi(a,b){var c=b;if("string"==typeof b){if(a.ea[b])return a.ea[b];c=function(){var a=u(b);a&&a.apply(n,arguments)};
|
|
a.ea[b]=c}return c?c:null}
|
|
function Ii(a,b){var c="ytPlayer"+b+a.ba;a.j[b]=c;n[c]=function(c){var d=O(function(){if(!a.H()){a.V.G(b,c);var e=a.aa,g=String(d);g in e&&delete e[g]}},0);
|
|
za(a.aa,String(d))};
|
|
return c}
|
|
k.Oa=function(a){a=a?od:nd;for(var b=a(document.activeElement);b&&(1!=b.nodeType||b==this.w||b==this.L||(b.focus(),b!=document.activeElement));)b=a(b)};
|
|
k.pa=function(a){P("a11y-announce",a)};
|
|
k.pb=function(a){Bi(this,a)};
|
|
k.qb=function(a){P("WATCH_LATER_VIDEO_ADDED",a)};
|
|
k.rb=function(a){P("WATCH_LATER_VIDEO_REMOVED",a)};
|
|
k.nb=function(){this.ja||(Gc?(this.ha=gd(document),ch(this.N,window,"scroll",this.tb),ch(this.N,this.m,"touchmove",this.sb)):(ch(this.N,this.m,"mousewheel",this.Ia),ch(this.N,this.m,"wheel",this.Ia)),this.ja=!0)};
|
|
k.ob=function(){dh(this.N);this.ja=!1};
|
|
k.Ia=function(a){a=a||window.event;a.returnValue=!1;a.preventDefault&&a.preventDefault()};
|
|
k.tb=function(){window.scrollTo(this.ha.h,this.ha.i)};
|
|
k.sb=function(a){a.preventDefault()};
|
|
k.Ta=function(){return this.K||Ei(this)};
|
|
k.Sa=function(){return this.ia};
|
|
function Ei(a){return(a=Ci(a))?"div"==a.tagName.toLowerCase()?"html5":"flash":null}
|
|
function Fi(a){var b="dcp";Xh.mark&&(0==b.lastIndexOf("mark_",0)||(b="mark_"+b),Xh.mark(b));var b=mi(),c=xe();b.dcp&&(b._dcp=b._dcp||[b.dcp],b._dcp.push(c));b.dcp=c;ji().tick_dcp=void 0;xe();Af("csi_on_gel")?(b=ki(),Sh("tick_dcp_"+b)||Nf("latencyActionTicked",{tickName:"dcp",clientActionNonce:b},void 0),b=!0):b=!1;if(!b&&!u("yt.timing.pingSent_")&&(c=N("TIMING_ACTION",void 0),b=mi(),u("ytglobal.timingready_")&&c&&b._start&&(c=li()))){Af("tighter_critical_section")&&!gi&&(uf($h,new Yh(Math.round(c-
|
|
b._start),void 0)),gi=!0);var c=!0,d=N("TIMING_WAIT",[]);if(d.length)for(var e=0,f=d.length;e<f;++e)if(!(d[e]in b)){c=!1;break}c&&ni()}a.cancel();ui(a);a.K=null;a.b&&(a.b.loaded=!1);b=Ci(a);"html5"==Ei(a)?Di(a)||!Gi(a)?a.o=b:(b&&b.destroy&&b.destroy(),a.o=null):b&&b.destroy&&b.destroy();jd(a.m);dh(a.Z);a.w=null;a.L=null}
|
|
k.cancel=function(){if(this.O){var a=this.O;this.b.assets.js&&a&&(a=""+ma(a),(a=ih[a])&&Ne(a))}window.clearTimeout(this.oa);this.Y=!1};
|
|
k.P=function(){Fi(this);if(this.o&&this.b&&this.o.destroy)try{this.o.destroy()}catch(b){Ce(b)}this.ea=null;for(var a in this.j)n[this.j[a]]=null;this.ka=this.b=this.f=null;delete this.m;delete this.u;ti.D.P.call(this)};
|
|
function Gi(a){return a.b&&a.b.args&&a.b.args.fflags?-1!=a.b.args.fflags.indexOf("player_destroy_old_version=true"):!1}
|
|
;var Ji={},Ki="player_uid_"+(1E9*Math.random()>>>0);var Li={};function Mi(){y(ad("copyright-in-product-help"),function(a){var b=a.dataset.contextId;a.onclick=function(a){a.preventDefault();a=N("FEEDBACK_LOCALE_LANGUAGE");Ca(Li,N("FEEDBACK_LOCALE_EXTRAS",{}));try{var c="player-api";if(c=H(c)){var e=Ki+"_"+ma(c);var f=Ji[e];f||(f=new ti(c,e),Ji[e]=f);var g=f.f}else g=null;g&&g.pauseVideo&&g.pauseVideo();var h=Vg.B();Li.flashVersion=[h.b,h.f,h.g].join(".");g&&(Li.playback_id=g.getVideoData().cpn,g.getLastError&&(Li.api_error=g.getLastError()))}catch(r){}e={helpCenterPath:"/youtube",
|
|
locale:a,productData:Li};g={context:b,anchor:void 0,enableSendFeedback:!0,defaultHelpArticleId:void 0};f=N("SESSION_INDEX");h=N("FEEDBACK_BUCKET_ID");a={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005"};Af("gfeedback_for_signed_out_users_enabled")&&(a.allowNonLoggedInFeedback=!0);f&&(a.authuser=f+"");h&&(a.bucket=h);Ca(g,a);try{e=e||{};var l={apiKey:e.Fb||e.apiKey,environment:e.Jb||e.environment,helpCenterPath:e.Lb||e.helpCenterPath,locale:e.locale||
|
|
e.locale||"en".replace(/-/g,"_"),productData:e.Ob||e.productData,receiverUri:e.Pb||e.receiverUri,renderApiUri:e.Qb||e.renderApiUri,theme:e.theme||e.theme,window:e.window||e.window},m=qc(vc,"help.service.Lazy.create","59",l);(new uc(m)).f(g)}catch(r){}}})}
|
|
;function Ni(){this.b=null}
|
|
Ni.prototype.init=function(){this.b=new bf;cf(this.b,K("copynotice-claim-details-table"),"click",this.f,"copynotice-owner-list-control");Mi()};
|
|
Ni.prototype.f=function(a){a=L(a.currentTarget,"copynotice-claim-owners");Sc(a,"owner-list-state-collapsed")};
|
|
Ni.prototype.dispose=function(){this.b&&df(this.b)};var Oi=null,Pi=null;function Qi(a){var b=parseInt(a.currentTarget.getAttribute("data-match-start"),10);b||(b=0);b=Oi.getAttribute("src")+"&autoplay=1&start="+b;Oi.setAttribute("src",b);a.preventDefault()}
|
|
;var Ri=new Ni,Si=new Ug;Ie("init",function(){Ri.init();Si.init();Pi=new bf;Oi=md(H("vm-video-player"));cf(Pi,null,"click",Qi,"copynotice-play-match")});
|
|
Ie("dispose",function(){Ri.dispose();Si.dispose();Pi&&df(Pi)});}).call(this);
|