LibreSatCam/docs/Embedded Engineering Making.../dwXs9RB6uD0_data/embed.js

87 lines
26 KiB
JavaScript

(function(g){var window=this;'use strict';var hab=function(){return{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},W:[{F:"path",Qb:!0,K:"ytp-svg-fill",X:{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"}}]}},
iab=function(a){g.W.call(this,{F:"div",
K:"ytp-related-on-error-overlay"});var b=this;this.api=a;this.D=this.j=0;this.C=new g.yE(this);this.B=[];this.suggestionData=[];this.containerWidth=0;this.title=new g.W({F:"h2",K:"ytp-related-title",qa:"{{title}}"});this.previous=new g.W({F:"button",Ga:["ytp-button","ytp-previous"],X:{"aria-label":"Show previous suggested videos"},W:[g.iM()]});this.T=new g.w2(function(f){b.suggestions.element.scrollLeft=-f});
this.tileWidth=this.u=0;this.I=!0;this.next=new g.W({F:"button",Ga:["ytp-button","ytp-next"],X:{"aria-label":"Show more suggested videos"},W:[g.jM()]});g.H(this,this.C);a=a.V();this.J=a.u;g.H(this,this.title);this.title.Ca(this.element);this.suggestions=new g.W({F:"div",K:"ytp-suggestions"});g.H(this,this.suggestions);this.suggestions.Ca(this.element);g.H(this,this.previous);this.previous.Ca(this.element);this.previous.Qa("click",this.cW,this);g.H(this,this.T);for(var c={Ou:0};16>c.Ou;c={Ou:c.Ou},
c.Ou++){var d=new g.W({F:"a",K:"ytp-suggestion-link",X:{href:"{{link}}",target:a.T,"aria-label":"{{aria_label}}"},W:[{F:"div",K:"ytp-suggestion-image",W:[{F:"div",X:{"data-is-live":"{{is_live}}"},K:"ytp-suggestion-duration",qa:"{{duration}}"}]},{F:"div",K:"ytp-suggestion-title",X:{title:"{{hover_title}}"},qa:"{{title}}"},{F:"div",K:"ytp-suggestion-author",qa:"{{views_or_author}}"}]});g.H(this,d);d.Ca(this.suggestions.element);var e=d.Ea("ytp-suggestion-link");g.Kl(e,"transitionDelay",c.Ou/20+"s");
this.C.N(e,"click",function(f){return function(h){var l=b.suggestionData[f.Ou],m=l.sessionData;g.wQ(h,b.api,b.J,m||void 0)&&b.api.zm(l.videoId,m,l.playlistId)}}(c));
this.B.push(d)}g.H(this,this.next);this.next.Ca(this.element);this.next.Qa("click",this.bW,this);this.C.N(this.api,"videodatachange",this.onVideoDataChange);this.resize(this.api.fb().getPlayerSize());this.onVideoDataChange();this.show()},jab=function(a){a.next.element.style.bottom=a.D+"px";
a.previous.element.style.bottom=a.D+"px";var b=a.u,c=a.containerWidth-a.suggestionData.length*(a.tileWidth+a.j);g.uo(a.element,"ytp-scroll-min",0<=b);g.uo(a.element,"ytp-scroll-max",b<=c)},kab=function(a){for(var b=0;b<a.suggestionData.length;b++){var c=a.suggestionData[b],d=a.B[b],e=c.shortViewCount?c.shortViewCount:c.author,f=c.zn(),h=a.api.V();
if(g.FG(h)){var l={};h.Ba&&g.uO(l,h.loaderUrl);g.EO(a.api,"addEmbedsConversionTrackingParams",[l]);f=g.ni(f,g.tO(l,"emb_rel_err"))}d.element.style.display="";h=d.Ea("ytp-suggestion-title");g.Io.test(c.title)?h.dir="rtl":g.f4a.test(c.title)&&(h.dir="ltr");h=d.Ea("ytp-suggestion-author");g.Io.test(e)?h.dir="rtl":g.f4a.test(e)&&(h.dir="ltr");d.update({views_or_author:e,duration:c.isLivePlayback?"Live":c.lengthSeconds?g.eN(c.lengthSeconds):"",link:f,hover_title:c.title,title:c.title,aria_label:c.ariaLabel||
null,is_live:c.isLivePlayback});d=d.Ea("ytp-suggestion-image");c=c.Mf();d.style.backgroundImage=c?"url("+c+")":""}for(;b<a.B.length;b++)a.B[b].element.style.display="none";jab(a)},b6=function(a){g.BQ.call(this,a);
var b=this;this.j=null;var c=a.V(),d={F:"svg",X:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},W:[{F:"path",X:{d:"M0 0h24v24H0V0z",fill:"none"}},{F:"path",X:{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"}}]};g.PG(c)&&(d={F:"svg",X:{fill:"none",height:"100%",
viewBox:"0 0 25 25",width:"100%"},W:[{F:"g",X:{"clip-path":"url(#clip0)",fill:"#fff"},W:[{F:"path",X:{d:"M12.57.98C6.21.98 1.05 6.14 1.05 12.5c0 6.36 5.16 11.52 11.52 11.52 6.36 0 11.52-5.16 11.52-11.52C24.09 6.14 18.93.98 12.57.98zm0 18.34c-3.77 0-6.82-3.05-6.82-6.82 0-3.77 3.05-6.82 6.82-6.82 3.77 0 6.82 3.05 6.82 6.82 0 3.77-3.05 6.82-6.82 6.82z"}},{F:"path",X:{d:"M12.57 6.52c-3.29 0-5.98 2.68-5.98 5.98 0 3.3 2.68 5.98 5.98 5.98 3.3 0 5.98-2.68 5.98-5.98 0-3.3-2.69-5.98-5.98-5.98zm-2.25 9.38V9.1l5.88 3.4-5.88 3.4z"}}]},
{F:"defs",W:[{F:"clipPath",X:{id:"clip0"},W:[{F:"path",X:{d:"M0 0h24v24H0z",fill:"#fff",transform:"translate(.57 .5)"}}]}]}]});var e={target:c.T},f=["ytp-small-redirect"];c.j?f.push("no-link"):(c=g.lH(c),c=lab(this,c),e.href=c,e["aria-label"]="Visit YouTube to search for more videos");d=new g.W({F:"a",Ga:f,X:e,W:[d]});d.Ca(this.element);g.H(this,d);a.V().j||(this.j=new iab(a),this.j.Ca(this.element),g.H(this,this.j));this.iconSize=1;this.N(a,"videodatachange",function(){b.show()});
this.resize(this.api.fb().getPlayerSize())},mab=function(a,b){a.Ea("ytp-error-content").style.paddingTop="0px";
var c=a.Ea("ytp-error-content"),d=c.clientHeight;a.j.resize(b,b.height-d);c.style.paddingTop=(b.height-a.j.element.clientHeight)/2-d/2+"px"},oab=function(a,b){var c=a.api.V(),d;
b.reason&&(nab(b.reason)?d=g.YA(b.reason):d=g.CQ(g.XA(b.reason)),a.Td(d,"content"));var e;b.subreason&&(nab(b.subreason)?e=g.YA(b.subreason):e=g.CQ(g.XA(b.subreason)),a.Td(e,"subreason"));if(b.proceedButton&&b.proceedButton.buttonRenderer&&(d=a.Ea("ytp-error-content-wrap-subreason"),e=b.proceedButton.buttonRenderer,b=g.Ve("A"),e.text&&e.text.simpleText)){var f=e.text.simpleText;b.textContent=f;a:{for(var h=g.Le("A",d),l=0;l<h.length;l++)if(h[l].textContent===f){f=!0;break a}f=!1}if(!f&&(!c.j||c.embedsErrorLinks)){var m;
c=null==(m=g.P(null==e?void 0:e.navigationEndpoint,g.LI))?void 0:m.url;var n;m=null==(n=g.P(null==e?void 0:e.navigationEndpoint,g.LI))?void 0:n.target;c&&(c=lab(a,c),b.setAttribute("href",c));m&&b.setAttribute("target",m);a=g.Ve("DIV");a.appendChild(b);d.appendChild(a)}}},nab=function(a){if(a.runs)for(var b=0;b<a.runs.length;b++)if(a.runs[b].navigationEndpoint)return!0;
return!1},lab=function(a,b){var c={},d=a.api.V();
d.Ba&&g.uO(c,d.loaderUrl);g.EO(a.api,"addEmbedsConversionTrackingParams",[c]);return g.dd(c)?b:g.ni(b,c)},c6=function(a,b){g.W.call(this,{F:"a",
Ga:["ytp-impression-link"],X:{target:"{{target}}",href:"{{url}}","aria-label":"Watch on YouTube"},W:[{F:"div",K:"ytp-impression-link-content",X:{"aria-hidden":"true"},W:[{F:"div",K:"ytp-impression-link-text",qa:"Watch on"},{F:"div",K:"ytp-impression-link-logo",W:[hab()]}]}]});this.api=a;this.u=b;this.updateValue("target",a.V().T);this.api.qb(this.element,this,96714);this.N(this.api,"presentingplayerstatechange",this.Qh);this.N(this.api,"videoplayerreset",this.j);this.N(this.element,"click",this.onClick);
this.j()},pab=function(a){var b={},c=a.api.V();
c.Ba&&g.uO(b,c.loaderUrl);g.EO(a.api,"addEmbedsConversionTrackingParams",[b]);return g.ni(a.api.getVideoUrl(),g.tO(b,"emb_imp_woyt"))},d6=function(a){g.W.call(this,{F:"div",
Ga:["ytp-mobile-a11y-hidden-seek-button"],W:[{F:"button",Ga:["ytp-mobile-a11y-hidden-seek-button-rewind","ytp-button"],X:{"aria-label":"Rewind 10 seconds","aria-hidden":"false"}},{F:"button",Ga:["ytp-mobile-a11y-hidden-seek-button-forward","ytp-button"],X:{"aria-label":"Fast forward 10 seconds","aria-hidden":"false"}}]});this.api=a;this.j=this.Ea("ytp-mobile-a11y-hidden-seek-button-rewind");this.forwardButton=this.Ea("ytp-mobile-a11y-hidden-seek-button-forward");this.api.qb(this.j,this,141902);this.api.qb(this.forwardButton,
this,141903);this.N(this.api,"presentingplayerstatechange",this.Qh);this.N(this.j,"click",this.u);this.N(this.forwardButton,"click",this.B);this.Qh()},e6=function(a){g.W.call(this,{F:"div",
K:"ytp-muted-autoplay-endscreen-overlay",W:[{F:"div",K:"ytp-muted-autoplay-end-panel",W:[{F:"div",K:"ytp-muted-autoplay-end-text",qa:"{{text}}"}]}]});this.api=a;this.B=this.Ea("ytp-muted-autoplay-end-panel");this.j=new g.uQ(this.api);g.H(this,this.j);this.j.Ca(this.B,0);this.api.qb(this.element,this,52428);this.N(this.api,"presentingplayerstatechange",this.u);this.Qa("click",this.onClick);this.hide()},f6=function(a){g.W.call(this,{F:"div",
K:"ytp-muted-autoplay-overlay",W:[{F:"div",K:"ytp-muted-autoplay-bottom-buttons",W:[{F:"button",Ga:["ytp-muted-autoplay-equalizer","ytp-button"],W:[{F:"div",Ga:["ytp-muted-autoplay-equalizer-icon"],W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},W:[{F:"g",X:{fill:"#fff"},W:[{F:"rect",K:"ytp-equalizer-bar-left",X:{height:"9",width:"4",x:"1",y:"7"}},{F:"rect",K:"ytp-equalizer-bar-middle",X:{height:"14",width:"4",x:"6",y:"2"}},{F:"rect",K:"ytp-equalizer-bar-right",X:{height:"12",
width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.api=a;this.bottomButtons=this.Ea("ytp-muted-autoplay-bottom-buttons");this.Ea("ytp-muted-autoplay-equalizer");this.B=new g.io(this.u,4E3,this);a.qb(this.element,this,39306);this.N(a,"presentingplayerstatechange",this.j);this.N(a,"onMutedAutoplayStarts",this.j);this.Qa("click",this.onClick);this.hide()},g6=function(a,b){g.W.call(this,{F:"div",
K:"ytp-pause-overlay",X:{tabIndex:"-1"}});var c=this;this.api=a;this.j=b;this.D=new g.yE(this);this.C=new g.QM(this,1E3,!1,100,function(){c.u.u=!1},function(){c.u.u=!0});
this.B=!1;this.expandButton=new g.W({F:"button",Ga:["ytp-button","ytp-expand"],qa:this.j.De()?"More shorts":"More videos"});"0"===a.V().controlsType&&g.qo(a.getRootNode(),"ytp-pause-overlay-controls-hidden");g.H(this,this.D);g.H(this,this.C);var d=new g.W({F:"button",Ga:["ytp-button","ytp-collapse"],X:{"aria-label":this.j.De()?"Hide more shorts":"Hide more videos"},W:[{F:"div",K:"ytp-collapse-icon",W:[g.tM()]}]});g.H(this,d);d.Ca(this.element);d.Qa("click",this.I,this);g.H(this,this.expandButton);
this.expandButton.Ca(this.element);this.expandButton.Qa("click",this.J,this);this.u=new g.x2(a,b);g.H(this,this.u);this.u.u=!1;this.u.Ca(this.element);this.j.De()&&this.api.qb(this.element,this,157212);this.D.N(this.api,"presentingplayerstatechange",this.Yc);this.hide()},qab=function(a){var b=a.V();
g.W.call(this,{F:"a",Ga:["ytp-watermark","yt-uix-sessionlink"],X:{target:b.T,href:"{{url}}","aria-label":g.CK("Watch on $WEBSITE",{WEBSITE:g.$G(b)}),"data-sessionlink":"feature=player-watermark"},W:[hab()]});this.api=a;this.j=null;this.u=!1;this.state=a.Gb();a.qb(this.element,this,76758);this.N(a,"videodatachange",this.bV);this.N(a,"videodatachange",this.onVideoDataChange);this.N(a,"presentingplayerstatechange",this.onStateChange);this.N(a,"appresize",this.Ab);this.Cc(this.state);this.onVideoDataChange();
this.Ab(a.fb().getPlayerSize())},h6=function(a){g.W.call(this,{F:"div",
Ga:["ytp-player-content","ytp-iv-player-content"],W:[{F:"div",K:"ytp-countdown-timer",W:[{F:"svg",X:{height:"100%",version:"1.1",viewBox:"0 0 72 72",width:"100%"},W:[{F:"circle",K:"ytp-svg-countdown-timer-ring",X:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-dasharray":"211","stroke-dashoffset":"-211","stroke-width":"4",transform:"rotate(-90)"}},{F:"circle",K:"ytp-svg-countdown-timer-background",X:{cx:"-36",cy:"36","fill-opacity":"0",r:"33.5",stroke:"#FFFFFF","stroke-opacity":"0.3",
"stroke-width":"4",transform:"rotate(-90)"}}]},{F:"span",K:"ytp-countdown-timer-time",qa:"{{duration}}"}]}]});this.api=a;this.I=this.Ea("ytp-svg-countdown-timer-ring");this.j=null;this.C=this.B=0;this.u=!1;this.D=0;this.api.qb(this.element,this,159628)},sab=function(a){a.j||(a.B=5E3,a.C=(0,g.R)(),a.j=new g.go(function(){rab(a)},null),rab(a))},rab=function(a){if(!a.u){var b=Math.min((0,g.R)()-a.C,a.B);
var c=a.B-b;b=0===a.B?0:Math.max(c/a.B,0);c=Math.round(c/1E3);a.I.setAttribute("stroke-dashoffset",""+-211*(b+1));a.updateValue("duration",c);0>=b&&a.j?i6(a):a.j&&a.j.start()}},i6=function(a){a.j&&(a.j.dispose(),a.j=null,a.u=!1)},uab=function(a){g.WP.call(this,a);
this.G=a;this.j=new g.yE(this);this.u=null;this.J=!1;this.countdownTimer=null;this.Z=!1;tab(this);g.H(this,this.j);this.load()},wab=function(a){var b=g.R2a(a.G);
b!==a.Z&&(a.Z=b,a.I&&(a.I.dispose(),a.I=null),a.C&&(a.C.dispose(),a.C=null),a.D&&(a.D.dispose(),a.D=null),a.u&&(a.u.stop(),a.u.dispose(),a.u=null),b&&(b=g.HO(a.G),b.De()&&(a.D=new g.W({F:"div",K:"ytp-pause-overlay-backdrop",X:{tabIndex:"-1"}}),g.H(a,a.D),g.oP(a.G,a.D.element,4),a.u=new g.QM(a.D,1E3,!1,100),g.H(a,a.u),a.D.hide()),a.C=new g6(a.G,b),g.H(a,a.C),a.I=new g.W({F:"div",K:"ytp-pause-overlay-container",X:{tabIndex:"-1"},W:[a.C]}),g.H(a,a.I),g.oP(a.G,a.I.element,4),vab(a,a.G.Gb())))},vab=function(a,
b){a.u&&(!g.U(b,4)&&!g.U(b,2)||g.U(b,1024)?a.u.hide():a.u.show())},tab=function(a){var b=a.G;
if(b.S("embeds_enable_shorts_branded_ui")){var c;a=!(null==(c=g.HO(b))||!c.Lj());g.uo(b.getRootNode(),"ytp-shorts-mode",a);if(c=b.getVideoData())c.oN=a}},j6=function(a,b){a={adSource:"EMBEDS_AD_SOURCE_YOUTUBE",
breakType:0===a.G.getCurrentTime()?"EMBEDS_AD_BREAK_TYPE_PRE_ROLL":0===a.G.getPlayerState()?"EMBEDS_AD_BREAK_TYPE_POST_ROLL":"EMBEDS_AD_BREAK_TYPE_MID_ROLL",embedUrl:g.Lea(a.G.V().loaderUrl),eventType:b,youtubeHost:g.hi(a.G.V().Aa)||""};g.pw("embedsAdEvent",a)};
g.v(iab,g.W);g.k=iab.prototype;g.k.hide=function(){this.I=!0;g.W.prototype.hide.call(this)};
g.k.show=function(){this.I=!1;g.W.prototype.show.call(this)};
g.k.isHidden=function(){return this.I};
g.k.bW=function(){this.scrollTo(this.u-this.containerWidth)};
g.k.cW=function(){this.scrollTo(this.u+this.containerWidth)};
g.k.resize=function(a,b){var c=this.api.V(),d=16/9,e=650<=a.width,f=480>a.width||290>a.height,h=Math.min(this.suggestionData.length,this.B.length);if(150>=Math.min(a.width,a.height)||0===h||!c.td)this.hide();else{var l;if(e){var m=l=28;this.j=16}else this.j=m=l=8;if(f){var n=6;e=14;var p=12;f=24;c=12}else n=8,e=18,p=16,f=36,c=16;a=a.width-(48+l+m);l=Math.ceil(a/150);l=Math.min(3,l);l=a/l-this.j;m=Math.floor(l/d);b&&m+100>b&&50<l&&(m=Math.max(b,50/d),l=Math.ceil(a/(d*(m-100)+this.j)),l=a/l-this.j,
m=Math.floor(l/d));50>l||g.lP(this.api)?this.hide():this.show();for(b=0;b<h;b++){d=this.B[b];var q=d.Ea("ytp-suggestion-image");q.style.width=l+"px";q.style.height=m+"px";d.Ea("ytp-suggestion-title").style.width=l+"px";d.Ea("ytp-suggestion-author").style.width=l+"px";d=d.Ea("ytp-suggestion-duration");d.style.display=d&&100>l?"none":""}h=e+n+p+4;this.D=h+c+(m-f)/2;this.suggestions.element.style.height=m+h+"px";this.tileWidth=l;this.containerWidth=a;this.u=0;this.suggestions.element.scrollLeft=-0;jab(this)}};
g.k.onVideoDataChange=function(){var a=this.api.getVideoData(),b=this.api.V();this.J=a.D?!1:b.u;a.suggestions?this.suggestionData=g.Fm(a.suggestions,function(c){return c&&!c.playlistId}):this.suggestionData.length=0;
kab(this);a.D?this.title.update({title:g.CK("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:a.author})}):this.title.update({title:"More videos on YouTube"})};
g.k.scrollTo=function(a){a=g.qe(a,this.containerWidth-this.suggestionData.length*(this.tileWidth+this.j),0);this.T.start(this.u,a,1E3);this.u=a;jab(this)};g.v(b6,g.BQ);b6.prototype.show=function(){g.BQ.prototype.show.call(this);mab(this,this.api.fb().getPlayerSize())};
b6.prototype.resize=function(a){g.BQ.prototype.resize.call(this,a);this.j&&(mab(this,a),g.uo(this.element,"related-on-error-overlay-visible",!this.j.isHidden()))};
b6.prototype.u=function(a){g.BQ.prototype.u.call(this,a);var b=this.api.getVideoData();if(b.oG||b.playerErrorMessageRenderer)(a=b.oG)?oab(this,a):b.playerErrorMessageRenderer&&oab(this,b.playerErrorMessageRenderer);else{var c;a.El&&(b.Bv?nab(b.Bv)?c=g.YA(b.Bv):c=g.CQ(g.XA(b.Bv)):c=g.CQ(a.El),this.Td(c,"subreason"))}};g.v(c6,g.W);c6.prototype.Qh=function(){this.api.Gb().isCued()||(this.hide(),this.api.Sa(this.element,!1))};
c6.prototype.j=function(){var a=this.api.getVideoData(),b=this.api.V(),c=this.api.getVideoData().D,d=b.Bd,e=!b.td,f=this.u,h=f.Lj()&&b.S("embeds_enable_shorts_branded_ui");f=f.Ig();var l=g.PG(b);b=b.j;d||f||c||e||l||b||h||!a.videoId?(this.hide(),this.api.Sa(this.element,!1)):(a=pab(this),this.updateValue("url",a),this.show())};
c6.prototype.onClick=function(a){var b=pab(this);g.xQ(b,this.api,a);this.api.rb(this.element)};
c6.prototype.show=function(){this.api.Gb().isCued()&&(g.W.prototype.show.call(this),this.api.Kj(this.element)&&this.api.Sa(this.element,!0))};g.v(d6,g.W);d6.prototype.Qh=function(){var a=this.api.Gb();!this.api.Yg()||g.U(a,2)&&g.iP(this.api)||g.U(a,64)?(this.api.Sa(this.j,!1),this.api.Sa(this.forwardButton,!1),this.hide()):(this.show(),this.api.Sa(this.j,!0),this.api.Sa(this.forwardButton,!0))};
d6.prototype.u=function(){this.api.seekBy(-10*this.api.getPlaybackRate());this.api.rb(this.j)};
d6.prototype.B=function(){this.api.seekBy(10*this.api.getPlaybackRate());this.api.rb(this.forwardButton)};g.v(e6,g.W);e6.prototype.u=function(){var a=this.api.Gb(),b=this.api.getVideoData();this.api.V().S("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.U(a,2)&&!this.tb?(this.show(),this.j.show(),a=this.api.getVideoData(),this.updateValue("text",a.fQ),g.uo(this.element,"ytp-muted-autoplay-show-end-panel",!0),this.api.Sa(this.element,this.tb),this.api.Oa("onMutedAutoplayEnds")):this.hide())};
e6.prototype.onClick=function(){var a=this.api.getVideoData(),b=this.api.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;g.zI(a);this.api.loadVideoById(a.videoId,b);this.api.rb(this.element);this.hide()};g.v(f6,g.W);f6.prototype.j=function(){var a=this.api.Gb(),b=this.api.getVideoData();this.api.V().S("embeds_enable_muted_autoplay")&&b.mutedAutoplay&&!g.U(a,2)?this.tb||(g.W.prototype.show.call(this),this.B.start(),this.api.Sa(this.element,this.tb)):this.hide()};
f6.prototype.u=function(){g.uo(this.element,"ytp-muted-autoplay-hide-watermark",!0)};
f6.prototype.onClick=function(){var a=this.api.getVideoData(),b=this.api.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;g.zI(a);this.api.loadVideoById(a.videoId,b);this.api.rb(this.element)};g.v(g6,g.W);g6.prototype.hide=function(){g.so(this.api.getRootNode(),"ytp-expand-pause-overlay");g.W.prototype.hide.call(this)};
g6.prototype.I=function(){this.B=!0;g.so(this.api.getRootNode(),"ytp-expand-pause-overlay");this.j.De()&&this.api.Sa(this.element,!1);this.expandButton.focus()};
g6.prototype.J=function(){this.B=!1;g.qo(this.api.getRootNode(),"ytp-expand-pause-overlay");this.j.De()&&this.api.Sa(this.element,!0);this.focus()};
g6.prototype.Yc=function(a){g.U(a.state,1)||g.U(a.state,16)||g.U(a.state,32)||(!g.U(a.state,4)||g.U(a.state,2)||g.U(a.state,1024)?(this.B||this.j.De()&&this.api.Sa(this.element,!1),this.C.hide()):0<this.u.suggestionData.length&&(this.B||(g.qo(this.api.getRootNode(),"ytp-expand-pause-overlay"),g.y2(this.u),this.j.De()&&this.api.Sa(this.element,!0)),this.C.show()))};g.v(qab,g.W);g.k=qab.prototype;g.k.bV=function(){var a=this.api.getVideoData(),b=this.api.getVideoData(1).D,c=this.api.V();a=(a.mutedAutoplay||c.Bd&&!g.U(this.state,2))&&!(b&&c.Z);g.dM(this,a);this.api.Sa(this.element,a)};
g.k.onStateChange=function(a){this.Cc(a.state)};
g.k.Cc=function(a){this.state!==a&&(this.state=a);this.bV()};
g.k.onVideoDataChange=function(){var a=this.api.V();a.j&&g.qo(this.element,"ytp-no-hover");this.api.getVideoData().videoId&&!a.j?(a=this.api.getVideoUrl(!0,!1,!1,!0),this.updateValue("url",a),this.j||(this.j=this.Qa("click",this.onClick))):this.j&&(this.updateValue("url",null),this.Ac(this.j),this.j=null)};
g.k.onClick=function(a){var b=this.api.getVideoUrl(!g.fN(a),!1,!0,!0);g.xQ(b,this.api,a);this.api.rb(this.element)};
g.k.Ab=function(a){if((a=480>a.width)&&!this.u||!a&&this.u){var b=new g.W(hab()),c=this.Ea("ytp-watermark");g.uo(c,"ytp-watermark-small",a);g.Xe(c);b.Ca(c);this.u=a}};g.v(h6,g.W);h6.prototype.show=function(){g.W.prototype.show.call(this);this.api.Sa(this.element,!0)};
h6.prototype.click=function(){this.api.rb(this.element)};
h6.prototype.ra=function(){i6(this);g.W.prototype.ra.call(this)};g.v(uab,g.WP);g.k=uab.prototype;g.k.Zj=function(){return!1};
g.k.create=function(){var a=this.G.V(),b=g.HO(this.G),c,d=null==(c=this.G.getVideoData())?void 0:c.clientPlaybackNonce;d&&g.zB("cpn",d);wab(this);a.S("embeds_enable_muted_autoplay")&&(this.B=new f6(this.G),g.H(this,this.B),g.oP(this.G,this.B.element,4),this.oa=new e6(this.G),g.H(this,this.oa),g.oP(this.G,this.oa.element,4));if(a.Bd||this.B)this.watermark=new qab(this.G),g.H(this,this.watermark),g.oP(this.G,this.watermark.element,8);this.T=new c6(this.G,b);g.H(this,this.T);g.oP(this.G,this.T.element,
8);a.isMobile&&(this.ea=new d6(this.G),g.H(this,this.ea),g.oP(this.G,this.ea.element,4));this.j.N(this.G,"appresize",this.Ab);this.j.N(this.G,"presentingplayerstatechange",this.Qh);this.j.N(this.G,"videodatachange",this.onVideoDataChange);this.j.N(this.G,"onMutedAutoplayStarts",this.onMutedAutoplayStarts);this.j.N(this.G,"onAdStart",this.onAdStart);this.j.N(this.G,"onAdComplete",this.onAdComplete);this.j.N(this.G,"onAdSkip",this.onAdSkip);this.j.N(this.G,"onAdStateChange",this.onAdStateChange);if(this.J=
g.Ov(g.XG(a)))this.countdownTimer=new h6(this.G),g.H(this,this.countdownTimer),g.oP(this.G,this.countdownTimer.element,4),this.countdownTimer.hide(),this.j.N(this.G,g.PA("embeds"),this.onCueRangeEnter),this.j.N(this.G,g.QA("embeds"),this.onCueRangeExit);this.dc(this.G.Gb());this.player.Tf("embed")};
g.k.onCueRangeEnter=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(this.countdownTimer.show(),sab(this.countdownTimer))};
g.k.onCueRangeExit=function(a){"countdown timer"===a.getId()&&this.countdownTimer&&(i6(this.countdownTimer),this.countdownTimer.hide())};
g.k.Ab=function(){var a=this.G.fb().getPlayerSize();this.Kf&&this.Kf.resize(a)};
g.k.Qh=function(a){this.dc(a.state)};
g.k.dc=function(a){g.U(a,128)?(this.Kf||(this.Kf=new b6(this.G),g.H(this,this.Kf),g.oP(this.G,this.Kf.element,4)),this.Kf.u(a.getData()),this.Kf.show(),g.qo(this.G.getRootNode(),"ytp-embed-error")):this.Kf&&(this.Kf.dispose(),this.Kf=null,g.so(this.G.getRootNode(),"ytp-embed-error"));if(this.countdownTimer&&this.countdownTimer.j)if(g.U(a,64))this.countdownTimer.hide(),i6(this.countdownTimer);else if(g.$K(a)){var b=this.countdownTimer;b.u||(b.u=!0,b.D=(0,g.R)())}else a.Tc()&&this.countdownTimer.u&&
(b=this.countdownTimer,b.u&&(b.C+=(0,g.R)()-b.D,b.u=!1,rab(b)));vab(this,a)};
g.k.onMutedAutoplayStarts=function(){this.G.getVideoData().mutedAutoplay&&this.B&&this.watermark&&this.watermark.Ca(this.B.bottomButtons,0)};
g.k.onVideoDataChange=function(a,b){var c=this.tA!==b.videoId;a=!c&&"dataloaded"===a;var d,e={isShortsModeEnabled:null==(d=g.HO(this.G))?void 0:d.Lj()};g.pw("embedsVideoDataDidChange",{clientPlaybackNonce:b.clientPlaybackNonce,isReload:a,runtimeEnabledFeatures:e});c&&(this.tA=b.videoId,this.XM(b),tab(this),wab(this));this.watermark&&this.B&&!b.mutedAutoplay&&g.cf(this.B.element,this.watermark.element)&&g.oP(this.G,this.watermark.element,8);this.G.V().j&&this.C&&this.C.detach()};
g.k.XM=function(a){this.J&&(this.G.Ff("embeds"),a.isAd()||5>a.endSeconds||g.lP(this.G)||(a=Math.max(1E3*(a.endSeconds-5),0),a=new g.NA(a,a+5E3,{id:"countdown timer",namespace:"embeds"}),this.G.xe([a]),this.countdownTimer&&(this.countdownTimer.show(),this.countdownTimer.click(),this.countdownTimer.hide())))};
g.k.onAdStart=function(){j6(this,"EMBEDS_AD_EVENT_TYPE_AD_STARTED")};
g.k.onAdComplete=function(){j6(this,"EMBEDS_AD_EVENT_TYPE_AD_COMPLETED")};
g.k.onAdSkip=function(){j6(this,"EMBEDS_AD_EVENT_TYPE_AD_SKIPPED")};
g.k.onAdStateChange=function(a){2===a&&j6(this,"EMBEDS_AD_EVENT_TYPE_AD_PAUSED")};g.VP("embed",uab);})(_yt_player);