astroport/doc/Turning the database inside.../fU9hR3kiOK0_data/embed.js

100 lines
29 KiB
JavaScript

(function(g){var window=this;var Jua=function(a,b){var c=(b-a.o)/(a.u-a.o);if(0>=c)return 0;if(1<=c)return 1;for(var d=0,e=1,f=0,k=0;8>k;k++){f=g.Nn(a,c);var l=(g.Nn(a,c+1E-6)-f)/1E-6;if(1E-6>Math.abs(f-b))return c;if(1E-6>Math.abs(l))break;else f<b?d=c:e=c,c-=(f-b)/l}for(k=0;1E-6<Math.abs(f-b)&&8>k;k++)f<b?(d=c,c=(c+e)/2):(e=c,c=(c+d)/2),f=g.Nn(a,c);return c},Kua=function(){return g.X?{D:"div",
Y:["ytp-icon","ytp-icon-small-close"]}:{D:"svg",O:{height:"100%",viewBox:"0 0 16 16",width:"100%"},J:[{D:"path",O:{d:"M13 4L12 3 8 7 4 3 3 4 7 8 3 12 4 13 8 9 12 13 13 12 9 8z",fill:"#fff"}}]}},D4=function(){return g.X?{D:"div",
Y:["ytp-icon","ytp-icon-watermark"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"0 0 110 26",width:"100%"},J:[{D:"path",Na:!0,H:"ytp-svg-fill",O:{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"}}]}},
Lua=function(){return g.X?{D:"div",
Y:["ytp-icon","ytp-icon-youtube-logo-redirect"]}:{D:"svg",O:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",O:{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"}}]}},E4=function(a){g.A.call(this);
this.B=a;this.A=new g.Mn(0,0,.4,0,.2,1,1,1);this.u=new g.rn(this.w,window,this);g.B(this,this.u)},F4=function(a){g.R.call(this,{D:"div",
H:"ytp-related-on-error-overlay"});this.U=this.A=0;this.u=a;this.ba=new g.Gr(this);g.B(this,this.ba);a=a.N();this.C=[];this.w=[];this.F=0;this.aa=a.u;this.R=new g.R({D:"h2",H:"ytp-related-title",W:"{{title}}"});g.B(this,this.R);this.R.ca(this.element);this.G=new g.R({D:"div",H:"ytp-suggestions"});g.B(this,this.G);this.G.ca(this.element);this.M=new g.R({D:"button",Y:["ytp-button","ytp-previous"],O:{"aria-label":"Afficher les suggestions de vid\u00e9os pr\u00e9c\u00e9dentes"},J:[g.BM()]});g.B(this,
this.M);this.M.ca(this.element);this.M.ka("click",this.AI,this);this.da=new E4((0,g.x)(this.xz,this));g.B(this,this.da);this.Z=this.B=0;this.V=!0;for(var b=0;16>b;b++){var c=new g.R({D:"a",H:"ytp-suggestion-link",O:{href:"{{link}}",target:a.C,"aria-label":"{{aria_label}}"},J:[{D:"div",H:"ytp-suggestion-image",J:[{D:"div",O:{"data-is-live":"{{is_live}}"},H:"ytp-suggestion-duration",W:"{{duration}}"}]},{D:"div",H:"ytp-suggestion-title",O:{title:"{{hover_title}}"},W:"{{title}}"},{D:"div",H:"ytp-suggestion-author",
W:"{{views_or_author}}"}]});g.B(this,c);c.ca(this.G.element);var d=c.o["ytp-suggestion-link"];g.sh(d,"transitionDelay",b/20+"s");this.ba.L(d,"click",g.Qa(this.BI,b));this.C.push(c)}this.I=new g.R({D:"button",Y:["ytp-button","ytp-next"],O:{"aria-label":"Afficher plus de suggestions de vid\u00e9os"},J:[g.CM()]});g.B(this,this.I);this.I.ca(this.element);this.I.ka("click",this.zI,this);this.ba.L(this.u,"videodatachange",this.wz);Mua(this,g.QK(this.u).getPlayerSize());this.wz();this.show()},Mua=function(a,
b,c){var d=a.u.N(),e=16/9,f=650<=b.width,k=480>b.width||290>b.height,l=Math.min(a.w.length,a.C.length);
if(150>=Math.min(b.width,b.height)||0==l||!d.Aa)a.hide();else{var m;if(f){var n=m=28;a.A=16}else n=m=8,a.A=8;if(k){var p=6;f=14;var t=12;k=24;d=12}else p=8,f=18,t=16,k=36,d=16;b=b.width-(48+m+n);m=Math.ceil(b/150);m=Math.min(3,m);m=b/m-a.A;n=Math.floor(m/e);c&&n+100>c&&50<m&&(n=Math.max(c,50/e),m=Math.ceil(b/(e*(n-100)+a.A)),m=b/m-a.A,n=Math.floor(m/e));50>m||g.SK(a.u)?a.hide():a.show();for(c=0;c<l;c++){e=a.C[c];var u=e.o["ytp-suggestion-image"];u.style.width=m+"px";u.style.height=n+"px";e.o["ytp-suggestion-title"].style.width=
m+"px";e.o["ytp-suggestion-author"].style.width=m+"px";e=e.o["ytp-suggestion-duration"];e.style.display=e&&100>m?"none":""}l=f+p+t+4;a.U=l+d+(n-k)/2;a.G.element.style.height=n+l+"px";a.Z=m;a.F=b;a.B=0;a.xz(0);G4(a)}},Nua=function(a,b){var c=g.Md(b,a.F-a.w.length*(a.Z+a.A),0);
a.da.start(a.B,c,1E3);a.B=c;G4(a)},G4=function(a){a.I.element.style.bottom=a.U+"px";
a.M.element.style.bottom=a.U+"px";var b=a.B,c=a.F-a.w.length*(a.Z+a.A);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},Oua=function(a){for(var b=0;b<a.w.length;b++){var c=b,d=a.w[b].ya();
c=a.C[c];var e=d.shortViewCount?d.shortViewCount:d.author,f=d.kh();g.Ly(a.u.N())&&(f=g.yd(f,g.DH({},"emb_rel_err")));c.element.style.display="";var k=c.o["ytp-suggestion-title"];g.Kn.test(d.title)?k.dir="rtl":g.Zqa.test(d.title)&&(k.dir="ltr");k=c.o["ytp-suggestion-author"];g.Kn.test(e)?k.dir="rtl":g.Zqa.test(e)&&(k.dir="ltr");k=void 0;d.va?k="En direct":k=d.lengthSeconds?g.hM(d.lengthSeconds):"";c.update({views_or_author:e,duration:k,link:f,hover_title:d.title,title:d.title,aria_label:d.Tk||null,
is_live:d.va});c=c.o["ytp-suggestion-image"];d=d.tc();c.style.backgroundImage=d?"url("+d+")":""}for(;b<a.C.length;b++)a.C[b].element.style.display="none";G4(a)},H4=function(a){g.XP.call(this,a);
a=a.N();a=new g.R({D:"a",H:"ytp-small-redirect",O:{href:g.tz(a),target:a.C,"aria-label":"Acc\u00e9der \u00e0 YouTube pour rechercher plus de vid\u00e9os"},J:[Lua()]});a.ca(this.element);g.B(this,a);this.w=new F4(this.api);this.w.ca(this.element);g.B(this,this.w);this.B=1;this.u(g.QK(this.api).getPlayerSize())},Pua=function(a,b){a.o["ytp-error-content"].style.paddingTop="0px";
var c=a.o["ytp-error-content"],d=c.clientHeight;Mua(a.w,b,b.height-d);if(a.api.N().F){var e=g.JM(),f=g.X?{D:"div",Y:["ytp-icon","ytp-icon-youtube-logo-redirect-large"]}:{D:"svg",O:{fill:"#fff",viewBox:"0 0 24 24"},J:[{D:"path",O:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",O:{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"}}]},
k=1;480>b.width||290>b.height?(e={D:"div",Y:["ytp-icon","ytp-icon-error-exclamation-small"]},f=Lua(),k=0):650<=b.width&&(e={D:"div",Y:["ytp-icon","ytp-icon-error-exclamation-large"]},f=g.X?{D:"div",Y:["ytp-icon","ytp-icon-youtube-logo-redirect-extra-large"]}:{D:"svg",O:{fill:"#fff",height:"100%",viewBox:"0 0 24 24",width:"100%"},J:[{D:"path",O:{d:"M0 0h24v24H0V0z",fill:"none"}},{D:"path",O:{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"}}]},
k=2);if(k!==a.B){e={"ytp-error-icon-container":e,"ytp-small-redirect":f};f=g.q(Object.keys(e));for(var l=f.next();!l.done;l=f.next()){l=l.value;var m=g.ce(l,a.element);g.re(m);(new g.R(e[l])).ca(m)}a.B=k}}c.style.paddingTop=(b.height-a.w.element.clientHeight)/2-d/2+"px"},I4=function(a,b){var c=a.N();
g.R.call(this,{D:"button",Y:["ytp-impression-link","ytp-button"]});this.hide();this.u=a;this.B=b;this.A=!1;g.kL(a,this.element,this,96714);var d=this.u.N(),e=this.u.getVideoData().lc,f=d.Ca,k=d.Yf;d=!d.Aa;var l=this.B.Rd();f||k||l||e||d||(g.P(c.experiments,"embeds_impression_link_call_to_action")&&(g.J(this.element,"show-cta-button"),(new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-text",W:"Regarder sur"},{D:"div",H:"ytp-impression-link-logo",J:[D4()]}]})).ca(this.element),
this.show()),g.P(c.experiments,"embeds_impression_link_video_thumbnail")&&Qua(this),g.P(c.experiments,"embeds_impression_link_channel_thumbnail")&&Rua(this),g.P(c.experiments,"embeds_impression_link_occlusion")&&Sua(this),g.P(c.experiments,"embeds_impression_link_hover")&&Tua(this),this.L(a,"presentingplayerstatechange",this.F),this.L(a,"videoplayerreset",this.G),this.L(this.element,"click",this.C))},Qua=function(a){var b,c,d,e,f;
g.Ba(function(k){if(1==k.o)return b=a.u.getVideoData(),g.ta(k,J4(a,b),2);c=k.u;if(!c)return k["return"]();d=c[0];a.w=d;g.J(a.element,"show-video-thumbnail-button");e=new g.R({D:"div",H:"ytp-impression-link-header",W:"Autres contenus YouTube"});e.ca(a.element);f=new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-metadata",J:[{D:"div",H:"ytp-impression-link-title",W:d.title},{D:"div",H:"ytp-impression-link-views-and-duration",W:"{{views_and_duration}}"}]},{D:"div",H:"ytp-impression-link-thumbnail"}]});
f.ca(a.element);K4(a,f,d);L4(a,f,d);a.show();k.o=0})},Rua=function(a){var b,c,d;
g.Ba(function(e){if(1==e.o)return g.ta(e,Uua(a),2);b=e.u;if(!b)return e["return"]();a.w=b;g.J(a.element,"show-channel-thumbnail-button");c=new g.R({D:"div",H:"ytp-impression-link-header",W:"Autres contenus YouTube"});c.ca(a.element);d=new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-metadata",J:[{D:"div",H:"ytp-impression-link-title",W:b.pl},{D:"div",H:"ytp-impression-link-subscribers",W:b.expandedSubtitle}]},{D:"div",H:"ytp-impression-link-thumbnail"}]});d.ca(a.element);
K4(a,d,b);a.show();e.o=0})},Sua=function(a){var b,c,d,e,f,k,l,m,n,p;
g.Ba(function(t){if(1==t.o)return b=a.u.getVideoData(),g.ta(t,J4(a,b),2);c=t.u;if(!c)return t["return"]();d=c[0];a.w=d;g.J(a.element,"show-occlusion-video-thumbnail-button");e=new g.R({D:"div",H:"ytp-impression-link-header",W:"Autres contenus YouTube"});e.ca(a.element);f=new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-metadata",J:[{D:"div",H:"ytp-impression-link-title",W:d.title},{D:"div",H:"ytp-impression-link-author",W:d.author},{D:"div",H:"ytp-impression-link-views",
W:"{{views}}"}]},{D:"div",H:"ytp-impression-link-thumbnail-and-duration",J:[{D:"div",H:"ytp-impression-link-thumbnail"},{D:"div",H:"ytp-impression-link-duration",W:"{{duration}}"}]}]});f.ca(a.element);K4(a,f,d);L4(a,f,d);k=new g.R({D:"button",Y:["ytp-button","ytp-impression-link-close"],J:[{D:"div",Y:["ytp-impression-link-close-icon"],J:[Kua()]}]});k.ca(a.element);k.ka("click",function(u){a.hide();g.oL(a.u,a.element,!1);u.stopPropagation()},a);
l=function(u){!g.q(u).next().value.isIntersecting&&a.element&&a.show()};
try{m={threshold:.8},n=new IntersectionObserver(l,m),p=document.querySelector("body"),n.observe(p)}catch(u){g.M(u)}t.o=0})},Tua=function(a){var b,c,d,e,f;
g.Ba(function(k){if(1==k.o)return b=a.u.getVideoData(),g.ta(k,J4(a,b),2);c=k.u;if(!c)return k["return"]();d=c[0];a.w=d;g.J(a.element,"show-video-thumbnail-expanding-button");a.L(a.element,"mouseenter",function(){g.J(a.element,"show-expanded-metadata");g.Dn(a.element,"show-collapsed-metadata")});
a.L(a.element,"mouseleave",function(){g.Dn(a.element,"show-expanded-metadata");g.J(a.element,"show-collapsed-metadata")});
e=new g.R({D:"div",H:"ytp-impression-link-header",W:"Plus de vid\u00e9os"});e.ca(a.element);f=new g.R({D:"div",H:"ytp-impression-link-content",J:[{D:"div",H:"ytp-impression-link-metadata",J:[{D:"div",H:"ytp-impression-link-title",W:d.title},{D:"div",H:"ytp-impression-link-views-and-duration",W:"{{views_and_duration}}"}]},{D:"div",H:"ytp-impression-link-thumbnail"}]});f.ca(a.element);K4(a,f,d);L4(a,f,d);a.show();k.o=0})},K4=function(a,b,c){a=g.P(a.u.N().experiments,"embeds_impression_link_channel_thumbnail")?
c.Id:c.tc();
b.o["ytp-impression-link-thumbnail"].style.backgroundImage=a?"url("+a+")":""},L4=function(a,b,c){a=a.u.N();
var d="";c.va?d="En direct":c.lengthSeconds&&(d=g.hM(c.lengthSeconds));c=c.shortViewCount?c.shortViewCount:"";var e="";c&&d?e=c+" \u2022 "+d:c?e=c:d&&(e=d);g.P(a.experiments,"embeds_impression_link_occlusion")?b.update({views:c,duration:d}):b.update({views_and_duration:e})},Vua=function(a,b){var c,d,e,f,k,l,m,n;
return g.Ba(function(p){return 1==p.o?(c=a.u.N(),d={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},e={},c.sendVisitorIdHeader&&b.visitorData&&(e["X-Goog-Visitor-Id"]=b.visitorData),(f=g.At(c.experiments,"debug_dapper_trace_id"))&&(e["X-Google-DapperTraceInfo"]=f),(k=g.At(c.experiments,"debug_sherlog_username"))&&(e["X-Youtube-Sherlog-Username"]=k),0<Object.keys(e).length&&(d.headers=e),l=g.BH(c,b,g.QK(a.u).getPlayerSize(),a.u.getVisibilityState(),0,""),l=g.yd(l,{is_embed_preview:"1"}),
m=function(t){return g.M(t)},g.ta(p,g.Kx(g.hr,l,d).then(void 0,m),2)):(n=p.u)&&n.responseText?p["return"](n):p["return"](null)})},J4=function(a,b){var c,d,e,f,k,l;
return g.Ba(function(m){if(1==m.o)return g.ta(m,Vua(a,b),2);c=m.u;if(!c)return m["return"](null);d=g.kq(c.responseText);e=g.lq(d.rvs);f=(0,g.ue)(e,function(n){return n&&!n.list});
k=a.u.N();return(l=(0,g.Cc)(f,function(n){n=g.jM(k,n);g.B(a,n);return n}))&&0!=l.length?m["return"](l):m["return"](null)})},Uua=function(a){var b,c,d,e,f,k,l,m;
return g.Ba(function(n){if(1==n.o)return b=a.u.getVideoData(),g.ta(n,J4(a,b),2);if(3!=n.o){c=n.u;if(!c)return n["return"](null);d=b.pl;e=c.filter(function(p){return null!==p&&p.author!==d});
return(f=e[0])?g.ta(n,Vua(a,f),3):n["return"](null)}k=n.u;if(!k)return n["return"](null);l=g.kq(k.responseText);m=new g.aB(a.u.N(),l);return n["return"](m)})},M4=function(a){g.R.call(this,{D:"div",
H:"ytp-muted-autoplay-endscreen-overlay",J:[{D:"div",H:"ytp-muted-autoplay-end-panel",J:[{D:"div",H:"ytp-muted-autoplay-end-text",W:"{{text}}"}]}]});this.u=a;this.A=this.o["ytp-muted-autoplay-end-panel"];this.w=new g.nN(a);g.B(this,this.w);this.w.ca(this.A,0);g.kL(a,this.element,this,52428);this.L(a,"presentingplayerstatechange",this.C);this.ka("click",this.B);this.hide()},N4=function(a){g.R.call(this,{D:"div",
H:"ytp-muted-autoplay-overlay",J:[{D:"div",H:"ytp-muted-autoplay-bottom-buttons",J:[{D:"button",Y:["ytp-muted-autoplay-equalizer","ytp-button"],J:[{D:"div",Y:["ytp-muted-autoplay-equalizer-icon"],J:[g.X?{D:"div",Y:["ytp-icon","ytp-icon-equalizer-animation"]}:{D:"svg",O:{height:"100%",version:"1.1",viewBox:"-4 -4 24 24",width:"100%"},J:[{D:"g",O:{fill:"#fff"},J:[{D:"rect",H:"ytp-equalizer-bar-left",O:{height:"9",width:"4",x:"1",y:"7"}},{D:"rect",H:"ytp-equalizer-bar-middle",O:{height:"14",width:"4",
x:"6",y:"2"}},{D:"rect",H:"ytp-equalizer-bar-right",O:{height:"12",width:"4",x:"11",y:"4"}}]}]}]}]}]}]});this.u=a;this.bottomButtons=this.o["ytp-muted-autoplay-bottom-buttons"];this.A=this.o["ytp-muted-autoplay-equalizer"];this.B=new g.I(this.C,4E3,this);g.kL(a,this.element,this,39306);this.L(a,"presentingplayerstatechange",this.w);this.L(a,"onMutedAutoplayStarts",this.w);this.ka("click",this.F);this.hide()},O4=function(a,b){g.R.call(this,{D:"div",
H:"ytp-pause-overlay"});this.u=a;this.aa=b;this.A=new g.Gr(this);g.B(this,this.A);this.V=new g.lN(this,1E3,!1,100);g.B(this,this.V);var c=a.N();"0"==c.controlsType&&g.J(a.getRootNode(),"ytp-pause-overlay-controls-hidden");this.C=[];this.w=[];this.F=0;this.da=c.u;this.Z=!1;this.oa=0;this.U=new g.R({D:"h2",H:"ytp-related-title",W:"{{title}}"});g.B(this,this.U);this.U.ca(this.element);this.G=new g.R({D:"div",H:"ytp-suggestions"});g.B(this,this.G);this.G.ca(this.element);this.R=new g.R({D:"button",Y:["ytp-button",
"ytp-previous"],O:{"aria-label":"Afficher les suggestions de vid\u00e9os pr\u00e9c\u00e9dentes"},J:[g.BM()]});g.B(this,this.R);this.R.ca(this.element);this.R.ka("click",this.vI,this);var d=g.Dt||g.vh?{style:"will-change: opacity"}:null;this.ga=new E4((0,g.x)(this.vz,this));g.B(this,this.ga);for(var e=this.ma=this.ba=this.B=0;16>e;e++){var f=new g.R({D:"a",H:"ytp-suggestion-link",O:{href:"{{link}}",target:c.C,"aria-label":"{{aria_label}}"},J:[{D:"div",H:"ytp-suggestion-image"},{D:"div",H:"ytp-suggestion-overlay",
O:d,J:[{D:"div",H:"ytp-suggestion-title",W:"{{title}}"},{D:"div",H:"ytp-suggestion-author",W:"{{author_and_views}}"},{D:"div",O:{"data-is-live":"{{is_live}}"},H:"ytp-suggestion-duration",W:"{{duration}}"}]}]});g.B(this,f);f.ca(this.G.element);var k=f.o["ytp-suggestion-link"];g.sh(k,"transitionDelay",e/20+"s");this.A.L(k,"click",g.Qa(this.wI,e));this.C.push(f)}this.M=new g.R({D:"button",Y:["ytp-button","ytp-next"],O:{"aria-label":"Afficher plus de suggestions de vid\u00e9os"},J:[g.CM()]});g.B(this,
this.M);this.M.ca(this.element);this.M.ka("click",this.uI,this);c=new g.R({D:"button",Y:["ytp-button","ytp-collapse"],O:{"aria-label":'Masquer la section "Plus de vid\u00e9os"'},J:[Kua()]});g.B(this,c);c.ca(this.element);c.ka("click",this.DK,this);this.I=new g.R({D:"button",Y:["ytp-button","ytp-expand"],W:"Plus de vid\u00e9os"});g.B(this,this.I);this.I.ca(this.element);this.I.ka("click",this.EK,this);this.A.L(this.u,"appresize",this.vt);this.A.L(this.u,"fullscreentoggled",this.xI);this.A.L(this.u,
"presentingplayerstatechange",this.yI);this.A.L(this.u,"videodatachange",this.uz);this.vt(g.QK(this.u).getPlayerSize());this.uz()},Wua=function(a,b){var c=g.Md(b,a.F-a.w.length*(a.ba+8),0);
a.ga.start(a.B,c,1E3);a.B=c;P4(a)},P4=function(a){var b=a.aa.kc();
b=a.ma/2+(b?32:16);a.M.element.style.bottom=b+"px";a.R.element.style.bottom=b+"px";b=a.B;var c=a.F-a.w.length*(a.ba+8);g.K(a.element,"ytp-scroll-min",0<=b);g.K(a.element,"ytp-scroll-max",b<=c)},Xua=function(a){for(var b=0;b<a.w.length;b++){var c=a.w[b].ya(),d=a.C[b],e=c.shortViewCount?c.author+" \u2022 "+c.shortViewCount:c.author;
d.element.style.display="";g.Yqa.test(c.title)&&(d.o["ytp-suggestion-title"].dir="rtl");g.Yqa.test(e)&&(d.o["ytp-suggestion-author"].dir="rtl");var f=void 0;c.va?f="En direct":f=c.lengthSeconds?g.hM(c.lengthSeconds):"";var k=c.kh();g.Ly(a.u.N())&&(k=g.yd(k,g.DH({},"emb_rel_pause")));d.update({author_and_views:e,duration:f,link:k,title:c.title,aria_label:c.Tk||null,is_live:c.va});d=d.o["ytp-suggestion-image"];c=c.tc();d.style.backgroundImage=c?"url("+c+")":""}for(;b<a.C.length;b++)a.C[b].element.style.display=
"none";P4(a)},Q4=function(a){var b=a.N();
g.R.call(this,{D:"a",Y:["ytp-watermark","yt-uix-sessionlink"],O:{target:b.C,href:"{{url}}","aria-label":g.gM("Regarder sur $WEBSITE",{WEBSITE:g.fz(b)}),"data-sessionlink":"feature=player-watermark"},J:[D4()]});this.u=a;this.A=null;this.B=!1;this.w=g.PK(a);g.kL(a,this.element,this,76758);this.L(a,"videodatachange",this.wt);this.L(a,"videodatachange",this.zz);this.L(a,"presentingplayerstatechange",this.DI);this.L(a,"appresize",this.yz);b=this.w;this.w!=b&&(this.w=b);this.wt();this.zz();this.yz(g.QK(a).getPlayerSize())},
R4=function(a){g.vL.call(this,a);
this.o=a;this.B=new g.Gr(this);g.B(this,this.B);this.load()},Yua=function(a,b){g.V(b,128)?(a.u||(a.u=new H4(a.o),g.B(a,a.u),g.iL(a.o,a.u.element,4)),a.u.A(b.u),a.u.show(),g.J(a.o.getRootNode(),"ytp-embed-error")):a.u&&(a.u.dispose(),a.u=null,g.Dn(a.o.getRootNode(),"ytp-embed-error"))};
g.r(E4,g.A);E4.prototype.start=function(a,b,c){this.o=a;this.G=b;this.C=c;this.F=(0,g.N)();this.w()};
E4.prototype.w=function(){var a=(0,g.N)()-this.F;var b=this.A;a=Jua(b,a/this.C);if(0==a)b=b.B;else if(1==a)b=b.G;else{var c=g.Od(b.B,b.C,a),d=g.Od(b.C,b.F,a);b=g.Od(b.F,b.G,a);c=g.Od(c,d,a);d=g.Od(d,b,a);b=g.Od(c,d,a)}b=g.Md(b,0,1);this.B((this.G-this.o)*b+this.o);1>b&&this.u.start()};g.r(F4,g.R);g.h=F4.prototype;g.h.hide=function(){this.V=!0;g.R.prototype.hide.call(this)};
g.h.show=function(){this.V=!1;g.R.prototype.show.call(this)};
g.h.isHidden=function(){return this.V};
g.h.zI=function(){Nua(this,this.B-this.F)};
g.h.AI=function(){Nua(this,this.B+this.F)};
g.h.BI=function(a,b){var c=this.w[a],d=c.Ob;if(g.IN(b,this.u,this.aa,d||void 0)){var e=c.ya().videoId;c=c.getPlaylistId();g.rT(this.u.app,e,d,c,void 0,void 0)}};
g.h.wz=function(){var a=this,b=this.u.getVideoData(),c=this.u.N();this.aa=b.lc?!1:c.u;if(b.suggestions){var d=(0,g.ue)(b.suggestions,function(e){return e&&!e.list});
this.w=(0,g.Cc)(d,function(e){e=g.jM(c,e);g.B(a,e);return e})}else this.w.length=0;
Oua(this);b.lc?this.R.update({title:g.gM("Autres vid\u00e9os de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:b.author})}):this.R.update({title:"Plus de vid\u00e9os sur YouTube"})};
g.h.xz=function(a){this.G.element.scrollLeft=-a};g.r(H4,g.XP);H4.prototype.show=function(){g.XP.prototype.show.call(this);Pua(this,g.QK(this.api).getPlayerSize())};
H4.prototype.u=function(a){g.XP.prototype.u.call(this,a);Pua(this,a);g.K(this.element,"related-on-error-overlay-visible",!this.w.isHidden())};
H4.prototype.A=function(a){g.XP.prototype.A.call(this,a);var b=this.api.getVideoData(),c=g.P(this.api.N().experiments,"embeds_enable_sg_misinfo"),d;if(a.dh){if(b.Qn){a:{a=b.Qn;if(a.runs)for(var e=0;e<a.runs.length;e++)if(a.runs[e].navigationEndpoint){a=!0;break a}a=!1}a?d=g.Yz(b.Qn):d=g.YP(g.T(b.Qn))}else d=g.YP(a.dh);this.qb(d,"subreason")}(b=b.Qw)&&c&&(b.reason&&(c=g.Yz(b.reason),this.qb(c,"content")),b.subreason&&(c=g.Yz(b.subreason),this.qb(c,"subreason")))};g.r(I4,g.R);I4.prototype.F=function(){g.PK(this.u).isCued()||(this.hide(),g.oL(this.u,this.element,!1))};
I4.prototype.G=function(){this.A=!0;this.hide();g.oL(this.u,this.element,!1)};
I4.prototype.C=function(a){var b=this.u.N();b=g.P(b.experiments,"embeds_impression_link_channel_thumbnail")?g.tz(b)+this.w.sf:g.P(b.experiments,"embeds_impression_link_call_to_action")?this.u.getVideoUrl():this.w.kh();var c=this.u.N();c=g.P(c.experiments,"embeds_impression_link_call_to_action")?"emb_imp_woyt":g.P(c.experiments,"embeds_impression_link_video_thumbnail")?"emb_imp_rv":g.P(c.experiments,"embeds_impression_link_channel_thumbnail")?"emb_imp_rc":g.P(c.experiments,"embeds_impression_link_occlusion")?
"emb_imp_rv_oc":"emb_imp_rv_ex";b=g.yd(b,g.DH({},c));g.JN(b,this.u,a);g.nL(this.u,this.element)};
I4.prototype.show=function(){g.PK(this.u).isCued()&&!this.A&&(g.R.prototype.show.call(this),g.pL(this.u,this.element)&&g.oL(this.u,this.element,!0))};g.r(M4,g.R);M4.prototype.C=function(){var a=g.PK(this.u),b=this.u.getVideoData();g.P(this.u.N().experiments,"embeds_enable_muted_autoplay")&&b.mutedAutoplay&&(g.V(a,2)&&!this.Ha()?(this.show(),this.w.show(),a=this.u.getVideoData(),this.la("text",a.Zz),g.K(this.element,"ytp-muted-autoplay-show-end-panel",!0),g.oL(this.u,this.element,this.Ha()),this.u.na("onMutedAutoplayEnds")):this.hide())};
M4.prototype.B=function(){var a=this.u.getVideoData(),b=this.u.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;a.Kd();this.u.loadVideoById(a.videoId,b);g.nL(this.u,this.element);this.hide()};g.r(N4,g.R);N4.prototype.w=function(){var a=g.PK(this.u),b=this.u.getVideoData(),c=this.u.N();b=g.P(c.experiments,"embeds_enable_muted_autoplay")&&b.mutedAutoplay;c=!c.F;!b||g.V(a,2)?this.hide():this.Ha()||(g.R.prototype.show.call(this),c||(this.A.style.display="none"),this.B.start(),g.oL(this.u,this.element,this.Ha()))};
N4.prototype.C=function(){g.K(this.element,"ytp-muted-autoplay-hide-watermark",!0)};
N4.prototype.F=function(){var a=this.u.getVideoData(),b=this.u.getCurrentTime();a.mutedAutoplay=!1;a.endSeconds=NaN;a.Kd();this.u.loadVideoById(a.videoId,b);g.nL(this.u,this.element)};g.r(O4,g.R);g.h=O4.prototype;g.h.hide=function(){g.Dn(this.u.getRootNode(),"ytp-expand-pause-overlay");g.R.prototype.hide.call(this)};
g.h.DK=function(){this.Z=!0;g.Dn(this.u.getRootNode(),"ytp-expand-pause-overlay");this.I.focus()};
g.h.EK=function(){this.Z=!1;g.J(this.u.getRootNode(),"ytp-expand-pause-overlay")};
g.h.uI=function(){Wua(this,this.B-this.F)};
g.h.vI=function(){Wua(this,this.B+this.F)};
g.h.wI=function(a,b){if(1E3>(0,g.N)()-this.oa)g.Kp(b),document.activeElement.blur();else{var c=this.w[a],d=c.Ob;if(g.IN(b,this.u,this.da,d||void 0)){var e=c.ya().videoId;c=c.getPlaylistId();g.rT(this.u.app,e,d,c,void 0,void 0)}}};
g.h.xI=function(){this.vt(g.QK(this.u).getPlayerSize())};
g.h.yI=function(a){if(!(g.V(a.state,1)||g.V(a.state,16)||g.V(a.state,32))){var b=!g.P(this.u.N().experiments,"embeds_disable_pauseoverlay_on_autoplay_blocked_killswitch")&&g.V(a.state,2048);!g.V(a.state,4)||g.V(a.state,2)||b?this.V.hide():this.w.length&&(this.Z||(g.J(this.u.getRootNode(),"ytp-expand-pause-overlay"),P4(this)),this.V.show(),this.oa=(0,g.N)())}};
g.h.vt=function(a){var b=16/9,c=this.aa.kc();a=a.width-(c?112:58);c=Math.ceil(a/(c?320:192));c=(a-8*c)/c;b=Math.floor(c/b);for(var d=0;d<this.C.length;d++){var e=this.C[d].o["ytp-suggestion-image"];e.style.width=c+"px";e.style.height=b+"px"}this.G.element.style.height=b+"px";this.ba=c;this.ma=b;this.F=a;this.B=0;this.vz(0);P4(this)};
g.h.uz=function(){var a=this,b=this.u.N(),c=this.u.getVideoData();this.da=c.lc?!1:b.u;if(c.suggestions){var d=(0,g.ue)(c.suggestions,function(e){return e&&!e.list});
this.w=(0,g.Cc)(d,function(e){e=g.jM(b,e);g.B(a,e);return e})}else this.w.length=0;
Xua(this);c.lc?this.U.update({title:g.gM("Autres vid\u00e9os de $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:c.author})}):this.U.update({title:"Plus de vid\u00e9os"})};
g.h.vz=function(a){this.G.element.scrollLeft=-a};g.r(Q4,g.R);g.h=Q4.prototype;g.h.wt=function(){var a=this.u.getVideoData(),b=this.u.N();a=a.mutedAutoplay||b.Ca&&!g.V(this.w,2);g.Qu(this,a);g.oL(this.u,this.element,a)};
g.h.DI=function(a){a=a.state;this.w!=a&&(this.w=a);this.wt()};
g.h.zz=function(){if(this.u.getVideoData().videoId){var a=this.u.getVideoUrl(!0,!1,!1,!0);this.la("url",a);this.A||(this.A=this.ka("click",this.CI))}else this.A&&(this.la("url",null),this.bb(this.A),this.A=null)};
g.h.CI=function(a){var b=this.u.getVideoUrl(!g.iM(a),!1,!0,!0);g.JN(b,this.u,a);g.nL(this.u,this.element)};
g.h.yz=function(a){var b=this.u.N(),c=480>a.width;if(c&&!this.B||!c&&this.B)a=480>a.width&&b.F?{D:"div",Y:["ytp-icon","ytp-icon-watermark-small"]}:D4(),a=new g.R(a),b=this.o["ytp-watermark"],g.K(b,"ytp-watermark-small",c),g.re(b),a.ca(b),this.B=c};g.r(R4,g.vL);g.h=R4.prototype;g.h.Pf=function(){return!1};
g.h.create=function(){var a=this.o.N(),b=g.dC(this.o);a.Aa&&(this.G=new O4(this.o,b),g.B(this,this.G),g.iL(this.o,this.G.element,4));g.P(a.experiments,"embeds_enable_muted_autoplay")&&(this.w=new N4(this.o),g.B(this,this.w),g.iL(this.o,this.w.element,4),this.F=new M4(this.o),g.B(this,this.F),g.iL(this.o,this.F.element,4));if(a.Ca||this.w)this.A=new Q4(this.o),g.B(this,this.A),g.iL(this.o,this.A.element,7);g.P(a.experiments,"embeds_impression_link")&&(this.C=new I4(this.o,b),g.B(this,this.C),g.iL(this.o,
this.C.element,7));this.B.L(this.o,"appresize",this.rI);this.B.L(this.o,"presentingplayerstatechange",this.qI);this.B.L(this.o,"videodatachange",this.aP);this.B.L(this.o,"onMutedAutoplayStarts",this.RL);Yua(this,g.PK(this.o));g.fL(this.player,"embed")};
g.h.rI=function(){var a=g.QK(this.o).getPlayerSize();this.u&&this.u.u(a)};
g.h.qI=function(a){Yua(this,a.state)};
g.h.RL=function(){this.o.getVideoData().mutedAutoplay&&this.w&&this.A&&this.A.ca(this.w.bottomButtons,0)};
g.h.aP=function(){var a=this.o.getVideoData();this.A&&this.w&&!a.mutedAutoplay&&g.xe(this.w.element,this.A.element)&&g.iL(this.o,this.A.element,7)};g.KL.embed=R4;})(_yt_player);