(function(g){var window=this;'use strict';var qwV=function(D){D.mutedAutoplay=!1;D.endSeconds=NaN;D.limitedPlaybackDurationInSeconds=NaN;g.hc(D)},Ckv=function(){return{K:"svg",
Y:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},X:[{K:"path",Rt:!0,L:"ytp-svg-fill",Y:{d:"M 16.68,.99 C 13.55,1.03 7.02,1.16 4.99,1.68 c -1.49,.4 -2.59,1.6 -2.99,3 -0.69,2.7 -0.68,8.31 -0.68,8.31 0,0 -0.01,5.61 .68,8.31 .39,1.5 1.59,2.6 2.99,3 2.69,.7 13.40,.68 13.40,.68 0,0 10.70,.01 13.40,-0.68 1.5,-0.4 2.59,-1.6 2.99,-3 .69,-2.7 .68,-8.31 .68,-8.31 0,0 .11,-5.61 -0.68,-8.31 -0.4,-1.5 -1.59,-2.6 -2.99,-3 C 29.11,.98 18.40,.99 18.40,.99 c 0,0 -0.67,-0.01 -1.71,0 z m 72.21,.90 0,21.28 2.78,0 .31,-1.37 .09,0 c .3,.5 .71,.88 1.21,1.18 .5,.3 1.08,.40 1.68,.40 1.1,0 1.99,-0.49 2.49,-1.59 .5,-1.1 .81,-2.70 .81,-4.90 l 0,-2.40 c 0,-1.6 -0.11,-2.90 -0.31,-3.90 -0.2,-0.89 -0.5,-1.59 -1,-2.09 -0.5,-0.4 -1.10,-0.59 -1.90,-0.59 -0.59,0 -1.18,.19 -1.68,.49 -0.49,.3 -1.01,.80 -1.21,1.40 l 0,-7.90 -3.28,0 z m -49.99,.78 3.90,13.90 .18,6.71 3.31,0 0,-6.71 3.87,-13.90 -3.37,0 -1.40,6.31 c -0.4,1.89 -0.71,3.19 -0.81,3.99 l -0.09,0 c -0.2,-1.1 -0.51,-2.4 -0.81,-3.99 l -1.37,-6.31 -3.40,0 z m 29.59,0 0,2.71 3.40,0 0,17.90 3.28,0 0,-17.90 3.40,0 c 0,0 .00,-2.71 -0.09,-2.71 l -9.99,0 z m -53.49,5.12 8.90,5.18 -8.90,5.09 0,-10.28 z m 89.40,.09 c -1.7,0 -2.89,.59 -3.59,1.59 -0.69,.99 -0.99,2.60 -0.99,4.90 l 0,2.59 c 0,2.2 .30,3.90 .99,4.90 .7,1.1 1.8,1.59 3.5,1.59 1.4,0 2.38,-0.3 3.18,-1 .7,-0.7 1.09,-1.69 1.09,-3.09 l 0,-0.5 -2.90,-0.21 c 0,1 -0.08,1.6 -0.28,2 -0.1,.4 -0.5,.62 -1,.62 -0.3,0 -0.61,-0.11 -0.81,-0.31 -0.2,-0.3 -0.30,-0.59 -0.40,-1.09 -0.1,-0.5 -0.09,-1.21 -0.09,-2.21 l 0,-0.78 5.71,-0.09 0,-2.62 c 0,-1.6 -0.10,-2.78 -0.40,-3.68 -0.2,-0.89 -0.71,-1.59 -1.31,-1.99 -0.7,-0.4 -1.48,-0.59 -2.68,-0.59 z m -50.49,.09 c -1.09,0 -2.01,.18 -2.71,.68 -0.7,.4 -1.2,1.12 -1.49,2.12 -0.3,1 -0.5,2.27 -0.5,3.87 l 0,2.21 c 0,1.5 .10,2.78 .40,3.78 .2,.9 .70,1.62 1.40,2.12 .69,.5 1.71,.68 2.81,.78 1.19,0 2.08,-0.28 2.78,-0.68 .69,-0.4 1.09,-1.09 1.49,-2.09 .39,-1 .49,-2.30 .49,-3.90 l 0,-2.21 c 0,-1.6 -0.2,-2.87 -0.49,-3.87 -0.3,-0.89 -0.8,-1.62 -1.49,-2.12 -0.7,-0.5 -1.58,-0.68 -2.68,-0.68 z m 12.18,.09 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.18,-0.70 -0.18,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .18,2.39 .68,3.09 .49,.7 1.21,1 2.21,1 1.4,0 2.48,-0.69 3.18,-2.09 l .09,0 .31,1.78 2.59,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 17.31,0 0,11.90 c -0.1,.3 -0.29,.48 -0.59,.68 -0.2,.2 -0.51,.31 -0.81,.31 -0.3,0 -0.58,-0.10 -0.68,-0.40 -0.1,-0.3 -0.21,-0.70 -0.21,-1.40 l 0,-10.99 -3.40,0 0,11.21 c 0,1.4 .21,2.39 .71,3.09 .5,.7 1.18,1 2.18,1 1.39,0 2.51,-0.69 3.21,-2.09 l .09,0 .28,1.78 2.62,0 0,-14.99 c 0,0 -3.40,.00 -3.40,-0.09 z m 20.90,2.09 c .4,0 .58,.11 .78,.31 .2,.3 .30,.59 .40,1.09 .1,.5 .09,1.21 .09,2.21 l 0,1.09 -2.5,0 0,-1.09 c 0,-1 -0.00,-1.71 .09,-2.21 0,-0.4 .11,-0.8 .31,-1 .2,-0.3 .51,-0.40 .81,-0.40 z m -50.49,.12 c .5,0 .8,.18 1,.68 .19,.5 .28,1.30 .28,2.40 l 0,4.68 c 0,1.1 -0.08,1.90 -0.28,2.40 -0.2,.5 -0.5,.68 -1,.68 -0.5,0 -0.79,-0.18 -0.99,-0.68 -0.2,-0.5 -0.31,-1.30 -0.31,-2.40 l 0,-4.68 c 0,-1.1 .11,-1.90 .31,-2.40 .2,-0.5 .49,-0.68 .99,-0.68 z m 39.68,.09 c .3,0 .61,.10 .81,.40 .2,.3 .27,.67 .37,1.37 .1,.6 .12,1.51 .12,2.71 l .09,1.90 c 0,1.1 .00,1.99 -0.09,2.59 -0.1,.6 -0.19,1.08 -0.49,1.28 -0.2,.3 -0.50,.40 -0.90,.40 -0.3,0 -0.51,-0.08 -0.81,-0.18 -0.2,-0.1 -0.39,-0.29 -0.59,-0.59 l 0,-8.5 c .1,-0.4 .29,-0.7 .59,-1 .3,-0.3 .60,-0.40 .90,-0.40 z"}}]}},
oc2=function(){return{K:"svg",
Y:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},X:[{K:"path",Y:{d:"M58.37 41.39H62.79V27.23C62.79 23.03 62.69 18.69 62.43 13.59H62.93L63.69 16.89L68.67 41.39H73.17L78.07 16.89L78.89 13.59H79.37C79.15 18.45 79.03 22.89 79.03 27.23V41.39H83.45V8.79H75.95L73.41 20.81C72.35 25.85 71.51 32.01 71.01 35.19H70.73C70.33 31.95 69.49 25.81 68.41 20.85L65.81 8.79H58.37V41.39Z",fill:"white"}},{K:"path",Y:{d:"M91.45 41.73C93.91 41.73 95.83 40.59 97.17 38.13H97.35L97.69 41.39H101.43V17.73H96.47V36.61C95.91 37.67 94.81 38.29 93.73 38.29C92.33 38.29 91.89 37.17 91.89 35.13V17.73H86.93V35.43C86.93 39.49 88.19 41.73 91.45 41.73Z",
fill:"white"}},{K:"path",Y:{d:"M110.79 41.89C115.15 41.89 117.75 39.83 117.75 35.65C117.75 31.79 115.93 30.39 111.85 27.47C109.67 25.91 108.39 25.09 108.39 22.95C108.39 21.47 109.27 20.61 110.89 20.61C112.69 20.61 113.33 21.81 113.33 25.29L117.45 25.07C117.77 19.57 115.71 17.23 110.97 17.23C106.57 17.23 104.17 19.27 104.17 23.45C104.17 27.25 105.97 28.83 108.93 31.03C111.89 33.23 113.55 34.53 113.55 36.23C113.55 37.75 112.51 38.61 111.01 38.61C109.13 38.61 108.11 36.97 108.29 34.41L104.21 34.49C103.51 39.25 105.89 41.89 110.79 41.89Z",
fill:"white"}},{K:"path",Y:{d:"M122.5 14.59C124.22 14.59 125.04 13.99 125.04 11.59C125.04 9.33 124.16 8.65 122.5 8.65C120.84 8.65 119.94 9.27 119.94 11.59C119.94 13.99 120.82 14.59 122.5 14.59ZM120.2 41.39H125V17.73H120.2V41.39Z",fill:"white"}},{K:"path",Y:{d:"M134.95 41.79C137.31 41.79 138.63 41.49 139.71 40.47C141.31 39.01 141.97 36.63 141.85 33.11L137.41 32.87C137.41 36.87 136.81 38.45 135.03 38.45C133.13 38.45 132.77 36.45 132.77 31.97V27.21C132.77 22.41 133.23 20.51 135.07 20.51C136.67 20.51 137.29 22.01 137.29 26.47L141.65 26.15C141.97 22.93 141.59 20.29 140.09 18.83C139.01 17.77 137.37 17.29 135.15 17.29C129.65 17.29 127.75 20.73 127.75 28.03V31.17C127.75 38.47 129.23 41.79 134.95 41.79Z",
fill:"white"}},{K:"path",Y:{"clip-rule":"evenodd",d:"M24.99 49C29.74 49.00 34.38 47.59 38.32 44.95C42.27 42.32 45.35 38.57 47.17 34.18C48.98 29.80 49.46 24.97 48.53 20.32C47.61 15.66 45.32 11.38 41.97 8.03C38.61 4.67 34.33 2.38 29.68 1.46C25.02 .53 20.20 1.01 15.81 2.82C11.43 4.64 7.68 7.71 5.04 11.66C2.40 15.61 1 20.25 1 25C0.99 28.15 1.61 31.27 2.82 34.18C4.03 37.09 5.79 39.74 8.02 41.97C10.25 44.19 12.89 45.96 15.81 47.17C18.72 48.37 21.84 49 24.99 49ZM24.99 12.36C27.49 12.36 29.94 13.10 32.02 14.48C34.10 15.87 35.72 17.84 36.68 20.15C37.64 22.46 37.89 25.01 37.41 27.46C36.92 29.91 35.72 32.17 33.95 33.94C32.18 35.70 29.93 36.91 27.48 37.40C25.02 37.89 22.48 37.64 20.17 36.68C17.86 35.72 15.88 34.10 14.50 32.02C13.11 29.94 12.37 27.50 12.37 25C12.37 21.65 13.70 18.44 16.07 16.07C18.43 13.70 21.64 12.37 24.99 12.36ZM24.99 10.43C22.11 10.43 19.29 11.28 16.89 12.88C14.50 14.48 12.63 16.76 11.53 19.42C10.42 22.09 10.13 25.02 10.70 27.85C11.26 30.67 12.65 33.27 14.69 35.31C16.73 37.35 19.32 38.73 22.15 39.30C24.98 39.86 27.91 39.57 30.57 38.46C33.23 37.36 35.51 35.49 37.11 33.09C38.71 30.70 39.57 27.88 39.56 25C39.56 23.08 39.19 21.19 38.46 19.42C37.72 17.65 36.65 16.04 35.30 14.69C33.94 13.34 32.34 12.27 30.57 11.53C28.80 10.80 26.90 10.43 24.99 10.43ZM32.63 24.99L20.36 32.09V17.91L32.63 24.99Z",
fill:"white","fill-rule":"evenodd"}}]}},fpM=function(D){g.p.call(this,{K:"div",
L:"ytp-related-on-error-overlay"});var Q=this;this.api=D;this.N=this.C=0;this.B=new g.gO(this);this.S=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.p({K:"h2",L:"ytp-related-title",h0:"{{title}}"});this.previous=new g.p({K:"button",OW:["ytp-button","ytp-previous"],Y:{"aria-label":"Show previous suggested videos"},X:[g.fX()]});this.j=new g.Mo(function(L){Q.suggestions.element.scrollLeft=-L});
this.T=this.scrollPosition=0;this.U=!0;this.next=new g.p({K:"button",OW:["ytp-button","ytp-next"],Y:{"aria-label":"Show more suggested videos"},X:[g.Vq()]});g.O(this,this.B);D=D.G();this.Z=D.B;g.O(this,this.title);this.title.b0(this.element);this.suggestions=new g.p({K:"div",L:"ytp-suggestions"});g.O(this,this.suggestions);this.suggestions.b0(this.element);g.O(this,this.previous);this.previous.b0(this.element);this.previous.listen("click",this.WV,this);g.O(this,this.j);for(var m={Th:0};m.Th<16;m=
{Th:m.Th},m.Th++){var P=new g.p({K:"a",L:"ytp-suggestion-link",Y:{href:"{{link}}",target:D.j,"aria-label":"{{aria_label}}"},X:[{K:"div",L:"ytp-suggestion-image",X:[{K:"div",Y:{"data-is-live":"{{is_live}}"},L:"ytp-suggestion-duration",h0:"{{duration}}"}]},{K:"div",L:"ytp-suggestion-title",Y:{title:"{{hover_title}}"},h0:"{{title}}"},{K:"div",L:"ytp-suggestion-author",h0:"{{views_or_author}}"}]});g.O(this,P);P.b0(this.suggestions.element);var W=P.Dx("ytp-suggestion-link");g.YZ(W,"transitionDelay",m.Th/
20+"s");this.B.W(W,"click",function(L){return function(u){var t=L.Th,z=Q.suggestionData[t],b=z.sessionData;g.W8(Q.api.G())&&Q.api.V("web_player_log_click_before_generating_ve_conversion_params")?(Q.api.logClick(Q.S[t].element),t=z.rT(),z={},g.MO(Q.api,z),t=g.oz(t,z),g.k_(t,Q.api,u)):g.wg(u,Q.api,Q.Z,b||void 0)&&Q.api.yW(z.videoId,b,z.playlistId)}}(m));
this.S.push(P)}g.O(this,this.next);this.next.b0(this.element);this.next.listen("click",this.Ai,this);this.B.W(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.fh().getPlayerSize());this.onVideoDataChange();this.show()},VNP=function(D,Q){if(D.api.G().V("web_player_log_click_before_generating_ve_conversion_params"))for(var m=Math.floor(-D.scrollPosition/(D.T+D.C)),P=Math.min(m+D.columns,D.suggestionData.length)-1;m<=P;m++)D.api.logVisibility(D.S[m].element,Q)},N0h=function(D){D.next.element.style.bottom=
D.N+"px";
D.previous.element.style.bottom=D.N+"px";var Q=D.scrollPosition,m=D.containerWidth-D.suggestionData.length*(D.T+D.C);g.sh(D.element,"ytp-scroll-min",Q>=0);g.sh(D.element,"ytp-scroll-max",Q<=m)},y0K=function(D){for(var Q=0;Q<D.suggestionData.length;Q++){var m=D.suggestionData[Q],P=D.S[Q],W=m.shortViewCount?m.shortViewCount:m.author,L=m.rT(),u=D.api.G();
if(g.W8(u)&&!u.V("web_player_log_click_before_generating_ve_conversion_params")){var t={};g.Iv(D.api,"addEmbedsConversionTrackingParams",[t]);L=g.oz(L,t)}P.element.style.display="";t=P.Dx("ytp-suggestion-title");g.zY.test(m.title)?t.dir="rtl":g.JyQ.test(m.title)&&(t.dir="ltr");t=P.Dx("ytp-suggestion-author");g.zY.test(W)?t.dir="rtl":g.JyQ.test(W)&&(t.dir="ltr");P.update({views_or_author:W,duration:m.isLivePlayback?"Live":m.lengthSeconds?g.ns(m.lengthSeconds):"",link:L,hover_title:m.title,title:m.title,
aria_label:m.ariaLabel||null,is_live:m.isLivePlayback});W=m.vB();P.Dx("ytp-suggestion-image").style.backgroundImage=W?"url("+W+")":"";u.V("web_player_log_click_before_generating_ve_conversion_params")&&(D.api.createServerVe(P.element,P),(m=(m=m.sessionData)&&m.itct)&&D.api.setTrackingParams(P.element,m))}for(;Q<D.S.length;Q++)D.S[Q].element.style.display="none";N0h(D)},DC=function(D){g.aY.call(this,D);
var Q=this;this.S=null;var m=D.G(),P={target:m.j},W=["ytp-small-redirect"];if(m.T)W.push("no-link");else{var L=g.R8(m);P.href=L;P["aria-label"]="Visit YouTube to search for more videos"}var u=new g.p({K:"a",OW:W,Y:P,X:[{K:"svg",Y:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},X:[{K:"path",Y:{d:"M0 0h24v24H0V0z",fill:"none"}},{K:"path",Y:{d:"M21.58 7.19c-.23-.86-.91-1.54-1.77-1.77C18.25 5 12 5 12 5s-6.25 0-7.81.42c-.86.23-1.54.91-1.77 1.77C2 8.75 2 12 2 12s0 3.25.42 4.81c.23.86.91 1.54 1.77 1.77C5.75 19 12 19 12 19s6.25 0 7.81-.42c.86-.23 1.54-.91 1.77-1.77C22 15.25 22 12 22 12s0-3.25-.42-4.81zM10 15V9l5.2 3-5.2 3z"}}]}]});
u.b0(this.element);D.createClientVe(u.element,this,178053);this.W(u.element,"click",function(t){ZON(Q,t,u.element)});
g.O(this,u);m.T||m.disableOrganicUi||(this.S=new fpM(D),this.S.b0(this.element),g.O(this,this.S));this.W(D,"videodatachange",function(){Q.show()});
this.resize(this.api.fh().getPlayerSize())},ZON=function(D,Q,m){Q.preventDefault();
D.api.logClick(m);Q=m.getAttribute("href");m={};g.Iv(D.api,"addEmbedsConversionTrackingParams",[m]);Q=g.b7(m)?Q:g.oz(Q,m);g.C6(window,Q)},FGv=function(D,Q){D.Dx("ytp-error-content").style.paddingTop="0px";
var m=D.Dx("ytp-error-content"),P=m.clientHeight;D.S&&D.S.resize(Q,Q.height-P);m.style.paddingTop=(Q.height-(D.S?D.S.element.clientHeight:0))/2-P/2+"px"},nc4=function(D,Q){var m=D.api.G(),P;
Q.reason&&(T02(Q.reason)?P=g.CX(Q.reason):P=g.AD(g.qC(Q.reason)),D.Sk(P,"content"));var W;Q.subreason&&(T02(Q.subreason)?W=g.CX(Q.subreason):W=g.AD(g.qC(Q.subreason)),D.Sk(W,"subreason"));if(Q.proceedButton&&Q.proceedButton.buttonRenderer){P=D.Dx("ytp-error-content-wrap-subreason");Q=Q.proceedButton.buttonRenderer;var L=g.qi("A");if(Q.text&&Q.text.simpleText&&(W=Q.text.simpleText,L.textContent=W,!h54(P,W)&&(!m.T||m.embedsErrorLinks))){var u;m=(u=g.A(Q==null?void 0:Q.navigationEndpoint,g.KX))==null?
void 0:u.url;var t;u=(t=g.A(Q==null?void 0:Q.navigationEndpoint,g.KX))==null?void 0:t.target;m&&(L.setAttribute("href",m),D.api.createClientVe(L,D,178424),D.W(L,"click",function(z){ZON(D,z,L)}));
u&&L.setAttribute("target",u);t=g.qi("DIV");t.appendChild(L);P.appendChild(t)}}},T02=function(D){if(D.runs)for(var Q=0;Q<D.runs.length;Q++)if(D.runs[Q].navigationEndpoint)return!0;
return!1},h54=function(D,Q){D=g.Wu("A",D);
for(var m=0;m<D.length;m++)if(D[m].textContent===Q)return!0;return!1},EcV=function(D,Q){g.p.call(this,{K:"a",
OW:["ytp-impression-link"],Y:{target:"{{target}}",href:"{{url}}","aria-label":"Watch on YouTube"},X:[{K:"div",L:"ytp-impression-link-content",Y:{"aria-hidden":"true"},X:[{K:"div",L:"ytp-impression-link-text",h0:"Watch on"},{K:"div",L:"ytp-impression-link-logo",h0:"{{logoSvg}}"}]}]});this.api=D;this.S=Q;this.updateValue("target",D.G().j);this.W(D,"videodatachange",this.onVideoDataChange);this.W(this.api,"presentingplayerstatechange",this.wl);this.W(this.api,"videoplayerreset",this.At);this.W(this.element,
"click",this.onClick);this.onVideoDataChange();this.At()},gcV=function(D){var Q={};
g.Iv(D.api,"addEmbedsConversionTrackingParams",[Q]);D=D.api.getVideoUrl();return D=g.oz(D,Q)},Qn=function(D){g.p.call(this,{K:"div",
OW:["ytp-mobile-a11y-hidden-seek-button"],X:[{K:"button",OW:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],Y:{"aria-label":"Rewind 10 seconds","aria-hidden":"false"}},{K:"button",OW:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],Y:{"aria-label":"Fast forward 10 seconds","aria-hidden":"false"}}]});this.api=D;this.S=this.Dx("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.Dx("ytp-mobile-a11y-hidden-seek-button-forward");this.api.createClientVe(this.S,this,
141902);this.api.createClientVe(this.forwardButton,this,141903);this.W(this.api,"presentingplayerstatechange",this.wl);this.W(this.S,"click",this.C);this.W(this.forwardButton,"click",this.T);this.wl()},mY=function(D){g.p.call(this,{K:"div",
L:"ytp-muted-autoplay-endscreen-overlay",X:[{K:"div",L:"ytp-muted-autoplay-end-panel",X:[{K:"button",OW:["ytp-muted-autoplay-end-text","ytp-button"],h0:"{{text}}"}]}]});this.api=D;this.B=this.Dx("ytp-muted-autoplay-end-panel");this.C=!1;this.api.createClientVe(this.element,this,52428);this.W(this.api,"presentingplayerstatechange",this.T);this.W(D,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()},Pk=function(D){var Q=D.G();
g.p.call(this,{K:"a",OW:["ytp-watermark","yt-uix-sessionlink"],Y:{target:Q.j,href:"{{url}}","aria-label":g.LZ("Watch on $WEBSITE",{WEBSITE:g.ZW(Q)}),"data-sessionlink":"feature=player-watermark"},h0:"{{logoSvg}}"});this.api=D;this.S=null;this.C=!1;this.state=D.getPlayerStateObject();this.W(D,"videodatachange",this.onVideoDataChange);this.W(D,"presentingplayerstatechange",this.onStateChange);this.W(D,"appresize",this.MB);this.onVideoDataChange();this.pM(this.state);this.MB(D.fh().getPlayerSize())},
B04=function(D){var Q=D.api.getVideoData(),m=D.api.G();
m=m.yn&&!g.X(D.state,2)&&!D.api.getVideoData(1).RI&&!(m.V("embeds_enable_emc3ds_woyt_counterfactual")&&D.api.getPlayerStateObject().isCued());Q.mutedAutoplay||D.FA(m);D.api.logVisibility(D.element,m)},J04=function(D){g.p.call(this,{K:"div",
L:"ytp-muted-autoplay-overlay",X:[{K:"div",L:"ytp-muted-autoplay-bottom-buttons",X:[{K:"button",OW:["ytp-muted-autoplay-equalizer","ytp-button"],Y:{"aria-label":"Muted Playback Indicator"},X:[{K:"div",OW:["ytp-muted-autoplay-equalizer-icon"],X:[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},X:[{K:"g",Y:{fill:"#fff"},X:[{K:"rect",L:"ytp-equalizer-bar-left",Y:{height:"9",width:"4",x:"1",y:"7"}},{K:"rect",L:"ytp-equalizer-bar-middle",Y:{height:"14",width:"4",x:"6",y:"2"}},
{K:"rect",L:"ytp-equalizer-bar-right",Y:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});var Q=this;this.api=D;this.bottomButtons=this.Dx("ytp-muted-autoplay-bottom-buttons");this.T=new g.pJ(this.Nt,4E3,this);this.C=!1;D.createClientVe(this.element,this,39306);this.W(D,"presentingplayerstatechange",this.Nq);this.W(D,"onMutedAutoplayStarts",function(){w3Q(Q);Q.Nq();k9M(Q);Q.C=!1});
this.W(D,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.W(D,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();D.isMutedByEmbedsMutedAutoplay()&&(w3Q(this),this.Nq(),k9M(this));g.O(this,this.T)},k9M=function(D){D.To&&D.S&&(D.S.show(),D.T.start())},w3Q=function(D){D.watermark||(D.watermark=new Pk(D.api),g.O(D,D.watermark),D.watermark.b0(D.bottomButtons,0),g.sh(D.watermark.element,"ytp-muted-autoplay-watermark",!0),D.S=new g.mF(D.watermark,0,!0,100),g.O(D,
D.S))},Wk=function(D){g.p.call(this,{K:"div",
L:"ytp-pause-overlay",Y:{tabIndex:"-1"}});var Q=this;this.api=D;this.T=new g.gO(this);this.fade=new g.mF(this,1E3,!1,100,function(){Q.S.C=!1},function(){Q.S.C=!0});
this.C=!1;this.expandButton=new g.p({K:"button",OW:["ytp-button","ytp-expand"],h0:this.api.isEmbedsShortsMode()?"More shorts":"More videos"});D.G().controlsType==="0"&&g.mQ(D.getRootNode(),"ytp-pause-overlay-controls-hidden");g.O(this,this.T);g.O(this,this.fade);var m=new g.p({K:"button",OW:["ytp-button","ytp-collapse"],Y:{"aria-label":this.api.isEmbedsShortsMode()?"Hide more shorts":"Hide more videos"},X:[{K:"div",L:"ytp-collapse-icon",X:[g.kb()]}]});g.O(this,m);m.b0(this.element);m.listen("click",
this.B,this);g.O(this,this.expandButton);this.expandButton.b0(this.element);this.expandButton.listen("click",this.N,this);this.S=new g.cH(D);g.O(this,this.S);this.S.C=!1;this.S.b0(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.T.W(this.api,"presentingplayerstatechange",this.Lh);this.T.W(this.api,"videodatachange",this.Lh);this.hide()},ie=function(D){g.p.call(this,{K:"div",
OW:["ytp-player-content","ytp-iv-player-content"],X:[{K:"div",L:"ytp-countdown-timer",X:[{K:"svg",Y:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},X:[{K:"circle",L:"ytp-svg-countdown-timer-ring",Y:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{K:"circle",L:"ytp-svg-countdown-timer-background",Y:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3",
"stroke-width":"4",transform:"rotate(-90)"}}]},{K:"span",L:"ytp-countdown-timer-time",h0:"{{duration}}"}]}]});this.api=D;this.U=this.Dx("ytp-svg-countdown-timer-ring");this.S=null;this.B=this.T=0;this.C=!1;this.N=0;this.api.createClientVe(this.element,this,159628)},Ip4=function(D){D.S||(D.T=5E3,D.B=(0,g.T3)(),D.S=new g.AN(function(){lpk(D)},null),lpk(D))},lpk=function(D){if(!D.C){var Q=Math.min((0,g.T3)()-D.B,D.T);
var m=D.T-Q;Q=D.T===0?0:Math.max(m/D.T,0);m=Math.round(m/1E3);D.U.setAttribute("stroke-dashoffset",""+-211*(Q+1));D.updateValue("duration",m);Q<=0&&D.S?D.stopTimer():D.S&&D.S.start()}},Ud4=function(D){g.nW.call(this,D);
this.D=D;this.S=new g.gO(this);this.C=null;this.U=!1;this.countdownTimer=null;this.j=!1;R54(this);g.O(this,this.S);this.load()},KGV=function(D){var Q=g.HVv(D.D);
Q!==D.j&&(D.j=Q,D.J&&(D.J.dispose(),D.J=null),D.T&&(D.T.dispose(),D.T=null),D.B&&(D.B.dispose(),D.B=null),D.C&&(D.C.stop(),D.C.dispose(),D.C=null),Q&&(Q=g.jh(D.D),D.D.isEmbedsShortsMode()&&(D.B=new g.p({K:"div",L:"ytp-pause-overlay-backdrop",Y:{tabIndex:"-1"}}),g.O(D,D.B),g.Q3(D.D,D.B.element,4),D.C=new g.mF(D.B,1E3,!1,100),g.O(D,D.C),D.B.hide()),D.J=new g.p({K:"div",L:"ytp-pause-overlay-container",Y:{tabIndex:"-1"}}),g.O(D,D.J),D.T=new Wk(D.D,Q),g.O(D,D.T),D.T.b0(D.J.element),g.Q3(D.D,D.J.element,
4),HO$(D,D.D.getPlayerStateObject())))},HO$=function(D,Q){D.C&&(!g.X(Q,4)&&!g.X(Q,2)||g.X(Q,1024)?D.C.hide():D.C.show())},R54=function(D){var Q=D.D;
D=!!Q.isEmbedsShortsMode();g.sh(Q.getRootNode(),"ytp-shorts-mode",D);if(Q=Q.getVideoData())Q.wL=D},sA=function(D,Q){var m=D.D.G();
D={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:D.D.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":D.D.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.eM7(D.D.G().loaderUrl),eventType:Q,youtubeHost:g.uY(D.D.G().LI)||""};D.embeddedPlayerMode=m.QF;g.WD("embedsAdEvent",D)};
g.Z(fpM,g.p);g.y=fpM.prototype;g.y.hide=function(){this.U=!0;g.p.prototype.hide.call(this);VNP(this,!1)};
g.y.show=function(){this.U=!1;g.p.prototype.show.call(this);VNP(this,!0)};
g.y.isHidden=function(){return this.U};
g.y.Ai=function(){this.scrollTo(this.scrollPosition-this.containerWidth)};
g.y.WV=function(){this.scrollTo(this.scrollPosition+this.containerWidth)};
g.y.resize=function(D,Q){var m=this.api.G(),P=16/9,W=D.width>=650,L=D.width<480||D.height<290,u=Math.min(this.suggestionData.length,this.S.length);if(Math.min(D.width,D.height)<=150||u===0||!m.Xw)this.hide();else{var t;if(W){var z=t=28;this.C=16}else this.C=z=t=8;if(L){var b=6;W=14;var q=12;L=24;m=12}else b=8,W=18,q=16,L=36,m=16;D=D.width-(48+t+z);t=Math.ceil(D/150);t=Math.min(3,t);z=D/t-this.C;var C=Math.floor(z/P);Q&&C+100>Q&&z>50&&(C=Math.max(Q,50/P),t=Math.ceil(D/(P*(C-100)+this.C)),z=D/t-this.C,
C=Math.floor(z/P));z<50||g.Gv(this.api)?this.hide():this.show();for(Q=0;Q<u;Q++){P=this.S[Q];var f=P.Dx("ytp-suggestion-image");f.style.width=z+"px";f.style.height=C+"px";P.Dx("ytp-suggestion-title").style.width=z+"px";P.Dx("ytp-suggestion-author").style.width=z+"px";P=P.Dx("ytp-suggestion-duration");P.style.display=P&&z<100?"none":""}u=W+b+q+4;this.N=u+m+(C-L)/2;this.suggestions.element.style.height=C+u+"px";this.T=z;this.containerWidth=D;this.columns=t;this.scrollPosition=0;this.suggestions.element.scrollLeft=
-0;N0h(this)}};
g.y.onVideoDataChange=function(){var D=this.api.getVideoData(),Q=this.api.G();this.Z=D.RI?!1:Q.B;D.suggestions?this.suggestionData=g.g0(D.suggestions,function(m){return m&&!m.playlistId}):this.suggestionData.length=0;
y0K(this);D.RI?this.title.update({title:g.LZ("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:D.author})}):this.title.update({title:"More videos on YouTube"})};
g.y.scrollTo=function(D){D=g.eZ(D,this.containerWidth-this.suggestionData.length*(this.T+this.C),0);this.j.start(this.scrollPosition,D,1E3);this.scrollPosition=D;N0h(this);VNP(this,!0)};g.Z(DC,g.aY);DC.prototype.show=function(){g.aY.prototype.show.call(this);FGv(this,this.api.fh().getPlayerSize())};
DC.prototype.resize=function(D){g.aY.prototype.resize.call(this,D);this.S&&(FGv(this,D),g.sh(this.element,"related-on-error-overlay-visible",!this.S.isHidden()))};
DC.prototype.C=function(D){g.aY.prototype.C.call(this,D);var Q=this.api.getVideoData();if(Q.jp||Q.playerErrorMessageRenderer)(D=Q.jp)?nc4(this,D):Q.playerErrorMessageRenderer&&nc4(this,Q.playerErrorMessageRenderer);else{var m;D.vr&&(Q.qh?T02(Q.qh)?m=g.CX(Q.qh):m=g.AD(g.qC(Q.qh)):m=g.AD(D.vr),this.Sk(m,"subreason"))}};g.Z(EcV,g.p);g.y=EcV.prototype;g.y.onVideoDataChange=function(){var D=this.api.getVideoData(),Q=Ckv(),m=96714;g.ny(D)?(Q=oc2(),m=216165,g.mQ(this.element,"ytp-music-impression-link")):g.Wo(this.element,"ytp-music-impression-link");this.api.G().V("embeds_enable_emc3ds_woyt_counterfactual")&&g.mQ(this.element,"ytp-woyt-emc3ds-cf");this.updateValue("logoSvg",Q);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,m)};
g.y.wl=function(){this.api.getPlayerStateObject().isCued()||(this.hide(),this.api.logVisibility(this.element,!1))};
g.y.At=function(){var D=this.api.getVideoData(),Q=this.api.G(),m=this.api.getVideoData().RI,P=Q.yn&&!Q.V("embeds_enable_emc3ds_woyt_counterfactual"),W=!Q.Xw,L=this.S.Px()&&!Q.V("embeds_enable_emc3ds_woyt_counterfactual");Q=Q.T;P||L||m||W||Q||this.api.isEmbedsShortsMode()||!D.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(D=gcV(this),this.updateValue("url",D),this.show())};
g.y.onClick=function(D){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Q=gcV(this);g.k_(Q,this.api,D);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g.y.show=function(){this.api.getPlayerStateObject().isCued()&&(g.p.prototype.show.call(this),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))};g.Z(Qn,g.p);Qn.prototype.wl=function(){var D=this.api.getPlayerStateObject();!this.api.I_()||g.X(D,2)&&g.Xh(this.api)||g.X(D,64)?(this.api.logVisibility(this.S,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.S,!0),this.api.logVisibility(this.forwardButton,!0))};
Qn.prototype.C=function(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.S)};
Qn.prototype.T=function(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)};g.Z(mY,g.p);
mY.prototype.T=function(){var D=this.api.getPlayerStateObject(),Q=this.api.getVideoData();g.sh(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!Q.mutedAutoplay||Q.limitedPlaybackDurationInSeconds===0&&Q.endSeconds===0&&Q.mutedAutoplayDurationMode===2||(g.X(D,2)&&!this.To?(this.show(),this.S||(this.S=new g.OM(this.api),g.O(this,this.S),this.S.b0(this.B,0),this.S.show()),D=this.api.getVideoData(),this.updateValue("text",D.K9),g.sh(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element,
this.To),this.api.Q0("onMutedAutoplayEnds")):this.hide())};
mY.prototype.onClick=function(){if(!this.C){this.S&&(this.S.Bq(),this.S=null);g.sh(this.api.getRootNode(),"ytp-muted-autoplay",!1);var D=this.api.getVideoData(),Q=this.api.getCurrentTime();qwV(D);this.api.loadVideoById(D.videoId,Q);this.api.r5();this.api.logClick(this.element);this.hide();this.C=!0}};
mY.prototype.onMutedAutoplayStarts=function(){this.C=!1;this.S&&(this.S.Bq(),this.S=null)};g.Z(Pk,g.p);g.y=Pk.prototype;g.y.onStateChange=function(D){this.pM(D.state)};
g.y.pM=function(D){this.state!==D&&(this.state=D);B04(this)};
g.y.onVideoDataChange=function(){var D=this.api.G();D.T&&g.mQ(this.element,"ytp-no-hover");var Q=this.api.getVideoData();Q.videoId&&!D.T?(D=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",D),this.S||(this.S=this.listen("click",this.onClick))):this.S&&(this.updateValue("url",null),this.qY(this.S),this.S=null);D=Ckv();var m=76758;g.ny(Q)&&(D=oc2(),m=216164);this.updateValue("logoSvg",D);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,
m);B04(this)};
g.y.onClick=function(D){this.api.V("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var Q=this.api.getVideoUrl(!g.E9(D),!1,!0,!0);if(this.api.V("web_player_log_click_before_generating_ve_conversion_params")){var m={};g.Iv(this.api,"addEmbedsConversionTrackingParams",[m]);Q=g.oz(Q,m)}g.k_(Q,this.api,D);this.api.V("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g.y.MB=function(D){if((D=D.width<480)&&!this.C||!D&&this.C){var Q=new g.p(Ckv()),m=this.Dx("ytp-watermark");g.sh(m,"ytp-watermark-small",D);g.fa(m);Q.b0(m);this.C=D}};g.Z(J04,g.p);g.y=J04.prototype;g.y.Nq=function(){var D=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||g.X(D,2)?this.hide():this.To||(g.p.prototype.show.call(this),this.api.logVisibility(this.element,this.To))};
g.y.Nt=function(){this.S&&this.S.hide()};
g.y.onAutoplayBlocked=function(){this.hide();qwV(this.api.getVideoData())};
g.y.onClick=function(){if(!this.C){g.sh(this.api.getRootNode(),"ytp-muted-autoplay",!1);var D=this.api.getVideoData(),Q=this.api.getCurrentTime();qwV(D);this.api.loadVideoById(D.videoId,Q);this.api.r5();this.api.logClick(this.element);this.api.Q0("onMutedAutoplayEnds");this.C=!0}};
g.y.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.Bq(),this.watermark=null)};g.Z(Wk,g.p);Wk.prototype.hide=function(){g.Wo(this.api.getRootNode(),"ytp-expand-pause-overlay");g.p.prototype.hide.call(this)};
Wk.prototype.B=function(){this.C=!0;g.Wo(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()};
Wk.prototype.N=function(){this.C=!1;g.mQ(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()};
Wk.prototype.Lh=function(){var D=this.api.getPlayerStateObject();g.X(D,1)||g.X(D,16)||g.X(D,32)||(!g.X(D,4)||g.X(D,2)||g.X(D,1024)?(this.C||this.api.logVisibility(this.element,!1),this.fade.hide()):this.S.hasSuggestions()&&(this.C||(g.mQ(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.Dt(this.S),this.S.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))};g.Z(ie,g.p);ie.prototype.show=function(){g.p.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
ie.prototype.stopTimer=function(){this.S&&(this.S.dispose(),this.S=null,this.C=!1)};
ie.prototype.Bq=function(){this.stopTimer();g.p.prototype.Bq.call(this)};g.Z(Ud4,g.nW);g.y=Ud4.prototype;g.y.po=function(){return!1};
g.y.create=function(){var D=this.D.G(),Q=g.jh(this.D),m,P=(m=this.D.getVideoData())==null?void 0:m.clientPlaybackNonce;P&&g.Jd({clientPlaybackNonce:P});D.GO&&!D.disableOrganicUi&&KGV(this);var W;(W=D.getWebPlayerContextConfig())!=null&&W.embedsEnableEmc3ds||(this.Z=new J04(this.D),g.O(this,this.Z),g.Q3(this.D,this.Z.element,4),this.Iy=new mY(this.D),g.O(this,this.Iy),g.Q3(this.D,this.Iy.element,4));D.yn&&(this.watermark=new Pk(this.D),g.O(this,this.watermark),g.Q3(this.D,this.watermark.element,8));
Q&&!D.disableOrganicUi&&(this.N=new EcV(this.D,Q),g.O(this,this.N),g.Q3(this.D,this.N.element,8),this.D.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.N.hide()));D.C&&!D.disableOrganicUi&&(this.TO=new Qn(this.D),g.O(this,this.TO),g.Q3(this.D,this.TO.element,4));this.S.W(this.D,"appresize",this.MB);this.S.W(this.D,"presentingplayerstatechange",this.wl);this.S.W(this.D,"videodatachange",this.onVideoDataChange);this.S.W(this.D,"videoplayerreset",this.onReset);this.S.W(this.D,"onMutedAutoplayStarts",
this.onMutedAutoplayStarts);this.S.W(this.D,"onAdStart",this.onAdStart);this.S.W(this.D,"onAdComplete",this.onAdComplete);this.S.W(this.D,"onAdSkip",this.onAdSkip);this.S.W(this.D,"onAdStateChange",this.onAdStateChange);if(this.U=g.sI(g.qS(D)))this.countdownTimer=new ie(this.D),g.O(this,this.countdownTimer),g.Q3(this.D,this.countdownTimer.element,4),this.countdownTimer.hide(),this.S.W(this.D,g.r5("embeds"),this.onCueRangeEnter),this.S.W(this.D,g.GR("embeds"),this.onCueRangeExit);this.Bn(this.D.getPlayerStateObject());
this.player.wi("embed");var L,u;((L=this.D.G().getWebPlayerContextConfig())==null?0:(u=L.embedsHostFlags)==null?0:u.allowOverridingVisitorDataPlayerVars)&&(D=g.YK("IDENTITY_MEMENTO"))&&this.D.cO("onMementoChange",D)};
g.y.onCueRangeEnter=function(D){D.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),Ip4(this.countdownTimer))};
g.y.onCueRangeExit=function(D){D.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())};
g.y.MB=function(){var D=this.D.fh().getPlayerSize();this.lQ&&this.lQ.resize(D)};
g.y.onReset=function(){R54(this)};
g.y.wl=function(D){this.Bn(D.state)};
g.y.Bn=function(D){g.X(D,128)?(this.lQ||(this.lQ=new DC(this.D),g.O(this,this.lQ),g.Q3(this.D,this.lQ.element,4)),this.lQ.C(D.YP),this.lQ.show(),g.mQ(this.D.getRootNode(),"ytp-embed-error")):this.lQ&&(this.lQ.dispose(),this.lQ=null,g.Wo(this.D.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.S)if(g.X(D,64))this.countdownTimer.hide(),this.countdownTimer.stopTimer();else if(D.isPaused()){var Q=this.countdownTimer;Q.C||(Q.C=!0,Q.N=(0,g.T3)())}else D.isPlaying()&&this.countdownTimer.C&&
(Q=this.countdownTimer,Q.C&&(Q.B+=(0,g.T3)()-Q.N,Q.C=!1,lpk(Q)));HO$(this,D)};
g.y.onMutedAutoplayStarts=function(){this.D.getVideoData().mutedAutoplay&&this.Z&&g.sh(this.D.getRootNode(),"ytp-muted-autoplay",!0)};
g.y.onVideoDataChange=function(D,Q){var m=this.K8!==Q.videoId;D=!m&&D==="dataloaded";var P={isShortsModeEnabled:!!this.D.isEmbedsShortsMode()};g.WD("embedsVideoDataDidChange",{clientPlaybackNonce:Q.clientPlaybackNonce,isReload:D,runtimeEnabledFeatures:P});m&&(this.K8=Q.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.U&&(this.D.aI("embeds"),Q.isAd()||Q.limitedPlaybackDurationInSeconds<5||g.Gv(this.D)||(Q=Math.max((Q.startSeconds+Q.limitedPlaybackDurationInSeconds-
5)*1E3,0),Q=new g.XB(Q,Q+5E3,{id:"countdown timer",namespace:"embeds"}),this.D.GY([Q]))),this.D.G().GO&&!this.D.G().disableOrganicUi&&(R54(this),KGV(this)));this.D.G().T&&this.T&&this.T.detach()};
g.y.onAdStart=function(){sA(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")};
g.y.onAdComplete=function(){sA(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")};
g.y.onAdSkip=function(){sA(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")};
g.y.onAdStateChange=function(D){D===2&&sA(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.hD("embed",Ud4);})(_yt_player);
