text: (function(g){var window=this;var cxa=function(a,b){var c=!1,d=a.subscribe("ROOT_MENU_REMOVED",function(a){c||(c=!0,this.ee(d),b.apply(void 0,arguments))},a)},dxa=function(a,b,c,d){c=(0,g.B)(c,d||a.A);
  b=g.CF(b,"change",c,"iv-card-poll-choice-input");a.o.push(b)},exa=function(a){a.o||(a.o=new g.hD,g.N(a,a.o));
  return a.o},o1=function(a){a.V("cardstatechange",g.iU(a)&&g.jU(a)?1:0)},fxa=function(a){for(var b=[],c=0;c<arguments.length;c++){var d=arguments[c];
  if(g.xa(d))for(var e=0;e<d.length;e+=8192){var f=g.Xa(d,e,e+8192);f=fxa.apply(null,f);for(var k=0;k<f.length;k++)b.push(f[k])}else b.push(d)}return b},gxa=function(a,b,c,d){if(null!=a)for(a=a.firstChild;a;){if(b(a)&&(c.push(a),d)||gxa(a,b,c,d))return!0;
  a=a.nextSibling}return!1},p1=function(a,b){var c=[];
  return gxa(a,b,c,!0)?c[0]:void 0},jxa=function(a,b,c){if(!(a.nodeName in hxa))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 ixa)b.push(ixa[a.nodeName]);else for(a=a.firstChild;a;)jxa(a,b,c),a=a.nextSibling},q1=function(a){if(g.Jva&&null!==a&&"innerText"in a)a=a.innerText.replace(/(\r\n|\r|\n)/g,"\n");
  else{var b=[];jxa(a,b,!0);a=b.join("")}a=a.replace(/ \xAD /g," ").replace(/\xAD/g,"");a=a.replace(/\u200B/g,"");g.Jva||(a=a.replace(/ +/g," "));" "!=a&&(a=a.replace(/^\s*/,""));return a},kxa=function(a){return new g.ih(a.left,a.top,a.right-a.left,a.bottom-a.top)},r1=function(a){return"rtl"==g.Bh(a,"direction")},oxa=function(a){var b=g.Bh(a,"fontSize");
  var c=(c=b.match(lxa))&&c[0]||null;if(b&&"px"==c)return(0,window.parseInt)(b,10);if(g.Hd){if(String(c)in mxa)return g.Uh(a,b,"left","pixelLeft");if(a.parentNode&&1==a.parentNode.nodeType&&String(c)in nxa)return a=a.parentNode,c=g.Bh(a,"fontSize"),g.Uh(a,b==c?"1em":b,"left","pixelLeft")}c=g.L("SPAN",{style:"visibility:hidden;position:absolute;line-height:0;padding:0;margin:0;border:0;height:1em;"});a.appendChild(c);b=c.offsetHeight;g.Td(c);return b},s1=function(a,b){this.start=a<b?a:b;
  this.end=a<b?b:a},t1=function(a,b){if(/-[a-z]/.test(b))return null;
  if(g.vk&&a.dataset){if(g.jc()&&!(b in a.dataset))return null;var c=a.dataset[b];return void 0===c?null:c}return a.getAttribute("data-"+g.Db(b))},u1=function(a,b,c,d,e,f,k){this.date=g.ta(a)?new Date(a,b||0,c||1,d||0,e||0,f||0,k||0):new Date(a&&a.getTime?a.getTime():(0,g.H)())},x1=function(a){a=g.Ca(a);
  delete v1[a];g.Yb(v1)&&w1&&w1.stop()},qxa=function(){w1||(w1=new g.V(function(){pxa()},20));
  var a=w1;a.isActive()||a.start()},pxa=function(){var a=(0,g.H)();
  g.Hb(v1,function(b){rxa(b,a)});
  g.Yb(v1)||qxa()},sxa=function(a,b){g.nf.call(this,a);
  this.coords=b.coords;this.x=b.coords[0];this.y=b.coords[1];this.z=b.coords[2];this.duration=b.duration;this.progress=b.progress;this.fps=b.F;this.state=b.o},y1=function(a,b,c,d){g.Kt.call(this);
  if(!g.xa(a)||!g.xa(b))throw Error("Start and end parameters must be arrays");if(a.length!=b.length)throw Error("Start and end points must be the same length");this.A=a;this.G=b;this.duration=c;this.D=d;this.coords=[];this.progress=this.F=0;this.C=null},rxa=function(a,b){b<a.startTime&&(a.endTime=b+a.endTime-a.startTime,a.startTime=b);
  a.progress=(b-a.startTime)/(a.endTime-a.startTime);1<a.progress&&(a.progress=1);a.F=1E3/(b-a.C);a.C=b;txa(a,a.progress);1==a.progress?(a.o=0,x1(a),a.Fd(),a.In()):a.qb()&&a.lw()},txa=function(a,b){g.za(a.D)&&(b=a.D(b));
  a.coords=Array(a.A.length);for(var c=0;c<a.A.length;c++)a.coords[c]=(a.G[c]-a.A[c])*b+a.A[c]},z1=function(a,b,c,d,e){y1.call(this,b,c,d,e);
  this.element=a},A1=function(a,b,c,d,e){if(2!=b.length||2!=c.length)throw Error("Start and end points must be 2D");
  z1.apply(this,arguments)},uxa=function(a){return Math.pow(a,3)},vxa=function(a){return 3*a*a-2*a*a*a},wxa=function(a,b){return(b&8&&r1(a)?b^4:b)&-9},xxa=function(a,b,c,d,e,f,k){a=a.clone();
  var l=wxa(b,c);c=g.Qh(b);k=k?k.clone():c.clone();a=g.gD(a,k,l,d,e,f);if(a.status&496)return a.status;g.Dh(b,g.nh(a.rect));k=g.mh(a.rect);g.ud(c,k)||(d=k,e=g.wd(b),f=g.Ed(g.yd(e).o),!g.Hd||g.rc("10")||f&&g.rc("8")?(b=b.style,g.yh?b.MozBoxSizing="border-box":g.Jd?b.WebkitBoxSizing="border-box":b.boxSizing="border-box",b.width=Math.max(d.width,0)+"px",b.height=Math.max(d.height,0)+"px"):(e=b.style,f?(f=g.Wh(b),b=g.Zh(b),e.pixelWidth=d.width-b.left-f.left-f.right-b.right,e.pixelHeight=d.height-b.top-
  f.top-f.bottom-b.bottom):(e.pixelWidth=d.width,e.pixelHeight=d.height)));return a.status},B1=function(a,b,c,d,e,f,k){var l;
  if(l=c.offsetParent){var m="HTML"==l.tagName||"BODY"==l.tagName;if(!m||"static"!=g.Bh(l,"position")){var n=g.Hh(l);if(!m){m=r1(l);var p;if(p=m){p=g.VM&&g.Yn(10);var t=g.Gva&&0<=g.yb(g.rwa,10);p=g.yh||p||t}m=p?-l.scrollLeft:!m||g.uH&&g.rc("8")||"visible"==g.Bh(l,"overflowX")?l.scrollLeft:l.scrollWidth-l.clientWidth-l.scrollLeft;n=g.rd(n,new g.pd(m,l.scrollTop))}}}l=n||new g.pd;n=g.Rh(a);(m=g.Ih(a))&&g.lh(n,kxa(m));m=g.yd(a);t=g.yd(c);m.o!=t.o&&(p=m.o.body,t=g.Kh(p,g.ke(t)),t=g.rd(t,g.Hh(p)),!g.Hd||
  g.sc(9)||g.Ed(m.o)||(t=g.rd(t,g.Id(m.o))),n.left+=t.x,n.top+=t.y);a=wxa(a,b);b=n.left;a&4?b+=n.width:a&2&&(b+=n.width/2);b=new g.pd(b,n.top+(a&1?n.height:0));b=g.rd(b,l);e&&(b.x+=(a&4?-1:1)*e.x,b.y+=(a&1?-1:1)*e.y);var w;k&&(w=g.Ih(c))&&(w.top-=l.y,w.right-=l.x,w.bottom-=l.y,w.left-=l.x);return xxa(b,c,d,f,w,k,void 0)},C1=function(a,b){a&&(a.dataset?delete a.dataset[g.aF(b)]:a.removeAttribute("data-"+b))},D1=function(a){var b=a.__yt_uid_key;
  b||(b=(0,g.Cwa)(),a.__yt_uid_key=b);return b},E1=function(a,b){a=g.zd(a);
  b=g.zd(b);return!!g.ge(a,function(a){return a===b},!0,void 0)},yxa=function(a,b){var c=g.Ad(window.document,a,null,b);
  return c.length?c[0]:null},zxa=function(){g.U(window.document.body,"hide-players",!1);
  var a=g.Bd("preserve-players");(0,g.D)(a,function(a){g.Bq(a,"preserve-players")})},Axa=function(a){if(window.document.createEvent){var b=window.document.createEvent("HTMLEvents");
  b.initEvent("click",!0,!0);a.dispatchEvent(b)}else b=window.document.createEventObject(),a.fireEvent("onclick",b)},Bxa=function(a){this.o=a},F1=function(a){var b={};
  void 0!==a.o.trackingParams?b.trackingParams=a.o.trackingParams:(b.veType=a.o.veType,null!=a.o.veCounter&&(b.veCounter=a.o.veCounter),null!=a.o.elementIndex&&(b.elementIndex=a.o.elementIndex));void 0!==a.o.dataElement&&(b.dataElement=F1(a.o.dataElement));void 0!==a.o.youtubeData&&(b.youtubeData=a.o.youtubeData);return b},G1=function(a){return new Bxa({trackingParams:a})},Cxa=function(){var a=g.QG(0),b;
  a?b=new Bxa({veType:a,youtubeData:void 0}):b=null;return b},Dxa=function(a,b){(a=g.zd(a))&&a.style&&(g.O(a,b),g.U(a,"hid",!b))},H1=function(a){return(a=g.zd(a))?g.Th(a)&&!g.zq(a,"hid"):!1},I1=function(a){(0,g.D)(arguments,function(a){!g.ya(a)||a instanceof window.Element?Dxa(a,!0):(0,g.D)(a,function(a){I1(a)})})},J1=function(a){(0,g.D)(arguments,function(a){!g.ya(a)||a instanceof window.Element?Dxa(a,!1):(0,g.D)(a,function(a){J1(a)})})},K1=function(a,b,c){this.id=a;
  this.timestamp=b.timestamp||0;this.type=b.card_type;this.teaserText=b.teaser_text;this.teaserDurationMs=b.teaser_duration_ms;this.startMs=b.start_ms;this.autoOpen=b.auto_open||!1;this.Id=b.session_data||{};this.B=c;this.sponsored=b.sponsored||!1;a=b.tracking||{};this.A={kN:a.impression,click:a.click,close:a.close,DX:a.teaser_impression,ix:a.teaser_click};b=b.tracking_params||{};this.H=G1(b.card);this.G=G1(b.teaser);this.D=G1(b.icon)},L1=function(a,b){g.Of.call(this);
  this.Km=a;this.Vt=b;this[g.sf]=!1},P1=function(a,b,c,d){L1.call(this,a,b);
  a=this.Vt;b=this.oa();c?(b.setAttribute("stroke",c.o),b.setAttribute("stroke-opacity",1),c=c.zb(),g.v(c)&&-1!=c.indexOf("px")?b.setAttribute("stroke-width",(0,window.parseFloat)(c)/Exa(a)):b.setAttribute("stroke-width",c)):b.setAttribute("stroke","none");this.fill=d;c=this.Vt;a=this.oa();if(d instanceof M1)a.setAttribute("fill",d.J),a.setAttribute("fill-opacity",d.K);else if(d instanceof N1){b="lg-"+d.D+"-"+d.G+"-"+d.F+"-"+d.H+"-"+d.o+"-"+d.A;var e=b in c.A?c.A[b]:null;if(!e){e=O1(c,"linearGradient",
  {x1:d.D,y1:d.G,x2:d.F,y2:d.H,gradientUnits:"userSpaceOnUse"});var f="stop-color:"+d.o;g.ta(d.B)&&(f+=";stop-opacity:"+d.B);f=O1(c,"stop",{offset:"0%",style:f});e.appendChild(f);f="stop-color:"+d.A;g.ta(d.C)&&(f+=";stop-opacity:"+d.C);d=O1(c,"stop",{offset:"100%",style:f});e.appendChild(d);e=Fxa(c,b,e)}a.setAttribute("fill","url(#"+e+")")}else a.setAttribute("fill","none")},Gxa=function(){},Hxa=function(a,b){L1.call(this,a,b)},Q1=function(){this.wb=[];
  this.Pa=[];this.Re=[]},R1=function(a,b,c,d){var e=a.oe[0]-b*Math.cos(g.od(d))+b*Math.cos(g.od(d+90)),f=a.oe[1]-c*Math.sin(g.od(d))+c*Math.sin(g.od(d+90));
  a.wb.push(3);a.Pa.push(1);a.Re.push(b,c,d,90,e,f);a.Tn=!1;a.oe=[e,f]},Jxa=function(a,b){for(var c=a.Re,d=0,e=0,f=a.wb.length;e<f;e++){var k=a.wb[e],l=Ixa[k]*a.Pa[e];
  b(k,c.slice(d,d+l));d+=l}},Kxa=function(a,b,c,d){P1.call(this,a,b,c,d)},S1=function(a,b){this.A=a;
  this.o=b},T1=function(a,b,c,d,e){g.fv.call(this,e);
  this.width=a;this.height=b;this.C=c||null;this.N=d||null},Exa=function(a){var b=a.uk();
  return b?b.width/(a.C?new g.sd(a.C,a.N):a.uk()).width:0},Lxa=function(a,b){L1.call(this,a,b)},N1=function(a,b,c,d,e,f,k,l){this.D=a;
  this.G=b;this.F=c;this.H=d;this.o=e;this.A=f;this.B=g.u(k)?k:null;this.C=g.u(l)?l:null},M1=function(a,b){this.J=a;
  this.K=null==b?1:b},U1=function(a,b){L1.call(this,a,b)},Mxa=function(a,b,c,d){P1.call(this,a,b,c,d)},V1=function(a,b){L1.call(this,a,b)},W1=function(a,b,c,d,e){T1.call(this,a,b,c,d,e);
  this.A={};this.P=g.Jd&&!g.rc(526);this.K=new g.Ym(this)},O1=function(a,b,c){a=a.J.o.createElementNS("http://www.w3.org/2000/svg",b);
  c&&X1(a,c);return a},X1=function(a,b){for(var c in b)a.setAttribute(c,b[c])},Y1=function(a,b,c,d){b=O1(a,"path",{d:Nxa(b)});
  c=new Mxa(b,a,c,d);a.B.oa().appendChild(c.oa())},Nxa=function(a){var b=[];
  Jxa(a,function(a,d){switch(a){case 0:b.push("M");Array.prototype.push.apply(b,d);break;case 1:b.push("L");Array.prototype.push.apply(b,d);break;case 2:b.push("C");Array.prototype.push.apply(b,d);break;case 3:var c=d[3];b.push("A",d[0],d[1],0,180<Math.abs(c)?1:0,0<c?1:0,d[4],d[5]);break;case 4:b.push("Z")}});
  return b.join(" ")},Fxa=function(a,b,c){if(b in a.A)return a.A[b];
  var d="_svgdef_"+Oxa++;c.setAttribute("id",d);a.A[b]=d;a.H.appendChild(c);return d},Pxa=function(){Z1||(Z1=new g.Ag(400),Z1.start());
  return Z1},Rxa=function(a,b,c){g.YD("attach_child_on_gel_web")?(a={csn:a,
  parentVe:F1(b),childVes:(0,g.I)(c,function(a){return F1(a)})},g.zG("visualElementAttached",a)):(a={csn:a,
  parentVisualElement:F1(b),visualElements:(0,g.I)(c,function(a){return F1(a)})},Qxa({attachChild:a}))},Sxa=function(a,b){g.zG("visualElementShown",{csn:a,
  ve:F1(b),eventType:1})},$1=function(a,b){g.zG("visualElementGestured",{csn:a,
  ve:F1(b),gestureType:"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"})},Qxa=function(a){var b=g.yG;
  a.eventTimeMs=Math.round(g.iG());a.lactMs=g.xG();g.eG({endpoint:"log_interaction",payload:a},b)},a2=function(a,b){(0,g.D)(b,function(b){g.zG("visualElementShown",{csn:a,
  ve:F1(b),eventType:4})})},b2=function(a,b){(0,g.D)(b,function(b){g.zG("visualElementHidden",{csn:a,
  ve:F1(b),eventType:8})})},c2=function(a,b){function c(a){return a.baseUrl}
  function d(a){if(a){var b=a.simpleText;if(b)return b;if(a.runs)return(0,g.I)(a.runs,function(a){return a.text}).join("")}}
  function e(a){if(a){var b=[],c=a.videoId;c&&b.push("v="+c);(c=a.playlistId)&&b.push("list="+c);(a=a.startTimeSeconds)&&b.push("t="+a);return"/watch?"+b.join("&")}}
  var f={};f.startMs=(0,window.parseInt)(a.startMs,10);f.impressionUrls=(0,g.I)(a.impressionUrls||[],c);f.skip=a.skipEndscreen;f.visualElement=G1(a.trackingParams);var k=(0,g.I)(a.elements||[],function(a,f){var k=a.endscreenElementRenderer;if(!k)return null;var l={},m=k.style,w=k.endpoint||{};l.id="element-"+f;l.type=m;l.title=d(k.title);l.metadata=d(k.metadata);l.callToAction=d(k.callToAction);l.gA=k.image;l.left=(0,window.parseFloat)(k.left);l.width=(0,window.parseFloat)(k.width);l.top=(0,window.parseFloat)(k.top);
  l.aspectRatio=(0,window.parseFloat)(k.aspectRatio);l.startMs=(0,window.parseInt)(k.startMs,10);l.endMs=(0,window.parseInt)(k.endMs,10);l.clickUrls=(0,g.I)(w.loggingUrls||[],c);l.so=g.Rb(k,"title","accessibility","accessibilityData","label");l.impressionUrls=(0,g.I)(k.impressionUrls||[],c);l.vM=(0,g.I)(k.hovercardShowUrls||[],c);l.Id={itct:k.trackingParams};l.visualElement=G1(k.trackingParams);if("VIDEO"==m)l.targetUrl=w.urlEndpoint?w.urlEndpoint.url:e(w.watchEndpoint),l.Sp=!1,l.vr=b,l.videoDuration=
  d(k.videoDuration);else if("PLAYLIST"==m)l.targetUrl=w.urlEndpoint?w.urlEndpoint.url:e(w.watchEndpoint),l.Sp=!1,l.vr=b,l.playlistLength=d(k.playlistLength);else if("CHANNEL"==m){if(m=g.Rb(w,"browseEndpoint","browseId"))l.channelId=m,l.targetUrl="/channel/"+m;l.Sp=!1;l.vr="new";l.isSubscribe=!!k.isSubscribe;if(l.isSubscribe){a:{if(m=k.hovercardButton)if(m=m.subscribeButtonRenderer){w=d(m.unsubscribedButtonText);var z=d(m.subscribedButtonText);if(m.subscribed){var E=d(m.subscriberCountWithUnsubscribeText);
  var J=d(m.subscriberCountText)}else E=d(m.subscriberCountText),J=d(m.subscriberCountWithSubscribeText);var Q=null;if(k.signinEndpoint&&(Q=g.Rb(k,"signinEndpoint","webNavigationEndpointData","url"),!Q)){k=void 0;break a}if(w&&(z||Q)){k={subscribed:m.subscribed,subscribeText:w,subscribeCount:E,unsubscribeText:z,unsubscribeCount:J,enabled:m.enabled,signinUrl:Q,classic:k.useClassicSubscribeButton};break a}}k=void 0}l.subscribeButton=k}else l.subscribersText=d(k.subscribersText)}else"WEBSITE"==m&&(l.targetUrl=
  g.Rb(w,"urlEndpoint","url"),l.Sp=!0,l.vr="new",l.iconUrl=k.icon.thumbnails[0].url);return l});
  f.elements=(0,g.Ud)(k,function(a){return!!a});
  return f},d2=function(a){g.DU.call(this,a);
  this.A=null;this.K=!1;this.C=null;this.o={};this.G={};this.F=this.B=null;this.L=[];a=g.Y(a);this.N=g.AM(a)||g.BM(a);this.qG=!0;this.H=0;this.J=new g.mp(null);this.D=new g.HF(this);g.N(this,this.D);this.D.R(this.player,"crn_creatorendscreen",this.oO);this.D.R(this.player,"crx_creatorendscreen",this.pO);this.D.R(this.player,"resize",this.uC);this.D.R(window,"focus",this.uW);this.load();var b=g.Nd("STYLE");(window.document.getElementsByTagName("HEAD")[0]||window.document.body).appendChild(b);g.jf(this,
  function(){g.Td(b)});
  b.sheet&&(b.sheet.insertRule(".ytp-ce-playlist-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASBAMAAACk4JNkAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAIVBMVEVMaXGzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7P///91E4wTAAAACXRSTlMArBbpVOtYrReN+x2FAAAAAWJLR0QKaND0VgAAACFJREFUCNdjYCAWzIQAFBaZ6hgVYLKcJnBWGEyWvYGASwCXtBf7m4i3CQAAAABJRU5ErkJggg==) no-repeat center;background-size:18px;width:18px;height:18px}",0),b.sheet.insertRule(".ytp-ce-size-853 .ytp-ce-playlist-icon, .ytp-ce-size-1280 .ytp-ce-playlist-icon, .ytp-ce-size-1920 .ytp-ce-playlist-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJ1BMVEVMaXGzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7P///9RfzIKAAAAC3RSTlMAvDeyLvxYtDK9Ogx4T1QAAAABYktHRAyBs1FjAAAAK0lEQVQY02NgoBjshgO8HJoYwKiAMGAD92YHJM7uMCTO9gaEHs4FlPuZAQC8Fj8x/xHjxwAAAABJRU5ErkJggg==) no-repeat center;background-size:24px;width:24px;height:24px}",
  0))},Txa=function(a){return a.player.getVideoData().isDni?"current":a.N?"new":"current"},e2=function(a){return"creator-endscreen-editor"===a},f2=function(a,b){g.rU(a.player,"creatorendscreen");
  a.B&&(a.B.dispose(),a.B=null,a.F.dispose(),a.F=null);for(var c in a.o)a.o[c].dispose();a.o={};a.G={};0<a.L.length&&(a.L.forEach(function(a){a.dispose()}),a.L.length=0);
  a.H=0;if((a.A=b)&&b.elements){Uxa(a);c=[];var d=new g.vQ(b.startMs,0x7ffffffffffff,{id:"ytp-ce-in-endscreen",namespace:"creatorendscreen"});c.push(d);g.Y(a.player).B||(a.B=new g.W({I:"div",M:"ytp-ce-shadow"}),g.tU(a.player,a.B.element,4),a.F=new g.aV(a.B,200));for(d=0;d<b.elements.length;++d){var e=b.elements[d],f=Vxa(a,e);a.o[e.id]=f;a.G[e.id]=e;g.tU(a.player,f.element,4);var k=new g.vQ(e.startMs,e.endMs,{id:"ytp-ce-element-"+e.id,namespace:"creatorendscreen"});c.push(k);Wxa(a,f,e)}g.nU(a.player,
  c);a.uC()}},Uxa=function(a){var b=Cxa(),c=g.RG();
  c&&b&&Rxa(c,b,[a.A.visualElement])},Vxa=function(a,b){var c=null;
  switch(b.type){case "VIDEO":c={I:"div",fa:["ytp-ce-element","ytp-ce-video"],U:{tabindex:"0","aria-label":b.so||"","aria-hidden":"true"},O:[{I:"div",M:"ytp-ce-element-shadow"},{I:"div",M:"ytp-ce-covering-image",U:g2(b)},{I:"div",M:"ytp-ce-covering-shadow-top"},{I:"a",M:"ytp-ce-covering-overlay",U:{href:b.targetUrl,tabindex:"-1"},O:[{I:"div",fa:["ytp-ce-video-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],U:{dir:g.np(a.J,b.title||"")},da:b.title},{I:"div",M:"ytp-ce-video-duration",da:b.videoDuration}]}]};
  c=new g.W(c);break;case "PLAYLIST":c={I:"div",fa:["ytp-ce-element","ytp-ce-playlist"],U:{tabindex:"0","aria-label":b.so||"","aria-hidden":"true"},O:[{I:"div",M:"ytp-ce-element-shadow"},{I:"div",M:"ytp-ce-covering-image",U:g2(b)},{I:"div",M:"ytp-ce-covering-shadow-top"},{I:"a",M:"ytp-ce-covering-overlay",U:{href:b.targetUrl,tabindex:"-1"},O:[{I:"div",fa:["ytp-ce-playlist-title","yt-ui-ellipsis","yt-ui-ellipsis-2"],U:{dir:g.np(a.J,b.title||"")},da:b.title},{I:"div",M:"ytp-ce-playlist-count",O:[{I:"div",
  M:"ytp-ce-playlist-icon"},{I:"div",M:"ytp-ce-playlist-count-text",da:b.playlistLength}]}]}]};c=new g.W(c);break;case "CHANNEL":c={I:"div",fa:["ytp-ce-element","ytp-ce-channel",b.isSubscribe?"ytp-ce-channel-this":"ytp-ce-channel-that"],U:{tabindex:"0","aria-label":b.so||"","aria-hidden":"true"},O:[{I:"div",M:"ytp-ce-element-shadow"},{I:"div",M:"ytp-ce-expanding-overlay",O:[{I:"div",M:"ytp-ce-expanding-overlay-hider"},{I:"div",M:"ytp-ce-expanding-overlay-background"},{I:"div",M:"ytp-ce-expanding-overlay-content",
  O:[{I:"div",M:"ytp-ce-expanding-overlay-body",O:[{I:"div",M:"ytp-ce-expanding-overlay-body-padding",O:[{I:"a",fa:["ytp-ce-channel-title","ytp-ce-link"],U:{href:b.targetUrl,target:"_blank",tabindex:"-1",dir:g.np(a.J,b.title||"")},da:b.title},b.subscribeButton?{I:"div",M:"ytp-ce-subscribe-container",O:[{I:"div",M:"ytp-ce-channel-subscribe"}]}:"",b.subscribersText?{I:"div",M:"ytp-ce-channel-subscribers-text",da:b.subscribersText}:"",b.metadata?{I:"div",fa:["ytp-ce-channel-metadata","yt-ui-ellipsis",
  "yt-ui-ellipsis-3"],da:b.metadata}:""]}]}]}]},{I:"div",M:"ytp-ce-expanding-image",U:g2(b)}]};c=new g.W(c);var d=g.Ad(window.document,"div","ytp-ce-channel-subscribe",c.element)[0];if(b.subscribeButton){g.T(d,"ytp-ce-subscribe-button");if(g.Y(a.player).B){var e=null;var f=b.Id.itct}else e="endscreen",f=null;e=new g.JZ(b.subscribeButton.subscribeText,b.subscribeButton.subscribeCount,b.subscribeButton.unsubscribeText,b.subscribeButton.unsubscribeCount,b.subscribeButton.enabled,b.subscribeButton.classic,
  b.channelId,!!b.subscribeButton.subscribed,e,f,b.subscribeButton.signinUrl,a.player);d.appendChild(e.element);a.L.push(e)}break;case "WEBSITE":c={I:"div",fa:["ytp-ce-element","ytp-ce-website"],U:{tabindex:"0","aria-label":b.so||"","aria-hidden":"true"},O:[{I:"div",M:"ytp-ce-element-shadow"},{I:"div",M:"ytp-ce-expanding-overlay",O:[{I:"div",M:"ytp-ce-expanding-overlay-hider"},{I:"div",M:"ytp-ce-expanding-overlay-background"},{I:"div",M:"ytp-ce-expanding-overlay-content",O:[{I:"div",M:"ytp-ce-expanding-overlay-body",
  O:[{I:"div",M:"ytp-ce-expanding-overlay-body-padding",O:[{I:"div",M:"ytp-ce-website-title",U:{dir:g.np(a.J,b.title||"")},da:b.title},{I:"div",M:"ytp-ce-website-metadata",da:b.metadata},{I:"a",fa:["ytp-ce-website-goto","ytp-ce-link"],U:{href:b.targetUrl,target:"_blank",tabindex:"-1"},da:b.callToAction}]}]}]}]},{I:"div",M:"ytp-ce-expanding-image",U:g2(b)},{I:"div",M:"ytp-ce-expanding-icon",U:Xxa(b.iconUrl)}]},c=new g.W(c)}b.o&&g.T(c.element,"ytp-ce-placeholder");return c},g2=function(a){if(a.gA)var b=
  a.gA.thumbnails;
  return Xxa(b?b[b.length-1].url:null)},Xxa=function(a){return a?{style:"background-image: url("+a+")"}:{}},Wxa=function(a,b,c){function d(){k(1)}
  function e(){k(-1)}
  b.W("mouseenter",(0,g.B)(a.jv,a,b,c));b.W("mouseleave",(0,g.B)(a.xw,a,b,c));g.Y(a.player).B||b.W("click",(0,g.B)(function(a){g.T(a.element,"ytp-ce-element-hover")},a,b));
  b.W("click",(0,g.B)(a.mE,a,c));b.W("keypress",(0,g.B)(a.mE,a,c));b.W("focus",(0,g.B)(function(a,b){this.jv(a,b)},a,b,c));
  b.W("blur",(0,g.B)(function(a,b){this.xw(a,b)},a,b,c));
  b.W("touchstart",(0,g.B)(a.jv,a,b,c));var f=g.K("ytp-ce-expanding-overlay-hider",b.element);f&&b.R(f,"touchstart",function(a){a=a||window.event;a.cancelBubble=!0;a.stopPropagation&&a.stopPropagation();g.Bq(b.element,"ytp-ce-element-hover");g.Bq(b.element,"ytp-ce-force-expand")});
  b.W("keydown",(0,g.B)(function(a,b){this.qG=9==b.keyCode&&!b.shiftKey},a,b));
  var k=(0,g.B)(function(a,b,c){this.H+=c;0<this.H?(g.T(a.element,"ytp-ce-force-expand"),h2(this,b.id,!0)):(g.Bq(a.element,"ytp-ce-force-expand"),g.Bq(a.element,"ytp-ce-element-hover"),h2(this,b.id,!1))},a,b,c);
  a=(0,g.B)(function(a,b){b&&(a.W("blur",function(){g.Th(b)&&this.qG&&b.focus()}),a.R(b,"focus",d),a.R(b,"blur",e))},a,b);
  a(g.K("ytp-sb-subscribe",b.element));a(g.K("ytp-sb-unsubscribe",b.element));b.W("focus",d);b.W("blur",e)},h2=function(a,b,c){a.B&&(c?a.F.show():a.F.hide());
  for(var d in a.o)d!=b&&g.U(a.o[d].element,"ytp-ce-element-shadow-show",c)},i2=function(a,b,c){function d(){f||(e++,e==b.length&&(k.stop(),c&&c()))}
  if(!b||e2(g.Y(a.player).playerStyle))c&&c();else{b=Yxa(a,b);var e=0,f=!1,k=new g.V(function(){f=!0;c&&c()},1E3,a);
  k.start();for(a=0;a<b.length;a++)g.IE(b[a],d)}},j2=function(a,b,c){i2(a,b.clickUrls,c);
  (a=g.RG())&&b.Sp&&$1(a,b.visualElement)},Yxa=function(a,b){var c=a.player.getVideoData().clientPlaybackNonce,d=a.player.getCurrentTime().toFixed(2);
  c={CPN:c,AD_CPN:c,MT:d};d=[];for(var e=0;e<b.length;e++)d.push(Zxa(b[e],c));return d},Zxa=function(a,b){return a.replace(/%5B[a-zA-Z_:]+%5D|\[[a-zA-Z_:]+\]/g,function(a){var c=(0,window.unescape)(a);
  c=c.substring(1,c.length-1);return b[c]?(0,window.escape)(b[c]):a})},k2=function(a){return g.xa(a)&&a.length?a[0]:a},l2=function(a){var b=/.+/;
  return g.v(a)&&null!=b&&null!=a&&a.match(b)?a:""},m2=function(a,b){if(null==a)return b;
  var c=(0,window.parseInt)(a,0);if((0,window.isNaN)(c))return b;c=c.toString(16);return"#"+"000000".substring(0,6-c.length)+c},n2=function(a){return g.v(a)?a:""},o2=function(a,b,c){for(var d in b)if(b[d]==a)return a;
  return c},p2=function(a,b){return"true"==a||"false"==a?"true"==a:b},q2=function(a,b){return g.v(a)?(0,window.parseFloat)(a):b},r2=function(a,b,c,d,e){a=(0,window.parseFloat)(a);
  if(null!=a&&!(0,window.isNaN)(a)){if(d)return g.ld(a,b,c);if(a>=b&&a<=c)return a}return e},$xa=function(a){if(null==a)return 0;
  if("never"==a)return-1;a=a.split(":");if(3<a.length)return 0;var b=0,c=1;(0,g.D)(a,function(a){a=(0,window.parseFloat)(a);0>a&&(c=-c);b=60*b+Math.abs(a)});
  return c*b},s2=function(a,b){if(null==a)return null;
  if(g.ya(a)){var c=[];(0,g.D)(a,function(a){(a=b(a))&&c.push(a)});
  return c}var d=b(a);return d?[d]:[]},aya=function(a){function b(a){return null!=a&&!(0,window.isNaN)(a)}
  return(a=a?new g.fh((0,window.parseFloat)(a.top),(0,window.parseFloat)(a.right),(0,window.parseFloat)(a.bottom),(0,window.parseFloat)(a.left)):null)&&b(a.top)&&b(a.right)&&b(a.bottom)&&b(a.left)?a:null},bya=function(a){function b(a){return(0,g.Ud)(a.split(/ +/),function(a){return""!=a})}
  return null==a?[]:b(a)},cya=function(a,b,c,d){this.value=a;
  this.target=b;this.showLinkIcon=c;this.o=d},t2=function(a){if(!a)return null;
  var b=g.Oc(n2(a.value));b=g.Lc(b);if(!b)return null;var c=o2(a.target,dya,"current");return null==c?null:new cya(b,c,p2(a.show_link_icon,!0),null!=a.pause_on_navigation?a.pause_on_navigation:!0)},u2=function(a){return a.value?a.value:null},eya=function(a,b,c){this.type=a;
  this.trigger=b;this.url=c},hya=function(a){if(!a)return null;
  var b=o2(a.type,fya),c=o2(a.trigger,gya),d=k2(a.url);d=t2(d?d:null);k2(a.subscribeData);return b?new eya(b,c,d):null},iya=function(a,b,c){var d=(c="xx"==c||"xy"==c)?640:360;
  return(d+((c?a.width:a.height)-d)*b)/d},v2=function(a,b,c){var d=(c="xy"==c||"yy"==c)?360:640;
  return(d+((c?a.height:a.width)-d)*b)/d},w2=function(a,b,c,d,e,f,k,l,m,n,p){this.x=a;
  this.y=b;this.Kl=c;this.B=d;this.t=e;this.D=f;this.F=k;this.G=l;this.C=m;this.A=n;this.o=p},kya=function(a,b){if(!a)return null;
  var c=q2(a.x,0),d=q2(a.y,0),e=q2(a.w,0),f=q2(a.h,0),k=$xa(a.t),l=q2(a.d,0),m=q2(a.px,0),n=q2(a.py,0),p=q2(a.scaleSlope,1),t=q2(a.scaleSlopeX,p);p=q2(a.scaleSlopeY,p);var w=o2(a.scaleDimension,jya,"xy");return b(c,d,e,f,k,l,m,n,t,p,w)},x2=function(a,b){var c=lya(b,mya(a,new g.ih(a.x,a.y,a.Kl,a.B),b.o)),d=b.o,e=c.clone();
  d&&!d.contains(c)&&(c.width<d.width?e.left=g.ld(c.left,d.left,d.left+d.width-c.width):(e.left=d.left,e.width=d.width),c.height<d.height?e.top=g.ld(c.top,d.top,d.top+d.height-c.height):(e.top=d.top,e.height=d.height));return e},mya=function(a,b,c){var d=a.F,e=a.G,f=a.o?a.o:"xy",k=iya(c,a.C,f);
  a=v2(c,a.A,f);f=640*b.width*k/100;var l=360*b.height*a/100;return new g.ih(0==d?640*b.left*k/100:0<d?d:c.width+d-f,0==e?360*b.top*a/100:0<e?e:c.height+e-l,f,l)},nya=function(a){return a?kya(a,function(a,c,d,e,f,k,l,m,n,p,t){return new w2(a,c,d,e,f,k,l,m,n,p,t)}):null},oya=function(a,b){this.o=a;
  this.A=b||null},lya=function(a,b){var c=a.A?x2(a.A,new oya(a.o)):a.o;
  var d=b.clone(),e=c.left;c=c.top;e instanceof g.pd?(d.left+=e.x,d.top+=e.y):(d.left+=e,g.ta(c)&&(d.top+=c));return d},pya=function(a,b,c,d,e,f,k,l,m,n,p,t,w){w2.call(this,a,b,c,d,e,l,m,n,p,t,w);
  this.H=f;this.J=k},qya=function(a){if(!a)return null;
  var b=q2(a.sx,0),c=q2(a.sy,0);return kya(a,function(a,e,f,k,l,m,n,p,t,w,z){return new pya(a,e,f,k,l,b,c,m,n,p,t,w,z)})},rya=function(a,b,c,d,e,f,k,l,m,n,p,t,w,z){this.A=a;
  this.bgColor=b;this.borderColor=c;this.borderWidth=d;this.o=e;this.F=f;this.B=k;this.textAlign=l;this.textSize=m;this.C=n;this.padding=p;this.effects=t;this.cornerRadius=w;this.D=z},tya=function(a){if(!a)return null;
  var b=m2(a.fgColor,"#1A1A1A"),c=m2(a.bgColor,"#FFF"),d=m2(a.borderColor,"#000"),e=r2(a.borderWidth,0,5,!1,0),f=r2(a.bgAlpha,0,1,!1,.8),k=m2(a.highlightFontColor,"#F2F2F2"),l=r2(a.highlightWidth,0,5,!1,3),m=n2(a.textAlign),n=r2(a.textSize,3.3,30.1,!0,3.6107),p=n2(a.fontWeight),t=aya(a.padding),w=bya(a.effects),z=r2(a.cornerRadius,0,10,!0,0);a=k2(a.gradient);if(a=a?a:null){var E=r2(a.x1,0,100,!0,0),J=r2(a.y1,0,100,!0,0),Q=r2(a.x2,0,100,!0,100),da=r2(a.y2,0,100,!0,100),Ta=m2(a.color1,"#FFF"),vb=m2(a.color2,
  "#000");a=new sya(E,J,Q,da,Ta,vb,r2(a.opacity1,0,100,!0,100),r2(a.opacity2,0,100,!0,0))}else a=null;return new rya(b,c,d,e,f,k,l,m,n,p,t,w,z,a)},sya=function(a,b,c,d,e,f,k,l){this.B=a;
  this.D=b;this.C=c;this.F=d;this.o=e;this.A=f;this.G=k;this.H=l},uya=function(a,b,c,d){this.type=a;
  this.A=b;this.o=c;this.B=d},wya=function(a){if(!a)return null;
  var b=o2(a.type,vya,"rect"),c=s2(a.rectRegion,nya),d=s2(a.anchoredRegion,qya);a=s2(a.shapelessRegion,nya);return new uya(b,c,d,a)},xya=function(a){return a.A&&a.A.length?a.A[0]:a.o&&a.o.length?a.o[0]:a.B&&a.B.length?a.B[0]:null},yya=function(a,b){this.A=a;
  this.o=b},zya=function(a,b){this.state=a;
  this.ref=b},Bya=function(a){if(!a)return null;
  var b=o2(a.state,Aya);a=l2(a.ref);return b?new zya(b,a):null},Cya=function(a,b,c,d){this.o=a||[];
  this.B=b||[];this.C=c;this.A=d;this.value=!1},Dya=function(a){if(!a)return null;
  var b=s2(a.condition,Bya),c=s2(a.notCondition,Bya),d=p2(a.show_delay,!1);a=p2(a.hide_delay,!1);return b||c?new Cya(b,c,d,a):null},Eya=function(a,b,c){(0,g.D)(a.o,g.Da(b,!1),c);
  (0,g.D)(a.B,g.Da(b,!0),c)},y2=function(a,b,c,d,e,f,k,l,m,n,p,t,w,z){this.id=a;
  this.author=b;this.type=c;this.style=d;this.C=e;this.segment=f;this.B=k||[];this.G=l||[];this.A=m;this.F=n;this.D=p;this.data=t;this.o=w;this.itct=z},Hya=function(a){if(!a)return null;
  var b=l2(a.id),c=l2(a.author),d=o2(a.type,Fya),e=o2(a.style,z2),f=n2(k2(a.TEXT)),k=n2(a.data);k=0!=k.length?JSON.parse(k):{};var l=k2(a.segment);var m=l?l:null;m?(l2(m.timeRelative),l=l2(m.spaceRelative),l=(m=s2(m.movingRegion,wya))?new yya(l,m):null):l=null;m=s2(a.action,hya);var n=s2(a.trigger,Dya),p=k2(a.appearance);(p=tya(p?p:null))||(p=tya({}));var t=o2(a.coordinate_system,Gya,"video_relative"),w=p2(a.closeable,!0),z=n2(a.log_data);a=n2(a.itct);return b&&d?new y2(b,c,d,e,f,l,m,n,p,t,w,k,z,a):
  null},B2=function(a){return A2(a,function(a){return"click"==a.trigger})},A2=function(a,b){return(0,g.Nj)(a.B,b,void 0)},Iya=function(a,b,c){(0,g.D)(a.B,b,c)},Jya=function(a,b){return g.Ia(a.B,b,void 0)},Kya=function(a,b,c){(0,g.D)(a.G,b,c)},Lya=function(a,b){(0,g.I)(a.G,b,void 0)},C2=function(a){return(a=Mya(a))?xya(a):null},Mya=function(a){a.segment?(a=a.segment,a=a.o.length?a.o[0]:null):a=null;
  return a},Nya=function(a,b){var c=C2(a);
  return c&&b?v2(b,c.A,c.o?c.o:"xy"):1},Pya=function(a,b,c){this.o={};
  this.B=!1;this.D="ivTrigger:"+a;this.A=c;Eya(b,function(a,b){var c=Oya(b.state,b.ref);this.A.subscribe(c,(0,g.B)(this.C,this,c,a));this.o[c]=a},this)},Oya=function(a,b){var c="ivTriggerCondition:"+a;
  return b?c+":"+b:c},D2=function(){this.o=!1;
  this.D=this.A=null},E2=function(a,b,c){a.A?(a.A.setSize(b,c),a.A.clear()):(b=new W1(b,c,void 0,void 0,void 0),a.A=b,a.A.Cp(),a.D=g.L("DIV"),b=a.A.oa(),a.D.appendChild(b));
  return a.A},F2=function(a,b,c){var d=window.document.createElementNS("http://www.w3.org/2000/svg",a);
  b&&g.Hb(b,function(a,b){d.setAttribute(b,a)});
  for(var e=2;e<arguments.length;e++)d.appendChild(arguments[e]);return d},G2=function(a,b){var c=":"+(g.ev.getInstance().o++).toString(36);
  b.setAttribute("result",c);a.appendChild(b);return c},Qya=function(a,b){var c=G2(a,F2("feGaussianBlur",{"in":b,
  stdDeviation:"1.8"}));c=G2(a,F2("feDiffuseLighting",{"in":c,surfaceScale:"4",diffuseConstant:"1"},F2("feDistantLight",{azimuth:"270",elevation:"15","lighting-color":"white"})));c=G2(a,F2("feComposite",{"in":c,in2:b,operator:"in"}));return G2(a,F2("feComposite",{in2:c,"in":b,operator:"arithmetic",k2:1,k3:.5,k4:0}))},Rya=function(a,b){var c=G2(a,F2("feOffset",{"in":b,
  dx:"-7",dy:"-7"}));c=G2(a,F2("feGaussianBlur",{"in":c,stdDeviation:"3"}));c=G2(a,F2("feColorMatrix",{"in":c,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.5 0"}));var d=G2(a,F2("feColorMatrix",{"in":b,type:"matrix",values:"0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 100 0"}));d=G2(a,F2("feGaussianBlur",{"in":d,stdDeviation:"1"}));c=G2(a,F2("feComposite",{operator:"out","in":c,in2:d}));return G2(a,F2("feComposite",{operator:"over","in":b,in2:c}))},Sya=function(a,b){return b},Tya=function(a){var b=
  F2("filter",{filterUnits:"userSpaceOnUse"}),c="SourceGraphic";
  (0,g.D)(a,function(a){a:{switch(a){case "bevel":a=Qya;break a;case "dropshadow":a=Rya;break a}a=Sya}c=a(b,c)});
  return b},Uya=function(a){a=(0,g.Ud)(a,function(a){return a in H2});
  g.db(a,function(a,c){return H2[a]-H2[c]});
  return a},Vya=function(a){return g.Ia(a,function(a){return"dropshadow"==a})?new g.fh(0,7,7,0):new g.fh(0,0,0,0)},Wya=function(a,b,c){var d=new Q1;
  d.moveTo(a.left+b+c,a.top+c);d.Lc(a.left+a.width-b-c,a.top+c);R1(d,b,b,-90);d.Lc(a.left+a.width-c,a.top+a.height-b-c);R1(d,b,b,0);d.Lc(a.left+b+c,a.top+a.height-c);R1(d,b,b,90);d.Lc(a.left+c,a.top+b+c);R1(d,b,b,180);d.close();return d},Xya=function(a,b,c,d){var e=a.D;
  e?a=new N1(e.B*b/100,e.D*c/100,e.C*b/100,e.F*c/100,e.o,e.A,e.G,e.H):(b=a.o,a=new M1(a.bgColor,d?Math.max(b,.9):b));return a},I2=function(a,b){var c=g.jh(a);
  c.expand(Vya(b));return kxa(c)},Yya=function(a,b,c){if(c.length&&(b=g.Ad(window.document,"g",void 0,b),b.length)){var d=Uya(c);
  if(d){c="effects:"+(d?d.join("|"):"");var e=c in a.A?a.A[c]:null;e?a=e:(d=Tya(d),a=0<d.childNodes.length?Fxa(a,c,d):null)}else a=null;a&&b[0].setAttribute("filter","url(#"+a+")")}},J2=function(){D2.call(this);
  this.C=0},Zya=function(a,b){var c=a.top-b.y,d=b.x-a.left-a.width,e=b.y-a.top-a.height,f=a.left-b.x,k=Math.max(c,d,e,f);
  if(0>k)return"i";switch(k){case c:return"t";case d:return"r";case e:return"b";case f:return"l"}return"i"},K2=function(a){D2.apply(this,arguments)},L2=function(a){D2.apply(this,arguments)},M2=function(a){J2.apply(this,arguments)},N2=function(a,b,c,d,e){g.M.call(this);
  this.o=a;this.aa=b;this.F=c;this.ha=d;this.ga=e;this.J=!1;this.Z=new g.EF(this);g.N(this,this.Z);this.P=this.D=this.G=this.N=this.A=null;this.ba=!1;this.ca=this.K=this.L=null;this.yq=new g.ml(this.sQ,100,this);g.N(this,this.yq);this.H=new g.V(this.iB,500,this);g.N(this,this.H);this.Y=this.B=this.C=null},$ya=function(a,b){var c=(0,g.B)(function(a,c,f){c=f?O2(this,c,(0,g.B)(f,this)):O2(this,c);
  this.Z.W(b,a,c)},a);
  c("mouseover","E",a.aD);c("mouseout","D",a.ti);c("click","B");c("touchend","B")},aza=function(a){if(a.o.D){if(A2(a.o,function(a){return"close"==a.type}))var b=a.A;
  else a.C=g.L("DIV","annotation-close-button"),g.O(a.C,!1),g.bF(a.C,"annotation_id",a.o.id),a.A.appendChild(a.C),b=a.C;var c=function(a){a.stopPropagation()};
  a.Z.W(b,"click",O2(a,"C",c));a.Z.W(b,"touchend",O2(a,"C",c))}},O2=function(a,b,c){return(0,g.B)(function(a){if(this.ga)c&&c(a);
  else if(a.event.target instanceof window.Element){var d=a.event.target;g.O(d,!1);try{var f=window.document.elementFromPoint(a.event.clientX,a.event.clientY);if(g.ie(f,"annotation")){var k=window.document.createEvent("MouseEvent");k.initMouseEvent(a.event.type,a.event.bubbles,a.event.cancelable,a.event.view,a.event.detail,a.event.screenX,a.event.screenY,a.event.clientX,a.event.clientY,a.event.ctrlKey,a.event.altKey,a.event.shiftKey,a.event.metaKey,a.event.button,a.event.relatedTarget);f.dispatchEvent(k)}}finally{g.O(d,
  !0)}}d=g.Rh(a.target);a=new g.pd(a.clientX,a.clientY);"D"==b&&d.contains(a)||this.ha.V(b,this.o)},a)},Q2=function(a){if(a.A||a.B){var b=C2(a.o);
  if(b){var c=P2(a);if(a.A){b=x2(b,c);var d=g.o_(g.$T(a.F));g.Ph(a.A,b.width,b.height);g.Dh(a.A,b.left,b.top);a.N=new g.ih(d.left+b.left,d.top+b.top,b.width,b.height);var e=(e=C2(a.o))&&d?iya(d,e.C,e.o?e.o:"xy"):1;var f=Nya(a.o,d);d=a.o.A;d.padding?d=d.padding:(d="speech"==a.o.style?1.6:.8,d=new g.fh(d,d,d,d));d=new g.fh(360*d.top*f/100,640*d.right*e/100,360*d.bottom*f/100,640*d.left*e/100);a.D&&(d.right+=1.5*c.o.height/100);a.A.style.padding=d.top+"px "+d.right+"px "+d.bottom+"px "+d.left+"px";"label"==
  a.o.style&&a.G&&(a.G.style.padding=a.A.style.padding);d=c.o;var k=!1,l=0,m=0;var n=g.o_(g.$T(a.F));var p=g.kU(a.F);g.kh(n,p)?n=null:(p.top+=20,p.height-=40,"player_relative"!=a.o.F&&(p.left-=n.left,p.top-=n.top),n=p);n&&(l=n.top-(b.top+b.height),m=b.top-(n.top+n.height),k=0<l||0<m);if(k&&n){d=l;e=m;if(a.D){f=bza(a,23,b,d,e);if(a.C){var t=43-f.width;0<t&&(b.left+f.left-t>n.left&&(f.left-=t),f.width+=t)}t=f;g.Ph(a.D,f.width,f.height);g.Dh(a.D,f.left,f.top)}a.C&&(t?b=new g.pd(t.left+t.width-23-18,a.ba?
  t.top+2:t.top+t.height-18-2):(t=bza(a,18,b,d,e),b=new g.pd(t.left,t.top),g.Ph(a.C,t.width,t.height)),g.Dh(a.C,b));a.P=new g.ih(a.N.left+t.left,a.N.top+t.top,t.width,t.height);a.L=a.Z.W(g.$T(a.F),"mousemove",a.tQ,a)}else a.D&&(t=e/f*d.height*4.2/100,t=new g.sd(t,t),"highlight"==a.o.type||"label"==a.o.style?(e=1.5*d.height/100,t=new g.ih(b.width-t.width-e,b.height-t.height-e,t.width,t.height)):t=new g.ih(b.width-t.width-3*d.height/100,(b.height-t.height)/2,t.width,t.height),g.Ph(a.D,t.width,t.height),
  g.Dh(a.D,t.left,t.top)),a.C&&(t=9<=d.left+d.width-(b.left+b.width),e=9<=b.top-d.top,g.Dh(a.C,t&&e?new g.pd(b.width-9,-9):t?new g.pd(b.width-9,45<b.height?9:b.height-9):e?new g.pd(45<b.width?b.width-9-18:-9,-9):b.width/d.width>b.height/d.height?new g.pd(45<b.width?b.width-9-18:-9,b.height-9):new g.pd(-9,45<b.height?9:b.height-9)))}a.B&&a.B.B(a.o,c);if(a.A){c=a.A;b=a.o.A;c.style.color="highlightText"==a.o.style?b.F:b.A;t=g.o_(g.$T(a.F));c.style.fontSize=360*b.textSize*Nya(a.o,t)/100+"px";t=a.o.style;
  c.style.textAlign=b.textAlign?b.textAlign:"title"==t||"highlightText"==t?"center":"left";b.C&&(c.style.fontWeight=b.C);a=a.A;c=a.style.overflow;t=(b=g.K("annotation-link-icon",a))?g.Th(b):!1;e=(d=g.K("annotation-close-button",a))?g.Th(d):!1;t&&g.O(b,!1);e&&g.O(d,!1);m=f="";if(n=g.K("inner-text",a))f=n.style.overflow,m=n.style.position,n.style.overflow="visible",n.style.position="static";a.style.overflow="scroll";if(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth){l=k=oxa(a);p=5;for(var w=
  Math.floor(k/2);w;)a.scrollHeight<=a.offsetHeight&&a.scrollWidth<=a.offsetWidth?(p=l,l=Math.min(l+w,k)):l=Math.max(l-w,p),w=Math.floor(w/2),a.style.fontSize=l+"px";l!=p&&(a.scrollHeight>a.offsetHeight||a.scrollWidth>a.offsetWidth)&&(a.style.fontSize=p+"px")}a.style.overflow=c;n&&(n.style.overflow=f,n.style.position=m);e&&g.O(d,!0);t&&g.O(b,!0)}}}},bza=function(a,b,c,d,e){var f=0<e;
  b=new g.ih(0,c.height-b,Math.max(c.width,b),b);0<d&&(b.top=c.height,20<d&&(b.height+=d-20),g.T(a.A,"annotation-extend-down"));f&&(b.top=-b.height,20<e&&(c=e-20,b.top-=c,b.height+=c),g.T(a.A,"annotation-extend-up"),a.ba=!0);return b},R2=function(a){return"label"!=a.o.style||a.B.o},P2=function(a){var b=g.o_(g.$T(a.F));
  if("player_relative"==a.o.F){var c=g.$T(a.F).Va();b=new g.ih(-b.left,-b.top,c.width,c.height)}else b=new g.ih(0,0,b.width,b.height);return new oya(b,a.Y?C2(a.Y):null)},cza=function(a,b){return b?new g.ih(a.x+b.left,a.y+b.top,b.width,b.height):null},S2=function(a,b,c){g.M.call(this);
  this.A=a;this.annotation=b;this.view=c;this.o=null;this.B=this.isVisible=!1;dza(b,a)},dza=function(a,b){Lya(a,function(c){return new Pya(a.id,c,b)})},eza=function(a){a.A.unsubscribe("resize",a.ZC,a);
  a.A.unsubscribe("onVideoAreaChange",a.TE,a)},T2=function(a){a.o&&(a.o.stop(),a.o=null)},fza=function(a,b,c){K1.call(this,a,b,c);
  this.channelId=b.channel_id;this.customMessage=b.custom_message;this.profileImageUrl=b.image_url;this.title=b.title;this.metaInfo=b.meta_info;this.url=t2({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},U2=function(a,b,c){K1.call(this,a,b,c);
  this.imageUrl=b.image_url;this.displayDomain=b.display_domain;this.showLinkIcon=b.show_link_icon;this.C=b.button_icon_url;this.title=b.title;this.customMessage=b.custom_message;this.url=t2({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url});this.o=null;if(a=b.signin_url)this.o=t2({target:"current",value:a});this.L=b.signin_title||null;this.K=b.signin_message||null},gza=function(a,b,c){U2.call(this,a,b,c);
  this.J=b.ypc_flow_type;this.F=b.innertube_request_params},hza=function(a,b,c){K1.call(this,a,b,c);
  this.C=b.image_url;this.playlistVideoCount=b.playlist_video_count;this.customMessage=b.custom_message;this.title=b.title;this.metaInfo=b.meta_info;this.url=t2({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},iza=function(a,b,c){K1.call(this,a,b,c);
  this.F=this.id.replace(/[^a-z0-9-]/gi,"-");this.title=b.title;this.choices=b.choices;this.o=b.hasOwnProperty("old_vote")?b.old_vote:null;this.C=null;if(a=b.signin_url)this.C=t2({target:"current",value:a});this.J=b.hasOwnProperty("xsrf_token")?b.xsrf_token:null},kza=function(a,b,c){U2.call(this,a,b,c);
  this.offers=[];a=b.offers||[];for(b=0;b<a.length;b++)this.offers.push(new jza(a[b]))},jza=function(a){this.merchant=g.G(a.merchant);
  this.price=g.G(a.price)},lza=function(a,b,c){U2.call(this,a,b,c);
  this.N=b.ypc_item_type;this.J=b.ypc_item_id;this.F=b.ypc_flow_type},mza=function(a,b,c){K1.call(this,a,b,c);
  this.C=b.image_url;this.videoDuration=b.video_duration||null;this.customMessage=b.custom_message;this.title=b.title;this.metaInfo=b.meta_info;this.isLiveNow=!!b.is_live_now;this.url=t2({pause_on_navigation:b.pause_on_navigation,target:b.target||"new",value:b.url})},V2=function(a,b,c){K1.call(this,a,b,c);
  this.J=b.image_url;this.C=b.badge_symbol||"";this.priceText=b.price_text||"";this.title=b.title;this.metaInfo=b.meta_info;this.F=!!b.is_paygated;this.K=!!b.user_has_entitlement;this.url=t2({target:b.target||"new",value:b.url})},nza=function(a){this.T=a;
  this.o={}},oza=function(a){var b={};
  b=(b["iv-event"]=1,b);g.hU(a.T,"iv",b,void 0)},Z2=function(a,b,c,d){if(b){var e=W2(a,b);
  a.o[b]=e["p-time"];e["iv-event"]=e.link||e["l-class"]||e["link-id"]?2:7;b=X2(a,"cta_annotation_shown",e,c);Y2(a,e,pza(b,d))}},$2=function(a,b,c,d,e,f){if(b){var k=W2(a,b);
  k["iv-event"]=3;k["i-time"]=a.o[b]||"";d&&g.fc(k,d);b=X2(a,"cta_annotation_clicked",k,e);Y2(a,k,b,c,f)}},a3=function(a,b){if(b){var c=W2(a,b);
  c["iv-event"]=4;c["i-time"]=a.o[b]||"";var d=X2(a,"cta_annotation_closed",c);Y2(a,c,d)}},pza=function(a,b){return b?(0,g.I)(a,g.Da(function(a,b){return g.fn(b,a)},b)):a},X2=function(a,b,c,d){d=d?g.Va(d):[];
  if(30==c["a-type"]){a:{c=c["a-id"];a=a.T.getVideoData();if(a.lz){if((b=a.lz[b])&&g.nH(b)){a=g.lb("[ANNOTATION_ID]");0<=b.indexOf("[ANNOTATION_ID]")?b=b.replace("[ANNOTATION_ID]",c):0<=b.indexOf(a)&&(b=b.replace(a,c));break a}}else if(a.Oq){b=g.jE(a.Oq,{label:b,value:"a_id="+c});break a}b=""}b&&d.push(b)}return d},Y2=function(a,b,c,d,e){var f=1,k=-1;
  if(d){var l=!1;var m=function(){f--;f||l||((0,window.clearTimeout)(k),l=!0,d())};
  k=(0,window.setTimeout)(function(){l=!0;d()},1E3)}(0,g.D)(c||[],function(a){f++;
  g.IE(a,m)});
  e&&(f++,0!=e&&a.T.yj(e,m));g.hU(a.T,"iv",b,m)},W2=function(a,b){var c={};
  if(b){var d=new g.Pm(b);(0,g.D)(d.Fb(),function(a){c[a]=(0,window.escape)(d.get(a,""))})}c["p-time"]=a.T.getCurrentTime().toFixed(2);
  c.ps=g.Y(a.T).playerStyle;return c},b3=function(a,b,c,d,e){e=W2(a,e);
  e["iv-event"]=c;b&&(e.ei=b);e["a-id"]||(e["a-id"]="card:drawer");e["a-type"]=51;Y2(a,e,d)},c3=function(a,b,c,d){c&&(c=W2(a,c),c["iv-event"]=b,Y2(a,c,d))},qza=function(a,b,c,d,e,f,k){this.o=a;
  this.C=b;this.D=c;this.videoData=d;this.logger=e;this.A=f;this.B=k},d3=function(a,b,c){this.o=a;
  this.C=b;this.D=c;this.A=new g.mp(null)},sza=function(a,b){var c=[];
  (0,g.D)(b.choices,function(a){c.push({I:"li",M:b.F+"-"+a.index.toString(),O:[{I:"label",O:[{I:"input",M:"iv-card-poll-choice-input",U:{type:"checkbox",role:"radio",name:b.F+a.index.toString(),value:a.index.toString(),"data-poll-choice-index":a.index.toString()}},{I:"span",M:"iv-card-poll-choice-text",O:[{I:"span",M:"iv-card-poll-choice-percent"},e3(this,"span",void 0,a.desc)]}]},{I:"div",M:"iv-card-poll-result",O:[{I:"div",M:"iv-card-poll-result-bar"}]}]})},a);
  var d={I:"ul",U:{role:"radiogroup"},O:c},e={};b.C&&(e["aria-label"]=g.jX("$POLL_TITLE - Sign in to vote.",{POLL_TITLE:b.title}));var f=["iv-card","iv-card-poll"];d=[{I:"div",M:"iv-card-content",O:[e3(a,"h2",e,b.title),{I:"form",O:[{I:"fieldset",O:[d]}]}]}];b.C&&(f.push("iv-card-unavailable"),d.push({I:"div",fa:["iv-card-sign-in"],O:[{I:"h2",da:"Want to vote?"},{I:"a",fa:["iv-card-sign-in-button","iv-button"],U:{href:u2(b.C)},O:[{I:"span",fa:["iv-button-content"],da:"Sign in"}]}]}));f=new g.W({I:"div",
  fa:f,O:d});d=f.element;rza(b,d);dxa(a.o.o,d,g.Da(a.G,b),a);(0,g.D)(g.Bd("iv-card-poll-choice-input",d),function(a){this.o.o.W(a,"focus",g.Da(this.B,!0));this.o.o.W(a,"blur",g.Da(this.B,!1))},a);
  b.C&&(d=g.K("iv-card-sign-in-button",d),a.C(d,b.C,b.id,b.Id,b.B,b.A.click,5));return f},h3=function(a,b,c,d){var e=b.displayDomain?{I:"div",
  M:"iv-card-image-text",da:b.displayDomain}:"",f=tza(a,b),k=["iv-card"];b.o&&k.push("iv-card-unavailable");e=[{I:"a",M:"iv-click-target",U:{href:u2(b.url)},O:[f3(b.imageUrl,e),{I:"div",M:"iv-card-content",O:[e3(a,"h2",void 0,b.title),f]}]}];b.o&&e.push({I:"div",fa:["iv-card-sign-in"],O:[e3(a,"h2",void 0,b.L||""),{I:"p",da:b.K},{I:"a",fa:["iv-card-sign-in-button","iv-button"],U:{href:u2(b.o)},O:[e3(a,"span","iv-button-content","Sign in")]}]});k=new g.W({I:"div",fa:k,O:e});g3(a,k,b,c,d);return k},uza=
  function(a,b,c){var d=["yt-badge",
  "standalone-ypc-badge-renderer-icon",b.K?"standalone-ypc-badge-renderer-icon-purchased":"standalone-ypc-badge-renderer-icon-available"],e={};d=b.F&&b.C?{I:"span",fa:d,U:e,da:b.C}:"";c={I:"div",fa:["iv-card",c],O:[{I:"a",M:"iv-click-target",U:{href:u2(b.url)},O:[f3(b.J,d?{I:"div",M:"iv-card-image-text",O:[d,b.priceText]}:""),{I:"div",M:"iv-card-content",O:[{I:"h2",M:"iv-card-primary-link",da:b.title},i3(a,b)]}]}]};c=new g.W(c);g3(a,c,b);return c},j3=function(a,b){return b.customMessage?e3(a,"div",
  "iv-card-message",b.customMessage):""},f3=function(a,b){var c="background-image: url("+a+");",d=[];
  b&&d.push(b);return{I:"div",M:"iv-card-image",U:{style:c},O:d}},i3=function(a,b){if(!b.metaInfo||0==b.metaInfo.length)return"";
  var c=[];(0,g.D)(b.metaInfo,function(a){c.push(e3(this,"li","",a))},a);
  return{I:"ul",M:"iv-card-meta-info",O:c}},e3=function(a,b,c,d){c?g.v(c)?c={"class":c}:g.xa(c)&&(c={"class":c.join(" ")}):c={};
  c.dir=g.np(a.A,d);return{I:b,U:c,da:d}},tza=function(a,b){if(!b.customMessage)return"";
  var c=["iv-card-action","iv-card-primary-link"],d={};b.C&&(c.push("iv-card-action-icon"),d.style="background-image: url("+b.C+");");d.dir=g.np(a.A,b.customMessage);var e=[{I:"span",da:b.customMessage}];b.showLinkIcon&&(e.push("\u00a0"),e.push({I:"span",M:"iv-card-link-icon"}));return{I:"div",fa:c,U:d,O:e}},rza=function(a,b){var c=0;
  (0,g.D)(a.choices,function(a){c+=a.count});
  c=c||1;for(var d=0;d<a.choices.length;d++){var e=a.choices[d],f=g.K(a.F+"-"+e.index.toString(),b);e=e.count/c;null==a.o&&(e=0);g.U(f.getElementsByTagName("label")[0],"iv-card-poll-choice-checked",a.o==d);f.getElementsByTagName("input")[0].checked=a.o==d;var k=Math.floor(100*e).toFixed(0),l=g.K("iv-card-poll-choice-percent",f);g.be(l,g.jX("$PERCENT%",{PERCENT:k}));f=g.K("iv-card-poll-result-bar",f);g.wh(f,"transform","scaleX("+e.toFixed(2)+")")}g.U(b,"iv-card-poll-voted",null!=a.o);g.U(b,"iv-card-poll-expanded",
  null!=a.o&&1<a.choices.length)},vza=function(a,b,c,d){d?(c&&a.o.videoData.Ka||a.o.A.od(),a.o.A.isFullscreen()&&a.o.A.te(),$2(a.o.logger,b.B,d,void 0,b.A.click,5)):b.url&&a.D(b.url,b.id,b.Id,b.B,b.A.click||[],5)},g3=function(a,b,c,d,e){c.o&&wza(a,g.Bd("iv-card-sign-in-button",b.element),c,c.o,e);
  c.url&&wza(a,g.Bd("iv-click-target",b.element),c,c.url,d)},wza=function(a,b,c,d,e){(0,g.D)(b,function(a){if(e){var b=(0,g.B)(function(a){a.stopPropagation();
  a.preventDefault();e();return!1},this);
  this.o.o.W(a,"click",b)}else d&&this.C(a,d,c.id,c.Id,c.B,c.A.click,5)},a)},xza=function(a){var b=0;
  -1!=a.indexOf("h")&&(a=a.split("h"),b=3600*a[0],a=a[1]);-1!=a.indexOf("m")&&(a=a.split("m"),b=60*a[0]+b,a=a[1]);-1!=a.indexOf("s")?(a=a.split("s"),b=1*a[0]+b):b=1*a+b;return b},k3=function(a){var b;
  (b=a)&&!(b=1<a.length?"/"==a.charAt(0)&&"/"!=a.charAt(1):"/"==a)&&(b=yza(a),b="com"==b[0]&&"youtube"==b[1]||"be"==b[0]&&"youtu"==b[1]);return b?-1==a.indexOf("/redirect?"):!1},yza=function(a){a=a.replace(/^(https?:)?\/\//,"");
  a=a.split("/",1);return!a||1>a.length||!a[0]?[]:a[0].toLowerCase().split(".").reverse()},zza=function(a){a=u2(a);
  if(!a)return null;a=a.replace(/https?:\/\//g,"");var b;(b=!k3(a))||(b=g.Ng(g.Mg(a)[5]||null)||"",b=b.split("/"),b="/"+(1<b.length?b[1]:""),b="/watch"!=b);if(b)return null;b=g.hE(a);if(!b||!b.v)return null;if(b=b.t)return xza(b);a=a.split("#",2);return!a||2>a.length?null:(a=g.fE(a[1]))&&a.t?xza(a.t):-1},Aza=function(a){a=u2(a);
  a=a.replace(/https?:\/\//g,"");return k3(a)?(a=g.hE(a))&&a.v?a.v:null:null},Bza=function(a,b,c){c=c.replace(/\/(u|b)\/[0-9]+/g,"");
  var d=/^[0-9]+$/;a&&d.test(a)&&(c="/b/"+a+c);b&&d.test(b)&&(c="/u/"+b+c);return c},l3=function(a,b){return b?b:k3(a)?"current":"new"},m3=function(a,b){g.M.call(this);
  this.Ca=a;this.context=b;this.Kx=!1;this.ga=0},n3=function(a,b,c,d,e,f){b=new g.vQ(b,c,{id:d});
  g.N(a,b);b.namespace="annotations_module";e&&exa(b).subscribe("onEnter",e,a);f&&exa(b).subscribe("onExit",f,a);g.nU(a.context.A,[b])},Cza=function(a){return(0,g.H)()-a.ga},Dza=function(a,b,c,d,e,f){var k=u2(b);
  if(k){var l=l3(k,b.target),m=(0,g.B)(function(){b.o&&this.context.A.od();g.RU(k||"","current"==l?"_top":void 0,c)},a);
  "new"==l&&(m(),m=null);var n={};n.interval=Cza(a);$2(a.context.logger,d,m,n,e,f);k3(k)||(a=g.RG(),d=c.itct,a&&d&&$1(a,G1(d)))}},q3=function(a,b,c){m3.call(this,b,c);
  var d=this;this.T=a;this.Y=null;this.aa=this.wa=this.C=this.ua=!1;this.ba=null;this.N=new g.V(g.A,c.D.useTabletControls?4E3:3E3);g.N(this,this.N);this.ma=new g.V(g.A);g.N(this,this.ma);this.D=new d3(c,(0,g.B)(this.Ij,this),(0,g.B)(this.Zp,this));this.H=new g.W({I:"div",M:"iv-drawer",U:{id:"iv-drawer"},O:[{I:"div",M:"iv-drawer-header",U:{"aria-role":"heading"},O:[{I:"span",M:"iv-drawer-header-text"},{I:"button",fa:["iv-drawer-close-button","ytp-button"],U:{"aria-label":"Hide cards",tabindex:"0"}}]},
  {I:"div",M:"iv-drawer-content"}]});g.N(this,this.H);this.F=this.H.element;this.ha=new g.aV(this.H,330);g.N(this,this.ha);this.za=g.K("iv-drawer-header-text",this.F);this.B=g.K("iv-drawer-content",this.F);this.A=[];this.pa=this.P=this.G=this.ca=this.o=null;this.K=[];n3(this,0,1E3*c.videoData.lengthSeconds,"",function(){d.wa&&o3(d,"YOUTUBE_DRAWER_AUTO_OPEN")},function(){(d.wa=d.C)&&p3(d)});
  this.L=this.J=this.ia=null},Jza=function(a,b){var c=b&&b.data&&b.data.card_type;
  if(c&&Eza[c]){c=new Eza[c](b.id,b.data,b.o);if(!a.ua){g.Aq(a.oa(),["html5-stop-propagation","iv-drawer-manager"]);g.tU(a.T,a.F,5);Fza(a);a.P=g.K("ytp-cards-button",a.T.getRootNode());var d=g.K("iv-drawer-close-button",a.F);a.pa=d;a.ua=!0}Gza(a,c.id);var e=Hza(a,c);if(e){d={hc:c,Ts:e.element,YB:!1};var f=Iza(a,d);g.Ya(a.A,f,0,d);e.xa(a.B,f);a.Fo();c.autoOpen?n3(a,c.startMs,0x8000000000000,c.id,g.Da(a.lX,d)):(e=1E3*a.context.A.getCurrentTime(),5E3>e&&e>c.startMs&&a.RF(d),n3(a,c.startMs,c.startMs+1,
  c.id,g.Da(a.RF,d)),r3(a))}}},Kza=function(a,b){b.data.autoOpenMs&&n3(a,b.data.autoOpenMs,0x8000000000000,"",function(){o3(a,"YOUTUBE_DRAWER_AUTO_OPEN")});
  b.data.autoCloseMs&&n3(a,b.data.autoCloseMs,0x8000000000000,"",function(){p3(a)});
  var c=b.data.headerText;g.be(a.za,c);a.P&&a.P.setAttribute("title",c);b.data.eventId&&(a.Y=b.data.eventId);a.ia=G1(b.data.trackingParams);a.L=G1(b.data.closeTrackingParams);a.J=G1(b.data.iconTrackingParams)},Gza=function(a,b){var c=Lza(a,b);
  c&&(c==a.o&&(a.o=null),a.T.LC(c.hc.id),g.Td(c.Ts),g.Ra(a.A,c),a.Fo(),r3(a))},o3=function(a,b,c,d){if(!a.C){a.ha.show();
  a.ca=new g.V(function(){g.T(a.context.A.getRootNode(),"ytp-iv-drawer-open")},0);
  a.ca.start();a.ba=g.tF(a.B,"mousewheel",(0,g.B)(a.MO,a));a.C=!0;a.ga=(0,g.H)();b3(a.context.logger,a.Y,7,void 0,d&&d.hc?d.hc.B:void 0);var e=g.RG();e&&a.ia&&a.L&&a2(e,[a.ia,a.L]);var f={TRIGGER_TYPE:b};(0,g.D)(a.A,function(b){b.YB||(b.YB=!0,Z2(a.context.logger,b.hc.B,b.hc.A.kN,f));e&&a2(e,[b.hc.H])});
  o1(a.T);c&&(a.G=new g.V(function(){a.ka=a.P;a.pa.focus()},330),a.G.start())}},p3=function(a){a.C&&(a.ha.hide(),g.uF(a.ba),a.ba=null,g.Bq(a.context.A.getRootNode(),"ytp-iv-drawer-open"),a.C=!1,o1(a.T),a.G&&a.G.stop(),a.G=new g.V(function(){a.ka&&(a.ka.focus(),a.ka=null)},330),a.G.start())},Fza=function(a){var b=g.K("iv-drawer-close-button",a.F);
  a.context.o.W(b,"click",a.FK,a);a.context.o.W(a.B,"touchend",function(){a.N.start()});
  a.context.o.W(a.B,"scroll",a.SK,a);a.context.B.subscribe("onHideControls",function(){a.aa=!0});
  a.context.B.subscribe("onShowControls",function(){a.aa=!1});
  a.context.B.subscribe("onVideoAreaChange",function(){a.aa=g.zq(a.T.getRootNode(),"ytp-autohide")});
  a.K.push(g.VF("iv-button-shown",a.FN,a));a.K.push(g.VF("iv-button-hidden",a.EN,a));a.K.push(g.VF("iv-teaser-shown",a.IN,a));a.K.push(g.VF("iv-teaser-hidden",a.HN,a));a.K.push(g.VF("iv-teaser-clicked",a.GN,a))},Hza=function(a,b){switch(b.type){case "simple":return h3(a.D,b);
  case "collaborator":var c=a.D,d={I:"div",fa:["iv-card","iv-card-channel"],O:[{I:"a",fa:["iv-click-target"],U:{href:u2(b.url),"data-ytid":b.channelId},O:[f3(b.profileImageUrl),{I:"div",M:"iv-card-content",O:[j3(c,b),{I:"h2",M:"iv-card-primary-link",da:b.title},i3(c,b)]}]}]};d=new g.W(d);g3(c,d,b);return d;case "donation":return c=a.D,d=(0,g.B)(c.F,c,b),h3(c,b,d,d);case "episode":return uza(a.D,b,"iv-card-episode");case "movie":return uza(a.D,b,"iv-card-movie");case "playlist":return c=a.D,d={I:"div",
  fa:["iv-card","iv-card-playlist"],O:[{I:"a",M:"iv-click-target",U:{href:u2(b.url)},O:[f3(b.C,{I:"div",M:"iv-card-image-overlay",O:[{I:"span",M:"iv-card-playlist-video-count",da:b.playlistVideoCount.toString()}]}),{I:"div",M:"iv-card-content",O:[j3(c,b),e3(c,"h2","iv-card-primary-link",b.title),i3(c,b)]}]}]},d=new g.W(d),g3(c,d,b),d;case "poll":return sza(a.D,b);case "productListing":c=a.D;var e=!g.Na(b.offers);d=["iv-card"];var f="",k=tza(c,b);e&&(d.push("iv-card-product-listing"),f="iv-card-primary-link",
  e=b.offers[0],k=[],e.price&&k.push({I:"div",M:"iv-card-offer-price",da:e.price}),e.merchant&&k.push({I:"div",M:"iv-card-offer-merchant",da:e.merchant}),k={I:"div",O:k});d={I:"div",fa:d,U:{tabindex:"0"},O:[{I:"a",fa:["iv-card-image","iv-click-target"],U:{style:"background-image: url("+b.imageUrl+");",href:u2(b.url),"aria-hidden":"true",tabindex:"-1"}},{I:"div",M:"iv-card-content",O:[b.sponsored?{I:"div",M:"iv-card-sponsored",O:["Sponsored",{I:"div",M:"iv-ad-info-container",O:[{I:"div",M:"iv-ad-info",
  da:"{{adInfo}}"},{I:"div",M:"iv-ad-info-icon-container",O:[{I:"div",M:"iv-ad-info-icon"},{I:"div",M:"iv-ad-info-callout"}]}]}]}:"",{I:"a",M:"iv-click-target",U:{href:u2(b.url)},O:[e3(c,"h2",f,b.title),k]}]}]};d=new g.W(d);f=g.Nd("span");g.be(f,"You are seeing this product because we think it is relevant to the video. Google may be compensated by the merchant.");d.Nb(f,"adInfo");g3(c,d,b);return d;case "tip":return c=a.D,d=(0,g.B)(c.H,c,b),h3(c,b,d,d);case "video":return c=a.D,d=b.isLiveNow?{I:"span",
  fa:["yt-badge","yt-badge-live"],da:"LIVE NOW"}:"",d={I:"div",fa:["iv-card","iv-card-video"],O:[{I:"a",M:"iv-click-target",U:{href:u2(b.url)},O:[f3(b.C,b.videoDuration?{I:"span",M:"iv-card-video-duration",da:b.videoDuration}:""),{I:"div",M:"iv-card-content",O:[j3(c,b),e3(c,"h2","iv-card-primary-link",b.title),i3(c,b),d]}]}]},d=new g.W(d),g3(c,d,b),d}return null},Iza=function(a,b){if(0==a.A.length)return 0;
  var c=g.Ja(a.A,function(a){return b.hc.startMs>a.hc.startMs||b.hc.startMs==a.hc.startMs&&b.hc.timestamp>=a.hc.timestamp?!0:!1});
  return-1==c?0:c+1},Mza=function(a){return a.o?"productListing"==a.o.hc.type:(0,g.qm)(a.A,function(a){return"productListing"==a.hc.type})},r3=function(a){g.U(a.T.getRootNode(),"ytp-cards-shopping-active",Mza(a))},Nza=function(a,b){if(a.H.A){var c=new y1([0,
  a.B.scrollTop],[0,b.Ts.offsetTop],600,vxa);a.context.C.W(c,"animate",function(b){a.B.scrollTop=b.y});
  a.context.C.W(c,"finish",function(b){a.B.scrollTop=b.y});
  c.play()}else g.yH(a.H,!0),a.B.scrollTop=b.Ts.offsetTop,g.yH(a.H,!1)},s3=function(a){return a.o&&a.o.hc?a.o.hc:a.A[0]&&a.A[0].hc?a.A[0].hc:null},Lza=function(a,b){return g.Ia(a.A,function(a){return a.hc.id==b})},t3=function(a,b,c){m3.call(this,a,b);
  this.annotation=c;this.isActive=!1},Oza=function(a){var b=a.annotation.data;
  "start_ms"in b&&"end_ms"in b&&n3(a,a.annotation.data.start_ms,a.annotation.data.end_ms,a.annotation.id,function(){a.show()},function(){a.hide()})},u3=function(a,b,c){t3.call(this,a,b,c);
  this.J=b;this.A=null;this.G=!1;this.B=null;this.C=!1;this.H=0;this.o=this.F=this.D=null},v3=function(a,b,c){t3.call(this,a,b,c);
  this.J=this.D=this.K=!1;this.H=5E3;this.C=null;this.G=g.L("DIV","iv-promo-contents");this.A=this.B=this.o=null;this.F=new g.V(function(){this.o.setAttribute("aria-hidden",!0);g.O(this.B,!1);g.O(this.A,!0)},700,this);
  g.N(this,this.F)},Pza=function(a){var b=a.annotation.data;
  if("cta"==a.annotation.style)var c=6;else if("video"==a.annotation.style||"playlist"==a.annotation.style)c=7;a.H=b.collapse_delay_ms||a.H;var d=["iv-promo","iv-promo-inactive"];a.oa().setAttribute("aria-hidden",!0);a.oa().setAttribute("aria-label","Promotion");a.oa().tabIndex=0;var e=a.annotation.Xa(),f=b.image_url;if(f){var k=g.L("DIV",["iv-promo-img","iv-click-target"]);f=g.L("IMG",{src:f,"aria-hidden":"true"});k.appendChild(f);b.video_duration&&!b.is_live?(f=g.L("SPAN","iv-promo-video-duration",
  b.video_duration),k.appendChild(f)):b.playlist_length&&(f=g.L("SPAN","iv-promo-playlist-length",b.playlist_length.toString()),k.appendChild(f));e&&a.Ij(k,e,a.annotation.id,b.session_data,a.annotation.o,void 0,c)}e?(f=g.L("A","iv-promo-txt"),g.hd(f,u2(e)),a.o=f):a.o=g.L("DIV","iv-promo-txt");switch(a.annotation.style){case "cta":case "website":var l=g.L("P",null,g.L("STRONG",null,b.text_line_1));var m=g.L("P",null,g.L("SPAN","iv-promo-link",b.text_line_2));if(f=b.text_line_3){d.push("iv-promo-website-card-cta-redesign");
  var n=g.L("BUTTON",["iv-promo-round-expand-icon","ytp-button"]);f=g.L("BUTTON",["iv-button","iv-promo-button"],g.L("SPAN","iv-button-content",f));var p=g.L("DIV","iv-promo-button-container");p.appendChild(f);e&&a.Ij(a.oa(),e,a.annotation.id,b.session_data,a.annotation.o,void 0,c)}g.T(a.o,"iv-click-target");e&&a.Ij(a.o,e,a.annotation.id,b.session_data,a.annotation.o,void 0,c);break;case "playlist":case "video":l=g.L("P",null,g.L("SPAN",null,b.text_line_1));m=g.L("P",null,g.L("STRONG",null,b.text_line_2));
  b.is_live&&(l=m,m=g.L("SPAN",["yt-badge","iv-promo-badge-live"],"LIVE NOW"));g.T(a.o,"iv-click-target");e&&a.Ij(a.o,e,a.annotation.id,b.session_data,a.annotation.o,void 0,c);d.push("iv-promo-video");break;case "vote":l=g.L("P",null,g.L("STRONG",null,b.text_line_1)),m=g.L("P",null,g.L("SPAN",null,b.text_line_2)),p=g.L("DIV","iv-promo-button-container"),c=g.L("BUTTON",["iv-button","iv-promo-button"],g.L("SPAN","iv-button-content",b.button_text)),a.context.o.W(c,"click",function(a){a.stopPropagation();
  $2(this.context.logger,this.annotation.o,null,{contest_vote:"1"},(b.tracking||{}).vote);a=this.annotation.data;this.o=g.K("iv-promo-txt",this.G);var c=g.K("iv-promo-button-container",this.G),d=g.L("DIV",["iv-promo-txt","iv-click-target"]),e=g.L("P",null,g.L("STRONG",null,a.text_line_3)),f=g.L("P",null,a.text_line_4);g.Qd(d,e,f);g.Td(c);c=this.o;(e=c.parentNode)&&e.replaceChild(d,c);g.Bq(this.oa(),"iv-promo-with-button");(c=this.annotation.Xa())&&this.Ij(d,c,this.annotation.id,a.session_data,this.annotation.o)},
  a),p.appendChild(c),d.push("iv-promo-with-button")}l&&a.o.appendChild(l);
  m&&a.o.appendChild(m);a.G.appendChild(a.o);p&&a.G.appendChild(p);l=g.L("DIV","iv-promo-actions");a.A=g.L("BUTTON",["iv-promo-expand","ytp-button"]);a.A.title="Expand";a.context.o.W(a.A,"click",g.Da(a.au,5E3),a);l.appendChild(a.A);g.O(a.A,!1);a.context.o.W(a.oa(),"mouseover",a.PL,a);a.context.o.W(a.oa(),"mouseout",a.OL,a);a.context.o.W(a.oa(),"touchend",g.Da(a.au,5E3),a);a.B=g.L("BUTTON",["iv-promo-close","ytp-button"]);a.B.title="Close";a.context.o.W(a.B,"click","cta"==a.annotation.style&&b.text_line_3?
  a.DL:a.uQ,a);l.appendChild(a.B);g.Aq(a.oa(),d);k&&(g.Pd(a.oa(),k),n&&k.appendChild(n));g.Pd(a.oa(),a.G);g.Pd(a.oa(),l)},Qza=function(a){a.D||a.J||a.C||(g.T(a.oa(),"iv-promo-collapsed"),a.D=!0,a.F.start())},Rza=function(a){a.F.stop();
  a.D&&(g.Cq(a.oa(),["iv-promo-collapsed","iv-promo-collapsed-no-delay"]),a.D=!1,a.o&&a.o.removeAttribute("aria-hidden"),g.O(a.A,!1),g.O(a.B,!0))},Sza=function(a,b){a.C||(a.C=g.Bg(function(){w3(this);
  Qza(this)},b,a))},w3=function(a){a.C&&(g.Cg(a.C),a.C=null)},x3=function(a){g.DU.call(this,a);
  this.K=!1;this.J=0;this.A={};this.L={};this.gb=new nza(a);this.G=new g.HF(this);g.N(this,this.G);this.F=this.B=null;this.G.R(this.player,"onVideoAreaChange",(0,g.B)(this.V,this,"onVideoAreaChange"));this.G.R(this.player,"onHideControls",(0,g.B)(this.V,this,"onHideControls"));this.G.R(this.player,"onShowControls",(0,g.B)(this.V,this,"onShowControls"));this.G.R(this.player,"resize",(0,g.B)(this.V,this,"resize"));this.G.R(this.player,"presentingplayerstatechange",(0,g.B)(this.V,this,"presentingplayerstatechange"));
  this.subscribe("onHideControls",this.vT,this);this.subscribe("onShowControls",this.EV,this);this.subscribe("presentingplayerstatechange",this.KU,this);this.subscribe("resize",this.zw,this);this.subscribe("E",this.kO,this);this.subscribe("D",this.ti,this);this.subscribe("B",this.ZR,this);this.subscribe("C",this.ES,this);g.Y(this.player).F.subscribe("vast_info_card_add",this.SE,this);this.Y=new g.HF(this);g.N(this,this.Y);this.Y.R(this.player,"crn_annotations_module",this.iO);this.Y.R(this.player,"crx_annotations_module",
  this.jO);this.P=g.L("DIV",["video-legacy-annotations","html5-stop-propagation"]);this.aa=g.L("DIV","video-custom-annotations");this.D=new g.W({I:"div",fa:["ytp-player-content","ytp-iv-player-content"]});g.N(this,this.D);g.tU(this.player,this.D.element,4);this.D.hide();this.C=new g.W({I:"div",fa:["ytp-iv-video-content"]});g.N(this,this.C);g.Pd(this.C.element,g.L("DIV","video-annotations",this.P,this.aa));this.H=this.o=null;this.N=[];Tza(this)&&this.load();var b=g.Nd("STYLE");(window.document.getElementsByTagName("HEAD")[0]||
  window.document.body).appendChild(b);g.jf(this,function(){g.Td(b)});
  if(a=b.sheet)a.insertRule(".iv-promo .iv-promo-contents .iv-promo-txt .iv-promo-link:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUBAMAAAB/pwA+AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAHlBMVEVMaXH////////////////////////////////////Z6AnKAAAACXRSTlMA+/A2IuI1mJIldm0CAAAAAWJLR0QB/wIt3gAAAEVJREFUCNdjYGCYCQUMBJlACOIzIDElIcyZkwxgojOVWWDMSQauMKYySySUOSnBdSaUOZ0lEsac2YqwYiZ+JhwgM7E5HACgzVCI/YJ59AAAAABJRU5ErkJggg==) no-repeat center;background-size:10px;width:10px;height:10px}",
  0),a.insertRule(".iv-promo .iv-promo-actions .iv-promo-close:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAJBAMAAAASvxsjAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXH///////////////////////////////////////////9tKdXLAAAAC3RSTlMAVaQDpaimqQbl5rjXUFUAAAABYktHRAH/Ai3eAAAAPUlEQVQI12MQMmAwEmDwDmaOTmAw39663YCBuXp2MQMDQ+fOBgYG5ujVwQwMptvbgeLaxczVCQwiBgxmAgBkXg1FN5iwiAAAAABJRU5ErkJggg==) no-repeat center;background-size:9px;width:9px;height:9px}",
  0),a.insertRule(".iv-promo .iv-promo-actions .iv-promo-expand:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAJBAMAAADnQZCTAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXHMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMzMz////eMKB4AAAAC3RSTlMAOpE7k5Uvj5kpfRaQSaQAAAABYktHRAsf18TAAAAAHklEQVQI12MQYGBQZmBwTWCo0GSo6AKRQDZQRIABADXXA/UkIpvtAAAAAElFTkSuQmCC) no-repeat center;background-size:4px 9px;width:4px;height:9px}",0),a.insertRule(".iv-promo-website-card-cta-redesign .iv-promo-round-expand-icon:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAQAAAD9CzEMAAAAAmJLR0QA/4ePzL8AAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfgCgUUEztsNfqrAAAAXklEQVRYw+3Uuw2AQAwEUUNXfBpDIvBRMhQwJJAScNrA0r4CdiQHjjAzK4NGKucPAFmCnZcmwcTphBNO9CTGH4VB+/Zm6YlYis9fhedXz38FNvFriCCl808iw8ysrBu65gCeuV/CfgAAAABJRU5ErkJggg==) no-repeat center;background-size:18px 18px;width:18px;height:18px}",
  0),a.insertRule(".iv-card-link-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAASBAMAAACk4JNkAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAGFBMVEVMaXG7u7u7u7u7u7u7u7u7u7u7u7v///+WKTAlAAAABnRSTlMAFdQWbGj9GiOuAAAAAWJLR0QHFmGI6wAAAEhJREFUCNdjYACBNCBgQGMxMKrBWEJJaRAJRjVlKEsoSQDIAqtSZICwgEIQFkgIZBRECMxiBqsCsVjAqsCygQwwFgMeFgQgswBg2xjLrfC4mgAAAABJRU5ErkJggg==) no-repeat center;background-size:9px;width:9px;height:9px}",0),a.insertRule(".iv-card-playlist-video-count:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAJFBMVEVMaXH///////////////////////////////////////////9tKdXLAAAAC3RSTlMAvDeyLvxYtDK9Ogx4T1QAAAABYktHRAH/Ai3eAAAAK0lEQVQY02NgoBjshgO8HJoYwKiAMGAD92YHJM7uMCTO9gaEHs4FlPuZAQC8Fj8x/xHjxwAAAABJRU5ErkJggg==) no-repeat center;background-size:24px;width:24px;height:24px}",
  0),a.insertRule(".iv-drawer-close-button:after {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMAgMAAAArG7R0AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACVBMVEVMaXH////////OZTV/AAAAAnRSTlMAoKBFbtAAAAABYktHRAH/Ai3eAAAAKUlEQVQI12MIYGBlSGGQBMIUBjbHCQyM0xwYGDIZwBjEBomB5EBqgGoBolQGzYuy51cAAAAASUVORK5CYII=) no-repeat center;background-size:12px;width:12px;height:12px}",0),a.insertRule(".iv-ad-info-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAsAAAALCAMAAACecocUAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAVFBMVEVMaXGUlJSYmJiZmZmYmJiXl5eZmZmZmZmWlpaVlZWOjo6ZmZmSkpKXl5eYmJiYmJiZmZmZmZmZmZmZmZmYmJiJiYmXl5eZmZmYmJiWlpaZmZn///+81lbeAAAAGnRSTlMAE5DM80DliTMMEjccWIM5p1UjaTQNgB5cLlr5mgUAAAABYktHRBsCYNSkAAAAVElEQVQI102NRw7AIBADhw7ppIf/PzQLJ/ZgWSNrFlDaWKMVcs6HmGLwTqjEME6CFDrAXBYIGhNh3TJEg02wHydctvFc7sbrvnXZV8/zfs3T+7u/P7CrAso35YfPAAAAAElFTkSuQmCC) no-repeat center;background-size:11px;width:11px;height:11px}",
  0),a.insertRule(".annotation-close-button {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAALVBMVEVMaXEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/Pz9aWloBAQGZmZlbW1v///+X9wUzAAAACHRSTlMANprf+g6lyRmB9hUAAAABYktHRA5vvTBPAAAAWUlEQVQI12NgYBAycVZkAIKwDiBIZWBgrQAx2gMY2DrAIIFBomPWju6VHY0MGh1rbu891dHEYNGx9+yd2x3NDB4d3XfO7uhoQTDgUnDFcO1wA+FWwC2FOQMAdKg6tUSAFEAAAAAASUVORK5CYII=) no-repeat center}",0),a.insertRule(".annotation-link-icon {background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACIAAAAiCAMAAAANmfvwAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAUVBMVEVMaXH////////////////////////////////////////////////////////////////////////////////////////////////////////JzkR1AAAAGnRSTlMAfXf+c3xsdGdv/GJoXPtXXflSVk5L7DBH9VeFfsQAAAABYktHRAH/Ai3eAAAAgElEQVQ4y93SSQ6AIAwFULSOOOJs739Qf9SF0VA2uNCu+psHaQJK7cVCqY+Rg92PXA++Q84KnCR03UIRJrFEKMEgZYFQhpyzQHSBWJJAdIVUENtJ3SC0mu3EdOh7zXZiBrRdzQLJ0Y1GfOlpVstD3HaZktX9X/gvRCxvxL6FR7IBS1RTM5xIpLoAAAAASUVORK5CYII=) no-repeat center}",
  0)},Uza=function(a){switch(a){case "annotation-editor":case "live-dashboard":return!0}return!1},Tza=function(a){var b=g.Y(a.player);
  a=a.player.getVideoData();return 1==(b.Bh||a.Bh)&&!a.Ll||null!==b.F.get(a.videoId)},Vza=function(a,b,c){a.K=!0;
  a.F=g.rE(b,c)},Wza=function(a,b){for(var c={},d=0;d<b.attributes.length;d++){var e=b.attributes[d];
  c[e.name]=e.nodeValue}for(d=0;d<b.childNodes.length;d++)if(e=b.childNodes[d],e.tagName){if(c[e.tagName])var f=c[e.tagName];else if("data"==e.tagName){0<e.childNodes.length&&(f=e.childNodes[0].nodeValue,c[e.tagName]="string"==typeof f?f.trim():f);continue}else f=[],c[e.tagName]=f;e&&"TEXT"==e.tagName?1==e.childNodes.length&&3==e.childNodes[0].nodeType?f.push(e.childNodes[0].nodeValue):f.push(""):e&&f.push(Wza(a,e))}return c},Xza=function(a,b,c){return!(a.loaded&&a.J==b&&a.player.getVideoData().videoId==
  c)},Zza=function(a,b){var c=Yza(a,b);
  if(!c&&"marker"!=b.type)return null;Kya(b,function(a){a=(0,g.B)(this.ZV,this,b.id,a);this.subscribe("ivTrigger:"+b.id,a)},a);
  var d=new S2(a.ha,b,c);g.N(d,c);return d},$za=function(a,b){var c=g.L("DIV",["annotation",
  "annotation-type-custom"]);g.O(c,!1);var d=null;switch(b.type){case "branding":if(g.Y(a.player).qd)break;a.D.element.appendChild(c);d=new u3(c,y3(a),b);break;case "promotion":g.tU(a.player,c,4),d=new v3(c,y3(a),b)}d&&d.mr();return d},cAa=function(a){var b=a.player.getVideoData();
  if(b.Xf){var c=g.Y(a.player),d=c.F.get(b.videoId);if(d){var e={format:"XML",fd:{},method:"POST",withCredentials:!0};"gaming"==c.playerStyle&&(e.fd.gaming="1");e.Fd=(0,g.B)(function(a,b,c){Xza(this,a,b)||(a=g.$D(c)&&c.responseXML?c.responseXML:null)&&z3(this,a)},a,a.J,b.videoId);
  g.qG()&&(e.Fd=aAa(a,e.Fd));e.Sb={ic_only:"1"};bAa(e,d);a.K=!0;g.rE(b.Xf,e)}}},bAa=function(a,b){a.method="POST";
  a.Sb=a.Sb||{};b.Ss&&(a.Sb.ic_coll=b.Ss);b.Si&&(a.Sb.ic_xml=b.Si);b.Dl&&(a.Sb.ic_track=b.Dl)},dAa=function(a){var b=new g.W({I:"div"});
  g.O(b.element,!1);var c=new q3(a.player,b.element,y3(a));g.N(c,b);b.xa(a.D.element);c.mr();return c},y3=function(a){if(!a.H){var b=new g.EF(a);
  g.N(a,b);var c=new g.Ym(a);g.N(a,c);a.H=new qza(b,c,g.Y(a.player),a.player.getVideoData(),a.gb,a.player,a.ha)}return a.H},z3=function(a,b){var c=!1;
  eAa(b);for(var d=b.getElementsByTagName("annotation"),e=0;e<d.length;e++){var f=Wza(a,d[e]),k=null;try{k=Hya(f)}catch(l){}if(k){a:{switch(k.type){case "branding":case "promotion":f=!0;break a}f=!1}if(f){if(f=$za(a,k))g.N(a,f),a.L[k.id]=f}else if("card"==k.type||"drawer"==k.type)a.o||(a.o=dAa(a),g.N(a,a.o)),"card"==k.type?Jza(a.o,k):Kza(a.o,k),c=!0;else if(f=Zza(a,k))g.N(a,f),a.A[k.id]=f}}c&&(o1(a.player),a.zw());g.Hb(a.A,function(a){if(a.view){var b=a.annotation;(a=a.view)&&b.segment&&b.segment.A&&
  (b=this.A[b.segment.A])&&(a.Y=b.annotation)}},a)},eAa=function(a){if((a=a.getElementsByTagName("annotations"))&&!(1>a.length)&&(a=a[0].getAttribute("itct"))){var b=g.RG();
  if(b){var c=Cxa();c&&Rxa(b,c,[G1(a)])}}},gAa=function(a,b,c,d){d?fAa(a,b,c):A3(a,b,c)},A3=function(a,b,c){if(b=a.A[b])T2(b),c&&c.A?(a=(0,g.B)(a.gB,a,b),b.o=new g.V(a,2E3),b.o.start()):a.gB(b)},fAa=function(a,b,c){if(b=a.A[b])T2(b),c&&c.C?(a=(0,g.B)(a.hG,a,b),b.o=new g.V(a,2E3),b.o.start()):a.hG(b)},hAa=function(a,b){var c=a.player.getVideoData();
  if(!c.yo)return!1;var d=u2(b);if(!d)return!1;d=d.replace(/https?:\/\//g,"");if(!k3(d))return!1;d=g.hE(d);return d.list||d.p?!1:(d=Aza(b))?c.videoId==d||c.isDni?!0:"new"!=b.target&&g.Y(a.player).o?!0:!1:!1},Yza=function(a,b){if(iAa(b)){var c=b.D||A2(b,function(a){return"click"==a||"rollOut"==a||"rollOut"==a});
  return new N2(b,(0,g.B)(a.P.appendChild,a.P),a.player,a.ha,c)}return null},iAa=function(a){if("highlight"==a.type||"widget"==a.type)return!0;
  if("text"==a.type)for(var b in z2)if(a.style==z2[b])return!0;return!1},B3=function(a,b,c,d){a.V(Oya(b,d),c,d)},aAa=function(a,b){return(0,g.B)(function(){if(!this.la()){var a=Array.prototype.slice.call(arguments,0);
  a.unshift(b);b=g.Da.apply(window,a);this.N.push(g.oG(b))}},a)},C3=function(a,b,c){switch(a){case "mouseover":case "mouseout":var d=3;
  break;case "mouseenter":case "mouseleave":d=9}return g.ge(c,function(a){return g.zq(a,b)},!0,d)},E3=function(a){var b="mouseover"==a.type&&"mouseenter"in D3||"mouseout"==a.type&&"mouseleave"in D3,c=a.type in D3||b;
  if("HTML"!=a.target.tagName&&c){if(b){b="mouseover"==a.type?"mouseenter":"mouseleave";c=D3[b];for(var d in c.A){var e=C3(b,d,a.target);e&&!g.ge(a.relatedTarget,function(a){return a==e},!0)&&c.V(d,e,b,a)}}if(b=D3[a.type])for(d in b.A)(e=C3(a.type,d,a.target))&&b.V(d,e,a.type,a)}},F3=function(a){this.D=a;
  this.G={};this.J=[];this.H=[]},Z=function(a,b){return"yt-uix"+(a.D?"-"+a.D:"")+(b?"-"+b:"")},G3=function(a,b,c){a.J.push(g.VF(b,c,a))},H3=function(a,b,c){a.H.push(g.UN(b,c,a))},I3=function(){F3.call(this,"button");
  this.o=null;this.B=[];this.A={}},jAa=function(a,b,c,d,e){var f=H1(c),k=9==d.keyCode;
  k||32==d.keyCode||13==d.keyCode?(d=J3(a,c))?(b=g.Xd(d),"a"==b.tagName.toLowerCase()?g.PU(b.href):Axa(b)):k&&K3(a,b):f?27==d.keyCode?(J3(a,c),K3(a,b)):e(b,c,d):(a=g.zq(b,Z(a,"reverse"))?38:40,d.keyCode==a&&(Axa(b),d.preventDefault()))},J3=function(a,b){var c=Z(a,"menu-item-highlight"),d=g.K(c,b);
  d&&g.Bq(d,c);return d},kAa=function(a,b,c){g.T(c,Z(a,"menu-item-highlight"));
  var d=c.getAttribute("id");d||(d=Z(a,"item-id-"+g.Ca(c)),c.setAttribute("id",d));b.setAttribute("aria-activedescendant",d)},lAa=function(a,b,c,d){var e=b.length;
  a=(0,g.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},L3=function(a,b){var c=b.iframeMask;
  c||(c=g.Nd("IFRAME"),c.src='javascript:""',c.className=Z(a,"menu-mask"),J1(c),b.iframeMask=c);return c},M3=function(a,b,c,d){var e=g.ie(b,Z(a,"group")),f=!!a.Da(b,"button-menu-ignore-group");
  e=e&&!f?e:b;f=9;var k=8,l=g.Rh(b);if(g.zq(b,Z(a,"reverse"))){f=8;k=9;l=l.top+"px";try{c.style.maxHeight=l}catch(p){}}g.zq(b,"flip")&&(g.zq(b,Z(a,"reverse"))?(f=12,k=13):(f=13,k=12));var m;a.Da(b,"button-has-sibling-menu")?m=g.Gh(e):a.Da(b,"button-menu-root-container")&&(m=mAa(a,b));g.Hd&&!g.rc("8")&&(m=null);if(m){var n=g.Rh(m);n=new g.fh(-n.top,n.left,n.top,-n.left)}m=new g.pd(0,1);g.zq(b,Z(a,"center-menu"))&&(m.x-=Math.round((g.Qh(c).width-g.Qh(b).width)/2));d&&(m.y+=g.Id(window.document).y);if(a=
  L3(a,b))b=g.Qh(c),a.style.width=b.width+"px",a.style.height=b.height+"px",B1(e,f,a,k,m,n,197),d&&g.wh(a,"position","fixed");B1(e,f,c,k,m,n,197)},mAa=function(a,b){if(a.Da(b,"button-menu-root-container")){var c=a.Da(b,"button-menu-root-container");
  return g.ie(b,c)}return window.document.body},K3=function(a,b){if(b){var c=N3(a,b);
  if(c){a.o=null;b.setAttribute("aria-pressed","false");b.setAttribute("aria-expanded","false");b.removeAttribute("aria-activedescendant");J1(c);a.bk(b,"button-menu-action",!1);var d=L3(a,b),e=D1(c).toString();delete a.A[e];g.aE(function(){d&&d.parentNode&&(J1(d),d.parentNode.removeChild(d));c.originalParentNode&&(c.parentNode.removeChild(c),c.originalParentNode.appendChild(c),c.originalParentNode=null,c.activeButtonNode=null)},1)}e=g.ie(b,Z(a,"group"));
  var f=[Z(a,"active")];e&&f.push(Z(a,"group-active"));g.Cq(b,f);g.YF("yt-uix-button-menu-hide",b);g.uF(a.B);a.B.length=0}},nAa=function(a,b,c){var d=Z(a,"menu-item-selected");
  a=g.Bd(d,b);(0,g.D)(a,function(a){g.Bq(a,d)});
  g.T(c.parentNode,d)},N3=function(a,b){if(!b.widgetMenu){var c=a.Da(b,"button-menu-id");
  c=c&&g.zd(c);var d=Z(a,"menu");c?g.Aq(c,[d,Z(a,"menu-external")]):c=g.K(d,b);b.widgetMenu=c}return b.widgetMenu},O3=function(a){a.o&&K3(a,a.o)},P3=function(a){F3.call(this,a);
  this.B=null},oAa=function(a,b,c){var d=c||b,e=Z(a,"card");
  c=a.Kc(d);var f=g.zd(Z(a,"card")+D1(d));if(f)return a=g.K(Z(a,"card-body"),f),g.Zd(a,c)||(g.Td(c),a.appendChild(c)),f;f=window.document.createElement("div");f.id=Z(a,"card")+D1(d);f.className=e;(d=a.Da(d,"card-class"))&&g.Aq(f,d.split(/\s+/));d=window.document.createElement("div");d.className=Z(a,"card-border");b=a.Da(b,"orientation")||"horizontal";e=window.document.createElement("div");e.className="yt-uix-card-border-arrow yt-uix-card-border-arrow-"+b;var k=window.document.createElement("div");k.className=
  Z(a,"card-body");a=window.document.createElement("div");a.className="yt-uix-card-body-arrow yt-uix-card-body-arrow-"+b;g.Td(c);k.appendChild(c);d.appendChild(a);d.appendChild(k);f.appendChild(e);f.appendChild(d);window.document.body.appendChild(f);return f},pAa=function(a,b,c){var d=a.Da(b,"orientation")||"horizontal";
  var e=g.K(Z(a,"anchor"),b)||b;var f=a.Da(b,"position"),k=!!a.Da(b,"force-position"),l=a.Da(b,"position-fixed");d="horizontal"==d;var m="bottomright"==f||"bottomleft"==f,n="topright"==f||"bottomright"==f;if(n&&m){var p=13;var t=8}else n&&!m?(p=12,t=9):!n&&m?(p=9,t=12):(p=8,t=13);var w=r1(window.document.body);f=r1(b);w!=f&&(p^=4);if(d){f=b.offsetHeight/2-12;var z=new g.pd(-12,b.offsetHeight+6)}else f=b.offsetWidth/2-6,z=new g.pd(b.offsetWidth+6,-12);var E=g.Qh(c);f=Math.min(f,(d?E.height:E.width)-
  24-6);6>f&&(f=6,d?z.y+=12-b.offsetHeight/2:z.x+=12-b.offsetWidth/2);E=null;k||(E=10);b=Z(a,"card-flip");a=Z(a,"card-reverse");g.U(c,b,n);g.U(c,a,m);E=B1(e,p,c,t,z,null,E);!k&&E&&(E&48&&(n=!n,p^=4,t^=4),E&192&&(m=!m,p^=1,t^=1),g.U(c,b,n),g.U(c,a,m),B1(e,p,c,t,z));l&&(e=(0,window.parseInt)(c.style.top,10),k=g.Id(window.document).y,g.wh(c,"position","fixed"),g.wh(c,"top",e-k+"px"));w&&(c.style.right="",e=g.Rh(c),e.left=e.left||(0,window.parseInt)(c.style.left,10),k=g.Fd(window),c.style.left="",c.style.right=
  k.width-e.left-e.width+"px");e=g.K("yt-uix-card-body-arrow",c);k=g.K("yt-uix-card-border-arrow",c);d=d?m?"top":"bottom":!w&&n||w&&!n?"left":"right";e.setAttribute("style","");k.setAttribute("style","");e.style[d]=f+"px";k.style[d]=f+"px";m=g.K("yt-uix-card-arrow",c);n=g.K("yt-uix-card-arrow-background",c);m&&n&&(c="right"==d?g.Qh(c).width-f-13:f+11,f=c/Math.sqrt(2),m.style.left=c+"px",m.style.marginLeft="1px",n.style.marginLeft=-f+"px",n.style.marginTop=f+"px")},Q3=function(a){a.B&&a.hide(a.B)},qAa=
  function(a){var b=a.cardMask;
  b||(b=g.Nd("IFRAME"),b.src='javascript:""',g.Aq(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";window.document.body.appendChild(b)},R3=function(){F3.call(this,"kbd-nav")},rAa=function(a,b,c){if(b&&c)if(g.T(c,Z(a)),a=b.id,a||(a="kbd-nav-"+Math.floor(1E6*Math.random()+1),b.id=a),b=a,g.vk&&c.dataset)c.dataset.kbdNavMoveOut=b;
  else{if(/-[a-z]/.test("kbdNavMoveOut"))throw Error("");c.setAttribute("data-"+g.Db("kbdNavMoveOut"),b)}},sAa=function(a,b){if(b){var c=g.he(b,"LI");
  c&&(g.T(c,Z(a,"highlight")),S3=g.tF(b,"blur",(0,g.B)(function(a){g.Bq(a,Z(this,"highlight"));g.uF(S3)},a,c)))}},tAa=function(a){if("UL"!=a.tagName.toUpperCase())return[];
  a=(0,g.Ud)(g.Vd(a),function(a){return"LI"==a.tagName.toUpperCase()});
  return(0,g.Ud)((0,g.I)(a,function(a){return H1(a)?p1(a,function(a){return g.Aa(a)&&1==a.nodeType?g.fe(a):!1}):!1}),function(a){return!!a})},T3=function(){F3.call(this,"menu");
  this.A=this.o=null;this.B={};this.F={};this.C=null},U3=function(a){var b=T3.getInstance();
  if(g.zq(a,Z(b)))return a;var c=b.Fe(a);return c?c:g.ie(a,Z(b,"content"))==b.o?b.A:null},uAa=function(a,b,c){var d=V3(a,b);
  d&&g.Ph(d,g.Qh(c));if(c==a.o){var e=9,f=8;g.zq(b,Z(a,"reversed"))&&(e^=1,f^=1);g.zq(b,Z(a,"flipped"))&&(e^=4,f^=4);a=new g.pd(0,1);d&&B1(b,e,d,f,a,null,197);B1(b,e,c,f,a,null,197)}},wAa=function(a,b,c){W3(a,b)&&!c?X3(a,b):(vAa(a,b),!a.o||E1(b,a.o)?a.NH(b):cxa(a.C,(0,g.B)(a.NH,a,b)))},vAa=function(a,b){if(b){var c=g.ie(b,Z(a,"content"));
  c&&(c=g.Bd(Z(a),c),(0,g.D)(c,function(a){!E1(a,b)&&W3(this,a)&&Y3(this,a)},a))}},X3=function(a,b){if(b){var c=[];
  c.push(b);var d=Z3(a,b);d&&(d=g.Bd(Z(a),d),d=g.Va(d),c=c.concat(d),(0,g.D)(c,function(a){W3(this,a)&&Y3(this,a)},a))}},Y3=function(a,b){if(b){var c=Z3(a,b);
  g.Cq($3(a,b),[Z(a,"trigger-selected"),"yt-uix-button-toggled"]);g.T(c,Z(a,"content-hidden"));var d=Z3(a,b);d&&g.Dd(d,{"aria-expanded":"false"});(d=V3(a,b))&&d.parentNode&&g.Td(d);c&&c==a.o&&(a.A.appendChild(c),a.o=null,a.A=null,a.C&&a.C.V("ROOT_MENU_REMOVED"));g.YF("yt-uix-menu-hide",b);c=g.Ca(b).toString();g.uF(a.B[c]);delete a.B[c]}},xAa=function(a,b){var c=Z3(a,b);
  if(c){(0,g.D)(c.children,function(a){"LI"==a.tagName&&g.Dd(a,{role:"menuitem"})});
  g.Dd(c,{"aria-expanded":"true"});var d=c.id;d||(d="aria-menu-id-"+g.Ca(c),c.id=d);(c=$3(a,b))&&g.Dd(c,{"aria-controls":d})}},yAa=function(a,b,c){var d=Z3(a,b);
  d&&g.zq(b,Z(a,"checked"))&&(a=g.he(c,"LI"))&&(a=g.K("yt-ui-menu-item-checked-hid",a))&&(d=g.Bd("yt-ui-menu-item-checked",d),(0,g.D)(d,function(a){g.Dq(a,"yt-ui-menu-item-checked","yt-ui-menu-item-checked-hid")}),g.Dq(a,"yt-ui-menu-item-checked-hid","yt-ui-menu-item-checked"))},W3=function(a,b){var c=Z3(a,b);
  return c?!g.zq(c,Z(a,"content-hidden")):!1},zAa=function(a){a=g.Ad(window.document,"UL",null,a);
  (0,g.D)(a,function(a){a.tabIndex=0;var b=R3.getInstance();g.Aq(a,[Z(b),Z(b,"list")])})},Z3=function(a,b){var c=g.cF(b,"menu-content-id");
  return c&&(c=g.zd(c))?(g.Aq(c,[Z(a,"content"),Z(a,"content-external")]),c):b==a.A?a.o:g.K(Z(a,"content"),b)},V3=function(a,b){var c=g.Ca(b).toString(),d=a.F[c];
  if(!d){d=g.Nd("IFRAME");d.src='javascript:""';var e=[Z(a,"mask")];(0,g.D)(g.yq(b),function(a){e.push(a+"-mask")});
  g.Aq(d,e);a.F[c]=d}return d||null},$3=function(a,b){return g.K(Z(a,"trigger"),b)},AAa=function(a,b){return E1(b,a.o)||E1(b,a.A)},a4=function(){P3.call(this,"clickcard");
  this.o={};this.A={}},b4=function(){P3.call(this,"hovercard")},c4=function(a,b,c,d,e,f){this.o=a;
  this.G=null;this.B=g.K("yt-dialog-fg",this.o)||this.o;if(a=g.K("yt-dialog-title",this.B)){var k="yt-dialog-title-"+g.Ca(this.B);a.setAttribute("id",k);this.B.setAttribute("aria-labelledby",k)}this.B.setAttribute("tabindex","-1");this.K=g.K("yt-dialog-focus-trap",this.o);this.L=!1;this.C=new g.hD;this.H=[];this.H.push(g.CF(this.o,"click",(0,g.B)(this.BS,this),"yt-dialog-dismiss"));this.H.push(g.tF(this.K,"focus",(0,g.B)(this.eL,this),!0));BAa(this);this.N=b;this.Y=c;this.P=d;this.J=e;this.aa=f;this.F=
  this.D=null},CAa=function(a,b){a.la()||a.C.subscribe("post-all",b)},BAa=function(a){a=g.K("yt-dialog-fg-content",a.o);
  var b=[];g.Hb(DAa,function(a){b.push("yt-dialog-show-"+a)});
  g.Cq(a,b);g.T(a,"yt-dialog-show-content")},EAa=function(){var a=g.Bd("yt-dialog");
  return(0,g.Nj)(a,function(a){return H1(a)})},FAa=function(a){var b=g.Ad(window.document,"iframe",null,a.o);
  (0,g.D)(b,function(a){var b=g.cF(a,"onload");b&&(b=g.y(b))&&g.tF(a,"load",b);if(b=g.cF(a,"src"))a.src=b},a);
  return g.Va(b)},GAa=function(a){(0,g.D)(window.document.getElementsByTagName("iframe"),function(b){-1==(0,g.La)(a,b)&&g.T(b,"iframe-hid")})},HAa=function(){var a=g.Bd("iframe-hid");
  (0,g.D)(a,function(a){g.Bq(a,"iframe-hid")})},IAa=function(a){g.aE((0,g.B)(function(){this.B&&this.B.focus()},a),0)},d4=function(){F3.call(this,"overlay");
  this.C=this.A=this.B=this.o=null},KAa=function(a){a.C||(a.C=g.VF("yt-uix-overlay-hide",JAa));
  a.o&&CAa(a.o,function(){var a=d4.getInstance();a.B=null;a.o.dispose();a.o=null})},LAa=function(a){if(a.o){var b=a.B;
  a.o.dismiss("overlayhide");b&&a.bk(b,"overlay-hidden");a.B=null;a.A&&(g.uF(a.A),a.A=null);a.o=null}},MAa=function(a,b){var c;
  if(a)if(c=g.K("yt-dialog",a)){var d=g.zd("body-container");d&&(d.appendChild(c),a.overlayContentNode=c,c.overlayParentNode=a)}else c=a.overlayContentNode;else b&&(c=g.ie(b,"yt-dialog"));return c},NAa=function(){var a=d4.getInstance();
  if(a.B)a=g.K("yt-dialog-fg-content",a.B.overlayContentNode);else a:{if(a=g.Bd("yt-dialog-fg-content"))for(var b=0;b<a.length;b++){var c=g.ie(a[b],"yt-dialog");if(H1(c)){a=a[b];break a}}a=null}return a},JAa=function(){LAa(d4.getInstance())},e4=function(){F3.call(this,"tooltip");
  this.o=0;this.A={}},OAa=function(a,b,c){a.setData(b,"tooltip-text",c);
  a=a.Da(b,"content-id");(a=g.zd(a))&&g.be(a,c)},PAa=function(a,b){return a.Da(b,"tooltip-text")||b.title},SAa=function(a,b){if(b){var c=PAa(a,b);
  if(c){var d=g.zd(f4(a,b));if(!d){d=window.document.createElement("div");d.id=f4(a,b);d.className=Z(a,"tip");var e=window.document.createElement("div");e.className=Z(a,"tip-body");var f=window.document.createElement("div");f.className=Z(a,"tip-arrow");var k=window.document.createElement("div");k.setAttribute("aria-hidden","true");k.className=Z(a,"tip-content");var l=QAa(a,b),m=f4(a,b,"content");k.id=m;a.setData(b,"content-id",m);e.appendChild(k);l&&d.appendChild(l);d.appendChild(e);d.appendChild(f);
  var n=q1(b);m=f4(a,b,"arialabel");f=window.document.createElement("div");g.T(f,Z(a,"arialabel"));f.id=m;n=b.hasAttribute("aria-label")?b.getAttribute("aria-label"):"rtl"==window.document.body.getAttribute("dir")?c+" "+n:n+" "+c;g.be(f,n);b.setAttribute("aria-labelledby",m);m=g.jF()||window.document.body;m.appendChild(f);m.appendChild(d);OAa(a,b,c);(c=(0,window.parseInt)(a.Da(b,"tooltip-max-width"),10))&&e.offsetWidth>c&&(e.style.width=c+"px",g.T(k,Z(a,"normal-wrap")));k=g.zq(b,Z(a,"reverse"));RAa(a,
  b,d,e,l,k)||RAa(a,b,d,e,l,!k);var p=Z(a,"tip-visible");g.aE(function(){g.T(d,p)},0)}}}},RAa=function(a,b,c,d,e,f){g.U(c,Z(a,"tip-reverse"),f);
  var k=0;f&&(k=1);var l=g.Qh(b);f=new g.pd((l.width-10)/2,f?l.height:0);var m=g.Hh(b);xxa(new g.pd(m.x+f.x,m.y+f.y),c,k);m=g.Fd(window);var n=g.Lh(c);c=g.Qh(d);var p=Math.floor(c.width/2);k=!!(m.height<n.y+l.height);l=!!(n.y<l.height);f=!!(n.x<p);m=!!(m.width<n.x+p);n=(c.width+3)/-2- -5;a=a.Da(b,"force-tooltip-direction");if("left"==a||f)n=-5;else if("right"==a||m)n=20-c.width-3;a=Math.floor(n)+"px";d.style.left=a;e&&(e.style.left=a,e.style.height=c.height+"px",e.style.width=c.width+"px");return!(k||
  l)},f4=function(a,b,c){a=Z(a)+D1(b);
  c&&(a+="-"+c);return a},QAa=function(a,b){var c=null;
  g.c0&&g.zq(b,Z(a,"masked"))&&((c=g.zd("yt-uix-tooltip-shared-mask"))?(c.parentNode.removeChild(c),I1(c)):(c=g.Nd("IFRAME"),c.src='javascript:""',c.id="yt-uix-tooltip-shared-mask",c.className=Z(a,"tip-mask")));return c},TAa=function(a){var b=g.zd("yt-uix-tooltip-shared-mask"),c=b&&g.ge(b,function(b){return b==a},!1,2);
  b&&c&&(b.parentNode.removeChild(b),J1(b),window.document.body.appendChild(b))},g4=function(a){g.NN.call(this,1,arguments);
  this.o=a},h4=function(a,b,c,d,e){g.NN.call(this,2,arguments);
  this.source=e||null},UAa=function(a,b,c){g.NN.call(this,1,arguments);
  this.o=a;this.A=b},i4=function(a,b,c,d,e,f,k){g.NN.call(this,1,arguments);
  this.o=d||null;this.source=k||null},VAa=function(a){a=g.ie(a,"yt-uix-button-subscription-container");
  a=g.K("unsubscribe-confirmation-overlay-container",a);return g.K("yt-dialog",a)},WAa=function(a,b){g.uF(j4);
  j4.length=0;k4[b]||(k4[b]=VAa(a));d4.getInstance().show(k4[b]);var c=NAa();return new g.fg(function(a){j4.push(g.CF(c,"click",function(){a()},"overlay-confirmation-unsubscribe-button"))})},l4=function(){F3.call(this,"subscription-button")},XAa=function(a,b){if(!a.Da(b,"ypc-enabled"))return null;
  var c=a.Da(b,"ypc-item-type"),d=a.Da(b,"ypc-item-id");return{itemType:c,itemId:d,subscriptionElement:b}},YAa=function(a,b){var c=a.Da(b,m4.JJ),d=!!a.Da(b,"is-subscribed");
  c="-"+c;var e=n4.eI+c;g.U(b,n4.dI+c,!d);g.U(b,e,d);a.Da(b,m4.qI)&&!a.Da(b,m4.pI)&&(c=Z(e4.getInstance()),g.U(b,c,!d),b.title=d?"":a.Da(b,m4.rI));d?g.aE(function(){g.T(b,n4.Yx)},1E3):g.Bq(b,n4.Yx)},ZAa=function(a,b){var c=g.Bd(Z(a));
  return(0,g.Ud)(c,function(a){return b==this.Da(a,"channel-external-id")},a)},$Aa=function(a,b){var c=(0,g.B)(function(a){a.discoverable_subscriptions&&g.TD("SUBSCRIBE_EMBED_DISCOVERABLE_SUBSCRIPTIONS",a.discoverable_subscriptions);
  this.Vx(b)},a);
  g.sua(c,"subscribe","sub_button")},aBa=function(a,b){if(!a.Da(b,"show-unsub-confirm-dialog"))return!1;
  var c=a.Da(b,"show-unsub-confirm-time-frame");return"always"==c||"ten_minutes"==c&&(c=(0,window.parseInt)(a.Da(b,"subscribed-timestamp"),10),(new u1).getTime()<1E3*(c+600))?!0:!1},hxa={SCRIPT:1,
  STYLE:1,HEAD:1,IFRAME:1,OBJECT:1},ixa={IMG:" ",BR:"\n"},lxa=/[^\d]+$/,mxa={cm:1,"in":1,mm:1,pc:1,pt:1},nxa={em:1,ex:1};s1.prototype.clone=function(){return new s1(this.start,this.end)};
  s1.prototype.getLength=function(){return this.end-this.start};
  g.C(u1,g.wo);g.h=u1.prototype;g.h.getHours=function(){return this.date.getHours()};
  g.h.getMinutes=function(){return this.date.getMinutes()};
  g.h.getSeconds=function(){return this.date.getSeconds()};
  g.h.getMilliseconds=function(){return this.date.getMilliseconds()};
  g.h.getUTCHours=function(){return this.date.getUTCHours()};
  g.h.getUTCMinutes=function(){return this.date.getUTCMinutes()};
  g.h.add=function(a){g.wo.prototype.add.call(this,a);a.hours&&this.date.setUTCHours(this.date.getUTCHours()+a.hours);a.minutes&&this.date.setUTCMinutes(this.date.getUTCMinutes()+a.minutes);a.seconds&&this.date.setUTCSeconds(this.date.getUTCSeconds()+a.seconds)};
  g.h.Ap=function(a){var b=g.wo.prototype.Ap.call(this,a);return a?b+" "+g.tb(this.getHours(),2)+":"+g.tb(this.getMinutes(),2)+":"+g.tb(this.getSeconds(),2):b+"T"+g.tb(this.getHours(),2)+g.tb(this.getMinutes(),2)+g.tb(this.getSeconds(),2)};
  g.h.toString=function(){return this.Ap()};
  g.h.clone=function(){var a=new u1(this.date);a.hp=this.hp;a.jp=this.jp;return a};
  var v1={},w1=null;g.C(sxa,g.nf);g.C(y1,g.Kt);g.h=y1.prototype;g.h.getDuration=function(){return this.duration};
  g.h.play=function(a){if(a||0==this.o)this.progress=0,this.coords=this.A;else if(this.qb())return!1;x1(this);this.startTime=a=(0,g.H)();-1==this.o&&(this.startTime-=this.duration*this.progress);this.endTime=this.startTime+this.duration;this.C=this.startTime;this.progress||this.Bq();this.Ve("play");-1==this.o&&this.Ve("resume");this.o=1;var b=g.Ca(this);b in v1||(v1[b]=this);qxa();rxa(this,a);return!0};
  g.h.stop=function(a){x1(this);this.o=0;a&&(this.progress=1);txa(this,this.progress);this.Ve("stop");this.In()};
  g.h.pause=function(){this.qb()&&(x1(this),this.o=-1,this.Ve("pause"))};
  g.h.X=function(){0==this.o||this.stop(!1);this.Ve("destroy");y1.ea.X.call(this)};
  g.h.destroy=function(){this.dispose()};
  g.h.lw=function(){this.Ve("animate")};
  g.h.Ve=function(a){this.dispatchEvent(new sxa(a,this))};
  g.C(z1,y1);z1.prototype.B=g.A;z1.prototype.lw=function(){this.B();z1.ea.lw.call(this)};
  z1.prototype.In=function(){this.B();z1.ea.In.call(this)};
  z1.prototype.Bq=function(){this.B();z1.ea.Bq.call(this)};
  g.C(A1,z1);A1.prototype.B=function(){this.element.style.left=Math.round(this.coords[0])+"px";this.element.style.top=Math.round(this.coords[1])+"px"};g.C(L1,g.Of);g.h=L1.prototype;g.h.Vt=null;g.h.Km=null;g.h.oa=function(){return this.Km};
  g.h.addEventListener=function(a,b,c,d){g.Af(this.Km,a,b,c,d)};
  g.h.removeEventListener=function(a,b,c,d){g.If(this.Km,a,b,c,d)};
  g.h.X=function(){L1.ea.X.call(this);var a=this.Km;if(a)if(g.tf(a))a.We&&g.xf(a.We);else if(a=g.Df(a)){var b=0,c;for(c in a.listeners)for(var d=a.listeners[c].concat(),e=0;e<d.length;++e)g.Jf(d[e])&&++b}};g.C(P1,L1);P1.prototype.fill=null;g.C(Hxa,L1);Q1.prototype.ag=null;Q1.prototype.oe=null;Q1.prototype.Tn=!0;var Ixa=[2,2,6,6,0];g.h=Q1.prototype;g.h.clear=function(){this.wb.length=0;this.Pa.length=0;this.Re.length=0;delete this.ag;delete this.oe;delete this.Tn;return this};
  g.h.moveTo=function(a,b){0==g.Ga(this.wb)?this.Re.length-=2:(this.wb.push(0),this.Pa.push(1));this.Re.push(a,b);this.oe=this.ag=[a,b];return this};
  g.h.Lc=function(a){var b=g.Ga(this.wb);if(null==b)throw Error("Path cannot start with lineTo");1!=b&&(this.wb.push(1),this.Pa.push(0));for(b=0;b<arguments.length;b+=2){var c=arguments[b],d=arguments[b+1];this.Re.push(c,d)}this.Pa[this.Pa.length-1]+=b/2;this.oe=[c,d]};
  g.h.close=function(){var a=g.Ga(this.wb);if(null==a)throw Error("Path cannot start with close");4!=a&&(this.wb.push(4),this.Pa.push(1),this.oe=this.ag);return this};
  g.h.clone=function(){var a=new this.constructor;a.wb=this.wb.concat();a.Pa=this.Pa.concat();a.Re=this.Re.concat();a.ag=this.ag&&this.ag.concat();a.oe=this.oe&&this.oe.concat();a.Tn=this.Tn;return a};
  g.h.transform=function(a){if(!this.Tn)throw Error("Non-simple path");a.transform(this.Re,0,this.Re,0,this.Re.length/2);this.ag&&a.transform(this.ag,0,this.ag,0,1);this.oe&&this.ag!=this.oe&&a.transform(this.oe,0,this.oe,0,1);return this};
  g.h.isEmpty=function(){return 0==this.wb.length};g.C(Kxa,P1);S1.prototype.zb=function(){return this.A};g.C(T1,g.fv);T1.prototype.B=null;T1.prototype.uk=function(){return this.jf?g.Qh(this.oa()):g.ta(this.width)&&g.ta(this.height)?new g.sd(this.width,this.height):null};
  T1.prototype.resume=function(){};g.C(Lxa,L1);g.C(N1,Gxa);g.C(M1,Gxa);g.C(U1,Hxa);U1.prototype.clear=function(){g.Rd(this.oa())};
  U1.prototype.setSize=function(a,b){X1(this.oa(),{width:a,height:b})};
  g.C(Mxa,Kxa);g.C(V1,Lxa);V1.prototype.setSize=function(a,b){X1(this.oa(),{width:a,height:b})};var Z1;g.C(W1,T1);var Oxa=0;g.h=W1.prototype;g.h.Cp=function(){var a=O1(this,"svg",{width:this.width,height:this.height,overflow:"hidden"}),b=O1(this,"g");this.H=O1(this,"defs");this.B=new U1(b,this);a.appendChild(this.H);a.appendChild(b);this.o=a;this.C&&(this.oa().setAttribute("preserveAspectRatio","none"),this.P?this.Dr():this.oa().setAttribute("viewBox","0 0 "+(this.C?this.C+" "+this.N:"")))};
  g.h.Dr=function(){if(this.jf){var a=this.uk();if(0==a.width)this.oa().style.visibility="hidden";else{this.oa().style.visibility="";var b=a.width/this.C;a=a.height/this.N;this.B.oa().setAttribute("transform","scale("+b+" "+a+") translate(0 0)")}}};
  g.h.setSize=function(a,b){g.Ph(this.oa(),a,b)};
  g.h.uk=function(){if(!g.yh)return this.jf?g.Qh(this.oa()):W1.ea.uk.call(this);var a=this.width,b=this.height,c=g.v(a)&&-1!=a.indexOf("%"),d=g.v(b)&&-1!=b.indexOf("%");if(!this.jf&&(c||d))return null;if(c){var e=this.oa().parentNode;var f=g.Qh(e);a=(0,window.parseFloat)(a)*f.width/100}d&&(e=e||this.oa().parentNode,f=f||g.Qh(e),b=(0,window.parseFloat)(b)*f.height/100);return new g.sd(a,b)};
  g.h.clear=function(){this.B.clear();g.Rd(this.H);this.A={}};
  g.h.drawImage=function(a,b,c,d,e,f){a=O1(this,"image",{x:a,y:b,width:c,height:d,"image-rendering":"optimizeQuality",preserveAspectRatio:"none"});a.setAttributeNS("http://www.w3.org/1999/xlink","href",e);e=new V1(a,this);(f||this.B).oa().appendChild(e.oa());return e};
  g.h.kk=function(){var a=this.uk();W1.ea.kk.call(this);a||this.dispatchEvent("resize");if(this.P){a=this.width;var b=this.height;"string"==typeof a&&-1!=a.indexOf("%")&&"string"==typeof b&&-1!=b.indexOf("%")&&this.K.W(Pxa(),"tick",this.Dr);this.Dr()}};
  g.h.sm=function(){W1.ea.sm.call(this);this.P&&this.K.Ha(Pxa(),"tick",this.Dr)};
  g.h.X=function(){delete this.A;delete this.H;delete this.B;this.K.dispose();delete this.K;W1.ea.X.call(this)};g.r(d2,g.DU);g.h=d2.prototype;
  g.h.load=function(){g.DU.prototype.load.call(this);if(!e2(g.Y(this.player).playerStyle)){var a=this.player.getVideoData();if(a=a.Mj?null:a.ub&&a.ub.endscreen&&a.ub.endscreen.endscreenRenderer||null)a=c2(a,Txa(this)),f2(this,a);else{var b=this.player.getVideoData();a=b.videoId;this.C&&this.C.abort();a={method:"POST",Fd:(0,g.B)(this.iT,this,a),fd:{v:a},withCredentials:!0};"gaming"==g.Y(this.player).playerStyle&&(a.fd.gaming="1");this.N&&(a.fd.ptype="embedded");var c=this.player.getVideoData().nA;c&&
  (a.Sb={ad_tracking:c});if(b=g.fP(b))if(b=g.Oc(b),b=g.Lc(b))this.C=g.rE(b,a)}}};
  g.h.unload=function(){f2(this,null);this.C&&(this.C.abort(),this.C=null);g.DU.prototype.unload.call(this)};
  g.h.mO=function(a,b){if(!e2(g.Y(this.player).playerStyle))return null;if("loadCustomEndscreenRenderer"==a){var c=c2(b,"new");f2(this,c);return!0}return null};
  g.h.nO=function(){return e2(g.Y(this.player).playerStyle)?["loadCustomEndscreenRenderer"]:[]};
  g.h.iT=function(a,b){var c=this.C=null;if(200==b.status){var d=b.responseText;")]}"==d.substring(0,3)&&(d=d.substring(3),c=JSON.parse(d),c=c2(c,Txa(this)))}f2(this,c)};
  g.h.uC=function(){if(this.A&&this.A.elements){var a=this.player.OC();if(a&&0!=a.width&&0!=a.height){var b=this.player.Cv();if(b&&0!=b.width&&0!=b.height){var c=a.width/a.height;var d=0;for(var e=-1,f=0;f<bBa.length;f++){var k=Math.abs(b.width-bBa[f]);if(-1==e||d>=k)e=f,d=k}d=cBa[e];this.B&&g.wh(this.B.element,"outline-width",Math.max(b.width,b.height)+"px");for(b=0;b<this.A.elements.length;++b)if(f=this.A.elements[b].id,e=this.o[f],k=this.G[f],e&&k){var l=k.width*c/k.aspectRatio;f=Math.round(l*a.height);
  var m=a.left+Math.round(k.left*a.width),n=a.top+Math.round(k.top*a.height);g.Ph(e.element,Math.round(k.width*a.width),f);g.Dh(e.element,m,n);g.Cq(e.element,dBa);m=k.left+k.width/2;k=k.top+l/2;g.T(e.element,.5>=m&&.5>=k?"ytp-ce-top-left-quad":.5<m&&.5>=k?"ytp-ce-top-right-quad":.5>=m&&.5<k?"ytp-ce-bottom-left-quad":"ytp-ce-bottom-right-quad");g.Cq(e.element,cBa);g.T(e.element,d);(e=g.Ad(window.document,"div","ytp-ce-expanding-overlay-body",e.element)[0])&&g.wh(e,"height",f+"px")}}}}};
  g.h.oO=function(a){if(this.A)if("ytp-ce-in-endscreen"==a.getId())this.K=!1,this.A.skip&&1==this.player.ni()?(g.dU(this.player,!0),this.player.oc(window.Infinity),this.K=!0):(i2(this,this.A.impressionUrls),(a=g.RG())&&Sxa(a,this.A.visualElement));else if(!this.K){a=a.getId().substring(15);var b=this.o[a],c=this.G[a];g.T(b.element,"ytp-ce-element-show");b.element.removeAttribute("aria-hidden");b=this.player.getRootNode();g.T(b,"ytp-ce-shown");i2(this,c.impressionUrls);(b=g.RG())&&Sxa(b,c.visualElement);
  g.Y(this.player).Lb&&this.player.ya("endscreenelementshown",a)}};
  g.h.pO=function(a){if("ytp-ce-in-endscreen"!=a.getId()&&!this.K){a=a.getId().substring(15);var b=this.o[a];g.Bq(b.element,"ytp-ce-element-show");b.element.setAttribute("aria-hidden",!0);b=this.player.getRootNode();g.Bq(b,"ytp-ce-shown");g.Y(this.player).Lb&&this.player.ya("endscreenelementhidden",a)}};
  g.h.uW=function(a){var b=this;a.target===window&&(new g.V(function(){for(var a in b.o)g.Cq(b.o[a].element,["ytp-ce-force-expand","ytp-ce-element-hover","ytp-ce-element-shadow-show"])},0)).start()};
  g.h.mE=function(a,b){if(a.targetUrl&&(!b||"keypress"!=b.type||13==b.keyCode)){for(var c=b.target;c&&!g.zq(c,"ytp-ce-element");){g.zq(c,"subscribe-label")&&j2(this,a);if(g.zq(c,"ytp-ce-channel-subscribe"))return;c=g.Yd(c)}if(!c||g.zq(c,"ytp-ce-element-hover")){b.preventDefault();b.stopPropagation();if(c=this.o[a.id])this.xw(c,a),c.element.blur();b.ctrlKey||b.metaKey||"new"==a.vr?(j2(this,a),this.IF(),this.player.od(),c=g.Oc(a.targetUrl),c=g.Lc(c),g.RU(c,void 0,a.Id)):(c=this.player.getVideoData().isDni,
  c=(0,g.B)(this.tX,this,c,a.targetUrl,a.Id),c=(0,g.B)(this.IF,this,c),j2(this,a,c))}}};
  g.h.tX=function(a,b,c){var d=g.hE(b);a&&d&&(d.v||d.list)?g.a0(this.player.app,d.v,c,d.list,!1,void 0,void 0):g.QU(b,c)};
  g.h.jv=function(a,b){g.zq(a.element,"ytp-ce-element-hover")||("VIDEO"==b.type||"PLAYLIST"==b.type?g.T(a.element,"ytp-ce-element-hover"):g.Y(this.player).B?(new g.V(function(){g.T(a.element,"ytp-ce-element-hover")},200)).start():g.T(a.element,"ytp-ce-element-hover"),i2(this,b.vM),h2(this,b.id,!0))};
  g.h.xw=function(a,b){g.Bq(a.element,"ytp-ce-element-hover");g.Bq(a.element,"ytp-ce-force-expand");h2(this,b.id,!1)};
  g.h.IF=function(a){this.player.yj(17,a)};
  var bBa=[346,426,470,506,570,640,853,1280,1920],cBa="ytp-ce-size-346 ytp-ce-size-426 ytp-ce-size-470 ytp-ce-size-506 ytp-ce-size-570 ytp-ce-size-640 ytp-ce-size-853 ytp-ce-size-1280 ytp-ce-size-1920".split(" "),dBa=["ytp-ce-top-left-quad","ytp-ce-top-right-quad","ytp-ce-bottom-left-quad","ytp-ce-bottom-right-quad"];var dya={I_:"current",lJ:"new"};var fya={CLOSE:"close",a3:"openUrl",KJ:"subscribe"},gya={Yr:"click",CLOSE:"close",a1:"hidden",U3:"rollOut",BJ:"rollOver",DJ:"shown"};var jya={k6:"xx",l6:"xy",r6:"yx",s6:"yy"};g.r(pya,w2);var vya={ZH:"anchored",I3:"rect",j4:"shapeless"};var Aya={CLOSED:"closed",l3:"playerControlShow",BJ:"rollOver",DJ:"shown"};y2.prototype.Xa=function(){var a=Jya(this,function(a){return"openUrl"==a.type&&null!=a.url});
  return a?a.url:null};
  y2.prototype.showLinkIcon=function(){return A2(this,function(a){return null!=a.url&&a.url.showLinkIcon})};
  var z2={ZH:"anchored",cI:"branding",CHANNEL:"channel",H_:"cta",d1:"highlightText",J1:"label",PLAYLIST:"playlist",w3:"popup",z4:"speech",KJ:"subscribe",Y4:"title",VIDEO:"video",a6:"vote",d6:"website"},Fya={cI:"branding",e_:"card",m0:"drawer",c1:"highlight",g2:"marker",B3:"promotion",TEXT:"text",g6:"widget"},Gya={V5:"video_relative",m3:"player_relative"};Pya.prototype.C=function(a,b,c,d){this.o[a]=b?!c:c;a=g.Mb(this.o,function(a){return a});
  this.B!=a&&(this.B=a,this.A.V(this.D,a,d))};D2.prototype.oa=function(){return this.D};
  D2.prototype.B=function(){};var H2={bevel:1,dropshadow:2};g.r(J2,D2);
  J2.prototype.B=function(a,b){var c=C2(a);if(c){var d=x2(c,b);if(!(0>=d.width||0>=d.height)){var e;if(e=(c=(c=Mya(a))&&c.o?c.o:null)&&c.length?c[0]:null){var f=g.nh(lya(b,mya(e,new g.ih(e.H,e.J,e.Kl,e.B),b.o))),k=d.clone();c=new g.ih(f.x,f.y,1,1);var l=Math.max(k.left+k.width,c.left+c.width),m=Math.max(k.top+k.height,c.top+c.height);k.left=Math.min(k.left,c.left);k.top=Math.min(k.top,c.top);k.width=l-k.left;k.height=m-k.top;c=a.A;k=I2(k,c.effects);l=E2(this,k.width,k.height);m=Xya(c,k.width,k.height,
  this.o);d=new g.ih(d.left-k.left,d.top-k.top,d.width,d.height);var n=new g.pd(f.x-k.left,f.y-k.top);this.C=17*v2(b.o,e.A,e.o?e.o:"xy");e=c.cornerRadius;f=a.A;var p=this.o&&B2(a),t=p?f.borderWidth+1:f.borderWidth;p=(f=t?new S1(t,p?f.A:f.borderColor):null)?f.zb()/2:0;t=Zya(d,n);var w=this.F(d,e,n,t),z=n.x;n=n.y;var E=d.width,J=d.height,Q=d.left;d=d.top;var da=new Q1;da.moveTo(Q+e+p,d+p);"t"==t&&(da.Lc(w.start,d+p),da.Lc(z,n),da.Lc(w.end,d+p));da.Lc(Q+E-e-p,d+p);R1(da,e,e,-90);"r"==t&&(da.Lc(Q+E-p,w.start),
  da.Lc(z,n),da.Lc(Q+E-p,w.end));da.Lc(Q+E-p,d+J-e-p);R1(da,e,e,0);"b"==t&&(da.Lc(w.end,d+J-p),da.Lc(z,n),da.Lc(w.start,d+J-p));da.Lc(Q+e+p,d+J-p);R1(da,e,e,90);"l"==t&&(da.Lc(Q+p,w.end),da.Lc(z,n),da.Lc(Q+p,w.start));da.Lc(Q+p,d+e+p);R1(da,e,e,180);da.close();Y1(l,da,f,m);if(m=this.oa())g.T(m,"annotation-shape"),g.T(m,"annotation-speech-shape"),g.Dh(m,k.left,k.top),g.Ph(m,k.width,k.height),Yya(l,m,c.effects)}}}};
  J2.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=g.ld(c-a/2,d+b,d+e-a-b);return new s1(c,c+a)}
  return"t"==d||"b"==d?e(this.C,c.x,a.left,a.width):"l"==d||"r"==d?e(this.C,c.y,a.top,a.height):new s1(0,0)};g.r(K2,D2);K2.prototype.B=function(a,b){var c=C2(a);if(c){var d=x2(c,b);if(!(0>=d.width||0>=d.height)){var e=a.A;c=I2(d,e.effects);var f=E2(this,c.width,c.height),k=new g.ih(0,0,d.width,d.height),l=e.cornerRadius;d=new S1(!e.B&&this.o?1:e.B,e.bgColor);var m=new M1("#000",0),n=d?d.zb()/2+1:0;k=Wya(k,l,n);Y1(f,k,d,m);f=this.oa();g.T(f,"annotation-shape");e=e.o;g.Sh(f,this.o?Math.max(e,.9):e);g.Dh(f,c.left,c.top);g.Ph(f,c.width,c.height)}}};g.r(L2,D2);
  L2.prototype.B=function(a,b){var c=C2(a);if(c){var d=x2(c,b);if(!(0>=d.width||0>=d.height)){c=a.A;var e=I2(d,c.effects),f=E2(this,e.width,e.height),k=new g.ih(0,0,d.width,d.height);d=Xya(c,d.width,d.height,this.o);var l=c.cornerRadius;var m=a.A;var n=this.o&&B2(a),p=n?m.borderWidth+1:m.borderWidth;n=(m=p?new S1(p,n?m.A:m.borderColor):null)?m.zb()/2+1:0;k=Wya(k,l,n);Y1(f,k,m,d);if(k=this.oa())g.T(k,"annotation-shape"),g.T(k,"annotation-popup-shape"),g.Dh(k,e.left,e.top),g.Ph(k,e.width,e.height),Yya(f,
  k,c.effects)}}};g.r(M2,J2);M2.prototype.F=function(a,b,c,d){function e(a,c,d,e){a=Math.min(Math.max(e-2*b,0),a);c=c<=d+e/2?Math.max(d+e/4-a/2,d+b):Math.min(d+3*e/4-a/2,d+e-a-b);return new s1(c,c+a)}
  return"t"==d||"b"==d?e(this.C,c.x,a.left,a.width):"l"==d||"r"==d?e(this.C,c.y,a.top,a.height):new s1(0,0)};g.r(N2,g.M);g.h=N2.prototype;g.h.aD=function(){this.J||(this.C&&g.O(this.C,!0),this.D&&g.O(this.D,!0),this.B&&(this.B.o=!0,g.Sh(this.A,R2(this)?1:0),this.B.B(this.o,P2(this))),this.H.isActive()&&this.H.stop(),this.J=!0,this.K=this.Z.ii(g.$T(this.F),"mouseleave",function(a){this.yq.stop();this.ti(a)}))};
  g.h.ti=function(){this.J&&(this.P?this.H.start():this.iB(),this.B&&(this.B.o=!1,g.Sh(this.A,R2(this)?1:0),this.B.B(this.o,P2(this))),this.J=!1,this.K&&(this.Z.Ha(this.K),this.K=null))};
  g.h.iB=function(){this.C&&g.O(this.C,!1);this.D&&g.O(this.D,!1)};
  g.h.tQ=function(a){this.ca=a;this.yq.Im()};
  g.h.sQ=function(){var a=this.ca,b=new g.pd(a.clientX,a.clientY),c=g.Hh(this.F.getRootNode()),d=cza(c,this.N);c=(this.D&&g.Th(this.D)||this.C&&g.Th(this.C))&&cza(c,this.P);d&&d.contains(b)||c&&c.contains(b)?this.aD(a):this.ti(a)};
  g.h.show=function(){var a=this.o.A;a=(a&&0==a.o||"title"==this.o.style||"highlightText"==this.o.style?!1:!0)&&!this.B;var b=!this.A,c="widget"==this.o.type;if(a){var d=P2(this),e=null;"highlight"==this.o.type||"label"==this.o.style?e=new K2:"popup"==this.o.style?e=new L2:"anchored"==this.o.style?e=new J2:"speech"==this.o.style&&(e=new M2);e&&(e.B(this.o,d),this.B=e,d=e.oa())&&(g.O(d,!1),g.T(d,"annotation-type-"+this.o.type.toLowerCase()),this.aa(d))}if(b){d=["annotation"];"highlightText"!=this.o.style||
  d.push("annotation-no-mouse");d.push("annotation-type-"+this.o.type.toLowerCase());this.A=g.L("DIV",d);g.O(this.A,!1);this.o.C&&(this.G=g.L("DIV","inner-text"),"label"==this.o.style&&(g.T(this.G,"label-text"),this.G.style.backgroundColor=this.o.A.bgColor),g.be(this.G,this.o.C),this.A.appendChild(this.G));g.bF(this.A,"annotation_id",this.o.id);this.aa(this.A);$ya(this,this.A);if(B2(this.o)&&this.o.showLinkIcon()){if(e=this.o.Xa())d=this.A,e=new g.Im(u2(e)),d.title=e.A+e.B;this.D=g.L("SPAN","annotation-link-icon");
  g.O(this.D,!1);this.A.appendChild(this.D)}aza(this);B2(this.o)||(this.A.style.cursor="default")}c&&"subscribe"==this.o.style&&g.K("yt-uix-subscription-button",this.A);if(a||b){a:{a=this.o.segment.o;if(a.length&&(a=xya(a[0]))){a=a.D;break a}a=0}this.A&&(this.A.style.zIndex=a);this.B&&this.B.oa()&&(this.B.oa().style.zIndex=a)}g.O(this.A,!0);g.Sh(this.A,R2(this)?1:0);Q2(this);this.B&&this.B.oa()&&g.O(this.B.oa(),!0)};
  g.h.hide=function(){this.A&&g.O(this.A,!1);this.B&&this.B.oa()&&g.O(this.B.oa(),!1);this.L&&(this.Z.Ha(this.L),this.L=null)};g.r(S2,g.M);g.h=S2.prototype;g.h.hide=function(){this.isVisible=!1;this.view&&(eza(this),this.view.hide())};
  g.h.show=function(){this.isVisible=!0;this.view&&(this.view.show(),this.A.subscribe("resize",this.ZC,this),this.A.subscribe("onVideoAreaChange",this.TE,this))};
  g.h.destroy=function(){if(this.view){eza(this);var a=this.view;g.FF(a.Z);a.yq.dispose();a.H.dispose();a.A&&g.Td(a.A);a.B&&a.B.oa()&&g.Td(a.B.oa())}T2(this)};
  g.h.TE=function(){Q2(this.view)};
  g.h.ZC=function(){Q2(this.view)};g.r(fza,K1);g.r(U2,K1);g.r(gza,U2);g.r(hza,K1);g.r(iza,K1);g.r(kza,U2);g.r(lza,U2);g.r(mza,K1);g.r(V2,K1);d3.prototype.B=function(a,b){var c=g.he(b.target,"label");c&&g.U(c,"iv-card-poll-choice-focused",a)};
  d3.prototype.G=function(a,b){var c=g.ie(b.target,"iv-card-poll");if(c)if(a.C)g.K("iv-card-sign-in-button",c).click();else{var d=(0,window.parseInt)(t1(b.target,"pollChoiceIndex"),10);if(null==a.o)a.choices[d].count++,a.o=d;else if(a.o!=d){var e=a.choices[a.o];e.count=Math.max(e.count-1,0);a.choices[d].count++;a.o=d}else e=a.choices[a.o],e.count=Math.max(e.count-1,0),a.o=null;rza(a,c);g.vE(this.o.videoData.Xf,{fd:{action_poll_vote:1},Sb:{poll_id:a.id,index:d,session_token:a.J}});$2(this.o.logger,a.B,
  void 0,{"link-id":d},a.A.click,5);(c=g.RG())&&$1(c,a.H)}};
  d3.prototype.F=function(a){var b=g.y("yt.www.ypc.bootstrap.api.loadOffersForInnertubeRequestParams"),c;b&&(c=function(){b(a.J,a.F)});
  vza(this,a,!0,c)};
  d3.prototype.H=function(a){var b=g.y("yt.www.ypc.bootstrap.api.loadOffers");b&&(b=g.Da(b,a.N,a.J,a.F));vza(this,a,!1,b)};g.r(m3,g.M);g.h=m3.prototype;g.h.mr=function(){this.context.B.subscribe("resize",this.Fo,this)};
  g.h.oa=function(){return this.Ca};
  g.h.Ij=function(a,b,c,d,e,f,k){this.context.o.W(a,"click",g.Da(this.Zp,b,c,d,e,f||[],k||0),this);this.context.o.W(a,"touchstart",g.Da(function(){this.Kx=!1}),this);
  this.context.o.W(a,"touchmove",g.Da(function(){this.Kx=!0}),this)};
  g.h.Zp=function(a,b,c,d,e,f,k){if(this.Kx)return!1;k&&(k.stopPropagation(),k.preventDefault());Dza(this,a,c,d,e,f);return!1};
  g.h.show=function(){this.ga=(0,g.H)()};
  g.h.hide=function(){};
  g.h.destroy=function(){g.Td(this.oa())};
  g.h.Fo=function(){};g.r(q3,m3);g.h=q3.prototype;g.h.isAvailable=function(){var a;if(a=!!this.A.length)(a=this.T.getRootNode())?(a=g.Qh(a),a=173<a.width&&173<a.height):a=!1;return a};
  g.h.Fo=function(){var a=this.isAvailable();g.O(this.oa(),a);g.U(this.context.A.getRootNode(),"ytp-iv-drawer-enabled",a);o1(this.T)};
  g.h.destroy=function(){var a=g.TT(this.T).zc;a&&a.gv(!1,void 0);this.T.getRootNode().removeChild(this.F);g.WF(this.K);g.uF(this.ba);this.ca&&this.ca.dispose();this.G&&this.G.dispose();m3.prototype.destroy.call(this)};
  g.h.MO=function(a){this.N.start();a.preventDefault();a=a||window.event;var b=0;"MozMousePixelScroll"==a.type?b=0==(a.axis==a.HORIZONTAL_AXIS)?a.detail:0:window.opera?b=a.detail:b=0==a.wheelDelta%120?"WebkitTransform"in window.document.documentElement.style?window.chrome&&0==window.navigator.platform.indexOf("Mac")?a.wheelDeltaY/-30:a.wheelDeltaY/-1.2:a.wheelDelta/-1.6:a.wheelDeltaY/-3;if(a=b)this.B.scrollTop+=a};
  g.h.RF=function(a){if(!g.zq(this.T.getRootNode(),"ytp-cards-teaser-shown")){if(this.o!=a){var b=g.RG(),c=this.o?this.o.hc.D:this.J;b&&c&&b2(b,[c]);this.o=a;r3(this)}g.Th(this.oa())&&(2==this.context.A.Ta()?b=1==((0,window.isNaN)(void 0)?this.context.A.HC():void 0):(b=(0,window.isNaN)(void 0)?this.context.A.ni():void 0,b=1==b||0==b&&0===this.context.A.getCurrentTime()),b&&a.hc.teaserDurationMs&&(b={teaserText:a.hc.teaserText,durationMs:a.hc.teaserDurationMs},(c=g.TT(this.T).zc)&&c.gv(!0,b)));this.ma.isActive()||
  ((!this.C||!this.N.isActive()&&this.aa)&&Nza(this,a),this.ma.start(910+a.hc.teaserDurationMs))}};
  g.h.lX=function(a){this.C||(this.o=a,r3(this),Nza(this,a),o3(this,"YOUTUBE_DRAWER_AUTO_OPEN",!1,a))};
  g.h.FK=function(){if(this.C){b3(this.context.logger,this.Y,4,s3(this).A.close);var a=g.RG();a&&this.L&&$1(a,this.L);p3(this)}};
  g.h.SK=function(){g.U(this.F,"iv-drawer-scrolled",0<this.B.scrollTop)};
  g.h.FN=function(){var a=g.RG(),b=s3(this);b=b?b.D:this.J;a&&b&&a2(a,[b])};
  g.h.EN=function(){var a=g.RG(),b=s3(this);b=b?b.D:this.J;a&&b&&b2(a,[b])};
  g.h.IN=function(){var a=s3(this);c3(this.context.logger,8,a.B,a.A.DX);var b=g.RG();b&&a&&a2(b,[a.G,a.D])};
  g.h.HN=function(){var a=g.RG(),b=s3(this);a&&b&&b2(a,[b.G])};
  g.h.GN=function(a){var b=s3(this),c=g.RG();this.o?a?(a=this.context.logger,c3(a,9,b.B,b.A.ix),a.T.yj(4,void 0),c&&$1(c,b.G)):(a=this.context.logger,c3(a,12,b.B,b.A.ix),a.T.yj(4,void 0),c&&$1(c,b.D)):(a=this.context.logger,b3(a,this.Y,12,b.A.ix),a.T.yj(4,void 0),c&&this.J&&$1(c,this.J))};
  var Eza={collaborator:fza,donation:gza,episode:V2,movie:V2,playlist:hza,poll:iza,productListing:kza,simple:U2,tip:lza,video:mza};g.r(t3,m3);t3.prototype.mr=function(){m3.prototype.mr.call(this);Oza(this)};g.r(u3,t3);g.h=u3.prototype;g.h.uX=function(a,b,c,d){this.B.stop();if(!this.C){var e=g.Qh(a);this.o||(g.Oh(a,e.width),g.Oh(b,e.width));g.wh(c,"top",e.height-Math.max(Math.min(e.height,d)/2+10,20)+"px");g.wh(c,"right","1px");this.C=!0;g.O(a,!0);this.D=new g.V(function(){g.T(this.oa(),"iv-branding-active")},0,this);
  this.D.start()}};
  g.h.sM=function(a,b){g.Bq(this.oa(),"iv-branding-active");this.F=new g.V((0,g.B)(function(){g.O(a,!1);this.o||g.Oh(b,0)},this),250);
  this.F.start();this.C=!1};
  g.h.show=function(){if(!this.isActive){t3.prototype.show.call(this);if(!this.G){g.T(this.oa(),"iv-branding");var a=this.annotation.data;this.H=a.image_width;this.A=g.L("IMG",{src:a.image_url,"class":"branding-img iv-click-target",width:a.image_width,height:a.image_height});g.O(this.A,!1);var b=g.L("DIV","branding-img-container",this.A);this.oa().appendChild(b);var c=g.L("DIV","iv-branding-context-name");g.be(c,a.channel_name);var d=g.L("DIV","iv-branding-context-subscribe");if(b=a.standalone_subscribe_button_data)this.o=
  new g.JZ(b.subscribeText,b.subscribeCount,b.unsubscribeText,b.unsubscribeCount,!!b.enabled,!!b.classic,a.channel_id,!!b.subscribed,b.feature,a.session_data.itct,b.signinUrl,this.J.A),this.o.xa(d);b=g.L("DIV","iv-branding-context-subscribe-caret");c=g.L("DIV","branding-context-container-inner",b,c,d);g.O(c,!1);d=g.L("DIV","branding-context-container-outer",c);g.wh(d,"right",this.H+"px");this.oa().appendChild(d);var e=this.annotation.Xa();e&&this.Ij(this.A,e,this.annotation.id,a.session_data,this.annotation.o);
  this.B=new g.V(g.Da(this.sM,c,d),500,this);g.N(this,this.B);this.context.o.W(this.oa(),"mouseover",(0,g.B)(this.uX,this,c,d,b,a.image_height));this.context.o.W(this.oa(),"mouseout",(0,g.B)(this.B.start,this.B,void 0));this.G=!0}Z2(this.context.logger,this.annotation.o);g.O(this.oa(),!0);this.isActive=!0;if(this.A){a=this.A;var f=void 0===f?0:f;b=g.Rh(a).width;c=g.ta(void 0)?void 0:b;g.Dh(a,c);f=new A1(a,[c,a.offsetTop],[c-b-f,a.offsetTop],200,uxa);g.N(this,f);this.context.C.W(f,"begin",g.Da(g.O,a,
  !0));f.play()}}};
  g.h.hide=function(){this.isActive&&(g.O(this.oa(),!1),this.isActive=!1)};
  g.h.destroy=function(){this.o&&(this.o.dispose(),this.o=null);t3.prototype.destroy.call(this)};g.r(v3,t3);g.h=v3.prototype;g.h.show=function(){this.isActive||(t3.prototype.show.call(this),this.K||(Pza(this),this.K=!0),g.O(this.oa(),!0),this.annotation&&this.annotation.o&&Z2(this.context.logger,this.annotation.o),g.Bg(function(){g.Bq(this.oa(),"iv-promo-inactive")},100,this),this.oa().removeAttribute("aria-hidden"),this.isActive=!0,w3(this),Rza(this),Sza(this,this.H))};
  g.h.hide=function(){this.isActive&&(g.T(this.oa(),"iv-promo-inactive"),this.isActive=!1,this.oa().setAttribute("aria-hidden",!0))};
  g.h.Zp=function(a,b,c,d,e,f,k){return this.D?!1:t3.prototype.Zp.call(this,a,b,c,d,e,f,k)};
  g.h.au=function(a,b){b.stopPropagation();Rza(this);Sza(this,a);this.o.focus()};
  g.h.PL=function(a){this.J=!0;this.au(500,a)};
  g.h.OL=function(){this.J=!1;Qza(this)};
  g.h.uQ=function(a){a.stopPropagation();this.hide();a3(this.context.logger,this.annotation.o)};
  g.h.DL=function(a){a.stopPropagation();w3(this);this.D=!0;g.T(this.oa(),"iv-promo-collapsed-no-delay");this.F.start();a3(this.context.logger,this.annotation.o)};
  g.h.destroy=function(){this.F.dispose();t3.prototype.destroy.call(this)};g.r(x3,g.DU);g.h=x3.prototype;g.h.gO=function(a,b){if(!Uza(g.Y(this.player).playerStyle))return null;switch(a){case "loadCustomAnnotationsXml":var c=g.is(b);c&&z3(this,c);return!0;case "removeCustomAnnotationById":return b&&this.o&&(Gza(this.o,b),o1(this.player)),!0}return null};
  g.h.hO=function(){return Uza(g.Y(this.player).playerStyle)?["loadCustomAnnotationsXml","removeCustomAnnotationById"]:[]};
  g.h.zw=function(){if(this.C){var a=g.o_(g.$T(this.player),!0);g.Ph(this.C.element,a.width,a.height);g.Dh(this.C.element,a.left,a.top)}if(this.o){var b=g.kU(this.player);a=this.o;b=b.width;g.U(a.F,"iv-drawer-small",426>=b);g.U(a.F,"iv-drawer-big",1280<=b)}};
  g.h.KU=function(a){this.Vc(a.state);g.X(a.state,2)&&(this.gn()&&this.tC()&&2!=this.player.Ta()&&this.hv(!1),this.gv(!1))};
  g.h.load=function(){g.DU.prototype.load.call(this);this.Vc(g.ZT(this.player));this.J++;var a=this.player.getVideoData(),b=a.videoId,c=(0,g.B)(this.mT,this,b,this.J),d=(0,g.B)(function(){this.F=null},this);
  g.qG()&&(c=aAa(this,c));c={format:"XML",Fd:c,onError:d,fd:{}};a.isPharma&&(c.fd.pharma="1");c.method="POST";c.withCredentials=!0;d=g.Y(this.player);"gaming"==d.playerStyle&&(c.fd.gaming="1");(b=d.F.get(b))&&bAa(c,b);b=b&&(b.Si||b.Ss);if(!a.xo||b)a.Xf?Vza(this,a.Xf,c):(this.B=(0,g.B)(this.lO,this,c),this.player.addEventListener("videodatachange",this.B));g.tU(this.player,this.C.element,4);this.zw()};
  g.h.Vc=function(a){a=!g.SP(a)&&!g.X(a,1024);g.yH(this.D,a);g.yH(this.C,a)};
  g.h.lO=function(a){var b=this.player.getVideoData();b.Xf&&(this.B&&(this.player.removeEventListener("videodatachange",this.B),this.B=null),Vza(this,b.Xf,a))};
  g.h.unload=function(){oza(this.gb);g.rU(this.player,"annotations_module");g.Hb(this.A,function(a){a.destroy()});
  g.Hb(this.L,function(a){a.destroy()});
  this.H=null;this.o&&(this.o.destroy(),this.o=null,o1(this.player));this.K=!1;this.F&&(this.F.abort(),this.F=null);this.A={};this.L={};this.D.hide();g.DU.prototype.unload.call(this);g.xH(this.C);this.B&&(this.player.removeEventListener("videodatachange",this.B),this.B=null)};
  g.h.mT=function(a,b,c){this.F=null;if(!Xza(this,b,a)&&(a=g.$D(c)&&c.responseXML?c.responseXML:null)){z3(this,a);g.T(this.player.getRootNode(),"iv-module-loaded");a=[];for(var d in this.A){b=this.A[d].annotation;if(b.segment)if(c=b.segment,c.o.length)if(c=c.o[0].A||c.o[0].o||c.o[0].B,!c||2>c.length)c=null;else{var e=c.length-1;c=0>=c[0].t&&0>=c[e].t?null:{start:c[0].t,end:c[e].t}}else c=null;else c=null;if(e=c)if(c=1E3*e.start,e=1E3*e.end,0==c&&(c++,e++),!(e<c)){var f={id:d,namespace:"annotations_module"};
  "marker"==b.type&&(f.style="ytp-chapter-marker",f.tooltip=b.C,f.visible=!0);b=new g.vQ(c,e,f);a.push(b)}}g.nU(this.player,a)}};
  g.h.SE=function(a){a==this.player.getVideoData().videoId&&(this.loaded?cAa(this):this.load())};
  g.h.iO=function(a){a=a.getId();var b=this.A[a];b&&!b.B&&(b=b.annotation,fAa(this,a),Z2(this.gb,b.o))};
  g.h.jO=function(a){A3(this,a.getId())};
  g.h.gB=function(a){a&&(a.hide(),B3(this,"shown",!1,a.annotation.id),this.Yo(a.annotation,"hidden"))};
  g.h.hG=function(a){a&&(a.show(),B3(this,"shown",!0,a.annotation.id),this.Yo(a.annotation,"shown"))};
  g.h.ZV=function(a,b,c){var d=this.A[a];if(d&&b.value!=c){b.value=c;var e=!1;Kya(d.annotation,function(a){e=e||a.value});
  gAa(this,a,b,e)}};
  g.h.ZR=function(a){if(a&&a.id){var b=a.Xa();if(b){var c=u2(b);if(c){var d=(0,g.B)(this.Yo,this,a,"click");if("new"==l3(c,b.target)||hAa(this,b))d(),d=null;$2(this.gb,a.o,d)}}}};
  g.h.Yo=function(a,b){Iya(a,function(c){if(c.trigger==b&&"openUrl"==c.type&&c.url){var d=this.player.getVideoData(),e;if(!(e=!hAa(this,c.url))){e=Aza(c.url);var f=zza(c.url);e?(d.videoId==e?this.player.oc(f||0):(d=y3(this).A,g.a0(d.app,e,void 0,void 0,void 0,void 0,void 0),f&&y3(this).A.Zc()&&y3(this).A.oc(f)),d=!0):d=!1;e=!d}e&&(e=g.Y(this.player),(d=u2(c.url))?(f=yza(d),e&&"com"==f[0]&&"google"==f[1]&&"plus"==f[2]&&(e=g.Da(Bza,e.pageId,e.jd),d=new g.Im(d),g.Mm(d,e(d.B)),d=d.toString())):d=null,d&&
  (this.player.od(),c=l3(d,c.url.target),e=a.itct,"ei"in g.hE(d)&&(d=g.bh(d,"ei")),g.RU(d,"current"==c?"_top":void 0,{itct:e})))}},this)};
  g.h.vT=function(){B3(this,"playerControlShow",!1)};
  g.h.EV=function(){B3(this,"playerControlShow",!0)};
  g.h.kO=function(a){B3(this,"rollOver",!0,a.id)};
  g.h.ti=function(a){B3(this,"rollOver",!1,a.id)};
  g.h.ES=function(a){a&&a.id&&(this.A[a.id].B=!0,A3(this,a.id),a3(this.gb,a.o),this.Yo(a,"close"),B3(this,"closed",!0,a.id))};
  g.h.gn=function(){return!!this.o&&this.o.isAvailable()};
  g.h.tC=function(){this.gn();return!!this.o&&this.o.C};
  g.h.hv=function(a,b,c){b=void 0===b?!1:b;this.gn();this.o&&(a?c?o3(this.o,c,b):o3(this.o,"YOUTUBE_DRAWER_AUTO_OPEN",b):p3(this.o))};
  g.h.gv=function(a,b){this.player.V(a?"cardsteasershow":"cardsteaserhide",b)};
  g.h.X=function(){g.Y(this.player).F.unsubscribe("vast_info_card_add",this.SE,this);g.Bq(this.player.getRootNode(),"ytp-iv-drawer-open");for(var a=this.N,b=0,c=a.length;b<c;b++)g.rG(a[b]);this.N.length=0;g.DU.prototype.X.call(this)};var D3={},eBa="ontouchstart"in window.document;g.tF(window.document,"blur",E3,!0);g.tF(window.document,"change",E3,!0);g.tF(window.document,"click",E3);g.tF(window.document,"focus",E3,!0);g.tF(window.document,"mouseover",E3);g.tF(window.document,"mouseout",E3);g.tF(window.document,"mousedown",E3);g.tF(window.document,"keydown",E3);g.tF(window.document,"keyup",E3);g.tF(window.document,"keypress",E3);g.tF(window.document,"cut",E3);g.tF(window.document,"paste",E3);
  eBa&&(g.tF(window.document,"touchstart",E3),g.tF(window.document,"touchend",E3),g.tF(window.document,"touchcancel",E3));g.h=F3.prototype;g.h.Fe=function(a){return g.ie(a,Z(this))};
  g.h.unregister=function(){g.WF(this.J);this.J.length=0;g.WN(this.H);this.H.length=0};
  g.h.init=g.A;g.h.dispose=g.A;g.h.addBehavior=function(a,b,c){c=Z(this,c);var d=(0,g.B)(b,this);a in D3||(D3[a]=new g.hD);D3[a].subscribe(c,d);this.G[b]=d};
  g.h.removeBehavior=function(a,b,c){if(a in D3){var d=D3[a];d.unsubscribe(Z(this,c),this.G[b]);0>=d.Cc()&&(d.dispose(),delete D3[a])}delete this.G[b]};
  g.h.bk=function(a,b,c){var d=this.Da(a,b);if(d&&(d=g.y(d))){var e=g.Xa(arguments,2);g.Ya(e,0,0,a);d.apply(null,e)}};
  g.h.Da=function(a,b){return g.cF(a,b)};
  g.h.setData=function(a,b,c){g.bF(a,b,c)};g.C(I3,F3);g.va(I3);g.h=I3.prototype;g.h.register=function(){this.addBehavior("click",this.JH);this.addBehavior("keydown",this.OB);this.addBehavior("keypress",this.PB);G3(this,"page-scroll",this.RL)};
  g.h.unregister=function(){this.removeBehavior("click",this.JH);this.removeBehavior("keydown",this.OB);this.removeBehavior("keypress",this.PB);O3(this);this.A={};I3.ea.unregister.call(this)};
  g.h.JH=function(a){a&&!a.disabled&&(this.toggle(a),this.click(a))};
  g.h.OB=function(a,b,c){if(!(c.altKey||c.ctrlKey||c.shiftKey||c.metaKey)&&(b=N3(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=p1(b,d);if(e){e=e.tagName.toLowerCase();if("ul"==e)var f=this.SN;else"table"==e&&(f=this.RN);f&&jAa(this,a,b,c,(0,g.B)(f,this))}}};
  g.h.RL=function(){var a=this.A;if(0!=g.Nb(a))for(var b in a){var c=a[b],d=g.ie(c.activeButtonNode||c.parentNode,Z(this));if(void 0==d||void 0==c)break;M3(this,d,c,!0)}};
  g.h.PB=function(a,b,c){c.altKey||c.ctrlKey||c.shiftKey||c.metaKey||(a=N3(this,a),H1(a)&&c.preventDefault())};
  g.h.RN=function(a,b,c){var d=J3(this,b);if(d){b=yxa("table",b);var e=yxa("tr",b);e=g.Ad(window.document,"td",null,e).length;b=g.Ad(window.document,"td",null,b);d=lAa(d,b,e,c);-1!=d&&(kAa(this,a,b[d]),c.preventDefault())}};
  g.h.SN=function(a,b,c){if(40==c.keyCode||38==c.keyCode){var d=J3(this,b);d&&(b=(0,g.Ud)(g.Ad(window.document,"li",null,b),H1),d=lAa(d,b,1,c),kAa(this,a,b[d]),c.preventDefault())}};
  g.h.LH=function(a){if(a){var b=N3(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.Da(a,"button-has-sibling-menu")?c=a.parentNode:c=mAa(this,a);c.appendChild(b);b.style.minWidth=a.offsetWidth-2+"px";var d=L3(this,a);d&&c.appendChild(d);(c=!!this.Da(a,"button-menu-fixed"))&&(this.A[D1(a).toString()]=b);M3(this,a,b,c);g.ZF("yt-uix-button-menu-before-show",a,b);I1(b);
  d&&I1(d);this.bk(a,"button-menu-action",!0);g.T(a,Z(this,"active"));b=(0,g.B)(this.KH,this,a,!1);d=(0,g.B)(this.KH,this,a,!0);c=(0,g.B)(this.WX,this,a,void 0);this.o&&N3(this,this.o)==N3(this,a)||O3(this);g.YF("yt-uix-button-menu-show",a);g.uF(this.B);this.B=[g.tF(window.document,"click",d),g.tF(window.document,"contextmenu",b),g.tF(window,"resize",c)];this.o=a}}};
  g.h.WX=function(a,b){var c=N3(this,a);if(c){b&&(b instanceof g.$c?g.gd(c,g.ad(b)):g.be(c,b));var d=!!this.Da(a,"button-menu-fixed");M3(this,a,c,d)}};
  g.h.Rc=function(){return g.K(Z(this,"content"),void 0)};
  g.h.KH=function(a,b,c){c=g.vF(c);var d=g.ie(c,Z(this));if(d){d=N3(this,d);var e=N3(this,a);if(d==e)return}d=g.ie(c,Z(this,"menu"));e=d==N3(this,a);var f=g.zq(c,Z(this,"menu-item")),k=g.zq(c,Z(this,"menu-close"));if(!d||e&&(f||k))K3(this,a),d&&b&&this.Da(a,"button-menu-indicate-selected")&&((a=g.K(Z(this,"content"),a))&&g.be(a,q1(c)),nAa(this,d,c))};
  g.h.isToggled=function(a){return g.zq(a,Z(this,"toggled"))};
  g.h.toggle=function(a){if(this.Da(a,"button-toggle")){var b=g.ie(a,Z(this,"group")),c=Z(this,"toggled"),d=g.zq(a,c);if(b&&this.Da(b,"button-toggle-group")){var e=this.Da(b,"button-toggle-group");b=g.Bd(Z(this),b);(0,g.D)(b,function(b){b!=a||"optional"==e&&d?(g.Bq(b,c),b.removeAttribute("aria-pressed")):(g.T(a,c),b.setAttribute("aria-pressed","true"))})}else d?a.removeAttribute("aria-pressed"):a.setAttribute("aria-pressed","true"),g.Eq(a,c)}};
  g.h.click=function(a){if(N3(this,a)){var b=N3(this,a);if(b){var c=g.ie(b.activeButtonNode||b.parentNode,Z(this));c&&c!=a?(K3(this,c),g.aE((0,g.B)(this.LH,this,a),1)):H1(b)?K3(this,a):this.LH(a)}a.focus()}this.bk(a,"button-action")};g.C(P3,F3);g.h=P3.prototype;g.h.Fe=function(a){var b=F3.prototype.Fe.call(this,a);return b?b:a};
  g.h.register=function(){G3(this,"yt-uix-kbd-nav-move-out-done",this.hide)};
  g.h.dispose=function(){Q3(this);P3.ea.dispose.call(this)};
  g.h.Da=function(a,b){var c=P3.ea.Da.call(this,a,b);return c?c:(c=P3.ea.Da.call(this,a,"card-config"))&&(c=g.y(c))&&c[b]?c[b]:null};
  g.h.show=function(a){var b=this.Fe(a);if(b){g.T(b,Z(this,"active"));var c=oAa(this,a,b);if(c){c.cardTargetNode=a;c.cardRootNode=b;pAa(this,a,c);var d=Z(this,"card-visible"),e=this.Da(a,"card-delegate-show")&&this.Da(b,"card-action");this.bk(b,"card-action",a);this.B=a;J1(c);g.aE((0,g.B)(function(){e||(I1(c),g.YF("yt-uix-card-show",b,a,c));qAa(c);g.T(c,d);g.YF("yt-uix-kbd-nav-move-in-to",c)},this),10)}}};
  g.h.hide=function(a){if(a=this.Fe(a)){var b=g.zd(Z(this,"card")+D1(a));b&&(g.Bq(a,Z(this,"active")),g.Bq(b,Z(this,"card-visible")),J1(b),this.B=null,b.cardTargetNode=null,b.cardRootNode=null,b.cardMask&&(g.Td(b.cardMask),b.cardMask=null))}};
  g.h.UX=function(a,b){var c=this.Fe(a);if(c){if(b){var d=this.Kc(c);if(!d)return;b instanceof g.$c?g.gd(d,g.ad(b)):g.be(d,b)}g.zq(c,Z(this,"active"))&&(c=oAa(this,a,c),pAa(this,a,c),I1(c),qAa(c))}};
  g.h.isActive=function(a){return(a=this.Fe(a))?g.zq(a,Z(this,"active")):!1};
  g.h.Kc=function(a){var b=a.cardContentNode;if(!b){var c=Z(this,"content"),d=Z(this,"card-content");(b=(b=this.Da(a,"card-id"))?g.zd(b):g.K(c,a))||(b=window.document.createElement("div"));var e=b;g.Bq(e,c);g.T(e,d);a.cardContentNode=b}return b};var S3;g.C(R3,F3);g.va(R3);g.h=R3.prototype;g.h.register=function(){this.addBehavior("keydown",this.aB);G3(this,"yt-uix-kbd-nav-move-in",this.ID);G3(this,"yt-uix-kbd-nav-move-in-to",this.HR);G3(this,"yt-uix-kbd-move-next",this.JD);G3(this,"yt-uix-kbd-nav-move-to",this.kp)};
  g.h.unregister=function(){this.removeBehavior("keydown",this.aB);g.uF(S3)};
  g.h.aB=function(a,b,c){var d=c.keyCode;if(a=g.ie(a,Z(this)))switch(d){case 13:case 32:this.ID(a);break;case 27:c.preventDefault();c.stopImmediatePropagation();a:{for(c=t1(a,"kbdNavMoveOut");!c;){c=g.ie(a.parentElement,Z(this));if(!c)break a;c=t1(c,"kbdNavMoveOut")}c=g.zd(c);this.kp(c);g.YF("yt-uix-kbd-nav-move-out-done",c)}break;case 40:case 38:if((b=c.target)&&g.zq(a,Z(this,"list")))switch(d){case 40:this.JD(b,a);break;case 38:d=window.document.activeElement==a,a=tAa(a),b=a.indexOf(b),0>b&&!d||(b=
  d?a.length-1:(a.length+b-1)%a.length,a[b].focus(),sAa(this,a[b]))}c.preventDefault()}};
  g.h.ID=function(a){var b=t1(a,"kbdNavMoveIn");b=g.zd(b);rAa(this,a,b);this.kp(b)};
  g.h.HR=function(a){rAa(this,g.je(),a);this.kp(a)};
  g.h.kp=function(a){if(a)if(g.fe(a))a.focus();else{var b=p1(a,function(a){return g.Aa(a)&&1==a.nodeType?g.fe(a):!1});
  b?b.focus():(a.setAttribute("tabindex","-1"),a.focus())}};
  g.h.JD=function(a,b){var c=window.document.activeElement==b,d=tAa(b),e=d.indexOf(a);0>e&&!c||(c=c?0:(e+1)%d.length,d[c].focus(),sAa(this,d[c]))};g.C(T3,F3);g.va(T3);g.h=T3.prototype;g.h.register=function(){this.addBehavior("click",this.MH);this.addBehavior("mouseenter",this.ML);G3(this,"page-scroll",this.aM);G3(this,"yt-uix-kbd-nav-move-out-done",function(a){a=this.Fe(a);X3(this,a)});
  this.C=new g.hD};
  g.h.unregister=function(){this.removeBehavior("click",this.MH);this.A=this.o=null;g.uF(fxa(g.Pb(this.B)));this.B={};g.Hb(this.F,function(a){g.Td(a)},this);
  this.F={};g.kf(this.C);this.C=null;T3.ea.unregister.call(this)};
  g.h.MH=function(a,b,c){a&&(b=$3(this,a),!b.disabled&&E1(c.target,b)&&wAa(this,a))};
  g.h.ML=function(a,b,c){a&&g.zq(a,Z(this,"hover"))&&(b=$3(this,a),E1(c.target,b)&&wAa(this,a,!0))};
  g.h.aM=function(){this.o&&this.A&&uAa(this,this.A,this.o)};
  g.h.NH=function(a){if(a){var b=Z3(this,a);if(b){g.ZF("yt-uix-menu-before-show",a,b);if(this.o)E1(a,this.o)||X3(this,this.A);else{this.A=a;this.o=b;g.zq(a,Z(this,"sibling-content"))||(g.Td(b),window.document.body.appendChild(b));var c=$3(this,a).offsetWidth-2;b.style.minWidth=c+"px"}(c=V3(this,a))&&b.parentNode&&b.parentNode.insertBefore(c,b.nextSibling);g.Bq(b,Z(this,"content-hidden"));uAa(this,a,b);g.Aq($3(this,a),[Z(this,"trigger-selected"),"yt-uix-button-toggled"]);g.YF("yt-uix-menu-show",a);zAa(b);
  xAa(this,a);g.YF("yt-uix-kbd-nav-move-in-to",b);var d=(0,g.B)(this.UY,this,a),e=(0,g.B)(this.PN,this,a);c=g.Ca(a).toString();this.B[c]=[g.tF(b,"click",e),g.tF(window.document,"click",d)];g.zq(a,Z(this,"indicate-selected"))&&(d=(0,g.B)(this.QN,this,a),this.B[c].push(g.tF(b,"click",d)));g.zq(a,Z(this,"hover"))&&(a=(0,g.B)(this.TY,this,a),this.B[c].push(g.tF(window.document,"mousemove",a)))}}};
  g.h.TY=function(a,b){var c=g.vF(b);if(c){var d=$3(this,a);E1(c,d)||AAa(this,c)||Y3(this,a)}};
  g.h.UY=function(a,b){var c=g.vF(b);if(c){if(AAa(this,c)){var d=g.ie(c,Z(this,"content")),e=g.he(c,"LI");e&&d&&g.Zd(d,e)&&g.ZF("yt-uix-menu-item-clicked",c);c=g.ie(c,Z(this,"close-on-select"));if(!c)return;d=U3(c)}X3(this,d||a)}};
  g.h.PN=function(a,b){var c=g.vF(b);c&&yAa(this,a,c)};
  g.h.QN=function(a,b){var c=g.vF(b);if(c){var d=$3(this,a);if(d&&(c=g.he(c,"LI")))if(c=q1(c).trim(),d.hasChildNodes()){var e=I3.getInstance();(d=g.K(Z(e,"content"),d))&&g.be(d,c)}else g.be(d,c)}};g.C(a4,P3);g.va(a4);g.h=a4.prototype;g.h.register=function(){a4.ea.register.call(this);this.addBehavior("click",this.Lz,"target");this.addBehavior("click",this.Kz,"close")};
  g.h.unregister=function(){a4.ea.unregister.call(this);this.removeBehavior("click",this.Lz,"target");this.removeBehavior("click",this.Kz,"close");for(var a in this.o)g.uF(this.o[a]);this.o={};for(a in this.A)g.uF(this.A[a]);this.A={}};
  g.h.Lz=function(a,b,c){c.preventDefault();b=g.he(c.target,"button");if(!b||!b.disabled){b=this.Da(a,"card-target");var d;b?d=g.v(b)?window.document.getElementById(b):b:d=a;a=d;d=this.Fe(a);this.Da(d,"disabled")||(g.zq(d,Z(this,"active"))?(this.hide(a),g.Bq(d,Z(this,"active"))):(this.show(a),g.T(d,Z(this,"active"))))}};
  g.h.show=function(a){a4.ea.show.call(this,a);var b=this.Fe(a),c=g.Ca(a).toString();if(!g.cF(b,"click-outside-persists")){if(this.o[c])return;b=g.tF(window.document,"click",(0,g.B)(this.Mz,this,a));var d=g.tF(window,"blur",(0,g.B)(this.Mz,this,a));this.o[c]=[b,d]}a=g.tF(window,"resize",(0,g.B)(this.UX,this,a,void 0));this.A[c]=a};
  g.h.hide=function(a){a4.ea.hide.call(this,a);a=g.Ca(a).toString();var b=this.o[a];b&&(g.uF(b),this.o[a]=null);if(b=this.A[a])g.uF(b),delete this.A[a]};
  g.h.Mz=function(a,b){var c="yt-uix"+(this.D?"-"+this.D:"")+"-card",d=null;b.target&&(d=g.ie(b.target,c)||g.ie(U3(b.target),c));(d=d||g.ie(window.document.activeElement,c)||g.ie(U3(window.document.activeElement),c))||this.hide(a)};
  g.h.Kz=function(a){(a=g.ie(a,Z(this,"card")))&&(a=a.cardTargetNode)&&this.hide(a)};g.C(b4,P3);g.va(b4);g.h=b4.prototype;g.h.register=function(){this.addBehavior("mouseenter",this.ED,"target");this.addBehavior("mouseleave",this.GD,"target");this.addBehavior("mouseenter",this.FD,"card");this.addBehavior("mouseleave",this.HD,"card")};
  g.h.unregister=function(){this.removeBehavior("mouseenter",this.ED,"target");this.removeBehavior("mouseleave",this.GD,"target");this.removeBehavior("mouseenter",this.FD,"card");this.removeBehavior("mouseleave",this.HD,"card")};
  g.h.ED=function(a){if(o4!=a){o4&&(this.hide(o4),o4=null);var b=(0,g.B)(this.show,this,a),c=(0,window.parseInt)(this.Da(a,"delay-show"),10);b=g.aE(b,-1<c?c:200);this.setData(a,"card-timer",b.toString());o4=a;a.alt&&(this.setData(a,"card-alt",a.alt),a.alt="");a.title&&(this.setData(a,"card-title",a.title),a.title="")}};
  g.h.GD=function(a){var b=(0,window.parseInt)(this.Da(a,"card-timer"),10);g.cE(b);this.Fe(a).isCardHidable=!0;b=(0,window.parseInt)(this.Da(a,"delay-hide"),10);b=-1<b?b:200;g.aE((0,g.B)(this.tM,this,a),b);if(b=this.Da(a,"card-alt"))a.alt=b;if(b=this.Da(a,"card-title"))a.title=b};
  g.h.tM=function(a){this.Fe(a).isCardHidable&&(this.hide(a),o4=null)};
  g.h.FD=function(a){a&&(a.cardRootNode.isCardHidable=!1)};
  g.h.HD=function(a){a&&this.hide(a.cardTargetNode)};
  var o4=null;var DAa={LOADING:"loading",nI:"content",h6:"working"};g.h=c4.prototype;
  g.h.show=function(){if(!this.la()){this.G=window.document.activeElement;if(!this.P){this.A||(this.A=g.zd("yt-dialog-bg"),this.A||(this.A=g.Nd("div"),this.A.id="yt-dialog-bg",this.A.className="yt-dialog-bg",window.document.body.appendChild(this.A)));var a=window,b=a.document;var c=0;if(b){c=b.body;var d=b.documentElement;if(d&&c)if(a=g.Fd(a).height,g.Ed(b)&&d.scrollHeight)c=d.scrollHeight!=a?d.scrollHeight:d.offsetHeight;else{b=d.scrollHeight;var 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.A.style.height=c+"px";I1(this.A)}this.hB();c=FAa(this);GAa(c);this.D=g.tF(window.document,"keydown",(0,g.B)(this.wN,this));c=this.o;d=g.VF("player-added",this.hB,this);g.bF(c,"player-ready-pubsub-key",d);this.Y&&(this.F=g.tF(window.document,"click",(0,g.B)(this.FW,this)));I1(this.o);this.B.setAttribute("tabindex","0");IAa(this);this.J||g.T(window.document.body,"yt-dialog-active");O3(I3.getInstance());Q3(a4.getInstance());Q3(b4.getInstance());g.YF("yt-ui-dialog-show-complete",
  this)}};
  g.h.hB=function(){if(!this.aa){var a=this.o;g.U(window.document.body,"hide-players",!0);a&&g.U(a,"preserve-players",!0)}};
  g.h.BS=function(a){a=a.currentTarget;a.disabled||(a=g.cF(a,"action")||"",this.dismiss(a))};
  g.h.dismiss=function(a){if(!this.la()){this.C.V("pre-all");this.C.V("pre-"+a);J1(this.o);Q3(a4.getInstance());Q3(b4.getInstance());this.B.setAttribute("tabindex","-1");EAa()||(J1(this.A),this.J||g.Bq(window.document.body,"yt-dialog-active"),zxa(),HAa());this.D&&(g.uF(this.D),this.D=null);this.F&&(g.uF(this.F),this.F=null);var b=this.o;if(b){var c=g.cF(b,"player-ready-pubsub-key");c&&(g.WF(c),C1(b,"player-ready-pubsub-key"))}this.C.V("post-all");g.YF("yt-ui-dialog-hide-complete",this);"cancel"==a&&
  g.YF("yt-ui-dialog-cancelled",this);this.C&&this.C.V("post-"+a);this.G&&this.G.focus()}};
  g.h.setTitle=function(a){g.be(g.K("yt-dialog-title",this.o),a)};
  g.h.wN=function(a){g.aE((0,g.B)(function(){this.N||27!=a.keyCode||this.dismiss("cancel")},this),0);
  9==a.keyCode&&a.shiftKey&&g.zq(window.document.activeElement,"yt-dialog-fg")&&a.preventDefault()};
  g.h.FW=function(a){"yt-dialog-base"==a.target.className&&this.dismiss("cancel")};
  g.h.la=function(){return this.L};
  g.h.dispose=function(){H1(this.o)&&this.dismiss("dispose");g.uF(this.H);this.H.length=0;g.aE((0,g.B)(function(){this.G=null},this),0);
  this.K=this.B=null;this.C.dispose();this.C=null;this.L=!0};
  g.h.eL=function(a){a.stopPropagation();IAa(this)};
  g.ua("yt.ui.Dialog",c4,void 0);g.C(d4,F3);g.va(d4);g.h=d4.prototype;g.h.register=function(){this.addBehavior("click",this.Yw,"target");this.addBehavior("click",this.hide,"close");KAa(this)};
  g.h.unregister=function(){d4.ea.unregister.call(this);this.removeBehavior("click",this.Yw,"target");this.removeBehavior("click",this.hide,"close");this.C&&(g.WF(this.C),this.C=null);this.A&&(g.uF(this.A),this.A=null)};
  g.h.Yw=function(a){if(!this.o||!H1(this.o.o)){var b=this.Fe(a);a=MAa(b,a);b||(b=a?a.overlayParentNode:null);if(b&&a){var c=!!this.Da(b,"disable-shortcuts")||!1,d=!!this.Da(b,"disable-outside-click-dismiss")||!1;this.o=new c4(a,c);this.B=b;var e=g.K("yt-dialog-fg",a);if(e){var f=this.Da(b,"overlay-class")||"",k=this.Da(b,"overlay-style")||"default",l=this.Da(b,"overlay-shape")||"default";f=f?f.split(" "):[];f.push(Z(this,k));f.push(Z(this,l));g.Aq(e,f)}this.o.show();g.YF("yt-uix-kbd-nav-move-to",e||
  a);KAa(this);c||d||(c=(0,g.B)(function(a){g.zq(a.target,"yt-dialog-base")&&LAa(this)},this),a=g.K("yt-dialog-base",a),this.A=g.tF(a,"click",c));
  this.bk(b,"overlay-shown");g.YF("yt-uix-overlay-shown",b)}}};
  g.h.Kc=function(a){return g.K("yt-dialog-content",a.overlayContentNode||a)};
  g.h.hide=function(a){a&&a.disabled||g.YF("yt-uix-overlay-hide")};
  g.h.show=function(a){this.Yw(a)};g.C(e4,F3);g.va(e4);g.h=e4.prototype;g.h.register=function(){this.addBehavior("mouseover",this.zq);this.addBehavior("mouseout",this.zj);this.addBehavior("focus",this.wA);this.addBehavior("blur",this.vz);this.addBehavior("click",this.zj);this.addBehavior("touchstart",this.yG);this.addBehavior("touchend",this.zr);this.addBehavior("touchcancel",this.zr)};
  g.h.unregister=function(){this.removeBehavior("mouseover",this.zq);this.removeBehavior("mouseout",this.zj);this.removeBehavior("focus",this.wA);this.removeBehavior("blur",this.vz);this.removeBehavior("click",this.zj);this.removeBehavior("touchstart",this.yG);this.removeBehavior("touchend",this.zr);this.removeBehavior("touchcancel",this.zr);this.dispose();e4.ea.unregister.call(this)};
  g.h.dispose=function(){for(var a in this.A)this.zj(this.A[a]);this.A={}};
  g.h.zq=function(a){if(!(this.o&&1E3>(0,g.H)()-this.o)){var b=(0,window.parseInt)(this.Da(a,"tooltip-hide-timer"),10);b&&(C1(a,"tooltip-hide-timer"),g.cE(b));b=(0,g.B)(function(){SAa(this,a);C1(a,"tooltip-show-timer")},this);
  var c=(0,window.parseInt)(this.Da(a,"tooltip-show-delay"),10)||0;b=g.aE(b,c);this.setData(a,"tooltip-show-timer",b.toString());a.title&&(this.setData(a,"tooltip-text",PAa(this,a)),a.title="");b=g.Ca(a).toString();this.A[b]=a}};
  g.h.zj=function(a){var b=(0,window.parseInt)(this.Da(a,"tooltip-show-timer"),10);b&&(g.cE(b),C1(a,"tooltip-show-timer"));b=(0,g.B)(function(){if(a){var b=g.zd(f4(this,a));b&&(TAa(b),g.Td(b),C1(a,"content-id"));b=g.zd(f4(this,a,"arialabel"));g.Td(b)}C1(a,"tooltip-hide-timer")},this);
  b=g.aE(b,50);this.setData(a,"tooltip-hide-timer",b.toString());if(b=this.Da(a,"tooltip-text"))a.title=b;b=g.Ca(a).toString();delete this.A[b]};
  g.h.wA=function(a,b){this.o=0;this.zq(a,b)};
  g.h.vz=function(a){this.o=0;this.zj(a)};
  g.h.yG=function(a,b,c){c.changedTouches&&(this.o=0,(a=C3(b,Z(this),c.changedTouches[0].target))&&this.zq(a,b))};
  g.h.zr=function(a,b,c){c.changedTouches&&(this.o=(0,g.H)(),(a=C3(b,Z(this),c.changedTouches[0].target))&&this.zj(a))};var p4=window.yt&&window.yt.uix&&window.yt.uix.widgets_||{};g.ua("yt.uix.widgets_",p4,void 0);g.C(g4,g.NN);g.C(h4,g.NN);g.C(UAa,g.NN);g.C(i4,g.NN);
  var fBa=new g.ON("subscription-subscribe",h4),gBa=new g.ON("subscription-subscribe-loading",g4),hBa=new g.ON("subscription-subscribe-loaded",g4),iBa=new g.ON("subscription-subscribe-success",UAa),jBa=new g.ON("subscription-unsubscribe",i4),kBa=new g.ON("subscription-unsubscirbe-loading",g4),lBa=new g.ON("subscription-unsubscribe-loaded",g4),mBa=new g.ON("subscription-unsubscribe-success",g4),nBa=new g.ON("subscription-enable-ypc",g4),oBa=new g.ON("subscription-disable-ypc",g4);var k4={},j4=[];g.C(l4,F3);g.va(l4);l4.prototype.register=function(){this.addBehavior("click",this.Vx);H3(this,gBa,this.rE);H3(this,hBa,this.OH);H3(this,iBa,this.NV);H3(this,kBa,this.rE);H3(this,lBa,this.OH);H3(this,mBa,this.aW);H3(this,nBa,this.eT);H3(this,oBa,this.YS)};
  l4.prototype.unregister=function(){this.removeBehavior("click",this.Vx);l4.ea.unregister.call(this)};
  l4.prototype.isSubscribed=function(a){return!!this.Da(a,"is-subscribed")};
  var n4={Yx:"hover-enabled",dI:"yt-uix-button-subscribe",eI:"yt-uix-button-subscribed",YZ:"ypc-enabled",lI:"yt-uix-button-subscription-container",mI:"yt-subscription-button-disabled-mask-container"},m4={p_:"channel-external-id",pI:"subscriber-count-show-when-subscribed",qI:"subscriber-count-tooltip",rI:"subscriber-count-title",f1:"href",p1:"insecure",ty:"is-subscribed",g3:"parent-url",i4:"clicktracking",EJ:"show-unsub-confirm-dialog",m4:"show-unsub-confirm-time-frame",JJ:"style-type",Ry:"subscribed-timestamp",
  Sy:"subscription-id",O4:"target",dK:"ypc-enabled"};g.h=l4.prototype;
  g.h.Vx=function(a){var b=this.Da(a,"href"),c=this.Da(a,"insecure");if(b)a=this.Da(a,"target")||"_self",window.open(b,a);else if(!c)if(g.pV()){b=this.Da(a,"channel-external-id");c=this.Da(a,"clicktracking");var d=XAa(this,a),e=this.Da(a,"parent-url");if(this.Da(a,"is-subscribed")){var f=this.Da(a,"subscription-id"),k=new i4(b,f,d,a,c,e);aBa(this,a)?WAa(a,b).then(function(){g.QN(jBa,k)}):g.QN(jBa,k)}else g.QN(fBa,new h4(b,d,c,e))}else $Aa(this,a)};
  g.h.rE=function(a){this.Xj(a.o,this.TF,!0)};
  g.h.OH=function(a){this.Xj(a.o,this.TF,!1)};
  g.h.NV=function(a){this.Xj(a.o,this.ZF,!0,a.A)};
  g.h.aW=function(a){this.Xj(a.o,this.ZF,!1)};
  g.h.eT=function(a){this.Xj(a.o,this.WK)};
  g.h.YS=function(a){this.Xj(a.o,this.OK)};
  g.h.ZF=function(a,b,c){b?(this.setData(a,m4.ty,"true"),c&&this.setData(a,m4.Sy,c),this.Da(a,m4.EJ)&&(b=new u1,this.setData(a,m4.Ry,(b.getTime()/1E3).toString()))):(C1(a,m4.ty),C1(a,m4.Ry),C1(a,m4.Sy));YAa(this,a)};
  g.h.TF=function(a,b){var c=g.ie(a,n4.lI);g.U(c,n4.mI,b);a.setAttribute("aria-busy",b?"true":"false");a.disabled=b};
  g.h.WK=function(a){var b=!!this.Da(a,"ypc-item-type"),c=!!this.Da(a,"ypc-item-id");!this.Da(a,"ypc-enabled")&&b&&c&&(g.T(a,"ypc-enabled"),this.setData(a,m4.dK,"true"))};
  g.h.OK=function(a){this.Da(a,"ypc-enabled")&&(g.Bq(a,"ypc-enabled"),C1(a,"ypc-enabled"))};
  g.h.rK=function(a,b,c){var d=g.Xa(arguments,2);(0,g.D)(a,function(a){b.apply(this,g.Ua(a,d))},this)};
  g.h.Xj=function(a,b,c){var d=ZAa(this,a);d=g.Ua([d],g.Xa(arguments,1));this.rK.apply(this,d)};g.AX.annotations_module=x3;g.AX.creatorendscreen=d2;var q4=l4.getInstance(),r4=Z(q4);r4 in p4||(q4.register(),G3(q4,"yt-uix-init-"+r4,q4.init),G3(q4,"yt-uix-dispose-"+r4,q4.dispose),p4[r4]=q4);})(_yt_player);
  