(function(g){var window=this;'use strict';var HlD=function(R){R.mutedAutoplay=!1;R.endSeconds=NaN;R.limitedPlaybackDurationInSeconds=NaN;g.Au(R)},h4z=function(){return{j:"svg",
S:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},L:[{j:"path",AX:!0,Y:"ytp-svg-fill",S:{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"}}]}},
WY5=function(){return{j:"svg",
S:{fill:"none",height:"100%",viewBox:"0 0 143 51",width:"100%"},L:[{j:"path",S:{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"}},{j:"path",S:{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"}},{j:"path",S:{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"}},{j:"path",S:{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"}},{j:"path",S:{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"}},{j:"path",S:{"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"}}]}},uGv=function(R){g.N.call(this,{j:"div",
Y:"ytp-related-on-error-overlay"});var F=this;this.api=R;this.W=this.U=0;this.J=new g.AQ(this);this.T=[];this.suggestionData=[];this.columns=this.containerWidth=0;this.title=new g.N({j:"h2",Y:"ytp-related-title",cG:"{{title}}"});this.previous=new g.N({j:"button",BG:["ytp-button","ytp-previous"],S:{"aria-label":"Show previous suggested videos"},L:[g.Xs()]});this.V=new g.Pw(function(v){F.suggestions.element.scrollLeft=-v});
this.N=this.scrollPosition=0;this.Z=!0;this.next=new g.N({j:"button",BG:["ytp-button","ytp-next"],S:{"aria-label":"Show more suggested videos"},L:[g.An()]});g.d(this,this.J);R=R.D();this.X=R.J;g.d(this,this.title);this.title.KH(this.element);this.suggestions=new g.N({j:"div",Y:"ytp-suggestions"});g.d(this,this.suggestions);this.suggestions.KH(this.element);g.d(this,this.previous);this.previous.KH(this.element);this.previous.listen("click",this.Uh,this);g.d(this,this.V);for(var n={xN:0};n.xN<16;n=
{xN:n.xN},n.xN++){var V=new g.N({j:"a",Y:"ytp-suggestion-link",S:{href:"{{link}}",target:R.UZ,"aria-label":"{{aria_label}}"},L:[{j:"div",Y:"ytp-suggestion-image",L:[{j:"div",S:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration",cG:"{{duration}}"}]},{j:"div",Y:"ytp-suggestion-title",S:{title:"{{hover_title}}"},cG:"{{title}}"},{j:"div",Y:"ytp-suggestion-author",cG:"{{views_or_author}}"}]});g.d(this,V);V.KH(this.suggestions.element);var r=V.sZ("ytp-suggestion-link");g.fY(r,"transitionDelay",n.xN/
20+"s");this.J.C(r,"click",function(v){return function(f){var z=v.xN,q=F.suggestionData[z],Q=q.sessionData;g.Pp(F.api.D())&&F.api.B("web_player_log_click_before_generating_ve_conversion_params")?(F.api.logClick(F.T[z].element),z=q.n6(),q={},g.b4(F.api,q),z=g.DI(z,q),g.HN(z,F.api,f)):g.jK(f,F.api,F.X,Q||void 0)&&F.api.bu(q.videoId,Q,q.playlistId)}}(n));
this.T.push(V)}g.d(this,this.next);this.next.KH(this.element);this.next.listen("click",this.TK,this);this.J.C(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.fH().getPlayerSize());this.onVideoDataChange();this.show()},Bpq=function(R,F){if(R.api.D().B("web_player_log_click_before_generating_ve_conversion_params"))for(var n=Math.floor(-R.scrollPosition/(R.N+R.U)),V=Math.min(n+R.columns,R.suggestionData.length)-1;n<=V;n++)R.api.logVisibility(R.T[n].element,F)},mm7=function(R){R.next.element.style.bottom=
R.W+"px";
R.previous.element.style.bottom=R.W+"px";var F=R.scrollPosition,n=R.containerWidth-R.suggestionData.length*(R.N+R.U);g.ws(R.element,"ytp-scroll-min",F>=0);g.ws(R.element,"ytp-scroll-max",F<=n)},gDU=function(R){for(var F=0;F<R.suggestionData.length;F++){var n=R.suggestionData[F],V=R.T[F],r=n.shortViewCount?n.shortViewCount:n.author,v=n.n6(),f=R.api.D();
if(g.Pp(f)&&!f.B("web_player_log_click_before_generating_ve_conversion_params")){var z={};g.u4(R.api,"addEmbedsConversionTrackingParams",[z]);v=g.DI(v,z)}V.element.style.display="";z=V.sZ("ytp-suggestion-title");g.XK.test(n.title)?z.dir="rtl":g.lNU.test(n.title)&&(z.dir="ltr");z=V.sZ("ytp-suggestion-author");g.XK.test(r)?z.dir="rtl":g.lNU.test(r)&&(z.dir="ltr");V.update({views_or_author:r,duration:n.isLivePlayback?"Live":n.lengthSeconds?g.ot(n.lengthSeconds):"",link:v,hover_title:n.title,title:n.title,
aria_label:n.ariaLabel||null,is_live:n.isLivePlayback});r=n.BB();V.sZ("ytp-suggestion-image").style.backgroundImage=r?"url("+r+")":"";f.B("web_player_log_click_before_generating_ve_conversion_params")&&(R.api.createServerVe(V.element,V),(n=(n=n.sessionData)&&n.itct)&&R.api.setTrackingParams(V.element,n))}for(;F<R.T.length;F++)R.T[F].element.style.display="none";mm7(R)},FI=function(R){g.Kz.call(this,R);
var F=this;this.T=null;var n=R.D(),V={target:n.UZ},r=["ytp-small-redirect"];if(n.N)r.push("no-link");else{var v=g.jT(n);V.href=v;V["aria-label"]="Visit YouTube to search for more videos"}var f=new g.N({j:"a",BG:r,S:V,L:[{j:"svg",S:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},L:[{j:"path",S:{d:"M0 0h24v24H0V0z",fill:"none"}},{j:"path",S:{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"}}]}]});
f.KH(this.element);R.createClientVe(f.element,this,178053);this.C(f.element,"click",function(z){OlO(F,z,f.element)});
g.d(this,f);n.N||n.disableOrganicUi||(this.T=new uGv(R),this.T.KH(this.element),g.d(this,this.T));this.C(R,"videodatachange",function(){F.show()});
this.resize(this.api.fH().getPlayerSize())},OlO=function(R,F,n){F.preventDefault();
R.api.logClick(n);F=n.getAttribute("href");n={};g.u4(R.api,"addEmbedsConversionTrackingParams",[n]);F=g.g7(n)?F:g.DI(F,n);g.Ie(window,F)},IFv=function(R,F){R.sZ("ytp-error-content").style.paddingTop="0px";
var n=R.sZ("ytp-error-content"),V=n.clientHeight;R.T&&R.T.resize(F,F.height-V);n.style.paddingTop=(F.height-(R.T?R.T.element.clientHeight:0))/2-V/2+"px"},il7=function(R,F){var n=R.api.D(),V;
F.reason&&(KYU(F.reason)?V=g.sa(F.reason):V=g.DR(g.LG(F.reason)),R.setContent(V,"content"));var r;F.subreason&&(KYU(F.subreason)?r=g.sa(F.subreason):r=g.DR(g.LG(F.subreason)),R.setContent(r,"subreason"));if(F.proceedButton&&F.proceedButton.buttonRenderer){V=R.sZ("ytp-error-content-wrap-subreason");F=F.proceedButton.buttonRenderer;var v=g.gu("A");if(F.text&&F.text.simpleText&&(r=F.text.simpleText,v.textContent=r,!DmD(V,r)&&(!n.N||n.embedsErrorLinks))){var f;n=(f=g.A(F==null?void 0:F.navigationEndpoint,
g.is))==null?void 0:f.url;var z;f=(z=g.A(F==null?void 0:F.navigationEndpoint,g.is))==null?void 0:z.target;n&&(v.setAttribute("href",n),R.api.createClientVe(v,R,178424),R.C(v,"click",function(q){OlO(R,q,v)}));
f&&v.setAttribute("target",f);z=g.gu("DIV");z.appendChild(v);V.appendChild(z)}}},KYU=function(R){if(R.runs)for(var F=0;F<R.runs.length;F++)if(R.runs[F].navigationEndpoint)return!0;
return!1},DmD=function(R,F){R=g.oE("A",R);
for(var n=0;n<R.length;n++)if(R[n].textContent===F)return!0;return!1},xm$=function(R,F){g.N.call(this,{j:"a",
BG:["ytp-impression-link"],S:{target:"{{target}}",href:"{{url}}","aria-label":"Watch on YouTube"},L:[{j:"div",Y:"ytp-impression-link-content",S:{"aria-hidden":"true"},L:[{j:"div",Y:"ytp-impression-link-text",cG:"Watch on"},{j:"div",Y:"ytp-impression-link-logo",cG:"{{logoSvg}}"}]}]});this.api=R;this.T=F;this.updateValue("target",R.D().UZ);this.C(R,"videodatachange",this.onVideoDataChange);this.C(this.api,"presentingplayerstatechange",this.yB);this.C(this.api,"videoplayerreset",this.Em);this.C(this.element,
"click",this.onClick);this.onVideoDataChange();this.Em()},kbq=function(R){var F={};
g.u4(R.api,"addEmbedsConversionTrackingParams",[F]);R=R.api.getVideoUrl();return R=g.DI(R,F)},ns=function(R){g.N.call(this,{j:"div",
BG:["ytp-mobile-a11y-hidden-seek-button"],L:[{j:"button",BG:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],S:{"aria-label":"Rewind 10 seconds","aria-hidden":"false"}},{j:"button",BG:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],S:{"aria-label":"Fast forward 10 seconds","aria-hidden":"false"}}]});this.api=R;this.T=this.sZ("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.sZ("ytp-mobile-a11y-hidden-seek-button-forward");this.api.createClientVe(this.T,this,
141902);this.api.createClientVe(this.forwardButton,this,141903);this.C(this.api,"presentingplayerstatechange",this.yB);this.C(this.T,"click",this.U);this.C(this.forwardButton,"click",this.N);this.yB()},Vo=function(R){g.N.call(this,{j:"div",
Y:"ytp-muted-autoplay-endscreen-overlay",L:[{j:"div",Y:"ytp-muted-autoplay-end-panel",L:[{j:"button",BG:["ytp-muted-autoplay-end-text","ytp-button"],cG:"{{text}}"}]}]});this.api=R;this.J=this.sZ("ytp-muted-autoplay-end-panel");this.U=!1;this.api.createClientVe(this.element,this,52428);this.C(this.api,"presentingplayerstatechange",this.N);this.C(R,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.listen("click",this.onClick);this.hide()},rL=function(R){var F=R.D();
g.N.call(this,{j:"a",BG:["ytp-watermark","yt-uix-sessionlink"],S:{target:F.UZ,href:"{{url}}","aria-label":g.fy("Watch on $WEBSITE",{WEBSITE:g.wg(F)}),"data-sessionlink":"feature=player-watermark"},cG:"{{logoSvg}}"});this.api=R;this.T=null;this.U=!1;this.state=R.getPlayerStateObject();this.C(R,"videodatachange",this.onVideoDataChange);this.C(R,"presentingplayerstatechange",this.onStateChange);this.C(R,"appresize",this.G9);this.onVideoDataChange();this.nX(this.state);this.G9(R.fH().getPlayerSize())},
Ydv=function(R){var F=R.api.getVideoData(),n=R.api.D().eB&&!g.E(R.state,2)&&!R.api.getVideoData({playerType:1}).On;
F.mutedAutoplay||R.dg(n);R.api.logVisibility(R.element,n)},dm5=function(R){g.N.call(this,{j:"div",
Y:"ytp-muted-autoplay-overlay",L:[{j:"div",Y:"ytp-muted-autoplay-bottom-buttons",L:[{j:"button",BG:["ytp-muted-autoplay-equalizer","ytp-button"],S:{"aria-label":"Muted Playback Indicator"},L:[{j:"div",BG:["ytp-muted-autoplay-equalizer-icon"],L:[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},L:[{j:"g",S:{fill:"#fff"},L:[{j:"rect",Y:"ytp-equalizer-bar-left",S:{height:"9",width:"4",x:"1",y:"7"}},{j:"rect",Y:"ytp-equalizer-bar-middle",S:{height:"14",width:"4",x:"6",y:"2"}},
{j:"rect",Y:"ytp-equalizer-bar-right",S:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});var F=this;this.api=R;this.bottomButtons=this.sZ("ytp-muted-autoplay-bottom-buttons");this.N=new g.ZK(this.hGZ,4E3,this);this.U=!1;R.createClientVe(this.element,this,39306);this.C(R,"presentingplayerstatechange",this.oU);this.C(R,"onMutedAutoplayStarts",function(){JC5(F);F.oU();Gb7(F);F.U=!1});
this.C(R,"onAutoplayBlocked",this.onAutoplayBlocked);this.listen("click",this.onClick);this.C(R,"onMutedAutoplayEnds",this.onMutedAutoplayEnds);this.hide();R.isMutedByEmbedsMutedAutoplay()&&(JC5(this),this.oU(),Gb7(this));g.d(this,this.N)},Gb7=function(R){R.JJ&&R.T&&(R.T.show(),R.N.start())},JC5=function(R){R.watermark||(R.watermark=new rL(R.api),g.d(R,R.watermark),R.watermark.KH(R.bottomButtons,0),g.ws(R.watermark.element,"ytp-muted-autoplay-watermark",!0),R.T=new g.n5(R.watermark,0,!0,100),g.d(R,
R.T))},v0=function(R){g.N.call(this,{j:"div",
Y:"ytp-pause-overlay",S:{tabIndex:"-1"}});var F=this;this.api=R;this.N=new g.AQ(this);this.fade=new g.n5(this,1E3,!1,100,function(){F.T.U=!1},function(){F.T.U=!0});
this.U=!1;this.expandButton=new g.N({j:"button",BG:["ytp-button","ytp-expand"],cG:this.api.isEmbedsShortsMode()?"More shorts":"More videos"});R.D().controlsType==="0"&&g.z0(R.getRootNode(),"ytp-pause-overlay-controls-hidden");g.d(this,this.N);g.d(this,this.fade);var n=new g.N({j:"button",BG:["ytp-button","ytp-collapse"],S:{"aria-label":this.api.isEmbedsShortsMode()?"Hide more shorts":"Hide more videos"},L:[{j:"div",Y:"ytp-collapse-icon",L:[g.B5()]}]});g.d(this,n);n.KH(this.element);n.listen("click",
this.J,this);g.d(this,this.expandButton);this.expandButton.KH(this.element);this.expandButton.listen("click",this.W,this);this.T=new g.bz(R);g.d(this,this.T);this.T.U=!1;this.T.KH(this.element);this.api.isEmbedsShortsMode()?this.api.createClientVe(this.element,this,157212):this.api.createClientVe(this.element,this,172777);this.N.C(this.api,"presentingplayerstatechange",this.CH);this.N.C(this.api,"videodatachange",this.CH);this.hide()},fs=function(R){g.N.call(this,{j:"div",
BG:["ytp-player-content","ytp-iv-player-content"],L:[{j:"div",Y:"ytp-countdown-timer",L:[{j:"svg",S:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},L:[{j:"circle",Y:"ytp-svg-countdown-timer-ring",S:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{j:"circle",Y:"ytp-svg-countdown-timer-background",S:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3",
"stroke-width":"4",transform:"rotate(-90)"}}]},{j:"span",Y:"ytp-countdown-timer-time",cG:"{{duration}}"}]}]});this.api=R;this.Z=this.sZ("ytp-svg-countdown-timer-ring");this.T=null;this.J=this.N=0;this.U=!1;this.W=0;this.api.createClientVe(this.element,this,159628)},lFz=function(R){R.T||(R.N=5E3,R.J=(0,g.h1)(),R.T=new g.bM(function(){MpD(R)},null),MpD(R))},MpD=function(R){if(!R.U){var F=Math.min((0,g.h1)()-R.J,R.N);
var n=R.N-F;F=R.N===0?0:Math.max(n/R.N,0);n=Math.round(n/1E3);R.Z.setAttribute("stroke-dashoffset",""+-211*(F+1));R.updateValue("duration",n);F<=0&&R.T?R.stopTimer():R.T&&R.T.start()}},EDz=function(R){g.Lz.call(this,R);
this.K=R;this.T=new g.AQ(this);this.U=null;this.X=!1;this.countdownTimer=null;this.UZ=!1;Npz(this);g.d(this,this.T);this.load()},P3r=function(R){var F=g.xhk(R.K);
F!==R.UZ&&(R.UZ=F,R.W&&(R.W.dispose(),R.W=null),R.N&&(R.N.dispose(),R.N=null),R.J&&(R.J.dispose(),R.J=null),R.U&&(R.U.stop(),R.U.dispose(),R.U=null),F&&(F=g.KK(R.K),R.K.isEmbedsShortsMode()&&(R.J=new g.N({j:"div",Y:"ytp-pause-overlay-backdrop",S:{tabIndex:"-1"}}),g.d(R,R.J),g.RL(R.K,R.J.element,4),R.U=new g.n5(R.J,1E3,!1,100),g.d(R,R.U),R.J.hide()),R.W=new g.N({j:"div",Y:"ytp-pause-overlay-container",S:{tabIndex:"-1"}}),g.d(R,R.W),R.N=new v0(R.K,F),g.d(R,R.N),R.N.KH(R.W.element),g.RL(R.K,R.W.element,
4),$mr(R,R.K.getPlayerStateObject())))},$mr=function(R,F){R.U&&(!g.E(F,4)&&!g.E(F,2)||g.E(F,1024)?R.U.hide():R.U.show())},Npz=function(R){var F=R.K;
R=!!F.isEmbedsShortsMode();g.ws(F.getRootNode(),"ytp-shorts-mode",R);if(F=F.getVideoData())F.Cg=R},tJ=function(R,F){var n=R.K.D();
R={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",breakType:R.K.getCurrentTime()===0?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":R.K.getPlayerState()===0?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.qMV(R.K.D().loaderUrl),eventType:F,youtubeHost:g.u5(R.K.D().rK)||""};R.embeddedPlayerMode=n.PG;g.LJ("embedsAdEvent",R)};
g.a(uGv,g.N);g.X=uGv.prototype;g.X.hide=function(){this.Z=!0;g.N.prototype.hide.call(this);Bpq(this,!1)};
g.X.show=function(){this.Z=!1;g.N.prototype.show.call(this);Bpq(this,!0)};
g.X.isHidden=function(){return this.Z};
g.X.TK=function(){this.scrollTo(this.scrollPosition-this.containerWidth)};
g.X.Uh=function(){this.scrollTo(this.scrollPosition+this.containerWidth)};
g.X.resize=function(R,F){var n=this.api.D(),V=16/9,r=R.width>=650,v=R.width<480||R.height<290,f=Math.min(this.suggestionData.length,this.T.length);if(Math.min(R.width,R.height)<=150||f===0||!n.Yy)this.hide();else{var z;if(r){var q=z=28;this.U=16}else this.U=q=z=8;if(v){var Q=6;r=14;var c=12;v=24;n=12}else Q=8,r=18,c=16,v=36,n=16;R=R.width-(48+z+q);z=Math.ceil(R/150);z=Math.min(3,z);q=R/z-this.U;var w=Math.floor(q/V);F&&w+100>F&&q>50&&(w=Math.max(F,50/V),z=Math.ceil(R/(V*(w-100)+this.U)),q=R/z-this.U,
w=Math.floor(q/V));q<50||g.PK(this.api)?this.hide():this.show();for(F=0;F<f;F++){V=this.T[F];var L=V.sZ("ytp-suggestion-image");L.style.width=q+"px";L.style.height=w+"px";V.sZ("ytp-suggestion-title").style.width=q+"px";V.sZ("ytp-suggestion-author").style.width=q+"px";V=V.sZ("ytp-suggestion-duration");V.style.display=V&&q<100?"none":""}f=r+Q+c+4;this.W=f+n+(w-v)/2;this.suggestions.element.style.height=w+f+"px";this.N=q;this.containerWidth=R;this.columns=z;this.scrollPosition=0;this.suggestions.element.scrollLeft=
-0;mm7(this)}};
g.X.onVideoDataChange=function(){var R=this.api.getVideoData(),F=this.api.D();this.X=R.On?!1:F.J;R.suggestions?this.suggestionData=g.dk(R.suggestions,function(n){return n&&!n.playlistId}):this.suggestionData.length=0;
gDU(this);R.On?this.title.update({title:g.fy("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:R.author})}):this.title.update({title:"More videos on YouTube"})};
g.X.scrollTo=function(R){R=g.vI(R,this.containerWidth-this.suggestionData.length*(this.N+this.U),0);this.V.start(this.scrollPosition,R,1E3);this.scrollPosition=R;mm7(this);Bpq(this,!0)};g.a(FI,g.Kz);FI.prototype.show=function(){g.Kz.prototype.show.call(this);IFv(this,this.api.fH().getPlayerSize())};
FI.prototype.resize=function(R){g.Kz.prototype.resize.call(this,R);this.T&&(IFv(this,R),g.ws(this.element,"related-on-error-overlay-visible",!this.T.isHidden()))};
FI.prototype.U=function(R){g.Kz.prototype.U.call(this,R);var F=this.api.getVideoData();if(F.XA||F.playerErrorMessageRenderer)(R=F.XA)?il7(this,R):F.playerErrorMessageRenderer&&il7(this,F.playerErrorMessageRenderer);else{var n;R.kK&&(F.AE?KYU(F.AE)?n=g.sa(F.AE):n=g.DR(g.LG(F.AE)):n=g.DR(R.kK),this.setContent(n,"subreason"))}};g.a(xm$,g.N);g.X=xm$.prototype;g.X.onVideoDataChange=function(){var R=this.api.getVideoData(),F=h4z(),n=96714;g.T9(R)?(F=WY5(),n=216165,g.z0(this.element,"ytp-music-impression-link")):g.Qj(this.element,"ytp-music-impression-link");this.updateValue("logoSvg",F);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,n)};
g.X.yB=function(){this.api.getPlayerStateObject().isCued()||(this.hide(),this.api.logVisibility(this.element,!1))};
g.X.Em=function(){var R=this.api.getVideoData(),F=this.api.D(),n=this.api.getVideoData().On,V=!F.Yy,r=this.T.SE(),v=F.N;F.eB||r||n||V||v||this.api.isEmbedsShortsMode()||!R.videoId?(this.hide(),this.api.logVisibility(this.element,!1)):(R=kbq(this),this.updateValue("url",R),this.show())};
g.X.onClick=function(R){this.api.B("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var F=kbq(this);g.HN(F,this.api,R);this.api.B("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g.X.show=function(){this.api.getPlayerStateObject().isCued()&&(g.N.prototype.show.call(this),this.api.hasVe(this.element)&&this.api.logVisibility(this.element,!0))};g.a(ns,g.N);ns.prototype.yB=function(){var R=this.api.getPlayerStateObject();!this.api.dV()||g.E(R,2)&&g.Nj(this.api)||g.E(R,64)?(this.api.logVisibility(this.T,!1),this.api.logVisibility(this.forwardButton,!1),this.hide()):(this.show(),this.api.logVisibility(this.T,!0),this.api.logVisibility(this.forwardButton,!0))};
ns.prototype.U=function(){this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,83);this.api.logClick(this.T)};
ns.prototype.N=function(){this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,82);this.api.logClick(this.forwardButton)};g.a(Vo,g.N);
Vo.prototype.N=function(){var R=this.api.getPlayerStateObject(),F=this.api.getVideoData();g.ws(this.element,"ytp-shorts-mode",this.api.isEmbedsShortsMode());!F.mutedAutoplay||F.limitedPlaybackDurationInSeconds===0&&F.endSeconds===0&&F.mutedAutoplayDurationMode===2||(g.E(R,2)&&!this.JJ?(this.show(),this.T||(this.T=new g.O0(this.api),g.d(this,this.T),this.T.KH(this.J,0),this.T.show()),R=this.api.getVideoData(),this.updateValue("text",R.ql),g.ws(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.logVisibility(this.element,
this.JJ),this.api.yZ("onMutedAutoplayEnds")):this.hide())};
Vo.prototype.onClick=function(){if(!this.U){this.T&&(this.T.oG(),this.T=null);g.ws(this.api.getRootNode(),"ytp-muted-autoplay",!1);var R=this.api.getVideoData(),F=this.api.getCurrentTime();HlD(R);this.api.loadVideoById(R.videoId,F);this.api.tP();this.api.logClick(this.element);this.hide();this.U=!0}};
Vo.prototype.onMutedAutoplayStarts=function(){this.U=!1;this.T&&(this.T.oG(),this.T=null)};g.a(rL,g.N);g.X=rL.prototype;g.X.onStateChange=function(R){this.nX(R.state)};
g.X.nX=function(R){this.state!==R&&(this.state=R);Ydv(this)};
g.X.onVideoDataChange=function(){var R=this.api.D();R.N&&g.z0(this.element,"ytp-no-hover");var F=this.api.getVideoData();F.videoId&&!R.N?(R=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",R),this.T||(this.T=this.listen("click",this.onClick))):this.T&&(this.updateValue("url",null),this.ZO(this.T),this.T=null);R=h4z();var n=76758;g.T9(F)&&(R=WY5(),n=216164);this.updateValue("logoSvg",R);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,
n);Ydv(this)};
g.X.onClick=function(R){this.api.B("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var F=this.api.getVideoUrl(!g.y2(R),!1,!0,!0);if(this.api.B("web_player_log_click_before_generating_ve_conversion_params")){var n={};g.u4(this.api,"addEmbedsConversionTrackingParams",[n]);F=g.DI(F,n)}g.HN(F,this.api,R);this.api.B("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)};
g.X.G9=function(R){if((R=R.width<480)&&!this.U||!R&&this.U){var F=new g.N(h4z()),n=this.sZ("ytp-watermark");g.ws(n,"ytp-watermark-small",R);g.Ko(n);F.KH(n);this.U=R}};g.a(dm5,g.N);g.X=dm5.prototype;g.X.oU=function(){var R=this.api.getPlayerStateObject();!this.api.getVideoData().mutedAutoplay||g.E(R,2)?this.hide():this.JJ||(g.N.prototype.show.call(this),this.api.logVisibility(this.element,this.JJ))};
g.X.hGZ=function(){this.T&&this.T.hide()};
g.X.onAutoplayBlocked=function(){this.hide();HlD(this.api.getVideoData())};
g.X.onClick=function(){if(!this.U){g.ws(this.api.getRootNode(),"ytp-muted-autoplay",!1);var R=this.api.getVideoData(),F=this.api.getCurrentTime();HlD(R);this.api.loadVideoById(R.videoId,F);this.api.tP();this.api.logClick(this.element);this.api.yZ("onMutedAutoplayEnds");this.U=!0}};
g.X.onMutedAutoplayEnds=function(){this.watermark&&(this.watermark.oG(),this.watermark=null)};g.a(v0,g.N);v0.prototype.hide=function(){g.Qj(this.api.getRootNode(),"ytp-expand-pause-overlay");g.N.prototype.hide.call(this)};
v0.prototype.J=function(){this.U=!0;g.Qj(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!1);this.expandButton.focus()};
v0.prototype.W=function(){this.U=!1;g.z0(this.api.getRootNode(),"ytp-expand-pause-overlay");this.api.isEmbedsShortsMode()&&this.api.logVisibility(this.element,!0);this.focus()};
v0.prototype.CH=function(){var R=this.api.getPlayerStateObject();g.E(R,1)||g.E(R,16)||g.E(R,32)||(!g.E(R,4)||g.E(R,2)||g.E(R,1024)?(this.U||this.api.logVisibility(this.element,!1),this.fade.hide()):this.T.hasSuggestions()&&(this.U||(g.z0(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.Zu(this.T),this.T.show(),this.api.logVisibility(this.element,!0)),this.fade.show()))};g.a(fs,g.N);fs.prototype.show=function(){g.N.prototype.show.call(this);this.api.logVisibility(this.element,!0)};
fs.prototype.stopTimer=function(){this.T&&(this.T.dispose(),this.T=null,this.U=!1)};
fs.prototype.oG=function(){this.stopTimer();g.N.prototype.oG.call(this)};g.a(EDz,g.Lz);g.X=EDz.prototype;g.X.yu=function(){return!1};
g.X.create=function(){var R=this.K.D(),F=g.KK(this.K),n,V=(n=this.K.getVideoData())==null?void 0:n.clientPlaybackNonce;V&&g.B8({clientPlaybackNonce:V});R.SQ&&!R.disableOrganicUi&&P3r(this);var r;(r=R.getWebPlayerContextConfig())!=null&&r.embedsEnableEmc3ds||(this.V=new dm5(this.K),g.d(this,this.V),g.RL(this.K,this.V.element,4),this.J1=new Vo(this.K),g.d(this,this.J1),g.RL(this.K,this.J1.element,4));R.eB&&(this.watermark=new rL(this.K),g.d(this,this.watermark),g.RL(this.K,this.watermark.element,8));
F&&!R.disableOrganicUi&&(this.Z=new xm$(this.K,F),g.d(this,this.Z),g.RL(this.K,this.Z.element,8),this.K.isMutedByEmbedsMutedAutoplay()&&(this.onMutedAutoplayStarts(),this.Z.hide()));R.U&&!R.disableOrganicUi&&(this.Nq=new ns(this.K),g.d(this,this.Nq),g.RL(this.K,this.Nq.element,4));this.T.C(this.K,"appresize",this.G9);this.T.C(this.K,"presentingplayerstatechange",this.yB);this.T.C(this.K,"videodatachange",this.onVideoDataChange);this.T.C(this.K,"videoplayerreset",this.onReset);this.T.C(this.K,"onMutedAutoplayStarts",
this.onMutedAutoplayStarts);this.T.C(this.K,"onAdStart",this.onAdStart);this.T.C(this.K,"onAdComplete",this.onAdComplete);this.T.C(this.K,"onAdSkip",this.onAdSkip);this.T.C(this.K,"onAdStateChange",this.onAdStateChange);if(this.X=g.pw(g.vV(R)))this.countdownTimer=new fs(this.K),g.d(this,this.countdownTimer),g.RL(this.K,this.countdownTimer.element,4),this.countdownTimer.hide(),this.T.C(this.K,g.$A("embeds"),this.onCueRangeEnter),this.T.C(this.K,g.Pl("embeds"),this.onCueRangeExit);this.md(this.K.getPlayerStateObject());
var v,f;((v=this.K.D().getWebPlayerContextConfig())==null?0:(f=v.embedsHostFlags)==null?0:f.allowOverridingVisitorDataPlayerVars)&&(R=g.ew("IDENTITY_MEMENTO"))&&this.K.t7("onMementoChange",R)};
g.X.onCueRangeEnter=function(R){R.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.show(),lFz(this.countdownTimer))};
g.X.onCueRangeExit=function(R){R.getId()==="countdown timer"&&this.countdownTimer&&(this.countdownTimer.stopTimer(),this.countdownTimer.hide())};
g.X.G9=function(){var R=this.K.fH().getPlayerSize();this.Km&&this.Km.resize(R)};
g.X.onReset=function(){Npz(this)};
g.X.yB=function(R){this.md(R.state)};
g.X.md=function(R){g.E(R,128)?(this.Km||(this.Km=new FI(this.K),g.d(this,this.Km),g.RL(this.K,this.Km.element,4)),this.Km.U(R.z_),this.Km.show(),g.z0(this.K.getRootNode(),"ytp-embed-error")):this.Km&&(this.Km.dispose(),this.Km=null,g.Qj(this.K.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.T)if(g.E(R,64))this.countdownTimer.hide(),this.countdownTimer.stopTimer();else if(R.isPaused()){var F=this.countdownTimer;F.U||(F.U=!0,F.W=(0,g.h1)())}else R.isPlaying()&&this.countdownTimer.U&&
(F=this.countdownTimer,F.U&&(F.J+=(0,g.h1)()-F.W,F.U=!1,MpD(F)));$mr(this,R)};
g.X.onMutedAutoplayStarts=function(){this.K.getVideoData().mutedAutoplay&&this.V&&g.ws(this.K.getRootNode(),"ytp-muted-autoplay",!0)};
g.X.onVideoDataChange=function(R,F){var n=this.Es!==F.videoId;R=!n&&R==="dataloaded";var V={isShortsModeEnabled:!!this.K.isEmbedsShortsMode()};g.LJ("embedsVideoDataDidChange",{clientPlaybackNonce:F.clientPlaybackNonce,isReload:R,runtimeEnabledFeatures:V});n&&(this.Es=F.videoId,this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.hide()),this.X&&(this.K.Bw("embeds"),F.isAd()||F.limitedPlaybackDurationInSeconds<5||g.PK(this.K)||(F=Math.max((F.startSeconds+F.limitedPlaybackDurationInSeconds-
5)*1E3,0),F=new g.NQ(F,F+5E3,{id:"countdown timer",namespace:"embeds"}),this.K.iL([F]))),this.K.D().SQ&&!this.K.D().disableOrganicUi&&(Npz(this),P3r(this)));this.K.D().N&&this.N&&this.N.detach()};
g.X.onAdStart=function(){tJ(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")};
g.X.onAdComplete=function(){tJ(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")};
g.X.onAdSkip=function(){tJ(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")};
g.X.onAdStateChange=function(R){R===2&&tJ(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.Sk("embed",EDz);})(_yt_player);
