var _yt_player={};(function(g){var window=this;/* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC All Rights Reserved. Use of this source code is governed by an MIT-style license that can be found in the LICENSE file at https://angular.dev/license */ /* (The MIT License) Copyright (C) 2014 by Vitaly Puzrin Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ----------------------------------------------------------------------------- Ported from zlib, which is under the following license https://github.com/madler/zlib/blob/master/zlib.h zlib.h -- interface of the 'zlib' general purpose compression library version 1.2.8, April 28th, 2013 Copyright (C) 1995-2013 Jean-loup Gailly and Mark Adler This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. 3. This notice may not be removed or altered from any source distribution. Jean-loup Gailly Mark Adler jloup@gzip.org madler@alumni.caltech.edu The data format used by the zlib library is described by RFCs (Request for Comments) 1950 to 1952 in the files http://tools.ietf.org/html/rfc1950 (zlib format), rfc1951 (deflate format) and rfc1952 (gzip format). */ /* The MIT License (MIT) Copyright (c) 2015-present Dan Abramov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ 'use strict';var Q="1;path;/initplayback;scheme;match;jk;set;Fj;\\.googlevideo\\.com$;;push;url;youtube.player.web_20250930_02_RC00;D;reverse;---;local;length;&;startsWith;splice;cmo=;clone;indexOf;playerfallback;cZ;L;get;N;/api/manifest;Z;fromCharCode;call;/;assign;,;=;toString;sf;Untrusted URL;slice;rr?[1-9].*\\.c\\.youtube\\.com$;:;%3D;index.m3u8;file;undefined;B;join;unshift;forEach;http://local;VI;split;a1.googlevideo.com;/videoplayback;r;\\.a1\\.googlevideo\\.com$;://;cmo=td;tH;www.youtube.com;https://local;n;s;prototype;',\\(u;rr;/file/index.m3u8;break;cmo=pf;1969-12-31T22:01:03.000-02:00;cmo;mn;,{;fvip;fallback_count;redirector.googlevideo.com;//;bjP3cJgf6mwiJ8B9-D-_w8_;?;1970-01-01T04:45:07.000+04:45;pop;signatureCipher;replace;sp".split(";"), Y9,PO,Zli,dE9,e$,BO,o9u,Vu,GB,jdL,TDr,pl,EJ,ME,ili,frd,Iv,du,PLD,YW,Ola,PE,OV,av,WE,ea$,wu,wOO,V$u,F0,sV,ND7,GL,sdi,n9J,tg,xW,Ki,EV,HE,haJ,ij,aS,SJO,gh,MN,Hld,M$O,fY,aM,Nv,riB,I$J,J9,oW9,YV7,iiL,f$D,hg,W8,CY,Buu,c8,wEa,Mv,ZQ,jV,m3J,qVO,fM,nY,Oi,aq,WS,eV,BS,RMB,VE,vWr,si,m_,qp,SV,AB,GLl,lN,zM9,kLd,XEB,tB,xk,cS,Z0,dQ,TG,OH,gWl,BP,Mtr,VD,ZUD,Ih7,hn,mO,jva,oC9,R8,LL,UH,jSO,uy,GG,Thi,iUl,fhO,QSL,arL,CL,HP,gQ,ZX,WLD,e5d,Bhn,oB,Nhr,FL$,nCJ,h5u,LgJ,mND,q5r,DNr,JhD,R5u,aB,LL9,vC7,lhD,mI,GhE,Ss,kh7,LF,$Nu, plE,u3,Xp,tG,GBB,xNl,EN,Hg,Ml,r6,Cj9,IW,oW,HUi,qJ9,gCi,rha,ZYd,wD,dvE,b5,cE,YjO,jMn,XH,FD,feB,P5L,sZ,QM$,OYu,vt,W5r,exL,Bmu,w8d,Pw,Vdl,F5i,OT,Ww,nKE,eG,hxJ,mvu,FI,qjn,Sj$,AX,Rxu,RI,L57,tX,Uv9,MT,ukn,klB,I$,X89,$vr,xv$,Yo,QZ,jz,Ti,K5$,Pj,O1,bYD,HYL,Mdu,h5,dpu,Yiu,U1,jqO,UZ,TBL,fQn,PN$,aQ7,xo,C9,bX,egr,Hj,cj,MI,Il,qiL,i$,fw,ah9,l5,Qt,JBl,UpO,yBu,vkJ,sA,nw,hA,qC,SU,GUr,zg9,XSn,z2,kp,Xm,$pL,$p,Cw,EA,Iw,iz,Qy,I0$,wq,dxE,YHE,Vy,Ni,TQa,OLl,hN,Pl,eWJ,xn,mm,qi,BQJ,AN,Db,yy,zs,kt,s8D,qHr,SHE,Dx7,kGn,YH,XPi, TC,i9,PF,QK,tRB,$xn,e6,pPu,xxu,bL7,w8,HLJ,gEJ,mS,qK,rnJ,ZFl,IXr,L7,Uw,yK,vF,dhO,onD,u9,XS,$H,xH,HF,Cs,Txl,MK,r8,K7,dL,PR,PS9,RS,Osi,V7,sB,nc,eEE,Bx$,wtB,AD,V2L,kW,Fm,u_,NxL,sWB,Go,nnr,ABB,kf,mhJ,Xq,tD,$f,qZl,Cc,b_,AYL,JYB,REi,cR,Lpu,Uhu,lvJ,k9i,t2n,gL,$hn,pt9,mxu,Kpi,CSu,En9,dz,YV,cYE,gnO,fg,M27,O2,WI,eL,rYD,Z3i,BI,IN7,ng,m$,v8,AXL,Ze,jk,JX7,fu,Pv,hT7,O0,MRl,v17,nu,a$,mK,Sk,kzi,Jy,Xw$,tGl,Cu,xTD,KQ9,E1u,ir,aD,ND,nA,blO,al,fi,i9L,h6,PXJ,O9u,g2,A6,Dn,J6,LA,au$,G9,vr,zK,XP,pA,x6,ko,h6L,br,mIB,cr,gn, J5B,IC,y5l,d5,oC,lur,jK,VJ,NR,z6J,XjL,tzl,v99,$Ia,pjO,EoE,DL,c5O,Je,N27,Mzi,zTu,v7,lf,uf,Gx,te,$0,pt,dCd,x0,Kt,Gll,Ct,Ekl,c7,g5,ZM,IZ,eIl,iU,BEB,Fyn,sl9,SVr,Qp,np9,W6,qAl,wt,Nf,AA7,sy,nG,JAJ,SJ,DM,LG,Lyi,hME,HMl,lU,TU,G5,z5,kS,mc,t_,f3,X9$,$Ci,xCL,C$J,bU,gt,Mf,Z8,YL,ly9,gpJ,i8,fR,PC,QO,rAB,BF,di$,l$$,ax,UTJ,e4,TmD,fbJ,QwE,O2l,eu9,qg,qR,V5n,D8,Nqd,J3,Rx,fc,LR,Un,yO,mir,qtB,zv,Sta,t3,c6,xL,KR,b8,cC,gw,Mg,rw,DiL,ZT,Rul,dd,yAr,Lma,nEJ,pwd,rn,fb,PG,Gs$,QU,OW,ksE,FJ,p1E,sW,Hl,Kmr,CzO,$TB,qe,Etu,b2i,Sw, H2D,A8,cNB,P$d,WG,T8n,gd,fcl,o7,eLn,YO,N8O,mKa,qwl,Ab7,tS,DKu,bI,OR,Swn,V1,mz,pFi,SW,EHn,AR,H7u,MD,B8E,UR,gHl,bU$,rbE,mTd,zn,kx,XE,If$,OcB,Ws7,oHO,Ka,bB,BLO,wRa,gv,rv,Vqa,Fsn,ZA,UW,oO,Yc,jS,Tq,fr,nfL,PT,hoB,mV7,qBi,SB9,pM,DVE,JD$,Ro7,NQ,Lsn,UVd,yDl,sf,nr,Goa,hs,m8,K9,SS,As,zo$,koD,tql,$Va,Lr,pRl,Ai,yx,b7E,vT,kc,fG,KsB,ts,Hcl,$c,gfO,Zga,r1,Z9,Ic,djD,KOO,xhB,oV9,jq,UT,XW,rBD,Ox,$O,ac,hIL,Px7,uz,B2u,eI,aja,eQu,Bzi,wIr,b99,VLa,NzD,F$L,nx,iZ,BR,q2d,Rw,AOa,At,JOJ,Rc,L2,jW7,L$9,vV9,uZ,Kr,kb,tt,px,GRd,rXd, GGL,Ex,cq,pI9,gj,txu,rj,cOJ,d3u,Y_,Q_r,gg,jr,ib,PD,UCl,OuD,akD,Lg,aE,WKJ,E4,BD,$t,wvn,nO,FKd,s_9,ne7,hRu,qA,m2E,BMO,S0J,AV,D2O,sSJ,yh,RRD,LO,U2E,yyL,lk9,yj,vD,GYr,zR9,kYu,Cz,Xva,a5,tV,$_,JS,pO,KO,CO,EC,KKl,bb,HD,Cgl,Eei,buu,cyO,Bw,MC,Mka,ryd,o6,ZAn,UN,Td,DIr,WX,QD7,eDB,Wh,eT,wS,GU,Vc,Fu,wr7,Nni,nN,hz,hWB,DQ,$K9,mDn,P8,UO,avO,uv,Tur,LDO,pw,xK,UD9,EVB,v67,gS,MJ,rM,rS,kKL,$Dr,KDr,CrB,CA,bAd,HAl,c6O,Sb,r6J,sDi,Jk,ILE,dRu,jCn,y_,vs,FE,T5u,fLa,Cv,EK,J_,bd,Hs,cs,Pf9,QCE,OtE,WUO,xe,ekl,Ip,d0,B57,FUu,Yl,jM, HiJ,TO,b$,im,n0L,SK,hk9,S4d,Ael,DRO,Qz,H8,Jer,LUD,hX,eM,lLn,QX,uZB,zk$,GJ,W_d,pz,Y4,kxn,tKa,KUd,Lp,NK,Cfr,E0n,ceB,re7,IM9,Gia,Kp,df9,oSn,Cp,YyE,Hf,jZu,cf,MF,r0,Tti,fMr,QZn,dF,of,Y8,js,j3,fo,sZL,BtE,H6,Pc,Bf,nSD,mf7,qyu,SyD,A_D,EWO,kB,e3,Bc,R_a,Lcl,UfO,y_D,vSl,lM$,TZ,Nr,FC,no,k5O,LN,hF,F5,sn,mF,qr,Ak,CU9,HGl,uHa,Rf,c_O,aj,uk,MJE,Ot,ZRL,I8u,zZ,dgJ,oLd,Yna,$8,zO,po,TwE,IK,$l,Ko,iRO,ED,K0D,f8d,lj,fa,bk,OR$,a89,cc,WiO,ehE,Bwd,V4E,lp,S3,di,Nwu,nLi,VkJ,j0,Tu,i4,GK,Wo,Ve,Li$,Hb,y3D,NU,Vj,vL7,Gv$,S0,zhi,AL, JL,HwB,kiJ,XC7,$gd,l4,xgO,Kiu,J9B,i5,C8B,ygJ,dKB,pd,bRJ,Ho,EfJ,co,K$u,M47,r3O,XC,Zbn,ITl,NT,Ik9,oTu,MU,jLu,x8,cDJ,Bb,ib$,fTl,YD,bS,T_,PTL,QLi,Obr,Bdl,wGr,HuB,Vwa,ar,WK,FYd,BK,sLB,NW,Xs,Qd,hwJ,me$,qW$,Bn9,deL,dM,LY9,Ueu,y8J,vTO,QJ,lTu,zU,uJD,GSJ,Zs,lI,vK,zwa,ln,un,XG$,$e$,pGr,p_,v0r,bn,c87,cK,r8l,go,ZzE,MW,TRl,r_u,Ih,iz7,PId,T$,iC,Q79,Ozi,ah,wM7,V1$,NRr,$6,eP,BQ,s7D,nOa,mT,Vz7,mQ7,SP,IP,R3B,UQE,lJ9,uoO,Gmu,Snu,z3l,kmu,ek,z$,B7,ix,CIO,p8,EOn,bzl,Ew,gOd,M1B,rSn,ZaD,bC,xE,gH,MX,rH,Qj,kUi,oxn,ex,RW,TD, YRJ,j5E,fq,NLl,Ql,PB7,Wz,Oal,Ir,WzB,hV,VWL,FF,sq,Nvr,qZ,pv,K_9,eb,vI,qRD,mN,ARa,JRr,MA,RPi,UwB,zD,XF,xQ,ys,U4,t0,$U,vxL,uEJ,Cq,yD,knD,tJ7,HI,tWJ,$wu,cz,pXD,g_,Ej,Zj,xw9,Kzd,ZR,Exi,dK,oA,ba7,QF,huJ,HaL,qx,BqD,Bs,gxl,MWJ,io,rRi,c9,fS,TE9,Zr7,WA,dMl,oc$,wK,VB,Yfi,T1O,$K,Q8L,nS,ir$,ujL,fAl,XFl,aAJ,e9l,B19,SA,AW,wTL,Zv,Yt,LS,N1B,vA,ncu,mMi,qf7,As$,JU,Jsu,vtd,R9l,Fo,Fj,UMJ,mRD,sxD,iW,fX,tS9,RB,nX,DV,GC9,xM$,h7,m6,qm,K8J,Hru,Ru,M5,OY,y3,vi,MSa,lW,Fs,GT,tF,Xz,I99,dn7,y9l,$3,YxD,ixD,yRr,PZn,a9D,ecu,ro,VIu, otl,nR,scu,nbL,Hi,mnn,Ata,G8n,zca,k8E,Xq9,tIl,$h,$nB,AyO,pql,hhB,hd,Y5O,mZ,qz,Ra7,KvL,Sn,CZn,Eb9,HxD,Uc,hS,ctO,w2,ZZD,IEa,lE,HgO,Vz,GP,uT,$M,YzE,pP,jVr,l9E,S1,G$,Tgi,Ec,bE,Hu,iZL,fE7,Bu,QVn,OZu,Im,WEE,cD,YG,ig,KYL,kK,yXa,BgD,wb7,Q$9,f7,VOD,NgJ,fH,pvE,nh$,h0O,u7l,A7,LED,U6d,sg,yID,z0E,kJE,ZE,Xbn,Al,wqL,yF,$6n,Ce$,Ay,ps,Eha,Ivn,bZJ,LH,us,xc,yw,kqa,cIu,qT7,tn,It,op$,I_J,dAn,o_n,W8D,Ku,jEl,ht,Pi,yl,oEi,S5,iOr,Hk,ck,d8,iI,QEJ,dC,OOl,oY,YP,a_u,jZ,Te,q0B,Ne,vEn,P7,fh,Pn,h27,Qb,ab7,gO,hL,aY,VU7,AVB,PK,e5, wC,DAr,SAr,R2J,En,v_r,Bi,l_O,Um,yb,Gbi,z2a,XDE,Ge,kP,XX,r97,ld,vf,lS,wJ,Cbl,xf,bOd,HOD,Ch,yY,anE,ZF,fZ,rVJ,ZN$,IBE,cn,gC,O7r,dJ$,Eg,IU,dc,Iu,dm,xp,TvL,Qa,OE,kV,qT,YOL,iG,j6L,TSJ,f$,k2J,aU,W3,Q67,aB7,Ht,WtD,e_J,JSD,wc,eAO,BSr,i7d,wh$,VTd,NSa,Ftn,Vn,l3,OGL,Vl,s69,VJE,n$,EU,nBd,hAE,bp,mJB,x_,kh,SD,SO9,WvD,Az7,q9,aJJ,Dp,DJJ,TS,Jzd,vw,Vi,KH,LtJ,yn,UJE,v3,yzB,vB9,lBD,lG,NJ,oJ,uuB,GdO,zA9,Xf,Gu,GO,Hb7,dJ,kd$,t2,Psa,U2,p$,RM,fy$,tTJ,$Ji,K$,HX,C$,Kw,qOE,ESu,phl,xJB,KtL,jO,CvL,EBd,HNO,Er,QI7,rZ,c3,Rt,MTL,rzJ, ZMu,rc,Tn,Ez,dd7,j1i,VtE,TAr,M6$,PdO,Ovu,asO,dO,mjl,Y5,f0a,p9L,ER,em7,BA$,PY,QV,Vbn,NA9,Wg9,n4l,j$L,EB,WY,mdJ,BY,w3,yei,SKd,R2,Dd7,L0,FEO,yV,Gl,Lva,gD,EKd,Gc,Jkd,lm,kE,Rmu,Udd,X6,bbO,iYO,Qvi,tT,lsl,us7,K0,iE,Ga$,zmD,$d9,C0,X4,wsi,psD,xdn,Cdu,bvu,bq,Hvr,g4u,HA,cY,j4,M_,r3,Mb$,Zpl,F7,d$,Pea,dFu,YLu,jpi,Dk,cku,WM,ipD,cu,PU,ab,WU,Pm$,qF,OpE,w$,e0d,WAB,se,evl,bMD,wf9,s1D,Rm,Fh,N07,hu,FAJ,mr,Wq,Sa,hvD,Jm,DR,Zul,mFD,vb,Rb,UFn,y9,ypB,vlD,MR,li,y6O,ui,GOB,g8,GH,zv9,kOE,Xf7,ky,tMn,pfd,Ee,xFL,KAE,wPr,Fv,Eli, bi,Hpi,Sq,ue,cpl,BX,gln,MMD,y8,g$,P0l,IVJ,r$,D0,o8L,jd,TFD,ioa,fVa,Qfr,Ood,Zu,wF,oe,aVa,jf,eqr,A3,MKu,Tj,NF$,n89,ae,Wp,mru,qD7,Bp,SD7,rd,ADd,AFO,g1,URO,JFO,or,Rq9,n9,MM,LFE,uC7,WOa,rDO,qt,Lt,UL,O5,K8,w5,vh,oz,Jn,YQ,kZu,t3d,Dw,Re,LW,xU,Ub,yv,Ur,mCE,lM,uM,U_,pcD,Ho7,Em,g8$,N_,rFl,ZdD,W7,IZB,C8,dUD,FvL,oQ9,YYD,Ti9,idl,q6,Xd,LzE,aZL,$X,za,la,na,eSu,woD,V0$,cF,sD,bM,Ni7,cp,tm,sz,sP9,T8,nQJ,jOi,VV,$v,DDO,Zz,IQ,dl,Gi,mA7,ykD,YA,mUJ,KyD,qY7,jB,fE,ALd,DUi,JLJ,QT,Ab,aQ,RSd,wl,q4D,NO,YT$,UUB,yLr,mE,bf,oBD,vQd, lZi,Fg,lT,uru,GuO,nE,DrO,RkO,kuL,mR,qO,XoB,BiD,Q_,SB,pc,Ar,Dz,hU,t07,Us,yT,xUu,lF,K9D,z4,NM$,Bj$,HR,ZtO,Xg,mM,bdu,DFL,P8J,HdL,tr,cLE,RTn,xA,gQJ,Pz7,rLJ,bF,I2O,Hy,TGn,J8u,cy,rl,oDB,Y69,IAn,jr9,Toi,i_B,f2u,Gj,wXa,eor,eF$,Bol,nDu,TQ,OL,hFu,S7,mWu,bc7,Jh,bN$,Aml,DWB,JmL,UWn,a9,vDr,WZ,Fz,AA,ee,Ya,G_D,zFi,BZ,k_i,EDu,Fx,b_d,rL,n5,th,A4,M7l,Ad,Dm,lUD,rma,oKE,J4,wg,MZ,L5,XV,Oz,JF,K7E,bra,dXa,oL,yf,YML,jha,RD,u1,i8$,cbO,vG,QhJ,O8a,BHn,wQD,zQ,sH,zJ,FTl,Tm,shO,$a,nv9,hfd,AU9,DX9,Rfd,Eb,LTB,HZ,aD$,vvi,lDL,u2O, zfi,M$,ra,k$B,rg$,Co,ZG,d9,oy,Yj,jC,rt$,OiL,il,yYr,$Xr,qxn,uld,pQu,tbO,A6u,KTE,aP,Evd,ZLD,az,b8B,cUB,Wa,WDd,gvJ,HZn,rUL,NZ,yil,eC,RC,Zq7,Ba,I6O,YwE,dZr,CkL,oUu,Yqu,RP,jJO,nlr,T_d,iql,Pa,sf9,Au,VF7,If,N_n,FL,KK,gKl,mZB,yL,Sqa,F3B,Dw$,y0n,ru,Gk,zk,vUr,ZU,XA,uF9,Tl,GDB,zzi,kDE,My,Xzn,Eo,k4,tFL,f9i,gG,YCJ,Rha,$Za,pzn,xZu,Ha,noD,Wc,P4a,EU7,sN,fs,bq$,ca,itL,c0B,OAu,bj,n8,$fi,fvi,O_,vk,jP,IRr,oIL,YY,zDO,Oo,jA7,bwd,TKJ,iD,fB,Oh,uIn,sVO,fR9,ZOr,Pon,QA$,WW,Bq,$G,TX,cG,AS,wP,T0$,AH,pK,mW,v4L,Bvl,WaJ,trd,V2, mU,$QL,ebD,BKd,JR,VA7,NS,F8,NKL,swE,lq,xR7,Faa,sAr,C5,hv,z8,mX,nI$,mwD,qS,m5u,dB,qUL,Av,SUd,Da,D5$,RbL,LaL,FK,Jv,yWa,vIB,lRd,Ri,u_l,CZ,Wi,z_,Uh,hD,JH,kXO,XK9,uD,XAa,tAd,$5D,eB,z3,YE,pAl,ytn,x5D,kY,Oy,X8,Ka9,eN,qLJ,tv,$Y,ZH,bS7,YtD,KB,CB,Eh,tI,cWu,gI9,S1a,MAa,cW,xju,gP,ZXn,I47,pX,OUn,MS,rP,IQr,YEu,q0,Ui,dmn,o3B,fO,Ig,yOO,Y_D,TE,f49,Quu,NV,ch,OX9,PUi,ff,BJl,wi9,VX9,PN,F6n,sud,Ou,ag,Wm7,Md,CR,w17,h1L,eg,d_,g9i,ovl,mm$,bs,STD,BN,ud,iF,w7,S_O,Dmd,VG,No,hr,F9,KL,Np,n_u,$mr,K6n,E3l,bXl,A1,HX9,c7D,g3$,nB, gx,ZPu,Q2,dzi,FQB,jtE,q_,TOJ,Sx,P9,mw,iP7,Yf,fxn,To,J1,PEl,Jp,OP9,An,Rg,e1d,Lf,kv,axu,BOD,KW$,wuL,TP,FZr,aW,stL,yG,CG,hed,lV,Scl,Ad$,JdB,Ren,uV,$3L,jn,vO9,xXd,LZB,GE,UzL,ydB,zE,zc,kZ,lxu,fu9,UY,Dy,kPD,vbi,sR,pu,Xuu,nZ,CV,$z9,M0r,xzD,NP,jm,TW,EMa,HPB,o6J,cdL,gen,ysL,ww,Mnn,Rg$,ZHB,IFJ,dPL,oGJ,Pva,Ygu,Z7$,TyJ,iHi,o0i,oP,TLJ,PcD,Qma,f_,IJ$,sm,mzB,OHJ,GS,aFB,fB$,Wer,tA,DD,wp,Vl$,nP,Nyr,w7D,nG7,pq,Sg9,AlO,DPr,G8,Jld,wG,Rli,hR,sI,yli,lFu,aM$,qq,Dx,Sm,AQ,v3i,GFd,VA,kR7,XkB,$PD,RE,pkn,AG,JQ,xP9,Mt,Ked,Ccn, W3O,bHi,Jg,HHB,NO9,m1,clu,qCD,GKl,LD,gGD,UM,aw,rl9,Wyu,au,CCa,Zhl,IsD,ItE,d9l,QB,oPu,vV,Ymd,lP,jYr,TCD,zx,VZi,NCl,Sr,F1J,xV,xO,sY$,Coi,nP$,VKD,hti,fd,XU,cgn,m9L,qmu,Qo,uzL,Sma,D9J,c9a,piO,UXO,Q3,Rtn,Uf,DEL,L1B,JV,Dj,WpL,aR,UjJ,pD,d7,uXB,xz,Ge9,ztL,Ilu,Xnd,tZa,pnL,Kh,C2r,EPd,M3L,bhr,HhJ,ftO,bP,Z$i,Zt,Ipd,CLE,fUB,dyE,Nn,orD,cV,Tci,i$7,nf,fpi,lAl,QUO,wCi,SF,xrl,O$E,apL,W4$,TJ,e7B,F4B,B9,nrd,pKD,mya,RY,P9$,mH,Dyi,kM,J2J,Uz,YKu,gK,X7,qE,$o,OhD,v1,L4O,UyB,vr7,tl,lp9,uva,GVE,J0,fv,yHD,ci$,KZ,kVn,X37,fN9, P4,zx7,j2O,T3n,i0B,Z0J,J3i,ag9,Dgd,rku,Zxu,WMO,e4J,A7L,tnD,B3L,xX,G3,wYO,Vh$,N3d,qf,Dna,Af,n5u,s2,h4u,Bk,m_i,eMD,qQu,UI,e2,ed,ASL,D_J,ePE,uhn,Nz,um,yT9,SYJ,Lk,u67,Ud,Cxa,Gcd,Hn,zS,z4J,BRE,vPu,x9u,XYn,tha,Gqa,pYO,b0L,K1$,B3,cT9,fK,rTu,ZKO,v4,GW,IHi,csD,lR,oyn,xv,GJE,Yei,jb9,uSl,kw,T$B,Y4d,efi,d2,fHB,Pir,SN,QbJ,W9,aH$,Wrn,e$L,XY,ug,G1,wUa,RQ,F2,kTB,Xy,tf,Fra,sbD,nyJ,h$7,m0a,g6$,qeE,Ser,e1,gb$,t4,gBD,BV,aNO,D0D,lQn,Won,R$d,Lrr,BZn,iK$,Gd,RzJ,yui,vya,Ck,gTd,GHl,z$7,IUJ,kHD,tad,$0B,wja,Ed,pUu,x0d,KrB, FNL,bR,Ey9,Sl,GnJ,sx,gV,IwL,dtr,rV,oXn,U_L,iq,TIn,SM,LK,EE,Qp$,OI,iW7,cT,PMu,QeE,OWl,iSi,BC,$r,RIa,H9,z9,DN,jw,ZSB,aL7,UPO,nXd,hUE,rNL,SR,mtL,eTn,BU,qbd,ye,$k,Hr,Ix,Aol,o_,RUi,Lkd,WcD,s_,Uta,Ys,jv,XJ,E3,MZr,wV,Gjr,zUn,kja,tfE,hDr,$ta,gl,cA,pp7,xta,Kki,CML,XK,$ra,xt,coO,gX$,MfE,roD,Ds,IzB,dOu,Ysa,Nh,S4,E5,iJ,O0i,hH,Tli,iT,fzd,AWn,jKr,nAL,qs$,SsO,ArB,DOE,qo,JrJ,$y,UOi,bGd,yrn,vAu,iGu,fW,tdu,L9L,lzB,W2,CNL,Zx,Ga,Vf,XMi,ot,Xy$,N7,XlJ,uga,W6l,ET,N6,c2$,pyl,Zon,CB7,sl,xOi,KRd,hx,CFO,$1,EAd,QQi,bEr,B0u, Z1,G4,s6,pF,rrO,hli,Z5d,Nca,ImE,d$7,lVJ,yo,kL,O7,oal,lx,Y3d,TaL,q_9,a7,fmL,dG,Q9B,d3,O5l,azd,WF7,WhO,FhE,Sv,gSJ,lv,nt9,DpB,r5L,Dj9,sM9,QOL,DW,Jx,pR,Ny,Qh,hNl,R3,A4L,D$D,pTn,uW,oV,QJJ,iLL,EQa,U$$,iEd,EI,VY,mpu,Qc,qG,ym,va9,l8l,uxd,BCr,o47,zNB,kQJ,uJ,XZL,z6,ks,k3,pp,$$9,Br,tx,ww7,Rq,C1O,$A,Ue,ci,A0u,hzu,Eal,Cn,cA$,H5L,C,On,fx,c4$,ga9,dTL,Me$,ZVi,IGJ,El,hiD,h8,o9,bon,hm,mq9,qIJ,SIO,AQi,Dqd,JQr,LCJ,kT,qw,x2J,to,Xpn,hCL,yQr,kG,yX,GWB,zid,Wl,KP,L_,XVr,y2B,tma,FDB,om,$q$,Ng,Rj,q$,D6,Og,M7,v8O,bDd,rp,$s, cQn,gza,Mmd,yVl,fD,LAO,FcB,dGl,o$$,jGO,fkJ,sU7,lD,PRB,QGO,a1$,F4,E9B,xIO,FOl,VQ,BDu,Qq,Xl,eni,w4D,yz,Uq,gF,ON$,Vjl,tkr,nn,EM,FB$,n6n,hn$,BM,mGO,J_9,Q8,Af7,DG7,JfB,LB$,OM,UGd,ov,yfl,uVD,qdd,dDB,Ff,l19,uYL,uyE,G17,sE,znl,bWO,Uj,fQ,X4O,MUE,C7,xGu,JO,x3,Vb,KBa,CRi,vM7,Dt,em,DE,E$a,bki,Hkd,cfd,g$7,MjO,WYn,QS,ZnE,lc,ZL,IWr,hLO,lnl,FoL,KV,YlJ,j3D,W9O,ho,eH,u2,Q3r,iX7,Bx,NX,Onl,QG,mA,eyu,BkJ,w29,tX$,ux,FbB,n$a,s3l,L7i,o1,zd,nsB,hyi,d1,F9$,ni,Nk,FG,Nta,fDJ,m7d,I1,hp,Iz,Tx,EGd,wh,OxB,Oa,wd,jj,le,x6J,Ax$,Am, LbJ,U77,f_L,vsu,Y0,lWl,E6,zyr,Fc,vR,k6J,Xo,Sh,X2D,AK,tvi,Uy,TT,Rh,IG,Mv7,DS,b5l,rx9,ZQl,FRE,AH7,yS,dkl,lz,o2u,iQ9,oi,u4B,bo,fdB,vx,N0,lY,NA,L0i,Nm,VBu,Xc,LB,bW,Ko$,Dd,hf,adr,SxE,aUa,e8J,Xh,e8,ghO,$Ua,xDO,f6n,yxn,Fxr,qrJ,sNO,Fiu,vu,GZ,LQ9,ai,Gs,h8a,Zp,mkn,fFE,Saa,I5,UE,tk,zai,XG,UkD,lr9,yKd,IE,E_$,v2d,VX,ldB,gka,V8,GId,kIl,P6,Xxl,Bl,pxE,xkl,lZ,d7L,Mn,FU,ry,CYi,QYa,CF,j7,cKa,XQL,g2u,q5,MPJ,MHO,W1i,rKD,Pb$,pQ,KQ,CQ,ma,JHD,dHu,Qxa,JTL,vna,rQ$,DJ,YSB,jnD,eF,ju7,f3J,bY,PAa,nW,bpa,gAE,s5,Wdi,eGL,Oc,cx,wdr, rQ,W4,Ap,VYL,ucd,J8,qQ,sO,gN,SI,rN,hGJ,mHr,eed,qSJ,AT,SSn,XT9,vN,KFD,JJr,snd,RG$,LdL,UHa,h3,Z3,vRJ,BA,l39,$$,pL,s0,F_,p2,zGO,Px,kwJ,Se,on,uU,tYi,$7E,Ts,xHa,pZ,r09,Kd9,jY,Lq,CAB,bG,HI7,cJO,AF,gRB,Kcn,rJB,kva,U0O,dy,czL,UmL,P1,IoB,dYa,OrL,oFO,Yk7,T49,R1O,kO,iCD,foi,Pt7,he,OCa,ao$,G9J,$w,OA,gJ,WnJ,B4$,jPd,V9i,A5L,PZ,N4n,E8B,sK,d_a,oOL,FnO,Kg,nF7,H2,MO,H3,qkD,wM,AML,tVa,DYD,Ca,bi$,iA,a1,fI,UYn,wE,xnu,vFa,rG,lou,u3L,RO,VK,$2,Gyl,mYJ,WN,keL,Mr,QH,h_L,zsr,FgB,Xml,pi,Rr,pmn,gm,mP9,Ld,Mq,xYB,kCL,BGa,IDn,JN, l4u,Knl,GC,uj,MaJ,Mk,wU,en,cMr,fp,BW,GY,vY,U3l,VH,Nud,C_r,oc,K3$,SZ,gFr,NN,Le$,M9B,Jl,rMr,Z6u,vp,TY,NH,h1,NQi,R5,IK9,LxE,acd,d19,VeJ,Y89,jar,oQ,Tfd,sS,tu,H_$,P7J,O6L,aK$,eXO,Bf9,wJL,jU,WH7,p2u,VQO,sJn,sai,nmn,S8E,i2,dwl,Aa9,D1l,RXD,IV,Lur,NNJ,yau,bn9,Csd,eO,tBD,YQu,KEn,F7E,Nc,bD,GMl,md,kMa,LMJ,WTn,hh,EXn,tQi,$1d,pJB,w6l,vC,jF,x1$,hg7,C7a,eNl,Nfi,Mqa,mP,Nk7,La,UIO,Ppr,Vw,k5,cal,R7$,gm9,v2,OwD,KZJ,LP,GQ,MQJ,f0,Ij,JJ,Rn,atl,IYi,rA,dBn,oiL,pB,Oj,Y$d,FdO,TrJ,iyE,ic,dU,fYn,Pud,YAr,WjO,f5,eJn,bgE,oK,V_, wBL,mY,Nrn,uql,RA7,dt,sXJ,UEJ,nil,hJl,mBB,y4,G69,I3D,H0i,Odr,q$9,S$n,lKD,yq,Hqn,yH,k0,Aqr,FFE,DBE,OIu,JqO,dH,lA,an,sd,vG$,RJd,Lj$,yqr,dw,lYn,uBi,GNn,zJB,gI,jeL,R6L,kNu,RA,uA,q6L,zj,tH,zEB,XBJ,CE,tpB,kBn,kR,vU,PgL,oN,bCE,lr,aw7,Gn,$Bi,pBL,zR,d5J,zC,Rni,Ei,Js,xBn,R0E,byO,Ae,ETu,Xw,Dc,Hy$,hl,JK,Ol,Y1$,pDu,kX,pW,Sj,OD,N$,Fl,pS7,xf7,Skl,z59,gil,j6,tJ,hbu,rdD,r_,tN,k1i,h99,$R,zT,H6l,x7l,r49,j4O,TbE,SM7,ZD,fiL,PQD,J6D,Q4D,I7,Iq,O1i,jQB,aia,W2J,og,VP$,epO,OK,Bbn,qy,iaD,poE,TF,w_a,JbL,NbB,ew,lNL,F2O,s4l,n77, SFr,XsE,L6a,D4i,Rp$,yw7,KI,flu,HKi,Pp,q1$,Qv,rO,pZJ,xEJ,m9,Grr,ES,JG,y7i,K_,cqL,MG,OMu,sQa,Eca,FA,hqn,ZwB,bA,Gw$,t5,I3,ti7,qzn,nH,kz,rq,VGn,Hd,IJ,bQE,x4u,E7d,RsL,b1B,GI,ol,sC,hJ,H1d,Fku,nU,Dg,cwO,g7L,rW7,Brn,cd,OSJ,OQd,gU,MiE,rwd,vZ,I59,gi,amD,iR,Yvl,VDa,LU,pOE,AiD,wO,VHL,TYi,Ao,GF,UBB,uRD,ut9,YrD,GQB,vpu,jA,P67,RwE,j9,Ty,dq,vq,BE,l_,zB,hm7,I1i,Cr,UK,kU,BYE,VZ,wHd,xC,NY9,hI,Wb,Ffd,Q0,sTB,AJ,aH,XO,DB,XZ,Wm,UU,wyn,RG,nN9,RL,CWi,QWa,Bm,v5E,L89,s7,w4,BV$,yc,V0,YWd,NY,A0,olJ,u0,Aja,kFJ,mi,DLB,Tc,RdB,LfL, Fe,MrE,UL9,b6O,oma,Bz,F0a,e7,Kq,iX,M9,u1D,FV,wB,zd$,eK,kbl,XHJ,B_d,RFa,Oe,NGJ,ltB,TI,$Ld,pHD,Kfa,C6$,ENL,I2,tUn,Cpa,cjL,nUJ,WBu,CmE,af,gND,nC,TZu,l1,IO,lf9,Kuu,hM,Xd9,fWa,jl,pn,CiB,ZT$,NG,s3,dsu,Mx7,oqr,jsO,Jd,l$,Tsl,$L,P2l,jmn,fO9,WC,WSd,UKL,tOO,Qs7,Ind,ZGO,qY,$Al,aOr,yUB,qln,QcB,NaB,WqL,err,Bcr,nqa,MVn,Qw,hr9,WRL,afl,AM,SPa,DCn,Yb9,AP9,eD,Dsu,y2,uTi,gs7,Qzr,Do,JM,zw,JPa,l5$,xAi,Rri,jT7,Nml,Us7,qd,Jor,vql,lOa,inJ,vm,ZIO,X5n,ty9,U4L,LnE,p5J,sIa,KqD,zW,nk,le7,HTO,Lz,cPB,MBJ,yB,Fq,EZ,gqO,qU,e3D,ZJE, mL,d8i,h$,X5,hk,odO,Apu,Y97,LI,j$,tU,jFa,Wx,Aka,TTD,iJd,sz7,sHn,QFJ,tM,iAJ,OJ9,KW,E7,ohB,Nln,eYE,Ws,Unn,TR,dN,un$,qKJ,a6J,J4D,mk,zh,ooL,wL$,VT,T2D,VuB,j2,$F,aK,Ix9,hW,eRO,Vvl,hYO,Yn,FWO,xqi,pC,SdD,$F9,m8l,SC,Pg,ur,p_D,t$B,Pu,KC,pba,AcO,D89,DG,oq,OED,ivr,W7$,JcB,DC,Or,YdJ,RC$,Ea,PJa,LJa,U8O,ruE,vQ,jx,R8d,B$L,BaE,ySn,Z$,BG,g3,nI,MP,CJi,yc9,uY,twa,vdB,wn9,uQn,Tb,Ek,lPd,bt,cuL,PQ,Z4L,Ii,Hm,u$D,GpB,mh,zYi,cm,XL7,tur,$8L,pLu,KX,Igr,nv,N5d,UQ,w_,Mi,lSi,MY,ou,Zvn,x8u,KJL,FX,EsO,eh,r4,HJO,XJi,qH,ezJ,M5E,L$, Mud,rc9,BTl,vn,a3J,uPD,ZeJ,XU7,IIB,dal,ou9,Z6,pk,iw7,hXJ,KY,wxO,Ia,Qm,Xii,TW9,NM,JgJ,X2,cb,PK9,xm9,Qoa,Bt,OeE,yA,E4B,aIO,DQa,WGi,z89,ejJ,BWu,d0B,w0B,ZJ,uG,RH,aPi,sh,F3,oa,pCB,nur,f9,Pb,el,np,Mz,SXJ,ia,AEE,JI,lJ,JEB,Rj$,LGr,dQO,iB,q7B,R7,vua,B4,lIB,$E,X77,C5D,G0u,CP,HY,zjr,IyJ,zI,k0u,X0l,tEL,F6,WuO,td,xai,A2D,i7,r2L,zi,wpr,yN$,jXd,JWE,wla,CK$,T6,Eul,beD,rU,I6,hO,xP,Pyd,He$,lt,cED,gud,Sbr,MEJ,Pri,RN,rE7,Zmn,HV,t77,og9,Ok$,xj,nV,SO,Kh9,PJ,UV,uR,d4n,j0L,Byi,Cqn,imD,CU,O6,uDL,MOE,YK,Om9,d6,Q$,QjO,F8$, sQ,JIB,DZd,Tw,aq9,i1i,TzD,et,L8,jQ,LZ,j7u,ty,eZl,D9,wn,Be7,c4,TJB,aN,Lb,Ne9,rE,HC9,Xca,LSr,D2,YXa,FlL,s0D,ngn,hZD,z9n,mud,qpd,Zd,jwu,Spu,jU$,ky$,AZO,sk,N3,cRB,isO,Vcr,xh,t8n,JZD,NTl,KbJ,RZn,Uun,UrJ,BIu,ii,n0,yZn,vgJ,of7,Fqa,x$O,JT,uMO,FP,Ib,GtE,Z_,SY,so,sU,O3,$z,zIE,zZu,kt$,zP$,t_n,$un,MDu,wcd,G7$,TVn,xuE,lm$,Sr7,Cw$,HK,EgB,BJ,bP7,w3E,YpJ,dS,ef,N1,fA,sGi,Ax,CW,rI,J7,Z1u,Fi,db7,s8,d4,Ln,gDL,ZW7,YG9,jkn,WF,GV,gyr,TXa,ijd,RJ,CEa,f7L,Qi,POl,$9u,Sg,QkB,Oji,a7l,WVD,gdl,vfl,xD,ha,eOD,PFn,uF,Wf,zeL,gcl,w$B, Vo7,NXn,dR,FS9,xpJ,pI,JiO,FV$,zlD,dLi,LC,Vg,q1,QNd,hOl,mba,fgO,pG,qG$,TU$,bJu,SQ,sM,V$,f5L,DZ,i4$,H4l,AC$,we$,xY,yC,l6d,Dbu,KU,xQJ,z7$,cxa,qc$,JCn,ROr,mn,iNL,Ub7,mD,vJd,lwO,kA,gp,i3O,JNL,FW,X$9,Vx,h2,Jp$,toO,$C,er,p$$,l0n,dV7,oRl,COu,RDu,Ok,Ra,msO,uiu,SLu,N$J,EJa,YU,bjD,sEO,d6D,cC7,gJr,SL,eQ,u0l,Hji,o7n,i2n,V_9,IY,TD$,ilg,frv,Zo,PLu,Xt$,Mp,Vk,CX,$4E,xLl,Qdg,oE,Kz,id,OlM,DU,va,jHi,ymE,Yp,W7t,aJ,eat,gtu,ra$,jg,BDd,Vfi,J$,Ctu,IM,wOE,TM,yJ7,Id9,sdg,RvO,nda,qvd,mEV,ECL,VRu,oMn,qJW,SJE,WJ,Oq,X3,nJi,Y27, Gzn,aV,ct,US,sCn,qP,ea,DEp,JiE,pH,Rag,L7g,nHL,Qrn,R1,Ps,haV,kWr,u7,n1O,kcn,UEV,GM,yii,tO,A_,dg,o5J,wj,zM,ip,uC,x3B,v9W,xVi,CHn,grd,unt,GBL,HnD,zag,kB0,n9V,ihd,$Ei,pO3,Uo,A3u,xS,Gb,Rci,V3u,IH,J0d,km,CL3,liO,wQ,qPE,iv,$El,pe$,Hq,kH,QL,am,zqJ,Ta,EFB,cit,QaL,g9g,wzD,wkl,M$E,riL,VaL,sL,Zip,dEW,kai,oWW,Pm,Xi,QHn,MIL,$OO,Ycr,vmi,Pr,CS,TkJ,n2,jvM,wmD,U1E,Tu$,u5l,uGB,i5n,g5n,hT,rqO,m1$,iip,gUD,wH,SGr,YPa,lrW,ayO,Pp$,Qvg,k7D,wDE,Oip,a$3,D6L,tHn,WgW,CK,D4,rz,pr$,oH,eMu,Df7,wEM,uml,KS,qni,yCn,Vt3,Nuv,WWD,TqO, be,$2i,hM3,GPa,xeD,m3V,qVE,Wkl,Chr,g9,mL9,Qf,SV$,cw,Agv,u$,Blr,dk,$m,YF,D3$,B1,JgV,p6,Anu,LgV,U3i,uE,xsn,Fua,ZkB,WZa,Rp,cU,ygV,mEJ,wk,vW$,xm,hjl,HWl,XEL,Vh,ttV,vJ,OQ,$3p,pEv,e9,elu,x3L,Gh,Fy,cP,wZd,Yk,jIu,Kgp,teO,I8,CpM,EWE,f$u,IOJ,vHB,XOB,q9r,bit,vc7,p6a,yU,LHD,rC,HiV,uc,R4E,C6,zH,ub,Jai,E8,dE,x5,W1,ul,cg0,gWi,Za,IL,et9,b7,KLO,fsJ,EmL,pML,A$,HJ,k2,NZi,mo,QX7,GZL,Sla,ZUu,Pj$,qa$,qc,cJ,Xeu,zpi,Ihg,AI,KNl,$Yu,dN0,E9L,oCW,Y5E,X_7,BUD,MYa,qX7,cZ,rK,eC$,Vr7,cX,Zjn,jSE,Thg,E_,Cg,Xj,K6,ie,Ri$,PaL,fhE,J7E, pg,iIl,Pjt,wz,Qd7,M1,Vpd,kfJ,QSp,OU0,OB,ahW,oD,WLu,rf,blE,dV,oh,t1$,vd,sv9,e5v,Yh,ZY,YM,kC,Bh0,Uu,q8d,wlM,gf,S9B,cHu,ZsD,Ua,Kn;Y9=function(){}; PO=function(Z,I){return I.layoutId!==Z.layout.layoutId?(Z.Bh.b8(Z.slot,I,new j$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+Z.layout.layoutId+("and LayoutType: "+Z.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; Zli=function(Z,I){var d;return g.h(function(Y){if(Y.L==1){if(!I)return Y.return(I);d=new g.OJ(Z.D);return g.m(Y,d.decrypt(I,Z.L),2)}return Y.return(Y.D)})}; g.U=function(Z,I){Z.prototype=IrB(I.prototype);Z.prototype.constructor=Z;if(ad)ad(Z,I);else for(var d in I)if(d!="prototype")if(Object.defineProperties){var Y=Object.getOwnPropertyDescriptor(I,d);Y&&Object.defineProperty(Z,d,Y)}else Z[d]=I[d];Z.AV=I.prototype}; dE9=function(){WO={contentCpn:"",e9:new Map}}; e$=function(Z){var I="";if(Z.Yy)return Z.Yy;Z.isLivePlayback&&(I=Z.allowLiveDvr?"dvr":Z.isPremiere?"lp":Z.Ns?"window":"live");Z.uu&&(I="post");return I}; BO=function(Z,I,d){this.D=Z;this.isAsync=I;this.L=d}; o9u=function(Z,I){Z.raw=I;Object.freeze&&(Object.freeze(Z),Object.freeze(I));return Z}; Vu=function(Z){wD.call(this);this.N=Z}; GB=function(Z,I){if(I){var d=g.y(I,NE)||null;d==null?g.nl(Error("AdInfoRenderer did not contain an AdHoverTextButtonRenderer.")):(I=g.hi("video-ads ytp-ad-module")||null,I==null?g.nl(Error("Could not locate the root ads container element to attach the ad info dialog.")):(Z.fS=new g.m7({K:"div",T:"ytp-ad-overlay-ad-info-dialog-container"}),g.z(Z,Z.fS),Z.fS.i5(I),I=new qE(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.Hj,Z.fS.element,!1),g.z(Z,I),I.init(Ai("ad-info-hover-text-button"),d,Z.macros), Z.B?(I.i5(Z.B,0),I.subscribe("f",Z.kbS,Z),I.subscribe("e",Z.wY,Z),Z.W(Z.B,"click",Z.ZM5),Z.W(g.hi("ytp-ad-button",I.element),"click",function(){var Y;if(g.y((Y=g.y(d.button,g.Ji))==null?void 0:Y.serviceEndpoint,YJB))Z.w4=Z.api.getPlayerState(1)===2,Z.api.pauseVideo();else Z.api.onAdUxClicked("ad-info-hover-text-button",Z.layoutId)}),Z.d4=I):g.nl(Error("Ad info button container within overlay ad was not present."))))}else g.uL(Error("AdInfoRenderer was not present within InvideoOverlayAdRenderer."))}; jdL=function(Z){return String(Z).replace(/\-([a-z])/g,function(I,d){return d.toUpperCase()})}; TDr=function(Z,I){var d;return g.h(function(Y){if(Y.L==1)return g.m(Y,zB(I),2);d=Y.D;return Y.return(g.Xn(d,["LogsRequestsStore"],{mode:"readwrite",OU:!0},function(T){var f=T.objectStore("LogsRequestsStore");return f.get(Z).then(function(P){if(P)return P.status="QUEUED",g.ti(f,P).then(function(){return P})})}))})}; pl=function(Z,I,d){if((Z|48)==Z)throw I;Z>>2&7||(I=(I%d[Q[17]]+d[Q[17]])%d[Q[17]],d[Q[20]](I,1));if((Z+7^4)>=Z&&(Z-1^13)-6?(0,I[74])((((0,I[57])(I[43],I[46]),I[24])((0,I[36])(),I[9],I[63]),I[24])((0,I[new Date(Q[81])/1E3])(), I[9],I[63]),I[71],I[53],I[58]):((((0,I[69])(I[23],I[59]),I[69])(I[73],I[43]),I[69])(I[49],I[43]),I[32])(I[46]);I[16]!==2&&(I[55]==0?(0,I[47])(((0,I[47])((0,I[74])(I[11],I[58]),I[42],I[1],I[16]),I[7])(I[54],I[30])===(0,I[64])(I[59],I[75]),I[42],I[30],I[43]):(0,I[47])((((0,I[47])((0,I[7])(I[2],I[1]),I[42],I[33],I[51]),I[74])(I[3]),I[67])(I[43],I[3]),I[67],I[2],I[15]));I[60]!==-9&&(0,I[64])((((0,I[61])(I[47]),I[9])(I[75],I[61])^(0,I[7])(I[14],I[29]))&(0,I[54])(I[32],I[70]),I[76],I[37],I[18]);I[62]<-8&& ((0,I[61])(I[50],I[10]),(0,I[16])(I[56],I[35]));var Y=[I]}Z-6>>4>=0&&(Z-2&16)<9&&I[Q[10]](d);return Y}; EJ=function(Z){g.x9("transport_use_scheduler")?g.Kl.ze(Z):g.Cl(Z)}; g.HO=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; ME=function(Z){Z.L.update();Z=Z.L;Z.segments.length&&Z.L===Z.Z||gD(Z);var I=Z.segments;Z.segments=[];return I}; ili=function(Z){Z.Wj.publish("initializingmode");Z.bP(2);Z$(Z.cg,"remote");Z$(Z.cg,"miniplayer")}; frd=function(Z,I,d){Z.lQ.get(I).onProgress=d}; Iv=function(){this.L=0}; du=function(Z,I,d){this.triggeringSlotId=I;this.triggerType="TRIGGER_TYPE_SLOT_ID_EXITED";this.triggerId=d||Z(this.triggerType)}; PLD=function(Z,I){var d;return g.h(function(Y){if(!I)return Y.return(I);d=new g.OJ(Z.D);return Y.return(d.encrypt(I,Z.L))})}; YW=function(){if(!ov())throw Error();}; Ola=function(Z,I){var d=ip(Z.D.get(),Z.slot.slotType),Y=Object,T=Y.assign;Z=Z.slot;if(I.slotEntryTrigger){var f=I.slotId;var P=I.slotEntryTrigger;f=P.triggeringSlotId!=null&&P.triggeringSlotId===f?P.clone(d):P}else f=void 0;return T.call(Y,{},Z,{slotId:d,slotEntryTrigger:f,slotFulfillmentTriggers:Qd7(I.slotId,d,I.slotFulfillmentTriggers),slotExpirationTriggers:Qd7(I.slotId,d,I.slotExpirationTriggers)})}; PE=function(Z,I){return fi(Z,I)||(Z.currentStyle?Z.currentStyle[I]:null)||Z.style&&Z.style[I]}; OV=function(Z,I){Qd.call(this,Z,I);this.mJ=!0;this.Ns=!1;this.w4=this.Tm=0;this.sZ=NaN}; av=function(Z,I){I=new arL(new W7$(I));ad&&Z.prototype&&ad(I,Z.prototype);return I}; WE=function(Z){if(Z.currentState!==2)return!1;Z.currentState=3;return!0}; ea$=function(Z,I){return et(Z,I)||Math.abs(Z.j-I.B)<=1E-6||Z.YS+1===I.YS&&I.D===0&&Z.N?!0:!1}; wu=function(Z,I,d){Z.L&&Z.videoTrack.j!==-1&&Z.audioTrack.j!==-1&&(Z.L=!1,Z.targetTime=I,BE(Z.loader,I+.1,{Lv:!0,H$:"chunkSelectorSynchronize",j3:!0,seekSource:d}))}; wOO=function(Z){return BDu(Z)}; V$u=function(Z){return g.Vd?"webkit"+Z:Z.toLowerCase()}; F0=function(Z,I,d){if(!Z.AE){I=Math.max(I,.01);var Y=Z.Hl?Math.max(I,d/Z.Hl):I,T=Z.Bk.D.Z;T&&(Y=I,Z.Hl&&(Y=Math.max(I,d/Z.Hl*T)));N3(Z.Bk,I,d,Y)}}; sV=function(){g.k.call(this,{K:"div",T:"ytp-chapter-hover-container",G:[{K:"div",T:"ytp-progress-bar-padding"},{K:"div",T:"ytp-progress-list",G:[{K:"div",zm:["ytp-play-progress","ytp-swatch-background-color"]},{K:"div",T:"ytp-progress-linear-live-buffer"},{K:"div",T:"ytp-load-progress"},{K:"div",T:"ytp-hover-progress"},{K:"div",T:"ytp-ad-progress-list"}]}]});this.startTime=NaN;this.title="";this.index=NaN;this.width=0;this.D=this.KS("ytp-progress-list");this.B=this.KS("ytp-progress-linear-live-buffer"); this.N=this.KS("ytp-ad-progress-list");this.j=this.KS("ytp-load-progress");this.V=this.KS("ytp-play-progress");this.Z=this.KS("ytp-hover-progress");this.L=this.KS("ytp-chapter-hover-container")}; ND7=function(Z){var I=Z.S.cj().getPlayerSize().width;return Math.max(I-ni(Z)*2,100)}; GL=function(Z,I){var d=new hg(Z);g.St.call(this,"Playback speed",g.D$.fL,Z,I,Jg(Z)?void 0:"Custom",Jg(Z)?void 0:function(){g.Li(I,d)}); var Y=this;this.j=new g.k({K:"div",T:"ytp-menuitem-premium-badge",J:{"aria-label":"Premium"}});this.N=!1;g.z(this,d);this.V=new UV(Z);g.z(this,this.V);if(Z.Y("web_settings_menu_icons")){var T=Z.Y("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"currentColor",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M12 1c1.44 0 2.87.28 4.21.83a11 11 0 0 1 3.45 2.27l-1.81 1.05A9 9 0 0 0 3 12a9 9 0 0 0 18-.00l-.01-.44a8.99 8.99 0 0 0-.14-1.20l1.81-1.05A11.00 11.00 0 0 1 10.51 22.9 11 11 0 0 1 12 1Zm7.08 6.25-7.96 3.25a1.74 1.74 0 1 0 1.73 2.99l6.8-5.26a.57.57 0 0 0-.56-.98Z"}}]}: {K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M10,8v8l6-4L10,8L10,8z M6.3,5L5.7,4.2C7.2,3,9,2.2,11,2l0.1,1C9.3,3.2,7.7,3.9,6.3,5z M5,6.3L4.2,5.7C3,7.2,2.2,9,2,11 l1,.1C3.2,9.3,3.9,7.7,5,6.3z M5,17.7c-1.1-1.4-1.8-3.1-2-4.8L2,13c0.2,2,1,3.8,2.2,5.4L5,17.7z M11.1,21c-1.8-0.2-3.4-0.9-4.8-2 l-0.6,.8C7.2,21,9,21.8,11,22L11.1,21z M22,12c0-5.2-3.9-9.4-9-10l-0.1,1c4.6,.5,8.1,4.3,8.1,9s-3.5,8.5-8.1,9l0.1,1 C18.2,21.5,22,17.2,22,12z",fill:"white"}}]}; this.setIcon(T)}this.S=Z;this.N=!1;this.kS=null;Jg(Z)?(this.L=g.yd("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:this.S.getPlaybackRate().toString()}),this.B=this.S.getPlaybackRate()):this.B=this.L=null;g.z(this,this.j);var f,P,O,a;this.Ns=(f=this.S.getVideoData())==null?void 0:(P=f.getWatchNextResponse())==null?void 0:(O=P.playerOverlays)==null?void 0:(a=O.playerOverlayRenderer)==null?void 0:a.showPlaybackRateUpsellPanelCommand;F7E(Z,this.Ns)?(this.D=lp(4),this.S.createClientVe(this.j.element, this,273508)):this.D=null;this.LS=this.S.getAvailablePlaybackRates();this.W(Z,"presentingplayerstatechange",this.qs);var W;((W=this.S.getVideoData())==null?0:W.YF())&&this.W(Z,"serverstitchedvideochange",this.qs);this.W(this.V.D,"change",function(){Y.N=!0;Y.qs()}); this.qs()}; sdi=function(Z,I){g.zL(Z.element,"ytp-volume-control-hover",I);kW(Z,I,Z.isDragging,Z.D,Z.api.oK())}; n9J=function(Z){var I=navigator.mediaCapabilities;if(I==null||!I.decodingInfo||Z.Pj==="f")return Promise.resolve();var d={type:Z.audio&&Z.video?"file":"media-source"};Z.video&&(d.video={contentType:Z.mimeType,width:Z.video.width||640,height:Z.video.height||360,bitrate:Z.pS*8||1E6,framerate:Z.video.fps||30});Z.audio&&(d.audio={contentType:Z.mimeType,channels:""+(Z.audio.numChannels||2),bitrate:Z.pS*8||128E3,samplerate:Z.audio.sampleRate||44100});return I.decodingInfo(d).then(function(Y){Z.D=Y})}; tg=function(Z){this.L=Z}; xW=function(Z){g.k.call(this,{K:"button",zm:["ytp-button","ytp-autonav-toggle"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","aria-label":"{{label}}","data-priority":"3","data-tooltip-target-id":"ytp-autonav-toggle-button"},G:[{K:"div",T:"ytp-autonav-toggle-button-container",G:[{K:"div",T:"ytp-autonav-toggle-button",J:{"aria-checked":"true"}}]}]});this.S=Z;this.D=[];this.L=!1;this.isChecked=!0;Z.createClientVe(this.element,this, 113681);this.W(Z,"presentingplayerstatechange",this.Iv);this.listen("click",this.onClick);this.D.push(this.W(this.S,"videodatachange",this.Iv));this.D.push(this.W(this.S,"videoplayerreset",this.Iv));this.D.push(this.W(this.S,"onPlaylistUpdate",this.Iv));this.D.push(this.W(this.S,"autonavchange",this.Fy));pi(Z,this.element,this);this.Iv()}; Ki=function(){return["metadata_type_ad_placement_config"]}; EV=function(Z){if(Z instanceof tg)return Z.L;throw Error("");}; HE=function(Z){this.Gm=bp(Z)}; g.M3=function(Z,I){I=cE(I);I!==void 0&&(Z.href=I)}; haJ=function(Z){var I=0,d=NaN,Y="";if(!Z.In)return{startSeconds:I,V7:d,source:Y};Z.videoData.Ns?I=Z.videoData.fS:ru(Z.videoData)&&(I=Infinity);if(g.IS(Z.videoData))return{startSeconds:I,V7:d,source:Y};Z.videoData.startSeconds?(Y="ss",I=Z.videoData.startSeconds):Z.videoData.En&&(Y="stss",I=Z.videoData.En);Z.videoData.liveUtcStartSeconds&&(d=Z.videoData.liveUtcStartSeconds);if(isFinite(I)&&(I>Z.tZ()||I=I)){for(var d=Z.L.length*2;d0||I>127;)Z.L.push(I&127|128),I=(I>>>7|d<<25)>>>0,d>>>=7;Z.L.push(I)}; Buu=function(Z,I,d,Y,T){var f=!1;Y=Ej(Z,Y,T,function(P){var O=eMD(P,d,I);f=O!==P&&O!=null;return O}); if(Y!=null)return f&&!b5(Y)&&H8(Z,I),Y}; c8=function(Z){if(Z!=null&&typeof Z!=="number")throw Error("Value of float/double field must be a number, found "+typeof Z+": "+Z);return Z}; wEa=function(){this.Z=[];this.D=0;this.L=new gm}; Mv=function(Z,I,d,Y,T){if(Z==null)return"";I=I||"&";d=d||",$";typeof d==="string"&&(d=d.split(""));if(Z instanceof Array){if(Y||(Y=0),Y=0;--T){var f=Z[T];!d&&nW9.test(f.url)&&(d=f);if(f.url&&!f.L){I=f;break}}T=null;f=Z.length&&Z[Y].url;I.depth!==0&&f&&(T=Z[Y]);return new hME(I,T,d)}; qVO=function(Z){var I,d;return(d=(I=/https?:\/\/[^\/]+/.exec(Z))==null?void 0:I[0])!=null?d:""}; fM=function(Z){return SVr(Z.N)}; nY=function(Z,I,d,Y,T,f,P){if(!((Z^11)&7)){var O=I[Q[53]](Q[9]);PS[Q[38]](O,2);PS[Q[5]](O,56);PS[Q[5]](O,55);PS[Q[5]](O,68);PS[Q[5]](O,25);var a=O[Q[48]](Q[9])}(Z&85)==Z&&(a=d(T,f,P));if(!(Z-8&15))for(O=I[Q[17]];O;)I[Q[10]](I[Q[20]](--O,1)[0]);(Z>>2&11)>=2&&(Z+3&8)<3&&(a=I!==null);return a}; Oi=function(Z,I){return g.QE(Z.toLowerCase(),I.toLowerCase())}; aq=function(Z,I){if(!Z.j7[I.id]){var d=Z.u5.L[I.id].index.QM(Z.Bj,15);d=I.mV&&Z.Z&&Z.Z.index.isLoaded()?d||I.mV:d||I.pS;Z.j7[I.id]=d}d=Z.j7[I.id];Z.w4.has(I.itag)&&(d*=1.5);return d*=Math.max(1,Z.J5.eD()||0)}; WS=function(Z){this.Gm=bp(Z)}; eV=function(Z,I,d){for(var Y=g.t(Agd),T=Y.next();!T.done;T=Y.next()){T=T.value;var f=Z.nN.get(T);f&&(d||f.bV(I))&&(g.Th(f),Z.nN.delete(T))}Z.S.publish("modulesDestroyed",I)}; BS=function(Z){switch(Z.dB()){case 2:return"progressive.net.retryexhausted";case 3:return Z=Z.LF(),(Z==null?0:Z.includes("MEDIA_ERR_CAPABILITY_CHANGED"))||D3r&&(Z==null?0:Z.includes("audio_output_change"))?"capability.changed":"fmt.decode";case 4:return"fmt.unplayable";case 5:return"drm.unavailable";case 1E3:return"capability.changed";default:return null}}; RMB=function(Z){Z.b5&&!Z.isSuspended&&wB(Z.schedule)&&(JgJ(Z,Z.b5),Z.b5="")}; VE=function(Z,I,d){I=g.t(I);var Y=I.next();LgJ(Y);if(Y.done)Z.D=Y.value,Z.L=d;else return Z.N=I,g.m(Z,Y.value,d)}; vWr=function(Z,I,d,Y,T){var f=U3l(Np(Z.slotEntryTrigger,d,Y),T,Z,I);if(f instanceof C)return f;for(var P=[],O=g.t(Z.slotFulfillmentTriggers),a=O.next();!a.done;a=O.next()){a=Np(a.value,d,Y);if(a instanceof C)return a;P.push(a)}P=ygJ(P,T,Z,I);I=[];Z=g.t(Z.slotExpirationTriggers);for(T=Z.next();!T.done;T=Z.next()){T=Np(T.value,d,Y);if(T instanceof C)return T;I.push(T)}return{slotEntryTrigger:f,slotFulfillmentTriggers:P,slotExpirationTriggers:I}}; si=function(Z){F4.call(this,!0);this.L=Z}; m_=function(Z){return function(){return Z}}; qp=function(Z,I,d){var Y=Z.policy.playbackStartPolicy.resumeMinReadaheadPolicy||[],T=Z.policy.playbackStartPolicy.startMinReadaheadPolicy||[];Z=Infinity;I=g.t(I&&Y.length>0?Y:T);for(Y=I.next();!Y.done;Y=I.next())Y=Y.value,T=Y.minReadaheadMs||0,d<(Y.minBandwidthBytesPerSec||0)||Z>T&&(Z=T);return Z0&&Z[Z.length-1]!=null&&Z[Z.length-1].url!=null?g.LM(Z[Z.length-1].url)||"":"";this.L=new Ui(0,0,0,0);this.N=new g.qv(0,0);this.B=new g.qv(0,0);this.V=new Ui(0,0,0,0);this.frameOffset=new g.vS(0,0);this.j=0;this.X=!1;this.D=!(!JB||!u0l(JB).h0);this.update(JB)}; lN=function(Z){Z.Bj=[];Z.po();Z.S.jM("featured_product")}; g.uN=function(Z,I){function d(){} d.prototype=I.prototype;Z.AV=I.prototype;Z.prototype=new d;Z.prototype.constructor=Z;Z.hB=function(Y,T,f){for(var P=Array(arguments.length-2),O=2;O=I||(Y[Z]=d+1,Z=Error(),$3L(Z,"incident"),X4(Z))}}; xk=function(Z,I,d){this.pN=Z;this.L=I;this.Q5=d;$k(pM(),{NL:pEd,To:x3B})}; g.CM=function(Z,I,d){var Y={};(0,g.KM)(Z,function(T,f){Y[I.call(d,T,f,Z)]=T}); return Y}; cS=function(Z,I,d,Y,T,f,P,O,a,W){this.width=Z;this.height=I;this.D=O;this.quality=f||Ei(Z,I);this.qualityOrdinal=g.HS[this.quality];this.fps=d||0;this.stereoLayout=!T||Y!=null&&Y!=="UNKNOWN"&&Y!=="RECTANGULAR"?0:T;this.projectionType=Y?Y==="EQUIRECTANGULAR"&&T===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":Y:"UNKNOWN";(Z=P)||(Z=g.HS[this.quality],Z===0?Z="Auto":(I=this.fps,d=this.projectionType,Z=Z.toString()+(d==="EQUIRECTANGULAR"||d==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||d==="MESH"?"s":"p")+(I>55?"60": I>49?"50":I>39?"48":"")));this.qualityLabel=Z;this.L=a||"";this.primaries=W||""}; g.gB=function(Z){return Z.match(KgL)}; Z0=function(Z){var I=Z.videoTrack.j!==-1,d=Z.audioTrack.j!==-1;if(!I||!d)if(I=!I&&fM(Z.videoTrack),d=!d&&fM(Z.audioTrack),I||d){d=I?Z.videoTrack:Z.audioTrack;I=I?Z.audioTrack:Z.videoTrack;d.j=fM(d).info.YS;if(Z.policy.B){var Y;I.j=((Y=fM(I))==null?void 0:Y.info.YS)||I.j}if(I.j!==-1){var T=Math.max(I.L.index.getStartTime(I.j),d.L.index.getStartTime(d.j));Mp(Z.u5)&&Math.abs(T-Mp(Z.u5))>432E3&&Cpa(Z.u5);Z.D&&(T=Z.D,Z.D=0);g.rB(function(){Z.policy.B||wu(Z,T,102)}); Z.loader.D1("initManifestlessSync",{st:T,ost:T+Z.loader.Fx(),a:Z.audioTrack.j,v:Z.videoTrack.j});Z.Z&&(Z.Z.resolve(T+.1),Z.Z=null);Z.policy.B&&wu(Z,T,102)}}}; dQ=function(Z){Z.X=!1;Z.V.isActive()&&I8(Z);Z.V.stop();Z.Af(!1)}; TG=function(Z,I,d,Y){Y=Y===void 0?{}:Y;var T={},f=Math.round(Y.timestamp||(0,g.o8)());T.eventTimeMs=f0?kE(Y,d).includes(I):kE(Z.Z,d).includes(I)}; iUl=function(Z){switch(Z){case "DESKTOP":return 1;case "UNKNOWN_PLATFORM":return 0;case "TV":return 2;case "GAME_CONSOLE":return 3;case "MOBILE":return 4;case "TABLET":return 5}}; fhO=function(Z){return Array.prototype.map.call(Z,function(I){I=I.toString(16);return I.length>1?I:"0"+I}).join("")}; QSL=function(Z,I){I<0||(Z.D.forEach(function(d){Pj$(d,I)}),Z.timestampOffset=I)}; arL=function(Z){this.next=function(I){Xf(Z.L);Z.L.N?I=tn(Z,Z.L.N.next,I,Z.L.X):(Z.L.X(I),I=$E(Z));return I}; this.throw=function(I){Xf(Z.L);Z.L.N?I=tn(Z,Z.L.N["throw"],I,Z.L.X):(pL(Z.L,I),I=$E(Z));return I}; this.return=function(I){return OUn(Z,I)}; this[Symbol.iterator]=function(){return this}}; CL=function(Z,I,d,Y){var T=T===void 0?!1:T;d=xE(Y,d);KL(Z,I,d,{capture:T})}; HP=function(Z,I){Z.L.push(I>>>0&255);Z.L.push(I>>>8&255);Z.L.push(I>>>16&255);Z.L.push(I>>>24&255)}; gQ=function(Z,I,d,Y){cP.call(this,Z,I,d,Y,"ytp-video-ad-top-bar-title","ad-title")}; ZX=function(Z,I,d,Y){if(Mx.length){var T=Mx.pop();T.init(Z,I,d,Y);Z=T}else Z=new rQ(Z,I,d,Y);this.L=Z;this.N=this.L.L;this.D=this.Z=-1;ah9(this,Y)}; WLD=function(Z,I){I.sort(function(d,Y){return d.toString().localeCompare(Y.toString(),Z.nS.hostLanguage)})}; e5d=function(Z,I){if(Z.dV){var d=Z.D.get(Z.dV);if(d&&d.start-200<=I&&d.end+200>=I)return d}Z=g.t(Z.D.values());for(d=Z.next();!d.done;d=Z.next())if(d=d.value,d.start<=I&&d.end>=I)return d}; Bhn=function(Z,I,d,Y){if(g.IB(Z)&&!Array.isArray(Z)){I="playlist list listType index startSeconds suggestedQuality".split(" ");d={};for(Y=0;Yd?0:Z}; nCJ=function(Z){return js(Z).then(function(I){return I?new sSJ(Z,I):null})}; h5u=function(Z){g.TA(Z.L,function(I){I.L>1E5||++I.L})}; LgJ=function(Z){if(!(Z instanceof Object))throw new TypeError("Iterator result "+Z+" is not an object");}; mND=function(Z){this.nS=Z;this.M8=this.Lf=this.j7=this.B=this.N=this.sZ=this.w4=this.LS=!1;this.V=this.j=0;this.d4=!1;this.kS=!0;this.J5=!1;this.WB=0;this.kN=this.Bj=!1;this.Tv=!0;this.Tm=this.mJ=!1;this.L={};this.I0=this.SK=this.EU=this.disableAv1=this.b5=this.Gv=this.y5=this.UZ=this.D=this.X=!1;this.Ns=0;this.kF=this.nS.Y("html5_disable_aac_preference");this.sU=Infinity;this.fS=0;this.Hk=this.nS.Vy();this.Yl=this.nS.experiments.CS("html5_enable_vp9_fairplay");this.vg=this.nS.Y("html5_force_av1_for_testing"); this.on=g.Q4(this.nS.experiments,"html5_av1_ordinal_cap");this.wz=this.nS.Y("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.En=this.nS.Y("html5_account_onesie_format_selection_during_format_filter");this.pS=g.Q4(this.nS.experiments,"html5_max_byterate");this.eK=this.nS.Y("html5_enable_iamf_audio");this.R4=this.nS.experiments.CS("html5_allow_capability_merge");this.o4=this.nS.Y("html5_enable_encrypted_av1")}; q5r=function(Z){var I,d=(I=fM(Z))==null?void 0:I.info;return!d||Z.Kv(Math.min(d.B+i3,d.j))}; DNr=function(Z){var I=S59[fF[Z]],d=Ahu[Z];return d&&I?new Pg(Z,I,{audio:new QF(d.audioSampleRate,d.numChannels)}):null}; g.ON=function(Z,I,d,Y){Y?Z.In[Y]=Z.Z:Z.In=[Z.Z];Z.j=I||0;Z.B=d||0}; JhD=function(){var Z={};this.D=(Z.vs=[1,0],Z.vw=[0,1],Z.am=[2,2],Z.a=[4,4],Z.f=[8,8],Z.bm=[16,16],Z.b=[32,32],Z.avw=[0,64],Z.avs=[64,0],Z.pv=[256,256],Z.gdr=[0,512],Z.p=[0,1024],Z.r=[0,2048],Z.m=[0,4096],Z.um=[0,8192],Z.ef=[0,16384],Z.s=[0,32768],Z.pmx=[0,16777216],Z.mut=[33554432,33554432],Z.umutb=[67108864,67108864],Z.tvoff=[134217728,134217728],Z);this.L={};for(var I in this.D)this.D[I][1]>0&&(this.L[I]=0);this.Z=0}; R5u=function(Z){switch(Math.trunc(Z.Z)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; aB=function(Z){return!!Z.videoData.startSeconds&&isFinite(Z.videoData.startSeconds)&&Z.videoData.startSeconds>1E9}; g.Vs=function(){var Z=g.iN.navigator;return Z&&(Z=Z.userAgent)?Z:""}; LL9=function(Z){Z&&Wg&&es()&&(Wg.clearMarks("goog_"+Z.label+"_"+Z.uniqueId+"_start"),Wg.clearMarks("goog_"+Z.label+"_"+Z.uniqueId+"_end"))}; g.Nl=function(Z,I,d){if(UNn&&!I)Z=g.iN.btoa(Z);else{for(var Y=[],T=0,f=0;f255){var O=Error("go/unicode-to-byte-error");if(d)throw O;Y[T++]=P&255;P>>=8}Y[T++]=P}Z=g.Bg(Y,I)}return Z}; g.Fp=function(Z){return Z==null?"":String(Z)}; var yhi=function(Z,I){return sN[Q[32]](this,3,Z,I)}; vC7=function(Z,I,d){Z instanceof String&&(Z=String(Z));for(var Y=Z.length-1;Y>=0;Y--){var T=Z[Y];if(I.call(d,T,Y,Z))return{YX:Y,uS:T}}return{YX:-1,uS:void 0}}; lhD=function(Z){var I=[];g.KM(Z,function(d){nF(hG.L,function(Y){return Y.QJ.YJ===d.QJ.YJ&&Y.iy===d.iy})||(hG.L.push(d),I.push(d))})}; mI=function(Z){for(var I=[],d=g.t(Z.L.keys()),Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var T=Z.L.get(Y);I.push(Y+"_"+T.maxWidth+"_"+T.maxHeight)}return I.join(".")}; g.ql=function(){return{innertubeApiKey:g.rh("INNERTUBE_API_KEY"),innertubeApiVersion:g.rh("INNERTUBE_API_VERSION"),Nr:g.rh("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),yh:g.rh("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),j4:g.rh("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.rh("INNERTUBE_CONTEXT_CLIENT_VERSION"),Az:g.rh("INNERTUBE_CONTEXT_HL"),bv:g.rh("INNERTUBE_CONTEXT_GL"),Oe:g.rh("INNERTUBE_HOST_OVERRIDE")||"",T4:!!g.rh("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),AO:!!g.rh("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.rh("SERIALIZED_CLIENT_CONFIG_DATA")}}; GhE=function(Z){var I={};g.KM(Z,function(d){var Y=d.event,T=I[Y];I.hasOwnProperty(Y)?T!==null&&(d.equals(T)||(I[Y]=null)):I[Y]=d}); uHa(Z,function(d){return I[d.event]===null})}; Ss=function(Z,I){this.type=Z||"";this.id=I||""}; kh7=function(Z,I,d,Y,T){var f=AG(Z,I);if(!f){I.playerVars.prefer_gapless=!0;var P=new g.DX(Z.U,I.playerVars);P.uQ=I.uQ;Z.api.Q4(P,I.playerType)}P=Z.app.l5();f||P.addCueRange(I.XS.HO);P.seekTo(d,Object.assign({},{H$:"application_timelinemanager"},Y));z59(Z,T)}; LF=function(Z,I,d){var Y=arguments,T=document,f=Y[1],P=JG(T,String(Y[0]));f&&(typeof f==="string"?P.className=f:Array.isArray(f)?P.className=f.join(" "):RB(P,f));Y.length>2&&XlJ(T,P,Y,2);return P}; $Nu=function(){var Z=UN;this.L=txu;this.isRepeated=0;this.D=yF;this.defaultValue=void 0;this.Z=Z.messageId!=null?vg:void 0}; plE=function(Z){var I,d;Z=(I=Z.L)==null?void 0:(d=I.bannerData)==null?void 0:d.itemData;var Y,T,f;return(Z==null||!Z.affiliateDisclaimer)&&(Z==null?0:(Y=Z.exclusivesData)==null?0:Y.exclusiveOfferLabelText)&&(Z==null?0:(T=Z.exclusivesData)==null?0:T.expirationTimestampMs)&&(Z==null?0:(f=Z.exclusivesData)==null?0:f.exclusiveOfferCountdownText)?!0:!1}; u3=function(Z){return Z.t_||l3(Z)==="detailpage"||l3(Z)==="shortspage"||Z.mutedAutoplay}; g.zA=function(Z,I){g.GA.call(this,Z,{K:"div",zm:["ytp-popup",I||""],G:[{K:"div",T:"ytp-focus-trap-before",J:{tabindex:"0"}},{K:"div",T:"ytp-popup-content"},{K:"div",T:"ytp-focus-trap-after",J:{tabindex:"0"}}]},100,!0);this.L=[];this.N=this.Z=null;this.maxHeight=this.maxWidth=0;this.size=new g.qv(0,0);this.content=this.KS("ytp-popup-content");this.listen("keydown",this.cJ);this.W(this.KS("ytp-focus-trap-before"),"focus",this.Gb5);this.W(this.KS("ytp-focus-trap-after"),"focus",this.eF7)}; Xp=function(Z,I,d,Y,T){kw.call(this,Z,{K:"div",T:"ytp-ad-player-overlay-layout",G:[{K:"div",T:"ytp-ad-player-overlay-layout__player-card-container"},{K:"div",T:"ytp-ad-player-overlay-layout__ad-info-container"},{K:"div",T:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{K:"div",T:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",I,d,Y);this.D=T;this.fS=this.KS("ytp-ad-player-overlay-layout__player-card-container");this.L=this.KS("ytp-ad-player-overlay-layout__ad-info-container"); this.X=this.KS("ytp-ad-player-overlay-layout__skip-or-preview-container");this.kS=this.KS("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; tG=function(Z){this.value=Z}; GBB=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);pF(this.api,"musicDisableUi",function(){g.xw(I.api.getRootNode(),"ytp-player-in-bar-disable-ui")}); pF(this.api,"musicEnableUi",function(){g.KF(I.api.getRootNode(),"ytp-player-in-bar-disable-ui")})}; xNl=function(Z){return CF[Q[32]](this,2,Z)}; EN=function(Z){this.value=Z}; Hg=function(Z,I){if(g.b3(Z.Z,I))return Z.Z[I];if(Z=Z.L[I])return Z.getValue()}; g.g6=function(Z,I,d){d=d===void 0?{}:d;var Y=g.cg;g.rh("ytLoggingEventsDefaultDisabled",!1)&&g.cg===g.cg&&(Y=null);TG(Z,I,Y,d)}; Ml=function(Z){return Z==null?Z:KLO(Z)}; r6=function(Z,I,d,Y,T,f){this.videoData=Z;this.L=I;this.reason=d;this.D=Y;this.token=T;this.videoId=f}; Cj9=function(Z,I,d){var Y=new XMLHttpRequest;if(d==null?0:d.n$)Y.onreadystatechange=function(f){d.n$(Y,f)}; var T;Y.open((T=I.method)!=null?T:"GET",Z,!0);Y.responseType="text";Y.withCredentials=!0;if(I.headers)for(Z=g.t(Object.entries(I.headers)),I=Z.next();!I.done;I=Z.next())T=g.t(I.value),I=T.next().value,T=T.next().value,Y.setRequestHeader(I,T);return Y}; IW=function(Z,I){var d;I=(d=Z.V5.get().d9.get(I))!=null?d:null;if(I===null)return Zv("Expected ad video start time on playback timeline"),0;Z=Z.S.getCurrentTime(2,!0);return Z=0;--d)d in Y&&I.call(void 0,Y[d],d,Z)}; g.T9=function(Z,I){var d=Array.prototype.slice.call(arguments,1);return function(){var Y=d.slice();Y.push.apply(Y,arguments);return Z.apply(this,Y)}}; rha=function(Z){return Z?(Z=Z.privateDoNotAccessOrElseSafeScriptWrappedValue)?Mx7(Z):null:null}; ZYd=function(Z){Z.S.isFullscreen()?g.iS(Z.S,Z.element,10):Z.i5(fs(Z).body)}; wD=function(){this.D=null;this.L=!1}; dvE=function(Z){Z=g.y(Z==null?void 0:Z.additionalPlayerOverlay,IeJ);if(!Z)return!1;var I=Z.slidingMessages;return Z.title&&I&&I.length!==0?!0:!1}; b5=function(Z,I){return I===void 0?Z.L!==Pt&&!!(2&(Z.Gm[nL]|0)):!!(2&I)&&Z.L!==Pt}; cE=function(Z){return Z instanceof QZ?g.OZ(Z):oKE(Z)}; g.Wt=function(Z){return Z.indexOf("?")!==-1?(Z=(Z||"").split("#")[0],Z=Z.split("?",2),aW(Z.length>1?Z[1]:Z[0])):{}}; YjO=function(Z){Z.skip(4);return{iF7:e2(Z,0),value:e2(Z,0),timescale:Bt(Z),l6n:Bt(Z),eventDuration:Bt(Z),id:Bt(Z),TP:e2(Z),offset:Z.offset}}; jMn=function(Z){return wx.includes("en")?Z?VZ():{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M6,14v-4c0-0.55,.45-1,1-1h3c0.55,0,1,.45,1,1v1H9.5v-0.5h-2v3h2V13H11v1c0,.55-0.45,1-1,1H7C6.45,15,6,14.55,6,14z M14,15h3c0.55,0,1-0.45,1-1v-1h-1.5v0.5h-2v-3h2V11H18v-1c0-0.55-0.45-1-1-1h-3c-0.55,0-1,.45-1,1v4C13,14.55,13.45,15,14,15z M20,4H4v16h16V4 M21,3v18H3V3.01C3,3,3,3,3.01,3H21L21,3z",fill:"white"}}]}:Z?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},G:[{K:"path",J:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; XH=function(Z){$w.call(this,Z);var I=this;this.L=!0;var d=new g.De(Z);g.z(this,d);d.W(Z,"internalaudioformatchange",function(Y,T){TmD(I,Y,T)}); d.W(Z,"annotationvisibility",function(Y){I.api.Y("web_fix_annotations")&&iYO(I,(294).toString(),{boolValue:Y})}); d.W(Z,"videoplayerreset",function(){Nh(I)}); d.W(Z,"videodatachange",function(Y,T){I.onVideoDataChange(Y,T)})}; FD=function(Z,I){var d=Z.started+Z.L*4;I&&(d+=Z.Z);d=Math.max(0,d-3);return Math.pow(1.6,d)}; feB=function(Z,I){I=Array.prototype.splice.call(Z,I,1);Array.prototype.splice.call(Z,0,0,I[0])}; P5L=function(Z){var I;(I=Z.L)==null||I.Vg();var d;(d=Z.D)==null||d.Vg();Z.B=!1}; sZ=function(Z,I,d){var Y=Z.D[I];Y||(Y=[],Z.D[I]=Y);Y.push(d)}; QM$=function(Z,I,d){if(Z.oN){Z.oN.jc();var Y=Z.oN.In,T=Y.N,f=T.L;if(Y.j!=null){var P=Y.Z;Z.NH=new g.vS(P.left-f.left,P.top-f.top)}f=Z.bd()?Math.max(Y.L,Y.B):Y.L;P={};T.volume!==null&&(P.volume=T.volume);T=Z.jy(Y);Z.Oc=Y;Z.qs(f,I,d,!1,P,T,Y.X)}}; OYu=function(Z){this.L=Z}; g.yZ=function(Z,I){g.p.call(this);var d=this;this.provider=Z;this.Z=new Map;this.JZ=new g.ns;this.A9={Vns:function(){return d.qoe}, CVj:function(){return d.L}, ZrJ:function(){return d.D}}; this.provider.videoData.FF()&&!this.provider.videoData.n0&&(this.L=new RW(this.provider),this.L.D=0,g.z(this,this.L),this.qoe=new g.Ls(this.provider,I),g.z(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.l4=this.provider.videoData.clientPlaybackNonce)&&this.Z.set(this.l4,this.L));if(Z.U.playerCanaryState==="canary"||Z.U.playerCanaryState==="holdback")this.D=new UZ(this.provider),g.z(this,this.D)}; vt=function(Z){this.L=[];if(Z)a:{if(Z instanceof vt){var I=Z.D$();Z=Z.O9();if(this.L.length<=0){for(var d=this.L,Y=0;Y=I)return d}catch(Y){}return-1}; Ww=function(Z){Z.kS||(Z.kS=(0,g.o8)(),g.aI("mb_s",Z.kS,Z.L))}; nKE=function(Z){var I;return g.h(function(d){if(d.L==1)return g.m(d,sM9(Z),2);I=d.D;return g.m(d,I.clear("SWHealthLog"),0)})}; eG=function(Z,I,d){if(!I)return Z.length>=1?Z[Z.length-1]:null;for(var Y=g.t(Z),T=Y.next();!T.done;T=Y.next())if(T=T.value,T.width&&T.height&&(d&&T.width>=I||!d&&T.height>=I))return T;for(I=Z.length-1;I>=0;I--)if(d&&Z[I].width||!d&&Z[I].height)return Z[I];return Z[0]}; hxJ=function(Z,I,d,Y,T,f){var P={},O={};g.TA(I,function(a,W){a=a.filter(function(e){var B=e.itag;if(!e.T_)return O[B]="noenc",!1;if(f.Yl&&e.Pj==="(h"&&f.b5)return O[B]="lichdr",!1;if(!Z.B&&e.Pj==="1e")return O[B]="noav1enc",!1;if(e.Pj==="("||e.Pj==="(h"){if(Z.Z&&d&&d.flavor==="widevine"){var w=e.mimeType+"; experimental=allowed";(w=!!e.T_[d.flavor]&&!!d.L[w])||(O[B]=e.T_[d.flavor]?"unspt":"noflv");return w}if(!Bw(Z,wZ.CRYPTOBLOCKFORMAT)&&!Z.fS||Z.Ns)return O[B]=Z.Ns?"disvp":"vpsub",!1}return d&&e.T_[d.flavor]&& d.L[e.mimeType]?!0:(O[B]=d?e.T_[d.flavor]?"unspt":"noflv":"nosys",!1)}); a.length&&(P[W]=a)}); Y&&Object.entries(O).length&&T({rjr:VQ(O)});return P}; mvu=function(){return new Promise(function(Z){var I=window;I.ntpevasrs!==void 0?Z(new NT(I.ntpevasrs)):(I.ntpqfbel===void 0&&(I.ntpqfbel=[]),I.ntpqfbel.push(function(d){Z(new NT(d))}))})}; FI=function(Z){return!(!Z.L||!Z.L.isManifestless)}; qjn=function(Z,I){Z=Z.V;sT&&(Z+=I-n3);return Z}; Sj$=function(Z,I){Z.N(I);Z.D<100&&(Z.D++,I.next=Z.L,Z.L=I)}; g.mQ=function(Z,I){I=I===void 0?A97:I;a:if(I=I===void 0?A97:I,!(Z instanceof QZ)){for(var d=0;d=2?Z.L.getAllResponseHeaders()||"":"").split("\r\n");for(var d=0;dZ.c$())Z.segments=[];else{var d=d2(Z.segments,function(Y){return Y.YS>=I},Z); d>0&&Z.segments.splice(0,d)}}; $vr=function(Z,I,d){Z.X&&clearTimeout(Z.X);Z.L===0&&g.KF(Z.api.getRootNode(),"ytp-grid-scrolling");I?tdu(Z,d):Z.L<.1&&(Z.X=window.setTimeout(function(){tdu(Z)},1E3))}; xv$=function(Z){var I,d,Y,T,f;return(f=g.y((T=g.y((I=Z.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(Y=d.playerOverlayRenderer)==null?void 0:Y.decoratedPlayerBarRenderer,o$))==null?void 0:T.playerBar,p8J))==null?void 0:f.chapters}; Yo=function(Z,I){Z.SK=NaN;Z.I0=null;Z.UZ.stop();Z.j7&&I&&Z.j7.Gg();Z.b5=null;Z.j7=null}; QZ=function(Z){this.L=Z}; jz=function(Z){return new hX(function(I){return I.substr(0,Z.length+1).toLowerCase()===Z+":"})}; Ti=function(Z){return Z.policy.wz&&!!Z.j}; K5$=function(Z){this.end=this.start=Z}; Pj=function(Z,I){iX(Z);Z.loader.Fx();return f9(I,Z.loader.isSeeking())}; O1=function(Z,I){this.intervalMs=Z;this.callback=I;this.enabled=!1;this.L=function(){return g.QY()}; this.D=this.L()}; bYD=function(Z,I){var d,Y,T,f,P,O,a,W,e,B,w;return g.h(function(V){switch(V.L){case 1:d=I.isAd(),Y=!d,T=d?1:3,f=0;case 2:if(!(f0)){V.xS(5);break}return g.m(V,a$(5E3),6);case 6:P=new g.Wj("Retrying OnePlatform request",{attempt:f}),g.uL(P);case 5:return g.ez(V,7),g.m(V,C5D(Z,I),9);case 9:return V.return();case 7:O=g.Bj(V);a=w2(O);W=a.errorCode;e=Z.C();B=e.Y("html5_use_network_error_code_enums")?401:"401";Y&&W==="manifest.net.badstatus"&&a.details.rc===B&&(Y=!1,f===T-1&&(T+= 1));if(f===T-1)return w=EKd(d,a.details),w.details.backend="op",w.details.originec=W,V.return(Promise.reject(w));if(W==="auth"||W==="manifest.net.retryexhausted")return V.return(Promise.reject(a));Z.handleError(a);if(VY(a.severity)){V.xS(4);break}case 3:f++;V.xS(2);break;case 4:return V.return(Promise.reject(EKd(d,{backend:"op"})))}})}; HYL=function(Z,I){this.callback=Z;this.slot=I}; Mdu=function(Z){g.NI.prototype.load.call(Z);var I=Fj(Z.L).jL;try{Z.player.getRootNode().classList.add("ad-created")}catch(a){Zv(a instanceof Error?a:String(a))}var d=Z.player.getVideoData(1),Y=d&&d.videoId||"",T=d&&d.getPlayerResponse()||{},f=(T&&T.adPlacements||[]).map(function(a){return a.adPlacementRenderer}),P=((T==null?void 0:T.adSlots)||[]).map(function(a){return g.y(a,s1)}); T=T.playerConfig&&T.playerConfig.daiConfig&&T.playerConfig.daiConfig.enableDai||!1;d&&d.Qy();f=c9a(f,P,I,Fj(Z.L).IC);P=d&&d.clientPlaybackNonce||"";d=d&&d.zT||!1;if(n9(I,!0)&&d){var O;I={};(O=Z.player.getVideoData())==null||O.D1("p_cpb",(I.cc=P,I))}O=1E3*Z.player.getDuration(1);gKl(Z);Z.L.L.b7.cB(P,O,d,f.E5,f.QH,f.E5,T,Y)}; h5=function(Z,I){this.D=[];this.N=[];this.B=[];this.Z=[];this.L=[];this.j=Z.If7;this.V=I;this.xhr=Z.xhr;this.j&&r97(this)}; dpu=function(Z,I,d,Y,T){var f=(4-(Du.length+d.length)%4)%4,P=new Uint8Array(4+f+Du.length+4+d.length),O=new DataView(P.buffer),a=0;O.setUint32(a,Math.random()*4294967295);a=a+4+f;P.set(Du,a);a+=Du.length;O.setUint32(a,T);P.set(d,a+4);ZMu(P,Y);return Z.cO(I,function(W){return void globalThis.sessionStorage.removeItem(W)})?IQr(I,g.Bg(P))?"s":"t":"i"}; Yiu=function(Z,I){var d,Y,T;return g.h(function(f){if(f.L==1)return d={context:g.J5(Z.C()),engagementType:"ENGAGEMENT_TYPE_PLAYBACK",ids:[{playbackId:{videoId:Z.videoId,cpn:Z.clientPlaybackNonce}}]},Y=g.R$(ok9),g.m(f,g.L9(I,d,Y),2);T=f.D;return f.return(T)})}; U1=function(Z,I,d,Y){if((Z|3)>>3==1){for(var T=64,f=[];++T-f[Q[17]]-32;)switch(T){case 58:T=96;continue;case 91:T=44;break;case 65:T=47;continue;case 46:T=153;case 123:T-=58;default:f[Q[10]](String[Q[31]](T))}var P=f}if((Z^93)<12&&Z+3>>4>=0){T=I[Q[53]](Q[33]);f=0;T[0]||f++;for(var O={};f1&&!!T[1]);Z>>1&15||(d===Q[72]&&((T=Y[Q[23]](Q[36]))>=0?(d=Q[21]+ Y[Q[40]](0,T),Y=Y[Q[40]](T+1)):(T=Y[Q[23]](Q[43]))>=0&&(d=Q[21]+Y[Q[40]](0,T),Y=Y[Q[40]](T+3))),I[d]=Y);(Z-1&3)>=0&&Z+5>>4<1&&(P=I[Q[13]]?I[Q[13]][Q[19]](Q[16]):I[Q[3]]===Q[16]);return P}; jqO=function(Z){Z.B=0;Z.L="hidden";Z.D=void 0;Z.N=void 0;Z.j.stop();Z.Z=void 0}; g.lX=function(Z,I){var d=g.vj.apply(2,arguments);Z=Z===void 0?0:Z;g.Wj.call(this,I,d);this.errorType=Z;Object.setPrototypeOf(this,this.constructor.prototype)}; UZ=function(Z){g.p.call(this);var I=this;this.provider=Z;this.L=-1;this.B=!1;this.D=-1;this.playerState=new g.ns;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.N=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.uX(this.send,6E4,this);this.Z=!1;this.jsErrorCount=0;this.A9={NK:function(){I.NK()}}; this.NK=function(){I.jsErrorCount++}; g.z(this,this.delay);window.addEventListener("error",this.NK);window.addEventListener("unhandledrejection",this.NK)}; TBL=function(){this.next=this.context=this.D=this.Z=this.L=null;this.N=!1}; var iML=function(Z,I){return Gi[Q[32]](this,3,Z,I)}; fQn=function(Z){var I,d,Y,T;return g.h(function(f){switch(f.L){case 1:return Z.L.L&&typeof((I=navigator.mediaCapabilities)==null?void 0:I.decodingInfo)==="function"?g.m(f,Promise.resolve(),2):f.return(Promise.resolve());case 2:d=g.t(Z.L.videoInfos),Y=d.next();case 3:if(Y.done){f.xS(0);break}T=Y.value;return g.m(f,n9J(T),4);case 4:Y=d.next(),f.xS(3)}})}; PN$=function(Z,I,d,Y){if(!d.playerVars)return new C("No playerVars available in AdIntroRenderer.");var T=aW(d.playerVars);T.autoplay="1";return function(f){var P=f.slotId;f=Y(f);P=zi(Z.D.get(),"LAYOUT_TYPE_MEDIA",P);var O={layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA",r4:"adapter"};return{Q1:{layoutId:P,layoutType:"LAYOUT_TYPE_MEDIA",h5:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"adapter", clientMetadata:new D0([new ko({}),new Xj(I),new EN({current:null}),new t5(T)]),Tb:f(O)},BT:[new $o(Z.L,P,["error"])],mF:[],FU:[],qD:[]}}}; aQ7=function(Z,I){var d,Y,T;return g.h(function(f){if(f.L==1)return d={context:g.p9(),settingItemIds:I},Y=g.R$(Qqa),g.m(f,g.L9(Z,d,Y),2);T=f.D;return!T||T.errorMetadata?(OMu("GetSettingValuesRequest",T),f.return(void 0)):f.return(T.settingValues)})}; xo=function(Z){Z.setAttribute("role","link")}; C9=function(Z){g.k.call(this,{K:"button",zm:["ytp-size-button","ytp-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"t","data-priority":"9","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Z1:"{{icon}}"});this.api=Z;this.JB=null;this.transition=new K9;g.z(this,this.transition);this.W(Z,"sizestylechange",this.qs);this.W(Z,"fullscreentoggled",this.qs);this.W(Z,"presentingplayerstatechange",this.qs);Z.createClientVe(this.element, this,139116);this.qs();this.listen("click",this.onClick);pi(Z,this.element,this)}; bX=function(Z,I){W_d(Z,I).then(function(d){g.E1(I,void 0,void 0,d)})}; egr=function(Z){var I=0,d;for(d in Z.L){var Y=Z.L[d];if(Y==1||Y==2)I+=Z.D[d][1]}return I}; Hj=function(Z,I){this.info=Z;this.D=I;this.L=null;this.N=this.Z=-1;this.timestampOffset=0;this.isLocked=this.j=!1;this.B=this.info.L.RJ()&&!this.info.D}; cj=function(Z){BBl.test(Z)&&(Z.indexOf("&")!=-1&&(Z=Z.replace(wS$,"&")),Z.indexOf("<")!=-1&&(Z=Z.replace(VVn,"<")),Z.indexOf(">")!=-1&&(Z=Z.replace(NBn,">")),Z.indexOf('"')!=-1&&(Z=Z.replace(F_$,""")),Z.indexOf("'")!=-1&&(Z=Z.replace(sq$,"'")),Z.indexOf("\x00")!=-1&&(Z=Z.replace(nkD,"�")));return Z}; MI=function(Z,I,d,Y,T,f){g2.call(this,d,Z,I,Y);this.S7=T;this.Ms=f}; g.r2=function(Z){return Z&&Z.parentNode?Z.parentNode.removeChild(Z):null}; g.Zy=function(Z,I){Z.isActive()||Z.start(I)}; Il=function(){this.L=this.D=0}; qiL=function(Z,I){hg7(Z,I).then(void 0,function(){dE(Z)}); ol(Z,I).then(function(d){Yp(Z,d)},function(){dE(Z)}); Z.t5.mG(I);if(Z.U.Vy()||mpu(Z))I=Z.Gb(),I["native"]=""+ +Z.kS,I.tgt=""+Z.D,I.otgt=""+(Z.D+Z.timestampOffset),I.maxst=""+Z.tZ(),Z.L&&Z.Y("html5_high_res_seek_logging")&&(I.tht=""+Z.L.B(),I.ht=""+Z.L.rd(),I.adft=""+jU(Z.L)),Z.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&Z.videoData.L&&j2(Z.videoData)&&(I.minst=""+Z.videoData.L.Wh,I.cminst=""+(Z.videoData.L.p_()+Z.timestampOffset),I.maxst=""+Z.videoData.L.gf,I.hts=""+Z.videoData.L.Ns,I.cmaxst=""+(Z.videoData.L.tZ()+Z.timestampOffset)),Z.t5.D1("startSeek", I)}; i$=function(Z){Z=Z===void 0?Sin:Z;if(Z>0&&!(ABB()>(0,g.o8)()-Z*1E3))return 0;Z=g.T2("yt-player-quality");if(typeof Z==="string"){if(Z=g.HS[Z],Z>0)return Z}else if(Z instanceof Object)return Z.quality;return 0}; fw=function(Z){return g.Yw(Z.L,function(I){return U1(2,I.MC.L)})}; ah9=function(Z,I){I=I===void 0?{}:I;Z.La=I.La===void 0?!1:I.La}; l5=function(Z,I,d){d!==void 0&&(P9(Z,I*8+2),I=d.length,P9(Z,I),ij(Z,I),Z.L.set(d,Z.pos),Z.pos+=I)}; Qt=function(Z,I){for(var d=0;d4);T++)I[tA(Z[T])]||(d+="\nInner error "+Y++ +": ",Z[T].stack&&Z[T].stack.indexOf(Z[T].toString())==0||(d+=typeof Z[T]==="string"?Z[T]:Z[T].message+"\n"),d+=$p(Z[T],I));T>>0;return I}; Iw=function(Z,I){I=I===void 0?0:I;var d,Y,T,f,P,O,a,W,e,B,w,V;return g.h(function(N){switch(N.L){case 1:d=b$(H9().L);if(g.x9("att_fet_ks"))return g.ez(N,7),g.m(N,c9(Z,d),9);g.ez(N,4);return g.m(N,pS7(Z,d),6);case 6:P=N.D;T=P.BV7;f=P.fRS;Y=P;g.gE(N,3);break;case 4:return g.Bj(N),g.uL(Error("Failed to fetch attestation challenge after "+(I+" attempts; not retrying for 24h."))),MC(Z,864E5),N.return({challenge:"",xx:{},AZ:void 0,bgChallenge:void 0});case 9:Y=N.D;if(!Y)throw Error("Fetching Attestation challenge returned falsy"); if(!Y.challenge)throw Error("Missing Attestation challenge");T=Y.challenge;f=rE(T);if("c1a"in f&&(!Y.bgChallenge||!Y.bgChallenge.program))throw Error("Expected bg challenge but missing.");g.gE(N,3);break;case 7:O=g.Bj(N);g.uL(O);I++;if(I>=5)return g.uL(Error("Failed to fetch attestation challenge after "+(I+" attempts; not retrying for 24h."))),MC(Z,864E5),N.return({challenge:"",xx:{},AZ:void 0,bgChallenge:void 0});a=1E3*Math.pow(2,I-1)+Math.random()*1E3;return N.return(new Promise(function(q){g.Zb(0, function(){q(Iw(Z,I))},a)})); case 3:W=Number(f.t)||7200;MC(Z,W*1E3);e=void 0;if(!("c1a"in f&&Y.bgChallenge)){N.xS(10);break}B=xpJ(Y.bgChallenge);g.ez(N,11);return g.m(N,K_9(H9(),B),13);case 13:g.gE(N,12);break;case 11:return w=g.Bj(N),g.uL(w),N.return({challenge:T,xx:f,AZ:e,bgChallenge:B});case 12:return g.ez(N,14),e=new dq({challenge:B,t3:{Mk:"aGIf"}}),g.m(N,e.O8,16);case 16:g.gE(N,10);break;case 14:V=g.Bj(N),g.uL(V),e=void 0;case 10:return N.return({challenge:T,xx:f,AZ:e,bgChallenge:B})}})}; iz=function(Z,I,d,Y){var T=Y!==void 0;Y=!!Y;var f=qT(pY),P;!T&&ow&&f&&(P=Z[f])&&Yt(P,CNL);f=[];var O=Z.length;P=4294967295;var a=!1,W=!!(I&64),e=W?I&128?0:-1:void 0;if(!(I&1)){var B=O&&Z[O-1];B!=null&&typeof B==="object"&&B.constructor===Object?(O--,P=O):B=void 0;if(W&&!(I&128)&&!T){a=!0;var w;P=((w=j5)!=null?w:Ts)(P-e,e,Z,B,void 0)+e}}I=void 0;for(w=0;w=P){var N=w-e,q=void 0;((q=I)!=null?q:I={})[N]=V}else f[w]=V}if(B)for(var A in B)O=B[A],O!= null&&(O=d(O,Y))!=null&&(w=+A,V=void 0,W&&!Number.isNaN(w)&&(V=w+e)=1+(T?0:-1)&&f>=P){var O=Z[P];if(O!=null&&typeof O==="object"&&O.constructor===Object)return O[d]=Y,I}if(f<=P)return Z[f]=Y,I;if(Y!==void 0){var a;P=((a=I)!=null?a:I=Z[nL]|0)>>14&1023||536870912;d>=P?Y!=null&&(f={},Z[P+(T?0:-1)]=(f[d]=Y,f)):Z[f]=Y}return I}; mm=function(Z,I){I=(I=I===void 0?0:I)?Math.round(Z.timestampOffset*I)/I:Z.timestampOffset;Z.B.N&&I&&(I+=Z.B.N.L);return I+Z.getDuration()}; qi=function(Z){this.Gm=bp(Z,19)}; BQJ=function(Z,I){for(var d=[],Y=g.t(Z.D),T=Y.next();!T.done;T=Y.next())T=T.value,I(T)||d.push(T);if(Z.U.Y("html5_sstm_fixes"))for(Y=g.t(Z.D),T=Y.next();!T.done;T=Y.next())T=T.value,I(T)&&(Z.Z.delete(T.cpn),T.uQ&&Z.N.delete(T.uQ));Z.D=d}; AN=function(Z,I,d){this.S7=Z;this.S=I;this.Ms=d;this.D=new Set;this.L=new Map;S5().subscribe("adactiveviewmeasurable",this.Gr,this);S5().subscribe("adfullyviewableaudiblehalfdurationimpression",this.eE,this);S5().subscribe("adviewableimpression",this.yO,this);S5().subscribe("adaudioaudible",this.cF,this);S5().subscribe("adaudiomeasurable",this.PF,this)}; Db=function(Z){return ru(Z)&&Z.allowLiveDvr}; g.Ut=function(Z){var I=JN(Z),d=new g.vS(0,0);if(Z==(I?JN(I):document).documentElement)return d;Z=Rw(Z);I=L2(I);I=wPr(I.L);d.x=Z.left+I.x;d.y=Z.top+I.y;return d}; yy=function(Z,I){var d=d===void 0?!1:d;VQ(I);(d||Z.U.Vy())&&Z.publish("ctmp","drmlog",I)}; zs=function(Z,I,d){var Y=d.iK,T=d.Zp,f=d.listener,P=d.u3;d=d.GF===void 0?!1:d.GF;if(Z.L.has(I))Zv("Unexpected registration of layout in LidarApi");else{if(P){if(Z.D.has(P))return;Z.D.add(P)}Z.L.set(I,f);v1(GU().zv,"fmd",1);VRu(lz(uz),Y);var O=d?I:void 0;NQi(S5(),I,{cX:function(){if(!T)return{};var a=Z.S.getPresentingPlayerType(!0),W;return(W=Z.S.getVideoData(a))!=null&&W.isAd()?{currentTime:Z.S7.get().getCurrentTimeSec(a,!1,O),duration:T,isPlaying:Gs(Z.S7.get(),a).isPlaying(),isVpaid:!1,isYouTube:!0, volume:Z.S7.get().isMuted()?0:Z.S7.get().getVolume()/100}:{}}})}}; kt=function(Z,I,d){d=d===void 0?Error():d;var Y=Error.call(this);this.message=Y.message;"stack"in Y&&(this.stack=Y.stack);this.code=Z;I+=":";d instanceof Error?(this.message=I+d.message,this.stack=d.stack||""):(this.message=I+String(d),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)}; s8D=function(Z,I,d,Y,T,f,P,O){T=T===void 0?d.schedule:T;var a=g.Xt(Z,tN);if(a=FOl(I,a))return $t({MY:a.tj,Im:a.signature},I,d,Y,!!Z.qL,T,f,P,O)}; qHr=function(Z,I,d){(0,g.KM)(Z.Z,function(Y){var T=Z.L;if(!Y.L&&(Y.Z(I,d),Y.N())){Y.L=!0;var f=Y.D(),P=new p2;P.add("id","av-js");P.add("type","verif");P.add("vtype",Y.B);Y=lz(nEJ);P.add("i",Y.L++);P.add("adk",T);xt(P,f);T=new hWB(P);mxu(T)}})}; SHE=function(Z){var I=Z.L[Z.L.length-1];if(I){g.A9(Z.element,Z.maxWidth||"100%",Z.maxHeight||"100%");g.K2(I.element,"width","");g.K2(I.element,"height","");g.K2(I.element,"maxWidth","100%");g.K2(I.element,"maxHeight","100%");g.K2(I.content.element,"height","");var d=g.C2(I.element);d.width+=1;d.height+=1;g.K2(I.element,"width",d.width+"px");g.K2(I.element,"height",d.height+"px");g.K2(I.element,"maxWidth","");g.K2(I.element,"maxHeight","");var Y=0;I.Dd&&(Y=g.C2(I.KS("ytp-panel-header")).height);var T= 0;I.L3&&(T=I.KS("ytp-panel-footer"),g.K2(T,"width",d.width+"px"),T=g.C2(T).height);g.K2(I.content.element,"height",d.height-Y-T+"px");I.element instanceof HTMLElement&&(Y=I.element,T=Y.scrollWidth-Y.clientWidth,Y.offsetWidth-Y.clientWidth>0&&T>0&&(d.width+=T,g.K2(I.element,"width",d.width+"px")));Z.size=d}}; Dx7=function(Z,I){var d=Z.S.C(),Y=Z.S.getPresentingPlayerType()===2,T=!Y||I.isListed;T=!d.kS&&!!I.videoId&&T;d.playerStyle!=="play"?d="https://support.google.com/youtube/?p=report_playback":(d={contact_type:"playbackissue",html5:1,ei:I.eventId,v:I.videoId,p:"movies_playback"},I.D&&(d.fmt=I.D.itag),I.clientPlaybackNonce&&(d.cpn=I.clientPlaybackNonce),I.partnerId&&(d.partnerid=I.partnerId),d=g.gq("//support.google.com/googleplay/",d));Z.Xe.o0(T&&I.allowEmbed);Z.getVideoUrl.o0(T);Z.RU.o0(T&&!I.isLivePlayback); Z.Ic.setContent(d,"href");var f;(f=Z.Xr)==null||f.o0(!I.isLivePlayback&&!Y);Anu(Z);var P;(P=Z.G0)==null||P.o0(!Y)}; kGn=function(Z,I,d,Y,T){var f=d.DRIFT_FROM_HEAD_MS&&!Number.isNaN(d.DRIFT_FROM_HEAD_MS)?Math.trunc(d.DRIFT_FROM_HEAD_MS):0,P=Jn7.exec(I);P=P!=null&&P.length>=2?P[1]:"";var O=RWD.test(I),a=LO$.exec(I);a=a!=null&&a.length>=2?a[1]:"";var W=Uxu.exec(I);W=W!=null&&W.length>=2&&!Number.isNaN(Number(W[1]))?Number(W[1]):1;var e=ynD.exec(I);e=e!=null&&e.length>=2?e[1]:"0";var B=Mi(Z.player.C().UI),w=Z.player.getVideoData(1),V=g.p9(w.kS,!0),N="BISCOTTI_ID"in d?d.BISCOTTI_ID:"";vEn(Z,V,I,N.toString(),Z.player.C(), w);w={splay:!1,lactMilliseconds:d.LACT.toString(),playerHeightPixels:Math.trunc(d.P_H),playerWidthPixels:Math.trunc(d.P_W),vis:Math.trunc(d.VIS),signatureTimestamp:20360,autonavState:rq(Z.player.C())};Y&&(Y={},l0n(Y,d.YT_REMOTE)&&(w.mdxContext=Y));if(Y=ufa.includes(B)?void 0:g.Zc("PREF")){for(var q=Y.split(RegExp("[:&]")),A=0,F=q.length;A1&&J[1].toUpperCase()==="TRUE"){V.user.lockedSafetyMode=!0;break}}w.autoCaptionsDefaultOn= GGL(Y)}I=zWr.exec(I);(I=I!=null&&I.length>=2?I[1]:"")&&a&&(V.user.credentialTransferTokens=[{token:I,scope:"VIDEO"}]);I={contentPlaybackContext:w};P={adBlock:Math.trunc(d.AD_BLOCK),params:P,breakIndex:W,breakPositionMs:e,clientPlaybackNonce:d.CPN,topLevelDomain:B,isProxyAdTagRequest:O,context:V,adSignalsInfoString:Ij(d8(N.toString())),overridePlaybackContext:I};T!==void 0&&(P.cueProcessedMs=Math.round(T).toString());a&&(P.videoId=a);d.LIVE_TARGETING_CONTEXT&&(P.liveTargetingParams=d.LIVE_TARGETING_CONTEXT); d.AD_BREAK_LENGTH&&(P.breakLengthMs=Math.trunc(d.AD_BREAK_LENGTH*1E3).toString());f&&(P.driftFromHeadMs=f.toString());P.currentMediaTimeMs=Math.round(Z.player.getCurrentTime(1)*1E3);(Z=Z.player.getGetAdBreakContext())&&(P.getAdBreakContext=Z);return P}; g.oj=function(Z){Z.stop();Z.jx()}; YH=function(Z,I){if(Z.length<2)return!1;var d=I(Z[0]);return Z.some(function(Y){return I(Y)!==d})}; XPi=function(Z,I){return j6(Z,1,I)}; TC=function(){}; i9=function(Z,I){if(Z.policy.iG)return!1;var d=I.getResponseHeader("content-type"),Y=I.aH();Z=!Y||Y<=Z.policy.aV;return(!I.gx()||!d||d.indexOf("text/plain")!==-1)&&Z}; PF=function(Z,I){g.b(Z.playerState,128)||(Z.I4(f7(Z.playerState,1028,9)),Z.D1("dompaused",{r:I}),Z.publish("onAutoplayBlocked"))}; QK=function(Z,I){g.k.call(this,{K:"div",zm:["ytp-fullscreen-grid"],G:[{K:"button",zm:["ytp-fullscreen-grid-expand-button","ytp-button"],J:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button","data-tooltip-offset-y":"-10"},G:["{{icon}}"]},{K:"div",T:"ytp-fullscreen-grid-hover-overlay",J:{"aria-keyshortcuts":"v","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-fullscreen-grid-expand-button", "data-tooltip-offset-y":"-70"}},{K:"div",T:"ytp-fullscreen-grid-main-content",G:[{K:"div",T:"ytp-fullscreen-grid-stills-container"}]}]});this.player=Z;this.stills=[];this.videoData=null;this.currentState=0;this.L=this.KS("ytp-fullscreen-grid-main-content");this.B=this.KS("ytp-fullscreen-grid-stills-container");this.D=new g.De(this);g.z(this,this.D);this.N=I;if(this.L&&this.B){if(Z=this.KS("ytp-fullscreen-grid-hover-overlay"))this.W(Z,"click",this.Z),pi(this.player,Z,this);if(Z=this.KS("ytp-fullscreen-grid-expand-button"))this.W(Z, "click",this.Z),pi(this.player,Z,this);if(Z=this.player.getVideoData(1))this.videoData=Z;this.player.createClientVe(this.L,this,223051);this.D.W(this.player,"videodatachange",this.onVideoDataChange)}}; tRB=function(Z,I,d,Y){I={K:"span",zm:Y,G:[I]};var T;Y="ytp-swatch-color";if(Z.N||Z.L)Y="ytp-swatch-color-white";d==="highres"?T="8K":d==="hd2880"?T="5K":d==="hd2160"?T="4K":d.indexOf("hd")===0&&d!=="hd720"&&(T="HD");T&&(I.G.push(" "),I.G.push({K:"sup",T:Y,Z1:T}));return I}; g.Ow=function(Z){return Z.nN.get("captions")}; $xn=function(Z){return!(Z.isMinimized()||Z.isInline()||Z.isBackground()||Z.RB()||Z.oJ()||Z.dI()||Z.JB())}; e6=function(Z){Z=Z===void 0?JB:Z;aj.call(this,new WF(Z,2))}; pPu=function(Z,I){if(I=I.content&&I.content.adFeedbackRenderer||null)Z.D=new BF(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.Hj),g.z(Z,Z.D),Z.D.init(Ai("ad-feedback-dialog"),I,Z.macros),Z.D.i5(Z.fS),Z.D.subscribe("a",function(){return Z.publish("c")})}; xxu=function(Z,I,d){this.L=Z;this.slot=I;this.layout=d}; bL7=function(Z,I){Z.V=I;var d=Z.fS;Z.S.Y("delhi_modern_web_player_icons")?Z.D.KS("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(I+") translate(-22,-12)")):I&&(d+=KOO(CyO,EEO,I));Z.LS.setAttribute("d",d)}; w8=function(Z){return Z.type===1||Z.type===2}; HLJ=function(Z){Nx=Z}; gEJ=function(Z){if(!Z)return cn9||(cn9=new VK(0,0));if(!/^-?\d+$/.test(Z))return null;NK(Z);return new VK(FS,n7)}; mS=function(Z,I){var d={};d[Z]=I;return[d]}; qK=function(Z){this.value=Z}; g.S6=function(Z,I){Z=MRl(Z);I=MRl(I);return new g.vS(Z.x-I.x,Z.y-I.y)}; rnJ=function(Z){Ab(Z,"impression")&&Z.vO("clickthrough")}; ZFl=function(Z){Z=Z.document;Z=Z.compatMode=="CSS1Compat"?Z.documentElement:Z.body;return new g.qv(Z.clientWidth,Z.clientHeight)}; g.Jb=function(Z,I){I>=Z.mS()&&Z.nC();var d=Dc(Z,I),Y=Z.columns*Z.rows,T=I%Y;I=T%Z.columns;T=Math.floor(T/Z.columns);var f=Z.nC()+1-Y*d;if(f-1&&(I=I*256+Y)}return I}Y=128;for(var T=0;T<6&&Y>d;T++)d=d*256+Sq(Z),Y*=128;return I?d:d-Y}; AD=function(Z){return Z!=null&&Z>=0&&Z<=1}; V2L=function(Z,I){I=Z.L&&!I;return Z.Di||I?new g.UB(new g.y7({hcm:Z.Di,Mq:I})):new g.UB}; kW=function(Z,I,d,Y,T){var f=Z.L||Z.isDragging||Z.D||Z.oK;Z.L=I;Z.isDragging=d;Z.D=Y;Z.oK=T;I=Z.L||Z.isDragging||Z.D||Z.oK;f!==I&&(I?Z.B=Z.W(Z.element,"wheel",Z.Ie):(Z.a4(Z.B),Z.B=null),g.zL(Z.j,"ytp-volume-slider-active",I))}; Fm=function(Z){return Z.sU?Z.isLowLatencyLiveStream&&Z.L!=null&&vR(Z.L)>=5:Z.isLowLatencyLiveStream&&Z.L!=void 0&&vR(Z.L)>=5}; u_=function(Z){(Z=l_(Z.nM()))&&Z.created&&Z.destroy()}; NxL=function(Z,I,d,Y,T){Rj.call(this,"ads-engagement-panel-layout",Z,I,d,Y,T)}; sWB=function(Z,I){Z.B=!0;g.rB(function(){Z.B&&Fpn.call(null,I)})}; Go=function(Z){this.L=Z||g.iN.document||document}; nnr=function(Z,I){a:{var d=Z.L?new g.qv(Zu(Z.L),Z.L.getHeight()):new g.qv(0,0);I=I===void 0?JB:I;I!==null&&I!=I.top&&(I=I.top);var Y=0,T=0;try{var f=I.document,P=f.body,O=f.documentElement;if(f.compatMode=="CSS1Compat"&&O.scrollHeight)Y=O.scrollHeight!=d.height?O.scrollHeight:O.offsetHeight,T=O.scrollWidth!=d.width?O.scrollWidth:O.offsetWidth;else{var a=O.scrollHeight,W=O.scrollWidth,e=O.offsetHeight,B=O.offsetWidth;O.clientHeight!=e&&(a=P.scrollHeight,W=P.scrollWidth,e=P.offsetHeight,B=P.offsetWidth); a>d.height?a>e?(Y=a,T=W):(Y=e,T=B):a=0&&I.push(d);return parseFloat(I.join("."))}; $hn=function(Z,I){var d=!g.MV(Z,I);g.zL(Z,I,d)}; pt9=function(Z,I){if(!I)return!1;for(var d=0;d>>0;Z=Z.L;var d=dTL(Z,I);Z=Z.D;if(o1u){var Y=Z,T;(T=Nj)||(T=Nj=new TextDecoder("utf-8",{fatal:!0}));I=d+I;Y=d===0&&I===Y.length?Y:Y.subarray(d,I);try{var f=T.decode(Y)}catch(W){if(FO===void 0){try{T.decode(new Uint8Array([128]))}catch(e){}try{T.decode(new Uint8Array([97])),FO=!0}catch(e){FO=!1}}!FO&&(Nj=void 0);throw W;}}else{f=d;I=f+I;d=[];for(var P=null,O,a;f=I?s2():(a=Z[f++],O<194||(a&192)!==128?(f--,s2()):d.push((O&31)<<6|a&63)): O<240?f>=I-1?s2():(a=Z[f++],(a&192)!==128||O===224&&a<160||O===237&&a>=160||((T=Z[f++])&192)!==128?(f--,s2()):d.push((O&15)<<12|(a&63)<<6|T&63)):O<=244?f>=I-2?s2():(a=Z[f++],(a&192)!==128||(O<<28)+(a-144)>>30!==0||((T=Z[f++])&192)!==128||((Y=Z[f++])&192)!==128?(f--,s2()):(O=(O&7)<<18|(a&63)<<12|(T&63)<<6|Y&63,O-=65536,d.push((O>>10&1023)+55296,(O&1023)+56320))):s2(),d.length>=8192&&(P=YT$(P,d),d.length=0);f=YT$(P,d)}return f}; m$=function(Z,I,d,Y){var T=Z[nL]|0,f=hO(T);T=kH(Z,T,d,I,f);xn(Z,T,I,Y,f)}; v8=function(Z,I,d,Y,T){d&&(jIu(Z,I,T===void 0?3:T),Y(Z,d),TZu(Z))}; g.I_=function(Z,I,d,Y){g.p.call(this);var T=this;this.logger=new g.qj("App");this.DN=this.oL=!1;this.Dj={};this.rZ=[];this.YP=!1;this.Uk=null;this.intentionalPlayback=!1;this.i7=!0;this.DY=!1;this.wL=this.d6=this.Ol=null;this.MB=!0;this.mediaElement=this.xl=null;this.pR=NaN;this.V_=!1;this.Hg=this.zc=this.Pg=this.screenLayer=this.playlist=null;this.R3=[];this.XN=0;this.A9={J_:function(){return T.DU}, Hr5:function(){return T.Pg}}; if(!d)throw Error("b/179532961");this.Mr=(I==null?void 0:I.args)||{};this.webPlayerContextConfig=d;I=this.Mr;this.U=new SL(I,d,d.canaryState,Y,this);g.z(this,this.U);i3O(this.U);d=fN9(this.U);this.U.Vy()&&this.Br("h5vcc",d);this.U.experiments.CS("jspb_serialize_with_worker")&&P0l();this.U.experiments.CS("gzip_gel_with_worker")&&QI7();this.U.D&&!O3a&&(window.addEventListener(AO?"touchstart":"click",aNO,{capture:!0,passive:!0}),O3a=!0);this.Y("html5_onesie")&&(this.Lg=new Dj(this.U),g.z(this,this.Lg)); this.BO().L.K_(WQr)&&(this.Bk=new JO(eTn(g.RK(this.U),this.U.SK,this.U.experiments),new Lg(this.U.experiments),void 0,function(){return void T.Ba()}),g.z(this,this.Bk)); this.cf=U2(y8(this.U)&&!0,I.enablesizebutton);this.xW=U2(!1,I.player_wide);this.visibility=new oW;g.z(this,this.visibility);this.Y("web_log_theater_mode_visibility")&&this.yS(U2(!1,I.player_wide));this.oL=U2(!1,I.external_list);this.events=new g.De(this);g.z(this,this.events);this.Y("start_client_gcf")&&($k(pM(),{NL:vI,pO:BZn()}),this.BY=pM().resolve(vI),ww7(this.BY));this.RX4=new lx;g.z(this,this.RX4);this.bf=new VGn;d=new ux;this.Wj=new g.GR(this,d);g.z(this,this.Wj);this.template=new zR(this); g.z(this,this.template);this.appState=1;this.p6=NZi(this);g.z(this,d);d={};this.eU=(d.internalvideodatachange=this.LX,d.playbackready=this.BKn,d.playbackstarted=this.ff7,d.statechange=this.iM5,d);this.xT=new gh(this.Wj);this.cg=FQB(this);d=this.U.j;!1!==d&&this.Br("badps",{hbp:d,hostname:window.location.hostname,ps:this.U.playerStyle});this.KM=new kV(this.U,this.cg);this.Wj.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||XO(this.cg))&&sIa(this);d=10;g.RK(this.U)&&(d=3);tO(this.U)&& (d=g.Q4(this.U.experiments,"tvhtml5_unplugged_preload_cache_size"));this.DU=new g.$V(this.Wj,d);d=n1O(this);this.DU.rS(d);hT7(this);d={};this.eV=(d.airplayactivechange=this.Tns,d.airplayavailabilitychange=this.VJs,d.beginseeking=this.w$m,d.sabrCaptionsDataLoaded=this.CQn,d.endseeking=this.qn5,d.internalAbandon=this.ouS,d.internalaudioformatchange=this.uT5,d.internalvideodatachange=this.b_n,d.internalvideoformatchange=this.AaS,d.liveviewshift=this.X$S,d.playbackstalledatstart=this.ya5,d.progresssync= this.d85,d.onAbnormalityDetected=this.O_4,d.onSnackbarMessage=this.Gv7,d.onLoadProgress=this.ra7,d.SEEK_COMPLETE=this.caS,d.SEEK_TO=this.PQ4,d.onVideoProgress=this.vur,d.onLoadedMetadata=this.H_7,d.onAutoplayBlocked=this.aUr,d.onPlaybackPauseAtStart=this.s4S,d.playbackready=this.EuS,d.statechange=this.Kd,d.newelementrequired=this.Nx,d.heartbeatparams=this.F55,d.videoelementevent=this.p$7,d.drmoutputrestricted=this.W51,d.signatureexpired=this.ex5,d.nonfatalerror=this.lU4,d.reloadplayer=this.Ja5,d); this.TE=new g.De(this);g.z(this,this.TE);this.V4=new pg;g.z(this,this.V4);this.Su=this.f5=-1;this.Tl=new g.uX(this.template.resize,16,this.template);g.z(this,this.Tl);this.FT=new xV(this.Wj,this.U,this.vj(),this);this.VL=new Kg(this);g.z(this,this.VL);this.qn=new Cg(this);g.z(this,this.qn);mTd(this.U.L.c);this.events.W(this.Wj,g.E2("appapi"),this.Kk5);this.events.W(this.Wj,g.bx("appapi"),this.nl1);this.events.W(this.Wj,g.E2("appprogressboundary"),this.Zjm);this.events.W(this.Wj,g.bx("applooprange"), this.qM);this.events.W(this.Wj,"presentingplayerstatechange",this.nw);this.events.W(this.Wj,"resize",this.QNn);this.template.i5(HI(document,Z));this.events.W(this.Wj,"offlineslatestatechange",this.Sn5);this.events.W(this.Wj,"sabrCaptionsTrackChanged",this.FHZ);this.events.W(this.Wj,"sabrCaptionsBufferedRangesUpdated",this.qPs);this.cg.S.C().gb&&Z$(this.cg,"offline");this.U.on&&g.cI("ux",g.gz);Z=g.Q4(this.U.experiments,"html5_defer_fetch_att_ms");this.WM=new g.uX(this.eXj,Z,this);g.z(this,this.WM); this.gz().FF()&&(g.Mj()&&this.gz().Bj.push("mdx"),rz(this));this.KM.tick("fs");qT7(this);this.U.on&&Z$(this.cg,"ux",!0);g.Dh(this.cg.S.C())&&Z$(this.cg,"embed");this.Y("web_player_sentinel_is_uniplayer")||g.uL(new g.Wj("Player experiment flags missing","web_player_sentinel_is_uniplayer"));Z=this.Y("web_player_sentinel_yt_experiments_sync");d=g.x9("web_player_sentinel_yt_experiments_sync");Z!==d&&g.uL(new g.Wj("b/195699950",{yt:Z,player:d}));this.PA=STD(this);if(Z=g.Q4(this.U.experiments,"html5_block_pip_safari_delay"))this.u9= new g.uX(this.ek,Z,this),g.z(this,this.u9);Zk=this.U.sU;this.Wj.publish("applicationInitialized")}; AXL=function(Z,I,d){if(Z.api.Y("web_player_nitrate_promo_tooltip")&&Z.api.getPresentingPlayerType(!0)!==2){var Y=Z.api.getVideoData(1);if(Y==null?0:Y.tooltipRenderer){Y=Y.tooltipRenderer;var T;if(T=!Z.rq){if(!(I=!I)){var f,P,O;I=((f=Y.tooltipDisplayStrategy)==null?void 0:f.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((P=Y.promoConfig)==null?void 0:P.promoId)!=="dtip-edu-player-iseecaptions"&&((O=Y.promoConfig)==null?void 0:O.promoId)!=="dtip-edu-player-tc-m2"}T=I}T&&(Z.rq=new dM(Y,Z.api), g.z(Z,Z.rq),g.iS(Z.api,Z.rq.element,9));var a;(a=Z.rq)==null||o_(a,Y,d)}}}; Ze=function(Z){switch(typeof Z){case "bigint":return!0;case "number":return Ye(Z);case "string":return DT9.test(Z);default:return!1}}; jk=function(Z,I){I.method="POST";I.postParams||(I.postParams={});return g.kk(Z,I)}; JX7=function(Z){var I,d;if((I=Z.LS)==null?0:(d=I.PN)==null?0:d.itagDenylist){var Y;Z.YK((Y=Z.LS)==null?void 0:Y.PN.itagDenylist)}var T;if((T=Z.LS)==null?0:T.playbackStartPolicy){var f,P;TY(Z.policy,(f=Z.LS)==null?void 0:f.playbackStartPolicy,3,(P=Z.LS)==null?void 0:P.sM())}if(Z.policy.Wh){I=Z.FQ();var O;(d=I?(O=Z.LS)==null?void 0:O.HG.get(I):void 0)&&Z.D.HK(d,-1)}if(!Z.u5.LS){var a;O=(a=Z.LS)==null?void 0:a.IP;(O==null?0:O.tN)&&(O==null?0:O.Sr)&&Z.u5.Qy&&ig(Z.u5,O.tN,O.Sr)}var W;((W=Z.LS)==null?0: W.Ts)&&(a=Z.LS.Ts.get(Z.FQ()||""))&&Z.u5&&a.formatId&&(Z=Z.u5.Z.get(W9(a.formatId)))&&(Z.info.debugInfo=a.debugInfo)}; g.z=function(Z,I){Z.addOnDisposeCallback(g.T9(g.Th,I))}; fu=function(){}; Pv=function(Z,I,d){this.D=Z;this.N=I;this.fields=d||[];this.L=new Map}; hT7=function(Z){var I=Z.vj();I.setPlaybackRate(Z.U.N?1:RTn(Z,Number(g.T2("yt-player-playback-rate"))||1));I.vT(Z.eU,Z);I.bY()}; O0=function(Z,I,d){d=d===void 0?!1:d;if(!Z.D||!Z.D.Z)return NaN;Z=Qh(Z);a:{I+=.02;var Y=d;Y=Y===void 0?!1:Y;for(var T=-1,f=0;f=I){I=f;break a}}I=T}return I<0?NaN:LQ9(Z,d?I:0)?Z[I].startTime:NaN}; MRl=function(Z){if(Z.nodeType==1)return UTJ(Z);Z=Z.changedTouches?Z.changedTouches[0]:Z;return new g.vS(Z.clientX,Z.clientY)}; v17=function(Z,I){g.a_(I,function(T){return T.depth>=0}); var d=Wv(I,function(T,f){return Math.max(T,f.depth)},-1),Y=yXa(d+2); Y[0]=Z;g.KM(I,function(T){return Y[T.depth+1]=T.L}); return Y}; nu=function(Z,I,d){if(Z.policy.Mj)return!1;var Y;var T=Z.L,f=((Y=I.D)==null?void 0:Y.YS)||-1;!T.policy.wV&&T.D===3&&f+1>=T.N?(T.D1("sdai",{haltrq:f+1,est:T.N}),Y=!1):Y=T.D!==2;if(!Y||!ek(I.D?I.D.L.MC:I.L.MC,Z.policy,Z.N,Z.loader.yn())||Z.loader.isSuspended&&(!wB(Z.schedule)||Z.loader.bC))return!1;if(Z.policy.N&&Bv>=5)return g.Zy(Z.loader.y0),!1;if(Z.u5.isManifestless){if(I.Z.length>0&&I.D&&I.D.YS===-1||I.Z.length>=Z.policy.Qc||!Z.policy.s1&&I.Z.length>0&&!Z.policy.X.TJ)return!1;if(I.V)return!Z.u5.isLive|| !isNaN(Z.i4)}if(lNL(I))return!1;if(!I.D){if(!I.L.SD())return!1;wM(I,Z.loader.getCurrentTime())}if(fM(I)&&(I.Rw()!==fM(I)||Z.loader.isSuspended))return!1;T=(Y=Z.policy.gA)&&!I.Z.length&&Vh(I,!0)=Z.policy.VD)return!1;Y=I.D;if(!Y)return!0;Y.type===4&&Y.L.SD()&&(I.D=g.N2(Y.L.oy(Y)),Y=I.D);if(!Y.RL()&&!Y.L.nJ(Y))return!1;f=Z.u5.uu||Z.u5.N;if(Z.u5.isManifestless&& f){f=I.L.index.c$();var P=d.L.index.c$();f=Math.min(f,P);if(I.L.index.oH()>0&&f>0&&Y.YS>=f)return I.fS=f,d.fS=f,!1}if(Y.L.info.audio&&Y.type===4||Y.RL())return!1;f=!I.B&&!d.B;if(T=!T)T=Y.j,T=!!(d.D&&!FW(d.D)&&d.D.juIn(Z,I)?(uIn(Z,I),!1):(Z=I.qC)&&Z.isLocked()?!1:!0}; a$=function(Z,I){var d=null;return(new g.eq(function(Y,T){d=g.hy(function(){Y(I)},Z); d==-1&&T(Error("Failed to schedule timer."))})).LA(function(Y){g.iN.clearTimeout(d); throw Y;})}; mK=function(Z){this.value=Z}; Sk=function(Z){var I=Z.Y("web_enable_pip_on_miniplayer");g.k.call(this,{K:"button",zm:["ytp-miniplayer-button","ytp-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"i","data-priority":"7","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-miniplayer-button"},G:["{{icon}}"]});this.S=Z;this.visible=!1;this.listen("click",this.onClick);this.W(Z,"fullscreentoggled",this.qs);this.S.Y("player_tooltip_data_title_killswitch")? this.update({title:g.q2(Z,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:Gzn(this,I)}):this.update({"tooltip-title":g.q2(Z,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:Gzn(this,I)});pi(Z,this.element,this);Z.createClientVe(this.element,this,62946);this.qs()}; kzi=function(){var Z=lz(Ay);if(Z.L!=null){var I=Z.L;g.KM(Dk(),function(d){return zTu(d,I)})}}; Jy=function(Z){Z.onreadystatechange&&Z.onreadystatechange.call(Z)}; Xw$=function(){if(R_===void 0){try{window.localStorage.removeItem("yt-player-lv")}catch(I){}a:{try{var Z=!!self.localStorage}catch(I){Z=!1}if(Z&&(Z=g.Lu(g.U0()+"::yt-player"))){R_=new yh(Z);break a}R_=void 0}}return R_}; tGl=function(Z,I,d,Y){Y=Y===void 0?0:Y;var T=g.vv(Y);I=I||g.lg(Y);T&&I&&(Z=Z.client,Y=ug({cttAuthInfo:GY(T)||void 0},T),d={csn:T,ve:I.getAsJson(),clientData:d},T==="UNDEFINED_CSN"?XW("visualElementStateChanged",Y,d):Z?TG("visualElementStateChanged",d,Z,Y):g.g6("visualElementStateChanged",d,Y))}; Cu=function(Z){Z&&(Z.startsWith("https://accounts.google.com/AddSession")?ty():Z.startsWith("https://accounts.google.com/ServiceLogin")?ty():Z.startsWith("https://myaccount.google.com")&&g.$e(Z).D.endsWith("/youtubeoptions")&&ty());if(g.rh("LOGGED_IN",!0)&&Hld()){var I=g.rh("VALID_SESSION_TEMPDATA_DOMAINS",[]);var d=g.LM(window.location.href);d&&I.push(d);d=g.LM(Z);g.Kc(I,d)||!d&&pu(Z,"/")?(I=xe(Z),(I=$TB(I))?(I=pwd(I),I=(I=g.Zc(I)||null)?aW(I):{}):I=null):I=null;I==null&&(I={});d=I;var Y=void 0; Hld()?(Y||(Y=g.rh("LOGIN_INFO")),Y?(d.session_logininfo=Y,d=!0):d=!1):d=!1;d&&Ku(Z,I)}}; xTD=function(Z){var I=Z.adTimeOffset||{};Z=I.offsetEndMilliseconds;I=Number(I.offsetStartMilliseconds);if(isNaN(I))throw new TypeError("Expected valid start offset");Z=Number(Z);if(isNaN(Z))throw new TypeError("Expected valid end offset");return{RI:I,Pd:Z}}; KQ9=function(Z){if(!UT(Z.adLayoutMetadata))return!1;Z=Z.renderingContent;return g.y(Z,E0)||g.y(Z,bg)||g.y(Z,Hv)||g.y(Z,cv)||g.y(Z,gM)||g.y(Z,M2)?!0:!1}; var C0L=function(Z){return pl[Q[32]](this,50,Z)}; E1u=function(Z,I,d){var Y=0;if(Z.oa!==0){do{var T=Z.zz[Z.LQ+Y*2]<<8|Z.zz[Z.LQ+Y*2+1];var f=Z.zz[Z.zW+Y];Y++;if(T===0)rM(Z,f,I);else{var P=Zn[f];rM(Z,P+256+1,I);var O=ID[P];O!==0&&(f-=dn[P],oD(Z,f,O));T--;P=T<256?Y6[T]:Y6[256+(T>>>7)];rM(Z,P,d);O=j8[P];O!==0&&(T-=TK[P],oD(Z,T,O))}}while(YZ.B.le+100)&&Z.B){var T=Z.B;d=T.isAd;Y=Y*1E3-T.le;Z.J7=I*1E3-T.Bu5-Y-T.pbr;T=(0,g.o8)()-Y;I=Z.J7;Y=Z.provider.videoData;var f=Y.isAd();if(d||f){f=(d?"ad":"video")+"_to_"+(f?"ad":"video");var P={};Y.j&&(P.cttAuthInfo={token:Y.j,videoId:Y.videoId});P.startTime= T-I;Pr(f,P);g.Qg({targetVideoId:Y.videoId,targetCpn:Y.clientPlaybackNonce},f);O7("pbs",T,f)}else T=Z.provider.t5.MA(),T.j!==Y.clientPlaybackNonce?(T.B=Y.clientPlaybackNonce,T.D=I):Y.Zt()||g.uL(new g.Wj("CSI timing logged before gllat",{cpn:Y.clientPlaybackNonce}));Z.D1("gllat",{l:Z.J7.toFixed(),prev_ad:+d});delete Z.B}}; g.dIL=function(Z,I,d){var Y=d.B,T=[],f=[],P=d.Y("html5_shorts_onesie_mismatched_fix");Z=Z.Zt();var O=Wr.concat(b3a);P&&(O=Wr.concat(H3d));d.Y("html5_early_media_for_drm")&&(O=O.concat(cXd),d.Y("allow_vp9_1080p_mq_enc")&&O.push(g1r));var a=[].concat(g.c(MG7));d.Y("html5_iamf_audio_onesie_fmt")&&a.push(["773"]);O=g.t(O);for(var W=O.next();!W.done;W=O.next()){W=g.t(W.value);for(var e=W.next();!e.done;e=W.next()){e=e.value;var B=e8(e,Z&&P);if(B&&B.video){var w=g.Q4(d.experiments,"html5_drm_byterate_soft_cap"); if(!(w>0&&rXd(B)&&B.pS>w)&&Br(I,B,Y)===!0){T.push({videoCodec:Z97[fF[e]],maxWidth:B.video.width,maxHeight:B.video.height,maxFramerate:B.video.fps});break}}}}P=g.t(a);for(Z=P.next();!Z.done;Z=P.next())for(Z=g.t(Z.value),a=Z.next();!a.done;a=Z.next())if(a=a.value,(O=DNr(a))&&O.audio&&(d.Y("html5_onesie_51_audio")||!wn(O)&&!Vg(O))&&Br(I,O,Y)===!0){f.push({audioCodec:Iud[fF[a]],numChannels:O.audio.numChannels});break}return{videoFormatCapabilities:T,audioFormatCapabilities:f}}; ND=function(Z){var I=MT(Z).nonce;I||(I=g.LY(16),MT(Z).nonce=I);return I}; nA=function(Z){g.p.call(this);var I=this;this.t5=Z;this.X=this.L=this.loader=this.mediaElement=this.playbackData=null;this.Z=0;this.B=this.Ns=this.N=null;this.fS=!1;this.I0=0;this.kS=!1;this.timestampOffset=0;this.In=!0;this.w4=0;this.on=this.Yl=!1;this.V=0;this.d4=!1;this.Bj=0;this.U=this.t5.C();this.videoData=this.t5.getVideoData();this.policy=new ooL;this.LS=new FP(this.t5);this.b5=this.Tm=this.mJ=this.j=this.D=NaN;this.j7=new g.uX(function(){Y1$(I,!1)},2E3); this.SK=new g.uX(function(){s7(I)}); this.sZ=new g.uX(function(){j$L(I,{})}); this.UZ=NaN;this.y5=new g.uX(function(){var d=I.U.xk;d.L+=1E4/36E5;d.L-d.Z>1/6&&(T2D(d),d.Z=d.L);I.y5.start()},1E4); g.z(this,this.LS);g.z(this,this.j7);g.z(this,this.sZ);g.z(this,this.SK);g.z(this,this.y5)}; blO=function(Z){return Z.displayName||Z.name||"unknown type name"}; al=function(Z,I,d,Y,T,f,P,O,a){if((Z&89)==Z){yY(26,I);var W=I[Q[30]]}((Z|3)&3)>=0&&(Z+4&7)<1&&(W=d(Y,T,f,P,O,a));return W}; fi=function(Z,I){var d=JN(Z);return d.defaultView&&d.defaultView.getComputedStyle&&(Z=d.defaultView.getComputedStyle(Z,null))?Z[I]||Z.getPropertyValue(I)||"":""}; i9L=function(Z){g.KM(Z.L,function(I){I.D=0})}; h6=function(Z,I,d){var Y;fu9(Z.Q5.get(),Z.layoutId,I,d,(Y=Z.j)!=null?Y:void 0,Z.B)}; PXJ=function(Z){return Z.q8.C().Y("html5_gapless_no_clear_buffer_timeline")&&Z.B===1&&j2(Z.L.getVideoData())}; O9u=function(Z,I){var d=mD(Z,"watchtime");Q$9(Z)&&(d.delayThresholdMet=!0,Z.Ns=!0);if(Z.D>0){for(var Y=g.t(I),T=Y.next();!T.done;T=Y.next())T=T.value,T.startTime-=Z.D,T.endTime-=Z.D;d.L-=Z.D}else d.L=Z.L.L;d.segments=I;return d}; g2=function(Z,I,d,Y){g.dx.call(this);this.callback=Z;this.Z=Y;this.L=[];this.D=new xxu(Z,I,d)}; A6=function(Z,I,d,Y,T,f,P){I={id:I,namespace:P!=null?P:"appapi"};f==="chapter"?(I.style=qD.CHAPTER_MARKER,I.visible=!0):isNaN(T)||(f==="ad"?I.style=qD.AD_MARKER:(I.style=qD.TIME_MARKER,I.color=T),I.visible=!0);Z.zG([new g.S8(d*1E3,Y*1E3,I)],1);return!0}; Dn=function(){this.next=this.scope=this.L=null}; J6=function(Z){this.value=Z}; LA=function(Z,I,d){return RD(Z,Z.state|I,null,d===void 0?null:d)}; au$=function(Z){Z.N=3&&(Z.RN=(Z.RN<=3)if(d=ur(Z,Z.NC-Z.A7,Z.kZ-3),Z.dK-=Z.kZ,Z.kZ<=Z.HD&&Z.dK>=3){Z.kZ--;do Z.NC++,Z.RN=(Z.RN<0&&T1)return MD(Z,Z.L-1);if(Z.policy.X)return MD(Z,Z.L+1)}return Z.L}; IC=function(Z){for(var I=Z.Q1,d=["METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS"],Y=g.t(Ki()),T=Y.next();!T.done;T=Y.next())d.push(T.value);if(rn(I,{ZA:d,Cj:["LAYOUT_TYPE_MEDIA_BREAK"]}))return R6L(Z);I=Z.Q1;d=["metadata_type_player_vars","metadata_type_player_bytes_callback_ref"];Y=g.t(Ki());for(T=Y.next();!T.done;T=Y.next())d.push(T.value);if(rn(I,{ZA:d,Cj:["LAYOUT_TYPE_MEDIA"]}))return ZL(Z.Q1.clientMetadata,"metadata_type_ad_intro")?L0i(Z):UIO(Z)}; y5l=function(Z,I){I||(I=Math.ceil(Math.log(Z+2)/Math.log(2)/7));for(var d=1<<8-I,Y=[];Y.length=-1&&f<=2):f=Math.abs(Y-T)<=1,MK(Z,I,f?Y:T,d,Y,P,O&&f),f&&!a&&Z.rK("complete"))}; Gx=function(Z,I){Z.L=I;if(I>Z.Z)throw Error();}; te=function(Z,I,d,Y){if(!(d.SD()||d.RJ()||d.Z||!ek(d.MC,Z.policy,Z.N,Z.loader.yn())||d.info.Pj==="f"||Z.policy.L)){if(Y){Y=Z.B;var T=d.info;Y=IyJ(Y,T.video?Y.policy.IQ:Y.policy.KW,T.pS)}else Y=0;Y=d.GT(Y);Z=zx(Z,Y);k0(Y)&&XZ(I,Z);d.Z=!0}}; $0=function(){}; pt=function(Z,I){Z=Z.element.element;I?Z.setAttribute("aria-hidden","true"):Z.removeAttribute("aria-hidden")}; dCd=function(Z,I){Z.L&&(g.b(I,8)?(Z.D=!0,Z.dn(),Z.L.start()):(g.b(I,2)||g.b(I,64))&&Z.videoId&&(Z.videoId=null))}; x0=function(Z,I){g.p.call(this);this.app=Z;this.state=I}; Kt=function(Z,I){this.L=Z;this.pos=0;this.start=I||0}; Gll=function(Z,I){return op$(Z,I)}; Ct=function(Z,I){I=I===void 0?"":I;Z=YAr(Z)[0][jll];var d;I=(d=I)!=null?d:"[signal]";Z.debugName=I}; Ekl=function(Z){var I=new xK;Yt(Z,function(d,Y,T){I[Y]=EZ(T)}); I.q2=Z.q2;return I}; c7=function(Z){if(Z.vE()&&!Z.api.isEmbedsShortsMode()&&Z.TD){var I=Z.api.Y("web_player_hide_overflow_button_if_empty_menu");!Z.TR||I&&!TE9(Z.TR)||E4(Z.TD,Z.TR);!Z.shareButton||I&&!bf(Z.shareButton)||E4(Z.TD,Z.shareButton);!Z.copyLinkButton||I&&!iw7(Z.copyLinkButton)||E4(Z.TD,Z.copyLinkButton)}else{I=Z.api.C().getWebPlayerContextConfig();if(Z.TD){for(var d=Z.TD,Y=g.t(d.actionButtons),T=Y.next();!T.done;T=Y.next())T.value.detach();d.actionButtons=[]}Z.searchButton&&!g.H7(Z.jD.element,Z.searchButton.element)&& Z.searchButton.i5(Z.jD.element);!Z.TR||(I==null?0:I.hideTopWatchNextButton)||g.H7(Z.jD.element,Z.TR.element)||Z.TR.i5(Z.jD.element);!Z.shareButton||(I==null?0:I.hideTopShareButton)||g.H7(Z.jD.element,Z.shareButton.element)||Z.shareButton.i5(Z.jD.element);Z.copyLinkButton&&!g.H7(Z.jD.element,Z.copyLinkButton.element)&&Z.copyLinkButton.i5(Z.jD.element)}}; g5=function(Z){this.Gm=bp(Z)}; ZM=function(Z,I,d){var Y=Z.Na[I];if(Y!=null)return Y;Y=fy$(Z,I);var T=MR(r5,function(f){return f==I}); Z=P$d(Z,Y,Y,d,QlJ[r5[T]]);I=="fully_viewable_audible_half_duration_impression"&&(Z.std="csm");return Z}; IZ=function(Z){for(var I=Z.length;--I>=0;)Z[I]=0}; eIl=function(Z,I,d){var Y={stack:[],error:void 0,hasError:!1};try{var T=OwD(Z,d);return Kw(ayO(Y,new dt(Z.logger,T)),function(){return[]},I)}catch(f){Y.error=f,Y.hasError=!0}finally{Wyu(Y)}}; g.oZ=function(Z){this.name=Z}; iU=function(Z,I){var d;nF(Z,function(Y){d=I[Y];return!!d}); return d}; BEB=function(Z){var I=Z.w4||Z.sZ;return I?Z.snapshot.delay+Math.min(Z.Yo,(Z.X-Z.In)/1E3)+I:Z.Yl}; Fyn=function(Z){var I=I===void 0?w9u:I;var d=Z.tq?void 0:SV();d?VU7(d,I).then(function(Y){Z.uach=NED(Y!=null?Y:"[]");Y=fG(Z);P6(Y,g5,9,Z.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; sl9=function(Z){Z.kS||(Z.kS=!0,Z.dispatchEvent("complete"),Z.dispatchEvent("error"))}; SVr=function(Z){return Z.D.length?Z.D[0]:null}; Qp=function(Z,I){I.forEach(function(d){bX(Z,d)})}; np9=function(Z,I,d){var Y=0;Z=Z.L.L.get(d);if(!Z)return-1;Z=g.t(Z);for(d=Z.next();!d.done;d=Z.next()){if(d.value.cpn===I)return Y;Y++}return-1}; W6=function(Z){return Z?(Z=Z.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?Oy(Z):null:null}; qAl=function(Z,I){var d=Z.D[I],Y;(Y=Z.Z)==null||Y.dispose();g.y(d,eJ)?hIL(Z,g.y(d,eJ),Z.macros):g.y(d,B6)&&mCE(Z,g.y(d,B6),Z.macros);Z.L=I}; wt=function(Z,I,d,Y,T,f,P,O,a){g2.call(this,Z,I,d,Y);this.S7=T;this.Q5=f;this.j=P;this.B=O;this.Ms=a;this.N=!1;this.V=dB(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; Nf=function(Z,I){Array.isArray(I)&&(I=I.join(" "));I===""||I==void 0?(Vp||(I={},Vp=(I.atomic=!1,I.autocomplete="none",I.dropeffect="none",I.haspopup=!1,I.live="off",I.multiline=!1,I.multiselectable=!1,I.orientation="vertical",I.readonly=!1,I.relevant="additions text",I.required=!1,I.sort="none",I.busy=!1,I.disabled=!1,I.hidden=!1,I.invalid="false",I)),I=Vp,"label"in I?Z.setAttribute("aria-label",I.label):Z.removeAttribute("aria-label")):Z.setAttribute("aria-label",I)}; AA7=function(Z,I){if(!Z.OZ()){Z.wd({onInitData:1});if(Z.U.Y("html5_eme_loader_sync")&&Z.videoData.Z&&Z.videoData.Z.L){var d=Z.V.get(I.initData);I=Z.j.get(I.initData);if(!d||!I)return;I=d;d=I.initData;Z.j.remove(d);Z.V.remove(d)}Z.wd({initd:I.initData.length,ct:I.contentType});if(Z.L.flavor==="widevine")if(Z.fS&&!Z.videoData.isLivePlayback)FL(Z);else{if(!(Z.U.Y("vp9_drm_live")&&Z.videoData.isLivePlayback&&I.DR)){Z.fS=!0;d=I.cryptoPeriodIndex;var Y=I.L;SAr(I);I.DR||(Y&&I.L!==Y?Z.publish("ctmp","cpsmm", {emsg:Y,pssh:I.L}):d&&I.cryptoPeriodIndex!==d&&Z.publish("ctmp","cpimm",{emsg:d,pssh:I.cryptoPeriodIndex}));Z.publish("widevine_set_need_key_info",I)}}else Z.Y_(I)}}; sy=function(){return g.rh("EXPERIMENTS_TOKEN","")}; nG=function(Z,I){Z.L=I;Z.updateValue("slidervalue",Z.L);Z.D.valueAsNumber=Z.L;DCn(Z,I)}; JAJ=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 24 24",width:"100%"},G:[{K:"path",J:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}}; SJ=function(Z){if(/opus/.test(Z)&&g.h_&&!mc("38")&&!g.wm())return!1;if(window.MediaSource&&window.MediaSource.isTypeSupported)return window.MediaSource.isTypeSupported(Z);if(window.ManagedMediaSource&&window.ManagedMediaSource.isTypeSupported)return window.ManagedMediaSource.isTypeSupported(Z);if(/webm/.test(Z)&&!RIa())return!1;Z==='audio/mp4; codecs="mp4a.40.2"'&&(Z='video/mp4; codecs="avc1.4d401f"');return!!qf(Z)}; DM=function(Z){Z.D.hide();Z.banner.update({vendor:A_(Z)})}; LG=function(Z,I,d,Y,T,f,P){J_.call(this,Z,{K:"span",T:P?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",I,d,Y,T);this.videoAdDurationSeconds=f;this.D=null;P&&this.api.C().D&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),RZ&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; Lyi=function(Z,I){I.MU&&Z.MU.push.apply(Z.MU,I.MU);I.FZ&&Z.FZ.push.apply(Z.FZ,I.FZ)}; hME=function(Z,I,d){this.L=Z;this.D=I;this.Z=d}; HMl=function(Z,I,d,Y,T,f){Y=Y===void 0?H9():Y;T=T===void 0?Promise.resolve(void 0):T;var P,O,a,W,e,B,w,V,N,q,A,F;g.h(function(J){switch(J.L){case 1:return g.m(J,0,3);case 3:O=null;if(!P){J.xS(6);break}Uy(Z,7);g.ez(J,7);return g.m(J,NR(P.snapshot({}),f.iF,function(){return Promise.resolve("E:CTO")}),9); case 9:O=J.D;g.gE(J,6);break;case 7:g.Bj(J),O="E:UCE";case 6:a=void 0,W=P?f.IY:f.L1,e=new g.i_(W,f.Dl,f.kT,f.tX),B=1;case 10:if(!(B<=f.maxAttempts)){J.xS(12);break}if(B===1){J.xS(13);break}Uy(Z,0);Z.L=new UCl(e.getValue(),f.zB,f.Vw);return g.m(J,Z.L.promise,14);case 14:w=J.D,Z.L=void 0,w===1?(B=1,e.reset()):g.yp(e);case 13:g.ez(J,15);V=void 0;if(d){V=d;J.xS(17);break}Uy(Z,5);N=Y.L;return g.m(J,NR(yAr(I,Z.logger,B,N,O),f.BC,function(){return Promise.reject(Error("RGF:Fetch timed out"))}),18); case 18:V=J.D;case 17:return Uy(Z,3),g.m(J,NR(K_9(Y,V),f.T4S,function(){return Promise.reject(Error("DTZ:Script timed out"))}),19); case 19:return Uy(Z,8),g.m(J,T,20);case 20:return q=new dq({challenge:V,t3:Z.options.t3,gM:Z.options.gM}),g.m(J,NR(q.O8,f.Eos,function(){return Promise.reject(Error("QEG:Setup timed out"))}),21); case 21:a=q;J.xS(12);break;case 15:A=g.Bj(J),Z.handleError(A),vpu(Z);case 11:B++;J.xS(10);break;case 12:if(Z.OZ()){J.xS(5);break}a&&(d=void 0,ly9(Z,P),P=a,uml(Z,a),vpu(Z));Uy(Z,2);Z.L=new UCl(f.GxS,f.zB,f.Vw);return g.m(J,Z.L.promise,22);case 22:Z.L=void 0;if(Z.OZ()){J.xS(5);break}J.xS(3);break;case 5:(F=P)==null||F.dispose(),g.v6(J)}})}; lU=function(Z,I,d,Y){var T=Y;ps(Z);Y=Z.Gm;Z=sH(Z,Y,Y[nL]|0,d,I,2,void 0,!0);T=T!=null?MN(T,d):new d;Z.push(T);I=d=Z===Ks?7:Z[nL]|0;(T=b5(T))?(d&=-9,Z.length===1&&(d&=-4097)):d|=4096;d!==I&&Ht(Z,d);T||H8(Y)}; TU=function(){var Z=g.iN,I=[],d=null;do{var Y=Z;if(DQ(Y)){var T=Y.location.href;d=Y.document&&Y.document.referrer||null}else T=d,d=null;I.push(new sv9(T||""));try{Z=Y.parent}catch(f){Z=null}}while(Z&&Y!==Z);Y=0;for(Z=I.length-1;Y<=Z;++Y)I[Y].depth=Z-Y;Y=g.iN;if(Y.location&&Y.location.ancestorOrigins&&Y.location.ancestorOrigins.length===I.length-1)for(Z=1;Z=0}; t_=function(Z){Z=zIE(Z);return Z===null?!1:Z[0]==="com"&&Z[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; f3=function(Z,I,d,Y){Y!=null||(Y=!!(34&I));Z=iz(Z,I,k2J,Y);Y=32;d&&(Y|=2);I=I&16769217|Y;Ht(Z,I);return Z}; g.$S=function(Z,I){return Array.prototype.splice.call(Z,I,1).length==1}; X9$=function(Z){return Z.j&&pG(Z).size>0}; $Ci=function(Z,I,d){if(Z.policy.OL&&Z.policy.D)return!(Z.D===1||Z.D===2||!Z.policy.wV&&Z.D===3&&d>=Z.N);if(Z.D===1||Z.D===2)return!1;if(Z.D!==0&&I===Z.audioTrack){if(Z.policy.D)return tUn(Z.videoTrack,d)||tUn(Z.videoTrack,d+1);Z=xS(Z.videoTrack);if(d>(Z?Z.YS:-1))return!1}return!0}; xCL=function(Z,I,d,Y,T){var f=Z.index?SK(Z.logger,function(){return dpu(Z.index,p9L(I),d,Y,T)},"W"):"u"; Z.logger.qr(f)}; C$J=function(Z,I){lN(Z);if(I){var d=g.KG.getState().entities;d=CG(d,"featuredProductsEntity",I);if(d!=null&&d.productsData){I=[];d=g.t(d.productsData);for(var Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var T=void 0;if((T=Y)!=null&&T.identifier&&Y.featuredSegments){Z.Bj.push(Y);var f=void 0;T=g.t((f=Y)==null?void 0:f.featuredSegments);for(f=T.next();!f.done;f=T.next()){var P=f.value;f=KyD(P.startTimeSec);f!==void 0&&(P=KyD(P.endTimeSec),I.push(new g.S8(f*1E3,P===void 0?0x7ffffffffffff:P*1E3,{id:Y.identifier, namespace:"featured_product"})))}}}Z.S.eM(I)}}}; g.Ey=function(Z,I,d,Y){this.left=Z;this.top=I;this.width=d;this.height=Y}; bU=function(Z){return Z&&Z.baseUrl||""}; g.aI=function(Z,I,d){H6(Z,d)||c6(Z,I,d);H6(Z,"video_to_ad")||c6(Z,I,"video_to_ad");H6(Z,"ad_to_video")||c6(Z,I,"ad_to_video");H6(Z,"ad_to_ad")||c6(Z,I,"ad_to_ad")}; gt=function(Z){return g.RK(Z.U)&&Z.videoData.isLivePlayback&&(!Z.U.Y("html5_allow_multiview_tile_preload")||!Z.videoData.xd)}; Mf=function(Z,I,d,Y,T,f){J_.call(this,Z,{K:"div",T:"ytp-ad-skip-button-slot"},"skip-button",I,d,Y,T);var P=this;this.kS=null;this.fS=!1;this.w4=f;this.B=this.api.C().experiments.CS("enable_modern_skip_button_on_web");this.on=!1;this.N=new g.m7({K:"span",zm:["ytp-ad-skip-button-container"]});this.B&&this.N.element.classList.add("ytp-ad-skip-button-container-detached");g.z(this,this.N);this.N.i5(this.element);this.D=this.Z=null;this.d4=new g.nt(this.N,500,!1,100,function(){return P.hide()}); g.z(this,this.d4);this.mJ=new Hr(this.N.element,15E3,5E3,.5,.5,this.B);g.z(this,this.mJ);this.hide()}; g.rt=function(Z,I){for(var d,Y,T=1;T=f)cA$(Z,a,V,P,N,I.join(),T),O=N;A.xS(2);break;case 4:return A.return(Promise.reject(O))}})}; YL=function(){g.k.call(this,{K:"div",T:"ytp-timed-marker"});this.L=this.timeRangeStartMillis=NaN;this.title="";this.onActiveCommand=void 0}; ly9=function(Z,I){I&&(Promise.all(Z.N).then(function(){return void I.dispose()}),Z.N=[])}; gpJ=function(Z){Z.indexOf("watchtime")!==-1&&g.g6("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:Z}})}; i8=function(Z,I,d,Y){j4.call(this,Z,I,d,Y);var T=this;this.B=null;this.A9={CQ:function(f,P,O,a){return T.CQ(f,P,O,a)}}; this.index=new g.Tv}; fR=function(Z){var I=(484).toString();Z&&(I=(483).toString());return I}; PC=function(Z,I,d){if(I==null)d.push("null");else{if(typeof I=="object"){if(Array.isArray(I)){var Y=I;I=Y.length;d.push("[");for(var T="",f=0;f=0)throw Error("Database name cannot contain ':'");}; rAB=function(Z,I){return(I=MR(Z,I))&&Z[I]}; BF=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ytp-ad-feedback-dialog-background",G:[{K:"div",T:"ytp-ad-feedback-dialog-container",G:[{K:"div",T:"ytp-ad-feedback-dialog-form",J:{role:"dialog",tabindex:"-1"},G:[{K:"div",T:"ytp-ad-feedback-dialog-title",G:[{K:"span",Z1:"{{title}}"}]},{K:"span",T:"ytp-ad-info-dialog-feedback-options-title",Z1:"{{reasonsTitle}}"},{K:"div",T:"ytp-ad-info-dialog-feedback-options"},{K:"div",T:"ytp-ad-feedback-dialog-confirm-container",G:[{K:"button",T:"ytp-ad-feedback-dialog-cancel-button", Z1:"{{cancelLabel}}"},{K:"button",T:"ytp-ad-feedback-dialog-confirm-button",Z1:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",I,d,Y);this.N=[];this.L=null;this.B=this.KS("ytp-ad-feedback-dialog-cancel-button");this.X=this.KS("ytp-ad-feedback-dialog-confirm-button");this.kS=this.KS("ytp-ad-info-dialog-feedback-options");this.fS=this.KS("ytp-ad-feedback-dialog-title");this.Z=this.D=null;this.hide()}; di$=function(Z){if(!g.x9("universal_csi_network_ticks"))return function(){}; var I=Z2J[Z];return I?(On(I),function(){var d=g.x9("universal_csi_network_ticks")?(d=Ibl[Z])?On(d):!1:!1;return d}):function(){}}; l$$=function(){return(iy||fL)&&QD?QD.mobile:!Rq()&&(ET("iPod")||ET("iPhone")||ET("Android")||ET("IEMobile"))}; ax=function(Z){return Z.S.C().experiments.CS("enable_ads_control_flow_deterministic_id_generation")}; UTJ=function(Z){Z=Rw(Z);return new g.vS(Z.left,Z.top)}; e4=function(Z){WC.call(this,Z);this.D=this.L=this.isContentForward=this.j=!1;this.element.setAttribute("data-overlay-order","8");otl(this);this.W(this.S,"changeProductsInVideoVisibility",this.hxZ);this.W(this.S,"videodatachange",this.onVideoDataChange)}; TmD=function(Z,I,d){if(d){var Y="";YtD(Z,I)&&(Y=I,Z.api.C().J5=I);if(Y&&jwu(Z,Y)){TqO(Z.api,Y);var T;BC(ww(Z.api.C(),(T=Z.api.getVideoData())==null?void 0:g.VO(T)),function(f){var P=Y;i2n(f)!==P&&iYO(Z,fR(f),{stringValue:P})})}}}; fbJ=function(){}; QwE=function(Z){var I=[];Pz7(Z,function(d){I.push(d)}); return I}; O2l=function(Z){Z.mJ?Z.mJ=!1:Z.In=(0,g.o8)();Z.LS=!1;Z.Tm=!1;return new Ng(Z.V,Z.Z,Z.L.reason)}; eu9=function(Z,I){return I?ab7(I):Z?Wm7(Z):Promise.resolve()}; qg=function(Z,I,d,Y){Z.L().Fi(I,Y);d=d();Z=Z.L();Z.Wk.qQ("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",I,Y,d);I=g.t(d);for(d=I.next();!d.done;d=I.next())a:{Y=Z;d=d.value;Y.Wk.NO("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",d);Y.Wk.NO("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",d);try{var T=Y.L;if(g.Hw(d.slotId))throw new C("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(Fc(T,d))throw new C("Duplicate registration for slot.",{slotId:d.slotId,slotEntryTriggerType:d.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!T.WO.s4.has(d.slotType))throw new C("No fulfillment adapter factory registered for slot of type: "+d.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!T.WO.DO.has(d.slotType))throw new C("No SlotAdapterFactory registered for slot of type: "+d.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");sn(T,"TRIGGER_CATEGORY_SLOT_ENTRY",d.slotEntryTrigger?[d.slotEntryTrigger]:[]);sn(T,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", d.slotFulfillmentTriggers);sn(T,"TRIGGER_CATEGORY_SLOT_EXPIRATION",d.slotExpirationTriggers);var f=Y.L,P=d.slotType+"_"+d.slotPhysicalPosition,O=nR(f,P);if(Fc(f,d))throw new C("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");O.set(d.slotId,new BqD(d));f.L.set(P,O)}catch(Id){Id instanceof C&&Id.mj?(Y.Wk.Dy("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Id.mj,d),Zv(Id,d,void 0,void 0,Id.NP)):(Y.Wk.Dy("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", d),Zv(Id,d));break a}Fc(Y.L,d).j=!0;try{var a=Y.L,W=Fc(a,d),e=d.slotEntryTrigger,B=a.WO.t0.get(e.triggerType);B&&(B.P3("TRIGGER_CATEGORY_SLOT_ENTRY",e,d,null),W.Ns.set(e.triggerId,B));for(var w=g.t(d.slotFulfillmentTriggers),V=w.next();!V.done;V=w.next()){var N=V.value,q=a.WO.t0.get(N.triggerType);q&&(q.P3("TRIGGER_CATEGORY_SLOT_FULFILLMENT",N,d,null),W.LS.set(N.triggerId,q))}for(var A=g.t(d.slotExpirationTriggers),F=A.next();!F.done;F=A.next()){var J=F.value,v=a.WO.t0.get(J.triggerType);v&&(v.P3("TRIGGER_CATEGORY_SLOT_EXPIRATION", J,d,null),W.In.set(J.triggerId,v))}var l=a.WO.s4.get(d.slotType).get().build(a.Z,d);W.V=l;var X=a.WO.DO.get(d.slotType).get().build(a.B,d);X.init();W.D=X}catch(Id){Id instanceof C&&Id.mj?(Y.Wk.Dy("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Id.mj,d),Zv(Id,d,void 0,void 0,Id.NP)):(Y.Wk.Dy("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",d),Zv(Id,d));h3(Y,d,!0);break a}Y.Wk.NO("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",d);Y.L.HE(d);for(var H=g.t(Y.D),x=H.next();!x.done;x= H.next())x.value.HE(d);mi(Y,d)}}; qR=function(Z,I){Z=S4(Z,I,void 0,void 0,w17);return Z==null?A3():Z}; V5n=function(Z){return Z.fields.map(function(I){return I.fieldType})}; D8=function(Z){oK.call(this);this.L=Z;this.W(this.L,"onAdUxUpdate",this.B)}; Nqd=function(Z){Z.y5.add(Z.Z);Z.Z="";Z.LS=!1}; J3=function(Z){this.Gm=bp(Z)}; Rx=function(Z,I){return function(d){return I(d)?d[Z]:void 0}}; fc=function(Z){Z.Z.isFinal=!0;Z.flush();Z.Z.isFinal=!1}; LR=function(Z){var I={};I.dt=Fm7;I.flash="0";a:{try{var d=Z.L.top.location.href}catch(W){Z=2;break a}Z=d?d===Z.D.location.href?0:1:2}I=(I.frm=Z,I);try{I.u_tz=-(new Date).getTimezoneOffset();try{var Y=JB.history.length}catch(W){Y=0}I.u_his=Y;var T;I.u_h=(T=JB.screen)==null?void 0:T.height;var f;I.u_w=(f=JB.screen)==null?void 0:f.width;var P;I.u_ah=(P=JB.screen)==null?void 0:P.availHeight;var O;I.u_aw=(O=JB.screen)==null?void 0:O.availWidth;var a;I.u_cd=(a=JB.screen)==null?void 0:a.colorDepth}catch(W){}return I}; Un=function(Z,I){if(ax(Z.Ms.get())){var d=Z.Z.get(I)||0;d++;Z.Z.set(I,d);return I+"_"+d}return g.LY(16)}; yO=function(Z){var I,d;return new Map([["impression",Z.impressionPings||[]],["error",Z.errorPings||[]],["mute",Z.mutePings||[]],["unmute",Z.unmutePings||[]],["pause",Z.pausePings||[]],["rewind",Z.rewindPings||[]],["resume",Z.resumePings||[]],["skip",Z.skipPings||[]],["swipe",Z.swipePings||[]],["close",Z.closePings||[]],["progress",Z.progressPings||[]],["clickthrough",Z.clickthroughPings||[]],["fullscreen",Z.fullscreenPings||[]],["active_view_viewable",Z.activeViewViewablePings||[]],["active_view_measurable", Z.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",Z.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((I=Z.activeViewTracking)==null?void 0:I.activeViewAudioAudiblePings)||[]],["audio_measurable",((d=Z.activeViewTracking)==null?void 0:d.activeViewAudioMeasurablePings)||[]],["end_fullscreen",Z.endFullscreenPings||[]],["channel_clickthrough",Z.channelClickthroughPings||[]],["abandon",Z.abandonPings||[]],["start",Z.startPings||[]],["first_quartile", Z.firstQuartilePings||[]],["midpoint",Z.secondQuartilePings||[]],["third_quartile",Z.thirdQuartilePings||[]],["complete",Z.completePings||[]],["unmuted_impression",Z.unmutedImpressionPings||[]],["unmuted_error",Z.unmutedErrorPings||[]],["unmuted_mute",Z.unmutedMutePings||[]],["unmuted_unmute",Z.unmutedUnmutePings||[]],["unmuted_pause",Z.unmutedPausePings||[]],["unmuted_resume",Z.unmutedResumePings||[]],["unmuted_close",Z.unmutedClosePings||[]],["unmuted_progress",Z.unmutedProgressPings||[]],["unmuted_clickthrough", Z.unmutedClickthroughPings||[]],["unmuted_fullscreen",Z.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",Z.unmutedEndFullscreenPings||[]],["unmuted_abandon",Z.unmutedAbandonPings||[]],["unmuted_start",Z.unmutedStartPings||[]],["unmuted_first_quartile",Z.unmutedFirstQuartilePings||[]],["unmuted_midpoint",Z.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",Z.unmutedThirdQuartilePings||[]],["unmuted_complete",Z.unmutedCompletePings||[]],["unmuted_skip",Z.unmutedSkipPings||[]]])}; mir=function(Z){var I=En9(g.iN==null?void 0:g.iN.location.href),d=[];if(swE()){I=I.indexOf("https:")==0||I.indexOf("chrome-extension:")==0||I.indexOf("chrome-untrusted://new-tab-page")==0||I.indexOf("moz-extension:")==0;var Y=I?g.iN.__SAPISID:g.iN.__APISID;Y||typeof document==="undefined"||(Y=new vC(document),Y=Y.get(I?"SAPISID":"APISID")||Y.get("__Secure-3PAPISID"));(Y=Y?nt9(Y,I?"SAPISIDHASH":"APISIDHASH",Z):null)&&d.push(Y);I&&((I=huJ("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",Z))&&d.push(I), (Z=huJ("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",Z))&&d.push(Z))}return d.length==0?null:d.join(" ")}; qtB=function(Z){function I(d){return{toString:function(){return d()}}} Z.macros.SURVEY_LOCAL_TIME_EPOCH_S=I(function(){var d=new Date;return(Math.round(d.valueOf()/1E3)+-1*d.getTimezoneOffset()*60).toString()}); Z.macros.SURVEY_ELAPSED_MS=I(function(){return(Date.now()-Z.Z).toString()})}; g.u8=function(Z,I){var d=g.l8();return d?d.publish.apply(d,arguments):!1}; zv=function(Z){var I=Gv.EXPERIMENT_FLAGS;return I?I[Z]:void 0}; Sta=function(Z){var I=Z.layoutId,d=Z.Ib;if(Z.GF){var Y={};kL(Z.pN,"slso",(Y.ec=I,Y.is=d,Y.ctp=Xc(I),Y))}}; t3=function(){}; c6=function(Z,I,d){g.t6(function(){if(!$L(d)||H6(Z,d))return!1;O7(Z,I,d);return!0})()}; xL=function(Z,I,d,Y,T,f){g2.call(this,Z,I,d,Y);this.Q5=T;this.pM=f;this.Gz=!0;pR(this.pM(),this);Z=dB(d.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,Z,d.layoutId)}; KR=function(Z,I,d){var Y=new Ui(0,0,0,0);this.time=Z;this.volume=null;this.Z=I;this.L=Y;this.D=d}; b8=function(Z){if(typeof Z!=="number"&&Z&&!Z.removed){var I=Z.src;if(CR(I))g.JX(I.Sd,Z);else{var d=Z.type,Y=Z.proxy;I.removeEventListener?I.removeEventListener(d,Y,Z.capture):I.detachEvent?I.detachEvent(L57(d),Y):I.addListener&&I.removeListener&&I.removeListener(Y);ANd--;(d=dL(I))?(g.JX(d,Z),d.L==0&&(d.src=null,I[Zf]=null)):En(Z)}}}; cC=function(Z,I,d,Y,T,f,P){Y=Y===void 0?!1:Y;T=T===void 0?!1:T;P=P===void 0?!0:P;T||(T=Z.api.C().N);var O=Z.api.getVideoData();I=g.yd(g.HC[I]||"",Y?{CPN:O.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);Y=[];f&&Y.push({K:"h2",Z1:f});Y.push(I[0]);P&&Y.push({K:"br"});Y.push({K:"a",J:{href:d,target:T?"_blank":null},T:"ytp-error-link",Z1:I[2]});Z.Z=!0;Y.push(I[4]);return{K:"span",G:Y}}; gw=function(Z){var I=g.vj.apply(1,arguments).filter(Boolean).join("&");if(!I)return Z;var d=Z.match(/[?&]adurl=/);return d?Z.slice(0,d.index+1)+I+"&"+Z.slice(d.index+1):Z+(Z.indexOf("?")<0?"?":"&")+I}; Mg=function(Z){this.Gm=bp(Z,500)}; rw=function(Z,I,d,Y){kw.call(this,Z,{K:"img",T:"ytp-ad-avatar"},"ad-avatar",I,d,Y);this.hide()}; DiL=function(Z,I,d){if(!Z)throw Error();if(arguments.length>2){var Y=Array.prototype.slice.call(arguments,2);return function(){var T=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(T,Y);return Z.apply(I,T)}}return function(){return Z.apply(I,arguments)}}; ZT=function(Z){this.Gm=bp(Z)}; Rul=function(Z,I,d){I=IL(Z.MC,JNL(Z,I,d),I);Z.UG()&&I.set("probe","1");return I}; dd=function(Z,I){return Z[I+0]+(Z[I+1]<<8)+(Z[I+2]<<16)+(Z[I+3]<<24)}; yAr=function(Z,I,d,Y,T){return Z instanceof oL?EoE(Z,Y,T,I,d):EoE(Z,Y,T,new pw,0)}; Lma=function(Z){Z.L===-1&&(Z.L=Z.data.reduce(function(I,d,Y){return I+(d?Math.pow(2,Y):0)},0)); return Z.L}; nEJ=function(){this.L=0}; pwd=function(Z){for(var I=g.t(UiJ),d=I.next();!d.done;d=I.next())Z=jw(Z,d.value);return"ST-"+EA(Z).toString(36)}; g.U0=function(Z){if(g.rh("DATASYNC_ID")!==void 0)return g.rh("DATASYNC_ID");throw new g.Wj("Datasync ID not set",Z===void 0?"unknown":Z);}; rn=function(Z,I){return TS(Z,I.ZA,I.Cj)?!0:!1}; fb=function(Z){var I=I===void 0?-1:I;var d=d===void 0?Infinity:d;yN$(Z,I,d);for(var Y=g.t(Z.D.values()),T=Y.next();!T.done;T=Y.next())T=T.value,T.start>=I&&T.end<=d&&(Z.playback.removeCueRange(T),Z.D.delete(T.getId()),Z.t9({rmAdCR:1}));Y=iT(Z,I/1E3);I=Y.JE;Y=Y.gZ;I&&(Y=Y*1E3-I.f_,vtd(Z,I,Y,I.f_+Y),Y=Z.D.get(I.cpn))&&(Y.start=I.f_,Y.end=I.f_+I.durationMs);if(I=iT(Z,d/1E3).JE){var f;Y="playback_timelinePlaybackId_"+I.uQ+"_video_id_"+((f=I.videoData)==null?void 0:f.videoId)+"_durationMs_"+I.durationMs+ "_enterTimeMs_"+I.f_+"_parentReturnTimeMs_"+I.Mc;Z.r5("Invalid_clearEndTimeMs_"+d+"_that_falls_during_"+Y+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; g.FZ=function(Z){var I=Z.length;if(I>0){for(var d=Array(I),Y=0;Y0&&h8(I.videoData.Kg)&&(Z=d.Ui,I.videoData.Kg=new mY(0,Z,!1,"u"));return I.videoData.Kg}; $TB=function(Z){var I=Z.indexOf("#");return I<0?Z:Z.slice(0,I)}; qe=function(Z){this.j=Z}; Etu=function(Z){Z.B||(Z.B=(0,g.o8)());Z.policy.In&&(Z.j=(0,g.o8)())}; b2i=function(Z,I){return new g.ox("INCOMPATIBLE_DB_VERSION",{dbName:Z.name,oldVersion:Z.options.version,newVersion:I})}; Sw=function(Z,I){Z=Fc(Z,I);if(I=Z.layout!=null)a:switch(Z.L){case "rendering":case "rendering_stop_requested":I=!0;break a;default:I=!1}return I}; H2D=function(Z,I){var d=fM(Z);return d&&d.info.type!==6?!$Ci(I,Z,d.info.YS):!1}; A8=function(Z,I,d,Y,T,f,P,O){this.L=Z;this.V=I;this.Z=d;this.B=Y;this.N=T;this.j=f;this.D=P;this.X=O}; cNB=function(Z){if(!(Z.length<=28))for(var I=(0,g.DT)([60,0,75,0,73,0,68,0,62,0]),d=28;d0?1:0;B.atos= Lb(W.L);B.ssb=Lb(W.y5,!1);B.amtos=gtu(W.L,!1);B.uac=Z.UZ;B.vpt=W.Z.L;e=="nio"&&(B.nio=1,B.avms="nio");B.gmm="4";B.gdr=uT(Z,W.Z.L,!0)?1:0;B.efpf=Z.Yl;if(e=="gsv"||e=="nis")e=Z.oN,e.V>0&&(B.nnut=e.V);B.tcm=M5E(Z);B.nmt=Z.w4;B.bt=Z.j7;B.pst=Z.sZ;B.vpaid=Z.In;B.dur=Z.Z;B.vmtime=Z.LS;B.is=Z.Jt.Z;Z.L.length>=1&&(B.i0=Z.L[0].Mb,B.a0=[Z.L[0].HZ],B.c0=[Z.L[0].qc],B.ss0=[Z.L[0].pA],e=Z.L[0].position,f=Z.L[0].vZ,B.p0=e?GS(e):void 0,e&&f&&!RL(f,e)&&(B.cp0=GS(f)));Z.L.length>=2&&(B.i1=Z.L[1].Mb,B.a1=zS(Z.L[1].Gd, Z.L[1].HZ,Z.L[1].HQ),B.c1=zS(Z.L[1].yu,Z.L[1].qc,Z.L[1].ll),B.ss1=zS(Z.L[1].p9,Z.L[1].pA,Z.L[1].Ec),e=Z.L[1].position,f=Z.L[1].vZ,B.p1=e?GS(e):void 0,e&&f&&!RL(f,e)&&(B.cp1=GS(f)),B.mtos1=Z.L[1].vQ);Z.L.length>=3&&(B.i2=Z.L[2].Mb,B.a2=zS(Z.L[2].Gd,Z.L[2].HZ,Z.L[2].HQ),B.c2=zS(Z.L[2].yu,Z.L[2].qc,Z.L[2].ll),B.ss2=zS(Z.L[2].p9,Z.L[2].pA,Z.L[2].Ec),e=Z.L[2].position,f=Z.L[2].vZ,B.p2=e?GS(e):void 0,e&&f&&!RL(f,e)&&(B.cp2=GS(f)),B.mtos2=Z.L[2].vQ);Z.L.length>=4&&(B.i3=Z.L[3].Mb,B.a3=zS(Z.L[3].Gd,Z.L[3].HZ, Z.L[3].HQ),B.c3=zS(Z.L[3].yu,Z.L[3].qc,Z.L[3].ll),B.ss3=zS(Z.L[3].p9,Z.L[3].pA,Z.L[3].Ec),e=Z.L[3].position,f=Z.L[3].vZ,B.p3=e?GS(e):void 0,e&&f&&!RL(f,e)&&(B.cp3=GS(f)),B.mtos3=Z.L[3].vQ);B.cs=egr(Z.Jt);I&&(B.ic=rNL(Z.Jt),B.dvpt=W.Z.D,B.dvs=kT(W.D,.5),B.dfvs=kT(W.D,1),B.davs=kT(W.L,.5),B.dafvs=kT(W.L,1),d&&(W.Z.D=0,i9L(W.D),i9L(W.L)),Z.Lr()&&(B.dtos=W.Bj,B.dav=W.In,B.dtoss=Z.Ay+1,d&&(W.Bj=0,W.In=0,Z.Ay++)),B.dat=W.B.D,B.dft=W.LS.D,d&&(W.B.D=0,W.LS.D=0));B.ps=[O.B.width,O.B.height];B.bs=[Zu(O.L), O.L.getHeight()];B.scs=[O.N.width,O.N.height];B.dom=O.domain;Z.fE&&(B.vds=Z.fE);if(Z.j.length>0||Z.ZW)I=g.FZ(Z.j),Z.ZW&&I.push(Z.ZW),B.pings=g.Ft(I,function(w){return w.toString()}); I=g.Ft(g.zG(Z.j,function(w){return w.j()}),function(w){return w.getId()}); Z7$(I);B.ces=I;Z.D&&(B.vmer=Z.D);Z.X&&(B.vmmk=Z.X);Z.Bj&&(B.vmiec=Z.Bj);B.avms=Z.oN?Z.oN.getName():"ns";Z.oN&&g.rt(B,Z.oN.dF());Y?(B.c=XJ(Z.Y$.qc,2),B.ss=XJ(Z.Y$.pA,2)):B.tth=vG()-Ici;B.mc=XJ(W.kS,2);B.nc=XJ(W.V,2);B.mv=lT(W.j);B.nv=lT(W.N);B.lte=XJ(Z.ql,2);Y=L7(Z,T);UW(W);B.qmtos=UW(Y);B.qnc=XJ(Y.V,2);B.qmv=lT(Y.j);B.qnv=lT(Y.N);B.qas=Y.N>0?1:0;B.qi=Z.iy;B.avms||(B.avms="geo");B.psm=W.j7.L;B.psv=W.j7.getValue();B.psfv=W.J5.getValue();B.psa=W.on.getValue();a=dKB(a.zv);a.length&&(B.veid=a);Z.B&&g.rt(B, oHO(Z.B));B.avas=Z.zS();B.vs=Z.EB();B.co=YwE(Z);B.tm=W.mJ;B.tu=W.Tm;return B}; g.$T=function(Z,I,d){Zk||t8.remove(""+Z,I===void 0?"/":I,d===void 0?"youtube.com":d)}; g.jjL=function(Z){var I=Z.C();return I.Tv&&!I.Z&&g.Dh(I)?Z.isEmbedsShortsMode()?(Z=Z.aF(),Math.min(Z.width,Z.height)>=315):!Z.vE():!1}; WG=function(Z){this.L=Z;this.pos=0;this.D=-1}; T8n=function(Z,I){return(Z=Z.flags.get(""+I))?Z.toString():""}; g.HG=function(Z){return(Z.deviceIsAudioOnly||!g.h_||RZ||Z.controlsType==="3"?!1:g.pb?Z.N&&g.xT(51):!0)||(Z.deviceIsAudioOnly||!g.Kb||RZ||Z.controlsType==="3"?!1:g.pb?Z.N&&g.xT(48):g.xT(38))||(Z.deviceIsAudioOnly||!g.Cb||RZ||Z.controlsType==="3"?!1:g.pb?Z.N&&g.xT(37):g.xT(27))||!Z.deviceIsAudioOnly&&g.EW&&!i7d()&&g.xT(11)||!Z.deviceIsAudioOnly&&g.bT&&g.xT("604.4")}; gd=function(Z,I,d,Y,T,f){kw.call(this,Z,{K:"div",T:"ytp-ad-action-interstitial",J:{tabindex:"0"},G:[{K:"div",T:"ytp-ad-action-interstitial-background-container"},{K:"div",T:"ytp-ad-action-interstitial-slot",G:[{K:"div",T:"ytp-ad-action-interstitial-instream-info"},{K:"div",T:"ytp-ad-action-interstitial-card",G:[{K:"div",T:"ytp-ad-action-interstitial-image-container"},{K:"div",T:"ytp-ad-action-interstitial-headline-container"},{K:"div",T:"ytp-ad-action-interstitial-description-container"},{K:"div", T:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",I,d,Y);this.gi=T;this.Gl=f;this.navigationEndpoint=this.L=this.skipButton=this.D=this.actionButton=null;this.Tm=this.KS("ytp-ad-action-interstitial-instream-info");this.mJ=this.KS("ytp-ad-action-interstitial-image-container");this.X=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,"ytp-ad-action-interstitial-image");g.z(this,this.X);this.X.i5(this.mJ);this.fS=this.KS("ytp-ad-action-interstitial-headline-container"); this.B=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,"ytp-ad-action-interstitial-headline");g.z(this,this.B);this.B.i5(this.fS);this.kS=this.KS("ytp-ad-action-interstitial-description-container");this.Z=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,"ytp-ad-action-interstitial-description");g.z(this,this.Z);this.Z.i5(this.kS);this.d4=this.KS("ytp-ad-action-interstitial-background-container");this.w4=new cG(this.api,this.layoutId,this.interactionLoggingClientData, this.Hj,"ytp-ad-action-interstitial-background",!0);g.z(this,this.w4);this.w4.i5(this.d4);this.on=this.KS("ytp-ad-action-interstitial-action-button-container");this.slot=this.KS("ytp-ad-action-interstitial-slot");this.qI=this.KS("ytp-ad-action-interstitial-card");this.N=new oK;g.z(this,this.N);this.hide()}; fcl=function(Z){Z=Z.S.getVideoData(1);return!!Z&&Z.Y("html5_preload_first_vod_video_ad")&&!Z.isDaiEnabled()&&!Z.isLivePlayback}; o7=function(Z,I,d,Y){Y.info.L.SD();var T=Y.info.L.L;if(!T||!d.V9()||d.JL()===T)return!1;var f=T,P=d.wX();if(Z.policy.rW&&P&&d.isView()&&g.Me(Y.info.L.info)){var O=new DataView(T.buffer,T.byteOffset,T.byteLength);(P=P9$(O,P))?f=new Uint8Array(P.buffer,P.byteOffset,P.byteLength):Z.D1("fenc",{})}Z.policy.Gu&&(P=QjO(Z,Y,new OA([f])))&&(f=rd(P));var a;(P=Y.info.L.GT(0,Y.info.clipId))&&(a=P.e7[0]);if(Y===Z.M8){if(Z.j7+=1,Z.t5.getVideoData().Y("html5_shorts_gapless_restart_on_init_seg_retries")&&Z.j7>5)return Z.j7= 0,Z.t5.Zo({initSegStuck:1,as:Y.info.m5()}),!0}else Z.j7=0,Z.M8=Y;Z.policy.XR&&(d.abort(),(P=I.In)!=null&&(ZJ(P,4),P.flush()));T=O7r(Z,d,f,a,T);(I=I.In)!=null&&(I.flush(),I.D=a,ZJ(I,3,T));if(T!==0)return Z.policy.Yy&&fA(Z.t5.getVideoData())?(Z.t5.Ml()||I7(Z,"sepInit",T,Y.info),acd(Z.t5,"sie")):I7(Z,"sepInit",T,Y.info),!0;Y.info.zx()?(a=Z.timing,a.j7||(a.j7=(0,g.o8)(),g.aI("vis_a",a.j7,a.L))):(a=Z.timing,a.V||(a.V=(0,g.o8)(),g.aI("ais_a",a.V,a.L)));(Y=Y.info.L.M5)&&Z.t5.X4(new dR(Y.key,Y.type));return d.Fr()}; eLn=function(Z){return Z?Z.dataset?Z.dataset[WSd()]:Z.getAttribute("data-loaded"):null}; YO=function(Z,I,d){var Y=0;return function(T){g.iN.clearTimeout(Y);var f=arguments;Y=g.iN.setTimeout(function(){Z.apply(d,f)},I)}}; g.wR=function(Z){g.Me(Z.info.L.info)||Z.info.L.info.DR();if(Z.Z!==-1)return Z.Z;if(Z.L&&B8E(Z.L))return Z.Z=B8E(Z.L),Z.Z;if(g.Me(Z.info.L.info)){var I=g.j1(Z);for(var d=Z.info.L.L,Y=NaN,T=NaN,f=0;Tm(I,f);){var P=iI(I,f);P.type===1936286840?T=P.data.getUint32(P.dataOffset+8):P.type===1836476516?T=g.fz(P):P.type===1952867444&&isNaN(Y)&&(Y=g.PM(P));f=Qa(P.type)?f+8:f+P.size}!T&&d&&(T=OE(d));I=Y/T}else I=new Kt(g.j1(Z)),d=Z.B?I:new Kt(new DataView(Z.info.L.L.buffer)),Y=a7(d),d=I.pos,I.pos=0,WM(I)?e1(I, 231)?(Y=BM(I)*Y/1E9,I.pos=d,I=Y):(I.pos=d,I=NaN):(I.pos=d,I=NaN);Z.Z=I||Z.info.B;return Z.Z}; N8O=function(Z,I,d,Y,T,f,P){if(Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")if(P=g.y(Z.renderingContent,Va))if(P=g.y(P.sidePanel,wFO)){var O={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,r4:"core"};I=NQ(Z,I,d);Z=I instanceof C?I:Object.assign({},O,{renderingContent:Z.renderingContent,h5:new Map([["impression",P.impressionPings||[]],["resume",P.resumePings||[]]])},I,{Tb:Fo(Y,T)(O),clientMetadata:new D0([new Xj(sE(f))]),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData})}else Z= new C("DismissablePanelTextPortraitImageRenderer is missing");else Z=new C("SqueezebackPlayerSidePanelRenderer is missing");else Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.y(Z.renderingContent,V6D)?(P={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,r4:"core"},I=NQ(Z,I,d),Z=I instanceof C?I:Object.assign({},P,{renderingContent:Z.renderingContent,h5:new Map},I,{Tb:Fo(Y,T)(P),clientMetadata:new D0([new Xj(sE(f))]),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData})): Z=new C("CounterfactualRenderer is missing"):Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?Z=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?Z=new C("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"?g.y(Z.renderingContent,nz)?(f={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType, r4:"core"},I=NQ(Z,I,d),Z=I instanceof C?I:P?Object.assign({},f,{renderingContent:Z.renderingContent,h5:new Map},I,{Tb:Fo(Y,T)(f),clientMetadata:new D0([new hS(P)]),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData}):new C("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):Z=new C("DisplayUnderlayTextGridCardsLayoutViewModel is missing"):Z.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.y(Z.renderingContent,m3)?(f= {layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,r4:"core"},I=NQ(Z,I,d),Z=I instanceof C?I:Object.assign({},f,{renderingContent:Z.renderingContent,h5:new Map([])},I,{Tb:Fo(Y,T)(f),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new D0([])})):Z=new C("AdsEngagementPanelSectionListViewModel is missing"):Z=new C("LayoutType ["+Z.adLayoutMetadata.layoutType+"] is invalid for PlayerUnderlaySlot");return Z}; mKa=function(Z,I){Z.fflags=qQ(Z.fflags,I.fflags);var d=I.iv_invideo_url;d&&(Z.Tm=S1(d));Z.SG=U2(Z.SG,I.iv_ads_only);if(d=I.cta_conversion_urls)Z.C8m=d;Z.isPharma=U2(Z.isPharma,I.is_pharma);Z.author=qQ(Z.author,I.author);Z.kF=FS9(I.ttsurl)||Z.kF;Z.kM=U2(Z.kM,I.cc_asr);Z.b5=qQ(Z.b5,I.channel_path);if(d=I.profile_picture)Z.profilePicture=qQ(Z.profilePicture,d);Z.videoCountText=qQ(Z.videoCountText,I.video_count_text);Z.autonavState=AS(Z.autonavState,I.autonav_state,sj7);Z.clientPlaybackNonce=qQ(Z.clientPlaybackNonce, I.cpn);Z.subscribed=U2(Z.subscribed,I.subscribed);Z.rawViewCount=DJ(Z.rawViewCount,I.view_count);Z.shortViewCount=qQ(Z.shortViewCount,I.short_view_count_text);Z.publishedTimeText=qQ(Z.publishedTimeText||"",I.publishedTimeText);Z.lengthText=qQ(Z.lengthText||"",I.lengthText);Z.Tr=qQ(Z.Tr||"",I.Tr);Z.m1=qQ(Z.m1||"",I.m1);Z.title=qQ(Z.title,I.title);Z.subtitle=qQ(Z.subtitle,I.subtitle);Z.expandedTitle=qQ(Z.expandedTitle,I.expanded_title);Z.expandedSubtitle=qQ(Z.expandedSubtitle,I.expanded_subtitle);Z.ypcPreview= qQ(Z.ypcPreview,I.ypc_preview);Z.xp=qQ(Z.xp,I.ypc_origin);Z.v3=U2(Z.v3,I.ypc_is_premiere_trailer);Z.BK=qQ(Z.BK,I.ypc_clickwrap_message);Z.paygated=U2(Z.paygated,I.paygated);Z.x_=U2(Z.x_,I.requires_purchase);Z.showShareButton=!U2(!Z.showShareButton,I.ss);Z.du=U2(Z.du,I.showwatchlater);Z.K0=U2(Z.K0,I.shownotifybutton);Z.X1=U2(Z.X1,I.copy_share);if(d=I.el)Z.eventLabel=d;if(d=I.keywords)Z.keywords=nHL(d.split(","));if(d=I.rvs)Z.suggestions=JS(d).map(function(Y){return Y.playlist||Y.list||Y.api?new R7(Z.nS, Y):new Lz(Z.nS,Y)}); Z.contentCheckOk=U2(Z.contentCheckOk,I.cco);Z.racyCheckOk=U2(Z.racyCheckOk,I.rco);Z.isLivingRoomDeeplink=U2(Z.isLivingRoomDeeplink,I.is_living_room_deeplink);Z.oauthToken=qQ(Z.oauthToken,I.oauth_token);Z.M8=qQ(Z.M8,I.kpt);Z.visitorData=qQ(Z.visitorData,I.visitor_data);if(d=I.session_data)Z.sessionData=UE(d,"&");Z.mO=qQ(Z.mO,I.endscreen_ad_tracking_data);Z.R2=U2(Z.R2,I.wait_for_vast_info_cards_xml);Z.FR=U2(Z.FR,I.suppress_creator_endscreen);Z.mR=U2(Z.mR,I.is_trueview_action);Z.eR=qQ(Z.eR,I.tracking_list); hLO(Z,I)}; qwl=function(Z,I){Z.S.getPlayerStateObject().isCued()||I?I&&(Z.fS.hide(),Z.j7.hide(),Z.L&&Z.L.UU(!1),Z.j&&Z.j.UU(!1),Z.B&&Z.B.UU(!1),Z.S.Kp(Z.gK())):I||(Z.fS.show(),Z.j7.show(),Z.L&&Z.L.UU(!0),Z.j&&Z.j.UU(!0),Z.B&&Z.B.UU(!0),Z.MK())}; Ab7=function(Z){Z=Z===void 0?function(){return{}}:Z; ya.d_="av-js";vM.L=.01;Swn([function(I){var d=GU(),Y={};Y=(Y.bin=d.D,Y.type="error",Y);d=lI(d.zv);if(!uI.Z){var T=uI,f=JB.document,P=Gm>=0?vG()-Gm:-1,O=vG();T.L.GU==-1&&(P=O);var a=zU(),W=GU(),e=lI(W.zv),B=Dk();try{if(B.length>0){var w=a.L;w&&(e.bs=[Zu(w),w.getHeight()]);var V=a.B;V&&(e.ps=[V.width,V.height]);JB.screen&&(e.scs=[JB.screen.width,JB.screen.height])}else e.url=encodeURIComponent(JB.location.href.substring(0,512)),f.referrer&&(e.referrer=encodeURIComponent(f.referrer.substring(0,512))); e.tt=P;e.pt=Gm;e.bin=W.D;JB.google_osd_load_pub_page_exp!==void 0&&(e.olpp=JB.google_osd_load_pub_page_exp);e.deb=[1,T.L.Wx,T.L.Sk,T.L.F9,T.L.GU,0,T.D.D,T.L.zZ,T.L.S_,T.L.Qj,T.L.pEn,-1].join(";");e.tvt=qjn(T,O);a.D&&(e.inapp=1);if(JB!==null&&JB!=JB.top){B.length>0&&(e.iframe_loc=encodeURIComponent(JB.location.href.substring(0,512)));var N=a.V;e.is=[Zu(N),N.getHeight()]}}catch(q){e.error=1}uI.Z=e}w=g.zm(uI.Z);V=GU().L;Hg(V.Z,"prf")==1?(N=new nw,T=V.L,f=0,T.L>-1&&(f=T.Z.L.now()-T.L),N=kO(N,1,c8(T.N+ f),0),T=V.L,N=kO(N,5,Ml(T.L>-1?T.D+1:T.D),0),N=kO(N,2,Xo(V.D.L.Z()),"0"),N=kO(N,3,Xo(V.D.L.D()),"0"),V=kO(N,4,Xo(V.D.L.L()),"0"),N={},V=(N.pf=g.Bg(V.Z()),N)):V={};g.rt(w,V);g.rt(I,Y,d,w,Z())}])}; tS=function(Z){this.value=Z}; DKu=function(){var Z=[],I=GU();Z.push(lz($O));Hg(I.zv,"mvp_lv")&&Z.push(lz(pz));I=[new xO,new Kz];I.push(new Cz(Z));I.push(new e6(JB));return I}; bI=function(Z,I){I=EE(I);return I===0?0:EE(Z)/I}; g.gR=function(Z){this.L=this.X=this.B="";this.Z=null;this.j=this.D="";this.V=!1;var I;Z instanceof g.gR?(this.V=Z.V,g.MQ(this,Z.B),this.X=Z.X,g.rR(this,Z.L),g.Zl(this,Z.Z),this.D=Z.D,I5(this,Z.N.clone()),this.j=Z.j):Z&&(I=g.gB(String(Z)))?(this.V=!1,g.MQ(this,I[1]||"",!0),this.X=Tn(I[2]||""),g.rR(this,I[3]||"",!0),g.Zl(this,I[4]),this.D=Tn(I[5]||"",!0),I5(this,I[6]||"",!0),this.j=Tn(I[7]||"")):(this.V=!1,this.N=new hN(null,this.V))}; OR=function(Z,I){var d,Y=(d=Z.Yl[I])==null?void 0:d.chapters;Y&&(JbL(Z,Y),Z.api.getVideoData().Mj=Z.L,ksE(Z));var T;if((d=(T=Z.Yl[I])==null?void 0:T.markers)&&I!=="HEATSEEKER"){iB(Z);T=g.t(d);for(d=T.next();!d.done;d=T.next())if(Y=d.value,d=new YL,Y=g.y(Y,g.RLl)){var f=void 0;d.title=((f=Y.title)==null?void 0:f.simpleText)||"";f=void 0;d.timeRangeStartMillis=(f=Y.timeRangeStartMillis)!=null?f:NaN;var P=f=void 0;d.onActiveCommand=(P=(f=Y)==null?void 0:f.onActiveCommand)!=null?P:void 0;LSr(Z,d)}fa(Z, Z.V);T=Z.V;d=Z.hV;Y=[];for(f=0;f=P&&q<=e&&f.push(w)}a>0&&(Z.kS.style.height=a+"px");P=Z.N[Y];e=f;w=T;N=a;q=Y===0;q=q===void 0?!1:q;uSl(P,N);B=e;V=P.D;q=q===void 0?!1:q;var A=1E3/B.length,F=[];F.push({x:0,y:100});for(var J=0;J0&&(d=f[f.length-1])}g.PX(Z);O=[];I=g.t(I.heatMarkersDecorations||[]);for(T=I.next();!T.done;T=I.next())if(T=g.y(T.value,zLO))a=T.label,Y=d=W=void 0,O.push({visibleTimeRangeStartMillis:(W=T.visibleTimeRangeStartMillis)!=null?W:-1,visibleTimeRangeEndMillis:(d=T.visibleTimeRangeEndMillis)!=null?d:-1,decorationTimeMillis:(Y=T.decorationTimeMillis)!=null?Y:NaN,label:a?g.Q1(a):""});Z.heatMarkersDecorations=O}}; g.C2=function(Z){var I=kCL;if(PE(Z,"display")!="none")return I(Z);var d=Z.style,Y=d.display,T=d.visibility,f=d.position;d.visibility="hidden";d.position="absolute";d.display="inline";Z=I(Z);d.display=Y;d.position=f;d.visibility=T;return Z}; Swn=function(Z){ya.CV=function(I){g.KM(Z,function(d){d(I)})}}; g.wv=function(Z,I,d,Y){function T(W){try{if((W===void 0?0:W)&&Y.retry&&!Y.networklessOptions.bypassNetworkless)f.method="POST",Y.networklessOptions.writeThenSend?a5().writeThenSend(a,f):a5().sendAndWrite(a,f);else if(Y.compress){var e=!Y.networklessOptions.writeThenSend;if(f.postBody){var B=f.postBody;typeof B!=="string"&&(B=JSON.stringify(f.postBody));WX(a,B,f,g.kk,e)}else WX(a,JSON.stringify(f.postParams),f,jk,e)}else g.x9("web_all_payloads_via_jspb")?g.kk(a,f):jk(a,f)}catch(w){if(w.name==="InvalidAccessError")$6(Error("An extension is blocking network request.")); else throw w;}} !g.rh("VISITOR_DATA")&&I!=="visitor_id"&&Math.random()<.01&&$6(new g.Wj("Missing VISITOR_DATA when sending innertube request.",I,d,Y));if(!Z.isReady())throw Z=new g.Wj("innertube xhrclient not ready",I,d,Y),g.eW(Z),Z;var f={headers:Y.headers||{},method:"POST",postParams:d,postBody:Y.postBody,postBodyFormat:Y.postBodyFormat||"JSON",onTimeout:function(){Y.onTimeout()}, onFetchTimeout:Y.onTimeout,onSuccess:function(W,e){if(Y.onSuccess)Y.onSuccess(e)}, onFetchSuccess:function(W){if(Y.onSuccess)Y.onSuccess(W)}, onProgress:function(W){if(Y.onProgress)Y.onProgress(W)}, onError:function(W,e){if(Y.onError)Y.onError(e)}, onFetchError:function(W){if(Y.onError)Y.onError(W)}, timeout:Y.timeout,withCredentials:!0,compress:Y.compress};f.headers["Content-Type"]||(f.headers["Content-Type"]="application/json");d="";var P=Z.config_.Oe;P&&(d=P);P=Z.config_.T4||!1;var O=XFl(P,d,Y);Object.assign(f.headers,O);f.headers.Authorization&&!d&&P&&(f.headers["x-origin"]=window.location.origin);var a=BX(""+d+("/youtubei/"+Z.config_.innertubeApiVersion+"/"+I),{alt:"json"});g.gZ("ytNetworklessLoggingInitializationOptions")&&t6d.isNwlInitialized?$K9().then(function(W){T(W)}):T(!1)}; V1=function(Z,I){var d=Z.S.getVideoData(I);return d?Z.iC(d,I||Z.S.getPresentingPlayerType(!0)):null}; mz=function(Z,I){if(!Z.OZ())if(g.b(I.state,2)||g.b(I.state,512)){if(Z.j="paused",g.Nw(I,2)||g.Nw(I,512))g.Nw(I,2)&&(Z.L.previouslyEnded=!0),Z.Z&&(FE(Z),u$(Z).send(),Z.N=NaN)}else if(g.b(I.state,8)){Z.j="playing";var d=Z.Z&&isNaN(Z.B)?sR(Z):NaN;if(!isNaN(d)&&(na(I,64)<0||na(I,512)<0)){var Y=hR(Z,!1);Y.V=d;Y.send()}g.Nw(I,16)&&I.state.seekSource===58&&(Z.L.previouslyEnded=!0)}else Z.j="paused"}; pFi=function(Z){var I="true".toString(),d=[new qw];if(d.length===0)throw Error("");if(d.map(function(Y){if(Y instanceof qw)Y=Y.L;else throw Error("");return Y}).every(function(Y){return"data-loaded".indexOf(Y)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); Z.setAttribute("data-loaded",I)}; SW=function(){return ET("iPhone")&&!ET("iPod")&&!ET("iPad")}; EHn=function(Z){var I=!1;I=I===void 0?!1:I;if(xKr){if(I&&(KSr?!Z.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(Z)))throw Error("Found an unpaired surrogate");Z=(C9L||(C9L=new TextEncoder)).encode(Z)}else{for(var d=0,Y=new Uint8Array(3*Z.length),T=0;T>6|192;else{if(f>=55296&&f<=57343){if(f<=56319&&T=56320&&P<=57343){f=(f-55296)*1024+ P-56320+65536;Y[d++]=f>>18|240;Y[d++]=f>>12&63|128;Y[d++]=f>>6&63|128;Y[d++]=f&63|128;continue}else T--}if(I)throw Error("Found an unpaired surrogate");f=65533}Y[d++]=f>>12|224;Y[d++]=f>>6&63|128}Y[d++]=f&63|128}}Z=d===Y.length?Y:Y.subarray(0,d)}return Z}; g.l8=function(){return g.iN.ytPubsubPubsubInstance}; AR=function(Z,I,d){return typeof Z==="string"?(Z=encodeURI(Z).replace(I,b7E),d&&(Z=Z.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),Z):null}; H7u=function(Z){if(Z.Z&&typeof Dl!="undefined")if(Z.In&&g.b0(Z)==4)setTimeout(Z.fd.bind(Z),0);else if(Z.dispatchEvent("readystatechange"),Z.isComplete()){Z.getStatus();Z.Z=!1;try{if(JR(Z))Z.dispatchEvent("complete"),Z.dispatchEvent("success");else{Z.D=6;try{var I=g.b0(Z)>2?Z.L.statusText:""}catch(d){I=""}Z.N=I+" ["+Z.getStatus()+"]";sl9(Z)}}finally{R5(Z)}}}; MD=function(Z,I){I=Math.max(Math.max(1,Math.ceil(Z.policy.N/wE(Z))),I);return Math.min(Math.min(8,Math.floor(Z.policy.In/wE(Z))),I)}; B8E=function(Z){return Number(Z.data["Start-Media-Time-Us"])/1E6||0}; UR=function(){this.isInitialized=!1;this.L=this.D=null;var Z={};this.V=(Z.start=this.dc,Z.firstquartile=this.Hc,Z.midpoint=this.sb,Z.thirdquartile=this.JO,Z.complete=this.qp,Z.error=this.Fg,Z.pause=this.bq,Z.resume=this.zK,Z.skip=this.Rq,Z.viewable_impression=this.KZ,Z.mute=this.xw,Z.unmute=this.xw,Z.fullscreen=this.lR,Z.exitfullscreen=this.Xg,Z.fully_viewable_audible_half_duration_impression=this.KZ,Z.measurable_impression=this.KZ,Z.abandon=this.bq,Z.engagedview=this.KZ,Z.impression=this.KZ,Z.creativeview= this.KZ,Z.progress=this.xw,Z.custom_metric_viewable=this.KZ,Z.bufferstart=this.bq,Z.bufferfinish=this.zK,Z.audio_measurable=this.KZ,Z.audio_audible=this.KZ,Z);Z={};this.X=(Z.overlay_resize=this.Eb,Z.abandon=this.Wi,Z.close=this.Wi,Z.collapse=this.Wi,Z.overlay_unmeasurable_impression=function(I){return ZM(I,"overlay_unmeasurable_impression",La())},Z.overlay_viewable_immediate_impression=function(I){return ZM(I,"overlay_viewable_immediate_impression",La())},Z.overlay_unviewable_impression=function(I){return ZM(I, "overlay_unviewable_impression",La())},Z.overlay_viewable_end_of_session_impression=function(I){return ZM(I,"overlay_viewable_end_of_session_impression",La())},Z); GU().D=3;cbO(this);this.Z=null}; g.wm=function(){return g.y1("cobalt")}; gHl=function(Z,I){Z!=null?MN(Z,I):Z=void 0;return Z}; g.vX=function(Z){return JG(document,Z)}; bU$=function(Z,I){return M6$(Z.Ms.get())?new $o(Z.L,I,["normal","error","skipped"]):new $o(Z.L,I,["normal"])}; rbE=function(Z){var I=[];if(!Z||!Z.thumbnails)return I;Z=g.t(Z.thumbnails);for(var d=Z.next();!d.done;d=Z.next())d=d.value,d.url&&(!d.width||d.width<=0||!d.height||d.height<=0||g.lB(d.url)&&I.push({src:d.url||"",sizes:d.width+"x"+d.height,type:"image/jpeg"}));return I}; mTd=function(Z){Z&&Z!=="web"&&ZcD.includes(Z)}; zn=function(Z){uB&&Z&&Gn(Z)}; g.Zc=function(Z,I){if(!Zk)return t8.get(""+Z,I)}; kx=function(Z){return dB(Z.clientMetadata,"metadata_type_invideo_overlay_ad_renderer")}; XE=function(Z,I){Vdl(I);this.L=Z;if(Z!=null&&Z.length===0)throw Error("ByteString should be constructed with non-empty values");}; If$=function(Z,I){for(var d=Z.element.getElementsByTagName("a"),Y=0;Y0&&(P.playerWidthPixels=Math.round(A));if(I=I.height)P.playerHeightPixels= Math.round(I);d!==0&&(P.vis=d);if(d=f.widgetReferrer)P.widgetReferrer=d.substring(0,128);g.Dh(f)&&P&&(P.ancestorOrigins=f.ancestorOrigins);Z.defaultActiveSourceVideoId&&(P.compositeVideoContext={defaultActiveSourceVideoId:Z.defaultActiveSourceVideoId});if(f=f.getWebPlayerContextConfig())P.encryptedHostFlags=f.encryptedHostFlags;Y={videoId:Y,context:T,playbackContext:{contentPlaybackContext:P}};if(Z.ir){var J;Y.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(J=Z.ir)==null?void 0:J.reloadPlaybackParams}}Z.contentCheckOk&& (Y.contentCheckOk=!0);if(J=Z.clientPlaybackNonce)Y.cpn=J;if(J=Z.playerParams)Y.params=J;if(J=Z.playlistId)Y.playlistId=J;Z.racyCheckOk&&(Y.racyCheckOk=!0);J=Z.C();T=J.embedConfig;Z.JT&&J.Y("embeds_enable_per_video_embed_config")?Y.serializedThirdPartyEmbedConfig=Z.JT:T&&(Y.serializedThirdPartyEmbedConfig=T);Y.captionParams={};T=g.$x().K_(65);Z.deviceCaptionsOn!=null?Y.captionParams.deviceCaptionsOn=Z.deviceCaptionsOn:g.qN(J)&&(Y.captionParams.deviceCaptionsOn=T!=null?!T:!1);Z.y9&&(Y.captionParams.deviceCaptionsLangPref= Z.y9);Z.MR.length?Y.captionParams.viewerSelectedCaptionLangs=Z.MR:g.qN(J)&&(T=g.pa(),T==null?0:T.length)&&(Y.captionParams.viewerSelectedCaptionLangs=T);T=Z.fetchType==="onesie"&&Z.Y("html5_onesie_attach_po_token");P=Z.fetchType!=="onesie"&&Z.Y("html5_non_onesie_attach_po_token");if(T||P)T=Z.C(),T.wV&&(Y.serviceIntegrityDimensions={},Y.serviceIntegrityDimensions.poToken=T.wV);J.Y("fetch_att_independently")&&(Y.attestationRequest={omitBotguardData:!0});Y.playbackContext||(Y.playbackContext={});Y.playbackContext.devicePlaybackCapabilities= Qzr(Z);Y.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&Z.D1("noVp9",{});return Y}; g.xx=function(Z,I){g.k.call(this,{K:"div",G:[{K:"div",T:"ytp-tooltip-text-wrapper",J:{"aria-hidden":"{{ariaHidden}}"},G:[{K:"div",T:"ytp-tooltip-edu",G:[{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",J:{d:"M14.1 36.75 12 34.65 24 22.65 36 34.65 33.9 36.75 24 26.85ZM14.1 24.1 12 22 24 10 36 22 33.9 24.1 24 14.2Z"}}]},{K:"span",Z1:"{{eduText}}"}]},{K:"div",T:"ytp-tooltip-image"},{K:"div",T:"ytp-tooltip-title",G:[{K:"span",Z1:"{{title}}"},{K:"div",T:"ytp-tooltip-keyboard-shortcut", Z1:"{{keyBoardShortcutTitle}}"}]},{K:"div",T:"ytp-tooltip-bottom-text",G:[{K:"span",T:"ytp-tooltip-text",Z1:"{{text}}"},{K:"div",T:"ytp-tooltip-keyboard-shortcut",Z1:"{{keyBoardShortcut}}"}]},{K:"div",T:"ytp-tooltip-progress-bar-pill",G:[{K:"div",T:"ytp-tooltip-progress-bar-pill-time-stamp",Z1:"{{pillTimeStamp}}"},{K:"div",T:"ytp-tooltip-progress-bar-pill-title",Z1:"{{pillTitle}}"}]}]},{K:"div",T:"ytp-tooltip-bg",G:[{K:"div",T:"ytp-tooltip-duration",Z1:"{{duration}}"}]}]});var d=this;this.api=Z;this.j7= I;this.X=function(Y){(Y=Y.relatedTarget)&&g.H7(d.L,Y)||d.So()}; this.B=function(Y){d.type===3&&d.So();(Y=Y.currentTarget)&&Y.nodeType===1&&!d.type&&(Y.removeEventListener("mouseover",d.B),Y.addEventListener("mouseout",d.X),Y.removeEventListener("focus",d.B),Y.addEventListener("blur",d.X),M27(d,Y,2))}; this.LS=function(){d.So()}; this.type=this.L=null;this.V=!1;this.D=null;this.Z="";this.j=!0;this.scale=1;this.env=this.api.C();this.Bj=this.env.D;this.wrapper=this.KS("ytp-tooltip-text-wrapper");this.bg=this.KS("ytp-tooltip-bg");this.fS=this.KS("ytp-tooltip-edu");this.image=this.KS("ytp-tooltip-image");this.text=this.KS("ytp-tooltip-text");this.bottomText=this.KS("ytp-tooltip-bottom-text");this.title=this.KS("ytp-tooltip-title");this.fade=new g.nt(this,100);this.N=NaN;this.V2=this.api.cj().getPlayerSize().width;this.kS=new g.uX(this.jn4, 250,this);this.Ns=new g.uX(this.So,5E3,this);g.z(this,this.fade);g.z(this,this.kS);g.z(this,this.Ns);AO&&(Z=this.KS("ytp-tooltip-text"),Z.setAttribute("role","text"),Z.setAttribute("aria-live","polite"))}; Ws7=function(Z,I){I=I===void 0?Z.C().schedule:I;Z.On("vir");Z.On("ps_s");c6("vir",void 0,"video_to_ad");I=afl(Z,I);I.then(function(){Z.On("virc");c6("virc",void 0,"video_to_ad");Z.On("ps_r");c6("ps_r",void 0,"video_to_ad")},function(){Z.On("virc"); c6("virc",void 0,"video_to_ad")}); return I}; g.O4=function(Z,I,d){return Math.min(Math.max(Z,I),d)}; oHO=function(Z){var I={};var d=g.QY()-Z.B;I=(I.ptlt=d,I);(d=Z.D)&&(I.pnk=d);(d=Z.Z)&&(I.pnc=d);(d=Z.N)&&(I.pnmm=d);(Z=Z.L)&&(I.pns=Z);return I}; Ka=function(Z,I,d,Y){d=d===void 0?!0:d;Y=Y===void 0?function(){return!0}:Y; return function(T){var f=T[Z];if(Array.isArray(f)&&Y(T))return eor(f,I,d)}}; bB=function(Z,I,d,Y,T){Y=Y===void 0?Infinity:Y;T=T===void 0?0:T;var f=Z.l5();d=d||f.getPlayerType();(f=Ca(Z,d,I,!0))||(f=ER(Z,d,I,!0));I=Z.vj();d===2&&I&&(d=f.getVideoData(),I.ob(d.clientPlaybackNonce,d.Vf||"",d.breakType||0,d.u8,d.videoId||""));Z.DC(f,Y,0,T)}; BLO=function(Z,I){if(I>=0)HX(Z,I);else{for(var d=0;d<9;d++)Z.L.push(I&127|128),I>>=7;Z.L.push(1)}}; wRa=function(Z,I){var d=I.filter(function(T){return cX(Z,T)===10}),Y=I.filter(function(T){return cX(Z,T)!==10}); return Z.N.gJ1?function(){var T=g.vj.apply(0,arguments);return g.h(function(f){if(f.L==1)return g.m(f,Z.no4.apply(Z,[d].concat(g.c(T))),2);Z.lj.apply(Z,[Y].concat(g.c(T)));g.v6(f)})}:function(){var T=g.vj.apply(0,arguments); Z.xyn.apply(Z,[d].concat(g.c(T)));Z.lj.apply(Z,[Y].concat(g.c(T)))}}; gv=function(Z,I,d,Y,T,f){f=f===void 0?function(){}:f; kw.call(this,Z,{K:"div",T:"ytp-ad-survey-question",G:[{K:"div",zm:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{K:"div",zm:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{K:"div",zm:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{K:"div",T:"ytp-ad-survey-question-background"}]},T,I,d,Y);this.fS=f;this.N=null;this.D=[];this.L=null;this.X=this.api.C().experiments.CS("a11y_h5_associate_survey_question");this.question=this.KS("ytp-ad-survey-question"); this.mJ=this.KS("ytp-ad-survey-question-background");this.questionText=this.KS("ytp-ad-survey-question-text");this.answers=this.KS("ytp-ad-survey-answers");this.playerOverlay=this.KS("ytp-ad-survey-question-player-overlay");this.Z=Date.now()}; g.Mw=function(Z){return ed(Z)==="WEB_EMBEDDED_PLAYER"}; rv=function(Z,I){for(var d=0;d>>0;FS=I;n7=(Z-I)/4294967296>>>0}; UW=function(Z,I){return gtu(Z.D,I===void 0?!0:I)}; oO=function(Z,I){if(!I.L.L)return Z.B?new mY(0,360,!1,"b"):nb;for(var d=!1,Y=!1,T=g.t(I.L.videoInfos),f=T.next();!f.done;f=T.next())IO(f.value)?d=!0:Y=!0;d=d&&Y;Y=0;T=g.Q4(Z.U.experiments,"html5_performance_cap_floor");T=Z.U.D?240:T;I=g.t(I.L.videoInfos);for(f=I.next();!f.done;f=I.next()){var P=f.value;if(!d||!IO(P))if(f=d1(P.Pj,P.video.fps,Z.Z),P=P.video.qualityOrdinal,Math.max(f,T)>=P){Y=P;break}}return new mY(0,Y,!1,"b")}; Yc=function(Z,I){Pv.call(this,Z,2,I)}; jS=function(){var Z=window;this.events=[];this.D=Z||g.iN;var I=null;Z&&(Z.google_js_reporting_queue=Z.google_js_reporting_queue||[],this.events=Z.google_js_reporting_queue,I=Z.google_measure_js_timing);this.L=es()||(I!=null?I:Math.random()<1)}; Tq=function(Z){g.aL(Z.N,!Z.L)}; fr=function(Z,I){Z.msg=is[I];return I}; nfL=function(Z,I){var d;if((d=Z.questions)==null||!d.length||!Z.playbackCommands||(I===void 0||!I)&&Z.questions.length!==1)return!1;Z=g.t(Z.questions);for(I=Z.next();!I.done;I=Z.next()){I=I.value;var Y=d=void 0,T=((d=g.y(I,B6))==null?void 0:d.surveyAdQuestionCommon)||((Y=g.y(I,eJ))==null?void 0:Y.surveyAdQuestionCommon);if(!sz7(T))return!1}return!0}; PT=function(Z){this.HT=Z;this.D=!1;this.L=[]}; hoB=function(Z,I){var d=Z[I];d!==void 0&&d>0&&(Z[I]=Math.floor(d*1E3))}; mV7=function(){if(document.visibilityState)var Z="visibilitychange";else{if(!document[Qx+"VisibilityState"])return"";Z=Qx+"visibilitychange"}return Z}; qBi=function(Z){return function(I){for(var d=0;dd.time?I:d},Z[0])}; Ro7=function(Z){var I,d;return g.h(function(Y){if(Y.L==1)return g.m(Y,zB(Z),2);I=Y.D;d=(0,g.o8)()-2592E6;return g.m(Y,g.Xn(I,["LogsRequestsStore"],{mode:"readwrite",OU:!0},function(T){return g.BT(T.objectStore("LogsRequestsStore"),{},function(f){if(f.getValue().timestamp<=d)return f.delete().then(function(){return g.w1(f)})})}),0)})}; NQ=function(Z,I,d){for(var Y=[],T=g.t(Z.layoutExitNormalTriggers||[]),f=T.next();!f.done;f=T.next()){f=Np(f.value,I,d);if(f instanceof C)return f;Y.push(f)}T=[];f=g.t(Z.layoutExitSkipTriggers||[]);for(var P=f.next();!P.done;P=f.next()){P=Np(P.value,I,d);if(P instanceof C)return P;T.push(P)}f=[];P=g.t(Z.layoutExitMuteTriggers||[]);for(var O=P.next();!O.done;O=P.next()){O=Np(O.value,I,d);if(O instanceof C)return O;f.push(O)}P=[];Z=g.t(Z.layoutExitUserInputSubmittedTriggers||[]);for(O=Z.next();!O.done;O= Z.next()){O=Np(O.value,I,d);if(O instanceof C)return O;P.push(O)}return{layoutExitNormalTriggers:Y,layoutExitSkipTriggers:T,layoutExitMuteTriggers:f,layoutExitUserInputSubmittedTriggers:P,layoutExitUserCancelledTriggers:[]}}; Lsn=function(Z,I){var d=0,Y=!1,T=Z.L.length,f=Z.Z.L*1E3;f===0&&(f=Z.api.getProgressState().seekableEnd*1E3);if(f>0&&Z.j>0){for(var P=Z.j-Vx(Z)*Z.mJ,O=Z.SK===0?3:P*Z.SK,a=g.t(Z.L),W=a.next();!W.done;W=a.next())W.value.width=0;for(;d1);W=(f===0?0:a/f*P)+Z.L[d].width;if(W>O)Z.L[d].width=W;else{Z.L[d].width=0;var e=Z,B=d,w=e.L[B-1];w!==void 0&&w.width>0? w.width+=W:BZ.SK&&(Z.SK=a/f),Y=!0)}d++}}return Y}; UVd=function(Z){switch(Z.size){case "AD_AVATAR_SIZE_XXS":return 16;case "AD_AVATAR_SIZE_XS":return 24;case "AD_AVATAR_SIZE_S":return 32;case "AD_AVATAR_SIZE_M":return 36;case "AD_AVATAR_SIZE_L":return 56;case "AD_AVATAR_SIZE_XL":return 72;default:return 36}}; yDl=function(Z){for(var I=g.t(Object.values(Z.B)),d=I.next();!d.done;d=I.next())d.value.dispose();Z.B={};Z.D=null;Z.j=null;F7(Z)}; sf=function(){var Z=null;try{Z=g.iN.localStorage||null}catch(I){}kS.call(this,Z)}; nr=function(Z){var I=new vfl,d;I.Z=((d=lf9(Z).cc)==null?void 0:d.toString())||"-";I.playbackRate=Z.t5.getPlaybackRate();d=Z.t5.getVisibilityState();d!==0&&(I.visibilityState=d);Z.U.d4&&(I.D=1);I.N=Z.videoData.b1;I.compositeLiveStatusToken=Z.videoData.compositeLiveStatusToken;I.heartbeatLoggingToken=Z.videoData.heartbeatLoggingToken;d=Z.t5.getAudioTrack();d.uo&&d.uo.id&&d.uo.id!=="und"&&(I.audioId=d.uo.id);I.connectionType=uql(Z);I.volume=Z.t5.getVolume();I.muted=Z.t5.isMuted();I.clipId=Z.t5.Ad()|| "-";I.L=Z.videoData.Hp||"-";return I}; Goa=function(Z,I){if(I>=Z.L.length)return Z.j;for(var d=0,Y=0;Y1?Math.ceil(T*I):Math.floor(T*I))}Z.skip(1);d=Js(Z)<<16|RO(Z);if(d&256){Y=d&1;T=d&4;var f=d&512,P=d&1024,O=d&2048;d=Bt(Z);Y&&Z.skip(4);T&&Z.skip(4);Y=(f?4:0)+(P?4:0)+(O?4:0);for(T=0;T1?Math.ceil(P*I):Math.floor(P*I)),Z.skip(Y)}}}; Lr=function(Z,I){return Number(Z.data[I])||0}; pRl=function(Z){GU();switch(Uf(Z)){case "b":return"ytads.bulleit.triggerExternalActivityEvent";case "n":return"ima.bridge.triggerExternalActivityEvent";case "h":case "m":case "ml":return"ima.common.triggerExternalActivityEvent"}return null}; Ai=function(Z){var I=":"+(t3.getInstance().L++).toString(36);return Z+I}; yx=function(Z,I){return I.Za?I.Za:I.Ph?SK(Z.logger,function(){return I.Za=BP(I.Ph)},"c"):[]}; b7E=function(Z){Z=Z.charCodeAt(0);return"%"+(Z>>4&15).toString(16)+(Z&15).toString(16)}; vT=function(Z){return Z.keySystem==="com.microsoft.playready"}; g.GR=function(Z,I){g.ls.call(this,Z,I);yBu(this);us(this,"addEventListener",this.RR);us(this,"removeEventListener",this.hXZ);us(this,"cueVideoByPlayerVars",this.wJ);us(this,"loadVideoByPlayerVars",this.a17);us(this,"preloadVideoByPlayerVars",this.rVZ);us(this,"loadVideoById",this.ZP);us(this,"loadVideoByUrl",this.g$);us(this,"playVideo",this.v_);us(this,"loadPlaylist",this.loadPlaylist);us(this,"nextVideo",this.nextVideo);us(this,"previousVideo",this.previousVideo);us(this,"playVideoAt",this.playVideoAt); us(this,"getVideoData",this.He);us(this,"seekBy",this.zgS);us(this,"seekTo",this.Yf5);us(this,"showControls",this.showControls);us(this,"hideControls",this.hideControls);us(this,"cancelPlayback",this.cancelPlayback);us(this,"getProgressState",this.getProgressState);us(this,"isInline",this.isInline);us(this,"setInline",this.setInline);us(this,"setLoopVideo",this.setLoopVideo);us(this,"getLoopVideo",this.getLoopVideo);us(this,"getVideoContentRect",this.getVideoContentRect);us(this,"getVideoStats",this.tO); us(this,"getCurrentTime",this.oY);us(this,"getDuration",this.Kn);us(this,"getPlayerState",this.PC);us(this,"getVideoLoadedFraction",this.hX);us(this,"mute",this.hc);us(this,"unMute",this.Sv);us(this,"setVolume",this.cq);us(this,"loadModule",this.loadModule);us(this,"unloadModule",this.unloadModule);us(this,"getOption",this.VM);us(this,"getOptions",this.getOptions);us(this,"setOption",this.setOption);us(this,"addCueRange",this.addCueRange);us(this,"getDebugText",this.getDebugText);us(this,"getStoryboardFormat", this.getStoryboardFormat);us(this,"toggleFullscreen",this.toggleFullscreen);us(this,"isFullscreen",this.isFullscreen);us(this,"getPlayerSize",this.getPlayerSize);us(this,"toggleSubtitles",this.toggleSubtitles);us(this,"setCenterCrop",this.setCenterCrop);us(this,"setFauxFullscreen",this.setFauxFullscreen);us(this,"setSizeStyle",this.setSizeStyle);us(this,"handleGlobalKeyDown",this.handleGlobalKeyDown);us(this,"handleGlobalKeyUp",this.handleGlobalKeyUp);xVi(this)}; kc=function(Z){for(var I in Gq)Gq[I][0]==Z&&g.zq(I)}; fG=function(Z){var I=yF(Z.L,jq,1);I||(I=new jq,To(Z,I));Z=I;I=yF(Z,X7,11);I||(I=new X7,P6(Z,X7,11,I));return I}; KsB=function(Z){/[^a-zA-Z0-9;.!_-]/.test(Z)&&(Z=Z.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return Z}; ts=function(Z,I){if(Z.rf&&Z.YS!==void 0&&Z.i4!==void 0){var d=Math,Y=d.min,T=Z.Ns;var f=Z.rf;var P=Z.L;if(C_r(f,Z.YS))f=I;else{var O=0;f.TJ&&(O=.2);f=P+(f.Yo+O)*1E3}Z.Ns=Y.call(d,T,f);d=Math;Y=d.min;T=Z.mJ;f=Z.rf;P=Z.L;O=EfJ(f,Z.YS,Z.i4);O!==2&&(I=O?I:P+f.Yo*1E3,f.TJ&&(I+=f.Yo*1E3));Z.mJ=Y.call(d,T,I);Z.Ns<=Z.L?bc7(Z):(Z.Tm=Z.Ns,Z.UZ=!0)}}; Hcl=function(Z){if(Z==null)return Z;var I=typeof Z;if(I==="bigint")return String(oM(64,Z));if(Ze(Z)){if(I==="string")return dm(Z);if(I==="number")return Tl(Z)}}; $c=function(Z,I){g.k.call(this,{K:"button",zm:["ytp-button","ytp-cards-button"],J:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.Dh(Z.C()))},G:[{K:"span",T:"ytp-cards-button-icon-default",G:[{K:"div",T:"ytp-cards-button-icon",G:[Z.C().Y("player_new_info_card_format")?cDJ():{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"M18,8 C12.47,8 8,12.47 8,18 C8,23.52 12.47,28 18,28 C23.52,28 28,23.52 28,18 C28,12.47 23.52,8 18,8 L18,8 Z M17,16 L19,16 L19,24 L17,24 L17,16 Z M17,12 L19,12 L19,14 L17,14 L17,12 Z"}}]}]}, {K:"div",T:"ytp-cards-button-title",Z1:"Info"}]},{K:"span",T:"ytp-cards-button-icon-shopping",G:[{K:"div",T:"ytp-cards-button-icon",G:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",T:"ytp-svg-shadow",J:{d:"M 27.99,18 A 9.99,9.99 0 1 1 8.00,18 9.99,9.99 0 1 1 27.99,18 z"}},{K:"path",T:"ytp-svg-fill",J:{d:"M 18,8 C 12.47,8 8,12.47 8,18 8,23.52 12.47,28 18,28 23.52,28 28,23.52 28,18 28,12.47 23.52,8 18,8 z m -4.68,4 4.53,0 c .35,0 .70,.14 .93,.37 l 5.84,5.84 c .23,.23 .37,.58 .37,.93 0,.35 -0.13,.67 -0.37,.90 L 20.06,24.62 C 19.82,24.86 19.51,25 19.15,25 c -0.35,0 -0.70,-0.14 -0.93,-0.37 L 12.37,18.78 C 12.13,18.54 12,18.20 12,17.84 L 12,13.31 C 12,12.59 12.59,12 13.31,12 z m .96,1.31 c -0.53,0 -0.96,.42 -0.96,.96 0,.53 .42,.96 .96,.96 .53,0 .96,-0.42 .96,-0.96 0,-0.53 -0.42,-0.96 -0.96,-0.96 z", "fill-opacity":"1"}},{K:"path",T:"ytp-svg-shadow-fill",J:{d:"M 24.61,18.22 18.76,12.37 C 18.53,12.14 18.20,12 17.85,12 H 13.30 C 12.58,12 12,12.58 12,13.30 V 17.85 c 0,.35 .14,.68 .38,.92 l 5.84,5.85 c .23,.23 .55,.37 .91,.37 .35,0 .68,-0.14 .91,-0.38 L 24.61,20.06 C 24.85,19.83 25,19.50 25,19.15 25,18.79 24.85,18.46 24.61,18.22 z M 14.27,15.25 c -0.53,0 -0.97,-0.43 -0.97,-0.97 0,-0.53 .43,-0.97 .97,-0.97 .53,0 .97,.43 .97,.97 0,.53 -0.43,.97 -0.97,.97 z",fill:"#000","fill-opacity":"0.15"}}]}]},{K:"div", T:"ytp-cards-button-title",Z1:"Shopping"}]}]});this.S=Z;this.D=I;this.L=null;this.fade=new g.nt(this,250,!0,100);g.z(this,this.fade);g.zL(this.D,"ytp-show-cards-title",g.Dh(Z.C()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Y0(!0)}; gfO=function(Z){if(!Z.api.C().eK){var I=Z.api.getVideoData(),d=new g.pr("Subscribe",null,"Subscribed",null,!0,!1,I.vl,I.subscribed,"channel_avatar",null,Z.api,!0);Z.api.createServerVe(d.element,Z);var Y;Z.api.setTrackingParams(d.element,((Y=I.subscribeButtonRenderer)==null?void 0:Y.trackingParams)||null);Z.W(d.element,"click",function(){Z.api.logClick(d.element)}); Z.subscribeButton=d;g.z(Z,Z.subscribeButton);Z.subscribeButton.i5(Z.element)}}; Zga=function(Z){var I=new xc;I=Kr(I,1,Z.D);var d=Mqa(Z);I=W5r(I,d,rDO);d=[];for(var Y=[],T=g.t(Z.L.keys()),f=T.next();!f.done;f=T.next())Y.push(f.value.split(","));for(T=0;T 0?(Y.onesie="0",Z.handleError(new g.dj("html5.missingapi",Y)),!1):!0}; KOO=function(Z,I,d){for(var Y="",T=0;TZ.uy-262?Z.NC-(Z.uy-262):0,O=Z.window,a=Z.jt,W=Z.dw,e=Z.NC+258,B=O[Y+T-1],w=O[Y+T];Z.RF>=Z.d0&&(d>>=2);f>Z.dK&&(f=Z.dK);do{var V=I;if(O[V+T]===w&&O[V+T-1]===B&&O[V]===O[Y]&&O[++V]===O[Y+1]){Y+=2;for(V++;O[++Y]===O[++V]&&O[++Y]===O[++V]&&O[++Y]===O[++V]&&O[++Y]===O[++V]&&O[++Y]===O[++V]&&O[++Y]===O[++V]&&O[++Y]===O[++V]&&O[++Y]===O[++V]&&YT){Z.A7=I;T=V;if(V>=f)break;B=O[Y+T-1];w=O[Y+T]}}}while((I=W[I&a])>P&&--d!== 0);return T<=Z.dK?T:Z.dK}; eI=function(Z,I,d){var Y=Z.L.Z,T=V8(Z.L)>>>0;T=Z.L.L+T;var f=T-Y;f<=0&&(Z.L.Z=T,d(I,Z,void 0,void 0,void 0),f=T-Z.L.L);if(f)throw Error();Z.L.L=T;Z.L.Z=Y}; aja=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){d=d.value;var Y=d.interstitials.map(function(P){var O=g.y(P,QKL);if(O)return{is_yto_interstitial:!0,raw_player_response:O};if(P=g.y(P,Og9))return Object.assign({is_yto_interstitial:!0},aW(P))}); Y=g.t(Y);for(var T=Y.next();!T.done;T=Y.next())switch(T=T.value,d.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":Z.interstitials=Z.interstitials.concat({time:0,playerVars:T,jO:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":Z.interstitials=Z.interstitials.concat({time:0x7ffffffffffff,playerVars:T,jO:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var f=Number(d.podConfig.timeToInsertAtMillis);Z.interstitials=Z.interstitials.concat({time:f,playerVars:T, jO:f===0?5:7})}}}; var W$u=function(Z,I){return Gi[Q[32]](this,2,Z,I)}; eQu=function(Z){return Bq()&&wj(Z)?!1:Vk(Z)&&(g.V4(Z.nS)?!Z.isLivePlayback:Z.hlsvp)||!Nn()||Z.BZ?!0:!1}; Bzi=function(){var Z={},I=window.performance;if(I){var d=I.memory;if(d){Z.jsTotal=d.totalJSHeapSize;Z.jsUsed=d.usedJSHeapSize;Z.jsLimit=d.jsHeapSizeLimit;var Y,T;Z.msTotal=(T=(Y=d.getMediaSourceTotalAllocatedMemory)==null?void 0:Y.call(d))!=null?T:d.totalMediaSourceSize;var f,P;Z.msLimit=(P=(f=d.getMediaSourceMaximumMemoryCapacity)==null?void 0:f.call(d))!=null?P:d.mediaSourceSizeLimit;var O,a;Z.msUsed=(a=(O=d.getMediaSourceCurrentMemoryCapacity)==null?void 0:O.call(d))!=null?a:d.usedMediaSourceMemorySize}I.measureAvailableCpuMemory&& (Z.cbFree=I.measureAvailableCpuMemory());I.measureUsedCpuMemory&&(Z.cbUsed=I.measureUsedCpuMemory())}var W;if((W=window.h5vcc)==null?0:W.cVal)Z.cbFree=window.h5vcc.cVal.getValue("Memory.CPU.Free"),Z.cbUsed=window.h5vcc.cVal.getValue("Memory.CPU.Used"),Z.cbJs=window.h5vcc.cVal.getValue("Memory.JS");return Z}; wIr=function(){this.Z=!0;this.D=0;this.L=""}; b99=function(){var Z=g.iN.navigator;return Z?Z.connection:void 0}; g.FR=function(Z,I){return Z.L?Z.L.getResponseHeader(I):null}; VLa=function(Z){var I=g.hi("html5-video-player");I&&g.zL(I,"ytp-ad-display-override",Z)}; NzD=function(Z){this.L=Z;Z.gP("/client_streamz/bg/po/ctav",g.Q7("av"),g.Q7("mk"))}; F$L=function(Z){if(g.x9("offline_error_handling")){var I=sx().get("errors",!0)||{};I[Z.message]={name:Z.name,stack:Z.stack};Z.level&&(I[Z.message].level=Z.level);sx().set("errors",I,2592E3,!0)}}; nx=function(Z){this.Gm=bp(Z)}; g.ox=function(Z,I,d,Y,T){I=I===void 0?{}:I;d=d===void 0?sKi[Z]:d;Y=Y===void 0?nVD[Z]:Y;T=T===void 0?hQL[Z]:T;g.Wj.call(this,d,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:Z},I));this.type=Z;this.message=d;this.level=Y;this.L=T;Object.setPrototypeOf(this,g.ox.prototype)}; iZ=function(Z){this.D=Z}; BR=function(Z,I,d){Z.L==0&&(Z===d&&(I=3,d=new TypeError("Promise cannot resolve to itself")),Z.L=1,Rg$(d,Z.TB5,Z.VFJ,Z)||(Z.V=d,Z.L=I,Z.Z=null,mjl(Z),I!=3||d instanceof ht||sWB(Z,d)))}; q2d=function(Z,I){return Z.L!==I.L?!1:Z.range&&I.range?Z.range.start+Z.D>=I.range.start+I.D&&Z.range.start+Z.D+Z.Z<=I.range.start+I.D+I.Z:Z.YS===I.YS&&Z.D>=I.D&&(Z.D+Z.Z<=I.D+I.Z||I.N)}; g.Zl=function(Z,I){if(I){I=Number(I);if(isNaN(I)||I<0)throw Error("Bad port number "+I);Z.Z=I}else Z.Z=null}; g.qn=function(Z,I){g.mv.call(this);this.ke=Z||1;this.ew=I||g.iN;this.Cu=(0,g.u5)(this.NBm,this);this.JH=g.QY()}; g.S2B=function(Z){return g.Yw(Z.L,function(I){return SI(I.info.mimeType)})}; Rw=function(Z){try{return Z.getBoundingClientRect()}catch(I){return{left:0,top:0,right:0,bottom:0}}}; AOa=function(Z){var I={};Z.forEach(function(d){I[d[0]]=d[1]}); return function(d){return I[d.find(function(Y){return Y in I})]||""}}; At=function(Z,I,d){Z.In&&Z.In.oE(I,d)}; JOJ=function(Z,I,d,Y){Y=Y===void 0?!0:Y;if(d&&!Z.fS.has(I.YS)){for(var T=I.startTime,f=[],P=0;P=O,a=Z.u5.isManifestless,P){var W;if(((W=Z.L)==null?void 0:W.Un.event)==="predictStart"&&Z.L.YS=5)){T=[];for(var f=g.t(MLB),P=f.next();!P.done;P=f.next()){P=P.value;try{P()&&T.push(P())}catch(q){}}T=[].concat(g.c(rOn),g.c(T));var O=Zul(Z);f=O.message||"Unknown Error";P=O.name||"UnknownError";var a=O.stack||Z.D||"Not available";if(a.startsWith(P+": "+f)){var W=a.split("\n");W.shift();a=W.join("\n")}W=O.lineNumber||"Not available";O=O.fileName||"Not available";var e=0;if(Z.hasOwnProperty("args")&& Z.args&&Z.args.length)for(var B=0;B=500);B++);else if(Z.hasOwnProperty("params")&&Z.params){var w=Z.params;if(typeof Z.params==="object")for(B in w){if(w[B]){var V="params."+B,N=Hb(w[B]);d[V]=N;e+=V.length+N.length;if(e>500)break}}else d.params=Hb(w)}if(T.length)for(B=0;B=500);B++);navigator.vendor&&!d.hasOwnProperty("vendor")&&(d["device.vendor"]=navigator.vendor);d={message:f,name:P,lineNumber:W, fileName:O,stack:a,params:d,sampleWeight:1};B=Number(Z.columnNumber);isNaN(B)||(d.lineNumber=d.lineNumber+":"+B);if(Z.level==="IGNORED")Z=0;else a:{Z=cb();B=g.t(Z.MU);for(T=B.next();!T.done;T=B.next())if(T=T.value,d.message&&d.message.match(T.gE)){Z=T.weight;break a}Z=g.t(Z.FZ);for(B=Z.next();!B.done;B=Z.next())if(B=B.value,B.callback(d)){Z=B.weight;break a}Z=1}d.sampleWeight=Z;Z=g.t(d2n);for(B=Z.next();!B.done;B=Z.next())if(B=B.value,B.dO[d.name])for(f=g.t(B.dO[d.name]),T=f.next();!T.done;T=f.next())if(P= T.value,T=d.message.match(P.AK)){d.params["params.error.original"]=T[0];f=P.groups;P={};for(W=0;W0&&(Z.V=g.ly(function(){oE(Z)},I)),Z.X=!0)}; Q_r=function(){}; gg=function(Z,I){this.L=Z===M6&&I||""}; jr=function(Z,I,d){return new g.S8(Z*1E3,I*1E3,{priority:9,namespace:d})}; ib=function(Z,I){Z.U.Y("html5_log_rebuffer_reason")&&(I={r:I,lact:YE()},Z.mediaElement&&(I.bh=Tb(Z.mediaElement)),Z.D1("bufreason",I))}; PD=function(Z,I){return fO(Z,I.ZA,I.slotType)?!0:!1}; UCl=function(Z,I,d){function Y(){var f=T.endTimeMs-Date.now();f<=d?T.Tu(0):setTimeout(Y,Math.min(f,I))} var T=this;this.endTimeMs=Date.now()+Z;this.promise=new Promise(function(f){T.Tu=f}); Y()}; OuD=function(){var Z=g.Kl;Qj.instance||(Qj.instance=new Qj(Z));return Qj.instance}; akD=function(Z){var I=g.hi("html5-video-player");I&&g.zL(I,"ytp-ad-display-override",Z)}; Lg=function(Z){this.experiments=Z;this.L=2048;this.N=0;this.LS=(this.V=this.Y("html5_streaming_resilience"))?.5:.25;var I=I===void 0?0:I;this.Z=g.Q4(this.experiments,"html5_media_time_weight_prop")||I;this.In=(this.B=this.experiments.CS("html5_consider_end_stall"))&&OC;this.D=this.experiments.CS("html5_measure_max_progress_handling");this.X=this.Y("html5_treat_requests_pre_elbow_as_metadata");this.j=this.Y("html5_media_time_weight")||!!this.Z;this.Y("html5_sabr_live_audio_early_return_fix")&&OC&& (this.L=65536)}; aE=function(Z,I){var d=Z.D[I],Y=d[1];Z.Z+=d[0];Y>0&&Z.L[I]==0&&(Z.L[I]=1)}; WKJ=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",J:{d:"M14.1 24.9L7.2 18.0l6.9-6.9L12.0 9.0l-9.0 9.0 9.0 9.0 2.1-2.1zm7.8 .0l6.9-6.9-6.9-6.9L24.0 9.0l9.0 9.0-9.0 9.0-2.1-2.1z",fill:"#fff"}}]}}; E4=function(Z,I){Z.actionButtons.includes(I)||(Z.actionButtons.push(I),Z.updateValue("buttons",Z.actionButtons))}; BD=function(Z,I){return new g.WD(new er(function(d,Y){function T(){var f=Z?I(Z):null;f?f.then(function(P){Z=P;T()},Y):d()} T()}))}; $t=function(Z,I,d,Y,T,f,P,O,a){f=f===void 0?d.schedule:f;var W=Z.MY,e=Z.Im;Z=Z.aG1;var B=W!==void 0&&e!==void 0,w=Y.getVideoData(),V,N=I.L.encryptedClientKey;I=B?I.iv:void 0;B=f;B=B===void 0?d.schedule:B;B=wG(B,!0);T=T||!!Vj()&&B>1572864;return{innertubeRequest:{uMj:Z,bF:W,Im:e,encryptedClientKey:N,iv:I,Tu1:!0,PY:!0,Hd:"DecompressionStream"in window||!T,EHm:d.experiments.CS("html5_use_jsonformatter_to_parse_player_response")},O4:eRO({Bk:f,nS:d,t5:Y,CB:w.startSeconds*1E3}),onesieUstreamerConfig:P, Oy:O,HV:NA(w),reloadPlaybackParams:(V=w.ir)==null?void 0:V.reloadPlaybackParams,vSS:a}}; wvn=function(Z){if(!BMO(Z)){var I=Z.vj().bQ();I&&(I=I.SH(),I instanceof Promise&&I.catch(function(){})); F5(Z,sC(Z.getPlayerStateObject()))}}; nO=function(){this.D=new Ew;this.Tm=this.mJ=0;this.sZ=new LL;this.kS=this.V=-1;this.d4=1E3;this.y5=new Ew([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.fS=this.Ns=-1}; g.uS=function(Z){var I=[],d=0,Y;for(Y in Z)I[d++]=Y;return I}; FKd=function(Z,I){v8(Z,2,I.O4,hV,3);v8(Z,3,I.innertubeRequest,VkJ,3);l5(Z,4,I.onesieUstreamerConfig);l5(Z,9,I.Oy);v8(Z,10,I.HV,mo,3);v8(Z,15,I.reloadPlaybackParams,NM$,3);Uj(Z,18,I.vSS)}; s_9=function(Z,I){return Z.D.some(function(d){return d.info.YS===I})}; ne7=function(Z,I,d,Y,T){if(!g.y(Z.renderingContent,m3))return new C("AdsEngagementPanelSectionListViewModel is missing");var f={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,r4:"core"};I=NQ(Z,I,d);return I instanceof C?I:Object.assign({},f,{renderingContent:Z.renderingContent,h5:new Map([])},I,{Tb:Fo(Y,T)(f),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new D0([])})}; hRu=function(Z,I,d,Y){if(!I&&!d)return Promise.resolve();if(!Y)return eu9(I,d);var T;(T=Z.D)[Y]||(T[Y]=new Promise(function(f,P){eu9(I,d).then(function(){Z.L=Y;f()},function(O){delete Z.D[Y]; P(O)})})); return Z.D[Y]}; qA=function(Z){var I;return!((I=Z.playerResponse)==null||!I.compositePlayabilityStatus)}; m2E=function(Z){Z=zIE(Z);return Z===null?!1:Z[1]==="google"?!0:Z[2]==="google"?Z[0]==="au"&&Z[1]==="com"?!0:Z[0]==="uk"&&Z[1]==="co"?!0:!1:!1}; BMO=function(Z){if(Z.playlist&&g.bZ(Z.U)&&Z.uU()){var I=Z.U.Y("html5_player_autonav_logging");Z.nextVideo(!1,I);return!0}return!1}; S0J=function(Z,I){Sr(BC(BC(Z.NA(),function(d){return aQ7(d,[fR(I)])}),function(d){if(d){d=g.t(d); for(var Y=d.next();!Y.done;Y=d.next()){var T=Y.value;Y=T.key;T=T.value;Y&&T&&(q0B([{settingItemId:Y,settingOptionValue:T}]),Nh(Z))}}}),function(){Z.L=!0})}; g.j1=function(Z){return AyO(Z.D)}; AV=function(Z,I,d){if(!Z.playerVars)return new j$("No playerVars available in InstreamVideoAdRenderer.");var Y,T;if(Z.elementId==null||Z.playerVars==null||Z.playerOverlay==null||((Y=Z.playerOverlay)==null?void 0:Y.instreamAdPlayerOverlayRenderer)==null&&((T=Z.playerOverlay)==null?void 0:T.playerOverlayLayoutRenderer)==null||Z.pings==null||Z.externalVideoId==null)return new j$("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:Z});Y=aW(Z.playerVars);T=Number(Y.length_seconds); isNaN(T)&&(T=0,Zv("Expected valid length seconds in player vars but got NaN"));if(d.fN(I.kind==="AD_PLACEMENT_KIND_START")){if(Z.layoutId===void 0)return new j$("Expected server generated layout ID in instreamVideoAdRenderer");I=Z.layoutId}else I=Z.elementId;return{layoutId:I,Y4:Z,playerVars:Y,wZ:Z.playerVars,lz:T}}; D2O=function(Z){return Z?(Z=("responseXML"in Z?Z.responseXML:Z).getElementsByTagName("root"))&&Z.length>0?Z[0]:null:null}; g.D_=function(Z,I,d,Y){var T=Z.currentTarget;if((d===void 0||!d)&&g.kn(Z))return Z.preventDefault(),!0;I.pauseVideo();Z=T.getAttribute("href");g.XD(Z,Y,!0);return!1}; sSJ=function(Z,I){this.request=Z;this.cursor=I}; yh=function(Z){this.L=new JV(Z)}; RRD=function(Z,I,d){I=I.dialog&&g.y(I.dialog,JyE)||null;I==null?g.nl(Error("AdInfoDialogEndpoint did not contain an AdInfoDialogRenderer.")):(Z.L=new RE(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.Hj,Z.N),g.z(Z,Z.L),Z.L.init(Ai("ad-info-dialog"),I,d),Z.L.i5(Z.N),Z.L.subscribe("d",function(){return Z.publish("f")}),Z.L.subscribe("c",function(){return Z.publish("e")}))}; var LK$=function(){return U1[Q[32]](this,11)}; LO=function(Z,I){this.Bk=Z;this.policy=I;this.playbackRate=1}; U2E=function(Z,I){I=g.Q1(I);g.UC(Z.questionText,I);Z.X&&Z.questionText.setAttribute("id",Ai("survey-question-text"))}; yyL=function(Z,I){Z.D=I}; g.veE=function(){return g.wm()&&(g.y1("ps4 vr")||g.y1("ps4 pro vr"))}; lk9=function(Z,I){Z.L&&(g.b(I,8)&&Z.Z?(Z.Z=!1,Z.dn(),Z.L.start()):(g.b(I,2)||g.b(I,64))&&Z.videoId&&(Z.videoId=null))}; yj=function(Z,I,d,Y,T,f,P){g.p.call(this);this.callback=Z;this.B$=I;this.S7=d;this.SJ=Y;this.P$=T;this.pM=f;this.Ms=P;this.Gz=!0;this.Dq=!1}; vD=function(Z,I){I=I===void 0?240:I;g.k.call(this,{K:"button",zm:["ytp-button","ytp-search-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.Dh(Z.C()))},G:[{K:"div",T:"ytp-search-icon",Z1:"{{icon}}"},{K:"div",T:"ytp-search-title",Z1:"Search"}]});this.api=Z;this.D=I;this.visible=!1;this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},G:[{K:"path",T:"ytp-svg-fill",J:{d:"M21.24,19.83l-5.64-5.64C16.48,13.02,17,11.57,17,10c0-3.87-3.13-7-7-7s-7,3.13-7,7c0,3.87,3.13,7,7,7 c1.57,0,3.02-0.52,4.19-1.4l5.64,5.64L21.24,19.83z M5,10c0-2.76,2.24-5,5-5s5,2.24,5,5c0,2.76-2.24,5-5,5S5,12.76,5,10z"}}]}); Z.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.L();this.W(Z,"appresize",this.L);this.W(Z,"videodatachange",this.L);pi(Z,this.element,this)}; GYr=function(Z){GG(Z,"od",uWD);GG(Z,"opac",lb).L=!0;GG(Z,"sbeos",lb).L=!0;GG(Z,"prf",lb).L=!0;GG(Z,"mwt",lb).L=!0;GG(Z,"iogeo",lb)}; zR9=function(Z){Z.jI=Z.D9();Z.sj(Z.jI/1E3,!0);ub(Z,Z.jI)}; kYu=function(Z){var I;return g.h(function(d){if(Z.OZ())throw Error("Already disposed");(I=Z.L)!=null&&(I.endTimeMs=0,I.Tu(1));return g.m(d,Z.Z.promise,0)})}; Cz=function(Z){Z=lur(Z);aj.call(this,Z.length?Z[Z.length-1]:new WF(JB,0));this.Z=Z;this.D=null}; Xva=function(){var Z=window.document;return Z&&typeof Z.elementFromPoint==="function"}; a5=function(){var Z=g.gZ("yt.networklessRequestController.instance");Z||(Z=new Gb,g.zb("yt.networklessRequestController.instance",Z),g.x9("networkless_logging")&&g.k_().then(function(I){Z.JV=I;tkr(Z);Z.Z.resolve();Z.vt&&Math.random()<=Z.Wt&&Z.JV&&$2i(Z.JV);g.x9("networkless_immediately_drop_sw_health_store")&&pvE(Z)})); return Z}; tV=function(Z,I,d,Y,T,f,P,O){g.De.call(this);var a=this;this.api=Z;this.B=I;this.contextMenu=d;this.EV=Y;this.Wg=T;this.L=f;this.j=P;this.progressBar=O;this.N=new g.uX(function(){x2J(a,!1)},1E3); this.D="";this.Z={Le:!1,Sg:!1,q3:!1};g.z(this,this.N);this.W(I,"mousedown",function(){X5(a,!1)}); this.W(d.element,"mousedown",function(){X5(a,!1)}); this.W(I,"keydown",this.yM);this.W(d.element,"keydown",this.yM);this.W(I,"keyup",this.pn);this.W(d.element,"keyup",this.pn)}; $_=function(Z){Z.D&&(Z.D.disable(),Z.d4=0,Z.kS.style.removeProperty("transform"),Z.progressBar.style.removeProperty("transform"),Z.b5.style.removeProperty("height"),Z.element.parentElement&&Z.element.parentElement.style.removeProperty("height"))}; JS=function(Z){return Z.split(",").map(function(I){return aW(I)})}; pO=function(Z){return Z==null||typeof Z==="string"?Z:void 0}; KO=function(Z){var I=g.vj.apply(1,arguments);if(!DL(Z)||I.some(function(Y){return!DL(Y)}))throw Error("Only objects may be merged."); I=g.t(I);for(var d=I.next();!d.done;d=I.next())x_(Z,d.value)}; CO=function(Z,I,d){return G8(Z,I,Xo(d))}; EC=function(){}; KKl=function(Z,I,d){if(Z&&I!==null&&I!=I.top){if(!I.top)return new g.qv(-12245933,-12245933);I=I.top}try{return(d===void 0?0:d)?(new g.qv(I.innerWidth,I.innerHeight)).round():ZFl(I||window).round()}catch(Y){return new g.qv(-12245933,-12245933)}}; bb=function(Z){this.Gm=bp(Z)}; HD=function(Z,I){return function(){var d=g.vj.apply(0,arguments);if(Z.L>-1)return I.apply(null,g.c(d));try{return Z.L=Z.Z.L.now(),I.apply(null,g.c(d))}finally{Z.N+=Z.Z.L.now()-Z.L,Z.L=-1,Z.D+=1}}}; Cgl=function(Z,I,d){if(Z.appInstallData)if(I){var Y;d=(Y=yF(I,cD,62))!=null?Y:new cD;Kr(d,6,Z.appInstallData);P6(I,cD,62,d)}else d&&(d.client.configInfo=d.client.configInfo||{},d.client.configInfo.appInstallData=Z.appInstallData)}; Eei=function(Z){return Z.map(function(I){return new Pg(I.id,"application/x-mpegURL",{uo:I.uo})})}; buu=function(Z,I,d){return I?I.map(function(Y){return Y instanceof gG?MA(Z,Y.key,d,!0):MA(Z,Y,d)}):[]}; cyO=function(){function Z(d){return I.call(Z.src,Z.listener,d)} var I=HuB;return Z}; Bw=function(Z,I){I.name in Z.X||(Z.X[I.name]=z6J(Z,I));return Z.X[I.name]}; MC=function(Z,I){function d(){var T;return g.h(function(f){T=Y-Date.now();return T<1E3?g.m(f,gen(Z),0):(rG(d,0,Math.min(T,6E4)),f.xS(0))})} var Y=Date.now()+I;d()}; Mka=function(Z){var I=Z.provider.videoData.A4,d=Z.provider.videoData.v6,Y=[10+I,10,10,40+d-I,40],T,f=(T=Z.provider.videoData.getPlayerResponse())==null?void 0:T.playbackTracking,P=f==null?void 0:f.videostatsScheduledFlushWalltimeSeconds;T=f==null?void 0:f.videostatsDefaultFlushIntervalSeconds;if(!(P&&P.length>0&&T))return Y;I=[P[0]+I].concat(g.c(P.slice(1).map(function(O,a){return O-P[a]})),[T+d-I, T]);return I.some(function(O){return O<0})?(g.ZB(Z.logger,347111855,"Neg vss scheduled pings "+P+" "+T),Y):I}; ryd=function(){}; o6=function(Z){if(!I6(Z)){var I=l_(Z.cg);I&&!I.created&&dS(Z.cg)&&I.create()}}; ZAn=function(Z,I){return""+Z+"|"+(I?"v":"a")}; UN=function(Z){this.Gm=bp(Z,8)}; Td=function(Z){Z=YB(Z);jT||(jT=Ind());jT(Z)}; DIr=function(Z,I,d){d.y5&&I--;Fm(d)&&(I=1);if(iv(d)!==0&&(Z=g.Q4(Z.experiments,"html5_live_chunk_readahead_proxima_override"))){I=Z;var Y;((Y=d.L)==null?0:dDB(Y))&&I++}return I}; WX=function(Z,I,d,Y,T){T=T===void 0?!1:T;var f={startTime:(0,g.o8)(),ticks:{},infos:{}};if(fN)try{var P=o6J(I);if(P!=null&&(P>Y7E||PI.Z?!1:Z.DI.D?!1:typeof Z.Ltypeof I.L?!1:Z.L0;){for(var a=0;a0){var Y=d.L.shift();g6$(d,Y.info)}d.L.length>0&&(Y=d.L[0].time-(0,g.o8)(),d.D.start(Math.max(0,Y)))}},0); g.z(this,this.D);I.subscribe("widevine_set_need_key_info",this.N,this)}; r6J=function(Z){if(!Z.element)return!1;var I=Z.element,d=Z.D.L.Z,Y=GU().L.L;Z.N=new d.IntersectionObserver(HD(Y,function(T){return Ak(Z,T)}),M8J); Y=HD(Y,function(){Z.N.unobserve(I);Z.N.observe(I);Ak(Z,yK(Z))}); d.ResizeObserver?(Z.X=new d.ResizeObserver(Y),Z.X.observe(I)):d.MutationObserver&&(Z.V=new g.iN.MutationObserver(Y),Z.V.observe(I,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));Z.N.observe(I);Ak(Z,yK(Z));return!0}; sDi=function(Z,I){try{return Ds(Z[I]),!0}catch(d){}return!1}; Jk=function(Z,I){I=I===void 0?{}:I;var d,Y,T,f;return g.h(function(P){if(P.L==1)return g.ez(P,2),d=self.indexedDB.deleteDatabase(Z),Y=I,(T=Y.blocked)&&d.addEventListener("blocked",function(){T()}),g.m(P,ZtO(d),4); if(P.L!=2)return g.gE(P,0);f=g.Bj(P);throw dw(f,Z,"",-1);})}; ILE=function(Z){var I,d;return!!((I=Z.L)==null?0:(d=I.O4)==null?0:d.EK)}; dRu=function(){Ot();var Z=JB.document;return!!(Z&&Z.body&&Z.body.getBoundingClientRect&&typeof JB.setInterval==="function"&&typeof JB.clearInterval==="function"&&typeof JB.setTimeout==="function"&&typeof JB.clearTimeout==="function")}; jCn=function(Z){O7("drm_pb_s",void 0,Z.LS);Z.w4||Z.L&&R1(Z.L);var I={};Z.L&&(I=o0i(Z.aV,g.Lv(Z),Z.nS.B,Z.L,function(d){return Z.publish("ctmp","fmtflt",d)},!0,new Set)); I=new UK(I,Z.nS,Z.w_,Z.useCobaltWidevine?Bq()?wj(Z):!1:!1,function(d,Y){Z.D1(d,Y)}); g.z(Z,I);Z.Mt=!1;Z.loading=!0;Y4d(I,function(d){O7("drm_pb_f",void 0,Z.LS);for(var Y=g.t(d),T=Y.next();!T.done;T=Y.next())switch(T=T.value,T.flavor){case "fairplay":T.w4=Z.w4;T.yD=Z.yD;T.Gy=Z.Gy;break;case "widevine":T.xk=Z.xk}Z.xM=d;if(Z.xM.length>0&&(Z.B=Z.xM[0],Z.nS.Vy())){d={};Y=g.t(Object.entries(Z.B.L));for(T=Y.next();!T.done;T=Y.next()){var f=g.t(T.value);T=f.next().value;f=f.next().value;var P="unk";(T=T.match(/(.*)codecs="(.*)"/))&&(P=T[2]);d[P]=f}Z.D1("drmProbe",d)}Z.K$()})}; y_=function(Z){this.value=Z}; vs=function(Z,I,d){if(Array.isArray(I)){var Y=I[nL]|0;if(Y&4)return I;for(var T=0,f=0;T>>31)&4294967295;B=T[0];var N=T[1],q=T[2],A=T[3],F=T[4];for(V=0;V<80;V++){if(V<40)if(V<20){var J=A^N&(q^A);var v=1518500249}else J=N^q^A,v=1859775393;else V<60?(J=N&q|A&(N|q),v=2400959708):(J=N^q^A,v=3395469782);J=((B<<5|B>>>27)&4294967295)+J+F+v+w[V]&4294967295;F=A;A=q;q=(N<<30|N>>>2)&4294967295;N=B;B=J}T[0]=T[0]+B&4294967295;T[1]=T[1]+N&4294967295;T[2]= T[2]+q&4294967295;T[3]=T[3]+A&4294967295;T[4]=T[4]+F&4294967295} function d(B,w){if(typeof B==="string"){B=unescape(encodeURIComponent(B));for(var V=[],N=0,q=B.length;N=56;V--)f[V]=w&255,w>>>=8;I(f);for(V=w=0;V<5;V++)for(var N=24;N>=0;N-=8)B[w++]=T[V]>>N&255;return B} for(var T=[],f=[],P=[],O=[128],a=1;a<64;++a)O[a]=0;var W,e;Z();return{reset:Z,update:d,digest:Y,rJ:function(){for(var B=Y(),w="",V=0;VY/1E3+1)return{msg:"in-the-past"};if(f.isLivePlayback&&!isFinite(Y))return{msg:"live-infinite"};(Y=I.bQ())&&Y.isView()&&(Y=Y.mediaElement);if(Y&&Y.bI().length>12&&g.Pf(T))return{msg:"played-ranges"};if(!T.Z)return null;if(!P)return{msg:"no-pvd-formats"};if(!T.Z.L||!P.L)return{msg:"non-dash"};Y=P.videoInfos[0];var O=T.Z.videoInfos[0];Z.LS&&fA(f)&&(Y=I.Iw(),O= d.Iw());if(!Y||!O)return{msg:"no-video-info"};if(Z.j&&(IO(Y)||IO(O)))return{msg:"av1"};I=Z.N&&f.Zt()&&B9();if(O.containerType!==Y.containerType)if(I)f.D1("sgap",{ierr:"container"});else return{msg:"container"};if(Z.B&&!I&&(O.Pj!==Y.Pj||O.Pj===""||Y.Pj===""))return{msg:"codec"};if(Z.V&&O.video&&Y.video&&Math.abs(O.video.width/O.video.height-Y.video.width/Y.video.height)>.01)return{msg:"ratio"};if(g.Pf(f)&&g.Pf(T))return{msg:"content-protection"};P=P.L[0];T=T.Z.L[0];d=P.audio;var a=T.audio;if(d.sampleRate!== a.sampleRate&&!g.h_)if(I)f.D1("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:P.itag,cr:d.sampleRate,ni:T.itag,nr:a.sampleRate};return(d.numChannels||2)!==(a.numChannels||2)?{msg:"channel-count"}:Z.X&&f.Zt()&&Y.video.fps!==O.video.fps?{msg:"fps"}:null}; H8=function(Z,I){I===void 0&&(I=Z[nL]|0);I&32&&!(I&4096)&&Ht(Z,I|4096)}; g.gZ=function(Z,I){Z=Z.split(".");I=I||g.iN;for(var d=0;d=1&&np(Z.L(),d)}; tKa=function(Z){if(hp(Z))if(Z.Gx&&Z.indexRange)if(Z.D){var I=new Uint8Array(Z.B.buffer,0,Z.D),d=X77(Z),Y=Z.policy.N;Promise.all(Z.LS).then(function(){var T=mA(Y,Z.Gx.L.info,qF(Z,!0),d,Z.policy.y5,Z.N,I,Z.crypto);SM(Z,T,!0)})}else Ap(Z,new DU("Woffle: Expect always re-mark currentChunkOffset at EOS")); else Ap(Z,new DU("Woffle: Expect at EOS to always have lastSlice or indexRange"))}; g.XD=function(Z,I,d){I=I===void 0?{}:I;d=d===void 0?!1:d;var Y=g.rh("EVENT_ID");Y&&(I.ei||(I.ei=Y));I&&Ku(Z,I);d||(Cu(Z),g.$Ri(Z))}; KUd=function(Z,I,d,Y,T,f){var P=I.cpn,O=I.docid||I.video_id||I.videoId||I.id,a=Z.L;f=f===void 0?T+Y:f;if(T>f)return Jp(Z,"enterAfterReturn enterTimeMs="+T+" is greater than parentReturnTimeMs="+f.toFixed(3),P,O),"";var W=a.p_()*1E3;if(TW)return a="returnAfterDuration parentReturnTimeMs="+f.toFixed(3)+" is greater than parentDurationMs="+W+". And timestampOffset in seconds is "+ a.Fx(),Jp(Z,a,P,O),"";W=null;for(var e=g.t(Z.D),B=e.next();!B.done;B=e.next()){B=B.value;if(T>=B.f_&&TB.f_)return Jp(Z,"overlappingReturn",P,O),"";if(f===B.f_)return Jp(Z,"outOfOrder",P,O),"";T===B.Mc&&(W=B)}P="cs_childplayback_"+p79++;O={HO:Rp(Y,!0),U9:Infinity,target:null};var w={uQ:P,playerVars:I,playerType:d,durationMs:Y,f_:T,Mc:f,XS:O};Z.D=Z.D.concat(w).sort(function(q,A){return q.f_-A.f_}); W?xR7(Z,W,{HO:Rp(W.durationMs,!0),U9:W.XS.U9,target:w}):(I={HO:Rp(T,!1),U9:T,target:w},Z.B.set(I.HO,I),a.addCueRange(I.HO));I=!0;if(Z.L===Z.app.l5()&&(a=a.getCurrentTime()*1E3,a>=w.f_&&a>>0,n7=Number(Z>>BigInt(32)&BigInt(4294967295));else{var I=+(Z[0]==="-");n7=FS=0;for(var d=Z.length,Y=0+I,T=(d-I)%6+I;T<=d;Y=T,T+=6)Y=Number(Z.slice(Y,T)),n7*=1E6,FS=FS*1E6+Y,FS>=4294967296&&(n7+=Math.trunc(FS/4294967296),n7>>>=0,FS>>>=0);I&&(I=g.t(vf(FS,n7)),Z=I.next().value,I=I.next().value,FS=Z,n7=I)}}; Cfr=function(Z){Z.Z=!0;return Z}; E0n=function(Z,I){var d=Z.CN();if(d){var Y=d.Xm().layoutId,T=Z.uw()+1;Z.IV()?lm(Z,d,I):d.v$(d.Xm(),I);T>=0&&T0?" "+Y:Y;g.PI(Z,I)}}; Gia=function(Z,I){return Z.D+I*(Z.L-Z.D)}; Kp=function(Z,I){if(Z===I)Z=!0;else if(Array.isArray(Z)&&Array.isArray(I))Z=g.WP(Z,I,Kp);else if(g.IB(Z)&&g.IB(I))a:if(g.uS(Z).length!=g.uS(I).length)Z=!1;else{for(var d in Z)if(!Kp(Z[d],I[d])){Z=!1;break a}Z=!0}else Z=!1;return Z}; df9=function(Z,I){Z.L=I}; oSn=function(Z,I){Zv(I+": undefined adapter",Z.slot,Z.layout)}; Cp=function(Z){this.Gm=bp(Z)}; YyE=function(Z){var I;return!((I=Z.nS.getWebPlayerContextConfig())==null||!I.enableProximaLowLatency)}; Hf=function(Z){var I=Z===void 0?{}:Z;Z=I.t$===void 0?0:I.t$;var d=I.Q8===void 0?!1:I.Q8;var Y=I.o6===void 0?0:I.o6;var T=I.KN===void 0?0:I.KN;var f=I.jo===void 0?Infinity:I.jo;var P=I.vN===void 0?0:I.vN;var O=I.uu===void 0?!1:I.uu;I=I.tU===void 0?!1:I.tU;g.EL.call(this);this.us=this.fZ=-1;this.Yo=Z;this.o6=Y;this.Q8=d;this.KN=T;this.jo=f;this.vN=P;((this.uu=O)||isFinite(f)&&this.jo>0)&&d&&bm&&(this.D=!1,this.Z="postLive");this.tU=I}; jZu=function(Z){var I=4093624447,d;for(d=0;d<=31;d++,I>>>=1)if(I&1&&Z.O_[d*2]!==0)return 0;if(Z.O_[18]!==0||Z.O_[20]!==0||Z.O_[26]!==0)return 1;for(d=32;d<256;d++)if(Z.O_[d*2]!==0)return 1;return 0}; cf=function(Z){Z.L===0&&Z.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var I=Z.L-Z.j,d=I;Z.L!==0&&(d=g.O4(I,-.01,.01));Z.j+=d;Z.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+Z.j.toString());Z.j!==Z.L&&cf(Z)})}; g.g0=function(Z){window.clearInterval(Z)}; MF=function(Z,I){I=I?I.fW:!1;Z.N||(Z.N=sN(96,Z.D,I));return Z.N}; r0=function(Z){Z.delay.stop();Z.L.unsubscribe("dragmove",Z.j,Z);Z.L.unsubscribe("dragend",Z.B,Z);Z.Z&&(Z.Z=!1,Z.speedmasterUserEdu.So(),Z.api.setPlaybackRate(Z.Ns),Z.api.showControls(),Z.fS&&Z.api.pauseVideo(),Z.Y("enable_smart_skip_speedmaster_on_web")&&Z.api.publish("speedmasterchanged",!1))}; Tti=function(Z){var I=[];Z.L.forEach(function(d){d=g.t(d.values());for(var Y=d.next();!Y.done;Y=d.next())I.push(Y.value.slot)}); return I}; fMr=function(Z){return iGu(Z,function(I){return g.MV(I,"ytp-ad-has-logging-urls")})}; g.ZV=function(Z,I,d){PUi(Z,I,d===void 0?null:d)}; QZn=function(Z,I){return I.reduce(function(d,Y){return function(T){return Y.intercept(T,d)}},Z)}; dF=function(Z,I,d){d=d===void 0?{}:d;If.call(this,Z,I,"",void 0,void 0,d.t$||0);this.index=new Hf(d)}; of=function(Z){return g.Ow(Z.S.nM())!=null?g.Ow(Z.S.nM()).ZY()?!!Z.S.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; Y8=function(Z){this.value=Z}; js=function(Z){return new g.WD(new er(function(I,d){OGL(Z,I,d)}))}; j3=function(Z){Z=Z===void 0?0:Z;return Z===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+Z}; fo=function(Z,I){I=I===void 0?[]:I;var d={Mk:Z.Mk||"_",B2:Z.B2||[],FN:Z.FN|0,Wu:Z.Wu,z3:Z.z3||function(){}, D2:Z.D2||function(f,P){return aM$(f,P,d.z3,d.Wu)}},Y=d.D2("51",d.B2.concat(I)); TZ.call(this,{ctj:new WcD(Y),errorCount:new e_J(Y),eventCount:new BtE(Y),Zl:new PS9(Y),G9Z:new w6l(Y),blj:new VJE(Y),vx:new NzD(Y),y_4:new Nta(Y)},d.Mk);var T=this;this.A9={t7:function(){return T.options.B2.concat(T.N).sort(function(f,P){return f-P})}}; this.options=d;this.service=Y;this.Z=!Z.D2;this.L=new FcB(function(){return void T.service.hv()},d.FN); this.addOnDisposeCallback(function(){T.L.dispose();T.Z&&T.service.dispose()}); g.ik(this.N=I.slice())}; sZL=function(Z){Z=Z.split(/(?:\r\n|\r|\n)/g);if(Z.length>1){for(var I=[Z[0]],d=1;d1)throw new wF;Z=Z.id;uZB(Z);VN=Fl(Z);J_9(18E5,2);return Z}; Lcl=function(Z){var I=null;Z.D&&(I=Z.D,Z.D=I.next,I.next=null);Z.D||(Z.N=null);return I}; UfO=function(Z){Z.api.onAdUxClicked("ad-info-icon-button",Z.layoutId)}; y_D=function(){this.L=g.rh("ALT_PREF_COOKIE_NAME","PREF");this.D=g.rh("ALT_PREF_COOKIE_DOMAIN","youtube.com");var Z=g.Zc(this.L);Z&&this.parse(Z)}; vSl=function(Z,I){var d;return g.h(function(Y){if(Y.L==1)return g.m(Y,zB(I),2);d=Y.D;return Y.return(d.delete("LogsRequestsStore",Z))})}; lM$=function(Z){this.experiments=Z;this.L=17;this.Z=13E4;this.j=.5;this.N=this.D=!1;this.kS=this.Y("html5_use_histogram_for_bandwidth");this.B=g.Q4(this.experiments,"html5_auxiliary_estimate_weight");this.LS=g.Q4(this.experiments,"html5_stall_factor")||1;this.V=g.Q4(this.experiments,"html5_check_for_idle_network_interval_ms");this.X=this.experiments.CS("html5_trigger_loader_when_idle_network");this.In=this.experiments.CS("html5_sabr_fetch_on_idle_network_preloaded_players")}; TZ=function(Z,I){zd.call(this);this.metrics=Z;this.Mk=I}; Nr=function(){y_.apply(this,arguments)}; FC=function(Z,I,d){var Y=uL9[Z]||[];d.Y("html5_shorts_onesie_mismatched_fix")&&(Y=G5n[Z]||[]);I.push.apply(I,g.c(Y));d.Y("html5_early_media_for_drm")&&I.push.apply(I,g.c(z_l[Z]||[]))}; no=function(Z,I,d){if(Z.Z5(d)&&(d=d.getVideoData(),!sD(Z))){Z=Z.FT;for(var Y=g.t(Z.D),T=Y.next();!T.done;T=Y.next())if(T=T.value,d.uQ===T.uQ){I+=T.f_/1E3;break}Y=I;Z=g.t(Z.D);for(T=Z.next();!T.done;T=Z.next()){T=T.value;if(d.uQ===T.uQ)break;var f=T.f_/1E3;if(fd||(Y.push(Math.max(I,Z.start(f))-I),T.push(Math.min(d,Z.end(f))-I));return JF(Y,T)}; c_O=function(Z){for(var I=Z.key,d=Z.counter[0]^I[0],Y=Z.counter[1]^I[1],T=Z.counter[2]^I[2],f=Z.counter[3]^I[3],P=3;P>=0&&!(Z.counter[P]=-~Z.counter[P]);P--);for(var O,a,W=4;W<40;)P=Lo[d>>>24]^UD[Y>>16&255]^yN[T>>8&255]^vc[f&255]^I[W++],O=Lo[Y>>>24]^UD[T>>16&255]^yN[f>>8&255]^vc[d&255]^I[W++],a=Lo[T>>>24]^UD[f>>16&255]^yN[d>>8&255]^vc[Y&255]^I[W++],f=Lo[f>>>24]^UD[d>>16&255]^yN[Y>>8&255]^vc[T&255]^I[W++],d=P,Y=O,T=a;Z=Z.D;P=I[40];Z[0]=lk[d>>>24]^P>>>24;Z[1]=lk[Y>>16&255]^P>>16&255;Z[2]=lk[T>>8&255]^ P>>8&255;Z[3]=lk[f&255]^P&255;P=I[41];Z[4]=lk[Y>>>24]^P>>>24;Z[5]=lk[T>>16&255]^P>>16&255;Z[6]=lk[f>>8&255]^P>>8&255;Z[7]=lk[d&255]^P&255;P=I[42];Z[8]=lk[T>>>24]^P>>>24;Z[9]=lk[f>>16&255]^P>>16&255;Z[10]=lk[d>>8&255]^P>>8&255;Z[11]=lk[Y&255]^P&255;P=I[43];Z[12]=lk[f>>>24]^P>>>24;Z[13]=lk[d>>16&255]^P>>16&255;Z[14]=lk[Y>>8&255]^P>>8&255;Z[15]=lk[T&255]^P&255}; aj=function(Z){this.B=!1;this.L=Z;this.N=function(){}}; uk=function(Z){var I=0,d=0,Y=0,T=Z.D,f=Z.L;do{var P=T[f++];I|=(P&127)<32)for(d|=(P&127)>>4,Y=3;Y<32&&P&128;Y+=7)P=T[f++],d|=(P&127)<>>0,d>>>0);throw Error();}; MJE=function(Z){var I,d,Y=(I=Z.L)==null?void 0:(d=I.bannerData)==null?void 0:d.itemData;return Z.S.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")&&(Y==null||!Y.priceReplacementText)&&(Y==null?0:Y.promotionText)?Y==null?void 0:Y.promotionText.content:null}; Ot=function(){var Z=lz(r_u);if(!Z.L){if(!JB)throw Error("Context has not been set and window is undefined.");Z.L=lz(GZ)}return Z.L}; ZRL=function(Z){var I;(I=Z.SK)==null||I.stop();Z.countdownTimer.hide()}; I8u=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){var Y=d.value,T=void 0;d=Number((T=Y.playbackRelativePosition)==null?void 0:T.utcTimeMs)/1E3;var f=void 0;T=d+Number((f=Y.duration)==null?void 0:f.seconds);f="composite_embargo_"+d;Y.onEnter&&(Y=Y.onEnter.filter(Z.B),Y.length&&(Z.D.set(f,Y),Z.api.addUtcCueRange(f,d,T,"compositeembargo",!1)))}}; zZ=function(Z){this.value=Z}; dgJ=function(Z,I){var d;((d=Z.L)==null?void 0:d.id)!==(I==null?void 0:I.id)&&(Z.L&&(Z.D.delete(Z.L.id),Z.api.vB([Z.L],1)),Z.L=I)}; oLd=function(Z,I,d){Z.onSuccess=I;Z.onError=d}; Yna=function(Z,I){Z=document.querySelector(Z);if(!Z)return!1;var d="",Y=Z.nodeName;Y==="SCRIPT"?(d=Z.src,d||(d=Z.getAttribute("data-timing-href"))&&(d=window.location.protocol+d)):Y==="LINK"&&(d=Z.href);Pw(document)&&Z.setAttribute("nonce",Pw(document));return d?(Z=k8.getEntriesByName(d))&&Z[0]&&(Z=Z[0],d=XC(),tF("rsf_"+I,d+Math.round(Z.fetchStart)),tF("rse_"+I,d+Math.round(Z.responseEnd)),Z.transferSize!==void 0&&Z.transferSize===0)?!0:!1:!1}; $8=function(Z,I){this.MC=Z;this.L=I===void 0?!1:I;this.D=!1}; zO=function(Z,I,d){I=I.layoutId;for(var Y=[],T=g.t(Z.fM.values()),f=T.next();!f.done;f=T.next())if(f=f.value,f.trigger instanceof Ws){var P;if(P=f.trigger.layoutId===I){P=d;var O=jx7.get(f.category);P=O?O===P:!1}P&&Y.push(f)}Y.length&&np(Z.L(),Y)}; po=function(Z,I,d,Y){(new Uint8Array(Z.data.buffer,Z.offset,Y)).set(new Uint8Array(I.buffer,d+I.byteOffset,Y));Z.offset+=Y}; TwE=function(Z){Zv("getExitReason: unexpected reason",void 0,void 0,{reason:Z})}; IK=function(Z){if(Z.S.C().Vx)return Z.nN.get("remote")}; $l=function(Z){return Z}; Ko=function(Z){this.D=Z;this.L=NaN;this.buffer=new x8(100)}; iRO=function(Z,I){var d=Co;g.ik(Z,function(Y,T){return d(I(Y),I(T))})}; ED=function(Z){Z.L=null;Z.Ns=-1;Z.In=0;Z.j=null;Z.fS=NaN;Z.LS=0;Z.kS=null}; K0D=function(Z,I){return j6(Z,2,I)}; f8d=function(Z){var I=g.hi("html5-video-player");I&&g.zL(I,"ytp-ad-display-override",Z)}; lj=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"videodatachange",function(){I.updateMetadata()}); this.events.W(Z,"presentingplayerstatechange",function(){k5O(I)}); this.events.W(Z,"SEEK_COMPLETE",function(){P8J(I)})}; fa=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){d=d.value;var Y=W7(Z,d.timeRangeStartMillis/(Z.Z.L*1E3),Tx(Z)),T=Z.api.Y("delhi_modern_web_player")?.667:.6;g.K2(d.element,"transform","translateX("+Y+"px) scaleX("+T+")")}}; bk=function(Z,I,d,Y){function T(P){var O=!(P.status!==204&&P.status!==200&&!P.response),a;P={succ:""+ +O,rc:P.status,lb:((a=P.response)==null?void 0:a.byteLength)||0,rt:((0,g.o8)()-f).toFixed(),shost:g.LM(Z),trigger:I};Qxa(P,Z);d&&d(P);Y&&!O&&Y(new g.dj("pathprobe.net",P))} var f=(0,g.o8)();g.kk(Z,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:T,onTimeout:T})}; OR$=function(Z){g.k.call(this,{K:"div",T:"ytp-heat-map-chapter",G:[{K:"svg",T:"ytp-heat-map-svg",J:{height:"100%",preserveAspectRatio:"none",version:"1.1",viewBox:"0 0 1000 100",width:"100%"},G:[{K:"defs",G:[{K:"clipPath",J:{id:"{{id}}"},G:[{K:"path",T:"ytp-heat-map-path",J:{d:"",fill:"white"}}]},{K:"linearGradient",J:{gradientUnits:"userSpaceOnUse",id:"ytp-heat-map-gradient-def",x1:"0%",x2:"0%",y1:"0%",y2:"100%"},G:[{K:"stop",J:{offset:"0%","stop-color":"white","stop-opacity":"1"}},{K:"stop",J:{offset:"100%", "stop-color":"white","stop-opacity":"0"}}]}]},{K:"rect",T:"ytp-heat-map-graph",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.4",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",T:"ytp-heat-map-hover",J:{"clip-path":"url(#hm_1)",fill:"white","fill-opacity":"0.7",height:"100%",width:"100%",x:"0",y:"0"}},{K:"rect",T:"ytp-heat-map-play",J:{"clip-path":"url(#hm_1)",height:"100%",x:"0",y:"0"}},{K:"path",T:"ytp-modern-heat-map",J:{d:"",fill:"url(#ytp-heat-map-gradient-def)",height:"100%", stroke:"white","stroke-opacity":"0.7","stroke-width":"2px",width:"100%",x:"0",y:"0"}}]}]});this.api=Z;this.V=this.KS("ytp-heat-map-svg");this.B=this.KS("ytp-heat-map-path");this.N=this.KS("ytp-heat-map-graph");this.j=this.KS("ytp-heat-map-play");this.L=this.KS("ytp-heat-map-hover");this.Z=this.KS("ytp-modern-heat-map");this.FF=!1;this.D=60;Z=""+g.Hc(this);this.update({id:Z});Z="url(#"+Z+")";this.N.setAttribute("clip-path",Z);this.j.setAttribute("clip-path",Z);this.L.setAttribute("clip-path",Z)}; a89=function(){this.timing={};this.clearResourceTimings=function(){}; this.webkitClearResourceTimings=function(){}; this.mozClearResourceTimings=function(){}; this.msClearResourceTimings=function(){}; this.oClearResourceTimings=function(){}}; cc=function(Z,I,d,Y,T,f){f=f===void 0?!1:f;var P={K:"div",zm:["ytp-input-slider-section"],G:[{K:"input",T:"ytp-input-slider",J:{role:"slider",tabindex:"0",type:"range",min:"{{minvalue}}",max:"{{maxvalue}}",step:"{{stepvalue}}",value:"{{slidervalue}}"}}]};T&&P.G.unshift(T);f&&P.zm.push("ytp-vertical-slider");g.k.call(this,P);this.N=Z;this.B=I;this.V=d;this.initialValue=Y;this.header=T;this.D=this.KS("ytp-input-slider");this.L=Y?Y:Z;this.init();this.W(this.D,"input",this.Z);this.W(this.D,"keydown", this.j)}; WiO=function(Z){var I=gF("aft",Z);if(I)return I;I=g.rh((Z||"")+"TIMING_AFT_KEYS",["ol"]);for(var d=I.length,Y=0;Y0&&Z.j--)}; Tu=function(Z,I){this.start=Z=0?Z.QC:-1,Y=Z.NC-Z.QC,T=0;if(Z.level>0){Z.rz.b6===2&&(Z.rz.b6=jZu(Z));fd(Z,Z.YQ);fd(Z,Z.Pt);hhB(Z,Z.O_,Z.YQ.h7);hhB(Z,Z.XL,Z.Pt.h7);fd(Z,Z.J8);for(T=18;T>=3&&Z.tK[mgn[T]*2+1]===0;T--);Z.T8+=3*(T+1)+5+5+4;var f=Z.T8+3+7>>>3;var P=Z.Ih+3+7>>>3;P<=f&&(f=P)}else f=P=Y+5;if(Y+4<=f&&d!==-1)oD(Z,I?1:0,3),qni(Z,d,Y);else if(Z.strategy===4||P===f)oD(Z,2+(I?1:0),3),E1u(Z,Po,Qe);else{oD(Z,4+(I?1:0),3);d=Z.YQ.h7+1;Y=Z.Pt.h7+1;T+=1;oD(Z,d-257,5);oD(Z,Y-1,5);oD(Z,T-4,4);for(f=0;f24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(Y==="338"&&!(g.h_?mc(53):g.Kb&&mc(64)))return"dopus";var f=d;f=f===void 0?1: f;d={};I.video&&(I.video.width&&(d[wZ.WIDTH.name]=I.video.width),I.video.height&&(d[wZ.HEIGHT.name]=I.video.height),I.video.fps&&(d[wZ.FRAMERATE.name]=I.video.fps*f),I.video.L&&(d[wZ.EOTF.name]=I.video.L),I.pS&&(d[wZ.BITRATE.name]=I.pS*8*f),I.Pj==="("&&(d[wZ.CRYPTOBLOCKFORMAT.name]="subsample"),I.video.projectionType==="EQUIRECTANGULAR"||I.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||I.video.projectionType==="MESH")&&(d[wZ.DECODETOTEXTURE.name]="true");var P;((P=I.audio)==null?0:P.numChannels)&& I.Pj!=="i"&&I.Pj!=="I"&&(d[wZ.CHANNELS.name]=I.audio.numChannels);Z.Z&&RP(I)&&(d[wZ.EXPERIMENTAL.name]="allowed");P=g.t(Object.keys(wZ));for(f=P.next();!f.done;f=P.next()){f=wZ[f.value];var O;if(O=d[f.name])if(O=!(f===wZ.EOTF&&I.mimeType.indexOf("vp09.02")>0)){O=f;var a=I;O=!(Z.experiments.CS("html5_ignore_h264_framerate_cap")&&O===wZ.FRAMERATE&&kva(a))}if(O)if(Bw(Z,f))if(Z.j){if(Z.j[f.name]1080&&I.T_&&(T+="; hdcp=2.2");return Y==="227"?"hqcenc":Y!=="585"&&Y!=="588"&&Y!=="583"&&Y!=="586"&&Y!=="584"&&Y!=="587"&&Y!=="591"&&Y!=="592"||Z.experiments.CS("html5_enable_new_hvc_enc")?Bq()&&gL()>=21&&g.y1("appletv5")&&(Y==="410"||Y==="845")?!0:Z.isTypeSupported(T)?!0:"tpus":"newhvc"}; $gd=function(Z,I,d,Y){if(UY(Z.L,I)){var T=Z.Wk,f=T.IB,P;var O=((P=t4a.get(Y))==null?void 0:P.Oj)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";f.call(T,O,I,d);Z=Fc(Z.L,I);Z.L!=="rendering"&&ye(Z.slot,Z.L,"exitLayout");Z.L="rendering_stop_requested";Z.Z.v$(d,Y)}}; l4=function(Z){var I=Z.hours||0;var d=Z.minutes||0,Y=Z.seconds||0;I=Y+d*60+I*3600+(Z.days||0)*86400+(Z.weeks||0)*604800+(Z.months||0)*2629800+(Z.years||0)*31557600;I<=0?I={hours:0,minutes:0,seconds:0}:(Z=I,I=Math.floor(Z/3600),Z%=3600,d=Math.floor(Z/60),Y=Math.floor(Z%60),I={hours:I,minutes:d,seconds:Y});var T=I.hours===void 0?0:I.hours;d=I.minutes===void 0?0:I.minutes;Z=I.seconds===void 0?0:I.seconds;Y=T>0;I=[];if(Y){T=(new Intl.NumberFormat("en-u-nu-latn")).format(T);var f=["fr"],P="az bs ca da de el es eu gl hr id is it km lo mk nl pt-BR ro sl sr sr-Latn tr vi".split(" "); T="af be bg cs et fi fr-CA hu hy ka kk ky lt lv no pl pt-PT ru sk sq sv uk uz".split(" ").includes(vo)?T.replace(",","\u00a0"):f.includes(vo)?T.replace(",","\u202f"):P.includes(vo)?T.replace(",","."):T;I.push(T)}Y=Y===void 0?!1:Y;d=(["af","be","lt"].includes(vo)||Y)&&d<10?pCB().format(d):(new Intl.NumberFormat("en-u-nu-latn")).format(d);I.push(d);d=pCB().format(Z);I.push(d);d=":";"da fi id si sr sr-Latn".split(" ").includes(vo)&&(d=".");return I.join(d)}; xgO=function(Z){Object.keys(Z).forEach(function(I){var d=Z[I];if(typeof d(void 0,{type:u4})==="undefined")throw Error('The slice reducer for key "'+I+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(typeof d(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+Gu()})==="undefined")throw Error('The slice reducer for key "'+ I+"\" returned undefined when probed with a random type. Don't try to handle '"+(u4+'\' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.'));})}; Kiu=function(Z){if(Z=Z.K_("html5_web_po_experiment_ids"))if(Z=Z.replace(/\[ *(.*?) *\]/,"$1"))return Z.split(",").map(Number);return[]}; J9B=function(){var Z=document.documentElement;try{if(!DQ(SV().top))return"2";var I=[],d=SV(Z.ownerDocument);for(Z=d;Z!=d.top;Z=Z.parent)if(Z.frameElement)I.push(Z.frameElement);else break;return I&&I.length!=0?"1":"0"}catch(Y){return"2"}}; i5=function(Z,I){throw Error(I===void 0?"unexpected value "+Z+"!":I);}; C8B=function(Z){this.Gm=bp(Z)}; g.kQ=function(Z,I,d,Y,T,f){g.zu.call(this,Z);this.videoId=d;this.S4=T;this.eventId=f;this.j={};this.L=null;Z=Y||g.Wt(I).hl||"";Z=Z.split("_").join("-");this.N=BX(I,{hl:Z})}; g.Xr=function(Z,I){return(I||document).getElementsByTagName(String(Z))}; ygJ=function(Z,I,d,Y){return I&&d.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?Z.map(function(T){return T instanceof yc?new SR(function(f){return Un(Y,f)},d.adSlotMetadata.slotId):T}):Z}; g.$Q=function(Z){var I,d,Y,T;return(g.tL(Z)?(I=Z.mJ)==null?void 0:(d=I.cards)==null?void 0:d.cardCollectionRenderer:(Y=Z.playerResponse)==null?void 0:(T=Y.cards)==null?void 0:T.cardCollectionRenderer)||null}; dKB=function(Z){Z=lI(Z);var I=[];g.TA(Z,function(d,Y){Y in Object.prototype||typeof d!="undefined"&&I.push([Y,":",d].join(""))}); return I}; pd=function(Z,I){Z.zz[Z.pending++]=I&255;Z.zz[Z.pending++]=I>>>8&255}; g.Kd=function(Z,I){I=I===void 0?!1:I;return Nn()&&Z.isTypeSupported('audio/mp4; codecs="mp4a.40.2"')||!I&&Z.canPlayType(xQ(),"application/x-mpegURL")?!0:!1}; bRJ=function(){ELn=Cd=EY=b4=null}; Ho=function(Z){this.Gm=bp(Z)}; EfJ=function(Z,I,d){if(!C_r(Z,I))return 0;if(!Z.TJ||!isNaN(d)&&d>0)return 2;if(I<0)return 1;d=Z.c$();return I=350)}; ITl=function(Z,I,d){var Y=I.type||0;(d==null?0:d.has(Y))?Z.Vb.push(I):Z.nE.push(Y)}; NT=function(Z){this.L=Z}; Ik9=function(Z,I,d,Y){if(Z)if(Array.isArray(Z)){var T=Y;for(Y=0;Y500));Y++);Y=T}else if(typeof Z==="object")for(T in Z){if(Z[T]){var f=T;var P=Z[T],O=I,a=d;f=typeof P!=="string"||f!=="clickTrackingParams"&&f!=="trackingParams"?0:(P=deL(atob(P.replace(/-/g,"+").replace(/_/g,"/"))))?gi(f+".ve",P,O,a):0;Y+=f;Y+=gi(T,Z[T],I,d);if(Y>500)break}}else d[I]=Hb(Z),Y+=d[I].length;else d[I]=Hb(Z),Y+=d[I].length;return Y}; oTu=function(Z){this.data=Z}; g.Lx=function(Z){return!!Z.L&&YWd(Z.L)}; MU=function(Z,I,d){Z=rd(Z,I===void 0?0:I,d===void 0?-1:d);I=new Uint8Array(Z.length);try{I.set(Z)}catch(Y){for(d=0;d=0&&I<=1?I:0;this.L=Z0))return I}; PTL=function(Z){return Z.D.some(function(I){return I.L.isToggled()})||Z.noneOfTheAbove.button.isToggled()}; QLi=function(Z){if(Z.Fm)if(Z.Ea(),Z.Fm.B)try{Z.U.Vy()&&Z.D1("rms",{l:"vprms",sr:Z.qj(),rs:f_(Z.Fm)});Z.Fm.clear();var I;(I=Z.mediaElement)!=null&&(I.D=Z.Fm);Z.Fm=null}catch(d){I=new g.Wj("Error while clearing Media Source in VideoPlayer: "+d.name+", "+d.message),I=w2(I),Z.handleError(I),Z.CZ()}else Z.CZ()}; Obr=function(Z){return Z.info.L.info.DR()&&O2(Z.D,0)===160}; Bdl=function(Z,I){var d=c5O();d&&(Z?PK(Z,61,aT9[d]):I&&(I.client.connectionType=d));g.x9("web_log_effective_connection_type")&&(d=WYn())&&(Z?PK(Z,94,ewl[d]):I&&(I.client.effectiveConnectionType=d))}; wGr=function(Z,I,d){I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next())Y=Y.value,Y.layout&&Sw(Z.L,Y.slot)&&$gd(Z,Y.slot,Y.layout,d)}; HuB=function(Z,I){if(Z.removed)Z=!0;else{I=new Qi(I,this);var d=Z.listener,Y=Z.handler||Z.src;Z.Od&&b8(Z);Z=d.call(Y,I)}return Z}; Vwa=function(Z){var I=Fj(Z.L).SM,d=I.N().Z7("SLOT_TYPE_PLAYER_BYTES",1);I=V1(I.V5.get(),1).clientPlaybackNonce;var Y=!1;d=g.t(d);for(var T=d.next();!T.done;T=d.next()){T=T.value;var f=T.slotType==="SLOT_TYPE_PLAYER_BYTES"&&T.slotEntryTrigger instanceof qx?T.slotEntryTrigger.f8:void 0;f&&f===I&&(Y&&Zv("More than 1 preroll playerBytes slot detected",T),Y=!0)}Y||O6(Fj(Z.L).QS)}; ar=function(Z,I){this.j=I===void 0?!1:I;this.L=this.D=this.Z=this.startTimestamp=0;this.N=!1;this.B=Math.ceil(Z/1E3)}; WK=function(Z,I){for(var d={},Y=g.t(Object.keys(Nd7)),T=Y.next();!T.done;T=Y.next()){T=T.value;var f=I?I+T:T;f=Z[f+"_webp"]||Z[f];g.lB(f)&&(d[Nd7[T]]=f)}return d}; FYd=function(){var Z={format:"jspb"};Z=Z===void 0?{}:Z;this.x9=Z.x9||g.gZ("suppressCorsPreflight",Z)||!1;this.withCredentials=Z.withCredentials||g.gZ("withCredentials",Z)||!1;this.Nq=Z.Nq||[];this.cA=Z.cA||[];this.Di=Z.Di;this.L=Z.Yg5||!1}; BK=function(Z,I,d){for(var Y=[],T;T=e7(Z,I);)Y.push(d(new WG(new OA([T]))));return Y.length?Y:void 0}; g.wo=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z"}}]}}; sLB=function(Z){Z.kS.clearAll();Z.D.clear();Z.L.clear();Z.B.clear();Z.sZ=[];Z.j=null;Z.R4.clear();Z.U.experiments.CS("html5_ssdai_log_missing_ad_config_reason")&&Z.Tm.clear();Z.In=[];Z.d4=[];Z.Tv=[];Z.EU=[];Z.M8.clear();Z.En.clear();Z.o4.clear();Z.y5.clear();Z.X=!1;Z.dD=0;Z.LS=!1;Z.w4=!1;Z.Wv=0;Z.sU=0;Z.Hk=!1;Z.fp=!1;Z.Z="";yDl(Z.app.J_());Vi(Z.app.J_(),Z.playback,!1);Z.Bj.clear();Z.V.isActive()&&dQ(Z)}; NW=function(Z,I){I&&g.UC(Z.element,pv(Z.L,I))}; Xs=function(Z){this.value=Z}; Qd=function(Z,I){var d=this;this.Zf=Z;this.requestNumber=++nTJ;this.L=this.now();this.X=this.In=NaN;this.V=this.L;this.Z=this.eK=this.B=0;this.j=this.L;this.d4=this.kS=this.j7=this.EU=this.sU=this.Bj=this.D=this.N=0;this.LS=this.isActive=!1;this.I0=this.y5=0;this.A9={L1m:function(){return d.OY}}; this.Bk=I.Bk;this.snapshot=Fe(this.Bk);this.policy=this.Bk.D;this.AE=!!I.AE;this.bL=I.bL;this.Hl=I.Hl||0;this.Yo=I.Yo||0;I.hn&&(this.fS=new s6);var Y;this.OY=(Y=I.OY)!=null?Y:!1;this.AE||Etu(this.Bk)}; hwJ=function(Z){this.D=Z}; me$=function(Z){var I=DZ();I&&(typeof Z==="number"&&(Z=[Z]),g.KM(Z,function(d){I.unsubscribeByKey(d);delete n_[d]}))}; qW$=function(Z,I){if(I==null||I=="")return new Z;I=JSON.parse(I);if(!Array.isArray(I))throw Error("dnarr");IP(I,32);return new Z(I)}; Bn9=function(){this.Z=void 0;this.D=this.j=0;this.B=-1;this.zv=new hm;GG(this.zv,"mv",SWn).L=!0;GG(this.zv,"omid",lb);GG(this.zv,"epoh",lb).L=!0;GG(this.zv,"epph",lb).L=!0;GG(this.zv,"umt",lb).L=!0;GG(this.zv,"phel",lb).L=!0;GG(this.zv,"phell",lb).L=!0;GG(this.zv,"oseid",A8$).L=!0;var Z=this.zv;Z.L.sloi||(Z.L.sloi=new mH);Z.L.sloi.L=!0;GG(this.zv,"mm",qW);GG(this.zv,"ovms",DeB).L=!0;GG(this.zv,"xdi",lb).L=!0;GG(this.zv,"amp",lb).L=!0;GG(this.zv,"prf",lb).L=!0;GG(this.zv,"gtx",lb).L=!0;GG(this.zv, "mvp_lv",lb).L=!0;GG(this.zv,"ssmol",lb).L=!0;GG(this.zv,"fmd",lb).L=!0;GG(this.zv,"gen204simple",lb);this.L=new J8u(Ot(),this.zv);this.N=!1;this.flags=new RwE}; deL=function(Z){function I(){return Z.charCodeAt(Y++)} var d=Z.length,Y=0;do{var T=S7(I);if(T===Infinity)break;var f=T>>3;switch(T&7){case 0:T=S7(I);if(f===2)return T;break;case 1:if(f===2)return;Y+=8;break;case 2:T=S7(I);if(f===2)return Z.substr(Y,T);Y+=T;break;case 5:if(f===2)return;Y+=4;break;default:return}}while(Y=1)for(var T=0;T0&&(I[T]=Y)},Z); return I}; vK=function(Z,I){I+=Z.Mm();var d;if(Z.playback.getVideoData().YF()){a:{var Y=I*1E3;Z=g.t(Z.L.D);for(d=Z.next();!d.done;d=Z.next()){d=d.value;var T=d.a6?d.a6*1E3:d.f_;if(Y>=d.f_-1E3&&Y<=T+d.durationMs+1E3){Y=d;break a}}Y=void 0}d={JE:Y,gZ:I}}else d=iT(Z,I),((Y=d)==null?0:Y.JE)||(d=iT(Z,I,1));var f;return(f=d)==null?void 0:f.JE}; zwa=function(Z){var I=Z.D;Z=Z.L;return Z===""?I:typeof Z==="boolean"?Z?I:"":Array.isArray(Z)?Z.length===0?I:I+"="+Z.join():I+"="+(g.Kc(["mtos","tos","p"],I)?Z:encodeURIComponent(Z))}; ln=function(Z){g.GA.call(this,Z,{K:"button",zm:["ytp-skip-intro-button","ytp-popup","ytp-button"],G:[{K:"div",T:"ytp-skip-intro-button-text",Z1:"Skip Intro"}]},100);var I=this;this.D=!1;this.L=new g.uX(function(){I.hide()},5E3); this.Tx=this.gb=NaN;g.z(this,this.L);this.V=function(){I.show()}; this.N=function(){I.hide()}; this.Z=function(){var d=I.S.getCurrentTime();d>I.gb/1E3&&d=0||PQ(Z,0,"gad_source",Z.search(QA))>=0}; ah=function(Z){var I=Z.L,d=Z.api.getCurrentTime(),Y=Z.api.cj().getPlayerSize(),T=OM(I,Y.width);T=aJJ(I,T,d);Z.update({timestamp:g.ft(d)});T!==Z.frameIndex&&(Z.frameIndex=T,W3O(I,T,Y.width),I=e3D(I,T,Y.width),BRE(Z.D,I,Y.width,Y.height))}; wM7=function(Z){var I=Z.api.C(),d=Z.api.getVideoData();d=g.WQ(I)+d.b5;if(!g.Dh(I))return d;I={};g.WR(Z.api,"addEmbedsConversionTrackingParams",[I]);return g.gq(d,I)}; V1$=function(Z,I,d,Y,T,f){f=f===void 0?!0:f;var P=Z.xF();if(!P)return f&&Z.getVideoData().isLivePlayback&&Z.rZ.push({id:I,J_S:d,dj4:Y}),!1;f=P-Z.getCurrentTime();return A6(Z,I,d-f,Y-f,void 0,void 0,T)}; NRr=function(Z){var I=!Z.C().by&&Z.getPresentingPlayerType()!==3;return Z.isFullscreen()||I}; $6=function(Z,I,d,Y,T){var f=g.gZ("yt.logging.errors.log");f?f(Z,"WARNING",I,d,Y,void 0,T):(f=g.rh("ERRORS",[]),f.push([Z,"WARNING",I,d,Y,void 0,T]),m9("ERRORS",f))}; eP=function(Z){Z=Z.Z.eD();return Z>0?Z:1}; BQ=function(Z){var I;return((I=Z.autoplaySwitchButtonRenderer)==null?void 0:I.enabled)!==void 0}; s7D=function(Z){var I=new Kt(Z);I.e3();if(wH(I,[408125543,374648427,174,224]))I=VA(I);else return null;for(var d=Z=null;!NX(I);){var Y=F2(I,!1);if(Y===21432)switch(BM(I)){default:Z=0;break;case 1:Z=1;break;case 3:Z=2;break;case 15:Z=255}else Y===30320?d=VA(I):sM(I)}if(!d)return null;for(var T,f=Y=I=null;!NX(d);)switch(F2(d,!1)){case 30321:if(BM(d)!==3)return null;break;case 30324:I=n8(d);break;case 30323:f=n8(d);break;case 30325:Y=n8(d);break;case 30322:T=F2(d,!0);T=hU(d,T);T=new DataView(T.buffer, T.byteOffset,T.byteLength);break;default:sM(d)}return T?new F3B(Z,I,f,Y,T):null}; nOa=function(Z){return{Ws:wd(Z,1),httpStatus:wd(Z,2),body:e7(Z,4)}}; mT=function(Z,I,d,Y,T,f){g2.call(this,Z,I,d,Y);this.Q5=T;this.N=f;this.B=dB(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; Vz7=function(){if(!h3u)return null;var Z=h3u();return"open"in Z?Z:null}; mQ7=function(){var Z=Promise.resolve(void 0);qX=function(){Z.then(ceB)}}; SP=function(Z){return!!Z.xl&&!!Z.xl.postId&&Z.api.getPresentingPlayerType()!==2&&(!Z.xl.type||Z.xl.type==="clips")}; IP=function(Z,I){ow||nL in Z||qEL(Z,SEJ);Z[nL]|=I}; g.AU=function(Z,I,d){var Y=d&&d>0?d:0;d=Y?Date.now()+Y*1E3:0;if((Y=Y?g.zo.lU():g.zo.NW())&&window.JSON){typeof I!=="string"&&(I=JSON.stringify(I,void 0));try{Y.set(Z,I,d)}catch(T){Y.remove(Z)}}}; R3B=function(Z,I){I instanceof DD&&(Z.w4=I);var d=new Set(I.Rl(Z.FQ()));d=g.t(d);for(var Y=d.next();!Y.done;Y=d.next()){var T=Y.value;if(!(Y=!(I instanceof JU))){Y=Z.Z;var f=Y.u5.Qy,P=kE(Y.videoInfos,f);f=Thi(Y,T,f);var O=P.includes(T);!Y.bu.Tc||f||O||Y.loader.D1("sabrcpf",{fid:""+T,vfids:""+P.join("."),said:Y.X||""});Y=f||P.includes(T)}if(Y&&(Y=I.gw(T,Z.FQ()),P=Z.policy.wz&&SI(Y[0].L.info.mimeType),I.Ra(T,Z.FQ())))for(T=I.eL(T,Z.FQ()),T=g.t(T),f=T.next();!f.done;f=T.next())if(f=f.value,Z.policy.Z&& I instanceof JU&&Z.loader.D1("omblss",{s:f.info.m5()}),P)O=Z.timing,O.LS||(O.LS=(0,g.o8)(),g.aI("fcb_r",O.LS,O.L)),O=Z,O.videoData.Qy()&&O.j&&W9(O.j)===W9(g.eU(f.info.L.info,O.u5.Qy))&&O.t5.publish("sabrCaptionsDataLoaded",f,O.JC.bind(O));else{O=f.info.L.info.iT();var a=f.info.L;if(O){var W=void 0;var e=Z.Z,B=(W=I.Ls(Z.FQ()))==null?void 0:W.token;e.V&&a!==e.B?W=!0:(e.V=!1,a!==e.B&&(e.B=a,e.QE(a,e.audioTrack,B)),W=!1);if(W)continue}else W=void 0,ASL(Z.Z,a,(W=I.Ls(Z.FQ()))==null?void 0:W.token);W=O? Z.audioTrack:Z.videoTrack;I instanceof JU&&(W.V=!1,I instanceof JU&&(O?DQa(Z.timing):JSD(Z.timing)));try{Rh(W,Y,f)}catch(w){f=w2(w),Z.loader.handleError(f.errorCode,f.details,f.severity),W.IL(),Z.Ha(!1,"pushSlice"),L8(Z.loader)}}}}; UQE=function(Z){for(var I=g.t(Object.values(L3L)),d=I.next();!d.done;d=I.next())if(g.vv(d.value)===Z)return!0;return!1}; lJ9=function(Z,I,d){if(Z.forEach&&typeof Z.forEach=="function")Z.forEach(I,d);else if(g.a8(Z)||typeof Z==="string")Array.prototype.forEach.call(Z,I,d);else for(var Y=ySn(Z),T=vO9(Z),f=T.length,P=0;P1?I=I.PQ:(d=yA(d,vQ(Z,Z.Zb(I,d),I)),I=Math.max(Z.B,d.timedOut)+I.Bt*(Z.Z-Z.B)+.25*Z.V,I=I>3?1E3*Math.pow(1.6,I-3):0);return I===0?!0:Z.In+I<(0,g.o8)()}; z$=function(Z){g.Me(Z.info.L.info)||Z.info.L.info.DR();if(Z.L&&Z.info.type===6)return Z.L.t$;if(g.Me(Z.info.L.info)){var I=g.j1(Z);var d=0;I=g.lC(I,1936286840);I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next())Y=XMi(Y.value),d+=Y.jT[0]/Y.timescale;d=d||NaN;if(!(d>=0))a:{d=g.j1(Z);I=Z.info.L.L;for(var T=Y=0,f=0;Tm(d,Y);){var P=iI(d,Y);if(P.type===1836476516)T=g.fz(P);else if(P.type===1836019558){!T&&I&&(T=OE(I));if(!T){d=NaN;break a}var O=uC(P.data,P.dataOffset,1953653094),a=O;O=T;var W=uC(a.data,a.dataOffset, 1952868452);a=uC(a.data,a.dataOffset,1953658222);var e=G$(W);G$(W);e&2&&G$(W);W=e&8?G$(W):0;var B=G$(a),w=B&1;e=B&4;var V=B&256,N=B&512,q=B&1024;B&=2048;var A=Bt(a);w&&G$(a);e&&G$(a);for(var F=w=0;F>>0)):(I=g.t(vf(Z,I)),Z=I.next().value,I=I.next().value,Z="-"+ia(Z,I)):Z=ia(Z,I);return Z}; j5E=function(Z){if(Z.L)return Z.L;if(Z.experimentIds.length<=1)return Z.L=Z.experimentIds,Z.L;var I=[].concat(g.c(Z.experimentIds)).map(function(Y){return Number(Y)}); I.sort();for(var d=I.length-1;d>0;--d)I[d]-=I[d-1];Z.L=I.map(function(Y){return Y.toString()}); Z.L.unshift("v1");return Z.L}; fq=function(Z){Z=Z.S.getVideoData();var I;if(I=Z.Y("web_player_defer_ad")){if(g.Kc(Z.Bj,"ad")||TvL(Z)||Z.enableServerStitchedDai)Z=!1;else{I=Z.playerResponse;Z=Z.startSeconds;var d=I==null?void 0:I.adPlacements;if(I=d){I=Number.MAX_VALUE;d=g.t(d);for(var Y=d.next();!Y.done;Y=d.next())if(Y=Y.value.adPlacementRenderer){var T=void 0,f=(T=Y.config)==null?void 0:T.adPlacementConfig;T=void 0;if(((T=f)==null?void 0:T.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var P=T=void 0;f=Number((T=f)==null?void 0:(P= T.adTimeOffset)==null?void 0:P.offsetStartMilliseconds)||0;P=T=void 0;Y=Number(((T=Y.renderer)==null?void 0:(P=T.adBreakServiceRenderer)==null?void 0:P.prefetchMilliseconds)||0);Y=f-Y;Y>31));ys(Z,16,I.SZZ);ys(Z,17,I.detailedNetworkType);ys(Z,18,I.Zk);ys(Z,19,I.k8);ys(Z,21,I.ytm);ys(Z,23,I.yN);ys(Z,28,I.I3);ys(Z,29,I.nH5);ys(Z,34,I.visibility);d=I.playbackRate;if(d!==void 0){var Y=new ArrayBuffer(4);(new Float32Array(Y))[0]=d;d=(new Uint32Array(Y))[0];if(d!==void 0)for(P9(Z,285),ij(Z,4),Y=0;Y<4;)Z.view.setUint8(Z.pos,d&255),d>>=8,Z.pos+=1,Y+=1}ys(Z,36,I.Ch); v8(Z,38,I.mediaCapabilities,ePE,3);ys(Z,39,I.K27);ys(Z,40,I.BH);ys(Z,44,I.playerState);Gd(Z,46,I.R1);ys(Z,48,I.EK);ys(Z,50,I.Sh);ys(Z,51,I.rH);ys(Z,54,I.PK);if(I.Fd)for(d=0;d.4?-1:1;return(I==0?null:I)==-1?"rtl":"ltr"}; qZ=function(Z,I,d,Y,T,f,P,O,a,W,e){I=W!=null?W:zi(Z.D.get(),"LAYOUT_TYPE_MEDIA_BREAK",I);W={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA_BREAK",r4:"adapter"};O=O(I);var B=dB(O.clientMetadata,"metadata_type_fulfilled_layout");B||Zv("Could not retrieve overlay layout ID during VodSkippableMediaBreakLayout creation. This should never happen.");var w=B?B.layoutId:"";d=[new Xj(d),new Q_(Y),new OK(T)];B&&d.push(new a1(B.layoutType));e&&d.push(new mW(e));return{layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA_BREAK", h5:f,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[new eb(Z.L,w)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"adapter",wj:d,Tb:P(W),adLayoutLoggingData:a,XF:O,rO:w}}; pv=function(Z,I){Z=Z===void 0?null:Z;I=I===void 0?null:I;if(Z==null)return g.uL(Error("Got null or undefined adText object")),"";var d=g.Fp(Z.text);if(!Z.isTemplated)return d;if(I==null)return g.uL(Error("Missing required parameters for a templated message")),d;Z=g.t(Object.entries(I));for(I=Z.next();!I.done;I=Z.next()){var Y=g.t(I.value);I=Y.next().value;Y=Y.next().value;d=d.replace("{"+I+"}",Y)}return d}; K_9=function(Z,I){return hRu(Z,yF(I,SF,1,vg),yF(I,dz,2,vg),A0(I,3,void 0,vg))}; eb=function(Z,I,d){this.triggeringLayoutId=I;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=d||Z(this.triggerType)}; vI=function(){var Z=this;this.B=!1;this.Z=this.N=0;this.j=new D6;this.A9={par:function(){Z.B=!0}, PfS:function(){return Z.L}, UNm:function(I){J0(Z,I)}, Jq:function(I){Z.Jq(I)}, yfS:function(I){RJ(Z,I)}, WC:function(){return Z.coldHashData}, l0:function(){return Z.hotHashData}, K7s:function(){return Z.D}, IW1:function(){return Lq()}, DU5:function(){return Uq()}, L75:function(){return g.gZ("yt.gcf.config.coldHashData")}, k8s:function(){return g.gZ("yt.gcf.config.hotHashData")}, SgS:function(){mwD(Z)}, Rl5:function(){Z.Jq(void 0);yl(Z);delete vI.instance}, AfJ:function(I){Z.Z=I}, hHJ:function(){return Z.Z}}}; g.vz=function(Z,I){this.id=Z;this.uo=I;this.captionTracks=[];this.Z=this.N=null;this.xtags="";this.B=!1;this.L=null;this.D="UNKNOWN";this.captionsInitialState="CAPTIONS_INITIAL_STATE_UNKNOWN";Z=this.uo.id.split(".");Z.length>1&&(this.B=Z[1]==="2")}; qRD=function(Z){var I=null;Z.L!=null&&(I=[Z.L.serviceEndpoint,Z.L.navigationEndpoint].filter(function(d){return d!=null}),Z.L.command&&(I=I.concat(Z.L.command))); return I||[]}; mN=function(Z,I){I=(I===void 0?0:I)?"EMBEDDED_PLAYER_MODE_DEFAULT":"EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(I="EMBEDDED_PLAYER_MODE_PFL");var d=Z.raw_embedded_player_response;if(!d&&(Z=Z.embedded_player_response))try{d=JSON.parse(Z)}catch(Y){return I}return d?AS(I,d.embeddedPlayerMode,SRl):I}; ARa=function(Z,I){if(I=I.content&&I.content.confirmDialogRenderer||null)Z.N=new la(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.Hj),g.z(Z,Z.N),Z.N.init(Ai("ad-mute-confirm-dialog"),I,Z.macros),Z.N.i5(Z.fS),Z.N.subscribe("b",function(){return Z.publish("c")})}; JRr=function(Z,I,d){var Y,T,f,P,O,a,W;return g.h(function(e){if(e.L==1){f=((Y=I)==null?void 0:(T=Y.KD)==null?void 0:T.identity)||ua;a=(P=I)==null?void 0:(O=P.KD)==null?void 0:O.sessionIndex;var B=g.wL(Z.L.VP(f,{sessionIndex:a}));return g.m(e,B,2)}W=e.D;return e.return(Promise.resolve(Object.assign({},Dw$(d),W)))})}; MA=function(Z,I,d,Y){Y=Y===void 0?!1:Y;if(d.indexOf(I)>-1)throw Error("Deps cycle for: "+I);if(Z.D.has(I))return Z.D.get(I);if(!Z.L.has(I)){if(Y)return;throw Error("No provider for: "+I);}Y=Z.L.get(I);d.push(I);if(Y.pO!==void 0)var T=Y.pO;else if(Y.st5)T=Y[GD]?buu(Z,Y[GD],d):[],T=Y.st5.apply(Y,g.c(T));else if(Y.To){T=Y.To;var f=T[GD]?buu(Z,T[GD],d):[];T=new (Function.prototype.bind.apply(T,[null].concat(g.c(f))))}else throw Error("Could not resolve providers for: "+I);d.pop();Y.xZ5||Z.D.set(I,T); return T}; RPi=function(Z,I){if(Z.L==0)if(Z.Z){var d=Z.Z;if(d.D){for(var Y=0,T=null,f=null,P=d.D;P&&(P.N||(Y++,P.L==Z&&(T=P),!(T&&Y>1)));P=P.next)T||(f=P);T&&(d.L==0&&Y==1?RPi(d,I):(f?(Y=f,Y.next==d.N&&(d.N=Y),Y.next=Y.next.next):Lcl(d),LzE(d,T,3,I)))}Z.Z=null}else BR(Z,3,I)}; UwB=function(Z){var I=Wv(Z,function(T,f){return T+f.length},0); I=new Uint8Array(I);var d=0;Z=g.t(Z);for(var Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,I.set(Y,d),d+=Y.length;return I}; zD=function(Z){this.Gm=bp(Z)}; XF=function(Z,I,d,Y,T){Y=Y===void 0?!1:Y;T=T===void 0?!1:T;kU.call(this,d);this.isLive=Y;this.V=!!T;this.levels=this.D(Z,I);this.N=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; xQ=function(){var Z=g.gZ("yt.player.utils.videoElement_");Z||(Z=g.vX("VIDEO"),g.zb("yt.player.utils.videoElement_",Z));return Z}; ys=function(Z,I,d){d!==void 0&&(P9(Z,I*8),P9(Z,d))}; U4=function(Z,I){return yRr(Z,I||{},!1)}; t0=function(Z){for(;Z.L.length&&Z.L[0].Mz(Z.FQ());){var I=Z.L.shift();R3B(Z,I)}Z.L.length&&R3B(Z,Z.L[0])}; $U=function(Z){return Z.S.C().experiments.CS("enable_desktop_player_underlay")}; vxL=function(Z){return Z.V||Z.Y("web_player_media_session_infinity")&&Z.isLivePlayback}; uEJ=function(Z,I,d,Y,T,f){var P=llD++;return new pq({veType:Z,veCounter:P,elementIndex:d,dataElement:I,youtubeData:Y,jspbYoutubeData:T,loggingDirectives:f})}; Cq=function(Z,I,d){I=xU(I);I!=null&&I!=null&&(Kq(Z,d,0),BLO(Z.L,I))}; yD=function(){wD.call(this)}; knD=function(Z,I,d,Y,T){if(!Y.info.N){if(d.length===0)d.push(Y);else{var f;(Z=(f=d.pop())==null?void 0:g.Eq(f,Y))?d.push(Z):d.push(Y)}return T}var P;(d=(P=d.pop())==null?void 0:g.Eq(P,Y))||(d=Y);if(d.info.D)return Z.logger&&Z.logger({incompleteSegment:d.info.m5()}),T;Y=Z.s$(d);T=Y.YS;Y={clipId:Y.clipId,formatId:Y.formatId,startTimeMs:Y.startTimeMs,durationMs:Y.dJ,Ye:T,Id:T};T=GnJ(I,Y.startTimeMs);if(f=d=T>=0?I[T]:null){f=Y;var O=T;P=d.startTimeMs+d.durationMs;var a=f.startTimeMs+f.durationMs;if(f.startTimeMs- P>Z.D)f=!1;else if(zP$(Z,d.formatId,f.formatId))d.durationMs=Math.max(P,a)-d.startTimeMs,d.Id=Math.max(d.Id,f.Id),f=!0;else if(Math.abs(d.startTimeMs-f.startTimeMs)<=Z.D)if(d.durationMs>f.durationMs+Z.D){var W=d.formatId,e=d.Ye;O=d.Id;d.formatId=f.formatId;d.durationMs=f.durationMs;d.Ye=f.Ye;d.Id=f.Id;f.formatId=W;f.startTimeMs=a;f.durationMs=P-a;f.Ye=e;f.Id=O;f=!1}else d.formatId=f.formatId,f=!0;else P>f.startTimeMs&&(P>a&&(I.splice(O+1,0,{formatId:d.formatId,startTimeMs:a,durationMs:P-a,Ye:f.Id+ 1,Id:d.Id}),Z.logger&&Z.logger({splitOldStart:(W=d.startTimeMs)==null?void 0:W.toFixed(3),splitOldEnd:P==null?void 0:P.toFixed(3),splitNewStart:(e=f.startTimeMs)==null?void 0:e.toFixed(3),splitNewEnd:a==null?void 0:a.toFixed(3)})),d.durationMs=f.startTimeMs-d.startTimeMs,d.Id=f.Ye-1),f=!1}f?Y=d:(T+=1,I.splice(T,0,Y));W=0;for(e=T+1;e=a+d.D?d=!0:O+d.D=f){var P=Z[f];if(P!=null&&typeof P==="object"&&P.constructor===Object){d=P[I];var O=!0}else if(T===f)d=P;else return}else d=Z[T];if(Y&&d!=null){Y=Y(d);if(Y==null)return Y;if(!Object.is(Y,d))return O?P[I]=Y:Z[T]=Y,Y}return d}}; Zj=function(Z,I){return MZ(Z,I,function(d){return d.L})}; xw9=function(Z,I){Z=Z===void 0?{}:Z;I=I===void 0?{}:I;g.p.call(this);var d=this;this.values=Z;this.A2=I;this.D={};this.Z=this.L=0;this.N=new g.uX(function(){T2D(d)},1E4); g.z(this,this.N)}; Kzd=function(Z,I,d){return TRl(new r_(Z,I,d),Z)}; ZR=function(Z,I){(Z.loader=I)?sA(Z,!0):dE(Z)}; Exi=function(Z,I){g.IA(Z.D,I,function(d,Y){return d.f_===Y.f_?d.durationMs-Y.durationMs:d.f_-Y.f_}); Z.Z.set(I.cpn,I);I.uQ&&!Z.B&&Z.N.set(I.uQ,I);I.nA&&CB7(Z,I.nA,I)}; dK=function(Z,I){Z.D=!!I;Z.L(Z.S.cj().getPlayerSize())}; oA=function(Z,I){if((Z=Z.L.get(I))==null)Z=void 0;else{Z=Z.buffer;for(I=[];Z.D!==Z.L;)Z.D=(Z.D+1)%Z.data.length,I.push(Z.data[Z.D]);Z=I}return Z||[]}; ba7=function(Z,I,d){Z.Z=!1;throw Error("The stream is broken @"+Z.D+". Error: "+d+". With input:\n"+I);}; QF=function(Z,I,d,Y,T,f,P,O){this.sampleRate=Z===void 0?0:Z;this.numChannels=I===void 0?0:I;this.spatialAudioType=d===void 0?"SPATIAL_AUDIO_TYPE_NONE":d;this.L=Y===void 0?!1:Y;this.Z=T;this.N=f;this.audioQuality=P===void 0?"AUDIO_QUALITY_UNKNOWN":P;this.D=O===void 0?!1:O}; huJ=function(Z,I,d,Y){(Z=g.iN[Z])||typeof document==="undefined"||(Z=(new vC(document)).get(I));return Z?nt9(Z,d,Y):null}; HaL=function(Z,I,d){var Y=Z.b5||Z.app.l5().getPlayerState();Yo(Z,!0);Z.playback.seekTo(I,d);Z=Z.app.l5();I=Z.getPlayerState();Y.isOrWillBePlaying()&&!I.isOrWillBePlaying()?Z.playVideo():Y.isPaused()&&!I.isPaused()&&Z.pauseVideo()}; qx=function(Z,I,d){this.f8=I;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=d||Z(this.triggerType)}; BqD=function(Z){this.slot=Z;this.Ns=new Map;this.LS=new Map;this.In=new Map;this.kS=new Map;this.Z=this.layout=this.D=this.V=void 0;this.j=this.B=!1;this.X=[];this.L="not_scheduled";this.N="not_filled"}; Bs=function(Z,I,d){this.triggeringLayoutId=I;this.triggerType="TRIGGER_TYPE_SURVEY_SUBMITTED";this.triggerId=d||Z(this.triggerType)}; gxl=function(Z){if(!cRB(Z))return!1;Z=g.y(Z.adStart,YI);return Z?jA(Z)?!0:(Zv("Invalid LASR with notify"),!1):!1}; MWJ=function(Z){var I;Z=Z==null?void 0:(I=Z.error)==null?void 0:I.code;return!(Z!==400&&Z!==415)}; io=function(Z,I,d){var Y=g.zm(Z.macros),T=g.C2(I);Y.AW={toString:function(){return T.width.toString()}}; Y.AH={toString:function(){return T.height.toString()}}; var f=g.S6(d,I).floor();Y.I_X={toString:function(){return f.x.toString()}}; Y.NX={toString:function(){return f.x.toString()}}; Y.I_Y={toString:function(){return f.y.toString()}}; Y.NY={toString:function(){return f.y.toString()}}; Y.NM={toString:function(){return Z.kS.toString()}}; I=g.t(Z.X);for(d=I.next();!d.done;d=I.next())d=d.value,Z.layoutId?TX(Z.Hj,d,Z.layoutId,Y):g.nl(Error("Missing layoutId for invideo_overlay_ad."));Z.api.pauseVideo()}; rRi=function(Z){if(Z.api.C().Y("web_player_log_click_before_generating_ve_conversion_params"))for(var I=Math.floor(-Z.scrollPosition/(Z.N+8)),d=Math.min(I+Z.columns,Z.suggestionData.length)-1;I<=d;I++)Z.api.logVisibility(Z.L[I].element,!0)}; c9=function(Z,I){var d;return g.h(function(Y){d=Z.D;if(!d||d.QQ())return Y.return(c9(Z.network,I));c6("att_pna",void 0,"attestation_challenge_fetch");return Y.return(new Promise(function(T){d.rL("publicytnetworkstatus-online",function(){c9(Z.network,I).then(T)})}))})}; fS=function(){var Z;return(Z=g.T2("yt-player-performance-cap-active-set"))!=null?Z:[]}; g.PA=function(Z,I,d){this.name=Z;this.id=I;this.isDefault=d}; TE9=function(Z){var I=Z.S.getPlayerSize(),d=Z.S.C(),Y=Z.S.getVideoData(),T=g.Dh(d)&&g.e0(Z.S)&&g.b(Z.S.getPlayerStateObject(),128),f=d.Z;return d.du&&I.width>=240&&!Y.isAd()&&Y.du&&!T&&!Y.IN&&!Z.S.isEmbedsShortsMode()&&!f}; Zr7=function(Z){return typeof Z.className=="string"?Z.className:Z.getAttribute&&Z.getAttribute("class")||""}; WA=function(Z,I){var d,Y=QB(Z,(d=I.L)==null?void 0:d.videoInfos);d=Z.t5.getPlaybackRate();return d>1&&Y?(Z=IAn(Z.U.B,I.L.videoInfos,d),new mY(0,Z,!0,"o")):new mY(0,0,!1,"o")}; dMl=function(Z){var I=this;this.D=void 0;this.L=!1;Z.addEventListener("beforeinstallprompt",function(d){d.preventDefault();I.D=d}); Z.addEventListener("appinstalled",function(){I.L=!0},{once:!0})}; oc$=function(Z,I,d){d=d===void 0?Z.C().schedule:d;var Y,T,f,P,O,a,W,e,B,w,V,N,q,A,F,J,v,l,X,H,x,Id,TB,dD,Qu,Zr;return g.h(function(sJ){if(sJ.L==1)return I.fetchType="onesie",Y=OcB(I,Z.getPlayerSize(),Z.getVisibilityState()),T=new JU(Z,Y,d),g.m(sJ,T.fetch(),2);f=sJ.D;P={player_response:f};I.loading=!1;O=Z.q8.V4;if(T.My){a=g.t(T.My.entries());for(W=a.next();!W.done;W=a.next())e=W.value,B=g.t(e),w=B.next().value,V=B.next().value,N=w,q=V,O.L.set(N,q,180),N===I.videoId&&(A=q.Rl(),I.UA=A);O.Eo=T}F=g.t(T.Ln.entries()); for(J=F.next();!J.done;J=F.next())v=J.value,l=g.t(v),X=l.next().value,H=l.next().value,x=X,Id=H,O.D.set(x,Id,180);g.eA(I,P,!0);if(I.loading||BA(I))return sJ.return(Promise.resolve());O.L.removeAll();O.D.removeAll();I.UA=[];TB={};dD="onesie.response";Qu=0;I.errorCode?(dD="auth",TB.ec=I.errorCode,TB.ed=I.errorDetail,TB.es=I.aU||"",Qu=2):(TB.successButUnplayable="1",TB.disposed=""+ +I.OZ(),TB.afmts=""+ +/adaptiveFormats/.test(f),TB.cpn=I.clientPlaybackNonce);Zr=new g.dj(dD,TB,Qu);return sJ.return(Promise.reject(Zr))})}; wK=function(Z,I){Z=Number(g.O4(I,Z.D,Z.Z).toFixed(2));I=Math.floor((Z+.001)*100%5+2E-15);var d=Z;I!==0&&(d=Z-I*.01);return Number(d.toFixed(2))}; VB=function(Z){var I=g.y(Z.renderingContent,l0);if(I==null?0:I.pings)return yO(I.pings);Z=g.y(Z.renderingContent,zz);return(Z==null?0:Z.skipPings)?new Map([["skip",Z.skipPings]]):new Map}; Yfi=function(Z){var I;return((I=Z.Z)==null?void 0:I.currentVideoDuration)||-1}; g.N5=function(Z){Z=jOi(Z);return Oy(Z)}; T1O=function(Z){F_(Z);return Z.data.map(function(I){return I.value})}; $K=function(Z){switch(Z.D){case 0:Z.D!=0?$K(Z):sU(Z.L);break;case 1:Z=Z.L;Gx(Z,Z.L+8);break;case 2:if(Z.D!=2)$K(Z);else{var I=V8(Z.L)>>>0;Z=Z.L;Gx(Z,Z.L+I)}break;case 5:Z=Z.L;Gx(Z,Z.L+4);break;case 3:I=Z.Z;do{if(!Ppr(Z))throw Error();if(Z.D==4){if(Z.Z!=I)throw Error();break}$K(Z)}while(1);break;default:throw Error();}}; Q8L=function(Z,I){nF(Z.j,function(d){return d.N==I.N})||Z.j.push(I)}; nS=function(Z){return Z.w4&&Z.isManifestless?Z.isLiveHeadPlayable:Z.isLive}; ir$=function(){if(k8.getEntriesByType){var Z=k8.getEntriesByType("paint");if(Z=g.Xe(Z,function(d){return d.name==="first-paint"}))return hW(Z.startTime)}var I; g.x9("csi_use_performance_navigation_timing")?I=k8.getEntriesByType("first-paint")[0].startTime:I=k8.timing.mN4;return I?Math.max(0,I):0}; ujL=function(Z){for(var I=Array(Z.L),d=0;d0&&Y.height>0){Y=[Math.round(Y.width),Math.round(Y.height)];var T=g.HO();T>1&&Y.push(T);g.Vt(Z,d,"view",Y)}Z.y5||(Z.provider.U.Vy()&&q5(Z,"rqs2"),Z.provider.videoData.L&&fw(Z.provider.videoData.L)&&Z.L.set("preload",["1"]));Z.y5= !0;Z.N=!0}I.reason==="m"&&++Z.kF===100&&AA(Z,2);g.Vt(Z,d,"vps",[Z.JZ]);Z.Ns||Z.reportStats(d)}; SA=function(Z,I,d,Y){Y=new g.k({K:"div",zm:["ytp-linked-account-popup-button"],Z1:Y,J:{role:"button",tabindex:"0"}});I=new g.k({K:"div",T:"ytp-linked-account-popup",J:{role:"dialog","aria-modal":"true",tabindex:"-1"},G:[{K:"div",T:"ytp-linked-account-popup-title",Z1:I},{K:"div",T:"ytp-linked-account-popup-description",Z1:d},{K:"div",T:"ytp-linked-account-popup-buttons",G:[Y]}]});g.GA.call(this,Z,{K:"div",T:"ytp-linked-account-popup-container",G:[I]},100);var T=this;this.dialog=I;g.z(this,this.dialog); Y.listen("click",function(){T.zb()}); g.z(this,Y);g.iS(this.S,this.element,4);this.hide()}; AW=function(Z){Z=Z.split("-");var I=Number(Z[0]),d=Number(Z[1]);if(!isNaN(I)&&!isNaN(d)&&Z.length===2&&(Z=new j7(I,d),!isNaN(Z.start)&&!isNaN(Z.end)&&!isNaN(Z.length)&&Z.length>0))return Z}; wTL=function(Z){var I=DR();switch(I){case 1:JW.h5vcc.traceEvent.traceEnd("YTLR",Z);break;case 2:I=Z+"-start";var d=Z+"-end";JW.performance.mark(d);JW.performance.measure(Z,I,d);break;case 0:break;default:i5(I,"unknown trace type")}}; Zv=function(Z,I,d,Y,T){Y=Y===void 0?{}:Y;if(!T||Math.random()<5E-4){I=I||null;d=d||null;Z=Z instanceof Error?Z:new g.Wj(Z);if(Z.args)for(var f=g.t(Z.args),P=f.next();!P.done;P=f.next())P=P.value,P instanceof Object&&(Y=Object.assign({},P,Y));Y.category="H5 Ads Control Flow";I&&(Y.slot=I?"slot: "+I.slotType:"");d&&(Y.layout=RA(d),Y.layoutId=d.layoutId);T&&(Y.known_error_aggressively_sampled=!0);Z.args=[Y];g.uL(Z)}}; Yt=function(Z,I){for(var d in Z)!isNaN(d)&&I(Z,+d,Z[d])}; LS=function(Z){this.value=Z}; N1B=function(Z,I){var d=VSn;return Object.prototype.hasOwnProperty.call(d,Z)?d[Z]:d[Z]=I(Z)}; vA=function(Z){Z.OZ();if(!Z.Wa.finished&&Z.wE.finished&&!g.b(Z.playerState,128)&&!Z.uV.length){if(!Z.UV.started){var I=Z.UV;I.started=!0;I.sync()}if(!Z.Wl()){Z.loader&&(I=Z.loader.timing,Z.g6=!!I.D&&!!I.Z);Z.Wa.finished||(Z.Wa.finished=!0);I=Z.Y("html5_onesie_live")&&Z.loader&&!isNaN(Z.loader.fS);!Z.videoData.isLivePlayback||Z.videoData.I0>0&&!FI(Z.videoData)||I||cs(Z)||(Z.seekTo(Infinity,{H$:"videoplayer_readying",seekSource:18}),Z.isBackground()&&(Z.Hr=!0));I=Z.wK;if(I.qoe){I=I.qoe;for(var d=I.provider.videoData, Y=I.provider.U,T=g.t(Y.s_),f=T.next();!f.done;f=T.next())q5(I,f.value);if(I.provider.Y("html5_enable_qoe_cat_list"))for(T=g.t(d.BS),f=T.next();!f.done;f=T.next())q5(I,f.value);else d.s_&&q5(I,I.provider.videoData.s_);d.Qy()&&(T=d.L,FI(d)&&q5(I,"manifestless"),T&&vR(T)&&q5(I,"live-segment-"+vR(T).toFixed(1)));j2(d)?q5(I,"sabr"):I.S5(iv(d));if(AB(d)||d.YF())d.YF()&&q5(I,"ssa"),q5(I,"lifa");UU(d)&&q5(I,"cdm");I.provider.videoData.xd&&q5(I,"mvtile");d.gatewayExperimentGroup&&(T=d.gatewayExperimentGroup, T==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?T="spkadtrt":T==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(T="spkadctrl"),q5(I,T));Y.LS!=="yt"&&I.L.set("len",[d.lengthSeconds.toFixed(2)]);d.cotn&&!yB(d)&&I.c8(!0);Y.Vy()&&(d=F8$())&&I.D1("cblt",{m:d});if(Y.Y("html5_log_screen_diagonal")){Y=I.D1;var P;d=((P=window.H5vccScreen)==null?0:P.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;Y.call(I,"cbltdiag",{v:d})}}Z.publish("playbackready");H6("pl_c",Z.KM.timerName)||(Z.KM.tick("pl_c"),c6("pl_c",void 0, "video_to_ad"));H6("pbr",Z.KM.timerName)||(Z.KM.tick("pbr"),c6("pbr",void 0,"video_to_ad"))}}}; g.lo=function(Z,I){typeof Z==="function"&&(Z=g.t6(Z));return window.setTimeout(Z,I)}; g.$I=function(Z){this.Og=Z}; g.sOa=function(Z){return Z.captionsLanguagePreference||Z.nS.captionsLanguagePreference||g.pS(Z,"yt:cc_default_lang")||Z.nS.En}; g.xI=function(Z){var I=Z.C(),d=g.h_||g.Cb?{style:"will-change: opacity"}:void 0,Y=I.N,T=["ytp-modern-videowall-still"];I.D&&T.push("ytp-videowall-show-text");g.k.call(this,{K:"a",zm:T,J:{href:"{{url}}",target:Y?I.In:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},G:[{K:"div",T:"ytp-modern-videowall-still-image",J:{style:"{{background}}"},G:[{K:"span",T:"ytp-modern-videowall-still-info-duration",Z1:"{{duration}}"}]},{K:"span",T:"ytp-modern-videowall-still-info", J:{"aria-hidden":"true"},G:[{K:"span",T:"ytp-modern-videowall-still-info-bg",G:[{K:"span",T:"ytp-modern-videowall-still-info-content",J:d,G:[{K:"span",T:"ytp-modern-videowall-still-info-title",Z1:"{{title}}"},{K:"span",T:"ytp-modern-videowall-still-info-author",Z1:"{{author}}"},{K:"span",T:"ytp-modern-videowall-still-view-count-and-date-info",Z1:"{{views_and_publish_time}}"},{K:"span",T:"ytp-modern-videowall-still-info-live",Z1:"Live"}]}]}]},{K:"span",zm:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],J:{"aria-hidden":"true"},G:[{K:"span",T:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{K:"span",T:"ytp-modern-videowall-still-listlabel-length",G:[" (",{K:"span",Z1:"{{playlist_length}}"},")"]}]},{K:"span",zm:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],J:{"aria-hidden":"true"},G:[{K:"span",T:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{K:"span",T:"ytp-modern-videowall-still-listlabel-length",Z1:" (50+)"}]}]}); this.suggestion=null;this.D=Y;this.api=Z;this.L=new g.De(this);g.z(this,this.L);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.L.W(Z,"videodatachange",this.onVideoDataChange);Z.createServerVe(this.element,this);this.onVideoDataChange()}; ncu=function(Z){if(dB(Z.slot.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule")){var I=Ola(Z,Z.slot);qg(Z.L.get(),"OPPORTUNITY_TYPE_PAUSE_AD_BREAK_REQUEST_SLOT_RESCHEDULE",function(){return[I]})}}; mMi=function(Z,I,d){if(UY(Z.L,I))if(Fc(Z.L,I).N=d?"filled":"not_filled",d===null){Z.Wk.IB("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",I);d=g.t(Z.D);for(var Y=d.next();!Y.done;Y=d.next())Y.value.T9(I);h3(Z,I,!1)}else{Z.Wk.IB("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",I,d);Z.Wk.IB("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",I,d);var T,f=(T=d.Ai)!=null?T:dB(d.clientMetadata,"metadata_type_sub_layouts");if(f)for(T=g.t(f),f=T.next();!f.done;f=T.next())Z.Wk.IB("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", I,f.value);T=g.t(Z.D);for(f=T.next();!f.done;f=T.next())f.value.VQ(I);if(UY(Z.L,I))if(Fc(Z.L,I).B)h3(Z,I,!1);else{Z.Wk.IB("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",I,d);try{Y=Z.L;if(!Fc(Y,I))throw new j$("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!Y.WO.zE.get(I.slotType))throw new j$("No LayoutRenderingAdapterFactory registered for slot of type: "+I.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(d.layoutExitNormalTriggers.length==0&&d.layoutExitSkipTriggers.length==0&&d.layoutExitMuteTriggers.length==0&&d.layoutExitUserInputSubmittedTriggers.length==0&&d.layoutExitUserCancelledTriggers.length==0)throw new j$("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");KS(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",d.layoutExitNormalTriggers);KS(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",d.layoutExitSkipTriggers);KS(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED", d.layoutExitMuteTriggers);KS(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",d.layoutExitUserInputSubmittedTriggers);KS(Y,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",d.layoutExitUserCancelledTriggers)}catch(W){W instanceof j$?Z.b8(I,d,W,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):Z.b8(I,d,new j$("Unexpected error: "+W,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");h3(Z,I,!0);return}Fc(Z.L,I).j=!0;try{var P=Z.L,O=Fc(P,I),a=P.WO.zE.get(I.slotType).get().build(P.N, P.D,I,d);a.init();O.layout=d;if(O.Z)throw new j$("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");O.Z=a;CS(P,O,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",d.layoutExitNormalTriggers);CS(P,O,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",d.layoutExitSkipTriggers);CS(P,O,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",d.layoutExitMuteTriggers);CS(P,O,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",d.layoutExitUserInputSubmittedTriggers); CS(P,O,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",d.layoutExitUserCancelledTriggers)}catch(W){mi(Z,I);W instanceof j$?Z.b8(I,d,W,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):Z.b8(I,d,new j$("Unexpected error: "+W,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");h3(Z,I,!0);return}Z.Wk.IB("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",I,d);Y=g.t(Z.D);for(P=Y.next();!P.done;P=Y.next())P.value.Uf(I,d);mi(Z,I);h99(Z,I)}else Z=Z.Ms.get(),g.V4(Z.S.C())|| EU(Z.S.C())||g.RK(Z.S.C())?Z=!0:(Zv("Composite VOD on legacy path."),Z=!1),Z&&Zv("slot is unscheduled after been fulfilled.",I,d)}}; qf7=function(Z,I){I.androidOsExperience&&(Z.L.caoe=""+I.androidOsExperience);I.androidPlayServicesVersion&&(Z.L.capsv=""+I.androidPlayServicesVersion);I.brand&&(Z.L.cbrand=I.brand);I.browser&&(Z.L.cbr=I.browser);I.browserVersion&&(Z.L.cbrver=I.browserVersion);I.cobaltReleaseVehicle&&(Z.L.ccrv=""+I.cobaltReleaseVehicle);Z.L.c=I.interfaceName||"WEB";Z.L.cver=I.interfaceVersion||"html5";I.interfaceTheme&&(Z.L.ctheme=I.interfaceTheme);Z.L.cplayer=I.interfacePlayerType||"UNIPLAYER";I.model&&(Z.L.cmodel= I.model);I.network&&(Z.L.cnetwork=I.network);I.os&&(Z.L.cos=I.os);I.osVersion&&(Z.L.cosver=I.osVersion);I.platform&&(Z.L.cplatform=I.platform);var d=bo(Z.experiments,"html5_log_vss_extra_lr_cparams_freq");if(d==="all"||d==="once")I.chipset&&(Z.Yl.cchip=I.chipset),I.cobaltAppVersion&&(Z.Yl.ccappver=I.cobaltAppVersion),I.firmwareVersion&&(Z.Yl.cfrmver=I.firmwareVersion),I.deviceYear&&(Z.Yl.crqyear=I.deviceYear)}; As$=function(Z){var I=I===void 0?!1:I;return xv(K8(Z,Sfu),Z,I,"Trusted Ad Domain URL")}; JU=function(Z,I,d){d=d===void 0?Z.C().schedule:d;g.p.call(this);var Y=this;this.t5=Z;this.playerRequest=I;this.Bk=d;this.logger=new g.qj("onesie");this.xhr=null;this.state=1;this.t6=new HA;this.kP=!1;this.playerResponse="";this.Ah=new cA(this);this.HT=new gK(this);this.Jk="";this.BQ=this.uD=!1;this.Jp="";this.enableCompression=this.Rj=this.F6=!1;this.E8=[];this.C0=-1;this.xI=0;this.U=this.t5.C();this.videoData=this.t5.getVideoData();this.Vq=this.U.Vy();this.dU=this.U.EU;this.OR=new M5(this.dU.L); this.U8=this.U.Y("html5_onesie_check_timeout");this.B4=new g.uX(this.ZV,500,this);this.Tk=new g.uX(this.wp,1E4,this);this.Ft=new g.uX(function(){if(!Y.isComplete()){var T=rK(Y);Y.fail(new g.dj("net.timeout",T))}},1E3); this.w3=new g.uX(this.Rr5,2E3,this);this.Q0=this.t5.gI();this.gQ=this.Y("html5_onesie_wait_for_media_availability");g.z(this.videoData,this);g.z(this,this.B4);g.z(this,this.Tk);g.z(this,this.w3);Z=Nn();OC&&Z&&(this.My=new Map);this.Ln=new Map;this.HG=new Map;this.Kx=new Map;this.Ts=new Map}; Jsu=function(Z,I){var d,Y=(d=window.screen)==null?void 0:d.orientation;if(Z.U.V&&Y&&Y.lock&&(!g.h_||!DMD))if(I){I=Y.type.indexOf("portrait")===0;d=Z.template.getVideoAspectRatio();var T=I;d<1?T=!0:d>1&&(T=!1);Z.V_&&T===I||(Y=Y.lock(T?"portrait":"landscape"),Y!=null&&Y.catch(function(){}),Z.V_=!0)}else Z.V_&&(Z.V_=!1,Y.unlock())}; g.Z4=function(Z,I,d){Z.L.createIndex(I,d,{unique:!1})}; vtd=function(Z,I,d,Y){I.durationMs=d;I.Mc=Y;(Y=Z.Bj.get(I.cpn))?Y.cT(d/1E3):Z.t9({nop_d:I.cpn})}; R9l=function(Z,I){if(I.L.video.quality==="auto"&&Iu(I.getInfo())&&Z.videoData.Tv)for(var d=g.t(Z.videoData.Tv),Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,Y.getHeight()===Z.QY&&Y.L.video.quality!=="auto")return Y.getInfo();return I.getInfo()}; Fo=function(Z,I){return function(d){return L89(dJ(Z),I.slotId,I.slotType,I.slotPhysicalPosition,I.r4,I.slotEntryTrigger,I.slotFulfillmentTriggers,I.slotExpirationTriggers,d.layoutId,d.layoutType,d.r4)}}; Fj=function(Z){return Z.L.er}; UMJ=function(Z){Z.L.forEach(function(I){ou(Z,I)})}; mRD=function(Z,I){return ysL(function(d){return d.publicName===Z&&d.userIdentifier!==void 0},I)}; sxD=function(Z,I,d){var Y=I.ue,T=I.getMetadata(),f=V2L(Z,!0);Z=tql(Z,T,f,d+Y.getName());d=vc7(f,Y.D,!1);lAl(d,T["X-Goog-Encode-Response-If-Executable"]==="base64");I=Y.L(I.nx);f.send(Z,"POST",I);return d}; iW=function(Z){return Y3(Z)?Z:jX(Z)?new TT(function(I,d){Z.then(I,d)}):new TT(function(I){I(Z)})}; fX=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ytp-video-interstitial-buttoned-centered-layout",J:{tabindex:"0"},G:[{K:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content",G:[{K:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{K:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",G:[{K:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{K:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {K:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{K:"div",T:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{K:"div",T:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",I,d,Y);this.D=null;this.N=this.KS("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.Z=new oK;g.z(this,this.Z);this.hide()}; tS9=function(){var Z=["pbs","pbu"];g.t6(function(){Pi("").info.actionType="watch";Z&&m9("TIMING_AFT_KEYS",Z);m9("TIMING_ACTION","watch");var I=l8l(g.rh("TIMING_INFO",{}));Object.keys(I).length>0&&Q3(I);I={isNavigation:!0,actionType:O_(g.rh("TIMING_ACTION"))};var d=g.rh("PREVIOUS_ACTION");d&&(I.previousAction=O_(d));if(d=g.rh("CLIENT_PROTOCOL"))I.httpProtocol=d;if(d=g.rh("CLIENT_TRANSPORT"))I.transportProtocol=d;(d=g.vv())&&d!=="UNDEFINED_CSN"&&(I.clientScreenNonce=d);d=ucd();if(d===1||d===-1)I.isVisible= !0;d=au().loadType==="cold";var Y=u7l();d||(d=Y.yt_lt==="cold");if(d){I.loadType="cold";d=u7l();Y=Gqa();var T=XC(),f=g.rh("CSI_START_TIMESTAMP_MILLIS",0);f>0&&!g.x9("embeds_web_enable_csi_start_override_killswitch")&&(T=f);T&&(tF("srt",Y.responseStart),d.prerender!==1&&Wi(T));d=ir$();d>0&&tF("fpt",d);d=Gqa();d.isPerformanceNavigationTiming&&Q3({performanceNavigationTiming:!0},void 0);tF("nreqs",d.requestStart,void 0);tF("nress",d.responseStart,void 0);tF("nrese",d.responseEnd,void 0);d.redirectEnd- d.redirectStart>0&&(tF("nrs",d.redirectStart,void 0),tF("nre",d.redirectEnd,void 0));d.domainLookupEnd-d.domainLookupStart>0&&(tF("ndnss",d.domainLookupStart,void 0),tF("ndnse",d.domainLookupEnd,void 0));d.connectEnd-d.connectStart>0&&(tF("ntcps",d.connectStart,void 0),tF("ntcpe",d.connectEnd,void 0));d.secureConnectionStart>=XC()&&d.connectEnd-d.secureConnectionStart>0&&(tF("nstcps",d.secureConnectionStart,void 0),tF("ntcpe",d.connectEnd,void 0));k8&&"getEntriesByType"in k8&&z9n();d=[];if(document.querySelector&& k8&&k8.getEntriesByName)for(var P in eX)eX.hasOwnProperty(P)&&(Y=eX[P],Yna(P,Y)&&d.push(Y));if(d.length>0)for(I.resourceInfo=[],P=g.t(d),d=P.next();!d.done;d=P.next())I.resourceInfo.push({resourceCache:d.value})}Q3(I);I=Bi();I.preLoggedGelInfos||(I.preLoggedGelInfos=[]);P=I.preLoggedGelInfos;I=kqa();d=void 0;for(Y=0;Y=I&&Y.video.qualityOrdinal<=d})}; GC9=function(Z){for(var I="",d=0;d=0?Z.D[I]:null}; Hru=function(Z,I){if(!Z.OZ()&&!I.videoData.OZ()){Z.ZR=I;Csd(Z.jJ,Z.ZR);if(Z.videoData.isLivePlayback){var d=Eca(Z.q8.V4,Z.videoData.videoId)||Z.loader&&!isNaN(Z.loader.fS);d=Z.Y("html5_onesie_live")&&d;cs(Z)||Z.videoData.I0>0&&!FI(Z.videoData)||d||Z.seekTo(Z.tZ(),{H$:"videoplayer_playbackData",seekSource:18})}if(Z.videoData.Z.L){if(bra(Z.videoData)){Z.pj("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",VQ({missabrurl:1}));return}Z.loader?g.uL(Error("Duplicated Loader")):(d=g.Q4(Z.U.experiments,"html5_onesie_defer_content_loader_ms"))&& Z.PS()&&Eca(Z.q8.V4,Z.videoData.UjZ)?g.lo(function(){Z.OZ()||Z.loader||A7(Z)},d):A7(Z)}else!Z.videoData.Z.L&&yB(Z.videoData)&&Z.hQ(new D4(Z.videoData.videoId||"",4)); Z.gR();fQn(I).then(function(){var Y={};Z.zR(Y);Z.U.Vy()&&Z.Y("html5_log_media_perf_info")&&Z.D1("av1Info",Y);J7(Z)})}}; Ru=function(Z,I){g.St.call(this,"Auto-translate",0,Z,I);this.S=Z;this.languages={};Z.createClientVe(this.element,this,127301);Z.logVisibility(this.element,!0)}; M5=function(Z){this.L=Z;this.iv=(0,g.DT)(RM(16))}; OY=function(Z){var I=Z.state,d=I.pending;d>Z.G_&&(d=Z.G_);d!==0&&(LX.zg(Z.output,I.zz,I.wq,d,Z.kB),Z.kB+=d,I.wq+=d,Z.F7+=d,Z.G_-=d,I.pending-=d,I.pending===0&&(I.wq=0))}; y3=function(Z,I){Z.L=I;var d=Z.j.videoInfos;if(!Z.L.isLocked()){var Y=(0,g.o8)();d=g.zG(d,function(P){if(P.pS>this.policy.pS)return!1;var O=this.u5.L[P.id];return pG(this.B).get(P.id)>Y||O.MC.Z>4||O.j>4?!1:this.fS.has(+P.itag)?!1:!0},Z); X9$(Z.B)&&(d=g.zG(d,function(P){return P.video.width<=854&&P.video.height<=480}))}d.length||(d=Z.j.videoInfos); var T=d;Z.policy.gF&&(T=csD(Z,T,I));T=g.zG(T,I.N,I);if(Z.L.isLocked()&&Z.B.L){var f=g.Xe(d,function(P){return P.id===Z.B.L}); f?T=[f]:U_(Z.B,"")}Z.policy.gF||(T=csD(Z,T,I));T.length||(T=[d[0]]);T.sort(function(P,O){return aq(Z,P)-aq(Z,O)}); I={};for(d=1;dI.AR.video.width?(g.$S(T,d),d--):aq(Z,I.F_)*Z.policy.In>aq(Z,I.AR)&&(g.$S(T,d-1),d--);I=T[T.length-1];Z.on=!!Z.Z&&!!Z.Z.info&&Z.Z.info.Pj!==I.Pj;Z.N=T;Z.w4.clear();d=!1;for(f=0;f=1080&&(d=!0);gcl(Z.policy,I,Z.u5.Qy)}; vi=function(Z,I,d,Y,T,f,P,O){g2.call(this,Z,I,d,Y);this.Q5=T;this.pM=f;this.j=O;this.Gz=!0;this.N=null;this.B=dB(d.clientMetadata,"metadata_type_linked_player_bytes_layout_id");pR(this.pM(),this);Z=dB(d.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,Z,d.layoutId)}; MSa=function(Z){if(!Z)return"unknown";switch(Z){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; lW=function(Z){g.k.call(this,{K:"button",zm:["ytp-fullerscreen-edu-button","ytp-button"],G:[{K:"div",zm:["ytp-fullerscreen-edu-text"],Z1:"Scroll for details"},{K:"div",zm:["ytp-fullerscreen-edu-chevron"],G:[JAJ()]}],J:{"data-priority":"2"}});this.Wj=Z;this.fade=new g.nt(this,250,void 0,100);this.D=this.L=!1;Z.createClientVe(this.element,this,61214);g.z(this,this.fade);this.W(Z,"fullscreentoggled",this.qs);this.W(Z,"presentingplayerstatechange",this.qs);this.listen("click",this.onClick);this.qs()}; Fs=function(Z,I){Z.LS=NaN;Z.In=null;Z.X.stop();Z.N&&I&&Z.N.Gg();Z.j=null;Z.N=null}; GT=function(Z,I){uW.call(this,Z,I,"timedMarkerCueRange","View key moments");this.W(Z,g.bx("timedMarkerCueRange"),this.W$);this.W(Z,"updatemarkervisibility",this.updateVideoData)}; tF=function(Z,I,d){if(!g.x9("web_csi_action_sampling_enabled")||!MT(d).actionDisabled){var Y=ND(d),T;if(T=g.x9("web_csi_debug_sample_enabled")&&Y){(pM().resolve(new gG(vI))==null?0:Rr())&&!rsJ&&(rsJ=!0,tF("gcfl",(0,g.o8)(),d));var f,P,O;T=(pM().resolve(new gG(vI))==null?void 0:(f=Rr())==null?void 0:(P=f.loggingHotConfig)==null?void 0:(O=P.csiConfig)==null?void 0:O.debugSampleWeight)||0;if(f=T!==0)b:{f=lTu();if(f.length>0)for(P=0;P0&&Z.length;)d.push(Z.shift()),I--;Z.length&&d.push(Z.join(":"));return d}; $3=function(Z){this.Gm=bp(Z)}; YxD=function(Z){Z.ge=!Z.ge;Z.uB=!0;Z.element.classList.toggle("ytp-retro-player",Z.ge);Z.resize();Z.uB=!1;Z.app.Wj.Rn("onRetroModeChanged",Z.ge)}; ixD=function(){if(jci)throw Error("carr");tB(Tjd,5)}; yRr=function(Z,I,d){var Y=Z.split("#",2);Z=Y[0];Y=Y.length>1?"#"+Y[1]:"";var T=Z.split("?",2);Z=T[0];T=aW(T[1]||"");for(var f in I)if(d||!g.b3(T,f))T[f]=I[f];return g.gq(Z,T)+Y}; PZn=function(Z){if(lNL(Z.videoTrack))return"ssf";if(Z.policy.on&&pX(Z.videoTrack)&&pX(Z.audioTrack))return"updateEnd";if(T$(Z.audioTrack)||T$(Z.videoTrack)&&Z.videoTrack.L.info.Pj!=="f")return"";if(Z.Of.isSeeking()){var I=Z.In;var d=Z.videoTrack;var Y=Z.audioTrack;if(I.policy.L){var T=I.policy.DL;x3(I.policy)&&(T=qp(I,!1,KX(I)));I=T;d=Vh(Y,!0)>=I&&Vh(d,!0)>=I}else d.Z.length||Y.Z.length?(T=d.L.info.pS+Y.L.info.pS,T=10*(1-KX(I)/T),I=Math.max(T,I.policy.DL),d=Vh(Y,!0)>=I&&Vh(d,!0)>=I):d=!0;if(!d)return"abr"; d=Z.videoTrack;if(d.Z.length>0&&d.N.D.length===1&&SVr(d.N).info.X360);Y=x3(Z.policy)&&Z.policy.F1;if(!Z.Yb||!Y&&d)return"";d=Z.policy.L0;x3(Z.policy)&&(d=qp(Z.In,Z.Yb,KX(Z.In)));d=f9i(Z.videoTrack,Z.getCurrentTime(),d)||f9i(Z.audioTrack,Z.getCurrentTime(),d);return x3(Z.policy)?d?"mbnm":"":(Z.videoTrack.Z.length> 0||Z.audioTrack.Z.length>0||nu(Z.j,Z.videoTrack,Z.audioTrack)||nu(Z.j,Z.audioTrack,Z.videoTrack))&&d?"nord":""}; a9D=function(Z,I){var d=Date.now()/1E3,Y=d-Z.startTimeSecs,T=d-Z.j,f=T>=Z.policy.A4,P=!1;if(f){var O=0;!isNaN(I)&&I>Z.B&&(O=I-Z.B,Z.B=I);O/T=Z.policy.xk&&!Z.Z;if(!f&&!d&&QcB(Z,I))return NaN;d&&(Z.Z=!0);a:{Y=P;d=(0,g.o8)()/1E3-(Z.WW.eD()||0)-Z.V.L-Z.policy.R4;f=Z.D.startTime;d=f+d;if(Y){if(isNaN(I)){CX(Z,NaN,"n",I);f=NaN;break a}Y=I-Z.policy.n0;Y=400&&O.status<500)?O.json().then(W,function(){W(null)}):W(null)}}).catch(function(){I.onError&&I.onError.call(T,{},{})}); Z=I.timeout||0;I.onFetchTimeout&&Z>0&&(P=g.lo(function(){f||(f=!0,g.Cl(P),I.onFetchTimeout.call(I.context||g.iN))},Z))}else g.kk(Z,I)}; G8n=function(Z,I,d,Y,T,f){Y=Y===void 0?{}:Y;var P=Math.round((0,g.o8)()),O={value:Z.size},a=new Map([].concat(g.c(Z)));a=g.t(a);for(var W=a.next();!W.done;W=a.next()){var e=g.t(W.value).next().value,B=Z.get(e);W=new Dna;var w=I.config_||g.ql(),V=new YM,N=new Cp;Kr(N,1,w.Az);Kr(N,2,w.bv);PK(N,16,w.j4);Kr(N,17,w.innertubeContextClientVersion);if(w.Nr){var q=w.Nr,A=new cD;q.coldConfigData&&Kr(A,1,q.coldConfigData);q.appInstallData&&Kr(A,6,q.appInstallData);q.coldHashData&&Kr(A,3,q.coldHashData);q.hotHashData&& A.Jq(q.hotHashData);P6(N,cD,62,A)}(q=g.iN.devicePixelRatio)&&q!=1&&G8(N,65,c8(q));q=sy();q!==""&&Kr(N,54,q);q=jn();if(q.length>0){A=new TP;for(var F=0;F=d))return Y.push(T.getValue()),g.w1(T)}).then(function(){return Y})}; $h=function(Z){g.p.call(this);this.L=Z;this.Gz=!0;this.fM=new Map}; $nB=function(Z){if(!Z.L){var I=g.T9(function(Y){var T=(0,g.o8)();Y&&T<=631152E6&&(Z.t5.D1("ytnerror",{issue:28799967,value:""+T}),T=(new Date).getTime()+2);return T},Z.U.Y("html5_validate_yt_now")),d=I(); Z.L=function(){return Math.round(I()-d)/1E3}; Z.t5.rY()}return Z.L}; AyO=function(Z,I,d){I=I===void 0?0:I;d=d===void 0?-1:d;if(!Z.totalLength||!d)return new DataView(new ArrayBuffer(0));d<0&&(d=Z.totalLength-I);Z.focus(I);if(!Nz(Z,I,d)){var Y=Z.D,T=Z.Z;Z.focus(I+d-1);T=new Uint8Array(Z.Z+Z.L[Z.D].length-T);for(var f=0,P=Y;P<=Z.D;P++)T.set(Z.L[P],f),f+=Z.L[P].length;Z.L.splice(Y,Z.D-Y+1,T);Fh(Z);Z.focus(I)}Y=Z.L[Z.D];return new DataView(Y.buffer,Y.byteOffset+I-Z.Z,d)}; pql=function(Z){if(!g.sc())throw Z=new g.ox("AUTH_INVALID",{dbName:Z}),nP(Z),Z;var I=g.U0();return{actualName:Z+":"+I,publicName:Z,userIdentifier:I}}; hhB=function(Z,I,d){var Y,T=-1,f=I[1],P=0,O=7,a=4;f===0&&(O=138,a=3);I[(d+1)*2+1]=65535;for(Y=0;Y<=d;Y++){var W=f;f=I[(Y+1)*2+1];++P T&&(T=O.width,f="url("+O.url+")")}d.background.style.backgroundImage=f;xnu(d,Y.actionButtons||[]);d.show()}else d.hide()}); g.iS(this.api,this.L.element,4)}; KvL=function(Z,I){Ab(Z,"impression")&&Z.vO(I?"fullscreen":"end_fullscreen")}; Sn=function(){this.L=[];this.D=null;this.j=0;this.Z=[];this.B=!1;this.V="";this.N=-1}; CZn=function(Z,I,d,Y,T){var f=ip(Z.D.get(),"SLOT_TYPE_PLAYER_BYTES"),P=new Ad(Z.L),O=[new SR(Z.L,f)];Z=[new An(Z.L,I)];I=[];I.push(new Jn(Y({slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,r4:"core",slotEntryTrigger:P,slotFulfillmentTriggers:O,slotExpirationTriggers:Z})));I.push(new Dx({}));T&&I.push(new Jd({current:T}));return{slotId:f,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:P,slotFulfillmentTriggers:O,slotExpirationTriggers:Z,r4:"core",clientMetadata:new D0(I), adSlotLoggingData:d}}; Eb9=function(Z){Z.suggestedActions={};Z.S.jM("suggested_action_button_visible")}; g.lB=function(Z){var I=I===void 0?!1:I;return xv(K8(Z,bx7),Z,I,"Trusted Image URL")}; HxD=function(Z){if(Z.OF()!==WO.contentCpn){var I={};I=(I.c=WO.contentCpn,I);Z.S.D1("ccm",I)}}; Uc=function(Z){if(Z instanceof Rt)return Z;Z=String(Z).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return LP(Z)}; hS=function(Z){this.value=Z}; ctO=function(){var Z=RM(16);for(var I=[],d=0;d=0&&(P={},f.publish("clienttemp","resetMflIndex",(P[Y? "v":"a"]=a,P),!1));f=O;gb$(Z.Of,I,Y,f);if(Z.policy.d4&&Z.policy.D&&(a=I.Un||null)){var V;P=(V=Z.D)==null?void 0:MIL(V).requestNumber;var N;(N=Z.kS)==null||rt$(N,a,P,I.YS)}Z.Z.O5(I,d,Y,T);I.YS===Z.u5.KN&&f&&Mp(Z.u5)&&I.startTime>Mp(Z.u5)&&(Z.u5.fS=I.startTime+(isNaN(Z.timestampOffset)?0:Z.timestampOffset),Z.Of.isSeeking()&&Z.Of.targetTime=15E3?!0:Z.J5?(d===void 0?0:d)?!0:Z.Z>0?I>=Z.Z/2:Z.fS>0?I>=Z.fS:!1:!1}; $M=function(Z,I){I=I===void 0?!1:I;if(!Z.mediaElement||!Z.videoData.Z)return!1;var d=I;d=d===void 0?!1:d;var Y=null;var T;if((T=Z.videoData.Z)==null?0:T.L){Y=d6D(Z,d);var f;(f=Z.loader)==null||f.resume()}else kM(Z),Z.videoData.on&&(Y=Z.videoData.on.UO());T=Z.mediaElement.wy();d=!1;T&&T.equals(Y)||(ohB(Z,Y),d=!0);g.b(Z.playerState,2)||(Y=Z.jJ,I=I===void 0?!1:I,Y.B||!(Y.Z>0)||Y.mediaElement&&Y.mediaElement.getCurrentTime()>0||(I={H$:"seektimeline_resumeTime",fK:I},Y.videoData.In||(I.seekSource=15), Y.seekTo(Y.Z,I)));a:{I=d;if(j2(Z.videoData)){if(!Z.videoData.pF())break a}else if(!g.Pf(Z.videoData))break a;if(Z.mediaElement)if((Y=Z.videoData.B)&&Z.mediaElement.lk()){T=Z.mediaElement.gK();if(Z.yI)if(T!==Z.yI.element)Xh(Z);else if(I&&Y.flavor==="fairplay"&&!Bq())Xh(Z);else break a;if(Z.Y("html5_report_error_for_unsupported_tvos_widevine")&&Bq()&&Y.flavor==="widevine")Z.pj("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{Z.yI=new td(T,Z.videoData,Z.U,Z.mediaElement); Z.yI.subscribe("licenseerror",Z.j1,Z);Z.yI.subscribe("qualitychange",Z.tJJ,Z);Z.yI.subscribe("heartbeatparams",Z.zM,Z);Z.yI.subscribe("keystatuseschange",Z.ow,Z);Z.yI.subscribe("ctmp",Z.D1,Z);I=g.t(Z.z$.keys);for(Y=I.next();!Y.done;Y=I.next())Y=Z.z$.get(Y.value),Z.yI.X4(Y);Z.Y("html5_eme_loader_sync")||Z.z$.removeAll()}}else Z.pj("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return d}; YzE=function(Z){g.aL(Z.D);var I=Z.S.C();I.playerStyle==="gvn"||I.D||I.w4||(I=Z.S.cj(),Z.D.W(I,"contextmenu",Z.WkS),Z.D.W(I,"touchstart",Z.onTouchStart,null,!0),Z.D.W(I,"touchmove",Z.Vk,null,!0),Z.D.W(I,"touchend",Z.Vk,null,!0))}; pP=function(Z){this.state=Z;this.plugins=[];this.Z=void 0;this.N={};uB&&Gn(this.state)}; jVr=function(Z){if(Z.Z){var I=Z.options[Z.Z];I.element.getAttribute("aria-checked");I.element.setAttribute("aria-checked","false");Z.Z=null}}; l9E=function(Z){g.x9("always_send_and_write")&&(Z.writeThenSend=!1)}; S1=function(Z){Z=new g.gR(Z);g.MQ(Z,document.location.protocol);return Z.toString()}; G$=function(Z){var I=Z.data.getInt32(Z.offset+Z.L);Z.L+=4;return I}; g.gq=function(Z,I){I=g.xM(I);return KP(Z,I)}; Tgi=function(Z){return function(){var I=new wEa;noD(this.Gm,I,P8(KA,CA,E7,Z));CP(I,I.L.end());for(var d=new Uint8Array(I.D),Y=I.Z,T=Y.length,f=0,P=0;P>>0;return OiL(Z.L,I)}; cD=function(Z){this.Gm=bp(Z)}; YG=function(Z,I,d,Y){g.p.call(this);var T=this;this.loader=Z;this.policy=I;this.L=d;this.timing=Y;this.logger=new g.qj("dash");this.Z=[];this.Bj=[];this.D=this.qC=null;this.w4=!1;this.mJ=this.Tm=0;this.j=-1;this.Ns=!1;this.fS=-1;this.j7=null;this.kS=NaN;this.LS=[];this.A9={b9:function(){return T.N}, jbS:function(){return T.Z}, RH5:function(){return T.X}}; this.N=new e0d(Z,I,d);this.policy.L&&(this.X=new dy(this.N,this.loader.getManifest(),this.policy,function(f){T.policy.xO&&T.D1("buftl",f)})); this.policy.EU&&(this.In=new om(this));this.pS=d.info.pS;this.V=this.policy.kS?!1:d.X6();this.isManifestless=d.X6();this.B=this.V;g.z(this,this.j7)}; ig=function(Z,I,d){for(var Y in Z.L){var T=Z.L[Y].index,f=I,P=d;T.Q8&&(f&&(T.fZ=Math.max(T.fZ,f)),P&&(T.us=Math.max(T.us||0,P)))}d&&(Z.Ns=d/1E3)}; KYL=function(Z,I,d,Y,T,f){function P(W){return Un(I,W)} var O=Y.Ix.inPlayerSlotId,a={layoutId:Y.Ix.inPlayerLayoutId,layoutType:"LAYOUT_TYPE_ENDCAP",r4:"core"};d={slotId:O,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,r4:"core",slotEntryTrigger:new eL(P,Z),slotFulfillmentTriggers:[new yc(P,O)],slotExpirationTriggers:[new du(P,O),new An(P,d)]};Z=Object.assign({},a,{layoutExitNormalTriggers:[new jl(P,Z)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],h5:new Map,clientMetadata:new D0([new TF(Y.Ix), new Xj(Y.adPlacementConfig),T]),Tb:Fo(f,d)(a),adLayoutLoggingData:Y.Ix.adLayoutLoggingData});return Object.assign({},d,{clientMetadata:new D0([new Jn(Z)])})}; kK=function(Z,I,d,Y,T,f){var P={K:"div",T:"ytp-panel"};if(d){var O="ytp-panel-back-button";var a="ytp-panel-title";var W={K:"div",T:"ytp-panel-header",G:[{K:"div",zm:["ytp-panel-back-button-container"],G:[{J:{"aria-label":"Back to previous menu"},K:"button",zm:["ytp-button",O]}]},{K:"span",zm:[a],J:Z.Y("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,G:[d]}]};if(T){var e="ytp-panel-options";W.G.push({K:"button",zm:["ytp-button",e],G:[Y]})}P.G=[W]}Y=!1;f&&(f={K:"div", T:"ytp-panel-footer",G:[f]},Y=!0,P.G?P.G.push(f):P.G=[f]);g.m7.call(this,P);this.content=I;Y&&P.G?I.i5(this.element,P.G.length-1):I.i5(this.element);this.Dd=!1;this.L3=Y;d&&(this.backButton=this.KS(O),d=this.KS(a),this.W(this.backButton,"click",this.Cz),this.W(d,"click",this.Cz),this.Dd=!0,T&&this.W(this.KS(e),"click",T));I.subscribe("size-change",this.pz,this);this.W(Z,"fullscreentoggled",this.pz);this.S=Z}; yXa=function(Z){for(var I=[],d=0;d=Z.provider.videoData.UZ;return!!I}; f7=function(Z,I,d,Y){return RD(Z,(Z.state|I)&~d,null,Y===void 0?null:Y)}; VOD=function(Z){if(Z.t5.getVideoData().isLivePlayback)return!1;var I=Z.t5.bQ();if(!I)return!1;I=I.getDuration();if(Z.Fm&&Z.Fm.L&&Z.Fm.D){var d=Z.getCurrentTime(),Y=Z.Fm.L.LN();Z=Z.Fm.D.LN();Y=Y?ic(Y,d):d;d=Z?ic(Z,d):d;d=Math.min(Y,d);I=isNaN(d)?!1:d>=I-.01}else I=!1;return I}; NgJ=function(Z){if(!Z.stack)return!0;var I=!Z.stack.includes("\n");return I&&Z.stack.includes("ErrorType: ")||I&&Z.stack.includes("Anonymous function (Unknown script")||Z.stack.toLowerCase()==="not available"||Z.fileName==="user-script"||Z.fileName.startsWith("user-script:")?!0:!1}; fH=function(Z,I){return Z.S.C().Y(I)}; pvE=function(Z){var I;g.h(function(d){if(!Z.JV)throw I=g.Pk("clearSWHealthLogsDb"),I;return d.return(nKE(Z.JV).catch(function(Y){Z.handleError(Y)}))})}; nh$=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V,N,q,A,F,J,v,l,X,H){function x(){var Qu=IC(Object.assign({},dD,{callback:{J9:Z.J9.bind(Z),iQ:Z.iQ.bind(Z),Fs:function(){}, b8:Z.b8.bind(Z)},slot:d,Q1:Y,SA:function(){zO(P,Y,"normal")}, yq:0,bx:1,BU:!0}));return Qu?new yj(Z,e,w,q,Qu,T,v):Qu} function Id(){var Qu=Object.assign({},dD,{callback:{J9:function(){}, iQ:function(){}, Fs:function(){return void zO(P,Y,"normal")}, b8:function(){}}, slot:d,Q1:Y,SA:function(){}, yq:0,bx:1,BU:!0});return FEO({UK:Z,slot:d,layout:Y,OP:f,xZ:P,V5:B,n_:l,B$:e,pM:T,S7:w,hgJ:Qu,context:X})} function TB(){var Qu,Zr=(Qu=Y.Ai)!=null?Qu:dB(Y.clientMetadata,"metadata_type_sub_layouts");Qu=sVO({UK:Z,V5:B,n_:l,B$:e,S7:w,KF:V,SJ:q,x4:I,slot:d,layout:Y,OP:f,PJ:P,pM:T,Ms:v});for(var sJ=[],bL={tQ:0};bL.tQ1E5||++I.Z})}; u7l=function(){var Z=MT();Z.info||(Z.info={});return Z.info}; A7=function(Z){for(var I=Z.videoData.L,d=g.t(Object.entries({cpn:Z.videoData.clientPlaybackNonce,c:Z.U.L.c,cver:Z.U.L.cver})),Y=d.next();!Y.done;Y=d.next()){var T=g.t(Y.value);Y=T.next().value;T=T.next().value;for(var f=g.t(Object.values(I.L)),P=f.next();!P.done;P=f.next())hk9(P.value.MC,Y,T);f=void 0;(f=I.In)==null||hk9(f,Y,T)}Y=Z.U;d=Z.videoData;T=Z.Bk;T=T===void 0?Y.schedule:T;I=new g.m6J(Y);f=qzn({hasSubfragmentedFmp4:d.hasSubfragmentedFmp4,U$:d.U$});I.X=f;f=T;f=f===void 0?Y.schedule:f;I.Bj=d.maxReadAheadMediaTimeMs/ 1E3||I.Bj;f.Z.eD()===f.policy.Z?I.Yl=10:I.Yl=d.minReadAheadMediaTimeMs/1E3||I.Yl;I.zD=d.readAheadGrowthRateMs/1E3||I.zD;d.hL&&(I.j=!0,I.d4=!0);I.ir=!Og();g.RK(Y)||!Og()?(I.Tm=8388608,I.b5=524288,I.KW=5,I.w4=1048576,I.Yf=1.5,I.pS=4587520,am()&&(I.pS=786432),I.In*=1.1,I.Ns*=1.1,I.DM=!0):Y.D&&(I.In*=1.3,I.Ns*=1.3);g.h_&&g.y1("crkey")&&(f=Y.L.cmodel==="CHROMECAST/ANCHOVY",I.Tm=20971520,I.b5=1572864,f&&(I.pS=812500,I.aE=1E3,I.IQ=5,I.w4=2097152));g.Kb&&(I.DM=!0);Y.supportsGaplessAudio()||(I.jA=!1);Wk&& (I.kF=!0);f=T;f=f===void 0?Y.schedule:f;I.du=Y.Y("html5_peak_shave");d.fetchType==="onesie"&&Y.Y("html5_disable_peak_shave_for_onesie")&&(I.du=!1);var O;T=(O=d.L)==null?void 0:R1(O);if(FI(d)){I.hV=!0;I.N_||(I.U_=!0);I.M8=!0;I.gf=!0;I.P6=!0;if(d.latencyClass==="ULTRALOW"||d.latencyClass==="LOW"&&!Y.Y("html5_disable_low_pipeline"))I.Qc=2,I.VD=4;I.Ym=d.defraggedFromSubfragments;g.IS(d)&&(I.I0=!1);I.xM=g.V4(Y)}d.isAd()&&(I.L0=0,I.v3=0);I.Vx=Y.Y("html5_ultra_low_latency_subsegment_readahead")&&d.latencyClass=== "ULTRALOW";I.Z=Y.Vy();O=0;Y.Y("html5_live_use_alternate_bandwidth_window_sizes")&&(O=f.policy.L,d.isLivePlayback&&(O=g.Q4(Y.experiments,d.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":d.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||O));P=O;f.D.N=FI(d)?.5:0;if(!f.policy.D&&P&&(O=f.Z,f=Math.round(P*O.resolution),f!==O.L)){P=Array(f);var a=Math.min(f,O.Z?O.L:O.D),W=O.D-a;W<0&&(W+=O.L);for(var e=0;e0&&(I.gB=d.LJ));I.ZM=d.ZM;I.WB=el(Y,{},d.Z||void 0,Bk(d));I.y5=Nv(d)&&(g.vl(Y)||g.B8(Y));j2(d)&&(I.B=!0,I.LJ=Y.Y("html5_estimate_live_partial_slice_duration"),g.RK(Y)&&!g.wm()&&Y.Y("html5_force_audio_to_cover_video_keyframe")?I.SK=!1:I.SK=!0,O=Y.experiments.BO(),I.Qi||d.isLivePlayback||!O.L.K_(Sza)|| (I.Uj=!0,O=O.L.K_(AIa),I.BS=O),Y.Y("html5_sabr_report_partial_segment_estimated_duration")&&(I.lI=!0),I.L=!0,I.F1=Y.Y("html5_disable_client_resume_policy_for_sabr"),I.b1=Y.Y("html5_trigger_loader_when_idle_network"),I.yD=Y.Y("html5_sabr_parse_live_metadata_playback_boundaries"),I.Wh=Y.Y("html5_consume_onesie_next_request_policy_for_sabr"),I.hL=Y.Y("html5_sabr_report_next_ad_break_time"),I.xO=Y.Y("html5_log_high_res_buffer_timeline")&&Y.Vy(),I.fD=Y.Y("html5_remove_stuck_slices_beyond_max_buffer_limits"), I.z0=Y.Y("html5_gapless_sabr_btl_last_slice")&&fA(d),I.Kg=Y.Y("html5_reset_last_appended_slice_on_seek")&&fA(d),FI(d)?(I.ZF=!0,I.X1=Y.Y("html5_disable_variability_tracker_for_live"),I.J5=!0,Y.Y("html5_simplified_backup_timeout_sabr_live")&&(I.K0=!0,I.aE=I.Ki)):I.o4=Y.Y("html5_probe_request_on_sabr_request_progress"),I.Uv=Y.Y("html5_serve_start_seconds_seek_for_post_live_sabr"),I.Tx=Y.Y("html5_flush_index_on_updated_timestamp_offset"),I.LS=j2(d),I.IF=Y.Y("html5_ignore_partial_segment_from_live_readahead"), Y.Y("html5_include_partial_segment_for_jumbo_ll")&&Fm(d)&&(I.IF=!1),I.td=Y.Y("html5_use_non_active_broadcast_for_post_live"),I.j7=Y.Y("html5_use_centralized_player_time"),I.Hk=Y.Y("html5_log_centralized_player_time"),I.gb=Y.Y("html5_consume_onesie_sabr_seek"),I.kS=Y.Y("html5_enable_sabr_seek_loader_refactor"),I.Xz=g.Q4(Y.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),I.h4=Y.Y("html5_update_segment_start_time_from_media_header"),d.enableServerStitchedDai&&(I.D=!0,I.c6=Y.Y("html5_reset_server_stitch_state_for_non_sabr_seek"), I.DF=Y.Y("html5_remove_ssdai_append_pause")&&!d.YF(),I.sU=Y.Y("html5_ssdai_log_ssevt_in_loader")||Y.Y("html5_ssdai_log_ssevt_in_loader_200ms")||Y.Y("html5_ssdai_log_ssevt_in_loader_timers")||Y.Y("html5_ssdai_log_ssevt_in_loader_cuerange"),Y.Y("html5_ssdai_log_ssevt_in_loader_timers")?I.UZ=1:Y.Y("html5_ssdai_log_ssevt_in_loader_200ms")?I.UZ=3:Y.Y("html5_ssdai_log_ssevt_in_loader_cuerange")&&(I.UZ=0)),I.Zn=Y.Vy()||d.YF(),I.v1=d.Qy()&&Y.Y("html5_prebuffer_instream_media_live")&&Y.Y("html5_report_prefetch_requests"), I.hT=!d.Qy()&&Y.Y("html5_prebuffer_instream_media_vod")&&Y.Y("html5_report_prefetch_requests"));I.wz=g.chi(d);Bw(Y.B,wZ.BITRATE)&&(I.pS=NaN);if(O=g.Q4(Y.experiments,"html5_request_size_max_kb"))I.w4=O*1024;Y.B.Z?I.by="; "+wZ.EXPERIMENTAL.name+"=allowed":Y.Y("html5_enable_cobalt_tunnel_mode")&&g.wm()&&(Y=wZ.TUNNELMODE,I.by="; "+Y.name+"="+Y.valid);d=d.serverPlaybackStartConfig;(d==null?0:d.enable)&&(d==null?0:d.playbackStartPolicy)&&(I.s_=!0,TY(I,d.playbackStartPolicy,2));d=D6L(Z);Z.z$.removeAll(); a:{Y=Z.q8.V4;if(O=Z.videoData.videoId)if(T=Y.L.get(O)){Y.L.remove(O);Y=T;break a}Y=void 0}Z.loader=new g.wy(Z,Z.Bk,I,Z.videoData.L,Z.videoData.Z,Vw(Z),d,Z.videoData.enableServerStitchedDai,Y,Z.videoData.LS);I=Z.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&Z.videoData.isLivePlayback&&Z.PS()?!0:Z.NZ&>(Z);Z.loader.initialize(Z.getCurrentTime(),Vw(Z),I);Z.videoData.probeUrl&&(Z.loader.b5=Z.videoData.probeUrl);if(Z.uV.length||Z.NZ)Z.videoData.cotn||NP(Z,!1);ZR(Z.jJ,Z.loader);Z.FT&&(JIB(Z.loader, new g.FY(Z.FT)),Z.D1("sdai",{sdl:1}));g.aC(Z.videoData)&&(Z=Z.loader,Z.policy.hK=Z.policy.K2)}; LED=function(Z,I){R0E.apply(null,[6,Z instanceof g.qj?Z.tag:Z,I].concat(g.c(g.vj.apply(2,arguments))))}; U6d=function(){return g.h(function(Z){return g.m(Z,S4d("ytGcfConfig"),0)})}; sg=function(Z){this.value=Z}; yID=function(Z,I,d){function Y(V){if(typeof V!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof V+"'");if(e)throw Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var N=!0;W===a&&(W=a.slice()); W.push(V);return function(){if(N){if(e)throw Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");N=!1;W===a&&(W=a.slice());W.splice(W.indexOf(V),1);a=null}}} function T(){if(e)throw Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return O} function f(V){if(typeof V!=="object"||V===null)var N=!1;else{for(N=V;Object.getPrototypeOf(N)!==null;)N=Object.getPrototypeOf(N);N=Object.getPrototypeOf(V)===N}if(!N)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof V+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples."); if(typeof V.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(e)throw Error("Reducers may not dispatch actions.");try{e=!0,O=P(O,V)}finally{e=!1}N=a=W;for(var q=0;q=2}; Ce$=function(Z,I){v8(Z,1,I.O4,hV,3);if(I.qJ)for(var d=0;d=0&&g.$S(Z,I)}; xc=function(Z){this.Gm=bp(Z)}; yw=function(Z,I){this.logger=Z;this.event=I;this.startTime=fp()}; kqa=function(Z){Z=Bi(Z);Z.gelInfos||(Z.gelInfos={});return Z.gelInfos}; cIu=function(Z,I,d){Z=g.Ft(Z.L,function(Y){return I(Y)}); return d?Z:HZn(Z)}; qT7=function(Z){Z.py();var I=Z.Mr;vk(Z);Z.events.W(window,"resize",Z.YPr);var d=Z.gz();Z.Wj.OV("onVolumeChange",Z.p6);if(I&&lc(I)){var Y=z9(Z.U);Y&&!Z.oL&&(I.fetch=0);var T=g.Dh(Z.U);T&&!Z.oL&&(I.fetch=0);Oq(Z,I);g.Dh(Z.U)&&Z.KM.tick("ep_pr_s");if(!Y||Z.oL)if(T&&!Z.oL)aJ(Z);else if(!d.FF())Z.playlist.onReady(function(){fg(Z)})}Z.Pa(Z.vj(),!1,!0); g.b(Z.vj().getPlayerState(),128)||(I=ghO(!Z.U.deviceIsAudioOnly),I==="fmt.noneavailable"?Z.Ll("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","nocodecs.1"):I==="html5.missingapi"?Z.Ll(I,2,"UNSUPPORTED_DEVICE","nocanplaymedia.1"):d&&d.FF()&&uc(Z)&&(Z.U.hV||Z.U.gB)?GF(Z):d.Wz?Z.Wj.mutedAutoplay({durationMode:d.mutedAutoplayDurationMode}):g.T2("yt-player-playback-on-reload")?(g.g6("embedsItpPlayedOnReload",{playedOnReload:!0,isLoggedIn:!!Z.U.Ns}),g.AU("yt-player-playback-on-reload",!1),GF(Z)): hL(Z.U)||ili(Z),g.qN(Z.U)||ed(Z.U)==="MWEB"?(g.Zb(g.zF(),function(){kG(Z)}),g.Zb(g.zF(),function(){MOE()})):(kG(Z),MOE()))}; tn=function(Z,I,d,Y){try{var T=I.call(Z.L.N,d);LgJ(T);if(!T.done)return Z.L.V=!1,T;var f=T.value}catch(P){return Z.L.N=null,pL(Z.L,P),$E(Z)}Z.L.N=null;Y.call(Z.L,f);return $E(Z)}; It=function(Z){le7(Z);rIr();pXD();Z||(g.rh("TIMING_ACTION")&&m9("PREVIOUS_ACTION",g.rh("TIMING_ACTION")),m9("TIMING_ACTION",""))}; op$=function(Z,I,d){var Y=ya;return HD(GU().L.L,function(){try{if(Y.C_&&Y.C_.L){var T=Y.C_.start(Z.toString(),3);var f=I();Y.C_.end(T)}else f=I()}catch(O){var P=Y.KO;try{LL9(T),P=Y.D(Z,new XY(tl(O)),void 0,d)}catch(a){Y.lH(217,a)}if(!P)throw O;}return f})()}; I_J=function(Z,I,d){g.NF(Z.provider.U,g.VO(Z.provider.videoData)).then(function(Y){var T=!1;I.includes("&dt=")||I.includes("&cotn=")?T=!0:Z.provider.U.Y("qoe_with_networkless")&&(T=!0);var f=Z.provider.U.Y("qoe_send_and_write"),P=Z.provider.U;Y=$G(I,P,Z.provider.U.pageId,Z.provider.U.sendVisitorIdHeader?Z.provider.videoData.visitorData:void 0,Y);P.Y("html5_simplify_pings")&&(Y=Y||{});Y?(Y.method="POST",Y.postBody=d,pH(I,Y,{token:Z.provider.videoData.j,wi:Z.provider.videoData.IU,mdxEnvironment:Z.provider.videoData.mdxEnvironment}, P,void 0,T,f&&Z.fS)):T?(T=Z.provider.U.Y("networkless_ajax"),P={method:"POST",postBody:d},f&&Z.fS?a5().sendAndWrite(I,P):T?g.kk(I,{method:"POST",postBody:d}):a5().sendThenWrite(I,P)):(f=d,f=f===void 0?"":f,ZOr(I,f)||g.E1(I,void 0,void 0,void 0,f))})}; dAn=function(Z,I){var d=0;do d|=Z&1,Z>>>=1,d<<=1;while(--I>0);return d>>>1}; o_n=function(Z,I){g.Me(Z.info.L.info)||Z.info.L.info.DR();Z.Z=I;if(g.Me(Z.info.L.info)){var d=g.j1(Z);Z=Z.info.L.L;for(var Y=NaN,T=NaN,f=0;Tm(d,f);){var P=iI(d,f);isNaN(Y)&&(P.type===1936286840?Y=P.data.getUint32(P.dataOffset+8):P.type===1836476516&&(Y=g.fz(P)));if(P.type===1952867444){!Y&&Z&&(Y=OE(Z));var O=g.PM(P);isNaN(T)&&(T=Math.round(I*Y)-O);var a=P;O+=T;if(a.data.getUint8(a.dataOffset)){var W=a.data;a=a.dataOffset+4;W.setUint32(a,Math.floor(O/4294967296));W.setUint32(a+4,O&4294967295)}else a.data.setUint32(a.dataOffset+ 4,O)}f=Qa(P.type)?f+8:f+P.size}return!0}d=new Kt(g.j1(Z));Z=Z.B?d:new Kt(new DataView(Z.info.L.L.buffer));Y=a7(Z);Z=d.pos;d.pos=0;if(WM(d)&&e1(d,231))if(T=F2(d,!0),I=Math.floor(I*1E9/Y),Math.ceil(Math.log(I)/Math.log(2)/8)>T)I=!1;else{for(Y=T-1;Y>=0;Y--)d.L.setUint8(d.pos+Y,I&255),I>>>=8;d.pos=Z;I=!0}else I=!1;return I}; W8D=function(Z,I,d){function Y(O,a){(a=d[a])&&(f[O]=P(a))} function T(O,a){(a=d[a])&&(f[O]=a)} if(!d||g.xG(d))return Z;var f=Object.assign({},Z),P=I?encodeURIComponent:function(O){return O}; Y("DV_VIEWABILITY","doubleVerifyViewability");Y("IAS_VIEWABILITY","integralAdsViewability");Y("MOAT_INIT","moatInit");Y("MOAT_VIEWABILITY","moatViewability");T("GOOGLE_VIEWABILITY","googleViewability");T("VIEWABILITY","viewability");return f}; Ku=function(Z,I){var d=d===void 0?!0:d;var Y=g.rh("VALID_SESSION_TEMPDATA_DOMAINS",[]),T=g.LM(window.location.href);T&&Y.push(T);T=g.LM(Z);if(g.Kc(Y,T)||!T&&pu(Z,"/"))if(Y=document.createElement("a"),g.M3(Y,Z),Z=Y.href)if(Z=xe(Z),Z=$TB(Z))if(d&&!I.csn&&(I.itct||I.ved)&&(I=Object.assign({csn:g.vv()},I)),f){var f=parseInt(f,10);isFinite(f)&&f>0&&YCJ(Z,I,f)}else YCJ(Z,I)}; jEl=function(Z){this.pos=0;this.D=[];this.L=mEJ(Z===void 0?4096:Z);this.view=new DataView(this.L.buffer,this.L.byteOffset,this.L.byteLength)}; ht=function(Z){bW.call(this,Z)}; Pi=function(Z){Z=Z||"";var I=TGn();if(I[Z])return I[Z];var d=KH(),Y={timerName:Z,info:{},tick:{},span:{},jspbInfo:[]};d.push(Y);return I[Z]=Y}; yl=function(Z,I){Z.coldHashData=I;g.zb("yt.gcf.config.coldHashData",Z.coldHashData||null)}; oEi=function(Z,I){Uj(Z,1,I.videoId);ys(Z,2,I.lmt)}; S5=function(){if(CH===null){CH=new Eg;lz(uz).D="b";var Z=lz(uz),I=Uf(Z)=="h"||Uf(Z)=="b",d=!(GU(),!1);I&&d&&(Z.B=!0,Z.j=new Rxu)}return CH}; iOr=function(){var Z;return(Z=g.T2("yt-player-voice-boost"))!=null?Z:void 0}; g.bc=function(Z){Z=Z===void 0?{}:Z;this.languageCode=Z.languageCode||"";this.languageName=Z.languageName||null;this.kind=Z.kind||"";this.name=Z.name===void 0?null:Z.name;this.displayName=Z.displayName||null;this.id=Z.id||null;this.L=Z.is_servable||!1;this.isTranslateable=Z.is_translateable||!1;this.url=Z.url||null;this.vssId=Z.vss_id||"";this.isDefault=Z.is_default||!1;this.translationLanguage=Z.translationLanguage||null;this.xtags=Z.xtags||"";this.captionId=Z.captionId||""}; Hk=function(){this.j=null;this.V=[];this.N=this.D=this.Z=this.L=this.In=0;this.B=null;this.X=0}; ck=function(Z){Z.S.cueVideoByPlayerVars({videoId:"empty_video"},2)}; d8=function(Z){var I=gy;Z=Z===void 0?f_L():Z;var d=Object,Y=d.assign,T=LR(I);var f=I.L;try{var P=f.screenX;var O=f.screenY}catch(F){}try{var a=f.outerWidth;var W=f.outerHeight}catch(F){}try{var e=f.innerWidth;var B=f.innerHeight}catch(F){}try{var w=f.screenLeft;var V=f.screenTop}catch(F){}try{e=f.innerWidth,B=f.innerHeight}catch(F){}try{var N=f.screen.availWidth;var q=f.screen.availTop}catch(F){}f=[w,V,P,O,N,q,a,W,e,B];P=KKl(!1,I.L.top);O={};var A=A===void 0?g.iN:A;a=new MP;"SVGElement"in A&&"createElementNS"in A.document&&a.set(0);W=Nhr();W["allow-top-navigation-by-user-activation"]&&a.set(1);W["allow-popups-to-escape-sandbox"]&&a.set(2);A.crypto&&A.crypto.subtle&&a.set(3);"TextDecoder"in A&&"TextEncoder"in A&&a.set(4);A=Lma(a);I=(O.bc=A,O.bih=P.height,O.biw=P.width,O.brdim=f.join(),O.vis=ry(I.D),O.wgl=!!JB.WebGLRenderingContext,O);d=Y.call(d,T,I);d.ca_type="image";Z&&(d.bid=Z);return d}; iI=function(Z,I){var d=Z.getUint32(I),Y=Z.getUint32(I+4);return new Zt(Z,I,d,Y)}; QEJ=function(Z,I){var d=Number(I==null?void 0:I.maxVisibleDurationMilliseconds);d&&(IY(Z),Z.kS=setTimeout(function(){if(Z.L!==void 0&&(I==null?void 0:I.cueRangeId)===Z.L){Z.In=!1;var Y=Pb$(Z,Z.L);Y&&Z.api.Rn("innertubeCommand",Y)}},d))}; dC=function(){}; OOl=function(Z){var I=new Map;Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())(d=d.value.renderer.remoteSlotsRenderer)&&d.hostElementId&&I.set(d.hostElementId,d);return I}; oY=function(Z,I,d,Y,T,f,P){Z=[new SR(Z.L,I)];return{slotId:I,slotType:d,slotPhysicalPosition:1,slotEntryTrigger:Y,slotFulfillmentTriggers:Z,slotExpirationTriggers:T,r4:"core",clientMetadata:new D0([new Jn(P({slotId:I,slotType:d,slotPhysicalPosition:1,r4:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:Z,slotExpirationTriggers:T}))]),adSlotLoggingData:f}}; YP=function(){}; a_u=function(Z,I){this.D=(new TextEncoder).encode(Z);this.L=(new TextEncoder).encode(I)}; jZ=function(Z){WC.call(this,Z,!1,!0);this.isCounterfactual=this.D=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.V=!0;this.overflowButton=new g.k({K:"button",zm:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.z(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.k({K:"img",T:"ytp-suggested-action-badge-img",J:{src:"{{url}}"}}); this.thumbnailImage.hide();g.z(this,this.thumbnailImage);this.thumbnailIcon=new g.k({K:"div",T:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.z(this,this.thumbnailIcon);this.banner=new g.k({K:"a",T:"ytp-suggested-action-container",G:[this.thumbnailImage,this.thumbnailIcon,{K:"div",T:"ytp-suggested-action-details",G:[{K:"text",T:"ytp-suggested-action-title",Z1:"{{title}}"},{K:"text",T:"ytp-suggested-action-subtitle",Z1:"{{subtitle}}"},{K:"text",T:"ytp-suggested-action-metadata-text", Z1:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.z(this,this.banner);this.banner.i5(this.Z.element);this.W(this.S,"videodatachange",this.onVideoDataChange);this.W(this.S,g.E2("suggested_action_view_model"),this.Co5);this.W(this.S,g.bx("suggested_action_view_model"),this.Pom);this.W(this.overflowButton.element,"click",this.WR);this.W(Z,"featuredproductdismissed",this.F4);this.S.createServerVe(this.banner.element,this.banner,!0)}; Te=function(Z){this.Gm=bp(Z)}; q0B=function(Z){var I=i2();I||(I=new Map);Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())d=d.value,I.set(d.settingItemId,d.settingOptionValue);I=JSON.stringify(Object.fromEntries(I));g.AU("yt-player-user-settings",I,2592E3)}; Ne=function(Z){Z=Z.Gm;return iz(Z,Z[nL]|0,Won)}; vEn=function(Z,I,d,Y,T,f){I.client||(I.client={});Z.player.C().Y("h5_remove_url_for_get_ad_break")||(I.client.originalUrl=d);var P=RC(d),O=g.LM(d)?!1:!0;(P||O)&&typeof Intl!=="undefined"&&(I.client.timeZone=(new Intl.DateTimeFormat).resolvedOptions().timeZone);O=g.LM(d)?!1:!0;if(P||O||Y!==""){var a={};d=Ij(d8(Y)).split("&");var W=new Map;d.forEach(function(e){e=e.split("=");e.length>1&&W.set(e[0].toString(),decodeURIComponent(e[1].toString()))}); W.has("bid")&&(a.bid=W.get("bid"));a.params=[];e2L.forEach(function(e){W.has(e)&&(e={key:e,value:W.get(e)},a.params.push(e))}); BGa(Z,a);I.adSignalsInfo=a}I.client.unpluggedAppInfo||(I.client.unpluggedAppInfo={});I.client.unpluggedAppInfo.enableFilterMode=!1;d=T.L.cosver;d!=null&&d!=="cosver"&&(I.client.osVersion=d);d=T.L.cplatform;d!=null&&d!=="cplatform"&&d!==""&&(I.client.platform=d);d=T.L.cmodel;d!=null&&d!=="cmodel"&&(I.client.deviceModel=d);d=T.L.cplayer;d!=null&&d!=="cplayer"&&(I.client.playerType=d);d=T.L.cbrand;d!=null&&d!=="cbrand"&&(I.client.deviceMake=d);I.user||(I.user={});I.user.lockedSafetyMode=!1;g.bZ(T)&& kR7(I,f,Z.player.getPlayerState(1));if(Z=T.livingRoomPoTokenId)I.client.tvAppInfo=Object.assign({},I.client.tvAppInfo,{livingRoomPoTokenId:Z})}; P7=function(Z,I){var d=0;Z=g.t(Z);for(var Y=Z.next();!(Y.done||Y.value.startTime>I);Y=Z.next())d++;return d===0?d:d-1}; fh=function(Z,I,d,Y){if(Y===void 0)return Y=Object.assign({},Z[I]||{}),d=(delete Y[d],Y),Y={},Object.assign({},Z,(Y[I]=d,Y));var T={},f={};return Object.assign({},Z,(f[I]=Object.assign({},Z[I],(T[d]=Y,T)),f))}; Pn=function(Z){this.Q5=Z}; h27=function(Z,I,d){if(!Z.OZ())if(I){yy(Z,{onkmtyp:d});Z.status="km";switch(d){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":wDE(Z,I);return;default:Z.publish("ctmp","message_type",{t:d,l:I.byteLength})}Z.kS||(O7("drm_gk_f",void 0,Z.videoData.LS),Z.kS=!0,Z.publish("newsession",Z));if(vT(Z.D)&&(I=Vr7(I),!I))return;I=new NGJ(I,++Z.requestNumber,Z.videoData.LS);oLd(I,function(Y){FoL(Z,Y)},function(Y,T,f){if(!Z.OZ()){var P=0; Y.L.D>=3&&(P=1,T="drm.net.retryexhausted");yy(Z,{onlcsrqerr:T,info:f});Z.error(T,P,f);Z.shouldRetry(VY(P),Y)&&sEO(Z,Y)}}); g.z(Z,I);n_u(Z,I)}else Z.error("drm.unavailable",1,"km.empty")}; Qb=function(Z,I){return OT(Z,I)>=0}; ab7=function(Z){return new Promise(function(I,d){var Y=g.vX("SCRIPT"),T=mA7(Z);g.Om(Y,T);Y.onload=function(){g.r2(Y);I()}; Y.onerror=function(){g.r2(Y);d(Error("EWLS"))}; (g.Xr("HEAD")[0]||document.documentElement).appendChild(Y)})}; gO=function(Z,I,d){var Y=Z.Vt({playerType:d});Y&&(I=Y.jM(I),d&&Z.getPresentingPlayerType()!==d||p_(Z,"cuerangesremoved",I))}; hL=function(Z){return Z.fS==="leanback"}; aY=function(Z){return window.navigator.msPointerEnabled?"MSPointer"+Z.charAt(0).toUpperCase()+Z.substring(1):"mouse"+Z}; g.Wj=function(Z){var I=g.vj.apply(1,arguments);var d=Error.call(this,Z);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.args=[].concat(g.c(I));Object.setPrototypeOf(this,this.constructor.prototype)}; VU7=function(Z,I){I=I===void 0?w9u:I;if(!Wn){var d;Z=(d=Z.navigator)==null?void 0:d.userAgentData;if(!Z||typeof Z.getHighEntropyValues!=="function"||Z.brands&&typeof Z.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));qCD((Z.brands||[]).map(function(T){var f=new ZT;f=Kr(f,1,T.brand);return Kr(f,2,T.version)})); typeof Z.mobile==="boolean"&&G8(eZ,2,g1(Z.mobile));Wn=Z.getHighEntropyValues(I)}var Y=new Set(I);return Wn.then(function(T){var f=eZ.clone();Y.has("platform")&&Kr(f,3,T.platform);Y.has("platformVersion")&&Kr(f,4,T.platformVersion);Y.has("architecture")&&Kr(f,5,T.architecture);Y.has("model")&&Kr(f,6,T.model);Y.has("uaFullVersion")&&Kr(f,7,T.uaFullVersion);return f.It()}).catch(function(){return eZ.It()})}; g.SC$=function(Z){for(var I in Z)delete Z[I]}; AVB=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M12,14 L9,11 L9,3 L12,0 L5,0 L5,14 L12,14 Z",fill:"#eaeaea"}}]}}; PK=function(Z,I,d){if(d!=null){if(!Ye(d))throw IM("enum");d|=0}return G8(Z,I,d)}; g.Bn=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 16 16",width:"100%"},G:[{K:"path",J:{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"}}]}}; e5=function(Z,I,d){Z.vU("addEventListener",I,d)}; g.Pz=function(Z,I){Z.updateValue("label",I)}; wC=function(Z){return Z.L.getUint8(Z.pos++)}; DAr=function(Z){var I;(I=Z.n_)==null||I.get().rD(dB(Z.slot.clientMetadata,"metadata_type_cue_point").identifier)}; g.e0=function(Z){var I=IK(Z.nM());return Z.app.oL&&!Z.isFullscreen()||Z.getPresentingPlayerType()===3&&I&&I.wf()&&I.xb()||!!Z.getPlaylist()}; SAr=function(Z){a:{var I=Z.initData;try{for(var d=0,Y=new DataView(I.buffer);d0){var P=Y.getUint32(d+28);f+=P*16+4}var O=Y.getUint32(d+f-4);try{var a=JVJ(I.subarray(d+f,d+f+O));if(a!==null){var W=a;break a}}catch(e){}}d+=T}W=null;break a}catch(e){W=null;break a}W=void 0}if(W!=null)for(I=Vb(S4(W,7,void 0,N9)),I==null||Z.DR||(Z.cryptoPeriodIndex=I),I=Vb(S4(W,10,void 0,N9)),I!=null&&I>0&& !Z.DR&&(Z.L=I),W=FX(W,2,w17,void 0===dNn?2:4),W=g.t(W),Y=W.next();!Y.done;Y=W.next())I=Z.Z,d=I.push,Y=mU(Y.value),Y=g.Bg(Y,4),d.call(I,Y)}; R2J=function(Z,I){var d=Z.liveBadge.element,Y=Z.api.isLifaAdPlaying();d.disabled=Y||I;!sm(Z)||Z.V===I&&Z.j===Z.isPremiere||(Z.V=I,Z.j=Z.isPremiere,Z.W$(),I?d.classList.add("ytp-live-badge-is-livehead"):d.classList.remove("ytp-live-badge-is-livehead"),Z.api.Y("web_player_misc_bugfix_c")&&Z.liveIndicatorText?Z.liveBadge.setContent(Z.liveIndicatorText):Z.liveBadge.setContent(Z.isPremiere?"Premiere":"Live"),I?Z.L&&(Z.L(),Z.L=null,d.removeAttribute("data-tooltip-title")):(d.setAttribute("data-tooltip-title", "Skip ahead to live broadcast."),Z.L=g.my(Z.tooltip,Z.liveBadge.element)))}; g.Lh=function(Z,I){if(!nh){var d=pM();$k(d,{NL:Lo7,To:hH});var Y={Ta:{feedbackEndpoint:m1(q9),modifyChannelNotificationPreferenceEndpoint:m1(SZ),playlistEditEndpoint:m1(AH),shareEntityEndpoint:m1(qe),subscribeEndpoint:m1(Y9),unsubscribeEndpoint:m1(Dt),webPlayerShareEntityServiceEndpoint:m1(JH)}},T=RY.getInstance(),f={};T&&(f.client_location=T);Z===void 0&&(Z=Psa());I===void 0&&(I=d.resolve(Lo7));nbL(Y,I,Z,f);$k(d,{NL:UAn,pO:dO.instance});nh=d.resolve(UAn)}return nh}; En=function(Z){Z.removed=!0;Z.listener=null;Z.proxy=null;Z.src=null;Z.handler=null}; v_r=function(Z){var I=new yVl,d={},Y=(d["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",d);return new oL(I,Z,function(){return Y})}; Bi=function(Z){Z=MT(Z);if(Z.gel){var I=Z.gel;I.gelInfos||(I.gelInfos={});I.gelTicks||(I.gelTicks={})}else Z.gel={gelTicks:{},gelInfos:{}};return Z.gel}; g.rR=function(Z,I,d){Z.L=d?Tn(I,!0):I}; l_O=function(Z,I){Z.network=I;return Z}; Um=function(Z,I,d,Y,T,f){g2.call(this,Z,I,d,Y);this.Q5=T;this.pM=f;this.Gz=!0;pR(this.pM(),this);Z=dB(d.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,Z,d.layoutId)}; yb=function(Z,I,d){return new AX(Z,I,d)}; Gbi=function(Z,I){if(!Z.fp){var d=void 0;Z.dV&&(d=Z.L.Vt({cpn:Z.dV}));if(!d){d=u5l(Z,I*1E3);var Y,T=(Y=d)==null?void 0:Y.cpn;Z.dV?T&&Z.dV!==T&&Z.t9({cpcnm:T+"_"+Z.dV,cmt:I.toFixed(3)}):Z.t9({cpcna:T,cmt:I.toFixed(3)})}var f;return(f=d)==null?void 0:f.videoData}}; z2a=function(){var Z=Error.call(this);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)}; XDE=function(Z){return{Cd:wd(Z,1),items:BK(Z,2,kbl),WK:wd(Z,3)}}; g.l2=function(Z,I,d){Z=Z.L.createObjectStore(I,d);return new vn(Z)}; Ge=function(Z,I,d,Y,T,f,P,O,a){if(I===Z)if(a){if(a===O.layoutId){a:{Z=g.t(d.keys());for(I=Z.next();!I.done;I=Z.next())if(I=I.value,I.slotType==="SLOT_TYPE_PLAYER_BYTES"&&f===d.get(I).layoutId){d=!0;break a}d=!1}d?u2(Y,1):T?T():Zv("Tried to call engagePingCallback but it is null",P,O)}}else Zv("Companion AdUxClick received without a layoutId",P,O)}; g.ze=function(){this.L=new Map;this.Z=new Map;this.D=new Map}; kP=function(Z,I){I=String(I);Z.N&&(I=I.toLowerCase());return I}; XX=function(Z,I,d,Y,T){return I>=400?(Z.lastError="net.badstatus",!0):(T===void 0?0:T)?(Z.lastError="ump.spsrejectfailure",!0):d||Y!==void 0&&Y?!1:(Z.lastError=I===204?"net.nocontent":"net.connect",!0)}; r97=function(Z){sZ(Z.j,"data",function(I){if("1"in I){var d=I["1"];try{var Y=Z.V(d)}catch(T){rv(Z,new oP(13,"Error when deserializing response data; error: "+T+(", response: "+d)))}Y&&trd(Z,Y)}if("2"in I)for(I=$Al(Z,I["2"]),d=0;d=Z&&(Z+5^13)>4)){I=(I%d[Q[17]]+d[Q[17]])%d[Q[17]];Y=d[0];d[0]=d[I];d[I]=Y;var T=[I,d]}if(!(Z<<2&15)){yY(42,I);if(Y=I[Q[26]][Q[63]]||null)Y=cVD[0](Y),I[Q[6]](Q[63],Y);T=[I]}(Z+6&60)=Z&&I[Q[14]]();return T}; g.g_n=function(Z,I){if(Z.suggestion!==I){Z.suggestion=I;var d=Z.api.C(),Y="hqdefault.jpg";I.uT("sddefault.jpg")&&(Y="sddefault.jpg");g.b2(Z,I,Y);g.Dh(d)&&!Z.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&(d=I.EM(),Y={},g.WR(Z.api,"addEmbedsConversionTrackingParams",[Y]),d=g.gq(d,Y),Z.updateValue("url",d));(I=(I=I.sessionData)&&I.itct)&&Z.api.setTrackingParams(Z.element,I)}}; anE=function(Z,I,d){var Y;if((Y=I.YA)!=null&&Y.wh)try{var T,f=(T=Z.cache)==null?void 0:MrE(T,yx(Z,I),I.YA.UN);return f?d?SK(Z.logger,function(){return g.Bg(f,2)},"a"):f:void 0}catch(P){Z.reportError(new kt(23,"RXO:read",P))}}; ZF=function(Z,I,d,Y){this.element=Z;this.L=new Ui(0,0,0,0);this.Z=null;this.j=new Ui(0,0,0,0);this.D=I;this.zv=d;this.Bj=Y;this.Ns=!1;this.timestamp=-1;this.In=new Hn(I.N,this.element,this.L,new Ui(0,0,0,0),0,0,vG(),0);this.B=void 0}; fZ=function(Z){this.L=Z}; rVJ=function(Z,I){if(tk(Z,$4)||Z.api.isMinimized())return!1;var d=pv(I.title),Y=pv(I.description);if(g.Hw(d)||g.Hw(Y))return!1;Z.createServerVe(Z.Z.element,I.trackingParams||null);Z.Z.updateValue("title",pv(I.title));Z.Z.updateValue("description",pv(I.description));Z.Z.updateValue("displayUrl",pv(I.displayUrl));I.navigationEndpoint&&g.x4(Z.X,I.navigationEndpoint);Z.Z.show();Z.mJ.start();Z.logVisibility(Z.Z.element,!0);Z.W(Z.Z.element,"mouseover",function(){Z.kS++}); return!0}; g.OZ=function(Z){if(Z instanceof QZ)return Z.L;throw Error("");}; ZN$=function(Z,I){var d;I===1?d=Z.S.Y("delhi_modern_web_player_icons")?{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M11.60 2.08L11.48 2.14L3.91 6.68C3.02 7.21 2.28 7.97 1.77 8.87C1.26 9.77 1.00 10.79 1 11.83V12.16L1.01 12.56C1.07 13.52 1.37 14.46 1.87 15.29C2.38 16.12 3.08 16.81 3.91 17.31L11.48 21.85C11.63 21.94 11.80 21.99 11.98 21.99C12.16 22.00 12.33 21.95 12.49 21.87C12.64 21.78 12.77 21.65 12.86 21.50C12.95 21.35 13 21.17 13 21V3C12.99 2.83 12.95 2.67 12.87 2.52C12.80 2.37 12.68 2.25 12.54 2.16C12.41 2.07 12.25 2.01 12.08 2.00C11.92 1.98 11.75 2.01 11.60 2.08ZM4.94 8.4V8.40L11 4.76V19.23L4.94 15.6C4.38 15.26 3.92 14.80 3.58 14.25C3.24 13.70 3.05 13.07 3.00 12.43L3 12.17V11.83C2.99 11.14 3.17 10.46 3.51 9.86C3.85 9.25 4.34 8.75 4.94 8.4ZM21.29 8.29L19 10.58L16.70 8.29L16.63 8.22C16.43 8.07 16.19 7.99 15.95 8.00C15.70 8.01 15.47 8.12 15.29 8.29C15.12 8.47 15.01 8.70 15.00 8.95C14.99 9.19 15.07 9.43 15.22 9.63L15.29 9.70L17.58 12L15.29 14.29C15.19 14.38 15.12 14.49 15.06 14.61C15.01 14.73 14.98 14.87 14.98 15.00C14.98 15.13 15.01 15.26 15.06 15.39C15.11 15.51 15.18 15.62 15.28 15.71C15.37 15.81 15.48 15.88 15.60 15.93C15.73 15.98 15.86 16.01 15.99 16.01C16.12 16.01 16.26 15.98 16.38 15.93C16.50 15.87 16.61 15.80 16.70 15.70L19 13.41L21.29 15.70L21.36 15.77C21.56 15.93 21.80 16.01 22.05 15.99C22.29 15.98 22.53 15.88 22.70 15.70C22.88 15.53 22.98 15.29 22.99 15.05C23.00 14.80 22.93 14.56 22.77 14.36L22.70 14.29L20.41 12L22.70 9.70C22.80 9.61 22.87 9.50 22.93 9.38C22.98 9.26 23.01 9.12 23.01 8.99C23.01 8.86 22.98 8.73 22.93 8.60C22.88 8.48 22.81 8.37 22.71 8.28C22.62 8.18 22.51 8.11 22.39 8.06C22.26 8.01 22.13 7.98 22.00 7.98C21.87 7.98 21.73 8.01 21.61 8.06C21.49 8.12 21.38 8.19 21.29 8.29Z", fill:"white"}}]}:eM():d=Z.D;Z.Ns=I;if(Z.S.Y("delhi_modern_web_player_icons"))Z.D.KS("ytp-svg-volume-animation-small-ripple").setAttribute("transform","translate(18, 12) scale("+(1-I+") translate(-18,-12)")),Z.D.KS("ytp-svg-volume-animation-big-ripple").setAttribute("transform","translate(22, 12) scale("+(Z.V-I+") translate(-22, -12)"));else{for(var Y=20*I,T=0;T1)return 6;P.j7=new g.uX(function(){var O=fM(P);Z.OZ()||O==null||!O.isLocked?Z.t5.C().Vy()&&Z.D1("eosl",{delayA:O==null?void 0:O.info.m5()}):q5r(P)?(Z.t5.C().Vy()&&Z.D1("eosl",{dunlock:O==null?void 0:O.info.m5()}),M9(Z,P===Z.audioTrack)):(Z.D1("nue",{ls:O.info.m5()}),O.info.LS+=1,Z.Fm&&Z.YB())},1E4,Z); Z.t5.C().Vy()&&Z.D1("eosl",{delayS:Y.m5()});P.j7.start()}Z.policy.td&&(Y==null?void 0:Y.L)instanceof If&&Y.RL()&&Z.D1("poseos",{itag:Y.L.info.itag,seg:Y.YS,lseg:Y.L.index.c$(),es:Y.L.index.Z});I.appendBuffer(d,Y,T)}catch(O){if(O instanceof DOMException){if(O.code===11)return 2;if(O.code===12)return 5;if(O.code===22||O.message.indexOf("Not enough storage")===0)return I=Object.assign({name:"QuotaExceededError",buffered:cn(I.LN()).replace(/,/g,"_"),vheap:rC(Z.videoTrack),aheap:rC(Z.audioTrack),message:g.Nl(O.message, 3),track:Z.Fm?I===Z.Fm.D?"v":"a":"u"},Bzi()),Z.handleError("player.exception",I),1;g.nl(O)}return 4}return Z.Fm.bT()?3:0}; dJ$=function(Z,I,d,Y){d.e7.push.apply(d.e7,g.c(Y));if(Nx){d.qd.has(I)||d.qd.set(I,[]);var T;(T=d.qd.get(I)).push.apply(T,g.c(Y))}else if(d.nF)for(Z=g.t(Y),I=Z.next();!I.done;I=Z.next())d.nF.e7.push(I.value);else{d.nF=new Zp(Z.bu,[].concat(g.c(d.e7)));var f;((f=Z.bu)==null?0:f.M_)&&g.z(Z,d.nF)}}; Eg=function(){g.dx.call(this);var Z=this;this.L={};this.addOnDisposeCallback(function(){for(var I=g.t(Object.keys(Z.L)),d=I.next();!d.done;d=I.next())delete Z.L[d.value]})}; IU=function(Z){if(Z.isAd()&&(Z.sU?Z.videoId!==Z.nS.UZ:Z.videoId!=Z.nS.UZ))return Z.nS.UZ}; dc=function(Z){Z.readyState=4;Z.N=null;Z.Z=null;Z.V=null;Jy(Z)}; Iu=function(Z){return Z.mimeType==="application/x-mpegURL"}; dm=function(Z){Ze(Z);var I=oU(Number(Z));if(Yr(I))return String(I);I=Z.indexOf(".");I!==-1&&(Z=Z.substring(0,I));return oBD(Z)}; xp=function(Z,I,d){NV.call(this,Z);this.N=I;this.clientState=d;this.L="S";this.D="q"}; TvL=function(Z){return!!Z.ZF||!!Z.KG||!!Z.LD||!!Z.DF||Z.PQ}; Qa=function(Z){return Z===1701082227||Z===1836019558||Z===1836019574||Z===1835297121||Z===1835626086||Z===1937007212||Z===1953653094||Z===1953653099||Z===1836475768}; OE=function(Z){Z=new DataView(Z.buffer,Z.byteOffset,Z.byteLength);return(Z=g.aO(Z,0,1836476516))?g.fz(Z):NaN}; kV=function(Z,I){this.U=Z;this.timerName="";this.Z=!1;this.D=NaN;this.N=new wb7;this.L=I||null;this.Z=!1}; qT=function(Z){return Z}; g.jD=function(Z,I){this.type=Z;this.currentTarget=this.target=I;this.defaultPrevented=this.D=!1}; YOL=function(){JB&&typeof JB.google_measure_js_timing!="undefined"&&(JB.google_measure_js_timing||TV.disable())}; iG=function(Z){this.value=Z}; j6L=function(){if(!EK.instance){var Z=g.gZ("yt.networkStatusManager.instance")||new EK;g.zb("yt.networkStatusManager.instance",Z);EK.instance=Z}return EK.instance}; TSJ=function(Z){var I="Off 10 15 20 30 45 60".split(" "),d;((d=Z.S.getVideoData())==null?0:d.isLivePlayback)||I.push("End of video");d=Z.S.getPlaylist();var Y;d&&((Y=d.listId)==null?void 0:Y.type)!=="RD"&&I.push("End of playlist");Z.iW(g.Ft(I,Z.LT));Z.j=g.CM(I,Z.LT,Z);I=Z.LT("End of video");Z.options[I]&&g.Pz(Z.options[I],Z.D)}; f$=function(Z,I){return g.x9("transport_use_scheduler")===!1?g.lo(Z,I):g.x9("logging_avoid_blocking_during_navigation")||g.x9("lr_logging_avoid_blocking_during_navigation")?g.Zb(0,function(){if(iNL().currentState==="none")Z();else{var d={};iNL().install((d.none={callback:Z},d))}},I):rG(Z,0,I)}; k2J=function(Z,I){if(typeof Z!=="object")return Z;if(Array.isArray(Z)){var d=Z[nL]|0;Z.length===0&&d&1?Z=void 0:d&2||(!I||4096&d||16&d?Z=f3(Z,d,!1,I&&!(d&16)):(IP(Z,34),d&4&&Object.freeze(Z)));return Z}if(Z!=null&&Z[P3]===Qn)return I=Z.Gm,d=I[nL]|0,b5(Z,d)?Z:ct(Z,I,d)?gx(Z,I):f3(I,d);if(Z instanceof XE)return Z}; aU=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V,N,q,A,F){jV.call(this,Z,I,d,Y,T,f,P,O,W,e,B,w,V,N,q,A,F);var J=this;this.eJ=a;this.SA=B;this.il=!0;this.uH=this.jI=0;this.Ht=or(function(){Sta(Or(J));J.Bh.J9(J.slot,J.layout)}); this.bG=or(function(){fB$(Or(J));J.Pk!=="rendering_stop_requested"&&J.SA(J);J.layoutExitReason?J.Bh.iQ(J.slot,J.layout,J.layoutExitReason):Pva(J)}); this.timer=new g.qn(200);this.timer.listen("tick",function(){J.W$()}); g.z(this,this.timer)}; W3=function(Z){if(!ru(Z.videoData))return NaN;var I=0;Z.loader&&Z.videoData.L&&(I=FI(Z.videoData)?Z.loader.GO.eD()||0:Z.videoData.L.j7);return(0,g.o8)()/1E3-Z.xF()-I}; Q67=function(Z){Z=Z.L;Z.zn();Z.Sx();var I=zU();I.V=eD(!1,Z.Z,I.isMobileDevice);nnr(zU(),Z.Z);Z.N.L=Z.r0()}; g.Ux=function(Z){return!!Z.L&&ON$(Z.L)}; g.lC=function(Z,I){for(var d=0,Y=[];Tm(Z,d);){var T=iI(Z,d);T.type===I&&Y.push(T);d=Qa(T.type)?d+8:d+T.size}return Y}; aB7=function(Z,I,d){Z.Tm=!0;d=new dR(I,d);Z.U.Y("html5_eme_loader_sync")&&(Z.j.get(I)||Z.j.set(I,d));AA7(Z,d)}; Ht=function(Z,I){ow||nL in Z||qEL(Z,SEJ);Z[nL]=I}; WtD=function(Z){this.D1=Z;this.L={}}; e_J=function(Z){this.L=Z;Z.gP("/client_streamz/bg/cec",B3("ec"),g.Q7("mk"))}; JSD=function(Z){Z.Bj||(Z.Bj=(0,g.o8)(),g.aI("ovfs_rp",Z.Bj,Z.L))}; g.Q1=function(Z){if(Z.simpleText)return Z.simpleText;if(Z.runs){var I=[];Z=g.t(Z.runs);for(var d=Z.next();!d.done;d=Z.next())d=d.value,d.text&&I.push(d.text);return I.join("")}return""}; wc=function(Z,I,d,Y,T,f){g.dx.call(this);var P=this;this.loader=Z;this.u5=I;this.policy=d;this.videoTrack=Y;this.audioTrack=T;this.LS=this.L=null;this.j=this.V=NaN;this.X=0;this.In=NaN;this.Z=null;this.Bj=this.Ns=NaN;this.fS=new Map;this.kS=this.B=this.N=NaN;this.A9={rqj:function(){return P.D}}; this.D=f?1:0}; eAO=function(Z,I){Uj(Z,1,I.hl);Uj(Z,12,I.deviceMake);Uj(Z,13,I.deviceModel);ys(Z,16,I.clientName);Uj(Z,17,I.clientVersion);Uj(Z,18,I.osName);Uj(Z,19,I.osVersion)}; BSr=function(Z,I,d){var Y=tm(hG,I);Y||(Y=kp(Z,I,"n",d.opt_nativeTime||-1));return Y}; i7d=function(){return g.y1("iemobile")||g.y1("windows phone")&&g.y1("edge")}; wh$=function(Z,I,d){this.actionType=I;this.id=d;this.content=Z}; VTd=function(){this.startTimeMs=(0,g.o8)();this.L=!1}; NSa=function(Z,I){if(Z.S.isLifaAdPlaying()){var d=Z.S.aF(!0,!0);Z.QD(I,d.width*.5*1.1,d.height*.25*1.1,d.width*.5*.9,d.height*.5*.9)}}; Ftn=function(Z,I){var d=this;this.L=Z;this.Zf=I;this.loaded=this.status=0;this.error="";Z=AW(this.L.get("range")||"");if(!Z)throw Error("bad range");this.range=Z;this.D=new OA;this.run().then(function(){d.Zf.Ir()},function(Y){d.error=""+Y||"unknown_err"; d.Zf.Ir()})}; Vn=function(Z,I){Z.L.delete(I.kX())||Zv("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; l3=function(Z){return Z.adFormat&&(Z.sU?Z.adFormat!=="1_5":Z.adFormat!="1_5")?"adunit":Z.eventLabel||Z.nS.fS}; OGL=function(Z,I,d){function Y(){try{Z.removeEventListener("success",T),Z.removeEventListener("error",f)}catch(P){}} function T(){I(Z.result);Y()} function f(){d(Z.error);Y()} Z.addEventListener("success",T);Z.addEventListener("error",f)}; Vl=function(){y_.apply(this,arguments)}; s69=function(Z,I){var d={};if(I=Z.app.Se(I===void 0?1:I)){I=I.getVideoData();if(Ny(I))return{};d.video_id=I.videoId;d.author=I.author;d.title=I.title;d.isPlayable=tU(I);d.errorCode=I.errorCode;if(I.D&&I.D.video){d.video_quality=I.D.video.quality;I=I.D.video;var Y=[];I.fps>32&&Y.push("hfr");I.isHdr()&&Y.push("hdr");I.primaries==="bt2020"&&Y.push("wcg");d.video_quality_features=Y}}if(Z=Z.getPlaylistId())d.list=Z;return d}; g.PX=function(Z){Z.mJ=Z.L.length-1;Z.SK=0;Lsn(Z,!0)&&Lsn(Z,!1);for(var I=0,d=0;d=0;Y--)if(Z.L[Y].width>0){NM(Z.L[Y],0);var T=Math.floor(Z.L[Y].width);Z.L[Y].width=T;Fv(Z.L[Y],T+"px");break}Z.L[d].width=0;Fv(Z.L[d],"0")}else d===Z.L.length-1?(Y=Math.floor(Z.L[d].width+I),Z.L[d].width=Y,Fv(Z.L[d],Y+"px")):(I=Z.L[d].width+I,Y=Math.round(I),I-=Y,Z.L[d].width=Y,Fv(Z.L[d],Y+"px"));d=0;if(Z.N.length===Z.L.length)for(I=0;I< Z.N.length;I++)Y=Z.L[I].width,Z.N[I].element.style.width=Y+"px",Z.N[I].element.style.left=d+"px",d+=Y+Vx(Z);Z.api.Y("delhi_modern_web_player")&&(Z.L.length===1?Z.L[0].D.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(Z.L[0].D.classList.remove("ytp-progress-bar-end"),Z.L[0].D.classList.add("ytp-progress-bar-start"),Z.L[Z.L.length-1].D.classList.add("ytp-progress-bar-end")))}; g.sr=function(Z,I){for(var d in Z)if(!(d in I)||Z[d]!==I[d])return!1;for(var Y in I)if(!(Y in Z))return!1;return!0}; VJE=function(Z){this.L=Z;Z.gP("/client_streamz/bg/po/csc",B3("cs"),g.Q7("mk"))}; n$=function(Z,I,d){Rj.call(this,"display-underlay-text-grid-cards",Z,{},I,d);this.interactionLoggingClientData=d}; EU=function(Z){return/web/i.test(ed(Z))}; nBd=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; hAE=function(Z){if(!g.x9("universal_csi_network_ticks"))return"";Z=Lt(Z)||"";for(var I=Object.keys(Z2J),d=0;d=1024)throw Error("pvtlmt");for(var a in O)f= +a,f1024)throw Error("spvt");T=T&-16760833|(a&1023)<<14}}}T|=64;Y===0&&(T|=2048);Ht(Z,T);return Z}; mJB=function(Z){Z.In=Z.B.length?nF(Z.B,function(I){return I.GN()}):!1}; x_=function(Z,I){for(var d in I)if(DL(I[d])){if(d in Z&&!DL(Z[d]))throw Error("Cannot merge an object into a non-object.");d in Z||(Z[d]={});x_(Z[d],I[d])}else if(h2(I[d])){if(d in Z&&!h2(Z[d]))throw Error("Cannot merge an array into a non-array.");d in Z||(Z[d]=[]);qOE(Z[d],I[d])}else Z[d]=I[d];return Z}; kh=function(Z,I,d,Y,T){g.p.call(this);var f=this;this.D=Z;this.xu=I;this.S7=d;this.V5=Y;this.context=T;this.Gz=!0;this.fM=new Map;this.L=new Set;d.get().addListener(this);this.addOnDisposeCallback(function(){d.OZ()||d.get().removeListener(f)})}; g.m4=function(Z){try{var I=g.zo.NW(),d=g.zo.lU();I&&I.remove(Z);d&&d.remove(Z)}catch(Y){}}; SD=function(Z,I,d,Y,T){T=T===void 0?!1:T;if(Z.policy.Z6)return Math.ceil(Z.policy.Z6*I);Z.policy.gG&&(Y=Math.abs(Y));Y/=Z.playbackRate;var f=1/wG(Z.Bk);d=Math.max(.9*(Y-3),qy(Z.Bk)+Z.Bk.D.L*f)/f*.8/(I+d);d=Math.min(d,Y);Z.policy.v3>0&&T&&(d=Math.max(d,Z.policy.v3));return IyJ(Z,d,I)}; SO9=function(Z){var I={};return I.viewability=Z.L,I.googleViewability=Z.D,I}; WvD=function(Z){switch(Z){case "unknown":return"CUEPOINT_EVENT_UNKNOWN";case "start":return"CUEPOINT_EVENT_START";case "continue":return"CUEPOINT_EVENT_CONTINUE";case "stop":return"CUEPOINT_EVENT_STOP";case "predictStart":return"CUEPOINT_EVENT_PREDICT_START";default:return i5(Z,"Unexpected cuepoint event")}}; Az7=function(Z,I){return ZL(Z.clientMetadata,"metadata_ad_video_is_listed")?dB(Z.clientMetadata,"metadata_ad_video_is_listed"):I?I.isListed:(Zv("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; q9=function(){}; aJJ=function(Z,I,d){return(Z=Z.levels[I])?Z.oD(d):-1}; g.$x=function(){A2||(A2=new y_D);return A2}; Dp=function(Z,I){var d=!!Z.L;Z.L=I;Z.L?(d||(Z.events.W(Z.api,"videodatachange",function(){Dp(Z,Z.api.x$())}),Z.events.W(Z.api,"progresssync",Z.onProgress),Z.events.W(Z.api,"appresize",Z.N)),Z.frameIndex=NaN,ah(Z),Z.fade.show(200)):(d&&g.aL(Z.events),Z.fade.hide(),Z.fade.stop())}; DJJ=function(Z,I,d){Z.isPaused()||Z.getCurrentTime()>I||d>10||(Z.play(),g.lo(function(){DJJ(Z,Z.getCurrentTime(),d+1)},500))}; TS=function(Z,I,d){if(d&&!d.includes(Z.layoutType))return!1;I=g.t(I);for(d=I.next();!d.done;d=I.next())if(!ZL(Z.clientMetadata,d.value))return!1;return!0}; Jzd=function(Z){if(Z.t5.f6().isInline())return nb;Z=$b[i$()];return g.J2("auto",Z,!1,"s")}; vw=function(Z){Z=(Z.sequentialLayouts||[]).map(function(I){return g.y(I,RU)}); return Z.length>0&&Z.every(tX)}; Vi=function(Z,I,d){Z.B[I.PE()]=I;Z.D=I;d&&(Z.j=I);F7(Z)}; KH=function(){var Z=g.gZ("ytcsi.debug");Z||(Z=[],g.zb("ytcsi.debug",Z),g.zb("ytcsi.reference",{}));return Z}; LtJ=function(Z){for(var I=new L$(Z),d=-1,Y=0,T=0;!Y||!T;){var f=RA7(I),P=f.id;f=f.size;if(P<0)return;if(P===176){if(f!==2)return;Y=I.jd()}else if(P===186){if(f!==2)return;T=I.jd()}P===374648427?d=I.jd()+f:P!==408125543&&P!==174&&P!==224&&I.skip(f)}I=MU(Z,0,d);d=new DataView(I.buffer);d.setUint16(Y,3840);d.setUint16(T,2160);Y=new OA([I]);Ur(Y,Z);return Y}; g.ft=function(Z,I){var d=Math.abs(Math.floor(Z)),Y=Math.floor(d/86400),T=Math.floor(d%86400/3600),f=Math.floor(d%3600/60);d=Math.floor(d%60);if(I){I="";Y>0&&(I+=" "+Y+" Days");if(Y>0||T>0)I+=" "+T+" Hours";I+=" "+f+" Minutes";I+=" "+d+" Seconds";Y=I.trim()}else{I="";Y>0&&(I+=Y+":",T<10&&(I+="0"));if(Y>0||T>0)I+=T+":",f<10&&(I+="0");I+=f+":";d<10&&(I+="0");Y=I+d}return Z>=0?Y:"-"+Y}; yn=function(Z,I){return Z==I?!0:Z&&I?Z.left==I.left&&Z.width==I.width&&Z.top==I.top&&Z.height==I.height:!1}; UJE=function(Z){for(var I={},d=0;d>10;f=56320|f&1023}kr[T++]=f}}f=String.fromCharCode.apply(String,kr); T<1024&&(f=f.substring(0,T));d.push(f)}return d.join("")}; kd$=function(){}; t2=function(Z,I){var d={type:Z.triggerType};I!=null&&(d.category=I);Z.triggeringSlotId!=null&&(d.triggerSourceData||(d.triggerSourceData={}),d.triggerSourceData.associatedSlotId=Z.triggeringSlotId);Z.triggeringLayoutId!=null&&(d.triggerSourceData||(d.triggerSourceData={}),d.triggerSourceData.associatedLayoutId=Z.triggeringLayoutId);return d}; Psa=function(){$r.instance||($r.instance=new $r);return $r.instance}; U2=function(Z,I){return I===void 0||I===null?Z:I==="1"||I===!0||I===1||I==="True"?!0:!1}; p$=function(Z,I,d){this.Gm=bp(Z,I,d)}; RM=function(Z){if(window.crypto&&window.crypto.getRandomValues)try{var I=Array(Z),d=new Uint8Array(Z);window.crypto.getRandomValues(d);for(var Y=0;Y>31));Uj(Z,2,I.message)}; K$=function(Z,I){Z=Z instanceof Uint8Array?new OA([Z]):Z;return I(new WG(Z))}; HX=function(Z,I){for(;I>127;)Z.L.push(I&127|128),I>>>=7;Z.L.push(I)}; C$=function(Z){Z.updateValue("clipicon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},G:[{K:"path",J:{d:"M22,3h-4l-5,5l3,3l6-6V3L22,3z M10.79,7.79C10.91,7.38,11,6.95,11,6.5C11,4.01,8.99,2,6.5,2S2,4.01,2,6.5S4.01,11,6.5,11 c0.45,0,.88-0.09,1.29-0.21L9,12l-1.21,1.21C7.38,13.09,6.95,13,6.5,13C4.01,13,2,15.01,2,17.5S4.01,22,6.5,22s4.5-2.01,4.5-4.5 c0-0.45-0.09-0.88-0.21-1.29L12,15l6,6h4v-2L10.79,7.79z M6.5,8C5.67,8,5,7.33,5,6.5S5.67,5,6.5,5S8,5.67,8,6.5S7.33,8,6.5,8z M6.5,19C5.67,19,5,18.33,5,17.5S5.67,16,6.5,16S8,16.67,8,17.5S7.33,19,6.5,19z"}}]}); Z.iX&&!Z.D?Z.updateValue("watchfullvideo","Watch live stream"):Z.updateValue("watchfullvideo","Watch full video");g.zL(Z.element,"ytp-clip",SP(Z));g.zL(Z.element,"ytp-live",sm(Z))}; Kw=function(Z,I,d,Y){return SK(Z.logger,function(){return d?Z.eS(I,Y):Z.aX(I,Y)},Z.L)}; g.yi=function(Z,I,d){var Y={},T;for(T in Z)I.call(d,Z[T],T,Z)&&(Y[T]=Z[T]);return Y}; qOE=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next())d=d.value,DL(d)?Z.push(x_({},d)):h2(d)?Z.push(qOE([],d)):Z.push(d);return Z}; ESu=function(Z,I){var d=Z.L.L;if(d){Z.videoInfos=Z.j;var Y=g.Xe(Z.videoInfos,function(T){return T.id===d}); Y&&Y.video.qualityOrdinal===I?Z.videoInfos=[Y]:(Y=Z.videoInfos.map(function(T){return T.id}),Z.loader.D1("sabrpf",{pfid:""+d, vfids:""+Y.join(".")}),DV(Z,I,I),U_(Z.L,""))}else DV(Z,I,I)}; g.b9=function(){}; phl=function(Z){var I=Z.cpn,d=Z.pN;Z=Z.Ib;var Y=d.OF(),T={};kL(d,"cx",(T.xc=I,T.ia=I!==Y,T.r=WO.e9.has(I),T.is=Z,T.ctp=Xc(I),T))}; xJB=function(Z){var I=Z.cpn,d=Z.pN;Z=Z.Ib;var Y=d.OF(),T={};kL(d,"ce",(T.ec=I,T.ia=I!==Y,T.r=WO.e9.has(I),T.is=Z,T.ctp=Xc(I),T))}; KtL=function(){g.h(function(Z){return g.m(Z,S4d("LogsDatabaseV2"),0)})}; jO=function(Z,I,d){var Y=this;this.D=Z;this.Z=I;this.Ms=d;this.L=function(T){return Un(Y.D.get(),T)}}; CvL=function(){this.L=[];this.D=[]}; EBd=function(Z){var I;return Z==null?void 0:(I=Z.activeViewTracking)==null?void 0:I.identifier}; g.pa=function(){var Z=g.T2("yt-player-caption-language-preferences");return Z?Z:[]}; HNO=function(){var Z=Z===void 0?2E3:Z;var I=I===void 0?15:I;var d=d===void 0?5:d;var Y=Y===void 0?2:Y;return window&&"requestIdleCallback"in window?new TT(function(T){requestIdleCallback(function(){T()},{timeout:Z})}):bN$(Z,I,d,Y)}; Er=function(Z,I){if(Z.policy.kS&&Z.Tm&&!Z.Yb)return Z.policy.Xz;if(Z.Tm&&!Z.Yb)return 3;if(Z.isSuspended)return 1;var d;if((d=Z.Fm)==null?0:d.Fm&&d.Fm.streaming===!1)return 4;d=(I.L.info.audio?Z.policy.b5:Z.policy.Tm)/(I.pS*Z.policy.nW);if(Z.policy.JT>0&&Z.Fm&&rZ(Z.Fm)&&(I=I.L.info.video?Z.Fm.D:Z.Fm.L)&&!I.Fr()){I=I.LN();var Y=OT(I,Z.getCurrentTime());Y>=0&&(I=Z.getCurrentTime()-I.start(Y),d+=Math.max(0,Math.min(I-Z.policy.JT,Z.policy.DD)))}Z.policy.Bj>0&&(d=Math.min(d,Z.policy.Bj));return d}; QI7=function(){if(czL()&&!Ph){var Z=function(d){d=d.data;if(d.op==="gzippedGelBatch"){var Y=OO.get(d.key);Y&&(Pri(d.gzippedBatch,Y.latencyPayload,Y.url,Y.options,Y.sendFn),OO.delete(d.key))}},I=Qc(); I&&(I.addEventListener("message",Z),I.onerror=function(){OO.clear()},Ph=!0)}}; rZ=function(Z){try{return f_(Z)==="open"}catch(I){return!1}}; c3=function(Z,I){I&&bG(Z.t5,new H3(I.video,I.reason));Z.L.sZ&&(I=gBD(Z.L,"a"),Z.t5.vF(new H3(I.audio,I.reason)))}; Rt=function(Z){this.L=Z}; MTL=function(Z,I){for(var d=0,Y=g.t(Z),T=Y.next();!T.done;T=Y.next()){T=T.value;if(I=T.timeRangeStartMillis&&I>>8|P<<24,P+=f|0,P^=O+38293,f=f<<3|f>>>29,f^=P,a=a>>>8|a<<24,a+=O|0,a^=W+38293,O=O<<3|O>>>29,O^=a;f=[f,P];Z[T]^=f[0];T+1-1&&(0,g.o8)()-Z.kS>3E4&&(IsD(Fe(Z)),Z.kS=(0,g.o8)(),Z.LS=!0)}; Tn=function(Z,I){return Z?I?decodeURI(Z.replace(/%25/g,"%2525")):decodeURIComponent(Z):""}; g.Zg=function(Z){g.p.call(this);var I=this;this.t5=Z;this.A9={zU:function(){return I.t5}}}; Ez=function(Z,I,d){this.D=Z;this.Z=I;this.L=d}; dd7=function(Z,I){this.L=Z;this.Ms=I}; j1i=function(Z){return{iN5:wd(Z,1),itag:BG(Z,3),ES:I2(Z,4,o47),lmt:wd(Z,5),Oi5:wd(Z,7),xtags:BG(Z,15),C54:I2(Z,23,YKu),PN:I2(Z,34,d3)}}; VtE=function(Z,I,d,Y,T){var f=[];$f(Z,function(P,O){(P=Mv(P,I,d,Y,T))&&f.push(O+"="+P)}); return f.join(I)}; TAr=function(Z,I){var d=Z.subarray(4);d=new Uint16Array(d.buffer,d.byteOffset,d.byteLength/2);d=String.fromCharCode.apply(null,d).match(/ek=([0-9a-f]+)/)[1];for(var Y="",T=0;TMath.max(1E4,Z.Z/3)?0:I);var d=Z.V(Z)||{};d=d.currentTime!==void 0?d.currentTime:Z.LS;var Y=d-Z.LS,T=0;Y>=0?(Z.kS+=I,Z.j7+=Math.max(I-Y,0),T=Math.min(Y,Z.kS)):Z.w4+=Math.abs(Y);Y!=0&&(Z.kS=0);Z.sZ==-1&&Y>0&&(Z.sZ=a2>=0?vG()-a2:-1);Z.LS=d;return T}; j$L=function(Z,I){Z.fS=!0;Z.Y("html5_use_centralized_player_time")&&(Z.D=Z.j,Z.Z=Z.D,Z.j=NaN);qiL(Z,I)}; EB=function(Z,I){this.Z=!1;this.N=Z;this.In=I;this.B=0}; WY=function(Z){var I,d=(I=Z.config)==null?void 0:I.adPlacementConfig;Z=Z.renderer;return!(!d||d.kind==null||!Z)}; mdJ=function(Z,I){if(Z.playerType===2||Z.U.JW)I.k6=!0;var d=hm7(I.Vf,I.x7,Z.U.N,Z.U.X);d&&(I.adFormat=d);Z.playerType===2&&(I.t_=!0);if(Z.isFullscreen()||Z.U.N)d=g.T2("yt-player-autonavstate"),I.autonavState=d||(Z.U.N?2:Z.videoData.autonavState);I.endSeconds&&I.endSeconds>I.startSeconds&&eh(Z,I.endSeconds)}; BY=function(Z){Z.B.textContent=wK(Z,Z.L)+"x"}; w3=function(Z){return Z.Y("web_settings_menu_surface_custom_playback")&&Z.Y("web_settings_use_input_slider")}; yei=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V,N,q,A,F,J){if(!tX(d))return new C("Invalid PlayerBytesAdLayoutRenderer");var v=VB(d);if(v instanceof C)return v;P={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,r4:P};a:{var l=d.adLayoutMetadata.layoutId,X=g.y(d.renderingContent,l0);if(X&&u0(X)){var H=[];if(V)H.push(new Xj(sE(I)));else{b:{O=g.t(O);for(I=O.next();!I.done;I=O.next()){I=I.value;var x=qKJ(I.renderer)||[],Id=g.t(x);for(x=Id.next();!x.done;x=Id.next())if(x=x.value, x.associatedPlayerBytesLayoutId===l){x.associatedPlayerBytesLayoutId?(O=x.playerOverlay,Id=O!==void 0&&O.playerOverlayLayoutRenderer!==void 0&&O.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&O.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,O=O!==void 0&&O.instreamAdPlayerOverlayRenderer!==void 0&&O.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&O.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||Id):O=!1;I=O?{instreamVideoAdRenderer:x,adPlacementConfig:I.config.adPlacementConfig}: new C("Invalid InPlayer shim");break b}}I=new C("Not able to find associated InPlayer slot")}if(I instanceof C){f=I;break a}O=I.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;x=I.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var TB;Id=(TB=O==null?void 0:O.inPlayerSlotId)!=null?TB:x==null?void 0:x.inPlayerSlotId;var dD;TB=(dD=O==null?void 0:O.inPlayerLayoutId)!=null?dD:x==null?void 0:x.inPlayerLayoutId;if(Id===void 0){f=new C("InPlayer shim slot id is undefined"); break a}if(TB===void 0){f=new C("InPlayer shim layout id is undefined");break a}H.push(new VV(TB),new N_(Id),new mW(T.Hh.adPodIndex),new Xj(I.adPlacementConfig));O&&H.push(new za(O));x&&H.push(new k4(x))}H.push(new Y8(T.Hh),new Vl(X.externalVideoId),new F6(a),new OK({impressionCommands:X.impressionCommands,abandonCommands:X.onAbandonCommands,completeCommands:X.completeCommands,progressCommands:X.adVideoProgressCommands}),new t5(T.lG),new EN({current:null}),new ud(T.aRJ.lz),new sQ(n0(X.pings)),new hT(T.Hh.adPodIndex)); J&&H.push(new hS(J));(T=DVE(l,w))&&H.push(new mM(T));f&&H.push(new q_(f.lG));X.adNextParams&&H.push(new mK(X.adNextParams));X.clickthroughEndpoint&&H.push(new gS(X.clickthroughEndpoint));X.legacyInfoCardVastExtension&&H.push(new Sh(X.legacyInfoCardVastExtension));X.sodarExtensionData&&H.push(new AT(X.sodarExtensionData));F&&X.adPodSkipTarget&&X.adPodSkipTarget>0&&(H.push(F),H.push(new Dg(X.adPodSkipTarget)));(f=W.get(X.externalVideoId))&&H.push(new w_(f));f=H}else f=new C("Invalid vod media renderer")}if(f instanceof C)return f;Z=Object.assign({},P,Y,{h5:v,renderingContent:d.renderingContent,clientMetadata:new D0(f),Tb:Fo(e,Z)(P),adLayoutLoggingData:d.adLayoutMetadata.adLayoutLoggingData});d=g.y(d.renderingContent,l0);if(!d||!u0(d))return new C("Invalid meida renderer");B=JT(B,d.externalVideoId);B.instreamVideoAdRenderer=d;B.Nb="AD_PLACEMENT_KIND_START";return V?(a=E6(w,Z,a,q,e,A,N,F,!1),a instanceof C?a:DVE(Z.layoutId,w)&&a?{layout:Object.assign({},Z,{clientMetadata:new D0(f.concat(new iG(a)))})}:{layout:Z,XF:a}): {layout:Z}}; SKd=function(Z,I){this.videoData=Z;this.L=I}; R2=function(Z){this.value=Z}; Dd7=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w){I=Aka(Z,I,"adapter",d,Y,T,f,P,O,a,e,B,w);Y=I.layoutExitSkipTriggers;T=I.II;d.adPodSkipTarget&&d.adPodSkipTarget>0&&(T.push(W),T.push(new Dg(d.adPodSkipTarget)),Y=[]);T.push(new hT(O.adPodIndex));d.isCritical&&(Y=[new $o(Z.L,I.layoutId,["error"])].concat(g.c(Y)));return{Q1:{layoutId:I.layoutId,layoutType:I.layoutType,h5:I.h5,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], r4:I.r4,clientMetadata:new D0(T),Tb:I.Tb,adLayoutLoggingData:I.adLayoutLoggingData},BT:Y,mF:I.layoutExitMuteTriggers,FU:I.layoutExitUserInputSubmittedTriggers,qD:I.layoutExitUserCancelledTriggers}}; L0=function(Z,I,d,Y,T,f){g2.call(this,Z,I,d,Y);this.S7=T;this.B=f;this.N=!1}; FEO=function(Z){try{return new UQ(Z.UK,Z.slot,Z.layout,Z.OP,Z.xZ,Z.V5,Z.n_,Z.B$,Z.pM,Z.S7,Z.hgJ,Z)}catch(I){}}; g.ly=function(Z,I){typeof Z==="function"&&(Z=g.t6(Z));return window.setInterval(Z,I)}; yV=function(Z,I,d){var Y=Z.L.get(I);Y?Y.push(d):Z.L.set(I,[d])}; Gl=function(Z){g.m7.call(this,{K:"div",T:"ytp-speedslider-component"});Z.Y("web_settings_use_input_slider")?this.L=new UV(Z):this.L=new vY(Z);g.z(this,this.L);this.element.appendChild(this.L.element)}; Lva=function(Z,I){var d=g.gZ("yt.embedded_player.embed_url");d&&(Z?(I=yF(Z,As,7)||new As,Kr(I,4,d),P6(Z,As,7,I)):I&&(I.thirdParty={embedUrl:d}))}; gD=function(Z){Z.D.startTime=Z.Z;Z.D.endTime=Z.L;var I=!1;Z.segments.length&&g.N2(Z.segments).isEmpty()?(Z.segments[Z.segments.length-1].previouslyEnded&&(Z.D.previouslyEnded=!0),Z.segments[Z.segments.length-1]=Z.D,I=!0):Z.segments.length&&Z.D.isEmpty()||(Z.segments.push(Z.D),I=!0);I?Z.D.endTime===0&&(Z.previouslyEnded=!1):Z.D.previouslyEnded&&(Z.previouslyEnded=!0);Z.B+=Z.L-Z.Z;Z.D=nr(Z.provider);Z.D.previouslyEnded=Z.previouslyEnded;Z.previouslyEnded=!1;Z.Z=Z.L}; g.k_=function(){var Z=lq();return Z?Promise.resolve(Z):$K9().then(function(I){(I=I?uq:void 0)&&g.zb("ytglobal.idbToken_",I);return I})}; EKd=function(Z,I){return new g.dj(Z?"auth":"manifest.net.retryexhausted",I,Z?2:1)}; Gc=function(Z,I,d){return new AX(Z,I,d)}; Jkd=function(Z){return new Qy(Z)}; lm=function(Z,I,d){I.rG().currentState>=2||(I.v$(I.Xm(),d),WE(I.rG())&&(zc(Z.x4,Z.slot,I.Xm(),d),Z.i8=void 0))}; kE=function(Z,I){return Z.map(function(d){return W9(g.eU(d,I))})}; Rmu=function(Z,I,d,Y,T,f){k5("TRANSACTION_ENDED",{objectStoreNames:Y,connectionHasUnknownAbortedTransaction:Z.D,duration:T,isSuccessful:I,tryCount:d,tag:f===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":f})}; g.Lu=function(Z){var I=new sf;return I.isAvailable()?Z?new lG(I,Z):I:null}; Udd=function(Z){LNd=Z}; X6=function(Z,I){Z.D.delete(I)}; bbO=function(Z){var I=Z.N.filter(function(d){return d.isChecked()}); I.length!==0&&(I=I[0].getCommand(),Z.layoutId?Z.Hj.executeCommand(I,Z.layoutId):g.nl(Error("Missing layoutId for ad feedback dialog.")),Z.api.onAdUxClicked("ad-feedback-dialog-confirm-button",Z.layoutId),Z.publish("a"),Z.hide())}; iYO=function(Z,I,d){q0B([{settingItemId:I,settingOptionValue:d}]);BC(Z.NA(),function(Y){ykD(Y,I,d)})}; Qvi=function(Z){Z=v4L(Z);var I=Z[0].Ew;if(Z=Z[1]){var d=W8(Z),Y=P8(Qs,Oj,aM,Z).Py;return function(T,f,P){return I(T,f,P,Y,d)}}return I}; tT=function(Z){this.value=Z}; lsl=function(Z,I,d){d=d===void 0?0:d;g.t6(function(){I.then(function(Y){Z.D.has(d)&&Z.N&&Z.N();var T=g.vv(d),f=g.lg(d);if(T&&f){var P={automatedLogEventSource:3},O;(Y==null?0:(O=Y.response)==null?0:O.trackingParams)&&g.$5(Z.client,T,f,g.p0(Y.response.trackingParams),!1,P);var a;(Y==null?0:(a=Y.playerResponse)==null?0:a.trackingParams)&&g.$5(Z.client,T,f,g.p0(Y.playerResponse.trackingParams),!1,P)}})})()}; us7=function(Z,I,d,Y){I=x5(Z,I,d,Y);return I instanceof C?I:Yn(Z,I,d)}; K0=function(Z,I){switch(I){case "normal":Z.rK("complete");break;case "skipped":Z.rK("skip");break;case "abandoned":Ab(Z.EZ,"impression")&&Z.rK("abandon")}}; iE=function(Z){this.Gm=bp(Z)}; Ga$=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next())h3(Z,d.value.slot,!1)}; zmD=function(Z){function I(Y){return Z.next(Y)} function d(Y){return Z.throw(Y)} return new Promise(function(Y,T){function f(P){P.done?Y(P.value):Promise.resolve(P.value).then(I,d).then(f,T)} f(Z.next())})}; $d9=function(Z){var I,d,Y,T,f,P;return g.h(function(O){switch(O.L){case 1:if(Z.D)return O.return(Uq());if(!Z.B)return I=g.Pk("getHotConfig IDB not initialized"),$6(I),O.return(Promise.reject(I));d=lq();Y=g.rh("TIME_CREATED_MS");if(!d){T=g.Pk("getHotConfig token error");$6(T);O.xS(2);break}return g.m(O,kai(d),3);case 3:if((f=O.D)&&f.timestamp>Y)return J0(Z,f.config),Z.Jq(f.hashData),O.return(Uq());case 2:XsE(Z);if(!(d&&Z.D&&Z.hotHashData)){O.xS(4);break}return g.m(O,tbO(Z.D,Z.hotHashData,d,Y),4);case 4:return Z.D? O.return(Uq()):(P=new g.Wj("Config not available in ytConfig"),$6(P),O.return(Promise.reject(P)))}})}; C0=function(Z,I){g.p.call(this);var d=this;this.L=null;this.Z=I;I=[];for(var Y=0;Y<=100;Y++)I.push(Y/100);I={threshold:I,trackVisibility:!0,delay:1E3};(this.D=window.IntersectionObserver?new IntersectionObserver(function(T){T=T[T.length-1];var f=null;typeof T.isVisible==="undefined"?document.visibilityState==="visible"&&T.isIntersecting&&T.intersectionRatio>0?f=T.intersectionRatio:document.visibilityState==="hidden"?f=0:f=null:f=T.isVisible?T.intersectionRatio:0;f!=null&&(f=Math.max(f,0),f=Math.min(f, 1));d.L=f;typeof d.Z==="function"&&d.Z(d.L)},I):null)&&this.D.observe(Z)}; X4=function(Z){g.iN.setTimeout(function(){throw Z;},0)}; wsi=function(){var Z=BZn(),I=(0,g.o8)()-Z.Z;if(!(Z.Z!==0&&I0&&(Z.headers=I);return Z}; r3=function(){$r.apply(this,arguments);this.requestHeaders={}}; Mb$=function(Z){var I=!!Z.kJ;g.Pz(Z.Gb,I?"Copy debug info":"Get debug info");ZH(Z.Gb,!I);g.Pz(Z.Xe,I?"Copy embed code":"Get embed code");ZH(Z.Xe,!I);g.Pz(Z.getVideoUrl,I?"Copy video URL":"Get video URL");ZH(Z.getVideoUrl,!I);g.Pz(Z.RU,I?"Copy video URL at current time":"Get video URL at current time");ZH(Z.RU,!I);Z.Xe.setIcon(I?WKJ():null);Z.getVideoUrl.setIcon(I?Ib():null);Z.RU.setIcon(I?Ib():null)}; Zpl=function(Z){return{ER:BG(Z,1),action:wd(Z,2),jq:I2(Z,3,rku)}}; F7=function(Z){var I=[{cpn:Z.Z.PE()}];Z.D&&I.push({cpn:Z.D.PE()});Z.api.publish("playbackChange",{oAS:I})}; d$=function(Z,I,d,Y,T){Rj.call(this,"top-banner-image-text-icon-buttoned",Z,I,d,Y,T)}; Pea=function(Z,I,d,Y,T){I=g.y(I.renderingContent,l0);if(!I)return new C("Invalid rendering content for DAI media layout");Z=[new F6(Y),new ud(d.ea.videoLengthSeconds),new t5(d.ea.playerVars),new LS(d.s8),new tT(d.Kq),new mW(d.yq),new Xj(sE(Z)),new Vl(d.ea.adVideoId),new Y8(d.Hh),I.sodarExtensionData&&new AT(I.sodarExtensionData),new EN({current:null}),new Dx({}),new sQ(n0(I.pings))].filter(IUJ);T!==void 0&&Z.push(new J6(T));return Z}; dFu=function(){var Z;return((Z=navigator.connection)==null?void 0:Z.type)||""}; YLu=function(Z,I){if(I.info.type===1)if(I.info.L.info.video){var d=Z.timing;d.mJ||(d.mJ=(0,g.o8)(),g.aI("vis_r",d.mJ,d.L))}else d=Z.timing,d.X||(d.X=(0,g.o8)(),g.aI("ais_r",d.X,d.L));olJ(Z.N,I);Z=Z.loader;Z.videoTrack.L.SD()&&Z.audioTrack.L.SD()&&Z.policy.L&&!Z.u5.Qy&&(I=Z.audioTrack.getDuration(),d=Z.videoTrack.getDuration(),Math.abs(I-d)>1&&Z.D1("trBug",{af:""+g.eU(Z.audioTrack.L.info,!1),vf:""+g.eU(Z.videoTrack.L.info,!1),a:""+I,v:""+d}))}; jpi=function(){return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}}; g.ob=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"m 23.94,18.78 c .03,-0.25 .05,-0.51 .05,-0.78 0,-0.27 -0.02,-0.52 -0.05,-0.78 l 1.68,-1.32 c .15,-0.12 .19,-0.33 .09,-0.51 l -1.6,-2.76 c -0.09,-0.17 -0.31,-0.24 -0.48,-0.17 l -1.99,.8 c -0.41,-0.32 -0.86,-0.58 -1.35,-0.78 l -0.30,-2.12 c -0.02,-0.19 -0.19,-0.33 -0.39,-0.33 l -3.2,0 c -0.2,0 -0.36,.14 -0.39,.33 l -0.30,2.12 c -0.48,.2 -0.93,.47 -1.35,.78 l -1.99,-0.8 c -0.18,-0.07 -0.39,0 -0.48,.17 l -1.6,2.76 c -0.10,.17 -0.05,.39 .09,.51 l 1.68,1.32 c -0.03,.25 -0.05,.52 -0.05,.78 0,.26 .02,.52 .05,.78 l -1.68,1.32 c -0.15,.12 -0.19,.33 -0.09,.51 l 1.6,2.76 c .09,.17 .31,.24 .48,.17 l 1.99,-0.8 c .41,.32 .86,.58 1.35,.78 l .30,2.12 c .02,.19 .19,.33 .39,.33 l 3.2,0 c .2,0 .36,-0.14 .39,-0.33 l .30,-2.12 c .48,-0.2 .93,-0.47 1.35,-0.78 l 1.99,.8 c .18,.07 .39,0 .48,-0.17 l 1.6,-2.76 c .09,-0.17 .05,-0.39 -0.09,-0.51 l -1.68,-1.32 0,0 z m -5.94,2.01 c -1.54,0 -2.8,-1.25 -2.8,-2.8 0,-1.54 1.25,-2.8 2.8,-2.8 1.54,0 2.8,1.25 2.8,2.8 0,1.54 -1.25,2.8 -2.8,2.8 l 0,0 z", fill:"#fff"}}]}}; Dk=function(){var Z=hG;return Z.L.length==0?Z.D:Z.D.length==0?Z.L:g.Yy(Z.D,Z.L)}; cku=function(Z,I,d,Y){Z=Z.isView()?Z.mediaElement:Z;return new g.TH(Z,I,d,Y)}; WM=function(Z){if(!T0$(Z)||!e1(Z,524531317))return!1;F2(Z,!0);return!0}; ipD=function(Z){if(Z.L==null)Z.callback.aW(Z.slot);else try{Z.L.cancel(),Z.L=null,Z.callback.aW(Z.slot)}catch(I){Z.L=null,ii(Z.callback,Z.slot,new C(I,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; cu=function(Z,I){I=Z.Vt({playerType:I});if(!I)return Z.DU.L.HB();I=fK(Z,I);return no(Z,I.HB(),I)}; PU=function(Z,I){return!Z.j&&bq()&&mc(55)&&Z.controlsType==="3"&&!I}; g.Q9=function(Z){return(new fUB).It(Z)}; ab=function(Z,I,d,Y,T){kw.call(this,Z,{K:"span",T:T?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",I,d,Y);this.D=T;this.adBadgeText=new Oe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj);this.adBadgeText.i5(this.element);g.z(this,this.adBadgeText);T?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),RZ&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; WU=function(Z){this.Gm=bp(Z,36)}; Pm$=function(Z){Z.L.forEach(function(I){I.delay.dispose()}); Z.L.clear()}; qF=function(Z,I){I===void 0||!I||Z.indexRange&&Z.initRange&&Z.Gx||Ap(Z,new DU("Woffle: Expect isFinal to always have indexRange and initRange and lastSlice"));I={lmt:Z.L.info.lastModified,docid:Z.policy.N,fmtid:Z.L.info.id,type:Z.L.info.mimeType.split(";")[0],csz:Z.chunkSize,clen:Z.N*Z.chunkSize+Z.D};Z.crypto&&(I.ck=Z.V,I.civ=Z.j);var d="local://localhost/videoplayback?"+Ij(I),Y,T;I={itag:+Z.L.info.itag,mimeType:Z.L.info.mimeType,bitrate:Z.L.info.pS*8,lastModified:String(Z.L.info.lastModified),initRange:(Y= Z.initRange)==null?void 0:Qp$(Y),indexRange:(T=Z.indexRange)==null?void 0:Qp$(T),url:d};if(Y=Z.L.info.L)I.xtags=Y;if(Y=Z.L.info.video)if(I.quality=Y.quality,I.qualityLabel=Y.qualityLabel,I.width=Y.width,I.height=Y.height,Y=Y.fps)I.fps=Y;if(Z=Z.L.info.audio){if(Y=Z.sampleRate)I.audioSampleRate=String(Y);if(Z=Z.numChannels)I.audioChannels=Z}return I}; OpE=function(Z){if(dB(Z.slot.clientMetadata,"metadata_type_prefetch_metadata")){var I=Ola(Z,Z.slot);qg(Z.L.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[I]})}}; w$=function(){return swE()||ea()||BU()?!0:g.rh("EOM_VISITOR_DATA")?!1:!0}; g.V9=function(Z){Z.isActive()&&g.oj(Z)}; e0d=function(Z,I,d){var Y=this;this.loader=Z;this.policy=I;this.B=d;this.logger=new g.qj("dash");this.D=[];this.L=null;this.Ns=-1;this.In=0;this.fS=NaN;this.LS=0;this.Z=NaN;this.X=this.mJ=0;this.on=-1;this.j7=this.N=this.j=this.Bj=null;this.J5=this.sZ=NaN;this.V=this.kS=this.w4=this.d4=null;this.y5=!1;this.Tm=this.timestampOffset=0;this.A9={w0:function(){return Y.D}}; if(this.policy.N){var T=this.B,f=this.policy.N;this.policy.y5&&Z.D1("atv",{ap:this.policy.y5});this.V=new N0(this.policy,T,function(P,O,a){Z.t5.hQ(new D4(Y.policy.N,2,{Xh:new aUa(f,P,T.info,O,a)}))}); this.V.X.promise.then(function(P){Y.V=null;P===1?Z.t5.hQ(new D4(Y.policy.N,P)):Y.loader.D1("offlineerr",{status:P.toString()})},function(P){var O=(P.message||"none").replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"); P instanceof DU&&!P.L?(Y.loader.D1("offlinenwerr",{em:O}),FK(Y),Z.t5.hQ(new D4(Y.policy.N,4))):(Y.loader.D1("dldbwerr",{em:O}),FK(Y),Z.t5.hQ(new D4(Y.policy.N,4,{DJ:!0})))})}}; WAB=function(Z){var I=Z.D.reduce(function(d,Y){return d+Y.D.totalLength},0); Z.L&&(I+=Z.L.D.totalLength);return I}; se=function(Z){return Z.t5.yn()0?dD:-1;else if(sJ= g.y(Zr,zz)){Zr=Jp$(Z,I,d,sJ,f,q,O,x,dD);if(Zr instanceof C){V=Zr;break a}Zr=Zr(w);A.push(Zr.Q1);F=[].concat(g.c(Zr.BT),g.c(F));J=[].concat(g.c(Zr.mF),g.c(J));Zr.XF&&(TB=[Zr.XF].concat(g.c(TB)))}else if(sJ=g.y(Zr,k1)){if(V===void 0){V=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:sJ});break a}Zr=RvO(Z,I,d,f,sJ,H,O,V,q,fH(e,"supports_multi_step_on_desktop"));if(Zr instanceof C){V=Zr;break a}Zr=Zr(w);A.push(Zr.Q1);Zr.XF&&TB.push(Zr.XF);F= [].concat(g.c(Zr.BT),g.c(F));J=[].concat(g.c(Zr.mF),g.c(J));v=[].concat(g.c(Zr.FU),g.c(v));l=[].concat(g.c(Zr.qD),g.c(l));X=[H].concat(g.c(X))}else if(Zr=g.y(Zr,XI)){Zr=LAO(Z,I,d,f,Zr,H,O,q);if(Zr instanceof C){V=Zr;break a}Zr=Zr(w);A.push(Zr.Q1);Zr.XF&&TB.push(Zr.XF);J=[].concat(g.c(Zr.mF),g.c(J))}else{V=new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}V={Ai:A,layoutExitSkipTriggers:F,layoutExitUserInputSubmittedTriggers:v,layoutExitUserCancelledTriggers:l,layoutExitMuteTriggers:J, wj:X,je:TB}}}else a:if(q=DFL(Y,d,e),q instanceof C)V=q;else{A=0;F=[];J=[];v=[];l=[];X=[];H=[];x=new id({current:null});Id=new Xs({current:null});TB=!1;Qu=[];dD=-1;N=g.t(Y);for(Zr=N.next();!Zr.done;Zr=N.next())if(Zr=Zr.value,g.y(Zr,Gz)){Zr=PN$(I,d,g.y(Zr,Gz),O);if(Zr instanceof C){V=Zr;break a}Zr=Zr(w);F.push(Zr.Q1);J=[].concat(g.c(Zr.BT),g.c(J));v=[].concat(g.c(Zr.mF),g.c(v));Zr.XF&&(Qu=[Zr.XF].concat(g.c(Qu)))}else if(g.y(Zr,l0)){dD=AV(g.y(Zr,l0),d,e);if(dD instanceof j$){V=new C(dD);break a}Zr= new rO(A,q);Zr=Dd7(I,dD.layoutId,dD.Y4,d,LK(dD.playerVars,dD.wZ,P,W,Zr),dD.lz,f,Zr,O(w),Id,a.get(dD.Y4.externalVideoId),void 0,B);A++;F.push(Zr.Q1);J=[].concat(g.c(Zr.BT),g.c(J));v=[].concat(g.c(Zr.mF),g.c(v));TB||(H.push(Id),TB=!0);dD=(dD=dD.Y4.adPodSkipTarget)&&dD>0?dD:-1}else if(g.y(Zr,zz)){Zr=Jp$(Z,I,d,g.y(Zr,zz),f,A,O,Id,dD);if(Zr instanceof C){V=Zr;break a}Zr=Zr(w);F.push(Zr.Q1);J=[].concat(g.c(Zr.BT),g.c(J));v=[].concat(g.c(Zr.mF),g.c(v));Zr.XF&&(Qu=[Zr.XF].concat(g.c(Qu)))}else if(g.y(Zr, k1)){if(V===void 0){V=new C("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.y(Zr,k1)});break a}Zr=RvO(Z,I,d,f,g.y(Zr,k1),x,O,V,A,fH(e,"supports_multi_step_on_desktop"));if(Zr instanceof C){V=Zr;break a}Zr=Zr(w);F.push(Zr.Q1);Zr.XF&&Qu.push(Zr.XF);J=[].concat(g.c(Zr.BT),g.c(J));v=[].concat(g.c(Zr.mF),g.c(v));l=[].concat(g.c(Zr.FU),g.c(l));X=[].concat(g.c(Zr.qD),g.c(X));H=[x].concat(g.c(H))}else if(g.y(Zr,XI)){Zr=LAO(Z,I,d,f,g.y(Zr,XI),x,O,A); if(Zr instanceof C){V=Zr;break a}Zr=Zr(w);F.push(Zr.Q1);Zr.XF&&Qu.push(Zr.XF);v=[].concat(g.c(Zr.mF),g.c(v))}else{V=new C("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}V={Ai:F,layoutExitSkipTriggers:J,layoutExitUserInputSubmittedTriggers:l,layoutExitUserCancelledTriggers:X,layoutExitMuteTriggers:v,wj:H,je:Qu}}V instanceof C?w=V:(X=w.slotId,q=V.Ai,A=V.layoutExitSkipTriggers,F=V.layoutExitMuteTriggers,J=V.layoutExitUserInputSubmittedTriggers,v=V.wj,w=O(w),l=T?T.layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES", X=T?T.layoutId:zi(I.D.get(),l,X),H={layoutId:X,layoutType:l,r4:"core"},w={layout:{layoutId:X,layoutType:l,h5:new Map,layoutExitNormalTriggers:[new Ws(I.L,X)],layoutExitSkipTriggers:A,layoutExitMuteTriggers:F,layoutExitUserInputSubmittedTriggers:J,layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new Ue(q)].concat(g.c(v))),Tb:w(H)},je:V.je});return w}}; y9=function(){this.V=!1;this.N=null;this.D=void 0;this.L=1;this.B=this.j=0;this.In=this.Z=null}; ypB=function(Z,I){if(!Z.xl)return!1;var d=Z.xl.startTimeMs*.001-1,Y=Z.xl.endTimeMs*.001;Z.xl.type==="repeatChapter"&&Y--;return Math.abs(I-d)<=1E-6||Math.abs(I-Y)<=1E-6||I>=d&&I<=Y}; vlD=function(Z){var I=null,d="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);I=new g.GA(Z.S,{K:"span",zm:["ytp-popup","ytp-generic-popup"],J:{tabindex:"0"},G:[d[0],{K:"a",J:{href:"https://support.google.com/youtube/?p=noaudio",target:Z.S.C().In},Z1:d[2]},d[4]]},100,!0);g.z(Z,I);I.hide();I.subscribe("show",function(Y){Z.S.xR(I,Y)}); g.iS(Z.S,I.element,4)}; MR=function(Z,I){for(var d in Z)if(I.call(void 0,Z[d],d,Z))return d}; li=function(Z){if(vU(Z.S.C()))return Z.nN.get("kids")}; y6O=function(Z,I){var d,Y=(d=dB(Z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:d.current;if(!Y)return null;d=Az7(Z,I);return{qE:lUD(Z,I),adPlacementConfig:dB(Z.clientMetadata,"metadata_type_ad_placement_config"),Xp:d,contentCpn:dB(Z.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:dB(Z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:dB(Z.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:dB(Z.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,C9:void 0,U6:Y,kO:Z.layoutId,videoLengthSeconds:dB(Z.clientMetadata,"metadata_type_video_length_seconds")}}; ui=function(){this.state=1;this.AZ=null;this.UI=void 0}; GOB=function(Z,I,d,Y){var T=Z.u5,f=Z.t5.getVideoData(),P=Z.fm,O=eRO({Bk:Z.Bk,nS:f.C(),t5:Z.t5,CB:Z.CB,bu:Z.bu,Td:Z.Td,dW:Z.dW,Sh:Z.Sh,rH:Z.rH,PK:Z.PK,EF:Z.EF,LP:Z.LP,sabrLicenseConstraint:f.sabrLicenseConstraint,EK:Z.EK,QV:Z.QV,dL:Z.dL,JN:Z.JN,Ds5:!!P,authorizedFormats:f.authorizedFormats}),a=NA(f,Z.mX,Z.nextRequestPolicy,Z.Pi,Z.H8,Z.Y3,Z.YV);d&&I&&(d=a.Vb?a.Vb.map(function(w){return w.type}):[],I("sabr",{stmctxt:d.join("_"), unsntctxt:a.nE?a.nE.join("_"):""}));I=Z.BV;d=Z.ix;if(d===void 0&&I===void 0){var W;d=uld(T.Qy,(W=Z.Ar)==null?void 0:W.video);var e;I=uld(T.Qy,(e=Z.Ar)==null?void 0:e.audio)}if(f.Fw)var B=f.Fw;f={O4:O,sF:Z.sF,BV:I,ix:d,fm:P,videoPlaybackUstreamerConfig:B,HV:a};Y&&Z.dE?Z.dE.length>0&&(f.dE=Z.dE):Z.A$&&(f.A$=Z.A$);f.N8=Z.N8;f.qJ=T.on;return f}; g8=function(Z,I,d){return Z0?" "+I:I))}}; Xf7=function(Z,I,d){this.nx=Z;this.ue=I;this.metadata=d}; ky=function(Z){return zH(Z)>0}; tMn=function(Z,I,d){g.nl(d);Z.Z&&(d instanceof DOMException&&(I+=";n."+d.name+";m."+d.message),Z.Z(I))}; pfd=function(Z,I,d,Y,T){g.p.call(this);var f=this,P=ZE(function(){return new IV(f.Ms)}); g.z(this,P);var O=ZE(function(){return new dg(P,f.Ms)}); g.z(this,O);var a=ZE(function(){return new oV}); g.z(this,a);var W=ZE(function(){return new Yh(Z)}); g.z(this,W);var e=ZE(function(){return new jO(P,O,f.Ms)}); g.z(this,e);var B=ZE(function(){return new TJ}); g.z(this,B);this.L_=ZE(function(){return new ie(I)}); g.z(this,this.L_);this.jK=ZE(function(){return new fZ(T)}); g.z(this,this.jK);this.SJ=ZE(function(){return new Pb(I)}); g.z(this,this.SJ);this.xu=ZE(function(){return new QX(I)}); g.z(this,this.xu);this.B$=ZE(function(){return new Oz(I)}); g.z(this,this.B$);this.eJ=ZE(function(){return new aV(I)}); g.z(this,this.eJ);this.Ms=ZE(function(){return new Wb(I)}); g.z(this,this.Ms);var w=ZE(function(){return new eO(Y)}); g.z(this,w);var V=ZE(function(){return new Bb(f.Ms)}); g.z(this,V);var N=ZE(function(){return new mE(P,e,O,f.Ms,V,null,null,f.rB,f.rV)}); g.z(this,N);this.qy=ZE(function(){return new wg(I)}); g.z(this,this.qy);this.vS=ZE(function(){return new XK}); g.z(this,this.vS);this.V5=ZE(function(){return new VX(I,B,f.Ms)}); g.z(this,this.V5);var q=N6({V5:this.V5,Ms:this.Ms,hZ:V}),A=q.context,F=q.eF;this.Wk=q.Wk;this.sP=ZE(function(){return new FV(I,f.Ms,f.Q5)}); this.S7=ZE(function(){return new nZ(I,f.V5,f.Ms)}); g.z(this,this.S7);this.KF=ZE(function(){return new hI}); g.z(this,this.KF);this.Df=ZE(function(){return new AN(f.S7,I,f.Ms)}); g.z(this,this.Df);this.Q5=ZE(function(){return new SO(I,a,f.Df,f.V5,f.Wk,f.Ms,F)}); g.z(this,this.Q5);this.l8=ZE(function(){return new q6(f.Ms)}); g.z(this,this.l8);this.J$=new JI(QU,RV,function(v,l,X,H){return tu(O.get(),v,l,X,H)},W,e,O,V,this.Ms,this.V5); g.z(this,this.J$);this.SM=new AI(W,N,d,this.Ms,Z,this.V5,this.S7,this.SJ);g.z(this,this.SM);var J=new DE(I,this.SM,this.S7,this.V5,this.sP);this.Tz=ZE(function(){return J}); this.b7=J;this.rB=new LZ(W,e,this.Tz,this.sP,this.S7,this.Ms,this.Q5);g.z(this,this.rB);this.Ef=new Uz(W,e,this.xu,this.Tz,A);g.z(this,this.Ef);this.z_=new yX(this.Ms,W,e,N,this.V5,this.Ef,d,this.B$);g.z(this,this.z_);this.B3=ZE(function(){return new vb(w,O,V,f.Ms,f.Q5,f.S7)}); g.z(this,this.B3);this.gV=ZE(function(){return new le}); g.z(this,this.gV);this.Nj=new ue(Z,this.L_,this.Ms);g.z(this,this.Nj);this.R0=new GJ(Z);g.z(this,this.R0);this.TT=new $y(Z);g.z(this,this.TT);this.XM=new zJ(Z,this.Tz,A);g.z(this,this.XM);this.RE=new kh(Z,this.xu,this.S7,this.V5,A);g.z(this,this.RE);this.xZ=new $h(Z);g.z(this,this.xZ);this.RK=new pZ(Z);g.z(this,this.RK);this.H6=new pK(Z);g.z(this,this.H6);this.n_=ZE(function(){return new sz(I)}); g.z(this,this.n_);this.OP=new xh(Z);g.z(this,this.OP);this.rV=new tI(Z,this.sP,this.S7,this.Q5,this.Tz,this.rB);g.z(this,this.rV);this.IE=ZE(function(){return new KZ}); g.z(this,this.IE);this.CA=ZE(function(){return new CZ(f.S7)}); g.z(this,this.CA);this.xm=ZE(function(){return new Ez(f.z_,W,P)}); g.z(this,this.xm);this.Te=ZE(function(){return new be(f.Ms,f.Q5,f.xZ,f.Df)}); g.z(this,this.Te);this.Z_=ZE(function(){return new $F9(f.L_,f.S7,f.Q5,a,f.Df,f.TT,f.H6,f.jK,f.Ms,d)}); g.z(this,this.Z_);this.d5=ZE(function(){return new KK(Z,f.OP,f.xZ,f.Q5,f.Df,f.l8,f.B$,f.V5,f.S7,f.KF,f.xu,f.SJ,f.eJ,f.jK,f.qy,f.Ms,f.n_,A,F)}); g.z(this,this.d5);this.H7=new CK(Z,this.vS,P);g.z(this,this.H7);this.WO={iY:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.z_],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rB],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.J$],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.SM],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),s4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B3],["SLOT_TYPE_FORECASTING",this.gV],["SLOT_TYPE_IN_PLAYER",this.gV], ["SLOT_TYPE_PLAYER_BYTES",this.gV]]),t0:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Nj],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.R0],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.R0],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.R0],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.R0],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.R0],["TRIGGER_TYPE_SLOT_ID_EXITED",this.R0],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.R0],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.R0],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.R0], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.R0],["TRIGGER_TYPE_CLOSE_REQUESTED",this.TT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.XM],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.RE],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.RE],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.RE],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.XM],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.RK],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.H6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.OP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.rV],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.rV],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.rV],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.rV],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.rV]]),DO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.IE],["SLOT_TYPE_FORECASTING",this.IE],["SLOT_TYPE_IN_PLAYER",this.IE],["SLOT_TYPE_PLAYER_BYTES",this.CA]]), zE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xm],["SLOT_TYPE_FORECASTING",this.Te],["SLOT_TYPE_IN_PLAYER",this.Z_],["SLOT_TYPE_PLAYER_BYTES",this.d5]])};this.listeners=[a.get()];this.er={z_:this.z_,jL:this.Ms.get(),Hj:this.jK.get(),QS:this.S7.get(),SM:this.SM,IC:P.get(),FE:this.vS.get(),UY:this.Nj,oF:a.get(),pN:this.V5.get()}}; Ee=function(Z){g.p.call(this);this.wpc=Z}; xFL=function(Z){return g.rh(j3(Z===void 0?0:Z))}; KAE=function(Z){Z.contentCpn=null;Z.adCpn=null;Z.videoId=null;Z.adVideoId=null;Z.adFormat=null;Z.N="AD_PLACEMENT_KIND_UNKNOWN";Z.actionType="unknown_type";Z.Z=!1;Z.D=!1}; wPr=function(Z){var I=CmE(Z);Z=Z.defaultView;return new g.vS((Z==null?void 0:Z.pageXOffset)||I.scrollLeft,(Z==null?void 0:Z.pageYOffset)||I.scrollTop)}; Fv=function(Z,I){g.K2(Z.L,"width",I)}; Eli=function(Z){return Z.replace(/(\d+)---/g,function(I,d){I=Number(d);return(I===1?2:I-1)+"---"})}; bi=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){d=d.value;var Y=Z.kS.get(d.triggerId);Y&&(Y.h$(d),Z.kS.delete(d.triggerId))}}; g.IB=function(Z){var I=typeof Z;return I=="object"&&Z!=null||I=="function"}; g.HU=function(Z){Z=Z===void 0?{}:Z;g.mv.call(this);var I=this;this.L=this.N=0;this.D=j6L();var d=g.gZ("yt.networkStatusManager.instance.listen").bind(this.D);d&&(Z.rateLimit?(this.rateLimit=Z.rateLimit,d("networkstatus-online",function(){bpa(I,"publicytnetworkstatus-online")}),d("networkstatus-offline",function(){bpa(I,"publicytnetworkstatus-offline")})):(d("networkstatus-online",function(){I.dispatchEvent("publicytnetworkstatus-online")}),d("networkstatus-offline",function(){I.dispatchEvent("publicytnetworkstatus-offline")})))}; Hpi=function(Z,I,d){this.label=Z;this.type=I;this.value=d;this.duration=0;this.taskId=this.slotId=void 0;this.uniqueId=Math.random()}; Sq=function(Z){if(Z.offset>=Z.L.totalLength)throw Error();return O2(Z.L,Z.offset++)}; ue=function(Z,I,d){cU.call(this,Z);var Y=this;this.Ms=d;I.get().addListener(this);this.addOnDisposeCallback(function(){I.OZ()||I.get().removeListener(Y)})}; cpl=function(Z){for(var I=g.t("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),d=I.next();!d.done;d=I.next())Z.kc.W(Z.mediaElement,d.value,Z.ai,Z);Z.U.Nt&&Z.mediaElement.lk()&&(Z.kc.W(Z.mediaElement,"webkitplaybacktargetavailabilitychanged",Z.MK5,Z),Z.kc.W(Z.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",Z.NK5,Z))}; BX=function(Z,I){return yRr(Z,I||{},!0)}; gln=function(Z){this.L=Z}; MMD=function(Z){Ab(Z,"impression")&&!Ab(Z,"seek")&&Z.vO("active_view_fully_viewable_audible_half_duration")}; y8=function(Z){return Z.fS==="detailpage"}; g$=function(Z){return{downloadedEndTime:Math.round(Z.Gx?Z.Gx.j:0),maxKnownEndTime:Math.round(Z.L.index.EG()),averageByteRate:Math.round(Z.L.info.mV)}}; g.PI=function(Z,I){typeof Z.className=="string"?Z.className=I:Z.setAttribute&&Z.setAttribute("class",I)}; P0l=function(){if(czL()&&!rpl){var Z=function(d){d=d.data;if(d.op==="serializedGelBatch"){var Y=at.get(d.key);Y&&(uRD(d.serializedBatch,Y.client,Y.resolve,Y.networklessOptions,Y.isIsolated,Y.useVSSEndpoint,Y.dangerousLogToVisitorSession,Y.requestsOutstanding),at.delete(d.key))}},I=Qc(); I&&(I.addEventListener("message",Z),I.onerror=function(){at.clear()}); rpl=!0}}; IVJ=function(Z,I){var d=null,Y=Z.text;I&&(Y=sZL(Y)||Y);Z.bold&&(d=LF("B",null,d||Y));Z.italics&&(d=LF("I",null,d||Y));Z.strikethrough&&(d=LF("STRIKE",null,d||Y));Z.navigationEndpoint&&g.y(Z.navigationEndpoint,g.M0)&&(I=g.y(Z.navigationEndpoint,g.M0),d=LF("A",null,d||Y),g.M3(d,I.url),I.target=="TARGET_NEW_WINDOW"&&(d.target="_blank"),Z=Z.navigationEndpoint.loggingUrls)&&(Z=Z.map(function(T){return T.baseUrl}),Zon().register(d,Z),g.xw(d,"ytp-ad-has-logging-urls")); return d||LF("SPAN",null,Y)}; r$=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ytp-image-background",G:[{K:"img",T:"ytp-image-background-image"}]},"image-background",I,d,Y);this.hide()}; D0=function(Z){var I=new Map;Z.forEach(function(d){I.set(d.L(),d)}); this.L=I}; o8L=function(Z,I,d){if(d!==xb)throw Error();this.typeName=Z;this.L=I;if(d!==xb)throw Error();dra.set(Z,this)}; jd=function(Z){var I=Z;if(Zw(I)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(I))throw Error(String(I));}else if(YDO(I)&&!Number.isSafeInteger(I))throw Error(String(I));return Ie?BigInt(Z):Z=jfJ(Z)?Z?"1":"0":Zw(Z)?Z.trim()||"0":String(Z)}; TFD=function(Z,I){var d=arguments.length==2?Mtr(arguments[1],0):Mtr(arguments,1);return KP(Z,d)}; g.dI=function(Z){var I,d;return!!((I=Z.embeddedPlayerConfig)==null?0:(d=I.embeddedPlayerFlags)==null?0:d.enableMusicUx)}; ioa=function(Z){Z.N&&(Z.N.resolve(Z.mediaElement.getCurrentTime()),Z.LS.D=null)}; fVa=function(Z){if(!Z.D){Z.D=!0;var I=Z.t5.getPlayerState();I=I.isPaused()||I.isSuspended();Z.t5.Ge();I&&!yB(Z.videoData)||Z.t5.publish("signatureexpired")}}; Qfr=function(Z,I,d){Pkd&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+Z.constructor.name+"] '"+Z.state+"' to '"+I+"'"),console.log("with message: ",d),console.groupEnd())}; Ood=function(Z){(Z=Z.CN())&&Z.xX()}; Zu=function(Z){return Z.right-Z.left}; wF=function(){bW.call(this,"Biscotti ID is missing from server")}; oe=function(Z,I){I=I===void 0?[]:I;g.ik(Z,function(d,Y){var T=Y.pS-d.pS;if(!d.zx()||!Y.zx())return T;var f=Y.video.height*Y.video.width-d.video.height*d.video.width;!f&&I&&I.length>0&&(d=I.indexOf(d.Pj)+1,Y=I.indexOf(Y.Pj)+1,f=d===0||Y===0?Y||-1:d-Y);f||(f=T);return f})}; aVa=function(Z,I){if(!Z.B){I=xE(142,I);Ot();var d;YX.visibilityState?d="visibilitychange":YX.mozVisibilityState?d="mozvisibilitychange":YX.webkitVisibilityState&&(d="webkitvisibilitychange");d&&KL(YX,d,I,{capture:!1})&&(Z.B=I)}}; jf=function(Z,I,d,Y){for(var T=0;T1&&!(I.WB>0||I.X)){for(var a=I.D||!!T,W=a&&I.Hk?f:void 0,e=FFE(I,Y),B=[],w=[],V={},N=0;N500&&I.D1("vmlock",{diff:P.toFixed()});I.j7=f},250)); this.provider.videoData.SI&&(this.remoteControlMode=yFO[this.provider.videoData.SI]||0);this.provider.videoData.yJ&&(d=v8O(this.provider.videoData.yJ),d==null?0:d.length)&&(this.remoteConnectedDevices=d);Z.U.Vy()&&(this.J5=new nW,g.z(this,this.J5));lVJ(Z.U)&&(this.sZ=new Rb,g.z(this,this.sZ))}; uC7=function(Z){Z.L.enabled||Z.L.start();Z.N++;Z.N>=Z.Z&&Z.hv()}; WOa=function(Z,I){var d=I.bgp&&I.bgub,Y=!!I.upb;I.siub&&I.scs&&(d||Y)&&(Y&&fH(Z.Ms.get(),"html5_export_sodar_snapshot")?ho().then(function(T){T=T.snapshot.bind(T);g.zb("yt.abuse.playerAttLoaderRun",T);GZL(I.siub,I.scs,I.bgub,I.bgp,I.upb)}):GZL(I.siub,I.scs,I.bgub,I.bgp,I.upb))}; rDO=function(Z){if(typeof Z!=="string")throw Error();return Z}; qt=function(){if(!mk.instance){var Z=g.gZ("yt.networkRequestMonitor.instance")||new mk;g.zb("yt.networkRequestMonitor.instance",Z);mk.instance=Z}return mk.instance}; Lt=function(Z){return zqJ(g.gB(Z)[5]||null)}; UL=function(Z){if(Z<0){ZA(0-Z);var I=g.t(vf(FS,n7));Z=I.next().value;I=I.next().value;FS=Z>>>0;n7=I>>>0}else ZA(Z)}; O5=function(Z,I){Z.message&&g.uL(Error(I+"_"+Z.message))}; K8=function(Z,I){return I&&I.test(Z)?!0:!1}; w5=function(Z){return!(!Z.isLivePlayback||!Z.hasProgressBarBoundaries())}; vh=function(Z,I){this.triggeringSlotId=I;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=Z(this.triggerType)}; oz=function(Z,I){this.tq=I=I===void 0?!1:I;this.uach=this.locale=null;this.D=0;this.isFinal=!1;this.L=new qi;Number.isInteger(Z)&&this.L.mB(Z);I||(this.locale=document.documentElement.getAttribute("lang"));To(this,new jq)}; g.Sf=function(Z,I){for(var d in Z)if(Z[d]==I)return!0;return!1}; Jn=function(Z){this.value=Z}; YQ=function(Z,I,d){I==="data"?Z.D.push(d):I==="metadata"?Z.N.push(d):I==="status"?Z.B.push(d):I==="end"?Z.Z.push(d):I==="error"&&Z.L.push(d)}; kZu=function(Z,I,d){I=pO(I);I!=null&&Al(Z,d,EHn(I))}; t3d=function(Z,I,d,Y,T,f,P,O){var a=V1(Z.V5.get(),1);if(fcl(Z.Ms.get())){var W=Ao(Z.D.get(),d,Y,T,a.clientPlaybackNonce,a.rb,a.daiEnabled,a,f,P);Xca(Z,W);qg(Z.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return W},I)}else qg(Z.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return Ao(Z.D.get(),d,Y,T,a.clientPlaybackNonce,a.rb,a.daiEnabled,a,f,P,O)},I)}; Dw=function(){g.p.call(this);var Z=this;this.L=new Map;this.D=fMr(function(I){if(I.target&&(I=Z.L.get(I.target))&&I)for(var d=0;dI?1:0}; yv=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",I,d,Y);this.hide()}; Ur=function(Z,I){I=g.t(I.L);for(var d=I.next();!d.done;d=I.next())Z.append(d.value)}; mCE=function(Z,I,d){var Y=new vp(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.Hj,Z.N.bind(Z));Y.i5(Z.B);Y.init(Ai("survey-question-multi-select"),I,d);Z.api.C().Y("supports_multi_step_on_desktop")?Z.Z=Y:Z.questions.push(Y);g.z(Z,Y)}; lM=function(Z){var I=(0,g.o8)();Z.TW=I}; uM=function(){this.B=this.Z=null;this.D=this.L=0;this.N=[];this.j=!1}; U_=function(Z,I){Z.L!==I&&(Z.L=I,Z.D=!0)}; pcD=function(Z){g.p.call(this);this.L=Z;this.gr=$ra(this)}; Ho7=function(Z,I,d,Y,T,f,P,O,a,W,e,B){var w=AV(Y,d,W);return w instanceof j$?new C(w):W.S.C().experiments.CS("html5_refactor_in_player_slot_generation")?function(V){var N=new rO(0,[w.lz]);V=xrl(I,w.layoutId,w.Y4,d,LK(w.playerVars,w.wZ,f,a,N),w.lz,T,N,P(V),O.get(w.Y4.externalVideoId),B);N=[];if(w.Y4.playerOverlay.instreamAdPlayerOverlayRenderer){var q=KFD(V);if(!q)return Zv("Expected MediaLayout to carry valid data to create InPlayerSlot and PlayerOverlayForMediaLayout",void 0,V),{layout:V,je:[]}; N=[CkL(Z,q.contentCpn,q.kO,function(F){return tu(I,F.slotId,"core",q,Fo(e,F))},q.inPlayerSlotId)].concat(g.c(N)); if(q.instreamAdPlayerUnderlayRenderer&&$U(W)){var A=q.instreamAdPlayerUnderlayRenderer;N=[E8B(Z,q.contentCpn,q.kO,function(F){return bon(I,F.slotId,A,q.adPlacementConfig,q.kO,Fo(e,F))})].concat(g.c(N))}}return{layout:V, je:N}}:function(V){var N=new rO(0,[w.lz]); return{layout:xrl(I,w.layoutId,w.Y4,d,LK(w.playerVars,w.wZ,f,a,N),w.lz,T,N,P(V),O.get(w.Y4.externalVideoId),B),je:[]}}}; g.UC=function(Z,I){if("textContent"in Z)Z.textContent=I;else if(Z.nodeType==3)Z.data=String(I);else if(Z.firstChild&&Z.firstChild.nodeType==3){for(;Z.lastChild!=Z.firstChild;)Z.removeChild(Z.lastChild);Z.firstChild.data=String(I)}else g.Nd(Z),Z.appendChild(JN(Z).createTextNode(String(I)))}; Em=function(Z,I,d,Y){if(((Z^19)&15)==2){yY(23,I);var T=g.Yw(I[Q[26]],cFO)}if(((Z^91)&15)>=9&&(Z|3)<18){var f=I[d],P=f[Q[23]](Q[36]);P>0?U1(33,Y,f[Q[40]](0,P),f[Q[40]](P+1)):f&&(Y[f]=Q[9]);T=[I,d,Y]}if(!((Z^18)>>4)){f=I[Q[53]](Q[18]);var O={};for(P=0;P>1&31)>=5&&(Z|2)<19&&(I[0]>3&&(0,I[36])(((0,I[14])(I[73],I[20]),I[26])(I[29],I[20]),I[26],I[6],I[3]),I[27]!=7&&(I[59]<-1?(0,I[36])(((0,I[9])((0,I[14])(I[1],I[48]),I[31],(0,I[58])((0,I[13])(),I[28], I[15]),I[15],I[37]),I[4])(I[55],I[45]),I[34],I[48]):((((0,I[26])(I[7],I[16]),(0,I[35])(I[17],I[57]),I[0])(I[44],I[38]),I[0])(I[9],I[52]),I[59])(I[21],I[17])),I[55]===0&&((0,I[75])(I[61],I[17]),1)||(0,I[43])(I[57],I[17]),(0,I[19])(I[52]),(0,I[30])((0,I[13])(),I[15],I[52]),T=[I]);if((Z|40)==Z){if(!(Gj(I[Q[13]])||I[Q[13]][Q[19]](Q[16])||I[Q[13]][Q[19]](Q[62])||I[Q[13]][Q[19]](Q[51])))throw new g.Wj(Q[39],I[Q[13]]);f=g.$e(I[Q[13]]);I[Q[3]]=f[Q[47]];I[Q[30]]=f[Q[26]]+(f[Q[30]]!=null?Q[42]+f[Q[30]]:Q[9]); P=f[Q[13]];P[Q[19]](Q[55])?(I[Q[1]]=Q[55],P=P[Q[40]](14)):P[Q[19]](Q[2])?(I[Q[1]]=Q[2],P=P[Q[40]](13)):P[Q[19]](Q[29])?(O=sN(12,P,I),P=O[0],I=O[1]):(I[Q[1]]=P,P=Q[9]);O=I[Q[26]];I[Q[26]]=U1(84,P);Object[Q[34]](I[Q[26]],Em(19,f[Q[28]][Q[37]]()));Object[Q[34]](I[Q[26]],O);I[Q[26]][Q[45]]===Q[44]&&(delete I[Q[26]][Q[45]],I[Q[1]]+=Q[68]);I[Q[13]]=Q[9];I[Q[11]]=Q[9];I[Q[28]]&&(f=yY(4,I),I=f[0]);T=[I]}return T}; g8$=function(Z,I,d,Y){return new hD(Z.type,Z.L,Z.range,"reslice"+Z.V,Z.YS,Z.startTime,Z.duration,I,d,Y,Z.UM,Z.clipId)}; N_=function(Z){this.value=Z}; rFl=function(Z,I,d){var Y,T=I==null?void 0:(Y=I.text)==null?void 0:Y.simpleText;T&&M3L(Z,d,T,I==null?void 0:I.icon).listen("click",function(){var f;(I==null?void 0:(f=I.icon)==null?void 0:f.iconType)==="HIDE"?Z.S.publish("featuredproductdismissed"):I.serviceEndpoint&&Z.S.Rn("innertubeCommand",I.serviceEndpoint);Z.hide()},Z)}; ZdD=function(Z,I){this.L=Z;this.duration=I}; W7=function(Z,I,d){var Y=I*Z.Z.L*1E3;for(var T=-1,f=g.t(Z.L),P=f.next();!P.done;P=f.next())P=P.value,Y>P.startTime&&P.width>0&&T++;Y=T<0?0:T;T=d.L-Vx(Z)*Z.mJ;return I*T+Vx(Z)*Y+d.N}; IZB=function(Z,I,d){d=d===void 0?null:d;var Y=Y===void 0?Z.withCredentials:Y;var T={},f=new URL(ZGO(Z));d&&(T.Authorization=d);Z.sessionIndex&&(T["X-Goog-AuthUser"]=Z.sessionIndex,f.searchParams.set("authuser",Z.sessionIndex));Z.pageId&&(Object.defineProperty(T,"X-Goog-PageId",{value:Z.pageId}),f.searchParams.set("pageId",Z.pageId));return{url:f.toString(),body:I,pL:1,requestHeaders:T,requestType:"POST",withCredentials:Y,timeoutMillis:Z.timeoutMillis}}; C8=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",I,d,Y);this.button=null;this.L=this.KS("ytp-ad-survey-none-of-the-above");this.hide()}; dUD=function(Z){var I=(0,g.o8)(),d=Z.getCurrentTime();Z=Z.getVideoData();d=1E3*(d-Z.startSeconds);Z.isLivePlayback&&(d=0);return I-Math.max(d,0)}; FvL=function(Z){Z=Z||"";var I=TGn();I[Z]&&delete I[Z];var d=KH(),Y={timerName:Z,info:{},tick:{},span:{},jspbInfo:[]};d.push(Y);I[Z]=Y}; oQ9=function(Z,I,d){if(!Z.L.has(I)){Z.L.add(I);var Y={};Z.params.Lw.t9(I,Object.assign({},d,(Y.p_ac=Z.params.adCpn,Y.p_isv=Z.params.KJ5&&Z.params.zx,Y)))}}; YYD=function(Z,I,d,Y,T){var f=this;this.loader=Z;this.policy=I;this.Bk=d;this.MC=Y;this.Zb=T;this.done=!1;this.onTimeout=function(){f.done||(f.done=!0,f.onError("net.timeout"))}; this.size=Math.ceil(Math.min(1E5,.1*wG(this.Bk)));this.timing=new zj(this,{Bk:this.Bk,cW:this.size,AE:!0,bL:function(){}, hn:this.policy.Z});Z=IL(this.MC,this.Zb,this.policy).hB.clone();yY(41,Z);Z[Q[1]]!=="/videogoodput"&&(Z[Q[1]]="/videogoodput",Z[Q[11]]=Q[9]);this.location=new Mr(Z);this.location.set("rn",""+this.timing.requestNumber);this.location.set("range","0-"+(this.size-1));this.xhr=kX(this.location,this.policy.X,this.timing,this.policy.Qi,{});setTimeout(this.onTimeout,1E4)}; Ti9=function(Z,I){Z.On("ismp_p");jPd(Z);Z.D=I}; idl=function(Z){for(var I=new Set,d=g.t(Object.values(Z)),Y=d.next();!Y.done;Y=d.next())Y=Y.value,Y.length&&(Y=Y[0],Y.height&&Y.codecs.startsWith("vp09")&&I.add(Y.height));d=[];if(I.size){Y=g.t(Object.keys(Z));for(var T=Y.next();!T.done;T=Y.next())if(T=T.value,Z[T].length){var f=Z[T][0];f.height&&I.has(f.height)&&!f.codecs.startsWith("vp09")&&d.push(T)}}I=g.t(d);for(d=I.next();!d.done;d=I.next())delete Z[d.value]}; q6=function(Z){this.Ms=Z}; Xd=function(Z,I,d){I=Hcl(I);if(I!=null){switch(typeof I){case "string":gEJ(I)}if(I!=null)switch(Kq(Z,d,0),typeof I){case "number":Z=Z.L;UL(I);CY(Z,FS,n7);break;case "bigint":d=BigInt.asUintN(64,I);d=new VK(Number(d&BigInt(4294967295)),Number(d>>BigInt(32)));CY(Z.L,d.D,d.L);break;default:d=gEJ(I),CY(Z.L,d.D,d.L)}}}; LzE=function(Z,I,d,Y){if(d==3&&I.D&&!I.N)for(;Z&&Z.B;Z=Z.Z)Z.B=!1;if(I.L)I.L.Z=null,exL(I,d,Y);else try{I.N?I.Z.call(I.context):exL(I,d,Y)}catch(T){Fpn.call(null,T)}Sj$(fZB,I)}; aZL=function(){var Z=P4a();if(Z!==void 0)return ZD(Z);VN||(VN=to("//googleads.g.doubleclick.net/pagead/id",QP7).then(R_a).LA(function(I){return Odr(2,I)})); return VN}; $X=function(Z){return Z.q7||Z.Ax!==void 0}; za=function(Z){this.value=Z}; la=function(Z,I,d,Y){pW.call(this,Z,I,d,Y,[],"ad-mute-confirm-dialog")}; na=function(Z,I){return g.b(Z.state,I)&&!g.b(Z.oldState,I)?1:!g.b(Z.state,I)&&g.b(Z.oldState,I)?-1:0}; g.Mm=function(Z,I){if(!I)throw g.Pk("openWithToken",xX(Z.name));return Z.open()}; eSu=function(Z,I,d,Y,T,f,P,O){Z=W9O(Z,d,f,P,Y,function(a){var W=a.slotId;a=O(a);W=zi(I.D.get(),"LAYOUT_TYPE_FORECASTING",W);var e={layoutId:W,layoutType:"LAYOUT_TYPE_FORECASTING",r4:"core"},B=new Map,w=T.impressionUrls;w&&B.set("impression",w);return{layoutId:W,layoutType:"LAYOUT_TYPE_FORECASTING",h5:B,layoutExitNormalTriggers:[new Ws(I.L,W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new KW(T), new Xj(d)]),Tb:a(e)}}); return Z instanceof C?Z:[Z]}; woD=function(Z){var I,d;g.h(function(Y){if(Y.L==1)return CW(Z,"swpo_i"),Z.Z=Cw(),oE(Z),g.m(Y,ho(),2);if(Y.L!=3)return I=Y.D,CW(Z,"swpo_co"),g.m(Y,BiD(I),3);d=Y.D;Z.Y("html5_web_po_token_disable_caching")||d.l6(150);Z.D=d;CW(Z,"swpo_cc");Ael(d.Yq()).then(function(){Z.L=!0;Z.B.resolve();CW(Z,"swpo_re")}); g.lo(function(){Y_(Z);CW(Z,"swpo_si")},0); g.v6(Y)})}; V0$=function(Z,I,d,Y,T,f,P){Eb(Z,I,new g.cQ(d,new g.ns),Y,T,P,!1,f)}; cF=function(Z,I,d){for(d=d===void 0?!1:d;Z.NZ.jg+6283){if(Z.Y("html5_unified_live_latency_reporting")){var I=Z.wK;I.qoe&&F9$(I.qoe)}else!Z.isAtLiveHead()||Z.videoData.L&&gI(Z.videoData.L)||(I=Z.wK,I.qoe&&F9$(I.qoe));I=g.V4(Z.U);var d=Z.Y("html5_always_log_rawlat");(I||d)&&Z.D1("rawlat",{l:Mt(Z.mq,"rawlivelatency").toFixed(3)});Z.jg=Date.now()}Z.videoData.D&&Iu(Z.videoData.D)&&(I=Z.pJ())&&I.videoHeight!==Z.QY&&(Z.QY=I.videoHeight,rI(Z,"a",R9l(Z,Z.videoData.on)))}; T8=function(Z){this.D=Z}; nQJ=function(Z,I){var d={slotId:ip(I,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],r4:"surface",clientMetadata:new D0([])},Y=Object,T=Y.assign;I=zi(I,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",d.slotId);I={layoutId:I,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",h5:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], r4:"surface",clientMetadata:new D0([]),Tb:L89(!1,d.slotId,d.slotType,d.slotPhysicalPosition,d.r4,d.slotEntryTrigger,d.slotFulfillmentTriggers,d.slotExpirationTriggers,I,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return T.call(Y,{},Z,{I15:!0,slot:d,layout:I})}; jOi=function(Z){return Z===null?"null":Z===void 0?"undefined":Z}; VV=function(Z){this.value=Z}; $v=function(Z){return Z.C8&&Z.enableServerStitchedDai}; DDO=function(Z,I,d){this.layoutId=I;this.offsetMs=d;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=Z(this.triggerType)}; Zz=function(Z){var I=!1,d;return function(){I||(d=Z(),I=!0);return d}}; IQ=function(Z){Z.LS=NaN;Z.X=0;Z.V=Z.Z}; dl=function(Z,I){for(var d=[],Y=g.t(Z.fM.values()),T=Y.next();!T.done;T=Y.next())T=T.value,T.trigger.L===I.layoutId&&d.push(T);d.length&&np(Z.L(),d)}; Gi=function(Z,I,d){if(!(Z<<2&7))for(I=(I%d[Q[17]]+d[Q[17]])%d[Q[17]];I--;)d[Q[49]](d[Q[82]]());if((Z<<1&7)>=6&&(Z|8)>>5<1&&d[Q[17]]!=0){var Y=yY(7,I,d);I=Y[0];d=Y[1]}if((Z-8^13)=Z){yY(25,I);Y=I[Q[3]]+(I[Q[3]]?Q[58]:Q[78])+I[Q[30]]+I[Q[1]];if(Em(49,I)){var T=[];g.TA(I[Q[26]],function(P,O){P!==null&&T[Q[10]](O+Q[36]+P)}); Y+=Q[80]+T[Q[48]](Q[18])}var f=Y}return f}; mA7=function(Z){if(!Z)return null;Z=oQ(Z,4);return Z===null||Z===void 0?null:Oy(Z)}; g.v6=function(Z){Z.L=0}; ykD=function(Z,I,d){var Y,T,f;g.h(function(P){if(P.L==1)return Y={context:g.p9(),settingItemId:I,newValue:d},T=g.R$(hSr),g.m(P,g.L9(Z,Y,T),2);f=P.D;if(!f||f.errorMetadata)return OMu("SetSettingRequest",f),P.return(void 0);g.v6(P)})}; YA=function(Z){var I=O2(Z.L,Z.pos);++Z.pos;if(I<128)return I;for(var d=I&127,Y=1;I>=128;)I=O2(Z.L,Z.pos),++Z.pos,Y*=128,d+=(I&127)*Y;return d}; mUJ=function(Z){var I=Z.Rt().filter(function(Y){return Y.namespace==="ad"}); I=g.t(I);for(var d=I.next();!d.done;d=I.next())if(d=d.value,d.start/1E3>Z.getCurrentTime())return d.start/1E3;return Infinity}; KyD=function(Z){if(Z!==void 0&&Z.trim()!==""&&(Z=Math.trunc(Number(Z.trim())),!(isNaN(Z)||Z<0)))return Z}; qY7=function(Z){var I;if(((I=Z.adVideoOffset)==null?void 0:I.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var d;return((d=Z.adVideoOffset)==null?void 0:d.milliseconds)!=null&&!isNaN(Number(Z.adVideoOffset.milliseconds))}; jB=function(Z,I,d,Y){HK.call(this,Z,I,d,Y,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; fE=function(Z){g.k.call(this,{K:"div",T:"ytp-title-channel",G:[{K:"div",T:"ytp-title-beacon"},{K:"a",T:"ytp-title-channel-logo",J:{href:"{{channelLink}}",target:Z.C().In,role:"link","aria-label":"{{channelLogoLabel}}",tabIndex:"0"}},{K:"div",T:"ytp-title-expanded-overlay",J:{"aria-hidden":"{{flyoutUnfocusable}}"},G:[{K:"div",T:"ytp-title-expanded-heading",G:[{K:"div",T:"ytp-title-expanded-title",G:[{K:"a",Z1:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:Z.C().In,"aria-hidden":"{{shouldHideExpandedTitleForA11y}}", tabIndex:"{{channelTitleFocusable}}"}}]},{K:"div",T:"ytp-title-expanded-subtitle",Z1:"{{expandedSubtitle}}",J:{"aria-hidden":"{{shouldHideExpandedSubtitleForA11y}}"}}]}]}]});var I=this;this.api=Z;this.channel=this.KS("ytp-title-channel");this.D=this.KS("ytp-title-channel-logo");this.channelName=this.KS("ytp-title-expanded-title");this.B=this.KS("ytp-title-expanded-overlay");this.Z=this.L=this.subscribeButton=null;this.N=!1;Z.createClientVe(this.D,this,36925);Z.createClientVe(this.channelName,this, 37220);g.Dh(this.api.C())&&SYJ(this);this.W(Z,"videodatachange",this.qs);this.W(Z,"videoplayerreset",this.qs);this.W(this.channelName,"click",function(d){I.api.logClick(I.channelName);g.T4(window,iF(I));d.preventDefault()}); this.W(this.D,"click",this.uxn);this.qs()}; ALd=function(Z,I,d){if(!(I.tL&&Z.isComplete()&&Z.canRetry()&&Z.info.MC.Zb(I,d))||Z.info.MC.X)return 0;Z=yA(d,vQ(Z.info.MC,!1,I));return Z.D+I.tL*FD(Z,!0)>(0,g.o8)()?0:1}; g.igl=function(Z,I,d){var Y=I.query;I=I.direction;Z="openKeyCursor"in IDBObjectStore.prototype?Z.L.openKeyCursor(Y,I):Z.L.openCursor(Y,I);return nCJ(Z).then(function(T){return BD(T,d)})}; g.Py=function(Z,I){var d;return Z.C().Y("safari_live_drm_captions_fix")&&((d=Z.getVideoData())==null?0:d.pF())?!1:g.V4(Z.C())&&!I.isManifestless}; g.EQ=function(Z,I){Z=L_(Z);return Z===void 0&&I!==void 0?I:Number(Z||0)}; DUi=function(Z){this.Gm=bp(Z)}; JLJ=function(Z){var I;return((I=((Z==null?void 0:Z.messageRenderers)||[]).find(function(d){return!!d.timeCounterRenderer}))==null?void 0:I.timeCounterRenderer)||null}; QT=function(Z){var I,d,Y,T,f;return!((I=Z.get("active_view_viewable"))==null||!I.length)||!((d=Z.get("active_view_measurable"))==null||!d.length)||!((Y=Z.get("active_view_fully_viewable_audible_half_duration"))==null||!Y.length)||!((T=Z.get("audio_audible"))==null||!T.length)||!((f=Z.get("audio_measurable"))==null||!f.length)}; Ab=function(Z,I){return Z.L.has(I)}; aQ=function(Z){uI.D.cancel();Os=Z;uI.done=!0}; RSd=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"M 12,25 19,25 19,11 12,11 z M 19,25 26,25 26,11 19,11 z"}}]}}; g.Cl=function(Z){window.clearTimeout(Z)}; wl=function(Z){var I=g.Wy(Z.app.C()),d,Y=(d=Z.app.getVideoData())==null?void 0:d.Du;Z=eB(Z.app);return g.By(I)&&!Y||Z?!1:!0}; q4D=function(Z,I,d){Z=Z.map(function(Y){return g.h(function(T){return T.L==1?g.m(T,Jk(Y.actualName,I),2):g.m(T,VT(Y.actualName,d),0)})}); return Promise.all(Z).then(function(){})}; NO=function(Z){g.p.call(this);this.Z=Z;this.L=new Map;this.D=new g.uX(this.sample,250,this);g.z(this,this.D);this.start()}; YT$=function(Z,I){I=String.fromCharCode.apply(null,I);return Z==null?I:Z+I}; UUB=function(Z,I){if(!Z.isSeeking&&Z.In!==I&&!isNaN(Z.X)){Z.In=I;var d=Z.j?Z.V:Z.N.Cl(I);(d!==Z.V||Z.j)&&L9L(Z,d,I)}}; yLr=function(Z){var I,d,Y,T;return(I=Z.api.getVideoData().getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(Y=d.playerOverlayRenderer)==null?void 0:(T=Y.browserMediaSession)==null?void 0:T.browserMediaSessionRenderer}; mE=function(Z,I,d,Y,T,f,P,O,a,W){this.N=Z;this.D=I;this.L=d;this.Ms=Y;this.hZ=T;this.Z=f;this.S7=P;this.rB=O;this.rV=a;this.loadPolicy=W===void 0?1:W}; bf=function(Z){var I=Z.api.C(),d=Z.api.getVideoData(),Y=g.Dh(I)&&g.e0(Z.api)&&g.b(Z.api.getPlayerStateObject(),128);I=I.Z||I.disableSharing&&Z.api.getPresentingPlayerType()!==2||!d.showShareButton||d.X1||Y||d.IN||!1;Y=Z.api.cj().getPlayerSize().width;return!!d.videoId&&Y>=Z.Z&&!I}; g.eU=function(Z,I){return{itag:+Z.itag,lmt:I?0:Z.lastModified,xtags:Z.L||""}}; oBD=function(Z){var I=Z.length;if(Z[0]==="-"?I<20||I===20&&Z<="-9223372036854775808":I<19||I===19&&Z<="9223372036854775807")return Z;NK(Z);return YRJ()}; vQd=function(Z,I){return Z.Z===void 0?!1:I.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(I.seekLengthMilliseconds)===5E3?Z.Z===72:I.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(I.seekLengthMilliseconds)===1E4?Z.Z===74:I.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(I.seekLengthMilliseconds)===5E3?Z.Z===71:I.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(I.seekLengthMilliseconds)===1E4?Z.Z===73:!1}; lZi=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; Fg=function(Z,I){if(Z.simpleText){a:{Z=Z.simpleText;if(I&&(I=sZL(Z))){I=LF("SPAN",null,I);break a}I=g.jb(Z)}return I}var d=[];if(Z.runs)for(var Y=0;Y=d?I=d:(Z=Math.floor(I*100+.001)%5,I=Z===0?I:Math.floor((I-Z*.01)*100+.001)/100);return I}; xA=function(Z,I){var d;g.qN(Z.C())&&(d={K:"div",T:"ytp-panel-footer-content",G:[{K:"span",Z1:"Adjust download quality from your "},{K:"a",T:"ytp-panel-footer-content-link",Z1:"Settings",J:{href:"/account_downloads"}}]});g.St.call(this,"Quality",g.D$.nL,Z,I,void 0,void 0,d);this.S=Z;this.kS={};this.j={};this.D={};this.Ns=new Set;this.L=this.N=!1;this.B="unknown";this.V="";this.LS=new g.HU;g.z(this,this.LS);this.N=this.S.Y("web_player_use_new_api_for_quality_pullback");this.L=this.S.Y("web_player_enable_premium_hbr_playback_cap"); Z.Y("web_settings_menu_icons")&&(I=Z.Y("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M9 3C8.11 2.99 7.25 3.29 6.54 3.83C5.84 4.38 5.34 5.14 5.12 6H3C2.73 6 2.48 6.10 2.29 6.29C2.10 6.48 2 6.73 2 7C2 7.26 2.10 7.51 2.29 7.70C2.48 7.89 2.73 8 3 8H5.12C5.34 8.85 5.84 9.61 6.55 10.16C7.25 10.70 8.11 10.99 9 10.99C9.88 10.99 10.74 10.70 11.44 10.16C12.15 9.61 12.65 8.85 12.87 8H21C21.26 8 21.51 7.89 21.70 7.70C21.89 7.51 22 7.26 22 7C22 6.73 21.89 6.48 21.70 6.29C21.51 6.10 21.26 6 21 6H12.87C12.65 5.14 12.15 4.38 11.45 3.83C10.74 3.29 9.88 2.99 9 3ZM9 5C9.53 5 10.03 5.21 10.41 5.58C10.78 5.96 11 6.46 11 7C11 7.53 10.78 8.03 10.41 8.41C10.03 8.78 9.53 9 9 9C8.46 9 7.96 8.78 7.58 8.41C7.21 8.03 7 7.53 7 7C7 6.46 7.21 5.96 7.58 5.58C7.96 5.21 8.46 5 9 5ZM15 13C14.11 12.99 13.25 13.29 12.54 13.83C11.84 14.38 11.34 15.14 11.12 16H3C2.73 16 2.48 16.10 2.29 16.29C2.10 16.48 2 16.73 2 17C2 17.26 2.10 17.51 2.29 17.70C2.48 17.89 2.73 18 3 18H11.12C11.34 18.85 11.84 19.61 12.55 20.16C13.25 20.70 14.11 20.99 15 20.99C15.88 20.99 16.74 20.70 17.44 20.16C18.15 19.61 18.65 18.85 18.87 18H21C21.26 18 21.51 17.89 21.70 17.70C21.89 17.51 22 17.26 22 17C22 16.73 21.89 16.48 21.70 16.29C21.51 16.10 21.26 16 21 16H18.87C18.65 15.14 18.15 14.38 17.45 13.83C16.74 13.29 15.88 12.99 15 13ZM15 15C15.53 15 16.03 15.21 16.41 15.58C16.78 15.96 17 16.46 17 17C17 17.53 16.78 18.03 16.41 18.41C16.03 18.78 15.53 19 15 19C14.46 19 13.96 18.78 13.58 18.41C13.21 18.03 13 17.53 13 17C13 16.46 13.21 15.96 13.58 15.58C13.96 15.21 14.46 15 15 15Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M15,17h6v1h-6V17z M11,17H3v1h8v2h1v-2v-1v-2h-1V17z M14,8h1V6V5V3h-1v2H3v1h11V8z M18,5v1h3V5H18z M6,14h1v-2v-1V9H6v2H3v1 h3V14z M10,12h11v-1H10V12z",fill:"white"}}]},this.setIcon(I));g.xw(this.Ja.element,"ytp-quality-menu");this.W(Z,"videodatachange",this.sV);this.W(Z,"videoplayerreset",this.sV);this.W(Z,"onPlaybackQualityChange",this.OQ);this.sV();Z.createClientVe(this.element,this,137721)}; gQJ=function(Z,I){var d=Z.j[I],Y=d==="End of video"||d==="End of playlist";d==="Off"&&(Z.L="");Z.S.getPlayerState()!==0&&Z.S.getPlayerState()!==5||!Y?(Z.N=I,g.St.prototype.ZG.call(Z,I),Z.L6(I),Z.S.Rn("onSleepTimerSettingsChanged",d)):Z.S.Rn("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; Pz7=function(Z,I){function d(a){for(;Y>4);P!=64&&(I(f<<4&240|P>>2),O!=64&&I(P<<6&192|O))}}; rLJ=function(){return"googleAvInapp".replace(/([A-Z])/g,"-$1").toLowerCase()}; g.Es=function(Z,I){var d=d===void 0?0:d;var Y=new jEl;l5(Y,2,CE(Z));Z=Z_d[I];if(typeof Z==="undefined")throw d=new g.Wj("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:I}),g.nl(d),d;ys(Y,4,Z);ys(Y,5,1);I=new Uint8Array(Y.L.buffer,Y.L.byteOffset,Y.pos);return encodeURIComponent(g.Bg(I,d))}; bF=function(Z,I,d,Y){Y=Y===void 0?0:Y;g.Zg.call(this,d.zU());var T=this;this.FT=Z;this.videoData=I;this.duration=Y;this.L=this.startTimeSecs=0;this.D=this.Z=!0;this.N=new WtD(function(f,P){return void T.D1(f,P)})}; I2O=function(Z){Z.B=Z.startTime;Z.X=Z.duration;Z.j=Z.B+Z.X}; Hy=function(Z){this.type="";this.state=this.source=this.data=this.currentTarget=this.relatedTarget=this.target=null;this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.ctrlKey=this.altKey=!1;this.rotation=this.clientY=this.clientX=0;this.scale=1;this.changedTouches=this.touches=null;try{if(Z=Z||window.event){this.event=Z;for(var I in Z)I in dWa||(this[I]=Z[I]);this.scale=Z.scale;this.rotation=Z.rotation;var d=Z.target||Z.srcElement;d&&d.nodeType==3&&(d=d.parentNode);this.target=d;var Y=Z.relatedTarget; if(Y)try{Y=Y.nodeName?Y:null}catch(T){Y=null}else this.type=="mouseover"?Y=Z.fromElement:this.type=="mouseout"&&(Y=Z.toElement);this.relatedTarget=Y;this.clientX=Z.clientX!=void 0?Z.clientX:Z.pageX;this.clientY=Z.clientY!=void 0?Z.clientY:Z.pageY;this.keyCode=Z.keyCode?Z.keyCode:Z.which;this.charCode=Z.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=Z.altKey;this.ctrlKey=Z.ctrlKey;this.shiftKey=Z.shiftKey;this.metaKey=Z.metaKey;this.L=Z.pageX;this.D=Z.pageY}}catch(T){}}; TGn=function(){var Z=g.gZ("ytcsi.reference");if(Z)return Z;KH();return g.gZ("ytcsi.reference")}; J8u=function(Z,I){this.D=Z;this.Z=I;this.L=new bZJ(Z)}; cy=function(Z,I,d,Y,T){Z={retry:!0,onSuccess:d,onError:Y,networklessOptions:Z,dangerousLogToVisitorSession:I,CPZ:!!T,headers:{},postBodyFormat:"",postBody:"",compress:g.x9("compress_gel")||g.x9("compress_gel_lr")};Qq()&&(Z.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.o8)())));return Z}; rl=function(Z){var I=gl();g.t6(function(){var d=g.p0(Z);MO(I,d);return d})()}; oDB=function(Z){Z=Z===void 0?{}:Z;return g.Zm.invoke(Z)}; Y69=function(Z){if(!Z.L)return!1;Z=Z.D.get(Z.L);return Z&&Z.event!=="predictStart"&&Z.fA===5?(Z==null?0:Z.rU)&&Date.now()-(Z==null?NaN:Z.rU)>1E4?(Z.fA=1,!1):!0:!1}; IAn=function(Z,I,d){var Y=480;I=g.t(I);for(var T=I.next();!T.done;T=I.next()){T=T.value;var f=T.video.qualityOrdinal;f<=1080&&f>Y&&XC7(Z,T,d)===!0&&(Y=f)}return Y}; jr9=function(){if(I9)return I9();var Z={};I9=g.da("LogsDatabaseV2",{Sn:(Z.LogsRequestsStore={mT:2},Z),shared:!1,upgrade:function(I,d,Y){d(2)&&g.l2(I,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});d(3);d(5)&&(Y=Y.objectStore("LogsRequestsStore"),Y.L.indexNames.contains("newRequest")&&Y.L.deleteIndex("newRequest"),g.Z4(Y,"newRequestV2",["status","interface","timestamp"]));d(7)&&o9(I,"sapisid");d(9)&&o9(I,"SWHealthLog")}, version:9});return I9()}; Toi=function(Z){return g.a_(Z.info.e7,function(I){return I.type===3})}; i_B=function(){}; f2u=function(){this.D=this.position=this.Z=this.L=this.N=this.width=NaN}; Gj=function(Z){var I=I===void 0?!1:I;return xv(K8(Z,Pnr),Z,I,"Trusted Stream URL")}; g.vP=function(Z,I,d,Y){Y=Y===void 0?{}:Y;if(!Z||!Z.addEventListener&&!Z.attachEvent)return"";var T=Qrn(Z,I,d,Y);if(T)return T;T=++O_D.count+"";var f=!(I!="mouseenter"&&I!="mouseleave"||!Z.addEventListener||"onmouseenter"in document);var P=f?function(O){O=new Hy(O);if(!xf(O.relatedTarget,function(a){return a==Z},!0))return O.currentTarget=Z,O.type=I,d.call(Z,O)}:function(O){O=new Hy(O); O.currentTarget=Z;return d.call(Z,O)}; P=g.t6(P);Z.addEventListener?(I=="mouseenter"&&f?I="mouseover":I=="mouseleave"&&f?I="mouseout":I=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(I="MozMousePixelScroll"),a29()||typeof Y==="boolean"?Z.addEventListener(I,P,Y):Z.addEventListener(I,P,!!Y.capture)):Z.attachEvent("on"+I,P);Gq[T]=[Z,I,d,P,Y];return T}; wXa=function(Z,I){if(I.authorizedFormats)for(var d=0;d0?f[T-1]+1:0,Y+1).reduce(function(P,O){return P+O},0)})}; eF$=function(Z,I){if(!Z)return NaN;I=OT(Z,I);return I>=0?Z.start(I):NaN}; Bol=function(Z){return Z.D?!0:Z.nS.LS==="yt"?Z.videoData.In?Z.videoData.eK<25:!Z.videoData.eK:!1}; nDu=function(Z,I){function d(){Z_({writeThenSend:!0},Z,I)} Z=Z===void 0?!1:Z;I=I===void 0?200:I;var Y=Ya(Z,I),T=Y===wKu||Y===V77?5E3:Nod;g.x9("web_gel_timeout_cap")&&!Y.L&&(T=f$(function(){d()},T),Y.L=T); EJ(Y.D);T=g.rh("LOGGING_BATCH_TIMEOUT",g.EQ("web_gel_debounce_ms",1E4));g.x9("shorten_initial_gel_batch_timeout")&&je&&(T=FHJ);T=f$(function(){g.EQ("gel_min_batch_size")>0?o1().getSequenceCount({cttAuthInfo:void 0,isJspb:Z,tier:I})>=sr9&&d():d()},T); Y.D=T}; TQ=function(Z){var I;return(I=Z.S.getVideoData(1)==null?void 0:!1)!=null?I:!1}; OL=function(Z,I,d,Y,T){if(Array.isArray(I)){for(var f=0;f=0&&Z<32768}; S7=function(Z){var I=Z(),d=I&127;if(I<128)return d;I=Z();d|=(I&127)<<7;if(I<128)return d;I=Z();d|=(I&127)<<14;if(I<128)return d;I=Z();return I<128?d|(I&127)<<21:Infinity}; mWu=function(Z,I,d){Z.L&&Z.L.dispose();Z.L=new g.uX(Z.rt7,I,Z);g.z(Z,Z.L);var Y;I=((Y=d.vg)==null?void 0:Y.trackingParams)||null;Z.S.setTrackingParams(Z.element,I);var T;var f,P;if(d==null?0:(f=d.vg)==null?0:(P=f.title)==null?0:P.content){var O;Y=(T=d.vg)==null?void 0:(O=T.title)==null?void 0:O.content;var a,W;if((a=d.vg)==null?0:(W=a.bodyText)==null?0:W.content)Y+=" \u2022 ";T=Y}else T="";var e,B;d=((e=d.vg)==null?void 0:(B=e.bodyText)==null?void 0:B.content)||"";Z.update({text:T+d,chevron:g.i1()})}; bc7=function(Z){Z.Tm=Z.L+Z.snapshot.delay*1E3;Z.UZ=!1}; Jh=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);pF(this.api,"seekToChapterWithAnimation",function(d){I.seekToChapterWithAnimation(d)}); pF(this.api,"seekToTimeWithAnimation",function(d,Y){I.seekToTimeWithAnimation(d,Y)}); pF(this.api,"renderChapterSeekingAnimation",function(d,Y,T){I.api.renderChapterSeekingAnimation(d,Y,T)}); pF(this.api,"setMacroMarkers",function(d){I.setMacroMarkers(Z,d)}); pF(this.api,"changeMarkerVisibility",function(d,Y,T){I.changeMarkerVisibility(d,Y,T)}); pF(this.api,"isSameMarkerTypeVisible",function(d){return I.isSameMarkerTypeVisible(d)})}; bN$=function(Z,I,d,Y){return Xl(void 0,function(){return function f(){var P,O,a,W,e,B,w,V;return av(f,function(N){switch(N.L){case 1:g.tp(N,2),P=performance.now(),O=P+Z,a=0,W=P;case 4:if(!(aO){N.xS(2);break}w=W+I;V=B-w;VZ.clientWidth||Z.scrollHeight>Z.clientHeight||d=="fixed"||d=="absolute"||d=="relative"))return Z;return null}; JmL=function(Z,I,d){this.f8=I;this.L=d;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=Z(this.triggerType)}; UWn=function(Z){if(Z.isExternallyHostedPodcast&&Z.aE){var I=f5(Z.aE);if(!I[0])return Qv();Z.Xo=I[0];return RFa(Z.nS,I[0]).then(function(d){PZ(Z,d)})}return Z.n0&&Z.k6?LHD(Z.nS,Z.isAd(),Z.n0).then(function(d){PZ(Z,d)}):Qv()}; a9=function(Z,I,d){return Qf(Z)?new O3(Math.max(I,Z.xl.startTimeMs/1E3),Math.min(d,Z.xl.endTimeMs/1E3)):new O3(I,d)}; vDr=function(Z){!Z.D&&ymE()&&(Z.Z?Z.Z.then(function(){return vDr(Z)}):Z.n6()||(Z.D=Z.Qq()))}; WZ=function(Z,I){Z.url=I;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; Fz=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",I,d,Y);this.L=[]}; g.ns=function(Z,I,d){this.Em=I===void 0?null:I;this.seekSource=d===void 0?null:d;this.state=Z||64}; g.Q7=function(Z){return{fieldType:3,fieldName:Z}}; AA=function(Z,I){Z.b5||(yV(Z,"fcnz",""+I),Z.b5=!0)}; ee=function(){var Z=this;this.store={};this.L=0;this.D={};this.A9={UVn:function(){return Z.L}}}; Ya=function(Z,I){I=I===void 0?200:I;return Z?I===300?wKu:l2u:I===300?V77:ued}; G_D=function(Z){return!!Z.playlist&&!Z.L&&!!Z.videoData&&!Z.videoData.isLivePlayback&&Z.S.getCurrentTime()>=3&&Z.S.getPresentingPlayerType()!==2}; zFi=function(Z,I){Z.IV()&&!WE(Z.Vn.D)||Z.callback.iQ(Z.slot,Z.layout,I)}; BZ=function(Z){this.value=Z}; k_i=function(Z){return typeof Z==="undefined"?"-1":String(Math.ceil(Z/1048576))}; EDu=function(Z){var I;(I=!Z)||(I=Z.adSlotMetadata,I=!((I==null?void 0:I.slotId)!==void 0&&(I==null?void 0:I.slotType)!==void 0));if(I||!(XK9(Z)||Z.slotEntryTrigger&&Z.slotFulfillmentTriggers&&Z.slotExpirationTriggers))return!1;var d;Z=(d=Z.fulfillmentContent)==null?void 0:d.fulfilledLayout;return(d=g.y(Z,RU))?tX(d):(d=g.y(Z,eS))?t77(d):(d=g.y(Z,$Wr))?pKD(d):(d=g.y(Z,xWE))?KQ9(d):(d=g.y(Z,KH7))?UT(d.adLayoutMetadata)?g.y(d.renderingContent,E0)?!0:!1:!1:(d=g.y(Z,wa))?Vf(d):(Z=g.y(Z,CnE))?UT(Z.adLayoutMetadata)? g.y(Z.renderingContent,m3)?!0:!1:!1:!1}; g.i1=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},G:[{K:"path",J:{d:"m 12.59,20.34 4.58,-4.59 -4.58,-4.59 1.41,-1.41 6,6 -6,6 z",fill:"#fff"}}]}}; Fx=function(Z,I,d){N$(Z.B,I,d===void 0?!1:d);Z.In=-1;y3(Z,Z.L)}; b_d=function(Z,I){var d=nSD(Z);Z.Ja||(Z.Ja=new s3(Z.api),g.z(Z,Z.Ja),g.iS(Z.api,Z.Ja.element,4));Z.Ja.o0(I);var Y=IK(Z.api.nM());Y&&Y.loaded&&d!==I&&Y.aS();I&&Z.api.D1("sfn",{},!0)}; rL=function(Z,I){return MZ(Z,I,function(d){return d.Z})}; n5=function(Z){this.L=Z===void 0?null:Z;this.Z=0;this.D=null}; th=function(Z){$w.call(this,Z);var I=this,d={};this.Bj=(d.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},d.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(Y){return vQd(I,Y)},d.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(Y){return vQd(I,Y)},d.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return I.api.C().experiments.CS("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?I.B&&I.X:I.B&&I.V},d.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER= function(){return I.Ns},d); this.Ns=this.X=this.V=this.B=!1;this.N={};this.events=new g.De(Z);g.z(this,this.events);this.j=new g.rm(this.api.cj().VV);g.z(this,this.j);this.api.Y("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.Q4(this.api.C().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(d=g.Q4(this.api.C().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.LS=new g.uX(this.oC,d,this),g.z(this,this.LS));this.events.W(Z,"videodatachange",function(Y,T){if(Y!=="dataupdated"|| T.videoId!==I.videoId||!Kp(I.timelyActions,H_$(T)))I.onVideoDataChange(T)}); this.events.W(Z,"presentingplayerstatechange",function(Y){I.nw(Y)}); Z.Y("enable_smart_skip_player_controls_shown_on_web")&&(this.events.W(Z,"onShowControls",function(){I.B=!0;I.oC()}),this.events.W(Z,"onHideControls",function(){I.B=!1}),this.j.subscribe("hoverstart",function(){I.V=!0; I.oC()},this),this.j.subscribe("hoverend",function(){I.V=!1},this),Z.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.W(Z,"progressBarHoverStart",function(){I.X=!0; if(I.api.Y("enable_smart_skip_web_player_bar_hover_length_threshold")){var Y;(Y=I.LS)==null||g.Zy(Y)}else I.oC()}),this.events.W(Z,"progressBarHoverEnd",function(){I.X=!1; if(I.api.Y("enable_smart_skip_web_player_bar_hover_length_threshold")){var Y;(Y=I.LS)==null||Y.stop()}}))); Z.Y("enable_smart_skip_speedmaster_on_web")&&this.events.W(Z,"speedmasterchanged",function(Y){(I.Ns=Y)&&I.oC()}); this.events.W(Z,g.E2("timelyAction"),function(Y){I.onCueRangeEnter(Y.getId())}); this.events.W(Z,g.bx("timelyAction"),function(Y){I.onCueRangeExit(Y.getId())}); Z.Y("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.W(Z,"keyboardserviceglobalkeydown",function(Y,T){if((h4?Y.altKey:Y.ctrlKey)&&Y.keyCode===39&&I.In&&I.L){var f;Y=g.y((f=mh(I,I.L))==null?void 0:f.rendererContext,cmB);if(f=q$(Y==null?void 0:Y.onTap))I.api.Rn("innertubeCommand",f),T&&(T.Le=!0),T=gl(),(f=gDL(T))&&(Y=g.vv(0))&&Se(T.client,Y,f,void 0)}},this); this.D=new g.k({K:"div",zm:["ytp-player-content","ytp-timely-actions-content"]});this.D.hide();pF(Z,"insertTimelyActionUi",function(Y){I.D.element.children.length>0&&g.Nd(I.D.element);Y.classList.add("ytp-timely-actions-overlay");I.D.element.appendChild(Y)}); g.z(this,this.D);this.Y("web_player_overlay_positioned_layout")?this.events.W(Z,"basechromeinitialized",function(){I.api.oB(I.D.element,4,!0);I.D.element.setAttribute("data-overlay-order","10")}):g.iS(this.api,this.D.element,4)}; A4=function(Z,I,d){if(d===void 0||!d){d=g.t(Z.sZ);for(var Y=d.next();!Y.done;Y=d.next()){Y=Y.value;if(I>=Y.start&&I<=Y.end)return;if(I===Y.end+1){Y.end+=1;return}}Z.sZ.push(new K5$(I))}}; M7l=function(Z){if(!Z.N){var I=Z.L[Z.D];Z.N=new DataView(I.buffer,I.byteOffset,I.length)}return Z.N}; Ad=function(Z,I){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=I||Z(this.triggerType)}; Dm=function(Z,I){Z.L-=I;Z.register>>=I}; lUD=function(Z,I){return ZL(Z.clientMetadata,"metadata_type_ad_info_ad_metadata")?dB(Z.clientMetadata,"metadata_type_ad_info_ad_metadata"):I?{channelId:I.vl,channelThumbnailUrl:I.profilePicture,channelTitle:I.author,videoTitle:I.title}:(Zv("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; rma=function(Z,I){var d=I.getAudioTrack();return d.id!=="und"?g.zG(Z,function(Y){var T;return((T=Y.uo)==null?void 0:T.name)===d.getLanguageInfo().name}):Z}; oKE=function(Z){if(Z8r.test(Z))return Z}; J4=function(Z){var I;Z=UE((I=Z.serializedClientExperimentFlags)!=null?I:"","&");this.flags=new Map(Object.entries(Z).map(function(d){var Y=g.t(d);d=Y.next().value;Y=Y.next().value;return typeof Y==="string"?[d,Y]:[d,Y[0]]}))}; wg=function(Z){this.S=Z}; MZ=function(Z,I,d){var Y=g.R9(Z.D,function(T){return I<=T}); return Y==-1?0:d(Z.L[Y])}; L5=function(Z){g.k.call(this,{K:"button",zm:["ytp-replay-button","ytp-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"Replay":"","data-tooltip-title":"Replay"},G:[g.wo()]});this.S=Z;this.W(Z,"presentingplayerstatechange",this.onStateChange);this.listen("click",this.onClick,this);this.XT(Z.getPlayerStateObject());pi(this.S,this.element,this)}; XV=function(Z,I){g.p.call(this);var d=this;this.N=Z;this.D=new Map;this.Z=new Map;this.L=null;I.get().addListener(this);this.addOnDisposeCallback(function(){I.OZ()||I.get().removeListener(d)}); var Y;this.L=((Y=I.get().qP)==null?void 0:Y.slotId)||null}; Oz=function(Z){this.S=Z}; JF=function(Z,I){return{start:function(d){return Z[d]}, end:function(d){return I[d]}, length:Z.length}}; K7E=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"videodatachange",function(){var d=I.api.getRootNode(),Y=I.api.C();g.xw(d,"ytp-delhi-modern");Y.Y("delhi_modern_web_player_icons")&&g.xw(d,"ytp-delhi-modern-icons");Y.Y("delhi_modern_web_player_horizontal_volume_controls")&&g.xw(d,"ytp-delhi-horizontal-volume-controls");Y.Y("delhi_modern_web_player_compact_controls")&&g.xw(d,"ytp-delhi-modern-compact-controls");switch(bo(Y.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.xw(d, "ytp-delhi-modern-with-luminosity");break;case "difference":g.xw(d,"ytp-delhi-modern-with-difference");break;case "exclusion":g.xw(d,"ytp-delhi-modern-with-exclusion")}d=I.api.isHdr()||I.api.Y("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";I.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",d);IDn(I)}); this.events.W(Z,"resize",function(){IDn(I)})}; bra=function(Z){return Z.by&&!Z.Vx}; dXa=function(Z){U3.forEach(function(I){return I(Z)})}; oL=function(Z,I,d){this.client=Z;this.DS=I;this.L=d}; yf=function(Z,I,d){return Z+d*(I-Z)}; YML=function(Z,I,d){var Y=[],T=[];if((Array.isArray(d)?2:1)==1)return T=[I,Z],g.KM(Y,function(O){T.push(O)}),ovl(T.join(" ")); var f=[],P=[];g.KM(d,function(O){P.push(O.key);f.push(O.value)}); d=Math.floor((new Date).getTime()/1E3);T=f.length==0?[d,I,Z]:[f.join(":"),d,I,Z];g.KM(Y,function(O){T.push(O)}); Z=ovl(T.join(" "));Z=[d,Z];P.length==0||Z.push(P.join(""));return Z.join("_")}; jha=function(){var Z={};var I=Z.Fym===void 0?!1:Z.Fym;Z=Z.GZ===void 0?!0:Z.GZ;if(g.gZ("_lact",window)==null){var d=parseInt(g.rh("LACT"),10);d=isFinite(d)?Date.now()-Math.max(d,0):-1;g.zb("_lact",d,window);g.zb("_fact",d,window);d==-1&&eF();Oal(I,Z);new uy(function(){Bz("mouse",100)})}}; g.THr=function(Z){var I=uC(Z,0,1701671783);if(!I)return null;var d=YjO(I),Y=d.iF7;d=vZ(d.TP);if(Z=uC(Z,I.offset+I.size,1701671783))if(Z=YjO(Z),Z=vZ(Z.TP),d&&Z){I=g.t(Object.keys(Z));for(var T=I.next();!T.done;T=I.next())T=T.value,d[T]=Z[T]}return d?new l1(d,Y):null}; RD=function(Z,I,d,Y){if(!(I===Z.state&&d===Z.Em&&Y===Z.seekSource||I!==void 0&&(I&128&&!d||I&2&&I&16))){var T;if(T=I)T=I||Z.state,T=!!(T&16||T&32);Z=new g.ns(I,d,T?Y?Y:Z.seekSource:null)}return Z}; u1=function(Z,I){var d=Error.call(this);this.message=d.message;"stack"in d&&(this.stack=d.stack);this.index=Z;this.objectStore=I;Object.setPrototypeOf(this,u1.prototype)}; i8$=function(Z){return(Z===void 0?0:Z)&&g.x9("vss_through_gel_video_stats")?"video_stats":"log_event"}; cbO=function(Z){Ab7(function(){var I=fDJ();Z.D!=null&&(I.sdk=Z.D);var d=lz(Ay);d.L!=null&&(I.avms=d.L.getName());return I})}; vG=function(){return Date.now()-PC9}; QhJ=function(Z,I){var d=Z.j*Z.scale;I-=Z.L/2;return I>-d?-I/d*Z.interval*.5:-(I+d/2)/d*Z.interval}; O8a=function(Z,I){Z.B=I;Z.L=g.yd("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:I.toString()});I=Z.LS.map(lp);I.unshift(Z.L);Z.D&&I.push(Z.D);Z.iW(I)}; BHn=function(Z,I,d,Y,T,f,P,O){P=P===void 0?!1:P;var a=[];try{var W=[];if(d.renderer.linearAdSequenceRenderer)var e=function(A){A=aD$(A.slotId,d,I,T(A),Y,f,P);W=A.L2r;return A.F2}; else if(d.renderer.instreamVideoAdRenderer)e=function(A){var F=A.slotId;A=T(A);var J=P,v=d.config.adPlacementConfig,l=xTD(v),X=l.RI,H=l.Pd;l=d.renderer.instreamVideoAdRenderer;var x;if(l==null?0:(x=l.playerOverlay)==null?0:x.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var Id=Mz(l,J);x=Math.min(X+Id.videoLengthSeconds*1E3,H);J=new rO(0,[Id.videoLengthSeconds]);H=Id.videoLengthSeconds;var TB=Id.playerVars,dD=Id.instreamAdPlayerOverlayRenderer,Qu= Id.playerOverlayLayoutRenderer,Zr=Id.adVideoId,sJ=WTn(d),bL=Id.h5;Id=Id.iK;var TL=l==null?void 0:l.adLayoutLoggingData;l=l==null?void 0:l.sodarExtensionData;F=zi(I.D.get(),"LAYOUT_TYPE_MEDIA",F);var jt={layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",r4:"core"};return{layoutId:F,layoutType:"LAYOUT_TYPE_MEDIA",h5:bL,layoutExitNormalTriggers:[new GQ(I.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new F6(Y), new ud(H),new t5(TB),new LS(X),new tT(x),dD&&new za(dD),Qu&&new k4(Qu),new Xj(v),new Vl(Zr),new Y8(J),new J6(sJ),l&&new AT(l),new EN({current:null}),new Dx({}),new sQ(Id)].filter(XoB)),Tb:A(jt),adLayoutLoggingData:TL}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var B=CZn(Z,Y,d.adSlotLoggingData,e,O);a.push(B);for(var w=g.t(W),V=w.next();!V.done;V=w.next()){var N=V.value,q=N(Z,T);if(q instanceof C)return q;a.push.apply(a,g.c(q))}}catch(A){return new C(A,{errorMessage:A.message,AdPlacementRenderer:d,numberOfSurveyRenderers:efi(d)})}return a}; wQD=function(Z,I,d){this.callback=Z;this.slot=I;this.S7=d}; zQ=function(Z){var I=g.FZ(Z.B);g.KM(I,function(d){d.BN(Z.L)}); Z.L!=Z||tTJ(Z)}; sH=function(Z,I,d,Y,T,f,P,O,a){var W=b5(Z,d);f=W?1:f;O=!!O||f===3;W=a&&!W;(f===2||W)&&di(Z)&&(I=Z.Gm,d=I[nL]|0);Z=hr(I,T,P);var e=Z===Ks?7:Z[nL]|0,B=OW(e,d);if(a=!(4&B)){var w=Z,V=d,N=!!(2&B);N&&(V|=2);for(var q=!N,A=!0,F=0,J=0;F=0}; zJ=function(Z,I,d){g.p.call(this);var Y=this;this.L=Z;this.context=d;this.fM=new Map;I.get().addListener(this);this.addOnDisposeCallback(function(){I.OZ()||I.get().removeListener(Y)})}; FTl=function(Z){var I=Z.api.getPresentingPlayerType()===2&&(Z.api.cj().L9||Z.api.C().disableOrganicUi)&&Z.api.C().D&&ka&&Xx>=11;Z=Z.api.C().V&&ka;return!(!I&&!Z)}; Tm=function(Z,I){if(Z.byteLength-I<8)return!1;var d=Z.getUint32(I);if(d<8||Z.byteLength-I122)return!1}return!0}; g.lg=function(Z){return(Z=xFL(Z===void 0?0:Z))?new pq({veType:Z,youtubeData:void 0,jspbYoutubeData:void 0}):null}; shO=function(Z){if(!Z)return null;switch(Z.iconType){case "ACCOUNT_CIRCLE":return{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 1c4.96 0 9 4.04 9 9 0 1.42-.34 2.76-.93 3.96-1.53-1.72-3.98-2.89-7.38-3.03A3.99 3.99 0 0016 9c0-2.21-1.79-4-4-4S8 6.79 8 9c0 1.97 1.43 3.6 3.31 3.93-3.4.14-5.85 1.31-7.38 3.03C3.34 14.76 3 13.42 3 12c0-4.96 4.04-9 9-9zM9 9c0-1.65 1.35-3 3-3s3 1.35 3 3-1.35 3-3 3-3-1.35-3-3zm3 12c-3.16 0-5.94-1.64-7.55-4.12C6.01 14.93 8.61 13.9 12 13.9c3.39 0 5.99 1.03 7.55 2.98C17.94 19.36 15.16 21 12 21z", fill:"#fff"}}]};case "FLAG":return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M13.18 4L13.42 5.2L13.58 6H14.4H19V13H13.82L13.58 11.8L13.42 11H12.6H6V4H13.18ZM14 3H5V21H6V12H12.6L13 14H20V5H14.4L14 3Z",fill:"white"}}]};case "HELP":return Nwu();case "HIDE":return{K:"svg",J:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"g",G:[{K:"path",J:{d:"M16.24,9.17L13.41,12l2.83,2.83l-1.41,1.41L12,13.41l-2.83,2.83l-1.41-1.41L10.59,12L7.76,9.17l1.41-1.41L12,10.59 l2.83-2.83L16.24,9.17z M4.93,4.93c-3.91,3.91-3.91,10.24,0,14.14c3.91,3.91,10.24,3.91,14.14,0c3.91-3.91,3.91-10.24,0-14.14 C15.17,1.02,8.83,1.02,4.93,4.93z M18.36,5.64c3.51,3.51,3.51,9.22,0,12.73s-9.22,3.51-12.73,0s-3.51-9.22,0-12.73 C9.15,2.13,14.85,2.13,18.36,5.64z"}}]}]}; case "OPEN_IN_NEW":return t4()}}; $a=function(Z,I){g.St.call(this,"Sleep timer",g.D$.SLEEP_TIMER,Z,I);this.S=Z;this.j={};this.N=this.LT("Off");this.B=this.L="";Z.Y("web_settings_menu_icons")&&(I=Z.Y("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M12.33 1.00C12.22 1.00 12.11 1.00 12 1C5.92 1 1 5.92 1 12C1 18.07 5.92 23 12 23C13.90 23.00 15.78 22.50 17.44 21.55C19.10 20.61 20.48 19.25 21.46 17.61L21.64 17.29C22.06 16.52 21.21 15.73 20.35 15.88C18.76 16.15 17.12 15.94 15.66 15.27C14.19 14.59 12.97 13.49 12.14 12.11C11.31 10.73 10.91 9.13 11.01 7.52C11.11 5.91 11.69 4.37 12.67 3.09L12.89 2.83C13.45 2.16 13.20 1.03 12.33 1.00ZM15.56 2.60C15.45 2.84 15.43 3.11 15.51 3.36C15.59 3.61 15.77 3.82 16.01 3.94C16.91 4.39 17.73 4.99 18.44 5.71L18.73 6.03L18.80 6.10C18.99 6.27 19.22 6.36 19.47 6.37C19.72 6.37 19.96 6.28 20.15 6.12C20.33 5.95 20.45 5.72 20.48 5.48C20.51 5.23 20.44 4.98 20.29 4.78L20.23 4.70L19.87 4.31C19.01 3.43 18.01 2.70 16.90 2.15C16.67 2.03 16.39 2.01 16.14 2.10C15.89 2.18 15.68 2.36 15.56 2.60M10.24 3.17C9.42 4.64 8.99 6.31 9 8C9 13.42 13.32 17.84 18.71 17.99C17.86 18.93 16.83 19.69 15.67 20.21C14.52 20.73 13.26 21.00 12 21C9.76 21.00 7.60 20.17 5.95 18.67C4.29 17.17 3.25 15.10 3.03 12.88C2.81 10.65 3.43 8.43 4.76 6.63C6.09 4.84 8.05 3.60 10.24 3.17M21.16 7.88C20.93 7.96 20.73 8.12 20.61 8.34C20.49 8.55 20.45 8.81 20.50 9.05L20.53 9.15L20.66 9.56C20.93 10.53 21.04 11.54 20.98 12.55C20.97 12.81 21.06 13.06 21.23 13.26C21.41 13.45 21.65 13.57 21.92 13.59C22.18 13.60 22.44 13.52 22.63 13.34C22.83 13.17 22.95 12.93 22.97 12.67C23.05 11.44 22.92 10.20 22.58 9.02L22.43 8.51L22.39 8.42C22.29 8.19 22.11 8.01 21.88 7.91C21.65 7.81 21.40 7.80 21.16 7.88Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M16.67,4.31C19.3,5.92,21,8.83,21,12c0,4.96-4.04,9-9,9c-2.61,0-5.04-1.12-6.72-3.02C5.52,17.99,5.76,18,6,18 c6.07,0,11-4.93,11-11C17,6.08,16.89,5.18,16.67,4.31 M14.89,2.43C15.59,3.8,16,5.35,16,7c0,5.52-4.48,10-10,10 c-1,0-1.97-0.15-2.89-0.43C4.77,19.79,8.13,22,12,22c5.52,0,10-4.48,10-10C22,7.48,19,3.67,14.89,2.43L14.89,2.43z M12,6H6v1h4.5 L6,10.99v0.05V12h6v-1H7.5L12,7.01V6.98V6L12,6z",fill:"#fff"}}]},this.setIcon(I)); this.D=new g.k({K:"div",zm:["ytp-menuitem-label-wrapper"],G:[{K:"div",Z1:"End of video"},{K:"div",zm:["ytp-menuitem-sublabel"],Z1:"{{content}}"}]});g.z(this,this.D);this.listen("click",this.onClick);this.W(Z,"videodatachange",this.onVideoDataChange);this.W(Z,"presentingplayerstatechange",this.qs);this.W(Z,"settingsMenuVisibilityChanged",this.qT);Z.createClientVe(this.element,this,218889);this.qs();this.S.Rn("onSleepTimerFeatureAvailable")}; nv9=function(){var Z=g.rh("csn-to-ctt-auth-info");Z||(Z={},m9("csn-to-ctt-auth-info",Z));return Z}; hfd=function(Z){b4=Z}; AU9=function(Z){var I=I===void 0?!1:I;var d=d===void 0?!1:d;var Y=(0,g.o8)(),T={startTime:Y,ticks:{},infos:{}},f=I?g.gZ("yt.logging.gzipForFetch",!1):!0;if(fN&&f){if(!Z.body)return Z;try{var P=d?Z.body:typeof Z.body==="string"?Z.body:JSON.stringify(Z.body);f=P;if(!d&&typeof P==="string"){var O=o6J(P);if(O!=null&&(O>Y7E||O=mXB)if(xa++,g.x9("abandon_compression_after_N_slow_zips")||g.x9("abandon_compression_after_N_slow_zips_lr")){I=xa/p5;var W=qMa/g.EQ("compression_disable_point");p5>0&&p5%g.EQ("compression_disable_point")===0&&I>=W&&(fN=!1)}else fN=!1;SM7(T)}}Z.headers=Object.assign({},{"Content-Encoding":"gzip"},Z.headers||{});Z.body=f;return Z}catch(e){return $6(e),Z}}else return Z}; g.K5=function(Z){return o9u(Z,Z)}; DX9=function(Z,I,d,Y,T,f,P,O){T=T===void 0?d.schedule:T;var a=g.Xt(Z,tN),W;if(!Z.qL)if(W=FOl(I,a)){var e=W.tj;W=W.signature}else W=e=I.encrypt(a),(0,g.o8)(),W=yOO(new UjJ(I.L.Z),W,I.iv);return $t(e&&W?{MY:e,Im:W}:{aG1:a},I,d,Y,!!Z.qL,T,f,P,O)}; Rfd=function(Z){var I=Z.S.getVideoData();return!!I.kF||!!I.captionTracks.length||g.JUa(I,Z.S)}; Eb=function(Z,I,d,Y,T,f,P,O){P=P===void 0?!0:P;C5(d)&&g8(T,0,null)&&(!Ab(Z,"impression")&&O&&O(),Z.rK("impression"));Ab(Z,"impression")&&(g.Nw(d,4)&&!g.Nw(d,2)&&Z.vO("pause"),na(d,4)<0&&!(na(d,2)<0)&&Z.vO("resume"),g.Nw(d,16)&&T>=.5&&Z.vO("seek"),P&&g.Nw(d,2)&&uf(Z,d.state,I,Y,T,f))}; LTB=function(Z,I){var d=Z.player.C(),Y,T=(Y=Z.player.getVideoData(1))==null?void 0:Y.oauthToken;return g.NF(d,T).then(function(f){if(f&&Vz()){var P=lF();E3(P,f)}return g.L9(Z.player.NA(P),I,"/youtubei/v1/player/ad_break").then(function(O){return O})})}; g.b1=function(Z){g.p.call(this);this.V=Z;this.N=0;this.Z=100;this.B=!1;this.D=new Map;this.j=new Set;this.flushInterval=3E4;this.L=new g.qn(this.flushInterval);this.L.listen("tick",this.hv,!1,this);g.z(this,this.L)}; HZ=function(Z,I,d,Y,T,f,P,O,a){g2.call(this,Z,I,d,Y);this.S7=T;this.Q5=f;this.j=P;this.B=O;this.Ms=a;this.N=!1;this.V=dB(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; aD$=function(Z,I,d,Y,T,f,P){var O=I.config.adPlacementConfig,a=xTD(O),W=a.RI,e=a.Pd;a=(I.renderer.linearAdSequenceRenderer||{}).linearAds;if(a==null||!a.length)throw new TypeError("Expected linear ads");var B=[],w={s8:W,yq:0,Uym:B};a=a.map(function(N){return UXO(Z,N,w,d,Y,O,T,e,P)}).map(function(N,q){q=new rO(q,B); return N(q)}); var V=a.map(function(N){return N.o1}); return{F2:yUB(d,Z,W,V,O,WTn(I),Y,e,f),L2r:a.map(function(N){return N.IGZ})}}; vvi=function(Z,I){if(!(I instanceof kt))if(I instanceof oP){var d=Error(I.toString());d.stack=I.stack;I=new kt(11,"EBH:Error",d)}else I=new kt(12,"BSO:Unknown",I);return Z.reportError(I)}; lDL=function(Z){return Z.data["Stitched-Video-Cpn"]?Z.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]}; u2O=function(){this.N=this.Z=this.L=this.timedOut=this.started=this.B=this.D=0}; zfi=function(Z){var I=new cZ;var d=new HE;d=Kr(d,1,"botguard");Z=Kr(d,2,Z);this.L=zo$(I,HE,1,G$u,Z)}; M$=function(Z,I){Z.zz[Z.pending++]=I}; ra=function(Z,I){if(Z.heightPx===-1){var d=null;try{d=g.vX("CANVAS"),Z.D=d.getContext("2d")}catch(O){}if(Z.D){var Y=Z.L*Z.sampleCount;Z.Z=d;Z.Z.width=Y;Z.Z.style.width=Y+"px";Z.element.appendChild(Z.Z)}else for(Z.sampleCount=Math.floor(Z.sampleCount/4),Z.L*=4,d=0;d1?2:1,Z.Z.height=Z.heightPx*d,Z.Z.style.height= Z.heightPx+"px",Z.D.scale(1,d)));I=g.t(I);for(Y=I.next();!Y.done;Y=I.next()){d=Z;var T=Z.index,f=Y.value;for(Y=0;Y+20){I=g.t(I.e7);for(var d=I.next();!d.done;d=I.next()){var Y=void 0;Z+=((Y=d.value.range)==null?void 0:Y.length)||0}return Z}if(I.Ce.length>0)for(d=g.t(I.Ce),Y=d.next();!Y.done;Y=d.next())Z+=Y.value.Rb||0;return Z+I.m9}; Co=function(Z,I){return Z>I?1:Zf.Wy&&(f.startTimeSecs=I.startSecs,f.QI=I.QI,f.event==="predictStart"&&f.fA===5&&I.event!=="predictStart"&&(f.rU=Date.now()),f.event=I.event)}else f={event:I.event,startTimeSecs:I.startSecs,QI:I.QI,LB:[],Wy:Y,fA:0},Z.D.set(I.identifier,f);T&&f.fA===0&&(T.FV(I)?f.fA=5:(f.fA=2,f.Fk=""),f.rU=Date.now(),f.Wy=Y);Y>f.Wy&&(T==null||T.FV(I),f.Wy=Y);Z.B&&d>-1&&d0&&(I.request={internalExperimentFlags:d});Rci(Z,void 0,I);Lva(void 0,I);Unn(void 0,I);Cgl(Z,void 0,I);Bdl(void 0,I);g.x9("start_client_gcf")&&ytn(void 0,I);g.rh("DELEGATED_SESSION_ID")&& !g.x9("pageid_as_header_web")&&(I.user={onBehalfOfUser:g.rh("DELEGATED_SESSION_ID")});!g.x9("fill_delegate_context_in_gel_killswitch")&&(Z=g.rh("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(I.user=Object.assign({},I.user,{serializedDelegationContext:Z}));Z=g.rh("INNERTUBE_CONTEXT");var Y;if(g.x9("enable_persistent_device_token")&&(Z==null?0:(Y=Z.client)==null?0:Y.rolloutToken)){var T;I.client.rolloutToken=Z==null?void 0:(T=Z.client)==null?void 0:T.rolloutToken}Y=Object;T=Y.assign;Z=I.client; d={};for(var f=g.t(Object.entries(aW(g.rh("DEVICE","")))),P=f.next();!P.done;P=f.next()){var O=g.t(P.value);P=O.next().value;O=O.next().value;P==="cbrand"?d.deviceMake=O:P==="cmodel"?d.deviceModel=O:P==="cbr"?d.browserName=O:P==="cbrver"?d.browserVersion=O:P==="cos"?d.osName=O:P==="cosver"?d.osVersion=O:P==="cplatform"&&(d.platform=O)}I.client=T.call(Y,Z,d);return I}; yYr=function(Z,I,d){var Y;return g.h(function(T){switch(T.L){case 1:var f=Z.L;var P=Vj();f=P?new Pa(f.D,P):void 0;Y=f;if(!Y){T.xS(2);break}g.ez(T,3);return g.m(T,Y.encrypt(I,d),5);case 5:return T.return(T.D);case 3:g.Bj(T);case 2:return T.return(QL(Z,I,d))}})}; $Xr=function(Z){var I=Z.videoData;Ws7(Z,Z.Bk).then(void 0,function(d){Z.videoData!==I||I.OZ()||(d=w2(d),d.errorCode==="auth"&&Z.videoData.errorDetail&&Z.videoData.errorDetail!=="7"?Z.pj(d.errorCode,2,unescape(Z.videoData.errorReason),VQ(d.details),Z.videoData.errorDetail,Z.videoData.aU||void 0):Z.handleError(d))})}; qxn=function(Z,I){I.includeDomain&&(Z=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+Z);var d=g.rh("XSRF_FIELD_NAME");if(I=I.urlParams)I[d]&&delete I[d],Z=BX(Z,I);return Z}; uld=function(Z,I){return I?[g.eU(I.info,Z)]:[]}; pQu=function(Z,I,d,Y,T){g.p.call(this);var f=this,P=ZE(function(){return new IV(f.Ms)}); g.z(this,P);var O=ZE(function(){return new dg(P,f.Ms)}); g.z(this,O);var a=ZE(function(){return new oV}); g.z(this,a);Y=ZE(function(){return new Yh(Z)}); g.z(this,Y);var W=ZE(function(){return new jO(P,O,f.Ms)}); g.z(this,W);var e=ZE(function(){return new TJ}); g.z(this,e);this.jK=ZE(function(){return new fZ(T)}); g.z(this,this.jK);this.SJ=ZE(function(){return new Pb(I)}); g.z(this,this.SJ);this.xu=ZE(function(){return new QX(I)}); g.z(this,this.xu);this.B$=ZE(function(){return new Oz(I)}); g.z(this,this.B$);this.eJ=ZE(function(){return new aV(I)}); g.z(this,this.eJ);this.Ms=ZE(function(){return new Wb(I)}); g.z(this,this.Ms);var B=ZE(function(){return new Bb(f.Ms)}); g.z(this,B);var w=ZE(function(){return new mE(P,W,O,f.Ms,B,null,null,null,null)}); g.z(this,w);this.V5=ZE(function(){return new VX(I,e,f.Ms)}); g.z(this,this.V5);var V=N6({V5:this.V5,Ms:this.Ms,hZ:B}),N=V.context,q=V.eF;this.Wk=V.Wk;this.S7=ZE(function(){return new nZ(I,f.V5,f.Ms)}); g.z(this,this.S7);this.Df=ZE(function(){return new AN(f.S7,I,f.Ms)}); g.z(this,this.Df);this.Q5=ZE(function(){return new SO(I,a,f.Df,f.V5,f.Wk,f.Ms,q)}); g.z(this,this.Q5);this.SM=new AI(Y,w,d,this.Ms,Z,this.V5,this.S7,this.SJ);g.z(this,this.SM);var A=new DE(I,this.SM,this.S7,this.V5);this.Tz=ZE(function(){return A}); this.b7=A;this.Ef=new Uz(Y,W,this.xu,this.Tz,N);g.z(this,this.Ef);this.z_=new yX(this.Ms,Y,W,w,this.V5,this.Ef,d,this.B$);g.z(this,this.z_);this.WO={iY:new Map,s4:new Map,t0:new Map,DO:new Map,zE:new Map};this.listeners=[];this.er={z_:this.z_,jL:this.Ms.get(),Hj:this.jK.get(),QS:this.S7.get(),SM:this.SM,IC:P.get(),FE:null,UY:{Vh:function(){}}, oF:a.get(),pN:this.V5.get()}}; tbO=function(Z,I,d,Y){var T,f,P;return g.h(function(O){switch(O.L){case 1:return T={config:Z,hashData:I,timestamp:Y!==void 0?Y:(0,g.o8)()},g.m(O,Oo(d),2);case 2:return f=O.D,g.m(O,f.clear("hotConfigStore"),3);case 3:return g.m(O,g.ay(f,"hotConfigStore",T),4);case 4:return P=O.D,O.return(P)}})}; A6u=function(Z,I,d,Y,T){return xXd(Z,I,d,Y,function(f,P){return new LDO(Z.L,d,f,P,T)})}; KTE=function(Z,I,d,Y,T,f,P,O,a,W){if(V1(Z.V5.get(),1).clientPlaybackNonce!==a)throw new C("Cannot register CueRange-based trigger for different content CPN",{trigger:d});Z.fM.set(d.triggerId,{Rv:new SB(I,d,Y,T),cueRangeId:f});Z.xu.get().addCueRange(f,P,O,W,Z);n9(Z.context.Ms.get())&&(a={},Z.context.Lw.t9("crr",(a.ca=I,a.tt=d.triggerType,a.st=Y.slotType,a.lt=T==null?void 0:T.layoutType,a.cid=f,a.sm=P,a.em=O,a)))}; aP=function(Z,I){return CCa(Z,I,!0)}; Evd=function(Z){Z.EP().element.setAttribute("aria-live","polite")}; ZLD=function(Z,I){try{var d=lz(pz);d.kS=!0;var Y=Z?new Ui(Z.y,Z.x+Z.width,Z.y+Z.height,Z.x):new Ui(0,0,0,0);var T=vG(),f=La();var P=new KR(T,f,d);P.L=Y;P.volume=I;d.U4(P)}catch(O){W1(542,O)}}; az=function(Z){var I,d;var Y=!!Z.In&&!((I=Z.api.getVideoData())==null?0:I.isLivePlayback)&&!Z.api.NI()&&Z.api.getPresentingPlayerType()!==2&&!g.b(Z.api.getPlayerStateObject(),2)&&!((d=g.k6(Z.api))==null?0:d.vE())&&!Z.api.isEmbedsShortsMode()&&$xn(Z.api.f6());Z.N!==Y&&(Z.N=Y,Z.N?Z.L.subscribe("dragstart",Z.kS,Z):(Z.L.unsubscribe("dragstart",Z.kS,Z),Z.L.unsubscribe("dragmove",Z.j,Z),Z.L.unsubscribe("dragend",Z.B,Z),r0(Z)))}; b8B=function(Z){this.L=Z}; cUB=function(Z){if(Z==null)return Z;var I=typeof Z;if(I==="bigint")return String(H8D(64,Z));if(Ze(Z)){if(I==="string")return Ze(Z),I=oU(Number(Z)),Yr(I)&&I>=0?Z=String(I):(I=Z.indexOf("."),I!==-1&&(Z=Z.substring(0,I)),Z[0]==="-"?I=!1:(I=Z.length,I=I<20?!0:I===20&&Z<="18446744073709551615"),I||(NK(Z),Z=ia(FS,n7))),Z;if(I==="number")return Ze(Z),Z=oU(Z),Z>=0&&Yr(Z)||(UL(Z),Z=vu(FS,n7)),Z}}; Wa=function(Z){var I=Z.docid||Z.video_id||Z.videoId||Z.id;if(I)return I;I=Z.raw_player_response;I||(Z=Z.player_response)&&(I=JSON.parse(Z));return I&&I.videoDetails&&I.videoDetails.videoId||null}; g.ik=function(Z,I){Z.sort(I||Co)}; WDd=function(Z,I,d){var Y={stack:[],error:void 0,hasError:!1};try{if(!I.qB)throw new kt(29,"SDF:notready");return Kw(ayO(Y,new xp(Z.logger,0,Z.state)),function(){return yx(Z,I)},d)}catch(T){Y.error=T,Y.hasError=!0}finally{Wyu(Y)}}; gvJ=function(Z){return Z.AT||Z.VT}; HZn=function(Z){return g.Ft(Z,function(I,d,Y){return d>0?Y[d]-Y[d-1]:Y[d]})}; g.Sd=function(Z,I){typeof Z=="number"&&(Z=(I?Math.round(Z):Z)+"px");return Z}; rUL=function(Z,I){var d,Y,T,f;return g.h(function(P){if(P.L==1)return d={startTime:(0,g.o8)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},g.m(P,zB(I),2);if(P.L!=3)return Y=P.D,T=Object.assign({},Z,{options:JSON.parse(JSON.stringify(Z.options)),interface:g.rh("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),g.m(P,g.ay(Y,"LogsRequestsStore",T),3);f=P.D;d.ticks.tc=(0,g.o8)();MPJ(d);return P.return(f)})}; NZ=function(Z){return[Z.auth===void 0?"undefined":Z.auth,Z.isJspb===void 0?"undefined":Z.isJspb,Z.cttAuthInfo===void 0?"undefined":Z.cttAuthInfo,Z.tier===void 0?"undefined":Z.tier].join("/")}; yil=function(Z){$w.call(this,Z);pF(Z,"isEmbedsShortsMode",function(){return Z.isEmbedsShortsMode()}); pF(Z,"getReelItemWatchResponse",function(){var I,d;return(d=(I=Z.getVideoData(1))==null?void 0:I.getReelItemWatchResponse())!=null?d:null})}; eC=function(Z){Z.offsets.length=A},q); q.done.catch(function(A){T(A)})}catch(A){T(A)}}); P.addEventListener("success",function(){var V=P.result;a&&V.addEventListener("versionchange",function(){a(f())}); V.addEventListener("close",function(){k5("IDB_UNEXPECTEDLY_CLOSED",{dbName:xX(Z),dbVersion:V.version});W&&W()}); Y(f())}); P.addEventListener("error",function(){T(P.error)}); O&&P.addEventListener("blocked",function(){O()})})}; Pa=function(Z,I){this.D=Z;this.subtleCrypto=I}; sf9=function(Z,I,d,Y,T,f,P){function O(X){return!!B[X]} var a=I.D||!!T,W=a&&I.Hk?f:void 0,e=new Set,B=o0i(Z,I,d,Y,f,a,e);R1(Y)&&(B=hxJ(d,B,T,a,f,I),a&&f({enflt:A$(B)}));I.y5=f6n(B,I);var w=PaL(I);Z=[];T=g.t(Object.values(B));for(var V=T.next();!V.done;V=T.next()){V=V.value;var N=void 0;((N=V)==null?0:N.length)&&V[0].iT()&&Z.push.apply(Z,g.c(V))}if(fw(Y))return f=g.Xe(Object.values(B),function(X){return!!X.length&&!!X[0].audio}),a=g.Xe(Object.values(B),function(X){return!!X.length&&!!X[0].video}),f&&a||Qv(),Fl(new Pp(a,f,W,Z)); T=B.a;V=!1;I.sZ&&w[0]!=="a"&&QJJ(T)&&(w.unshift("a"),V=!0);a&&(f({audioPrefOrder:w.join("_")}),f({preferHighQualityAudio:I.sZ}),f({forcedAacForHqa:V}));T=[];if(I.EU){w=g.zG(w,O);V=new Set;N=g.t(w);for(var q=N.next();!q.done;q=N.next()){var A=new Set;q=g.t(B[q.value]);for(var F=q.next();!F.done;F=q.next()){F=F.value;var J=void 0,v=(J=F.uo)==null?void 0:J.id;v&&(V.has(v)?A.has(v)&&T.push(F):(A.add(v),V.add(v),T.push(F)))}}if(T.length===0){if(w.length===0)return a&&f({noaudio:1}),Qv();T=B[w[0]]}}else{T= g.Xe(w,O);if(!T)return a&&f({noaudio:1}),Qv();T=B[T]}B["9"]&&B.h&&Y.Qy&&!I.Tm&&(a&&f({dltvp9:1}),delete B["9"]);if(P){a&&f({bfsflt:A$(B),bfsflta:mI(d)});dxE(d,e);a&&f({bfsfltb:mI(d)});for(var l in B)if(B.hasOwnProperty(l)&&(P=l,!(P==="f"||I.fS===0&&OqL.has(P))))for(e=g.t(B[P]),w=e.next();!w.done;w=e.next())w=w.value,I.R4?a6J(d,P,w):WWD(d,P,w);a&&f({aftsflt:mI(d)})}P=B["1h"]?"1h":"1";d=B["9h"]?"9h":"9";w=B[P];V=B[d];w&&w.length&&(I.L.highestAv1Resolution=w[w.length-1].video.qualityOrdinal);V&&V.length&& (I.L.highestVp9Resolution=V[V.length-1].video.qualityOrdinal);l=[];e=[];if(I.vg&&w)l=w,e=[P],f({forceAv1:P});else if(I.X&&!I.Lf)for(e=cLE(Y)?B["1h"]||B["9h"]?["1h","9h"]:["9","h"]:["1","9","h"],a&&f({newhybpref:e.join(".")}),w=g.t(e),V=w.next();!V.done;V=w.next())l=l.concat(B[V.value]).filter(function(X){return X}); else I.WB>0&&V&&w&&(e=[P,d],l=w.concat(V).filter(function(X){return X})); if(l.length&&!I.Lf){oe(l,e);if(a){a=[];I=g.t(l);for(Y=I.next();!Y.done;Y=I.next())a.push(Y.value.itag);f({hbdfmt:a.join(".")})}return Fl(new Pp(l,T,W,Z))}l=ezJ(I);l=g.Xe(l,O);if(!l){if(B[P])return f=B[P],oe(f),Fl(new Pp(f,T,W,Z));a&&f({novideo:1});return Qv()}I.Tv&&(l==="1"||l==="1h")&&B[d]&&(P=DG(B[l]),e=DG(B[d]),e>P?l=d:e===P&&B_d(B[d])&&(l=d));l==="9"&&B.h&&DG(B.h)>DG(B["9"])&&(l="h");I.UZ&&Y.isLive&&l==="("&&B.H&&DG(B["("])<1440&&(l="H");a&&f({vfmly:J$(l)});I=B[l];if(!I.length)return a&&f({novfmly:J$(l)}), Qv();oe(I);return Fl(new Pp(I,T,W,Z))}; g.qj=function(Z){this.tag=Z}; Au=function(Z){try{return iW(Z())}catch(I){return xAi(I)}}; VF7=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V,N,q){Z=ip(Z,"SLOT_TYPE_PLAYER_BYTES");Y=avO(I,P,Y,T,Z,W,e);if(Y instanceof C)return Y;var A;P=(A=dB(Y.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:A.layoutId;if(!P)return new C("Invalid adNotify layout");I=wzD(P,I,d,T,f,a,O,W,B,w,V,N,q);return I instanceof C?I:[Y].concat(g.c(I))}; g.Ry=function(Z){this.D=Z}; g.LV=function(Z,I){return Z.UI+"timedtext_video?ref=player&v="+I.videoId}; If=function(Z,I,d,Y,T,f){f=f===void 0?0:f;j4.call(this,Z,I,Y,void 0);this.B=d;this.t$=f;this.index=T||new g.EL}; N_n=function(Z){if(Z.linearAds==null)return!1;Z=g.y(Z.adStart,YI);return Z?jA(Z)?!0:(Zv("Invalid LASR with notify"),!1):!1}; FL=function(Z){if(Z.Tm&&Z.In&&!Z.Bj){for(;Z.Z.length;){var I=Z.Z[0],d=FWO(Z)?sJn(I):g.Bg(I.initData);if(dH(Z.L)&&!I.D)Z.Z.shift();else{if(Z.D.get(d))if(Z.L.flavor!=="fairplay"||dH(Z.L)){Z.Z.shift();continue}else Z.D.delete(d);SAr(I);break}}Z.Z.length&&Z.createSession(Z.Z[0])}}; KK=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V,N,q,A,F,J){this.pM=Z;this.OP=I;this.PJ=d;this.Q5=Y;this.Df=T;this.l8=f;this.B$=P;this.V5=O;this.S7=a;this.KF=W;this.xu=e;this.SJ=B;this.eJ=w;this.jK=V;this.qy=N;this.Ms=q;this.n_=A;this.context=F;this.eF=J}; g.ls=function(){oB.apply(this,arguments)}; g.LM=function(Z){return zqJ(g.gB(Z)[3]||null)}; gKl=function(Z){var I,d;if(d=(I=Z.player.getVideoData(1))==null||!I.zT)I=Z.player.C(),d=EU(I)&&!g.V4(I)&&I.playerStyle==="desktop-polymer";d&&(Z=Z.player.getInternalApi(),Z.addEventListener("updateKevlarOrC3Companion",hfd),Z.addEventListener("updateEngagementPanelAction",nUJ),Z.addEventListener("changeEngagementPanelVisibility",hzu),window.addEventListener("yt-navigate-start",bRJ))}; mZB=function(Z){if(!Z.u5.Qy)return!0;var I=Z.t5.getVideoData();if(Z.t5.PS())return Z.D1("ombpa",{}),!1;var d,Y;if(!!((d=Z.LS)==null?0:(Y=d.IP)==null?0:Y.qVj)!==Z.u5.uu)return Z.D1("ombplmm",{}),!1;d=I.I0||I.liveUtcStartSeconds||I.En;if(Z.u5.uu&&d)return Z.D1("ombplst",{}),!1;if(Z.u5.LS)return Z.D1("ombab",{}),!1;d=Date.now();return nS(Z.u5)&&!isNaN(Z.fS)&&d-Z.fS>Z.policy.xp*1E3?(Z.D1("ombttl",{}),!1):Z.u5.KN&&Z.u5.N||iv(I)!==0&&!Z.policy.L||I.Y("html5_disable_onesie_media_for_mosaic")&&qA(I)||I.Y("html5_disable_onesie_media_for_lifa_eligible")&& AB(I)?!1:!0}; yL=function(Z,I,d,Y,T,f,P){Z=Z===void 0?-1:Z;I=I===void 0?"":I;d=d===void 0?"":d;Y=Y===void 0?!1:Y;T=T===void 0?"":T;g.p.call(this);this.logSource=Z;this.componentId=I;f?I=f:(Z=new Uo(Z,"0"),Z.componentId=I,g.z(this,Z),d!==""&&(Z.Wu=d),Y&&(Z.N=!0),T&&gnO(Z,T),P&&l_O(Z,P),I=Z.build());this.L=I}; Sqa=function(Z){return qqO[Z]||""}; F3B=function(Z,I,d,Y,T){this.D=T;this.L=Z||0;this.pitch=I||0;this.yaw=d||0;this.roll=Y||0;this.crc=T.getUint32(4)}; Dw$=function(Z){var I={"Content-Type":"application/json"};g.rh("EOM_VISITOR_DATA")?I["X-Goog-EOM-Visitor-Id"]=g.rh("EOM_VISITOR_DATA"):g.rh("VISITOR_DATA")&&(I["X-Goog-Visitor-Id"]=g.rh("VISITOR_DATA"));I["X-Youtube-Bootstrap-Logged-In"]=g.rh("LOGGED_IN",!1);g.rh("DEBUG_SETTINGS_METADATA")&&(I["X-Debug-Settings-Metadata"]=g.rh("DEBUG_SETTINGS_METADATA"));if(Z!=="cors"){var d=g.rh("INNERTUBE_CONTEXT_CLIENT_NAME");d&&(I["X-Youtube-Client-Name"]=d);(d=g.rh("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(I["X-Youtube-Client-Version"]= d);(d=g.rh("CHROME_CONNECTED_HEADER"))&&(I["X-Youtube-Chrome-Connected"]=d);(d=g.rh("DOMAIN_ADMIN_STATE"))&&(I["X-Youtube-Domain-Admin-State"]=d)}g.rh("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(Z=g.rh("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(I["X-YouTube-Lava-Device-Context"]=Z):Z!=="cors"&&g.rh("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(Z=g.rh("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(I["X-YouTube-Lava-Device-Context"]=Z);return I}; y0n=function(Z,I,d,Y){d=d===void 0?{}:d;var T={};g.rt(T,{opt_adElement:void 0,opt_fullscreen:void 0},d);var f=Z.C5(I,d);d=f?f.pX:Z.Ru();if(T.opt_bounds)return d.L(va("ol",Y));if(Y!==void 0)if(A0u(Y)!==void 0)if(ll)Z=va("ue",Y);else if(DZd(Z),Os=="i")Z=va("i",Y),Z["if"]=0;else if(I=Z.C5(I,T)){b:{Os=="i"&&(I.gD=!0);f=T.opt_fullscreen;f!==void 0&&j0(I,!!f);var P;if(f=!zU().D)(f=Oi(g.Vs(),"CrKey")&&!(Oi(g.Vs(),"CrKey")&&Oi(g.Vs(),"SmartSpeaker"))||Oi(g.Vs(),"PlayStation")||Oi(g.Vs(),"Roku")||J0d()||Oi(g.Vs(), "Xbox"))||(f=g.Vs(),f=Oi(f,"AppleTV")||Oi(f,"Apple TV")||Oi(f,"CFNetwork")||Oi(f,"tvOS")),f||(f=g.Vs(),f=Oi(f,"sdk_google_atv_x86")||Oi(f,"Android TV")),f=!f;f&&(Ot(),f=ry(YX)===0);if(P=f){switch(I.Nm()){case 1:RzJ(I,"pv");break;case 2:Z.SQ(I)}aQ("pv")}f=Y.toLowerCase();if(P=!P)P=Hg(GU().zv,"ssmol")&&f==="loaded"?!1:g.Kc(LW9,f);if(P&&I.H3==0){Os!="i"&&(uI.done=!1);P=T!==void 0?T.opt_nativeTime:void 0;a2=P=typeof P==="number"?P:vG();I.KQ=!0;var O=La();I.H3=1;I.wb={};I.wb.start=!1;I.wb.firstquartile= !1;I.wb.midpoint=!1;I.wb.thirdquartile=!1;I.wb.complete=!1;I.wb.resume=!1;I.wb.pause=!1;I.wb.skip=!1;I.wb.mute=!1;I.wb.unmute=!1;I.wb.viewable_impression=!1;I.wb.measurable_impression=!1;I.wb.fully_viewable_audible_half_duration_impression=!1;I.wb.fullscreen=!1;I.wb.exitfullscreen=!1;I.Ay=0;O||(I.ly().X=P);ac(uI,[I],!O)}(P=I.Cg[f])&&aE(I.Jt,P);Hg(GU().zv,"fmd")||g.Kc(UZd,f)&&I.ZW&&I.ZW.D(I,null);switch(I.Nm()){case 1:var a=ul(f)?Z.V.custom_metric_viewable:Z.V[f];break;case 2:a=Z.X[f]}if(a&&(Y=a.call(Z, I,T,Y),Hg(GU().zv,"fmd")&&g.Kc(UZd,f)&&I.ZW&&I.ZW.D(I,null),Y!==void 0)){T=va(void 0,f);g.rt(T,Y);Y=T;break b}Y=void 0}I.H3==3&&Z.GV(I);Z=Y}else Z=va("nf",Y);else Z=void 0;else ll?Z=va("ue"):f?(Z=va(),g.rt(Z,P$d(f,!0,!1,!1))):Z=va("nf");return typeof Z==="string"?d.L():d.L(Z)}; ru=function(Z){return Z.Y("html5_live_head_playable")&&FI(Z)&&Z.nS.LS==="yt"?Z.isLiveHeadPlayable:Z.isLivePlayback}; Gk=function(Z){this.L=this.D=0;this.alpha=Math.exp(Math.log(.5)/Z)}; zk=function(Z,I,d){d=d===void 0?240:d;g.k.call(this,{K:"button",zm:["ytp-button","ytp-copylink-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.Dh(Z.C()))},G:[{K:"div",T:"ytp-copylink-icon",Z1:"{{icon}}"},{K:"div",T:"ytp-copylink-title",Z1:"Copy link",J:{"aria-hidden":"true"}}]});this.api=Z;this.L=I;this.D=d;this.visible=!1;this.tooltip=this.L.EP();I=Z.C();this.tooltip.element.setAttribute("aria-live", "polite");g.zL(this.element,"ytp-show-copylink-title",g.Dh(I));Z.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.W(Z,"videodatachange",this.qs);this.W(Z,"videoplayerreset",this.qs);this.W(Z,"appresize",this.qs);this.qs();this.addOnDisposeCallback(g.my(this.tooltip,this.element))}; vUr=function(Z,I,d){return d.layoutId!==qr(Z,I,d)?(Zv("onSkipRequested for a PlayerBytes layout that is not currently active",Z.Xx(),Z.Xm()),!1):!0}; ZU=function(Z,I){EB.call(this,Z,I);this.V=[]}; g.kj=function(Z){return Z.translationLanguage?Z.translationLanguage.languageCode:Z.languageCode}; XA=function(Z,I){var d=this;this.handleError=Z;this.L=I;this.D=!1;self.document===void 0||self.addEventListener("beforeunload",function(){d.D=!0}); this.Z=Math.random()<=.2}; uF9=function(Z,I,d){switch(I){case "M":var Y;(Y=Z.qoe)==null||l6d(Y,I,d);break;case "A":var T;(T=Z.qoe)==null||l6d(T,I)}}; Tl=function(Z){Ze(Z);Z=oU(Z);Yr(Z)||(UL(Z),Z=gSJ(FS,n7));return Z}; g.t$=function(Z){for(var I=0,d=arguments.length;I0}; My=function(Z,I){(Z=Fc(Z,I))?Z.layout!=null&&!Z.layout&&Zv("Unexpected empty layout",I):Zv("Unexpected undefined slotState",I);return(Z==null?void 0:Z.layout)||null}; Xzn=function(Z,I,d,Y,T){var f=Z[I];if(f==null||!f[d])return Z;Y=g.pV(f[d],Y,T==="REPEATED_FIELDS_MERGE_OPTION_APPEND");T={};f={};return Object.assign({},Z,(f[I]=Object.assign({},Z[I],(T[d]=Y,T)),f))}; Eo=function(Z,I){g.k.call(this,{K:"div",T:"ytp-fine-scrubbing",G:[{K:"div",T:"ytp-fine-scrubbing-draggable",G:[{K:"div",T:"ytp-fine-scrubbing-thumbnails",J:{tabindex:"0",role:"slider",type:"range","aria-label":"Click or scroll the panel for the precise seeking.","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"}}]},{K:"div",J:{"aria-hidden":"true"},T:"ytp-fine-scrubbing-cursor"},{K:"div",T:"ytp-fine-scrubbing-seek-time",J:{"aria-hidden":"true"}, Z1:"{{seekTime}}"},{K:"div",T:"ytp-fine-scrubbing-play",G:[Z.Y("delhi_modern_web_player_icons")?xj():KV()],J:{title:"Play from this position",role:"button"}},{K:"div",T:"ytp-fine-scrubbing-dismiss",G:[g.Hz()],J:{title:"Exit precise seeking",role:"button"}}]});var d=this;this.api=Z;this.B=this.KS("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.KS("ytp-fine-scrubbing-dismiss");this.Ns=this.KS("ytp-fine-scrubbing-draggable");this.playButton=this.KS("ytp-fine-scrubbing-play");this.thumbnails= [];this.D=[];this.mJ=this.L=0;this.j7=void 0;this.LS=NaN;this.Tm=this.X=this.Z=this.V=0;this.N=[];this.interval=this.frameCount=0;this.j=160;this.scale=1;this.w4=0;this.isEnabled=this.fS=!1;CV(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.my(I,this.dismissButton));this.addOnDisposeCallback(g.my(I,this.playButton));this.Bj=new g.rm(this.Ns,!0);this.Bj.subscribe("dragstart",this.Pm,this);this.Bj.subscribe("dragmove",this.CI,this);this.Bj.subscribe("dragend",this.yB,this);this.W(Z,"SEEK_COMPLETE", this.AA);Z.Y("web_fix_fine_scrubbing_false_play")&&this.W(Z,"rootnodemousedown",function(Y){d.kS=Y}); this.B.addEventListener("keydown",function(){}); g.z(this,this.Bj);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.B,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; k4=function(Z){this.value=Z}; tFL=function(Z,I,d){var Y=[];return g.BT(Z,{query:I},function(T){if(!(d!==void 0&&Y.length>=d))return Y.push(T.getValue()),g.w1(T)}).then(function(){return Y})}; f9i=function(Z,I,d){return Z.policy.L?Vh(Z,!0)I&&Z.j=Z&&d[Q[17]]!=0&&(I=(I%d[Q[17]]+d[Q[17]])%d[Q[17]],d[Q[20]](0,1,d[Q[20]](I,1,d[0])[0]));if((Z>>2&15)==3){var Y=I[Q[23]](Q[33],12),T=I[Q[23]](Q[33],Y+1);Y>0&&T>0?(d[Q[1]]=I[Q[40]](0,T),I=I[Q[40]](T+1)):(d[Q[1]]=I,I=Q[9]);var f=[I,d]}if((Z+9&14)==2){Y=64;for(T=[];++Y-T[Q[17]]-32;)switch(Y){case 46:Y=95;default:T[Q[10]](String[Q[31]](Y));case 94:case 95:case 96:break;case 123:Y-=76;case 92:case 93:continue;case 58:Y=44;case 91:}f=T}if((Z-1|21)=Z)if(d= d===void 0?!1:d,yY(57,I),I[Q[1]]!==Q[55])Y=I[Q[22]](),Y[Q[6]](Q[24],Q[0]),f=Y;else{T=I[Q[52]]();Y=new g.gR(T);var P=I[Q[27]](Q[75]),O=decodeURIComponent(I[Q[27]](Q[73])||Q[9])[Q[53]](Q[35]);if(P&&O&&O[Q[17]]>1&&O[1]){T=Y[Q[26]];var a=T[Q[84]](/^[^.]*/,Q[9]);g.rR(Y,(T[Q[23]](Q[67])===0?Q[67]:Q[56])+P+Q[15]+O[1]+a);Y=new g.rF(Y[Q[37]]());Y[Q[6]](Q[76],Q[0]);f=Y}else d?(Y=I[Q[22]](),Y[Q[6]](Q[76],Q[0]),f=Y):(P=Y[Q[26]][Q[4]](Q[57]),Y[Q[26]][Q[4]](Q[8])?(g.rR(Y,Q[77]),T=Y[Q[37]]()):Y[Q[26]][Q[4]](Q[41])? (g.rR(Y,Q[61]),T=Y[Q[37]]()):(Y=A_D(T),Gj(Y)&&(T=Y)),Y=new g.rF(T),Y[Q[6]](Q[70],Q[0]),P&&Y[Q[6]](Q[59],Q[54]),f=Y)}if((Z|2)>=27&&Z-6<47){Y=64;for(T=[];++Y-T[Q[17]]-32;){switch(Y){case 58:Y-=14;case 91:case 92:case 93:continue;case 123:Y=47;case 94:case 95:case 96:continue;case 46:Y=95}T[Q[10]](String[Q[31]](Y))}f=T}return f}; fs=function(Z){var I=Z.S.getRootNode();return Z.S.Y("web_watch_pip")||Z.S.Y("web_shorts_pip")?JN(I):document}; bq$=function(){g.t6(function(){var Z=ND();requestAnimationFrame(function(){setTimeout(function(){Z===ND()&&O7("ftl",void 0,void 0)},0)})})()}; ca=function(Z){this.S7=Z;this.L=!1}; itL=function(Z){Z=Z===void 0?null:Z;return Z!=null&&(Z=Z.thumbnail,Z!=null&&Z.thumbnails!=null&&Z.thumbnails.length!=0&&Z.thumbnails[0].url!=null)?g.Fp(Z.thumbnails[0].url):""}; c0B=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V){I=Ho7(Z,I,d,T,f,O,a,W,e,B,w,V);if(I instanceof C)return I;Z=Hqn(Z,d,f,P,Y,O.Qy,I);return Z instanceof C?Z:Z.je.concat(Z.D4)}; g.b0=function(Z){return Z.L?Z.L.readyState:0}; OAu=function(Z,I,d){var Y;return(Y=Z.L)==null?void 0:Kw(Y,function(){return yx(Z,I)},d,function(T){var f; if(Z.L instanceof g9&&((f=I.YA)==null?0:f.g1))try{var P;(P=Z.cache)==null||xCL(P,yx(Z,I),T,I.YA.UN,Z.j-120)}catch(O){Z.reportError(new kt(24,"ELX:write",O))}})}; bj=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);var d=this.api.Y("html5_enable_audio_quality_setting_feature");pF(this.api,"getUserAudioQualitySetting",function(){return d?I.getUserAudioQualitySetting():2}); pF(this.api,"setUserAudioQualitySetting",function(Y){d&&I.setUserAudioQualitySetting(Y)}); pF(this.api,"hasHqaAudioTrack",function(){return d?I.hasHqaAudioTrack():!1}); pF(this.api,"getAudioQualitySettingState",function(){return d?I.api.qt(4):1}); this.W0=gUD();this.updateEnvironmentData()}; n8=function(Z){var I=F2(Z,!0),d=0;I===4?d=Z.L.getFloat32(Z.pos):I===8&&(d=Z.L.getFloat64(Z.pos));Z.pos+=I;return d}; $fi=function(Z){var I,d;(d=(I=window).onerror)==null||d.call(I,Z.message,"",0,0,Z)}; fvi=function(Z,I){return Z.mJ?I?function(){I().then(function(){Z.flush()})}:function(){Z.flush()}:function(){}}; g.Mc=function(Z){g.p.call(this);this.j=1;this.Z=[];this.N=0;this.L=[];this.D={};this.V=!!Z}; O_=function(Z){return MFL[Z]||"LATENCY_ACTION_UNKNOWN"}; vk=function(Z){Z.mediaElement=Z.U.deviceIsAudioOnly?new g.me(g.vX("AUDIO")):r9.pop()||new g.me(g.vX("VIDEO"));g.z(Z,Z.mediaElement);Z.l5().setMediaElement(Z.mediaElement);try{Z.U.M8?(Z.zc&&Z.events.a4(Z.zc),Z.zc=Z.events.W(Z.mediaElement,"volumechange",Z.Nn5)):(Z.mediaElement.dZ(Z.p6.muted),Z.mediaElement.setVolume(Z.p6.volume/100))}catch(T){Z.Ll("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(T&&typeof T==="object"&&"message"in T&&typeof T.message==="string"&&T.message.replace(/[;:,]/g, "_")));return}g.aL(Z.TE);r09(Z);var I=Z.template,d=Z.mediaElement.gK();I.h9=d;I.L9=!1;I.h9.parentNode||Za(I.VV,I.h9,0);I.tv=new g.Ey(0,0,0,0);ZSB(I);Ii(I);d=I.h9;g.xw(d,"video-stream");g.xw(d,g.dP.MAIN_VIDEO);var Y=I.app.C();Y.by&&d.setAttribute("data-no-fullscreen","true");Y.Y("html5_local_playsinline")?"playsInline"in xQ()&&(d.playsInline=!0):Y.Mt&&(d.setAttribute("webkit-playsinline",""),d.setAttribute("playsinline",""));Y.Ki&&I.h9&&I.W(d,"click",d.play,d);try{Z.mediaElement.activate()}catch(T){Z.Ll("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(T&&typeof T==="object"&&"message"in T&&typeof T.message==="string"&&T.message.replace(/[;:,]/g,"_")))}}; jP=function(Z){var I;!(I=Z.L.info.Pj==="f")&&(I=Z.policy.N)&&(I=Z.N,I=!!I.V&&hp(I.V));if(I)return!0;I=oi(Z);if(!I)return!1;var d=FW(I)&&I.N;return Z.isManifestless&&Z.fS>0?d||I.YS>=Z.fS:d}; IRr=function(Z,I){ys(Z,1,I.audioCodec);ys(Z,2,I.numChannels);ys(Z,3,I.maxBitrateBps);ys(Z,6,I.spatialCapabilityBitmask)}; oIL=function(Z,I,d){var Y,T;return g.h(function(f){if(f.L==1){Y=Vj();if(!Y)return f.return(vV9(Z,I,d));g.ez(f,3);return g.m(f,d5J(Z,I,d,Y),5)}if(f.L!=3)return f.return(f.D);T=g.Bj(f);g.uL(T);Fr=!0;return f.return(vV9(Z,I,d))})}; YY=function(Z){return Z&&Z.thumbnails&&(Z.thumbnails||null).length!=0&&Z.thumbnails[0].url?g.Fp(Z.thumbnails[0].url):""}; zDO=function(Z,I,d,Y){function T(){Z_({writeThenSend:!0},I,d.tier)} I=I===void 0?!1:I;Y=Y===void 0?!1:Y;Z&&(jN=new Z);Z=g.EQ("tvhtml5_logging_max_batch_ads_fork")||g.EQ("tvhtml5_logging_max_batch")||g.EQ("web_logging_max_batch")||100;var f=(0,g.o8)(),P=Ya(I,d.tier),O=P.N;Y&&(P.Z=!0);Y=0;d&&(Y=o1().getSequenceCount(d));Y>=1E3?T():Y>=Z?T3||(T3=f$(function(){T();T3=void 0},0)):f-O>=10&&(nDu(I,d.tier),P.N=f)}; Oo=function(Z){return g.Mm(YUu(),Z)}; jA7=function(){this.L=this.V=this.Z=this.D=this.In=this.j=this.LS=this.X=this.B=this.N=!1}; bwd=function(Z,I,d,Y){var T=I*2,f=d*2;return Z[T]Z.width*Z.height*.2)return{lS:3,Dp:501,errorMessage:"ad("+Q2(d)+") to container("+Q2(Z)+") ratio exceeds limit."};if(d.height>Z.height/3-I)return{lS:3,Dp:501,errorMessage:"ad("+Q2(d)+") covers container("+Q2(Z)+") center."}}; uIn=function(Z,I){var d=Z.L;d=d.L?d.L.Un:null;if(Z.policy.fS&&d)return d.startSecs+d.QI+15;I=Er(Z.loader,I);Z.policy.Yl>0&&(d=((0,g.o8)()-Z.loader.TW)/1E3,I=Math.min(I,Z.policy.Yl+Z.policy.zD*d));I=Z.loader.getCurrentTime()+I;return Z.policy.AT&&(d=mUJ(Z.loader)+Z.policy.AT,d0&&Z.seekTo(0),Z.ma(),Z.load(),OSJ(Z,null));delete Z.Z}; Bq=function(){return g.y1("cobalt")&&g.y1("appletv")}; $G=function(Z,I,d,Y,T,f){var P={format:"RAW"},O={};if(RC(Z)&&Vz()){var a=g.rh("EOM_VISITOR_DATA");a?O["X-Goog-EOM-Visitor-Id"]=a:Y?O["X-Goog-Visitor-Id"]=Y:g.rh("VISITOR_DATA")&&(O["X-Goog-Visitor-Id"]=g.rh("VISITOR_DATA"));d&&(O["X-Goog-PageId"]=d);(Y=I.Ns)&&!tO(I)&&(O["X-Goog-AuthUser"]=Y);T&&(O.Authorization="Bearer "+T);I.Y("enable_datasync_id_header_in_web_vss_pings")&&I.U_&&I.datasyncId&&(O["X-YouTube-DataSync-Id"]=I.datasyncId);if(I.Y("enable_rollout_token_header")){var W,e,B=(W=g.rh("INNERTUBE_CONTEXT"))== null?void 0:(e=W.client)==null?void 0:e.rolloutToken;B&&(O["X-YouTube-Rollout-Token"]=B)}a||O["X-Goog-Visitor-Id"]||T||d||Y?P.withCredentials=!0:I.Y("html5_send_cpn_with_options")&&j89.test(Z)&&(P.withCredentials=!0)}Object.keys(O).length>0&&(P.headers=O);f&&(P.onFinish=f);return Object.keys(P).length>1?P:null}; TX=function(Z,I,d,Y){(Z=Z.L())||Zv("Could not initiate a command router instance.");eN(Z,I,d,Y)}; cG=function(Z,I,d,Y,T,f){f=f===void 0?!1:f;kw.call(this,Z,{K:"img",T:"ytp-ad-image"},"ad-image",I,d,Y,T===void 0?null:T);this.L=f;this.hide()}; AS=function(Z,I,d){for(var Y in d)if(d[Y]==I)return d[Y];return Z}; wP=function(Z,I,d,Y,T){kw.call(this,Z,{K:"div",T:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",I,d,Y,T===void 0?null:T);var f=this;this.L=null;this.Z=new BW(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,["ytp-ad-instream-user-sentiment-like-button"]);g.z(this,this.Z);this.Z.i5(this.element);this.D=new BW(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,["ytp-ad-instream-user-sentiment-dislike-button"]);g.z(this,this.D);this.D.i5(this.element); this.N=new g.nt(this,400,!1,500,function(){return f.hide()}); g.z(this,this.N);this.hide()}; T0$=function(Z){if(Z.e3()){if(!e1(Z,408125543))return!1;F2(Z,!0)}return!0}; AH=function(){}; pK=function(Z){g.p.call(this);this.Z=Z;this.Gz=!0;this.fM=new Map;this.L=new Map;this.D=new Map}; mW=function(Z){this.value=Z}; v4L=function(Z){return Array.isArray(Z)?Z[0]instanceof AX?Z:[aR7,Z]:[Z,void 0]}; Bvl=function(Z,I){ys(Z,1,I.defaultPolicy);ys(Z,2,I.smooth);ys(Z,3,I.visibility);ys(Z,4,I.AM);ys(Z,5,I.performance);ys(Z,6,I.speed)}; WaJ=function(Z){for(var I in Z.L)SI(Z.L[I].info.mimeType)||X89(Z.L[I].index,Infinity)}; trd=function(Z,I){for(var d=0;df.width)I-=f.width,I-=Vx(Z),Y++;else break;return Y===d?d-1:Y}; ebD=function(Z,I){if(Z.vU("getState")==="loading")return new g.qv(-1,-1);I=Z.vU(I);if(!I)return new g.qv(-1,-1);Z=parseInt(I.width,10);I=parseInt(I.height,10);return isNaN(Z)||isNaN(I)?new g.qv(-1,-1):new g.qv(Z,I)}; BKd=function(Z,I){I=I===void 0?{}:I;var d,Y;return g.h(function(T){if(T.L==1)return g.m(T,g.k_(),2);if(T.L!=3){d=T.D;if(!d)return T.return();QO(Z);Y=pql(Z);return g.m(T,Jk(Y.actualName,I),3)}return g.m(T,VT(Y.actualName,d),0)})}; JR=function(Z){var I=Z.getStatus();a:switch(I){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var d=!0;break a;default:d=!1}if(!d){if(I=I===0)Z=g.gB(String(Z.X))[1]||null,!Z&&g.iN.self&&g.iN.self.location&&(Z=g.iN.self.location.protocol.slice(0,-1)),I=!wAE.test(Z?Z.toLowerCase():"");d=I}return d}; VA7=function(Z,I,d){I=g.Ft(I,function(Y){return new wh$(Y,d,Y.id)}); Z.S.Rn("onAdUxUpdate",I)}; NS=function(Z){this.value=Z}; F8=function(Z,I){var d=Z.search(QA),Y=PQ(Z,0,I,d);if(Y<0)return null;var T=Z.indexOf("&",Y);if(T<0||T>d)T=d;Y+=I.length+1;return Ir(Z.slice(Y,T!==-1?T:0))}; NKL=function(Z){var I=bq()&&sh()>=67&&!Z.api.C().V;Z=Z.api.C().disableOrganicUi;return!g.y1("tizen")&&!Wk&&!I&&!Z}; g.rh=function(Z,I){return Z in Gv?Gv[Z]:I}; swE=function(){var Z=g.iN.__SAPISID||g.iN.__APISID||g.iN.__3PSAPISID||g.iN.__1PSAPISID||g.iN.__OVERRIDE_SID;if(Z)return!0;typeof document!=="undefined"&&(Z=new vC(document),Z=Z.get("SAPISID")||Z.get("APISID")||Z.get("__Secure-3PAPISID")||Z.get("__Secure-1PAPISID"));return!!Z}; lq=function(){return g.gZ("ytglobal.idbToken_")||void 0}; xR7=function(Z,I,d){var Y=I.XS;I.XS=d;AG(Z,I)&&(d=Z.app.l5(),Y.HO===Z.Z&&nv(Z),d.removeCueRange(Y.HO),d.addCueRange(I.XS.HO))}; Faa=function(Z,I){function d(A){if(!Z.OZ()){A=A?A.status:-1;var F=0,J=((0,g.o8)()-e).toFixed();J=T.Y("html5_use_network_error_code_enums")?{backend:"gvi",rc:A,rt:J}:{backend:"gvi",rc:""+A,rt:J};var v="manifest.net.connect";A===429?(v="auth",F=2):A>200&&(v="manifest.net.badstatus",A===400&&(F=2));return Promise.reject(new g.dj(v,J,F))}} function Y(A){return d(A.xhr)} var T,f,P,O,a,W,e,B,w,V,N,q;return g.h(function(A){if(A.L==1){Z.fetchType="gvi";T=Z.C();var F={};Z.Tc&&(F.ytrext=Z.Tc);(O=g.xG(F)?void 0:F)?(f={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:O},P=U4(I,{action_display_post:1})):(f={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},P=I);a={};T.sendVisitorIdHeader&&Z.visitorData&&(a["X-Goog-Visitor-Id"]=Z.visitorData);(W=bo(T.experiments,"debug_sherlog_username"))&&(a["X-Youtube-Sherlog-Username"]=W);Object.keys(a).length> 0&&(f.headers=a);e=(0,g.o8)();return g.m(A,nB(to,P,f).then(void 0,Y),2)}B=A.D;if(!B||!B.responseText)return A.return(d(B));Z.loading=!1;w=aW(B.responseText);g.eA(Z,w,!0);if(Z.errorCode)return V={ec:Z.errorCode,ed:Z.errorDetail,es:Z.aU||""},A.return(Promise.reject(new g.dj("auth",V,2)));if(!Z.loading&&!BA(Z))return N=Z.isAd()?"auth":"manifest.net.retryexhausted",q=Z.isAd()?2:1,A.return(Promise.reject(new g.dj(N,{successButUnplayable:"1"},q)));g.v6(A)})}; g.dj=function(Z,I,d){I=I===void 0?{}:I;this.errorCode=Z;this.details=I;this.severity=d===void 0?0:d}; sAr=function(Z,I){ys(Z,1,I.videoCodec);ys(Z,3,I.maxHeight);ys(Z,4,I.maxWidth);ys(Z,11,I.maxFramerate);ys(Z,12,I.maxBitrateBps);Gd(Z,15,I.is10BitSupported)}; C5=function(Z){return!Z.oldState.isPlaying()&&Z.state.isPlaying()}; hv=function(Z,I,d,Y,T,f,P,O){g2.call(this,Z,I,d,Y);this.Q5=T;this.pM=f;this.j=O;this.Gz=!0;this.N=null;this.B=dB(d.clientMetadata,"metadata_type_linked_player_bytes_layout_id");pR(this.pM(),this);Z=dB(d.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,Z,d.layoutId)}; z8=function(Z,I){this.version=Z;this.args=I}; mX=function(Z,I){for(;Z;Z=Z.parentNode){var d=Z.getElementsByTagName(I);if(d.length>0)return d[0]}return null}; nI$=function(Z){Ab(Z,"impression")&&!Ab(Z,"seek")&&Z.vO("audio_audible")}; mwD=function(Z){if(!Z.D||!Z.L){if(!lq()){var I=g.Pk("scheduleGetConfigs");$6(I)}Z.N||(Z.N=g.Kl.AB(function(){return g.h(function(d){switch(d.L){case 1:return g.ez(d,2),g.m(d,$d9(Z),4);case 4:g.gE(d,3);break;case 2:g.Bj(d);case 3:return g.ez(d,5),g.m(d,hbu(Z),7);case 7:g.gE(d,6);break;case 5:g.Bj(d);case 6:Z.N&&(Z.N=0),g.v6(d)}})},100))}}; qS=function(Z,I,d,Y,T,f,P){f=f===void 0?!1:f;P=P===void 0?!1:P;kw.call(this,Z,{K:"span",T:"ytp-ad-simple-ad-badge"},"simple-ad-badge",I,d,Y);this.Z=T;this.L=this.KS("ytp-ad-simple-ad-badge");(this.D=f)&&this.L.classList.add("ytp-ad-simple-ad-badge--clean-player");P&&this.L.classList.add("ytp-ad-simple-ad-badge--survey");this.hide()}; g.V87=function(Z,I,d){Z.remove(I);d.length>0&&(Z.Z=null,Z.L.set(kP(Z,I),g.FZ(d)),Z.D=Z.D+d.length)}; m5u=function(Z,I,d){var Y;return g.h(function(T){(0,g.o8)();if(Z.L.L)return T.return(yYr(Z,I,d));Y=vna(Z.L);return T.return(Y.decrypt(I,d))})}; dB=function(Z,I){Z=Z.L.get(I);if(Z!==void 0)return Z.get()}; qUL=function(Z){if(Z.policy.gB&&Z.policy.j9)for(var I=g.t(Z.policy.gB),d=I.next(),Y={};!d.done;Y={j2:void 0,Jy:void 0},d=I.next())if(d=g.Wt(d.value),Y.j2=+d.clen,Y.Jy=+d.csz,Y.j2>0&&Y.Jy>0&&Z.policy.N===d.docid&&Z.L.info.id===d.fmtid&&Z.L.info.lastModified===+d.lmt)return Z={},Z.clen=Y.j2,Z.csz=Y.Jy,Z.ck=d.ck,Z.civ=d.civ,Z}; Av=function(Z,I){g.dx.call(this);this.nS=Z;this.startSeconds=0;this.shuffle=!1;this.index=0;this.title="";this.length=0;this.items=[];this.loaded=!1;this.sessionData=this.L=null;this.dislikes=this.likes=this.views=0;this.order=[];this.author="";this.X={};this.D=0;if(Z=I.session_data)this.sessionData=UE(Z,"&");this.index=Math.max(0,Number(I.index)||0);this.loop=!!I.loop;this.startSeconds=Number(I.startSeconds)||0;this.title=I.playlist_title||"";this.description=I.playlist_description||"";this.author= I.author||I.playlist_author||"";I.video_id&&(this.items[this.index]=I);if(Z=I.api)typeof Z==="string"&&Z.length===16?I.list="PL"+Z:I.playlist=Z;if(Z=I.list)switch(I.listType){case "user_uploads":this.listId=new Ss("UU","PLAYER_"+Z);break;default:var d=I.playlist_length;d&&(this.length=Number(d)||0);this.listId=SN(Z);if(Z=I.video)this.items=Z.slice(0),this.loaded=!0}else if(I.playlist){Z=I.playlist.toString().split(",");this.index>0&&(this.items=[]);Z=g.t(Z);for(d=Z.next();!d.done;d=Z.next())(d=d.value)&& this.items.push({video_id:d});this.length=this.items.length;if(Z=I.video)this.items=Z.slice(0),this.loaded=!0}this.setShuffle(!!I.shuffle);if(Z=I.suggestedQuality)this.quality=Z;this.X=WK(I,"playlist_");this.Z=(I=I.thumbnail_ids)?I.split(","):[]}; SUd=function(Z){g.t6(function(){$L(Z)&&O7("aa",void 0,Z);FvL(Z);It(Z)})()}; Da=function(Z){fq(Z)&&Z.H4();AWn(Z)&&(Z$(Z,"captions",!0),Z$(Z,"endscreen"),Z.Ed(),Z$(Z,"creatorendscreen",!0))}; D5$=function(Z,I,d){d=d===void 0?{}:d;Z=y0n(lz(uz),I,d,Z);return SO9(Z)}; RbL=function(Z,I){var d=JWE(Z,I);d||Zv("Expected subLRA found by layout ID",Z.slot,Z.layout,{layoutId:I});Z.L={Zy:d};d?d.startRendering(d.Xm()):I===Z.D&&Zv("Failed to find rendering adapter for survey media layout",Z.slot,Z.layout,{surveyMediaLayoutId:I})}; LaL=function(Z){return{startTicks:wd(Z,1),N5:wd(Z,2),timescale:wd(Z,3)}}; FK=function(Z){var I;(I=Z.V)==null||I.dispose();Z.V=null}; Jv=function(Z){Z.L&&Z.X===-1&&(Z.X=Z.L.subscribe("h",Z.df,Z),Z.Tm=Z.L.subscribe("g",Z.dP,Z),Z.df())}; yWa=function(Z,I){var d=g.gZ("ytDebugData.callbacks");d||(d={},g.zb("ytDebugData.callbacks",d));if(g.x9("web_dd_iu")||U5O.includes(Z))d[Z]=I}; vIB=function(Z){var I=g.FR(Z,"Content-Type");if(!I)return null;I=I.toLowerCase();return I.startsWith("application/json")?I.startsWith("application/json+protobuf")?new uM:new Vy:I.startsWith("application/x-protobuf")?(Z=g.FR(Z,"Content-Transfer-Encoding"))?Z.toLowerCase()=="base64"?new Ha:null:new Hk:null}; lRd=function(){var Z=["metadata_type_action_companion_ad_renderer"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; Ri=function(Z,I){var d=Z.D[I];d&&d.forEach(function(Y){try{Y()}catch(T){}}); (d=Z.L[I])&&d.forEach(function(Y){Y()}); Z.L[I]=[]}; u_l=function(){var Z=Z===void 0?g.iN:Z;return(Z=Z.performance)&&Z.now&&Z.timing?Math.floor(Z.now()+Z.timing.navigationStart):g.QY()}; CZ=function(Z){this.S7=Z}; Wi=function(Z,I){tF("_start",Z,I)}; z_=function(){var Z=window,I=Z.MSMediaKeys;LB()&&!I&&(I=Z.WebKitMediaKeys);return I&&I.isTypeSupported?I:null}; Uh=function(Z,I){I.L>=2&&(Z.slot_pos=I.adPodIndex);Z.autoplay="1"}; hD=function(Z,I,d,Y,T,f,P,O,a,W,e,B){Y=Y===void 0?"":Y;this.type=Z;this.L=I;this.range=d;this.source=Y;this.UM=e;this.clipId=B===void 0?"":B;this.In=[];this.V="";this.YS=-1;this.LS=0;this.V=Y;this.YS=T>=0?T:-1;this.startTime=f||0;this.duration=P||0;this.D=O||0;this.Z=a>=0?a:this.range?this.range.length:NaN;this.N=this.range?this.D+this.Z===this.range.length:W===void 0?!!this.Z:W;this.range?(this.B=this.startTime+this.duration*this.D/this.range.length,this.X=this.duration*this.Z/this.range.length, this.j=this.B+this.X):I2O(this)}; JH=function(){}; kXO=function(Z){var I=GX$,d=DZ();if(!d)return 0;var Y=d.subscribe(I.toString(),function(T,f){var P=g.gZ("ytPubsub2Pubsub2SkipSubKey");P&&P==Y||(P=function(){if(n_[Y])try{if(f&&I instanceof y2&&I!=T)try{var O=I.L,a=f;if(!a.args||!a.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!O.Yh){var W=new O;O.Yh=W.version}var e=O.Yh}catch(B){}if(!e||a.version!=e)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{f=Reflect.construct(O, g.FZ(a.args))}catch(B){throw B.message="yt.pubsub2.Data.deserialize(): "+B.message,B;}}catch(B){throw B.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+I.toString()+": "+B.message,B;}Z.call(window,f)}catch(B){g.eW(B)}},zbD[I.toString()]?g.w0()?g.Kl.AB(P):g.lo(P,0):P())}); n_[Y]=!0;vW[I.toString()]||(vW[I.toString()]=[]);vW[I.toString()].push(Y);return Y}; XK9=function(Z){var I;Z=g.y((I=Z.fulfillmentContent)==null?void 0:I.fulfilledLayout,eS);var d;return Z&&((d=Z.adLayoutMetadata)==null?void 0:d.layoutType)==="LAYOUT_TYPE_PANEL_QR_CODE"&&Z.layoutExitNormalTriggers===void 0}; uD=function(Z,I){Z.lQ.has(I)&&(Nx?Z.lQ.get(I).JK.clear():Z.lQ.get(I).Hb=new OA,lD(Z,I),Z.D=!0)}; XAa=function(Z){var I=Math,d=I.round,Y=Math.min((0,g.o8)()-Z.Z,Z.D);I=d.call(I,(Z.D-Y)/1E3);Z.updateValue("duration",l4({seconds:I}));I<=0&&Z.L?Z.stopTimer():Z.L&&Z.L.start()}; tAd=function(Z){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=Z(this.triggerType)}; g.Me=function(Z){return Z.containerType===1}; $5D=function(Z,I){I=(I.QI+1)*1E3;var d=void 0;Z=g.t(Z.fM.values());for(var Y=Z.next();!Y.done;Y=Z.next()){var T=Y.value;Y=T.trigger;T=T.slot;Y instanceof G3&&Y.breakDurationMs<=I&&(!d||Y.breakDurationMs>d.trigger.breakDurationMs)&&(d={slot:T,trigger:Y})}return d}; eB=function(Z){return Z.DN&&Z.getVideoData().mutedAutoplay}; z3=function(Z,I,d,Y,T,f,P,O,a,W,e,B){g2.call(this,f,Z,I,T);this.Q5=d;this.N=P;this.S7=O;this.jK=a;this.Ms=W;this.j=e;this.B=B;this.EZ=XQL(I,d)}; g.ZB=function(Z,I){R0E.apply(null,[5,Z instanceof g.qj?Z.tag:Z,I].concat(g.c(g.vj.apply(2,arguments))))}; YE=function(){var Z=g.gZ("_lact",window);return Z==null?-1:Math.max(Date.now()-Z,0)}; pAl=function(Z){Z.L&&Z.L.listen("click",Z.Tn,Z);g.vP(Z.X,"click",function(){return Z.Tn()})}; ytn=function(Z,I){var d=wsi();if(d){var Y=d.coldConfigData,T=d.coldHashData;d=d.hotHashData;if(Z){var f;I=(f=yF(Z,cD,62))!=null?f:new cD;Y=Kr(I,1,Y);Kr(Y,3,T).Jq(d);P6(Z,cD,62,I)}else I&&(I.client.configInfo=I.client.configInfo||{},Y&&(I.client.configInfo.coldConfigData=Y),T&&(I.client.configInfo.coldHashData=T),d&&(I.client.configInfo.hotHashData=d))}}; x5D=function(Z,I,d,Y,T){this.callback=Z;this.slot=I;this.layout=d;this.Q5=Y;this.PJ=T;Z=dB(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,Z,d.layoutId)}; kY=function(Z,I,d,Y,T,f){J_.call(this,Z,{K:"div",T:"ytp-ad-preview-slot"},"ad-preview",I,d,Y,T);var P=this;this.on=-1;this.N=this.api.C().experiments.CS("enable_modern_skip_button_on_web");this.D=new g.m7({K:"span",T:"ytp-ad-preview-container"});this.N&&this.D.element.classList.add("ytp-ad-preview-container-detached");g.z(this,this.D);this.Z=this.N?new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,"ytp-ad-preview-text-modern"):new cP(this.api,this.layoutId,this.interactionLoggingClientData, this.Hj,"ytp-ad-preview-text");g.z(this,this.Z);this.Z.i5(this.D.element);this.fS=this.N?new g.m7({K:"span",T:"ytp-ad-preview-image-modern"}):new g.m7({K:"span",T:"ytp-ad-preview-image"});g.z(this,this.fS);this.B=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj);g.z(this,this.B);this.B.i5(this.fS.element);this.fS.i5(this.D.element);this.D.i5(this.element);this.kS=new g.nt(this.D,400,!1,100,function(){return P.hide()}); g.z(this,this.kS);this.mJ=0;this.w4=!1;this.d4=f;this.hide()}; Oy=function(Z){var I=d9();Z=I?I.createScriptURL(Z):Z;return new tg(Z)}; X8=function(Z,I){Z.element.classList.toggle("ytp-volume-popover-hovering",I);Z.isVisible=I;(Z=Z.element.closest(".ytp-chrome-bottom"))&&Z.classList.toggle("ytp-volume-popover-showing",I)}; Ka9=function(Z){var I=0;Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())I+=d.value.range.length;return I}; eN=function(Z,I,d,Y){Z.OZ();I.loggingUrls&&Coi(Z,"loggingUrls",I.loggingUrls,d,Y);I=g.t(Object.entries(I));for(var T=I.next();!T.done;T=I.next()){var f=g.t(T.value);T=f.next().value;f=f.next().value;T==="openPopupAction"?Z.eJ.get().CK("innertubeCommand",{openPopupAction:f}):T==="confirmDialogEndpoint"?Z.eJ.get().CK("innertubeCommand",{confirmDialogEndpoint:f}):EIJ.hasOwnProperty(T)||Coi(Z,T,f,d,Y)}}; qLJ=function(Z,I,d,Y){var T=(Y=Y===void 0?!1:Y)?16:8;Y=ug({cttAuthInfo:GY(I)||void 0,endOfSequence:Y},I);d={csn:I,ve:d.getAsJson(),eventType:T};I==="UNDEFINED_CSN"?XW("visualElementHidden",Y,d):Z?TG("visualElementHidden",d,Z,Y):g.g6("visualElementHidden",d,Y)}; tv=function(Z,I){Z.add(I==null||isNaN(I)?0:I+1)}; $Y=function(){}; ZH=function(Z,I){Z.element.setAttribute("aria-haspopup",String(I))}; bS7=function(Z,I,d,Y){var T=pB(I,2)*1E3;if(T<=0)throw new kt(31,"TTM:Invalid");if(A0(I,4))return new xY(Z.logger,A0(I,4),T);if(!pB(I,3))return new sB(Z.logger,mU(qR(I,1)),T);if(!Y)throw new kt(4,"PMD:Undefined");Y=Y(mU(qR(I,1)));if(!(Y instanceof Function))throw new kt(16,"APF:Failed");Z.j=Math.floor((Date.now()+T)/1E3);Z=new g9(Z.logger,Y,pB(I,3),T);Z.addOnDisposeCallback(function(){return void d.resolve()}); return Z}; YtD=function(Z,I){Z=Z.api.getAvailableAudioTracks();Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())if(d=d.value,d.getLanguageInfo().getId()===I)return d;return null}; KB=function(Z,I,d){I=Math.max(I,Z.D.L);Z.V.vJ(1,d/I)}; CB=function(Z,I,d){this.L=Z;this.Z=!1;I=this.L.ao(I);this.D=new z5(Z,I);this.L.free(I.byteOffset);this.N=this.L.ao(d)}; Eh=function(){Ni.instance||(Ni.instance=new Ni);return Ni.instance}; tI=function(Z,I,d,Y,T,f){g.p.call(this);var P=this;this.j=Z;this.sP=I;this.S7=d;this.Q5=Y;this.rB=f;this.L=null;this.N=!1;this.Gz=!0;this.fM=new Map;I.get().addListener(this);this.addOnDisposeCallback(function(){I.OZ()||I.get().removeListener(P)}); T.get().addListener(this);this.addOnDisposeCallback(function(){T.OZ()||T.get().removeListener(P)})}; cWu=function(Z){var I;return(((I=Yk(Z))==null?void 0:I.progressCommands)||[]).findIndex(function(d){return!!g.y(d==null?void 0:d.command,HSd)})!==-1}; gI9=function(Z){if(!Z||!Z.adPlacements&&!Z.adSlots)return!1;for(var I=g.t(Z.adPlacements||[]),d=I.next();!d.done;d=I.next())if(d=d.value)if(d=d.adPlacementRenderer,d!=null&&(d.config&&d.config.adPlacementConfig&&d.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;Z=g.t(Z.adSlots||[]);for(I=Z.next();!I.done;I=Z.next()){var Y=d=void 0;if(((d=g.y(I.value,s1))==null?void 0:(Y=d.adSlotMetadata)==null?void 0:Y.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; S1a=function(Z){var I=new g.m7({K:"div",zm:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],G:[{K:"div",T:"ytp-ad-overlay-ad-info-button-container"},{K:"div",T:"ytp-ad-overlay-close-container",G:[{K:"button",T:"ytp-ad-overlay-close-button",G:[bD(HW)]}]},{K:"div",T:"ytp-ad-overlay-text-image",G:[{K:"img",J:{src:"{{imageUrl}}"}}]},{K:"div",T:"ytp-ad-overlay-title",Z1:"{{title}}"},{K:"div",T:"ytp-ad-overlay-desc",Z1:"{{description}}"},{K:"div",zm:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], Z1:"{{displayUrl}}"}]});Z.W(I.KS("ytp-ad-overlay-title"),"click",function(d){io(Z,I.element,d)}); Z.W(I.KS("ytp-ad-overlay-link"),"click",function(d){io(Z,I.element,d)}); Z.W(I.KS("ytp-ad-overlay-close-container"),"click",Z.Go);Z.W(I.KS("ytp-ad-overlay-text-image"),"click",Z.bj4);I.hide();return I}; MAa=function(){var Z=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_PANEL"]}}; cW=function(Z,I,d,Y,T){var f=(I=Z.L?Z.D[I]:Z.j[I])&&I.quality,P=I&&I.qualityLabel;P=P?P:"Auto";Y&&(P="("+P);Z=tRB(Z,P,f||"",T);Y&&Z.G.push(")");(Y=(Y=I&&I.paygatedQualityDetails)&&Y.paygatedIndicatorText)&&d&&Z.G.push({K:"div",T:"ytp-premium-label",Z1:Y});return Z}; xju=function(Z,I){K$u(Z.L,I,function(){return{c_j:0,Mb:void 0,Gd:-1,HQ:-1,HZ:-1,yu:-1,ll:-1,qc:-1,p9:-1,Ec:-1,pA:-1,position:void 0,vZ:void 0,vQ:[]}}); Z.L[I]=rW7(Z)}; gP=function(Z,I){g.mv.call(this);this.Ns=Z;this.j=I;this.B=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.In=new Headers;this.D=null;this.kS="GET";this.LS="";this.L=!1;this.V=this.Z=this.N=null;this.X=new AbortController}; g.Q4=function(Z,I,d){d=d===void 0?0:d;Z=Z.K_(I);JSON.stringify(Z);return Z===void 0?d:Number(Z)}; ZXn=function(Z){return new hD(Z.type,Z.L,Z.range,"getEmptyStubBefore"+Z.V,Z.YS,Z.startTime,0,Z.D,0)}; I47=function(Z){this.Gm=bp(Z,500)}; pX=function(Z){var I;return!((I=fM(Z))==null||!I.isLocked)}; OUn=function(Z,I){Xf(Z.L);var d=Z.L.N;if(d)return tn(Z,"return"in d?d["return"]:function(Y){return{value:Y,done:!0}},I,Z.L.return); Z.L.return(I);return $E(Z)}; MS=function(Z){return Z.tagName=="A"&&Z.hasAttribute("href")||Z.tagName=="INPUT"||Z.tagName=="TEXTAREA"||Z.tagName=="SELECT"||Z.tagName=="BUTTON"?!Z.disabled&&(!Z.hasAttribute("tabindex")||hFu(Z)):Z.hasAttribute("tabindex")&&hFu(Z)}; rP=function(Z){return Z=="\r"||Z=="\n"||Z==" "||Z=="\t"}; g.ZC=function(Z){g.k.call(this,{K:"div",G:[{K:"div",T:"ytp-bezel-text-wrapper",G:[{K:"div",T:"ytp-bezel-text",Z1:"{{title}}"}]},{K:"div",T:"ytp-bezel",J:{role:"status","aria-label":"{{label}}"},G:[{K:"div",T:"ytp-bezel-icon",Z1:"{{icon}}"}]}]});this.S=Z;this.D=new g.uX(this.show,10,this);Z=this.S.Y("delhi_modern_web_player")?1E3:500;this.L=new g.uX(this.hide,Z,this);g.z(this,this.D);g.z(this,this.L);this.hide()}; IQr=function(Z,I){try{return globalThis.sessionStorage.setItem(Z,I),!0}catch(d){return!1}}; YEu=function(Z){return Z.match(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})\.(\d{3})$/)?Z+"Z":Z}; q0=function(Z){return!!Z.JV||Z.zV}; g.EL=function(){this.segments=[];this.L=null;this.D=!0;this.Z=""}; Ui=function(Z,I,d,Y){this.top=Z;this.right=I;this.bottom=d;this.left=Y}; dmn=function(Z){Z=String(Z);return"0000000".slice(Z.length)+Z}; o3B=function(Z){var I,d,Y=(I=Z.L)==null?void 0:(d=I.bannerData)==null?void 0:d.itemData;if(Y==null?0:Y.priceReplacementText)return Y==null?void 0:Y.priceReplacementText;if((Y==null?0:Y.promotionText)&&Z.S.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var T;return(Y==null?void 0:Y.price)+" "+(Y==null?void 0:(T=Y.promotionText)==null?void 0:T.content)}var f,P;if(Y==null?0:(f=Y.dealsData)==null?0:(P=f.sales)==null?0:P.originalPrice){var O,a;return Y==null?void 0:(O=Y.dealsData)== null?void 0:(a=O.sales)==null?void 0:a.salesPriceAccessibilityLabel}var W,e;if(Y==null?0:(W=Y.dealsData)==null?0:(e=W.priceDrop)==null?0:e.referencePrice){var B,w;return(Y==null?void 0:Y.price)+" "+(Y==null?void 0:(B=Y.dealsData)==null?void 0:(w=B.priceDrop)==null?void 0:w.referencePrice)}return Y==null?void 0:Y.price}; fO=function(Z,I,d){if(d&&d!==Z.slotType)return!1;I=g.t(I);for(d=I.next();!d.done;d=I.next())if(!ZL(Z.clientMetadata,d.value))return!1;return!0}; Ig=function(Z,I,d){if(n9(Z.params.Lw.Ms.get(),!0)){var Y=d.flush,T={};oQ9(Z,I,(T.cts=d.currentTimeSec,T.f=Y,T))}}; yOO=function(Z,I,d){Z=new d7(Z.L);Z.update(I);Z.update(d);I=XjL(Z);Z.update(Z.B);Z.update(I);I=XjL(Z);Z.reset();return I}; Y_D=function(){this.N=0;this.In=Infinity;this.X=!0;this.D=this.L=2;this.Z=1;this.B=!1;this.j=10;this.kS=!1;this.V=1;this.LS=!1}; TE=function(Z,I,d,Y){Z.policy.D&&Z.Ha(!1,"rollback");if(Z.u5.isManifestless){var T=og(Z.audioTrack,Y,d,I),f=og(Z.videoTrack,Y,d,I);Z.policy.Tx||(f&&jg(Z.u5,Y,!0),T&&jg(Z.u5,Y,!1));f&&(Z.videoTrack.LS=[]);T&&(Z.audioTrack.LS=[]);Z.D1("sdai",{rollbk2_seg:Y,rbt:d.toFixed(3),lt:I.toFixed(3),a:T,v:f});(T||f)&&Z.policy.D&&L8(Z)}}; f49=function(Z,I){if(ju7(Z)){I=TJB(Z,I);Z.L.push(I);var d;(d=Z.Tm)==null||iX7(d,Z.u5.In);Z.In>0&&Z.j7.eA++}}; Quu=function(Z,I){I=I===void 0?!1:I;return xv(K8(Z,PWr),Z,I,"Captions URL")}; NV=function(Z){g.p.call(this);this.logger=Z;this.Z=new g.f2}; ch=function(Z){var I=Number(Z);return I==0&&g.Hw(Z)?NaN:I}; OX9=function(Z){var I=g.aO(Z,0,1937011556);if(!I)return null;I=uC(Z,I.dataOffset+8,1635148593)||uC(Z,I.dataOffset+8,1635135537);if(!I)return null;var d=uC(Z,I.dataOffset+78,1936995172),Y=uC(Z,I.dataOffset+78,1937126244);if(!Y)return null;I=null;if(d)switch(d.skip(4),Js(d)){default:I=0;break;case 1:I=2;break;case 2:I=1;break;case 3:I=255}var T=d=null,f=null;if(Y=uC(Z,Y.dataOffset,1886547818)){var P=uC(Z,Y.dataOffset,1886546020),O=uC(Z,Y.dataOffset,2037673328);if(!O&&(O=uC(Z,Y.dataOffset,1836279920), !O))return null;P&&(P.skip(4),d=G$(P)/65536,f=G$(P)/65536,T=G$(P)/65536);Z=Ni7(O);Z=new DataView(Z.buffer,Z.byteOffset+8,Z.byteLength-8);return new F3B(I,d,f,T,Z)}return null}; PUi=function(Z,I,d){d=d===void 0?null:d;var Y=jLu(typeof Z==="string"?Z:Z.toString()),T=document.getElementById(Y),f=T&&eLn(T),P=T&&!f;f?I&&I():(I&&(f=g.iV(Y,I),I=""+g.Hc(I),a4u[I]=f),P||(T=W6l(Z,Y,function(){eLn(T)||(e1d(T),g.u8(Y),g.lo(function(){wqL(Y)},0))},d)))}; ff=function(Z,I){if(typeof I!=="number"||I<0||I>=Z.length)throw Error();}; BJl=function(Z){this.xhr=Z}; g.jL=function(Z,I,d,Y){I=I!==void 0?I:Z.index;I=Z.items&&I in Z.items?Z.items[Z.order[I]]:null;var T=null;I&&(d&&(I.autoplay="1"),Y&&(I.autonav="1"),T=new g.DX(Z.nS,I),g.z(Z,T),T.Du=!0,T.startSeconds=Z.startSeconds||T.clipStart||0,Z.listId&&(T.playlistId=Z.listId.toString()));return T}; wi9=function(){this.L=10;this.D=Date.now()}; VX9=function(Z){var I=g.gZ("yt.scheduler.instance.addImmediateJob");I?I(Z):Z()}; PN=function(Z,I,d){I=I==null||typeof I==="number"?I:I==="NaN"||I==="Infinity"||I==="-Infinity"?Number(I):void 0;I!=null&&(Kq(Z,d,1),Z=Z.L,d=NJi||(NJi=new DataView(new ArrayBuffer(8))),d.setFloat64(0,+I,!0),FS=d.getUint32(0,!0),n7=d.getUint32(4,!0),HP(Z,FS),HP(Z,n7))}; F6n=function(Z){return QG(Z.iY).concat(QG(Z.t0)).concat(QG(Z.s4)).concat(QG(Z.DO)).concat(QG(Z.zE))}; sud=function(Z){return g.Dh(Z.S.C())?Z.G0:Z.Xr}; Ou=function(Z){this.Gm=bp(Z,4)}; ag=function(Z,I,d,Y,T,f,P,O,a){f=f===void 0?!1:f;P=P===void 0?[]:P;a=a===void 0?!1:a;kw.call(this,Z,{K:"span",zm:["ytp-ad-hover-text-button"].concat(P)},O===void 0?"ad-hover-text-button":O,I,d,Y);this.button=this.D=null;this.X=f;this.B=T;this.Z=a;this.hide()}; Wm7=function(Z){return new Promise(function(I){var d=g.vX("SCRIPT");if(Z){var Y=oQ(Z,6);Y=Y===null||Y===void 0?null:Mx7(Y)}else Y=null;d.textContent=ci(Y);gJ(d);(g.Xr("HEAD")[0]||document.documentElement).appendChild(d);g.r2(d);I()})}; Md=function(Z,I,d,Y,T,f,P){var O="";Z&&(O+=Z+":");d&&(O+="//",I&&(O+=I+"@"),O+=d,Y&&(O+=":"+Y));T&&(O+=T);f&&(O+="?"+f);P&&(O+="#"+P);return O}; g.NI=function(Z){g.dx.call(this);this.loaded=!1;this.player=Z}; CR=function(Z){return!(!Z||!Z[n39])}; w17=function(Z){return bAd(Z,!0)}; h1L=function(Z,I){return I?g.Xe(Z.L,function(d){return d.QJ.YJ==I}):null}; g.R9=function(Z,I,d){var Y=Z.length,T=typeof Z==="string"?Z.split(""):Z;for(--Y;Y>=0;Y--)if(Y in T&&I.call(d,T[Y],Y,Z))return Y;return-1}; eg=function(Z,I,d){Z.OZ();var Y=WN(Z);d?(Z.D|=I,I&1&&Z.In.start(),I&2&&Z.LS.start(),I&2048&&Z.kS.start()):(Z.D&=~I,I&1&&Z.In.stop(),I&2&&Z.LS.stop(),I&2048&&Z.kS.stop(),I&512&&Z.Ns.stop());Z.D&512&&!(Z.D&128)&&g.Zy(Z.Ns,Z.fS);I=WN(Z);Y!==I&&Z.publish("autohideupdate",I)}; d_=function(){return ET("Firefox")||ET("FxiOS")}; g9i=function(Z){return Yr(Z)?jd(Tl(Z)):jd(YK(Z))}; ovl=function(Z){var I=OtE();I.update(Z);return I.rJ().toLowerCase()}; mm$=function(Z,I,d){Z.playback.K6();Z.playback.seekTo(I,d);Z.playback.playVideo()}; bs=function(Z){this.Gm=bp(Z)}; STD=function(Z){function I(d){d.stack&&d.stack.indexOf("player")!==-1&&Z.l5().S1(d)} rg.subscribe("handleError",I);U3.push(I);return function(){rg.unsubscribe("handleError",I);var d=U3.indexOf(I);d!==-1&&U3.splice(d,1)}}; BN=function(Z,I,d,Y,T,f){this.slot=I;this.L=d;this.D=new q_9(Z,I,Y,T,f)}; ud=function(Z){this.value=Z}; iF=function(Z){var I=Z.api.C(),d=Z.api.getVideoData(),Y=g.WQ(I)+d.b5;g.dI(d)&&(Y="https://music.youtube.com"+d.b5);if(!g.Dh(I))return Y;I={};g.WR(Z.api,"addEmbedsConversionTrackingParams",[I]);return g.gq(Y,I)}; w7=function(Z,I){g.ox.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:I,foundObjectStores:Z},sKi.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,w7.prototype)}; S_O=function(Z,I,d){for(var Y=[],T=[],f=0;f0&&Z.api.getPlayerSize().width<=f;Z.api.Y("delhi_modern_web_player")?I=Z.api.getPlayerSize().width<=528?f?56:64:Z.B?f?72:96:f?56:72:Z.B?I=54:g.Dh(T)&& !T.D&&(I=40);Z.Ns=I}}}; hr=function(Z,I,d){Z=Ej(Z,I,d);return Array.isArray(Z)?Z:Ks}; F9=function(Z){Z.UUm=!0;return Z}; KL=function(Z,I,d,Y){return typeof Z.addEventListener==="function"?(Z.addEventListener(I,d,L6a(Y)),!0):!1}; Np=function(Z,I,d){if(Z.beforeContentVideoIdStartedTrigger)Z=Z.beforeContentVideoIdStartedTrigger?new qx(nf,I,Z.id):new C("Not able to create BeforeContentVideoIdStartedTrigger");else{if(Z.layoutIdExitedTrigger){var Y;I=(Y=Z.layoutIdExitedTrigger)!=null&&Y.triggeringLayoutId?new jl(nf,Z.layoutIdExitedTrigger.triggeringLayoutId,Z.id):new C("Not able to create LayoutIdExitedTrigger")}else{if(Z.layoutExitedForReasonTrigger){var T,f;((T=Z.layoutExitedForReasonTrigger)==null?0:T.triggeringLayoutId)&&((f= Z.layoutExitedForReasonTrigger)==null?0:f.layoutExitReason)?(I=UmL(Z.layoutExitedForReasonTrigger.layoutExitReason),Z=I instanceof C?I:new $o(nf,Z.layoutExitedForReasonTrigger.triggeringLayoutId,[I],Z.id)):Z=new C("Not able to create LayoutIdExitedForReasonTrigger")}else{if(Z.onLayoutSelfExitRequestedTrigger){var P;I=(P=Z.onLayoutSelfExitRequestedTrigger)!=null&&P.triggeringLayoutId?new Ws(nf,Z.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,Z.id):new C("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(Z.onNewPlaybackAfterContentVideoIdTrigger)Z= Z.onNewPlaybackAfterContentVideoIdTrigger?new An(nf,I,Z.id):new C("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(Z.skipRequestedTrigger){var O;I=(O=Z.skipRequestedTrigger)!=null&&O.triggeringLayoutId?new eb(nf,Z.skipRequestedTrigger.triggeringLayoutId,Z.id):new C("Not able to create SkipRequestedTrigger")}else if(Z.slotIdEnteredTrigger){var a;I=(a=Z.slotIdEnteredTrigger)!=null&&a.triggeringSlotId?new yc(nf,Z.slotIdEnteredTrigger.triggeringSlotId,Z.id):new C("Not able to create SlotIdEnteredTrigger")}else if(Z.slotIdExitedTrigger){var W; I=(W=Z.slotIdExitedTrigger)!=null&&W.triggeringSlotId?new du(nf,Z.slotIdExitedTrigger.triggeringSlotId,Z.id):new C("Not able to create SkipRequestedTrigger")}else if(Z.surveySubmittedTrigger){var e;I=(e=Z.surveySubmittedTrigger)!=null&&e.triggeringLayoutId?new Bs(nf,Z.surveySubmittedTrigger.triggeringLayoutId,Z.id):new C("Not able to create SurveySubmittedTrigger")}else{if(Z.mediaResumedTrigger)Z=Z.mediaResumedTrigger&&Z.id?new y7i(Z.id):new C("Not able to create MediaResumedTrigger");else{if(Z.closeRequestedTrigger){var B; I=(B=Z.closeRequestedTrigger)!=null&&B.triggeringLayoutId?new h1(nf,Z.closeRequestedTrigger.triggeringLayoutId,Z.id):new C("Not able to create CloseRequestedTrigger")}else if(Z.slotIdScheduledTrigger){var w;I=(w=Z.slotIdScheduledTrigger)!=null&&w.triggeringSlotId?new SR(nf,Z.slotIdScheduledTrigger.triggeringSlotId,Z.id):new C("Not able to create SlotIdScheduledTrigger")}else{if(Z.mediaTimeRangeTrigger){var V;Y=Number((V=Z.mediaTimeRangeTrigger)==null?void 0:V.offsetStartMilliseconds);var N;P=Number((N= Z.mediaTimeRangeTrigger)==null?void 0:N.offsetEndMilliseconds);isFinite(Y)&&isFinite(P)?(N=P,N===-1&&(N=d),d=Y>N?new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Y,offsetEndMs:N},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",N===d&&Y-500<=N):new Tu(Y,N),Z=d instanceof C?d:new mw(nf,I,d,!1,Z.id)):Z=new C("Not able to create MediaTimeRangeTrigger")}else if(Z.contentVideoIdEndedTrigger)Z=Z.contentVideoIdEndedTrigger?new qo(nf,I,!1,Z.id):new C("Not able to create ContentVideoIdEndedTrigger"); else{if(Z.layoutIdEnteredTrigger){var q;I=(q=Z.layoutIdEnteredTrigger)!=null&&q.triggeringLayoutId?new eL(nf,Z.layoutIdEnteredTrigger.triggeringLayoutId,Z.id):new C("Not able to create LayoutIdEnteredTrigger")}else if(Z.timeRelativeToLayoutEnterTrigger){var A;I=(A=Z.timeRelativeToLayoutEnterTrigger)!=null&&A.triggeringLayoutId?new Sg(nf,Number(Z.timeRelativeToLayoutEnterTrigger.durationMs),Z.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,Z.id):new C("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(Z.onDifferentLayoutIdEnteredTrigger){var F; I=(F=Z.onDifferentLayoutIdEnteredTrigger)!=null&&F.triggeringLayoutId&&Z.onDifferentLayoutIdEnteredTrigger.slotType&&Z.onDifferentLayoutIdEnteredTrigger.layoutType?new EM(nf,Z.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,Z.onDifferentLayoutIdEnteredTrigger.slotType,Z.onDifferentLayoutIdEnteredTrigger.layoutType,Z.id):new C("Not able to create CloseRequestedTrigger")}else{if(Z.liveStreamBreakStartedTrigger)Z=Z.liveStreamBreakStartedTrigger&&Z.id?new Ad(nf,Z.id):new C("Not able to create LiveStreamBreakStartedTrigger"); else if(Z.liveStreamBreakEndedTrigger)Z=Z.liveStreamBreakEndedTrigger&&Z.id?new GQ(nf,Z.id):new C("Not able to create LiveStreamBreakEndedTrigger");else{if(Z.liveStreamBreakScheduledDurationMatchedTrigger){var J;I=(J=Z.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&J.breakDurationMs?new G3(Number(Z.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,Z.id):new C("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(Z.liveStreamBreakScheduledDurationNotMatchedTrigger){var v; I=(v=Z.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&v.breakDurationMs?new v3i(Number(Z.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,Z.id):new C("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(Z.newSlotScheduledWithBreakDurationTrigger){var l;I=(l=Z.newSlotScheduledWithBreakDurationTrigger)!=null&&l.breakDurationMs?new l4u(Number(Z.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,Z.id):new C("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else I= Z.prefetchCacheExpiredTrigger?new uzL(nf,Z.id):new C("Not able to convert an AdsControlflowTrigger.");Z=I}I=Z}Z=I}I=Z}Z=I}I=Z}Z=I}I=Z}Z=I}I=Z}Z=I}return Z}; n_u=function(Z,I){Z.status="km";O7("drm_net_s",void 0,Z.videoData.LS);var d=new g.cg(Z.U.v3),Y={context:g.fV(d.config_||g.ql())};Y.drmSystem=GT7[Z.D.flavor];Y.videoId=Z.videoData.videoId;Y.cpn=Z.videoData.clientPlaybackNonce;Y.sessionId=Z.sessionId;Y.licenseRequest=g.Bg(I.message);Y.drmParams=Z.videoData.drmParams;isNaN(Z.cryptoPeriodIndex)||(Y.isKeyRotated=!0,Y.cryptoPeriodIndex=Z.cryptoPeriodIndex);var T,f,P=!!((T=Z.videoData.D)==null?0:(f=T.video)==null?0:f.isHdr());Y.drmVideoFeature=P?"DRM_VIDEO_FEATURE_PREFER_HDR": "DRM_VIDEO_FEATURE_SDR";Z.U.experiments.BO().L.K_(z1l)&&(Y.context=g.tR(Z.videoData));if(Y.context&&Y.context.client){if(T=Z.U.L)Y.context.client.deviceMake=T.cbrand,Y.context.client.deviceModel=T.cmodel,Y.context.client.browserName=T.cbr,Y.context.client.browserVersion=T.cbrver,Y.context.client.osName=T.cos,Y.context.client.osVersion=T.cosver;Z.U.experiments.BO().L.K_(z1l)||(Y.context.user=Y.context.user||{},Z.videoData.j7&&(Y.context.user.credentialTransferTokens=[{token:Z.videoData.j7,scope:"VIDEO"}]), Z.videoData.M8&&(Y.context.user.kidsParent={oauthToken:Z.videoData.M8}));Y.context.request=Y.context.request||{};Y.context.request.mdxEnvironment=Z.videoData.mdxEnvironment||Y.context.request.mdxEnvironment;g.V3(Z.D)&&(Y.fairplayKeyId=g.Bg(kTB(Z.fairplayKeyId)));g.NF(Z.U,g.VO(Z.videoData)).then(function(O){Xii(I,Y,d,O);Z.status="rs"})}else Z.error("drm.net",2,"t.r;ic.0")}; $mr=function(Z,I){Z.timestampOffset!==I&&(Z.timestampOffset=I,Z.policy.Tx&&tX$(Z.u5),Z.Z.X=Z.timestampOffset,Z.t5.R_(Z.timestampOffset),Z.u5.isManifestless&&(Z.u5.timestampOffset=Z.timestampOffset),Z.videoTrack.M6(Z.timestampOffset),Z.audioTrack.M6(Z.timestampOffset))}; K6n=function(Z){var I=hG;if(piO(I,Z)){switch(Z.Nm()){case 0:var d=function(){return null}; case 2:d=function(){return xm9(I,Z.iy)}; break;case 1:d=function(){return tm(I,Z.iy)}}for(var Y=d();Y;Y=d())piO(I,Y)}}; E3l=function(Z,I,d){this.experiments=Z;this.Bj=I;this.fS=d===void 0?!1:d;this.In=!!g.gZ("cast.receiver.platform.canDisplayType");this.X={};this.LS=!1;this.N=new Map;this.V=!0;this.D=this.Z=!1;this.L=new Map;this.kS=0;this.Ns=this.experiments.CS("html5_disable_vp9_encrypted");this.B=this.experiments.CS("html5_enable_encrypted_av1");Z=g.gZ("cast.receiver.platform.getValue");this.j=!this.In&&Z&&Z("max-video-resolution-vpx")||null;CWi(this);this.Z=!!(Bq()&&gL()>=21)}; bXl=function(Z){var I=Z.L7,d=Z.JQ,Y=Z.wD,T=Z.hs;Z.wD=void 0;Z.hs=void 0;Y!==void 0?Y.hs=T:I.lC=T;if(T!==void 0)T.wD=Y;else if(I.Ax=Y,!$X(I))for(Z=I.producers;Z!==void 0;)Z=bXl(Z);return d}; g.f8=function(Z){return Z.Y("html5_local_playsinline")?kD&&!g.xT(602)&&!("playsInline"in xQ()):kD&&!Z.Mt||g.y1("nintendo wiiu")?!0:!1}; A1=function(Z){return{itag:wd(Z,1),lmt:wd(Z,2),xtags:BG(Z,3)}}; g.NC=function(Z){return $nB(Z)()}; g.zm=function(Z){var I={},d;for(d in Z)I[d]=Z[d];return I}; HX9=function(Z,I,d,Y,T){this.L_=Z;this.Q5=I;this.pM=d;this.L=Y;this.Df=T}; c7D=function(Z){this.value=Z}; g3$=function(){return{K:"svg",J:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},G:[{K:"path",J:{d:"M 0 1.43 C 0 .64 .64 0 1.43 0 L 18.56 0 C 19.35 0 20 .64 20 1.43 L 20 18.56 C 20 19.35 19.35 20 18.56 20 L 1.43 20 C .64 20 0 19.35 0 18.56 Z M 0 1.43 ",fill:"#c00"}},{K:"path",J:{d:"M 7.88 11.42 L 7.88 15.71 L 5.37 15.71 L 5.37 3.52 L 10.12 3.52 C 11.04 3.52 11.84 3.69 12.54 4.02 C 13.23 4.36 13.76 4.83 14.14 5.45 C 14.51 6.07 14.70 6.77 14.70 7.56 C 14.70 8.75 14.29 9.69 13.48 10.38 C 12.66 11.07 11.53 11.42 10.08 11.42 Z M 7.88 9.38 L 10.12 9.38 C 10.79 9.38 11.30 9.23 11.64 8.91 C 11.99 8.60 12.17 8.16 12.17 7.57 C 12.17 6.98 11.99 6.5 11.64 6.12 C 11.29 5.76 10.80 5.57 10.18 5.56 L 7.88 5.56 Z M 7.88 9.38 ", fill:"#fff","fill-rule":"nonzero"}}]}}; nB=function(Z,I,d){I.match(MX7);return Z(I,d).then(function(Y){var T=g.r7n(Y.xhr);return T?nB(Z,T,d):Y.xhr})}; gx=function(Z,I,d){Z=new Z.constructor(I);d&&(Z.L=Pt);Z.D=Pt;return Z}; ZPu=function(Z){var I;return(I=Z.layout.Ai)!=null?I:dB(Z.layout.clientMetadata,"metadata_type_sub_layouts")}; Q2=function(Z){return Math.round(Z.width)+"x"+Math.round(Z.height)}; dzi=function(Z,I,d,Y){Z.L&&Zv("Currently active request ongoing for slot. This should never happen",Z.slot);Z.L=I();Z.L.then(function(T){Z.L=null;Y&&Y(T);var f=T.Z2?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",P=Z.D.get(),O=Z.slot.slotId,a=Fo(Z.hZ.get(),{slotId:Z.slot.slotId,slotType:Z.slot.slotType,slotPhysicalPosition:Z.slot.slotPhysicalPosition,r4:Z.slot.r4,slotEntryTrigger:Z.slot.slotEntryTrigger,slotFulfillmentTriggers:Z.slot.slotFulfillmentTriggers,slotExpirationTriggers:Z.slot.slotExpirationTriggers}), W=zi(P.D.get(),f,O),e={layoutId:W,layoutType:f,r4:"core"};T={layoutId:W,layoutType:f,h5:new Map,layoutExitNormalTriggers:[new Ix9(P.L,O)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new zZ(T)]),Tb:a(e)};mMi(Z.callback,Z.slot,T)},function(T){Z.L=null; d&&d();T instanceof ht||ii(Z.callback,Z.slot,new C(T,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; FQB=function(Z){var I="",d=oMn(Z);d.indexOf("//")===0&&(d=Z.U.protocol+":"+d);var Y=d.lastIndexOf("/base.js");Y!==-1&&(I=d.substring(0,Y+1));if(d=Error().stack)if(d=d.match(/\((.*?\/(debug-)?player-.*?):\d+:\d+\)/))d=d[1],d.includes(I)||g.uL(Error("Player module URL mismatch: "+(d+" vs "+I+".")));I=new Ycr(Z.Wj,I);d={};Vbn(I,(d.destroyed=function(){Z.onApiChange()},d)); return I}; jtE=function(Z){return ed(Z)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; q_=function(Z){this.value=Z}; TOJ=function(Z){Z=g.t(Z);for(var I=Z.next();!I.done;I=Z.next())if(g.y(I.value,k1))return!0;return!1}; Sx=function(Z){$w.call(this,Z);var I=this;this.L=[];this.events=new g.De(Z);g.z(this,this.events);pF(Z,"addEmbedsConversionTrackingParams",function(d){I.addEmbedsConversionTrackingParams(d)}); this.events.W(Z,"veClickLogged",function(d){I.api.hasVe(d)&&(d=d.visualElement.getAsJspb(),d=DC(d,2),I.L.push(d))})}; P9=function(Z,I){if(I>268435455){ij(Z,4);for(var d=I&1073741823,Y=0;Y<4;Y++)Z.view.setUint8(Z.pos,d&127|128),d>>=7,Z.pos+=1;I=Math.floor(I/268435456)}for(ij(Z,4);I>127;)Z.view.setUint8(Z.pos,I&127|128),I>>=7,Z.pos+=1;Z.view.setUint8(Z.pos,I);Z.pos+=1}; mw=function(Z,I,d,Y,T){this.f8=I;this.L=d;this.visible=Y;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE";this.triggerId=T||Z(this.triggerType)}; iP7=function(Z,I){if(Z.f0()===0||Z.hasError())return!1;var d=Z.getCurrentTime()>0;return I>=0&&(Z=Z.MJ(),Z.length||!d)?Qb(Z,I):d}; Yf=function(){return"https://play.google.com/log?format=json&hasfast=true"}; fxn=function(Z,I){if(!Z.L["0"]){var d=new Pg("0","fakesb",{video:new cS(0,0,0,void 0,void 0,"auto")});Z.L["0"]=I?new If(new g.rF("http://www.youtube.com/videoplayback"),d,"fake"):new i8(new g.rF("http://www.youtube.com/videoplayback"),d,new j7(0,0),new j7(0,0))}}; To=function(Z,I){P6(Z.L,jq,1,I);NU(I,1)||isO(I);Z.tq||(I=fG(Z),A0(I,5)||Kr(I,5,Z.locale));Z.uach&&(I=fG(Z),yF(I,g5,9)||P6(I,g5,9,Z.uach))}; J1=function(Z,I,d){typeof d==="string"?Z.S.getVideoData(1).x3(I,d):Z.S.getVideoData(1).D1(I,d)}; PEl=function(Z){var I=g.iN.CSSStyleDeclaration;return I&&I.prototype&&I.prototype[Z]||null}; Jp=function(Z,I,d,Y){Z.L.D1("timelineerror",{e:I,cpn:d?d:void 0,videoId:Y?Y:void 0})}; OP9=function(Z,I,d,Y){var T=Bq(),f=(d=T||d&&LB())?["com.youtube.fairplay"]:["com.widevine.alpha"];I&&f.unshift("com.youtube.widevine.l3");T&&Y&&f.unshift("com.youtube.fairplay.sbdl");return d?f:Z?[].concat(g.c(f),g.c(QtB.playready)):[].concat(g.c(QtB.playready),g.c(f))}; An=function(Z,I,d){this.L=I;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=d||Z(this.triggerType)}; Rg=function(Z,I){var d=Gia(Z.Z,I.D);if(Z.L.length>1){d=kv(Z,I.Z,!0);for(var Y=0,T=0;T0&&(Y+=Z.L[T].width,Y+=Vx(Z));d=(Z.L[d].startTime+(I.Z-Y)/Z.L[d].width*((d===Z.L.length-1?Z.Z.L*1E3:Z.L[d+1].startTime)-Z.L[d].startTime))/1E3||0}return d}; e1d=function(Z){Z&&(Z.dataset?Z.dataset[WSd()]="true":pFi(Z))}; Lf=function(Z,I,d){D8.call(this,Z);this.api=Z;this.Hj=I;this.components={};Z=new g.k({K:"div",zm:["video-ads","ytp-ad-module"]});g.z(this,Z);Wk&&g.xw(Z.element,"ytp-ads-tiny-mode");this.N=new si(Z.element);g.z(this,this.N);g.iS(this.api,Z.element,4);$U(d)&&(d=new g.k({K:"div",zm:["ytp-ad-underlay"]}),g.z(this,d),this.D=new si(d.element),g.z(this,this.D),g.iS(this.api,d.element,0));g.z(this,Zon())}; kv=function(Z,I,d){var Y=0;(d===void 0?0:d)&&(I-=$QL(Z,I)*Vx(Z));d=g.t(Z.L);for(var T=d.next();!T.done;T=d.next()){T=T.value;if(I>T.width)I-=T.width;else break;Y++}return Y===Z.L.length?Y-1:Y}; axu=function(Z){var I;return((I=Z.audio)==null?void 0:I.L)===!0}; g.m6J=function(Z){this.nS=Z;this.X=new WZa;this.p8=this.bk=!1;this.VD=2;this.Tm=20971520;this.b5=8388608;this.Bj=120;this.Yf=this.KW=this.IQ=2;this.K0=this.ir=!1;this.Ki=1E3;this.Yl=15;this.zD=1;this.In=1.15;this.Ns=1.05;this.nW=1;this.U_=this.DM=!1;this.L0=6;this.Z=!1;this.v6=100;this.hK=10;this.K2=6;this.Vx=!1;this.Qc=1;this.Ym=this.du=!1;this.MO=2;this.Du=this.P6=this.ZM=!1;this.I0=!0;this.vg=this.Qx=this.sZ=this.kF=!1;this.jA=!0;this.rW=!1;this.N="";this.gB=[];this.xM=this.EU=!1;this.WB=0;this.by= "";this.Wh=this.b1=this.xO=this.hL=this.Mj=this.B=this.LD=this.F1=this.s_=this.L=this.y5=this.fS=this.Kg=this.z0=this.LS=this.hV=this.e5=!1;this.Vf=!0;this.Uv=this.LJ=this.IF=this.X1=this.yD=this.D=this.J5=!1;this.on=!0;this.wz=this.c6=this.kS=this.gb=this.Hk=this.j7=!1;this.Xz=3;this.Uj=this.ZF=this.Tx=this.o4=this.h4=this.DF=this.lI=this.td=!1;this.BS=0;this.sU=this.Zn=this.fD=!1;this.UZ=1;this.hT=this.v1=this.zX=this.j=this.VX=!1;this.JT=g.Q4(this.nS.experiments,"html5_min_readbehind_secs");this.DD= g.Q4(this.nS.experiments,"html5_min_readbehind_cap_secs");this.g5=this.nS.Y("html5_offline_reset_media_stream_on_unresumable_slices");this.pS=NaN;this.ZL=Uu(this,"html5_request_size_min_kb",64)*1024;this.w4=2097152;this.gA=Uu(this,"html5_bypass_contention_secs");this.QO=1048576;this.aE=Uu(this,"html5_repredict_interval_ms",1800);this.q1=Uu(this,"html5_head_miss_secs",5);this.MR=Uu(this,"html5_min_upgrade_health_secs",10);this.ZD=Uu(this,"html5_min_seconds_between_format_selections",8);this.Wz=Uu(this, "html5_max_buffer_health_for_downgrade_secs",15);this.Qi=OC;this.DL=g.Q4(this.nS.experiments,"html5_min_startup_buffered_media_duration_secs");this.AT=g.Q4(this.nS.experiments,"html5_post_interrupt_readahead");this.iG=this.nS.Y("html5_disable_classic_alr");this.tL=g.Q4(this.nS.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.yb=Uu(this,"html5_ssdai_failure_retry_limit",3);this.fW=this.nS.experiments.CS("html5_clone_original_for_fallback_location");this.R4=g.Q4(this.nS.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.xk=g.Q4(this.nS.experiments,"html5_subsegment_readahead_timeout_secs");this.a9=g.Q4(this.nS.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.n0=g.Q4(this.nS.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.k5=g.Q4(this.nS.experiments,"html5_subsegment_readahead_min_load_speed");this.A4=g.Q4(this.nS.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.fI=g.Q4(this.nS.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.v3=Uu(this,"html5_hopeless_secs",15);this.wU=this.nS.Y("html5_restrict_streaming_xhr_on_sqless_requests");this.FR=g.Q4(this.nS.experiments,"html5_max_headm_for_streaming_xhr");this.s1=this.nS.Y("html5_pipeline_manifestless_allow_nonstreaming");this.Pp=this.nS.Y("html5_prefer_server_bwe3");this.KG=this.nS.Y("html5_last_slice_transition");this.Lb=this.nS.Y("html5_store_xhr_headers_readable");this.Ty=g.Q4(this.nS.experiments,"html5_max_drift_per_track_secs");this.C8=this.nS.Y("html5_no_placeholder_rollbacks"); this.Zj=this.nS.Y("html5_subsegment_readahead_enable_mffa");this.SK=this.nS.Y("html5_allow_video_keyframe_without_audio");this.Du=g.RK(this.nS)&&!g.wm()&&this.nS.Y("html5_adjust_media_time_for_non_cobalt_tv");this.lZ=this.nS.Y("html5_enable_vp9_fairplay");this.QT=1048576;this.j9=this.nS.Y("html5_woffle_resume");this.gG=this.nS.Y("html5_abs_buffer_health");this.sR=this.nS.Y("html5_interruption_resets_seeked_time");this.oh=g.Q4(this.nS.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.OO=this.nS.Y("html5_report_captions_ctmp_qoe");this.kA=this.nS.Y("html5_explicitly_dispose_xhr");this.kp=!this.nS.Y("html5_encourage_array_coalescing");this.nS.Y("html5_limit_media_merge_size")?OC?gL()<21?this.u8=786432:this.u8=8388608:this.u8=262144:this.u8=0;this.QW=this.nS.Y("html5_filter_non_efficient_formats_for_safari");this.nS.Y("html5_format_hybridization");this.XR=this.nS.Y("html5_abort_before_separate_init");this.y9=eed();this.mO=this.nS.Y("html5_serialize_server_stitched_ad_request"); this.Nt=this.nS.Y("html5_attach_po_token_to_bandaid");this.aV=g.Q4(this.nS.experiments,"html5_max_redirect_response_length")||8192;this.gf=this.nS.Y("html5_rewrite_timestamps_for_webm");this.M8=this.nS.Y("html5_only_media_duration_for_discontinuities");this.Bt=g.Q4(this.nS.experiments,"html5_resource_bad_status_delay_scaling")||1;this.nS.Y("html5_onesie_live");this.xp=g.Q4(this.nS.experiments,"html5_onesie_live_ttl_secs")||8;this.P1=g.Q4(this.nS.experiments,"html5_attach_num_random_bytes_to_bandaid"); this.oA=this.nS.Y("html5_update_container_type_on_codec_family_change");this.nS.Y("html5_apply_ssap_slice_info_adjustment");this.eK=this.nS.Y("html5_enable_sabr_host_fallback");this.Yy=this.nS.Y("html5_gapless_fallback_on_append_error");this.Qu=this.nS.Y("html5_shorts_stop_request_when_buffer_to_end");this.Hm=this.nS.Y("html5_vod_stop_request_when_buffer_to_end");this.mJ=this.nS.Y("html5_ssdai_use_post_for_media")&&this.nS.Y("gab_return_sabr_ssdai_config");this.ra=this.nS.Y("html5_use_post_for_media"); this.Gv=this.nS.Y("html5_use_live_ump_heartbeat");this.useUmp=this.nS.Y("html5_use_ump");this.CG=this.nS.aE;this.pG=this.nS.Y("html5_reset_primary_stats_on_redirector_failure");this.G7=this.nS.Y("html5_remap_to_original_host_when_redirected");this.NR=this.nS.Y("html5_iterative_seeking_buffered_time");this.kM=this.nS.Y("html5_use_network_error_code_enums");this.S9=this.nS.Y("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.nS.Y("html5_enable_server_driven_request_cancellation"); this.VT=this.nS.Y("html5_enable_sabr_request_timing");this.JW=this.nS.Y("html5_enable_server_format_filter");this.OT=this.nS.Y("html5_enable_lawnmower");this.WS=this.nS.Vy()?g.Q4(this.nS.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.pm=g.Q4(this.nS.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.Bp=this.nS.Y("html5_live_defrag_only_h264_playbacks");this.nG=this.nS.Y("html5_live_defrag_only_h264_formats");this.Io=this.nS.Y("html5_record_now");this.GR=g.Q4(this.nS.experiments, "html5_drm_byterate_soft_cap");this.BK=g.Q4(this.nS.experiments,"html5_drm_live_byterate_soft_cap");this.V=this.nS.Y("html5_sabr_log_request_creation");this.Wb=this.nS.Y("html5_use_buffer_timeline_for_sabr_request_creation");this.En=this.nS.Y("html5_sabr_report_request_cancellation_info");this.Gu=this.nS.Y("html5_spoof_4k");this.RV=Uu(this,"html5_min_media_duration_for_cabr_slice");this.r8=Uu(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.yd=this.nS.Y("html5_remove_defrag_without_frame_level_streaming"); this.n2=this.nS.Y("html5_consume_all_buffered_bytes_one_poll");this.mx=this.nS.Y("html5_disable_urgent_adaptation");this.L2=this.nS.Y("html5_apply_constraints_in_client_for_sabr");this.Ej=this.nS.Y("html5_send_video_playback_ustreamer_config");this.YO=Uu(this,"html5_max_discontinuity_rewrite_count");this.Z6=Uu(this,"html5_fixed_media_duration_for_request");this.Mt=this.nS.Y("html5_apply_fix_for_missing_seg_info_without_logger");this.Qx=this.nS.Y("html5_enable_audio_quality_setting");this.nS.Y("html5_enable_audio_quality_setting_feature"); this.Zu=Uu(this,"html5_sabr_request_limit_per_period");this.GS=Uu(this,"html5_sabr_request_limit_per_period_for_low_latency");this.Ip=Uu(this,"html5_sabr_request_limit_per_period_for_ultra_low_latency");this.M_=this.nS.Y("html5_sabr_dispose_media_objects");this.I6=this.nS.Y("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.TO=this.nS.Y("html5_enable_d6de4");this.nS.Y("html5_high_res_seek_logging");this.q6=this.nS.Y("html5_disable_chunk_synchronization_sabr_seek");this.nS.Y("html5_enable_ssap_multi_audio_format_filtering"); this.Gy=g.Q4(this.nS.experiments,"html5_override_micro_discontinuities_threshold_ms");this.gF=this.nS.Y("html5_byterate_constraints");this.qb=this.nS.Y("html5_refactor_sabr_audio_format_selection_logging");this.uG=this.nS.Y("enable_sabr_snackbar_message");this.nS.Y("html5_reinit_source_buffer_by_new_element");this.UA=this.nS.Y("html5_refactor_sabr_video_format_selection_logging");this.V$=this.nS.Y("html5_log_slice_info_in_sbu");this.Tv=Uu(this,"html5_paced_poll_ms");this.Hp=Uu(this,"html5_paced_poll_min_health_ms"); this.zO=this.nS.Y("html5_disable_sabr_fallback");this.SL=this.nS.Y("html5_track_current_buffered_range_at_sync");this.PQ=g.RK(this.nS)?500:2E3;this.N_=this.nS.Y("html5_sabr_live_timing");this.BZ=this.nS.Y("html5_count_updating_slice_for_buffer_health");this.bZ=this.nS.Y("html5_report_max_buffer_bytes_limit_to_sabr");this.x7=this.nS.Y("html5_sabr_live_audio_early_return_fix");this.E1=g.Q4(this.nS.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.f2=this.nS.Y("html5_cuepoint_identifier_logging"); this.OL=this.nS.Y("html5_new_sabr_ssdai_cuepoint_logic");this.Tc=this.nS.Y("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.Vu=this.nS.Y("html5_skip_client_drm_license_constraint");this.wV=this.nS.Y("html5_ssdai_not_block_on_predict_start");this.e5=this.nS.Y("html5_pseudogapless_shorts_skip_abort_on_transition");this.jb=this.nS.Y("html5_live_metadata_resets_timeout");this.VX=this.nS.Y("html5_sabr_log_invalid_sabr_current_time");this.d4=this.nS.Y("html5_ssdai_new_decoration_logic");this.O$= this.nS.Y("html5_enable_smooth_audio_offset");this.zX=this.nS.Y("html5_ssdai_log_missing_ad_config_reason");this.SG=this.nS.Y("html5_enable_playback_cookie_logging")}; BOD=function(Z){var I=[],d=[];g.TA(Z,function(Y,T){if(!(T in Object.prototype)&&typeof Y!="undefined")switch(Array.isArray(Y)&&(Y=Y.join(",")),Y=[T,"=",Y].join(""),T){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":I.unshift(Y);break;case "req":case "url":case "referrer":case "iframe_loc":d.push(Y);break;default:I.push(Y)}}); return I.concat(d)}; KW$=function(Z,I){var d=Z[I];if(d)return d;if(d=Z.extensions)if(d=d[I]){d=v4L(d);var Y=d[0].RA;if(d=d[1]){var T=h6L(d),f=P8(KA,CA,E7,d).Py;d=Z.qz?R6(f,T):function(P,O,a){return Y(P,O,a,f,T)}}else d=Y; return Z[I]=d}}; wuL=function(Z,I){this.pN=Z;this.Ms=I}; TP=function(Z){this.Gm=bp(Z)}; FZr=function(Z,I,d,Y,T,f){if(!Z.fp)if(g.VnE(Z,d))Z.t9({gdu:"undec",seg:d,itag:T});else if(I=NO9(Z,I,d,Y,f),!(Z.playback.getVideoData().YF()&&(I==null?0:I.oG)))return I}; g.gLO=function(Z){return Z.FR?null:Z.playerResponse&&Z.playerResponse.endscreen&&Z.playerResponse.endscreen.endscreenRenderer||null}; aW=function(Z){Z.charAt(0)==="?"&&(Z=Z.substring(1));return UE(Z,"&")}; stL=function(Z){Z.uH=Date.now();ub(Z,Z.jI);Z.timer.start()}; yG=function(Z,I){return Z==I?!0:Z&&I?Z.x==I.x&&Z.y==I.y:!1}; CG=function(Z,I,d){return Z[I]?Z[I][d]||null:null}; g.nMJ=function(){var Z;return(Z=(Z=g.gZ("yt.aba.att2"))?Z:vN.instance!==void 0?vN.instance.N.bind(vN.instance):null)?Z():Promise.resolve(!1)}; hed=function(Z,I){var d=Wv(Z,function(Y,T){return T.video.fps>32?Math.min(Y,T.video.width):Y},Infinity); d32||Y.video.width=3&&Z.NC>0&&(Y=Z.NC-1,d=f[Y],d===f[++Y]&&d===f[++Y]&&d===f[++Y])){for(T=Z.NC+258;d===f[++Y]&&d===f[++Y]&&d===f[++Y]&&d===f[++Y]&&d===f[++Y]&&d===f[++Y]&&d===f[++Y]&&d===f[++Y]&&YZ.dK&&(Z.kZ=Z.dK)}Z.kZ>=3?(d=ur(Z,1,Z.kZ-3),Z.dK-=Z.kZ,Z.NC+=Z.kZ,Z.kZ=0):(d=ur(Z,0,Z.window[Z.NC]),Z.dK--,Z.NC++);if(d&&(GK(Z,!1),Z.rz.G_===0))return 1}Z.cO=0;return I=== 4?(GK(Z,!0),Z.rz.G_===0?3:4):Z.oa&&(GK(Z,!1),Z.rz.G_===0)?1:2}; g.H7=function(Z,I){if(!Z||!I)return!1;if(Z.contains&&I.nodeType==1)return Z==I||Z.contains(I);if(typeof Z.compareDocumentPosition!="undefined")return Z==I||!!(Z.compareDocumentPosition(I)&16);for(;I&&Z!=I;)I=I.parentNode;return I==Z}; JdB=function(){Dzr||(Dzr=W6(g.rh("WORKER_SERIALIZATION_URL")));return Dzr||void 0}; Ren=function(){var Z=["metadata_type_invideo_overlay_ad_renderer"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; uV=function(Z){return Z.D.every(function(I){return I.hasOwnProperty("offsetMilliseconds")})}; $3L=function(Z,I){Z.__closure__error__context__984382||(Z.__closure__error__context__984382={});Z.__closure__error__context__984382.severity=I}; jn=function(){for(var Z=[],I=g.rh("EXPERIMENTS_FORCED_FLAGS",{}),d=g.t(Object.keys(I)),Y=d.next();!Y.done;Y=d.next())Y=Y.value,Z.push({key:Y,value:String(I[Y])});d=g.rh("EXPERIMENT_FLAGS",{});Y=g.t(Object.keys(d));for(var T=Y.next();!T.done;T=Y.next())T=T.value,T.startsWith("force_")&&I[T]===void 0&&Z.push({key:T,value:String(d[T])});return Z}; g.RK=function(Z){return/^TVHTML5/.test(ed(Z))}; vO9=function(Z){if(Z.O9&&typeof Z.O9=="function")return Z.O9();if(typeof Map!=="undefined"&&Z instanceof Map||typeof Set!=="undefined"&&Z instanceof Set)return Array.from(Z.values());if(typeof Z==="string")return Z.split("");if(g.a8(Z)){for(var I=[],d=Z.length,Y=0;Y65535&&(Z=1);m9("BATCH_CLIENT_COUNTER",Z);return Z}; g.pV=function(Z,I,d){for(var Y=Object.assign({},Z),T=g.t(Object.keys(I)),f=T.next();!f.done;f=T.next()){f=f.value;var P=Z[f],O=I[f];if(O===void 0)delete Y[f];else if(P===void 0)Y[f]=O;else if(Array.isArray(O)&&Array.isArray(P))Y[f]=d?[].concat(g.c(P),g.c(O)):O;else if(!Array.isArray(O)&&g.IB(O)&&!Array.isArray(P)&&g.IB(P))Y[f]=g.pV(P,O,d);else if(typeof O===typeof P)Y[f]=O;else return I=new g.Wj("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:f,a6Z:P,updateValue:O}),g.nl(I), Z}return Y}; sR=function(Z,I){I=I===void 0?NaN:I;var d=g.NC(Z.provider);I=isNaN(I)?d:I;I=Math.ceil(I);var Y=Z.V[Z.X];Z.X+11E3;!(f.length>1)&&f[0].isEmpty()||O||(P.V=sR(Z,T));P.send();Z.In++}},(T-d)*1E3); return Z.N=T}; pu=function(Z,I){return Z.lastIndexOf(I,0)==0}; Xuu=function(Z){Z=Z.getAttribute("aria-label");return Z==null||Z==void 0?"":String(Z)}; nZ=function(Z,I,d){g.p.call(this);this.S=Z;this.V5=I;this.Ms=d;this.listeners=[];this.hx=[];this.L=function(){Zv("Called 'doUnlockPreroll' before it's initialized.")}; I=new oK(this);d=new g.De(this);g.z(this,d);g.z(this,I);I.W(Z,"progresssync",this.MM4);I.W(Z,"presentingplayerstatechange",this.Rx5);I.W(Z,"fullscreentoggled",this.onFullscreenToggled);I.W(Z,"onVolumeChange",this.onVolumeChange);I.W(Z,"minimized",this.jF);I.W(Z,"overlayvisibilitychange",this.PB);I.W(Z,"shortsadswipe",this.GJ);I.W(Z,"resize",this.CM);d.W(Z,g.E2("appad"),this.Cw)}; CV=function(Z,I){var d=g.ft(I),Y=g.yd("Seek to $PROGRESS",{PROGRESS:g.ft(I,!0)});Z.update({ariamin:0,ariamax:Math.floor(Z.api.getDuration()),arianow:Math.floor(I),arianowtext:Y,seekTime:d})}; $z9=function(Z){var I=I===void 0?51:I;var d=[];hn(Z,tnD,6).forEach(function(Y){DC(Y,2)>I&&d.push(DC(Y,1))}); return d}; M0r=function(){if(!KE){KE={};for(var Z="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),I=["+/=","+/","-_=","-_.","-_"],d=0;d<5;d++){var Y=Z.concat(I[d].split(""));puu[d]=Y;for(var T=0;T0?I:null}; o6J=function(Z){try{return(new Blob(Z.split(""))).size}catch(I){return $6(I),null}}; cdL=function(Z,I,d,Y,T){Rj.call(this,"image-companion",Z,I,d,Y,T)}; gen=function(Z){var I,d,Y;return g.h(function(T){if(T.L==1)return g.m(T,Promise.race([Z.L,null]),2);I=T.D;var f=Iw(Z);Z.L=f;(d=I)==null||(Y=d.AZ)==null||Y.dispose();g.v6(T)})}; ysL=function(Z,I){var d,Y;return g.h(function(T){return T.L==1?(d=[],g.m(T,g.Mm(gML,I),2)):T.L!=3?(Y=T.D,g.m(T,g.Xn(Y,["databases"],{OU:!0,mode:"readonly"},function(f){d.length=0;return g.BT(f.objectStore("databases"),{},function(P){Z(P.getValue())&&d.push(P.getValue());return g.w1(P)})}),3)):T.return(d)})}; ww=function(Z,I){I=I===void 0?"":I;return Z.U_?iW(!0):Sr(BC(iW(g.NF(Z,I)),function(d){return iW(!!d)}),function(){return iW(!1)})}; Mnn=function(Z,I){if(I&&Z.N){var d=new Set(["q","feature","mos"]),Y=new Set("autoplay cl len fexp delay el ns adformat".split(" ")),T=new Set(["aqi","autonav","list","ssrt","upt"]);Z.N.ns==="3pp"&&(I.ns="3pp");for(var f=g.t(Object.keys(Z.N)),P=f.next();!P.done;P=f.next())P=P.value,Y.has(P)||d.has(P)||T.has(P)&&!Z.N[P]||(I[P]=Z.N[P])}}; Rg$=function(Z,I,d,Y){if(Z instanceof g.eq)return k8E(Z,I,d,Y),!0;if(Z)try{var T=!!Z.$goog_Thenable}catch(P){T=!1}else T=!1;if(T)return Z.then(I,d,Y),!0;if(g.IB(Z))try{var f=Z.then;if(typeof f==="function")return rdD(Z,f,I,d,Y),!0}catch(P){return d.call(Y,P),!0}return!1}; ZHB=function(){var Z=xQ();return!(!Z.webkitSupportsPresentationMode||typeof Z.webkitSetPresentationMode!=="function")}; IFJ=function(Z){Z.L&&(Z.L.L=[]);g.TA(Z.D,function(I){I.L=[]}); g.TA(Z.Z,function(I){I.L=[]})}; dPL=function(Z,I){Z=g.U7(Z.components,I.id,null);Z==null&&g.uL(Error("Component not found for element id: "+I.id));return Z||null}; oGJ=function(Z,I){var d={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(Z.Y("html5_enable_vp9_fairplay")&&kZ(I))return d.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),d.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[d];vT(I)&&(d.initDataTypes=["keyids","cenc"]);for(var Y=g.t(Object.keys(Z.L[I.flavor])),T=Y.next();!T.done;T=Y.next()){T=T.value;var f=T.indexOf("audio/")===0,P=f?d.audioCapabilities:d.videoCapabilities;I.flavor!== "widevine"||Z.B?P.push({contentType:T}):f?P.push({contentType:T,robustness:"SW_SECURE_CRYPTO"}):(g.h_&&g.y1("windows nt")&&!Z.Y("html5_drm_enable_moho")||P.push({contentType:T,robustness:"HW_SECURE_ALL"}),f=T,Z.nS.B.Z&&T.includes("vp09")&&(f=T+"; experimental=allowed"),P.push({contentType:f,robustness:"SW_SECURE_DECODE"}),ed(Z.nS)==="MWEB"&&(BU()||bq())&&(Z.D1("swcrypto",{}),P.push({contentType:T,robustness:"SW_SECURE_CRYPTO"})))}return[d]}; Pva=function(Z){Zv("Received layout exit signal when not in layout exit flow.",Z.slot,Z.layout)}; g.OJ=function(Z){var I=Vj();I&&(this.L=new Pa(Z,I));this.D=new g.Ry(Z)}; Ygu=function(Z){Z.L=null;Z.fM.clear();Z.D&&Z.D.stop();Z.B&&Z.B.stop();var I;(I=Z.Z)==null||I.stop();delete Z.Z}; g.VnE=function(Z,I){Z=g.t(Z.sZ);for(var d=Z.next();!d.done;d=Z.next())if(d=d.value,I>=d.start&&I<=d.end)return!0;return!1}; Z7$=function(Z){for(var I=0,d=0,Y={};d5||I<0)return Z?fr(Z,-2):-2;var d=Z.state;if(!Z.output||!Z.input&&Z.qk!==0||d.status===666&&I!==4)return fr(Z,Z.G_===0?-5:-2);d.rz=Z;var Y=d.CT;d.CT=I;if(d.status===42)if(d.wrap===2)Z.mH=0,M$(d,31),M$(d,139),M$(d,8),d.Bg?(M$(d,(d.Bg.text?1:0)+(d.Bg.D_?2:0)+(d.Bg.extra?4:0)+(d.Bg.name?8:0)+(d.Bg.comment?16:0)),M$(d,d.Bg.time&255),M$(d,d.Bg.time>>8&255),M$(d,d.Bg.time>>16&255),M$(d,d.Bg.time>>24&255),M$(d,d.level===9?2:d.strategy>=2||d.level<2?4:0),M$(d,d.Bg.os& 255),d.Bg.extra&&d.Bg.extra.length&&(M$(d,d.Bg.extra.length&255),M$(d,d.Bg.extra.length>>8&255)),d.Bg.D_&&(Z.mH=iP(Z.mH,d.zz,d.pending,0)),d.dG=0,d.status=69):(M$(d,0),M$(d,0),M$(d,0),M$(d,0),M$(d,0),M$(d,d.level===9?2:d.strategy>=2||d.level<2?4:0),M$(d,3),d.status=113);else{var T=8+(d.If-8<<4)<<8;T|=(d.strategy>=2||d.level<2?0:d.level<6?1:d.level===6?2:3)<<6;d.NC!==0&&(T|=32);d.status=113;fD(d,T+(31-T%31));d.NC!==0&&(fD(d,Z.mH>>>16),fD(d,Z.mH&65535));Z.mH=1}if(d.status===69)if(d.Bg.extra){for(T= d.pending;d.dG<(d.Bg.extra.length&65535)&&(d.pending!==d.E9||(d.Bg.D_&&d.pending>T&&(Z.mH=iP(Z.mH,d.zz,d.pending-T,T)),OY(Z),T=d.pending,d.pending!==d.E9));)M$(d,d.Bg.extra[d.dG]&255),d.dG++;d.Bg.D_&&d.pending>T&&(Z.mH=iP(Z.mH,d.zz,d.pending-T,T));d.dG===d.Bg.extra.length&&(d.dG=0,d.status=73)}else d.status=73;if(d.status===73)if(d.Bg.name){T=d.pending;do{if(d.pending===d.E9&&(d.Bg.D_&&d.pending>T&&(Z.mH=iP(Z.mH,d.zz,d.pending-T,T)),OY(Z),T=d.pending,d.pending===d.E9)){var f=1;break}f=d.dGT&&(Z.mH=iP(Z.mH,d.zz,d.pending-T,T));f===0&&(d.dG=0,d.status=91)}else d.status=91;if(d.status===91)if(d.Bg.comment){T=d.pending;do{if(d.pending===d.E9&&(d.Bg.D_&&d.pending>T&&(Z.mH=iP(Z.mH,d.zz,d.pending-T,T)),OY(Z),T=d.pending,d.pending===d.E9)){f=1;break}f=d.dGT&&(Z.mH=iP(Z.mH,d.zz,d.pending-T,T));f===0&&(d.status=103)}else d.status= 103;d.status===103&&(d.Bg.D_?(d.pending+2>d.E9&&OY(Z),d.pending+2<=d.E9&&(M$(d,Z.mH&255),M$(d,Z.mH>>8&255),Z.mH=0,d.status=113)):d.status=113);if(d.pending!==0){if(OY(Z),Z.G_===0)return d.CT=-1,0}else if(Z.qk===0&&(I<<1)-(I>4?9:0)<=(Y<<1)-(Y>4?9:0)&&I!==4)return fr(Z,-5);if(d.status===666&&Z.qk!==0)return fr(Z,-5);if(Z.qk!==0||d.dK!==0||I!==0&&d.status!==666){Y=d.strategy===2?jmn(d,I):d.strategy===3?Ad$(d,I):PV[d.level].func(d,I);if(Y===3||Y===4)d.status=666;if(Y===1||Y===3)return Z.G_===0&&(d.CT= -1),0;if(Y===2&&(I===1?(oD(d,2,3),rM(d,256,Po),d.Xw===16?(pd(d,d.FW),d.FW=0,d.Xw=0):d.Xw>=8&&(d.zz[d.pending++]=d.FW&255,d.FW>>=8,d.Xw-=8)):I!==5&&(oD(d,0,3),qni(d,0,0),I===3&&(Qo(d.head),d.dK===0&&(d.NC=0,d.QC=0,d.cO=0))),OY(Z),Z.G_===0))return d.CT=-1,0}if(I!==4)return 0;if(d.wrap<=0)return 1;d.wrap===2?(M$(d,Z.mH&255),M$(d,Z.mH>>8&255),M$(d,Z.mH>>16&255),M$(d,Z.mH>>24&255),M$(d,Z.l1&255),M$(d,Z.l1>>8&255),M$(d,Z.l1>>16&255),M$(d,Z.l1>>24&255)):(fD(d,Z.mH>>>16),fD(d,Z.mH&65535));OY(Z);d.wrap>0&& (d.wrap=-d.wrap);return d.pending!==0?0:1}; iHi=function(Z){return{Gj:OI(Z,2),videoId:BG(Z,3),Ui:wd(Z,4)}}; o0i=function(Z,I,d,Y,T,f,P){if(Z.L)return Z.L;var O={},a=new Set,W={};if(fw(Y)){for(var e in Y.L)Y.L.hasOwnProperty(e)&&(Z=Y.L[e],W[Z.info.Pj]=[Z.info]);return W}e=FFE(I,Y,O);f&&T({aftsrt:A$(e)});for(var B={},w=g.t(Object.keys(e)),V=w.next();!V.done;V=w.next()){V=V.value;for(var N=g.t(e[V]),q=N.next();!q.done;q=N.next()){q=q.value;var A=q.itag,F=void 0,J=V+"_"+(((F=q.video)==null?void 0:F.fps)||0);B.hasOwnProperty(J)?B[J]===!0?W[V].push(q):O[A]=B[J]:(F=Br(I,q,d,Y.isLive,a),F!==!0?(P.add(V),O[A]=F, F==="disablevp9hfr"&&(B[J]="disablevp9hfr")):(W[V]=W[V]||[],W[V].push(q),B[J]=!0))}}f&&T({bfflt:A$(W)});for(var v in W)W.hasOwnProperty(v)&&(Y=v,W[Y]&&W[Y][0].zx()&&(W[Y]=W[Y],W[Y]=fFE(I,W[Y],O),W[Y]=hed(W[Y],O)));f&&Object.keys(O).length>0&&T({rjr:VQ(O)});I=g.t(a.values());for(Y=I.next();!Y.done;Y=I.next())(Y=d.N.get(Y.value))&&--Y.mu;f&&T({aftflt:A$(W)});Z.L=g.yi(W,function(l){return!!l.length}); return Z.L}; oP=function(Z,I,d){d=d===void 0?{}:d;I=Error.call(this,I);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.code=Z;this.metadata=d;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; TLJ=function(Z){var I=[];Z=g.t(Z.split(","));for(var d=Z.next();!d.done;d=Z.next()){var Y=d.value;Y&&((d=Y.startsWith("!"))&&(Y=Y.substring(1)),Y=Y.split("-"),Y.length<3||I.push({ym:Y[0],platform:Y[1],deviceVersion:Y[2],iD:d}))}return I}; PcD=function(Z,I){if(aR(Z,I))return I=rd(Z.L,Z.pos,8),Z.pos+=8,(new DataView(I.buffer,I.byteOffset,I.byteLength)).getFloat64(0,!0)}; Qma=function(Z,I){if(Z){Z=Z.split("&");for(var d=0;d=0){var f=Z[d].substring(0,Y);T=Z[d].substring(Y+1)}else f=Z[d];I(f,T?Ir(T):"")}}}; f_=function(Z){if(Z.Fm)return Z.Fm.readyState;switch(Z.wB.webkitSourceState){case Z.wB.SOURCE_OPEN:return"open";case Z.wB.SOURCE_ENDED:return"ended";default:return"closed"}}; IJ$=function(Z){return nB(function(I,d){return g.WV(I,d,4,1E3)},Z,{format:"RAW", method:"GET",withCredentials:!0})}; sm=function(Z){var I=Z.api.C().Y("enable_linear_program_progress"),d=Z.api.getPresentingPlayerType()===2;return Z.iX&&!SP(Z)&&(!I||!Z.D)&&!d}; mzB=function(Z,I,d,Y){var T=Z.kind;Y=Y?!1:!Z.hideCueRangeMarker;switch(T){case "AD_PLACEMENT_KIND_START":return Y={Do:new Tu(-0x8000000000000,-0x8000000000000),Jl:Y},d!=null&&(Y.Uy=new Tu(-0x8000000000000,-0x8000000000000)),Y;case "AD_PLACEMENT_KIND_END":return Y={Do:new Tu(0x7ffffffffffff,0x8000000000000),Jl:Y},d!=null&&(Y.Uy=new Tu(Math.max(0,I-d),0x8000000000000)),Y;case "AD_PLACEMENT_KIND_MILLISECONDS":T=Z.adTimeOffset;T.offsetStartMilliseconds||Zv("AD_PLACEMENT_KIND_MILLISECONDS missing start milliseconds."); T.offsetEndMilliseconds||Zv("AD_PLACEMENT_KIND_MILLISECONDS missing end milliseconds.");Z=Number(T.offsetStartMilliseconds);T=Number(T.offsetEndMilliseconds);T===-1&&(T=I);if(Number.isNaN(Z)||Number.isNaN(T)||Z>T)return new C("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:Z,offsetEndMs:T},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",T===I&&Z-500<=T);Y={Do:new Tu(Z,T),Jl:Y};if(d!=null){Z=Math.max(0,Z-d);if(Z===T)return Y;Y.Uy=new Tu(Z,T)}return Y; default:return new C("AdPlacementKind not supported in convertToRange.",{kind:T,adPlacementConfig:Z})}}; OHJ=function(Z){var I=g.aO(Z,0,1937011556);if(!I)return null;var d=Z.getUint32(I.dataOffset+12);if(d!==1701733217&&d!==1701733238)return null;I=uC(Z,I.offset+24+(d===1701733217?28:78),1936289382);if(!I)return null;d=uC(Z,I.offset+8,1935894637);if(!d||Z.getUint32(d.offset+12)!==1667392371)return null;I=uC(Z,I.offset+8,1935894633);if(!I)return null;I=uC(Z,I.offset+8,1952804451);if(!I)return null;d=new Uint8Array(16);for(var Y=0;Y<16;Y++)d[Y]=Z.getInt8(I.offset+16+Y);return d}; GS=function(Z){return[Z.top,Z.left,Z.bottom,Z.right]}; aFB=function(Z){var I,d,Y=Z.length,T=0;for(I=0;I>>6:(f<65536?O[d++]=224|f>>>12:(O[d++]=240|f>>>18,O[d++]=128|f>>>12&63),O[d++]=128|f>>> 6&63),O[d++]=128|f&63);return O}; fB$=function(Z){var I=Z.layoutId,d=Z.Ib,Y=Z.pN;Z.GF&&(Z={},kL(Y,"sleo",(Z.xc=I,Z.is=d,Z.ctp=Xc(I),Z)),HxD(Y))}; Wer=function(Z,I,d,Y){var T=h1L(hG,d);T!==null&&T.iy!==I&&(Z.GV(T),T=null);T||(I=Z.b$(d,vG(),!1,I),hG.D.length==0&&(GU().Z=79463069),lhD([I]),T=I,T.N=Uf(Z),Y&&(T.on=Y));return T}; tA=function(Z){var I="";typeof Z.toString==="function"&&(I=""+Z);return I+Z.stack}; DD=function(Z,I,d,Y,T,f,P){g.p.call(this);this.policy=Z;this.info=I;this.u5=d;this.Zf=T;this.logger=new g.qj("sabr");this.Ah=new cA(this);this.TK=new elu(this);this.yf=new em(this);this.state=1;this.O7=!1;this.Ql=0;this.clipId="";this.C0=-1;this.MX=0;this.Ga=-1;this.s3=this.SE=this.VH=!1;this.policy.VT?this.Lj=new OV(this,f):this.Lj=new zj(this,f);this.aN=this.policy.eK?I.FP:Rul(I,this.policy,Y);this.aN.set("rn",""+this.sM());this.aN.set("alr","yes");Byi(this.yf,d,Z);this.Qt=new BV(this,this.policy, this.aN,I.MC,this.Lj,this.logger,Y,P,this.policy.enableServerDrivenRequestCancellation);wkl(this.Qt);var O;if((O=this.policy)==null?0:O.M_)g.z(this,this.yf),g.z(this,this.Qt);Z=I.D;I={method:"POST",body:Z};Z&&(this.MX=Z.length);try{this.xhr=kX(this.aN,this.policy.X,this.Lj,OC,I),this.policy.Io&&WZ(this.Lj,this.VI()),this.Qt.D.start()}catch(a){g.uL(a)}}; wp=function(Z){g.nl(Z)}; Vl$=function(Z,I){I.subscribeCommand&&(Z.subscribeCommand=I.subscribeCommand);I.unsubscribeCommand&&(Z.unsubscribeCommand=I.unsubscribeCommand);I.addToWatchLaterCommand&&(Z.addToWatchLaterCommand=I.addToWatchLaterCommand);I.removeFromWatchLaterCommand&&(Z.removeFromWatchLaterCommand=I.removeFromWatchLaterCommand);I.getSharePanelCommand&&(Z.getSharePanelCommand=I.getSharePanelCommand)}; nP=function(Z){qJ||(Vo?Vo.r5(Z):(Nq.push({type:"ERROR",payload:Z}),Nq.length>10&&Nq.shift()))}; Nyr=function(Z){var I;if(I=!!Z.cotn)I=Z.videoId,I=!!I&&g.Yz(I)===1;return I&&!Z.RV}; w7D=function(Z){return new g.eq(function(I,d){Z.length||I(void 0);for(var Y,T=0;T0?(I=new i4(Z.api, Z.L),I.i5(Z.playerOverlay),g.z(Z,I)):(Z=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(I)),g.nl(Z))}}else g.nl(Error("addCommonComponents() needs to be called before starting countdown."))}; g.E1=function(Z,I,d,Y,T,f,P){T=T===void 0?"":T;f=f===void 0?!1:f;P=P===void 0?!1:P;if(Z)if(d&&!g.wm())$6(new g.Wj("Legacy referrer-scrubbed ping detected")),Z&&Ovu(Z,void 0,{scrubReferrer:!0});else if(T)pA(Z,I,"POST",T,Y);else if(g.rh("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||Y||P)pA(Z,I,"GET","",Y,void 0,f,P);else{b:{try{c:{var O=new hli({url:Z});if(O.L.dsh==="1")var a=null;else{var W=O.L.ae;if(W==="1"){var e=O.L.adurl;if(e)try{a={version:3,HY:decodeURIComponent(e),Px:gw(O.D,"act=1","ri=1",mP9(O))}; break c}catch(V){}}a=W==="2"?{version:4,HY:gw(O.D,"dct=1","suid="+O.Z,"ri=1"),Px:gw(O.D,"act=1","ri=1","suid="+O.Z)}:null}}if(a){var B=Lt(Z);var w=!(!B||!B.endsWith("/aclk")||F8(Z,"ri")!=="1");break b}}catch(V){}w=!1}w?ZOr(Z)?(I&&I(),d=!0):d=!1:d=!1;d||Ovu(Z,I)}}; pq=function(Z){this.L=Z}; Sg9=function(Z){var I={},d={};Z=g.t(Z);for(var Y=Z.next();!Y.done;Y=Z.next()){var T=Y.value,f=T.split("|");T.match(g.qgJ)?(Y=Number(f.pop()),isNaN(Y)?d[T]="?":(f=f.join("|"),(T=I[f])?(f=T[T.length-1],Y===f.end+1?f.end=Y:T.push({start:Y,end:Y})):I[f]=[{start:Y,end:Y}])):d[T]="?"}Z=g.t(Object.keys(I));for(Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,d[Y]=I[Y].map(function(P){return P.start+"-"+P.end}).join(","); return d}; AlO=function(Z,I,d){if(d>=Z.L.length)return!1;var Y=Z.j-Vx(Z)*Z.mJ;return Math.abs(I-Z.L[d].startTime/1E3)/Z.Z.L*Y<4}; DPr=function(Z){Q79(Z.S7.get(),!0);var I;((I=Z.shrunkenPlayerBytesConfig)==null?0:I.shouldRequestShrunkenPlayerBytes)&&Z.S7.get().pZ(!1)}; G8=function(Z,I,d,Y){ps(Z);var T=Z.Gm;xn(T,T[nL]|0,I,d,Y);return Z}; Jld=function(Z,I,d,Y){Rj.call(this,"survey-interstitial",Z,I,d,Y)}; wG=function(Z,I,d){I=I===void 0?!1:I;d=d===void 0?1048576:d;var Y=eP(Z);Y=1/((Z.V.eD()||0)*Z.policy.LS+1/Y);var T=Z.j7.eD();T=T>0?T:1;var f=Math.max(Y,T);Z.policy.B>0&&Td.WB)){var q=g.Q4(Z.C().experiments,"html5_drm_byterate_soft_cap");q>0&&rXd(N)&&N.pS>q||(w?(P.push(V),FC(V,P,Z)):(N=Br(d,N,T),N===!0?(w=!0,P.push(V),FC(V,P,Z)):a[V]=N))}}}e=g.t(e);for(W=e.next();!W.done;W=e.next())for(W=g.t(W.value),w=W.next();!w.done;w=W.next())if(w=w.value,(B=DNr(w))&&B.audio&&(Z.Y("html5_onesie_51_audio")||!wn(B)&&!Vg(B)))if(B=Br(d,B,T),B===!0){O.push(w);FC(w,O,Z);break}else a[w]=B;if(!Z.Y("html5_enable_audio_quality_setting"))for(Z= g.t(["141","774"]),e=Z.next();!e.done;e=Z.next())e=e.value,O.includes(e)&&(g.s4(O,e),a[e]="blkhqa");d.D&&I("orfmts",a);if(Y)return T.D&&(T.D=!1,nD=hQ=void 0),f?nD={video:P,audio:O}:hQ={video:P,audio:O};hQ={video:P,audio:O};T.D=!1;return hQ}; g.mC=function(Z){try{return Z.L?Z.L.responseText:""}catch(I){return""}}; lFu=function(Z){return gUD()===1?g.zG(Z,vG$):Z}; aM$=function(Z,I,d,Y){Z=Cfr(l_O(gnO(new Uo(1828,"0"),Z),new fu)).Ig();I.length&&pI9(Z,uJD(new zA9,I));Y!==void 0&&(Z.Wu=Y);var T=new yL(1828,"","",!1,"",Z.build());g.z(T,Z);var f=new g.b1({flush:function(P){try{T.flush(P)}catch(O){d(O)}}}); f.addOnDisposeCallback(function(){setTimeout(function(){try{f.hv()}finally{T.dispose()}})}); f.Z=1E5;f.flushInterval=3E4;f.L.setInterval(3E4);return f}; qq=function(Z){Z.X.removeAll();if(Z.L){var I=Z.L;Z.L=null;I.abort();I.dispose()}}; Dx=function(Z){this.value=Z}; Sm=function(Z,I){Z.S6&&!Z.YH.QQ()?Z.S6(I):Z.handleError(I)}; AQ=function(Z,I,d,Y,T,f){kw.call(this,Z,{K:"div",T:"ytp-ad-player-overlay",G:[{K:"div",T:"ytp-ad-player-overlay-flyout-cta"},{K:"div",T:"ytp-ad-player-overlay-instream-info"},{K:"div",T:"ytp-ad-player-overlay-skip-or-preview"},{K:"div",T:"ytp-ad-player-overlay-progress-bar"},{K:"div",T:"ytp-ad-player-overlay-instream-user-sentiment"},{K:"div",T:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",I,d,Y);this.X=f;this.B=this.KS("ytp-ad-player-overlay-flyout-cta");this.B.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.L=this.KS("ytp-ad-player-overlay-instream-info");this.N=null;uYL(this)&&(Z=LF("div"),g.xw(Z,"ytp-ad-player-overlay-top-bar-gradients"),I=this.L,I.parentNode&&I.parentNode.insertBefore(Z,I),(I=this.api.getVideoData(2))&&I.isListed&&I.title&&(d=new gQ(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),d.i5(Z),d.init(Ai("ad-title"),{text:I.title},this.macros),g.z(this,d)),this.N=Z);this.Z=null;this.Tm=this.KS("ytp-ad-player-overlay-skip-or-preview");this.mJ=this.KS("ytp-ad-player-overlay-progress-bar"); this.fS=this.KS("ytp-ad-player-overlay-instream-user-sentiment");this.kS=this.KS("ytp-ad-player-overlay-ad-disclosure-banner");this.D=T;g.z(this,this.D);this.hide()}; v3i=function(Z,I){this.breakDurationMs=Z;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=I||""}; GFd=function(Z,I,d,Y,T){var f=ip(Z.D.get(),"SLOT_TYPE_IN_PLAYER");d=new DS(Z.L,Y,d);Y=[new yc(Z.L,f)];Z=[new An(Z.L,I)];return{slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:Y,slotExpirationTriggers:Z,r4:"core",clientMetadata:new D0([new Jn(T({slotId:f,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,r4:"core",slotEntryTrigger:d,slotFulfillmentTriggers:Y,slotExpirationTriggers:Z}))])}}; VA=function(Z){var I=F2(Z,!0),d=Z.L.byteOffset+Z.pos;d=new DataView(Z.L.buffer,d,Math.min(I,Z.L.buffer.byteLength-d));d=new Kt(d,Z.start+Z.pos);Z.pos+=I;return d}; kR7=function(Z,I,d){var Y=I.C();Z.thirdParty||(Z.thirdParty={});Y.ancestorOrigins&&(Z.thirdParty.embeddedPlayerContext=Object.assign({},Z.thirdParty.embeddedPlayerContext,{ancestorOrigins:Y.ancestorOrigins}));Y.N_!=null&&(Z.thirdParty.embeddedPlayerContext=Object.assign({},Z.thirdParty.embeddedPlayerContext,{visibilityFraction:Number(Y.N_)}));Y.K0&&(Z.thirdParty.embeddedPlayerContext=Object.assign({},Z.thirdParty.embeddedPlayerContext,{visibilityFractionSource:Y.K0}));Z.thirdParty.embeddedPlayerContext= Object.assign({},Z.thirdParty.embeddedPlayerContext,{autoplayBrowserPolicy:zlD(),autoplayIntended:I$(I),autoplayStatus:kFJ(I,d)})}; XkB=function(Z,I){this.oF=Z;this.UY=I}; $PD=function(Z){Z=yJ(Z);if(Z=="")return null;var I=String(Z.slice(0,4)).toLowerCase();if(("url("1||Z&&Z.split(")"),null;if(Z.indexOf("(")>0){if(/"|'/.test(Z))return null;I=/([\-\w]+)\(/g;for(var d;d=I.exec(Z);)if(!(d[1].toLowerCase()in tlr))return null}return Z}; RE=function(Z,I,d,Y,T){kw.call(this,Z,{K:"div",T:"ytp-ad-info-dialog-background",G:[{K:"div",T:"ytp-ad-info-dialog-container",G:[{K:"div",T:"ytp-ad-info-dialog-form",J:{role:"dialog",tabindex:"-1"},G:[{K:"div",T:"ytp-ad-info-dialog-title",Z1:"{{title}}"},{K:"ul",T:"ytp-ad-info-dialog-ad-reasons"},{K:"div",T:"ytp-ad-info-dialog-message"},{K:"div",T:"ytp-ad-info-dialog-mute-container"},{K:"div",T:"ytp-ad-info-dialog-confirm-container",G:[{K:"button",T:"ytp-ad-info-dialog-confirm-button",Z1:"{{confirmLabel}}"}]}]}]}]}, "ad-info-dialog",I,d,Y);this.L=this.D=null;this.X=this.KS("ytp-ad-info-dialog-confirm-button");this.on=this.KS("ytp-ad-info-dialog-mute-container");this.w4=this.KS("ytp-ad-info-dialog-message");this.mJ=this.KS("ytp-ad-info-dialog-ad-reasons");this.N=this.Z=null;this.fS=T;this.B=null;this.Tm=!1;this.kS=null;this.hide()}; pkn=function(Z,I,d,Y,T,f,P){if(!dvE(Z))return new C("Invalid InstreamVideoAdRenderer for SlidingText.",{instreamVideoAdRenderer:Z});var O=Z.additionalPlayerOverlay.slidingTextPlayerOverlayRenderer;return[GFd(f,I,d,Y,function(a){var W=a.slotId;a=P(a);W=zi(T.D.get(),"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",W);var e={layoutId:W,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",r4:"core"},B=new jl(T.L,Y);return{layoutId:W,layoutType:"LAYOUT_TYPE_SLIDING_TEXT_PLAYER_OVERLAY",h5:new Map,layoutExitNormalTriggers:[B], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new tG(O)]),Tb:a(e)}})]}; AG=function(Z,I){Z=Z.app.l5();return!!Z&&Z.getVideoData().uQ===I.uQ}; JQ=function(Z,I,d){this.L=Z;this.D=I;this.expiration=d;this.MC=null}; xP9=function(){if(g.x9("bg_st_hr"))return"havuokmhhs-0";var Z,I=((Z=globalThis.performance)==null?void 0:Z.timeOrigin)||0;return"havuokmhhs-"+Math.floor(I)}; Mt=function(Z,I){var d;return((d=Z.L.get(I))==null?void 0:HdL(d.buffer))||0}; Ked=function(Z,I){Z.Z=Z.N.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:I},{offset:1,opacity:1}],{duration:200,fill:"forwards"});Z.Z.addEventListener("finish",function(){Z.Z=void 0;Z.j.start();Z.L="lingering"})}; Ccn=function(Z,I){var d={type:I.slotType,controlFlowManagerLayer:kSu.get(I.r4)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};I.slotEntryTrigger&&(d.entryTriggerType=I.slotEntryTrigger.triggerType);I.slotPhysicalPosition!==1&&(d.slotPhysicalPosition=I.slotPhysicalPosition);if(Z){d.debugData={slotId:I.slotId};if(Z=I.slotEntryTrigger)d.debugData.slotEntryTriggerData=t2(Z);Z=I.slotFulfillmentTriggers;d.debugData.fulfillmentTriggerData=[];Z=g.t(Z);for(var Y=Z.next();!Y.done;Y=Z.next())d.debugData.fulfillmentTriggerData.push(t2(Y.value)); I=I.slotExpirationTriggers;d.debugData.expirationTriggerData=[];I=g.t(I);for(Z=I.next();!Z.done;Z=I.next())d.debugData.expirationTriggerData.push(t2(Z.value))}return d}; W3O=function(Z,I,d){d=OM(Z,d);for(var Y,T;d>=0;d--)if(Y=Z.levels[d],T=Dc(Y,I),!Y.isLoaded(T)){Y=Z;var f=d,P=f+"-"+T;Y.j.has(P)||(Y.j.add(P),Y.Z.enqueue(f,{v9:f,oP:T}))}EGd(Z)}; bHi=function(Z,I){return Z.nS.Y("html5_use_network_error_code_enums")&&I.details.rc===403||I.details.rc==="403"?(Z=I.errorCode,Z==="net.badstatus"||Z==="manifest.net.retryexhausted"):!1}; Jg=function(Z){return Z.Y("web_settings_menu_surface_custom_playback")}; HHB=function(Z,I,d,Y,T){this.Z=Z;this.D=I;this.B=d;this.cpn=Y;this.j=T;this.N=0;this.L=""}; NO9=function(Z,I,d,Y,T){var f=Z.B.get(d);if(!f){if(f=vK(Z,I))return f;I=Z.NJ(d-1,Y!=null?Y:2);if(T)return Z.t9({misscue:T,sq:d,type:Y,prevsstate:I==null?void 0:I.fC,prevrecord:Z.B.has(d-1)}),Z.B.get(d-1);if((I==null?void 0:I.fC)===2)return Z.t9({adnf:1,sq:d,type:Y,prevrecord:Z.B.has(d-1)}),Z.B.get(d-1)}return f}; m1=function(Z){return function(){return new Z}}; clu=function(Z,I){Z.Z[I]||(Z.Z[I]=new Sn);return Z.Z[I]}; qCD=function(Z){MM(eZ,ZT,1,Z)}; GKl=function(Z,I,d){if(I.endpoint==="log_event"){Zs(void 0,I);var Y=I1(I,!0),T=new Map;T.set(Y,[FJ(I.payload)]);d&&(jN=new d);return new g.eq(function(f){jN&&jN.isReady()?G8n(T,jN,f,{bypassNetworkless:!0},!0,Y4(Z)):f()})}}; g.RR=function(Z,I){return Z==I?!0:Z&&I?Z.width==I.width&&Z.height==I.height:!1}; LD=function(Z){var I=g.gZ("yt.scheduler.instance.setPriorityThreshold");I&&I(Z)}; gGD=function(){var Z=g.T2("yt-player-quality");if(Z instanceof Object&&Z.quality&&Z.previousQuality){if(Z.quality>Z.previousQuality)return 1;if(Z.quality>>1),a=void 0;d?a=I.call(void 0,Z[O],O,Z):a=I(Y,Z[O]);a>0?T=O+1:(f=O,P=!a)}return P?T:-T-1}; Zhl=function(Z,I,d,Y,T,f,P){g.S8.call(this,I,d,{id:Z,namespace:"ad",priority:T,visible:Y,associatedClipId:f,markerPositionMs:P})}; IsD=function(Z){g.AU("yt-player-bandwidth",Z,2592E3)}; g.dx=function(Z){Z=Z===void 0?!1:Z;g.p.call(this);this.Qx=new g.Mc(Z);g.z(this,this.Qx)}; ItE=function(Z,I){if(Z.Vn.D.currentState<2){var d=yo(I,Z.Ms);d==="error"?Z.callback.b8(Z.slot,Z.layout,new j$("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:I},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):zO(Z.PJ,Z.layout,d)}}; d9l=function(){this.rz=null;this.status=0;this.zz=null;this.wrap=this.pending=this.wq=this.E9=0;this.Bg=null;this.dG=0;this.method=8;this.CT=-1;this.jt=this.If=this.uy=0;this.window=null;this.i_=0;this.head=this.dw=null;this.Es=this.d0=this.strategy=this.level=this.HD=this.Sp=this.RF=this.dK=this.A7=this.NC=this.qh=this.yk=this.kZ=this.QC=this.GX=this.eG=this.XG=this.hw=this.RN=0;this.O_=new LX.B0(1146);this.XL=new LX.B0(122);this.tK=new LX.B0(78);Qo(this.O_);Qo(this.XL);Qo(this.tK);this.J8=this.Pt= this.YQ=null;this.qV=new LX.B0(16);this.wu=new LX.B0(573);Qo(this.wu);this.mY=this.yc=0;this.depth=new LX.B0(573);Qo(this.depth);this.Xw=this.FW=this.cO=this.matches=this.Ih=this.T8=this.LQ=this.oa=this.Hy=this.zW=0}; QB=function(Z,I){return I&&g.RK(Z.U)?I.some(function(d){return d.video.fps>32}):!1}; oPu=function(){var Z=TV;this.L=vM;this.d_="jserror";this.KO=!0;this.CV=null;this.D=this.lH;this.C_=Z===void 0?null:Z}; vV=function(Z,I,d){d=d===void 0?[]:d;this.maxItems=Z;this.L=I===void 0?0:I;this.D=d}; g.Li=function(Z,I){var d=Z.L[Z.L.length-1];d!==I&&(Z.L.push(I),RQ(Z,d,I))}; Ymd=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){d=d.value;a:switch(Fc(Z.L,d.slot).N){case "not_filled":var Y=!0;break a;default:Y=!1}Y&&(Z.Wk.NO("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",d.slot),Z.L.zQ(d.slot))}}; lP=function(Z,I){Pv.call(this,Z,3,I)}; jYr=function(Z,I,d){if(Z.Y("html5_optimality_defaults_chooses_next_higher")&&d)for(Z=I.L.videoInfos,I=1;I=2)||P.isComplete()||P.J6()||!(!Z.loader.Fm||Z.loader.isSuspended||Vh(W)>3)){var e=QYa(P,Z.policy,Z.N);e===1&&(Z.Ns=!0);OhD(Z,P,e);if(P.isComplete()||P.OZ()&&O<3){if(Z.policy.Z){var B=P.timing.uf();B.rst=P.state;B.strm=P.xhr.gx();B.cncl=P.xhr&&P.Qt.B?1:0;Z.loader.D1("rqs",B)}P.Wf&&Z.loader.D1("sbwe3",{},!0)}if(!Z.OZ()&&P.state>=2){atl(Z.timing,P,a);var w=Z.loader;Z.FM&&P.Q9&&w&&(Z.FM=NaN,Z.loader.vr(P.Q9),Z.loader.PZ(),Z.loader.D1("cabrUtcSeek",{mediaTimeSeconds:P.Q9}));P.Ho&&Z.FM&&P.Ho&& !P.Ho.action&&(Z.loader.j8(Z.FM),Z.FM=NaN,Z.loader.D1("cabrUtcSeekFallback",{targetUtcTimeSeconds:Z.FM}));P.UL&&Z.loader.lL(P.UL);Z.policy.Gv&&(Z.WK=P.WK);if(P.state===3){sI(W,P);GW(P.info)&&te(Z,W,a,!0);if(Z.D){var V=P.info.Ua();V&&Z.D.w5(P.info.e7[0].YS,a.info.id,V)}Z.loader.Nc()}else if(P.isComplete()&&P.info.e7[0].type===5){if(P.state!==4)P.q_()&&Z.loader.handleError(P.dB(),P.LZ());else{var N=(P.info.e7[0].L.info.video?Z.videoTrack:Z.audioTrack).Z[0]||null;N&&N instanceof zW&&N.J6()&&N.B1()}P.dispose()}else{if(!P.q_()&& P.SZ&&P.state>=2&&P.state!==3){var q=P.xhr.getResponseHeader("X-Response-Itag");if(q){var A=W1i(Z.Z,q),F=P.info.Z;if(F){var J=F-A.Am();A.Z=!0;P.info.e7[0].L.Z=!1;var v=A.GT(J);P.info=v;if(P.nF){var l=P.nF,X=v.e7;(X.length!==l.e7.length||X.length=Z.policy.yb&&Z.D&&P.info.isDecorated()&&sJ==="net.badstatus"&&Z.D.RQ(jt,TL))){var yu=(Zr.info.video&&Zr.MC.Z>1||P.WE===410||P.WE===500||P.WE===503)&&!(pG(Z.Z.B).size>0)&&!U1(2,Zr.MC.L),UJ=P.LZ(),X0=Zr.info.video?Z.videoTrack:Z.audioTrack;yu&&(UJ.stun="1");Z.loader.handleError(sJ,UJ);Z.OZ()||(yu&&Fx(Z.Z,Zr),sI(X0,P),Z.loader.Nc())}}else A=1,Z.D&&P.info.isDecorated()&& sJ==="net.badstatus"&&Z.D.RQ(jt,TL)&&(A=0),Z.u5.isLive&&P.dB()==="net.badstatus"&&Z.j<=Z.policy.hK*2?(WaJ(Z.u5),Z.u5.uu||Z.u5.isPremiere?BE(Z.loader,0,{H$:"badStatusWorkaround"}):Z.u5.N?BE(Z.loader,Z.u5.fS,{H$:"badStatusWorkaround",j3:!0}):kz(Z.loader)):Z.loader.handleError(sJ,P.LZ(),A);isNaN(Z.FM)||(Z.loader.j8(Z.FM),Z.FM=NaN)}Z.policy.Tv&&!P.isComplete()?wn9(Z.loader):Z.loader.Nc();var Ag=ALd(P,Z.policy,Z.N);OhD(Z,P,Ag)}}}}}catch(vE){sJ=Z.kS?1:0,Z.kS=!0,P=VY(sJ),sJ=w2(vE,sJ),Z.loader.handleError(sJ.errorCode, sJ.details,sJ.severity),P||Z.loader.IL()}},Y)}; VZi=function(Z){var I=mV7();I&&document.removeEventListener(I,Z,!1)}; NCl=function(Z,I){var d;if((d=fM(I))!=null&&d.isLocked&&q5r(I)){if(Z.t5.C().Vy()){var Y;Z.D1("eosl",{munlock:(Y=fM(I))==null?void 0:Y.info.m5()})}M9(Z,I===Z.audioTrack)}}; Sr=function(Z,I){return BC(Z,void 0,I)}; F1J=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ytp-ad-grid-card-text",G:[{K:"div",T:"ytp-ad-grid-card-text__metadata",G:[{K:"div",T:"ytp-ad-grid-card-text__metadata__headline"},{K:"div",T:"ytp-ad-grid-card-text__metadata__description",G:[{K:"div",T:"ytp-ad-grid-card-text__metadata__description__line"},{K:"div",T:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{K:"div",T:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",I,d,Y);this.headline=new Oe(this.api,this.layoutId,this.interactionLoggingClientData, this.Hj);g.z(this,this.headline);this.headline.i5(this.KS("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new s_(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,!0);g.z(this,this.moreInfoButton);this.moreInfoButton.i5(this.KS("ytp-ad-grid-card-text__button"))}; xV=function(Z,I,d,Y){g.p.call(this);var T=this;this.api=Z;this.U=I;this.L=d;this.app=Y;this.B=new Map;this.D=[];this.Z=this.V=null;this.LS=NaN;this.j=this.N=this.In=null;this.X=new g.uX(function(){HAl(T,T.LS,T.In||void 0)}); this.kS=[];this.Ns=new g.uX(function(){var f=T.kS.pop();if(f){var P=f.uQ,O=f.playerVars;f=f.playerType;O&&(O.prefer_gapless=!0,T.api.preloadVideoByPlayerVars(O,f,NaN,"",P),T.kS.length&&g.Zy(T.Ns,4500))}}); this.events=new g.De(this);this.A9={J64:function(){return T.D}}; this.L.getPlayerType();g.z(this,this.X);g.z(this,this.Ns);g.z(this,this.events);this.events.W(this.api,g.E2("childplayback"),this.onCueRangeEnter);this.events.W(this.api,"onQueuedVideoLoaded",this.onQueuedVideoLoaded);this.events.W(this.api,"presentingplayerstatechange",this.nw)}; xO=function(Z){Z=Z===void 0?JB:Z;aj.call(this,new WF(Z,2))}; sY$=function(Z,I,d,Y,T){this.N=Z;this.B=I;this.L=d;this.D=Y;this.Z=T}; Coi=function(Z,I,d,Y,T){if((Z=Z.L.get(I))&&typeof Z==="function")try{Z(d,Y,T)}catch(f){g.nl(f)}else I=new g.Wj("Unhandled field",I),g.uL(I)}; nP$=function(Z,I){function d(Y,T){I(Y,T)} if(Z.D==null)return!1;Z.L=g.Xe(Z.D,function(Y){return Y!=null&&Y.mw()}); Z.L&&(Z.L.init(d)?Q67(Z.L.L):I(Z.L.L.IJ(),Z.L));return Z.L!=null}; VKD=function(){try{var Z=g.gZ("yt.ads.biscotti.getId_");return Z?Z():aZL()}catch(I){return ZD(I)}}; hti=function(Z,I,d,Y){Rj.call(this,"video-interstitial-buttoned-centered",Z,I,d,Y);this.interactionLoggingClientData=Y}; fd=function(Z,I){var d=I.X9,Y=I.ZO.DX,T=I.ZO.Nz,f=I.ZO.cY,P,O=-1;Z.yc=0;Z.mY=573;for(P=0;P>1;P>=1;P--)Z8(Z,d,P);a=f;do P=Z.wu[1],Z.wu[1]=Z.wu[Z.yc--],Z8(Z,d,1),Y=Z.wu[1],Z.wu[--Z.mY]=P,Z.wu[--Z.mY]=Y,d[a*2]=d[P*2]+d[Y*2],Z.depth[a]=(Z.depth[P]>=Z.depth[Y]?Z.depth[P]:Z.depth[Y])+1,d[P*2+1]=d[Y*2+1]=a,Z.wu[1]=a++,Z8(Z,d,1);while(Z.yc>= 2);Z.wu[--Z.mY]=Z.wu[1];P=I.X9;a=I.h7;Y=I.ZO.DX;T=I.ZO.Nz;f=I.ZO.K1;var W=I.ZO.NS,e=I.ZO.ES5,B,w=0;for(B=0;B<=15;B++)Z.qV[B]=0;P[Z.wu[Z.mY]*2+1]=0;for(I=Z.mY+1;I<573;I++){var V=Z.wu[I];B=P[P[V*2+1]*2+1]+1;B>e&&(B=e,w++);P[V*2+1]=B;if(!(V>a)){Z.qV[B]++;var N=0;V>=W&&(N=f[V-W]);var q=P[V*2];Z.T8+=q*(B+N);T&&(Z.Ih+=q*(Y[V*2+1]+N))}}if(w!==0){do{for(B=e-1;Z.qV[B]===0;)B--;Z.qV[B]--;Z.qV[B+1]+=2;Z.qV[e]--;w-=2}while(w>0);for(B=e;B!==0;B--)for(V=Z.qV[B];V!==0;)Y=Z.wu[--I],Y>a||(P[Y*2+1]!==B&&(Z.T8+=(B- P[Y*2+1])*P[Y*2],P[Y*2+1]=B),V--)}fR9(d,O,Z.qV)}; XU=function(Z){var I={};I.itag=Z.L.info.itag;I.type=""+Z.type;I.src=""+Z.source;I.segsrc=Z.V;I.seg=String(Z.YS);Z.range&&(I.range=Z.range.start+Z.D+"-"+(Z.range.start+Z.D+Z.Z-1));I.time=Z.B.toFixed(1)+"-"+(Z.B+Z.X).toFixed(1);I.off=String(Z.D);I.len=String(Z.Z);Z.N&&(I.end="1");Z.RL()&&(I.eos="1");Z.clipId&&(I.cid=Z.clipId);return I}; cgn=function(Z,I){return Z===I}; m9L=function(Z){var I=/codecs="([^"]*)"/.exec(Z.mimeType);return I&&I[1]?I[1]+" ("+Z.itag+")":Z.itag}; qmu=function(Z,I,d,Y){if(Z.U.Y("html5_ssdai_log_ssevt_in_loader")||Z.U.Y("html5_ssdai_log_ssevt_in_loader_200ms")||Z.U.Y("html5_ssdai_log_ssevt_in_loader_timers")||Z.U.Y("html5_ssdai_log_ssevt_in_loader_cuerange"))Y=Z.LS?0:Math.round((Y-d)*1E3),Z.playback.D1("ssevt",{tag:"sstme",ad:I!==Z.playback.PE(),cpn:I,st:(d-Z.playback.Mm()).toFixed(3),late:Y})}; Qo=function(Z){for(var I=Z.length;--I>=0;)Z[I]=0}; uzL=function(Z,I){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=I||Z(this.triggerType)}; Sma=function(Z,I){if(Z=Z.flags.get(""+I))if(Z=Z.replace(/\[ *(.*?) *\]/,"$1"))return Z.split(",").map(Number);return[]}; D9J=function(Z,I,d,Y,T){try{if(Z.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var f=d(Z.state.reason);f instanceof g.WD?AH7(Z,I,f,Y,T):Y(f)}catch(P){T(P)}}; c9a=function(Z,I,d,Y){I={E5:[],QH:I};Z=g.t(Z);for(var T=Z.next();!T.done;T=Z.next())if((T=T.value)&&T.renderer!=null){var f=T.renderer;if(!d.S.C().Y("html5_enable_vod_lasr_with_notify_pacf")){var P=void 0,O=void 0,a=void 0,W=void 0,e=Y;g.y((W=f.sandwichedLinearAdRenderer)==null?void 0:W.adVideoStart,YI)?(P=g.y((a=f.sandwichedLinearAdRenderer)==null?void 0:a.adVideoStart,YI),P=nQJ(P,e),g.tQ(f.sandwichedLinearAdRenderer.adVideoStart,YI,P)):g.y((O=f.linearAdSequenceRenderer)==null?void 0:O.adStart,YI)&& (a=g.y((P=f.linearAdSequenceRenderer)==null?void 0:P.adStart,YI),P=nQJ(a,e),g.tQ(f.linearAdSequenceRenderer.adStart,YI,P))}I.E5.push(T)}return I}; g.TH=function(Z,I,d,Y){Y=Y===void 0?!1:Y;nH.call(this);this.mediaElement=Z;this.start=I;this.end=d;this.L=Y}; piO=function(Z,I){Z=I.Nm()==1?Z.L:Z.D;var d=d2(Z,function(Y){return Y==I}); return d!=-1?(Z.splice(d,1),I.oN&&I.oN.unobserve(),I.dispose(),!0):!1}; UXO=function(Z,I,d,Y,T,f,P,O,a){var W=Mz(g.y(I,l0),a),e=d.s8,B=d.yq,w=Math.min(e+W.videoLengthSeconds*1E3,O);d.s8=w;d.yq++;d.Uym.push(W.videoLengthSeconds);var V,N,q=(V=g.y(I,l0))==null?void 0:(N=V.playerOverlay)==null?void 0:N.instreamSurveyAdRenderer;if(W.adVideoId==="nPpU29QrbiU"&&q==null)throw new TypeError("Survey slate media has no survey overlay");return function(A){Uh(W.playerVars,A);var F,J,v=W.videoLengthSeconds,l=W.playerVars,X=W.h5,H=W.iK,x=W.instreamAdPlayerOverlayRenderer,Id=W.playerOverlayLayoutRenderer, TB=W.adVideoId,dD=(F=g.y(I,l0))==null?void 0:F.adLayoutLoggingData;F=(J=g.y(I,l0))==null?void 0:J.sodarExtensionData;J=zi(Y.D.get(),"LAYOUT_TYPE_MEDIA",Z);var Qu={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",r4:"adapter"};A={layoutId:J,layoutType:"LAYOUT_TYPE_MEDIA",h5:X,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"adapter",clientMetadata:new D0([new F6(P),new ud(v),new t5(l),new LS(e),new tT(w), new mW(B),new EN({current:null}),x&&new za(x),Id&&new k4(Id),new Xj(f),new Vl(TB),new Y8(A),F&&new AT(F),q&&new Ec(q),new Dx({}),new sQ(H)].filter(XoB)),Tb:T(Qu),adLayoutLoggingData:dD};v=JHD(g.y(I,l0),f,P,A.layoutId,Y);return{o1:A,IGZ:v}}}; Q3=function(Z,I){if(!g.x9("web_csi_action_sampling_enabled")||!MT(I).actionDisabled){var d=Pi(I||"");KO(d.info,Z);Z.loadType&&(d=Z.loadType,au(I).loadType=d);KO(kqa(I),Z);d=ND(I);I=MT(I).cttAuthInfo;zT().info(Z,d,I)}}; Rtn=function(Z){var I;return(Z=Z==null?void 0:(I=Z.error)==null?void 0:I.code)&&Z>=400&&Z<=599?!1:!0}; g.MQ=function(Z,I,d){Z.B=d?Tn(I,!0):I;Z.B&&(Z.B=Z.B.replace(/:$/,""))}; Uf=function(Z){if(Z.D)return Z.D;var I=lz(Ay).L;if(I)switch(I.getName()){case "nis":Z.D="n";break;case "gsv":Z.D="m"}Z.D||(Z.D="h");return Z.D}; DEL=function(Z){$w.call(this,Z);var I=this;$z(this.api,"getPlaybackRate",function(){return I.api.getPlaybackRate()}); $z(this.api,"setPlaybackRate",function(d){typeof d==="number"&&I.api.setPlaybackRate(d)})}; g.Bh=function(Z,I,d){d=Z.In.splice(d||0)[0];(d=Z.Z=Z.Z||d)?d.W9?Z.L=Z.j||Z.B:d.xS!=void 0&&Z.B>3,T=d&7;if(Y===I)return!0;if(Y>I){Z.D=d;break}d=-1;switch(T){case 0:YA(Z);break;case 1:Z.pos+=8;break;case 2:Y=YA(Z);Z.pos+=Y;break;case 5:Z.pos+=4}}return!1}; UjJ=function(Z){this.L=Z}; pD=function(Z,I){Z.S.setOption("captions","track",I)}; d7=function(Z){this.B=new Uint8Array(64);this.Z=new Uint8Array(64);this.N=0;this.j=new Uint8Array(64);this.D=0;this.B.set(Z);this.Z.set(Z);for(Z=0;Z<64;Z++)this.B[Z]^=92,this.Z[Z]^=54;this.reset()}; uXB=function(Z,I){return Z?I?yHD():vPu():I?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M4 4C3.73 4 3.48 4.10 3.29 4.29C3.10 4.48 3 4.73 3 5V19C3 19.26 3.10 19.51 3.29 19.70C3.48 19.89 3.73 20 4 20C4.26 20 4.51 19.89 4.70 19.70C4.89 19.51 5 19.26 5 19V5C5 4.73 4.89 4.48 4.70 4.29C4.51 4.10 4.26 4 4 4ZM18.95 4.23L6 12.00L18.95 19.77C19.15 19.89 19.39 19.96 19.63 19.96C19.87 19.97 20.10 19.91 20.31 19.79C20.52 19.67 20.69 19.50 20.81 19.29C20.93 19.09 21.00 18.85 21 18.61V5.38C20.99 5.14 20.93 4.91 20.81 4.70C20.69 4.50 20.52 4.33 20.31 4.21C20.10 4.09 19.87 4.03 19.63 4.03C19.39 4.04 19.15 4.10 18.95 4.23Z", fill:"white"}}]}:ltB()}; xz=function(Z){return Z?g.Q1(Z):""}; Ge9=function(Z){var I=Z.Gm;return sH(Z,I,I[nL]|0,bb,2,1)}; ztL=function(Z){this.Gm=bp(Z)}; Ilu=function(){return l$()?!1:ET("Trident")||ET("MSIE")}; Xnd=function(Z){Z.provider.videoData.googleRemarketingUrl&&!Z.kS&&(keL(Z,Z.provider.videoData.googleRemarketingUrl),Z.kS=!0)}; tZa=function(Z){var I,d;return g.h(function(Y){return Y.L==1?g.m(Y,Oo(Z),2):Y.L!=3?(I=Y.D,d=void 0,g.m(Y,g.Xn(I,["coldConfigStore"],{mode:"readwrite",OU:!0},function(T){return g.Vq(T.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(f){d=f.getValue()})}),3)):Y.return(d)})}; pnL=function(Z,I){var d=g.KG.getState().entities;Z=$9u(d,Z);I=g.t(I.J5);for(var Y=I.next();!Y.done;Y=I.next())if(Z===$9u(d,Y.value))return!0;return!1}; Kh=function(Z,I){if(Z.uw()===Z.A_.length-1)Z.qR++,zO(Z.PJ,Z.layout,"normal"),Z.fN()||x9u(Z.SJ.get());else a:{if(Z.uw()===-1&&(Z.callback.J9(Z.slot,Z.layout),I>0)){Zv("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",Z.slot,Z.layout,{indexToPlay:I,layoutId:Z.layout.layoutId});break a}Z.qR=I;I=Z.CN();if(Z.uw()>0&&!Z.fN()){var d=Z.SJ.get();d.D=!1;var Y={};d.L&&d.videoId&&(Y.cttAuthInfo={token:d.L,videoId:d.videoId});Pr("ad_to_ad",Y)}d=g.y(I.Xm().renderingContent,zz);if(d==null?0: d.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var T;d=!((T=Z.KF.get().uQm.get(d.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&T)}else d=!1;d?Kh(Z,Z.uw()+1):Z.z6(I)}}; C2r=function(Z,I,d,Y,T){var f=(0,g.o8)(),P=T?T(I):void 0,O;T=(O=P==null?void 0:P.m$)!=null?O:1;if(T!==0){var a;O=(a=P==null?void 0:P.profile)!=null?a:d;K1$(Z,O,f-Y,T)}return I}; EPd=function(Z){this.L=Z;this.In=this.Tm=this.V=this.j7=this.N=this.B=this.LS=this.j=this.fS=this.X=this.mJ=this.Ns=this.Bj=this.kS=0;this.ticks={}}; M3L=function(Z,I,d,Y,T){I=new g.w9(g.KD({},[],!1,!!T),I,d);T&&I.updateValue("secondaryIcon",shO(T));I.setIcon(shO(Y));g.z(Z,I);Z.UP.vk(I,!0);return I}; bhr=function(Z){var I=document.querySelectorAll('[data-tooltip-target-id="'+Z.tooltipRenderer.targetId+'"]');I=I.length>0?I[0]:null;var d=g.hi("ytp-chrome-bottom"),Y=g.hi("ytp-ad-module");Z.Z=!(d==null||!d.contains(I));Z.j=!(Y==null||!Y.contains(I));Z.V=!(I==null||!I.hasAttribute("data-tooltip-target-fixed"));return I}; HhJ=function(Z){var I,d,Y=(I=Z.getWatchNextResponse())==null?void 0:(d=I.contents)==null?void 0:d.twoColumnWatchNextResults,T,f,P,O,a;Z=(T=Z.getWatchNextResponse())==null?void 0:(f=T.playerOverlays)==null?void 0:(P=f.playerOverlayRenderer)==null?void 0:(O=P.endScreen)==null?void 0:(a=O.watchNextEndScreenRenderer)==null?void 0:a.results;if(!Z){var W,e;Z=Y==null?void 0:(W=Y.endScreen)==null?void 0:(e=W.endScreen)==null?void 0:e.results}return Z}; ftO=function(Z,I){return Math.max(0,Z.e7[0].B-I)}; bP=function(Z,I,d,Y,T,f,P,O,a){return rn(d,cHu())||d.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.y(d.renderingContent,CD)!==void 0?new HZ(Z,I,d,Y,T,f,P,O,a):rn(d,{ZA:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],Cj:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||d.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.y(d.renderingContent,gPL)!==void 0? new wt(Z,I,d,Y,T,f,P,O,a):rn(d,$Ia())||d.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.y(d.renderingContent,zz)!==void 0?new EI(Z,I,d,Y,f):rn(d,MZr())?new MI(I,d,Z,Y,T,a):rn(d,{ZA:["metadata_type_instream_ad_player_overlay_renderer"],Cj:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new L0(Z,I,d,Y,T,O):d.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.y(d.renderingContent,rHi)!==void 0?new QV(Z,I,d,Y,f):null}; Z$i=function(Z,I){Z.t5.D1("sdai",{adj4t:I.toFixed(3)});Z.mJ=I;I+=1;Z.D=I;Z.Z=I;ol(Z).then(function(d){Yp(Z,d)},function(){dE(Z)})}; Zt=function(Z,I,d,Y,T){T=T===void 0?!1:T;this.data=Z;this.offset=I;this.size=d;this.type=Y;this.L=(this.D=T)?0:8;this.dataOffset=this.offset+this.L}; Ipd=function(Z){var I="";g.KM(Z.childNodes,function(d){I+=d.nodeValue}); return I}; CLE=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);Z.addEventListener("settingsMenuInitialized",function(){var d=new HV(I.api,I.api.sI());g.z(I,d)})}; g.J5=function(Z){var I=g.p9(),d=I.client||{};if(Z.forcedExperiments){var Y=Z.forcedExperiments.split(","),T=[];Y=g.t(Y);for(var f=Y.next();!f.done;f=Y.next())T.push(Number(f.value));d.experimentIds=T}if(T=Z.homeGroupInfo)d.homeGroupInfo=JSON.parse(T);if(T=Z.getPlayerType())d.playerType=T;if(T=Z.L.ctheme)d.theme=T;if(T=Z.livingRoomAppMode)d.tvAppInfo=Object.assign({},d.tvAppInfo,{livingRoomAppMode:T});T=Z.deviceYear;Z.Y("html5_propagate_device_year")&&T&&(d.tvAppInfo=Object.assign({},d.tvAppInfo,{deviceYear:T})); if(T=Z.livingRoomPoTokenId)d.tvAppInfo=Object.assign({},d.tvAppInfo,{livingRoomPoTokenId:T});I.client=d;T=I.user||{};Z.enableSafetyMode&&(T=Object.assign({},T,{enableSafetyMode:!0}));var P;((P=d.tvAppInfo)==null?0:P.usePageidAsHeader)||!Z.pageId||(T=Object.assign({},T,{onBehalfOfUser:Z.pageId}));I.user=T;return I}; fUB=function(){}; dyE=function(Z){var I=Z.N;Z.N=[];return I}; Nn=function(){var Z=bq()&&!mc(29),I=g.y1("google tv")&&g.y1("chrome")&&!mc(30);return Z||I?!1:ymE()}; orD=function(){var Z=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; g.gE=function(Z,I,d){Z.L=I;Z.j=d||0}; cV=function(Z,I){this.D=I;this.L=new g.m7({K:"label",T:"ytp-ad-feedback-dialog-reason-label",G:[{K:"input",T:"ytp-ad-feedback-dialog-reason-input",J:{type:"radio",name:"feedback-reason-group"}},{K:"span",T:"ytp-ad-feedback-dialog-reason-text",Z1:g.Q1(Z)}]});this.Z=this.L.KS("ytp-ad-feedback-dialog-reason-input")}; Tci=function(Z){if(Z.isExternallyHostedPodcast)return Qv();var I=f5(Z.aE,Z.QT);if(Z.hlsvp){var d=UzL(Z.hlsvp,Z.clientPlaybackNonce,Z.SK);I.push(d)}return YrD(Z.nS,Z.isAd(),I,jU$(Z)).then(function(Y){PZ(Z,Y)})}; i$7=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V){gp.call(this,Z,I,d,Y,T,P,O,a,W,B);this.Li=f;this.l8=e;this.Df=w;this.Ms=V;this.uQ=this.Pk=null}; nf=function(){return""}; g.Pk=function(Z,I,d){var Y=DB();return new g.ox("IDB_NOT_SUPPORTED",{context:{caller:Z,publicName:I,version:d,hasSucceededOnce:Y==null?void 0:Y.hasSucceededOnce}})}; fpi=function(){var Z=null;VKD().then(function(I){return Z=I},function(I){return Z=N5d(I)}); return Z}; lAl=function(Z,I){var d=new z2a;g.ap(Z.xhr,"complete",function(){if(JR(Z.xhr)){var Y=g.mC(Z.xhr);if(I&&Z.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");Y=atob(Y)}try{var T=Z.V(Y)}catch(O){rv(Z,qO(new oP(13,"Error when deserializing response data; error: "+O+(", response: "+Y)),d));return}Y=oxn(Z.xhr.getStatus());Qt(Z,tH(Z));Y===0?trd(Z,T):rv(Z,qO(new oP(Y,"Xhr succeeded but the status code is not 200"),d))}else{Y=g.mC(Z.xhr);T=tH(Z);if(Y){var f= $Al(Z,Y);Y=f.code;var P=f.details;f=f.metadata}else Y=2,P="Rpc failed due to xhr error. uri: "+String(Z.xhr.X)+", error code: "+(Z.xhr.D+", error: ")+Z.xhr.getLastError(),f=T;Qt(Z,T);rv(Z,qO(new oP(Y,P,f),d))}})}; QUO=function(Z){PGL(function(){for(var I=g.t(Object.keys(wZ)),d=I.next();!d.done;d=I.next())Bw(Z,wZ[d.value])})}; wCi=function(Z,I){var d=I.indexOf("?");if(d>0){var Y=Em(20,I.substring(d+1));g.TA(Y,function(T,f){this.set(f,T)},Z); I=I.substring(0,d)}I=U1(85,I);g.TA(I,function(T,f){this.set(f,T)},Z)}; SF=function(Z){this.Gm=bp(Z)}; xrl=function(Z,I,d,Y,T,f,P,O,a,W,e){Z=Aka(Z,I,"core",d,Y,T,f,P,O,a,W,void 0,e);return{layoutId:Z.layoutId,layoutType:Z.layoutType,h5:Z.h5,layoutExitNormalTriggers:Z.layoutExitNormalTriggers,layoutExitSkipTriggers:Z.layoutExitSkipTriggers,layoutExitMuteTriggers:Z.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:Z.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:Z.layoutExitUserCancelledTriggers,r4:Z.r4,clientMetadata:new D0(Z.II),Tb:Z.Tb,adLayoutLoggingData:Z.adLayoutLoggingData}}; O$E=function(Z,I,d){var Y=Z.S7.get().getCurrentTimeSec(1,!1);Z.Ms.get().S.C().Vy()&&J1(Z.Q5.get(),"sdai","onopp.1;evt."+d.event+";start."+d.startSecs.toFixed(3)+";d."+d.QI.toFixed(3));qg(Z.D.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var T=Z.Z.get(),f=I.adPlacementRenderer.renderer.adBreakServiceRenderer,P=I.contentCpn,O=I.adPlacementRenderer.adSlotLoggingData;Mq(Z.Ms.get());var a=Z.Q5;var W=T.Ms.get();W=g.Q4(W.S.C().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var e=T.Ms.get();var B=g.Q4(e.S.C().experiments,"min_prefetch_offset_sec_for_livestream_optimization");e=d.startSecs*1E3;e={Do:new Tu(e,e+d.QI*1E3),Jl:!1,cueProcessedMs:Y*1E3};var w=d.startSecs+d.QI;if(Y===0)e.Uy=new Tu(0,w*1E3);else{B=d.startSecs-B;var V=B-Y;e.Uy=V<=0?new Tu(B*1E3,w*1E3):new Tu(Math.floor(Y+Math.random()*Math.min(V,W))*1E3,w*1E3)}f=qc$(T,f,P,e,O,[new LH(d)]);vr(T.Ms.get())&&J1(a.get(),"abrsm","cpi."+d.identifier+";cps."+d.startSecs+";cpd."+d.QI+";cts."+Y+";rbf."+e.Uy.start);a.get().S.e8(d.startSecs- Y,e.Uy.start/1E3-Y);return[f]})}; apL=function(Z,I){var d=null;Z.Z&&(d=(I?[Z.Z.defaultServiceEndpoint,Z.Z.defaultNavigationEndpoint]:[Z.Z.toggledServiceEndpoint]).filter(function(Y){return Y!=null})); return d||[]}; W4$=function(){return cw(rp(),function(Z){return""+Z})}; TJ=function(){this.L=new Map}; e7B=function(Z){var I=Z.vj();if(!(g.b(I.getPlayerState(),64)&&Z.gz().isLivePlayback&&Z.xl.startTimeMs<5E3)){if(Z.xl.type==="repeatChapter"){var d,Y=(d=wja(Z.nM()))==null?void 0:d.XW(),T;d=(T=Z.getVideoData())==null?void 0:T.Mj;Y instanceof g.Jo&&d&&(T=d[P7(d,Z.xl.startTimeMs)],Y.renderChapterSeekingAnimation(0,T.title));isNaN(Number(Z.xl.loopCount))?Z.xl.loopCount=0:Z.xl.loopCount++;Z.xl.loopCount===1&&Z.Wj.Rn("innertubeCommand",Z.getVideoData().toj)}Y={H$:"application_loopRangeStart"};if(Z.xl.type=== "clips"||Z.xl.type==="shortsLoop")Y.seekSource=58;I.seekTo(Z.xl.startTimeMs*.001,Y)}}; g.wi=function(Z){var I;return Z.zX||((I=Z.suggestions)==null?void 0:I[0])||null}; g.eA=function(Z,I,d){I&&I.cpn&&g.uL(new g.Wj("CPN provided in VideoData update",{Y4n:I.cpn,l4:Z.clientPlaybackNonce,PVZ:d}));if(d)Wa(I),Z.setData(I),BA(Z)&&Z.K$();else{I=I||{};Bcr(Z,I);w3E(Z,I);if(d=I.raw_reel_item_watch_response)Z.reelItemWatchResponse=d;mKa(Z,I);Z.publish("dataupdated")}}; F4B=function(Z,I,d,Y,T){var f=ip(Z.D.get(),"SLOT_TYPE_AD_BREAK_REQUEST");Y=[new Z1({getAdBreakUrl:Y.getAdBreakUrl,Fn:0,qU:0}),new VDa(!0)];Z=I.pauseDurationMs?I.lactThresholdMs?{slotId:f,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new SR(Z.L,f),slotFulfillmentTriggers:[new Nca(Z.L)],slotExpirationTriggers:[new An(Z.L,T),new du(Z.L,f)],r4:"core",clientMetadata:new D0(Y),adSlotLoggingData:d}:new C("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new C("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return Z instanceof C?Z:[Z]}; B9=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; nrd=function(Z){return Qw(Z.slot,Z.Ms.get())?new IG(Z):new sU7(Z)}; pKD=function(Z){if(!UT(Z.adLayoutMetadata))return!1;Z=Z.renderingContent;return g.y(Z,zz)||g.y(Z,rHi)||g.y(Z,h79)||g.y(Z,CD)||g.y(Z,gPL)?!0:!1}; mya=function(Z){return Z.indexOf("/mp4")>=0?1:Z.indexOf("/webm")>=0?2:Z.indexOf("/x-flv")>=0?3:Z.indexOf("/vtt")>=0?4:0}; RY=function(){this.D=-1;var Z=g.rh("LOCATION_PLAYABILITY_TOKEN");g.rh("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=qrJ(this))&&(Z=this.localStorage.get("yt-location-playability-token"));Z&&(this.locationPlayabilityToken=Z,this.L=void 0)}; P9$=function(Z,I){var d=g.aO(Z,0,1937011556),Y=g.aO(Z,0,1953654136);if(!d||!Y||Z.getUint32(d.offset+12)>=2)return null;var T=new DataView(I.buffer,I.byteOffset,I.length),f=g.aO(T,0,1937011556);if(!f)return null;I=T.getUint32(f.dataOffset+8);Y=T.getUint32(f.dataOffset+12);if(Y!==1701733217&&Y!==1701733238)return null;Y=new Sr7(Z.byteLength+I);po(Y,Z,0,d.offset+12);Y.data.setInt32(Y.offset,2);Y.offset+=4;po(Y,Z,d.offset+16,d.size-16);po(Y,T,T.byteOffset+f.dataOffset+8,I);po(Y,Z,d.offset+d.size,Z.byteLength- (d.offset+d.size));d=g.t([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(T=d.next();!T.done;T=d.next())T=g.aO(Z,0,T.value),Y.data.setUint32(T.offset,T.size+I);Z=g.aO(Y.data,0,1953654136);Y.data.setUint32(Z.offset+16,2);return Y.data}; mH=function(){wD.call(this)}; Dyi=function(Z){var I,d,Y,T,f=(I=Z.L)==null?void 0:(d=I.bannerData)==null?void 0:(Y=d.itemData)==null?void 0:(T=Y.exclusivesData)==null?void 0:T.expirationTimestampMs;I=(Number(f)-Date.now())/1E3;if(I>0){if(I<604800){var P,O,a,W;d=(P=Z.L)==null?void 0:(O=P.bannerData)==null?void 0:(a=O.itemData)==null?void 0:(W=a.exclusivesData)==null?void 0:W.exclusiveOfferCountdownText;if(d!==void 0)for(P=Date.now(),O=g.t(d),a=O.next();!a.done;a=O.next())if(a=a.value,a!==void 0&&a.text!==void 0&&(W=Number(a.textDisplayStartTimestampMs), !isNaN(W)&&P>=W)){a.insertCountdown?(I=a.text.replace(/\$0/,String(l4({seconds:I}))),Z.j.setContent(I)):Z.j.setContent(a.text);Z.j.show();break}}var e,B,w,V;Z.B.update({exclusive:(e=Z.L)==null?void 0:(B=e.bannerData)==null?void 0:(w=B.itemData)==null?void 0:(V=w.exclusivesData)==null?void 0:V.exclusiveOfferLabelText});Z.B.show();DM(Z);var N;(N=Z.Hk)==null||N.start()}else A2D(Z)}; kM=function(Z){Z.loader&&(Z.loader.dispose(),Z.loader=null,ZR(Z.jJ,null));Z.qj()?QLi(Z):Z.CZ()}; J2J=function(Z,I){Z.array=Z.array.filter(function(d){return!I.has(d)})}; Uz=function(Z,I,d,Y,T){g.p.call(this);var f=this;this.D=Z;this.Z=I;this.xu=d;this.context=T;this.L=new Map;Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.OZ()||Y.get().removeListener(f)})}; YKu=function(Z){return{videoId:BG(Z,2)}}; gK=function(Z){dV.call(this,"onesie");this.Yu=Z;this.L={};this.N=!0;this.Z=null;this.queue=new PT(this);this.B={}}; g.oG=function(Z){return!!Z.L&&R7$(Z.L)}; g.Y$=function(Z){g.p.call(this);this.eK={};this.Wb={};this.element=this.createElement(Z)}; X7=function(Z){this.Gm=bp(Z)}; qE=function(Z,I,d,Y,T,f,P){ag.call(this,Z,I,d,Y,f===void 0?!0:f,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",P===void 0?!1:P);this.L=null;this.N=T;this.hide()}; $o=function(Z,I,d,Y){this.triggeringLayoutId=I;this.L=d;this.triggerType="TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON";this.triggerId=Y||Z(this.triggerType)}; OhD=function(Z,I,d){if(d!==0){a:if(I=I.info,d=d===2,I.L)I=null;else{var Y=I.e7[0];if(I.range)var T=UI(I.range.start,Math.min(4096,I.Z));else{if(I.D&&I.D.indexOf("/range/")>=0||I.MC.H2("defrag")==="1"||I.MC.H2("otf")==="1"){I=null;break a}T=UI(0,4096)}T=new SC([new hD(5,Y.L,T,"createProbeRequestInfo"+Y.V,Y.YS)],I.D);T.Zb=d;T.L=I.L;I=T}I&&zx(Z,I)}}; v1=function(Z,I,d){(Z=Z.L[I])&&Z.Z(d)}; L4O=function(Z){for(var I=Z;Z&&Z!=Z.parent;)Z=Z.parent,DQ(Z)&&(I=Z);return I}; UyB=function(Z){return{targetAudioReadaheadMs:wd(Z,1),targetVideoReadaheadMs:wd(Z,2),backoffTimeMs:wd(Z,4),playbackCookie:e7(Z,7),videoId:BG(Z,8)}}; vr7=function(Z){Z=wx.includes("en")?Z.Y("delhi_modern_web_player_icons")?VZ():{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z", fill:"#fff"}}]}:Z.Y("delhi_modern_web_player_icons")?y2B():{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M11,11 C9.9,11 9,11.9 9,13 L9,23 C9,24.1 9.9,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M11,17 L14,17 L14,19 L11,19 L11,17 L11,17 Z M20,23 L11,23 L11,21 L20,21 L20,23 L20,23 Z M25,23 L22,23 L22,21 L25,21 L25,23 L25,23 Z M25,19 L16,19 L16,17 L25,17 L25,19 L25,19 Z",fill:"#fff"}}]};Z.T="ytp-subtitles-button-icon"; return Z}; tl=function(Z){var I=Z.toString();Z.name&&I.indexOf(Z.name)==-1&&(I+=": "+Z.name);Z.message&&I.indexOf(Z.message)==-1&&(I+=": "+Z.message);if(Z.stack)a:{Z=Z.stack;var d=I;try{Z.indexOf(d)==-1&&(Z=d+"\n"+Z);for(var Y;Z!=Y;)Y=Z,Z=Z.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");I=Z.replace(/\n */g,"\n");break a}catch(T){I=d;break a}I=void 0}return I}; lp9=function(Z){var I=Z.layoutId,d=Z.Ib;if(Z.GF){var Y={};kL(Z.pN,"slse",(Y.ec=I,Y.is=d,Y.ctp=Xc(I),Y))}}; uva=function(Z,I,d){var Y=Z.api.getCurrentTime()*1E3Z.N.length;)Y= void 0,(Y=Z.thumbnails.pop())==null||Y.dispose();for(;Z.thumbnails.lengthd.length;)Y=void 0,(Y=Z.D.pop())==null||Y.dispose(); for(;Z.D.length0&&(I.SetPreferMinimalPostProcessing=iR("SetPreferMinimalPostProcessing",Number(T)===1?1:0));if(d.L.K_($y7))(Z=Y.L.K_(p3a))&&(I["MediaSource.EnableUsingMediaSourceBufferedRange"]=iR("MediaSource.EnableUsingMediaSourceBufferedRange",Z===1?1:0)),(Z=Y.L.K_(xyd))&&(I.HTTP3=iR("HTTP3",Z===1?1:0)),(Z=Y.L.K_(K4i))&&(I["MediaSource.EnableUsingMediaSourceAttachmentMethods"]=iR("MediaSource.EnableUsingMediaSourceAttachmentMethods", Z===1?1:0)),(Z=Y.L.K_(CGB))&&(I.QUIC=iR("QUIC",Z===1?1:0)),(Z=Y.L.K_(Eri))&&(I["Media.PlayerConfiguration.DecodeToTexturePreferred"]=iR("Media.PlayerConfiguration.DecodeToTexturePreferred",Z===1?1:0)),(Z=Y.L.K_(b$d))&&(I["Media.AudioWriteDurationLocal"]=iR("Media.AudioWriteDurationLocal",Number(Z)));else for(Y=Object.keys(Z.experiments.flags),Y=g.t(Y),d=Y.next();!d.done;d=Y.next())d=d.value,d.startsWith("cobalt_h5vcc")&&(d.startsWith("cobalt_h5vcc_string")?(T=yzB(d,"cobalt_h5vcc_string"),d=bo(Z.experiments, d),T&&d&&(I[T]=iR(T,d))):d.startsWith("cobalt_h5vcc")&&(T=yzB(d,"cobalt_h5vcc"),d=g.Q4(Z.experiments,d),T&&d&&(I[T]=iR(T,d))));return I}; g.fk=function(Z){var I=g.vj.apply(1,arguments);if(I.length===0)return Oy(Z[0]);for(var d=Z[0],Y=0;Y=Z.length?0:I}; ag9=function(Z){g.p.call(this);var I=this;this.Z=new g.f2;this.N=0;this.D=void 0;this.state=2;this.AZ=Z.AZ;this.Eo=Z.Eo;this.GC=Object.assign({},Pqn,Z.GC||{});this.logger=Z.AZ.Pq();var d;this.onError=(d=Z.onError)!=null?d:function(){}; this.zA=Z.zA||!1;if(Q2i(Z)){var Y=this.AZ;this.B=function(){return kYu(Y).catch(function(P){P=I.reportError(new kt(I.L?20:32,"TRG:Disposed",P));I.D=P;var O;(O=I.L)==null||O.dispose();I.L=void 0;I.Z.reject(P)})}; Mzi(Y,function(){return void O0i(I)}); Y.X===2&&O0i(this)}else this.B=Z.Vc1,O0i(this);var T=this.logger.share();T.ww("o");var f=new yw(T,"o");this.Z.promise.then(function(){f.done();T.Xn();T.dispose()},function(){return void T.dispose()}); this.addOnDisposeCallback(function(){I.L?(I.L.dispose(),I.L=void 0):I.D?I.logger.Xn():(I.D=I.reportError(new kt(32,"TNP:Disposed")),I.logger.Xn(),I.Z.reject(I.D))}); g.z(this,this.logger)}; Dgd=function(Z){Z.Xw>8?pd(Z,Z.FW):Z.Xw>0&&(Z.zz[Z.pending++]=Z.FW);Z.FW=0;Z.Xw=0}; rku=function(Z){return{ol:wd(Z,1)}}; Zxu=function(Z){for(var I=0,d=0;d0&&(I.fexp=Z.experimentIds.toString());Z.V!==null&&(I.rtn=Z.D(Z.V));Z.fW&&(I.feature=Z.fW);Z.SI&&(I.ctrl=Z.SI);Z.yJ&&(I.ytr=Z.yJ);Z.b5&&(I.afmt=Z.b5);Z.offlineDownloadUserChoice&&(I.ODUC=Z.offlineDownloadUserChoice);Z.LS&&(I.lio=Z.D(Z.LS)); Z.B?(I.idpj=Z.kF,I.ldpj=Z.wz,Z.delayThresholdMet&&(I.dtm="1"),Z.In!=null&&(I.rti=Z.D(Z.In)),Z.gF&&(I.ald=Z.gF),Z.compositeLiveIngestionOffsetToken&&(I.clio=Z.compositeLiveIngestionOffsetToken)):Z.adType!==void 0&&(I.at=Z.adType);Z.EU&&(Z.Z||Z.B)&&(I.size=Z.EU);Z.Z&&Z.j.length&&(I.pbstyle=Z.j.join(","));Z.M8!=null&&(Z.Z||Z.B)&&(I.inview=Z.D(Z.M8));Z.B&&(I.volume=XP(Z,g.Ft(Z.segments,function(Y){return Y.volume})),I.st=XP(Z,g.Ft(Z.segments,function(Y){return Y.startTime})),I.et=XP(Z,g.Ft(Z.segments, function(Y){return Y.endTime})),nF(Z.segments,function(Y){return Y.playbackRate!==1})&&(I.rate=XP(Z,g.Ft(Z.segments,function(Y){return Y.playbackRate}))),nF(Z.segments,function(Y){return Y.L!=="-"})&&(I.als=g.Ft(Z.segments,function(Y){return Y.L}).join(",")),nF(Z.segments,function(Y){return Y.previouslyEnded})&&(I.pe=g.Ft(Z.segments,function(Y){return""+ +Y.previouslyEnded}).join(","))); I.muted=XP(Z,g.Ft(Z.segments,function(Y){return Y.muted?1:0})); nF(Z.segments,function(Y){return Y.visibilityState!==0})&&(I.vis=XP(Z,g.Ft(Z.segments,function(Y){return Y.visibilityState}))); nF(Z.segments,function(Y){return Y.connectionType!==0})&&(I.conn=XP(Z,g.Ft(Z.segments,function(Y){return Y.connectionType}))); nF(Z.segments,function(Y){return Y.D!==0})&&(I.blo=XP(Z,g.Ft(Z.segments,function(Y){return Y.D}))); nF(Z.segments,function(Y){return!!Y.N})&&(I.blo=g.Ft(Z.segments,function(Y){return Y.N}).join(",")); nF(Z.segments,function(Y){return!!Y.compositeLiveStatusToken})&&(I.cbs=g.Ft(Z.segments,function(Y){return Y.compositeLiveStatusToken}).join(",")); nF(Z.segments,function(Y){return!!Y.heartbeatLoggingToken})&&(I.hb_data=g.Ft(Z.segments,function(Y){return Y.heartbeatLoggingToken}).join(",")); nF(Z.segments,function(Y){return Y.Z!=="-"})&&(I.cc=g.Ft(Z.segments,function(Y){return Y.Z}).join(",")); nF(Z.segments,function(Y){return Y.clipId!=="-"})&&(I.clipid=g.Ft(Z.segments,function(Y){return Y.clipId}).join(",")); if(nF(Z.segments,function(Y){return!!Y.audioId})){var d="au"; Z.Z&&(d="au_d");I[d]=g.Ft(Z.segments,function(Y){return Y.audioId}).join(",")}Vz()&&Z.kS&&(I.ctt=Z.kS,I.cttype=Z.I0,I.mdx_environment=Z.mdxEnvironment); Z.u8&&(I.etype=Z.Ns!==void 0?Z.Ns:0);Z.d4&&(I.uoo=Z.d4);Z.livingRoomAppMode&&Z.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(I.clram=s2J[Z.livingRoomAppMode]||Z.livingRoomAppMode);Z.N?Mnn(Z,I):(I.docid=Z.videoId,I.referrer=Z.referrer,I.ei=Z.eventId,I.of=Z.pm,I.osid=Z.osid,I.vm=Z.videoMetadata,Z.adQueryId&&(I.aqi=Z.adQueryId),Z.autonav&&(I.autonav="1"),Z.playlistId&&(I.list=Z.playlistId),Z.F1&&(I.ssrt="1"),Z.Yf&&(I.upt=Z.Yf));Z.Z&&(Z.embedsRct&&(I.rct=Z.embedsRct),Z.embedsRctn&&(I.rctn= Z.embedsRctn),Z.compositeLiveIngestionOffsetToken&&(I.clio=Z.compositeLiveIngestionOffsetToken));Z.w4&&(I.host_cpn=Z.w4);return I}; s2=function(){throw Error("Invalid UTF8");}; h4u=function(Z,I){var d=[];Z=g.t(Z.values());for(var Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,Y.slot.slotId===I&&d.push(Y);return d}; Bk=function(Z){return Z.nS.Y("html5_disable_av1")?!0:!1}; m_i=function(Z,I){Z=lV(Z,I);D1.has(Z)&&(I=D1.get(Z)||[],g.$5(I[0],I[1],I[2],I[3],!0),D1.delete(Z))}; eMD=function(Z,I,d){if(Z!=null&&Z[P3]===Qn)return Z;if(Array.isArray(Z)){var Y=Z[nL]|0;d=Y|d&32|d&2;d!==Y&&Ht(Z,d);return new I(Z)}}; qQu=function(Z,I){I!=null?(Z.hE=I,Z.IN=!0):(Z.hE="",Z.IN=!1)}; UI=function(Z,I){return new j7(Z,Z+I-1)}; e2=function(Z,I){I=I===void 0?NaN:I;if(isNaN(I))var d=Z.size;else for(d=Z.L;d>2];P=I[(P&3)<<4|O>>4];O=I[(O&15)<<2|a>>6];a=I[a&63];d[f++]=""+W+P+O+a}W=0;a=Y;switch(Z.length-T){case 2:W=Z[T+1],a=I[(W&15)<<2]||Y;case 1:Z=Z[T],d[f]=""+I[Z>>2]+I[(Z&3)<<4|W>>4]+a+Y}return d.join("")}; ed=function(Z){return Z.L.c}; ASL=function(Z,I,d){I!==Z.N&&(Z.N&&(Z.Ns=!0),Z.N=I,Z.QE(I,Z.videoTrack,d))}; D_J=function(Z){var I=this;this.L={};this.Z={};this.A9={s6S:function(){return I.L}}; this.videoData=Z;var d,Y=(d=Z.Z)==null?void 0:d.D;Y&&Y.length>0?this.D=Y:(Z=Z.getAvailableAudioTracks(),this.D=Z.length>0?Eei(Z):[]);Z=g.t(SQa);for(d=Z.next();!d.done;d=Z.next())d=d.value,this.L[d]=ATO[d](this.D);this.Dt()}; ePE=function(Z,I){if(I.videoFormatCapabilities)for(var d=0;d":(Z=wOO(I.map(function(Y){return Y instanceof Rt?Y:Uc(String(Y))})),d+=">"+Z.toString()+""); return LP(d)}; g.kn=function(Z){return(!("button"in Z)||typeof Z.button!=="number"||Z.button===0)&&!("shiftKey"in Z&&Z.shiftKey)&&!("altKey"in Z&&Z.altKey)&&!("metaKey"in Z&&Z.metaKey)&&!("ctrlKey"in Z&&Z.ctrlKey)}; K1$=function(Z,I,d,Y){Y=Y===void 0?1:Y;d>=0&&(I in Z.L||(Z.L[I]=new TCD),Z.L[I].Jh(d,Y))}; B3=function(Z){return{fieldType:2,fieldName:Z}}; cT9=function(Z){return{videoId:BG(Z,1),formatId:I2(Z,2,A1),debugInfo:BK(Z,3,H0i)}}; fK=function(Z,I){return Z.Z5(I)?Z.vj():I}; rTu=function(Z,I){g5n(Z);for(var d=I.links||I.shareTargets,Y=0,T={},f=0;f0&&!H&&!l?(v.length===2&&(v=["noreferrer"]),g.T4(V,q,w,v[0]),V=dhO()):(A=J.join(","),yC()&&V.navigator&&V.navigator.standalone&&w&&w!="_self"?(A=g.vX("A"),g.M3(A,q),A.target=w,F&&(A.rel="noreferrer"),((N=N.attributionsrc)||N==="")&&A.setAttribute("attributionsrc",N),N=document.createEvent("MouseEvent"), N.initMouseEvent("click",!0,!0,V,1),A.dispatchEvent(N),V=dhO()):F?(V=g.T4(V,"",w,A),N=g.OZ(q),V&&(V.opener=null,N===""&&(N="javascript:''"),N='',N=LP(N),(q=V.document)&&q.write&&(q.write(NJ(N)),q.close()))):((V=g.T4(V,q,w,A))&&N.noopener&&(V.opener=null),V&&N.noreferrer&&(V.opener=null)));V&&(V.opener||(V.opener=window),V.focus());B.preventDefault()}}}(T)); T.Cp.addOnDisposeCallback(g.my(Z.tooltip,T.Cp.element));O==="Facebook"?Z.api.createClientVe(T.Cp.element,T.Cp,164504):O==="Twitter"&&Z.api.createClientVe(T.Cp.element,T.Cp,164505);Z.W(T.Cp.element,"click",function(e){return function(){Z.api.logClick(e.Cp.element)}}(T)); Z.api.logVisibility(T.Cp.element,!0);Z.D.push(T.Cp);Y++}}var a=I.more||I.moreLink,W=new g.k({K:"a",zm:["ytp-share-panel-service-button","ytp-button"],G:[{K:"span",T:"ytp-share-panel-service-button-more",G:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},G:[{K:"rect",J:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{K:"path",J:{d:"M 34.2,0 3.8,0 C 1.70,0 .01,1.70 .01,3.8 L 0,34.2 C 0,36.29 1.70,38 3.8,38 l 30.4,0 C 36.29,38 38,36.29 38,34.2 L 38,3.8 C 38,1.70 36.29,0 34.2,0 Z m -5.7,21.85 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z m -9.5,0 c 1.57,0 2.85,-1.27 2.85,-2.85 0,-1.57 -1.27,-2.85 -2.85,-2.85 -1.57,0 -2.85,1.27 -2.85,2.85 0,1.57 1.27,2.85 2.85,2.85 z", fill:"#4e4e4f","fill-rule":"evenodd"}}]}]}],J:{href:a,target:"_blank",title:"More"}});W.listen("click",function(e){var B=a;Z.api.logClick(Z.moreButton.element);B=Osi(Z,B);g.$n(B,Z.api,e)&&Z.api.Rn("SHARE_CLICKED")}); W.addOnDisposeCallback(g.my(Z.tooltip,W.element));Z.api.createClientVe(W.element,W,164506);Z.W(W.element,"click",function(){Z.api.logClick(W.element)}); Z.api.logVisibility(W.element,!0);Z.D.push(W);Z.moreButton=W;Z.updateValue("buttons",Z.D)}; ZKO=function(Z){this.Gm=bp(Z,500)}; v4=function(Z,I,d,Y,T,f){T=T===void 0?!1:T;f=f===void 0?!1:f;Rj.call(this,"ad-action-interstitial",Z,I,d,Y);this.interactionLoggingClientData=Y;this.gi=T;this.Gl=f}; GW=function(Z){return Z.e7[Z.e7.length-1].type===4}; IHi=function(Z){if(Z.instreamVideoAdRenderer===void 0)return Zv("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var I=g.t(Z.EN),d=I.next();!d.done;d=I.next()){d=d.value;if(d.Eh===void 0)return!1;if(d.sN===void 0)return Zv("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(Z.Nb===void 0||d.U1===void 0||Z.Nb!==d.U1&&d.U1!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(Z.instreamVideoAdRenderer.elementId===void 0)return Zv("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:Z.Nb,"matching APSR kind":d.U1}),!1}return!0}; csD=function(Z,I,d){var Y=d.reason==="m"||d.reason==="s";Z.policy.QW&&h4&&g.bT&&(!Y||d.L<1080)&&(I=I.filter(function(W){return W.video&&(!W.D||W.D.powerEfficient)})); if(I.length>0)if(B9()){var T=d0B(Z,I);I=I.filter(function(W){return!!W&&!!W.video&&W.Pj===T[W.video.qualityOrdinal].Pj})}else{var f,P,O=(f=I[0])==null?void 0:(P=f.video)==null?void 0:P.qualityOrdinal; if(O){d=I.filter(function(W){return!!W&&!!W.video&&W.video.qualityOrdinal===O}); var a=d0B(Z,d)[O].Pj;I=I.filter(function(W){return!!W&&!!W.video&&W.Pj===a})}}return I}; lR=function(Z){Z.L!=null&&Z.X!==-1&&(Z.L.h_(Z.X),Z.L.h_(Z.Tm),Z.Tm=-1,Z.X=-1)}; oyn=function(Z,I){Z=rAB(Z.L,function(Y){return Y.index.isLoaded()}); if(!Z)return NaN;Z=Z.index;var d=Z.Cl(I);return Z.getStartTime(d)===I?I:d0){var P;(P=Z.SK)==null||P.start()}}; uSl=function(Z,I){I>0&&(Z.D=I,Z.V.style.height=Z.D+"px")}; kw=function(Z,I,d,Y,T,f,P){P=P===void 0?null:P;g.m7.call(this,I);this.api=Z;this.macros={};this.componentType=d;this.j=this.V=null;this.b5=P;this.layoutId=Y;this.interactionLoggingClientData=T;this.Hj=f;this.sZ=null;this.FH=new si(this.element);g.z(this,this.FH);this.y5=this.W(this.element,"click",this.onClick);this.Bj=[];this.Ns=new uR(this.onClick,this);g.z(this,this.Ns);this.UZ=!1;this.j7=this.LS=null}; g.zb=function(Z,I,d){Z=Z.split(".");d=d||g.iN;for(var Y;Z.length&&(Y=Z.shift());)Z.length||I===void 0?d[Y]&&d[Y]!==Object.prototype[Y]?d=d[Y]:d=d[Y]={}:d[Y]=I}; T$B=function(Z){return g.T2("yt-player-drc-pref")?g.zG(Z,axu):Z}; g.T2=function(Z){var I=g.zo.NW(),d=g.zo.lU();if(!I&&!d||!window.JSON)return null;try{var Y=I.get(Z)}catch(T){}if(typeof Y!=="string")try{Y=d.get(Z)}catch(T){}if(typeof Y!=="string")return null;try{Y=JSON.parse(Y,void 0)}catch(T){}return Y}; Y4d=function(Z,I){Z.callback=I;Z.N=[];iK$(Z.nS.experiments)?fW(Z):$e$(Z)}; efi=function(Z){Z=(Z.renderer.linearAdSequenceRenderer||{}).linearAds;return Z!=null&&Z.length?Z.filter(function(I){var d,Y;return((d=g.y(I,l0))==null?void 0:(Y=d.playerOverlay)==null?void 0:Y.instreamSurveyAdRenderer)!=null}).length:0}; d2=function(Z,I,d){for(var Y=Z.length,T=typeof Z==="string"?Z.split(""):Z,f=0;f>6|192:((T&64512)==55296&&Y+1>18|240,I[d++]=T>>12&63|128):I[d++]=T>>12|224,I[d++]=T>>6&63|128),I[d++]=T&63|128)}return I}; SN=function(Z){return new Ss(Z.substring(0,2),Z.substring(2))}; QbJ=function(Z){if(g.IB(Z))for(var I in Z)I==="html_content"||Pyd(I,"_html")?Z[I]=LP(Z[I]):QbJ(Z[I])}; W9=function(Z){return Z?(Z.itag||"")+";"+(Z.lmt||0)+";"+(Z.xtags||""):""}; aH$=function(){var Z=[];$f(OKl,function(I){Z.push(I)}); return Z}; Wrn=function(Z){for(var I=new Uint8Array(Z.length),d=0;d=0?vG()-Gm:-1,d=sT?vG()-n3:-1,Y=a2>=0?vG()-a2:-1;if(Z==947190542)return 100;if(Z==79463069)return 200;Z=[2E3,4E3];var T=[250,500,1E3];W1(637,Error(),.001);var f=I;d!=-1&&d1500&&Y<4E3?500:P}; RQ=function(Z,I,d,Y){VaL(Z);I&&(I.unsubscribe("size-change",Z.Bz,Z),I.unsubscribe("back",Z.BB,Z));d.subscribe("size-change",Z.Bz,Z);d.subscribe("back",Z.BB,Z);if(Z.LM){g.xw(d.element,Y?"ytp-panel-animate-back":"ytp-panel-animate-forward");d.i5(Z.content);d.focus();Z.element.scrollLeft=0;Z.element.scrollTop=0;var T=Z.size;SHE(Z);g.A9(Z.element,T);Z.Z=new g.uX(function(){N$J(Z,I,d,Y)},20,Z); Z.Z.start()}else d.i5(Z.content),I&&I.detach()}; F2=function(Z,I){var d=wC(Z);if(d===1){for(I=d=0;I<7;I++)d=d*256+wC(Z);return d}for(var Y=128,T=0;T<6&&Y>d;T++)d=d*256+wC(Z),Y*=128;return I?d-Y:d}; kTB=function(Z){for(var I=[],d=0;d0)d=!0;else{for(var Y=g.t(Z.Z.values()),T=Y.next();!T.done;T=Y.next())if(T.value.cryptoPeriodIndex===d){d=!0;break a}d=!1}}Z.publish("log_qoe",{wvagt:"reqnews",canskip:d});d||Z.publish("rotated_need_key_info_ready",I)}; qeE=function(Z){var I;if(((I=Z.adVideoOffset)==null?void 0:I.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var d;return((d=Z.adVideoOffset)==null?void 0:d.percent)!=null}; Ser=function(Z){g.GA.call(this,Z,{K:"div",T:"ytp-overflow-panel",J:{id:$$(),role:"dialog"},G:[{K:"div",T:"ytp-overflow-panel-content",G:[{K:"div",T:"ytp-overflow-panel-action-buttons",Z1:"{{buttons}}"}]},{K:"button",zm:["ytp-overflow-panel-close","ytp-button"],J:{"data-tooltip-title":"Close",title:Z.C().Y("player_tooltip_data_title_killswitch")?"Close":""},G:[g.Hz()]}]},250);this.actionButtons=[];this.L=this.KS("ytp-overflow-panel-content");this.closeButton=this.KS("ytp-overflow-panel-close");this.W(this.closeButton, "click",this.zb);pi(Z,this.closeButton,this);this.listen("click",this.ej);this.W(Z,"videoplayerreset",this.hide);this.W(Z,"fullscreentoggled",this.onFullscreenToggled);this.hide()}; g.Au7=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next())if(d=d.value,d.cueRangeSetIdentifier){var Y=void 0;Z.lI.set(d.cueRangeSetIdentifier,(Y=d.playerCueRanges)!=null?Y:[])}}; e1=function(Z,I,d){d=d===void 0?!1:d;if(NX(Z))return!1;for(var Y=Z.pos;F2(Z,!1)!==I;)if(sM(Z),Y=Z.pos,NX(Z))return!1;d&&(Z.pos=Y);return!0}; gb$=function(Z,I,d,Y){if(Z.policy.B)!Y||!Z.L&&Z.policy.I0||g.rB(function(){Z0(Z)}); else{if(Z.isSeeking()&&Z.targetTime){var T=kJE(Z,I,d);if(T!==-1){Z.videoTrack.B=!1;Z.audioTrack.B=!1;Z.L=!0;Z.D=0;g.rB(function(){Z.loader.D1("seekreason",{reason:"behindMinSq",tgt:T});wu(Z,T)}); return}}d?Z.videoTrack.Ns=!1:Z.audioTrack.Ns=!1;var f=!Z.L;pk(Z.videoTrack,Z.targetTime)>=0&&pk(Z.audioTrack,Z.targetTime)>=0&&f?((Z.videoTrack.B||Z.audioTrack.B)&&Z.loader.D1("iterativeSeeking",{status:"done",count:Z.seekCount}),Z.videoTrack.B=!1,Z.audioTrack.B=!1):Y&&g.rB(function(){if(Z.L||!Z.policy.I0)Z0(Z);else{var P=I.startTime,O=I.duration;if(!Z.policy.B){var a=d?Z.videoTrack.B:Z.audioTrack.B,W=Z.videoTrack.j!==-1&&Z.audioTrack.j!==-1,e=Z.targetTime>=P&&Z.targetTime0&&np(Z.j(),f)}; BZn=function(){if(!vI.instance){var Z=new vI;vI.instance=Z}return vI.instance}; iK$=function(Z){return navigator.requestMediaKeySystemAccess?g.h_&&!g.wm()?mc("45"):g.sY||g.Fd?Z.CS("edge_nonprefixed_eme"):g.Kb?mc("47"):g.bT&&Z.CS("html5_enable_safari_fairplay")?!1:!0:!1}; Gd=function(Z,I,d){d!==void 0&&ys(Z,I,d?1:0)}; RzJ=function(Z,I){if(!Z.I0){var d=ZM(Z,"start",La());d=Z.pX.L(d).L;var Y={id:"lidarv"};Y.r=I;Y.sv="968";Kk!==null&&(Y.v=Kk);Qma(d,function(T,f){return Y[T]=T=="mtos"||T=="tos"?f:encodeURIComponent(f)}); I=U0O();Qma(I,function(T,f){return Y[T]=encodeURIComponent(f)}); I="//pagead2.googlesyndication.com/pagead/gen_204?"+Hu(xt(new p2,Y));mxu(I);Z.I0=!0}}; yui=function(Z,I,d,Y,T,f){f=f===void 0?0:f;g.p.call(this);var P=this;this.policy=Z;this.L=I;this.D=d;this.q8=T;this.B=f;this.N=this.Z=null;this.currentVideoDuration=this.j=-1;this.V=!1;this.t6=new HA;this.U9=Y-I.Fx()*1E3;this.t6.then(void 0,function(){}); this.timeout=new g.uX(function(){P.Ll("timeout")},1E4); g.z(this,this.timeout);this.X=isFinite(Y)||this.q8.C().experiments.CS("html5_pseudogapless_shorts")&&fA(I.getVideoData());this.status={status:0,error:null}}; vya=function(Z){var I=Z.LS.map(lp);Z.D&&I.push(Z.D);Z.iW(I);Z.L=null;Z.B=null;I=Z.S.getPlaybackRate();Jg(Z.S)&&O8a(Z,I);!Z.LS.includes(I)||Z.N?Z.L6(Z.L):Z.L6(lp(I))}; Ck=function(Z){this.value=Z}; gTd=function(Z,I,d,Y){I=I===void 0?[]:I;Z.OZ();var T=[],f=[];I=g.t(I);for(var P=I.next();!P.done;P=I.next())P=P.value,g.y(P,lHn)||g.y(P,uKi)?T.push(P):f.push(P);T=g.t(T);for(I=T.next();!I.done;I=T.next())eN(Z,I.value,d,Y);f=g.t(f);for(T=f.next();!T.done;T=f.next())eN(Z,T.value,d,Y)}; GHl=function(Z){if(!Z)throw Error();throw Z;}; z$7=function(Z){Z=g.t(Z);for(var I=Z.next();!I.done;I=Z.next())if(I=I.value,I.url&&(I=I.url.split("expire/"),!(I.length<=1)))return+I[1].split("/")[0];return NaN}; IUJ=function(Z){return Z!=null}; kHD=function(){var Z=["metadata_type_client_forecasting_ad_renderer"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_FORECASTING"]}}; tad=function(Z,I,d,Y,T,f,P){var O={layoutId:I,layoutType:d,r4:"core"};return{layoutId:I,layoutType:d,h5:new Map,layoutExitNormalTriggers:P,layoutExitSkipTriggers:[new h1(Z.L,I)],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new XU7(Y),new Xj(T)]),Tb:f(O),adLayoutLoggingData:Y.adLayoutLoggingData}}; $0B=function(Z){return/(vp9|vp09|vp8|avc1|av01)/.test(Z)}; wja=function(Z){if(Z.S.C().on)return Z.nN.get("ux")}; Ed=function(Z,I){Z=g.t(Z.listeners);for(var d=Z.next();!d.done;d=Z.next())I(d.value)}; pUu=function(Z){var I={};g.x9("json_condensed_response")&&(I.prettyPrint="false");return Z=U4(Z,I)}; x0d=function(Z,I,d){if(U1(3,Z.L))return!1;var Y=yA(d,al(16,Z.L));if(Y.timedOut<1&&Y.L<1)return!1;Y=Y.timedOut+Y.L;Z=MF(Z,I);d=yA(d,al(25,Z));return d.timedOut+d.L+0=0?Z:-Z-2}; sx=function(){bKO||(bKO=new c4("yt.offline"));return bKO}; gV=function(Z,I){var d=Z.l5();return I===Z.vj()&&Z.Z5(I)&&Z.Z5(d)?d:I}; IwL=function(Z){if(Z.started&&!Z.OZ()){Z.N.stop();var I=Z.t5.getPlayerState();g.b(I,32)&&Z.X.start();for(var d=HKi(Z),Y=Z.isEnded(I,d),T=[],f=[],P=g.t(Z.D),O=P.next();!O.done;O=P.next())O=O.value,O.active&&(Y?O.end<0x8000000000000:!O.contains(d))&&f.push(O);T=T.concat(cuL(Z,f));P=f=null;Y?(I=MG(Z.L,0x7ffffffffffff),f=I.filter(function(a){return a.end<0x8000000000000}),P=gyr(Z.L)):I=Z.Z<=d&&cY(I)?MaJ(Z.L,Z.Z,d):MG(Z.L,d); T=T.concat(ruE(Z,I));f&&(T=T.concat(cuL(Z,f)));P&&(T=T.concat(ruE(Z,P)));Z.Z=d;ZW7(Z,T)}}; dtr=function(Z,I){var d=document.createElement("img");Z.crossOrigin&&(d.crossOrigin=Z.crossOrigin);d.src=Z.levels[I.v9].VI(I.oP);d.onload=function(){var Y=I.v9,T=I.oP;Z.L!==null&&(Z.L.onload=null,Z.L=null);Y=Z.levels[Y];Y.loaded.add(T);EGd(Z);var f=Y.columns*Y.rows;T*=f;Y=Math.min(T+f-1,Y.Va()-1);T=[T,Y];Z.publish("l",T[0],T[1])}; return d}; rV=function(Z,I,d,Y){var T=["ytp-ad-survey-submit-button"];T.push("ytp-ad-survey-submit-button-rounded");HK.call(this,Z,I,d,Y,T,"survey-submit")}; oXn=function(Z,I,d){I&&(Z.El=I);d&&(Z.bJ=d)}; U_L=function(Z){Z.EV.Dn();if(Z.KI&&Z.rl)Z.rl=!1;else if(!Z.api.C().Tm&&!Z.rR()){var I=Z.api.getPlayerStateObject();g.b(I,2)&&g.ZW(Z.api)||Z.ac(I);!Z.api.C().b5||I.isCued()||g.b(I,1024)?Z.tf():Z.Z3.isActive()?(Z.Hi(),Z.Z3.stop()):Z.Z3.start()}}; iq=function(){this.L={};if(this.D=Yb9()){var Z=g.Zc("CONSISTENCY");Z&&jeL(this,{encryptedTokenJarContents:Z})}}; TIn=function(Z,I){Z=Z.itag.toString();I!==null&&(Z+=I.itag.toString());return Z}; SM=function(Z,I,d){d=d===void 0?!1:d;I.then(function(Y){Z.LS.delete(I);(d||Y===4)&&Z.X.resolve(Y)},function(Y){Z.X.reject(Y)})}; LK=function(Z,I,d,Y,T){Z.iv_load_policy=Y;I=aW(I);if(I.cta_conversion_urls)try{Z.cta_conversion_urls=JSON.parse(I.cta_conversion_urls)}catch(f){Zv(f)}d.SI&&(Z.ctrl=d.SI);d.yJ&&(Z.ytr=d.yJ);d.yT&&(Z.ytrcc=d.yT);d.isMdxPlayback&&(Z.mdx="1");Z.vvt&&(Z.vss_credentials_token=Z.vvt,d.IU&&(Z.vss_credentials_token_type=d.IU),d.mdxEnvironment&&(Z.mdx_environment=d.mdxEnvironment));Uh(Z,T);return Z}; g.k=function(Z){g.Y$.call(this,Z);this.LM=!0;this.In=!1;this.listeners=[]}; EE=function(Z){return Math.max(Z.bottom-Z.top,0)*Math.max(Z.right-Z.left,0)}; Qp$=function(Z){return Z.end==null?{start:String(Z.start)}:{start:String(Z.start),end:String(Z.end)}}; OI=function(Z,I){for(var d=[];aR(Z,I);)d.push(YA(Z));return d.length?d:void 0}; iW7=function(Z){return window.PressureObserver&&new window.PressureObserver(Z)}; cT=function(Z){if(Z!=null&&typeof Z!=="string")throw Error();return Z}; PMu=function(Z){Z=Z.QJ.YJ;var I;if(I=Z&&Z.getAttribute)I=/-[a-z]/.test("googleAvInapp")?!1:fwu&&Z.dataset?"googleAvInapp"in Z.dataset:Z.hasAttribute?Z.hasAttribute("data-"+rLJ()):!!Z.getAttribute("data-"+rLJ());I&&(zU().D=!0)}; QeE=function(Z){var I=Z.hB.VI(),d=[];g.TA(Z.L,function(T,f){d.push(f+"="+T)}); if(!d.length)return I;var Y=d.join("&");Z=Em(33,Z.hB)?"&":"?";return I+Z+Y}; OWl=function(Z){var I;return((I=V1(Z.V5.get(),2))==null?void 0:I.clientPlaybackNonce)||""}; iSi=function(Z){if(Z.Y("html5_stateful_audio_normalization")){var I=1,d=g.Q4(Z.nS.experiments,"html5_default_ad_gain");d&&Z.isAd()&&(I=d);var Y,T;d=(T=(Y=Z.N)==null?void 0:Y.audio.N)!=null?T:Z.Qu;if(d==null||isNaN(d))Z=Bwd(Z);else{Y=(0,g.o8)();Z.Nt=2;T=Y-Z.nS.L0<=Z.maxStatefulTimeThresholdSec*1E3;Z.applyStatefulNormalization&&T?Z.Nt=4:T||(Z.nS.IF=Infinity,Z.nS.L0=NaN);T=(Z.Nt===4?g.O4(Z.nS.IF,Z.minimumLoudnessTargetLkfs,Z.loudnessTargetLkfs):Z.loudnessTargetLkfs)-d;if(Z.Nt!==4){var f,P,O,a,W=((f= Z.playerResponse)==null?void 0:(P=f.playerConfig)==null?void 0:(O=P.audioConfig)==null?void 0:(a=O.loudnessNormalizationConfig)==null?void 0:a.statelessLoudnessAdjustmentGain)||0;T+=W}T=Math.min(T,0);Z.preserveStatefulLoudnessTarget&&(Z.nS.IF=d+T,Z.nS.L0=Y);Z=Math.min(1,Math.pow(10,T/20))||I}}else Z=Bwd(Z);return Z}; BC=function(Z,I,d){var Y=aw7(),T=Y.ag,f=Y.resolve,P=Y.reject;Z.D.push(function(O){if(I)try{var a=I(O);f(a)}catch(W){P(W)}else f(O)}); Z.Z.push(function(O){if(d)try{var a=d(O);f(a)}catch(W){P(W)}else P(O)}); Wkl(Z);return T}; $r=function(){this.BA=!0}; RIa=function(){return g.y1("(ps4; leanback shell)")||g.y1("ps4")&&g.wm()}; H9=function(){I3.instance||(I3.instance=new I3);return I3.instance}; g.Wy=function(Z){var I,d;if(!((I=Z.webPlayerContextConfig)==null?0:(d=I.embedsHostFlags)==null?0:d.enableLiteUx)||Z.sU||Z.j||Z.Z||Z.Bj==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";Z=g.Q4(Z.experiments,"embeds_web_lite_mode");return Z===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":Z>=0&&Z=0;)f.push(Z.substring(Y,T)),Y=Math.min(Z.indexOf("&",T)+1||d,d);f.push(Z.slice(Y));return f.join("").replace(NIu,"$1")}; ZSB=function(Z){var I=Z.BJ(),d=1,Y=!1,T=Fku(Z,I,Z.getVideoAspectRatio()),f=Z.app.C(),P=f.Y("enable_desktop_player_underlay"),O=i7d(),a=g.Q4(f.experiments,"player_underlay_min_player_width");a=P&&Z.L4&&Z.getPlayerSize().width>a;if(dk(Z)){var W=L$9(Z);var e=isNaN(W)||g.sY||h4&&g.bT||a;RZ&&!g.xT(601)?W=T.aspectRatio:e=e||f.controlsType==="3";e?a?(e=f.Y("place_shrunken_video_on_left_of_player")?16:Z.getPlayerSize().width-I.width-16,W=Math.max((Z.getPlayerSize().height-I.height)/2,0),e=new g.Ey(e,W,I.width, I.height),Z.h9.style.setProperty("border-radius","12px")):e=new g.Ey(0,0,I.width,I.height):(d=T.aspectRatio/W,e=new g.Ey((I.width-T.width/d)/2,(I.height-T.height)/2,T.width/d,T.height),d===1&&g.bT&&(W=e.width-I.height*W,W>0&&(e.width+=W,e.height+=W)));g.zL(Z.element,"ytp-fit-cover-video",Math.max(e.width-T.width,e.height-T.height)<1);if(O||Z.Jb)Z.h9.style.display="";Z.fR=!0}else{e=-I.height;RZ?e*=window.devicePixelRatio:g.EW&&(e-=window.screen.height);e=new g.Ey(0,e,I.width,I.height);if(O||Z.Jb)Z.h9.style.display= "none";Z.fR=!1}yn(Z.tv,e)||(Z.tv=e,g.$D(f)?(Z.h9.style.setProperty("width",e.width+"px","important"),Z.h9.style.setProperty("height",e.height+"px","important")):g.A9(Z.h9,e.getSize()),Y=new g.vS(e.left,e.top),g.HQ(Z.h9,Math.round(Y.x),Math.round(Y.y)),Y=!0);I=new g.Ey((I.width-T.width)/2,(I.height-T.height)/2,T.width,T.height);yn(Z.jZ,I)||(Z.jZ=I,Y=!0);g.K2(Z.h9,"transform",d===1?"":"scaleX("+d+")");P&&a!==Z.yE&&(a&&(Z.h9.addEventListener(ser,Z.WL),Z.h9.addEventListener("transitioncancel",Z.WL),Z.h9.classList.add(g.dP.VIDEO_CONTAINER_TRANSITIONING)), Z.yE=a,Z.app.Wj.publish("playerUnderlayVisibilityChange",Z.yE?"transitioning":"hidden"));return Y}; aL7=function(Z){return Z.action==="END_LINEAR_AD"||Z.action==="END_LINEAR_AD_PLACEMENT"}; UPO=function(Z){return new hD(Z.type,Z.L,Z.range,"getEmptyStubAfter"+Z.V,Z.YS,Z.startTime+Z.duration,0,Z.D+Z.Z,0)}; nXd=function(Z,I){Z.S.cueVideoByPlayerVars(I,2)}; hUE=function(Z,I,d){g.rB(function(){Z.apply(I,d)})}; g.x9=function(Z){Z=L_(Z);return typeof Z==="string"&&Z==="false"?!1:!!Z}; rNL=function(Z){var I=g.uS(Z.D),d=0,Y;for(Y in Z.L)g.Kc(I,Y)&&Z.L[Y]==1&&(d+=Z.D[Y][1],Z.L[Y]=2);return d}; SR=function(Z,I,d){this.triggeringSlotId=I;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=d||Z(this.triggerType)}; mtL=function(Z){Z=Z.L;for(var I in Z){var d=Z[I].index;if(d.isLoaded())return d.c$()+1}return 0}; eTn=function(Z,I,d){var Y=new lM$(d);Z&&(Y.D=!0,Y.j=.1);d.CS("html5_media_time_weight")&&(Y.D=!1);I&&(Y.Z=I/8);Y.N=i$()>=480;return Y}; BU=function(){return g.pb&&g.y1("version/")}; qbd=function(Z){return(Db(Z.videoData)||!!Z.videoData.liveUtcStartSeconds)&&(!!Z.videoData.liveUtcStartSeconds||aB(Z))&&!!Z.videoData.L}; ye=function(Z,I,d){Zv("Slot stage was "+I+" when calling method "+d,Z)}; $k=function(Z,I){Z.L.set(I.NL,I);var d=Z.Z.get(I.NL);if(d)try{d.Tu(Z.resolve(I.NL))}catch(Y){d.iB(Y)}}; Hr=function(Z,I,d,Y,T,f){T=T===void 0?0:T;f=f===void 0?!1:f;g.p.call(this);this.D=Z;this.Z=!1;this.In=Y;this.LS=f;this.j=!1;this.L=null;I>0&&(this.L=new g.uX(this.Xd,I,this),g.z(this,this.L));this.B=new g.uX(this.Xd,d,this);g.z(this,this.B);this.X=Sbr(this.D,T,1,Y);g.z(this,this.X);this.V=Sbr(this.D,0,Y,1);g.z(this,this.V);this.N=new oK;g.z(this,this.N)}; Ix=function(Z){var I=this;this.L=Z;this.Z=new Map;this.D=!1;this.done=new Promise(function(d,Y){I.L.addEventListener("complete",function(){d()}); I.L.addEventListener("error",function(T){T.currentTarget===T.target&&Y(I.L.error)}); I.L.addEventListener("abort",function(){var T=I.L.error;if(T)Y(T);else if(!I.D){T=g.ox;for(var f=I.L.objectStoreNames,P=[],O=0;O-1)if(Z.tooltipRenderer.targetId){I=[];Y=Y.split("$TARGET_ICON");var P=new g.Y$({K:"span",T:"ytp-promotooltip-details-icon", G:[Dtd[Z.tooltipRenderer.targetId]]});g.z(Z,P);for(var O=[],a=g.t(Y),W=a.next();!W.done;W=a.next())W=new g.Y$({K:"span",T:"ytp-promotooltip-details-component",Z1:W.value}),g.z(Z,W),O.push(W);Y.length===2?(I.push(O[0].element),I.push(P.element),I.push(O[1].element)):Y.length===1&&(f===0?(I.push(P.element),I.push(O[0].element)):(I.push(O[0].element),I.push(P.element)));f=I.length?I:null}else f=null;else f=Y;if(f){if(typeof f!=="string")for(g.Nd(Z.details),T=g.t(f),f=T.next();!f.done;f=T.next())Z.details.appendChild(f.value); else Z.update({details:f});T=!0}}g.o3(Z.details,T);T=Z.tooltipRenderer.acceptButton;f=!1;var e,B,w;((e=g.y(T,g.Ji))==null?0:(B=e.text)==null?0:(w=B.runs)==null?0:w.length)&&g.y(T,g.Ji).text.runs[0].text&&(Z.update({acceptButtonText:g.y(T,g.Ji).text.runs[0].text.toString()}),f=!0);g.o3(Z.acceptButton,f);e=Z.tooltipRenderer.dismissButton;B=!1;var V,N,q;((V=g.y(e,g.Ji))==null?0:(N=V.text)==null?0:(q=N.runs)==null?0:q.length)&&g.y(e,g.Ji).text.runs[0].text&&(Z.update({dismissButtonText:g.y(e,g.Ji).text.runs[0].text.toString()}), B=!0);g.o3(Z.dismissButton,B)}d&&(Z.sourceElement=d);Z.L=bhr(Z);Z.B=!1;Z.S.C().Y("web_player_hide_nitrate_promo_tooltip")||Z.o0(!0);Jor(Z);Z.LM&&!Z.X&&(Z.X=!0,Z.A9.Sw(0));Z.D&&Z.S.logVisibility(Z.element,Z.LM)}}; RUi=function(Z){return{first:wd(Z,1),r6:wd(Z,2)}}; Lkd=function(Z,I,d){if(I&&I.status===204)return!0;switch(Z){case "JSON":return!!d;case "XML":return Number(d&&d.return_code)===0;case "RAW":return!0;default:return!!d}}; WcD=function(Z){this.L=Z;Z.JR("/client_streamz/bg/frs",g.Q7("mk"))}; s_=function(Z,I,d,Y,T,f){T=T===void 0?!1:T;f=f===void 0?!1:f;kw.call(this,Z,{K:"button",T:"ytp-ad-button-vm"},"ad-button",I,d,Y);this.buttonText=this.buttonIcon=null;this.hide();this.L=T;this.D=f}; Uta=function(Z){if(Z=Z.commonConfig)this.url=Z.url,this.urlQueryOverride=Z.urlQueryOverride,Z.ustreamerConfig&&(this.Oy=rA(Z.ustreamerConfig)||void 0)}; Ys=function(Z,I,d){Z.playback.xa(I,d)}; jv=function(Z,I){if(I==0)return Z.L;if(I==1)return Z.D;var d=yf(Z.L,Z.Z,I),Y=yf(Z.Z,Z.N,I);Z=yf(Z.N,Z.D,I);d=yf(d,Y,I);Y=yf(Y,Z,I);return yf(d,Y,I)}; XJ=function(Z,I){I=Math.pow(10,I);return Math.floor(Z*I)/I}; E3=function(Z,I){I?Z.requestHeaders.Authorization="Bearer "+I:delete Z.requestHeaders.Authorization}; MZr=function(){return{ZA:["metadata_type_valid_ad_message_renderer"],Cj:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; wV=function(Z,I){uW.call(this,Z,I,"chapterCueRange","View chapter");this.V=""}; Gjr=function(Z,I){var d={};if(Z.app.C().kS){Z=g.t(yol);for(var Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,I.hasOwnProperty(Y)&&(d[Y]=I[Y]);if(I=d.qoe_cat)Z="",typeof I==="string"&&I.length>0&&(Z=I.split(",").filter(function(T){return vXu.includes(T)}).join(",")),d.qoe_cat=Z; lwO(d)}else for(Z=g.t(udO),Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,I.hasOwnProperty(Y)&&(d[Y]=I[Y]);return d}; zUn=function(Z,I,d,Y,T,f){this.displayName=Z;this.vssId=I;this.languageCode=d;this.kind=Y===void 0?"":Y;this.xtags=T===void 0?"":T;this.id=f===void 0?"":f}; kja=function(Z,I){Z.botguardData=I.playerAttestationRenderer.botguardData;I=I.playerAttestationRenderer.challenge;I!=null&&(Z.wR=I)}; tfE=function(Z,I,d){return Xpn(jw(Z,I),I,d)}; hDr=function(){this.L=g.tb;this.array=[]}; $ta=function(Z){var I,d;g.h(function(Y){if(Y.L==1){var T;if(T=g.wm()){var f;T=!((f=Z.N.D)==null||!f.getMetrics)}return T?g.m(Y,Z.N.getMetrics(),2):Y.return()}I=Y.D;if(!I)return Y.return();Zw(I)||(I=g.Xv(I));d=/^[A-Za-z0-9_-]+={0,3}$/;d.test(I)||(I=g.Nl(I,void 0,!0));Z.publish("ctmp","drm",{metrics:I});g.v6(Y)})}; gl=function(){T6.instance||(T6.instance=new T6);return T6.instance}; cA=function(Z){this.Zf=Z;this.L=new OA}; pp7=function(Z){this.value=Z}; xta=function(Z,I,d,Y,T){Rj.call(this,"action-companion",Z,I,d,Y,T)}; Kki=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w){Z=qZ(Z,I,d,T,f,P,O,a,B,Ps(Z,d,Y.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),w);I=Z.wj;d=new VV(Z.rO);Y=Z.layoutExitSkipTriggers;W>0&&(I.push(d),I.push(new Dg(W)),Y=[]);I.push(new hT(e));return{Q1:{layoutId:Z.layoutId,layoutType:Z.layoutType,h5:Z.h5,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:Z.r4,clientMetadata:new D0(I),Tb:Z.Tb, adLayoutLoggingData:Z.adLayoutLoggingData},BT:Y,mF:Z.layoutExitMuteTriggers,FU:Z.layoutExitUserInputSubmittedTriggers,qD:Z.layoutExitUserCancelledTriggers,XF:Z.XF}}; CML=function(Z,I){Z.N1.push(I);for(var d=!1,Y=g.t(Z.listeners),T=Y.next();!T.done;T=Y.next())d=T.value.qF(I)||d;Z.N=d;vr(Z.Ms.get())&&J1(Z.Q5.get(),"onci","cpi."+I.identifier+";cpe."+I.event+";cps."+I.startSecs+";cbi."+d)}; XK=function(){this.listeners=new Set}; $ra=function(Z){var I=new bzl(Z.L.eJ);g.z(Z,I);Z=[new Pn(Z.L.Q5),new EXn(Z.L.S),new bWO(Z.L.Q5),new XkB(Z.L.oF,Z.L.UY),new v3,new xk(Z.L.pN,Z.L.jL,Z.L.Q5),new HWl,new YP];Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())vTO(I,d.value);Z=g.t(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(d=Z.next();!d.done;d=Z.next())Jm(I,d.value,function(){}); return I}; xt=function(Z,I){var d=d===void 0?0:d;var Y=Y===void 0?!0:Y;$f(I,function(T,f){Y&&T===void 0||Z.add(f,T,d)}); return Z}; coO=function(Z){EB.call(this,"fully_viewable_audible_half_duration_impression",Z)}; gX$=function(Z){return(Z.j-Z.L)/1E3}; MfE=function(Z,I){var d=new Map;Z=g.t(Z);for(var Y=Z.next();!Y.done;Y=Z.next()){Y=Y.value;if(Y.layoutType==="LAYOUT_TYPE_MEDIA")var T="v";else Y.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(T=dB(Y.clientMetadata,"metadata_type_linked_in_player_layout_type"),T=T==="LAYOUT_TYPE_ENDCAP"||T==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":T==="LAYOUT_TYPE_SURVEY"?"s":T==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):T="u";d.set(Y.layoutId,T);if(T==="u"){var f={};T=I;Y=(f.c=Y.layoutId,f);T.S.D1("uct",Y)}}Z= I.OF();WO={contentCpn:Z,e9:d};Y={};d=(Y.ct=d.size,Y.c=Z,Y);I.S.D1("acc",d)}; roD=function(Z){function I(P){Z.h9&&Ii(Z);dk(Z)!==Z.fR&&Z.resize();Z.app.C().Y("web_enable_smart_zoom")&&Z.e2&&(P.state.isPaused()?Z.e2.pause():g.Nw(P,8)&&Z.e2.playState==="paused"&&Z.e2.play())} function d(P,O){Z.W3(P,O)} function Y(){Z.tv=new g.Ey(0,0,0,0);Z.jZ=new g.Ey(0,0,0,0)} function T(P){P.getVideoData()&&Z.updateVideoData(P.getVideoData())} var f=Z.app.Wj;f.addEventListener("initializingmode",Y);f.addEventListener("videoplayerreset",T);f.addEventListener("videodatachange",d);f.addEventListener("presentingplayerstatechange",I);Z.addOnDisposeCallback(function(){f.removeEventListener("initializingmode",Y);f.removeEventListener("videoplayerreset",T);f.removeEventListener("videodatachange",d);f.removeEventListener("presentingplayerstatechange",I)})}; Ds=function(Z){Ds[" "](Z);return Z}; IzB=function(Z){var I;return(I=Z[ZEr])!=null?I:Z[ZEr]=new Map(Ge9(GRd(Z)).map(function(d){return[d.getName(),DC(d,2)]}))}; dOu=function(Z){return nF(Z,function(I){return"FORMAT_STREAM_TYPE_OTF"===I.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; Ysa=function(Z,I,d,Y,T,f,P){var O=new g.UB;oAl.push(O);I&&O.listen("complete",I);O.rL("ready",O.M0);f&&(O.LS=Math.max(0,f));P&&(O.V=P);O.send(Z,d,Y,T)}; Nh=function(Z){var I;if((I=i2())==null?0:I.size){var d;BC(ww(Z.api.C(),(d=Z.api.getVideoData())==null?void 0:g.VO(d)),function(Y){(Y=i2n(Y))&&jwu(Z,Y)&&(Z.api.C().J5=Y)})}}; S4=function(Z,I,d,Y,T){Object.isExtensible(Z);I=Ej(Z.Gm,I,d,T);if(I!==null||Y&&Z.D!==Pt)return I}; E5=function(Z){$w.call(this,Z);var I=this;this.loaded=!1;this.X=0;this.L=!1;this.V={};this.Z=[];this.N=0;this.j=!1;this.events=new g.De(Z);g.z(this,this.events);this.D=new g.De(Z);g.z(this,this.D);this.events.W(Z,"modulesCreated",function(){I.PT()&&I.load()}); this.events.W(Z,"modulesDestroyed",function(d){var Y=I.api.getPresentingPlayerType();switch(d){case 2:case 3:d=Y!==1&&!(Y===5||Y===6||Y===7);break;case 4:d=!I.L;break;default:d=!0}d&&I.unload()})}; iJ=function(Z){g.k.call(this,{K:"div",zm:["ytp-player-content","ytp-iv-player-content"],G:[{K:"div",T:"ytp-free-preview-countdown-timer",G:[{K:"span",Z1:"{{label}}"},{K:"span",T:"ytp-free-preview-countdown-timer-separator",Z1:"\u2022"},{K:"span",Z1:"{{duration}}"}]}]});this.api=Z;this.L=null;this.Z=this.D=0;this.W(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; O0i=function(Z){var I,d,Y,T,f,P,O,a,W,e,B,w,V,N,q;return g.h(function(A){switch(A.L){case 1:I=void 0;Z.N++;d=new g.f2;Z.AZ instanceof Qy&&Z.AZ.N.push(d.promise);if(!Z.zA){A.xS(2);break}Y=new g.f2;setTimeout(function(){return void Y.resolve()}); return g.m(A,Y.promise,2);case 2:return T=Z.logger.share(),g.ez(A,4,5),Z.state=5,f={},P=[],g.m(A,NR(Z.AZ.snapshot({Ph:f,xz:P}),Z.GC.PT5,function(){return Promise.reject(new kt(15,"MDA:Timeout"))}),7); case 7:O=A.D;if(Z.OZ())throw new kt(Z.L?20:32,"MDA:Disposed");a=P[0];Z.state=6;return g.m(A,NR($Dr(Z.Eo,T,O),Z.GC.f1,function(){return Promise.reject(new kt(10,"BWB:Timeout"))}),8); case 8:W=A.D;if(Z.OZ())throw new kt(Z.L?20:32,"BWB:Disposed");Z.state=7;I=SK(T,function(){var J=bS7(Z,W,d,a);J.Z.promise.then(function(){return void Z.B()}); return J},"i"); case 5:g.ON(A);T.dispose();g.Bh(A,6);break;case 4:e=g.Bj(A);(B=I)==null||B.dispose();if(!Z.D){w=vvi(Z,e);d.resolve();var F;if(F=Z.AZ instanceof Qy&&Z.N<2)a:if(e instanceof kt)F=e.code!==32&&e.code!==20&&e.code!==10;else{if(e instanceof oP)switch(e.code){case 2:case 13:case 14:case 4:break;default:F=!1;break a}F=!0}if(F)return V=(1+Math.random()*.25)*(Z.L?6E4:1E3),N=setTimeout(function(){return void Z.B()},V),Z.addOnDisposeCallback(function(){return void clearTimeout(N)}),A.return(); Z.D=w}T.r5(Z.L?13:14);Z.Z.reject(Z.D);return A.return();case 6:Z.state=8,Z.N=0,(q=Z.L)==null||q.dispose(),Z.L=I,Z.Z.resolve(),g.v6(A)}})}; hH=function(Z){this.L=Z}; Tli=function(Z){var I=dB(Z.layout.clientMetadata,"metadata_type_layout_enter_ms"),d=dB(Z.layout.clientMetadata,"metadata_type_layout_exit_ms");Z=Z.sP.get();I=jQB(Z.Z,I,d);return Math.min(d,I!==null?I:Infinity)}; g.X9=function(){var Z=Xw$();if(!Z)return{};try{var I=Z.get("yt-player-lv");return JSON.parse(I||"{}")}catch(d){return{}}}; iT=function(Z,I,d){return{JE:iEd(Z.L,I*1E3,(d===void 0?0:d)*1E3),gZ:I}}; fzd=function(Z,I){Z.W3("dataloaded",I,I.getVideoData());Z.seekTo(Infinity);Z.playVideo()}; AWn=function(Z){var I=Z.S.getVideoData(),d=Z.j&&!I.isInlinePlaybackNoAd;Z.S.Y("html5_defer_modules_on_ads_only")&&!I.isAd()&&(d=!1);return d}; g.fn=function(Z){return encodeURIComponent(String(Z))}; jKr=function(){lz(kd$);var Z=lz(Ay);Z.L!=null&&Z.L.L?Q67(Z.L.L):zU().update(JB)}; nAL=function(Z,I,d){if(d.info.L.FY()){if(Z.y5&&PFn(d)&&(I=g.j1(d),I=g.aO(I,0,1953658222))){I.skip(1);var Y=Js(I)<<16|RO(I),T=Y&1,f=Y&4;if(Y&256){var P=Y&512,O=Y&1024;Y&=2048;var a=Bt(I);a<2||(T&&I.skip(4),f&&I.skip(4),T=Bt(I),I.skip((a-1)*(4+(P?4:0)+(O?4:0)+(Y?4:0))-4),I.data.setUint32(I.offset+I.L,T))}}if(I=Z.Bj&&!!Z.Bj.B.N)if(I=d.info.zx())I=QQi(d),P=Z.Bj,P2?(O=1/I,I=mm(Z,I)>=mm(P)+O):I=Z.getDuration()>=P.getDuration(),I=!I;I&&PFn(d)&&(I=Z.Bj,P2?(O=QQi(d),P=1/O,O=mm(Z,O),I=mm(I)+P-O):I=I.getDuration()- Z.getDuration(),I=1+I/d.info.duration,$Va(g.j1(d),I))}else{P=!1;Z.j||(OED(d),d.L&&(Z.j=d.L,P=!0,T=d.info,f=d.L.C0,T.V="updateWithEmsg",T.YS=f,T=d.L,T.RL&&(f=Z.B.index,f.D=!T.RL,f.Z="emsg"),T=d.info.L.info,f=g.j1(d),g.Me(T)?azd(f,1701671783):T.DR()&&Qm([408125543],307544935,f)));a:if((T=Ol(d,Z.policy.M8))&&Obr(d))O=WRL(Z,d),Z.X+=O,T-=O,Z.LS+=T,Z.Z=Z.policy.gf?Z.Z+T:NaN;else{if(Z.policy.P6){if(f=a=Z.loader.j3(g.wR(d),1),Z.Z>=0&&d.info.type!==6){if(Z.policy.gf&&isNaN(Z.sZ)){g.uL(new g.Wj("Missing duration while processing previous chunk", d.info.m5()));Z.loader.isOffline()&&!Z.policy.g5||eC$(Z,d,f);Blr(Z,"m");break a}Y=a-Z.Z;var W=Y-Z.X,e=d.info.YS,B=Z.j7?Z.j7.YS:-1,w=Z.J5,V=Z.sZ,N=Z.policy.Ty&&Y>Z.policy.Ty,q=Math.abs(W)>10,A=Math.abs(Z.Z-f)<1E-7;if(Math.abs(W)>1E-4){Z.Tm+=1;var F=(O=Z.j)==null?void 0:lDL(O);O={audio:""+ +Z.iT(),sq:e.toFixed(),sliceStart:a,lastSq:B.toFixed(),lastSliceStart:w,lastSliceDuration:V,totalDrift:(Y*1E3).toFixed(),segDrift:(W*1E3).toFixed(),skipRewrite:""+ +(N||q)};if(F==null?0:F.length)O.adCpn=F[0];Z.loader.handleError("qoe.avsync", O);Z.on=e}N||q||A||(f=Z.Z);O=WRL(Z,d,a);T-=O;Z.X=Y+O}}else f=isNaN(Z.Z)?d.info.startTime:Z.Z;eC$(Z,d,f)&&(Z.LS+=T,Z.Z=f+T,Z.policy.YO&&Z.Tm>=Z.policy.YO&&(Z.Tm=0,Z.loader.Zo({resetForRewrites:"count"})))}Z.j7=d.info;Z.sZ=z$(d);d.Z>=0&&(Z.J5=d.Z);if(P&&Z.j){P=wyn(Z,!0);VBu(d.info,P);Z.L&&VBu(Z.L.info,P);I=g.t(I);for(O=I.next();!O.done;O=I.next())O=O.value,T=void 0,Z.policy.B&&O.YS!==((T=Z.j)==null?void 0:T.C0)||VBu(O,P);(d.info.N||Z.L&&Z.L.info.N)&&d.info.type!==6||(Z.kS=P,Z.policy.D?(I=Nln(Z.j),Z.loader.O5(Z.B, P,I)):(I=Z.loader,I.u5.isManifestless&&ZZD(I,P,null,!!Z.B.info.video)),Z.policy.hV||FRE(Z))}}sQa(Z,d);Z.timestampOffset&&Pj$(d,Z.timestampOffset)}; g.Od=function(Z,I,d){d=d===void 0?350:d;g.k.call(this,{K:"div",zm:["ytp-time-display","notranslate"],J:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},G:[{K:"span",T:"ytp-time-wrapper",G:[{K:"div",T:"ytp-time-contents",G:[{K:"span",T:"ytp-time-clip-icon",Z1:"{{clipicon}}",J:{"aria-label":"Clip"}},{K:"span",T:"ytp-time-current",Z1:"{{currenttime}}"},{K:"span",T:"ytp-time-separator",Z1:" / "},{K:"span",T:"ytp-time-duration",Z1:"{{duration}}"}]}]},{K:"span",T:"ytp-clip-watch-full-video-button-separator", Z1:"\u2022"},{K:"span",T:"ytp-clip-watch-full-video-button",Z1:"{{watchfullvideo}}"}]});var Y=this;this.api=Z;this.X=d;this.liveBadge=new g.k({K:"button",zm:["ytp-live-badge","ytp-button"],J:{disabled:"true"},Z1:"{{content}}"});this.L=null;this.iX=this.D=!1;this.V=this.j=null;this.isPremiere=!1;this.B=this.N=null;this.Z=!1;this.xl=this.liveIndicatorText=null;this.LS=this.KS("ytp-clip-watch-full-video-button");this.liveBadge.setContent("Live");g.z(this,this.liveBadge);this.api.Y("web_player_updated_entrypoint")|| this.api.Y("delhi_modern_web_player")?this.liveBadge.i5(this.KS("ytp-time-contents")):this.liveBadge.i5(this.element);this.tooltip=I.EP();this.liveBadge.listen("click",this.onClick.bind(this));this.api.Y("delhi_modern_web_player")&&(I=this.KS("ytp-time-wrapper"),this.W(I,"click",this.olZ),I.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.W(this.LS,"click",this.ZN7);this.W(this.api,"serverstitchedvideochange",function(){R2J(Y,Y.api.getProgressState().isAtLiveHead)}); this.W(Z,"presentingplayerstatechange",this.W$);this.W(Z,"appresize",this.W$);this.W(Z,"onLoopRangeChange",this.onLoopRangeChange);this.W(Z,"videodatachange",this.onVideoDataChange);(I=Z.getVideoData())&&this.updateVideoData(I);this.W$();hCL(this,Z.getLoopRange())}; qs$=function(Z,I){if(I){if(Z==="fullwidth")return Infinity;if(Z==="fullheight")return 0}return Z&&(I=Z.match(mOl))&&(Z=Number(I[2]),I=Number(I[1]),!isNaN(Z)&&!isNaN(I)&&Z>0)?I/Z:NaN}; SsO=function(Z,I){var d=globalThis.sessionStorage.getItem(Z);if(!d)return["m"];try{var Y=ew(d);ZMu(Y,I)}catch(T){return globalThis.sessionStorage.removeItem(Z),["c"]}for(I=4;I<7&&Y[I]===0;)I++;for(d=0;d=d?(globalThis.sessionStorage.removeItem(Z),["e"]):["a",new Uint8Array(Y.buffer,I+4)]}; ArB=function(Z,I,d){!Z.U.Y("html5_tv_ignore_capable_constraint")&&g.RK(Z.U)&&(d=d.compose(Z.pQ(I)));return d}; DOE=function(Z,I){var d=0,Y=rd(I.D);if(Z.N=Y.length)return;if(d<0)throw Error("Missing data");Z.N=Z.Z;Z.D=0}for(T={};d-1&&(delete sJ["@type"],x=sJ);q&&Z.D.has(q)&&Z.D.delete(q);((TL=I.config)==null?0:TL.MD5)&&O7(I.config.MD5);if(x||(jt=Z.Z)==null||!jt.cW5(I.input,I.zN)){UJ.xS(15);break}return g.m(UJ,Z.Z.Mcn(I.input,I.zN),16);case 16:x=UJ.D;case 15:return RC$(Z, x,I),((yu=I.config)==null?0:yu.dI5)&&O7(I.config.dI5),Y(),UJ.return(x||void 0)}})}; bGd=function(Z,I){return Z.bu.Vu&&I.reason==="l"||Z.bu.LD?!1:Z.bu.L2?!0:I.reason==="l"||I.reason==="b"||I.reason==="o"}; yrn=function(Z){var I=new jA7;I.N=Z.Y("h5_gapless_support_types_diff");I.X=!1;I.LS=Z.Y("html5_gapless_use_format_info_fix");I.j=Z.Y("html5_gapless_disable_on_av1")&&!Z.Y("html5_gapless_enable_on_av1");I.B=Z.Y("html5_gapless_check_codec_diff_strictly");I.In=Z.Y("html5_gapless_on_ad_autoplay");I.V=Z.Y("html5_gapless_disable_diff_aspect_radio");I.D=Z.Y("html5_gapless_ad_autoplay_on_ad_to_video_only")&&!Z.Y("html5_disable_loop_range_for_shorts_ads");I.L=Z.Y("html5_pseudogapless_shorts_seek_to_next_start"); I.Z=Z.Y("html5_gapless_ad_autoplay_on_video_to_ad_only");return I}; vAu=function(Z,I,d){this.callback=Z;this.slot=I;this.S7=d;this.D=!1;this.L=0}; iGu=function(Z,I){var d=document.body||document;return g.vP(d,"click",function(Y){var T=xf(Y.target,function(f){return f===d||I(f)},!0); T&&T!==d&&!T.disabled&&(Y.currentTarget=T,Z.call(T,Y))})}; fW=function(Z){if(!Z.OZ())if(Z.D.length===0)Z.callback(Z.N);else{var I=Z.D[0],d=Z.Z[I],Y=oGJ(Z,d);if(iM&&iM.keySystem===I&&iM.kz5===JSON.stringify(Y))Z.D1("remksa",{re:!0}),NF$(Z,d,iM.keySystemAccess);else{var T,f;Z.D1("remksa",{re:!1,ok:(f=(T=iM)==null?void 0:T.keySystem)!=null?f:""});iM=void 0;navigator.requestMediaKeySystemAccess(I,Y).then(IE(function(P){NF$(Z,d,P,Y)}),IE(function(){Z.B=!Z.B&&Z.Z[Z.D[0]].flavor==="widevine"; Z.B||Z.D.shift();fW(Z)}))}}}; tdu=function(Z,I){Z.X&&(clearTimeout(Z.X),Z.X=null);Z.N=0;Z.Z&&Z.D!==0&&(I?uF(Z,I):Math.abs(Z.L)>=.15&&Z.kS("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),Z.L=0,cf(Z),g.KF(Z.api.getRootNode(),"ytp-grid-scrolling"))}; g.a3=function(Z,I){return I?Z.L.concat(Z.D):Z.L}; L9L=function(Z,I,d,Y){Y=Y===void 0?!1:Y;var T=Z.D.get(I),f=Z.N.getStartTime(I),P=Z.N.getDuration(I);Z.j=!1;Z.V=I;var O=f,a;((a=T==null?void 0:T.L)!=null?a:[Z.cpn]).forEach(function(W,e){var B,w=(B=T==null?void 0:T.D[e])!=null?B:P;if(d>=O&&d>>0;this.L=I>>>0}; W2=function(Z){if(!Z.D||!Z.policy.N&&!Z.D.info.uo){var I=Z.j.L;Z.D&&(I=I.filter(function(Y){return Y.audio.L===Z.D.info.audio.L}),I.length||(I=Z.j.L)); Z.D=Z.u5.L[I[0].id];if(I.length>1&&!Z.policy.sZ){if(!Z.policy.Qx){var d=g.Xe(I,function(Y){return Y.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); d&&(Z.D=Z.u5.L[d.id])}d=!1;if(d=Z.policy.kF?!0:Z.L.isLocked()?Z.L.L<240:uga(Z,Z.D))Z.D=Z.u5.L[g.N2(I).id]}}}; CNL=function(Z,I){I<100||tB(G47,1)}; Zx=function(Z,I){var d=Z.y3();Z.expanded!==d&&(Z.expanded=d,I===void 0||I?(Z.b5.stop(),Z.J5.stop(),Z.y5.stop(),Z.b5.start()):(Z.Z.o0(Z.expanded),g.zL(Z.badge.element,"ytp-suggested-action-badge-expanded",Z.expanded)),Z.Rp())}; Ga=function(Z){this.value=Z}; g.zCJ=function(Z){var I=Z.S.C();if(I.Z||hL(I)||I.j||!I.Tv&&!I.Wb)return!1;var d=Z.S.getPresentingPlayerType();if(d===2||d===3)return!1;Z=Z.S.getVideoData();if(!Z)return!1;d=!Z.isLiveDefaultBroadcast||I.Y("allow_poltergust_autoplay");d=Z.isLivePlayback&&(!I.Y("allow_live_autoplay")||!d);I=Z.isLivePlayback&&I.Y("allow_live_autoplay_on_mweb");return!d||I}; g.ev=function(){g.mv.call(this);this.L=0;this.endTime=this.startTime=null}; g.k49=function(Z){if(Z.videoData&&Z.videoData.wR){for(var I=[Z.videoData.wR],d=g.t(Object.keys(Z.L)),Y=d.next();!Y.done;Y=d.next())Y=Y.value,Z.xx[Y]&&Z.L[Y]&&(Y=Z.L[Y](Z.xx))&&I.push(Y);return I.join("&")}return null}; Vf=function(Z){return UT(Z.adLayoutMetadata)?(Z=g.y(Z.renderingContent,B2))&&Z.pings?!0:!1:!1}; XMi=function(Z){Z=new Zt(Z.data,Z.offset,Z.size,Z.type,Z.D);var I=Js(Z);Z.skip(7);var d=Bt(Z);if(I===0){I=Bt(Z);var Y=Bt(Z)}else I=wk(Z),Y=wk(Z);Z.skip(2);for(var T=RO(Z),f=[],P=[],O=0;O0)T(f);else{a:{if(f&&typeof f.length=="number"){if(g.IB(f)){var P=typeof f.item=="function"||typeof f.item=="string";break a}if(typeof f==="function"){P=typeof f.item=="function";break a}}P=!1}g.KM(P?g.FZ(f):f,T)}}}; uga=function(Z,I){for(var d=0;d+1Y}; W6l=function(Z,I,d,Y){Y=Y===void 0?null:Y;var T=g.vX("SCRIPT");T.id=I;T.onload=function(){d&&setTimeout(d,0)}; T.onreadystatechange=function(){switch(T.readyState){case "loaded":case "complete":T.onload()}}; Y&&T.setAttribute("nonce",Y);g.Om(T,typeof Z==="string"?g.N5(Z):Z);Z=document.getElementsByTagName("head")[0]||document.body;Z.insertBefore(T,Z.firstChild);return T}; ET=function(Z){return g.QE(g.Vs(),Z)}; N6=function(Z){var I=Z.V5,d=Z.Ms;Z=Z.hZ;var Y=new tBD,T={Lw:new wuL(I.get(),d),Ms:d};return{Wk:new $OO(d,Z,I,T),context:T,eF:Y}}; c2$=function(Z,I,d,Y){Y=Y===void 0?{}:Y;Z.D.add(Y.layer||0);Z.N=function(){grd(Z,I,d,Y);var P=g.lg(Y.layer);if(P){for(var O=g.t(Z.V),a=O.next();!a.done;a=O.next())a=a.value,MO(Z,a[0],a[1]||P,Y.layer);P=g.t(Z.X);for(O=P.next();!O.done;O=P.next())O=O.value,tGl(Z,O[0],O[1])}}; d||g.vv(Y.layer)||Z.N();if(Y.Vp)for(var T=g.t(Y.Vp),f=T.next();!f.done;f=T.next())lsl(Z,f.value,Y.layer);else g.nl(Error("Delayed screen needs a data promise."))}; pyl=function(Z){var I=Z===void 0?{}:Z;Z=I.TJ===void 0?!1:I.TJ;var d=I.Ym===void 0?!1:I.Ym;I=I.Qi===void 0?!1:I.Qi;return Z?I?3:2:d?-1:1}; Zon=function(){FT==null&&(FT=new Dw);return FT}; CB7=function(Z,I,d){var Y=Z.L.get(I);Y?(Y.push(d),g.ik(Y,function(T,f){return T.f_-f.f_})):Z.L.set(I,[d])}; sl=function(Z){var I;g.mB()?jM()==Z&&(I=document):I=Z;return I&&(Z=iU(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],I))?(I=Z.call(I),I instanceof Promise?I:Promise.resolve()):Promise.resolve()}; xOi=function(){var Z=[new e6(JB)],I=lz(Ay);I.D=Z;nP$(I,function(){aQ("i")})?uI.done||(kzi(),nn()):aQ("i")}; KRd=function(Z){var I,d;return((I=Z.renderer)==null?void 0:(d=I.adBreakServiceRenderer)==null?void 0:d.getAdBreakUrl)!==void 0}; hx=function(Z){pP.call(this,Z===void 0?"none":Z);this.L=null;this.Z=10;this.transitions=[{from:"none",to:"application_navigating",action:this.B},{from:"application_navigating",to:"none",action:this.j},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]}; CFO=function(Z,I,d){var Y=this;d=d===void 0?{}:d;this.Zf=I;this.D=this.status=0;this.OZ=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(d.method||"GET",Z);if(d.headers){Z=d.headers;I=g.t(Object.keys(Z));for(var T=I.next();!T.done;T=I.next())T=T.value,this.xhr.setRequestHeader(T,Z[T])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(f){Y.n$(f)}; Z=IE(function(f){Y.onDone(f)}); this.xhr.addEventListener("load",Z,!1);this.xhr.addEventListener("error",Z,!1);d.body?this.xhr.send(d.body):this.xhr.send();this.xhr.addEventListener("progress",IE(function(f){Y.onProgress(f)}),!1)}; $1=function(){return iy||fL?!!QD&&!!QD.platform:!1}; EAd=function(Z){return Z.L.cmodel==="CHROMECAST ULTRA/STEAK"||Z.L.cmodel==="CHROMECAST/STEAK"}; QQi=function(Z){var I=g.j1(Z);var d=(d=g.aO(I,0,1936286840))?d.data.getUint32(d.dataOffset+8):NaN;isNaN(d)&&(Z=Z.info.L.L,d=(I=g.aO(I,0,1836476516))?g.fz(I):Z?OE(Z):NaN);return d}; bEr=function(Z){var I;g.h(function(d){switch(d.L){case 1:return g.ez(d,2),g.m(d,Z.N,4);case 4:g.gE(d,3);break;case 2:g.Bj(d);case 3:(I=Z.Z)==null||I.disconnect(),g.v6(d)}})}; B0u=function(Z){var I=I===void 0?51:I;var d=[];hn(Z,tnD,6).forEach(function(Y){DC(Y,2)<=I&&d.push(DC(Y,1))}); return d}; Z1=function(Z){this.value=Z}; g.vl=function(Z){return ed(Z)==="WEB_REMIX"}; G4=function(Z){return Z.api.isFullscreen()||Z.w4&&Z.api.JB()}; s6=function(){this.data=new Uint8Array(2048);this.pos=0;q7||(q7=CE("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_."))}; pF=function(Z,I,d){Z.state.L[I]=function(){return d.apply(Z,g.vj.apply(0,arguments))}}; g.uX=function(Z,I,d){g.p.call(this);this.L=Z;this.ke=I||0;this.D=d;this.Z=(0,g.u5)(this.jx,this)}; rrO=function(Z){var I,d,Y,T,f,P,O,a,W,e;return g.h(function(B){return B.L==1?(Y=(I=Z)==null?void 0:(d=I.responseContext)==null?void 0:d.globalConfigGroup,T=g.y(Y,HEu),P=(f=Y)==null?void 0:f.hotHashData,O=g.y(Y,crn),W=(a=Y)==null?void 0:a.coldHashData,(e=pM().resolve(new gG(vI)))?P?T?g.m(B,gAE(e,P,T),2):g.m(B,gAE(e,P),2):B.xS(2):B.return()):W?O?g.m(B,MBJ(e,W,O),0):g.m(B,MBJ(e,W),0):B.xS(0)})}; hli=function(Z){var I=Z.url;Z=Z.mZm;this.D=I;this.N=Z;this.Z=(new Date).getTime()-17040672E5;this.L={};for(var d=/[?&]([^&=]+)=([^&]*)/g;Z=d.exec(I);)this.L[Z[1]]=Z[2]}; Z5d=function(Z,I){var d=(I-Z.L)/(Z.D-Z.L);if(d<=0)return 0;if(d>=1)return 1;for(var Y=0,T=1,f=0,P=0;P<8;P++){f=jv(Z,d);var O=(jv(Z,d+1E-6)-f)/1E-6;if(Math.abs(f-I)<1E-6)return d;if(Math.abs(O)<1E-6)break;else f1E-6&&P<8;P++)f0)if(d.info.YS===Z.N.YS&&d.info.D=0&&Z.N.YS>=0&&!et(Z.N,d.info))throw new g.Wj("improper_continuation",Z.N.m5(),d.info.m5());eNl(Z.N,d.info)||Blr(Z,"d")}else if(d.info.D>0)throw new g.Wj("continuation_of_null",d.info.m5());Z.N=d.info;Z.B=d.info.L;if(d.info.D===0){if(Z.L)if(!Z.loader.isOffline()||Z.policy.g5)Z.loader.D1("slice_not_fully_processed", {buffered:Z.L.info.m5(),push:d.info.m5()});else throw new g.Wj("slice_not_fully_processed",Z.L.info.m5(),d.info.m5());ED(Z);Z.mJ=Y}else{if(Z.mJ&&Y&&Z.mJ!==Y)throw Z=new g.Wj("lmt_mismatch",d.info.YS,Z.mJ,Y),Z.level="WARNING",Z;!d.info.L.FY()&&Z.j&&(Y=d.info,T=Z.j.C0,Y.V="updateWithEmsg",Y.YS=T)}if(Z.L){Y=g.Eq(Z.L,d);if(!Y)throw new g.Wj("failed_to_merge",Z.L.info.m5(),d.info.m5());Z.L=Y}else Z.L=d;a:{d=g.Me(Z.L.info.L.info);if(Z.L.info.type!==3){if(!Z.L.info.N)break a;Z.L.info.type===6?nAL(Z,I,Z.L): olJ(Z,Z.L);Z.L=null}for(;Z.L;){Y=Z.L.D.totalLength;if(Z.Ns<=0&&Z.In===0){var f=Z.L.D,P=-1;T=-1;if(d){for(var O=0;O+80))break;if(B!==408125543)if(B===524531317)O=!0,e>=0&&(T=f.jd()+e,a=!0);else{if(O&&(B===160||B===163)&&(P<0&&(P=W),a))break;B===163&&(P=Math.max(0,P),T=f.jd()+e);if(B===160){P<0&&(T=P=f.jd()+ e);break}f.skip(e)}}P<0&&(T=-1)}if(P<0)break;Z.Ns=P;Z.In=T-P}if(Z.Ns>Y)break;Z.Ns?(Y=wZd(Z,Z.Ns),Y.B&&VeJ(Z,Y),nAL(Z,I,Y),NaB(Z,Y),Z.Ns=0):Z.In&&(Y=wZd(Z,Z.In<0?Infinity:Z.In),Z.In-=Y.D.totalLength,NaB(Z,Y))}}Z.L&&Z.L.info.N&&(NaB(Z,Z.L),Z.L=null)}; Sv=function(Z,I){g.KF(Z.S.getRootNode(),I)}; gSJ=function(Z,I){var d=I&2147483648;d&&(Z=~Z+1>>>0,I=~I>>>0,Z==0&&(I=I+1>>>0));Z=vu(Z,I);return typeof Z==="number"?d?-Z:Z:d?"-"+Z:Z}; lv=function(Z){this.value=Z}; g.s9d=function(){}; nt9=function(Z,I,d){var Y=String(g.iN.location.href);return Y&&Z&&I?[I,YML(En9(Y),Z,d||null)].join(" "):null}; DpB=function(Z){Z.Z.read().then(Z.X,Z.onError).then(void 0,wp)}; r5L=function(Z){this.t5=Z;this.L=new Map}; Dj9=function(Z,I){if(Z.L){var d=Z.L.Un.QI-(I.startTime+Z.X-Z.L.Un.startSecs);d<=0||(d=new Ax(Z.L.Un.startSecs-(isNaN(Z.X)?0:Z.X),d,Z.L.Un.context,Z.L.Un.identifier,"stop",Z.L.Un.L+I.duration*1E3),Z.D1("cuepointdiscontinuity",{segNum:I.YS}),D9(Z,d,I.YS))}}; sM9=function(Z){return g.Mm(nau(),Z)}; QOL=function(Z,I,d){var Y;(Y=Z.L.get(d))==null||Y.delay.dispose();Z.L.delete(d);return new Promise(function(T){T={id:d,mediaTime:I,delay:new g.uX(function(){}), resolve:T};Z.L.set(d,T);ou(Z,T)})}; DW=function(Z){var I=!!Z.xl&&Z.api.getPresentingPlayerType()!==2,d=Z.clipStart,Y=Z.clipEnd,T=!0,f=!0;I&&Z.xl?(d=Z.xl.startTimeMs/1E3,Y=Z.xl.endTimeMs/1E3):(T=d>Z.Z.D,f=Z.Z.L>0&&Y1E3&&g.uL(new g.Wj("IL Attach cache exceeded limit"))}O= lV(d,I);D1.has(O)?m_i(d,I):q3O.set(O,!0)}}Y=Y.filter(function(e){e.csn!==I?(e.csn=I,e=!0):e=!1;return e}); d={csn:I,parentVe:d.getAsJson(),childVes:g.Ft(Y,function(e){return e.getAsJson()})}; I==="UNDEFINED_CSN"?XW("visualElementAttached",f,d):Z?TG("visualElementAttached",d,Z,f):g.g6("visualElementAttached",d,f)}; R3=function(){g.dx.call(this);this.items={}}; A4L=function(Z,I){I=I===void 0?{}:I;var d;return g.h(function(Y){if(Y.L==1)return g.m(Y,g.k_(),2);if(Y.L!=3){d=Y.D;if(!d)return Y.return();QO(Z);return g.m(Y,Jk(Z,I),3)}return g.m(Y,VT(Z,d),0)})}; D$D=function(Z,I){I=I||Z.videoTrack&&Z.videoTrack.D&&Z.videoTrack.D.startTime||Z.getCurrentTime();var d=Z.videoTrack,Y=Z.L;I=Y.nextVideo&&Y.nextVideo.index.Cl(I)||0;Y.Bj!==I&&(Y.j7={},Y.Bj=I,y3(Y,Y.L));I=!Y.L.isLocked()&&Y.In>-1&&(0,g.o8)()-Y.Ing.uS(RNB).length?null:Wv(I,function(d,Y){Y=Y.toLowerCase().split("=");if(Y.length!=2||Lhl[Y[0]]===void 0||!Lhl[Y[0]](Y[1]))throw Error("Entry ("+Y[0]+", "+Y[1]+") is invalid.");d[Y[0]]=Y[1];return d},{})}catch(d){return null}}; EQa=function(Z,I){Z.N||(Z.N=!0,Z.D&&(I?Z.D.kS.hide():Z.D.hide()),I?(Z=Z.Z,Z.d4.show(),Z.show()):Z.Z.show())}; U$$=function(Z,I){I&&I.screen&&(Z.N=new g.qv(I.screen.width,I.screen.height))}; g.VO=function(Z){return Z.oauthToken||Z.nS.zD}; iEd=function(Z,I,d){Z=Z.D;var Y=g.SX(Z,{f_:I},function(P,O){return P.f_-O.f_}); Y=Y<0?(Y+2)*-1:Y;if(Y>=0)for(var T=Y;T<=Y+1&&T=f.f_-d&&I<=f.Mc+d)return f}}; EI=function(Z,I,d,Y,T){g2.call(this,Z,I,d,Y);Z=dB(d.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,T,Z,d.layoutId)}; VY=function(Z){return Z===1||Z===2}; mpu=function(Z){return Z.videoData.Zt()&&Z.Y("html5_enable_shorts_seek_details_logging")}; Qc=function(){var Z=JdB();y49||Z===void 0||(y49=new Worker(EV(Z),void 0));return y49}; qG=function(Z,I){this.info=Z;this.callback=I;this.state=1;this.SZ=this.o8=!1;this.nF=null}; ym=function(Z){this.Gm=bp(Z)}; va9=function(Z){Z.V=!0;Z.B=!0;Z.j=-1;wM(Z,Infinity)}; l8l=function(Z){function I(f,P,O){P=P.match("_rid")?P.split("_rid")[0]:P;typeof O==="number"&&(O=JSON.stringify(O));f.requestIds?f.requestIds.push({endpoint:P,id:O}):f.requestIds=[{endpoint:P,id:O}]} var d={};Z=g.t(Object.entries(Z));for(var Y=Z.next();!Y.done;Y=Z.next()){var T=g.t(Y.value);Y=T.next().value;T=T.next().value;switch(Y){case "GetBrowse_rid":I(d,Y,T);break;case "GetGuide_rid":I(d,Y,T);break;case "GetHome_rid":I(d,Y,T);break;case "GetPlayer_rid":I(d,Y,T);break;case "GetSearch_rid":I(d,Y,T);break;case "GetSettings_rid":I(d,Y,T);break;case "GetTrending_rid":I(d,Y,T);break;case "GetWatchNext_rid":I(d,Y,T);break;case "yt_red":d.isRedSubscriber=!!T;break;case "yt_ad":d.isMonetized=!!T}}return d}; uxd=function(Z){return Au(function(){return lm$(Z,Z.next())})}; BCr=function(Z,I,d){if(Z.D!==0&&d&&I.e7[0].zx()){var Y=I.e7[0].YS,T=I.e7[0].B;I=I.isDecorated();GQB(Z,Y,T,I,d)}}; o47=function(Z){return{iv:e7(Z,5),km5:v2(Z,7)}}; zNB=function(Z){this.Gm=bp(Z)}; kQJ=function(Z){IM9(Z,function(I,d){I=new URL(I);I.searchParams.set("format","json");var Y=!1;try{Y=SV().navigator.sendBeacon(I.toString(),d.It())}catch(T){}Y||(Z.LS=!1);return Y})}; uJ=function(Z){var I=Z.Y("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";lJ.call(this,I,g.D$.H5);var d=this;this.S=Z;this.L=!1;this.D=new g.uX(function(){g.KF(d.element,"ytp-menuitem-highlighted")},0); this.A5=Z.sI();Z=Z.Y("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M12 .5C11.73 .5 11.48 .60 11.29 .79C11.10 .98 11 1.23 11 1.5V3.5C11 3.76 11.10 4.01 11.29 4.20C11.48 4.39 11.73 4.5 12 4.5C12.26 4.5 12.51 4.39 12.70 4.20C12.89 4.01 13 3.76 13 3.5V1.5C13 1.23 12.89 .98 12.70 .79C12.51 .60 12.26 .5 12 .5ZM3.79 1.29C3.61 1.46 3.51 1.70 3.50 1.94C3.48 2.19 3.56 2.43 3.72 2.63L3.79 2.70L5.29 4.20L5.37 4.27C5.56 4.42 5.80 4.50 6.04 4.49C6.29 4.47 6.52 4.37 6.70 4.20C6.87 4.02 6.97 3.79 6.99 3.54C7.00 3.30 6.92 3.06 6.77 2.86L6.70 2.79L5.20 1.29L5.13 1.22C4.93 1.06 4.69 .98 4.44 1.00C4.20 1.01 3.96 1.11 3.79 1.29ZM18.86 1.22L18.79 1.29L17.29 2.79L17.22 2.86C17.07 3.06 16.99 3.30 17.00 3.54C17.01 3.79 17.12 4.02 17.29 4.20C17.47 4.37 17.70 4.48 17.95 4.49C18.19 4.50 18.43 4.42 18.63 4.27L18.70 4.20L20.20 2.70L20.27 2.63C20.42 2.43 20.50 2.19 20.49 1.95C20.48 1.70 20.37 1.47 20.20 1.29C20.02 1.12 19.79 1.01 19.54 1.00C19.30 .99 19.06 1.07 18.86 1.22ZM19.20 6.01L19 6H5L4.79 6.01C4.30 6.06 3.84 6.29 3.51 6.65C3.18 7.02 2.99 7.50 3 8V16L3.01 16.20C3.05 16.66 3.26 17.08 3.58 17.41C3.91 17.73 4.33 17.94 4.79 17.99L5 18H19L19.20 17.98C19.66 17.94 20.08 17.73 20.41 17.41C20.73 17.08 20.94 16.66 20.99 16.20L21 16V8C20.99 7.50 20.81 7.02 20.48 6.66C20.15 6.29 19.69 6.06 19.20 6.01ZM5 16V8H19V16H5ZM17.29 19.79C17.11 19.96 17.01 20.20 17.00 20.44C16.98 20.69 17.06 20.93 17.22 21.13L17.29 21.20L18.79 22.70L18.86 22.77C19.06 22.92 19.30 23.00 19.54 22.99C19.79 22.98 20.02 22.87 20.20 22.70C20.37 22.52 20.48 22.29 20.49 22.04C20.50 21.80 20.42 21.56 20.27 21.36L20.20 21.29L18.70 19.79L18.63 19.72C18.43 19.56 18.19 19.48 17.94 19.50C17.70 19.51 17.46 19.61 17.29 19.79ZM5.37 19.72L5.29 19.79L3.79 21.29L3.72 21.36C3.57 21.56 3.49 21.80 3.50 22.04C3.51 22.29 3.62 22.52 3.79 22.70C3.97 22.87 4.20 22.98 4.45 22.99C4.69 23.00 4.93 22.92 5.13 22.77L5.20 22.70L6.70 21.20L6.77 21.13C6.92 20.93 7.00 20.69 6.99 20.45C6.97 20.20 6.87 19.97 6.70 19.79C6.52 19.62 6.29 19.52 6.04 19.50C5.80 19.49 5.56 19.57 5.37 19.72ZM12 19.5C11.73 19.5 11.48 19.60 11.29 19.79C11.10 19.98 11 20.23 11 20.5V22.5C11 22.76 11.10 23.01 11.29 23.20C11.48 23.39 11.73 23.5 12 23.5C12.26 23.5 12.51 23.39 12.70 23.20C12.89 23.01 13 22.76 13 22.5V20.5C13 20.23 12.89 19.98 12.70 19.79C12.51 19.60 12.26 19.5 12 19.5Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M21 7v10H3V7h18m1-1H2v12h20V6zM11.5 2v3h1V2h-1zm1 17h-1v3h1v-3zM3.79 3 6 5.21l.71-.71L4.5 2.29 3.79 3zm2.92 16.5L6 18.79 3.79 21l.71.71 2.21-2.21zM19.5 2.29 17.29 4.5l.71.71L20.21 3l-.71-.71zm0 19.42.71-.71L18 18.79l-.71.71 2.21 2.21z",fill:"white"}}]};this.setIcon(Z);this.subscribe("select",this.Z,this);this.listen(ser,this.N);g.z(this,this.D)}; XZL=function(Z,I){return Z.L.length===0?!1:(Z=Z.L[Z.L.length-1])&&Z.buffer===I.buffer&&Z.byteOffset+Z.length===I.byteOffset}; g.G6=function(Z){return{value:Z,done:!1}}; z6=function(Z,I,d,Y,T,f,P,O){I?I.test(d)?(Z.nj(T,I,P),I.j||f()):(!I.D||I.N?d=!1:(d=(0,g.o8)(),Y?I.L||(I.L=d):I.L=0,f=!Y&&d-I.D>3E4,d=I.L&&d-I.L>1E3||f?I.N=!0:!1),d&&(O=Object.assign({},Z.Gb(I),O),O.wn=P,O.we=T,O.wsuc=Y,Z.t5.D1("workaroundReport",O),Y&&(I.reset(),Z.Z[T]=!1))):Z.t5.pj("auth",2,"BROWSER_OR_EXTENSION_ERROR",VQ({source:"watchdog",name:P}))}; ks=function(Z,I,d){j4.call(this,Z,I);this.B=d;Z=this.index=new g.EL;Z.D=!1;Z.Z="d"}; k3=function(Z,I){XT[I]=XT[I]||{count:0};var d=XT[I];d.count++;d.time=(0,g.o8)();Z.L||(Z.L=g.Zb(0,function(){var Y=(0,g.o8)(),T;for(T in XT)XT[T]&&Y-XT[T].time>6E4&&delete XT[T];Z&&(Z.L=0)},5E3)); return d.count>5?(d.count===6&&Math.random()*1E5<1&&(d=new g.Wj("CSI data exceeded logging limit with key",I.split("_")),I.indexOf("plev")>=0||g.uL(d)),!0):!1}; pp=function(Z){return function d(){return av(d,function(Y){if(Y.L==1)return g.tp(Y,2),g.m(Y,{ag:iW(Z)},4);if(Y.L!=2)return Y.return(Y.D);g.ON(Y);return g.Bh(Y,0)})}()}; $$9=function(Z,I,d,Y,T){teO(d,I);Y=ug({cttAuthInfo:GY(I)||void 0},I);d={csn:I,ve:d.getAsJson(),eventType:1};T&&(d.clientData=T);I==="UNDEFINED_CSN"?XW("visualElementShown",Y,d):Z?TG("visualElementShown",d,Z,Y):g.g6("visualElementShown",d,Y)}; Br=function(Z,I,d,Y,T){T=T===void 0?new Set:T;if(I.Pj==="")return"unkn";if((I.itag==="304"||I.itag==="266")&&Z.kS)return"blk2khfr";if(Z.j&&I.video&&I.video.qualityOrdinal>Z.j)return"max"+Z.j;if(Z.d4&&I.Pj==="h"&&I.video&&I.video.qualityOrdinal>1080)return"blkhigh264";if(I.Pj==="(h"&&!d.V)return"enchdr";if((Y===void 0?0:Y)&&Vg(I)&&!Z.mJ)return"blk51live";if((I.Pj==="MAC3"||I.Pj==="mac3")&&!Z.N)return"blkac3";if((I.Pj==="MEAC3"||I.Pj==="meac3")&&!Z.B)return"blkeac3";if(I.Pj==="M"||I.Pj==="m")return"blkaac51"; if((I.Pj==="so"||I.Pj==="sa")&&!Z.LS)return"blkamb";if(!Z.Yl&&pZJ(I)&&(!d.B||I.Pj!=="1e"))return"cbc";if(!d.B&&pZJ(I)&&I.Pj==="1e")return"cbcav1";if((I.Pj==="i"||I.Pj==="I")&&!Z.eK)return"blkiamf";var f;if(Z.SK&&((f=I.audio)==null?void 0:f.D)===!0)return"blkvbcabr";var P,O;if(Z.on&&(I.Pj==="1"||I.Pj==="1h"||d.B&&I.Pj==="1e")&&((P=I.video)==null?0:P.qualityOrdinal)&&((O=I.video)==null?void 0:O.qualityOrdinal)>Z.on)return"av1cap";Y=d.N.get(I.Pj);if(!Z.I0&&Y&&Y.mu>0)return T.add(I.Pj),"byerr";var a; if((a=I.video)==null?0:a.fps>32){if(!d.Bj&&!Bw(d,wZ.FRAMERATE))return"capHfr";if(Z.J5&&I.video.qualityOrdinal>=4320)return"blk8khfr";if(RP(I)&&Z.wz&&I.T_&&I.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(Z.pS&&I.pS>Z.pS)return"ratecap";if(Z.Ns>0&&I.zx()&&I.video.height>Z.Ns)return"mvhcap";Z=XC7(d,I);return Z!==!0?Z:!0}; tx=function(Z,I){Z=ic(Z,I);return Z>=0?Z-I:0}; g.rm=function(Z,I,d,Y,T){I=I===void 0?!1:I;Y=Y===void 0?!1:Y;T=T===void 0?!1:T;g.dx.call(this);this.In=T;this.V=!1;this.N=new oK(this);this.B=this.j=null;this.Z=this.D=!1;g.z(this,this.N);this.target=Z;this.L=I;this.X=d||Z;this.V=Y;I&&(g.Vd&&this.target.setAttribute("draggable","true"),T||(this.target.style.touchAction="none"));$s(this)}; g.pr=function(Z,I,d,Y,T,f,P,O,a,W,e,B){Z=Z.charAt(0)+Z.substring(1).toLowerCase();d=d.charAt(0)+d.substring(1).toLowerCase();if(I==="0"||I==="-1")I=null;if(Y==="0"||Y==="-1")Y=null;var w=e.C(),V=w.userDisplayName&&g.bZ(w);g.k.call(this,{K:"div",zm:["ytp-button","ytp-sb"],G:[{K:"div",T:"ytp-sb-subscribe",J:V?{title:e.C().Y("player_tooltip_data_title_killswitch")?g.yd("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}):"","data-tooltip-title":g.yd("Subscribe as $USER_NAME",{USER_NAME:w.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":Jx(w),"data-tooltip-opaque":String(g.Dh(w)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},G:[{K:"div",T:"ytp-sb-text",G:[{K:"div",T:"ytp-sb-icon"},Z]},I?{K:"div",T:"ytp-sb-count",Z1:I}:""]},{K:"div",T:"ytp-sb-unsubscribe",J:V?{title:e.Y("player_tooltip_data_title_killswitch")?g.yd("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}):"","data-tooltip-title":g.yd("Subscribed as $USER_NAME",{USER_NAME:w.userDisplayName}), "aria-label":"Unsubscribe to channel","data-tooltip-image":Jx(w),"data-tooltip-opaque":String(g.Dh(w)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},G:[{K:"div",T:"ytp-sb-text",G:[{K:"div",T:"ytp-sb-icon"},d]},Y?{K:"div",T:"ytp-sb-count",Z1:Y}:""]}],J:{"aria-live":"polite"}});var N=this;this.channelId=P;this.S=e;this.Z=B;var q=this.KS("ytp-sb-subscribe"),A=this.KS("ytp-sb-unsubscribe");f&&g.xw(this.element,"ytp-sb-classic");if(T){O?this.L():this.D();var F=function(){var v=N.channelId; if(a||W){var l=e.getVideoData();ma(e.NA(),l.unsubscribeCommand,{feature:a});e.Rn("UNSUBSCRIBE",v)}q.focus();q.removeAttribute("aria-hidden");A.setAttribute("aria-hidden","true")},J=function(){if(w.Ns){var v=N.channelId; if(a||W){var l={c:v};var X;g.Zm.isInitialized()&&(X=oDB(l));l=X||"";if(X=e.getVideoData())if(X=X.subscribeCommand){var H=e.NA();H?(ma(H,X,{botguardResponse:l,feature:a}),e.Rn("SUBSCRIBE",v)):g.nl(Error("No innertube service available when updating subscriptions."))}else g.nl(Error("No subscribe command in videoData."));else g.nl(Error("No video data available when updating subscription."))}A.focus();A.removeAttribute("aria-hidden");q.setAttribute("aria-hidden","true")}else x$O(g.t7(N.S.C()),"sb_button", N.N)}; this.W(q,"click",J);this.W(A,"click",F);this.W(q,"keypress",function(v){v.keyCode===13&&J(v)}); this.W(A,"keypress",function(v){v.keyCode===13&&F(v)}); this.W(e,"SUBSCRIBE",this.L);this.W(e,"UNSUBSCRIBE",this.D);this.Z&&V&&(Evd(e),pi(e,q,this),pi(e,A,this))}else g.xw(q,"ytp-sb-disabled"),g.xw(A,"ytp-sb-disabled")}; ww7=function(Z){var I;g.h(function(d){if(d.L==1)return g.x9("start_client_gcf")||g.x9("delete_gcf_config_db")?g.x9("start_client_gcf")?g.m(d,g.k_(),3):d.xS(2):d.return();d.L!=2&&((I=d.D)&&g.sc()&&!g.x9("delete_gcf_config_db")?(Z.B=!0,mwD(Z)):(Kh9(Z),XsE(Z)));return g.x9("delete_gcf_config_db")?g.m(d,U6d(),0):d.xS(0)})}; Rq=function(){return(iy||fL)&&QD?!QD.mobile&&(ET("iPad")||ET("Android")||ET("Silk")):ET("iPad")||ET("Android")&&!ET("Mobile")||ET("Silk")}; C1O=function(Z,I,d,Y,T,f,P,O,a,W,e,B){g.p.call(this);var w=this;this.t5=Z;this.loader=I;this.policy=d;this.audioTrack=Y;this.videoTrack=T;this.u5=f;this.Bk=P;this.y5=O;this.Z=a;this.timing=W;this.Ns=e;this.X=B;this.L=[];this.N={};this.sZ=this.d4=!1;this.kS=this.on=this.PK=0;this.j7={yG:0,eA:0};this.J5={yG:0,eA:0};this.V=null;this.Bj={N8:[],sF:[]};this.fS={N8:[],sF:[]};this.j=null;this.B=[];this.A9={W77:function(){return w.L}, p0m:function(){return w.N}, GNm:function(){w.L.length=0}, ndr:function(){return w.videoData.d4}, gdS:function(){return w.kS}, hl5:function(V){w.kS=V}, DZn:function(V){w.j7.eA=V}, s7:function(V){w.j=V}, JC:function(V){w.B=V}}; this.videoData=this.t5.getVideoData();this.In=this.videoData.latencyClass==="LOW"?this.policy.GS:this.videoData.latencyClass==="ULTRALOW"?this.policy.Ip:this.policy.Zu;this.policy.WS&&(this.Tm=new pn(this.loader,this.policy,this.Bk),g.z(this,this.Tm))}; g.xs=function(Z,I){g.t6(function(){g.KM(I,function(d){teO(d,Z);var Y=ug({cttAuthInfo:GY(Z)||void 0},Z);d={csn:Z,ve:d.getAsJson(),eventType:4};Z==="UNDEFINED_CSN"?XW("visualElementShown",Y,d):g.g6("visualElementShown",d,Y)})})()}; $A=function(Z){return Z&&"status"in Z?Z.status:-1}; Ue=function(Z){this.value=Z}; ci=function(Z){if(Z instanceof Hi)return Z.L;throw Error("");}; A0u=function(Z){var I=ul(Z)?"custom_metric_viewable":Z.toLowerCase();return MR(r5,function(d){return d==I})}; hzu=function(Z){Cd=Z}; Eal=function(Z,I){Z=Z.L.get(I);if(!Z)return{};Z=Z.wv();if(!Z)return{};I={};return I.YT_ERROR_CODE=Z.lS.toString(),I.ERRORCODE=Z.Dp.toString(),I.ERROR_MSG=Z.errorMessage,I}; Cn=function(Z,I){if(I)for(var d=0;d=2147483648&&(d=0),k5("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:f,transactionDuration:I,transactionCount:Z.transactionCount,dbDuration:d}),Z.D=!0),Rmu(Z,!1,Y,f,I,P.tag),nP(T)):Rmu(Z,!0,Y,f,I, P.tag)}; g.y=function(Z,I){if(Z)return Z[I.name]}; H5L=function(Z){Z.S.jM("shopping_overlay_visible");Z.S.jM("shopping_overlay_preview_collapsed");Z.S.jM("shopping_overlay_preview_expanded");Z.S.jM("shopping_overlay_expanded")}; C=function(Z,I,d,Y){Y=Y===void 0?!1:Y;bW.call(this,Z);this.mj=d;this.NP=Y;this.args=[];I&&this.args.push(I)}; On=function(Z,I,d){return g.t6(function(){if(H6(Z,d))return!1;O7(Z,I,d);return!0})()}; fx=function(Z){T8.call(this,function(){return Z}); this.Z=Z}; c4$=function(Z,I,d,Y,T){J_.call(this,Z,{K:"div",T:"ytp-ad-message-overlay",G:[{K:"div",T:"ytp-ad-message-slot"}]},"ad-message",I,d,Y,T);var f=this;this.B=-1;this.Z=0;this.kS=!1;this.fS=this.KS("ytp-ad-message-slot");this.D=new g.m7({K:"span",T:"ytp-ad-message-container"});this.D.i5(this.fS);g.z(this,this.D);this.messageText=new cP(this.api,this.layoutId,this.interactionLoggingClientData,Y,"ytp-ad-message-text");g.z(this,this.messageText);this.messageText.i5(this.D.element);this.N=new g.nt(this.D, 400,!1,100,function(){f.hide()}); g.z(this,this.N);this.hide()}; ga9=function(Z){return!Z.keySystemAccess&&!!z_()&&Z.keySystem==="com.apple.fps.1_0"}; dTL=function(Z,I){if(I<0)throw Error();var d=Z.L;I=d+I;if(I>Z.Z)throw Error();Z.L=I;return d}; Me$=function(Z){return{minBandwidthBytesPerSec:wd(Z,1),minReadaheadMs:wd(Z,2)}}; g.cg=function(Z){this.config_=null;Z?this.config_=Z:r49()&&(this.config_=g.ql())}; ZVi=function(Z,I,d){return E8B(Z.L.get(),I.contentCpn,I.kO,function(Y){return bon(Z.D.get(),Y.slotId,d,I.adPlacementConfig,I.kO,Fo(Z.hZ.get(),Y))})}; IGJ=function(Z){for(var I in Z)return Z[I]}; El=function(Z){if(!(this instanceof El))return new El(Z);Z=this.options=LX.assign({level:-1,method:8,chunkSize:16384,Ov:15,c5j:8,strategy:0,to:""},Z||{});Z.raw&&Z.Ov>0?Z.Ov=-Z.Ov:Z.Mp&&Z.Ov>0&&Z.Ov<16&&(Z.Ov+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.rz=new dcl;this.rz.G_=0;var I=this.rz;var d=Z.level,Y=Z.method,T=Z.Ov,f=Z.c5j,P=Z.strategy;if(I){var O=1;d===-1&&(d=6);T<0?(O=0,T=-T):T>15&&(O=2,T-=16);if(f<1||f>9||Y!==8||T<8||T>15||d<0||d>9||P<0||P>4)I=fr(I,-2);else{T===8&&(T=9); var a=new d9l;I.state=a;a.rz=I;a.wrap=O;a.Bg=null;a.If=T;a.uy=1<>=7;f<30;f++)for(TK[f]=P<<7,T=0;T<1<=W.uy&&(I===0&&(Qo(W.head),W.NC=0,W.QC=0,W.cO=0),d=new LX.pg(W.uy),LX.zg(d,f,P-W.uy,W.uy,0),f=d,P=W.uy);d=Z.qk;Y=Z.Cv;T=Z.input;Z.qk=P;Z.Cv=0;Z.input=f;for(lr(W);W.dK>=3;){f=W.NC;P=W.dK-2;do W.RN=(W.RN<0?{associatedSlotId:d}:{},Y.length>0?{slots:Y}:{})); return I}; h8=function(Z){if(bJ&&Z.pS)return!1;var I=g.HS.auto;return Z.D===I&&Z.L===I}; o9=function(Z,I){Z.L.objectStoreNames.contains(I)&&Z.L.deleteObjectStore(I)}; bon=function(Z,I,d,Y,T,f){d=new D0([new H2(d),new Xj(Y)]);I=zi(Z.D.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",I);Y={layoutId:I,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",r4:"core"};return{layoutId:I,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",h5:new Map,layoutExitNormalTriggers:[new jl(function(P){return Un(Z.D.get(),P)},T)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:d,Tb:f(Y),adLayoutLoggingData:void 0}}; hm=function(){this.L={};this.D=!0;this.Z={}}; mq9=function(){return{K:"svg",J:{viewBox:"0 0 24 24"},G:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M15 3H6c-.83 0-1.54.5-1.84 1.22l-3.02 7.05c-.09.23-.14.47-.14.73v1.91l.01.01L1 14c0 1.1.9 2 2 2h6.31l-.95 4.57-.03.32c0 .41.17.79.44 1.06L9.83 23l6.59-6.59c.36-.36.58-.86.58-1.41V5c0-1.1-.9-2-2-2zm4 0v12h4V3h-4z",fill:"#fff"}}]}}; qIJ=function(Z){this.D=Z===void 0?15:Z;this.values=new Float64Array(176);this.L=new Float64Array(11);this.Z=new Float64Array(16)}; SIO=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(Z){return 0}}; AQi=function(Z,I){var d=(I(Z.error.message)+":"+I(Z.error.stack)).substring(0,2048);I=d.length+1;d=BP(d);var Y=new Uint8Array(4+d.length);Y.set([42,I&127|128,I>>7,Z.error.code]);Y.set(d,4);return Y}; Dqd=function(Z,I){z8.call(this,1,arguments);this.timer=I}; JQr=function(Z,I){var d=[];I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next())d.push(g.eU(Y.value,Z.u5.Qy));return d}; LCJ=function(Z){if(!Z.L)return null;var I=mD(Z.L,"atr");return function(d){Z.L&&Ri$(Z.L,d,I)}}; kT=function(Z,I){return MZ(Z,I,function(d){return d.D})}; qw=function(){this.L=Uqi[0].toLowerCase()}; x2J=function(Z,I){g.Ow(Z.api.nM())&&Z.api.setOption("captions","sampleSubtitles",I)}; to=function(Z,I){var d=g.zm(I),Y;return(new g.eq(function(T,f){d.onSuccess=function(P){g.pE(P)?T(new BJl(P)):f(new ro("Request failed, status="+$A(P),"net.badstatus",P))}; d.onError=function(P){f(new ro("Unknown request error","net.unknown",P))}; d.onTimeout=function(P){f(new ro("Request timed out","net.timeout",P))}; Y=g.kk(Z,d)})).LA(function(T){if(T instanceof ht){var f; (f=Y)==null||f.abort()}return ZD(T)})}; Xpn=function(Z,I,d){d=d!=null?"="+g.fn(d):"";return KP(Z,I+d)}; hCL=function(Z,I){var d=Z.xl!==I;Z.xl=I;d&&C$(Z)}; yQr=function(Z){Z.vO("active_view_measurable")}; g.kk=function(Z,I){var d=I.format||"JSON";Z=qxn(Z,I);var Y=SxE(Z,I),T=!1,f=vzL(Z,function(a){if(!T){T=!0;O&&g.Cl(O);var W=g.pE(a),e=null,B=400<=a.status&&a.status<500,w=500<=a.status&&a.status<600;if(W||B||w)e=lSi(Z,d,a,I.convertToSafeHtml);W&&(W=Lkd(d,a,e));e=e||{};B=I.context||g.iN;W?I.onSuccess&&I.onSuccess.call(B,a,e):I.onError&&I.onError.call(B,a,e);I.onFinish&&I.onFinish.call(B,a,e)}},I.method,Y,I.headers,I.responseType,I.withCredentials,!1,I.onProgress); Y=I.timeout||0;if(I.onTimeout&&Y>0){var P=I.onTimeout;var O=g.lo(function(){T||(T=!0,f.abort(),g.Cl(O),P.call(I.context||g.iN,f))},Y)}return f}; kG=function(Z){if(!Z.Y("use_rta_for_player"))if(Z.Y("fetch_att_independently"))g.Zy(Z.WM);else{var I=Z.getVideoData().botguardData;I&&g.uUE(I,Z.U,Z.getVideoData().wR||"")}}; yX=function(Z,I,d,Y,T,f,P,O){g.p.call(this);this.Ms=Z;this.L=I;this.D=Y;this.V5=T;this.N=f;this.Z=P;this.B$=O}; GWB=function(){var Z=cHu();Z.ZA.push("metadata_type_ad_info_ad_metadata");return Z}; zid=function(Z){WC.call(this,Z,!1,!0);this.Bj=[];this.Yl=[];this.element.setAttribute("data-overlay-order","9");this.V=!0;this.badge.element.classList.add("ytp-featured-product");this.fS=new g.k({K:"div",T:"ytp-featured-product-open-in-new"});g.z(this,this.fS);this.countdownTimer=new g.k({K:"text",T:"ytp-featured-product-countdown",Z1:"{{content}}"});this.countdownTimer.hide();g.z(this,this.countdownTimer);this.D=new g.k({K:"div",T:"ytp-featured-product-trending",G:[{K:"div",T:"ytp-featured-product-trending-icon"}, {K:"text",T:"ytp-featured-product-trending-text",Z1:"{{trendingOffer}}"}]});this.D.hide();g.z(this,this.D);this.overflowButton=new g.k({K:"button",zm:["ytp-featured-product-overflow-icon","ytp-button"],J:{"aria-haspopup":"true"}});this.overflowButton.hide();g.z(this,this.overflowButton);this.j=new g.k({K:"text",T:"ytp-featured-product-exclusive-countdown",Z1:"{{content}}",J:{id:"exclusiveCountdown","aria-hidden":"true"}});this.j.hide();g.z(this,this.j);this.B=new g.k({K:"div",T:"ytp-featured-product-exclusive-container", J:{"aria-labelledby":"exclusiveBadge exclusiveCountdown"},G:[{K:"div",T:"ytp-featured-product-exclusive-badge-container",G:[{K:"div",T:"ytp-featured-product-exclusive-badge",G:[{K:"text",T:"ytp-featured-product-exclusive-badge-text",Z1:"{{exclusive}}",J:{id:"exclusiveBadge","aria-hidden":"true"}}]}]},this.j]});this.B.hide();g.z(this,this.B);this.banner=new g.k({K:"a",T:"ytp-featured-product-container",G:[{K:"div",T:"ytp-featured-product-thumbnail",G:[{K:"img",J:{src:"{{thumbnail}}"}},this.fS]},{K:"div", T:"ytp-featured-product-details",G:[{K:"text",T:"ytp-featured-product-title",Z1:"{{title}}"},this.S.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",T:"ytp-featured-product-price-container",J:{"aria-label":"{{priceA11yText}}"},G:[{K:"text",T:"ytp-featured-product-price-when-promotion-text-enabled",Z1:"{{price}}",J:{"aria-hidden":"true"}},{K:"text",T:"ytp-featured-product-promotion-text",Z1:"{{promotionText}}",J:{"aria-hidden":"true"}}]}:{K:"div",J:{"aria-label":"{{priceA11yText}}"}, G:[{K:"text",T:"ytp-featured-product-price",Z1:"{{price}}",J:{"aria-hidden":"true"}},{K:"text",T:"ytp-featured-product-sales-original-price",Z1:"{{salesOriginalPrice}}",J:{"aria-hidden":"true"}},{K:"text",T:"ytp-featured-product-price-drop-reference-price",Z1:"{{priceDropReferencePrice}}",J:{"aria-hidden":"true"}}]},this.S.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")?{K:"div",T:"ytp-featured-product-when-promotion-text-enabled",G:[{K:"text",T:"ytp-featured-product-affiliate-disclaimer-when-promotion-text-enabled", Z1:"{{affiliateDisclaimer}}"},this.D,{K:"text",T:"ytp-featured-product-vendor-when-promotion-text-enabled",Z1:"{{vendor}}"}]}:{K:"div",G:[{K:"text",T:"ytp-featured-product-affiliate-disclaimer",Z1:"{{affiliateDisclaimer}}"},this.S.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")?this.B:null,this.D,{K:"text",T:"ytp-featured-product-vendor",Z1:"{{vendor}}"},this.countdownTimer]}]},this.overflowButton]});g.z(this,this.banner);this.banner.i5(this.Z.element);this.W(this.S,g.E2("featured_product"), this.wEr);this.W(this.S,g.bx("featured_product"),this.po);this.W(this.S,"videodatachange",this.onVideoDataChange);this.W(this.overflowButton.element,"click",this.JF);this.W(Z,"featuredproductdismissed",this.F4)}; Wl=function(Z){$w.call(this,Z);pF(Z,"createClientVe",this.createClientVe.bind(this));pF(Z,"createServerVe",this.createServerVe.bind(this));pF(Z,"destroyVe",this.destroyVe.bind(this));pF(Z,"hasVe",this.hasVe.bind(this));pF(Z,"logClick",this.logClick.bind(this));pF(Z,"logVisibility",this.logVisibility.bind(this));pF(Z,"setTrackingParams",this.setTrackingParams.bind(this))}; KP=function(Z,I){if(!I)return Z;var d=Z.indexOf("#");d<0&&(d=Z.length);var Y=Z.indexOf("?");if(Y<0||Y>d){Y=d;var T=""}else T=Z.substring(Y+1,d);Z=[Z.slice(0,Y),T,Z.slice(d)];d=Z[1];Z[1]=I?d?d+"&"+I:I:d;return Z[0]+(Z[1]?"?"+Z[1]:"")+Z[2]}; L_=function(Z){return g.rh("EXPERIMENT_FLAGS",{})[Z]}; XVr=function(Z){if(!kWr(Z))return!1;var I;Z=(I=Z.mediaElement)==null?void 0:I.audioTracks();return!!(Z&&Z.length>1)}; y2B=function(){return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM8 11H6C5.73 11 5.48 11.10 5.29 11.29C5.10 11.48 5 11.73 5 12C5 12.26 5.10 12.51 5.29 12.70C5.48 12.89 5.73 13 6 13H8C8.26 13 8.51 12.89 8.70 12.70C8.89 12.51 9 12.26 9 12C9 11.73 8.89 11.48 8.70 11.29C8.51 11.10 8.26 11 8 11ZM18 11H12C11.73 11 11.48 11.10 11.29 11.29C11.10 11.48 11 11.73 11 12C11 12.26 11.10 12.51 11.29 12.70C11.48 12.89 11.73 13 12 13H18C18.26 13 18.51 12.89 18.70 12.70C18.89 12.51 19 12.26 19 12C19 11.73 18.89 11.48 18.70 11.29C18.51 11.10 18.26 11 18 11ZM18 15H16C15.73 15 15.48 15.10 15.29 15.29C15.10 15.48 15 15.73 15 16C15 16.26 15.10 16.51 15.29 16.70C15.48 16.89 15.73 17 16 17H18C18.26 17 18.51 16.89 18.70 16.70C18.89 16.51 19 16.26 19 16C19 15.73 18.89 15.48 18.70 15.29C18.51 15.10 18.26 15 18 15ZM12 15H6C5.73 15 5.48 15.10 5.29 15.29C5.10 15.48 5 15.73 5 16C5 16.26 5.10 16.51 5.29 16.70C5.48 16.89 5.73 17 6 17H12C12.26 17 12.51 16.89 12.70 16.70C12.89 16.51 13 16.26 13 16C13 15.73 12.89 15.48 12.70 15.29C12.51 15.10 12.26 15 12 15Z", fill:"white"}}]}}; tma=function(Z){Z.audioTrack.LS=[];Z.videoTrack.LS=[]}; FDB=function(Z,I){(0,g.KM)(I.L,function(d){Z.add(d.D,d.L,R5u(d))})}; g.V4=function(Z){return g.$D(Z)||ed(Z)==="TV_UNPLUGGED_CAST"||tO(Z)}; om=function(Z){this.track=Z;this.buffered=[];this.Z=this.N=0;this.j={};this.B=0;this.L=new s6}; $q$=function(Z,I){var d=$$();g.GA.call(this,Z,{K:"div",T:"ytp-info-panel-detail-skrim",G:[{K:"div",T:"ytp-info-panel-detail",J:{role:"dialog",id:d},G:[{K:"div",T:"ytp-info-panel-detail-header",G:[{K:"div",T:"ytp-info-panel-detail-title",Z1:"{{title}}"},{K:"button",zm:["ytp-info-panel-detail-close","ytp-button"],J:{"aria-label":"Close"},G:[g.Hz()]}]},{K:"div",T:"ytp-info-panel-detail-body",Z1:"{{body}}"},{K:"div",T:"ytp-info-panel-detail-items"}]}]},250);var Y=this;this.L=I;this.items=this.KS("ytp-info-panel-detail-items"); this.D=new g.De(this);this.itemData=[];this.Z=d;this.W(this.KS("ytp-info-panel-detail-close"),"click",this.zb);this.W(this.KS("ytp-info-panel-detail-skrim"),"click",this.zb);this.W(this.KS("ytp-info-panel-detail"),"click",function(T){T.stopPropagation()}); this.W(this.S,"infopaneldetaildismissed",function(){Z.Y("embeds_enable_info_panel_dismissal")&&Y.zb()}); g.z(this,this.D);this.S.createServerVe(this.element,this,!0);this.W(Z,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",Z.getVideoData());this.hide()}; Ng=function(Z,I,d){this.audio=Z;this.video=I;this.reason=d}; Rj=function(Z,I,d,Y,T,f){d=d===void 0?{}:d;this.componentType=Z;this.renderer=I===void 0?null:I;this.macros=d;this.layoutId=Y;this.interactionLoggingClientData=T;this.L=f;this.id=Ai(Z)}; q$=function(Z){var I=g.y(Z,c2);if(I)return I;if((I=g.y(Z,pVa))&&I.commands)return xqi(I.commands);if((I=g.y(Z,KCr))&&I.commands)return xqi(I.commands);if((Z=g.y(Z,CPJ))&&Z.identifier&&Z.command&&(gk||(gk=[]),!gk.includes(Z.identifier)))return gk.push(Z.identifier),g.y(Z.command,c2)}; D6=function(){g.p.call(this);this.D=[];this.L=[];var Z=g.gZ("yt.gcf.config.hotUpdateCallbacks");Z?(this.D=[].concat(g.c(Z)),this.L=Z):(this.L=[],g.zb("yt.gcf.config.hotUpdateCallbacks",this.L))}; Og=function(){return!(!window.MediaSource||!window.MediaSource.isTypeSupported)||window.ManagedMediaSource}; M7=function(Z){this.player=Z;this.Z=this.L=1}; v8O=function(Z){return TLJ(Z).map(function(I){return{deviceInterface:Ezi[ff$[I.ym]]||0,deviceVersion:I.deviceVersion||"",isSleeping:I.iD}})}; bDd=function(Z){for(var I=g.t(Z.lQ),d=I.next();!d.done;d=I.next()){var Y=g.t(d.value);d=Y.next().value;Y=Y.next().value;Y.WZ||uD(Z,d)}}; rp=function(){return g.T2("yt-player-performance-cap")||{}}; $s=function(Z){Z.B=null;Z.j=null;Z.W(aY("over"),Z.Ep);Z.W("touchstart",Z.YD);Z.L&&Z.W(aY("down"),Z.pjj)}; cQn=function(Z){if(g.bZ(Z)&&HDn)return!1;if(g.Kb){if(!g.xT(47)||!g.xT(52)&&g.xT(51))return!1}else if(g.bT)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; g.rk=function(Z,I){return ZsD[Z]=I}; gza=function(Z){return Z.name==="TypeError"&&Z.stack.includes("/s/player/")&&sh()<=105}; Mmd=function(Z){var I=Z.api.getVideoData().interstitials,d=[];I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next()){Y=Y.value;var T=d,f=T.push,P=Z,O=Y.playerVars,a=Y.jO,W=Y.time,e="yto-"+P.X++;W=new g.S8(W,W,{id:e,priority:7,namespace:"yto"});P.V[e]={playerVars:O,playerType:a};f.call(T,W);T=Z.api.getVideoData(1);T=Object.assign({oauth_token:T.oauthToken},Y.playerVars);Z.api.preloadVideoByPlayerVars(T,Y.jO)}Z.api.eM(d,1)}; yVl=function(){this.L=new FYd;this.D="https://jnn-pa.googleapis.com".replace(/\/+$/,"")}; fD=function(Z,I){Z.zz[Z.pending++]=I>>>8&255;Z.zz[Z.pending++]=I&255}; LAO=function(Z,I,d,Y,T,f,P,O){function a(B,w){var V=B.slotId;B=P(B);V=zi(I.D.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",V);return rQ$(I,V,w,d,B,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new ZkB(T),f],T.adLayoutLoggingData)} function W(B){return mf7(Z,B,Y,a)} if(!I1i(T))return new C("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:T});var e=T.timeoutSeconds*1E3;return function(B){var w=B.slotId,V={impressionCommands:T.impressionCommands,completeCommands:T.timeoutCommands,skipCommands:T.dismissCommands};B=P(B);w=qZ(I,w,d,e,V,new Map,B,W,void 0,Ps(I,d,T.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));V=new VV(w.rO);B=new hT(O);return{Q1:{layoutId:w.layoutId,layoutType:w.layoutType,h5:w.h5,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:w.r4,clientMetadata:new D0([].concat(g.c(w.wj),[V,B])),Tb:w.Tb,adLayoutLoggingData:w.adLayoutLoggingData},BT:[],mF:w.layoutExitMuteTriggers,FU:w.layoutExitUserInputSubmittedTriggers,qD:w.layoutExitUserCancelledTriggers,XF:w.XF}}}; FcB=function(Z,I){g.p.call(this);var d=this;this.callback=Z;this.D=I;this.L=-I;this.addOnDisposeCallback(function(){return void clearTimeout(d.timer)})}; dGl=function(Z){return{type:wd(Z,1),event:wd(Z,2),BBS:PcD(Z,3),Ri:PcD(Z,4),q0:BG(Z,5),identifier:BG(Z,6),Ye:wd(Z,9)}}; o$$=function(Z){Z.videoData.d4.clear();if(Z.videoData.sabrContextUpdates.size>0)for(var I=g.t(Z.videoData.sabrContextUpdates.keys()),d=I.next();!d.done;d=I.next()){d=d.value;var Y=void 0;((Y=Z.videoData.sabrContextUpdates.get(d))==null?0:Y.sendByDefault)&&Z.videoData.d4.add(d)}if(Z.policy.LS&&Z.L.length)for(I=g.t(Z.L),d=I.next();!d.done;d=I.next())(d=d.value.kY())&&d.type&&d.sendByDefault&&Z.videoData.d4.add(d.type)}; jGO=function(Z,I){if(!bHi(Z,I)&&!Z.D)return!1;I.details.sts="20360";if(Bol(Z))return VY(I.severity)&&(I=Object.assign({e:I.errorCode},I.details),I=new g.dj("qoe.restart",I)),Z.nj(I.errorCode,I.details),fVa(Z),!0;(0,g.o8)()-Z.nS.u8>6048E5&&YdJ(Z,"signature");return!1}; fkJ=function(Z){var I=Z.api.C(),d=TVn(I);d=v_r(d);var Y=d.mL.bind(d);d.mL=function(O){var a;return g.h(function(W){if(W.L==1)return g.m(W,Y(O),2);a=W.D;Z.api.D1("itr",{});return W.return(a)})}; try{var T=Jkd({Eo:d,GC:{maxAttempts:5},t3:{Mk:"CLEn",disable:I.experiments.CS("html5_web_po_disable_remote_logging"),MS:Kiu(I.experiments),D2:function(O){var a=ikO.get(O);a||(a=new zfi(O),a=new g.b1(a),ikO.set(O,a));return a}, Gm5:Z.Y("wpo_dis_lfdms")?0:1E3},c9r:g.uL});var f=new ag9({AZ:T,Eo:d,onError:g.uL});Ael(f.Yq()).then(function(){Z.L=!0;Z.B.resolve()}); Z.Y("html5_web_po_token_disable_caching")||f.l6(150);g.z(Z,T);g.z(Z,f);Z.D=f}catch(O){g.uL(O);var P;(P=T)==null||P.dispose()}}; var f17=function(Z){return nY[Q[32]](this,8,Z)}; sU7=function(Z){aU.call(this,Z.Bh,Z.slot,Z.Q1,Z.Q5,Z.Df,Z.V5,Z.S7,Z.SJ,Z.eJ,Z.jK,Z.Ji,Z.SA,Z.yq,Z.bx,Z.Ms,Z.BU,Z.eF,Z.context)}; lD=function(Z,I){if((I=Z.lQ.get(I))&&!I.bT){I.bT=!0;if(I.onProgress)I.onProgress();a:{I=g.t(Z.lQ.values());for(var d=I.next();!d.done;d=I.next())if(!d.value.bT){I=!1;break a}I=!0}I&&Z.N.d$()}}; PRB=function(Z,I,d,Y,T,f){this.ids=Z;this.L=I;this.D=d;this.N=Y;this.Z=T;this.fC=f}; QGO=function(Z,I){var d=pM().resolve(pEd);if(Ozi(I)){var Y=F8(I,"gclid");I={handleEvent:function(O){Z&&!Z.closed&&typeof Z.postMessage==="function"&&O&&O.origin&&O.source===Z&&O.data&&O.data.action==="gcl_setup"&&Z.postMessage(Object.assign({},{action:"gcl_transfer"},Y&&{gclid:Y},{gadSource:2}),O.origin)}}; for(var T=g.t(d.L),f=T.next();!f.done;f=T.next()){var P=g.t(f.value);f=P.next().value;P=P.next().value;if(f.closed)try{window.removeEventListener("message",P),d.L.delete(f)}catch(O){g.nl(O)}}Z&&d.L.size<15&&(d.L.set(Z,I),window.addEventListener("message",I))}}; a1$=function(Z,I){Z=g.t(g.a3(Z,!0));for(var d=Z.next();!d.done;d=Z.next())if(d=d.value,Ok$(d)){var Y={potc:"1",pot:I};d.url&&(d.url=BX(d.url,Y))}}; F4=function(Z){g.p.call(this);this.D=Z}; E9B=function(Z){$w.call(this,Z);var I=this;this.D=new Set;this.L={};this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"videodatachange",function(d){d==="newdata"&&(I.api.jM("stationsEmbargo"),I.api.jM("stationsMetadataUpdate"),I.L={},I.D.clear());d=I.api.getVideoData().lI;var Y=d.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_AIRING_EMBARGO");Y&&WBu(I,Y,"stationsEmbargo");(d=d.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_STATION_METADATA_UPDATE"))&&WBu(I,d,"stationsMetadataUpdate")}); this.events.W(Z,g.E2("stationsEmbargo"),function(d){I.api.pw(!0);var Y,T=(Y=I.L[d.id])!=null?Y:[];Y=g.t(T);for(T=Y.next();!T.done;T=Y.next())if(T=T.value.embargo)I.api.hideControls(),I.api.pj("auth",2,Zd(T.errorRenderer.reason),VQ({embargoed:1,id:d.id,idx:d.D,start:d.start})),(T=T.onTrigger)&&I.api.Rn("innertubeCommand",T)}); this.events.W(Z,g.E2("stationsMetadataUpdate"),function(d){var Y;d=(Y=I.L[d.id])!=null?Y:[];Y=g.t(d);for(d=Y.next();!d.done;d=Y.next())(d=d.value.command)&&I.api.Rn("innertubeCommand",d)})}; xIO=function(Z,I){return j6(Z,3,I)}; FOl=function(Z,I){(0,g.o8)();var d;if((d=Z.L.L)==null)var Y=void 0;else a:{Z=Z.iv;try{var T=Txl(d,I,Z),f=d.L.ao(Z),P=d.L,O=d.N,a=new Uint8Array(P.exports.memory.buffer,P.malloc(32),32);P.exports.Sha256Hmac(O.byteOffset,O.byteLength,f.byteOffset,f.byteLength,T.byteOffset,T.byteLength,a.byteOffset);d.L.free(f.byteOffset);Y={tj:d.L.yW(T),signature:d.L.yW(a)};break a}catch(W){g.uL(Error("ocwceas: wasm encryptAndSign failed: "+W))}Y=void 0}return Y}; VQ=function(Z){var I=[];if(Z){Z=g.t(Object.entries(Z));for(var d=Z.next();!d.done;d=Z.next()){var Y=g.t(d.value);d=Y.next().value;Y=Y.next().value;Y!==void 0&&(Y=typeof Y==="boolean"?""+ +Y:(""+Y).replace(/[:,=]/g,"_"),I.push(d+"."+Y))}}return I.join(";")}; BDu=function(Z){var I=Uc("");return LP(Z.map(function(d){return NJ(Uc(d))}).join(NJ(I).toString()))}; Qq=function(){return g.x9("use_request_time_ms_header")||g.x9("lr_use_request_time_ms_header")}; Xl=function(Z,I){return uxd(I.call(Z))}; eni=function(Z){var I={};return Ij((I.dlt=Z.downloadedEndTime.toString(),I.mket=Z.maxKnownEndTime.toString(),I.avbr=Z.averageByteRate.toString(),I))}; w4D=function(Z,I){g.p.call(this);if(!I&&Z)try{I=JSON.parse(Z)}catch(T){}if(I){Z=I.clientKey?rA(I.clientKey):null;var d=I.encryptedClientKey?rA(I.encryptedClientKey):null,Y=I.keyExpiresInSeconds?Number(I.keyExpiresInSeconds)*1E3+(0,g.o8)():null;Z&&d&&Y&&(this.L=new BV$(Z,d,Y),g.z(this,this.L));I.onesieUstreamerConfig&&(this.onesieUstreamerConfig=rA(I.onesieUstreamerConfig)||void 0);this.baseUrl=I.baseUrl}}; yz=function(){return typeof BigInt==="function"}; Uq=function(){return g.gZ("yt.gcf.config.hotConfigGroup")}; gF=function(Z,I){if(Z=Yl(I)[Z])return typeof Z==="number"?Z:Z[Z.length-1]}; ON$=function(Z){return g.Yw(Z.L,function(I){return I.info.video?I.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; Vjl=function(Z){return{enterMs:dB(Z.clientMetadata,"metadata_type_layout_enter_ms"),exitMs:dB(Z.clientMetadata,"metadata_type_layout_exit_ms")}}; tkr=function(Z){q0(Z)&&!Z.Zs&&(Z.L=!0,Z.vt&&Math.random()<=Z.Wt&&Z.PO.gJ(Z.JV),Z.ud(),Z.YH.QQ()&&Z.g8(),Z.YH.listen(Z.CX,Z.g8.bind(Z)),Z.YH.listen(Z.Ul,Z.M7.bind(Z)))}; nn=function(){var Z=uI;Z.j||(Z.j=!0,aVa(Z,function(){return Z.N.apply(Z,g.c(g.vj.apply(0,arguments)))}),Z.N())}; EM=function(Z,I,d,Y,T){this.L=I;this.slotType=d;this.layoutType=Y;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=T||Z(this.triggerType)}; g.NVr=function(Z,I){var d;return g.h(function(Y){var T=g.gZ("yt.aba.att");return(d=T?T:vN.instance!==void 0?vN.instance.Z.bind(vN.instance):null)?Y.return(d("ENGAGEMENT_TYPE_PLAYBACK",Z,I)):Y.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; FB$=function(Z){this.value=Z}; n6n=function(){var Z,I,d,Y;return g.h(function(T){switch(T.L){case 1:Z=DB();if((I=Z)==null?0:I.hasSucceededOnce)return T.return(!0);if(RZ&&LB()&&!eed()||g.sY)return T.return(!1);try{if(d=self,!(d.indexedDB&&d.IDBIndex&&d.IDBKeyRange&&d.IDBObjectStore))return T.return(!1)}catch(f){return T.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return T.return(!1);g.ez(T,2);Y={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.m(T,sGi(Y,uq),4);case 4:return g.m(T,VT("yt-idb-test-do-not-use",uq),5);case 5:return T.return(!0);case 2:return g.Bj(T),T.return(!1)}})}; g.$5=function(Z,I,d,Y,T,f){f=f===void 0?{}:f;g.S3r(Z,I,d,[Y],T===void 0?!1:T,f)}; hn$=function(Z,I){return I.getUserAudio51Preference()?g.zG(Z,n$a):Z}; BM=function(Z){for(var I=F2(Z,!0),d=wC(Z),Y=1;Y=I)return Z.N.set(I,Y),Y;Z.N.set(I,d-1);return d-1}; UGd=function(Z,I){var d=I.Pj,Y=I.video.fps,T=I.video.qualityOrdinal-1,f=Z.Z;I=""+d+(Y>49?"p60":Y>32?"p48":"");d=d1(d,Y,f);T>0&&(d=Math.min(d,T));if(!Y2.has(I)&&fS().includes(I)){var P=d;d=rp();+d[I]>0&&(P=Math.min(+d[I],P));d[I]!==P&&(d[I]=P,g.AU("yt-player-performance-cap",d,2592E3))}else if(Y2.has(I)||f==null){a:{P=P===void 0?!0:P;Y=fS().slice();if(P){if(Y.includes(I))break a;Y.push(I)}else{if(!Y.includes(I))break a;Y.splice(Y.indexOf(I),1)}g.AU("yt-player-performance-cap-active-set",Y,2592E3)}jH.set(I, d)}else Y2.add(I),f==null||f.set(I,d);Z.t5.zR()}; ov=function(){return!(!JB||!JB.performance)}; yfl=function(Z){var I=yq(Z),d=yq(Z);Z=(d>>31)*2+1;var Y=d>>>20&2047;I=4294967296*(d&1048575)+I;return Y==2047?I?NaN:Z*Infinity:Y==0?Z*4.9E-324*I:Z*Math.pow(2,Y-1075)*(I+4503599627370496)}; uVD=function(Z){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(Z)}; qdd=function(Z,I){Z.env.Y("delhi_modern_web_player")&&Z.scale!==.6&&(Z.scale=I?.8:1)}; dDB=function(Z){return g.Yw(Z.L,function(I){return!!I.info.video&&I.info.video.qualityOrdinal>=2160})}; Ff=function(Z,I){if(Nx){var d=0;Z=Z.lQ.get(I);if(Z==null||!Z.JK)return 0;Z=g.t(Z.JK.values());for(I=Z.next();!I.done;I=Z.next())d+=I.value.data.totalLength;return d}return((d=Z.lQ.get(I))==null?void 0:d.Hb.totalLength)||0}; l19=function(){var Z,I,d,Y=(Z=window.h5vcc)==null?void 0:(I=Z.settings)==null?void 0:(d=I.getPersistentSettingAsString)==null?void 0:d.call(I,"cpu_usage_tracker_intervals");if(Y!=null){var T;Z=(T=JSON.parse(Y))!=null?T:[];T=Z.filter(function(W){return W.type==="total"}).map(function(W){return W.seconds}); I=g.t(v$n);for(d=I.next();!d.done;d=I.next())d=d.value,T.indexOf(d)===-1&&Z.push({type:"total",seconds:d});var f,P;(f=window.h5vcc)==null||(P=f.settings)==null||P.set("cpu_usage_tracker_intervals_enabled",1);var O,a;(O=window.h5vcc)==null||(a=O.settings)==null||a.set("cpu_usage_tracker_intervals",JSON.stringify(Z))}}; uYL=function(Z){Z=Z.api.C();return g.vl(Z)&&Z.D}; uyE=function(Z,I){Z.D[I]||(Z.D[I]=new Sn);return Z.D[I]}; G17=function(Z){ZU.call(this,"audio_measurable",Z)}; sE=function(Z){switch(Z){case "SLOT_TRIGGER_EVENT_LAYOUT_ID_ENTERED":return{kind:"AD_PLACEMENT_KIND_LAYOUT_ID_ENTERED"};case "SLOT_TRIGGER_EVENT_BEFORE_CONTENT":return{kind:"AD_PLACEMENT_KIND_START"};case "SLOT_TRIGGER_EVENT_CONTENT_OFFSET":return{kind:"AD_PLACEMENT_KIND_MILLISECONDS"};case "SLOT_TRIGGER_EVENT_AFTER_CONTENT":return{kind:"AD_PLACEMENT_KIND_END"};case "SLOT_TRIGGER_EVENT_CONTENT_PAUSED":return{kind:"AD_PLACEMENT_KIND_PAUSE"};default:return{kind:"AD_PLACEMENT_KIND_UNKNOWN"}}}; g.s4=function(Z,I){I=NHd(Z,I);var d;(d=I>=0)&&g.$S(Z,I);return d}; znl=function(Z,I,d,Y,T,f,P,O,a,W){this.L_=Z;this.S7=I;this.Q5=d;this.N=Y;this.Df=T;this.D=f;this.Z=P;this.jK=O;this.Ms=a;this.L=W}; bWO=function(Z){this.Q5=Z}; Uj=function(Z,I,d){d!==void 0&&(jIu(Z,I,Math.ceil(Math.log2(d.length*4+2)/7)),ij(Z,d.length*1.2),I=TI(d,Z.L.subarray(Z.pos)),Z.pos+I>Z.L.length&&(ij(Z,I),I=TI(d,Z.L.subarray(Z.pos))),Z.pos+=I,TZu(Z))}; fQ=function(Z,I){g.Kv.call(this,Z,void 0,"Options");var d=this;this.uL={};for(var Y=0;Y0)I=Z.byterate,this.LS= !0;else{var T;d=(((T=navigator.connection)==null?void 0:T.downlink)||0)*64*1024;d>0&&(I=d,this.LS=!0)}this.Z.vJ(this.policy.j,I);Z.delay>0&&this.X.vJ(1,Math.min(Z.delay,2));Z.stall>0&&this.V.vJ(1,Z.stall);Z.init>0&&(this.mJ=Math.min(Z.init,this.mJ));Z.interruptions&&(this.N=this.N.concat(Z.interruptions),this.N.length>16&&this.N.pop());this.kS=(0,g.o8)();this.policy.V>0&&(this.Tm=new g.uX(this.sZ,this.policy.V,this),g.z(this,this.Tm),this.Tm.start())}; x3=function(Z){return Z.L&&Z.s_&&Z.playbackStartPolicy}; Vb=function(Z){if(Z==null)return Z;if(typeof Z==="string"&&Z)Z=+Z;else if(typeof Z!=="number")return;return Ye(Z)?Z>>>0:void 0}; KBa=function(Z,I,d,Y,T){this.YS=Z;this.startSecs=I;this.QI=d;this.L=Y||NaN;this.D=T||NaN}; CRi=function(){this.iI=0;this.N=this.Z=this.K8=this.Il=this.D=NaN;this.L={};this.bandwidthEstimate=NaN}; vM7=function(Z){var I;return((I=t4a.get(Z))==null?void 0:I.oM)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"}; Dt=function(){}; em=function(Z){g.p.call(this);this.N=Z;this.logger=new g.qj("onesie");this.lQ=new Map;this.D=this.L=!1;this.bu=this.u5=null;this.Z=!1}; DE=function(Z,I,d,Y,T){g.p.call(this);this.D=I;this.S7=d;this.V5=Y;this.sP=T;this.listeners=[];var f=new oK(this);g.z(this,f);f.W(Z,"internalAbandon",this.hF5);this.addOnDisposeCallback(function(){g.aL(f)})}; E$a=function(Z,I,d,Y){Y=new Px(Z.api,Z.layoutId,Z.interactionLoggingClientData,Z.Hj,Y,Z.fS);Y.i5(Z.answers);Y.init(Ai("survey-answer"),I,d);Z.X&&(I=Z.questionText.getAttribute("id"),I!=null&&(Y.L!==null?Y.L.D.setAttribute("aria-describedby",I):Y.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",I)));Z.D.push(Y)}; bki=function(Z){return Z.S.C().Y("html5_recognize_predict_start_cue_point")}; Hkd=function(Z,I){if(!I.hV||!Z.S.Wl()){var d=I.OT||1E4,Y=V4E(I);Z.L?I.videoId&&I.videoId!==Z.videoId&&(g.V9(Z.L),Z.videoId=I.videoId,Y?(mWu(Z,d,I),Z.dn()):(Z.zb(),Z.L.dispose(),Z.L=null)):Y&&(I.videoId&&(Z.videoId=I.videoId),mWu(Z,d,I),Z.dn())}}; cfd=function(Z,I){ys(Z,1,I.type);l5(Z,2,I.value)}; g$7=function(Z,I,d){Rj.call(this,"survey",Z,{},I,d)}; MjO=function(Z,I){var d,Y,T,f,P,O,a,W;return g.h(function(e){if(e.L==1){d=nE(Z,"redirector.googlevideo.com");d.set("alr","yes");d.set("id",""+Math.round(Math.random()*1E5));if(I===1||I===2)d.set("cmo=sensitive_content","yes"),d.set("sc","yes");I===2&&d.set("cmo=td","c.youtube.com");Y={format:"RAW",timeout:5E3};return g.m(e,to(d.VI(),Y),2)}T=e.D;if(T.xhr.status!==200||!T.xhr.responseText)return e.return(Promise.reject(new g.Wj("b204258371_no_host",d.VI(),T.xhr.status)));f=new g.rF(T.xhr.responseText); P=al(24,f);O=f.get("ms");a=nE(Z,P);W=f.get("mm");a.set("ms",O);a.set("mm",W);return P&&uVD(P)?I!==2||oc(P)?e.return(a):e.return(Promise.reject(new g.Wj("b204258371_untrusted",P,O))):e.return(Promise.reject(new g.Wj("b204258371_invalid",P,O)))})}; var cFO=function(Z){return nY[Q[32]](this,13,Z)}; WYn=function(){var Z=b99();if(Z!=null&&Z.effectiveType)return rfL.hasOwnProperty(Z.effectiveType)?rfL[Z.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; QS=function(){this.N=this.L=this.D=0;this.Z=!1}; ZnE=function(Z){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(Z)}; lc=function(Z){return!!(Z.playlist||Z.list||Z.api)}; ZL=function(Z,I){return Z.L.has(I)}; IWr=function(Z,I){g.k.call(this,{K:"div",J:{tabindex:"0",title:Z.Y("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume","data-tooltip-offset-y":"-120"},zm:["ytp-volume-popover"]});var d=this;this.isVisible=!1;this.tooltip=I.EP();this.D=new ZG(Z);g.z(this,this.D);this.D.i5(this.element);this.L=new g.uX(function(){X8(d,!1)},300); this.listen("mouseenter",function(){d.L.stop()}); this.listen("mouseleave",function(){d.L.start()}); this.listen("focus",function(){d.L.stop()}); this.W(this.D.D,"focus",function(){d.L.stop()}); this.listen("focusout",function(){d.L.start();d.element.dispatchEvent(new Event("blur"))}); this.addOnDisposeCallback(g.my(I.EP(),this.element));g.z(this,this.L)}; hLO=function(Z,I){I.inlineMetricEnabled&&(Z.inlineMetricEnabled=!0);I.playback_progress_0s_url&&(Z.DF=new d7L(I));if(I=I.video_masthead_ad_quartile_urls)Z.KG=I.quartile_0_url,Z.AY=I.quartile_25_url,Z.vP=I.quartile_50_url,Z.hY=I.quartile_75_url,Z.pU=I.quartile_100_url,Z.LD=I.quartile_0_urls,Z.Bp=I.quartile_25_urls,Z.jb=I.quartile_50_urls,Z.OO=I.quartile_75_urls,Z.nG=I.quartile_100_urls}; lnl=function(Z){if(g.x9("enable_web_tiered_gel")){Z=osi[Z||""];var I,d,Y,T=pM().resolve(new gG(vI))==null?void 0:(I=Rr())==null?void 0:(d=I.loggingHotConfig)==null?void 0:(Y=d.eventLoggingConfig)==null?void 0:Y.payloadPolicies;if(T)for(I=0;Id.length&&(Z.error=!0);Z.register|=(d[Y+1]<<8)+d[Y]<=0)return Dm(Z,d&15),d>>4;for(Dm(Z,7);d<0;)d=I[Oa(Z,1)-d];return d>>4}; j3D=function(Z){return{bitrate:wd(Z,6),width:wd(Z,7),height:wd(Z,8),fps:wd(Z,25),averageBitrate:wd(Z,31),audioSampleRate:wd(Z,45),audioChannels:wd(Z,46),qualityOrdinal:wd(Z,56)}}; W9O=function(Z,I,d,Y,T,f){var P=ip(Z.D.get(),"SLOT_TYPE_FORECASTING");I=x5(Z,I,d,Y);if(I instanceof C)return I;Y=[new yc(Z.L,P)];Z=[new du(Z.L,P),new An(Z.L,d)];return{slotId:P,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:Y,slotExpirationTriggers:Z,r4:"core",clientMetadata:new D0([new Jn(f({slotId:P,slotType:"SLOT_TYPE_FORECASTING",slotPhysicalPosition:1,r4:"core",slotEntryTrigger:I,slotFulfillmentTriggers:Y,slotExpirationTriggers:Z}))]),adSlotLoggingData:T}}; ho=function(){var Z=xP9();Z=Z===void 0?"bevasrsg":Z;return new Promise(function(I){var d=window===window.top?window:TkJ()?window:window.top,Y=d[Z],T;((T=Y)==null?0:T.bevasrs)?I(new aN(Y.bevasrs)):(Y||(Y={},Y=(Y.nqfbel=[],Y),d[Z]=Y),Y.nqfbel.push(function(f){I(new aN(f))}))})}; eH=function(){Wx.apply(this,arguments)}; u2=function(Z,I){Z.S.sendVideoStatsEngageEvent(I,void 0,2)}; Q3r=function(Z,I,d,Y,T,f,P){if(!(RZ||LB()||Bq()))return Qv();var O={},a=z$7(d),W=bP7(d,Z.Y("html5_filter_fmp4_in_hls"),Z.B.V,O);if(!W)return P({noplst:1}),Qv();idl(W);d={};var e=(d.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",d),B;d=[];var w=[],V=[],N=null,q="";Y=Y&&Y.match(/hls_timedtext_playlist/)?new inJ({itag:"0",url:Y,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,uo:new g.PA("English","en",!1)}):null;for(var A=g.t(Object.keys(W)),F=A.next();!F.done;F=A.next())if(F=F.value,!Z.Y("html5_disable_drm_hfr_1080")|| F!=="383"&&F!=="373"){F=g.t(W[F]);for(var J=F.next();!J.done;J=F.next())if(J=J.value,J.width){for(var v=g.t(J.D),l=v.next();!l.done;l=v.next())if(l=l.value,W[l]){J.L=l;break}J.L||(J.L=fWa(W,J));if(v=W[J.L])if(d.push(J),J.T_==="fairplay"&&(B=e),l="",J.Sb==="PQ"?l="smpte2084":J.Sb==="HLG"&&(l="arib-std-b67"),l&&(q=l),V.push(PJa(v,[J],Y,f,J.itag,J.width,J.height,J.fps,a,void 0,void 0,B,l)),!N||J.width*J.height*J.fps>N.width*N.height*N.fps)N=J}else w.push(J)}else O[F]="disdrmhfr";V.reduce(function(X, H){return H.getInfo().isEncrypted()&&X},!0)&&(B=e); T=Math.max(T,0);e=N||{};W=e.fps===void 0?0:e.fps;N=e.width===void 0?0:e.width;e=e.height===void 0?0:e.height;A=Z.Y("html5_native_audio_track_switching");V.push(PJa(w,d,Y,f,"93",N,e,W,a,"auto",T,B,q,A));Object.entries(O).length&&P(O);return ae(Z.B,V,PU(Z,I),!1)}; iX7=function(Z,I){U1(5,I.L)||(Z.MC=I,Z.D=0,g.Zy(Z.delay))}; g.WV=function(Z,I,d,Y,T,f){function P(a,W,e){return a.LA(function(B){if(W<=0||$A(B.xhr)===403)return ZD(new ro("Request retried too many times","net.retryexhausted",B.xhr,B));var w=Math.pow(2,d-W+1)*e,V=T>0?Math.min(T,w):w;return O(e).then(function(){f&&f(B,W-1);return P(to(Z,I),W-1,V)})})} function O(a){return new g.eq(function(W){setTimeout(W,a)})} T=T===void 0?-1:T;return P(to(Z,I),d-1,Y)}; Bx=function(Z){this.name=Z}; NX=function(Z){return Z.pos>=Z.L.byteLength}; Onl=function(Z,I,d){return d.renderingContent===void 0&&d.layoutId!==qr(Z,I,d)?(Zv("onSkipWithAdPodSkipTargetRequested for a PlayerBytes layout that is not currently active",Z.Xx(),Z.Xm(),{requestingSlot:I,requestingLayout:d}),!1):!0}; QG=function(Z){var I=[];Z=g.t(Z.values());for(var d=Z.next();!d.done;d=Z.next())d=d.value,d.Gz&&I.push(d);return I}; g.ba=function(Z){Z&=16777215;var I=[(Z&16711680)>>16,(Z&65280)>>8,Z&255];Z=I[0];var d=I[1];I=I[2];Z=Number(Z);d=Number(d);I=Number(I);if(Z!=(Z&255)||d!=(d&255)||I!=(I&255))throw Error('"('+Z+","+d+","+I+'") is not a valid RGB color');d=Z<<16|d<<8|I;return Z<16?"#"+(16777216|d).toString(16).slice(1):"#"+d.toString(16)}; mA=function(Z,I,d,Y,T,f,P,O){var a,W,e,B,w,V;return g.h(function(N){switch(N.L){case 1:return a=g.Yz(Z),a===4?N.return(4):g.m(N,g.k_(),2);case 2:W=N.D;if(!W)throw g.Pk("wiac");if(!O||P===void 0){N.xS(3);break}return g.m(N,PLD(O,P),4);case 4:P=N.D;case 3:return e=d.lastModified||"0",g.m(N,g.rJ(W),5);case 5:return B=N.D,g.ez(N,6),Bv++,g.m(N,g.Xn(B,["index","media"],{mode:"readwrite",tag:"IDB_TRANSACTION_TAG_WIAC",OU:!0},function(q){if(f!==void 0&&P!==void 0){var A=""+Z+"|"+I.id+"|"+e+"|"+String(f).padStart(10, "0");A=g.ti(q.objectStore("media"),P,A)}else A=g.WD.resolve(void 0);var F=ZAn(Z,I.zx()),J=ZAn(Z,!I.zx()),v={fmts:eni(Y),format:d||{}};F=g.ti(q.objectStore("index"),v,F);var l=Y.downloadedEndTime===-1;v=l?q.objectStore("index").get(J):g.WD.resolve(void 0);var X={fmts:"music",format:{}};q=l&&T&&!I.zx()?g.ti(q.objectStore("index"),X,J):g.WD.resolve(void 0);return g.WD.all([q,v,A,F]).then(function(H){H=g.t(H);H.next();H=H.next().value;Bv--;var x=g.Yz(Z);if(x!==4&&l&&T||H!==void 0&&g.aWD(H.fmts))x=1,g.wN(Z, x);return x})}),8); case 8:return N.return(N.D);case 6:w=g.Bj(N);Bv--;V=g.Yz(Z);if(V===4)return N.return(V);g.wN(Z,4);throw w;}})}; eyu=function(Z){if(!Z)return Wba||(Wba=new lzB(0,0));if(!/^\d+$/.test(Z))return null;NK(Z);return new lzB(FS,n7)}; BkJ=function(Z,I){if(Z.currentState>1){g.uL(new g.Wj("Exit already started",{current:Z.currentState}));var d=!1}else d=!0;if(!d)return!1;Z.currentState=2;Z.L=I;return!0}; w29=function(Z,I,d,Y){var T=ip(Z.D.get(),"SLOT_TYPE_IN_PLAYER");d=new eL(Z.L,d);var f=[new yc(Z.L,T)],P=[new du(Z.L,T),new An(Z.L,I)];f={slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,r4:"core",slotEntryTrigger:d,slotFulfillmentTriggers:f,slotExpirationTriggers:P};return{slotId:T,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:[new yc(Z.L,T)],slotExpirationTriggers:[new An(Z.L,I),new du(Z.L,T)],r4:"core",clientMetadata:new D0([new Jn(Y(f))])}}; g.VS=function(Z,I,d,Y){g.t6($$9)(void 0,Z,I,d,Y,void 0)}; tX$=function(Z){if(Z.isManifestless)for(var I in Z.L)Z.L[I].index.segments=[]}; ux=function(){g.p.apply(this,arguments);this.element=null;this.j=new Set;this.V={};this.X={};this.L={};this.In=new Set;this.Z=new lx;this.D=new lx;this.N=new lx;this.B=new lx}; FbB=function(Z,I,d,Y,T,f,P,O){Z=Vvl(Z,d,f,P,Y,function(a,W){var e=a.slotId;a=O(a);var B=T.contentSupportedRenderer;B?B.textOverlayAdContentRenderer?(B=zi(I.D.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",e),W=tad(I,B,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",T,d,a,Nk7(I,W,e))):B.enhancedTextOverlayAdContentRenderer?(B=zi(I.D.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",e),W=tad(I,B,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",T,d,a,Nk7(I,W,e))):B.imageOverlayAdContentRenderer?(B=zi(I.D.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", e),W=Nk7(I,W,e),W.push(new Sg(I.L,45E3,B)),W=tad(I,B,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",T,d,a,W)):W=new j$("InvideoOverlayAdRenderer without appropriate sub renderer"):W=new j$("InvideoOverlayAdRenderer without contentSupportedRenderer");return W}); return Z instanceof C?Z:[Z]}; n$a=function(Z){return wn(Z)||Vg(Z)}; g.Zb=function(Z,I,d){return rG(I,0,d)}; s3l=function(Z){Z.isInitialized&&(Z.enabled=Z.isVisible,Z.kS=Z.isVisible,Zx(Z),Z.Db(),Z.thumbnailImage.o0(Z.isVisible),Z.shouldHideDismissButton||Z.dismissButton.o0(Z.isVisible),Z.shouldShowOverflowButton&&Z.overflowButton.o0(Z.isVisible))}; L7i=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"basechromeinitialized",function(){I.L=new iJ(Z);g.z(I,I.L);g.iS(Z,I.L.element,4);I.L.hide()})}; o1=function(){var Z=g.gZ("yt.logging.ims");Z||(Z=new ee,g.zb("yt.logging.ims",Z));return Z}; zd=function(){Bc.apply(this,arguments);this.A9={t7:function(){return[]}}}; nsB=function(Z,I){var d;E_(Z.Q5.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(d=Z.V5.get().qP)==null?void 0:d.clientPlaybackNonce,adClientData:Z.layout.Tb.adClientDataEntry},I)})}; hyi=function(Z){Z=g.lC(Z,1886614376);for(var I=g.t(Z),d=I.next();!d.done;d=I.next());return g.Ft(Z,function(Y){return Ni7(Y)})}; d1=function(Z,I,d){Z=""+Z+(I>49?"p60":I>32?"p48":"");I=rp()[Z];if(I!=null&&I>0)return I;I=jH.get(Z);if(I!=null&&I>0)return I;d=d==null?void 0:d.get(Z);return d!=null&&d>0?d:8192}; F9$=function(Z){var I=Z.provider.t5.cH(),d=g.NC(Z.provider);hd(Z,d,I);var Y=I.Z;I=I.N;isNaN(Y)||(Z.provider.U.Y("html5_unified_live_latency_reporting")&&!isNaN(I)&&I?g.Vt(Z,d,"e2el",[Y.toFixed(3),I.toFixed(3)]):g.Vt(Z,d,"e2el",[Y.toFixed(3)]))}; ni=function(Z){if(Z.S.Y("web_player_rtr_ctrls")&&Z.S.cj().ge)return 0;var I=Z.S.m2(),d=Z.S.getVideoData().IN,Y=0;Z.S.m2()&&Z.S.isEmbedsShortsMode()&&(Y=(Z.S.cj().getPlayerSize().width-Z.S.getVideoContentRect().width)/2);return 12*(d?0:I?2:1)+Y}; Nk=function(Z){return Z&&LNd?JN(Z)||document:document}; FG=function(Z){var I=null;try{I=Z.toLocaleString("en",{style:"percent"})}catch(d){I=Z.toLocaleString(void 0,{style:"percent"})}return I}; Nta=function(Z){this.L=Z;Z.gP("/client_streamz/bg/po/cwsc",g.Q7("su"),g.Q7("mk"))}; fDJ=function(){var Z=zU(),I={},d={},Y={};return Object.assign({},(I.sv="968",I),Kk!==null&&(d.v=Kk,d),(Y["if"]=Z.Z?"1":"0",Y.nas=String(hG.L.length),Y))}; m7d=function(Z){if(!Z.provider.U.Y("html5_qoe_no_len_check")){for(var I=0,d=g.t(Z.L.entries()),Y=d.next();!Y.done;Y=d.next()){var T=g.t(Y.value);Y=T.next().value;T=T.next().value;I+=Y.length+Number(Wv(T,function(f,P){return f+P.length},0))}I>96E3&&(new g.uX(Z.reportStats,0,Z)).start()}}; I1=function(Z,I){var d="";if(Z.dangerousLogToVisitorSession)d="visitorOnlyApprovedKey";else if(Z.cttAuthInfo){if(I===void 0?0:I){I=Z.cttAuthInfo.token;d=Z.cttAuthInfo;var Y=new WS;d.videoId?Y.setVideoId(d.videoId):d.playlistId&&XS(Y,2,sa,cT(d.playlistId));fP[I]=Y}else I=Z.cttAuthInfo,d={},I.videoId?d.videoId=I.videoId:I.playlistId&&(d.playlistId=I.playlistId),nQ[Z.cttAuthInfo.token]=d;d=Z.cttAuthInfo.token}return d}; hp=function(Z){return!!Z.Gx&&Z.Gx.RL()}; Iz=function(Z){this.src=Z;this.listeners={};this.L=0}; Tx=function(Z){var I=Z.UZ.x;I=g.O4(I,0,Z.j);Z.ZM.update(I,Z.j);return Z.ZM}; EGd=function(Z){if(!Z.L&&!Z.Z.isEmpty()){var I=Z.Z.remove();Z.L=dtr(Z,I)}}; wh=function(Z){$w.call(this,Z);var I=this;this.useLivingRoomPoToken=!1;this.B=new g.f2;this.L=!1;this.KM=null;this.X=!1;this.N=null;this.j=!1;var d=Z.C().getWebPlayerContextConfig();this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"spsumpreject",function(Y,T,f){I.j=T;Y&&I.X&&!I.N&&(I.Y("html5_generate_content_po_token")&&f?I.dH(f):I.Y("html5_generate_session_po_token")&&PgL(I));I.N||I.api.D1("stp",{s:+I.X,b:+I.j})}); this.events.W(Z,"poTokenVideoBindingChange",function(Y){I.dH(Y)}); this.useLivingRoomPoToken=!(d==null||!d.useLivingRoomPoToken);Z.addEventListener("csiinitialized",function(){I.KM=Z.MA();var Y=(I.Y("html5_generate_session_po_token")||I.Y("html5_generate_content_po_token"))&&!I.useLivingRoomPoToken;try{if(I.Y("html5_use_shared_owl_instance"))woD(I);else if(Y){I.KM.DG("pot_isc");var T=g.Q4(I.api.C().experiments,"html5_webpo_kaios_defer_timeout_ms");T?(I.Z=Cw(),g.lo(function(){Y_(I)},T)):I.Y("html5_webpo_idle_priority_job")?(I.Z=Cw(),g.Zb(g.zF(),function(){Y_(I)})): Y_(I)}}catch(f){f instanceof Error&&g.uL(f)}}); Z.addEventListener("trackListLoaded",this.GD.bind(this));Z.bB(this)}; OxB=function(Z,I){return Z.In(Z.L,!0)?!1:(CX(Z,NaN,"ns",I),Z.clear(),!0)}; Oa=function(Z,I){for(;Z.L=Z.data.length)return Z.error=!0,0;Z.register|=Z.data[Z.D++]<>=I;Z.L-=I;return d}; wd=function(Z,I){if(aR(Z,I))return YA(Z)}; jj=function(Z,I){Z.kS&&(Z.kS.uc=!0);Z.update({seekTime:g.ft(I)});var d=Z.j*Z.scale;I=I=0&&I.L.set("user_intent",[I.Z.toString()]),I.V=!0);I.provider.U.Vy()&&I.D1("finalized",{});I.fS=!0;I.reportStats(d)}}if(Z.provider.videoData.enableServerStitchedDai)for(I=g.t(Z.Z.values()),d=I.next();!d.done;d=I.next())z2(d.value);else Z.L&&z2(Z.L);Z.dispose()}; Fc=function(Z,I){return nR(Z,I.slotType+"_"+I.slotPhysicalPosition).get(I.slotId)}; vR=function(Z){if(!isNaN(Z.mJ))return Z.mJ;var I=Z.L,d;for(d in I){var Y=I[d].index;if(Y.isLoaded()&&!SI(I[d].info.mimeType)){I=0;for(d=Y.HS();d<=Y.c$();d++)I+=Y.getDuration(d);I/=Y.Z9();I=Math.round(I/.5)*.5;Y.Z9()>10&&(Z.mJ=I);return I}if(Z.isLive&&(Y=I[d],Y.t$))return Y.t$}return NaN}; k6J=function(Z,I,d,Y,T,f,P){d=d===void 0?[]:d;Y=Y===void 0?"":Y;T=T===void 0?"":T;var O=Fj(Z.L).jL,a=Z.player.getVideoData(1);a&&a.getPlayerResponse();a&&a.Qy();d=c9a(I,d,O,Fj(Z.L).IC);t3d(Fj(Z.L).z_,Y,d.E5,d.QH,I,T,f,P)}; Xo=function(Z){return Z==null?Z:M$O(Z)}; Sh=function(){y_.apply(this,arguments)}; X2D=function(){this.L={}}; AK=function(Z){Z=g.Wt(Z);for(var I=g.t(Object.keys(Z)),d=I.next();!d.done;d=I.next()){d=d.value;var Y=Z[d];Z[d]=Array.isArray(Y)?Y[0]:Y}return Z}; tvi=function(Z,I){if(I$J(Z,I))return null;if(I.reason==="m"&&I.isLocked())return y3(Z,I),Z.X=Z.N.length-1,W2(Z),Ln(Z),Z.kS=Z.kS||Z.Z!==Z.nextVideo,Z.Z=Z.nextVideo,new Ng(Z.D,Z.Z,I.reason);I.reason==="r"&&(Z.In=-1);y3(Z,I);Ln(Z);if(I.reason==="r"&&Z.nextVideo===Z.Z)return new Ng(Z.D,Z.nextVideo,I.reason);Z.Z&&Z.nextVideo&&aq(Z,Z.Z.info)0)for(I=g.t(Z.sabrContextUpdates.values()),d=I.next();!d.done;d=I.next())ITl(O,d.value,Y);j2(Z)&&f&&ITl(O,f,Y);Y=Z.C().L;O.clientInfo={clientName:PY$[Y.c.toUpperCase()]||0};Y.cbrand&&(O.clientInfo.deviceMake=Y.cbrand);Y.cmodel&&(O.clientInfo.deviceModel= Y.cmodel);Y.cver&&(O.clientInfo.clientVersion=Y.cver);Y.cos&&(O.clientInfo.osName=Y.cos);Y.cosver&&(O.clientInfo.osVersion=Y.cosver);Y=Z.C();Y.Y("html5_sabr_enable_server_xtag_selection")&&Y.En&&(O.clientInfo.hl=Y.En);Z.Oy&&(O.Oy=Z.Oy);return O}; L0i=function(Z){return new uE(Object.assign({},Z,{Ji:function(I){Z.eJ.get().CK("onAdIntroStateChange",I)}}))}; Nm=function(Z,I,d,Y,T,f,P){J_.call(this,Z,f,P,I,d,Y,T);this.playerProgressOffsetMs=0;this.D=!1}; VBu=function(Z,I){var d=I.YS;Z.V="updateWithSegmentInfo";Z.YS=d;if(Z.startTime!==I.startTime||Z.duration!==I.duration)Z.startTime=I.startTime+0,Z.duration=I.duration,I2O(Z)}; Xc=function(Z){var I;return(I=WO.e9.get(Z))!=null?I:"u"}; g.f2=function(){var Z=this;this.promise=new Promise(function(I,d){Z.resolve=I;Z.reject=d})}; LB=function(){var Z=/WebKit\/([0-9]+)/.exec(g.Vs());return!!(Z&&parseInt(Z[1],10)>=600)}; bW=function(Z,I){if(Error.captureStackTrace)Error.captureStackTrace(this,bW);else{var d=Error().stack;d&&(this.stack=d)}Z&&(this.message=String(Z));I!==void 0&&(this.cause=I)}; Ko$=function(){this.env=new QNd;this.wasi_snapshot_preview1=new OQd}; Dd=function(Z){aU.call(this,Z.Bh,Z.slot,Z.Q1,Z.Q5,Z.Df,Z.V5,Z.S7,Z.SJ,Z.eJ,Z.jK,Z.Ji,Z.SA,Z.yq,Z.bx,Z.Ms,Z.BU,Z.eF,Z.context)}; hf=function(Z){g.k.call(this,{K:"button",zm:["ytp-airplay-button","ytp-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"AirPlay":"","data-tooltip-title":"AirPlay","data-priority":"11"},Z1:"{{icon}}"});this.S=Z;this.listen("click",this.onClick);this.W(Z,"airplayactivechange",this.qs);this.W(Z,"airplayavailabilitychange",this.qs);this.qs();pi(Z,this.element,this)}; adr=function(Z,I,d,Y,T){T=T===void 0?!1:T;var f="https://youtubei.googleapis.com/youtubei/"+I.v3.innertubeApiVersion+"/player",P=[{name:"Content-Type",value:"application/json"}];Y&&P.push({name:"Authorization",value:"Bearer "+Y});P.push({name:"User-Agent",value:g.Vs()});g.rh("EOM_VISITOR_DATA")?P.push({name:"X-Goog-EOM-Visitor-Id",value:g.rh("EOM_VISITOR_DATA")}):(d=d.visitorData||g.rh("VISITOR_DATA"))&&P.push({name:"X-Goog-Visitor-Id",value:d});(d=g.rh("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&P.push({name:"X-YouTube-Lava-Device-Context", value:d});(I=bo(I.experiments,"debug_sherlog_username"))&&P.push({name:"X-Youtube-Sherlog-Username",value:I});Z=CE(JSON.stringify(Z));return{url:f,Jz:P,postBody:Z,JVZ:T,qL:T}}; SxE=function(Z,I){var d=g.rh("XSRF_FIELD_NAME"),Y=g.rh("XSRF_TOKEN"),T=I.postBody||"",f=I.postParams,P=g.rh("XSRF_FIELD_NAME"),O;I.headers&&(O=I.headers["Content-Type"]);I.excludeXsrf||g.LM(Z)&&!I.withCredentials&&g.LM(Z)!==document.location.hostname||I.method!=="POST"||O&&O!=="application/x-www-form-urlencoded"||I.postParams&&I.postParams[P]||(f||(f={}),f[d]=Y);(g.x9("ajax_parse_query_data_only_when_filled")&&f&&Object.keys(f).length>0||f)&&typeof T==="string"&&(T=aW(T),g.rt(T,f),T=I.postBodyFormat&& I.postBodyFormat==="JSON"?JSON.stringify(T):g.xM(T));f=T||f&&!g.xG(f);!Wxn&&f&&I.method!=="POST"&&(Wxn=!0,g.eW(Error("AJAX request with postData should use POST")));return T}; aUa=function(Z,I,d,Y,T){this.videoId=Z;this.VR=I;this.D=d;this.bytesDownloaded=Y;this.L=T}; e8J=function(Z,I){I=I===void 0?!1:I;if(Z.loader){Z.videoData.enableServerStitchedDai&&tma(Z.loader);var d=Z.getCurrentTime()-Z.Fx();Z.loader.seek(d,{fK:I}).LA(function(){})}else A7(Z)}; Xh=function(Z){Z.yI&&(Z.yI.dispose(),Z.yI=null)}; e8=function(Z,I){I=I===void 0?!1:I;var d=fF[Z],Y=S59[d],T=BNB[Z];if(!T||!Y)return null;I=new cS(I?T.height:T.width,I?T.width:T.height,T.fps);Y=wxO(Y,I,d);return new Pg(Z,Y,{video:I,pS:T.bitrate/8})}; g.Vm=function(Z){g.p.call(this);this.D=Z;this.L={}}; ghO=function(Z){try{var I=SJ('video/mp4; codecs="avc1.42001E"')||SJ('video/webm; codecs="vp9"');return(SJ('audio/mp4; codecs="mp4a.40.2"')||SJ('audio/webm; codecs="opus"'))&&(I||!Z)||qf('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(d){return"html5.missingapi"}}; $Ua=function(Z){Z.L>=0||(Z.provider.t5.getVisibilityState()===3?Z.B=!0:(Z.L=g.NC(Z.provider),Z.delay.start()))}; g.Yy=function(Z){return Array.prototype.concat.apply([],arguments)}; xDO=function(Z,I,d,Y,T,f){var P=ip(Z.D.get(),"SLOT_TYPE_PLAYER_BYTES"),O=ip(Z.D.get(),"SLOT_TYPE_IN_PLAYER"),a=zi(Z.D.get(),"LAYOUT_TYPE_SURVEY",O);Y=x5(Z,I,d,Y);var W=[new yc(Z.L,P)];d=[new du(Z.L,P),new An(Z.L,d),new h1(Z.L,a)];if(Y instanceof C)return Y;O=f({slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,r4:"core",slotEntryTrigger:Y,slotFulfillmentTriggers:W,slotExpirationTriggers:d},{slotId:O,layoutId:a});f=O.J5m;O=O.yF;return[{slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1, slotEntryTrigger:VHL(Z,I,P,Y),slotFulfillmentTriggers:NNJ(Z,I,P,W),slotExpirationTriggers:d,r4:"core",clientMetadata:new D0([new Jn(f),new uY(GI(I)),new zI({KK:Z.KK(I)})]),adSlotLoggingData:T},O]}; f6n=function(Z,I){var d=!(!Z.m&&!Z.M),Y=!(!Z.mac3&&!Z.MAC3),T=!(!Z.meac3&&!Z.MEAC3);Z=!(!Z.i&&!Z.I);I.Gv=Z;return d||Y||T||Z}; yxn=function(Z,I){var d;return g.h(function(Y){(0,g.o8)();var T=Z.L;T.B||(T.B=new hwJ(T.Z));d=T.B;return Y.return(oIL(d,I,Z.iv))})}; Fxr=function(){var Z=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; qrJ=function(Z){return Z.localStorage===void 0?new c4("yt-client-location"):Z.localStorage}; sNO=function(Z,I){var d=1;Z.isTrusted===!1&&(d=0);m9("ISDSTAT",d);UM(d,"i.s_",{triggerContext:"sk",metadata:I});return d}; Fiu=function(Z,I){return I.reduce(function(d,Y){return function(T){return Y.intercept(T,d)}},Z)}; vu=function(Z,I){var d=I*4294967296+(Z>>>0);return Number.isSafeInteger(d)?d:ia(Z,I)}; GZ=function(){this.D=new Eha;this.L=ov()?new YW:new V2}; LQ9=function(Z,I){if(!Z.length)return!1;for(I+=1;I0)||d&&Z?null:"neb"}return Z!=null?Z:null}; I5=function(Z,I,d){I instanceof hN?(Z.N=I,Nni(Z.N,Z.V)):(d||(I=AR(I,AKD)),Z.N=new hN(I,Z.V))}; UE=function(Z,I){I=Z.split(I);for(var d={},Y=0,T=I.length;YZ.Bj&&LxE(Z)}; UkD=function(Z,I){if(Z.qC){var d=Z.qC.LN();if(d.length!==0){if(Z.Z&&I){var Y=Z.Z,T=Y.info.B;!Qb(d,T)&&Y.info.X>0&&(0,g.o8)()-Z.j<5E3&&(Z.logger&&Z.logger({dend:Y.info.m5()}),d=S_O(d,T,T+.01))}Z.policy.SL&&Z.logger&&Z.logger({cbri:""+Z.L});Y=[];for(var f=T=0;T=P){var e=Object.assign({},Z.N8[f]),B=Z.u5.Z.get(W9(Z.N8[f].formatId)),w=Math.max(a,P);P=B.index.Cl(w+Z.D/ 1E3);a=B.index.getStartTime(P);var V=P+ +(Math.abs(a-w)>Z.D/1E3);w=V+Z.N;V=B.index.getStartTime(V)*1E3;f!==Z.L||I?(e.Ye=w,e.startTimeMs=V):(Z.logger&&Z.logger({pEvict:"1",og:e.startTimeMs,adj:a*1E3}),e.Ye=P+Z.N,e.startTimeMs=a*1E3);P=void 0;a=((P=Z.Z)==null?void 0:P.info.duration)||11;f===Z.L&&OZ.D/1E3);P=a+Z.N;B=B.index.Ca(a)*1E3;e.Id=P;e.durationMs=B-e.startTimeMs;e.Ye<=e.Id&&Y.push(e)}WY.length){Z.error=!0;break}P|=(Y[a+1]<<8)+Y[a]<>=7;W<0;)W=I[(P&1)-W],P>>=1;else P>>=W&15;O-=W&15;W>>=4;if(W<256)T[f++]=W;else if(Z.register=P,Z.L=O,Z.D=a,W>256){P=qk[W];P+=Oa(Z,mx[W]);a=YlJ(Z,d);O=SH[a];O+=Oa(Z,JxB[a]);if($kB&&P=Z&&Z-8<<1-1&&((0,O[64])((0,O[64])((0,O[27])(((0,O[52])(O[18]),O[64])(O[18],O[43]),O[54],(0,O[27])((0,O[32])(O[70],O[13]),O[67],O[17],O[13]),O[66],O[61]),O[30],(0,O[7])(O[61],O[56]),O[67],O[69], O[58]),O[30],(0,O[25])(O[46],O[36]),O[25],O[41],O[43]),O[30])((0,O[57])(O[75],O[41]),O[35],O[11],O[41])}}catch(B){a=Q[79]+I;break a}a=P[Q[48]](Q[9])}}(Z>>2&7)>=4&&(Z<<2&16)<14&&d[Q[17]]!=0&&(P=bQE(12,I,d),I=P[0],d=P[1]);(Z&69)==Z&&(a=d(Y,T,f));(Z-8|49)>=Z&&(Z+9^25)=0&&(this.B.mfpe=""+I),this.In=!1);I="";g.V3(this.D)? dH(this.D)?(Y=d.D)&&(I="https://www.youtube.com/api/drm/fps?ek="+fhO(Y)):(I=d.initData.subarray(4),I=new Uint16Array(I.buffer,I.byteOffset,I.byteLength/2),I=String.fromCharCode.apply(null,I).replace("skd://","https://")):I=this.D.D;this.baseUrl=I;this.fairplayKeyId=F8(this.baseUrl,"ek")||"";if(I=F8(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(I);this.Ns=d.DR?[g.Bg(d.initData,4)]:d.Z;yy(this,{sessioninit:d.cryptoPeriodIndex});this.status="in"}; XQL=function(Z,I){var d=dB(Z.clientMetadata,"metadata_type_ad_placement_config");return new oq(Z.h5,I,d,Z.layoutId)}; g2u=function(){return g.y1("smart-tv")&&g.y1("samsung")}; q5=function(Z,I){yV(Z,"cat",I)}; MPJ=function(Z){g.x9("nwl_csi_killswitch")||en("networkless_performance",Z,{sampleRate:1})}; g.xM=function(Z){var I=[],d;for(d in Z)wQ(d,Z[d],I);return I.join("&")}; MHO=function(Z,I){g.zL(Z.element,"ytp-preview",I>=0);if(!(I<0||I===Z.N)){Z.N=I;I=243*Z.scale;var d=141*Z.scale,Y=e3D(Z.D,Z.N,I);BRE(Z.bg,Y,I,d,!0);Z.kS.start()}}; W1i=function(Z,I){Z=rAB(Z.u5.L,function(d){return d.info.itag===I}); if(!Z)throw Error("Itag "+I+" from server not known.");return Z}; rKD=function(Z,I){var d=new g.rF(I);(I=d.get("req_id"))&&Z.set("req_id",I);g.TA(Z.L,function(Y,T){d["set"](T,null)}); return d}; Pb$=function(Z,I){if((Z=mh(Z,I))&&Z.onCueRangeExit)return q$(Z.onCueRangeExit)}; pQ=function(Z){return Z.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; KQ=function(Z){g.k.call(this,{K:"div",T:x2.TITLE,G:[{K:"div",zm:[x2.TEXT,Z.Y("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],G:[{K:"a",zm:[x2.LINK,x2.SESSIONLINK],J:{target:Z.C().In,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},Z1:"{{title}}"},{K:"div",T:x2.SUBTEXT,G:["{{subtextElement}}"]}]}]});this.api=Z;this.L=null;this.link=this.KS(x2.LINK);Z.createClientVe(this.element,this,23851);this.W(Z,"videodatachange",this.qs); this.W(Z,"videoplayerreset",this.qs);this.qs()}; CQ=function(Z){if(Z.S.C().gb)return Z.nN.get("offline")}; ma=function(Z,I,d){var Y=Y===void 0?ua:Y;var T=ZIO(Z,I);return T?new g.eq(function(f,P){var O,a,W,e,B;return g.h(function(w){switch(w.L){case 1:return g.m(w,T,2);case 2:O=w.D;a=O.B(I,d,Y);if(!a){P(new g.Wj("Error: Failed to build request for command.",I));w.xS(0);break}Cu(a.input);e=((W=a.Ak)==null?void 0:W.mode)==="cors"?"cors":void 0;if(Z.L.BA){B=I3D(Z,a.config,e);w.xS(4);break}return g.m(w,JRr(Z,a.config,e),5);case 5:B=w.D;case 4:f(UOi(Z,a,B)),g.v6(w)}})}):ZD(new g.Wj("Error: No request builder found for command.", I))}; JHD=function(Z,I,d,Y,T){var f;if((f=Z.playerOverlay)==null||!f.instreamSurveyAdRenderer)return function(){return[]}; if(!dHu(Z))return function(){return new C("Received invalid InstreamVideoAdRenderer for DAI survey.",{instreamVideoAdRenderer:Z})}; var P=Z.playerOverlay.instreamSurveyAdRenderer,O=Ta(P);return O<=0?function(){return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:P})}:function(a,W){var e=w29(a,d,Y,function(B){var w=B.slotId; B=W(B);var V=fv(P);w=zi(T.D.get(),"LAYOUT_TYPE_SURVEY",w);var N={layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",r4:"core"},q=new jl(T.L,Y),A=new eb(T.L,w),F=new Bs(T.L,w),J=new oRl(T.L);return{layoutId:w,layoutType:"LAYOUT_TYPE_SURVEY",h5:new Map,layoutExitNormalTriggers:[q,J],layoutExitSkipTriggers:[A],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[F],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new qK(P),new Xj(I),new Ga(O/1E3),new OK(V)]),Tb:B(N),adLayoutLoggingData:P.adLayoutLoggingData}}); a=pkn(Z,d,e.slotId,Y,T,a,W);return a instanceof C?a:[e].concat(g.c(a))}}; dHu=function(Z){Z=((Z==null?void 0:Z.playerOverlay)||{}).instreamSurveyAdRenderer;var I;if(Z)if(Z.playbackCommands&&Z.questions&&Z.questions.length===1){var d,Y=((I=g.y(Z.questions[0],B6))==null?void 0:I.surveyAdQuestionCommon)||((d=g.y(Z.questions[0],eJ))==null?void 0:d.surveyAdQuestionCommon);I=sz7(Y)}else I=!1;else I=!1;return I}; Qxa=function(Z,I){var d;((d=window.performance)==null?0:d.getEntriesByName)&&(I=performance.getEntriesByName(I))&&I.length&&(I=I[0],Z.pedns=(I.domainLookupEnd-I.startTime).toFixed(),Z.pecon=(I.connectEnd-I.domainLookupEnd).toFixed(),Z.perqs=(I.requestStart-I.connectEnd).toFixed(),Hsn&&(Z.perqsa=I.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; JTL=function(Z,I){if(I.itagDenylist)for(var d=0;d=T.B?(T.D1("sdai",{haltrq:Y,est:T.B}),Y=!0):Y=!1;Y&&(I=!0)}I&&Z.policy.V&&Z.loader.D1("sabrcrq",{waitad:1}); if(I)return!1}Z.policy.Wb&&(Z.Bj=Pj(Z,Z.audioTrack),Z.fS=Pj(Z,Z.videoTrack));if(!Z.D)return Z.policy.V&&Z.loader.D1("sabrcrq",{nopolicy:1}),!0;if(Z.t5.yV())return Z.policy.V&&Z.loader.D1("sabrcrq",{utc:1}),!0;if(Z.Z.V)return Z.policy.V&&Z.loader.D1("sabrcrq",{audio:1}),!0;if(!Z.D.targetAudioReadaheadMs||!Z.D.targetVideoReadaheadMs)return Z.policy.V&&Z.loader.D1("sabrcrq",{noreadahead:1}),!0;if(Z.policy.B&&Z.loader.z1())return Z.policy.V&&Z.loader.D1("sabrcrq",{seekToHead:1}),!0;I=Math.min(Er(Z.loader, Z.audioTrack)*1E3,Z.D.targetAudioReadaheadMs);Y=Math.min(Er(Z.loader,Z.videoTrack)*1E3,Z.D.targetVideoReadaheadMs);var f=Math.min(I,Y),P=Z.t5.getCurrentTime()*1E3,O=mru(Z,P);T=O.Qp;d=O.O3;var a=O.xN;O=O.FJ;var W=T0&&d.push(g.vX("BR"));d.push(g.jb(f))}):d.push(g.jb(Y))}return d}; nW=function(Z){Z=Z===void 0?iW7:Z;g.p.call(this);var I=this;try{this.Z=Z(function(Y){I.D=Y.at(-1)}); var d;this.N=(d=this.Z)==null?void 0:d.observe("cpu",{sampleInterval:2E3}).catch(function(Y){Y instanceof DOMException&&(I.L=Y)})}catch(Y){Y instanceof DOMException&&(this.L=Y)}}; bpa=function(Z,I){Z.rateLimit?Z.L?(g.Kl.ze(Z.N),Z.N=g.Kl.AB(function(){Z.Z!==I&&(Z.dispatchEvent(I),Z.Z=I,Z.L=(0,g.o8)())},Z.rateLimit-((0,g.o8)()-Z.L))):(Z.dispatchEvent(I),Z.Z=I,Z.L=(0,g.o8)()):Z.dispatchEvent(I)}; gAE=function(Z,I,d){var Y,T,f;return g.h(function(P){switch(P.L){case 1:if(!g.x9("start_client_gcf")){P.xS(0);break}d&&J0(Z,d);Z.Jq(I);Y=lq();if(!Y){P.xS(3);break}if(d){P.xS(4);break}return g.m(P,kai(Y),5);case 5:T=P.D,d=(f=T)==null?void 0:f.config;case 4:return g.m(P,tbO(d,I,Y),3);case 3:if(d)for(var O=d,a=g.t(Z.j.L),W=a.next();!W.done;W=a.next())W=W.value,W(O);g.v6(P)}})}; s5=function(Z){$w.call(this,Z);var I=this;this.D=new Map;this.N=this.L=void 0;this.compositeVideoState=null;this.Z=void 0;this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"modulecreated",function(d){var Y;a:{var T,f,P,O=(T=I.api.getVideoData())==null?void 0:(f=T.getPlayerResponse())==null?void 0:(P=f.overlay)==null?void 0:P.playerControlsOverlayRenderer;if(O&&(T=g.y(O.compositeVideoOverlay,Qnn),T==null?0:(Y=T.sources)==null?0:Y.length))for(Y=g.t(T==null?void 0:T.sources),T=Y.next();!T.done;T= Y.next())if(T=T.value,T.isActive){Y=T;break a}Y=void 0}d==="captions"&&(Y==null?void 0:Y.topLeftCornerX)!==void 0&&(Y==null?void 0:Y.topLeftCornerY)!==void 0&&(Y==null?void 0:Y.width)!==void 0&&(Y==null?void 0:Y.height)!==void 0&&I.api.zo({top:Y.topLeftCornerY,right:1-Y.topLeftCornerX-Y.width,bottom:1-Y.topLeftCornerY-Y.height,left:Y.topLeftCornerX})}); this.events.W(Z,"videodatachange",function(d){var Y=I.api.getVideoData();I.L=void 0;I.D.clear();I.api.jM("compositeembargo",1);var T=Y==null?void 0:Y.lI.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(T==null?0:T.length)?I8u(I,T.filter(function(f){return OIu(I,f)})):(Y==null?0:Y.cueRanges)&&I8u(I,Y.cueRanges.filter(function(f){return OIu(I,f)})); d==="dataupdated"&&(Y==null?void 0:Y.compositeLiveStatusToken)!==I.N&&(I.N=Y==null?void 0:Y.compositeLiveStatusToken,I.api.D6())}); this.events.W(Z,g.E2("compositeembargo"),function(d){var Y;if(((Y=I.L)==null?void 0:Y.id)!==d.id&&(I.api.pw(!0),I.D.has(d.id))){var T=I.D.get(d.id);Y=I.api.getVideoData();T=g.t(T);for(var f=T.next();!f.done;f=T.next()){var P=void 0;f=(P=f.value.compositeEmbargo)==null?void 0:P.embargoStatusToken;Y.b1!==f&&(Y.b1=f,I.api.D6());dgJ(I,d)}}}); this.events.W(Z,g.bx("compositeembargo"),function(d){var Y;if(((Y=I.L)==null?void 0:Y.id)===d.id&&(I.api.pw(!1),I.D.has(d.id))){if(d=I.api.getVideoData())d.b1=void 0;I.api.D6();dgJ(I)}}); this.events.W(Z,"heartbeatRequest",function(d){I.compositeVideoState!==null&&(d.playbackState||(d.playbackState={}),d.playbackState.compositeVideoState=I.compositeVideoState)}); this.events.W(Z,"internalaudioformatchange",function(d,Y){var T=I.api.getVideoData(void 0,!0);T==null||T.D1("atrkchg",{id:d,m:Y});if(T&&qA(T))for(Y=I.api.getAvailableAudioTracks(),Y=g.t(Y),T=Y.next();!T.done;T=Y.next())if(T.value.getLanguageInfo().getId()===d){I.api.C().J5=d;break}}); this.events.W(Z,"onPlaybackAudioChange",function(){I.api.D6();var d=Z.getVideoData();if(d==null?0:d.C().Y("html5_preload_on_mosaic_audio_track_change")){if(d==null)d=void 0;else{var Y,T,f,P;d=(P=(Y=d.playerResponse)==null?void 0:(T=Y.playerConfig)==null?void 0:(f=T.compositeVideoConfig)==null?void 0:f.sourceConfigs)!=null?P:[]}if(T=d)for(Y=Z.getAudioTrack().uo.getId(),T=g.t(T),f=T.next();!f.done;f=T.next())for(f=f.value,d=void 0,P=g.t((d=f.audioTracks)!=null?d:[]),d=P.next();!d.done;d=P.next())d.value.id=== Y&&Z.preloadVideoByPlayerVars({videoId:f.videoId,xd:!0},1)}}); pF(Z,"setCompositeParam",function(d){I.compositeVideoState=d}); this.api.Y("web_watch_enable_multiview_manager")&&pF(Z,"setCompositeVideoOverlayRendererComponent",function(d){I.setCompositeVideoOverlayRendererComponent(d)})}; Wdi=function(Z){var I=Z.N.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);I.classList.add("ytp-seek-overlay-arrow-additional");I.classList.remove("ytp-seek-overlay-arrow-persistent");Z.N.appendChild(I);a3J(Z,I,!0,!0).addEventListener("finish",function(){I.remove()})}; eGL=function(Z,I){Z=Z===void 0?{}:Z;switch(I.type){case "ENTITY_LOADED":return I.payload.reduce(function(Y,T){var f,P=(f=T.options)==null?void 0:f.persistenceOption;if(P&&P!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&P!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return Y;if(!T.entityKey)return g.nl(Error("Missing entity key")),Y;if(T.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!T.payload)return T=new g.Wj("REPLACE entity mutation is missing a payload",{entityKey:T.entityKey}),g.nl(T),Y;var O=g.Hx(T.payload); return fh(Y,O,T.entityKey,T.payload[O])}if(T.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{T=T.entityKey;try{var a=g.VU(T).entityType;O=fh(Y,a,T);break a}catch(B){if(B instanceof Error){T=new g.Wj("Failed to deserialize entity key",{entityKey:T,originalMessage:B.message});g.nl(T);O=Y;break a}throw B;}O=void 0}return O}if(T.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!T.payload)return T=new g.Wj("UPDATE entity mutation is missing a payload",{entityKey:T.entityKey}),g.nl(T),Y;O=g.Hx(T.payload);var W,e;return Xzn(Y, O,T.entityKey,T.payload[O],(W=T.fieldMask)==null?void 0:(e=W.mergeOptions)==null?void 0:e.repeatedFieldsMergeOption)}return Y},Z); case "REPLACE_ENTITY":var d=I.payload;return fh(Z,d.entityType,d.key,d.vY);case "REPLACE_ENTITIES":return Object.keys(I.payload).reduce(function(Y,T){var f=I.payload[T];return Object.keys(f).reduce(function(P,O){return fh(P,T,O,f[O])},Y)},Z); case "UPDATE_ENTITY":return d=I.payload,Xzn(Z,d.entityType,d.key,d.vY,d.BFS);default:return Z}}; Oc=function(Z){this.Gm=bp(Z)}; cx=function(Z,I){C5(I)?Z.Ji(1):g.Nw(I,4)&&!g.Nw(I,2)&&Z.lJ();na(I,4)<0&&!(na(I,2)<0)&&Z.sC()}; wdr=function(Z){var I=Z.api.m2();Z.Z!==I&&(Z.Z=I,BUD(Z,Z.api.getVolume(),Z.api.isMuted()))}; rQ=function(Z,I,d,Y){this.D=null;this.B=!1;this.L=this.Z=this.N=0;this.init(Z,I,d,Y)}; W4=function(Z,I){g.k.call(this,{K:"button",zm:["ytp-button","ytp-jump-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},G:[I>0?{K:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},G:[{K:"path",zm:["ytp-circle-arrow","ytp-svg-fill"],J:{d:"m19,12c0,2.1 -0.93,4.07 -2.55,5.4c-1.62,1.34 -3.76,1.87 -5.86,1.46c-2.73,-0.53 -4.92,-2.72 -5.45,-5.45c-0.41,-2.1 .12,-4.24 1.46,-5.86c1.33,-1.62 3.3,-2.55 5.4,-2.55l1.27,0l-0.85,.85l1.41,1.41l3.35,-3.35l-3.35,-3.35l-1.41,1.41l1.01,1.03l-1.43,0c-2.7,0 -5.23,1.19 -6.95,3.28c-1.72,2.08 -2.4,4.82 -1.88,7.52c0.68,3.52 3.51,6.35 7.03,7.03c0.6,.11 1.19,.17 1.78,.17c2.09,0 4.11,-0.71 5.74,-2.05c2.09,-1.72 3.28,-4.25 3.28,-6.95l-2,0z"}}, {K:"text",zm:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"7.05",y:"15.05"}}]}:{K:"svg",J:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},G:[{K:"path",zm:["ytp-circle-arrow","ytp-svg-fill"],J:{d:"m18.95,6.28c-1.72,-2.09 -4.25,-3.28 -6.95,-3.28l-1.43,0l1.02,-1.02l-1.41,-1.41l-3.36,3.35l3.35,3.35l1.41,-1.41l-0.85,-0.86l1.27,0c2.1,0 4.07,.93 5.4,2.55c1.34,1.62 1.87,3.76 1.46,5.86c-0.53,2.73 -2.72,4.92 -5.45,5.45c-2.11,.41 -4.24,-0.12 -5.86,-1.46c-1.62,-1.33 -2.55,-3.3 -2.55,-5.4l-2,0c0,2.7 1.19,5.23 3.28,6.95c1.62,1.34 3.65,2.05 5.74,2.05c0.59,0 1.19,-0.06 1.78,-0.17c3.52,-0.68 6.35,-3.51 7.03,-7.03c0.52,-2.7 -0.17,-5.44 -1.88,-7.52z"}}, {K:"text",zm:["ytp-jump-button-text","ytp-svg-fill"],J:{x:"6.5",y:"15"}}]}]});var d=this;this.S=Z;this.L=I;this.D=new g.uX(function(){d.Z?(d.Z=!1,d.D.start()):d.element.classList.remove("ytp-jump-spin","backwards")},250); this.Z=!1;(I=I>0)?this.S.createClientVe(this.element,this,36843):this.S.createClientVe(this.element,this,36844);var Y=g.yd(I?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.L).toString()});this.S.Y("player_tooltip_data_title_killswitch")?this.update({title:Y,"data-title-no-tooltip":Y,"aria-keyshortcuts":I?"\u2192":"\u2190"}):this.update({"tooltip-title":Y,"data-title-no-tooltip":Y,"aria-keyshortcuts":I?"\u2192":"\u2190"});this.N=this.element.querySelector(".ytp-jump-button-text"); this.N.textContent=Math.abs(this.L).toString();this.listen("click",this.onClick,this);pi(Z,this.element,this)}; Ap=function(Z,I){g.Yz(Z.policy.N)!==4&&(g.wN(Z.policy.N,4),g.uL(I),Z.X.reject(new DU(I.message)))}; g.yd=function(Z,I){for(var d=g.t(Object.keys(I)),Y=d.next(),T={};!Y.done;T={placeholder:void 0},Y=d.next())Y=Y.value,T.placeholder=I[Y],Z=Z.replace(new RegExp("\\$"+Y,"gi"),function(f){return function(){return f.placeholder}}(T)); return Z}; g.b3=function(Z,I){return Z!==null&&I in Z}; VYL=function(Z,I){if(Z.loader.isSeeking())return I;var d=Z.t5.bQ();if(!d)return I;d=d.cE();if(d.length===0||Qb(d,I))return I;if(!Z.videoTrack.Kv(I)&&!Z.audioTrack.Kv(I))return Z.loader.D1("sundrn",{b:0,lt:I}),I;for(var Y=I,T=Infinity,f=0;fI)){var P=I-d.end(f);P=20)?(Z.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),I):Y}; ucd=function(){switch(Pir()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}}; J8=function(Z){return Z.length?zV?zV.decode(Z):String.fromCharCode.apply(null,Z):""}; qQ=function(Z,I){return I===void 0||I===null?Z:I.toString()}; sO=function(Z){Z.L||(Z.L=new Map,Z.D=0,Z.Z&&Qma(Z.Z,function(I,d){Z.add(Ir(I),d)}))}; gN=function(Z,I,d){I=I===void 0?"":I;d=d===void 0?"":d;Z=new g.rF(Z,!0);Z.set("alr","yes");d&&(d=nY(11,decodeURIComponent(d)),Z[Q[6]](I,encodeURIComponent(d)));return Z}; SI=function(Z){return Z.includes("vtt")||Z.includes("text/mp4")}; rN=function(Z,I,d,Y,T){var f=Z.Y("html5_enable_new_audio_settings_menu");lJ.call(this,"Stable Volume",f?NU$.qw:g.D$.qw);this.S=Z;this.Z=I;this.D=d;this.hasDrcAudioTrack=Y;this.getDrcState=T;this.enableNewAudioSettingsMenu=this.L=!1;g.xw(this.element,"ytp-drc-menu-item");this.A5=(this.enableNewAudioSettingsMenu=f)?Z.sI().nB:Z.sI();Z.addEventListener("videodatachange",this.sV.bind(this));Z.Y("mta_drc_mutual_exclusion_removal")&&this.W(Z,"onPlaybackAudioChange",this.sV);Z.Y("html5_enable_audio_ve_logging")&& (Z.createClientVe(this.element,this,273317),this.listen("click",this.B));I=this.D()===1&&this.hasDrcAudioTrack();this.enableNewAudioSettingsMenu||(Z=Z.Y("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M12 .99C5.92 .99 1 5.92 1 11.99C1 18.07 5.92 22.99 12 22.99C18.07 22.99 23 18.07 23 11.99C23 5.92 18.07 .99 12 .99ZM12 2.99C14.38 2.99 16.67 3.94 18.36 5.63C20.05 7.32 21 9.61 21 11.99C21 14.38 20.05 16.67 18.36 18.36C16.67 20.05 14.38 20.99 12 20.99C9.61 20.99 7.32 20.05 5.63 18.36C3.94 16.67 3 14.38 3 11.99C3 9.61 3.94 7.32 5.63 5.63C7.32 3.94 9.61 2.99 12 2.99ZM14 6.00C13.73 6.00 13.48 6.10 13.29 6.29C13.10 6.48 13 6.73 13 7.00V17.00C13 17.26 13.10 17.52 13.29 17.70C13.48 17.89 13.73 18.00 14 18.00C14.26 18.00 14.51 17.89 14.70 17.70C14.89 17.52 15 17.26 15 17.00V7.00C15 6.73 14.89 6.48 14.70 6.29C14.51 6.10 14.26 6.00 14 6.00ZM10 8.00C9.73 8.00 9.48 8.10 9.29 8.29C9.10 8.48 9 8.73 9 9.00V15.00C9 15.26 9.10 15.52 9.29 15.70C9.48 15.89 9.73 16.00 10 16.00C10.26 16.00 10.51 15.89 10.70 15.70C10.89 15.52 11 15.26 11 15.00V9.00C11 8.73 10.89 8.48 10.70 8.29C10.51 8.10 10.26 8.00 10 8.00ZM18 9.00C17.73 9.00 17.48 9.10 17.29 9.29C17.10 9.48 17 9.73 17 10.00V14.00C17 14.26 17.10 14.52 17.29 14.70C17.48 14.89 17.73 15.00 18 15.00C18.26 15.00 18.51 14.89 18.70 14.70C18.89 14.52 19 14.26 19 14.00V10.00C19 9.73 18.89 9.48 18.70 9.29C18.51 9.10 18.26 9.00 18 9.00ZM6 10.00C5.73 10.00 5.48 10.10 5.29 10.29C5.10 10.48 5 10.73 5 11.00V13.00C5 13.26 5.10 13.52 5.29 13.70C5.48 13.89 5.73 14.00 6 14.00C6.26 14.00 6.51 13.89 6.70 13.70C6.89 13.52 7 13.26 7 13.00V11.00C7 10.73 6.89 10.48 6.70 10.29C6.51 10.10 6.26 10.00 6 10.00Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M7 13H5v-2h2v2zm3-4H8v6h2V9zm3-3h-2v12h2V6zm3 2h-2v8h2V8zm3 2h-2v4h2v-4zm-7-7c-4.96 0-9 4.04-9 9s4.04 9 9 9 9-4.04 9-9-4.04-9-9-9m0-1c5.52 0 10 4.48 10 10s-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2z",fill:"white"}}]},this.setIcon(Z));this.subscribe("select",this.N,this);this.enableNewAudioSettingsMenu?this.sV():(this.setEnabled(this.hasDrcAudioTrack()),Mk(this,I),this.A5.vk(this))}; hGJ=function(Z,I,d,Y){d=d===void 0?0:d;if(Z!==FdO(d)||I!==g.rh(j3(d)))if(snd(Z,Y,d),Yei(Z,d),m9(j3(d),I),I=function(){setTimeout(function(){Z&&g.g6("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:nRl,clientScreenNonce:Z})},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(I)}catch(T){I()}else I()}; mHr=function(Z,I){for(var d=[],Y=g.t(Z.fM.values()),T=Y.next();!T.done;T=Y.next())T=T.value,T.trigger.triggerType===I&&d.push(T);d.length>0&&np(Z.j(),d)}; eed=function(){var Z=/WebKit\/([0-9]+)/.exec(g.Vs());return!!(Z&&parseInt(Z[1],10)>=602)}; qSJ=function(Z,I,d,Y,T,f){this.S7=Z;this.Q5=I;this.jK=d;this.Ms=Y;this.Df=T;this.V5=f}; AT=function(Z){this.value=Z}; SSn=function(){nO.call(this);this.Z=new LL;this.w4=this.In=this.Bj=0;this.X=-1;this.b5=new LL;this.B=new LL;this.L=new Ew;this.j=this.N=-1;this.LS=new LL;this.d4=2E3;this.j7=new Il;this.J5=new Il;this.on=new Il}; XT9=function(Z){var I=gF("_start",Z),d=WiO(Z),Y=!AJi;I&&d&&Y&&(JL(DHl,new Dqd(Math.round(d-I),Z)),AJi=!0)}; vN=function(Z,I,d){var Y=this;this.network=Z;this.options=I;this.D=d;this.L=null;if(I.QXJ){var T=new g.f2;this.L=T.promise;g.iN.ytAtRC&&rG(function(){var f,P;return g.h(function(O){if(O.L==1){if(!g.iN.ytAtRC)return O.return();f=b$(null);return g.m(O,c9(Y,f),2)}P=O.D;g.iN.ytAtRC&&g.iN.ytAtRC(JSON.stringify(P));g.v6(O)})},2); mvu().then(function(f){var P,O,a,W;return g.h(function(e){if(e.L==1)return f.bindInnertubeChallengeFetcher(function(B){return c9(Y,b$(B))}),g.m(e,ho(),2); P=e.D;O=f.getLatestChallengeResponse();a=O.challenge;if(!a)throw Error("BGE_MACIL");W={challenge:a,xx:rE(a),AZ:P,bgChallenge:new Ae};T.resolve(W);f.registerChallengeFetchedCallback(function(B){B=B.challenge;if(!B)throw Error("BGE_MACR");B={challenge:B,xx:rE(B),AZ:P,bgChallenge:new Ae};Y.L=Promise.resolve(B)}); g.v6(e)})})}else I.preload&&df9(this,new Promise(function(f){g.Zb(0,function(){f(Iw(Y))},0)}))}; KFD=function(Z){var I,d=(I=dB(Z.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:I.current;if(!d)return null;I=dB(Z.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var Y=Z.layoutId,T=dB(Z.clientMetadata,"metadata_type_content_cpn"),f=dB(Z.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),P=dB(Z.clientMetadata,"metadata_type_player_underlay_renderer"),O=dB(Z.clientMetadata,"metadata_type_ad_placement_config"),a=dB(Z.clientMetadata,"metadata_type_video_length_seconds"); var W=ZL(Z.clientMetadata,"metadata_type_layout_enter_ms")&&ZL(Z.clientMetadata,"metadata_type_layout_exit_ms")?(dB(Z.clientMetadata,"metadata_type_layout_exit_ms")-dB(Z.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{kO:Y,contentCpn:T,U6:d,Rz:I,instreamAdPlayerOverlayRenderer:f,instreamAdPlayerUnderlayRenderer:P,adPlacementConfig:O,videoLengthSeconds:a,C9:W,inPlayerLayoutId:dB(Z.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:dB(Z.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; JJr=function(Z,I){for(var d=[],Y=g.t(Object.keys(Z.L)),T=Y.next();!T.done;T=Y.next())T=T.value,d.push(T+"_"+Z.L[T].type+"_"+Z.L[T].status);return d.join(I)}; snd=function(Z,I,d){var Y=nv9();(d=g.vv(d))&&delete Y[d];I&&(Y[Z]=I)}; RG$=function(Z){var I,d;return!!((I=Z.playerResponse)==null?0:(d=I.playerConfig)==null?0:d.granularVariableSpeedConfig)}; LdL=function(Z){var I=oi(Z);return I?I.j-Z.loader.getCurrentTime():0}; UHa=function(Z,I){var d=Z.startSecs+Z.QI;d=d<=0?null:d;if(d===null)return null;switch(Z.event){case "start":case "continue":case "stop":break;case "predictStart":if(I)break;return null;default:return null}I=Math.max(Z.startSecs,0);return{Or:new Tu(I,d),t7J:new Ax(I,d-I,Z.context,Z.identifier,Z.event,Z.L)}}; h3=function(Z,I,d){if(UY(Z.L,I)){a:switch(Fc(Z.L,I).L){case "exit_requested":var Y=!0;break a;default:Y=!1}if(!Y)a:switch(Fc(Z.L,I).L){case "rendering_stop_requested":Y=!0;break a;default:Y=!1}if(Y&&(Fc(Z.L,I).B=!0,!d))return;if(go(Fc(Z.L,I)))Fc(Z.L,I).B=!0,yJ7(Z,I,d);else{a:switch(Fc(Z.L,I).N){case "fill_requested":d=!0;break a;default:d=!1}if(d)Fc(Z.L,I).B=!0,UY(Z.L,I)&&(Z.Wk.NO("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",I),I=Fc(Z.L,I),I.N="fill_cancel_requested",I.V.Zw());else{d= My(Z.L,I);(Y=Z.Ms.get().S.C().experiments.CS("h5_enable_layout_unscheduling_events"))&&(d?Z.Ny(I,d):Zv(Error("Layout is null for LayoutUnscheduled event."),I,d,void 0,!1));Z.Wk.NO("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",I);var T=Fc(Z.L,I),f=I.slotEntryTrigger,P=T.Ns.get(f.triggerId);P&&(P.h$(f),T.Ns.delete(f.triggerId));f=g.t(I.slotFulfillmentTriggers);for(P=f.next();!P.done;P=f.next()){P=P.value;var O=T.LS.get(P.triggerId);O&&(O.h$(P),T.LS.delete(P.triggerId))}f=g.t(I.slotExpirationTriggers); for(P=f.next();!P.done;P=f.next())if(P=P.value,O=T.In.get(P.triggerId))O.h$(P),T.In.delete(P.triggerId);T.layout!=null&&(f=T.layout,bi(T,f.layoutExitNormalTriggers),bi(T,f.layoutExitSkipTriggers),bi(T,f.layoutExitMuteTriggers),bi(T,f.layoutExitUserInputSubmittedTriggers),bi(T,f.layoutExitUserCancelledTriggers));T.V=void 0;T.D!=null&&(T.D.release(),T.D=void 0);T.Z!=null&&(T.Z.release(),T.Z=void 0);T=Z.L;Fc(T,I)&&(T=nR(T,I.slotType+"_"+I.slotPhysicalPosition))&&T.delete(I.slotId);Z.Wk.NO("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", I);Z=g.t(Z.D);for(T=Z.next();!T.done;T=Z.next())T=T.value,T.u4(I),d&&!Y&&T.Ny(I,d)}}}}; Z3=function(Z,I,d,Y,T,f,P){var O=new QF;I in g.HS||(I="small");I==="light"&&(I="tiny");Y&&T?(T=Number(T),Y=Number(Y)):(T=g.HS[I],Y=Math.round(T*16/9));f=new cS(Y,T,0,null,void 0,I,f,P);Z=unescape(Z.replace(/"/g,'"'));return new Pg(d,Z,{audio:O,video:f})}; vRJ=function(Z,I,d,Y,T){try{if(Z.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var f=d(Z.state.value);f instanceof g.WD?AH7(Z,I,f,Y,T):Y(f)}catch(P){T(P)}}; BA=function(Z){if(Z.Y("html5_onesie")&&Z.errorCode)return!1;var I=g.Kc(Z.Bj,"ypc");Z.ypcPreview&&(I=!1);return Z.FF()&&!Z.loading&&(g.In(Z)||g.Kc(Z.Bj,"heartbeat")||I)}; l39=function(Z,I){Z.Y("html5_log_media_perf_info")&&(Z.t5.D1("perfdb",W4$()),Z.t5.D1("sessionperfdb",Object.fromEntries(jH.entries())),Z.t5.D1("playbackperfdb",Object.fromEntries(Z.Z.entries())),Z.t5.D1("hwc",{nch:navigator.hardwareConcurrency},!0),I&&Z.t5.D1("mcdb",{itags:I.L.videoInfos.filter(function(d){var Y;return((Y=d.D)==null?void 0:Y.smooth)===!1}).map(function(d){return d.itag}).join("-")}))}; $$=function(){var Z="ytp-id-"+uwa.toString();uwa++;return Z}; pL=function(Z,I){Z.Z={CP:I,W9:!0};Z.L=Z.j||Z.B}; s0=function(Z){return Z.type===3||Z.type===6}; F_=function(Z){var I=(0,g.o8)();Z.data.forEach(function(d){d.expire0&&f.width>0){f=[Math.round(f.width),Math.round(f.height)];var P=g.HO();P>1&&f.push(P);f=f.join(":")}else f=void 0;T.size=f})}; Se=function(Z,I,d,Y,T){Xd9(Z,I,d,void 0,Y,T)}; on=function(Z,I,d,Y,T,f){f=f===void 0?0:f;J_.call(this,Z,{K:"div",T:"ytp-preview-ad",G:[{K:"div",T:"ytp-preview-ad__text"}]},"preview-ad",I,d,Y,T);var P=this;this.kS=f;this.D=0;this.N=-1;this.Z=this.KS("ytp-preview-ad__text");switch(this.kS){case 1:this.Z.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.nt(this,400,!1,100,function(){P.hide()}); g.z(this,this.transition);this.hide()}; uU=function(Z,I,d){d=d===void 0?!1:d;I.o8&&((d===void 0?0:d)||!I.info.e7[0].L.xf())&&(Z=Z.N,Z.kS&&!Z.policy.C8&&(d=Z.loader,d.u5.isManifestless&&jg(d.u5,Z.kS.YS,!!Z.B.info.video)),Z.kS=null,Z.j=null,Z.N=Z.d4,Z.Z=Z.N?Z.Z-Z.LS:NaN,ED(Z));I.dispose()}; tYi=function(Z){var I=GU(),d=lz(pz);Z&&!I.N&&(I.N=!0,d.mJ=!0,d.V&&d.fail("w",!0))}; g.$Hl=function(Z){if(Z.info.L.FY())return Z.info.duration;Z.N===-1&&(Z.N=z$(Z));return Z.N||Z.info.duration}; g.hi=function(Z,I){var d=I||document;d.getElementsByClassName?Z=d.getElementsByClassName(Z)[0]:(d=document,Z=Z?(I||d).querySelector(Z?"."+Z:""):g.YR(d,"*",Z,I)[0]||null);return Z||null}; $7E=function(Z){Z.Z.length?Z.D=g.N2(g.N2(Z.Z).info.e7):Z.N.D.length?Z.D=Z.N.Rw().info:Z.D=oi(Z)}; Ts=function(Z){return Z}; xHa=function(Z,I){if(!EU7())throw Error();Z.iU(Z.value,I)||(Z.value=I,Z.version++,pdJ++,oUu(Z))}; pZ=function(Z){g.p.call(this);this.L=Z;this.Gz=!0;this.fM=new Map}; r09=function(Z){var I=Z.mediaElement;ZHB()?Z.TE.W(I,"webkitpresentationmodechanged",Z.Xgm):window.document.pictureInPictureEnabled&&(Z.TE.W(I,"enterpictureinpicture",function(){Z.Ug(!0)}),Z.TE.W(I,"leavepictureinpicture",function(){Z.Ug(!1)})); kD&&(Z.TE.W(I,"webkitbeginfullscreen",function(){Z.Pl(3)}),Z.TE.W(I,"webkitendfullscreen",function(){Z.Pl(0)}))}; Kd9=function(Z){if(Z.layout.renderingContent){var I;return(I=dB(Z.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:I.current}return dB(Z.layout.clientMetadata,"metadata_type_player_bytes_callback")}; jY=function(Z,I,d,Y){if(d==="child"){g.Nd(I);var T;Y===void 0?T=void 0:T=!Array.isArray(Y)||Y&&typeof Y.K==="string"?[Y]:Y;d=PAa(Z,T);d=g.t(d);for(Z=d.next();!Z.done;Z=d.next())I.appendChild(Z.value)}else d==="style"?g.K2(I,"cssText",Y?Y:""):Y===null||Y===void 0?I.removeAttribute(d):(Z=Y.toString(),d==="href"&&(Z=g.OZ(g.mQ(Z))),I.setAttribute(d,Z))}; Lq=function(){return g.gZ("yt.gcf.config.coldConfigGroup")}; CAB=function(Z,I){g.Xe(I,function(d){return Z.equals(d)})||I.push(Z)}; bG=function(Z,I){rI(Z,I.reason,I.L.info,I.token,I.videoId)}; g.QY=function(){return Date.now()}; HI7=function(Z,I,d){d=d===void 0?0:d;var Y=Z.type;var T=Z.itag;var f=Z.xtags;f&&(T=Z.itag+";"+f);if($0B(Y)){var P=(Z.size||"640x360").split("x");P=new cS(+P[0],+P[1],+Z.fps,Z.projection_type,+Z.stereo_layout,void 0,Z.quality_label,+Z.quality_ordinal,Z.eotf,Z.primaries);Y=wxO(Y,P,fF[Z.itag]);ER7&&(Y+="; enableflushduringseek=true");bI$&&(Y+="; enableresetaudiodecoder=true")}var O;if(ZnE(Y)){var a=new QF(+Z.audio_sample_rate||void 0,+Z.audio_channels||0,Z.spatial_audio_type,!!Z.drc);Z.name&&(O=new g.PA(Z.name, Z.audio_track_id,Z.isDefault==="1"))}var W;Z.caption_display_name&&Z.caption_vss_id&&Z.caption_language_code&&(W=new zUn(Z.caption_display_name,Z.caption_vss_id,Z.caption_language_code,Z.caption_kind,Z.xtags,Z.caption_id));f=Number(Z.bitrate)/8;var e=Number(Z.clen),B=Number(Z.lmt);d=d&&e?e/d:0;if(I&&Z.drm_families){var w={};for(var V=g.t(Z.drm_families.split(",")),N=V.next();!N.done;N=V.next())N=N.value,w[N]=I[N]}return new Pg(T,Y,{audio:a,video:P,uo:O,T_:w,pS:f,mV:d,contentLength:e,lastModified:B, captionTrack:W,streamType:Z.stream_type,approxDurationMs:Number(Z.approx_duration_ms)})}; cJO=function(Z,I,d,Y){Z.Z=Y;Z.api.DC(Z.L,d,I)}; AF=function(Z){return Z.L&&Z.JW}; gRB=function(Z,I,d){if(Z.uw()===Z.A_.length-1){var Y,T;Zv("Unexpected skip requested during the last sublayout",(Y=Z.CN())==null?void 0:Y.Xx(),(T=Z.CN())==null?void 0:T.Xm(),{requestingSlot:I,requestingLayout:d})}}; Kcn=function(Z){return new Ui(Z.top,Z.right,Z.bottom,Z.left)}; rJB=function(Z){g.g0(Z.PL);MYa(Z)||(Z.PL=g.ly(function(){return MYa(Z)},100))}; kva=function(Z){return Z.Pj==="H"||Z.Pj==="h"}; U0O=function(){var Z=ZCJ||JB;if(!Z)return"";var I=[];if(!Z.location||!Z.location.href)return"";I.push("url="+encodeURIComponent(Z.location.href.substring(0,512)));Z.document&&Z.document.referrer&&I.push("referrer="+encodeURIComponent(Z.document.referrer.substring(0,512)));return I.join("&")}; dy=function(Z,I,d,Y){var T=this;this.V=Z;this.u5=I;this.policy=d;this.logger=Y;this.s9=[];this.N8=[];this.L=-1;this.qC=null;this.j=this.timestampOffset=0;this.D=10;this.B=new Set;this.A9={s$:function(f){return T.s$(f)}}; this.N=I.Qy?0:1;d.Gy>0&&(this.D=d.Gy)}; czL=function(){return typeof Worker==="function"&&JdB()?!0:!1}; UmL=function(Z){switch(Z){case "LAYOUT_EXIT_REASON_UNSPECIFIED":return"unknown";case "LAYOUT_EXIT_REASON_NORMAL":return"normal";case "LAYOUT_EXIT_REASON_ERROR":return"error";case "LAYOUT_EXIT_REASON_USER_SKIPPED":return"skipped";case "LAYOUT_EXIT_REASON_USER_MUTED":return"muted";case "LAYOUT_EXIT_REASON_ABANDONED":return"abandoned";case "LAYOUT_EXIT_REASON_USER_INPUT_SUBMITTED":return"user_input_submitted";case "LAYOUT_EXIT_REASON_USER_CANCELLED":return"user_cancelled";default:return new C("Invalid layout exit reason: "+ Z)}}; P1=function(Z){zd.call(this);var I=this;this.logger=Z;this.A9={A65:function(){return I.logger}, t7:function(){return I.logger.A9.t7()}}; this.addOnDisposeCallback(function(){return void I.logger.dispose()})}; IoB=function(Z,I){g.k.call(this,{K:"div",T:"ytp-cards-teaser",G:[{K:"div",T:"ytp-cards-teaser-box"},{K:"div",T:"ytp-cards-teaser-text",G:Z.C().Y("player_new_info_card_format")?[{K:"button",T:"ytp-cards-teaser-info-icon",J:{"aria-label":"Show cards","aria-haspopup":"true"},G:[cDJ()]},{K:"img",T:"ytp-cards-teaser-channel-avatar",J:{alt:"","aria-hidden":"true"}},{K:"span",T:"ytp-cards-teaser-label",Z1:"{{text}}"},{K:"button",T:"ytp-cards-teaser-close-button",J:{"aria-label":"Close"},G:[g.Hz()]}]:[{K:"span", T:"ytp-cards-teaser-label",Z1:"{{text}}"}]}]});var d=this;this.S=Z;this.CF=I;this.fade=new g.nt(this,250,!1,250);this.L=null;this.j=new g.uX(this.x85,300,this);this.B=new g.uX(this.nu1,2E3,this);this.N=[];this.D=null;this.V=new g.uX(function(){d.element.style.margin="0"},250); this.onClickCommand=this.Z=null;g.z(this,this.fade);g.z(this,this.j);g.z(this,this.B);g.z(this,this.V);Z.C().Y("player_new_info_card_format")?(g.xw(Z.getRootNode(),"ytp-cards-teaser-dismissible"),this.W(this.KS("ytp-cards-teaser-close-button"),"click",this.lM),this.W(this.KS("ytp-cards-teaser-info-icon"),"click",this.T6),this.W(this.KS("ytp-cards-teaser-label"),"click",this.T6)):this.listen("click",this.T6);this.W(I.element,"mouseover",this.RZ);this.W(I.element,"mouseout",this.ED);this.W(Z,"cardsteasershow", this.yZm);this.W(Z,"cardsteaserhide",this.zb);this.W(Z,"cardstatechange",this.vA);this.W(Z,"presentingplayerstatechange",this.vA);this.W(Z,"appresize",this.Tp);this.W(Z,"onShowControls",this.Tp);this.W(Z,"onHideControls",this.N0);this.listen("mouseenter",this.sE)}; dYa=function(Z,I,d){var Y,T=((Y=d.adSlots)!=null?Y:[]).map(function(O){return g.y(O,s1)}); if(d.Z2)if(dB(I.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))qg(Z.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},I.slotId); else{if(Z.Ms.get().S.C().Y("h5_check_forecasting_renderer_for_throttled_midroll")){var f=d.MP.filter(function(O){var a;return((a=O.renderer)==null?void 0:a.clientForecastingAdRenderer)!=null}); f.length!==0?k6J(Z.Z,f,T,I.slotId,d.ssdaiAdsConfig):qg(Z.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},I.slotId)}else qg(Z.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},I.slotId); rx9(Z.N,I)}else{var P;Y={Fn:Math.round(((f=dB(I.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:f.Fn)||0),qU:(P=dB(I.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:P.qU};f=dB(I.clientMetadata,"metadata_type_cue_point");k6J(Z.Z,d.MP,T,I.slotId,d.ssdaiAdsConfig,Y,f)}}; OrL=function(Z){var I=g.t(Z.split("."));Z=I.next().value;I=I.next().value;return[Number(Z),I]}; g.Ul=function(Z){return Z.fS==="profilepage"}; oFO=function(Z){if(!e1(Z,440786851,!0))return null;var I=Z.pos;F2(Z,!1);var d=F2(Z,!0)+Z.pos-I;Z.pos=I+d;if(!e1(Z,408125543,!1))return null;F2(Z,!0);if(!e1(Z,357149030,!0))return null;var Y=Z.pos;F2(Z,!1);var T=F2(Z,!0)+Z.pos-Y;Z.pos=Y+T;if(!e1(Z,374648427,!0))return null;var f=Z.pos;F2(Z,!1);var P=F2(Z,!0)+Z.pos-f,O=new Uint8Array(d+12+T+P),a=new DataView(O.buffer);O.set(new Uint8Array(Z.L.buffer,Z.L.byteOffset+I,d));a.setUint32(d,408125543);a.setUint32(d+4,33554431);a.setUint32(d+8,4294967295); O.set(new Uint8Array(Z.L.buffer,Z.L.byteOffset+Y,T),d+12);O.set(new Uint8Array(Z.L.buffer,Z.L.byteOffset+f,P),d+12+T);return O}; Yk7=function(Z,I,d,Y,T){J_.call(this,Z,{K:"div",T:"ytp-skip-ad"},"skip-ad",I,d,Y,T);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.Z=new GH(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj);g.z(this,this.Z);this.Z.i5(this.element);this.hide()}; T49=function(Z,I){var d=pzn(I),Y=I99(I);if(!I.hV||!Z.S.Wl())if(Z.L||Z.S.Y("enable_paid_content_overlay_bugfix")){if(I.videoId&&I.videoId!==Z.videoId){var T;(T=Z.L)==null||g.V9(T);!Z.S.Y("enable_paid_content_overlay_bugfix")||d&&Y?(Z.videoId=I.videoId,Z.Z=!!Y,Z.Z&&d&&jHi(Z,Y,d,I)):Z.Z=!1}}else d&&Y&&!Z.S.Y("enable_paid_content_overlay_bugfix")&&jHi(Z,Y,d,I)}; R1O=function(Z){var I;if((I=Z.api.getVideoData())==null||!w5(I)){I=Tx(Z);B7(Z,I,Z.LS,Math.max(I.D,Z.LS),"HOVER_PROGRESS");for(var d=kv(Z,I.L*Z.LS,!0),Y=kv(Z,I.Z,!0),T=d;T<=Y;T++)g.zL(Z.L[T].Z,"ytp-hover-progress-light",I.D>Z.LS);g.zL(Z.wV,"ytp-scrubber-button-hover",d===Y&&Z.L.length>1);if(Z.api.Y("web_player_heat_map_played_bar")){var f;(f=Z.N[0])!=null&&f.L.setAttribute("width",(I.D*100).toFixed(2)+"%")}}}; kO=function(Z,I,d,Y,T){ps(Z);var f=Z.Gm;xn(f,f[nL]|0,I,(Y==="0"?Number(d)===0:d===Y)?void 0:d,T);return Z}; g.IS=function(Z){return ru(Z)&&!Z.allowLiveDvr}; iCD=function(Z,I,d,Y,T,f){var P={layoutId:Z.adLayoutMetadata.layoutId,layoutType:Z.adLayoutMetadata.layoutType,r4:"core"};I=NQ(Z,I,d);return I instanceof C?I:(d=g.y(Z.renderingContent,B2))&&d.pings?Object.assign({},P,{renderingContent:Z.renderingContent,h5:yO(d.pings)},I,{Tb:Fo(Y,T)(P),clientMetadata:new D0([new Xj(sE(f))]),adLayoutLoggingData:Z.adLayoutMetadata.adLayoutLoggingData}):new C("VideoAdTracking is missing from PlayerBytesSequenceItemAdLayoutRenderer")}; foi=function(Z){if(!Array.isArray(Z))for(var I=Z.length-1;I>=0;I--)delete Z[I];Z.length=0}; Pt7=function(Z){Z=g.t(Fj(Z.L).oF.QL.values());for(var I=Z.next();!I.done;I=Z.next())if(I.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; he=function(Z){this.Gm=bp(Z)}; OCa=function(Z){if(Z.My&&!Z.Y("html5_onesie_media_capabilities")){Z.On("ogsf_s");var I=yli(Z.t5.getVideoData(),function(Y,T){Z.D1(Y,T)}),d=kPD(Z.t5); I.video=QHn(d,I.video);Z.On("ogsf_c");if(I.video.length)return I;Z.D1("ombspf","l."+d.D+";u."+d.L+";o."+d.Z+";r."+d.reason)}}; ao$=function(Z,I){I=I?"Subtitles/closed captions on":"Subtitles/closed captions off";yS(Z,vr7(Z.S),I)}; G9J=function(Z,I){Kq(Z,I,2);I=Z.L.end();CP(Z,I);I.push(Z.D);return I}; $w=function(Z){g.p.call(this);this.api=Z}; OA=function(Z){var I=this;Z=Z===void 0?[]:Z;this.L=[];this.Z=this.D=0;this.N=void 0;this.totalLength=0;Z.forEach(function(d){I.append(d)})}; gJ=function(Z){var I=Pw(Z.ownerDocument);I&&Z.setAttribute("nonce",I)}; g.y1=function(Z){var I=g.Vs();return I?I.toLowerCase().indexOf(Z)>=0:!1}; WnJ=function(Z){var I=Z===void 0?{}:Z;Z=I.Ym;var d=I.TJ;var Y=I.Yo;var T=I.c$;I=I.CD;this.Ym=Z;this.TJ=d;this.Yo=Y;this.c$=T;this.CD=I}; B4$=function(Z,I){return I.map(function(d){var Y,T;if((d=(Y=g.y(d,esu))==null?void 0:(T=Y.thumbnail)==null?void 0:T.thumbnails)&&d.length!==0)return d[0].url}).filter(function(d){return d!==void 0}).map(function(d){d=new g.k({K:"img", T:"ytp-suggested-action-product-thumbnail",J:{alt:"",src:d}});g.z(Z,d);return d})}; jPd=function(Z){Z.D=hE7;Z.L&&(Z.L.dispose(),Z.On("ismp_d"));Z.L=null}; V9i=function(){this.done=!1;this.L={Wx:0,Sk:0,CK7:0,F9:0,GU:-1,zZ:0,S_:0,Qj:0,pEn:0};this.B=null;this.j=!1;this.Z=null;this.V=0;this.D=new wmD(this)}; A5L=function(Z){var I=new g.m7({K:"div",T:"ytp-ad-image-overlay",G:[{K:"div",T:"ytp-ad-overlay-ad-info-button-container"},{K:"div",T:"ytp-ad-overlay-close-container",G:[{K:"button",T:"ytp-ad-overlay-close-button",G:[bD(HW)]}]},{K:"div",T:"ytp-ad-overlay-image",G:[{K:"img",J:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});Z.W(I.KS("ytp-ad-overlay-image"),"click",function(d){io(Z,I.element,d)}); Z.W(I.KS("ytp-ad-overlay-close-container"),"click",Z.Go);I.hide();return I}; g.WD=function(Z){function I(T){if(Y.state.status==="PENDING"){Y.state={status:"FULFILLED",value:T};T=g.t(Y.L);for(var f=T.next();!f.done;f=T.next())f=f.value,f()}} function d(T){if(Y.state.status==="PENDING"){Y.state={status:"REJECTED",reason:T};T=g.t(Y.D);for(var f=T.next();!f.done;f=T.next())f=f.value,f()}} var Y=this;this.state={status:"PENDING"};this.L=[];this.D=[];Z=Z.L;try{Z(I,d)}catch(T){d(T)}}; PZ=function(Z,I){Z.Tv=I;Z.R9(new Pp(g.Ft(Z.Tv,function(d){return d.getInfo()})))}; N4n=function(Z){var I=[],d=[].concat(g.c(Z.s9));Z.N8.forEach(function(P){I.push(Object.assign({},P))}); for(var Y=Z.L,T=g.t(Z.V.w0()),f=T.next();!f.done;f=T.next())Y=knD(Z,I,d,f.value,Y);I.forEach(function(P){P.startTimeMs&&(P.startTimeMs+=Z.timestampOffset*1E3)}); return{N8:I,s9:d}}; E8B=function(Z,I,d,Y){var T=ip(Z.D.get(),"SLOT_TYPE_PLAYER_UNDERLAY");d=new eL(Z.L,d);var f=[new yc(Z.L,T)];Z=[new An(Z.L,I),new du(Z.L,T)];return{slotId:T,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:d,slotFulfillmentTriggers:f,slotExpirationTriggers:Z,r4:"core",clientMetadata:new D0([new Jn(Y({slotId:T,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,r4:"core",slotEntryTrigger:d,slotFulfillmentTriggers:f,slotExpirationTriggers:Z}))])}}; sK=function(Z,I){var d=0;Z=g.t(Z.D);for(var Y=Z.next();!Y.done;Y=Z.next()){Y=Y.value;var T=Y.f_/1E3+d,f=T+Y.durationMs/1E3;if(T>I)break;if(f>I)return{JE:Y,gZ:I-T};d=f-Y.Mc/1E3}return{JE:null,gZ:I-d}}; d_a=function(Z,I){g.k.call(this,{K:"div",T:"ytp-volume-panel",J:{title:Z.Y("player_tooltip_data_title_killswitch")?"Volume":"","data-tooltip-title":"Volume",role:"slider","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},G:[{K:"div",T:"ytp-volume-slider",G:[{K:"div",T:"ytp-volume-slider-handle"}]}]});var d=this;this.api=Z;this.j=I;this.oK=!1;this.LS=this.volume=0;this.B=null;this.D=this.L=this.isDragging=!1;this.j=I;this.Z=Z.m2(); this.X=Z.Y("web_player_use_screen_width_for_big_mode");this.V=this.KS("ytp-volume-slider");this.kS=this.KS("ytp-volume-slider-handle");this.N=new g.rm(this.V,!0);g.z(this,this.N);this.N.subscribe("dragstart",this.CuZ,this);this.N.subscribe("dragmove",this.Lk,this);this.N.subscribe("dragend",this.JZ4,this);this.W(Z,"onVolumeChange",this.onVolumeChange);this.W(Z,"appresize",this.SUn);this.W(Z,"fullscreentoggled",this.AQ);this.W(Z,"onShowControls",this.h8);this.W(Z,"onHideControls",this.h8);this.W(this.element, "keydown",this.D0);this.W(this.element,"focus",function(){kW(d,d.L,d.isDragging,!0,d.api.oK())}); this.W(this.element,"blur",function(){kW(d,d.L,d.isDragging,!1,d.api.oK())}); Zbn(this,Z.cj().getPlayerSize());BUD(this,Z.getVolume(),Z.isMuted());pi(Z,this.element,this)}; oOL=function(Z){if(!Z)return 0;var I=Z.match(/PT(([0-9]*)H)?(([0-9]*)M)?(([0-9.]*)S)?/);return I?(Number(I[2])|0)*3600+(Number(I[4])|0)*60+(Number(I[6])|0):Number(Z)|0}; FnO=function(Z,I,d,Y,T,f,P){if(I&&d){Z.dV=d.cpn;Z.hf(d.cpn,d.startTimeSecs||T);Xbn(Z,d);var O=qz(Z,"a2a",d);Z.t9(O);Z.Wv++;Z.playback.Gk(I,d,Y||0,T||0,!!f,!!P)}else Z.t9({misspbkonadtrans:1,enter:(d==null?void 0:d.cpn)||"",exit:(I==null?void 0:I.cpn)||"",seek:f,skip:P})}; Kg=function(Z){g.p.call(this);var I=this;this.app=Z;this.j=this.D=this.L=null;this.X=!1;this.Z=this.N=null;this.B=yrn(this.app.C());this.V=function(){g.rB(function(){sHn(I)})}}; nF7=function(Z){var I,d=(I=Z.S.getVideoData())==null?void 0:I.J5;if(d)for(Z=Z.N.on,d=g.t(d),I=d.next();!I.done;I=d.next())if(I=Z[I.value]){var Y=void 0,T=void 0,f=void 0;if(((Y=I.onTap)==null?void 0:(T=Y.innertubeCommand)==null?void 0:(f=T.changeEngagementPanelVisibilityAction)==null?void 0:f.targetId)!=="engagement-panel-macro-markers-problem-walkthroughs")return I}}; H2=function(Z){this.value=Z}; g.xT=function(Z){return N1B(Z,function(){return g.XL(hsJ,Z)>=0})}; MO=function(Z,I,d,Y){Y=Y===void 0?0:Y;return g.t6(function(){if(Z.D.has(Y))return Z.V.push([I,d]),!0;var T=g.vv(Y),f=d||g.lg(Y);if(T&&f){if(g.x9("combine_ve_grafts")){var P=Z.Z.get(f.toString());P?P.push(I):(Z.j.set(f.toString(),f),Z.Z.set(f.toString(),[I]));Z.LS||(Z.LS=g.Zb(0,function(){mYJ(Z,T)},1200))}else g.$5(Z.client,T,f,I); return!0}return!1})()}; H3=function(Z,I,d){this.L=Z;this.reason=I;this.token=d;this.videoId=void 0}; qkD=function(Z,I){var d=NaN;Z=g.t(Z.array);for(var Y=Z.next();!Y.done;Y=Z.next())if(Y=Y.value,Y.contains(I)&&(isNaN(d)||Y.endI&&(isNaN(d)||Y.start=0)return Y;var T;(T=Z.X)==null||Skl(T,I,d);Y=Math;T=Y.min;var f=Z.N;if(f.V)if(f=f.V,f.Gx&&f.Gx.type===3)f=f.Gx.startTime;else if(f.Z>0){var P=f.L.index;P=g.SX(P.offsets.subarray(0,P.count),f.Z*f.chunkSize);f=f.L.index.getStartTime(P>=0?P:Math.max(0,-P-2))}else f=0;else f=Infinity;I=T.call(Y,I,f);Z.D=Z.policy.kS?null:Z.L.GG(I).e7[0];jP(Z)&&(Z.policy.e5&&(d==null?void 0:d.seekSource)===60||Z.qC&&Z.qC.abort(),Z.policy.Kg&&(d=Z.X)!=null&&(d.Z=void 0));Z.mJ= 0;return Z.D?Z.D.startTime:I}; AML=function(Z,I){I?Z.X||(Z.element.removeAttribute("aria-disabled"),Z.X=new g.rm(Z.progressBar,!0),Z.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&Z.X.subscribe("hoverstart",Z.tMm,Z),Z.X.subscribe("hovermove",Z.LH4,Z),Z.X.subscribe("hoverend",Z.IAm,Z),Z.X.subscribe("dragstart",Z.U8j,Z),Z.X.subscribe("dragmove",Z.k_5,Z),Z.X.subscribe("dragend",Z.Dc1,Z),Z.api&&Z.api.Y("delhi_modern_web_player")&&Z.api.Y("delhi_modern_web_player_cutout")&&(Z.Tx=new g.rm(Z.progressBar, !0),Z.Tx.subscribe("hoverstart",function(){Z.u8=!0;eK(Z)},Z),Z.Tx.subscribe("hoverend",function(){Z.u8=!1; eK(Z)},Z)),Z.gb=Z.listen("keydown",Z.cJ)):Z.X&&(Z.element.setAttribute("aria-disabled","true"),Z.a4(Z.gb),Z.X.cancel(),Z.X.dispose(),Z.X=null)}; tVa=function(Z){var I=hG;Z=g.zG(Z,function(d){return!h1L(I,d.QJ.YJ)}); I.L.push.apply(I.L,g.c(Z))}; DYD=function(Z){D8.call(this,Z)}; Ca=function(Z,I,d,Y){var T=Tw(I,d),f=Z.DU.V.get(T)||null;if(!f||f.OZ())return null;Z.DU.V.remove(T);if(g.b(f.getPlayerState(),128))return f.dispose(),null;if(f===Z.Vt({playerType:I}))return Z.KM.infoGel({isCacheHit:!0}),f;if((f.getVideoData().oauthToken||d.oauthToken)&&f.getVideoData().oauthToken!==d.oauthToken)return null;I===1&&(I=Z.l5().getVideoData(),fA(I)&&I.isAd()&&Y||u_(Z));Y||Z.Pa(f,!0);Z.KM.infoGel({isCacheHit:!0});return f}; g.JM9=function(){return{K:"svg",J:{fill:"#fff",height:"24px",viewBox:"0 0 24 24",width:"24px"},G:[{K:"path",J:{d:"M7.58 4.08L6.15 2.65C3.75 4.48 2.17 7.3 2.03 10.5h2c.15-2.65 1.51-4.97 3.55-6.42zm12.39 6.42h2c-.15-3.2-1.73-6.02-4.12-7.85l-1.42 1.43c2.02 1.45 3.39 3.77 3.54 6.42zM18 11c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1l-2-2v-5zm-6 11c.14 0 .27-.01.4-.04.65-.14 1.18-.58 1.44-1.18.1-.24.15-.5.15-.78h-4c.01 1.1.9 2 2.01 2z"}}]}}; bi$=function(Z,I){if(Z.endpoint==="log_event"){g.x9("more_accurate_gel_parser")&&o1().storePayload({isJspb:!1},Z.payload);Zs(Z);var d=I1(Z),Y=new Map;Y.set(d,[Z.payload]);var T=sCn(Z.payload)||"";I&&(jN=new I);return new g.eq(function(f,P){jN&&jN.isReady()?f3J(Y,jN,f,P,{bypassNetworkless:!0},!0,Y4(T)):f()})}}; iA=function(Z,I,d,Y,T){g.ev.call(this);this.D=Z;this.B=I;this.j=d;this.N=Y;this.V=Array.isArray(T)?T:[T]}; a1=function(Z){this.value=Z}; fI=function(Z,I,d){this.L=void 0;this.experimentIds=Z?Z.split(","):[];this.flags=UE(I||"","&");Z={};I=g.t(this.experimentIds);for(var Y=I.next();!Y.done;Y=I.next())Z[Y.value]=!0;this.experiments=Z;d=new J4(d);this.Z=new EOn(d);this.D=new b8B(d)}; g.Pd=function(Z){try{if(!Z.L)return null;if("response"in Z.L)return Z.L.response;switch(Z.Bj){case "":case "text":return Z.L.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in Z.L)return Z.L.mozResponseArrayBuffer}return null}catch(I){return null}}; UYn=function(Z,I,d){d=RsL(Z,d);var Y=I.getElementsByTagName("path")[0],T=Y.getAttribute("d");if(Y.getAttribute("id")){var f=$$();I=I.getElementsByTagName("use");for(var P=0;P>>0;this.L=I>>>0}; $2=function(Z,I,d){Z.qO()?Z.zb():Z.dn(I,d)}; g.Eq=function(Z,I,d,Y){d=d===void 0?!1:d;Y=Y===void 0?0:Y;if(Z.isLocked||I.isLocked||!et(Z.info,I.info)||Z.info.N)return null;if(Y){if(Z.D.totalLength+I.D.totalLength>Y)return null}else if(d&&(d=Z.D,Y=I.D,d=!(Y.L.length?XZL(d,Y.L[0]):1)),d)return null;d=new hD(Z.info.type,Z.info.L,Z.info.range,Z.info.V,Z.info.YS,Z.info.startTime,Z.info.duration,Z.info.D,Z.info.Z,Z.info.N,Z.info.UM,Z.info.clipId);Y=I.info;d.Z+=Y.Z;d.range&&(d.X+=Y.X);d.j=Y.j;d.N=Y.N;Y=new OA;Ur(Y,Z.D);Ur(Y,I.D);d=new Hj(d,Y);d.L!= null&&I.L!=null&&g.ZB("dash",414627957,"merged slice emsg overridden; prev: "+d.L.LK()+" next: "+I.L.LK());d.L=I.L||Z.L;d.Z=Z.Z!==-1?Z.Z:I.Z;d.N=Z.N!==-1?Z.N:I.N;return d}; Gyl=function(Z,I){Z=g.t(Z.fM.entries());for(var d=Z.next();!d.done;d=Z.next()){var Y=g.t(d.value);d=Y.next().value;Y=Y.next().value;if(I===Y.cueRangeId)return d}return""}; mYJ=function(Z,I){if(I===void 0)for(var d=mFD(),Y=0;Y0))){var d=g$(Z);d=mA(Z.policy.N,Z.L.info,qF(Z),d,Z.policy.y5);SM(Z,d)}if(I.info.type===1){if(Z.Gx){Ap(Z,Error("Woffle: Expect INIT slices to always start us off"));return}Z.initRange=UI(0,I.D.totalLength)}else if(I.info.type===2)Z.Gx&&Z.Gx.type===1||Ap(Z,Error("Woffle: Index before init")),Z.indexRange=UI(Z.initRange.end+1,I.D.totalLength);else if(I.info.type===3){if(!Z.Gx){Ap(Z,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(Z.Gx.type===3&&!et(Z.Gx,I.info)&&(Z.In=[],I.info.YS!==ky$(Z.Gx)||I.info.D!==0))return;if(I.info.N){d=g.t(Z.In);for(var Y=d.next();!Y.done;Y=d.next())DOE(Z,Y.value);Z.In=[]}else{Z.In.push(I);Z.Gx=I.info;return}}else{Ap(Z,Error("Woffle: Unexpected slice type"));return}Z.Gx=I.info;DOE(Z,I);tKa(Z)}}; pi=function(Z,I,d){Z=g.my(Z.EP(),I);return d?(d.addOnDisposeCallback(Z),null):Z}; g.t9n=function(Z){var I=this;this.videoData=Z;Z={};this.L=(Z.c1a=function(){var d=[];if(g.Zm.isInitialized()){var Y="";I.videoData&&I.videoData.wR&&(Y=I.videoData.wR+("&r1b="+I.videoData.clientPlaybackNonce));var T={};Y=(T.atr_challenge=Y,T);c6("bg_v",void 0,"player_att");(Y=oDB(Y))?(c6("bg_s",void 0,"player_att"),d.push("r1a="+Y)):(c6("bg_e",void 0,"player_att"),d.push("r1c=2"))}else c6("bg_e",void 0,"player_att"),window.trayride||window.botguard?d.push("r1c=1"):d.push("r1c=4");d.push("r1d="+g.Zm.getState()); return d.join("&")},Z.c6a=function(d){return"r6a="+(Number(d.c)^Dy())},Z.c6b=function(d){return"r6b="+(Number(d.c)^Number(g.rh("CATSTAT",0)))},Z); this.videoData&&this.videoData.wR?this.xx=aW(this.videoData.wR):this.xx={}}; Rr=function(){var Z;return(Z=Uq())!=null?Z:g.rh("RAW_HOT_CONFIG_GROUP")}; pmn=function(Z,I){$Yu(Z.program,I.yVS)&&(c6("bg_i",void 0,"player_att"),g.Zm.initialize(Z,function(){c6("bg_l",void 0,"player_att");OS=(0,g.o8)()},I.cspNonce,I.UI))}; gm=function(){this.L=[]}; mP9=function(Z){Z=Z.N;if(!Z)return"";var I=QH("uap",Z.platform)+QH("uapv",Z.platformVersion)+QH("uafv",Z.uaFullVersion)+QH("uaa",Z.architecture)+QH("uam",Z.model)+QH("uab",Z.bitness);Z.fullVersionList&&(I+="&uafvl="+encodeURIComponent(Z.fullVersionList.map(function(d){return encodeURIComponent(d.brand)+";"+encodeURIComponent(d.version)}).join("|"))); Z.wow64!=null&&(I+="&uaw="+Number(Z.wow64));return I.slice(1)}; Ld=function(Z){return Z.Pj==="9h"||Z.Pj==="(h"}; Mq=function(Z){var I,d,Y;return((I=Z.S.getVideoData(1).getPlayerResponse())==null?void 0:(d=I.playerConfig)==null?void 0:(Y=d.daiConfig)==null?void 0:Y.enableServerStitchedDai)||!1}; xYB=function(Z){var I=Z.top||0,d=Z.left||0;return new Ui(I,d+(Z.width||0),I+(Z.height||0),d)}; kCL=function(Z){var I=Z.offsetWidth,d=Z.offsetHeight,Y=g.Vd&&!I&&!d;return(I===void 0||Y)&&Z.getBoundingClientRect?(Z=Rw(Z),new g.qv(Z.right-Z.left,Z.bottom-Z.top)):new g.qv(I,d)}; BGa=function(Z,I){Z=Z.player.C();if(an(Z)||tO(Z)){Z=g.rh("INNERTUBE_CONTEXT");var d,Y;(Z==null?0:(d=Z.adSignalsInfo)==null?0:d.advertisingId)&&typeof(Z==null?void 0:(Y=Z.adSignalsInfo)==null?void 0:Y.limitAdTracking)!=="undefined"&&(I.advertisingId=Z.adSignalsInfo.advertisingId,I.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",I.limitAdTracking=Z.adSignalsInfo.limitAdTracking)}}; IDn=function(Z){var I=Z.api.Y("delhi_modern_web_player_compact_controls"),d=g.Q4(Z.api.C().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");I=I||d>0&&Z.api.getPlayerSize().width<=d;Z=Z.api.getRootNode();Z.classList.toggle("ytp-delhi-modern-compact-controls",I);d=I?"8px":"12px";var Y=I?"56px":"72px",T=I?"56px":"64px",f=I?"48px":"56px",P=I?"12px":"20px",O=I?"72px":"96px";Z.style.setProperty("--yt-delhi-pill-height",I?"40px":"48px");Z.style.setProperty("--yt-delhi-pill-top-height", d);Z.style.setProperty("--yt-delhi-bottom-controls-height",Y);Z.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",T);Z.style.setProperty("--yt-delhi-big-mode-pill-height",f);Z.style.setProperty("--yt-delhi-big-mode-pill-top-height",P);Z.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",O)}; JN=function(Z){return Z.nodeType==9?Z:Z.ownerDocument||Z.document}; l4u=function(Z,I){this.breakDurationMs=Z;this.triggerType="TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION";this.triggerId=I||""}; Knl=function(Z,I,d){return d.triggeringSlotId!=null&&d.triggeringSlotId===Z?d.clone(I):d}; GC=function(Z){if(ow){var I;return(I=Z[Wd])!=null?I:Z[Wd]=new Map}if(Wd in Z)return Z[Wd];I=new Map;Object.defineProperty(Z,Wd,{value:I});return I}; g.Bd=function(Z){g.k.call(this,{K:"div",T:"ytp-more-videos-view",J:{tabIndex:"-1"}});var I=this;this.api=Z;this.D=!0;this.Z=new g.De(this);this.L=[];this.suggestionData=[];this.columns=this.containerWidth=this.V=this.N=this.scrollPosition=0;this.title=new g.k({K:"h2",T:"ytp-related-title",Z1:"{{title}}"});this.previous=new g.k({K:"button",zm:["ytp-button","ytp-previous"],J:{"aria-label":"Show previous suggested videos"},G:[g.eY()]});this.j=new g.tK(function(d){I.suggestions.element.scrollLeft=-d}); this.next=new g.k({K:"button",zm:["ytp-button","ytp-next"],J:{"aria-label":"Show more suggested videos"},G:[g.i1()]});g.z(this,this.Z);this.B=Z.C().N;g.z(this,this.title);this.title.i5(this.element);this.suggestions=new g.k({K:"div",T:"ytp-suggestions"});g.z(this,this.suggestions);this.suggestions.i5(this.element);g.z(this,this.previous);this.previous.i5(this.element);this.previous.listen("click",this.Kk,this);g.z(this,this.j);Ctu(this);g.z(this,this.next);this.next.i5(this.element);this.next.listen("click", this.N4,this);this.Z.W(this.api,"appresize",this.CM);this.Z.W(this.api,"fullscreentoggled",this.AQ);this.Z.W(this.api,"videodatachange",this.onVideoDataChange);this.CM(this.api.cj().getPlayerSize());this.onVideoDataChange()}; uj=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);Z.Y("html5_show_drc_toggle")&&Z.addEventListener("settingsMenuInitialized",function(){I.menuItem||(I.menuItem=new rN(I.api,I.setDrcUserPreference.bind(I),I.getDrcUserPreference.bind(I),I.FG.bind(I),I.getDrcState.bind(I)),g.z(I,I.menuItem))}); pF(this.api,"setDrcUserPreference",function(Y){I.setDrcUserPreference(Y)}); pF(this.api,"getDrcUserPreference",function(){return I.getDrcUserPreference()}); pF(this.api,"hasDrcAudioTrack",function(){return I.FG()}); pF(this.api,"getDrcState",function(){return I.getDrcState()}); var d;this.L=(d=g.T2("yt-player-drc-pref"))!=null?d:1;this.updateEnvironmentData()}; MaJ=function(Z,I,d){var Y=[];for(I=EFB(Z,I);Id)break}return Y}; Mk=function(Z,I){Z.checked=I;Z.element.setAttribute("aria-checked",String(Z.checked))}; wU=function(Z,I,d,Y){I in Z.L||(d=new g.S8(d,Y,{id:I,priority:2,namespace:"appad"}),Z.api.eM([d],1),Z.L[I]=d)}; en=function(Z,I,d){d=d===void 0?{sampleRate:.1}:d;Math.random()Z.D&&I.D+I.Z<=Z.D+Z.Z}; M9B=function(Z,I,d,Y,T){var f=ip(Z.D.get(),I);return oY(Z,f,I,new qx(Z.L,d),[new An(Z.L,d),new du(Z.L,f)],Y,T)}; Jl=function(Z,I){ys(Z,1,I.itag);ys(Z,2,I.lmt);Uj(Z,3,I.xtags)}; rMr=function(Z,I){var d=[];I=Array.from(I.getElementsByTagName("SegmentTimeline"));I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next()){Y=Y.value;var T=Y.parentNode.parentNode,f=null;T.nodeName==="Period"?f=N3d(Z):T.nodeName==="AdaptationSet"?(T=T.getAttribute("id")||T.getAttribute("mimetype")||"",f=uyE(Z,T)):T.nodeName==="Representation"&&(T=T.getAttribute("id")||"",f=clu(Z,T));if(f==null)return;f.update(Y);g.x4(d,Jer(f))}g.x4(Z.N,d);iRO(Z.N,function(P){return P.startSecs*1E3+P.L})}; Z6u=function(Z){Z=["object"==typeof globalThis&&globalThis,Z,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var I=0;IZ.tZ()||d0&&Y.push(Nfi(d)),g.m(f,Promise.race(Y),2);T=Fua(Z,I);return f.return(T)})}; nmn=function(Z){this.Gm=bp(Z)}; S8E=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V,N){for(var q=[],A=g.t(Z),F=A.next();!F.done;F=A.next())if(F=F.value,!XK9(F)&&!hXJ(F)){var J=pQ(F)&&!!F.slotEntryTrigger.beforeContentVideoIdStartedTrigger,v=a.fN(J),l=vWr(F,W,Y,d.rb,v);if(l instanceof C)return l;var X=void 0,H={slotId:F.adSlotMetadata.slotId,slotType:F.adSlotMetadata.slotType,slotPhysicalPosition:(X=F.adSlotMetadata.slotPhysicalPosition)!=null?X:1,r4:"core",slotEntryTrigger:l.slotEntryTrigger,slotFulfillmentTriggers:l.slotFulfillmentTriggers, slotExpirationTriggers:l.slotExpirationTriggers},x=g.y(F.fulfillmentContent.fulfilledLayout,RU);if(x){if(!tX(x))return new C("Invalid PlayerBytesAdLayoutRenderer");X=B&&!(pQ(F)&&F.slotEntryTrigger.beforeContentVideoIdStartedTrigger);l=l.slotFulfillmentTriggers.some(function(Id){return Id instanceof G3}); v=X?m1$(H,F.adSlotMetadata.triggerEvent,x,d,Y,f,W,Z,v,w,l,V):lLn(H,F.adSlotMetadata.triggerEvent,x,I,d,Y,T,f,P,O,a,W,Z,e,v,F.adSlotMetadata.triggeringSourceLayoutId);if(v instanceof C)return v;l=[];N?l.push(new Jd({current:N})):l.push(new Jd({current:null}));pQ(F)&&l.push(new zI({KK:pQ(F)&&!!F.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));X&&l.push(new Dx({}));d.Qy&&l.push(new nI({}));l.push(new uY(J));F=Object.assign({},H,{clientMetadata:new D0(l),fulfilledLayout:v.layout,adSlotLoggingData:F.adSlotMetadata.adSlotLoggingData}); q.push.apply(q,g.c(v.je));q.push(F)}else if(J=g.y(F.fulfillmentContent.fulfilledLayout,eS)){if(!t77(J))return new C("Invalid PlayerUnderlayAdLayoutRenderer");J=N8O(J,Y,d.rb,f,H,F.adSlotMetadata.triggerEvent,F.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof C)return J;F=Object.assign({},H,{clientMetadata:new D0([]),fulfilledLayout:J,adSlotLoggingData:F.adSlotMetadata.adSlotLoggingData});q.push(F)}else if(J=g.y(F.fulfillmentContent.fulfilledLayout,CnE)){if(!UT(J.adLayoutMetadata)||!g.y(J.renderingContent, m3))return new C("Invalid InPlayerOrganicOverlayAdLayoutRenderer");J=J.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?ne7(J,Y,d.rb,f,H):new C("LayoutType ["+J.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(J instanceof C)return J;F=Object.assign({},H,{clientMetadata:new D0([]),fulfilledLayout:J,adSlotLoggingData:F.adSlotMetadata.adSlotLoggingData});q.push(F)}else if(J=g.y(F.fulfillmentContent.fulfilledLayout,xWE)){if(!KQ9(J))return new C("Invalid AboveFeedAdLayoutRenderer"); J=q8d(J,Y,d.rb,f,H,F.adSlotMetadata.triggerEvent,F.adSlotMetadata.triggeringSourceLayoutId);if(J instanceof C)return J;F=Object.assign({},H,{clientMetadata:new D0([]),fulfilledLayout:J,adSlotLoggingData:F.adSlotMetadata.adSlotLoggingData});q.push(F)}else if(J=g.y(F.fulfillmentContent.fulfilledLayout,KH7)){if(!UT(J.adLayoutMetadata)||!g.y(J.renderingContent,E0))return new C("Invalid BelowPlayerAdLayoutRenderer");J=q8d(J,Y,d.rb,f,H,F.adSlotMetadata.triggerEvent,F.adSlotMetadata.triggeringSourceLayoutId); if(J instanceof C)return J;F=Object.assign({},H,{clientMetadata:new D0([]),fulfilledLayout:J,adSlotLoggingData:F.adSlotMetadata.adSlotLoggingData});q.push(F)}else if(J=g.y(F.fulfillmentContent.fulfilledLayout,wa)){if(!Vf(J))return new C("Invalid PlayerBytesSequenceItemAdLayoutRenderer");J=iCD(J,Y,d.rb,f,H,F.adSlotMetadata.triggerEvent);if(J instanceof C)return J;F=Object.assign({},H,{clientMetadata:new D0([]),fulfilledLayout:J,adSlotLoggingData:F.adSlotMetadata.adSlotLoggingData});q.push(F)}else return new C("Unable to retrieve a client slot ["+ H.slotType+"] from a given AdSlotRenderer")}return q}; i2=function(){var Z=g.T2("yt-player-user-settings"),I=new Map;if(Z){Z=g.t(Object.entries(Z));for(var d=Z.next();!d.done;d=Z.next()){var Y=g.t(d.value);d=Y.next().value;Y=Y.next().value;I.set(d,Y)}}return I}; dwl=function(){return ET("Android")&&!(IJ()||d_()||Z6()||ET("Silk"))}; Aa9=function(Z,I,d){if(d!=null){switch(typeof d){case "string":eyu(d)}Kq(Z,I,1);switch(typeof d){case "number":Z=Z.L;ZA(d);HP(Z,FS);HP(Z,n7);break;case "bigint":d=BigInt.asUintN(64,d);d=new lzB(Number(d&BigInt(4294967295)),Number(d>>BigInt(32)));Z=Z.L;I=d.L;HP(Z,d.D);HP(Z,I);break;default:d=eyu(d),Z=Z.L,I=d.L,HP(Z,d.D),HP(Z,I)}}}; D1l=function(Z){Z&&(Z.uY=void 0,Z.K4=!0);return u9(Z)}; RXD=function(Z,I,d,Y){Y=Y===void 0?0:Y;var T;if(I!==Z.X||((T=Z.D.get(I))==null?void 0:T.Z)!==(d==null?void 0:d.Z))if(d?Z.D.set(I,d):Z.D.delete(I),!Z.isSeeking){var f=Z.N.getStartTime(I);Z.X=I;Jai(Z,I);var P,O;T=(O=(P=Z.D.get(I-1))==null?void 0:P.L)!=null?O:[Z.cpn];var a=T[T.length-1];if(d){var W=f;d.L.forEach(function(e,B){W1+I&&Z.api.toggleFullscreen()}; NNJ=function(Z,I,d,Y){return Z.Ms.get().fN(GI(I))?[new SR(Z.L,d)]:Y}; yau=function(Z,I,d){I=I===void 0?-1:I;d=d===void 0?Infinity:d;for(var Y=I,T=d,f=g.t(Z.B),P=f.next();!P.done;P=f.next()){var O=g.t(P.value);P=O.next().value;O=O.next().value;O.U9>=Y&&O.target&&O.target.Mc<=T&&(Z.L.removeCueRange(P),Z.B.delete(P))}Y=I;T=d;f=[];P=g.t(Z.D);for(O=P.next();!O.done;O=P.next())if(O=O.value,O.f_>=Y&&O.Mc<=T){var a=Z;a.V===O&&nv(a);AG(a,O)&&a.app.Qb()}else f.push(O);Z.D=f;Y=sK(Z,I/1E3);I=Y.JE;Y=Y.gZ;I&&(Y*=1E3,U1E(Z,I,Y,I.Mc===I.f_+I.durationMs?I.f_+Y:I.Mc));(I=sK(Z,d/1E3).JE)&& Jp(Z,"Invalid clearEndTimeMs="+d+" that falls during playback={timelinePlaybackId="+(I.uQ+" video_id="+I.playerVars.video_id+" durationMs="+I.durationMs+" enterTimeMs="+I.f_+" parentReturnTimeMs="+I.Mc+"}.Child playbacks can only have duration updated not their start."))}; bn9=function(Z,I,d,Y,T,f,P){return[oC9(Z,f,Y,function(O){var a=O.slotId;O=P(O);a=zi(I.D.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",a);var W={layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",r4:"core"};return{layoutId:a,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",h5:new Map,layoutExitNormalTriggers:[new An(I.L,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new za(T), new Xj(d)]),Tb:O(W),adLayoutLoggingData:T.adLayoutLoggingData}})]}; Csd=function(Z,I){Z.playbackData=I;Z.videoData.isLivePlayback&&(Z.X=new vmi(function(){a:{if(Z.playbackData&&Z.playbackData.L.L){if(FI(Z.videoData)&&Z.loader){var Y=Z.loader.GO.eD()||0;break a}if(Z.videoData.L){Y=Z.videoData.L.j7;break a}}Y=0}return Y}),Z.L=new hJ(Z.videoData,Z.U.experiments,function(){return Z.tZ(!0)})); if(cs(Z.t5)){var d;(d=Z.videoData.ir)!=null&&d.Zm||(I=haJ(Z),I.V7?(j2(Z.videoData)&&Z.rE(I.V7,I.startSeconds),Z.Z=I.startSeconds):I.startSeconds>0&&Z.seekTo(I.startSeconds,{H$:"seektimeline_startPlayback",seekSource:15}));Z.In=!1}else aB(Z)||(Z.Z=Z.Z||Z.videoData.startSeconds||0,Z.videoData.isLivePlayback||(I=Z.t5.videoData.tZ(),Z.Z>I&&(Z.Y("html5_sabr_log_invalid_sabr_current_time")&&Z.t5.D1("invalidSabrCmtStart",{rt:Z.Z,mst:I}),Z.Y("html5_sabr_vod_invalid_start_time_fallback")&&(Z.Z=0))))}; eO=function(Z){this.L=Z}; tBD=function(){this.L=new Map}; YQu=function(Z){Z.D.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",Z.X.isExpanded())}; KEn=function(Z,I){if(I.qJ)for(var d=0;d>7&&283);lk=new Uint8Array(256);Lo=qH(256);UD=qH(256);yN=qH(256);vc=qH(256);for(var f=0;f<256;f++){T=f?Y[255^d[f]]:0;T^=T<<1^T<<2^T<<3^T<<4;T=T&255^T>>>8^99;lk[f]=T;I=T<<1^(T>>7&&283);var P=I^T;Lo[f]=I<<24|T<<16|T<<8|P;UD[f]=P<<24|Lo[f]>>>8;yN[f]=T<<24|UD[f]>>>8;vc[f]=T<<24|yN[f]>>>8}zXn=!0}T=qH(44); for(d=0;d<4;d++)T[d]=Z[4*d]<<24|Z[4*d+1]<<16|Z[4*d+2]<<8|Z[4*d+3];for(Y=1;d<44;d++)Z=T[d-1],d%4||(Z=(lk[Z>>16&255]^Y)<<24|lk[Z>>8&255]<<16|lk[Z&255]<<8|lk[Z>>>24],Y=Y<<1^(Y>>7&&283)),T[d]=T[d-4]^Z;this.key=T}; LMJ=function(Z){var I={};g.k.call(this,{K:"div",T:"ytp-paid-content-overlay",J:(I["aria-live"]="assertive",I["aria-atomic"]="true",I["data-overlay-order"]="5",I)});this.S=Z;this.videoId=null;this.Z=!1;this.innertubeCommand=this.JZ=this.L=null;I=Z.C();Z.Y("enable_new_paid_product_placement")&&!g.Mw(I)?(this.D=new g.k({K:"a",T:"ytp-paid-content-overlay-link",J:{href:"{{href}}",target:"_blank"},G:[{K:"div",T:"ytp-paid-content-overlay-indicator"},{K:"div",T:"ytp-paid-content-overlay-icon",Z1:"{{icon}}"}, {K:"div",T:"ytp-paid-content-overlay-text",Z1:"{{text}}"},{K:"div",T:"ytp-paid-content-overlay-chevron",Z1:"{{chevron}}"}]}),this.W(this.D.element,"click",this.onClick)):this.D=new g.k({K:"div",zm:["ytp-button","ytp-paid-content-overlay-text"],Z1:"{{text}}"});this.fade=new g.nt(this.D,250,!1,100);g.z(this,this.D);this.D.i5(this.element);g.z(this,this.fade);this.S.createServerVe(this.element,this);this.W(Z,"videodatachange",this.onVideoDataChange);this.W(Z,"presentingplayerstatechange",this.HR)}; WTn=function(Z){Z=Number(Z.driftRecoveryMs);return isNaN(Z)||Z<=0?null:Z}; hh=function(Z){$w.call(this,Z);var I=this;this.L=!1;Z.addEventListener("settingsMenuInitialized",function(){XJi(I)}); Z.addEventListener("highlightSettingsMenu",function(d){XJi(I);var Y=I.menuItem;d==="menu_item_cinematic_lighting"&&(g.xw(Y.element,"ytp-menuitem-highlighted"),g.xw(Y.element,"ytp-menuitem-highlight-transition-enabled"),Y.D.start())}); pF(Z,"updateCinematicSettings",function(d){I.updateCinematicSettings(d)})}; g.vv=function(Z){Z=FdO(Z===void 0?0:Z);if(!Z&&!g.rh("USE_CSN_FALLBACK",!0))return null;Z||(Z="UNDEFINED_CSN");return Z?Z:null}; EXn=function(Z){this.S=Z}; g.$V=function(Z,I){g.p.call(this);var d=this;this.api=Z;this.N={};this.OI=null;this.B={};this.j=this.D=null;I=new SY(I,function(Y){Y!==d.Vt({playerType:Y.getPlayerType()})&&Y.dispose()}); g.z(this,I);this.Z=this.X=this.L=new g.zP(Z.C());this.V=I}; tQi=function(Z,I){var d,Y,T,f,P,O,a,W,e;return g.h(function(B){if(B.L==1)return d={startTime:(0,g.o8)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},g.m(B,zB(I),2);if(B.L!=3)return Y=B.D,T=g.rh("INNERTUBE_CONTEXT_CLIENT_NAME",0),f=[Z,T,0],P=[Z,T,(0,g.o8)()],O=IDBKeyRange.bound(f,P),a="prev",g.x9("use_fifo_for_networkless")&&(a="next"),W=void 0,e=Z==="NEW"?"readwrite":"readonly",g.x9("use_readonly_for_get_most_recent_by_status_killswitch")&&(e="readwrite"),g.m(B,g.Xn(Y,["LogsRequestsStore"], {mode:e,OU:!0},function(w){return g.Vq(w.objectStore("LogsRequestsStore").index("newRequestV2"),{query:O,direction:a},function(V){V.getValue()&&(W=V.getValue(),Z==="NEW"&&(W.status="QUEUED",V.update(W)))})}),3); d.ticks.tc=(0,g.o8)();MPJ(d);return B.return(W)})}; $1d=function(Z,I){var d=d===void 0?SG:d;return new AX(Z,I,d)}; g.zF=function(){AJ.instance||(AJ.instance=new AJ);return AJ.instance}; pJB=function(Z){return(Z=Z.Zu)&&Z.showError?Z.showError:!1}; w6l=function(Z){this.L=Z;Z.JR("/client_streamz/bg/wrl",g.Q7("mn"),B3("ac"),B3("sc"),g.Q7("rk"),g.Q7("mk"))}; vC=function(Z){this.L=Z||{cookie:""}}; jF=function(Z){this.provider=Z;this.V=!1;this.L=0;this.N=-1;this.TN=NaN;this.Z=0;this.segments=[];this.j=this.B=0;this.previouslyEnded=!1;this.In=this.provider.t5.getVolume();this.X=this.provider.t5.isMuted()?1:0;this.D=nr(this.provider)}; x1$=function(){this.L=new o2u}; hg7=function(Z,I){Z.Ns||(Z.loader?isFinite(Z.D)?Z.Ns=Z.loader.seek(Z.D-Z.timestampOffset,I):(ru(Z.videoData),Z.Y("html5_unified_live_latency_reporting")&&(Z.t5.jg=0),Z.Ns=kz(Z.loader),Kuu(Z.videoData)||(Z.D=Z.loader.getCurrentTime()+Z.timestampOffset)):Z.Ns=g.wL(Z.D-Z.timestampOffset));return Z.Ns}; C7a=function(Z,I,d){var Y=Z.getVideoData(),T=I.getVideoData();if(!Y.C().supportsGaplessShorts())return{nq:"env"};if((!d.In||Y.t_&&!Y.isAd()||T.t_&&!T.isAd())&&(!d.D||Y.t_&&!Y.isAd()||T.t_)&&(!d.Z||T.t_&&!T.isAd()||Y.t_)&&(Y.t_||T.t_))return{nq:"autoplay"};if(Y.endSeconds>0)return{nq:"endcr"};if(!Y.V)return{nq:"client"};if(!Z.m0())return{nq:"no-empty"};Z=Qz(d,Z,I,Infinity);return Z!=null?{nq:Z.msg}:null}; eNl=function(Z,I){return Z.YS!==I.YS&&I.YS!==Z.YS+1||Z.type!==I.type?!1:et(Z,I)?!0:Math.abs(Z.B-I.B)<=1E-6&&Z.YS===I.YS?!1:ea$(Z,I)}; Nfi=function(Z){return new Promise(function(I){setTimeout(I,Z)})}; Mqa=function(Z){return Z.fields.map(function(I){return I.fieldName})}; mP=function(Z,I,d,Y){Y=Y===void 0?Z.schedule:Y;this.U=Z;this.A3=I;this.t5=d;this.Bk=Y;this.X=this.j=this.L=this.N=this.V=this.D=0;this.B=!1;this.In=g.Q4(this.U.experiments,"html5_displayed_frame_rate_downgrade_threshold")||45;this.Z=new Map}; g.D3=function(Z){return Z.nN.get("webgl")}; Nk7=function(Z,I,d){var Y=[];Y.push(new EmL(Z.L,d));I&&Y.push(I);return Y}; La=function(){var Z=zU();if(Z.j>0||Z.X)return!0;Z=Ot().D.isVisible();var I=ry(YX)===0;return Z||I}; UIO=function(Z){function I(d){Z.eJ.get().l$(d)} return Qw(Z.slot,Z.Ms.get())?IN7(Object.assign({},Z,{Ji:I})):new uE(Object.assign({},Z,{Ji:I}))}; Ppr=function(Z){var I=Z.L;if(I.L==I.Z)return!1;Z.N=Z.L.L;var d=V8(Z.L)>>>0;I=d>>>3;d&=7;if(!(d>=0&&d<=5))throw Error();if(I<1)throw Error();Z.Z=I;Z.D=d;return!0}; Vw=function(Z){if(Z.ZR){var I=Z.xe;var d=Z.ZR;Z=Z.Pv();var Y=Jzd(I);if(h8(Y)){if(Y=I.pQ(d).compose(b6O(I,d)).compose(H6l(I,d)).compose(GPa(I,d.videoData)).compose(zeL(I,d.videoData,d)).compose(oO(I,d)).compose(WA(I,d)),h8(Z)||I.Y("html5_apply_pbr_cap_for_drm"))Y=Y.compose(CzO(I,d))}else I.Y("html5_perf_cap_override_sticky")&&(Y=Y.compose(oO(I,d))),I.Y("html5_ustreamer_cap_override_sticky")&&(Y=Y.compose(CzO(I,d)));Y=Y.compose(WA(I,d));I=d.videoData.rW.compose(Y).compose(d.videoData.pG).compose(Z)}else I= nb;return I}; k5=function(Z,I){qJ||(Vo?Vo.logEvent(Z,I):(Nq.push({type:"EVENT",eventType:Z,payload:I}),Nq.length>10&&Nq.shift()))}; cal=function(Z){switch(Z){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;case 5:return 5;case 6:return 6;case 7:return 7;default:i5(Z,"unknown transitionReason")}}; R7$=function(Z){return g.Yw(Z.L,function(I){return I.info.video?I.info.video.stereoLayout===1:!1})}; gm9=function(Z){return Z.uo!==void 0}; v2=function(Z,I){if(aR(Z,I))return!!YA(Z)}; OwD=function(Z,I){I=I instanceof kt?I:new kt(5,"TVD:error",I);return Z.reportError(I)}; KZJ=function(Z,I){Z.bC=I||Z.t5.C().Y("html5_allow_multiview_tile_preload")&&Z.t5.getVideoData().xd;Z.policy.fS||(Z.isSuspended=!0,Z.policy.b1&&(Z.y0.stop(),Z.sU.stop(),Z.EU.stop()),Z.y5.stop())}; LP=function(Z){var I=d9();Z=I?I.createHTML(Z):Z;return new Rt(Z)}; GQ=function(Z,I){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=I||Z(this.triggerType)}; MQJ=function(Z,I){for(var d=new Uint8Array(270),Y=0;Y<135;Y++)d[Y*2]=''.charCodeAt(Y);Z=Z.Z.createSession("video/mp4",I,d);return new J9(null,null,null,null,Z)}; f0=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V){g.p.call(this);this.callback=Z;this.V5=I;this.n_=d;this.B$=Y;this.S7=T;this.KF=f;this.SJ=P;this.x4=O;this.slot=a;this.layout=W;this.OP=e;this.PJ=B;this.pM=w;this.Ms=V;this.Gz=!0;this.Dq=!1;this.A_=[];this.qR=-1;this.Ij=!1;this.Vn=new ra$}; Ij=function(Z){var I=[];g.TA(Z,function(d,Y){var T=g.fn(Y);g.KM(Array.isArray(d)?d:[d],function(f){f==""?I.push(T):I.push(T+"="+g.fn(f))})}); return I.join("&")}; JJ=function(Z,I,d,Y,T,f,P,O,a,W){HZ.call(this,Z,I,d,Y,T,f,P,a);this.S3=O;this.V5=W}; Rn=function(Z,I,d,Y){for(var T=Number(I.getAttribute("data-overlay-order"))||0,f=0,P=null,O=g.t(d.children),a=O.next();!a.done;a=O.next()){a=a.value;if(Y&&a.classList.contains("ytp-overlay-inline-container")){P=a;break}if(T<(Number(a.getAttribute("data-overlay-order"))||0))break;f++}P?Rn(Z,I,P,!1):Y?(Z=document.createElement("div"),Z.classList.add("ytp-overlay-inline-container"),Z.setAttribute("data-overlay-order",""+T),P=Z,P.appendChild(I),Za(d,P,f)):Za(d,I,f)}; atl=function(Z,I,d){var Y=I instanceof DD&&!Z.Z&&!Z.D,T=!Z.Z&&(d==null?void 0:d.info.video);d=!Z.D&&(d==null?void 0:d.info.audio);I.state===3?((T||Y)&&Z.tick("vrr"),(d||Y)&&Z.tick("arr")):I.state===4?T?(Z.Z=I.VI(),g.zF(),LD(4)):d&&(Z.D=I.VI()):I instanceof zW&&I.BF()&&T&&(g.zF(),LD(4))}; IYi=function(Z){var I=I===void 0?"UNKNOWN_INTERFACE":I;if(Z.length===1)return Z[0];var d=Zy7[I];if(d){d=new RegExp(d);for(var Y=g.t(Z),T=Y.next();!T.done;T=Y.next())if(T=T.value,d.exec(T))return T}var f=[];Object.entries(Zy7).forEach(function(P){var O=g.t(P);P=O.next().value;O=O.next().value;I!==P&&f.push(O)}); d=new RegExp(f.join("|"));Z.sort(function(P,O){return P.length-O.length}); Y=g.t(Z);for(T=Y.next();!T.done;T=Y.next())if(T=T.value,!d.exec(T))return T;return Z[0]}; rA=function(Z){try{return ew(Z)}catch(I){return null}}; dBn=function(Z){Z.kS&&(Z.isToggled()?(g.o3(Z.X,!1),g.o3(Z.B,!0),Z.D.setAttribute("aria-checked",!0)):(g.o3(Z.X,!0),g.o3(Z.B,!1),Z.D.setAttribute("aria-checked",!1)))}; oiL=function(Z,I){var d=I.totalLength,Y=!1;switch(Z.Z){case 0:Z.FK(I,Z.N).then(function(T){var f=Z.Yu;f.On("oprr");f.playerResponse=T;f.Rj||(f.gQ=!1);LI(f)},function(T){Z.Yu.fail(T)}); break;case 2:Z.On("ormk");I=rd(I);Z.queue.decrypt(I);break;default:Y=!0}Z.Yu.Vq&&Z.Yu.D1("ombup","id.11;pt."+Z.Z+";len."+d+(Y?";ignored.1":""));Z.Z=null}; pB=function(Z,I){var d=d===void 0?0:d;var Y;return(Y=Vb(S4(Z,I)))!=null?Y:d}; Oj=function(Z,I,d,Y){var T=d.Ew;Z[I]=Y?function(f,P,O){return T(f,P,O,Y)}:T}; Y$d=function(Z,I,d,Y,T){if(Array.isArray(I))for(var f=0;f=0?Z.end(I):NaN}; dU=function(Z,I,d){d&&Z.D&&Z.D(I.value)}; fYn=function(Z,I){var d;return function(){d||(d=new UO(Z,I));return d}}; g.x4=function(Z,I){for(var d=1;df)return Z.policy.L&&(I===Z.videoTrack?Z.on=Z.on||(0,g.o8)():Z.w4=Z.w4||(0,g.o8)()),Z.policy.fD&&LUD(I.N,f,!1),!1;I===Z.videoTrack?Z.on=0:Z.w4=0;var O;Z.policy.Vf&&d===((O=Z.Fm)==null?void 0:O.L)&&Z.UZ&&(d.eN()===0?(Z.UZ=!1,Z.policy.Vf=!1):Z.I0=d.eN());a:{O=Z.policy.EU?(0,g.o8)():0;P=Y.B&&Y.info.L.L||void 0;f=Y.D;Y.B&&(f=QjO(Z,Y,f)||f);var a=rd(f);f=Z.policy.EU?(0,g.o8)():0;d=O7r(Z,d,a,Y.info,P);(P=I.In)!=null&&(a=Y.info,O=f-O,f=(0,g.o8)()-f,!P.D||eNl(P.D, a)&&P.D.YS===a.YS||P.flush(),P.N+=O,P.Z+=f,O=1,!P.D&&a.D&&(O=2),ZJ(P,O,d),f=Math.ceil(a.D/1024),O===2&&P.L.add(f),P.L.add(Math.ceil((a.D+a.Z)/1024)-f),P.D=a);Z.j7=0;if(d===0)Z.Tm&&(Z.Tm=!1,Z.Hk=!1),Z.SK=0,d=!0;else{if(d===2||d===5)I7(Z,"checked",d,Y.info);else{if(d===1){if(!Z.Tm){Z.Tm=!0;d=!1;break a}if(!Z.Hk){Z.Hk=!0;Z.t5.seekTo(Z.getCurrentTime(),{H$:"quotaExceeded",j3:!0});d=!1;break a}Y.info.zx()?(O=Z.policy,O.Tm=Math.floor(O.Tm*.8),O.Bj=Math.floor(O.Bj*.8)):(O=Z.policy,O.b5=Math.floor(O.b5*.8), O.Bj=Math.floor(O.Bj*.8));Z.policy.L?N$(Z.N.L,Y.info.L,!1):Fx(Z.L,Y.info.L)}Z.t5.Zo({reattachOnAppend:d})}d=!1}}if(!d)return!1;Z.policy.on&&Y.info.RL()?(Z.t5.C().Vy()&&Z.D1("eosl",{ls:Y.info.m5()}),Y.isLocked=!0):(I.yZ(Y),Brn(Z.L,Y.info));T&&(I=Y.info.L.M5)&&Z.t5.X4(new dR(I.key,I.type));return!0}; mY=function(Z,I,d,Y,T){this.D=Z;this.L=I;this.Z=d;this.reason=Y;this.pS=T===void 0?0:T}; Nrn=function(Z,I){var d=Z.api.getRootNode();g.zL(d,"ytp-fullscreen-grid-peeking",I===1);g.zL(d,"ytp-fullscreen-grid-active",I===2);I===1&&Vpd(Z)}; uql=function(Z){var I=dFu();if(I)return Fju[I]||Fju.other;if(g.RK(Z.U)){Z=navigator.userAgent;if(/[Ww]ireless[)]/.test(Z))return 3;if(/[Ww]ired[)]/.test(Z))return 30}return 0}; RA7=function(Z){try{var I=wtB(Z,!0),d=wtB(Z,!1);return{id:I,size:d}}catch(Y){return{id:-1,size:-1}}}; dt=function(Z,I){NV.call(this,Z);this.error=I;this.L="e";this.D="y"}; sXJ=function(Z){if(document.body&&document.documentElement){var I=document.body.scrollTop+document.documentElement.scrollTop;Z.L=Z.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);Z.D=Z.clientY+I}}; UEJ=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"initialvideodatacreated",function(d){P4(gl(),16623);I.L=g.vv();var Y=Z.C().hV&&!d.Wb;if(u3(d)&&Y){P4(gl(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(d.getWatchNextResponse()){var T,f=(T=d.getWatchNextResponse())==null?void 0:T.trackingParams;f&&rl(f)}if(d.getPlayerResponse()){var P;(d=(P=d.getPlayerResponse())==null?void 0:P.trackingParams)&&rl(d)}}else P4(gl(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),d.getEmbeddedPlayerResponse()&&(P=(f=d.getEmbeddedPlayerResponse())==null?void 0:f.trackingParams)&&rl(P)}); this.events.W(Z,"loadvideo",function(){P4(gl(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:I.L})}); this.events.W(Z,"cuevideo",function(){P4(gl(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:I.L})}); this.events.W(Z,"largeplaybuttonclicked",function(d){P4(gl(),27240,d.visualElement)}); this.events.W(Z,"playlistnextbuttonclicked",function(d){P4(gl(),27240,d.visualElement)}); this.events.W(Z,"playlistprevbuttonclicked",function(d){P4(gl(),27240,d.visualElement)}); this.events.W(Z,"playlistautonextvideo",function(){P4(gl(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; nil=function(Z,I,d){if(Z.logger){for(var Y=[],T=0;T0&&J_9(12E4,Z-1);throw I;}; q$9=function(Z,I,d){return d!==void 0?Z.getCurrentTime(I,!1,d):Z.getCurrentTime(I,!1)}; S$n=function(Z,I,d,Y,T){g.p.call(this);var f=this,P=ZE(function(){return new IV(f.Ms)}); g.z(this,P);var O=ZE(function(){return new dg(P,f.Ms)}); g.z(this,O);var a=ZE(function(){return new oV}); g.z(this,a);var W=ZE(function(){return new Yh(Z)}); g.z(this,W);var e=ZE(function(){return new jO(P,O,f.Ms)}); g.z(this,e);var B=ZE(function(){return new TJ}); g.z(this,B);this.L_=ZE(function(){return new ie(I)}); g.z(this,this.L_);this.jK=ZE(function(){return new fZ(T)}); g.z(this,this.jK);this.SJ=ZE(function(){return new Pb(I)}); g.z(this,this.SJ);this.xu=ZE(function(){return new QX(I)}); g.z(this,this.xu);this.B$=ZE(function(){return new Oz(I)}); g.z(this,this.B$);this.eJ=ZE(function(){return new aV(I)}); g.z(this,this.eJ);this.Ms=ZE(function(){return new Wb(I)}); g.z(this,this.Ms);var w=ZE(function(){return new eO(Y)}); g.z(this,w);var V=ZE(function(){return new Bb(f.Ms)}); g.z(this,V);this.qy=ZE(function(){return new wg(I)}); g.z(this,this.qy);this.vS=ZE(function(){return new XK}); g.z(this,this.vS);this.V5=ZE(function(){return new VX(I,B,f.Ms)}); g.z(this,this.V5);var N=N6({V5:this.V5,Ms:this.Ms,hZ:V}),q=N.context,A=N.eF;this.Wk=N.Wk;this.sP=ZE(function(){return new FV(I,f.Ms,f.Q5)}); g.z(this,this.sP);this.n_=ZE(function(){return new sz(I)}); g.z(this,this.n_);this.S7=ZE(function(){return new nZ(I,f.V5,f.Ms)}); g.z(this,this.S7);this.KF=ZE(function(){return new hI}); g.z(this,this.KF);N=ZE(function(){return new mE(P,e,O,f.Ms,V,"SLOT_TYPE_ABOVE_FEED",f.S7,f.rB,f.rV)}); g.z(this,N);this.l8=ZE(function(){return new q6(f.Ms)}); this.Df=ZE(function(){return new AN(f.S7,I,f.Ms)}); g.z(this,this.Df);this.Q5=ZE(function(){return new SO(I,a,f.Df,f.V5,f.Wk,f.Ms,A)}); g.z(this,this.Q5);this.J$=new JI(QU,RV,function(J,v,l,X){return tu(O.get(),J,v,l,X)},W,e,O,V,this.Ms,this.V5); g.z(this,this.J$);this.SM=new AI(W,N,d,this.Ms,Z,this.V5,this.S7,this.SJ);g.z(this,this.SM);var F=new DE(I,this.SM,this.S7,this.V5,this.sP);this.Tz=ZE(function(){return F}); this.b7=F;this.rB=new LZ(W,e,this.Tz,this.sP,this.S7,this.Ms,this.Q5,this.n_);g.z(this,this.rB);this.Ef=new Uz(W,e,this.xu,this.Tz,q);g.z(this,this.Ef);this.z_=new yX(this.Ms,W,e,N,this.V5,this.Ef,d,this.B$);g.z(this,this.z_);this.B3=ZE(function(){return new vb(w,O,V,f.Ms,f.Q5,f.S7,f.n_)}); g.z(this,this.B3);this.gV=ZE(function(){return new le}); g.z(this,this.gV);this.Nj=new ue(Z,this.L_,this.Ms);g.z(this,this.Nj);this.R0=new GJ(Z);g.z(this,this.R0);this.TT=new $y(Z);g.z(this,this.TT);this.XM=new zJ(Z,this.Tz,q);g.z(this,this.XM);this.RE=new kh(Z,this.xu,this.S7,this.V5,q);g.z(this,this.RE);this.u7=new XV(Z,this.V5);g.z(this,this.u7);this.rV=new tI(Z,this.sP,this.S7,this.Q5,this.Tz,this.rB);g.z(this,this.rV);this.xZ=new $h(Z);g.z(this,this.xZ);this.OP=new xh(Z);g.z(this,this.OP);this.RK=new pZ(Z);g.z(this,this.RK);this.H6=new pK(Z);g.z(this, this.H6);this.OP=new xh(Z);g.z(this,this.OP);this.IE=ZE(function(){return new KZ}); g.z(this,this.IE);this.CA=ZE(function(){return new CZ(f.S7)}); g.z(this,this.CA);this.iE=ZE(function(){return new HX9(f.L_,f.Q5,Z,a,f.Df)}); g.z(this,this.iE);this.xm=ZE(function(){return new Ez(f.z_,W,P)}); g.z(this,this.xm);this.Te=ZE(function(){return new be(f.Ms,f.Q5,f.xZ,f.Df)}); g.z(this,this.Te);this.d5=ZE(function(){return new tD(Z,f.OP,f.xZ,f.V5,f.n_,f.S7,f.KF,f.Q5,B,f.sP,f.Df,f.l8,f.B$,f.xu,f.SJ,f.eJ,f.jK,f.qy,f.Ms,a,q,A)}); g.z(this,this.d5);this.hp=ZE(function(){return new qSJ(f.S7,f.Q5,f.jK,f.Ms,f.Df,f.V5)}); g.z(this,this.hp);this.Z_=ZE(function(){return new znl(f.L_,f.S7,f.Q5,a,f.Df,f.TT,f.H6,f.jK,f.Ms,d)}); g.z(this,this.Z_);this.GB=ZE(function(){return new jnD(f.L_,f.Q5,a)}); g.z(this,this.GB);this.H7=new CK(Z,this.vS,P);g.z(this,this.H7);this.WO={iY:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.z_],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.rB],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.J$],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.SM],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),s4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B3],["SLOT_TYPE_ABOVE_FEED",this.gV],["SLOT_TYPE_FORECASTING",this.gV], ["SLOT_TYPE_IN_PLAYER",this.gV],["SLOT_TYPE_PLAYER_BYTES",this.gV],["SLOT_TYPE_PLAYER_UNDERLAY",this.gV],["SLOT_TYPE_PLAYBACK_TRACKING",this.gV],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.gV]]),t0:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Nj],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.Nj],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.R0],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.R0],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.R0],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.R0],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.R0],["TRIGGER_TYPE_SLOT_ID_EXITED",this.R0],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.R0],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.R0],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.R0],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.R0],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.R0],["TRIGGER_TYPE_CLOSE_REQUESTED",this.TT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.XM],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.RE],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.RE],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.RE],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.RE],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.RE],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.RE],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.RE],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.u7],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.u7],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.XM],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.RK],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.H6],["TRIGGER_TYPE_AD_BREAK_STARTED",this.OP],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.rV],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.rV],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.rV],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.rV],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.rV]]),DO:new Map([["SLOT_TYPE_ABOVE_FEED",this.IE], ["SLOT_TYPE_AD_BREAK_REQUEST",this.IE],["SLOT_TYPE_FORECASTING",this.IE],["SLOT_TYPE_IN_PLAYER",this.IE],["SLOT_TYPE_PLAYER_BYTES",this.CA],["SLOT_TYPE_PLAYER_UNDERLAY",this.IE],["SLOT_TYPE_PLAYBACK_TRACKING",this.IE],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.IE]]),zE:new Map([["SLOT_TYPE_ABOVE_FEED",this.iE],["SLOT_TYPE_AD_BREAK_REQUEST",this.xm],["SLOT_TYPE_FORECASTING",this.Te],["SLOT_TYPE_PLAYER_BYTES",this.d5],["SLOT_TYPE_PLAYBACK_TRACKING",this.hp],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.hp],["SLOT_TYPE_IN_PLAYER",this.Z_],["SLOT_TYPE_PLAYER_UNDERLAY",this.GB]])};this.listeners=[a.get()];this.er={z_:this.z_,jL:this.Ms.get(),Hj:this.jK.get(),QS:this.S7.get(),SM:this.SM,IC:P.get(),FE:this.vS.get(),UY:this.Nj,oF:a.get(),pN:this.V5.get()}}; lKD=function(){return{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},G:[{K:"path",J:{d:"M0 0h48v48H0z",fill:"none"}},{K:"path",J:{d:"M22 34h4V22h-4v12zm2-30C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm-2-22h4v-4h-4v4z"}}]}}; yq=function(Z){var I=Z.D,d=Z.L,Y=I[d+0],T=I[d+1],f=I[d+2];I=I[d+3];Gx(Z,Z.L+4);return(Y<<0|T<<8|f<<16|I<<24)>>>0}; Hqn=function(Z,I,d,Y,T,f,P){d=us7(Z,I,d,Y);if(d instanceof C)return d;P=P({slotId:d.slotId,slotType:d.slotType,slotPhysicalPosition:d.slotPhysicalPosition,slotEntryTrigger:d.slotEntryTrigger,slotFulfillmentTriggers:d.slotFulfillmentTriggers,slotExpirationTriggers:d.slotExpirationTriggers,r4:d.r4});if(P instanceof C)return P;Y=[new uY(GI(I)),new Jn(P.layout),new zI({KK:Z.KK(I)})];f&&Y.push(new nI({}));return{D4:{slotId:d.slotId,slotType:d.slotType,slotPhysicalPosition:d.slotPhysicalPosition,slotEntryTrigger:VHL(Z, I,d.slotId,d.slotEntryTrigger),slotFulfillmentTriggers:NNJ(Z,I,d.slotId,d.slotFulfillmentTriggers),slotExpirationTriggers:d.slotExpirationTriggers,r4:d.r4,clientMetadata:new D0(Y),adSlotLoggingData:T},je:P.je}}; yH=function(Z,I,d,Y){var T=g.Ow(Z.api.nM());if(T&&T.loaded){var f=Z.api.getSubtitlesUserSettings();T=void 0;for(var P=0;P=Z.kS}; jeL=function(Z,I){if(I.encryptedTokenJarContents&&(Z.L[I.encryptedTokenJarContents]=I,typeof I.expirationSeconds==="string")){var d=Number(I.expirationSeconds);setTimeout(function(){delete Z.L[I.encryptedTokenJarContents]},d*1E3); Z.D&&g.bl("CONSISTENCY",I.encryptedTokenJarContents,d,void 0,!0)}}; R6L=function(Z){return nrd(Object.assign({},Z,{Bh:Z.callback,Ji:function(){}}))}; kNu=function(Z){var I;(I=Z.S.getVideoData(1))!=null&&I.In&&(Z.D=!1,I={},Z.L&&Z.videoId&&(I.cttAuthInfo={token:Z.L,videoId:Z.videoId}),Pr("video_to_ad",I))}; RA=function(Z){return Z?"layout: "+Z.layoutType:""}; uA=function(){Wx.apply(this,arguments)}; q6L=function(Z){return new TT(function(I){g.hy(I,Z)})}; zj=function(Z,I){Qd.call(this,Z,I);this.b5=this.SK=!1;this.mJ=this.Ns=Infinity;this.Tm=NaN;this.UZ=!1;this.J5=NaN;this.Hk=this.w4=this.sZ=0;this.cW=I.cW||1;this.c_=I.c_||this.cW;this.rf=I.rf;this.YS=I.YS;this.i4=I.i4;bc7(this);this.z2(this.L);this.Yl=(this.J5-this.L)/1E3}; tH=function(Z){var I={},d=g.vKB(Z.xhr);Object.keys(d).forEach(function(Y){I[Y]=d[Y]}); return I}; zEB=function(Z,I){var d=I.pop();for(d=Z.D+Z.L.length()-d;d>127;)I.push(d&127|128),d>>>=7,Z.D++;I.push(d);Z.D++}; XBJ=function(Z,I,d,Y,T){Rj.call(this,"ads-engagement-panel",Z,I,d,Y,T)}; CE=function(Z){if(Gw)return Gw.encode(Z);var I=new Uint8Array(Math.ceil(Z.length*1.2)),d=TI(Z,I);I.lengthd&&(I=I.subarray(0,d));return I}; tpB=function(Z){var I=Z.queue;I.L.length&&I.L[0].isEncrypted&&!I.D&&(I.L.length=0);I=g.t(Object.keys(Z.L));for(var d=I.next();!d.done;d=I.next()){d=d.value;var Y=Z.L[d];if(!Y.IG){var T=Z.queue;T.L.push({videoId:Y.videoId,formatId:d,isEncrypted:!1});T.D||zw(T)}}}; kBn=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"applicationInitialized",function(){kwJ(I)})}; kR=function(Z,I){Z.L.has(I)?(Z.L.delete(I),delete S5().L[I]):Zv("Unexpected unregistration of layout in LidarApi")}; vU=function(Z){return ed(Z)==="WEB_KIDS"}; g.Hx=function(Z){for(var I in Z)return I}; PgL=function(Z){Z.D&&(Z.N=new HA,Z.B.promise.then(function(){Z.KM.DG("pot_if");oE(Z)}))}; oN=function(Z,I,d){if(I=qKJ(I)){I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next())if((Y=Y.value)&&Y.externalVideoId){var T=JT(Z,Y.externalVideoId);T.instreamVideoAdRenderer||(T.instreamVideoAdRenderer=Y,T.Nb=d)}else Zv("InstreamVideoAdRenderer without externalVideoId")}}; bCE=function(Z,I,d,Y){I.CPN=r1(function(){var T;(T=Z.getVideoData(1))?T=T.clientPlaybackNonce:(g.uL(Error("Video data is null.")),T=null);return T}); I.AD_MT=r1(function(){if(Y!=null)var T=Y;else{var f=d;Z.C().Y("html5_ssap_use_cpn_to_get_time")||(f=void 0);if(Z.C().Y("enable_h5_shorts_ad_fill_ad_mt_macro")||Z.C().Y("enable_desktop_discovery_pings_ad_mt_macro")||an(Z.C())){var P=Z.getPresentingPlayerType(!0),O;T=((O=Z.getVideoData(P))==null?0:O.isAd())?q$9(Z,P,f):0}else T=q$9(Z,2,f)}return xdn(T)}); I.MT=r1(function(){return xdn(Z.getCurrentTime(1,!1))}); I.P_H=r1(function(){return Z.cj().BJ().height.toString()}); I.P_W=r1(function(){return Z.cj().BJ().width.toString()}); I.PV_H=r1(function(){return Z.cj().getVideoContentRect().height.toString()}); I.PV_W=r1(function(){return Z.cj().getVideoContentRect().width.toString()})}; lr=function(Z){var I=Z.uy,d;do{var Y=Z.i_-Z.dK-Z.NC;if(Z.NC>=I+(I-262)){LX.zg(Z.window,Z.window,I,I,0);Z.A7-=I;Z.NC-=I;Z.QC-=I;var T=d=Z.hw;do{var f=Z.head[--T];Z.head[T]=f>=I?f-I:0}while(--d);T=d=I;do f=Z.dw[--T],Z.dw[T]=f>=I?f-I:0;while(--d);Y+=I}if(Z.rz.qk===0)break;T=Z.rz;d=Z.window;f=Z.NC+Z.dK;var P=T.qk;P>Y&&(P=Y);P===0?d=0:(T.qk-=P,LX.zg(d,T.input,T.Cv,P,f),T.state.wrap===1?T.mH=nzB(T.mH,d,P,f):T.state.wrap===2&&(T.mH=iP(T.mH,d,P,f)),T.Cv+=P,T.l1+=P,d=P);Z.dK+=d;if(Z.dK+Z.cO>=3)for(Y=Z.NC- Z.cO,Z.RN=Z.window[Y],Z.RN=(Z.RN<=Math.floor(f*16/9)*1.3||Z>=f*1.3)return I;I=T}return"tiny"}; Js=function(Z){var I=Z.data.getUint8(Z.offset+Z.L);Z.L+=1;return I}; xBn=function(Z,I,d){var Y;(Y=Z.app.J_().B[I.clientPlaybackNonce]||null)==null||Y.dispose();I=new bF(Z,I,Z.playback,d/1E3);Z.Bj.set(I.PE(),I);Z.app.J_().B[I.PE()]=I}; R0E=function(Z,I,d){var Y=g.vj.apply(3,arguments),T=Z===6?"ERROR":"WARNING",f="b"+d;g.nl(new (Function.prototype.bind.apply(g.Wj,[null,f].concat(g.c(Y)))),T);Y.unshift(f);Y=Y.join(", ");T=KjE.get(I);if(!T){T="ytplog."+I;f=5;try{window.localStorage&&!isNaN(+window.localStorage[T])&&(f=+window.localStorage[T]),window.sessionStorage&&!isNaN(+window.sessionStorage[T])&&(f=+window.sessionStorage[T])}catch(a){}KjE.set(I,f);T=f}if(!(Z0&&(T.L=Math.min(T.L+P,10),T.D=f);T.L>0?(T.L--,T=!0):T=!1;if(T)typeof Y==="function"&&(Y=Y()),console.log("plyr."+I,Y);else{var O;Y=((O=EiO.get(I))!=null?O:0)+1;EiO.set(I,Y);Y%100===1&&console.warn("plyr","plyr."+I+" is chatty, dropping logs.")}}}; byO=function(Z,I,d,Y){d=d===void 0?!0:d;var T;return g.h(function(f){if(f.L==1)return g.m(f,zB(I),2);T=f.D;return f.return(g.Xn(T,["LogsRequestsStore"],{mode:"readwrite",OU:!0},function(P){var O=P.objectStore("LogsRequestsStore");return O.get(Z).then(function(a){return a?(a.status="NEW",d&&(a.sendCount+=1),Y!==void 0&&(a.options.compress=Y),g.ti(O,a).then(function(){return a})):g.WD.resolve(void 0)})}))})}; Ae=function(Z){this.Gm=bp(Z,0,Ae.messageId)}; ETu=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){var Y=d.value;d=Y.reason;if(d==null)g.uL(Error("AdFeedbackReason.reason was not set."));else if(Y=Y.endpoint,Y==null)g.uL(Error("AdFeedbackReason.endpoint was not set."));else{d=new cV(d,Y);g.z(Z,d);Y=Z.kS;var T=d.gK();Y.appendChild(T);Z.N.push(d)}}}; Xw=function(){return g.x9("idb_immediate_commit")}; Dc=function(Z,I){return Math.floor(I/(Z.columns*Z.rows))}; g.yk=function(Z){return!!Z.L&&pjO(Z.L)}; Hy$=function(Z,I,d,Y){Rj.call(this,"player-overlay-layout",Z,{},d,Y);this.videoAdDurationSeconds=I;this.interactionLoggingClientData=Y}; g.iS=function(Z,I,d){Z=Z.cj().element;var Y=aP(Z.children,function(T){T=Number(T.getAttribute("data-layer"));return d-T||1}); Y<0&&(Y=-(Y+1));Za(Z,I,Y);I.setAttribute("data-layer",String(d))}; hl=function(Z,I,d){g.jD.call(this,I,Z);this.L=d}; JK=function(Z,I,d,Y,T,f,P,O,a){T?JT(Z,T).EN.push({HZm:I,U1:d,isContentVideoCompanion:Y,sN:P,associatedCompositePlayerBytesLayoutId:f,adSlotLoggingData:O,Eh:a}):Zv("Companion AdPlacementSupportedRenderer without adVideoId")}; Ol=function(Z,I){I=I===void 0?!1:I;var d=z$(Z);Z=I?0:Z.info.X;return d||Z}; Y1$=function(Z,I){if(Z.L){var d=Z.L;var Y=Z.getCurrentTime(),T=d.rd();var f=d.policy.D;d.N||(f=Math.max(f-1,0));f*=wE(d);Y>=T-f||!d.QX()?d=Y0;return Z.HF.length>0||I}return!(Z==null||!Z.WZ)&&!(Z==null||!Z.Hb.totalLength)}; OD=function(Z,I){I=g.t(Mpd[I]);for(var d=I.next();!d.done;d=I.next())Z.S.b4(d.value)}; N$=function(Z,I,d){if(d===void 0?0:d)Z.j=!0;++Z.B;d=6E4*Math.pow(2,Z.B);d=(0,g.o8)()+d;Z.Z.set(I.info.id,d)}; Fl=function(Z){var I=new n5;Z=Z===void 0?null:Z;I.Z=1;I.D=Z===void 0?null:Z;return I}; pS7=function(Z,I){var d,Y,T,f,P;return g.h(function(O){switch(O.L){case 1:d=void 0,Y=0,T={};case 2:if(!(Y<5)){O.xS(4);break}if(!(Y>0)){O.xS(5);break}T.Rs=1E3*Math.pow(2,Y-1)+Math.random()*1E3;return g.m(O,new Promise(function(a){return function(W){g.Zb(0,function(){W(void 0)},a.Rs)}}(T)),5); case 5:return g.ez(O,7),g.m(O,c9(Z,I),9);case 9:return f=O.D,O.return(rqO(f));case 7:d=P=g.Bj(O),P instanceof Error&&g.uL(P);case 8:Y++;T={Rs:void 0};O.xS(2);break;case 4:throw d;}})}; xf7=function(Z,I){return Z.B?new Ui(Math.max(I.top+Z.B.top,I.top),Math.min(I.left+Z.B.right,I.right),Math.min(I.top+Z.B.bottom,I.bottom),Math.max(I.left+Z.B.left,I.left)):I.clone()}; Skl=function(Z,I,d){d!=null&&d.fK||(Z.s9=[]);Z.policy.SL?(I=g.SX(Z.N8,{startTimeMs:I*1E3},function(Y,T){return Y.startTimeMs-T.startTimeMs}),Z.L!==I&&(Z.L=-1,Z.Z=void 0)):(UkD(Z,!0),Z.L=GnJ(Z.N8,I*1E3))}; z59=function(Z,I){Z=Z.app.l5();var d=Z.getPlayerState();I.isOrWillBePlaying()&&!d.isOrWillBePlaying()?Z.playVideo():I.isPaused()&&!d.isPaused()&&Z.pauseVideo()}; gil=function(Z,I,d,Y){var T=this;Y=Y===void 0?{}:Y;this.policy=I;this.Zf=d;this.status=0;this.L=new OA;this.D=0;this.OZ=this.N=this.Z=!1;this.xhr=new XMLHttpRequest;this.xhr.open(Y.method||"GET",Z);if(Y.headers)for(Z=Y.headers,I=g.t(Object.keys(Z)),d=I.next();!d.done;d=I.next())d=d.value,this.xhr.setRequestHeader(d,Z[d]);this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(){return T.n$()}; this.xhr.onload=function(){return T.onDone()}; this.xhr.onerror=function(){return T.onError()}; this.xhr.fetch(function(f){T.L.append(f);T.D+=f.length;f=(0,g.o8)();T.Zf.jn(f,T.D)},function(){},Y.body||null)}; j6=function(Z,I,d,Y){return kO(Z,I,cT(d),"",Y)}; tJ=function(Z){return Z.Yl?Z.Yl-(Z.X||Z.timestampOffset):0}; hbu=function(Z){var I,d,Y,T,f,P;return g.h(function(O){switch(O.L){case 1:if(Z.L)return O.return(Lq());if(!Z.B)return I=g.Pk("getColdConfig IDB not initialized"),$6(I),O.return(Promise.reject(I));d=lq();Y=g.rh("TIME_CREATED_MS");if(!d){T=g.Pk("getColdConfig");$6(T);O.xS(2);break}return g.m(O,tZa(d),3);case 3:if((f=O.D)&&f.timestamp>Y)return RJ(Z,f.config),Z1u(Z,f.configData),yl(Z,f.hashData),O.return(Lq());case 2:Kh9(Z);if(!(d&&Z.L&&Z.coldHashData&&Z.configData)){O.xS(4);break}return g.m(O,vFa(Z.L, Z.coldHashData,Z.configData,d,Y),4);case 4:return Z.L?O.return(Lq()):(P=new g.Wj("Config not available in ytConfig"),$6(P),O.return(Promise.reject(P)))}})}; rdD=function(Z,I,d,Y,T){function f(a){O||(O=!0,Y.call(T,a))} function P(a){O||(O=!0,d.call(T,a))} var O=!1;try{I.call(Z,P,f)}catch(a){f(a)}}; r_=function(Z,I,d){Z=Z===void 0?"":Z;I=I===void 0?null:I;d=d===void 0?!1:d;g.dx.call(this);var Y=this;this.sourceUrl=Z;this.isLivePlayback=d;this.sZ=this.duration=0;this.isPremiere=this.uu=this.N=this.isLiveHeadPlayable=this.isLive=this.D=!1;this.jo=this.KN=0;this.isOtf=this.Qy=!1;this.Tm=(0,g.o8)();this.kS=Infinity;this.L={};this.Z=new Map;this.state=this.WE=0;this.V=null;this.isManifestless=!1;this.Bj=[];this.B=null;this.j7=0;this.j="";this.mJ=NaN;this.fS=this.Yl=this.timestampOffset=this.X=0;this.gf= this.Wh=NaN;this.Hk=0;this.w4=this.LS=!1;this.on=[];this.J5={};this.Ns=NaN;this.A9={l$7:function(O){Xy(Y,O)}}; var T;this.d4=(T=I)==null?void 0:T.CS("html5_use_network_error_code_enums");IiB=!!I&&I.CS("html5_modern_vp9_mime_type");var f;ER7=!((f=I)==null||!f.CS("html5_enable_flush_during_seek"))&&g.wm();var P;bI$=!((P=I)==null||!P.CS("html5_enable_reset_audio_decoder"))&&g.wm()}; tN=function(Z,I){Uj(Z,1,I.url);if(I.Jz)for(var d=0;d0}; zT=function(){Iv.instance||(Iv.instance=new Iv);return Iv.instance}; H6l=function(Z,I){var d=4320;!Z.U.D||g.bZ(Z.U)||Z.U.Y("hls_for_vod")||Z.U.Y("mweb_remove_360p_cap")||(d=g.HS.medium);var Y=g.Q4(Z.U.experiments,"html5_default_quality_cap");Y&&I.L.L&&(Z.U.Y("html5_always_apply_default_quality_cap")||!I.videoData.SI&&!I.videoData.T_)&&(d=Math.min(d,Y));Y=g.Q4(Z.U.experiments,"html5_random_playback_cap");var T=/[a-h]$/;Y&&T.test(I.videoData.clientPlaybackNonce)&&(d=Math.min(d,Y));if(T=Y=g.Q4(Z.U.experiments,"html5_hfr_quality_cap"))a:{T=I.L;if(T.L){T=g.t(T.videoInfos); for(var f=T.next();!f.done;f=T.next())if(f.value.video.fps>32){T=!0;break a}}T=!1}T&&(d=Math.min(d,Y));(Y=g.Q4(Z.U.experiments,"html5_live_quality_cap"))&&I.videoData.isLivePlayback&&(d=Math.min(d,Y));d=jYr(Z,I,d);Z=g.Q4(Z.U.experiments,"html5_byterate_soft_cap");return new mY(0,d===4320?0:d,!1,"d",Z)}; x7l=function(Z,I,d,Y,T,f,P,O){return I===null?new C("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:I,ActionCompanionAdRenderer:Y}):[M9B(Z,I,P,f,function(a){var W=a.slotId;a=O(a);var e=Y.adLayoutLoggingData,B=new D0([new sg(Y),new Xj(T)]);W=zi(d.D.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",W);var w={layoutId:W,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",r4:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",h5:new Map, layoutExitNormalTriggers:[new An(d.L,P)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:B,Tb:a(w),adLayoutLoggingData:e}})]}; r49=function(){return"INNERTUBE_API_KEY"in Gv&&"INNERTUBE_API_VERSION"in Gv}; j4O=function(Z,I){return Z.enabledEngageTypes.has(I.toString())||YF$.includes(I)}; TbE=function(Z){Z.menuItem||(Z.menuItem=new pI(Z.api,function(I){Z.setVoiceBoostUserPreference(I)},function(){return Z.getVoiceBoostUserPreference()},function(){return Z.hasVoiceBoostAudioTrack()},function(){return Z.getVoiceBoostState()}),g.z(Z,Z.menuItem))}; SM7=function(Z){g.x9("gel_compression_csi_killswitch")||!g.x9("log_gel_compression_latency")&&!g.x9("log_gel_compression_latency_lr")||en("gel_compression",Z,{sampleRate:.1})}; ZD=function(Z){return new g.eq(function(I,d){d(Z)})}; fiL=function(Z,I,d,Y,T,f){if(!f)for(I=g.t(I),f=I.next();!f.done;f=I.next())f=f.value,oN(Z,f.renderer,f.config.adPlacementConfig.kind);Z=Array.from(Z.values()).filter(function(e){return IHi(e)}); I=[];f=g.t(Z);for(var P=f.next(),O={};!P.done;O={Y1:void 0},P=f.next()){O.Y1=P.value;P=g.t(O.Y1.EN);for(var a=P.next(),W={};!a.done;W={zF:void 0},a=P.next())W.zF=a.value,a=function(e,B){return function(w){return e.zF.Eh(w,B.Y1.instreamVideoAdRenderer.elementId,e.zF.sN)}}(W,O),W.zF.isContentVideoCompanion?I.push(i1i(d,Y,T,O.Y1.instreamVideoAdRenderer.elementId,W.zF.associatedCompositePlayerBytesLayoutId,W.zF.adSlotLoggingData,a)):Z.length>1?I.push(Yqu(d,Y,T,O.Y1.instreamVideoAdRenderer.elementId,W.zF.adSlotLoggingData, function(e,B){return function(w){return e.zF.Eh(w,B.Y1.instreamVideoAdRenderer.elementId,e.zF.sN,e.zF.associatedCompositePlayerBytesLayoutId)}}(W,O))):I.push(Yqu(d,Y,T,O.Y1.instreamVideoAdRenderer.elementId,W.zF.adSlotLoggingData,a))}return I}; PQD=function(Z){return Z.S.C().Y("substitute_ad_cpn_macro_in_ssdai")}; J6D=function(Z,I,d){this.layoutId=I;this.offsetMs=d;this.triggerType="TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=Z(this.triggerType)}; Q4D=function(){g.p.apply(this,arguments);this.L=null}; I7=function(Z,I,d,Y){var T="fmt.unplayable",f=1;d===5||d===3?(T="fmt.unparseable",Z.policy.L?!Y.L.info.video||pG(Z.N.L).size>0||N$(Z.N.L,Y.L,!1):!Y.L.info.video||pG(Z.L.B).size>0||Fx(Z.L,Y.L)):d===2&&(Z.SK<15?(Z.SK++,T="html5.invalidstate",f=0):T="fmt.unplayable");Y=XU(Y);var P;Y.mrs=(P=Z.Fm)==null?void 0:f_(P);Y.origin=I;Y.reason=d;Y.trg="appenderr";Z.handleError(T,Y,f)}; Iq=function(){this.currentState=1;this.L="unknown"}; O1i=function(Z,I){Z.startSec+=I;Z.endSec+=I}; g.DA=function(Z,I,d){if(g.xG(d))return Z;d=g.alL(d);if(typeof Z==="string")return Xpn(Z,g.fn(I),d);g.G_(Z,I,d);return Z}; jQB=function(Z,I,d){var Y=g.SX(Z.L,I);if(Y>=0)return I;I=-Y-1;return I>=Z.L.length||Z.L[I]>d?null:Z.L[I]}; aia=function(Z){return Z.backButton?(Z.backButton.focus(),!0):!1}; W2J=function(Z){var I=F2(Z,!0);return J8(hU(Z,I))}; og=function(Z,I,d,Y){if(!Z.L.index.J0(I,!0))return!1;try{G5(Z);for(var T=Z.N,f=null,P=T.D.length-1;P>=0;P--){var O=T.D[P];O.info.YS>=I&&(T.D.pop(),T.Z-=Ol(O,T.policy.M8),f=O.info)}f&&(T.N=T.D.length>0?T.D[T.D.length-1].info:T.w4,T.D.length!==0||T.N||Blr(T,"r"));T.loader.D1("mdstm",{rollbk:1,itag:f?f.L.info.itag:"",popped:f?f.YS:-1,sq:I,lastslc:T.N?T.N.YS:-1,lastfraget:T.Z.toFixed(3)});if(Z.policy.L)return Z.D=null,!0;Y>d?wM(Z,Y):Z.D=Z.L.xA(I-1,!1).e7[0]}catch(a){return I=w2(a),I.details.reason="rollbkerr", Z.loader.handleError(I.errorCode,I.details,I.severity),!1}return!0}; VP$=function(Z,I,d,Y,T,f,P,O,a){var W=I;P===1||(P!==4?0:2&I||!(16&I)&&32&Y)?Cs(I)||(I|=!Z.length||O&&!(4096&I)||32&Y&&!(4096&I||16&I)?2:256,I!==W&&Ht(Z,I),Object.freeze(Z)):(P===2&&Cs(I)&&(Z=EZ(Z),W=0,I=bS(I,Y),Y=xn(d,Y,T,Z,f)),Cs(I)||(a||(I|=16),I!==W&&Ht(Z,I)));2&I||!(4096&I||16&I)||H8(d,Y);return Z}; epO=function(Z,I,d){Z.j=I;Z.B=d}; OK=function(){y_.apply(this,arguments)}; Bbn=function(Z,I){if(Z.Fm){Z.Fm.cT(I);var d;(d=Z.loader)!=null&&d.policy.j7&&(d.V=I)}}; qy=function(Z){Z=Z.X.eD()+Z.fS.eD()||0;Z=isNaN(Z)?.5:Z;return Z=Math.min(Z,5)}; iaD=function(){return{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M11.72,11.93C13.58,11.59,15,9.96,15,8c0-2.21-1.79-4-4-4C8.79,4,7,5.79,7,8c0,1.96,1.42,3.59,3.28,3.93 C4.77,12.21,2,15.76,2,20h18C20,15.76,17.23,12.21,11.72,11.93z M8,8c0-1.65,1.35-3,3-3s3,1.35,3,3s-1.35,3-3,3S8,9.65,8,8z M11,12.9c5.33,0,7.56,2.99,7.94,6.1H3.06C3.44,15.89,5.67,12.9,11,12.9z M16.68,11.44l-0.48-0.88C17.31,9.95,18,8.77,18,7.5 c0-1.27-0.69-2.45-1.81-3.06l0.49-0.88C18.11,4.36,19,5.87,19,7.5C19,9.14,18.11,10.64,16.68,11.44z M18.75,13.13l-0.5-0.87 C19.95,11.28,21,9.46,21,7.5s-1.05-3.78-2.75-4.76l0.5-0.87C20.75,3.03,22,5.19,22,7.5S20.76,11.97,18.75,13.13z", fill:"white"}}]}}; poE=function(Z){Z.Z>=0||(Z.provider.U.vg||Z.provider.t5.getVisibilityState()!==3?Z.Z=g.NC(Z.provider):Z.on=!0)}; TF=function(Z){this.value=Z}; w_a=function(Z,I,d){return Z.call.apply(Z.bind,arguments)}; g.Jf=function(Z){var I=["ytp-cued-thumbnail-overlay"];Z.C().j&&I.push("ytp-exp-contain-thumbnail");g.k.call(this,{K:"div",zm:I,G:[{K:"div",T:"ytp-cued-thumbnail-overlay-image"}]});I=this.KS("ytp-cued-thumbnail-overlay");var d=new g.x$(Z);g.z(this,d);d.i5(I);this.D=new g.De(this);g.z(this,this.D);this.api=Z;this.N=this.KS("ytp-cued-thumbnail-overlay-image");this.Z=d;this.fade=new g.nt(this,250);g.z(this,this.fade);this.L=new g.uX(this.qs,0,this);g.z(this,this.L);this.qs();this.W(Z,"appresize",this.CM); this.W(Z,"presentingplayerstatechange",this.onStateChange);this.W(Z,"ypcStateChanged",this.Ky4);y8(Z.C())&&this.W(Z,"videoplayerreset",this.onReset)}; JbL=function(Z,I){var d=0,Y=!1;I=g.t(I);for(var T=I.next();!T.done;T=I.next()){T=T.value;if(g.y(T,ViB)){T=g.y(T,ViB);var f={startTime:NaN,title:null,onActiveCommand:void 0},P=T.title;f.title=P?g.Q1(P):"";P=T.timeRangeStartMillis;P!=null&&(f.startTime=P);f.onActiveCommand=T.onActiveCommand;T=f;d===0&&T.startTime!==0&&(Z.L[d].startTime=0,Z.L[d].title="",Z.L[d].onActiveCommand=T.onActiveCommand,d++,Y=!0);Z.L.length<=d&&(f=new sV,Z.L.push(f),g.z(Z,f),f.i5(Z.y5,Z.y5.children.length));Z.L[d].startTime= T.startTime;Z.L[d].title=T.title?T.title:"";Z.L[d].onActiveCommand=T.onActiveCommand;Z.L[d].index=Y?d-1:d}d++}for(;d1?I[Z[0]]=Z[1]:Z.length===1&&Object.assign(I,Z[0])}; Grr=function(){this.L=[]}; ES=function(Z){return Z.nN.get("creatorendscreen")}; JG=function(Z,I){I=String(I);Z.contentType==="application/xhtml+xml"&&(I=I.toLowerCase());return Z.createElement(I)}; y7i=function(Z){this.triggerId=Z;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; K_=function(Z){return Z.S.C().experiments.CS("html5_preload_ads")}; cqL=function(Z,I){var d=Qh(Z.videoTrack).find(function(Y){return Y.startTime>=I&&zpi(Z,Y.startTime,!1)}); return d&&d.startTimeI);Y=Z.next());return d}; OMu=function(Z,I){I?I.errorMetadata&&g.uL(new g.Wj(Z+" failed with status "+I.errorMetadata.status)):g.uL(new g.Wj(Z+" failed with empty response"))}; sQa=function(Z,I){if(Z.isDrm()){if(I.info.L.info.DR()){var d=new Kt(g.j1(I));if(wH(d,[408125543,374648427,174,28032,25152,20533,18402])){var Y=F2(d,!0);d=Y!==16?null:hU(d,Y)}else d=null;Y="webm"}else I.info.In=hyi(g.j1(I)),d=UwB(I.info.In),Y="cenc";d&&d.length&&(d=new dR(d,Y),Z.policy.lZ&&g.Me(I.info.L.info)&&(Y=OHJ(g.j1(I)))&&(d.D=Y),d.DR=I.info.L.info.DR(),I.L&&I.L.cryptoPeriodIndex&&(d.cryptoPeriodIndex=I.L.cryptoPeriodIndex),I.L&&I.L.D&&(d.L=I.L.D),Z.loader.X4(d))}}; Eca=function(Z,I){return I?!!Z.L.get(I):!1}; FA=function(Z,I){I=I===void 0?NaN:I;I=I>=0?I:g.NC(Z.provider);var d=Z.provider.t5.cH(),Y=d.Il-(Z.Tm||0);Y>0&&g.Vt(Z,I,"bwm",[Y,(d.K8-(Z.EU||0)).toFixed(3)]);isNaN(Z.Tm)&&d.Il&&Z.isOffline&&Z.c8(!1);Z.Tm=d.Il;Z.EU=d.K8;isNaN(d.bandwidthEstimate)||g.Vt(Z,I,"bwe",[d.bandwidthEstimate.toFixed(0)]);Z.provider.U.Vy()&&Object.keys(d.L).length!==0&&Z.D1("bwinfo",d.L);if(Z.provider.U.Vy()||Z.provider.U.Y("html5_log_meminfo"))Y=Bzi(),Object.values(Y).some(function(f){return f!==void 0})&&Z.D1("meminfo",Y); if(Z.provider.U.Vy()){var T;(Y=(T=Z.J5)==null?void 0:Y89(T))&&Object.values(Y).some(function(f){return f!=null})&&Z.D1("cpuinfo",Y)}Z.sZ&&Z.D1("jsprof",Z.sZ.flush()); Z.In&&g.Vt(Z,I,"bat",[Z.In.level,Z.In.charging?"1":"0"]);T=Z.provider.t5.getVisibilityState();Z.Tv!==T&&(g.Vt(Z,I,"vis",[T]),Z.Tv=T);aD(Z,I);(T=uql(Z.provider))&&T!==Z.sU&&(g.Vt(Z,I,"conn",[T]),Z.sU=T);hd(Z,I,d)}; hqn=function(Z){var I=Vh(Z.audioTrack,!0)*1E3;Z=Vh(Z.videoTrack,!0)*1E3;return{xN:I,FJ:Z}}; ZwB=function(Z){var I,d,Y=(d=(I=Z.t5.bQ())==null?void 0:I.getCurrentTime())!=null?d:Z.t5.getCurrentTime(),T=Z.N.Cl(Y);L9L(Z,T,Y,!0);Z.isSeeking=!1;Array.from(Z.D.keys()).sort(function(f,P){return f-P}).forEach(function(f){f>T?RXD(Z,f,Z.D.get(f)):f===T&&RXD(Z,f,Z.D.get(f),Y-Z.N.getStartTime(f))})}; g.eY=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 32 32",width:"100%"},G:[{K:"path",J:{d:"M 19.41,20.09 14.83,15.5 19.41,10.91 18,9.5 l -6,6 6,6 z",fill:"#fff"}}]}}; bA=function(Z,I){I===Z.fJ&&(Z.fJ=void 0)}; Gw$=function(Z,I,d){Z=Z.D();if(typeof Z==="function"){var Y={};var T={};Y=Object.assign({},Kk!==null&&(Y.v=Kk,Y),(T.sv="968",T.cb=krO,T.e=X_7(I),T));T=ZM(d,I,La());g.rt(Y,T);d.Na[I]=T;Y=d.Nm()==2?BOD(Y).join("&"):d.pX.L(Y).L;try{return Z(d.iy,Y,I),0}catch(f){return 2}}else return 1}; t5=function(Z){this.value=Z}; I3=function(){this.D={};this.L=null}; ti7=function(Z,I){Z.L||(Z.EZ.rK(I),Z.L=!0)}; g.H4=function(Z,I,d,Y){Array.prototype.splice.apply(Z,x6(arguments,1))}; g.q2=function(Z,I,d){return Z.app.C().kF?I:g.yd("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:I,SHORTCUT:d})}; qzn=function(Z){var I=Z===void 0?{}:Z;Z=I.hasSubfragmentedFmp4===void 0?!1:I.hasSubfragmentedFmp4;I=I.U$===void 0?!1:I.U$;var d=new WZa;d.TJ=Z||I;return d}; nH=function(){g.p.call(this);this.kQ=!1;this.MC=null;this.X=this.V=!1;this.N=new g.mv;this.j=this.t5=null;g.z(this,this.N)}; kz=function(Z){Z.IL();Z.Of.isSeeking();Z.X&&yT9(Z.X,Z.videoTrack.L);L8(Z);return $4E(Z.Of)}; rq=function(Z){return Z.R4?g.$x().K_(140)?"STATE_OFF":"STATE_ON":"STATE_NONE"}; VGn=function(){this.csn=g.vv();this.clientPlaybackNonce=null;this.elements=new Set;this.Z=new Set;this.L=new Set;this.D=new Set}; g.QE=function(Z,I){return Z.indexOf(I)!=-1}; Hd=function(Z,I,d){Z.B=3;Z.In="The stream is broken @"+Z.Z+"/"+d+". With input:\n"+I;throw Error(Z.In);}; IJ=function(){return l$()?OH("Chromium"):(ET("Chrome")||ET("CriOS"))&&!(l$()?0:ET("Edge"))||ET("Silk")}; bQE=function(Z,I,d){(Z-4^12)>=Z&&(Z-4^1)>3==1){I=(I%d[Q[17]]+d[Q[17]])%d[Q[17]];var Y=d[0];d[0]=d[I];d[I]=Y;var T=[I,d]}return T}; x4u=function(Z,I,d,Y,T){g.p.call(this);var f=this,P=ZE(function(){return new IV(f.Ms)}); g.z(this,P);var O=ZE(function(){return new dg(P,f.Ms)}); g.z(this,O);var a=ZE(function(){return new oV}); g.z(this,a);var W=ZE(function(){return new Yh(Z)}); g.z(this,W);var e=ZE(function(){return new jO(P,O,f.Ms)}); g.z(this,e);var B=ZE(function(){return new TJ}); g.z(this,B);this.L_=ZE(function(){return new ie(I)}); g.z(this,this.L_);this.jK=ZE(function(){return new fZ(T)}); g.z(this,this.jK);this.SJ=ZE(function(){return new Pb(I)}); g.z(this,this.SJ);this.xu=ZE(function(){return new QX(I)}); g.z(this,this.xu);this.B$=ZE(function(){return new Oz(I)}); g.z(this,this.B$);this.eJ=ZE(function(){return new aV(I)}); g.z(this,this.eJ);this.Ms=ZE(function(){return new Wb(I)}); g.z(this,this.Ms);var w=ZE(function(){return new eO(Y)}); g.z(this,w);var V=ZE(function(){return new Bb(f.Ms)}); g.z(this,V);var N=ZE(function(){return new mE(P,e,O,f.Ms,V,null,null,null,null)}); g.z(this,N);this.qy=ZE(function(){return new wg(I)}); g.z(this,this.qy);this.V5=ZE(function(){return new VX(I,B,f.Ms)}); g.z(this,this.V5);var q=N6({V5:this.V5,Ms:this.Ms,hZ:V}),A=q.context,F=q.eF;this.Wk=q.Wk;this.S7=ZE(function(){return new nZ(I,f.V5,f.Ms)}); g.z(this,this.S7);this.KF=ZE(function(){return new hI}); g.z(this,this.KF);this.Df=ZE(function(){return new AN(f.S7,I,f.Ms)}); g.z(this,this.Df);this.Q5=ZE(function(){return new SO(I,a,f.Df,f.V5,f.Wk,f.Ms,F)}); g.z(this,this.Q5);this.l8=ZE(function(){return new q6(f.Ms)}); g.z(this,this.l8);this.J$=new JI(QU,RV,function(v,l,X,H){return tu(O.get(),v,l,X,H)},W,e,O,V,this.Ms,this.V5); g.z(this,this.J$);this.SM=new AI(W,N,d,this.Ms,Z,this.V5,this.S7,this.SJ);g.z(this,this.SM);var J=new DE(I,this.SM,this.S7,this.V5);this.Tz=ZE(function(){return J}); this.b7=J;this.Ef=new Uz(W,e,this.xu,this.Tz,A);g.z(this,this.Ef);this.z_=new yX(this.Ms,W,e,N,this.V5,this.Ef,d,this.B$);g.z(this,this.z_);this.B3=ZE(function(){return new vb(w,O,V,f.Ms,f.Q5,f.S7)}); g.z(this,this.B3);this.gV=ZE(function(){return new le}); g.z(this,this.gV);this.Nj=new ue(Z,this.L_,this.Ms);g.z(this,this.Nj);this.R0=new GJ(Z);g.z(this,this.R0);this.XM=new zJ(Z,this.Tz,A);g.z(this,this.XM);this.RE=new kh(Z,this.xu,this.S7,this.V5,A);g.z(this,this.RE);this.xZ=new $h(Z);g.z(this,this.xZ);this.RK=new pZ(Z);g.z(this,this.RK);this.n_=ZE(function(){return new sz(I)}); g.z(this,this.n_);this.OP=new xh(Z);g.z(this,this.OP);this.IE=ZE(function(){return new KZ}); g.z(this,this.IE);this.CA=ZE(function(){return new CZ(f.S7)}); g.z(this,this.CA);this.xm=ZE(function(){return new Ez(f.z_,W,P)}); g.z(this,this.xm);this.Te=ZE(function(){return new be(f.Ms,f.Q5,f.xZ,f.Df)}); g.z(this,this.Te);this.XC=ZE(function(){return new p_D(f.L_,f.S7,f.Q5,a,d,f.Ms)}); g.z(this,this.XC);this.d5=ZE(function(){return new KK(Z,f.OP,f.xZ,f.Q5,f.Df,f.l8,f.B$,f.V5,f.S7,f.KF,f.xu,f.SJ,f.eJ,f.jK,f.qy,f.Ms,f.n_,A,F)}); g.z(this,this.d5);this.WO={iY:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.z_],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.J$],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.SM],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.Ef]]),s4:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.B3],["SLOT_TYPE_FORECASTING",this.gV],["SLOT_TYPE_IN_PLAYER",this.gV],["SLOT_TYPE_PLAYER_BYTES",this.gV]]),t0:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.Nj],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.R0],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.R0],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.R0],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.R0],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.R0],["TRIGGER_TYPE_SLOT_ID_EXITED",this.R0],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.R0],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.R0],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.R0],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.XM],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.RE],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.RE],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.xZ],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.XM],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.RK],["TRIGGER_TYPE_AD_BREAK_STARTED",this.OP]]),DO:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.IE],["SLOT_TYPE_ABOVE_FEED",this.IE],["SLOT_TYPE_FORECASTING",this.IE],["SLOT_TYPE_IN_PLAYER",this.IE],["SLOT_TYPE_PLAYER_BYTES",this.CA]]),zE:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.xm],["SLOT_TYPE_FORECASTING",this.Te],["SLOT_TYPE_IN_PLAYER", this.XC],["SLOT_TYPE_PLAYER_BYTES",this.d5]])};this.listeners=[a.get()];this.er={z_:this.z_,jL:this.Ms.get(),Hj:this.jK.get(),QS:this.S7.get(),SM:this.SM,IC:P.get(),FE:null,UY:this.Nj,oF:a.get(),pN:this.V5.get()}}; E7d=function(Z){if(g.Hw(g.Fp(Z)))return!1;if(Z.indexOf("://pagead2.googlesyndication.com/pagead/gen_204?id=yt3p&sr=1&")>=0)return!0;try{var I=new g.gR(Z)}catch(d){return g.Xe(K2$,function(Y){return Z.search(Y)>0})!=null}return I.j.match(CQd)?!0:g.Xe(K2$,function(d){return Z.match(d)!=null})!=null}; RsL=function(Z,I){if(I.K==="path")return I.J.d;if(I.G)for(var d=0;df?{width:I.width,height:I.width/T,aspectRatio:T}:TT?Z.width=Z.height*d:d1.5&&Z.loader.D1("overshoot",{sq:I.YS,br:d,max:Y}))}}; cd=function(Z,I){var d={};if(Z!==void 0)if(I!=null)for(var Y in I){var T=I[Y];Y in Object.prototype||T!=null&&(d[Y]=typeof T==="function"?T(Z):Z[T])}else g.rt(d,Z);return Hu(xt(new p2,d))}; OSJ=function(Z,I){Z.MC&&Z.MC.equals(I)||(Z.MC&&Z.MC.dispose(),Z.MC=I)}; OQd=function(){var Z=this;this.proc_exit=function(){}; this.fd_write=function(I,d,Y){if(!Z.exports)return 1;I=new Uint32Array(Z.exports.memory.buffer,d,Y*2);d=[];for(var T=0;T0?(d=Math.floor(d-f.L/1E3),Z.B!==d&&Z.D1("sdai",{updateSt:d,old:Z.B}),Z.B=d):Z.N>0&&(d=I+Math.max(Math.ceil(-f.L/5E3),1),Z.N!==d&&(Z.D1("sdai",{updateSt:d,old:Z.N}),Z.N=d)):Z.policy.wV&&Z.D===3&&Z4L(Z,I,d,Y,T)}else Z.D1("sdai",{nulldec:1,sq:I,mt:d.toFixed(3),evt:(Y==null?void 0:(f=Y.Un)==null?void 0:f.event)|| "none"})}; gi=function(Z,I,d,Y){d+="."+Z;Z=Hb(I);Y[d]=Z;return d.length+Z.length}; amD=function(Z,I){ys(Z,1,I.ZJs);ys(Z,2,I.S4n)}; iR=function(Z,I){var d,Y;return!!((d=window.h5vcc)==null?0:(Y=d.settings)==null?0:Y.set(Z,I))}; Yvl=function(Z,I,d){var Y,T,f,P,O;return g.h(function(a){if(a.L==1){g.ez(a,2);Y=dLi(d);var W=I.C(),e=g.$x(),B={context:g.tR(I),videoId:I.videoId,racyCheckOk:I.racyCheckOk,contentCheckOk:I.contentCheckOk,autonavState:"STATE_NONE"};l3(I)==="adunit"&&(B.isAdPlayback=!0);W.embedConfig&&(B.serializedThirdPartyEmbedConfig=W.embedConfig);W.zX&&(B.showContentOwnerOnly=!0);I.A8&&(B.showShortsOnly=!0);e.K_(141)&&(B.autonavState=e.K_(140)?"STATE_OFF":"STATE_ON");if(g.qN(W)){e=e.K_(65);e=e!=null?!e:!1;var w= !!g.T2("yt-player-sticky-caption");B.captionsRequested=e&&w}var V;if(W=(V=W.getWebPlayerContextConfig())==null?void 0:V.encryptedHostFlags)B.playbackContext={encryptedHostFlags:W};T=B;f=g.R$(oNE);Z.On("wn_s");return g.m(a,g.L9(Y,T,f),4)}if(a.L!=2)return P=a.D,Z.On("wn_r"),!P||"error"in P&&P.error||(O=P,g.bZ(I.C())&&O.trackingParams&&rl(O.trackingParams),g.eA(I,{raw_watch_next_response:P},!1)),g.gE(a,0);g.Bj(a);g.v6(a)})}; VDa=function(Z){this.value=Z}; LU=function(Z){$w.call(this,Z);this.events=new g.De;g.z(this,this.events);this.events.W(Z,"applicationInitialized",function(){var I={};for(Vo=new XA(I.handleError===void 0?wp:I.handleError,I.logEvent===void 0?g.g6:I.logEvent);Nq.length>0;)switch(I=Nq.shift(),I.type){case "ERROR":Vo.r5(I.payload);break;case "EVENT":Vo.logEvent(I.eventType,I.payload)}}); pF(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));pF(this.api,"updateDownloadState",this.updateDownloadState.bind(this));pF(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));pF(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));pF(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));pF(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));pF(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; pOE=function(Z){$w.call(this,Z);var I=this;Z.addEventListener("settingsMenuInitialized",function(){I.menuItem||(I.menuItem=new rU(I.api),g.z(I,I.menuItem))}); Z.addEventListener("videodatachange",function(d,Y){d=I.api.getPresentingPlayerType()===2;var T;(T=I.menuItem)==null||T.o0(!Y.isLivePlayback&&!d)})}; AiD=function(Z){$w.call(this,Z);var I=this;pF(Z,"getStatsForNerds",function(){return jT7(I.api)}); $z(Z,"showVideoInfo",function(){b_d(I,!0)}); $z(Z,"hideVideoInfo",function(){b_d(I,!1)}); $z(Z,"isVideoInfoVisible",function(){return nSD(I)})}; wO=function(Z,I,d){var Y=fZB.get();Y.Z=Z;Y.D=I;Y.context=d;return Y}; VHL=function(Z,I,d,Y){return Z.Ms.get().fN(GI(I))?new sL(Z.L,d):Y}; TYi=function(Z,I,d){var Y,T=I==null?void 0:(Y=I.text)==null?void 0:Y.simpleText;T&&(d=M3L(Z,d,T,I==null?void 0:I.icon,I==null?void 0:I.secondaryIcon),I.navigationEndpoint&&d.listen("click",function(){Z.S.Rn("innertubeCommand",I.navigationEndpoint);Z.hide()},Z))}; Ao=function(Z,I,d,Y,T,f,P,O,a,W,e){var B=[];if(I.length===0&&Y.length===0&&d.length===0)return B;I=I.filter(WY);var w=d.filter(EDu),V=Y.filter(WY),N=new Map,q=OOl(I),A=d.some(function(jt){var yu;return(jt==null?void 0:(yu=jt.adSlotMetadata)==null?void 0:yu.slotType)==="SLOT_TYPE_PLAYER_BYTES"}),F=d.some(function(jt){var yu; return(jt==null?void 0:(yu=jt.adSlotMetadata)==null?void 0:yu.slotType)==="SLOT_TYPE_PLAYER_UNDERLAY"}),J=d.some(function(jt){var yu; return(jt==null?void 0:(yu=jt.adSlotMetadata)==null?void 0:yu.slotType)==="SLOT_TYPE_IN_PLAYER"}),v=d.some(function(jt){var yu,UJ; return(jt==null?void 0:(yu=jt.adSlotMetadata)==null?void 0:yu.slotType)==="SLOT_TYPE_BELOW_PLAYER"||(jt==null?void 0:(UJ=jt.adSlotMetadata)==null?void 0:UJ.slotType)==="SLOT_TYPE_ABOVE_FEED"}),l=d.some(function(jt){var yu; return(jt==null?void 0:(yu=jt.adSlotMetadata)==null?void 0:yu.slotType)==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"}); d=d.some(function(jt){var yu;return(jt==null?void 0:(yu=jt.adSlotMetadata)==null?void 0:yu.slotType)==="SLOT_TYPE_IN_PLAYER_ORGANIC_OVERLAY"}); if(A||F||J||v||l||d)W=S8E(w,I,O,T,q,Z.hZ.get(),Z.loadPolicy,N,Z.Ms.get(),Z.N.get(),J,P,a,W,e),W instanceof C?Zv(W,void 0,void 0,{contentCpn:T}):B.push.apply(B,g.c(W));W=g.t(I);for(d=W.next();!d.done;d=W.next())d=d.value,F=Mv7(Z,N,d,T,f,P,A,O,q,a,w,Z.Ms.get().S.C().experiments.CS("html5_enable_triggering_cuepoint_for_slot")?e:void 0),F instanceof C?Zv(F,void 0,void 0,{renderer:d.renderer,config:d.config.adPlacementConfig,kind:d.config.adPlacementConfig.kind,contentCpn:T,daiEnabled:P}):B.push.apply(B, g.c(F));M6$(Z.Ms.get())||(f=LB$(Z,V,T,O,q,N),B.push.apply(B,g.c(f)));if(Z.Z===null||P&&!O.TY){var X,H,x;Z=O.Qy&&I.length===1&&((X=I[0].config)==null?void 0:(H=X.adPlacementConfig)==null?void 0:H.kind)==="AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED"&&((x=I[0].renderer)==null?void 0:x.adBreakServiceRenderer);if(!B.length&&!Z){var Id,TB,dD,Qu;Zv("Expected slots parsed from AdPlacementRenderers for DAI",void 0,void 0,{"AdPlacementRenderer count":I.length,contentCpn:T,"first APR kind":(Id=I[0])==null?void 0: (TB=Id.config)==null?void 0:(dD=TB.adPlacementConfig)==null?void 0:dD.kind,renderer:(Qu=I[0])==null?void 0:Qu.renderer})}return B}X=Y.filter(WY);B.push.apply(B,g.c(fiL(N,X,Z.D.get(),Z.Z,T,A)));if(!B.length){var Zr,sJ,bL,TL;Zv("Expected slots parsed from AdPlacementRenderers",void 0,void 0,{"AdPlacementRenderer count":I.length,contentCpn:T,daiEnabled:P.toString(),"first APR kind":(Zr=I[0])==null?void 0:(sJ=Zr.config)==null?void 0:(bL=sJ.adPlacementConfig)==null?void 0:bL.kind,renderer:(TL=I[0])==null? void 0:TL.renderer})}return B}; g.wy=function(Z,I,d,Y,T,f,P,O,a,W){O=O===void 0?!1:O;g.p.call(this);var e=this;this.t5=Z;this.schedule=I;this.policy=d;this.u5=Y;this.Ns=a;this.Gv=W;this.mJ=this.Fm=null;this.sZ=this.on=this.w4=this.Bj=0;this.Yb=this.bC=this.isSuspended=!1;this.b5="";this.kF={};this.Yl=NaN;this.SK=0;this.B=null;this.Hk=this.Tm=!1;this.TW=0;this.UZ=!1;this.j7=this.I0=0;this.M8=null;this.nK=!1;this.VC=function(){return e.t5.VC()}; this.timing=new EPd(this.Gv);this.In=new LO(this.schedule,this.policy);this.EU=new g.uX(this.Nc,0,this);this.sU=new g.uX(this.Nc,this.policy.Tv,this);this.y0=new g.uX(this.Nc,1E3,this);this.R4=new g.uX(this.Nc,void 0,this);this.y5=new g.uX(function(){e.isSuspended||e.Nc()},1E4,this); this.o4=new g.uX(this.Wy5,250,this);this.V=this.currentTime=NaN;this.GO=new Gk(5);this.fS=this.timestampOffset=NaN;this.logger=new g.qj("dash");this.En=Infinity;this.A9={Cf1:function(){return e.Of}, y6j:function(){return e.Z}, getAudioTrack:function(){return e.audioTrack}, Jqj:function(){return e.videoTrack}, vOS:function(){return e.kS}, getManifest:function(){return e.u5}, XaJ:function(){return e.D}, Nc:function(){e.Nc()}, YB:function(){e.Bj=0;e.YB()}, HJj:function(w){return US(e,e.videoTrack,e.Fm.D,w)}}; Z=a&&a.Rl();a&&(Byi(a,this.u5,this.policy),this.fS=Date.now());this.L=new i4$(this,this.In,d,this.u5,T,Z);d=f5L(this.L,f,P&&P.id);this.audioTrack=new YG(this,this.policy,d.audio,this.timing);this.videoTrack=new YG(this,this.policy,d.video,this.timing);this.videoTrack.N.Bj=this.audioTrack.b9();this.d4={updateend:this.TH,error:this.xC5};g.z(this,this.EU);g.z(this,this.sU);g.z(this,this.y0);g.z(this,this.R4);g.z(this,this.y5);d=this.policy.Bp&&this.policy.Ym?!kva(this.videoTrack.L.info):!1;this.Tv=pyl({TJ:this.policy.X.TJ|| d,Ym:this.policy.Ym&&!d,Qi:this.policy.Qi});this.X=RJd(this,this.policy,this.Tv,this.schedule,this.GO,function(w,V){return zpi(e,w,V)}); this.Z=new wc(this,this.u5,this.policy,this.videoTrack,this.audioTrack,O);this.policy.d4&&this.policy.D&&(this.kS=new Ax$(this.policy.j,function(w,V){e.D1(w,V)})); this.Of=new Zo(this,this.u5,this.videoTrack,this.audioTrack,this.policy);O=this.policy.Ej?this.t5.getVideoData().Fw:null;this.j=new IH(this,this.policy,this.videoTrack,this.audioTrack,this.kF,this.Z,this.timing,this.In,this.schedule,this.u5,this.L,this.X,d,O);g.z(this,this.j);this.N=new d4(this,this.policy,this.videoTrack,this.audioTrack,this.u5,T,Nv(this.t5.getVideoData()),P==null?void 0:P.id);g.z(this,this.N);HGl(this.N,f);this.D=new C1O(this.t5,this,this.policy,this.audioTrack,this.videoTrack, this.u5,this.schedule,this.L,this.N,this.timing,this.Z,this.kS);g.z(this,this.D);this.LS=this.t5.q8.V4.Eo;this.policy.B||JX7(this);if(this.policy.sU){var B;this.J5=new lf(this.videoTrack.L.index,(B=this.t5.getVideoData().clientPlaybackNonce)!=null?B:"",this.t5,this.policy.UZ);this.policy.UZ===3&&(this.eK=new g.uX(this.Lh,200,this),this.eK.start(),g.z(this,this.eK))}}; GF=function(Z){var I=Z.vj();if(g.b(I.getPlayerState(),128))return!1;I=I.getVideoData();uc(Z)&&Z.U.gB&&(r9.length&&Z.DN?(oH(Z,{muted:!1,volume:Z.p6.volume},!1),YF(Z,!1)):r9.length||Z.p6.muted||(oH(Z,{muted:!0,volume:Z.p6.volume},!1),YF(Z,!0)));uc(Z)&&g.Dh(Z.U)&&I.mutedAutoplay&&(oH(Z,{muted:!0,volume:Z.p6.volume},!1),YF(Z,!0));I.Pp&&oH(Z,{muted:!0,volume:Z.p6.volume},!1);Ca(Z,1,I,!1);var d=Z.vj();Z.Wj.publish("initializingmode");Z.Pa(d);Z.bP(3);var Y;if(!(Y=!Z.U.xM)){if(Y=Z.Hg){Y=Z.Hg;var T=Z.mediaElement; Y=!!T&&T===Y.mediaElement}Y=Y&&Z.YP}Y&&(Z.aB(),vk(Z),d.setMediaElement(Z.mediaElement));d.UW();if(g.b(d.getPlayerState(),128))return!1;I.MO||F5(Z,3);return Z.YP=!0}; UBB=function(Z,I){var d=Z.sendVisitorIdHeader?Z.visitorData:void 0;return g.NF(Z.U,Z.accessToken).then(function(Y){return $G(Z.uri,Z.U,Z.pageId,d,Y,I)})}; uRD=function(Z,I,d,Y,T,f,P,O){Y=Y===void 0?{}:Y;O=O===void 0?{value:0}:O;f=i8$(f);Y=cy(Y,P,function(a){g.x9("start_client_gcf")&&g.Kl.AB(function(){return g.h(function(W){return g.m(W,rrO(a),0)})}); O.value--;O.value||d()},function(){O.value--; O.value||d()},T); Y.headers["Content-Type"]="application/json+protobuf";Y.postBodyFormat="JSPB";Y.postBody=Z;g.wv(I,f,"",Y);je=!1}; ut9=function(Z,I,d,Y){function T(){Z.OZ()||d.call(Z)} function f(){Z.OZ()||Y.call(Z)} for(var P=g.Xr("SCRIPT"),O=!1,a,W=0;WZ.j&&(Z.j=NaN,Z.V=NaN);Z.L&&Z.L.YS===I?I59(Z,I,d,Z.L,T):Z.D===1&&ir(Z,5,"noad")}; vpu=function(Z){Z.OZ()||(Z.Z.resolve(),Z.Z=new g.f2)}; jA=function(Z){return!!(Z.I15&&Z.slot&&Z.layout)}; P67=function(Z,I,d,Y){if(!I||!d||!I.videoData.D)return!1;var T=g.Q4(Z.U.experiments,"html5_df_downgrade_thresh"),f=Z.Y("html5_log_media_perf_info");if(!((0,g.o8)()-Z.N<5E3?0:f||T>0))return!1;var P=((0,g.o8)()-Z.N)/1E3;Z.N=(0,g.o8)();d=d.getVideoPlaybackQuality();if(!d)return!1;var O=d.droppedVideoFrames-Z.j,a=d.totalVideoFrames-Z.X;Z.j=d.droppedVideoFrames;Z.X=d.totalVideoFrames;var W=d.displayCompositedVideoFrames===0?0:d.displayCompositedVideoFrames||-1;f&&Z.U.Vy()&&Z.t5.D1("ddf",{dr:d.droppedVideoFrames, de:d.totalVideoFrames,comp:W});if(Y)return Z.L=0,!1;if((a-O)/P>Z.In||!T||g.RK(Z.U))return!1;Z.L=(a>60?O/a:0)>T?Z.L+1:0;if(Z.L!==3)return!1;UGd(Z,I.videoData.D);Z.t5.D1("dfd",Object.assign({dr:d.droppedVideoFrames,de:d.totalVideoFrames},W4$()));return!0}; RwE=function(){this.L={}}; j9=function(Z,I){return RD(Z,Z.state&~I,null,null)}; Ty=function(){}; dq=function(Z){function I(N,q,A,F){if(!Y.logger.OZ()){var J="k";q?J="h":A&&(J="u");J!=="k"?F!==0&&(Y.logger.ww(J),Y.logger.WF(J,N)):Y.D<=0?(Y.logger.ww(J),Y.logger.WF(J,N),Y.D=Math.floor(Math.random()*200)):Y.D--}} function d(N,q,A,F){Promise.resolve().then(function(){a.done();O.Xn();O.dispose();P.resolve({CL:N,dys:q,SV1:A,PP1:F})})} g.p.call(this);var Y=this;this.D=Math.floor(Math.random()*200);this.L=new Te;if("challenge"in Z&&QTn(Z.challenge)){var T=A0(Z.challenge,4,void 0,vg);var f=A0(Z.challenge,5,void 0,vg);A0(Z.challenge,7,void 0,vg)&&(this.L=O4d(A0(Z.challenge,7,void 0,vg)))}else T=Z.program,f=Z.globalName;this.addOnDisposeCallback(function(){var N,q,A;return g.h(function(F){if(F.L==1)return g.m(F,Y.Z,2);N=F.D;q=N.dys;(A=q)==null||A();g.v6(F)})}); this.logger=bMD(Z.t3||{},this.L);g.z(this,this.logger);var P=new g.f2;this.Z=P.promise;this.logger.ww("t");var O=this.logger.share(),a=new yw(O,"t");if(!g.iN[f])throw this.logger.r5(25),Error("EGOU");if(!g.iN[f].a)throw this.logger.r5(26),Error("ELIU");try{var W=g.iN[f].a;f=[];for(var e=[],B=B0u(this.L),w=0;w=0}else Z=!1;return d||Y||Z?I:null}; I1i=function(Z){if(isNaN(Number(Z.timeoutSeconds))||!Z.text||!Z.ctaButton||!g.y(Z.ctaButton,g.Ji)||!Z.brandImage)return!1;var I;return Z.backgroundImage&&g.y(Z.backgroundImage,fC)&&((I=g.y(Z.backgroundImage,fC))==null?0:I.landscape)?!0:!1}; Cr=function(Z){this.Gm=bp(Z)}; UK=function(Z,I,d,Y,T){Y=Y===void 0?!1:Y;g.p.call(this);this.nS=I;this.useCobaltWidevine=Y;this.D1=T;this.D=[];this.Z={};this.L={};this.callback=null;this.B=!1;this.N=[];this.initialize(Z,!d)}; kU=function(Z){g.dx.call(this);this.L=null;this.Z=new Ic;this.L=null;this.j=new Set;this.crossOrigin=Z||""}; BYE=function(){}; VZ=function(){return{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V19L1.01 19.20C1.05 19.66 1.26 20.08 1.58 20.41C1.91 20.73 2.33 20.94 2.79 20.99L3 21H21L21.20 20.98C21.66 20.94 22.08 20.73 22.41 20.41C22.73 20.08 22.94 19.66 22.99 19.20L23 19V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01ZM3 19V5H21V19H3ZM6.97 8.34C6.42 8.64 5.96 9.09 5.64 9.63L5.50 9.87C5.16 10.53 4.99 11.26 5 12L5.00 12.27C5.04 12.92 5.21 13.55 5.50 14.12L5.64 14.36C5.96 14.90 6.42 15.35 6.97 15.65L7.21 15.77C7.79 16.01 8.43 16.06 9.03 15.91L9.29 15.83C9.88 15.61 10.39 15.23 10.77 14.73C10.93 14.53 11.00 14.27 10.97 14.02C10.94 13.77 10.82 13.53 10.63 13.37C10.44 13.20 10.19 13.11 9.93 13.12C9.68 13.13 9.44 13.24 9.26 13.43L9.19 13.50C9.05 13.70 8.85 13.85 8.62 13.94L8.54 13.97C8.35 14.02 8.16 14.00 7.99 13.92L7.91 13.88C7.67 13.75 7.48 13.56 7.35 13.32L7.28 13.20C7.11 12.88 7.02 12.52 7.00 12.16L7 12C6.99 11.58 7.09 11.16 7.28 10.79L7.35 10.67C7.48 10.43 7.67 10.24 7.91 10.11C8.10 10.00 8.32 9.97 8.54 10.02L8.62 10.05C8.81 10.12 8.98 10.24 9.11 10.39L9.19 10.49L9.26 10.57C9.43 10.74 9.66 10.85 9.91 10.87C10.15 10.89 10.40 10.81 10.59 10.66C10.79 10.51 10.92 10.29 10.96 10.05C11.01 9.80 10.96 9.55 10.83 9.34L10.77 9.26L10.60 9.05C10.24 8.65 9.79 8.35 9.29 8.16L9.03 8.08C8.34 7.91 7.60 8.00 6.97 8.34ZM14.97 8.34C14.42 8.64 13.96 9.09 13.64 9.63L13.50 9.87C13.16 10.53 12.99 11.26 13 12L13.00 12.27C13.04 12.92 13.21 13.55 13.50 14.12L13.64 14.36C13.96 14.90 14.42 15.35 14.97 15.65L15.21 15.77C15.79 16.01 16.43 16.06 17.03 15.91L17.29 15.83C17.88 15.61 18.39 15.23 18.77 14.73C18.93 14.53 19.00 14.27 18.97 14.02C18.94 13.77 18.82 13.53 18.63 13.37C18.44 13.20 18.19 13.11 17.93 13.12C17.68 13.13 17.44 13.24 17.26 13.43L17.19 13.50C17.05 13.70 16.85 13.85 16.62 13.94L16.54 13.97C16.35 14.02 16.16 14.00 15.99 13.92L15.91 13.88C15.67 13.75 15.48 13.56 15.35 13.32L15.28 13.20C15.11 12.88 15.02 12.52 15.00 12.16L15 12C14.99 11.58 15.09 11.16 15.28 10.79L15.35 10.67C15.48 10.43 15.67 10.24 15.91 10.11C16.10 10.00 16.32 9.97 16.54 10.02L16.62 10.05C16.81 10.12 16.98 10.24 17.11 10.39L17.19 10.49L17.26 10.57C17.43 10.74 17.66 10.85 17.91 10.87C18.15 10.89 18.40 10.81 18.59 10.66C18.79 10.51 18.92 10.29 18.96 10.05C19.01 9.80 18.96 9.55 18.83 9.34L18.77 9.26L18.60 9.05C18.24 8.65 17.79 8.35 17.29 8.16L17.03 8.08C16.34 7.91 15.60 8.00 14.97 8.34Z", fill:"white"}}]}}; wHd=function(Z){Z.K4=!1;var I=Z.uY,d=I!==void 0?I.JQ:Z.producers;if(d!==void 0){if($X(Z)){do d=bXl(d);while(d!==void 0)}I!==void 0?I.JQ=void 0:Z.producers=void 0}}; xC=function(Z){$w.call(this,Z);var I=this;this.j=this.L=this.D=0;this.X=null;this.V=this.N=0;this.isEnded=!1;this.In=null;var d=new g.De(Z);g.z(this,d);this.Bj=g.Q4(this.api.C().experiments,"web_player_default_peeking_px");this.j7=this.api.Y("delhi_modern_player_enable_pause_peeking");this.mJ=g.Q4(this.api.C().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.w4=this.api.Y("web_player_imax_theater_mode");this.Z=this.api.Y("web_player_enable_fullscreen_grid_components");this.fS=this.api.Y("web_player_enable_more_videos_button"); g.xw(this.api.getRootNode(),"ytp-grid-scrollable");d.W(Z,"fullscreentoggled",function(){Pm(I)}); d.W(Z,"videodatachange",function(){if(I.Z){var Y=I.api.getVideoData(1);I.videoData!==Y&&I.D===2&&(g.KF(I.api.getRootNode(),"ytp-grid-scrolling"),uF(I,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));I.videoData=Y}},this); d.W(Z,"sizestylechange",function(){I.Z&&Pm(I)}); pF(this.api,"setFullscreenQuickActions",function(Y){I.setFullscreenQuickActions(Y)}); pF(this.api,"setPlayerOverlayVideoDetailsRenderer",function(Y){I.setPlayerOverlayVideoDetailsRenderer(Y)}); this.Z&&Vcr(this,d,Z)}; NY9=function(Z){Z.Fm&&Z.Fm.bT()&&Z.Ea()}; hI=function(){g.p.apply(this,arguments);this.uQm=new Map}; Wb=function(Z){this.S=Z}; Ffd=function(Z){Z.L||(Z.L=!0,Z.api.logVisibility(Z.element,!0))}; Q0=function(Z,I,d,Y){g.t6(Xd9)(void 0,Z,I,d,Y,void 0)}; sTB=function(Z){var I=I===void 0?!1:I;Z.mediaElement&&(Z.Fm?(Xh(Z),Z.CZ(),d6D(Z,I)):(Z.videoData.on&&Z.videoData.on.E2(),Z.mediaElement.stopVideo()),Z.playVideo())}; AJ=function(){Ok.apply(this,arguments)}; aH=function(Z,I,d){d=d===void 0?!1:d;var Y=Z.B();if(Y){for(;Z.N4&&Z.Bj.shift()}; Wm=function(Z,I){var d=I||Z.dV,Y=Z.L.Vt({cpn:d});if(Y){I=Y.videoData;var T,f;d=Y.a6||((f=(T=Z.D.get(d))==null?void 0:T.start)!=null?f:0)/1E3;Z=Z.playback.getCurrentTime()-d;I.Gv=Z>0?Z:0}else Z.oU().videoData.Gv=Z.playback.getCurrentTime()}; UU=function(Z){var I,d,Y;return((I=Z.playerResponse)==null?void 0:(d=I.playerConfig)==null?void 0:(Y=d.compositeVideoConfig)==null?void 0:Y.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; wyn=function(Z,I){var d,Y=Z.j;if(d=Id9(Y))d.startSecs+=Z.fS;return new e9(Y.C0,Z.fS,I?Y.t$:Z.LS,Y.ingestionTime,"sq/"+Y.C0,void 0,void 0,I,d)}; RG=function(Z){var I=[{K:"div",zm:["ytp-unmute-icon"],G:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"m 21.48,17.98 c 0,-1.77 -1.02,-3.29 -2.5,-4.03 v 2.21 l 2.45,2.45 c .03,-0.2 .05,-0.41 .05,-0.63 z m 2.5,0 c 0,.94 -0.2,1.82 -0.54,2.64 l 1.51,1.51 c .66,-1.24 1.03,-2.65 1.03,-4.15 0,-4.28 -2.99,-7.86 -7,-8.76 v 2.05 c 2.89,.86 5,3.54 5,6.71 z M 9.25,8.98 l -1.27,1.26 4.72,4.73 H 7.98 v 6 H 11.98 l 5,5 v -6.73 l 4.25,4.25 c -0.67,.52 -1.42,.93 -2.25,1.18 v 2.06 c 1.38,-0.31 2.63,-0.95 3.69,-1.81 l 2.04,2.05 1.27,-1.27 -9,-9 -7.72,-7.72 z m 7.72,.99 -2.09,2.08 2.09,2.09 V 9.98 z"}}]}]}, {K:"div",zm:["ytp-unmute-text"],Z1:"Tap to unmute"}];I.push({K:"div",zm:["ytp-unmute-box"],G:[]});g.GA.call(this,Z,{K:"button",zm:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],G:[{K:"div",T:"ytp-unmute-inner",G:I}]},100);this.L=this.clicked=!1;this.api=Z;this.api.createClientVe(this.element,this,51663);this.W(Z,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.W(Z,"presentingplayerstatechange",this.nw);this.listen("click",this.onClick,this);Z=Z.isMutedByMutedAutoplay()&& !g.Dh(this.api.C());this.o0(Z);Z&&Ffd(this);this.D=Z}; nN9=function(Z,I){AG(Z,I)||Jp(Z,"childPlaybackIsNotPresenting");return I.Mc===I.f_+I.durationMs?I.f_+Z.app.l5().getCurrentTime()*1E3:I.Mc}; RL=function(Z,I){return Z==I?!0:Z&&I?Z.top==I.top&&Z.right==I.right&&Z.bottom==I.bottom&&Z.left==I.left:!1}; CWi=function(Z){var I;(I=navigator.mediaCapabilities)!=null&&I.decodingInfo&&navigator.mediaCapabilities.decodingInfo({type:"media-source",video:{contentType:'video/mp4; codecs="av01.0.12M.08"',width:3840,height:2160,bitrate:32E6,framerate:60}}).then(function(d){d.smooth&&d.powerEfficient&&(Z.kS=2160)})}; QWa=function(Z,I,d,Y){d||(Y?I.keyCode!==32||I.repeat||Z.Z||!Z.N||g.Zy(Z.delay):r0(Z))}; Bm=function(Z,I,d){if(typeof Z==="string")return{videoId:Z,startSeconds:I,suggestedQuality:d};I={};d=g.t(hdr);for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,Z[Y]&&(I[Y]=Z[Y]);if(Z=Z.embedConfig||Z.embed_config)if(typeof Z==="string")I.embed_config=Z;else if(g.IB(Z))try{var T=JSON.stringify(Z);I.embed_config=T}catch(f){console.error("Invalid embedConfig JSON",f)}return I}; v5E=function(Z){if(!Z.api.C().eK){var I=Z.api.getVideoData(),d=new g.pr("Subscribe",null,"Subscribed",null,!0,!1,I.vl,I.subscribed,"channel_avatar",null,Z.api,!0);Z.api.createServerVe(d.element,Z);var Y;Z.api.setTrackingParams(d.element,((Y=I.subscribeButtonRenderer)==null?void 0:Y.trackingParams)||null);Z.W(d.element,"click",function(){Z.api.logClick(d.element)}); Z.subscribeButton=d;g.z(Z,Z.subscribeButton);Z.subscribeButton.i5(Z.B);Z.subscribeButton.hide();var T=new MiE(Z.api);Z.L=T;g.z(Z,T);T.i5(Z.B);T.hide();Z.W(Z.api,"SUBSCRIBE",function(){I.K0&&(T.show(),Z.api.logVisibility(T.element,!0))}); Z.W(Z.api,"UNSUBSCRIBE",function(){I.K0&&(T.hide(),Z.api.logVisibility(T.element,!1),mL9(T,!1))})}}; L89=function(Z,I,d,Y,T,f,P,O,a,W,e){return{adClientDataEntry:{slotData:Ccn(Z,{slotId:I,slotType:d,slotPhysicalPosition:Y,r4:T,slotEntryTrigger:f,slotFulfillmentTriggers:P,slotExpirationTriggers:O,clientMetadata:new D0([])}),layoutData:XG$(Z,{layoutId:a,layoutType:W,r4:e,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],h5:new Map,clientMetadata:new D0([]),Tb:{}})}}}; s7=function(Z,I){if(Z.N)if(Z.videoData.isLivePlayback&&Z.videoData.Z&&!Z.videoData.Z.L&&Z.mediaElement&&Z.mediaElement.f0()>0&&d5(Z.mediaElement)>0&&(Z.D=jx(Z,Z.D,!1)),I=Z.Y("html5_pseudogapless_shorts_seek_to_next_start")&&(I==null?void 0:I.seekSource)===60,!Z.mediaElement||!qvd(Z,I))Z.SK.start(750);else if(!isNaN(Z.D)&&isFinite(Z.D)&&(I=Z.Tm-(Z.D-Z.timestampOffset),!(I===0||Math.abs(I)<.005)))if(I=Z.mediaElement.getCurrentTime()-Z.D,Math.abs(I)<=Z.w4||Math.abs(I)<.005)ioa(Z);else{if(Z.videoData.iG)Z.videoData.iG= !1;else if(!ru(Z.videoData)&&Z.D>=Z.tZ()-.1){Z.D=Z.tZ();Z.N.resolve(Z.tZ());Z.U.Vy()&&Z.t5.D1("setEndedInSeek",{tgt:""+Z.D,maxst:""+Z.tZ()});Z.t5.hk();return}try{var d=Z.D-Z.timestampOffset;Z.mediaElement.seekTo(d);Z.LS.L=d;Z.Tm=d;Z.Z=Z.D;Z.kS=!1}catch(Y){}}}; w4=function(Z){return function(I){return qW$(Z,I)}}; BV$=function(Z,I,d){g.p.call(this);this.encryptedClientKey=I;this.j=d;this.D=new Uint8Array(Z.buffer,0,16);this.Z=new Uint8Array(Z.buffer,16)}; g.ay=function(Z,I,d){return g.Xn(Z,[I],{mode:"readwrite",OU:!0,commit:Xw()},function(Y){return g.ti(Y.objectStore(I),d)})}; g.$e=function(Z){return Z instanceof g.gR?Z.clone():new g.gR(Z)}; yc=function(Z,I,d){this.triggeringSlotId=I;this.triggerType="TRIGGER_TYPE_SLOT_ID_ENTERED";this.triggerId=d||Z(this.triggerType)}; V0=function(Z){var I={};if(!Z||!Z.thumbnails)return I;Z=Z.thumbnails.filter(function(O){return!!O.url}); Z.sort(function(O,a){return O.width-a.width||O.height-a.height}); for(var d=g.t(Object.keys(SvO)),Y=d.next();!Y.done;Y=d.next()){var T=Number(Y.value);Y=SvO[T];for(var f=g.t(Z),P=f.next();!P.done;P=f.next())if(P=P.value,P.width>=T){T=oV9(P.url);g.lB(T)&&(I[Y]=T);break}}(Z=Z.pop())&&Z.width>=1280&&(Z=oV9(Z.url),g.lB(Z)&&(I["maxresdefault.jpg"]=Z));return I}; YWd=function(Z){return g.Yw(Z.L,function(I){return I.info.video?I.info.video.projectionType==="EQUIRECTANGULAR":!1})}; NY=function(Z,I){var d=!1;if(Z.kJ){var Y=Z.kJ.element;Y.value=I;Y.select();try{d=document.execCommand("copy")}catch(T){}}d?Z.A5.zb():(Z.XU.setContent(I,"text"),g.Li(Z.A5,Z.x8),Tj(Z.XU.element),Z.kJ&&(Z.kJ=null,Mb$(Z)));return d}; A0=function(Z,I,d,Y){d=d===void 0?"":d;var T;return(T=pO(S4(Z,I,Y)))!=null?T:d}; olJ=function(Z,I){!I.info.L.FY()&&I.info.D===0&&(g.Me(I.info.L.info)||I.info.L.info.DR())&&OED(I);if(I.info.type===1)try{VeJ(Z,I),sQa(Z,I)}catch(T){g.nl(T);var d=XU(I.info);d.hms="1";Z.loader.handleError("fmt.unparseable",d||{},1)}d=I.info.L;d.TU(I);Z.V&&Xml(Z.V,I);if(d.SD()&&Z.policy.L)a:{Z=Z.loader.u5;I=I.info.clipId;d=g.eU(d.info,Z.Qy);if(I){var Y=W9({itag:d.itag,lmt:Z.Qy?0:d.lmt||0,xtags:d.xtags});if(Z.J5[Y])break a;Z.J5[Y]=I}Z.on.push(d)}}; g.fz=function(Z){var I=Z.data.getUint8(Z.dataOffset)?20:12;return Z.data.getUint32(Z.dataOffset+I)}; u0=function(Z){return Z.playerVars!==void 0&&Z.pings!==void 0&&Z.externalVideoId!==void 0}; Aja=function(Z){return{Un:I2(Z,1,dGl),trackType:wd(Z,2),zJ:wd(Z,3),timeRange:I2(Z,4,LaL)}}; kFJ=function(Z,I){return I$(Z)?I!==1&&I!==2&&I!==0?"AUTOPLAY_STATUS_UNAVAILABLE":Z.G7?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; mi=function(Z,I){if(UY(Z.L,I)){Fc(Z.L,I).j=!1;var d=np;I=Fc(Z.L,I);var Y=[].concat(g.c(I.X));foi(I.X);d(Z,Y)}}; g.Kv=function(Z,I,d,Y,T,f){I=I===void 0?null:I;var P={role:"menu"};I&&(P.id=I);I=new g.m7({K:"div",T:"ytp-panel-menu",J:P});kK.call(this,Z,I,d,Y,T,f);this.menuItems=I;this.items=[];g.z(this,this.menuItems)}; DLB=function(Z){if(!Z)return null;var I=Z.split("x");if(I.length!==2)return null;Z=Number(I[0]);I=Number(I[1]);return isNaN(Z)||isNaN(I)||Z*I<=0?null:new g.qv(Z,I)}; Tc=function(){if(!g.iN.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.iN.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.iN.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.iN.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.iN.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(Z){return"WEB_DISPLAY_MODE_UNKNOWN"}}; RdB=function(Z,I){if(I.length===0||Vk(Z))return null;Z.nS.B.Z&&(Jj9=!0);var d=Z.T_;var Y=Z.lengthSeconds,T=Z.isLivePlayback,f=Z.uu,P=Z.nS,O=dOu(I);if(T||f){P=P.experiments;Y=new r_("",P,!0);Y.D=!f;Y.Qy=!0;Y.isManifestless=!0;Y.isLive=!f;Y.uu=f;I=g.t(I);for(T=I.next();!T.done;T=I.next()){var a=T.value;T=F3(a,d);O=CF(22,a);O=gN(O.cZ||a.url||"",O.Fj,O.s);var W=O.get("id");W&&W.includes("%7E")&&(Y.LS=!0);var e=void 0;W=(e=P)==null?void 0:e.CS("html5_max_known_end_time_rebase");e=Number(a.targetDurationSec|| 5);a=Number(a.maxDvrDurationSec||14400);var B=Number(O.get("mindsq")||O.get("min_sq")||"0"),w=Number(O.get("maxdsq")||O.get("max_sq")||"0")||Infinity;Y.KN=Y.KN||B;Y.jo=Y.jo||w;var V=!SI(T.mimeType);O&&Xy(Y,new dF(O,T,{t$:e,Q8:V,o6:a,KN:B,jo:w,vN:300,uu:f,tU:W}))}d=Y}else if(O==="FORMAT_STREAM_TYPE_OTF"){Y=Y===void 0?0:Y;f=new r_("",P.experiments,!1);f.duration=Y||0;P=g.t(I);for(Y=P.next();!Y.done;Y=P.next())Y=Y.value,I=F3(Y,d,f.duration),T=CF(20,Y),(T=gN(T.cZ||Y.url||"",T.Fj,T.s))&&(I.streamType=== "FORMAT_STREAM_TYPE_OTF"?Xy(f,new ks(T,I,"sq/0")):Xy(f,new i8(T,I,T_(Y.initRange),T_(Y.indexRange))));f.isOtf=!0;d=f}else{Y=Y===void 0?0:Y;f=new r_("",P.experiments,!1);f.duration=Y||0;P=g.t(I);for(Y=P.next();!Y.done;Y=P.next())O=Y.value,Y=F3(O,d,f.duration),I=T_(O.initRange),T=T_(O.indexRange),W=CF(47,O),(O=gN(W.cZ||O.url||"",W.Fj,W.s))&&Xy(f,new i8(O,Y,I,T));d=f}f=Z.isLivePlayback&&!Z.uu&&!Z.Ns&&!Z.isPremiere;Z.Y("html5_live_head_playable")&&(!ru(Z)&&f&&Z.D1("missingLiveHeadPlayable",{}),Z.nS.LS=== "yt"&&(d.w4=!0));return d}; LfL=function(Z){if(Z.csn!==g.vv())if(Z.csn==="UNDEFINED_CSN")Z.csn=g.vv();else{var I=g.vv(),d=g.lg();if(I&&d){Z.csn=I;for(var Y=g.t(Z.elements),T=Y.next();!T.done;T=Y.next())(T=T.value.visualElement)&&T.isClientVe()&&I&&d&&(g.x9("combine_ve_grafts")?MO(gl(),T,d):g.t6(g.$5)(void 0,I,d,T))}if(I)for(Z=g.t(Z.L),d=Z.next();!d.done;d=Z.next())(d=d.value.visualElement)&&d.isClientVe()&&g.VS(I,d)}}; Fe=function(Z){var I={delay:qy(Z),stall:Z.V.eD()||0,byterate:eP(Z),init:Z.mJ},d=Z.N[0];d.stamp=Math.round(Z.j/36E5)*36E5;d.net=Math.ceil(Z.Bj);d.max=Z.interruptions[0]||0;I.interruptions=Z.N;return I}; MrE=function(Z,I,d){var Y=g.t(Z.index?SK(Z.logger,function(){return SsO(p9L(I),d)},"R"):["u"]),T=Y.next().value; Y=Y.next().value;Z.logger.ws(T);return Y}; UL9=function(){this.D=this.L=null}; b6O=function(Z,I){var d;a:if((d=I.L)&&d.videoInfos.length){for(var Y=g.t(d.videoInfos),T=Y.next();!T.done;T=Y.next()){T=T.value;var f=void 0;if((f=T.D)==null?0:f.smooth){d=T.video.qualityOrdinal;break a}}d=d.videoInfos[0].video.qualityOrdinal}else d=0;(g.y1("armv7")||g.y1("aarch64")||g.y1("android"))&&!g.RK(Z.U)&&RP(I.L.videoInfos[0])&&(d=Math.min(d,g.HS.large));Y=g.Q4(Z.U.experiments,"html5_chipset_soft_cap");Y>0&&(d=Math.min(d,Y));if(Y=g.Q4(Z.U.experiments,"html5_max_vertical_resolution")){T=4320; for(f=0;fY&&(T=Math.min(T,P.video.qualityOrdinal))}if(T<4320){for(P=f=0;P1?a[1]:""),W=a==="/pagead";a=W?!0:!1}a=!a}a||T&&I[f]!==void 0||Y==="TVHTML5_UNPLUGGED"&&O||(I[f]=P)}"X-Goog-EOM-Visitor-Id"in I&&"X-Goog-Visitor-Id"in I&&delete I["X-Goog-Visitor-Id"];if(d||!g.LM(Z))I["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(d||!g.LM(Z)){try{var e=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(B){}e&&(I["X-YouTube-Time-Zone"]=e)}document.location.hostname.endsWith("youtubeeducation.com")||!d&&g.LM(Z)||(I["X-YouTube-Ad-Signals"]= Ij(d8()));return I}; g.h=function(Z){return zmD(new arL(new W7$(Z)))}; e7=function(Z,I){if(aR(Z,I)){I=YA(Z);var d=rd(Z.L,Z.pos,I);Z.pos+=I;return d}}; Kq=function(Z,I,d){HX(Z.L,I*8+d)}; iX=function(Z){var I,d=Z.policy.B&&((I=Z.loader)==null?void 0:I.z1());I=Z.loader.getCurrentTime()||0;I=VYL(Z,I);if(Z.policy.Du&&Z.loader.isSeeking()){var Y=O0(Z.videoTrack,I);Z.loader.D1("asmtfnctv",{b:I,a:Y});isNaN(Y)||(I=Y)}Y=Z.loader.Fx()||0;I+=Y;Y=Db(Z.videoData)||g.IS(Z.videoData);var T=0;d?(Y&&(T=Number.MAX_SAFE_INTEGER),Z.videoData.Ns&&(T=Math.ceil(Z.videoData.fS*1E3))):T=Math.ceil(I*1E3);return Math.min(Number.MAX_SAFE_INTEGER,T)}; M9=function(Z,I){if(Z.policy.on&&Z.Fm){var d,Y,T=I?(d=Z.Fm)==null?void 0:d.L:(Y=Z.Fm)==null?void 0:Y.D;d=I?Z.audioTrack:Z.videoTrack;I=fM(d);if(I==null?0:I.isLocked){Z.t5.C().Vy()&&Z.D1("eosl",{unlock:I.info.m5()});var f;(f=d.j7)==null||f.stop();I.isLocked=!1;d.yZ(I);Brn(Z.L,I.info);T=T==null?void 0:T.qe();(T==null?void 0:T.m5())!==I.info.m5()&&Z.D1("oue",{bls:T==null?void 0:T.m5(),tls:I.info.m5()})}}}; u1D=function(Z,I){Z=Z.S.Y("delhi_modern_web_player_icons");switch(I){case 1:return Z?xj():KV();case 2:return Z?l5$():gWl();case 3:return Z?{K:"svg",J:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},G:[{K:"path",J:{d:"M11.29 2.92C14.85 1.33 18.87 1.06 22.61 2.15L22.96 2.26C26.56 3.40 29.67 5.74 31.75 8.89L31.95 9.19C33.90 12.28 34.77 15.93 34.42 19.56L34.38 19.93C34.04 22.79 32.96 25.51 31.25 27.83C29.53 30.14 27.23 31.97 24.59 33.12C21.95 34.27 19.05 34.71 16.18 34.40C13.32 34.08 10.59 33.02 8.26 31.32L7.97 31.10C4.87 28.73 2.71 25.33 1.88 21.52L3.34 21.20L4.81 20.88C5.49 24.00 7.25 26.77 9.79 28.72L10.27 29.07C12.19 30.40 14.41 31.22 16.74 31.44C19.06 31.65 21.40 31.27 23.53 30.31C25.66 29.35 27.50 27.86 28.88 25.98C30.26 24.10 31.13 21.89 31.40 19.58L31.46 18.98C31.68 16.00 30.90 13.03 29.25 10.54C27.60 8.05 25.17 6.18 22.34 5.22L21.77 5.04C19.02 4.23 16.08 4.33 13.38 5.31C10.68 6.29 8.37 8.11 6.77 10.5H10.5L10.65 10.50C11.03 10.54 11.38 10.73 11.63 11.02C11.88 11.31 12.01 11.69 11.99 12.07C11.97 12.46 11.81 12.82 11.53 13.08C11.25 13.35 10.88 13.49 10.5 13.5H1.5V4.5L1.50 4.34C1.54 3.97 1.71 3.63 1.99 3.38C2.27 3.13 2.62 3.00 3 3.00C3.37 3.00 3.72 3.13 4.00 3.38C4.28 3.63 4.45 3.97 4.49 4.34L4.5 4.5V8.51C6.21 6.07 8.56 4.13 11.29 2.92ZM24 18L15 12.75V23.25L24 18ZM3.02 19.73C2.63 19.82 2.29 20.05 2.08 20.39C1.86 20.72 1.79 21.13 1.88 21.52L4.81 20.88C4.77 20.69 4.69 20.50 4.57 20.34C4.46 20.18 4.32 20.04 4.15 19.94C3.99 19.83 3.80 19.76 3.61 19.72C3.41 19.69 3.21 19.69 3.02 19.73Z", fill:"white"}}]}:g.wo();case 4:return Z?r3O():RSd();default:return null}}; FV=function(Z,I,d){g.p.call(this);this.S=Z;this.Ms=I;this.Q5=d;this.listeners=[];this.N=!1;this.N1=[];this.L=null;this.B=new sW(this,bki(I.get()));this.Z=new Grr;this.D=null}; g.$Ri=function(Z){var I=I===void 0?{}:I;var d=d===void 0?"":d;var Y=Y===void 0?window:Y;Z=g.gq(Z,I);Cu(Z);d=g.mQ(Z+d);Y=Y.location;d=cE(d);d!==void 0&&(Y.href=d)}; wB=function(Z){return(0,g.o8)()-Z.j>=4E3}; zd$=function(Z,I){var d=sk(Z.loader)&&I&&I.M1!==void 0&&!I.f9?I.M1*1E3+(Z.loader.Fx()||0):iX(Z);if(Z.policy.Wb){var Y=Z.Bj;var T=Z.fS}else Y=Pj(Z,Z.audioTrack),T=Pj(Z,Z.videoTrack);var f=[].concat(g.c(Y.N8),g.c(T.N8));Ti(Z)&&f.push.apply(f,g.c(Z.B));var P=[].concat(g.c(Y.sF),g.c(T.sF)),O=Z.loader.lN();if(Z.policy.VX&&!Z.videoData.isLivePlayback){var a=Z.videoData.lengthSeconds*1E3;d>=a&&Z.loader.D1("invalidSabrCmt",{cmt:d,vd:a})}var W,e;a=Z.Bk;var B=Z.t5,w=Z.u5,V=Z.D,N=Z.videoData.d4,q=Z.policy,A= Z.loader.TW,F=mUJ(Z.loader)*1E3,J=(W=Z.mJ)==null?void 0:W.Sh;W=(e=Z.mJ)==null?void 0:e.rH;var v;e=Number((v=Z.Z.N)==null?void 0:v.info.itag)||0;var l;v=Number((l=Z.Z.B)==null?void 0:l.info.itag)||0;l=Z.PK;var X=Z.t5.l9();var H=(I==null?0:I.EF)?I.EF:Z.loader.isSuspended?4:void 0;d={Bk:a,t5:B,u5:w,N8:f,sF:P,CB:d,nextRequestPolicy:V,Pi:N,bu:q,Td:A,dW:F,Sh:J,rH:W,PK:l,msj:e,iS5:v,mX:O,YV:X,EF:H};f=Z.loader.EY();P=rA(f);f&&(d.H8=P);if(I=sk(Z.loader)&&(I==null?0:I.f9)?I.M1:Z.t5.yV())d.EK=I*1E3;var x;I= Z.Z;f=I.LS;if(((x=I.bu)==null?0:AF(x))&&!f)for(x=g.t(I.Z),P=x.next();!P.done;P=x.next())if(P.value.uo){f=!0;break}x=AF(I.bu)&&!f?[]:JQr(I,I.Z);d.BV=x;x=Z.Z;AF(x.bu)&&!x.kS?x=[]:(I=G7$(x),I.length===0&&(I=x.j),x=JQr(x,I));d.ix=x;d.fm=Ti(Z)?[Z.j]:void 0;Z.policy.bZ&&(d.dL=v2d(Z.loader,Z.audioTrack),d.JN=v2d(Z.loader,Z.videoTrack));if(Z.policy.D){x=Z.loader.getCurrentTime();Y=Ea(Z,Y.N8,x);T=Ea(Z,T.N8,x);T=Math.min(Y,T);Ti(Z)&&(Y=Ea(Z,Z.B,x),Z.t5.Vy()&&Y0&&Z.L[0].Dw()&&(d.Y3=Z.L[0].kY());return d}; eK=function(Z,I){Z.api.getPresentingPlayerType()!==1?Z.y5.style.removeProperty("clip-path"):(I||(I=W7(Z,Z.LS,Tx(Z))),Z.y5.style.clipPath='path("'+(Z.u8?k7D(Z,8,I,Z.B?50:36,0,6):k7D(Z,4,I,Z.B?34:24,2,3))+'")')}; kbl=function(Z){return{eg:wd(Z,1),bl:wd(Z,2),minReadaheadMs:wd(Z,3)}}; XHJ=function(Z,I,d){d=d===void 0?{}:d;return kIl(Z,I,!1,d)}; B_d=function(Z){Z=g.t(Z);for(var I=Z.next();!I.done;I=Z.next())if(I=I.value,I.itag&&tci.has(I.itag))return!0;return!1}; RFa=function(Z,I){var d=[],Y=Z3(I.type,"auto",I.itag);d.push(new $H(Y,I.url));return ae(Z.B,d,!1,!0)}; Oe=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ad-simple-attributed-string"},"ad-simple-attributed-string",I,d,Y);this.hide()}; NGJ=function(Z,I,d){d=d===void 0?"":d;g.p.call(this);this.message=Z;this.requestNumber=I;this.timer=d;this.onError=this.onSuccess=null;this.L=new g.i_(5E3,2E4,.2)}; ltB=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"m 12,12 h 2 v 12 h -2 z m 3.5,6 8.5,6 V 12 z"}}]}}; g.aC=function(Z){if(!Z.L||!Z.D||!Z.N)return!1;var I=Z.L.L,d=!!I[Z.D.id]&&U1(4,I[Z.D.id].MC.L);I=!!I[Z.N.id]&&U1(3,I[Z.N.id].MC.L);return(Z.D.itag==="0"||d)&&I}; g.mv=function(){g.p.call(this);this.Sd=new Iz(this);this.aR=this;this.ez=null}; TI=function(Z,I){var d;if((d=Gw)==null?0:d.encodeInto)return I=Gw.encodeInto(Z,I),I.read>6|192:((T&64512)===55296&&Y+1>18|240,I[d++]=T>>12&63|128):I[d++]=T>>12|224,I[d++]=T>>6&63|128),I[d++]=T&63|128)}return d}; $Ld=function(Z,I,d){var Y=g.NC(Z.provider);GUr(Z,Y,I,0,d);FA(Z,Y);m7d(Z)}; pHD=function(Z,I){var d=W9(g.eU(I.L.info,Z.u5.Qy)),Y,T=((Y=Z.Ns)==null?void 0:Y.gw(d))||[];if(T.length===0)return Z.D1("ombmsi",{}),!1;T=new SC(T);if(Y=!Z.policy.kS||isFinite(Z.getCurrentTime())||Z.t5.yV()){a:{Y=Z.getCurrentTime();T=g.t(T.e7);for(var f=T.next();!f.done;f=T.next())if(f=f.value,f.type===3&&Y>=f.B&&Y<=f.j){Y=!0;break a}Y=!1}Y=!Y}if(Y)return Z.D1("ostmf",{ct:Z.getCurrentTime(),a:I.L.info.iT()}),!1;(Z=Z.Ns)!=null&&(Z.lQ.get(d).WZ=!0);return!0}; g.wN=function(Z,I){var d=g.X9();I!==d[Z]&&(I!==0?d[Z]=I:delete d[Z],g.vou(d))}; Kfa=function(Z,I,d,Y){d=d===void 0?800:d;Y=Y===void 0?600:Y;if(Z=g.T4(window,Z,"loginPopup","width="+d+",height="+Y+",resizable=yes,scrollbars=yes"))xLl(function(){I()}),Z.moveTo((screen.width-d)/2,(screen.height-Y)/2)}; C6$=function(Z){return Z.S.C().experiments.CS("html5_ssdai_enable_media_end_cue_range")}; ENL=function(Z,I,d){var Y;J1(Z.Q5.get(),"ads_qua","cpn."+dB(Z.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((Y=V1(Z.V5.get(),2))==null?void 0:Y.clientPlaybackNonce)+";qt."+I+";clr."+d)}; I2=function(Z,I,d){if(Z=e7(Z,I))return d(new WG(new OA([Z])))}; g.Tv=function(){this.count=0;this.L=1;this.D=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}; tUn=function(Z,I){var d;return!((d=Z.X)==null||!d.B.has(I))||s_9(Z.N,I)}; Cpa=function(Z){Z.fS=0;Z.Yl=0;Z.Hk=0}; cjL=function(Z){Z.loading=!0;Z.DM=!1;if(Nyr(Z))g.b4l(Z.videoId).then(function(Y){var T;if((T=Z.playerResponse)!=null&&T.streamingData){T=[];Y=g.t(Y);for(var f=Y.next();!f.done;f=Y.next())f=Object.assign({},f.value),f.signatureCipher="",T.push(f);T.length<2&&Z.D1("offmlf",{len:T.length});T=RdB(Z,T);Nv(Z)&&fxn(T,!1);H4l(Z,T);Z.D1("dlr",{})}else Z.D1("offsdm",{cotn:Z.qb?Z.qb.cotn:"0",cpn:Z.clientPlaybackNonce})}).then(function(){Z.K$()}); else{Gj(Z.EU)||g.uL(new g.Wj("DASH MPD Origin invalid: ",Z.EU));var I=Z.EU,d=g.Q4(Z.nS.experiments,"dash_manifest_version")||4;I=g.gq(I,{mpd_version:d});Z.isLowLatencyLiveStream&&Z.latencyClass!=="NORMAL"||(I=g.gq(I,{pacing:0}));Kzd(I,Z.nS.experiments,Z.isLivePlayback).then(function(Y){Z.OZ()||(H4l(Z,Y,!0),O7("mrc",void 0,Z.LS),Z.K$())},function(Y){Z.OZ()||(Z.loading=!1,Z.publish("dataloaderror",new g.dj("manifest.net.retryexhausted",{backend:"manifest", rc:Y.status},1)))}); O7("mrs",void 0,Z.LS)}}; nUJ=function(Z){EY=Z}; WBu=function(Z,I,d){I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next()){Y=Y.value;var T=void 0,f=Number((T=Y.playbackRelativePosition)==null?void 0:T.utcTimeMs)/1E3,P=void 0;T=f+Number((P=Y.duration)==null?void 0:P.seconds);P="stations:"+d+":"+f;Z.D.has(P)||(Z.D.add(P),Y.onEnter&&(Z.L[P]=Y.onEnter),Z.api.addUtcCueRange(P,f,T,d,!1))}}; CmE=function(Z){return Z.scrollingElement?Z.scrollingElement:g.Vd||Z.compatMode!="CSS1Compat"?Z.body||Z.documentElement:Z.documentElement}; af=function(Z,I,d){this.buffer=Z;if(d&&!I)throw Error();this.L=I}; gND=function(Z){var I=Z.api.getPlayerSize();return g.Dh(Z.api.C())&&I.width>=524}; nC=function(Z,I,d,Y){kw.call(this,Z,{K:"div",T:"ytp-ad-details-line"},"ad-details-line",I,d,Y);this.L=[];this.hide()}; TZu=function(Z){for(var I=Z.D.pop(),d=Z.D.pop(),Y=Z.pos-d-I;I--;){var T=I?128:0;Z.view.setUint8(d++,Y&127|T);Y>>=7}}; l1=function(Z,I){this.data=Z;this.uri=I||"http://youtube.com/streaming/metadata/segment/102015";this.C0=Lr(this,"Sequence-Number");this.N=Lr(this,"Segment-Count");this.B=this.data["Segment-Durations-Ms"]||"";this.ingestionTime=Lr(this,"Ingestion-Walltime-Us")/1E6;this.L=(Lr(this,"First-Frame-Time-Us")+Lr(this,"First-Frame-Uncertainty-Us"))/1E6;this.t$=Lr(this,"Target-Duration-Us")/1E6;this.RL=this.data["Stream-Finished"]==="T";this.Z=this.data.Streamable==="T";this.cryptoPeriodIndex=Lr(this,"Crypto-Period-Index"); this.D=Lr(this,"Crypto-Period-Seconds")}; IO=function(Z){return Z.Pj==="1"||Z.Pj==="1h"||Kx&&Z.Pj==="1e"}; lf9=function(Z){var I=Z.t5.Ci()||{};I.fs=Z.t5.mz();I.volume=Z.t5.getVolume();I.muted=Z.t5.isMuted()?1:0;I.mos=I.muted;I.clipid=Z.t5.Ad();var d;I.playerheight=((d=Z.t5.getPlayerSize())==null?void 0:d.height)||0;var Y;I.playerwidth=((Y=Z.t5.getPlayerSize())==null?void 0:Y.width)||0;Z=Z.videoData;d={};Z.D&&(d.fmt=Z.D.itag,Z.N&&(Z.sU?Z.N.itag!==Z.D.itag:Z.N.itag!=Z.D.itag)&&(d.afmt=Z.N.itag));d.ei=Z.eventId;d.list=Z.playlistId;d.cpn=Z.clientPlaybackNonce;Z.videoId&&(d.v=Z.videoId);Z.IF&&(d.infringe=1); (Z.Wb?0:Z.gB)&&(d.splay=1);(Y=e$(Z))&&(d.live=Y);Z.yX&&(d.sautoplay=1);Z.t_&&(d.autoplay=1);Z.fD&&(d.sdetail=Z.fD);Z.partnerId&&(d.partnerid=Z.partnerId);Z.osid&&(d.osid=Z.osid);Z.NR&&(d.cc=g.Mcd(Z.NR));return Object.assign(I,d)}; Kuu=function(Z){var I;if(!(I=OC&&Z.Qy()&&Z.pF()&&(Z.drmProduct==="1"?!1:!0)&&Z.Y("html5_sabr_live_drm_streaming_xhr"))){I=Z.Qy()&&!Z.pF()&&OC;var d=Z.Qy()&&Z.latencyClass!=="ULTRALOW"&&!Z.isLowLatencyLiveStream&&Z.Y("html5_sabr_live_normal_latency_streaming_xhr"),Y=Z.isLowLatencyLiveStream&&Z.Y("html5_sabr_live_low_latency_streaming_xhr"),T=Z.latencyClass==="ULTRALOW"&&Z.Y("html5_sabr_live_ultra_low_latency_streaming_xhr");I=I&&(d||Y||T)}d=I;I=Z.enableServerStitchedDai&&d&&Z.Y("html5_enable_sabr_ssdai_streaming_xhr"); d=!Z.enableServerStitchedDai&&d;Y=Z.Qy()&&!OC&&Z.Y("html5_enable_sabr_live_non_streaming_xhr");Z=OC&&(Z.YF()||AB(Z)&&Z.Y("html5_enable_sabr_for_lifa_eligible_streams"));return I||d||Y||Z}; hM=function(Z,I,d){d=d===void 0?!1:d;var Y,T,f,P;g.h(function(O){if(O.L==1){Y=Z.C();if(d&&(!g.Mw(Y)||l3(I)!=="embedded")||I.S9||l3(I)!=="adunit"&&(g.RK(Y)||vU(Y)||g.vl(Y)||g.B8(Y)||g.$D(Y)||ed(Y)==="WEB_CREATOR"))return O.return();T=g.NF(Y,g.VO(I));return T.L?g.m(O,T.L,3):(f=T.getValue(),O.xS(2))}O.L!=2&&(f=O.D);P=f;return O.return(Yvl(Z,I,P))})}; Xd9=function(Z,I,d,Y,T){teO(d,I);Y=Y||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var f=ug({cttAuthInfo:GY(I)||void 0},I);d={csn:I,ve:d.getAsJson(),gestureType:Y};T&&(d.clientData=T);I==="UNDEFINED_CSN"?XW("visualElementGestured",f,d):Z?TG("visualElementGestured",d,Z,f):g.g6("visualElementGestured",d,f)}; fWa=function(Z,I){for(var d=g.t(Object.keys(Z)),Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var T=Z[Y][0];if(!T.width&&T.T_===I.T_&&!T.audioChannels)return Y}return""}; jl=function(Z,I,d){this.triggeringLayoutId=I;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=d||Z(this.triggerType)}; pn=function(Z,I,d){g.p.call(this);this.loader=Z;this.policy=I;this.Bk=d;this.D=0;this.L=!1;this.delay=new g.uX(this.Z,this.policy.WS,this);g.z(this,this.delay)}; CiB=function(Z,I){var d,Y,T,f;return g.h(function(P){if(P.L==1)return g.ez(P,2),d=dLi(I),Y={context:g.tR(Z),playerRequest:{videoId:Z.videoId},disablePlayerResponse:!0},T=g.R$(rju),g.m(P,g.L9(d,Y,T),4);if(P.L!=2)return f=P.D,!f||"error"in f&&f.error||g.eA(Z,{raw_reel_item_watch_response:f}),g.gE(P,0);g.Bj(P);g.v6(P)})}; ZT$=function(Z){return{tN:wd(Z,3),Sr:wd(Z,4),LY:wd(Z,5),qVj:v2(Z,8),e$5:wd(Z,10),w$:wd(Z,12),WG:wd(Z,13),BG:wd(Z,14),fz:wd(Z,15),ul:wd(Z,16)}}; NG=function(Z,I,d){Z.S.Y("delhi_modern_web_player")?I.i5(Z.Z.KS(VC[d])):I.i5(Z.Z.element)}; s3=function(Z){var I=null;I={K:"button",zm:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],J:{title:"close"},Z1:"[X]"};g.k.call(this,{K:"div",zm:["html5-video-info-panel","ytp-sfn"],G:[I,{K:"div",zm:["html5-video-info-panel-content","ytp-sfn-content"],G:[{K:"div",G:[{K:"div",Z1:"Video ID / sCPN"},{K:"span",Z1:"{{video_id_and_cpn}}",T:"ytp-sfn-cpn"}]},{K:"div",G:[{K:"div",Z1:"Viewport / Frames"},{K:"span",Z1:"{{dims_and_frames}}"}]},{K:"div",G:[{K:"div",Z1:"Current / Optimal Res"},{K:"span", Z1:"{{resolution}}"}]},{K:"div",G:[{K:"div",Z1:"Volume / Normalized"},{K:"span",Z1:"{{volume}}"}]},{K:"div",G:[{K:"div",Z1:"Codecs"},{K:"span",Z1:"{{codecs}}"}]},{K:"div",J:{style:"{{shader_info_style}}"},G:[{K:"div",Z1:"Shader Info"},{K:"span",Z1:"{{shader_info}}"}]},{K:"div",J:{style:"{{color_style}}"},G:[{K:"div",Z1:"Color"},{K:"span",Z1:"{{color}}"}]},{K:"div",J:{style:"{{drm_style}}"},G:[{K:"div",Z1:"Protected"},{K:"span",Z1:"{{drm}}"}]},{K:"div",J:{style:"{{bandwidth_style}}"},G:[{K:"div",Z1:"Connection Speed"}, {K:"span",G:[{K:"span",Z1:"{{bandwidth_chart}}"},{K:"span",Z1:"{{bandwidth_kbps}}"}]}]},{K:"div",J:{style:"{{network_activity_style}}"},G:[{K:"div",Z1:"Network Activity"},{K:"span",G:[{K:"span",Z1:"{{network_activity_chart}}"},{K:"span",Z1:"{{network_activity_bytes}}"}]}]},{K:"div",G:[{K:"div",Z1:"Buffer Health"},{K:"span",G:[{K:"span",Z1:"{{buffer_health_chart}}"},{K:"span",Z1:"{{buffer_health_seconds}}"}]}]},{K:"div",J:{style:"{{live_latency_style}}"},G:[{K:"div",Z1:"Live Latency"},{K:"span",G:[{K:"span", Z1:"{{live_latency_chart}}"},{K:"span",Z1:"{{live_latency_secs}}"}]}]},{K:"div",J:{style:"{{live_mode_style}}"},G:[{K:"div",Z1:"Live Mode"},{K:"span",Z1:"{{live_mode}}"}]},{K:"div",J:{style:"{{playback_categories_style}}"},G:[{K:"div",Z1:"Playback Categories"},{K:"span",Z1:"{{playback_categories}}"}]},{K:"div",J:{style:"{{fmt_debug_info_style}}"},G:[{K:"div",Z1:"Format Debug Info"},{K:"span",Z1:"{{fmt_debug_info}}"}]},{K:"div",G:[{K:"div",Z1:"Mystery Text"},{K:"span",Z1:"{{debug_info}}"}]},{K:"div", J:{style:"{{extra_debug_info_style}}"},G:[{K:"div",Z1:""},{K:"span",G:[{K:"span",Z1:"{{extra_debug_info}}"}]}]},{K:"div",G:[{K:"div",Z1:"Date"},{K:"span",Z1:"{{date}}"}]},{K:"div",J:{style:"{{cotn_and_local_media_style}}"},G:[{K:"div",Z1:"COTN / Local Media"},{K:"span",Z1:"{{cotn_and_local_media}}"}]},{K:"div",J:{style:"{{release_style}}"},G:[{K:"div",Z1:"Player Release"},{K:"span",Z1:"{{release_name}}"}]}]}]});this.Wj=Z;this.position=0;this.B=!0;I?this.W(this.KS("ytp-sfn-close"),"click",this.hide): this.W(this.element,"click",this.hide);Z=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];I="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var d=Z.map(function(Y){return Y/4}); this.V={};this.L=new V7(300,1,150,Z,I);g.z(this,this.L);this.updateValue("bandwidth_chart",this.L);this.Z=new V7(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.z(this,this.Z);this.updateValue("live_latency_chart",this.Z);this.D=new V7(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.z(this,this.D);this.updateValue("buffer_health_chart",this.D);this.j=new V7(300,1,150,d,I);g.z(this,this.j);this.updateValue("network_activity_chart", this.j);this.delay=new g.uX(this.qs,500,this);g.z(this,this.delay);this.N=new g.uX(this.X,2E4,this);g.z(this,this.N)}; dsu=function(Z){var I=new IOJ(function(d,Y,T,f){return new Je(Z.L.WO,d,Y,T,f,Z.L.Ms)},new Set(F6n(Z.L.WO).concat(Z.L.listeners)),Z.L.Wk,Z.L.Ms); g.z(Z,I);return I}; Mx7=function(Z){var I=d9();Z=I?I.createScript(Z):Z;return new Hi(Z)}; oqr=function(Z){if(Z.L){var I=Z.L;I.L={};I.R7={}}Z.Z=!1;Z.B=void 0;Z.D=NaN}; jsO=function(){var Z=g.vj.apply(0,arguments);return function(I){return function(d,Y){function T(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} d=I(d,Y);var f={getState:d.getState,dispatch:function(P){return T.apply(null,[P].concat(g.c(g.vj.apply(1,arguments))))}}; Y=Z.map(function(P){return P(f)}); T=YPa.apply(null,g.c(Y))(d.dispatch);return Object.assign({},d,{dispatch:T})}}}; Jd=function(Z){this.value=Z}; l$=function(){return iy||fL?!!QD&&QD.brands.length>0:!1}; Tsl=function(Z,I,d){d=d.opt_configurable_tracking_events;Z.L!=null&&Array.isArray(d)&&OLl(Z,d,I)}; $L=function(Z){return g.t6(function(){return H6("_start",Z)})()}; P2l=function(Z){var I=[];if(Z.L.reason==="m"||Z.L.reason==="s")return I;if(Dmd(Z.u5)){for(var d=Math.max(0,Z.X-2);d0&&d<2160&&(B9()||Y.Y("html5_format_hybridization"))&&(V.L.supportsChangeType=+B9(),V.WB= d);d>=2160&&(V.Bj=!0);SIO()&&!Y.Y("disable_av1_setting")&&(V.L.serveVp9OverAv1IfHigherRes=0,V.Tv=!1);V.kN=I;V.Tm=g.sY||g2u()&&!I?!1:!0;V.X=Y.Y("html5_format_hybridization");V.UZ=Y.Y("html5_disable_encrypted_vp9_live_non_2k_4k");V.I0=w;j2(Z)&&(V.EU=Z.Y("html5_prefer_language_over_codec"));Bq()&&Z.playerResponse&&Z.playerResponse.playerConfig&&Z.playerResponse.playerConfig.webPlayerConfig&&Z.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(V.N=!0,V.B=!0);Z.V&&Z.isAd()&&(Z.Z6&& (V.In=Z.Z6),Z.kA&&(V.Z=Z.kA));Z.Zt()&&(V.Ns=g.Q4(Z.nS.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));V.mJ=Z.isLivePlayback&&Z.pF()&&Z.nS.Y("html5_drm_live_audio_51");V.b5=Z.f2;V.SK=!j2(Z);return Z.wz=V}; aOr=function(Z){var I=Z.getVideoData().IF,d=Z.U.d4,Y=Z.isInline()&&!Z.getVideoData().Ip,T=Z.mediaElement;I||d||Y?T.v4():(T.kq(),oH(Z,Z.p6))}; yUB=function(Z,I,d,Y,T,f,P,O,a){Y.every(function(e){return TS(e,[],["LAYOUT_TYPE_MEDIA"])})||Zv("Unexpect subLayout type for DAI composite layout"); I=zi(Z.D.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",I);var W={layoutId:I,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",r4:"core"};return{layoutId:I,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",h5:new Map,layoutExitNormalTriggers:[new GQ(Z.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new LS(d),new tT(O),new Ue(Y),new Xj(T),new J6(f),new Dx({}),new Ck(a)]),Tb:P(W)}}; qln=function(Z){return-((Z.B.offsetWidth||(Z.frameCount-1)*Z.j*Z.scale)-Z.L/2)}; QcB=function(Z,I){return isNaN(I)?!0:isNaN(Z.L)?!1:I.02;if((f===O||f>O&&f>Z.on)&&a){Y=Math.max(.95,Math.min(1.05,(d-(P-T))/d));if(g.Me(I.info.L.info))$Va(g.j1(I),Y);else if(I.info.L.info.DR()&&(f=T-P,!g.Me(I.info.L.info)&&(I.info.L.info.DR(),Y=new Kt(g.j1(I)),O=I.B?Y:new Kt(new DataView(I.info.L.L.buffer)),Ol(I,!0)))){var W= f*1E3,e=a7(O);O=Y.pos;Y.pos=0;if(Y.L.getUint8(Y.pos)===160||WM(Y))if(e1(Y,160))if(F2(Y,!0),e1(Y,155)){if(f=Y.pos,a=F2(Y,!0),Y.pos=f,W=W*1E9/e,e=BM(Y),W=e+Math.max(-e*.7,Math.min(e,W)),W=Math.sign(W)*Math.floor(Math.abs(W)),!(Math.ceil(Math.log(W)/Math.log(2)/8)>a)){Y.pos=f+1;for(f=a-1;f>=0;f--)Y.L.setUint8(Y.pos+f,W&255),W>>>=8;Y.pos=O}}else Y.pos=O;else Y.pos=O;else Y.pos=O}Y=Ol(I,Z.policy.M8);Y=d-Y}Y&&I.info.L.info.DR()&&Z.loader.D1("webmDurationAdjustment",{durationAdjustment:Y,videoDrift:T+Y, audioDrift:P})}return Y}; afl=function(Z,I){function d(f){return Y.LS!=="yt"&&(T.partnerId===38&&Y.playerStyle==="books"||T.partnerId===30&&Y.playerStyle==="docs"||T.partnerId===33&&Y.playerStyle==="google-live")?msO(Z,T,f):bYD(Z,T).then(function(){Y.Y("embeds_enable_shorts")&&Z.C().GR&&T.isEmbedsShortsMode(new g.qv(0,0),!!T.playlistId)?Ey9(Z,T):hM(Z,T)},function(P){hM(Z,T,!0); throw P;})} I=I===void 0?Z.C().schedule:I;var Y=Z.C(),T=Z.getVideoData();T.OZ();T.loading=!0;return djD(Z)?oc$(Z,T,I).then(function(){hM(Z,T)},function(f){f=w2(f); if(VY(f.severity))return hM(Z,T,!0),Promise.reject(f);f.errorCode==="onesie.response.badproxystatus"&&""+f.details.st==="3"&&(Iji=!0);Z.handleError(f);return d("onesie")}):d("gvi")}; AM=function(Z){kM(Z);Z.ZR=null;var I=qPE(Z.U,Z.videoData,Z.z9());Z.u$=I;Z.u$.then(function(d){Hru(Z,d)},function(d){Z.OZ()||(d=w2(d),Z.visibility.isBackground()?(PF(Z,"vp_none_avail"),Z.u$=null,Z.wE.reset()):(Z.wE.finished=!0,Z.pj(d.errorCode,d.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",VQ(d.details))))}); return I}; SPa=function(Z,I){g.x9("use_event_time_ms_header")&&RC(Z)&&(I.headers||(I.headers={}),I.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.o8)())));return I}; DCn=function(Z,I){Z.D.style.setProperty("--yt-slider-shape-gradient-percent",(I-Z.N)/(Z.B-Z.N)*100+"%")}; Yb9=function(){if(g.x9("embeds_web_enable_cookie_detection_fix")){if(!g.iN.navigator.cookieEnabled)return!1}else if(!t8.isEnabled())return!1;if(!t8.isEmpty())return!0;g.x9("embeds_web_enable_cookie_detection_fix")?t8.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):t8.set("TESTCOOKIESENABLED","1",{maxAge:60});if(t8.get("TESTCOOKIESENABLED")!=="1")return!1;t8.remove("TESTCOOKIESENABLED");return!0}; AP9=function(){this.N=[];this.L=null;this.D={};this.Z={}}; g.By=function(Z){return Z==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||Z==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; eD=function(Z,I,d){try{if(Z){if(!I.top)return new Ui(-12245933,-12245933,-12245933,-12245933);I=I.top}var Y=KKl(Z,I,d),T=Y.height,f=Y.width;if(f===-12245933)return new Ui(f,f,f,f);var P=L2(I.document);var O=wPr(P.L);var a=O.x,W=O.y;return new Ui(W,a+f,W+T,a)}catch(e){return new Ui(-12245933,-12245933,-12245933,-12245933)}}; Dsu=function(Z,I){var d=0;Z.N.has(I)&&(d=Z.N.get(I).n1);Z.N.set(I,{n1:d+1,mu:Math.pow(2,d+1)});Z.D=!0}; y2=function(Z,I){this.topic=Z;this.L=I}; uTi=function(Z,I){var d;return(d=Z.layoutExitNormalTriggers.find(function(Y){return Y instanceof jl&&(Y==null?void 0:Y.triggeringLayoutId)!==I}))==null?void 0:d.triggeringLayoutId}; gs7=function(Z,I,d,Y,T,f,P,O,a){var W=d.pings;return W?[I6O(Z,f,O,T,function(e){var B=e.slotId;e=a(e);var w=d.adLayoutLoggingData,V=d.progressCommands;B=zi(I.D.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",B);var N={layoutId:B,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",r4:"core"};return{layoutId:B,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",h5:yO(W),layoutExitNormalTriggers:[new An(I.L,f)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:new D0([new Xj(Y),new sQ(n0(W)),new Nr(EBd(W)),new ud(P/1E3),new OK({progressCommands:V}),new Ga(P/1E3)]),Tb:e(N),adLayoutLoggingData:w}})]:new C("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:d})}; Qzr=function(Z){var I=!(Z==null?0:Z.kN())&&(Z==null?void 0:Z.Qy())&&g2u(),d;if(!(d=Z==null)){d=g.Lv(Z);Z=Z.C().B;var Y=e8("243");d=!(Y&&Br(d,Y,Z,!0)===!0)}return{supportsVp9Encoding:!(d||I),supportXhr:OC}}; Do=function(Z,I,d,Y){if(Y.substring(0,2)==="{{")Z.Wb[Y]=[I,d];else return Y}; JM=function(Z,I){Z.B!=I&&(Z.B=I,Z.V&&Z.V())}; zw=function(Z){for(;Z.L.length&&!Z.L[0].isEncrypted;){var I=Z.L.shift(),d=I.videoId,Y=I.iP,T=I.formatId,f=I.buffer;I=I.jP;if(f)I=void 0,(I=RH(Z.HT.Yu,d))==null||LC(I,Y,T,f);else if(I)Z.HT.Yu.XV(d,Y,T);else if(Y=Z.HT,Y.L[T].IG=!0,d=RH(Y.Yu,d),d==null?0:d.lQ.has(T))d==null||lD(d,T)}}; g.DX=function(Z,I){g.dx.call(this);var d=this;this.nS=Z;this.adaptiveFormats="";this.xO=this.adQueryId=this.Ki=null;this.td={start:NaN,end:NaN};this.cueRanges=this.T_=null;this.lI=new Map;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.Tm="";this.SG=!1;this.Zi=null;this.hV=this.hK=!1;this.N=null;this.Pp=this.IF=!1;this.u8=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec= 0;this.Qu=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.Nt=0;this.ZL=!1;this.cycToken=null;this.author="";this.G7=!1;this.Gv=0;this.kM=!1;this.yb=null;this.MR=[];this.zT=this.BZ=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.b5=this.kF="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.UZ=0;this.xk=this.w4=this.D=null;this.QT="";this.loading=!1;this.SK=this.A4=0;this.JU=this.pipable= this.yX=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.t_=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.y5=this.isPrivate=this.isListed=this.Wb=!1;this.Yy="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.uG=this.Ns=this.uu=!1;this.latencyClass="UNKNOWN";this.Vu=this.VT=this.AT=this.CG=this.iG=this.C8=this.oA=this.hL=this.enableServerStitchedDai=this.Z5=this.isMdxPlayback=this.isUpcoming= this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.eK=0;this.reloadReason="";this.k6=this.gB=!1;this.keywords={};this.M8="";this.O$=0;this.ZD=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.v1=null;this.v6=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.PQ=this.paygated=!1;this.XY=[];this.Du=!1;this.Bj=[];this.Fw=null;this.A8=this.racyCheckOk=!1;this.cP={};this.isProximaLatencyEligible=!1;this.Km=0;this.Z=null;this.autonavState= 1;this.HM=null;this.shortDescription="";this.In=this.r_=!1;this.En=this.I0=this.startSeconds=0;this.rW=this.pG=this.Kg=nb;this.zX=this.suggestions=null;this.kA=this.Z6=void 0;this.isExternallyHostedPodcast=!1;this.n0=null;this.q1=this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.J5=[];this.Mj=[];this.hlsFormats=this.aE="";this.hT=this.QO=this.U_=this.Tv=this.on=this.q6=this.DL=null;this.IU="vvt";this.v3=!1;this.K2=null;this.K3="";this.JW=NaN;this.Zn=this.P6=this.OL=this.c6= this.Ej=this.SL=this.jA=this.Gu=this.VX=this.e5="";this.z0=null;this.x_=!1;this.clipStart=0;this.clipEnd=Infinity;this.Lb=!1;this.heartbeatToken="";this.Zj=this.p8=NaN;this.zD=this.Mt=this.DM=this.fI=this.a9=!1;this.M_=!0;this.X={};this.captionTracks=[];this.L2=[];this.Bt=0;this.kp=[];this.Ty=[];this.YO=!1;this.VD={};this.L0=new g.vz("und",new g.PA("Default","und",!0));this.QW=0;this.B=null;this.xM=[];this.mx=!1;this.x7=this.Vf="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.reelItemWatchResponse= this.mJ=this.qb=this.j9=this.playerResponse=this.GS=this.Io=this.Zu=this.HJ=null;this.S9=!1;this.R4=null;this.isInlinePlaybackNoAd=this.ZM=this.f2=this.useCobaltWidevine=this.w_=this.rI=!1;this.Ip=!0;this.Tx=this.gb=NaN;this.defraggedFromSubfragments=this.U$=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.d4=new Set;this.sabrContextUpdates=new Map;this.gatewayExperimentGroup="";this.h4=this.sZ=this.wV=!1;this.interstitials=[];this.IN=this.ra=!1;this.hE="";this.allowImaMonetization= !1;this.fY="";this.Wz=!1;this.s_="";this.BS=[];this.UA=[];this.uQ="";this.DD=this.V=this.k5=!1;this.BK="";this.nW=this.sR=this.gG=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.X1=!1;this.K0=this.du=!0;this.errorDetail=this.userGenderAge="";this.oh=this.r8=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.aU=this.errorReason= this.errorCode=null;this.RV=!1;this.LJ=[];this.Hk=this.fS=this.Yl=this.jo=this.KN=0;this.fetchType=null;this.PP=!0;this.transitionEndpointAtEndOfStream=void 0;this.XR=this.yd=-1;this.N_=this.o4=!1;this.wz=null;this.LS="";this.watchUrl=null;this.Uv=[];this.visibleOnLoadKeys=[];this.E1=[];this.inlineMetricEnabled=this.MO=!1;this.JT=this.embedsRctn=this.embedsRct="";this.OT=NaN;this.authorizedFormats=[];this.CU=(0,g.o8)();this.Xz=this.GR=0;this.Oy=null;this.s1=this.by=this.Hm=!1;this.V$=0;this.KW={}; this.SB=!1;this.No=.25;this.Mo=2;this.xd=!1;this.sU=this.nS.experiments.CS("html5_use_triple_equals");this.OJ=g.Q4(this.nS.experiments,"html5_gapless_loop_seek_offset_in_milli");this.A9={setData:function(Y){d.setData(Y)}, K$:function(){d.K$()}, R9:function(Y){d.R9(Y)}}; this.o4=this.Y("web_new_autonav_countdown");this.N_=this.Y("web_new_big_thumbnail_endscreen");this.SB=this.nS.experiments.CS("html5_audio_gain_null_coalescing");this.nS.M_&&(this.kS=this.nS.M_);this.setData(I);this.aV=new Q4D;g.z(this,this.aV)}; JPa=function(Z,I,d,Y,T){var f,P,O;return g.h(function(a){if(a.L==1)return g.m(a,g.k_(),2);if(a.L!=3){f=a.D;if(!f)throw g.Pk("rc");return g.m(a,g.rJ(f),3)}P=a.D;O=g.Xn(P,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(W){var e=""+Z+"|"+I+"|"+d+"|"+String(Y).padStart(10,"0");return W.objectStore("media").get(e)}); return T?a.return(O.then(function(W){if(W===void 0)throw Error("No data from indexDb");return Zli(T,W)}).catch(function(W){throw new g.Wj("Error while reading chunk: "+W.name+", "+W.message); })):a.return(O)})}; l5$=function(){return{K:"svg",J:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},G:[{K:"path",J:{d:"M 12.75 4.5 L 9.75 4.5 C 9.15 4.5 8.58 4.73 8.15 5.15 C 7.73 5.58 7.5 6.15 7.5 6.75 L 7.5 29.25 C 7.5 29.84 7.73 30.41 8.15 30.84 C 8.58 31.26 9.15 31.5 9.75 31.5 L 12.75 31.5 C 13.34 31.5 13.91 31.26 14.34 30.84 C 14.76 30.41 15 29.84 15 29.25 L 15 6.75 C 15 6.15 14.76 5.58 14.34 5.15 C 13.91 4.73 13.34 4.5 12.75 4.5 Z M 26.25 4.5 L 23.25 4.5 C 22.65 4.5 22.08 4.73 21.65 5.15 C 21.23 5.58 21 6.15 21 6.75 V 29.25 C 21 29.84 21.23 30.41 21.65 30.84 C 22.08 31.26 22.65 31.5 23.25 31.5 L 26.25 31.5 C 26.84 31.5 27.41 31.26 27.84 30.84 C 28.26 30.41 28.5 29.84 28.5 29.25 V 6.75 L 28.5 6.75 C 28.5 6.15 28.26 5.58 27.84 5.15 C 27.41 4.73 26.84 4.5 26.25 4.5 Z", fill:"white"}}]}}; xAi=function(Z){return new TT(function(I,d){d(Z)})}; Rri=function(Z,I,d){if(Z.In.length)for(var Y=g.t(Z.In),T=Y.next(),f={};!T.done;f={rj:void 0},T=Y.next()){f.rj=T.value;T=f.rj.startSecs*1E3;var P=f.rj.QI*1E3+T;if(I>T&&IT&&de.start&&d>=5;q+=F}T=q.substr(0,4)+" "+q.substr(4,4)+" "+q.substr(8,4)+" "+(q.substr(12,4)+" "+q.substr(16,4))}else T="";P={video_id_and_cpn:String(I.videoId)+" / "+T,codecs:"",dims_and_frames:"",bandwidth_kbps:P.toFixed(0)+" Kbps",buffer_health_seconds:a.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:W?"":"display:none",drm:W,debug_info:d,extra_debug_info:"",bandwidth_style:w,network_activity_style:w,network_activity_bytes:O.toFixed(0)+" KB",shader_info:B,shader_info_style:B?"":"display:none",playback_categories:""};O=Y.clientWidth+"x"+Y.clientHeight+(e>1?"*"+e.toFixed(2):"");a="-";f.totalVideoFrames&&(a=(f.droppedVideoFrames||0)+" dropped of "+f.totalVideoFrames);P.dims_and_frames=O+" / "+a;Z=Z.getVolume();O=iSi(I);var v;if((v=I.N)==null?0:v.audio.D)v= "VB";else{var l;v=((l=I.N)==null?0:l.audio.L)?"DRC":Math.round(Z*O)+"%"}l=Math.round(Z)+"% / "+v;v=I.u8.toFixed(1);isFinite(Number(v))&&(l+=" (content loudness "+v+"dB)");P.volume=l;P.resolution=Y.videoWidth+"x"+Y.videoHeight;if(Y=I.D){if(l=Y.video)v=l.fps,v>1&&(P.resolution+="@"+v),(v=f.FC)&&v.video&&(P.resolution+=" / "+v.video.width+"x"+v.video.height,v.video.fps>1&&(P.resolution+="@"+v.video.fps)),P.codecs=m9L(Y),!I.N||Y.audio&&Y.video?Y.Uc&&(P.codecs+=" / "+Y.Uc+"A"):P.codecs+=" / "+m9L(I.N), l.L||l.primaries?(v=l.L||"unknown",v==="smpte2084"?v+=" (PQ)":v==="arib-std-b67"&&(v+=" (HLG)"),P.color=v+" / "+(l.primaries||"unknown"),P.color_style=""):P.color_style="display:none";if(Y.debugInfo)for(P.fmt_debug_info="",Y=g.t(Y.debugInfo),l=Y.next();!l.done;l=Y.next())l=l.value,P.fmt_debug_info+=l.label+":"+l.text+" ";P.fmt_debug_info_style=P.fmt_debug_info&&P.fmt_debug_info.length>0?"":"display:none"}Y=I.isLivePlayback;l=I.uu;P.live_mode_style=Y||l?"":"display:none";P.live_latency_style=Y?"": "display:none";if(l)P.live_mode="Post-Live"+(FI(I)?" Manifestless":"");else if(Y){l=f.e4;P.live_latency_secs=l.toFixed(2)+"s";Y=FI(I)?"Manifestless, ":"";I.Ns&&(Y+="Windowed, ");v="Uncertain";if(l>=0&&l<120)if(I.latencyClass&&I.latencyClass!=="UNKNOWN")switch(I.latencyClass){case "NORMAL":v="Optimized for Normal Latency";break;case "LOW":v="Optimized for Low Latency";break;case "ULTRALOW":v="Optimized for Ultra Low Latency";break;default:v="Unknown Latency Setting"}else v=I.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";Y+=v;(l=f.d3)&&(Y+=", seq "+l.sequence);P.live_mode=Y}!f.isGapless||fA(I)&&f.m0||(P.playback_categories+="Gapless ");P.playback_categories_style=P.playback_categories?"":"display:none";P.bandwidth_samples=f.dh;P.network_activity_samples=f.XD;P.live_latency_samples=f.Ue;P.buffer_health_samples=f.YL;f=g.aC(I);if(I.cotn||f)P.cotn_and_local_media=(I.cotn?I.cotn:"null")+" / "+f;P.cotn_and_local_media_style=P.cotn_and_local_media?"":"display:none"; Am(I,"web_player_release_debug")?(P.release_name=Q[12],P.release_style=""):P.release_style="display:none";P.debug_info&&V.length>0&&P.debug_info.length+V.length<=60?P.debug_info+=" "+V:P.extra_debug_info=V;P.extra_debug_info_style=P.extra_debug_info&&P.extra_debug_info.length>0?"":"display:none";return P}; g.hy=function(Z,I,d){if(typeof Z==="function")d&&(Z=(0,g.u5)(Z,d));else if(Z&&typeof Z.handleEvent=="function")Z=(0,g.u5)(Z.handleEvent,Z);else throw Error("Invalid listener argument");return Number(I)>2147483647?-1:g.iN.setTimeout(Z,I||0)}; Nml=function(Z,I,d,Y){if(y0.length){var T=y0.pop();ah9(T,Y);T.L.init(Z,I,d,Y);return T}return new ZX(Z,I,d,Y)}; g.U7=function(Z,I,d){return Z!==null&&I in Z?Z[I]:d}; g.L2a=function(Z){if(!Z.playerResponse||!Z.playerResponse.annotations)return null;Z=g.t(Z.playerResponse.annotations);for(var I=Z.next();!I.done;I=Z.next())if(I=I.value,I.playerAnnotationsExpandedRenderer&&I.playerAnnotationsExpandedRenderer.featuredChannel)return I.playerAnnotationsExpandedRenderer;return null}; Us7=function(Z,I){var d=un(I,"id");d=d.replace(":",";");var Y=un(I,"mimeType"),T=un(I,"codecs");Y=T?Y+'; codecs="'+T+'"':Y;T=Number(un(I,"bandwidth"))/8;var f=Number(mX(I,"BaseURL").getAttribute(Z.j+":contentLength")),P=Z.duration&&f?f/Z.duration:0;if($0B(Y)){var O=Number(un(I,"width"));var a=Number(un(I,"height")),W=Number(un(I,"frameRate")),e=gFr(un(I,Z.j+":projectionType"));a:switch(un(I,Z.j+":stereoLayout")){case "layout_left_right":var B=1;break a;case "layout_top_bottom":B=2;break a;default:B= 0}O=new cS(O,a,W,e,B)}if(ZnE(Y)){var w=Number(un(I,"audioSamplingRate"));var V=Number(un(I.getElementsByTagName("AudioChannelConfiguration")[0],"value"));a=qD7(un(I,Z.j+":spatialAudioType"));w=new QF(w,V,a);a:{V=un(I,"lang")||"und";if(a=mX(I,"Role"))if(e=un(a,"value")||"",g.b3(Lqd,e)){a=V+"."+Lqd[e];W=e==="main";Z=un(I,Z.j+":langName")||V+" - "+e;V=new g.PA(Z,a,W);break a}V=void 0}}if(I=mX(I,"ContentProtection"))if(I.getAttribute("schemeIdUri")==="http://youtube.com/drm/2012/10/10"){var N={};for(I= I.firstChild;I!=null;I=I.nextSibling)I instanceof Element&&/SystemURL/.test(I.nodeName)&&(Z=I.getAttribute("type"),a=I.textContent,Z&&a&&(N[Z]=a.trim()))}else N=void 0;return new Pg(d,Y,{audio:w,video:O,uo:V,T_:N,pS:T,mV:P,contentLength:f})}; qd=function(){g.dx.apply(this,arguments)}; Jor=function(Z){var I;if(!(I=!Z.L)){I=Z.L;var d=window.getComputedStyle(I);I=d.display==="none"||d.visibility==="hidden"||I.getAttribute("aria-hidden")==="true"}if(I||Z.S.isMinimized())Z.o0(!1);else if(I=g.C2(Z.L),I.width&&I.height){Z.S.Z4(Z.element,Z.L);var Y=Z.S.cj().getPlayerSize().height;d=g.C2(Z.KS("ytp-promotooltip-container")).height;Z.Z?Z.element.style.top=Y-d-I.height-12+"px":Z.V||(Y=Z.S.aF().height-d-I.height-12,Z.element.style.top=Y+"px");Y=Z.KS("ytp-promotooltip-pointer");var T=g.S6(Z.L, Z.S.getRootNode()),f=Number(Z.element.style.left.replace(/[^\d\.]/g,""));Z=Z.S.isFullscreen()?18:12;Y.style.left=T.x-f+I.width/2-Z+"px";Y.style.top=d+"px"}else Z.o0(!1)}; vql=function(Z,I,d,Y,T){this.listener=Z;this.proxy=null;this.src=I;this.type=d;this.capture=!!Y;this.handler=T;this.key=++yPu;this.removed=this.Od=!1}; lOa=function(Z,I){var d=I||eQu(Z)||Z.isExternallyHostedPodcast;if(!Z.L||d)return Z.D1("skipDash",{dm:!!Z.L,air:I,dd:Z.BZ,mss:Nn(),"3pp":Z.isExternallyHostedPodcast}),Qv();Nv(Z)&&fxn(Z.L,Z.isLivePlayback);return Fl().then(function(){return n89(Z.aV,g.Lv(Z),Z.nS.B,Z.L,Z.B,function(Y){return Z.publish("ctmp","fmtflt",Y)},Z.UA,j2(Z)&&Z.Y("html5_enable_server_format_filter")).then(function(Y){Z.R9(Y); Z.aV.L=null;/^av/.test(Z.clientPlaybackNonce)&&Z.wz&&Z.D1("av1",Z.wz.L)})})}; inJ=function(Z){this.itag=Z.itag;this.url=Z.url;this.codecs=Z.codecs;this.width=Z.width;this.height=Z.height;this.fps=Z.fps;this.bitrate=Z.bitrate;var I;this.D=((I=Z.audioItag)==null?void 0:I.split(","))||[];this.Sb=Z.Sb;this.T_=Z.T_||"";this.uo=Z.uo;this.audioChannels=Z.audioChannels;this.L=""}; vm=function(Z,I){Z.Z||Z.LS||Wm(Z,Z.dV);var d=I.n5,Y=I.gX;if(Y.cpn===Z.dV)Z.t9({igtranssame:1,enter:Y.cpn,exit:d.cpn});else{var T=Z.LS,f=!!Z.Z;Z.Z="";var P=I.Me,O=d.playerType===2?d.f_/1E3+d.videoData.Gv:Z.oU().videoData.Gv;Z.api.Y("html5_ssdai_enable_media_end_cue_range")&&(f||T||d.playerType!==2?(T||f)&&Z.t9({mecr:0,seek:T,skip:f}):Z.api.n8(d.cpn));if(d.playerType===2&&Y.playerType===2)f?Z.t9({igtransskip:1,enter:Y.cpn,exit:d.cpn,seek:T,skip:Z.Z}):FnO(Z,d,Y,O,P,T,f);else{Z.dV=Y.cpn;Z.hf(Y.cpn,Y.startTimeSecs|| P);I=I.CTZ;if(d.playerType===1&&Y.playerType===2){Z.dD=0;Xbn(Z,Y);var a=qz(Z,"c2a",Y);Z.t9(a);Z.Wv++}else if(d.playerType===2&&Y.playerType===1){Z.api.publish("serverstitchedvideochange");a=qz(Z,"a2c");Z.t9(a);Z.Wv=0;Z.dD=O;a=d.cpn;var W=Z.dD;if(a!==Z.playback.PE()){var e=Z.Bj.get(a);e?e.L=W:Z.t9({nop_e:a})}Z.M$(d.nA)}Z.playback.Gk(d,Y,O,P,T,f,I)}Nqd(Z)}}; g.QC=function(Z,I){g.m7.call(this,{K:"div",T:"ytp-progress-bar-container",J:{"aria-disabled":"true"},G:[{K:"div",zm:["ytp-heat-map-container"],G:[{K:"div",T:"ytp-heat-map-edu"}]},{K:"div",zm:["ytp-progress-bar"],J:{tabindex:"0",role:"slider","aria-label":"Seek slider","aria-valuemin":"{{ariamin}}","aria-valuemax":"{{ariamax}}","aria-valuenow":"{{arianow}}","aria-valuetext":"{{arianowtext}}"},G:[{K:"div",T:"ytp-chapters-container"},{K:"div",T:"ytp-timed-markers-container"},{K:"div",T:"ytp-clip-start-exclude"}, {K:"div",T:"ytp-clip-end-exclude"},{K:"div",T:"ytp-scrubber-container",G:[{K:"div",zm:["ytp-scrubber-button","ytp-swatch-background-color"],G:[{K:"div",T:"ytp-scrubber-pull-indicator"},{K:"img",zm:["ytp-decorated-scrubber-button"]}]}]}]},{K:"div",zm:["ytp-fine-scrubbing-container"],G:[{K:"div",T:"ytp-fine-scrubbing-edu"}]},{K:"div",T:"ytp-bound-time-left",Z1:"{{boundTimeLeft}}"},{K:"div",T:"ytp-bound-time-right",Z1:"{{boundTimeRight}}"},{K:"div",T:"ytp-clip-start",J:{title:"{{clipstarttitle}}"},Z1:"{{clipstarticon}}"}, {K:"div",T:"ytp-clip-end",J:{title:"{{clipendtitle}}"},Z1:"{{clipendicon}}"}]});this.api=Z;this.Mj=!1;this.du=this.s_=this.d4=this.Ns=this.j=this.Qx=0;this.aE=null;this.u8=!1;this.sZ={};this.EU={};this.clipEnd=Infinity;this.Hk=this.KS("ytp-clip-end");this.R4=new g.rm(this.Hk,!0);this.En=this.KS("ytp-clip-end-exclude");this.Gv=this.KS("ytp-clip-start-exclude");this.clipStart=0;this.sU=this.KS("ytp-clip-start");this.kF=new g.rm(this.sU,!0);this.LS=this.I0=0;this.progressBar=this.KS("ytp-progress-bar"); this.Yl={};this.on={};this.y5=this.KS("ytp-chapters-container");this.zD=this.KS("ytp-timed-markers-container");this.L=[];this.V=[];this.hV={};this.DM=null;this.j7=-1;this.SK=this.mJ=0;this.Tx=this.X=null;this.wV=this.KS("ytp-scrubber-button");this.Bj=this.KS("ytp-decorated-scrubber-button");this.Vx=this.KS("ytp-scrubber-container");this.UZ=new g.vS;this.o4=0;this.ZM=new f2u;this.Z=new O3(0,0);this.xl=null;this.B=this.gB=!1;this.gb=null;this.kS=this.KS("ytp-heat-map-container");this.vg=this.KS("ytp-heat-map-edu"); this.N=[];this.heatMarkersDecorations=[];this.b5=this.KS("ytp-fine-scrubbing-container");this.wz=this.KS("ytp-fine-scrubbing-edu");this.D=void 0;this.Tm=this.Vf=this.w4=!1;this.tooltip=I.EP();this.addOnDisposeCallback(g.my(this.tooltip,this.Hk));g.z(this,this.R4);this.R4.subscribe("hoverstart",this.GP,this);this.R4.subscribe("hoverend",this.PG,this);this.W(this.Hk,"click",this.Sf);this.addOnDisposeCallback(g.my(this.tooltip,this.sU));g.z(this,this.kF);this.kF.subscribe("hoverstart",this.GP,this); this.kF.subscribe("hoverend",this.PG,this);this.W(this.sU,"click",this.Sf);uQn(this);this.W(Z,"resize",this.CM);this.W(Z,"presentingplayerstatechange",this.Ob);this.W(Z,"videodatachange",this.W3);this.W(Z,"videoplayerreset",this.jX);this.W(Z,"cuerangesadded",this.XOm);this.W(Z,"cuerangesremoved",this.UIj);this.W(Z,"onLoopRangeChange",this.jB);this.W(Z,"innertubeCommand",this.onClickCommand);this.W(Z,"onRetroModeChanged",this.jN5);this.W(Z,g.E2("timedMarkerCueRange"),this.AZj);this.W(Z,"updatemarkervisibility", this.UC);this.W(Z,"serverstitchedvideochange",this.r_5);this.updateVideoData(Z.getVideoData(),!0);this.jB(Z.getLoopRange());lt(this)&&!this.D&&(this.D=new Eo(this.api,this.tooltip),Z=g.Ut(this.element).x||0,this.D.CM(Z,this.j),this.D.i5(this.b5),g.z(this,this.D),this.W(this.D.dismissButton,"click",this.Ro),this.W(this.D.playButton,"click",this.QR),this.W(this.D.element,"dblclick",this.QR));this.api.createClientVe(this.kS,this,139609,!0);this.api.createClientVe(this.vg,this,140127,!0);this.api.createClientVe(this.wz, this,151179,!0);this.api.createClientVe(this.progressBar,this,38856,!0)}; ZIO=function(Z,I){a:{Z=Z.L5;var d,Y=(d=g.y(I,Gf$))==null?void 0:d.signal;if(Y&&Z.W6&&(d=Z.W6[Y])){var T=d();break a}var f;if((d=(f=g.y(I,zrn))==null?void 0:f.request)&&Z.ou&&(f=Z.ou[d])){T=f();break a}for(T in I)if(Z.Ta[T]&&(I=Z.Ta[T])){T=I();break a}T=void 0}if(T!==void 0)return Promise.resolve(T)}; X5n=function(Z,I,d,Y,T){try{var f=I.C();if(g.qN(f))var P=new S$n(Z,I,d,Y,T);else if(g.Mw(f))P=new pfd(Z,I,d,Y,T);else if(vU(f))P=new x4u(Z,I,d,Y,T);else if(g.vl(f))P=new kfJ(Z,I,d,Y,T);else if(g.$D(f))P=new cOJ(Z,I,d,Y,T);else throw new TypeError("Unknown web interface");return P}catch(O){return P=I.C(),Zv("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:P.L.cplatform,interface:P.L.c,h$J:P.L.cver,vdm:P.L.ctheme,Aq1:P.L.cplayer,Xu5:P.playerStyle}),new pQu(Z,I,d,Y,T)}}; ty9=function(Z){Z.L&&(Z.N=!0,Z.D&&(Z.D.stop(),Z.D.start()),mHr(Z,"TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED"),J1(Z.Q5.get(),"ads_ce","bdc."+h$7(Z).length))}; U4L=function(Z){var I=Z.S.getVideoData();Z=Z.S.C();var d=g.veE(),Y=Z.Y("enable_spherical_kabuki"),T=g.HG(Z);if(g.yk(I))return d||Y||T;if(g.Lx(I))return T||d||Y;if(g.Ux(I))return T||d||!1;if(g.oG(I))return T||!1;d=I.D&&I.D.video&&I.D.video.isHdr();return T&&!g.Pf(I)&&!d&&Z.Y("enable_webgl_noop")}; LnE=function(Z){var I=[];Z=Z.match($sd);for(var d=0;d0)){V.xS(4);break}a=$l;return VE(V,pp(q6L(f)),5);case 5:a(V.D);case 4:if(!O){V.xS(6);break}W=$l;return VE(V,pp(HNO()),7);case 7:W(V.D);case 6:return g.ez(V,8),e=Cbl(I.webPlayerContextConfig.wasmModuleUrl,T,I.Br.bind(I),P),B=$l,VE(V,pp(e),10);case 10:w=B(V.D);I.KM.tick(w.L?"wasm_fa":"wasm_fw");xsn(I.U,w);g.gE(V,2);break;case 8:g.Bj(V), I.KM.tick("wasm_ferr");case 2:g.ON(V),g.Bh(V,0)}})}()})}; KqD=function(Z){for(var I=0;Ithis.policy.FR?!1:!0:!1)I=null,this.policy.nG&& this.policy.Ym?I=[1]:q&&(I=[]),I!=null&&(this.policy.yd&&I.push(2),this.aN.set("defsel",I.join(",")));this.Qt=new BV(this,this.policy,this.aN,this.info.MC,this.timing,this.logger,Y,B);this.W8=O||null;this.SZ=CHn(this);wkl(this.Qt);Y=void 0;if(this.policy.ra||this.Ah||this.policy.mJ)Y={method:"POST"},O=(0,g.DT)([120,0]),B={},this.policy.TO&&P&&(P=NA(void 0,P),B.HV=P),this.policy.Ej&&this.Fw&&(B.videoPlaybackUstreamerConfig=this.Fw),this.policy.mJ&&(P=this.info.N)&&Object.assign(B,P),Object.keys(B).length> 0?Y.body=g.Xt(B,g.Eqn):Y.body=O;if(this.FM&&this.Fw){this.aN.set("iwts","1");Y={method:"POST"};P={EK:this.FM*1E3};var F;O=(F=this.info.N)==null?void 0:F.A$;F=g.Xt({O4:P,A$:O||void 0,videoPlaybackUstreamerConfig:this.Fw},g.Eqn);Y.body=F}try{this.xhr=kX(this.aN,this.policy.X,this.timing,Z,Y),this.Qt.D.start(),f&&(this.WU=new g.uX(this.Q6,f,this),this.WU.start(f+(this.timing.Bk.X.eD()||0)*1E3)),this.policy.Io&&WZ(this.timing,this.VI()),g.rB(function(){})}catch(J){DBE(this,J,!0)}}; nk=function(Z,I){g.k.call(this,{K:"button",zm:["ytp-remote-button","ytp-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"Play on TV":"","data-tooltip-title":"Play on TV","aria-haspopup":"true","data-priority":"10"},Z1:"{{icon}}"});this.S=Z;this.A5=I;this.L=null;this.W(Z,"onMdxReceiversChange",this.qs);this.W(Z,"presentingplayerstatechange",this.qs);this.W(Z,"appresize",this.qs);Z.createClientVe(this.element,this,139118);this.qs();this.listen("click",this.D,this);pi(Z,this.element,this)}; le7=function(Z){var I={tick:{},info:{}};g.zb("ytcsi."+(Z||"")+"data_",I);return I}; g.ut=function(Z){Z=Z.split(bTJ);for(var I=[],d=0;d1)Z.N=!0;if((T===void 0?0:T)||isNaN(Z.D))Z.D=I;if(Z.L)I!==Z.mediaTime&&(Z.L=!1);else if(I>0&&Z.mediaTime===I){T=1500;if(Z.U.Y("html5_buffer_underrun_transition_fix")){T=g.Q4(Z.U.experiments,"html5_min_playback_advance_for_steady_state_secs");var f=g.Q4(Z.U.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");T=T>0&&f>0&&Math.abs(I-Z.D)(Y||!Z.N?T:400)}Z.mediaTime=I;Z.Z=d;return!1}; Lz=function(Z,I){this.nS=Z;this.m1=this.author="";this.fQ=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.Tr=this.lengthText="";this.sessionData=null;this.X={};this.title="";if(I){this.ariaLabel=I.aria_label||void 0;this.author=I.author||"";this.m1=I.m1||"";if(Z=I.endscreen_autoplay_session_data)this.fQ=UE(Z,"&");this.CC=I.CC;this.isLivePlayback=I.live_playback==="1";this.isUpcoming=!!I.isUpcoming;if(Z=I.length_seconds)this.lengthSeconds=typeof Z==="string"?Number(Z):Z;this.lengthText= I.lengthText||"";this.Tr=I.Tr||"";this.publishedTimeText=I.publishedTimeText||void 0;if(Z=I.session_data)this.sessionData=UE(Z,"&");this.shortViewCount=I.short_view_count_text||void 0;this.X=WK(I);this.title=I.title||"";this.videoId=I.docid||I.video_id||I.videoId||I.id||void 0;this.watchUrl=I.watchUrl||void 0}}; g.Gy=function(Z,I,d){g.t6(Se)(void 0,Z,I,d,void 0)}; cPB=function(Z,I){Z instanceof String&&(Z+="");var d=0,Y=!1,T={next:function(){if(!Y&&dg.QY()}; e3D=function(Z,I,d){for(d=OM(Z,d);d>=0;){var Y=Z.levels[d];if(Y.isLoaded(Dc(Y,I))&&(Y=g.Jb(Y,I)))return Y;d--}return g.Jb(Z.levels[0],I)}; ZJE=function(Z,I){var d="detailpage";I==="adunit"?d=Z.N?"embedded":"detailpage":I==="embedded"||Z.X?d=AS(d,I,rPn):I&&(d="embedded");return d}; mL=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);pF(this.api,"updateFullerscreenEduButtonSubtleModeState",function(Y){I.updateFullerscreenEduButtonSubtleModeState(Y)}); pF(this.api,"updateFullerscreenEduButtonVisibility",function(Y){I.updateFullerscreenEduButtonVisibility(Y)}); var d=Z.C();Z.Y("external_fullscreen_with_edu")&&d.externalFullscreen&&z9(d)&&d.controlsType==="1"&&this.events.W(Z,"standardControlsInitialized",function(){I.L=new lW(Z);g.z(I,I.L);Z.S$(I.L)})}; g.IP9=function(Z){switch(Z.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}}; d8i=function(){var Z=g.gZ("yt.abuse.playerAttLoader");return Z&&["bgvma","bgvmb","bgvmc"].every(function(I){return I in Z})?Z:null}; h$=function(Z){return Z.mediaElement?Tb(Z.mediaElement):0}; X5=function(Z,I){Z.Z.Sg=I;g.zL(Z.api.getRootNode(),"ytp-probably-keyboard-focus",I);g.zL(Z.contextMenu.element,"ytp-probably-keyboard-focus",I)}; hk=function(Z,I,d,Y,T){var f=Z.L;f!==Z.app.l5()&&Z.app.Qb();Z.U.Y("html5_sabr_csdai_seek_log")||(T="");var P;f.seekTo(I,Object.assign({},{H$:"application_timelinemanager"+((P=T)!=null?P:"")},d));z59(Z,Y)}; odO=function(Z,I){var d=0;Z=Z.L.L.get(I);if(!Z)return 0;Z=g.t(Z);for(I=Z.next();!I.done;I=Z.next())I=I.value,I.durationMs!==0&&I.Mc!==I.f_&&d++;return d}; Apu=function(Z){var I=Z.sampleInterval,d=Z.maxBufferSize;if(I>0&&d>0&&!Z.D&&Z.Z<1E7)try{Z.N=Z.B({sampleInterval:I,maxBufferSize:d});var Y;(Y=Z.N)==null||Y.addEventListener("samplebufferfull",function(){return g.h(function(T){if(T.L==1)return g.m(T,Z.stop(),2);Apu(Z);g.v6(T)})})}catch(T){Z.D=KsB(T.message)}}; Y97=function(Z){var I;if(Z=(I=Z.mediaElement)==null?void 0:I.audioTracks())for(I=0;I0&&(f.iT?Y=!0:I=!0);Y=!(I&&Y)}if(Y)return!1}Z.On("ofr");Z.t6.resolve(Z.playerResponse);if(!Z.U8){var a;(a=Z.Ft)==null||a.start();Z.Tk.start()}return Z.F6= !0}; j$=function(Z,I,d,Y){Y=Y===void 0?!1:Y;bW.call(this,Z);this.mj=d;this.NP=Y;this.args=[];I&&this.args.push(I)}; tU=function(Z){return Z.Io?["OK","LIVE_STREAM_OFFLINE"].includes(Z.Io.status):!0}; jFa=function(Z,I,d,Y,T,f){var P=jN;d=d===void 0?{}:d;Y=Y===void 0?!1:Y;T=T===void 0?200:T;f=f===void 0?!1:f;var O=new Map,a=new Map,W={isJspb:Y,cttAuthInfo:void 0,tier:T},e={isJspb:Y,cttAuthInfo:void 0};if(Y){I=g.t(Object.keys(dA));for(T=I.next();!T.done;T=I.next())T=T.value,a=g.x9("enable_web_tiered_gel")?o1().smartExtractMatchingEntries({keys:[W,e],sizeLimit:1E3}):o1().extractMatchingEntries({isJspb:!0,cttAuthInfo:T}),a.length>0&&O.set(T,a),(g.x9("web_fp_via_jspb_and_json")&&d.writeThenSend||!g.x9("web_fp_via_jspb_and_json"))&& delete dA[T];G8n(O,P,Z,d,!1,f)}else{O=g.t(Object.keys(dA));for(W=O.next();!W.done;W=O.next())W=W.value,e=g.x9("enable_web_tiered_gel")?o1().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:W,tier:T},{isJspb:!1,cttAuthInfo:W}],sizeLimit:1E3}):o1().extractMatchingEntries({isJspb:!1,cttAuthInfo:W}),e.length>0&&a.set(W,e),(g.x9("web_fp_via_jspb_and_json")&&d.writeThenSend||!g.x9("web_fp_via_jspb_and_json"))&&delete dA[W];f3J(a,P,Z,I,d,!1,f)}}; Wx=function(Z){this.L=Z}; Aka=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w){var V={layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",r4:d};T=[new Xj(T),new Y8(a),new Vl(Y.externalVideoId),new F6(O),new OK({impressionCommands:Y.impressionCommands,abandonCommands:Y.onAbandonCommands,completeCommands:Y.completeCommands,progressCommands:Y.adVideoProgressCommands}),new t5(f),new EN({current:null}),new ud(P)];(f=Y.playerOverlay.instreamAdPlayerOverlayRenderer)&&T.push(new za(f));(P=Y.playerOverlay.playerOverlayLayoutRenderer)&&T.push(new k4(P)); B&&T.push(new q_(B));(B=Y.playerUnderlay)&&T.push(new H2(B));O=ip(Z.D.get(),"SLOT_TYPE_IN_PLAYER");B=(B=f?f.elementId:P==null?void 0:P.layoutId)?B:zi(Z.D.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",O);T.push(new VV(B));T.push(new N_(O));T.push(new mW(a.adPodIndex));Y.adNextParams&&T.push(new mK(Y.adNextParams));Y.shrunkenPlayerBytesConfig&&T.push(new c7D(Y.shrunkenPlayerBytesConfig));Y.clickthroughEndpoint&&T.push(new gS(Y.clickthroughEndpoint));Y.legacyInfoCardVastExtension&&T.push(new Sh(Y.legacyInfoCardVastExtension)); Y.sodarExtensionData&&T.push(new AT(Y.sodarExtensionData));e&&T.push(new w_(e));T.push(new sQ(n0(Y.pings)));a=yO(Y.pings);if(w){a:{w=g.t(w);for(e=w.next();!e.done;e=w.next())if(e=e.value,e.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_UNDERLAY"&&(f=g.y(e.fulfillmentContent.fulfilledLayout,eS))&&(f=g.y(f.renderingContent,Va))&&f.associatedPlayerBytesLayoutId===I){w=e;break a}w=void 0}w&&T.push(new mM(w))}return{layoutId:I,layoutType:"LAYOUT_TYPE_MEDIA",h5:a,layoutExitNormalTriggers:[new Ws(Z.L,I)],layoutExitSkipTriggers:Y.skipOffsetMilliseconds? [new eb(Z.L,B)]:[],layoutExitMuteTriggers:[new eb(Z.L,B)],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:d,II:T,Tb:W(V),adLayoutLoggingData:Y.adLayoutLoggingData}}; TTD=function(Z,I,d,Y,T,f,P,O){g2.call(this,Z,I,d,Y);this.Q5=T;this.pM=f;this.j=O;this.Gz=!0;this.N=null;this.B=dB(d.clientMetadata,"metadata_type_linked_player_bytes_layout_id");pR(this.pM(),this);Z=dB(d.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,Z,d.layoutId)}; iJd=function(){var Z=xQ();try{var I=Z.muted;Z.muted=!I;return Z.muted!==I}catch(d){}return!1}; sz7=function(Z){if(!Z)return!1;Z=g.y(Z.instreamAdPlayerOverlay,smL);var I=g.y(Z==null?void 0:Z.skipOrPreviewRenderer,zy),d=g.y(Z==null?void 0:Z.adInfoRenderer,NE);return(g.y(Z==null?void 0:Z.skipOrPreviewRenderer,kF)||I)&&d?!0:!1}; sHn=function(Z){var I,d,Y,T,f,P,O;g.h(function(a){switch(a.L){case 1:if(Z.OZ()||!Z.N||!Z.L)return a.return();Z.X&&Z.app.l5().hk(!0,!1);I=null;if(!Z.Z){a.xS(2);break}g.ez(a,3);return g.m(a,g4u(Z.Z),5);case 5:g.gE(a,2);break;case 3:I=d=g.Bj(a);case 2:if(!Z.L)return a.return();fPa.n4("vqsp",function(){Z.app.Pa(Z.L)}); if(!Z.L)return a.return();Y=Z.L.bQ();Z.app.C().Y("html5_gapless_seek_on_negative_time")&&Y&&Y.getCurrentTime()<-.01&&Z.L.seekTo(0);fPa.n4("vqpv",function(){Z.app.playVideo()}); I&&(Z.L?(T=I?I.message:"forced",(f=Z.D)==null||f.D1("gapfulfbk",{r:T}),Z.L.Aw(T)):(P=Z.D)==null||P.D1("gapsp",{}));O=Z.N;X3(Z);O&&O.resolve();return a.return(Promise.resolve())}})}; g.Xt=function(Z,I){var d=new jEl(4096);I(d,Z);return new Uint8Array(d.L.buffer,d.L.byteOffset,d.pos)}; QFJ=function(Z){function I(){d-=Y;d-=T;d^=T>>>13;Y-=T;Y-=d;Y^=d<<8;T-=d;T-=Y;T^=Y>>>13;d-=Y;d-=T;d^=T>>>12;Y-=T;Y-=d;Y^=d<<16;T-=d;T-=Y;T^=Y>>>5;d-=Y;d-=T;d^=T>>>3;Y-=T;Y-=d;Y^=d<<10;T-=d;T-=Y;T^=Y>>>15} Z=aK$(Z);for(var d=2654435769,Y=2654435769,T=314159265,f=Z.length,P=f,O=0;P>=12;P-=12,O+=12)d+=dd(Z,O),Y+=dd(Z,O+4),T+=dd(Z,O+8),I();T+=f;switch(P){case 11:T+=Z[O+10]<<24;case 10:T+=Z[O+9]<<16;case 9:T+=Z[O+8]<<8;case 8:Y+=Z[O+7]<<24;case 7:Y+=Z[O+6]<<16;case 6:Y+=Z[O+5]<<8;case 5:Y+=Z[O+4];case 4:d+=Z[O+3]<<24;case 3:d+=Z[O+2]<<16;case 2:d+=Z[O+1]<<8;case 1:d+=Z[O+0]}I();return Phu.toString(T)}; tM=function(Z,I,d,Y){XF.call(this,Z,0,void 0,I,!(Y===void 0||!Y));for(Z=0;Z0&&aPi(Z.jJ,Z.getCurrentTime());Z.mediaElement.activate(I);Z.Fm&&LD(4);!Z.videoData.In&&Z.playerState.isOrWillBePlaying()&&Z.aC.start();if(kWr(Z)){var d;if(I=(d=Z.mediaElement)==null?void 0:d.audioTracks())I.onchange=function(){Z.publish("internalaudioformatchange",Z.videoData,!0)}}}; Nln=function(Z){if(Z.LK()){var I=Z.data["Stitched-Video-Id"]?Z.data["Stitched-Video-Id"].split(",").slice(0,-1):[],d=lDL(Z),Y=[];if(Z.data["Stitched-Video-Duration-Us"])for(var T=g.t(Z.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),f=T.next();!f.done;f=T.next())Y.push((Number(f.value)||0)/1E6);T=[];if(Z.data["Stitched-Video-Start-Frame-Index"]){f=g.t(Z.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var P=f.next();!P.done;P=f.next())T.push(Number(P.value)||0)}T=[]; if(Z.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(f=g.t(Z.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),P=f.next();!P.done;P=f.next())T.push((Number(P.value)||0)/1E6);Z=new PRB(I,d,Y,T,g.WJ7(Z),g.IP9(Z))}else Z=null;return Z}; eYE=function(Z,I,d){I=dN(Z,I);d||I?I&&(Z.Z=!0):Z.Z=!1;Z.V=Z.policy.Z===2||Z.policy.Z===3&&Z.Z}; Ws=function(Z,I,d){this.layoutId=I;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=d||Z(this.triggerType)}; Unn=function(Z,I){var d;if(g.x9("web_log_memory_total_kbytes")&&((d=g.iN.navigator)==null?0:d.deviceMemory)){var Y;d=(Y=g.iN.navigator)==null?void 0:Y.deviceMemory;Z?G8(Z,95,Xo(d*1E6)):I&&(I.client.memoryTotalKbytes=""+d*1E6)}}; TR=function(Z,I,d){I&&(I=Z.Vt({playerType:d}))&&I===Z.vj()&&(I.getVideoData().gB=!0)}; g.Vt=function(Z,I,d,Y){yV(Z,d,I.toFixed(3)+":"+Y.join(":"))}; dN=function(Z,I){return I>=Z.rd()-jU(Z)}; un$=function(Z){$w.call(this,Z);this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"videoready",function(I){if(Z.getPresentingPlayerType()===1){var d,Y,T={playerDebugData:{pmlSignal:!!((d=I.getPlayerResponse())==null?0:(Y=d.adPlacements)==null?0:Y.some(function(f){var P;return f==null?void 0:(P=f.adPlacementRenderer)==null?void 0:P.renderer})), contentCpn:I.clientPlaybackNonce}};g.g6("adsClientStateChange",T)}})}; qKJ=function(Z){var I=[],d=Z.sandwichedLinearAdRenderer&&Z.sandwichedLinearAdRenderer.linearAd&&g.y(Z.sandwichedLinearAdRenderer.linearAd,l0);if(d)return I.push(d),I;if(Z.instreamVideoAdRenderer)return I.push(Z.instreamVideoAdRenderer),I;if(Z.linearAdSequenceRenderer&&Z.linearAdSequenceRenderer.linearAds){Z=g.t(Z.linearAdSequenceRenderer.linearAds);for(d=Z.next();!d.done;d=Z.next())d=d.value,g.y(d,l0)&&I.push(g.y(d,l0));return I}return null}; a6J=function(Z,I,d){var Y,T=((Y=d.video)==null?void 0:Y.fps)||0;Y=I+"_"+T;var f=!!d.audio,P={itag:d.itag,Pj:I,iT:f};if(f)P.numChannels=d.audio.numChannels;else{var O=d.video;P.maxWidth=O==null?void 0:O.width;P.maxHeight=O==null?void 0:O.height;P.maxFramerate=T;Bw(Z,wZ.BITRATE)&&(P.maxBitrateBps=d.pS*8);P.By=O==null?void 0:O.isHdr()}O=Z.L.get(Y);O?f||(d=Math.max(O.maxWidth||0,O.maxHeight||0)>Math.max(P.maxWidth||0,P.maxHeight||0)?O:P,I={itag:d.itag,Pj:I,iT:f,maxWidth:Math.max(O.maxWidth||0,P.maxWidth|| 0),maxHeight:Math.max(O.maxHeight||0,P.maxHeight||0),maxFramerate:T,By:d.By},Bw(Z,wZ.BITRATE)&&(I.maxBitrateBps=d.maxBitrateBps),Z.L.set(Y,I)):Z.L.set(Y,P)}; J4D=function(Z,I){this.D=this.L=0;this.L=I.x-Z.x;this.D=I.y-Z.y}; mk=function(){this.L=new Map;this.D=!1}; zh=function(Z){$w.call(this,Z);var I=this;this.Z=1;this.KM=null;this.A9={Or5:function(){return I.Z}}; this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"d6de4videobindingchange",function(d){I.Ag(d)}); this.events.W(Z,"csiinitialized",function(){BTl(I)})}; ooL=function(){}; wL$=function(Z){var I=g.hi("html5-video-player");I&&g.zL(I,"ytp-ad-display-override",Z)}; VT=function(Z,I){var d;return g.h(function(Y){if(Y.L==1)return Z?g.m(Y,g.Mm(gML,I),2):Y.return();d=Y.D;return Y.return(d.delete("databases",Z))})}; T2D=function(Z){var I=SJO();if(I.values){I=I.values;for(var d={},Y=g.t(Object.keys(Z.values)),T=Y.next();!T.done;T=Y.next()){T=T.value;I[T]&&Z.D[T]&&(Z.values[T]+=I[T]-Z.D[T]);var f=Z,P=f;if(!P.values[T]){var O=SJO();P.values=O.values||{};P.A2=O.halfLives||{};P.D=O.values?Object.assign({},O.values):{}}d[T]=f.values[T]&&f.A2[T]?f.values[T]/Math.pow(2,f.L/f.A2[T]):0}Z.D=d}I=Z.A2;d={};d.values=Z.D;d.halfLives=I;g.AU("yt-player-memory",d,2592E3)}; VuB=function(Z,I,d,Y,T,f,P,O){g2.call(this,Z,I,d,Y);this.Q5=T;this.pM=f;this.j=O;this.Gz=!0;this.N=null;this.B=dB(d.clientMetadata,"metadata_type_linked_player_bytes_layout_id");pR(this.pM(),this);this.adPlacementConfig=dB(d.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,this.adPlacementConfig,d.layoutId)}; j2=function(Z){var I=Z.Y("html5_enable_sabr_on_drive")&&Z.nS.LS==="gd";if(Z.Vu)return Z.by&&Z.D1("fds",{fds:!0},!0),!1;if(Z.nS.LS!=="yt"&&!I)return Z.by&&Z.D1("dsvn",{ns:Z.nS.LS},!0),!1;if(Z.cotn||!Z.L||Z.L.isOtf&&!Z.Y("html5_enable_sabr_otf_in_client")||Z.Z&&!Z.Z.L||Z.oA&&!Z.Y("html5_enable_sabr_csdai"))return!1;if(Z.Y("html5_use_sabr_requests_for_debugging"))return!0;Z.by&&Z.D1("esfw",{usbc:Z.by,hsu:!!Z.Vx},!0);if(Z.by&&Z.Vx)return!0;if(Z.Y("html5_remove_client_sabr_determination"))return!1;var d= !Z.L.Qy&&!Z.pF();I=d&&OC&&Z.Y("html5_enable_sabr_vod_streaming_xhr");d=d&&!OC&&Z.Y("html5_enable_sabr_vod_non_streaming_xhr");var Y=Kuu(Z),T=Z.Y("html5_enable_sabr_drm_vod_streaming_xhr")&&OC&&Z.pF()&&!Z.L.Qy&&(Z.drmProduct==="1"?!1:!0);(I=I||d||Y||T)&&!Z.Vx&&Z.D1("sabr",{loc:"m"},!0);return I&&!!Z.Vx}; $F=function(Z){g.k.call(this,{K:"button",zm:["ytp-pip-button","ytp-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{data-tooltip-title}}","data-priority":"8","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-tooltip-target-id":"ytp-pip-button"},G:[NTl()]});var I=this;this.api=Z;this.listen("click",this.onClick);var d=this.api.f6(),Y=d.subscribe("visibilitystatechange",function(){I.qs(d.RB())}); this.addOnDisposeCallback(function(){d.h_(Y)}); pi(Z,this.element,this);this.qs(d.RB())}; aK=function(Z,I,d){ZF.call(this,null,Z,I,d);this.X=Z.isActive();this.V=0}; Ix9=function(Z,I){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=I;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=Z(this.triggerType)}; hW=function(Z){return Math.round(XC()+Z)}; eRO=function(Z){var I,d={},Y=Z.t5,T=Z.nS,f=Z.Bk,P=Y.getVideoData(),O=i$(0),a=Y.getVisibilityState(),W;if((W=Z.bu)==null?0:W.Qx)d.W0=T.W0;O&&(d.SZZ=O,d.lastManualDirection=gGD(),O=ABB()||0,O>0&&(O=(T.Y("html5_use_date_now_for_local_storage")?Date.now():(0,g.o8)())-O,T.Y("html5_use_date_now_for_local_storage")?O>0&&(d.timeSinceLastManualFormatSelectionMs=O):d.timeSinceLastManualFormatSelectionMs=O));O=T.Y("html5_use_streamer_bandwidth_for_low_latency_live")&&P.isLowLatencyLiveStream;if(f.LS&&!O){var e; O=T.Y("html5_disable_bandwidth_cofactors_for_sabr_live")?!((e=Z.bu)==null||!e.U_):!1;d.yN=wG(f,!O)}O=g.HS.medium;W=Math.floor(O*16/9);(e=P.Zt())||(P.L&&P.Z&&P.Z.videoInfos.length!==0?(e=P.Z.videoInfos[0],e=!!e.video&&e.video.width0?{authorizedFormats:Z.authorizedFormats}:{authorizedFormats:I};Z.sabrLicenseConstraint&&(d.hH.sabrLicenseConstraint=Z.sabrLicenseConstraint);if(T.Y("html5_onesie_media_capabilities")||T.Y("html5_enable_server_format_filter"))d.BH= 3;T.Y("html5_onesie_audio_only_playback")&&Nv(P)&&(d.BH=1);var J;((J=Z.bu)==null?0:J.wz)&&Z.Ds5&&(d.BH=d.BH===void 0?7:d.BH|4);J=P.wz?P.wz:g.Lv(P);T.Y("html5_onesie_media_capabilities")&&(d.mediaCapabilities=g.dIL(P,J,T));var v;if((v=Z.bu)==null?0:AF(v)){w=T.B;v=[];I=[];V=new Map;N=Array.from(w.L.values());N=g.t(N);for(q=N.next();!q.done;q=N.next())A=q.value,A.iT?I.push({audioCodec:Iud[A.Pj],numChannels:A.numChannels,spatialCapabilityBitmask:FJJ[A.Pj]}):(F=Z97[A.Pj],q={videoCodec:F,maxWidth:A.maxWidth|| 0,maxHeight:A.maxHeight||0,maxFramerate:A.maxFramerate||0,is10BitSupported:A.By||!1},A.maxBitrateBps&&(q.maxBitrateBps=A.maxBitrateBps,a=e8(A.itag),e=void 0,((e=a)==null?0:e.video)&&Br(J,a,w)===!0&&(a=a.pS*8,a>q.maxBitrateBps&&(q.maxBitrateBps=a))),A=F+"_"+A.By,F=V.get(A)||[],F.push(q),V.set(A,F));v=fmL(v,V);w={};T.Y("html5_ssff_denylist_opus_low")&&(w={itagDenylist:[249,350]});d.mediaCapabilities={videoFormatCapabilities:v,audioFormatCapabilities:I,hdrModeBitmask:3,perPlaybackAttributes:w}}var l; if((l=Z.bu)==null?0:l.L){d.Lf=J.Lf;var X;d.WB=(X=Z.bu)==null?void 0:X.WB}T.aE&&(d.R1=T.aE);d.I3=Z.CB;d.dL=Z.dL;d.JN=Z.JN;d.EK=Z.EK;Z.Td&&(d.nH5=(0,g.o8)()-Z.Td);Z.EF&&T.Y("html5_report_prefetch_requests")&&(d.EF=Z.EF);OC||(d.y5S=!0);l=qy(f)*1E3;l>0&&(d.fh=l);var H;((H=Z.bu)==null?0:H.hL)&&Z.dW&&Z.dW0?x:f.interruptions[0]||0;var Id;if((Id=Z.bu)==null?0:Id.eK)d.QV=Z.QV;T.J5&&(d.audioTrackId=T.J5);qA(P)&&!d.audioTrackId&&(T.Y("html5_fill_default_mosaic_audio_track_id")||(Z=d$7(P,T.Y("html5_cdm_use_first_as_default_audio_track")),d.audioTrackId=Z),P==null||P.D1("misstrkchg",{"default":d.audioTrackId}));if(P=dFu())d.detailedNetworkType=sFa[P]||sFa.other;T.Y("html5_enable_voice_boost")&&(d.ec5=T.ir);return d}; g.tQ=function(Z,I,d){d===void 0?delete Z[I.name]:Z[I.name]=d}; Vvl=function(Z,I,d,Y,T,f){I=x5(Z,I,d,Y);if(I instanceof C)return I;var P=I instanceof mw?new JmL(Z.L,d,I.L):null;Y=ip(Z.D.get(),"SLOT_TYPE_IN_PLAYER");var O=[new yc(Z.L,Y)];Z=[new An(Z.L,d),new du(Z.L,Y)];f=f({slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,r4:"core",slotEntryTrigger:I,slotFulfillmentTriggers:O,slotExpirationTriggers:Z},P);return f instanceof j$?new C(f):{slotId:Y,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:O,slotExpirationTriggers:Z, r4:"core",clientMetadata:new D0([new Jn(f)]),adSlotLoggingData:T}}; hYO=function(Z,I){if(Z.Fm&&Z.Fm.D){if(Z.policy.qb){var d=Uhu(Z.audioTrack);if(d&&d.iT()){var Y=Z.t5;if(Y.KB&&(Y.KB.L=d,d=Y.wK,d.qoe)){d=d.qoe;Y=Y.KB;var T=g.NC(d.provider);nda(d,T,Y)}}}Z.policy.UA&&(d=Uhu(Z.videoTrack))&&d.zx()&&(Y=Z.t5,Y.Wm&&(Y.Wm.L=d,d=Y.wK,d.qoe&&B19(d.qoe,Y.Wm)));I-=isNaN(Z.timestampOffset)?0:Z.timestampOffset;Z.getCurrentTime()!==I&&Z.resume();Z.Of.isSeeking()&&Z.Fm&&!Z.Fm.bT()&&(Y=Z.getCurrentTime()<=I&&I>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),Y[q]=N),w=B+xF[q]+N+((a>>>6|a<<26)^(a>>>11|a<<21)^(a>>>25|a<<7))+(a&W^~a&e),V=((T>>>2|T<<30)^(T>>>13|T<<19)^(T>>>22|T<<10))+(T&f^T&P^f&P),B=w+V,O+=w,q++,q<16?(Y[q]=N=I[d]<<24|I[d+1]<<16|I[d+2]<<8|I[d+3],d+=4):(w= Y[q-2],V=Y[q-15],N=Y[q-7]+Y[q-16]+((w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),Y[q]=N),w=e+xF[q]+N+((O>>>6|O<<26)^(O>>>11|O<<21)^(O>>>25|O<<7))+(O&a^~O&W),V=((B>>>2|B<<30)^(B>>>13|B<<19)^(B>>>22|B<<10))+(B&T^B&f^T&f),e=w+V,P+=w,q++,q<16?(Y[q]=N=I[d]<<24|I[d+1]<<16|I[d+2]<<8|I[d+3],d+=4):(w=Y[q-2],V=Y[q-15],N=Y[q-7]+Y[q-16]+((w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),Y[q]=N),w=W+xF[q]+N+((P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7))+(P&O^ ~P&a),V=((e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10))+(e&B^e&T^B&T),W=w+V,f+=w,q++,q<16?(Y[q]=N=I[d]<<24|I[d+1]<<16|I[d+2]<<8|I[d+3],d+=4):(w=Y[q-2],V=Y[q-15],N=Y[q-7]+Y[q-16]+((w>>>17|w<<15)^(w>>>19|w<<13)^w>>>10)+((V>>>7|V<<25)^(V>>>18|V<<14)^V>>>3),Y[q]=N),w=a+xF[q]+N+((f>>>6|f<<26)^(f>>>11|f<<21)^(f>>>25|f<<7))+(f&P^~f&O),V=((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+(W&e^W&B^e&B),N=B,B=O,O=N,N=e,e=P,P=N,N=W,W=f,f=N,a=T+w,T=w+V,q++;Z.L[0]=T+Z.L[0]|0;Z.L[1]=f+Z.L[1]|0;Z.L[2]=P+Z.L[2]|0;Z.L[3]= O+Z.L[3]|0;Z.L[4]=a+Z.L[4]|0;Z.L[5]=W+Z.L[5]|0;Z.L[6]=e+Z.L[6]|0;Z.L[7]=B+Z.L[7]|0}; SC=function(Z,I){var d=this;this.e7=Z;this.N=this.L=null;this.B=this.i4=NaN;this.Zb=this.requestId=null;this.A9={aW4:function(){return d.range}}; this.MC=Z[0].L.MC;this.D=I||"";this.e7[0].range&&this.e7[0].Z>0&&(q9r(Z)?(this.range=tha(Z),this.Z=this.range.length):(this.range=this.e7[this.e7.length-1].range,this.Z=Ka9(Z)))}; Pg=function(Z,I,d){d=d===void 0?{}:d;this.id=Z;this.mimeType=I;d.pS>0||(d.pS=16E3);Object.assign(this,d);Z=g.t(this.id.split(";"));this.itag=Z.next().value;this.L=Z.next().value;this.containerType=mya(I);this.Pj=fF[this.itag]||""}; ur=function(Z,I,d){Z.zz[Z.LQ+Z.oa*2]=I>>>8&255;Z.zz[Z.LQ+Z.oa*2+1]=I&255;Z.zz[Z.zW+Z.oa]=d&255;Z.oa++;I===0?Z.O_[d*2]++:(Z.matches++,I--,Z.O_[(Zn[d]+256+1)*2]++,Z.XL[(I<256?Y6[I]:Y6[256+(I>>>7)])*2]++);return Z.oa===Z.Hy-1}; p_D=function(Z,I,d,Y,T,f){this.L_=Z;this.S7=I;this.Q5=d;this.D=Y;this.L=T;this.Ms=f}; t$B=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);pF(this.api,"isLifaAdPlaying",function(){return I.api.isLifaAdPlaying()}); this.events.W(Z,"serverstitchedvideochange",function(){var d;(d=I.api.getVideoData())!=null&&d.YF()&&(I.api.isLifaAdPlaying()?(I.playbackRate=I.api.getPlaybackRate(),I.api.setPlaybackRate(1)):I.api.setPlaybackRate(I.playbackRate))}); this.playbackRate=1}; g.rF=function(Z,I){return bQE[Q[32]](this,4,Z,I)}; g.c=function(Z){return Z instanceof Array?Z:of7(g.t(Z))}; Pu=function(Z){this.Gm=bp(Z)}; KC=function(Z,I){this.triggeringSlotId=I;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=Z(this.triggerType)}; pba=function(Z,I){v8(Z,1,I.formatId,Jl,3);ys(Z,2,I.startTimeMs);ys(Z,3,I.durationMs);ys(Z,4,I.Ye);ys(Z,5,I.Id);v8(Z,9,I.EbS,YHE,3);v8(Z,11,I.F1Z,Sla,1);v8(Z,12,I.GM,Sla,1)}; AcO=function(Z){WC.call(this,Z,!1);var I=this;this.suggestedActions={};this.element.setAttribute("data-overlay-order","7");this.W(this.S,"videodatachange",this.onVideoDataChange);this.W(this.S,g.E2("suggested_action_button_visible"),function(d){d=d.id;I.text=d;S9B(I);I.onClickCommand=I.suggestedActions[d];I.enabled=!0;I.XQ()}); this.W(this.S,g.bx("suggested_action_button_visible"),function(d){I.enabled=!1;I.XQ();I.S.removeCueRange(d.id)})}; D89=function(Z,I,d){for(var Y=[],T=0;T0&&(Z.B.fexp=d.join())}d=g.t(Object.keys(Z.B));for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,I=tfE(I,Y,Z.B[Y]);return I}; W7$=function(Z){this.L=new y9;this.D=Z}; JcB=function(Z){Z.B&&Z.j7.element.removeChild(Z.B.element);Z.B=void 0}; DC=function(Z,I,d){d=d===void 0?0:d;Z=xU(S4(Z,I));return Z!=null?Z:d}; Or=function(Z){return{layoutId:Z.kX(),Ib:Z.BU,pN:Z.V5.get(),GF:Z.fN()}}; YdJ=function(Z,I){try{I={detail:"pr."+I},(an(Z.nS)||ed(Z.nS)==="TVHTML5_FOR_KIDS")&&Z.nS.Y("html5_reload_by_kabuki_app")?Z.t5.pj("qoe.restart",1,void 0,VQ(I),"7"):(Z.nj("qoe.restart",I),window.location.reload())}catch(d){}}; g.In=function(Z){return!!(Z.EU||Z.aE||Z.n0||Z.hlsvp||Z.vv())}; RC$=function(Z,I,d){var Y;if(I&&!(I==null?0:(Y=I.sequenceMetaData)==null?0:Y.skipProcessing)&&Z.N){Y=g.t(RYJ);for(var T=Y.next();!T.done;T=Y.next())T=T.value,Z.N[T]&&Z.N[T].handleResponse(I,d)}}; Ea=function(Z,I,d){Z=Z.loader.Fx()||0;return ef(I,(d+Z)*1E3)/1E3+d}; PJa=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V){for(var N=0,q="",A=g.t(Z),F=A.next();!F.done;F=A.next())F=F.value,q||(q=F.itag),F.audioChannels&&F.audioChannels>N&&(N=F.audioChannels,q=F.itag);T=new Pg(T,"application/x-mpegURL",{audio:new QF(0,N),video:new cS(f,P,O,null,void 0,W,void 0,void 0,w),T_:B,Uc:q});Z=new HHB(Z,I,d?[d]:[],Y,!!V);Z.N=e?e:1369843;return new JQ(T,Z,a)}; LJa=function(Z){return Z.S.C().experiments.CS("enable_progres_commands_lr_feeds")}; U8O=function(Z,I){var d=[];if(I=Z.L.get(I.layoutId)){I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next())(Y=Z.D.get(Y.value.triggerId))&&d.push(Y)}return d}; ruE=function(Z,I){var d=[];if(!I.length)return d;for(var Y=0;Yd+1&&I1E3){var Y=Z.interruptions;Y.push(Math.ceil(d));Y.sort(function(T,f){return f-T}); Y.length>16&&Y.pop()}Z.Bj+=d}}Z.B=I}; B$L=function(Z,I,d){d=d===void 0?{}:d;this.error=Z;this.meta=d;this.context=I.context;this.msg=I.message||"";this.id=I.id||"jserror"}; BaE=function(Z,I){Z.focus(I);return Nz(Z,I,4)?M7l(Z).getUint32(I-Z.Z):256*(256*(256*O2(Z,I)+O2(Z,I+1))+O2(Z,I+2))+O2(Z,I+3)}; ySn=function(Z){if(Z.D$&&typeof Z.D$=="function")return Z.D$();if(!Z.O9||typeof Z.O9!="function"){if(typeof Map!=="undefined"&&Z instanceof Map)return Array.from(Z.keys());if(!(typeof Set!=="undefined"&&Z instanceof Set)){if(g.a8(Z)||typeof Z==="string"){var I=[];Z=Z.length;for(var d=0;dZ.policy.Hp?g.Zy(Z.sU):Z.Nc()}; uQn=function(Z){if(Z.L.length===0){var I=new sV;Z.L.push(I);g.z(Z,I);I.i5(Z.y5,0)}for(;Z.L.length>1;)Z.L.pop().dispose();Fv(Z.L[0],"100%");Z.L[0].startTime=0;Z.L[0].title=""}; Tb=function(Z){return tx(Z.cE(),Z.getCurrentTime())}; Ek=function(){}; lPd=function(){var Z=Z===void 0?g.iN:Z;return(Z=Z.performance)&&Z.now?Z.now():null}; bt=function(Z,I){var d={};g.k.call(this,{K:"button",zm:["ytp-playlist-menu-button","ytp-button"],J:(d.title=Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":"",d["data-tooltip-title"]="{{tooltip-title}}",d["aria-owns"]=String(I.element.id),d["aria-haspopup"]="true",d["aria-label"]="Playlist",d["data-overlay-order"]="3",d),G:[{K:"div",T:"ytp-playlist-menu-button-icon",G:[{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"m 22.53,21.42 0,6.85 5.66,-3.42 -5.66,-3.42 0,0 z m -11.33,0 9.06,0 0,2.28 -9.06,0 0,-2.28 0,0 z m 0,-9.14 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z m 0,4.57 13.6,0 0,2.28 -13.6,0 0,-2.28 0,0 z", fill:"#fff"}}]}]},{K:"div",T:"ytp-playlist-menu-button-title",Z1:"{{playlistTitle}}"},{K:"div",T:"ytp-playlist-menu-button-text",Z1:"{{text}}"}]});var Y=this;this.api=Z;this.playlist=null;this.visible=!1;Z.createClientVe(this.element,this,70344);this.W(Z,"videodatachange",this.L);this.W(Z,"videoplayerreset",this.L);this.W(Z,"onPlaylistUpdate",this.L);this.W(Z,"presentingplayerstatechange",this.qs);this.W(Z,"appresize",this.qs);this.hide();this.L();pi(Z,this.element,this);this.listen("click",function(){Z.logClick(Y.element); Z.Y("delhi_web_player_use_external_playlist_panel")?Z.Rn("onToggleExternalPlaylistPanel"):$2(I,Y.element,!1)})}; cuL=function(Z,I){var d=[];if(!I.length)return d;I.sort(g.tb);I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next())Y=Y.value,Z.D.splice(Z.D.indexOf(Y),1),d.push([2,Y]);return d}; PQ=function(Z,I,d,Y){for(var T=d.length;(I=Z.indexOf(d,I))>=0&&Ia&&(f=a-200,Z.X=!0);P&&O.getCurrentTime()>=f/1E3?Z.V():(Z.D=O,P&&(P=f,f=Z.D,Z.app.Wj.addEventListener(g.E2("vqueued"),Z.V),P=isFinite(P)||P/1E3>f.getDuration()?P:0x8000000000000,Z.j=new g.S8(P,0x8000000000000,{namespace:"vqueued"}),f.addCueRange(Z.j)));P=Y/=1E3;f=I.getVideoData().L;Y&&f&&Z.D&&(O=Y,a=0, I.getVideoData().isLivePlayback&&(P=Math.min(d/1E3,Z.D.HB(!0)),a=Math.max(0,P-Z.D.getCurrentTime()),O=Math.min(Y,I.HB()+a)),P=oyn(f,O)||Y,P!==Y&&Z.L.D1("qvaln",{st:Y,at:P,rm:a,ct:O}));I=P;Y=Z.L;Y.getVideoData().zD=!0;Y.getVideoData().V=!0;Y.va(!0);f={};Z.D&&(f=Z.D.VC(),P=Z.D.getVideoData().clientPlaybackNonce,f={crt:(f*1E3).toFixed(),cpn:P});Y.D1("queued",f);I!==0&&Y.seekTo(I+.01,{Lv:!0,Ww:3,H$:"videoqueuer_queued"});Z.Z=new yui(Z.B,Z.app.l5(),Z.L,d,Z.app,T);d=Z.Z;d.status.status!==Infinity&&(HY(d, 1),d.L.subscribe("internalvideodatachange",d.YM,d),d.D.subscribe("internalvideodatachange",d.YM,d),d.q8.C().Y("html5_gapless_use_format_info_fix")&&(d.L.subscribe("internalvideoformatchange",d.YM,d),d.D.subscribe("internalvideoformatchange",d.YM,d)),d.L.subscribe("mediasourceattached",d.YM,d),d.D.subscribe("statechange",d.u2,d),d.L.subscribe("newelementrequired",d.Ii,d),d.YM());return Z.N}; mh=function(Z,I){if(Z.timelyActions){Z=g.t(Z.timelyActions);for(var d=Z.next();!d.done;d=Z.next())if(d=d.value,d.cueRangeId===I)return d}}; zYi=function(){M7.apply(this,arguments)}; cm=function(Z){this.au=3;this.rF=Z;this.defaultValue=!1;this.ju="bool"}; XL7=function(Z,I,d){d=d===void 0?!1:d;Z.UZ=qQ(Z.UZ,I.video_id);Z.Gv=qQ(Z.Gv,I.eventid);Z.Gv&&(xr=Z.Gv);for(var Y=[],T=g.t(Object.keys(kpE)),f=T.next();!f.done;f=T.next()){f=kpE[f.value];var P=I[f];P!=null&&(P!==Z.L[f]&&Y.push(f),Z.L[f]=P)}!d&&Y.length>0&&Z.Zn&&(Y.sort(),g.uL(new g.Wj("Player client parameters changed after startup",Y)));Z.userAge=DJ(Z.userAge,I.user_age);Z.Mj=qQ(Z.Mj,I.user_display_email);Z.userDisplayImage=qQ(Z.userDisplayImage,I.user_display_image);g.lB(Z.userDisplayImage)||(Z.userDisplayImage= "");Z.userDisplayName=qQ(Z.userDisplayName,I.user_display_name);Z.DM=qQ(Z.DM,I.user_gender);Z.csiPageType=qQ(Z.csiPageType,I.csi_page_type);Z.csiServiceName=qQ(Z.csiServiceName,I.csi_service_name);Z.DL=U2(Z.DL,I.enablecsi);Z.pageId=qQ(Z.pageId,I.pageid);if(d=I.enabled_engage_types)Z.enabledEngageTypes=new Set(d.split(","));I.living_room_session_po_token&&(Z.wV=I.living_room_session_po_token.toString())}; tur=function(Z){Z.policy.En&&(Z.mJ=void 0,Z.PK=0)}; $8L=function(Z){Z.updateValue("icon",ot());if(Z.api.C().D)Z.tooltip.wQ(Z.element,"Link copied to clipboard");else{Z.updateValue("title-attr","Link copied to clipboard");Z.updateValue("tooltip-title","Link copied to clipboard");Z.tooltip.Kl();Z.tooltip.wQ(Z.element);var I=Z.listen("mouseleave",function(){Z.a4(I);Z.qs();Z.tooltip.Kp()})}}; pLu=function(Z,I){Z.L||(Z.D=I,Z.Z=(0,g.o8)(),Z.L=new g.qM(function(){XAa(Z)},null),XAa(Z))}; KX=function(Z){return Ch(Z)/Z.playbackRate}; Igr=function(Z){g.k.call(this,{K:"div",T:"ytp-gradient-bottom"});this.D=g.vX("CANVAS");this.L=this.D.getContext("2d",{willReadFrequently:!0});this.Z=NaN;this.D.width=1;x8u(this,Z.cj().getPlayerSize().height)}; nv=function(Z){Z.V=null;Z.Z=null;Z.api.m0()||Z.api.clearQueue()}; N5d=function(Z){return Z.isTimeout?"NO_BID":"ERR_BID"}; g.iV=function(Z,I,d){var Y=g.l8();if(Y&&I){var T=Y.subscribe(Z,function(){function f(){ri[T]&&I.apply&&typeof I.apply=="function"&&I.apply(d||window,P)} var P=arguments;try{g.g4[Z]?f():g.lo(f,0)}catch(O){g.eW(O)}},d); ri[T]=!0;DF[Z]||(DF[Z]=[]);DF[Z].push(T);return T}return 0}; UQ=function(Z,I,d,Y,T,f,P,O,a,W,e,B){g.p.call(this);this.UK=Z;this.slot=I;this.layout=d;this.OP=Y;this.xZ=T;this.V5=f;this.n_=P;this.B$=O;this.pM=a;this.S7=W;this.params=B;this.Gz=!0;Z=IC(e);if(!Z)throw Error("Invalid params for sublayout");this.P$=Z}; w_=function(Z){this.value=Z}; Mi=function(Z){var I=g.LM(Z);return(Z=Number(g.gB(Z)[4]||null)||null)?I+":"+Z:I}; lSi=function(Z,I,d,Y){var T=null;switch(I){case "JSON":try{var f=d.responseText}catch(P){throw Y=Error("Error reading responseText"),Y.params=Z,$6(Y),P;}Z=d.getResponseHeader("Content-Type")||"";f&&Z.indexOf("json")>=0&&(f.substring(0,5)===")]}'\n"&&(f=f.substring(5)),T=JSON.parse(f));break;case "XML":if(Z=(Z=d.responseXML)?D2O(Z):null)T={},g.KM(Z.getElementsByTagName("*"),function(P){T[P.tagName]=Ipd(P)})}Y&&QbJ(T); return T}; g.ZW=function(Z){Z=Z.nM();var I=Z.nN.get("endscreen");return I&&I.PT()?!0:Z.Ve()}; MY=function(Z){g.dx.call(this);this.L=!1;this.jI=0;this.handler=new oK(this);g.z(this,this.handler);this.durationMs=Z;this.timer=new g.qn(100);g.z(this,this.timer);this.handler.W(this.timer,"tick",this.W$);this.D={seekableStart:0,seekableEnd:Z/1E3,current:0};this.start()}; ou=function(Z,I){var d=rH(Z);cY(Z.t5.getPlayerState())&&(d>=I.mediaTime?(I.resolve([I.mediaTime,I.id]),Z.L.delete(I.id)):(I.delay.dispose(),d=(I.mediaTime-d)*1E3/Z.t5.getPlaybackRate(),I.delay=new g.uX(function(){ou(Z,I)},d/2),I.delay.start()))}; Zvn=function(Z,I){return[bn(Z,0,Z.length>>1,I),bn(Z,Z.length>>1)]}; x8u=function(Z,I){if(Z.L){I=Math.floor(I*.4);I=Math.max(I,47);var d=I+2;if(Z.Z!==d){Z.Z=d;Z.D.height=d;Z.L.clearRect(0,0,1,d);var Y=Z.L.createLinearGradient(0,2,0,2+I),T=I-42;Y.addColorStop(0,"rgba(0, 0, 0, 0)");Y.addColorStop(T/I,"rgba(0, 0, 0, 0.3)");Y.addColorStop(1,"rgba(0, 0, 0, 0.68)");Z.L.fillStyle=Y;Z.L.fillRect(0,2,1,I);Z.element.style.height=d+"px";try{Z.element.style.backgroundImage="url("+Z.D.toDataURL()+")"}catch(f){}}}}; KJL=function(Z,I,d,Y,T,f,P,O){g2.call(this,Z,I,d,Y);this.Q5=T;this.pM=f;this.j=O;this.Gz=!0;this.N=null;this.B=dB(d.clientMetadata,"metadata_type_linked_player_bytes_layout_id");pR(this.pM(),this);Z=dB(d.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,Z,d.layoutId)}; FX=function(Z,I,d,Y,T){var f=Z.Gm,P=f[nL]|0;Y=b5(Z,P)?1:Y;T=!!T||Y===3;Y===2&&di(Z)&&(f=Z.Gm,P=f[nL]|0);Z=hr(f,I);var O=Z===Ks?7:Z[nL]|0,a=OW(O,P);var W=4&a?!1:!0;if(W){4&a&&(Z=EZ(Z),O=0,a=bS(a,P),P=xn(f,P,I,Z));for(var e=0,B=0;e0){var e=Y+Number(d.startTimeOffsetMs),B=e+Number(d.cacheFetchSmearingDurationMs);W={Do:new Tu(B,B+Number(W)),Jl:!1,Uy:new Tu(Math.floor(e+Math.random()* Number(d.cacheFetchSmearingDurationMs)),B),cueProcessedMs:Y?Y:e};e=[];e.push(new tS({}));B=[];B.push(new uzL(Z.L));B.push(new tAd(Z.L));P&&e.push(new Dx({}));O.push(qc$(Z,I,T,W,f,e,B))}return O}; eh=function(Z,I){Z.XZ&&Chr(Z);Z.XZ=new g.S8(I*1E3,0x7ffffffffffff);Z.XZ.namespace="endcr";Z.addCueRange(Z.XZ)}; g.PM=function(Z){if(Z.data.getUint8(Z.dataOffset)){var I=Z.data;Z=Z.dataOffset+4;I=I.getUint32(Z)*4294967296+I.getUint32(Z+4)}else I=Z.data.getUint32(Z.dataOffset+4);return I}; r4=function(Z,I,d,Y,T,f){g.dx.call(this);var P=this;this.qC=Z;this.wB=I;this.id=d;this.containerType=Y;this.Pj=T;this.zx=f;this.YW=this.T1=this.Gx=null;this.Fq=!1;this.appendWindowStart=this.timestampOffset=0;this.Iu=JF([],[]);this.Jx=!1;this.OA=[];this.Xs=Edi?[]:void 0;this.handler=function(a){return P.publish(a.type,P)}; var O;if((O=this.qC)==null?0:O.addEventListener)this.qC.addEventListener("updateend",this.handler),this.qC.addEventListener("error",this.handler)}; HJO=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V,N){var q=bJu(T,w,V);if(q instanceof C)return q;var A=[],F=[];q=g.t(q);for(var J=q.next();!J.done;J=q.next()){var v=J.value;J=Z;var l=T[v.yq],X=v,H=I;v=f;var x=P,Id=O,TB=a,dD=W,Qu=e,Zr=VB(l);if(Zr instanceof C)J=Zr;else{var sJ={layoutId:l.adLayoutMetadata.layoutId,layoutType:l.adLayoutMetadata.layoutType,r4:"adapter"};X=Pea(H,l,X,v);X instanceof C?J=X:(J=Object.assign({},sJ,C_,{h5:Zr,renderingContent:l.renderingContent,clientMetadata:new D0(X),Tb:Fo(Id,J)(sJ), adLayoutLoggingData:l.adLayoutMetadata.adLayoutLoggingData}),J=(l=E6(Qu,J,v,x.rb,Id,TB,dD,void 0,!0))?l instanceof C?l:{layout:J,XF:l}:new C("Expecting associatedInPlayerSlot"))}if(J instanceof C)return J;A.push(J.layout);F.push(J.XF)}T={layoutId:d.adLayoutMetadata.layoutId,layoutType:d.adLayoutMetadata.layoutType,r4:"core"};I=[new J6(Number(d.driftRecoveryMs)),new LS(w),new tT(V),new Xj(sE(I)),new Ck(B),new Dx({})];N&&I.push(new tS({}));return{VG:Object.assign({},T,Y,{Ai:A,h5:new Map,clientMetadata:new D0(I), Tb:Fo(O,Z)(T)}),je:F}}; XJi=function(Z){Z.menuItem||(Z.menuItem=new uJ(Z.api),g.z(Z,Z.menuItem),Z.menuItem.qs(Z.L))}; qH=function(Z){return window.Int32Array?new Int32Array(Z):Array(Z)}; ezJ=function(Z){if(Z.w4)return["f"];if(g.y1("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var I=["9h","9","h","8"];Z.o4&&I.push("1e");I=I.concat(["(h","(","H","*"]);Z.Bj&&(I.unshift("1"),I.unshift("1h"));Z.Lf&&I.unshift("h");Z.In&&(I=(ccO[Z.In]||[Z.In]).concat(I));return I}; M5E=function(Z){var I=!!Hg(GU().zv,"umt");return Z.In||!I&&!Z.Tm?0:1}; g.R$=function(Z){return"/youtubei/v1/"+IYi(Z)}; L$=function(Z){this.L=Z;this.offset=0}; Mud=function(Z){return iOr()===2?g.zG(Z,gdl):Z}; rc9=function(Z){var I=this;var d=d===void 0?0:d;var Y=Y===void 0?g.zF():Y;this.Z=d;this.scheduler=Y;this.D=new g.f2;this.L=Z;for(Z={Uo:0};Z.Uo=0?Z:NaN}; iw7=function(Z){var I=Z.api.C(),d=Z.api.getVideoData(),Y=Z.api.cj().getPlayerSize().width;I=I.Z;return!!d.videoId&&Y>=Z.D&&d.X1&&!d.IN&&!Z.api.isEmbedsShortsMode()&&!I}; hXJ=function(Z){var I;return(Z==null?void 0:(I=Z.adSlotMetadata)==null?void 0:I.slotType)==="SLOT_TYPE_IN_PLAYER"}; KY=function(Z){var I=qT(pY);return I?Z[I]:void 0}; wxO=function(Z,I,d){ZK===null&&(ZK=window.MediaSource&&MediaSource.isTypeSupported&&MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.16.09.00"')&&!MediaSource.isTypeSupported('video/webm; codecs="vp09.02.51.10.01.09.99.99.00"'));if(IiB&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return ZK||d!=="9"&&d!=="("?ZK||d!=="9h"&&d!=="(h"||(Z='video/webm; codecs="vp9.2"'):Z='video/webm; codecs="vp9"',Z;if(!ZK&&!Jj9||Z!=='video/webm; codecs="vp9"'&&Z!=='video/webm; codecs="vp9.2"')return Z; d="00";var Y="08",T="01",f="01",P="01";Z==='video/webm; codecs="vp9.2"'&&(d="02",Y="10",I.primaries==="bt2020"&&(P=T="09"),I.L==="smpte2084"&&(f="16"),I.L==="arib-std-b67"&&(f="18"));return'video/webm; codecs="'+["vp09",d,"51",Y,"01",T,f,P,"00"].join(".")+'"'}; Ia=function(Z){this.au=3;this.rF=Z;this.defaultValue=0;this.ju="double"}; Qm=function(Z,I,d){var Y=new Kt(d);if(!wH(Y,Z))return!1;Y=VA(Y);if(!e1(Y,I))return!1;for(Z=0;I;)I>>>=8,Z++;I=Y.start+Y.pos;var T=F2(Y,!0);Y=Z+(Y.start+Y.pos-I)+T;Y=Y>9?y5l(Y-9,8):y5l(Y-2,1);Z=I-Z;d.setUint8(Z++,236);for(I=0;IY.startSeconds&&eh(Z,Y.endSeconds);Z.wE.finished=!0;Lk(Z,"dataloaded");Z.Wa.xJ()&&vA(Z);l39(Z.xe,Z.ZR)}}); Z.Y("html5_log_media_perf_info")&&Z.D1("loudness",{v:Z.videoData.u8.toFixed(3)},!0);var I,d=(I=Z.mediaElement)==null?void 0:I.gK();if(d&&"disablePictureInPicture"in d&&Z.U.gG)try{d.disablePictureInPicture=Z.U.gf&&!Z.videoData.backgroundable}catch(Y){g.uL(Y)}LY9(Z);Z.rA=new D_J(Z.videoData)}else Lk(Z,"dataloaded")}; yA=function(Z,I){Z[I]||(Z[I]=new u2O);return Z[I]}; E4B=function(Z){Z=Z===void 0?null:Z;return Z!=null&&(Z=Z.thumbnail,Z!=null&&Z.thumbnails!=null&&Z.thumbnails.length!=0&&Z.thumbnails[0].width!=null&&Z.thumbnails[0].height!=null)?new g.qv(Z.thumbnails[0].width||0,Z.thumbnails[0].height||0):new g.qv(0,0)}; aIO=function(Z,I){var d=Z.Vt({playerType:1});if(d){if(d.getVideoData().clientPlaybackNonce===I)return d;if((Z=Z.VL.L)&&Z.getVideoData().clientPlaybackNonce===I)return Z}return null}; DQa=function(Z){Z.Ns||(Z.Ns=(0,g.o8)(),g.aI("oafs_rp",Z.Ns,Z.L))}; WGi=function(Z,I){if(I<0)return"0";Z=Math.floor(Math.min(I,Z.api.getDuration())*1E3);return Z>2147483647?"0":String(Z)}; z89=function(Z,I,d){d=d===void 0?{}:d;return iql(Z,I,d)}; ejJ=function(Z){this.L=Z}; BWu=function(Z){for(var I=g.t(Z.D.values()),d=I.next();!d.done;d=I.next())Z.playback.removeCueRange(d.value);Z.D.clear();Z.kS.clearAll()}; g.ej=function(Z,I){g.k.call(this,{K:"button",zm:["ytp-play-button","ytp-button"],J:{title:Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},Z1:"{{icon}}"});this.S=Z;this.L=null;this.transition=new K9;this.tooltip=I.EP();g.z(this,this.transition);Z.createClientVe(this.element,this,36842);Z.logVisibility(this.element,!0);this.W(Z,"fullscreentoggled",this.onVideoDataChange); this.W(Z,"presentingplayerstatechange",this.onStateChange);this.W(Z,"videodatachange",this.onVideoDataChange);this.XT(Z.getPlayerStateObject());this.listen("click",this.tf,this);this.addOnDisposeCallback(g.my(I.EP(),this.element))}; d0B=function(Z,I){var d={};I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next())if((Y=Y.value)&&Y.video){var T=Y.video.qualityOrdinal,f=d[T],P=f&&IO(f)&&f.video.qualityOrdinal>Z.policy.WB,O=T<=Z.policy.WB?IO(Y):RP(Y);if(!f||P||O)d[T]=Y}return d}; g.Nw=function(Z,I){return na(Z,I)>0}; w0B=function(Z,I){Z=Z.flags.get(""+I);return Number(Z)||0}; ZJ=function(Z,I,d){var Y=[],T=Z.track.qC;if(T){T=T.LN();for(var f=0;ff?T=0:Y[P]>Z.buffered[P]&&(P===f-1?T=2:P===f-2&&Y[P+1]>Z.buffered[P+1]&&(T=3))}Z.L.add(I<<3|(d&&4)|T);I=Math.ceil(Z.track.VC()*1E3);Z.L.add(I-Z.B);Z.B=I;if(T===1)for(Z.L.add(f),P=I=0;P=2&&Z.L.add(Y[f- 1]-Z.buffered[f-1]);d&&Z.L.add(d);Z.buffered=Y}; uG=function(Z){var I;if(I=Z.In&&Z.Z!=null)Z=Z.Z,I=!(!Z.L||!Z.L.keyStatuses);return I}; RH=function(Z,I){var d;return(d=Z.My)==null?void 0:d.get(I)}; aPi=function(Z,I){Z.Z=I}; sh=function(){var Z=/Chrome\/(\d+)/.exec(g.Vs());return Z?parseFloat(Z[1]):NaN}; F3=function(Z,I,d){d=d===void 0?0:d;var Y=Z.mimeType||"",T=Z.itag;var f=Z.xtags;T=T?T.toString():"";f&&(T+=";"+f);f=T;if($0B(Y)){var P=Z.width||640;T=Z.height||360;var O=Z.fps,a=Z.qualityLabel,W=Z.qualityOrdinal,e=Z.colorInfo,B=Z.projectionType,w;Z.stereoLayout&&(w=VE9[Z.stereoLayout]);var V=fO9(Z)||void 0;if(e==null?0:e.primaries)var N=NWn[e.primaries]||void 0;P=new cS(P,T,O,B,w,void 0,a,W&&FGL[W],V,N);Y=wxO(Y,P,fF[Z.itag||""]);ER7&&(Y+="; enableflushduringseek=true");bI$&&(Y+="; enableresetaudiodecoder=true")}var q; if(ZnE(Y)){var A=Z.audioSampleRate;w=Z.audioTrack;A=new QF(A?+A:void 0,Z.audioChannels,Z.spatialAudioType,Z.isDrc,Z.loudnessDb,Z.trackAbsoluteLoudnessLkfs,Z.audioQuality||"AUDIO_QUALITY_UNKNOWN",Z.isVb);w&&(N=w.displayName,T=w.id,w=w.audioIsDefault,N&&(q=new g.PA(N,T||"",!!w)))}var F;Z.captionTrack&&(a=Z.captionTrack,w=a.displayName,N=a.vssId,T=a.languageCode,O=a.kind,a=a.id,w&&N&&T&&(F=new zUn(w,N,T,O,Z.xtags,a)));w=Number(Z.bitrate)/8;N=Number(Z.contentLength);T=Number(Z.lastModified);a=Z.drmFamilies; O=Z.type;d=d&&N?N/d:0;Z=Number(Z.approxDurationMs);if(I&&a){var J={};a=g.t(a);for(W=a.next();!W.done;W=a.next())(W=soB[W.value])&&(J[W]=I[W])}return new Pg(f,Y,{audio:A,video:P,uo:q,T_:J,pS:w,mV:d,contentLength:N,lastModified:T,captionTrack:F,streamType:O,approxDurationMs:Z})}; oa=function(Z){return Z.Z?!1:!Z.keySystemAccess&&!!z_()&&Z.keySystem==="com.microsoft.playready"}; pCB=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})}; nur=function(Z){return Z===-0x8000000000000?"BEFORE_MEDIA_START":Z===0?"MEDIA_START":Z===0x7ffffffffffff?"MEDIA_END":Z===0x8000000000000?"AFTER_MEDIA_END":Z.toString()}; f9=function(Z,I){var d={N8:[],sF:[]},Y;if((Z=Z.X)==null)Z=void 0;else{nil(Z,Z.N8,"og");UkD(Z,I);nil(Z,Z.N8,"trim");var T=N4n(Z);I=T.N8;T=T.s9;for(var f=[],P=0;P0){var w=OT(B,a);w>=0&&(e=(B.end(w)-a+.1)*1E3)}f.push({formatId:g.eU(O.info.L.info,Z.u5.Qy), UM:O.info.UM,sequenceNumber:O.info.YS+Z.N,iN:W,bD:O.info.Z,Jj:e})}Z={N8:I,sF:f}}return(Y=Z)!=null?Y:d}; Pb=function(Z){this.S=Z;this.adVideoId=this.L=this.videoId=this.adCpn=this.contentCpn=null;this.B=!0;this.D=this.Z=!1;this.adFormat=null;this.N="AD_PLACEMENT_KIND_UNKNOWN";this.actionType="unknown_type";this.videoStreamType="VIDEO_STREAM_TYPE_VOD"}; el=function(Z,I,d,Y){I=I===void 0?{}:I;if(Y===void 0?0:Y)return I.disabled=1,0;if(Bw(Z.B,wZ.AV1_CODECS)&&Bw(Z.B,wZ.HEIGHT)&&Bw(Z.B,wZ.BITRATE))return I.isCapabilityUsable=1,8192;try{var T=SIO();if(T&&!Z.Y("disable_av1_setting"))return I.localPref=T}catch(O){}Y=1080;T=navigator.hardwareConcurrency;T<=2&&(Y=480);I.coreCount=T;if(T=g.Q4(Z.experiments,"html5_default_av1_threshold"))Y=I["default"]=T;if(Z=Z.B.kS)I.mcap=Z,Y=Math.max(Y,Z);if(d){var f,P;if(Z=(f=d.videoInfos.find(function(O){return IO(O)}))== null?void 0:(P=f.D)==null?void 0:P.powerEfficient)Y=8192,I.isEfficient=1; d=d.videoInfos[0].video;f=Math.min(d1("1",d.fps),d1("1",30));I.perfCap=f;Y=Math.min(Y,f);d.isHdr()&&!Z&&(I.hdr=1,Y*=.75)}else d=d1("1",30),I.perfCap30=d,Y=Math.min(Y,d),d=d1("1",60),I.perfCap60=d,Y=Math.min(Y,d);return I.av1Threshold=Y}; np=function(Z,I){I.sort(function(f,P){function O(a){Zv("TriggerCategoryOrder enum does not contain trigger category: "+a)} return f.category===P.category?f.trigger.triggerId.localeCompare(P.trigger.triggerId):hjl(f.category,O)-hjl(P.category,O)}); var d=new Map;I=g.t(I);for(var Y=I.next();!Y.done;Y=I.next())if(Y=Y.value,UY(Z.L,Y.slot))if(Fc(Z.L,Y.slot).j)Fc(Z.L,Y.slot).X.push(Y);else{Z.Wk.zp("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",Y.slot,Y,Y.layout);var T=d.get(Y.category);T||(T=[]);T.push(Y);d.set(Y.category,T)}I=g.t(jx7);for(Y=I.next();!Y.done;Y=I.next())T=g.t(Y.value),Y=T.next().value,T=T.next().value,(Y=d.get(Y))&&wGr(Z,Y,T);(I=d.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&Ga$(Z,I);(I=d.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&Ymd(Z, I);(d=d.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&rzJ(Z,d)}; Mz=function(Z,I){if(!Z)throw new TypeError("Expected instream video ad renderer");if(!Z.playerVars)throw new TypeError("Expected player vars in url encoded string");var d=aW(Z.playerVars),Y=Number(d.length_seconds);if(isNaN(Y))throw new TypeError("Expected valid length seconds in player vars");var T=Number(Z.trimmedMaxNonSkippableAdDurationMs);Y=isNaN(T)?Y:Math.min(Y,T/1E3);T=Z.playerOverlay||{};T=T.instreamAdPlayerOverlayRenderer===void 0?null:T.instreamAdPlayerOverlayRenderer;var f=Z.playerOverlay|| {};f=f.playerOverlayLayoutRenderer===void 0?null:f.playerOverlayLayoutRenderer;var P=d.video_id;P||(P=(P=Z.externalVideoId)?P:void 0);if(!P)throw new TypeError("Expected valid video id in IVAR");if(I&&Y===0){var O;I=(O=ma$[P])!=null?O:Y}else I=Y;return{playerVars:d,videoLengthSeconds:I,instreamAdPlayerOverlayRenderer:T,playerOverlayLayoutRenderer:f,adVideoId:P,h5:Z.pings?yO(Z.pings):new Map,iK:n0(Z.pings)}}; SXJ=function(){var Z=Z===void 0?qX7():Z;return Z.map(function(I){return Mv(I)})}; ia=function(Z,I){I>>>=0;Z>>>=0;if(I<=2097151)var d=""+(4294967296*I+Z);else yz()?d=""+(BigInt(I)<>>24|I<<8)&16777215,I=I>>16&65535,Z=(Z&16777215)+d*6777216+I*6710656,d+=I*8147497,I*=2,Z>=1E7&&(d+=Z/1E7>>>0,Z%=1E7),d>=1E7&&(I+=d/1E7>>>0,d%=1E7),d=I+dmn(d)+dmn(Z));return d}; AEE=function(Z){g.t6(XYn)("action_finished",Z,void 0)}; g.DaD=function(Z){Z=g.gB(Z);return Md(Z[1],Z[2],Z[3],Z[4])}; JI=function(Z,I,d,Y,T,f,P,O,a){g.p.call(this);this.N=Z;this.j=I;this.B=d;this.Z=Y;this.L=T;this.D=f;this.hZ=P;this.Ms=O;this.V5=a;this.Gz=!0}; lJ=function(Z,I){g.w9.call(this,g.KD({role:"menuitemcheckbox","aria-checked":"false"}),I,Z,{K:"div",T:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; JEB=function(Z){g.GA.call(this,Z,{K:"div",T:"ytp-playlist-menu",J:{role:"dialog",id:$$()},G:[{K:"div",T:"ytp-playlist-menu-header",G:[{K:"div",T:"ytp-playlist-menu-title",G:[Z.C().Z?{K:"span",T:"ytp-playlist-menu-title-name",Z1:"{{title}}"}:{K:"a",T:"ytp-playlist-menu-title-name",J:{href:"{{playlisturl}}"},Z1:"{{title}}"},{K:"button",zm:["ytp-playlist-menu-close","ytp-button"],J:{"aria-label":"Close"},G:[g.Hz()]}]},{K:"div",T:"ytp-playlist-menu-subtitle",Z1:"{{subtitle}}"}]},{K:"div",T:"ytp-playlist-menu-items", J:{role:"menu"}}]},250);this.api=Z;this.D=this.selected=this.Z=this.playlist=null;this.items=this.KS("ytp-playlist-menu-items");this.L=new g.De(this);this.playlistData=[];this.W(this.KS("ytp-playlist-menu-close"),"click",this.zb);var I=this.KS("ytp-playlist-menu-title-name");Z.C().Z||(this.D=this.W(I,"click",this.vFr));g.z(this,this.L);this.hide()}; Rj$=function(Z,I){return g.BT(Z,{query:I},function(d){return d.delete().then(function(){return g.w1(d)})}).then(function(){})}; LGr=function(Z,I){var d;if(((d=Z.xl)==null?void 0:d.type)==="repeatChapter"||(I==null?void 0:I.type)==="repeatChapter")I&&(I=Z.L[P7(Z.L,I.startTimeMs)],g.zL(I.L,"ytp-repeating-chapter",!1)),Z.xl&&(I=Z.L[P7(Z.L,Z.xl.startTimeMs)],g.zL(I.L,"ytp-repeating-chapter",!0)),Z.L.forEach(function(Y){g.zL(Y.L,"ytp-exp-chapter-hover-container",!Z.xl)})}; g.Ym=function(){}; dQO=function(Z){Z=jOi(Z);return LP(Z)}; iB=function(Z){for(;Z.V.length;)Z.V.pop().dispose()}; q7B=function(Z){switch(typeof Z){case "boolean":return Uan||(Uan=[0,void 0,!0]);case "number":return Z>0?void 0:Z===0?yE9||(yE9=[0,void 0]):[-Z,void 0];case "string":return[0,Z];case "object":return Z}}; R7=function(Z,I){this.nS=Z;this.author="";this.fQ=null;this.playlistLength=0;this.L=this.sessionData=null;this.X={};this.title="";if(I){this.author=I.author||I.playlist_author||"";this.title=I.playlist_title||"";if(Z=I.session_data)this.sessionData=UE(Z,"&");var d;this.L=((d=I.thumbnail_ids)==null?void 0:d.split(",")[0])||null;this.X=WK(I,"playlist_");this.videoId=I.video_id||void 0;if(d=I.list)switch(I.listType){case "user_uploads":this.playlistId=(new Ss("UU","PLAYER_"+d)).toString();break;default:if(Z= I.playlist_length)this.playlistLength=Number(Z)||0;this.playlistId=SN(d).toString();if(I=I.video)this.videoId=(I[0]||null).video_id||void 0}else I.playlist&&(this.playlistLength=I.playlist.toString().split(",").length)}}; vua=function(){return!!g.T2("yt-player-headers-readable")}; B4=function(Z,I,d){d=d===void 0?!1:d;var Y=Z.C().j7?{"aria-keyshortcuts":"m","aria-label":"{{aria-label}}","data-title-no-tooltip":"{{data-title-no-tooltip}}","data-priority":"{{dataPriority}}","data-tooltip-offset-y":"{{dataTooltipOffsetY}}","data-tooltip-title":"{{tooltip-title}}",title:Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":""}:{"aria-disabled":"true","aria-haspopup":"true"};Y=Z.Y("delhi_modern_web_player")?{K:"div",T:"ytp-mute-button",G:[{K:"button",J:Y,zm:["ytp-volume-icon", "ytp-button"],Z1:"{{icon}}"}]}:{K:"button",zm:["ytp-mute-button","ytp-button"],J:Y,G:[{K:"div",T:"ytp-volume-icon",Z1:"{{icon}}"}]};g.k.call(this,Y);this.S=Z;this.mJ=d;this.D=null;this.j=this.Ns=this.X=this.V=NaN;this.fS=this.LS=null;this.B=[];this.N=[];this.visible=!1;this.Z=this.L=this.kS=null;Z.Y("delhi_modern_web_player")&&this.update({"data-priority":4});d=this.S.C();this.updateValue("icon",eM());this.tooltip=I.EP();this.updateValue("dataTooltipOffsetY",0);this.Z=g.hi("ytp-volume-icon",this.element); Y=this.S.Y("delhi_modern_web_player_icons")?{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",zm:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],J:{d:"M 11.60 2.08 L 11.48 2.14 L 3.91 6.68 C 3.02 7.21 2.28 7.97 1.77 8.87 C 1.26 9.77 1.00 10.79 1 11.83 V 12.16 L 1.01 12.56 C 1.07 13.52 1.37 14.46 1.87 15.29 C 2.38 16.12 3.08 16.81 3.91 17.31 L 11.48 21.85 C 11.63 21.94 11.80 21.99 11.98 21.99 C 12.16 22.00 12.33 21.95 12.49 21.87 C 12.64 21.78 12.77 21.65 12.86 21.50 C 12.95 21.35 13 21.17 13 21 V 3 C 12.99 2.83 12.95 2.67 12.87 2.52 C 12.80 2.37 12.68 2.25 12.54 2.16 C 12.41 2.07 12.25 2.01 12.08 2.00 C 11.92 1.98 11.75 2.01 11.60 2.08 Z", fill:"#fff"}},{K:"path",T:"ytp-svg-volume-animation-small-ripple",J:{d:" M 15.53 7.05 C 15.35 7.22 15.25 7.45 15.24 7.70 C 15.23 7.95 15.31 8.19 15.46 8.38 L 15.53 8.46 L 15.70 8.64 C 16.09 9.06 16.39 9.55 16.61 10.08 L 16.70 10.31 C 16.90 10.85 17 11.42 17 12 L 16.99 12.24 C 16.96 12.73 16.87 13.22 16.70 13.68 L 16.61 13.91 C 16.36 14.51 15.99 15.07 15.53 15.53 C 15.35 15.72 15.25 15.97 15.26 16.23 C 15.26 16.49 15.37 16.74 15.55 16.92 C 15.73 17.11 15.98 17.21 16.24 17.22 C 16.50 17.22 16.76 17.12 16.95 16.95 C 17.6 16.29 18.11 15.52 18.46 14.67 L 18.59 14.35 C 18.82 13.71 18.95 13.03 18.99 12.34 L 19 12 C 18.99 11.19 18.86 10.39 18.59 9.64 L 18.46 9.32 C 18.15 8.57 17.72 7.89 17.18 7.3 L 16.95 7.05 L 16.87 6.98 C 16.68 6.82 16.43 6.74 16.19 6.75 C 15.94 6.77 15.71 6.87 15.53 7.05", fill:"#fff"}},{K:"path",T:"ytp-svg-volume-animation-big-ripple",J:{d:"M18.36 4.22C18.18 4.39 18.08 4.62 18.07 4.87C18.05 5.12 18.13 5.36 18.29 5.56L18.36 5.63L18.66 5.95C19.36 6.72 19.91 7.60 20.31 8.55L20.47 8.96C20.82 9.94 21 10.96 21 11.99L20.98 12.44C20.94 13.32 20.77 14.19 20.47 15.03L20.31 15.44C19.86 16.53 19.19 17.52 18.36 18.36C18.17 18.55 18.07 18.80 18.07 19.07C18.07 19.33 18.17 19.59 18.36 19.77C18.55 19.96 18.80 20.07 19.07 20.07C19.33 20.07 19.59 19.96 19.77 19.77C20.79 18.75 21.61 17.54 22.16 16.20L22.35 15.70C22.72 14.68 22.93 13.62 22.98 12.54L23 12C22.99 10.73 22.78 9.48 22.35 8.29L22.16 7.79C21.67 6.62 20.99 5.54 20.15 4.61L19.77 4.22L19.70 4.15C19.51 3.99 19.26 3.91 19.02 3.93C18.77 3.94 18.53 4.04 18.36 4.22 Z", fill:"#fff"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"defs",G:[{K:"clipPath",J:{id:"ytp-svg-volume-animation-mask"},G:[{K:"path",J:{d:"m 14.35,-0.14 -5.86,5.86 20.73,20.78 5.86,-5.91 z"}},{K:"path",J:{d:"M 7.07,6.87 -1.11,15.33 19.61,36.11 27.80,27.60 z"}},{K:"path",T:"ytp-svg-volume-animation-mover",J:{d:"M 9.09,5.20 6.47,7.88 26.82,28.77 29.66,25.99 z"}}]},{K:"clipPath",J:{id:"ytp-svg-volume-animation-slash-mask"},G:[{K:"path",T:"ytp-svg-volume-animation-mover", J:{d:"m -11.45,-15.55 -4.44,4.51 20.45,20.94 4.55,-4.66 z"}}]}]},{K:"path",ZU:!0,zm:["ytp-svg-fill","ytp-svg-volume-animation-speaker"],J:{"clip-path":"url(#ytp-svg-volume-animation-mask)",d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}},{K:"path",ZU:!0,zm:["ytp-svg-fill","ytp-svg-volume-animation-hider"],J:{"clip-path":"url(#ytp-svg-volume-animation-slash-mask)",d:"M 9.25,9 7.98,10.27 24.71,27 l 1.27,-1.27 Z", fill:"#fff"}}]};this.D=new g.Y$(Y);g.z(this,this.D);this.LS=this.D.KS("ytp-svg-volume-animation-speaker");this.fS=this.LS.getAttribute("d");this.B=g.df("ytp-svg-volume-animation-mover",this.D.element);this.S.Y("delhi_modern_web_player_icons");this.N=g.df("ytp-svg-volume-animation-hider",this.D.element);this.S.Y("delhi_modern_web_player_icons");this.j7=new K9;g.z(this,this.j7);this.Bj=new K9;g.z(this,this.Bj);this.W(Z,"appresize",this.Y6);this.W(Z,"onVolumeChange",this.onVolumeChange);Z.Y("delhi_modern_web_player")? this.listen("click",this.kxm):this.listen("click",this.W_);d.j7?(Z.Y("delhi_modern_web_player")&&!Z.Y("delhi_modern_web_player_horizontal_volume_controls")&&(this.L=new IWr(Z,I),this.L.i5(this.element),g.z(this,this.L),this.W(this.Z,"mouseover",this.Q2),this.W(this.Z,"focus",this.Q2),this.W(this.Z,"mouseout",this.n3),this.W(this.Z,"blur",this.n3)),d=Z.Y("delhi_modern_web_player")?this.Z:this.element,this.addOnDisposeCallback(g.my(I.EP(),d))):vlD(this);this.message=null;Z.createClientVe(this.element, this,28662);this.Y6(Z.cj().getPlayerSize());this.setVolume(Z.getVolume(),Z.isMuted())}; lIB=function(Z){var I=new Set,d=new Map,Y={};Z=g.t(Z);for(var T=Z.next();!T.done;T=Z.next()){T=T.value;var f=T.quality,P=T.isPlayable,O=T.qualityLabel;O&&f&&(P&&d.has(f)&&d.get(f)!==O?I.add(f):P&&d.set(f,O),Y[O]||(Y[O]=T))}d=[];Y=g.t(Object.values(Y));for(Z=Y.next();!Z.done;Z=Y.next())T=Z.value,(Z=T.quality)&&!I.has(Z)&&(T.formatId=void 0),d.push(T);return d}; $E=function(Z){for(;Z.L.L;)try{var I=Z.D(Z.L);if(I)return Z.L.V=!1,{value:I.value,done:!1}}catch(d){Z.L.D=void 0,pL(Z.L,d)}Z.L.V=!1;if(Z.L.Z){I=Z.L.Z;Z.L.Z=null;if(I.W9)throw I.CP;return{value:I.return,done:!0}}return{value:void 0,done:!0}}; g.qN=function(Z){return ed(Z).toUpperCase()==="WEB"}; X77=function(Z){return{downloadedEndTime:-1,maxKnownEndTime:Math.round(Z.L.index.EG()),averageByteRate:Math.round(Z.L.info.mV)}}; C5D=function(Z,I){function d(TB){TB.readyState===2&&Z.On("ps_c")} var Y,T,f,P,O,a,W,e,B,w,V,N,q,A,F,J,v,l,X,H,x,Id;return g.h(function(TB){switch(TB.L){case 1:I.fetchType="gp";Y=Z.C();T=g.NF(Y,g.VO(I));if(!T.L){f=T.getValue();TB.xS(2);break}return g.m(TB,T.L,3);case 3:f=TB.D;case 2:return P=f,O=dLi(P),a=OcB(I,Z.getPlayerSize(),Z.getVisibilityState()),W=g.R$(ubi),e=g.VO(I),B=(0,g.o8)(),w=!1,V="empty",N=0,Z.On("psns"),q={n$:d},g.m(TB,g.L9(O,a,W,void 0,q),4);case 4:A=TB.D;Z.On("psnr");if(I.OZ())return TB.return();A?"error"in A&&A.error?(w=!0,V="esf:"+A.error.message, N=A.error.code):A.errorMetadata&&(w=!0,V="its",N=A.errorMetadata.status):w=!0;if(w)return F=0,J=((0,g.o8)()-B).toFixed(),v={},v=Y.Y("html5_use_network_error_code_enums")?{backend:"op",rc:N,rt:J,reason:V,has_kpt:I.M8?"1":"0",has_mdx_env:I.mdxEnvironment?"1":"0",has_omit_key_flag:g.rh("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Y.pageId?"1":"0",has_token:e?"1":"0",has_vvt:I.j7?"1":"0",is_mdx:I.isMdxPlayback?"1":"0",mdx_ctrl:I.SI||"",token_eq:e===g.VO(I)?"1":"0"}:{backend:"op", rc:""+N,rt:J,reason:V,has_kpt:I.M8?"1":"0",has_mdx_env:I.mdxEnvironment?"1":"0",has_omit_key_flag:g.rh("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT")?"1":"0",has_page_id:Y.pageId?"1":"0",has_token:e?"1":"0",has_vvt:I.j7?"1":"0",is_mdx:I.isMdxPlayback?"1":"0",mdx_ctrl:I.SI||"",token_eq:e===g.VO(I)?"1":"0"},l="manifest.net.connect",N===429?(l="auth",F=2):N>200&&(l="manifest.net.badstatus",N===400&&(F=2)),TB.return(Promise.reject(new g.dj(l,v,F)));I.loading=!1;g.eA(I,{raw_player_response:A},!0); X=A;g.bZ(I.C())&&X&&X.trackingParams&&rl(X.trackingParams);if(I.errorCode)return H={ec:I.errorCode,ed:I.errorDetail,es:I.aU||""},TB.return(Promise.reject(new g.dj("auth",H,2)));if(!I.loading&&!BA(I))return x=I.isAd()?"auth":"manifest.net.retryexhausted",Id=I.isAd()?2:1,TB.return(Promise.reject(new g.dj(x,{successButUnplayable:"1",hasMedia:g.In(I)?"1":"0"},Id)));g.v6(TB)}})}; G0u=function(Z,I,d){if(I){var Y=I.adLayoutLoggingData;g.Zb(g.zF(),function(){Z.D!=null&&Y&&g.g6("adsSeenClientLogging",{serializedAdServingDataEntry:Y.serializedAdServingDataEntry})},d!=null?d:0)}}; CP=function(Z,I){I.length!==0&&(Z.Z.push(I),Z.D+=I.length)}; HY=function(Z,I){I<=Z.status.status||(Z.status={status:I,error:null},I===5&&Z.t6.resolve())}; zjr=function(Z,I){if(I&&Z.hlsvp)return Qv();if(Z.hlsFormats){I=f5(Z.hlsFormats);var d;if(((d=Z.wz)==null?0:d.D)&&I){d=[];for(var Y=g.t(I),T=Y.next();!T.done;T=Y.next())d.push(T.value.itag);Z.D1("hlsfmt",{itags:d.join(".")})}Z.DL=HPB(Z.nS,I);Z.DL&&WLD(Z,Z.DL);d=Z.clientPlaybackNonce;var f,P,O,a;return Q3r(Z.nS,Z.isAd(),I,(a=(f=Z.playerResponse)==null?void 0:(P=f.captions)==null?void 0:(O=P.playerCaptionsRenderer)==null?void 0:O.baseUrl)!=null?a:null,Z.SK,d,function(W){return Z.publish("ctmp","hlsflt", W)}).then(function(W){for(var e=0,B=[],w=g.t(W),V=w.next();!V.done;V=w.next()){V=V.value; var N=void 0;B.push((N=V.getInfo())==null?void 0:N.itag);var q=N=void 0;((N=V.getInfo())==null?void 0:(q=N.audio)==null?void 0:q.numChannels)>e&&(e=V.getInfo().audio.numChannels)}e>2&&Z.D1("hlschl",{mn:e});var A;((A=Z.wz)==null?0:A.D)&&Z.D1("hlsfmtaf",{itags:B.join(".")});var F;if(Z.Y("html5_enable_vp9_fairplay")&&((F=Z.B)==null?0:dH(F)))for(Z.D1("drm",{sbdlfbk:1}),e=g.t(Z.xM),B=e.next();!B.done;B=e.next())if(B=B.value,kZ(B)){Z.B=B;break}PZ(Z,W)})}return Qv()}; IyJ=function(Z,I,d){return Math.ceil(Math.max(Math.max(Z.policy.ZL,Z.policy.Yf*d),Math.min(Math.min(Z.policy.w4,31*d),Math.ceil(I*d))))||Z.policy.ZL}; zI=function(Z){this.value=Z}; k0u=function(Z,I,d,Y,T,f,P,O,a,W){var e=T-Y,B,w=((B=Z.fulfilledLayout||dB(Z.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:dB(B.clientMetadata,"metadata_type_ssdai_ads_config"))||"",V,N;(B=(V=dB(Z.clientMetadata,"metadata_type_triggering_cue_point"))==null?void 0:(N=V.current)==null?void 0:N.identifier)||Zv("Cue point identifier is undefined",Z,I,a());if(!e)return P.gL(d,w,2,f,Y,T,Z.slotId,B),J1(W,"ads_iraot","slid."+I.layoutId+";enterMs."+Y+";exitMs."+T+";vid."+d.video_id),null;e= P.ov(d,w,2,f,Y,T,Z.slotId,B);J1(W,"ads_atct","slid."+I.layoutId+";enterMs."+Y+";exitMs."+T+";vid."+d.video_id+";pid."+e+";cid."+B);if(!e)return Zv("Unexpected failure to add to playback timeline",Z,I,a()),null;Z=Z.slotId;I=I.layoutId;e?(O.L.has(e)&&Zv("Unexpected remap of timeline playback"),O.L.set(e,{slotId:Z,layoutId:I})):Zv("Invalid timeline playback ID");Y+f>T&&P.vV(e,T-Y);return e}; X0l=function(Z){if(Z.timer===void 0){var I=Math.max(0,Z.L+Z.D-fp());Z.timer=setTimeout(function(){try{Z.callback()}finally{Z.L=fp(),Z.timer=void 0}},I)}}; tEL=function(){}; F6=function(Z){this.value=Z}; g.$aD=function(Z,I){Z%=I;return Z*I<0?Z+I:Z}; WuO=function(Z){g.g0(Z.j);Z.j=NaN}; td=function(Z,I,d,Y){Y=Y===void 0?null:Y;g.dx.call(this);this.element=Z;this.videoData=I;this.U=d;this.mediaElement=Y;this.Z=[];this.mJ=2;this.Tm=this.fS=!1;this.heartbeatParams=null;this.Bj=this.In=!1;this.B=null;this.j7=!1;this.L=this.videoData.B;this.drmSessionId=this.videoData.drmSessionId||g.$_a();this.D=new Map;this.j=new Nc;this.V=new Nc;this.kS=new g.De(this);this.Ns=this.U.Y("html5_eme_ignore_teardown_errors");(Z=this.element)&&(Z.addKey||Z.webkitAddKey)||z_()||iK$(d.experiments);this.U.Y("html5_enable_vp9_fairplay")&& dH(this.L)?d=p0B:(d=this.videoData.ZM,d=this.L.flavor==="fairplay"||d?nb:p0B);this.X=d;this.N=new jQ(this.element,this.L,this.Ns);g.z(this,this.N);oa(this.L)&&(this.LS=new jQ(this.element,this.L,this.Ns),g.z(this,this.LS));g.z(this,this.kS);d=this.element;this.L.keySystemAccess?this.kS.W(d,"encrypted",this.J9m):dG(this.kS,d,oa(this.L)?["msneedkey"]:["needkey","webkitneedkey"],this.fUm);TrJ(this);a:switch(d=this.L,Z=this.U.experiments,I=this.D,d.flavor){case "fairplay":gL()>19.2999?(Z=d.yD,d=d.Gy, d>=Z&&(d=Z*.75),I=(Z-d)*.5,d=new cp(I,Z,Z-I-d,this)):d=null;break a;case "widevine":d=new Sb(I,this,Z);break a;default:d=null}if(this.B=d)g.z(this,this.B),this.B.subscribe("rotated_need_key_info_ready",this.Y_,this),this.B.subscribe("log_qoe",this.wd,this);iK$(this.U.experiments);this.wd({cks:this.L.getInfo()})}; xai=function(Z,I,d,Y){if(Math.random()<(Y||Z.L))try{if(d instanceof Pc)var T=d;else T=new Pc,$f(d,function(P,O){var a=T,W=a.N++;P=mS(O,P);a.L.push(W);a.D[W]=P}); var f=T.VI(Z.D,"pagead2.googlesyndication.com","/pagead/gen_204?id="+I+"&");f&&(Ot(),xhB(f))}catch(P){}}; A2D=function(Z){var I;(I=Z.Hk)==null||I.stop();Z.j.hide();Z.B.hide();TM(Z)}; i7=function(){this.mappings=new X2D}; r2L=function(Z){g.zA.call(this,Z,"ytp-settings-menu");var I=this;this.UP=new g.Kv(this.S);this.nB=this.N2=this.settingsButton=null;this.isInitialized=this.s5=!1;g.z(this,this.UP);this.hide();g.Li(this,this.UP);Z.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(T){I.XQ(T)}); this.W(Z,"highlightSettingsMenu",function(){I.s5=!0;I.dn()}); this.W(Z,"openSettingsMenuItem",function(T){if(T&&(I.s5=!0,I.dn(),T==="menu_item_video_quality_advanced")){var f;(f=I.N2)==null||f.open()}}); var d,Y;((d=this.S.C())==null?0:(Y=d.getWebPlayerContextConfig())==null?0:Y.enableFullscreenComponentsFeature)&&this.W(this.element,"wheel",function(T){T.stopPropagation()})}; zi=function(Z,I,d){if(ax(Z.Ms.get())){var Y=Z.L.get(I)||0;Y++;Z.L.set(I,Y);return d+"_"+I+"_"+Y}return g.LY(16)}; wpr=function(Z){g.TA(Z.L,function(I){I.N>1E5||++I.N})}; yN$=function(Z,I,d){BQJ(Z.L,function(Y){return Y.f_>=I&&Y.Mc<=d})}; jXd=function(Z,I){I=I===void 0?null:I;if(Z.L.keySystemAccess){var d,Y;if(((d=I)==null?0:d.j)&&((Y=I.t5)==null?0:Y.qj())){var T;Z.D=(T=I)==null?void 0:T.j;return Promise.resolve()}return Z.L.keySystemAccess.createMediaKeys().then(function(P){if(!Z.OZ()){Z.D=P;var O;(O=Z.element)==null||O.setMediaKeys(P);var a;I&&((a=I.t5)==null?0:a.qj())&&(I.j=P)}})}if(oa(Z.L))Z.Z=new (z_())(Z.L.keySystem); else if(ga9(Z.L)){Z.Z=new (z_())(Z.L.keySystem);var f;(f=Z.element)==null||f.webkitSetMediaKeys(Z.Z)}else fdB(Z);return null}; JWE=function(Z,I){return I==null?null:Z.Z.find(function(d){return d.Xm().layoutId===I})||null}; wla=function(Z,I){I=I===void 0?document:I;return I.createElement(String(Z).toLowerCase())}; CK$=function(Z){return KGl.then(Z)}; T6=function(){this.V=[];this.X=[];this.L=[];this.kS=[];this.B=[];this.In=[];this.Z=new Map;this.j=new Map;this.D=new Set;this.Ns=new Map}; Eul=function(Z,I){Z.VX?(I=I.vss_host||"s.youtube.com",I==="s.youtube.com"&&(I=Mi(Z.UI)||"www.youtube.com")):I="video.google.com";return I}; beD=function(Z){return"getAllKeys"in IDBObjectStore.prototype?js(Z.L.getAllKeys(void 0,void 0)):Px7(Z)}; rU=function(Z){lJ.call(this,"Loop",g.D$.AF);this.S=Z;var I=Z.Y("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M17.29 1.29C17.11 1.46 17.01 1.70 17.00 1.94C16.98 2.19 17.06 2.43 17.22 2.63L17.29 2.70L18.58 4H7C5.67 4 4.40 4.52 3.46 5.46C2.52 6.40 2 7.67 2 9V13C2 13.26 2.10 13.51 2.29 13.70C2.48 13.89 2.73 14 3 14C3.26 14 3.51 13.89 3.70 13.70C3.89 13.51 4 13.26 4 13V9C4 8.20 4.31 7.44 4.87 6.87C5.44 6.31 6.20 6 7 6H18.58L17.29 7.29C17.11 7.48 17.01 7.73 17.01 7.99C17.01 8.25 17.11 8.50 17.30 8.69C17.49 8.88 17.74 8.98 18.00 8.98C18.26 8.98 18.51 8.88 18.70 8.70L22.41 5L18.70 1.29L18.63 1.22C18.43 1.06 18.19 .98 17.94 1.00C17.70 1.01 17.46 1.11 17.29 1.29ZM21 10C20.73 10 20.48 10.10 20.29 10.29C20.10 10.48 20 10.73 20 11V15C20 15.79 19.68 16.55 19.12 17.12C18.55 17.68 17.79 18 17 18H5.41L6.70 16.70C6.80 16.61 6.87 16.50 6.93 16.38C6.98 16.26 7.01 16.12 7.01 15.99C7.01 15.86 6.98 15.73 6.93 15.60C6.88 15.48 6.81 15.37 6.71 15.28C6.62 15.18 6.51 15.11 6.39 15.06C6.26 15.01 6.13 14.98 6.00 14.98C5.87 14.98 5.73 15.01 5.61 15.06C5.49 15.12 5.38 15.19 5.29 15.29L1.58 19L5.29 22.70L5.36 22.77C5.56 22.92 5.80 23.00 6.04 22.99C6.29 22.98 6.52 22.87 6.70 22.70C6.87 22.52 6.98 22.29 6.99 22.04C7.00 21.80 6.92 21.56 6.77 21.36L6.70 21.29L5.41 20H17C18.32 20 19.59 19.47 20.53 18.53C21.47 17.59 22 16.32 22 15V11C22 10.73 21.89 10.48 21.70 10.29C21.51 10.10 21.26 10 21 10Z", fill:"white"}}]}:jpi();this.setIcon(I);this.subscribe("select",this.D,this);Z.createClientVe(this.element,this,28661);this.W(Z,"settingsMenuVisibilityChanged",this.L);this.listen("click",this.logClick);this.W(Z,"onLoopChange",this.onLoopChange);Mk(this,Z.getLoopVideo());Z.sI().vk(this)}; I6=function(Z){Z=IK(Z.cg);return!!Z&&Z.loaded}; hO=function(Z){return Z&128?vg:void 0}; xP=function(Z,I,d){this.instance=Z;this.L=d;this.exports=this.instance.exports;I.wasi_snapshot_preview1.exports=this.exports;Z=Math.floor(Math.random()*256);I=Math.floor(Math.random()*256);d=0;try{d=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,d,16)).fill(Z);if(this.exports.sentinel(d,16,I)!==I*16%256)throw"wasm.wm.vi";for(var Y=new Uint8Array(this.exports.memory.buffer,d,16),T=0;T<16;T++)if(Y[T]!==(Z+I)%256)throw"wasm.wm.vi"+T;}finally{d!==0&&this.exports.free(d)}}; Pyd=function(Z,I){var d=Z.length-I.length;return d>=0&&Z.indexOf(I,d)==d}; He$=function(Z,I){Z.L&&Ri$(Z.L,I)}; lt=function(Z){var I=g.qN(Z.api.C())&&(Z.api.Y("web_shorts_pip")||Z.api.Y("web_watch_pip")),d;return!((d=Z.api.getVideoData())==null?0:d.isLivePlayback)&&!Z.api.isMinimized()&&!Z.api.isInline()&&(!Z.api.RB()||!I)}; cED=function(Z){var I,d,Y,T=((I=g.y(Z.acceptButton,g.Ji))==null?void 0:(d=I.text)==null?void 0:(Y=d.runs)==null?void 0:Y.length)&&!!g.y(Z.acceptButton,g.Ji).text.runs[0].text,f,P,O;I=((f=g.y(Z.dismissButton,g.Ji))==null?void 0:(P=f.text)==null?void 0:(O=P.runs)==null?void 0:O.length)&&!!g.y(Z.dismissButton,g.Ji).text.runs[0].text;return T||I}; g.Vq=function(Z,I,d){Z=Z.L.openCursor(I.query===void 0?null:I.query,I.direction===void 0?"next":I.direction);return Bf(Z).then(function(Y){return BD(Y,d)})}; g.f6=function(Z){return Z.nN.get("annotations_module")}; gud=function(Z){Ab(Z,"impression")&&!Ab(Z,"seek")&&Z.vO("active_view_viewable")}; Sbr=function(Z,I,d,Y){return new iA(Z,I,{opacity:d},{opacity:Y},{property:"opacity",duration:I,timing:"ease-in",delay:0})}; MEJ=function(Z,I,d,Y,T){this.callback=Z;this.slot=I;this.layout=d;this.Q5=Y;this.PJ=T;Z=dB(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.EZ=new oq(d.h5,this.Q5,Z,d.layoutId)}; Pri=function(Z,I,d,Y,T){TnE=!1;var f=(0,g.o8)();I.ticks.gelc=f;p5++;g.x9("disable_compression_due_to_performance_degredation")&&f-I.startTime>=mXB&&(xa++,g.x9("abandon_compression_after_N_slow_zips")?p5===g.EQ("compression_disable_point")&&xa>qMa&&(fN=!1):fN=!1);SM7(I);Y.headers||(Y.headers={});Y.headers["Content-Encoding"]="gzip";Y.postBody=Z;Y.postParams=void 0;T(d,Y)}; RN=function(Z){this.value=Z}; rE7=function(Z,I,d){var Y=[],T=I?156595:151874;Z=g.t(Z);for(var f=Z.next();!f.done;f=Z.next()){var P=f.value;f=P.video;P={formatId:P.id,qualityLabel:f.qualityLabel,quality:f.quality,isPlayable:I};if(f=d.get(f.qualityLabel))P.paygatedQualityDetails={paygatedIndicatorText:f.paygatedIndicatorText,endpoint:f.endpoint,veType:T,trackingParams:f.trackingParams};Y.push(P)}return Y}; Zmn=function(Z){var I=Zj(Z.ly().L,1);return uT(Z,I)}; HV=function(Z,I){var d=Z.Y("web_fix_annotations")?"Annotated Overlays":"Annotations";lJ.call(this,d,g.D$.j6);this.S=Z;this.A5=I;this.L=!1;Z.Y("web_settings_menu_icons")&&(I=Z.Y("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M9.65 6.00L9.5 6H2.5L2.34 6.00C1.97 6.04 1.63 6.21 1.38 6.49C1.13 6.77 1.00 7.12 1 7.5V13.5L1.00 13.65C1.04 14.02 1.21 14.36 1.49 14.61C1.77 14.86 2.12 15 2.5 15H4.5L3.81 17.75C3.77 17.89 3.77 18.03 3.79 18.17C3.82 18.31 3.87 18.45 3.95 18.56C4.03 18.68 4.14 18.78 4.26 18.85C4.38 18.92 4.51 18.97 4.66 18.99L4.78 19H8.55L8.72 18.98C8.88 18.95 9.04 18.89 9.17 18.79C9.30 18.68 9.40 18.55 9.47 18.40L9.52 18.24L10.62 13.96C10.84 13.11 10.96 12.24 10.99 11.36L11 10.98V7.5C11 7.12 10.86 6.77 10.61 6.49C10.36 6.21 10.02 6.04 9.65 6.00ZM21.65 6.00L21.5 6H14.5L14.34 6.00C13.97 6.04 13.63 6.21 13.38 6.49C13.13 6.77 13 7.12 13 7.5V13.5L13.00 13.65C13.04 14.02 13.21 14.36 13.49 14.61C13.77 14.86 14.12 15 14.5 15H16.5L15.81 17.75C15.77 17.89 15.77 18.03 15.79 18.17C15.82 18.31 15.87 18.44 15.95 18.56C16.03 18.68 16.14 18.78 16.26 18.85C16.38 18.92 16.51 18.97 16.66 18.99L16.78 19H20.55L20.72 18.98C20.88 18.95 21.04 18.89 21.17 18.79C21.30 18.68 21.40 18.55 21.47 18.40L21.52 18.24L22.62 13.96C22.84 13.11 22.96 12.24 22.99 11.36L23 10.98V7.5C23 7.12 22.86 6.77 22.61 6.49C22.36 6.21 22.02 6.04 21.65 6.00ZM3 13V8H9V10.98C9.00 11.71 8.91 12.44 8.76 13.16L8.68 13.47L7.78 17H6.06L6.44 15.48L7.06 13H3ZM15 13V8H21V10.98C21 11.71 20.91 12.44 20.76 13.16L20.68 13.47L19.78 17H18.06L18.44 15.48L19.06 13H15Z", fill:"white"}}]}:{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M17.5,7c1.93,0,3.5,1.57,3.5,3.5c0,1-0.53,4.5-0.85,6.5h-2.02l0.24-1.89l0.14-1.09l-1.1-0.03C15.5,13.94,14,12.4,14,10.5 C14,8.57,15.57,7,17.5,7 M6.5,7C8.43,7,10,8.57,10,10.5c0,1-0.53,4.5-0.85,6.5H7.13l0.24-1.89l0.14-1.09l-1.1-0.03 C4.5,13.94,3,12.4,3,10.5C3,8.57,4.57,7,6.5,7 M17.5,6C15.01,6,13,8.01,13,10.5c0,2.44,1.95,4.42,4.38,4.49L17,18h4c0,0,1-6,1-7.5 C22,8.01,19.99,6,17.5,6L17.5,6z M6.5,6C4.01,6,2,8.01,2,10.5c0,2.44,1.95,4.42,4.38,4.49L6,18h4c0,0,1-6,1-7.5 C11,8.01,8.99,6,6.5,6L6.5,6z", fill:"white"}}]},this.setIcon(I));this.W(Z,"videodatachange",this.qs);this.W(Z,"onApiChange",this.qs);this.subscribe("select",this.onSelect,this);this.qs()}; t77=function(Z){if(!UT(Z.adLayoutMetadata))return!1;if(g.y(Z.renderingContent,V6D)||g.y(Z.renderingContent,m3))return!0;var I=g.y(Z.renderingContent,Va);return g.y(Z.renderingContent,nz)||g.y(I==null?void 0:I.sidePanel,Iqu)||g.y(I==null?void 0:I.sidePanel,wFO)||g.y(I==null?void 0:I.sidePanel,duL)?!0:!1}; og9=function(Z){return{I2:BK(Z,1,cT9)}}; Ok$=function(Z){Z=Z.VI();if(!Z)return!1;Z=g.Wt(Z).exp||"";return Z.includes("xpv")||Z.includes("xpe")}; xj=function(){return{K:"svg",J:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},G:[{K:"path",J:{d:"M 17 8.6 L 10.89 4.99 C 9.39 4.11 7.5 5.19 7.5 6.93 C 7.5 6.93 7.5 6.93 7.5 6.93 L 7.5 29.06 C 7.5 30.8 9.39 31.88 10.89 31 C 10.89 31 10.89 31 10.89 31 L 17 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z M 17 8.6 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 V 27.4 C 17 27.4 17 27.4 17 27.4 C 17 27.4 17 27.4 17 27.4 L 33 18 C 33 18 33 18 33 18 C 33 18 33 18 33 18 V 18 L 17 8.6 C 17 8.6 17 8.6 17 8.6 C 17 8.6 17 8.6 17 8.6 Z", fill:"white"}}]}}; g.J2=function(Z,I,d,Y){return new mY(g.HS[Z]||0,g.HS[I]||0,d,Y)}; nV=function(Z){g.p.call(this);var I=this;this.t5=Z;this.uX=0;this.j=this.D=this.B=!1;this.N=0;this.nS=this.t5.C();this.videoData=this.t5.getVideoData();this.Z=g.Q4(this.nS.experiments,"html5_delayed_retry_count");this.L=new g.uX(function(){I.t5.K6()},g.Q4(this.nS.experiments,"html5_delayed_retry_delay_ms")); g.z(this,this.L)}; SO=function(Z,I,d,Y,T,f,P){var O=O===void 0?new sY$(function(){var a=Z.C(),W=Z.getVideoData(1);return g.NF(a,W?g.VO(W):"")},function(){return Z.C().pageId},function(){return Z.C().Ns},function(){var a; return(a=Z.C().datasyncId)!=null?a:""},function(){return Z.C().experiments}):O; this.S=Z;this.D=I;this.Df=d;this.V5=Y;this.Wk=T;this.Ms=f;this.eF=P;this.N=O;this.Jg=null;this.L=new Map;this.Z=new dd7(O,this.Ms)}; Kh9=function(Z){RJ(Z,g.rh("RAW_COLD_CONFIG_GROUP"));yl(Z,g.rh("SERIALIZED_COLD_HASH_DATA"));var I;Z1u(Z,(I=Z.L)==null?void 0:I.configData)}; PJ=function(Z,I,d){xn(Z,Z[nL]|0,I,d,hO(Z[nL]|0))}; UV=function(Z){cc.call(this,Z.getAvailablePlaybackRates()[0],Z.getAvailablePlaybackRates()[Z.getAvailablePlaybackRates().length-1],.05,Z.getPlaybackRate(),{K:"div",T:"ytp-speedslider-indicator-container",G:[{K:"div",T:"ytp-speedslider-badge"},{K:"p",T:"ytp-speedslider-text"}]});this.S=Z;this.LS=YO(this.Ns,50,this);g.xw(this.D,"ytp-speedslider");this.X=this.KS("ytp-speedslider-text");this.kS=this.KS("ytp-speedslider-badge");YpJ(this);this.W(this.D,"change",this.Bj)}; uR=function(Z,I){g.p.call(this);var d=this;this.Z=[];this.V=!1;this.D=0;this.B=this.j=this.N=!1;this.LS=null;var Y=(0,g.u5)(Z,I);this.L=new g.uX(function(){return Y(d.LS)},300); g.z(this,this.L);this.In=this.X=Infinity}; g.b2=function(Z,I,d){g.zL(Z.element,"ytp-suggestion-set",!!I.videoId);var Y=I.playlistId;d=I.uT(d?d:"mqdefault.jpg");var T=null,f=null;I instanceof Lz&&(I.lengthText?(T=I.lengthText||null,f=I.Tr||null):I.lengthSeconds&&(T=g.ft(I.lengthSeconds),f=g.ft(I.lengthSeconds,!0)));var P=!!Y;Y=P&&SN(Y).type==="RD";var O=I instanceof Lz?I.isLivePlayback:null,a=I instanceof Lz?I.isUpcoming:null,W=I.author,e=I.shortViewCount,B=I.publishedTimeText,w=[],V=[];W&&w.push(W);e&&(w.push(e),V.push(e));B&&V.push(B);d= {title:I.title,author:W,author_and_views:w.join(" \u2022 "),aria_label:I.ariaLabel||g.yd("Watch $TITLE",{TITLE:I.title}),duration:T,timestamp:f,url:I.EM(),is_live:O,is_upcoming:a,is_list:P,is_mix:Y,background:d?"background-image: url("+d+")":"",views_and_publish_time:V.join(" \u2022 "),autoplayAlternativeHeader:I.m1};I instanceof R7&&(d.playlist_length=I.playlistLength);Z.update(d)}; g.uUE=function(Z,I){pmn(Z,{yVS:g.Q4(I.experiments,"bg_vm_reinit_threshold"),cspNonce:I.cspNonce,UI:I.UI||""})}; d4n=function(Z,I){Uj(Z,1,I.name);Uj(Z,2,I.value)}; j0L=function(Z,I){Z.attestationResponse&&UBB(Z).then(function(d){d=d||{};d.method="POST";d.postParams={atr:Z.attestationResponse};Z.fS?Z.j7?a5().sendAndWrite(I,d):a5().sendThenWrite(I,d):g.kk(I,d)})}; Byi=function(Z,I,d){Z.u5=I;Z.bu=d;I=g.t(Z.lQ);for(d=I.next();!d.done;d=I.next()){var Y=g.t(d.value);d=Y.next().value;Y=Y.next().value;for(var T=g.t(Y.lB),f=T.next();!f.done;f=T.next()){f=f.value;var P=rl9(Z,d,f);dJ$(Z,f.iP,Y,P)}}}; Cqn=function(Z){for(var I="",d=Object.keys(Z),Y=0;YI.video.height;if(Y&&(Z.Fm.X=!0,SJ('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return d=LtJ(d),Z.policy.Z&&Z.D1("sp4k",{s:!!d}),d}; F8$=function(){var Z=window.H5vccPlatformService,I="";if(Z&&Z.has("dev.cobalt.coat.clientloginfo")&&(Z=Z.open("dev.cobalt.coat.clientloginfo",function(){}))){var d=Z.send(new ArrayBuffer(0)); d&&(I=String.fromCharCode.apply(String,g.c(new Uint8Array(d))));Z.close()}return I}; sQ=function(){y_.apply(this,arguments)}; JIB=function(Z,I){Z.B=I;Z.Z&&(Z.Z.Z=I);Z.B.U2(Z.videoTrack.L.info.DR());Z.j.D=Z.B;Z.policy.D&&(Z.D.V=Z.B)}; DZd=function(Z){if(!Z.isInitialized){Z.isInitialized=!0;try{var I=vG(),d=GU(),Y=zU();Gm=I;d.Z=79463069;Z.D!=="o"&&(ZCJ=L4O(JB));if(dRu()){uI.L.Sk=0;uI.L.GU=vG()-I;var T=DKu(),f=lz(Ay);f.D=T;nP$(f,function(){xOi()})?uI.done||(kzi(),Y0(f.L.L,Z),nn()):Y.Z?xOi():nn()}else ll=!0}catch(P){throw hG.reset(),P; }}}; Tw=function(Z,I){return Z+"_"+I.videoId+"_"+I.uQ+"_"+ +I.isAutonav+ +I.yX}; aq9=function(Z,I,d){Z=g.t(Z.D);for(var Y=Z.next();!Y.done;Y=Z.next())Y.value.Ny(I,d)}; i1i=function(Z,I,d,Y,T,f,P){var O=ip(Z.D.get(),I);return oY(Z,O,I,new $o(Z.L,T,["normal"]),[new An(Z.L,d),new du(Z.L,O),new $o(Z.L,Y,["error"])],f,P)}; TzD=function(Z){if(Z.KQ&&Z.rQ){var I=Hg(Z.zv,"od")==1,d=zU().L,Y=Z.rQ,T=Z.oN?Z.oN.getName():"ns",f=Z.NH,P=new g.qv(Zu(d),d.getHeight());d=Z.bd();Z={vo5:T,NH:f,P4r:P,bd:d,qc:Z.Y$.qc,Rc5:I};if(I=Y.D){I.jc();T=I.In;f=T.N.L;var O=P=null;T.j!=null&&f&&(P=T.Z,P=new g.vS(P.left-f.left,P.top-f.top),O=new g.qv(f.right-f.left,f.bottom-f.top));T=d?Math.max(T.L,T.B):T.L;d={vo5:I.getName(),NH:P,P4r:O,bd:d,Rc5:!1,qc:T}}else d=null;d&&qHr(Y,Z,d)}}; et=function(Z,I){return Z.L===I.L?Z.range&&I.range?Z.range.start+Z.D+Z.Z===I.range.start+I.D:Z.YS===I.YS?Z.D+Z.Z===I.D:Z.YS+1===I.YS&&I.D===0&&Z.N:!1}; L8=function(Z){g.Zy(Z.EU)}; jQ=function(Z,I,d){d=d===void 0?!1:d;g.p.call(this);this.element=Z;this.L=I;this.V=d;this.j={};this.N=null;this.B=new g.De(this);this.Z=this.D=null;g.z(this,this.B)}; LZ=function(Z,I,d,Y,T,f,P,O){g.p.call(this);var a=this;this.D=Z;this.Z=I;this.sP=Y;this.S7=T;this.Ms=f;this.Q5=P;this.n_=O;this.L=null;d.get().addListener(this);this.addOnDisposeCallback(function(){d.OZ()||d.get().removeListener(a)}); Y.get().addListener(this);this.addOnDisposeCallback(function(){Y.OZ()||Y.get().removeListener(a)})}; j7u=function(Z){var I=Z.kS;isFinite(I)&&(gI(Z)?Z.refresh():(I=Math.max(0,Z.Tm+I-(0,g.o8)()),Z.B||(Z.B=new g.uX(Z.refresh,I,Z),g.z(Z,Z.B)),Z.B.start(I)))}; ty=function(){var Z=Z===void 0?!0:Z;try{window.sessionStorage.removeItem("stickiness_reload");window.sessionStorage.removeItem("session_logininfo");m9("LOGIN_INFO","");Z&&window.sessionStorage.setItem("from_switch_account","1");Z=!0;Z=Z===void 0?!1:Z;var I,d=Wll;d||(d=document.querySelector("#persist_identity"));if(I=d){var Y=I.src?(new URL(I.src)).origin:"*";if(Z){var T;(T=I.contentWindow)==null||T.postMessage({action:"clear"},Y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>= 2)){var f=window.sessionStorage.getItem("session_logininfo");if(f){var P;(P=I.contentWindow)==null||P.postMessage({loginInfo:f},Y)}}}}catch(O){}}; eZl=function(Z){g.k.call(this,{K:"div",T:"ytp-shorts-title-channel",G:[{K:"a",T:"ytp-shorts-title-channel-logo",J:{href:"{{channelLink}}",target:Z.C().In,"aria-label":"{{channelLogoLabel}}"}},{K:"div",T:"ytp-shorts-title-expanded-heading",G:[{K:"div",T:"ytp-shorts-title-expanded-title",G:[{K:"a",Z1:"{{expandedTitle}}",J:{href:"{{channelTitleLink}}",target:Z.C().In,tabIndex:"0"}}]}]}]});var I=this;this.api=Z;this.L=this.KS("ytp-shorts-title-channel-logo");this.channelName=this.KS("ytp-shorts-title-expanded-title"); this.subscribeButton=null;Z.createClientVe(this.L,this,36925);this.W(this.L,"click",function(d){I.api.logClick(I.L);g.T4(window,wM7(I));d.preventDefault()}); Z.createClientVe(this.channelName,this,37220);this.W(this.channelName,"click",function(d){I.api.logClick(I.channelName);g.T4(window,wM7(I));d.preventDefault()}); gfO(this);this.W(Z,"videodatachange",this.qs);this.W(Z,"videoplayerreset",this.qs);this.qs()}; D9=function(Z,I,d){I.startSecs+=isNaN(Z.X)?0:Z.X;Z=Z.u5;Z.Bj.push(I);Z.publish("cuepointsadded",d)}; wn=function(Z){return Z.Pj==="mac3"||Z.Pj==="meac3"||Z.Pj==="m"||Z.Pj==="i"}; Be7=function(Z,I,d,Y,T){var f=d.wm;var P=d.HO;var O=Z.player.C().Qx,a=0;d.cueProcessedMs&&P&&!f&&(d=P.end-P.start,d>0&&(a=Math.floor(d/1E3)));var W={AD_BLOCK:T,AD_BREAK_LENGTH:f?f.QI:a,AUTONAV_STATE:rq(Z.player.C()),CA_TYPE:"image",CPN:Z.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:Z.player.T0()*1E3,LACT:YE(),LIVE_INDEX:f?Z.Z++:1,LIVE_TARGETING_CONTEXT:f&&f.context?f.context:"",MIDROLL_POS:P?Math.round(P.start/1E3):0,MIDROLL_POS_MS:P?Math.round(P.start):0,VIS:Z.player.getVisibilityState(), P_H:Z.player.cj().BJ().height,P_W:Z.player.cj().BJ().width,YT_REMOTE:O?O.join(","):""},e=LR(gy);Object.keys(e).forEach(function(B){e[B]!=null&&(W[B.toUpperCase()]=e[B].toString())}); Y!==""&&(W.BISCOTTI_ID=Y);Y={};t_(I)&&(Y.sts="20360",(Z=Z.player.C().forcedExperiments)&&(Y.forced_experiments=Z));return U4(g.yg(I,W),Y)}; c4=function(Z){this.L=(Z=g.Lu(Z))?new JV(Z):null;this.D=document.domain||window.location.hostname}; TJB=function(Z,I){Z.policy.V&&Z.loader.D1("sabrcrq",{create:1});return we$(Z,new S0(0,Z.u5.In,Z),I)}; aN=function(Z){g.p.call(this);var I=this;this.AZ=Z;this.Z="keydown keypress keyup input focusin focusout select copy cut paste change click dblclick auxclick pointerover pointerdown pointerup pointermove pointerout dragenter dragleave drag dragend mouseover mousedown mouseup mousemove mouseout touchstart touchend touchmove wheel".split(" ");this.D=void 0;this.O8=this.AZ.p;this.N=this.RW.bind(this);this.addOnDisposeCallback(function(){return void V_9(I)})}; g.bl=function(Z,I,d,Y,T){Zk||t8.set(""+Z,I,{maxAge:d,path:"/",domain:Y===void 0?"youtube.com":Y,secure:T===void 0?!1:T})}; Lb=function(Z,I){return cIu(Z,function(d){return d.L},I===void 0?!0:I)}; Ne9=function(Z){return Z.S.C().experiments.CS("enable_desktop_discovery_video_abandon_pings")||an(Z.S.C())}; rE=function(Z){var I={};Z=Z.split("&");Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())d=d.value.split("="),d.length===2&&(I[d[0]]=d[1]);return I}; HC9=function(Z){Z.CONN=r1(m_("0"));Z.WT=r1(function(){return Date.now().toString()})}; Xca=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){var Y=d.value;if(Y.slotType==="SLOT_TYPE_PLAYER_BYTES"&&Y.fulfilledLayout)if(d=void 0,Y.fulfilledLayout.renderingContent)d=dB(Y.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(Y.fulfilledLayout.Ai){Y=g.t(Y.fulfilledLayout.Ai);for(var T=Y.next();!T.done&&(T=T.value,!T.renderingContent||!(d=dB(T.clientMetadata,"metadata_type_player_vars")));T=Y.next());}}else d=void 0;if(d){Z.B$.get().S.preloadVideoByPlayerVars(d, 2,300);break}}}; LSr=function(Z,I){Z.V.push(I);g.z(Z,I);I.i5(Z.zD,Z.zD.children.length)}; D2=function(Z,I){var d="f"+(Math.floor(Z/31)+1);Z=1<d.duration?Y:d},{duration:0}))&&I.startTime>0&&I.responseEnd>0&&(tF("wffs",hW(I.startTime)),tF("wffe",hW(I.responseEnd)))}; mud=function(Z,I,d,Y){d.adFormat=d.Vf;var T=I.t5;I=new RW(new qc(d,I.U,{getDuration:function(){return d.lengthSeconds}, getCurrentTime:function(){return T.getCurrentTime()}, fF:function(){return T.fF()}, EX:function(){return T.EX()}, cH:function(){return T.cH()}, getPlayerSize:function(){return T.getPlayerSize()}, getAudioTrack:function(){return d.getAudioTrack()}, getPlaybackRate:function(){return T.getPlaybackRate()}, bU:function(){return T.bU()}, getVisibilityState:function(){return T.getVisibilityState()}, MA:function(){return T.MA()}, Ci:function(){return T.Ci()}, getVolume:function(){return T.getVolume()}, isMuted:function(){return T.isMuted()}, mz:function(){return T.mz()}, Ad:function(){return T.Ad()}, getProximaLatencyPreference:function(){return T.getProximaLatencyPreference()}, rY:function(){T.rY()}, D1:function(f,P){T.D1(f,P)}, qY:function(){return T.qY()}, Fx:function(){return T.Fx()}})); I.D=Y;g.z(Z,I);return I}; g.O8=function(Z){if(g.$D(Z.S.C()))return Z.nN.get("unplugged")}; qpd=function(Z){if(Yb){for(var I=g.t(Yb),d=I.next();!d.done;d=I.next())d=d.value,d.payload&&(d.payload.csn=Z.csn,g.g6(d.payloadName,d.payload,d.options));Yb.length=0}jI=0}; Zd=function(Z){if(Z&&Z.simpleText)return Z.simpleText;var I="";if(Z&&Z.runs)for(var d=0;d=.7,2));else if(Z.D===2){T=Y.deltaY<0;var f,P,O=((P=(f=Z.B)==null?void 0:f.L)==null?void 0:P.scrollTop)===0;f=Z.L!==0;T&&O||f&&!T?Z.N!==0&&(Z.L=Math.max(0,Z.L-Y.deltaY/Z.N),cf(Z),$vr(Z,Z.V/Z.N+ Math.abs(Z.L)>=.7,1)):Z.L!==0&&(Z.L=0,cf(Z))}}},Z,!0); I.W(d,"standardControlsInitialized",function(){if(!Z.B){Z.B=new QK(Z.api,Z.Tm.bind(Z));Z.fS&&(Z.LS=new NbB(Z.api),g.z(Z,Z.LS),Z.LS.element.setAttribute("data-overlay-order","12"),Z.api.oB(Z.LS.element,4),Z.LS.listen("click",Z.kS,Z));g.z(Z,Z.B);var Y=Z.api.getRootNode().querySelector(".ytp-chrome-bottom");Y&&Y.parentNode&&Y.parentNode.insertBefore(Z.B.element,Y.nextSibling);Vpd(Z)}}); I.W(d,"presentingplayerstatechange",function(){z4(Z)}); I.W(d,"autonavvisibility",function(){z4(Z)}); Z.api.f6().subscribe("visibilitystatechange",function(){z4(Z)}); Nrn(Z,Z.D)}; xh=function(Z){g.p.call(this);this.L=Z;this.fM=new Map}; t8n=function(Z,I,d,Y){var T,f;return g.h(function(P){T=Z.L();var O=new zNB;O=j6(O,1,Z.DS);f=j6(O,2,I);O=P.return;var a=d.sA,W=Z.DS,e=Z.client;var B=e.L;e=e.D+"/$rpc/google.internal.waa.v1.Waa/GenerateIT";var w=f,V=T||{},N=Dun,q=void 0;q=q===void 0?{}:q;B=nLi(B,e,w,V,N,q);return O.call(P,a.call(d,"g",W,Y,B))})}; JZD=function(){var Z=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; g.St=function(Z,I,d,Y,T,f,P){g.w9.call(this,g.KD({"aria-haspopup":"true"}),I,Z);this.A5=Y;this.X=!1;this.Z=null;this.options={};this.Ja=new g.Kv(d,void 0,Z,T,f,P);g.z(this,this.Ja);this.listen("keydown",this.cJ);this.listen("click",this.open)}; NTl=function(){return{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M25,17 L17,17 L17,23 L25,23 L25,17 L25,17 Z M29,25 L29,10.98 C29,9.88 28.1,9 27,9 L9,9 C7.9,9 7,9.88 7,10.98 L7,25 C7,26.1 7.9,27 9,27 L27,27 C28.1,27 29,26.1 29,25 L29,25 Z M27,25.02 L9,25.02 L9,10.97 L27,10.97 L27,25.02 L27,25.02 Z",fill:"#fff"}}]}}; g.p0=function(Z){return new pq({trackingParams:Z})}; KbJ=function(Z,I,d,Y,T,f,P,O){return I===null?new C("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:I,TopBannerImageTextIconButtonedLayoutViewModel:Y}):[M9B(Z,I,P,f,function(a){var W=a.slotId;a=O(a);var e=Y.adLayoutLoggingData,B=new D0([new RN(Y),new Xj(T)]);W=zi(d.D.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",W);var w={layoutId:W,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",r4:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", h5:new Map,layoutExitNormalTriggers:[new An(d.L,P)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],r4:"core",clientMetadata:B,Tb:a(w),adLayoutLoggingData:e}})]}; RZn=function(Z){if(!(Z.D<0)){var I=g.NC(Z.provider),d=I-Z.N;Z.N=I;Z.playerState.state===8?Z.playTimeSecs+=d:Z.playerState.isBuffering()&&!g.b(Z.playerState,16)&&(Z.rebufferTimeSecs+=d)}}; Uun=function(Z,I){var d,Y,T,f,P;return g.h(function(O){switch(O.L){case 1:Z.Yu.On("oprgz_s");if(!aYL){O.xS(2);break}g.ez(O,3);return g.m(O,WjO(I),5);case 5:return d=O.D,Z.Yu.On("oprgz_n"),Z.Yu.D1("oprsgz",{i:"n"}),O.return(d);case 3:Y=g.Bj(O),Z.Yu.D1("gzerr",{impl:"native",err:""+Y});case 2:if(T=Z.Yu.C().ZM)try{var a=$P.Xj(),W=T.ao(I),e=T,B=W!=null?W:I,w=B.byteOffset,V=B.byteLength,N=e.exports.getInflatedSize(w,V);if(N===0)throw Error("wasm_gz: bad input");var q=e.malloc(N),A=e.exports.inflateGzip(w, V,q);if(A)throw e.free(q),Error("wasm_gz: fail"+A);var F=new Uint8Array(e.exports.memory.buffer,q,N);W&&T.free(W.byteOffset);var J=T.yW(F);$P.e$("gzwb",a,Math.ceil(J.byteLength/16));f=J;Z.Yu.On("oprgz_w");Z.Yu.D1("oprsgz",{i:"w"});return O.return(f)}catch(v){Z.Yu.D1("gzerr",{impl:"wasm",err:""+v})}a=$P.Xj();W=g.Ll9(new g.Ryi(I));$P.e$("gzjb",a,Math.ceil(W.byteLength/16));P=W;Z.Yu.On("oprgz_p");Z.Yu.D1("oprsgz",{i:"j"});return O.return(P)}})}; UrJ=function(Z){for(var I=[],d=0;d1E5||++I.L})}; ii=function(Z,I,d,Y){Zv(d,I,void 0,void 0,d.NP);d.mj?Z.Wk.Dy(Y,d.mj,I):Zv("adsClientErrorMessage is missing.",I);h3(Z,I,!0)}; n0=function(Z){var I,d;return(d=Z==null?void 0:(I=Z.activeViewTracking)==null?void 0:I.trafficType)!=null?d:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; yZn=function(Z,I){var d=new fQ(Z,I),Y=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],T;g.qN(Z.C())&&(T={K:"div",T:"ytp-panel-footer-content",G:[{K:"span",Z1:Y[0]},{K:"a",T:"ytp-panel-footer-content-link",Z1:"Settings",J:{href:"/account_playback"}},{K:"span",Z1:Y[1]}]});g.St.call(this,"Subtitles/CC",g.D$.SUBTITLES,Z,I,"Options",function(){g.Li(I,d)},T); var f=this;this.S=Z;this.A5=I;this.tracks={};this.B=new g.uX(function(){PK9(f,!1)},3E3); g.z(this,this.B);this.countLabel=new g.k({K:"div",G:[{K:"span",Z1:"Subtitles/CC"},{K:"span",T:"ytp-menuitem-label-count",Z1:"{{content}}"}]});g.z(this,this.countLabel);g.Pz(this,this.countLabel);Z.Y("web_settings_menu_icons")&&this.setIcon(jMn(Z.Y("delhi_modern_web_player_icons")));this.L=new Ru(Z,I);g.z(this,this.L);this.L.subscribe("select",this.tI,this);this.N=d;g.z(this,this.N);this.N.subscribe("settingChange",this.E_,this);I.subscribe("show",this.EFm,this);this.W(Z,"videodatachange",this.qs); this.W(Z,"onApiChange",this.qs);this.W(Z,"onCaptionsTrackListChanged",this.qs);this.W(Z,"captionschanged",this.qs);Z.createClientVe(this.element,this,127300);this.qs()}; vgJ=function(Z,I,d){var Y=Z.Hl?Math.max(I,d/Z.Hl):I,T=Z.Bk.D.Z;T&&(Y=I,Z.Hl&&(Y=Math.max(I,d/Z.Hl*T)));N3(Z.Bk,I,d,Y)}; of7=function(Z){for(var I,d=[];!(I=Z.next()).done;)d.push(I.value);return d}; Fqa=function(Z){return Z&&lql[Z]?lql[Z]:null}; g.aa=function(Z){if(typeof DOMParser!="undefined")return Fu(new DOMParser,dQO(Z),"application/xml");throw Error("Your browser does not support loading xml documents");}; x$O=function(Z,I,d){var Y=Y===void 0?800:Y;var T=T===void 0?600:T;var f=document.location.protocol;Z=TFD(f+"//"+Z+"/signin?context=popup","feature",I,"next",f+"//"+location.hostname+"/post_login");Kfa(Z,d,Y,T)}; JT=function(Z,I){Z.has(I)||Z.set(I,{instreamVideoAdRenderer:void 0,Nb:void 0,adVideoId:I,EN:[]});return Z.get(I)}; uMO=function(Z,I){return y6O(Z,I)}; FP=function(Z){g.p.call(this);this.t5=Z;this.L=0;this.D=null;this.j=this.N=0;this.Z={};this.U=this.t5.C();this.B=new g.uX(this.Nc,1E3,this);this.on=WJ(this,"html5_seek_timeout_delay_ms");this.Ns=WJ(this,"html5_long_rebuffer_threshold_ms");this.J5=WJ(this,"html5_seek_set_cmt_delay_ms","html5_seek_set_cmt_cfl");this.j7=WJ(this,"html5_seek_jiggle_cmt_delay_ms","html5_seek_jiggle_cmt_cfl");this.Tm=WJ(this,"html5_seek_new_elem_delay_ms","html5_seek_new_elem_cfl");this.SK=WJ(this,"html5_unreported_seek_reseek_delay_ms", "html5_unreported_seek_reseek_cfl");this.LS=WJ(this,"html5_long_rebuffer_jiggle_cmt_delay_ms","html5_long_rebuffer_jiggle_cmt_cfl");this.kS=new ar(2E4);this.mJ=WJ(this,"html5_seek_new_elem_shorts_delay_ms","html5_seek_new_elem_shorts_cfl");this.sZ=WJ(this,"html5_seek_new_media_source_shorts_reuse_delay_ms","html5_seek_new_media_source_shorts_reuse_cfl");this.w4=WJ(this,"html5_seek_new_media_element_shorts_reuse_delay_ms","html5_seek_new_media_element_shorts_reuse_cfl");this.fS=WJ(this,"html5_reseek_after_time_jump_delay_ms", "html5_reseek_after_time_jump_cfl");this.X=WJ(this,"html5_gapless_handoff_close_end_long_rebuffer_delay_ms","html5_gapless_handoff_close_end_long_rebuffer_cfl");this.In=WJ(this,"html5_gapless_slow_seek_delay_ms","html5_gapless_slow_seek_cfl");this.d4=WJ(this,"html5_shorts_gapless_ad_slow_start_delay_ms","html5_shorts_gapless_ad_slow_start_cfl");this.y5=WJ(this,"html5_shorts_gapless_slow_start_delay_ms","html5_shorts_gapless_slow_start_cfl");this.V=WJ(this,"html5_ads_preroll_lock_timeout_delay_ms", "html5_ads_preroll_lock_timeout_cfl");this.b5=new ar(g.Q4(this.U.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.U.Y("html5_report_slow_ads_as_error"));this.UZ=new ar(g.Q4(this.U.experiments,"html5_skip_slow_ad_delay_ms")||5E3,!this.U.Y("html5_skip_slow_buffering_ad"));this.I0=WJ(this,"html5_slow_start_timeout_delay_ms");this.Bj=WJ(this,"html5_slow_start_no_media_source_delay_ms","html5_slow_start_no_media_source_cfl");g.z(this,this.B)}; Ib=function(){return{K:"svg",J:{height:"100%",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",J:{d:"M5.85 18.0c0.0-2.56 2.08-4.65 4.65-4.65h6.0V10.5H10.5c-4.14 .0-7.5 3.36-7.5 7.5s3.36 7.5 7.5 7.5h6.0v-2.85H10.5c-2.56 .0-4.65-2.08-4.65-4.65zM12.0 19.5h12.0v-3.0H12.0v3.0zm13.5-9.0h-6.0v2.85h6.0c2.56 .0 4.65 2.08 4.65 4.65s-2.08 4.65-4.65 4.65h-6.0V25.5h6.0c4.14 .0 7.5-3.36 7.5-7.5s-3.36-7.5-7.5-7.5z",fill:"#fff"}}]}}; GtE=function(Z,I,d){var Y=Z.kS[I],T=g.HS[I];return tRB(Z,Y?Y.qualityLabel:T?T+"p":"Auto",I,d)}; Z_=function(Z,I,d){Z=Z===void 0?{}:Z;I=I===void 0?!1:I;new g.eq(function(Y,T){var f=Ya(I,d),P=f.Z;f.Z=!1;EJ(f.D);EJ(f.L);f.L=0;jN&&jN.isReady()?d===void 0&&g.x9("enable_web_tiered_gel")?jFa(Y,T,Z,I,300,P):jFa(Y,T,Z,I,d,P):(nDu(I,d),Y())})}; SY=function(Z,I){g.p.call(this);var d=this;this.data=[];this.Z=Z||NaN;this.D=I||null;this.L=new g.uX(function(){F_(d);eQ(d)}); g.z(this,this.L)}; g.Qg=function(Z,I,d){g.t6(Q3)(Z,I,d===void 0?!1:d)}; so=function(Z){Z.U.OL&&!Z.videoData.backgroundable&&Z.mediaElement&&!Z.z9()&&(Z.isBackground()&&Z.mediaElement.wy()?(Z.D1("bgmobile",{suspend:1}),Z.Ge(!0,!0)):Z.isBackground()||$M(Z)&&Z.D1("bgmobile",{resume:1}))}; sU=function(Z){for(var I=0,d=Z.L,Y=d+10,T=Z.D;d0){var f=I.end.toString();T.forEach(function(P){(P=P.config&&P.config.adPlacementConfig)&&P.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&P.adTimeOffset&&P.adTimeOffset.offsetEndMilliseconds==="-1"&&P.adTimeOffset.offsetEndMilliseconds!==f&&(P.adTimeOffset.offsetEndMilliseconds=f)}); Y.map(function(P){return g.y(P,s1)}).forEach(function(P){var O; (P=P==null?void 0:(O=P.slotEntryTrigger)==null?void 0:O.mediaTimeRangeTrigger)&&P.offsetEndMilliseconds==="-1"&&(P.offsetEndMilliseconds=f)})}return{MP:T, adSlots:Y,Z2:!1,ssdaiAdsConfig:Z.ssdaiAdsConfig}}; g.h9=function(Z){var I=[];if(Z.displayName)I.push(Z.displayName);else{var d=Z.languageName||"";I.push(d);Z.kind==="asr"&&d.indexOf("(")===-1&&I.push(" (Automatic Captions)");Z.name&&I.push(" - "+Z.name)}Z.translationLanguage&&I.push(" >> "+Z.translationLanguage.languageName);return I.join("")}; g.o3=function(Z,I){Z.style.display=I?"":"none"}; zP$=function(Z,I,d){return I.itag!==d.itag||I.xtags!==d.xtags?!1:Z.u5.Qy||I.lmt===d.lmt}; t_n=function(Z,I){return Xeu(Z,I)?(Z.u9?Z.u9.start():Z.ek(),!0):!1}; $un=function(Z){Z=Z.D;return Z.cancelAnimationFrame||Z.cancelRequestAnimationFrame||Z.webkitCancelRequestAnimationFrame||Z.mozCancelRequestAnimationFrame||Z.oCancelRequestAnimationFrame||Z.msCancelRequestAnimationFrame||null}; MDu=function(Z,I){if(!Z||!I)return!1;for(var d=0;Z!==null&&d++<100;){if(Z===I)return!0;try{if(Z=Z.parentElement||Z){var Y=JN(Z),T=Y&&SV(Y),f=T&&T.frameElement;f&&(Z=f)}}catch(P){break}}return!1}; wcd=function(Z){var I=window;I.ywc||(I.ywc={});var d=I.ywc[Z];if(d)return d;d={};return I.ywc[Z]=d}; g.tY=function(Z,I,d,Y,T){T=T===void 0?!1:T;d&&Ku(Z,d);d=g.mQ(Z);var f=g.OZ(d);Z!=f&&$6(Error("Unsafe window.open URL: "+Z));Z=f;I=I||EA(Z).toString(36);try{if(T)return T=Z,T=pe$(T),Cu(T),g.T4(window,T,I,"attributionsrc")}catch(P){g.eW(P)}Cu(Z);return g.T4(window,d,I,Y)}; G7$=function(Z){var I;if((I=Z.D)==null?0:I.isLocked())return Z.videoInfos;var d=pG(Z.L);I=g.zG(Z.videoInfos,function(Y){return Y.pS>Z.bu.pS?!1:!d.has(Y.id)}); X9$(Z.L)&&(I=g.zG(I,function(Y){return Y.video.width<=854&&Y.video.height<=480})); return I}; TVn=function(Z){var I=bo(Z.experiments,"html5_web_po_request_key");return I?I:g.RK(Z)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; xuE=function(Z,I,d){var Y=Z[nL]|0,T=hO(Y),f=Ej(Z,d,T);if(f!=null&&f[P3]===Qn){if(!b5(f))return di(f),f.Gm;var P=f.Gm}else Array.isArray(f)&&(P=f);if(P){var O=P[nL]|0;O&2&&(P=f3(P,O))}P=OQ(P,I,!0);P!==f&&xn(Z,Y,d,P,T);return P}; lm$=function(Z,I){return I.done?iW(I.value):Sr(BC(I.value.ag,function(d){return lm$(Z,Z.next(d))}),function(d){return lm$(Z,Z.throw(d))})}; Sr7=function(Z){this.offset=0;this.data=new DataView(new ArrayBuffer(Z))}; g.z1=function(Z){return l3(Z)==="shortspage"}; Cw$=function(Z,I,d){d=d===void 0?Kli:d;Z=S4(Z,I);I=typeof Z;Z=Z==null?Z:I==="bigint"?jd(oM(64,Z)):Ze(Z)?I==="string"?ci$(Z):g9i(Z):void 0;return Z!=null?Z:d}; HK=function(Z,I,d,Y,T,f,P,O,a){T=T===void 0?[]:T;P=P===void 0?!1:P;a=a===void 0?!1:a;T={K:"button",zm:["ytp-ad-button"].concat(T)};O!=null&&(T.J={tabindex:O});kw.call(this,Z,T,f===void 0?"button":f,I,d,Y);this.L=this.D=this.Z=null;this.B=P;this.N=a;this.hide()}; g.w9=function(Z,I,d,Y){g.m7.call(this,Z);this.priority=I;d&&g.Pz(this,d);Y&&this.setContent(Y)}; EgB=function(Z,I,d){Z.L[I]||(Z.D1("huli-sdai-err",d),Z.L[I]=!0)}; BJ=function(Z){return Array.from(Z.L.keys())}; bP7=function(Z,I,d,Y){I=I===void 0?!1:I;d=d===void 0?!0:d;Y=Y===void 0?{}:Y;var T={};Z=g.t(Z);for(var f=Z.next();!f.done;f=Z.next()){f=f.value;if(I&&MediaSource&&MediaSource.isTypeSupported){var P=f.type;f.audio_channels&&(P=P+"; channels="+f.audio_channels);if(!MediaSource.isTypeSupported(P)){Y[f.itag]="tpus";continue}}if(d||!f.drm_families||f.eotf!=="smpte2084"&&f.eotf!=="arib-std-b67"){P=void 0;var O={bt709:"SDR",bt2020:"SDR",smpte2084:"PQ","arib-std-b67":"HLG"},a=f.type.match(/codecs="([^"]*)"/); a=a?a[1]:"";f.audio_track_id&&(P=new g.PA(f.name,f.audio_track_id,!!f.is_default));var W=f.eotf;f=new inJ({itag:f.itag,url:f.url,codecs:a,width:Number(f.width),height:Number(f.height),fps:Number(f.fps),bitrate:Number(f.bitrate),audioItag:f.audio_itag,Sb:W?O[W]:void 0,T_:f.drm_families,uo:P,audioChannels:Number(f.audio_channels)});T[f.itag]=T[f.itag]||[];T[f.itag].push(f)}else Y[f.itag]="enchdr"}return T}; w3E=function(Z,I){var d=I.raw_watch_next_response;if(!d){var Y=I.watch_next_response;Y&&(d=JSON.parse(Y))}if(d){Z.mJ=d;var T=Z.mJ.playerCueRangeSet;T&&g.Au7(Z,T);var f=Z.mJ.playerOverlays;if(f){var P=f.playerOverlayRenderer;if(P){var O=P.autonavToggle;O&&(Z.autoplaySwitchButtonRenderer=g.y(O,bmn),Z.Y("web_player_autonav_use_server_provided_state")&&BQ(Z)&&(Z.autonavState=Z.autoplaySwitchButtonRenderer.enabled?2:1));var a=P.videoDetails;if(a){var W=a.embeddedPlayerOverlayVideoDetailsRenderer;var e= a.playerOverlayVideoDetailsRenderer;e&&(e.title&&(I.title=g.Q1(e.title)),e.subtitle&&(I.subtitle=g.Q1(e.subtitle)))}g.bZ(Z.nS)&&(Z.du=!!P.addToMenu);JYB(Z,P.shareButton);P.startPosition&&P.endPosition&&(Z.progressBarStartPosition=P.startPosition,Z.progressBarEndPosition=P.endPosition);var B=P.gatedActionsOverlayRenderer;B&&(Z.QEZ=g.y(B,Hm7));var w,V,N,q=g.y((w=Z.getWatchNextResponse())==null?void 0:(V=w.playerOverlays)==null?void 0:(N=V.playerOverlayRenderer)==null?void 0:N.infoPanel,NsB);if(q){Z.OT= Number(q==null?void 0:q.durationMs)||NaN;if(q==null?0:q.infoPanelOverviewViewModel)Z.vg=q==null?void 0:q.infoPanelOverviewViewModel;if(q==null?0:q.infoPanelDetailsViewModel)Z.g5=q==null?void 0:q.infoPanelDetailsViewModel}Z.showSeekingControls=!!P.showSeekingControls}}var A,F,J=(A=Z.getWatchNextResponse())==null?void 0:(F=A.contents)==null?void 0:F.twoColumnWatchNextResults;if(J){var v=J.desktopOverlay&&g.y(J.desktopOverlay,cZ7);v&&(v.suppressShareButton&&(Z.showShareButton=!1),v.suppressWatchLaterButton&& (Z.du=!1))}W&&SFr(Z,I,W);var l=DJ(0,I.autoplay_count),X=Z.getWatchNextResponse(),H,x=(H=X.contents)==null?void 0:H.twoColumnWatchNextResults,Id,TB,dD,Qu=(Id=X.playerOverlays)==null?void 0:(TB=Id.playerOverlayRenderer)==null?void 0:(dD=TB.autoplay)==null?void 0:dD.playerOverlayAutoplayRenderer,Zr=HhJ(Z),sJ,bL=(sJ=X.contents)==null?void 0:sJ.singleColumnWatchNextResults;if(bL){var TL;if(((TL=bL.autoplay)==null?0:TL.autoplay)&&!bL.playlist){var jt=bL.autoplay.autoplay.sets,yu={},UJ=new Lz(Z.C()),X0= null,Ag;if(jt){for(var vE=g.t(jt),oS=vE.next();!oS.done;oS=vE.next()){var Ci=oS.value.autoplayVideoRenderer;if(Ci&&Ci.compactVideoRenderer){X0=Ci.compactVideoRenderer;break}}if(Ag=jt[0].autoplayVideo){var iL=Ag.clickTrackingParams;iL&&(yu.itct=iL);yu.autonav="1";yu.playnext=String(l)}}else yu.feature="related-auto";var Rv=g.y(Ag,g.CI);if(X0){UJ.videoId=X0.videoId;var D=X0.shortBylineText;D&&(UJ.author=g.Q1(D));var M=X0.title;M&&(UJ.title=g.Q1(M))}else Rv!=null&&Rv.videoId&&(UJ.videoId=Rv.videoId); UJ.fQ=yu;Z.suggestions=[];Z.zX=UJ}}if(Zr){for(var FH=[],YC=g.t(Zr),U5=YC.next();!U5.done;U5=YC.next()){var fU=U5.value,cO=void 0,rD=null;if(fU.endScreenVideoRenderer){var Ah=fU.endScreenVideoRenderer,R=Ah.title;rD=new Lz(Z.C());rD.videoId=Ah.videoId;rD.lengthSeconds=Ah.lengthInSeconds||0;var S=Ah.publishedTimeText;S&&(rD.publishedTimeText=g.Q1(S));var L=Ah.shortBylineText;L&&(rD.author=g.Q1(L));var u=Ah.shortViewCountText;u&&(rD.shortViewCount=g.Q1(u));if(R){rD.title=g.Q1(R);var E=R.accessibility; if(E){var fl=E.accessibilityData;fl&&fl.label&&(rD.ariaLabel=fl.label)}}var K=Ah.navigationEndpoint;if(K){cO=K.clickTrackingParams;var od=g.y(K,g.CI),G=g.y(K,g.M0);od?rD.CC=od:G!=null&&(rD.watchUrl=G.url)}var S$=Ah.thumbnailOverlays;if(S$)for(var vO=g.t(S$),Fn=vO.next();!Fn.done;Fn=vO.next()){var Rd=Fn.value.thumbnailOverlayTimeStatusRenderer;if(Rd)if(Rd.style==="LIVE"){rD.isLivePlayback=!0;break}else if(Rd.style==="UPCOMING"){rD.isUpcoming=!0;break}}rD.X=V0(Ah.thumbnail)}else if(fU.endScreenPlaylistRenderer){var k9= fU.endScreenPlaylistRenderer,Dr=k9.navigationEndpoint;if(!Dr)continue;var pU=g.y(Dr,g.CI);if(!pU)continue;var cl=pU.videoId;rD=new R7(Z.C());rD.playlistId=k9.playlistId;rD.playlistLength=Number(k9.videoCount)||0;rD.L=cl||null;rD.videoId=cl;var Zh=k9.title;Zh&&(rD.title=g.Q1(Zh));var Ll=k9.shortBylineText;Ll&&(rD.author=g.Q1(Ll));cO=Dr.clickTrackingParams;rD.X=V0(k9.thumbnail)}rD&&(cO&&(rD.sessionData={itct:cO}),FH.push(rD))}Z.suggestions=FH}if(Qu){Z.PP=!!Qu.preferImmediateRedirect;Z.o4=Z.o4||!!Qu.webShowNewAutonavCountdown; Z.N_=Z.N_||!!Qu.webShowBigThumbnailEndscreen;if(Z.o4||Z.N_){var bN=x||null,lL=new Lz(Z.C());lL.videoId=Qu.videoId;var mg=Qu.videoTitle;if(mg){lL.title=g.Q1(mg);var $9=mg.accessibility;if($9){var hY=$9.accessibilityData;hY&&hY.label&&(lL.ariaLabel=hY.label)}}var q3=Qu.byline;q3&&(lL.author=g.Q1(q3));var gu=Qu.publishedTimeText;gu&&(lL.publishedTimeText=g.Q1(gu));var dh=Qu.shortViewCountText;dh&&(lL.shortViewCount=g.Q1(dh));var $W=Qu.thumbnailOverlays;if($W)for(var up=g.t($W),Fk=up.next();!Fk.done;Fk= up.next()){var yE=Fk.value.thumbnailOverlayTimeStatusRenderer;if(yE)if(yE.style==="LIVE"){lL.isLivePlayback=!0;break}else if(yE.style==="UPCOMING"){lL.isUpcoming=!0;break}else if(yE.style==="DEFAULT"&&yE.text){lL.lengthText=g.Q1(yE.text);var w6=yE.text.accessibility;if(w6){var VF=w6.accessibilityData;VF&&VF.label&&(lL.Tr=VF.label||"")}break}}lL.X=V0(Qu.background);var Mh=Qu.nextButton;if(Mh){var rx=Mh.buttonRenderer;if(rx){var PP=rx.navigationEndpoint;if(PP){var nM=g.y(PP,g.CI);nM&&(lL.CC=nM)}}}if(Qu.topBadges){var ZN= Qu.topBadges[0];if(ZN){var II=g.y(ZN,ggr);II&&II.style==="BADGE_STYLE_TYPE_PREMIUM"&&(lL.Rg7=!0)}}var p3=Qu.alternativeTitle;p3&&(lL.m1=g.Q1(p3));var EH={autonav:"1",playnext:String(l)};lL.playlistId&&(EH.autoplay="1");if(bN){var mp,zl,qh,dZ,S2=(mp=bN.autoplay)==null?void 0:(zl=mp.autoplay)==null?void 0:(qh=zl.sets)==null?void 0:(dZ=qh[0])==null?void 0:dZ.autoplayVideo;if(S2){var oI=S2.clickTrackingParams;oI&&(EH.itct=oI);var AY=g.y(S2,g.CI);AY&&(lL.HM=AY)}}else if(Qu){var Y1,jG,Tz,by=(Y1=Qu.nextButton)== null?void 0:(jG=Y1.buttonRenderer)==null?void 0:(Tz=jG.navigationEndpoint)==null?void 0:Tz.clickTrackingParams;by&&(EH.itct=by)}EH.itct||(EH.feature="related-auto");lL.fQ=EH;Z.suggestions||(Z.suggestions=[]);Z.zX=lL}Qu.countDownSecs!=null&&(Z.yd=Qu.countDownSecs*1E3);Qu.countDownSecsForFullscreen!=null&&(Z.XR=Qu.countDownSecsForFullscreen>=0?Qu.countDownSecsForFullscreen*1E3:-1);Z.Y("web_autonav_color_transition")&&Qu.watchToWatchTransitionRenderer&&(Z.watchToWatchTransitionRenderer=g.y(Qu.watchToWatchTransitionRenderer, M_J))}var Dv=HhJ(Z);if(Dv){var m0,Et,JA,JY=Dv==null?void 0:(m0=Dv[0])==null?void 0:(Et=m0.endScreenVideoRenderer)==null?void 0:(JA=Et.navigationEndpoint)==null?void 0:JA.clickTrackingParams,x1=g.wi(Z);JY&&x1&&(x1.sessionData={itct:JY})}Z.mJ.currentVideoThumbnail&&(Z.X=V0(Z.mJ.currentVideoThumbnail));var qI,bz,H1,ms,c1,i0=(qI=Z.mJ)==null?void 0:(bz=qI.contents)==null?void 0:(H1=bz.twoColumnWatchNextResults)==null?void 0:(ms=H1.results)==null?void 0:(c1=ms.results)==null?void 0:c1.contents;if(i0&&i0[0]){var Rl= i0[0].videoPrimaryInfoRenderer;Rl&&Rl&&Rl.subtitle&&(Z.q1=g.Q1(Rl.subtitle))}if(i0&&i0[1]){var YS,K3,hB,Sz,A5=(YS=i0[1].videoSecondaryInfoRenderer)==null?void 0:(K3=YS.owner)==null?void 0:(hB=K3.videoOwnerRenderer)==null?void 0:(Sz=hB.thumbnail)==null?void 0:Sz.thumbnails;A5&&A5.length&&(Z.profilePicture=A5[A5.length-1].url)}var jJ=Wa(I),Lw,HM=(Lw=Z.getWatchNextResponse())==null?void 0:Lw.onResponseReceivedEndpoints;if(HM)for(var OU=g.t(HM),UA=OU.next();!UA.done;UA=OU.next()){var Az=UA.value;g.y(Az, wf)&&(Z.gk=g.y(Az,wf));var cM=g.y(Az,rZn),aA=void 0;if((aA=cM)==null?0:aA.entityKeys)Z.Uv=cM.entityKeys||[],cM.visibleOnLoadKeys&&(Z.visibleOnLoadKeys=cM.visibleOnLoadKeys)}if(Z.Y("web_key_moments_markers")){var qV=g.KG.getState().entities,YZ=g.Es("visibility_override","markersVisibilityOverrideEntity");var T5=CG(qV,"markersVisibilityOverrideEntity",YZ);Z.J5=(T5==null?void 0:T5.videoId)===(Z.videoId||jJ)&&(T5==null?0:T5.visibilityOverrideMarkersKey)?T5.visibilityOverrideMarkersKey:Z.visibleOnLoadKeys; Z.visibleOnLoadKeys=[].concat(g.c(Z.J5))}}}; YpJ=function(Z){Z.X.textContent=Z.L.toFixed(2)+"x";var I=Z.L>2&&Z.S.Y("enable_web_premium_varispeed");Z.kS.classList.toggle("ytp-speedslider-premium-badge",I);Z.kS.setAttribute("aria-label",I?"Premium":"")}; dS=function(Z){if(Z.S.C().Z)return!1;if(Z=Z.S.getVideoData(1).getPlayerResponse()){var I=Z.adPlacements;if(I)for(var d=0;dI||Y>=0&&T.Ye>Y+1)break;d=Math.max(d,T.startTimeMs+T.durationMs);Y=Math.max(Y,T.Id)}return Math.max(0,d-I)}; N1=function(Z,I){return!Z.api.isInline()&&!Zjn(Z,V$(I))&&g.kn(I)}; fA=function(Z){return Z.Zt()&&Z.C().supportsGaplessShorts()}; sGi=function(Z,I){var d;return g.h(function(Y){if(Y.L==1)return g.m(Y,g.Mm(gML,I),2);d=Y.D;return Y.return(g.Xn(d,["databases"],{OU:!0,mode:"readwrite"},function(T){var f=T.objectStore("databases");return f.get(Z.actualName).then(function(P){if(P?Z.actualName!==P.actualName||Z.publicName!==P.publicName||Z.userIdentifier!==P.userIdentifier:1)return g.ti(f,Z).then(function(){})})}))})}; Ax=function(Z,I,d,Y,T,f){this.startSecs=Z;this.QI=I;this.context=d;this.identifier=Y;this.event=T;this.L=f}; CW=function(Z,I){Z.Y("html5_webpo_bge_ctmp")&&Z.api.D1(I,{hwpo:!!Z.D,hwpor:Z.L})}; rI=function(Z,I,d,Y,T){var f=Z.wK,P=Z.videoData;P.D=d;var O=g.Hp(Z);d=new r6(P,d,I,O?O.itag:"",Y);Z.U.experiments.CS("html5_refactor_sabr_video_format_selection_logging")?(d.videoId=T,Z.Wm=d):f.qoe&&B19(f.qoe,d);T=Z.xe;T.D=0;T.L=0;Z.publish("internalvideoformatchange",P,I==="m")}; J7=function(Z){if(Z.videoData.Z&&Z.videoData.Z.L){var I=Vw(Z);if(Z.loader&&(Z=Z.loader,!Z.OZ()))if(Z.policy.L){var d=Z.N;if(I.isLocked()&&d.L.D||d.D===void 0||!I.equals(d.D)){d=Z.N.D;HGl(Z.N,I);var Y,T;if(T=I.isLocked()&&I.reason==="m"){T=Z.N;var f=(Y=T.N)==null?void 0:Y.info.video.qualityOrdinal;T=T.Ns?!0:T.N?I.L!==f?!0:!T.L.D||T.bu.I6&&T.L.L===T.N.info.itag?!1:!0:!1}Y=T;T=Z.policy.ZM&&I.reason==="l";d=d.L>I.L&&I.reason==="b";Y||T||d?(Z.t5.Zo({reattachOnConstraint:Y?"u":T?"drm":"perf",lo:I.D,up:I.L}), Z.policy.I6||(Z.N.L.D=!1)):(Z.policy.I6&&(Z.N.L.D=!1),L8(Z))}}else!I$J(Z.L,I)&&Z.videoTrack&&(T=Z.L.L,c3(Z,tvi(Z.L,I)),D$D(Z),d=I.isLocked()&&I.reason==="m"&&Z.L.kS,Y=Z.policy.ZM&&I.reason==="l"&&TO(Z.videoTrack),I=T.L>I.L&&I.reason==="b",T=Z.L.on&&!B9(),d||Y||I||T?Z.t5.Zo({reattachOnConstraint:d?"u":Y?"drm":T?"codec":"perf"}):L8(Z))}}; Z1u=function(Z,I){Z.configData=I;g.zb("yt.gcf.config.coldConfigData",Z.configData||null)}; Fi=function(Z){this.content=Z.content;if(Z.commandRuns){Z=g.t(Z.commandRuns);for(var I=Z.next();!I.done;I=Z.next())I=I.value,this.loggingDirectives=g.y(I,I79),I.onTap&&(this.interaction={onTap:I.onTap})}}; db7=function(Z,I){return Z.V?x6(Z.V.N,I):Z.Bj.length?x6(Z.Bj,I):[]}; s8=function(){ui.apply(this,arguments)}; d4=function(Z,I,d,Y,T,f,P,O){g.p.call(this);var a=this;this.loader=Z;this.bu=I;this.videoTrack=d;this.audioTrack=Y;this.u5=T;this.In=f;this.isAudioOnly=P;this.X=O;this.D=nb;this.Ns=!1;this.logger=new g.qj("sabr");this.V=this.kS=this.LS=!1;this.videoInfos=this.j=this.In.videoInfos;this.Z=this.Bj=this.In.L;this.L=new SS(I,f,function(W,e){a.loader.D1(W,e)}); this.isAudioOnly&&ASL(this,this.u5.L["0"])}; Ln=function(Z){if(!Z.nextVideo||!Z.policy.N)if(Z.L.isLocked())Z.nextVideo=Z.L.L<=360?Z.u5.L[Z.N[0].id]:Z.u5.L[g.N2(Z.N).id];else{for(var I=Math.min(Z.X,Z.N.length-1),d=KX(Z.Ns),Y=aq(Z,Z.D.info),T=d/Z.policy.Ns-Y;I>0&&!(aq(Z,Z.N[I])<=T);I--);for(d=d/Z.policy.In-Y;I=d);I++);Z.nextVideo=Z.u5.L[Z.N[I].id];Z.X=I}}; gDL=function(Z){var I={veType:253246};return g.t6(function(){if(!I.veType)return wp(new g.Wj("Error: Trying to graft a client VE without a veType.")),null;if(I.visibilityTypes){var d=I.visibilityTypes.reduce(function(Y,T){return Y|T}); d={visibility:{types:String(d)}}}d=uEJ(I.veType,I.visualElement,I.elementIndex,I.clientYouTubeData,void 0,d);return MO(Z,d)?d:null})()}; ZW7=function(Z,I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){d=d.value;var Y=d[1];d[0]===1?Z.V(g.E2(Y.namespace),Y):Z.V(g.bx(Y.namespace),Y)}}; YG9=function(Z){var I=I===void 0?!1:I;return xv(K8(Z,oJ$),Z,I,"Trusted Promoted Video Domain URL")}; jkn=function(Z,I,d){Z.Wk.IB("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",I,d,void 0);Z=g.t(Z.D);for(var Y=Z.next();!Y.done;Y=Z.next())Y.value.J9(I,d)}; WF=function(Z,I,d){this.Z=Z;this.Tm=d===void 0?"na":d;this.B=[];this.isInitialized=!1;this.N=new KR(-1,!0,this);this.L=this;this.X=I;this.LS=this.In=!1;this.fS="uk";this.Bj=!1;this.j=!0}; GV=function(Z,I){for(var d in Z.L)if(Z.L[d].status==="usable"&&Z.L[d].type===I)return!0;return!1}; gyr=function(Z){return Z.array.slice(EFB(Z,0x7ffffffffffff),Z.array.length)}; TXa=function(Z,I,d,Y,T,f,P,O,a){this.slot=I;this.D=d;this.Q5=P;this.S7=O;this.n_=a;this.L=new q_9(Z,I,Y,T,f)}; ijd=function(Z){if(TQ(Fj(Z.L).jL))return!0;var I="";Z=g.t(Fj(Z.L).oF.QL.keys());for(var d=Z.next();!d.done;d=Z.next()){d=d.value;if(d.slotType==="SLOT_TYPE_PLAYER_BYTES"&&d.r4==="core")return!0;I+=d.slotType+" "}Math.random()<.01&&Zv("Ads Playback Not Managed By Controlflow",void 0,null,{slotTypes:I});return!1}; g.nK=function(Z){var I=Z.api.m2()?32:16;I=Z.V/2+I;Z.next.element.style.bottom=I+"px";Z.previous.element.style.bottom=I+"px";I=Z.scrollPosition;var d=Z.containerWidth-Z.suggestionData.length*(Z.N+8);g.zL(Z.element,"ytp-scroll-min",I>=0);g.zL(Z.element,"ytp-scroll-max",I<=d)}; RJ=function(Z,I){Z.L=I;g.zb("yt.gcf.config.coldConfigGroup",Z.L||null)}; CEa=function(Z,I){switch(Z.style){case qD.CHAPTER_MARKER:return I?8:5;case qD.AD_MARKER:return 6;case qD.TIME_MARKER:return Number.POSITIVE_INFINITY;default:return 0}}; f7L=function(Z){return Z.S.C().experiments.CS("should_ignore_cuepoints_during_lifa_preroll")}; Qi=function(Z,I){g.jD.call(this,Z?Z.type:"");this.relatedTarget=this.currentTarget=this.target=null;this.button=this.screenY=this.screenX=this.clientY=this.clientX=0;this.key="";this.charCode=this.keyCode=0;this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1;this.state=null;this.pointerId=0;this.pointerType="";this.L=null;Z&&this.init(Z,I)}; POl=function(Z){var I=Z.policy.Ns,d=KX(Z.Ns)/I-aq(Z,Z.D.info);I=g.R9(Z.N,function(Y){return aq(this,Y)10&&(Z.Y("html5_sky_skip_pause_jump")? Z.t5.D1("skipPauseJump",{evt:Y,cmt:Z.getCurrentTime(),lpt:Z.V}):Z.seekTo(Z.V,{H$:"pauseJump"})),Y!=="pause"&&Y!=="play"&&Y!=="playing"&&Y!=="progress"&&(Z.V=0))}; WVD=function(Z){Z.position===0&&(Z.SJ.get(),Z=dB(Z.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Z={adBreakType:d0(Z)},O7("ad_bl"),g.Qg(Z))}; g.n6=function(Z,I){g.WR(Z,"addEmbedsConversionTrackingParams",[I])}; gdl=function(Z){var I;return((I=Z.audio)==null?void 0:I.D)===!0}; vfl=function(){this.endTime=this.startTime=-1;this.Z="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.D=0;this.muted=!1;this.L=this.clipId="-";this.previouslyEnded=!1}; xD=function(Z){return Z.S.C().experiments.CS("html5_load_ads_instead_of_cue")}; ha=function(Z){this.Gm=bp(Z)}; eOD=function(Z,I){Z.isContentForward=I;g.zL(Z.badge.element,"ytp-suggested-action-badge-content-forward",I)}; PFn=function(Z){return Z.info.L.FY()&&Z.info.YS===Z.info.L.index.c$()}; uF=function(Z,I,d){Z.D=I;var Y;(Y=Z.B)==null||Y.XT(I,d);var T;(T=Z.LS)==null||T.XT(I);Z.L=0;cf(Z);Nrn(Z,I)}; Wf=function(Z){if(typeof Z==="function")return Z;Z[BXl]||(Z[BXl]=function(I){return Z.handleEvent(I)}); return Z[BXl]}; zeL=function(Z,I,d){if(Z.U.experiments.CS("html5_disable_client_autonav_cap_for_onesie")&&I.fetchType==="onesie"||g.RK(Z.U)&&(i$(-1)>=1080||I.osid))return nb;var Y=g.Q4(Z.U.experiments,"html5_autonav_quality_cap"),T=g.Q4(Z.U.experiments,"html5_autonav_cap_idle_secs");return Y&&I.isAutonav&&YE()/1E3>T?(d&&(Y=jYr(Z,d,Y)),new mY(0,Y,!1,"e")):nb}; gcl=function(Z,I,d){d=d===void 0?!1:d;I.video.qualityOrdinal>1080&&!Z.bk&&(Z.Tm=36700160,Z.b5=5242880,Z.w4=Math.max(4194304,Z.w4),Z.bk=!0);I.video.qualityOrdinal>2160&&!Z.p8&&(Z.Tm=104857600,Z.pS=13107200,Z.p8=!0);g.Q4(Z.nS.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?I.isEncrypted()&&g.wm()&&g.y1("samsung")&&(g.y1("kant")||g.y1("muse"))&&(Z.pS=g.Q4(Z.nS.experiments,"html5_samsung_kant_limit_max_bitrate")):I.isEncrypted()&&g.wm()&&g.y1("kant")&&(Z.pS=1310720);Z.GR!==0&&I.isEncrypted()&& (Z.pS=Z.GR);Z.BK!==0&&I.isEncrypted()&&d&&(Z.pS=Z.BK);I.pS&&(Z.QO=Math.max(Z.ZL,Math.min(Z.w4,5*I.pS)))}; g.r7n=function(Z){var I;Z.responseType&&Z.responseType!=="text"?Z.responseType==="arraybuffer"&&(I=J8(new Uint8Array(Z.response))):I=Z.responseText;return!I||I.length>2048?"":I.indexOf("https://")===0?I:""}; w$B=function(Z,I,d){if(Z.L){var Y=Lt(jw(I,"key"))||"/UNKNOWN_PATH";Z.L.start(Y)}Z=d;g.x9("wug_networking_gzip_request")&&(Z=AU9(d));return new window.Request(I,Z)}; Vo7=function(Z,I,d,Y,T,f){J_.call(this,Z,{K:"div",zm:["ytp-flyout-cta","ytp-flyout-cta-inactive"],G:[{K:"div",T:"ytp-flyout-cta-icon-container"},{K:"div",T:"ytp-flyout-cta-body",G:[{K:"div",T:"ytp-flyout-cta-text-container",G:[{K:"div",T:"ytp-flyout-cta-headline-container"},{K:"div",T:"ytp-flyout-cta-description-container"}]},{K:"div",T:"ytp-flyout-cta-action-button-container"}]}]},"flyout-cta",I,d,Y,T);this.Z=new cG(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,"ytp-flyout-cta-icon"); g.z(this,this.Z);this.Z.i5(this.KS("ytp-flyout-cta-icon-container"));this.Z.element.classList.add("ytp-flyout-cta-icon-rounded");this.B=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,"ytp-flyout-cta-headline");g.z(this,this.B);this.B.i5(this.KS("ytp-flyout-cta-headline-container"));this.N=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,"ytp-flyout-cta-description");g.z(this,this.N);this.N.i5(this.KS("ytp-flyout-cta-description-container"));Z=["ytp-flyout-cta-action-button"]; this.api.C().Y("web_modern_buttons")&&Z.push("ytp-flyout-cta-action-button-rounded");this.D=new HK(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,Z);g.z(this,this.D);this.D.i5(this.KS("ytp-flyout-cta-action-button-container"));this.D.element.setAttribute("tabIndex","-1");xo(this.D.element);this.kS=null;this.fS=0;this.mJ=f;this.hide()}; NXn=function(Z,I){var d=Z.nS.B;d.V=!1;d.D=!0;Z.nj("qoe.restart",{e:I===void 0?"fmt.noneavailable":I,detail:"hdr"});Z.t5.K6(!0)}; dR=function(Z,I,d){this.initData=Z;this.contentType=I;this.isPrefetch=d;this.L=this.cryptoPeriodIndex=NaN;this.Z=[];this.DR=!1;this.D=null;if((I==null?void 0:I.toLowerCase())==="webm"||Z.length===16)this.DR=!0}; g.mu=function(Z,I,d,Y){g.p.call(this);var T=this;this.api=Z;this.U=I;this.playback=d;this.app=Y;this.kS=new g.ze;this.D=new Map;this.eK=new Map;this.Bj=new Map;this.j7=null;this.SK=NaN;this.b5=this.I0=null;this.UZ=new g.uX(function(){HaL(T,T.SK,T.I0||void 0)}); this.events=new g.De(this);this.J5=15E3;this.V=new g.uX(function(){T.X=!0;T.playback.n7(T.J5);I8(T);if(T.playback.getVideoData().YF()){var f;T.t9({togab:(f=T.j)==null?void 0:f.identifier})}T.Af(!1)},this.J5); this.X=!1;this.B=new Map;this.sZ=[];this.j=null;this.R4=new Set;this.In=[];this.d4=[];this.Tv=[];this.EU=[];this.Tm=new Set;this.dD=0;this.LS=!1;this.M8=new Set;this.En=new Set;this.o4=new Set;this.y5=new Set;this.sU=this.Wv=0;this.fp=this.Hk=!1;this.dV=this.Z="";this.Ns=null;this.logger=new g.qj("dai");this.kF="";this.w4=!0;this.mJ=new Map;this.Yl=new Map;this.A9={WsJ:function(){return T.D}, Zc:function(){return T.L.A9.Zc()}, Ed5:function(){return T.Z}, ii5:function(f){T.onCueRangeEnter(T.D.get(f))}, j65:function(f){T.onCueRangeExit(T.D.get(f))}, GG5:function(f,P){T.D.set(f,P)}, bJ5:function(f){T.dV=f}, oU:function(){return T.oU()}, Fsm:function(f){return T.L.L.get(f)}, sb4:function(){return T.Ns}, kt:function(){return T.L.A9.kt()}, lP:function(f,P){T.lP(f,P)}, GX7:function(){return T.eK}, M$:function(f){T.M$(f)}}; this.playback.getPlayerType();this.L=new s0D(this.U);this.playback.C7(this);this.on=this.U.Vy();g.z(this,this.UZ);g.z(this,this.events);g.z(this,this.V);(this.wz=this.U.Y("html5_use_new_ssdai_transition_detector"))?this.playback.subscribe("playbackstarted",this.lP,this):(this.events.W(this.api,g.E2("serverstitchedcuerange"),this.onCueRangeEnter),this.events.W(this.api,g.bx("serverstitchedcuerange"),this.onCueRangeExit));this.Gv=this.U.Y("html5_ssdai_report_stitch_error_after_skip_ad");Vi(this.app.J_(), this.playback,!1)}; FS9=function(Z){if(Z){if(Quu(Z))return Z;Z=A_D(Z);if(Quu(Z,!0))return Z}return""}; xpJ=function(Z){var I=new Ae;if(Z.interpreterJavascript){var d=rha(Z.interpreterJavascript);d=ci(d).toString();var Y=new SF;Kr(Y,6,d);P6(I,SF,1,Y,vg)}else Z.interpreterUrl&&(d=W6(Z.interpreterUrl),d=EV(d).toString(),Y=new dz,Kr(Y,4,d),P6(I,dz,2,Y,vg));Z.interpreterHash&&j6(I,3,Z.interpreterHash,vg);Z.program&&j6(I,4,Z.program,vg);Z.globalName&&j6(I,5,Z.globalName,vg);Z.clientExperimentsStateBlob&&j6(I,7,Z.clientExperimentsStateBlob,vg);return I}; pI=function(Z,I,d,Y,T){lJ.call(this,"Voice boost",g.D$.gh);this.S=Z;this.Z=I;this.D=d;this.hasVoiceBoostAudioTrack=Y;this.getVoiceBoostState=T;this.L=!1;this.A5=this.S.Y("html5_enable_new_audio_settings_menu")?Z.sI().nB:Z.sI();this.W(Z,"videodatachange",this.sV.bind(this));this.W(Z,"onPlaybackAudioChange",this.sV);this.S.Y("html5_enable_new_audio_settings_menu")||this.setIcon(iaD());this.subscribe("select",this.N,this);this.sV()}; JiO=function(Z){$w.call(this,Z);var I=this;this.freePreviewWatchedDuration=null;this.freePreviewUsageDetails=[];this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"heartbeatRequest",function(d){if(I.freePreviewUsageDetails.length||I.freePreviewWatchedDuration!==null)d.heartbeatRequestParams||(d.heartbeatRequestParams={}),d.heartbeatRequestParams.unpluggedParams||(d.heartbeatRequestParams.unpluggedParams={}),I.freePreviewUsageDetails.length>0?d.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= I.freePreviewUsageDetails:d.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+I.freePreviewWatchedDuration}}); pF(Z,"setFreePreviewWatchedDuration",function(d){I.freePreviewWatchedDuration=d}); pF(Z,"setFreePreviewUsageDetails",function(d){I.freePreviewUsageDetails=d})}; FV$=function(Z){GU().N=!!Z.vU("isViewable");e5(Z,"viewableChange",tYi);Z.vU("getState")==="loading"?e5(Z,"ready",NA9):FNL(Z)}; zlD=function(){try{var Z=window.navigator;if(Z.getAutoplayPolicy&&typeof Z.getAutoplayPolicy==="function"){var I=document.getElementsByClassName(g.dP.h2J);var d=I.length>0&&I[0]?Z.getAutoplayPolicy(I[0]):Z.getAutoplayPolicy("mediaelement");if(skJ[d])return skJ[d]}}catch(Y){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; dLi=function(Z){var I=lF();E3(I,Z);return g.Lh(I,nJi())}; LC=function(Z,I,d,Y){(Z=Z.lQ.get(d))&&!Z.bT&&(Nx?(Z.JK.has(I)||Z.JK.set(I,{data:new OA,m3:0,Nh:!1}),Ur(Z.JK.get(I).data,Y)):Ur(Z.Hb,Y),Z.bytesReceived+=Y.totalLength,Z.gg=!0)}; Vg=function(Z){return Z.Pj==="MAC3"||Z.Pj==="MEAC3"||Z.Pj==="M"||Z.Pj==="I"}; q1=function(Z,I,d){if(I<=0){d=eM();I="muted";var Y=0}else d=d?{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z",fill:"#fff"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M8,21 L12,21 L17,26 L17,10 L12,15 L8,15 L8,21 Z M19,14 L19,22 C20.48,21.32 21.5,19.77 21.5,18 C21.5,16.26 20.48,14.74 19,14 Z M19,11.29 C21.89,12.15 24,14.83 24,18 C24,21.17 21.89,23.85 19,24.71 L19,26.77 C23.01,25.86 26,22.28 26,18 C26,13.72 23.01,10.14 19,9.23 L19,11.29 Z", fill:"#fff"}}]},Y=Math.floor(I),I=Y+"volume";yS(Z,d,I,Y+"%")}; g.Xe=function(Z,I,d){I=d2(Z,I,d);return I<0?null:typeof Z==="string"?Z.charAt(I):Z[I]}; QNd=function(){}; hOl=function(Z,I){an(Z.api.C())&&(I?Z.B.show():Z.B.hide())}; mba=function(Z){var I=Z.S.cj().BJ();Z=Z.S.aF(!0,!0);return I.height-(Z.height+Z.top)}; fgO=function(){var Z=document;return g.Xe(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(I){return"on"+I.toLowerCase()in Z})}; pG=function(Z){for(var I=g.t(Z.Z.entries()),d=I.next();!d.done;d=I.next()){var Y=g.t(d.value);d=Y.next().value;Y=Y.next().value;Y<(0,g.o8)()&&Z.Z.delete(d)}return Z.Z}; qG$=function(Z,I){Z.Z.some(function(d){var Y;return((Y=d.uo)==null?void 0:Y.getId())===I}); Z.L=I}; TU$=function(Z,I){a:{if(Z.In>0){var d=Math.floor((0,g.o8)()/1E4);if(d===I.yG){if(I.eA>=Z.In){I.eA===Z.In&&(d={reason:"toomanyrequests"},d.limit=I.eA,Z.loader.handleError("player.exception",d),I.eA+=1);I=!1;break a}}else I.yG=d,I.eA=0}I=!0}if(!I||Z.loader.isSuspended&&Z.loader.bC)return!1;if(Z.LS&&(0,g.o8)()0)||Z.policy.LS&&Z.L.length===1&&Z.L[0].Dw()?!0:!1){var Y;I=(Y=Z.u5.In)!=null&&ek(Y,Z.policy,Z.N,Z.loader.yn())?!0:!1}return I?!0:!1}; bJu=function(Z,I,d){Z=Z.map(function(a){return Mz(g.y(a.renderingContent,l0),!1)}); var Y=Z.map(function(a){return a.videoLengthSeconds}),T=Y.map(function(a,W){return new rO(W,Y)}),f=I,P=d,O=[]; Z.forEach(function(a,W){P=Math.min(f+a.videoLengthSeconds*1E3,d);Uh(a.playerVars,T[W]);O.push({ea:a,s8:f,Kq:P,yq:W,Hh:T[W]});f=P}); return O}; SQ=function(Z,I,d){return Z.getCurrentTimeSec(I,d)}; sM=function(Z){var I=F2(Z,!0);Z.pos+=I}; V$=function(Z){Z=Z||window.event;var I;Z.composedPath&&typeof Z.composedPath==="function"?I=Z.composedPath():I=Z.path;I&&I.length?Z=I[0]:(Z=Z||window.event,Z=Z.target||Z.srcElement,Z.nodeType==3&&(Z=Z.parentNode));return Z}; f5L=function(Z,I,d){y3(Z,I);I=xZu(Z.B,d);d||I||(I=SGr(Z));I=I||Z.j.L[0];Z.D=Z.u5.L[I.id];W2(Z);Z.V=Z.D;POl(Z);vkJ(Z);Z.Z=Z.nextVideo;Z.V=Z.D;return O2l(Z)}; DZ=function(){return g.gZ("ytPubsub2Pubsub2Instance")}; i4$=function(Z,I,d,Y,T,f){var P=this;f=f===void 0?[]:f;this.loader=Z;this.Ns=I;this.policy=d;this.u5=Y;this.j=T;this.d4=f;this.logger=new g.qj("dash/abr");this.L=nb;this.Z=this.V=null;this.In=-1;this.mJ=!1;this.nextVideo=this.D=null;this.N=[];this.w4=new Set;this.j7={};this.J5=new Gk(1);this.X=0;this.sZ=this.kS=this.LS=!1;this.Bj=0;this.on=!1;this.fS=new Set;this.Tm=!1;this.A9={uj:function(){W2(P)}}; this.B=new SS(this.policy,T,function(O,a){P.loader.D1(O,a)})}; H4l=function(Z,I,d){d=d===void 0?!1:d;Z.Qc=void 0;Z.L=I;g.z(Z,I);I.KN=Z.KN;I.jo=Z.jo;I.fS=Z.fS;I.Yl=Z.Yl;I.Hk=Z.Hk;Z.Vx&&(I.In=new g3(Z.Vx));(Z.kW()||g.oG(Z))&&Z.Bj.push("webgl");Z.L.isLive||(Z.isLivePlayback=!1);var Y=I.sourceUrl.split("/");if(Z.sU?Y.indexOf("manifest_duration")!==-1:Y.indexOf("manifest_duration")!=-1)Z.v1=Number(Y[Y.indexOf("manifest_duration")+1]);if(I.D||I.isManifestless)I.subscribe("clienttemp",Z.D1,Z),d?I.subscribe("refresh",Z.vG,Z):I.subscribe("cuepointsadded",Z.vM,Z);R1(I)? Z.Mt=!0:iM=void 0;Z.Ns&&(I.N=Z.Ns,I.isLive=!0,Z.isLivePlayback=!0);I.isPremiere=Z.isPremiere;I.isLiveHeadPlayable=Z.isLiveHeadPlayable}; AC$=function(Z){if(g.y(Z.renderingContent,Hv)){var I;return((I=g.y(Z.renderingContent,Hv))==null?void 0:I.impressionPings)||[]}if(g.y(Z.renderingContent,E0)){var d;return((d=g.y(Z.renderingContent,E0))==null?void 0:d.impressionPings)||[]}if(g.y(Z.renderingContent,bg)){var Y;return((Y=g.y(Z.renderingContent,bg))==null?void 0:Y.impressionPings)||[]}return[]}; we$=function(Z,I,d){var Y={Bk:Z.Bk,bL:function(a,W){Z.t5.eW(a,W)}, OY:Z.policy.X1,hn:Z.policy.Z};Z.Bk.D.j&&(Y.Hl=(Z.videoTrack.L.info.pS||0)+(Z.audioTrack.L.info.pS||0));Z.policy.N_&&(Y.Yo=Z.audioTrack.L.index.eH(),Y.OY=!1);var T=JNL(I,Z.policy,Z.N)?2:1;T!==Z.kS&&(Z.kS=T,o$$(Z));d=zd$(Z,d);if(Z.policy.LS&&Z.policy.Z&&d.Pi){for(var f=T="",P=g.t(d.Pi),O=P.next();!O.done;O=P.next())O=O.value,Z.videoData.sabrContextUpdates.has(O)||Z.policy.LS&&d.Y3&&d.Y3.type===O?T+="_"+O:f+="_"+O;Z.loader.D1("sabrbldrqs",{ctxts:T,misctxts:f})}!I.setData(d,Z.policy,Z.N)&&Z.policy.LS&& Z.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);Y=new DD(Z.policy,I,Z.u5,Z.N,Z,Y,Z.loader.gI());Ww(Z.timing);Z.policy.V&&Z.loader.D1("sabrcrq",{rn:Y.sM(),probe:I.UG()});return Y}; g.Aa=function(Z){g.k.call(this,{K:"div",zm:["ytp-error"],J:{role:"alert"},G:[{K:"div",T:"ytp-error-content",G:[{K:"div",T:"ytp-error-icon-container",G:[{K:"svg",J:{fill:"#fff",viewBox:"0 0 48 48"},G:[{K:"path",J:{d:"M0 0h48v48H0V0z",fill:"none"}},{K:"path",J:{d:"M22 30h4v4h-4zm0-16h4v12h-4zm1.99-10C12.94 4 4 12.95 4 24s8.94 20 19.99 20S44 35.05 44 24 35.04 4 23.99 4zM24 40c-8.84 0-16-7.16-16-16S15.16 8 24 8s16 7.16 16 16-7.16 16-16 16z","fill-opacity":"0.7"}}]}]},{K:"div",T:"ytp-error-content-wrap", G:[{K:"div",T:"ytp-error-content-wrap-reason",Z1:"{{content}}"},{K:"div",T:"ytp-error-content-wrap-subreason",Z1:"{{subreason}}"}]}]}]});this.api=Z;this.keys=[];this.Z=!1;Z.createClientVe(this.element,this,216103);this.api.logVisibility(this.element,this.LM)}; xY=function(Z,I,d){NV.call(this,Z);this.N=I;this.L="w";this.D="z";Fq(this,d)}; yC=function(){return SW()||ET("iPad")||ET("iPod")}; l6d=function(Z,I,d){var Y=g.NC(Z.provider);g.Vt(Z,Y,"vfi",[I==="A"?"":""+(d!=null?d:0),I])}; Dbu=function(){return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"rect",J:{fill:"white",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"rect",J:{fill:"url(#ytp-premium-standalone-gradient)",height:"20",rx:"5",width:"20",x:"2",y:"2"}},{K:"path",J:{d:"M12.75 13.02H9.98V11.56H12.75C13.24 11.56 13.63 11.48 13.93 11.33C14.22 11.17 14.44 10.96 14.58 10.68C14.72 10.40 14.79 10.09 14.79 9.73C14.79 9.39 14.72 9.08 14.58 8.78C14.44 8.49 14.22 8.25 13.93 8.07C13.63 7.89 13.24 7.80 12.75 7.80H10.54V17H8.70V6.33H12.75C13.58 6.33 14.28 6.48 14.86 6.77C15.44 7.06 15.88 7.46 16.18 7.97C16.48 8.48 16.64 9.06 16.64 9.71C16.64 10.40 16.48 10.99 16.18 11.49C15.88 11.98 15.44 12.36 14.86 12.62C14.28 12.89 13.58 13.02 12.75 13.02Z", fill:"white"}},{K:"defs",G:[{K:"linearGradient",J:{gradientUnits:"userSpaceOnUse",id:"ytp-premium-standalone-gradient",x1:"2",x2:"22",y1:"22",y2:"2"},G:[{K:"stop",J:{offset:"0.3","stop-color":"#E1002D"}},{K:"stop",J:{offset:"0.9","stop-color":"#E01378"}}]}]}]}}; KU=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);var d=this.api.Y("html5_enable_voice_boost");d&&this.events.W(Z,"settingsMenuInitialized",function(){TbE(I)}); pF(this.api,"getVoiceBoostUserPreference",function(){return d?I.getVoiceBoostUserPreference():0}); pF(this.api,"setVoiceBoostUserPreference",function(T){d&&I.setVoiceBoostUserPreference(T)}); pF(this.api,"hasVoiceBoostAudioTrack",function(){return d?I.hasVoiceBoostAudioTrack():!1}); pF(this.api,"getVoiceBoostState",function(){return d?I.getVoiceBoostState():1}); var Y;this.L=(Y=iOr())!=null?Y:0;this.updateEnvironmentData()}; xQJ=function(Z,I,d){d=Z.L[I].gK(d);X2(Z,d,0,Z.L[I].width)}; z7$=function(){g.k.call(this,{K:"div",T:"ytp-fine-scrubbing-thumbnail"})}; g.qM=function(Z,I,d){g.p.call(this);this.L=null;this.N=!1;this.j=Z;this.B=d;this.D=I||window;this.Z=(0,g.u5)(this.QK,this)}; cxa=function(Z){return Z.linearAd!=null&&Z.adVideoStart!=null}; qc$=function(Z,I,d,Y,T,f,P){f=f===void 0?[]:f;var O=ip(Z.D.get(),"SLOT_TYPE_AD_BREAK_REQUEST");P||(P=[],Y.Uy&&Y.Uy.start!==Y.Do.start&&P.push(new mw(Z.L,d,new Tu(Y.Uy.start,Y.Do.start),!1)),P.push(new mw(Z.L,d,new Tu(Y.Do.start,Y.Do.end),Y.Jl)));Y={getAdBreakUrl:I.getAdBreakUrl,Fn:Y.Do.start,qU:Y.Do.end,cueProcessedMs:Y.cueProcessedMs};I=new KC(Z.L,O);f=[new Z1(Y)].concat(g.c(f));return{slotId:O,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:I,slotFulfillmentTriggers:P, slotExpirationTriggers:[new An(Z.L,d),new du(Z.L,O),new UH(Z.L,O)],r4:"core",clientMetadata:new D0(f),adSlotLoggingData:T}}; JCn=function(Z,I,d){I=d?I.lastElementChild:I.firstElementChild;for(var Y=null;I;){if(fi(I,"display")!=="none"&&I.getAttribute("aria-hidden")!=="true"){var T=void 0;I.tabIndex>=0?T=I:T=JCn(Z,I,d);T&&(Y?d?T.tabIndex>Y.tabIndex&&(Y=T):T.tabIndex0));Z.Vy()&&l19();Error.stackTraceLimit=50;var T=g.Q4(I,"html5_idle_rate_limit_ms");T&&Object.defineProperty(window,"requestIdleCallback",{value:function(f){return window.setTimeout(f,T)}}); QUO(Z.B);HLJ(d("html5_use_ump_request_slicer"));cYE(d("html5_record_now"));d("html5_disable_streaming_xhr")&&(OC=!1);d("html5_byterate_constraints")&&(bJ=!0);d("html5_use_non_active_broadcast_for_post_live")&&(bm=!0);d("html5_enable_encrypted_av1")&&(Kx=!0);HOD(g.Q4(Z.experiments,"html5_sticky_duration_mos"))}; JNL=function(Z,I,d){Z.Zb===void 0&&(Z.Zb=Z.MC.Zb(I,d));return Z.Zb}; FW=function(Z){return Z?Z.RL():!1}; X$9=function(Z){var I={};I[Z.status]=uG(Z)?JJr(Z,"."):Z.N.join(".");return I}; Vx=function(Z){return Z.api.Y("delhi_modern_web_player")?4:Z.B?3:2}; h2=function(Z){return typeof Z==="object"&&Array.isArray(Z)}; Jp$=function(Z,I,d,Y,T,f,P,O,a){var W=Number(Y.durationMilliseconds);return isNaN(W)?new C("Expected valid duration for AdActionInterstitialRenderer."):function(e){return Kki(I,e.slotId,d,Y,W,{impressionCommands:void 0,abandonCommands:Y.abandonCommands?[{commandExecutorCommand:Y.abandonCommands}]:void 0,completeCommands:Y.completionCommands},Y.skipPings?new Map([["skip",Y.skipPings]]):new Map,P(e),function(B){return mf7(Z,B,T,function(w,V){var N=w.slotId;w=P(w);N=zi(I.D.get(),"LAYOUT_TYPE_ENDCAP", N);return rQ$(I,N,V,d,w,"LAYOUT_TYPE_ENDCAP",[new TF(Y),O],Y.adLayoutLoggingData)})},a,f-1,Y.adLayoutLoggingData,f)}}; toO=function(Z,I,d){Z instanceof String&&(Z=String(Z));for(var Y=Z.length,T=0;T2?Y[2]:"",T.remoteClient=f,Z.remoteContexts?Z.remoteContexts.push(T):Z.remoteContexts=[T],d=!0)}); return d}; dV7=function(Z){var I=l3(Z)==="adunit"?Z.yX:u3(Z)?l3(Z)==="detailpage"||l3(Z)==="shortspage"?Z.isAutonav||Z.eK>0:Z.Wb?!1:Z.nS.hV||Z.nS.gB||!g.Dh(Z.nS)?!0:!1:(Z.Wb?0:Z.gB)&&g.Dh(Z.nS)?!0:!1;Z.Y("html5_log_detailpage_autoplay")&&l3(Z)==="detailpage"&&Z.D1("autoplay_info",{autoplay:Z.t_,autonav:Z.isAutonav,wasDompaused:Z.Wb,result:I});return I}; oRl=function(Z){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=Z(this.triggerType)}; COu=function(Z,I,d,Y,T,f){if(Array.isArray(d))for(var P=0;P0)){N.xS(5);break}return g.m(N,a$(5E3),6);case 6:e={playerretry:a,playerretrysrc:d},P||(e.recover="embedded"),W=U4(f,e);case 5:return g.m(N,Faa(I,W).then(Y,T),7);case 7:if(B=N.D)return N.return();a++;N.xS(2);break;case 4:w=P?"auth":"manifest.net.retryexhausted";V= P?2:1;if(!P&&Math.random()<1E-4)try{g.uL(new g.Wj("b/152131571",btoa(f)))}catch(A){}return N.return(Promise.reject(new g.dj(w,{backend:"gvi"},V)))}})}; uiu=function(){return{K:"svg",J:{viewBox:"0 0 24 24"},G:[{K:"path",J:{d:"M0 0h24v24H0z",fill:"none"}},{K:"path",J:{d:"M1 21h4V9H1v12zm22-11c0-1.1-.9-2-2-2h-6.31l.95-4.57.03-.32c0-.41-.17-.79-.44-1.06L14.17 1 7.59 7.59C7.22 7.95 7 8.45 7 9v10c0 1.1.9 2 2 2h9c.83 0 1.54-.5 1.84-1.22l3.02-7.05c.09-.23.14-.47.14-.73v-1.91l-.01-.01L23 10z",fill:"#fff"}}]}}; SLu=function(Z){return window.Profiler&&new window.Profiler(Z)}; N$J=function(Z,I,d,Y){Z.Z.dispose();Z.Z=null;g.xw(Z.element,"ytp-popup-animating");Y?(g.xw(I.element,"ytp-panel-animate-forward"),g.KF(d.element,"ytp-panel-animate-back")):(g.xw(I.element,"ytp-panel-animate-back"),g.KF(d.element,"ytp-panel-animate-forward"));g.A9(Z.element,Z.size);Z.N=new g.uX(function(){g.KF(Z.element,"ytp-popup-animating");I.detach();g.IN(I.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);Z.N.dispose();Z.N=null},250,Z); Z.N.start()}; EJa=function(Z){var I=Z.videoTrack.L.index;Z.rf=new WnJ({Ym:Z.policy.Ym,TJ:Z.policy.X.TJ,Yo:I.eH(),c$:function(){return I.c$()}, CD:function(){return I.CD()}})}; YU=function(Z){g.w9.call(this,g.KD({"aria-haspopup":"true"},["ytp-linked-account-menuitem"]),2);var I=this;this.S=Z;this.D=this.L=!1;this.A5=Z.sI();Z.createServerVe(this.element,this,!0);this.W(this.S,"settingsMenuVisibilityChanged",function(d){I.UU(d)}); this.W(this.S,"videodatachange",this.N);this.listen("click",this.onClick);this.N()}; bjD=function(Z,I,d){if(zOJ){var Y;mO(Z.mediaElement,{l:"mswssb",sr:(Y=Z.mediaElement.t5)==null?void 0:Y.qj()},!1);I.vT(Z.V,Z);d.vT(Z.V,Z)}Z.L=I;Z.D=d;g.z(Z,I);g.z(Z,d)}; sEO=function(Z,I){var d=I.L.getValue();d=new g.uX(function(){n_u(Z,I)},d); g.z(Z,d);d.start();g.yp(I.L);yy(Z,{rtyrq:1})}; d6D=function(Z,I){if(Z.Fm)return Z.Fm.Z;a:{I=I===void 0?!1:I;I=I===void 0?!1:I;try{g.wm()&&Z.videoData.kW()&&t07(Z.mediaElement);var d=Z.mediaElement.Qq(Z.Iw(),Z.sX())}catch(T){if(Hji(Z.Yk,"html5.missingapi",{updateMs:"1"}))break a;console.error("window.URL object overwritten by external code",T);Z.pj("html5.missingapi",2,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","updateMs.1");break a}Z.Ry(d,!1,!1,I)}var Y;return((Y=Z.Qq())==null?void 0:Y.Z)||null}; cC7=function(Z,I,d,Y){Y=Y===void 0?!1:Y;Z.set("cpn",I.clientPlaybackNonce);Z.set("opr","1");var T=I.C();Z.set("por","1");Vj()||Z.set("onem","1");I.startSeconds>0&&Z.set("osts",""+I.startSeconds);Y||(T.Y("html5_onesie_disable_partial_segments")&&Z.set("oses","1"),I=T.Y("html5_gapless_onesie_no_media_bytes")&&fA(I)&&I.zD,d&&!I?(I=d.audio,Z.set("pvi",d.video.join(",")),T.Y("html5_onesie_disable_audio_bytes")||Z.set("pai",I.join(",")),OC||Z.set("osh","1")):(Z.set("oad","0"),Z.set("ovd","0"),Z.set("oaad", "0"),Z.set("oavd","0")))}; gJr=function(){var Z=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; SL=function(Z,I,d,Y,T){g.p.call(this);this.webPlayerContextConfig=I;this.SL=Y;this.csiServiceName=this.csiPageType="";this.userAge=NaN;this.zD=this.UZ=this.Gv=this.DM=this.userDisplayName=this.userDisplayImage=this.Mj="";this.L={};this.Yl={};this.controlsType="0";this.SK=NaN;this.d4=!1;this.u8=(0,g.o8)();this.I0=0;this.z0=this.Wh=!1;this.g5=!0;this.preferGapless=this.n0=this.Tx=this.Z=this.vg=!1;this.s_=[];this.aE=!1;this.ir=0;Z=Z?g.zm(Z):{};I&&I.csiPageType&&(this.csiPageType=I.csiPageType);I&&I.csiServiceName&& (this.csiServiceName=I.csiServiceName);I&&I.preferGapless&&(this.preferGapless=I.preferGapless);this.experiments=new fI(I?I.serializedExperimentIds:Z.fexp,I?I.serializedExperimentFlags:Z.fflags,I!=null?I:{});this.forcedExperiments=I?I.serializedForcedExperimentIds:qQ("",Z.forced_experiments)||void 0;this.cspNonce=(I==null?0:I.cspNonce)?I.cspNonce:qQ("",Z.csp_nonce);L1B(this.Y("web_player_deprecated_uvr_killswitch"));try{var f=document.location.toString()}catch(Id){f=""}this.wz=f;this.ancestorOrigins= (Y=window.location.ancestorOrigins)?Array.from(Y):[];this.N=U2(!1,I?I.isEmbed:Z.is_embed);I&&I.device?qf7(this,I.device):(this.L.c=Z.c||"web",this.L.cver=Z.cver||"html5",this.L.cplayer="UNIPLAYER");this.loaderUrl=I?this.N||jtE(this)&&I.loaderUrl?I.loaderUrl||"":this.wz:this.N||jtE(this)&&Z.loaderUrl?qQ("",Z.loaderUrl):this.wz;this.N&&g.zb("yt.embedded_player.embed_url",this.loaderUrl);this.X=K8(this.loaderUrl,Moa);this.JW=As$(this.loaderUrl);this.sU=U2(!1,Z.privembed);this.protocol=this.wz.indexOf("http:")=== 0?"http":"https";this.UI=Kmr((I?I.customBaseYoutubeUrl:Z.BASE_YT_URL)||"")||Kmr(this.wz)||this.protocol+"://www.youtube.com/";this.fS=ZJE(this,I?I.eventLabel:Z.el);jha();Y=null;f=I?I.playerStyle:Z.ps;var P=g.Kc(rC7,f);!f||P&&!this.X||(Y=f);this.playerStyle=Y;this.j=g.Kc(rC7,this.playerStyle);this.houseBrandUserStatus=I==null?void 0:I.houseBrandUserStatus;this.kS=this.j&&this.playerStyle!=="play"&&this.playerStyle!=="jamboard";this.VX=!this.kS;this.Tm=U2(!1,Z.disableplaybackui);this.disablePaidContentOverlay= U2(!1,I==null?void 0:I.disablePaidContentOverlay);this.disableSeek=U2(!1,I==null?void 0:I.disableSeek);this.enableSpeedOptions=(I==null?void 0:I.enableSpeedOptions)||(xQ().defaultPlaybackRate?AO||g.pb||Wk?g.Kb&&mc("20")||g.h_&&mc("4")||g.Cb&&mc("11")||eed():!(g.Cb&&!g.y1("chrome")||AO||g.y1("android")||g.y1("silk")):!1);this.F1=U2(!1,Z.enable_faster_speeds);var O;this.supportsVarispeedExtendedFeatures=(O=I==null?void 0:I.supportsVarispeedExtendedFeatures)!=null?O:!1;this.D=U2(this.playerStyle==="blazer", Z.is_html5_mobile_device||I&&I.isMobileDevice);this.w4=ea()||BU();this.OL=this.Y("mweb_allow_background_playback")?!1:this.D&&!this.j;this.j7=iJd();this.xO=g.Zlg;var a;this.Du=!!(I==null?0:(a=I.embedsHostFlags)==null?0:a.optOutApiDeprecation);var W;I?I.hideInfo!==void 0&&(W=!I.hideInfo):W=Z.showinfo;this.KW=g.Dh(this)&&!this.Du||U2(!NH(this)&&!y8(this)&&!this.j,W);this.Mt=I?!!I.mobileIphoneSupportsInlinePlayback:U2(!1,Z.playsinline);O=this.D&&HDn&&L6!=null&&L6>0&&L6<=2.3;a=I?I.useNativeControls:Z.use_native_controls; this.V=g.Dh(this)&&this.D;W=this.D&&!this.V;a=g.f8(this)||!O&&U2(W,a)?"3":"1";this.disableOrganicUi=!(I==null||!I.disableOrganicUi);W=I?I.controlsType:Z.controls;this.controlsType=this.disableOrganicUi||W==="0"||W===0?"0":a;this.MO=this.D;this.color=AS("red",I?I.progressBarColor:Z.color,IrL);this.LJ=this.controlsType==="3";this.Hk=!this.N;this.nW=(a=!this.Hk&&!y8(this)&&!this.kS&&!this.j&&!NH(this))&&!this.LJ&&this.controlsType==="1";this.o4=g.bZ(this)&&a&&this.controlsType==="0"&&!this.nW&&!(I== null?0:I.embedsEnableEmc3ds);this.YO=this.Ki=O;this.M8=(this.controlsType==="3"||this.D||U2(!1,Z.use_media_volume))&&!this.V;this.xM=kD&&!g.xT(601)?!1:!0;this.jA=this.N||!1;this.Vf=y8(this)?"":(this.loaderUrl||Z.post_message_origin||"").substring(0,128);this.widgetReferrer=qQ("",I?I.widgetReferrer:Z.widget_referrer);var e;I?I.disableCastApi&&(e=!1):e=Z.enablecastapi;e=!this.X||U2(!0,e);O=!0;I&&I.disableMdxCast&&(O=!1);this.Vx=this.Y("enable_cast_for_web_unplugged")&&g.$D(this)&&O||g.vl(this)&&O|| e&&O&&this.controlsType==="1"&&!this.D&&(y8(this)||g.bZ(this)||g.Ul(this));this.Qc=!!window.document.pictureInPictureEnabled||ZHB();e=I?!!I.supportsAutoplayOverride:U2(!1,Z.autoplayoverride);this.hV=!(this.D&&!g.Dh(this))&&!g.y1("nintendo wiiu")||e;this.gB=(I?!!I.enableMutedAutoplay:U2(!1,Z.mutedautoplay))&&!1;e=(y8(this)||NH(this))&&this.playerStyle==="blazer";this.by=I?!!I.disableFullscreen:!U2(!0,Z.fs);O=g.By(g.Wy(this))&&g.Dh(this);this.b5=!this.by&&(e||g.mB())&&!O;this.Z6=this.Y("html5_picture_in_picture_logging_onresize"); var B;this.gF=(B=g.Q4(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?B:.33;this.kM=this.Y("html5_picture_in_picture_blocking_onresize");this.Zu=this.Y("html5_picture_in_picture_blocking_ontimeupdate");this.kA=this.Y("html5_picture_in_picture_blocking_document_fullscreen");this.gG=this.Y("html5_picture_in_picture_blocking_standard_api");B=bq()&&mc(58)&&!BU();e=RZ||typeof MediaSource==="undefined";this.gf=this.Y("uniplayer_block_pip")&&(B||e)||this.kM||this.Zu||this.gG;B= g.Dh(this)&&!this.Du;var w;I?I.disableRelatedVideos!==void 0&&(w=!I.disableRelatedVideos):w=Z.rel;this.Tv=B||U2(!this.j,w);this.zX=U2(!1,I?I.enableContentOwnerRelatedVideos:Z.co_rel);this.In=BU()&&L6>0&&L6<=4.4?"_top":"_blank";this.Wb=g.Ul(this);this.DL=U2(this.playerStyle==="blazer",I?I.enableCsiLogging:Z.enablecsi);switch(this.playerStyle){case "blogger":w="bl";break;case "discover-ads":w="dd";break;case "gmail":w="gm";break;case "gac":w="ga";break;case "ads-preview":w="ap";break;case "books":w= "gb";break;case "docs":case "flix":w="gd";break;case "duo":w="gu";break;case "google-live":w="gl";break;case "google-one":w="go";break;case "play":case "play-ads":w="gp";break;case "chat":w="hc";break;case "hangouts-meet":w="hm";break;case "photos-edu":case "picasaweb":w="pw";break;default:w="yt"}this.LS=w;this.Ns=qQ("",I?I.authorizedUserIndex:Z.authuser);this.eK=g.Dh(this)&&(this.sU||!Yb9()||this.w4);var V;I?I.disableWatchLater!==void 0&&(V=!I.disableWatchLater):V=Z.showwatchlater;this.du=((w=!this.eK)|| !!this.Ns&&w)&&U2(!this.kS,this.X?V:void 0);this.kF=I?I.isMobileDevice||!!I.disableKeyboardControls:U2(!1,Z.disablekb);this.loop=U2(!1,Z.loop);this.pageId=qQ("",I?I.initialDelegatedSessionId:Z.pageid);this.SG=U2(!0,Z.canplaylive);this.W0=2;this.y5=U2(!1,Z.livemonitor);this.disableSharing=U2(this.j,I?I.disableSharing:Z.ss);this.BS=DLB(I&&this.Y("fill_video_container_size_override_from_wpcc")?I.videoContainerOverride:Z.video_container_override);this.mute=I?!!I.startMuted:U2(!1,Z.mute);this.storeUserVolume= !this.mute&&U2(this.controlsType!=="0",I?I.storeUserVolume:Z.store_user_volume);V=I?I.annotationsLoadPolicy:Z.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:AS(void 0,V,U8);this.captionsLanguagePreference=I?I.captionsLanguagePreference||"":qQ("",Z.cc_lang_pref);V=AS(2,I?I.captionsLanguageLoadPolicy:Z.cc_load_policy,U8);this.controlsType==="3"&&V===2&&(V=3);this.ZL=V;this.En=I?I.hl||"en_US":qQ("en_US",Z.hl);this.region=I?I.contentRegion||"US":qQ("US",Z.cr);this.hostLanguage=I? I.hostLanguage||"en":qQ("en",Z.host_language);this.q6=!this.sU&&Math.random()0;a--)d.push(O)}d.length!==P?I.error=!0:(f=d.slice(-f),d.length=T,pxE(I,d,f));break;case 1:pxE(I,hK,D7E);break;case 0:Dm(I, I.L&7);d=Oa(I,16);T=Oa(I,16);(d^T)!==65535&&(I.error=!0);I.output.set(I.data.subarray(I.D,I.D+d),I.Z);I.D+=d;I.Z+=d;break;default:I.error=!0}Z.Z>Z.output.length&&(Z.output=new Uint8Array(Z.Z*2),Z.Z=0,Z.D=0,Z.N=!1,Z.L=0,Z.register=0)}Z.output.length!==Z.Z&&(Z.output=Z.output.subarray(0,Z.Z));return Z.error?new Uint8Array(0):Z.output}; eQ=function(Z){Z.L.stop();var I=Infinity;for(var d=g.t(Z.data),Y=d.next();!Y.done;Y=d.next())Y=Y.value,Y.expire0&&(Z.L.start(),O=!0,d.delayed="1",--Z.Z); T=Z.t5.loader;O||!((Y==null?0:IO(Y))||(Y==null?0:RP(Y)))||f||(Dsu(Z.nS.B,Y.Pj),P=O=!0,d.cfallexp=Y.Pj);if(!O)return kuL(Z,d);f=!1;Z.B?Z.uX=(0,g.o8)():f=Z.B=!0;O=Z.videoData;if(O.on){O=O.on.xt();var a=Date.now()/1E3+1800;O=OI.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new vV(Z)):new vV(Z,d,I)}; Mp=function(Z){return Z.fS?Z.fS-(Z.X||Z.timestampOffset):0}; Vk=function(Z){return Bq()?!wj(Z):LB()?!(!Z.w4||!Z.Y("html5_enable_safari_fairplay")&&Nn()):!1}; CX=function(Z,I,d,Y){var T=Z.N.LZ();T.ssr_sk=(I*1E3).toFixed(0);T.ssr_t=(Z.L*1E3).toFixed(0);T.ssr_r=d;T.ssr_st=(Z.startTimeSecs*1E3).toFixed(0);T.ssr_n=(0,g.o8)().toFixed(0);T.ssr_f=(Z.V.L*1E3).toFixed(0);T.ssr_fa=Z.Z?"1":"0";T.ssr_o=(Z.WW.eD()*1E3||0).toFixed(0);T.ssr_v=(Y*1E3).toFixed(0);I=Z.D.L.index;I.J0(Z.D.YS,!0)&&(T.ssr_ist=(I.getStartTime(Z.D.YS)*1E3).toFixed(0),T.ssr_id=(I.getDuration(Z.D.YS)*1E3).toFixed(0));Z.loader.D1("ssr",T)}; $4E=function(Z){var I=Math.max(Z.videoTrack.N.Z||0,Z.audioTrack.N.Z||0);va9(Z.videoTrack);va9(Z.audioTrack);Z.policy.B||WaJ(Z.u5);Z.u5.isManifestless&&!Z.policy.B&&(Z.L=!0,Z.D=0);var d=Z.loader;if(!d.policy.j7||d.policy.Hk)d.currentTime=I;Z.N=!0;Z.Z=new HA;return Z.Z}; xLl=function(Z){var I=g.iV("LOGGED_IN",function(d){Z.apply(void 0,arguments);g.Z2(I)})}; Qdg=function(Z,I){var d="";I=I.Cb();I.totalLength<=Z.policy.aV&&(Z=rd(I),Z=J8(Z),d=Gj(Z)?Z:"");return d}; oE=function(Z){var I,d,Y,T;g.h(function(f){if(!Z.Y("html5_generate_session_po_token")||Z.useLivingRoomPoToken)return f.return();I=Z.api.C();d=g.rh("EOM_VISITOR_DATA")||g.rh("VISITOR_DATA");Y=I.U_?I.datasyncId:d;T=bo(I.experiments,"html5_mock_content_binding_for_session_token")||I.livingRoomPoTokenId||Y;I.wV=bR(Z,T);g.v6(f)})}; Kz=function(Z){Z=Z===void 0?JB:Z;aj.call(this,new WF(Z,2))}; g.bZ=function(Z){return Z.fS==="embedded"}; id=function(Z){this.value=Z}; OlM=function(Z){if(Z==null||typeof Z=="string"||Z instanceof XE)return Z}; DU=function(Z,I){Z=Error.call(this,Z);this.message=Z.message;"stack"in Z&&(this.stack=Z.stack);this.L=I===void 0?!1:I}; g.JX=function(Z,I){var d=I.type;d in Z.listeners&&g.s4(Z.listeners[d],I)&&(En(I),Z.listeners[d].length==0&&(delete Z.listeners[d],Z.L--))}; va=function(Z,I){var d={sv:"968"};Kk!==null&&(d.v=Kk);d.cb=krO;d.nas=hG.L.length;d.msg=Z;I!==void 0&&(Z=A0u(I))&&(d.e=arp[Z]);return d}; jHi=function(Z,I,d,Y){Z.L&&Z.L.dispose();Z.L=new g.uX(Z.zb,I,Z);g.z(Z,Z.L);Y=co(Y);I=Y==null?void 0:Y.navigationEndpoint;var T;Y=Y==null?void 0:(T=Y.icon)==null?void 0:T.iconType;var f;T=(f=g.y(I,g.M0))==null?void 0:f.url;Z.S.setTrackingParams(Z.element,(I==null?void 0:I.clickTrackingParams)||null);I&&!T?(Z.innertubeCommand=I,T="#!"):Z.innertubeCommand=null;var P;Z.D.update({href:(P=T)!=null?P:"#",text:d,icon:Y==="MONEY_HAND"?{K:"svg",J:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, G:[{K:"path",J:{d:"M6 9H5V5V4H6H19V5H6V9ZM21.72 16.04C21.56 16.8 21.15 17.5 20.55 18.05C20.47 18.13 18.42 20.01 14.03 20.01C13.85 20.01 13.67 20.01 13.48 20C11.3 19.92 8.51 19.23 5.4 18H2V10H5H6H7V6H21V13H16.72C16.37 13.59 15.74 14 15 14H12.7C13.01 14.46 13.56 15 14.5 15H15.02C16.07 15 17.1 14.64 17.92 13.98C18.82 13.26 20.03 13.22 20.91 13.84C21.58 14.32 21.9 15.19 21.72 16.04ZM15 10C15 9.45 14.55 9 14 9C13.45 9 13 9.45 13 10H15ZM20 11C19.45 11 19 11.45 19 12H20V11ZM19 7C19 7.55 19.45 8 20 8V7H19ZM8 8C8.55 8 9 7.55 9 7H8V8ZM8 10H12C12 8.9 12.9 8 14 8C15.1 8 16 8.9 16 10V10.28C16.59 10.63 17 11.26 17 12H18C18 10.9 18.9 10 20 10V9C18.9 9 18 8.1 18 7H10C10 8.1 9.1 9 8 9V10ZM5 13.5V11H3V17H5V13.5ZM20.33 14.66C19.81 14.29 19.1 14.31 18.6 14.71C17.55 15.56 16.29 16 15.02 16H14.5C12.62 16 11.67 14.46 11.43 13.64L11.24 13H15C15.55 13 16 12.55 16 12C16 11.45 15.55 11 15 11H6V13.5V17.16C8.9 18.29 11.5 18.93 13.52 19C17.85 19.15 19.85 17.34 19.87 17.32C20.33 16.9 20.62 16.4 20.74 15.84C20.84 15.37 20.68 14.91 20.33 14.66Z", fill:"white"}}]}:null,chevron:T||Z.innertubeCommand?g.i1():null})}; ymE=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Yp=function(Z,I){Z.B&&(Z.B.resolve(I),Z.t5.lq(),Z.U.Vy()||mpu(Z))&&(I=Z.Gb(),I["native"]=""+ +Z.kS,I.otgt=""+(Z.D+Z.timestampOffset),Z.t5.D1("seekEnd",I));dE(Z)}; W7t=function(Z){if(Z.D.getVideoData().Z){var I=Z.q8.C().Y("html5_gapless_suspend_next_loader")&&Z.B===1;Z.D.Ry(Z.N,I,PXJ(Z));HY(Z,3);Pud(Z);var d=qa$(Z);I=d.tG;d=d.d2;I.subscribe("updateend",Z.LC,Z);d.subscribe("updateend",Z.LC,Z);Z.LC(I);Z.LC(d)}}; aJ=function(Z,I){var d=(I?I:Z.gz()).GS;Z.KM.tick("ep_pr_r");if(d!=null&&(frv(Z.playlist,d),Z.DY))Z.playlist.onReady(function(){fg(Z,I)})}; eat=function(Z){this.Gm=bp(Z)}; gtu=function(Z,I){return cIu(Z,function(d){return d.Z},I===void 0?!0:I)}; ra$=function(){this.L=1;this.D=new Iq}; jg=function(Z,I,d){for(var Y in Z.L){var T=SI(Z.L[Y].info.mimeType)||Z.L[Y].info.zx();if(d===T&&(T=Z.L[Y].index)!=null){var f=Wo(T,I);f>=0&&T.segments.splice(f,1)}}}; BDd=function(Z){Z=Math.trunc(Z)||0;Z<0&&(Z+=this.length);if(!(Z<0||Z>=this.length))return this[Z]}; g.y$=function(Z){for(var I=g.t(Z.items),d=I.next();!d.done;d=I.next())d.value.unsubscribe("size-change",Z.a_,Z);Z.items=[];try{g.Nd(Z.menuItems.element)}catch(f){var Y,T;g.uL(new g.Wj("Failed to remove menu items from panel menu.",{error:f.message,originalStack:f.stack,childToBeRemoved:(T=(Y=Z.menuItems.element.firstChild)==null?void 0:Y.textContent)!=null?T:"child element not found"}))}Z.menuItems.publish("size-change")}; Vfi=function(Z){g.TA(Z.L,function(I){I.D>1E5||++I.D})}; J$=function(Z){switch(Z){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return Z}}; Ctu=function(Z){for(var I={Ou:0};I.Ou<16;I={Ou:I.Ou},++I.Ou){var d=new g.k({K:"a",T:"ytp-suggestion-link",J:{href:"{{link}}",target:Z.api.C().In,"aria-label":"{{aria_label}}"},G:[{K:"div",T:"ytp-suggestion-image"},{K:"div",T:"ytp-suggestion-overlay",J:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},G:[{K:"div",T:"ytp-suggestion-title",Z1:"{{title}}"},{K:"div",T:"ytp-suggestion-author",Z1:"{{author_and_views}}"},{K:"div",J:{"data-is-live":"{{is_live}}"},T:"ytp-suggestion-duration", Z1:"{{duration}}"}]}]});g.z(Z,d);var Y=d.KS("ytp-suggestion-link");g.K2(Y,"transitionDelay",I.Ou/20+"s");Z.Z.W(Y,"click",function(T){return function(f){var P=T.Ou;if(Z.D){var O=Z.suggestionData[P],a=O.sessionData;Z.B&&Z.api.Y("web_player_log_click_before_generating_ve_conversion_params")?(Z.api.logClick(Z.L[P].element),P=O.EM(),O={},g.n6(Z.api,O),P=g.gq(P,O),g.$n(P,Z.api,f)):g.D_(f,Z.api,Z.B,a||void 0)&&Z.api.LW(O.videoId,a,O.playlistId)}else f.preventDefault(),document.activeElement.blur()}}(I)); d.i5(Z.suggestions.element);Z.L.push(d);Z.api.createServerVe(d.element,d)}}; IM=function(Z){Z=Error(Z);$3L(Z,"warning");return Z}; wOE=function(Z,I){I=g.HS[I];return Z.D<=I&&(!Z.L||Z.L>=I)}; TM=function(Z){if(Z.trendingOfferEntityKey){var I=g.KG.getState().entities;if(I=CG(I,"trendingOfferEntity",Z.trendingOfferEntityKey)){var d,Y,T;I.encodedSkuId!==((d=Z.L)==null?void 0:(Y=d.bannerData)==null?void 0:(T=Y.itemData)==null?void 0:T.encodedOfferSkuId)?DM(Z):(Z.D.update({trendingOffer:I.shortLabel+" \u2022 "+I.countLabel}),Z.D.show(),Z.banner.update({vendor:A_(Z)}))}else DM(Z)}else DM(Z)}; yJ7=function(Z,I,d){if(UY(Z.L,I)&&go(Fc(Z.L,I))){var Y=My(Z.L,I);if(Y&&Sw(Z.L,I))$gd(Z,I,Y,d?"error":"abandoned");else{Z.Wk.NO("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",I);try{var T=Fc(Z.L,I);if(!T)throw new C("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");T.L!=="enter_requested"&&T.L!=="entered"&&T.L!=="rendering"&&ye(T.slot,T.L,"exitSlot");T.L="exit_requested";if(T.D===void 0)throw T.L="scheduled",new C("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");T.D.K5()}catch(f){f instanceof C&&f.mj?(Z.Wk.Dy("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",f.mj,I),Zv(f,I,void 0,void 0,f.NP)):(Z.Wk.Dy("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",I),Zv(f,I))}}}}; Id9=function(Z){return Z.data["Cuepoint-Type"]?new Ax(-(Number(Z.data["Cuepoint-Playhead-Time-Sec"])||0),Number(Z.data["Cuepoint-Total-Duration-Sec"])||0,Z.data["Cuepoint-Context"],Z.data["Cuepoint-Identifier"]||"",V$d[Z.data["Cuepoint-Event"]||""]||"unknown",(Number(Z.data["Cuepoint-Playhead-Time-Sec"])||0)*1E3):null}; g.F73=function(Z){var I,d,Y;Z=g.y((I=Z.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(Y=d.playerOverlayRenderer)==null?void 0:Y.decoratedPlayerBarRenderer,o$);return g.y(Z==null?void 0:Z.playerBar,NDg)}; sdg=function(Z,I){I=I===void 0?"":I;var d=rA(I)||void 0;if(!I||!d){var Y;Z.t9({adcfg:(Y=I)==null?void 0:Y.length,dcfg:d==null?void 0:d.length})}return d}; RvO=function(Z,I,d,Y,T,f,P,O,a,W){W=W===void 0?!1:W;var e=Ta(T);if(!nfL(T,W))return new C("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:T});if(e<=0)return new C("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:T});var B=pr$(Z,I,T,f,d,Y,P);return B instanceof C?B:function(w){return Y3d(I,w.slotId,d,e,T,fv(T),P(w),B,O,a)}}; nda=function(Z,I,d){if(Z.provider.U.experiments.CS("html5_refactor_sabr_audio_format_selection_logging")){I=d.L;var Y=[I.audio&&I.video?I.Uc?I.Uc:"":I.id];I.uo&&I.uo.id&&Y.push(I.uo.id);I=Y.join(";");I!==Z.j&&(Y=[I,Z.j,d.reason],d.token&&Y.push(d.token),g.Vt(Z,g.NC(Z.provider),"afs",Y),Z.j=I)}else d.L.id!==Z.j&&(Y=[d.L.id,Z.j,d.reason],d.token&&Y.push(d.token),g.Vt(Z,I,"afs",Y),Z.j=d.L.id)}; qvd=function(Z,I){I=I===void 0?!1:I;if(!Z.mediaElement||Z.mediaElement.f0()===0||Z.mediaElement.hasError())return!1;var d=Z.mediaElement.getCurrentTime()>0;return Z.videoData.Z&&Z.videoData.Z.L||Z.videoData.isLivePlayback||!Z.videoData.pF()?Z.D>=0&&!I&&(I=Z.mediaElement.MJ(),I.length||!d)?Qb(I,Z.D-Z.timestampOffset):d:d}; mEV=function(Z,I,d){g.Kv.call(this,Z);var Y=this;this.A5=I;this.Wg=d;this.getVideoUrl=new vJ(6);this.RU=new vJ(5);this.Xe=new vJ(4);this.Gb=new vJ(3);this.Ic=new g.w9(g.KD({href:"{{href}}",target:this.S.C().In},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.w9(g.KD(),1,"Stats for nerds");this.XU=new g.m7({K:"div",zm:["ytp-copytext","ytp-no-contextmenu"],J:{draggable:"false",tabindex:"1"},Z1:"{{text}}"});this.x8=new kK(this.S,this.XU);this.ID=this.kJ=null;g.Dh(this.S.C())&&(this.closeButton= new g.k({K:"button",zm:["ytp-collapse","ytp-button"],J:{title:"Close"},G:[g.Bn()]}),g.z(this,this.closeButton),this.closeButton.i5(this.element),this.closeButton.listen("click",this.Kh,this));g.Dh(this.S.C())&&(this.G0=new g.w9(g.KD(),8,"Account"),g.z(this,this.G0),this.vk(this.G0,!0),this.G0.listen("click",this.RO1,this),Z.createClientVe(this.G0.element,this.G0,137682));this.S.C().g5&&(this.Xr=new lJ("Loop",7),g.z(this,this.Xr),this.vk(this.Xr,!0),this.Xr.listen("click",this.D8S,this),Z.createClientVe(this.Xr.element, this.Xr,28661));this.S.Y("web_player_miniplayer_in_context_menu")&&(this.Kr=new g.w9(g.KD(),6,"Miniplayer"),g.z(this,this.Kr),this.vk(this.Kr,!0),this.Kr.listen("click",this.K57,this),Z.createClientVe(this.Kr.element,this.Kr,62946));g.z(this,this.getVideoUrl);this.vk(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.A9J,this);Z.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.z(this,this.RU);this.vk(this.RU,!0);this.RU.listen("click",this.vl4,this);Z.createClientVe(this.RU.element, this.RU,28660);g.z(this,this.Xe);this.vk(this.Xe,!0);this.Xe.listen("click",this.pkm,this);Z.createClientVe(this.Xe.element,this.Xe,28658);g.z(this,this.Gb);this.vk(this.Gb,!0);this.Gb.listen("click",this.bM4,this);g.z(this,this.Ic);this.vk(this.Ic,!0);this.Ic.listen("click",this.mc4,this);g.z(this,this.showVideoInfo);this.vk(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.dcS,this);g.z(this,this.XU);this.XU.listen("click",this.Fk5,this);g.z(this,this.x8);n9V()&&(this.kJ=new g.k({K:"textarea", T:"ytp-html5-clipboard",J:{readonly:"",tabindex:"-1"}}),g.z(this,this.kJ),this.kJ.i5(this.element));var T;(T=this.G0)==null||T.setIcon(haV());var f;(f=this.Xr)==null||f.setIcon(jpi());var P;(P=this.Kr)==null||P.setIcon(this.S.Y("delhi_modern_web_player_icons")?Tfd():NTl());this.Gb.setIcon({K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{"clip-rule":"evenodd",d:"M20 10V8H17.19C16.74 7.22 16.12 6.54 15.37 6.04L17 4.41L15.59 3L13.42 5.17C13.39 5.16 13.37 5.16 13.34 5.16C13.18 5.12 13.02 5.1 12.85 5.07C12.79 5.06 12.74 5.05 12.68 5.04C12.46 5.02 12.23 5 12 5C11.51 5 11.03 5.07 10.58 5.18L10.6 5.17L8.41 3L7 4.41L8.62 6.04H8.63C7.88 6.54 7.26 7.22 6.81 8H4V10H6.09C6.03 10.33 6 10.66 6 11V12H4V14H6V15C6 15.34 6.04 15.67 6.09 16H4V18H6.81C7.85 19.79 9.78 21 12 21C14.22 21 16.15 19.79 17.19 18H20V16H17.91C17.96 15.67 18 15.34 18 15V14H20V12H18V11C18 10.66 17.96 10.33 17.91 10H20ZM16 15C16 17.21 14.21 19 12 19C9.79 19 8 17.21 8 15V11C8 8.79 9.79 7 12 7C14.21 7 16 8.79 16 11V15ZM10 14H14V16H10V14ZM10 10H14V12H10V10Z", fill:"white","fill-rule":"evenodd"}}]});this.Ic.setIcon(Nwu());this.showVideoInfo.setIcon(lKD());this.W(Z,"onLoopChange",this.onLoopChange);this.W(Z,"videodatachange",this.onVideoDataChange);this.W(Z,"fullscreentoggled",function(){Anu(Y)}); Mb$(this);Dx7(this,this.S.getVideoData())}; ECL=function(Z){var I=mV7();I&&document.addEventListener(I,Z,!1)}; VRu=function(Z,I){I&&(Z.N=I)}; oMn=function(Z){var I=Z.webPlayerContextConfig.trustedJsUrl;return I?W6(I).toString():Z.webPlayerContextConfig.jsUrl}; qJW=function(Z,I){if(Z.U.Vy()&&Z.mediaElement){var d=Z.mediaElement.Gb();d.omt=(Z.mediaElement.getCurrentTime()+Z.Fx()).toFixed(3);d.ps=Z.playerState.state.toString(16);d.rt=(g.NC(Z.wK.provider)*1E3).toFixed();d.e=I;Z.e1[Z.sS++%5]=d}}; SJE=function(Z,I,d){typeof Z==="string"&&(Z={mediaContentUrl:Z,startSeconds:I,suggestedQuality:d});a:{if((I=Z.mediaContentUrl)&&(I=/\/([ve]|embed)\/([^#?]+)/.exec(I))&&I[2]){I=I[2];break a}I=null}Z.videoId=I;return Bm(Z)}; WJ=function(Z,I,d){d=d===void 0?null:d;var Y=Y===void 0?0:Y;return new ar(g.Q4(Z.U.experiments,I)||Y,d?Z.U.Y(d):!1)}; Oq=function(Z,I){Z.playlist&&(g.Th(Z.playlist),Z.playlist=null);I&&(Z.oL&&(I.fetch=0),Z.playlist=new Av(Z.U,I))}; X3=function(Z,I){I=I===void 0?!1:I;if(Z.D){if(Z.j){var d=Z.D;Z.app.Wj.removeEventListener(g.E2("vqueued"),Z.V);d.removeCueRange(Z.j)}Z.D=null;Z.j=null}Z.Z&&(Z.Z.status.status!==6&&(d=Z.Z,d.status.status!==Infinity&&d.B!==1&&d.Ll("Canceled")),Z.Z=null);Z.N=null;Z.L&&!I&&Z.L!==Z.app.vj()&&Z.L!==Z.app.l5()&&Z.L.dispose();Z.L&&I&&Z.L.CZ();Z.L=null;Z.X=!1}; nJi=function(){Ty.instance||(Ty.instance=new Ty);return Ty.instance}; Y27=function(){var Z=qpd,I=kXO(function(d){Z.apply(void 0,arguments);me$(I)}); return I}; Gzn=function(Z,I){return Z.S.Y("delhi_modern_web_player_icons")?Tfd():I?{K:"svg",J:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},G:[{K:"g",J:{transform:"translate(96, -96) scale(0.8)"},G:[{K:"path",ZU:!0,J:{d:"M96-480v-72h165L71-743l50-50 191 190v-165h72v288H96Zm72 288q-29.7 0-50.85-21.15Q96-234.3 96-264v-144h72v144h336v72H168Zm624-264v-240H456v-72h336q29.7 0 50.85 21.15Q864-725.7 864-696v240h-72ZM576-192v-192h288v192H576Z"}}]}]}:NTl()}; aV=function(Z){this.S=Z}; ct=function(Z,I,d){return d&2?!0:d&32&&!(d&4096)?(Ht(I,d|2),Z.L=Pt,!0):!1}; US=function(Z,I,d,Y){var T=oi(I);!T||T.N||et(T,Y)||(d.abort(),Z.policy.z0&&(T=I.X)!=null&&(T.Z=void 0),(I=I.In)!=null&&(ZJ(I,4),I.flush()));if(!d.Xb()||B9())try{Z.policy.oA?d.ZS(Y.L.info.containerType,Y.L.info.Pj)&&d.JG(Y.L.info.containerType,Y.L.info.Pj,Y.L.info.mimeType):d.di(Y.L.info.containerType,Y.L.info.mimeType)}catch(f){return d=f,g.uL(d),Z.D1("ctexp",{name:d.name,msg:d.message}),!1}else Y.L.info.containerType!==d.Xb()&&Z.D1("ctu",{ct:B9(),prev_c:d.Xb(),curr_c:Y.L.info.containerType});I=Y.L.N; Z.policy.jA&&I&&(Y=0+I.duration,I=-I.L,0===d.TQ()&&Y===d.SN()||d.dg(0,Y),I!==d.Fx()&&(d.M6(I),P2&&QSL(Z.audioTrack.b9(),d.xY())));return!0}; sCn=function(Z){Z=Object.keys(Z);Z=g.t(Z);for(var I=Z.next();!I.done;I=Z.next())if(I=I.value,osi[I])return I}; qP=function(Z){return yA(Z.N,al(1,Z.aN.hB))}; g.zu=function(Z){g.p.call(this);this.Wj=Z;this.D=new Ueu;this.Z=null;this.B=[];this.X=[]}; ea=function(){return(kD||l7)&&g.y1("applewebkit")&&!g.y1("version")&&(!g.y1("safari")||g.y1("gsa/"))}; DEp=function(Z,I,d,Y,T,f,P,O){var a=Aiu(),W=new pq({veType:I,youtubeData:f,jspbYoutubeData:void 0});f=ug({},a);T&&(f.cttAuthInfo=T);T={csn:a,pageVe:W.getAsJson()};g.x9("expectation_logging")&&O&&O.screenCreatedLoggingExpectations&&(T.screenCreatedLoggingExpectations=O.screenCreatedLoggingExpectations);d&&d.visualElement?(T.implicitGesture={parentCsn:d.clientScreenNonce,gesturedVe:d.visualElement.getAsJson()},P&&(T.implicitGesture.gestureType=P)):d&&g.uL(new g.Wj("newScreen() parent element does not have a VE - rootVe", I));Y&&(T.cloneCsn=Y);Z?TG("screenCreated",T,Z,f):g.g6("screenCreated",T,f);JL(GX$,new kb(a));D1.clear();m$7.clear();q3O.clear();return a}; JiE=function(Z,I){Z.gz().autonavState=I;g.AU("yt-player-autonavstate",I);Z.Wj.publish("autonavchange",I)}; pH=function(Z,I,d,Y,T,f,P,O){Vz()&&d.token&&(Z=BX(Z,{ctt:d.token,cttype:d.wi,mdx_environment:d.mdxEnvironment}));Y.Y("net_pings_low_priority")&&(I||(I={}),I.priority="low");f||O&&Y.Y("nwl_skip_retry")?(I==null?I={}:TQa(Z,Y.Y("html5_assert_cpn_with_regex")),P?a5().sendAndWrite(Z,I):a5().sendThenWrite(Z,I,O)):I?(TQa(Z,Y.Y("html5_assert_cpn_with_regex")),Ata(Z,I)):g.E1(Z,T)}; Rag=function(Z){return Z.S.C().Y("web_player_autonav_use_server_provided_state")&&BQ(Z.gz())}; L7g=function(Z,I,d){d-=Z.TN;return I===Z.L&&d>.5}; nHL=function(Z){var I={};Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next()){d=d.value;var Y=d.split("=");Y.length===2?I[Y[0]]=Y[1]:I[d]=!0}return I}; Qrn=function(Z,I,d,Y){Y=Y===void 0?{}:Y;Z.addEventListener&&(I!="mouseenter"||"onmouseenter"in document?I!="mouseleave"||"onmouseenter"in document?I=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(I="MozMousePixelScroll"):I="mouseout":I="mouseover");return MR(Gq,function(T){var f=typeof T[4]==="boolean"&&T[4]==!!Y,P=g.IB(T[4])&&g.IB(Y)&&g.sr(T[4],Y);return!!T.length&&T[0]==Z&&T[1]==I&&T[2]==d&&(f||P)})}; R1=function(Z){return g.Yw(Z.L,function(I){return!!I.info.T_})}; Ps=function(Z,I,d,Y){if(Z.Ms.get().fN(I.kind==="AD_PLACEMENT_KIND_START"))if(d===void 0)Zv("Expected SSAP layout ID in renderer",void 0,void 0,{caller:Y});else return d}; haV=function(){return{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",T:"ytp-svg-fill",J:{"clip-rule":"evenodd",d:"M12 4C9.79 4 8 5.79 8 8C8 10.21 9.79 12 12 12C14.21 12 16 10.21 16 8C16 5.79 14.21 4 12 4ZM14 8C14 6.9 13.1 6 12 6C10.9 6 10 6.9 10 8C10 9.1 10.9 10 12 10C13.1 10 14 9.1 14 8ZM18 17C17.8 16.29 14.7 15 12 15C9.3 15 6.2 16.29 6 17.01V18H18V17ZM4 17C4 14.34 9.33 13 12 13C14.67 13 20 14.34 20 17V20H4V17Z","fill-rule":"evenodd"}}]}}; kWr=function(Z){var I;return!!(Z.Y("html5_native_audio_track_switching")&&g.bT&&((I=Z.videoData.D)==null?0:Iu(I)))}; g.B8=function(Z){return ed(Z)==="WEB_MUSIC_INTEGRATIONS"}; u7=function(Z,I,d,Y){(Y===void 0?0:Y)?ir(Z,1,"seek"):I>0&&Math.abs(I-d)>=5&&Z.D===4&&ir(Z,5,"sk2t")}; n1O=function(Z){var I=new g.DX(Z.U,Z.Mr);Z.Wj.publish("initialvideodatacreated",I);return ER(Z,1,I,!1)}; kcn=function(Z){if(Z.Z)if(Z.N==="AD_PLACEMENT_KIND_START"&&Z.actionType==="video_to_ad")It("video_to_ad");else{var I={adBreakType:d0(Z.N),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:Z.videoStreamType};Z.actionType==="ad_to_video"?(Z.contentCpn&&(I.targetCpn=Z.contentCpn),Z.videoId&&(I.targetVideoId=Z.videoId)):(Z.adCpn&&(I.targetCpn=Z.adCpn),Z.adVideoId&&(I.targetVideoId=Z.adVideoId));Z.adFormat&&(I.adType=Z.adFormat);Z.contentCpn&& (I.clientPlaybackNonce=Z.contentCpn);Z.videoId&&(I.videoId=Z.videoId);Z.adCpn&&(I.adClientPlaybackNonce=Z.adCpn);Z.adVideoId&&(I.adVideoId=Z.adVideoId);g.Qg(I,Z.actionType);Z.S.C().experiments.CS("html5_ads_csi_qoes")&&(I=Z.S.VC(Z.actionType==="ad_to_video"?1:2),I=(0,g.o8)()-1E3*I,On("qoes",I,Z.actionType))}}; UEV=function(){var Z=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model","metadata_type_linked_player_bytes_layout_id"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; GM=function(Z){g.k.call(this,{K:"div",T:"ytp-seek-overlay",G:[{K:"div",zm:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],G:[{K:"div",zm:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],G:[{K:"svg",J:{viewBox:"0 0 22 32",width:"22",height:"24"},G:[{K:"path",J:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{K:"div",T:"ytp-seek-overlay-duration",Z1:"{{durationBack}}"}]},{K:"div",zm:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],G:[{K:"div",T:"ytp-seek-overlay-duration",Z1:"{{durationForward}}"},{K:"div",zm:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],G:[{K:"svg",J:{viewBox:"0 0 22 32",width:"22",height:"24"},G:[{K:"path",J:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{K:"div",T:"ytp-seek-overlay-message",G:[{K:"div",T:"ytp-seek-overlay-message-icon",Z1:"{{icon}}"},{K:"div",T:"ytp-seek-overlay-message-text", Z1:"{{text}}"}]}]});var I=this;this.S=Z;this.B=0;this.L="hidden";this.V=this.KS("ytp-seek-overlay-animation-back");this.X=this.KS("ytp-seek-overlay-animation-forward");this.LS=this.KS("ytp-seek-overlay-message");this.j=new g.uX(function(){Vqa(I)},g.Q4(this.S.C().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.z(this,this.j);this.S.createClientVe(this.X,this,28240);this.S.createClientVe(this.V,this,28239);this.S.logVisibility(this.X,!0);this.S.logVisibility(this.V,!0);this.hide()}; yii=function(Z,I,d,Y,T){var f=uhn(Z.D.get(),d);f?(d=Hq(Z,Xm(f),f,void 0,void 0,Y),I.hasOwnProperty("baseUrl")?Z.N.send(I,d):Z.Z.send(I,d,{},T)):Zv("Trying to ping from an unknown layout",void 0,void 0,{layoutId:d})}; tO=function(Z){return ed(Z)==="TVHTML5_UNPLUGGED"}; A_=function(Z){if(Z.S.Y("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var I,d,Y;return Z.D.LM?null:(I=Z.L)==null?void 0:(d=I.bannerData)==null?void 0:(Y=d.itemData)==null?void 0:Y.vendorName}var T,f,P,O,a,W;return Z.D.LM||Z.B.LM||((T=Z.L)==null?0:(f=T.bannerData)==null?0:(P=f.itemData)==null?0:P.affiliateDisclaimer)?null:(O=Z.L)==null?void 0:(a=O.bannerData)==null?void 0:(W=a.itemData)==null?void 0:W.vendorName}; g.SX=function(Z,I,d){return CCa(Z,d||Co,!1,I)}; dg=function(Z,I){var d=this;this.D=Z;this.Ms=I;this.L=function(Y){return Un(d.D.get(),Y)}}; o5J=function(Z,I){g.k.call(this,{K:"button",zm:["ytp-subtitles-button","ytp-button"],J:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:Z.Y("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},G:[Z.Y("delhi_modern_web_player_icons")?{K:"div",T:"ytp-subtitles-button-icon",Z1:"{{icon}}"}:vr7(Z)]});this.S=Z;this.tooltip=I.EP();Z.Y("delhi_modern_web_player_icons")&&this.updateValue("icon", v9W(this));this.W(Z,"videodatachange",this.qs);this.W(Z,"appresize",this.qs);this.W(Z,"promotooltipacceptbuttonclicked",this.hOS);this.W(Z,"onApiChange",this.qs);this.W(Z,"onCaptionsTrackListChanged",this.qs);this.W(Z,"captionschanged",this.qs);this.S.createClientVe(this.element,this,127299);this.qs();this.listen("click",this.onClick);this.addOnDisposeCallback(g.my(I.EP(),this.element))}; wj=function(Z){return Z.Y("html5_tvos_skip_dash_audio_check")||MediaSource.isTypeSupported('audio/webm; codecs="opus"')}; zM=function(Z,I,d,Y,T,f){d=d===void 0?!0:d;var P=Z.Vt({playerType:T});if(!P||(P.getPlayerType()!==2||Z.Z5(P))&&!g.IS(P.getVideoData())){var O=Z.DU.OI;O?O.seekTo(I,{KE:!d,Ei:Y,H$:"application",seekSource:f}):(P&&P===Z.vj()&&Z.xl&&!ypB(Z,I)&&Z.setLoopRange(null),Z.seekTo(I,d,Y,T,f,"_request"))}}; ip=function(Z,I){if(ax(Z.Ms.get())){var d=Z.D.get(I)||0;d++;Z.D.set(I,d);return I+"_"+d}return g.LY(16)}; uC=function(Z,I,d){for(;Tm(Z,I);){var Y=iI(Z,I);if(Y.type===d)return Y;I+=Y.size}return null}; x3B=function(){this.L=new Map}; v9W=function(Z){if(Z.S.Y("delhi_modern_web_player_icons"))return Z=wx.includes("en")?of(Z)&&Z.isEnabled()?{K:"svg",J:{height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM9.03 8.08L9.29 8.16C9.79 8.35 10.24 8.65 10.60 9.05L10.77 9.26L10.83 9.34C10.96 9.55 11.01 9.80 10.96 10.05C10.92 10.29 10.79 10.51 10.59 10.66C10.40 10.81 10.15 10.89 9.91 10.87C9.66 10.85 9.43 10.74 9.26 10.57L9.19 10.49L9.11 10.39C8.98 10.24 8.81 10.12 8.62 10.05L8.54 10.02C8.32 9.97 8.10 10.00 7.91 10.11C7.67 10.24 7.48 10.43 7.35 10.67L7.28 10.79C7.09 11.16 6.99 11.58 7 12L7.00 12.16C7.02 12.52 7.11 12.88 7.28 13.20L7.35 13.32C7.48 13.56 7.67 13.75 7.91 13.88L7.99 13.92C8.16 14.00 8.35 14.02 8.54 13.97L8.62 13.94C8.85 13.85 9.05 13.70 9.19 13.50L9.26 13.43C9.44 13.24 9.68 13.13 9.93 13.12C10.19 13.11 10.44 13.20 10.63 13.37C10.82 13.53 10.94 13.77 10.97 14.02C11.00 14.27 10.93 14.53 10.77 14.73C10.39 15.23 9.88 15.61 9.29 15.83L9.03 15.91C8.43 16.06 7.79 16.01 7.21 15.77L6.97 15.65C6.42 15.35 5.95 14.90 5.64 14.36L5.50 14.12C5.21 13.55 5.04 12.92 5.00 12.27L5 12C4.99 11.26 5.17 10.53 5.50 9.87L5.64 9.63C5.96 9.09 6.42 8.64 6.97 8.34C7.60 8.00 8.34 7.91 9.03 8.08ZM17.03 8.08L17.29 8.16C17.79 8.35 18.24 8.65 18.60 9.05L18.77 9.26L18.83 9.34C18.96 9.55 19.01 9.80 18.96 10.05C18.92 10.29 18.79 10.51 18.59 10.66C18.40 10.81 18.15 10.89 17.91 10.87C17.66 10.85 17.43 10.74 17.26 10.57L17.19 10.49L17.11 10.39C16.98 10.24 16.81 10.12 16.62 10.05L16.54 10.02C16.32 9.97 16.10 10.00 15.91 10.11C15.67 10.24 15.48 10.43 15.35 10.67L15.28 10.79C15.09 11.16 14.99 11.58 15 12L15.00 12.16C15.02 12.52 15.11 12.88 15.28 13.20L15.35 13.32C15.48 13.56 15.67 13.75 15.91 13.88L15.99 13.92C16.16 14.00 16.35 14.02 16.54 13.97L16.62 13.94C16.85 13.85 17.05 13.70 17.19 13.50L17.26 13.43C17.44 13.24 17.68 13.13 17.93 13.12C18.19 13.11 18.44 13.20 18.63 13.37C18.82 13.53 18.94 13.77 18.97 14.02C19.00 14.27 18.93 14.53 18.77 14.73C18.39 15.23 17.88 15.61 17.29 15.83L17.03 15.91C16.43 16.06 15.79 16.01 15.21 15.77L14.97 15.65C14.42 15.35 13.95 14.90 13.64 14.36L13.50 14.12C13.21 13.55 13.04 12.92 13.00 12.27L13 12C12.99 11.26 13.17 10.53 13.50 9.87L13.64 9.63C13.96 9.09 14.42 8.64 14.97 8.34C15.60 8.00 16.34 7.91 17.03 8.08Z", fill:"white"}}]}:VZ():of(Z)&&Z.isEnabled()?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V19C1 19.53 1.21 20.03 1.58 20.41C1.96 20.78 2.46 21 3 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM6 11H8C8.26 11 8.51 11.10 8.70 11.29C8.89 11.48 9 11.73 9 12C9 12.26 8.89 12.51 8.70 12.70C8.51 12.89 8.26 13 8 13H6C5.73 13 5.48 12.89 5.29 12.70C5.10 12.51 5 12.26 5 12C5 11.73 5.10 11.48 5.29 11.29C5.48 11.10 5.73 11 6 11ZM12 11H18C18.26 11 18.51 11.10 18.70 11.29C18.89 11.48 19 11.73 19 12C19 12.26 18.89 12.51 18.70 12.70C18.51 12.89 18.26 13 18 13H12C11.73 13 11.48 12.89 11.29 12.70C11.10 12.51 11 12.26 11 12C11 11.73 11.10 11.48 11.29 11.29C11.48 11.10 11.73 11 12 11ZM16 15H18C18.26 15 18.51 15.10 18.70 15.29C18.89 15.48 19 15.73 19 16C19 16.26 18.89 16.51 18.70 16.70C18.51 16.89 18.26 17 18 17H16C15.73 17 15.48 16.89 15.29 16.70C15.10 16.51 15 16.26 15 16C15 15.73 15.10 15.48 15.29 15.29C15.48 15.10 15.73 15 16 15ZM6 15H12C12.26 15 12.51 15.10 12.70 15.29C12.89 15.48 13 15.73 13 16C13 16.26 12.89 16.51 12.70 16.70C12.51 16.89 12.26 17 12 17H6C5.73 17 5.48 16.89 5.29 16.70C5.10 16.51 5 16.26 5 16C5 15.73 5.10 15.48 5.29 15.29C5.48 15.10 5.73 15 6 15Z", fill:"white"}}]}:y2B()}; xVi=function(Z){$z(Z,"cueVideoById",Z.Vj);$z(Z,"loadVideoById",Z.V7J);$z(Z,"cueVideoByUrl",Z.WY);$z(Z,"loadVideoByUrl",Z.wjr);$z(Z,"playVideo",Z.TVm);$z(Z,"pauseVideo",Z.pauseVideo);$z(Z,"stopVideo",Z.Atr);$z(Z,"clearVideo",Z.clearVideo);$z(Z,"getVideoBytesLoaded",Z.b0);$z(Z,"getVideoBytesTotal",Z.AX);$z(Z,"getVideoLoadedFraction",Z.sB);$z(Z,"getVideoStartBytes",Z.Uq);$z(Z,"cuePlaylist",Z.cuePlaylist);$z(Z,"loadPlaylist",Z.OSZ);$z(Z,"nextVideo",Z.UsJ);$z(Z,"previousVideo",Z.lRn);$z(Z,"playVideoAt", Z.ON7);$z(Z,"setShuffle",Z.setShuffle);$z(Z,"setLoop",Z.setLoop);$z(Z,"getPlaylist",Z.eP);$z(Z,"getPlaylistIndex",Z.getPlaylistIndex);$z(Z,"getPlaylistId",Z.getPlaylistId);$z(Z,"loadModule",Z.Lz);$z(Z,"unloadModule",Z.yw);$z(Z,"setOption",Z.yl);$z(Z,"getOption",Z.RY);$z(Z,"getOptions",Z.hm);$z(Z,"mute",Z.hrS);$z(Z,"unMute",Z.Olr);$z(Z,"isMuted",Z.isMuted);$z(Z,"setVolume",Z.sd5);$z(Z,"getVolume",Z.getVolume);$z(Z,"seekTo",Z.QdJ);$z(Z,"getPlayerMode",Z.getPlayerMode);$z(Z,"getPlayerState",Z.cC);$z(Z, "getAvailablePlaybackRates",Z.getAvailablePlaybackRates);$z(Z,"getPlaybackQuality",function(){return Z.getPlaybackQuality(1)}); $z(Z,"setPlaybackQuality",Z.Fl5);$z(Z,"getAvailableQualityLevels",Z.aY);$z(Z,"getCurrentTime",Z.F5);$z(Z,"getDuration",Z.rT);$z(Z,"addEventListener",Z.Ez);$z(Z,"removeEventListener",Z.vZr);$z(Z,"getDebugText",Z.X5);$z(Z,"getVideoData",function(){return s69(Z)}); $z(Z,"addCueRange",Z.l3);$z(Z,"removeCueRange",Z.removeCueRange);$z(Z,"setSize",Z.setSize);$z(Z,"getApiInterface",Z.getApiInterface);$z(Z,"destroy",Z.destroy);$z(Z,"mutedAutoplay",Z.mutedAutoplay);var I=Z.app.C();I.j||($z(Z,"getVideoEmbedCode",Z.getVideoEmbedCode),$z(Z,"getVideoUrl",Z.Iq));$z(Z,"getMediaReferenceTime",Z.Eq);$z(Z,"getSize",Z.getSize);$z(Z,"setFauxFullscreen",Z.a54);I.Y("embeds_enable_move_set_center_crop_to_public")&&$z(Z,"setCenterCrop",Z.setCenterCrop);I.j||$z(Z,"logImaAdEvent", Z.logImaAdEvent);$z(Z,"preloadVideoById",Z.oZm);$z(Z,"wakeUpControls",Z.wakeUpControls)}; CHn=function(Z){if(!(GW(Z.info)&&Z.info.OY()&&Z.policy.du&&Z.W8)||Z.info.MC.Z>=2||i$()>0||!vua())return!1;var I=Z.aN.get("aitags");if(!I)return!1;I=Ir(I).split(",");for(var d=[],Y=g.t(Z.W8),T=Y.next();!T.done;T=Y.next())T=T.value,g.Kc(I,T)&&d.push(T);if(!d.length)return!1;Z.aN.set("altitags",g.fn(d.join(",")));return!0}; grd=function(Z,I,d,Y){Y=Y===void 0?{}:Y;var T=void 0;Y.layer||(Y.layer=0);T=Y.parentLayer!==void 0?Y.parentLayer:Y.layer;var f=g.vv(T);T=g.lg(T);var P=d||T,O;P&&(Y.parentCsn!==void 0?O={clientScreenNonce:Y.parentCsn,visualElement:P}:f&&f!=="UNDEFINED_CSN"&&(O={clientScreenNonce:f,visualElement:P}));var a,W=g.rh("EVENT_ID");f==="UNDEFINED_CSN"&&W&&(a={servletData:{serializedServletEventId:W}});g.x9("combine_ve_grafts")&&f&&mYJ(Z,f);g.x9("no_client_ve_attach_unless_shown")&&P&&f&&m_i(P,f);try{var e= DEp(Z.client,I,O,Y.m4,Y.cttAuthInfo,a,Y.implicitGestureType,Y.loggingExpectations)}catch(V){lrW(V,{Km:I,rootVe:T,q44:d,hR5:f,W15:O,m4:Y.m4});g.nl(V);return}hGJ(e,I,Y.layer,Y.cttAuthInfo);f&&f!=="UNDEFINED_CSN"&&T&&!UQE(f)&&qLJ(Z.client,f,T,!0);Z.L[Z.L.length-1]&&!Z.L[Z.L.length-1].csn&&(Z.L[Z.L.length-1].csn=e||"");g.Qg({clientScreenNonce:e});gU.instance||(gU.instance=new gU);g.t6(Eh().L).bind(Eh())();var B=g.lg(Y.layer);f&&f!=="UNDEFINED_CSN"&&B&&(g.x9("web_mark_root_visible")||g.x9("music_web_mark_root_visible"))&& g.VS(e,B);Z.D.delete(Y.layer||0);Z.N=void 0;var w;(w=Z.Ns.get(Y.layer))==null||w.forEach(function(V,N){V?MO(Z,N,V,Y.layer):B&&MO(Z,N,B,Y.layer)}); KqD(Z)}; unt=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w){this.callback=Z;this.slot=I;this.layout=d;this.n_=Y;this.EZ=T;this.S7=f;this.Li=P;this.Df=O;this.l8=a;this.Ms=W;this.Q5=e;this.V5=B;this.xu=w;this.il=!0;this.uQ=this.Pk=null;this.adCpn=void 0;this.L=!1}; GBL=function(Z){this.Gm=bp(Z)}; HnD=function(Z,I,d,Y,T,f,P,O,a,W,e,B,w,V){I=UFn(Z,I,d,T,f,P,a,W,e,B,w,V);TOJ(T)?(T=us7(Z,d,P,O),T instanceof C?Z=T:(O=ip(Z.D.get(),"SLOT_TYPE_IN_PLAYER"),a=zi(Z.D.get(),"LAYOUT_TYPE_SURVEY",O),P=[].concat(g.c(T.slotExpirationTriggers),[new h1(Z.L,a)]),O=I({slotId:T.slotId,slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,r4:T.r4,slotEntryTrigger:T.slotEntryTrigger,slotFulfillmentTriggers:T.slotFulfillmentTriggers,slotExpirationTriggers:P},{slotId:O,layoutId:a}),Z=O instanceof C?O:{D4:{slotId:T.slotId, slotType:T.slotType,slotPhysicalPosition:T.slotPhysicalPosition,slotEntryTrigger:VHL(Z,d,T.slotId,T.slotEntryTrigger),slotFulfillmentTriggers:NNJ(Z,d,T.slotId,T.slotFulfillmentTriggers),slotExpirationTriggers:P,r4:T.r4,clientMetadata:new D0([new uY(GI(d)),new Jn(O.layout),new zI({KK:Z.KK(d)})]),adSlotLoggingData:Y},je:O.je})):Z=Hqn(Z,d,P,O,Y,a.Qy,I);return Z instanceof C?Z:Z.je.concat(Z.D4)}; zag=function(Z,I){Z.api.Y("html5_enable_d6de4_cold_start_and_error")&&(I.gA={coldStartInfo:{clientState:Z.Z}})}; kB0=function(){var Z=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];Ki().forEach(function(I){Z.push(I)}); return{ZA:Z,Cj:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; n9V=function(){var Z=document.queryCommandSupported&&document.queryCommandSupported("copy");XSn("Chromium")>=43&&(Z=!0);XSn("Firefox")<=40&&(Z=!1);return Z}; ihd=function(Z){if(Z.range)return Z.Z;Z=Z.e7[0];return Math.round(Z.X*Z.L.info.pS)}; g.Hc=function(Z){return Object.prototype.hasOwnProperty.call(Z,XOL)&&Z[XOL]||(Z[XOL]=++t$L)}; $Ei=function(Z,I){if(Z.length>I.length)return!1;if(Z.lengthT)return!1;if(Y0&&(this.RO=g.LY(this.policy.P1));this.policy.WS&&(this.X=new pn(this.loader,this.policy,this.schedule),g.z(this,this.X))}; J0d=function(){var Z=g.Vs();return Z?nF("AmazonWebAppPlatform;Android TV;Apple TV;AppleTV;BRAVIA;BeyondTV;Freebox;GoogleTV;HbbTV;LongTV;MiBOX;MiTV;NetCast.TV;Netcast;Opera TV;PANASONIC;POV_TV;SMART-TV;SMART_TV;SWTV;Smart TV;SmartTV;TV Store;UnionTV;Version/8.0 Safari/601.1 WPE;WebOS".split(";"),function(I){return Oi(Z,I)})||Oi(Z,"OMI/")&&!Oi(Z,"XiaoMi/")?!0:Oi(Z,"Presto")&&Oi(Z,"Linux")&&!Oi(Z,"X11")&&!Oi(Z,"Android")&&!Oi(Z,"Mobi"):!1}; km=function(Z,I){return Object.prototype.hasOwnProperty.call(Z,I)}; CL3=function(Z){g.k.call(this,{K:"div",T:"ytp-doubletap-ui-legacy",G:[{K:"div",T:"ytp-doubletap-fast-forward-ve"},{K:"div",T:"ytp-doubletap-rewind-ve"},{K:"div",T:"ytp-doubletap-static-circle",G:[{K:"div",T:"ytp-doubletap-ripple"}]},{K:"div",T:"ytp-doubletap-overlay-a11y"},{K:"div",T:"ytp-doubletap-seek-info-container",G:[{K:"div",T:"ytp-doubletap-arrows-container",G:[{K:"span",T:"ytp-doubletap-base-arrow"},{K:"span",T:"ytp-doubletap-base-arrow"},{K:"span",T:"ytp-doubletap-base-arrow"}]},{K:"div", T:"ytp-doubletap-tooltip",G:[{K:"div",T:"ytp-seek-icon-text-container",G:[{K:"div",T:"ytp-seek-icon",Z1:"{{seekIcon}}"},{K:"div",T:"ytp-chapter-seek-text-legacy",Z1:"{{seekText}}"}]},{K:"div",T:"ytp-doubletap-tooltip-label",Z1:"{{seekTime}}"}]}]}]});this.S=Z;this.N=new g.uX(this.show,10,this);this.D=new g.uX(this.hide,700,this);this.j=this.Z=0;this.LS=this.B=!1;this.L=this.KS("ytp-doubletap-static-circle");g.z(this,this.N);g.z(this,this.D);this.hide();this.V=this.KS("ytp-doubletap-fast-forward-ve"); this.X=this.KS("ytp-doubletap-rewind-ve");this.S.createClientVe(this.V,this,28240);this.S.createClientVe(this.X,this,28239);this.S.logVisibility(this.V,!0);this.S.logVisibility(this.X,!0);this.B=Z.Y("web_show_cumulative_seek_time");this.LS=Z.Y("web_center_static_circles")}; liO=function(Z,I,d,Y,T,f){Y.index&&(T.playlistIndex=String(Number(Y.index)+1));T.videoId=d?d:"";I&&f.CS("embeds_enable_per_video_embed_config")?T.serializedThirdPartyEmbedConfig=I:Z&&(T.serializedThirdPartyEmbedConfig=Z)}; wQ=function(Z,I,d){if(Array.isArray(I))for(var Y=0;Y=0,c18:T};I.L&&(I.pF()?(T.f142=!!I.L.L["142"],T.f149=!!I.L.L["149"],T.f279=!!I.L.L["279"]):(T.f133=!!I.L.L["133"],T.f140=!!I.L.L["140"],T.f242=!!I.L.L["242"]),T.cAAC=f,T.cAVC=SJ('video/mp4; codecs="avc1.42001E"'), T.cVP9=SJ('video/webm; codecs="vp9"'));I.B&&(T.drmsys=I.B.keySystem,f=0,I.B.L&&(f=Object.keys(I.B.L).length),T.drmst=f);return new g.dj(Y,T,P)})}; iv=function(Z){if(!Z.isProximaLatencyEligible)return 0;var I=qm();return YyE(Z)?2:I===1?1:Z.Y("html5_enable_proxima")?2:0}; $El=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"onSnackbarMessage",function(d){switch(d){case 1:I.api.getPlayerStateObject().isBuffering()&&I.api.Rn("innertubeCommand",{openPopupAction:{popup:{notificationActionRenderer:{responseText:{runs:[{text:"Experiencing interruptions?"}]},actionButton:{buttonRenderer:{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:{runs:[{text:"Find out why"}]},navigationEndpoint:{commandMetadata:{webCommandMetadata:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers", webPageType:"WEB_PAGE_TYPE_UNKNOWN"}},urlEndpoint:{url:"https://support.google.com/youtube/answer/3037019#check_ad_blockers&zippy=%2Ccheck-your-extensions-including-ad-blockers",target:"TARGET_NEW_WINDOW"}},loggingDirectives:{clientVeSpec:{uiType:232471}}}},loggingDirectives:{clientVeSpec:{uiType:232470}}}},durationHintMs:5E3,popupType:"TOAST"}})}})}; pe$=function(Z){var I;return((I=document.featurePolicy)==null?0:I.allowedFeatures().includes("attribution-reporting"))?Z+"&nis=6":Z+"&nis=5"}; Hq=function(Z,I,d,Y,T,f){var P=d?E9L(Z):{},O=d?Eal(Z,d.layoutId):{},a=blE(Z),W,e=T!=null?T:(W=V1(Z.V5.get(),2))==null?void 0:W.clientPlaybackNonce;T=void 0;if(d){var B;if((B=Z.eF.L.get(d.layoutId))==null?0:B.GF)T=d.layoutId}B={};Z=Object.assign({},cMr(Z.S,T,Y),v67(I.adPlacementConfig,(d==null?void 0:d.renderingContent)!==void 0),O,P,a,(B.FINAL=r1(function(){return"1"}),B.AD_CPN=r1(function(){return e||""}),B)); (d==null?void 0:d.renderingContent)!==void 0||(Z.SLOT_POS=r1(function(){return(I.Yi||0).toString()})); d={};f=Object.assign({},Z,f);Z=g.t(Object.values(Hlv));for(Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,P=f[Y],P!=null&&P.toString()!=null&&(d[Y]=P.toString());return d}; kH=function(Z,I,d,Y,T){Y===0||d.includes(Y);var f=GC(Z),P=zC(f,Z,I,d,T);P!==Y&&(P&&(I=xn(Z,I,P,void 0,T)),f.set(d,Y));return I}; QL=function(Z,I,d){var Y,T=(Y=Z.L.L)==null?void 0:Y.encrypt(I,d);return T?T:(new g.Ry(Z.L.D)).encrypt(I,d)}; am=function(){return g.y1("(ps3; leanback shell)")||g.y1("ps3")&&g.wm()}; zqJ=function(Z){return Z?decodeURI(Z):Z}; Ta=function(Z){var I=0;Z=g.t(Z.questions);for(var d=Z.next();!d.done;d=Z.next())if(d=d.value,d=g.y(d,B6)||g.y(d,eJ)){var Y=void 0;I+=((Y=d.surveyAdQuestionCommon)==null?void 0:Y.durationMilliseconds)||0}return I}; EFB=function(Z,I){Z=aP(Z.array,function(d){return I-d.start||1}); return Z<0?-(Z+1):Z}; g.vj=function(){for(var Z=Number(this),I=[],d=Z;dZ.L||d.push(Y)}return d}; MIL=function(Z){var I,d;return{requestNumber:((I=Z.w4)==null?void 0:I.sM())||-1,isDecorated:(d=Z.w4)==null?void 0:d.info.isDecorated()}}; $OO=function(Z,I,d,Y){Xi.call(this,Z,I);this.Ms=Z;this.V5=d;this.context=Y}; Ycr=function(Z,I){g.p.call(this);var d=this;this.S=Z;this.N=I;this.R7={};this.L={};this.D=null;this.Z=new Set;this.B=new g.De(this);this.A9={odj:function(){return d.N}}; this.j=this.S.Y("web_player_defer_modules");this.nN=new Map;g.z(this,this.B);this.B.W(Z,"videodatachange",this.onVideoDataChange)}; vmi=function(Z){this.B=Z;this.Z=this.D=0;this.N=new x8(50)}; Pr=function(Z,I){I=I===void 0?{}:I;g.t6(function(){SUd(Z);var d=I.sampleRate;if(!g.x9("web_csi_action_sampling_enabled")||d===void 0||d<=1)d=!1;else{var Y=ND(Z);d=Zxu(Y)%d!==0}d&&(MT(Z).actionDisabled=!0);Pi(Z||"").info.actionType=Z;I.cttAuthInfo&&(MT(Z).cttAuthInfo=I.cttAuthInfo);m9(Z+"TIMING_ACTION",Z);g.t6(Wi)(I.startTime,Z);d={actionType:O_(Z)};I.nA5&&(d.previousAction=O_(g.rh("TIMING_ACTION")));(Y=g.vv())&&Y!=="UNDEFINED_CSN"&&(d.clientScreenNonce=Y);g.Qg(d,Z);wJ(!0,Z)})()}; CS=function(Z,I,d,Y){Y=g.t(Y);for(var T=Y.next();!T.done;T=Y.next()){T=T.value;var f=Z.WO.t0.get(T.triggerType);f.P3(d,T,I.slot,I.layout?I.layout:null);I.kS.set(T.triggerId,f)}}; g.yp=function(Z){Z.L=Math.min(Z.B,Z.L*Z.V);Z.Z=Math.min(Z.B,Z.L+(Z.j?Math.round(Z.j*(Math.random()-.5)*2*Z.L):0));Z.D++}; TkJ=function(){try{var Z,I;return!!((Z=window)==null?0:(I=Z.top)==null?0:I.location.href)&&!1}catch(d){return!0}}; n2=function(Z,I,d,Y){EB.call(this,I,Y);this.V=Z;this.X=d}; jvM=function(Z,I){Z.policy.LS?Z.L.splice(Z.L.indexOf(I)).forEach(function(d){d.dispose()}):(Z.L.pop(),I==null||I.dispose())}; wmD=function(Z){this.Z=Z;this.D=0;this.L=null}; U1E=function(Z,I,d,Y){I.durationMs=d;I.Mc=Y;Y={HO:Rp(d,!0),U9:d,target:null};xR7(Z,I,Y);AG(Z,I)&&Z.app.l5().getCurrentTime()*1E3>d&&(I=nN9(Z,I)/1E3,d=Z.app.l5().getPlayerState(),hk(Z,I,{},d,"_update"))}; Tu$=function(Z,I){Z.index=g.O4(I,0,Z.length-1);Z.startSeconds=0}; u5l=function(Z,I){var d="";(I=e5d(Z,I))&&(d=I.getId());return d?Z.L.Vt({cpn:d}):void 0}; uGB=function(Z){Z.then(function(){},function(){})}; i5n=function(Z,I){return(Z==null?void 0:Z.maxWidth)>(I==null?void 0:I.maxWidth)||(Z==null?void 0:Z.maxHeight)>(I==null?void 0:I.maxHeight)}; g5n=function(Z){for(var I=g.t(Z.D),d=I.next();!d.done;d=I.next())d=d.value,d.detach(),g.Th(d);Z.D=[]}; hT=function(Z){this.value=Z}; rqO=function(Z){if(!Z)throw Error("Fetching Attestation challenge returned falsy");if(!Z.challenge)throw Error("Missing Attestation challenge");var I=Z.challenge,d=rE(I);if("c1a"in d&&(!Z.bgChallenge||!Z.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},Z,{BV7:I,fRS:d})}; m1$=function(Z,I,d,Y,T,f,P,O,a,W,e,B){if((B==null?void 0:B.Fn)===void 0||(B==null?void 0:B.qU)===void 0)return new C("Cached ad break range from cue point is missing");var w=NQ(d,T,Y.rb);if(w instanceof C)return w;w={layoutExitMuteTriggers:[],layoutExitNormalTriggers:w.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.y(d.renderingContent,l0))return Z=QVn(Z,I,d,w,T,f,O,a,Y.rb,P,B.Fn,B.qU),Z instanceof C?Z:Z.XF===void 0? new C("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:Z.layout,je:[Z.XF]};var V=g.y(d.renderingContent,yQ);if(V){if(!UT(d.adLayoutMetadata))return new C("Invalid ad layout metadata");if(!vw(V))return new C("Invalid sequential layout");V=V.sequentialLayouts.map(function(N){return N.playerBytesAdLayoutRenderer}); Z=HJO(Z,I,d,w,V,T,Y,f,P,a,O,W,B.Fn,B.qU,e);return Z instanceof C?Z:{layout:Z.VG,je:Z.je}}return new C("Not able to convert a sequential layout")}; iip=function(Z,I){return(Z=u5l(Z,I*1E3))?Z.durationMs/1E3:0}; gUD=function(){var Z;return(Z=g.T2("yt-player-audio-quality-setting"))!=null?Z:2}; wH=function(Z,I){for(var d=0;d7&&(f+=I[P]);for(T=1;T>a&1;O=f<<4|P;if(P<=7)for(a=1<<7-P;a--;)Y[a<>=7;P--;){Y[a]||(Y[a]=-I,I+=2);var W=T&1;T>>=1;a=W-Y[a]}Y[a]=O}}return Y}; WgW=function(Z,I){var d=I.getId();Z.sZ[d]===I&&(g.r2(Z.EU[d]),delete Z.sZ[d],delete Z.EU[d])}; CK=function(Z,I){g.p.call(this);this.vS=I;this.vS.get().addListener(this)}; D4=function(Z,I,d){var Y=d===void 0?{}:d;d=Y.videoDuration===void 0?0:Y.videoDuration;var T=Y.Xh===void 0?void 0:Y.Xh;Y=Y.DJ===void 0?!1:Y.DJ;this.videoId=Z;this.status=I;this.videoDuration=d;this.Xh=T;this.DJ=Y}; rz=function(Z){u_(Z);Z.setLoopVideo(!1);Z.setLoopRange(null);Z.Wj.publish("legacyadtrackingpingreset");Z.Dj={};Z.rZ=[];oqr(Z.KM);if(Z.Pg){var I=Z.Pg,d=Z.vj();d.getPlayerType();Yo(I,!1);fb(I);sLB(I);I.playback=d}I=Z.FT;Z=Z.vj();Z.getPlayerType()!==1&&Jp(I,"invalidParentVideoPlayerType");Fs(I,!1);yau(I);I.L=Z}; pr$=function(Z,I,d,Y,T,f,P){return function(O,a){return lxu(Z,a.slotId,O,f,function(W,e){var B=a.layoutId;W=P(W);return rQ$(I,B,e,T,W,"LAYOUT_TYPE_SURVEY",[new NS(d),Y],d.adLayoutLoggingData)})}}; oH=function(Z,I,d){Z.U.j7&&(Z.p6=I,I.muted||YF(Z,!1),d&&Z.U.storeUserVolume&&!Z.U.M8&&(d={volume:Math.floor(I.volume),muted:I.muted},d.unstorable||(g.AU("yt-player-volume",d),g.AU("yt-player-volume",d,2592E3))),fB(Z),d=g.h_&&Z.mediaElement&&!Z.mediaElement.n6(),Z.U.M8&&!d||Z.Wj.OV("onVolumeChange",{muted:I.muted,volume:I.volume,unstorable:!Z.U.storeUserVolume}))}; eMu=function(Z,I){return Z.j.has(I)?void 0:Z.D.get(I)}; Df7=function(Z){if(!JuL)return ew(Z);Z=Bud.test(Z)?Z.replace(Bud,Sqa):Z;Z=atob(Z);for(var I=new Uint8Array(Z.length),d=0;d0&&(this.In=Y.rti)):(this.du=Y.mos,this.hV=Y.volume,Y.at&&(this.adType=Y.at)),Y.autonav&&(this.autonav=Y.autonav),Y.inview!=null&&(this.M8=Y.inview),Y.size&&(this.EU=Y.size),Y.playerwidth&&(this.Tx=Y.playerwidth),Y.playerheight&&(this.vg=Y.playerheight));this.Gv=g.zm(I.L);this.X=bo(I.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.X==="all"||this.X==="once")this.Yl=g.zm(I.Yl);this.Vf=I.Vf;this.experimentIds=j5E(I.experiments);this.sZ=I.En;this.sU=I.LS;this.region=I.region; this.userAge=I.userAge;this.y5=I.DM;this.En=YE();this.sendVisitorIdHeader=I.sendVisitorIdHeader;this.fS=I.Y("vss_pings_using_networkless")||I.Y("kevlar_woffle");this.aE=I.Y("vss_final_ping_send_and_write");this.j7=I.Y("vss_use_send_and_write");this.pageId=I.pageId;this.wV=I.Y("vss_playback_use_send_and_write");I.livingRoomAppMode&&(this.livingRoomAppMode=I.livingRoomAppMode);g.Dh(I)&&(this.Tm=I.Bj);g.By(g.Wy(I))&&this.j.push(1);this.accessToken=g.VO(Z);Z.KW[this.Hk]?this.N=Z.KW[this.Hk]:Z.KW.playback&& (this.N=Z.KW.playback);this.adFormat=Z.adFormat;this.adQueryId=Z.adQueryId;this.autoplay=dV7(Z);this.Z&&(this.Tv=Z.yX&&l3(Z)==="adunit"?!0:!1);this.autonav=Z.isAutonav||this.autonav;this.contentVideoId=IU(Z);this.clientPlaybackNonce=Z.clientPlaybackNonce;this.SK=Z.IN;Z.j&&(this.kS=Z.j,this.I0=Z.IU);Z.mdxEnvironment&&(this.mdxEnvironment=Z.mdxEnvironment);this.L=Z.Gv;this.UZ=Z.UZ;Z.D&&(this.R4=Z.D.itag,Z.N&&Z.N.itag!==this.R4&&(this.b5=Z.N.itag));Z.L&&fw(Z.L)&&(this.offlineDownloadUserChoice="1"); this.eventLabel=l3(Z);this.on=Z.Wb?!1:Z.gB;this.kF=Z.A4;if(I=e$(Z))this.Wb=I;this.wz=Z.v6;this.partnerId=Z.partnerId;this.eventId=Z.eventId;this.playlistId=Z.eR||Z.playlistId;this.fD=Z.fD;this.SI=Z.SI;this.yJ=Z.yJ;this.F1=Z.F1;this.subscribed=Z.subscribed;this.videoId=Z.videoId;this.videoMetadata=Z.videoMetadata;this.visitorData=Z.visitorData;this.osid=Z.osid;this.pm=Z.pm;this.referrer=Z.referrer;this.fW=Z.Ku||Z.fW;this.d4=Z.Uj;this.Yf=Z.Yf;this.userGenderAge=Z.userGenderAge;this.gF=Z.gF;this.embedsRct= Z.embedsRct;this.embedsRctn=Z.embedsRctn;g.Dh(this.U)&&Z.mutedAutoplay&&(Z.mutedAutoplayDurationMode===2&&Z.limitedPlaybackDurationInSeconds===0&&Z.endSeconds===0?this.j.push(7):this.j.push(2));Z.isEmbedsShortsMode(new g.qv(this.Tx,this.vg),!!this.playlistId)&&this.j.push(3);g.dI(Z)&&this.j.push(4);this.w4=Z.lZ;Z.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=Z.compositeLiveIngestionOffsetToken)}; Vt3=function(Z){var I=1,d;for(d in Z.D)d.length>I&&(I=d.length);return 3997-I-Z.Z.length-1}; Nuv=function(Z){var I=Z.S.m2()?72:50,d=Z.S.C();g.qN(d)&&(d.Y("delhi_modern_web_player")?(I=g.Q4(d.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),I=Z.S.Y("delhi_modern_web_player_compact_controls")||I>0&&Z.S.getPlayerSize().width<=I,I=Z.S.m2()?112:I?70:78,Z.S.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(Z=getComputedStyle(Z.S.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",I+=Number(Z.replace("px","")))):I=62,g.bZ(d)&&(I=54));return I}; WWD=function(Z,I,d){var Y,T=((Y=d.video)==null?void 0:Y.fps)||0;Y=I+"_"+T;var f=!!d.audio,P=Z.L.get(Y);a:{var O=Z.L.get(Y),a=!!d.audio;if(O){if(a){var W=!1;break a}var e;if(!a&&((W=d.video)==null?0:W.height)&&O.maxHeight&&O.maxHeight>=((e=d.video)==null?void 0:e.height)){W=!1;break a}}W=!0}W&&(W=d.itag,I=P?P:{itag:W,Pj:I,iT:f},f?I.numChannels=d.audio.numChannels:(f=d.video,I.maxWidth=f==null?void 0:f.width,I.maxHeight=f==null?void 0:f.height,I.maxFramerate=T,Bw(Z,wZ.BITRATE)&&(I.maxBitrateBps=d.pS* 8),I.By=f==null?void 0:f.isHdr()),Z.L.set(Y,I))}; TqO=function(Z,I){Z=T1O(Z.app.J_().V);Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next()){d=d.value;var Y=d.getAvailableAudioTracks(),T=null;Y=g.t(Y);for(var f=Y.next();!f.done;f=Y.next())if(f=f.value,f.getLanguageInfo().getId()===I){T=f;break}T&&d.RM(T,!0)}}; be=function(Z,I,d,Y){this.Ms=Z;this.Q5=I;this.PJ=d;this.Df=Y}; $2i=function(Z){var I,d;g.h(function(Y){if(Y.L==1)return g.m(Y,sM9(Z),2);I=Y.D;d=(0,g.o8)()-2592E6;return g.m(Y,g.Xn(I,["SWHealthLog"],{mode:"readwrite",OU:!0},function(T){return g.BT(T.objectStore("SWHealthLog"),{},function(f){if(f.getValue().timestamp<=d)return f.delete().then(function(){return g.w1(f)})})}),0)})}; g.ta=function(Z,I){Z.appendChild(I)}; hM3=function(Z){if(!Z)return"";var I=document.createElement("div").style;tzl(Z).forEach(function(d){var Y=g.Vd&&d in FgL?d:d.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");pu(Y,"--")||pu(Y,"var")||(d=JFO(svW,Z,Z.getPropertyValue?"getPropertyValue":"getAttribute",[d])||"",d=$PD(d),d!=null&&JFO(nWW,I,I.setProperty?"setProperty":"setAttribute",[Y,d]))}); return I.cssText||""}; GPa=function(Z,I){var d=Z.t5.f6();return d.isInline()&&!I.DD?new mY(0,480,!1,"v"):j2(I)?nb:d.isBackground()&&YE()/1E3>60&&!g.RK(Z.U)?new mY(0,360,!1,"v"):nb}; xeD=function(Z,I,d,Y,T){if(!tX(I))return new C("Invalid PlayerBytesAdLayoutRenderer");var f=g.y(I.renderingContent,zz);if(!f||f.durationMilliseconds===void 0)return new C("Invalid endcap renderer");var P={layoutId:I.adLayoutMetadata.layoutId,layoutType:I.adLayoutMetadata.layoutType,r4:"adapter"};Y=[new Q_(f.durationMilliseconds),new OK({impressionCommands:void 0,abandonCommands:f.abandonCommands?[{commandExecutorCommand:f.abandonCommands}]:void 0,completeCommands:f.completionCommands}),new Xj(Y), new a1("LAYOUT_TYPE_ENDCAP")];if(T){Y.push(new hT(T.Hh.adPodIndex-1));Y.push(new mW(T.Hh.adPodIndex));var O;Y.push(new Dg((O=T.adPodSkipTarget)!=null?O:-1))}return Object.assign({},P,C_,{renderingContent:I.renderingContent,clientMetadata:new D0(Y),h5:f.skipPings?new Map([["skip",f.skipPings]]):new Map,Tb:Fo(d,Z)(P),adLayoutLoggingData:I.adLayoutMetadata.adLayoutLoggingData})}; g.Bj=function(Z,I){Z.j=I||0;I=Z.Z.CP;Z.Z=null;return I}; m3V=function(Z,I){var d,Y;Z=((d=Z.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(Y=d.videoAuthorizationToken)==null?void 0:Y.credentialTransferTokens)||[];for(d=0;dZ.mediaTime+Z.B&&I=0&&Z.D.splice(d,1);Z.Z.delete(I.cpn);I.uQ&&Z.N.delete(I.uQ)}; U3i=function(Z,I){if(!Z.index.isLoaded()){var d=[],Y=I.N;I=I.B.split(",").filter(function(e){return e.length>0}); for(var T=0,f=0,P=0,O=/^(\d+)/,a=/r=(\d+)/,W=0;W0?(Z="sms:"+Z[0],Y.messageText&&(Z+="?&body="+encodeURI(Y.messageText))):Z="",this.FF=!0,g.M3(this.button,g.mQ(Z,[u0i]))):(d=g.y(d,GLi))&&!this.D&&(Z=d.phoneNumber? "tel:"+d.phoneNumber:"",this.FF=!0,g.M3(this.button,g.mQ(Z,[zMW])));this.S.Y("embeds_enable_info_panel_dismissal")&&!Z&&(d=g.y(I==null?void 0:I.onTap,c2),Y=g.y(d,kLv))&&(this.FF=!0,this.L=d,this.feedbackToken=Y.feedbackToken);var T;if(d=(T=I.disclaimerText)==null?void 0:T.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var f;this.update({label:(f=I.bodyText)==null?void 0:f.content,icon:t4(),disclaimer:d})}else{this.disclaimer.style.display="none";var P; this.update({label:(P=I.bodyText)==null?void 0:P.content,icon:t4()})}this.S.setTrackingParams(this.element,I.trackingParams||null);this.FF&&(this.Z={externalLinkData:{url:Z}})}; Vh=function(Z,I){I=I===void 0?!1:I;var d=Z.loader.getCurrentTime(),Y=Z.N.Rw(),T=(Y==null?void 0:Y.info.j)||0;if((Y==null?0:Y.info.L.X6())&&!Y.info.N)if(Z.policy.IF)T=Y.info.B;else if(Z.policy.LJ){var f=Y.info;T=f.range?f.j:Math.min(f.startTime+Math.min(f.duration*f.D/f.L.info.pS,f.duration)+(f.range?f.X:Math.min(f.duration,f.duration*f.Z/f.L.info.pS)),f.startTime+f.duration)}if(!Z.qC)return Z.policy.L&&I&&!isNaN(d)&&Y?T-d:0;if((f=oi(Z))&&FW(f))return f.j;var P=Z.qC.LN(!0);if(I&&Y)return f=0,Z.policy.L&& (f=tx(P,T+.02)),f+T-d;I=tx(P,d);Z.policy.BZ&&f&&(Y=OT(P,d),P=OT(P,f.B-.02),Y===P&&(d=f.j-d,Z.policy.Z&&d>I+.02&&Z.D1("abh",{bh:I,bhtls:d}),I=Math.max(I,d)));return I}; ttV=function(Z){var I=g.rh("INNERTUBE_HOST_OVERRIDE");I&&(Z=String(I)+String(xe(Z)));return Z}; vJ=function(Z){var I=g.KD({"aria-haspopup":"true"});g.w9.call(this,I,Z);this.listen("keydown",this.cJ)}; OQ=function(Z,I,d){return Z=bp(Z,I[0],I[1],d?1:2)}; $3p=function(Z,I){this.Z=Z;this.N=I;this.D=0;this.L=null}; pEv=function(Z,I,d,Y,T,f,P){g2.call(this,d,Z,I,Y);this.N=T;this.S7=f;this.Ms=P}; e9=function(Z,I,d,Y,T,f,P,O,a){this.YS=Z;this.startTime=I;this.duration=d;this.ingestionTime=Y;this.sourceURL=T;this.Un=a;this.endTime=I+d;this.L=P||0;this.range=f||null;this.pending=O||!1;this.Un=a||null}; elu=function(Z){dV.call(this,"sabr");this.Zf=Z}; x3L=function(Z,I){if(I<0)return"0";Z=Math.floor(Math.min(I,Z.api.getDuration())*1E3);return Z>2147483647?"0":String(Z)}; Gh=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(this);g.z(this,this.events);this.L=new BA$(this.api);this.events.W(this.api,"legacyadtrackingpingreset",function(){I.L.L={}}); this.events.W(this.api,"legacyadtrackingpingchange",function(d){var Y=I.L;wU(Y,"part2viewed",1,0x8000000000000);wU(Y,"engagedview",Math.max(1,d.UZ*1E3),0x8000000000000);if(!d.isLivePlayback){var T=d.lengthSeconds*1E3;fA(d)&&Y.api.Y("html5_shorts_gapless_ads_duration_fix")&&(T=Y.api.getProgressState().seekableEnd*1E3-d.OJ);wU(Y,"videoplaytime25",T*.25,T);wU(Y,"videoplaytime50",T*.5,T);wU(Y,"videoplaytime75",T*.75,T);wU(Y,"videoplaytime100",T,0x8000000000000);wU(Y,"conversionview",T,0x8000000000000); wU(Y,"videoplaybackstart",1,T);wU(Y,"videoplayback2s",2E3,T);wU(Y,"videoplayback10s",1E4,T)}}); this.events.W(this.api,g.E2("appad"),this.D);this.events.W(this.api,g.bx("appad"),this.D)}; Fy=function(Z,I){g.k.call(this,{K:"button",zm:["ytp-button","ytp-settings-button"],J:{"aria-expanded":"false","aria-haspopup":"true","aria-controls":$$(),title:Z.Y("player_tooltip_data_title_killswitch")?"Settings":"","data-tooltip-title":"Settings","data-tooltip-target-id":"ytp-settings-button"},G:[Z.Y("delhi_modern_web_player_icons")?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M12.84 1H11.15C10.72 .99 10.30 1.14 9.95 1.40C9.60 1.66 9.35 2.02 9.23 2.44L9.19 2.61C9.11 3.00 8.96 3.38 8.73 3.71C8.51 4.04 8.22 4.33 7.89 4.55L7.75 4.64C7.37 4.85 6.96 4.98 6.53 5.02C6.11 5.06 5.68 5.01 5.27 4.87C4.86 4.73 4.42 4.73 4.00 4.86C3.59 5.00 3.23 5.26 2.99 5.62L2.89 5.77L2.05 7.23C1.82 7.63 1.73 8.10 1.81 8.55C1.88 9.01 2.12 9.43 2.47 9.73L2.58 9.84C3.15 10.39 3.50 11.15 3.50 12L3.49 12.16C3.47 12.56 3.37 12.95 3.19 13.31C3.01 13.67 2.77 13.99 2.47 14.26C2.12 14.56 1.88 14.98 1.81 15.43C1.73 15.89 1.82 16.36 2.05 16.76L2.89 18.22L2.99 18.37C3.24 18.73 3.59 18.99 4.01 19.13C4.42 19.26 4.86 19.26 5.27 19.12L5.42 19.07C5.81 18.96 6.21 18.93 6.61 18.98C7.01 19.03 7.40 19.15 7.75 19.36L7.89 19.44C8.22 19.66 8.51 19.95 8.73 20.28C8.96 20.61 9.11 20.99 9.19 21.38C9.28 21.84 9.52 22.24 9.88 22.54C10.24 22.83 10.69 23.00 11.15 23H12.84C13.30 23.00 13.75 22.83 14.11 22.54C14.47 22.24 14.71 21.84 14.80 21.38C14.89 20.96 15.06 20.56 15.31 20.21C15.55 19.86 15.88 19.57 16.25 19.36L16.39 19.28C16.75 19.10 17.14 18.99 17.54 18.96C17.94 18.94 18.34 18.99 18.72 19.12L18.89 19.17C19.31 19.27 19.75 19.24 20.15 19.07C20.55 18.90 20.88 18.60 21.10 18.23L21.95 16.76C22.18 16.36 22.26 15.89 22.19 15.43C22.11 14.98 21.88 14.56 21.53 14.26C21.23 13.99 20.98 13.67 20.80 13.31C20.63 12.95 20.52 12.56 20.50 12.16L20.50 12C20.50 11.57 20.59 11.14 20.77 10.75C20.94 10.36 21.20 10.01 21.53 9.73C21.88 9.43 22.11 9.01 22.19 8.55C22.26 8.10 22.18 7.63 21.95 7.23L21.10 5.76C20.88 5.39 20.55 5.09 20.15 4.92C19.76 4.75 19.31 4.72 18.89 4.82L18.72 4.87C18.34 5.00 17.94 5.05 17.54 5.03C17.14 5.00 16.75 4.89 16.4 4.71L16.25 4.63C15.88 4.42 15.56 4.13 15.31 3.78C15.06 3.43 14.89 3.03 14.80 2.61C14.71 2.15 14.47 1.74 14.11 1.45C13.75 1.16 13.30 .99 12.84 1ZM11.15 3H12.84C12.98 3.70 13.26 4.36 13.68 4.94C14.09 5.52 14.63 6.01 15.25 6.37C15.87 6.72 16.55 6.94 17.26 7.01C17.97 7.08 18.69 6.99 19.37 6.76L20.21 8.23C19.67 8.69 19.24 9.27 18.94 9.92C18.65 10.57 18.50 11.28 18.5 12C18.50 12.71 18.65 13.42 18.95 14.07C19.24 14.72 19.67 15.29 20.21 15.76L19.37 17.23C18.69 16.99 17.97 16.91 17.26 16.98C16.55 17.05 15.86 17.27 15.25 17.63C14.63 17.98 14.09 18.47 13.68 19.05C13.26 19.63 12.98 20.29 12.84 21H11.15C11.01 20.29 10.73 19.63 10.31 19.05C9.90 18.47 9.36 17.98 8.75 17.62C8.13 17.27 7.44 17.05 6.73 16.98C6.02 16.91 5.30 16.99 4.62 17.23L3.78 15.76C4.32 15.29 4.75 14.71 5.05 14.06C5.34 13.41 5.49 12.71 5.5 12C5.50 11.28 5.34 10.57 5.05 9.92C4.75 9.27 4.32 8.69 3.78 8.23L4.62 6.76C5.30 7.00 6.02 7.08 6.73 7.01C7.44 6.94 8.13 6.72 8.75 6.37C9.36 6.01 9.90 5.52 10.31 4.94C10.73 4.36 11.01 3.70 11.15 3ZM12.00 8C10.94 8 9.92 8.42 9.17 9.17C8.42 9.92 8.00 10.93 8.00 12C8.00 13.06 8.42 14.07 9.17 14.82C9.92 15.57 10.94 16 12.00 16C13.06 16 14.08 15.57 14.83 14.82C15.58 14.07 16.00 13.06 16.00 12C16.00 10.93 15.58 9.92 14.83 9.17C14.08 8.42 13.06 8 12.00 8ZM12.00 10H12L12.20 10.01C12.69 10.06 13.15 10.29 13.48 10.65C13.81 11.02 14.00 11.50 14 12L13.99 12.20C13.95 12.58 13.80 12.95 13.55 13.25C13.31 13.55 12.98 13.78 12.62 13.90C12.25 14.02 11.85 14.03 11.48 13.93C11.11 13.83 10.77 13.62 10.51 13.34C10.25 13.05 10.08 12.69 10.02 12.31C9.96 11.93 10.01 11.54 10.17 11.18C10.32 10.83 10.58 10.53 10.91 10.32C11.23 10.11 11.61 10.00 12 10", fill:"white"}}]}:g.ob()]});this.S=Z;this.A5=I;this.D=!0;this.listen("click",this.Z);this.W(Z,"onPlaybackQualityChange",this.updateBadge);this.W(Z,"videodatachange",this.updateBadge);this.W(Z,"webglsettingschanged",this.updateBadge);this.W(Z,"appresize",this.L);pi(Z,this.element,this);this.S.createClientVe(this.element,this,28663);this.updateBadge();this.L(Z.cj().getPlayerSize())}; cP=function(Z,I,d,Y,T,f){kw.call(this,Z,{K:"div",T:"ytp-ad-text"},f===void 0?"ad-text":f,I,d,Y,T===void 0?null:T);this.L=null;this.hide()}; wZd=function(Z,I){var d=Z.L;I=Math.min(I,d.D.totalLength);if(I===d.D.totalLength)return Z.L=null,d;d=Bx$(d,I);Z.L=d[1];return d[0]}; Yk=function(Z){return dB(Z.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; jIu=function(Z,I,d){d=d===void 0?2:d;P9(Z,I*8+2);Z.D.push(Z.pos);Z.D.push(d);Z.pos+=d}; Kgp=function(Z,I,d,Y){I={n5:I,gX:d,Me:Z.playback.getCurrentTime(),CTZ:Y};vm(Z,I)}; teO=function(Z,I){if(g.x9("no_client_ve_attach_unless_shown")){var d=lV(Z,I);m$7.set(d,!0);m_i(Z,I)}}; I8=function(Z){Z.on&&Z.t9({adf:"0_"+((new Date).getTime()/1E3-Z.sU)+"_isTimeout_"+Z.X})}; CpM=function(Z,I){return(Z=e5d(Z,I*1E3))?I-Z.start/1E3:I}; EWE=function(Z,I){if(!q0(Z))throw Error("IndexedDB is not supported: updateRequestHandlers");var d=I.options.onError?I.options.onError:function(){}; I.options.onError=function(T,f){var P,O,a,W;return g.h(function(e){switch(e.L){case 1:P=Rtn(f);(O=MWJ(f))&&Z.CS&&Z.CS("web_enable_error_204")&&Z.handleError(Error("Request failed due to compression"),I.url,f);if(!(Z.CS&&Z.CS("nwl_consider_error_code")&&P||Z.CS&&!Z.CS("nwl_consider_error_code")&&Z.potentialEsfErrorCounter<=Z.As)){e.xS(2);break}if(!Z.YH.XP){e.xS(3);break}return g.m(e,Z.YH.XP(),3);case 3:if(Z.YH.QQ()){e.xS(2);break}d(T,f);if(!Z.CS||!Z.CS("nwl_consider_error_code")||((a=I)==null?void 0: a.id)===void 0){e.xS(6);break}return g.m(e,Z.PO.Vl(I.id,Z.JV,!1),6);case 6:return e.return();case 2:if(Z.CS&&Z.CS("nwl_consider_error_code")&&!P&&Z.potentialEsfErrorCounter>Z.As)return e.return();Z.potentialEsfErrorCounter++;if(((W=I)==null?void 0:W.id)===void 0){e.xS(8);break}return I.sendCount=0&&(d.element.style.width=I+"px")}; XOB=function(Z){$w.call(this,Z);var I=this;this.events=new g.De(Z);g.z(this,this.events);this.events.W(Z,"applicationvideodatachange",function(d,Y){Y=Y.clipConfig;d==="dataloaded"&&Y&&Y.startTimeMs!=null&&Y.endTimeMs!=null&&I.api.setLoopRange({startTimeMs:Math.floor(Number(Y.startTimeMs)),endTimeMs:Math.floor(Number(Y.endTimeMs)),postId:Y.postId,type:"clips"})})}; q9r=function(Z){for(var I=1;I-1&&Z.splice(I,1)}; zH=function(Z){return Z&&Z.length?Z.end(Z.length-1):NaN}; g.YR=function(Z,I,d,Y){Z=Y||Z;return(I=I&&I!="*"?String(I).toUpperCase():"")||d?Z.querySelectorAll(I+(d?"."+d:"")):Z.getElementsByTagName("*")}; ub=function(Z,I){I={current:I/1E3,duration:Z.D9()/1E3};Z.eJ.get().CK("onAdPlaybackProgress",I)}; Jai=function(Z,I){var d;((d=Z.B.get(I))!=null?d:[]).forEach(function(Y){Z.L===0&&Z.UV.zl("transitiondetector",Y);if(Z.L===1){var T=Z.Z,f;(f=T.L.get(Y))==null||f.delay.dispose();T.L.delete(Y)}}); Z.B.delete(I)}; E8=function(Z,I,d){d=d===void 0?!1:d;return HTO(Z,I.getCurrentTime(),(0,g.o8)(),Tb(I),d)}; dE=function(Z){Z.D=NaN;Z.j=NaN;Z.Tm=NaN;Z.N=null;Z.Ns=null;Z.B=null;Z.fS=!1;Z.kS=!1;Z.w4=0;Z.j7.stop();Z.sZ.stop()}; x5=function(Z,I,d,Y){return xXd(Z,I,d,Y,function(T,f){return new mw(Z.L,d,T,f)})}; W1=function(Z,I,d,Y){ya.lH(Z,I,d,Y)}; ul=function(Z){return pu(Z,"custom_metric_viewable")}; cg0=function(Z,I){var d=$$(),Y=Z.C();d={K:"div",T:"ytp-share-panel",J:{id:$$(),role:"dialog","aria-labelledby":d},G:[{K:"div",T:"ytp-share-panel-inner-content",G:[{K:"div",T:"ytp-share-panel-title",J:{id:d},Z1:"Share"},{K:"a",zm:["ytp-share-panel-link","ytp-no-contextmenu"],J:{href:"{{link}}",target:Y.In,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},Z1:"{{linkText}}"},{K:"label",T:"ytp-share-panel-include-playlist",G:[{K:"input",T:"ytp-share-panel-include-playlist-checkbox",J:{type:"checkbox", checked:"true"}},"Include playlist"]},{K:"div",T:"ytp-share-panel-loading-spinner",G:[B1()]},{K:"div",T:"ytp-share-panel-service-buttons",Z1:"{{buttons}}"},{K:"div",T:"ytp-share-panel-error",Z1:"An error occurred while retrieving sharing information. Please try again later."}]},{K:"button",zm:["ytp-share-panel-close","ytp-button"],J:{title:"Close"},G:[g.Hz()]}]};g.GA.call(this,Z,d,250);var T=this;this.moreButton=null;this.api=Z;this.tooltip=I.EP();this.D=[];this.N=this.KS("ytp-share-panel-inner-content"); this.closeButton=this.KS("ytp-share-panel-close");this.W(this.closeButton,"click",this.zb);this.addOnDisposeCallback(g.my(this.tooltip,this.closeButton));this.Z=this.KS("ytp-share-panel-include-playlist-checkbox");this.W(this.Z,"click",this.qs);this.L=this.KS("ytp-share-panel-link");this.addOnDisposeCallback(g.my(this.tooltip,this.L));this.api.createClientVe(this.L,this,164503);this.W(this.L,"click",function(f){f.preventDefault();T.api.logClick(T.L);var P=T.api.getVideoUrl(!0,!0,!1,!1);P=Osi(T,P); g.$n(P,T.api,f)&&T.api.Rn("SHARE_CLICKED")}); this.listen("click",this.pH);this.W(Z,"videoplayerreset",this.hide);this.W(Z,"fullscreentoggled",this.onFullscreenToggled);this.W(Z,"onLoopRangeChange",this.oSm);this.hide()}; gWi=function(Z,I){for(var d in Z.L)if(Z.L[d].type===I)return Z.L[d].status}; Za=function(Z,I,d){Z.insertBefore(I,Z.childNodes[d]||null)}; IL=function(Z,I,d){Z=I?MF(Z,d):Z.L;return new Mr(Z)}; et9=function(Z,I){if(Z.policy.useUmp&&I.OZ())return!1;try{var d=I.info.e7[0].L,Y=d.info.video?Z.videoTrack:Z.audioTrack;if(Z.u5.isManifestless&&Y){Z.j=0;Y.V&&(I.OZ(),I.isComplete()||I.Ra(),Y.V=!1);I.HX()&&Z.loader.GO.vJ(1,I.HX());var T=I.oH(),f=I.Sy();ig(Z.u5,T,f)}if(I.info.OY()&&!k0(I.info))for(var P=g.t(I.eL()),O=P.next();!O.done;O=P.next())YLu(Y,O.value);for(Z.loader.getCurrentTime();Y.Z.length&&Y.Z[0].state===4;){var a=Y.Z.shift();Qs7(Y,a);Y.Tm=a.Mf()}Y.Z.length&&Qs7(Y,Y.Z[0]);var W=!!fM(Y);W&& I instanceof Af&&(d.info.iT()?DQa(Z.timing):JSD(Z.timing));return W}catch(e){I=I.LZ();I.origin="hrhs";a:{Z=Z.loader;d=e;if(d instanceof Error){I.msg||(I.msg=""+d.message);I.name||(I.name=""+d.name);if(d instanceof g.Wj&&d.args)for(Y=g.t(Object.entries(d.args)),T=Y.next();!T.done;T=Y.next())f=g.t(T.value),T=f.next().value,f=f.next().value,I["arg"+T]=""+f;g.uL(d);if(d.level==="WARNING"){Z.t5.Zo(I);break a}}Z.handleError("fmt.unplayable",I,1)}return!1}}; b7=function(Z,I,d,Y,T){I=x3L(Z,I);d=x3L(Z,d);Z=Z.progressBar.visualElement;Y={seekData:{startMediaTimeMs:I,endMediaTimeMs:d,seekSource:Y}};(I=g.vv())&&Q0(I,Z,T,Y)}; KLO=function(Z){if(typeof Z!=="number")throw IM("int32");if(!Ye(Z))throw IM("int32");return Z|0}; fsJ=function(Z,I,d,Y,T){Z.B=I;Z.Z=d;Z.j=Y;Z.V=T}; g.u5=function(Z,I,d){g.u5=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?w_a:DiL;return g.u5.apply(null,arguments)}; EmL=function(Z,I){this.L=I;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=Z(this.triggerType)}; pML=function(Z,I,d,Y,T,f,P){P==="PLAY_PROGRESS"&&(d=!Y||Z.api.C().D?1:d/Y,Z.Gv.clientWidth>0||Z.En.clientWidth>0?(f=I.clientWidth/d,Z=-1*Z.Gv.clientWidth/d):(f/=d,Z=-1*Z.L[T].element.offsetLeft/d),g.K2(I,"background-size",f+"px"),g.K2(I,"background-position-x",Z+"px"))}; A$=function(Z){var I=[],d;for(d in Z)if(Z.hasOwnProperty(d)){var Y=d;I.push(J$(Y));Y=g.t(Z[Y]);for(var T=Y.next();!T.done;T=Y.next())I.push(T.value.itag)}return I.join(".")}; HJ=function(Z,I){if(I.OZ()||Z.OZ())Z.policy.q6||(Z.policy.B?L8(Z.loader):Z.loader.Nc());else{if(Z.policy.Z&&I.isComplete()&&I instanceof DD){var d=Z.loader,Y=d.D1,T,f,P=Object.assign(I.Lj.uf(),{rst:I.state,strm:I.xhr.gx(),d:(T=I.Lj.fS)==null?void 0:T.It(),cncl:I.xhr&&I.Qt.B?1:0,rqb:I.MX,cwt:I.Qt.Z,swt:(f=I.wS)==null?void 0:f.LY});T=Object.assign(Fsn(I.info),P);Y.call(d,"rqs",T)}if(I.isComplete()&&I.UG()&&I instanceof DD)Z.policy.o4?I.XA()?(I.dispose(),Z.L.length===0?Z.loader.Nc():(Z=Z.L[0],Z instanceof DD&&Z.J6()&&Z.B1())):I.q_()&&Z.loader.handleError(I.dB(),I.LZ()):(I.dispose(),Z.loader.Nc());else{if(I.FA())I instanceof DD&&atl(Z.timing,I),o$$(Z),t0(Z);else if(I.q_())d=Z.t5.yV(),I instanceof DD&&ILE(I.info)&&d&&Z.loader.j8(d),I instanceof JU?Z.L.pop():(d=1,I.canRetry()&&se(Z.loader)&&(jvM(Z,I),d=0),Z.loader.handleError(I.dB(),I.LZ(),d));else{if(Z.loader.isSuspended&&!I.isComplete())return;t0(Z)}I.OZ()||I instanceof JU||(I.isComplete()?d=ALd(I,Z.policy,Z.N):(d=QYa(I,Z.policy,Z.N),d===1&&(Z.d4=!0)), d!==0&&(Y=new S0(1,I.info.MC),Y.Zb=d===2,we$(Z,Y)));Z.policy.Tv&&!I.isComplete()?wn9(Z.loader):Z.loader.Nc()}}}; k2=function(){jZ.apply(this,arguments)}; NZi=function(Z){if(Z.U.storeUserVolume){Z=g.T2("yt-player-volume")||{};var I=Z.volume;Z={volume:isNaN(I)?100:g.O4(Math.floor(I),0,100),muted:!!Z.muted}}else Z={volume:100,muted:Z.U.mute};return Z}; mo=function(Z,I){v8(Z,1,I.clientInfo,eAO,3);l5(Z,2,I.H8);l5(Z,3,I.playbackCookie);l5(Z,4,I.Oy);if(I.Vb)for(var d=0;d0&&(I-=Z.timestampOffset);var d=g.wR(Z)+I;o_n(Z,d);Z.timestampOffset=I}; qa$=function(Z){return{tG:Z.Z.L.DA,d2:Z.Z.D.DA}}; qc=function(Z,I,d){this.videoData=Z;this.U=I;this.t5=d;this.L=void 0}; cJ=function(Z,I){Ihg(Z.EZ,I,!Z.D)}; Xeu=function(Z,I){var d;return I&&Z.U.gf&&!((d=Z.getVideoData())==null?0:d.backgroundable)}; zpi=function(Z,I,d){if(!(Z.videoTrack.L.SD()&&Z.audioTrack.L.SD()&&Z.Fm&&Z.Fm.D&&Z.Fm.L))return!1;if(d&&Z.u5.isManifestless&&(Z.videoTrack.j===-1||Z.audioTrack.j===-1))return!0;var Y=pk(Z.videoTrack,I,d);if(isNaN(Y))return!1;Z=pk(Z.audioTrack,Z.policy.SK?I:Y,d);return isNaN(Z)?!1:!0}; Ihg=function(Z,I,d){d=d===void 0?!1:d;Z.L.has(I)?h6(Z,I,[]):Z.rK(I,d)}; AI=function(Z,I,d,Y,T,f,P,O){g.p.call(this);this.D=Z;this.L=I;this.Z=d;this.Ms=Y;this.N=T;this.V5=f;this.S7=P;this.SJ=O}; KNl=function(){}; $Yu=function(Z,I){if(Z){var d;g.Zm.isLoading()?d=!1:d=!OS||(0,g.o8)()-OS>I;Z=d}else Z=!1;return Z}; dN0=function(Z,I,d){var Y=g.Q4(I.experiments,"bg_vm_reinit_threshold");(!OS||(0,g.o8)()-OS>Y)&&Yiu(Z,d).then(function(T){T&&(T=T.botguardData)&&g.uUE(T,I)},function(T){Z.OZ()||(T=w2(T),Z.D1("attf",T.details))})}; E9L=function(Z){var I={},d,Y=(d=Z.Jg)==null?void 0:d.jI/1E3;Y!=null&&(I.SURVEY_ELAPSED_MS=r1(function(){return Math.round(Y*1E3).toString()})); I.SURVEY_LOCAL_TIME_EPOCH_S=r1(function(){return Math.round(Date.now()/1E3).toString()}); return I}; oCW=function(Z){switch(Z){case "abandon":case "unmuted_abandon":return"abandon";case "active_view_fully_viewable_audible_half_duration":return"fully_viewable_audible_half_duration_impression";case "active_view_measurable":return"measurable_impression";case "active_view_viewable":return"viewable_impression";case "audio_audible":return"audio_audible";case "audio_measurable":return"audio_measurable";case "complete":case "unmuted_complete":return"complete";case "end_fullscreen":case "unmuted_end_fullscreen":return"exitfullscreen"; case "first_quartile":case "unmuted_first_quartile":return"firstquartile";case "fullscreen":case "unmuted_fullscreen":return"fullscreen";case "impression":case "unmuted_impression":return"impression";case "midpoint":case "unmuted_midpoint":return"midpoint";case "mute":case "unmuted_mute":return"mute";case "pause":case "unmuted_pause":return"pause";case "progress":case "unmuted_progress":return"progress";case "resume":case "unmuted_resume":return"resume";case "swipe":case "skip":case "unmuted_skip":return"skip"; case "start":case "unmuted_start":return"start";case "third_quartile":case "unmuted_third_quartile":return"thirdquartile";case "unmute":case "unmuted_unmute":return"unmute";default:return null}}; Y5E=function(Z){this.Gm=bp(Z)}; X_7=function(Z){var I=ul(Z)?"custom_metric_viewable":Z;Z=MR(r5,function(d){return d==I}); return arp[Z]}; BUD=function(Z,I,d){var Y=Math.floor(I),T=Y+"% volume"+(d?" muted":"");d=d?0:I/100;Z.updateValue("valuenow",Y);Z.updateValue("valuetext",T);Y=Z.Z?78:52;T=!Z.api.Y("delhi_modern_web_player")&&Z.Z?18:12;Z.kS.style.left=(Y-T)*d+"px";Z.volume=I}; MYa=function(Z){var I=Z.mediaElement;I&&Z.Dg&&!Z.videoData.In&&!H6("vfp",Z.KM.timerName)&&I.f0()>=2&&!I.isEnded()&&ky(I.cE())&&Z.KM.tick("vfp");return(I=Z.mediaElement)&&!Z.videoData.In&&I.getDuration()>0&&(I.isPaused()&&I.f0()>=2&&ky(I.cE())&&(H6("pbp",Z.KM.timerName)||Z.KM.tick("pbp"),!Z.videoData.MO||Z.lA||I.isSeeking()||(Z.lA=!0,Z.publish("onPlaybackPauseAtStart"))),I=I.getCurrentTime(),$m(Z.ET,I))?(Z.vy(),!0):!1}; qX7=function(){function Z(O,a){return O==null?a:O} var I=TU(),d=Math.max(I.length-1,0),Y=m3J(I);I=Y.L;var T=Y.D,f=Y.Z,P=[];f&&P.push(new gf([f.url,f.L?2:0],Z(f.depth,1)));T&&T!=f&&P.push(new gf([T.url,2],0));I.url&&I!=f&&P.push(new gf([I.url,0],Z(I.depth,d)));Y=g.Ft(P,function(O,a){return P.slice(0,P.length-a)}); !I.url||(f||T)&&I!=f||(T=qVO(I.url))&&Y.push([new gf([T,1],Z(I.depth,d))]);Y.push([]);return g.Ft(Y,function(O){return v17(d,O)})}; cZ=function(Z){this.Gm=bp(Z)}; rK=function(Z){if(!Z.Lj)return{};var I=Z.Lj.uf(),d;I.d=(d=Z.Lj.fS)==null?void 0:d.It();I.shost=Z.FP;I.ty="o";return I}; eC$=function(Z,I,d){if(!o_n(I,d))return I=XU(I.info),I.smst="1",Z.loader.handleError("fmt.unparseable",I||{},1),!1;isNaN(Z.fS)&&(Z.fS=d);return!0}; Vr7=function(Z){for(var I="",d=0;d=T.D&&d50&&T.D.shift())),T=Z.L,eYE(T,d,I===void 0?!0:I),JfB(T,d),I&&Y1$(Z,!0));Y!==Z.Yl&&(I=Z.getCurrentTime()-Z.b5<=500,d=Z.I0>=1E3,I||d||(I=Z.t5.wK,I.qoe&&(I=I.qoe,d=g.NC(I.provider), g.Vt(I,d,"lh",[Y?"1":"0"])),Z.Yl=Y,Z.I0++,Z.b5=Z.getCurrentTime()))}; E_=function(Z,I){g.g6("adsClientStateChange",I)}; Cg=function(Z){g.p.call(this);this.app=Z;this.B=this.N=this.D=this.L=null;this.Z=1;this.events=new g.De(this);this.events.W(this.app.Wj,g.bx("gaplessshortslooprange"),this.X);g.z(this,this.events)}; Xj=function(Z){this.value=Z}; K6=function(Z){g.p.call(this);this.L=Z;this.D=dsu(this)}; ie=function(Z){g.p.call(this);this.S=Z;this.listeners=[];this.L=new oK(this);g.z(this,this.L);this.L.W(this.S,"aduxclicked",this.onAdUxClicked);this.L.W(this.S,"aduxmouseover",this.I_);this.L.W(this.S,"aduxmouseout",this.tp);this.L.W(this.S,"muteadaccepted",this.glm)}; Ri$=function(Z,I,d){if(!Z.LS){d||(d=mD(Z,"atr"));d.attestationResponse=I;try{d.send()}catch(Y){if(Y.message!=="Unknown Error")throw Y;}Z.LS=!0}}; PaL=function(Z){var I=["o","a","A"];Z.fS===1&&(Z.N&&(I=["mac3","MAC3"].concat(I)),Z.B&&(I=["meac3","MEAC3"].concat(I)),Z.eK&&(I=["i","I"].concat(I)));Z.LS&&(I=["so","sa"].concat(I));!Z.M8||Z.j7||Z.Z||Z.kF||I.unshift("a");Z.Z&&(I=(ccO[Z.Z]||[Z.Z]).concat(I));return I}; fhE=function(Z,I,d,Y,T,f,P,O,a){var W=Rri(Z,f,f+T);Z.X&&Z.t9({adaftto:1});d||Z.t9({missadcon:1,enter:f,len:T,aid:O});Z.N&&!Z.N.vp&&(Z.N.vp=O);Z.fp&&Z.t9({adfbk:1,enter:f,len:T,aid:O});var e=Z.playback;f>P&&Ys(Z,{reason:"enterTime_greater_than_return",f_:f,Mc:P});var B=e.p_()*1E3;fe&&Ys(Z,{reason:"parent_return_greater_than_content_duration",Mc:P,wu5:e});(e=K8J(Z.L,f))&&e.Mc>f&&DG7(Z,I.video_id|| "",f,P,e);if(W&&e)for(B=0;B16-d?(Z.FW|=I<>16-Z.Xw,Z.Xw+=d-16):(Z.FW|=I<=3&&(Z.RN=(Z.RN<4096)&&(Z.kZ=2));if(Z.RF>=3&&Z.kZ<=Z.RF){Y=Z.NC+Z.dK-3;d=ur(Z,Z.NC-1-Z.yk,Z.RF-3);Z.dK-=Z.RF-1;Z.RF-=2;do++Z.NC<=Y&&(Z.RN=(Z.RN<>>0)+"_",T=0;return I}); KI("Symbol.iterator",function(Z){if(Z)return Z;Z=Symbol("Symbol.iterator");Ua(Array.prototype,Z,{configurable:!0,writable:!0,value:function(){return GMl(qJ9(this))}}); return Z}); var IrB=typeof Object.create=="function"?Object.create:function(Z){function I(){} I.prototype=Z;return new I},VxL=function(){function Z(){function d(){} new d;Reflect.construct(d,[],function(){}); return new d instanceof d} if(typeof Reflect!="undefined"&&Reflect.construct){if(Z())return Reflect.construct;var I=Reflect.construct;return function(d,Y,T){d=I(d,Y);T&&Reflect.setPrototypeOf(d,T.prototype);return d}}return function(d,Y,T){T===void 0&&(T=d); T=IrB(T.prototype||Object.prototype);return Function.prototype.apply.call(d,T,Y)||T}}(),Nh$; if(typeof Object.setPrototypeOf=="function")Nh$=Object.setPrototypeOf;else{var FLt;a:{var sSV={a:!0},nCV={};try{nCV.__proto__=sSV;FLt=nCV.a;break a}catch(Z){}FLt=!1}Nh$=FLt?function(Z,I){Z.__proto__=I;if(Z.__proto__!==I)throw new TypeError(Z+" is not extensible");return Z}:null}var ad=Nh$,h5d=typeof Object.assign=="function"?Object.assign:function(Z,I){if(Z==null)throw new TypeError("No nullish arg"); Z=Object(Z);for(var d=1;d0&&d>0;)if(Y[--d]!=I[--T])return!1;return T<=0}}); KI("Array.prototype.find",function(Z){return Z?Z:function(I,d){return toO(this,I,d).uS}}); KI("Array.prototype.entries",function(Z){return Z?Z:function(){return cPB(this,function(I,d){return[I,d]})}}); KI("Array.prototype.keys",function(Z){return Z?Z:function(){return cPB(this,function(I){return I})}}); KI("String.prototype.startsWith",function(Z){return Z?Z:function(I,d){var Y=p8(this,I,"startsWith");I+="";var T=Y.length,f=I.length;d=Math.max(0,Math.min(d|0,Y.length));for(var P=0;P=f}}); KI("Number.isFinite",function(Z){return Z?Z:function(I){return typeof I!=="number"?!1:!isNaN(I)&&I!==Infinity&&I!==-Infinity}}); KI("String.prototype.repeat",function(Z){return Z?Z:function(I){var d=p8(this,null,"repeat");if(I<0||I>1342177279)throw new RangeError("Invalid count value");I|=0;for(var Y="";I;)if(I&1&&(Y+=d),I>>>=1)d+=d;return Y}}); KI("Object.entries",function(Z){return Z?Z:function(I){var d=[],Y;for(Y in I)km(I,Y)&&d.push([Y,I[Y]]);return d}}); KI("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); KI("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); KI("Array.from",function(Z){return Z?Z:function(I,d,Y){d=d!=null?d:function(O){return O}; var T=[],f=typeof Symbol!="undefined"&&Symbol.iterator&&I[Symbol.iterator];if(typeof f=="function"){I=f.call(I);for(var P=0;!(f=I.next()).done;)T.push(d.call(Y,f.value,P++))}else for(f=I.length,P=0;P>>0;if(I===0)return 32;var d=0;(I&4294901760)===0&&(I<<=16,d+=16);(I&4278190080)===0&&(I<<=8,d+=8);(I&4026531840)===0&&(I<<=4,d+=4);(I&3221225472)===0&&(I<<=2,d+=2);(I&2147483648)===0&&d++;return d}}); KI("Number.isNaN",function(Z){return Z?Z:function(I){return typeof I==="number"&&isNaN(I)}}); KI("Array.prototype.values",function(Z){return Z?Z:function(){return cPB(this,function(I,d){return d})}}); KI("Array.prototype.fill",function(Z){return Z?Z:function(I,d,Y){var T=this.length||0;d<0&&(d=Math.max(0,T+d));if(Y==null||Y>T)Y=T;Y=Number(Y);Y<0&&(Y=Math.max(0,T+Y));for(d=Number(d||0);d0&&d?d.repeat(Math.ceil(I/d.length)).substring(0,I):"")+Y}}); KI("Array.prototype.findIndex",function(Z){return Z?Z:function(I,d){return toO(this,I,d).YX}}); KI("Promise.prototype.finally",function(Z){return Z?Z:function(I){return this.then(function(d){return Promise.resolve(I()).then(function(){return d})},function(d){return Promise.resolve(I()).then(function(){throw d; })})}}); KI("Math.imul",function(Z){return Z?Z:function(I,d){I=Number(I);d=Number(d);var Y=I&65535,T=d&65535;return Y*T+((I>>>16&65535)*T+Y*(d>>>16&65535)<<16>>>0)|0}}); KI("Math.sign",function(Z){return Z?Z:function(I){I=Number(I);return I===0||isNaN(I)?I:I>0?1:-1}}); KI("WeakSet",function(Z){function I(d){this.L=new WeakMap;if(d){d=g.t(d);for(var Y;!(Y=d.next()).done;)this.add(Y.value)}} if(function(){if(!Z||!Object.seal)return!1;try{var d=Object.seal({}),Y=Object.seal({}),T=new Z([d]);if(!T.has(d)||T.has(Y))return!1;T.delete(d);T.add(Y);return!T.has(d)&&T.has(Y)}catch(f){return!1}}())return Z; I.prototype.add=function(d){this.L.set(d,!0);return this}; I.prototype.has=function(d){return this.L.has(d)}; I.prototype.delete=function(d){return this.L.delete(d)}; return I}); KI("Array.prototype.copyWithin",function(Z){function I(d){d=Number(d);return d===Infinity||d===-Infinity?d:d|0} return Z?Z:function(d,Y,T){var f=this.length;d=I(d);Y=I(Y);T=T===void 0?f:I(T);d=d<0?Math.max(f+d,0):Math.min(d,f);Y=Y<0?Math.max(f+Y,0):Math.min(Y,f);T=T<0?Math.max(f+T,0):Math.min(T,f);if(dY;)--T in this?this[--d]=this[T]:delete this[--d];return this}}); Cn("copyWithin",function(Z){return Z?Z:Array.prototype.copyWithin}); KI("Array.prototype.at",function(Z){return Z?Z:BDd}); Cn("at",function(Z){return Z?Z:BDd}); KI("String.prototype.at",function(Z){return Z?Z:BDd}); KI("Array.prototype.findLastIndex",function(Z){return Z?Z:function(I,d){return vC7(this,I,d).YX}}); Cn("findLastIndex",function(Z){return Z?Z:function(I,d){return vC7(this,I,d).YX}}); KI("Number.parseInt",function(Z){return Z||parseInt});var Dl,XOL,t$L;Dl=Dl||{};g.iN=this||self;XOL="closure_uid_"+(Math.random()*1E9>>>0);t$L=0;g.uN(bW,Error);bW.prototype.name="CustomError";var RQ$;var NHd,Wv,nF;NHd=Array.prototype.indexOf?function(Z,I){return Array.prototype.indexOf.call(Z,I,void 0)}:function(Z,I){if(typeof Z==="string")return typeof I!=="string"||I.length!=1?-1:Z.indexOf(I,0); for(var d=0;d=0;d--)if(d in Z&&Z[d]===I)return d;return-1}; g.KM=Array.prototype.forEach?function(Z,I,d){Array.prototype.forEach.call(Z,I,d)}:function(Z,I,d){for(var Y=Z.length,T=typeof Z==="string"?Z.split(""):Z,f=0;f=.3:this.qc>=.5};var lb={ltm:0,OA5:1},SWn={NONE:0,Nf5:1,q_S:2};var Epa="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");wD.prototype.getValue=function(){return this.D}; g.U(Vu,wD);Vu.prototype.Z=function(Z){this.D===null&&g.Sf(this.N,Z)&&(this.D=Z)}; g.U(mH,wD);mH.prototype.Z=function(Z){this.D===null&&typeof Z==="number"&&(this.D=Z)}; g.U(yD,wD);yD.prototype.Z=function(Z){this.D===null&&typeof Z==="string"&&(this.D=Z)};hm.prototype.disable=function(){this.D=!1}; hm.prototype.enable=function(){this.D=!0}; hm.prototype.isEnabled=function(){return this.D}; hm.prototype.reset=function(){this.L={};this.D=!0;this.Z={}};var YX=document,JB=window;var q5$=im(1,!0),iy=im(610401301,!1);im(899588437,!1);var S5W=im(772657768,!1),Ahd=im(513659523,!1),DN$=im(568333945,!0),Mhd=im(1331761403,!1);im(651175828,!1);im(722764542,!1);im(748402145,!1);im(748402146,!1);var jci=im(748402147,!0);im(333098724,!1);im(2147483644,!1);im(2147483645,!1);im(2147483646,q5$);im(2147483647,!0);var fL=!!g.gZ("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var yJ=String.prototype.trim?function(Z){return Z.trim()}:function(Z){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(Z)[1]},wS$=/&/g,VVn=//g,F_$=/"/g,sq$=/'/g,nkD=/\x00/g,BBl=/[\x00&<>"']/;var QD,Jhu=g.iN.navigator;QD=Jhu?Jhu.userAgentData||null:null;var SZJ=globalThis.trustedTypes,Iy;tg.prototype.toString=function(){return this.L+""};QZ.prototype.toString=function(){return this.L}; var Dvi=new QZ("about:invalid#zClosurez");var zMW=jz("tel"),u0i=jz("sms"),A97=[jz("data"),jz("http"),jz("https"),jz("mailto"),jz("ftp"),new hX(function(Z){return/^[^:]*([/?#]|$)/.test(Z)})],Z8r=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;Rt.prototype.toString=function(){return this.L+""};Hi.prototype.toString=function(){return this.L+""};qw.prototype.toString=function(){return this.L};var DH={};g.R5d=String.prototype.repeat?function(Z,I){return Z.repeat(I)}:function(Z,I){return Array(I+1).join(Z)};Ds[" "]=function(){};var p7,h4,DMD,LLW,UN0,yhg,AO,Wk,vCg;g.Cb=Z6();g.Fd=Ilu();g.sY=ET("Edge");g.EW=g.sY||g.Fd;p7=ET("Gecko")&&!(Oi(g.Vs(),"WebKit")&&!ET("Edge"))&&!(ET("Trident")||ET("MSIE"))&&!ET("Edge");g.Vd=Oi(g.Vs(),"WebKit")&&!ET("Edge");h4=rS();DMD=Uv9();g.pb=GSJ();LLW=SW();UN0=ET("iPad");yhg=ET("iPod");AO=yC();Wk=Oi(g.Vs(),"KaiOS"); a:{var lhu="",uHM=function(){var Z=g.Vs();if(p7)return/rv:([^\);]+)(\)|;)/.exec(Z);if(g.sY)return/Edge\/([\d\.]+)/.exec(Z);if(g.Fd)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(Z);if(g.Vd)return/WebKit\/(\S+)/.exec(Z);if(g.Cb)return/(?:Version)[ \/]?(\S+)/.exec(Z)}(); uHM&&(lhu=uHM?uHM[1]:"");if(g.Fd){var IX,Gh3=g.iN.document;IX=Gh3?Gh3.documentMode:void 0;if(IX!=null&&IX>parseFloat(lhu)){vCg=String(IX);break a}}vCg=lhu}var hsJ=vCg,VSn={};var kD,l7;g.Kb=d_();kD=SW()||ET("iPod");l7=ET("iPad");g.Zlg=dwl();g.h_=IJ();g.bT=oJ()&&!yC();var fwu=!g.Fd&&!oJ();g.n=g.vS.prototype;g.n.clone=function(){return new g.vS(this.x,this.y)}; g.n.equals=function(Z){return Z instanceof g.vS&&yG(this,Z)}; g.n.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.n.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.n.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.n.scale=function(Z,I){this.x*=Z;this.y*=typeof I==="number"?I:Z;return this};g.n=g.qv.prototype;g.n.clone=function(){return new g.qv(this.width,this.height)}; g.n.aspectRatio=function(){return this.width/this.height}; g.n.isEmpty=function(){return!Ih(this)}; g.n.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.n.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.n.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.n.scale=function(Z,I){this.width*=Z;this.height*=typeof I==="number"?I:Z;return this};gg.prototype.toString=function(){return this.L}; var M6={};new gg(M6,"");var x_d=/^[a-z][a-z\d-]*$/i,KMJ="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),E5$="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),TeB=["action","formaction","href"];var $MB={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};g.n=Go.prototype;g.n.gK=function(Z){return HI(this.L,Z)}; g.n.getElementsByTagName=function(Z,I){return(I||this.L).getElementsByTagName(String(Z))}; g.n.KS=function(Z){return g.hi(Z,this.L)}; g.n.setProperties=RB;g.n.createElement=function(Z){return JG(this.L,Z)}; g.n.appendChild=g.ta;g.n.append=function(Z,I){XlJ(JN(Z),Z,arguments,1)}; g.n.canHaveChildren=function(Z){if(Z.nodeType!=1)return!1;switch(Z.tagName){case "APPLET":case "AREA":case "BASE":case "BR":case "COL":case "COMMAND":case "EMBED":case "FRAME":case "HR":case "IMG":case "INPUT":case "IFRAME":case "ISINDEX":case "KEYGEN":case "LINK":case "NOFRAMES":case "NOSCRIPT":case "META":case "OBJECT":case "PARAM":case "SCRIPT":case "SOURCE":case "STYLE":case "TRACK":case "WBR":return!1}return!0}; g.n.removeNode=g.r2;g.n.getChildren=function(Z){return Z.children!=void 0?Z.children:Array.prototype.filter.call(Z.childNodes,function(I){return I.nodeType==1})}; g.n.contains=g.H7;g.n.isFocusable=MS;V2.prototype.now=function(){return 0}; V2.prototype.D=function(){return 0}; V2.prototype.Z=function(){return 0}; V2.prototype.L=function(){return 0};g.U(YW,V2);YW.prototype.now=function(){return ov()&&JB.performance.now?JB.performance.now():V2.prototype.now.call(this)}; YW.prototype.D=function(){return ov()&&JB.performance.memory?JB.performance.memory.totalJSHeapSize||0:V2.prototype.D.call(this)}; YW.prototype.Z=function(){return ov()&&JB.performance.memory?JB.performance.memory.usedJSHeapSize||0:V2.prototype.Z.call(this)}; YW.prototype.L=function(){return ov()&&JB.performance.memory?JB.performance.memory.jsHeapSizeLimit||0:V2.prototype.L.call(this)};var zS9=function(){if(!g.iN.addEventListener||!Object.defineProperty)return!1;var Z=!1,I=Object.defineProperty({},"passive",{get:function(){Z=!0}}); try{var d=function(){}; g.iN.addEventListener("test",d,I);g.iN.removeEventListener("test",d,I)}catch(Y){}return Z}();var lgB=V$u("AnimationEnd"),ser=V$u("TransitionEnd");g.n=Ui.prototype;g.n.getHeight=function(){return this.bottom-this.top}; g.n.clone=function(){return new Ui(this.top,this.right,this.bottom,this.left)}; g.n.contains=function(Z){return this&&Z?Z instanceof Ui?Z.left>=this.left&&Z.right<=this.right&&Z.top>=this.top&&Z.bottom<=this.bottom:Z.x>=this.left&&Z.x<=this.right&&Z.y>=this.top&&Z.y<=this.bottom:!1}; g.n.ceil=function(){this.top=Math.ceil(this.top);this.right=Math.ceil(this.right);this.bottom=Math.ceil(this.bottom);this.left=Math.ceil(this.left);return this}; g.n.floor=function(){this.top=Math.floor(this.top);this.right=Math.floor(this.right);this.bottom=Math.floor(this.bottom);this.left=Math.floor(this.left);return this}; g.n.round=function(){this.top=Math.round(this.top);this.right=Math.round(this.right);this.bottom=Math.round(this.bottom);this.left=Math.round(this.left);return this}; g.n.scale=function(Z,I){I=typeof I==="number"?I:Z;this.left*=Z;this.right*=Z;this.top*=I;this.bottom*=I;return this};g.n=g.Ey.prototype;g.n.clone=function(){return new g.Ey(this.left,this.top,this.width,this.height)}; g.n.contains=function(Z){return Z instanceof g.vS?Z.x>=this.left&&Z.x<=this.left+this.width&&Z.y>=this.top&&Z.y<=this.top+this.height:this.left<=Z.left&&this.left+this.width>=Z.left+Z.width&&this.top<=Z.top&&this.top+this.height>=Z.top+Z.height}; g.n.getSize=function(){return new g.qv(this.width,this.height)}; g.n.ceil=function(){this.left=Math.ceil(this.left);this.top=Math.ceil(this.top);this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.n.floor=function(){this.left=Math.floor(this.left);this.top=Math.floor(this.top);this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.n.round=function(){this.left=Math.round(this.left);this.top=Math.round(this.top);this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.n.scale=function(Z,I){I=typeof I==="number"?I:Z;this.left*=Z;this.width*=Z;this.top*=I;this.height*=I;return this};var YZr={};var Aw$=Zz(function(){var Z=!1;try{var I=Object.defineProperty({},"passive",{get:function(){Z=!0}}); g.iN.addEventListener("test",null,I)}catch(d){}return Z});Eha.prototype.isVisible=function(){return ry(YX)===1};var nW9=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Pc.prototype.VI=function(Z,I,d){Z=Z+"//"+I+d;var Y=Vt3(this)-d.length;if(Y<0)return"";this.L.sort(function(W,e){return W-e}); d=null;I="";for(var T=0;T=a.length){Y-=a.length;Z+=a;I=this.Z;break}d=d==null?f:d}}Y="";d!=null&&(Y=""+I+"trn="+d);return Z+Y};var YDO=F9(function(Z){return typeof Z==="number"}),Zw=F9(function(Z){return typeof Z==="string"}),jfJ=F9(function(Z){return typeof Z==="boolean"}),jX=F9(function(Z){return Z!=null&&typeof Z==="object"&&typeof Z.then==="function"}),z5W=F9(function(Z){return!!Z&&(typeof Z==="object"||typeof Z==="function")});var OKl={mAJ:"allow-forms",QB4:"allow-modals",YI1:"allow-orientation-lock",jB5:"allow-pointer-lock",O65:"allow-popups",Tbs:"allow-popups-to-escape-sandbox",VoJ:"allow-presentation",uwr:"allow-same-origin",aM7:"allow-scripts",wJ5:"allow-top-navigation",W01:"allow-top-navigation-by-user-activation"},VxB=Zz(function(){return aH$()});GZ.prototype.setInterval=function(Z,I){return JB.setInterval(Z,I)}; GZ.prototype.clearInterval=function(Z){JB.clearInterval(Z)}; GZ.prototype.setTimeout=function(Z,I){return JB.setTimeout(Z,I)}; GZ.prototype.clearTimeout=function(Z){JB.clearTimeout(Z)};var FO=void 0,Nj,o1u=typeof TextDecoder!=="undefined",C9L,KSr=typeof String.prototype.isWellFormed==="function",xKr=typeof TextEncoder!=="undefined";var puu={},KE=null,UNn=p7||g.Vd||typeof g.iN.btoa=="function";var E6i=typeof Uint8Array!=="undefined",JuL=!g.Fd&&typeof btoa==="function",Bud=/[-_.]/g,qqO={"-":"+",_:"/",".":"="},QQ={};XE.prototype.isEmpty=function(){return this.L==null}; XE.prototype.sizeBytes=function(){var Z=Wc(this);return Z?Z.length:0}; var BFl;var ttJ=void 0;var ow=typeof Symbol==="function"&&typeof Symbol()==="symbol",khg=Uw("jas",void 0,!0),Wd=Uw(void 0,"1oa"),pY=Uw(void 0,Symbol()),XlV=Uw(void 0,"0ub"),G47=Uw(void 0,"0ubs"),Ca$=Uw(void 0,"0ubsb"),Tjd=Uw(void 0,"0actk"),P3=Uw("m_m","f6m",!0),t5E=Uw(void 0,"vps"),txd=Uw();Math.max.apply(Math,g.c(Object.values({Fj5:1,qFs:2,Wjj:4,uY5:8,lo5:16,S9m:32,XBZ:64,Cw7:128,abJ:256,K6m:512,WFJ:1024,c$S:2048,zLj:4096,rhr:8192})));var SEJ={hO:{value:0,configurable:!0,writable:!0,enumerable:!1}},qEL=Object.defineProperties,nL=ow?khg:"hO",Ks,$Nd=[];Ht($Nd,7);Ks=Object.freeze($Nd);var Qn={},Pt={},dNn=Object.freeze({}),xb={},vg={};var Ie=typeof g.iN.BigInt==="function"&&typeof g.iN.BigInt(0)==="bigint";var T1=F9(function(Z){return Ie?Z>=pl3&&Z<=xNi:Z[0]==="-"?$Ei(Z,KLE):$Ei(Z,CjW)}),KLE=Number.MIN_SAFE_INTEGER.toString(),pl3=Ie?BigInt(Number.MIN_SAFE_INTEGER):void 0,CjW=Number.MAX_SAFE_INTEGER.toString(),xNi=Ie?BigInt(Number.MAX_SAFE_INTEGER):void 0;var tP$=typeof Uint8Array.prototype.slice==="function",FS=0,n7=0,NJi;var oM=typeof BigInt==="function"?BigInt.asIntN:void 0,H8D=typeof BigInt==="function"?BigInt.asUintN:void 0,Yr=Number.isSafeInteger,Ye=Number.isFinite,oU=Math.trunc,DT9=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var $iL={};var ECp={Nun:!0};var j5;var Uan,yE9;var Kli=jd(0),N9={};rQ.prototype.init=function(Z,I,d,Y){var T=Y===void 0?{}:Y;Y=T.DT===void 0?!1:T.DT;T=T.nI===void 0?!1:T.nI;this.DT=Y;this.nI=T;Z&&(Z=e3(Z,this.nI),this.D=Z.buffer,this.B=Z.L,this.N=I||0,this.Z=d!==void 0?this.N+d:this.D.length,this.L=this.N)}; rQ.prototype.free=function(){this.clear();Mx.length<100&&Mx.push(this)}; rQ.prototype.clear=function(){this.D=null;this.B=!1;this.L=this.Z=this.N=0;this.DT=!1}; rQ.prototype.reset=function(){this.L=this.N}; var Mx=[];ZX.prototype.free=function(){this.L.clear();this.D=this.Z=-1;y0.length<100&&y0.push(this)}; ZX.prototype.reset=function(){this.L.reset();this.N=this.L.L;this.D=this.Z=-1}; var y0=[];var Wba,cn9;gm.prototype.length=function(){return this.L.length}; gm.prototype.end=function(){var Z=this.L;this.L=[];return Z};var SG=xm(),bUt=xm(),HUg=xm(),chg=xm(),gCg=xm(),Mxg=xm(),rhM=xm(),ZYv=xm(),IeV=xm(),dv3=xm(),oK3=xm();p$.prototype.toJSON=function(){return FJ(this)}; p$.prototype.It=function(Z){return JSON.stringify(FJ(this,Z))}; p$.prototype.clone=function(){var Z=this.Gm,I=Z[nL]|0;return ct(this,Z,I)?gx(this,Z,!0):new this.constructor(f3(Z,I,!1))}; p$.prototype[P3]=Qn;p$.prototype.toString=function(){return this.Gm.toString()};var S7u=$1d(function(Z,I,d,Y,T){if(Z.D!==2)return!1;eI(Z,xuE(I,Y,d),T);return!0},Spu),aR7=$1d(function(Z,I,d,Y,T){if(Z.D!==2)return!1; eI(Z,xuE(I,Y,d),T);return!0},Spu),KA=Symbol(),Qs=Symbol(),Xk=Symbol(),s$9=Symbol(),a$E=Symbol(),t9,R6;var YjE=Gc(function(Z,I,d){if(Z.D!==1)return!1;PJ(I,d,yfl(Z.L));return!0},PN,IeV),jM0=Gc(function(Z,I,d){if(Z.D!==1)return!1; Z=yfl(Z.L);PJ(I,d,Z===0?void 0:Z);return!0},PN,IeV),Tmu=Gc(function(Z,I,d,Y){if(Z.D!==1)return!1; m$(I,d,Y,yfl(Z.L));return!0},PN,IeV),iYE=Gc(function(Z,I,d){if(Z.D!==0)return!1; PJ(I,d,uk(Z.L));return!0},Xd,rhM),feL=Gc(function(Z,I,d){if(Z.D!==0)return!1; Z=uk(Z.L);PJ(I,d,Z===0?void 0:Z);return!0},Xd,rhM),P5p=Gc(function(Z,I,d,Y){if(Z.D!==0)return!1; m$(I,d,Y,uk(Z.L));return!0},Xd,rhM),QMt=Gc(function(Z,I,d){if(Z.D!==0)return!1; PJ(I,d,V8(Z.L));return!0},Cq,chg),OYd=Gc(function(Z,I,d){if(Z.D!==0)return!1; Z=V8(Z.L);PJ(I,d,Z===0?void 0:Z);return!0},Cq,chg),ae0=Gc(function(Z,I,d,Y){if(Z.D!==0)return!1; m$(I,d,Y,V8(Z.L));return!0},Cq,chg),W5$=Gc(function(Z,I,d){if(Z.D!==1)return!1; PJ(I,d,lE(Z.L));return!0},function(Z,I,d){Aa9(Z,d,cUB(I))},ZYv),exp=yb(function(Z,I,d){if(Z.D!==1&&Z.D!==2)return!1; I=mR(I,I[nL]|0,d);if(Z.D==2)for(d=V8(Z.L)>>>0,d=Z.L.L+d;Z.L.L>>0);return!0},function(Z,I,d){I=Vb(I); I!=null&&I!=null&&(Kq(Z,d,0),HX(Z.L,I))},gCg),iu=Gc(function(Z,I,d){if(Z.D!==0)return!1; PJ(I,d,V8(Z.L));return!0},function(Z,I,d){I=xU(I); I!=null&&(I=parseInt(I,10),Kq(Z,d,0),BLO(Z.L,I))},oK3);var dra=new Map;g.U(o8L,Af7);$Nu.prototype.register=function(){Ds(this)};g.U(nw,p$);nw.prototype.Z=Tgi([0,jM0,feL,-2,OYd]);RwE.prototype.K_=function(Z){var I=this.L[Z.key];if(Z.valueType==="proto"){try{var d=JSON.parse(I);if(Array.isArray(d))return d}catch(Y){}return Z.defaultValue}return typeof I===typeof Z.defaultValue?I:Z.defaultValue};var A8$={GLS:1,Oz:2,NPS:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};Bn9.prototype.ZH=function(Z){if(typeof Z==="string"&&Z.length!=0){var I=this.zv;if(I.D){Z=Z.split("&");for(var d=Z.length-1;d>=0;d--){var Y=Z[d].split("="),T=decodeURIComponent(Y[0]);Y.length>1?(Y=decodeURIComponent(Y[1]),Y=/^[0-9]+$/g.exec(Y)?parseInt(Y,10):Y):Y=1;(T=I.L[T])&&T.Z(Y)}}}};var fy=null;var Wg=g.iN.performance,hxV=!!(Wg&&Wg.mark&&Wg.measure&&Wg.clearMarks),es=Zz(function(){var Z;if(Z=hxV){var I=I===void 0?window:I;if(fy===null){fy="";try{Z="";try{Z=I.top.location.hash}catch(Y){Z=I.location.hash}if(Z){var d=Z.match(/\bdeid=([\d,]+)/);fy=d?d[1]:""}}catch(Y){}}I=fy;Z=!!I.indexOf&&I.indexOf("1337")>=0}return Z}); jS.prototype.disable=function(){this.L=!1;this.events!==this.D.google_js_reporting_queue&&(es()&&g.KM(this.events,LL9),this.events.length=0)}; jS.prototype.start=function(Z,I){if(!this.L)return null;var d=lPd()||u_l();Z=new Hpi(Z,I,d);I="goog_"+Z.label+"_"+Z.uniqueId+"_start";Wg&&es()&&Wg.mark(I);return Z}; jS.prototype.end=function(Z){if(this.L&&typeof Z.value==="number"){var I=lPd()||u_l();Z.duration=I-Z.value;I="goog_"+Z.label+"_"+Z.uniqueId+"_end";Wg&&es()&&Wg.mark(I);!this.L||this.events.length>2048||this.events.push(Z)}};var KgL=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),QA=/#|$/,NIu=/[?&]($|#)/;oPu.prototype.lH=function(Z,I,d,Y,T){T=T||this.d_;try{var f=new Pc;f.L.push(1);f.D[1]=mS("context",Z);I.error&&I.meta&&I.id||(I=new XY(tl(I)));if(I.msg){var P=I.msg.substring(0,512);f.L.push(2);f.D[2]=mS("msg",P)}var O=I.meta||{};if(this.CV)try{this.CV(O)}catch(V){}if(Y)try{Y(O)}catch(V){}Y=[O];f.L.push(3);f.D[3]=Y;var a=m3J();if(a.D){var W=a.D.url||"";f.L.push(4);f.D[4]=mS("top",W)}var e={url:a.L.url||""};if(a.L.url){var B=g.gB(a.L.url);var w=Md(B[1],null,B[3],B[4])}else w="";W=[e,{url:w}];f.L.push(5); f.D[5]=W;xai(this.L,T,f,d)}catch(V){try{xai(this.L,T,{context:"ecmserr",rctx:Z,msg:tl(V),url:a&&a.L.url},d)}catch(N){}}return this.KO}; g.U(XY,B$L);var vM,ya,TV=new jS;vM=new function(){var Z="https:";JB&&JB.location&&JB.location.protocol==="http:"&&(Z="http:");this.D=Z;this.L=.01}; ya=new oPu;JB&&JB.document&&(JB.document.readyState=="complete"?YOL():TV.L&&KL(JB,"load",function(){YOL()}));var PC9=Date.now(),n3=-1,Gm=-1,Ici,a2=-1,sT=!1;KR.prototype.equals=function(Z,I){return!!Z&&(!(I===void 0?0:I)||this.volume==Z.volume)&&this.Z==Z.Z&&RL(this.L,Z.L)&&!0};Hn.prototype.gK=function(){return this.V}; Hn.prototype.equals=function(Z,I){return this.N.equals(Z.N,I===void 0?!1:I)&&this.V==Z.V&&RL(this.Z,Z.Z)&&RL(this.j,Z.j)&&this.L==Z.L&&this.B==Z.B&&this.D==Z.D&&this.X==Z.X};var mvd={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},r5={SC:"start",Ct:"firstquartile",UE:"midpoint",zj:"thirdquartile",COMPLETE:"complete",ERROR:"error",hF:"metric",PAUSE:"pause",xs:"resume",Bx:"skip",jC:"viewable_impression",LL:"mute",QN:"unmute",c5:"fullscreen",JA:"exitfullscreen",oT:"bufferstart",Fo:"bufferfinish",P5:"fully_viewable_audible_half_duration_impression",vR:"measurable_impression",QB:"abandon",dM:"engagedview",e6:"impression",l_:"creativeview",LOADED:"loaded", Ai4:"progress",CLOSE:"close",qMr:"collapse",oxm:"overlay_resize",XTS:"overlay_unmeasurable_impression",rim:"overlay_unviewable_impression",lyS:"overlay_viewable_immediate_impression",Hp5:"overlay_viewable_end_of_session_impression",s0:"custom_metric_viewable",TA:"audio_audible",u_:"audio_measurable",VB:"audio_impression"},LW9="start firstquartile midpoint thirdquartile resume loaded".split(" "),UZd=["start","firstquartile","midpoint","thirdquartile"],Xh7=["abandon"],arp={UNKNOWN:-1,SC:0,Ct:1,UE:2, zj:3,COMPLETE:4,hF:5,PAUSE:6,xs:7,Bx:8,jC:9,LL:10,QN:11,c5:12,JA:13,P5:14,vR:15,QB:16,dM:17,e6:18,l_:19,LOADED:20,s0:21,oT:22,Fo:23,VB:27,u_:28,TA:29};var jdp={Nbm:"addEventListener",omr:"getMaxSize",X3J:"getScreenSize",r$5:"getState",HAS:"getVersion",V35:"removeEventListener",okS:"isViewable"};GLl.prototype.update=function(Z){Z&&Z.document&&(this.V=eD(!1,Z,this.isMobileDevice),this.L=eD(!0,Z,this.isMobileDevice),nnr(this,Z),U$$(this,Z))};wmD.prototype.cancel=function(){Ot().clearTimeout(this.L);this.L=null}; wmD.prototype.schedule=function(){var Z=this,I=Ot(),d=GU().L.L;this.L=I.setTimeout(HD(d,aw(143,function(){Z.D++;Z.Z.sample()})),wUa())};g.n=WF.prototype;g.n.pE=function(){return!1}; g.n.initialize=function(){return this.isInitialized=!0}; g.n.IJ=function(){return this.L.fS}; g.n.h2=function(){return this.L.LS}; g.n.fail=function(Z,I){if(!this.LS||(I===void 0?0:I))this.LS=!0,this.fS=Z,this.X=0,this.L!=this||zQ(this)}; g.n.getName=function(){return this.L.Tm}; g.n.dF=function(){return this.L.zi()}; g.n.zi=function(){return{}}; g.n.P0=function(){return this.L.X}; g.n.Sx=function(){var Z=zU();Z.L=eD(!0,this.Z,Z.isMobileDevice)}; g.n.zn=function(){U$$(zU(),this.Z)}; g.n.r0=function(){return this.N.L}; g.n.sample=function(){}; g.n.isActive=function(){return this.L.j}; g.n.BN=function(Z){var I=this.L;this.L=Z.P0()>=this.X?Z:this;I!==this.L?(this.j=this.L.j,zQ(this)):this.j!==this.L.j&&(this.j=this.L.j,zQ(this))}; g.n.U4=function(Z){if(Z.D===this.L){var I=!this.N.equals(Z,this.In);this.N=Z;I&&tTJ(this)}}; g.n.GN=function(){return this.In}; g.n.dispose=function(){this.Bj=!0}; g.n.OZ=function(){return this.Bj};g.n=ZF.prototype;g.n.observe=function(){return!0}; g.n.unobserve=function(){}; g.n.QD=function(Z){this.B=Z}; g.n.dispose=function(){if(!this.OZ()){var Z=this.D;g.s4(Z.B,this);Z.In&&this.GN()&&mJB(Z);this.unobserve();this.Ns=!0}}; g.n.OZ=function(){return this.Ns}; g.n.dF=function(){return this.D.dF()}; g.n.P0=function(){return this.D.P0()}; g.n.IJ=function(){return this.D.IJ()}; g.n.h2=function(){return this.D.h2()}; g.n.BN=function(){}; g.n.U4=function(){this.jc()}; g.n.GN=function(){return this.Bj};g.n=aj.prototype;g.n.P0=function(){return this.L.P0()}; g.n.IJ=function(){return this.L.IJ()}; g.n.h2=function(){return this.L.h2()}; g.n.create=function(Z,I,d){var Y=null;this.L&&(Y=this.Vd(Z,I,d),Y0(this.L,Y));return Y}; g.n.mw=function(){return this.A1()}; g.n.A1=function(){return!1}; g.n.init=function(Z){return this.L.initialize()?(Y0(this.L,this),this.N=Z,!0):!1}; g.n.BN=function(Z){Z.P0()==0&&this.N(Z.IJ(),this)}; g.n.U4=function(){}; g.n.GN=function(){return!1}; g.n.dispose=function(){this.B=!0}; g.n.OZ=function(){return this.B}; g.n.dF=function(){return{}};p2.prototype.add=function(Z,I,d){++this.Z;Z=new ZzE(Z,I,d);this.L.push(new ZzE(Z.D,Z.L,Z.Z+this.Z/4096));this.D=!0;return this};hWB.prototype.toString=function(){var Z="//pagead2.googlesyndication.com//pagead/gen_204",I=Hu(this.L);I.length>0&&(Z+="?"+I);return Z};g.p.prototype.I6=!1;g.p.prototype.OZ=function(){return this.I6}; g.p.prototype.dispose=function(){this.I6||(this.I6=!0,this.g4())}; g.p.prototype[Symbol.dispose]=function(){this.dispose()}; g.p.prototype.addOnDisposeCallback=function(Z,I){this.I6?I!==void 0?Z.call(I):Z():(this.WS||(this.WS=[]),I&&(Z=Z.bind(I)),this.WS.push(Z))}; g.p.prototype.g4=function(){if(this.WS)for(;this.WS.length;)this.WS.shift()()};var qj0=[0,iYE,Bmd,-1];LL.prototype.update=function(Z,I,d){Z&&(this.L+=I,this.D+=I,this.N+=I,this.Z=Math.max(this.Z,this.N));if(d===void 0?!Z:d)this.N=0};var Hzi=[1,.75,.5,.3,0];Ew.prototype.update=function(Z,I,d,Y,T,f){f=f===void 0?!0:f;I=T?Math.min(Z,I):I;for(T=0;T0&&I>=P;P=!(Z>0&&Z>=P)||d;this.L[T].update(f&&O,Y,!f||P)}};nO.prototype.update=function(Z,I,d,Y){this.V=this.V!=-1?Math.min(this.V,I.qc):I.qc;this.kS=Math.max(this.kS,I.qc);this.Ns=this.Ns!=-1?Math.min(this.Ns,I.pA):I.pA;this.fS=Math.max(this.fS,I.pA);this.y5.update(I.pA,d.pA,I.L,Z,Y);this.mJ+=Z;I.qc===0&&(this.Tm+=Z);this.D.update(I.qc,d.qc,I.L,Z,Y);d=Y||d.Mh!=I.Mh?d.isVisible()&&I.isVisible():d.isVisible();I=!I.isVisible()||I.L;this.sZ.update(d,Z,I)}; nO.prototype.Lr=function(){return this.sZ.Z>=this.d4};if(YX&&YX.URL){var Sjt=YX.URL,A9g;a:{if(Sjt){var Dvg=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var PB=Dvg.exec(decodeURIComponent(Sjt));if(PB){A9g=PB[1]&&PB[1].length>1?PB[1].substring(1):"true";break a}}catch(Z){}}A9g=""}ya.KO=!(A9g.length>0)};var J9L=new Ui(0,0,0,0);var p4i=new Ui(0,0,0,0);g.U(C7,g.p);g.n=C7.prototype; g.n.g4=function(){if(this.QJ.L){if(this.uI.bH){var Z=this.QJ.L;typeof Z.removeEventListener==="function"&&Z.removeEventListener("mouseover",this.uI.bH,L6a());this.uI.bH=null}this.uI.yY&&(Z=this.QJ.L,typeof Z.removeEventListener==="function"&&Z.removeEventListener("mouseout",this.uI.yY,L6a()),this.uI.yY=null)}this.rQ&&this.rQ.dispose();this.oN&&this.oN.dispose();delete this.Jc;delete this.El;delete this.bJ;delete this.QJ.YJ;delete this.QJ.L;delete this.uI;delete this.rQ;delete this.oN;delete this.zv; g.p.prototype.g4.call(this)}; g.n.Jf=function(){return this.oN?this.oN.L:this.position}; g.n.ZH=function(Z){GU().ZH(Z)}; g.n.GN=function(){return!1}; g.n.rX=function(){return new nO}; g.n.ly=function(){return this.Jc}; g.n.jy=function(Z){return FL$(this,Z,1E4)}; g.n.qs=function(Z,I,d,Y,T,f,P){this.gD||(this.KQ&&(Z=this.hR(Z,d,T,P),Y=Y&&this.Y$.qc>=(this.Mh()?.3:.5),this.cw(f,Z,Y),this.TN=I,Z.qc>0&&-1===this.Qw&&(this.Qw=I),this.uJ==-1&&this.Lr()&&(this.uJ=I),this.ql==-2&&(this.ql=EE(this.Jf())?Z.qc:-1),this.Y$=Z),this.El(this))}; g.n.cw=function(Z,I,d){this.ly().update(Z,I,this.Y$,d)}; g.n.vX=function(){return new pc}; g.n.hR=function(Z,I,d,Y){d=this.vX();d.L=I;I=Ot().D;I=ry(YX)===0?-1:I.isVisible()?0:1;d.D=I;d.qc=this.u6(Z);d.Mh=this.Mh();d.pA=Y;return d}; g.n.u6=function(Z){return this.opacity===0&&Hg(this.zv,"opac")===1?0:Z}; g.n.Mh=function(){return!1}; g.n.bd=function(){return this.ZSm||this.N4m}; g.n.Ep=function(){vG()}; g.n.L$=function(){vG()}; g.n.Nm=function(){return 0}; g.n.Lr=function(){return this.Jc.Lr()}; g.n.EB=function(){var Z=this.KQ;Z=(this.hasCompleted||this.OZ())&&!Z;var I=GU().D!==2||this.zcr;return this.gD||I&&Z?2:this.Lr()?4:3}; g.n.zS=function(){return 0};g.Ym.prototype.next=function(){return g.QI}; g.QI={done:!0,value:void 0};g.Ym.prototype.kx=function(){return this};g.U(qZl,pc);var O$=qBi([void 0,1,2,3,4,8,16]),aX=qBi([void 0,4,8,16]),Rxd={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:Rx("p0",aX),p1:Rx("p1",aX),p2:Rx("p2",aX),p3:Rx("p3",aX),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:Ka("mtos1",[0,2,4],!1,aX),mtos2:Ka("mtos2",[0,2,4],!1,aX),mtos3:Ka("mtos3",[0,2,4],!1,aX),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:Rx("a0",aX),a1:Rx("a1",aX),a2:Rx("a2",aX),a3:Rx("a3",aX),ft:"ft",dft:"dft",at:"at",dat:"dat",as:"as", vpt:"vpt",gmm:"gmm",std:"std",efpf:"efpf",swf:"swf",nio:"nio",px:"px",nnut:"nnut",vmer:"vmer",vmmk:"vmmk",vmiec:"vmiec",nmt:"nmt",tcm:"tcm",bt:"bt",pst:"pst",vpaid:"vpaid",dur:"dur",vmtime:"vmtime",dtos:"dtos",dtoss:"dtoss",dvs:"dvs",dfvs:"dfvs",dvpt:"dvpt",fmf:"fmf",vds:"vds",is:"is",i0:"i0",i1:"i1",i2:"i2",i3:"i3",ic:"ic",cs:"cs",c:"c",c0:Rx("c0",aX),c1:Rx("c1",aX),c2:Rx("c2",aX),c3:Rx("c3",aX),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:Rx("qmtos",O$),qnc:Rx("qnc",O$),qmv:Rx("qmv",O$),qnv:Rx("qnv",O$), raf:"raf",rafc:"rafc",lte:"lte",ces:"ces",tth:"tth",femt:"femt",femvt:"femvt",emc:"emc",emuc:"emuc",emb:"emb",avms:"avms",nvat:"nvat",qi:"qi",psm:"psm",psv:"psv",psfv:"psfv",psa:"psa",pnk:"pnk",pnc:"pnc",pnmm:"pnmm",pns:"pns",ptlt:"ptlt",pngs:"pings",veid:"veid",ssb:"ssb",ss0:Rx("ss0",aX),ss1:Rx("ss1",aX),ss2:Rx("ss2",aX),ss3:Rx("ss3",aX),dc_rfl:"urlsigs",obd:"obd",omidp:"omidp",omidr:"omidr",omidv:"omidv",omida:"omida",omids:"omids",omidpv:"omidpv",omidam:"omidam",omidct:"omidct",omidia:"omidia", omiddc:"omiddc",omidlat:"omidlat",omiddit:"omiddit",nopd:"nopd",co:"co",tm:"tm",tu:"tu"},L5g=Object.assign({},Rxd,{avid:m_("audio"),avas:"avas",vs:"vs"}),UvW={atos:"atos",avt:Ka("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(Z,I){return function(d){return d[Z]===void 0&&I!==void 0?I:d[Z]}}("ss",0), t:"t"};Il.prototype.getValue=function(){return this.D}; Il.prototype.update=function(Z,I){Z>=32||(this.L&1<=.5;AD(I.volume)&&(this.N=this.N!=-1?Math.min(this.N,I.volume):I.volume,this.j=Math.max(this.j,I.volume));f&&(this.Bj+=Z,this.In+=T?Z:0);this.L.update(I.qc,d.qc,I.L,Z,Y,T);this.Z.update(!0,Z);this.B.update(T,Z);this.LS.update(d.fullscreen,Z);this.b5.update(T&&!f,Z);Z=Math.floor(I.mediaTime/1E3);this.j7.update(Z,I.isVisible());this.J5.update(Z,I.qc>=1);this.on.update(Z, $R(I))}};dn7.prototype.D=function(Z){this.Z||(this.L(Z)?(Z=Gw$(this.In,this.N,Z),this.B|=Z,Z=Z==0):Z=!1,this.Z=Z)};g.U(EB,dn7);EB.prototype.L=function(){return!0}; EB.prototype.j=function(){return!1}; EB.prototype.getId=function(){var Z=this,I=MR(r5,function(d){return d==Z.N}); return arp[I].toString()}; EB.prototype.toString=function(){var Z="";this.j()&&(Z+="c");this.Z&&(Z+="s");this.B>0&&(Z+=":"+this.B);return this.getId()+Z};g.U(ZU,EB);ZU.prototype.D=function(Z,I){I=I===void 0?null:I;I!=null&&this.V.push(I);EB.prototype.D.call(this,Z)};g.U(K7,BYE);K7.prototype.D=function(){return null}; K7.prototype.Z=function(){return[]};g.U(Im,ZF);g.n=Im.prototype;g.n.Ly=function(){if(this.element){var Z=this.element,I=this.D.L.Z;try{try{var d=Kcn(Z.getBoundingClientRect())}catch(W){d=new Ui(0,0,0,0)}var Y=d.right-d.left,T=d.bottom-d.top,f=p6a(Z,I),P=f.x,O=f.y;var a=new Ui(Math.round(O),Math.round(P+Y),Math.round(O+T),Math.round(P))}catch(W){a=J9L.clone()}this.Z=a;this.L=xf7(this,this.Z)}}; g.n.cM=function(){this.j=this.D.N.L}; g.n.w6=function(Z){var I=Hg(this.zv,"od")==1;return klB(Z,this.j,this.element,I)}; g.n.PM=function(){this.timestamp=vG()}; g.n.jc=function(){this.PM();this.Ly();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var Z=this.element;var I=new g.qv(Z.videoWidth,Z.videoHeight);Z=this.L;var d=Zu(Z),Y=Z.getHeight(),T=I.width;I=I.height;T<=0||I<=0||d<=0||Y<=0||(T/=I,I=d/Y,Z=Z.clone(),T>I?(d/=T,Y=(Y-d)/2,Y>0&&(Y=Z.top+Y,Z.top=Math.round(Y),Z.bottom=Math.round(Y+d))):(Y*=T,d=Math.round((d-Y)/2),d>0&&(d=Z.left+d,Z.left=Math.round(d),Z.right=Math.round(d+Y))));this.L=Z}this.cM(); Z=this.L;d=this.j;Z=Z.left<=d.right&&d.left<=Z.right&&Z.top<=d.bottom&&d.top<=Z.bottom?new Ui(Math.max(Z.top,d.top),Math.min(Z.right,d.right),Math.min(Z.bottom,d.bottom),Math.max(Z.left,d.left)):new Ui(0,0,0,0);d=Z.top>=Z.bottom||Z.left>=Z.right?new Ui(0,0,0,0):Z;Z=this.D.N;I=T=Y=0;if((this.L.bottom-this.L.top)*(this.L.right-this.L.left)>0)if(this.w6(d))d=new Ui(0,0,0,0);else{Y=zU().N;I=new Ui(0,Y.height,Y.width,0);var f;Y=bI(d,(f=this.B)!=null?f:this.L);T=bI(d,zU().L);I=bI(d,I)}f=d.top>=d.bottom|| d.left>=d.right?new Ui(0,0,0,0):S3(d,-this.L.left,-this.L.top);La()||(T=Y=0);this.In=new Hn(Z,this.element,this.L,f,Y,T,this.timestamp,I)}; g.n.getName=function(){return this.D.getName()};var y9i=new Ui(0,0,0,0);g.U(aK,Im);g.n=aK.prototype;g.n.observe=function(){this.N();return!0}; g.n.U4=function(){Im.prototype.jc.call(this)}; g.n.PM=function(){}; g.n.Ly=function(){}; g.n.jc=function(){this.N();Im.prototype.jc.call(this)}; g.n.BN=function(Z){Z=Z.isActive();Z!==this.X&&(Z?this.N():(zU().L=new Ui(0,0,0,0),this.L=new Ui(0,0,0,0),this.j=new Ui(0,0,0,0),this.timestamp=-1));this.X=Z};var WB={},QlJ=(WB.firstquartile=0,WB.midpoint=1,WB.thirdquartile=2,WB.complete=3,WB);g.U(HF,C7);g.n=HF.prototype;g.n.GN=function(){return!0}; g.n.y8=function(){return this.H3==2}; g.n.jy=function(Z){return FL$(this,Z,Math.max(1E4,this.Z/3))}; g.n.qs=function(Z,I,d,Y,T,f,P){var O=this,a=this.V(this)||{};g.rt(a,T);this.Z=a.duration||this.Z;this.In=a.isVpaid||this.In;this.Tm=a.isYouTube||this.Tm;Ot();this.y5=!1;T=n4l(this,I);M5E(this)===1&&(f=T);C7.prototype.qs.call(this,Z,I,d,Y,a,f,P);this.ZW&&this.ZW.Z&&g.KM(this.j,function(W){W.D(O)})}; g.n.cw=function(Z,I,d){C7.prototype.cw.call(this,Z,I,d);L7(this).update(Z,I,this.Y$,d);this.d4=$R(this.Y$)&&$R(I);this.fS==-1&&this.J5&&(this.fS=this.ly().Z.L);this.Jt.Z=0;Z=this.Lr();I.isVisible()&&aE(this.Jt,"vs");Z&&aE(this.Jt,"vw");AD(I.volume)&&aE(this.Jt,"am");$R(I)?aE(this.Jt,"a"):aE(this.Jt,"mut");this.aJ&&aE(this.Jt,"f");I.D!=-1&&(aE(this.Jt,"bm"),I.D==1&&(aE(this.Jt,"b"),$R(I)&&aE(this.Jt,"umutb")));$R(I)&&I.isVisible()&&aE(this.Jt,"avs");this.d4&&Z&&aE(this.Jt,"avw");I.qc>0&&aE(this.Jt, "pv");uT(this,this.ly().Z.L,!0)&&aE(this.Jt,"gdr");rL(this.ly().D,1)>=2E3&&aE(this.Jt,"pmx");this.y5&&aE(this.Jt,"tvoff")}; g.n.rX=function(){return new SSn}; g.n.ly=function(){return this.Jc}; g.n.vX=function(){return new qZl}; g.n.hR=function(Z,I,d,Y){Z=C7.prototype.hR.call(this,Z,I,d,Y===void 0?-1:Y);Z.fullscreen=this.aJ;Z.paused=this.y8();Z.volume=d.volume;AD(Z.volume)||(this.UZ++,I=this.Y$,AD(I.volume)&&(Z.volume=I.volume));d=d.currentTime;Z.mediaTime=d!==void 0&&d>=0?d:-1;return Z}; g.n.u6=function(Z){return zU(),this.aJ?1:C7.prototype.u6.call(this,Z)}; g.n.Nm=function(){return 1}; g.n.getDuration=function(){return this.Z}; g.n.EB=function(){return this.gD?2:Zmn(this)?5:this.Lr()?4:3}; g.n.zS=function(){return this.b5?this.ly().B.Z>=2E3?4:3:2}; g.n.QD=function(Z){this.oN&&this.oN.QD(Z)};var vKL=g.QY();CvL.prototype.reset=function(){this.L=[];this.D=[]}; var hG=lz(CvL);g.U(Cz,aj);g.n=Cz.prototype;g.n.getName=function(){return(this.D?this.D:this.L).getName()}; g.n.dF=function(){return(this.D?this.D:this.L).dF()}; g.n.P0=function(){return(this.D?this.D:this.L).P0()}; g.n.init=function(Z){var I=!1;(0,g.KM)(this.Z,function(d){d.initialize()&&(I=!0)}); I&&(this.N=Z,Y0(this.L,this));return I}; g.n.dispose=function(){(0,g.KM)(this.Z,function(Z){Z.dispose()}); aj.prototype.dispose.call(this)}; g.n.mw=function(){return nF(this.Z,function(Z){return Z.pE()})}; g.n.A1=function(){return nF(this.Z,function(Z){return Z.pE()})}; g.n.Vd=function(Z,I,d){return new Im(Z,this.L,I,d)}; g.n.U4=function(Z){this.D=Z.D};var M8J={threshold:[0,.3,.5,.75,1]};g.U(Y5,Im);g.n=Y5.prototype;g.n.observe=function(){var Z=this;this.kS||(this.kS=vG());if(Gll(298,function(){return r6J(Z)}))return!0; this.D.fail("msf");return!1}; g.n.unobserve=function(){if(this.N&&this.element)try{this.N.unobserve(this.element),this.X?(this.X.unobserve(this.element),this.X=null):this.V&&(this.V.disconnect(),this.V=null)}catch(Z){}}; g.n.jc=function(){var Z=yK(this);Z.length>0&&Ak(this,Z);Im.prototype.jc.call(this)}; g.n.Ly=function(){}; g.n.w6=function(){return!1}; g.n.cM=function(){}; g.n.dF=function(){var Z={};return Object.assign(this.D.dF(),(Z.niot_obs=this.kS,Z.niot_cbk=this.LS,Z))}; g.n.getName=function(){return"nio"};g.U(e6,aj);e6.prototype.getName=function(){return"nio"}; e6.prototype.A1=function(){return!zU().D&&this.L.L.Z.IntersectionObserver!=null}; e6.prototype.Vd=function(Z,I,d){return new Y5(Z,this.L,I,d)};g.U($O,WF);$O.prototype.r0=function(){return zU().L}; $O.prototype.pE=function(){var Z=zM9();this.X!==Z&&(this.L!=this&&Z>this.L.X&&(this.L=this,zQ(this)),this.X=Z);return Z==2};V9i.prototype.sample=function(){ac(this,Dk(),!1)}; V9i.prototype.N=function(){var Z=La(),I=vG();Z?(sT||(n3=I,g.KM(hG.L,function(d){var Y=d.ly();Y.w4=yU(Y,I,d.H3!=1)})),sT=!0):(this.V=qjn(this,I),sT=!1,Ici=I,g.KM(hG.L,function(d){d.KQ&&(d.ly().X=I)})); ac(this,Dk(),!Z)}; var uI=lz(V9i);var ZCJ=null,Os="",ll=!1;var krO=z4J().Cf,Kk=z4J().eO;var RNB={T55:"visible",v$m:"audible",BeJ:"time",fo5:"timetype"},Lhl={visible:function(Z){return/^(100|[0-9]{1,2})$/.test(Z)}, audible:function(Z){return Z=="0"||Z=="1"}, timetype:function(Z){return Z=="mtos"||Z=="tos"}, time:function(Z){return/^(100|[0-9]{1,2})%$/.test(Z)||/^([0-9])+ms$/.test(Z)}}; f0a.prototype.setTime=function(Z,I,d){I=="ms"?(this.Z=Z,this.N=-1):(this.Z=-1,this.N=Z);this.B=d===void 0?"tos":d;return this};g.U(n2,EB);n2.prototype.getId=function(){return this.V}; n2.prototype.j=function(){return!0}; n2.prototype.L=function(Z){var I=Z.ly(),d=Z.getDuration();return nF(this.X,function(Y){if(Y.L!=void 0)var T=Kpi(Y,I);else b:{switch(Y.B){case "mtos":T=Y.D?I.B.Z:I.Z.L;break b;case "tos":T=Y.D?I.B.L:I.Z.L;break b}T=0}T==0?Y=!1:(Y=Y.Z!=-1?Y.Z:d!==void 0&&d>0?Y.N*d:-1,Y=Y!=-1&&T>=Y);return Y})};g.U(TC,tEL);TC.prototype.L=function(Z){var I=new pYO;I.L=cd(Z,Rxd);I.D=cd(Z,UvW);return I};g.U(coO,EB);coO.prototype.L=function(Z){return Zmn(Z)};g.U(Wx,BYE);g.U(LW,EB);LW.prototype.L=function(Z){return Z.ly().Lr()};g.U(Ip,ZU);Ip.prototype.L=function(Z){var I=g.Kc(this.V,Hg(GU().zv,"ovms"));return!Z.gD&&(Z.H3!=0||I)};g.U(eH,Wx);eH.prototype.D=function(){return new Ip(this.L)}; eH.prototype.Z=function(){return[new LW("viewable_impression",this.L),new coO(this.L)]};g.U(WI,aK);WI.prototype.N=function(){var Z=g.gZ("ima.admob.getViewability"),I=Hg(this.zv,"queryid");typeof Z==="function"&&I&&Z(I)}; WI.prototype.getName=function(){return"gsv"};g.U(xO,aj);xO.prototype.getName=function(){return"gsv"}; xO.prototype.A1=function(){var Z=zU();GU();return Z.D&&!1}; xO.prototype.Vd=function(Z,I,d){return new WI(this.L,I,d)};g.U(G1,aK);G1.prototype.N=function(){var Z=this,I=g.gZ("ima.bridge.getNativeViewability"),d=Hg(this.zv,"queryid");typeof I==="function"&&d&&I(d,function(Y){g.xG(Y)&&Z.V++;var T=Y.opt_nativeViewVisibleBounds||{},f=Y.opt_nativeViewHidden;Z.L=xYB(Y.opt_nativeViewBounds||{});var P=Z.D.N;P.L=f?y9i.clone():xYB(T);Z.timestamp=Y.opt_nativeTime||-1;zU().L=P.L;Y=Y.opt_nativeVolume;Y!==void 0&&(P.volume=Y)})}; G1.prototype.getName=function(){return"nis"};g.U(Kz,aj);Kz.prototype.getName=function(){return"nis"}; Kz.prototype.A1=function(){var Z=zU();GU();return Z.D&&!1}; Kz.prototype.Vd=function(Z,I,d){return new G1(this.L,I,d)};g.U(pz,WF);g.n=pz.prototype;g.n.pE=function(){return this.D.h0!=null}; g.n.zi=function(){var Z={};this.j7&&(Z.mraid=this.j7);this.Ns&&(Z.mlc=1);Z.mtop=this.D.Jt5;this.V&&(Z.mse=this.V);this.mJ&&(Z.msc=1);Z.mcp=this.D.compatibility;return Z}; g.n.vU=function(Z){var I=g.vj.apply(1,arguments);try{return this.D.h0[Z].apply(this.D.h0,I)}catch(d){W1(538,d,.01,function(Y){Y.method=Z})}}; g.n.initialize=function(){var Z=this;if(this.isInitialized)return!this.h2();this.isInitialized=!0;if(this.D.compatibility===2)return this.V="ng",this.fail("w"),!1;if(this.D.compatibility===1)return this.V="mm",this.fail("w"),!1;zU().X=!0;this.Z.document.readyState&&this.Z.document.readyState=="complete"?FV$(this):CL(this.Z,"load",function(){Ot().setTimeout(aw(292,function(){return FV$(Z)}),100)},292); return!0}; g.n.Sx=function(){var Z=zU(),I=ebD(this,"getMaxSize");Z.L=new Ui(0,I.width,I.height,0)}; g.n.zn=function(){zU().N=ebD(this,"getScreenSize")}; g.n.dispose=function(){MVn(this);WF.prototype.dispose.call(this)};var leg=new function(Z,I){this.key=Z;this.defaultValue=I===void 0?!1:I;this.valueType="boolean"}("45378663");g.n=UR.prototype;g.n.GV=function(Z){j0(Z,!1);K6n(Z)}; g.n.C5=function(){}; g.n.b$=function(Z,I,d,Y){var T=this;Z=new HF(JB,Z,d?I:-1,7,this.Ru(),this.fP());Z.iy=Y;jSO(Z.zv);v1(Z.zv,"queryid",Z.iy);Z.ZH("");oXn(Z,function(){return T.Gi.apply(T,g.c(g.vj.apply(0,arguments)))},function(){return T.Wc.apply(T,g.c(g.vj.apply(0,arguments)))}); (Y=lz(Ay).L)&&zTu(Z,Y);this.Z&&(Z.QD(this.Z),this.Z=null);Z.QJ.YJ&&lz(kd$);return Z}; g.n.BN=function(Z){switch(Z.P0()){case 0:if(Z=lz(Ay).L)Z=Z.L,g.s4(Z.B,this),Z.In&&this.GN()&&mJB(Z);xOi();break;case 2:nn()}}; g.n.U4=function(){}; g.n.GN=function(){return!1}; g.n.Wc=function(Z,I){Z.gD=!0;switch(Z.Nm()){case 1:RzJ(Z,I);break;case 2:this.SQ(Z)}}; g.n.dc=function(Z){var I=Z.V(Z);I&&(I=I.volume,Z.b5=AD(I)&&I>0);xju(Z,0);return ZM(Z,"start",La())}; g.n.xw=function(Z,I,d){ac(uI,[Z],!La());return this.KZ(Z,I,d)}; g.n.KZ=function(Z,I,d){return ZM(Z,d,La())}; g.n.Hc=function(Z){return gj(Z,"firstquartile",1)}; g.n.sb=function(Z){Z.J5=!0;return gj(Z,"midpoint",2)}; g.n.JO=function(Z){return gj(Z,"thirdquartile",3)}; g.n.qp=function(Z){var I=gj(Z,"complete",4);Wh(Z);return I}; g.n.Fg=function(Z){Z.H3=3;return ZM(Z,"error",La())}; g.n.zK=function(Z,I,d){I=La();if(Z.y8()&&!I){var Y=Z.ly(),T=vG();Y.X=T}ac(uI,[Z],!I);Z.y8()&&(Z.H3=1);return ZM(Z,d,I)}; g.n.Rq=function(Z,I){I=this.xw(Z,I||{},"skip");Wh(Z);return I}; g.n.lR=function(Z,I){j0(Z,!0);return this.xw(Z,I||{},"fullscreen")}; g.n.Xg=function(Z,I){j0(Z,!1);return this.xw(Z,I||{},"exitfullscreen")}; g.n.bq=function(Z,I,d){I=Z.ly();var Y=vG();I.w4=yU(I,Y,Z.H3!=1);ac(uI,[Z],!La());Z.H3==1&&(Z.H3=2);return ZM(Z,d,La())}; g.n.Eb=function(Z){ac(uI,[Z],!La());return Z.D()}; g.n.Wi=function(Z){ac(uI,[Z],!La());this.ZI(Z);Wh(Z);return Z.D()}; g.n.Gi=function(){}; g.n.SQ=function(){}; g.n.ZI=function(){}; g.n.Qs=function(){}; g.n.dl=function(){}; g.n.fP=function(){this.L||(this.L=this.dl());return this.L==null?new K7:new eH(this.L)}; g.n.Ru=function(){return new TC};g.U(b_,EB);b_.prototype.L=function(Z){return Z.zS()==4};g.U(G17,ZU);G17.prototype.L=function(Z){Z=Z.zS();return Z==3||Z==4};g.U(uA,Wx);uA.prototype.D=function(){return new G17(this.L)}; uA.prototype.Z=function(){return[new b_(this.L)]};g.U(EC,tEL);EC.prototype.L=function(Z){Z&&(Z.e===28&&(Z=Object.assign({},Z,{avas:3})),Z.vs===4||Z.vs===5)&&(Z=Object.assign({},Z,{vs:3}));var I=new pYO;I.L=cd(Z,L5g);I.D=cd(Z,UvW);return I};OYu.prototype.D=function(){return g.gZ(this.L)};g.U(uz,UR);g.n=uz.prototype;g.n.C5=function(Z,I){var d=this,Y=lz(Ay);if(Y.L!=null)switch(Y.L.getName()){case "nis":var T=BSr(this,Z,I);break;case "gsv":T=pGr(this,Z,I);break;case "exc":T=LFE(this,Z)}T||(I.opt_overlayAdElement?T=void 0:I.opt_adElement&&(T=Wer(this,Z,I.opt_adElement,I.opt_osdId)));T&&T.Nm()==1&&(T.V==g.b9&&(T.V=function(f){return d.Qs(f)}),Tsl(this,T,I)); return T}; g.n.Qs=function(Z){Z.D=0;Z.Bj=0;if(Z.N=="h"||Z.N=="n"){GU();Z.on&&(GU(),Uf(this)!="h"&&Uf(this));var I=g.gZ("ima.common.getVideoMetadata");if(typeof I==="function")try{var d=I(Z.iy)}catch(T){Z.D|=4}else Z.D|=2}else if(Z.N=="b")if(I=g.gZ("ytads.bulleit.getVideoMetadata"),typeof I==="function")try{d=I(Z.iy)}catch(T){Z.D|=4}else Z.D|=2;else if(Z.N=="ml")if(I=g.gZ("ima.common.getVideoMetadata"),typeof I==="function")try{d=I(Z.iy)}catch(T){Z.D|=4}else Z.D|=2;else Z.D|=1;Z.D||(d===void 0?Z.D|=8:d===null? Z.D|=16:g.xG(d)?Z.D|=32:d.errorCode!=null&&(Z.Bj=d.errorCode,Z.D|=64));d==null&&(d={});I=d;Z.X=0;for(var Y in mvd)I[Y]==null&&(Z.X|=mvd[Y]);hoB(I,"currentTime");hoB(I,"duration");AD(d.volume)&&AD()&&(d.volume*=NaN);return d}; g.n.dl=function(){GU();Uf(this)!="h"&&Uf(this);var Z=pRl(this);return Z!=null?new OYu(Z):null}; g.n.SQ=function(Z){!Z.L&&Z.gD&&zGO(this,Z,"overlay_unmeasurable_impression")&&(Z.L=!0)}; g.n.ZI=function(Z){Z.Cx&&(Z.Lr()?zGO(this,Z,"overlay_viewable_end_of_session_impression"):zGO(this,Z,"overlay_unviewable_impression"),Z.Cx=!1)}; g.n.Gi=function(){}; g.n.b$=function(Z,I,d,Y){if(GU().flags.K_(leg)){var T=Hg(GU().zv,"mm"),f={};(T=(f[qW.O0]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",f[qW.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",f)[T])&&VRu(this,T);this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&W1(1044,Error())}Z=UR.prototype.b$.call(this,Z,I,d,Y);this.B&&(I=this.j,Z.B==null&&(Z.B=new TW9),I.L[Z.iy]=Z.B,Z.B.B=vKL);return Z}; g.n.GV=function(Z){Z&&Z.Nm()==1&&this.B&&delete this.j.L[Z.iy];return UR.prototype.GV.call(this,Z)}; g.n.fP=function(){this.L||(this.L=this.dl());return this.L==null?new K7:this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new uA(this.L):new eH(this.L)}; g.n.Ru=function(){return this.N==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new EC:new TC}; g.n.QD=function(Z,I,d,Y,T){I=new Ui(d,I+Y,d+T,I);(Z=tm(hG,Z))?Z.QD(I):this.Z=I}; var uk0=xE(193,D5$,void 0,fDJ);g.zb("Goog_AdSense_Lidar_sendVastEvent",uk0);var Gli=aw(194,function(Z,I){I=I===void 0?{}:I;Z=y0n(lz(uz),Z,I);return SO9(Z)}); g.zb("Goog_AdSense_Lidar_getViewability",Gli);var zxg=xE(195,function(){return JgV()}); g.zb("Goog_AdSense_Lidar_getUrlSignalsArray",zxg);var klL=aw(196,function(){return JSON.stringify(JgV())}); g.zb("Goog_AdSense_Lidar_getUrlSignalsList",klL);var Mt$=g.K5(["//ep2.adtrafficquality.google/sodar/",""]),rgt=g.K5(["//tpc.googlesyndication.com/sodar/",""]);g.U(kt,Error);g.U(Ee,g.p);Ee.prototype.Yq=function(){return this.wpc.f()}; Ee.prototype.l6=function(Z){this.wpc.c(Z)}; Ee.prototype.aX=function(Z){return this.wpc.m(rYD(Z))}; Ee.prototype.eS=function(Z){return this.wpc.mws(rYD(Z))}; g.U(aN,g.p);aN.prototype.snapshot=function(Z){return this.AZ.s(Object.assign({},Z.Ph&&{c:Z.Ph},Z.N3&&{s:Z.N3},Z.xg!==void 0&&{p:Z.xg}))}; aN.prototype.RW=function(Z){this.AZ.e(Z)}; aN.prototype.Pq=function(){return this.AZ.l()};g.U(Bc,g.p);Bc.prototype.share=function(){if(this.OZ())throw Error("E:AD");this.D++;return this}; Bc.prototype.dispose=function(){--this.D||g.p.prototype.dispose.call(this)};WcD.prototype.Jh=function(Z,I){this.L.Jh("/client_streamz/bg/frs",Z,I)}; w6l.prototype.Jh=function(Z,I,d,Y,T,f){this.L.Jh("/client_streamz/bg/wrl",Z,I,d,Y,T,f)}; BtE.prototype.oE=function(Z,I){this.L.Lp("/client_streamz/bg/ec",Z,I)}; PS9.prototype.Jh=function(Z,I,d){this.L.Jh("/client_streamz/bg/el",Z,I,d)}; e_J.prototype.oE=function(Z,I){this.L.Lp("/client_streamz/bg/cec",Z,I)}; VJE.prototype.oE=function(Z,I){this.L.Lp("/client_streamz/bg/po/csc",Z,I)}; NzD.prototype.oE=function(Z,I){this.L.Lp("/client_streamz/bg/po/ctav",Z,I)}; Nta.prototype.oE=function(Z,I){this.L.Lp("/client_streamz/bg/po/cwsc",Z,I)};g.U(zA9,p$);g.U(bs,p$);var HT=[1,2,3];var X8W=[0,HT,F5g,ae0,Vdi];var tdd=[0,oX,[0,YjE,iYE]];g.U(Cr,p$);var Ef=[1,2,3];var $v$=[0,Ef,P5p,Tmu,jp,tdd];g.U(SU,p$);var p8V=[0,oX,X8W,$v$];var xvt=[0,dr];g.U(HE,p$);var K5t=[0,dr,-1,w8v];var C5u=[0,dr,-1,QMt,w8v];g.U(cZ,p$);var G$u=[1,2,3];var EKv=[0,G$u,jp,K5t,jp,C5u,jp,xvt];g.U(xc,p$);xc.prototype.sG=function(){var Z=FX(this,3,pO,3,!0);ff(Z);return Z[void 0]};xc.prototype.Z=Tgi([0,dr,EKv,Nmi,oX,p8V,W5$,exp]);g.U(eat,p$);g.n=vC.prototype;g.n.isEnabled=function(){if(!g.iN.navigator.cookieEnabled)return!1;if(!this.isEmpty())return!0;this.set("TESTCOOKIESENABLED","1",{maxAge:60});if(this.get("TESTCOOKIESENABLED")!=="1")return!1;this.remove("TESTCOOKIESENABLED");return!0}; g.n.set=function(Z,I,d){var Y=!1;if(typeof d==="object"){var T=d.sameSite;Y=d.secure||!1;var f=d.domain||void 0;var P=d.path||void 0;var O=d.maxAge}if(/[;=\s]/.test(Z))throw Error('Invalid cookie name "'+Z+'"');if(/[;\r\n]/.test(I))throw Error('Invalid cookie value "'+I+'"');O===void 0&&(O=-1);d=f?";domain="+f:"";P=P?";path="+P:"";Y=Y?";secure":"";O=O<0?"":O==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+O*1E3)).toUTCString();this.L.cookie=Z+"="+I+d+P+O+Y+(T!=null? ";samesite="+T:"")}; g.n.get=function(Z,I){for(var d=Z+"=",Y=(this.L.cookie||"").split(";"),T=0,f;T=0;I--)this.remove(Z[I])}; var t8=new vC(typeof document=="undefined"?null:document);Z9.prototype.compress=function(Z){var I,d,Y,T;return g.h(function(f){switch(f.L){case 1:return I=new CompressionStream("gzip"),d=(new Response(I.readable)).arrayBuffer(),Y=I.writable.getWriter(),g.m(f,Y.write((new TextEncoder).encode(Z)),2);case 2:return g.m(f,Y.close(),3);case 3:return T=Uint8Array,g.m(f,d,4);case 4:return f.return(new T(f.D))}})}; Z9.prototype.isSupported=function(Z){return Z<1024?!1:typeof CompressionStream!=="undefined"};g.U(ha,p$);O1.prototype.setInterval=function(Z){this.intervalMs=Z;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; O1.prototype.start=function(){var Z=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){Z.tick()},this.intervalMs),this.D=this.L())}; O1.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; O1.prototype.tick=function(){var Z=this;if(this.enabled){var I=Math.max(this.L()-this.D,0);I0?d:void 0));d=G8(d,4,Ml(T>0?T:void 0));d=G8(d,5,Ml(f>0?f:void 0));T=d.Gm;f=T[nL]|0;d=b5(d,f)?d:ct(d,T,f)?gx(d,T):new d.constructor(f3(T,f,!0));P6(P,nx,10,d)}P=this.L.clone();d=Date.now().toString();P=G8(P,4,Xo(d));Z=MM(P,WU,3,Z.slice());Y&&(P=new J3,Y=G8(P,13,Ml(Y)),P=new Ho, Y=P6(P,J3,2,Y),P=new Ou,Y=P6(P,Ho,1,Y),Y=PK(Y,2,9),P6(Z,Ou,18,Y));I&&CO(Z,14,I);return Z};g.i_.prototype.D=0;g.i_.prototype.reset=function(){this.L=this.Z=this.N;this.D=0}; g.i_.prototype.getValue=function(){return this.Z};g.U(UN,p$);var bYu=w4(UN);g.U(txu,p$);var ep;ep=new $Nu;g.U(PR,g.p);g.n=PR.prototype;g.n.g4=function(){fc(this);this.D.stop();this.j7.stop();g.p.prototype.g4.call(this)}; g.n.dispatch=function(Z){if(Z instanceof WU)this.log(Z);else try{var I=new WU,d=Z.It();var Y=Kr(I,8,d);this.log(Y)}catch(T){At(this,4,1)}}; g.n.log=function(Z){At(this,2,1);if(this.mJ){Z=Z.clone();var I=this.sZ++;Z=CO(Z,21,I);this.componentId&&Kr(Z,26,this.componentId);I=Z;var d=S4(I,1);var Y=Y===void 0?!1:Y;var T=typeof d;Y=d==null?d:T==="bigint"?String(oM(64,d)):Ze(d)?T==="string"?dm(d):Y?YK(d):Tl(d):void 0;Y==null&&(Y=Date.now(),Y=Number.isFinite(Y)?Y.toString():"0",G8(I,1,Xo(Y)));Y=S4(I,15);Y!=null&&(typeof Y==="bigint"?T1(Y)?Y=Number(Y):(Y=oM(64,Y),Y=T1(Y)?Number(Y):String(Y)):Y=Ze(Y)?typeof Y==="number"?Tl(Y):dm(Y):void 0);Y!=null|| CO(I,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(Y=this.experimentIds.clone(),P6(I,ha,16,Y));At(this,1,1);I=this.L.length-1E3+1;I>0&&(this.L.splice(0,I),this.N+=I,At(this,3,I));this.L.push(Z);this.kR||this.D.enabled||this.D.start()}}; g.n.flush=function(Z,I){var d=this;if(this.L.length===0)Z&&Z();else if(this.fS&&this.LS)this.Z.D=3,kQJ(this);else{var Y=Date.now();if(this.w4>Y&&this.Bj0&&(d.Bj=Date.now(),d.w4=d.Bj+w);w=qT(pY);var q;ow&&w&&((q=V.Gm[w])==null?void 0:q[175237375])!=null&&tB(XlV,3);a:{var A=A===void 0?!1:A;if(qT(txd)&&qT(pY)&&void 0===txd){q=V.Gm;w=q[pY];if(!w)break a;if(w=w.q2)try{w(q,175237375,ECp);break a}catch(F){X4(F)}}A&&(A=V.Gm, (q=qT(pY))&&q in A&&(A=A[q])&&delete A[175237375])}A=ep.L?ep.D(V,ep.L,175237375,ep.Z):ep.D(V,175237375,null,ep.Z);if(A=A===null?void 0:A)A=DC(A,1,-1),A!==-1&&(d.B=new g.i_(A<1?1:A,3E5,.1),d.D.setInterval(d.B.getValue()))}}Z&&Z();d.j=0},e=function(){d.network&&d.network.send(a,W,B)},B=function(w,V){var N=hn(f,WU,3); var q=Number(Cw$(f,14));g.yp(d.B);d.D.setInterval(d.B.getValue());w===401&&P&&(d.Tm=P);q&&(d.N+=q);V===void 0&&(V=d.isRetryable(w));V&&(d.L=N.concat(d.L),d.kR||d.D.enabled||d.D.start());At(d,7,1);I&&I("net-send-failed",w);++d.j}; O?O.then(function(w){At(d,5,T);a.requestHeaders["Content-Encoding"]="gzip";a.requestHeaders["Content-Type"]="application/binary";a.body=w;a.pL=2;e()},function(){At(d,6,T); e()}):e()}}}}; g.n.isRetryable=function(Z){return 500<=Z&&Z<600||Z===401||Z===0};gn.prototype.send=function(Z,I,d){var Y=this,T,f,P,O,a,W,e,B,w,V;return g.h(function(N){switch(N.L){case 1:return f=(T=Y.Tj?new AbortController:void 0)?setTimeout(function(){T.abort()},Z.timeoutMillis):void 0,g.ez(N,2,3),P=Object.assign({},{method:Z.requestType, headers:Object.assign({},Z.requestHeaders)},Z.body&&{body:Z.body},Z.withCredentials&&{credentials:"include"},{signal:Z.timeoutMillis&&T?T.signal:null}),g.m(N,fetch(Z.url,P),5);case 5:O=N.D;if(O.status!==200){(a=d)==null||a(O.status);N.xS(3);break}if((W=I)==null){N.xS(7);break}return g.m(N,O.text(),8);case 8:W(N.D);case 7:case 3:g.ON(N);clearTimeout(f);g.Bh(N,0);break;case 2:e=g.Bj(N);switch((B=e)==null?void 0:B.name){case "AbortError":(w=d)==null||w(408);break;default:(V=d)==null||V(400)}N.xS(3)}})}; gn.prototype.Jw=function(){return 4};g.U(Uo,g.p);Uo.prototype.Ig=function(){this.B=!0;return this}; Uo.prototype.build=function(){this.network||(this.network=new gn);var Z=new PR({logSource:this.logSource,pC:this.pC?this.pC:mir,sessionIndex:this.sessionIndex,lGZ:this.Wu,tq:this.N,kR:!1,Ig:this.B,EJ:this.EJ,network:this.network});g.z(this,Z);if(this.D){var I=this.D,d=fG(Z.Z);Kr(d,7,I)}Z.V=new Z9;this.componentId&&(Z.componentId=this.componentId);this.gH&&(Z.gH=this.gH);this.pageId&&(Z.pageId=this.pageId);this.L&&((d=this.L)?(Z.experimentIds||(Z.experimentIds=new ha),I=Z.experimentIds,d=d.It(),Kr(I, 4,d)):Z.experimentIds&&G8(Z.experimentIds,4));this.Z&&(Z.fS=Z.LS);Fyn(Z.Z);this.network.mB&&this.network.mB(this.logSource);this.network.HFj&&this.network.HFj(Z);return Z};g.U(yL,g.p);yL.prototype.flush=function(Z){Z=Z||[];if(Z.length){for(var I=new eat,d=[],Y=0;Y-1?(I=Z[P],d||(I.Od=!1)):(I=new vql(I,this.src,f,!!Y,T),I.Od=d,Z.push(I));return I}; g.n.remove=function(Z,I,d,Y){Z=Z.toString();if(!(Z in this.listeners))return!1;var T=this.listeners[Z];I=jf(T,I,d,Y);return I>-1?(En(T[I]),g.$S(T,I),T.length==0&&(delete this.listeners[Z],this.L--),!0):!1}; g.n.removeAll=function(Z){Z=Z&&Z.toString();var I=0,d;for(d in this.listeners)if(!Z||d==Z){for(var Y=this.listeners[d],T=0;T-1?Z[T]:null}; g.n.hasListener=function(Z,I){var d=Z!==void 0,Y=d?Z.toString():"",T=I!==void 0;return g.Yw(this.listeners,function(f){for(var P=0;P>>0);g.uN(g.mv,g.p);g.mv.prototype[n39]=!0;g.n=g.mv.prototype;g.n.addEventListener=function(Z,I,d,Y){g.ap(this,Z,I,d,Y)}; g.n.removeEventListener=function(Z,I,d,Y){Y$d(this,Z,I,d,Y)}; g.n.dispatchEvent=function(Z){var I=this.ez;if(I){var d=[];for(var Y=1;I;I=I.ez)d.push(I),++Y}I=this.aR;Y=Z.type||Z;if(typeof Z==="string")Z=new g.jD(Z,I);else if(Z instanceof g.jD)Z.target=Z.target||I;else{var T=Z;Z=new g.jD(Y,I);g.rt(Z,T)}T=!0;var f;if(d)for(f=d.length-1;!Z.D&&f>=0;f--){var P=Z.currentTarget=d[f];T=RI(P,Y,!0,Z)&&T}Z.D||(P=Z.currentTarget=I,T=RI(P,Y,!0,Z)&&T,Z.D||(T=RI(P,Y,!1,Z)&&T));if(d)for(f=0;!Z.D&&f0){this.D--;var Z=this.L;this.L=Z.next;Z.next=null}else Z=this.Z();return Z};var jT;UL9.prototype.add=function(Z,I){var d=Ht$.get();d.set(Z,I);this.D?this.D.next=d:this.L=d;this.D=d}; UL9.prototype.remove=function(){var Z=null;this.L&&(Z=this.L,this.L=this.L.next,this.L||(this.D=null),Z.next=null);return Z}; var Ht$=new $3p(function(){return new Dn},function(Z){return Z.reset()}); Dn.prototype.set=function(Z,I){this.L=Z;this.scope=I;this.next=null}; Dn.prototype.reset=function(){this.next=this.scope=this.L=null};var qX,kl=!1,bt7=new UL9;TBL.prototype.reset=function(){this.context=this.D=this.Z=this.L=null;this.N=!1}; var fZB=new $3p(function(){return new TBL},function(Z){Z.reset()}); g.eq.prototype.then=function(Z,I,d){return U77(this,YB(typeof Z==="function"?Z:null),YB(typeof I==="function"?I:null),d)}; g.eq.prototype.$goog_Thenable=!0;g.n=g.eq.prototype;g.n.finally=function(Z){var I=this;Z=YB(Z);return new g.eq(function(d,Y){k8E(I,function(T){Z();d(T)},function(T){Z(); Y(T)})})}; g.n.LA=function(Z,I){return U77(this,null,YB(Z),I)}; g.n.catch=g.eq.prototype.LA;g.n.cancel=function(Z){if(this.L==0){var I=new ht(Z);g.rB(function(){RPi(this,I)},this)}}; g.n.TB5=function(Z){this.L=0;BR(this,2,Z)}; g.n.VFJ=function(Z){this.L=0;BR(this,3,Z)}; g.n.gT=function(){for(var Z;Z=Lcl(this);)LzE(this,Z,this.L,this.V);this.j=!1}; var Fpn=X4;g.uN(ht,bW);ht.prototype.name="cancel";g.uN(g.qn,g.mv);g.n=g.qn.prototype;g.n.enabled=!1;g.n.C_=null;g.n.setInterval=function(Z){this.ke=Z;this.C_&&this.enabled?(this.stop(),this.start()):this.C_&&this.stop()}; g.n.NBm=function(){if(this.enabled){var Z=g.QY()-this.JH;Z>0&&Z0&&(this.getStatus(),this.j=setTimeout(this.mZ.bind(this), this.LS)),this.getStatus(),this.In=!0,this.L.send(Z),this.In=!1}catch(P){this.getStatus(),Pf9(this,P)}}; g.n.mZ=function(){typeof Dl!="undefined"&&this.L&&(this.N="Timed out after "+this.LS+"ms, aborting",this.D=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.n.abort=function(Z){this.L&&this.Z&&(this.getStatus(),this.Z=!1,this.B=!0,this.L.abort(),this.B=!1,this.D=Z||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),R5(this))}; g.n.g4=function(){this.L&&(this.Z&&(this.Z=!1,this.B=!0,this.L.abort(),this.B=!1),R5(this,!0));g.UB.AV.g4.call(this)}; g.n.fd=function(){this.OZ()||(this.Ns||this.In||this.B?H7u(this):this.nFJ())}; g.n.nFJ=function(){H7u(this)}; g.n.isActive=function(){return!!this.L}; g.n.isComplete=function(){return g.b0(this)==4}; g.n.getStatus=function(){try{return g.b0(this)>2?this.L.status:-1}catch(Z){return-1}}; g.n.getResponseHeader=function(Z){if(this.L&&this.isComplete())return Z=this.L.getResponseHeader(Z),Z===null?void 0:Z}; g.n.getLastError=function(){return typeof this.N==="string"?this.N:String(this.N)};fu.prototype.send=function(Z,I,d){I=I===void 0?function(){}:I; d=d===void 0?function(){}:d; Ysa(Z.url,function(Y){Y=Y.target;JR(Y)?I(g.mC(Y)):d(Y.getStatus())},Z.requestType,Z.body,Z.requestHeaders,Z.timeoutMillis,Z.withCredentials)}; fu.prototype.Jw=function(){return 1};yw.prototype.done=function(){this.logger.WF(this.event,fp()-this.startTime)}; g.U(zd,Bc);g.U(pw,zd);g.n=pw.prototype;g.n.lX=function(){}; g.n.ww=function(){}; g.n.WF=function(){}; g.n.r5=function(){}; g.n.Xn=function(){}; g.n.sA=function(Z,I,d,Y){return Y}; g.n.F8=function(){}; g.n.ws=function(){}; g.n.qr=function(){}; g.U(P1,zd);g.n=P1.prototype;g.n.update=function(Z){this.logger.dispose();this.logger=Z}; g.n.ww=function(Z){this.logger.ww(Z)}; g.n.WF=function(Z,I){this.logger.WF(Z,I)}; g.n.r5=function(Z){this.logger.r5(Z)}; g.n.Xn=function(){this.logger.Xn()}; g.n.sA=function(Z,I,d,Y){return this.logger.sA(Z,I,d,Y)}; g.n.F8=function(Z){this.logger.F8(Z)}; g.n.ws=function(Z){this.logger.ws(Z)}; g.n.qr=function(Z){this.logger.qr(Z)}; g.n.lX=function(Z){this.logger.lX(Z)}; g.U(FcB,g.p);g.U(TZ,zd);g.n=TZ.prototype;g.n.lX=function(Z){this.metrics.ctj.Jh(Z,this.Mk)}; g.n.ww=function(Z){this.metrics.eventCount.oE(Z,this.Mk)}; g.n.WF=function(Z,I){this.metrics.Zl.Jh(I,Z,this.Mk)}; g.n.r5=function(Z){this.metrics.errorCount.oE(Z,this.Mk)}; g.n.sA=function(Z,I,d,Y){function T(O){if(!f.OZ()){var a=fp()-P;f.metrics.G9Z.Jh(a,Z,d,O,I,f.Mk)}} var f=this,P=fp();Y.then(function(){return void T(0)},function(O){return void T(O instanceof oP?O.code:-1)}); return Y}; g.n.F8=function(Z){this.metrics.blj.oE(Z,this.Mk)}; g.n.ws=function(Z){this.metrics.vx.oE(Z,this.Mk)}; g.n.qr=function(Z){this.metrics.y_4.oE(Z,this.Mk)}; g.U(fo,TZ);fo.prototype.Xn=function(){X0l(this.L)};g.U(SF,p$);g.U(dz,p$);g.U(Ae,p$);var CXn=w4(Ae),QTn=function(Z){return F9(function(I){return I instanceof Z&&!b5(I)})}(Ae); Ae.messageId="bfkj";g.U(tnD,p$);g.U(Te,p$);var O4d=w4(Te);g.U(dq,g.p);dq.prototype.snapshot=function(Z){if(this.OZ())throw Error("Already disposed");this.logger.ww("n");var I=this.logger.share();return this.Z.then(function(d){var Y=d.CL;return new Promise(function(T){var f=new yw(I,"n");Y(function(P){f.done();I.lX(P.length);I.Xn();I.dispose();T(P)},[Z.Ph, Z.N3,Z.xz,Z.xg])})})}; dq.prototype.GK=function(Z){var I=this;if(this.OZ())throw Error("Already disposed");this.logger.ww("n");var d=SK(this.logger,function(){return I.N([Z.Ph,Z.N3,Z.xz,Z.xg])},"n"); this.logger.lX(d.length);this.logger.Xn();return d}; dq.prototype.RW=function(Z){this.Z.then(function(I){var d;(d=I.SV1)==null||d(Z)})}; dq.prototype.Pq=function(){return this.logger.share()};g.U(he,p$);g.U(zNB,p$);oL.prototype.mL=function(Z){return t8n(this,Z,new pw,0)};g.U(Qy,g.p);Qy.prototype.snapshot=function(Z){var I=this;return g.h(function(d){switch(d.L){case 1:if(I.OZ())throw Error("Already disposed");if(I.D||I.V){d.xS(2);break}return g.m(d,I.B.promise,2);case 2:if(!I.D){d.xS(4);break}return g.m(d,I.D.snapshot(Z),5);case 5:return d.return(d.D);case 4:throw I.V;}})}; Qy.prototype.RW=function(Z){var I,d;(I=this.D)==null||(d=I.RW)==null||d.call(I,Z)}; Qy.prototype.handleError=function(Z){if(!this.OZ()){this.V=Z;this.B.resolve();var I,d;(d=(I=this.options).c9r)==null||d.call(I,Z)}}; Qy.prototype.Pq=function(){return this.logger.share()}; var cBE={GxS:432E5,zB:3E5,Vw:10,iF:1E4,BC:3E4,T4S:3E4,Eos:6E4,L1:1E3,IY:6E4,Dl:6E5,kT:.25,tX:2,maxAttempts:10};var gKi,CTJ=(gKi=Math.imul)!=null?gKi:function(Z,I){return Z*I|0},Du=[196, 200,224,18];vV.prototype.It=function(){return String(this.L)+","+this.D.join()}; vV.prototype.cO=function(Z,I){var d=void 0;if(this.D[this.L]!==Z){var Y=this.D.indexOf(Z);Y!==-1?(this.D.splice(Y,1),Y0;)I[d++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(Z%62),Z=Math.floor(Z/62);return I.join("")}};g.U(NV,g.p);NV.prototype.eS=function(Z,I){var d=this.aX(Z);I==null||I(d);return SK(this.logger,function(){return g.Bg(d,2)},this.D)}; g.U(g9,NV);g9.prototype.aX=function(Z,I){var d=this;this.logger.ww(this.L);++this.B>=this.j&&this.Z.resolve();var Y=Z();Z=SK(this.logger,function(){return d.N(Y)},"C"); if(Z===void 0)throw new kt(17,"YNJ:Undefined");if(!(Z instanceof Uint8Array))throw new kt(18,"ODM:Invalid");I==null||I(Z);return Z}; g.U(sB,NV);sB.prototype.aX=function(){return this.N}; g.U(xY,NV);xY.prototype.aX=function(){var Z=this;return SK(this.logger,function(){return ew(Z.N)},"d")}; xY.prototype.eS=function(){return this.N}; g.U(dt,NV);dt.prototype.aX=function(){if(this.N)return this.N;this.N=AQi(this,function(Z){return"_"+QFJ(Z)}); return AQi(this,function(Z){return Z})}; g.U(xp,NV);xp.prototype.aX=function(){var Z=Math.floor(Date.now()/1E3),I=[Math.random()*255,Math.random()*255],d=I.concat([this.N&255,this.clientState],[Z>>24&255,Z>>16&255,Z>>8&255,Z&255]);Z=new Uint8Array(2+d.length);Z[0]=34;Z[1]=d.length;Z.set(d,2);d=Z.subarray(2);for(var Y=I=I.length;Y150))try{this.cache=new t2n(Z,this.logger)}catch(I){this.reportError(new kt(22,"GBJ:init",I))}}; g.n.reportError=function(Z){this.logger.r5(Z.code);this.onError(Z);return Z}; var Q2i=function(Z){return F9(function(I){if(!z5W(I))return!1;for(var d=g.t(Object.entries(Z)),Y=d.next();!Y.done;Y=d.next()){var T=g.t(Y.value);Y=T.next().value;T=T.next().value;if(!(Y in I)){if(T.I6j===!0)continue;return!1}if(!T(I[Y]))return!1}return!0})}({AZ:function(Z){return F9(function(I){return I instanceof Z})}(Qy)},"");var Fm7=(new Date).getTime();g.U($3,p$);var Mdd=w4($3);Xf7.prototype.getMetadata=function(){return this.metadata};r8.prototype.getMetadata=function(){return this.metadata}; r8.prototype.getStatus=function(){return this.status};Hm.prototype.V=function(Z,I){I=I===void 0?{}:I;return new Xf7(Z,this,I)}; Hm.prototype.getName=function(){return this.name};var r9g=new Hm("/google.internal.waa.v1.Waa/Create",he,$3,function(Z){return Z.It()},Mdd);g.U(hA,p$);var Dun=new Hm("/google.internal.waa.v1.Waa/GenerateIT",zNB,hA,function(Z){return Z.It()},w4(hA));var XR7=new Set(["SAPISIDHASH","APISIDHASH"]);g.U(BI,p$);BI.prototype.getValue=function(){var Z=S4(this,2);if(Array.isArray(Z)||Z instanceof p$)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return qR(this,2)};g.U(Y5E,p$);Y5E.prototype.getMessage=function(){return A0(this,2)}; var OTB=w4(Y5E);h5.prototype.removeListener=function(Z,I){Z==="data"?C6(this.D,I):Z==="metadata"?C6(this.N,I):Z==="status"?C6(this.B,I):Z==="end"?C6(this.Z,I):Z==="error"&&C6(this.L,I);return this}; h5.prototype.cancel=function(){this.xhr.abort()}; g.U(z2a,Error);g.uN(g.y7,i_B);g.y7.prototype.L=function(){var Z=new gP(this.N,this.Z);this.D&&Z.setCredentialsMode(this.D);return Z}; g.y7.prototype.setCredentialsMode=function(Z){this.D=Z}; g.uN(gP,g.mv);g.n=gP.prototype;g.n.open=function(Z,I){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.kS=Z;this.LS=I;this.readyState=1;Jy(this)}; g.n.send=function(Z){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.X.signal.aborted)throw this.abort(),Error("Request was aborted.");this.L=!0;var I={headers:this.In,method:this.kS,credentials:this.B,cache:void 0,signal:this.X.signal};Z&&(I.body=Z);(this.Ns||g.iN).fetch(new Request(this.LS,I)).then(this.aq.bind(this),this.v2.bind(this))}; g.n.abort=function(){this.response=this.responseText="";this.In=new Headers;this.status=0;this.X.abort("Request was aborted.");this.Z&&this.Z.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.L&&this.readyState!=4&&(this.L=!1,dc(this));this.readyState=0}; g.n.aq=function(Z){if(this.L&&(this.N=Z,this.D||(this.status=this.N.status,this.statusText=this.N.statusText,this.D=Z.headers,this.readyState=2,Jy(this)),this.L&&(this.readyState=3,Jy(this),this.L)))if(this.responseType==="arraybuffer")Z.arrayBuffer().then(this.VF.bind(this),this.v2.bind(this));else if(typeof g.iN.ReadableStream!=="undefined"&&"body"in Z){this.Z=Z.body.getReader();if(this.j){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response= []}else this.response=this.responseText="",this.V=new TextDecoder;Li$(this)}else Z.text().then(this.uR.bind(this),this.v2.bind(this))}; g.n.iR=function(Z){if(this.L){if(this.j&&Z.value)this.response.push(Z.value);else if(!this.j){var I=Z.value?Z.value:new Uint8Array(0);if(I=this.V.decode(I,{stream:!Z.done}))this.response=this.responseText+=I}Z.done?dc(this):Jy(this);this.readyState==3&&Li$(this)}}; g.n.uR=function(Z){this.L&&(this.response=this.responseText=Z,dc(this))}; g.n.VF=function(Z){this.L&&(this.response=Z,dc(this))}; g.n.v2=function(){this.L&&dc(this)}; g.n.setRequestHeader=function(Z,I){this.In.append(Z,I)}; g.n.getResponseHeader=function(Z){return this.D?this.D.get(Z.toLowerCase())||"":""}; g.n.getAllResponseHeaders=function(){if(!this.D)return"";for(var Z=[],I=this.D.entries(),d=I.next();!d.done;)d=d.value,Z.push(d[0]+": "+d[1]),d=I.next();return Z.join("\r\n")}; g.n.setCredentialsMode=function(Z){this.B=Z}; Object.defineProperty(gP.prototype,"withCredentials",{get:function(){return this.B==="include"}, set:function(Z){this.setCredentialsMode(Z?"include":"same-origin")}});g.gR.prototype.toString=function(){var Z=[],I=this.B;I&&Z.push(AR(I,ZMd,!0),":");var d=this.L;if(d||I=="file")Z.push("//"),(I=this.X)&&Z.push(AR(I,ZMd,!0),"@"),Z.push(g.fn(d).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),d=this.Z,d!=null&&Z.push(":",String(d));if(d=this.D)this.L&&d.charAt(0)!="/"&&Z.push("/"),Z.push(AR(d,d.charAt(0)=="/"?IQ$:dpd,!0));(d=this.N.toString())&&Z.push("?",d);(d=this.j)&&Z.push("#",AR(d,okW));return Z.join("")}; g.gR.prototype.resolve=function(Z){var I=this.clone(),d=!!Z.B;d?g.MQ(I,Z.B):d=!!Z.X;d?I.X=Z.X:d=!!Z.L;d?g.rR(I,Z.L):d=Z.Z!=null;var Y=Z.D;if(d)g.Zl(I,Z.Z);else if(d=!!Z.D){if(Y.charAt(0)!="/")if(this.L&&!this.D)Y="/"+Y;else{var T=I.D.lastIndexOf("/");T!=-1&&(Y=I.D.slice(0,T+1)+Y)}T=Y;if(T==".."||T==".")Y="";else if(g.QE(T,"./")||g.QE(T,"/.")){Y=pu(T,"/");T=T.split("/");for(var f=[],P=0;P1||f.length==1&&f[0]!="")&&f.pop(), Y&&P==T.length&&f.push("")):(f.push(O),Y=!0)}Y=f.join("/")}else Y=T}d?I.D=Y:d=Z.N.toString()!=="";d?I5(I,Z.N.clone()):d=!!Z.j;d&&(I.j=Z.j);return I}; g.gR.prototype.clone=function(){return new g.gR(this)}; var ZMd=/[#\/\?@]/g,dpd=/[#\?:]/g,IQ$=/[#\?]/g,AKD=/[#\?@]/g,okW=/#/g;g.n=hN.prototype;g.n.add=function(Z,I){sO(this);this.Z=null;Z=kP(this,Z);var d=this.L.get(Z);d||this.L.set(Z,d=[]);d.push(I);this.D=this.D+1;return this}; g.n.remove=function(Z){sO(this);Z=kP(this,Z);return this.L.has(Z)?(this.Z=null,this.D=this.D-this.L.get(Z).length,this.L.delete(Z)):!1}; g.n.clear=function(){this.L=this.Z=null;this.D=0}; g.n.isEmpty=function(){sO(this);return this.D==0}; g.n.forEach=function(Z,I){sO(this);this.L.forEach(function(d,Y){d.forEach(function(T){Z.call(I,T,Y,this)},this)},this)}; g.n.D$=function(){sO(this);for(var Z=Array.from(this.L.values()),I=Array.from(this.L.keys()),d=[],Y=0;Y0?String(Z[0]):I}; g.n.toString=function(){if(this.Z)return this.Z;if(!this.L)return"";for(var Z=[],I=Array.from(this.L.keys()),d=0;d>>3;f.Z!=1&&f.Z!=2&&f.Z!=15&&md(f,P,O,"unexpected tag");f.L=1;f.D=0;f.N=0} function d(){if(f.Z<15){var a={};a[f.Z]=f.B;f.V.push(a)}f.L=0} function Y(a){f.N++;f.N==5&&a&240&&md(f,P,O,"message length too long");f.D|=(a&127)<<(f.N-1)*7;a&128||(f.L=2,f.X=0,typeof Uint8Array!=="undefined"?f.B=new Uint8Array(f.D):f.B=Array(f.D),f.D==0&&d())} function T(a){f.B[f.X++]=a;f.X==f.D&&d()} for(var f=this,P=Z instanceof Array?Z:new Uint8Array(Z),O=0;O0?Z:null};Ha.prototype.isInputValid=function(){return this.L===null}; Ha.prototype.LF=function(){return this.L}; Ha.prototype.AU=function(){return!1}; Ha.prototype.parse=function(Z){this.L!==null&&imD(this,Z,"stream already broken");var I=null;try{var d=this.Z;d.Z||ba7(d,Z,"stream already broken");d.L+=Z;var Y=Math.floor(d.L.length/4);if(Y==0)var T=null;else{try{var f=QwE(d.L.slice(0,Y*4))}catch(P){ba7(d,d.L,P.message)}d.D+=Y*4;d.L=d.L.slice(Y*4);T=f}I=T===null?null:this.N.parse(T)}catch(P){imD(this,Z,P.message)}this.D+=Z.length;return I};var jqE={INIT:0,Yp:1,W7:2,xL:3,Yw:4,Q$:5,STRING:6,ub:7,JY:8,Is:9,Lu:10,D8:11,KY:12,nY:13,x6:14,Bn:15,Gn:16,ys:17,bO:18,ME:19,w9:20};g.n=Vy.prototype;g.n.isInputValid=function(){return this.B!=3}; g.n.LF=function(){return this.In}; g.n.done=function(){return this.B===2}; g.n.AU=function(){return!1}; g.n.parse=function(Z){function I(N){f.D>1||(N||(N=B===-1?f.N+Z.substring(e,w):Z.substring(B,w)),f.LS?f.j.push(N):f.j.push(JSON.parse(N)),B=w)} function d(){var N=P.pop();return N!=null?N:a.Yp} function Y(){for(;w0;)if(N=Z[w++], f.X===4?f.X=0:f.X++,!N)break a;if(N==='"'&&!f.V){f.L=d();break}if(N==="\\"&&!f.V&&(f.V=!0,N=Z[w++],!N))break;if(f.V)if(f.V=!1,N==="u"&&(f.X=1),N=Z[w++])continue;else break;O.lastIndex=w;N=O.exec(Z);if(!N){w=Z.length+1;break}w=N.index+1;N=Z[N.index];if(!N)break}f.Z+=w-q;continue;case a.Is:if(!N)continue;N==="r"?f.L=a.Lu:Hd(f,Z,w);continue;case a.Lu:if(!N)continue;N==="u"?f.L=a.D8:Hd(f,Z,w);continue;case a.D8:if(!N)continue;N==="e"?f.L=d():Hd(f,Z,w);continue;case a.KY:if(!N)continue;N==="a"?f.L=a.nY: Hd(f,Z,w);continue;case a.nY:if(!N)continue;N==="l"?f.L=a.x6:Hd(f,Z,w);continue;case a.x6:if(!N)continue;N==="s"?f.L=a.Bn:Hd(f,Z,w);continue;case a.Bn:if(!N)continue;N==="e"?f.L=d():Hd(f,Z,w);continue;case a.Gn:if(!N)continue;N==="u"?f.L=a.ys:Hd(f,Z,w);continue;case a.ys:if(!N)continue;N==="l"?f.L=a.bO:Hd(f,Z,w);continue;case a.bO:if(!N)continue;N==="l"?f.L=d():Hd(f,Z,w);continue;case a.ME:N==="."?f.L=a.w9:Hd(f,Z,w);continue;case a.w9:if("0123456789.eE+-".indexOf(N)!==-1)continue;else w--,f.Z--,f.L= d();continue;default:Hd(f,Z,w)}}} for(var f=this,P=f.kS,O=f.Ns,a=jqE,W=Z.length,e=0,B=-1,w=0;w0?(V=f.j,f.j=[],V):null}return null};uM.prototype.isInputValid=function(){return this.B===null}; uM.prototype.LF=function(){return this.B}; uM.prototype.AU=function(){return!1}; uM.prototype.parse=function(Z){function I(a){if(a){(f.j||a.length>1)&&Y("extra status: "+a);f.j=!0;var W={};W[2]=a[0];f.N.push(W)}} function d(){f.Z=new Vy({RR4:!0,X2:!0})} function Y(a){f.D=6;f.B="The stream is broken @"+f.L+"/"+P+". Error: "+a+". With input:\n";throw Error(f.B);} function T(a){if(a)for(var W=0;W0?(Z=f.N,f.N=[],Z):null};N7.prototype.mC=function(){return this.L}; N7.prototype.getStatus=function(){return this.B}; N7.prototype.LS=function(Z){Z=Z.target;try{if(Z==this.L)a:{var I=g.b0(this.L),d=this.L.D,Y=this.L.getStatus(),T=g.mC(this.L);Z=[];if(g.Pd(this.L)instanceof Array){var f=g.Pd(this.L);f.length>0&&f[0]instanceof Uint8Array&&(this.In=!0,Z=f)}if(!(I<3||I==3&&!T&&Z.length==0))if(Y=Y==200||Y==206,I==4&&(d==8?JM(this,7):d==7?JM(this,8):Y||JM(this,3)),this.D||(this.D=vIB(this.L),this.D==null&&JM(this,5)),this.B>2)qq(this);else{if(Z.length>this.Z){var P=Z.length;d=[];try{if(this.D.AU())for(var O=0;Othis.Z){O=T.slice(this.Z);this.Z=T.length;try{var W=this.D.parse(O);W!=null&&this.N&&this.N(W)}catch(e){JM(this,5);qq(this);break a}}I==4?(T.length!= 0||this.In?JM(this,2):JM(this,4),qq(this)):JM(this,1)}}}catch(e){JM(this,6),qq(this)}};g.n=f$D.prototype;g.n.addListener=function(Z,I){sZ(this,Z,I);return this}; g.n.removeListener=function(Z,I){var d=this.D[Z];d&&g.s4(d,I);(Z=this.L[Z])&&g.s4(Z,I);return this}; g.n.once=function(Z,I){var d=this.L[Z];d||(d=[],this.L[Z]=d);d.push(I);return this}; g.n.Xkm=function(Z){var I=this.D.data;I&&lBD(Z,I);(I=this.L.data)&&lBD(Z,I);this.L.data=[]}; g.n.eO4=function(){switch(this.Z.getStatus()){case 1:Ri(this,"readable");break;case 5:case 6:case 4:case 7:case 3:Ri(this,"error");break;case 8:Ri(this,"close");break;case 2:Ri(this,"end")}};FYd.prototype.serverStreaming=function(Z,I,d,Y){var T=this,f=Z.substring(0,Z.length-Y.name.length);return QZn(function(P){var O=P.ue,a=P.getMetadata(),W=V2L(T,!1);a=tql(T,a,W,f+O.getName());var e=vc7(W,O.D,!0);P=O.L(P.nx);W.send(a,"POST",P);return e},this.Nq).call(this,Y.V(I,d))};yVl.prototype.create=function(Z,I,d){var Y=this.L,T=this.D+"/$rpc/google.internal.waa.v1.Waa/Create";I=I||{};d=d===void 0?{}:d;return nLi(Y,T,Z,I,r9g,d)};var WQr,z1l,$y7,iMp,fQ0,Sza,AIa,wA;WQr=new cm(45724570);g.TBp=new cm(45728933);z1l=new cm(45728553);$y7=new cm(45725537);iMp=new cm(45727950);fQ0=new cm(45727949);Sza=new cm(45728333);AIa=new Ia(45728334);wA=new cm(45728181);var b$d=new Ia(45725542),Eri=new Ia(45725543),xyd=new Ia(45725539),CGB=new Ia(45725541),K4i=new Ia(45725540),p3a=new Ia(45725538),tDa=new function(Z,I,d,Y){this.au=Z;this.rF=I;this.defaultValue=Y;this.ju="int"}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",jd("0"));var K2$="://secure-...imrworldwide.com/ ://cdn.imrworldwide.com/ ://aksecure.imrworldwide.com/ ://[^.]*.moatads.com ://youtube[0-9]+.moatpixel.com ://pm.adsafeprotected.com/youtube ://pm.test-adsafeprotected.com/youtube ://e[0-9]+.yt.srs.doubleverify.com www.google.com/pagead/xsul www.youtube.com/pagead/slav".split(" "),CQd=/\bocr\b/;var W0r=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.U(ZKO,p$);g.U(I47,p$);g.U(bb,p$);bb.prototype.getName=function(){return A0(this,1)}; bb.prototype.getOptions=function(){return yF(this,I47,3)}; bb.prototype.clearOptions=function(){return G8(this,3)};g.U(gC,p$);g.n=gC.prototype;g.n.getName=function(){return A0(this,1)}; g.n.getOptions=function(){return yF(this,ZKO,3)}; g.n.clearOptions=function(){return G8(this,3)}; g.n.f6=function(){return NU(this,6)}; g.n.o0=function(Z){PK(this,6,Z)};var uO9=function(Z){return function(I){I=JSON.parse(I);if(!Array.isArray(I))throw Error("Expected jspb data to be an array, got "+Hs(I)+": "+I);IP(I,34);return new Z(I)}}(gC);var ljn=Symbol();var ZEr=Symbol();Object.assign({},{attributes:{},handleError:function(Z){throw Z;}},{Lsm:!0, kXj:!0,Zi5:!1,gOn:Ahd,MGJ:DN$,NR1:!1,Ksm:!1,dmm:!1,DVs:!0,xV5:S5W,Inn:!1,uZm:!1,gAs:!1});var l9=null,VL=!1,pdJ=1,jll=Symbol("SIGNAL"),BB={version:0,kGm:0,bz:!1,producers:void 0,uY:void 0,Ax:void 0,lC:void 0,K4:!1,W4:!1,q7:!1,kind:"unknown",bA:function(){return!1}, AS:function(){}, KP:function(){}, AWm:function(){}};var wr=Symbol("UNSET"),VI=Symbol("COMPUTING"),NB=Symbol("ERRORED");Object.assign({},BB,{value:wr,bz:!0,error:null,iU:nN,kind:"computed",bA:function(Z){return Z.value===wr||Z.value===VI}, AS:function(Z){if(Z.value===VI)throw Error("");var I=Z.value;Z.value=VI;var d=D1l(Z),Y=!1;try{var T=Z.xV();u9(null);Y=I!==wr&&I!==NB&&T!==NB&&Z.iU(I,T)}catch(f){T=NB,Z.error=f}finally{u9(d),Z&&wHd(Z)}Y?Z.value=I:(Z.value=T,Z.version++)}});Object.assign({},BB,{q7:!0,W4:!0,bz:!0,kind:"effect"});var OyO=Object.assign({},BB,{iU:nN,value:void 0,kind:"signal"});Object.assign({},BB,{value:wr,bz:!0,error:null,iU:nN,kind:"linkedSignal",bA:function(Z){return Z.value===wr||Z.value===VI}, AS:function(Z){if(Z.value===VI)throw Error("");var I=Z.value;Z.value=VI;var d=D1l(Z);try{var Y=Z.source();var T=Z.xV(Y,I===wr||I===NB?void 0:{source:Z.eg1,value:I});Z.eg1=Y}catch(f){T=NB,Z.error=f}finally{u9(d),Z&&wHd(Z)}I!==wr&&T!==NB&&Z.iU(I,T)?Z.value=I:(Z.value=T,Z.version++)}});Object.assign({},BB,{q7:!0,W4:!1,KP:function(Z){Z.schedule!==null&&Z.schedule(Z.EAn)}, eRj:function(){}});g.U(Qj,g.mv);Qj.prototype.dispose=function(){window.removeEventListener("offline",this.Z);window.removeEventListener("online",this.Z);this.pW.ze(this.B);delete Qj.instance}; Qj.prototype.QQ=function(){return this.L}; Qj.prototype.Nc=function(){var Z=this;this.B=this.pW.AB(function(){var I;return g.h(function(d){if(d.L==1)return Z.L?((I=window.navigator)==null?0:I.onLine)?d.xS(3):g.m(d,wS(Z),3):g.m(d,wS(Z),3);Z.Nc();g.v6(d)})},3E4)};g.U(hr9,p$);var PNt=F5i(hr9,[0,iu,qj0,QMt,iu,-2,QMt,iYE]);MP.prototype.set=function(Z,I){I=I===void 0?!0:I;0<=Z&&Z<52&&Number.isInteger(Z)&&this.data[Z]!==I&&(this.data[Z]=I,this.L=-1)}; MP.prototype.get=function(Z){return!!this.data[Z]};var Vp;g.uN(g.qM,g.p);g.n=g.qM.prototype;g.n.start=function(){this.stop();this.N=!1;var Z=Lj$(this),I=$un(this);Z&&!I&&this.D.mozRequestAnimationFrame?(this.L=g.ap(this.D,"MozBeforePaint",this.Z),this.D.mozRequestAnimationFrame(null),this.N=!0):this.L=Z&&I?Z.call(this.D,this.Z):this.D.setTimeout(Ih7(this.Z),20)}; g.n.stop=function(){if(this.isActive()){var Z=Lj$(this),I=$un(this);Z&&!I&&this.D.mozRequestAnimationFrame?b8(this.L):Z&&I?I.call(this.D,this.L):this.D.clearTimeout(this.L)}this.L=null}; g.n.isActive=function(){return this.L!=null}; g.n.QK=function(){this.N&&this.L&&b8(this.L);this.L=null;this.j.call(this.B,g.QY())}; g.n.g4=function(){this.stop();g.qM.AV.g4.call(this)};g.uN(g.uX,g.p);g.n=g.uX.prototype;g.n.vz=0;g.n.g4=function(){g.uX.AV.g4.call(this);this.stop();delete this.L;delete this.D}; g.n.start=function(Z){this.stop();this.vz=g.hy(this.Z,Z!==void 0?Z:this.ke)}; g.n.stop=function(){this.isActive()&&g.iN.clearTimeout(this.vz);this.vz=0}; g.n.isActive=function(){return this.vz!=0}; g.n.jx=function(){this.vz=0;this.L&&this.L.call(this.D)};g.U(g.Qk,g.p);g.n=g.Qk.prototype;g.n.uZ=function(Z){this.Z=arguments;this.C_||this.D?this.L=!0:rj(this)}; g.n.stop=function(){this.C_&&(g.iN.clearTimeout(this.C_),this.C_=null,this.L=!1,this.Z=null)}; g.n.pause=function(){this.D++}; g.n.resume=function(){this.D--;this.D||!this.L||this.C_||(this.L=!1,rj(this))}; g.n.g4=function(){g.p.prototype.g4.call(this);this.stop()};g.v7$.prototype[Symbol.iterator]=function(){return this}; g.v7$.prototype.next=function(){var Z=this.L.next();return{value:Z.done?void 0:this.D.call(void 0,Z.value),done:Z.done}};g.uN(g.ev,g.mv);g.n=g.ev.prototype;g.n.isPlaying=function(){return this.L==1}; g.n.isPaused=function(){return this.L==-1}; g.n.Kb=function(){this.V8("begin")}; g.n.m7=function(){this.V8("end")}; g.n.onFinish=function(){this.V8("finish")}; g.n.onStop=function(){this.V8("stop")}; g.n.V8=function(Z){this.dispatchEvent(Z)};var QqM=Zz(function(){var Z=g.vX("DIV"),I=g.Vd?"-webkit":p7?"-moz":null,d="transition:opacity 1s linear;";I&&(d+=I+"-transition:opacity 1s linear;");I=b0L({style:d});if(Z.nodeType===1&&/^(script|style)$/i.test(Z.tagName))throw Error("");Z.innerHTML=NJ(I);return g.Jr(Z.firstChild,"transition")!=""});g.uN(iA,g.ev);g.n=iA.prototype;g.n.play=function(){if(this.isPlaying())return!1;this.Kb();this.V8("play");this.startTime=g.QY();this.L=1;if(QqM())return g.K2(this.D,this.j),this.Z=g.hy(this.VeZ,void 0,this),!0;this.fV(!1);return!1}; g.n.VeZ=function(){g.C2(this.D);p1E(this.D,this.V);g.K2(this.D,this.N);this.Z=g.hy((0,g.u5)(this.fV,this,!1),this.B*1E3)}; g.n.stop=function(){this.isPlaying()&&this.fV(!0)}; g.n.fV=function(Z){g.K2(this.D,"transition","");g.iN.clearTimeout(this.Z);g.K2(this.D,this.N);this.endTime=g.QY();this.L=0;if(Z)this.onStop();else this.onFinish();this.m7()}; g.n.g4=function(){this.stop();iA.AV.g4.call(this)}; g.n.pause=function(){};var tlr={rgb:!0,rgba:!0,alpha:!0,rect:!0,image:!0,"linear-gradient":!0,"radial-gradient":!0,"repeating-linear-gradient":!0,"repeating-radial-gradient":!0,"cubic-bezier":!0,matrix:!0,perspective:!0,rotate:!0,rotate3d:!0,rotatex:!0,rotatey:!0,steps:!0,rotatez:!0,scale:!0,scale3d:!0,scalex:!0,scaley:!0,scalez:!0,skew:!0,skewx:!0,skewy:!0,translate:!0,translate3d:!0,translatex:!0,translatey:!0,translatez:!0,"var":!0};oy("Element","attributes")||oy("Node","attributes");oy("Element","innerHTML")||oy("HTMLElement","innerHTML");oy("Node","nodeName");oy("Node","nodeType");oy("Node","parentNode");oy("Node","childNodes");oy("HTMLElement","style")||oy("Element","style");oy("HTMLStyleElement","sheet");var svW=PEl("getPropertyValue"),nWW=PEl("setProperty");oy("Element","namespaceURI")||oy("Node","namespaceURI");var FgL={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var nxE,VML,s5$,FzD,hPu;nxE=RegExp("[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]");VML=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.OMd=RegExp("^[^\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]*[A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]"); g.nq=RegExp("^[^A-Za-z\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02b8\u0300-\u0590\u0900-\u1fff\u200e\u2c00-\ud801\ud804-\ud839\ud83c-\udbff\uf900-\ufb1c\ufe00-\ufe6f\ufefd-\uffff]*[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");s5$=/^http:\/\/.*/;g.aQg=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");FzD=/\s+/;hPu=/[\d\u06f0-\u06f9]/;T8.prototype.kx=function(){return new iZ(this.D())}; T8.prototype[Symbol.iterator]=function(){return new fx(this.D())}; T8.prototype.L=function(){return new fx(this.D())}; g.U(iZ,g.Ym);iZ.prototype.next=function(){return this.D.next()}; iZ.prototype[Symbol.iterator]=function(){return new fx(this.D)}; iZ.prototype.L=function(){return new fx(this.D)}; g.U(fx,T8);fx.prototype.next=function(){return this.Z.next()};A8.prototype.clone=function(){return new A8(this.L,this.V,this.Z,this.B,this.N,this.j,this.D,this.X)}; A8.prototype.equals=function(Z){return this.L==Z.L&&this.V==Z.V&&this.Z==Z.Z&&this.B==Z.B&&this.N==Z.N&&this.j==Z.j&&this.D==Z.D&&this.X==Z.X};Tu.prototype.clone=function(){return new Tu(this.start,this.end)};(function(){if(DMD){var Z=/Windows NT ([0-9.]+)/;return(Z=Z.exec(g.Vs()))?Z[1]:"0"}return h4?(Z=/1[0|1][_.][0-9_.]+/,(Z=Z.exec(g.Vs()))?Z[0].replace(/_/g,"."):"10"):g.pb?(Z=/Android\s+([^\);]+)(\)|;)/,(Z=Z.exec(g.Vs()))?Z[1]:""):LLW||UN0||yhg?(Z=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(Z=Z.exec(g.Vs()))?Z[1].replace(/_/g,"."):""):""})();var G2r=function(){if(g.Kb)return sS(/Firefox\/([0-9.]+)/);if(g.Fd||g.sY||g.Cb)return hsJ;if(g.h_){if(yC()||rS()){var Z=sS(/CriOS\/([0-9.]+)/);if(Z)return Z}return sS(/Chrome\/([0-9.]+)/)}if(g.bT&&!yC())return sS(/Version\/([0-9.]+)/);if(kD||l7){if(Z=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.Vs()))return Z[1]+"."+Z[2]}else if(g.Zlg)return(Z=sS(/Android\s+([0-9.]+)/))?Z:sS(/Version\/([0-9.]+)/);return""}();g.uN(g.Mc,g.p);g.n=g.Mc.prototype;g.n.subscribe=function(Z,I,d){var Y=this.D[Z];Y||(Y=this.D[Z]=[]);var T=this.j;this.L[T]=Z;this.L[T+1]=I;this.L[T+2]=d;this.j=T+3;Y.push(T);return T}; g.n.unsubscribe=function(Z,I,d){if(Z=this.D[Z]){var Y=this.L;if(Z=Z.find(function(T){return Y[T+1]==I&&Y[T+2]==d}))return this.h_(Z)}return!1}; g.n.h_=function(Z){var I=this.L[Z];if(I){var d=this.D[I];this.N!=0?(this.Z.push(Z),this.L[Z+1]=function(){}):(d&&g.s4(d,Z),delete this.L[Z],delete this.L[Z+1],delete this.L[Z+2])}return!!I}; g.n.publish=function(Z,I){var d=this.D[Z];if(d){var Y=Array(arguments.length-1),T=arguments.length,f;for(f=1;f0&&this.N==0)for(;d=this.Z.pop();)this.h_(d)}}return f!=0}return!1}; g.n.clear=function(Z){if(Z){var I=this.D[Z];I&&(I.forEach(this.h_,this),delete this.D[Z])}else this.L.length=0,this.D={}}; g.n.g4=function(){g.Mc.AV.g4.call(this);this.clear();this.Z.length=0};g.QN.prototype.set=function(Z,I){I===void 0?this.Og.remove(Z):this.Og.set(Z,g.Q9(I))}; g.QN.prototype.get=function(Z){try{var I=this.Og.get(Z)}catch(d){return}if(I!==null)try{return JSON.parse(I)}catch(d){throw"Storage: Invalid value was encountered";}}; g.QN.prototype.remove=function(Z){this.Og.remove(Z)};g.uN(Q$,g.QN);Q$.prototype.set=function(Z,I){Q$.AV.set.call(this,Z,xUu(I))}; Q$.prototype.nT=function(Z){Z=Q$.AV.get.call(this,Z);if(Z===void 0||Z instanceof Object)return Z;throw"Storage: Invalid value was encountered";}; Q$.prototype.get=function(Z){if(Z=this.nT(Z)){if(Z=Z.data,Z===void 0)throw"Storage: Invalid value was encountered";}else Z=void 0;return Z};g.uN(JV,Q$);JV.prototype.set=function(Z,I,d){if(I=xUu(I)){if(d){if(d=d.length)return g.QI;var T=d.key(I++);if(Z)return g.G6(T);T=d.getItem(T);if(typeof T!=="string")throw"Storage mechanism: Invalid value was encountered";return g.G6(T)}; return Y}; g.n.clear=function(){TW(this);this.L.clear()}; g.n.key=function(Z){TW(this);return this.L.key(Z)};g.uN(sf,kS);g.uN(LZB,kS);g.uN(lG,VD);lG.prototype.set=function(Z,I){this.D.set(this.L+Z,I)}; lG.prototype.get=function(Z){return this.D.get(this.L+Z)}; lG.prototype.remove=function(Z){this.D.remove(this.L+Z)}; lG.prototype.kx=function(Z){var I=this.D[Symbol.iterator](),d=this,Y=new g.Ym;Y.next=function(){var T=I.next();if(T.done)return T;for(T=T.value;T.slice(0,d.L.length)!=d.L;){T=I.next();if(T.done)return T;T=T.value}return g.G6(Z?T.slice(d.L.length):d.D.get(T))}; return Y};lS.prototype.getValue=function(){return this.D}; lS.prototype.clone=function(){return new lS(this.L,this.D)};g.n=vt.prototype;g.n.cO=function(Z,I){var d=this.L;d.push(new lS(Z,I));Z=d.length-1;I=this.L;for(d=I[Z];Z>0;){var Y=Z-1>>1;if(I[Y].L>d.L)I[Z]=I[Y],Z=Y;else break}I[Z]=d}; g.n.remove=function(){var Z=this.L,I=Z.length,d=Z[0];if(!(I<=0)){if(I==1)Z.length=0;else{Z[0]=Z.pop();Z=0;I=this.L;for(var Y=I.length,T=I[Z];Z>1;){var f=Z*2+1,P=Z*2+2;f=PT.L)break;I[Z]=I[f];Z=f}I[Z]=T}return d.getValue()}}; g.n.O9=function(){for(var Z=this.L,I=[],d=Z.length,Y=0;Y>>16&65535|0;for(var f;d!==0;){f=d>2E3?2E3:d;d-=f;do T=T+I[Y++]|0,Z=Z+T|0;while(--f);T%=65521;Z%=65521}return T|Z<<16|0};for(var iP={},FB,VV0=[],s$=0;s$<256;s$++){FB=s$;for(var NB0=0;NB0<8;NB0++)FB=FB&1?3988292384^FB>>>1:FB>>>1;VV0[s$]=FB}iP=function(Z,I,d,Y){d=Y+d;for(Z^=-1;Y>>8^VV0[(Z^I[Y])&255];return Z^-1};var is={};is={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"};var ID=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],j8=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],FCE=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],mgn=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Po=Array(576);IZ(Po);var Qe=Array(60);IZ(Qe);var Y6=Array(512);IZ(Y6);var Zn=Array(256);IZ(Zn);var dn=Array(29);IZ(dn);var TK=Array(30);IZ(TK);var wVO,Vml,Npu,ojJ=!1;var PV;PV=[new Wz(0,0,0,0,function(Z,I){var d=65535;for(d>Z.E9-5&&(d=Z.E9-5);;){if(Z.dK<=1){lr(Z);if(Z.dK===0&&I===0)return 1;if(Z.dK===0)break}Z.NC+=Z.dK;Z.dK=0;var Y=Z.QC+d;if(Z.NC===0||Z.NC>=Y)if(Z.dK=Z.NC-Y,Z.NC=Y,GK(Z,!1),Z.rz.G_===0)return 1;if(Z.NC-Z.QC>=Z.uy-262&&(GK(Z,!1),Z.rz.G_===0))return 1}Z.cO=0;if(I===4)return GK(Z,!0),Z.rz.G_===0?3:4;Z.NC>Z.QC&&GK(Z,!1);return 1}), new Wz(4,4,8,4,zK),new Wz(4,5,16,8,zK),new Wz(4,6,32,32,zK),new Wz(4,4,16,16,ZY),new Wz(8,16,32,32,ZY),new Wz(8,16,128,128,ZY),new Wz(8,32,128,256,ZY),new Wz(32,128,258,1024,ZY),new Wz(32,258,258,4096,ZY)];var dcl={};dcl=function(){this.input=null;this.l1=this.qk=this.Cv=0;this.output=null;this.F7=this.G_=this.kB=0;this.msg="";this.state=null;this.b6=2;this.mH=0};var sR$=Object.prototype.toString; El.prototype.push=function(Z,I){var d=this.rz,Y=this.options.chunkSize;if(this.ended)return!1;var T=I===~~I?I:I===!0?4:0;typeof Z==="string"?d.input=aFB(Z):sR$.call(Z)==="[object ArrayBuffer]"?d.input=new Uint8Array(Z):d.input=Z;d.Cv=0;d.qk=d.input.length;do{d.G_===0&&(d.output=new LX.pg(Y),d.kB=0,d.G_=Y);Z=TyJ(d,T);if(Z!==1&&Z!==0)return this.m7(Z),this.ended=!0,!1;if(d.G_===0||d.qk===0&&(T===4||T===2))if(this.options.to==="string"){var f=LX.M3(d.output,d.kB);I=f;f=f.length;if(f<65537&&(I.subarray&& wSt||!I.subarray))I=String.fromCharCode.apply(null,LX.M3(I,f));else{for(var P="",O=0;O0||d.G_===0)&&Z!==1);if(T===4)return(d=this.rz)&&d.state?(Y=d.state.status,Y!==42&&Y!==69&&Y!==73&&Y!==91&&Y!==103&&Y!==113&&Y!==666?Z=fr(d,-2):(d.state=null,Z=Y===113?fr(d,-3):0)):Z=-2,this.m7(Z),this.ended=!0,Z===0;T===2&&(this.m7(0),d.G_=0);return!0}; El.prototype.m7=function(Z){Z===0&&(this.result=this.options.to==="string"?this.chunks.join(""):LX.pP(this.chunks));this.chunks=[];this.err=Z;this.msg=this.rz.msg};var u4="@@redux/INIT"+Gu(),vhB="@@redux/REPLACE"+Gu();var lEB=typeof Symbol==="function"&&Symbol.observable||"@@observable";var F_t=[0,sMW,-3,TN];g.U(GBL,p$);var JVJ=F5i(GBL,[0,iu,nK3,dr,sMW,dr,-1,TN,sMW,TN,-1,iu,TN,nK3,oX,F_t,dr,-1,TN]);var E2$=-460624616;var sqt=function(Z,I){return function(){var d=new o8L(Z,I,xb);return function(){return d}}()}("youtube.api.innertube.AttestationError",'[null,[["ATTESTATION_ERROR_UNKNOWN",0],["ATTESTATION_ERROR_VM_NOT_INITIALIZED",1],["ATTESTATION_ERROR_VM_NO_RESPONSE",2],["ATTESTATION_ERROR_VM_TIMEOUT",3],["ATTESTATION_ERROR_VM_INTERNAL_ERROR",4],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INVALID",5],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_NETWORK_ERROR",6],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_OFFLINE",7],["ATTESTATION_ERROR_PREFETCH_CHALLENGE_INTERNAL_ERROR",8],["ATTESTATION_ERROR_API_NOT_READY",9],["ATTESTATION_ERROR_DEVICE_OFFLINE",10],["ATTESTATION_ERROR_KEY_PAIR_INIT_FAILED",12],["ATTESTATION_ERROR_SIGNING_DATA_MISSING",13],["ATTESTATION_ERROR_SIGNING_FAILED",14],["ATTESTATION_ERROR_CERT_CHAIN_RETRIEVAL_FAILED",15]],null,[[11,11]]]');var YJB=new g.oZ("adInfoDialogEndpoint");var uKi=new g.oZ("adPingingEndpoint");var HSd=new g.oZ("crossDeviceProgressCommand");var E0=new g.oZ("actionCompanionAdRenderer");var zz=new g.oZ("adActionInterstitialRenderer");var nku=new g.oZ("adDurationRemainingRenderer");var NE=new g.oZ("adHoverTextButtonRenderer");var JyE=new g.oZ("adInfoDialogRenderer");var YI=new g.oZ("adMessageRenderer");var kF=new g.oZ("adPreviewRenderer");var Hv=new g.oZ("adsEngagementPanelRenderer");var wFO=new g.oZ("dismissablePanelTextPortraitImageRenderer");var m3=new g.oZ("adsEngagementPanelSectionListViewModel");var hgg=new g.oZ("flyoutCtaRenderer");var bg=new g.oZ("imageCompanionAdRenderer");var CD=new g.oZ("instreamAdPlayerOverlayRenderer");var FeL=new g.oZ("instreamSurveyAdBackgroundImageRenderer");var smL=new g.oZ("instreamSurveyAdPlayerOverlayRenderer");var k1=new g.oZ("instreamSurveyAdRenderer"),eJ=new g.oZ("instreamSurveyAdSingleSelectQuestionRenderer"),B6=new g.oZ("instreamSurveyAdMultiSelectQuestionRenderer"),ny=new g.oZ("instreamSurveyAdAnswerRenderer"),mpd=new g.oZ("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var l0=new g.oZ("instreamVideoAdRenderer");var qip=new g.oZ("textOverlayAdContentRenderer"),Si0=new g.oZ("enhancedTextOverlayAdContentRenderer"),ABL=new g.oZ("imageOverlayAdContentRenderer");var gPL=new g.oZ("playerOverlayLayoutRenderer");var rHi=new g.oZ("videoInterstitialButtonedCenteredLayoutRenderer");var xWE=new g.oZ("aboveFeedAdLayoutRenderer");var KH7=new g.oZ("belowPlayerAdLayoutRenderer");var $Wr=new g.oZ("inPlayerAdLayoutRenderer");var CnE=new g.oZ("inPlayerOrganicOverlayAdLayoutRenderer");var RU=new g.oZ("playerBytesAdLayoutRenderer");var wa=new g.oZ("playerBytesSequenceItemAdLayoutRenderer");var eS=new g.oZ("playerUnderlayAdLayoutRenderer");var Gz=new g.oZ("adIntroRenderer");var yQ=new g.oZ("playerBytesSequentialLayoutRenderer");var IeJ=new g.oZ("slidingTextPlayerOverlayRenderer");var XI=new g.oZ("surveyTextInterstitialRenderer");var B2=new g.oZ("videoAdTrackingRenderer");var h79=new g.oZ("videoInterstitialCenteredLayoutViewModel");var DpL=new g.oZ("simpleAdBadgeRenderer");var zy=new g.oZ("skipAdRenderer"),JBi=new g.oZ("skipButtonRenderer");var s1=new g.oZ("adSlotRenderer");var Va=new g.oZ("squeezebackPlayerSidePanelRenderer");var Rgt=new g.oZ("timedPieCountdownRenderer");var wI=new g.oZ("adAvatarViewModel");var Vv=new g.oZ("adBadgeViewModel");var Nt=new g.oZ("adButtonViewModel");var L_3=new g.oZ("adDetailsLineViewModel");var UpE=new g.oZ("adDisclosureBannerViewModel");var yBd=new g.oZ("adPodIndexViewModel");var vkV=new g.oZ("imageBackgroundViewModel");var lQ0=new g.oZ("adGridCardCollectionViewModel");var u4L=new g.oZ("adGridCardTextViewModel");var GU$=new g.oZ("adPreviewViewModel");var zgW=new g.oZ("playerAdAvatarLockupCardButtonedViewModel");var kUg=new g.oZ("skipAdButtonViewModel");var XS0=new g.oZ("skipAdViewModel");var tVM=new g.oZ("timedPieCountdownViewModel");var $pp=new g.oZ("visitAdvertiserLinkViewModel");var cv=new g.oZ("bannerImageLayoutViewModel");var gM=new g.oZ("topBannerImageTextIconButtonedLayoutViewModel");var M2=new g.oZ("adsEngagementPanelLayoutViewModel");var nz=new g.oZ("displayUnderlayTextGridCardsLayoutViewModel");g.S9=new g.oZ("browseEndpoint");var pSg=new g.oZ("confirmDialogEndpoint");var cmB=new g.oZ("commandContext");var crn=new g.oZ("rawColdConfigGroup");var HEu=new g.oZ("rawHotConfigGroup");g.gA=new g.oZ("commandExecutorCommand");g.U(C8B,p$);var I$V={srS:0,AEs:1,MAr:32,f$4:61,jw5:67,zRS:103,SL5:86,gb7:42,Nw5:60,hfn:62,Bwn:73,nb5:76,mm7:88,Qws:90,OZ5:99,kN5:98,YL5:100,xmS:102,Tws:41,VAJ:69,uV4:70,a$s:71,m95:2,Qa5:27,ANDROID:3,o$7:54,XJ5:14,cBs:91,rB4:55,H6S:24,lM7:20,sB5:18,R65:21,dAm:104,e6s:30,b6j:29,pJm:28,ef5:101,ABm:34,Pa5:36,E$r:38,IOS:5,nk4:15,jFr:92,x_n:40,fLr:25,i0m:17,SF1:19,z2r:64,m_5:66,QFZ:26,Tfn:22,VLr:33,ur5:68,aLJ:35,YF7:53,O05:37,BfS:39,OfS:7,Tem:57,VO4:43,ao7:59,u14:93,yB5:74,wh7:75,W6S:85,qy5:65,o4J:80,XhJ:8,Yys:10, Hf5:58,rEJ:63,F6m:72,GDm:23,qLZ:11,Fz4:13,atS:12,jrS:16,ZZ4:56,iZ5:31,fy7:77,lbJ:84,Kzn:87,Em5:89,sK5:94,td5:95};g.U(cD,p$);cD.prototype.WC=function(){return A0(this,3)}; cD.prototype.l0=function(){return A0(this,5)}; cD.prototype.Jq=function(Z){return Kr(this,5,Z)};g.U(ym,p$);g.U(DUi,p$);g.U(Cp,p$);g.n=Cp.prototype;g.n.getDeviceId=function(){return A0(this,6)}; g.n.t7=function(Z){var I=FX(this,9,xU,3,!0);ff(I,Z);return I[Z]}; g.n.getPlayerType=function(){return NU(this,36)}; g.n.setHomeGroupInfo=function(Z){return P6(this,DUi,81,Z)}; g.n.clearLocationPlayabilityToken=function(){return G8(this,89)};g.U(iE,p$);iE.prototype.getValue=function(){return A0(this,jC(this,Jtu,2))}; var Jtu=[2,3,4,5,6];g.U(Ar,p$);Ar.prototype.setTrackingParams=function(Z){return G8(this,1,bAd(Z,!1))};g.U(TP,p$);g.U(As,p$);As.prototype.t7=function(Z){var I=FX(this,5,Vb,3,!0);ff(I,Z);return I[Z]};g.U(Pu,p$);Pu.prototype.getToken=function(){return oQ(this,2)}; Pu.prototype.setToken=function(Z){return Kr(this,2,Z)};g.U(zD,p$);zD.prototype.setSafetyMode=function(Z){return PK(this,5,Z)};g.U(YM,p$);YM.prototype.zC=function(Z){return P6(this,Cp,1,Z)};var fC=new g.oZ("thumbnailLandscapePortraitRenderer");g.xpV=new g.oZ("changeEngagementPanelVisibilityAction");var zrn=new g.oZ("continuationCommand");g.K_W=new g.oZ("openPopupAction");var CNp=new g.oZ("signalAction");g.hq=new g.oZ("webCommandMetadata");var ggr=new g.oZ("metadataBadgeRenderer");var Gf$=new g.oZ("signalServiceEndpoint");var c2=new g.oZ("innertubeCommand");var I79=new g.oZ("loggingDirectives");var SRl={KF4:"EMBEDDED_PLAYER_MODE_UNKNOWN",gmS:"EMBEDDED_PLAYER_MODE_DEFAULT",N5n:"EMBEDDED_PLAYER_MODE_PFP",Msn:"EMBEDDED_PLAYER_MODE_PFL"};var hp7=new g.oZ("channelThumbnailEndpoint");var ssd=new g.oZ("embeddedPlayerErrorMessageRenderer");var Bsl=new g.oZ("embeddedPlayerOverlayVideoDetailsRenderer"),m4O=new g.oZ("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),qFE=new g.oZ("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var NsB=new g.oZ("embedsInfoPanelRenderer");var kLv=new g.oZ("feedbackEndpoint");var Eki=new g.oZ("callToActionButtonViewModel");var bMu=new g.oZ("interactionLoggingCommandMetadata");var K73={Dmn:"WEB_DISPLAY_MODE_UNKNOWN",U6n:"WEB_DISPLAY_MODE_BROWSER",I$Z:"WEB_DISPLAY_MODE_MINIMAL_UI",Lzs:"WEB_DISPLAY_MODE_STANDALONE",tAn:"WEB_DISPLAY_MODE_FULLSCREEN"};g.U(cz,p$);cz.prototype.getPlayerType=function(){return NU(this,7)}; cz.prototype.FQ=function(){return A0(this,19)}; cz.prototype.setVideoId=function(Z){return Kr(this,19,Z)};g.U(ztL,p$);g.U(nmn,p$);g.U(Mg,p$); var HMi=[2,3,5,6,7,11,13,20,21,22,23,24,28,32,37,45,59,72,73,74,76,78,79,80,85,91,97,100,102,105,111,117,119,126,127,136,146,148,151,156,157,158,159,163,164,168,176,177,178,179,184,188,189,190,191,193,194,195,196,197,198,199,200,201,202,203,204,205,206,208,209,215,219,222,225,226,227,229,232,233,234,240,241,244,247,248,249,251,254,255,256,257,258,259,260,261,266,270,272,278,288,291,293,300,304,308,309,310,311,313,314,319,320,321,323,324,327,328,330,331,332,334,337,338,340,344,348,350,351,352,353, 354,355,356,357,358,361,363,364,368,369,370,373,374,375,378,380,381,383,388,389,399,402,403,410,411,412,413,414,415,416,417,418,423,424,425,426,427,429,430,431,439,441,444,448,458,469,471,473,474,480,481,482,484,485,486,491,495,496,506,507,509,511,512,513,514,515,516,517,518,519,520,522,523,524,525,526,527,528,529,530];var cB3=new g.oZ("loggingContext");g.U(Oc,p$);g.U(WS,p$);WS.prototype.FQ=function(){return oQ(this,jC(this,sa,1))}; WS.prototype.setVideoId=function(Z){return XS(this,1,sa,cT(Z))}; WS.prototype.getPlaylistId=function(){return oQ(this,jC(this,sa,2))}; var sa=[1,2];g.U(Dna,p$);var wf=new g.oZ("changeKeyedMarkersVisibilityCommand");var gkM=new g.oZ("changeMarkersVisibilityCommand");var rZn=new g.oZ("loadMarkersCommand");var MV0=new g.oZ("suggestedActionDataViewModel");var fKE=new g.oZ("timelyActionViewModel");var i6n=new g.oZ("timelyActionsOverlayViewModel");var esu=new g.oZ("productListItemRenderer");var rBu=new g.oZ("shoppingOverlayRenderer");var w57=new g.oZ("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var ZLu=new g.oZ("adFeedbackEndpoint");var I0t=new g.oZ("menuEndpoint");var GLi=new g.oZ("phoneDialerEndpoint");var l$t=new g.oZ("sendSmsEndpoint");var DhL=new g.oZ("copyTextEndpoint");var dx3=new g.oZ("shareEndpoint"),oEg=new g.oZ("shareEntityEndpoint"),YH3=new g.oZ("shareEntityServiceEndpoint"),j8W=new g.oZ("webPlayerShareEntityServiceEndpoint");g.M0=new g.oZ("urlEndpoint");g.CI=new g.oZ("watchEndpoint");var TQM=new g.oZ("watchPlaylistEndpoint");g.iLp=new g.oZ("offlineOrchestrationActionCommand");var Qnn=new g.oZ("compositeVideoOverlayRenderer");var f0M=new g.oZ("miniplayerRenderer");var HRD=new g.oZ("paidContentOverlayRenderer");var Pyv=new g.oZ("playerMutedAutoplayOverlayRenderer"),Q8p=new g.oZ("playerMutedAutoplayEndScreenRenderer");var QKL=new g.oZ("unserializedPlayerResponse"),OLi=new g.oZ("unserializedPlayerResponse");var a0V=new g.oZ("playlistEditEndpoint");var mj;g.Ji=new g.oZ("buttonRenderer");mj=new g.oZ("toggleButtonRenderer");var V6D=new g.oZ("counterfactualRenderer");var WOM=new g.oZ("resolveUrlCommandMetadata");var eWV=new g.oZ("modifyChannelNotificationPreferenceEndpoint");var lHn=new g.oZ("pingingEndpoint");var BQV=new g.oZ("unsubscribeEndpoint");g.xR=new g.oZ("subscribeButtonRenderer");var wP$=new g.oZ("subscribeEndpoint");var yM7=new g.oZ("buttonViewModel");var Iqu=new g.oZ("qrCodeRenderer");var o9d={e25:"LIVING_ROOM_APP_MODE_UNSPECIFIED",CW5:"LIVING_ROOM_APP_MODE_MAIN",Jh4:"LIVING_ROOM_APP_MODE_KIDS",ch5:"LIVING_ROOM_APP_MODE_MUSIC",PW1:"LIVING_ROOM_APP_MODE_UNPLUGGED",d_r:"LIVING_ROOM_APP_MODE_GAMING"};var bmn=new g.oZ("autoplaySwitchButtonRenderer");var o$,p8J,NDg,ViB;o$=new g.oZ("decoratedPlayerBarRenderer");p8J=new g.oZ("chapteredPlayerBarRenderer");NDg=new g.oZ("multiMarkersPlayerBarRenderer");ViB=new g.oZ("chapterRenderer");g.RLl=new g.oZ("markerRenderer");var XXn=new g.oZ("decoratedPlayheadRenderer");var cZ7=new g.oZ("desktopOverlayConfigRenderer");var duL=new g.oZ("engagementPanelSectionListRenderer");var Hm7=new g.oZ("gatedActionsOverlayViewModel");var lcD=new g.oZ("heatMarkerRenderer");var ybJ=new g.oZ("heatmapRenderer");var M_J=new g.oZ("watchToWatchTransitionRenderer");var Vy$=new g.oZ("playlistPanelRenderer");var VRd=new g.oZ("productUpsellSuggestedActionViewModel");var NQg=new g.oZ("suggestedActionTimeRangeTrigger"),FOi=new g.oZ("suggestedActionsRenderer"),s8u=new g.oZ("suggestedActionRenderer");var zLO=new g.oZ("timedMarkerDecorationRenderer");var HQJ=new g.oZ("cipher");var Og9=new g.oZ("playerVars");var nEV=new g.oZ("playerVars");var qB=g.iN.window,hWL,mxd,Gv=(qB==null?void 0:(hWL=qB.yt)==null?void 0:hWL.config_)||(qB==null?void 0:(mxd=qB.ytcfg)==null?void 0:mxd.data_)||{};g.zb("yt.config_",Gv);var U3=[];var Tdu=/^[\w.]*$/,JKu={q:!0,search_query:!0},DkO=String(UE);var gy=new function(){var Z=window.document;this.L=window;this.D=Z}; g.zb("yt.ads_.signals_.getAdSignalsString",function(Z){return Ij(d8(Z))});g.QY();var h3u="XMLHttpRequest"in g.iN?function(){return new XMLHttpRequest}:null;var qH$="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.c(qH$);var vNl={Authorization:"AUTHORIZATION","X-Goog-EOM-Visitor-Id":"EOM_VISITOR_DATA","X-Goog-Visitor-Id":"SANDBOXED_VISITOR_ID","X-Youtube-Domain-Admin-State":"DOMAIN_ADMIN_STATE","X-Youtube-Chrome-Connected":"CHROME_CONNECTED_HEADER","X-YouTube-Client-Name":"INNERTUBE_CONTEXT_CLIENT_NAME","X-YouTube-Client-Version":"INNERTUBE_CONTEXT_CLIENT_VERSION","X-YouTube-Delegation-Context":"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT","X-YouTube-Device":"DEVICE","X-Youtube-Identity-Token":"ID_TOKEN","X-YouTube-Page-CL":"PAGE_CL", "X-YouTube-Page-Label":"PAGE_BUILD_LABEL","X-Goog-AuthUser":"SESSION_INDEX","X-Goog-PageId":"DELEGATED_SESSION_ID"},gon="app debugcss debugjs expflag force_ad_params force_ad_encrypted force_viral_ad_response_params forced_experiments innertube_snapshots innertube_goldens internalcountrycode internalipoverride absolute_experiments conditional_experiments sbb sr_bns_address".split(" ").concat(g.c(qH$)),Wxn=!1,vzL=pA;g.U(ro,bW);n5.prototype.then=function(Z,I,d){return this.L?this.L.then(Z,I,d):this.Z===1&&Z?(Z=Z.call(d,this.D))&&typeof Z.then==="function"?Z:Fl(Z):this.Z===2&&I?(Z=I.call(d,this.D))&&typeof Z.then==="function"?Z:Qv(Z):this}; n5.prototype.getValue=function(){return this.D}; n5.prototype.$goog_Thenable=!0;var Zk=!1;var RZ=kD||l7;var mOl=/^([0-9\.]+):([0-9\.]+)$/;g.U(Aol,bW);Aol.prototype.name="BiscottiError";g.U(wF,bW);wF.prototype.name="BiscottiMissingError";var QP7={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},VN=null;var Uqi=g.K5(["data-"]),PHu={};var SH3=0,Qx=g.Vd?"webkit":p7?"moz":g.Fd?"ms":g.Cb?"o":"",And=g.gZ("ytDomDomGetNextId")||function(){return++SH3}; g.zb("ytDomDomGetNextId",And);var dWa={stopImmediatePropagation:1,stopPropagation:1,preventMouseEvent:1,preventManipulation:1,preventDefault:1,layerX:1,layerY:1,screenX:1,screenY:1,scale:1,rotation:1,webkitMovementX:1,webkitMovementY:1};Hy.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; Hy.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; Hy.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Gq=g.iN.ytEventsEventsListeners||{};g.zb("ytEventsEventsListeners",Gq);var O_D=g.iN.ytEventsEventsCounter||{count:0};g.zb("ytEventsEventsCounter",O_D);var zuL=Zz(function(){var Z=!1;try{var I=Object.defineProperty({},"passive",{get:function(){Z=!0}}); window.addEventListener("test",null,I)}catch(d){}return Z}),a29=Zz(function(){var Z=!1; try{var I=Object.defineProperty({},"capture",{get:function(){Z=!0}}); window.addEventListener("test",null,I)}catch(d){}return Z});var Sp;Sp=window;g.o8=Sp.ytcsi&&Sp.ytcsi.now?Sp.ytcsi.now:Sp.performance&&Sp.performance.timing&&Sp.performance.now&&Sp.performance.timing.navigationStart?function(){return Sp.performance.timing.navigationStart+Sp.performance.now()}:function(){return(new Date).getTime()};g.uN(uy,g.p);uy.prototype.In=function(Z){Z.L===void 0&&sXJ(Z);var I=Z.L;Z.D===void 0&&sXJ(Z);this.L=new g.vS(I,Z.D)}; uy.prototype.Jf=function(){return this.L||new g.vS}; uy.prototype.LS=function(){if(this.L){var Z=(0,g.o8)();if(this.N!=0){var I=this.j,d=this.L,Y=I.x-d.x;I=I.y-d.y;Y=Math.sqrt(Y*Y+I*I)/(Z-this.N);this.D[this.Z]=Math.abs((Y-this.B)/this.B)>.5?1:0;for(d=I=0;d<4;d++)I+=this.D[d]||0;I>=3&&this.V();this.B=Y}this.N=Z;this.j=this.L;this.Z=(this.Z+1)%4}}; uy.prototype.g4=function(){g.g0(this.X);g.zq(this.kS)};g.U(oK,g.p);oK.prototype.W=function(Z,I,d,Y,T){d=g.t6((0,g.u5)(d,Y||this.I0));d={target:Z,name:I,callback:d};var f;T&&zuL()&&(f={passive:!0});Z.addEventListener(I,d.callback,f);this.V.push(d);return d}; oK.prototype.a4=function(Z){for(var I=0;I=X.mT)||A.L.version>=H||A.L.objectStoreNames.contains(l)||J.push(l)}a=J;if(a.length===0){q.xS(5);break}W=Object.keys(d.options.Sn);e=O.objectStoreNames();if(d.B< g.EQ("ytidb_reopen_db_retries",0))return d.B++,O.close(),nP(new g.ox("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:d.name,expectedObjectStores:W,foundObjectStores:e})),q.return(I());if(!(d.Nd.options.version+1)throw w.close(),d.Z=!1,b2i(d,V);return q.return(w);case 8:throw Z(),B instanceof Error&&!g.x9("ytidb_async_stack_killswitch")&& (B.stack=B.stack+"\n"+P.substring(P.indexOf("\n")+1)),dw(B,d.name,"",(N=d.options.version)!=null?N:-1);}})} var d=this;if(!this.Z)throw b2i(this);if(this.L)return this.L;var Y,T={blocking:function(f){f.close()}, closed:Z,Zl5:Z,upgrade:this.options.upgrade};return this.L=Y=I()};var gML=new LN("YtIdbMeta",{Sn:{databases:{mT:1}},upgrade:function(Z,I){I(1)&&g.l2(Z,"databases",{keyPath:"actualName"})}});var mt,uq=new function(){}(new function(){});new g.f2;g.U(UO,LN);UO.prototype.D=function(Z,I,d){d=d===void 0?{}:d;return(this.options.shared?eJn:XHJ)(Z,I,Object.assign({},d))}; UO.prototype.delete=function(Z){Z=Z===void 0?{}:Z;return(this.options.shared?A4L:BKd)(this.name,Z)};var ufM={},YUu=g.da("ytGcfConfig",{Sn:(ufM.coldConfigStore={mT:1},ufM.hotConfigStore={mT:1},ufM),shared:!1,upgrade:function(Z,I){I(1)&&(g.Z4(g.l2(Z,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.Z4(g.l2(Z,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.U(D6,g.p);D6.prototype.g4=function(){for(var Z=g.t(this.D),I=Z.next();!I.done;I=Z.next()){var d=this.L;I=d.indexOf(I.value);I>=0&&d.splice(I,1)}this.D.length=0;g.p.prototype.g4.call(this)};vI.prototype.Jq=function(Z){this.hotHashData=Z;g.zb("yt.gcf.config.hotHashData",this.hotHashData||null)};var GGp=typeof TextEncoder!=="undefined"?new TextEncoder:null,fnu=GGp?function(Z){return GGp.encode(Z)}:function(Z){Z=g.eR(Z); for(var I=new Uint8Array(Z.length),d=0;d=I?!1:!0}; g.n.ud=function(){var Z=this;if(!q0(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.PO.OB("QUEUED",this.JV).then(function(I){I&&!Z.jf(I,Z.tb)?Z.pW.AB(function(){return g.h(function(d){if(d.L==1)return I.id===void 0?d.xS(2):g.m(d,Z.PO.Vl(I.id,Z.JV),2);Z.ud();g.v6(d)})}):Z.YH.QQ()&&Z.g8()})};var I9;var osi={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135, mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28, nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42, assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225, liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,liveCreationWebrtcError:526,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72, visualElementHidden:73,visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87, spacecastSummaryRequested:88,spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137, vrCopresencePartyStats:153,vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129, buyFlowStarted:136,mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165, buyFlowEvent:167,kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177, transactionFlowPaymentCallBackReceived:387,transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186, outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205, ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218, watchTimeSegment:219,appWidthLayoutError:221,accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243, deviceContextEvent:244,templateResolutionException:245,musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267, ytbFileOpened:268,tfliteModelError:269,apiTest:270,yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293, watchRestoreAttempt:294,liteAccountSignIn:296,notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317, tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337, tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359, activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378, browseThumbnailPreloadEvent:379,finalPayload:380,mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396, gelDebuggingEvent:399,webLinkTtsPlayEnd:400,clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419, sfvEffectGlThreadBlockedEvent:420,mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4, musicOfflineMixtapePreferencesChanged:16,mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440, embedsVideoDataDidChange:441,shortsFirst:443,cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,producerMediaServicesResetDetails:522,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463, getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488, unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513, connectedSessionMisattributionEvent:514,producerProjectElementModified:515,adsSeenClientLogging:517,producerEvent:518,tvhtml5CleanStart:519,deviceAccountMetricsEvent:520,derpLogEvent:521,playablesPortalEvent:523,ipValidationStarted:524,ipValidationReceived:525,reelsSequenceMutationEvent:527,watchZoomStateChange:528,metadataEditorEvent:529,kidsPrismaDeeplinksEvent:530};var kG0={},nau=g.da("ServiceWorkerLogsDatabase",{Sn:(kG0.SWHealthLog={mT:1},kG0),shared:!0,upgrade:function(Z,I){I(1)&&g.Z4(g.l2(Z,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var o2={},Q1J=0;var bKO;mk.prototype.requestComplete=function(Z,I){I&&(this.D=!0);Z=this.removeParams(Z);this.L.get(Z)||this.L.set(Z,I)}; mk.prototype.isEndpointCFR=function(Z){Z=this.removeParams(Z);return(Z=this.L.get(Z))?!1:Z===!1&&this.D?!0:null}; mk.prototype.removeParams=function(Z){return Z.split("?")[0]}; mk.prototype.removeParams=mk.prototype.removeParams;mk.prototype.isEndpointCFR=mk.prototype.isEndpointCFR;mk.prototype.requestComplete=mk.prototype.requestComplete;mk.getInstance=qt;g.U(EK,g.mv);g.n=EK.prototype;g.n.QQ=function(){return this.L.QQ()}; g.n.RC=function(Z){this.L.L=Z}; g.n.Dz=function(){var Z=window.navigator.onLine;return Z===void 0?!0:Z}; g.n.e_=function(){this.D=!0}; g.n.listen=function(Z,I){return this.L.listen(Z,I)}; g.n.XP=function(Z){Z=wS(this.L,Z);Z.then(function(I){g.x9("use_cfr_monitor")&&qt().requestComplete("generate_204",I)}); return Z}; EK.prototype.sendNetworkCheckRequest=EK.prototype.XP;EK.prototype.listen=EK.prototype.listen;EK.prototype.enableErrorFlushing=EK.prototype.e_;EK.prototype.getWindowStatus=EK.prototype.Dz;EK.prototype.networkStatusHint=EK.prototype.RC;EK.prototype.isNetworkAvailable=EK.prototype.QQ;EK.getInstance=j6L;g.U(g.HU,g.mv);g.HU.prototype.QQ=function(){var Z=g.gZ("yt.networkStatusManager.instance.isNetworkAvailable");return Z?Z.bind(this.D)():!0}; g.HU.prototype.RC=function(Z){var I=g.gZ("yt.networkStatusManager.instance.networkStatusHint").bind(this.D);I&&I(Z)}; g.HU.prototype.XP=function(Z){var I=this,d;return g.h(function(Y){d=g.gZ("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(I.D);return g.x9("skip_network_check_if_cfr")&&qt().isEndpointCFR("generate_204")?Y.return(new Promise(function(T){var f;I.RC(((f=window.navigator)==null?void 0:f.onLine)||!0);T(I.QQ())})):d?Y.return(d(Z)):Y.return(!0)})};var xEV;g.U(Gb,Sa);Gb.prototype.writeThenSend=function(Z,I){I||(I={});I=SPa(Z,I);g.sc()||(this.L=!1);Sa.prototype.writeThenSend.call(this,Z,I)}; Gb.prototype.sendThenWrite=function(Z,I,d){I||(I={});I=SPa(Z,I);g.sc()||(this.L=!1);Sa.prototype.sendThenWrite.call(this,Z,I,d)}; Gb.prototype.sendAndWrite=function(Z,I){I||(I={});I=SPa(Z,I);g.sc()||(this.L=!1);Sa.prototype.sendAndWrite.call(this,Z,I)}; Gb.prototype.awaitInitialization=function(){return this.Z.promise};var t6d=g.iN.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.zb("ytNetworklessLoggingInitializationOptions",t6d);g.cg.prototype.isReady=function(){!this.config_&&r49()&&(this.config_=g.ql());return!!this.config_};var XPg,ri,DF;XPg=g.iN.ytPubsubPubsubInstance||new g.Mc;ri=g.iN.ytPubsubPubsubSubscribedKeys||{};DF=g.iN.ytPubsubPubsubTopicToKeys||{};g.g4=g.iN.ytPubsubPubsubIsSynchronous||{};g.Mc.prototype.subscribe=g.Mc.prototype.subscribe;g.Mc.prototype.unsubscribeByKey=g.Mc.prototype.h_;g.Mc.prototype.publish=g.Mc.prototype.publish;g.Mc.prototype.clear=g.Mc.prototype.clear;g.zb("ytPubsubPubsubInstance",XPg);g.zb("ytPubsubPubsubTopicToKeys",DF);g.zb("ytPubsubPubsubIsSynchronous",g.g4); g.zb("ytPubsubPubsubSubscribedKeys",ri);var a4u={};g.U(F4,g.p);F4.prototype.append=function(Z){if(!this.D)throw Error("This does not support the append operation");Z=Z.gK();this.gK().appendChild(Z)}; g.U(si,F4);si.prototype.gK=function(){return this.L};g.U(uR,g.p);uR.prototype.onTouchStart=function(Z){this.V=!0;this.D=Z.touches.length;this.L.isActive()&&(this.L.stop(),this.B=!0);Z=Z.touches;this.j=pt9(this,Z)||Z.length!=1;var I=Z.item(0);this.j||!I?this.In=this.X=Infinity:(this.X=I.clientX,this.In=I.clientY);for(I=this.Z.length=0;I=0)}if(I||Z&&Math.pow(Z.clientX-this.X,2)+Math.pow(Z.clientY-this.In,2)>25)this.N=!0}; uR.prototype.onTouchEnd=function(Z){var I=Z.changedTouches;I&&this.V&&this.D==1&&!this.N&&!this.B&&!this.j&&pt9(this,I)&&(this.LS=Z,this.L.start());this.D=Z.touches.length;this.D===0&&(this.N=this.V=!1,this.Z.length=0);this.B=!1};var xr=Date.now().toString();var yju={};var GD=Symbol("injectionDeps");Bx.prototype.toString=function(){return"InjectionToken("+this.name+")"}; ADd.prototype.resolve=function(Z){return Z instanceof gG?MA(this,Z.key,[],!0):MA(this,Z,[])};var WT;var JW=window;var uB=g.x9("web_enable_lifecycle_monitoring")&&DR()!==0,Pkd=g.x9("web_enable_lifecycle_monitoring");rc9.prototype.cancel=function(){for(var Z=g.t(this.L),I=Z.next();!I.done;I=Z.next())I=I.value,I.jobId===void 0||I.I9||this.scheduler.ze(I.jobId),I.I9=!0;this.D.resolve()};g.n=pP.prototype;g.n.install=function(Z){this.plugins.push(Z);return this}; g.n.uninstall=function(){var Z=this;g.vj.apply(0,arguments).forEach(function(I){I=Z.plugins.indexOf(I);I>-1&&Z.plugins.splice(I,1)})}; g.n.transition=function(Z,I){var d=this;uB&&wTL(this.state);var Y=this.transitions.find(function(f){return Array.isArray(f.from)?f.from.find(function(P){return P===d.state&&f.to===Z}):f.from===d.state&&f.to===Z}); if(Y){this.D&&(UD9(this.D),this.D=void 0);Qfr(this,Z,I);this.state=Z;uB&&Gn(this.state);Y=Y.action.bind(this);var T=this.plugins.filter(function(f){return f[Z]}).map(function(f){return f[Z]}); Y(wRa(this,T),I)}else throw Error("no transition specified from "+this.state+" to "+Z);}; g.n.xyn=function(Z){var I=g.vj.apply(1,arguments);g.zF();for(var d=g.t(Z),Y=d.next(),T={};!Y.done;T={XE:void 0},Y=d.next())T.XE=Y.value,VX9(function(f){return function(){zn(f.XE.name);mF(function(){return f.XE.callback.apply(f.XE,g.c(I))}); pC(f.XE.name)}}(T))}; g.n.no4=function(Z){var I=g.vj.apply(1,arguments),d,Y,T,f;return g.h(function(P){P.L==1&&(g.zF(),d=g.t(Z),Y=d.next(),T={});if(P.L!=3){if(Y.done)return P.xS(0);T.mP=Y.value;T.gU=void 0;f=function(O){return function(){zn(O.mP.name);var a=mF(function(){return O.mP.callback.apply(O.mP,g.c(I))}); jX(a)?O.gU=g.x9("web_lifecycle_error_handling_killswitch")?a.then(function(){pC(O.mP.name)}):a.then(function(){pC(O.mP.name)},function(W){$fi(W); pC(O.mP.name)}):pC(O.mP.name)}}(T); VX9(f);return T.gU?g.m(P,T.gU,3):P.xS(3)}T={mP:void 0,gU:void 0};Y=d.next();return P.xS(2)})}; g.n.lj=function(Z){var I=g.vj.apply(1,arguments),d=this,Y=Z.map(function(T){return{iH:function(){zn(T.name);mF(function(){return T.callback.apply(T,g.c(I))}); pC(T.name)}, priority:cX(d,T)}}); Y.length&&(this.D=new rc9(Y))}; g.LQ.Object.defineProperties(pP.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var LVn;g.U(hx,pP);hx.prototype.B=function(Z,I){var d=this;this.L=g.Zb(0,function(){d.currentState==="application_navigating"&&d.transition("none")},5E3); Z(I==null?void 0:I.event)}; hx.prototype.j=function(Z,I){this.L&&(g.Kl.ze(this.L),this.L=null);Z(I==null?void 0:I.event)};var U6=[];g.zb("yt.logging.transport.getScrapedGelPayloads",function(){return U6});ee.prototype.storePayload=function(Z,I){Z=NZ(Z);this.store[Z]?this.store[Z].push(I):(this.D={},this.store[Z]=[I]);this.L++;g.x9("more_accurate_gel_parser")&&(I=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(I));return Z}; ee.prototype.smartExtractMatchingEntries=function(Z){if(!Z.keys.length)return[];for(var I=FF(this,Z.keys.splice(0,1)[0]),d=[],Y=0;Y=0){Y=!1;break a}}Y=!0}Y&&(I=q$(I))&&this.nm(I)}}; g.n.hS=function(Z){return Z}; g.n.onTouchStart=function(Z){this.Ns.onTouchStart(Z)}; g.n.onTouchMove=function(Z){this.Ns.onTouchMove(Z)}; g.n.onTouchEnd=function(Z){if(this.Ns)this.Ns.onTouchEnd(Z)}; g.n.nm=function(Z){this.layoutId?this.Hj.executeCommand(Z,this.layoutId):(Z=new g.Wj("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.nl(Z))}; g.n.createServerVe=function(Z,I){this.api.createServerVe(Z,this);this.api.setTrackingParams(Z,I)}; g.n.logVisibility=function(Z,I){this.api.hasVe(Z)&&this.api.logVisibility(Z,I,this.interactionLoggingClientData)}; g.n.g4=function(){this.clear(null);this.a4(this.y5);for(var Z=g.t(this.Bj),I=Z.next();!I.done;I=Z.next())this.a4(I.value);g.m7.prototype.g4.call(this)};g.U(HK,kw); HK.prototype.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);this.L=I;if(I.text==null&&I.icon==null)g.uL(Error("ButtonRenderer did not have text or an icon set."));else{switch(I.style||null){case "STYLE_UNKNOWN":Z="ytp-ad-button-link";break;default:Z=null}Z!=null&&g.xw(this.element,Z);I.text!=null&&(Z=g.Q1(I.text),g.Hw(Z)||(this.element.setAttribute("aria-label",Z),this.Z=new g.m7({K:"span",T:"ytp-ad-button-text",Z1:Z}),g.z(this,this.Z),this.Z.i5(this.element)));I.accessibilityData&&I.accessibilityData.accessibilityData&& I.accessibilityData.accessibilityData.label&&!g.Hw(I.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",I.accessibilityData.accessibilityData.label);I.icon!=null&&(I=bD(I.icon,this.N),I!=null&&(this.D=new g.m7({K:"span",T:"ytp-ad-button-icon",G:[I]}),g.z(this,this.D)),this.B?Za(this.element,this.D.element,0):this.D.i5(this.element))}}; HK.prototype.clear=function(){this.hide()}; HK.prototype.onClick=function(Z){kw.prototype.onClick.call(this,Z);Z=g.t(qRD(this));for(var I=Z.next();!I.done;I=Z.next())I=I.value,this.layoutId?this.Hj.executeCommand(I,this.layoutId):g.nl(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.U(Dw,g.p);Dw.prototype.g4=function(){this.D&&g.zq(this.D);this.L.clear();FT=null;g.p.prototype.g4.call(this)}; Dw.prototype.register=function(Z,I){I&&this.L.set(Z,I)}; var FT=null;g.U(ag,kw); ag.prototype.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);Z=I.hoverText||null;I=I.button&&g.y(I.button,g.Ji)||null;I==null?g.nl(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new HK(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,void 0,void 0,void 0,void 0,this.Z),g.z(this,this.button),this.button.init(Ai("button"),I,this.macros),Z&&this.button.element.setAttribute("aria-label",g.Q1(Z)),this.button.i5(this.element),this.X&&!g.MV(this.button.element, "ytp-ad-clickable")&&g.xw(this.button.element,"ytp-ad-clickable"),this.Z&&g.xw(this.button.element,"ytp-ad-hover-text-button--clean-player"),Z&&(this.D=new g.m7({K:"div",T:"ytp-ad-hover-text-container"}),this.B&&(I=new g.m7({K:"div",T:"ytp-ad-hover-text-callout"}),I.i5(this.D.element),g.z(this,I)),g.z(this,this.D),this.D.i5(this.element),I=Fg(Z),Za(this.D.element,I,0)),this.show())}; ag.prototype.hide=function(){this.button&&this.button.hide();this.D&&this.D.hide();kw.prototype.hide.call(this)}; ag.prototype.show=function(){this.button&&this.button.show();kw.prototype.show.call(this)};g.U(cG,kw); cG.prototype.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);d=(Z=I.thumbnail)&&YY(Z)||"";g.Hw(d)?Math.random()<.01&&g.uL(Error("Found AdImage without valid image URL")):(this.L?g.K2(this.element,"backgroundImage","url("+d+")"):RB(this.element,{src:d}),RB(this.element,{alt:Z&&Z.accessibility&&Z.accessibility.label||""}),I&&I.adRendererCommands&&I.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; cG.prototype.clear=function(){this.hide()};g.U(pW,kw);g.n=pW.prototype;g.n.hide=function(){kw.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.n.show=function(){this.Z=document.activeElement;kw.prototype.show.call(this);this.N.focus()}; g.n.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);this.D=I;I.dialogMessages||I.title!=null?I.confirmLabel==null?g.nl(Error("ConfirmDialogRenderer.confirmLabel was not set.")):I.cancelLabel==null?g.nl(Error("ConfirmDialogRenderer.cancelLabel was not set.")):e$L(this,I):g.nl(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.n.clear=function(){g.aL(this.L);this.hide()}; g.n.kG=function(){this.hide()}; g.n.ib=function(){var Z=this.D.cancelEndpoint;Z&&(this.layoutId?this.Hj.executeCommand(Z,this.layoutId):g.nl(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.n.ZB=function(){var Z=this.D.confirmNavigationEndpoint||this.D.confirmEndpoint;Z&&(this.layoutId?this.Hj.executeCommand(Z,this.layoutId):g.nl(Error("Missing layoutId for confirm dialog.")));this.hide()};g.U(BW,kw);g.n=BW.prototype; g.n.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);this.Z=I;if(I.defaultText==null&&I.defaultIcon==null)g.nl(Error("ToggleButtonRenderer must have either text or icon set."));else if(I.defaultIcon==null&&I.toggledIcon!=null)g.nl(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(I.style){switch(I.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":Z="ytp-ad-toggle-button-default-style";break;default:Z=null}Z!=null&&g.xw(this.N,Z)}Z={};I.defaultText? (d=g.Q1(I.defaultText),g.Hw(d)||(Z.buttonText=d,this.api.C().experiments.CS("a11y_h5_associate_survey_question")||this.L.setAttribute("aria-label",d),this.api.C().experiments.CS("fix_h5_toggle_button_a11y")&&this.D.setAttribute("aria-label",d))):g.o3(this.fS,!1);I.defaultTooltip&&(Z.tooltipText=I.defaultTooltip,this.L.hasAttribute("aria-label")||this.D.setAttribute("aria-label",I.defaultTooltip));I.defaultIcon?(d=bD(I.defaultIcon),this.updateValue("untoggledIconTemplateSpec",d),I.toggledIcon?(this.kS= !0,d=bD(I.toggledIcon),this.updateValue("toggledIconTemplateSpec",d)):(g.o3(this.X,!0),g.o3(this.B,!1)),g.o3(this.L,!1)):g.o3(this.D,!1);g.xG(Z)||this.update(Z);I.isToggled&&(g.xw(this.N,"ytp-ad-toggle-button-toggled"),this.toggleButton(I.isToggled));dBn(this);this.W(this.element,"change",this.OD);this.show()}}; g.n.onClick=function(Z){this.Bj.length>0&&(this.toggleButton(!this.isToggled()),this.OD());kw.prototype.onClick.call(this,Z)}; g.n.OD=function(){g.zL(this.N,"ytp-ad-toggle-button-toggled",this.isToggled());for(var Z=g.t(apL(this,this.isToggled())),I=Z.next();!I.done;I=Z.next())I=I.value,this.layoutId?this.Hj.executeCommand(I,this.layoutId):g.nl(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);dBn(this)}; g.n.clear=function(){this.hide()}; g.n.toggleButton=function(Z){g.zL(this.N,"ytp-ad-toggle-button-toggled",Z);this.L.checked=Z;dBn(this)}; g.n.isToggled=function(){return this.L.checked};g.U(D8,oK);D8.prototype.B=function(Z){if(Array.isArray(Z)){Z=g.t(Z);for(var I=Z.next();!I.done;I=Z.next())I=I.value,I instanceof wh$&&this.Z(I)}};g.U(BF,kw);g.n=BF.prototype;g.n.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);I.reasons?I.confirmLabel==null?g.nl(Error("AdFeedbackRenderer.confirmLabel was not set.")):(I.cancelLabel==null&&g.uL(Error("AdFeedbackRenderer.cancelLabel was not set.")),I.title==null&&g.uL(Error("AdFeedbackRenderer.title was not set.")),c87(this,I)):g.nl(Error("AdFeedbackRenderer.reasons were not set."))}; g.n.clear=function(){kc(this.B);kc(this.X);this.N.length=0;this.hide()}; g.n.hide=function(){this.L&&this.L.hide();this.D&&this.D.hide();kw.prototype.hide.call(this);this.Z&&this.Z.focus()}; g.n.show=function(){this.L&&this.L.show();this.D&&this.D.show();this.Z=document.activeElement;kw.prototype.show.call(this);this.B.focus()}; g.n.y6=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.n.IR1=function(){this.hide()}; cV.prototype.gK=function(){return this.L.element}; cV.prototype.getCommand=function(){return this.D}; cV.prototype.isChecked=function(){return this.Z.checked};g.U(la,pW);la.prototype.kG=function(Z){pW.prototype.kG.call(this,Z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; la.prototype.ib=function(Z){pW.prototype.ib.call(this,Z);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; la.prototype.ZB=function(Z){pW.prototype.ZB.call(this,Z);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.U(RE,kw);g.n=RE.prototype; g.n.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);this.B=I;if(I.dialogMessage==null&&I.title==null)g.nl(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{I.confirmLabel==null&&g.uL(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(Z=I.closeOverlayRenderer&&g.y(I.closeOverlayRenderer,g.Ji)||null)this.L=new HK(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.z(this,this.L),this.L.init(Ai("button"),Z,this.macros),this.L.i5(this.element);I.title&&(Z=g.Q1(I.title),this.updateValue("title",Z));if(I.adReasons)for(Z=I.adReasons,d=0;d=this.mJ?(this.kS.hide(),this.w4=!0,this.publish("i")):this.Z&&this.Z.isTemplated()&&(Z=Math.max(0,Math.ceil((this.mJ-Z)/1E3)),Z!=this.on&&(NW(this.Z,{TIME_REMAINING:String(Z)}),this.on=Z)))}};g.U(Vo7,J_);g.n=Vo7.prototype; g.n.init=function(Z,I,d){J_.prototype.init.call(this,Z,I,d);if(I.image&&I.image.thumbnail)if(I.headline)if(I.description)if((Z=I.actionButton&&g.y(I.actionButton,g.Ji))&&Z.navigationEndpoint){var Y=this.api.getVideoData(2);if(Y!=null)if(I.image&&I.image.thumbnail){var T=I.image.thumbnail.thumbnails;T!=null&&T.length>0&&g.Hw(g.Fp(T[0].url))&&(T[0].url=Y.profilePicture)}else g.uL(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.Z.init(Ai("ad-image"),I.image,d);this.B.init(Ai("ad-text"), I.headline,d);this.N.init(Ai("ad-text"),I.description,d);this.D.init(Ai("button"),Z,d);d=Xuu(this.D.element);Nf(this.D.element,d+" This link opens in new tab");this.kS=Z.navigationEndpoint;this.api.lc()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.Vs.bind(this));this.fS=I.startMs||0;Jv(this)}else g.nl(Error("FlyoutCtaRenderer has no valid action button."));else g.nl(Error("FlyoutCtaRenderer has no description AdText."));else g.nl(Error("FlyoutCtaRenderer has no headline AdText.")); else g.uL(Error("FlyoutCtaRenderer has no image."))}; g.n.onClick=function(Z){J_.prototype.onClick.call(this,Z);this.api.pauseVideo();!g.H7(this.D.element,Z.target)&&this.kS&&(this.layoutId?this.Hj.executeCommand(this.kS,this.layoutId):g.nl(Error("Missing layoutId for flyout cta.")))}; g.n.df=function(){if(this.L){var Z=this.L.getProgressState();(Z&&Z.current||this.mJ)&&1E3*Z.current>=this.fS&&(lR(this),g.KF(this.element,"ytp-flyout-cta-inactive"),this.D.element.removeAttribute("tabIndex"))}}; g.n.dP=function(){this.clear()}; g.n.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.Vs.bind(this))}; g.n.show=function(){this.D&&this.D.show();J_.prototype.show.call(this)}; g.n.hide=function(){this.D&&this.D.hide();J_.prototype.hide.call(this)}; g.n.Vs=function(Z){Z=="hidden"?this.show():this.hide()};g.U(wP,kw);g.n=wP.prototype; g.n.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);this.L=I;if(this.L.rectangle)for(Z=this.L.likeButton&&g.y(this.L.likeButton,mj),I=this.L.dislikeButton&&g.y(this.L.dislikeButton,mj),this.Z.init(Ai("toggle-button"),Z,d),this.D.init(Ai("toggle-button"),I,d),this.W(this.element,"change",this.uO),this.N.show(100),this.show(),d=g.t(this.L&&this.L.impressionCommands||[]),Z=d.next();!Z.done;Z=d.next())Z=Z.value,this.layoutId?this.Hj.executeCommand(Z,this.layoutId):g.nl(Error("Missing layoutId for instream user sentiment."))}; g.n.clear=function(){this.hide()}; g.n.hide=function(){this.Z.hide();this.D.hide();kw.prototype.hide.call(this)}; g.n.show=function(){this.Z.show();this.D.show();kw.prototype.show.call(this)}; g.n.uO=function(){$hn(this.element,"ytp-ad-instream-user-sentiment-selected");this.L.postMessageAction&&this.api.Rn("onYtShowToast",this.L.postMessageAction);this.N.hide()}; g.n.onClick=function(Z){this.Bj.length>0&&this.uO();kw.prototype.onClick.call(this,Z)};g.U(Hr,g.p);g.n=Hr.prototype;g.n.g4=function(){this.reset();g.p.prototype.g4.call(this)}; g.n.reset=function(){g.aL(this.N);this.j=!1;this.L&&this.L.stop();this.B.stop();this.Z&&(this.Z=!1,this.V.play())}; g.n.start=function(){this.reset();this.N.W(this.D,"mouseover",this.wC,this);this.N.W(this.D,"mouseout",this.aZ,this);this.LS&&(this.N.W(this.D,"focusin",this.wC,this),this.N.W(this.D,"focusout",this.aZ,this));this.L?this.L.start():(this.j=this.Z=!0,g.K2(this.D,{opacity:this.In}))}; g.n.wC=function(){this.Z&&(this.Z=!1,this.V.play());this.B.stop();this.L&&this.L.stop()}; g.n.aZ=function(){this.j?this.B.start():this.L&&this.L.start()}; g.n.Xd=function(){this.Z||(this.Z=!0,this.X.play(),this.j=!0)};var Mln=[new BO("b.f_",!1,0),new BO("j.s_",!1,2),new BO("r.s_",!1,4),new BO("e.h_",!1,6),new BO("i.s_",!0,8),new BO("s.t_",!1,10),new BO("p.h_",!1,12),new BO("s.i_",!1,14),new BO("f.i_",!1,16),new BO("a.b_",!1,18),new BO("a.o_",!1),new BO("g.o_",!1,22),new BO("p.i_",!1,24),new BO("p.m_",!1),new BO("n.k_",!0,20),new BO("i.f_",!1),new BO("a.s_",!0),new BO("m.c_",!1),new BO("n.h_",!1,26),new BO("o.p_",!1),new BO("m.p_",!0,28),new BO("o.a_",!1),new BO("d.p_",!1),new BO("e.i_",!1)].reduce(function(Z,I){Z[I.D]= I;return Z},{});g.U(Mf,J_);g.n=Mf.prototype; g.n.init=function(Z,I,d){J_.prototype.init.call(this,Z,I,d);this.kS=I;(this.fS=WUO(this))&&g.uL(Error("hasAdControlInClickCommands_ is true."));if(!I||g.xG(I))g.nl(Error("SkipButtonRenderer was not specified or empty."));else if(!I.message||g.xG(I.message))g.nl(Error("SkipButtonRenderer.message was not specified or empty."));else if(Z=this.B?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},I=this.api.C().Y("delhi_modern_web_player_icons"),I=bD(Z,!1,!1,I),I==null?g.nl(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+Z.iconType+ ".")):(this.api.C().Y("disable_touch_events_on_skip_button")&&(I.J=Object.assign({},I.J,{"aria-hidden":"true",ans:"false"})),this.Z=new g.m7({K:"button",zm:[this.B?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],G:[{K:"span",T:this.B?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",G:[I]}]}),g.z(this,this.Z),this.Z.i5(this.N.element),this.D=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,"ytp-ad-skip-button-text"),this.B&&this.D.element.classList.add("ytp-ad-skip-button-text-centered"), this.D.init(Ai("ad-text"),this.kS.message,d),g.z(this,this.D),Za(this.Z.element,this.D.element,0)),!this.api.C().Y("disable_touch_events_on_skip_button")){var Y=Y===void 0?null:Y;d=this.api.C();!(this.Bj.length>0)&&d.D&&(Wk?0:"ontouchstart"in document.documentElement&&(l$$()||Rq()))&&(this.a4(this.y5),Y&&this.a4(Y),this.Bj=[this.W(this.element,"touchstart",this.onTouchStart,this),this.W(this.element,"touchmove",this.onTouchMove,this),this.W(this.element,"touchend",this.onTouchEnd,this)])}}; g.n.clear=function(){this.mJ.reset();this.hide()}; g.n.hide=function(){this.N.hide();this.D&&this.D.hide();lR(this);J_.prototype.hide.call(this)}; g.n.onClick=function(Z){if(this.Z!=null){if(Z){var I=Z||window.event;I.returnValue=!1;I.preventDefault&&I.preventDefault()}var d;if(sNO(Z,{contentCpn:((d=this.api.getVideoData(1))==null?void 0:d.clientPlaybackNonce)||""})===0)this.api.Rn("onAbnormalityDetected");else if(J_.prototype.onClick.call(this,Z),this.publish("j"),this.api.Rn("onAdSkip"),this.w4||!this.fS)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.n.hS=function(Z){if(!this.w4)return this.fS&&Zv("SkipButton click commands not pruned while ALC exist"),Z;var I,d=(I=g.y(Z,g.gA))==null?void 0:I.commands;if(!d)return Z;Z=[];for(I=0;I=this.B&&EQa(this,!0)};g.U(jB,HK);jB.prototype.init=function(Z,I,d){HK.prototype.init.call(this,Z,I,d);Z=!1;I.text!=null&&(Z=g.Q1(I.text),Z=!g.Hw(Z));Z?I.navigationEndpoint==null?g.uL(Error("No visit advertiser clickthrough provided in renderer,")):I.style!=="STYLE_UNKNOWN"?g.uL(Error("Button style was not a link-style type in renderer,")):this.show():g.uL(Error("No visit advertiser text was present in the renderer."))};g.U(qS,kw); qS.prototype.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);Z=I.text;g.Hw(pv(Z))?g.uL(Error("SimpleAdBadgeRenderer has invalid or empty text")):(Z&&Z.text&&(I=Z.text,this.Z&&!this.D&&(I=this.api.C(),I=Z.text+" "+(I&&I.D?"\u2022":"\u00b7")),I={text:I,isTemplated:Z.isTemplated},Z.style&&(I.style=Z.style),Z.targetId&&(I.targetId=Z.targetId),Z=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),Z.init(Ai("simple-ad-badge"),I,d),Z.i5(this.element),g.z(this,Z)),this.show())}; qS.prototype.clear=function(){this.hide()};g.U(VH,Rj);g.U(Bp,g.dx);g.n=Bp.prototype;g.n.Yr=function(){return this.durationMs}; g.n.stop=function(){this.L&&this.handler.a4(this.L)}; g.n.W$=function(Z){this.D={seekableStart:0,seekableEnd:this.durationMs/1E3,current:Z.current};this.publish("h")}; g.n.getProgressState=function(){return this.D}; g.n.YU=function(Z){g.Nw(Z,2)&&this.publish("g")};g.U(MY,g.dx);g.n=MY.prototype;g.n.Yr=function(){return this.durationMs}; g.n.start=function(){this.L||(this.L=!0,this.timer.start())}; g.n.stop=function(){this.L&&(this.L=!1,this.timer.stop())}; g.n.W$=function(){this.jI+=100;var Z=!1;this.jI>this.durationMs&&(this.jI=this.durationMs,this.timer.stop(),Z=!0);this.D={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.jI/1E3};this.publish("h");Z&&this.publish("g")}; g.n.getProgressState=function(){return this.D};g.U(LG,J_);g.n=LG.prototype;g.n.init=function(Z,I,d){J_.prototype.init.call(this,Z,I,d);var Y;if(I==null?0:(Y=I.templatedCountdown)==null?0:Y.templatedAdText){Z=I.templatedCountdown.templatedAdText;if(!Z.isTemplated){g.uL(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.D=new cP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj);this.D.init(Ai("ad-text"),Z,{});this.D.i5(this.element);g.z(this,this.D)}this.show()}; g.n.clear=function(){this.hide()}; g.n.hide=function(){lR(this);J_.prototype.hide.call(this)}; g.n.dP=function(){this.hide()}; g.n.df=function(){if(this.L!=null){var Z=this.L.getProgressState();if(Z!=null&&Z.current!=null&&this.D){var I=this.L instanceof Bp?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:Z.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.L instanceof MY?Z.seekableEnd:this.api.getDuration(2,!1);Z=Z.current;var d,Y,T=((d=this.api.getVideoData())==null?0:(Y=d.YF)==null?0:Y.call(d))?Math.max(I-Z,0):I-Z;NW(this.D,{FORMATTED_AD_DURATION_REMAINING:String(g.ft(T)), TIME_REMAINING:String(Math.ceil(T))})}}}; g.n.show=function(){Jv(this);J_.prototype.show.call(this)};g.U(gQ,cP);gQ.prototype.onClick=function(Z){cP.prototype.onClick.call(this,Z);this.api.onAdUxClicked(this.componentType)};g.U(Oe,kw);Oe.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});if(Z=I.content){g.UC(this.element,Z);var d,Y;I=((d=I.interaction)==null?void 0:(Y=d.accessibility)==null?void 0:Y.label)||Z;this.element.setAttribute("aria-label",I)}else g.nl(Error("AdSimpleAttributedString does not have text content"))}; Oe.prototype.clear=function(){this.hide()}; Oe.prototype.onClick=function(Z){kw.prototype.onClick.call(this,Z)};g.U(ab,kw); ab.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});(Z=I.label)&&Z.content&&!g.Hw(Z.content)?(this.adBadgeText.init(Ai("ad-simple-attributed-string"),new Fi(Z)),(I=I.adPodIndex)&&I.content&&!g.Hw(I.content)&&(this.L=new Oe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),this.L.i5(this.element),g.z(this,this.L),this.L.element.classList.add("ytp-ad-badge__pod-index"),this.L.init(Ai("ad-simple-attributed-string"),new Fi(I))),this.element.classList.add(this.D?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.nl(Error("No label is returned in AdBadgeViewModel."))}; ab.prototype.show=function(){this.adBadgeText.show();var Z;(Z=this.L)==null||Z.show();kw.prototype.show.call(this)}; ab.prototype.hide=function(){this.adBadgeText.hide();var Z;(Z=this.L)==null||Z.hide();kw.prototype.hide.call(this)};g.U(hz,kw);hz.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});(Z=I.adPodIndex)&&Z.content&&!g.Hw(Z.content)&&(this.L=new Oe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),this.L.i5(this.element),g.z(this,this.L),this.L.init(Ai("ad-simple-attributed-string"),new Fi(Z)),I.visibilityCondition==="AD_POD_INDEX_VISIBILITY_CONDITION_AUTOHIDE"&&this.element.classList.add("ytp-ad-pod-index--autohide"));this.element.classList.add("ytp-ad-pod-index--stark");this.show()}; hz.prototype.show=function(){var Z;(Z=this.L)==null||Z.show();kw.prototype.show.call(this)}; hz.prototype.hide=function(){var Z;(Z=this.L)==null||Z.hide();kw.prototype.hide.call(this)};g.U(yv,kw); yv.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});if(I!=null&&I.text){var d;if(((d=I.text)==null?0:d.content)&&!g.Hw(I.text.content)){this.L=new g.m7({K:"div",T:"ytp-ad-disclosure-banner__text",Z1:I.text.content});g.z(this,this.L);this.L.i5(this.element);if(this.api.C().Y("enable_ad_disclosure_banner_a11y_fix")){var Y,T,f=(Y=I.interaction)==null?void 0:(T=Y.accessibility)==null?void 0:T.label;f||(f=I.text.content+" This link opens in new tab");Nf(this.element,f)}else{var P;Y=((f= I.interaction)==null?void 0:(P=f.accessibility)==null?void 0:P.label)||I.text.content;this.element.setAttribute("aria-label",Y)}var O;if((O=I.interaction)==null?0:O.onTap)this.D=new g.m7({K:"div",T:"ytp-ad-disclosure-banner__chevron",G:[g.i1()]}),g.z(this,this.D),this.D.i5(this.element),this.api.C().Y("enable_ad_disclosure_banner_a11y_fix")&&(xo(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.cJ));this.show()}}else g.nl(Error("No banner text found in AdDisclosureBanner."))}; yv.prototype.cJ=function(Z){if(Z.key==="Enter"||Z.key===" ")Z.preventDefault(),this.element.click()}; yv.prototype.clear=function(){this.hide()};g.U(i4,g.m7);i4.prototype.W$=function(){var Z=this.D.getProgressState(),I=Z.seekableEnd;this.api.getPresentingPlayerType()===2&&(I=this.Z?this.Z/1E3:Z.seekableEnd);this.progressBar.style.width=QJ(new O3(Z.seekableStart,I),Z.current,0)*100+"%"}; i4.prototype.onStateChange=function(){g.$D(this.api.C())||(this.api.getPresentingPlayerType()===2?this.L===-1&&(this.show(),this.L=this.D.subscribe("h",this.W$,this),this.W$()):this.L!==-1&&(this.hide(),this.D.h_(this.L),this.L=-1))};g.U(AQ,kw); AQ.prototype.init=function(Z,I,d,Y){kw.prototype.init.call(this,Z,I,d);if(I.skipOrPreviewRenderer){if(Z=g.y(I.skipOrPreviewRenderer,zy))d=new kA(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.D,this.X),d.i5(this.Tm),d.init(Ai("skip-button"),Z,this.macros),g.z(this,d);if(Z=g.y(I.skipOrPreviewRenderer,zy))var T=Z.skipOffsetMilliseconds}I.brandInteractionRenderer&&(Z=I.brandInteractionRenderer.brandInteractionRenderer,d=new wP(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj), d.i5(this.fS),d.init(Ai("instream-user-sentiment"),Z,this.macros),g.z(this,d));if(Z=g.y(I,hgg))if(Z=g.y(Z,hgg))d=new Vo7(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.D,!!I.showWithoutLinkedMediaLayout),g.z(this,d),d.i5(this.B),d.init(Ai("flyout-cta"),Z,this.macros);Y=Y&&Y.videoAdDurationSeconds;I.adBadgeRenderer&&(d=I.adBadgeRenderer,Z=g.y(d,Vv),Z!=null?(d=new ab(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,!1),g.z(this,d),d.i5(this.L),d.init(Ai("ad-badge"), Z,this.macros),this.Z=d.element):(Z=d.simpleAdBadgeRenderer,Z==null&&(Z={text:{text:"Ad",isTemplated:!1}}),d=new qS(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,!0),g.z(this,d),d.i5(this.L),d.init(Ai("simple-ad-badge"),Z,this.macros)));I.adPodIndex&&(Z=g.y(I.adPodIndex,yBd),Z!=null&&(d=new hz(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,d),d.i5(this.L),d.init(Ai("ad-pod-index"),Z)));I.adDurationRemaining&&!I.showWithoutLinkedMediaLayout&&(Z=I.adDurationRemaining.adDurationRemainingRenderer, Z==null&&(Z={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),Y=new LG(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.D,Y,!1),g.z(this,Y),Y.i5(this.L),Y.init(Ai("ad-duration-remaining"),Z,this.macros));I.adInfoRenderer&&(Y=g.y(I.adInfoRenderer,NE))&&(Z=new qE(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.element,void 0,!1),g.z(this,Z),this.Z!==null?this.L.insertBefore(Z.element,this.Z.nextSibling):Z.i5(this.L), Z.init(Ai("ad-info-hover-text-button"),Y,this.macros));I.visitAdvertiserRenderer&&(Z=g.y(I.visitAdvertiserRenderer,g.Ji))&&(d=uYL(this)&&this.N?this.N:this.L)&&(Y=new jB(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,Y),Y.i5(d),Y.init(Ai("visit-advertiser"),Z,this.macros),xo(Y.element),Z=Xuu(Y.element),Nf(Y.element,Z+" This link opens in new tab"));!(Y=this.api.C())||g.f8(Y)||g.Dh(Y)||Y.controlsType!="3"&&!Y.disableOrganicUi||(T=new i4(this.api,this.D,T,!1),T.i5(this.mJ), g.z(this,T));I.adDisclosureBannerRenderer&&(I=g.y(I.adDisclosureBannerRenderer,UpE))&&(T=new yv(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),T.i5(this.kS),T.init(Ai("ad-disclosure-banner"),I),g.z(this,T));this.api.C().Y("enable_updated_html5_player_focus_style")&&g.xw(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; AQ.prototype.clear=function(){this.hide()};g.s9d.prototype.flush=function(Z,I){Z=Z===void 0?[]:Z;I=I===void 0?!1:I;if(g.x9("enable_client_streamz_web")){Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())d=Zga(d.value),this.L&&P6(d,cZ,2,this.L),d={serializedIncrementBatch:g.Bg(d.Z())},g.g6("streamzIncremented",d,{sendIsolatedPayload:I})}}; g.U(zfi,g.s9d);var ikO=new Map;yh.prototype.set=function(Z,I,d){d=d!==void 0?Date.now()+d:void 0;this.L.set(Z,I,d)}; yh.prototype.get=function(Z){return this.L.get(Z)}; yh.prototype.remove=function(Z){this.L.remove(Z)};var Wll=null;var b4=null,EY=null,Cd=null,ELn=null;g.zb("yt.www.ads.eventcache.getLastCompanionData",function(){return b4}); g.zb("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.zb("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return EY}); g.zb("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Cd}); g.zb("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return ELn});var Gxl=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);iq.prototype.handleResponse=function(Z,I){if(!I)throw Error("request needs to be passed into ConsistencyService");var d,Y;I=((d=I.zN.context)==null?void 0:(Y=d.request)==null?void 0:Y.consistencyTokenJars)||[];var T;(Z=(T=Z.responseContext)==null?void 0:T.consistencyTokenJar)&&this.replace(I,Z)}; iq.prototype.replace=function(Z,I){Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())delete this.L[d.value.encryptedTokenJarContents];jeL(this,I)};var CyE=window.location.hostname.split(".").slice(-2).join("."),U$;RY.getInstance=function(){U$=g.gZ("yt.clientLocationService.instance");U$||(U$=new RY,g.zb("yt.clientLocationService.instance",U$));return U$}; g.n=RY.prototype; g.n.setLocationOnInnerTubeContext=function(Z){Z.client||(Z.client={});if(this.L)Z.client.locationInfo||(Z.client.locationInfo={}),Z.client.locationInfo.latitudeE7=Math.floor(this.L.coords.latitude*1E7),Z.client.locationInfo.longitudeE7=Math.floor(this.L.coords.longitude*1E7),Z.client.locationInfo.horizontalAccuracyMeters=Math.round(this.L.coords.accuracy),Z.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.Z||this.locationPlayabilityToken)Z.client.locationPlayabilityToken=this.Z|| this.locationPlayabilityToken}; g.n.handleResponse=function(Z){var I;Z=(I=Z.responseContext)==null?void 0:I.locationPlayabilityToken;Z!==void 0&&(this.locationPlayabilityToken=Z,this.L=void 0,g.rh("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=qrJ(this))&&this.localStorage.set("yt-location-playability-token",Z,15552E3):g.bl("YT_CL",JSON.stringify({loctok:Z}),15552E3,CyE,!0))}; g.n.clearLocationPlayabilityToken=function(Z){Z==="TVHTML5"?(this.localStorage=qrJ(this))&&this.localStorage.remove("yt-location-playability-token"):g.$T("YT_CL");this.Z=void 0;this.D!==-1&&(clearTimeout(this.D),this.D=-1)}; g.n.getCurrentPositionFromGeolocation=function(){var Z=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var I=!1,d=1E4;g.rh("INNERTUBE_CLIENT_NAME")==="MWEB"&&(I=!0,d=15E3);return new Promise(function(Y,T){navigator.geolocation.getCurrentPosition(function(f){Z.L=f;Y(f)},function(f){T(f)},{enableHighAccuracy:I, maximumAge:0,timeout:d})})}; g.n.createUnpluggedLocationInfo=function(Z){var I={};Z=Z.coords;if(Z==null?0:Z.latitude)I.latitudeE7=Math.floor(Z.latitude*1E7);if(Z==null?0:Z.longitude)I.longitudeE7=Math.floor(Z.longitude*1E7);if(Z==null?0:Z.accuracy)I.locationRadiusMeters=Math.round(Z.accuracy);return I}; g.n.createLocationInfo=function(Z){var I={};Z=Z.coords;if(Z==null?0:Z.latitude)I.latitudeE7=Math.floor(Z.latitude*1E7);if(Z==null?0:Z.longitude)I.longitudeE7=Math.floor(Z.longitude*1E7);return I};g.n=X2D.prototype;g.n.contains=function(Z){return Object.prototype.hasOwnProperty.call(this.L,Z)}; g.n.get=function(Z){if(this.contains(Z))return this.L[Z]}; g.n.set=function(Z,I){this.L[Z]=I}; g.n.D$=function(){return Object.keys(this.L)}; g.n.remove=function(Z){delete this.L[Z]};i7.prototype.getModuleId=function(Z){return Z.serviceId.getModuleId()}; i7.prototype.get=function(Z){a:{var I=this.mappings.get(Z.toString());switch(I.type){case "mapping":Z=I.value;break a;case "factory":I=I.value();this.mappings.set(Z.toString(),{type:"mapping",value:I});Z=I;break a;default:Z=i5(I)}}return Z}; i7.prototype.registerService=function(Z,I){this.mappings.set(Z.toString(),{type:"mapping",value:I});return Z}; new i7;var yI={},Zy7=(yI.WEB_UNPLUGGED="^unplugged/",yI.WEB_UNPLUGGED_ONBOARDING="^unplugged/",yI.WEB_UNPLUGGED_OPS="^unplugged/",yI.WEB_UNPLUGGED_PUBLIC="^unplugged/",yI.WEB_CREATOR="^creator/",yI.WEB_KIDS="^kids/",yI.WEB_EXPERIMENTS="^experiments/",yI.WEB_MUSIC="^music/",yI.WEB_REMIX="^music/",yI.WEB_MUSIC_EMBEDDED_PLAYER="^music/",yI.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",yI);$Y.prototype.B=function(Z,I,d){I=I===void 0?{}:I;d=d===void 0?ua:d;var Y={context:g.p9(Z.clickTrackingParams,!1,this.N)};var T=this.D(Z);if(T){this.L(Y,T,I);var f;I=g.R$(this.Z());(T=(f=g.y(Z.commandMetadata,g.hq))==null?void 0:f.apiUrl)&&(I=T);f=pUu(ttV(I));Z=Object.assign({},{command:Z},void 0);Y={input:f,Ak:M_(f),zN:Y,config:Z};Y.config.KD?Y.config.KD.identity=d:Y.config.KD={identity:d};return Y}d=new g.Wj("Error: Failed to create Request from Command.",Z);g.nl(d)}; g.LQ.Object.defineProperties($Y.prototype,{N:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.U(dC,$Y);g.U(Xq,dC);Xq.prototype.B=function(){return{input:"/getDatasyncIdsEndpoint",Ak:M_("/getDatasyncIdsEndpoint","GET"),zN:{}}}; Xq.prototype.Z=function(){return[]}; Xq.prototype.D=function(){}; Xq.prototype.L=function(){};var EEE={},WN$=(EEE.GET_DATASYNC_IDS=m1(Xq),EEE);var vB={},bLg=(vB["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",vB["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",vB["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",vB["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",vB["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",vB["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",vB["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", vB["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",vB["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",vB["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",vB["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",vB["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",vB["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",vB["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",vB["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", vB["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",vB["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",vB["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",vB["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",vB["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",vB["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",vB["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", vB["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",vB.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",vB["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",vB["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",vB["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",vB["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",vB["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",vB["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", vB["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",vB["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",vB["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",vB["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",vB["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",vB["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",vB["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",vB["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",vB["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",vB["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",vB.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",vB["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",vB["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",vB["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",vB["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",vB["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",vB["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",vB["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",vB["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",vB["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",vB["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",vB["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",vB["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",vB["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",vB["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",vB["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",vB["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",vB["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",vB["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",vB["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",vB["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",vB["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", vB["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",vB["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",vB["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",vB["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",vB["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",vB["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",vB["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",vB["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",vB["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", vB["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",vB["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",vB["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",vB["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",vB["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",vB["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",vB["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",vB["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", vB),lu={},MFL=(lu.auto_search="LATENCY_ACTION_AUTO_SEARCH",lu.ad_to_ad="LATENCY_ACTION_AD_TO_AD",lu.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",lu.app_startup="LATENCY_ACTION_APP_STARTUP",lu.browse="LATENCY_ACTION_BROWSE",lu.cast_splash="LATENCY_ACTION_CAST_SPLASH",lu.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",lu.channels="LATENCY_ACTION_CHANNELS",lu.chips="LATENCY_ACTION_CHIPS",lu.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",lu.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", lu.editor="LATENCY_ACTION_EDITOR",lu.embed="LATENCY_ACTION_EMBED",lu.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",lu.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",lu.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",lu.explore="LATENCY_ACTION_EXPLORE",lu.favorites="LATENCY_ACTION_FAVORITES",lu.home="LATENCY_ACTION_HOME",lu.inboarding="LATENCY_ACTION_INBOARDING",lu.landing="LATENCY_ACTION_LANDING",lu.learning="LATENCY_ACTION_LEARNING", lu.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",lu.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",lu.library="LATENCY_ACTION_LIBRARY",lu.live="LATENCY_ACTION_LIVE",lu.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",lu.management="LATENCY_ACTION_MANAGEMENT",lu.mini_app="LATENCY_ACTION_MINI_APP_PLAY",lu.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",lu.onboarding="LATENCY_ACTION_ONBOARDING",lu.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", lu.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",lu.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",lu.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",lu.prebuffer="LATENCY_ACTION_PREBUFFER",lu.prefetch="LATENCY_ACTION_PREFETCH",lu.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",lu.profile_switcher="LATENCY_ACTION_LOGIN",lu.projects="LATENCY_ACTION_PROJECTS",lu.reel_watch="LATENCY_ACTION_REEL_WATCH",lu.results="LATENCY_ACTION_RESULTS",lu.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", lu.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",lu.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",lu.review="LATENCY_ACTION_REVIEW",lu.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",lu.search_ui="LATENCY_ACTION_SEARCH_UI",lu.search_suggest="LATENCY_ACTION_SUGGEST",lu.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",lu.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",lu.seek="LATENCY_ACTION_PLAYER_SEEK",lu.settings="LATENCY_ACTION_SETTINGS",lu.store="LATENCY_ACTION_STORE", lu.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",lu.tenx="LATENCY_ACTION_TENX",lu.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",lu.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",lu.watch="LATENCY_ACTION_WATCH",lu.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",lu["watch,watch7"]="LATENCY_ACTION_WATCH",lu["watch,watch7_html5"]="LATENCY_ACTION_WATCH",lu["watch,watch7ad"]="LATENCY_ACTION_WATCH",lu["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",lu.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", lu.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",lu.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",lu.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",lu.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",lu.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",lu.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",lu.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",lu);Object.assign(MFL,bLg);g.U(Dqd,z8);var DHl=new y2("aft-recorded",Dqd);var HLV=g.iN.ytLoggingGelSequenceIdObj_||{};g.zb("ytLoggingGelSequenceIdObj_",HLV);var XT=g.iN.ytLoggingLatencyUsageStats_||{};g.zb("ytLoggingLatencyUsageStats_",XT);Iv.prototype.tick=function(Z,I,d,Y){k3(this,"tick_"+Z+"_"+I)||g.g6("latencyActionTicked",{tickName:Z,clientActionNonce:I},{timestamp:d,cttAuthInfo:Y})}; Iv.prototype.info=function(Z,I,d){var Y=Object.keys(Z).join("");k3(this,"info_"+Y+"_"+I)||(Z=Object.assign({},Z),Z.clientActionNonce=I,g.g6("latencyActionInfo",Z,{cttAuthInfo:d}))}; Iv.prototype.jspbInfo=function(Z,I,d){for(var Y="",T=0;T=T.length?(I.append(T),Z-=T.length):Z?(I.append(new Uint8Array(T.buffer,T.byteOffset,Z)),d.append(new Uint8Array(T.buffer,T.byteOffset+Z,T.length-Z)),Z=0):d.append(T);return{UH:I,yC:d}}; OA.prototype.isFocused=function(Z){return Z>=this.Z&&Z=64&&(this.j.set(Z.subarray(0,64-this.D),this.D),I=64-this.D,this.D=0,m8l(this,this.j,0));for(;I+64<=d;I+=64)m8l(this,Z,I);I=this.start&&(Z=2&&d.ssdaiAdsConfig&&Zv("Unexpected ad placement renderers length",Z.slot,null,{length:Y.length});var T;((T=d.adSlots)==null?0:T.some(function(f){var P,O;return((P=g.y(f,s1))==null?void 0:(O=P.adSlotMetadata)==null?void 0:O.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||Y.some(function(f){var P,O,a,W; return!!((P=f.renderer)==null?0:(O=P.linearAdSequenceRenderer)==null?0:(a=O.linearAds)==null?0:a.length)||!((W=f.renderer)==null||!W.instreamVideoAdRenderer)})||DAr(Z)})}; TXa.prototype.Zw=function(){ipD(this.L)};BN.prototype.zQ=function(){var Z=this;dzi(this.D,function(){var I=dB(Z.slot.clientMetadata,"metadata_type_ad_break_request_data");return I.cueProcessedMs?Z.L.get().fetch({yr:I.getAdBreakUrl,P4:new g.S8(I.Fn,I.qU),cueProcessedMs:I.cueProcessedMs}):Z.L.get().fetch({yr:I.getAdBreakUrl,P4:new g.S8(I.Fn,I.qU)})})}; BN.prototype.Zw=function(){ipD(this.D)};p$$.prototype.zQ=function(){var Z=this.slot.clientMetadata,I,d=(I=this.slot.fulfilledLayout)!=null?I:dB(Z,"metadata_type_fulfilled_layout");mMi(this.callback,this.slot,d)}; p$$.prototype.Zw=function(){ii(this.callback,this.slot,new C("Got CancelSlotFulfilling request for "+this.slot.slotType+" in DirectFulfillmentAdapter.",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_FULFILLMENT_CANCELLATION_REQUEST"),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")};Xz.prototype.build=function(Z,I){return I.fulfilledLayout||PD(I,{ZA:["metadata_type_fulfilled_layout"]})?new p$$(Z,I):this.Z(Z,I)};g.U(vb,Xz); vb.prototype.Z=function(Z,I){if(PD(I,{ZA:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new TXa(Z,I,this.L,this.D,this.hZ,this.Ms,this.Q5,this.S7,this.n_);if(PD(I,{ZA:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new BN(Z,I,this.L,this.D,this.hZ,this.Ms);throw new C("Unsupported slot with type: "+I.slotType+" and client metadata: "+BJ(I.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.U(le,Xz);le.prototype.Z=function(Z,I){throw new C("Unsupported slot with type: "+I.slotType+" and client metadata: "+BJ(I.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.n=P7J.prototype;g.n.Xx=function(){return this.slot}; g.n.Xm=function(){return this.layout}; g.n.init=function(){}; g.n.release=function(){}; g.n.startRendering=function(Z){if(Z.layoutId!==this.layout.layoutId)this.callback.b8(this.slot,Z,new j$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED");else{var I=dB(Z.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.J9(this.slot,Z),dYa(this.Z, this.slot,I)):Zv("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,Z)}}; g.n.v$=function(Z,I){Z.layoutId!==this.layout.layoutId?this.callback.b8(this.slot,Z,new j$("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):(this.callback.iQ(this.slot,Z,I),ncu(this),OpE(this))};g.U(g2,g.dx);g.n=g2.prototype;g.n.Xx=function(){return this.D.slot}; g.n.Xm=function(){return this.D.layout}; g.n.init=function(){this.Z.get().addListener(this)}; g.n.release=function(){this.Z.get().removeListener(this);this.dispose()}; g.n.Vh=function(){}; g.n.Ok=function(){}; g.n.jY=function(){}; g.n.bN=function(){}; g.n.startRendering=function(Z){var I=this;vJd(this.D,Z,function(){return void I.p7()})}; g.n.p7=function(){this.Z.get().p7(this.L)}; g.n.v$=function(Z,I){var d=this;vJd(this.D,Z,function(){var Y=d.Z.get();VA7(Y,d.L,3);d.L=[];d.callback.iQ(d.slot,Z,I)})}; g.n.g4=function(){this.Z.OZ()||this.Z.get().removeListener(this);g.dx.prototype.g4.call(this)}; g.LQ.Object.defineProperties(g2.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.D.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.D.layout}}});oq.prototype.vO=function(Z,I){I=I===void 0?!1:I;var d=(this.Z.get(Z)||[]).concat();if(I=I&&jJO(Z)){var Y=this.Z.get(I);Y&&d.push.apply(d,g.c(Y))}h6(this,Z,d);this.L.add(Z);I&&this.L.add(I)}; oq.prototype.rK=function(Z,I){I=I===void 0?!1:I;if(!this.L.has(Z)){var d=I&&jJO(Z);d&&(I=!this.L.has(d));this.vO(Z,I)}};g.U(NxL,Rj);g.U(vi,g2);g.n=vi.prototype;g.n.D5=function(Z,I){Ge("ads-engagement-panel-layout",Z,this.j.get().QL,this.Q5.get(),this.N,this.B,this.Xx(),this.Xm(),I)}; g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),g.y(this.Xm().renderingContent,M2),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(I,d,Y,T,f){return new NxL(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(Z,I){this.B===I.layoutId&&(this.N===null?this.N=this.Q5.get().fl():Zv("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)};g.U(IXr,Rj);g.U(hu,g2);g.n=hu.prototype;g.n.D5=function(Z,I){Ge("banner-image",Z,this.j.get().QL,this.Q5.get(),this.N,this.B,this.Xx(),this.Xm(),I)}; g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),g.y(this.Xm().renderingContent,cv),this.callback,"metadata_type_banner_image_layout_view_model",function(I,d,Y,T,f){return new IXr(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(Z,I){this.B===I.layoutId&&(this.N===null?this.N=this.Q5.get().fl():Zv("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)};g.U(xta,Rj);g.U(KJL,g2);g.n=KJL.prototype;g.n.D5=function(Z,I){Ge("action-companion",Z,this.j.get().QL,this.Q5.get(),this.N,this.B,this.Xx(),this.Xm(),I)}; g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),g.y(this.Xm().renderingContent,E0),this.callback,"metadata_type_action_companion_ad_renderer",function(I,d,Y,T,f){return new xta(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(Z,I){I.layoutId===this.layout.layoutId?this.EZ.rK("impression"):this.B===I.layoutId&&(this.N===null?this.N=this.Q5.get().fl():Zv("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)};g.U(cdL,Rj);g.U(hv,g2);g.n=hv.prototype;g.n.D5=function(Z,I){Ge("image-companion",Z,this.j.get().QL,this.Q5.get(),this.N,this.B,this.Xx(),this.Xm(),I)}; g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),g.y(this.Xm().renderingContent,bg),this.callback,"metadata_type_image_companion_ad_renderer",function(I,d,Y,T,f){return new cdL(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(Z,I){I.layoutId===this.layout.layoutId?this.EZ.rK("impression"):this.B===I.layoutId&&(this.N===null?this.N=this.Q5.get().fl():Zv("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)};g.U(fHB,Rj);g.U(Dz,g2);g.n=Dz.prototype;g.n.D5=function(Z,I){Ge("shopping-companion",Z,this.j.get().QL,this.Q5.get(),this.N,this.B,this.Xx(),this.Xm(),I)}; g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(I,d,Y,T,f){return new fHB(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(Z,I){I.layoutId===this.layout.layoutId?this.EZ.rK("impression"):this.B===I.layoutId&&(this.N===null?this.N=this.Q5.get().fl():Zv("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)};g.U(Um,g2);g.n=Um.prototype;g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(I,d,Y,T,f){return new xta(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(){}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)}; g.n.D5=function(){};g.n=Fra.prototype;g.n.Xx=function(){return this.slot}; g.n.Xm=function(){return this.layout}; g.n.init=function(){this.S7.get().addListener(this);this.S7.get().hx.push(this);var Z=dB(this.layout.clientMetadata,"metadata_type_video_length_seconds"),I=dB(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");QT(this.layout.h5)&&zs(this.Df.get(),this.layout.layoutId,{iK:I,Zp:Z,listener:this})}; g.n.release=function(){this.S7.get().removeListener(this);riL(this.S7.get(),this);QT(this.layout.h5)&&kR(this.Df.get(),this.layout.layoutId)}; g.n.startRendering=function(Z){this.callback.J9(this.slot,Z)}; g.n.v$=function(Z,I){Ne9(this.Ms.get())&&!this.L&&(this.EZ.rK("abandon"),this.L=!0);this.callback.iQ(this.slot,Z,I)}; g.n.Cw=function(Z){switch(Z.id){case "part2viewed":this.EZ.rK("start");this.EZ.rK("impression");break;case "videoplaytime25":this.EZ.rK("first_quartile");break;case "videoplaytime50":this.EZ.rK("midpoint");break;case "videoplaytime75":this.EZ.rK("third_quartile");break;case "videoplaytime100":Ne9(this.Ms.get())?this.L||(this.EZ.rK("complete"),this.L=!0):this.EZ.rK("complete");uV(this.EZ)&&cF(this.EZ,Infinity,!0);LJa(this.Ms.get())&&aH(this.D,Infinity,!0);break;case "engagedview":uV(this.EZ)||this.EZ.rK("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:Zv("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.n.onVolumeChange=function(){}; g.n.Nk=function(){}; g.n.jF=function(){}; g.n.PB=function(){}; g.n.onFullscreenToggled=function(){}; g.n.Xi=function(){}; g.n.C6=function(){}; g.n.gY=function(Z){LJa(this.Ms.get())&&aH(this.D,Z*1E3,!1);uV(this.EZ)&&cF(this.EZ,Z*1E3,!1)}; g.n.GJ=function(){}; g.n.Gr=function(){this.EZ.rK("active_view_measurable")}; g.n.yO=function(){this.EZ.rK("active_view_viewable")}; g.n.eE=function(){this.EZ.rK("active_view_fully_viewable_audible_half_duration")}; g.n.PF=function(){this.EZ.rK("audio_measurable")}; g.n.cF=function(){this.EZ.rK("audio_audible")};g.U(L0,g2);g.n=L0.prototype;g.n.init=function(){g2.prototype.init.call(this);var Z=dB(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),I={adsClientData:this.layout.Tb};this.L.push(new VH(Z,this.layout.layoutId,dB(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),I,!0))}; g.n.qm=function(){this.N||this.S7.get().resumeVideo(1)}; g.n.startRendering=function(Z){g2.prototype.startRendering.call(this,Z);lA(this.S7.get(),"ad-showing");this.callback.J9(this.slot,Z);this.B.fJ=this}; g.n.v$=function(Z,I){g2.prototype.v$.call(this,Z,I);Sv(this.S7.get(),"ad-showing");bA(this.B,this)}; g.n.D5=function(Z){switch(Z){case "ad-info-icon-button":(this.N=this.S7.get().y8(1))||this.S7.get().pauseVideo();break;case "visit-advertiser":this.S7.get().pauseVideo()}}; g.n.g4=function(){g2.prototype.g4.call(this)};g.U(d$,Rj);g.U(xL,g2);g.n=xL.prototype;g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(I,d,Y,T,f){return new d$(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(){}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)}; g.n.D5=function(){};g.U(n$,Rj);g.U(mT,g2);mT.prototype.init=function(){g2.prototype.init.call(this);this.L.push(new n$(g.y(this.layout.renderingContent,nz),this.layout.layoutId,{adsClientData:this.layout.Tb}))}; mT.prototype.D5=function(){bd(this.N.get(),this.B)&&u2(this.Q5.get(),3)}; mT.prototype.startRendering=function(Z){g2.prototype.startRendering.call(this,Z);this.callback.J9(this.slot,Z)}; mT.prototype.g4=function(){g2.prototype.g4.call(this)};g.U(v4,Rj);g.U(EI,g2);EI.prototype.init=function(){g2.prototype.init.call(this);var Z=g.y(this.layout.renderingContent,zz)||dB(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),I=cq(this.EZ);this.L.push(new v4(Z,I,this.layout.layoutId,{adsClientData:this.layout.Tb},!0,!0))}; EI.prototype.startRendering=function(Z){g2.prototype.startRendering.call(this,Z);this.callback.J9(this.slot,Z)}; EI.prototype.D5=function(Z,I){if(I===this.layout.layoutId)switch(Z){case "skip-button":var d;(Z=(d=dB(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:d.current)&&Z.Y2(this.Xx(),this.layout)}}; EI.prototype.g4=function(){g2.prototype.g4.call(this)};Ez.prototype.build=function(Z,I,d,Y){if(rn(Y,{ZA:["metadata_type_ad_break_response_data"],Cj:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new P7J(Z,d,Y,this.D,this.Z,this.L);throw new j$("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+BJ(Y.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.U(XBJ,Rj);g.U(TTD,g2);g.n=TTD.prototype;g.n.D5=function(Z,I){Ge("ads-engagement-panel",Z,this.j.get().QL,this.Q5.get(),this.N,this.B,this.Xx(),this.Xm(),I)}; g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),g.y(this.Xm().renderingContent,Hv),this.callback,"metadata_type_ads_engagement_panel_renderer",function(I,d,Y,T,f){return new XBJ(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(Z,I){I.layoutId===this.layout.layoutId?this.EZ.rK("impression"):this.B===I.layoutId&&(this.N===null?this.N=this.Q5.get().fl():Zv("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)};g.U(VuB,g2);g.n=VuB.prototype;g.n.D5=function(Z,I){Ge("top-banner-image-text-icon-buttoned",Z,this.j.get().QL,this.Q5.get(),this.N,this.B,this.Xx(),this.Xm(),I)}; g.n.startRendering=function(Z){YD(this.EZ,this.Xx(),this.Xm(),g.y(this.Xm().renderingContent,gM),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(I,d,Y,T,f){return new d$(I,d,Y,T,f)},this.L); g2.prototype.startRendering.call(this,Z)}; g.n.J9=function(Z,I){this.B===I.layoutId&&(this.N===null?this.N=this.Q5.get().fl():Zv("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.g4=function(){X6(this.pM(),this);g2.prototype.g4.call(this)};HX9.prototype.build=function(Z,I,d,Y){if(rn(Y,JZD())||g.y(Y.renderingContent,Hv)!==void 0)return new TTD(Z,d,Y,this.L_,this.Q5,this.pM,this.Df,this.L);if(rn(Y,gJr())||g.y(Y.renderingContent,E0)!==void 0)return new KJL(Z,d,Y,this.L_,this.Q5,this.pM,this.Df,this.L);if(rn(Y,iyE())||g.y(Y.renderingContent,bg)!==void 0)return new hv(Z,d,Y,this.L_,this.Q5,this.pM,this.Df,this.L);if(rn(Y,kB0()))return new Dz(Z,d,Y,this.L_,this.Q5,this.pM,this.Df,this.L);if(rn(Y,lRd()))return new Um(Z,d,Y,this.L_,this.Q5, this.pM,this.Df,this.L);if(rn(Y,Fxr())||g.y(Y.renderingContent,cv)!==void 0)return new hu(Z,d,Y,this.L_,this.Q5,this.pM,this.Df,this.L);if(rn(Y,UEV())||g.y(Y.renderingContent,gM)!==void 0)return new VuB(Z,d,Y,this.L_,this.Q5,this.pM,this.Df,this.L);if(rn(Y,orD()))return new xL(Z,d,Y,this.L_,this.Q5,this.pM,this.Df,this.L);if(rn(Y,MAa())||g.y(Y.renderingContent,M2)!==void 0)return new vi(Z,d,Y,this.L_,this.Q5,this.pM,this.Df,this.L);throw new j$("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+ BJ(Y.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};jnD.prototype.build=function(Z,I,d,Y){if(rn(Y,{ZA:["metadata_type_linked_player_bytes_layout_id"],Cj:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new mT(Z,d,Y,this.L_,this.Q5,this.L);throw new j$("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+BJ(Y.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.n=x5D.prototype;g.n.Xx=function(){return this.slot}; g.n.Xm=function(){return this.layout}; g.n.init=function(){}; g.n.release=function(){}; g.n.startRendering=function(Z){Z.layoutId!==this.layout.layoutId?this.callback.b8(this.slot,Z,new j$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.J9(this.slot,Z),this.EZ.rK("impression"),zO(this.PJ,Z,"normal"))}; g.n.v$=function(Z,I){Z.layoutId!==this.layout.layoutId?this.callback.b8(this.slot,Z,new j$("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.iQ(this.slot,Z,I)};g.n=MEJ.prototype;g.n.Xx=function(){return this.slot}; g.n.Xm=function(){return this.layout}; g.n.init=function(){}; g.n.release=function(){}; g.n.startRendering=function(Z){Z.layoutId!==this.layout.layoutId?this.callback.b8(this.slot,Z,new j$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.callback.J9(this.slot,Z),this.EZ.rK("impression"),zO(this.PJ,Z,"normal"))}; g.n.v$=function(Z,I){Z.layoutId!==this.layout.layoutId?this.callback.b8(this.slot,Z,new j$("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):this.callback.iQ(this.slot,Z,I)};be.prototype.build=function(Z,I,d,Y){if(!this.Ms.get().S.C().Y("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(rn(Y,kHD()))return new x5D(Z,d,Y,this.Q5,this.PJ)}else if(rn(Y,{ZA:[],Cj:["LAYOUT_TYPE_FORECASTING"]}))return new MEJ(Z,d,Y,this.Q5,this.PJ);throw new j$("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+BJ(Y.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.U(Hy$,Rj);g.U(wt,g2);g.n=wt.prototype;g.n.init=function(){g2.prototype.init.call(this);var Z=g.y(this.layout.renderingContent,gPL)||dB(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),I={adsClientData:this.layout.Tb};this.L.push(new Hy$(Z,dB(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,I))}; g.n.qm=function(){this.N||this.S7.get().resumeVideo(2)}; g.n.startRendering=function(Z){g2.prototype.startRendering.call(this,Z);this.callback.J9(this.slot,Z);this.B.fJ=this}; g.n.v$=function(Z,I){g2.prototype.v$.call(this,Z,I);bA(this.B,this)}; g.n.D5=function(Z,I){if(!fH(this.Ms.get(),"stop_handling_click_for_non_rendering_overlay_layout")||I===this.layout.layoutId){if(bd(this.j.get(),this.V))switch(Z){case "visit-advertiser-link":u2(this.Q5.get(),3)}switch(Z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.N||this.S7.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.N=this.S7.get().y8(2))||this.S7.get().pauseVideo();break; case "visit-advertiser-link":this.S7.get().pauseVideo();Kd9(this).Q3();break;case "skip-button":if(Z=Kd9(this),this.layout.renderingContent&&!ZL(this.layout.clientMetadata,"metadata_type_dai")||!Z||!Z.il){var d;(Z=(d=dB(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:d.current)&&Z.Y2(this.Xx(),this.layout)}else Zv("Requesting to skip by LegacyPlayerBytes when components enabled"),Z.t4(this.Xx(),this.layout)}}}; g.n.g4=function(){g2.prototype.g4.call(this)};g.U(HZ,g2);g.n=HZ.prototype;g.n.init=function(){g2.prototype.init.call(this);var Z=g.y(this.layout.renderingContent,CD)||dB(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),I={adsClientData:this.layout.Tb},d;(d=!!this.layout.renderingContent)||(d=VQO(this),d=!(d&&d.il));this.L.push(new VH(Z,this.layout.layoutId,dB(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),I,d))}; g.n.qm=function(){this.N||this.S7.get().resumeVideo(2)}; g.n.startRendering=function(Z){g2.prototype.startRendering.call(this,Z);this.callback.J9(this.slot,Z);this.B.fJ=this}; g.n.v$=function(Z,I){g2.prototype.v$.call(this,Z,I);bA(this.B,this)}; g.n.D5=function(Z,I){if(!this.Ms||!fH(this.Ms.get(),"stop_handling_click_for_non_rendering_overlay_layout")||I===this.layout.layoutId){if(bd(this.j.get(),this.V))switch(Z){case "visit-advertiser":u2(this.Q5.get(),3)}switch(Z){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.N||this.S7.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.N=this.S7.get().y8(2))||this.S7.get().pauseVideo();break; case "visit-advertiser":this.S7.get().pauseVideo();VQO(this).Q3();break;case "skip-button":if(Z=VQO(this),this.layout.renderingContent&&!ZL(this.layout.clientMetadata,"metadata_type_dai")||!Z||!Z.il){var d;(Z=(d=dB(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:d.current)&&Z.Y2(this.Xx(),this.layout)}else Zv("Requesting to skip by LegacyPlayerBytes"),Z.t4(this.Xx(),this.layout)}}}; g.n.g4=function(){g2.prototype.g4.call(this)};g.U(Vh$,Rj);g.U(MI,g2);g.n=MI.prototype;g.n.startRendering=function(Z){var I=this;vJd(this.D,Z,function(){I.L.push(new Vh$(dB(I.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),Z.layoutId,Z.Tb));I.p7();I.callback.J9(I.slot,Z);g.b(Gs(I.S7.get(),1),512)&&I.callback.b8(I.Xx(),I.Xm(),new j$("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.n.C6=function(){}; g.n.Xi=function(Z){if(Z.state.isError()){var I;this.callback.b8(this.Xx(),this.Xm(),new j$("A player error happened during adNotify",{playerErrorCode:(I=Z.state.Em)==null?void 0:I.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.n.onFullscreenToggled=function(){}; g.n.jF=function(){}; g.n.PB=function(){}; g.n.Nk=function(){}; g.n.onVolumeChange=function(){}; g.n.Cw=function(){}; g.n.GJ=function(){}; g.n.D5=function(){};g.U(hti,Rj);g.U(QV,g2);QV.prototype.init=function(){g2.prototype.init.call(this);var Z=g.y(this.layout.renderingContent,rHi),I=cq(this.EZ);this.L.push(new hti(Z,I,this.layout.layoutId,{adsClientData:this.layout.Tb}))}; QV.prototype.startRendering=function(Z){g2.prototype.startRendering.call(this,Z);this.callback.J9(this.slot,Z)}; QV.prototype.D5=function(Z,I){if(I===this.layout.layoutId)switch(Z){case "skip-button":var d;(Z=(d=dB(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:d.current)&&Z.Y2(this.Xx(),this.layout)}}; QV.prototype.g4=function(){g2.prototype.g4.call(this)};p_D.prototype.build=function(Z,I,d,Y){if(Z=bP(Z,d,Y,this.L_,this.S7,this.Q5,this.D,this.L,this.Ms))return Z;throw new j$("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+BJ(Y.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.n=m0a.prototype;g.n.Xx=function(){return this.slot}; g.n.Xm=function(){return this.layout}; g.n.init=function(){this.S7.get().addListener(this);this.S7.get().hx.push(this);if(this.layout.renderingContent){var Z=this.V5.get();Z=V1(Z,1).Hs/1E3}else Z=dB(this.layout.clientMetadata,"metadata_type_video_length_seconds");var I=g.y(this.layout.renderingContent,B2),d=I?n0(I.pings):dB(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");I=I?EBd(I.pings):dB(this.layout.clientMetadata,"metadata_type_active_view_identifier");QT(this.layout.h5)&&zs(this.Df.get(),this.layout.layoutId, {iK:d,Zp:Z,listener:this,u3:I})}; g.n.release=function(){this.S7.get().removeListener(this);riL(this.S7.get(),this);QT(this.layout.h5)&&kR(this.Df.get(),this.layout.layoutId)}; g.n.startRendering=function(Z){this.callback.J9(this.slot,Z)}; g.n.v$=function(Z,I){ti7(this,"abandon");this.callback.iQ(this.slot,Z,I)}; g.n.Cw=function(Z){switch(Z.id){case "part2viewed":this.EZ.rK("start");this.EZ.rK("impression");break;case "videoplaytime25":this.EZ.rK("first_quartile");break;case "videoplaytime50":this.EZ.rK("midpoint");break;case "videoplaytime75":this.EZ.rK("third_quartile");break;case "videoplaytime100":ti7(this,"complete");uV(this.EZ)&&cF(this.EZ,Infinity,!0);break;case "engagedview":uV(this.EZ)||this.EZ.rK("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:Zv("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.n.onVolumeChange=function(){}; g.n.Nk=function(){}; g.n.jF=function(){}; g.n.PB=function(){}; g.n.onFullscreenToggled=function(){}; g.n.Xi=function(Z){this.L||(g.Nw(Z,4)&&!g.Nw(Z,2)?Ihg(this.EZ,"pause"):na(Z,4)<0&&!(na(Z,2)<0)&&Ihg(this.EZ,"resume"))}; g.n.C6=function(){}; g.n.gY=function(Z){uV(this.EZ)&&cF(this.EZ,Z*1E3,!1)}; g.n.GJ=function(){ti7(this,"swipe")}; g.n.Gr=function(){this.EZ.rK("active_view_measurable")}; g.n.yO=function(){this.EZ.rK("active_view_viewable")}; g.n.eE=function(){this.EZ.rK("active_view_fully_viewable_audible_half_duration")}; g.n.PF=function(){this.EZ.rK("audio_measurable")}; g.n.cF=function(){this.EZ.rK("audio_audible")};qSJ.prototype.build=function(Z,I,d,Y){if(d.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.y(Y.renderingContent,B2)!==void 0)return new m0a(Z,d,Y,this.S7,this.Q5,this.Ms,this.Df,this.V5);I=["metadata_type_ad_placement_config"];for(var T=g.t(Ki()),f=T.next();!f.done;f=T.next())I.push(f.value);if(rn(Y,{ZA:I,Cj:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return d.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new m0a(Z,d,Y,this.S7,this.Q5,this.Ms,this.Df,this.V5):new Fra(Z,d,Y,this.S7,this.Q5, this.jK,this.Ms,this.Df);throw new j$("Unsupported layout with type: "+Y.layoutType+" and client metadata: "+BJ(Y.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var WO={contentCpn:"",e9:new Map};wuL.prototype.t9=function(Z,I){var d={};I=Object.assign({},I,(d.cc=this.pN.OF(),d));this.pN.S.D1(Z,I)};var OFv,XB; OFv={qIZ:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",UAm:"AUTHENTICATION_MALFORMED",tIS:"AUTHENTICATION_MISSING",Dkj:"BAD_REQUEST",xkS:"CAST_SESSION_DEVICE_MISMATCHED",BdS:"CAST_SESSION_VIDEO_MISMATCHED",ftj:"CAST_TOKEN_EXPIRED",iwJ:"CAST_TOKEN_FAILED",SMJ:"CAST_TOKEN_MALFORMED",zt5:"CGI_PARAMS_MALFORMED",mkm:"CGI_PARAMS_MISSING",etS:"DEVICE_FALLBACK",iAZ:"GENERIC_WITH_LINK_AND_CPN",S_j:"ERROR_HDCP",zin:"LICENSE",QK5:"VIDEO_UNAVAILABLE",uIm:"FORMAT_UNAVAILABLE",FFs:"GEO_FAILURE", bAn:"HTML5_AUDIO_RENDERER_ERROR",p3r:"GENERIC_WITHOUT_LINK",A$s:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",vm5:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",hi4:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",UO5:"HTML5_SPS_UMP_STATUS_REJECTED",Kjs:"INVALID_DRM_MESSAGE",U9J:"PURCHASE_NOT_FOUND",t3n:"PURCHASE_REFUNDED",uen:"RENTAL_EXPIRED",XSm:"RETRYABLE_ERROR",J0n:"SERVER_ERROR",vMJ:"SIGNATURE_EXPIRED",kRJ:"STOPPED_BY_ANOTHER_PLAYBACK",ZfZ:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",g45:"STREAMING_NOT_ALLOWED", MOs:"STREAM_LICENSE_NOT_FOUND",Sy4:"TOO_MANY_REQUESTS",zf5:"TOO_MANY_REQUESTS_WITH_LINK",m6Z:"TOO_MANY_STREAMS_PER_ENTITLEMENT",Qrm:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",Czj:"VIDEO_FORBIDDEN",cE4:"VIDEO_NOT_FOUND",NdJ:"BROWSER_OR_EXTENSION_ERROR"};XB={}; g.HC=(XB.ALREADY_PINNED_ON_A_DEVICE="This video has already been downloaded on the maximum number of devices allowed by the copyright holder. Before you can play the video here, it needs to be unpinned on another device.",XB.DEVICE_FALLBACK="Sorry, this video is not available on this device.",XB.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",XB.LICENSE="Sorry, there was an error licensing this video.",XB.VIDEO_UNAVAILABLE= "Video unavailable",XB.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",XB.GEO_FAILURE="This video isn't available in your country.",XB.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",XB.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",XB.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",XB.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK="Your browser does not currently recognize any of the video formats available. $BEGIN_LINKClick here to visit our frequently asked questions about HTML5 video.$END_LINK", XB.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",XB.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",XB.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",XB.PURCHASE_NOT_FOUND="This video requires payment.",XB.PURCHASE_REFUNDED="This video's purchase has been refunded.",XB.RENTAL_EXPIRED="This video's rental has expired.",XB.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",XB.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",XB.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",XB.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",XB.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",XB.SERVER_ERROR="There was an internal server error. Please try again later.",XB.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",XB.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",XB.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",XB.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",XB.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",XB.TOO_MANY_REQUESTS="Please log in to watch this video.", XB.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",XB.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",XB.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",XB.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",XB.VIDEO_FORBIDDEN="Access to this video is forbidden.",XB.VIDEO_NOT_FOUND="This video can not be found.",XB.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",XB);var aXv;var WIM=g.Vs(),eKM=WIM.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!eKM||eKM.length<2)aXv=void 0;else{var B60=WIM.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);aXv=B60&&B60.length===6?Number(B60[5].replace("_",".")):0}var Xx=aXv,ka=Xx>=0;g.U(g.De,oK);g.De.prototype.W=function(Z,I,d,Y,T){return oK.prototype.W.call(this,Z,I,d,Y,T)};var tq={},soB=(tq.FAIRPLAY="fairplay",tq.PLAYREADY="playready",tq.WIDEVINE="widevine",tq.CLEARKEY=null,tq.FLASHACCESS=null,tq.UNKNOWN=null,tq.WIDEVINE_CLASSIC=null,tq);QF.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var $i={},wZ=($i.WIDTH={name:"width",video:!0,valid:640,wP:99999},$i.HEIGHT={name:"height",video:!0,valid:360,wP:99999},$i.FRAMERATE={name:"framerate",video:!0,valid:30,wP:9999},$i.BITRATE={name:"bitrate",video:!0,valid:3E5,wP:2E9},$i.EOTF={name:"eotf",video:!0,valid:"bt709",wP:"catavision"},$i.CHANNELS={name:"channels",video:!1,valid:2,wP:99},$i.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",wP:"invalidformat"},$i.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", wP:"nope"},$i.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",wP:"av99.0.05M.08"},$i.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",wP:"invalid"},$i.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",wP:"false"},$i);var wgM=["h","H"],Vsv=["9","("],N6V=["9h","(h"],FI$=["8","*"],sBp=["a","A"],nwu=["o","O"],hKu=["m","M"],ml3=["mac3","MAC3"],qNE=["meac3","MEAC3"],py={},ccO=(py.h=wgM,py.H=wgM,py["9"]=Vsv,py["("]=Vsv,py["9h"]=N6V,py["(h"]=N6V,py["8"]=FI$,py["*"]=FI$,py.a=sBp,py.A=sBp,py.o=nwu,py.O=nwu,py.m=hKu,py.M=hKu,py.mac3=ml3,py.MAC3=ml3,py.meac3=qNE,py.MEAC3=qNE,py),SNp=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),OqL=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var r={},fF=(r["0"]="f",r["160"]="h",r["133"]="h",r["134"]="h",r["135"]="h",r["136"]="h",r["137"]="h",r["264"]="h",r["266"]="h",r["138"]="h",r["298"]="h",r["299"]="h",r["304"]="h",r["305"]="h",r["214"]="h",r["216"]="h",r["374"]="h",r["375"]="h",r["140"]="a",r["141"]="a",r["327"]="sa",r["258"]="m",r["380"]="mac3",r["328"]="meac3",r["161"]="H",r["142"]="H",r["143"]="H",r["144"]="H",r["222"]="H",r["223"]="H",r["145"]="H",r["224"]="H",r["225"]="H",r["146"]="H",r["226"]="H",r["227"]="H",r["147"]="H",r["384"]= "H",r["376"]="H",r["385"]="H",r["377"]="H",r["149"]="A",r["261"]="M",r["381"]="MAC3",r["329"]="MEAC3",r["598"]="9",r["278"]="9",r["242"]="9",r["243"]="9",r["244"]="9",r["775"]="9",r["776"]="9",r["777"]="9",r["778"]="9",r["779"]="9",r["780"]="9",r["781"]="9",r["782"]="9",r["783"]="9",r["247"]="9",r["248"]="9",r["353"]="9",r["355"]="9",r["356"]="9",r["271"]="9",r["577"]="9",r["313"]="9",r["579"]="9",r["272"]="9",r["302"]="9",r["303"]="9",r["407"]="9",r["408"]="9",r["308"]="9",r["315"]="9",r["330"]= "9h",r["331"]="9h",r["332"]="9h",r["333"]="9h",r["334"]="9h",r["335"]="9h",r["336"]="9h",r["337"]="9h",r["338"]="so",r["600"]="o",r["250"]="o",r["251"]="o",r["774"]="o",r["194"]="*",r["195"]="*",r["220"]="*",r["221"]="*",r["196"]="*",r["197"]="*",r["279"]="(",r["280"]="(",r["317"]="(",r["318"]="(",r["273"]="(",r["274"]="(",r["357"]="(",r["358"]="(",r["275"]="(",r["359"]="(",r["360"]="(",r["276"]="(",r["583"]="(",r["584"]="(",r["314"]="(",r["585"]="(",r["561"]="(",r["277"]="(",r["361"]="(h",r["362"]= "(h",r["363"]="(h",r["364"]="(h",r["365"]="(h",r["366"]="(h",r["591"]="(h",r["592"]="(h",r["367"]="(h",r["586"]="(h",r["587"]="(h",r["368"]="(h",r["588"]="(h",r["562"]="(h",r["409"]="(",r["410"]="(",r["411"]="(",r["412"]="(",r["557"]="(",r["558"]="(",r["394"]="1",r["395"]="1",r["396"]="1",r["397"]="1",r["398"]="1",r["399"]="1",r["720"]="1",r["721"]="1",r["400"]="1",r["401"]="1",r["571"]="1",r["402"]="1",r["694"]="1h",r["695"]="1h",r["696"]="1h",r["697"]="1h",r["698"]="1h",r["699"]="1h",r["700"]="1h", r["701"]="1h",r["702"]="1h",r["703"]="1h",r["386"]="3",r["387"]="w",r["406"]="6",r["787"]="1",r["788"]="1",r["548"]="1e",r["549"]="1e",r["550"]="1e",r["551"]="1e",r["809"]="1e",r["810"]="1e",r["552"]="1e",r["811"]="1e",r["812"]="1e",r["553"]="1e",r["813"]="1e",r["814"]="1e",r["554"]="1e",r["815"]="1e",r["816"]="1e",r["555"]="1e",r["817"]="1e",r["818"]="1e",r["572"]="1e",r["556"]="1e",r["645"]="(",r["646"]="(",r["647"]="(",r["648"]="(",r["649"]="(",r["650"]="(",r["651"]="(",r["652"]="(",r["653"]="(", r["654"]="(",r["655"]="(",r["656"]="(",r["657"]="(",r["658"]="(",r["659"]="(",r["660"]="(",r["661"]="(",r["662"]="(",r["663"]="(",r["664"]="(",r["665"]="(",r["666"]="(",r["667"]="(",r["668"]="(",r["669"]="(",r["670"]="(",r["671"]="(",r["672"]="(",r["673"]="(",r["674"]="(h",r["675"]="(h",r["676"]="(h",r["677"]="(h",r["678"]="(h",r["679"]="(h",r["680"]="(h",r["681"]="(h",r["682"]="(h",r["683"]="(h",r["684"]="(h",r["685"]="(h",r["686"]="(h",r["687"]="(h",r["688"]="A",r["689"]="A",r["690"]="A",r["691"]= "MEAC3",r["773"]="i",r["806"]="I",r["805"]="I",r["829"]="9",r["830"]="9",r["831"]="9",r["832"]="9",r["833"]="9",r["834"]="9",r["835"]="9",r["836"]="9",r["892"]="9",r["893"]="9",r["837"]="9",r["838"]="9",r["839"]="9",r["840"]="9",r["841"]="(",r["842"]="(",r["843"]="(",r["844"]="(",r["845"]="(",r["846"]="(",r["847"]="(",r["848"]="(",r["894"]="(",r["895"]="(",r["849"]="(",r["850"]="(",r["851"]="(",r["852"]="(",r["865"]="9",r["866"]="9",r["867"]="9",r["868"]="9",r["869"]="9",r["870"]="9",r["871"]="9", r["872"]="9",r["896"]="9",r["897"]="9",r["873"]="9",r["874"]="9",r["875"]="9",r["876"]="9",r["877"]="(",r["878"]="(",r["879"]="(",r["880"]="(",r["881"]="(",r["882"]="(",r["883"]="(",r["884"]="(",r["898"]="(",r["899"]="(",r["885"]="(",r["886"]="(",r["887"]="(",r["888"]="(",r);var xi={},VE9=(xi.STEREO_LAYOUT_UNKNOWN=0,xi.STEREO_LAYOUT_LEFT_RIGHT=1,xi.STEREO_LAYOUT_TOP_BOTTOM=2,xi);var Ug9={QUj:0,gM5:124,ZWJ:144,KTs:220,NGZ:240,xtr:340,nMZ:360,BGr:480,iWJ:588,fuS:608,SYZ:720,zEm:740,LTm:1080,Dtn:1100,kFZ:1440,M35:2160,mt5:9999,0:"QUALITY_ORDINAL_UNKNOWN",124:"QUALITY_ORDINAL_144P_SAVER",144:"QUALITY_ORDINAL_144P",220:"QUALITY_ORDINAL_240P_SAVER",240:"QUALITY_ORDINAL_240P",340:"QUALITY_ORDINAL_360P_SAVER",360:"QUALITY_ORDINAL_360P",480:"QUALITY_ORDINAL_480P",588:"QUALITY_ORDINAL_608P_SAVER",608:"QUALITY_ORDINAL_608P",720:"QUALITY_ORDINAL_720P",740:"QUALITY_ORDINAL_720P_ENHANCED", 1080:"QUALITY_ORDINAL_1080P",1100:"QUALITY_ORDINAL_1080P_ENHANCED",1440:"QUALITY_ORDINAL_1440P",2160:"QUALITY_ORDINAL_2160P",9999:"QUALITY_ORDINAL_HIGHRES"};var Ky,$b,Cy,FGL;Ky={};g.HS=(Ky.auto=0,Ky.tiny=144,Ky.light=144,Ky.small=240,Ky.medium=360,Ky.large=480,Ky.hd720=720,Ky.hd1080=1080,Ky.hd1440=1440,Ky.hd2160=2160,Ky.hd2880=2880,Ky.highres=4320,Ky);$b={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};Cy={}; FGL=(Cy.QUALITY_ORDINAL_UNKNOWN=0,Cy.QUALITY_ORDINAL_144P_SAVER=124,Cy.QUALITY_ORDINAL_144P=144,Cy.QUALITY_ORDINAL_240P_SAVER=220,Cy.QUALITY_ORDINAL_240P=240,Cy.QUALITY_ORDINAL_360P_SAVER=340,Cy.QUALITY_ORDINAL_360P=360,Cy.QUALITY_ORDINAL_480P=480,Cy.QUALITY_ORDINAL_608P_SAVER=588,Cy.QUALITY_ORDINAL_608P=608,Cy.QUALITY_ORDINAL_720P=720,Cy.QUALITY_ORDINAL_720P_ENHANCED=740,Cy.QUALITY_ORDINAL_1080P=1080,Cy.QUALITY_ORDINAL_1080P_ENHANCED=1100,Cy.QUALITY_ORDINAL_1440P=1440,Cy.QUALITY_ORDINAL_2160P=2160, Cy.QUALITY_ORDINAL_HIGHRES=9999,Cy);var Ob="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");cS.prototype.isHdr=function(){return this.L==="smpte2084"||this.L==="arib-std-b67"};Pg.prototype.DR=function(){return this.containerType===2}; Pg.prototype.isEncrypted=function(){return!!this.T_}; Pg.prototype.iT=function(){return!!this.audio}; Pg.prototype.zx=function(){return!!this.video}; var Kx=!1;g.U(oC,g.dx);g.n=oC.prototype;g.n.appendBuffer=function(Z,I,d){if(this.DA.TQ()!==this.appendWindowStart+this.start||this.DA.SN()!==this.appendWindowEnd+this.start||this.DA.Fx()!==this.timestampOffset+this.start)this.DA.supports(1),this.DA.dg(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.DA.M6(this.timestampOffset+this.start);this.DA.appendBuffer(Z,I,d)}; g.n.abort=function(){this.DA.abort()}; g.n.remove=function(Z,I){this.DA.remove(Z+this.start,I+this.start)}; g.n.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.n.clear=function(){this.DA.clear()}; g.n.dg=function(Z,I){this.appendWindowStart=Z;this.appendWindowEnd=I}; g.n.xY=function(){return this.timestampOffset+this.start}; g.n.TQ=function(){return this.appendWindowStart}; g.n.SN=function(){return this.appendWindowEnd}; g.n.M6=function(Z){this.timestampOffset=Z}; g.n.Fx=function(){return this.timestampOffset}; g.n.LN=function(Z){Z=this.DA.LN(Z===void 0?!1:Z);return Rf(Z,this.start,this.end)}; g.n.Fr=function(){return this.DA.Fr()}; g.n.eN=function(){return this.DA.eN()}; g.n.q9=function(){return this.DA.q9()}; g.n.LR=function(){return this.DA.LR()}; g.n.Vg=function(){this.DA.Vg()}; g.n.zr=function(Z){return this.DA.zr(Z)}; g.n.JL=function(){return this.DA.JL()}; g.n.wX=function(){return this.DA.wX()}; g.n.di=function(Z,I,d){this.DA.di(Z,I,d)}; g.n.JG=function(Z,I,d){this.DA.JG(Z,I,d)}; g.n.ZS=function(Z,I){return this.DA.ZS(Z,I)}; g.n.supports=function(Z){return this.DA.supports(Z)}; g.n.qe=function(){return this.DA.qe()}; g.n.isView=function(){return!0}; g.n.V9=function(){return this.DA.V9()?this.isActive:!1}; g.n.isLocked=function(){return this.NQ&&!this.isActive}; g.n.Gb=function(Z){Z=this.DA.Gb(Z);Z.vw=this.start+"-"+this.end;return Z}; g.n.W2=function(){return this.DA.W2()}; g.n.Xb=function(){return this.DA.Xb()}; g.n.D7=function(){return this.DA.D7()}; g.n.g4=function(){this.DA.St(this.hD);g.dx.prototype.g4.call(this)};var P2=!1;g.U(r4,g.dx);g.n=r4.prototype;g.n.appendBuffer=function(Z,I,d){this.Jx=!1;d&&(this.T1=d);if(Z.length){var Y;((Y=this.qC)==null?0:Y.appendBuffer)?this.qC.appendBuffer(Z):this.qC?this.qC.append(Z):this.wB&&this.wB.webkitSourceAppend(this.id,Z)}I&&(I.isEncrypted()&&(this.YW=this.T1),I.type===3&&(this.Gx=I),this.OA.push(I.m5()),this.OA.length>4&&this.OA.shift());this.Xs&&(this.Xs.length>=2||Z.length>1048576?delete this.Xs:this.Xs.push(Z))}; g.n.abort=function(){try{this.qC?this.qC.abort():this.wB&&this.wB.webkitSourceAbort(this.id)}catch(I){if(kgB){var Z=new g.Wj("Error while abort the source buffer: "+I.name+", "+I.message);g.nl(Z)}}this.T1=this.Gx=null}; g.n.remove=function(Z,I,d){this.Jx=!1;var Y;if((Y=this.qC)==null?0:Y.remove)d&&d({b:cn(this.LN()),s:Z,e:I}),this.qC.remove(Z,I)}; g.n.removeAll=function(){this.remove(this.TQ(),this.SN())}; g.n.clear=function(){this.q9()||(this.abort(),this.removeAll(),this.YW=this.T1=this.Gx=null,this.appendWindowStart=this.timestampOffset=0,this.Iu=JF([],[]),this.Jx=!1,this.Xs=Edi?[]:void 0,this.Fq=!0)}; g.n.TQ=function(){if(P2&&this.zx)return this.appendWindowStart;var Z;return((Z=this.qC)==null?void 0:Z.appendWindowStart)||0}; g.n.SN=function(){var Z;return((Z=this.qC)==null?void 0:Z.appendWindowEnd)||0}; g.n.dg=function(Z,I){this.qC&&(P2&&this.zx?(this.appendWindowStart=Z,this.qC.appendWindowEnd=I):Z>this.TQ()?(this.qC.appendWindowEnd=I,this.qC.appendWindowStart=Z):(this.qC.appendWindowStart=Z,this.qC.appendWindowEnd=I))}; g.n.xY=function(){return this.timestampOffset}; g.n.M6=function(Z){P2?this.timestampOffset=Z:this.supports(1)&&(this.qC.timestampOffset=Z)}; g.n.Fx=function(){return P2?this.timestampOffset:this.supports(1)?this.qC.timestampOffset:0}; g.n.LN=function(Z){if(Z===void 0?0:Z)return this.Jx||this.Fr()||(this.Iu=this.LN(!1),this.Jx=!0),this.Iu;try{return this.qC?this.qC.buffered:this.wB?this.wB.webkitSourceBuffered(this.id):JF([0],[Infinity])}catch(I){return JF([],[])}}; g.n.Fr=function(){var Z;return((Z=this.qC)==null?void 0:Z.updating)||!1}; g.n.q9=function(){return this.Fq}; g.n.LR=function(){return!this.Fq&&this.Fr()}; g.n.Vg=function(){this.Fq=!1}; g.n.zr=function(Z){var I=Z==null?void 0:Z.Pj;Z=Z==null?void 0:Z.containerType;return!I&&!Z||I===this.Pj&&Z===this.containerType}; g.n.JL=function(){return this.T1}; g.n.wX=function(){return this.YW}; g.n.ZS=function(Z,I){return this.containerType!==Z||this.Pj!==I}; g.n.di=function(Z,I,d){if(this.containerType!==Z||d&&this.ZS(Z,d))this.supports(4),B9()&&this.qC.changeType(I),d&&(this.Pj=d);this.containerType=Z}; g.n.JG=function(Z,I,d){this.containerType&&this.ZS(Z,I)&&B9()&&this.qC.changeType(d);this.containerType=Z;this.Pj=I}; g.n.qe=function(){return this.Gx}; g.n.isView=function(){return!1}; g.n.supports=function(Z){switch(Z){case 1:var I;return((I=this.qC)==null?void 0:I.timestampOffset)!==void 0;case 0:var d;return!((d=this.qC)==null||!d.appendBuffer);case 2:var Y;return!((Y=this.qC)==null||!Y.remove);case 3:var T,f;return!!(((T=this.qC)==null?0:T.addEventListener)&&((f=this.qC)==null?0:f.removeEventListener));case 4:return!(!this.qC||!this.qC.changeType);default:return!1}}; g.n.V9=function(){return!this.Fr()}; g.n.isLocked=function(){return!1}; g.n.Gb=function(Z){Z.to=this.Fx();Z.up=this.Fr();var I,d=((I=this.qC)==null?void 0:I.appendWindowStart)||0,Y;I=((Y=this.qC)==null?void 0:Y.appendWindowEnd)||Infinity;Z.aw=d.toFixed(3)+"-"+I.toFixed(3);return Z}; g.n.eN=function(){var Z;return((Z=this.qC)==null?void 0:Z.writeHead)||0}; g.n.W2=function(){for(var Z={},I=0;I=7&&(!I||((Y=this.t5)==null?0:Y.Y("mweb_ios_allow_playback_workaround_when_ready")))&&JqO(this,function(){g.lo(function(){DJJ(Z,Z.getCurrentTime(),0)},500)})}return I}; g.n.seekTo=function(Z){this.f0()>0&&(ka&&Xx<4&&(Z=Math.max(.1,Z)),this.setCurrentTime(Z))}; g.n.Ge=function(){if(!this.D&&this.Fm)if(this.Fm.B)try{var Z;mO(this,{l:"mer",sr:(Z=this.t5)==null?void 0:Z.qj(),rs:f_(this.Fm)});this.Fm.clear();this.D=this.Fm;this.Fm=void 0}catch(I){Z=new g.Wj("Error while clearing Media Source in MediaElement: "+I.name+", "+I.message),g.nl(Z),this.stopVideo()}else this.stopVideo()}; g.n.stopVideo=function(){var Z=this;if(!this.D){var I;(I=this.Fm)==null||P5L(I);if(l7D){if(!this.Z){var d=new HA;d.then(void 0,function(){}); this.Z=d;ua$&&this.pause();g.lo(function(){Z.Z===d&&(WW(Z),d.resolve())},200)}}else WW(this)}}; g.n.aK=function(){var Z=this.cE();return ky(Z)&&this.getDuration()?ic(Z,this.getCurrentTime()):0}; g.n.eh=function(){var Z=this.getDuration();return Z===Infinity?1:Z?this.aK()/Z:0}; g.n.Gb=function(){try{var Z=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:cn(this.bI(),",",3),vbu:cn(this.cE()),vbs:cn(this.MJ()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.f0(),vns:""+this.Xl(),vec:""+this.dB(),vemsg:this.LF(),vvol:""+this.getVolume(),vdom:""+ +this.DK(),vsrc:""+ +!!this.n6(),vw:""+Z.width,vh:""+Z.height}}catch(I){return{}}}; g.n.hasError=function(){return this.dB()>0}; g.n.addEventListener=function(Z,I){this.N.listen(Z,I,!1,this);this.Ka(Z)}; g.n.removeEventListener=function(Z,I){this.N.a4(Z,I,!1,this)}; g.n.dispatchEvent=function(Z){if(this.Z&&Z.type==="pause")return!1;if(Gga){var I,d=((I=Z.L)==null?void 0:I.timeStamp)||Infinity;I=d>performance.now()?d-Date.now()+performance.now():d;d=this.D||this.Fm;if((d==null?0:d.q9())||I<=((d==null?void 0:d.j)||0)){var Y;mO(this,{l:"mede",sr:(Y=this.t5)==null?void 0:Y.qj(),et:Z.type});return!1}if(this.kQ)return mO(this,{l:"medes",et:Z.type}),d&&Z.type==="seeking"&&(d.j=performance.now(),this.kQ=!1),!1}return this.N.dispatchEvent(Z)}; g.n.kq=function(){this.V=!1}; g.n.v4=function(){this.V=!0;this.dZ(!0)}; g.n.UJ=function(){this.V&&!this.ox()&&this.dZ(!0)}; g.n.equals=function(Z){return!!Z&&Z.gK()===this.gK()}; g.n.g4=function(){this.X&&this.removeEventListener("volumechange",this.UJ);l7D&&WW(this);g.p.prototype.g4.call(this)}; var l7D=!1,ua$=!1,Gga=!1,D3r=!1;g.n=g.ns.prototype;g.n.isPaused=function(){return g.b(this,4)}; g.n.isPlaying=function(){return g.b(this,8)&&!g.b(this,512)&&!g.b(this,64)&&!g.b(this,2)}; g.n.isOrWillBePlaying=function(){return g.b(this,8)&&!g.b(this,2)&&!g.b(this,1024)}; g.n.isCued=function(){return g.b(this,64)&&!g.b(this,8)&&!g.b(this,4)}; g.n.isBuffering=function(){return g.b(this,1)&&!g.b(this,2)}; g.n.isError=function(){return g.b(this,128)}; g.n.isSuspended=function(){return g.b(this,512)}; g.n.MZ=function(){return g.b(this,64)&&g.b(this,4)}; g.n.toString=function(){return"PSt."+this.state.toString(16)}; var E$={},bu=(E$.BUFFERING="buffering-mode",E$.CUED="cued-mode",E$.ENDED="ended-mode",E$.PAUSED="paused-mode",E$.PLAYING="playing-mode",E$.SEEKING="seeking-mode",E$.UNSTARTED="unstarted-mode",E$);g.U(jV,g.p);g.n=jV.prototype;g.n.rG=function(){return this.Z}; g.n.Xx=function(){return this.slot}; g.n.Xm=function(){return this.layout}; g.n.init=function(){var Z=dB(this.layout.clientMetadata,"metadata_type_video_length_seconds"),I=dB(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");QT(this.layout.h5)&&zs(this.Df.get(),this.layout.layoutId,{iK:I,Zp:Z,listener:this,GF:this.fN()});bE(this.Q5.get(),this);Z=this.eF;I=this.layout.layoutId;var d={GF:this.fN()};Z.L.set(I,d);this.ZJ()}; g.n.WN=function(){}; g.n.release=function(){QT(this.layout.h5)&&kR(this.Df.get(),this.layout.layoutId);Vn(this.Q5.get(),this);this.eF.L.delete(this.layout.layoutId);this.mK()}; g.n.VZ=function(){}; g.n.lV=function(){}; g.n.startRendering=function(Z){lp9(Or(this));if(PO(this,Z)){var I=this.L;n9(I.params.Lw.Ms.get(),!0)&&oQ9(I,"p_sr",{});ngn(this);this.Fz(Z);this.fN()||this.fB(!1)}}; g.n.J9=function(Z,I){if(I.layoutId===this.layout.layoutId){this.Pk="rendering";this.D=this.S7.get().isMuted()||this.S7.get().getVolume()===0;this.rK("impression");this.rK("start");if(this.S7.get().isMuted()){cJ(this,"mute");var d;Z=((d=Yk(this))==null?void 0:d.muteCommands)||[];cK(this.jK.get(),Z,this.layout.layoutId)}if(this.S7.get().isFullscreen()){this.vO("fullscreen");var Y;d=((Y=Yk(this))==null?void 0:Y.fullscreenCommands)||[];cK(this.jK.get(),d,this.layout.layoutId)}this.fN()||(Y=this.SJ.get(), Y.Z&&!Y.D&&(Y.B=!1,Y.D=!0,Y.actionType!=="ad_to_video"&&(c6("pbs",void 0,Y.actionType),g.x9("finalize_all_timelines")&&SUd(Y.actionType))));this.Ji(1);this.YG(I);var T;I=((T=Yk(this))==null?void 0:T.impressionCommands)||[];cK(this.jK.get(),I,this.layout.layoutId)}}; g.n.Zg=function(Z,I,d){this.V={lS:3,Dp:Z==="load_timeout"?402:400,errorMessage:I.message};this.rK("error");var Y;Z=((Y=Yk(this))==null?void 0:Y.errorCommands)||[];cK(this.jK.get(),Z,this.layout.layoutId);this.fN()||this.Bh.b8(this.slot,this.layout,I,d)}; g.n.lJ=function(){if(this.Pk==="rendering"){cJ(this,"pause");var Z,I=((Z=Yk(this))==null?void 0:Z.pauseCommands)||[];cK(this.jK.get(),I,this.layout.layoutId);this.Ji(2)}}; g.n.sC=function(){if(this.Pk==="rendering"){cJ(this,"resume");var Z,I=((Z=Yk(this))==null?void 0:Z.resumeCommands)||[];cK(this.jK.get(),I,this.layout.layoutId)}}; g.n.sj=function(Z,I){I=I===void 0?!1:I;if(this.Pk==="rendering"){var d={currentTimeSec:Z,flush:I};Ig(this.L,"p_ip",d);cF(this.EZ,Z*1E3,I);this.D||cF(this.EZ,Z*1E3,I===void 0?!1:I);var Y=this.D9();if(Y){Y/=1E3;if(Z>=Y*.25||I)this.rK("first_quartile"),Ig(this.L,"p_fq",d);if(Z>=Y*.5||I)this.rK("midpoint"),Ig(this.L,"p_sq",d);if(Z>=Y*.75||I)this.rK("third_quartile"),Ig(this.L,"p_tq",d);this.Ms.get().S.C().experiments.CS("enable_progress_command_flush_on_kabuki")?aH(this.N,Z*1E3,I):aH(this.N,Z*1E3,cWu(this)? I:!1)}}}; g.n.OF=function(){var Z;return((Z=V1(this.V5.get(),1))==null?void 0:Z.clientPlaybackNonce)||""}; g.n.J4=function(Z,I){Z.layoutId!==this.layout.layoutId?this.Bh.b8(this.slot,Z,new j$("Tried to stop rendering an unknown layout, this adapter requires LayoutId: "+this.layout.layoutId+("and LayoutType: "+this.layout.layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_EXIT_LAYOUT_FAILED"):I()}; g.n.iQ=function(Z,I,d){if(I.layoutId===this.layout.layoutId)switch(this.Pk="not_rendering",this.layoutExitReason=void 0,this.fN()||(Z=d!=="normal"||this.position+1===this.j)&&this.fB(Z),this.HA(d),this.Ji(0),d){case "abandoned":if(Ab(this.EZ,"impression")){var Y,T=((Y=Yk(this))==null?void 0:Y.abandonCommands)||[];cK(this.jK.get(),T,this.layout.layoutId)}break;case "normal":Y=((T=Yk(this))==null?void 0:T.completeCommands)||[];cK(this.jK.get(),Y,this.layout.layoutId);break;case "skipped":var f;Y=((f= Yk(this))==null?void 0:f.skipCommands)||[];cK(this.jK.get(),Y,this.layout.layoutId)}}; g.n.kX=function(){return this.layout.layoutId}; g.n.wv=function(){return this.V}; g.n.Gr=function(){if(this.Pk==="rendering"){this.EZ.rK("active_view_measurable");var Z,I=((Z=Yk(this))==null?void 0:Z.activeViewMeasurableCommands)||[];cK(this.jK.get(),I,this.layout.layoutId)}}; g.n.eE=function(){if(this.Pk==="rendering"){this.EZ.rK("active_view_fully_viewable_audible_half_duration");var Z,I=((Z=Yk(this))==null?void 0:Z.activeViewFullyViewableAudibleHalfDurationCommands)||[];cK(this.jK.get(),I,this.layout.layoutId)}}; g.n.yO=function(){if(this.Pk==="rendering"){this.EZ.rK("active_view_viewable");var Z,I=((Z=Yk(this))==null?void 0:Z.activeViewViewableCommands)||[];cK(this.jK.get(),I,this.layout.layoutId)}}; g.n.cF=function(){if(this.Pk==="rendering"){this.EZ.rK("audio_audible");var Z,I=((Z=Yk(this))==null?void 0:Z.activeViewAudioAudibleCommands)||[];cK(this.jK.get(),I,this.layout.layoutId)}}; g.n.PF=function(){if(this.Pk==="rendering"){this.EZ.rK("audio_measurable");var Z,I=((Z=Yk(this))==null?void 0:Z.activeViewAudioMeasurableCommands)||[];cK(this.jK.get(),I,this.layout.layoutId)}}; g.n.fB=function(Z){this.SJ.get().fB(dB(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,Z,this.position,this.j,!1)}; g.n.onFullscreenToggled=function(Z){if(this.Pk==="rendering")if(Z){this.vO("fullscreen");var I,d=((I=Yk(this))==null?void 0:I.fullscreenCommands)||[];cK(this.jK.get(),d,this.layout.layoutId)}else this.vO("end_fullscreen"),I=((d=Yk(this))==null?void 0:d.endFullscreenCommands)||[],cK(this.jK.get(),I,this.layout.layoutId)}; g.n.onVolumeChange=function(){if(this.Pk==="rendering")if(this.S7.get().isMuted()){cJ(this,"mute");var Z,I=((Z=Yk(this))==null?void 0:Z.muteCommands)||[];cK(this.jK.get(),I,this.layout.layoutId)}else cJ(this,"unmute"),Z=((I=Yk(this))==null?void 0:I.unmuteCommands)||[],cK(this.jK.get(),Z,this.layout.layoutId)}; g.n.jF=function(){}; g.n.PB=function(){}; g.n.Nk=function(){}; g.n.Cw=function(){}; g.n.GJ=function(){}; g.n.vO=function(Z){this.EZ.vO(Z,!this.D)}; g.n.rK=function(Z){this.EZ.rK(Z,!this.D)}; g.n.fN=function(){var Z=dB(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return Z===void 0?(Zv("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Ms.get().fN(Z)};g.U(aU,jV);g.n=aU.prototype;g.n.ZJ=function(){}; g.n.mK=function(){var Z=this.Q5.get();Z.Jg===this&&(Z.Jg=null);this.timer.stop()}; g.n.VZ=function(){this.timer.stop();jV.prototype.lJ.call(this)}; g.n.lV=function(){stL(this);jV.prototype.sC.call(this)}; g.n.D9=function(){return dB(this.Xm().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.n.v$=function(Z,I){var d=this;this.J4(Z,function(){d.Pk!=="rendering_stop_requested"&&(d.Pk="rendering_stop_requested",d.layoutExitReason=I,K0(d,I),d.timer.stop())})}; g.n.W$=function(){var Z=Date.now(),I=Z-this.uH;this.uH=Z;this.jI+=I;this.jI>=this.D9()?this.JD():(this.sj(this.jI/1E3),ub(this,this.jI))}; g.n.HA=function(){}; g.n.C6=function(){}; g.U(sU7,aU);g.n=sU7.prototype;g.n.Xi=function(Z){if(this.Pk!=="not_rendering"){Z=gH(this,Z);var I=this.S7.get().getPresentingPlayerType()===2;this.Pk==="rendering_start_requested"?I&&C5(Z)&&this.Ht():I?g.Nw(Z,2)?Zv("Receive player ended event during MediaBreak",this.Xx(),this.Xm()):cx(this,Z):this.xX()}}; g.n.Fz=function(){WVD(this);ck(this.S7.get());this.Q5.get().Jg=this;H6("pbp")||H6("pbs")||c6("pbp");H6("pbp","watch")||H6("pbs","watch")||c6("pbp",void 0,"watch");this.Ht()}; g.n.YG=function(Z){this.SJ.get();var I=dB(Z.clientMetadata,"metadata_type_ad_placement_config").kind,d=this.position===0;Z=dB(Z.clientMetadata,"metadata_type_linked_in_player_layout_type");Z={adBreakType:d0(I),adType:TKJ(Z)};var Y=void 0;d?I!=="AD_PLACEMENT_KIND_START"&&(Y="video_to_ad"):Y="ad_to_ad";O7("ad_mbs",void 0,Y);g.Qg(Z,Y);stL(this)}; g.n.xX=function(){this.bG()}; g.n.JD=function(){zR9(this);this.bG()}; g.U(Dd,aU);g.n=Dd.prototype;g.n.Xi=function(Z){this.Pk!=="not_rendering"&&(Z=gH(this,Z),cx(this,Z))}; g.n.Fz=function(){Zv("Not used in SSAP")}; g.n.YG=function(){stL(this)}; g.n.xX=function(){Zv("Not used in SSAP")}; g.n.JD=function(){zR9(this);this.Bh.Fs(this.Xx(),this.Xm(),"normal")}; g.U(IG,Dd);IG.prototype.v$=function(Z,I){var d=this;this.J4(Z,function(){BkJ(d.Z,I)&&(d.Pk="rendering_stop_requested",d.layoutExitReason=I,K0(d,I),d.timer.stop())})}; IG.prototype.startRendering=function(Z){lp9(Or(this));PO(this,Z)&&(ngn(this),this.Q5.get().Jg=this)};g.U(uE,jV);g.n=uE.prototype;g.n.xX=function(){this.bG()}; g.n.Xi=function(Z){if(this.Pk!=="not_rendering"){Z=gH(this,Z);var I=this.S7.get().getPresentingPlayerType()===2;this.Pk==="rendering_start_requested"?I&&C5(Z)&&this.Ht():!I||g.Nw(Z,2)?this.bG():cx(this,Z)}}; g.n.ZJ=function(){dB(this.Xm().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=dB(this.Xm().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.n.mK=function(){dB(this.Xm().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.xH){var Z=this.context.Lw,I=this.xH,d=this.Xm().layoutId;if(n9(Z.Ms.get(),!0)){var Y={};Z.t9("mccru",(Y.cid=I,Y.p_ac=d,Y))}this.xu.get().removeCueRange(this.xH)}this.xH=void 0;var T;(T=this.cQ)==null||T.dispose();this.Uu&&this.Uu.dispose()}; g.n.Fz=function(Z){var I=xD(this.Ms.get()),d=K_(this.Ms.get());if(I&&d&&!this.fN()){d=dB(Z.clientMetadata,"metadata_type_preload_player_vars");var Y=this.Ms.get();Y=g.Q4(Y.S.C().experiments,"html5_preload_wait_time_secs");d&&this.Uu&&this.Uu.start(Y*1E3)}Om9(this,Z);WVD(this);I?(d=this.B$.get(),Z=dB(Z.clientMetadata,"metadata_type_player_vars"),d.S.loadVideoByPlayerVars(Z,!1,2)):nXd(this.B$.get(),dB(Z.clientMetadata,"metadata_type_player_vars"));var T;(T=this.cQ)==null||T.start();I||this.B$.get().S.playVideo(2)}; g.n.YG=function(){var Z;(Z=this.cQ)==null||Z.stop();this.WD();(this.adCpn=OWl(this))||Zv("Media layout confirmed started, but ad CPN not set.");this.eJ.get().CK("onAdStart",this.adCpn);this.mA=Date.now()}; g.n.D9=function(){var Z;return(Z=V1(this.V5.get(),2))==null?void 0:Z.Hs}; g.n.Q3=function(){this.EZ.vO("clickthrough")}; g.n.v$=function(Z,I){var d=this;this.J4(Z,function(){if(d.Pk!=="rendering_stop_requested"){d.Pk="rendering_stop_requested";d.layoutExitReason=I;K0(d,I);var Y;(Y=d.cQ)==null||Y.stop();d.Uu&&d.Uu.stop();DPr(d)}})}; g.n.onCueRangeEnter=function(Z){if(Z!==this.xH)Zv("Received CueRangeEnter signal for unknown layout.",this.Xx(),this.Xm(),{cueRangeId:Z});else{var I=this.context.Lw,d=this.Xm().layoutId;if(n9(I.Ms.get(),!0)){var Y={};I.t9("mccre",(Y.cid=Z,Y.p_ac=d,Y))}this.xu.get().removeCueRange(this.xH);this.xH=void 0;fH(this.context.Ms.get(),"html5_ssap_flush_at_stop_rendering")&&this.fN()||(Z=dB(this.Xm().clientMetadata,"metadata_type_video_length_seconds"),this.sj(Z,!0),this.rK("complete"))}}; g.n.HA=function(Z){Z!=="abandoned"&&this.eJ.get().CK("onAdComplete");this.eJ.get().CK("onAdEnd",this.adCpn)}; g.n.WD=function(){this.xH="adcompletioncuerange:"+this.Xm().layoutId;this.xu.get().addCueRange(this.xH,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var Z=this.context.Lw,I=this.xH,d=this.Xm().layoutId;if(n9(Z.Ms.get(),!0)){var Y={};Z.t9("mccr",(Y.cid=I,Y.p_ac=d,Y))}}; g.n.onCueRangeExit=function(){}; g.n.C6=function(Z){this.Pk==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&Z>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.S7.get().pZ(!0),this.sj(Z))}; g.n.sj=function(Z,I){jV.prototype.sj.call(this,Z,I===void 0?!1:I);I=Date.now()-this.mA;var d=Z*1E3,Y={contentCpn:this.OF(),adCpn:OWl(this)};if(Z-this.H9>=5){var T=I=2||(this.P$.v$(this.layout,I),Z=fH(this.params.context.Ms.get(),"html5_ssap_pass_transition_reason")&&I==="abandoned",this.K9()&&!Z&&(fH(this.params.context.Ms.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(I)||Zv("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:I})),this.n_.get().finishSegmentByCpn(this.layout.layoutId, V1(this.V5.get(),1).clientPlaybackNonce,GO(I,this.params.context.Ms))),this.S7.get().removeListener(this),this.IV()&&WE(this.P$.rG())&&this.UK.iQ(this.slot,this.layout,this.P$.rG().L))}; g.n.gq=function(Z,I,d){phl({cpn:Z,pN:this.V5.get(),Ib:!0});this.Xm().layoutId!==Z||fH(this.params.context.Ms.get(),"html5_ssap_pass_transition_reason")&&d===5||(this.P$.rG().currentState<2&&(Z=yo(d,this.params.context.Ms),Z==="error"?this.UK.b8(this.slot,this.layout,new j$("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:d},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):zO(this.xZ, this.layout,Z)),fH(this.params.context.Ms.get(),"html5_ssap_exit_without_waiting_for_transition")||this.UK.iQ(this.slot,this.layout,this.P$.rG().L))};g.U(f0,g.p);g.n=f0.prototype;g.n.Xx=function(){return this.slot}; g.n.Xm=function(){return this.layout}; g.n.T3=function(){}; g.n.CN=function(){return this.A_[this.qR]}; g.n.uw=function(){return this.qR}; g.n.VZ=function(Z,I){var d=this.CN();I.layoutId!==qr(d,Z,I)?Zv("pauseLayout for a PlayerBytes layout that is not currently active",Z,I):d.VZ()}; g.n.lV=function(Z,I){var d=this.CN();I.layoutId!==qr(d,Z,I)?Zv("resumeLayout for a PlayerBytes layout that is not currently active",Z,I):d.lV()}; g.n.t4=function(Z,I){var d=this.CN();gRB(this,Z,I);vUr(d,Z,I)&&this.xr(d.Xx(),d.Xm(),"skipped")}; g.n.Y2=function(Z,I){var d=this.CN();WMO(this);Onl(d,Z,I)&&(Z=mIB(this,d,Z,I),Z!==void 0&&(this.fN()?Zv("Should not happen. Should delete"):bOd(this,d.Xx(),d.Xm(),Z)))}; g.n.jV=function(Z,I){var d=Object.assign({},GE(this),{layoutId:I.layoutId}),Y=d.layoutId,T=d.Ib;if(d.GF){var f={};kL(d.pN,"wrse",(f.ec=Y,f.is=T,f.ctp=Xc(Y),f))}jkn(this.x4,Z,I)}; g.n.J9=function(Z,I){var d;(d=this.CN())==null||d.J9(Z,I)}; g.n.iQ=function(Z,I,d){I.layoutId===this.Xm().layoutId&&(this.Dq=!1,X6(this.pM(),this));var Y;(Y=this.CN())==null||Y.iQ(Z,I,d)}; g.n.C6=function(Z){var I;(I=this.CN())==null||I.C6(Z)}; g.n.p5=function(Z,I,d){this.uw()===-1&&(this.callback.J9(this.slot,this.layout),this.qR++);var Y=this.CN();Y?(Y.Zg(Z,I,d),this.fN()&&this.callback.b8(this.slot,this.layout,I,d)):Zv("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.uw()),layoutId:this.Xm().layoutId})}; g.n.onFullscreenToggled=function(Z){var I;(I=this.CN())==null||I.onFullscreenToggled(Z)}; g.n.jF=function(Z){var I;(I=this.CN())==null||I.jF(Z)}; g.n.Nk=function(Z){var I;(I=this.CN())==null||I.Nk(Z)}; g.n.onVolumeChange=function(){var Z;(Z=this.CN())==null||Z.onVolumeChange()}; g.n.wl=function(Z,I,d){zc(this.x4,Z,I,d)}; g.n.z6=function(Z){Z.startRendering(Z.Xm())}; g.n.init=function(){var Z=dB(this.Xm().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=this);if(this.A_.length<1)throw new C("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.A_.length)});if(Z=dB(this.Xm().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Z.current=this;Z=g.t(this.A_);for(var I=Z.next();!I.done;I=Z.next())I=I.value,I.init(),rwd(this.x4,this.slot,I.Xm()),uBi(this.x4,this.slot,I.Xm()); if(this.fN())for(this.V5.get().addListener(this),MfE(ZPu(this),this.V5.get()),Z=ZPu(this),Z=g.t(Z),I=Z.next();!I.done;I=Z.next())this.c7(I.value)}; g.n.c7=function(Z){var I=dB(Z.clientMetadata,"metadata_type_player_vars");I?(Z.layoutType!=="LAYOUT_TYPE_MEDIA"&&Zv("Non-video ad contains playerVars",this.slot,Z),this.B$.get().addPlayerResponseForAssociation({playerVars:I})):(Z=Zip(Z),this.B$.get().addPlayerResponseForAssociation({zY:Z}))}; g.n.release=function(){var Z=dB(this.Xm().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=null);if(Z=dB(this.Xm().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))Z.current=null;Z=g.t(this.A_);for(var I=Z.next();!I.done;I=Z.next())I=I.value,aq9(this.x4,this.slot,I.Xm()),I.release();this.fN()&&(this.V5.get().removeListener(this),dE9())}; g.n.J4=function(Z){return Z.layoutId!==this.Xm().layoutId?(this.callback.b8(this.Xx(),Z,new j$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Xm().layoutId+("and LayoutType: "+this.Xm().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.n.I7=function(){this.S7.get().addListener(this);pR(this.pM(),this)}; g.n.Xi=function(Z){if(Z.state.isError()){var I,d;this.p5((I=Z.state.Em)==null?void 0:I.errorCode,new j$("There was a player error during this media layout.",{playerErrorCode:(d=Z.state.Em)==null?void 0:d.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(I=this.CN())&&I.Xi(Z)}; g.n.fN=function(){var Z=dB(this.Xx().clientMetadata,"metadata_type_eligible_for_ssap");return Z===void 0?(Zv("Expected SSAP eligibility in PlayerBytes slots",this.Xx(),this.Xm()),!1):this.Ms.get().fN(Z)}; g.n.PB=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.Cw=function(){}; g.n.GJ=function(){}; g.U(PY,f0);g.n=PY.prototype;g.n.Tf=function(Z,I,d){this.xr(Z,I,d)}; g.n.OS=function(Z,I){this.xr(Z,I,"error")}; g.n.xr=function(Z,I,d){var Y=this;E_$(this,Z,I,d,function(){Kh(Y,Y.uw()+1)})}; g.n.startRendering=function(Z){this.J4(Z)&&(this.I7(),kNu(this.SJ.get()),$Bi(this.Ms.get())||ck(this.S7.get()),this.uw()===-1&&Kh(this,this.uw()+1))}; g.n.v$=function(Z,I){var d=this;this.Dq=!0;this.uw()===this.A_.length?this.callback.iQ(this.slot,this.layout,I):(Z=this.CN(),Z.v$(Z.Xm(),I),this.f3=function(){d.callback.iQ(d.slot,d.layout,I)}); this.S7.get().S.Qb();nXd(this.B$.get(),{});Z=Gs(this.S7.get(),1);Z.isPaused()&&!g.b(Z,2)&&this.S7.get().playVideo();this.S7.get().removeListener(this);this.Dq&&Ood(this)}; g.n.gq=function(){}; g.n.Zv=function(){}; g.n.Fs=function(){}; g.U(ai,f0);g.n=ai.prototype;g.n.Tf=function(Z,I,d){Z=Object.assign({},GE(this),{layoutId:I.layoutId,layoutExitReason:d});I=Z.layoutId;d=Z.layoutExitReason;var Y={};kL(Z.pN,"prse",(Y.xc=I,Y.ler=d,Y.ctp=Xc(I),Y))}; g.n.OS=function(){Zv("onSubLayoutError in SSAP")}; g.n.xr=function(){Zv("exitSubLayoutAndPlayNext in SSAP")}; g.n.CN=function(){return this.i8}; g.n.uw=function(){var Z=this;return this.A_.findIndex(function(I){var d;return I.Xm().layoutId===((d=Z.i8)==null?void 0:d.Xm().layoutId)})}; g.n.z6=function(Z){uZ(this.i8===void 0,"replacing another adapter");this.i8=Z;Z.startRendering(Z.Xm())}; g.n.wl=function(Z,I,d){zc(this.x4,Z,I,d);var Y;uZ(I.layoutId===((Y=this.i8)==null?void 0:Y.Xm().layoutId),"currentAdapter does not match exiting layout",{slot:Z?"slot: "+Z.slotType:"",subLayout:RA(I)})&&(this.i8=void 0)}; g.n.release=function(){f0.prototype.release.call(this);uZ(this.i8===void 0,"currentAdapter is still active during release");this.i8=void 0}; g.n.K9=function(){return this.S7.get().getPresentingPlayerType()===2}; g.n.v$=function(Z,I){function d(){um(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(I)||Zv("Composite stopRendering: Unexpected layout exit reason",this.slot,Z,{layoutExitReason:I}))} function Y(){this.i8&&lm(this,this.i8,I);if(this.K9()&&(!um(this)||I!=="abandoned")){d.call(this);var f;var P=((f=this.V5.get().S.getVideoData())==null?void 0:f.clientPlaybackNonce)||"";f=V1(this.V5.get(),1).clientPlaybackNonce;this.n_.get().finishSegmentByCpn(P,f,GO(I,this.Ms))}zFi(this,I)} function T(){if(this.i8){var f=this.i8;f.rG().currentState<2&&f.v$(f.Xm(),I);f=um(this)&&I==="abandoned";this.K9()&&!f&&(d.call(this),this.n_.get().finishSegmentByCpn(this.i8.Xm().layoutId,V1(this.V5.get(),1).clientPlaybackNonce,GO(I,this.Ms)))}} uZ(Z.layoutId===this.Xm().layoutId,"StopRendering for wrong layout")&&BkJ(this.Vn.D,I)&&(this.IV()?Y.call(this):T.call(this))}; g.n.iQ=function(Z,I,d){f0.prototype.iQ.call(this,Z,I,d);I.layoutId===this.Xm().layoutId&&this.S7.get().removeListener(this)}; g.n.OF=function(){return V1(this.V5.get(),1).clientPlaybackNonce}; g.n.gq=function(Z,I,d){phl(Object.assign({},GE(this),{cpn:Z}));if(!um(this)||d!==5)if(this.IV()){if(this.i8&&this.i8.Xm().layoutId!==I){var Y=this.i8.Xm().layoutId;Y!==Z&&Zv("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:Y,exitingCpn:Z,enteringCpn:I});Z=yo(d,this.Ms);lm(this,this.i8,Z)}else this.i8&&Zv("onClipExited: active layout is entering again");I===this.OF()&&ItE(this,d)}else{if(this.i8&&this.i8.Xm().layoutId===Z)ImE(this,this.i8,d);else{var T;Zv("Exiting cpn does not match active cpn", this.slot,(Y=this.i8)==null?void 0:Y.Xm(),{exitingCpn:Z,transitionReason:d,activeCpn:(T=this.i8)==null?void 0:T.Xm().layoutId})}I===this.OF()&&(this.i8!==void 0&&(Zv("active adapter is not properly exited",this.slot,this.layout,{activeLayout:RA(this.i8.Xm())}),ImE(this,this.i8,d)),ItE(this,d),zFi(this,this.Vn.D.L))}}; g.n.IV=function(){return fH(this.Ms.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.n.startRendering=function(Z){this.J4(Z)&&(Z=this.Vn,uZ(Z.L===1,"tickStartRendering: state is not initial"),Z.L=2,this.I7())}; g.n.Zv=function(Z){xJB(Object.assign({},GE(this),{cpn:Z}));var I=this.A_.find(function(d){return d.Xm().layoutId===Z}); I?(this.Vn.L!==2&&(kxn(this.OP,this.slot.slotId),uZ(this.Vn.L===2,"Expect started"),this.callback.J9(this.slot,this.layout)),this.z6(I),jkn(this.x4,this.slot,I.Xm())):PId(this,Z)}; g.n.t4=function(Z,I){gRB(this,Z,I);var d=this.CN();d?vUr(d,Z,I)&&E0n(this,"skipped"):oSn(this,"onSkipRequested")}; g.n.Y2=function(Z,I){var d;a:{if(d=this.CN()){if(WMO(this),Onl(d,Z,I)&&(Z=mIB(this,d,Z,I),Z!==void 0)){d={VN:d,DjS:this.A_[Z]};break a}}else oSn(this,"SkipWithAdPodSkip");d=void 0}if(Z=d)d=Z.VN,I=Z.DjS,Z=d.Xm().layoutId,this.IV()?lm(this,d,"skipped"):d.v$(d.Xm(),"skipped"),d=I.Xm().layoutId,this.n_.get().finishSegmentByCpn(Z,d,GO("skipped",this.Ms))}; g.n.jV=function(){Zv("Not used in html5_ssap_fix_layout_exit")}; g.n.Xi=function(Z){var I;(I=this.CN())==null||I.Xi(Z)}; g.n.p5=function(){Zv("Not used in html5_ssap_fix_layout_exit")}; g.n.Fs=function(Z,I,d){var Y;if(((Y=this.CN())==null?void 0:Y.Xm().layoutId)!==I.layoutId)return void Zv("requestToExitSubLayout: wrong layout");E0n(this,d)};g.U(yj,g.p);g.n=yj.prototype;g.n.Xx=function(){return this.P$.Xx()}; g.n.Xm=function(){return this.P$.Xm()}; g.n.init=function(){var Z=dB(this.Xm().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=this);this.ZJ()}; g.n.ZJ=function(){this.P$.init()}; g.n.release=function(){var Z=dB(this.Xm().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");Z&&(Z.current=null);this.mK()}; g.n.mK=function(){this.P$.release()}; g.n.VZ=function(){this.P$.VZ()}; g.n.lV=function(){this.P$.lV()}; g.n.t4=function(Z,I){Zv("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Xx(),this.Xm(),{requestingSlot:Z,requestingLayout:I})}; g.n.startRendering=function(Z){Z.layoutId!==this.Xm().layoutId?this.callback.b8(this.Xx(),Z,new j$("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Xm().layoutId+("and LayoutType: "+this.Xm().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.S7.get().addListener(this),pR(this.pM(),this),kNu(this.SJ.get()),$Bi(this.Ms.get())||ck(this.S7.get()),this.P$.startRendering(Z))}; g.n.v$=function(Z,I){this.Dq=!0;this.P$.v$(Z,I);this.S7.get().S.Qb();nXd(this.B$.get(),{});Z=Gs(this.S7.get(),1);Z.isPaused()&&!g.b(Z,2)&&this.S7.get().playVideo();this.S7.get().removeListener(this);this.Dq&&this.P$.xX()}; g.n.J9=function(Z,I){this.P$.J9(Z,I)}; g.n.iQ=function(Z,I,d){I.layoutId===this.Xm().layoutId&&(this.Dq=!1,X6(this.pM(),this));this.P$.iQ(Z,I,d);I.layoutId===this.Xm().layoutId&&x9u(this.SJ.get())}; g.n.C6=function(Z){this.P$.C6(Z)}; g.n.Xi=function(Z){if(Z.state.isError()){var I,d;this.p5((I=Z.state.Em)==null?void 0:I.errorCode,new j$("There was a player error during this media layout.",{playerErrorCode:(d=Z.state.Em)==null?void 0:d.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.P$.Xi(Z)}; g.n.p5=function(Z,I,d){this.P$.Zg(Z,I,d)}; g.n.onFullscreenToggled=function(Z){this.P$.onFullscreenToggled(Z)}; g.n.jF=function(Z){this.P$.jF(Z)}; g.n.Nk=function(Z){this.P$.Nk(Z)}; g.n.onVolumeChange=function(){this.P$.onVolumeChange()}; g.n.PB=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.Cw=function(){}; g.n.GJ=function(){};g.n=gp.prototype;g.n.Xx=function(){return this.slot}; g.n.Xm=function(){return this.layout}; g.n.init=function(){this.sP.get().addListener(this);this.S7.get().addListener(this);var Z=dB(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var I=dB(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.N){var d=this.sP.get().N1.slice(-1)[0];d!==void 0&&(Z=d.startSecs*1E3,I=(d.startSecs+d.QI)*1E3)}this.WN(Z,I);var Y;d=(Y=this.V5.get().qP)==null?void 0:Y.clientPlaybackNonce;Y=this.layout.Tb.adClientDataEntry;E_(this.Q5.get(),{daiStateTrigger:{filledAdsDurationMs:I-Z,contentCpn:d, adClientData:Y}});var T=this.sP.get();T=jQB(T.Z,Z,I);T!==null&&(E_(this.Q5.get(),{daiStateTrigger:{filledAdsDurationMs:T-Z,contentCpn:d,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:Y}}),this.n_.get().Tg(T,I))}; g.n.release=function(){this.mK();this.sP.get().removeListener(this);this.S7.get().removeListener(this)}; g.n.startRendering=function(){this.Fz();this.callback.J9(this.slot,this.layout)}; g.n.v$=function(Z,I){this.ZX(I);this.driftRecoveryMs!==null&&(nsB(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(Tli(this)-dB(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.S7.get().S.T0()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.iQ(this.slot,this.layout,I)}; g.n.qF=function(){return!1}; g.n.MF=function(Z){var I=dB(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),d=dB(this.layout.clientMetadata,"metadata_type_layout_exit_ms");Z*=1E3;if(I<=Z&&Z0&&np(this.L(),I)}; g.n.u4=function(Z){this.B.delete(Z.slotId);for(var I=[],d=g.t(this.fM.values()),Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var T=Y.trigger;T instanceof vh&&T.triggeringSlotId===Z.slotId&&I.push(Y)}I.length>0&&np(this.L(),I)}; g.n.Om=function(Z){for(var I=[],d=g.t(this.fM.values()),Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var T=Y.trigger;T instanceof EmL&&T.slotType===Z.slotType&&T.L!==Z.slotId&&I.push(Y)}I.length>0&&np(this.L(),I)}; g.n.Qf=function(Z){this.Z.add(Z.slotId);for(var I=[],d=g.t(this.fM.values()),Y=d.next();!Y.done;Y=d.next())Y=Y.value,Y.trigger instanceof yc&&Z.slotId===Y.trigger.triggeringSlotId&&I.push(Y);I.length>0&&np(this.L(),I)}; g.n.YZ=function(Z){this.Z.delete(Z.slotId);this.N.add(Z.slotId);for(var I=[],d=g.t(this.fM.values()),Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,Y.trigger instanceof du)Z.slotId===Y.trigger.triggeringSlotId&&I.push(Y);else if(Y.trigger instanceof DS){var T=Y.trigger;Z.slotId===T.slotId&&this.D.has(T.triggeringLayoutId)&&I.push(Y)}I.length>0&&np(this.L(),I)}; g.n.T9=function(Z){for(var I=[],d=g.t(this.fM.values()),Y=d.next();!Y.done;Y=d.next())Y=Y.value,Y.trigger instanceof UH&&Z.slotId===Y.trigger.triggeringSlotId&&I.push(Y);I.length>0&&np(this.L(),I)}; g.n.VQ=function(Z){for(var I=[],d=g.t(this.fM.values()),Y=d.next();!Y.done;Y=d.next())Y=Y.value,Y.trigger instanceof KC&&Z.slotId===Y.trigger.triggeringSlotId&&I.push(Y);I.length>0&&np(this.L(),I)}; g.n.Uf=function(Z,I){this.j.add(I.layoutId)}; g.n.Ny=function(Z,I){this.j.delete(I.layoutId)}; g.n.J9=function(Z,I){this.D.add(I.layoutId);for(var d=[],Y=g.t(this.fM.values()),T=Y.next();!T.done;T=Y.next())if(T=T.value,T.trigger instanceof eL)I.layoutId===T.trigger.triggeringLayoutId&&d.push(T);else if(T.trigger instanceof EM){var f=T.trigger;Z.slotType===f.slotType&&I.layoutType===f.layoutType&&I.layoutId!==f.L&&d.push(T)}else T.trigger instanceof DS&&(f=T.trigger,I.layoutId===f.triggeringLayoutId&&this.N.has(f.slotId)&&d.push(T));d.length>0&&np(this.L(),d)}; g.n.iQ=function(Z,I,d){this.D.delete(I.layoutId);Z=[];for(var Y=g.t(this.fM.values()),T=Y.next();!T.done;T=Y.next())if(T=T.value,T.trigger instanceof jl&&I.layoutId===T.trigger.triggeringLayoutId&&Z.push(T),T.trigger instanceof $o){var f=T.trigger;I.layoutId===f.triggeringLayoutId&&f.L.includes(d)&&Z.push(T)}Z.length>0&&np(this.L(),Z)}; g.n.Fi=function(){}; g.n.cB=function(){this.N.clear()}; g.n.rP=function(){};g.U($y,g.p);$y.prototype.P3=function(Z,I,d,Y){if(this.fM.has(I.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(I instanceof h1))throw new C("Incorrect TriggerType: Tried to register trigger of type "+I.triggerType+" in CloseRequestedTriggerAdapter");this.fM.set(I.triggerId,new SB(Z,I,d,Y))}; $y.prototype.h$=function(Z){this.fM.delete(Z.triggerId)};g.U(zJ,g.p);zJ.prototype.P3=function(Z,I,d,Y){if(this.fM.has(I.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(I instanceof qx||I instanceof An))throw new C("Incorrect TriggerType: Tried to register trigger of type "+I.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.fM.set(I.triggerId,new SB(Z,I,d,Y))}; zJ.prototype.h$=function(Z){this.fM.delete(Z.triggerId)}; zJ.prototype.cB=function(Z){for(var I=[],d=I.push,Y=d.apply,T=[],f=g.t(this.fM.values()),P=f.next();!P.done;P=f.next())P=P.value,P.trigger instanceof qx&&P.trigger.f8===Z&&T.push(P);Y.call(d,I,g.c(T));d=I.push;Y=d.apply;T=[];f=g.t(this.fM.values());for(P=f.next();!P.done;P=f.next())P=P.value,P.trigger instanceof An&&P.trigger.L!==Z&&T.push(P);Y.call(d,I,g.c(T));I.length&&np(this.L(),I)}; zJ.prototype.rP=function(Z){for(var I=[],d=I.push,Y=d.apply,T=[],f=g.t(this.fM.values()),P=f.next();!P.done;P=f.next()){P=P.value;var O=P.trigger;O instanceof An&&O.L===Z&&T.push(P)}Y.call(d,I,g.c(T));I.length&&np(this.L(),I)};g.U(kh,g.p);g.n=kh.prototype;g.n.P3=function(Z,I,d,Y){if(this.fM.has(I.triggerId))throw new C("Tried to register duplicate trigger for slot.");var T="adtriggercuerange:"+I.triggerId;if(I instanceof mw)KTE(this,Z,I,d,Y,T,I.L.start,I.L.end,I.f8,I.visible);else if(I instanceof qo)KTE(this,Z,I,d,Y,T,0x7ffffffffffff,0x8000000000000,I.f8,I.visible);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+I.triggerType+" in CueRangeTriggerAdapter");}; g.n.h$=function(Z){var I=this.fM.get(Z.triggerId);I&&this.xu.get().removeCueRange(I.cueRangeId);this.fM.delete(Z.triggerId)}; g.n.onCueRangeEnter=function(Z){var I=Gyl(this,Z);if(I&&(I=this.fM.get(I)))if(g.b(Gs(this.S7.get()),32))this.L.add(I.cueRangeId);else{var d=I==null?void 0:I.Rv.trigger;if(d instanceof mw||d instanceof qo){if(n9(this.context.Ms.get())){var Y=I.Rv.slot,T=I.Rv.layout,f={};this.context.Lw.t9("cre",(f.ca=I.Rv.category,f.tt=d.triggerType,f.st=Y.slotType,f.lt=T==null?void 0:T.layoutType,f.cid=Z,f))}np(this.D(),[I.Rv])}}}; g.n.onCueRangeExit=function(Z){(Z=Gyl(this,Z))&&(Z=this.fM.get(Z))&&this.L.delete(Z.cueRangeId)}; g.n.Xi=function(Z){if(na(Z,16)<0){Z=g.t(this.L);for(var I=Z.next();!I.done;I=Z.next())this.onCueRangeEnter(I.value,!0);this.L.clear()}}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.J9=function(){}; g.n.iQ=function(){}; g.n.Fi=function(){}; g.n.C6=function(){}; g.n.onFullscreenToggled=function(){}; g.n.jF=function(){}; g.n.PB=function(){}; g.n.Nk=function(){}; g.n.onVolumeChange=function(){}; g.n.Cw=function(){}; g.n.GJ=function(){};g.U(XV,g.p);g.n=XV.prototype; g.n.P3=function(Z,I,d,Y){if(this.D.has(I.triggerId)||this.Z.has(I.triggerId))throw new C("Tried to re-register the trigger.");Z=new SB(Z,I,d,Y);if(Z.trigger instanceof Ad)this.D.set(Z.trigger.triggerId,Z);else if(Z.trigger instanceof GQ)this.Z.set(Z.trigger.triggerId,Z);else throw new C("Incorrect TriggerType: Tried to register trigger of type "+Z.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.D.has(Z.trigger.triggerId)&&Z.slot.slotId===this.L&&np(this.N(),[Z])}; g.n.h$=function(Z){this.D.delete(Z.triggerId);this.Z.delete(Z.triggerId)}; g.n.T3=function(Z){Z=Z.slotId;if(this.L!==Z){var I=[];this.L!=null&&I.push.apply(I,g.c(h4u(this.Z,this.L)));Z!=null&&I.push.apply(I,g.c(h4u(this.D,Z)));this.L=Z;I.length&&np(this.N(),I)}}; g.n.gq=function(){}; g.n.Zv=function(){};g.U($h,g.p);g.n=$h.prototype;g.n.P3=function(Z,I,d,Y){if(this.fM.has(I.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(I instanceof Ws))throw new C("Incorrect TriggerType: Tried to register trigger of type "+I.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.fM.set(I.triggerId,new SB(Z,I,d,Y))}; g.n.h$=function(Z){this.fM.delete(Z.triggerId)}; g.n.J9=function(){}; g.n.iQ=function(){}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){};g.U(pZ,g.p);g.n=pZ.prototype;g.n.Fi=function(Z,I){for(var d=[],Y=g.t(this.fM.values()),T=Y.next();!T.done;T=Y.next()){T=T.value;var f=T.trigger;f.opportunityType===Z&&(f.associatedSlotId&&f.associatedSlotId!==I||d.push(T))}d.length&&np(this.L(),d)}; g.n.P3=function(Z,I,d,Y){if(this.fM.has(I.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(I instanceof Ix9))throw new C("Incorrect TriggerType: Tried to register trigger of type "+I.triggerType+" in OpportunityEventTriggerAdapter");this.fM.set(I.triggerId,new SB(Z,I,d,Y))}; g.n.h$=function(Z){this.fM.delete(Z.triggerId)}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.J9=function(){}; g.n.iQ=function(){};g.U(tI,g.p);g.n=tI.prototype;g.n.P3=function(Z,I,d,Y){Z=new SB(Z,I,d,Y);if(I instanceof G3||I instanceof l4u||I instanceof v3i||I instanceof uzL||I instanceof tAd){if(this.fM.has(I.triggerId))throw new C("Tried to register duplicate trigger for slot.");this.fM.set(I.triggerId,Z)}else throw new C("Incorrect TriggerType: Tried to register trigger of type "+I.triggerType+" in PrefetchTriggerAdapter");}; g.n.h$=function(Z){this.fM.delete(Z.triggerId)}; g.n.HE=function(Z){var I=Z.slotFulfillmentTriggers.find(function(d){return d instanceof G3}); I&&(Lrr(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",I.breakDurationMs,new Set([Z.slotId]),!0),J1(this.Q5.get(),"ads_css","sid."+Z.slotId+";bd."+I.breakDurationMs))}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.J9=function(){}; g.n.iQ=function(){}; g.n.Fi=function(){}; g.n.qF=function(Z){var I=this;if(!this.L)return J1(this.Q5.get(),"ads_nfi","a.pta"),!1;this.D&&this.D.stop();this.B&&g.Zy(this.B);var d=$5D(this,Z);if(!d){var Y=h$7(this),T=this.V!==void 0&&Date.now()<=this.V+1E4;J1(this.Q5.get(),"ads_ncfs","cid."+Z.identifier+";cd."+Z.QI.toFixed(3)+";ccs."+T+";cfa."+this.N+";bdc."+Y.length+";"+Y.slice(0,6).map(function(f){return";bd."+f}).join("")); return T?(O$E(this.rB,this.L,Z),!0):!1}(Y=dB(d.slot.clientMetadata,"metadata_type_triggering_cue_point"))?Y.current=Z:Zv("Expected triggering cue point ref to be available",d.slot);(new g.uX(function(){var f=d.trigger,P=d.slot;Lrr(I,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",f.breakDurationMs,new Set,!0);Lrr(I,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",f.breakDurationMs,new Set,!1);for(var O=0,a=g.t(I.fM.values()),W=a.next();!W.done;W=a.next()){W=W.value;var e= W.trigger;W.slot.slotId===P.slotId&&(I.fM.delete(e.triggerId),O++)}J1(I.Q5.get(),"ads_csf","sid."+P.slotId+";bd."+f.breakDurationMs+";dt."+O)},10)).start(); return!0}; g.n.MF=function(){}; g.n.cB=function(Z){var I=this;this.N=!1;this.V=Date.now();if(this.L&&this.L.contentCpn!==Z)Zv("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:Z,fetchInstructionsCpn:this.L.contentCpn}),Ygu(this);else{this.Z=new g.uX(function(){if(I.N)delete I.Z;else{var Y=I.S7.get().getGetAdBreakContext(),T;if(Number(Y==null?void 0:(T=Y.livePlaybackPosition)==null?void 0:T.utcTimeMillis)>0)delete I.Z,ty9(I);else{var f;(f=I.Z)==null||f.start()}}},200); var d;(d=this.Z)==null||d.start()}}; g.n.rP=function(Z){this.L&&this.L.contentCpn!==Z&&Zv("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:Z,fetchInstructionsCpn:this.L.contentCpn},!0);Ygu(this)}; g.n.xG=function(Z){var I=this;if(this.L)Zv("Unexpected multiple fetch instructions for the current content");else{this.L=Z;Z=Ub7(Z);this.D=new g.uX(function(){ty9(I)},Z?Z:6E5); this.D.start();this.B=new g.uX(function(){I.L&&(I.D&&(I.D.stop(),I.D.start()),mHr(I,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},i0B(this.L)); Z=this.S7.get().getCurrentTimeSec(1,!1);for(var d=g.t(this.sP.get().N1),Y=d.next();!Y.done;Y=d.next())Y=Y.value,J1(this.Q5.get(),"nocache","ct."+Date.now()+";cmt."+Z+";d."+Y.QI.toFixed(3)+";tw."+(Y.startSecs-Z)+";cid."+Y.identifier+";")}}; g.n.g4=function(){g.p.prototype.g4.call(this);Ygu(this)};g.U(pK,g.p);g.n=pK.prototype;g.n.P3=function(Z,I,d,Y){if(this.fM.has(I.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(I instanceof Sg))throw new C("Incorrect TriggerType: Tried to register trigger of type "+I.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.fM.set(I.triggerId,new SB(Z,I,d,Y));Z=this.L.has(I.triggeringLayoutId)?this.L.get(I.triggeringLayoutId):new Set;Z.add(I);this.L.set(I.triggeringLayoutId,Z)}; g.n.h$=function(Z){this.fM.delete(Z.triggerId);if(!(Z instanceof Sg))throw new C("Incorrect TriggerType: Tried to unregister trigger of type "+Z.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var I=this.D.get(Z.triggerId);I&&(I.dispose(),this.D.delete(Z.triggerId));if(I=this.L.get(Z.triggeringLayoutId))I.delete(Z),I.size===0&&this.L.delete(Z.triggeringLayoutId)}; g.n.HE=function(){}; g.n.u4=function(){}; g.n.Om=function(){}; g.n.Qf=function(){}; g.n.YZ=function(){}; g.n.T9=function(){}; g.n.VQ=function(){}; g.n.Uf=function(){}; g.n.Ny=function(){}; g.n.Fi=function(){}; g.n.J9=function(Z,I){var d=this;if(this.L.has(I.layoutId)){Z=this.L.get(I.layoutId);Z=g.t(Z);var Y=Z.next();for(I={};!Y.done;I={x5:void 0},Y=Z.next())I.x5=Y.value,Y=new g.uX(function(T){return function(){var f=d.fM.get(T.x5.triggerId);np(d.Z(),[f])}}(I),I.x5.durationMs),Y.start(),this.D.set(I.x5.triggerId,Y)}}; g.n.iQ=function(){};g.U(xh,g.p);xh.prototype.P3=function(Z,I,d,Y){if(this.fM.has(I.triggerId))throw new C("Tried to register duplicate trigger for slot.");if(!(I instanceof sL))throw new C("Incorrect TriggerType: Tried to register trigger of type "+I.triggerType+" in VideoTransitionTriggerAdapter.");this.fM.set(I.triggerId,new SB(Z,I,d,Y))}; xh.prototype.h$=function(Z){this.fM.delete(Z.triggerId)};jO.prototype.KK=function(Z){return Z.kind==="AD_PLACEMENT_KIND_START"};g.U(Xi,g.p);g.n=Xi.prototype;g.n.logEvent=function(Z){this.kd(Z)}; g.n.NO=function(Z,I,d){this.kd(Z,void 0,void 0,void 0,I,void 0,void 0,void 0,I.adSlotLoggingData,void 0,void 0,d)}; g.n.IB=function(Z,I,d,Y){this.kd(Z,void 0,void 0,void 0,I,d?d:void 0,void 0,void 0,I.adSlotLoggingData,d?d.adLayoutLoggingData:void 0,void 0,Y);I=pM().resolve(new gG(vI))==null?void 0:Rr();Z=I==null?void 0:I.adsSeenHotConfig;I=I==null?void 0:I.adsHotConfig;(Z==null?0:Z.logOnAdsSeen)&&(I==null?0:I.webEnablePremiumAdsSeenLogging)&&G0u(this,d?d:void 0,Y)}; g.n.zp=function(Z,I,d,Y){fH(this.Ms.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Z,"trigger:",d,"slot:",I,"layout:",Y);dJ(this.L.get())&&this.kd(Z,void 0,void 0,void 0,I,Y?Y:void 0,void 0,d,I.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0)}; g.n.qQ=function(Z,I,d,Y,T){this.kd(Z,I,d,Y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,T)}; g.n.Dy=function(Z,I,d,Y){this.kd("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,d,Y,void 0,void 0,d.adSlotLoggingData,Y?Y.adLayoutLoggingData:void 0,{errorType:Z,errorMessage:I})}; g.n.kd=function(Z,I,d,Y,T,f,P,O,a,W,e,B){var w=this;B=B===void 0?0:B;fH(this.Ms.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+Z,"slot:",T,"layout:",f,"ping:",P,"Opportunity:",{opportunityType:I,associatedSlotId:d,BD5:Y,iK7:O,adSlotLoggingData:a,adLayoutLoggingData:W});try{var V=function(){if(!w.Ms.get().S.C().Y("html5_disable_client_tmp_logs")&&Z!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){Z||Zv("Empty PACF event type",T,f);var N=dJ(w.L.get()),q={eventType:Z,eventOrder:++w.eventCount},A={}; T&&(A.slotData=Ccn(N,T));f&&(A.layoutData=XG$(N,f));P&&(A.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:P.L.serializedAdPingMetadata,pingIndex:P.index});O&&(A.triggerData=t2(O.trigger,O.category));I&&(A.opportunityData=hiD(N,I,d,Y));N={organicPlaybackContext:{contentCpn:V1(w.V5.get(),1).clientPlaybackNonce}};N.organicPlaybackContext.isLivePlayback=V1(w.V5.get(),1).Qy;var F;N.organicPlaybackContext.isMdxPlayback=(F=V1(w.V5.get(),1))==null?void 0:F.isMdxPlayback; var J;if((J=V1(w.V5.get(),1))==null?0:J.daiEnabled)N.organicPlaybackContext.isDaiContent=!0;var v;if(F=(v=V1(w.V5.get(),2))==null?void 0:v.clientPlaybackNonce)N.adVideoPlaybackContext={adVideoCpn:F};N&&(A.externalContext=N);q.adClientData=A;a&&(q.serializedSlotAdServingData=a.serializedSlotAdServingDataEntry);W&&(q.serializedAdServingData=W.serializedAdServingDataEntry);e&&(q.errorInfo=e);g.g6("adsClientStateChange",{adsClientEvent:q})}}; B&&B>0?g.Zb(g.zF(),function(){return V()},B):V()}catch(N){fH(this.Ms.get(),"html5_log_pacf_logging_errors")&&g.Zb(g.zF(),function(){Zv(N instanceof Error?N:String(N),T,f,{pacf_message:"exception during pacf logging"})})}};var Dlt=new Set("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_NORMALLY ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_SKIP ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABANDON ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_MUTE ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_USER_INPUT_SUBMITTED ADS_CLIENT_EVENT_TYPE_LAYOUT_EXITED_ABORTED".split(" "));g.U($OO,Xi);g.n=$OO.prototype; g.n.NO=function(Z,I,d){Xi.prototype.NO.call(this,Z,I,d);n9(this.Ms.get())&&(d={},this.context.Lw.t9("pacf",(d.et=Z,d.st=I.slotType,d.si=I.slotId,d)))}; g.n.IB=function(Z,I,d,Y){var T=Dlt.has(Z);Xi.prototype.IB.call(this,Z,I,d,Y);n9(this.Ms.get(),T)&&(Y={},this.context.Lw.t9("pacf",(Y.et=Z,Y.st=I.slotType,Y.si=I.slotId,Y.lt=d==null?void 0:d.layoutType,Y.li=d==null?void 0:d.layoutId,Y.p_ac=d==null?void 0:d.layoutId,Y)))}; g.n.qQ=function(Z,I,d,Y,T){Xi.prototype.qQ.call(this,Z,I,d,Y,T);n9(this.Ms.get())&&(d={},this.context.Lw.t9("pacf",(d.et=Z,d.ot=I,d.ss=Y==null?void 0:Y.length,d)))}; g.n.zp=function(Z,I,d,Y){Xi.prototype.zp.call(this,Z,I,d,Y);if(n9(this.Ms.get())){var T={};this.context.Lw.t9("pacf",(T.et=Z,T.tt=d.trigger.triggerType,T.tc=d.category,T.st=I.slotType,T.si=I.slotId,T.lt=Y==null?void 0:Y.layoutType,T.li=Y==null?void 0:Y.layoutId,T.p_ac=Y==null?void 0:Y.layoutId,T))}}; g.n.Dy=function(Z,I,d,Y){Xi.prototype.Dy.call(this,Z,I,d,Y);if(n9(this.Ms.get(),!0)){var T={};this.context.Lw.t9("perror",(T.ert=Z,T.erm=I,T.st=d.slotType,T.si=d.slotId,T.lt=Y==null?void 0:Y.layoutType,T.li=Y==null?void 0:Y.layoutId,T.p_ac=Y==null?void 0:Y.layoutId,T))}}; g.n.kd=function(Z,I,d,Y,T,f,P,O,a,W,e){var B=this.Ms.get();g.RK(B.S.C())?(B=this.Ms.get(),B=g.Q4(B.S.C().experiments,"H5_async_logging_delay_ms")):B=void 0;Xi.prototype.kd.call(this,Z,I,d,Y,T,f,P,O,a,W,e,B)};TJ.prototype.clear=function(){this.L.clear()};TT.prototype.state=function(){return this.L==="fulfilled"?{state:"fulfilled",value:this.result}:this.L==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; TT.prototype.N=function(Z){jX(Z)||Y3(Z)?BC(iW(Z),this.N.bind(this),this.reject.bind(this)):(this.L="fulfilled",this.result=Z,Wkl(this))}; TT.prototype.reject=function(Z){this.L="rejected";this.error=Z;Wkl(this)}; var Y3=F9(function(Z){return z5W(Z)?Z instanceof TT:!1});var vo=window.XKS||"en";Ni.prototype.zC=function(Z){this.client=Z}; Ni.prototype.L=function(){this.clear();this.csn=g.vv()}; Ni.prototype.clear=function(){this.Z.clear();this.D.clear();this.N.clear();this.csn=null};gU.prototype.zC=function(Z){g.t6(Eh().zC).bind(Eh())(Z)}; gU.prototype.clear=function(){g.t6(Eh().clear).bind(Eh())()};g.n=T6.prototype;g.n.zC=function(Z){this.client=Z}; g.n.SR=function(Z,I){var d=this;I=I===void 0?{}:I;g.t6(function(){var Y,T,f,P=((Y=g.y(Z==null?void 0:Z.commandMetadata,g.hq))==null?void 0:Y.rootVe)||((T=g.y(Z==null?void 0:Z.commandMetadata,bMu))==null?void 0:(f=T.screenVisualElement)==null?void 0:f.uiType);if(P){Y=g.y(Z==null?void 0:Z.commandMetadata,WOM);if(Y==null?0:Y.parentTrackingParams){var O=g.p0(Y.parentTrackingParams);if(Y.parentCsn)var a=Y.parentCsn}else I.clickedVisualElement?O=I.clickedVisualElement:Z.clickTrackingParams&&(O=g.p0(Z.clickTrackingParams)); a:{Y=g.y(Z,g.CI);T=g.y(Z,TQM);if(Y){if(T=m3V(Y,"VIDEO")){Y={token:T,videoId:Y.videoId};break a}}else if(T&&(Y=m3V(T,"PLAYLIST"))){Y={token:Y,playlistId:T.playlistId};break a}Y=void 0}I=Object.assign({},{cttAuthInfo:Y,parentCsn:a},I);if(g.x9("expectation_logging")){var W;I.loggingExpectations=((W=g.y(Z==null?void 0:Z.commandMetadata,bMu))==null?void 0:W.loggingExpectations)||void 0}P4(d,P,O,I)}else g.uL(new g.Wj("Error: Trying to create a new screen without a rootVeType",Z))})()}; g.n.clickCommand=function(Z,I,d){Z=Z.clickTrackingParams;d=d===void 0?0:d;Z?(d=g.vv(d===void 0?0:d))?(Se(this.client,d,g.p0(Z),I),I=!0):I=!1:I=!1;return I}; g.n.stateChanged=function(Z,I,d){this.visualElementStateChanged(g.p0(Z),I,d===void 0?0:d)}; g.n.visualElementStateChanged=function(Z,I,d){d=d===void 0?0:d;d===0&&this.D.has(d)?this.X.push([Z,I]):tGl(this,Z,I,d)};Ty.prototype.fetch=function(Z,I,d){var Y=this,T=Cj9(Z,I,d);return new Promise(function(f,P){function O(){if(d==null?0:d.H0)try{var W=Y.handleResponse(Z,T.status,T.response,d);f(W)}catch(e){P(e)}else f(Y.handleResponse(Z,T.status,T.response,d))} T.onerror=O;T.onload=O;var a;T.send((a=I.body)!=null?a:null)})}; Ty.prototype.handleResponse=function(Z,I,d,Y){d=d.replace(")]}'","");try{var T=JSON.parse(d)}catch(f){g.uL(new g.Wj("JSON parsing failed after XHR fetch",Z,I,d));if((Y==null?0:Y.H0)&&d)throw new g.lX(1,"JSON parsing failed after XHR fetch");T={}}I!==200&&(g.uL(new g.Wj("XHR API fetch failed",Z,I,d)),T=Object.assign({},T,{errorMetadata:{status:I}}));return T};Ek.getInstance=function(){var Z=g.gZ("ytglobal.storage_");Z||(Z=new Ek,g.zb("ytglobal.storage_",Z));return Z}; Ek.prototype.estimate=function(){var Z,I,d;return g.h(function(Y){Z=navigator;return((I=Z.storage)==null?0:I.estimate)?Y.return(Z.storage.estimate()):((d=Z.webkitTemporaryStorage)==null?0:d.queryUsageAndQuota)?Y.return(wYO()):Y.return()})}; g.zb("ytglobal.storageClass_",Ek);XA.prototype.r5=function(Z){this.handleError(Z)}; XA.prototype.logEvent=function(Z,I){switch(Z){case "IDB_DATA_CORRUPTED":g.x9("idb_data_corrupted_killswitch")||this.L("idbDataCorrupted",I);break;case "IDB_UNEXPECTEDLY_CLOSED":this.L("idbUnexpectedlyClosed",I);break;case "IS_SUPPORTED_COMPLETED":g.x9("idb_is_supported_completed_killswitch")||this.L("idbIsSupportedCompleted",I);break;case "QUOTA_EXCEEDED":jSE(this,I);break;case "TRANSACTION_ENDED":this.Z&&Math.random()<=.1&&this.L("idbTransactionEnded",I);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":Z= Object.assign({},I,{hasWindowUnloaded:this.D}),this.L("idbTransactionAborted",Z)}};var HB={},Njl=g.da("yt-player-local-media",{Sn:(HB.index={mT:2},HB.media={mT:2},HB.captions={mT:5},HB),shared:!1,upgrade:function(Z,I){I(2)&&(g.l2(Z,"index"),g.l2(Z,"media"));I(5)&&g.l2(Z,"captions");I(6)&&(o9(Z,"metadata"),o9(Z,"playerdata"))}, version:5});var JGp={cupcake:1.5,donut:1.6,eclair:2,froyo:2.2,gingerbread:2.3,honeycomb:3,"ice cream sandwich":4,jellybean:4.1,kitkat:4.4,lollipop:5.1,marshmallow:6,nougat:7.1},cB;a:{var gr=g.Vs();gr=gr.toLowerCase();if(g.QE(gr,"android")){var RKV=gr.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(RKV){var LIv=parseFloat(RKV[1]);if(LIv<100){cB=LIv;break a}}var Ulv=gr.match("("+Object.keys(JGp).join("|")+")");cB=Ulv?JGp[Ulv[0]]:0}else cB=void 0}var L6=cB,HDn=L6>=0;var P1L=Zz(function(){var Z,I;return(I=(Z=window).matchMedia)==null?void 0:I.call(Z,"(prefers-reduced-motion: reduce)").matches});var OS;g.Zm=new s8;OS=0;var OC=onD()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.sY?!0:!1;var PS={sf:function(Z,I){Z[Q[20]](0,I)}, hM:function(Z){Z[Q[14]]()}, jk:function(Z,I){var d=Z[0];Z[0]=Z[I%Z[Q[17]]];Z[I%Z[Q[17]]]=d}};var rPn={SIj:"adunit",Pyn:"detailpage",DOs:"editpage",ZAm:"embedded",sFr:"leanback",yiS:"previewpage",pTm:"profilepage",Ys:"unplugged",Psr:"playlistoverview",D65:"sponsorshipsoffer",y0m:"shortspage",dO5:"handlesclaiming",ILs:"immersivelivepage",dkS:"creatormusic",Lj7:"immersivelivepreviewpage",K04:"admintoolyurt",GFn:"shortsaudiopivot",rK4:"consumption"};var Sin=2592E3;var MB,yGv,VC;MB={};g.dP=(MB.STOP_EVENT_PROPAGATION="html5-stop-propagation",MB.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",MB.IV_DRAWER_OPEN="ytp-iv-drawer-open",MB.MAIN_VIDEO="html5-main-video",MB.VIDEO_CONTAINER="html5-video-container",MB.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",MB.HOUSE_BRAND="house-brand",MB);yGv={};VC=(yGv.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",yGv.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",yGv);var skJ={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Ezi={ANDROID:3,ANDROID_KIDS:18,ANDROID_MUSIC:21,ANDROID_UNPLUGGED:29,WEB:1,WEB_REMIX:67,WEB_UNPLUGGED:41,IOS:5,IOS_KIDS:19,IOS_MUSIC:26,IOS_UNPLUGGED:33},ff$={android:"ANDROID","android.k":"ANDROID_KIDS","android.m":"ANDROID_MUSIC","android.up":"ANDROID_UNPLUGGED",youtube:"WEB","youtube.m":"WEB_REMIX","youtube.up":"WEB_UNPLUGGED",ytios:"IOS","ytios.k":"IOS_KIDS","ytios.m":"IOS_MUSIC","ytios.up":"IOS_UNPLUGGED"},yFO={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var sj7={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.vz.prototype.getLanguageInfo=function(){return this.uo}; g.vz.prototype.getXtags=function(){if(!this.xtags){var Z=this.id.split(";");Z.length>1&&(this.xtags=Z[1])}return this.xtags}; g.vz.prototype.toString=function(){return this.uo.name}; g.vz.prototype.getLanguageInfo=g.vz.prototype.getLanguageInfo;mY.prototype.equals=function(Z){return this.D===Z.D&&this.L===Z.L&&this.Z===Z.Z&&this.reason===Z.reason&&(!bJ||this.pS===Z.pS)}; mY.prototype.isLocked=function(){return this.Z&&!!this.D&&this.D===this.L}; mY.prototype.compose=function(Z){if(Z.Z&&h8(Z))return nb;if(Z.Z||h8(this))return Z;if(this.Z||h8(Z))return this;var I=this.D&&Z.D?Math.max(this.D,Z.D):this.D||Z.D,d=this.L&&Z.L?Math.min(this.L,Z.L):this.L||Z.L;I=Math.min(I,d);var Y=0;bJ&&(Y=this.pS!==0&&Z.pS!==0?Math.min(this.pS,Z.pS):this.pS===0?Z.pS:this.pS);return bJ&&I===this.D&&d===this.L&&Y===this.pS||!bJ&&I===this.D&&d===this.L?this:bJ?new mY(I,d,!1,d===this.L&&Y===this.pS?this.reason:Z.reason,Y):new mY(I,d,!1,d===this.L?this.reason:Z.reason)}; mY.prototype.N=function(Z){return!Z.video||bJ&&this.pS!==0&&this.pS=0}; g.n.EG=function(){var Z=this.segments[this.segments.length-1];return Z?Z.endTime:NaN}; g.n.p_=function(){return this.segments[0].startTime}; g.n.Z9=function(){return this.segments.length}; g.n.jd=function(){return 0}; g.n.Cl=function(Z){return(Z=this.PW(Z))?Z.YS:-1}; g.n.sH=function(Z){return(Z=this.wG(Z))?Z.sourceURL:""}; g.n.getStartTime=function(Z){return(Z=this.wG(Z))?Z.startTime:0}; g.n.Ca=function(Z){return this.getStartTime(Z)+this.getDuration(Z)}; g.n.dX=vF(1);g.n.isLoaded=function(){return this.segments.length>0}; g.n.wG=function(Z){if(this.L&&this.L.YS===Z)return this.L;Z=g.SX(this.segments,new e9(Z,0,0,0,""),function(I,d){return I.YS-d.YS}); return this.L=Z>=0?this.segments[Z]:null}; g.n.PW=function(Z){if(this.L&&this.L.startTime<=Z&&Z=0?this.segments[Z]:this.segments[Math.max(0,-Z-2)]}; g.n.append=function(Z){if(Z.length)if(Z=g.FZ(Z),this.segments.length){var I=this.segments.length?g.N2(this.segments).endTime:0,d=Z[0].YS-this.c$();d>1&&foi(this.segments);for(d=d>0?0:-d+1;dZ.YS&&this.index.HS()<=Z.YS+1}; g.n.update=function(Z,I,d){this.index.append(Z);X89(this.index,d);Z=this.index;Z.D=I;Z.Z="update"}; g.n.SD=function(){return this.RJ()?!0:j4.prototype.SD.call(this)}; g.n.xA=function(Z,I){var d=this.index.sH(Z),Y=this.index.getStartTime(Z),T=this.index.getDuration(Z),f;I?T=f=0:f=this.info.pS>0?this.info.pS*T:1E3;return new SC([new hD(3,this,void 0,"liveCreateRequestInfoForSegment",Z,Y,T,0,f,!I)],d)}; g.n.Am=function(){return this.RJ()?0:this.initRange.length}; g.n.Ap=function(){return!1};Sn.prototype.update=function(Z){var I=void 0;this.D&&(I=this.D);var d=new Sn,Y=Array.from(Z.getElementsByTagName("S"));if(Y.length){var T=+un(Z,"timescale")||1,f=(+Y[0].getAttribute("t")||0)/T,P=+un(Z,"startNumber")||0;d.N=f;var O=I?I.startSecs+I.QI:0,a=Date.parse(YEu(un(Z,"yt:segmentIngestTime")))/1E3;d.B=Z.parentElement.tagName==="SegmentTemplate";d.B&&(d.V=un(Z,"media"));Z=I?P-I.YS:1;d.j=Z>0?0:-Z+1;Z=g.t(Y);for(Y=Z.next();!Y.done;Y=Z.next()){Y=Y.value;for(var W=+Y.getAttribute("d")/T,e=(+Y.getAttribute("yt:sid")|| 0)/T,B=+Y.getAttribute("r")||0,w=0;w<=B;w++)if(I&&P<=I.YS)P++;else{var V=new KBa(P,O,W,a+e,f);d.L.push(V);var N=Y;var q=T,A=V.startSecs;V=N.getAttribute("yt:cuepointTimeOffset");var F=N.getAttribute("yt:cuepointDuration");if(V&&F){V=Number(V);A=-V/q+A;q=Number(F)/q;F=N.getAttribute("yt:cuepointContext")||null;var J=N.getAttribute("yt:cuepointIdentifier")||"";N=N.getAttribute("yt:cuepointEvent")||"";N=new Ax(A,q,F,J,lXu[N]||"unknown",V)}else N=null;N&&d.Z.push(N);P++;O+=W;f+=W;a+=W+e}}d.L.length&& (d.D=g.N2(d.L))}this.j=d.j;this.D=d.D||this.D;g.x4(this.L,d.L);g.x4(this.Z,d.Z);this.B=d.B;this.V=d.V;this.N===-1&&(this.N=d.getStreamTimeOffset())}; Sn.prototype.getStreamTimeOffset=function(){return this.N===-1?0:this.N};g.U(Hf,g.EL);g.n=Hf.prototype;g.n.eH=function(){return this.Yo}; g.n.J0=function(Z,I){Z=Wo(this,Z);return Z>=0&&(I||!this.segments[Z].pending)}; g.n.HS=function(){return this.Q8?this.segments.length?this.PW(this.p_()).YS:-1:g.EL.prototype.HS.call(this)}; g.n.p_=function(){if(this.uu)return 0;if(!this.Q8)return g.EL.prototype.p_.call(this);if(!this.segments.length)return 0;var Z=Math.max(g.N2(this.segments).endTime-this.o6,0);return this.KN>0&&this.PW(Z).YS0)return this.us/1E3;if(!this.segments.length)return g.EL.prototype.EG.call(this);var Z=this.c$();if(!this.Q8||Z<=this.segments[this.segments.length-1].YS)Z=this.segments[this.segments.length-1];else{var I=this.segments[this.segments.length-1];Z=new e9(Z,Math.max(0,I.startTime-(I.YS-Z)*this.Yo),this.Yo,0,"sq/"+Z,void 0,void 0,!0)}return this.uu?Math.min(this.o6,Z.endTime):Z.endTime}; g.n.Z9=function(){return this.Q8?this.segments.length?this.c$()-this.HS()+1:0:g.EL.prototype.Z9.call(this)}; g.n.c$=function(){var Z=Math.min(this.jo,Math.max(g.EL.prototype.c$.call(this),this.fZ)),I=this.o6*1E3;I=this.us>0&&this.us0&&this.fZ>0&&!I&&(I=this.PW(this.o6))&&(Z=Math.min(I.YS-1,Z));return Z}; g.n.CD=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.n.F3=function(Z){var I=Wo(this,Z.YS);if(I>=0)this.segments[I]=Z;else if(this.segments.splice(-(I+1),0,Z),this.vN&&Z.YS%(300/this.Yo)===0){var d=this.segments[0].YS,Y=Math.floor(this.vN/this.Yo);Z=Z.YS-Y;I=-(I+1)-Y;I>0&&Z>d&&(this.segments=this.segments.slice(I))}}; g.n.oH=function(){return this.fZ}; g.n.mQ=function(Z){return bm?!this.D&&Z>=0&&this.c$()<=Z:g.EL.prototype.mQ.call(this,Z)}; g.n.PW=function(Z){if(!this.Q8)return g.EL.prototype.PW.call(this,Z);if(!this.segments.length)return null;var I=this.segments[this.segments.length-1];if(Z=I.endTime)I=I.YS+Math.floor((Z-I.endTime)/this.Yo+1);else{I=aP(this.segments,function(Y){return Z=Y.endTime?1:0}); if(I>=0)return this.segments[I];var d=-(I+1);I=this.segments[d-1];d=this.segments[d];I=Math.floor((Z-I.endTime)/((d.startTime-I.endTime)/(d.YS-I.YS-1))+1)+I.YS}return this.wG(I)}; g.n.wG=function(Z){if(!this.Q8)return g.EL.prototype.wG.call(this,Z);if(!this.segments.length)return null;var I=Wo(this,Z);if(I>=0)return this.segments[I];var d=-(I+1);I=this.Yo;if(d===0)var Y=Math.max(0,this.segments[0].startTime-(this.segments[0].YS-Z)*I);else d===this.segments.length?(Y=this.segments[this.segments.length-1],Y=Y.endTime+(Z-Y.YS-1)*I):(Y=this.segments[d-1],I=this.segments[d],I=(I.startTime-Y.endTime)/(I.YS-Y.YS-1),Y=Y.endTime+(Z-Y.YS-1)*I);return new e9(Z,Y,I,0,"sq/"+Z,void 0,void 0, !0)}; var bm=!1;g.U(dF,If);g.n=dF.prototype;g.n.X6=function(){return!0}; g.n.SD=function(){return!0}; g.n.nJ=function(Z){return this.xf()&&Z.Z&&!Z.N||!Z.L.index.mQ(Z.YS)}; g.n.GT=function(){}; g.n.GG=function(Z,I){return typeof Z!=="number"||isFinite(Z)?If.prototype.GG.call(this,Z,I===void 0?!1:I):new SC([new hD(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.t$,void 0,this.t$*this.info.pS)],"")}; g.n.xA=function(Z,I){var d=d===void 0?!1:d;if(this.index.J0(Z))return If.prototype.xA.call(this,Z,I);var Y=this.index.getStartTime(Z),T=Math.round(this.t$*this.info.pS),f=this.t$;I&&(f=T=0);return new SC([new hD(d?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",Z,Y,f,void 0,T,!I)],Z>=0?"sq/"+Z:"")};g.U(ks,j4);g.n=ks.prototype;g.n.FY=function(){return!1}; g.n.xf=function(){return!1}; g.n.X6=function(){return!1}; g.n.GT=function(){return new SC([new hD(1,this,void 0,"otfInit")],this.B)}; g.n.KC=function(){return null}; g.n.h1=function(Z){this.nJ(Z);return T_d(this,ky$(Z),!1)}; g.n.GG=function(Z,I){I=I===void 0?!1:I;Z=this.index.Cl(Z);I&&(Z=Math.min(this.index.c$(),Z+1));return T_d(this,Z,!0)}; g.n.TU=function(Z){Z.info.type===1&&(this.L||(this.L=MU(Z.D)),Z.L&&Z.L.uri==="http://youtube.com/streaming/otf/durations/112015"&&U3i(this,Z.L))}; g.n.nJ=function(Z){return Z.Z===0?!0:this.index.c$()>Z.YS&&this.index.HS()<=Z.YS+1}; g.n.Am=function(){return 0}; g.n.Ap=function(){return!1};var KjE=new Map,EiO=new Map,CuJ=new function(){var Z=this;this.L=new Map;this.A9={EOm:function(){return Z.L}}};g.n=g.Tv.prototype;g.n.J0=function(Z){return Z<=this.c$()}; g.n.jd=function(Z){return this.offsets[Z]}; g.n.getStartTime=function(Z){return this.startTicks[Z]/this.L}; g.n.Ca=function(Z){return this.getStartTime(Z)+this.getDuration(Z)}; g.n.dX=vF(0);g.n.xF=function(){return NaN}; g.n.getDuration=function(Z){Z=this.Nf(Z);return Z>=0?Z/this.L:-1}; g.n.Nf=function(Z){return Z+1=0}; g.n.EG=function(){return this.D?this.startTicks[this.count]/this.L:NaN}; g.n.p_=function(){return 0}; g.n.Z9=function(){return this.count}; g.n.sH=function(){return""}; g.n.Cl=function(Z){Z=g.SX(this.startTicks.subarray(0,this.count),Z*this.L);return Z>=0?Z:Math.max(0,-Z-2)}; g.n.isLoaded=function(){return this.c$()>=0}; g.n.QM=function(Z,I){if(Z>=this.c$())return 0;var d=0;for(I=this.getStartTime(Z)+I;Zthis.getStartTime(Z);Z++)d=Math.max(d,YV7(this,Z)/this.getDuration(Z));return d}; g.n.resize=function(Z){Z+=2;var I=this.offsets;this.offsets=new Float64Array(Z+1);var d=this.startTicks;this.startTicks=new Float64Array(Z+1);for(Z=0;Z0&&Z&&(d=d.range.end+1,Z=Math.min(Z,this.info.contentLength-d),Z>0&&Y.push(new hD(4,this,UI(d,Z),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,I)));return new SC(Y)}; g.n.TU=function(Z){if(Z.info.type===1){if(this.L)return;this.L=MU(Z.D)}else if(Z.info.type===2){if(this.B||this.index.c$()>=0)return;if(g.Me(this.info)){var I=this.index,d=g.j1(Z);Z=Z.info.range.start;var Y=g.aO(d,0,1936286840);d=XMi(Y);I.L=d.timescale;var T=d.JM;I.offsets[0]=d.SP+Z+Y.size;I.startTicks[0]=T;I.D=!0;Z=d.jT.length;for(Y=0;Y0&&Z===f[0].Xq)for(Z=0;Z=I+d)break}T.length||(Z=new g.Wj("b189619593",""+Z,""+I,""+d),g.nl(Z));return new SC(T)}; g.n.WP=function(Z){for(var I=this.oy(Z.info),d=Z.info.range.start+Z.info.D,Y=[],T=0;T=this.index.jd(d+1);)d++;return this.CQ(d,I,Z.Z).e7}; g.n.nJ=function(Z){Z.RL();return this.SD()?!0:Z.range.end+1this.info.contentLength&&(I=new j7(I.start,this.info.contentLength-1)),new SC([new hD(4,Z.L,I,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,Z.clipId)]);Z.type===4&&(Z=this.oy(Z),Z=Z[Z.length-1]);var d=0,Y=Z.range.start+Z.D+Z.Z;Z.type===3&&(Z.RL(),d=Z.YS,Y===Z.range.end+1&&(d+=1));return this.CQ(d,Y,I)}; g.n.h1=function(){return null}; g.n.GG=function(Z,I){I=I===void 0?!1:I;Z=this.index.Cl(Z);I&&(Z=Math.min(this.index.c$(),Z+1));return this.CQ(Z,this.index.jd(Z),0,void 0)}; g.n.FY=function(){return!0}; g.n.xf=function(){return!0}; g.n.X6=function(){return!1}; g.n.Am=function(){return this.indexRange.length+this.initRange.length}; g.n.Ap=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var Zi={},NWn=(Zi.COLOR_PRIMARIES_BT709="bt709",Zi.COLOR_PRIMARIES_BT2020="bt2020",Zi.COLOR_PRIMARIES_UNKNOWN=null,Zi.COLOR_PRIMARIES_UNSPECIFIED=null,Zi),I4={},iTL=(I4.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",I4.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",I4.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",I4.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",I4.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,I4.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,I4);g.PA.prototype.getName=function(){return this.name}; g.PA.prototype.getId=function(){return this.id}; g.PA.prototype.getIsDefault=function(){return this.isDefault}; g.PA.prototype.toString=function(){return this.name}; g.PA.prototype.getName=g.PA.prototype.getName;g.PA.prototype.getId=g.PA.prototype.getId;g.PA.prototype.getIsDefault=g.PA.prototype.getIsDefault;var MX7=/action_display_post/;var IiB,ER7,bI$;g.U(r_,g.dx);g.n=r_.prototype;g.n.isLoading=function(){return this.state===1}; g.n.q_=function(){return this.state===3}; g.n.xIj=function(Z){var I=Z.getElementsByTagName("Representation");if(Z.getElementsByTagName("SegmentList").length>0||Z.getElementsByTagName("SegmentTemplate").length>0){this.Qy=this.D=!0;this.V||(this.V=new AP9);rMr(this.V,Z);this.publish("refresh");for(Z=0;Z=0?e=AW(w):B=B+"?range="+w}a.call(O,new e9(W.YS,W.startSecs,W.QI,W.L,B,e,W.D))}Y=T}d.update(Y,this.isLive,this.sZ)}IFJ(this.V);return!0}this.duration=oOL(un(Z,"mediaPresentationDuration"));a:{for(Z= 0;Z0))return this.tZ()-Z}}Z=this.L;for(var I in Z){var d=Z[I].index;if(d.isLoaded()&&!SI(Z[I].info.mimeType))return d.p_()}return 0}; g.n.getStreamTimeOffset=function(){return this.X}; g.n.xF=function(Z){for(var I in this.L){var d=this.L[I].index;if(d.isLoaded()){var Y=d.Cl(Z),T=d.xF(Y);if(T)return T+Z-d.getStartTime(Y)}}return NaN}; var ZK=null,upW,Jj9=!((upW=navigator.mediaCapabilities)==null||!upW.decodingInfo),Lqd={commentary:1,alternate:2,dub:3,main:4};var Y2=new Set,jH=new Map;PG.prototype.clone=function(Z){return new PG(this.flavor,Z,this.D,this.experiments)}; PG.prototype.Gb=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; PG.prototype.getInfo=function(){switch(this.keySystem){case "com.youtube.playready":return"PRY";case "com.microsoft.playready":return"PRM";case "com.widevine.alpha":return"WVA";case "com.youtube.widevine.l3":return"WVY";case "com.youtube.fairplay":return"FPY";case "com.youtube.fairplay.sbdl":return"FPC";case "com.apple.fps.1_0":return"FPA";default:return this.keySystem}}; var GAg={},QtB=(GAg.playready=["com.youtube.playready","com.microsoft.playready"],GAg.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],GAg),db={},GT7=(db.widevine="DRM_SYSTEM_WIDEVINE",db.fairplay="DRM_SYSTEM_FAIRPLAY",db.playready="DRM_SYSTEM_PLAYREADY",db),o4={},zKL=(o4.widevine=1,o4.fairplay=2,o4.playready=3,o4);var iM;g.U(UK,g.p); UK.prototype.initialize=function(Z,I){for(var d=this,Y=g.t(Object.keys(Z)),T=Y.next();!T.done;T=Y.next()){T=g.t(Z[T.value]);for(var f=T.next();!f.done;f=T.next())if(f=f.value,f.T_)for(var P=g.t(Object.keys(f.T_)),O=P.next();!O.done;O=P.next()){var a=O.value;O=a;a=QtB[a];!a&&this.Y("html5_enable_vp9_fairplay")&&O==="fairplay"&&(a=["com.youtube.fairplay.sbdl"]);if(a){a=g.t(a);for(var W=a.next();!W.done;W=a.next())W=W.value,this.Z[W]=this.Z[W]||new PG(O,W,f.T_[O],this.nS.experiments),this.L[O]=this.L[O]|| {},this.L[O][f.mimeType]=!0}}}Bq()&&(this.Z["com.youtube.fairplay"]=new PG("fairplay","com.youtube.fairplay","",this.nS.experiments),this.Y("html5_enable_vp9_fairplay")||(this.L.fairplay=this.L.fairplay||{},this.L.fairplay['video/mp4; codecs="avc1.4d400b"']=!0,this.L.fairplay['audio/mp4; codecs="mp4a.40.5"']=!0));this.D=OP9(I,this.useCobaltWidevine,this.Y("html5_enable_safari_fairplay")&&!0,this.Y("html5_enable_vp9_fairplay")).filter(function(e){return!!d.Z[e]})}; UK.prototype.Y=function(Z){return this.nS.experiments.CS(Z)};var kAu={"":"LIVE_STREAM_MODE_UNKNOWN",dvr:"LIVE_STREAM_MODE_DVR",lp:"LIVE_STREAM_MODE_LP",post:"LIVE_STREAM_MODE_POST",window:"LIVE_STREAM_MODE_WINDOW",live:"LIVE_STREAM_MODE_LIVE"};Lg.prototype.Y=function(Z){return this.experiments.CS(Z)};var IrL={RED:"red",wK5:"white"};J4.prototype.K_=function(Z){if(Z.au!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return bit(this,Z)}; J4.prototype.CS=function(Z){return this.flags.get(""+Z)==="true"};fI.prototype.BO=function(){return this.Z}; fI.prototype.RH=function(){return this.D}; fI.prototype.CS=function(Z){Z=this.K_(Z);JSON.stringify(Z);return Z==="true"}; fI.prototype.K_=function(Z){return this.flags[Z]};var KGl=Promise.resolve(),PGL=window.queueMicrotask?window.queueMicrotask.bind(window):CK$;E3l.prototype.canPlayType=function(Z,I){Z=Z.canPlayType?Z.canPlayType(I):!1;RZ?Z=Z||Xg0[I]:L6===2.2?Z=Z||tsM[I]:bq()&&(Z=Z||$ld[I]);return!!Z}; E3l.prototype.isTypeSupported=function(Z){return this.In?window.cast.receiver.platform.canDisplayType(Z):SJ(Z)}; var tsM={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},$ld={"application/x-mpegURL":"maybe"},Xg0={"application/x-mpegURL":"maybe"};g.U(R3,g.dx);R3.prototype.add=function(Z,I){if(!this.items[Z]&&(I.a7||I.Ky||I.o5)){var d=this.items,Y=I;Object.isFrozen&&!Object.isFrozen(I)&&(Y=Object.create(I),Object.freeze(Y));d[Z]=Y;this.publish("vast_info_card_add",Z)}}; R3.prototype.remove=function(Z){var I=this.get(Z);delete this.items[Z];return I}; R3.prototype.get=function(Z){return this.items[Z]||null}; R3.prototype.isEmpty=function(){return g.xG(this.items)};z5.prototype.encrypt=function(Z){this.L.exports.AES128CTRCipher_encrypt(this.cipher,Z.byteOffset,Z.byteLength);return Z}; z5.prototype.OZ=function(){return this.cipher===0}; z5.prototype.dispose=function(){this.L.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};TCD.prototype.Jh=function(Z,I){I=I===void 0?1:I;this.m$+=I;this.D+=Z;Z/=I;for(var d=0;d0)Y+="."+uP[T].toFixed(0)+"_"+d.L[T].toFixed(0);else break;d=Y}d&&(Z[I]=d)}this.L=new o2u;return Z}; g.n.toString=function(){return""};g.n=Q_r.prototype;g.n.isActive=function(){return!1}; g.n.Vo=function(){}; g.n.Xj=function(){}; g.n.e$=function(){}; g.n.n4=function(Z,I){I()}; g.n.Aj=function(){return{}}; g.n.toString=function(){return""};var pgv=new Q_r,xlM=!!+zv("html5_enable_profiler"),KI$=!!+zv("html5_onesie_enable_profiler"),Y7=xlM||KI$?new x1$:pgv,fPa=xlM?Y7:pgv,$P=KI$?Y7:pgv;QNd.prototype.emscripten_notify_memory_growth=function(){};g.n=xP.prototype;g.n.malloc=function(Z){return this.exports.malloc(Z)}; g.n.free=function(Z){this.exports.free(Z)}; g.n.realloc=function(Z,I){return this.exports.realloc(Z,I)}; g.n.ao=function(Z){if(Z.buffer!==this.exports.memory.buffer){var I=this.malloc(Z.byteLength);I=new Uint8Array(this.exports.memory.buffer,I,Z.byteLength);I.set(Z);return I}}; g.n.yW=function(Z){if(Z.buffer===this.exports.memory.buffer){var I=Z.slice();this.free(Z.byteOffset);return I}}; var g0n=new function(){this.L=this.D="WebAssembly"in window},ph="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); $P.Vo(xP,{ao:function(Z){return{profile:"copyj2w",m$:Z===void 0?0:Math.ceil(Z.byteLength/16)}}, yW:function(Z){return{profile:"copyw2j",m$:Z===void 0?0:Math.ceil(Z.byteLength/16)}}});CB.prototype.encrypt=function(Z,I){try{return this.L.yW(Txl(this,Z,I))}catch(d){g.uL(Error("ocwce: wasm encrypt failed: "+d))}}; CB.prototype.OZ=function(){return this.Z}; CB.prototype.dispose=function(){this.OZ()||(g.Th(this.D),this.L.free(this.N.byteOffset),this.Z=!0)};g.U(BV$,g.p);g.U(w4D,g.p);var q7;s6.prototype.add=function(Z){if(this.pos+20>this.data.length){var I=new Uint8Array(this.data.length*2);I.set(this.data);this.data=I}for(;Z>31;)this.data[this.pos++]=q7[(Z&31)+32],Z>>=5;this.data[this.pos++]=q7[Z|0]}; s6.prototype.It=function(){return g.Xv(this.data.subarray(0,this.pos))}; s6.prototype.reset=function(){this.pos=0};Gk.prototype.vJ=function(Z,I){var d=Math.pow(this.alpha,Z);this.L=I*(1-d)+d*this.L;this.D+=Z}; Gk.prototype.eD=function(){return this.L/(1-Math.pow(this.alpha,this.D))};qIJ.prototype.vJ=function(Z,I){for(var d=0;d<10;d++){var Y=this.L[d],T=Y+(d===0?Z:0),f=1*Math.pow(2,d);if(T<=f)break;Y=Math.min(1,(T-f*.5)/Y);for(T=0;T<16;T++)f=this.values[d*16+T]*Y,this.values[(d+1)*16+T]+=f,this.L[d+1]+=f,this.values[d*16+T]-=f,this.L[d]-=f}Y=d=0;T=8192;I>8192&&(d=Math.ceil(Math.log(I/8192)/Math.log(2)),Y=8192*Math.pow(2,d-1),T=Y*2);d+2>16?this.values[15]+=Z:(I=(I-Y)/(T-Y),this.values[d]+=Z*(1-I),this.values[d+1]+=Z*I);this.L[0]+=Z}; qIJ.prototype.eD=function(){var Z=Z===void 0?this.D:Z;var I=I===void 0?.02:I;var d=d===void 0?.98:d;for(var Y=this.Z,T=0;T<16;T++)Y[T]=this.values[T];T=this.L[0];for(var f=1;f<11;f++){var P=this.L[f];if(P===0)break;for(var O=Math.min(1,(Z-T)/P),a=0;a<16;a++)Y[a]+=this.values[f*16+a]*O;T+=P*O;if(O<1)break}for(f=Z=P=0;f<16;f++){O=P+Y[f]/T;Z+=Math.max(0,Math.min(O,d)-Math.max(P,I))*(f>0?8192*Math.pow(2,f-1):0);if(O>d)break;P=O}return Z/(d-I)};jK.prototype.vJ=function(Z,I){Z=Math.min(this.L,Math.max(1,Math.round(Z*this.resolution)));Z+this.D>=this.L&&(this.Z=!0);for(;Z--;)this.values[this.D]=I,this.D=(this.D+1)%this.L;this.bz=!0}; jK.prototype.percentile=function(Z){var I=this;if(!this.Z&&this.D===0)return 0;this.bz&&(g.ik(this.B,function(d,Y){return I.values[d]-I.values[Y]}),this.bz=!1); return this.values[this.B[Math.round(Z*((this.Z?this.L:this.D)-1))]]||0}; jK.prototype.eD=function(){return this.j?(this.percentile(this.N-this.j)+this.percentile(this.N)+this.percentile(this.N+this.j))/3:this.percentile(this.N)};g.U(JO,g.p);JO.prototype.sZ=function(){var Z;(Z=this.Tm)==null||Z.start();wB(this)&&this.policy.X&&(this.q8?this.q8.Ba():this.on())};lM$.prototype.Y=function(Z){return this.experiments.CS(Z)};g.U(xw9,g.p);var rC7="blogger discover-ads ads-preview gac books docs duo flix google-live google-one play play-ads shopping chat hangouts-meet photos-edu picasaweb gmail jamboard".split(" "),kpE={JBS:"caoe",Ca7:"capsv",gem:"cbrand",MI5:"cbr",Kv5:"cbrver",YM5:"cchip",wB5:"ccappver",Wv4:"ccrv",Vsn:"cfrmver",k05:"c",MLm:"cver",gkr:"ctheme",Z0Z:"cplayer",Md5:"cmodel",DZ:"cnetwork",Fhs:"cos",OS_VERSION:"cosver",RLS:"cplatform",WTm:"crqyear"};g.U(SL,g.p);g.n=SL.prototype;g.n.Y=function(Z){return this.experiments.CS(Z)}; g.n.BO=function(){return this.experiments.BO()}; g.n.RH=function(){return this.experiments.RH()}; g.n.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.n.getVideoUrl=function(Z,I,d,Y,T,f,P){I={list:I};d&&(T?I.time_continue=d:I.t=d);d=P?"music.youtube.com":g.t7(this);T=d==="www.youtube.com";!f&&Y&&T?f="https://youtu.be/"+Z:g.$D(this)?(f="https://"+d+"/fire",I.v=Z):(f&&T?(f=this.protocol+"://"+d+"/shorts/"+Z,Y&&(I.feature="share")):(f=this.protocol+"://"+d+"/watch",I.v=Z),RZ&&(Z=f_L())&&(I.ebc=Z));return g.gq(f,I)}; g.n.getVideoEmbedCode=function(Z,I,d,Y){I="https://"+g.t7(this)+"/embed/"+I;Y&&(I=g.gq(I,{list:Y}));Y=d.width;d=d.height;I=cj(I);Z=cj(Z!=null?Z:"YouTube video player");return'')}; g.n.supportsGaplessAudio=function(){return g.h_&&!RZ&&sh()>=74||g.Kb&&g.xT(68)?!0:!1}; g.n.supportsGaplessShorts=function(){return!this.Y("html5_enable_short_gapless")||this.w4||g.bT?!1:!0}; g.n.getPlayerType=function(){return this.L.cplayer}; g.n.Vy=function(){return this.Tx}; var obL=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],eU$=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],YF$=[19];var ji={},Ahu=(ji["140"]={numChannels:2},ji["141"]={numChannels:2},ji["251"]={audioSampleRate:48E3,numChannels:2},ji["774"]={audioSampleRate:48E3,numChannels:2},ji["380"]={numChannels:6},ji["328"]={numChannels:6},ji["773"]={},ji),Tr={},S59=(Tr["1"]='video/mp4; codecs="av01.0.08M.08"',Tr["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Tr["1e"]='video/mp4; codecs="av01.0.08M.08"',Tr["9"]='video/webm; codecs="vp9"',Tr["("]='video/webm; codecs="vp9"',Tr["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Tr.h='video/mp4; codecs="avc1.64001e"',Tr.H='video/mp4; codecs="avc1.64001e"',Tr.o='audio/webm; codecs="opus"',Tr.a='audio/mp4; codecs="mp4a.40.2"',Tr.ah='audio/mp4; codecs="mp4a.40.2"',Tr.mac3='audio/mp4; codecs="ac-3"; channels=6',Tr.meac3='audio/mp4; codecs="ec-3"; channels=6',Tr.i='audio/mp4; codecs="iamf.001.001.Opus"',Tr),iQ={},BNB=(iQ["337"]={width:3840,height:2160,bitrate:3E7,fps:30},iQ["336"]={width:2560,height:1440,bitrate:15E6,fps:30},iQ["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, iQ["702"]={width:7680,height:4320,bitrate:4E7,fps:60},iQ["701"]={width:3840,height:2160,bitrate:2E7,fps:60},iQ["700"]={width:2560,height:1440,bitrate:1E7,fps:60},iQ["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},iQ["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},iQ["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},iQ["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, iQ["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},iQ["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},iQ["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},iQ["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},iQ["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},iQ["315"]={width:3840,height:2160,bitrate:2E7,fps:60},iQ["308"]={width:2560, height:1440,bitrate:1E7,fps:60},iQ["303"]={width:1920,height:1080,bitrate:5E6,fps:60},iQ["302"]={width:1280,height:720,bitrate:25E5,fps:60},iQ["299"]={width:1920,height:1080,bitrate:75E5,fps:60},iQ["298"]={width:1280,height:720,bitrate:35E5,fps:60},iQ["571"]={width:7680,height:4320,bitrate:3E7,fps:60},iQ["401"]={width:3840,height:2160,bitrate:15E6,fps:60},iQ["400"]={width:2560,height:1440,bitrate:75E5,fps:60},iQ["399"]={width:1920,height:1080,bitrate:2E6,fps:60},iQ["398"]={width:1280,height:720,bitrate:1E6, fps:60},iQ["397"]={width:854,height:480,bitrate:4E5,fps:30},iQ["396"]={width:640,height:360,bitrate:25E4,fps:30},iQ["787"]={width:1080,height:608,bitrate:2E5,fps:30},iQ["788"]={width:1080,height:608,bitrate:4E5,fps:30},iQ["572"]={width:7680,height:4320,bitrate:3E7,fps:60},iQ["555"]={width:3840,height:2160,bitrate:15E6,fps:60},iQ["554"]={width:2560,height:1440,bitrate:75E5,fps:60},iQ["553"]={width:1920,height:1080,bitrate:2E6,fps:60},iQ["552"]={width:1280,height:720,bitrate:1E6,fps:60},iQ["551"]={width:854, height:480,bitrate:4E5,fps:30},iQ["550"]={width:640,height:360,bitrate:25E4,fps:30},iQ["313"]={width:3840,height:2160,bitrate:8E6,fps:30},iQ["271"]={width:2560,height:1440,bitrate:4E6,fps:30},iQ["248"]={width:1920,height:1080,bitrate:2E6,fps:30},iQ["247"]={width:1280,height:720,bitrate:15E5,fps:30},iQ["244"]={width:854,height:480,bitrate:52E4,fps:30},iQ["243"]={width:640,height:360,bitrate:28E4,fps:30},iQ["137"]={width:1920,height:1080,bitrate:4E6,fps:30},iQ["136"]={width:1280,height:720,bitrate:3E6, fps:30},iQ["135"]={width:854,height:480,bitrate:1E6,fps:30},iQ["385"]={width:1920,height:1080,bitrate:6503313,fps:60},iQ["376"]={width:1280,height:720,bitrate:5706960,fps:60},iQ["384"]={width:1280,height:720,bitrate:3660979,fps:60},iQ["225"]={width:1280,height:720,bitrate:5805E3,fps:30},iQ["224"]={width:1280,height:720,bitrate:453E4,fps:30},iQ["145"]={width:1280,height:720,bitrate:2682052,fps:30},iQ);g.n=qY.prototype;g.n.getInfo=function(){return this.L}; g.n.UO=function(){return null}; g.n.xt=function(){var Z=this.UO();return Z?(Z=g.Wt(Z.MC),Number(Z.expire)):NaN}; g.n.E2=function(){}; g.n.getHeight=function(){return this.L.video.height};HHB.prototype.build=function(){ydB(this);var Z=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],I={};a:if(this.L)var d=this.L;else{d="";for(var Y=g.t(this.Z),T=Y.next();!T.done;T=Y.next())if(T=T.value,T.uo){if(T.uo.getIsDefault()){d=T.uo.getId();break a}d||(d=T.uo.getId())}}Y=g.t(this.Z);for(T=Y.next();!T.done;T=Y.next())if(T=T.value,this.j||!T.uo||T.uo.getId()===d)I[T.itag]||(I[T.itag]=[]),I[T.itag].push(T);d=g.t(this.D);for(Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,T=I[Y.L]){T=g.t(T);for(var f=T.next();!f.done;f= T.next()){var P=Z,O=P.push;f=f.value;var a="#EXT-X-MEDIA:TYPE=AUDIO,",W="YES",e="audio";if(f.uo){e=f.uo;var B=e.getId().split(".")[0];B&&(a+='LANGUAGE="'+B+'",');(this.L?this.L===e.getId():e.getIsDefault())||(W="NO");e=e.getName()}B="";Y!==null&&(B=Y.itag.toString());B=T3n(this,f.url,B);a=a+('NAME="'+e+'",DEFAULT='+(W+',AUTOSELECT=YES,GROUP-ID="'))+(TIn(f,Y)+'",URI="'+(B+'"'));O.call(P,a)}}d=g.t(this.B);for(Y=d.next();!Y.done;Y=d.next())Y=Y.value,T=C3u,Y=(P=Y.uo)?'#EXT-X-MEDIA:URI="'+T3n(this,Y.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+T+'",LANGUAGE="'+P.getId()+'",NAME="'+P.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,Y&&Z.push(Y);d=this.B.length>0?C3u:void 0;Y=g.t(this.D);for(T=Y.next();!T.done;T=Y.next())T=T.value,O=I[T.L],P=void 0,((P=O)==null?void 0:P.length)>0&&(P=T,O=O[0],O="#EXT-X-STREAM-INF:BANDWIDTH="+(P.bitrate+O.bitrate)+',CODECS="'+(P.codecs+","+O.codecs+'",RESOLUTION=')+(P.width+"x"+P.height+',AUDIO="')+(TIn(O,P)+'",')+(d?'SUBTITLES="'+d+'",':"")+"CLOSED-CAPTIONS=NONE",P.fps>1&&(O+= ",FRAME-RATE="+P.fps),P.Sb&&(O+=",VIDEO-RANGE="+P.Sb),Z.push(O),Z.push(T3n(this,T.url,"")));return Z.join("\n")}; var C3u="text";g.U(JQ,qY);JQ.prototype.xt=function(){return this.expiration}; JQ.prototype.UO=function(){if(!this.MC||this.MC.OZ()){var Z=this.D.build();Z="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(Z);this.MC=new $8(Z)}return this.MC};g.U(eT,qY);eT.prototype.UO=function(){return new $8(this.D.VI())}; eT.prototype.E2=function(){this.D=sN(62,this.D)};g.U($H,qY);$H.prototype.UO=function(){return new $8(this.D)};var f1={},lql=(f1.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",f1.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",f1.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",f1.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",f1);g.n=g.bc.prototype;g.n.getId=function(){return this.id}; g.n.getName=function(){return this.name}; g.n.isServable=function(){return this.L}; g.n.VI=function(){return this.url}; g.n.getXtags=function(){return this.xtags}; g.n.toString=function(){return this.languageCode+": "+g.h9(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.n.equals=function(Z){return Z?this.toString()===Z.toString():!1}; g.n.FF=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var a5D={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},Wf7={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},ed7=/^(\d*)_((\d*)_?(\d*))$/;var Nd7={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},SvO={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var P_={},EwL=(P_.ALWAYS=1,P_.BY_REQUEST=3,P_.UNKNOWN=void 0,P_),Q5={},bFd=(Q5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",Q5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",Q5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",Q5.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",Q5);var RML; RML=function(Z){for(var I=Object.keys(Z),d={},Y=0;YY-I?-1:Z}; g.n.nC=function(){return this.D.c$()}; g.n.mS=function(){return this.D.HS()}; g.n.qG=function(Z){this.D=Z};g.U(tM,XF);tM.prototype.D=function(Z,I){return XF.prototype.D.call(this,"$N|"+Z,I)}; tM.prototype.B=function(Z,I,d){return new Rc(Z,I,d,this.isLive)};g.U(g.DX,g.dx);g.n=g.DX.prototype; g.n.setData=function(Z){Z=Z||{};var I=Z.errordetail;I!=null&&(this.errorDetail=I);var d=Z.errorcode;d!=null?this.errorCode=d:Z.status==="fail"&&(this.errorCode="auth");var Y=Z.reason;Y!=null&&(this.errorReason=Y);var T=Z.subreason;T!=null&&(this.aU=T);this.clientPlaybackNonce||(this.clientPlaybackNonce=Z.cpn||(this.nS.Vy()?"r"+g.LY(15):g.LY(16)));this.y5=U2(this.nS.y5,Z.livemonitor);Bcr(this,Z);var f=Z.raw_player_response;if(f)this.qb=f;else{var P=Z.player_response;P&&(f=JSON.parse(P))}f&&(this.playerResponse= f);if(this.playerResponse){var O=this.playerResponse.annotations;if(O)for(var a=g.t(O),W=a.next();!W.done;W=a.next()){var e=W.value.playerAnnotationsUrlsRenderer;if(e){e.adsOnly&&(this.SG=!0);var B=e.loadPolicy;B&&(this.annotationsLoadPolicy=EwL[B]);var w=e.invideoUrl;w&&(this.Tm=S1(w));break}}var V=this.playerResponse.attestation;V&&kja(this,V);var N=this.playerResponse.cotn;N&&(this.cotn=N);var q=this.playerResponse.heartbeatParams;if(q){this.Lb=!0;var A=q.heartbeatToken;A&&(this.drmSessionId=q.drmSessionId|| "",this.heartbeatToken=A,this.p8=Number(q.intervalMilliseconds),this.Zj=Number(q.maxRetries),this.a9=!!q.softFailOnError,this.fI=!!q.useInnertubeHeartbeatsForDrm);this.heartbeatServerData=q.heartbeatServerData;var F;this.ZL=!((F=q.heartbeatAttestationConfig)==null||!F.requiresAttestation)}var J=this.playerResponse.messages;J&&g7L(this,J);var v=this.playerResponse.overlay;if(v){var l=v.playerControlsOverlayRenderer;if(l)if(qQu(this,l.controlBgHtml),l.mutedAutoplay){var X=g.y(l.mutedAutoplay,Pyv);if(X&& X.endScreen){var H=g.y(X.endScreen,Q8p);H&&H.text&&(this.fY=g.Q1(H.text))}}else this.mutedAutoplay=!1}var x=this.playerResponse.playabilityStatus;if(x){var Id=x.backgroundability;Id&&Id.backgroundabilityRenderer.backgroundable&&(this.backgroundable=!0);var TB,dD;if((TB=x.offlineability)==null?0:(dD=TB.offlineabilityRenderer)==null?0:dD.offlineable)this.offlineable=!0;var Qu=x.contextParams;Qu&&(this.contextParams=Qu);var Zr=x.pictureInPicture;Zr&&Zr.pictureInPictureRenderer.playableInPip&&(this.pipable= !0);x.playableInEmbed&&(this.allowEmbed=!0);var sJ=x.ypcClickwrap;if(sJ){var bL=sJ.playerLegacyDesktopYpcClickwrapRenderer,TL=sJ.ypcRentalActivationRenderer;if(bL)this.BK=bL.durationMessage||"",this.hV=!0;else if(TL){var jt=TL.durationMessage;this.BK=jt?g.Q1(jt):"";this.hV=!0}}var yu=x.errorScreen;if(yu){if(yu.playerLegacyDesktopYpcTrailerRenderer){var UJ=yu.playerLegacyDesktopYpcTrailerRenderer;this.Zn=UJ.trailerVideoId||"";var X0=yu.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer;var Ag=X0&&X0.ypcTrailerRenderer}else if(yu.playerLegacyDesktopYpcOfferRenderer)UJ= yu.playerLegacyDesktopYpcOfferRenderer;else if(yu.ypcTrailerRenderer){Ag=yu.ypcTrailerRenderer;var vE=Ag.fullVideoMessage;this.jA=vE?g.Q1(vE):"";var oS,Ci;this.Zn=((oS=g.y(Ag,OLi))==null?void 0:(Ci=oS.videoDetails)==null?void 0:Ci.videoId)||""}UJ&&(this.OL=UJ.itemTitle||"",UJ.itemUrl&&(this.P6=UJ.itemUrl),UJ.itemBuyUrl&&(this.Ej=UJ.itemBuyUrl),this.c6=UJ.itemThumbnail||"",this.Gu=UJ.offerHeadline||"",this.VX=UJ.offerDescription||"",this.SL=UJ.offerId||"",this.e5=UJ.offerButtonText||"",this.K2=UJ.offerButtonFormattedText|| null,this.JW=UJ.overlayDurationMsec||NaN,this.jA=UJ.fullVideoMessage||"",this.hK=!0);if(Ag){var iL=g.y(Ag,OLi);if(iL)this.z0={raw_player_response:iL};else{var Rv=g.y(Ag,nEV);this.z0=Rv?aW(Rv):null}this.hK=!0}}}var D=this.playerResponse.playbackTracking;if(D){var M=Z,FH=bU(D.googleRemarketingUrl);FH&&(this.googleRemarketingUrl=FH);var YC=bU(D.youtubeRemarketingUrl);YC&&(this.youtubeRemarketingUrl=YC);var U5={},fU=bU(D.ptrackingUrl);if(fU){var cO=AK(fU),rD=cO.oid;rD&&(this.mp=rD);var Ah=cO.pltype;Ah&& (this.dC=Ah);var R=cO.ptchn;R&&(this.zt=R);var S=cO.ptk;S&&(this.tL=encodeURIComponent(S));var L=cO.m;L&&(this.P1=L)}var u=bU(D.qoeUrl);if(u){for(var E=g.Wt(u),fl=g.t(Object.keys(E)),K=fl.next();!K.done;K=fl.next()){var od=K.value,G=E[od];E[od]=Array.isArray(G)?G.join(","):G}this.bZ=E;var S$=E.cat;S$&&(this.Y("html5_enable_qoe_cat_list")?this.BS=this.BS.concat(S$.split(",")):this.s_=S$);var vO=E.live;vO&&(this.Yy=vO);var Fn=E.drm_product;Fn&&(this.drmProduct=Fn)}var Rd=bU(D.videostatsPlaybackUrl); if(Rd){var k9=AK(Rd),Dr=k9.adformat;if(Dr){M.adformat=Dr;var pU=this.C(),cl=hm7(Dr,this.x7,pU.N,pU.X);cl&&(this.adFormat=cl)}var Zh=k9.aqi;Zh&&(M.ad_query_id=Zh);var Ll=k9.autoplay;Ll&&(this.t_=Ll=="1",this.yX=Ll=="1");var bN=k9.autonav;bN&&(this.isAutonav=bN=="1");var lL=k9.delay;lL&&(this.UZ=ch(lL));var mg=k9.ei;mg&&(this.eventId=mg);var $9=rA(k9.adcontext);if($9)try{var hY=PNt($9);hY&&(this.RD=hY)}catch(o_0){g.uL(Error("Malformed adContext"))}if($9||Dr)this.t_=!0;var q3=k9.feature;q3&&(this.fW= q3);var gu=k9.list;gu&&(this.playlistId=gu);var dh=k9.of;dh&&(this.pm=dh);var $W=k9.osid;$W&&(this.osid=$W);var up=k9.referrer;up&&(this.referrer=up);var Fk=k9.sdetail;Fk&&(this.fD=Fk);var yE=k9.ssrt;yE&&(this.F1=yE=="1");var w6=k9.subscribed;w6&&(this.subscribed=w6=="1");var VF=k9.uga;VF&&(this.userGenderAge=VF);var Mh=k9.upt;Mh&&(this.Yf=Mh);var rx=k9.vm;rx&&(this.videoMetadata=rx);U5.playback=k9}var PP=bU(D.videostatsWatchtimeUrl);if(PP){var nM=AK(PP),ZN=nM.ald;ZN&&(this.gF=ZN);U5.watchtime=nM}var II= bU(D.atrUrl);if(II){var p3=AK(II);U5.atr=p3}var EH=bU(D.engageUrl);if(EH){var mp=AK(EH);U5.engage=mp}this.KW=U5;if(D.promotedPlaybackTracking){var zl=D.promotedPlaybackTracking;zl.startUrls&&(this.LD=zl.startUrls);zl.firstQuartileUrls&&(this.Bp=zl.firstQuartileUrls);zl.secondQuartileUrls&&(this.jb=zl.secondQuartileUrls);zl.thirdQuartileUrls&&(this.OO=zl.thirdQuartileUrls);zl.completeUrls&&(this.nG=zl.completeUrls);zl.engagedViewUrls&&(zl.engagedViewUrls.length>1&&g.uL(new g.Wj("There are more than one engaged_view_urls.")), this.ZF=zl.engagedViewUrls[0])}}var qh=this.playerResponse.playerCueRanges;qh&&qh.length>0&&(this.cueRanges=qh);var dZ=this.playerResponse.playerCueRangeSet;dZ&&g.Au7(this,dZ);a:{var S2=this.playerResponse.adPlacements;if(S2)for(var oI=g.t(S2),AY=oI.next();!AY.done;AY=oI.next()){var Y1=void 0,jG=void 0,Tz=(Y1=AY.value.adPlacementRenderer)==null?void 0:(jG=Y1.renderer)==null?void 0:jG.videoAdTrackingRenderer;if(Tz){var by=Tz;break a}}by=null}var Dv=by;D&&D.promotedPlaybackTracking&&Dv&&g.uL(new g.Wj("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer")); var m0;if(!(m0=Dv))a:{for(var Et=g.t(this.playerResponse.adSlots||[]),JA=Et.next();!JA.done;JA=Et.next()){var JY=g.y(JA.value,s1);if(JY===void 0||!EDu(JY))break;var x1=void 0,qI=(x1=JY.fulfillmentContent)==null?void 0:x1.fulfilledLayout,bz=g.y(qI,wa);if(bz&&Vf(bz)){m0=!0;break a}}m0=!1}m0&&(this.PQ=!0);var H1=this.playerResponse.playerAds;if(H1)for(var ms=Z,c1=g.t(H1),i0=c1.next();!i0.done;i0=c1.next()){var Rl=i0.value;if(Rl){var YS=Rl.playerLegacyDesktopWatchAdsRenderer;if(YS){var K3=YS.playerAdParams; if(K3){K3.autoplay=="1"&&(this.yX=this.t_=!0);this.xO=K3.encodedAdSafetyReason||null;K3.showContentThumbnail!==void 0&&(this.M_=!!K3.showContentThumbnail);ms.enabled_engage_types=K3.enabledEngageTypes;break}}}}var hB=this.playerResponse.playerConfig;if(hB){var Sz=hB.manifestlessWindowedLiveConfig;if(Sz){var A5=Number(Sz.minDvrSequence),jJ=Number(Sz.maxDvrSequence),Lw=Number(Sz.minDvrMediaTimeMs),HM=Number(Sz.maxDvrMediaTimeMs),OU=Number(Sz.startWalltimeMs);A5&&(this.KN=A5);Lw&&(this.fS=Lw/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&& j2(this)&&(this.Wh=Lw/1E3));jJ&&(this.jo=jJ);HM&&(this.Yl=HM/1E3,this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&j2(this)&&(this.gf=HM/1E3));OU&&(this.Hk=OU/1E3);(A5||Lw)&&(jJ||HM)&&(this.allowLiveDvr=this.isLivePlayback=this.Ns=!0,this.uu=!1)}var UA=hB.daiConfig;if(UA){if(UA.enableDai){this.Z5=!0;var Az=UA.enableServerStitchedDai;Az&&(this.enableServerStitchedDai=Az);var cM=UA.enablePreroll;cM&&(this.C8=cM)}var aA;if(UA.daiType==="DAI_TYPE_SS_DISABLED"||((aA=UA.debugInfo)==null?0:aA.isDisabledUnpluggedChannel))this.AT= !0;UA.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(this.oA=!0);UA.allowUstreamerRequestAdconfig&&(this.hL=!0)}var qV=hB.audioConfig;if(qV){var YZ=qV.loudnessDb;YZ!=null&&(this.u8=YZ);var T5=qV.trackAbsoluteLoudnessLkfs;T5!=null&&(this.Qu=T5);var Yod=qV.loudnessTargetLkfs;Yod!=null&&(this.loudnessTargetLkfs=Yod);qV.audioMuted&&(this.IF=!0);qV.muteOnStart&&(this.Pp=!0);var uo=qV.loudnessNormalizationConfig;if(uo){uo.applyStatefulNormalization&&(this.applyStatefulNormalization=!0);uo.preserveStatefulLoudnessTarget&& (this.preserveStatefulLoudnessTarget=!0);var jyB=uo.minimumLoudnessTargetLkfs;jyB!=null&&(this.minimumLoudnessTargetLkfs=jyB);var T9J=uo.maxStatefulTimeThresholdSec;T9J!=null&&(this.maxStatefulTimeThresholdSec=T9J)}qV.playAudioOnly&&(this.wV=!0)}var dlO=hB.playbackEndConfig;if(dlO){var iV9=dlO.endSeconds,fG7=dlO.limitedPlaybackDurationInSeconds;this.mutedAutoplay&&(iV9&&(this.endSeconds=iV9),fG7&&(this.limitedPlaybackDurationInSeconds=fG7))}var t1=hB.fairPlayConfig;if(t1){var PlB=t1.certificate;PlB&& (this.w4=rA(PlB));var Qy$=Number(t1.keyRotationPeriodMs);Qy$>0&&(this.yD=Qy$);var OVL=Number(t1.keyPrefetchMarginMs);OVL>0&&(this.Gy=OVL)}var Xu=hB.playbackStartConfig;if(Xu){this.nW=Number(Xu.startSeconds);var aGr=Xu.liveUtcStartSeconds,WPd=!!this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0;aGr&&!WPd&&(this.liveUtcStartSeconds=Number(aGr));var owu=Xu.startPosition;if(owu){var eV$=owu.utcTimeMillis;eV$&&!WPd&&(this.liveUtcStartSeconds=Number(eV$)*.001);var B9B=owu.streamTimeMillis;B9B&&(this.En= Number(B9B)*.001)}this.progressBarStartPosition=Xu.progressBarStartPosition;this.progressBarEndPosition=Xu.progressBarEndPosition}else{var YNO=hB.skippableSegmentsConfig;if(YNO){var wa7=YNO.introSkipDurationMs;wa7&&(this.gG=Number(wa7)/1E3);var VC9=YNO.outroSkipDurationMs;VC9&&(this.sR=Number(VC9)/1E3)}}var jBi=hB.skippableIntroConfig;if(jBi){var N9d=Number(jBi.startMs),FPO=Number(jBi.endMs);isNaN(N9d)||isNaN(FPO)||(this.gb=N9d,this.Tx=FPO)}var syD=hB.streamSelectionConfig;syD&&(this.SK=Number(syD.maxBitrate)); var njr=hB.vrConfig;njr&&(this.rI=njr.partialSpherical=="1");var GX=hB.webDrmConfig;if(GX){GX.skipWidevine&&(this.w_=!0);var hVd=GX.widevineServiceCert;hVd&&(this.xk=rA(hVd));GX.useCobaltWidevine&&(this.useCobaltWidevine=!0);GX.startWithNoQualityConstraint&&(this.ZM=!0)}var zY=hB.mediaCommonConfig;if(zY){var $Z=zY.dynamicReadaheadConfig;if($Z){this.maxReadAheadMediaTimeMs=$Z.maxReadAheadMediaTimeMs||NaN;this.minReadAheadMediaTimeMs=$Z.minReadAheadMediaTimeMs||NaN;this.readAheadGrowthRateMs=$Z.readAheadGrowthRateMs|| NaN;var mcD,qo9=zY==null?void 0:(mcD=zY.mediaUstreamerRequestConfig)==null?void 0:mcD.videoPlaybackUstreamerConfig;qo9&&(this.Fw=rA(qo9));var T6r=zY==null?void 0:zY.sabrContextUpdates;if(T6r&&T6r.length>0)for(var So7=g.t(T6r),iF$=So7.next();!iF$.done;iF$=So7.next()){var dv=iF$.value;if(dv.type&&dv.value){var mg0={type:dv.type,scope:dv.scope,value:rA(dv.value)||void 0,sendByDefault:dv.sendByDefault};this.sabrContextUpdates.set(dv.type,mg0)}}}var A$E=zY.serverPlaybackStartConfig;A$E&&(this.serverPlaybackStartConfig= A$E);zY.useServerDrivenAbr&&(this.by=!0);var Dcr=zY.requestPipeliningConfig;Dcr&&(this.requestPipeliningConfig=Dcr)}var J$$=hB.inlinePlaybackConfig;J$$&&(this.Ip=!!J$$.showAudioControls);var pf=hB.embeddedPlayerConfig;if(pf){this.embeddedPlayerConfig=pf;var fX9=pf.embeddedPlayerMode;if(fX9){var RV7=this.C();RV7.Bj=fX9;RV7.Z=fX9==="EMBEDDED_PLAYER_MODE_PFL"}var LPO=pf.permissions;LPO&&(this.allowImaMonetization=!!LPO.allowImaMonetization)}var xZ=hB.webPlayerConfig;xZ&&(xZ.gatewayExperimentGroup&&(this.gatewayExperimentGroup= xZ.gatewayExperimentGroup),xZ.isProximaEligible&&(this.isProximaLatencyEligible=!0))}var ke=this.playerResponse.streamingData;if(ke){var P3r=ke.formats;if(P3r){for(var zX=[],Uci=g.t(P3r),QBD=Uci.next();!QBD.done;QBD=Uci.next()){var OFd=QBD.value;zX.push(OFd.itag+"/"+OFd.width+"x"+OFd.height)}this.QT=zX.join(",");zX=[];for(var y$u=g.t(P3r),aXd=y$u.next();!aXd.done;aXd=y$u.next()){var kI=aXd.value,X_={itag:kI.itag,type:kI.mimeType,quality:kI.quality},vjJ=kI.url;vjJ&&(X_.url=vjJ);var Kf=CF(21,kI),qng= Kf.cZ,Snd=Kf.Fj,A3d=Kf.s;Kf.tH&&(X_.url=qng,X_.sp=Snd,X_.s=A3d);zX.push(g.xM(X_))}this.aE=zX.join(",")}var WIa=ke.hlsFormats;if(WIa){var lGJ=hB||null,Cf={};if(lGJ){var eKa=lGJ.audioPairingConfig;if(eKa&&eKa.pairs)for(var uAl=g.t(eKa.pairs),B6n=uAl.next();!B6n.done;B6n=uAl.next()){var GkE=B6n.value,wga=GkE.videoItag;Cf[wga]||(Cf[wga]=[]);Cf[wga].push(GkE.audioItag)}}for(var zVE={},kkJ=g.t(WIa),Vsd=kkJ.next();!Vsd.done;Vsd=kkJ.next()){var Xa7=Vsd.value;zVE[Xa7.itag]=Xa7.bitrate}for(var tCn=[],$cL=g.t(WIa), N6J=$cL.next();!N6J.done;N6J=$cL.next()){var C3=N6J.value,Df={itag:C3.itag,type:C3.mimeType,url:C3.url,bitrate:C3.bitrate,width:C3.width,height:C3.height,fps:C3.fps},Eu=C3.audioTrack;if(Eu){var paa=Eu.displayName;paa&&(Df.name=paa,Df.audio_track_id=Eu.id,Eu.audioIsDefault&&(Df.is_default="1"))}if(C3.drmFamilies){for(var xcB=[],KPJ=g.t(C3.drmFamilies),FIr=KPJ.next();!FIr.done;FIr=KPJ.next())xcB.push(soB[FIr.value]);Df.drm_families=xcB.join(",")}var bV=Cf[C3.itag];if(bV&&bV.length){Df.audio_itag=bV.join(","); var Clr=zVE[bV[0]];Clr&&(Df.bitrate+=Clr)}var EjO=fO9(C3);EjO&&(Df.eotf=EjO);C3.audioChannels&&(Df.audio_channels=C3.audioChannels);tCn.push(g.xM(Df))}this.hlsFormats=tCn.join(",")}var sBL=ke.licenseInfos;if(sBL&&sBL.length>0){for(var bVE={},HVL=g.t(sBL),nwD=HVL.next();!nwD.done;nwD=HVL.next()){var c$l=nwD.value,gjr=c$l.drmFamily,MCB=c$l.url;gjr&&MCB&&(bVE[soB[gjr]]=MCB)}this.T_=bVE}var r$L=ke.drmParams;r$L&&(this.drmParams=r$L);var ZBu=ke.dashManifestUrl;ZBu&&(this.EU=g.gq(ZBu,{cpn:this.clientPlaybackNonce})); var Ia9=ke.hlsManifestUrl;Ia9&&(this.hlsvp=Ia9);var dSl=ke.probeUrl;dSl&&(this.probeUrl=S1(g.gq(dSl,{cpn:this.clientPlaybackNonce})));var oYa=ke.serverAbrStreamingUrl;oYa&&(this.Vx=new g.rF(oYa,!0))}var YhE=this.playerResponse.trackingParams;YhE&&(this.kS=YhE);var sj=this.playerResponse.videoDetails;if(sj){var JD=Z,hKD=sj.videoId;hKD&&(this.videoId=hKD,JD.video_id||(JD.video_id=hKD));var mlE=sj.title;mlE&&(this.title=mlE,JD.title||(JD.title=mlE));var qNO=sj.lengthSeconds;qNO&&(this.lengthSeconds= Number(qNO),JD.length_seconds||(JD.length_seconds=qNO));var ji$=sj.keywords;ji$&&(this.keywords=nHL(ji$));var SNL=sj.channelId;SNL&&(this.vl=SNL,JD.ucid||(JD.ucid=SNL));var TP$=sj.viewCount;TP$&&(this.rawViewCount=Number(TP$));var AGn=sj.author;AGn&&(this.author=AGn,JD.author||(JD.author=AGn));var iB7=sj.shortDescription;iB7&&(this.shortDescription=iB7);var fai=sj.isCrawlable;fai&&(this.isListed=fai);var PDE=sj.musicVideoType;PDE&&(this.musicVideoType=PDE);var Dl$=sj.isLive;Dl$!=null&&(this.isLivePlayback= Dl$);if(Dl$||sj.isUpcoming)this.isPremiere=!sj.isLiveContent;var Qi9=sj.thumbnail;Qi9&&(this.X=V0(Qi9));var OBa=sj.isExternallyHostedPodcast;OBa&&(this.isExternallyHostedPodcast=OBa);var JGL=sj.viewerLivestreamJoinPosition;if(JGL==null?0:JGL.utcTimeMillis)this.Xz=ch(JGL.utcTimeMillis);var aaL=hB||null,RKJ=Z;sj.isLiveDefaultBroadcast&&(this.isLiveDefaultBroadcast=!0);sj.isUpcoming&&(this.isUpcoming=!0);if(sj.isPostLiveDvr){this.uu=!0;var WXn=sj.latencyClass;WXn&&(this.latencyClass=bFd[WXn]||"UNKNOWN"); sj.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0)}else{var LId=!1;this.y5?(this.allowLiveDvr=Nn()?!0:l7&&Xx<5?!1:!0,this.isLivePlayback=!0):sj.isLive?(RKJ.livestream="1",this.allowLiveDvr=sj.isLiveDvrEnabled?Nn()?!0:l7&&Xx<5?!1:!0:!1,this.partnerId=27,LId=!0):sj.isUpcoming&&(LId=!0);if(sj.isLive||this.y5){sj.isLowLatencyLiveStream&&(this.isLowLatencyLiveStream=!0);var eBl=sj.latencyClass;eBl&&(this.latencyClass=bFd[eBl]||"UNKNOWN");var BP7=sj.liveChunkReadahead;BP7&&(this.liveChunkReadahead= BP7);var tz=aaL&&aaL.livePlayerConfig;if(tz){tz.hasSubfragmentedFmp4&&(this.hasSubfragmentedFmp4=!0);tz.hasSubfragmentedWebm&&(this.U$=!0);tz.defraggedFromSubfragments&&(this.defraggedFromSubfragments=!0);var wWu=tz.liveExperimentalContentId;wWu&&(this.liveExperimentalContentId=Number(wWu));var VNO=tz.isLiveHeadPlayable;this.Y("html5_live_head_playable")&&VNO!=null&&(this.isLiveHeadPlayable=VNO)}}LId&&(this.isLivePlayback=!0,RKJ.adformat&&RKJ.adformat.split("_")[1]!=="8"||this.Bj.push("heartbeat"))}var NP9= sj.isPrivate;NP9!==void 0&&(this.isPrivate=U2(this.isPrivate,NP9))}if(x){var FX9=sj||null,siD=!1,aZ=x.errorScreen;siD=aZ&&(aZ.playerLegacyDesktopYpcOfferRenderer||aZ.playerLegacyDesktopYpcTrailerRenderer||aZ.ypcTrailerRenderer)?!0:FX9&&FX9.isUpcoming?!0:["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(x.status);if(!siD){this.errorCode=Fqa(x.errorCode)||"auth";var HN=aZ&&aZ.playerErrorMessageRenderer;if(HN){this.playerErrorMessageRenderer=HN;var nYd=HN.reason;nYd&&(this.errorReason=g.Q1(nYd)); var Uld=HN.subreason;Uld&&(this.aU=g.Q1(Uld),this.bk=Uld)}else this.errorReason=x.reason||null;var yGd=x.status;if(yGd==="LOGIN_REQUIRED")this.errorDetail="1";else if(yGd==="CONTENT_CHECK_REQUIRED")this.errorDetail="2";else if(yGd==="AGE_CHECK_REQUIRED"){var hB7=x.errorScreen,mSE=hB7&&hB7.playerKavRenderer;this.errorDetail=mSE&&mSE.kavUrl?"4":"3"}else{var qh7,Sh$,Avu,Dgv=(Avu=aZ==null?void 0:(qh7=aZ.playerErrorMessageRenderer)==null?void 0:(Sh$=qh7.proceedButton)==null?void 0:Sh$.buttonRenderer)== null?void 0:Avu.command;if(x.isBlockedInRestrictedMode)this.errorDetail="5";else{var DSE;((DSE=g.y(Dgv,CNp))==null?void 0:DSE.signal)==="RELOAD_PAGE"?this.errorDetail="7":this.errorDetail="0"}}}}var JvO=this.playerResponse.interstitialPods;JvO&&aja(this,JvO);this.Tm&&this.eventId&&(this.Tm=U4(this.Tm,{ei:this.eventId}));var vwa=this.playerResponse.captions;if(vwa&&vwa.playerCaptionsTracklistRenderer)a:{var Rz=vwa.playerCaptionsTracklistRenderer;this.captionTracks=[];if(Rz.captionTracks)for(var RBB= g.t(Rz.captionTracks),lXD=RBB.next();!lXD.done;lXD=RBB.next()){var Lc=lXD.value,LXD=FS9(Lc.baseUrl);if(!LXD)break a;var up9={is_translateable:!!Lc.isTranslatable,languageCode:Lc.languageCode,languageName:Lc.name&&g.Q1(Lc.name),url:LXD,vss_id:Lc.vssId,kind:Lc.kind};up9.name=Lc.trackName;up9.displayName=Lc.name&&g.Q1(Lc.name);this.captionTracks.push(new g.bc(up9))}this.L2=Rz.audioTracks||[];this.Bt=Rz.defaultAudioTrackIndex||0;this.Ty=[];if(Rz.translationLanguages)for(var USn=g.t(Rz.translationLanguages), GA7=USn.next();!GA7.done;GA7=USn.next()){var $B=GA7.value,o5={};o5.languageCode=$B.languageCode;o5.languageName=g.Q1($B.languageName);if($B.translationSourceTrackIndices){o5.translationSourceTrackIndices=[];for(var yv7=g.t($B.translationSourceTrackIndices),zKB=yv7.next();!zKB.done;zKB=yv7.next())o5.translationSourceTrackIndices.push(zKB.value)}if($B.excludeAudioTrackIndices){o5.excludeAudioTrackIndices=[];for(var vYu=g.t($B.excludeAudioTrackIndices),kAD=vYu.next();!kAD.done;kAD=vYu.next())o5.excludeAudioTrackIndices.push(kAD.value)}this.Ty.push(o5)}this.kp= [];if(Rz.defaultTranslationSourceTrackIndices)for(var la7=g.t(Rz.defaultTranslationSourceTrackIndices),Xgn=la7.next();!Xgn.done;Xgn=la7.next())this.kp.push(Xgn.value);this.YO=!!Rz.contribute&&!!Rz.contribute.captionsMetadataRenderer}(this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.nW=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&& Vl$(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var u8B;this.compositeLiveIngestionOffsetToken=(u8B=this.playerResponse.playbackTracking)==null?void 0:u8B.compositeLiveIngestionOffsetToken;var G3d;this.compositeLiveStatusToken=(G3d=this.playerResponse.playbackTracking)==null?void 0:G3d.compositeLiveStatusToken;this.Y("html5_fill_default_mosaic_audio_track_id")&&qA(this)&&(this.nS.J5=d$7(this,this.Y("html5_cdm_use_first_as_default_audio_track")));var zBl,k3D,XWu= (zBl=this.playerResponse.playerConfig)==null?void 0:(k3D=zBl.granularVariableSpeedConfig)==null?void 0:k3D.minimumPlaybackRate,tNu,$Sd,pWa=(tNu=this.playerResponse.playerConfig)==null?void 0:($Sd=tNu.granularVariableSpeedConfig)==null?void 0:$Sd.maximumPlaybackRate;XWu&&pWa&&(this.No=XWu/100,this.Mo=pWa/100);this.heartbeatLoggingToken=this.playerResponse.heartbeatLoggingToken}w3E(this,Z);var xS$=Z.raw_reel_item_watch_response;xS$&&(this.reelItemWatchResponse=xS$);Z.queue_info&&(this.queueInfo=Z.queue_info); var KXO=Z.hlsdvr;KXO!=null&&(this.allowLiveDvr=Number(KXO)===1?Nn()?!0:l7&&Xx<5?!1:!0:!1);this.adQueryId=Z.ad_query_id||null;this.xO||(this.xO=Z.encoded_ad_safety_reason||null);this.IF=U2(this.IF,Z.infringe||Z.muted);this.Kl5=Z.authkey;this.nS4=Z.authuser;this.mutedAutoplay=U2(this.mutedAutoplay,Z&&Z.playmuted);this.mutedAutoplayDurationMode=DJ(this.mutedAutoplayDurationMode,Z&&Z.muted_autoplay_duration_mode);this.Wz=U2(this.Wz,Z&&Z.mutedautoplay);var cN=Z.length_seconds;cN&&(this.lengthSeconds=typeof cN=== "string"?ch(cN):cN);if(this.isAd()||this.Du||!g.By(g.Wy(this.nS)))this.endSeconds=DJ(this.endSeconds,this.sR||Z.end||Z.endSeconds);else{var J3g=g.Wy(this.nS),g7=this.lengthSeconds;switch(J3g){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":g7>30?this.limitedPlaybackDurationInSeconds=30:g7<30&&g7>10&&(this.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":this.limitedPlaybackDurationInSeconds=g7*.2}}this.kS=qQ(this.kS,Z.itct);this.uG=U2(this.uG, Z.is_live_destination);this.isLivePlayback=U2(this.isLivePlayback,Z.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.Qy();Z.isUpcoming&&(this.isUpcoming=U2(this.isUpcoming,Z.isUpcoming));this.uu=U2(this.uu,Z.post_live_playback);this.Ns&&(this.uu=!1);this.isMdxPlayback=U2(this.isMdxPlayback,Z.mdx);var Mo=Z.mdx_control_mode;Mo&&(this.mdxControlMode=typeof Mo==="number"?Mo:ch(Mo));this.isInlinePlaybackNoAd=U2(this.isInlinePlaybackNoAd,Z.is_inline_playback_no_ad);this.eK= DJ(this.eK,Z.reload_count);this.reloadReason=qQ(this.reloadReason,Z.reload_reason);this.M_=U2(this.M_,Z.show_content_thumbnail);this.cycToken=Z.cyc||null;var CDD=WK(Z);Object.keys(CDD).length>0&&(this.X=CDD);this.j7=qQ(this.j7,Z.vvt);this.mdxEnvironment=qQ(this.mdxEnvironment,Z.mdx_environment);Z.source_container_playlist_id&&(this.sourceContainerPlaylistId=Z.source_container_playlist_id);Z.serialized_mdx_metadata&&(this.serializedMdxMetadata=Z.serialized_mdx_metadata);this.pOs=Z.osig;this.eventId|| (this.eventId=Z.eventid);this.osid||(this.osid=Z.osid);this.playlistId=qQ(this.playlistId,Z.list);Z.index&&(this.playlistIndex=this.playlistIndex===void 0?DJ(0,Z.index):DJ(this.playlistIndex,Z.index));this.UD=Z.pyv_view_beacon_url;this.Z8=Z.pyv_quartile25_beacon_url;this.Mg=Z.pyv_quartile50_beacon_url;this.Ng=Z.pyv_quartile75_beacon_url;this.k_=Z.pyv_quartile100_beacon_url;var EYr=Z.session_data;!this.Ku&&EYr&&(this.Ku=UE(EYr,"&").feature);this.isFling=DJ(this.isFling?1:0,Z.is_fling)===1;this.vnd= DJ(this.vnd,Z.vnd);this.forceAdsUrl=qQ(this.forceAdsUrl,Z.force_ads_url);this.SI=qQ(this.SI,Z.ctrl);this.yJ=qQ(this.yJ,Z.ytr);this.yT=Z.ytrcc;this.nu=Z.ytrexp;this.Tc=Z.ytrext;this.Vf=qQ(this.Vf,Z.adformat);this.x7=qQ(this.x7,Z.attrib);this.slotPosition=DJ(this.slotPosition,Z.slot_pos);this.breakType=Z.break_type;this.F1=U2(this.F1,Z.ssrt);this.videoId=Wa(Z)||this.videoId;this.j=qQ(this.j,Z.vss_credentials_token);this.IU=qQ(this.IU,Z.vss_credentials_token_type);this.wV=U2(this.wV,Z.audio_only);this.sZ= U2(this.sZ,Z.aac_high);this.h4=U2(this.h4,Z.prefer_low_quality_audio);this.DD=U2(this.DD,Z.uncap_inline_quality);this.Y("html5_enable_qoe_cat_list")?Z.qoe_cat&&(this.BS=this.BS.concat(Z.qoe_cat.split(","))):this.s_=qQ(this.s_,Z.qoe_cat);this.RV=U2(this.RV,Z.download_media);var bBL=Z.prefer_gapless;this.V=bBL!=null?U2(this.V,bBL):this.V?this.V:this.nS.preferGapless&&this.nS.supportsGaplessShorts();gI9(this.playerResponse)&&this.Bj.push("ad");var HBJ=Z.adaptive_fmts;HBJ&&(this.adaptiveFormats=HBJ,this.D1("adpfmts", {},!0));var cvn=Z.allow_embed;cvn&&(this.allowEmbed=Number(cvn)===1);var gYO=Z.backgroundable;gYO&&(this.backgroundable=Number(gYO)===1);var MNE=Z.autonav;MNE&&(this.isAutonav=Number(MNE)===1);var rvn=Z.autoplay;rvn&&(this.t_=this.yX=Number(rvn)===1);var ZfJ=Z.iv_load_policy;ZfJ&&(this.annotationsLoadPolicy=AS(this.annotationsLoadPolicy,ZfJ,U8));var ICn=Z.cc_lang_pref;ICn&&(this.captionsLanguagePreference=qQ(ICn,this.captionsLanguagePreference));var doB=Z.cc_load_policy;doB&&(this.yb=AS(this.yb,doB, U8));var oZn;this.deviceCaptionsOn=(oZn=Z.device_captions_on)!=null?oZn:void 0;var Yun;this.y9=(Yun=Z.device_captions_lang_pref)!=null?Yun:"";var jgn;this.MR=(jgn=Z.viewer_selected_caption_langs)!=null?jgn:[];var T7B=Z.cached_load;T7B&&(this.zT=U2(this.zT,T7B));if(Z.dash==="0"||Z.dash===0||Z.dash===!1)this.BZ=!0;var ifd=Z.dashmpd;ifd&&(this.EU=g.gq(ifd,{cpn:this.clientPlaybackNonce}));var fCJ=Z.delay;fCJ&&(this.UZ=ch(fCJ));var tsa=this.sR||Z.end;if(this.sU?tsa!=null:tsa!=void 0)this.clipEnd=DJ(this.clipEnd, tsa);var PVJ=Z.fmt_list;PVJ&&(this.QT=PVJ);Z.heartbeat_preroll&&this.Bj.push("heartbeat");HFE&&(this.A4=-Math.floor(Math.random()*10),this.v6=-Math.floor(Math.random()*40));var QgE=Z.is_listed;QgE&&(this.isListed=U2(this.isListed,QgE));var Ofl=Z.is_private;Ofl&&(this.isPrivate=U2(this.isPrivate,Ofl));var aCu=Z.is_dni;aCu&&(this.IN=U2(this.IN,aCu));var Wwr=Z.dni_color;Wwr&&(this.hE=qQ(this.hE,Wwr));var eHn=Z.pipable;eHn&&(this.pipable=U2(this.pipable,eHn));this.r_=(this.JU=this.pipable&&this.nS.Qc)&& !this.nS.showMiniplayerButton;var B7B=Z.paid_content_overlay_duration_ms;B7B&&(this.paidContentOverlayDurationMs=ch(B7B));var wN9=Z.paid_content_overlay_text;wN9&&(this.paidContentOverlayText=wN9);var VgE=Z.url_encoded_fmt_stream_map;VgE&&(this.aE=VgE);var N77=Z.hls_formats;N77&&(this.hlsFormats=N77);var Fw$=Z.hlsvp;Fw$&&(this.hlsvp=Fw$);var r7=Z.live_start_walltime;r7&&(this.C4Z=typeof r7==="number"?r7:ch(r7));var ZS=Z.live_manifest_duration;ZS&&(this.v1=typeof ZS==="number"?ZS:ch(ZS));var sgJ=Z.player_params; sgJ&&(this.playerParams=sgJ);var nZn=Z.partnerid;nZn&&(this.partnerId=DJ(this.partnerId,nZn));var hH7=Z.probe_url;hH7&&(this.probeUrl=S1(g.gq(hH7,{cpn:this.clientPlaybackNonce})));var $lu=Z.pyv_billable_url;$lu&&YG9($lu)&&(this.ZF=$lu);var pgd=Z.pyv_conv_url;pgd&&YG9(pgd)&&(this.t8=pgd);hLO(this,Z);this.startSeconds>0?this.Y("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.nW||this.gG||Z.start||Z.startSeconds)&&this.D1("lss",{css:this.startSeconds,pcss:this.nW,iss:this.gG,ps:Z.start|| void 0,pss:Z.startSeconds||void 0}):this.I0=this.startSeconds=DJ(this.startSeconds,this.nW||this.gG||Z.start||Z.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var mod=Z.live_utc_start;if(mod!=null)this.liveUtcStartSeconds=Number(mod);else{var xla=this.startSeconds;xla&&isFinite(xla)&&xla>1E9&&(this.liveUtcStartSeconds=this.startSeconds)}}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var quu=Z.utc_start_millis;quu&&(this.liveUtcStartSeconds=Number(quu)*.001)}var SuL= Z.stream_time_start_millis;SuL&&(this.En=Number(SuL)*.001);var KIr=this.gG||Z.start;(this.sU?KIr==null||Number(Z.resume)===1:KIr==void 0||Z.resume=="1")||this.isLivePlayback||(this.clipStart=DJ(this.clipStart,KIr));var A1r=Z.url_encoded_third_party_media;A1r&&(this.n0=JS(A1r));var C3D=Z.ypc_offer_button_formatted_text;if(C3D){var Do9=JSON.parse(C3D);this.K2=Do9!=null?Do9:null;this.K3=C3D}var J1O=Z.ypc_offer_button_text;J1O&&(this.e5=J1O);var RHi=Z.ypc_offer_description;RHi&&(this.VX=RHi);var LwO= Z.ypc_offer_headline;LwO&&(this.Gu=LwO);var UoE=Z.ypc_full_video_message;UoE&&(this.jA=UoE);var y1n=Z.ypc_offer_id;y1n&&(this.SL=y1n);var vZa=Z.ypc_buy_url;vZa&&(this.Ej=vZa);var lC$=Z.ypc_item_thumbnail;lC$&&(this.c6=lC$);var u9$=Z.ypc_item_title;u9$&&(this.OL=u9$);var GE9=Z.ypc_item_url;GE9&&(this.P6=GE9);var zHi=Z.ypc_vid;zHi&&(this.Zn=zHi);Z.ypc_overlay_timeout&&(this.JW=Number(Z.ypc_overlay_timeout));var kEi=Z.ypc_trailer_player_vars;kEi&&(this.z0=aW(kEi));var XNi=Z.ypc_original_itct;XNi&&(this.E0= XNi);this.vl=qQ(this.vl,Z.ucid);this.QO=Z.storyboard_spec||null;this.hT=Z.live_storyboard_spec||null;this.Zi=Z.iv_endscreen_url||null;this.hK=U2(this.hK,Z.ypc_module);this.hV=U2(this.hV,Z.ypc_clickwrap_module);this.hK&&this.Bj.push("ypc");this.hV&&this.Bj.push("ypcRentalActivation");this.cP={video_id:Z.video_id,eventid:Z.eventid,cbrand:Z.cbrand,cbr:Z.cbr,cbrver:Z.cbrver,c:Z.c,cver:Z.cver,ctheme:Z.ctheme,cplayer:Z.cplayer,cmodel:Z.cmodel,cnetwork:Z.cnetwork,cos:Z.cos,cosver:Z.cosver,cplatform:Z.cplatform, user_age:Z.user_age,user_display_image:Z.user_display_image,user_display_name:Z.user_display_name,user_gender:Z.user_gender,csi_page_type:Z.csi_page_type,csi_service_name:Z.csi_service_name,enablecsi:Z.enablecsi,enabled_engage_types:Z.enabled_engage_types};mKa(this,Z);var tgn=Z.cotn;tgn&&(this.cotn=tgn);if(eQu(this))Vk(this)&&(this.isLivePlayback&&this.EU&&(this.DM=!0),this.w4&&(this.Mt=!0));else if(Nyr(this))this.DM=!0;else{var $ol,pNl,xo7=(($ol=this.playerResponse)==null?void 0:(pNl=$ol.streamingData)== null?void 0:pNl.adaptiveFormats)||[],pN=null;if(xo7.length>0)pN=RdB(this,xo7);else if(!this.Y("html5_deprecate_adaptive_formats_string")){this.D1("pafmtstr",{s:this.adaptiveFormats.substring(0,50)});var KwJ=this.adaptiveFormats;if(KwJ&&!Vk(this)){this.nS.B.Z&&(Jj9=!0);var xB=f5(KwJ),EwB=this.T_,CVO=this.lengthSeconds,Lit=this.isLivePlayback,tW=this.uu,KN=this.nS,UgW=QCE(xB);if(Lit||tW){var EZu=KN==null?void 0:KN.experiments,G2=new r_("",EZu,!0);G2.Qy=!0;G2.isManifestless=!0;G2.D=!tW;G2.isLive=!tW; G2.uu=tW;for(var bfL=g.t(xB),bFu=bfL.next();!bFu.done;bFu=bfL.next()){var CN=bFu.value,HfL=HI7(CN,EwB),Yx=gN(CN.url,CN.sp,CN.s),c1d=Yx.get("id");c1d&&c1d.includes("%7E")&&(G2.LS=!0);var gZD=void 0,y3u=(gZD=EZu)==null?void 0:gZD.CS("html5_max_known_end_time_rebase"),vLg=Number(CN.target_duration_sec)||5,l8i=Number(CN.max_dvr_duration_sec)||14400,Mga=Number(Yx.get("mindsq")||Yx.get("min_sq")||"0"),r1D=Number(Yx.get("maxdsq")||Yx.get("max_sq")||"0")||Infinity;G2.KN=G2.KN||Mga;G2.jo=G2.jo||r1D;var ucv= !SI(HfL.mimeType);Yx&&Xy(G2,new dF(Yx,HfL,{t$:vLg,Q8:ucv,o6:l8i,KN:Mga,jo:r1D,vN:300,uu:tW,tU:y3u}))}var ZDa=G2}else{if(UgW==="FORMAT_STREAM_TYPE_OTF"){var IR=CVO;IR=IR===void 0?0:IR;var EO=new r_("",KN==null?void 0:KN.experiments,!1);EO.duration=IR||0;for(var IS9=g.t(xB),HFO=IS9.next();!HFO.done;HFO=IS9.next()){var bv=HFO.value,cGa=HI7(bv,EwB,EO.duration),gw$=gN(bv.url,bv.sp,bv.s);if(gw$)if(cGa.streamType==="FORMAT_STREAM_TYPE_OTF")Xy(EO,new ks(gw$,cGa,"sq/0"));else{var Gvt=AW(bv.init),zhg=AW(bv.index); Xy(EO,new i8(gw$,cGa,Gvt,zhg))}}EO.isOtf=!0;var dql=EO}else{var dp=CVO;dp=dp===void 0?0:dp;var oR=new r_("",KN==null?void 0:KN.experiments,!1);oR.duration=dp||0;for(var oza=g.t(xB),Msd=oza.next();!Msd.done;Msd=oza.next()){var Hh=Msd.value,kvM=HI7(Hh,EwB,oR.duration),XCg=AW(Hh.init),t4M=AW(Hh.index),YIr=gN(Hh.url,Hh.sp,Hh.s);YIr&&Xy(oR,new i8(YIr,kvM,XCg,t4M))}dql=oR}ZDa=dql}var jRO=ZDa;if(xB.length>0){var TpB=xB[0];if(this.C().playerStyle==="hangouts-meet"&&TpB.url){var $gv=g.Wt(TpB.url);this.GR= this.GR||Number($gv.expire)}}var pCL=this.isLivePlayback&&!this.uu&&!this.Ns&&!this.isPremiere;this.Y("html5_live_head_playable")&&(!ru(this)&&pCL&&this.D1("missingLiveHeadPlayable",{}),this.nS.LS==="yt"&&(jRO.w4=!0));pN=jRO}else pN=null;this.D1("pafmts",{isManifestFilled:!!pN})}if(pN){H4l(this,pN);var iD7=!0}else iD7=!1;iD7?this.enableServerStitchedDai=this.enableServerStitchedDai&&FI(this):this.EU&&(this.nS.LS==="yt"&&this.Qy()&&this.Y("drm_manifestless_unplugged")&&this.Y("html5_deprecate_manifestful_fallback")? this.D1("deprecateMflFallback",{}):this.DM=!0)}var rG9=Z.adpings;rG9&&(this.Ki=rG9?aW(rG9):null);var fSr=Z.feature;fSr&&(this.fW=fSr);var PPr=Z.referrer;PPr&&(this.referrer=PPr);this.clientScreenNonce=qQ(this.clientScreenNonce,Z.csn);this.Km=DJ(this.Km,Z.root_ve_type);this.O$=DJ(this.O$,Z.kids_age_up_mode);this.sU||Z.kids_app_info==void 0||(this.kidsAppInfo=Z.kids_app_info);this.sU&&Z.kids_app_info!=null&&(this.kidsAppInfo=Z.kids_app_info);this.ZD=U2(this.ZD,Z.upg_content_filter_mode);this.unpluggedFilterModeType= DJ(this.unpluggedFilterModeType,Z.unplugged_filter_mode_type);var QRa=Z.unplugged_location_info;QRa&&(this.R4=QRa);var ODL=Z.unplugged_partner_opt_out;ODL&&(this.Uj=qQ("",ODL));this.S9=U2(this.S9,Z.disable_watch_next);this.TO=qQ(this.TO,Z.internal_ip_override);this.ra=!!Z.is_yto_interstitial;this.interstitials.length&&this.Bj.push("playableSequences");var aSa=Z.XY;aSa&&(this.XY=aSa);this.LS=qQ(this.LS,Z.csi_timer);Z.watchUrl&&(this.watchUrl=Z.watchUrl);var jW=Z.watch_endpoint;this.Y("html5_attach_watch_endpoint_ustreamer_config")&& jW&&xGu(this,jW);if(jW==null?0:jW.ustreamerConfig)this.Oy=rA(jW.ustreamerConfig);var WCr,eil,Bpl=jW==null?void 0:(WCr=jW.loggingContext)==null?void 0:(eil=WCr.qoeLoggingContext)==null?void 0:eil.serializedContextData;Bpl&&(this.W5=Bpl);g.Dh(this.nS)&&this.nS.n0&&(this.embedsRct=qQ(this.embedsRct,Z.rct),this.embedsRctn=qQ(this.embedsRctn,Z.rctn));Z.embed_config&&(this.JT=Z.embed_config);this.MO=this.MO||!!Z.pause_at_start;Z.default_active_source_video_id&&(this.defaultActiveSourceVideoId=Z.default_active_source_video_id); this.xd=this.xd||!!Z.xd}; g.n.C=function(){return this.nS}; g.n.Y=function(Z){return this.nS.Y(Z)}; g.n.At=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.n.hasSupportedAudio51Tracks=function(){var Z;return!((Z=this.wz)==null||!Z.y5)}; g.n.getUserAudio51Preference=function(){var Z=1;tO(this.nS)&&this.Y("html5_ytv_surround_toggle_default_off")?Z=0:an(this.nS)&&this.isLivePlayback&&this.pF()&&(Z=0);var I;return(I=g.T2("yt-player-audio51"))!=null?I:Z}; g.n.vG=function(){this.OZ()||(this.L.D||this.L.unsubscribe("refresh",this.vG,this),this.vM(-1))}; g.n.vM=function(Z){if(!this.isLivePlayback||!this.B||this.B.flavor!=="fairplay"){var I=db7(this.L,this.QW);if(I.length>0){for(var d=g.t(I),Y=d.next();!Y.done;Y=d.next())Y=Y.value,Y.startSecs=Math.max(Y.startSecs,this.p_()),this.Y("html5_cuepoint_identifier_logging")&&Y.event==="start"&&this.D1("cuepoint",{pubCue:Y.identifier,segNum:Z});this.publish("cuepointupdated",I,Z);this.QW+=I.length;if(FI(this)&&this.nS.Vy())for(I=g.t(I),d=I.next();!d.done;d=I.next())d=d.value,this.D1("cuepoint",{segNum:Z,event:d.event, startSecs:d.startSecs,id:d.identifier.slice(-16)}),d.event==="start"&&(d=d.startSecs,this.td.start=this.Gv,this.td.end=d+3)}}}; g.n.K$=function(){this.OZ()||(this.loading=!1,this.publish("dataloaded"))}; g.n.pF=function(){return this.Qc!==void 0?this.Qc:this.Qc=!!this.T_||!!this.L&&R1(this.L)}; g.n.iC=function(Z){var I=this;if(this.OZ())return Qv();this.Tv=this.on=this.Z=null;Am(this,"html5_high_res_logging_always")&&(this.nS.Tx=!0);return lOa(this,Z).then(void 0,function(){return zjr(I,Z)}).then(void 0,function(){return UWn(I)}).then(void 0,function(){return Tci(I)})}; g.n.R9=function(Z){this.Z=Z;WLD(this,this.Z.getAvailableAudioTracks());if(this.Z){Z=g.t(this.Z.videoInfos);for(var I=Z.next();!I.done;I=Z.next()){I=I.value;var d=I.containerType;d!==0&&(this.VD[d]=I.id)}}Z=this.getAvailableAudioTracks();Z=Z.concat(this.L0);for(I=0;I0?this.Z.getAvailableAudioTracks():this.DL||[]:[]}; g.n.getAudioTrack=function(){var Z=this;if(this.N&&!Iu(this.N)){var I=g.Xe(this.getAvailableAudioTracks(),function(T){return T.id===Z.N.id}),d; if(!I&&((d=this.N.uo)==null?0:d.id)){var Y=this.N.uo.id;I=g.Xe(this.getAvailableAudioTracks(),function(T){return T.uo.id===Y}); this.D1("nat",{id:this.N.id,track:!!I})}return I||this.L0}if(this.DL){if(!this.q6)for(I=g.t(this.DL),d=I.next();!d.done;d=I.next())if(d=d.value,d.uo.getIsDefault()){this.q6=d;break}return this.q6||this.L0}return this.L0}; g.n.getPlayerResponse=function(){return this.playerResponse}; g.n.getWatchNextResponse=function(){return this.mJ}; g.n.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.n.getHeartbeatResponse=function(){return this.j9}; g.n.EM=function(){return this.watchUrl?this.watchUrl:this.nS.getVideoUrl(this.videoId)}; g.n.kW=function(){return!!this.L&&(YWd(this.L)||ON$(this.L)||pjO(this.L))}; g.n.getEmbeddedPlayerResponse=function(){return this.HJ}; g.n.Zt=function(){return(this.eventLabel||this.nS.fS)==="shortspage"}; g.n.isAd=function(){return this.Hm||!!this.adFormat}; g.n.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.n.YF=function(){var Z,I,d;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((Z=this.playerResponse)==null?0:(I=Z.playerConfig)==null?0:(d=I.daiConfig)==null?0:d.ssaEnabledPlayback)}; g.n.LO=function(){return this.Lb}; g.n.Ve=function(){return this.hK||this.v3}; g.n.kN=function(){return Am(this,"html5_samsung_vp9_live")}; g.n.D1=function(Z,I,d){this.publish("ctmp",Z,I,d)}; g.n.x3=function(Z,I,d){this.publish("ctmpstr",Z,I,d)}; g.n.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.n.getGetAdBreakContext=function(Z,I){Z=Z===void 0?NaN:Z;I=I===void 0?NaN:I;var d={isSabr:j2(this)},Y,T=(Y=this.getHeartbeatResponse())==null?void 0:Y.adBreakHeartbeatParams;T&&(d.adBreakHeartbeatParams=T);if(this.Y("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.L&&!isNaN(Z)&&!isNaN(I)){I=Z-I;for(var f in this.L.L)if(Y=this.L.L[f],Y.info.zx()||Y.info.iT())if(Y=Y.index,Y.isLoaded()){f=Y.Cl(I);Y=Y.xF(f)+I-Y.getStartTime(f);this.D1("gabc",{t:Z.toFixed(3),mt:I.toFixed(3),sg:f,igt:Y.toFixed(3)}); d.livePlaybackPosition={utcTimeMillis:""+(Y*1E3).toFixed(0)};break}}return d}; g.n.isEmbedsShortsMode=function(Z,I){if(!g.Dh(this.nS)||(this.nS.Bj||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||I)return!1;if(this.Y("embeds_enable_shorts")){var d,Y;return!!((d=this.embeddedPlayerConfig)==null?0:(Y=d.embeddedPlayerFlags)==null?0:Y.isShortsExperienceEligible)}var T,f;return!!(((T=this.embeddedPlayerConfig)==null?0:(f=T.embeddedPlayerFlags)==null?0:f.isShortsExperienceEligible)&&Z.width<=Z.height)}; g.n.g4=function(){g.dx.prototype.g4.call(this);this.Ki=null;delete this.C8m;delete this.accountLinkingConfig;delete this.L;this.Z=this.j9=this.playerResponse=this.mJ=null;this.aE=this.adaptiveFormats="";delete this.botguardData;this.J5=this.suggestions=this.zX=null;this.sabrContextUpdates.clear()}; var HFE=!0;var icD={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},P_i={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},YBE={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},XIO={0:"YT_KIDS_AGE_UP_MODE_UNKNOWN",1:"YT_KIDS_AGE_UP_MODE_OFF",2:"YT_KIDS_AGE_UP_MODE_TWEEN",3:"YT_KIDS_AGE_UP_MODE_PRESCHOOL"},$jO={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},tLL={0:"UNPLUGGED_FILTER_MODE_TYPE_UNKNOWN",1:"UNPLUGGED_FILTER_MODE_TYPE_NONE",2:"UNPLUGGED_FILTER_MODE_TYPE_PG", 3:"UNPLUGGED_FILTER_MODE_TYPE_PG_THIRTEEN"},jzO={0:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_UNSPECIFIED",1:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_30_SECONDS",2:"EMBEDDED_PLAYER_MUTED_AUTOPLAY_DURATION_MODE_FULL"};g.U(x0,g.p);g.n=x0.prototype;g.n.handleExternalCall=function(Z,I,d){var Y=this.state.V[Z],T=this.state.X[Z],f=Y;if(T)if(d&&K8(d,QBu))f=T;else if(!Y)throw Error('API call from an untrusted origin: "'+d+'"');this.logApiCall(Z,d);if(f){d=!1;Y=g.t(I);for(T=Y.next();!T.done;T=Y.next())if(String(T.value).includes("javascript:")){d=!0;break}d&&g.uL(Error('Dangerous call to "'+Z+'" with ['+I+"]."));return f.apply(this,I)}throw Error('Unknown API method: "'+Z+'".');}; g.n.logApiCall=function(Z,I,d){var Y=this.app.C();Y.q6&&!this.state.In.has(Z)&&(this.state.In.add(Z),g.g6("webPlayerApiCalled",{callerUrl:Y.loaderUrl,methodName:Z,origin:I||void 0,playerStyle:Y.playerStyle||void 0,embeddedPlayerMode:Y.Bj,errorCode:d}))}; g.n.publish=function(Z){var I=g.vj.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[Z].concat(g.c(I)));if(Z==="videodatachange"||Z==="resize"||Z==="cardstatechange")this.state.D.publish.apply(this.state.D,[Z].concat(g.c(I))),this.state.N.publish.apply(this.state.N,[Z].concat(g.c(I)))}; g.n.Rn=function(Z){var I=g.vj.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[Z].concat(g.c(I)));this.state.D.publish.apply(this.state.D,[Z].concat(g.c(I)))}; g.n.Kj=function(Z){var I=g.vj.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[Z].concat(g.c(I)));this.state.D.publish.apply(this.state.D,[Z].concat(g.c(I)));this.state.N.publish.apply(this.state.N,[Z].concat(g.c(I)))}; g.n.OV=function(Z){var I=g.vj.apply(1,arguments);this.state.Z.publish.apply(this.state.Z,[Z].concat(g.c(I)));this.state.D.publish.apply(this.state.D,[Z].concat(g.c(I)));this.state.N.publish.apply(this.state.N,[Z].concat(g.c(I)));this.state.B.publish.apply(this.state.B,[Z].concat(g.c(I)))}; g.n.Y=function(Z){return this.app.C().Y(Z)}; g.n.g4=function(){if(this.state.element){var Z=this.state.element,I;for(I in this.state.L)this.state.L.hasOwnProperty(I)&&(Z[I]=null);this.state.element=null}g.p.prototype.g4.call(this)};g.U(lx,g.Mc);lx.prototype.publish=function(Z){var I=g.vj.apply(1,arguments);if(this.B.has(Z))return this.B.get(Z).push(I),!0;var d=!1;try{for(I=[I],this.B.set(Z,I);I.length;)d=g.Mc.prototype.publish.call.apply(g.Mc.prototype.publish,[this,Z].concat(g.c(I.shift())))}finally{this.B.delete(Z)}return d};g.U(ux,g.p);ux.prototype.g4=function(){this.B.dispose();this.N.dispose();this.D.dispose();this.Z.dispose();this.In=this.L=this.X=this.V=this.j=void 0};var hdr=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.U(d6,x0);g.n=d6.prototype;g.n.getApiInterface=function(){return Array.from(this.state.j)}; g.n.Ez=function(Z,I){this.state.B.subscribe(Z,I)}; g.n.vZr=function(Z,I){this.state.B.unsubscribe(Z,I)}; g.n.getPlayerState=function(Z){return CrB(this.app,Z)}; g.n.cC=function(){return CrB(this.app)}; g.n.QdJ=function(Z,I,d){wl(this)&&(TR(this.app,!0,1),zM(this.app,Z,I,d,1))}; g.n.getCurrentTime=function(Z,I,d){var Y=this.getPlayerState(Z);if(this.app.getAppState()===2&&Y===5){var T;return((T=this.app.getVideoData())==null?void 0:T.startSeconds)||0}return this.Y("web_player_max_seekable_on_ended")&&Y===0?cu(this.app,Z):Z?this.app.getCurrentTime(Z,I,d):this.app.getCurrentTime(Z)}; g.n.F5=function(){return this.app.getCurrentTime(1)}; g.n.Eq=function(){var Z=this.app.xF(1);return isNaN(Z)?this.getCurrentTime(1):Z}; g.n.rT=function(){return this.app.getDuration(1)}; g.n.cq=function(Z,I){Z=g.O4(Math.floor(Z),0,100);isFinite(Z)&&oH(this.app,{volume:Z,muted:this.isMuted()},I)}; g.n.sd5=function(Z){this.cq(Z,!1)}; g.n.hc=function(Z){oH(this.app,{muted:!0,volume:this.getVolume()},Z)}; g.n.hrS=function(){this.hc(!1)}; g.n.Sv=function(Z){oH(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},Z)}; g.n.Olr=function(){eB(this.app)||this.Sv(!1)}; g.n.getPlayerMode=function(){var Z={};this.app.getVideoData().IN&&(Z.pfp={enableIma:this.app.gz().allowImaMonetization,autoplay:u3(this.app.gz()),mutedAutoplay:this.app.gz().mutedAutoplay});return Z}; g.n.v_=function(){var Z=this.app.getPresentingPlayerType();if(Z===2&&!this.app.Z5()){var I=l_(this.app.nM());if(!(ijd(I)||g.Dh(this.app.C())&&g.b(this.app.l5().getPlayerState(),1024))||Pt7(I))return}(I=this.app.J_().OI)?I.playVideo():this.app.playVideo(Z)}; g.n.TVm=function(){TR(this.app,!0,1);this.v_()}; g.n.pauseVideo=function(Z){var I=this.app.getPresentingPlayerType();if(I!==2||this.app.Z5()||ijd(l_(this.app.nM()))){var d=this.app.J_().OI;d?d.pauseVideo():this.app.pauseVideo(I,Z)}}; g.n.Atr=function(){var Z=this.app,I=!1;Z.U.Hk&&(Z.Wj.publish("pageTransition"),I=!0);Z.stopVideo(I)}; g.n.clearVideo=function(){}; g.n.getAvailablePlaybackRates=function(){var Z=this.app.C();if(Z.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(Z.N?Z.ancestorOrigins[0]:window.location.origin)||Z.F1)return tRL;var I=this.app.getVideoData();if(RG$(I)){var d=I.No,Y=I.Mo;return xxd.filter(function(T){return T>=d&&T<=Y})}return Z.supportsVarispeedExtendedFeatures?$x0:Z.Y("web_remix_allow_up_to_3x_playback_rate")&&g.vl(Z)?pPd:Ly}return[1]}; g.n.getPlaybackQuality=function(Z){return(Z=this.app.Se(Z))?Z.getPlaybackQuality():"unknown"}; g.n.Fl5=function(){}; g.n.getAvailableQualityLevels=function(Z){return(Z=this.app.Se(Z))?(Z=g.Ft(Z.Fe(),function(I){return I.quality}),Z.length&&(Z[0]==="auto"&&Z.shift(),Z=Z.concat(["auto"])),Z):[]}; g.n.aY=function(){return this.getAvailableQualityLevels(1)}; g.n.b0=function(){return this.sB()}; g.n.AX=function(){return 1}; g.n.getVideoLoadedFraction=function(Z){return this.app.getVideoLoadedFraction(Z)}; g.n.sB=function(){return this.getVideoLoadedFraction()}; g.n.Uq=function(){return 0}; g.n.getSize=function(){var Z=this.app.cj().getPlayerSize();return{width:Z.width,height:Z.height}}; g.n.setSize=function(){this.app.cj().resize()}; g.n.loadVideoById=function(Z,I,d,Y){if(!Z)return!1;Z=Bm(Z,I,d);return this.app.loadVideoByPlayerVars(Z,Y)}; g.n.V7J=function(Z,I,d){Z=this.loadVideoById(Z,I,d,1);TR(this.app,Z,1)}; g.n.cueVideoById=function(Z,I,d,Y){Z=Bm(Z,I,d);this.app.cueVideoByPlayerVars(Z,Y)}; g.n.Vj=function(Z,I,d){this.cueVideoById(Z,I,d,1)}; g.n.loadVideoByUrl=function(Z,I,d,Y){Z=SJE(Z,I,d);return this.app.loadVideoByPlayerVars(Z,Y)}; g.n.wjr=function(Z,I,d){Z=this.loadVideoByUrl(Z,I,d,1);TR(this.app,Z,1)}; g.n.cueVideoByUrl=function(Z,I,d,Y){Z=SJE(Z,I,d);this.app.cueVideoByPlayerVars(Z,Y)}; g.n.WY=function(Z,I,d){this.cueVideoByUrl(Z,I,d,1)}; g.n.Iq=function(){var Z=this.app.C();if(Z.kS)return"";var I=this.app.gz(),d=void 0;I.isLivePlayback||(d=Math.floor(this.app.getCurrentTime(1)));return Z.getVideoUrl(I.videoId,this.getPlaylistId()||void 0,d)}; g.n.X5=function(){return this.app.getDebugText()}; g.n.getVideoEmbedCode=function(){var Z=this.app.C();if(Z.kS)return"";var I=this.app.gz();return Z.getVideoEmbedCode(I.isPrivate?"":I.title,this.app.gz().videoId,this.app.cj().getPlayerSize(),this.getPlaylistId()||void 0)}; g.n.l3=function(Z,I,d){return A6(this.app,Z,I,d)}; g.n.removeCueRange=function(Z){return this.app.zl(Z)}; g.n.loadPlaylist=function(Z,I,d,Y){this.app.loadPlaylist(Z,I,d,Y)}; g.n.OSZ=function(Z,I,d,Y){this.loadPlaylist(Z,I,d,Y);TR(this.app,!0,1)}; g.n.cuePlaylist=function(Z,I,d,Y){this.app.cuePlaylist(Z,I,d,Y)}; g.n.nextVideo=function(Z,I){this.app.nextVideo(Z,I)}; g.n.UsJ=function(){this.nextVideo();TR(this.app,!0,1)}; g.n.previousVideo=function(Z){this.app.previousVideo(Z)}; g.n.lRn=function(){this.previousVideo();TR(this.app,!0,1)}; g.n.playVideoAt=function(Z){this.app.playVideoAt(Z)}; g.n.ON7=function(Z){this.playVideoAt(Z);TR(this.app,!0,1)}; g.n.setShuffle=function(Z){var I=this.app.getPlaylist();I&&I.setShuffle(Z)}; g.n.setLoop=function(Z){var I=this.app.getPlaylist();I&&(I.loop=Z)}; g.n.eP=function(){var Z=this.app.getPlaylist();if(!Z)return null;for(var I=[],d=0;d=400)if(Z=this.gz(),this.S.C().Y("client_respect_autoplay_switch_button_renderer"))Z=!!Z.autoplaySwitchButtonRenderer;else{var I,d,Y,T;Z=!!((I=Z.getWatchNextResponse())==null?0:(d=I.contents)==null?0:(Y=d.twoColumnWatchNextResults)==null?0:(T=Y.autoplay)==null?0:T.autoplay)!==!1}Z?this.L||(this.L=!0,this.o0(this.L),I=this.gz(),this.Fy(I.autonavState),this.S.logVisibility(this.element,this.L)): (this.L=!1,this.o0(this.L))}; g.n.Fy=function(Z){Rag(this)?this.isChecked=Z!==1:((Z=Z!==1)||(Z=g.$x(),Z=g.x9("web_autonav_allow_off_by_default")&&!Z.K_(141)&&g.rh("AUTONAV_OFF_BY_DEFAULT")?!1:!Z.K_(140)),this.isChecked=Z);uru(this)}; g.n.onClick=function(){this.isChecked=!this.isChecked;this.S.Ya(this.isChecked?2:1);uru(this);if(Rag(this)){var Z=this.gz().autoplaySwitchButtonRenderer;this.isChecked&&(Z==null?0:Z.onEnabledCommand)?this.S.Rn("innertubeCommand",Z.onEnabledCommand):!this.isChecked&&(Z==null?0:Z.onDisabledCommand)&&this.S.Rn("innertubeCommand",Z.onDisabledCommand)}this.S.logClick(this.element)}; g.n.getValue=function(){return this.isChecked}; g.n.gz=function(){return this.S.getVideoData(1)};g.U(v99,$w);g.U(uJ,lJ);uJ.prototype.qs=function(Z){Z?this.L||(this.A5.vk(this),this.L=!0):this.L&&(this.A5.Bb(this),this.L=!1);this.L&&Mk(this,Q9B())}; uJ.prototype.N=function(){g.KF(this.element,"ytp-menuitem-highlight-transition-enabled")}; uJ.prototype.Z=function(Z){var I=Q9B();Z!==I&&(I=g.$x(),D2(190,Z),D2(192,!0),I.save(),this.S.Rn("cinematicSettingsToggleChange",Z))}; uJ.prototype.g4=function(){this.L&&this.A5.Bb(this);lJ.prototype.g4.call(this)};g.U(hh,$w);hh.prototype.updateCinematicSettings=function(Z){this.L=Z;var I;(I=this.menuItem)==null||I.qs(Z);this.api.publish("onCinematicSettingsVisibilityChange",Z)};g.U(XOB,$w);g.U($C,$w);$C.prototype.setCreatorEndscreenVisibility=function(Z){var I;(I=ES(this.api.nM()))==null||I.o0(Z)}; $C.prototype.L=function(Z){function I(Y){Y==="creatorendscreen"&&(Y=ES(d.api.nM()))&&Y.WlS(d.hideButton)} var d=this;this.hideButton=Z;this.events.W(this.api,"modulecreated",I);I("creatorendscreen")};g.U(K7E,$w);g.U(rN,lJ);rN.prototype.N=function(Z){this.Z(Z?1:0)}; rN.prototype.sV=function(){if(this.enableNewAudioSettingsMenu){var Z=this.S.getPresentingPlayerType();Z!==2&&Z!==3||!this.L?(Z=this.getDrcState(),Z!==1?(Z===0?(Mk(this,this.D()===1),this.setEnabled(!0)):(Mk(this,!1),this.setEnabled(!1)),this.L||(this.A5.vk(this),this.L=!0)):this.L&&(this.A5.Bb(this),this.L=!1)):(this.L=!1,this.A5.Bb(this))}else{Z=this.hasDrcAudioTrack();var I=this.D()===1&&Z;Mk(this,I);this.setEnabled(Z)}}; rN.prototype.g4=function(){this.A5.Bb(this);lJ.prototype.g4.call(this)}; rN.prototype.B=function(){this.S.logClick(this.element)};g.U(uj,$w);g.n=uj.prototype;g.n.getDrcUserPreference=function(){return this.L}; g.n.setDrcUserPreference=function(Z){this.api.D1("drc_set",{pref:Z});g.AU("yt-player-drc-pref",Z,31536E3);Z!==this.L&&(this.L=Z,this.updateEnvironmentData(),this.FG()&&this.api.m6(),this.api.Dt())}; g.n.updateEnvironmentData=function(){this.api.C().aE=this.L===1}; g.n.FG=function(){var Z,I,d=(Z=this.api.getVideoData())==null?void 0:(I=Z.Z)==null?void 0:I.L;if(!d)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.Y("mta_drc_mutual_exclusion_removal")){var Y,T,f=(Y=this.api.yg())==null?void 0:(T=Y.uo)==null?void 0:T.id;return nF(d,function(P){var O;return P.audio.L&&((O=P.uo)==null?void 0:O.id)===f})}return nF(d,function(P){var O; return((O=P.audio)==null?void 0:O.L)===!0})}; g.n.getDrcState=function(){return this.api.qt(3)};g.U(NN,$w);NN.prototype.onVideoDataChange=function(){var Z=this,I=this.api.getVideoData();this.api.jM("embargo",1);var d=I==null?void 0:I.lI.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(d==null?0:d.length)?GVE(this,d.filter(function(Y){return ou9(Z,Y)})):(I==null?0:I.cueRanges)&&GVE(this,I.cueRanges.filter(function(Y){return ou9(Z,Y)}))}; NN.prototype.D=function(Z){return Z.embargo!==void 0}; NN.prototype.g4=function(){$w.prototype.g4.call(this);this.L={}};g.U(Sx,$w); Sx.prototype.addEmbedsConversionTrackingParams=function(Z){var I=this.api.C(),d=I.widgetReferrer,Y=I.Vf,T=this.L,f="",P=I.getWebPlayerContextConfig();P&&(f=P.embedsIframeOriginParam||"");d.length>0&&(Z.embeds_widget_referrer=d);Y.length>0&&(Z.embeds_referring_euri=Y);I.N&&f.length>0&&(Z.embeds_referring_origin=f);P&&P.embedsFeature&&(Z.feature=P.embedsFeature);T.length>0&&(I.Y("embeds_web_enable_lite_experiment_control_arm_logging")?T.unshift(28572):g.By(g.Wy(I))&&T.unshift(159628),I=T.join(","),I= g.wm()?I:g.Nl(I,4),Z.source_ve_path=I);this.L.length=0};g.U(yil,$w);g.U(UEJ,$w);g.U(C0,g.p);C0.prototype.g4=function(){g.p.prototype.g4.call(this);this.L=null;this.D&&this.D.disconnect()};g.U(kBn,$w);g.U(iJ,g.k);iJ.prototype.show=function(){g.k.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; iJ.prototype.stopTimer=function(){this.L&&(this.L.dispose(),this.L=null)}; iJ.prototype.onVideoDataChange=function(Z){var I,d,Y=(I=this.api.getVideoData())==null?void 0:(d=I.getPlayerResponse())==null?void 0:d.playabilityStatus;Y&&(I=JLJ(Y),g.b(this.api.getPlayerStateObject(),128)||Z==="dataloaderror"||!I?(this.D=0,this.stopTimer(),this.hide()):(Z=(I.remainingTimeSecs||0)*1E3,Z>0&&(this.show(),this.updateValue("label",Zd(I.label)),pLu(this,Z))))}; iJ.prototype.g4=function(){this.stopTimer();g.k.prototype.g4.call(this)};g.U(L7i,$w);g.U(lW,g.k);lW.prototype.onClick=function(){this.Wj.logClick(this.element);this.Wj.Rn("onFullerscreenEduClicked")}; lW.prototype.qs=function(){this.Wj.isFullscreen()?this.L?this.fade.hide():this.fade.show():this.hide();this.Wj.logVisibility(this.element,this.Wj.isFullscreen()&&!this.L)};g.U(mL,$w);mL.prototype.updateFullerscreenEduButtonSubtleModeState=function(Z){var I;(I=this.L)!=null&&(g.zL(I.element,"ytp-fullerscreen-edu-button-subtle",Z),Z&&!I.D&&(I.Wj.Y("player_tooltip_data_title_killswitch")?I.element.setAttribute("title","Scroll for details"):I.element.setAttribute("data-tooltip-title","Scroll for details"),pi(I.Wj,I.element,I),I.D=!0))}; mL.prototype.updateFullerscreenEduButtonVisibility=function(Z){var I;(I=this.L)!=null&&(I.L=Z,I.qs())};g.U($wu,g.k);g.U(Ra7,$w);g.U(nU,$w);nU.prototype.getSphericalProperties=function(){var Z=g.D3(this.api.nM());return Z?Z.getSphericalProperties():{}}; nU.prototype.setSphericalProperties=function(Z){if(Z){var I=g.D3(this.api.nM());I&&I.setSphericalProperties(Z,!0)}};g.U(Wl,$w);g.n=Wl.prototype;g.n.createClientVe=function(Z,I,d,Y){this.api.createClientVe(Z,I,d,Y===void 0?!1:Y)}; g.n.createServerVe=function(Z,I,d){this.api.createServerVe(Z,I,d===void 0?!1:d)}; g.n.setTrackingParams=function(Z,I){this.api.setTrackingParams(Z,I)}; g.n.logClick=function(Z,I){this.api.logClick(Z,I)}; g.n.logVisibility=function(Z,I,d){this.api.logVisibility(Z,I,d)}; g.n.hasVe=function(Z){return this.api.hasVe(Z)}; g.n.destroyVe=function(Z){this.api.destroyVe(Z)};var a4={},ATO=(a4[0]=function(Z){return $6n(Z,function(I){var d;return(d=I.uo)==null?void 0:d.id})},a4[2]=function(Z){return YH(Z,n$a)},a4[3]=function(Z){return YH(Z,axu)},a4[4]=function(Z){return YH(Z,vG$)},a4[1]=function(Z){return YH(Z,gdl)},a4); D_J.prototype.qt=function(Z){return this.Z[Z]}; D_J.prototype.Dt=function(){for(var Z=this.D,I={},d=g.t(SQa),Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,this.L[Y]){Z=cGM[Y].m_(Z,this.videoData);for(var T=g.t(SQa),f=T.next();!f.done;f=T.next())f=f.value,I[f]!==void 0||nF(Z,cGM[f].LG)||(I[f]=cGM[Y].Ze);I[Y]===void 0&&(I[Y]=0)}else I[Y]=1;this.Z=I}; var SQa=[0,1,2,3,4],W_={},cGM=(W_[0]={Ze:2,LG:gm9,m_:rma},W_[2]={Ze:4,LG:n$a,m_:hn$},W_[3]={Ze:5,LG:axu,m_:T$B},W_[1]={Ze:3,LG:gdl,m_:Mud},W_[4]={Ze:6,LG:vG$,m_:lFu},W_);var Hsn=!1;LO.prototype.setPlaybackRate=function(Z){this.playbackRate=Math.max(1,Z)}; LO.prototype.getPlaybackRate=function(){return this.playbackRate};dy.prototype.s$=function(Z){var I=g.eU(Z.info.L.info,this.u5.Qy),d=Z.info.YS+this.N,Y=Z.info.startTime*1E3;if(this.policy.J5)try{Y=this.policy.J5?g.wR(Z)*1E3:Z.info.startTime*1E3}catch(P){Math.random()>.99&&this.logger&&(Y=MU(Z.D).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:Z.info.m5(),encodedDataView:g.Bg(Y,4)})),Y=Z.info.startTime*1E3}var T=Z.info.clipId,f=this.policy.J5?g.$Hl(Z)*1E3:Z.info.duration*1E3;this.policy.J5&&(Y<0||f<0)&&(this.logger&&(this.logger({missingSegInfo:Z.info.m5(), startTimeMs:Y,durationMs:f}),this.policy.Mt||(Y<0&&(Y=Z.info.startTime*1E3),f<0&&(f=Z.info.duration*1E3))),this.policy.Mt&&(Y<0&&(Y=Z.info.startTime*1E3),f<0&&(f=Z.info.duration*1E3)));return{formatId:I,YS:d,startTimeMs:Y,clipId:T,dJ:f}}; dy.prototype.M6=function(Z){this.timestampOffset=Z};Zo.prototype.seek=function(Z,I){Z!==this.targetTime&&(this.seekCount=0);this.targetTime=Z;var d=this.videoTrack.D,Y=this.audioTrack.D,T=this.audioTrack.qC,f=TaL(this,this.videoTrack,Z,this.videoTrack.qC,I);I=TaL(this,this.audioTrack,this.policy.SK?Z:f,T,I);Z=Math.max(Z,f,I);this.N=!0;this.u5.isManifestless&&(WhO(this,this.videoTrack,d),WhO(this,this.audioTrack,Y));return Z}; Zo.prototype.isSeeking=function(){return this.N}; Zo.prototype.vr=function(Z){this.D=Z}; var j9d=2/24;var nTJ=0;g.n=Qd.prototype;g.n.RX=function(){this.In=this.now();R8d(this.Bk,this.In);this.Zf.RX()}; g.n.jn=function(Z,I){var d=this.policy.D?(0,g.o8)():0;XG(this,Z,I);Z-this.j<10&&this.D>0||this.Ev(Z,I);this.Zf.jn(Z,I);this.policy.D&&(Z=(0,g.o8)()-d,this.I0+=Z,this.y5=Math.max(Z,this.y5))}; g.n.Ev=function(Z,I){var d=(Z-this.j)/1E3,Y=I-this.Z;this.AE||(yKd(this.Bk,d,Y),this.bL(d,Y));this.j=Z;this.Z=I}; g.n.Ir=function(){this.Bj&&LxE(this);this.Zf.Ir()}; g.n.QZ=function(Z){this.Bj||(this.Bj=this.B-this.eK+Z,this.sU=this.B,this.EU=this.V)}; g.n.PU=function(Z,I){Z=Z===void 0?this.V:Z;I=I===void 0?this.B:I;this.D>0||(this.X=Z,this.D=I,this.LS=this.isActive=!0)}; g.n.Fl=function(){return this.Yo||2}; g.n.Lx=function(){}; g.n.uf=function(){var Z,I={rn:this.requestNumber,rt:(this.V-this.L).toFixed(),lb:this.B,stall:(1E3*this.N).toFixed(),ht:(this.In-this.L).toFixed(),elt:(this.X-this.L).toFixed(),elb:this.D,d:(Z=this.fS)==null?void 0:Z.It()};this.url&&Qxa(I,this.url);this.policy.D&&(I.mph=this.y5.toFixed(),I.tph=this.I0.toFixed());I.ulb=this.j7;I.ult=this.kS;return I}; g.n.now=function(){return(0,g.o8)()}; g.n.deactivate=function(){this.isActive&&(this.isActive=!1)};g.U(zj,Qd);g.n=zj.prototype;g.n.uf=function(){var Z=Qd.prototype.uf.call(this);Z.pb=this.cW;Z.pt=(1E3*this.Yl).toFixed();Z.se=this.Hk;return Z}; g.n.tW=function(){var Z=this.Zf;this.on||(this.on=Z.tW?Z.tW():1);return this.on}; g.n.nR=function(){return this.rf?this.tW()!==1:!1}; g.n.vD=function(Z,I,d){if(!this.SK){this.SK=!0;if(!this.AE){XG(this,Z,I);this.Ev(Z,I);var Y=this.tW();this.Hk=d;if(!this.AE)if(Y===2){Y=Z-this.X0)||F0(this,Y,I),this.D>0&&KB(this.Bk,I,this.N));Z=(Z-this.L)/ 1E3||.01;this.policy.X&&!(this.D>0)||rc(this.Bk,Z,this.Z,BEB(this),this.OY)}this.deactivate()}}; g.n.HU=function(Z,I,d){d&&(this.on=2);Z<0&&this.Yo&&(Z=this.Yo);I?this.sZ+=Z:this.w4+=Z}; g.n.Fl=function(){return this.w4||this.sZ||Qd.prototype.Fl.call(this)}; g.n.Ev=function(Z,I){var d=(Z-this.j)/1E3,Y=I-this.Z,T=this.tW();this.isActive?T===1&&((Y>0||this.policy.B)&&(d>.2||Y<1024)?(this.N+=d,Y>0&&d>.2&&F0(this,this.Hl?d:.05,Y),this.b5=!0):Y>0&&(F0(this,d,Y),this.b5=!0)):I&&I>=this.policy.L&&this.PU(Z,I);Qd.prototype.Ev.call(this,Z,I)}; g.n.gO=function(Z){if(!this.AE){XG(this,Z,this.B);var I=(Z-this.L)/1E3;this.tW()!==2&&this.D>0&&(this.N+=(Z-this.j)/1E3,KB(this.Bk,this.Z,this.N));rc(this.Bk,I,this.Z,BEB(this),this.OY,!0);Z=(Z-this.j)/1E3;yKd(this.Bk,Z,0);this.bL(Z,0)}}; g.n.PU=function(Z,I){Z=Z===void 0?this.V:Z;I=I===void 0?this.B:I;if(!(this.D>0)&&(Qd.prototype.PU.call(this,Z,I),this.tW()===1)){I=(this.In-this.L)/1E3;var d=(Z-this.In)/1E3;this.rf&&ts(this,this.now());this.UZ||this.AE||(this.Yo&&(d=Math.max(0,d-this.Yo)),Z=this.Bk,Z.X.vJ(1,I),Z.fS.vJ(1,d))}}; g.n.We=function(){this.rf&&ts(this,this.now());return this.Tm}; g.n.BF=function(){var Z;if(Z=this.Z>this.c_)Z=(Z=this.Z)?Z>=this.policy.L:!1;return Z}; g.n.UX=function(){return this.J5}; g.n.z2=function(Z){Z=Z===void 0?this.now():Z;if(this.rf){ts(this,Z);if(this.on?this.nR():this.Ns!==this.mJ){var I=this.mJ;if(Z0?d+Z:d+Math.max(Z,I)}; g.n.jN=function(){return this.now()-this.X}; g.n.I8=function(){return(this.Z-this.D)*1E3/this.jN()||0}; g.n.F$=function(){return this.X};cA.prototype.feed=function(Z){Ur(this.L,Z);this.Nc()}; cA.prototype.Nc=function(){if(this.N){if(!this.L.totalLength)return;var Z=this.L.split(this.Z-this.D),I=Z.UH;Z=Z.yC;if(!this.Zf.QZ(this.N,I,this.D,this.Z))return;this.D+=I.totalLength;this.L=Z;this.D===this.Z&&(this.N=this.Z=this.D=void 0)}for(;;){var d=0;Z=g.t(lou(this.L,d));I=Z.next().value;d=Z.next().value;d=g.t(lou(this.L,d));Z=d.next().value;d=d.next().value;if(I<0||Z<0)break;if(!(d+Z<=this.L.totalLength)){if(!(this.Zf.QZ&&d+1<=this.L.totalLength))break;d=this.L.split(d).yC;this.Zf.QZ(I,d,0, Z)&&(this.N=I,this.D=d.totalLength,this.Z=Z,this.L=new OA([]));break}Z=this.L.split(d).yC.split(Z);d=Z.yC;this.Zf.f$(I,Z.UH);this.L=d}}; cA.prototype.dispose=function(){this.L=new OA};g.n=qG.prototype;g.n.HX=function(){return 0}; g.n.oH=function(){return null}; g.n.Sy=function(){return null}; g.n.xJ=function(){return this.state>=1}; g.n.isComplete=function(){return this.state>=3}; g.n.q_=function(){return this.state===5}; g.n.onStateChange=function(){}; g.n.XT=function(Z){var I=this.state;this.state=Z;this.onStateChange(I);this.callback&&this.callback(this,I)}; g.n.ZN=function(Z){Z&&this.state=this.xhr.HEADERS_RECEIVED}; g.n.getResponseHeader=function(Z){try{return this.xhr.getResponseHeader(Z)}catch(I){return""}}; g.n.aH=function(){return+this.getResponseHeader("content-length")}; g.n.Yx=function(){return this.D}; g.n.B6=function(){return this.status>=200&&this.status<300&&!!this.D}; g.n.A6=function(){return this.L.totalLength>0}; g.n.wH=function(){var Z=this.L;this.L=new OA;return Z}; g.n.Cb=function(){return this.L}; g.n.abort=function(){this.OZ=!0;this.xhr.abort()}; g.n.gx=function(){return!0}; g.n.MM=function(){return this.Z}; g.n.LF=function(){return""};g.n=Ftn.prototype; g.n.run=function(){var Z=this,I,d,Y,T,f,P,O,a,W,e,B,w,V,N,q;return g.h(function(A){if(A.L==1){Z.status=200;I=Z.L.get("docid");d=Ir(Z.L.get("fmtid")||"");Y=Z.L.get("lmt")||"0";T=+(Z.L.get("csz")||0);if(!I||!d||!T)throw Error("Invalid local URL");Z.L.get("ck")&&Z.L.get("civ")&&(f=new a_u(Z.L.get("ck"),Z.L.get("civ")));P=Z.range;O=Math.floor(P.start/T);a=Math.floor(P.end/T);W=O}if(A.L!=5)return W<=a?g.m(A,JPa(I,d,Y,W,f),5):A.xS(0);e=A.D;if(e===void 0)throw Error("invariant: data is undefined");B=W*T; w=(W+1)*T;V=Math.max(0,P.start-B);N=Math.min(P.end+1,w)-(V+B);q=new Uint8Array(e.buffer,V,N);Z.D.append(q);Z.loaded+=N;Z.loaded=200&&this.status<300&&!!this.D}; g.n.A6=function(){return!!this.L.totalLength}; g.n.wH=function(){var Z=this.L;this.L=new OA;return Z}; g.n.Cb=function(){return this.L}; g.n.OZ=function(){return this.B}; g.n.abort=function(){this.Z&&this.Z.cancel().catch(function(){}); this.N&&this.N.abort();this.B=!0}; g.n.gx=function(){return!0}; g.n.MM=function(){return this.j}; g.n.LF=function(){return this.errorMessage};g.n=CFO.prototype;g.n.onDone=function(){if(!this.OZ){this.status=this.xhr.status;try{this.response=this.xhr.response,this.D=this.response.byteLength}catch(Z){}this.L=!0;this.Zf.Ir()}}; g.n.n$=function(){this.xhr.readyState===2&&this.Zf.RX()}; g.n.onProgress=function(Z){this.OZ||(this.status=this.xhr.status,this.L||(this.D=Z.loaded),this.Zf.jn((0,g.o8)(),Z.loaded))}; g.n.IX=function(){return this.xhr.readyState>=2}; g.n.getResponseHeader=function(Z){try{return this.xhr.getResponseHeader(Z)}catch(I){return g.uL(Error("Could not read XHR header "+Z)),""}}; g.n.aH=function(){return+this.getResponseHeader("content-length")}; g.n.Yx=function(){return this.D}; g.n.B6=function(){return this.status>=200&&this.status<300&&this.L&&!!this.D}; g.n.A6=function(){return this.L&&!!this.response&&!!this.response.byteLength}; g.n.wH=function(){var Z=this.response;this.response=void 0;return new OA([new Uint8Array(Z)])}; g.n.Cb=function(){return new OA([new Uint8Array(this.response)])}; g.n.abort=function(){this.OZ=!0;this.xhr.abort()}; g.n.gx=function(){return!1}; g.n.MM=function(){return!1}; g.n.LF=function(){return""};g.U(Zp,g.p);Zp.prototype.eL=function(){if(!this.Hb.length)return[];var Z=this.Hb;this.Hb=[];this.Z=g.N2(Z).info;return Z}; Zp.prototype.aO=function(){return this.Hb}; Zp.prototype.g4=function(){g.p.prototype.g4.call(this);this.L=null;this.Hb.length=0;this.e7.length=0;this.Z=null};g.U(BV,g.p);g.n=BV.prototype; g.n.LlS=function(){if(!this.OZ()){var Z=(0,g.o8)(),I=!1;if(this.policy.K0){var d=this.timing.D>0?this.timing.X:this.timing.L;this.policy.jb&&this.Z&&(d=this.Z);Z=Z-d-(this.policy.Uj?this.policy.BS:this.timing.Fl()*1E3);d=FD(qP(this),!1);Z>=2E3*d?I=!0:Z>=this.policy.Ki*d&&(this.L=this.policy.MO)}else if(this.timing.D>0){if(this.j){this.policy.o4&&(this.L=0);return}Z=this.timing.UX();this.timing.z2();this.timing.UX()-Z>=this.policy.aE*.8?(this.L++,I=this.L>=5):this.L=0}else I=Z-this.timing.We(),this.policy.MO&& I>0&&(this.L+=1),Z=FD(qP(this),!1)*this.policy.q1,I=I>Z*1E3;this.L>0&&this.Zf.uv();I?this.B1():this.D.start()}}; g.n.B1=function(){this.B=!0;this.Zf.BW();this.lastError="net.timeout";vd(this)}; g.n.canRetry=function(Z){var I=qP(this);Z=Z?this.policy.yb:this.policy.hK;return I.timedOut0&&(I=O2(I.L,0),Z.ubyte=I,d===1&&I===0&&(Z.b248180278=!0))}this.WE&&(Z.rc=this.policy.kM?this.WE:this.WE.toString());this.policy.Gv&&this.TB&&(Z.tr=this.TB);Z.itag=this.info.e7[0].L.info.itag;Z.ml=""+ +this.info.e7[0].L.SD();Z.sq=""+this.info.e7[0].YS;this.aN&&(Z.ifi=""+ +U1(58,this.info.MC.D));this.WE!==410&&this.WE!==500&&this.WE!==503||(Z.fmt_unav="true");var Y;(d=this.errorMessage||((Y=this.xhr)==null? void 0:Y.LF()))&&(Z.msg=d);this.lx&&(Z.smb="1");this.info.isDecorated()&&(Z.sdai="1");return Z}; g.n.Mf=function(){return gX$(this.timing)}; g.n.LF=function(){return this.xhr.LF()||""}; g.n.BF=function(){return this.isComplete()||this.timing.BF()}; g.n.jn=function(){!this.OZ()&&this.xhr&&(this.WE=this.xhr.status,this.policy.RV&&this.nF&&this.TL(!1),this.Ra()?this.ZN(2):!this.Zd&&this.BF()&&(this.ZN(),this.Zd=!0))}; g.n.RX=function(){if(!this.OZ()&&this.xhr){if(!this.WW&&this.xhr.IX()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var Z=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.WW=((0,g.o8)()-Z)/1E3}this.xhr.IX()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.Lb&&!vua()&&g.AU("yt-player-headers-readable",!0,2592E3);Z=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var I=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),d;(d=this.WU)==null||d.stop();this.fZ=Z||this.fZ; this.us=I||this.us}}; g.n.Ir=function(){var Z=this.xhr;if(!this.OZ()&&Z){this.WE=Z.status;Z=this.qW(Z);if(this.policy.Gv){var I;(I=this.WU)==null||I.stop()}Z===5?vd(this.Qt):this.XT(Z);this.Qt.D.stop()}}; g.n.qW=function(Z){WLu(this);if(XX(this.Qt,this.xhr.status,this.ol?this.timing.LS||this.iS:this.xhr.B6(),!1,this.SE))return 5;var I="";i9(this.Qt,this.xhr)&&(I=Qdg(this.Qt,this.xhr));if(I)return sq(qP(this.Qt)),this.info.w5(this.aN,I),3;I=Z.Yx();if(this.Ah){this.TL(!0);WLu(this);if(XX(this.Qt,this.xhr.status,this.timing.LS||this.iS,!1,this.SE))return 5;if(!this.Cq){if(this.iS)return sq(qP(this.Qt)),3;this.Qt.lastError="net.closed";return 5}}else{if(XX(this.Qt,this.xhr.status,this.xhr.B6(),!1,this.SE))return 5; var d=this.info.Z;if(d&&d!==I||Z.MM())return this.Qt.lastError="net.closed",5;this.TL(!0)}d=Toi(this)?Z.getResponseHeader("X-Bandwidth-Est"):0;if(Z=Toi(this)?Z.getResponseHeader("X-Bandwidth-Est3"):0)this.Wf=!0,this.policy.Pp&&(d=Z);z0E(this.Qt,I,d?Number(d):0,this.info.e7[0].type===5);return 4}; g.n.canRetry=function(){this.OZ();var Z=this.info.isDecorated();return this.Qt.canRetry(Z)}; g.n.onStateChange=function(){this.isComplete()&&(this.policy.kA?this.BW():this.timing.deactivate())}; g.n.B1=function(){this.Qt.B1()}; g.n.uv=function(){this.callback&&this.callback(this,this.state)}; g.n.J6=function(){return this.Qt.J6()}; g.n.dispose=function(){qG.prototype.dispose.call(this);this.Qt.dispose();var Z;(Z=this.WU)==null||Z.dispose();this.policy.kA||this.BW()}; g.n.BW=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.n.eL=function(){if(!this.aO().length)return[];this.o8=!0;return this.nF.eL()}; g.n.Ra=function(){if(this.state<1)return!1;if(this.nF&&this.nF.Hb.length)return!0;var Z;return((Z=this.xhr)==null?0:Z.A6())?!0:!1}; g.n.aO=function(){this.TL(!1);return this.nF?this.nF.aO():[]}; g.n.TL=function(Z){try{if(Z||this.xhr.IX()&&this.xhr.A6()&&!i9(this.Qt,this.xhr)&&!this.SZ)this.nF||(this.nF=new Zp(this.policy,this.info.e7)),this.xhr.A6()&&(this.Ah?this.Ah.feed(this.xhr.wH()):jm(this.nF,this.xhr.wH(),Z&&!this.xhr.A6()))}catch(I){this.Ah?DBE(this,I):g.uL(I)}}; g.n.f$=function(Z,I){switch(Z){case 21:Z=I.split(1).yC;GId(this,Z);break;case 22:this.Cq=!0;jm(this.nF,new OA([]),!0);break;case 43:if(Z=BG(new WG(I),1))this.info.w5(this.aN,Z),this.iS=!0;break;case 45:I=pO3(new WG(I));Z=I.Wq;I=I.rg;Z&&I&&(this.Q9=Z/I);break;case 44:this.Ho=Zpl(new WG(I));var d,Y,T;!this.timing.LS&&((d=this.Ho)==null?void 0:d.action)===4&&((Y=this.Ho)==null?0:(T=Y.jq)==null?0:T.ol)&&(this.ol=this.Ho.jq.ol);break;case 53:this.policy.Gv&&(Z=XDE(new WG(I)).WK)&&(this.WU||(this.WK=Z, this.WU=new g.uX(this.Q6,Z,this)),this.WU.start());break;case 60:this.PN=d3(new WG(I));break;case 58:if(Z=hZD(new WG(I)))this.UL=Z,Z.UL===3&&(this.SE=!0)}}; g.n.QZ=function(Z,I,d,Y){d||this.timing.QZ(Y);if(Z!==21)return!1;if(Z=this.policy.RV)if(Z*=this.info.e7[0].L.info.pS,I.totalLength+d!==Y&&I.totalLength0)return!1;if(!this.xhr.IX())return!0;if(this.Ah)var Z=!this.info.Z;else this.xhr.aH()?Z=!1:(Z=this.xhr.getResponseHeader("content-type"),Z=Z==="audio/mp4"||Z==="video/mp4"||Z==="video/webm");if(!Z)return!1;if(isNaN(this.info.i4)){Z=this.xhr.getResponseHeader("x-head-seqnum");var I=this.timing.policy.V?1:0;if(Z&&Number(Z)>this.info.e7[0].YS+I)return!1}return!0}; g.n.gp=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.n.oH=function(){this.xhr&&(this.fZ=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.fZ}; g.n.Sy=function(){this.xhr&&(this.us=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.us}; g.n.dB=function(){return this.Qt.dB()}; g.n.Q6=function(){if(!this.OZ()&&this.xhr){this.TB="heartbeat";var Z=this.Qt;Z.L+=2;this.uv()}};g.U(OV,Qd);g.n=OV.prototype;g.n.Ev=function(Z,I){var d=(Z-this.j)/1E3,Y=I-this.Z;this.D>0?Y>0&&(this.Ns&&(d>.2||Y<1024?(this.N+=d,d>.2&&vgJ(this,.05,Y)):vgJ(this,d,Y)),this.mJ&&(this.Tm+=Y,this.w4+=d)):I>this.policy.L&&this.PU(Z,I);Qd.prototype.Ev.call(this,Z,I)}; g.n.vD=function(Z,I){XG(this,Z,I);this.Ev(Z,I);this.Ns&&(I=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.D>0&&KB(this.Bk,this.Tm,this.N),Z=(Z-this.L)/1E3||.01,this.policy.X&&!(this.D>0)||rc(this.Bk,Z,this.Z,I,!1))}; g.n.gO=function(Z){XG(this,Z,this.B);var I=(Z-this.j)/1E3;yKd(this.Bk,I,0);this.bL(I,0);!this.Ns&&this.D>0||(I=this.Z*this.snapshot.stall+this.Z/this.snapshot.byterate,this.D>0&&(this.N+=(Z-this.j)/1E3,KB(this.Bk,this.Tm,this.N)),rc(this.Bk,(Z-this.L)/1E3||.01,this.Z,I,!1,!0))}; g.n.jW=function(Z){Z=Z.v7||2147483647;(Z&2)!==2&&(this.mJ=!1);(Z&1)===1&&(this.Ns=!0)}; g.n.Mu=function(Z){Z=Z.v7||2147483647;(Z&2)===2&&(this.mJ=!1);(Z&1)===1&&(this.Ns=!1)}; g.n.F$=function(){return this.X}; g.n.jN=function(){var Z=this.mJ?this.now()-this.j:0;return Math.max(this.w4*1E3+Z,1)}; g.n.I8=function(){return this.Tm*1E3/this.jN()}; g.n.PU=function(Z,I){Z=Z===void 0?this.V:Z;I=I===void 0?this.B:I;this.D>0||(Qd.prototype.PU.call(this,Z,I),I=this.Bk,Z=(Z-this.In)/1E3,I.X.vJ(1,(this.In-this.L)/1E3),I.fS.vJ(1,Z))}; g.n.Lx=function(Z){this.sZ=Z}; g.n.uf=function(){var Z=Qd.prototype.uf.call(this);Z.rbw=this.I8();Z.rbe=+this.mJ;Z.gbe=+this.Ns;Z.ackt=(this.sZ-this.L).toFixed();return Z}; g.n.z2=function(){}; g.n.UX=function(){return NaN}; g.n.We=function(){return this.L+this.snapshot.delay*1E3};dV.prototype.f$=function(Z,I){switch(Z){case 20:Z=new WG(I);Z={iP:wd(Z,1),videoId:BG(Z,2),itag:wd(Z,3),lmt:wd(Z,4),xtags:BG(Z,5),lY:wd(Z,6),e3:v2(Z,8),zJ:wd(Z,9),Um5:wd(Z,10),startMs:wd(Z,11),durationMs:wd(Z,12),Rb:wd(Z,14),timeRange:I2(Z,15,LaL),UM:wd(Z,16),MH:wd(Z,17),clipId:BG(Z,1E3)};this.Vv(Z);break;case 21:this.O6(I,!1);break;case 22:this.XV(I);break;case 31:Z=K$(I,ZT$);this.oX(Z);break;case 52:Z=K$(I,Oip);this.xB(Z);break;default:this.nX(Z,I)}}; dV.prototype.Vv=function(){}; dV.prototype.nX=function(){};g.U(elu,dV);g.n=elu.prototype; g.n.nX=function(Z,I){switch(Z){case 35:this.HK(I);break;case 44:this.SW(I);break;case 43:this.H_(I);break;case 53:this.o_(I);break;case 56:this.B8();break;case 57:this.Up(I);break;case 42:this.iq(I);break;case 45:this.sL(I);break;case 59:this.i$(I);break;case 51:this.Q_(I);break;case 49:this.jW(I);break;case 50:this.Mu(I);break;case 47:this.zk(I);break;case 58:this.lL(I);break;case 61:this.Zf.Lj.Lx((0,g.o8)());break;case 66:this.Yd(I);break;case 46:this.Nu(I);break;case 67:this.onSnackbarMessage(I);break; case 69:this.z8(I)}}; g.n.Q_=function(Z){Z=new WG(Z);Z={PKS:BK(Z,1,A1),cfn:BK(Z,2,A1)};this.Zf.Q_(Z)}; g.n.i$=function(Z){var I=new WG(Z);Z=OI(I,1);var d=OI(I,2);I=OI(I,3);this.Zf.i$(Z,d,I)}; g.n.sL=function(Z){Z=pO3(new WG(Z));this.Zf.sL(Z)}; g.n.zk=function(Z){Z=K$(Z,ZQl);this.Zf.zk(Z)}; g.n.iq=function(Z){Z=new WG(Z);Z={videoId:BG(Z,1),formatId:I2(Z,2,A1),endTimeMs:wd(Z,3),fn5:wd(Z,4),mimeType:BG(Z,5),Qo:I2(Z,6,RUi),indexRange:I2(Z,7,RUi),VR:I2(Z,8,j3D)};this.Zf.iq(Z)}; g.n.Up=function(Z){Z=new WG(Z);Z={type:wd(Z,1),scope:wd(Z,2),value:e7(Z,3),sendByDefault:v2(Z,4),writePolicy:wd(Z,5)};this.Zf.Up(Z)}; g.n.B8=function(){this.Zf.B8()}; g.n.HK=function(Z){Z=UyB(new WG(Z));this.Zf.HK(Z)}; g.n.o_=function(Z){Z=XDE(new WG(Z));this.Zf.o_(Z)}; g.n.SW=function(Z){Z=Zpl(new WG(Z));this.Zf.SW(Z)}; g.n.H_=function(Z){Z={redirectUrl:BG(new WG(Z),1)};this.Zf.H_(Z)}; g.n.O6=function(Z){var I=O2(Z,0);if(Z.totalLength!==1){Z=Z.split(1).yC;var d=this.D[I]||null;d&&LC(this.Zf.yf,I,d,Z)}}; g.n.XV=function(Z){Z=O2(Z,0);var I=this.D[Z]||null;I&&this.Zf.XV(Z,I)}; g.n.xB=function(Z){this.Zf.xB(Z)}; g.n.Vv=function(Z){var I=Z.iP,d=Z.e3,Y=Z.lY,T=Z.MH,f=Z.UM,P=Z.zJ,O=Z.startMs,a=Z.durationMs,W=Z.timeRange,e=Z.Rb,B=Z.clipId,w=W9(Z);Z=SNp.has(fF[""+Z.itag]);this.D[I]=w;this.Zf.HU(w,Z,{iP:I,e3:!!d,lY:Y!=null?Y:-1,zJ:P!=null?P:-1,startMs:O!=null?O:-1,durationMs:a!=null?a:-1,Rb:e,MH:T,UM:f,clipId:B,timeRange:W})}; g.n.jW=function(Z){Z={v7:wd(new WG(Z),1)};this.Zf.jW(Z)}; g.n.Mu=function(Z){Z={v7:wd(new WG(Z),1)};this.Zf.Mu(Z)}; g.n.oX=function(Z){this.Zf.oX(Z)}; g.n.lL=function(Z){Z=hZD(new WG(Z));this.Zf.lL(Z)}; g.n.Yd=function(Z){Z={Ke:I2(new WG(Z),1,og9)};this.Zf.Yd(Z)}; g.n.onSnackbarMessage=function(Z){Z=wd(new WG(Z),1);this.Zf.onSnackbarMessage(Z)}; g.n.z8=function(Z){Z={Jn:BK(new WG(Z),1,Aja)};this.Zf.z8(Z)}; g.n.Nu=function(Z){Z=new WG(Z);Z={reloadPlaybackParams:I2(Z,1,IEa),Zm:v2(Z,2)};this.Zf.Nu(Z)};g.U(em,g.p);g.n=em.prototype;g.n.Rl=function(){return Array.from(this.lQ.keys())}; g.n.yZ=function(Z){Z=this.lQ.get(Z);var I=Z.Hb;Z.Oa+=I.totalLength;Z.Hb=new OA;return I}; g.n.bT=function(Z){return this.lQ.get(Z).bT}; g.n.kf=function(Z){return this.lQ.get(Z).kf}; g.n.HU=function(Z,I,d){this.lQ.get(Z)||this.lQ.set(Z,{Hb:new OA,Oa:0,bytesReceived:0,m9:0,gg:!1,bT:!1,kf:!1,iT:I,lB:[],e7:[],Ce:[],WZ:!1,JK:new Map,qd:new Map,HF:[]});I=this.lQ.get(Z);this.u5?(Z=rl9(this,Z,d),dJ$(this,d.iP,I,Z)):(d.e3?I.m9=d.Rb:I.Ce.push(d),I.lB.push(d))}; g.n.gw=function(Z){var I;return((I=this.lQ.get(Z))==null?void 0:I.e7)||[]}; g.n.ZN=function(){for(var Z=g.t(this.lQ.values()),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.gg){if(I.onProgress)I.onProgress();I.gg=!1}}; g.n.XV=function(Z,I){I=this.lQ.get(I);Nx?I&&!I.bT&&(I.JK.get(Z)?I.JK.get(Z).Nh=!0:I.JK.set(Z,{data:new OA,m3:0,Nh:!0}),I.kf=!0):I&&!I.kf&&(I.kf=!0)}; g.n.eL=function(Z){if(Nx){var I=this.lQ.get(Z);if(I)for(var d=g.t(I.JK),Y=d.next();!Y.done;Y=d.next()){var T=g.t(Y.value);Y=T.next().value;T=T.next().value;var f=I.qd.get(Y);if(w8(f[0])){if(!T.Nh)continue;var P=T.data,O=0,a=[];f=g.t(f);for(var W=f.next();!W.done;W=f.next()){W=W.value;var e=W.Z,B=AL(P,O,e);O+=e;a.push(new Hj(W,B))}I.HF.push.apply(I.HF,g.c(a))}else if(T.data.totalLength>0||!f[0].range&&T.Nh)P=void 0,O=f[0],a=T.m3,f=T.data,O.range||(P=T.Nh),P=new Hj(g8$(O,O.D+a,f.totalLength,P),f),T.m3+= P.info.Z,I.HF.push(P);I.JK.get(Y).data=new OA;T.Nh&&I.JK.delete(Y)}Z=this.lQ.get(Z);if(!Z)return[];I=Z.HF;Z.HF=[];d=g.t(I);for(Y=d.next();!Y.done;Y=d.next())Z.Oa+=Y.value.info.Z;return I||[]}d=(I=this.lQ.get(Z))==null?void 0:I.nF;if(!d)return[];this.TL(Z,d);return d.eL()}; g.n.Ra=function(Z){if(Nx)return Sj(this,Z);var I,d,Y;return!!((d=(I=this.lQ.get(Z))==null?void 0:I.nF)==null?0:(Y=d.aO())==null?0:Y.length)||Sj(this,Z)}; g.n.TL=function(Z,I){for(;Sj(this,Z);){var d=this.yZ(Z);var Y=Z;Y=this.lQ.get(Y).bT&&!Ff(this,Y);jm(I,d,Y&&ZUD(this,Z))}}; g.n.g4=function(){g.p.prototype.g4.call(this);for(var Z=g.t(this.lQ.keys()),I=Z.next();!I.done;I=Z.next())lD(this,I.value);var d;if((d=this.bu)==null?0:d.M_)for(Z=g.t(this.lQ.values()),I=Z.next();!I.done;I=Z.next())I=I.value,I.JK.clear(),I.qd.clear(),I.HF.length=0,I.e7.length=0,I.lB.length=0,I.Ce.length=0;this.lQ.clear()}; var Nx=!1;g.U(DD,g.p);g.n=DD.prototype;g.n.jn=function(){!this.OZ()&&this.xhr&&(this.TL(!1),HJ(this.Zf,this))}; g.n.RX=function(){}; g.n.Ir=function(){if(!this.OZ()&&this.xhr){var Z=this.qW();Z===5?vd(this.Qt):this.XT(Z);this.Qt.D.stop();var I;(I=this.Lm)==null||I.stop()}}; g.n.qW=function(){var Z="";i9(this.Qt,this.xhr)&&(Z=Qdg(this.Qt,this.xhr));if(Z)return this.info.MC.w5(this.aN,Z),3;this.TL(!0);if(XX(this.Qt,this.xhr.status,this.xhr.B6(),this.info.UG(),this.SE))return 5;if(this.O7)return 3;z0E(this.Qt,this.xhr.Yx(),0,this.UG());this.policy.En&&tur(this.Zf);return 4}; g.n.TL=function(Z){var I=this.xhr;!Z&&i9(this.Qt,this.xhr)||!I.A6()||(Z=I.wH(),this.Ah.feed(Z))}; g.n.f$=function(Z,I){this.xhr.gx()&&Z===21&&M$E(this);this.TK.f$(Z,I)}; g.n.QZ=function(Z,I,d,Y){d||(this.Lj.QZ(Y),this.policy.x7&&Z===21&&M$E(this));if(Z!==21)return!1;this.Lj.LS=!0;Z=I.totalLength;d||(this.Ga=O2(I,0),I=I.split(1).yC);var T=this.policy.r8,f=this.TK.D[this.Ga],P=this.u5.Z.get(f);if(T&&P&&(T*=P.info.pS,Z+d!==Y&&Z0){this.policy.K0&&this.Qt.D.stop();Z=this.Lj.jN();I=this.Lj.I8();var d=Qvg(this,Z);if(!(I>d.bl||d.GW>0&&this.info.Rg()>d.GW)){this.Ql=(0,g.o8)();var Y;(Y=this.Lm)==null||Y.stop();this.policy.En&&(Y=this.Zf,Z={Sh:Math.round(I*Z/1E3),rH:Z},Y.policy.En&&(Y.mJ=Z,Y.PK++));this.B1()}}}}; g.n.B1=function(){this.Qt.B1()}; g.n.SW=function(Z){this.Zf.SW(Z,this.sM())}; g.n.H_=function(Z){this.O7=!0;this.info.MC.w5(this.aN,Z.redirectUrl)}; g.n.jW=function(Z){this.Lj instanceof OV&&this.Lj.jW(Z)}; g.n.Mu=function(Z){this.Lj instanceof OV&&this.Lj.Mu(Z)}; g.n.iq=function(Z){var I=Z.formatId,d=W9({itag:I.itag,lmt:I.lmt,xtags:I.xtags}),Y,T,f=new j7(((Y=Z.Qo)==null?void 0:Y.first)||0,((T=Z.Qo)==null?void 0:T.r6)||0),P,O;Y=new j7(((P=Z.indexRange)==null?void 0:P.first)||0,((O=Z.indexRange)==null?void 0:O.r6)||0);this.u5.Z.get(d)||(d=Z.VR||{},d.mimeType=Z.mimeType,d.itag=I.itag,d.lastModified=""+(I.lmt||0),d.xtags=I.xtags,Z=this.u5,I=gN(""),d=F3(d,null),Xy(Z,new i8(I,d,f,Y)))}; g.n.sL=function(Z){this.Zf.sL(Z,this.sM())}; g.n.onSnackbarMessage=function(Z){if(this.policy.uG)this.Zf.onSnackbarMessage(Z)}; g.n.z8=function(Z){this.policy.j&&this.Zf.z8(Z,this.sM())}; g.n.oX=function(Z){this.wS=Z;this.Qt.Z=(0,g.o8)();this.Zf.oX(Z)}; g.n.i$=function(Z,I,d){this.Zf.i$(Z,I,d)}; g.n.Up=function(Z){Z.scope===2&&(this.XH=Z);this.Zf.Up(Z)}; g.n.B8=function(){this.VH=!0;this.Zf.B8()}; g.n.Q_=function(Z){this.policy.JW&&this.Zf.Q_(Z)}; g.n.zk=function(Z){this.Zf.zk(Z,this.sM())}; g.n.lL=function(Z){Z.UL===3&&(this.SE=!0);this.Zf.lL(Z)}; g.n.Yd=function(Z){this.Zf.Yd(Z)}; g.n.Nu=function(Z){this.Zf.Nu(Z)}; g.n.canRetry=function(){this.OZ();return this.Qt.canRetry(!1)}; g.n.dispose=function(){if(!this.OZ()){g.p.prototype.dispose.call(this);this.Qt.dispose();var Z;(Z=this.Lm)==null||Z.dispose();this.XT(-1);this.BW()}}; g.n.XT=function(Z){this.state=Z;HJ(this.Zf,this)}; g.n.UG=function(){return this.info.UG()}; g.n.Dw=function(){return this.VH}; g.n.kY=function(){return this.XH}; g.n.HU=function(Z,I,d){d.clipId&&(this.clipId=d.clipId);this.policy.D&&!I&&(this.C0=d.zJ);if(this.info.isDecorated()){var Y=this.info,T,f;var P=((T=Y.data)==null?0:(f=T.A$)==null?0:f.h3)?Y.data.A$.h3:-1;P>=0&&P>d.zJ&&this.Zf.loader.D1("sdai",{skpsqmismatch:"1",stsq:P,rcvsq:d.zJ,a:I})}this.yf.HU(Z,I,d);this.policy.N_&&this.wS&&this.Lj instanceof zj&&(P=this.wS.tN,this.Lj.HU(d.durationMs/1E3,I,P>0&&d.zJ+1>=P));this.yf.lQ.get(Z).WZ=!0}; g.n.XV=function(Z,I){this.yf.XV(Z,I)}; g.n.xB=function(Z){this.requestIdentifier=Z}; g.n.eL=function(Z){return this.yf.eL(Z)}; g.n.gw=function(Z){return this.yf.gw(Z)}; g.n.Ra=function(Z){return this.yf.Ra(Z)}; g.n.Rl=function(){return this.yf.Rl()}; g.n.tW=function(){return 1}; g.n.sM=function(){return this.Lj.requestNumber}; g.n.Ls=function(){return this.requestIdentifier}; g.n.VI=function(){return this.aN.VI()}; g.n.d$=function(){this.BW()}; g.n.BW=function(){this.Lj.deactivate();var Z;(Z=this.xhr)==null||Z.abort()}; g.n.isComplete=function(){return this.state>=3}; g.n.FA=function(){return this.state===3}; g.n.q_=function(){return this.state===5}; g.n.XA=function(){return this.state===4}; g.n.Mz=function(){return this.isComplete()}; g.n.xJ=function(){return this.state>=1}; g.n.J6=function(){return this.policy.o4?this.Qt.J6():0}; g.n.uv=function(){this.policy.o4&&HJ(this.Zf,this)}; g.n.o2=function(){return NLl(this.info)}; g.n.dB=function(){return this.Qt.dB()}; g.n.LZ=function(){var Z=e4J(this.Qt);Object.assign(Z,Fsn(this.info));Z.req="sabr";Z.rn=this.sM();var I;if((I=this.xhr)==null?0:I.status)Z.rc=this.policy.kM?this.xhr.status:this.xhr.status.toString();var d;(I=(d=this.xhr)==null?void 0:d.LF())&&(Z.msg=I);this.Ql&&(d=Qvg(this,this.Ql-this.Lj.F$()),Z.letm=d.f1J,Z.mrbps=d.bl,Z.mram=d.GW);return Z};EPd.prototype.tick=function(Z,I){this.ticks[Z]=I?window.performance.timing.navigationStart+I:(0,g.o8)()};g.U(wc,g.dx);g.n=wc.prototype; g.n.O5=function(Z,I,d,Y){if(this.policy.OL&&this.policy.D){var T=Z.Un||null;T?(I59(this,Z.YS,yT(this,Z.startTime,Z.YS),{Un:T,YS:Z.YS,LK:!!I,zx:d},this.Z),Y&&this.Z&&this.Z.Bo(Z.YS,Z.startTime,this.D,(I==null?void 0:I.L)||[],(I==null?void 0:I.D)||[],(I==null?void 0:I.N)||[],d,(I==null?void 0:I.fC)||0,(I==null?void 0:I.Z)||void 0)):this.D===1&&ir(this,5,"noad")}else{var f=!1;this.policy.D&&(f=d?this.Bj===Z.YS:this.Ns===Z.YS);if(this.Z&&Y&&!f){Y=[];f=[];var P=[],O=void 0,a=0;I&&(Y=I.L,f=I.D,P=I.N,O= I.Z,a=I.fC,this.D1("sdai",{sq:Z.YS,ssvicpns:Y.join("."),ssvid:f.join(".")}));this.policy.D&&(d?this.Bj=Z.YS:this.Ns=Z.YS);this.Z.Bo(Z.YS,Z.startTime,this.D,Y,f,P,d,a,O)}this.policy.D?d&&(this.D===1&&ir(this,5,"noad"),Z.YS!==((T=this.L)==null?void 0:T.YS)&&(JOJ(this,Z,I,d),isNaN(Z.startTime)||GQB(this,Z.YS,yT(this,Z.startTime,Z.YS),!!I,this.Z))):d&&JOJ(this,Z,I)}}; g.n.uq=function(Z,I,d){var Y=this.videoTrack.L.index.c$()<=I;this.L={Un:Z,YS:I,LK:d};Y&&D9(this,Z,I)}; g.n.AL=function(){this.Z&&this.Z.AL()}; g.n.D1=function(Z,I,d){(Z!=="sdai"||this.policy.Zn||(d===void 0?0:d))&&this.loader.D1(Z,I)}; g.n.GL=function(Z,I){var d=this.videoTrack.L.index.Cl(Z);if(d>=0){var Y;var T=((Y=I.FT.NJ(d,2))==null?void 0:Y.oo)||"";if(this.policy.D||T)return I.hW(Z,d),TE(this.loader,Z,Z,d),this.D1("sdai",{cmskpad:1,t:Z.toFixed(3),sq:d}),!0}this.D1("sdai",{cmskpad:0,t:Z.toFixed(3),sq:d});return!1};g.n=Ax$.prototype;g.n.G8=function(Z,I,d){var Y=Z||this.L;this.D1("clsdai",{setadcfg:1,ocid:Z,cid:Y,acpn:d,acfglen:(I==null?void 0:I.length)||0});this.D.has(Y)||(this.D1("clsdai",{setadcfg:"noentry",cid:Y}),this.D.set(Y,{event:"unknown",startTimeSecs:0,QI:0,LB:[],rU:Date.now(),Wy:-1,fA:6}));(Z=this.D.get(Y))?I?(Z.fA=6,Z.LB.push(d),Z.Fk=I):Z.fA=2:this.D1("clsdai",{setadcfg:"notfound",cid:Y})}; g.n.pK=function(Z){Z=Z||this.L;var I=this.D.get(Z);I?(I.Fk="",I.fA=4):this.D1("clsdai",{rmadcfg:"notfound",cid:Z})}; g.n.z8=function(Z,I,d){var Y;if(!((((Y=Z.Jn)==null?void 0:Y.length)||0)<=0)&&(Z=Z.Jn[0],Z.Un)){var T;Y=-(((T=Z.Un)==null?void 0:T.Ri)||0);Z.timeRange&&(Y+=(Z.timeRange.startTicks||0)/(Z.timeRange.timescale||1));var f,P,O,a,W;T=new Ax(Y,((f=Z.Un)==null?void 0:f.BBS)||0,((P=Z.Un)==null?void 0:P.q0)||"",((O=Z.Un)==null?void 0:O.identifier)||"",MSa((a=Z.Un)==null?void 0:a.event),(((W=Z.Un)==null?void 0:W.Ri)||0)*1E3);rt$(this,T,I,Z.zJ||0,d)}}; g.n.hW=function(Z,I,d){var Y=Z;this.N&&(Y+=d);this.hg(Y);Y=this.D.get(this.L);if(!Y||Y.WV)return this.D1("clsdai",{skipadfail:1,cid:this.L,sn:I,mt:Z.toFixed(3),of:d.toFixed(3),skipsq:(Y==null?void 0:Y.WV)||-1}),!1;this.D1("clsdai",{skipadsuc:1,cid:this.L,sn:I,mt:Z.toFixed(3),of:d.toFixed(3)});Y.WV=I;return!0}; g.n.Md=function(){this.D1("clsdai",{rstskipad:1});for(var Z=g.t(this.D.values()),I=Z.next();!I.done;I=Z.next())I.value.WV=NaN}; g.n.hg=function(Z,I){I&&(this.B=I);if(this.L&&(I=this.D.get(this.L))&&I.startTimeSecs<=Z&&Z<=I.startTimeSecs+I.QI)return;I=this.L||"";a:{for(var d="",Y=g.t(this.D.entries()),T=Y.next();!T.done;T=Y.next()){var f=g.t(T.value);T=f.next().value;f=f.next().value;var P=void 0,O=void 0,a=void 0;if(((P=f)==null?void 0:P.startTimeSecs)<=Z&&Z<=((O=f)==null?void 0:O.startTimeSecs)+((a=f)==null?void 0:a.QI)){Z=T;break a}O=P=void 0;d+=T+":"+((P=f)==null?void 0:P.startTimeSecs.toFixed(3))+":"+((O=f)==null?void 0: O.QI.toFixed(3))+";"}this.D1("clsdai",{no_cid:1,mt:Z.toFixed(3),adConfigMap:d.substring(0,1024)});Z=""}this.L=Z;this.D1("clsdai",{updateccid:1,cid:this.L,ocid:I})};g.U(SS,g.p);SS.prototype.zR=function(Z,I,d){d=d===void 0?{}:d;this.policy.WB=el(Z,d,this.N,I===void 0?!1:I)};i4$.prototype.YK=function(Z){var I=this;if(this.policy.OT){var d=new Set(Z);d.size===this.fS.size&&[].concat(g.c(d)).every(function(Y){return I.fS.has(Y)})||(this.loader.D1("lwnmow",{itagDenylist:[].concat(g.c(Z)).join(",")}),this.loader.j5(!!d.size),this.In=-1,this.fS=d,y3(this,this.L),this.Tm=!0)}}; i4$.prototype.zR=function(Z,I,d){d=d===void 0?{}:d;var Y=this.policy.WB;this.B.zR(Z,I===void 0?!1:I,d);if(Y!==this.policy.WB){y3(this,this.L);Ln(this);var T,f;Y>this.policy.WB&&((T=this.Z)==null?0:IO(T.info))&&((f=this.nextVideo)==null||!IO(f.info))&&(this.LS=!0)}};var hE7={M1:-1,f9:!1,EF:0};g.U(kf,g.p);kf.prototype.g4=function(){jPd(this);g.p.prototype.g4.call(this)};om.prototype.M6=function(Z){this.timestampOffset=Z;this.flush()}; om.prototype.flush=function(){if(this.L.pos>0){var Z={a:this.track.iT(),u:this.L.It(),pd:Math.round(this.N),ad:Math.round(this.Z)},I=this.D;if(I){var d=I.L.info;Z.itag=d.itag;d.L&&(Z.xtags=d.L);Z.sq=I.YS;Z.st=I.startTime;Z.sd=I.duration;this.track.policy.V$&&(Z.si=I.m5());I.N&&(Z.esl=I.D+I.Z);I.RL()&&(Z.eos=1)}isNaN(this.timestampOffset)||(Z.to=this.timestampOffset);var Y;if(I=(Y=this.track.qC)==null?void 0:Y.Gb({})){for(var T in I)this.j[T]!==I[T]&&(Z["sb_"+T]=I[T]);this.j=I}this.track.D1("sbu", Z);this.L.reset();this.buffered=[];this.B=this.Z=this.N=0;this.timestampOffset=this.D=void 0}};N0.prototype.dispose=function(){this.kS=!0}; N0.prototype.OZ=function(){return this.kS}; g.U(DU,Error);L$.prototype.skip=function(Z){this.offset+=Z}; L$.prototype.jd=function(){return this.offset};g.n=e0d.prototype;g.n.w0=function(){return this.D}; g.n.Rw=function(){return this.D.length?this.D[this.D.length-1]:null}; g.n.IL=function(){this.D=[];ED(this);FK(this)}; g.n.yZ=function(Z){this.w4=this.D.shift().info;Z.info.equals(this.w4)}; g.n.gw=function(){return g.Ft(this.D,function(Z){return Z.info})}; g.n.iT=function(){return!!this.B.info.audio}; g.n.isDrm=function(){return!!this.B.info.T_}; g.n.getDuration=function(){return this.B.index.EG()};g.U(Af,qG);g.n=Af.prototype;g.n.onStateChange=function(){this.OZ()&&(uD(this.yf,this.formatId),this.L.dispose())}; g.n.LZ=function(){var Z=rg$(this.yf,this.formatId),I;var d=((I=this.yf.lQ.get(this.formatId))==null?void 0:I.bytesReceived)||0;var Y;I=((Y=this.yf.lQ.get(this.formatId))==null?void 0:Y.Oa)||0;return{expected:Z,received:d,bytesShifted:I,sliceLength:Ff(this.yf,this.formatId),isAnyMediaEndReceived:this.yf.kf(this.formatId)}}; g.n.Mf=function(){return 0}; g.n.BF=function(){return!0}; g.n.eL=function(){return this.yf.eL(this.formatId)}; g.n.aO=function(){return[]}; g.n.Ra=function(){return this.yf.Ra(this.formatId)}; g.n.dB=function(){return this.lastError}; g.n.J6=function(){return 0};g.U(YG,g.p);g.n=YG.prototype;g.n.iT=function(){return!!this.L.info.audio}; g.n.Rw=function(){return this.N.Rw()}; g.n.yZ=function(Z){this.N.yZ(Z);var I;(I=this.X)!=null&&(I.B.add(Z.info.YS),I.L=knD(I,I.N8,I.s9,Z,I.L),I.Z=Z,I.j=(0,g.o8)());this.pS=Math.max(this.pS,Z.info.L.info.pS||0)}; g.n.getDuration=function(){return this.L.index.EG()}; g.n.IL=function(){G5(this);this.N.IL()}; g.n.b9=function(){return this.N}; g.n.Kv=function(Z){return this.qC?Qb(this.qC.LN(),Z):!0}; g.n.isRequestPending=function(Z){return this.Z.length?Z===this.Z[this.Z.length-1].info.e7[0].YS:!1}; g.n.M6=function(Z){var I;(I=this.X)==null||I.M6(Z);var d;(d=this.In)==null||d.M6(Z)}; g.n.D1=function(Z,I){this.loader.D1(Z,I)}; g.n.VC=function(){return this.loader.VC()}; g.n.dispose=function(){var Z;(Z=this.In)==null||Z.flush();g.p.prototype.dispose.call(this)};g.U(pn,g.p);pn.prototype.Z=function(){this.D++>15||(this.L=!this.L,new YYD(this.loader,this.policy,this.Bk,this.MC,this.L),this.delay.start())}; g.n=YYD.prototype;g.n.RX=function(){}; g.n.jn=function(){}; g.n.Ir=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Yx()===this.size)this.loader.D1("rqs",this.getInfo());else{var Z="net.connect";this.xhr.status>200?Z="net.badstatus":this.xhr.IX()&&(Z="net.closed");this.onError(Z)}}; g.n.onError=function(Z){var I=this;this.loader.handleError(Z,this.getInfo());bk("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(d){I.loader.D1("pathprobe",d)},function(d){I.loader.handleError(d.errorCode,d.details)})}; g.n.getInfo=function(){var Z=this.timing.uf();Z.shost=al(1,this.location.hB);Z.pb=this.size;return Z};g.U(IH,g.p); IH.prototype.V=function(Z,I){if(Z.V){this.u5.isLive?(Z=this.u5.KN&&this.u5.N?Z.L.xA(this.u5.KN,!1):Z.L.GG(Infinity),Z.i4=this.i4):Z=Z.L.xA(0,!1);if(this.LS){var d=this.LS;Z.i4===0&&(Z.B=d.X)}else Z.B=this.In;return Z}d=Z.D;if(!d.L.SD())return d.L.FY()?(Z=SD(this.B,Z.L.info.pS,I.L.info.pS,0),Z=d.L.KC(d,Z)):Z=d.L.h1(d),Z;var Y=d.j-this.loader.getCurrentTime(),T=!d.range||d.Z===0&&d.D===0?0:d.range.length-(d.D+d.Z),f=d.L;this.Nl(Z,Y)&&T===0&&(this.u5.isManifestless?f=Z.L:(f=d.startTime+i3,d.Z&&(f+=d.duration), wM(Z,f),d=Z.D,f=d.L));f.FY()?(T=this.Z,I=SD(this.B,f.info.pS,I.L.info.pS,Y,T.N.length>0&&T.X===0&&this.loader.Yb),Y=TO(Z),Z=d.L.KC(d,I),(I=Z.Z)&&Z.e7.length>1&&(Y||Z.MC.Z||Z.e7[0].L!==d.L?Z=d.L.KC(d,Z.e7[0].Z):(Y=Z.e7[Z.e7.length-1],f=Y.Z/I,!Y.N&&f<.4&&(Z=d.L.KC(d,I-Y.Z))))):(d.YS<0&&(I=XU(d),I.pr=""+Z.Z.length,this.loader.isSeeking()&&(I.sk="1"),I.snss=d.V,this.loader.D1("nosq",I)),Z=f.h1(d));if(this.policy.fS)for(d=g.t(Z.e7),I=d.next();!I.done;I=d.next())I.value.type=6;return Z}; IH.prototype.Nl=function(Z,I){if(!TO(Z)||!Z.L.SD())return!1;var d;(d=this.Z.Tm)||(d=TO(Z)&&Z.L.SD()&&Z.D.L.info.pS=I)return Y.return();(d=Z.L.get(0))&&oWW(Z,d);g.v6(Y)})}; var U97={bpr:0,RE5:1,jU7:2,dt1:3,cKr:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};PT.prototype.decrypt=function(Z){var I=this,d,Y,T,f,P,O;return g.h(function(a){switch(a.L){case 1:if(I.L.length&&!I.L[0].isEncrypted)return a.return();I.D=!0;I.HT.On("omd_s");d=new Uint8Array(16);Vj()?Y=new g.OJ(Z):T=new g.Ry(Z);case 2:if(!I.L.length||!I.L[0].isEncrypted){a.xS(4);break}f=I.L.shift();if(!Y){P=T.decrypt(rd(f.buffer),d);a.xS(5);break}return g.m(a,Y.decrypt(rd(f.buffer),d),6);case 6:P=a.D;case 5:O=P;for(var W=0;W=4)){var I=rK(this),d=this.xhr;I.rc=d.status;Z&&(I.ab=!0);if(d.LF()){var Y="onesie.net";I.msg=d.LF()}else d.status>=400?Y="onesie.net.badstatus":d.B6()?this.kP||(Y="onesie.response.noplayerresponse"):Y=d.status===204?"onesie.net.nocontent":"onesie.net.connect";Y?this.fail(new g.dj(Y,I)):(this.On("or_fs"),this.Lj.vD((0,g.o8)(),d.Yx(),0),this.XT(4),this.Vq&&this.D1("rqs",I));this.Vq&&this.D1("ombre","ok."+ +!Y);this.gQ=!1;LI(this); tpB(this.HT);if(!this.U8){this.Tk.stop();var T;(T=this.Ft)==null||T.stop()}var f;if(Z=(f=this.Q0)==null?void 0:dyE(f))for(f=0;f1E3){var Z;(Z=this.Lj)==null||Z.gO((0,g.o8)());Z=rK(this);if(this.U.Vy()&&this.xhr instanceof gil){var I=this.xhr;Z.xrs=I.xhr.readyState;Z.xpb=I.L.totalLength;Z.xdc=I.N}this.fail(new g.dj("net.timeout",Z))}}else(0,g.o8)()-this.Lj.L>1E4&&((I=this.Lj)==null||I.gO((0,g.o8)()),this.wp());this.isComplete()||this.B4.start()}}; g.n.wp=function(){this.gQ=!1;if(!LI(this)){var Z=rK(this);Z.timeout="1";this.fail(new g.dj("onesie.request",Z))}}; g.n.fail=function(Z){var I=this;Z=w2(Z);this.F6?this.t5.nj(Z):(this.t6.reject(Z),this.F6=!0);tpB(this.HT);this.U8||this.Tk.stop();this.On("or_fe");var d,Y;(d=this.Q0)==null||(Y=dyE(d))==null||Y.forEach(function(T){I.D1("pathprobe",T)}); this.XT(5);this.dispose()}; g.n.isComplete=function(){return this.state>=3}; g.n.XA=function(){return this.state===4}; g.n.Mz=function(Z){var I,d;return this.isComplete()||!!((I=this.My)==null?0:(d=I.get(Z))==null?0:d.L)}; g.n.FA=function(){return!1}; g.n.q_=function(){return this.state===5}; g.n.notifySubscribers=function(Z){for(var I=0;I102400&&!this.uD&&(this.On("or100k"),this.uD=!0);if(Z.A6()){var I=Z.wH(),d=I.totalLength;this.Vq&&this.D1("ombrss","len."+d);this.Ah.feed(I)}if(this.My)for(var Y=g.t(this.My.keys()),T=Y.next();!T.done;T=Y.next()){var f=T.value;Z=void 0;(Z=this.My.get(f))==null||Z.ZN();this.notifySubscribers(f)}}catch(P){this.fail(P)}}; g.n.sM=function(){return this.Lj.requestNumber}; g.n.Ls=function(Z){return this.Kx.get(Z)};g.U(C1O,g.p);g.n=C1O.prototype;g.n.Ha=function(Z,I){this.LS=void 0;tur(this);D89(this,Z,I)}; g.n.gt=function(Z){if(this.L.length===0)return!1;var I=this.L[0];return I instanceof JU?Z===this.loader.getCurrentTime()*1E3:!(I instanceof DD&&ILE(I.info))&&Math.abs(I.o2()-Z)<50}; g.n.HK=function(Z,I){this.D=Z;this.policy.SG&&this.policy.D&&!Z.playbackCookie&&this.loader.D1("sbrnocookie",{rn:I!=null?I:-1});this.LS=(0,g.o8)()+(Z.backoffTimeMs||0)}; g.n.SW=function(Z,I){if(Z.action===void 0){var d=this.t5.yV();d!==void 0&&this.loader.j8(d)}else if(Z.action!==0||!this.sZ)if(Z.action===0&&this.policy.zO&&(Z.action=2),Z.ER==="sabr.malformed_config"&&this.on++<3)this.loader.handleError("sabr.malformed_config",{action:Z.action,rn:I,retry:this.on},0);else switch(Z.ER==="sabr.malformed_config"&&(Z.action=2),d={},d.reason=Z.ER,d.action=Z.action,d.rn=I,Z.action){case 1:this.policy.D&&this.V&&this.V.RQ(void 0,void 0,d);break;case 0:this.sZ=!0;this.videoData.YF()&& this.policy.D&&this.V&&this.V.RQ(void 0,void 0,d,!1);this.loader.Uh(d);break;case 2:rSn(Z.ER)!=="sabr.config"&&delete d.reason;this.loader.handleError(rSn(Z.ER),d,1);break;case 3:this.policy.eK&&((Z=this.u5.In)!=null&&(Z.X=!0),this.loader.handleError("sabr.hostfallback",d))}}; g.n.Up=function(Z){Z&&(this.loader.D1("sabrctxt",{onsbrctxt:Z.type,scp:Z.scope,dflt:Z.sendByDefault}),Z.type&&Z.sendByDefault&&this.videoData.d4.add(Z.type),Z.scope!==2&&(Z.type&&this.videoData.sabrContextUpdates.set(Z.type,Z),this.t5.Up(Z)))}; g.n.B8=function(){}; g.n.sL=function(Z,I){if(this.loader.nK)this.loader.D1("sdai",{ignSabrSeek:1,smt:Z==null?void 0:Z.Wq,rn:I});else if(Z.Wq!==void 0&&Z.rg){var d=Z.Wq/Z.rg;this.audioTrack.V=!1;this.videoTrack.V=!1;if(this.policy.kS||this.policy.gb||this.policy.q6)this.loader.Of.L=!1;var Y=this.loader.j3(d,1);this.policy.d4&&this.policy.D&&this.loader.hg(Y,I);this.t5.getCurrentTime()!==d&&(I={H$:"sabr_seek",fK:!0,nO:!0},Z.seekSource&&(I.seekSource=Z.seekSource),BE(this.loader,d+.1,I))}}; g.n.onSnackbarMessage=function(Z){this.t5.publish("onSnackbarMessage",Z)}; g.n.z8=function(Z,I){this.policy.j&&!gvJ(this.videoData)&&this.loader.z8(Z,I)}; g.n.oX=function(Z){Z.tN&&Z.Sr&&ig(this.u5,Z.tN,Z.Sr);this.policy.yD&&(Z.w$&&Z.WG&&(this.u5.Wh=Z.w$/Z.WG),Z.BG&&Z.fz&&(this.u5.gf=Z.BG/Z.fz));Db(this.videoData)&&!this.videoData.Ns&&Z.Sr&&this.loader.j3(Z.Sr,1E3);Z.ul!=null&&this.t5.S5(Z.ul);Z.LY&&(Z=((0,g.o8)()-Z.LY)/1E3,this.loader.GO.vJ(1,Z))}; g.n.lL=function(Z){this.loader.lL(Z)}; g.n.Eu=function(Z){return this.videoData.d4.has(Z)}; g.n.i$=function(Z,I,d){this.policy.Z&&this.loader.D1("sabrctxtplc",{start:Z?Z.join("_"):"",stop:I?I.join("_"):"",discard:d?d.join("_"):""});if(Z){Z=g.t(Z);for(var Y=Z.next();!Y.done;Y=Z.next())this.videoData.d4.add(Y.value)}if(I)for(I=g.t(I),Z=I.next();!Z.done;Z=I.next())Z=Z.value,this.videoData.d4.has(Z)&&this.videoData.d4.delete(Z);if(d)for(d=g.t(d),I=d.next();!I.done;I=d.next())if(I=I.value,this.videoData.sabrContextUpdates.has(I)&&this.videoData.sabrContextUpdates.delete(I),this.policy.LS&&this.L.length)for(Z= g.t(this.L),Y=Z.next();!Y.done;Y=Z.next())if(Y=Y.value,!(Y instanceof JU)){var T=void 0;((T=Y.XH)==null?void 0:T.type)===I&&(Y.XH=void 0)}}; g.n.Q_=function(){}; g.n.s7=function(Z){this.j=Z}; g.n.JC=function(Z){this.B=Z}; g.n.zk=function(Z,I){TY(this.policy,Z,4,I)}; g.n.Yd=function(Z){if(Z==null?0:Z.Ke)if(Z=Z.Ke.I2){Z=g.t(Z);for(var I=Z.next();!I.done;I=Z.next())if(I=I.value,I.formatId){var d=this.u5.Z.get(W9(I.formatId));d&&d.info&&(d.info.debugInfo=I.debugInfo)}}}; g.n.Nu=function(Z){this.t5.publish("reloadplayer",Z)}; g.n.FQ=function(){return this.t5.FQ()||""}; g.n.Rg=function(){var Z=hqn(this);return Math.min(Z.xN,Z.FJ)}; g.n.t9=function(Z,I){this.loader.D1(Z,I)}; g.n.Cn=function(Z){c3(this.loader,Xy$(this.y5,Z))}; g.n.g4=function(){g.p.prototype.g4.call(this);this.D=void 0;D89(this,!0,"i");this.L=[]};lf.prototype.LS=function(Z){cY(Z.state)&&UMJ(this.Z)}; lf.prototype.clear=function(){Pm$(this.Z);this.B.clear();this.D.clear();this.V=this.X=NaN;this.j=!1;this.l4=""}; lf.prototype.mG=function(){this.isSeeking=!0;this.L===1&&Pm$(this.Z);this.L===0&&this.UV.jM("transitiondetector");this.j=!1};uv.prototype.Nc=function(Z,I){if(this.N)return a9D(this,I);if(I=fM(Z)){var d=I.L;d&&d.Z&&d.L&&(Z=Z.Z.length?Z.Z[0]:null)&&Z.state>=2&&!Z.q_()&&Z.info.i4===0&&(this.N=Z,this.V=d,this.D=I.info,this.j=this.startTimeSecs=Date.now()/1E3,this.B=this.D.startTime)}return NaN}; uv.prototype.clear=function(){this.D=this.V=this.N=null;this.L=this.B=this.j=this.startTimeSecs=NaN;this.Z=!1};g.U(nW,g.p);nW.prototype.g4=function(){bEr(this);g.p.prototype.g4.call(this)};var j89=/[?&]cpn=/;g.U(Rb,g.p);Rb.prototype.flush=function(){var Z={};this.D&&(Z.pe=this.D);this.L.length>0&&(Z.pt=this.L.join("."));this.L=[];return Z}; Rb.prototype.stop=function(){var Z=this,I,d,Y;return g.h(function(T){if(T.L==1)return g.ez(T,2),g.m(T,(I=Z.N)==null?void 0:I.stop(),4);if(T.L!=2)return(d=T.D)&&Z.logTrace(d),g.gE(T,0);Y=g.Bj(T);Z.D=KsB(Y.message);g.v6(T)})}; Rb.prototype.logTrace=function(Z){this.encoder.reset();this.encoder.add(1);this.encoder.add(Z.resources.length);for(var I=g.t(Z.resources),d=I.next();!d.done;d=I.next()){d=d.value.replace("https://www.youtube.com/s/","");this.encoder.add(d.length);for(var Y=0;Y=0?Z:g.NC(this.provider),this.Ns?gwt.has(this.JZ)&&(this.L.size||(this.JZ==="PL"?Z>=this.D+30:Z<=this.LS+30||Z>=this.D+1200&&Z<=this.LS+86400))&&(g.Vt(this,Z,"vps",[this.JZ]),this.D=Z):["PL","B","S"].indexOf(this.JZ)>-1&&(this.L.size||Z>=this.D+30)&&(g.Vt(this,Z,"vps",[this.JZ]),this.D=Z),this.L.size)){this.sequenceNumber===7E3&&g.uL(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){FA(this,Z);var I=this.provider.t5.qY(); I=g.t(I);for(var d=I.next();!d.done;d=I.next())d=d.value,this.D1(d.key,d.value);I=Z;d=this.provider.t5.bU();var Y=d.droppedVideoFrames||0,T=d.totalVideoFrames||0,f=Y-this.OW,P=T&&!this.T$;Y>d.totalVideoFrames||f>5E3?$Ld(this,"html5.badframedropcount","df."+Y+";tf."+d.totalVideoFrames):(f>0||P)&&g.Vt(this,I,"df",[f]);this.OW=Y;this.T$=T;this.X>0&&(g.Vt(this,Z,"glf",[this.X]),this.X=0);Y7.isActive()&&(Z=Y7.Aj(),Object.keys(Z).length>0&&this.D1("profile",Z));this.SK&&q5(this,"lwnmow");this.provider.U.Vy()&& this.provider.Y("html5_record_now")&&this.D1("now",{wt:(0,g.o8)()});Z={};this.provider.videoData.D&&(Z.fmt=this.provider.videoData.D.itag,(I=this.provider.videoData.N)&&I.itag!==Z.fmt&&(Z.afmt=I.itag));Z.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(Z.adcpn=this.adCpn);this.ip&&(Z.addocid=this.ip);this.contentCpn&&(Z.ccpn=this.contentCpn);this.Bj&&(Z.cdocid=this.Bj);this.provider.videoData.cotn&&(Z.cotn=this.provider.videoData.cotn);Z.el=l3(this.provider.videoData);Z.content_v=IU(this.provider.videoData); Z.ns=this.provider.U.LS;Z.fexp=j5E(this.provider.U.experiments).toString();Z.cl=(813518696).toString();(I=this.provider.videoData.adFormat||this.adFormat)&&(Z.adformat=I);(I=e$(this.provider.videoData))&&(Z.live=I);this.provider.videoData.pF()&&(Z.drm=1,this.provider.videoData.B&&(Z.drm_system=zKL[this.provider.videoData.B.flavor]||0),this.provider.videoData.drmProduct&&(Z.drm_product=this.provider.videoData.drmProduct));Vz()&&this.provider.videoData.j&&(Z.ctt=this.provider.videoData.j,Z.cttype=this.provider.videoData.IU, this.provider.videoData.mdxEnvironment&&(Z.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(Z.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.VT&&(Z.dai_fallback="1")):this.provider.videoData.uQ?Z.dai="cs":this.provider.videoData.AT&&(Z.dai="disabled");Z.seq=this.sequenceNumber++;if(this.provider.videoData.bZ){if(I=this.provider.videoData.bZ,Z&&I)for(I.ns==="3pp"&&(Z.ns="3pp"),this.Gv.has(I.ns)&&q5(this,"hbps"), I.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=I.shbpslc),this.provider.U.experiments.CS("html5_use_server_qoe_el_value")&&this.d4.delete("el"),d=g.t(Object.keys(I)),Y=d.next();!Y.done;Y=d.next())Y=Y.value,this.d4.has(Y)||(Z[Y]=I[Y])}else Z.event="streamingstats",Z.docid=this.provider.videoData.videoId,Z.ei=this.provider.videoData.eventId;this.isEmbargoed&&(Z.embargoed="1");Object.assign(Z,this.provider.U.L);if(I=Z.seq)I={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+I, serializedWatchEndpointLoggingContext:this.provider.videoData.W5},this.serializedHouseBrandPlayerServiceLoggingContext&&(I.serializedHouseBrandPlayerServiceLoggingContext=ew(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(I.playerResponseCpn=this.provider.videoData.playerResponseCpn),sb.length&&(I.decoderInfo=sb),this.remoteControlMode&&(I.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(I.remoteConnectedDevices= this.remoteConnectedDevices),I=g.Xt(I,iiL),I=g.Bg(I,4),this.L.set("qclc",[I]);Z=g.gq("//"+this.provider.U.fW+"/api/stats/qoe",Z);d=I="";Y=g.t(this.L.entries());for(T=Y.next();!T.done;T=Y.next())f=g.t(T.value),T=f.next().value,f=f.next().value,P=void 0,(P=f)!=null&&P.join&&(T="&"+T+"="+f.join(","),T.length>100?d+=T:I+=T);I_J(this,Z+I,d.replace(/ /g,"%20"))}this.L.clear()}}; g.n.j5=function(Z){this.SK=Z}; g.n.Hf=function(){if(this.provider.videoData.B){var Z=this.provider.videoData.B;q5(this,"eme-"+(Z.keySystemAccess?"final":oa(Z)?"ms":kZ(Z)?"ytfp":ga9(Z)?"safarifp":"nonfinal"))}}; g.n.lW=vF(53);g.n.pw=function(Z){this.isEmbargoed=Z}; g.n.G9=vF(30);g.n.yQ=vF(36);g.n.onPlaybackRateChange=function(Z){var I=g.NC(this.provider);Z&&Z!==this.M8&&(g.Vt(this,I,"rate",[Z]),this.M8=Z);this.Ns||this.reportStats(I)}; g.n.Kw=vF(24);g.n.getPlayerState=function(Z){if(g.b(Z,128))return"ER";if(g.b(Z,2048))return"B";if(g.b(Z,512))return"SU";if(g.b(Z,16)||g.b(Z,32))return"S";if(Z.isOrWillBePlaying()&&g.b(Z,64))return"B";var I=Msv[sC(Z)];g.RK(this.provider.U)&&I==="B"&&this.provider.t5.getVisibilityState()===3&&(I="SU");I==="B"&&g.b(Z,4)&&(I="PB");return I}; g.n.y_=function(Z){var I=g.NC(this.provider);g.Vt(this,I,"vfi",[Z===0?"":""+Z,Z===0?"A":"M"])}; g.n.g4=function(){g.p.prototype.g4.call(this);g.g0(this.kS);g.g0(this.eK)}; g.n.c8=function(Z){this.isOffline=Z;g.Vt(this,g.NC(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.n.D1=function(Z,I,d){var Y=this.En.indexOf(Z)!==-1;Y||this.En.push(Z);if(!d||!Y){I=typeof I!=="string"?VQ(I):I;I=u4B(I);if(!d&&!/^t[.]/.test(I)){var T=g.NC(this.provider)*1E3;I="t."+T.toFixed()+";"+I}yV(this,"ctmp",Z+":"+I);m7d(this);return T}}; g.n.GE=function(Z,I,d){this.B={Bu5:Number(this.D1("glrem",{nst:Z.toFixed(),rem:I.toFixed(),ca:+d})),le:Z,pbr:I,isAd:d}}; g.n.ob=function(Z,I,d){g.Vt(this,g.NC(this.provider),"ad_playback",[Z,I,d])}; g.n.e8=function(Z,I){var d=g.NC(this.provider)*1E3;yV(this,"daism","t."+d.toFixed(0)+";smw."+(Z*1E3).toFixed(0)+";smo."+(I*1E3).toFixed(0))}; g.n.resume=function(){var Z=this;isNaN(this.kS)?yc9(this):this.kS=g.ly(function(){Z.reportStats()},1E4)}; var n1={},Msv=(n1[5]="N",n1[-1]="N",n1[3]="B",n1[0]="EN",n1[2]="PA",n1[1]="PL",n1[-1E3]="ER",n1[1E3]="N",n1),gwt=new Set(["PL","B","S"]),sb=[];g.U(g.wy,g.p);g.n=g.wy.prototype;g.n.initialize=function(Z,I,d){Z=Z||0;this.policy.L||(I=gBD(this.L),bG(this.t5,new H3(I.video,I.reason)),this.t5.vF(new H3(I.audio,I.reason)));this.policy.L&&lM(this);this.u5.isManifestless&&EJa(this.j);this.X&&yT9(this.X,this.videoTrack.L);I=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var Y=!this.u5.isManifestless;this.policy.Uv&&(Y=Y||this.u5.uu);if(!this.policy.j7||this.policy.Hk)this.currentTime=Y?Z:I;this.policy.kS&&this.seek(this.getCurrentTime(),{}).LA(function(){}); if(this.policy.L){var T;((T=this.LS)==null?0:bdu(T,this.FQ()||""))&&mZB(this)&&pHD(this,this.videoTrack)&&pHD(this,this.audioTrack)&&(err(this.D,this.LS),this.policy.B&&JX7(this))}else this.Ns&&(vW$(this,this.videoTrack),vW$(this,this.audioTrack),bDd(this.Ns),delete this.Ns);d?(KZJ(this,!1),g.Zy(this.y0)):(Z=this.getCurrentTime()===0,te(this.j,this.videoTrack,this.videoTrack.L,Z),te(this.j,this.audioTrack,this.audioTrack.L,Z),this.policy.L&&f49(this.D,{EF:1}),this.policy.kS||this.seek(this.getCurrentTime(), {}).LA(function(){}),this.timing.tick("gv")); (this.u5.KN||this.u5.jo||this.u5.fS||this.u5.Yl||this.u5.Hk)&&this.t5.P8(this.u5)}; g.n.resume=function(){if(this.isSuspended||this.Yb){this.bC=this.Yb=this.isSuspended=!1;try{this.Nc()}catch(Z){g.nl(Z)}}}; g.n.gW=function(){return!this.policy.vg}; g.n.Ea=function(Z,I){Z=Z===void 0?!1:Z;I=I===void 0?!1:I;cwO(this);this.t5.qj()&&(this.V=NaN);Z?(this.policy.mJ&&this.D1("loader",{setsmb:1}),this.policy.fS=!0,this.IL()):(KZJ(this,!1),I||this.IL())}; g.n.setAudioTrack=function(Z,I,d){d=d===void 0?!1:d;if(!this.OZ()){var Y=!isNaN(I);d&&Y&&(this.audioTrack.kS=Date.now(),this.policy.Vf&&(this.UZ=!0));d=this.t5.qj()&&!this.t5.getVideoData().In;if(this.policy.L){var T=this.N.uj(Z.id,Y);this.t5.vF(T)}else T=this.L,T.D=T.u5.L[Z.id],T.V=T.D,T=new Ng(T.V,T.Z,Y?"t":"m"),this.t5.vF(new H3(T.audio,T.reason));Y?(this.Yl=Date.now(),Y=this.audioTrack.L.index.Cl(I),this.D1("setAudio",{id:Z.id,cmt:I,sq:Y}),Y>=0&&(Z=this.policy.O$?Y+1:Y,this.policy.L&&this.Ha(!0, "mosaic"),og(this.audioTrack,Z,NaN,NaN),!this.policy.Tx&&this.u5.isLive&&jg(this.u5,Z,!1))):d||this.t5.Zo()}}; g.n.setPlaybackRate=function(Z){Z!==this.In.getPlaybackRate()&&this.In.setPlaybackRate(Z)}; g.n.eZ=function(Z){var I=this.D.j;this.D.s7(Z);this.D1("scfidc",{curr:W9(I),"new":W9(Z)});Z&&W9(Z)!==W9(I)&&(this.Ha(!0,"caption change"),this.Nc())}; g.n.Po=function(Z){this.D.JC(Z)}; g.n.QE=function(Z){Z.L.info.iT()?this.t5.vF(Z):bG(this.t5,Z)}; g.n.Cn=function(Z){s0(Z.e7[Z.e7.length-1])&&c3(this,Xy$(this.L,Z.e7[0].L))}; g.n.EY=function(){return this.t5.EY()}; g.n.lN=function(){return this.t5.lN()}; g.n.lL=function(Z){this.t5.C().Vy()&&this.D1("sps",{status:Z.UL||""});if(Z.UL===1)this.t5.videoData.V$=0;else if(Z.UL===2||Z.UL===3){var I=!1;if(Z.UL===3){I=this.t5.yn();var d;this.En=(d=Z.bN7)!=null?d:Infinity;this.t5.videoData.V$=I+1;(I=se(this))&&this.Ff(!0)}this.t5.s6(!0,I)}}; g.n.gI=function(){return this.t5.gI()}; g.n.Rt=function(){return this.t5.Rt()}; g.n.dY=function(Z){this.t5.dY(Z)}; g.n.Wy5=function(){var Z,I=(Z=this.t5.bQ())==null?void 0:Z.getCurrentTime();I?this.t5.D1("rms",{cta:I}):g.Zy(this.o4)}; g.n.Nc=function(){NY9(this);if(this.Fm&&rZ(this.Fm)&&!this.Fm.Fr()&&(!this.policy.j7||isFinite(this.getCurrentTime()))){var Z=oi(this.videoTrack);Z=this.policy.KG&&Z&&Z.RL();this.u5.isManifestless&&this.u5.N&&tJ(this.u5)?(this.V=tJ(this.u5),this.Fm.cT(this.V)):nS(this.u5)&&!Z?isNaN(this.V)?(this.V=this.getCurrentTime()+3600,this.Fm.cT(this.V)):this.V<=this.getCurrentTime()+1800&&(this.V=Math.max(this.V+1800,this.getCurrentTime()+3600),this.Fm.cT(this.V)):this.Fm.isView||(Z=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.V)||this.V!==Z)&&Z>0&&(this.Fm.cT(Z),this.V=Z))}if(!this.OZ())if(gI(this.u5)&&this.u5.q_()){var I=this.u5;this.handleError("manifest.net.retryexhausted",I.d4?{rc:I.WE}:{rc:I.WE.toString()},1)}else if(this.policy.L)a:{try{t0(this.D);this.u5.isManifestless&&this.policy.B&&Z0(this.Of);var d;((d=this.Fm)==null?0:Wp(d))&&this.YB();f49(this.D);if(sk(this)&&this.mJ){var Y=this.D,T=this.mJ,f=T.D.M1;if(f===void 0?0:f>=0&&T.L===null){Y.t5.On("ismp_a");var P=T.D; var O=P.M1;if(O===void 0)var a=!1;else{var W=P.f9?Y.t5.R6(O):O,e;if(e=!Y.loader.Kv(W)&&TU$(Y,Y.J5)){var B=Y.t5.getCurrentTime()*1E3,w=mru(Y,B),V=w.O3;e=w.Qp>=7E3&&V>=7E3}a=e}if(a){var N=TJB(Y,P);Y.policy.Zu>0&&Y.J5.eA++;N&&(T.L=N,Y.t5.On("ismp_rc"))}}}}catch(A){g.uL(A);I=A;if(I.message.includes("changeType")){this.D1("ctype",{exp:I.name,msg:I.message,s:I.stack});break a}this.handleError("fmt.unplayable",{exp:I.name,msg:I.message,s:I.stack,trg:"sabrslicerqt"},1)}RMB(this);g.Zy(this.y5)}else if(!this.u5.D|| !vdB(this.videoTrack)&&!vdB(this.audioTrack)||(this.videoTrack.B||this.audioTrack.B)&&this.policy.I0?d=!1:(this.IL(),this.t5.seekTo(Infinity,{H$:"checkLoaderTracksSync",j3:!0}),d=!0),!d){NY9(this);this.u5.isManifestless&&(Gcd(this.videoTrack),Gcd(this.audioTrack),Z0(this.Of),(d=fM(this.videoTrack))&&d.L&&(d=d.L.Z&&!this.policy.Ym,this.D1(d===this.policy.X.TJ?"strm":"strmbug",{strm:d,sfmp4:this.policy.X.TJ,dfs:this.policy.Ym},!0)));if(this.Fm)this.YB();else if(this.policy.N){var q;d=!1;if(this.policy.n2)for(Y= g.t([this.videoTrack,this.audioTrack]),T=Y.next();!T.done;T=Y.next()){f=T.value;for(T=fM(f);T&&f.Rw()!==oi(f);T=fM(f))f.yZ(T);d=d||!!T}else(I=fM(this.videoTrack))&&this.videoTrack.yZ(I),(q=fM(this.audioTrack))&&this.audioTrack.yZ(q);jP(this.videoTrack)&&jP(this.audioTrack)||(I||q||d)&&L8(this)}D$D(this);te(this.j,this.videoTrack,this.videoTrack.L,!1);te(this.j,this.audioTrack,this.audioTrack.L,!1);if(!this.policy.mx&&(I=this.videoTrack,Y=this.audioTrack,(!this.Fm||rZ(this.Fm)&&!this.policy.ir)&&!this.Of.isSeeking()&& (this.policy.L||TO(I)&&I.L.SD()&&this.L.LS)))a:{if(q=this.getCurrentTime(),d=this.In,Y=SD(d,I.L.info.pS,Y.L.info.pS,0),T=qy(d.Bk)+Y/wG(d.Bk),q+=Math.max(T,T+d.policy.MR-Y/I.L.info.pS),I.Z.length){if(I.Z[0].info.e7[0].startTime<=q)break a;G5(I)}d=I.N;for(Y=d.D.length-1;Y>=0;Y--)d.D[Y].info.startTime>q&&d.D.pop();$7E(I);I.D&&q5&&O.LS.shift();I=I.YS;var a;if((a=this.t5.getVideoData())==null?0:a.enableServerStitchedDai)a=zJB(this.audioTrack,I),d=zJB(this.videoTrack,I),a!==0&&d!==0&&a!==d&&this.handleError("ssdai.avsync",{sq:I,a:a,v:d},0)}}; g.n.uq=function(Z,I,d,Y){Z.info.video&&this.Z.uq(I,d,Y)}; g.n.YK=function(Z){this.L.YK(Z)}; g.n.GQ=vF(12);g.n.Lh=function(){if(g.b(this.t5.getPlayerState(),8)){var Z,I,d=(I=(Z=this.t5.bQ())==null?void 0:Z.getCurrentTime())!=null?I:this.t5.getCurrentTime(),Y;(Y=this.J5)==null||UUB(Y,d)}var T;(T=this.eK)==null||g.Zy(T)}; g.n.z1=function(){return this.videoTrack.V||this.audioTrack.V}; g.n.seek=function(Z,I){if(this.OZ())return ZD();if(this.z1())return ZD("seeking to head");if(this.policy.kS&&!isFinite(Z))return $4E(this.Of),g.wL(Infinity);NY9(this);lM(this);this.policy.L||D$D(this,Z);this.Fm&&this.Fm.L&&this.Fm.D&&!this.t5.getVideoData().CG&&(this.Fm.L.isLocked()||this.Fm.D.isLocked())&&this.t5.Zo({reattachOnLockedBuffer:1,vsb:""+this.Fm.D.isLocked(),asb:""+this.Fm.L.isLocked()});var d=this.getCurrentTime(),Y=this.Of.seek(Z,I);if(!this.policy.j7||this.policy.Hk)this.currentTime= Y;u7(this.Z,Z,d,this.policy.c6&&!I.fK);L8(this);return g.wL(Y)}; g.n.gt=function(Z){return this.policy.L&&this.D.gt(Z)}; g.n.Eu=function(Z){return this.D.Eu(Z)}; g.n.Ha=function(Z,I){this.D.Ha(Z,I)}; g.n.getCurrentTime=function(){if(this.policy.j7){var Z=this.Fx()||0;return this.t5.getCurrentTime(!0)-Z}return this.currentTime}; g.n.sX=function(){return this.audioTrack.L.info}; g.n.Iw=function(){return this.videoTrack.L.info}; g.n.vW=function(){return this.audioTrack.L.info.Pj}; g.n.hd=function(){return this.videoTrack.L.info.Pj}; g.n.g4=function(){try{this.Ea(),G5(this.audioTrack),G5(this.videoTrack),R8(this.audioTrack),R8(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.p.prototype.g4.call(this)}catch(Z){g.nl(Z)}}; g.n.handleError=function(Z,I,d){d=d===void 0?0:d;var Y=VY(d);Z==="fmt.unplayable"&&this.u5.isLive&&(this.policy.Qi=!1,tX$(this.u5));I=new g.dj(Z,I,d);g.Hc(this);VQ(I.details);this.t5.handleError(I);Z!=="html5.invalidstate"&&I.errorCode!=="fmt.unplayable"&&Z!=="fmt.unparseable"&&Y&&this.dispose()}; g.n.Gb=function(){var Z=oi(this.audioTrack),I=oi(this.videoTrack);Z={lct:this.getCurrentTime().toFixed(3),lsk:this.Of.isSeeking(),lmf:this.L.L.isLocked(),lbw:eP(this.schedule).toFixed(3),lhd:qy(this.schedule).toFixed(3),lst:((this.schedule.V.eD()||0)*1E9).toFixed(3),laa:Z?Z.m5():"",lva:I?I.m5():"",lar:this.audioTrack.D?this.audioTrack.D.m5():"",lvr:this.videoTrack.D?this.videoTrack.D.m5():"",laq:""+rC(this.audioTrack),lvq:""+rC(this.videoTrack)};this.Fm&&!this.Fm.bT()&&this.Fm.L&&this.Fm.D&&(Z.lab= cn(this.Fm.L.LN()),Z.lvb=cn(this.Fm.D.LN()));this.Bj&&(Z.lapt=((0,g.o8)()-this.Bj).toFixed(0),Z.lapr=PZn(this));this.w4&&(Z.lapmabht=((0,g.o8)()-this.w4).toFixed(0),Z.lapmabh=Er(this,this.audioTrack).toFixed(0));this.on&&(Z.lapmvbht=((0,g.o8)()-this.on).toFixed(0),Z.lapmvbh=Er(this,this.videoTrack).toFixed(0));this.sZ&&(Z.lapsdai=((0,g.o8)()-this.sZ).toFixed(0));return Z}; g.n.IL=function(){try{this.policy.L&&this.D.Ha(!1,"pending"),this.audioTrack.IL(),this.videoTrack.IL()}catch(Z){g.nl(Z)}this.policy.N=""}; g.n.Kv=function(Z){return this.videoTrack&&this.audioTrack?this.videoTrack.Kv(Z)&&this.audioTrack.Kv(Z):!0}; g.n.FX=function(){return Ch(this.In)}; g.n.D1=function(Z,I,d){this.t5.D1(Z,I,d===void 0?!1:d)}; g.n.FQ=function(){return this.t5.FQ()}; g.n.j3=function(Z,I){Z/=I;isNaN(this.timestampOffset)&&$mr(this,Z-Math.min(Z,this.policy.oh));return(Z-this.timestampOffset)*I}; g.n.Fx=function(){return this.timestampOffset}; g.n.isSeeking=function(){return this.Of.isSeeking()}; g.n.AL=function(){this.Z.AL()}; g.n.zR=function(Z,I,d){I=I===void 0?!1:I;d=d===void 0?{}:d;this.policy.L?this.N.zR(Z,I,d):this.L.zR(Z,I,d)}; g.n.GL=function(Z,I){if(this.policy.D&&(this.nK||this.isSeeking()))return this.D1("sdai",{ignoreSkip:"1",isSkip:this.nK,isSeek:this.isSeeking(),t:Z.toFixed(3)}),!1;var d=this.policy.D&&(this.policy.j||this.policy.d4),Y=this.videoTrack.L.index.Cl(Z),T=!1;if(d){var f;if(T=!((f=this.kS)==null||!f.hW(Z,Y,this.timestampOffset)))if(TE(this,Z,Z,Y),this.B){var P;(P=this.B)==null||P.hW(Z,Y)}}else this.B&&(T=!!this.Z.GL(Z,this.B));if(!T)return this.handleError("ad.skipfailed",{dec:!!this.B,t:Z.toFixed(3),sq:Y}), !1;this.policy.D&&(this.D1("sdai",{skipAdStd:"1"}),this.nK=!0);if(this.policy.sU){var O;(O=this.J5)==null||O.clear()}$mr(this,this.timestampOffset-I);L8(this);this.policy.D&&(tX$(this.u5),R8(this.audioTrack),R8(this.videoTrack),this.IL());return!0}; g.n.getManifest=function(){return this.u5}; g.n.isOffline=function(){return!!this.t5.getVideoData().cotn}; g.n.eW=function(Z,I){this.t5.eW(Z,I)}; g.n.rE=function(Z){if(this.policy.L)this.D.Ha(!0,"utc"),this.Nc();else{var I=this.t5.getVideoData().Fw;if(I){var d=this.j;d.FM=Z;d.Fw=I;kz(this)}}}; g.n.j8=function(Z){this.videoTrack.V=!1;this.audioTrack.V=!1;this.Of.L=!1;this.t5.j8(Z)}; g.n.vr=function(Z){this.Of.vr(Z-this.Fx())}; g.n.PZ=function(){this.t5.PZ()}; g.n.Ff=function(Z){Z!==this.policy.Mj&&((this.policy.Mj=Z)||this.Nc())}; g.n.Zo=function(Z){this.t5.Zo(Z)}; g.n.j5=function(Z){this.t5.j5(Z)}; g.n.G8=function(Z,I,d){var Y;(Y=this.kS)==null||Y.G8(Z,I,d);this.policy.j&&(this.D.LS=void 0,this.Nc())}; g.n.pK=function(Z){var I;(I=this.kS)==null||I.pK(Z)}; g.n.hg=function(Z,I){var d;(d=this.kS)==null||d.hg(Z,I)}; g.n.yn=function(){return this.t5.yn()}; g.n.z8=function(Z,I){if(this.policy.j){var d,Y=(d=Z.Jn)==null?void 0:d[0],T,f,P;this.D1("clidai",{onqlst:1,len:((T=Z.Jn)==null?void 0:T.length)||0,rn:I,evt:MSa(Y==null?void 0:(f=Y.Un)==null?void 0:f.event),cid:(Y==null?void 0:(P=Y.Un)==null?void 0:P.identifier)||"null",sq:(Y==null?void 0:Y.zJ)||-1,trk:(Y==null?void 0:Y.trackType)||"null"});var O;(O=this.kS)==null||O.z8(Z,I,this.B||void 0)}}; g.n.prefetchKeyPlay=function(Z,I){var d=this;sk(this)&&(this.mJ||(this.mJ=new kf(function(Y){d.t5.On(Y)}),g.z(this,this.mJ)),Ti9(this.mJ,{M1:Z, f9:I,EF:2}),this.Nc())};g.n=g.FY.prototype;g.n.Ua=function(Z,I,d,Y,T,f){return this.FT.Ua(Z,I,d,Y,T,f)}; g.n.P2=function(Z,I,d,Y,T,f){return this.FT.P2(Z,I,d,Y,T,f)}; g.n.MW=function(Z){return this.FT.MW(Z)}; g.n.ya=function(Z){this.FT.ya(Z)}; g.n.RQ=function(Z,I,d,Y){return this.FT.RQ(Z,I,d,Y)}; g.n.AL=function(){this.FT.AL()}; g.n.hW=function(Z,I){this.FT.hW(Z,I)}; g.n.Md=function(){this.FT.Md()}; g.n.wN=vF(56);g.n.w5=function(Z,I,d){this.FT.w5(Z,I,d)}; g.n.zy=vF(59);g.n.Bo=function(Z,I,d,Y,T,f,P,O,a){this.FT.Bo(Z,I,d,Y,T,f,P,O,a)}; g.n.U2=function(Z){this.FT.U2(Z)}; g.n.FV=function(Z){return this.FT.FV(Z)}; g.n.Bi=function(Z){return this.FT.Bi(Z)}; g.n.Da=function(Z){return this.FT.Da(Z)};g.U(qd,g.dx);g.U(cp,qd);cp.prototype.j=function(Z,I){if(Z&&I){var d=Number(F8(Z,"cpi"))*1+1;isNaN(d)||d<=0||dthis.Z&&(this.Z=d,g.xG(this.L)||(this.L={},this.N.stop(),this.D.stop())),this.L[I]=Z,g.Zy(this.D))}}; cp.prototype.B=function(){for(var Z=g.t(Object.keys(this.L)),I=Z.next();!I.done;I=Z.next()){var d=I.value;I=this.publish;for(var Y=this.Z,T=g.gB(this.L[d]),f=[],P=g.t(T[6].split("&")),O=P.next();!O.done;O=P.next())O=O.value,O.indexOf("cpi=")===0?f.push("cpi="+Y.toString()):O.indexOf("ek=")===0?f.push("ek="+g.fn(d)):f.push(O);T[6]="?"+f.join("&");d="skd://"+T.slice(2).join("");T=d.length*2;Y=new Uint8Array(T+4);Y[0]=T%256;Y[1]=(T-Y[0])/256;for(T=0;T0)for(var d=g.t(this.L),Y=d.next();!Y.done;Y=d.next())if(I===Y.value.info.cryptoPeriodIndex){I=!0;break a}I=!1}if(!I){I=(0,g.o8)();a:{d=Z.cryptoPeriodIndex;if(!isNaN(d)){Y=g.t(this.Z.values());for(var T=Y.next();!T.done;T=Y.next())if(Math.abs(T.value.cryptoPeriodIndex-d)<=1){d=!0;break a}}d=!1}d?(d=Z.L,d=Math.max(0,Math.random()*((isNaN(d)?120:d)-30))*1E3):d=0;this.publish("log_qoe",{wvagt:"delay."+d,cpi:Z.cryptoPeriodIndex,reqlen:this.L.length}); d<=0?g6$(this,Z):(this.L.push({time:I+d,info:Z}),g.Zy(this.D,d))}}; Sb.prototype.g4=function(){this.L=[];qd.prototype.g4.call(this)};var hw={},joi=(hw.DRM_TRACK_TYPE_AUDIO="AUDIO",hw.DRM_TRACK_TYPE_SD="SD",hw.DRM_TRACK_TYPE_HD="HD",hw.DRM_TRACK_TYPE_UHD1="UHD1",hw);g.U(NGJ,g.p);g.U(cKa,g.dx);g.n=cKa.prototype;g.n.ow=function(Z){var I=this;if(!(this.OZ()||Z.size<=0)){var d={};Z.forEach(function(Y,T){var f=vT(I.D)?T:Y;T=new Uint8Array(vT(I.D)?Y:T);vT(I.D)&&ahW(T);Y=g.Bg(T,4);ahW(T);T=g.Bg(T,4);I.L[Y]?I.L[Y].status=f:I.L[T]?I.L[T].status=f:I.L[Y]={type:"",status:f};GdO(I,I.L[Y].type,d)}); JJr(this,",");yy(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.n.error=function(Z,I,d,Y){this.OZ()||(this.publish("licenseerror",Z,I,d,Y),Z==="drm.provision"&&(Z=(Date.now()-this.j)/1E3,this.j=NaN,this.publish("ctmp","provf",{et:Z.toFixed(3)})));VY(I)&&this.dispose()}; g.n.shouldRetry=function(Z,I){return!Z&&this.requestNumber===I.requestNumber}; g.n.g4=function(){this.L={};g.dx.prototype.g4.call(this)}; g.n.Gb=function(){var Z={ctype:this.X.contentType||"",length:this.X.initData.length,requestedKeyIds:this.Ns,cryptoPeriodIndex:this.cryptoPeriodIndex};this.Z&&(Z.keyStatuses=this.L);return Z}; g.n.getInfo=function(){var Z=this.N.join();if(uG(this)){var I=new Set,d;for(d in this.L)this.L[d].status!=="usable"&&I.add(this.L[d].type);Z+="/UKS."+Array.from(I)}return Z+="/"+this.cryptoPeriodIndex}; g.n.VI=function(){return this.url};g.U(J9,g.p);g.n=J9.prototype;g.n.VK=function(Z){if(this.B){var I=Z.messageType||"license-request";this.B(new Uint8Array(Z.message),I)}}; g.n.ow=function(){this.V&&this.V(this.L.keyStatuses)}; g.n.onClosed=function(){this.OZ()||g.y1("xboxone")&&this.Z&&this.Z("closedShouldNotRetry")}; g.n.Mx=function(Z){this.B&&this.B(Z.message,"license-request")}; g.n.g3=function(Z){if(this.Z){if(this.D){var I=this.D.error.code;Z=this.D.error.systemCode}else I=Z.errorCode,Z=Z.systemCode;this.Z("t.prefixedKeyError;c."+I+";sc."+Z,I,Z)}}; g.n.Zr=function(){this.j&&this.j()}; g.n.update=function(Z){var I=this;if(this.L)return this.L.update(Z).then(null,IE(function(d){tMn(I,"t.update",d)})); this.D?this.D.update(Z):this.element.addKey?this.element.addKey(this.X.keySystem,Z,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.X.keySystem,Z,this.initData,this.sessionId);return Fl()}; g.n.g4=function(){this.L&&(this.In?this.L.close().catch(g.uL):this.L.close());this.element=null;g.p.prototype.g4.call(this)};g.U(jQ,g.p);g.n=jQ.prototype;g.n.setServerCertificate=function(){return this.D.setServerCertificate?this.L.flavor==="widevine"&&this.L.xk?this.D.setServerCertificate(this.L.xk):dH(this.L)&&this.L.w4?this.D.setServerCertificate(this.L.w4):null:null}; g.n.createSession=function(Z,I){var d=Z.initData;if(this.L.keySystemAccess){I&&I("createsession");var Y=this.D.createSession();kZ(this.L)?d=TAr(d,this.L.w4):dH(this.L)&&(d=cNB(d)||new Uint8Array(0));I&&I("genreq");Z=Y.generateRequest(Z.contentType,d);var T=new J9(null,null,null,Y,null,this.V);Z.then(function(){I&&I("genreqsuccess")},IE(function(P){tMn(T,"t.generateRequest",P)})); return T}if(oa(this.L))return MQJ(this,d);if(ga9(this.L))return oal(this,d);if((Y=this.element)==null?0:Y.generateKeyRequest)this.element.generateKeyRequest(this.L.keySystem,d);else{var f;(f=this.element)==null||f.webkitGenerateKeyRequest(this.L.keySystem,d)}return this.N=new J9(this.element,this.L,d,null,null,this.V)}; g.n.w7=function(Z){var I=Xxl(this,Z);I&&I.Mx(Z)}; g.n.a$=function(Z){var I=Xxl(this,Z);I&&I.g3(Z)}; g.n.uM=function(Z){var I=Xxl(this,Z);I&&I.Zr(Z)}; g.n.getMetrics=function(){var Z=null;if(this.D&&this.D.getMetrics)try{Z=this.D.getMetrics()}catch(I){}return Z}; g.n.g4=function(){this.Z=this.D=null;var Z;(Z=this.N)==null||Z.dispose();Z=g.t(Object.values(this.j));for(var I=Z.next();!I.done;I=Z.next())I.value.dispose();this.j={};g.p.prototype.g4.call(this);delete this.element};g.n=Nc.prototype;g.n.get=function(Z){Z=this.findIndex(Z);return Z!==-1?this.values[Z]:null}; g.n.remove=function(Z){Z=this.findIndex(Z);Z!==-1&&(this.keys.splice(Z,1),this.values.splice(Z,1))}; g.n.removeAll=function(){this.keys=[];this.values=[]}; g.n.set=function(Z,I){var d=this.findIndex(Z);d!==-1?this.values[d]=I:(this.keys.push(Z),this.values.push(I))}; g.n.findIndex=function(Z){return g.R9(this.keys,function(I){return g.WP(Z,I)})};g.U(td,g.dx);g.n=td.prototype;g.n.J9m=function(Z){this.wd({onecpt:1});Z.initData&&aB7(this,new Uint8Array(Z.initData),Z.initDataType)}; g.n.fUm=function(Z){this.wd({onndky:1});aB7(this,Z.initData,Z.contentType)}; g.n.X4=function(Z){this.wd({onneedkeyinfo:1});this.U.Y("html5_eme_loader_sync")&&(this.V.get(Z.initData)||this.V.set(Z.initData,Z));AA7(this,Z)}; g.n.Y_=function(Z){this.Z.push(Z);FL(this)}; g.n.createSession=function(Z){var I=FWO(this)?sJn(Z):g.Bg(Z.initData);this.D.get(I);this.Bj=!0;Z=new cKa(this.videoData,this.U,Z,this.drmSessionId);this.D.set(I,Z);Z.subscribe("ctmp",this.cG,this);Z.subscribe("keystatuseschange",this.ow,this);Z.subscribe("licenseerror",this.j1,this);Z.subscribe("newlicense",this.Ld,this);Z.subscribe("newsession",this.Dr,this);Z.subscribe("sessionready",this.Qk,this);Z.subscribe("fairplay_next_need_key_info",this.Us,this);this.U.Y("html5_enable_vp9_fairplay")&&Z.subscribe("qualitychange", this.G6,this);Z.subscribe("sabrlicenseconstraint",this.oFj,this);PdO(Z,this.N)}; g.n.Ld=function(Z){this.OZ()||(this.wd({onnelcswhb:1}),Z&&!this.heartbeatParams&&(this.heartbeatParams=Z,this.publish("heartbeatparams",Z)))}; g.n.Dr=function(){this.OZ()||(this.wd({newlcssn:1}),this.Z.shift(),this.Bj=!1,FL(this))}; g.n.Qk=function(){if(oa(this.L)&&(this.wd({onsnrdy:1}),this.mJ--,this.mJ===0)){var Z=this.LS,I,d;(I=Z.element)==null||(d=I.msSetMediaKeys)==null||d.call(I,Z.Z)}}; g.n.ow=function(Z){if(!this.OZ()){this.j7||(this.j7=!0,this.U.Vy()&&$ta(this));this.wd({onksch:1});var I=this.G6;if(!uG(Z)&&g.sY&&Z.D.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var d="large";else{d=[];var Y=!0;if(uG(Z))for(var T=g.t(Object.keys(Z.L)),f=T.next();!f.done;f=T.next())f=f.value,Z.L[f].status==="usable"&&d.push(Z.L[f].type),Z.L[f].status!=="unknown"&&(Y=!1);if(!uG(Z)||Y)d=Z.N;d=X4O(d)}I.call(this,d);if(!uG(Z))for(I={},d=g.t(Z.N),Y=d.next();!Y.done;Y=d.next())GdO(Z, Y.value,I);this.videoData.authorizedFormats=Z.authorizedFormats;this.publish("keystatuseschange",Z)}}; g.n.cG=function(Z,I){this.OZ()||this.publish("ctmp",Z,I)}; g.n.Us=function(Z,I){this.OZ()||this.publish("fairplay_next_need_key_info",Z,I)}; g.n.j1=function(Z,I,d,Y){this.OZ()||(this.videoData.Y("html5_log_drm_metrics_on_error")&&$ta(this),this.publish("licenseerror",Z,I,d,Y))}; g.n.Pv=function(){return this.X}; g.n.G6=function(Z){var I=g.J2("auto",Z,!1,"l");if(this.videoData.ZM){if(this.X.equals(I))return}else if(wOE(this.X,Z))return;this.X=I;this.publish("qualitychange");this.wd({updtlq:Z})}; g.n.oFj=function(Z){this.videoData.sabrLicenseConstraint=Z}; g.n.g4=function(){var Z,I;this.L.keySystemAccess&&this.element&&!((Z=this.mediaElement)==null?0:(I=Z.t5)==null?0:I.qj())&&(this.Ns?this.element.setMediaKeys(null).catch(g.uL):this.element.setMediaKeys(null));this.element=null;this.Z=[];Z=g.t(this.D.values());for(I=Z.next();!I.done;I=Z.next())I=I.value,I.unsubscribe("ctmp",this.cG,this),I.unsubscribe("keystatuseschange",this.ow,this),I.unsubscribe("licenseerror",this.j1,this),I.unsubscribe("newlicense",this.Ld,this),I.unsubscribe("newsession",this.Dr, this),I.unsubscribe("sessionready",this.Qk,this),I.unsubscribe("fairplay_next_need_key_info",this.Us,this),this.U.Y("html5_enable_vp9_fairplay")&&I.unsubscribe("qualitychange",this.G6,this),I.dispose();this.D.clear();this.j.removeAll();this.V.removeAll();this.heartbeatParams=null;g.dx.prototype.g4.call(this)}; g.n.Gb=function(){for(var Z={systemInfo:this.L.Gb(),sessions:[]},I=g.t(this.D.values()),d=I.next();!d.done;d=I.next())Z.sessions.push(d.value.Gb());return Z}; g.n.getInfo=function(){return this.D.size<=0?"no session":""+this.D.values().next().value.getInfo()+(this.B?"/KR":"")}; g.n.wd=function(Z,I){I=I===void 0?!1:I;this.OZ()||(VQ(Z),(this.U.Vy()||I)&&this.publish("ctmp","drmlog",Z))};var v9=!1;g.U(nV,g.p);g.n=nV.prototype;g.n.Ud=function(){return!!this.uX}; g.n.mN=function(){return this.D}; g.n.handleError=function(Z){var I=this;GNn(this,Z);var d;if(d=!((Z.errorCode==="html5.invalidstate"||Z.errorCode==="fmt.unplayable"||Z.errorCode==="fmt.unparseable")&&Hji(this,Z.errorCode,Z.details)))if(d=!jGO(this,Z))this.videoData.errorDetail==="7"&&g.RK(this.nS)?(YdJ(this,"innertube_player_reload_required"),d=!0):d=!1,d=!d;if(d)if(this.nS.LS!=="yt"&&bHi(this,Z)&&this.videoData.GR&&(0,g.o8)()/1E3>this.videoData.GR&&this.nS.LS==="hm"&&(d=Object.assign({e:Z.errorCode},Z.details),d.stalesigexp="1", d.expire=this.videoData.GR,d.init=this.videoData.CU/1E3,d.now=(0,g.o8)()/1E3,d.systelapsed=((0,g.o8)()-this.videoData.CU)/1E3,Z=new g.dj(Z.errorCode,d,2),this.t5.pj(Z.errorCode,2,"SIGNATURE_EXPIRED",VQ(Z.details))),VY(Z.severity)){var Y;d=(Y=this.t5.loader)==null?void 0:Y.L.L;if(this.nS.Y("html5_use_network_error_code_enums"))if(riB(Z)&&d&&d.isLocked())var T="FORMAT_UNAVAILABLE";else if(this.nS.j||Z.errorCode!=="auth"||Z.details.rc!==429)Z.errorCode==="ump.spsrejectfailure"&&(T="HTML5_SPS_UMP_STATUS_REJECTED"); else{T="TOO_MANY_REQUESTS";var f="6"}else riB(Z)&&d&&d.isLocked()?T="FORMAT_UNAVAILABLE":this.nS.j||Z.errorCode!=="auth"||Z.details.rc!=="429"?Z.errorCode==="ump.spsrejectfailure"&&(T="HTML5_SPS_UMP_STATUS_REJECTED"):(T="TOO_MANY_REQUESTS",f="6");this.t5.pj(Z.errorCode,Z.severity,T,VQ(Z.details),f)}else this.t5.publish("nonfatalerror",Z),Y=/^pp/.test(this.videoData.clientPlaybackNonce),this.nj(Z.errorCode,Z.details),Y&&Z.errorCode==="manifest.net.connect"&&(Z="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.o8)(),bk(Z,"manifest",function(P){I.j=!0;I.D1("pathprobe",P)},function(P){I.nj(P.errorCode,P.details)}))}; g.n.D1=function(Z,I){this.t5.wK.D1(Z,I)}; g.n.nj=function(Z,I){I=VQ(I);this.t5.wK.nj(Z,I)};mP.prototype.WX=function(Z){var I=Jzd(this);if(!Z)return{r3:nb,aI:nb,eq:nb,Kt:nb,E3:nb,bj:nb,k9:I};var d=nb;if(h8(I)||this.Y("html5_perf_cap_override_sticky"))d=oO(this,Z);return{r3:d,aI:H6l(this,Z),eq:b6O(this,Z),Kt:GPa(this,Z.videoData),E3:zeL(this,Z.videoData,Z),bj:WA(this,Z),k9:I}}; mP.prototype.pQ=function(Z){if(g.RK(this.U)&&Bw(this.U.B,wZ.HEIGHT))var I=Z.L.videoInfos[0].video.qualityOrdinal;else{var d=this.Qa(!!Z.L.L);Nv(Z.videoData)||yB(Z.videoData);Z=Z.L.videoInfos;if(Z.length){var Y=.85,T=Z[0].video;T.projectionType!=="MESH"&&T.projectionType!=="EQUIRECTANGULAR"&&T.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||HDn||(Y=.45);T=g.Q4(this.U.experiments,"html5_viewport_undersend_maximum");for(var f=0;f=0,stateAtSend:I,joinLatencySecs:f,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:Y,playerCanaryStage:T,isAd:this.provider.videoData.isAd(),liveMode:d,hasDrm:!!g.Pf(this.provider.videoData),isGapless:this.provider.videoData.V,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:j2(this.provider.videoData)};Z||g.g6("html5PlayerHealthEvent",I);this.Z=!0;this.dispose()}}; UZ.prototype.g4=function(){this.Z||this.send();window.removeEventListener("error",this.NK);window.removeEventListener("unhandledrejection",this.NK);g.p.prototype.g4.call(this)}; var rGW=/\bnet\b/;jF.prototype.update=function(){if(this.V){var Z=this.fF()||0,I=g.NC(this.provider);Z>=this.provider.t5.getDuration()-.1&&(this.previouslyEnded=!0);if(Z!==this.L||L7g(this,Z,I)){var d;if(!(d=ZI-this.TN+2||L7g(this,Z,I))){d=this.provider.t5.getVolume();var Y=d!==this.In,T=this.provider.t5.isMuted()?1:0;T!==this.X?(this.X=T,d=!0):(!Y||this.N>=0||(this.In=d,this.N=I),d=I-this.N,this.N>=0&&d>2?(this.N=-1,d=!0):d=!1)}d&&(gD(this),this.Z=Z);this.TN=I;this.L=Z}}}; jF.prototype.fF=function(){var Z=this.provider.t5.fF();return UU(this.provider.videoData)?Z+this.provider.t5.Fx():Z};yCn.prototype.send=function(Z){var I=this;if(!this.J5){var d=n5u(this),Y=g.gq(this.uri,d);this.U.Y("vss_through_gel_double")&&gpJ(Y);this.Bj&&!this.U.Y("html5_simplify_pings")?j0L(this,Y):UBB(this,Z).then(function(T){I.U.Y("html5_switch_vss_to_post")&&(T=T||{},T.method="POST");I.Bj&&(T=T||{},T.method="POST",T.postParams={atr:I.attestationResponse});pH(Y,T,{token:I.kS,wi:I.I0,mdxEnvironment:I.mdxEnvironment},I.U,Z,I.fS,I.isFinal&&I.aE||I.j7||I.Z&&I.wV)}); this.J5=!0}}; yCn.prototype.D=function(Z){Z===void 0&&(Z=NaN);return Number(Z.toFixed(3)).toString()}; var m2={},s2J=(m2.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,m2.LIVING_ROOM_APP_MODE_MAIN=1,m2.LIVING_ROOM_APP_MODE_KIDS=2,m2.LIVING_ROOM_APP_MODE_MUSIC=3,m2.LIVING_ROOM_APP_MODE_UNPLUGGED=4,m2.LIVING_ROOM_APP_MODE_GAMING=5,m2),q4={},FMJ=(q4.EMBEDDED_PLAYER_MODE_UNKNOWN=0,q4.EMBEDDED_PLAYER_MODE_DEFAULT=1,q4.EMBEDDED_PLAYER_MODE_PFP=2,q4.EMBEDDED_PLAYER_MODE_PFL=3,q4);g.U(RW,g.p);g.n=RW.prototype; g.n.lP=function(){if(!this.Z){this.provider.videoData.Km===16623&&g.uL(Error("Playback for EmbedPage"));var Z=mD(this,"playback");this.V=Mka(this);eXO(this.L);Z.V=sR(this);this.D>0&&(Z.L-=this.D);Z.send();if(this.provider.videoData.tL){Z=this.provider.U;var I=this.provider.videoData,d={html5:"1",video_id:I.videoId,cpn:I.clientPlaybackNonce,ei:I.eventId,ptk:I.tL,oid:I.mp,ptchn:I.zt,pltype:I.dC,content_v:IU(I)};I.P1&&Object.assign(d,{m:I.P1});Z=g.gq(Z.UI+"ptracking",d);keL(this,Z)}this.provider.videoData.UZ|| (gqO(this),Xnd(this));this.Z=!0;Z=this.L;Z.L=Z.fF();Z.TN=g.NC(Z.provider);!(Z.Z===0&&Z.L<5)&&Z.L-Z.Z>2&&(Z.Z=Z.L);Z.V=!0}}; g.n.onProgress=function(){this.L.update();Q$9(this)&&(gqO(this),Xnd(this))}; g.n.g4=function(){g.p.prototype.g4.call(this);FE(this);WuO(this.L)}; g.n.Gb=function(){return n5u(mD(this,"playback"))}; g.n.fl=function(Z){var I=mD(this,"engage");I.Ns=Z;return yqr(I,$nB(this.provider))};vfl.prototype.isEmpty=function(){return this.endTime===this.startTime};qc.prototype.Y=function(Z){return this.U.Y(Z)}; qc.prototype.getCurrentTime=function(){return this.t5.getCurrentTime()}; qc.prototype.fF=function(){return this.t5.fF()}; var Fju={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.U(g.yZ,g.p);g.n=g.yZ.prototype;g.n.lP=function(){this.L&&this.L.lP();this.D&&this.D.lP()}; g.n.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l4){var Z;(Z=this.Z.get(this.l4))==null||Z.onProgress()}else if(this.L)this.L.onProgress()}; g.n.pw=function(Z){this.qoe&&this.qoe.pw(Z)}; g.n.G9=vF(29);g.n.yQ=vF(35);g.n.e8=function(Z,I){this.qoe&&this.qoe.e8(Z,I)}; g.n.FL=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l4){var Z;(Z=this.Z.get(this.l4))!=null&&gD(Z.L)}else this.L&&gD(this.L.L)}; g.n.nj=function(Z,I){this.qoe&&$Ld(this.qoe,Z,I);if(this.D)this.D.onError(Z)}; g.n.y_=function(Z){var I;(I=this.qoe)==null||I.y_(Z)}; g.n.onPlaybackRateChange=function(Z){if(this.qoe)this.qoe.onPlaybackRateChange(Z);this.L&&gD(this.L.L)}; g.n.lW=vF(52);g.n.D1=function(Z,I,d){this.qoe&&this.qoe.D1(Z,I,d)}; g.n.GE=function(Z,I,d){this.qoe&&this.qoe.GE(Z,I,d)}; g.n.S5=function(Z){var I;(I=this.qoe)==null||I.S5(Z)}; g.n.P8=function(Z){var I;(I=this.qoe)==null||I.P8(Z)}; g.n.y4=function(Z,I,d,Y){var T;(T=this.qoe)==null||T.y4(Z,I,d,Y)}; g.n.j5=function(Z){this.qoe&&this.qoe.j5(Z)}; g.n.ob=function(Z,I,d){this.qoe&&this.qoe.ob(Z,I,d)}; g.n.Kw=vF(23);g.n.rN=function(){if(this.qoe)return this.qoe.rN()}; g.n.Gb=function(){if(this.provider.videoData.enableServerStitchedDai&&this.l4){var Z,I;return(I=(Z=this.Z.get(this.l4))==null?void 0:Z.Gb())!=null?I:{}}return this.L?this.L.Gb():{}}; g.n.CJ=function(){var Z;return(Z=this.qoe)==null?void 0:Z.CJ()}; g.n.tT=function(Z,I){var d;(d=this.qoe)==null||d.tT(Z,I)}; g.n.fl=function(Z){return this.L?this.L.fl(Z):function(){}}; g.n.getVideoData=function(){return this.provider.videoData}; g.n.resume=function(){this.qoe&&this.qoe.resume()};g.U(g.Jz,g.p);g.n=g.Jz.prototype;g.n.eM=function(Z,I){this.sync();I&&this.L.array.length>=2E3&&this.Hv("captions",1E4);I=this.L;if(Z.length>1&&Z.length>I.array.length)I.array=I.array.concat(Z),I.array.sort(I.L);else{Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())d=d.value,!I.array.length||I.L(d,I.array[I.array.length-1])>0?I.array.push(d):g.IA(I.array,d,I.L)}this.Z=NaN;this.sync()}; g.n.vB=function(Z){Z.length>1E4&&g.uL(new g.Wj("Over 10k cueRanges removal occurs with a sample: ",Z[0]));if(!this.OZ()){var I=new Set(Z);this.D=this.D.filter(function(d){return!I.has(d)}); J2J(this.L,I);this.sync()}}; g.n.zl=function(Z,I){if(!this.OZ()){var d=this.Rt().find(function(Y){return Y.id===I&&Y.namespace===Z}); d&&this.vB([d])}}; g.n.Hv=function(Z,I){var d=(isNaN(this.Z)?HKi(this):this.Z)-I;I=this.Rt().filter(function(Y){return Y.namespace===Z&&Y.endthis.L,f=g.b(d,8)&&g.b(d,16),P=this.t5.f6().isBackground()||d.isSuspended();z6(this,this.on,f&&!P,T,"qoe.slowseek",function(){},"timeout"); var O=isFinite(this.L);O=f&&O&&iP7(I,this.L);var a=!Y||Math.abs(Y-this.L)>10,W=this.U.Y("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),e=Y===0&&this.D&&[11,10].includes(this.D);z6(this,this.J5,O&&a&&!P&&(!W||!e),T,"qoe.slowseek",function(){I.seekTo(Z.L)},"set_cmt"); a=O&&Qb(I.cE(),this.L);var B=this.t5.loader;O=!B||B.gW();var w=function(){I.seekTo(Z.L+.001)}; z6(this,this.j7,a&&O&&!P,T,"qoe.slowseek",w,"jiggle_cmt");O=function(){return Z.t5.K6()}; z6(this,this.Tm,a&&!P,T,"qoe.slowseek",O,"new_elem");var V=cY(d);e=d.isBuffering();var N=I.cE(),q=OT(N,Y),A=q>=0&&N.end(q)>Y+5;a=V&&e&&A;W=this.t5.getVideoData();z6(this,this.mJ,Y<.002&&this.L<.002&&f&&g.RK(this.U)&&g.z1(W)&&!P,T,"qoe.slowseek",O,"slow_seek_shorts");z6(this,this.In,W.Zt()&&f&&!P&&!W.In,T,"qoe.slowseek",O,"slow_seek_gapless_shorts");z6(this,this.LS,a&&!P,V&&!e,"qoe.longrebuffer",w,"jiggle_cmt");z6(this,this.kS,a&&!P,V&&!e,"qoe.longrebuffer",O,"new_elem_nnr");if(B){var F=B.getCurrentTime(); f=I.bI();f=eF$(f,F);f=!B.isSeeking()&&Y===f;z6(this,this.SK,V&&e&&f&&!P,V&&!e&&!f,"qoe.longrebuffer",function(){I.seekTo(F)},"seek_to_loader")}f={}; w=OT(N,Math.max(Y-3.5,0));var J=w>=0&&Y>N.end(w)-1.1,v=w>=0&&w+1=0&&J&&v<11;f.close2edge=J;f.gapsize=v;f.buflen=N.length;this.D&&(f.seekSour=this.D);z6(this,this.Ns,V&&e&&!P,V&&!e,"qoe.longrebuffer",function(){},"timeout",f); f=d.isSuspended();f=this.t5.PS()&&!f;z6(this,this.V,f,!f,"qoe.start15s",function(){Z.t5.b4("ad")},"ads_preroll_timeout"); f=this.U.experiments.CS("html5_use_playback_rate_in_skip_slow_ad")?this.t5.getPlaybackRate()*1E3:1E3;q=Y-this.N5;z6(this,this.sZ,g.z1(W)&&B,V&&!e,"qoe.longrebuffer",function(){Z.t5.Zo()},"reset_media_source"); z6(this,this.w4,g.z1(W)&&B,V&&!e,"qoe.longrebuffer",O,"reset_media_element");this.N===0&&(this.j=Y);B=e&&this.L===0&&Y>1&&Y===this.j;z6(this,this.fS,g.z1(W)&&B,V&&!e,"qoe.slowseek",function(){I.seekTo(0)},"reseek_after_time_jump"); P=d.isOrWillBePlaying()&&!P;A=this.t5.HB()-Y<6&&!A&&this.t5.h6();z6(this,this.X,W.Zt()&&P&&e&&A,V&&!e,"qoe.longrebuffer",function(){Z.t5.K6(!1,!0)},"handoff_end_long_buffer_reload"); P=this.D===104||this.t5.Lq;d=fA(W)&&W.isAd()&&!W.In&&P&&(e||g.b(d,8)&&g.b(d,16));z6(this,this.d4,d,T,"qoe.start15s",O,"gapless_ad_slow_start");d=fA(W)&&!W.In&&P&&a;z6(this,this.y5,d,T,"qoe.longrebuffer",O,"gapless_slow_start");this.N=Y;this.B.start()}}; FP.prototype.nj=function(Z,I,d){I=this.Gb(I);I.wn=d;I.wdup=this.Z[Z]?"1":"0";this.t5.nj(new g.dj(Z,I));this.Z[Z]=!0}; FP.prototype.Gb=function(Z){Z=Object.assign(this.t5.Gb(!0),Z.Gb());this.L&&(Z.stt=this.L.toFixed(3));this.t5.getVideoData().isLivePlayback&&(Z.ct=this.t5.getCurrentTime().toFixed(3),Z.to=this.t5.Fx().toFixed(3));delete Z.uga;delete Z.euri;delete Z.referrer;delete Z.fexp;delete Z.vm;return Z}; ar.prototype.reset=function(){this.L=this.D=this.Z=this.startTimestamp=0;this.N=!1}; ar.prototype.test=function(Z){if(!this.B||this.D)return!1;if(!Z)return this.reset(),!1;Z=(0,g.o8)();if(!this.startTimestamp)this.startTimestamp=Z,this.Z=0;else if(this.Z>=this.B)return this.D=Z,!0;this.Z+=1;return!1}; ar.prototype.Gb=function(){var Z={},I=(0,g.o8)();this.startTimestamp&&(Z.wsd=(I-this.startTimestamp).toFixed());this.D&&(Z.wtd=(I-this.D).toFixed());this.L&&(Z.wssd=(I-this.L).toFixed());return Z};g.U(nA,g.p);g.n=nA.prototype;g.n.setMediaElement=function(Z){(this.mediaElement=Z)?(this.mediaElement&&(this.B||this.Z||!this.mediaElement.O2()||this.seekTo(.01,{H$:"seektimeline_setupMediaElement"})),s7(this)):dE(this)}; g.n.getCurrentTime=function(Z){Z=Z===void 0?!1:Z;if(cs(this.t5)){if(this.Y("html5_use_centralized_player_time")&&!Z&&!isNaN(this.j))return this.j;if(!isNaN(this.D))return this.D}else{if(this.Y("html5_use_centralized_player_time")&&!Z&&!isNaN(this.j)&&isFinite(this.j))return this.j;if(!isNaN(this.D)&&isFinite(this.D))return this.D}return this.mediaElement&&qvd(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.Z||0}; g.n.yV=function(){return this.J5}; g.n.fF=function(){return this.getCurrentTime()-this.Fx()}; g.n.rd=function(){return this.L?this.L.rd():Infinity}; g.n.isAtLiveHead=function(Z){if(!this.L)return!1;Z===void 0&&(Z=this.getCurrentTime());return dN(this.L,Z)}; g.n.QX=function(){return!!this.L&&this.L.QX()}; g.n.seekTo=function(Z,I){var d=I===void 0?{}:I;I=d.KE===void 0?!1:d.KE;var Y=d.Ei===void 0?0:d.Ei;var T=d.Lv===void 0?!1:d.Lv;var f=d.Ww===void 0?0:d.Ww;var P=d.H$===void 0?"":d.H$;var O=d.seekSource===void 0?void 0:d.seekSource;var a=d.j3===void 0?!1:d.j3;var W=d.fK===void 0?!1:d.fK;d=d.nO===void 0?!1:d.nO;a&&(Z+=this.Fx());j2(this.videoData)&&O===29&&(this.J5=void 0);a=Z=this.tZ())||!g.IS(this.videoData),q||(A={st:A,mst:this.tZ()},this.L&&this.Y("html5_high_res_seek_logging")&&(A.ht=this.L.rd(),A.adft=jU(this.L)),this.t5.D1("seeknotallowed",A)),A=q));if(!A)return this.N&&(this.N=null,ol(this)),g.wL(this.getCurrentTime());A=.005;W&&this.Y("html5_sabr_seek_no_shift_tolerance")&&(A=0);if(Math.abs(Z-this.D)<=A&&this.fS)return this.B;P&&(A=Z,this.U.Vy()||this.Y("html5_log_seek_reasons"))&& (P={reason:P,tgt:A},this.Y("html5_sabr_csdai_seek_log")&&(P.source=O),this.t5.D1("seekreason",P));O&&(this.LS.D=O);this.fS&&dE(this);this.B||(this.B=new HA);Z&&!isFinite(Z)&&sA(this,!1);(P=d||a)||(P=Z,P=!(this.videoData.isLivePlayback&&this.videoData.Z&&!this.videoData.Z.L&&!(this.mediaElement&&this.mediaElement.f0()>0&&d5(this.mediaElement)>0)||FI(this.videoData)&&this.p_()===this.tZ(!1)?0:isFinite(P)||!FI(this.videoData)));P||(Z=jx(this,Z,T));Z&&!isFinite(Z)&&sA(this,!1);this.Y("html5_use_centralized_player_time")? this.j=Z:this.D=this.Z=Z;this.w4=f;this.V=0;this.L&&(T=this.L,f=Z,eYE(T,f,!1),JfB(T,f));T=this.t5;f=Z;P={KE:I,seekSource:O};T.jJ.Z=f;d=T.ET;d.mediaTime=f;d.L=!0;P.KE&&T.t1(P);P=f>T.videoData.endSeconds&&f>T.videoData.limitedPlaybackDurationInSeconds;T.XZ&&P&&isFinite(f)&&Chr(T);fI.start&&Chr(this.t5);return this.B}; g.n.tZ=function(Z){if(!this.videoData.isLivePlayback)return this.t5.videoData.tZ();var I;return w5(this.videoData)&&((I=this.mediaElement)==null?0:I.isPaused())&&this.videoData.L?(Z=this.getCurrentTime(),sbD(this.xF(Z)*1E3)+Z):this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&j2(this.videoData)&&this.videoData.L?Z?this.videoData.L.Ns||0:this.videoData.L.gf||0:FI(this.videoData)&&this.videoData.Ns&&this.videoData.L?this.videoData.L.tZ()+this.timestampOffset:this.videoData.Z&&this.videoData.Z.L? !Z&&this.L?this.L.rd():this.t5.videoData.tZ()+this.timestampOffset:this.mediaElement?Bq()?sbD(this.mediaElement.Wp().getTime()):d5(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.n.p_=function(){if(this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&j2(this.videoData)){var Z;return((Z=this.videoData.L)==null?void 0:Z.Wh)||0}Z=this.videoData?this.videoData.p_()+this.timestampOffset:this.timestampOffset;if(w5(this.videoData)&&this.videoData.L){var I,d=Number((I=this.videoData.progressBarStartPosition)==null?void 0:I.utcTimeMillis)/1E3;if(!isNaN(d)&&(I=this.R6(d),!isNaN(I)))return Math.max(Z,I)}return Z}; g.n.OX=function(){this.B||this.seekTo(this.Z,{H$:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.n.z1=function(){return this.fS&&!isFinite(this.D)}; g.n.g4=function(){ZR(this,null);this.LS.dispose();g.p.prototype.g4.call(this)}; g.n.Gb=function(){var Z={};this.loader&&Object.assign(Z,this.loader.Gb());this.mediaElement&&Object.assign(Z,this.mediaElement.Gb());return Z}; g.n.R_=function(Z){this.timestampOffset=Z}; g.n.getStreamTimeOffset=function(){return FI(this.videoData)?0:this.videoData.L?this.videoData.L.getStreamTimeOffset():0}; g.n.Fx=function(){return this.timestampOffset}; g.n.xF=function(Z){return this.videoData&&this.videoData.L?this.videoData.L.xF(Z-this.timestampOffset):NaN}; g.n.eh=function(){if(!this.mediaElement)return 0;if(Db(this.videoData)){var Z=this.mediaElement,I=Z.cE();Z=(ky(I)&&Z.getDuration()?I.end(I.length-1):0)+this.timestampOffset-this.p_();I=this.tZ()-this.p_();return Math.max(0,Math.min(1,Z/I))}return this.mediaElement.eh()}; g.n.vF=function(Z){this.X&&(this.X.L=Z)}; g.n.rE=function(Z,I){this.t5.D1("requestUtcSeek",{time:Z});j2(this.videoData)&&(this.J5=Z);var d;(d=this.loader)==null||d.rE(Z);I&&(this.Bj=I)}; g.n.j8=function(Z){j2(this.videoData)&&(this.J5=void 0);this.Bj?(this.t5.D1("utcSeekingFallback",{source:"streamTime",timeSeconds:this.Bj}),this.t5.seekTo(this.Bj,{H$:"utcSeekingFallback_streamTime"}),this.Bj=0):(Z=this.R6(Z),isNaN(Z)||(this.t5.D1("utcSeekingFallback",{source:"estimate",timeSeconds:Z}),this.t5.seekTo(Z,{H$:"utcSeekingFallback_estimate"})))}; g.n.PZ=function(){this.Bj=0}; g.n.R6=function(Z){var I=this.getCurrentTime();if(isNaN(I))return NaN;var d=this.xF(I);return isNaN(d)?NaN:Z-(d-I)}; g.n.Y=function(Z){return this.U&&this.U.Y(Z)};g.U(NO,g.p);NO.prototype.start=function(){this.D.start()}; NO.prototype.stop=function(){this.D.stop()}; NO.prototype.clear=function(){for(var Z=g.t(this.L.values()),I=Z.next();!I.done;I=Z.next())I.value.clear()}; NO.prototype.sample=function(){for(var Z=g.t(this.Z),I=Z.next();!I.done;I=Z.next()){var d=g.t(I.value);I=d.next().value;d=d.next().value;this.L.has(I)||this.L.set(I,new Ko(Zsu.has(I)));this.L.get(I).update(d())}this.D.start()}; var Zsu=new Set(["networkactivity"]);Ko.prototype.update=function(Z){this.D?(this.buffer.add(Z-this.L||0),this.L=Z):this.buffer.add(Z)}; Ko.prototype.clear=function(){this.buffer.clear();this.L=0};g_.prototype.xJ=function(){return this.started}; g_.prototype.start=function(){this.started=!0}; g_.prototype.reset=function(){this.finished=this.started=!1};var Iji=!1;g.U(g.Yv,g.dx);g.n=g.Yv.prototype;g.n.g4=function(){g.g0(this.PL);VZi(this.XQ);this.visibility.unsubscribe("visibilitystatechange",this.XQ);zyr(this.wK);g.Th(this.wK);kM(this);g.Kl.ze(this.ML);this.aB();this.ZR=null;g.Th(this.videoData);g.Th(this.Yk);g.Th(this.yA);g.Th(this.bb);g.t$(this.Lkn);this.XZ=null;g.dx.prototype.g4.call(this)}; g.n.ob=function(Z,I,d,Y,T){if(this.U.Y("html5_log_ad_playback_docid")){var f=this.wK;if(f.qoe){f=f.qoe;var P=this.U.LS||"yt";g.Vt(f,g.NC(f.provider),"ad_playback",[Z,I,d,T,P])}}else this.wK.ob(Z,I,d);this.Y("html5_log_media_perf_info")&&this.D1("adloudness",{ld:Y.toFixed(3),cpn:Z})}; g.n.vW=function(){var Z;return(Z=this.loader)==null?void 0:Z.vW()}; g.n.hd=function(){var Z;return(Z=this.loader)==null?void 0:Z.hd()}; g.n.Iw=function(){var Z;return(Z=this.loader)==null?void 0:Z.Iw()}; g.n.sX=function(){var Z;return(Z=this.loader)==null?void 0:Z.sX()}; g.n.pF=function(){return this.videoData.pF()}; g.n.qj=function(){return this.Y("html5_not_reset_media_source")}; g.n.bY=function(){this.videoData.V&&(this.videoData.kA=this.videoData.kA||this.q8.l5().vW(),this.videoData.Z6=this.videoData.Z6||this.q8.l5().hd());if(pJB(this.videoData)||!tU(this.videoData)){var Z=this.videoData.errorDetail;this.pj(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),Z,Z,this.videoData.aU||void 0)}this.Y("html5_generate_content_po_token")&&this.dH();this.Y("html5_enable_d6de4")&&this.Ag()}; g.n.getVideoData=function(){return this.videoData}; g.n.C=function(){return this.U}; g.n.WX=function(){return this.xe.WX(this.ZR)}; g.n.f6=function(){return this.visibility}; g.n.pJ=function(){return this.mediaElement&&this.mediaElement.lk()?this.mediaElement.gK():null}; g.n.bQ=function(){return this.mediaElement}; g.n.Oo=function(){if(this.videoData.errorCode)return!1;this.C().j&&this.C().houseBrandUserStatus&&this.D1("hbut",{status:this.C().houseBrandUserStatus},!0);if(this.videoData.FF())return!0;this.pj("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.n.va=function(Z){(Z=Z===void 0?!1:Z)||Us(this.wK);this.NZ=Z;!this.Oo()||this.wE.xJ()?gt(this)&&this.wE.xJ()&&!this.wE.finished&&!this.NZ&&this.i6():(this.wE.start(),Z=this.wK,g.NC(Z.provider),Z.qoe&&yc9(Z.qoe),this.i6())}; g.n.i6=function(){if(this.videoData.isLoaded()){var Z=this.Yk;g.Q4(Z.nS.experiments,"html5_player_min_build_cl")>0&&g.Q4(Z.nS.experiments,"html5_player_min_build_cl")>813518696&&YdJ(Z,"oldplayer");OeE(this)}else this.videoData.DM||this.videoData.Mt?this.NZ&>(this)||(this.videoData.DM?cjL(this.videoData):(Z=this.wK,Z.qoe&&(Z=Z.qoe,q5(Z,"protected"),Z.provider.videoData.B?Z.Hf():Z.provider.videoData.subscribe("dataloaded",Z.Hf,Z)),jCn(this.videoData))):!this.videoData.loading&&this.Uz&&$Xr(this)}; g.n.C7=function(Z){this.FT=Z;this.loader&&(JIB(this.loader,new g.FY(Z)),this.D1("sdai",{sdsstm:1}))}; g.n.G8=function(Z,I,d){var Y;(Y=this.loader)==null||Y.G8(Z,I,d)}; g.n.pK=function(Z){var I;(I=this.loader)==null||I.pK(Z)}; g.n.lr=vF(8);g.n.isFullscreen=function(){return this.visibility.isFullscreen()}; g.n.isBackground=function(){return this.visibility.isBackground()}; g.n.m6=function(){var Z=this;AM(this).then(function(){return $M(Z)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.n.UW=function(){this.mediaElement&&this.mediaElement.activate();this.va();this.Oo()&&!g.b(this.playerState,128)&&(this.Wa.xJ()||(this.Wa.start(),this.videoData.MO?this.I4(LA(this.playerState,4)):this.I4(LA(LA(this.playerState,8),1))),vA(this))}; g.n.fv=function(){return this.wE.finished}; g.n.sendAbandonmentPing=function(){g.b(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.o9(!0),zyr(this.wK),g.Th(this.wK),g.Kl.ze(this.ML))}; g.n.hk=function(Z,I,d){Z=Z===void 0?!0:Z;(I===void 0||I)&&this.mediaElement&&this.mediaElement.pause();Z&&d&&this.loader&&FI(this.videoData)&&this.loader.y4(d);this.I4(Z?new g.ns(14):new g.ns)}; g.n.D6=function(){this.wK.FL()}; g.n.pj=function(Z,I,d,Y,T,f){var P,O;g.Sf(OFv,d)?P=d:d?O=d:P="GENERIC_WITHOUT_LINK";Y=(Y||"")+(";a6s."+Dy());if(Z==="auth"||Z==="drm.auth"||Z==="heartbeat.stop")d&&(Y+=";r."+d.replaceAll(" ","_")),f&&(Y+="sr."+f.replaceAll(" ","_"));I={errorCode:Z,errorDetail:T,errorMessage:O||g.HC[P]||"",xq:P,aU:f||"",gS:Y,Ne:I,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=Z;Lk(this,"dataloaderror");this.I4(RD(this.playerState,128,I));g.Kl.ze(this.ML);kM(this);this.Ge()}; g.n.b4=function(Z){this.uV=this.uV.filter(function(I){return Z!==I}); this.Wa.xJ()&&vA(this)}; g.n.Wl=function(){var Z;(Z=!!this.uV.length)||(Z=this.UV.L.array[0],Z=!!Z&&Z.start<=-0x8000000000000);return Z}; g.n.QX=function(){return this.jJ.QX()}; g.n.isPlaying=function(){return this.playerState.isPlaying()}; g.n.MZ=function(){return this.playerState.MZ()&&this.videoData.MO}; g.n.getPlayerState=function(){return this.playerState}; g.n.eZ=function(Z){var I;(I=this.loader)==null||I.eZ(Z)}; g.n.Po=function(Z){var I;(I=this.loader)==null||I.Po(Z)}; g.n.getPlayerType=function(){return this.playerType}; g.n.getPreferredQuality=function(){if(this.ZR){var Z=this.ZR;Z=Z.videoData.rW.compose(Z.videoData.pG);Z=px(Z)}else Z="auto";return Z}; g.n.Z$=vF(16);g.n.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.n.setMediaElement=function(Z){if(this.mediaElement&&Z.gK()===this.mediaElement.gK()&&(Z.isView()||this.mediaElement.isView())){if(Z.isView()||!this.mediaElement.isView())this.Wo(),this.mediaElement=Z,this.mediaElement.t5=this,cpl(this),this.jJ.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.aB();if(!this.playerState.isError()){var I=j9(this.playerState,512);g.b(I,8)&&!g.b(I,2)&&(I=LA(I,1));Z.isView()&&(I=j9(I,64));this.I4(I)}this.mediaElement=Z;this.mediaElement.t5=this;!g.RK(this.U)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);cpl(this);this.jJ.setMediaElement(this.mediaElement);this.Y("html5_prewarm_media_source")&&!this.Yk.Ud()&&vDr(this.mediaElement)}}; g.n.aB=function(Z,I,d){Z=Z===void 0?!1:Z;I=I===void 0?!1:I;d=d===void 0?!1:d;if(this.mediaElement){var Y=this.getCurrentTime();Y>0&&(this.jJ.Z=Y);this.jJ.setMediaElement(null);!Z&&this.qj()?QLi(this):this.CZ(d);this.loader&&(L8(this.loader),NP(this,I));this.aC.stop();if(this.mediaElement&&(!this.Wa.xJ()&&!this.PS()||this.playerState.isError()||g.b(this.playerState,2)||this.I4(LA(this.playerState,512)),this.mediaElement)){this.Wo();if(Z||!this.mediaElement.isView())this.KM.Ni("mesv_s"),this.mediaElement.stopVideo(), Xh(this);this.mediaElement=this.mediaElement.t5=null}}}; g.n.playVideo=function(Z,I){Z=Z===void 0?!1:Z;I=I===void 0?!1:I;var d=this,Y,T,f,P,O,a;return g.h(function(W){if(W.L==1){var e=window.google_image_requests;e&&e.length>10&&(window.google_image_requests=e.slice(-10));if(g.b(d.playerState,128))return W.return();if(d.Yk.mN())return d.publish("signatureexpired"),W.return();d.mediaElement&&Us(d.wK);d.UW();(g.b(d.playerState,64)||Z)&&d.I4(LA(d.playerState,8));return d.Wa.finished&&d.mediaElement?d.ZR||!d.u$?W.xS(2):g.m(W,d.u$,3):W.return()}if(W.L!=2&&g.b(d.playerState, 128))return W.return();if(!d.videoData.Z)return d.videoData.isLivePlayback&&!g.Kd(d.U.B,!0)?(Y="html5.unsupportedlive",T=2):(Y=d.videoData.pF()?"fmt.unplayable":"fmt.noneavailable",T=1),g.uL(Error("selectableFormats")),d.pj(Y,T,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),W.return();if(d.z9()&&d.videoData.Z.L)return W.return(AM(d));if(cs(d))e=d.jJ,ru(e.videoData)&&!e.isAtLiveHead(e.getCurrentTime())&&e.QX()&&e.t5.seekTo(Infinity,{H$:"seektimeline_peggedToLive",seekSource:34});else if(ru(d.videoData)&& (f=d.getCurrentTime()P;if(!O||!P){T&&O&&(f=Math.max(f,T));var a;T=QB(I,(a=Y.L)==null?void 0:a.videoInfos);a=I.t5.getPlaybackRate();a>1&&T&&(a=IAn(I.U.B,Y.L.videoInfos,a),Z.L!==0&&a=480;if(I.Y("html5_perf_cap_override_sticky")){W=I.Z;I=I.Y("html5_perserve_av1_perf_cap");I=I===void 0?!1:I;if(I===void 0?0:I){e=rp();Z=g.t(Object.keys(e));for(f=Z.next();!f.done;f=Z.next())f=f.value,f.indexOf("1")!==0&&delete e[f];g.AU("yt-player-performance-cap",e,2592E3)}else g.m4("yt-player-performance-cap");Oji(I);if(I){I=g.t(jH.keys()); for(e=I.next();!e.done;e=I.next())e=e.value,e.startsWith("1")||jH.delete(e);I=g.t(Y2.values());for(e=I.next();!e.done;e=I.next())e=e.value,e.startsWith("1")||Y2.delete(e);I=g.t(W.keys());for(e=I.next();!e.done;e=I.next())e=e.value,e.startsWith("1")||W.delete(e)}else jH.clear(),Y2.clear(),W.clear()}}}}this.loader&&(I=this.loader,d=d||"",I.policy.L?U_(I.N.L,d):U_(I.L.B,d));this.gR()}; g.n.getUserPlaybackQualityPreference=function(){return this.videoData.Z&&!this.videoData.Z.L?px(this.videoData.rW):$b[i$()]}; g.n.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.n.setUserAudio51Preference=function(Z,I){this.getUserAudio51Preference()!==Z&&(this.D1("toggle51",{pref:Z}),g.AU("yt-player-audio51",Z,I?31536E3:2592E3),this.m6())}; g.n.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.n.setProximaLatencyPreference=function(Z){var I=this.getProximaLatencyPreference();this.D1("proxima",{pref:Z});g.AU("yt-player-proxima-pref",Z,31536E3);I!==Z&&(Z=this.jJ,Z.d4=!0,Z.t5.seekTo(Infinity,{H$:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.n.getProximaLatencyPreference=function(){var Z;return(Z=qm())!=null?Z:0}; g.n.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.n.dH=function(){this.videoData.videoId?this.q8.dH(this.videoData):this.D1("povid",{})}; g.n.Ag=function(){this.videoData.videoId?this.q8.Ag(this.videoData):this.D1("piavid",{})}; g.n.gR=function(){if(!this.OZ()&&!g.b(this.playerState,128)&&this.videoData.Z){if(this.videoData.Z.L)J7(this);else{var Z=Vw(this),I=this.videoData;a:{var d=this.videoData.Tv;if(Z.L){for(var Y=g.t(d),T=Y.next();!T.done;T=Y.next()){T=T.value;var f=T.getInfo(),P=g.HS[f.video.quality];if((!Z.Z||f.video.quality!=="auto")&&P<=Z.L){d=T;break a}}d=d[d.length-1]}else d=d[0]}I.on=d;rI(this,Z.reason,R9l(this,this.videoData.on))}if(this.Y("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.jJ.In= !1,this.playVideo()}}; g.n.RM=function(Z,I){if(this.OZ()||g.b(this.playerState,128))return!1;var d,Y=!((d=this.videoData.Z)==null||!d.L);d=Y&&I?this.getCurrentTime()-this.Fx():NaN;if(Z.uo&&Z.uo.id){var T=this.wK;if(T.qoe){T=T.qoe;var f=[Z.uo.id,isNaN(d)?"m":"t"];g.Vt(T,g.NC(T.provider),"afi",f)}}if(Y)return I&&(Y=h$(this.jJ),this.D1("aswh",{id:Z.id,xtags:Z.xtags,bh:Y.toFixed(3)})),this.loader.setAudioTrack(Z,d,I),!0;if(XVr(this)){a:{I=this.mediaElement.audioTracks();for(Y=0;Yf.Fm.getDuration()&&Bbn(f,P)):Bbn(f,W);var e=f.loader,B=f.Fm;O=O===void 0?!1:O;a=a===void 0?!1:a;e.policy.fS&&(e.policy.mJ&&e.D1("loader",{setsmb:0}),e.IL(),e.policy.fS=!1);cwO(e,a);if(!Wp(B)){var w=fM(e.videoTrack),V=fM(e.audioTrack),N=(w?w.info.L:e.videoTrack.L).info,q=(V?V.info.L:e.audioTrack.L).info,A=e.policy.by, F=N.mimeType+(A===void 0?"":A),J=q.mimeType,v=N.Pj,l=q.Pj,X;B.LS=(X=B.Fm)==null?void 0:X.addSourceBuffer(J);var H;B.kS=F.split(";")[0]==="fakesb"?void 0:(H=B.Fm)==null?void 0:H.addSourceBuffer(F);B.wB&&(B.wB.webkitSourceAddId("0",J),B.wB.webkitSourceAddId("1",F));var x=new r4(B.LS,B.wB,"0",mya(J),l,!1),Id=new r4(B.kS,B.wB,"1",mya(F),v,!0);bjD(B,x,Id)}w=O;V=a;w=w===void 0?!1:w;V=V===void 0?!1:V;lY(e.videoTrack,B.D||null,V);lY(e.audioTrack,B.L||null,V);e.Fm=B;e.Fm.N=!0;w||e.resume();B.L.vT(e.d4,e); B.D.vT(e.d4,e);try{e.Nc()}catch(TB){g.nl(TB)}f.publish("mediasourceattached")}}catch(TB){g.uL(TB),f.handleError(new g.dj("fmt.unplayable",{msi:"1",ename:TB&&typeof TB==="object"&&"name"in TB?String(TB.name):void 0,trg:"setmediasrc"},1))}} var f=this;I=I===void 0?!1:I;d=d===void 0?!1:d;e8J(this,Y===void 0?!1:Y);this.Fm=Z;this.qj()&&f_(this.Fm)==="open"?T(this.Fm):ukn(this.Fm,T)}; g.n.X4=function(Z){this.z$.set(Z.initData,Z);this.yI&&(this.yI.X4(Z),this.Y("html5_eme_loader_sync")||this.z$.remove(Z.initData))}; g.n.dY=function(Z){this.videoData.Kg=g.J2("auto",Z,!1,"u");J7(this)}; g.n.vF=function(Z){var I=Z.reason,d=Z.L.info,Y=Z.token,T=Z.videoId,f=this.wK,P=this.videoData;if(d!==P.N){var O=!P.N;P.N=d;I!=="m"&&I!=="t"&&(I=O?"i":"a");var a=I==="m"||I==="t";this.U.experiments.CS("html5_refactor_sabr_audio_format_selection_logging")?this.KB=new r6(P,d,I,"",Y,T):(I=new r6(P,d,I,"",Y),f.qoe&&(f=f.qoe,d=g.NC(f.provider),nda(f,d,I)));this.publish("internalaudioformatchange",P,!O&&a)}this.Dt();this.jJ.vF(Z.L.index)}; g.n.hQ=function(Z){this.publish("localmediachange",Z)}; g.n.zR=function(Z){Z=Z===void 0?{}:Z;var I;(I=this.loader)==null||I.zR(this.U,Bk(this.videoData),Z)}; g.n.mN=function(){return this.Yk.mN()}; g.n.Bq=function(Z){this.nj(new g.dj("staleconfig",{reason:Z}))}; g.n.handleError=function(Z){this.Yk.handleError(Z)}; g.n.Ud=function(){return this.Yk.Ud()}; g.n.j8=function(Z){this.jJ.j8(Z)}; g.n.K6=function(Z,I){Z=Z===void 0?!1:Z;I=I===void 0?!1:I;var d=this,Y,T,f;return g.h(function(P){if(P.L==1){d.loader&&d.loader.AL();d.loader&&d.loader.OZ()&&kM(d);if(d.Y("html5_enable_vp9_fairplay")&&d.pF()&&(Y=d.videoData.L)!=null)for(var O in Y.L)Y.L.hasOwnProperty(O)&&(Y.L[O].L=null,Y.L[O].Z=!1);d.I4(LA(d.playerState,2048));d.publish("newelementrequired");return Z?g.m(P,AM(d),2):P.xS(2)}d.videoData.Qy()&&((T=d.loader)==null?0:T.fS)&&!cs(d)&&((f=d.isAtLiveHead())&&ru(d.videoData)?d.seekTo(Infinity, {H$:"videoPlayer_getNewElement"}):d.videoData.uu&&d.loader&&(O=d.loader,O.u5.Qy&&(O.u5.uu||O.u5.N||O.u5.isPremiere?(O.seek(0,{H$:"loader_resetSqless"}),O.videoTrack.V=!0,O.audioTrack.V=!0,O.videoTrack.B=!0,O.audioTrack.B=!0):nS(O.u5)&&kz(O))));I&&d.seekTo(0,{seekSource:105});g.b(d.playerState,8)&&d.playVideo();g.v6(P)})}; g.n.pD=function(Z){this.D1("hgte",{ne:+Z});this.videoData.V=!1;Z&&this.K6();this.loader&&mkn(this.loader)}; g.n.Aw=function(Z){this.D1("newelem",{r:Z});this.K6()}; g.n.pauseVideo=function(Z){Z=Z===void 0?!1:Z;if((g.b(this.playerState,64)||g.b(this.playerState,2))&&!Z)if(g.b(this.playerState,8))this.I4(f7(this.playerState,4,8));else if(this.MZ())$M(this);else return;g.b(this.playerState,128)||(Z?this.I4(LA(this.playerState,256)):this.I4(f7(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.IS(this.videoData)&&this.loader&&NP(this,!1)}; g.n.stopVideo=function(){this.pauseVideo();this.loader&&(NP(this,!1),this.loader.IL())}; g.n.Ge=function(Z,I){Z=Z===void 0?!1:Z;I=I===void 0?!1:I;if(this.qj()&&I){var d;(d=this.mediaElement)==null||d.Ge()}else{var Y;(Y=this.mediaElement)==null||Y.stopVideo()}Xh(this);kM(this);g.b(this.playerState,128)||(Z?this.I4(j9(j9(LA(this.playerState,4),8),16)):this.I4(RD(this.playerState)));this.videoData.videoId&&this.U.mJ.remove(this.videoData.videoId)}; g.n.seekTo=function(Z,I){I=I===void 0?{}:I;g.b(this.playerState,2)&&$M(this);I.xNS&&this.I4(LA(this.playerState,2048));if((I.seekSource===58||I.seekSource===60)&&this.Y("html5_update_vss_during_gapless_seeking")){var d=this.wK;d.L&&(d=d.L,I.seekSource===58?d.L.update():d.Z&&(FE(d),u$(d).send(),d.N=NaN))}this.jJ.seekTo(Z,I);this.UV.sync()}; g.n.t1=function(Z){this.KM.N.D=(0,g.o8)();g.b(this.playerState,32)||(this.I4(LA(this.playerState,32,Z==null?void 0:Z.seekSource)),g.b(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.W$()}; g.n.Gg=function(Z){Z=Z==null?void 0:Z.seekSource;g.b(this.playerState,32)?(this.I4(f7(this.playerState,16,32,Z)),this.publish("endseeking")):g.b(this.playerState,2)||this.I4(LA(this.playerState,16,Z));Z=this.KM.N;var I=this.videoData,d=this.playerState.isPaused();if(I.clientPlaybackNonce&&!isNaN(Z.L)){if(Math.random()<.01){d=d?"pbp":"pbs";var Y={startTime:Z.L};I.j&&(Y.cttAuthInfo={token:I.j,videoId:I.videoId});Pr("seek",Y);g.Qg({clientPlaybackNonce:I.clientPlaybackNonce},"seek");isNaN(Z.D)||O7("pl_ss", Z.D,"seek");O7(d,(0,g.o8)(),"seek")}Z.reset()}}; g.n.mG=function(Z){this.Gg(Z)}; g.n.lq=function(){this.publish("SEEK_COMPLETE")}; g.n.Up=function(Z){var I=this.q8,d=this.videoData.clientPlaybackNonce,Y=this.playerType;if(Z.scope===4){var T=Z.type;if(T){var f=I.vj(),P=f.getVideoData().clientPlaybackNonce;Y===1&&(P=d);if(Y=aIO(I,P)){if(d=Y.getVideoData())Z.writePolicy===2&&d.sabrContextUpdates.has(T)||(Z.sendByDefault&&d.d4.add(T),d.sabrContextUpdates.set(T,Z)),I.Y("html5_enable_t1_enf_on_sabr")&&(Z=T===5,T=gI9(d.playerResponse),Z?(Z=T?1:0,UM(Z,"m.p_",{}),m9("MBSTAT",Z)):Z=1,Z===0&&I.Wj.Rn("onAbnormalityDetected"))}else f.D1("scuset", {ncpf:"1",ccpn:P,crcpn:d})}else g.uL(Error("b/380308491: contextUpdateType is undefined"))}}; g.n.l9=function(){if(this.playerType===2)return this.q8.l9("")}; g.n.getCurrentTime=function(Z){return this.jJ.getCurrentTime(Z===void 0?!1:Z)}; g.n.yV=function(){return this.jJ.yV()}; g.n.fF=function(){return this.jJ.fF()}; g.n.EX=function(){return this.fF()}; g.n.rd=function(){return this.jJ.rd()}; g.n.getPlaylistSequenceForTime=function(Z){return this.videoData.getPlaylistSequenceForTime(Z-this.Fx())}; g.n.aK=function(){var Z=NaN;this.mediaElement&&(Z=this.mediaElement.aK());return Z>=0?Z:this.getCurrentTime()}; g.n.xF=function(){var Z;return((Z=this.videoData.L)==null?0:Z.xF)?this.videoData.L.xF(this.getCurrentTime()-this.Fx()):this.mediaElement&&(Z=this.mediaElement.Wp())&&(Z=Z.getTime(),!isNaN(Z))?Z/1E3+this.getCurrentTime():NaN}; g.n.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.Fx():this.tZ()?this.tZ():0}; g.n.cH=function(){var Z=new CRi;if(this.loader){var I=this.Bk,d=this.U.Vy();d=d===void 0?!1:d;Z.Il=I.Ns;Z.K8=I.w4;Z.bandwidthEstimate=wG(I);if(d){d=(I.X.eD()*1E3).toFixed();var Y=(I.fS.eD()*1E3).toFixed(),T=qy(I).toFixed(2),f=((I.V.eD()||0)*1E9).toFixed(2),P=I.Z.eD().toFixed(0),O=I.j7.eD().toFixed(0),a=I.In.percentile(.5).toFixed(2),W=I.In.percentile(.92).toFixed(2),e=I.In.percentile(.96).toFixed(2),B=I.In.percentile(.98).toFixed(2);I.L?I.L.reset():I.L=new s6;I.L.add(I.Bj);I.L.add(I.interruptions.length); for(var w=0,V=I.interruptions.length-1;V>=0;V--){var N=I.interruptions[V];I.L.add(N-w);w=N}w=0;for(V=I.N.length-1;V>=0;V--){N=I.N[V];var q=N.stamp/36E5;I.L.add(q-w);w=q;I.L.add(N.net/1E3);I.L.add(N.max)}I=I.L.It();Z.L={ttr:d,ttm:Y,d:T,st:f,bw:P,abw:O,v50:a,v92:W,v96:e,v98:B,"int":I}}I=this.loader;I.Fm&&I.Fm.N&&!I.Fm.bT()&&(Z.iI=Vh(I.videoTrack),Z.D=Vh(I.audioTrack),I.policy.Z&&(d=rC(I.videoTrack),Y=rC(I.audioTrack),T=cn(I.Fm.D.LN(),"_",5),f=cn(I.Fm.L.LN(),"_",5),Object.assign(Z.L,{lvq:d,laq:Y,lvb:T, lab:f})));Z.bandwidthEstimate=Ch(I.In);var A;(A=I.audioTrack.In)==null||A.flush();var F;(F=I.videoTrack.In)==null||F.flush()}else this.mediaElement&&(Z.iI=Tb(this.mediaElement));Z.Il=this.Il;Z.K8=this.K8;Z.Z=this.isAtLiveHead()&&this.isPlaying()?W3(this):NaN;A=this.jJ;A=A.L?jU(A.L):0;Z.N=A;return Z}; g.n.eW=function(Z,I){this.K8+=Z;this.Il+=I}; g.n.eh=function(){return this.mediaElement?g.IS(this.videoData)?1:Db(this.videoData)?this.isAtLiveHead()||this.QX()?1:this.jJ.eh():this.mediaElement.eh():0}; g.n.KT=function(){var Z=this.mq,I=Mt(Z,"bandwidth"),d=Mt(Z,"bufferhealth"),Y=Mt(Z,"livelatency"),T=Mt(Z,"networkactivity"),f=oA(Z,"bandwidth"),P=oA(Z,"bufferhealth"),O=oA(Z,"livelatency");Z=oA(Z,"networkactivity");var a=this.bU(),W=a.droppedVideoFrames;a=a.totalVideoFrames;var e=this.getCurrentTime();if(this.yI){var B="IT/"+(this.yI.L.getInfo()+"/"+px(this.Pv()));B+="/"+this.yI.getInfo()}else B="";var w=this.isGapless(),V=this.m0(),N=this.rN(),q=g.Hp(this),A=this.getPlayerState(),F=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var J=0;var v="";if(this.FT){if(this.FT.fp){v="D,";break a}J=this.FT.Wv;v=this.FT.dV.substring(0,4)}J>0?(J="AD"+J+", ",v&&(J+=v+", "),v=J):v=""}return{dh:f,YL:P,currentTime:e,M5:B,droppedVideoFrames:W,isGapless:w,m0:V,J7:N,C3:I,c9:d,e4:Y,G4:T,Ue:O,XD:Z,FC:q,playerState:A,d3:F,OC:v,totalVideoFrames:a}}; g.n.Gb=function(Z){var I={};if(Z===void 0?0:Z){Object.assign(I,this.wK.Gb());this.mediaElement&&(Object.assign(I,this.mediaElement.Gb()),Z=this.bU(),I.dvf=Z.droppedVideoFrames,I.tvf=Z.totalVideoFrames);this.loader&&Object.assign(I,this.loader.Gb());this.yI&&(I.drm=JSON.stringify(this.yI.Gb()));I.state=this.playerState.state.toString(16);g.b(this.playerState,128)&&(I.debug_error=JSON.stringify(this.playerState.Em));this.Wl()&&(I.prerolls=this.uV.join(","));this.videoData.SK&&(I.ismb=this.videoData.SK); this.videoData.latencyClass!=="UNKNOWN"&&(I.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(I.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)I.is_mosaic=1;this.videoData.cotn&&(I.is_offline=1,I.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(I.playerResponseCpn=this.videoData.playerResponseCpn);this.q8.isOrchestrationLeader()&&(I.leader=1);this.videoData.isLivePlayback&& (this.videoData.L&&vR(this.videoData.L)&&(I.segduration=vR(this.videoData.L)),Z=this.jJ,I.lat=Z.X?HdL(Z.X.N):0,I.liveutcstart=this.videoData.liveUtcStartSeconds);I.relative_loudness=this.videoData.u8.toFixed(3);if(Z=g.Hp(this))I.optimal_format=Z.video.qualityLabel;I.user_qual=i$();I.release_version=Q[12]}I.debug_videoId=this.videoData.videoId;return I}; g.n.addCueRange=function(Z){this.zG([Z])}; g.n.removeCueRange=function(Z){this.UV.vB([Z])}; g.n.fb=function(){var Z=this.UV;if(Z.t5.C().Y("html5_sort_cueranges_on_update")&&!(Z.Rt().length<=0||Z.OZ())){var I=Z.L;I.array.sort(I.L)}Z.sync()}; g.n.Hv=function(Z,I){return this.UV.Hv(Z,I)}; g.n.zG=function(Z,I){this.UV.eM(Z,I)}; g.n.Y7=function(Z){this.UV.vB(Z)}; g.n.Rt=function(){return this.UV.Rt()||[]}; g.n.uN=function(){return this.n9}; g.n.z9=function(){return this.visibility.z9()}; g.n.N6=function(){this.mediaElement&&this.mediaElement.N6()}; g.n.DI1=function(){Lk(this)}; g.n.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.n.Wo=function(){g.aL(this.kc)}; g.n.gF1=function(){this.W$();this.publish("onLoadProgress",this.eh())}; g.n.ai=function(Z){this.BO().L.K_(iMp)&&so(this);var I=Z.target.n6();if(this.mediaElement&&this.mediaElement.n6()&&this.mediaElement.n6()===I){qJW(this,Z.type);switch(Z.type){case "error":var d=BS(this.mediaElement)||"",Y=this.mediaElement.LF();if(d==="capability.changed"){this.Y("html5_restart_on_capability_change")?(this.D1("capchg",{msg:Y}),this.K6(!0)):AM(this);return}if(this.mediaElement.hasError()&&Hji(this.Yk,d,{msg:Y,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.dB()=== 4){this.Ge();PF(this,"unplayable");return}break;case "durationchange":d=this.mediaElement.getDuration();isFinite(d)&&(!this.Fm||d>0)&&d!==1&&this.cT(d);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());d=this.UV;d.started=!0;d.sync();this.wK.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":this.BO().L.K_(fQ0)&&so(this);fE7(this);this.publish("onLoadedMetadata");rJB(this);d=this.xF();this.videoData.Xz&&(this.videoData.Xz=d); break;case "loadstart":rJB(this);break;case "progress":case "suspend":this.Bs.uZ();break;case "seeked":(d=this.loader)!=null&&d.policy.D&&d.nK&&(d.D1("sdai",{skipAdSked:"1"}),d.nK=!1);break;case "playing":this.BO().L.K_(fQ0)&&so(this);this.KM.Ni("plev");this.Hr&&!cs(this)&&(this.Hr=!1,this.isAtLiveHead()||this.seekTo(Infinity,{H$:"videoplayer_onPlaying"}));break;case "timeupdate":this.BO().L.K_(fQ0)&&so(this);d=this.mediaElement&&!this.mediaElement.getCurrentTime();Y=this.mediaElement&&this.mediaElement.f0()=== 0;if(d&&(!this.Dg||Y))return;this.Dg=this.Dg||!!this.mediaElement.getCurrentTime();MYa(this);this.W$();if(!this.mediaElement||this.mediaElement.n6()!==I)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.bI().length>0&&this.mediaElement.cE().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.Y("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.f0()> 2||!this.mediaElement.isSeeking()&&Qb(this.mediaElement.cE(),this.mediaElement.getCurrentTime()))&&(d=this.mediaElement.Gb(),d.bh=Tb(this.mediaElement).toFixed(3),this.D1("uwe",d));break;case "resize":fE7(this);this.videoData.D&&this.videoData.D.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.lE&&g.b(this.playerState,8)&&!g.b(this.playerState,1024)&&this.getCurrentTime()===0&&g.bT){PF(this,"safari_autoplay_disabled");return}}if(this.mediaElement&& this.mediaElement.n6()===I){a7l(this.jJ,Z);this.publish("videoelementevent",Z);I=this.playerState;Y=this.ET;var T=this.mediaElement;d=this.videoData.clientPlaybackNonce;if(!g.b(I,128)){var f=I.state;T=T?T:Z.target;var P=T.getCurrentTime();if(!g.b(I,64)||Z.type!=="ended"&&Z.type!=="pause"){var O=T.getDuration();O=T.isEnded()||P>1&&Math.abs(P-O)<1.1;var a=Z.type==="pause"&&T.isEnded();P=Z.type==="ended"||Z.type==="waiting"||Z.type==="timeupdate"&&!g.b(I,4)&&!$m(Y,P);if(a||O&&P)T.Xl()>0&&T.n6()&&(f= 14);else switch(Z.type){case "error":BS(T)&&(f|=128);break;case "pause":g.b(I,256)?(f^=256)||(f=64):g.b(I,32)||g.b(I,2)||g.b(I,4)||(f=4,g.b(I,1)&&g.b(I,8)&&(f|=1));break;case "playing":P=f;f=(f|8)&-1093;P&4?(f|=1,E8(Y,T,!0)):$m(Y,T.getCurrentTime())&&(f&=-2);g.b(I,1)&&E8(Y,T)&&(f|=1);break;case "seeking":f|=16;g.b(I,8)&&(f|=1);f&=-3;break;case "seeked":f&=-17;E8(Y,T,!0);break;case "waiting":g.b(I,2)||(f|=1);E8(Y,T);break;case "timeupdate":P=g.b(I,16),O=g.b(I,4),(g.b(I,8)||P)&&!O&&$m(Y,T.getCurrentTime())&& (f=8),E8(Y,T)&&(f|=1)}}Y=f;f=null;Y&128&&(f=Z.target,T=BS(f),P=1,T?(T==="capability.changed"&&(P=2),O="GENERIC_WITHOUT_LINK",a=f.Gb(),a.mediaElem="1",a.trg="melem",/AUDIO_RENDERER/.test(f.LF())&&(O="HTML5_AUDIO_RENDERER_ERROR"),f={errorCode:T,errorMessage:g.HC[O]||"",xq:O,gS:VQ(a),Ne:P,cpn:I.Em?I.Em.cpn:""}):f=null,f&&(f.cpn=d));I=RD(I,Y,f)}!g.b(this.playerState,1)&&g.b(I,1)&&ib(this,"evt"+Z.type);this.I4(I)}}}; g.n.MK5=function(Z){Z=Z.L.availability==="available";Z!==this.n9&&(this.n9=Z,this.publish("airplayavailabilitychange"))}; g.n.NK5=function(){var Z=(0,g.o8)(),I=this.mediaElement.z9();this.D1("airplay",{ia:I});!I&&!isNaN(this.ji)&&Z-this.ji<2E3||(this.ji=Z,I!==this.z9()&&(Z=this.visibility,Z.L!==I&&(Z.L=I,Z.XQ()),this.D1("airplay",{rbld:I}),this.m6()),this.publish("airplayactivechange"))}; g.n.Af=function(Z){if(this.loader){var I=this.loader,d=I.Z,Y=I.getCurrentTime(),T=Date.now()-d.In;d.In=NaN;d.D1("sdai",{adfetchdone:Z,d:T});Z&&!isNaN(d.V)&&d.D!==3&&TE(d.loader,Y,d.V,d.j);d.policy.D?d.B=NaN:d.N=NaN;ir(d,4,d.D===3?"adfps":"adf");L8(I)}}; g.n.vy=function(){g.g0(this.PL);this.aC.stop();this.videoData.In=!0;this.U.Wh=!0;this.U.I0=0;var Z=this.Yk;if(Z.videoData.D){var I=Z.nS.B,d=Z.videoData.D.Pj;I.N.has(d)&&(I.N.delete(d),I.D=!0)}Z.L.stop();this.C2();g.b(this.playerState,8)&&this.I4(j9(this.playerState,65));this.NZ=!1;this.wK.lP();g.Zy(this.yA);this.publish("playbackstarted");(Z=g.gZ("yt.scheduler.instance.clearPriorityThreshold"))?Z():LD(0)}; g.n.C2=function(){var Z=this.q8.gz(),I={},d={};!H6("pbs",this.KM.timerName)&&k8.measure&&k8.getEntriesByName&&(k8.getEntriesByName("mark_nr")[0]?AEE("mark_nr"):AEE());Z.videoId&&(I.videoId=Z.videoId);Z.clientPlaybackNonce&&!this.Y("web_player_early_cpn")&&(I.clientPlaybackNonce=Z.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(d.isPausedOnLoad=!0);d.itag=Z.D?Number(Z.D.itag):-1;Z.zD&&(d.preloadType=String(this.g6?2:1));I.liveStreamMode=kAu[e$(Z)];I.playerInfo=d;this.KM.infoGel(I); if(this.loader){Z=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(Z.Z&&(I=window.performance.getEntriesByName(Z.Z),I.length&&(I=I[0],Z.tick("vri",I.fetchStart),Z.tick("vdns",I.domainLookupEnd),Z.tick("vreq",I.requestStart),Z.tick("vrc",I.responseEnd))),Z.D&&(I=window.performance.getEntriesByName(Z.D),I.length&&(I=I[0],Z.tick("ari",I.fetchStart),Z.tick("adns",I.domainLookupEnd),Z.tick("areq",I.requestStart),Z.tick("arc",I.responseEnd))));Z=Z.ticks;for(var Y in Z)Z.hasOwnProperty(Y)&& this.KM.tick(Y,Z[Y])}}; g.n.W$=function(Z){var I=this;Z=Z===void 0?!1:Z;if(this.mediaElement&&this.videoData){Thg(this.jJ,this.isPlaying());var d=this.getCurrentTime();if(this.loader&&(g.b(this.playerState,4)&&g.IS(this.videoData)||g.b(this.playerState,32)&&j2(this.videoData)||hYO(this.loader,d),this.Y("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-tr(this.loader))>10)){var Y;this.D1("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(Y=this.loader)==null?void 0:tr(Y)},!0)}d>5&&(this.jJ.Z=d); (Y=g.w0())?g.Kl.ze(this.ML):g.Cl(this.ML);var T=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!T||w5(this.videoData))&&!g.b(this.playerState,128)){var f=function(){if(I.mediaElement&&!g.b(I.playerState,128)){I.U.Vy()&&qJW(I,"pfx");var P=I.getCurrentTime();I.Y("html5_buffer_underrun_transition_fix")&&(P-=I.Fx());var O=Tb(I.mediaElement),a=g.b(I.playerState,8),W=$m(I.ET,P),e=HTO(I.ET,P,(0,g.o8)(),O);a&&W?I.I4(j9(I.playerState,1)):a&&e?(a=I.getDuration(),W=ru(I.videoData),a&&Math.abs(a- P)<1.1?(I.D1("setended",{ct:P,bh:O,dur:a,live:W}),I.mediaElement.sY()?I.seekTo(0,{H$:"videoplayer_loop",seekSource:37}):I.hk()):(I.playerState.isBuffering()||ib(I,"progress_fix"),I.I4(LA(I.playerState,1)))):(a&&!W&&!e&&P>0&&(a=(Date.now()-I.uX)/1E3,W=I.getDuration(),P>W-1&&I.D1("misspg",{t:P.toFixed(2),d:W.toFixed(2),r:a.toFixed(2),bh:O.toFixed(2)})),I.playerState.isPaused()&&I.playerState.isBuffering()&&Tb(I.mediaElement)>5&&I.I4(j9(I.playerState,1)));I.W$()}}; this.mediaElement.bI().length===0?this.ML=Y?g.Kl.AB(f,100):g.lo(f,100):this.ML=Y?g.Kl.AB(f,500):g.lo(f,500)}this.videoData.Gv=d;!Z&&this.isPlaying()&&sP9(this);P67(this.xe,this.ZR,this.bQ(),this.isBackground())&&J7(this);this.publish("progresssync",Z);T&&w5(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.n.Np=function(){this.pj("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.n.rN=function(){return this.wK.rN()}; g.n.FX=function(){return this.loader?this.loader.FX():wG(this.Bk,!0)}; g.n.I4=function(Z){if(!g.JwE(this.playerState,Z)){var I=new g.cQ(Z,this.playerState);this.playerState=Z;SyD(this);var d=!this.G3.length;this.G3.push(I);var Y=this.mediaElement&&this.mediaElement.isSeeking();g.Nw(I,1)&&this.loader&&B57(this.loader);Y=I.oldState.state===8&&!Y;if(g.Nw(I,1)&&Y&&g.b(this.playerState,8)&&!g.b(this.playerState,64)&&this.loader){Y=this.loader;Y.Yb=!0;if(Y.policy.EU&&Y.Fm){var T,f,P,O;Y.D1("lr_rb",{c:Y.getCurrentTime(),s:Y.isSeeking(),ab:cn(Y.Fm.L.LN()),ala:(T=oi(Y.audioTrack))== null?void 0:T.m5(),alr:(f=Y.audioTrack.D)==null?void 0:f.m5(),vb:cn(Y.Fm.D.LN()),vla:(P=oi(Y.videoTrack))==null?void 0:P.m5(),vlr:(O=Y.videoTrack.D)==null?void 0:O.m5()})}Y.t5.yn()!==0&&Y.D1("sps_rebuffer",{c:Y.getCurrentTime()});this.mediaElement&&Tb(this.mediaElement)>=5&&(T=this.xe,f=this.ZR,!f.videoData.D||T.Y("html5_disable_performance_downgrade")?T=!1:(Date.now()-T.V>6E4&&(T.D=0),T.D++,T.V=Date.now(),T.D!==4?T=!1:(UGd(T,f.videoData.D),T=!0)),T&&J7(this))}(T=g.Q4(this.U.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.b(Z,1)&&(g.b(Z,8)||g.b(Z,16))?this.r9.start(T):this.r9.stop();(na(I,8)<0||g.Nw(I,1024))&&this.aC.stop();!g.Nw(I,8)||this.videoData.In||g.b(I.state,1024)||this.aC.start();g.b(I.state,8)&&na(I,16)<0&&!g.b(I.state,32)&&!g.b(I.state,2)&&this.playVideo();g.b(I.state,2)&&Db(this.videoData)&&(this.cT(this.getCurrentTime()),this.W$(!0));g.Nw(I,2)&&(this.o9(!0),this.U.Vy()&&this.Y("html5_sabr_parse_live_metadata_playback_boundaries")&&j2(this.videoData)&&this.videoData.L&&(Z={minst:""+ this.videoData.L.Wh,cminst:""+(this.videoData.L.p_()+this.Fx()),maxst:""+this.videoData.L.gf,hts:""+this.videoData.L.Ns,cmaxst:""+(this.videoData.L.tZ()+this.Fx())},this.D1("sabrSeekableBoundaries",Z)));g.Nw(I,128)&&this.Ge();this.videoData.L&&this.videoData.isLivePlayback&&!this.tA&&(na(I,8)<0?(Z=this.videoData.L,Z.B&&Z.B.stop()):g.Nw(I,8)&&this.videoData.L.resume());Z=this.jJ;g.Zy(Z.LS.B);if(Z.mediaElement)if(I.oldState.state===8&&cY(I.state)&&I.state.isBuffering()){var a=Z.mediaElement.getCurrentTime(); T=Z.mediaElement.cE();f=Z.Y("manifestless_post_live_ufph")||Z.Y("manifestless_post_live")?OT(T,Math.max(a-3.5,0)):OT(T,a-3.5);f>=0&&a>T.end(f)-1.1&&f+10?(eh(Z.t5,Z.getCurrentTime()+Z.videoData.limitedPlaybackDurationInSeconds), Z.on=!0):Z.videoData.isLivePlayback&&Z.videoData.endSeconds>0&&(eh(Z.t5,Z.getCurrentTime()+Z.videoData.endSeconds),Z.on=!0));a=this.wK;if(g.Nw(I,1024)||g.Nw(I,512)||g.Nw(I,4))a.D&&(Z=a.D,Z.D>=0||(Z.L=-1,Z.delay.stop())),a.qoe&&(Z=a.qoe,Z.V||(Z.Z=-1));if(a.provider.videoData.enableServerStitchedDai&&a.l4){var W;(W=a.Z.get(a.l4))==null||mz(W,I)}else a.L&&mz(a.L,I);a.qoe&&(W=a.qoe,Z=I.state,T=g.NC(W.provider),f=W.getPlayerState(Z),P=Z.seekSource||void 0,f!==W.JZ&&(W.Ns||T=10&&W.playTimeSecs<=180&&(W.L.set("qoealert",["1"]),W.UZ=!0)),f!=="B"||W.JZ!=="PL"&&W.JZ!=="PB"||(W.isBuffering=!0),W.D=T),W.JZ==="PL"&&(f==="B"||f==="S")||W.provider.U.Vy()?FA(W,T):(W.I0||f!=="PL"||(W.I0=!0,hd(W,T,W.provider.t5.cH())),aD(W,T)),f==="PL"&&g.Zy(W.o4),O=[f],f==="S"&&P&&O.push("ss."+P),g.Vt(W,T,"vps",O),W.JZ=f,W.LS=T,W.D=T,W.N=!0),f=Z.Em,g.b(Z,128)&&f&&(f.gS=f.gS||"",GUr(W,T,f.errorCode, f.Ne,f.gS)),(g.b(Z,2)||g.b(Z,128))&&W.reportStats(T),Z.isPlaying()&&!W.V&&(W.Z>=0&&W.L.set("user_intent",[W.Z.toString()]),W.V=!0),m7d(W));a.D&&(W=a.D,RZn(W),W.playerState=I.state,W.D>=0&&g.Nw(I,16)&&W.seekCount++,I.state.isError()&&W.send());if(d&&!this.OZ())try{for(var e=g.t(this.G3),B=e.next();!B.done;B=e.next()){var w=B.value,V=this.UV;if(V.started&&(V.sync(),g.b(w.oldState,16))){I=V;var N=qkD(I.L,Math.max(I.Z-2E3,0));!isNaN(N)&&N<0x7ffffffffffff&&I.N.start()}this.publish("statechange",w)}}finally{this.G3.length= 0}}}; g.n.rY=function(){this.KM.tick("qoes")}; g.n.OX=function(){this.jJ.OX()}; g.n.j1=function(Z,I,d,Y){a:{var T=this.Yk;Y=Y===void 0?"LICENSE":Y;d=d.substring(0,256);var f=VY(I);Z==="drm.keyerror"&&this.yI&&this.yI.D.keys.length>1&&T.N<96&&(Z="drm.sessionlimitexhausted",f=!1);var P=T.nS.experiments.CS("html5_retry_on_drm_unavailable"),O=T.nS.experiments.CS("html5_retry_on_drm_key_error"),a=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(P&&Z==="drm.unavailable"||O&&Z==="drm.keyerror"&&!d.match(a))T.nj("qoe.restart",{retryOnDrmError:1,e:Z,detail:d}),T.t5.K6(!0);else{if(f)if(T.videoData.D&& T.videoData.D.video.isHdr())NXn(T,Z);else{if(T.t5.pj(Z,I,Y,d),kuL(T,{detail:d}))break a}else T.nj(Z,{detail:d});Z==="drm.sessionlimitexhausted"&&(T.D1("retrydrm",{sessionLimitExhausted:1}),T.N++,sTB(T.t5))}}}; g.n.tJJ=function(){var Z=this,I=g.Q4(this.U.experiments,"html5_license_constraint_delay"),d=g2u();I&&d?(I=new g.uX(function(){Z.gR();Lk(Z)},I),g.z(this,I),I.start()):(this.gR(),Lk(this))}; g.n.zM=function(Z){this.publish("heartbeatparams",Z)}; g.n.ow=function(Z){this.D1("keystatuses",X$9(Z));var I="auto",d=!1;this.videoData.D&&(I=this.videoData.D.video.quality,d=this.videoData.D.video.isHdr());a:{switch(I){case "highres":case "hd2880":I="UHD2";break;case "hd2160":case "hd1440":I="UHD1";break;case "hd1080":case "hd720":I="HD";break;case "large":case "medium":case "small":case "light":case "tiny":I="SD";break;default:I="";break a}d&&(I+="HDR")}I=uG(Z)?GV(Z,I):Z.N.includes(I);if(this.Y("html5_enable_vp9_fairplay")){if(d)if(Z.V){var Y;if((Y= this.yI)==null?0:dH(Y.L))if((d=this.yI)==null)d=0;else{for(var T=Y=void 0,f=g.t(d.D.values()),P=f.next();!P.done;P=f.next())P=P.value,Y||(Y=gWi(P,"SD")),T||(T=gWi(P,"AUDIO"));d.wd({sd:Y,audio:T});d=Y==="output-restricted"||T==="output-restricted"}else d=!I;if(d){this.D1("drm",{dshdr:1});NXn(this.Yk);return}}else{this.videoData.f2||(this.videoData.f2=!0,this.D1("drm",{dphdr:1}),this.K6(!0));return}var O;if((O=this.yI)==null?0:dH(O.L))return}else if(O=Z.V&&I,d&&!O){NXn(this.Yk);return}I||GV(Z,"AUDIO")&& GV(Z,"SD")||(Z=X$9(Z),this.Wr?(this.publish("drmoutputrestricted"),this.Y("html5_report_fatal_drm_restricted_error_killswitch")||this.pj("drm.keyerror",2,void 0,"info."+Z)):(this.Wr=!0,this.nj(new g.dj("qoe.restart",Object.assign({},{retrydrm:1},Z))),J7(this),sTB(this)))}; g.n.IUZ=function(){if(!this.videoData.In&&this.mediaElement&&!this.isBackground()){var Z="0";this.mediaElement.f0()>0&&Tb(this.mediaElement)>=5&&this.videoData.Z&&this.videoData.Z.L&&(this.I4(LA(this.playerState,1)),ib(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),Z="1");SyD(this);var I=this.videoData.Z;Z={restartmsg:Z,mfmt:!vq(this.videoData),mdrm:!(!(I&&I.videoInfos&&I.videoInfos.length&&I.videoInfos[0].T_)||this.yI),mfmtinfo:!this.videoData.D,prerolls:this.Wl()?this.uV.join(","): "0"};if(this.yI){I=this.yI;if(I.D.size<=0){var d="ns;";I.In||(d+="nr;");I=d+="ql."+I.Z.length}else I=X$9(I.D.values().next().value),I=VQ(I);Z.drmp=I}var Y;Object.assign(Z,((Y=this.loader)==null?void 0:Y.Gb())||{});var T;Object.assign(Z,((T=this.mediaElement)==null?void 0:T.Gb())||{});this.wK.nj("qoe.start15s",VQ(Z));this.publish("loadsofttimeout")}}; g.n.cT=function(Z){this.videoData.lengthSeconds!==Z&&(this.videoData.lengthSeconds=Z,Lk(this))}; g.n.o9=function(Z,I){var d=this;Z=Z===void 0?!1:Z;if(!this.N$)if(H6("att_s","player_att")||c6("att_s",void 0,"player_att"),this.Y("use_rta_for_player"))(function(){var T,f,P,O;return g.h(function(a){switch(a.L){case 1:if(!(T=Z)){a.xS(2);break}return g.m(a,g.nMJ(),3);case 3:T=!a.D;case 2:if(T)return a.return();g.ez(a,4);f=LCJ(d.wK);if(!f)throw Error();P={};return g.m(a,g.NVr((P.cpn=d.videoData.clientPlaybackNonce,P.encryptedVideoId=d.videoData.videoId||"",P),3E4),6);case 6:O=a.D;if(d.N$)throw Error(); if(!O.challenge)throw g.uL(Error("Not sending attestation ping; no attestation challenge string")),Error();d.N$=!0;var W=[O.challenge];if(O.error){var e=sqt();e=IzB(e).get(O.error)||0;W.push("r1c="+e)}else O.webResponse&&W.push("r1a="+O.webResponse);var B;((B=O.adblockReporting)==null?void 0:B.reportingStatus)!==void 0&&W.push("r6a="+O.adblockReporting.reportingStatus);var w;((w=O.adblockReporting)==null?void 0:w.broadSpectrumDetectionResult)!==void 0&&W.push("r6b="+O.adblockReporting.broadSpectrumDetectionResult); f(W.join("&"));c6("att_f",void 0,"player_att");g.gE(a,0);break;case 4:g.Bj(a),c6("att_e",void 0,"player_att"),g.v6(a)}})})().then(function(){I==null||I()}); else{var Y=new g.t9n(this.videoData);if("c1a"in Y.xx&&!g.Zm.isInitialized()){c6("att_wb",void 0,"player_att");this.Gp===2&&Math.random()<.01&&g.uL(Error("Botguard not available after 2 attempts"));if(Z)return;if(this.Gp<5){g.Zy(this.bb);this.Gp++;return}}(Y=g.k49(Y))?(c6("att_f",void 0,"player_att"),He$(this.wK,Y),this.N$=!0):c6("att_e",void 0,"player_att")}}; g.n.HB=function(Z){Z=Z===void 0?!1:Z;return ru(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.QX()||g.IS(this.videoData))?this.getCurrentTime():this.tZ(Z)}; g.n.dR=function(){return this.p_()}; g.n.tZ=function(Z){return this.jJ.tZ(Z===void 0?!1:Z)}; g.n.p_=function(){return this.jJ.p_()}; g.n.Fx=function(){return this.jJ?this.jJ.Fx():0}; g.n.getStreamTimeOffset=function(){return this.jJ?this.jJ.getStreamTimeOffset():0}; g.n.Mm=function(){return this.getStreamTimeOffset()===0?this.Fx():this.getStreamTimeOffset()}; g.n.setPlaybackRate=function(Z){var I;this.playbackRate!==Z&&QB(this.xe,(I=this.videoData.Z)==null?void 0:I.videoInfos)&&(this.playbackRate=Z,J7(this));this.playbackRate=Z;this.mediaElement&&this.mediaElement.setPlaybackRate(Z)}; g.n.getPlaybackRate=function(){return this.playbackRate}; g.n.getPlaybackQuality=function(){var Z="unknown";if(this.videoData.D&&(Z=this.videoData.D.video.quality,Z==="auto"&&this.mediaElement)){var I=this.pJ();I&&I.videoHeight>0&&(Z=Ei(I.videoWidth,I.videoHeight))}return Z}; g.n.isHdr=function(){return!!(this.videoData.D&&this.videoData.D.video&&this.videoData.D.video.isHdr())}; g.n.sendVideoStatsEngageEvent=function(Z,I){var d=this.wK;d.L?(d=mD(d.L,"engage"),d.Ns=Z,d.send(I)):I&&I()}; g.n.fl=function(Z){return this.wK.fl(Z)}; g.n.isAtLiveHead=function(Z,I){I=I===void 0?!1:I;return ru(this.videoData)&&(this.UB||I)?this.jJ.isAtLiveHead(Z):!1}; g.n.T0=function(){var Z=this.tZ(),I=this.getCurrentTime(),d;(d=!ru(this.videoData))||(d=this.jJ,d=!(d.L&&d.L.Z));return d||this.QX()||isNaN(Z)||isNaN(I)?0:Math.max(0,Z-I)}; g.n.Y5=function(Z){(this.UB=Z)||this.aC.stop();if(this.videoData.L)if(Z)this.videoData.L.resume();else{var I=this.videoData.L;I.B&&I.B.stop()}this.loader&&(I=this.videoData.Y("html5_disable_preload_for_ssdai_with_preroll")&&this.PS()&&this.videoData.isLivePlayback,Z&&!I?this.loader.resume():NP(this,!0));g.b(this.playerState,2)||Z?g.b(this.playerState,512)&&Z&&this.I4(j9(this.playerState,512)):this.I4(LA(this.playerState,512));I=this.wK;I.qoe&&(I=I.qoe,g.Vt(I,g.NC(I.provider),"stream",[Z?"A":"I"]))}; g.n.S1=function(Z){this.wK.nj("player.exception",VQ({n:Z.name,m:Z.message}))}; g.n.Kw=vF(22);g.n.lW=vF(51);g.n.pw=function(Z){this.wK.pw(Z)}; g.n.S5=function(Z){this.wK.S5(Z)}; g.n.j5=function(Z){this.wK.j5(Z)}; g.n.G9=vF(28);g.n.yQ=vF(34);g.n.P8=function(Z){this.wK.P8(Z)}; g.n.y4=function(Z,I,d,Y){this.wK.y4(Z,I,d,Y)}; g.n.X8=function(){this.D1("hidden",{},!0)}; g.n.bU=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.n.gW=function(){return this.loader?this.loader.gW():!0}; g.n.setLoop=function(Z){this.loop=Z;this.mediaElement&&!g.RK(this.U)&&this.mediaElement.setLoop(Z)}; g.n.sY=function(){return this.mediaElement&&!g.RK(this.U)?this.mediaElement.sY():this.loop}; g.n.R_=function(Z){this.D1("timestamp",{o:Z.toString()});this.jJ.R_(Z)}; g.n.On=function(Z){this.KM.tick(Z)}; g.n.DG=function(Z){return this.KM.DG(Z)}; g.n.Ni=function(Z){this.KM.Ni(Z)}; g.n.D1=function(Z,I,d){this.wK.D1(Z,I,d===void 0?!1:d)}; g.n.x3=function(Z,I,d){this.wK.D1(Z,I,d===void 0?!1:d)}; g.n.nj=function(Z){this.wK.nj(Z.errorCode,VQ(Z.details));Z=Z.errorCode;if(this.videoData.isLivePlayback&&(Z==="qoe.longrebuffer"||Z==="qoe.slowseek")||Z==="qoe.restart"){Z=this.loader?UJE(this.loader.videoTrack):{};var I,d;this.D1("lasoe",Object.assign(this.loader?UJE(this.loader.audioTrack):{},(I=this.Fm)==null?void 0:(d=I.L)==null?void 0:d.W2()));var Y,T;this.D1("lvsoe",Object.assign(Z,(Y=this.Fm)==null?void 0:(T=Y.D)==null?void 0:T.W2()))}if(this.Y("html5_log_centralized_player_time")){var f;this.D1("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(f=this.loader)==null?void 0:tr(f)})}}; g.n.GE=function(Z,I,d){this.wK.GE(Z,I,d)}; g.n.Gk=function(Z,I,d,Y,T,f,P,O){var a;if((a=this.videoData.L)!=null&&a.isLive){var W=I.playerType===2?I:Z,e=Z.videoData.videoId,B=I.videoData.videoId;if(e&&B){a=this.wK;if(a.qoe){var w=a.qoe,V=Z.cpn,N=I.cpn,q=W.videoData.Vf,A=w.provider.videoData.clientPlaybackNonce,F=w.provider.videoData.videoId,J=N!==A&&B!==F;A=V!==A&&e!==F;w.reportStats();w.adCpn&&w.adCpn!==V||(w.adCpn=A?V:"",w.ip=A?e:"",w.adFormat=A?q:void 0,qVE(w,f?4:T?2:0,N,B,Y),w.reportStats(),w.adCpn=J?N:"",w.ip=J?B:"",w.adFormat=J?q:void 0, qVE(w,f?5:T?3:1,V,e,d),w.reportStats())}d=Z.cpn;if(a.Z.has(d)){if(T=a.Z.get(d),u$(T,!0).send(),FE(T),d!==a.provider.videoData.clientPlaybackNonce){z2(T);var v;(v=a.L)==null||ME(v);a.Z.delete(d)}}else a.l4=a.provider.videoData.clientPlaybackNonce,a.l4&&a.L&&(a.Z.set(a.l4,a.L),u$(a.L).send(),FE(a.L));v=I.cpn;W=W.videoData;Y-=this.Mm();if(a.Z.has(v)){Y=a.Z.get(v);var l=Y.Z&&isNaN(Y.B)?sR(Y):NaN;Y=hR(Y,!1);isNaN(l)||(Y.V=l);Y.send()}else Y=mud(a,a.provider,W,Y),a.Z.set(v,Y),mz(Y,new g.cQ(LA(new g.ns, 8),new g.ns)),Y.lP(),(l=a.L)==null||FE(l);a.l4=v;if(this.Y("html5_unify_csi_server_stitched_transition_logging")){if(a=this.KM,l=I.cpn,Y=this.videoData.clientPlaybackNonce,I=I.videoData,Z=(Z.cpn===Y?"video":"ad")+"_to_"+(l===Y?"video":"ad"),Z!=="video_to_ad"){Y=Z==="ad_to_video"?void 0:I;W=Y==null?void 0:Y.zY;v={};if(I==null?0:I.j)v.cttAuthInfo={token:I.j,videoId:I.videoId};P&&(v.startTime=P);Pr(Z,v);var X,H,x;P={targetVideoId:(X=I==null?void 0:I.videoId)!=null?X:"empty_video",targetCpn:l,adVideoId:(H= Y==null?void 0:Y.videoId)!=null?H:"empty_video",adClientPlaybackNonce:(x=W==null?void 0:W.cpn)!=null?x:Y==null?void 0:Y.clientPlaybackNonce};W&&(P.adBreakType=W.adBreakType,P.adType=W.adType);g.Qg(P,Z);qU(a,O,Z)}}else X=this.KM,x=this.videoData.clientPlaybackNonce,H=I.videoData,x=(Z.cpn===x?"video":"ad")+"_to_"+(I.cpn===x?"video":"ad"),Z={},H.j&&(Z.cttAuthInfo={token:H.j,videoId:H.videoId}),P&&(Z.startTime=P),Pr(x,Z),g.Qg({targetVideoId:H.videoId,targetCpn:I.cpn,isSsdai:!0},x),P||qU(X,O,x)}}else g.ZB(this.logger, 360717806,"SSTEvent for nonSS")}; g.n.qY=function(){var Z=this.q8,I=Z.R3;Z.R3=[];return I}; g.n.Uh=function(Z){this.videoData.Vu=!0;this.nj(new g.dj("sabr.fallback",Z));this.K6(!0)}; g.n.pB=function(Z,I){this.videoData.VT=!0;if(I===void 0||I)this.nj(new g.dj("qoe.restart",Z)),this.K6(!0)}; g.n.n7=function(Z){this.D1("sdai",{aftimeout:Z});this.nj(new g.dj("ad.fetchtimeout",{timeout:Z}))}; g.n.xa=function(Z,I){this.D1("timelineerror",Z);Z=new g.dj("dai.timelineerror",Z);I?this.pj("dai.timelineerror",1,"RETRYABLE_ERROR",VQ(Z.details)):this.nj(Z)}; g.n.VC=function(){return g.NC(this.wK.provider)}; g.n.getPlayerSize=function(){return this.A3.getPlayerSize()}; g.n.BJ=function(){return this.A3.BJ()}; g.n.MA=function(){return this.KM}; g.n.Ci=function(){return this.q8.Ci()}; g.n.getVolume=function(){return this.q8.getVolume()}; g.n.mz=function(){return this.q8.mz()}; g.n.isMuted=function(){return this.q8.isMuted()}; g.n.Ad=function(){return this.q8.Ad()}; g.n.Et=function(){this.tA=!0}; g.n.Y=function(Z){return this.U.Y(Z)}; g.n.BO=function(){return this.U.BO()}; g.n.Co=function(Z,I,d,Y,T){this.D1("xvt",{m:Z,g:I?1:0,tt:d?1:0,np:Y?1:0,c:T})}; g.n.V3=function(){var Z;(Z=this.loader)==null||Z.resume()}; g.n.PS=function(){return g.Kc(this.uV,"ad")}; g.n.GL=function(){var Z=this.getCurrentTime(),I=Z-this.Fx();var d=this.mediaElement?zH(this.mediaElement.cE()):0;d=Math.floor(Math.max(d-I,0))+100;var Y;return((Y=this.loader)==null?0:Y.GL(I,d))?(this.D1("sdai",{skipad:1,ct:I.toFixed(3),adj:d.toFixed(3)}),j2(this.videoData)&&this.loader.seek(I+d,{seekSource:89,H$:"videoplayer_skipServerStitchedAd"}),Z$i(this.jJ,Z),!0):!1}; g.n.Vy=function(){return this.U.Vy()}; g.n.EY=function(){if(this.Y("html5_generate_content_po_token"))return this.videoData.wU||"";this.q8.Pw();return this.U.wV||""}; g.n.lN=function(){if(this.videoData.videoId)return this.videoData.gA}; g.n.FQ=function(){return this.videoData.videoId}; g.n.gI=function(){return this.q8.Lg}; g.n.HN=function(){return this.NZ}; g.n.h6=function(){return this.q8.h6()}; g.n.rE=function(Z,I,d){this.I4(LA(this.playerState,16,d));this.jJ.rE(Z,I)}; g.n.prefetchKeyPlay=function(Z,I){var d;(d=this.loader)==null||d.prefetchKeyPlay(Z,I)}; g.n.R6=function(Z){return this.jJ.R6(Z)}; g.n.PZ=function(){this.jJ.PZ()}; g.n.s6=function(Z,I){var d=this.Y("html5_generate_content_po_token")?this.videoData:void 0;this.q8.s6(Z,I,d)}; g.n.tT=function(Z,I){this.wK.tT(Z,I)}; g.n.CJ=function(){return this.wK.CJ()}; g.n.yn=function(){return this.videoData.V$}; g.n.m0=function(){return this.q8.m0()}; g.n.Ml=function(){return this.q8.Ml(this)}; g.n.wO=function(){this.Lq=!0}; g.n.Ff=function(Z){var I;(I=this.loader)==null||I.Ff(Z)};g.U(t$B,$w);g.U(rU,lJ);rU.prototype.L=function(Z){Z&&Mk(this,this.S.getLoopVideo());this.S.logVisibility(this.element,Z)}; rU.prototype.logClick=function(){this.S.logClick(this.element)}; rU.prototype.onLoopChange=function(Z){Mk(this,Z)}; rU.prototype.D=function(Z){this.S.setLoopVideo(Z)};g.U(pOE,$w);g.U(Jh,$w);g.n=Jh.prototype;g.n.seekToChapterWithAnimation=function(Z){var I=this;if(g.k6(this.api)&&!(Z<0)){var d=this.api.getVideoData(),Y=d.Mj;if(Y&&Z=0)return;I=~I;g.H4(this.items,I,0,Z);Za(this.menuItems.element,Z.element,I)}Z.subscribe("size-change",this.a_,this);this.menuItems.publish("size-change")}; g.n.hj=function(){aia(this)||this.items[0].focus();return!0}; g.n.U3=function(){this.items[this.items.length-1].focus();return!0}; g.n.Bb=function(Z){Z.unsubscribe("size-change",this.a_,this);this.OZ()||(g.s4(this.items,Z),this.menuItems.element.removeChild(Z.element),this.menuItems.publish("size-change"))}; g.n.a_=function(){this.menuItems.publish("size-change")}; g.n.focus=function(){for(var Z=0,I=0;I1&&g.LE(this)}; g.n.Bz=function(){VaL(this);this.LM&&(SHE(this),g.A9(this.element,this.size))}; g.n.BB=function(){var Z=this.L.pop();RQ(this,Z,this.L[this.L.length-1],!0)}; g.n.cJ=function(Z){if(!Z.defaultPrevented)switch(Z.keyCode){case 27:this.zb();Z.preventDefault();break;case 37:this.L.length>1&&this.BB();Z.preventDefault();break;case 39:Z.preventDefault()}}; g.n.focus=function(){this.L.length&&this.L[this.L.length-1].focus()}; g.n.g4=function(){g.GA.prototype.g4.call(this);this.Z&&this.Z.dispose();this.N&&this.N.dispose()};g.U(Cv,g.zA);Cv.prototype.open=function(Z,I){this.initialize(Z.items)&&this.dn(I,!!I)}; Cv.prototype.initialize=function(Z){g.y$(this.UP);if(Z===void 0||Z.length===0)return!1;var I=Z.length;Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())this.vk(d.value,I--);return!0}; Cv.prototype.vk=function(Z,I){Z.menuNavigationItemRenderer?TYi(this,Z.menuNavigationItemRenderer,I):Z.menuServiceItemRenderer&&rFl(this,Z.menuServiceItemRenderer,I)};g.U(jZ,WC);g.n=jZ.prototype;g.n.Lo=function(Z){Z.target!==this.dismissButton.element&&Z.target!==this.overflowButton.element&&(this.Xf(),this.onClickCommand&&this.S.Rn("innertubeCommand",this.onClickCommand))}; g.n.F4=function(){this.enabled=!1;this.X.hide()}; g.n.L8=function(){return!!this.L&&this.enabled}; g.n.onVideoDataChange=function(Z,I){this.qX(I);if(this.L){this.Xa();a:if(!this.isCounterfactual){var d,Y,T;this.banner.update({title:(d=this.L)==null?void 0:d.title,subtitle:(Y=this.L)==null?void 0:Y.subtitle,metadata:(T=this.L)==null?void 0:T.metadataText});var f;this.onClickCommand=g.y((f=this.L)==null?void 0:f.onTap,c2);var P;if(Z=g.y((P=this.L)==null?void 0:P.onOverflow,c2))this.j=g.y(Z,I0t);var O;if((O=this.L)==null?0:O.thumbnailImage){var a,W;P=((a=this.L)==null?void 0:(W=a.thumbnailImage)== null?void 0:W.sources)||[];if(P.length===0)break a;this.thumbnailImage.update({url:P[0].url})}else{var e;if((e=this.L)==null?0:e.thumbnailIconName){var B;this.thumbnailIcon.update({icon:(B=this.L)==null?void 0:B.thumbnailIconName})}}var w;this.shouldShowOverflowButton=!((w=this.L)==null||!w.shouldShowOverflowButton);var V;this.shouldHideDismissButton=!((V=this.L)==null||!V.shouldHideDismissButton)}var N;this.banner.element.setAttribute("aria-label",((N=this.L)==null?void 0:N.a11yLabel)||"");var q; this.sZ=(q=this.L)==null?void 0:q.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;s3l(this)}}; g.n.Co5=function(){this.isVisible=!0;s3l(this)}; g.n.Pom=function(){this.isVisible=!1;s3l(this)}; g.n.Rp=function(){WC.prototype.Rp.call(this);this.D&&this.S.logVisibility(this.banner.element,this.isVisible)}; g.n.Xf=function(){WC.prototype.Xf.call(this,!1);this.D&&this.S.logClick(this.banner.element)}; g.n.WR=function(Z){this.B||(this.B=new Cv(this.S),g.z(this,this.B));var I,d;if((I=this.j)==null?0:(d=I.menu)==null?0:d.menuRenderer)this.B.open(this.j.menu.menuRenderer,Z.target),Z.preventDefault()}; g.n.qX=function(){}; g.n.Xa=function(){}; g.n.g4=function(){this.S.jM("suggested_action_view_model");WC.prototype.g4.call(this)};g.U(k2,jZ); k2.prototype.qX=function(Z){var I,d,Y;this.productUpsellSuggestedActionViewModel=g.y((I=Z.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(Y=d.playerOverlayRenderer)==null?void 0:Y.suggestedActionViewModel,VRd);var T;if((T=this.productUpsellSuggestedActionViewModel)==null?0:T.content){var f;this.L=g.y((f=this.productUpsellSuggestedActionViewModel)==null?void 0:f.content,MV0)}var P,O;if(this.D=!!((P=this.productUpsellSuggestedActionViewModel)==null?0:(O=P.loggingDirectives)==null? 0:O.trackingParams)){var a,W;this.S.setTrackingParams(this.banner.element,((a=this.productUpsellSuggestedActionViewModel)==null?void 0:(W=a.loggingDirectives)==null?void 0:W.trackingParams)||null)}var e;this.isCounterfactual=!((e=this.productUpsellSuggestedActionViewModel)==null||!e.isCounterfactualServing)}; k2.prototype.Xa=function(){var Z=[],I,d=g.t(((I=this.productUpsellSuggestedActionViewModel)==null?void 0:I.ranges)||[]);for(I=d.next();!I.done;I=d.next()){var Y=I.value;Y&&(I=Number(Y.startTimeMilliseconds),Y=Number(Y.endTimeMilliseconds),isNaN(I)||isNaN(Y)||Z.push(new g.S8(I,Y,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.S.eM(Z)};g.U(zai,$w);g.U(XH,$w);XH.prototype.onVideoDataChange=function(Z,I){var d=this;if(!qA(I)&&(Z==="newdata"&&Nh(this),this.L&&Z==="dataloaded")){this.L=!1;var Y;Sr(BC(ww(this.api.C(),(Y=this.api.getVideoData())==null?void 0:g.VO(Y)),function(T){S0J(d,T)}),function(){d.L=!0})}}; XH.prototype.NA=function(){var Z=this;if(g.RK(this.api.C())){var I,d=g.NF(this.api.C(),(I=this.api.getVideoData())==null?void 0:g.VO(I));return BC(iW(d),function(Y){var T=lF();E3(T,Y);return Z.api.NA(T)})}return iW(this.api.NA())};g.U(g.St,g.w9);g.n=g.St.prototype;g.n.open=function(){g.Li(this.A5,this.Ja)}; g.n.L6=function(Z){jVr(this);var I=this.options[Z];I&&(I.element.setAttribute("aria-checked","true"),this.setContent(this.KA(Z)),this.Z=Z)}; g.n.iW=function(Z){g.y$(this.Ja);for(var I={},d=!1,Y=0;Y=0?this.L.playbackRate:1}catch(Z){return 1}}; g.n.setPlaybackRate=function(Z){this.getPlaybackRate()!==Z&&(this.L.playbackRate=Z);return Z}; g.n.sY=function(){return this.L.loop}; g.n.setLoop=function(Z){this.L.loop=Z}; g.n.canPlayType=function(Z,I){return this.L.canPlayType(Z,I)}; g.n.isPaused=function(){return this.L.paused}; g.n.isSeeking=function(){return this.L.seeking}; g.n.isEnded=function(){return this.L.ended}; g.n.ox=function(){return this.L.muted}; g.n.dZ=function(Z){iJd();this.L.muted=Z}; g.n.bI=function(){return this.L.played||JF([],[])}; g.n.cE=function(){try{var Z=this.L.buffered}catch(I){}return Z||JF([],[])}; g.n.MJ=function(){return this.L.seekable||JF([],[])}; g.n.Wp=function(){var Z=this.L;return Z.getStartDate?Z.getStartDate():null}; g.n.getCurrentTime=function(){return this.L.currentTime}; g.n.setCurrentTime=function(Z){this.L.currentTime=Z}; g.n.getDuration=function(){return this.L.duration}; g.n.load=function(){var Z=this.L.playbackRate;try{this.L.load()}catch(I){}this.L.playbackRate=Z}; g.n.pause=function(){this.L.pause()}; g.n.play=function(){var Z=this.L.play();if(!Z||!Z.then)return null;Z.then(void 0,function(){}); return Z}; g.n.f0=function(){return this.L.readyState}; g.n.Xl=function(){return this.L.networkState}; g.n.dB=function(){return this.L.error?this.L.error.code:null}; g.n.LF=function(){return this.L.error?this.L.error.message:""}; g.n.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.L instanceof window.HTMLVideoElement&&this.L.getVideoPlaybackQuality)return this.L.getVideoPlaybackQuality();if(this.L){var Z=this.L,I=Z.webkitDroppedFrameCount;if(Z=Z.webkitDecodedFrameCount)return{droppedVideoFrames:I||0,totalVideoFrames:Z}}return{}}; g.n.z9=function(){return!!this.L.webkitCurrentPlaybackTargetIsWireless}; g.n.N6=function(){return!!this.L.webkitShowPlaybackTargetPicker()}; g.n.togglePictureInPicture=function(){var Z=this.L,I=window.document;window.document.pictureInPictureEnabled?this.L!==I.pictureInPictureElement?Z.requestPictureInPicture():I.exitPictureInPicture():ZHB()&&Z.webkitSetPresentationMode(Z.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.n.Jf=function(){var Z=this.L;return new g.vS(Z.offsetLeft,Z.offsetTop)}; g.n.getSize=function(){return g.C2(this.L)}; g.n.setSize=function(Z){g.A9(this.L,Z)}; g.n.getVolume=function(){return this.L.volume}; g.n.setVolume=function(Z){iJd();this.L.volume=Z}; g.n.Ka=function(Z){this.B[Z]||(this.L.addEventListener(Z,this.listener),this.B[Z]=this.listener)}; g.n.setAttribute=function(Z,I){this.L.setAttribute(Z,I)}; g.n.removeAttribute=function(Z){this.L.removeAttribute(Z)}; g.n.hasAttribute=function(Z){return this.L.hasAttribute(Z)}; g.n.Xk=vF(61);g.n.Rc=vF(63);g.n.dQ=vF(65);g.n.aQ=vF(67);g.n.SH=function(){return sl(this.L)}; g.n.Sc=function(Z){g.xw(this.L,Z)}; g.n.PH=function(Z){return g.Jr(this.L,Z)}; g.n.DK=function(){return g.H7(document.body,this.L)}; g.n.audioTracks=function(){var Z=this.L;if("audioTracks"in Z)return Z.audioTracks}; g.n.g4=function(){for(var Z=g.t(Object.keys(this.B)),I=Z.next();!I.done;I=Z.next())I=I.value,this.L.removeEventListener(I,this.B[I]);nH.prototype.g4.call(this)}; g.n.Pr=function(Z){this.L.disableRemotePlayback=Z};g.U(V7,g.k);g.U(s3,g.k);s3.prototype.show=function(){g.k.prototype.show.call(this);this.qs()}; s3.prototype.hide=function(){g.k.prototype.hide.call(this);this.delay.stop();this.N.stop()}; s3.prototype.qs=function(){var Z=(0,g.o8)(),I=jT7(this.Wj);ra(this.L,I.bandwidth_samples);ra(this.j,I.network_activity_samples);ra(this.Z,I.live_latency_samples);ra(this.D,I.buffer_health_samples);var d={};I=g.t(Object.entries(I));for(var Y=I.next();!Y.done;Y=I.next()){var T=g.t(Y.value);Y=T.next().value;T=T.next().value;this.V[Y]!==T&&(d[Y]=" "+String(T));this.V[Y]=T}this.update(d);Z=(0,g.o8)()-Z>25?5E3:500;this.delay.start(Z)}; s3.prototype.X=function(){this.B?(this.position+=1,this.position>15&&(this.B=!1)):(--this.position,this.position<=0&&(this.B=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.N.start(2E4)};g.U(AiD,$w);g.U(K9,g.p);K9.prototype.L=function(){var Z=(0,g.o8)()-this.startTime;Z=Zthis.N[Z])&&(this.L=Z,this.oC())}; g.n.onCueRangeExit=function(Z){var I=Pb$(this,Z);I&&this.L===Z&&this.api.Rn("innertubeCommand",I);IY(this);this.L=void 0}; g.n.mG=function(Z){this.Z=Z}; g.n.lq=function(){this.oC();this.Z=void 0}; g.n.oC=function(){if(this.L!==void 0){var Z=(Z=mh(this,this.L))&&Z.onCueRangeEnter?q$(Z.onCueRangeEnter):void 0;var I=mh(this,this.L);a:if(I&&I.additionalTrigger){var d=g.t(I.additionalTrigger);for(var Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,Y.type){var T=void 0,f=void 0;if((T=this.Bj[Y.type])==null?0:T((f=Y.args)!=null?f:{})){d=!0;break a}}d=!1}else d=!0;Z&&d&&(this.api.Rn("innertubeCommand",Z),QEJ(this,I),this.N[this.L]!==void 0&&this.N[this.L]++,this.In=!0)}}; g.n.g4=function(){this.timelyActions=this.Z=this.L=this.videoId=void 0;this.N={};this.vB();IY(this);$w.prototype.g4.call(this)};g.U(DEL,$w);g.U(pI,lJ);pI.prototype.N=function(Z){this.Z(Z?2:1)}; pI.prototype.sV=function(){var Z=this.S.getPresentingPlayerType();Z!==2&&Z!==3||!this.L?this.S.Y("html5_enable_new_audio_settings_menu")?(Z=this.getVoiceBoostState(),Z!==1?(Z===0?(Mk(this,this.D()===2),this.setEnabled(!0)):(Mk(this,!1),this.setEnabled(!1)),this.L||(this.A5.vk(this),this.L=!0)):this.L&&(this.A5.Bb(this),this.L=!1)):this.L||(Z=this.hasVoiceBoostAudioTrack(),this.setEnabled(Z),Z=this.D()===2&&Z,Mk(this,Z),this.A5.vk(this),this.L=!0):(this.L=!1,this.A5.Bb(this))}; pI.prototype.g4=function(){this.A5.Bb(this);lJ.prototype.g4.call(this)};g.U(KU,$w);g.n=KU.prototype;g.n.getVoiceBoostUserPreference=function(){return this.L}; g.n.setVoiceBoostUserPreference=function(Z){this.api.D1("vb_set",{pref:Z});g.AU("yt-player-voice-boost",Z);Z!==this.L&&(this.L=Z,this.updateEnvironmentData(),this.hasVoiceBoostAudioTrack()&&this.api.m6(),this.api.Dt())}; g.n.hasVoiceBoostAudioTrack=function(){var Z,I,d=(Z=this.api.getVideoData())==null?void 0:(I=Z.Z)==null?void 0:I.L;return d?nF(d,function(Y){var T;return((T=Y.audio)==null?void 0:T.D)===!0}):!1}; g.n.getVoiceBoostState=function(){return this.api.qt(1)}; g.n.updateEnvironmentData=function(){this.api.C().ir=this.L};g.U(wh,$w);wh.prototype.g4=function(){this.V&&(g.g0(this.V),this.V=void 0);$w.prototype.g4.call(this)}; wh.prototype.Pw=function(){(this.D?!this.L:this.Z)&&oE(this)}; wh.prototype.GD=function(Z,I,d){var Y=this;if(d19(Z)){var T=d||"";if(this.L)I=bR(this,T),a1$(Z,I);else{var f=new g.f2;I.push(f.promise);this.B.promise.then(function(){var P=bR(Y,T);a1$(Z,P);f.resolve()})}}}; wh.prototype.dH=function(Z){var I=this;if(this.D||this.Z)Z.wU=bR(this,Z.videoId),this.L||(this.N=new HA,this.B.promise.then(function(){I.KM.DG("pot_if");Z.wU=bR(I,Z.videoId)}))};g.U(g.xI,g.k);g.xI.prototype.select=function(){this.api.LW(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.CC||void 0)&&this.api.logClick(this.element)}; g.xI.prototype.onClick=function(Z){if(g.Dh(this.api.C())&&this.api.Y("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var I=this.suggestion.EM(),d={};g.n6(this.api,d);I=g.gq(I,d);g.$n(I,this.api,Z)}else g.D_(Z,this.api,this.D,this.suggestion.sessionData||void 0)&&this.select()}; g.xI.prototype.onKeyPress=function(Z){switch(Z.keyCode){case 13:case 32:Z.defaultPrevented||(this.select(),Z.preventDefault())}}; g.xI.prototype.onVideoDataChange=function(){var Z=this.api.getVideoData(),I=this.api.C();this.D=Z.IN?!1:I.N};g.U(QK,g.k);QK.prototype.g4=function(){this.hide();g.aL(this.D);g.t$(this.stills);this.stills.length=0;g.k.prototype.g4.call(this)}; QK.prototype.Z=function(Z){this.N&&this.N(Z)}; QK.prototype.onVideoDataChange=function(){this.videoData=this.player.getVideoData(1);var Z,I,d,Y,T;var f=(((Z=this.videoData)==null?0:(I=Z.suggestions)==null?0:I.length)?(d=this.videoData)==null?void 0:d.suggestions:((Y=this.videoData)==null?0:g.wi(Y))?[(T=this.videoData)==null?void 0:g.wi(T)]:[]).slice(0,18);if((Z=this.B)&&this.L)if(g.Nd(Z),f.length)for(this.stills.length>f.length&&g.t$(this.stills.splice(f.length)),this.stills.length=f.length,I=0;I=0;Z--)this.features[Z].dispose();this.features.length=0;g.p.prototype.g4.call(this)};wb7.prototype.reset=function(){this.L=this.D=NaN};g.n=kV.prototype;g.n.reset=function(){It(this.timerName)}; g.n.tick=function(Z,I){O7(Z,I,this.timerName)}; g.n.DG=function(Z){return On(Z,void 0,this.timerName)}; g.n.Ni=function(Z){g.aI(Z,void 0,this.timerName)}; g.n.infoGel=function(Z){g.Qg(Z,this.timerName)};g.U(Av,g.dx);g.n=Av.prototype;g.n.wf=function(Z){return this.loop||!!Z||this.index+1=0}; g.n.setShuffle=function(Z){this.shuffle=Z;Z=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var I=0;I=I.top&&Z.right<=I.right&&Z.bottom<=I.bottom&&Z.left>=I.left))return}eg(this,2,!1)}; g.n.Ep=function(Z){var I=new g.vS(Z.pageX,Z.pageY);yG(I,this.N)||(this.N=I,(Z=Z.target)&&this.uC(Z)&&(eg(this,4,!0),this.L.a4(this.Z),this.Z=this.L.W(this.target,"mouseover",this.L$),this.V=this.L.W(this.target,"mouseout",this.L$)))}; g.n.L$=function(Z){Z=Z.relatedTarget;Z&&this.uC(Z)||(this.N=new g.vS(NaN,NaN),dal(this))}; g.n.B47=function(){eg(this,1,!0)}; g.n.zq=function(Z){Z=Z.target;Z instanceof Element&&!(Z.tabIndex>0)||eg(this,1,!0)}; g.n.lO=function(){this.j=!0;this.L.a4(this.B);this.B=this.L.W(document,"mouseup",this.Xv)}; g.n.Xv=function(){this.j=!1;eg(this,8,!1);this.L.a4(this.B);this.B=this.L.W(this.target,"mousedown",this.lO)}; g.n.sD=function(Z){if(Z=(Z=Z.changedTouches)&&Z[0])this.Bj=Z.identifier,this.L.a4(this.X),this.X=this.L.W(this.target,"touchend",this.r7,void 0,!0),eg(this,1024,!0)}; g.n.r7=function(Z){if(Z=Z.changedTouches)for(var I=0;I1280||T>720)if(I=Y.uT("maxresdefault.jpg"))break;if(f>640||T>480)if(I=Y.uT("maxresdefault.jpg"))break;if(f>320||T>180)if(I=Y.uT("sddefault.jpg")||Y.uT("hqdefault.jpg")||Y.uT("mqdefault.jpg"))break;if(I=Y.uT("default.jpg"))break}g.Mw(Z)&&(Z=new Image,Z.addEventListener("load", function(){bq$()}),Z.src=I?I:"",this.api.MA().tick("ftr")); this.N.style.backgroundImage=I?"url("+I+")":""};g.U(g.Aa,g.k);g.Aa.prototype.resize=function(){}; g.Aa.prototype.D=function(Z){var I=this;this.Z=!1;KrB(this);var d=Z.xq,Y=this.api.C();d!=="GENERIC_WITHOUT_LINK"||Y.j?d==="TOO_MANY_REQUESTS"?(Y=this.api.getVideoData(),this.setContent(cC(this,"TOO_MANY_REQUESTS_WITH_LINK",Y.EM(),void 0,void 0,void 0,!1))):d!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||Y.j?this.api.C().Y("html5_enable_bandaid_error_screen")&&d==="HTML5_SPS_UMP_STATUS_REJECTED"&&!Y.j?(Y=Y.hostLanguage,Z="//support.google.com/youtube?p=videoError",Y&&(Z=g.gq(Z,{hl:Y})),this.setContent(cC(this, "HTML5_SPS_UMP_STATUS_REJECTED",Z))):this.api.C().Y("enable_adb_handling_in_sabr")&&d==="BROWSER_OR_EXTENSION_ERROR"&&!Y.j?(Y=Y.hostLanguage,Z="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",Y&&(Z=g.gq(Z,{hl:Y})),this.setContent(cC(this,"BROWSER_OR_EXTENSION_ERROR",Z))):this.setContent(g.ut(Z.errorMessage)):this.setContent(cC(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(Z=Y.hostLanguage,d= "//support.google.com/youtube/?p=player_error1",Z&&(d=g.gq(d,{hl:Z})),this.setContent(cC(this,"GENERIC_WITH_LINK_AND_CPN",d,!0)),Y.Hk&&!Y.N&&If$(this,function(f){if(g.D_(f,I.api,!z9(I.api.C()))){f={as3:!1,html5:!0,player:!0,cpn:I.api.getVideoData().clientPlaybackNonce};var P=I.api;P.Kj("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:f});P.isFullscreen()&&P.toggleFullscreen()}})); if(this.Z){var T=this.KS("ytp-error-link");T&&(this.api.createClientVe(T,this,216104),this.api.logVisibility(T,!0),If$(this,function(){I.api.logClick(T)}))}}; var bTJ=/([^<>]+)<\/a>/;g.U(m6,g.k);m6.prototype.oB=function(Z,I,d){d=d===void 0?!1:d;switch(I){case 1:Rn(this,Z,this.Z,d);break;case 2:Rn(this,Z,this.N,d);break;case 3:Rn(this,Z,this.L,d);break;case 4:Rn(this,Z,this.D,d)}};g.U(LMJ,g.k);g.n=LMJ.prototype;g.n.onClick=function(Z){this.innertubeCommand?(this.S.Rn("innertubeCommand",this.innertubeCommand),Z.preventDefault()):g.D_(Z,this.S,!0);this.S.logClick(this.element)}; g.n.onVideoDataChange=function(Z,I){T49(this,I);this.JZ&&lk9(this,this.JZ)}; g.n.HR=function(Z){var I=this.S.getVideoData();this.videoId!==I.videoId&&T49(this,I);this.L&&lk9(this,Z.state);this.JZ=Z.state}; g.n.dn=function(){this.fade.show();this.S.publish("paidcontentoverlayvisibilitychange",!0);this.S.logVisibility(this.element,!0)}; g.n.zb=function(){this.fade.hide();this.S.publish("paidcontentoverlayvisibilitychange",!1);this.S.logVisibility(this.element,!1)};g.U(wq,g.k);wq.prototype.hide=function(){this.L.stop();this.message.style.display="none";g.k.prototype.hide.call(this)}; wq.prototype.onStateChange=function(Z){this.XT(Z.state)}; wq.prototype.XT=function(Z){if(g.b(Z,128)||this.api.HN())var I=!1;else{var d;I=this.api.Y("web_watch_enable_multiview_manager")&&((d=this.api.getVideoData())==null?0:qA(d))?!1:g.b(Z,16)||g.b(Z,1)?!0:!1}I?this.L.start():this.hide()}; wq.prototype.D=function(){this.message.style.display="block"};g.U(RG,g.GA);RG.prototype.onMutedAutoplayChange=function(Z){this.D&&(Z?(Ffd(this),this.dn()):(this.L&&this.logClick(),this.zb()))}; RG.prototype.nw=function(Z){this.api.isMutedByMutedAutoplay()&&g.Nw(Z,2)&&this.zb()}; RG.prototype.onClick=function(){this.api.unMute();this.logClick()}; RG.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.U(g.Jo,g.De);g.n=g.Jo.prototype;g.n.init=function(){var Z=this.api,I=Z.getPlayerStateObject();this.gs=Z.getPlayerSize();this.I4(I);this.MV();this.CM();this.api.publish("basechromeinitialized",this);this.Ks()&&this.api.publish("standardControlsInitialized")}; g.n.onVideoDataChange=function(Z,I){var d=this.VW!==I.videoId;if(d||Z==="newdata")Z=this.api,Z.isFullscreen()||(this.gs=Z.getPlayerSize());d&&(this.VW=I.videoId,d=this.EV,d.fS=3E3,eg(d,512,!0),this.MV());this.api.Y("web_render_jump_buttons")&&I.showSeekingControls&&(this.Pf=572)}; g.n.j4j=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.n.p$=function(){var Z=this.api.Ss()&&this.api.sy(),I=this.api.Si();return this.XB||Z||this.rp||I}; g.n.mD=function(){var Z=!this.p$();g.zL(this.api.getRootNode(),"ytp-menu-shown",!Z)}; g.n.uC=function(Z){try{if(!g.H7(this.api.getRootNode(),Z))return!1}catch(I){return!1}for(;Z&&!MS(Z);)Z=Z===this.api.getRootNode()?null:Z.parentElement||null;return!!Z}; g.n.MK=function(Z){var I=this.api.getRootNode();g.zL(I,"ytp-autohide",Z);g.zL(I,"ytp-autohide-active",!0);this.rh.start(Z?250:100);Z&&(this.KI=!1,g.KF(I,"ytp-touch-mode"));this.rl=!Z;this.api.Hq(!Z);this.api.Y("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",Z)}; g.n.DB=function(){var Z=this.api.getRootNode();g.zL(Z,"ytp-autohide-active",!1)}; g.n.WHJ=function(){this.oS=!0}; g.n.wgr=function(Z){if(this.api.C().Y("player_doubletap_to_seek")||this.api.C().V)this.oS=!1,this.X7&&this.a4(this.X7),this.hN===0&&N1(this,Z)?(this.Hi(),this.An.start(),this.X7=this.W(this.api.cj(),"touchmove",this.WHJ,void 0,!0)):this.An.stop();FTl(this)&&N1(this,Z)&&!this.api.C().V&&U_L(this);var I=this.RS.qO();if(!g.Dh(this.api.C())&&AO&&Lp(this,Z))I&&Z.preventDefault();else if(this.KI=!0,g.xw(this.api.getRootNode(),"ytp-touch-mode"),this.EV.Dn(),this.api.C().Y("player_doubletap_to_seek")||this.api.C().V)if(I= this.api.getPlayerStateObject(),!(!this.api.At()||g.b(I,2)&&g.ZW(this.api)||g.b(I,64))){I=Date.now()-this.Ee;this.hN+=1;if(I<=350){this.gN=!0;I=this.api.getPlayerSize().width/3;var d=this.api.getRootNode().getBoundingClientRect(),Y=Z.targetTouches[0].clientX-d.left;d=Z.targetTouches[0].clientY-d.top;var T=(this.hN-1)*10;Y>0&&YI*2&&Y=650,Y=Z.width<528;this.EV.resize();if(this.api.Y("web_player_use_screen_width_for_big_mode")){var T,f=Z.width>=((T=g.Q4(this.api.C().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?T:2E3);g.zL(I,"ytp-big-mode",f)}g.zL(I,"ytp-fullscreen",this.api.isFullscreen());g.zL(I,"ytp-large-width-mode",d);this.api.Y("delhi_modern_web_player")?g.zL(I,"ytp-xsmall-width-mode",Y):g.zL(I,"ytp-small-mode",this.vE()); g.zL(I,"ytp-tiny-mode",this.zd());g.zL(I,"ytp-big-mode",this.m2());this.V1&&this.V1.resize(Z)}; g.n.nw=function(Z){this.I4(Z.state);this.MV()}; g.n.J3=vF(3);g.n.Gs=function(){var Z=!!this.VW&&!this.api.NI()&&!this.P_,I=this.api.getPresentingPlayerType()===2,d=this.api.C();if(I)return d=l_(this.api.nM()),Z&&(d&&d.player?Z=(Z=d.player.getVideoData(2))?Z.isListed&&!g.V4(d.player.C()):!1:(Zv("showInfoBarDuringAd: this is null"),Z=!1)),Z;I=d.Y("web_player_imax_theater_mode")&&this.api.JB()&&!this.api.isInline();return Z&&(d.KW||I||this.api.isFullscreen()||d.hK)}; g.n.MV=function(){var Z=this.Gs();this.cS!==Z&&(this.cS=Z,g.zL(this.api.getRootNode(),"ytp-hide-info-bar",!Z))}; g.n.I4=function(Z){var I=Z.isCued()||this.api.Wl()&&this.api.getPresentingPlayerType()!==3;I!==this.isCued&&(this.isCued=I,this.ri&&this.a4(this.ri),this.ri=this.W(this.api.cj(),"touchstart",this.wgr,void 0,I));var d=this.EV,Y=Z.isPlaying()&&!g.b(Z,32)||this.api.SS();eg(d,128,!Y);d=this.EV;Y=this.api.getPresentingPlayerType()===3;eg(d,256,Y);d=this.api.getRootNode();g.b(Z,2)?Y=[bu.ENDED]:(Y=[],g.b(Z,8)?Y.push(bu.PLAYING):g.b(Z,4)&&Y.push(bu.PAUSED),g.b(Z,1)&&!g.b(Z,32)&&Y.push(bu.BUFFERING),g.b(Z, 32)&&Y.push(bu.SEEKING),g.b(Z,64)&&Y.push(bu.UNSTARTED));g.WP(this.X_,Y)||(g.IN(d,this.X_),this.X_=Y,g.xl(d,Y));Y=this.api.C();var T=g.b(Z,2);a:{var f=this.api.C();var P=f.controlsType;switch(P){case "2":case "0":f=!1;break a}f=P==="3"&&!g.b(Z,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:Pt7(l_(this.api.nM())))||this.api.Si()||g.Dh(f)&&this.api.getPresentingPlayerType()===2?!1:!0}g.zL(d,"ytp-hide-controls",!f);g.zL(d,"ytp-native-controls",Y.controlsType==="3"&&!I&&!T&&!this.rp);g.b(Z, 128)&&!g.Dh(Y)?(this.V1||(this.V1=new g.Aa(this.api),g.z(this,this.V1),g.iS(this.api,this.V1.element,4)),this.V1.D(Z.Em),this.V1.show()):this.V1&&(this.V1.dispose(),this.V1=null)}; g.n.rR=function(){return this.api.Ss()&&this.api.sy()?(this.api.EW(!1,!1),!0):this.api.NI()?(g.Ja(this.api,!0),!0):!1}; g.n.onMutedAutoplayChange=function(Z){this.rp=Z;this.mD()}; g.n.m2=function(){return!1}; g.n.vE=function(){return!this.m2()&&(this.api.getPlayerSize().width=0&&I.left>=0&&I.bottom>I.top&&I.right>I.left?I:null;I=this.size;Z=Z.clone();I=I.clone();Y&&(P=I,T=5,(T&65)==65&&(Z.x=Y.right)&&(T&=-2),(T&132)==132&&(Z.y=Y.bottom)&&(T&=-5),Z.xY.right&&(P.width=Math.min(Y.right-Z.x,f+P.width-Y.left),P.width=Math.max(P.width,0))),Z.x+P.width>Y.right&&T&1&&(Z.x=Math.max(Y.right-P.width,Y.left)),Z.yY.bottom&&(P.height=Math.min(Y.bottom-Z.y,f+P.height-Y.top),P.height=Math.max(P.height,0))),Z.y+P.height>Y.bottom&&T&4&&(Z.y=Math.max(Y.bottom-P.height,Y.top)));Y=new g.Ey(0,0,0,0);Y.left=Z.x;Y.top=Z.y;Y.width= I.width;Y.height=I.height;g.HQ(this.element,new g.vS(Y.left,Y.top));g.aL(this.D);this.D.W(fs(this),"contextmenu",this.s04);this.D.W(this.S,"fullscreentoggled",this.onFullscreenToggled);this.D.W(this.S,"pageTransition",this.d7)}; g.n.s04=function(Z){if(!Z.defaultPrevented){var I=V$(Z);g.H7(this.element,I)||this.zb();this.S.C().disableNativeContextMenu&&Z.preventDefault()}}; g.n.onFullscreenToggled=function(){this.zb();ZYd(this)}; g.n.d7=function(){this.zb()};g.U(zk,g.k);zk.prototype.onClick=function(){var Z=this,I,d,Y,T;return g.h(function(f){if(f.L==1)return I=Z.api.C(),d=Z.api.getVideoData(),Y=Z.api.getPlaylistId(),T=I.getVideoUrl(d.videoId,Y,void 0,!0),g.m(f,em7(Z,T),2);f.D&&$8L(Z);Z.api.logClick(Z.element);g.v6(f)})}; zk.prototype.qs=function(){this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"M21.9,8.3H11.3c-0.9,0-1.7,.8-1.7,1.7v12.3h1.7V10h10.6V8.3z M24.6,11.8h-9.7c-1,0-1.8,.8-1.8,1.8v12.3 c0,1,.8,1.8,1.8,1.8h9.7c1,0,1.8-0.8,1.8-1.8V13.5C26.3,12.6,25.5,11.8,24.6,11.8z M24.6,25.9h-9.7V13.5h9.7V25.9z"}}]});this.updateValue("title-attr","Copy link");this.updateValue("tooltip-title","Copy link");this.visible=iw7(this);g.zL(this.element, "ytp-copylink-button-visible",this.visible);this.o0(this.visible);this.tooltip.Kl();this.api.logVisibility(this.element,this.visible&&this.In)}; zk.prototype.UU=function(Z){g.k.prototype.UU.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)}; zk.prototype.g4=function(){g.k.prototype.g4.call(this);g.KF(this.element,"ytp-copylink-button-visible")};g.U(CL3,g.k);g.n=CL3.prototype;g.n.show=function(){g.k.prototype.show.call(this);g.Zy(this.D)}; g.n.hide=function(){this.N.stop();this.Z=0;this.KS("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.KF(this.element,"ytp-chapter-seek");g.KF(this.element,"ytp-time-seeking");g.k.prototype.hide.call(this)}; g.n.qK=function(Z,I,d,Y){this.Z=Z===this.j?this.Z+Y:Y;this.j=Z;var T=Z===-1?this.X:this.V;T&&this.S.logClick(T);this.B?this.D.stop():g.V9(this.D);this.N.start();this.element.setAttribute("data-side",Z===-1?"back":"forward");var f=3*this.S.cj().getPlayerSize().height;T=this.S.cj().getPlayerSize();T=T.width/3-3*T.height;this.L.style.width=f+"px";this.L.style.height=f+"px";Z===1?(this.L.style.left="",this.L.style.right=T+"px"):Z===-1&&(this.L.style.right="",this.L.style.left=T+"px");var P=f*2.5;f=P/ 2;var O=this.KS("ytp-doubletap-ripple");O.style.width=P+"px";O.style.height=P+"px";Z===1?(Z=this.S.cj().getPlayerSize().width-I+Math.abs(T),O.style.left="",O.style.right=Z-f+"px"):Z===-1&&(Z=Math.abs(T)+I,O.style.right="",O.style.left=Z-f+"px");O.style.top="calc((33% + "+Math.round(d)+"px) - "+f+"px)";if(d=this.KS("ytp-doubletap-ripple"))d.classList.remove("ytp-doubletap-ripple"),d.classList.add("ytp-doubletap-ripple");Lpu(this,this.B?this.Z:Y)}; g.n.cK=function(Z,I,d){if(d=d===void 0?null:d){var Y=Z===-1?this.X.visualElement:this.V.visualElement;d={seekData:d};var T=g.vv();T&&Q0(T,Y,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",d)}this.Z=Z===this.j?this.Z+I:I;this.j=Z;Y=this.S.cj().getPlayerSize();this.B?this.D.stop():g.V9(this.D);this.N.start();this.element.setAttribute("data-side",Z===-1?"back":"forward");g.xw(this.element,"ytp-time-seeking");this.L.style.width="110px";this.L.style.height="110px";d=Y.width*.1-15;Z===1?this.LS?(this.L.style.right= d+"px",this.L.style.left=""):(this.L.style.right="",this.L.style.left=Y.width*.8-30+"px"):Z===-1&&(this.LS?(this.L.style.right="",this.L.style.left=d+"px"):(this.L.style.right="",this.L.style.left=Y.width*.1-15+"px"));this.L.style.top=Y.height*.5+15+"px";Lpu(this,this.B?this.Z:I)}; g.n.UR=function(Z,I,d){d=d===void 0?null:d;g.V9(this.D);this.N.start();switch(Z){case -1:Z="back";break;case 1:Z="forward";break;default:Z=""}this.element.setAttribute("data-side",Z);this.L.style.width="0";this.L.style.height="0";g.xw(this.element,"ytp-chapter-seek");this.updateValue("seekText",I);this.updateValue("seekTime","");I=this.KS("ytp-seek-icon");if(d){a:if(d){switch(d){case "PREMIUM_STANDALONE":d=g3$();break a;case "PREMIUM_STANDALONE_CAIRO":d=Dbu();break a}d=void 0}else d=null;this.updateValue("seekIcon", d);I.style.display="inline-block"}else I.style.display="none"};g.U(zid,WC);g.n=zid.prototype;g.n.JF=function(Z){this.mJ||(this.mJ=new Cv(this.S),g.z(this,this.mJ));var I,d;if((I=this.UZ)==null?0:(d=I.menu)==null?0:d.menuRenderer)this.mJ.open(this.UZ.menu.menuRenderer,Z.target),Z.preventDefault()}; g.n.L8=function(){return!!this.L}; g.n.y3=function(){return!!this.L}; g.n.Lo=function(Z){Z.target===this.overflowButton.element?Z.preventDefault():(this.EU&&this.S.Rn("innertubeCommand",this.EU),this.Xf(!1))}; g.n.F4=function(){this.Xf(!0);var Z,I;((Z=this.L)==null?0:(I=Z.bannerData)==null?0:I.dismissedStatusKey)&&this.Yl.push(this.L.bannerData.dismissedStatusKey);this.po()}; g.n.oZ=function(){this.po();lN(this)}; g.n.wEr=function(Z){var I=this,d;if(Z.id!==((d=this.L)==null?void 0:d.identifier)){this.po();d=g.t(this.Bj);for(var Y=d.next();!Y.done;Y=d.next()){var T=Y.value,f=void 0,P=void 0;if((Y=(f=T)==null?void 0:(P=f.bannerData)==null?void 0:P.itemData)&&T.identifier===Z.id){P=f=void 0;var O=((f=T)==null?void 0:(P=f.bannerData)==null?void 0:P.dismissedStatusKey)||"";if(this.Yl.includes(O))return;this.L=T;this.banner.element.setAttribute("aria-label",Y.accessibilityLabel||"");Y.trackingParams&&(this.N=!0, this.S.setTrackingParams(this.badge.element,Y.trackingParams));this.show();this.X.show();Zx(this);this.fS.o0(!Y.stayInApp);ZRL(this);A2D(this);TM(this);this.EU=g.y(Y.onTapCommand,c2);if(T=g.y(Y.menuOnTap,c2))this.UZ=g.y(T,I0t);T=void 0;this.banner.update({thumbnail:(T=(Y.thumbnailSources||[])[0])==null?void 0:T.url,title:Y.productTitle,price:Y.priceReplacementText?Y.priceReplacementText:Y.price,salesOriginalPrice:Rli(this),priceDropReferencePrice:OU0(this),promotionText:MJE(this),priceA11yText:o3B(this), affiliateDisclaimer:Y.affiliateDisclaimer,vendor:A_(this)});O=P=f=T=void 0;((T=Y)==null?0:(f=T.hiddenProductOptions)==null?0:f.showDropCountdown)&&((P=Y)==null?0:(O=P.hiddenProductOptions)==null?0:O.dropTimestampMs)&&(this.SK=new g.uX(function(){jb9(I)},1E3),this.fS.hide(),this.countdownTimer.show(),jb9(this)); this.S.Y("web_player_enable_featured_product_banner_exclusives_on_desktop")&&plE(this)&&(this.Hk=new g.uX(function(){Dyi(I)},1E3),Dyi(this))}}this.S.getRootNode()&&g.xw(this.S.getRootNode(),"ytp-featured-product-shown")}}; g.n.po=function(){this.L&&(this.L=void 0,this.Db(),this.S.getRootNode()&&g.KF(this.S.getRootNode(),"ytp-featured-product-shown"))}; g.n.onVideoDataChange=function(Z,I){var d=this;Z==="dataloaded"&&lN(this);var Y,T,f;Z=g.y((Y=I.getWatchNextResponse())==null?void 0:(T=Y.playerOverlays)==null?void 0:(f=T.playerOverlayRenderer)==null?void 0:f.productsInVideoOverlayRenderer,rBu);this.overflowButton.show();this.dismissButton.hide();var P=Z==null?void 0:Z.featuredProductsEntityKey;this.trendingOfferEntityKey=Z==null?void 0:Z.trendingOfferEntityKey;this.Bj.length||(C$J(this,P),TM(this));var O;(O=this.M8)==null||O.call(this);this.M8=g.KG.subscribe(function(){C$J(d, P);TM(d)})}; g.n.g4=function(){lN(this);ZRL(this);A2D(this);WC.prototype.g4.call(this)};g.U(XEL,g.k);XEL.prototype.onClick=function(){this.S.logClick(this.element,this.Z);if(this.S.Y("embeds_enable_info_panel_dismissal")&&this.L&&this.feedbackToken){var Z=this.S.NA();if(Z==null?0:zZu(this.L,Z.L5))ma(Z,this.L,{feedbackTokens:[this.feedbackToken]}),this.S.publish("infopaneldetaildismissed")}};g.U($q$,g.GA);g.n=$q$.prototype;g.n.show=function(){g.GA.prototype.show.call(this);this.S.publish("infopaneldetailvisibilitychange",!0);this.S.logVisibility(this.element,!0);GDB(this,!0)}; g.n.hide=function(){g.GA.prototype.hide.call(this);this.S.publish("infopaneldetailvisibilitychange",!1);this.S.logVisibility(this.element,!1);GDB(this,!1)}; g.n.getId=function(){return this.Z}; g.n.zL=function(){return this.itemData.length}; g.n.onVideoDataChange=function(Z,I){if(I){var d,Y,T,f;this.update({title:((d=I.g5)==null?void 0:(Y=d.title)==null?void 0:Y.content)||"",body:((T=I.g5)==null?void 0:(f=T.bodyText)==null?void 0:f.content)||""});var P;Z=((P=I.g5)==null?void 0:P.trackingParams)||null;this.S.setTrackingParams(this.element,Z);P=g.t(this.itemData);for(Z=P.next();!Z.done;Z=P.next())Z.value.dispose();this.itemData=[];var O;if((O=I.g5)==null?0:O.ctaButtons)for(I=g.t(I.g5.ctaButtons),O=I.next();!O.done;O=I.next())if(O=g.y(O.value, Eki))O=new XEL(this.S,O,this.L),O.FF&&(this.itemData.push(O),O.i5(this.items))}}; g.n.g4=function(){this.hide();g.GA.prototype.g4.call(this)};g.U(CYi,g.k);g.n=CYi.prototype;g.n.onVideoDataChange=function(Z,I){Hkd(this,I);this.JZ&&dCd(this,this.JZ)}; g.n.PR=function(Z){var I=this.S.getVideoData();this.videoId!==I.videoId&&Hkd(this,I);dCd(this,Z.state);this.JZ=Z.state}; g.n.Ao=function(Z){(this.Z=Z)?this.hide():this.L&&!this.isDismissed&&this.show()}; g.n.cR=function(){this.D||this.dn();this.showControls=!0}; g.n.CH=function(){this.D||this.zb();this.showControls=!1}; g.n.dn=function(){if(!this.isDismissed){var Z,I=(Z=this.S)==null?void 0:Z.getPlayerSize();Z=I.width<380;var d;I=I.height<(((d=this.S)==null?0:d.isEmbedsShortsMode())?400:280);var Y,T;(((Y=this.S)==null?0:Y.getPlayerStateObject().isCued())||((T=this.S)==null?0:g.b(T.getPlayerStateObject(),1024)))&&Z&&I||!this.L||this.Z||(this.fade.show(),this.S.publish("infopanelpreviewvisibilitychange",!0),this.S.logVisibility(this.element,!0))}}; g.n.zb=function(){this.L&&!this.Z&&(this.fade.hide(),this.S.publish("infopanelpreviewvisibilitychange",!1),this.S.logVisibility(this.element,!1))}; g.n.rt7=function(){this.D=!1;this.showControls||this.zb()};var YZ$={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(YZ$).reduce(function(Z,I){Z[YZ$[I]]=I;return Z},{}); var jWg={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(jWg).reduce(function(Z,I){Z[jWg[I]]=I;return Z},{}); var Txi={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(Txi).reduce(function(Z,I){Z[Txi[I]]=I;return Z},{});var isE,fvg;isE=[{option:"#fff",text:"White"},{option:"#ff0",text:"Yellow"},{option:"#0f0",text:"Green"},{option:"#0ff",text:"Cyan"},{option:"#00f",text:"Blue"},{option:"#f0f",text:"Magenta"},{option:"#f00",text:"Red"},{option:"#080808",text:"Black"}];fvg=[{option:0,text:FG(0)},{option:.25,text:FG(.25)},{option:.5,text:FG(.5)},{option:.75,text:FG(.75)},{option:1,text:FG(1)}]; g.iY=[{option:"fontFamily",text:"Font family",options:[{option:1,text:"Monospaced Serif"},{option:2,text:"Proportional Serif"},{option:3,text:"Monospaced Sans-Serif"},{option:4,text:"Proportional Sans-Serif"},{option:5,text:"Casual"},{option:6,text:"Cursive"},{option:7,text:"Small Capitals"}]},{option:"color",text:"Font color",options:isE},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:FG(.5)},{option:-1,text:FG(.75)},{option:0,text:FG(1)},{option:1,text:FG(1.5)},{option:2, text:FG(2)},{option:3,text:FG(3)},{option:4,text:FG(4)}]},{option:"background",text:"Background color",options:isE},{option:"backgroundOpacity",text:"Background opacity",options:fvg},{option:"windowColor",text:"Window color",options:isE},{option:"windowOpacity",text:"Window opacity",options:fvg},{option:"charEdgeStyle",text:"Character edge style",options:[{option:0,text:"None"},{option:4,text:"Drop Shadow"},{option:1,text:"Raised"},{option:2,text:"Depressed"},{option:3,text:"Outline"}]},{option:"textOpacity", text:"Font opacity",options:[{option:.25,text:FG(.25)},{option:.5,text:FG(.5)},{option:.75,text:FG(.75)},{option:1,text:FG(1)}]}];var PSW=[27,9,33,34,13,32,187,61,43,189,173,95,79,87,67,80,78,75,70,65,68,87,83,107,221,109,219];g.U(tV,g.De);g.n=tV.prototype; g.n.yM=function(Z){Z.repeat||(this.Z.Le=!1);var I=!1,d=Z.keyCode,Y=V$(Z),T=!Z.altKey&&!Z.ctrlKey&&!Z.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||PSW.includes(d)),f=!1,P=!1,O=this.api.C();Z.defaultPrevented?(T=!1,P=!0):O.kF&&!this.api.isMutedByEmbedsMutedAutoplay()&&(T=!1);if(d===9)I=!0;else{if(Y)switch(d){case 32:case 13:if(Y.tagName==="BUTTON"||Y.tagName==="A"||Y.tagName==="INPUT")I=!0,T=!1;else if(T){var a=Y.getAttribute("role");!a||a!=="option"&&a!=="button"&&a.indexOf("menuitem")!==0|| (I=!0,Y.click(),f=!0)}break;case 37:case 39:case 36:case 35:I=Y.getAttribute("role")==="slider";break;case 38:case 40:a=Y.getAttribute("role"),Y=d===38?Y.previousSibling:Y.nextSibling,a==="slider"?I=!0:T&&(a==="option"?(Y&&Y.getAttribute("role")==="option"&&Y.focus(),f=I=!0):a&&a.indexOf("menuitem")===0&&(Y&&Y.hasAttribute("role")&&Y.getAttribute("role").indexOf("menuitem")===0&&Y.focus(),f=I=!0))}if(T&&!f)switch(d){case 38:f=Math.min(this.api.getVolume()+5,100);q1(this.Wg,f,!1);this.api.setVolume(f); P=f=!0;break;case 40:f=Math.max(this.api.getVolume()-5,0);q1(this.Wg,f,!0);this.api.setVolume(f);P=f=!0;break;case 36:this.api.At()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),P=f=!0);break;case 35:this.api.At()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),P=f=!0)}}I&&X5(this,!0);(I||P)&&this.EV.Dn();(f||T&&this.handleGlobalKeyDown(d,Z.shiftKey,Z.ctrlKey,Z.altKey,Z.metaKey,Z.key,Z.code,Z.repeat))&&Z.preventDefault();O.X&&(Z={keyCode:Z.keyCode, altKey:Z.altKey,ctrlKey:Z.ctrlKey,metaKey:Z.metaKey,shiftKey:Z.shiftKey,handled:Z.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.OV("onKeyPress",Z))}; g.n.pn=function(Z){var I=Z.keyCode;!this.Z.Sg&&this.handleGlobalKeyUp(I,Z.shiftKey,Z.ctrlKey,Z.altKey,Z.metaKey,Z.key,Z.code)&&Z.preventDefault()}; g.n.handleGlobalKeyUp=function(Z,I,d,Y,T,f,P){this.api.publish("keyboardserviceglobalkeyup",{keyCode:Z,shiftKey:I,ctrlKey:d,altKey:Y,metaKey:T,key:f,code:P});I=!1;if(this.Z.Le)return I;(f=g.D3(this.api.nM()))&&(f=f.Aq)&&f.LM&&(f.ey(Z),I=!0);switch(Z){case 9:X5(this,!0);I=!0;break;case 32:if(this.api.Y("web_speedmaster_spacebar_control")&&!this.api.C().kF){var O,a;Z=(O=this.progressBar)==null?void 0:(a=O.D)==null?void 0:a.isEnabled;I=this.tf(Z)}break;case 39:(this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(T||d&&Y))&&(h4?Y:d)&&this.api.At()&&this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),O=(O=this.api.getVideoData())?O.Mj:[],a=vB9(O,this.api.getCurrentTime()*1E3),a!==-1&&this.L!=null&&(this.L.UR(1,O[a].title),this.api.seekTo(O[a].startTime/1E3,void 0,void 0,void 0,52),I=!0))}return I}; g.n.handleGlobalKeyDown=function(Z,I,d,Y,T,f,P,O){O||(this.Z.Le=!1);var a=!1,W=this.api.C();if(W.kF&&!this.api.isMutedByEmbedsMutedAutoplay())return a;var e=g.D3(this.api.nM());if(e&&(e=e.Aq)&&e.LM)switch(Z){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:a=e.Pe(Z)}W.j||a||(a=f||String.fromCharCode(Z).toLowerCase(),this.D+=a,"awesome".indexOf(this.D)===0||this.api.Y("web_player_rtr_ctrls")&&"bday".indexOf(this.D)===0?(a=!0,4===this.D.length&&this.D==="bday"&&this.api.Y("web_player_rtr_ctrls")&& (YxD(this.B),this.EV.Dn()),7===this.D.length&&this.D==="awesome"&&$hn(this.api.getRootNode(),"ytp-color-party")):(this.D=a,a="awesome".indexOf(this.D)===0||"bday".indexOf(this.D)===0));if(!a&&(!this.api.isMutedByEmbedsMutedAutoplay()||PSW.includes(Z))){var B=this.api.getVideoData(),w,V;e=(w=this.progressBar)==null?void 0:(V=w.D)==null?void 0:V.isEnabled;w=B?B.Mj:[];V=h4?Y:d;switch(Z){case 80:I&&!W.Tm&&(yS(this.Wg,ltB(),"Previous"),this.api.previousVideo(),a=!0);break;case 78:I&&!W.Tm&&(yS(this.Wg, vPu(),"Next"),this.api.nextVideo(),a=!0);break;case 74:this.api.At()&&(this.api.startSeekCsiAction(),this.L?this.api.Y("enable_key_press_seek_logging")?(a=M1(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.L.cK(-1,10,a)):this.L.cK(-1,10):yS(this.Wg,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z M 16.9,22 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 -0.2,0 -0.4,.1 -0.6,.1 -0.2,0 -0.4,0 -0.6,-0.1 -0.2,-0.1 -0.3,-0.2 -0.5,-0.3 -0.2,-0.1 -0.2,-0.3 -0.3,-0.6 -0.1,-0.3 -0.1,-0.5 -0.1,-0.8 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.9,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(-10*this.api.getPlaybackRate(),void 0,void 0,73),a=!0);break;case 76:this.api.At()&&(this.api.startSeekCsiAction(),this.L?this.api.Y("enable_key_press_seek_logging")?(a=M1(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.L.cK(1,10,a)):this.L.cK(1,10):yS(this.Wg,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.8,3 H 16 V 18.7 L 15,19 v -0.7 l 1.8,-0.6 h .1 V 22 z m 4.3,-1.8 c 0,.3 0,.6 -0.1,.8 l -0.3,.6 c 0,0 -0.3,.3 -0.5,.3 C 20,21.9 19.8,22 19.6,22 19.4,22 19.2,22 19,21.9 18.8,21.8 18.7,21.7 18.5,21.6 18.3,21.5 18.3,21.3 18.2,21 18.1,20.7 18.1,20.5 18.1,20.2 v -0.7 c 0,-0.3 0,-0.6 .1,-0.8 l .3,-0.6 c 0,0 .3,-0.3 .5,-0.3 .2,0 .4,-0.1 .6,-0.1 .2,0 .4,0 .6,.1 .2,.1 .3,.2 .5,.3 .2,.1 .2,.3 .3,.6 .1,.3 .1,.5 .1,.8 v .7 z m -0.8,-0.8 v -0.5 c 0,0 -0.1,-0.2 -0.1,-0.3 0,-0.1 -0.1,-0.1 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.2,0 -0.3,.1 l -0.2,.2 c 0,0 -0.1,.2 -0.1,.3 v 2 c 0,0 .1,.2 .1,.3 0,.1 .1,.1 .2,.2 .1,.1 .2,.1 .3,.1 .1,0 .2,0 .3,-0.1 l .2,-0.2 c 0,0 .1,-0.2 .1,-0.3 v -1.5 z"}}]}), this.api.seekBy(10*this.api.getPlaybackRate(),void 0,void 0,74),a=!0);break;case 37:if(this.api.At())if(this.api.startSeekCsiAction(),V){if(this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(T||d&&Y))V=Xq9(w,this.api.getCurrentTime()*1E3),V!==-1&&this.L!=null&&(this.L.UR(-1,w[V].title),this.api.seekTo(w[V].startTime/1E3,void 0,void 0,void 0,53),a=!0)}else this.L?this.api.Y("enable_key_press_seek_logging")?(a=M1(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.L.cK(-1,5,a)):this.L.cK(-1,5):yS(this.Wg,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"M 18,11 V 7 l -5,5 5,5 v -4 c 3.3,0 6,2.7 6,6 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 h -2 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 0,-4.4 -3.6,-8 -8,-8 z m -1.3,8.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.4,.3 C 18.5,22 18.2,22 18,22 17.8,22 17.6,22 17.5,21.9 17.4,21.8 17.2,21.8 17,21.7 16.8,21.6 16.8,21.5 16.7,21.3 16.6,21.1 16.6,21 16.6,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.5,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.7 z"}}]}), this.api.seekBy(-5*this.api.getPlaybackRate(),void 0,void 0,71),a=!0;break;case 39:this.api.At()&&(this.api.startSeekCsiAction(),V?this.api.Y("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.Y("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(T||d&&Y)||(V=vB9(w,this.api.getCurrentTime()*1E3),V!==-1&&this.L!=null&&(this.L.UR(1,w[V].title),this.api.seekTo(w[V].startTime/1E3,void 0,void 0,void 0,52),a=!0)):(this.L!=null?this.api.Y("enable_key_press_seek_logging")?(a=M1(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.L.cK(1,5,a)):this.L.cK(1,5):yS(this.Wg,{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"m 10,19 c 0,4.4 3.6,8 8,8 4.4,0 8,-3.6 8,-8 h -2 c 0,3.3 -2.7,6 -6,6 -3.3,0 -6,-2.7 -6,-6 0,-3.3 2.7,-6 6,-6 v 4 l 5,-5 -5,-5 v 4 c -4.4,0 -8,3.6 -8,8 z m 6.7,.9 .2,-2.2 h 2.4 v .7 h -1.7 l -0.1,.9 c 0,0 .1,0 .1,-0.1 0,-0.1 .1,0 .1,-0.1 0,-0.1 .1,0 .2,0 h .2 c .2,0 .4,0 .5,.1 .1,.1 .3,.2 .4,.3 .1,.1 .2,.3 .3,.5 .1,.2 .1,.4 .1,.6 0,.2 0,.4 -0.1,.5 -0.1,.1 -0.1,.3 -0.3,.5 -0.2,.2 -0.3,.2 -0.5,.3 C 18.3,22 18.1,22 17.9,22 17.7,22 17.5,22 17.4,21.9 17.3,21.8 17.1,21.8 16.9,21.7 16.7,21.6 16.7,21.5 16.6,21.3 16.5,21.1 16.5,21 16.5,20.8 h .8 c 0,.2 .1,.3 .2,.4 .1,.1 .2,.1 .4,.1 .1,0 .2,0 .3,-0.1 L 18.4,21 c 0,0 .1,-0.2 .1,-0.3 v -0.6 l -0.1,-0.2 -0.2,-0.2 c 0,0 -0.2,-0.1 -0.3,-0.1 h -0.2 c 0,0 -0.1,0 -0.2,.1 -0.1,.1 -0.1,0 -0.1,.1 0,.1 -0.1,.1 -0.1,.1 h -0.6 z"}}]}), this.api.seekBy(5*this.api.getPlaybackRate(),void 0,void 0,72),a=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),q1(this.Wg,this.api.getVolume(),!1)):(this.api.mute(),q1(this.Wg,0,!0));a=!0;break;case 32:a=this.api.Y("web_speedmaster_spacebar_control")?!this.api.C().Tm:this.tf(e);break;case 75:a=this.tf(e);break;case 190:I?W.enableSpeedOptions&&IBE(this)&&(a=this.api.getPlaybackRate(),this.api.setPlaybackRate(a+.25,!0),g9g(this.Wg,!1),a=!0):this.api.At()&&(this.step(1),a=!0);break;case 188:I? W.enableSpeedOptions&&IBE(this)&&(a=this.api.getPlaybackRate(),this.api.setPlaybackRate(a-.25,!0),g9g(this.Wg,!0),a=!0):this.api.At()&&(this.step(-1),a=!0);break;case 70:NRr(this.api)&&(this.api.toggleFullscreen().catch(function(){}),a=!0); break;case 27:e?(this.progressBar.Ro(),a=!0):this.j()&&(a=!0)}if(W.controlsType!=="3")switch(Z){case 67:g.Ow(this.api.nM())&&(W=this.api.getOption("captions","track"),this.api.toggleSubtitles(),ao$(this.Wg,!W||W&&!W.displayName),a=!0);break;case 79:yH(this,"textOpacity");break;case 87:yH(this,"windowOpacity");break;case 187:case 61:yH(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:yH(this,"fontSizeIncrement",!0,!0)}var N;I||d||Y||(Z>=48&&Z<=57?N=Z-48:Z>=96&&Z<=105&&(N=Z-96));N!=null&&this.api.At()&& !this.api.Y("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),W=this.api.getProgressState(),this.api.seekTo(N/10*(W.seekableEnd-W.seekableStart)+W.seekableStart,void 0,void 0,void 0,81),a=!0);a&&this.EV.Dn()}this.Z.q3=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:Z,shiftKey:I,ctrlKey:d,altKey:Y,metaKey:T,key:f,code:P,repeat:O},this.Z);this.Z.q3&&(a=!0,this.EV.Dn());return a}; g.n.step=function(Z){this.api.At();if(this.api.getPlayerStateObject().isPaused()){var I=this.api.getVideoData().D;I&&(I=I.video)&&this.api.seekBy(Z/(I.fps||30),void 0,void 0,Z>0?77:78)}}; g.n.tf=function(Z){if(!this.api.C().Tm){var I;var d,Y=(I=this.api.getVideoData())==null?void 0:(d=I.getPlayerResponse())==null?void 0:d.playabilityStatus;if(Y){var T;I=((T=g.y(Y.miniplayer,f0M))==null?void 0:T.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else I=!1;I&&this.api.Rn("onExpandMiniplayer");Z?this.progressBar.QR():(Z=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.Wg.ac(Z),Z?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.n.g4=function(){g.V9(this.N);g.De.prototype.g4.call(this)};g.U(Ra,g.k);Ra.prototype.qs=function(){var Z=this.S.C(),I=Z.Z||this.S.Y("web_player_hide_overflow_button_if_empty_menu")&&this.TD.isEmpty();Z=g.Dh(Z)&&g.e0(this.S)&&g.b(this.S.getPlayerStateObject(),128);var d=this.S.getPlayerSize();this.visible=this.S.vE()&&!Z&&d.width>=240&&!this.S.getVideoData().IN&&!I&&!this.S.isEmbedsShortsMode();g.zL(this.element,"ytp-overflow-button-visible",this.visible);this.o0(this.visible);this.visible&&this.S.Kl();this.S.logVisibility(this.element,this.visible&&this.In)}; Ra.prototype.UU=function(Z){g.k.prototype.UU.call(this,Z);this.S.logVisibility(this.element,this.visible&&Z)}; Ra.prototype.g4=function(){g.k.prototype.g4.call(this);g.KF(this.element,"ytp-overflow-button-visible")};g.U(Ser,g.GA);g.n=Ser.prototype;g.n.ej=function(Z){Z=V$(Z);g.H7(this.element,Z)&&(g.H7(this.L,Z)||g.H7(this.closeButton,Z)||$2(this))}; g.n.zb=function(){g.GA.prototype.zb.call(this);this.S.Kp(this.element)}; g.n.show=function(){this.LM&&this.S.publish("OVERFLOW_PANEL_OPENED");g.GA.prototype.show.call(this);this.element.setAttribute("aria-modal","true");evl(this,!0)}; g.n.hide=function(){g.GA.prototype.hide.call(this);this.element.removeAttribute("aria-modal");evl(this,!1)}; g.n.onFullscreenToggled=function(Z){!Z&&this.qO()&&$2(this)}; g.n.isEmpty=function(){return this.actionButtons.length===0}; g.n.focus=function(){for(var Z=g.t(this.actionButtons),I=Z.next();!I.done;I=Z.next())if(I=I.value,I.LM){I.focus();break}};g.U(FlL,g.k);FlL.prototype.onClick=function(Z){g.D_(Z,this.api)&&this.api.playVideoAt(this.index)};g.U(JEB,g.GA);g.n=JEB.prototype;g.n.show=function(){g.GA.prototype.show.call(this);this.L.W(this.api,"videodatachange",this.VA);this.L.W(this.api,"onPlaylistUpdate",this.VA);this.VA()}; g.n.hide=function(){g.GA.prototype.hide.call(this);g.aL(this.L);this.updatePlaylist(null)}; g.n.VA=function(){this.updatePlaylist(this.api.getPlaylist());this.api.C().Z&&(this.KS("ytp-playlist-menu-title-name").removeAttribute("href"),this.D&&(this.a4(this.D),this.D=null))}; g.n.Ot=function(){var Z=this.playlist,I=Z.author,d=I?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",Y={CURRENT_POSITION:String(Z.index+1),PLAYLIST_LENGTH:String(Z.length)};I&&(Y.AUTHOR=I);this.update({title:Z.title,subtitle:g.yd(d,Y),playlisturl:this.api.getVideoUrl(!0)});I=Z.D;if(I===this.Z)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[Z.index];else{d=g.t(this.playlistData);for(Y=d.next();!Y.done;Y=d.next())Y.value.dispose(); d=Z.length;this.playlistData=[];for(Y=0;Y=this.D&&!Z.Z&&!I.isAd()&&!this.api.isEmbedsShortsMode()}else Z=!1;this.visible=Z;this.o0(this.visible);g.zL(this.element,"ytp-search-button-visible",this.visible);g.zL(this.element,"ytp-show-search-title",!this.api.vE());this.api.logVisibility(this.element,this.visible&&this.In)}; vD.prototype.UU=function(Z){g.k.prototype.UU.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)};g.U(GM,g.k); GM.prototype.trigger=function(Z,I,d,Y){this.show();if(this.D&&Z!==this.D){var T=1;this.Z&&(T=fTl(this));Vqa(this,T,!1);jqO(this)}this.D=Z;this.N=this.D===-1?this.V:this.X;Z="";I?(this.D===-1&&this.S.getCurrentTime()<=I?this.B=I:this.B+=I,Z=(this.D===-1?"\u2212":"+")+" "+this.B):this.B=0;this.updateValue(this.D===-1?"durationBack":"durationForward",Z);if(this.L==="hidden"||this.L==="fading-out")I=0,this.L==="fading-out"&&(I=fTl(this),Wdi(this)),Ked(this,I),this.L!=="fading-out"&&a3J(this,this.N.querySelector(".ytp-seek-overlay-arrow-persistent")), this.L="fading-in";else if(this.L==="fading-in"||this.L==="lingering")I=this.N.querySelector(".ytp-seek-overlay-duration"),Z=g.Q4(this.S.C().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,I.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale(1)"},{offset:.64,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",transform:"scale("+Z+")"},{offset:1,transform:"scale(1)"}],{duration:184}),Wdi(this),this.L==="lingering"&&(this.j.stop(),this.j.start());d&&wEM(this, d,Y)}; GM.prototype.qK=function(Z,I,d,Y){this.trigger(Z,Y)}; GM.prototype.cK=function(Z,I,d){this.trigger(Z,I);d&&(Z=Z===-1?this.X.visualElement:this.V.visualElement,d={seekData:d},(I=g.vv())&&Q0(I,Z,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",d))}; GM.prototype.UR=function(Z,I,d){this.trigger(Z,void 0,I,d)};g.U(qC,g.k);qC.prototype.onClick=function(){var Z=this,I=this.api.C(),d=this.api.getVideoData(this.api.getPresentingPlayerType()),Y=this.api.getPlaylistId();I=this.api.Y("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):I.getVideoUrl(d.videoId,Y,void 0,!0);if(navigator.share)try{var T=navigator.share({title:d.title,url:I});T instanceof Promise&&T.catch(function(f){Bf9(Z,f)})}catch(f){f instanceof Error&&Bf9(this,f)}else this.L.rR(),$2(this.D,this.element,!1); this.api.logClick(this.element)}; qC.prototype.qs=function(){var Z=this.api.C(),I=this.api.isEmbedsShortsMode();g.zL(this.element,"ytp-show-share-title",g.Dh(Z)&&!I);this.L.m2()&&I?(Z=(this.api.cj().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K2(this.element,"right",Z+"px")):I&&g.K2(this.element,"right","0px");this.updateValue("icon",{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"m 20.20,14.19 0,-4.45 7.79,7.79 -7.79,7.79 0,-4.56 C 16.27,20.69 12.10,21.81 9.34,24.76 8.80,25.13 7.60,27.29 8.12,25.65 9.08,21.32 11.80,17.18 15.98,15.38 c 1.33,-0.60 2.76,-0.98 4.21,-1.19 z"}}]}); this.visible=bf(this);g.zL(this.element,"ytp-share-button-visible",this.visible);this.o0(this.visible);this.tooltip.Kl();this.api.logVisibility(this.element,bf(this)&&this.In)}; qC.prototype.UU=function(Z){g.k.prototype.UU.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)}; qC.prototype.g4=function(){g.k.prototype.g4.call(this);g.KF(this.element,"ytp-share-button-visible")};g.U(cg0,g.GA);g.n=cg0.prototype;g.n.pH=function(Z){Z=V$(Z);g.H7(this.N,Z)||g.H7(this.closeButton,Z)||$2(this)}; g.n.zb=function(){g.GA.prototype.zb.call(this);this.tooltip.Kp(this.element);this.api.logVisibility(this.L,!1);for(var Z=g.t(this.D),I=Z.next();!I.done;I=Z.next())I=I.value,this.api.hasVe(I.element)&&this.api.logVisibility(I.element,!1)}; g.n.show=function(){var Z=this.LM;g.GA.prototype.show.call(this);this.qs();Z||this.api.Rn("onSharePanelOpened")}; g.n.oSm=function(){this.LM&&this.qs()}; g.n.qs=function(){var Z=this;g.xw(this.element,"ytp-share-panel-loading");g.KF(this.element,"ytp-share-panel-fail");var I=this.api.getVideoData(),d=this.api.getPlaylistId()&&this.Z.checked;I.getSharePanelCommand&&ma(this.api.NA(),I.getSharePanelCommand,{includeListId:d}).then(function(Y){Z.OZ()||(g.KF(Z.element,"ytp-share-panel-loading"),rTu(Z,Y))}); I=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",I);this.updateValue("linkText",I);this.updateValue("shareLinkWithUrl",g.yd("Share link $URL",{URL:I}));Tj(this.L);this.api.logVisibility(this.L,!0)}; g.n.onFullscreenToggled=function(Z){!Z&&this.qO()&&$2(this)}; g.n.focus=function(){this.L.focus()}; g.n.g4=function(){g.GA.prototype.g4.call(this);g5n(this)};g.U(e4,WC);g.n=e4.prototype;g.n.g4=function(){H5L(this);WC.prototype.g4.call(this)}; g.n.Lo=function(Z){Z.target!==this.dismissButton.element&&(this.Xf(!1),this.S.Rn("innertubeCommand",this.onClickCommand))}; g.n.F4=function(){this.on=!0;this.Xf(!0);this.Db()}; g.n.hxZ=function(Z){this.j=Z;this.Db()}; g.n.onVideoDataChange=function(Z,I){if(Z=!!I.videoId&&this.videoId!==I.videoId)this.videoId=I.videoId,this.on=!1,this.Ns=!0,this.V=this.kS=!1,H5L(this),eOD(this,!1),this.D=this.L=!1,TD(this),JcB(this);if(Z||!I.videoId)this.LS=this.N=!1;var d,Y;if(I==null?0:(d=I.getPlayerResponse())==null?0:(Y=d.videoDetails)==null?0:Y.isLiveContent)this.XQ(!1);else{var T,f,P;I=g.y((T=I.getWatchNextResponse())==null?void 0:(f=T.playerOverlays)==null?void 0:(P=f.playerOverlayRenderer)==null?void 0:P.productsInVideoOverlayRenderer, rBu);this.j=this.enabled=!1;if(I){if(T=I==null?void 0:I.featuredProductsEntityKey){f=g.KG.getState().entities;var O;if((O=CG(f,"featuredProductsEntity",T))==null?0:O.productsData){this.XQ(!1);return}}if(!I.text||!I.onClickCommand||!I.timing){this.XQ(!1);return}this.enabled=!0;if(!this.N){var a;O=(a=I.badgeInteractionLogging)==null?void 0:a.trackingParams;(this.N=!!O)&&this.S.setTrackingParams(this.badge.element,O||null)}if(!this.LS){var W;if(this.LS=!((W=I.dismissButton)==null||!W.trackingParams)){var e; this.S.setTrackingParams(this.dismissButton.element,((e=I.dismissButton)==null?void 0:e.trackingParams)||null)}}I.isContentForward&&(a=I.productsData,eOD(this,!0),JcB(this),a=B4$(this,a),W=[],a.length>0&&W.push(a[0]),a.length>1&&(e=new g.k({K:"div",T:"ytp-suggested-action-more-products-icon"}),g.z(this,e),W.push(e),W.push.apply(W,g.c(a.slice(1)))),this.B=new g.k({K:"div",G:W,T:"ytp-suggested-action-content-forward-container"}),g.z(this,this.B),this.j7.element.append(this.B.element));this.text=g.Q1(I.text); var B;if(a=(B=I.dismissButton)==null?void 0:B.a11yLabel)this.sZ=g.Q1(a);this.onClickCommand=I.onClickCommand;this.timing=I.timing;this.eM()}S9B(this);Zx(this);this.Db()}}; g.n.L8=function(){return!this.j&&this.enabled&&!this.on&&!this.S.vE()&&!this.I0&&(this.V||this.Ns)}; g.n.BL=function(Z){WC.prototype.BL.call(this,Z);if(this.L||this.D)this.timing&&br(this.timing.preview)&&(this.L=!1,TD(this),this.D=!1,TD(this),this.S.jM("shopping_overlay_preview_collapsed"),this.S.jM("shopping_overlay_preview_expanded"),Z=jr(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),br(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.S.jM("shopping_overlay_expanded"),Z.end=this.timing.expanded.endSec*1E3),this.S.eM([Z])), this.kS=!0,Zx(this);TD(this)}; g.n.XQ=function(Z){(this.V=Z)?(mn(this),Zx(this,!1)):(H5L(this),this.Tm.start());this.Db()}; g.n.eM=function(Z){var I=this.timing;Z=(Z===void 0?0:Z)+this.S.getCurrentTime();var d=[],Y=I.visible,T=I.preview;I=I.expanded;br(Y)&&(O1i(Y,Z),d.push(jr(Y.startSec,Y.endSec,"shopping_overlay_visible")));br(T)&&(O1i(T,Z),Y=T.startSec+1,d.push(jr(T.startSec,Y,"shopping_overlay_preview_collapsed")),d.push(jr(Y,T.endSec,"shopping_overlay_preview_expanded")));br(I)&&(O1i(I,Z),d.push(jr(I.startSec,I.endSec,"shopping_overlay_expanded")));this.S.eM(d)}; g.n.Db=function(){WC.prototype.Db.call(this);this.S.getRootNode()&&g.zL(this.S.getRootNode(),"ytp-shopping-pill-shown",this.L8())};g.U(eZl,g.k); eZl.prototype.qs=function(){var Z=this.api.C();this.o0(g.Dh(Z)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.LM);var I=this.api.getVideoData(),d=!1;this.api.getPresentingPlayerType()===2?d=!!I.videoId&&!!I.isListed&&!!I.author&&!!I.b5&&!!I.profilePicture:g.Dh(Z)&&(d=!!I.videoId&&!!I.b5&&!!I.profilePicture&&!I.IN&&!Z.Z&&!(Z.V&&this.api.getPlayerSize().width<200));var Y=I.profilePicture;Z=g.Dh(Z)?I.expandedTitle:I.author;Y=Y===void 0? "":Y;Z=Z===void 0?"":Z;d?(this.D!==Y&&(this.L.style.backgroundImage="url("+Y+")",this.D=Y),this.updateValue("channelLogoLabel",g.yd("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:Z})),g.xw(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.KF(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.L,d&&this.In);this.api.logVisibility(this.channelName,d&&this.In);this.subscribeButton&&(this.subscribeButton.channelId=I.vl);this.updateValue("expandedTitle",I.expandedTitle)};g.U(ln,g.GA);ln.prototype.show=function(){g.GA.prototype.show.call(this);this.L.start()}; ln.prototype.hide=function(){g.GA.prototype.hide.call(this);this.L.stop()}; ln.prototype.W3=function(Z,I){Z==="dataloaded"&&((this.gb=I.gb,this.Tx=I.Tx,isNaN(this.gb)||isNaN(this.Tx))?this.D&&(this.S.jM("intro"),this.S.removeEventListener(g.E2("intro"),this.V),this.S.removeEventListener(g.bx("intro"),this.N),this.S.removeEventListener("onShowControls",this.Z),this.hide(),this.D=!1):(this.S.addEventListener(g.E2("intro"),this.V),this.S.addEventListener(g.bx("intro"),this.N),this.S.addEventListener("onShowControls",this.Z),Z=new g.S8(this.gb,this.Tx,{priority:9,namespace:"intro"}), this.S.eM([Z]),this.D=!0))};g.U(hf,g.k);hf.prototype.onClick=function(){this.S.N6()}; hf.prototype.qs=function(){var Z=!0;g.Dh(this.S.C())&&(Z=Z&&this.S.cj().getPlayerSize().width>=480);this.o0(Z);Z=this.updateValue;var I=this.S.Y("delhi_modern_web_player_icons"),d=I?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M11,13 L25,13 L25,21 L11,21 L11,13 Z M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z",fill:"#fff"}}]};I=I?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M23 17V5C23.00 4.50 22.81 4.02 22.48 3.65C22.15 3.29 21.69 3.06 21.20 3.01L21 3H3L2.79 3.01C2.30 3.06 1.84 3.29 1.51 3.65C1.18 4.02 .99 4.50 1 5V17C0.99 17.49 1.18 17.97 1.51 18.34C1.84 18.70 2.30 18.93 2.79 18.99L3 19H5.93L7.65 17H3V5H21V17H16.35L18.06 19H21L21.20 18.99C21.69 18.93 22.15 18.70 22.48 18.34C22.81 17.97 23.00 17.49 23 17ZM17.29 21.17L12 15L6.70 21.17C6.64 21.24 6.60 21.33 6.59 21.43C6.57 21.52 6.59 21.62 6.63 21.70C6.67 21.79 6.73 21.86 6.81 21.92C6.89 21.97 6.99 22 7.08 22H16.91C17.00 22 17.10 21.97 17.18 21.92C17.26 21.86 17.32 21.79 17.36 21.70C17.40 21.62 17.42 21.52 17.40 21.43C17.39 21.33 17.35 21.24 17.29 21.17Z", fill:"white"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"M12,28 L24,28 L18,22 L12,28 Z M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,23 C7,24.1 7.9,25 9,25 L13,25 L13,23 L9,23 L9,11 L27,11 L27,23 L23,23 L23,25 L27,25 C28.1,25 29,24.1 29,23 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z"}}]};Z.call(this,"icon",this.S.z9()?d:I)};g.U(Igr,g.k);Igr.prototype.g4=function(){this.L=null;g.k.prototype.g4.call(this)};g.U(uW,g.k);uW.prototype.onClick=function(){this.S.Rn("innertubeCommand",this.D)}; uW.prototype.X=function(){if(this.S.Y("delhi_modern_web_player")){var Z=this.S.getPlayerSize();Z.width&&(this.element.style.maxWidth=Z.width*.25+"px")}}; uW.prototype.kS=function(Z){Z!==this.j&&(this.update({chapterTitle:Z,ariaLabel:Z}),this.j=Z);Z?this.show():this.hide()}; uW.prototype.LS=function(){this.L.disabled=this.D==null;g.zL(this.L,"ytp-chapter-container-disabled",this.L.disabled);this.W$()};g.U(wV,uW);wV.prototype.onClickCommand=function(Z){g.y(Z,wf)&&this.W$()}; wV.prototype.updateVideoData=function(Z,I){var d,Y,T;Z=g.y((d=I.getWatchNextResponse())==null?void 0:(Y=d.playerOverlays)==null?void 0:(T=Y.playerOverlayRenderer)==null?void 0:T.decoratedPlayerBarRenderer,o$);d=g.y(Z==null?void 0:Z.playerBarActionButton,g.Ji);if(this.S.Y("web_player_updated_entrypoint")){this.V=Zd(d==null?void 0:d.text);var f;Y=(f=d==null?void 0:d.tooltip)!=null?f:"View chapter";this.B.setAttribute("title",Y)}this.D=d==null?void 0:d.command;uW.prototype.LS.call(this)}; wV.prototype.W$=function(){var Z=this.V,I=this.N.L,d,Y=((d=this.S.getLoopRange())==null?void 0:d.type)==="clips";if(I.length>1&&!Y){Z=this.S.getProgressState().current*1E3;d=P7(I,Z);Z=I[d].title||"Chapters";if(d!==this.currentIndex||this.Z)this.S.Rn("innertubeCommand",I[d].onActiveCommand),this.currentIndex=d;this.Z=!1}else this.Z=!0;uW.prototype.kS.call(this,Z)};g.U(iD,g.m7);iD.prototype.D=function(){var Z;(Z=this.element.parentElement)==null||Z.classList.contains("ytp-right-controls-left");(this.L=!this.L)?this.publish("small-mode-expand-right-bottom-controls"):this.publish("small-mode-collapse-right-bottom-controls")}; iD.prototype.isExpanded=function(){return this.L};g.U(mr,g.k);mr.prototype.Z=function(Z){g.b(Z.state,32)?Dp(this,this.api.x$()):this.LM&&(g.b(Z.state,16)||g.b(Z.state,1))||this.fade.hide()}; mr.prototype.onProgress=function(){var Z=this.api.getPlayerStateObject();(g.b(Z,32)||g.b(Z,16))&&ah(this)}; mr.prototype.N=function(){this.frameIndex=NaN;ah(this)}; mr.prototype.hide=function(){this.L&&Dp(this,null);g.k.prototype.hide.call(this)};g.U(Z0J,g.k);g.n=Z0J.prototype;g.n.onClick=function(){var Z=this;if(this.S.C().b5||this.S.C().V){this.S.logClick(this.element);try{this.S.toggleFullscreen().catch(function(I){Z.vH(I)})}catch(I){this.vH(I)}}else $2(this.message,this.element,!0)}; g.n.vH=function(Z){String(Z).includes("fullscreen error")?g.uL(Z):g.nl(Z);this.Sz()}; g.n.Sz=function(){this.disable();this.message.dn(this.element,!0)}; g.n.AQ=function(){jM()===this.S.getRootNode()?this.Z.start():(this.Z.stop(),this.message&&this.message.hide())}; g.n.kV=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var Z=window.screen.width*.9,I=window.screen.height*.9,d=Math.max(window.outerWidth,window.innerWidth),Y=Math.max(window.outerHeight,window.innerHeight);if(d>Y!==Z>I){var T=d;d=Y;Y=T}Z>d&&I>Y&&this.Sz()}}; g.n.disable=function(){var Z=this;if(!this.message){var I=(iU(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null?"Full screen is unavailable. $BEGIN_LINKLearn More$END_LINK":"Your browser doesn't support full screen. $BEGIN_LINKLearn More$END_LINK").split(/\$(BEGIN|END)_LINK/);this.message=new g.GA(this.S,{K:"div",zm:["ytp-popup","ytp-generic-popup"],J:{role:"alert",tabindex:"0"},G:[I[0],{K:"a",J:{href:"https://support.google.com/youtube/answer/6276924", target:this.S.C().In},Z1:I[2]},I[4]]},100,!0);this.message.hide();g.z(this,this.message);this.message.subscribe("show",function(d){Z.D.xR(Z.message,d)}); g.iS(this.S,this.message.element,4);this.element.setAttribute("aria-disabled","true");this.element.setAttribute("aria-haspopup","true");(0,this.L)();this.L=null}}; g.n.qs=function(){var Z=NRr(this.S),I=this.S.C().V&&this.S.getPlayerSize().width<250;this.o0(Z&&!I);this.S.logVisibility(this.element,this.LM)}; g.n.Pl=function(Z){if(Z){var I=g.q2(this.S,"Exit full screen","f");this.update({"data-title-no-tooltip":"Exit full screen"});document.activeElement===this.element&&this.S.getRootNode().focus();document.pictureInPictureElement&&document.exitPictureInPicture().catch(function(d){g.uL(d)})}else I=g.q2(this.S,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); Z=CU9(this,Z);I=this.message?null:I;this.S.C().Y("player_tooltip_data_title_killswitch")?this.update({title:I,icon:Z}):this.update({"tooltip-title":I,"aria-label":I,icon:Z});this.D.EP().Kl()}; g.n.g4=function(){this.message||((0,this.L)(),this.L=null);g.k.prototype.g4.call(this)}; g.n.UU=function(Z){g.k.prototype.UU.call(this,Z)};g.U(W4,g.k);W4.prototype.onClick=function(){this.S.logClick(this.element);this.S.seekBy(this.L,!0);var Z=this.L>0?1:-1,I=Math.abs(this.L),d=this.S.XW().qN;d&&d.cK(Z,I);this.D.isActive()?this.Z=!0:(Z=["ytp-jump-spin"],this.L<0&&Z.push("backwards"),this.element.classList.add.apply(this.element.classList,g.c(Z)),g.Zy(this.D))};g.U(GT,uW);GT.prototype.onClickCommand=function(Z){g.y(Z,gkM)&&this.W$()}; GT.prototype.updateVideoData=function(){var Z,I;this.D=(Z=nF7(this))==null?void 0:(I=Z.onTap)==null?void 0:I.innertubeCommand;uW.prototype.LS.call(this)}; GT.prototype.W$=function(){var Z="",I=this.N.V,d,Y=(d=nF7(this))==null?void 0:d.headerTitle;d=Y?g.Q1(Y):"";var T;Y=((T=this.S.getLoopRange())==null?void 0:T.type)==="clips";I.length>1&&!Y&&(Z=this.S.getProgressState().current*1E3,T=MTL(I,Z),Z=T!=null?I[T].title:d,T!=null&&T!==this.currentIndex&&(this.S.Rn("innertubeCommand",I[T].onActiveCommand),this.currentIndex=T));uW.prototype.kS.call(this,Z)};g.U(Sk,g.k);Sk.prototype.onClick=function(){this.S.Rn("onCollapseMiniplayer");this.S.logClick(this.element)}; Sk.prototype.qs=function(){this.visible=!this.S.isFullscreen();this.o0(this.visible);this.S.logVisibility(this.element,this.visible&&this.In)}; Sk.prototype.UU=function(Z){g.k.prototype.UU.call(this,Z);this.S.logVisibility(this.element,this.visible&&Z)};g.U(cc,g.k);cc.prototype.init=function(){this.updateValue("minvalue",this.N);this.updateValue("maxvalue",this.B);this.updateValue("stepvalue",this.V);this.updateValue("slidervalue",this.L);DCn(this,this.L)}; cc.prototype.Z=function(){nG(this,Number(this.D.value));this.D.focus()}; cc.prototype.j=function(Z){if(!Z.defaultPrevented){switch(Z.code){case "ArrowDown":Z=-this.V;break;case "ArrowUp":Z=this.V;break;default:return}nG(this,Math.min(this.B,Math.max(Number((this.L+Z).toFixed(2)),this.N)))}};g.U(ZG,cc);ZG.prototype.onVolumeChange=function(Z){if(this.X)this.X=!1;else{var I=Z.volume;I===0||Z.muted?nG(this,0):nG(this,I)}}; ZG.prototype.Z=function(){cc.prototype.Z.call(this);this.LS(this.L)}; ZG.prototype.kS=function(Z){var I=-Z.deltaY;I=Z.deltaMode===WheelEvent.DOM_DELTA_LINE||Z.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.O4(this.L+I,0,100):g.O4(this.L+g.O4(I/10,-10,10),0,100);I===0?nG(this,0):nG(this,I);this.LS(I);Z.preventDefault();Z.stopPropagation()}; ZG.prototype.Ns=function(Z,I){this.X=!0;Z===0||I?this.S.mute():(this.S.isMuted()&&this.S.unMute(),this.S.setVolume(Z))};g.U(IWr,g.k);g.U(B4,g.k);g.n=B4.prototype;g.n.Q2=function(){if(!this.S.oK()){this.updateValue("dataTooltipOffsetY",-120);var Z;(Z=this.L)!=null&&X8(Z,!0);var I;(I=this.L)!=null&&I.L.stop()}}; g.n.n3=function(){var Z;(Z=this.L)!=null&&Z.L.start()}; g.n.Y6=function(Z){this.visible=Z.width>=300||this.mJ;this.o0(this.visible);this.S.logVisibility(this.element,this.visible&&this.In)}; g.n.W_=function(){this.S.C().j7?this.S.isMuted()?this.S.unMute():this.S.mute():$2(this.message,this.element,!0);this.S.logClick(this.element)}; g.n.kxm=function(Z){if(this.S.C().j7&&this.L)if(Z.target===this.Z){var I;if(!this.S.oK()||((I=this.L)==null?0:I.isVisible))this.W_();else{var d;(d=this.L)!=null&&X8(d,!0)}}else{var Y;(Y=this.L)!=null&&X8(Y,!0)}else this.W_()}; g.n.onVolumeChange=function(Z){this.setVolume(Z.volume,Z.muted)}; g.n.setVolume=function(Z,I){var d=this,Y=I?0:Z/100;Z=Y===0?1:Z>50?1:0;if(this.X!==Z){var T=this.V;isNaN(T)?bL7(this,Z):dkl(this.j7,function(P){bL7(d,T+(d.X-T)*P)},250); this.X=Z}Y=Y===0?1:0;if(this.j!==Y){var f=this.Ns;isNaN(f)?ZN$(this,Y):dkl(this.Bj,function(P){ZN$(d,f+(d.j-f)*P)},250); this.j=Y}zhi(this,I)}; g.n.UU=function(Z){g.k.prototype.UU.call(this,Z);this.S.logVisibility(this.element,this.visible&&Z)}; var CyO=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",24.77," C",21.89,",",23.85," ",24,",",21.17," ",24,",",18," C",24,",",14.83," ",21.89,",",12.15," ",19,",",11.29," L",19,",",11.29," Z"],EEO=["M",19,",",11.29," C",21.89,",",12.15," ",24,",",14.83," ",24,",",18," C",24,",",21.17," ",21.89,",",23.85," ",19,",",24.71," L",19,",",26.77," C",23.01,",",25.86," ",26,",",22.28," ",26,",",18," C",26,",",13.72," ", 23.01,",",10.14," ",19,",",9.23," L",19,",",11.29," Z"];g.U(g.ej,g.k);g.n=g.ej.prototype;g.n.onStateChange=function(Z){this.XT(Z.state)}; g.n.XT=function(Z){var I=g.IS(this.S.getVideoData()),d=!1;Z.isOrWillBePlaying()?Z=I?4:2:g.b(Z,2)?(Z=3,d=I):Z=1;this.element.disabled=d;if(this.L!==Z){I=null;switch(Z){case 2:I=g.q2(this.S,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:I="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:I=g.q2(this.S,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:I="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}Z=== 3?this.S.C().Y("player_tooltip_data_title_killswitch")?this.update({title:I,icon:u1D(this,Z)}):this.update({"tooltip-title":I,icon:u1D(this,Z)}):(this.S.Y("player_tooltip_data_title_killswitch")?this.update({title:I}):this.update({"tooltip-title":I}),(I=u1D(this,Z))&&this.L&&this.L!==3?UYn(this.transition,this.element,I):this.updateValue("icon",I));this.tooltip.Kl();this.L=Z}}; g.n.onVideoDataChange=function(){g.zL(this.element,"ytp-play-button-playlist",g.e0(this.S))}; g.n.tf=function(Z){this.S.logClick(this.element);if(this.S.getPlayerStateObject().isOrWillBePlaying())this.S.pauseVideo();else{if(this.S.isMinimized()&&this.S.getPlayerStateObject().isCued()){var I={},d;if((d=this.S.getVideoData())==null?0:d.j)I.cttAuthInfo={token:this.S.getVideoData().j,videoId:this.S.getVideoData().videoId};Pr("direct_playback",I);this.S.MA().timerName="direct_playback"}this.S.playVideo()}this.S.isMinimized()&&(Z==null?void 0:Z.type)==="click"&&this.element.blur()}; g.n.UU=function(Z){g.k.prototype.UU.call(this,Z)};g.U(g.aG,g.k);g.n=g.aG.prototype;g.n.onVideoDataChange=function(){Hvr(this);this.N&&(this.a4(this.N),this.N=null);this.videoData=this.S.getVideoData(1);if(this.playlist=this.S.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.N=this.W(this.S,"progresssync",this.GA);this.Z=G_D(this);Ve(this);this.Ju(this.S.cj().getPlayerSize())}; g.n.Ju=function(Z){Z=Z===void 0?this.S.cj().getPlayerSize():Z;var I,d=((I=this.S.getLoopRange())==null?void 0:I.type)==="clips";I=g.e0(this.S)||this.L&&g.Bo(this.S)&&!this.S.Y("web_hide_next_button")||CSu(this);var Y=!this.L&&Z.width<400;Z=this.S.Y("delhi_modern_web_player_horizontal_volume_controls")&&Z.width<640;d=I&&!d&&!Y&&!Z;this.o0(d);this.S.logVisibility(this.element,d)}; g.n.onClick=function(Z){this.S.logClick(this.element);var I=!0;this.j?I=g.D_(Z,this.S):Z.preventDefault();I&&(this.L&&this.S.getPresentingPlayerType()===5?this.S.publish("ytoprerollinternstitialnext"):this.L?(Xg(this.S.MA()),this.S.publish("playlistnextbuttonclicked",this.element),this.S.nextVideo(!0)):this.Z?this.S.seekTo(0):(Xg(this.S.MA()),this.S.publish("playlistprevbuttonclicked",this.element),this.S.previousVideo(!0)))}; g.n.GA=function(){var Z=G_D(this);Z!==this.Z&&(this.Z=Z,Ve(this))}; g.n.g4=function(){this.D&&(this.D(),this.D=null);Hvr(this);g.k.prototype.g4.call(this)};g.U(Eo,g.k);g.n=Eo.prototype;g.n.b_=function(Z){this.Pm(Z.pageX);this.CI(Z.pageX+Z.deltaX);IQ(this)}; g.n.Pm=function(Z){this.LS=Z-this.mJ}; g.n.CI=function(Z){Z-=this.mJ;!isNaN(this.LS)&&this.thumbnails.length>0&&(this.X=Z-this.LS,this.thumbnails.length>0&&this.X!==0&&(this.Z=this.V+this.X,Z=QhJ(this,this.Z),this.Z<=this.L/2&&this.Z>=qln(this)?(this.api.seekTo(Z,!1,void 0,void 0,25),g.K2(this.Ns,"transform","translateX("+(this.Z-this.L/2)+"px)"),CV(this,Z)):this.Z=this.V))}; g.n.yB=function(){this.kS&&(this.kS.uc=!0);var Z=(0,g.o8)()-this.w4<300;if(Math.abs(this.X)<5&&!Z){this.w4=(0,g.o8)();Z=this.LS+this.X;var I=this.L/2-Z;this.Pm(Z);this.CI(Z+I);IQ(this);this.api.logClick(this.B)}IQ(this)}; g.n.AA=function(){jj(this,this.api.getCurrentTime())}; g.n.play=function(Z){this.api.seekTo(QhJ(this,this.Z),void 0,void 0,void 0,26);this.api.playVideo();Z&&this.api.logClick(this.playButton)}; g.n.onExit=function(Z){this.api.seekTo(this.Tm,void 0,void 0,void 0,63);this.api.playVideo();Z&&this.api.logClick(this.dismissButton)}; g.n.CM=function(Z,I){this.mJ=Z;this.L=I;jj(this,this.api.getCurrentTime())}; g.n.enable=function(){this.isEnabled||(this.isEnabled=!0,this.Tm=this.api.getCurrentTime(),CV(this,this.Tm),g.zL(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.j7=this.W(this.element,"wheel",this.b_),this.logVisibility(this.isEnabled))}; g.n.disable=function(){this.isEnabled=!1;this.hide();g.zL(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.j7&&this.a4(this.j7);this.logVisibility(this.isEnabled)}; g.n.reset=function(){this.disable();this.N=[];this.fS=!1}; g.n.logVisibility=function(Z){this.api.logVisibility(this.element,Z);this.api.logVisibility(this.B,Z);this.api.logVisibility(this.dismissButton,Z);this.api.logVisibility(this.playButton,Z)}; g.n.g4=function(){for(;this.D.length;){var Z=void 0;(Z=this.D.pop())==null||Z.dispose()}g.k.prototype.g4.call(this)}; g.U(z7$,g.k);g.U(bM,g.k);g.U(OR$,g.k);g.U(sV,g.k);sV.prototype.gK=function(Z){return Z==="PLAY_PROGRESS"?this.V:Z==="LOAD_PROGRESS"?this.j:Z==="LIVE_BUFFER"?this.B:this.Z};f2u.prototype.update=function(Z,I,d,Y){d=d===void 0?0:d;this.width=I;this.N=d;this.L=I-d-(Y===void 0?0:Y);this.position=g.O4(Z,d,d+this.L);this.Z=this.position-d;this.D=this.Z/this.L};g.U(YL,g.k);g.U(g.QC,g.m7);g.n=g.QC.prototype; g.n.UC=function(){var Z=!1,I=this.api.getVideoData();if(!I)return Z;this.api.jM("timedMarkerCueRange");iB(this);for(var d=g.t(I.J5),Y=d.next();!Y.done;Y=d.next()){Y=Y.value;var T=void 0,f=(T=this.on[Y])==null?void 0:T.markerType,P=void 0;T=(P=this.on[Y])==null?void 0:P.markers;if(!T)break;if(f==="MARKER_TYPE_TIMESTAMPS"){Z=g.t(T);for(f=Z.next();!f.done;f=Z.next()){P=f.value;f=new YL;var O=void 0;f.title=((O=P.title)==null?void 0:O.simpleText)||"";f.timeRangeStartMillis=Number(P.startMillis);f.L=Number(P.durationMillis); var a=O=void 0;f.onActiveCommand=(a=(O=P.onActive)==null?void 0:O.innertubeCommand)!=null?a:void 0;LSr(this,f)}fa(this,this.V);Z=this.V;f=this.hV;P=[];O=null;for(a=0;aW&&(O.end=W);W=UKL(W,W+B);P.push(W);O=W;f[W.id]=Z[a].onActiveCommand}}this.api.eM(P);a:{Z=g.t(T);for(T=Z.next();!T.done;T=Z.next())if(T.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){Z=!1;break a}Z=!0}Z&&(this.DM= this.on[Y]);Z=!0}else if(f==="MARKER_TYPE_HEATMAP"){Y=this.on[Y];e=W=f=a=O=P=void 0;if(Y&&Y.markers){T=(f=(e=Y.markersMetadata)==null?void 0:(W=e.heatmapMetadata)==null?void 0:W.minHeightDp)!=null?f:0;f=(P=(a=Y.markersMetadata)==null?void 0:(O=a.heatmapMetadata)==null?void 0:O.maxHeightDp)!=null?P:60;P=this.L.length;O=null;for(a=0;a=e&&N<=B&&W.push(V)}f>0&&(this.kS.style.height=f+"px");e=this.N[a];B=W;V=T;var q=f,A=a===0;A=A===void 0?!1:A;uSl(e,q);w=B;N=e.D;A=A===void 0?!1:A;var F=1E3/w.length,J=[];J.push({x:0,y:100});for(var v=0;v0&&(O=W[W.length-1])}g.PX(this)}f=void 0;T=[];if(Y=(f=Y.markersDecoration)==null?void 0:f.timedMarkerDecorations)for(Y=g.t(Y),f=Y.next();!f.done;f=Y.next())f=f.value,a=O=P=void 0,T.push({visibleTimeRangeStartMillis:(P=f.visibleTimeRangeStartMillis)!=null?P:-1,visibleTimeRangeEndMillis:(O= f.visibleTimeRangeEndMillis)!=null?O:-1,decorationTimeMillis:(a=f.decorationTimeMillis)!=null?a:NaN,label:f.label?g.Q1(f.label):""});Y=T;this.heatMarkersDecorations=Y}}I.E1=this.V;g.zL(this.element,"ytp-timed-markers-enabled",Z);return Z}; g.n.CM=function(){g.PX(this);No(this);fa(this,this.V);if(this.D){var Z=g.Ut(this.element).x||0;this.D.CM(Z,this.j)}}; g.n.jN5=function(){var Z=this.api.getVideoData();Z&&tWJ(this,Z)}; g.n.onClickCommand=function(Z){if(Z=g.y(Z,wf)){var I=Z.key;Z.isVisible&&I&&OR(this,I)}}; g.n.AZj=function(Z){this.api.Rn("innertubeCommand",this.hV[Z.id])}; g.n.W$=function(){No(this);var Z=this.api.getCurrentTime();(Zthis.clipEnd)&&this.Sf()}; g.n.cJ=function(Z){if(!Z.defaultPrevented){var I=!1;switch(Z.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);I=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);I=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);I=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);I=!0;break;case 38:this.api.Y("enable_key_press_seek_logging")&&b7(this,this.api.getCurrentTime(),this.api.getCurrentTime()+5,"SEEK_SOURCE_SEEK_FORWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"); this.api.seekBy(5,void 0,void 0,72);I=!0;break;case 40:this.api.Y("enable_key_press_seek_logging")&&b7(this,this.api.getCurrentTime(),this.api.getCurrentTime()-5,"SEEK_SOURCE_SEEK_BACKWARD_5S","INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"),this.api.seekBy(-5,void 0,void 0,71),I=!0}I&&Z.preventDefault()}}; g.n.W3=function(Z,I){this.updateVideoData(I,Z==="newdata")}; g.n.jX=function(){this.W3("newdata",this.api.getVideoData())}; g.n.updateVideoData=function(Z,I){I=I===void 0?!1:I;var d=!!Z&&Z.FF();d&&(w5(Z)||Qf(this)?this.gB=!1:this.gB=Z.allowLiveDvr,g.zL(this.api.getRootNode(),"ytp-enable-live-buffer",!(Z==null||!w5(Z))),tWJ(this,Z));AML(this,this.api.At());if(I){if(d){I=Z.clipEnd;this.clipStart=Z.clipStart;this.clipEnd=I;DW(this);for(VJ(this,this.LS,this.I0);this.N.length>0;)this.N.pop().dispose();this.heatMarkersDecorations=[];this.Yl={};var Y;(Y=this.D)==null||Y.reset();$_(this);g.zL(this.api.getRootNode(),"ytp-fine-scrubbing-exp", lt(this))}else this.Sf();this.So()}if(Z){var T;Y=((T=this.xl)==null?void 0:T.type)==="clips";if(T=!Z.isLivePlayback){T=this.api.getVideoData();I=g.F73(T);d=xv$(T);var f;T=I!=null||d!=null&&d.length>0||((f=T.Uv)==null?void 0:f.length)>0}if(T&&!Y){f=this.api.getVideoData();Y=g.F73(f);T=!1;if(Y==null?0:Y.markersMap){T=this.api.getVideoData();var P;T.n2=((P=Y.visibleOnLoad)==null?void 0:P.key)||T.n2;P=g.t(Y.markersMap);for(Y=P.next();!Y.done;Y=P.next())Y=Y.value,Y.key&&Y.value&&(this.Yl[Y.key]=Y.value, Y.value.onChapterRepeat&&(T.toj=Y.value.onChapterRepeat));T.n2!=null&&OR(this,T.n2);T=!0}var O;if(((O=f.Uv)==null?void 0:O.length)>0){O=g.KG.getState().entities;P=g.t(f.Uv);for(Y=P.next();!Y.done;Y=P.next()){Y=Y.value;d=void 0;I=(d=CG(O,"macroMarkersListEntity",Y))==null?void 0:d.markersList;var a=d=void 0;if(((d=I)==null?void 0:d.markerType)==="MARKER_TYPE_TIMESTAMPS"||((a=I)==null?void 0:a.markerType)==="MARKER_TYPE_HEATMAP")this.on[Y]=I}T=this.UC()||T}!T&&(O=xv$(f))&&(JbL(this,O),f.Mj=this.L,ksE(this)); LGr(this,null);Z.gk&&this.N.length===0&&(Z=Z.gk,O=Z.key,Z.isVisible&&O&&OR(this,O))}else uQn(this),iB(this)}No(this)}; g.n.Ob=function(Z){this.X&&!g.b(Z.state,32)&&this.api.getPresentingPlayerType()!==3&&this.X.cancel();var I;((I=this.D)==null?0:I.isEnabled)&&g.b(Z.state,8)&&this.api.pauseVideo();Z=this.api.getPresentingPlayerType()===2||!this.api.At()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.zL(this.wV,"ytp-hide-scrubber-button",Z)}; g.n.jB=function(Z){var I=!!this.xl!==!!Z,d=this.xl;this.xl=Z;LGr(this,d);(Z==null?void 0:Z.type)!=="clips"&&Z||(Z?(this.updateValue("clipstarticon",lZi()),this.updateValue("clipendicon",lZi()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",AVB()),this.updateValue("clipendicon",nBd()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),I&&(this.updateVideoData(this.api.getVideoData(), !0),g.PX(this)),DW(this));VJ(this,this.LS,this.I0)}; g.n.tMm=function(){this.api.publish("progressBarHoverStart")}; g.n.LH4=function(Z,I,d){var Y=g.Ut(this.element),T=Tx(this).L,f=d?d.getAttribute("data-tooltip"):void 0,P=d?d.getAttribute("data-position"):void 0,O=d?d.getAttribute("data-offset-y"):void 0;O=O?Number(O):0;P&&(Z=QJ(this.Z,Number(d.getAttribute("data-position")),0)*T+g.Ut(this.progressBar).x);this.UZ.x=Z-Y.x;this.UZ.y=I-Y.y;Z=Tx(this);d=Rg(this,Z);I=0;var a;if((a=this.api.getVideoData())==null?0:w5(a))(a=this.api.getProgressState().seekableEnd)&&d>a&&(d=a,Z.position=QJ(this.Z,a)*Tx(this).L),I=this.Z.D; Qf(this)&&(I=this.Z.D);a=f||g.ft(this.gB?d-this.Z.L:d-I);I=Z.position+this.Qx;d-=this.api.Fx();var W;if((W=this.D)==null||!W.isEnabled)if(this.api.x$()){if(this.L.length>1){W=kv(this,this.UZ.x,!0);if(!this.xl)for(Y=0;Y1)for(Y=0;Y0)for(W=this.UZ.x,Y=g.t(this.V),T=Y.next();!T.done;T=Y.next())T=T.value,P=W7(this,T.timeRangeStartMillis/ (this.Z.L*1E3),Tx(this)),g.zL(T.element,"ytp-timed-marker-hover",P<=W&&P+6>=W);Y=this.tooltip.scale;W=this.api.Y("delhi_modern_web_player")?67:45;O=(isNaN(O)?0:O)-W*Y;this.api.Y("web_key_moments_markers")?this.DM?(W=MTL(this.V,d*1E3),W=W!=null?this.V[W].title:""):(W=P7(this.L,d*1E3),W=this.L[W].title):(W=P7(this.L,d*1E3),W=this.L[W].title);W||(O+=16*Y);this.tooltip.scale===.6&&(g.qN(this.api.C())?(O=this.api.cj().getPlayerSize().height-225,Y=this.api.Y("delhi_modern_web_player")?70:110,O=W?O+Y:O+ Y+16):O=W?110:126);Y=P7(this.L,d*1E3);this.j7=AlO(this,d,Y)?Y:AlO(this,d,Y+1)?Y+1:-1;g.zL(this.api.getRootNode(),"ytp-progress-bar-snap",this.j7!==-1&&this.L.length>1);Y=!1;T=g.t(this.heatMarkersDecorations);for(P=T.next();!P.done;P=T.next()){P=P.value;var e=d*1E3;e>=P.visibleTimeRangeStartMillis&&e<=P.visibleTimeRangeEndMillis&&(W=P.label,a=g.ft(P.decorationTimeMillis/1E3),this.api.Y("web_heat_marker_use_current_time")&&(a=g.ft(Rg(this,Z))),Y=!0)}this.Vf!==Y&&(this.Vf=Y,this.api.logVisibility(this.vg, this.Vf));g.zL(this.api.getRootNode(),"ytp-progress-bar-decoration",Y);Y=160*this.tooltip.scale*2;T=W.length*(this.B?8.55:5.7);T=T<=Y?T:Y;P=T<160*this.tooltip.scale;Y=3;!P&&T/2>Z.position&&(Y=1);!P&&T/2>this.j-Z.position&&(Y=2);this.api.C().V&&(O-=10);this.N.length&&this.N[0].FF&&(O-=14*(this.B?2:1),this.w4||(this.w4=!0,this.api.logVisibility(this.kS,this.w4)));var B;if(lt(this)&&(((B=this.D)==null?0:B.isEnabled)||this.d4>0)){var w;O-=((w=this.D)==null?0:w.isEnabled)?(this.B?135:90)-this.Ns:this.d4}B= void 0;lt(this)&&!this.api.Y("web_player_hide_fine_scrubbing_edu")&&(B="Pull up for precise seeking",this.Tm||(this.Tm=!0,this.api.logVisibility(this.wz,this.Tm)));this.tooltip.Av(I,d,a,!!f,O,W,Y,B)}else this.tooltip.Av(I,d,a,!!f,O);g.xw(this.api.getRootNode(),"ytp-progress-bar-hover");R1O(this)}; g.n.IAm=function(){this.So();g.KF(this.api.getRootNode(),"ytp-progress-bar-hover");this.w4&&(this.w4=!1,this.api.logVisibility(this.kS,this.w4));this.Tm&&(this.Tm=!1,this.api.logVisibility(this.wz,this.Tm));this.api.Y("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.n.U8j=function(Z,I){var d=g.Ut(this.element);this.o4=Z-d.x;lt(this)&&this.D&&(this.D.fS?jj(this.D,this.api.getCurrentTime()):kVn(this.D),this.D.show(),g.zL(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.D.isEnabled));this.aE&&(this.aE.dispose(),this.aE=null);this.s_=I;this.du=this.api.getCurrentTime();this.L.length>1&&this.j7!==-1?this.api.seekTo(this.L[this.j7].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(Rg(this,Tx(this)),!1,void 0,void 0,7);g.xw(this.element,"ytp-drag");(this.Mj= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.n.Dc1=function(){if(lt(this)&&this.D){var Z=(this.B?135:90)-this.Ns;this.d4>=Z*.5?(this.D.enable(),jj(this.D,this.api.getCurrentTime()),n0L(this,Z)):$_(this)}if(g.b(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var I;if((I=this.D)==null?0:I.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.L.length>1&&this.j7!==-1)this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&b7(this,this.du,this.L[this.j7].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.L[this.j7].startTime/1E3,void 0,void 0,void 0,7);else{Z=Rg(this,Tx(this));this.api.Y("html5_enable_progress_bar_slide_seek_logging")&&b7(this,this.du,Z,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(Z,void 0,void 0,void 0,7);I=g.t(this.heatMarkersDecorations);for(var d=I.next();!d.done;d=I.next())d=d.value,Z*1E3>=d.visibleTimeRangeStartMillis&&Z*1E3<=d.visibleTimeRangeEndMillis&& this.api.logClick(this.vg)}g.KF(this.element,"ytp-drag");this.fS&&(this.Bj.src=this.fS);this.Mj&&!g.b(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.n.k_5=function(Z,I){var d=this,Y=Tx(this),T=Rg(this,Y);this.api.cj().ge||(Y.position>this.o4+2?this.M8&&(this.Bj.src=this.M8):Y.position1);this.o0(Z&&this.S.cj().getPlayerSize().width>=400);this.S.logVisibility(this.element,this.LM);var I=1;Z&&this.isActive()&&(I=2);if(this.L!==I){this.L=I;Z=this.S.Y("delhi_modern_web_player_icons");switch(I){case 1:this.updateValue("icon",Z?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M21 3H3C2.46 3 1.96 3.21 1.58 3.58C1.21 3.96 1 4.46 1 5V8C1.68 8.00 2.34 8.05 3 8.15V5H21V19H13.84C13.94 19.65 13.99 20.31 14 21H21C21.53 21 22.03 20.78 22.41 20.41C22.78 20.03 23 19.53 23 19V5C23 4.46 22.78 3.96 22.41 3.58C22.03 3.21 21.53 3 21 3ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:{K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},G:[{K:"path",ZU:!0,J:{d:"M27,9 L9,9 C7.9,9 7,9.9 7,11 L7,14 L9,14 L9,11 L27,11 L27,25 L20,25 L20,27 L27,27 C28.1,27 29,26.1 29,25 L29,11 C29,9.9 28.1,9 27,9 L27,9 Z M7,24 L7,27 L10,27 C10,25.34 8.66,24 7,24 L7,24 Z M7,20 L7,22 C9.76,22 12,24.24 12,27 L14,27 C14,23.13 10.87,20 7,20 L7,20 Z M7,16 L7,18 C11.97,18 16,22.03 16,27 L18,27 C18,20.92 13.07,16 7,16 L7,16 Z",fill:"#fff"}}]});break;case 2:this.updateValue("icon", Z?{K:"svg",J:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},G:[{K:"path",J:{d:"M21.20 3.01C21.69 3.06 22.15 3.29 22.48 3.65C22.81 4.02 23.00 4.50 23 5V19L22.99 19.20C22.94 19.66 22.73 20.08 22.41 20.41C22.08 20.73 21.66 20.94 21.20 20.98L21 21H14C13.99 20.31 13.94 19.65 13.84 19H21V5H3V8.15C2.34 8.05 1.68 8.00 1 8V5C0.99 4.50 1.18 4.02 1.51 3.65C1.84 3.29 2.30 3.06 2.79 3.01L3 3H21L21.20 3.01ZM19 17V7H5V8.62C6.95 9.26 8.73 10.35 10.19 11.80C11.64 13.26 12.73 15.04 13.37 17H19ZM1 10V12C2.18 12 3.35 12.23 4.44 12.68C5.53 13.13 6.52 13.80 7.36 14.63C8.19 15.47 8.86 16.46 9.31 17.55C9.76 18.64 10 19.81 10 21H12C12 18.08 10.84 15.28 8.77 13.22C6.71 11.15 3.91 10 1 10ZM1 14V16C1.65 16 2.30 16.12 2.91 16.38C3.52 16.63 4.07 17.00 4.53 17.46C4.99 17.92 5.36 18.48 5.61 19.08C5.87 19.69 6 20.34 6 21H8C8 19.14 7.26 17.36 5.94 16.05C4.63 14.73 2.85 14 1 14ZM1 18V21H4C3.99 20.20 3.68 19.44 3.12 18.87C2.55 18.31 1.79 18.00 1 18Z", fill:"white"}}]}:g.n2J())}g.zL(this.element,"ytp-remote-button-active",this.isActive())}}; nk.prototype.D=function(){if(this.S.getOption("remote","quickCast"))this.S.setOption("remote","quickCast",!0);else{var Z=this.A5,I=this.element;if(Z.qO())Z.zb();else{Z.initialize();a:{var d=g.t(Z.UP.items);for(var Y=d.next();!Y.done;Y=d.next())if(Y=Y.value,Y.priority===1){d=Y;break a}d=null}d&&(d.open(),Z.dn(I));Z.dn(I)}}this.S.logClick(this.element)};g.U(Fy,g.k);Fy.prototype.L=function(Z){var I=this.S.C(),d=400;I.j?d=300:I.V&&(d=200);Z=this.D&&Z.width>=d;this.o0(Z);this.S.logVisibility(this.element,Z)}; Fy.prototype.Z=function(){if(this.A5.LM)this.A5.zb();else{var Z=g.Ow(this.S.nM());Z&&!Z.loaded&&(Z.k$("tracklist",{includeAsr:!0}).length||Z.load());this.S.logClick(this.element);this.A5.dn(this.element)}}; Fy.prototype.updateBadge=function(){var Z=this.S.isHdr(),I=this.S.getPresentingPlayerType(),d=I!==2&&I!==3,Y=g.Uk(this.S),T=d&&!!g.D3(this.S.nM());I=T&&Y.displayMode===1;Y=T&&Y.displayMode===2;d=(T=I||Y)||!d?null:this.S.getPlaybackQuality();g.zL(this.element,"ytp-hdr-quality-badge",Z);g.zL(this.element,"ytp-hd-quality-badge",!Z&&(d==="hd1080"||d==="hd1440"));g.zL(this.element,"ytp-4k-quality-badge",!Z&&d==="hd2160");g.zL(this.element,"ytp-5k-quality-badge",!Z&&d==="hd2880");g.zL(this.element,"ytp-8k-quality-badge", !Z&&d==="highres");g.zL(this.element,"ytp-3d-badge-grey",!Z&&T&&I);g.zL(this.element,"ytp-3d-badge",!Z&&T&&Y)};g.U(Ql,g.St);g.n=Ql.prototype;g.n.qs=function(){var Z=this.S.getAvailableAudioTracks();if(Z.length>1){this.iW(g.Ft(Z,this.ev));this.tracks=g.CM(Z,this.ev,this);this.countLabel.setContent(Z.length?" ("+Z.length+")":"");this.publish("size-change");Z=this.ev(this.S.getAudioTrack());this.L6(Z);if(this.S.Y("html5_enable_new_audio_settings_menu")){var I;(I=this.L)!=null&&I.setContent(Z.toString())}this.enable(!0)}else{if(this.S.Y("html5_enable_new_audio_settings_menu")){var d;(d=this.L)!=null&&d.setContent("")}this.enable(!1)}}; g.n.ZG=function(Z){g.St.prototype.ZG.call(this,Z);this.S.setAudioTrack(this.tracks[Z]);this.A5.BB()}; g.n.ev=function(Z){return Z.toString()}; g.n.Bu=function(Z){this.S.Y("html5_enable_new_audio_settings_menu")?this.L&&(Z?this.L.vk(this):this.L.Bb(this)):g.St.prototype.Bu.call(this,Z)}; g.n.onClick=function(){this.S.logClick(this.element)};g.U(wlM,g.w9);g.n=wlM.prototype;g.n.Dt=function(){this.S.Dt()}; g.n.open=function(){this.Ja.zL()>0&&g.Li(this.A5,this.Ja)}; g.n.sV=function(){this.Ja.zL()>0&&this.S.getPresentingPlayerType()!==2&&this.S.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.n.cJ=function(Z){Z.defaultPrevented||(this.open(),Z.preventDefault())}; g.n.vk=function(Z){this.Ja.vk(Z)}; g.n.Bb=function(Z){this.Ja.Bb(Z)};g.U(bY,lJ); bY.prototype.sV=function(){var Z=this.S.getPresentingPlayerType();if(Z!==2&&Z!==3&&g.Bo(this.S))this.L||(this.A5.vk(this),this.L=!0,this.D.push(this.W(this.S,"videodatachange",this.sV)),this.D.push(this.W(this.S,"videoplayerreset",this.sV)),this.D.push(this.W(this.S,"onPlaylistUpdate",this.sV)),this.D.push(this.W(this.S,"autonavchange",this.Z)),Z=this.S.getVideoData(),this.Z(Z.autonavState),this.S.logVisibility(this.element,this.L));else if(this.L){this.A5.Bb(this);this.L=!1;Z=g.t(this.D);for(var I= Z.next();!I.done;I=Z.next())this.a4(I.value)}}; bY.prototype.Z=function(Z){Mk(this,Z!==1)}; bY.prototype.onSelect=function(Z){this.S.Ya(Z?2:1);this.L&&(this.S.logVisibility(this.element,this.L),this.S.logClick(this.element))}; bY.prototype.g4=function(){this.L&&this.A5.Bb(this);lJ.prototype.g4.call(this)};g.U(Qoa,g.w9);Qoa.prototype.onClick=function(Z){Z.preventDefault();var I,d;(I=g.k6(this.S))==null||(d=I.sI())==null||d.zb();var Y,T;(Y=g.k6(this.S))==null||(T=Y.g0())==null||T.dn(Z.target)};g.U(xA,g.St);g.n=xA.prototype; g.n.sV=function(){var Z=this.S.getPresentingPlayerType();if(Z!==2&&Z!==3){this.kS=this.S.Fe();var I=this.S.getAvailableQualityLevels();if(this.L){this.D={};Z=g.WR(this.S,"getAvailableQualityData",[]);Z=g.t(Z);for(var d=Z.next();!d.done;d=Z.next())d=d.value,this.D[d.qualityLabel]=d;Z=Object.keys(this.D);I[I.length-1]==="auto"&&Z.push("auto");this.Ns=new Set(I)}else if(this.N){d=g.WR(this.S,"getAvailableQualityData",[]);Z=[];d=g.t(d);for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,this.j[Y.quality]= Y,Y.quality&&Z.push(Y.quality);I[I.length-1]==="auto"&&Z.push("auto")}else Z=I;g.Xrd(this.S)&&this.S.vv()&&Z.unshift("missing-qualities");I=this.S.app.l5();d=I.getVideoData();if(!d.D||!d.D.video||d.D.video.qualityOrdinal<1080||d.k5)I=!1;else{Y=/^qsa/.test(d.clientPlaybackNonce);var T="r";d.D.id.indexOf(";")>=0&&(Y=/^[a-p]/.test(d.clientPlaybackNonce),T="x");Y?(I.D1("iqss",{trigger:T},!0),I=!0):I=!1}I&&Z.unshift("inline-survey");this.iW(Z);I=this.S.getVideoData().cotn?!0:!1;d=this.LS.QQ();d=!g.qN(this.S.C())|| !(I===void 0?0:I)||!(d===void 0||d);I=this.Ja;d=d===void 0?!1:d;I.L3&&g.zL(I.KS("ytp-panel-footer"),"ytp-panel-hide-footer",d===void 0?!1:d);if(Z.length){this.OQ();this.enable(!0);return}}this.enable(!1)}; g.n.OQ=function(){if(this.L){var Z=this.S.getPreferredQuality();this.Ns.has(Z)&&(this.B=this.S.getPlaybackQuality(),this.V=this.S.getPlaybackQualityLabel(),Z==="auto"?(this.L6(Z),this.setContent(this.KA(Z))):this.L6(this.V))}else Z=this.S.getPreferredQuality(),this.options[Z]&&(this.B=this.S.getPlaybackQuality(),this.L6(Z),Z==="auto"&&this.setContent(this.KA(Z)))}; g.n.ZG=function(Z){if(Z!=="missing-qualities"){g.St.prototype.ZG.call(this,Z);var I=this.L?this.D[Z]:this.j[Z];var d=I==null?void 0:I.quality,Y=I==null?void 0:I.formatId,T=I==null?void 0:I.paygatedQualityDetails;I=T==null?void 0:T.endpoint;if(T){var f;T=(f=this.options[Z])==null?void 0:f.element;this.S.logClick(T)}if(this.L){var P,O;if((P=g.y(I,g.K_W))==null?0:(O=P.popup)==null?0:O.notificationActionRenderer)this.S.Rn("innertubeCommand",I);else if(I){this.S.Rn("innertubeCommand",I);return}Y?this.S.setPlaybackQuality(d, Y):this.S.setPlaybackQuality(d)}else{if(this.N){var a,W;if((a=g.y(I,g.K_W))==null?0:(W=a.popup)==null?0:W.notificationActionRenderer)this.S.Rn("innertubeCommand",I);else if(I){this.S.Rn("innertubeCommand",I);return}}this.S.setPlaybackQuality(Z)}this.A5.zb();this.sV()}}; g.n.open=function(){for(var Z=g.t(Object.values(this.options)),I=Z.next();!I.done;I=Z.next()){I=I.value;var d=void 0;this.S.hasVe((d=I)==null?void 0:d.element)&&(d=void 0,this.S.logVisibility((d=I)==null?void 0:d.element,!0))}g.St.prototype.open.call(this);this.S.logClick(this.element)}; g.n.j$=function(Z,I,d){var Y=this;if(Z==="missing-qualities")return new g.w9({K:"a",zm:["ytp-menuitem"],J:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.S.C().In,tabindex:"0",role:"menuitemradio"},G:[{K:"div",zm:["ytp-menuitem-label"],Z1:"{{label}}"}]},I,this.KA(Z));if(Z!=="inline-survey"){var T,f=(T=this.L?this.D[Z]:this.j[Z])==null?void 0:T.paygatedQualityDetails;T=f==null?void 0:f.veType;f=f==null?void 0:f.trackingParams;I=g.St.prototype.j$.call(this,Z,I,d);f?(this.S.createServerVe(I.element, this,!0),this.S.setTrackingParams(I.element,f)):T&&this.S.createClientVe(I.element,this,T,!0);return I}Z=[{K:"span",Z1:"Looks good?"}];d=g.t([!0,!1]);f=d.next();for(T={};!f.done;T={Cs:void 0},f=d.next())T.Cs=f.value,f=new g.k({K:"span",T:"ytp-menuitem-inline-survey-response",G:[T.Cs?uiu():mq9()],J:{tabindex:"0",role:"button"}}),f.listen("click",function(P){return function(){var O=Y.S.app.l5();O.D1("iqsr",{tu:P.Cs});O.getVideoData().k5=!0;Y.A5.zb();Y.sV()}}(T)),Z.push(f); return new g.w9({K:"div",T:"ytp-menuitem",J:{"aria-disabled":"true"},G:[{K:"div",zm:["ytp-menuitem-label"],G:Z}]},I)}; g.n.KA=function(Z,I){I=I===void 0?!1:I;if(Z==="missing-qualities")return{K:"div",Z1:"Missing options?"};if(Z==="inline-survey")return"";var d=this.N||this.L?[cW(this,Z,I,!1)]:[GtE(this,Z)];var Y=this.S.getPreferredQuality();I||Y!=="auto"||Z!=="auto"||(d.push(" "),this.L?d.push(cW(this,this.V,I,!0,["ytp-menu-label-secondary"])):this.N?d.push(cW(this,this.B,I,!0,["ytp-menu-label-secondary"])):d.push(GtE(this,this.B,["ytp-menu-label-secondary"])));return{K:"div",G:d}};g.U(UV,cc);UV.prototype.Z=function(){cc.prototype.Z.call(this);this.X&&YpJ(this)}; UV.prototype.Bj=function(){this.LS()}; UV.prototype.Ns=function(){this.S.setPlaybackRate(this.L,!0)}; UV.prototype.j=function(Z){cc.prototype.j.call(this,Z);this.LS();YpJ(this);Z.preventDefault()};g.U(ZQ,g.k);g.n=ZQ.prototype;g.n.init=function(){this.aM(this.L);this.updateValue("minvalue",this.D);this.updateValue("maxvalue",this.Z)}; g.n.U0=function(Z){if(!Z.defaultPrevented){switch(Z.keyCode){case 37:case 40:var I=-this.V;break;case 39:case 38:I=this.V;break;default:return}this.aM(this.L+I);Z.preventDefault()}}; g.n.v5=function(Z){var I=this.L;I+=(Z.deltaX||-Z.deltaY)<0?-this.X:this.X;this.aM(I);Z.preventDefault()}; g.n.hA=function(Z){Z=(Z-g.Ut(this.N).x)/this.LS*this.range+this.D;this.aM(Z)}; g.n.aM=function(Z,I){I=I===void 0?"":I;Z=g.O4(Z,this.D,this.Z);I===""&&(I=Z.toString());this.updateValue("valuenow",Z);this.updateValue("valuetext",I);this.kS.style.left=(Z-this.D)/this.range*(this.LS-this.fS)+"px";this.L=Z}; g.n.focus=function(){this.j7.focus()};g.U(vY,ZQ);vY.prototype.Ns=function(){this.S.setPlaybackRate(this.L,!0)}; vY.prototype.aM=function(Z){ZQ.prototype.aM.call(this,Z,wK(this,Z).toString());this.B&&(BY(this),this.Bj())}; vY.prototype.updateValues=function(){var Z=this.S.getPlaybackRate();wK(this,this.L)!==Z&&(this.aM(Z),BY(this))};g.U(Gl,g.m7);Gl.prototype.focus=function(){this.L.focus()};g.U(hg,kK);g.U(GL,g.St);g.n=GL.prototype;g.n.KA=function(Z){return Z==="1"?"Normal":Z.toLocaleString()}; g.n.qs=function(){var Z,I=(Z=this.S.getVideoData())==null?void 0:Z.YF();Z=this.S.getPresentingPlayerType(I);this.enable(Z!==2&&Z!==3);vya(this)}; g.n.iW=function(Z){g.St.prototype.iW.call(this,Z);this.V&&this.V.D.focus()}; g.n.Bu=function(Z){g.St.prototype.Bu.call(this,Z);Z?(this.kS=this.W(this.S,"onPlaybackRateChange",this.onPlaybackRateChange),vya(this),Gmu(this,this.S.getPlaybackRate())):(this.a4(this.kS),this.kS=null)}; g.n.onPlaybackRateChange=function(Z){var I=this.S.getPlaybackRate();!this.N&&this.LS.includes(I)||O8a(this,I);Gmu(this,Z)}; g.n.j$=function(Z,I,d){if(Z===this.L&&w3(this.S))return g.St.prototype.j$.call(this,Z,I,d,{K:"div",T:"ytp-speed-slider-menu-footer",G:[this.V]});if(Z===this.D&&F7E(this.S,this.Ns))return dZr(this,Z,I,d);Z=g.St.prototype.j$.call(this,Z,I,d);this.S.createClientVe(Z.element,this,278479);this.S.logVisibility(Z.element,!0);return Z}; g.n.ZG=function(Z){g.St.prototype.ZG.call(this,Z);Z===this.D?(this.S.logClick(this.j.element),this.S.Rn("innertubeCommand",this.Ns)):Z===this.L?this.S.setPlaybackRate(this.B,!0):this.S.setPlaybackRate(Number(Z),!0);(!w3(this.S)||Z!==this.L&&Z!==this.D)&&this.A5.BB()}; g.n.X3=function(Z){var I=Z===this.L;this.N=!1;I&&Jg(this.S)&&!w3(this.S)?(Z=new hg(this.S),g.Li(this.A5,Z)):g.St.prototype.X3.call(this,Z)};g.U(k1i,g.St);g.n=k1i.prototype;g.n.L6=function(Z){g.St.prototype.L6.call(this,Z)}; g.n.Tt=function(Z){return Z.option.toString()}; g.n.getOption=function(Z){return this.settings[Z]}; g.n.KA=function(Z){return this.getOption(Z).text||""}; g.n.ZG=function(Z){g.St.prototype.ZG.call(this,Z);this.publish("settingChange",this.setting,this.settings[Z].option)};g.U(fQ,g.Kv);fQ.prototype.WJ=function(Z){for(var I=g.t(Object.keys(Z)),d=I.next();!d.done;d=I.next()){var Y=d.value;if(d=this.uL[Y]){var T=Z[Y].toString();Y=!!Z[Y+"Override"];d.options[T]&&(d.L6(T),d.D.element.setAttribute("aria-checked",String(!Y)),d.L.element.setAttribute("aria-checked",String(Y)))}}}; fQ.prototype.E_=function(Z,I){this.publish("settingChange",Z,I)};g.U(Ru,g.St);Ru.prototype.L=function(Z){return Z.languageCode}; Ru.prototype.KA=function(Z){return this.languages[Z].languageName||""}; Ru.prototype.ZG=function(Z){this.publish("select",Z);this.S.logClick(this.element);g.LE(this.A5)};g.U(yZn,g.St);g.n=yZn.prototype;g.n.sO=function(Z){return g.xG(Z)?"__off__":Z.displayName}; g.n.KA=function(Z){return Z==="__off__"?"Off":Z==="__translate__"?"Auto-translate":Z==="__contribute__"?"Add subtitles/CC":Z==="__correction__"?"Suggest caption corrections":(Z==="__off__"?{}:this.tracks[Z]).displayName}; g.n.ZG=function(Z){if(Z==="__translate__")this.L.open();else if(Z==="__contribute__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var I=g.LV(this.S.C(),this.S.getVideoData());g.tY(I)}else if(Z==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var d=h7(this);pD(this,d);g.St.prototype.ZG.call(this,this.sO(d));var Y,T;d=(I=this.S.getVideoData().getPlayerResponse())==null?void 0:(Y=I.captions)==null?void 0:(T=Y.playerCaptionsTracklistRenderer)== null?void 0:T.openTranscriptCommand;this.S.Rn("innertubeCommand",d);this.A5.BB();this.D&&this.S.logClick(this.D)}else{if(Z==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();I=h7(this);pD(this,I);g.St.prototype.ZG.call(this,this.sO(I));var f,P;I=(d=this.S.getVideoData().getPlayerResponse())==null?void 0:(f=d.captions)==null?void 0:(P=f.playerCaptionsTracklistRenderer)==null?void 0:P.openTranscriptCommand;this.S.Rn("innertubeCommand",I)}else this.S.logClick(this.element), pD(this,Z==="__off__"?{}:this.tracks[Z]),g.St.prototype.ZG.call(this,Z);this.A5.BB()}}; g.n.qs=function(){var Z=this.S.getOptions();Z=Z&&Z.indexOf("captions")!==-1;var I=this.S.getVideoData(),d=I&&I.YO,Y,T=!((Y=this.S.getVideoData())==null||!g.aC(Y));Y={};if(Z||d){var f;if(Z){var P=this.S.getOption("captions","track");Y=this.S.getOption("captions","tracklist",{includeAsr:!0});var O=T?[]:this.S.getOption("captions","translationLanguages");this.tracks=g.CM(Y,this.sO,this);T=g.Ft(Y,this.sO);var a,W;h7(this)&&((f=I.getPlayerResponse())==null?0:(a=f.captions)==null?0:(W=a.playerCaptionsTracklistRenderer)== null?0:W.openTranscriptCommand)&&T.push("__correction__");if(O.length&&!g.xG(P)){if((f=P.translationLanguage)&&f.languageName){var e=f.languageName;f=O.findIndex(function(B){return B.languageName===e}); feB(O,f)}ygV(this.L,O);T.push("__translate__")}f=this.sO(P)}else this.tracks={},T=[],f="__off__";T.unshift("__off__");this.tracks.__off__={};d&&T.unshift("__contribute__");this.tracks[f]||(this.tracks[f]=P,T.push(f));this.iW(T);this.L6(f);P&&P.translationLanguage?this.L.L6(this.L.L(P.translationLanguage)):jVr(this.L);Z&&this.N.WJ(this.S.getSubtitlesUserSettings());this.countLabel.setContent(Y&&Y.length?" ("+Y.length+")":"");this.publish("size-change");this.S.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.n.tI=function(Z){var I=this.S.getOption("captions","track");I=g.zm(I);I.translationLanguage=this.L.languages[Z];pD(this,I)}; g.n.E_=function(Z,I){if(Z==="reset")this.S.resetSubtitlesUserSettings();else{var d={};d[Z]=I;this.S.updateSubtitlesUserSettings(d)}PK9(this,!0);this.B.start();this.N.WJ(this.S.getSubtitlesUserSettings())}; g.n.EFm=function(Z){Z||g.V9(this.B)}; g.n.g4=function(){g.V9(this.B);g.St.prototype.g4.call(this)}; g.n.open=function(){g.St.prototype.open.call(this);this.options.__correction__&&!this.D&&(this.D=this.options.__correction__.element,this.S.createClientVe(this.D,this,167341),this.S.logVisibility(this.D,!0))};g.U(r2L,g.zA);g.n=r2L.prototype; g.n.initialize=function(){if(!this.isInitialized){var Z=this.S.C();this.isInitialized=!0;try{this.N2=new xA(this.S,this)}catch(d){g.uL(Error("QualityMenuItem creation failed"))}g.z(this,this.N2);var I=new yZn(this.S,this);g.z(this,I);Z.enableSpeedOptions&&(I=new GL(this.S,this),g.z(this,I));(g.Dh(Z)||Z.j)&&(Z.D||Z.w4)&&(I=new Qoa(this.S,this),g.z(this,I));Z.R4&&!Z.Y("web_player_move_autonav_toggle")&&(I=new bY(this.S,this),g.z(this,I));Z.Y("html5_enable_new_audio_settings_menu")?(this.nB=new wlM(this.S, this),g.z(this,this.nB)):(Z=new Ql(this.S,this),g.z(this,Z));this.S.publish("settingsMenuInitialized");dK(this.settingsButton,this.UP.zL())}}; g.n.vk=function(Z){this.initialize();this.UP.vk(Z);dK(this.settingsButton,this.UP.zL())}; g.n.Bb=function(Z){this.OZ()||(this.LM&&this.UP.zL()<=1&&this.hide(),this.UP.Bb(Z),dK(this.settingsButton,this.UP.zL()))}; g.n.dn=function(Z){this.initialize();this.UP.zL()>0&&g.zA.prototype.dn.call(this,Z)}; g.n.zb=function(){this.s5?this.s5=!1:g.zA.prototype.zb.call(this)}; g.n.show=function(){g.zA.prototype.show.call(this);g.xw(this.S.getRootNode(),"ytp-settings-shown")}; g.n.hide=function(){g.zA.prototype.hide.call(this);g.KF(this.S.getRootNode(),"ytp-settings-shown")}; g.n.XQ=function(Z){this.S.logVisibility(this.element,Z);this.S.publish("settingsMenuVisibilityChanged",Z)};g.U(o5J,g.k);g.n=o5J.prototype;g.n.onClick=function(){if(of(this)&&(this.S.toggleSubtitles(),this.S.logClick(this.element),!this.isEnabled())){var Z=!1,I=g.$x().K_(65);g.qN(this.S.C())&&I!=null&&(Z=!I);Z&&this.S.C().Y("web_player_nitrate_promo_tooltip")&&this.S.publish("showpromotooltip",this.element)}}; g.n.hOS=function(Z){var I,d;(I=g.k6(this.S))==null||(d=I.sI())==null||d.dn(Z)}; g.n.isEnabled=function(){var Z=this.S.getOption("captions","track");return!(!Z||!Z.displayName)}; g.n.qs=function(){var Z=of(this),I=300;this.S.C().V&&(I=480);this.S.Y("delhi_modern_web_player_icons")&&this.updateValue("icon",v9W(this));if(this.S.C().j){this.updateValue("title",g.q2(this.S,"Subtitles/closed captions","c"));this.update({"tooltip-title":g.q2(this.S,"Subtitles/closed captions","c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var d=Z}else{if(Z)(d=this.KS("ytp-subtitles-button-icon"))==null||d.setAttribute("fill-opacity","1"),this.S.C().Y("player_tooltip_data_title_killswitch")? this.updateValue("title",g.q2(this.S,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.q2(this.S,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{if(this.S.Y("delhi_modern_web_player_icons")){var Y;(Y=this.KS("ytp-subtitles-button-icon"))==null||Y.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var T;(T=this.KS("ytp-subtitles-button-icon"))==null||T.setAttribute("fill-opacity","0.3")}this.updateValue("title", "Subtitles/closed captions unavailable");this.update({"tooltip-title":"Subtitles/closed captions unavailable"});this.update({"data-title-no-tooltip":"Subtitles/closed captions unavailable"})}d=!0}this.tooltip.Kl();d=d&&this.S.cj().getPlayerSize().width>=I;this.o0(d);this.S.logVisibility(this.element,d);Z?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.n.UU=function(Z){g.k.prototype.UU.call(this,Z)};g.U(g.Od,g.k);g.n=g.Od.prototype;g.n.canShowCountdown=function(){return!SP(this)&&!sm(this)}; g.n.W$=function(){var Z=this.api.cj().getPlayerSize().width,I=this.X;this.api.C().V&&(I=400);I=Z>=I&&(!sm(this)||!g.b(this.api.getPlayerStateObject(),64));this.o0(I);g.zL(this.element,"ytp-time-display-allow-autohide",I&&Z<400);Z=this.api.getProgressState();if(I){var d=this.api.getPresentingPlayerType();I=this.api.getCurrentTime(d,!1);this.D&&(I-=Z.airingStart);SP(this)&&(I-=this.xl.startTimeMs/1E3);this.canShowCountdown()&&this.Z&&(I-=this.api.getDuration(d,!1));var Y=g.ft(I);this.N!==Y&&(this.updateValue("currenttime", Y),this.N=Y);d=SP(this)?(this.xl.endTimeMs-this.xl.startTimeMs)/1E3:this.api.getDuration(d,!1);Y=g.ft(d);this.B!==Y&&(this.updateValue("duration",Y),this.B=Y,I&&(I=g.yd("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.ft(I,!0),DURATION:g.ft(d,!0)}),this.updateValue("timeDisplayAriaLabel",I)))}R2J(this,Z.isAtLiveHead);hCL(this,this.api.getLoopRange())}; g.n.onLoopRangeChange=function(Z){var I=this.xl!==Z;this.xl=Z;I&&(this.W$(),C$(this))}; g.n.ZN7=function(){this.api.setLoopRange(null)}; g.n.olZ=function(){this.Z=!this.Z;this.W$()}; g.n.onVideoDataChange=function(Z,I,d){this.updateVideoData((this.api.C().Y("enable_topsoil_wta_for_halftime")||this.api.C().Y("enable_topsoil_wta_for_halftime_live_infra"))&&d===2?this.api.getVideoData(1):I);this.W$();C$(this)}; g.n.updateVideoData=function(Z){this.iX=Z.isLivePlayback&&!Z.y5;this.D=w5(Z);this.isPremiere=Z.isPremiere;var I,d,Y;this.liveIndicatorText=(Z=(I=Z.getWatchNextResponse())==null?void 0:(d=I.playerOverlays)==null?void 0:(Y=d.playerOverlayRenderer)==null?void 0:Y.liveIndicatorText)?Zd(Z):null;g.zL(this.element,"ytp-live",sm(this));this.api.Y("delhi_modern_web_player")&&this.KS("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.n.onClick=function(Z){Z.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.n.g4=function(){this.L&&this.L();g.k.prototype.g4.call(this)};g.U(d_a,g.k);g.n=d_a.prototype;g.n.AQ=function(){wdr(this)}; g.n.SUn=function(Z){Zbn(this,Z);this.X&&wdr(this)}; g.n.D0=function(Z){if(!Z.defaultPrevented){var I=Z.keyCode,d=null;I===37?d=this.volume-5:I===39?d=this.volume+5:I===36?d=0:I===35&&(d=100);d!==null&&(d=g.O4(d,0,100),d===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(d)),Z.preventDefault())}}; g.n.Ie=function(Z){var I=Z.deltaX||-Z.deltaY;Z.deltaMode?this.api.setVolume(this.volume+(I<0?-10:10)):this.api.setVolume(this.volume+g.O4(I/10,-10,10));Z.preventDefault();var d,Y;((d=this.api.C())==null?0:(Y=d.getWebPlayerContextConfig())==null?0:Y.enableFullscreenComponentsFeature)&&Z.stopPropagation()}; g.n.CuZ=function(){kW(this,this.L,!0,this.D,this.api.oK());this.LS=this.volume;this.api.isMuted()&&this.api.unMute()}; g.n.Lk=function(Z){var I=this.Z?78:52,d=this.Z?18:12;Z-=g.Ut(this.V).x;d=g.O4((Z-d/2)/(I-d),0,1);this.X&&(d=g.O4(Z/I,0,1));I=d;I=this.api.Y("web_player_non_linear_volume_controls")?I<=.25?I/.25*.1:.1+(I-.25)/.75*.9:I;this.api.setVolume(I*100)}; g.n.JZ4=function(){kW(this,this.L,!1,this.D,this.api.oK());this.volume===0&&(this.api.mute(),this.api.setVolume(this.LS))}; g.n.onVolumeChange=function(Z){BUD(this,Z.volume,Z.muted)}; g.n.h8=function(){kW(this,this.L,this.isDragging,this.D,this.api.oK())}; g.n.g4=function(){g.k.prototype.g4.call(this);g.KF(this.j,"ytp-volume-slider-active")};g.U(sd,g.k); sd.prototype.onVideoDataChange=function(){var Z=this.api.C();this.CM();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).IN;this.o0(this.visible);this.api.logVisibility(this.element,this.visible&&this.In);if(this.visible){var I=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",I)}Z.Z&&(this.L&&(this.a4(this.L),this.L=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.xw(this.element,"no-link")); I=this.api.C();Z=this.api.getVideoData();var d="";I.Z||(I=g.t7(I),I.indexOf("www.")===0&&(I=I.substring(4)),d=g.dI(Z)?"Watch on YouTube Music":I==="youtube.com"?"Watch on YouTube":g.yd("Watch on $WEBSITE",{WEBSITE:I}));this.api.Y("player_tooltip_data_title_killswitch")?this.updateValue("title",d):this.updateValue("tooltip-title",d)}; sd.prototype.onClick=function(Z){this.api.Y("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var I=this.api.C(),d=this.api.getVideoUrl(!g.kn(Z),!1,!0,!0);if(g.Dh(I)){var Y={};g.Dh(I)&&g.WR(this.api,"addEmbedsConversionTrackingParams",[Y]);d=g.gq(d,Y)}g.$n(d,this.api,Z);this.api.Y("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; sd.prototype.CM=function(){var Z={K:"svg",J:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},G:[{K:"path",ZU:!0,T:"ytp-svg-fill",J:{d:"M 45.09 10 L 45.09 25.82 L 47.16 25.82 L 47.41 24.76 L 47.47 24.76 C 47.66 25.14 47.94 25.44 48.33 25.66 C 48.72 25.88 49.16 25.99 49.63 25.99 C 50.48 25.99 51.1 25.60 51.5 24.82 C 51.9 24.04 52.09 22.82 52.09 21.16 L 52.09 19.40 C 52.12 18.13 52.05 17.15 51.90 16.44 C 51.75 15.74 51.50 15.23 51.16 14.91 C 50.82 14.59 50.34 14.44 49.75 14.44 C 49.29 14.44 48.87 14.57 48.47 14.83 C 48.27 14.96 48.09 15.11 47.93 15.29 C 47.78 15.46 47.64 15.65 47.53 15.86 L 47.51 15.86 L 47.51 10 L 45.09 10 z M 8.10 10.56 L 10.96 20.86 L 10.96 25.82 L 13.42 25.82 L 13.42 20.86 L 16.32 10.56 L 13.83 10.56 L 12.78 15.25 C 12.49 16.62 12.31 17.59 12.23 18.17 L 12.16 18.17 C 12.04 17.35 11.84 16.38 11.59 15.23 L 10.59 10.56 L 8.10 10.56 z M 30.10 10.56 L 30.10 12.58 L 32.59 12.58 L 32.59 25.82 L 35.06 25.82 L 35.06 12.58 L 37.55 12.58 L 37.55 10.56 L 30.10 10.56 z M 19.21 14.46 C 18.37 14.46 17.69 14.63 17.17 14.96 C 16.65 15.29 16.27 15.82 16.03 16.55 C 15.79 17.28 15.67 18.23 15.67 19.43 L 15.67 21.06 C 15.67 22.24 15.79 23.19 16 23.91 C 16.21 24.62 16.57 25.15 17.07 25.49 C 17.58 25.83 18.27 26 19.15 26 C 20.02 26 20.69 25.83 21.19 25.5 C 21.69 25.17 22.06 24.63 22.28 23.91 C 22.51 23.19 22.63 22.25 22.63 21.06 L 22.63 19.43 C 22.63 18.23 22.50 17.28 22.27 16.56 C 22.04 15.84 21.68 15.31 21.18 14.97 C 20.68 14.63 20.03 14.46 19.21 14.46 z M 56.64 14.47 C 55.39 14.47 54.51 14.84 53.99 15.61 C 53.48 16.38 53.22 17.60 53.22 19.27 L 53.22 21.23 C 53.22 22.85 53.47 24.05 53.97 24.83 C 54.34 25.40 54.92 25.77 55.71 25.91 C 55.97 25.96 56.26 25.99 56.57 25.99 C 57.60 25.99 58.40 25.74 58.96 25.23 C 59.53 24.72 59.81 23.94 59.81 22.91 C 59.81 22.74 59.79 22.61 59.78 22.51 L 57.63 22.39 C 57.62 23.06 57.54 23.54 57.40 23.83 C 57.26 24.12 57.01 24.27 56.63 24.27 C 56.35 24.27 56.13 24.18 56.00 24.02 C 55.87 23.86 55.79 23.61 55.75 23.25 C 55.71 22.89 55.68 22.36 55.68 21.64 L 55.68 21.08 L 59.86 21.08 L 59.86 19.16 C 59.86 17.99 59.77 17.08 59.58 16.41 C 59.39 15.75 59.07 15.25 58.61 14.93 C 58.15 14.62 57.50 14.47 56.64 14.47 z M 23.92 14.67 L 23.92 23.00 C 23.92 24.03 24.11 24.79 24.46 25.27 C 24.82 25.76 25.35 26.00 26.09 26.00 C 27.16 26.00 27.97 25.49 28.5 24.46 L 28.55 24.46 L 28.76 25.82 L 30.73 25.82 L 30.73 14.67 L 28.23 14.67 L 28.23 23.52 C 28.13 23.73 27.97 23.90 27.77 24.03 C 27.57 24.16 27.37 24.24 27.15 24.24 C 26.89 24.24 26.70 24.12 26.59 23.91 C 26.48 23.70 26.43 23.35 26.43 22.85 L 26.43 14.67 L 23.92 14.67 z M 36.80 14.67 L 36.80 23.00 C 36.80 24.03 36.98 24.79 37.33 25.27 C 37.60 25.64 37.97 25.87 38.45 25.96 C 38.61 25.99 38.78 26.00 38.97 26.00 C 40.04 26.00 40.83 25.49 41.36 24.46 L 41.41 24.46 L 41.64 25.82 L 43.59 25.82 L 43.59 14.67 L 41.09 14.67 L 41.09 23.52 C 40.99 23.73 40.85 23.90 40.65 24.03 C 40.45 24.16 40.23 24.24 40.01 24.24 C 39.75 24.24 39.58 24.12 39.47 23.91 C 39.36 23.70 39.31 23.35 39.31 22.85 L 39.31 14.67 L 36.80 14.67 z M 56.61 16.15 C 56.88 16.15 57.08 16.23 57.21 16.38 C 57.33 16.53 57.42 16.79 57.47 17.16 C 57.52 17.53 57.53 18.06 57.53 18.78 L 57.53 19.58 L 55.69 19.58 L 55.69 18.78 C 55.69 18.05 55.71 17.52 55.75 17.16 C 55.79 16.81 55.87 16.55 56.00 16.39 C 56.13 16.23 56.32 16.15 56.61 16.15 z M 19.15 16.19 C 19.50 16.19 19.75 16.38 19.89 16.75 C 20.03 17.12 20.09 17.7 20.09 18.5 L 20.09 21.97 C 20.09 22.79 20.03 23.39 19.89 23.75 C 19.75 24.11 19.51 24.29 19.15 24.30 C 18.80 24.30 18.54 24.11 18.41 23.75 C 18.28 23.39 18.22 22.79 18.22 21.97 L 18.22 18.5 C 18.22 17.7 18.28 17.12 18.42 16.75 C 18.56 16.38 18.81 16.19 19.15 16.19 z M 48.63 16.22 C 48.88 16.22 49.08 16.31 49.22 16.51 C 49.36 16.71 49.45 17.05 49.50 17.52 C 49.55 17.99 49.58 18.68 49.58 19.55 L 49.58 21 L 49.59 21 C 49.59 21.81 49.57 22.45 49.5 22.91 C 49.43 23.37 49.32 23.70 49.16 23.89 C 49.00 24.08 48.78 24.17 48.51 24.17 C 48.30 24.17 48.11 24.12 47.94 24.02 C 47.76 23.92 47.62 23.78 47.51 23.58 L 47.51 17.25 C 47.59 16.95 47.75 16.70 47.96 16.50 C 48.17 16.31 48.39 16.22 48.63 16.22 z "}}]}, I=28666,d=this.api.getVideoData();this.api.isEmbedsShortsMode()?Z={K:"svg",J:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},G:[{K:"path",J:{d:"m.73 13.78 2.57-.05c-.05 2.31.36 3.04 1.34 3.04.95 0 1.34-.61 1.34-1.88 0-1.88-.97-2.83-2.37-4.04C1.47 8.99.55 7.96.55 5.23c0-2.60 1.15-4.14 4.17-4.14 2.91 0 4.12 1.70 3.71 5.20l-2.57.15c.05-2.39-.20-3.22-1.26-3.22-.97 0-1.31.64-1.31 1.82 0 1.77.74 2.31 2.34 3.84 1.98 1.88 3.09 2.98 3.09 5.54 0 3.24-1.26 4.48-4.20 4.48-3.06.02-4.30-1.62-3.78-5.12ZM9.67.74h2.83V4.58c0 1.15-.05 1.95-.15 2.93h.05c.54-1.15 1.44-1.75 2.60-1.75 1.75 0 2.5 1.23 2.5 3.35v9.53h-2.83V9.32c0-1.03-.25-1.54-.90-1.54-.48 0-.92.28-1.23.79V18.65H9.70V.74h-.02ZM18.67 13.27v-1.82c0-4.07 1.18-5.64 3.99-5.64 2.80 0 3.86 1.62 3.86 5.64v1.82c0 3.96-1.00 5.59-3.94 5.59-2.98 0-3.91-1.67-3.91-5.59Zm5 1.03v-3.94c0-1.72-.25-2.60-1.08-2.60-.79 0-1.05.87-1.05 2.60v3.94c0 1.80.25 2.62 1.05 2.62.82 0 1.08-.82 1.08-2.62ZM27.66 6.03h2.19l.25 2.73h.10c.28-2.01 1.21-3.01 2.39-3.01.15 0 .30.02.51.05l-.15 3.27c-1.18-.25-2.13-.05-2.57.72V18.63h-2.73V6.03ZM34.80 15.67V8.27h-1.03V6.05h1.15l.36-3.73h2.11V6.05h1.93v2.21h-1.80v6.98c0 1.18.15 1.44.61 1.44.41 0 .77-.05 1.10-.18l.36 1.80c-.85.41-1.93.54-2.60.54-1.82-.02-2.21-.97-2.21-3.19ZM40.26 14.81l2.39-.05c-.12 1.39.36 2.19 1.21 2.19.72 0 1.13-.46 1.13-1.10 0-.87-.79-1.46-2.16-2.5-1.62-1.23-2.60-2.16-2.60-4.20 0-2.24 1.18-3.32 3.63-3.32 2.60 0 3.63 1.28 3.42 4.35l-2.39.10c-.02-1.90-.28-2.44-1.08-2.44-.77 0-1.10.38-1.10 1.08 0 .97.56 1.44 1.49 2.11 2.21 1.64 3.24 2.47 3.24 4.53 0 2.26-1.28 3.40-3.73 3.40-2.78-.02-3.81-1.54-3.45-4.14Z", fill:"#fff"}}]}:g.dI(d)&&(Z={K:"svg",J:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},G:[{K:"path",J:{d:"M33.96 20.91V15.45L37.43 4.11H34.84L33.52 9.26C33.22 10.44 32.95 11.67 32.75 12.81H32.59C32.48 11.81 32.16 10.50 31.84 9.24L30.56 4.11H27.97L31.39 15.45V20.91H33.96Z",fill:"white"}},{K:"path",J:{d:"M40.92 8.31C37.89 8.31 36.85 10.06 36.85 13.83V15.62C36.85 19.00 37.50 21.12 40.86 21.12C44.17 21.12 44.88 19.10 44.88 15.62V13.83C44.88 10.46 44.20 8.31 40.92 8.31ZM42.21 16.73C42.21 18.37 41.92 19.40 40.87 19.40C39.84 19.40 39.55 18.36 39.55 16.73V12.69C39.55 11.29 39.75 10.04 40.87 10.04C42.05 10.04 42.21 11.36 42.21 12.69V16.73Z", fill:"white"}},{K:"path",J:{d:"M49.09 21.10C50.55 21.10 51.46 20.49 52.21 19.39H52.32L52.43 20.91H54.42V8.55H51.78V18.48C51.50 18.97 50.85 19.33 50.24 19.33C49.47 19.33 49.23 18.72 49.23 17.70V8.55H46.60V17.82C46.60 19.83 47.18 21.10 49.09 21.10Z",fill:"white"}},{K:"path",J:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{K:"path",J:{d:"M64.69 21.10C66.15 21.10 67.06 20.49 67.81 19.39H67.92L68.03 20.91H70.02V8.55H67.38V18.48C67.10 18.97 66.45 19.33 65.84 19.33C65.07 19.33 64.83 18.72 64.83 17.70V8.55H62.20V17.82C62.20 19.83 62.78 21.10 64.69 21.10Z", fill:"white"}},{K:"path",J:{d:"M77.49 8.28C76.21 8.28 75.29 8.84 74.68 9.75H74.55C74.63 8.55 74.69 7.53 74.69 6.72V3.45H72.14L72.13 14.19L72.14 20.91H74.36L74.55 19.71H74.62C75.21 20.52 76.12 21.03 77.33 21.03C79.34 21.03 80.20 19.30 80.20 15.62V13.71C80.20 10.27 79.81 8.28 77.49 8.28ZM77.58 15.62C77.58 17.92 77.24 19.29 76.17 19.29C75.67 19.29 74.98 19.05 74.67 18.60V11.25C74.94 10.55 75.54 10.04 76.21 10.04C77.29 10.04 77.58 11.35 77.58 13.74V15.62Z",fill:"white"}},{K:"path",J:{d:"M89.47 13.51C89.47 10.53 89.17 8.32 85.74 8.32C82.51 8.32 81.79 10.47 81.79 13.63V15.80C81.79 18.88 82.45 21.12 85.66 21.12C88.20 21.12 89.51 19.85 89.36 17.39L87.11 17.27C87.08 18.79 86.73 19.41 85.72 19.41C84.45 19.41 84.39 18.20 84.39 16.40V15.56H89.47V13.51ZM85.68 9.98C86.90 9.98 86.99 11.13 86.99 13.08V14.09H84.39V13.08C84.39 11.15 84.47 9.98 85.68 9.98Z", fill:"white"}},{K:"path",J:{d:"M93.18 20.86H95.50V13.57C95.50 11.53 95.46 9.36 95.30 6.46H95.56L95.99 8.24L98.73 20.86H101.09L103.78 8.24L104.25 6.46H104.49C104.37 9.03 104.30 11.35 104.30 13.57V20.86H106.63V4.06H102.67L101.25 10.27C100.65 12.85 100.22 16.05 99.97 17.68H99.78C99.60 16.02 99.15 12.83 98.56 10.29L97.10 4.06H93.18V20.86Z",fill:"white"}},{K:"path",J:{d:"M111.27 21.05C112.73 21.05 113.64 20.44 114.39 19.34H114.50L114.61 20.86H116.60V8.50H113.96V18.43C113.68 18.92 113.03 19.28 112.42 19.28C111.65 19.28 111.41 18.67 111.41 17.65V8.50H108.78V17.77C108.78 19.78 109.36 21.05 111.27 21.05Z", fill:"white"}},{K:"path",J:{d:"M121.82 21.12C124.24 21.12 125.59 20.05 125.59 17.86C125.59 15.87 124.59 15.06 122.21 13.44C121.12 12.72 120.53 12.27 120.53 11.21C120.53 10.42 121.02 10.00 121.91 10.00C122.88 10.00 123.21 10.64 123.25 12.46L125.41 12.34C125.59 9.49 124.57 8.27 121.95 8.27C119.47 8.27 118.28 9.34 118.28 11.46C118.28 13.42 119.21 14.31 120.96 15.53C122.51 16.60 123.36 17.27 123.36 18.16C123.36 18.89 122.85 19.42 121.96 19.42C120.94 19.42 120.36 18.54 120.46 17.21L118.27 17.25C117.93 19.81 119.13 21.12 121.82 21.12Z", fill:"white"}},{K:"path",J:{d:"M128.45 6.93C129.35 6.93 129.77 6.63 129.77 5.39C129.77 4.23 129.32 3.87 128.45 3.87C127.57 3.87 127.14 4.19 127.14 5.39C127.14 6.63 127.55 6.93 128.45 6.93ZM127.23 20.86H129.76V8.50H127.23V20.86Z",fill:"white"}},{K:"path",J:{d:"M135.41 21.06C136.67 21.06 137.38 20.91 137.95 20.37C138.80 19.63 139.15 18.48 139.09 16.54L136.78 16.42C136.78 18.54 136.44 19.34 135.45 19.34C134.36 19.34 134.18 18.15 134.18 15.99V13.43C134.18 11.07 134.41 9.95 135.47 9.95C136.35 9.95 136.70 10.69 136.70 13.05L138.99 12.89C139.15 11.20 138.98 9.82 138.18 9.05C137.58 8.49 136.69 8.27 135.51 8.27C132.48 8.27 131.54 10.19 131.54 13.84V15.53C131.54 19.18 132.25 21.06 135.41 21.06Z", fill:"white"}}]},I=216163);g.dI(d)?g.xw(this.element,"ytp-youtube-music-button"):g.KF(this.element,"ytp-youtube-music-button");Z.J=Object.assign({},Z.J,{"aria-hidden":"true"});this.updateValue("logoSvg",Z);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,I,!0)}; sd.prototype.UU=function(Z){g.k.prototype.UU.call(this,Z);this.api.logVisibility(this.element,this.visible&&Z)};g.U(j2O,g.De);g.n=j2O.prototype;g.n.onProgress=function(){if(this.S.Y("web_player_max_seekable_on_ended")||!g.b(this.S.getPlayerStateObject(),2))WN(this.EV),this.progressBar.W$(),this.hq.W$()}; g.n.MK=function(){this.eT();if(WN(this.EV))this.progressBar.So();else this.onProgress()}; g.n.Z0=function(){this.onProgress();this.In.start()}; g.n.eT=function(){var Z;if(Z=!this.S.C().D){Z=this.progressBar;var I=2*g.HO()*Z.j,d=Z.Z;Z=(d.L-d.D)*1E3/Z.api.getPlaybackRate()/I<300}Z=Z&&this.S.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;I=!Z;WN(this.EV)&&(Z=I=!1);I?this.Ns||(this.Ns=this.W(this.S,"progresssync",this.onProgress)):this.Ns&&(this.a4(this.Ns),this.Ns=null);Z?this.In.isActive()||this.In.start():this.In.stop()}; g.n.CM=function(){var Z=this.S.m2(),I=this.S.cj().getPlayerSize(),d=this.S.cj().ge,Y=ni(this),T=ND7(this),f=Math.max(I.width-Y*2,100);if(this.y5!==I.width||this.d4!==Z||this.S.Y("web_player_rtr_ctrls")&&this.wL!==d)this.y5=I.width,this.d4=Z,this.wL=d,this.D.element.style.width=T+"px",this.D.element.style.left=Y+"px",g.d3d(this.progressBar,Y,T,Z),this.S.EP().V2=T;d=this.N;f=Math.min(570*(Z?1.5:1),f);Z=Math.min(413*(Z?1.5:1),Math.round((I.height-Nuv(this))*.82));d.maxWidth=f;d.maxHeight=Z;d.Bz();this.eT(); this.UZ&&x8u(this.on,I.height)}; g.n.onVideoDataChange=function(){var Z=this.S.getVideoData();this.Tm.style.background=Z.IN?Z.hE:"";this.kS&&OZu(this.kS,Z.showSeekingControls);this.LS&&OZu(this.LS,Z.showSeekingControls)}; g.n.gK=function(){return this.D.element};g.U(AcO,WC);g.n=AcO.prototype;g.n.Lo=function(Z){Z.target!==this.dismissButton.element&&(this.onClickCommand&&this.S.Rn("innertubeCommand",this.onClickCommand),this.F4())}; g.n.F4=function(){this.enabled=!1;this.X.hide()}; g.n.onVideoDataChange=function(Z,I){Z==="dataloaded"&&Eb9(this);Z=[];var d,Y,T,f;if(I=(f=g.y((d=I.getWatchNextResponse())==null?void 0:(Y=d.playerOverlays)==null?void 0:(T=Y.playerOverlayRenderer)==null?void 0:T.suggestedActionsRenderer,FOi))==null?void 0:f.suggestedActions)for(d=g.t(I),Y=d.next();!Y.done;Y=d.next())(Y=g.y(Y.value,s8u))&&g.y(Y.trigger,NQg)&&Z.push(Y);if(Z.length!==0){d=[];Z=g.t(Z);for(Y=Z.next();!Y.done;Y=Z.next())if(Y=Y.value,T=g.y(Y.trigger,NQg))f=(f=Y.title)?g.Q1(f):"View Chapters", I=T.timeRangeStartMillis,T=T.timeRangeEndMillis,I!=null&&T!=null&&Y.tapCommand&&(d.push(new g.S8(I,T,{priority:9,namespace:"suggested_action_button_visible",id:f})),this.suggestedActions[f]=Y.tapCommand);this.S.eM(d)}}; g.n.L8=function(){return this.enabled}; g.n.XQ=function(){this.enabled?this.Tm.start():mn(this);this.Db()}; g.n.g4=function(){Eb9(this);WC.prototype.g4.call(this)};var R4={},x2=(R4.CHANNEL_NAME="ytp-title-channel-name",R4.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",R4.LINK="ytp-title-link",R4.SESSIONLINK="yt-uix-sessionlink",R4.SUBTEXT="ytp-title-subtext",R4.TEXT="ytp-title-text",R4.TITLE="ytp-title",R4);g.U(KQ,g.k);KQ.prototype.onClick=function(Z){this.api.logClick(this.element);var I=this.api.C(),d=this.api.getVideoUrl(!g.kn(Z),!1,!0);g.Dh(I)&&(I={},g.WR(this.api,"addEmbedsConversionTrackingParams",[I]),d=g.gq(d,I));g.$n(d,this.api,Z)}; KQ.prototype.qs=function(){var Z=this.api.getVideoData(),I=this.api.C();this.updateValue("title",Z.title);var d={K:"a",T:x2.CHANNEL_NAME,J:{href:"{{channelLink}}",target:"_blank"},Z1:"{{channelName}}"};this.api.C().Z?d={K:"span",T:x2.CHANNEL_NAME,Z1:"{{channelName}}",J:{tabIndex:"{{channelSubtextFocusable}}"}}:Z.q1&&(d={K:"span",T:x2.SUBTEXT,Z1:Z.q1});this.updateValue("subtextElement",d);nyJ(this);this.api.getPresentingPlayerType()===2&&(d=this.api.getVideoData(),d.videoId&&d.isListed&&d.author&& d.b5&&d.profilePicture?(this.updateValue("channelLink",d.b5),this.updateValue("channelName",d.author),this.updateValue("channelTitleFocusable","0")):nyJ(this));d=I.externalFullscreen||!this.api.isFullscreen()&&I.hK;g.zL(this.link,x2.FULLERSCREEN_LINK,d);I.kS||!Z.videoId||d||Z.IN||I.Z?this.L&&(this.updateValue("url",null),this.a4(this.L),this.L=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.L||(this.L=this.W(this.link,"click",this.onClick)));I.Z&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.Dh(I)?Z.expandedTitle:Z.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.U(g.xx,g.k);g.n=g.xx.prototype;g.n.setEnabled=function(Z){if(this.type!=null)if(Z)switch(this.type){case 3:case 2:Q8(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.j=Z}; g.n.Av=function(Z,I,d,Y,T,f,P,O){if(!this.Bj||this.env.V){this.type===3&&this.So();this.type!==1&&(g.PI(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.j&&this.fade.show(),this.D&&this.D.dispose(),(this.D=this.api.x$())&&this.D.subscribe("l",this.tS,this));if(O){var a=g.C2(this.bg).height||141;this.fS.style.bottom=a+2+"px"}else this.fS.style.display="none";this.env.Y("delhi_modern_web_player")?(this.update({pillTimeStamp:d,pillTitle:f!=null?f:"",eduText:O!=null?O:""}),g.xw(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:d,title:f!=null?f:"",eduText:O!=null?O:""}),g.zL(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!f));this.api.isInline()&&g.xw(this.bottomText,"ytp-modern-tooltip-text");g.zL(this.element,"ytp-text-detail",!!Y);d=-1;this.D&&(d=OM(this.D,243*this.scale),this.env.Y("web_l3_storyboard")&&this.D.levels.length===4&&(d=this.D.levels.length-1),d=aJJ(this.D,d,I));MHO(this,d);if(P)switch(I=g.C2(this.element).width,P){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=I+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=I/2+"px",this.title.style.textAlign="center"}SdD(this,!!Y,Z,T)}}; g.n.Ek=function(){this.type===1&&this.So()}; g.n.wQ=function(Z,I){if(this.type)if(this.type===3)this.So();else return;M27(this,Z,3,I)}; g.n.Kl=function(){this.L&&!this.V&&(this.env.Y("player_tooltip_data_title_killswitch")?this.L.hasAttribute("title")&&(this.Z=this.L.getAttribute("title")||"",this.L.removeAttribute("title"),this.j&&Q8(this)):this.L.hasAttribute("data-tooltip-title")&&(this.Z=this.L.getAttribute("data-tooltip-title")||"",this.L.removeAttribute("data-tooltip-title"),this.j&&Q8(this)))}; g.n.tS=function(Z,I){Z<=this.N&&this.N<=I&&(Z=this.N,this.N=NaN,MHO(this,Z))}; g.n.jn4=function(){W3O(this.D,this.N,243*this.scale)}; g.n.So=function(){switch(this.type){case 2:var Z=this.L;Z.removeEventListener("mouseout",this.X);Z.addEventListener("mouseover",this.B);Z.removeEventListener("blur",this.X);Z.addEventListener("focus",this.B);QkB(this);break;case 3:QkB(this);break;case 1:this.D&&(this.D.unsubscribe("l",this.tS,this),this.D=null),this.api.removeEventListener("videoready",this.LS),this.kS.stop()}this.type=null;this.j&&this.fade.hide()}; g.n.Kp=function(){if(this.L)for(var Z=0;Z=0;I--)if(this.qZ[I]===Z){this.qZ.splice(I,1);break}eg(this.EV,64,this.qZ.length>0)}; g.n.p$=function(){this.api.Ss()&&this.api.sy();return!!this.t2||O5l(this)||g.Jo.prototype.p$.call(this)}; g.n.mD=function(){var Z=!this.p$(),I=Z&&this.api.Ss()&&!g.b(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().IN&&!this.api.C().Z&&!this.api.isEmbedsShortsMode(),d=this.v0&&g.e0(this.api)&&g.b(this.api.getPlayerStateObject(),128);Z||d?(this.Mn.show(),this.Nn.show()):(this.Mn.hide(),this.Nn.hide(),this.api.Kp(this.qA.element));I?this.CF.dn():this.CF.zb();this.lT&&qwl(this.lT,this.nZm||!Z);this.api.Y("web_player_hide_overflow_button_if_empty_menu")&&c7(this);g.Jo.prototype.mD.call(this)}; g.n.Z4=function(Z,I,d,Y,T){Z.style.left="";Z.style.top="";Z.style.bottom="";var f=g.C2(Z),P=Y||this.lT&&g.H7(this.lT.gK(),I),O=Y=null;d!=null&&P||(Y=g.C2(I),O=g.S6(I,this.api.getRootNode()),d==null&&(d=O.x+Y.width/2));d-=f.width/2;P?(I=this.lT,Y=ni(I),O=ND7(I),P=this.api.cj().getPlayerSize().height,d=g.O4(d,Y,Y+O-f.width),f=P-Nuv(I)-f.height):g.H7(this.qA.element,I)?(I=this.api.cj().getPlayerSize().width,d=g.O4(d,12,I-f.width-12),f=this.m2()?this.mW:this.S2,this.api.C().playerStyle==="gvn"&&(f+=20), this.v0&&(f-=this.m2()?26:18)):(I=this.api.cj().getPlayerSize(),d=g.O4(d,12,I.width-f.width-12),f=O.y>(I.height-Y.height)/2?O.y-f.height-12:O.y+Y.height+12);Z.style.top=f+(T||0)+"px";Z.style.left=d+"px"}; g.n.MK=function(Z){Z&&(this.api.Kp(this.qA.element),this.lT&&this.api.Kp(this.lT.gK()));this.xQ&&(g.zL(this.contextMenu.element,"ytp-autohide",Z),g.zL(this.contextMenu.element,"ytp-autohide-active",!0));g.Jo.prototype.MK.call(this,Z)}; g.n.DB=function(){g.Jo.prototype.DB.call(this);this.xQ&&(g.zL(this.contextMenu.element,"ytp-autohide-active",!1),this.xQ&&(this.contextMenu.hide(),this.TD&&this.TD.hide()))}; g.n.aF=function(Z,I){var d=this.api.cj().getPlayerSize();d=new g.Ey(0,0,d.width,d.height);if(Z||!WN(this.EV)&&!this.p$()){if(this.api.C().KW||I)Z=this.m2()?this.mW:this.S2,d.top+=Z,d.height-=Z;this.lT&&(d.height-=Nuv(this.lT))}return d}; g.n.AQ=function(Z){var I=this.api.getRootNode();Z?I.parentElement?(I.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.C().externalFullscreen||(I.parentElement.insertBefore(this.jH.element,I),I.parentElement.insertBefore(this.YR.element,I.nextSibling))):g.nl(Error("Player not in DOM.")):(I.setAttribute("aria-label","YouTube Video Player"),this.jH.detach(),this.YR.detach());this.CM();this.MV()}; g.n.m2=function(){if(this.api.Y("web_player_use_screen_width_for_big_mode")){var Z;return this.api.cj().getPlayerSize().width>=((Z=g.Q4(this.api.C().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?Z:2E3)}Z=this.api.C();return this.api.isFullscreen()&&!Z.V||!1}; g.n.showControls=function(Z){this.XB=!Z;this.mD()}; g.n.CM=function(){var Z=this.m2();this.tooltip.scale=Z?1.5:1;this.contextMenu&&g.zL(this.contextMenu.element,"ytp-big-mode",Z);this.mD();this.api.Y("web_player_hide_overflow_button_if_empty_menu")||c7(this);this.MV();var I=this.api.isEmbedsShortsMode();I&&Z?(Z=(this.api.cj().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.K2(this.qA.element,"padding-left",Z+"px"),g.K2(this.qA.element,"padding-right",Z+"px")):I&&(g.K2(this.qA.element,"padding-left",""),g.K2(this.qA.element,"padding-right", ""));g.Jo.prototype.CM.call(this)}; g.n.Gs=function(){if(O5l(this)&&!g.e0(this.api))return!1;var Z=this.api.getVideoData();return!g.Dh(this.api.C())||this.api.getPresentingPlayerType()===2||!this.HJ||((Z=this.HJ||Z.HJ)?(Z=Z.embedPreview)?(Z=Z.thumbnailPreviewRenderer,Z=Z.videoDetails&&g.y(Z.videoDetails,Bsl)||null):Z=null:Z=null,Z&&Z.collapsedRenderer&&Z.expandedRenderer)?g.Jo.prototype.Gs.call(this):!1}; g.n.MV=function(){g.Jo.prototype.MV.call(this);this.api.logVisibility(this.title.element,!!this.cS);this.k7&&this.k7.UU(!!this.cS);this.channelAvatar.UU(!!this.cS);this.overflowButton&&this.overflowButton.UU(this.vE()&&!!this.cS);this.shareButton&&this.shareButton.UU(!this.vE()&&!!this.cS);this.TR&&this.TR.UU(!this.vE()&&!!this.cS);this.searchButton&&this.searchButton.UU(!this.vE()&&!!this.cS);this.copyLinkButton&&this.copyLinkButton.UU(!this.vE()&&!!this.cS);if(!this.cS){this.api.Kp(this.qA.element); for(var Z=0;Z5&&I.D1("glrs",{cmt:d});I.seekTo(0,{seekSource:58});I.D1("glrre",{cmt:d})}}; Cg.prototype.g4=function(){this.L=null;g.p.prototype.g4.call(this)};g.U(g.TH,nH);g.n=g.TH.prototype;g.n.isView=function(){return!0}; g.n.O2=function(){var Z=this.mediaElement.getCurrentTime();if(Z1;Qb(Z.LN(),Y-.01)&&!T&&(HY(this,4),d.isActive=!1,d.NQ=d.NQ||d.isActive,(this.B===1?this.L:this.D).D1("sbh",{}),I.isActive=!0,I.NQ=I.NQ||I.isActive,this.B!==0&&(this.L.getVideoData().CG=!0));Z=this.N.D;if(this.N.L.isActive&&Z.isActive&&(HY(this,5),this.B!==0)){Z=this.D.Iw();d=this.L.Iw(); this.L.D1("sbs",{citag:d==null?void 0:d.itag,nitag:Z==null?void 0:Z.itag});this.D.D1("gitags",{pitag:d==null?void 0:d.itag,citag:Z==null?void 0:Z.itag});var f;(f=this.D)==null||f.kK()}}}; g.n.Ii=function(){this.h6()&&this.Ll("player-reload-after-handoff")}; g.n.Ll=function(Z,I){I=I===void 0?{}:I;if(!this.OZ()&&this.status.status!==6){var d=this.status.status>=4&&Z!=="player-reload-after-handoff";this.status={status:Infinity,error:Z};if(this.L&&this.D){var Y=this.D.getVideoData().clientPlaybackNonce;this.L.nj(new g.dj("dai.transitionfailure",Object.assign(I,{cpn:Y,transitionTimeMs:this.U9,msg:Z})));this.L.pD(d)}this.t6.reject(Z);this.dispose()}}; g.n.h6=function(){return this.status.status>=4&&this.status.status<6}; g.n.g4=function(){Pud(this);this.L.unsubscribe("newelementrequired",this.Ii,this);if(this.Z){var Z=this.Z.D;this.Z.L.DA.unsubscribe("updateend",this.LC,this);Z.DA.unsubscribe("updateend",this.LC,this)}g.p.prototype.g4.call(this)}; g.n.u2=function(Z){g.Nw(Z,128)&&this.Ll("player-error-event")};g.U(Kg,g.p);Kg.prototype.clearQueue=function(Z,I){Z=Z===void 0?!1:Z;I=I===void 0?!1:I;this.N&&this.N.reject("Queue cleared");this.app.C().Y("html5_gapless_fallback_on_qoe_restart_v2")||I&&this.D&&this.D.pD(!1);X3(this,Z)}; Kg.prototype.m0=function(){return!this.L}; Kg.prototype.h6=function(){var Z;return((Z=this.Z)==null?void 0:Z.h6())||!1}; Kg.prototype.g4=function(){X3(this);g.p.prototype.g4.call(this)};g.U(oW,g.dx);g.n=oW.prototype;g.n.getVisibilityState=function(Z,I,d,Y,T,f,P,O){return Z?4:T&&v9?7:Rp$()?3:I?2:d?1:Y?5:T&&!v9?7:f?8:P?9:O?10:0}; g.n.Pl=function(Z){this.fullscreen!==Z&&(this.fullscreen=Z,this.XQ())}; g.n.setMinimized=function(Z){this.D!==Z&&(this.D=Z,this.XQ())}; g.n.setInline=function(Z){this.inline!==Z&&(this.inline=Z,this.XQ())}; g.n.Ug=function(Z){this.pictureInPicture!==Z&&(this.pictureInPicture=Z,this.XQ())}; g.n.setSqueezeback=function(Z){this.Z!==Z&&(this.Z=Z,this.XQ())}; g.n.yS=function(Z){this.N!==Z&&(this.N=Z,this.XQ())}; g.n.z9=function(){return this.L}; g.n.mz=function(){return this.fullscreen!==0}; g.n.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.n.Fb=function(){return this.fullscreen}; g.n.isMinimized=function(){return this.D}; g.n.isInline=function(){return this.inline}; g.n.isBackground=function(){return Rp$()}; g.n.RB=function(){return this.pictureInPicture}; g.n.oJ=function(){return!1}; g.n.dI=function(){return this.Z}; g.n.JB=function(){return this.N}; g.n.XQ=function(){this.publish("visibilitychange");var Z=this.getVisibilityState(this.z9(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.RB(),this.oJ(),this.dI(),this.JB());Z!==this.j&&this.publish("visibilitystatechange");this.j=Z}; g.n.g4=function(){VZi(this.B);g.dx.prototype.g4.call(this)};g.U(g.zP,g.p);g.n=g.zP.prototype;g.n.g4=function(){this.videoData=this.playerState=null;g.p.prototype.g4.call(this)}; g.n.addCueRange=function(){}; g.n.zG=function(){}; g.n.C2=function(){}; g.n.Oo=function(){return!1}; g.n.nP=function(){return!1}; g.n.FL=function(){}; g.n.pB=function(){}; g.n.Hv=function(){return[]}; g.n.Dt=function(){}; g.n.Gg=function(){}; g.n.qt=function(){return 1}; g.n.getAudioTrack=function(){return this.getVideoData().L0}; g.n.yg=function(){return null}; g.n.getAvailableAudioTracks=function(){return[]}; g.n.Fe=function(){return[]}; g.n.lf=function(){return[]}; g.n.PE=function(){return""}; g.n.Rt=function(){return[]}; g.n.vW=function(){}; g.n.fF=function(){return 0}; g.n.getCurrentTime=function(){return 0}; g.n.hd=function(){}; g.n.Iw=function(){}; g.n.Gb=function(){return{}}; g.n.getDuration=function(){return 0}; g.n.rd=function(){return 0}; g.n.xF=function(){return 0}; g.n.uN=function(){return!1}; g.n.T0=function(){return 0}; g.n.aK=function(){return 0}; g.n.lr=vF(7);g.n.VC=function(){return 0}; g.n.sY=function(){return!1}; g.n.HB=function(){return 0}; g.n.bQ=function(){return null}; g.n.Qq=function(){return null}; g.n.p_=function(){return 0}; g.n.dR=function(){return 0}; g.n.K6=function(){return g.h(function(Z){g.v6(Z)})}; g.n.Z$=vF(15);g.n.getPlaybackQuality=function(){return"auto"}; g.n.getPlaybackRate=function(){return 1}; g.n.getPlayerState=function(){this.playerState||(this.playerState=new g.ns);return this.playerState}; g.n.getPlayerType=function(){return 0}; g.n.getPlaylistSequenceForTime=function(){return null}; g.n.fl=function(){return function(){}}; g.n.EY=function(){return""}; g.n.getPreferredQuality=function(){return"unknown"}; g.n.CJ=function(){}; g.n.getProximaLatencyPreference=function(){return 0}; g.n.Rx=function(){return nb}; g.n.x$=function(){return null}; g.n.getStoryboardFormat=function(){return null}; g.n.getStreamTimeOffset=function(){return 0}; g.n.Mm=function(){return 0}; g.n.Fx=function(){return 0}; g.n.KT=function(){return{dh:[],YL:[],currentTime:0,M5:"",droppedVideoFrames:0,isGapless:!1,m0:!0,J7:0,C3:0,c9:0,e4:0,G4:0,Ue:[],XD:[],FC:null,playerState:this.getPlayerState(),d3:null,OC:"",totalVideoFrames:0}}; g.n.getUserAudio51Preference=function(){return 0}; g.n.getUserPlaybackQualityPreference=function(){return""}; g.n.getVideoData=function(){this.videoData||(this.videoData=new g.DX(this.U),g.z(this,this.videoData));return this.videoData}; g.n.zU=function(){return null}; g.n.pJ=function(){return null}; g.n.FQ=function(){}; g.n.getVideoLoadedFraction=function(){return 0}; g.n.Af=function(){}; g.n.handleError=function(){}; g.n.pD=function(){}; g.n.Aw=function(){}; g.n.nZ=vF(40);g.n.Wl=function(){return!1}; g.n.hasSupportedAudio51Tracks=function(){return!1}; g.n.isAd=function(){return!1}; g.n.PS=function(){return!1}; g.n.z9=function(){return!1}; g.n.isAtLiveHead=function(){return!1}; g.n.gW=function(){return!0}; g.n.isGapless=function(){return!1}; g.n.isHdr=function(){return!1}; g.n.MZ=function(){return!1}; g.n.fv=function(){return!1}; g.n.HN=function(){return!1}; g.n.isProximaLatencyEligible=function(){return!1}; g.n.m0=function(){return!0}; g.n.Eu=function(){return!1}; g.n.mN=function(){return!1}; g.n.X8=function(){}; g.n.Ff=function(){}; g.n.kK=function(){}; g.n.Ba=function(){}; g.n.vy=function(){}; g.n.fb=function(){}; g.n.S1=function(){}; g.n.lW=vF(50);g.n.Kw=vF(21);g.n.wO=function(){}; g.n.pauseVideo=function(){}; g.n.prefetchKeyPlay=function(){}; g.n.playVideo=function(){return g.h(function(Z){return Z.return()})}; g.n.ob=function(){}; g.n.G9=vF(27);g.n.yQ=vF(33);g.n.Co=function(){}; g.n.D1=function(){}; g.n.pw=function(){}; g.n.e8=function(){}; g.n.GE=function(){}; g.n.nj=function(){}; g.n.n7=function(){}; g.n.xa=function(){}; g.n.Gk=function(){}; g.n.DI=function(){}; g.n.Bq=function(){}; g.n.Ge=function(){}; g.n.removeCueRange=function(){}; g.n.Y7=function(){}; g.n.jM=function(){return[]}; g.n.CZ=function(){}; g.n.aB=function(){}; g.n.Wo=function(){}; g.n.pK=function(){}; g.n.Bf=function(){}; g.n.V3=function(){}; g.n.rE=function(){}; g.n.seekTo=function(){}; g.n.sendAbandonmentPing=function(){}; g.n.sendVideoStatsEngageEvent=function(){}; g.n.hk=function(){}; g.n.setLoop=function(){}; g.n.Et=function(){}; g.n.setMediaElement=function(){}; g.n.Ry=function(){}; g.n.setPlaybackRate=function(){}; g.n.pj=function(){}; g.n.tT=function(){}; g.n.b4=function(){}; g.n.setProximaLatencyPreference=function(){}; g.n.Po=function(){}; g.n.eZ=function(){}; g.n.G8=function(){}; g.n.bY=function(){}; g.n.C7=function(){}; g.n.setUserAudio51Preference=function(){}; g.n.jw=function(){}; g.n.qj=function(){return!1}; g.n.N6=function(){}; g.n.GL=function(){return!1}; g.n.va=function(){}; g.n.UW=function(){}; g.n.t1=function(){}; g.n.stopVideo=function(){}; g.n.subscribe=function(){return NaN}; g.n.vT=function(){}; g.n.togglePictureInPicture=function(){}; g.n.n8=function(){return 0}; g.n.v8=function(){}; g.n.unsubscribe=function(){return!1}; g.n.St=function(){}; g.n.RM=function(){return!1}; g.n.gR=function(){}; g.n.Y5=function(){}; g.n.m6=function(){};g.U(SY,g.p);g.n=SY.prototype;g.n.get=function(Z){F_(this);var I=this.data.find(function(d){return d.key===Z}); return I?I.value:null}; g.n.set=function(Z,I,d){this.remove(Z,!0);F_(this);Z={key:Z,value:I,expire:Infinity};d&&isFinite(d)&&(d*=1E3,Z.expire=(0,g.o8)()+d);for(this.data.push(Z);this.data.length>this.Z;)(d=this.data.shift())&&dU(this,d,!0);eQ(this)}; g.n.remove=function(Z,I){I=I===void 0?!1:I;var d=this.data.find(function(Y){return Y.key===Z}); d&&(dU(this,d,I),g.Ug(this.data,function(Y){return Y.key===Z}),eQ(this))}; g.n.removeAll=function(Z){if(Z=Z===void 0?!1:Z)for(var I=g.t(this.data),d=I.next();!d.done;d=I.next())dU(this,d.value,Z);this.data=[];eQ(this)}; g.n.g4=function(){var Z=this;g.p.prototype.g4.call(this);this.data.forEach(function(I){dU(Z,I,!0)}); this.data=[]};g.U(g.$V,g.p);g.n=g.$V.prototype;g.n.g4=function(){for(var Z=g.t(Object.values(this.N)),I=Z.next();!I.done;I=Z.next())I.value.dispose();yDl(this);this.L.dispose();g.p.prototype.g4.call(this)}; g.n.Se=function(Z){return Z?Z===1?this.X:this.Z.getVideoData().enableServerStitchedDai&&Z===2?this.Z.getVideoData().C8?this.N[2]||this.Z:this.Z:this.N[Z]||null:this.Z}; g.n.Vt=function(Z){var I=Z.cpn;Z=Z.playerType;if(I)a:{Z=g.t(Object.values(this.N));for(var d=Z.next();!d.done;d=Z.next())if(d=d.value,d.PE()===I){I=d;break a}I=this.B[I]||null}else I=Z?this.Se(Z):this.Z;return I}; g.n.vj=function(){return this.X}; g.n.rS=function(Z){this.X=Z}; g.n.l5=function(){return this.Z}; g.n.Pa=function(Z){this.Z=Z;F7(this)}; g.n.Qe=vF(46);g.n.Al=vF(48);g.U(bF,g.Zg);g.n=bF.prototype;g.n.oI=function(){}; g.n.PE=function(){return this.videoData.clientPlaybackNonce}; g.n.getVideoData=function(){if(g.Zg.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){var Z=Gbi(this.FT,g.Zg.prototype.getCurrentTime.call(this))||g.Zg.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==Z.clientPlaybackNonce&&EgB(this.N,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:Z.clientPlaybackNonce});return this.videoData}return Gbi(this.FT,g.Zg.prototype.getCurrentTime.call(this))||g.Zg.prototype.getVideoData.call(this)}; g.n.getCurrentTime=function(Z){var I=g.Zg.prototype.getCurrentTime.call(this);if(g.Zg.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){this.L===0?Z||(I-=this.startTimeSecs,g.Zg.prototype.getVideoData.call(this).Y("html5_ssdai_log_missed_ad_impressions")&&this.D&&this.Z&&I>1&&this.D1("sdai-admiss",{cpn:this.PE(),ct:I.toFixed(3),pfs:this.Z}),this.D=!1):Z&&(I=this.L);var d=Z?this.FT.dD||g.Zg.prototype.getCurrentTime.call(this):CpM(this.FT,g.Zg.prototype.getCurrentTime.call(this)); I!==d&&EgB(this.N,"time"+(Z!=null?Z:!1),{time:I,ref:d,ct:Z!=null?Z:!1})}else I=Z?this.FT.dD||I:CpM(this.FT,I);return I}; g.n.getDuration=function(){if(g.Zg.prototype.getVideoData.call(this).Y("html5_huli_ssdai_use_playback_state")){var Z=iip(this.FT,g.Zg.prototype.getCurrentTime.call(this));this.duration!==Z&&EgB(this.N,"duration",{dur:this.duration,ref:Z});return this.duration}return iip(this.FT,g.Zg.prototype.getCurrentTime.call(this))}; g.n.cT=function(Z){this.duration=Z};g.ze.prototype.NJ=function(Z,I){if(I===1)return this.L.get(Z);if(I===2)return this.Z.get(Z);if(I===3)return this.D.get(Z)}; g.ze.prototype.zy=vF(58);g.ze.prototype.Bo=function(Z,I,d,Y){d={oo:Y,fC:d};I?this.Z.set(Z,d):this.L.set(Z,d)}; g.ze.prototype.clearAll=function(){this.L.clear();this.Z.clear();this.D.clear()}; s0D.prototype.clear=function(){this.D=[];this.Z.clear();this.N.clear();this.L.clear()}; s0D.prototype.Vt=function(Z){var I=Z.cpn;Z=Z.uQ;if(I&&(I=this.Z.get(I))||Z&&(I=(this.B?this.Z:this.N).get(Z)))return I}; g.U(g.mu,g.p);g.n=g.mu.prototype;g.n.onCueRangeEnter=function(Z){var I=Z.getId();this.t9({oncueEnter:1,cpn:I,start:Z.start,end:Z.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.fF()||0).toFixed(3)});var d=this.L.Vt({cpn:I});this.t9({enterAdCueRange:1});var Y=this.dV||this.oU().cpn,T;Y=(T=this.L.Vt({cpn:Y}))!=null?T:this.oU();d&&(T=this.playback.getCurrentTime(),d.startTimeSecs=Z.start/1E3,d={n5:Y,gX:d,Me:T},qmu(this,I,Z.start/1E3,T),vm(this,d));this.w4=!1}; g.n.lP=function(Z,I,d){if(Z&&I)if((this.app.J_().B[Z]||null)===null){var Y;this.t9({nocpn:Z,active:(Y=this.app.J_().D)==null?void 0:Y.PE()})}else{this.w4=d!=null?d:!1;var T;d=((T=this.app.J_().D)==null?void 0:T.PE())||this.playback.PE();var f;T=(f=this.L.Vt({cpn:d}))!=null?f:this.oU();var P;f=(P=this.L.Vt({cpn:Z}))!=null?P:this.oU();f.startTimeSecs=I;f.playerType===2&&(f.a6=f.a6!=null?Math.min(f.a6,I):I);P=this.playback.getCurrentTime();qmu(this,d,I,P);vm(this,{n5:T,gX:f,Me:P});if(this.playback.getVideoData().YF()&& Z===this.playback.PE())if(I=this.Yl.get(d)){var O;Z=g.t((O=this.mJ.get(I))!=null?O:[]);for(O=Z.next();!O.done;O=Z.next()){O=O.value;P=this.app.J_();if(d=P.B[O])P.D===d&&(P.D=null),P.j===d&&(P.j=null),delete P.B[O];this.Bj.delete(O);this.Yl.delete(O)}this.mJ.delete(I)}else this.t9({no_abid:Z})}}; g.n.hf=function(Z,I){if(Z===this.playback.PE())Vi(this.app.J_(),this.playback,!1);else{var d=this.Bj.get(Z);d?(Z=!this.w4,d.L=0,d.startTimeSecs=I,d.Z=Z===void 0?!0:Z,d.D=!0,Vi(this.app.J_(),d,!0)):this.t9({nop_s:Z})}}; g.n.onCueRangeExit=function(Z){for(var I=this.playback.getCurrentTime()*1E3,d=Z.getId(),Y=g.t(this.D.values()),T=Y.next();!T.done;T=Y.next())if(T=T.value,T.getId()!==d&&I>=T.start&&I<=T.end)return;if(d=this.L.Vt({cpn:d}))I=this.playback.getCurrentTime(),Y=this.oU(),Y.startTimeSecs=Z.end/1E3,d={n5:d,gX:Y,Me:I},qmu(this,this.playback.PE(),Z.end/1E3,I),vm(this,d)}; g.n.oU=function(){return{cpn:this.playback.PE(),durationMs:0,f_:0,playerType:1,Mc:0,videoData:this.playback.getVideoData(),errorCount:0,nA:""}}; g.n.seekTo=function(Z,I,d,Y){Z=Z===void 0?0:Z;I=I===void 0?{}:I;d=d===void 0?!1:d;Y=Y===void 0?null:Y;Wm(this,this.dV);if(this.playback.getVideoData().YF()&&Z<=this.dD)this.playback.pauseVideo(),this.dD=0,mm$(this,Z);else if(this.w4=this.LS=!0,d)HaL(this,Z,I);else{d=this.app.l5();var T=d===this.j7?this.b5:null;Yo(this,!1);this.SK=Z;this.I0=I;Y!=null&&this.UZ.start(Y);d&&(this.b5=T||d.getPlayerState(),d.t1(I),this.j7=d)}}; g.n.g4=function(){Yo(this,!1);fb(this);sLB(this);g.p.prototype.g4.call(this)}; g.n.U2=function(Z){this.Hk=Z;this.t9({swebm:Z})}; g.n.w5=function(Z,I,d){if(d&&I){var Y=this.B.get(Z);if(Y){Y.locations||(Y.locations=new Map);var T=Number(I.split(";")[0]);d=new g.rF(d);this.t9({hdlredir:1,itag:I,seg:Z,hostport:al(8,d)});Y.locations.set(T,d)}}}; g.n.P2=function(Z,I,d,Y,T,f){var P=Y===3,O=FZr(this,Z,I,Y,d,f);if(!O){A4(this,I,P);var a=g.VnE(this,I)?"undec":"ncp";this.t9({gvprp:a,mt:Z,seg:I,tt:Y,itag:d,ce:f});return null}P||this.B.set(I,O);f=O.nA;var W;Y=((W=this.NJ(I-1,Y,T))==null?void 0:W.oo)||"";Y===""&&this.t9({eds:1});W=sdg(this,O.ssdaiAdsConfig);T=this.playback.getVideoData();var e;P=((e=T.D)==null?void 0:e.containerType)||0;e=T.VD[P];O=O.Kf&&I>=O.Kf?O.Kf:void 0;e={gm:f?B3L(this,f):[],adsConfig:W,oo:Y,h3:O,AG:ch(e.split(";")[0]),hG:e.split(";")[1]|| ""};O={A$:e};this.on&&(Z={gvprpro:"v",sq:I,mt:Z.toFixed(3),itag:d,acpns:((a=e.gm)==null?void 0:a.join("_"))||"none",abid:f},this.t9(Z));return O}; g.n.MW=function(Z){a:{if(!this.fp){var I=vK(this,Z);if(!(this.playback.getVideoData().YF()&&(I==null?0:I.oG)))break a}I=void 0}var d=I;if(!d)return this.t9({gvprp:"ncp",mt:Z}),null;I=d.nA;var Y=sdg(this,d.ssdaiAdsConfig);d=d.Kf&&d.fO&&Z>=d.fO?d.Kf:void 0;var T=this.playback.getVideoData(),f,P=((f=T.D)==null?void 0:f.containerType)||0;f=T.VD[P];f={gm:I?B3L(this,I):[],adsConfig:Y,h3:d,AG:ch(f.split(";")[0]),hG:f.split(";")[1]||""};var O;Z={gvprpro:"v",mt:Z.toFixed(3),acpns:((O=f.gm)==null?void 0:O.join("_"))|| "none",abid:I};this.t9(Z);return f}; g.n.Ua=function(Z,I,d,Y,T,f){var P=Number(d.split(";")[0]),O=Y===3;Z=FZr(this,Z,I,Y,d,f);this.t9({gdu:1,seg:I,itag:P,pb:""+!!Z});if(!Z)return A4(this,I,O),null;Z.locations||(Z.locations=new Map);if(!Z.locations.has(P)){var a,W;f=(a=Z.videoData.getPlayerResponse())==null?void 0:(W=a.streamingData)==null?void 0:W.adaptiveFormats;if(!f)return this.t9({gdu:"noadpfmts",seg:I,itag:P}),A4(this,I,O),null;a=f.find(function(w){return w.itag===P}); if(!a||!a.url){var e=Z.videoData.videoId;Z=[];var B=g.t(f);for(Y=B.next();!Y.done;Y=B.next())Z.push(Y.value.itag);this.t9({gdu:"nofmt",seg:I,vid:e,itag:P,fullitag:d,itags:Z.join(",")});A4(this,I,O);return null}Z.locations.set(P,new g.rF(a.url,!0))}f=Z.locations.get(P);if(!f)return this.t9({gdu:"nourl",seg:I,itag:P}),A4(this,I,O),null;f=new Mr(f);this.Hk&&(f.get("dvc")?this.t9({dvc:f.get("dvc")||""}):f.set("dvc","webm"));(Y=(B=this.NJ(I-1,Y,T))==null?void 0:B.oo)&&f.set("daistate",Y);Z.Kf&&I>=Z.Kf&& f.set("skipsq",""+Z.Kf);(B=this.playback.getVideoData().clientPlaybackNonce)&&f.set("cpn",B);B=[];Z.nA&&(B=B3L(this,Z.nA),B.length>0&&f.set("acpns",B.join(",")));O||this.B.set(I,Z);O=null;O=f.get("aids");Y=f.VI();(Y==null?void 0:Y.length)>2048&&this.t9({urltoolong:1,sq:I,itag:P,len:Y.length});this.on&&(Y&&(f=Z.cpn,T=Z.nA,D4i(this,f,T),T&&!this.o4.has(T)&&(f=np9(this,f,T),a=odO(this,T),this.t9({iofa:f}),this.t9({noawnzd:a-f}),this.t9({acpns:B.join("."),aids:(e=O)==null?void 0:e.replace(/,/g,".")}), this.o4.add(T))),this.t9({gdu:"v",seg:I,itag:d,ast:Z.f_.toFixed(3),alen:Z.durationMs.toFixed(3),acpn:Z.cpn,avid:Z.videoData.videoId}));return Y}; g.n.hW=function(Z,I,d){d=d===void 0?!1:d;var Y=NO9(this,Z,I);if(Y){this.Gv&&(this.fS=Y);var T=void 0,f=Y.nA;if(f){this.t9({skipadonsq:I,sts:d,abid:f,acpn:Y.cpn,avid:Y.videoData.videoId});d=this.L.L.get(f);if(!d)return;d=g.t(d);for(f=d.next();!f.done;f=d.next())f=f.value,f.Kf=I,f.fO=Z,f.f_>Y.f_&&(T=f)}Wm(this,this.dV);this.Z=Y.cpn;BWu(this);this.api.Y("html5_ssdai_enable_media_end_cue_range")&&this.playback.v8(this.Z);Z=this.playback.getCurrentTime();FnO(this,Y,T,Z,Z,!1,!0);Nqd(this)}}; g.n.Md=function(){for(var Z=g.t(this.L.D),I=Z.next();!I.done;I=Z.next())I=I.value,I.Kf=NaN,I.fO=NaN;BWu(this);this.t9({rsac:"resetSkipAd",sac:this.Z});this.y5.delete(this.Z);this.Z="";this.Gv&&(this.fS=void 0)}; g.n.NJ=function(Z,I,d){return this.kS.NJ(Z,I,d)}; g.n.zy=vF(57); g.n.Bo=function(Z,I,d,Y,T,f,P,O,a){Y.length>0&&this.t9({onssinfo:1,sq:Z,start:I.toFixed(3),cpns:Y.join(","),ds:T.join(","),isVideo:P?1:0});if(this.Gv&&this.fS&&this.fS.Kf&&Y.length>0){d=g.t(Y);for(var W=d.next();!W.done;W=d.next())if(W=W.value,W===this.fS.cpn){this.kF!==W&&(this.t9({skiperror:1,sq:Z,acpn:this.fS.cpn,skipsq:this.fS.Kf||0}),this.kF=W);break}}a&&this.kS.Bo(Z,P,O,a);if(P){if(Y.length&&T.length)for(this.y5.has(Y[0])&&this.t9({skipfail:1,sq:Z,acpn:Y[0]}),Z=I+this.Mm(),P=0;P0&&(this.Wv=0,this.dV="",this.U.Y("html5_huli_ssdai_use_playback_state")&&this.hf(this.playback.PE(),0),this.api.publish("serverstitchedvideochange"));this.playback.pB(d,Y);return!0}; g.n.AL=function(){this.t9({rstdaist:1});this.kS.clearAll()}; g.n.rD=function(Z){var I;if(Z!==((I=this.j)==null?void 0:I.identifier))this.t9({ignorenoad:Z});else{this.R4.add(Z);this.t9({noadrcv:Z});var d;((d=this.j)==null?void 0:d.identifier)===Z&&dQ(this)}}; g.n.FV=function(Z){if(this.fp)return this.t9({dai_disabled:Z.event}),!1;if(this.playback.getVideoData().YF()&&(Z.event==="continue"||Z.event==="stop"))return!1;var I=l_(this.api.nM());if(I=I?I.FV(Z):!1)this.N={Cy:Z.identifier,hU:Z.startSecs};else if(this.N&&this.N.Cy===Z.identifier&&Z.startSecs>this.N.hU+1){this.t9({cueStChg:Z.identifier,oldSt:this.N.hU.toFixed(3),newSt:Z.startSecs.toFixed(3),abid:this.N.vp});if(this.N.vp){var d=Z.startSecs-this.N.hU,Y=this.L.L.get(this.N.vp);if(Y){Y=g.t(Y);for(var T= Y.next();!T.done;T=Y.next())T=T.value,T.f_>=0&&(T.f_+=d*1E3,this.U.Y("html5_ssdai_update_timeline_on_start_time_change")&&(T.Mc+=d*1E3),this.t9({newApEt:T.f_,newApPrt:T.Mc,acpn:T.cpn}))}}this.N.hU=Z.startSecs}this.U.Y("html5_ssdai_log_missing_ad_config_reason")&&(I?this.Tm.add(Z.identifier):this.Tm.has(Z.identifier)&&this.Tm.delete(Z.identifier));return I}; g.n.Bi=function(Z){var I="";Z?Z.event==="unknown"?I="unknown":this.Tm.has(Z.identifier)?this.N&&this.N.Cy===Z.identifier?this.N.Cy===Z.identifier?I="pending":nF(this.d4,function(d){return d.identifier===Z.identifier})||(I="noAdsAdded"):I="wrongAdBreakInfo":I="unscheduled":I="noCuepoint"; return I}; g.n.Da=function(Z){return this.fp?!1:!!vK(this,Z)}; g.n.Bw=function(Z){var I=this;if(this.U.Y("html5_lifa_ignore_multiple_skips")&&this.Ns)return this.t9({ufs_ad:this.Z,ufs_cur:this.dV,ufs_cont:this.oU().cpn}),!1;Wm(this,this.dV);this.playback.pauseVideo();var d=this.playback.getCurrentTime(),Y=this.L.Vt({cpn:this.dV});if(!Y)return this.t9({skipFail:d}),!1;this.Z=this.dV;this.LS=!1;this.api.Y("html5_ssdai_enable_media_end_cue_range")&&this.playback.v8(this.Z);this.M$(Y.nA);Kgp(this,Y,this.oU(),Z);mm$(this,d,{seekSource:89,H$:"lifa_skip"});this.Ns|| (this.Ns=this.events.W(this.api,"progresssync",function(){qU(I.api.MA(),(0,g.o8)(),"ad_to_video");I.Ns&&(I.events.a4(I.Ns),I.Ns=null)})); return!0}; g.n.M$=function(Z){if(this.playback.getVideoData().YF()){var I=this.L.L.get(Z);if(I){I=g.t(I);for(var d=I.next();!d.done;d=I.next()){d=d.value;var Y=this.D.get(d.cpn);this.D.delete(d.cpn);Y&&this.playback.removeCueRange(Y);LgV(this.L,d)}this.B.clear();I=this.L;var T;d=(T=I.L.get(Z))!=null?T:[];T=g.t(d);for(d=T.next();!d.done;d=T.next())LgV(I,d.value);I.L.delete(Z);(Z=this.eK.get(Z))&&this.U.Y("html5_ssdai_new_decoration_logic")&&this.playback.pK(Z)}}}; g.n.t9=function(Z,I){((I===void 0?0:I)||this.on||this.playback.getVideoData().YF())&&this.playback.D1("sdai",Z)}; var iUi=0;g.U(xV,g.p);g.n=xV.prototype;g.n.onCueRangeEnter=function(Z){if(this.L===this.app.l5()){var I=this.B.get(Z);I?zsr(this,I.target,I.U9,Z):this.nj("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:Z.toString()})}else if(I=this.D.find(function(T){return T.XS.HO===Z})){var d=I.XS,Y=d.target; d=d.U9;Y?zsr(this,Y,d,Z):cJO(this,I.Mc,d,Z)}}; g.n.onQueuedVideoLoaded=function(){var Z=this.V;nv(this);if(Z){if(!AG(this,Z)){var I=this.app.l5();this.nj("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:I==null?void 0:I.getVideoData().clientPlaybackNonce,ccpn:""+Z.playerVars.cpn})}this.app.l5().addCueRange(Z.XS.HO)}}; g.n.seekTo=function(Z,I,d,Y){Z=Z===void 0?0:Z;I=I===void 0?{}:I;Y=Y===void 0?null:Y;if(d===void 0?0:d)HAl(this,Z,I);else{d=this.app.l5()||null;var T=d===this.N?this.j:null;Fs(this,!1);this.LS=Z;this.In=I;Y!=null&&this.X.start(Y);d&&(this.j=T||d.getPlayerState(),d.t1(),this.N=d)}}; g.n.nw=function(Z){g.Nw(Z,128)&&QSp(this)}; g.n.isManifestless=function(){return FI(this.L.getVideoData())}; g.n.g4=function(){Fs(this,!1);yau(this);g.p.prototype.g4.call(this)}; g.n.nj=function(Z,I){this.L.nj(new g.dj(Z,I))}; var p79=0;var ZcD="MWEB TVHTML5 TVHTML5_AUDIO TVHTML5_CAST TVHTML5_KIDS TVHTML5_FOR_KIDS TVHTML5_SIMPLY TVHTML5_SIMPLY_EMBEDDED_PLAYER TVHTML5_UNPLUGGED TVHTML5_VR TV_UNPLUGGED_CAST WEB WEB_CREATOR WEB_EMBEDDED_PLAYER WEB_EXPERIMENTS WEB_GAMING WEB_HEROES WEB_KIDS WEB_LIVE_STREAMING WEB_MUSIC WEB_MUSIC_ANALYTICS WEB_MUSIC_INTEGRATIONS WEB_REMIX WEB_UNPLUGGED WEB_UNPLUGGED_ONBOARDING WEB_UNPLUGGED_OPS WEB_UNPLUGGED_PUBLIC".split(" ");g.U(pg,g.p);pg.prototype.OH=function(Z){if(Z)return this.D.get(Z)}; pg.prototype.g4=function(){this.L.removeAll();this.D.removeAll();g.p.prototype.g4.call(this)};g.QWM=Zz(function(){var Z=window.AudioContext||window.webkitAudioContext;try{return new Z}catch(I){return I.name}});g.U(zR,g.k);g.n=zR.prototype;g.n.Sc=function(){g.xl(this.element,g.vj.apply(0,arguments))}; g.n.aB=function(){this.h9&&(this.h9.removeEventListener("focus",this.fX),g.r2(this.h9),this.h9=null)}; g.n.py=function(){this.OZ();var Z=this.app.C();Z.xM||this.Sc("tag-pool-enabled");Z.j&&this.Sc(g.dP.HOUSE_BRAND);Z.playerStyle==="gvn"&&(this.Sc("ytp-gvn"),this.element.style.backgroundColor="transparent");Z.Hk&&(this.FB=g.iV("yt-dom-content-change",this.resize,this));this.W(window,"orientationchange",this.resize,this);this.W(window,"resize",this.resize,this)}; g.n.Hq=function(Z){g.f8(this.app.C());this.L9=!Z;Ii(this)}; g.n.resize=function(){if(this.h9){var Z=this.BJ();if(!Z.isEmpty()){this.app.Wj.isFullscreen()&&bq()&&this.uE.start();var I=!g.RR(Z,this.jZ.getSize()),d=ZSB(this);I&&(this.jZ.width=Z.width,this.jZ.height=Z.height);Z=this.app.C();(d||I||this.uB||Z.Hk)&&this.app.Wj.publish("resize",this.getPlayerSize())}}}; g.n.W3=function(Z,I){this.updateVideoData(I)}; g.n.updateVideoData=function(Z){if(this.h9){var I=this.app.C();RZ&&(this.h9.setAttribute("x-webkit-airplay","allow"),Z.title?this.h9.setAttribute("title",Z.title):this.h9.removeAttribute("title"));this.h9.setAttribute("controlslist","nodownload");I.YO&&Z.videoId&&(this.h9.poster=Z.uT("default.jpg"))}I=g.pS(Z,"yt:bgcolor");this.VV.style.backgroundColor=I?I:"";this.cD=qs$(g.pS(Z,"yt:stretch"));this.PD=qs$(g.pS(Z,"yt:crop"),!0);g.zL(this.element,"ytp-dni",Z.IN);this.resize()}; g.n.setGlobalCrop=function(Z){this.Qh=qs$(Z,!0);this.resize()}; g.n.setCenterCrop=function(Z){this.pu=Z;this.resize()}; g.n.Pl=function(){}; g.n.getPlayerSize=function(){var Z=this.app.C(),I=this.app.Wj.isFullscreen(),d=Z.externalFullscreen&&g.Dh(Z);if(I&&bq()&&!d)return new g.qv(window.outerWidth,window.outerHeight);d=!isNaN(this.QP.width)&&!isNaN(this.QP.height);var Y=this.app.C().Y("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.C().Y("web_watch_enable_fs_squeezeback_panels");if(I&&!d&&Y)return new g.qv(this.element.clientWidth,this.element.clientHeight);if(I||Z.jA){if(window.matchMedia){Z="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.Rm&&this.Rm.media===Z||(this.Rm=window.matchMedia(Z));var T=this.Rm&&this.Rm.matches}if(T)return new g.qv(window.innerWidth,window.innerHeight)}else if(d)return this.QP.clone();return new g.qv(this.element.clientWidth,this.element.clientHeight)}; g.n.BJ=function(){var Z=this.app.C().Y("enable_desktop_player_underlay"),I=this.getPlayerSize(),d=g.Q4(this.app.C().experiments,"player_underlay_min_player_width");return Z&&this.L4&&I.width>d?(Z=g.Q4(this.app.C().experiments,"player_underlay_video_width_fraction"),new g.qv(Math.min(I.height*this.getVideoAspectRatio(),I.width*Z),Math.min(I.height,I.width*Z/this.getVideoAspectRatio()))):I}; g.n.getVideoAspectRatio=function(){return isNaN(this.cD)?L$9(this):this.cD}; g.n.getVideoContentRect=function(Z){var I=this.BJ();Z=Fku(this,I,this.getVideoAspectRatio(),Z);return new g.Ey((I.width-Z.width)/2,(I.height-Z.height)/2,Z.width,Z.height)}; g.n.pZ=function(Z){this.L4=Z;this.resize()}; g.n.lc=function(){return this.yE}; g.n.onMutedAutoplayChange=function(){Ii(this)}; g.n.setInternalSize=function(Z){g.RR(this.QP,Z)||(this.QP=Z,this.resize())}; g.n.g4=function(){this.FB&&g.Z2(this.FB);this.aB();g.k.prototype.g4.call(this)};g.n=VGn.prototype;g.n.click=function(Z,I){this.elements.has(Z);this.L.has(Z);var d=g.vv();d&&Z.visualElement&&g.Gy(d,Z.visualElement,I)}; g.n.createClientVe=function(Z,I,d,Y){var T=this;Y=Y===void 0?!1:Y;this.elements.has(Z);this.elements.add(Z);d=uEJ(d);Z.visualElement=d;var f=g.vv(),P=g.lg();f&&P&&(g.x9("combine_ve_grafts")?MO(gl(),d,P):g.t6(g.$5)(void 0,f,P,d));I.addOnDisposeCallback(function(){T.elements.has(Z)&&T.destroyVe(Z)}); Y&&this.D.add(Z)}; g.n.createServerVe=function(Z,I,d){var Y=this;d=d===void 0?!1:d;this.elements.has(Z);this.elements.add(Z);I.addOnDisposeCallback(function(){Y.destroyVe(Z)}); d&&this.D.add(Z)}; g.n.destroyVe=function(Z){this.elements.has(Z);this.elements.delete(Z);this.Z.delete(Z);this.L.delete(Z);this.D.delete(Z)}; g.n.SR=function(Z,I){this.clientPlaybackNonce!==I&&(this.clientPlaybackNonce=I,P4(gl(),Z),LfL(this))}; g.n.setTrackingParams=function(Z,I){this.elements.has(Z);I&&(Z.visualElement=g.p0(I))}; g.n.o0=function(Z,I,d){this.elements.has(Z);I?this.L.add(Z):this.L.delete(Z);var Y=g.vv(),T=Z.visualElement;this.D.has(Z)?Y&&T&&(I?g.xs(Y,[T]):g.Ju(Y,[T])):I&&!this.Z.has(Z)&&(Y&&T&&g.VS(Y,T,void 0,d),this.Z.add(Z))}; g.n.hasVe=function(Z){return this.elements.has(Z)};g.U(g.I_,g.p);g.I_.create=function(Z,I,d,Y){try{var T=typeof Z==="string"?Z:"player"+g.Hc(Z),f=L1[T];if(f){try{f.dispose()}catch(O){g.nl(O)}L1[T]=null}var P=new g.I_(Z,I,d,Y);P.addOnDisposeCallback(function(){L1[T]=null;P.PA&&P.PA()}); return L1[T]=P}catch(O){throw g.nl(O),(O&&O instanceof Error?O:Error(String(O))).stack;}}; g.n=g.I_.prototype;g.n.f6=function(){return this.visibility}; g.n.rS=function(Z){var I=this.vj();if(Z!==I){Z.getVideoData().autonavState=I.getVideoData().autonavState;I.St(this.eU,this);var d=I.getPlaybackRate();I.dispose();this.DU.rS(Z);Z.setPlaybackRate(d);Z.vT(this.eU,this);rz(this)}}; g.n.NA=function(){this.Uk||(this.Uk=g.Lh(lF(),nJi()));return this.Uk}; g.n.aB=function(Z){if(this.mediaElement){this.zc&&(this.events.a4(this.zc),this.zc=null);g.aL(this.TE);this.l5().aB(!0,!1,Z);this.template.aB();try{this.Y("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.ma()}catch(I){g.uL(I)}this.mediaElement=null}}; g.n.Pa=function(Z,I,d){if(Z!==this.l5()){var Y=null;if(d===void 0||!d){d=this.l5();Y=d.getPlayerState();eV(this.cg,3);p_(this,"cuerangesremoved",d.Rt());this.VL&&!Z.isGapless()&&d.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();d=Z.qj()&&d.qj();this.KM.Ni("iv_s");d=d===void 0?!0:d;var T;if(T=this.Hg){T=this.Hg;var f=this.mediaElement;T=!!f&&f===T.mediaElement}T&&(this.aB(),vk(this));T=this.l5();T.aB(!d);T.St(this.eV,this);T.getPlayerType()!==1&&T.dispose();d=this.DU;d.Z=d.L;F7(d)}Z.getPlayerType()=== 1&&this.rS(Z);d=Z.getPlayerType();T=this.DU.N[d]||null;Z!==this.vj()&&Z!==T&&(T==null||T.dispose(),this.DU.N[d]=Z);this.DU.Pa(Z);this.mediaElement&&Z.setMediaElement(this.mediaElement);Z.vT(this.eV,this);Z.mN()?il(this,"setPresenting",!1):(this.W3("newdata",Z,Z.getVideoData()),Y&&!g.JwE(Y,Z.getPlayerState())&&this.Kd(new g.cQ(Z.getPlayerState(),Y)),I=I&&Z.getPlayerType()===1,Z.fv()&&!I&&this.W3("dataloaded",Z,Z.getVideoData()),(I=(I=Z.getVideoData().D)&&I.video)&&this.Wj.OV("onPlaybackQualityChange", I.quality),p_(this,"cuerangesadded",Z.Rt()),I=Z.getPlayerState(),g.b(I,2)?wvn(this):g.b(I,8)?Z.playVideo():Z.MZ()&&Z.pauseVideo(),I=this.vj(),Z.getPlayerType()===2&&(Z.getVideoData().lZ=I.getVideoData().clientPlaybackNonce),Z.getPlayerType()!==2||this.Z5()||(Z=Z.getVideoData(),I.ob(Z.clientPlaybackNonce,Z.Vf||"",Z.breakType||0,Z.u8,Z.videoId||"")))}}; g.n.Qb=function(){this.vj()!==this.l5()&&this.Pa(this.vj())}; g.n.J_=function(){return this.DU}; g.n.Vt=function(Z){return this.DU.Vt(Z)}; g.n.Se=function(Z){return this.DU.Se(Z)}; g.n.vj=function(){return this.DU.vj()}; g.n.l5=function(){return this.DU.l5()}; g.n.UT=vF(44);g.n.BKn=function(){I6(this)||this.bP(5)}; g.n.EuS=function(){if(!I6(this)){fB(this);var Z=this.l5(),I=Z.getPlayerState();Z.MZ()?this.pauseVideo():I.isOrWillBePlaying()&&this.playVideo()}}; g.n.canPlayType=function(Z){return qf(Z)}; g.n.C=function(){return this.U}; g.n.getVideoData=function(){return this.l5().getVideoData()}; g.n.GQ=vF(11);g.n.gz=function(){return this.vj().getVideoData()}; g.n.getVideoLoadedFraction=function(Z){return(Z=this.Vt({playerType:Z}))?Z.getVideoLoadedFraction():this.DU.L.getVideoLoadedFraction()}; g.n.cj=function(){return this.template}; g.n.nM=function(){return this.cg}; g.n.MA=function(){return this.KM}; g.n.C$=function(Z,I,d){(I=this.Vt({playerType:I===void 0?1:I}))&&I.hk(Z,void 0,d)}; g.n.Ci=function(){var Z=this.cg.Ci();this.Wj.publish("videoStatsPingCreated",Z);return Z}; g.n.getVolume=function(){return Math.round(this.Wj.getVolume())}; g.n.isMuted=function(){return this.Wj.isMuted()}; g.n.Ad=function(){if(this.vj()===this.l5()&&this.xl)return this.xl.postId}; g.n.eXj=function(){var Z=this;this.Y("use_rta_for_player")||(g.RK(this.U)?g.NF(this.U,g.VO(this.getVideoData())).then(function(I){E3(lF(),I);dN0(Z.getVideoData(),Z.U,Z.NA())}):dN0(this.getVideoData(),this.U,this.NA()))}; g.n.dH=function(Z){this.Wj.publish("poTokenVideoBindingChange",Z)}; g.n.Ag=function(Z){this.Wj.publish("d6de4videobindingchange",Z)}; g.n.Pw=function(){this.JS&&this.JS.Pw()}; g.n.bB=function(Z){this.JS=Z}; g.n.l$=function(Z){if(Z===1){this.KM.tick("vr");var I=this.l5();I.C2();Gv$(this.KM,I.getVideoData(),dUD(this));Da(this.cg)}I=this.U;if(hL(I)&&I.X||g.$D(I)){var d;(((d=this.l5().getVideoData())==null?0:d.enableServerStitchedDai)||!this.Z5())&&this.Wj.OV("onAdStateChange",Z)}}; g.n.setLoopVideo=function(Z){var I=this.l5();I===this.vj()&&I.sY()!==Z&&(I.setLoop(Z),this.Wj.Rn("onLoopChange",Z))}; g.n.getLoopVideo=function(){return this.l5().sY()}; g.n.setLoopRange=function(Z){var I=!1;!!this.xl!==!!Z?I=!0:this.xl&&Z&&(I=this.xl.startTimeMs!==Z.startTimeMs||this.xl.endTimeMs!==Z.endTimeMs||this.xl.postId!==Z.postId||this.xl.type!==Z.type);if(I){I=this.l5();fA(I.getVideoData())&&I.D1("slr",{et:(Z==null?void 0:Z.endTimeMs)||-1});I=this.vj();I.jM("applooprange");if(Z){var d=new g.S8(Z.startTimeMs,Z.endTimeMs,{id:"looprange",namespace:"applooprange"});I.addCueRange(d)}else{this.gz().clipConfig=void 0;var Y;((d=this.xl)==null?void 0:d.type)!=="repeatChapter"|| isNaN(Number((Y=this.xl)==null?void 0:Y.loopCount))||(d={loopCount:String(this.xl.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.g6("repeatChapterLoopEvent",d))}this.xl=Z;this.Wj.Rn("onLoopRangeChange",Z||void 0);this.vj()===this.l5()&&(this.qM(),I.FL())}}; g.n.getLoopRange=function(){return this.xl}; g.n.qM=function(){var Z="",I=this.vj();this.xl?I!==this.l5()?Z="pnea":ypB(this,I.getCurrentTime())&&(this.xl.loopCount=0,Z="ilr"):Z="nlr";var d=this.l5();if(fA(d.getVideoData()))if(this.Y("html5_gapless_log_loop_range_info")){var Y,T;d.D1("slrre",{rej:Z,ct:I.getCurrentTime(),lst:(Y=this.xl)==null?void 0:Y.startTimeMs,let:(T=this.xl)==null?void 0:T.endTimeMs})}else d.D1("slrre",{});Z||e7B(this)}; g.n.setPlaybackRate=function(Z,I){if(!isNaN(Z)){Z=RTn(this,Z);var d=this.vj();d.getPlaybackRate()!==Z&&(d.setPlaybackRate(Z),I&&!this.U.N&&g.AU("yt-player-playback-rate",Z),this.Wj.OV("onPlaybackRateChange",Z))}}; g.n.getCurrentTime=function(Z,I){I=I===void 0?!0:I;var d=this.DU.OI;if(d)return d.getCurrentTime();var Y=Z===2&&this.getVideoData().enableServerStitchedDai;d=null;Y?d=this.l5():d=this.Vt({playerType:Z});return d?Y&&this.Pg?(Z=this.DU.j)?Z.getCurrentTime(I):d.getCurrentTime():I?(I=gV(this,d),no(this,I.getCurrentTime(),I)):d.getCurrentTime():this.DU.L.getCurrentTime()}; g.n.aK=function(){var Z=this.Vt({playerType:void 0});if(!Z)return this.DU.L.aK();Z=gV(this,Z);return no(this,Z.aK(),Z)}; g.n.getDuration=function(Z,I){I=I===void 0?!0:I;var d=this.DU.OI;if(d)return d.getDuration();d=this.getVideoData();var Y=Z===2&&d.enableServerStitchedDai,T=null;Y?T=this.l5():T=this.Vt({playerType:Z});if(!T)return this.DU.L.getDuration();if(d.hasProgressBarBoundaries()&&!Y){var f,P=Number((f=d.progressBarStartPosition)==null?void 0:f.utcTimeMillis),O;f=Number((O=d.progressBarEndPosition)==null?void 0:O.utcTimeMillis);if(!isNaN(P)&&!isNaN(f))return(f-P)/1E3}if(fA(d)&&!d.isLivePlayback)return cu(this, Z);if(I)return Z=fK(this,T),no(this,Z.getDuration(),Z);if(Y&&this.Pg){if(this.Y("html5_huli_ssdai_use_playback_state"))return Z=this.DU,Z=Z.D===Z.j?Z.D:null,(Z==null?void 0:Z.getDuration())||0;var a;return((a=this.DU.j)==null?void 0:a.getDuration())||0}return T.getDuration()}; g.n.xF=function(Z){var I=this.Vt({playerType:Z});return I?this.Z5(I)?(I=fK(this,I),I.xF()-I.getCurrentTime()+this.getCurrentTime(Z)):I.xF():this.DU.L.xF()}; g.n.finishSegmentByCpn=function(){return[]}; g.n.py=function(){this.template.py();var Z=this.Wj;Z.state.element=this.template.element;var I=Z.state.element,d;for(d in Z.state.L)Z.state.L.hasOwnProperty(d)&&(I[d]=Z.state.L[d]);(Z=VWL(this.template.element))&&this.events.W(this.template,Z,this.onFullscreenChange)}; g.n.getDebugText=function(Z){var I=this.vj().Gb(Z),d=this.l5();if(d!==this.vj()){d=d.Gb(Z);for(var Y=g.t(Object.keys(d)),T=Y.next();!T.done;T=Y.next())T=T.value,I["ad"+T]=d[T];if(Z){d=I;Y={};if(T=HI(document,"movie_player"))Y.bounds=T.getBoundingClientRect(),Y["class"]=T.className;T={};var f=g.hi("video-ads");f?(wf9(f,T),T.html=f.outerHTML):T.missing=1;f={};var P=g.hi("videoAdUiSkipContainer"),O=g.hi("ytp-ad-skip-button-container"),a=g.hi("ytp-skip-ad-button"),W=P||O||a;W?(wf9(W,f),f.ima=P?1:0,f.bulleit= O?1:0,f.component=a?1:0):f.missing=1;Y=JSON.stringify({player:Y,videoAds:T,skipButton:f});d.ad_skipBtnDbgInfo=Y}}Z&&this.mediaElement&&(I["0sz"]=""+(+Ih(this.mediaElement.getSize())===0),I.op=this.mediaElement.PH("opacity"),d=this.mediaElement.Jf().y+this.mediaElement.getSize().height,I.yof=""+(+d<=0),I.dis=this.mediaElement.PH("display"));Z&&((Z=(0,g.CC)())&&(I.gpu=Z),(Z=this.U.playerStyle)&&(I.ps=Z),this.U.w4&&(I.webview=1),(Z=this.webPlayerContextConfig.jsUrl)&&(I.js=Z));I.debug_playbackQuality= this.Wj.getPlaybackQuality(1);I.debug_date=(new Date).toString();I.origin=window.origin;I.timestamp=Date.now();delete I.uga;delete I.q;return JSON.stringify(I,null,2)}; g.n.getFeedbackProductData=function(){var Z={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.C().experiments.experimentIds.join(", "),player_release:Q[12]},I=this.getPlayerStateObject().Em;I&&(Z.player_error_code=I.errorCode,Z.player_error_details=JSON.stringify(I.errorDetail));return Z}; g.n.getPresentingPlayerType=function(Z){if(this.appState===1)return 1;if(I6(this))return 3;var I,d,Y;return(Z&&this.U.BO().L.K_(wA)?(Y=(I=this.DU.D)==null?void 0:I.isAd())!=null&&Y:(d=this.Pg)==null?0:V_(d,this.getCurrentTime()))?2:this.l5().getPlayerType()}; g.n.Si=function(){return!1}; g.n.getPlayerStateObject=function(Z){var I=this.DU.OI;return I?I.getPlayerState():this.Vt({playerType:Z}).getPlayerState()}; g.n.getAppState=function(){return this.appState}; g.n.p$7=function(Z){switch(Z.type){case "loadedmetadata":this.Tl.start();Z=g.t(this.rZ);for(var I=Z.next();!I.done;I=Z.next())I=I.value,V1$(this,I.id,I.J_S,I.dj4,void 0,!1);this.rZ=[];break;case "loadstart":this.KM.Ni("gv");break;case "progress":case "timeupdate":zH(Z.target.cE())>=2&&this.KM.Ni("l2s");break;case "playing":g.EW&&this.Tl.start();if(g.RK(this.U))Z=!1;else{I=g.D3(this.nM());Z=this.mediaElement.PH("display")==="none"||Ih(this.mediaElement.getSize())===0;var d=dk(this.template),Y=this.l5().getVideoData(), T=g.vl(this.U);Y=Nv(Y);I=!d||I||T||Y||this.U.d4;Z=Z&&!I}Z&&(Z=this.l5(),Z.X8(),this.getVideoData().eK||(this.getVideoData().eK=1,this.Nx(),Z.playVideo()))}}; g.n.ra7=function(Z){this.Wj.Kj("onLoadProgress",Z)}; g.n.ya5=function(){this.Wj.publish("playbackstalledatstart")}; g.n.CQn=function(Z,I){this.Wj.publish("sabrCaptionsDataLoaded",Z,I)}; g.n.FHZ=function(Z){this.l5().eZ(Z)}; g.n.qPs=function(Z){this.l5().Po(Z)}; g.n.vur=function(Z){Z=gV(this,this.l5());Z=no(this,Z.getCurrentTime(),Z);this.Wj.OV("onVideoProgress",Z);this.U.Zu&&Xeu(this,this.visibility.RB())&&this.pauseVideo()}; g.n.aUr=function(){this.Wj.OV("onAutoplayBlocked");var Z=this.l5().getVideoData();Z&&(Z.G7=!0);g.Dh(this.U)&&(Z={autoplayBrowserPolicy:zlD(),autoplayIntended:I$(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.g6("embedsAutoplayStatusChanged",Z))}; g.n.d85=function(){this.Wj.publish("progresssync")}; g.n.s4S=function(){this.Wj.Kj("onPlaybackPauseAtStart")}; g.n.iM5=function(Z){if(this.getPresentingPlayerType()===1){g.Nw(Z,1)&&!g.b(Z.state,64)&&this.gz().isLivePlayback&&this.vj().isAtLiveHead()&&this.Wj.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Nw(Z,2)){if(this.xl&&this.xl.endTimeMs>=(this.getDuration()-1)*1E3){e7B(this);return}wvn(this)}if(g.b(Z.state,128)){var I=Z.state;this.cancelPlayback(5);I=I.Em;JSON.stringify({errorData:I,debugInfo:this.getDebugText(!0)});this.Wj.OV("onError",Aml(I.errorCode));this.Wj.Kj("onDetailedError",{errorCode:I.errorCode, errorDetail:I.errorDetail,message:I.errorMessage,messageKey:I.xq,cpn:I.cpn});(0,g.o8)()-this.U.u8>6048E5&&this.Wj.Kj("onReloadRequired")}I={};if(Z.state.isPlaying()&&!Z.state.isBuffering()&&!H6("pbresume","ad_to_video")&&H6("_start","ad_to_video")){var d=this.getVideoData();I.clientPlaybackNonce=d.clientPlaybackNonce;d.videoId&&(I.videoId=d.videoId);g.Qg(I,"ad_to_video");O7("pbresume",void 0,"ad_to_video");Da(this.cg)}this.Wj.publish("applicationplayerstatechange",Z)}}; g.n.Kd=function(Z){this.DU.OI||this.Wj.publish("presentingplayerstatechange",Z)}; g.n.nw=function(Z){F5(this,sC(Z.state));g.b(Z.state,1024)&&this.Wj.isMutedByMutedAutoplay()&&(oH(this,{muted:!1,volume:this.p6.volume},!1),YF(this,!1))}; g.n.onPlayerRequestSent=function(Z){this.Wj.Rn("onPlayerRequestSent",Z)}; g.n.LX=function(Z,I){Z==="newdata"&&rz(this);this.Wj.publish("applicationvideodatachange",Z,I)}; g.n.uT5=function(Z,I){this.Y("html5_afmt_change_update_volume")&&fB(this);this.Wj.Kj("onPlaybackAudioChange",this.Wj.getAudioTrack().uo.name);this.Wj.publish("internalaudioformatchange",this.Wj.getAudioTrack().uo.id,I)}; g.n.AaS=function(Z){var I=this.l5().getVideoData();Z===I&&this.Wj.OV("onPlaybackQualityChange",Z.D.video.quality)}; g.n.q$=function(){var Z=this.DU.N[2]||null;Z&&(Z=Z.getVideoData(),this.l5().D1("ssdai",{cleanaply:1,acpn:Z==null?void 0:Z.clientPlaybackNonce,avid:Z.videoId,isDai:this.gz().enableServerStitchedDai?1:0}),delete this.DU.N[2])}; g.n.b_n=function(Z,I){this.W3(Z,this.l5(),I)}; g.n.W3=function(Z,I,d){this.U.Vy()&&I.D1("vdc",{type:Z,vid:d.videoId||"",cpn:d.clientPlaybackNonce||""});I===this.vj()&&(this.U.zD=d.oauthToken);I===this.vj()&&(this.getVideoData().enableServerStitchedDai&&!this.Pg?(this.vj().D1("sdai",{initSstm:1}),this.Pg=new g.mu(this.Wj,this.U,this.vj(),this)):!this.getVideoData().enableServerStitchedDai&&this.Pg&&(this.Pg.dispose(),this.Pg=null));if(Z==="newdata")eV(this.cg,2),this.Wj.publish("videoplayerreset",I);else{if(!this.mediaElement)return;if(Z==="dataloaded")if(this.vj()=== this.l5()){if(XL7(d.nS,d.cP),!this.vj().getPlayerState().isError()){var Y=I6(this);this.gz().isLoaded();Y&&this.bP(6);ROr(this);fq(this.cg)||o6(this)}}else ROr(this);if(I.getPlayerType()===1&&(this.U.j7&&aOr(this),this.getVideoData().isLivePlayback&&!this.U.SG&&this.Ll("html5.unsupportedlive",2,"DEVICE_FALLBACK"),d.isLoaded()&&((TvL(d)||this.getVideoData().Ki)&&this.Wj.publish("legacyadtrackingpingchange",this.getVideoData()),d.hasProgressBarBoundaries()))){var T;Y=Number((T=this.getVideoData().progressBarEndPosition)== null?void 0:T.utcTimeMillis)/1E3;!isNaN(Y)&&(T=this.xF())&&(T-=this.getCurrentTime(),Y=(Y-T)*1E3,T=this.Dj.progressEndBoundary,(T==null?void 0:T.start)!==Y&&(T&&this.Y7([T]),Y=new g.S8(Y,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.vj().addCueRange(Y),this.Dj.progressEndBoundary=Y))}this.Wj.publish("videodatachange",Z,d,I.getPlayerType())}this.Wj.OV("onVideoDataChange",{type:Z,playertype:I.getPlayerType()});this.qM();(Z=d.Km)?this.bf.SR(Z,d.clientPlaybackNonce): LfL(this.bf)}; g.n.Yv=function(){Oq(this,null);this.Wj.Kj("onPlaylistUpdate")}; g.n.Zjm=function(Z){delete this.Dj[Z.getId()];this.vj().removeCueRange(Z);a:{Z=this.getVideoData();var I,d,Y,T,f,P,O,a,W,e,B=((I=Z.mJ)==null?void 0:(d=I.contents)==null?void 0:(Y=d.singleColumnWatchNextResults)==null?void 0:(T=Y.autoplay)==null?void 0:(f=T.autoplay)==null?void 0:f.sets)||((P=Z.mJ)==null?void 0:(O=P.contents)==null?void 0:(a=O.twoColumnWatchNextResults)==null?void 0:(W=a.autoplay)==null?void 0:(e=W.autoplay)==null?void 0:e.sets);if(B)for(I=g.t(B),d=I.next();!d.done;d=I.next())if(d= d.value,T=Y=void 0,d=d.autoplayVideo||((Y=d.autoplayVideoRenderer)==null?void 0:(T=Y.autoplayEndpointRenderer)==null?void 0:T.endpoint),Y=g.y(d,g.CI),f=T=void 0,d!=null&&((T=Y)==null?void 0:T.videoId)===Z.videoId&&((f=Y)==null?0:f.continuePlayback)){Z=d;break a}Z=null}(I=g.y(Z,g.CI))&&this.Wj.Rn("onPlayVideo",{sessionData:{autonav:"1",itct:Z==null?void 0:Z.clickTrackingParams},videoId:I.videoId,watchEndpoint:I})}; g.n.bP=function(Z){Z!==this.appState&&(Z===2&&this.getPresentingPlayerType()===1&&(F5(this,-1),F5(this,5)),this.appState=Z,this.Wj.publish("appstatechange",Z))}; g.n.Ll=function(Z,I,d,Y,T){this.vj().pj(Z,I,d,Y,T)}; g.n.vK=vF(13);g.n.isAtLiveHead=function(Z,I){I=I===void 0?!1:I;var d=this.Vt({playerType:Z});if(!d)return this.DU.L.isAtLiveHead();Z=fK(this,d);d=gV(this,d);return Z!==d?Z.isAtLiveHead(no(this,d.getCurrentTime(),d),!0):Z.isAtLiveHead(void 0,I)}; g.n.T0=function(){var Z=this.Vt({playerType:void 0});return Z?fK(this,Z).T0():this.DU.L.T0()}; g.n.seekTo=function(Z,I,d,Y,T,f){I=I!==!1;if(Y=this.Vt({playerType:Y}))if(this.appState===2&&GF(this),this.Z5(Y))sD(this)?this.Pg.seekTo(Z,{seekSource:T},I,d):this.FT.seekTo(Z,{seekSource:T},I,d);else{this.Y("html5_sabr_csdai_seek_log")||(f="");var P;Y.seekTo(Z,{KE:!I,Ei:d,H$:"application"+((P=f)!=null?P:""),seekSource:T})}}; g.n.seekBy=function(Z,I,d,Y){this.seekTo(this.getCurrentTime()+Z,I,d,Y,void 0,"_by")}; g.n.caS=function(){this.Wj.OV("SEEK_COMPLETE")}; g.n.O_4=function(){this.Wj.Rn("onAbnormalityDetected")}; g.n.Gv7=function(Z){this.Wj.Rn("onSnackbarMessage",Z)}; g.n.PQ4=function(Z){var I=this.l5(),d=I.getVideoData();if(this.appState===1||this.appState===2)d.startSeconds=Z;this.appState===2?g.b(I.getPlayerState(),512)||GF(this):this.Wj.OV("SEEK_TO",Z)}; g.n.Tns=function(){this.Wj.publish("airplayactivechange")}; g.n.VJs=function(){this.Wj.publish("airplayavailabilitychange")}; g.n.showAirplayPicker=function(){this.l5().N6()}; g.n.w$m=function(){this.Wj.publish("beginseeking")}; g.n.qn5=function(){this.Wj.publish("endseeking")}; g.n.getStoryboardFormat=function(Z){return(Z=this.Vt({playerType:Z}))?fK(this,Z).getStoryboardFormat():this.DU.L.getStoryboardFormat()}; g.n.x$=function(Z){return(Z=this.Vt({playerType:Z}))?fK(this,Z).getVideoData().x$():this.DU.L.x$()}; g.n.Z5=function(Z){Z=(Z||this.l5()).getVideoData();if(sD(this))Z=Z===this.Pg.playback.getVideoData();else a:{var I=this.FT;if(Z===I.L.getVideoData()&&I.D.length)Z=!0;else{I=g.t(I.D);for(var d=I.next();!d.done;d=I.next())if(Z.uQ===d.value.uQ){Z=!0;break a}Z=!1}}return Z}; g.n.ov=function(Z,I,d,Y,T,f,P,O){var a=sD(this);this.l5().D1("appattl",{sstm:this.Pg?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:a});a?(d=fhE(this.Pg,Z,I,d,Y,T,f,P,O),Z=(d==null?void 0:d.uQ)||"",(this.Y("html5_ssdai_new_decoration_logic")||this.vj().getVideoData().hL)&&this.vj().G8(O||"",I,(d==null?void 0:d.clientPlaybackNonce)||"")):Z=KUd(this.FT,Z,d,Y,T,f);return Z}; g.n.gL=function(Z,I,d,Y,T,f,P,O){if(sD(this)){var a;(a=this.Pg)==null||fhE(a,Z,I,d,Y,T,f,P,O)}}; g.n.rD=function(Z){(this.Y("html5_ssdai_new_decoration_logic")||this.vj().getVideoData().hL)&&this.vj().G8(Z,"","");var I;(I=this.Pg)==null||I.rD(Z)}; g.n.Tg=function(Z,I){Z=Z===void 0?-1:Z;I=I===void 0?Infinity:I;sD(this)||yau(this.FT,Z,I)}; g.n.vV=function(Z,I,d){if(sD(this)){var Y=this.Pg,T=Y.L.Vt({uQ:Z});T?(d===void 0&&(d=T.Mc),vtd(Y,T,I,d)):Y.r5("Invalid_timelinePlaybackId_"+Z+"_specified")}else{Y=this.FT;T=null;for(var f=g.t(Y.D),P=f.next();!P.done;P=f.next())if(P=P.value,P.uQ===Z){T=P;break}T?(d===void 0&&(d=T.Mc),U1E(Y,T,I,d)):Jp(Y,"InvalidTimelinePlaybackId timelinePlaybackId="+Z)}}; g.n.enqueueVideoByPlayerVars=function(Z,I,d,Y){d=d===void 0?Infinity:d;Y=Y===void 0?"":Y;this.Z5();Z=new g.DX(this.U,Z);Y&&(Z.uQ=Y);bB(this,Z,I,d)}; g.n.queueNextVideo=function(Z,I,d,Y,T){d=d===void 0?NaN:d;Z=this.preloadVideoByPlayerVars(Z,I===void 0?1:I,d,Y===void 0?"":Y,T===void 0?"":T);I=this.l5();Z&&(this.Y("html5_check_queue_on_data_loaded")?this.C().supportsGaplessShorts()&&I.getVideoData().V&&(d=this.qn,Y=this.VL.B,d.N!==Z&&(d.D=I,d.N=Z,d.Z=1,d.L=Z.getVideoData(),d.B=Y,d.L.isLoaded()?d.j():d.L.subscribe("dataloaded",d.j,d))):(d=C7a(I,Z,this.VL.B),d!=null?(I.D1("sgap",d),I.getVideoData().V&&I.pD(!1)):(Z=Z.getVideoData(),I=this.qn,I.L!== Z&&(I.L=Z,I.Z=1,Z.isLoaded()?I.V():I.L.subscribe("dataloaded",I.V,I)))))}; g.n.DC=function(Z,I,d,Y){var T=this;d=d===void 0?0:d;Y=Y===void 0?0:Y;fK(this,this.l5()).Et();GpB(this.VL,Z,I,d,Y).then(function(){T.Wj.Kj("onQueuedVideoLoaded")},function(){})}; g.n.m0=function(){return this.VL.m0()}; g.n.Ml=function(Z){var I=this.VL.L;return I?I.nP(Z):!1}; g.n.clearQueue=function(Z,I){this.VL.clearQueue(Z===void 0?!1:Z,I===void 0?!1:I)}; g.n.loadVideoByPlayerVars=function(Z,I,d,Y,T,f){I=I===void 0?1:I;var P=this.vj();if(I===2&&this.gz().enableServerStitchedDai&&P&&!P.PS())return P.D1("lvonss",{vid:(Z==null?void 0:Z.videoId)||"",ptype:I}),!1;var O=!1;P=new g.DX(this.U,Z);P.ir=f;g.Mw(this.U)&&!P.t_&&Xg(this.KM);var a;f=this.KM;var W=(a=P.LS)!=null?a:"";f.timerName=W;this.KM.DG("pl_i");this.Y("web_player_early_cpn")&&P.clientPlaybackNonce&&this.KM.infoGel({clientPlaybackNonce:P.clientPlaybackNonce});Qzr(P).supportsVp9Encoding===!1&& this.l5().D1("noVp9enc",{});if(this.C().supportsGaplessShorts()){a=Saa(this.VL,P,I);if(a==null){F5(this,-1);var e;((e=this.VL.L)==null?0:e.getVideoData().isAd())||u_(this);Z=this.VL;Z.app.C().Y("html5_gapless_new_slr")?gO(Z.app,"gaplessshortslooprange"):Z.app.setLoopRange(null);Z.app.getVideoData().iG=!0;var B;(B=Z.L)==null||B.V3();var w;(w=Z.L)==null||w.DI();d={H$:"gapless_to_next_video",seekSource:60,nO:Z.B.L};Y=g.Q4(Z.app.C().experiments,"html5_gapless_seek_offset");T=Yfi(Z);if(Z.B.L){var V;P= ((V=Z.Z)==null?void 0:Vc(V))||{};V=P.jR;P=P.IW;P!=null&&V!=null&&(T=P-V+.001)}var N;(N=Z.app.l5())==null||N.seekTo(T+Y,d);if(!Z.app.getPlayerStateObject(I).isPlaying()){var q;(q=Z.app.l5())==null||q.playVideo(!0)}var A;(A=Z.app.l5())==null||A.Wo();Z.V();return!0}N=this.Y("html5_shorts_gapless_preload_fallback");q=this.VL.L;N&&q&&!q.OZ()&&(A=q.getVideoData(),this.DU.V.set(Tw(I,A),q,3600));this.VL.clearQueue(N);this.l5().D1("sgap",{f:a})}if(T){for(;P.XY.length&&P.XY[0].isExpired();)P.XY.shift();N=P.XY.length- 1;O=N>0&&T.D(P.XY[N])&&T.D(P.XY[N-1]);P.XY.push(T)}d||(Z&&lc(Z)?(z9(this.U)&&!this.oL&&(Z.fetch=0),Oq(this,Z)):this.playlist&&Oq(this,null),Z&&(this.oL=U2(!1,Z.external_list)));this.Wj.publish("loadvideo");N=this.Q4(P,I,Y);O&&this.Ll("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+P.XY.join()).replace(/[;:,]/g,"_"));return N}; g.n.preloadVideoByPlayerVars=function(Z,I,d,Y,T){I=I===void 0?1:I;d=d===void 0?NaN:d;T=T===void 0?"":T;Y=I;var f=T,P=Wa(Z);if(Y=this.DU.V.get(Y+"_"+P+"_"+f+"_"+ +(Z.autonav==="1"||Z.autonav===!0)+ +(Z.autoplay==="1"||Z.autoplay===!0||Z.autoplay===1))||null)return Y;Z=new g.DX(this.U,Z);T&&(Z.uQ=T);T=Tw(I,Z);Y=this.l5();f=Tw(Y.getPlayerType(),Y.getVideoData());T===f?(Y.va(!0),Z.dispose(),d=null):(Z.zD=!0,Y=ER(this,I,Z,!0),(I!==1||!tO(this.U)||this.U.Y("html5_allow_multiview_tile_preload")&&Z.xd)&& Y.va(!0),this.DU.V.set(T,Y,d||3600),d=Y);return d}; g.n.setMinimized=function(Z){this.visibility.setMinimized(Z);(Z=IIB(this.cg))&&(this.isMinimized()?Z.load():Z.unload());this.Wj.publish("minimized")}; g.n.setInline=function(Z){this.visibility.setInline(Z)}; g.n.setInlinePreview=function(Z){this.visibility.setInline(Z)}; g.n.Ug=function(Z){t_n(this,Z)||this.visibility.Ug(Z)}; g.n.setSqueezeback=function(Z){this.visibility.setSqueezeback(Z)}; g.n.ek=function(){var Z,I=(Z=this.mediaElement)==null?void 0:Z.gK();I&&(this.U.kA&&Sr(Au(function(){return document.exitFullscreen()}),function(){}),Sr(Au(function(){return sl(I)}),function(){}))}; g.n.Xgm=function(){this.mediaElement.gK();this.mediaElement.gK().webkitPresentationMode==="picture-in-picture"?this.Ug(!0):this.Ug(!1)}; g.n.togglePictureInPicture=function(){this.l5().togglePictureInPicture()}; g.n.Q4=function(Z,I,d){var Y=this;I=I===void 0?1:I;H6("_start",this.KM.timerName)||g.t6(Wi)(void 0,this.KM.timerName);var T=!1,f=Ca(this,I,Z,!1);f?(T=!0,Z.dispose()):(f=ER(this,I,Z,!0,d),(this.Y("html5_onesie")||this.Y("html5_load_before_stop"))&&f.Oo()&&f.va(),this.Tl.stop(),I===1&&I!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,I),this.Pa(f));f===this.vj()&&(this.U.zD=Z.oauthToken);if(!f.Oo())return!1;if(f===this.vj()){this.bP(1);if(this.U.Y("html5_allow_multiview_tile_preload")&& T&&f.getVideoData().xd)return f.D1("app_lv",{pdl:f.fv()}),f.fv()?fzd(this,f):f.subscribe("internalvideodatachange",function(P){P==="dataloaded"&&fzd(Y,f)},this),!0; Z=GF(this);T&&this.Y("html5_player_preload_ad_fix")&&f.getPlayerType()===1&&f.fv()&&this.W3("dataloaded",f,f.getVideoData());return Z}f.UW();return!0}; g.n.cueVideoByPlayerVars=function(Z,I){var d=this;I=I===void 0?1:I;var Y=this.vj();if(this.gz().enableServerStitchedDai&&Y&&!Y.PS()&&Z&&Object.keys(Z).length>0)Y.D1("qvonss",{vid:(Z==null?void 0:Z.videoId)||"",ptype:I});else if(Z&&lc(Z))if(this.i7=!0,Oq(this,Z),(Z=g.jL(this.playlist))&&Z.FF())ix(this,Z,I);else this.playlist.onReady(function(){fg(d)}); else{I||(I=this.getPresentingPlayerType());I===1&&this.Yv();Y=new g.DX(this.U,Z);var T=g.Dh(this.U)&&!this.U.kS&&I===1&&!Y.isAd()&&!Y.Vf;this.Wj.publish("cuevideo");T?(this.l5().getVideoData().loading=!0,flu(Y,Z?Z:{}).then(function(f){ix(d,f,I)}),Y.dispose()):ix(this,Y,I)}}; g.n.LW=function(Z,I,d,Y,T,f,P){if(!Z&&!d)throw Error("Playback source is invalid");if(y8(this.U)||g.V4(this.U))return I=I||{},I.lact=YE(),I.vis=this.Wj.getVisibilityState(),this.Wj.Rn("onPlayVideo",{videoId:Z,watchEndpoint:f,sessionData:I,listId:d}),!1;oqr(this.KM);this.KM.reset();Z={video_id:Z};Y&&(Z.autoplay="1");Y&&(Z.autonav="1");f&&(Z.player_params=f.playerParams);P&&(Z.oauth_token=P);d?(Z.list=d,this.loadPlaylist(Z)):this.loadVideoByPlayerVars(Z,1);return!0}; g.n.cuePlaylist=function(Z,I,d,Y){this.i7=!0;PB7(this,Z,I,d,Y)}; g.n.loadPlaylist=function(Z,I,d,Y){this.i7=!1;PB7(this,Z,I,d,Y)}; g.n.uU=function(){return this.Wj.isMutedByMutedAutoplay()?!1:this.DU.OI?!0:!(!this.playlist||!this.playlist.wf())}; g.n.E4=vF(5); g.n.nextVideo=function(Z,I){var d=g.wi(this.vj().getVideoData());g.Bo(this.Wj)&&d?this.LW(d.videoId,I?d.fQ:d.sessionData,d.playlistId,I,void 0,d.HM||void 0):this.oL?this.Wj.Kj("onPlaylistNext"):this.getPresentingPlayerType()===3?IK(this.cg).nextVideo():!this.playlist||z9(this.U)&&!this.Wj.isFullscreen()||(this.playlist.wf(Z)&&Tu$(this.playlist,J3i(this.playlist)),this.playlist.loaded?(Z=I&&this.U.Y("html5_player_autonav_logging"),I&&this.Wj.publish("playlistautonextvideo"),this.Q4(g.jL(this.playlist,void 0, I,Z),1)):this.i7=!1)}; g.n.previousVideo=function(Z){this.oL?this.Wj.Kj("onPlaylistPrevious"):this.getPresentingPlayerType()===3?IK(this.cg).U5():!this.playlist||z9(this.U)&&!this.Wj.isFullscreen()||(this.playlist.xb(Z)&&Tu$(this.playlist,Rha(this.playlist)),this.playlist.loaded?this.Q4(g.jL(this.playlist),1):this.i7=!1)}; g.n.playVideoAt=function(Z){this.oL?this.Wj.Kj("onPlaylistIndex",Z):this.playlist&&(this.playlist.loaded?this.Q4(g.jL(this.playlist,Z),1):this.i7=!1,Tu$(this.playlist,Z))}; g.n.getPlaylist=function(){return this.playlist}; g.n.E$=vF(19);g.n.zl=function(Z){this.rZ=g.zG(this.rZ,function(f){return f.id!==Z}); for(var I=this.vj(),d=I.Rt(),Y=0;Y0&&(a=Math.floor(W/1E3))}a=I?I.QI:a;var e={AD_BLOCK:this.L++,AD_BREAK_LENGTH:a,AUTONAV_STATE:rq(this.player.C()),CA_TYPE:"image",CPN:O.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.T0()*1E3,LACT:YE(),LIVE_INDEX:I?this.Z++:1,LIVE_TARGETING_CONTEXT:I&&I.context?I.context:"",MIDROLL_POS:f? Math.round(f.start/1E3):0,MIDROLL_POS_MS:f?Math.round(f.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.cj().BJ().height,P_W:this.player.cj().BJ().width,YT_REMOTE:T?T.join(","):""},B=LR(gy);Object.keys(B).forEach(function(V){B[V]!=null&&(e[V.toUpperCase()]=B[V].toString())}); d!==""&&(e.BISCOTTI_ID=d);d={};t_(Z)&&(d.sts="20360",(I=this.player.C().forcedExperiments)&&(d.forced_experiments=I));var w=U4(g.yg(Z,e),d);return w.split("?").length!==2?ZD(Error("Invalid AdBreakInfo URL")):g.NF(this.player.C(),O==null?void 0:O.oauthToken).then(function(V){if(V&&Vz()){var N=lF();E3(N,V)}V=Y.player.NA(N);N=kGn(Y,w,e,O.isMdxPlayback,P);return g.L9(V,N,"/youtubei/v1/player/ad_break").then(function(q){return q})})}; M7.prototype.reset=function(){this.Z=this.L=1};g.U(zYi,M7); zYi.prototype.D=function(Z,I,d){I=I===void 0?{}:I;var Y=I.wm;var T=I.HO;var f=I.cueProcessedMs;d=d===void 0?"":d;I=this.L;this.L++;var P=this.player.C().Y("h5_disable_macro_substitution_in_get_ad_break")?Z:Be7(this,Z,{wm:Y,HO:T,cueProcessedMs:f},d,I);if(P.split("?").length!==2)return Math.random()<.1&&g.uL(Error("Invalid AdBreakInfo URL")),ZD(Error("Invalid AdBreakInfo URL"));var O=this.player.getVideoData(1).isMdxPlayback,a=d;d=Jn7.exec(P);d=d!=null&&d.length>=2?d[1]:"";Z=RWD.test(P);var W=LO$.exec(P); W=W!=null&&W.length>=2?W[1]:"";var e=Uxu.exec(P);e=e!=null&&e.length>=2&&!Number.isNaN(Number(e[1]))?Number(e[1]):1;var B=ynD.exec(P);B=B!=null&&B.length>=2?B[1]:"0";var w=Mi(this.player.C().UI),V=g.p9(this.player.getVideoData(1).kS,!0);vEn(this,V,P,a===""?"":a,this.player.C(),this.player.getVideoData(1));a={splay:!1,lactMilliseconds:String(YE()),playerHeightPixels:Math.trunc(this.player.cj().BJ().height),playerWidthPixels:Math.trunc(this.player.cj().BJ().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20360,autonavState:rq(this.player.C())};if(O){O={};var N=this.player.C().Qx;l0n(O,N?N.join(","):"")&&(a.mdxContext=O)}if(O=ufa.includes(w)?void 0:g.Zc("PREF")){N=O.split(RegExp("[:&]"));for(var q=0,A=N.length;q1&&F[1].toUpperCase()==="TRUE"){V.user.lockedSafetyMode=!0;break}}a.autoCaptionsDefaultOn=GGL(O)}P=zWr.exec(P);(P=P!=null&&P.length>=2?P[1]:"")&&W&&(V.user.credentialTransferTokens= [{token:P,scope:"VIDEO"}]);P={contentPlaybackContext:a};a=this.player.getVideoData(1).getGetAdBreakContext();O=this.player.getVideoData(1).clientPlaybackNonce;N=f!==void 0?Math.round(f).toString():void 0;q=(Y==null?0:Y.context)?Y.context:void 0;A=0;f&&T&&!Y&&(T=T.end-T.start,T>0&&(A=Math.floor(T/1E3)));Y=(Y=Math.trunc((Y?Y.QI:A)*1E3))?String(Y):void 0;T=this.player.T0()*1E3;T=Number.isNaN(T)?0:Math.trunc(T);I={adBlock:I,params:d,breakIndex:e,breakPositionMs:B,clientPlaybackNonce:O,topLevelDomain:w, isProxyAdTagRequest:Z,context:V,overridePlaybackContext:P,cueProcessedMs:N,videoId:W?W:void 0,liveTargetingParams:q,breakLengthMs:Y,driftFromHeadMs:T?String(T):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:a?a:void 0};return LTB(this,I)};var avE={au7:"replaceUrlMacros",wT5:"onAboutThisAdPopupClosed",jK1:"executeCommand"};Pn.prototype.sG=function(){return"adPingingEndpoint"}; Pn.prototype.vu=function(Z,I,d){yii(this.Q5.get(),Z,I,d)};EXn.prototype.sG=function(){return"changeEngagementPanelVisibilityAction"}; EXn.prototype.vu=function(Z){this.S.Rn("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:Z})};bWO.prototype.sG=function(){return"loggingUrls"}; bWO.prototype.vu=function(Z,I,d){Z=g.t(Z);for(var Y=Z.next();!Y.done;Y=Z.next())Y=Y.value,yii(this.Q5.get(),Y.baseUrl,I,d,Y.attributionSrcMode)};g.U(pcD,g.p);g.U(DE,g.p);g.n=DE.prototype;g.n.addListener=function(Z){this.listeners.push(Z)}; g.n.removeListener=function(Z){this.listeners=this.listeners.filter(function(I){return I!==Z})}; g.n.cB=function(Z,I,d,Y,T,f,P,O){if(Z==="")Zv("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(Z!==this.L||d){this.L=Z;this.S7.get().cB(Z,I,d,Y,T,f,P,O);this.V5.get().cB(Z,I,d,Y,T,f,P,O);var a;(a=this.sP)==null||a.get().cB(Z,I,d,Y,T,f,P,O);this.D.cB(Z,I,d,Y,T,f,P,O);a=g.t(this.listeners);for(var W=a.next();!W.done;W=a.next())W.value.cB(Z,I,d,Y,T,f,P,O)}else Zv("Duplicate content video loaded signal")}; g.n.hF5=function(){this.L&&this.rP(this.L)}; g.n.rP=function(Z){this.L=void 0;for(var I=g.t(this.listeners),d=I.next();!d.done;d=I.next())d.value.rP(Z)};Pb.prototype.fB=function(Z,I,d,Y,T){KAE(this);this.B=!I&&d===0;var f=this.S.getVideoData(1),P=this.S.getVideoData(2);f&&(this.contentCpn=f.clientPlaybackNonce,this.videoId=f.videoId,this.L=f.j);P&&(this.adCpn=P.clientPlaybackNonce,this.adVideoId=P.videoId,this.adFormat=P.adFormat);this.N=Z;Y<=0?(KAE(this),this.B=!I&&d===0):(this.actionType=this.B?I?"unknown_type":"video_to_ad":I?"ad_to_video":"ad_to_ad",this.videoStreamType=T?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.Z=!0,H6("_start",this.actionType)&&kcn(this)))}; Pb.prototype.reset=function(){return new Pb(this.S)};g.U(QX,g.p);QX.prototype.addCueRange=function(Z,I,d,Y,T,f,P,O,a){f=f===void 0?3:f;P=P===void 0?1:P;this.L.has(Z)?Zv("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:Z}):(Z=new Zhl(Z,I,d,Y,f,O,a),this.L.set(Z.id,{HO:Z,listener:T,jO:P}),this.S.eM([Z],P))}; QX.prototype.removeCueRange=function(Z){var I=this.L.get(Z);I?(this.S.vB([I.HO],I.jO),this.L.delete(I.HO.id)):Zv("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:Z})}; QX.prototype.onCueRangeEnter=function(Z){if(this.L.has(Z.id))this.L.get(Z.id).listener.onCueRangeEnter(Z.id)}; QX.prototype.onCueRangeExit=function(Z){if(this.L.has(Z.id))this.L.get(Z.id).listener.onCueRangeExit(Z.id)}; g.U(Zhl,g.S8);Oz.prototype.addPlayerResponseForAssociation=function(Z){this.S.addPlayerResponseForAssociation(Z)};aV.prototype.l$=function(Z){this.S.l$(Z)}; aV.prototype.CK=function(Z){var I=g.vj.apply(1,arguments);Z==="onAdStart"||Z==="onAdEnd"?this.S.OV.apply(this.S,[Z].concat(g.c(I))):this.S.Rn.apply(this.S,[Z].concat(g.c(I)))};Wb.prototype.fN=function(Z){return Z&&TQ(this)};var CH=null;g.U(Eg,g.dx);Eg.prototype.cX=function(Z){return this.L.hasOwnProperty(Z)?this.L[Z].cX():{}}; g.zb("ytads.bulleit.getVideoMetadata",function(Z){return S5().cX(Z)}); g.zb("ytads.bulleit.triggerExternalActivityEvent",function(Z,I,d){var Y=S5();d=koD(d);d!==null&&Y.publish(d,{queryId:Z,viewabilityString:I})});g.n=AN.prototype;g.n.vO=function(Z,I){if(!this.L.has(Z))return{};if(I==="seek"){I=!1;I=I===void 0?!1:I;var d=lz(uz).C5(Z,{});d?Wh(d):I&&(Z=lz(uz).b$(null,vG(),!1,Z),Z.H3=3,lhD([Z]));return{}}I=oCW(I);if(I===null)return{};var Y=this.S.pJ();if(!Y)return{};var T=this.S.getPresentingPlayerType(!0);if((d=this.S.getVideoData(T))==null||!d.isAd())return{};d={opt_adElement:Y,opt_fullscreen:this.S7.get().isFullscreen()};return D5$(I,Z,d)}; g.n.QD=function(Z,I,d,Y,T){this.L.has(Z)&&(Y<=0||T<=0||lz(uz).QD(Z,I,d,Y,T))}; g.n.Gr=function(Z){var I;(I=this.L.get(Z.queryId))==null||I.Gr()}; g.n.eE=function(Z){var I;(I=this.L.get(Z.queryId))==null||I.eE()}; g.n.yO=function(Z){var I;(I=this.L.get(Z.queryId))==null||I.yO()}; g.n.cF=function(Z){var I;(I=this.L.get(Z.queryId))==null||I.cF()}; g.n.PF=function(Z){var I;(I=this.L.get(Z.queryId))==null||I.PF()};ryd.prototype.send=function(Z,I,d,Y){try{e9l(this,Z,I,d,Y===void 0?!1:Y)}catch(T){}};g.U(sY$,ryd);dd7.prototype.send=function(Z,I,d,Y){var T=!1;try{if(Y==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||Y==="ATTRIBUTION_SRC_MODE_XHR_OPTION")T=!0,Z=pe$(Z);Y=T;var f=g.gB(Z);if(f[1]==="https")var P=Z;else f[1]="https",P=Md("https",f[2],f[3],f[4],f[5],f[6],f[7]);var O=E7d(P);f=[];var a=m2E(P)&&this.Ms.get().S.C().experiments.CS("add_auth_headers_to_remarketing_google_dot_com_ping");if(t_(P)||a)f.push({headerType:"USER_AUTH"}),f.push({headerType:"PLUS_PAGE_ID"}),f.push({headerType:"VISITOR_ID"}),f.push({headerType:"EOM_VISITOR_ID"}), f.push({headerType:"AUTH_USER"}),f.push({headerType:"DATASYNC_ID"});this.L.send({baseUrl:P,scrubReferrer:O,headers:f},I,d,Y)}catch(W){}};SO.prototype.fl=function(){return this.S.fl(1)};g.U(VX,g.p);g.n=VX.prototype;g.n.OF=function(){return this.S.getVideoData(1).clientPlaybackNonce}; g.n.addListener=function(Z){this.listeners.push(Z)}; g.n.removeListener=function(Z){this.listeners=this.listeners.filter(function(I){return I!==Z})}; g.n.cB=function(){this.d9.clear();this.aj=null;this.Li.get().clear()}; g.n.rP=function(){}; g.n.Ly5=function(Z,I,d,Y,T){I.videoId==="nPpU29QrbiU"&&this.S.D1("ads_ssm_vdc_s",{pt:d,dvt:Z});Mq(this.Ms.get())&&Z!=="dataloaded"||FAJ(this,I,d);if(TQ(this.Ms.get())&&Z==="newdata"&&T!==void 0){Z=this.OF();var f=I.clientPlaybackNonce,P={};kL(this,"rte",(P.ec=f,P.xc=Y==null?void 0:Y.clientPlaybackNonce,P.tr=T,P.pt=d,P.ia=f!==Z,P.ctp=Xc(f),P));I=I.clientPlaybackNonce;Y=Y==null?void 0:Y.clientPlaybackNonce;T=h8a(T);if(T!==1)if(Y!==void 0)for(d=g.t(this.listeners),Z=d.next();!Z.done;Z=d.next())Z.value.gq(Y, I,T);else Zv("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:I,transitionReason:String(T)});T=g.t(this.listeners);for(Y=T.next();!Y.done;Y=T.next())Y.value.Zv(I)}}; g.n.lAS=function(Z,I){Z!==void 0&&(this.aj=Z,I===void 0?Zv("Expected ad video start time on SS video changed"):this.d9.set(Z,I));var d=this.S.getPresentingPlayerType(!0),Y=this.S.getVideoData(d),T;Z===void 0?T=null:T=this.Li.get().L.get(Z)||null;this.S.getVideoData(1).D1("ads_ssvc",{pt:d,cpn:Y==null?void 0:Y.clientPlaybackNonce,crtt:this.S.getCurrentTime(1,!1),atlh:this.S.isAtLiveHead(),adstt:I,pid:Z,slid:T==null?void 0:T.layoutId});Y?FAJ(this,Y,d):Zv("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.S.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:Z})}; g.n.iC=function(Z,I){var d=Z.author,Y=Z.clientPlaybackNonce,T=Z.isListed,f=Z.uQ,P=Z.title,O=Z.SI,a=Z.yJ,W=Z.isMdxPlayback,e=Z.IU,B=Z.mdxEnvironment,w=Z.isAutonav,V=Z.yX,N=Z.t_,q=Z.zT,A=Z.videoId||"",F=Z.profilePicture||"",J=Z.vl||"",v=Z.Zt()||!1,l=Z.YF()||!1;Z=Z.yT||void 0;f=this.Li.get().L.get(f)||{layoutId:null,slotId:null};var X=this.S.getVideoData(1),H=X.Qy();X=X.getPlayerResponse();I=1E3*this.S.getDuration(I);var x=1E3*this.S.getDuration(1),Id,TB,dD=(X==null?void 0:(Id=X.playerConfig)==null? void 0:(TB=Id.daiConfig)==null?void 0:TB.enableDai)||!1,Qu,Zr;Id=(X==null?void 0:(Qu=X.playerConfig)==null?void 0:(Zr=Qu.daiConfig)==null?void 0:Zr.enablePreroll)||!1;return Object.assign({},f,{videoId:A,author:d,clientPlaybackNonce:Y,Hs:I,rb:x,daiEnabled:dD,TY:Id,isListed:T,Qy:H,profilePicture:F,title:P,vl:J,SI:O,yJ:a,yT:Z,isMdxPlayback:W,IU:e,mdxEnvironment:B,isAutonav:w,yX:V,t_:N,zT:q,Zt:v,YF:l})}; g.n.g4=function(){this.listeners.length=0;this.qP=null;g.p.prototype.g4.call(this)};g.U(nZ,g.p);g.n=nZ.prototype;g.n.cB=function(){var Z=this;TQ(this.Ms.get())||(this.L=or(function(){Z.S.OZ()||Z.S.b4("ad",1)}))}; g.n.rP=function(){}; g.n.addListener=function(Z){this.listeners.push(Z)}; g.n.removeListener=function(Z){this.listeners=this.listeners.filter(function(I){return I!==Z})}; g.n.gY=function(){}; g.n.playVideo=function(){this.S.playVideo()}; g.n.pauseVideo=function(){this.S.pauseVideo()}; g.n.resumeVideo=function(Z){this.y8(Z)&&this.S.playVideo()}; g.n.y8=function(Z){return this.S.getPlayerState(Z)===2}; g.n.getCurrentTimeSec=function(Z,I,d){var Y=this.V5.get().aj;if(Z===2&&!I&&Y!==null)return IW(this,Y);fH(this.Ms.get(),"html5_ssap_use_cpn_to_get_time")||(d=void 0);return d!==void 0?this.S.getCurrentTime(Z,I,d):this.S.getCurrentTime(Z,I)}; g.n.getVolume=function(){return this.S.getVolume()}; g.n.isMuted=function(){return this.S.isMuted()}; g.n.getPresentingPlayerType=function(){return this.S.getPresentingPlayerType(!0)}; g.n.getPlayerState=function(Z){return this.S.getPlayerState(Z)}; g.n.getGetAdBreakContext=function(){return this.S.getGetAdBreakContext()}; g.n.isFullscreen=function(){return this.S.isFullscreen()}; g.n.isAtLiveHead=function(){return this.S.isAtLiveHead()}; g.n.pZ=function(Z){this.S.pZ(Z)}; g.n.MM4=function(){var Z=this.S.getPresentingPlayerType(!0),I=this.getCurrentTimeSec(Z,!1);if(Z===2){Z=g.t(this.listeners);for(var d=Z.next();!d.done;d=Z.next())d.value.C6(I)}else if(Z===1)for(Z=g.t(this.hx),d=Z.next();!d.done;d=Z.next())d.value.gY(I)}; g.n.Rx5=function(Z){for(var I=g.t(this.listeners),d=I.next();!d.done;d=I.next())d.value.Xi(Z,this.getPresentingPlayerType())}; g.n.onFullscreenToggled=function(Z){for(var I=g.t(this.listeners),d=I.next();!d.done;d=I.next())d.value.onFullscreenToggled(Z)}; g.n.onVolumeChange=function(){for(var Z=g.t(this.listeners),I=Z.next();!I.done;I=Z.next())I.value.onVolumeChange()}; g.n.jF=function(){for(var Z=this.S.isMinimized(),I=g.t(this.listeners),d=I.next();!d.done;d=I.next())d.value.jF(Z)}; g.n.PB=function(Z){for(var I=g.t(this.listeners),d=I.next();!d.done;d=I.next())d.value.PB(Z)}; g.n.CM=function(){for(var Z=this.S.cj().BJ(),I=g.t(this.listeners),d=I.next();!d.done;d=I.next())d.value.Nk(Z)}; g.n.Cw=function(Z){for(var I=g.t(this.listeners),d=I.next();!d.done;d=I.next())d.value.Cw(Z)}; g.n.GJ=function(){for(var Z=g.t(this.listeners),I=Z.next();!I.done;I=Z.next())I.value.GJ()};g.U(pQu,g.p);g.U(CK,g.p);CK.prototype.g4=function(){this.vS.OZ()||this.vS.get().removeListener(this);g.p.prototype.g4.call(this)};eO.prototype.fetch=function(Z){var I=Z.P4;return this.L.fetch(Z.yr,{wm:Z.wm===void 0?void 0:Z.wm,HO:I,cueProcessedMs:Z.cueProcessedMs===void 0?0:Z.cueProcessedMs}).then(function(d){return kt$(d,I)})};g.U(ie,g.p);g.n=ie.prototype;g.n.addListener=function(Z){this.listeners.push(Z)}; g.n.removeListener=function(Z){this.listeners=this.listeners.filter(function(I){return I!==Z})}; g.n.p7=function(Z){VA7(this,Z,1)}; g.n.onAdUxClicked=function(Z,I){Ed(this,function(d){d.D5(Z,I)})}; g.n.I_=function(Z){Ed(this,function(I){I.Ok(Z)})}; g.n.tp=function(Z){Ed(this,function(I){I.jY(Z)})}; g.n.glm=function(Z){Ed(this,function(I){I.bN(Z)})};sW.prototype.reduce=function(Z){switch(Z.event){case "unknown":return}var I=Z.identifier;var d=this.L[I];d?I=d:(d={IH:null,P9:-Infinity},I=this.L[I]=d);d=Z.startSecs+Z.L/1E3;if(!(d=this.L.startSecs&&d.startSecs<=this.L.startSecs+this.L.QI)){var Y=void 0;if(vr(this.Ms.get())&&d.identifier!==((Y=this.L)==null?void 0:Y.identifier)){var T=Y=void 0,f=void 0,P=void 0;J1(this.Q5.get(),"ocud","ccpi."+d.identifier+";ccpe."+d.event+";ccps."+d.startSecs+";\n ccpd."+d.QI+";pcpi."+((Y=this.L)==null?void 0:Y.identifier)+ ";pcpe."+((T=this.L)==null?void 0:T.event)+";\n pcps."+((f=this.L)==null?void 0:f.startSecs)+";pcpd."+((P=this.L)==null?void 0:P.QI)+";")}Y=void 0;d.identifier!==((Y=this.L)==null?void 0:Y.identifier)&&Zv("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.L=d,CML(this,d)}}; g.n.g4=function(){this.D!=null&&(this.D.unsubscribe("cuepointupdated",this.NF,this),this.D=null);this.listeners.length=0;this.N1.length=0;g.p.prototype.g4.call(this)};g.n=sz.prototype;g.n.ov=function(Z,I,d,Y,T,f,P,O){return this.S.ov(Z,I,d,Y,T,f,P,O)}; g.n.Tg=function(Z,I){this.S.Tg(Z,I)}; g.n.vV=function(Z,I,d){this.S.vV(Z,I,d)}; g.n.rD=function(Z){this.S.rD(Z)}; g.n.gL=function(Z,I,d,Y,T,f,P,O){this.S.gL(Z,I,d,Y,T,f,P,O)}; g.n.GL=function(Z){return this.S.GL(Z)}; g.n.finishSegmentByCpn=function(Z,I,d){d=cal(d);this.S.finishSegmentByCpn(Z,I,d)};g.U(hI,g.p);g.U(S$n,g.p);g.U(pfd,g.p);g.U(x4u,g.p);g.U(kfJ,g.p);g.U(cOJ,g.p);g.U(f$u,g.p);f$u.prototype.Z=function(){return this.D};g.U(DYD,D8); DYD.prototype.Z=function(Z){var I=Z.content;if(I.componentType==="shopping-companion")switch(Z.actionType){case 1:case 2:Z=this.L.getVideoData(1);this.L.Rn("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId,shoppingCompanionCarouselRenderer:I.renderer,layoutId:I.layoutId,macros:I.macros,onLayoutVisibleCallback:I.L,interactionLoggingClientData:I.interactionLoggingClientData});break;case 3:this.L.Rn("updateKevlarOrC3Companion",{})}else if(I.componentType==="action-companion")switch(Z.actionType){case 1:case 2:Z=this.L.getVideoData(1); this.L.Rn("updateKevlarOrC3Companion",{contentVideoId:Z&&Z.videoId,actionCompanionAdRenderer:I.renderer,layoutId:I.layoutId,macros:I.macros,onLayoutVisibleCallback:I.L,interactionLoggingClientData:I.interactionLoggingClientData});break;case 3:I.renderer&&(I=this.L.getVideoData(1),this.L.Rn("updateKevlarOrC3Companion",{contentVideoId:I&&I.videoId})),this.L.Rn("updateKevlarOrC3Companion",{})}else if(I.componentType==="image-companion")switch(Z.actionType){case 1:case 2:Z=this.L.getVideoData(1);this.L.Rn("updateKevlarOrC3Companion", {contentVideoId:Z&&Z.videoId,imageCompanionAdRenderer:I.renderer,layoutId:I.layoutId,macros:I.macros,onLayoutVisibleCallback:I.L,interactionLoggingClientData:I.interactionLoggingClientData});break;case 3:I=this.L.getVideoData(1),this.L.Rn("updateKevlarOrC3Companion",{contentVideoId:I&&I.videoId}),this.L.Rn("updateKevlarOrC3Companion",{})}else if(I.componentType==="top-banner-image-text-icon-buttoned")switch(Z.actionType){case 1:case 2:Z=this.L.getVideoData(1);this.L.Rn("updateKevlarOrC3Companion", {contentVideoId:Z&&Z.videoId,topBannerImageTextIconButtonedLayoutViewModel:I.renderer,layoutId:I.layoutId,macros:I.macros,onLayoutVisibleCallback:I.L,interactionLoggingClientData:I.interactionLoggingClientData});break;case 3:I.renderer&&(I=this.L.getVideoData(1),this.L.Rn("updateKevlarOrC3Companion",{contentVideoId:I&&I.videoId})),this.L.Rn("updateKevlarOrC3Companion",{})}else if(I.componentType==="banner-image")switch(Z.actionType){case 1:case 2:Z=this.L.getVideoData(1);this.L.Rn("updateKevlarOrC3Companion", {contentVideoId:Z&&Z.videoId,bannerImageLayoutViewModel:I.renderer,layoutId:I.layoutId,macros:I.macros,onLayoutVisibleCallback:I.L,interactionLoggingClientData:I.interactionLoggingClientData});break;case 3:I=this.L.getVideoData(1),this.L.Rn("updateKevlarOrC3Companion",{contentVideoId:I&&I.videoId}),this.L.Rn("updateKevlarOrC3Companion",{})}else if(I.componentType==="ads-engagement-panel")switch(I=I.renderer,Z.actionType){case 1:case 2:this.L.Rn("updateEngagementPanelAction",I.addAction);this.L.Rn("changeEngagementPanelVisibility", I.expandAction);break;case 3:this.L.Rn("changeEngagementPanelVisibility",I.hideAction),this.L.Rn("updateEngagementPanelAction",I.removeAction)}else if(I.componentType==="ads-engagement-panel-layout"){var d=I.renderer;switch(Z.actionType){case 1:case 2:this.L.Rn("updateEngagementPanelAction",{action:q$(d.addAction),layoutId:I.layoutId,onLayoutVisibleCallback:I.L,interactionLoggingClientData:I.interactionLoggingClientData});this.L.Rn("changeEngagementPanelVisibility",q$(d.expandAction));break;case 3:this.L.Rn("changeEngagementPanelVisibility", q$(d.hideAction)),this.L.Rn("updateEngagementPanelAction",{action:q$(d.removeAction)})}}};g.U(Ba,J_);g.n=Ba.prototype;g.n.init=function(Z,I,d){J_.prototype.init.call(this,Z,I,d);g.K2(this.Z,"stroke-dasharray","0 "+this.D);this.Z.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.B.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.N.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.n.clear=function(){this.hide()}; g.n.hide=function(){lR(this);J_.prototype.hide.call(this)}; g.n.show=function(){Jv(this);J_.prototype.show.call(this)}; g.n.dP=function(){this.hide()}; g.n.df=function(){if(this.L){var Z=this.L.getProgressState();Z!=null&&Z.current!=null&&g.K2(this.Z,"stroke-dasharray",Z.current/Z.seekableEnd*this.D+" "+this.D)}};g.U(gd,kw);g.n=gd.prototype; g.n.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);if(I.image&&I.image.thumbnail)if(I.headline)if(I.description)if(I.backgroundImage&&I.backgroundImage.thumbnail)if(I.actionButton&&g.y(I.actionButton,g.Ji))if(Z=I.durationMilliseconds||0,typeof Z!=="number"||Z<=0)g.nl(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+Z));else if(I.navigationEndpoint){var Y=this.api.getVideoData(2);if(Y!=null){var T=I.image.thumbnail.thumbnails;T!=null&& T.length>0&&g.Hw(g.Fp(T[0].url))&&(T[0].url=Y.profilePicture,g.Hw(g.Fp(Y.profilePicture))&&LED("VideoPlayer",239976093,"Expected non-empty profile picture."));T=I.backgroundImage.thumbnail.thumbnails;T!=null&&T.length>0&&g.Hw(g.Fp(T[0].url))&&(T[0].url=Y.uT());T=I.headline;T!=null&&g.Hw(g.Fp(T.text))&&(T.text=Y.author)}this.X.init(Ai("ad-image"),I.image,d);this.B.init(Ai("ad-text"),I.headline,d);this.Z.init(Ai("ad-text"),I.description,d);this.w4.init(Ai("ad-image"),I.backgroundImage,d);Y=["ytp-ad-action-interstitial-action-button", "ytp-ad-action-interstitial-action-button-rounded"];this.slot.classList.add("ytp-ad-action-interstitial-slot-dark-background");this.B.element.classList.add("ytp-ad-action-interstitial-headline-light");this.Z.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.C().Y("enable_default_mono_cta_migration_web_client")?Y.push("ytp-ad-action-interstitial-action-button-mono-dark"):Y.push("ytp-ad-action-interstitial-action-button-dark");this.api.C().D&&(Y.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.C().Y("enable_default_mono_cta_migration_web_client")?Y.push("ytp-ad-action-interstitial-action-button-mono-dark"):Y.push("ytp-ad-action-interstitial-action-button-dark"));this.api.C().Y("enable_unified_action_endcap_on_web")&&!this.api.C().D&&(this.api.C().Y("enable_default_mono_cta_migration_web_client")?Y.push("ytp-ad-action-interstitial-action-button-unified-mono"):Y.push("ytp-ad-action-interstitial-action-button-unified"),this.on.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.X.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.d4.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.qI.classList.add("ytp-ad-action-interstitial-card-unified"),this.kS.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.Z.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.fS.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.B.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.mJ.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.Tm.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new HK(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,Y);g.z(this,this.actionButton);this.actionButton.i5(this.on);this.actionButton.init(Ai("button"),g.y(I.actionButton,g.Ji),d);xo(this.actionButton.element);Y=Xuu(this.actionButton.element);Nf(this.actionButton.element, Y+" This link opens in new tab");this.navigationEndpoint=I.navigationEndpoint;this.N.W(this.mJ,"click",this.BX,this);this.N.W(this.kS,"click",this.BX,this);this.api.C().D||this.N.W(this.fS,"click",this.BX,this);this.L=this.gi?new Bp(this.api,Z):new MY(Z);g.z(this,this.L);if(I.skipButton){(Z=g.y(I.skipButton,JBi))&&this.L&&(this.skipButton=new Mf(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.L,this.Gl),g.z(this,this.skipButton),this.skipButton.i5(this.element),this.skipButton.init(Ai("skip-button"), Z,d));if(d=I.adBadgeRenderer)if(d=g.y(d,DpL))Z=new qS(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,!0,!0),Z.i5(this.Tm),Z.init(Ai("simple-ad-badge"),d,this.macros),g.z(this,Z);if(d=I.adInfoRenderer)if(d=g.y(d,NE))Z=new qE(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.element,void 0,!0),Z.i5(this.Tm),Z.init(Ai("ad-info-hover-text-button"),d,this.macros),g.z(this,Z)}else I.nonskippableOverlayRenderer&&(Z=g.y(I.nonskippableOverlayRenderer,kF))&&this.L&&(this.D= new kY(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.L,!1),g.z(this,this.D),this.D.i5(this.element),this.D.init(Ai("ad-preview"),Z,d));I.countdownRenderer&&(I=I.countdownRenderer,g.y(I,Rgt)&&this.L&&(d=new Ba(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.L),g.z(this,d),d.i5(this.element),d.init(Ai("timed-pie-countdown"),g.y(I,Rgt),this.macros)));this.show();this.element.focus()}else g.nl(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.nl(Error("AdActionInterstitialRenderer has no button."));else g.nl(Error("AdActionInterstitialRenderer has no background AdImage."));else g.nl(Error("AdActionInterstitialRenderer has no description AdText."));else g.nl(Error("AdActionInterstitialRenderer has no headline AdText."));else g.nl(Error("AdActionInterstitialRenderer has no image."))}; g.n.clear=function(){g.aL(this.N);this.hide()}; g.n.show=function(){akD(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.D&&this.D.show();kw.prototype.show.call(this)}; g.n.hide=function(){akD(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.D&&this.D.hide();kw.prototype.hide.call(this)}; g.n.BX=function(){this.navigationEndpoint&&(this.layoutId?this.Hj.executeCommand(this.navigationEndpoint,this.layoutId):g.nl(Error("Missing layoutId for ad action interstitial.")))};var HW={iconType:"CLOSE"},$4=new g.qv(320,63);g.U(cr,kw);g.n=cr.prototype; g.n.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);this.N=I;this.X=g.FZ(this.N.onClickCommands||[]);this.Tm=this.N.onErrorCommand||null;if(Z=this.N.contentSupportedRenderer)Z=this.N.contentSupportedRenderer,I=this.N.adInfoRenderer||null,g.y(Z,qip)?(this.B=g.hi("ytp-ad-overlay-ad-info-button-container",this.Z.element),GB(this,I),Z=rVJ(this,g.y(Z,qip))):g.y(Z,Si0)?(this.B=g.hi("ytp-ad-overlay-ad-info-button-container",this.D.element),GB(this,I),Z=fLa(this,g.y(Z,Si0))):g.y(Z,ABL)?(this.B=g.hi("ytp-ad-overlay-ad-info-button-container", this.L.element),GB(this,I),Z=bvu(this,g.y(Z,ABL))):(g.nl(Error("InvideoOverlayAdRenderer content could not be initialized.")),Z=!1);Z&&(this.show(),YSB(this,!0))}; g.n.clear=function(){YSB(this,!1);this.mJ.reset();this.kS=0;this.Z.hide();this.logVisibility(this.Z.element,!1);this.D.hide();this.logVisibility(this.D.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.hide();this.dispose()}; g.n.bj4=function(){this.on&&(this.layoutId?this.Hj.executeCommand(this.on,this.layoutId):g.nl(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.n.Go=function(){a:{if(this.N&&this.N.closeButton&&this.N.closeButton.buttonRenderer){var Z=this.N.closeButton.buttonRenderer;if(Z.serviceEndpoint){Z=[Z.serviceEndpoint];break a}}Z=[]}Z=g.t(Z);for(var I=Z.next();!I.done;I=Z.next())I=I.value,this.layoutId?this.Hj.executeCommand(I,this.layoutId):g.nl(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.n.kbS=function(){this.w4||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.n.wY=function(){this.w4||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.wY("invideo-overlay")}; g.n.ZM5=function(Z){Z.target===this.B&&g.hi("ytp-ad-button",this.d4.element).click()};g.U(c4$,J_);g.n=c4$.prototype;g.n.init=function(Z,I,d){J_.prototype.init.call(this,Z,I,d);Z=I.durationMs;this.Z=Z==null||Z===0?0:Z+this.L.getProgressState().current*1E3;if(I.text)var Y=I.text.templatedAdText;else I.staticMessage&&(Y=I.staticMessage);this.messageText.init(Ai("ad-text"),Y,d);this.messageText.i5(this.D.element);this.N.show(100);this.show()}; g.n.clear=function(){this.hide()}; g.n.hide=function(){k$B(this,!1);J_.prototype.hide.call(this);this.D.hide();this.messageText.hide();lR(this)}; g.n.show=function(){k$B(this,!0);J_.prototype.show.call(this);Jv(this);this.D.show();this.messageText.show()}; g.n.dP=function(){this.hide()}; g.n.df=function(){if(this.L!=null){var Z=this.L.getProgressState();Z!=null&&Z.current!=null&&(Z=1E3*Z.current,!this.kS&&Z>=this.Z?(this.N.hide(),this.kS=!0):this.messageText&&this.messageText.isTemplated()&&(Z=Math.max(0,Math.ceil((this.Z-Z)/1E3)),Z!==this.B&&(NW(this.messageText,{TIME_REMAINING:String(Z)}),this.B=Z)))}};g.U(IK9,kw);g.n=IK9.prototype; g.n.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,{});I.image&&I.image.thumbnail?I.headline?I.description?I.actionButton&&g.y(I.actionButton,g.Ji)?(this.Z.init(Ai("ad-image"),I.image,d),this.D.init(Ai("ad-text"),I.headline,d),this.N.init(Ai("ad-text"),I.description,d),this.actionButton=new HK(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,["ytp-ad-underlay-action-button"]),I.backgroundColor&&g.K2(this.element,"background-color",g.ba(I.backgroundColor)),g.z(this,this.actionButton), this.actionButton.i5(this.B),this.actionButton.init(Ai("button"),g.y(I.actionButton,g.Ji),d),Z=g.Q4(this.api.C().experiments,"player_underlay_video_width_fraction"),this.api.C().Y("place_shrunken_video_on_left_of_player")?(I=this.L,g.KF(I,"ytp-ad-underlay-left-container"),g.xw(I,"ytp-ad-underlay-right-container"),g.K2(this.L,"margin-left",Math.round((Z+.02)*100)+"%")):(I=this.L,g.KF(I,"ytp-ad-underlay-right-container"),g.xw(I,"ytp-ad-underlay-left-container")),g.K2(this.L,"width",Math.round((1-Z- .04)*100)+"%"),this.api.lc()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.Wn.bind(this)),this.api.addEventListener("resize",this.wk.bind(this))):g.nl(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.nl(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.nl(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.nl(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.n.show=function(){f8d(!0);this.actionButton&&this.actionButton.show();kw.prototype.show.call(this)}; g.n.hide=function(){f8d(!1);this.actionButton&&this.actionButton.hide();kw.prototype.hide.call(this)}; g.n.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.Wn.bind(this));this.api.removeEventListener("resize",this.wk.bind(this));this.hide()}; g.n.onClick=function(Z){kw.prototype.onClick.call(this,Z);this.actionButton&&g.H7(this.actionButton.element,Z.target)&&this.api.pauseVideo()}; g.n.Wn=function(Z){Z==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):Z==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):Z==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))}; g.n.wk=function(Z){Z.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):Z.width>875?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-medium"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large")):(this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")); g.K2(this.D.element,"font-size",Z.width/40+"px")};g.U(Px,kw); Px.prototype.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);I.toggledLoggingParams&&(this.toggledLoggingParams=I.toggledLoggingParams);I.answer&&g.y(I.answer,g.Ji)?(Z=new HK(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),Z.i5(this.answer),Z.init(Ai("ytp-ad-survey-answer-button"),g.y(I.answer,g.Ji),d),Z.show()):I.answer&&g.y(I.answer,mj)&&(this.L=new BW(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj, ["ytp-ad-survey-answer-toggle-button"]),this.L.i5(this.answer),g.z(this,this.L),this.L.init(Ai("survey-answer-button"),g.y(I.answer,mj),d));this.show()}; Px.prototype.nm=function(Z){this.layoutId?TX(this.Hj,Z,this.layoutId,this.macros):(Z=new g.Wj("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.nl(Z))}; Px.prototype.onClick=function(Z){kw.prototype.onClick.call(this,Z);if(this.api.C().Y("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; Px.prototype.clear=function(){this.hide()};g.U(C8,kw);C8.prototype.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);I.answer&&g.y(I.answer,mj)&&(this.button=new BW(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.i5(this.L),this.button.init(Ai("survey-none-of-the-above-button"),g.y(I.answer,mj),d));this.show()};g.U(rV,HK);rV.prototype.init=function(Z,I,d){HK.prototype.init.call(this,Z,I,d);Z=!1;I.text&&(I=g.Q1(I.text),Z=!g.Hw(I));Z||g.uL(Error("No submit text was present in the renderer."))}; rV.prototype.onClick=function(Z){this.publish("l");HK.prototype.onClick.call(this,Z)};g.U(FU,kw); FU.prototype.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);if(Z=I.skipOrPreviewRenderer)g.y(Z,zy)?(Z=g.y(Z,zy),d=new kA(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.N,!0),d.i5(this.skipOrPreview),d.init(Ai("skip-button"),Z,this.macros),g.z(this,d),this.L=d):g.y(Z,kF)&&(Z=g.y(Z,kF),d=new kY(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.N,!1),d.i5(this.skipOrPreview),d.init(Ai("ad-preview"),Z,this.macros),d.kS.show(100),d.show(),g.z(this,d), this.L=d);this.L==null&&(Z=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(I)),g.nl(Z));I.submitButton&&(Z=I.submitButton,g.y(Z,g.Ji)&&(Z=g.y(Z,g.Ji),d=new rV(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),d.i5(this.submitButton),d.init(Ai("survey-submit"),Z,this.macros),g.z(this,d),this.D=d));if(Z=I.adBadgeRenderer)Z=g.y(Z,DpL),d=new qS(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,!0,!0,!0),d.i5(this.Z),d.init(Ai("simple-ad-badge"), Z,this.macros),this.adBadge=d.element,g.z(this,d);if(Z=I.adDurationRemaining)Z=g.y(Z,nku),d=new LG(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.N,void 0,!0),d.i5(this.Z),d.init(Ai("ad-duration-remaining"),Z,this.macros),g.z(this,d);(I=I.adInfoRenderer)&&g.y(I,NE)&&(Z=new qE(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.element,void 0,!0),g.z(this,Z),this.adBadge!==void 0?this.Z.insertBefore(Z.element,this.adBadge.nextSibling):Z.i5(this.Z),Z.init(Ai("ad-info-hover-text-button"), g.y(I,NE),this.macros));this.show()}; FU.prototype.clear=function(){this.hide()};g.U(gv,kw);gv.prototype.init=function(Z,I,d){kw.prototype.init.call(this,Z,I,d);qtB(this)}; gv.prototype.show=function(){this.Z=Date.now();kw.prototype.show.call(this)}; gv.prototype.kI=function(){};g.U(vp,gv);g.n=vp.prototype;g.n.init=function(Z,I,d){var Y=this;gv.prototype.init.call(this,Z,I,d);I.questionText&&U2E(this,I.questionText);I.answers&&I.answers.forEach(function(T,f){g.y(T,ny)&&E$a(Y,g.y(T,ny),d,f)}); this.B=new Set(this.D.map(function(T){return T.L.L})); (Z=I.noneOfTheAbove)&&(Z=g.y(Z,mpd))&&M1B(this,Z,d);I.surveyAdQuestionCommon&&nG7(this,I.surveyAdQuestionCommon);I.submitEndpoints&&(this.submitEndpoints=I.submitEndpoints);this.W(this.element,"change",this.onChange);this.show()}; g.n.kI=function(){HR(this,!1);this.N.D.subscribe("l",this.G_4,this)}; g.n.onChange=function(Z){Z.target===this.noneOfTheAbove.button.L?REi(this):this.B.has(Z.target)&&(this.noneOfTheAbove.button.toggleButton(!1),HR(this,!0))}; g.n.G_4=function(){var Z=[],I=this.D.reduce(function(T,f,P){var O=f.toggledLoggingParams;f.L&&f.L.isToggled()&&O&&(T.push(O),Z.push(P));return T},[]).join("&"),d=this.submitEndpoints.map(function(T){if(!T.loggingUrls)return T; T=g.jh(T);T.loggingUrls=T.loggingUrls.map(function(f){f.baseUrl&&(f.baseUrl=Xpn(f.baseUrl,I));return f}); return T}); if(d){d=g.t(d);for(var Y=d.next();!Y.done;Y=d.next())Y=Y.value,this.layoutId?TX(this.Hj,Y,this.layoutId,this.macros):g.nl(Error("Missing layoutId for multi_select_question."))}this.api.C().Y("supports_multi_step_on_desktop")&&this.kS(Z)}; g.n.clear=function(){this.api.C().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.U(Wq,gv);Wq.prototype.init=function(Z,I,d){var Y=this;gv.prototype.init.call(this,Z,I,d);I.questionText&&U2E(this,I.questionText);I.answers&&I.answers.forEach(function(T,f){g.y(T,ny)&&E$a(Y,g.y(T,ny),d,f)}); I.surveyAdQuestionCommon?nG7(this,I.surveyAdQuestionCommon):wp(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(I)));this.show()}; Wq.prototype.clear=function(){this.api.C().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.U(rf,kw);rf.prototype.init=function(Z,I,d){var Y=this;kw.prototype.init.call(this,Z,I,d);if(this.api.C().Y("supports_multi_step_on_desktop")){var T;this.conditioningRules=(T=I.conditioningRules)!=null?T:[];var f;this.D=(f=I.questions)!=null?f:[];var P;((P=I.questions)==null?0:P.length)&&qAl(this,0)}else(I.questions||[]).forEach(function(O){g.y(O,eJ)?hIL(Y,g.y(O,eJ),d):g.y(O,B6)&&mCE(Y,g.y(O,B6),d)}); this.show()}; rf.prototype.clear=function(){this.api.C().Y("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; rf.prototype.N=function(Z){var I=this;if(this.api.C().Y("supports_multi_step_on_desktop")){var d;if((d=this.conditioningRules)==null?0:d.length){var Y;if(Z.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(T){return T.questionIndex===I.L})==null)g.nl(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(T){if(T.questionIndex===I.L)switch(T.condition){case "CONDITION_ALL_OF":var f;if((f=T.answerIndices)==null?0:f.every(function(O){return Z.includes(O)}))Y=T.nextQuestionIndex; break;case "CONDITION_ANY_OF":var P;if((P=T.answerIndices)==null?0:P.some(function(O){return Z.includes(O)}))Y=T.nextQuestionIndex; break;default:g.nl(Error("Expected specified condition in survey conditioning rules."))}}),Y!=null)qAl(this,Y); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.nl(Error("No conditioning rules, yet survey is multi step. Expected questions.length to be 1.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}};g.U(hF,kw); hF.prototype.init=function(Z,I,d){var Y=this;kw.prototype.init.call(this,Z,I,d);Z=I.timeoutSeconds||0;if(typeof Z!=="number"||Z<0)g.nl(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+Z));else if(I.timeoutCommands)if(I.text)if(I.ctaButton&&g.y(I.ctaButton,g.Ji))if(I.brandImage)if(I.backgroundImage&&g.y(I.backgroundImage,fC)&&g.y(I.backgroundImage,fC).landscape){this.layoutId||g.nl(Error("Missing layoutId for survey interstitial."));ZUu(this.interstitial,g.y(I.backgroundImage, fC).landscape);ZUu(this.logoImage,I.brandImage);g.UC(this.text,g.Q1(I.text));var T=["ytp-ad-survey-interstitial-action-button"];T.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new HK(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,T);g.z(this,this.actionButton);this.actionButton.i5(this.D);this.actionButton.init(Ai("button"),g.y(I.ctaButton,g.Ji),d);this.actionButton.show();this.L=new Bp(this.api,Z*1E3);this.L.subscribe("g",function(){Y.transition.hide()}); g.z(this,this.L);this.W(this.element,"click",function(f){var P=f.target===Y.interstitial;f=Y.actionButton.element.contains(f.target);if(P||f)if(Y.transition.hide(),P)Y.api.onAdUxClicked(Y.componentType,Y.layoutId)}); this.transition.show(100)}else g.nl(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.nl(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.nl(Error("SurveyTextInterstitialRenderer has no button."));else g.nl(Error("SurveyTextInterstitialRenderer has no text."));else g.nl(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; hF.prototype.clear=function(){this.hide()}; hF.prototype.show=function(){mGO(!0);kw.prototype.show.call(this)}; hF.prototype.hide=function(){mGO(!1);kw.prototype.hide.call(this)};g.U(on,J_);g.n=on.prototype; g.n.init=function(Z,I){J_.prototype.init.call(this,Z,I,{});if(I.durationMilliseconds){if(I.durationMilliseconds<0){g.nl(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+I.durationMilliseconds));return}this.D=I.durationMilliseconds}else this.D=this.L.Yr();var d;if((d=I.previewText)==null||!d.text||g.Hw(I.previewText.text))g.nl(Error("No text is returned for AdPreview."));else{this.B=I.previewText;I.previewText.isTemplated||g.UC(this.Z,I.previewText.text);var Y; if(((Y=this.api.getVideoData(1))==null?0:Y.M_)&&I.previewImage){var T,f;(Z=((f=eG(((T=I.previewImage)==null?void 0:T.sources)||[],52,!1))==null?void 0:f.url)||"")&&Z.length?(this.previewImage=new g.m7({K:"img",T:"ytp-preview-ad__image",J:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",Z),g.z(this,this.previewImage),this.previewImage.i5(this.element)):g.nl(Error("Failed to get imageUrl in AdPreview."))}else this.Z.classList.add("ytp-preview-ad__text--padding--wide")}}; g.n.clear=function(){this.hide()}; g.n.hide=function(){lR(this);J_.prototype.hide.call(this)}; g.n.show=function(){Jv(this);J_.prototype.show.call(this)}; g.n.dP=function(){this.hide()}; g.n.df=function(){if(this.L){var Z=this.L.getProgressState();if(Z!=null&&Z.current)if(Z=1E3*Z.current,Z>=this.D)this.transition.hide();else{var I;if((I=this.B)==null?0:I.isTemplated)if(I=Math.max(0,Math.ceil((this.D-Z)/1E3)),I!==this.N){var d,Y;(Z=(d=this.B)==null?void 0:(Y=d.text)==null?void 0:Y.replace("{TIME_REMAINING}",String(I)))&&g.UC(this.Z,Z);this.N=I}}}};g.U(rw,kw); rw.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});var d,Y;if((Z=((Y=eG(((d=I.image)==null?void 0:d.sources)||[],UVd(I),!0))==null?void 0:Y.url)||"")&&Z.length){d=this.KS("ytp-ad-avatar");d.src=Z;var T,f;if(Y=(T=I.interaction)==null?void 0:(f=T.accessibility)==null?void 0:f.label)d.alt=Y;switch(I.size){case "AD_AVATAR_SIZE_XXS":this.element.classList.add("ytp-ad-avatar--size-xxs");break;case "AD_AVATAR_SIZE_XS":this.element.classList.add("ytp-ad-avatar--size-xs");break;case "AD_AVATAR_SIZE_S":this.element.classList.add("ytp-ad-avatar--size-s"); break;case "AD_AVATAR_SIZE_M":this.element.classList.add("ytp-ad-avatar--size-m");break;case "AD_AVATAR_SIZE_L":this.element.classList.add("ytp-ad-avatar--size-l");break;case "AD_AVATAR_SIZE_XL":this.element.classList.add("ytp-ad-avatar--size-xl");break;case "AD_AVATAR_SIZE_RESPONSIVE":this.element.classList.add("ytp-ad-avatar--size-responsive");break;default:this.element.classList.add("ytp-ad-avatar--size-m")}switch(I.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":this.element.classList.add("ytp-ad-avatar--rounded-corner"); break;default:this.element.classList.add("ytp-ad-avatar--circular")}}else g.nl(Error("Failed to get imageUrl in AdAvatar."))}; rw.prototype.clear=function(){this.hide()}; rw.prototype.onClick=function(Z){kw.prototype.onClick.call(this,Z)};g.U(s_,kw); s_.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});var d;Z=(d=I.label)==null?void 0:d.content;if((d=Z!=null&&!g.Hw(Z))||I.iconImage){d&&(this.buttonText=new g.m7({K:"span",T:"ytp-ad-button-vm__text",Z1:Z}),g.z(this,this.buttonText),this.buttonText.i5(this.element));var Y,T,f=((Y=I.interaction)==null?0:(T=Y.accessibility)==null?0:T.label)||d?Z:"";f&&Nf(this.element,f+" This link opens in new tab");xo(this.element);if(I.iconImage){Y=void 0;if(I.iconImage){a:{T=I.iconImage;if(T.sources)for(T= g.t(T.sources),Z=T.next();!Z.done;Z=T.next())if(Z=Z.value,f=void 0,(f=Z.clientResource)==null?0:f.imageName){T=Z;break a}T=void 0}if(T){var P;Y={iconType:(P=T.clientResource)==null?void 0:P.imageName}}}P=bD(Y,!1,this.D);P!=null&&(this.buttonIcon=new g.m7({K:"span",T:"ytp-ad-button-vm__icon",G:[P]}),g.z(this,this.buttonIcon),I.iconLeading?(Za(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):d?(this.buttonIcon.i5(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.i5(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(I.style){case "AD_BUTTON_STYLE_TRANSPARENT":this.element.classList.add("ytp-ad-button-vm--style-transparent");break;case "AD_BUTTON_STYLE_FILLED_WHITE":this.element.classList.add("ytp-ad-button-vm--style-filled-white");break;case "AD_BUTTON_STYLE_MONO_FILLED":this.element.classList.add("ytp-ad-button-vm--style-mono-filled");break;case "AD_BUTTON_STYLE_FILLED":this.api.Y("delhi_modern_web_player")? this.element.classList.add("ytp-ad-button-vm--style-filled-white"):this.element.classList.add(this.L?"ytp-ad-button-vm--style-filled-dark":"ytp-ad-button-vm--style-filled");break;default:this.element.classList.add("ytp-ad-button-vm--style-filled")}switch(I.size){case "AD_BUTTON_SIZE_COMPACT":this.element.classList.add("ytp-ad-button-vm--size-compact");break;case "AD_BUTTON_SIZE_LARGE":this.element.classList.add("ytp-ad-button-vm--size-large");break;default:this.element.classList.add("ytp-ad-button-vm--size-default")}}else g.uL(Error("AdButton does not have label or an icon."))}; s_.prototype.clear=function(){this.hide()}; s_.prototype.onClick=function(Z){kw.prototype.onClick.call(this,Z)};g.U(OJ9,J_);g.n=OJ9.prototype; g.n.init=function(Z,I){J_.prototype.init.call(this,Z,I,{});if(Z=g.y(I.avatar,wI)){var d=I.headline;if(d){var Y=I.description;if(Y){var T=g.y(I.button,Nt);T?(this.adAvatar.init(Ai("ad-avatar"),Z),this.headline.init(Ai("ad-simple-attributed-string"),new Fi(d)),this.description.init(Ai("ad-simple-attributed-string"),new Fi(Y)),d.content&&d.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(Ai("ad-button"),T), this.startMilliseconds=I.startMs||0,this.api.lc()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.qo.bind(this)),Jv(this)):g.nl(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nl(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nl(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.nl(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.n.df=function(){if(this.L){var Z=this.L.getProgressState();Z&&Z.current&&1E3*Z.current>=this.startMilliseconds&&(lR(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.n.dP=function(){this.clear()}; g.n.onClick=function(Z){this.api.pauseVideo();J_.prototype.onClick.call(this,Z)}; g.n.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.qo.bind(this))}; g.n.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();J_.prototype.show.call(this)}; g.n.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();J_.prototype.hide.call(this)}; g.n.qo=function(Z){Z==="hidden"?this.show():this.hide()};g.U(GH,kw);g.n=GH.prototype; g.n.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});if(!I.label||g.Hw(I.label))g.nl(Error("No label is returned for SkipAdButton."));else if(g.UC(this.N,I.label),Z=bD({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.Y("delhi_modern_web_player_icons")),Z==null)g.nl(Error("Unable to retrieve icon for SkipAdButton"));else if(this.Z=new g.m7({K:"span",T:"ytp-skip-ad-button__icon",G:[Z]}),g.z(this,this.Z),this.Z.i5(this.element),this.api.C().experiments.CS("enable_skip_to_next_messaging")&&(I=g.Fp(I.targetId)))this.D= !0,this.element.setAttribute("data-tooltip-target-id",I),this.element.setAttribute("data-tooltip-target-fixed","")}; g.n.onClick=function(Z){Z&&Z.preventDefault();var I,d;sNO(Z,{contentCpn:(d=(I=this.api.getVideoData(1))==null?void 0:I.clientPlaybackNonce)!=null?d:""})===0?this.api.Rn("onAbnormalityDetected"):(kw.prototype.onClick.call(this,Z),this.api.Rn("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.n.clear=function(){this.L.reset();this.hide()}; g.n.hide=function(){kw.prototype.hide.call(this)}; g.n.show=function(){this.L.start();kw.prototype.show.call(this);this.D&&this.api.C().experiments.CS("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.U(Yk7,J_);g.n=Yk7.prototype; g.n.init=function(Z,I){J_.prototype.init.call(this,Z,I,{});Z=g.y(I.preskipState,GU$);var d;if((d=this.api.getVideoData())==null?0:d.isDaiEnabled()){if(!Z){g.nl(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.D=new on(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.L);g.z(this,this.D);this.D.i5(this.element);var Y;(Y=this.D)==null||Y.init(Ai("preview-ad"),Z);(d=this.D)!=null&&(d.transition.show(100),d.show())}(d=g.y(I.skippableState,kUg))?(I.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=I.skipOffsetMilliseconds:(g.uL(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.Z.init(Ai("skip-button"),d),this.show()):g.nl(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.n.show=function(){Jv(this);J_.prototype.show.call(this)}; g.n.hide=function(){!this.isSkippable&&this.D?this.D.hide():this.Z&&this.Z.hide();lR(this);J_.prototype.hide.call(this)}; g.n.clear=function(){var Z;(Z=this.D)==null||Z.clear();this.Z&&this.Z.clear();lR(this);J_.prototype.hide.call(this)}; g.n.dP=function(){this.hide()}; g.n.df=function(){if(1E3*this.L.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var Z;(Z=this.D)!=null&&Z.transition.hide();(Z=this.Z)!=null&&(Z.transition.show(),Z.show())}};g.U(tf,kw); tf.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});if(I.label){var d;((d=I.label)==null?0:d.content)&&!g.Hw(I.label.content)&&(this.linkText=new g.m7({K:"span",T:"ytp-visit-advertiser-link__text",Z1:I.label.content}),g.z(this,this.linkText),this.linkText.i5(this.element));var Y,T;if((Y=I.interaction)==null?0:(T=Y.accessibility)==null?0:T.label)Nf(this.element,I.interaction.accessibility.label+" This link opens in new tab");else{var f;((f=I.label)==null?0:f.content)&&!g.Hw(I.label.content)&&Nf(this.element, I.label.content+" This link opens in new tab")}xo(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.nl(Error("No label found in VisitAdvertiserLink."))}; tf.prototype.onClick=function(Z){kw.prototype.onClick.call(this,Z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; tf.prototype.clear=function(){this.hide()};g.U(Xp,kw); Xp.prototype.init=function(Z,I,d,Y){kw.prototype.init.call(this,Z,I,{});if(I.skipOrPreview){d=I.skipOrPreview;Z=g.y(d,XS0);d=g.y(d,GU$);if(Z)this.hW=new Yk7(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.D),g.z(this,this.hW),this.hW.i5(this.X),this.hW.init(Ai("skip-ad"),Z);else{var T;d&&((T=this.api.getVideoData())==null?0:T.isDaiEnabled())&&(this.N=new on(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.D,1),g.z(this,this.N),this.N.i5(this.X),this.N.init(Ai("ad-preview"), d),T=this.N,T.transition.show(100),T.show())}if(T=g.y(I.skipOrPreview,XS0))var f=T.skipOffsetMilliseconds}I.playerAdCard&&(T=g.y(I.playerAdCard,zgW))&&(this.playerAdCard=new OJ9(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.D),g.z(this,this.playerAdCard),this.playerAdCard.i5(this.fS),this.playerAdCard.init(Ai("ad-avatar-lockup-card"),T));I.adBadgeRenderer&&((T=g.y(I.adBadgeRenderer,Vv))?(this.Z=new ab(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,!0),g.z(this, this.Z),this.Z.i5(this.L),this.Z.init(Ai("ad-badge"),T)):g.nl(Error("AdBadgeViewModel is not found in player overlay layout.")));I.adPodIndex&&(T=g.y(I.adPodIndex,yBd))&&(this.adPodIndex=new hz(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.adPodIndex),this.adPodIndex.i5(this.L),this.adPodIndex.init(Ai("ad-pod-index"),T));I.adInfoRenderer&&((T=g.y(I.adInfoRenderer,NE))?(this.adInfoButton=new qE(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.element, void 0,!0),g.z(this,this.adInfoButton),this.Z!==void 0?this.L.insertBefore(this.adInfoButton.element,this.Z.element.nextSibling):this.adInfoButton.i5(this.L),this.adInfoButton.init(Ai("ad-info-hover-text-button"),T,this.macros)):g.uL(Error("AdInfoRenderer is not found in player overlay layout.")));var P;T=(P=this.api.getVideoData())==null?void 0:P.isDaiEnabled();I.adDurationRemaining&&T&&(P=g.y(I.adDurationRemaining,nku))&&(this.adDurationRemaining=new LG(this.api,this.layoutId,this.interactionLoggingClientData, this.Hj,this.D,Y.videoAdDurationSeconds,!0),g.z(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.L.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.i5(this.L),this.adDurationRemaining.init(Ai("ad-duration-remaining"),P,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));I.visitAdvertiserLink&&(Y=g.y(I.visitAdvertiserLink,$pp))&&(this.visitAdvertiserLink=new tf(this.api,this.layoutId, this.interactionLoggingClientData,this.Hj),g.z(this,this.visitAdvertiserLink),this.visitAdvertiserLink.i5(this.L),this.visitAdvertiserLink.init(Ai("visit-advertiser-link"),Y));I.adDisclosureBanner&&(I=g.y(I.adDisclosureBanner,UpE))&&(this.adDisclosureBanner=new yv(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.adDisclosureBanner),this.adDisclosureBanner.i5(this.kS),this.adDisclosureBanner.init(Ai("ad-disclosure-banner"),I));this.B=new i4(this.api,this.D,f,!0);g.z(this, this.B);g.iS(this.api,this.B.element,4);this.show()}; Xp.prototype.clear=function(){this.hide()};g.U(F1J,kw);g.n=F1J.prototype; g.n.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});if(I!=null&&I.title)if(Z=I.title)if(this.headline.init(Ai("ad-simple-attributed-string"),new Fi(Z)),Z=g.y(I.moreInfoButton,Nt)){if(this.moreInfoButton.init(Ai("ad-button"),Z),I.descriptions)I.descriptions.length>0&&(Z=I.descriptions[0])&&(this.L=new Oe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.L),this.L.i5(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.L.init(Ai("ad-simple-attributed-string"), new Fi(Z))),I.descriptions.length>1&&(I=I.descriptions[1])&&(this.D=new Oe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.D),this.D.i5(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.D.init(Ai("ad-simple-attributed-string"),new Fi(I)))}else g.nl(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.nl(Error("No headline found in AdGridCardText."));else g.nl(Error("No headline found in AdGridCardText."))}; g.n.onClick=function(Z){kw.prototype.onClick.call(this,Z);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.n.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var Z;(Z=this.L)==null||Z.clear();var I;(I=this.D)==null||I.clear()}; g.n.hide=function(){this.headline.hide();this.moreInfoButton.hide();var Z;(Z=this.L)==null||Z.hide();var I;(I=this.D)==null||I.hide();kw.prototype.hide.call(this)}; g.n.show=function(){kw.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var Z;(Z=this.L)==null||Z.show();var I;(I=this.D)==null||I.show()};g.U(Fz,kw);Fz.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});if(I!=null&&I.gridCards)if(I.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.nl(Error("Only single column style is currently supported in AdGridCardCollection."));else for(Z=g.t(I.gridCards),I=Z.next();!I.done;I=Z.next()){if(I=g.y(I.value,u4L)){var d=new F1J(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj);g.z(this,d);d.i5(this.element);d.init(Ai("ad-grid-card-text"),I);this.L.push(d)}}else g.nl(Error("No grid cards found in AdGridCardCollection."))}; Fz.prototype.show=function(){for(var Z=g.t(this.L),I=Z.next();!I.done;I=Z.next())I.value.show();kw.prototype.show.call(this)}; Fz.prototype.clear=function(){this.hide();for(var Z=g.t(this.L),I=Z.next();!I.done;I=Z.next())I.value.clear()}; Fz.prototype.hide=function(){for(var Z=g.t(this.L),I=Z.next();!I.done;I=Z.next())I.value.hide();kw.prototype.hide.call(this)};g.U(Nm,J_);g.n=Nm.prototype;g.n.init=function(Z,I,d,Y,T){T=T===void 0?0:T;J_.prototype.init.call(this,Z,I,d,Y);this.playerProgressOffsetMs=T;Jv(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.AD.bind(this));this.api.addEventListener("resize",this.FO.bind(this));this.api.lc()?(this.D=!0,this.api.pZ(!0),this.show()):this.hide()}; g.n.df=function(){if(this.L){var Z=this.L.getProgressState();Z&&Z.current&&!this.D&&1E3*Z.current>=this.playerProgressOffsetMs&&(this.D=!0,this.api.pZ(!0),this.show())}}; g.n.dP=function(){this.D&&this.api.pZ(!1);this.hide()}; g.n.clear=function(){this.api.pZ(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.AD.bind(this));this.api.removeEventListener("resize",this.FO.bind(this));lR(this);this.hide()}; g.n.hide=function(){wL$(!1);J_.prototype.hide.call(this)}; g.n.show=function(){wL$(!0);J_.prototype.show.call(this)};g.U(nX,Nm);g.n=nX.prototype; g.n.init=function(Z,I,d,Y){if(I!=null&&I.adGridCardCollection)if(I!=null&&I.adButton){var T=Number(I.playerProgressOffsetMs||"0");isNaN(T)?Nm.prototype.init.call(this,Z,I,d,Y):Nm.prototype.init.call(this,Z,I,d,Y,T);Z=I.headline;d=g.y(I.adAvatar,wI);Z&&d?(this.headline=new Oe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.headline),this.headline.i5(this.KS("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(Ai("ad-simple-attributed-string"),new Fi(Z)), this.adAvatar=new rw(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.adAvatar),this.adAvatar.i5(this.KS("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(Ai("ad-avatar"),d)):this.N.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");Z=g.y(I.adGridCardCollection,lQ0);this.adGridCardCollection.init(Ai("ad-grid-card-collection"),Z);I=g.y(I.adButton,Nt);this.adButton.init(Ai("ad-button"),I); this.hide()}else g.nl(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.nl(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.n.onClick=function(Z){(this.adButton&&g.H7(this.adButton.element,Z.target)||this.adAvatar&&g.H7(this.adAvatar.element,Z.target))&&this.api.pauseVideo();Nm.prototype.onClick.call(this,Z);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.n.FO=function(){}; g.n.clear=function(){this.hide();var Z;(Z=this.headline)==null||Z.clear();var I;(I=this.adAvatar)==null||I.clear();this.adGridCardCollection.clear();this.adButton.clear();Nm.prototype.clear.call(this)}; g.n.show=function(){var Z;(Z=this.headline)==null||Z.show();var I;(I=this.adAvatar)==null||I.show();this.adGridCardCollection.show();this.adButton.show();Nm.prototype.show.call(this)}; g.n.hide=function(){var Z;(Z=this.headline)==null||Z.hide();var I;(I=this.adAvatar)==null||I.hide();this.adGridCardCollection.hide();this.adButton.hide();Nm.prototype.hide.call(this)}; g.n.AD=function(Z){Z==="transitioning"?(this.Z.classList.remove("ytp-ad-underlay-clickable"),this.show()):Z==="visible"?this.Z.classList.add("ytp-ad-underlay-clickable"):Z==="hidden"&&(this.hide(),this.Z.classList.remove("ytp-ad-underlay-clickable"))};g.U(nC,kw); nC.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});if(I.attributes===void 0)g.nl(Error("No attributes found in AdDetailsLineViewModel."));else if(I.style===void 0)g.nl(Error("No style found in AdDetailsLineViewModel."));else{Z=g.t(I.attributes);for(var d=Z.next();!d.done;d=Z.next())if(d=d.value,d.text!==void 0){d=d.text;var Y=I.style,T=new Oe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj);g.z(this,T);T.i5(this.element);a:switch(Y){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":Y="ytp-ad-details-line__text--style-responsive"; break a;default:Y="ytp-ad-details-line__text--style-standard"}T.element.classList.add(Y);T.init(Ai("ad-simple-attributed-string"),new Fi(d));this.L.push(T)}this.show()}}; nC.prototype.show=function(){this.L.forEach(function(Z){Z.show()}); kw.prototype.show.call(this)}; nC.prototype.clear=function(){this.hide()}; nC.prototype.hide=function(){this.L.forEach(function(Z){Z.hide()}); kw.prototype.hide.call(this)};g.U(r$,kw);r$.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});var d,Y;(Z=((Y=eG(((d=I.image)==null?void 0:d.sources)||[]))==null?void 0:Y.url)||"")&&Z.length?(d=this.KS("ytp-image-background-image"),g.K2(d,"backgroundImage","url("+Z+")"),I.blurLevel!==void 0&&g.K2(d,"filter","blur("+I.blurLevel+"px)"),I.gradient!==void 0&&(I=new g.k({K:"div",zm:["ytp-image-background--gradient-vertical"]}),g.z(this,I),I.i5(this.element)),this.show()):g.nl(Error("Failed to get imageUrl in ImageBackground."))}; r$.prototype.clear=function(){this.hide()};g.U(SV$,J_);g.n=SV$.prototype;g.n.init=function(Z,I){J_.prototype.init.call(this,Z,I,{});g.K2(this.Z,"stroke-dasharray","0 "+this.D);this.show()}; g.n.clear=function(){this.hide()}; g.n.hide=function(){lR(this);J_.prototype.hide.call(this)}; g.n.show=function(){Jv(this);J_.prototype.show.call(this)}; g.n.dP=function(){this.hide()}; g.n.df=function(){if(this.L){var Z=this.L.getProgressState();Z!=null&&Z.current!=null&&g.K2(this.Z,"stroke-dasharray",Z.current/Z.seekableEnd*this.D+" "+this.D)}};g.U(fX,kw); fX.prototype.init=function(Z,I){kw.prototype.init.call(this,Z,I,{});if(SD7(I)){this.adAvatar=new rw(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj);g.z(this,this.adAvatar);this.adAvatar.i5(this.KS("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(Ai("ad-avatar"),g.y(I.adAvatar,wI));this.headline=new Oe(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj);g.z(this,this.headline);this.headline.i5(this.KS("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"));this.headline.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline"); this.headline.init(Ai("ad-simple-attributed-string"),new Fi(I.headline));if(Z=g.y(I.adDetailsLine,L_3))this.detailsLine=new nC(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.detailsLine),this.detailsLine.i5(this.KS("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(Ai("ad-details-line"),Z);this.adButton=new s_(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,!0);g.z(this,this.adButton); this.adButton.i5(this.KS("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(Ai("ad-button"),g.y(I.adButton,Nt));this.adBadge=new ab(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,!0);g.z(this,this.adBadge);this.adBadge.i5(this.N);this.adBadge.init(Ai("ad-badge"),g.y(I.adBadge,Vv));this.adInfoButton=new qE(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.element,void 0,!0);g.z(this,this.adInfoButton);this.adInfoButton.i5(this.N); this.adInfoButton.init(Ai("ad-info-hover-text-button"),g.y(I.adInfoRenderer,NE),this.macros);if(Z=g.y(I.skipAdButton,kUg))this.skipAdButton=new GH(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.skipAdButton),this.skipAdButton.i5(this.element),this.skipAdButton.init(Ai("skip-button"),Z);this.D=new MY(I.durationMilliseconds);g.z(this,this.D);if(Z=g.y(I.countdownViewModel,tVM))this.L=new SV$(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj,this.D),g.z(this, this.L),this.L.i5(this.KS("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.L.init(Ai("timed-pie-countdown"),Z);if(I=g.y(I.imageBackground,vkV))this.imageBackground=new r$(this.api,this.layoutId,this.interactionLoggingClientData,this.Hj),g.z(this,this.imageBackground),this.imageBackground.i5(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(Ai("image-background"), I);this.show();this.element.focus()}}; fX.prototype.clear=function(){g.aL(this.Z);this.hide()}; fX.prototype.show=function(){VLa(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();kw.prototype.show.call(this)}; fX.prototype.hide=function(){VLa(!1);this.adAvatar&&this.adAvatar.hide();this.headline&&this.headline.hide();this.adButton&&this.adButton.hide();this.detailsLine&&this.detailsLine.hide();this.adBadge&&this.adBadge.hide();this.adInfoButton&&this.adInfoButton.hide();this.skipAdButton&&this.skipAdButton.hide();this.L&&this.L.hide();this.imageBackground&&this.imageBackground.hide();kw.prototype.hide.call(this)};g.U(YV,g.dx);g.n=YV.prototype;g.n.Yr=function(){return 1E3*this.api.getDuration(this.jO,!1)}; g.n.stop=function(){this.L&&this.handler.a4(this.L)}; g.n.W$=function(){var Z=this.api.getProgressState(this.jO);this.D={seekableStart:Z.seekableStart,seekableEnd:Z.seekableEnd,current:this.api.getCurrentTime(this.jO,!1)};this.publish("h")}; g.n.getProgressState=function(){return this.D}; g.n.M4=function(Z){g.Nw(Z,2)&&this.publish("g")};var Wpp="ad-attribution-bar ad-channel-thumbnail advertiser-name ad-preview ad-title skip-button visit-advertiser".split(" ").concat("shopping-companion action-companion image-companion ads-engagement-panel ads-engagement-panel-layout banner-image top-banner-image-text-icon-buttoned".split(" "));g.U(Lf,D8); Lf.prototype.Z=function(Z){var I=Z.id,d=Z.content,Y=d.componentType;if(!Wpp.includes(Y))switch(Z.actionType){case 1:Z=this.api;var T=this.Hj,f=d.layoutId,P=d.interactionLoggingClientData,O=d instanceof v4?d.gi:!1,a=d instanceof v4||d instanceof VH?d.Gl:!1;P=P===void 0?{}:P;O=O===void 0?!1:O;a=a===void 0?!1:a;switch(Y){case "invideo-overlay":Z=new cr(Z,f,P,T);break;case "player-overlay":Z=new AQ(Z,f,P,T,new YV(Z),a);break;case "player-overlay-layout":Z=new Xp(Z,f,P,T,new YV(Z));break;case "survey":Z= new rf(Z,f,P,T);break;case "ad-action-interstitial":Z=new gd(Z,f,P,T,O,a);break;case "video-interstitial-buttoned-centered":Z=new fX(Z,f,P,T);break;case "survey-interstitial":Z=new hF(Z,f,P,T);break;case "ad-message":Z=new c4$(Z,f,P,T,new YV(Z,1));break;case "player-underlay":Z=new IK9(Z,f,P,T);break;case "display-underlay-text-grid-cards":Z=new nX(Z,f,P,T,new YV(Z));break;default:Z=null}if(!Z){g.uL(Error("No UI component returned from ComponentFactory for type: "+Y));break}g.b3(this.components,I)? g.uL(Error("Ad UI component already registered: "+I)):this.components[I]=Z;Z.bind(d);d instanceof n$?this.D?this.D.append(Z.FH):g.uL(Error("Underlay view was not created but UnderlayRenderer was created")):this.N.append(Z.FH);break;case 2:I=dPL(this,Z);if(I==null)break;I.bind(d);break;case 3:d=dPL(this,Z),d!=null&&(g.Th(d),g.b3(this.components,I)?(d=this.components,I in d&&delete d[I]):g.uL(Error("Ad UI component does not exist: "+I)))}}; Lf.prototype.g4=function(){g.t$(Object.values(this.components));this.components={};D8.prototype.g4.call(this)};g.U(Pp$,g.NI);g.n=Pp$.prototype;g.n.create=function(){try{Agv(this),this.load(),this.created=!0,Agv(this)}catch(Z){Zv(Z instanceof Error?Z:String(Z))}}; g.n.load=function(){try{Mdu(this)}finally{TQ(Fj(this.L).jL)&&this.player.b4("ad",1)}}; g.n.destroy=function(){var Z=this.player.getVideoData(1);this.L.L.b7.rP(Z&&Z.clientPlaybackNonce||"");this.unload();this.created=!1}; g.n.unload=function(){g.NI.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(I){Zv(I instanceof Error?I:String(I))}if(this.D!=null){var Z=this.D;this.D=null;Z.dispose()}this.Z.reset()}; g.n.bV=function(){return!1}; g.n.getAdState=function(){return-1}; g.n.getOptions=function(){return Object.values(avE)}; g.n.k$=function(Z,I){I=I===void 0?{}:I;switch(Z){case "replaceUrlMacros":return Z=I,Z.url?(I=cMr(this.player),Object.assign(I,Z.sws),Z=g.yg(Z.url,I)):Z=null,Z;case "onAboutThisAdPopupClosed":this.qm(I);break;case "executeCommand":Z=I;Z.command&&Z.layoutId&&this.executeCommand(Z);break;default:return null}}; g.n.FV=function(Z){var I;return!((I=this.L.L.sP)==null||!I.get().FV(Z))}; g.n.qm=function(Z){Z.isMuted&&kOE(Fj(this.L).oF,Fj(this.L).UY,Z.layoutId);this.fJ&&this.fJ.qm()}; g.n.executeCommand=function(Z){Fj(this.L).Hj.executeCommand(Z.command,Z.layoutId)};g.zb("yt.player.Application.create",g.I_.create);g.zb("yt.player.Application.createAlternate",g.I_.create);Lyi(cb(),Osg);var eE3=g.gZ("ytcsi.tick");eE3&&eE3("pe");g.cI("ad",Pp$);g.U(g.tK,g.p);g.tK.prototype.start=function(Z,I,d){this.config={from:Z,to:I,duration:d,startTime:(0,g.o8)()};this.next()}; g.tK.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.tK.prototype.next=function(){if(this.config){var Z=this.config,I=Z.from,d=Z.to,Y=Z.duration;Z=Z.startTime;var T=(0,g.o8)()-Z;Z=this.L;Y=Z5d(Z,T/Y);if(Y==0)Z=Z.V;else if(Y==1)Z=Z.X;else{T=yf(Z.V,Z.B,Y);var f=yf(Z.B,Z.j,Y);Z=yf(Z.j,Z.X,Y);T=yf(T,f,Y);f=yf(f,Z,Y);Z=yf(T,f,Y)}Z=g.O4(Z,0,1);this.callback(I+(d-I)*Z);Z<1&&this.delay.start()}};g.U(g.Bd,g.k);g.n=g.Bd.prototype;g.n.hasSuggestions=function(){return this.suggestionData.length>0}; g.n.N4=function(){this.D&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.n.show=function(){g.k.prototype.show.call(this);rRi(this)}; g.n.Kk=function(){this.D&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.n.AQ=function(){this.CM(this.api.cj().getPlayerSize())}; g.n.CM=function(Z){var I=this.api.isEmbedsShortsMode()?.5625:16/9,d=this.api.m2();Z=Z.width-(d?112:58);d=Math.ceil(Z/(d?320:192));var Y=(Z-d*8)/d;I=Math.floor(Y/I);for(var T=g.t(this.L),f=T.next();!f.done;f=T.next())f=f.value.KS("ytp-suggestion-image"),f.style.width=Y+"px",f.style.height=I+"px";this.suggestions.element.style.height=I+"px";this.N=Y;this.V=I;this.containerWidth=Z;this.columns=d;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.nK(this)}; g.n.onVideoDataChange=function(){var Z=this.api.C(),I=this.api.getVideoData();this.B=I.IN?!1:Z.N;this.suggestionData=I.suggestions?g.zG(I.suggestions,function(d){return d&&!d.playlistId}):[]; N07(this);I.IN?this.title.update({title:g.yd("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:I.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.n.scrollTo=function(Z){Z=g.O4(Z,this.containerWidth-this.suggestionData.length*(this.N+8),0);this.j.start(this.scrollPosition,Z,1E3);this.scrollPosition=Z;g.nK(this);rRi(this)};})(_yt_player);