var _yt_player={};(function(g){var window=this;/* (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). */ /* Copyright The Closure Library Authors. SPDX-License-Identifier: Apache-2.0 */ /* Copyright Google LLC SPDX-License-Identifier: Apache-2.0 */ /* Copyright 2015-present Dan Abramov SPDX-License-Identifier: MIT */ /* 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 */ 'use strict';var h="reverse;http://local;;%3D;length;tV;L;call;path;splice;G;mn;local;clone;=;/videoplayback;scheme;slice;'[}}\u00ed;/;fromCharCode;https://local;startsWith;1969-12-31T20:00:02.000-04:00;indexOf;rr;url;prototype;set;n;assign;-;W;\\.a1\\.googlevideo\\.com$;toString;T;push;split;forEach;/initplayback;1;get;s;1969-12-31T14:15:07.000-09:45;qxJZzOSccDglp8B6eD-_w8_;cmo=;youtube.player.web_20251013_21_RC00;Op;1970-01-01T04:15:09.000+04:15;file;1970-01-01T07:00:02.000+07:00;join;1969-12-31T22:45:00.000-01:15;//;match;m$;1969-12-31T16:31:05.000-07:30;---;:;?;undefined;1969-12-31T14:15:59.000-09:45;redirector.googlevideo.com;pow;r;replace;D;cmo=pf;Ox;rr?[1-9].*\\.c\\.youtube\\.com$;Untrusted URL;signatureCipher;www.youtube.com;unshift;1970-01-01T08:46:25.000+08:45;1969-12-31T16:00:29.000-08:00;fallback_count;&;,;gp;o5;\\.googlevideo\\.com$;://;fvip;cmo=td;1970-01-01T08:30:44.000+08:30;/api/manifest;index.m3u8;sp;cmo;pop;playerfallback;a1.googlevideo.com;TU;,,,,},;1970-01-01T09:15:03.000+09:15;/file/index.m3u8".split(";"), mv,G7u,PUd,On,ju,X1,Lw,hq1,VM,$T7,fw,sC,$M,Wvl,Adu,mTs,u1l,No,vQs,dTU,DTQ,Z$,UC,nQn,TZ,ajq,Owl,oW,KvU,km,mJ,cdU,uy,df,bws,K5,Bz,Xd,Jd7,rdl,ly,U9,Zw7,f5,H9,EN,Gv,CUQ,hs,gQn,Lvq,IN,UTn,m3,xTl,zqn,Mm,dd,n3,Tld,SnM,Nm,bM,rd,B9,C3,lM,fj1,UN,HWw,PKQ,SP,QDv,sDd,EW,eWn,wol,tH1,kZM,Wdd,ny,I$n,AJd,uRl,Ky,vMv,ik,MHt,RT,a$T,OWw,yJv,iWv,Ly,zq,Tq,BuM,YCn,gMU,wL,LdU,t9,l$u,kg,W4,UoT,zWj,Tuj,VHU,SCu,dL,jk,EmU,N1,bF,iF,GEQ,RA,B4,Yg,QWq,AET,HP,EV,vmd,dOM,cEl,Nfd,Z5s,HD,PD,gmQ,UOd,hz,$a,m0,eX,Tfs,vD,S97,ds,FJn,fRQ, Kb,ya,RD,RG,hc7,ZE,hJ,Cb,gs,$mj,kvq,W3t,QD,oq,Iq,MPn,Dms,aiq,aq,Kr,Ndv,yD,ysU,IT,i3t,iR,qNt,JsM,rsn,Lr,l0,Z3d,CMU,gnt,yV,iG,rx,L3U,VPu,Sy,fiU,p9U,fu,oA,Hyu,E01,EB,Pks,yd7,sT7,ZWv,WL,my,vL,$FQ,j0,o0d,kqq,WX1,uLQ,MBn,IS,a8Q,Oyt,UB,zJ,S0,WV,fN,PR,jTv,NW1,byt,iyT,oe,JOn,BWM,CkU,AO,bh,BR,YY,ZB,lG,l8w,xFU,TWQ,T4,J8,fh,FXQ,ph,Fdt,f8s,pVq,Goq,sl,QAu,eb,aL,Ol,$1s,tkj,kol,q7,Wnn,rt,A9v,Rq,m1u,uau,Yx,Mkq,qm,d1Q,Ul,D1w,xx,ng1,aUq,Knw,jAv,s4,y9w,ZU,wU,hT,tT,q77,Rkt,J97,AT,$7,r9v,BLt,mL,uJ,Y7T,Zqv,aT,LnT,yg,bJ, dU,U1T,Vkn,vR,eau,YD,opu,OF,gU,Ln,He,xD,wPj,SU,tVq,krt,WKn,Icd,Qt,ALs,$2,vpM,k2,MV1,DL7,Ir,npQ,acs,OCq,KKw,rLn,Bil,YVv,Mb,XPd,gpn,lcl,iL,qb,VV1,Rr,SVj,Bk,fcw,Y2,Xq,Eaw,Gyw,QGt,Hw7,sGd,zV,TV,wDT,hDj,$2d,tXu,kyu,W0j,AH,me,vM,IEq,Ym,da,uTd,Km,cM,yU,Fm,naM,aEn,rO1,JH,Obj,K0l,Lm,Sa,ibu,qYv,Bsw,ym,EO,YYl,$b,t0,kb,VXQ,Wy,SYn,F0q,Ip,vy,WM,de,DX,ap,OO,aA,HrM,E7s,GLw,jF,cy,Nt,P0w,y1,Qqq,bH,$n7,Ags,J0,ufq,re,Mjt,UO,dnv,Ch,xb,n7v,aNt,TY,OrU,f2,p2,Hp,brq,iru,hv,$Z,qx1,Av,up,vp,Jgn,B_s,j3,cp,Yxl,Zrv,C0U,g7U,LAt, rz,yP,T_s,Vjw,Zy,pQM,zc,tyQ,eg,IYd,wo,A8u,mqQ,kG,u9u,Dqs,aYU,Oul,CT,KYU,DN,b3,c8v,NxU,RM,ro,y8n,LYQ,wm,lY1,WS,Uqd,AU,xqd,mE,Txw,vS,MN,Dl,nQ,a0,Op,FYs,KQ,jL,ek,HNt,xnM,NN,GJT,UmU,Xk,mmu,QSU,iw,sSn,oiU,Sb,sNt,R0,h8q,$5l,BS,ovw,kJT,WyM,IaQ,m5M,usv,M0j,d5n,aaU,bG,zu,iq,RqQ,VL,SL,tg,ONu,FP,FAn,E$,Kyl,i0,jSt,JU,bNu,t$,Wj,Jej,uc,vj,O$,KB,giw,Lyd,DY,lav,Vt,rw,Bj,o6,YS,z8Q,V0u,lUl,Zg,LB,SBQ,Fy1,KJU,EYj,G4v,zeU,oYq,eCu,zm,Tm,do7,wRq,$QU,WT1,IBT,HK,iT,G2,sq,mQv,uk1,e4,EMq,Y9v,h2,t2,kA,WK,w9M,BV,jeU,c_t,NHs, nD,y_l,ihs,J_Q,r_M,cK,ix,IP,Rc,gYt,J2,xQn,BK,YA,vnq,V_Q,ZK,FTw,pRw,LJq,Cq,fD,pD,Gz1,lJ,jWv,PYu,PG,QO,m7s,WG,uu7,Af,vxU,MG,Mbu,dr,yO,ZNu,bl,yud,zY,bTn,iTU,RbU,x5l,Kh,JuU,Jf,Xvq,gxw,l01,T1,zsj,VO,fO,pO,U7v,x7w,s0,gvn,w1,Wm,In,uv,vm,TJ,FMn,d9,an,O0,vP,Lu,EDM,Glw,yK,bv,Jr,r9,lv,s6Q,xC,FX,fd,pd,Ec,PC,kl7,SV,Iv1,Qo,ATt,mAv,sc,uh1,ov,MUT,DAj,vvd,Ia,ml,uQ,nDM,avt,KLt,j6U,sL7,cC,Nc,mB,bQ,yTQ,qc,qnd,JY,LF,Uc,zA,rTM,Vo,BUl,Y4s,FV,ZnT,ck,gDU,Ek,zSQ,G$,sk,TUu,Cq1,peu,Ql,e$,GVT,srQ,tbt,o2M,XY1,wLu,uU,wkw,DQ,kV1, c3,i3,N6,Ien,kS,SK,mbq,RJ,uqw,dbv,ZQ,KOt,c31,e3,y3l,z$,qj1,RRl,S$,jy,Ijd,m2T,r3t,Kd,GR,Yjt,ZiU,CLT,wI,$c,mh,LOu,lev,Ubv,rL,u1,FOw,pk1,vaQ,Hmv,Ml,MT,$Bd,Wej,jt,cg,OqU,I9Q,i1,Kw,AHv,Onw,$x,uEn,tKq,Bg,Hu7,Xp,DBT,mD,hW7,a9l,OmQ,l1,Kes,WJv,xc,Na7,dm1,yHl,M7,bm1,Ma,Vb,iM,Au,St,Fp,fz,Hu,Ed,YDt,Gg,Zm1,COM,Leu,e1,hx,tx,zwq,VaU,f9d,pMU,H2l,cz,dP,GYj,n7,PHM,S4s,spu,Ax,obU,y2,mX,eZw,tFU,kYM,A0M,rP,mtU,Yv,Bu,vbd,Py,MFU,dtj,nbU,Z5,C7,gP,L7,aXs,KDj,FW,NeQ,V2,qOT,RZ1,U5,J0s,Slq,r0Q,dH,P3,YOU,CH1,Gn,gbu,LDt,lXl,Utq, o9,xtq,zZM,Te7,VFv,SOQ,fXQ,Oj,pyw,HAw,PJq,hZ,Bv,tZ,kw,fvd,Qbn,I7,AZ,wpj,h3M,uT,MH,Dz,t3s,Blj,a7,OR,Iyn,nN,m3n,cn,ygn,NH,d3M,nZ1,qH,ayt,OAM,r$,LO,XG,qWu,Zz,CV,g$,KSj,LV,l5,jbQ,Sl,dt,yvv,bAs,Es,tL,Gb,Qs,oX,Jvt,Bzd,vZq,YS7,ZA1,sV,gZl,hq,nvQ,Jb,pYt,eGU,RX,CB,FSQ,ppv,Wk,ZM,C_,Htu,g0,GtT,WY1,L_,P3j,lV,QMu,zb,Tb,UW,Vs,htd,$al,TR,IJu,Hb,uWl,rn,Mgq,Em,Dal,d7U,jM1,sm,oo,eh,cbt,oM,w6,Nos,itU,Wu,h4,qyM,e8n,Bow,YyT,X2l,C3l,gGl,LZ7,A4,m6,u_,Ua1,hU,d6,xad,ao,wd,ztU,ybn,jh,zad,Tod,N_,xQ,VgT,FZj,J4,XJ,b5w,g6,LH,QK, Um,xH,YL,p2M,tz,oS,PwU,hwn,GF,PT,Qp,KZn,o6n,ee,pF,eQM,wSu,ce,hQU,U4,WT,II,kuU,SS,IlM,mNl,zQ,ML7,xj,Wv,bQT,MB,D8,qps,RQu,Y4,Ypn,XQ,Zm,XS1,CR,Du,LR,X4,nO,U1,zF,jV,Se,FQ,fR,Chj,JJj,UN1,ca,Tml,VLq,E8,mk,Gk,AG,GmM,Gy,s8,o1,wp,$J,tD,s2n,oS1,W$,nW,v$,MW,dp,hp,Vyu,OBq,YJ,Xz,gp,j2t,omq,k1,WZ,Ao,U9v,x9M,vZ,z6n,Fz,dG,TwT,n1,Pxv,Qc7,scM,jv,wKM,h0t,cZ,Kq,$$Q,Nz,t4q,Ms,k2n,IKQ,A2l,u47,vAM,M4v,iAn,rG,BZ,c2u,y27,LBu,Uh,JbU,$C,zp,U$u,x$t,z0T,T1t,f1,HI,fKT,pKl,vyq,BfQ,KBq,Mqq,Im,DGv,nyn,DFU,mI,uB,wGj,w$,MD,wW,ae1, vg,bOs,rfU,YNt,Br1,hdj,CN,XGu,Clj,WDs,gyj,Lhw,xmQ,qD,OV,fJu,BI,xGM,zll,YN,ZH,Vqq,SMv,gQ,ECU,Pvq,Gq,BmM,G1,ojn,PF,A_l,oC,wb,sns,CFt,oCQ,tB,kE,e$U,wml,zR,h$v,$ss,IW,DsM,u7,vF,D2,n0,aGj,mGt,Ot,Kkd,jnl,Zdl,jP,CvU,RC,MO,xs1,z$v,GUj,VDq,ID,S0n,O5,XZ,ra,Z2,C0,gb,L0,wq,FkM,iqw,fGv,l7,pm1,q4,mw,GAv,PQl,QaU,zG,TG,sad,Wo,Vn,o_1,kL,f0,p0,ePT,wCd,XMd,HA,jvq,G6,zCn,$cU,oh,Wlw,zr,s9s,v4,lBl,mcl,kl,KO,iml,IL,AK,m2,n_M,auu,OFs,jaj,k$,cYT,N8t,yYj,bFM,iFu,qcu,dk,JY7,UD,cu,Ii7,Oo,MYq,KE,cA,OU,Tk,TnT,QP,ZFw,g_1,LlQ,iu, yH,Rh,$ow,JK,xc7,rk,BA,VYU,Yl,FlU,fuQ,ZF,D$l,Q6v,ogQ,aJ,CE,LE,HXQ,lL,z6,EL1,G$M,Fl,vil,M_,HN,QJn,sJ1,G_,Amw,m6n,unu,D6U,aQv,ke,OXQ,KFl,NCw,ymT,WN,bXw,Ro,svQ,Aa,RUd,yE,bP,X3v,ZX1,Mz,Zd,CZ,CEq,H3s,oZ1,gCd,gLt,gN,uk,LZ,FLu,x6n,mB7,TCl,V$M,Yb,Skw,FFT,Hzd,P1U,Qfj,sfQ,S9,hmv,$lM,SS1,zdu,ttn,kRv,fZ,ISQ,Jp,AG1,fNQ,JE7,mlT,Px,upQ,o8,eE,tu,vcv,hi,dlt,Dlu,Bp,uBd,rm,jfn,Wx,cGq,tb,Ft,lB,Tg,bx,d4,DL,dW,NIM,yGs,a8,cj,edv,izv,q5j,jE,iY,cx,b7,RmM,WQ,bj,JGU,rGQ,BIM,zQv,xLw,C1t,Ji,Mr,lSd,YO,XK,Uls,TLn,xlq,ZL,TI1,Lc, lj,U2,ER,VtT,S5Q,pgs,c9q,V9,PNu,wuU,fc,Tt,pc,C5,UF1,Hh,kg7,Gd,Ph,I5Q,Axu,QT,D5,wK,Hv,oD7,nfU,O7j,ty,AB,WLl,Ix,NPQ,i7s,Iu,EQq,kx,mz,IUn,fY1,XuM,uY,Tr,l5u,U0t,x0s,TPu,jR,Nd,gt,V1u,bd,Sdl,Fs1,emv,id,xv,f5U,Kt,rK,PL,HVU,Bh,Ew7,Cpq,Zi,Gnn,ZA,Nn,Xg1,IV,ob,L9,xG,ld,owM,Kn,U8,s5,eH1,xK,Ki,wnQ,gAT,XL,hHv,$Hw,knl,DbM,Td,WpU,SR,Ff,CA,Nr1,qqt,uG7,Ml1,dHM,ki,DHw,azs,OVU,j7M,cZv,Gcs,rbT,so,N$n,Hs,yZ1,bVT,GX,$qu,iVQ,zl,B$U,kD,sA,lO,Jm,C5l,gwu,lz7,M1,xHq,zHd,hR,tR,T$7,Vlu,Ws,I0,I4,JB,tPu,mj,ue,pH,vs,T7,SRw,Fp1,fzs, a4,PVn,sXn,ie,eMl,OJ,JR,wav,hMT,$gs,tOt,K1,Wfv,IMQ,Cl,xp,Aqj,J3d,bV,oGn,GQ7,Jv,MOT,M$t,UA,Aq,Dgs,M0,f_,aMu,YBT,TX,Rm,Kfq,i5,jXs,Tsw,qsu,HH,RM7,As,Jqt,Uj,Xm,hD,M2,Ysq,GC,Z_s,CVt,oj,lMu,x7,xgt,RwT,WH,Ij,juv,n2n,n2,m8,ug,Sst,MU,Ffs,dB,fBu,Dh,paq,OH,HH7,U3w,Am,Re1,EH1,GIs,Ke,hK,jI,EyQ,Qoq,cH,jq,gq,so7,efd,wbv,Zc,Jw,thq,rB,W6w,BH,gft,IwU,A4U,eww,Yh,d_q,Zh,D_n,Ce,ch,pC7,Ll,gB,Le,uj,nc,$0,xh,Hg,zC,We,y4Q,jY,qU,bHd,qmM,Rfs,r4Q,O1,HU,C_j,L6q,lwt,Ge,qB,S_,PMM,x_s,uw,GJ,T6j,Vhu,Smq,F61,hh,fwM,$8,$S,q$Q,q2,HRl, pPM,Ah,E47,P8n,mH,sIq,vU,MI,ak,Ob,jz,BN,b1,$4T,tet,kFn,KAT,bI,POw,qI,WGd,Rk,j5,Y8,ImT,XV,v4U,YC,XY,Z4,k0,n4w,ORu,g2,Lg,lI,Ub,x8,ze,KGw,Te,Sz,FY,WI,jIM,IJ,$tq,qBd,Nqs,Bdw,et,E3,bRn,q1u,K_,REd,F7,Jpu,Bql,Y1u,XTQ,C87,oi,w_,e6,flM,lmu,U4U,X9u,nSl,ZzT,Tqt,Ven,Ii,DF,u2,MJ,FGU,LpM,HUd,HS,Ru,EJq,HR,Dt,Psq,s1l,oJu,ehT,w$7,hh7,SY,no,K3,jg,ai,Ko,H7M,c5,hSj,NJ,tNM,Yj,i2,qJ,Ri,Wit,XP,VS1,Ins,mWM,uG,GV,uzU,DW7,yp7,Xv,Efn,Zt,vfw,Lo,OHn,Uy,h8,xF,rq,OU1,KiM,z8,j1d,Kwn,HJ,inn,Er,Gf,bUu,iUw,E2u,mQ,rDt,PJ,Q8,f0q,X$Q, ZUl,gJj,mg1,sr,fC,Ja,lnw,S3,EH,xWT,VNt,ef,D5u,wk,Qw,ey,iHd,vA,wQ,hc,S8T,FiM,he,X9,$z,p$u,kz,WJ,hG,IR,SB,Z6,Pbu,mm,QV1,sVt,oAw,un,eT1,B5,CG7,Mp,dM,$zQ,Gr,tvd,Or,KI,kpT,WUt,IxQ,Aow,mz7,PR7,dzd,Dzj,$n,mos,Yz,Xc,P5,dQ,CI,axM,lNU,KhQ,KUs,gM,Q97,jVj,cot,GN1,NGn,YE,Tf,V8,ekw,Sf,yow,i1d,Afv,ys,SxT,mM,Gi,Joj,H3,wB,Pl7,SO,Man,vC,YhT,pz,$Aw,rv,Cbw,oF,g1j,pi,eW,LUl,hC,jO,F6,$d,tC,czU,ENU,RT1,Tz,PBv,AC,qhv,m1,EJ,iBv,smU,K0,Ns7,Xu,oNT,e2U,vX,$Dj,dy,ZCn,ww,Cr,t5T,O8,k9d,WIq,cv,Jq,IHd,aBv,jW,A7U,zz,of,bW,QIv,$_q, nU,M5T,RF,Nr,JC,j6,dD7,Mu,S1q,ks,ZJ,Xi,ZD,xs,c07,FZ,aHu,nC,Scw,lW,jm1,xd,IA,NQd,y7d,Ti,VN,SW,iLU,Fi,pJ,q07,oc,R2n,Gj,r71,BQn,YIj,sY,zPu,pt,szv,ZLl,yn,Ew,wc,CBv,U$,Jf7,P_d,gNl,hk,$5,Qd,tk,cr1,w2,Id,Ak,pIQ,m4,EEt,vW,nn,Kf,ji,UA1,qO,eqj,cW,C1,Nj,cv1,e9w,DM,i_7,Wwj,Yms,qj,Rd,Qzj,t7v,X_,hRM,Tl,uu,kG1,uVl,FUM,b17,hTv,Xx,uZ7,yEQ,A7,ADs,DZs,AR,rs,J4l,nEn,XW,zj,U_U,O0d,Ae,i7,Tj,A2,dWq,pf,cBT,A$T,H8,N_1,kO,D4d,b0U,nYs,AZt,pQ,i07,qt7,R9w,nF,dq,ebl,rBl,R0T,C7q,gEn,l2M,UZs,xZM,W8,A_,TbT,ta,sp,Fuq,Y7,fi,Eld,IQ, A1,G6Q,mq,uz,kp,Pus,v8,MS,dj,Qhn,JZ,BU,nK,erj,vG,fH,ptQ,hrQ,Ye,W2n,U3,k4Q,Lt,R7,py,KK,US,IFn,AKl,vll,drq,B8T,q0,Drt,aF7,K2u,jhq,lE,uq,cKq,qo,kEd,yKs,jn,cDn,iEs,FKs,qoQ,B8,JKM,EA,XAq,CF,AOq,Xr,Cy,lFM,dLd,dQt,lQ,WW,zr1,$A,RI,xo,zx,N6n,eL,VC,QLd,ou,aml,G_l,N$,Qyu,xJ,k$7,eAt,Ur,rN,fK,tSQ,hAT,pK,$YM,PE,k_d,Cz,zbl,WQj,AaQ,mYn,u7w,veT,M97,o5,LIs,wP,vYM,FIj,OZM,Q6,jod,bWt,jN,$B,Xz1,tt,caw,v2s,yaM,I5,iZU,qEU,rau,XNd,ZZl,qp,CPn,eq,ld7,UY1,F0,xY7,v5,DA,ok,zAQ,TNs,uS,mF,vE,XjU,FQ7,M8,DP,JT,nP,Hcw,a5,jzt,b3q, G0M,m$v,hu,Wp,Pju,sJ,Bpw,bT,Q8U,Yf,bdM,y4,eSM,XZU,wxt,hvl,$h1,R5,rT,BE,tEU,P7n,YB,eN,XS,ocu,ZP,fE,W5j,ILT,uKd,A3M,Mg,s9,vOQ,fl,Dq,Exd,gT,iQQ,dht,Tu,ZW,DhU,nOq,aLv,WE,Oc7,Yi,Tkn,rf,HdU,K5u,ciu,lS,btv,o2,N41,Asu,bcv,Aw,Xf,dI,ggj,QQ,Uz,q2s,h2v,Th,Kl,Rvt,x6,SZ,tLU,lyQ,sS,FS,Jit,fP,hEv,zfd,pP,ri7,xNw,B4u,Xxw,Zcl,fo,Pd,CjQ,d$,ZBM,gOs,hf,CH,ec,le,VA,lE7,BF,zvQ,T4Q,PK,VEQ,fLq,mZ,zMQ,H9s,kV,yiw,EKs,RSs,oKT,lP,pLM,BY,eOl,Ozd,whu,nGv,hOw,DNj,zDt,iRt,Nh,OL,IA1,Qr,Ayt,mdn,sht,OM,ubd,MRw,EI,bEj,vd,tg1,ULQ,ddv, aAn,t8,O9M,jxv,cyt,ME,yyU,aV,Zw,u5,T31,gKw,go,LzT,e7,Pg,FeU,Uds,TKn,af,VRM,Fzl,TiQ,Hls,j8Q,GXu,Q4l,s4w,nI,Ov,WET,hjw,$u1,tM1,wv1,UzU,Wjt,G0,ARq,m4t,ti,ne,jl,u0w,vsM,g01,wYt,MMl,duU,Du1,bZ,By,w0,ns7,R6U,iZ,HW,kZ,RK,aOj,Nvj,D0l,nMn,blt,z2q,$Wj,ild,kmM,Rju,zf,X$,ejn,rRd,Mvv,TG1,bB,po,RV,xY,js,Lju,UU,Uu1,N0v,Ca,xuT,zjj,TvU,Ry,fad,VMU,hGn,Uv,cuU,zO,psl,Heu,Ehq,GCQ,PgU,Qjt,sjv,NZ,sH,oh7,oQQ,I8M,ept,fa,NpM,Xb1,hpv,Lz,weu,$Uq,j4t,kCU,cF,sO,kB,zL,E_,W8l,Ihv,Awu,vh7,rQ,MIU,dUl,DUd,e_,nhu,R2,ahQ,oO,Gt,SJt,UHq, cwt,KIj,ywv,bel,$Zq,HT,ieT,qHj,Rpu,x2,QC,JwT,HM,rws,DH,RL,BG,zd,nV,BBw,m0q,OB,YHT,Zen,qQ,Zuw,pNw,Mq,Cgw,j9s,di,kr,W_,IF,L8Q,lhl,Usv,uW,T81,zpd,lg,SHT,F8u,AI,pHl,o1M,tG,yz7,ODU,Lwt,q8s,$Y,xB,My,dg,wu,r_,wUq,LK,Xo7,h1U,Dr,I4v,ho,AhM,yC,rUU,mI7,uYU,Kp,v8t,dIU,nt,I2,DIj,n8Q,tuj,M4,j2,mhn,OgQ,bc,KHv,jk1,lAw,us,Qpu,chd,es,N2v,yhd,Y2v,uV,K7,Ny,Ddv,pX,Rhq,cV,yz,bgT,igw,qbs,H_,bA,R1t,qy,Jhl,rhq,z0,B2M,NwM,kdu,JI,LXl,YbQ,VJ,XUv,Zgq,N3,ES,CIt,g8u,PP,LHl,Dd,$L,l4M,bDs,wVt,yY,Yr,Zr,uls,UIt,cJ,Sbj,k1d,ofv,Hov, PI,EF7,t0v,sil,e4n,tqw,w5v,J_,h4M,d6l,nJd,k8T,KF,YH,zK,Ycj,ItT,Sr,Alt,mJ7,VD,MyU,ig,DJn,S2,lL1,Y0u,nFv,sI,atw,Lf,VW,Oos,Kxu,NAQ,kXt,Ks7,VIM,yld,OEl,sU,bo1,Igj,ioq,q3t,pp,R4T,Jls,nHU,kLs,pg,rlQ,Y6,e5,BAu,qF,a0n,Hq,h7,Zo1,C2j,d$v,Ea,gFj,LT,LxT,lt7,xJ7,V6l,MSq,eF,Dv,GP,S3j,Fxj,q9,kkn,fA,CX,Sqq,ftt,B61,UB7,p5n,HIv,Ezd,ncM,Gfu,Pnj,QRq,sRu,Sov,Hn,ozq,eoj,phw,oP,gv,ho7,o0,Vv,vb,HG,q6,Ju,kbw,KE1,wT,DJ,IqM,Act,nz7,Iy,R8s,IdQ,vY,ycQ,Qa,GFs,SE,iIw,qrn,uM,rcQ,P_,AS,BMt,XJd,oI,Gbd,Ac,eM,Lmq,lqw,s$,mr,u$,MfT,dE, EnQ,Rv,Vfd,Jzs,pe,$7T,Qk7,QNs,qC,kin,g4M,a5l,ACu,vt,Zq,Pq,lp,Ucd,bn,mij,PH,t3,uiM,Rz,MWn,JS,diu,pl,CP,Al,DiU,va,Q2d,ndq,aDu,utQ,VT,Rzn,cCv,L2q,Nyj,yC1,vE1,bJM,WFv,PX,iJs,XX1,z1w,ZJT,gsv,gdw,K6,vSw,Sj,L17,EE,lDU,vk,eI,xiq,jst,B3,Tyn,CWd,N5,Kz,FPt,VWU,sB,fDn,QFn,pXl,P8,mp,Gjj,cE,sdd,o5n,vNw,hLt,J7T,$jt,oQ,dGw,L0d,B97,zI,Ua,Qr1,rqt,IWj,QA,Akq,mjw,uxs,v5T,x9,Meu,MiT,djl,DjQ,hm,zP,TP,LP,K4d,o4v,aWl,Vh,FM,jdU,ckM,Ncq,ykl,p6,Hw,bfU,ifs,zcq,g9,qww,rkM,Bcj,aO,LA,XWM,Zfn,E0,Cod,g51,zt,x1u,GM,mT,ce7,jf,lWw, on,Iz,Lh,Ujn,Tcd,oN,N7,QX,Vi7,Sw1,nJ,tO,F47,e0s,l$,s1,o3,pWq,HE,EoT,BL,R6,fI,SAj,Gxw,QQd,Nl,sQq,t6s,ooU,mOw,Upt,JO,eBw,gSn,w8s,hBv,Liu,F37,M6u,lT,om,r6,A$,tsq,Wq,kx1,WqU,IkQ,A1j,mST,UI,AQ,Mss,Dx,DST,rYl,TK,$1,PPj,CJ,L6,ESM,vw,j0U,SLM,MP,akl,GA,rU,Xns,dD,AvM,uO,Kql,jQ7,OI,Shu,Q2,Njw,m_d,U_,bKt,iKu,Rj,j4,Pk,RB7,P2w,s7l,J1t,WX,X8,YQM,QY,sd,lkQ,US1,xSu,a3,JLn,zBw,wQl,Zk,SQq,EbQ,YLM,EBs,pb,PSQ,s5u,TL,hkQ,eJ1,vzU,wEq,lxM,hJw,w2Q,jQ,iDv,nu,khv,g6u,VK,WWl,ZKt,f7,Ttd,vBQ,mG,MXv,MZj,Nnd,mU,gl1,kNM,d8d,Cd,d2, ic,yX,Fqq,l2,KWu,NTw,VOl,Ail,ot,yA,hyd,iPv,dgn,qz1,XM,RJs,rtu,RW,Cn,Aew,BTw,uA,idw,YzT,G9,XE7,R3,vgn,CSM,gBl,Eq,It,LWQ,G4,T0,Vz,lPs,zJ7,f61,uQ1,fd7,Szq,qz,fPq,pEs,Qx,HaU,oV,GO7,MNT,Ys,mn,ZZ,oVQ,eiw,vK,s0l,hil,RO,H5,Io,$Ew,wMv,Yrl,tcd,kOT,L4,cU,lf,O3,Isl,XQU,awv,A5U,cm,KA,u6v,iV,u$l,Bkn,vVQ,Fv,uN,Pw,MKM,Ug,UQ,dEQ,RsU,DEU,IQj,cHM,ast,Oaw,c5t,to,NRj,gr,Xk7,Os,OQ,Eit,LFT,QJ,wWM,Riu,Ius,J57,TO,r5U,mA,sQ,BRT,At,K$M,gV1,BPv,L$Q,$E,DDt,HfU,HOl,ZG,zis,TRw,R1,nr,rv1,Svt,Na,F$U,VV,H_u,fsn,sW7,pdn,Hpd,ox,GkT, M7w,FH,Erd,GKw,r1,PAq,n9,etQ,eIw,mK,w_q,hIU,$yv,t21,HB,AJ,ET,Ct,z4,Wbq,Q7Q,AIq,u87,PB,Dyd,nrs,xM,Wg,ApM,arU,OpT,QF,cIM,zv,Ss,c$w,ipl,Ep,wIj,CnT,UDQ,oE,qn,q_Q,Go,RIq,CJd,mY,JI7,W$M,Eh,Iz7,eA,k8,Bgl,wO,pT,X_v,Zpw,CA7,LEl,grs,Lbn,W9,rpw,lrQ,cqU,X6,UL,Om,Tgd,V2U,f6,frs,CZ1,oFt,U5t,DYl,Mcs,Fb7,H6w,E97,udt,p8n,Ggq,$Ss,h7Q,cN,$Cd,jqt,tC1,O1d,kPl,fMj,aS,LSj,Wz,hN,buM,xOd,Zld,uMt,SNU,MC7,GZU,dCs,HEM,$3,wM,clM,ZRU,Og,sg,DC1,Ceu,n9n,aou,O6U,lsw,Kr7,lGn,$D,N17,Dm,qau,R7u,LX,WB,QV,o9M,JSl,qN,xAd,IE,rS1,Ok,q1, BE7,AN,hPM,mx,zGt,cI,Yau,mo,tju,B2,XqQ,Z6M,PW,uX,m8w,Yos,yl,uH,vK7,uR,FHn,sMQ,Vzv,yv,MK,$K,Dn,C$n,$l,dO,Xl,g9d,fT,dZj,aPd,eD7,Lrj,XH,Hm,nk,To,xCU,zou,o7,pa,aE,TMs,uyT,z7u,TEQ,U7,g$v,VCQ,$3U,EU,Su,pT1,Kk,Saq,o4,Oh,puM,iA,jrQ,HV,I6,UV,fod,wA,B1Q,pqw,Qi,SI,H4w,jA,EtM,GMw,J5,HZ1,b2,AUQ,pAw,VX,p_l,xt,s3w,jOd,I6t,F5d,uSw,KL,biu,exU,i21,en,wwv,pZn,OOw,Q5l,SDv,$Pl,tQd,Vr,HKd,hB,AQd,W3,dc,vts,Dnq,j5T,MQn,njj,dPU,La,E$q,DPj,XdQ,qh,ntQ,ZN,RE,aZU,ih,O4s,qkl,I9,OJQ,K9l,$bt,j3l,HD1,c4u,kMq,b4w,i4u,BT,Je,Xp1,bpq, qgn,RxM,rO,JQj,i_,tU1,wZs,fSj,bk,Z4U,VKl,Cfj,kc1,Ck,Ku,gtM,gO,yx,i$,L9U,lZ,t$7,Sk,xPQ,zxv,pGj,Bs,Lk,VQt,F9u,Ydn,fZ7,pws,Hks,R9,E3w,TN,hsn,Gsu,lX,nAU,CNU,PXn,mEn,NS,q9j,qUU,EQ,C4,sEt,wn,eO,o37,vq,ht,L5,rxQ,egj,yqj,qi,tAs,Fk,x3,zs,lH,Dw,Wo1,cOn,dYq,Vd,Giq,I7Q,xg,ANs,mKq,Trn,jKj,Wb,aQ,MAq,dK7,DKM,wx,n3Q,a7w,YWs,kIw,Kou,fX,Vss,sFq,XB,jEw,VF,cN7,cg1,NOQ,yNu,Ha,cJt,qTv,F5,Rgu,eL1,rNU,fq,jRt,BOl,YTu,Xmw,aX,bu,rIj,M5,Yw,XKQ,eC,iI,CRd,VAv,t7,Fmv,STl,GeQ,r0,TAj,Vm,FoU,fm,Pcl,Gdt,P$,Euw,aj,Nkv,Bxu,agQ,ac,QH1, JRj,pvT,uvq,OiU,TOn,Z1M,S27,ouQ,cw,Bvw,e5s,$61,xi,EZ,jC1,KT,n1t,BDM,ucs,aN,h5M,Q3j,anT,BQ,Da,PGU,EO1,gcw,wt7,Mj,Mh,JNU,vJs,Qt7,Y$,AAv,mMd,uDU,Oku,i51,Y$s,wqU,vuq,xov,uCv,Zhw,dMw,DMl,Vp,Rcd,OW,aIt,kH,OvM,vh,Kbn,K_Q,hA,J7,$u,ls,d07,BD,eET,rH,Ud,v3d,BSj,rrt,XO7,Zv1,CtM,lRs,CTn,ku,loM,gus,xMu,z5Q,bIu,VH,yw,k9,bz,WO,qY,K1u,SZn,WU,fIw,bS,pOT,Ra,OLw,lvn,EWt,GHw,Tp,PDT,XIt,JAn,Y5t,TBU,sYu,AA,oWQ,eVu,wiQ,Ppj,v_,T,WHv,Re,D8Q,xEn,m_,wr,zyj,P$s,W_s,TM,MA,$fd,txM,mCT,W7u,qds,j$,Po1,APQ,ut,aI,wAT,sD,Mxv,dx,MM, dfQ,Dfv,aVq,mus,$p,cP7,fQ1,urM,UEn,NVj,pZ,yPM,ln,Qe,qs,J2n,P5U,Pp,qeT,jo,r2,Yc,Qh,$4,cO,KMn,NM,sss,yJ,iQ,yc,p3q,BVu,Yed,$V,jiu,OtT,XCv,rev,onl,b5,Auv,CDl,Oc,Zal,XC,IX,RH,OZ,lVn,xfv,OKw,bo,zVT,TV1,Vx7,nKT,ib,HO,G1v,F7T,$H,ZEj,EF,fVq,S_t,zg,LLQ,Dk,pit,vz,EIn,tR7,G51,PCQ,NNn,mrM,YMU,swT,QXv,Wa,eFu,w6w,WSs,O3q,rS,JDu,mi,Zyv,hCU,tTn,YgM,k5t,E_u,PU,BO,iS,otw,Yp,bLv,FK,NMu,AFt,mk1,XRv,YwT,CC,Yu,uN7,VZ,Q9,xZ,dkw,OPQ,v6v,oH,Dkt,nIu,a_M,poT,nE,KgU,jwM,th,U0,cFt,gR,Mc,rR,Bx,ox1,NB1,yFt,hFM,YAj,KZ,bYl,iYt,o$u, oEd,qfv,A9,QR,jD,RFq,Kc,wgq,ZI,Yfd,X6q,ZYs,evw,rg,oHt,y$,gIQ,niw,hld,gS,kc,cR7,l_t,lt,Ukl,v2,Wr1,Ztt,eRt,Lov,UZ,Fg7,tm,E1,$N,HBn,f_U,HGw,xrw,Ekw,D3j,$rq,ZIt,K9,tZq,nX,odt,Hj,SC,Jx7,nol,Zx,sZU,Css,O7,Hbv,io,XE,okQ,wy1,qr,TW,pm,tYd,yf,e_n,wcs,fqn,h_U,Eo,jU,t81,ez,oBl,k3l,JtM,Wan,IZ7,uPl,Ips,ru,nWQ,SA,qQM,F4,uot,vkn,jC,Hx,Ejt,fv,Bm,pv,tc,UT,Y8Q,mxM,vrv,$pU,gW,MrT,jZM,Cun,UH,T0u,l7l,o71,UJT,lH1,ZTu,se,JPq,E5u,Jc7,kjq,Nhj,yjM,Ex,K61,THj,JL,II7,q6U,vB,h0,LL,VUv,oY,y11,rjM,Qq,Bh1,a4M,Gh,Y6Q,Rx,Xcq,ZGt,AY, Cau,gn,Uin,x8M,u_w,A8,Ntq,LaU,xpn,Kzs,Qz,TaU,PWj,lpQ,wV,UxM,vQ,$8U,xxM,Yvw,N8,k7l,J8M,Z7u,Olq,j7,AYU,f7U,yr1,F1n,mFl,v$1,z_w,V8v,$W,H$1,b$,S6u,NY,LW,mpM,fpd,TC,tP,Sju,IM,IY,Un1,pcl,x37,ad,KX,S6,HSs,uD,uh,pV,voM,vi,R8,EPs,Tjs,Gau,be,xh7,Gc,eU,Pij,QUt,fmU,ij,T2l,ud,TDj,gk,SfM,eH,HYU,esM,Mzd,U2T,sUv,T9n,yDw,JD,dB1,cq,QKU,wy,Ar,cQ,VTs,O_,oPM,eXt,DV,qSn,rHd,$vj,twq,Z7,Faq,d8,Vrv,qa,M17,h$,V6,kad,n$,nv,eyM,nd,Ic,Hvj,F_u,UPt,d_,WVl,Gp7,I3l,E2,du,AV7,BCj,w4,B_,ei,mvM,S7M,ip,Pu,nev,j9,mD1,ax,vPM,Mw1,cct,KPn, dvT,Rf,Dvd,nPu,nL,qW,Srv,Kg,a3n,y$M,OSn,WY,yt1,UQT,pE,WMt,Us,JVn,tIw,bN,ZDq,rVn,BXw,fAw,FB,bZn,YKM,wXq,Xrs,hL,aM,lc,nxT,$r,ZS7,Ci7,Gvu,NP,gPU,M3U,i$v,aY,LV1,Jk,l3Q,Dp7,K$,$o,FD7,UvQ,$G,xvu,VE,O4,PLl,iXv,V3M,Cwu,keU,Vwq,hVs,hgv,YM,nZ,FEt,SKs,Yo,e77,squ,f3n,VY,wR,pru,Hxl,Eq1,P9u,Q_j,FhT,s_Q,oqj,at,hYt,oOU,$wM,wj,Lks,Ngn,cR,fJ,IXj,H5U,gkq,kDT,Wx1,ci,WP,TdM,Wcl,Kpd,Wht,Ifu,B0M,AMU,rP1,NKU,b_s,Nf,DZ,we,Dwu,elM,stU,nqq,yj,ZY,Cm,M_n,afw,zLt,SN,fr,Ox7,Kc1,fht,NA,IO,j_u,y_,HLn,$k7,J9,gg,rQu,fe7,mP,JUq,VQ, f$l,OA,Edd,TXq,yQj,vv,g2M,uP,gz,bD,gy,NJd,yMv,yfw,gaQ,IOn,Czt,b$s,R37,m7,iD,v7u,fFT,ixl,Md,RYn,kv,bzw,nlj,Gx,Jz,Ng,tWn,x_,JMQ,s2,dpM,Be,B3U,mHj,rMj,BJw,tS,GhT,Yu1,sPQ,d1,X1T,d41,p7,X7,ZxM,bxv,C9U,apU,lz,cjU,YUM,jj,gqt,Qm,zM,hbM,N9s,r4,xB1,BP,fQ,tlj,Lcw,zYd,Lqs,Sn,ye,TJ7,tA,Vmw,$s,QZ,xKj,dV,gH,NF,SuU,bbt,Jrn,Eed,w3,fy,xu,Fc7,iJ,D4,Sg,WOq,ffu,p1T,eR,H8l,ETM,GSn,P6v,c8,Qsv,UU7,jb,Ld,euQ,wfQ,dK,hun,zn,M2v,dqw,Qn1,tGw,kSM,I3,qKn,FjM,BM,H1s,Za,fkn,t_1,M8n,CCq,Jg,jM,WNu,Vu,Sq,l9T,Ibw,Ik,A6M,daw,V3,Cg,TU, mX7,pSv,BnQ,ugq,Bws,vTt,Ajq,JmU,c$,Hhn,C6,xe,Iv,FD,XDT,vH,gA,Odj,N9,w1v,k5,aR,pI,MGv,IH,Zb1,Bw,yT,gj,ql,dXq,DXQ,nTn,Q_,KNw,rC,Cp,jlw,yu,Io7,np,XVj,GK,uFQ,Ba,N7v,cL,Rt,cG,Qf,bf,z91,o8U,nBs,y6t,osd,pJ7,YFu,b87,FVu,yh,i8u,qiU,Ruw,Kv,Oq,Fx,J6l,r6n,Kld,B77,YiM,ts,oy1,fe,Zv,tq,dn,C6u,sF,gTs,LNs,Vf,ND,UXt,X5,fk,gE,JG,$Gj,wG,Bi,xXs,n_,T77,jHd,zgQ,Xn,P9,W4u,UCw,VG1,E6d,FNU,fbn,n0U,pfs,l3,JA,lll,wTU,HMw,Tv,Bju,zzd,YW,yIl,Tx,jcd,ms,Co,a9,LfU,GB7,JQ,Oa,$Jd,Prd,by,Q$Q,s$Q,dA,X2,ZV,C$,UW1,PfQ,UhM,YRn,luj,hUT,Hgt, dFM,yed,Vcj,rE,oUM,G7,KC,XX,vd7,KdQ,Gu,RVv,Rt1,pFd,f2M,Qv,dN,zU,hKl,sT,IGn,tp,ZVd,rmq,r8w,yr,$Rd,SM,pq,$F,QN,EL,Zo,Ad,BH1,wE,kB1,NC,q5,gV,Mf,oIU,ZPM,AnM,mRl,uwq,bq,p9,KV,vUj,is,tdM,Pn,G81,$$,TFl,MdM,rEv,fnM,gzq,HJt,dRM,NDv,sL,Ofw,nUn,Nb7,OMM,wrv,Fn,PIs,Xwu,SgQ,pUM,t5,j$U,ev,T9,ae,lD,tzw,Ue,rV,cnQ,NZd,UKU,NU,ynl,c6t,jLM,zH,rD,bMl,TH,wC,Y3,qGu,RKn,SEn,$g,Jnv,rnn,Wn,Vw,Vl,ul,Tp7,vJ,aH,G9n,X7v,tmq,uE,KjT,ZMM,Do,hy,yd,Z2n,Vj,Sx,gUl,PaU,k4,JP,HP7,oTM,Rb,mW,I0u,rKl,Cr7,Kmj,J$,JTU,w7l,F2,d0,wBU,ni,lCu,xRv, zK7,TZM,iz,n6,Sej,$Ls,nh,L5v,Ux,xn,Oe,p7Q,Jh,Hs1,SUs,T6,yq,l6s,cAu,AP,a6,Cv,FI,fWq,PEw,OE,rM,FWt,V51,p1,P4q,qE,sOq,QgT,GPq,HX,mn1,adj,nwl,gjj,FC,V4,cfs,jZ,sgn,eNw,w07,hNw,Nl1,qS,XHn,$eu,tJv,Oy,ub,kwn,$v,$iU,hZl,Wh,ITw,LQQ,fEv,F$,Zj; mv=function(H,E){var G=new G7(H,E),P=["This setting only applies to the current video. Adjust caption visibility in "," for all videos."],Q;g.sn(H.K())&&(Q={J:"div",Y:"ytp-panel-footer-content",V:[{J:"span",iJ:P[0]},{J:"a",Y:"ytp-panel-footer-content-link",iJ:"Settings",j:{href:"/account_playback"}},{J:"span",iJ:P[1]}]});g.os.call(this,"Subtitles/CC",g.td.SUBTITLES,H,E,"Options",function(){g.kQ(E,G)},Q); var e=this;this.S=H;this.Ru=E;this.tracks={};this.D=new g.Wt(function(){Hw7(e,!1)},3E3); g.d(this,this.D);this.countLabel=new g.D({J:"div",V:[{J:"span",iJ:"Subtitles/CC"},{J:"span",Y:"ytp-menuitem-label-count",iJ:"{{content}}"}]});g.d(this,this.countLabel);g.Is(this,this.countLabel);H.U("web_settings_menu_icons")&&this.setIcon(EQq(H.U("delhi_modern_web_player_icons")));this.L=new Ad(H,E);g.d(this,this.L);this.L.subscribe("select",this.Bb,this);this.G=G;g.d(this,this.G);this.G.subscribe("settingChange",this.CR,this);E.subscribe("show",this.XYo,this);this.Z(H,"videodatachange",this.r5); this.Z(H,"onApiChange",this.r5);this.Z(H,"onCaptionsTrackListChanged",this.r5);this.Z(H,"captionschanged",this.r5);H.createClientVe(this.element,this,127300);this.r5()}; G7u=function(H,E){for(var G,P,Q,e=H.window;;){if(H.y8<=258){uU(H);if(H.y8<=258&&E===0)return 1;if(H.y8===0)break}H.Fm=0;if(H.y8>=3&&H.J7>0&&(P=H.J7-1,G=e[P],G===e[++P]&&G===e[++P]&&G===e[++P])){for(Q=H.J7+258;G===e[++P]&&G===e[++P]&&G===e[++P]&&G===e[++P]&&G===e[++P]&&G===e[++P]&&G===e[++P]&&G===e[++P]&&PH.y8&&(H.Fm=H.y8)}H.Fm>=3?(G=vt(H,1,H.Fm-3),H.y8-=H.Fm,H.J7+=H.Fm,H.Fm=0):(G=vt(H,0,H.window[H.J7]),H.y8--,H.J7++);if(G&&(MT(H,!1),H.ey.NV===0))return 1}H.OR=0;return E=== 4?(MT(H,!0),H.ey.NV===0?3:4):H.wX&&(MT(H,!1),H.ey.NV===0)?1:2}; PUd=function(H){var E=null,G="Your browser doesn't support changing the volume. $BEGIN_LINKLearn More$END_LINK".split(/\$(BEGIN|END)_LINK/);E=new g.nw(H.S,{J:"span",QN:["ytp-popup","ytp-generic-popup"],j:{tabindex:"0"},V:[G[0],{J:"a",j:{href:"https://support.google.com/youtube/?p=noaudio",target:H.S.K().L_},iJ:G[2]},G[4]]},100,!0);g.d(H,E);E.hide();E.subscribe("show",function(P){H.S.Fv(E,P)}); g.as(H.S,E.element,4)}; On=function(H){this.SR=H}; ju=function(H,E){E=Kw(E);return E===0?0:Kw(H)/E}; X1=function(H){if(H.L){var E=H.L.getAttribute("data-tooltip-text");if(H.G&&H.L.getAttribute("aria-label")!==H.G)var G=H.G;var P=H.L.getAttribute("aria-keyshortcuts"),Q=H.L.getAttribute("data-title-no-tooltip");P&&Q&&(G=g.ct("$BUTTON_TITLE keyboard shortcut $SHORTCUT_KEY",{BUTTON_TITLE:Q,SHORTCUT_KEY:P}));G&&H.L.setAttribute("aria-label",G);if(E&&!H.B){Qsv(H,!0);var e=H.L;H.updateValue("text",E);G=e.getAttribute("data-duration");H.update({title:H.G,duration:G});e=e.getAttribute("data-preview");H.env.U("delhi_modern_web_player")? (H.updateValue("title",Q),H.updateValue("keyBoardShortcutTitle",P.toUpperCase())):Qsv(H,!1);P=243*H.scale;Q=141*H.scale;H.bg.style.width=P+"px";H.bg.style.height=Q+"px";H.bg.style.backgroundImage=e?"url("+e+")":"";H.bg.style.backgroundSize=P+"px "+Q+"px";H.wrapper.style.width=P+"px";g.rl(H.element,["ytp-text-detail","ytp-preview"]);g.Bt(H.element,"ytp-has-duration",!!G)}else Q&&P&&H.env.U("delhi_modern_web_player")?(H.updateValue("text",Q),H.updateValue("keyBoardShortcut",P.toUpperCase())):H.updateValue("text", H.G),g.YQ(H.element,["ytp-text-detail","ytp-preview","ytp-has-duration"]);G=H.L;G.hasAttribute("data-tooltip-offset-y")?(G=Number(G.getAttribute("data-tooltip-offset-y")),G=isNaN(G)?0:G):G=0;sss(H,!!E,void 0,G)}}; Lw=function(H,E){if(E)for(var G=0;G0){var w;(w=H.dP)==null||w.start()}}; fw=function(){}; g.Ho=function(H){if(!H.playerResponse||!H.playerResponse.annotations)return null;H=g.R(H.playerResponse.annotations);for(var E=H.next();!E.done;E=H.next())if(E=E.value,E.playerAnnotationsExpandedRenderer&&E.playerAnnotationsExpandedRenderer.featuredChannel)return E.playerAnnotationsExpandedRenderer;return null}; g.EC=function(H){return H instanceof Array?H:tuj(g.R(H))}; g.Q3=function(H){return H[H.length-1]}; sC=function(H,E,G,P,Q,e,w,t){g.J.call(this);this.W=H;this.L=E;this.G=G;this.Da=P;this.D=Q;this.C_=e;this.d5=w;this.l4=t}; $M=function(H,E,G){if(H=eH(H,E))return G(new wu(new hJ([H])))}; Wvl=function(){var H={};var E=H.hi5===void 0?!1:H.hi5;H=H.Fq===void 0?!0:H.Fq;if(g.Un("_lact",window)==null){var G=parseInt(g.tJ("LACT"),10);G=isFinite(G)?Date.now()-Math.max(G,0):-1;g.kM("_lact",G,window);g.kM("_fact",G,window);G==-1&&Wo();k7l(E,H);new ID(function(){AJ("mouse",100)})}}; Adu=function(H,E){H=Ijd(H.app.UR().B);H=g.R(H);for(var G=H.next();!G.done;G=H.next()){G=G.value;var P=G.getAvailableAudioTracks(),Q=null;P=g.R(P);for(var e=P.next();!e.done;e=P.next())if(e=e.value,e.getLanguageInfo().getId()===E){Q=e;break}Q&&G.mD(Q,!0)}}; mTs=function(){md&&typeof md.google_measure_js_timing!="undefined"&&(md.google_measure_js_timing||uK.disable())}; g.vo=function(H,E){H.C=E||0;E=H.G.uc;H.G=null;return E}; g.Mo=function(H,E,G){return Math.min(Math.max(H,E),G)}; u1l=function(H){var E=du()&&nW()>=67&&!H.api.K().B;H=H.api.K().disableOrganicUi;return!g.aD("tizen")&&!KW&&!E&&!H}; No=function(H,E){g.J.call(this);var G=this;this.G=[];this.B=!1;this.W=0;this.T=this.C=this.D=!1;this.p_=null;var P=(0,g.co)(H,E);this.L=new g.Wt(function(){return P(G.p_)},300); g.d(this,this.L);this.L_=this.N=Infinity}; vQs=function(H){if(H=H.A7("html5_web_po_experiment_ids"))if(H=H.replace(/\[ *(.*?) *\]/,"$1"))return H.split(",").map(Number);return[]}; dTU=function(H,E){return H.enabledEngageTypes.has(E.toString())||Mus.includes(E)}; g.iK=function(H,E){var G=Array.prototype.slice.call(arguments,1);return function(){var P=G.slice();P.push.apply(P,arguments);return H.apply(this,P)}}; DTQ=function(H,E,G,P,Q){var e=qo(H.W.get(),G);e?(G=RD(H,ru(e),e,void 0,void 0,P),E.hasOwnProperty("baseUrl")?H.D.send(E,G):H.G.send(E,G,{},Q)):xQ("Trying to ping from an unknown layout",void 0,void 0,{layoutId:G})}; g.Bo=function(H){return encodeURIComponent(String(H))}; Z$=function(H){YM.call(this,"sabr");this.gP=H;this.L=[]}; UC=function(H){var E=g.CW(H.app.K()),G,P=(G=H.app.getVideoData())==null?void 0:G.g6;H=LW(H.app);return g.lK(E)&&!P||H?!1:!0}; nQn=function(){var H=["metadata_type_ads_engagement_panel_layout_view_model","metadata_type_linked_player_bytes_layout_id"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_PANEL"]}}; TZ=function(H,E){var G=g.Un("CLOSURE_FLAGS");H=G&&G[H];return H!=null?H:E}; g.Hz=function(H,E){g.D.call(this,{J:"button",QN:["ytp-play-button","ytp-button"],j:{title:H.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"k","data-title-no-tooltip":"{{data-title-no-tooltip}}"},iJ:"{{icon}}"});this.S=H;this.L=null;this.transition=new V3;this.tooltip=E.Zi();g.d(this,this.transition);H.createClientVe(this.element,this,36842);H.logVisibility(this.element,!0);this.Z(H,"fullscreentoggled",this.onVideoDataChange); this.Z(H,"presentingplayerstatechange",this.onStateChange);this.Z(H,"videodatachange",this.onVideoDataChange);this.Ca(H.getPlayerStateObject());this.listen("click",this.If,this);this.addOnDisposeCallback(g.SH(E.Zi(),this.element))}; ajq=function(H){function E(G){G.stack&&G.stack.indexOf("player")!==-1&&H.jR().m3(G)} Pz.subscribe("handleError",E);QS.push(E);return function(){Pz.unsubscribe("handleError",E);var G=QS.indexOf(E);G!==-1&&QS.splice(G,1)}}; Owl=function(H){var E=H===void 0?{}:H;H=E.Gc===void 0?!1:E.Gc;var G=E.De===void 0?!1:E.De;E=E.Kz===void 0?!1:E.Kz;return H?E?3:2:G?-1:1}; oW=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-ad-disclosure-banner"},"ad-disclosure-banner",E,G,P);this.hide()}; KvU=function(H,E){E=g.eS(H.W,{gV:E},function(G,P){return G.gV-P.gV}); return E>=0?H.W[E]:null}; g.$m=function(H,E){jst(H,{Wdm:g.hE(E.experiments,"bg_vm_reinit_threshold"),cspNonce:E.cspNonce,Yx:E.Yx||""})}; km=function(H,E){return typeof E==="string"?H.getElementById(E):E}; mJ=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){G=G.value;var P=Wz(H,G.timeRangeStartMillis/(H.G.L*1E3),IW(H)),Q=H.api.U("delhi_modern_web_player")?.667:.6;g.AE(G.element,"transform","translateX("+P+"px) scaleX("+Q+")")}}; cdU=function(){this.L=this.JA=null}; uy=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ad-simple-attributed-string"},"ad-simple-attributed-string",E,G,P);this.hide()}; df=function(H){var E={delay:vz(H),stall:H.B.BK()||0,byterate:MO(H),init:H.T$},G=H.D[0];G.stamp=Math.round(H.C/36E5)*36E5;G.net=Math.ceil(H.E7);G.max=H.interruptions[0]||0;E.interruptions=H.D;return E}; g.n5=function(H,E){return H==E?!0:H&&E?H.width==E.width&&H.height==E.height:!1}; bws=function(H,E){var G=H.W[E],P;(P=H.G)==null||P.dispose();g.X(G,aW)?Nl1(H,g.X(G,aW),H.macros):g.X(G,O9)&&yd7(H,g.X(G,O9),H.macros);H.L=E}; K5=function(){this.L=iwv[0].toLowerCase()}; Bz=function(H,E,G,P){var Q=P!==void 0;P=!!P;var e=cz(NO),w;!Q&&yS&&e&&(w=H[e])&&by(w,qnd);e=[];var t=H.length;w=4294967295;var k=!1,W=!!(E&64),I=W?E&128?0:-1:void 0;if(!(E&1)){var A=t&&H[t-1];A!=null&&typeof A==="object"&&A.constructor===Object?(t--,w=t):A=void 0;if(W&&!(E&128)&&!Q){k=!0;var m;w=((m=iy)!=null?m:qO)(w-I,I,H,A,void 0)+I}}E=void 0;for(m=0;m=w){var v=m-I,n=void 0;((n=E)!=null?n:E={})[v]=u}else e[m]=u}if(A)for(var O in A)t=A[O],t!= null&&(t=G(t,P))!=null&&(m=+O,u=void 0,W&&!Number.isNaN(m)&&(u=m+I)=0)return!0;try{var E=new g.TE(H)}catch(G){return g.VS(Ynq,function(P){return H.search(P)>0})!=null}return E.C.match(Xtu)?!0:g.VS(Ynq,function(G){return H.match(G)!=null})!=null}; f5=function(H,E){SS(H,E.reason,E.L.info,E.token,E.videoId)}; H9=function(H,E,G,P){!H&&(G===void 0?0:G)&&g.p5(Error("Player URL validator detects invalid url. "+(P===void 0?"":P)+": "+E));return H}; EN=function(H){var E=Number(H);return E==0&&g.xm(H)?NaN:E}; Gv=function(H,E){H.index=g.Mo(E,0,H.length-1);H.startSeconds=0}; g.sN=function(H,E){H.src=P9(E);Qm(H)}; CUQ=function(H){var E=0,G=NaN,P="";if(!H.L_)return{startSeconds:E,QT:G,source:P};H.videoData.IJ?E=H.videoData.zT:oN(H.videoData)&&(E=Infinity);if(g.eP(H.videoData))return{startSeconds:E,QT:G,source:P};H.videoData.startSeconds?(P="ss",E=H.videoData.startSeconds):H.videoData.tH&&(P="stss",E=H.videoData.tH);H.videoData.liveUtcStartSeconds&&(G=H.videoData.liveUtcStartSeconds);if(isFinite(E)&&(E>H.VG()||E=15){$n(29,E);var k=E[h[16]]+(E[h[16]]?h[82]:h[53])+E[h[10]]+E[h[8]];if(ts(70,E)){var W=[];g.kn(E[h[6]],function(m,u){m!==null&&W[h[36]](u+h[14]+m)}); k+=h[59]+W[h[51]](h[77])}var I=k}if((H&108)==H){var A=g.X(E,lj1)||E[h[71]];k={m$:!1,Op:h[2],tV:h[2],s:h[2]};A?(A=W9(A),k[h[55]]=!0,k[h[47]]=A[h[26]],k[h[5]]=A[h[88]],k[h[42]]=A[h[42]],I=k):I=k}if(!((H^69)&14))for(E=(E%G[h[4]]+G[h[4]])%G[h[4]];E--;)G[h[73]](G[h[90]]());(H-9&7)==1&&(I=E(e,w,t));return I}; UTn=function(H){H.D&&(H.D.resolve(H.mediaElement.getCurrentTime()),H.p_.W=null)}; m3=function(H){if(!H.playerResponse)return!1;if(H.JZ)return!0;var E=H.videoData.U("html5_onesie_audio_only_playback")&&As(H.videoData);if(H.sM&&H.X1){if(!H.sM.has(H.eN))return!1;var G=H.sM.get(H.eN),P;if(P=G){P=!1;for(var Q=g.R(G.eq.keys()),e=Q.next();!e.done;e=Q.next())if(e=G.eq.get(e.value))for(var w=g.R(e.YK),t=w.next();!t.done;t=w.next())t.value.HV>0&&(e.VS?P=!0:E=!0);P=!(E&&P)}if(P)return!1}H.QG("ofr");H.Aq.resolve(H.playerResponse);if(!H.KV){var k;(k=H.eJ)==null||k.start();H.DJ.start()}return H.JZ= !0}; xTl=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next())uM(H,G.value.slot,!1)}; zqn=function(){this.L=g.v9;this.array=[]}; Mm=function(){g.z7.apply(this,arguments)}; dd=function(H){return H.nodeType==9?H:H.ownerDocument||H.document}; n3=function(H){if(H!=null&&typeof H!=="string")throw Error();return H}; Tld=function(H){var E=H.WF;isFinite(E)&&(aN(H)?H.refresh():(E=Math.max(0,H.T$+E-(0,g.ON)()),H.T||(H.T=new g.Wt(H.refresh,E,H),g.d(H,H.T)),H.T.start(E)))}; SnM=function(H){this.lJ=H;this.WO=this.rH=this.T$=this.T=this.D=this.E7=this.Yp=this.p_=!1;this.B=this.C=0;this.hm=!1;this.WF=!0;this.MZ=!1;this.lV=0;this.gr=this.PF=!1;this.ox=!0;this.eR=this.z$=!1;this.L={};this.G6=this.dP=this.ML=this.disableAv1=this.s7=this.b8=this.au=this.FI=this.W=this.N=!1;this.Jm=0;this.qC=this.lJ.U("html5_disable_aac_preference");this.gt=Infinity;this.O7=0;this.jT=this.lJ.z6();this.U2=this.lJ.experiments.xp("html5_enable_vp9_fairplay");this.UT=this.lJ.U("html5_force_av1_for_testing"); this.AT=this.lJ.Bo().L.A7(Vu7);this.BF=g.hE(this.lJ.experiments,"html5_av1_ordinal_cap");this.Fa=this.lJ.U("html5_disable_hfr_when_vp9_encrypted_2k4k_unsupported");this.cK=this.lJ.U("html5_account_onesie_format_selection_during_format_filter");this.Xo=g.hE(this.lJ.experiments,"html5_max_byterate");this.V8=this.lJ.U("html5_enable_iamf_audio");this.yG=this.lJ.experiments.xp("html5_allow_capability_merge");this.AG=this.lJ.U("html5_enable_encrypted_av1")}; Nm=function(H,E,G,P){K3(H);var Q=H.VN;jP(Q,Q[c9]|0,E,G,P);return H}; bM=function(H){return new ym(function(E){return E.substr(0,H.length+1).toLowerCase()===H+":"})}; rd=function(H){if(H<0){iM(0-H);var E=g.R(qm(RN,Js));H=E.next().value;E=E.next().value;RN=H>>>0;Js=E>>>0}else iM(H)}; B9=function(){this.L=this.W=0}; g.Yn=function(H,E,G,P){this.left=H;this.top=E;this.width=G;this.height=P}; C3=function(H,E,G,P,Q,e,w,t,k){Xm.call(this,H,E,G,P);this.d5=Q;this.SR=e;this.C=w;this.T=t;this.Da=k;this.D=!1;this.B=Zi(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; g.C=function(H,E){H.prototype=FvU(E.prototype);H.prototype.constructor=H;if(gd)gd(H,E);else for(var G in E)if(G!="prototype")if(Object.defineProperties){var P=Object.getOwnPropertyDescriptor(E,G);P&&Object.defineProperty(H,G,P)}else H[G]=E[G];H.j7=E.prototype}; lM=function(H,E,G){G=G===void 0?240:G;g.D.call(this,{J:"button",QN:["ytp-button","ytp-copylink-button"],j:{title:H.U("player_tooltip_data_title_killswitch")?"{{title-attr}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-opaque":String(g.L3(H.K()))},V:[{J:"div",Y:"ytp-copylink-icon",iJ:"{{icon}}"},{J:"div",Y:"ytp-copylink-title",iJ:"Copy link",j:{"aria-hidden":"true"}}]});this.api=H;this.L=E;this.W=G;this.visible=!1;this.tooltip=this.L.Zi();E=H.K();this.tooltip.element.setAttribute("aria-live", "polite");g.Bt(this.element,"ytp-show-copylink-title",g.L3(E));H.createClientVe(this.element,this,86570);this.listen("click",this.onClick);this.Z(H,"videodatachange",this.r5);this.Z(H,"videoplayerreset",this.r5);this.Z(H,"appresize",this.r5);this.r5();this.addOnDisposeCallback(g.SH(this.tooltip,this.element))}; fj1=function(H){var E,G;return{requestNumber:((E=H.eR)==null?void 0:E.tR())||-1,isDecorated:(G=H.eR)==null?void 0:G.info.isDecorated()}}; UN=function(H,E){return Blj(H,E,!0)}; HWw=function(H){return ptQ(H)}; PKQ=function(H,E,G,P,Q,e,w,t){var k=xn(H.C_.get(),1);if(EMq(H.Da.get())){var W=zv(H.W.get(),G,P,Q,k.clientPlaybackNonce,k.m8,k.daiEnabled,k,e,w);GZU(H,W);Tv(H.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return W},E)}else Tv(H.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return zv(H.W.get(),G,P,Q,k.clientPlaybackNonce,k.m8,k.daiEnabled,k,e,w,t)},E)}; SP=function(H,E){E||(E={});E[Vm(H)]=!0;var G=H.stack||"",P=H.cause;P&&!E[Vm(P)]&&(G+="\nCaused by: ",P.stack&&P.stack.indexOf(P.toString())==0||(G+=typeof P==="string"?P:P.message+"\n"),G+=SP(P,E));H=H.errors;if(Array.isArray(H)){P=1;var Q;for(Q=0;Q4);Q++)E[Vm(H[Q])]||(G+="\nInner error "+P++ +": ",H[Q].stack&&H[Q].stack.indexOf(H[Q].toString())==0||(G+=typeof H[Q]==="string"?H[Q]:H[Q].message+"\n"),G+=SP(H[Q],E));Q0&&$ow(12E4,H-1);throw E;}; kZM=function(H,E,G,P,Q,e,w,t,k){var W=E;w===1||(w!==4?0:2&E||!(16&E)&&32&P)?tO(E)||(E|=!H.length||t&&!(4096&E)||32&P&&!(4096&E||16&E)?2:256,E!==W&&k0(H,E),Object.freeze(H)):(w===2&&tO(E)&&(H=WV(H),W=0,E=IT(E,P),P=jP(G,P,Q,H,e)),tO(E)||(k||(E|=16),E!==W&&k0(H,E)));2&E||!(4096&E||16&E)||AO(G,P);return H}; Wdd=function(H,E){var G=Math.min(2.5,vz(H.mZ));H=mX(H);return E-G*H}; g.vV=function(H){return/^TVHTML5/.test(uk(H))}; ny=function(H,E,G,P){var Q=H[c9]|0,e=dW(Q);Q=D8(H,Q,G,E,e);jP(H,Q,E,P,e)}; I$n=function(H,E){if(E<0)throw Error();var G=H.L;E=G+E;if(E>H.G)throw Error();H.L=E;return G}; AJd=function(H,E,G){return aT(OW(H,E),E,G)}; uRl=function(H){var E=[];if(H.L.reason==="m"||H.L.reason==="s")return E;if(mos(H.ou)){for(var G=Math.max(0,H.N-2);G0?qF(93,P,I[h[17]](0,A),I[h[17]](A+1)):I&&(P[I]=h[2]);var m=[E,G,P]}(H+9&22)>=H&&H+8>>1=H&&(m=G(P,Q,e,w,t,k));(H|48)==H&&G[h[36]](E);return m}; a$T=function(H){H=H||JO();for(var E=new do7(g.lU.location.href,!1),G=null,P=H.length-1,Q=P;Q>=0;--Q){var e=H[Q];!G&&DoQ.test(e.url)&&(G=e);if(e.url&&!e.L){E=e;break}}Q=null;e=H.length&&H[P].url;E.depth!==0&&e&&(Q=H[P]);return new nMn(E,Q,G)}; OWw=function(H){var E={};H.forEach(function(G){E[G[0]]=G[1]}); return function(G){return E[G.find(function(P){return P in E})]||""}}; yJv=function(H,E,G,P,Q,e){if(!E)throw Error("Invalid event type");var w=g.rW(Q)?!!Q.capture:!!Q,t=BV(H);t||(H[Y0]=t=new XL(H));G=t.add(E,G,P,w,e);if(G.proxy)return G;P=KdQ();G.proxy=P;P.src=H;P.listener=G;if(H.addEventListener)jDQ||(Q=w),Q===void 0&&(Q=!1),H.addEventListener(E.toString(),P,Q);else if(H.attachEvent)H.attachEvent(cJt(E.toString()),P);else if(H.addListener&&H.removeListener)H.addListener(P);else throw Error("addEventListener and attachEvent are unavailable.");Nus++;return G}; iWv=function(H,E,G,P,Q,e,w,t){Q=Q===void 0?G.schedule:Q;var k=g.Z8(H,Cy);if(k=bWt(E,k))return gW({un:k.Qx,V$:k.signature},E,G,P,!!H.Dg,Q,e,w,t)}; Ly=function(H,E){if((E=H.eq.get(E))&&!E.f0){E.f0=!0;if(E.onProgress)E.onProgress();a:{E=g.R(H.eq.values());for(var G=E.next();!G.done;G=E.next())if(!G.value.f0){E=!1;break a}E=!0}E&&H.L.iO()}}; zq=function(){return qCl||(qCl=new UW(null,x0))}; Tq=function(H){this.Da=H;H=Math.random();var E=this.Da.get();E=g.hE(E.S.K().experiments,"html5_debug_data_log_probability");E=Number.isFinite(E)&&E>=0&&E<=1?E:0;this.L=H0){var w=P.getUint32(G+28);e+=w*16+4}var t=P.getUint32(G+e-4);try{var k=RWl(E.subarray(G+e,G+e+t));if(k!==null){var W=k;break a}}catch(I){}}G+=Q}W=null;break a}catch(I){W=null;break a}W=void 0}if(W!=null)for(E=V6(SB(W,7,void 0,FL)),E==null||H.wV||(H.cryptoPeriodIndex=E),E=V6(SB(W,10,void 0,FL)),E!=null&&E>0&& !H.wV&&(H.L=E),W=fy(W,2,JJj,void 0===rJ7?2:4),W=g.R(W),P=W.next();!P.done;P=W.next())E=H.G,G=E.push,P=py(P.value),P=g.H4(P,4),G.call(E,P)}; YCn=function(H){var E=H.offsetWidth,G=H.offsetHeight,P=g.E7&&!E&&!G;return(E===void 0||P)&&H.getBoundingClientRect?(H=Go(H),new g.P4(H.right-H.left,H.bottom-H.top)):new g.P4(E,G)}; gMU=function(H,E,G){Xo7(H,H[c9]|0,function(P,Q){if(Q!=null){var e=ZWv(G,P);e?e(E,Q,P):P<500||Ql(CKu,3)}}); (H=RW(H))&&by(H,function(P,Q,e){oA(E,E.L.end());for(P=0;P0&&(this.L[E]=0);this.G=0}; zWj=function(H,E,G,P,Q){var e;E!==((e=H.L)==null?void 0:e.U7)||H.W===1||P||H.L.kt.event==="predictStart"||H.g5("sdai",{undecevt:1,sq:E,mt:G,evt:H.L.kt.event},!0);E>H.C&&(H.C=NaN,H.B=NaN);H.L&&H.L.U7===E?xov(H,E,G,H.L,Q):H.W===1&&IA(H,5,"noad")}; Tuj=function(H,E,G){A9.call(this,"survey",H,{},E,G)}; VHU=function(H){mn(uF,v4,1,H)}; SCu=function(){this.L={}}; dL=function(H){this.track=H;this.buffered=[];this.G=this.D=0;this.C={};this.T=0;this.L=new M1}; jk=function(H){var E=DU;H=H===void 0?Fdt():H;var G=Object,P=G.assign,Q=aA(E);var e=E.L;try{var w=e.screenX;var t=e.screenY}catch(q){}try{var k=e.outerWidth;var W=e.outerHeight}catch(q){}try{var I=e.innerWidth;var A=e.innerHeight}catch(q){}try{var m=e.screenLeft;var u=e.screenTop}catch(q){}try{I=e.innerWidth,A=e.innerHeight}catch(q){}try{var v=e.screen.availWidth;var n=e.screen.availTop}catch(q){}e=[m,u,w,t,v,n,k,W,I,A];w=f$l(!1,E.L.top);t={};var O=O===void 0?g.lU:O;k=new O7;"SVGElement"in O&&"createElementNS"in O.document&&k.set(0);W=poT();W["allow-top-navigation-by-user-activation"]&&k.set(1);W["allow-popups-to-escape-sandbox"]&&k.set(2);O.crypto&&O.crypto.subtle&&k.set(3);"TextDecoder"in O&&"TextEncoder"in O&&k.set(4);O=H5U(k);E=(t.bc=O,t.bih=w.height,t.biw=w.width,t.brdim=e.join(),t.vis=Kq(E.W),t.wgl=!!md.WebGLRenderingContext,t);G=P.call(G,Q,E);G.ca_type="image";H&&(G.bid=H);return G}; EmU=function(){var H=g.c4.apply(0,arguments);return H.length===0?function(E){return E}:H.length===1?H[0]:H.reduce(function(E,G){return function(){return E(G.apply(null,g.EC(g.c4.apply(0,arguments))))}})}; N1=function(H,E){var G=G===void 0?0:G;var P;return(P=V6(SB(H,E)))!=null?P:G}; bF=function(H,E,G){var P=H.L.G,Q=yl(H.L)>>>0;Q=H.L.L+Q;var e=Q-P;e<=0&&(H.L.G=Q,G(E,H,void 0,void 0,void 0),e=Q-H.L.L);if(e)throw Error();H.L.L=Q;H.L.G=P}; iF=function(H,E){return H==E?!0:H&&E?H.left==E.left&&H.width==E.width&&H.top==E.top&&H.height==E.height:!1}; GEQ=function(H){var E=H.indexOf("#");return E<0?H:H.slice(0,E)}; RA=function(H,E){H=q1(H,E);return H>=0?H-E:0}; B4=function(H,E,G){H=H.VN;return J9(rL(H),H,void 0,E)===G?G:-1}; Yg=function(H,E){E=Math.pow(10,E);return Math.floor(H*E)/E}; QWq=function(H,E){if(g.Xa(Pys,E))return!0;var G=H.GA[E];return G!==void 0?(H.GA[E]=!0,!G):!1}; AET=function(H){var E,G={},P=H.Fo,Q=H.lJ,e=H.mZ,w=P.getVideoData(),t=ZU(0),k=P.getVisibilityState(),W;if((W=H.nS)==null?0:W.xx)G.L1=Q.L1;t&&(G.ULp=t,G.lastManualDirection=sW7(),t=omq()||0,t>0&&(t=(Q.U("html5_use_date_now_for_local_storage")?Date.now():(0,g.ON)())-t,Q.U("html5_use_date_now_for_local_storage")?t>0&&(G.timeSinceLastManualFormatSelectionMs=t):G.timeSinceLastManualFormatSelectionMs=t));t=Q.U("html5_use_streamer_bandwidth_for_low_latency_live")&&w.isLowLatencyLiveStream;if(e.p_&&!t){var I; t=Q.U("html5_disable_bandwidth_cofactors_for_sabr_live")?!((I=H.nS)==null||!I.o2):!1;G.w1=Cq(e,!t)}t=g.lF.medium;W=Math.floor(t*16/9);(I=w.hE())||(w.L&&w.G&&w.G.videoInfos.length!==0?(I=w.G.videoInfos[0],I=!!I.video&&I.video.width0?{authorizedFormats:H.authorizedFormats}:{authorizedFormats:E};H.sabrLicenseConstraint&&(G.Eg.sabrLicenseConstraint=H.sabrLicenseConstraint);if(Q.U("html5_onesie_media_capabilities")||xg(w))G.LQ=3;Q.U("html5_onesie_audio_only_playback")&& As(w)&&(G.LQ=1);var N;((N=H.nS)==null?0:N.Fa)&&H.G6p&&(G.LQ=G.LQ===void 0?7:G.LQ|4);N=w.dP?w.dP:g.zo(w);Q.U("html5_onesie_media_capabilities")&&(G.mediaCapabilities=g.ees(w,N,Q));var r;if((r=H.nS)==null?0:To(r)){m=Q.T;r=[];E=[];u=new Map;v=Array.from(m.L.values());v=g.R(v);for(n=v.next();!n.done;n=v.next())O=n.value,O.VS?E.push({audioCodec:wzl[O.K_],numChannels:O.numChannels,spatialCapabilityBitmask:hes[O.K_]}):(q=$Ot[O.K_],n={videoCodec:q,maxWidth:O.maxWidth||0,maxHeight:O.maxHeight||0,maxFramerate:O.maxFramerate|| 0,is10BitSupported:O.WM||!1},O.maxBitrateBps&&(n.maxBitrateBps=O.maxBitrateBps,k=Vl(O.itag),I=void 0,((I=k)==null?0:I.video)&&Sk(N,k,m)===!0&&(k=k.Xo*8,k>n.maxBitrateBps&&(n.maxBitrateBps=k))),O=q+"_"+O.WM,q=u.get(O)||[],q.push(n),u.set(O,q));r=tSQ(r,u);m={};Q.U("html5_ssff_denylist_opus_low")&&(m={itagDenylist:[249,350]});G.mediaCapabilities={videoFormatCapabilities:r,audioFormatCapabilities:E,hdrModeBitmask:3,perPlaybackAttributes:m}}var B;if((B=H.nS)==null?0:B.L){G.rH=N.rH;var l;G.lV=(l=H.nS)== null?void 0:l.lV}Q.hC&&(G.aB=Q.hC);G.Cq=H.Ko;G.CI=H.CI;G.cM=H.cM;G.tq=H.tq;H.rf&&(G.OMN=(0,g.ON)()-H.rf);H.B$&&Q.U("html5_report_prefetch_requests")&&(G.B$=H.B$);Fa||(G.Llp=!0);B=vz(e)*1E3;B>0&&(G.SQ=B);var S;((S=H.nS)==null?0:S.mH)&&H.Qt&&H.Qt0?z:e.interruptions[0]||0;var Pt;if((Pt=H.nS)==null?0:Pt.V8)G.Fl=H.Fl;Q.MZ&&(G.audioTrackId=Q.MZ);pq(w)&&!G.audioTrackId&&(Q.U("html5_fill_default_mosaic_audio_track_id")||(H=kEd(w),G.audioTrackId=H),w==null||w.g5("misstrkchg",{"default":G.audioTrackId}));if(w=WJv())G.detailedNetworkType=IRj[w]||IRj.other;Q.U("html5_enable_voice_boost")&&(G.Gcu=Q.qF);return G}; HP=function(H,E){H=SB(H,E,void 0,void 0,JJj);return H==null?zq():H}; EV=function(H,E){H.L=E;if(E>H.G)throw Error();}; vmd=function(H,E){if(!Gr(H)&&!H.Iu()){if(!(H.Jm||(H.Jm=!0,H.G>0))){var G=PP(H);G=Qv(H.policy.D,H.L.info,sV(H),G,H.policy.au);oP(H,G)}if(E.info.type===1){if(H.BY){hL(H,Error("Woffle: Expect INIT slices to always start us off"));return}H.initRange=$p(0,E.W.totalLength)}else if(E.info.type===2)H.BY&&H.BY.type===1||hL(H,Error("Woffle: Index before init")),H.indexRange=$p(H.initRange.end+1,E.W.totalLength);else if(E.info.type===3){if(!H.BY){hL(H,Error("Woffle: Expect MEDIA slices to always have lastSlice")); return}if(H.BY.type===3&&!tL(H.BY,E.info)&&(H.L_=[],E.info.U7!==kp(H.BY)||E.info.L!==0))return;if(E.info.G){G=g.R(H.L_);for(var P=G.next();!P.done;P=G.next())mOw(H,P.value);H.L_=[]}else{H.L_.push(E);H.BY=E.info;return}}else{hL(H,Error("Woffle: Unexpected slice type"));return}H.BY=E.info;mOw(H,E);udt(H)}}; dOM=function(H){var E=H.D.map(WP);H.W&&E.push(H.W);H.MS(E);H.L=null;H.B=null;E=H.S.getPlaybackRate();IP(H.S)&&MSq(H,E);!H.D.includes(E)||H.C?H.nm(H.L):H.nm(WP(E))}; g.DOT=function(H){H=g.AL(H);return mK(H[1],H[2],H[3],H[4])}; cEl=function(){this.G=void 0;this.W=this.C=0;this.T=-1;this.b4=new uT;vP(this.b4,"mv",nm1).L=!0;vP(this.b4,"omid",ML);vP(this.b4,"epoh",ML).L=!0;vP(this.b4,"epph",ML).L=!0;vP(this.b4,"umt",ML).L=!0;vP(this.b4,"phel",ML).L=!0;vP(this.b4,"phell",ML).L=!0;vP(this.b4,"oseid",aRv).L=!0;var H=this.b4;H.L.sloi||(H.L.sloi=new di);H.L.sloi.L=!0;vP(this.b4,"mm",Dc);vP(this.b4,"ovms",O5w).L=!0;vP(this.b4,"xdi",ML).L=!0;vP(this.b4,"amp",ML).L=!0;vP(this.b4,"prf",ML).L=!0;vP(this.b4,"gtx",ML).L=!0;vP(this.b4, "mvp_lv",ML).L=!0;vP(this.b4,"ssmol",ML).L=!0;vP(this.b4,"fmd",ML).L=!0;vP(this.b4,"gen204simple",ML);this.L=new KJU(nC(),this.b4);this.D=!1;this.flags=new jWv}; g.aP=function(H,E){for(var G in H)if(!(G in E)||H[G]!==E[G])return!1;for(var P in E)if(!(P in H))return!1;return!0}; Nfd=function(H){var E=H.jR();if(H.U("html5_disable_loop_range_for_shorts_ads")&&E.getVideoData().isAd()?0:OV(E.getVideoData())&&!E.xT())E=KC(H)*1E3-H.getVideoData().n8,H.U("html5_gapless_new_slr")?(H=H.Uo,jV(H.app,"gaplessshortslooprange"),E=new g.cP(0,E,{id:"gaplesslooprange",namespace:"gaplessshortslooprange"}),(H=H.app.jR())&&H.addCueRange(E)):H.setLoopRange({startTimeMs:0,endTimeMs:E,type:"shortsLoop"})}; Z5s=function(){var H=["pbs","pbu"];g.NL(function(){yv("").info.actionType="watch";H&&bT("TIMING_AFT_KEYS",H);bT("TIMING_ACTION","watch");var E=yEQ(g.tJ("TIMING_INFO",{}));Object.keys(E).length>0&&iT(E);E={isNavigation:!0,actionType:JL(g.tJ("TIMING_ACTION"))};var G=g.tJ("PREVIOUS_ACTION");G&&(E.previousAction=JL(G));if(G=g.tJ("CLIENT_PROTOCOL"))E.httpProtocol=G;if(G=g.tJ("CLIENT_TRANSPORT"))E.transportProtocol=G;(G=g.ri())&&G!=="UNDEFINED_CSN"&&(E.clientScreenNonce=G);G=b5w();if(G===1||G===-1)E.isVisible= !0;G=BP().loadType==="cold";var P=i51();G||(G=P.yt_lt==="cold");if(G){E.loadType="cold";G=i51();P=q9j();var Q=Yp(),e=g.tJ("CSI_START_TIMESTAMP_MILLIS",0);e>0&&!g.Xj("embeds_web_enable_csi_start_override_killswitch")&&(Q=e);Q&&(Zc("srt",P.responseStart),G.prerender!==1&&CC(Q));G=Re1();G>0&&Zc("fpt",G);G=q9j();G.isPerformanceNavigationTiming&&iT({performanceNavigationTiming:!0},void 0);Zc("nreqs",G.requestStart,void 0);Zc("nress",G.responseStart,void 0);Zc("nrese",G.responseEnd,void 0);G.redirectEnd- G.redirectStart>0&&(Zc("nrs",G.redirectStart,void 0),Zc("nre",G.redirectEnd,void 0));G.domainLookupEnd-G.domainLookupStart>0&&(Zc("ndnss",G.domainLookupStart,void 0),Zc("ndnse",G.domainLookupEnd,void 0));G.connectEnd-G.connectStart>0&&(Zc("ntcps",G.connectStart,void 0),Zc("ntcpe",G.connectEnd,void 0));G.secureConnectionStart>=Yp()&&G.connectEnd-G.secureConnectionStart>0&&(Zc("nstcps",G.secureConnectionStart,void 0),Zc("ntcpe",G.connectEnd,void 0));gi&&"getEntriesByType"in gi&&JE7();G=[];if(document.querySelector&& gi&&gi.getEntriesByName)for(var w in LC)LC.hasOwnProperty(w)&&(P=LC[w],rEv(w,P)&&G.push(P));if(G.length>0)for(E.resourceInfo=[],w=g.R(G),G=w.next();!G.done;G=w.next())E.resourceInfo.push({resourceCache:G.value})}iT(E);E=lT();E.preLoggedGelInfos||(E.preLoggedGelInfos=[]);w=E.preLoggedGelInfos;E=BfQ();G=void 0;for(P=0;P=0;P--){var Q=H[P];if(E.call(G,Q,P,H))return{qy:P,Tb:Q}}return{qy:-1,Tb:void 0}}; fRQ=function(){var H=["metadata_type_image_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; g.OY=function(H){g.D.call(this,{J:"button",QN:["ytp-large-play-button","ytp-button"],j:{"aria-label":"Play",title:"Play"},V:["{{largePlayButtonChildren}}"]});this.api=H;this.Z(H,"videodatachange",this.r5);this.Z(H,"basechromeinitialized",this.K87);H=this.api.K();H.B&&DE&&(this.listen("click",this.QuN,this),this.listen("touchstart",this.K1R,this));g.nb(H)&&g.aG(this.element,"ytp-large-play-button-red-bg");this.api.createClientVe(this.element,this,28572);this.r5()}; var pz1=function(){return H3s[h[7]](this,16)}; Kb=function(H){var E={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};H&&(E.interpreterHash=H);return E}; ya=function(H){if(!jX&&!cD||!N2)return!1;for(var E=0;E=0&&(this.T.mfpe=""+E),this.L_=!1);E="";g.Mn(this.W)? d_(this.W)?(P=G.W)&&(E="https://www.youtube.com/api/drm/fps?ek="+O3q(P)):(E=G.initData.subarray(4),E=new Uint16Array(E.buffer,E.byteOffset,E.byteLength/2),E=String.fromCharCode.apply(null,E).replace("skd://","https://")):E=this.W.W;this.baseUrl=E;this.fairplayKeyId=DN(this.baseUrl,"ek")||"";if(E=DN(this.baseUrl,"cpi")||"")this.cryptoPeriodIndex=Number(E);this.Jm=G.wV?[g.H4(G.initData,4)]:G.G;nr(this,{sessioninit:G.cryptoPeriodIndex});this.status="in"}; Kr=function(H){switch(typeof H){case "bigint":return!0;case "number":return Ox(H);case "string":return K3u.test(H);default:return!1}}; Ndv=function(H,E){if(!H)return!1;var G,P=(G=g.X(H,jNM))==null?void 0:G.signal;if(P&&E.GS)return!!E.GS[P];var Q;if((G=(Q=g.X(H,csl))==null?void 0:Q.request)&&E.Zk)return!!E.Zk[G];for(var e in H)if(E.zl[e])return!0;return!1}; yD=function(H,E,G,P){H.policy.W&&H.G3(!1,"rollback");if(H.ou.isManifestless){var Q=jj(H.audioTrack,P,G,E),e=jj(H.videoTrack,P,G,E);H.policy.AT||(e&&cQ(H.ou,P,!0),Q&&cQ(H.ou,P,!1));e&&(H.videoTrack.L_=[]);Q&&(H.audioTrack.L_=[]);H.g5("sdai",{rollbk2_seg:P,rbt:G.toFixed(3),lt:E.toFixed(3),a:Q,v:e});(Q||e)&&H.policy.W&&Nn(H)}}; g.b0=function(H){return H.GH.get("annotations_module")}; ysU=function(H){for(var E=H;H&&H!=H.parent;)H=H.parent,i0(H)&&(E=H);return E}; IT=function(H,E){return H=(2&E?H|2:H&-3)&-273}; g.eP=function(H){return oN(H)&&!H.allowLiveDvr}; i3t=function(H,E){return(H=b3q(H,E*1E3))?H.durationMs/1E3:0}; iR=function(H){return{toString:function(){return H()}}}; qNt=function(H,E,G){if(!H.L.has(E)){H.L.add(E);var P={};H.params.fM.LP(E,Object.assign({},G,(P.p_ac=H.params.adCpn,P.p_isv=H.params.PmR&&H.params.dO,P)))}}; JsM=function(H,E,G,P,Q,e){E=qn(H,E,G,P);if(E instanceof T)return E;var w=E instanceof Rq?new Rcd(H.L,G,E.L):null;P=Jg(H.W.get(),"SLOT_TYPE_IN_PLAYER");var t=[new r_(H.L,P)];H=[new BQ(H.L,G),new Y7(H.L,P)];e=e({slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f_:"core",slotEntryTrigger:E,slotFulfillmentTriggers:t,slotExpirationTriggers:H},w);return e instanceof Xf?new T(e):{slotId:P,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:E,slotFulfillmentTriggers:t,slotExpirationTriggers:H, f_:"core",clientMetadata:new ZN([new Cr(e)]),adSlotLoggingData:Q}}; rsn=function(H){return g.L3(H.S.K())?H.dX:H.WA}; Lr=function(H,E,G,P){E=H.y6.listeners[String(E)];if(!E)return!0;E=E.concat();for(var Q=!0,e=0;e0&&G.push(g.pu("BR"));G.push(g.HL(e))}):G.push(g.HL(P))}return G}; EB=function(H){this.VN=tz(H,19)}; Pks=function(){if(!Gqq)return null;var H=Gqq();return"open"in H?H:null}; g.QT1=function(H){var E=H.K();return E.WO&&!E.G&&g.L3(E)?H.isEmbedsShortsMode()?(H=H.qS(),Math.min(H.width,H.height)>=315):!H.jA():!1}; yd7=function(H,E,G){var P=new GJ(H.api,H.layoutId,H.interactionLoggingClientData,H.vF,H.D.bind(H));P.mx(H.T);P.init(PL("survey-question-multi-select"),E,G);H.api.K().U("supports_multi_step_on_desktop")?H.G=P:H.questions.push(P);g.d(H,P)}; sT7=function(H){var E;(E=navigator.mediaCapabilities)!=null&&E.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(G){G.smooth&&G.powerEfficient&&(H.WF=2160)})}; g.$i=function(H,E){Qf(H,1,E.bd,sB,3);oS(H,3,E.videoPlaybackUstreamerConfig);Qf(H,5,E.OW,wn,3);Qf(H,6,E.yW,he,3)}; ZWv=function(H,E){var G=H[E];if(G)return G;if(G=H.extensions)if(G=G[E]){G=o0d(G);var P=G[0].ZW;if(G=G[1]){var Q=eau(G),e=w_(Ag,Cb,mA,G).BM;G=H.qj?te(e,Q):function(w,t,k){return P(w,t,k,e,Q)}}else G=P; return H[E]=G}}; WL=function(H,E){ki.call(this,H,3,E)}; my=function(H,E,G,P,Q,e){Xm.call(this,H,E,G,P);this.SR=Q;this.aq=e;this.Zr=!0;IS(this.aq(),this);H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; vL=function(H,E,G,P){G+="."+H;H=uq(E);P[G]=H;return G.length+H.length}; $FQ=function(H,E,G,P,Q){if(!E.uJ.Dr()){if(!(Q=G===0||!!E.W.length&&E.W[0]instanceof M5))a:{if(E.W.length&&(Q=E.W[0],Q instanceof dn&&Q.l8&&Q.H6)){Q=!0;break a}Q=!1}Q||H.policy.L||Da(E);return G}var e=nN(E,G);if(!isNaN(e))return e;if(H.loader.E4(G*1E3))return G;Q.FV?H.policy.Fh&&(H=aS(H.loader,E),wVt(E.G,G+H,!0)):(E.ZD(),H.loader.G3(!1,"sta_"+ +E.uJ.info.VS()));return P&&(H=q1(P.qV(),G),!isNaN(H))?(OB(E,H+han,Q),G):OB(E,G,Q)}; j0=function(H){H=(H.L.cookie||"").split(";");for(var E=[],G=[],P,Q,e=0;eP)return gn(H,e.config),H.lT(e.hashData),t.return(Yi());case 2:DFU(H);if(!(G&&H.W&&H.hotHashData)){t.bJ(4);break}return g.U(t,n0U(H.W,H.hotHashData,G,P),4);case 4:return H.W? t.return(Yi()):(w=new g.LN("Config not available in ytConfig"),Za(w),t.return(Promise.reject(w)))}})}; Oyt=function(){var H=ZY(),E={},G={},P={};return Object.assign({},(E.sv="968",E),lq!==null&&(G.v=lq,G),(P["if"]=H.G?"1":"0",P.nas=String(cY.L.length),P))}; UB=function(H){var E=H.S.FM()?72:50,G=H.S.K();g.sn(G)&&(G.U("delhi_modern_web_player")?(E=g.hE(G.experiments,"delhi_modern_web_player_responsive_compact_controls_threshold"),E=H.S.U("delhi_modern_web_player_compact_controls")||E>0&&H.S.getPlayerSize().width<=E,E=H.S.FM()?112:E?70:78,H.S.getRootNode().classList.contains("ytp-fullscreen-grid-peeking")&&(H=getComputedStyle(H.S.getRootNode()).getPropertyValue("--ytp-grid-peek-height")||"36px",E+=Number(H.replace("px","")))):E=62,g.nb(G)&&(E=54));return E}; zJ=function(H){if(!H)return new xi(0,0);var E=Number(H.start);H=Number(H.end);if(!isNaN(E)&&!isNaN(H)&&(E=new xi(E,H),E.length>0))return E}; S0=function(H,E,G,P){return H.Da.get().uG(TJ(E))?new Vf(H.L,G):P}; WV=function(H){return Array.prototype.slice.call(H)}; fN=function(H){if(typeof H==="function")return H;H[Fs]||(H[Fs]=function(E){return H.handleEvent(E)}); return H[Fs]}; g.pN=function(H,E,G){if(KXt&&!E)H=g.lU.btoa(H);else{for(var P=[],Q=0,e=0;e255){var t=Error("go/unicode-to-byte-error");if(G)throw t;P[Q++]=w&255;w>>=8}P[Q++]=w}H=g.H4(P,E)}return H}; PR=function(H){var E=H.mediaElement;E&&H.pg&&!H.videoData.N&&!HR("vfp",H.HT.timerName)&&E.xM()>=2&&!E.isEnded()&&EF(E.AK())&&H.HT.tick("vfp");return(E=H.mediaElement)&&!H.videoData.N&&E.getDuration()>0&&(E.isPaused()&&E.xM()>=2&&EF(E.AK())&&(HR("pbp",H.HT.timerName)||H.HT.tick("pbp"),!H.videoData.yS||H.gL||E.isSeeking()||(H.gL=!0,H.publish("onPlaybackPauseAtStart"))),E=E.getCurrentTime(),G4(H.Qy,E))?(H.hL(),!0):!1}; jTv=function(H){H=H.D;if(!H)return"";var E=Qq("uap",H.platform)+Qq("uapv",H.platformVersion)+Qq("uafv",H.uaFullVersion)+Qq("uaa",H.architecture)+Qq("uam",H.model)+Qq("uab",H.bitness);H.fullVersionList&&(E+="&uafvl="+encodeURIComponent(H.fullVersionList.map(function(G){return encodeURIComponent(G.brand)+";"+encodeURIComponent(G.version)}).join("|"))); H.wow64!=null&&(E+="&uaw="+Number(H.wow64));return E.slice(1)}; NW1=function(H){var E=E===void 0?!1:E;H.mediaElement&&(H.Am?(sF(H),H.mp(),cOn(H,E)):(H.videoData.PF&&H.videoData.PF.UO(),H.mediaElement.stopVideo()),H.playVideo())}; byt=function(){var H=null;if(!yOt)return H;try{var E=function(G){return G}; H=yOt.createPolicy("goog#html",{createHTML:E,createScript:E,createScriptURL:E})}catch(G){}return H}; iyT=function(H){var E="true".toString(),G=[new K5];if(G.length===0)throw Error("");if(G.map(function(P){if(P instanceof K5)P=P.L;else throw Error("");return P}).every(function(P){return"data-loaded".indexOf(P)!==0}))throw Error('Attribute "data-loaded" does not match any of the allowed prefixes.'); H.setAttribute("data-loaded",E)}; oe=function(H){var E=0,G=0,P=0,Q=H.W,e=H.L;do{var w=Q[e++];E|=(w&127)<32)for(G|=(w&127)>>4,P=3;P<32&&w&128;P+=7)w=Q[e++],G|=(w&127)<>>0,G>>>0);throw Error();}; JOn=function(H){if(!H)return Rav||(Rav=new e_(0,0));if(!/^-?\d+$/.test(H))return null;Ex(H);return new e_(RN,Js)}; BWM=function(H,E,G){H=g.wH(H.L,function(P){return E(P)}); return G?H:rO1(H)}; CkU=function(H,E){var G=g.h_(E);if($Y(E.info.uJ.info)&&E.info.uJ.info.video.primaries==="bt2020"){var P=new A_(G);mT(P,[408125543,374648427,174,224,21936,21937])&&(P=P.start+P.pos,G.getUint8(P)===129&&G.getUint8(P+1)===1&&G.setUint8(P+1,9))}P=E.info.uJ.info;uh(P)&&!$Y(P)&&(P=g.h_(E),(new A_(P)).QB(),vR([408125543,374648427,174,224],21936,P));E.info.uJ.info.dO()&&(P=E.info.uJ,P.info&&P.info.video&&P.info.video.projectionType==="MESH"&&!P.W&&(g.MQ(P.info)?P.W=YWs(G):P.info.wV()&&(P.W=XVj(G))));E.info.uJ.info.wV()&& E.info.dO()&&(G=g.h_(E),(new A_(G)).QB(),vR([408125543,374648427,174,224],30320,G)&&vR([408125543,374648427,174,224],21432,G));if(H.policy.Dp&&E.info.uJ.info.wV()){G=g.h_(E);var Q=new A_(G);if(mT(Q,[408125543,374648427,174,29637])){P=dH(Q,!0);Q=Q.start+Q.pos;for(var e=0;e=0&&E=1&&xY(H.L(),G)}; T4=function(H,E,G){if(!H.Sl){E=Math.max(E,.01);var P=H.Gy?Math.max(E,G/H.Gy):E,Q=H.mZ.W.G;Q&&(P=E,H.Gy&&(P=Math.max(E,G/H.Gy*Q)));z4(H.mZ,E,G,P)}}; g.Vq=function(H){H&&typeof H.dispose=="function"&&H.dispose()}; J8=function(H,E){yS||c9 in H||VBM(H,SW1);H[c9]|=E}; fh=function(H,E,G,P,Q){S_.call(this,H,{J:"div",Y:"ytp-skip-ad"},"skip-ad",E,G,P,Q);this.skipOffsetMilliseconds=0;this.isSkippable=!1;this.G=new Fk(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);g.d(this,this.G);this.G.mx(this.element);this.hide()}; FXQ=function(H,E){var G=new Map;H=g.R(H);for(var P=H.next();!P.done;P=H.next()){P=P.value;if(P.layoutType==="LAYOUT_TYPE_MEDIA")var Q="v";else P.layoutType==="LAYOUT_TYPE_MEDIA_BREAK"?(Q=Zi(P.clientMetadata,"metadata_type_linked_in_player_layout_type"),Q=Q==="LAYOUT_TYPE_ENDCAP"||Q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL"?"e":Q==="LAYOUT_TYPE_SURVEY"?"s":Q==="LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT"?"si":"u"):Q="u";G.set(P.layoutId,Q);if(Q==="u"){var e={};Q=E;P=(e.c=P.layoutId,e);Q.S.g5("uct",P)}}H= E.VW();PV={contentCpn:H,oV:G};P={};G=(P.ct=G.size,P.c=H,P);E.S.g5("acc",G)}; ph=function(){this.W=this.L=null}; Fdt=function(){return g.Un("yt.ads.biscotti.lastId_")||""}; g.El=function(H){this.L=0;this.B=void 0;this.D=this.W=this.G=null;this.T=this.C=!1;if(H!=g.jB)try{var E=this;H.call(void 0,function(G){Hv(E,2,G)},function(G){Hv(E,3,G)})}catch(G){Hv(this,3,G)}}; f8s=function(H){return g.E7?"webkit"+H:H.toLowerCase()}; pVq=function(H){if(!H)return"";if(/^about:(?:blank|srcdoc)$/.test(H))return window.origin||"";H.indexOf("blob:")===0&&(H=H.substring(5));H=H.split("#")[0].split("?")[0];H=H.toLowerCase();H.indexOf("//")==0&&(H=window.location.protocol+H);/^[\w\-]*:\/\//.test(H)||(H=window.location.href);var E=H.substring(H.indexOf("://")+3),G=E.indexOf("/");G!=-1&&(E=E.substring(0,G));G=H.substring(0,H.indexOf("://"));if(!G)throw Error("URI is missing protocol: "+H);if(G!=="http"&&G!=="https"&&G!=="chrome-extension"&& G!=="moz-extension"&&G!=="file"&&G!=="android-app"&&G!=="chrome-search"&&G!=="chrome-untrusted"&&G!=="chrome"&&G!=="app"&&G!=="devtools")throw Error("Invalid URI scheme in origin: "+G);H="";var P=E.indexOf(":");if(P!=-1){var Q=E.substring(P+1);E=E.substring(0,P);if(G==="http"&&Q!=="80"||G==="https"&&Q!=="443")H=":"+Q}return G+"://"+E+H}; Goq=function(H){try{var E=H.split(",");return E.length>g.Gz(Hq1).length?null:Pv(E,function(G,P){P=P.toLowerCase().split("=");if(P.length!=2||Eg7[P[0]]===void 0||!Eg7[P[0]](P[1]))throw Error("Entry ("+P[0]+", "+P[1]+") is invalid.");G[P[0]]=P[1];return G},{})}catch(G){return null}}; sl=function(H,E){g.kn(E,function(G,P){P=="style"?H.style.cssText=G:P=="class"?H.className=G:P=="for"?H.htmlFor=G:PF1.hasOwnProperty(P)?H.setAttribute(PF1[P],G):QQ(P,"aria-")||QQ(P,"data-")?H.setAttribute(P,G):H[P]=G})}; QAu=function(H){var E=g.Un("window.location.href");H==null&&(H='Unknown Error of type "null/undefined"');if(typeof H==="string")return{message:H,name:"Unknown error",lineNumber:"Not available",fileName:E,stack:"Not available"};var G=!1;try{var P=H.lineNumber||H.line||"Not available"}catch(w){P="Not available",G=!0}try{var Q=H.fileName||H.filename||H.sourceURL||g.lU.$googDebugFname||E}catch(w){Q="Not available",G=!0}E=SP(H);if(!(!G&&H.lineNumber&&H.fileName&&H.stack&&H.message&&H.name)){G=H.message; if(G==null){if(H.constructor&&H.constructor instanceof Function){if(H.constructor.name)G=H.constructor.name;else if(G=H.constructor,oL[G])G=oL[G];else{G=String(G);if(!oL[G]){var e=/function\s+([^\(]+)/m.exec(G);oL[G]=e?e[1]:"[Anonymous]"}G=oL[G]}G='Unknown Error of type "'+G+'"'}else G="Unknown Error of unknown type";typeof H.toString==="function"&&Object.prototype.toString!==H.toString&&(G+=": "+H.toString())}return{message:G,name:H.name||"UnknownError",lineNumber:P,fileName:Q,stack:E||"Not available"}}return{message:H.message, name:H.name,lineNumber:H.lineNumber,fileName:H.fileName,stack:E}}; eb=function(H,E){this.mZ=H;this.policy=E;this.playbackRate=1}; g.D0=function(H,E){if(!wt){var G=hu();$x(G,{xv:sAj,Eo:tu});var P={zl:{feedbackEndpoint:kx(Ky),modifyChannelNotificationPreferenceEndpoint:kx(Wv),playlistEditEndpoint:kx(IL),shareEntityEndpoint:kx(Au),subscribeEndpoint:kx(mM),unsubscribeEndpoint:kx(uY),webPlayerShareEntityServiceEndpoint:kx(vv)}},Q=M7.getInstance(),e={};Q&&(e.client_location=Q);H===void 0&&(H=ogQ());E===void 0&&(E=G.resolve(sAj));ekw(P,E,H,e);$x(G,{xv:w4l,e4:dt.instance});wt=G.resolve(w4l)}return wt}; g.nT=function(H,E){H.sort(E||C5)}; aL=function(H){H.p_=NaN;H.N=0;H.B=H.G}; Ol=function(H,E,G){return G&2?!0:G&32&&!(G&4096)?(k0(E,G|2),H.L=qq,!0):!1}; $1s=function(H){g.NL(function(){Vv(H)&&KT("aa",void 0,H);hkQ(H);jb(H)})()}; tkj=function(H){var E=cv(H.Tc().L,1);return N7(H,E)}; kol=function(H){for(var E=0,G=0,P={};G(0,g.ON)()?0:1}; Ul=function(H){var E=lY.EXPERIMENT_FLAGS;return E?E[H]:void 0}; D1w=function(H){for(var E=[],G=0;GG.length&&(H.error=!0);H.register|=(G[P+1]<<8)+G[P]<=0)return fT(H,G&15),G>>4;for(fT(H,7);G<0;)G=E[pT(H,1)-G];return G>>4}; Knw=function(H){H=H.L;H.Vo();H.ke();var E=ZY();E.B=He(!1,H.G,E.isMobileDevice);OqU(ZY(),H.G);H.D.L=H.wQ()}; jAv=function(H,E,G){var P=g.eS(H.L,E);if(P>=0)return E;E=-P-1;return E>=H.L.length||H.L[E]>G?null:H.L[E]}; g.Pe=function(H,E){g.E4.call(this);this.nM=H||1;this.vv=E||g.lU;this.i6=(0,g.co)(this.UIF,this);this.D3=g.Gl()}; s4=function(H){var E=this;this.L={};this.G={};this.kV={FM7:function(){return E.L}}; this.videoData=H;var G,P=(G=H.G)==null?void 0:G.W;P&&P.length>0?this.W=P:(H=H.getAvailableAudioTracks(),this.W=H.length>0?c9q(H):[]);H=g.R(Qg);for(G=H.next();!G.done;G=H.next())G=G.value,this.L[G]=NLw[G](this.W);this.TW()}; y9w=function(H,E,G,P){o6(H,eU(E||g.jB,G||null,P))}; ZU=function(H){H=H===void 0?bqu:H;if(H>0&&!(omq()>(0,g.ON)()-H*1E3))return 0;H=g.pr("yt-player-quality");if(typeof H==="string"){if(H=g.lF[H],H>0)return H}else if(H instanceof Object)return H.quality;return 0}; wU=function(H){return H.includes("vtt")||H.includes("text/mp4")}; hT=function(H,E,G,P){G=G===void 0?!0:G;P=P===void 0?function(){return!0}:P; return function(Q){var e=Q[H];if(Array.isArray(e)&&P(Q))return iqw(e,E,G)}}; tT=function(H){return new $D(H.substring(0,2),H.substring(2))}; q77=function(H){var E,G=(E=H.api.getVideoData())==null?void 0:E.mV();return H.api.getPresentingPlayerType(G)!==2}; Rkt=function(H,E){if(H.L==void 0)return 0;switch(H.T){case "mtos":return H.W?kD(E.L,H.L):kD(E.W,H.L);case "tos":return H.W?cv(E.L,H.L):cv(E.W,H.L)}return 0}; J97=function(H,E,G){var P;if(P=H.playback.getVideoData().mV())P=(P=H.L.EQ({cpn:E}))&&P.qM?(H=H.L.L.get(P==null?void 0:P.qM))&&H.slice(-1)[0].cpn===E:!1;return P&&G===2?1E3:0}; AT=function(H){Xu.call(this,H);var E=this;We(H,"setAccountLinkState",function(G){E.setAccountLinkState(G)}); We(H,"updateAccountLinkingConfig",function(G){E.updateAccountLinkingConfig(G)}); H.addEventListener("videodatachange",function(G,P){E.onVideoDataChange(P)}); H.addEventListener("settingsMenuInitialized",function(){E.menuItem=new I6(E.api);g.d(E,E.menuItem)})}; $7=function(H,E,G,P){var Q=G.Bj;H[E]=P?function(e,w,t){return Q(e,w,t,P)}:Q}; r9v=function(H){var E={c:H.mY,e:H.HB,mc:H.kF,me:H.VE};H.w0&&(E.co={c:H.w0.Fs,a:H.w0.Mp,s:H.w0.I8});return E}; BLt=function(H,E,G){var P=!1;if(G=H.L.L.get(G)){G=g.R(G);for(var Q=G.next();!Q.done;Q=G.next())Q=Q.value,Q.durationMs!==0&&Q.gV!==Q.HO&&(Q=Q.cpn,E===Q&&(P=!0),P&&!H.yG.has(Q)&&(H.LP({decoratedAd:Q}),H.yG.add(Q)))}}; mL=function(H,E){return H[E+0]+(H[E+1]<<8)+(H[E+2]<<16)+(H[E+3]<<24)}; uJ=function(){}; Y7T=function(H){H.bM&&(H.xhr.status=H.bM,H.tK=H.bM)}; g.X4t=function(H){return g.ve(H.L,function(E){return wU(E.info.mimeType)})}; Zqv=function(H){switch(H){case "LAYOUT_TYPE_ENDCAP":return"adVideoEnd";case "LAYOUT_TYPE_SURVEY":return"surveyAd";case "LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT":return"surveyInterstitialAd";default:return"unknown"}}; aT=function(H,E,G){G=G!=null?"="+g.Bo(G):"";return MA(H,E+G)}; LnT=function(H,E,G,P,Q,e,w,t,k){var W=G.pings;return W?[CFt(H,e,t,Q,function(I){var A=I.slotId;I=k(I);var m=G.adLayoutLoggingData,u=G.progressCommands;A=dU(E.W.get(),"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",A);var v={layoutId:A,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",f_:"core"};return{layoutId:A,layoutType:"LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER",w5:Dv(W),layoutExitNormalTriggers:[new BQ(E.L,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[], layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:new ZN([new nn(P),new a6(O4(W)),new Kn(ggj(W)),new jU(w/1E3),new ce({progressCommands:u}),new NA(w/1E3)]),O2:I(v),adLayoutLoggingData:m}})]:new T("VideoAdTrackingRenderer without VideoAdTracking pings filled.",{videoAdTrackingRenderer:G})}; yg=function(){this.W=new lUl;this.L=iY()?new q7:new uJ}; bJ=function(){this.finished=this.started=!1}; dU=function(H,E,G){if(iJ(H.Da.get())){var P=H.L.get(E)||0;P++;H.L.set(E,P);return G+"_"+E+"_"+P}return g.qA(16)}; U1T=function(){}; Vkn=function(){var H=x1u();if(H!==void 0)return R6(H);hO||(hO=JT("//googleads.g.doubleclick.net/pagead/id",zku).then(TLn).KW(function(E){return tH1(2,E)})); return hO}; vR=function(H,E,G){var P=new A_(G);if(!mT(P,H))return!1;P=rU(P);if(!Be(P,E))return!1;for(H=0;E;)E>>>=8,H++;E=P.start+P.pos;var Q=dH(P,!0);P=H+(P.start+P.pos-E)+Q;P=P>9?S7M(P-9,8):S7M(P-2,1);H=E-H;G.setUint8(H++,236);for(E=0;E")!=-1&&(H=H.replace(Epq,">")),H.indexOf('"')!=-1&&(H=H.replace(Grj,""")),H.indexOf("'")!=-1&&(H=H.replace(PTU,"'")),H.indexOf("\x00")!=-1&&(H=H.replace(QPv,"�")));return H}; opu=function(H,E){H.U("html5_log_media_perf_info")&&(H.Fo.g5("perfdb",sPQ()),H.Fo.g5("sessionperfdb",Object.fromEntries(Xh.entries())),H.Fo.g5("playbackperfdb",Object.fromEntries(H.G.entries())),H.Fo.g5("hwc",{nch:navigator.hardwareConcurrency},!0),E&&H.Fo.g5("mcdb",{itags:E.L.videoInfos.filter(function(G){var P;return((P=G.W)==null?void 0:P.smooth)===!1}).map(function(G){return G.itag}).join("-")}))}; OF=function(H){var E=H.data;var G=H.offset+H.L;E=E.getUint32(G)*4294967296+E.getUint32(G+4);H.L+=8;return E}; gU=function(H,E,G,P){var Q=Zv(E,G),e=H.XI.B.get(Q)||null;if(!e||e.Iu())return null;H.XI.B.remove(Q);if(g.F(e.getPlayerState(),128))return e.dispose(),null;if(e===H.EQ({playerType:E}))return H.HT.infoGel({isCacheHit:!0}),e;if((e.getVideoData().oauthToken||G.oauthToken)&&e.getVideoData().oauthToken!==G.oauthToken)return null;E===1&&(E=H.jR().getVideoData(),OV(E)&&E.isAd()&&P||Cn(H));P||H.PV(e,!0);H.HT.infoGel({isCacheHit:!0});return e}; Ln=function(H){Ln[" "](H);return H}; He=function(H,E,G){try{if(H){if(!E.top)return new lJ(-12245933,-12245933,-12245933,-12245933);E=E.top}var P=f$l(H,E,G),Q=P.height,e=P.width;if(e===-12245933)return new lJ(e,e,e,e);var w=PD(E.document);var t=edv(w.L);var k=t.x,W=t.y;return new lJ(W,k+e,W+Q,k)}catch(I){return new lJ(-12245933,-12245933,-12245933,-12245933)}}; xD=function(H,E){H.FI||(U4(H,"fcnz",""+E),H.FI=!0)}; wPj=function(H){H.WF||(H.WF=!0,H.dispatchEvent("complete"),H.dispatchEvent("error"))}; SU=function(H,E,G){H=H===void 0?{}:H;E=E===void 0?!1:E;new g.El(function(P,Q){var e=zl(E,G),w=e.G;e.G=!1;Tl(e.W);Tl(e.L);e.L=0;Vg&&Vg.isReady()?G===void 0&&g.Xj("enable_web_tiered_gel")?hdj(P,Q,H,E,300,w):hdj(P,Q,H,E,G,w):($Ls(E,G),P())})}; g.fn=function(H,E){E=$g(H,E);E>=0&&g.Fh(H,E)}; tVq=function(H){var E=H.top||0,G=H.left||0;return new lJ(E,G+(H.width||0),E+(H.height||0),G)}; krt=function(){}; WKn=function(H){this.G=H;this.L=-1;this.W=this.D=0}; Icd=function(H,E){H=H.B;pn&&(H+=E-Hk);return H}; Qt=function(H,E,G,P){var Q=G.getVideoData(),e=E.getVideoData();if(G.getPlayerState().isError())return{msg:"player-error"};var w=e.G;if(E.WK()>P/1E3+1)return{msg:"in-the-past"};if(e.isLivePlayback&&!isFinite(P))return{msg:"live-infinite"};(P=E.xt())&&P.isView()&&(P=P.mediaElement);if(P&&P.CG().length>12&&g.Ej(Q))return{msg:"played-ranges"};if(!Q.G)return null;if(!w)return{msg:"no-pvd-formats"};if(!Q.G.L||!w.L)return{msg:"non-dash"};P=w.videoInfos[0];var t=Q.G.videoInfos[0];H.p_&&OV(e)&&(P=E.zp(),t= G.zp());if(!P||!t)return{msg:"no-video-info"};if(H.C&&(GV(P)||GV(t)))return{msg:"av1"};E=H.D&&e.hE()&&Pk();if(t.containerType!==P.containerType)if(E)e.g5("sgap",{ierr:"container"});else return{msg:"container"};if(H.T&&!E&&(t.K_!==P.K_||t.K_===""||P.K_===""))return{msg:"codec"};if(H.B&&t.video&&P.video&&Math.abs(t.video.width/t.video.height-P.video.width/P.video.height)>.01)return{msg:"ratio"};if(g.Ej(e)&&g.Ej(Q))return{msg:"content-protection"};w=w.L[0];Q=Q.G.L[0];G=w.audio;var k=Q.audio;if(G.sampleRate!== k.sampleRate&&!g.pC)if(E)e.g5("sgap",{ierr:"srate"});else return{msg:"sample-rate",ci:w.itag,cr:G.sampleRate,ni:Q.itag,nr:k.sampleRate};return(G.numChannels||2)!==(k.numChannels||2)?{msg:"channel-count"}:H.N&&e.hE()&&P.video.fps!==t.video.fps?{msg:"fps"}:null}; ALs=function(H,E,G,P){H.G=P;H.api.DT(H.L,G,E)}; $2=function(H,E,G){var P=g.sj(H.macros),Q=g.or(E);P.AW={toString:function(){return Q.width.toString()}}; P.AH={toString:function(){return Q.height.toString()}}; var e=g.eK(G,E).floor();P.I_X={toString:function(){return e.x.toString()}}; P.NX={toString:function(){return e.x.toString()}}; P.I_Y={toString:function(){return e.y.toString()}}; P.NY={toString:function(){return e.y.toString()}}; P.NM={toString:function(){return H.WF.toString()}}; E=g.R(H.N);for(G=E.next();!G.done;G=E.next())G=G.value,H.layoutId?w3(H.vF,G,H.layoutId,P):g.h3(Error("Missing layoutId for invideo_overlay_ad."));H.api.pauseVideo()}; vpM=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){G=G.value;var P=G.interstitials.map(function(w){var t=g.X(w,mLQ);if(t)return{is_yto_interstitial:!0,raw_player_response:t};if(w=g.X(w,ujU))return Object.assign({is_yto_interstitial:!0},W9(w))}); P=g.R(P);for(var Q=P.next();!Q.done;Q=P.next())switch(Q=Q.value,G.podConfig.playbackPlacement){case "INTERSTITIAL_PLAYBACK_PLACEMENT_PRE":H.interstitials=H.interstitials.concat({time:0,playerVars:Q,aG:5});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_POST":H.interstitials=H.interstitials.concat({time:0x7ffffffffffff,playerVars:Q,aG:6});break;case "INTERSTITIAL_PLAYBACK_PLACEMENT_INSERT_AT_VIDEO_TIME":var e=Number(G.podConfig.timeToInsertAtMillis);H.interstitials=H.interstitials.concat({time:e,playerVars:Q, aG:e===0?5:7})}}}; k2=function(H){t3.call(this,H.Uh,H.C_,H.Ge,H.JG,H.d5,H.q4,H.l4,H.yB,H.slot,H.layout,H.ET,H.Ou,H.aq,H.Da);this.bG=void 0}; MV1=function(H,E){E=Wk(H,E);H.D!==E&&H.publish("livestatusshift",E);H.D=E}; DL7=function(H){var E=H.T,G=dLd(E);G&&(G.startSecs+=H.E7,H.loader.Ki(H.uJ,G,E.bA,E.j$()))}; Ir=function(H){return H.Yr||H.Bm!==void 0}; npQ=function(H){this.L=H;H.rX("/client_streamz/bg/po/ctav",g.A3("av"),g.A3("mk"))}; acs=function(H,E,G,P,Q){function e(k){t||(t=!0,P.call(Q,k))} function w(k){t||(t=!0,G.call(Q,k))} var t=!1;try{E.call(H,w,e)}catch(k){e(k)}}; OCq=function(H){var E=H.AE.TU(),G=[];g.kn(H.L,function(Q,e){G.push(e+"="+Q)}); if(!G.length)return E;var P=G.join("&");H=ts(71,H.AE)?"&":"?";return E+H+P}; KKw=function(H){var E=g.mO("html5-video-player");E&&g.Bt(E,"ytp-ad-display-override",H)}; rLn=function(H){var E={},G=H.experiments,P=G.eU();G=G.Bo();var Q=P.L.A7(jPs);uL(Q)&&Number(Q)>0&&(E.SetPreferMinimalPostProcessing=vk("SetPreferMinimalPostProcessing",Number(Q)===1?1:0));if(G.L.A7(cLT))(H=P.L.A7(Niv))&&(E["MediaSource.EnableUsingMediaSourceBufferedRange"]=vk("MediaSource.EnableUsingMediaSourceBufferedRange",H===1?1:0)),(H=P.L.A7(yLj))&&(E.HTTP3=vk("HTTP3",H===1?1:0)),(H=P.L.A7(bCT))&&(E["MediaSource.EnableUsingMediaSourceAttachmentMethods"]=vk("MediaSource.EnableUsingMediaSourceAttachmentMethods", H===1?1:0)),(H=P.L.A7(iCl))&&(E.QUIC=vk("QUIC",H===1?1:0)),(H=P.L.A7(qVt))&&(E["Media.PlayerConfiguration.DecodeToTexturePreferred"]=vk("Media.PlayerConfiguration.DecodeToTexturePreferred",H===1?1:0)),(H=P.L.A7(Rd7))&&(E["Media.AudioWriteDurationLocal"]=vk("Media.AudioWriteDurationLocal",Number(H)));else for(P=Object.keys(H.experiments.flags),P=g.R(P),G=P.next();!G.done;G=P.next())G=G.value,G.startsWith("cobalt_h5vcc")&&(G.startsWith("cobalt_h5vcc_string")?(Q=JLn(G,"cobalt_h5vcc_string"),G=vQ(H.experiments, G),Q&&G&&(E[Q]=vk(Q,G))):G.startsWith("cobalt_h5vcc")&&(Q=JLn(G,"cobalt_h5vcc"),G=g.hE(H.experiments,G),Q&&G&&(E[Q]=vk(Q,G))));return E}; Bil=function(){var H=Error.call(this);this.message=H.message;"stack"in H&&(this.stack=H.stack);this.name="AsyncStack";Object.setPrototypeOf(this,this.constructor.prototype)}; YVv=function(H,E){H.G.some(function(G){var P;return((P=G.CP)==null?void 0:P.getId())===E}); H.L=E}; Mb=function(H,E){var G=0;H=g.R(H.W);for(var P=H.next();!P.done;P=H.next()){P=P.value;var Q=P.HO/1E3+G,e=Q+P.durationMs/1E3;if(Q>E)break;if(e>E)return{ud:P,nK:E-Q};G=e-P.gV/1E3}return{ud:null,nK:E-G}}; XPd=function(H){var E=H.provider.videoData.Le,G=H.provider.videoData.KB,P=[10+E,10,10,40+G-E,40],Q,e=(Q=H.provider.videoData.getPlayerResponse())==null?void 0:Q.playbackTracking,w=e==null?void 0:e.videostatsScheduledFlushWalltimeSeconds;Q=e==null?void 0:e.videostatsDefaultFlushIntervalSeconds;if(!(w&&w.length>0&&Q))return P;E=[w[0]+E].concat(g.EC(w.slice(1).map(function(t,k){return t-w[k]})),[Q+G-E, Q]);return E.some(function(t){return t<0})?(g.d3(H.logger,347111855,"Neg vss scheduled pings "+w+" "+Q),P):E}; gpn=function(H){var E=E===void 0?{}:E;var G,P;return g.L(function(Q){if(Q.L==1)return g.U(Q,g.De(),2);if(Q.L!=3){G=Q.W;if(!G)return Q.return();ni(H);return g.U(Q,ZCn(H,G),3)}P=Q.W;return g.U(Q,CTn(P,E,G),0)})}; lcl=function(H,E){E=E===void 0?LKu:E;if(!ar){var G;H=(G=H.navigator)==null?void 0:G.userAgentData;if(!H||typeof H.getHighEntropyValues!=="function"||H.brands&&typeof H.brands.map!=="function")return Promise.reject(Error("UACH unavailable"));VHU((H.brands||[]).map(function(Q){var e=new v4;e=l0(e,1,Q.brand);return l0(e,2,Q.version)})); typeof H.mobile==="boolean"&&Nm(uF,2,Oj(H.mobile));ar=H.getHighEntropyValues(E)}var P=new Set(E);return ar.then(function(Q){var e=uF.clone();P.has("platform")&&l0(e,3,Q.platform);P.has("platformVersion")&&l0(e,4,Q.platformVersion);P.has("architecture")&&l0(e,5,Q.architecture);P.has("model")&&l0(e,6,Q.model);P.has("uaFullVersion")&&l0(e,7,Q.uaFullVersion);return e.hK()}).catch(function(){return uF.hK()})}; iL=function(H,E,G,P){E=E===void 0?!1:E;G=G===void 0?!1:G;P=P===void 0?!1:P;if(!H)return null;switch(H.iconType){case "OPEN_IN_NEW":case "EXTERNAL_LINK":return G?{J:"svg",j:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",j:{d:"M21 21H3V3h9v1H4v16h16v-8h1v9zM15 3v1h4.32l-8.03 8.03.71.71 8-8V9h1V3h-6z"}}]}:Ki();case "CHECK_BOX":return{J:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",j:{d:"M0 0h24v24H0z",fill:"none"}},{J:"path",j:{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z", fill:"#d4d4d4"}}]};case "CHECK_BOX_OUTLINE_BLANK":return{J:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",j:{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z",fill:"#d4d4d4"}},{J:"path",j:{d:"M0 0h24v24H0z",fill:"none"}}]};case "CLOSE":return g.jK();case "INFO_OUTLINE":return E?{J:"svg",j:{fill:"#fff",height:"12px",style:"padding-top: 8px",viewBox:"0 -960 960 960",width:"12px"},V:[{J:"path",j:{d:"M430.09-270.8h101.34V-528H430.09v257.2Zm49.52-338.03q20.94 0 35.34-14.01 14.4-14.01 14.4-34.95 0-20.94-14.01-35.34-14.01-14.39-34.95-14.39-20.94 0-35.34 14.01-14.4 14.01-14.4 34.95 0 20.94 14.01 35.34 14.01 14.39 34.95 14.39Zm.67 548.18q-86.64 0-163.19-32.66-76.56-32.66-133.84-89.94t-89.94-133.8q-32.66-76.51-32.66-163.41 0-87.15 32.72-163.31t90.14-133.61q57.42-57.44 133.79-89.7 76.38-32.27 163.16-32.27 87.14 0 163.31 32.26 76.16 32.26 133.61 89.71 57.45 57.45 89.71 133.86 32.26 76.42 32.26 163.33 0 86.91-32.27 163.08-32.26 76.18-89.7 133.6-57.45 57.42-133.83 90.14-76.39 32.72-163.27 32.72Zm-.33-105.18q131.13 0 222.68-91.49 91.54-91.49 91.54-222.63 0-131.13-91.49-222.68-91.49-91.54-222.63-91.54-131.13 0-222.68 91.49-91.54 91.49-91.54 222.63 0 131.13 91.49 222.68 91.49 91.54 222.63 91.54ZM480-480Z"}}]}: ULQ();case "REMOVE_CIRCLE":return{J:"svg",j:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",j:{d:"M0 0h24v24H0z",fill:"none"}},{J:"path",j:{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11H7v-2h10v2z",fill:"#757575"}}]};case "SKIP_NEXT":return ck();case "SKIP_NEXT_NEW":return P?xLw():{J:"svg",j:{height:"100%",viewBox:"-6 -6 36 36",width:"100%"},V:[{J:"path",j:{d:"M5,18l10-6L5,6V18L5,18z M19,6h-2v12h2V6z",fill:"#fff"}}]};case "LIKE":return zdu(); case "DISLIKE":return TiQ();default:return g.p5(new g.LN("Unexpected icon:",H)),null}}; qb=function(H,E){g.AE(H.L,"width",E)}; VV1=function(H){this.L=H}; Rr=function(H,E){H.url=E;window.performance&&!performance.onresourcetimingbufferfull&&(performance.onresourcetimingbufferfull=function(){performance.clearResourceTimings()})}; SVj=function(){this.next=this.context=this.W=this.G=this.L=null;this.D=!1}; g.J3=function(H,E){H.isActive()||H.start(E)}; Bk=function(H){H.Vp()&&(H.Fo&&H.Fo.Ga("rs_s"),r3&&H.getCurrentTime()>0&&H.seekTo(0),H.Qs(),H.load(),FKs(H,null));delete H.G}; fcw=function(H,E){Array.isArray(E)||(E=[E]);E=E.map(function(G){return typeof G==="string"?G:G.property+" "+G.duration+"s "+G.timing+" "+G.delay+"s"}); g.AE(H,"transition",E.join(","))}; Y2=function(H){Xu.call(this,H);var E=this;this.G=1;this.HT=null;this.kV={nXu:function(){return E.G}}; this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"d6de4videobindingchange",function(G){E.xJ(G)}); this.events.Z(H,"csiinitialized",function(){pPM(E)})}; Xq=function(H,E){for(var G,P;;){if(H.y8<262){uU(H);if(H.y8<262&&E===0)return 1;if(H.y8===0)break}G=0;H.y8>=3&&(H.fS=(H.fS<4096)&&(H.Fm=2));if(H.HA>=3&&H.Fm<=H.HA){P=H.J7+H.y8-3;G=vt(H,H.J7-1-H.mW,H.HA-3);H.y8-=H.HA-1;H.HA-=2;do++H.J7<=P&&(H.fS=(H.fS<0||E>127;)H.L.push(E&127|128),E=(E>>>7|G<<25)>>>0,G>>>=7;H.L.push(E)}; me=function(H){return{layoutId:H.jI(),eE:H.R5,vY:H.C_.get(),t2:H.uG()}}; vM=function(H,E,G,P){uO.call(this,H,E,G,P,["ytp-ad-visit-advertiser-button"],"visit-advertiser")}; IEq=function(H){this.VN=tz(H)}; Ym=function(H){return H?H.passive&&Azv()?H:H.capture||!1:!1}; da=function(H,E){return MB(H,E)}; g.nm=function(H,E){g.NL(function(){g.D9(E,function(G){m2T(void 0,H,G)})})()}; uTd=function(H){var E=new g.av({J:"div",Y:"ytp-ad-image-overlay",V:[{J:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{J:"div",Y:"ytp-ad-overlay-close-container",V:[{J:"button",Y:"ytp-ad-overlay-close-button",V:[iL(OD)]}]},{J:"div",Y:"ytp-ad-overlay-image",V:[{J:"img",j:{src:"{{imageUrl}}",width:"{{width}}",height:"{{height}}"}}]}]});H.Z(E.HF("ytp-ad-overlay-image"),"click",function(G){$2(H,E.element,G)}); H.Z(E.HF("ytp-ad-overlay-close-container"),"click",H.nF);E.hide();return E}; Km=function(H){H=H.S.getVideoData();var E;if(E=H.U("web_player_defer_ad")){if(g.Xa(H.fW,"ad")||vaQ(H)||H.enableServerStitchedDai)H=!1;else{E=H.playerResponse;H=H.startSeconds;var G=E==null?void 0:E.adPlacements;if(E=G){E=Number.MAX_VALUE;G=g.R(G);for(var P=G.next();!P.done;P=G.next())if(P=P.value.adPlacementRenderer){var Q=void 0,e=(Q=P.config)==null?void 0:Q.adPlacementConfig;Q=void 0;if(((Q=e)==null?void 0:Q.kind)==="AD_PLACEMENT_KIND_MILLISECONDS"){var w=Q=void 0;e=Number((Q=e)==null?void 0:(w= Q.adTimeOffset)==null?void 0:w.offsetStartMilliseconds)||0;w=Q=void 0;P=Number(((Q=P.renderer)==null?void 0:(w=Q.adBreakServiceRenderer)==null?void 0:w.prefetchMilliseconds)||0);P=e-P;P>>8&255;H.JK[H.pending++]=E&255}; yU=function(H,E,G,P,Q,e){e=e===void 0?0:e;S_.call(this,H,{J:"div",Y:"ytp-preview-ad",V:[{J:"div",Y:"ytp-preview-ad__text"}]},"preview-ad",E,G,P,Q);var w=this;this.WF=e;this.W=0;this.D=-1;this.G=this.HF("ytp-preview-ad__text");switch(this.WF){case 1:this.G.classList.add("ytp-preview-ad__text--font--small")}this.transition=new g.NB(this,400,!1,100,function(){w.hide()}); g.d(this,this.transition);this.hide()}; Fm=function(H,E){if(!(H instanceof E))throw Error("Expected instanceof "+MXv(E)+" but got "+(H&&MXv(H.constructor)));return H}; g.d21=function(H){var E=H.S.K();if(E.G||EU(E)||E.C||!E.WO&&!E.g6)return!1;var G=H.S.getPresentingPlayerType();if(G===2||G===3)return!1;H=H.S.getVideoData();if(!H)return!1;G=!H.isLiveDefaultBroadcast||E.U("allow_poltergust_autoplay");G=H.isLivePlayback&&(!E.U("allow_live_autoplay")||!G);E=H.isLivePlayback&&E.U("allow_live_autoplay_on_mweb");return!G||E}; g.iO=function(H,E){return H.replace(D2t,function(G,P){try{var Q=g.bO(E,P);if(Q==null||Q.toString()==null)return G;Q=Q.toString();if(Q==""||!g.xm(g.zE(Q)))return encodeURIComponent(Q).replace(/%2C/g,",")}catch(e){}return G})}; naM=function(H,E,G){var P;BL(H.SR.get(),"ads_qua","cpn."+Zi(H.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((P=xn(H.C_.get(),2))==null?void 0:P.clientPlaybackNonce)+";qt."+E+";clr."+G)}; aEn=function(H,E,G,P,Q,e,w,t,k,W){if(xn(H.C_.get(),1).clientPlaybackNonce!==k)throw new T("Cannot register CueRange-based trigger for different content CPN",{trigger:G});H.Q8.set(G.triggerId,{T_:new qB(E,G,P,Q),cueRangeId:e});H.Dj.get().addCueRange(e,w,t,W,H);Rv(H.context.Da.get())&&(k={},H.context.fM.LP("crr",(k.ca=E,k.tt=G.triggerType,k.st=P.slotType,k.lt=Q==null?void 0:Q.layoutType,k.cid=e,k.sm=w,k.em=t,k)))}; rO1=function(H){return g.wH(H,function(E,G,P){return G>0?P[G]-P[G-1]:P[G]})}; JH=function(H){this.VN=tz(H)}; Obj=function(H,E,G,P,Q){var e=Jg(H.W.get(),"SLOT_TYPE_PLAYER_BYTES"),w=new ra(H.L),t=[new BM(H.L,e)];H=[new BQ(H.L,E)];E=[];E.push(new Cr(P({slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,f_:"core",slotEntryTrigger:w,slotFulfillmentTriggers:t,slotExpirationTriggers:H})));E.push(new Yj({}));Q&&E.push(new XE({current:Q}));return{slotId:e,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:w,slotFulfillmentTriggers:t,slotExpirationTriggers:H,f_:"core",clientMetadata:new ZN(E), adSlotLoggingData:G}}; K0l=function(H,E,G,P,Q){P.j$?IA(H,4,"cue"):(H.C=E,H.B=G,H.g5("sdai",{joinad:H.W,sg:H.C,st:H.B.toFixed(3)}),H.L_=Date.now(),IA(H,2,H.W===3?"staftpred":"join"),Q.q3(P.kt))}; g.jGt=function(H){var E="";g.kn(H,function(G,P){E+=P;E+=":";E+=G;E+="\r\n"}); return E}; Lm=function(H){H=(H.sequentialLayouts||[]).map(function(E){return g.X(E,Z9)}); return H.length>0&&H.every(Cm)}; g.zN=function(H,E,G){E&&E.cpn&&g.p5(new g.LN("CPN provided in VideoData update",{yAa:E.cpn,Xe:H.clientPlaybackNonce,JA7:G}));G?(lO(E),H.setData(E),UD(H)&&H.M7()):(E=E||{},czU(H,E),xj(H,E),Ns7(H,E),yz7(H,E),H.publish("dataupdated"))}; Sa=function(H){return TN(H.adLayoutMetadata)?(H=g.X(H.renderingContent,VU))&&H.pings?!0:!1:!1}; ibu=function(H){if(!H.api.K().dP){var E=H.api.getVideoData(),G=new g.FE("Subscribe",null,"Subscribed",null,!0,!1,E.t_,E.subscribed,"channel_avatar",null,H.api,!0);H.api.createServerVe(G.element,H);var P;H.api.setTrackingParams(G.element,((P=E.subscribeButtonRenderer)==null?void 0:P.trackingParams)||null);H.Z(G.element,"click",function(){H.api.logClick(G.element)}); H.subscribeButton=G;g.d(H,H.subscribeButton);H.subscribeButton.mx(H.T);H.subscribeButton.hide();var Q=new fm(H.api);H.L=Q;g.d(H,Q);Q.mx(H.T);Q.hide();H.Z(H.api,"SUBSCRIBE",function(){E.hC&&(Q.show(),H.api.logVisibility(Q.element,!0))}); H.Z(H.api,"UNSUBSCRIBE",function(){E.hC&&(Q.hide(),H.api.logVisibility(Q.element,!1),bbt(Q,!1))})}}; qYv=function(H,E){var G=(E(H.error.message)+":"+E(H.error.stack)).substring(0,2048);E=G.length+1;G=pm(G);var P=new Uint8Array(4+G.length);P.set([42,E&127|128,E>>7,H.error.code]);P.set(G,4);return P}; Bsw=function(){for(var H;H=RDM.remove();){try{H.L.call(H.scope)}catch(E){Bv(E)}Jzs(rzn,H)}Hy=!1}; ym=function(H){this.zU=H}; EO=function(H,E,G){this.instance=H;this.L=G;this.exports=this.instance.exports;E.wasi_snapshot_preview1.exports=this.exports;H=Math.floor(Math.random()*256);E=Math.floor(Math.random()*256);G=0;try{G=this.exports.malloc(16);(new Uint8Array(this.exports.memory.buffer,G,16)).fill(H);if(this.exports.sentinel(G,16,E)!==E*16%256)throw"wasm.wm.vi";for(var P=new Uint8Array(this.exports.memory.buffer,G,16),Q=0;Q<16;Q++)if(P[Q]!==(H+E)%256)throw"wasm.wm.vi"+Q;}finally{G!==0&&this.exports.free(G)}}; YYl=function(H,E){H.BT(E.width>=350)}; $b=function(H,E,G){g.GY.call(this,H);var P=this;this.Ru=E;this.IM=G;this.getVideoUrl=new Py(6);this.uu=new Py(5);this.Lz=new Py(4);this.NL=new Py(3);this.Kp=new g.h9(g.Q1({href:"{{href}}",target:this.S.K().L_},void 0,!0),2,"Troubleshoot playback issue");this.showVideoInfo=new g.h9(g.Q1(),1,"Stats for nerds");this.l2=new g.av({J:"div",QN:["ytp-copytext","ytp-no-contextmenu"],j:{draggable:"false",tabindex:"1"},iJ:"{{text}}"});this.Y_=new sO(this.S,this.l2);this.aA=this.xX=null;g.L3(this.S.K())&&(this.closeButton= new g.D({J:"button",QN:["ytp-collapse","ytp-button"],j:{title:"Close"},V:[g.op()]}),g.d(this,this.closeButton),this.closeButton.mx(this.element),this.closeButton.listen("click",this.EJ,this));g.L3(this.S.K())&&(this.dX=new g.h9(g.Q1(),8,"Account"),g.d(this,this.dX),this.Rq(this.dX,!0),this.dX.listen("click",this.swZ,this),H.createClientVe(this.dX.element,this.dX,137682));this.S.K().o2&&(this.WA=new eF("Loop",7),g.d(this,this.WA),this.Rq(this.WA,!0),this.WA.listen("click",this.P1J,this),H.createClientVe(this.WA.element, this.WA,28661));this.S.U("web_player_miniplayer_in_context_menu")&&(this.yL=new g.h9(g.Q1(),6,"Miniplayer"),g.d(this,this.yL),this.Rq(this.yL,!0),this.yL.listen("click",this.typ,this),H.createClientVe(this.yL.element,this.yL,62946));g.d(this,this.getVideoUrl);this.Rq(this.getVideoUrl,!0);this.getVideoUrl.listen("click",this.GUa,this);H.createClientVe(this.getVideoUrl.element,this.getVideoUrl,28659);g.d(this,this.uu);this.Rq(this.uu,!0);this.uu.listen("click",this.DVZ,this);H.createClientVe(this.uu.element, this.uu,28660);g.d(this,this.Lz);this.Rq(this.Lz,!0);this.Lz.listen("click",this.iSm,this);H.createClientVe(this.Lz.element,this.Lz,28658);g.d(this,this.NL);this.Rq(this.NL,!0);this.NL.listen("click",this.WV5,this);g.d(this,this.Kp);this.Rq(this.Kp,!0);this.Kp.listen("click",this.eB_,this);g.d(this,this.showVideoInfo);this.Rq(this.showVideoInfo,!0);this.showVideoInfo.listen("click",this.RB$,this);g.d(this,this.l2);this.l2.listen("click",this.h0F,this);g.d(this,this.Y_);XDT()&&(this.xX=new g.D({J:"textarea", Y:"ytp-html5-clipboard",j:{readonly:"",tabindex:"-1"}}),g.d(this,this.xX),this.xX.mx(this.element));var Q;(Q=this.dX)==null||Q.setIcon(Zb1());var e;(e=this.WA)==null||e.setIcon(CRd());var w;(w=this.yL)==null||w.setIcon(this.S.U("delhi_modern_web_player_icons")?gaQ():we());this.NL.setIcon({J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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.Kp.setIcon(h0());this.showVideoInfo.setIcon(ULQ());this.Z(H,"onLoopChange",this.onLoopChange);this.Z(H,"videodatachange",this.onVideoDataChange);this.Z(H,"fullscreentoggled",function(){L0d(P)}); lE7(this);U2T(this,this.S.getVideoData())}; t0=function(H){H.L===0&&H.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage","0");requestAnimationFrame(function(){var E=H.L-H.C,G=E;H.L!==0&&(G=g.Mo(E,-.01,.01));H.C+=G;H.api.getRootNode().style.setProperty("--ytp-grid-scroll-percentage",""+H.C.toString());H.C!==H.L&&t0(H)})}; kb=function(H,E,G,P){P=P===void 0?{}:P;g.NL(function(){x2n.includes(E)||(g.p5(new g.LN("createClientScreen() called with a non-page VE",E)),E=83769);P.isHistoryNavigation||(H.WF=[],H.L.push({rootVe:E,key:P.key||""}));H.B=[];H.N=[];P.XU?zDt(H,E,G,P):Tsw(H,E,G,P)})()}; VXQ=function(){}; Wy=function(H){return Object.values(H.tracks).find(function(E){return E.languageCode==="en"&&E.kind==="asr"})}; SYn=function(H){var E=0;return function(){return E0?H:0}else H.FZ().videoData.FI=H.playback.getCurrentTime()}; Qqq=function(H,E){H.__closure__error__context__984382||(H.__closure__error__context__984382={});H.__closure__error__context__984382.severity=E}; bH=function(){}; $n7=function(H,E,G,P,Q){try{var e=E.K();if(g.sn(e))var w=new squ(H,E,G,P,Q);else if(g.iH(e))w=new o71(H,E,G,P,Q);else if(Xk(e))w=new eGU(H,E,G,P,Q);else if(g.qt(e))w=new wQl(H,E,G,P,Q);else if(g.Rp(e))w=new hGn(H,E,G,P,Q);else throw new TypeError("Unknown web interface");return w}catch(t){return w=E.K(),xQ("Unexpected interface not supported in Ads Control Flow",void 0,void 0,{platform:w.L.cplatform,interface:w.L.c,E1N:w.L.cver,dAo:w.L.ctheme,mAx:w.L.cplayer,RW5:w.playerStyle}),new CMU(H,E,G,P,Q)}}; Ags=function(H){if(H.j$()){var E=H.data["Stitched-Video-Id"]?H.data["Stitched-Video-Id"].split(",").slice(0,-1):[],G=tju(H),P=[];if(H.data["Stitched-Video-Duration-Us"])for(var Q=g.R(H.data["Stitched-Video-Duration-Us"].split(",").slice(0,-1)),e=Q.next();!e.done;e=Q.next())P.push((Number(e.value)||0)/1E6);Q=[];if(H.data["Stitched-Video-Start-Frame-Index"]){e=g.R(H.data["Stitched-Video-Start-Frame-Index"].split(",").slice(0,-1));for(var w=e.next();!w.done;w=e.next())Q.push(Number(w.value)||0)}Q=[]; if(H.data["Stitched-Video-Start-Time-Within-Ad-Us"])for(e=g.R(H.data["Stitched-Video-Start-Time-Within-Ad-Us"].split(",").slice(0,-1)),w=e.next();!w.done;w=e.next())Q.push((Number(w.value)||0)/1E6);H=new kLs(E,G,P,Q,g.WA7(H),g.INv(H))}else H=null;return H}; J0=function(H){return H==null?H:mn1(H)}; ufq=function(H){if(!H)return null;var E=H.split("x");if(E.length!==2)return null;H=Number(E[0]);E=Number(E[1]);return isNaN(H)||isNaN(E)||H*E<=0?null:new g.P4(H,E)}; re=function(H){H.setAttribute("role","link")}; Mjt=function(H,E,G,P,Q,e,w,t,k,W,I,A,m){E=v7u(H,E,"adapter",G,P,Q,e,w,t,k,I,A,m);P=E.layoutExitSkipTriggers;Q=E.Tj;G.adPodSkipTarget&&G.adPodSkipTarget>0&&(Q.push(W),Q.push(new By(G.adPodSkipTarget)),P=[]);Q.push(new Yb(t.adPodIndex));G.isCritical&&(P=[new lH(H.L,E.layoutId,["error"])].concat(g.EC(P)));return{HK:{layoutId:E.layoutId,layoutType:E.layoutType,w5:E.w5,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], f_:E.f_,clientMetadata:new ZN(Q),O2:E.O2,adLayoutLoggingData:E.adLayoutLoggingData},vA:P,W$:E.layoutExitMuteTriggers,Hk:E.layoutExitUserInputSubmittedTriggers,JI:E.layoutExitUserCancelledTriggers}}; UO=function(H){this.VN=tz(H)}; dnv=function(H,E){try{return globalThis.sessionStorage.setItem(H,E),!0}catch(G){return!1}}; Ch=function(H,E,G){this.initData=H;this.contentType=E;this.isPrefetch=G;this.L=this.cryptoPeriodIndex=NaN;this.G=[];this.wV=!1;this.W=null;if((E==null?void 0:E.toLowerCase())==="webm"||H.length===16)this.wV=!0}; xb=function(H,E){E.name in H.N||(H.N[E.name]=Dnq(H,E));return H.N[E.name]}; n7v=function(H,E){var G=0;H.D.has(E)&&(G=H.D.get(E).Uw);H.D.set(E,{Uw:G+1,vX:Math.pow(2,G+1)});H.W=!0}; aNt=function(H){xQ("getExitReason: unexpected reason",void 0,void 0,{reason:H})}; TY=function(H){var E=zY(H).nonce;E||(E=g.qA(16),zY(H).nonce=E);return E}; OrU=function(H,E,G){var P=[];return g.V1(H,{query:E},function(Q){if(!(G!==void 0&&P.length>=G))return P.push(Q.getValue()),g.SF(Q)}).then(function(){return P})}; f2=function(H,E){if(g.Fe(H.G,E))return H.G[E];if(H=H.L[E])return H.getValue()}; p2=function(H){return H==null?H:KAT(H)}; Hp=function(H){var E=[{J:"div",QN:["ytp-unmute-icon"],V:[{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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"}}]}]}, {J:"div",QN:["ytp-unmute-text"],iJ:"Tap to unmute"}];E.push({J:"div",QN:["ytp-unmute-box"],V:[]});g.nw.call(this,H,{J:"button",QN:["ytp-unmute","ytp-popup","ytp-button","ytp-unmute-animated","ytp-unmute-shrink"],V:[{J:"div",Y:"ytp-unmute-inner",V:E}]},100);this.L=this.clicked=!1;this.api=H;this.api.createClientVe(this.element,this,51663);this.Z(H,"onMutedAutoplayChange",this.onMutedAutoplayChange,this);this.Z(H,"presentingplayerstatechange",this.kx);this.listen("click",this.onClick,this);H=H.isMutedByMutedAutoplay()&& !g.L3(this.api.K());this.BT(H);H&&jqt(this);this.W=H}; brq=function(H){if(H.started&&!H.Iu()){H.D.stop();var E=H.Fo.getPlayerState();g.F(E,32)&&H.N.start();for(var G=cg1(H),P=H.isEnded(E,G),Q=[],e=[],w=g.R(H.W),t=w.next();!t.done;t=w.next())t=t.value,t.active&&(P?t.end<0x8000000000000:!t.contains(G))&&e.push(t);Q=Q.concat(ES(H,e));w=e=null;P?(E=Gc(H.L,0x7ffffffffffff),e=E.filter(function(k){return k.end<0x8000000000000}),w=N_1(H.L)):E=H.G<=G&&Pp(E)?ygn(H.L,H.G,G):Gc(H.L,G); Q=Q.concat(QP(H,E));e&&(Q=Q.concat(ES(H,e)));w&&(Q=Q.concat(QP(H,w)));H.G=G;sS(H,Q)}}; iru=function(H){var E=ob(H)?"custom_metric_viewable":H.toLowerCase();return e3(wz,function(G){return G==E})}; hv=function(H){this.VN=tz(H)}; $Z=function(H){var E=!1,G;return function(){E||(G=H(),E=!0);return G}}; qx1=function(H){var E=H[0];H[0]=H[3];H[3]=E;E=H[1];H[1]=H[2];H[2]=E;E=H[4];H[4]=H[5];H[5]=E;E=H[6];H[6]=H[7];H[7]=E}; Av=function(H){Xu.call(this,H);this.events=new g.Z0;g.d(this,this.events);this.events.Z(H,"applicationInitialized",function(){var E={};for(tv=new kZ(E.handleError===void 0?Wp:E.handleError,E.logEvent===void 0?g.HY:E.logEvent);Ib.length>0;)switch(E=Ib.shift(),E.type){case "ERROR":tv.IF(E.payload);break;case "EVENT":tv.logEvent(E.eventType,E.payload)}}); We(this.api,"queueOfflineAction",this.queueOfflineAction.bind(this));We(this.api,"updateDownloadState",this.updateDownloadState.bind(this));We(this.api,"pauseVideoDownload",this.pauseVideoDownload.bind(this));We(this.api,"resumeVideoDownload",this.resumeVideoDownload.bind(this));We(this.api,"isOrchestrationLeader",this.isOrchestrationLeader.bind(this));We(this.api,"refreshAllStaleEntities",this.refreshAllStaleEntities.bind(this));We(this.api,"setUpPositionSyncInterval",this.setUpPositionSyncInterval.bind(this))}; up=function(H){if(!E)var E=window.location.href;var G=g.AL(H)[1]||null,P=g.mS(H);G&&P?(H=g.AL(H),E=g.AL(E),H=H[3]==E[3]&&H[1]==E[1]&&H[4]==E[4]):H=P?g.mS(E)===P&&(Number(g.AL(E)[4]||null)||null)===(Number(g.AL(H)[4]||null)||null):!0;return H}; vp=function(H){var E=g.c4.apply(1,arguments).filter(Boolean).join("&");if(!E)return H;var G=H.match(/[?&]adurl=/);return G?H.slice(0,G.index+1)+E+"&"+H.slice(G.index+1):H+(H.indexOf("?")<0?"?":"&")+E}; Jgn=function(H){if(!TN(H.adLayoutMetadata))return!1;H=H.renderingContent;return g.X(H,M3)||g.X(H,dz)||g.X(H,RGu)||g.X(H,Dy)||g.X(H,nA)?!0:!1}; B_s=function(H,E){var G=0;G=0;for(var P={};G-G?-E/G*H.interval*.5:-(E+G/2)/G*H.interval}; g7U=function(H,E){if(H.U("html5_disable_ustreamer_constraint_for_sabr")&&ip(E.videoData))return q3;var G=H.Fo.eY();H.U("html5_use_video_quality_cap_for_ustreamer_constraint")&&G&&G.Bq>0&&Rb(E.videoData.jh)&&(H=G.Bq,E.videoData.jh=new Jv(0,H,!1,"u"));return E.videoData.jh}; LAt=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{J:"path",La:!0,j:{d:"M5,0 L9,0 L9,14 L5,14 L5,0 Z",fill:"#eaeaea"}}]}}; rz=function(H,E){g.D.call(this,{J:"button",QN:["ytp-subtitles-button","ytp-button"],j:{"aria-keyshortcuts":"c","aria-pressed":"{{pressed}}","data-priority":"5","data-tooltip-title":"{{tooltip-title}}",title:H.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[H.U("delhi_modern_web_player_icons")?{J:"div",Y:"ytp-subtitles-button-icon",iJ:"{{icon}}"}:lNU(H)]});this.S=H;this.tooltip=E.Zi();H.U("delhi_modern_web_player_icons")&&this.updateValue("icon", Un1(this));this.Z(H,"videodatachange",this.r5);this.Z(H,"appresize",this.r5);this.Z(H,"promotooltipacceptbuttonclicked",this.H0m);this.Z(H,"onApiChange",this.r5);this.Z(H,"onCaptionsTrackListChanged",this.r5);this.Z(H,"captionschanged",this.r5);this.S.createClientVe(this.element,this,127299);this.r5();this.listen("click",this.onClick);this.addOnDisposeCallback(g.SH(E.Zi(),this.element))}; yP=function(H,E,G,P){var Q=H.VN,e=Q[c9]|0;E=xnM(Q,e,E,G,P);if(E==null)return E;e=Q[c9]|0;if(!Bp(H,e)){var w=zGt(E);w!==E&&(rx(H)&&(Q=H.VN,e=Q[c9]|0),E=w,e=jP(Q,e,G,E,P),AO(Q,e))}return E}; T_s=function(H){this.VN=tz(H)}; Vjw=function(H,E,G){if(H.L_.length)for(var P=g.R(H.L_),Q=P.next(),e={};!Q.done;e={b2:void 0},Q=P.next()){e.b2=Q.value;Q=e.b2.startSecs*1E3;var w=e.b2.Po*1E3+Q;if(E>Q&&EQ&&G>>0;H=H.L;var G=I$n(H,E);H=H.W;if(kQn){var P=H,Q;(Q=QW)||(Q=QW=new TextDecoder("utf-8",{fatal:!0}));E=G+E;P=G===0&&E===P.length?P:P.subarray(G,E);try{var e=Q.decode(P)}catch(W){if(sy===void 0){try{Q.decode(new Uint8Array([128]))}catch(I){}try{Q.decode(new Uint8Array([97])),sy=!0}catch(I){sy=!1}}!sy&&(QW=void 0);throw W;}}else{e=G;E=e+E;G=[];for(var w=null,t,k;e=E?oM():(k=H[e++],t<194||(k&192)!==128?(e--,oM()):G.push((t&31)<<6|k&63)): t<240?e>=E-1?oM():(k=H[e++],(k&192)!==128||t===224&&k<160||t===237&&k>=160||((Q=H[e++])&192)!==128?(e--,oM()):G.push((t&15)<<12|(k&63)<<6|Q&63)):t<=244?e>=E-2?oM():(k=H[e++],(k&192)!==128||(t<<28)+(k-144)>>30!==0||((Q=H[e++])&192)!==128||((P=H[e++])&192)!==128?(e--,oM()):(t=(t&7)<<18|(k&63)<<12|(Q&63)<<6|P&63,t-=65536,G.push((t>>10&1023)+55296,(t&1023)+56320))):oM(),G.length>=8192&&(w=WY1(w,G),G.length=0);e=WY1(w,G)}return e}; IYd=function(H,E){H.L=E}; wo=function(){return g.aD("smart-tv")&&g.aD("samsung")}; A8u=function(H,E){var G=E.code;G!==void 0&&($G(H,8),$G(H,G<<1^G>>31));Uj(H,2,E.message)}; mqQ=function(H,E){tb(H,1,E.type);oS(H,2,E.value)}; kG=function(){this.mappings=new SCu}; u9u=function(H){return g.pr("yt-player-drc-pref")?g.W2(H,IM):H}; Dqs=function(H,E){var G=new Bil;g.Ab(H.xhr,"complete",function(){if(mZ(H.xhr)){var P=g.u3(H.xhr);if(E&&H.xhr.getResponseHeader("Content-Type")==="text/plain"){if(!atob)throw Error("Cannot decode Base64 response");P=atob(P)}try{var Q=H.B(P)}catch(t){v2(H,Ma(new DJ(13,"Error when deserializing response data; error: "+t+(", response: "+P)),G));return}P=vvd(H.xhr.getStatus());nt(H,aM(H));P===0?MyU(H,Q):v2(H,Ma(new DJ(P,"Xhr succeeded but the status code is not 200"),G))}else{P=g.u3(H.xhr);Q=aM(H);if(P){var e= dqw(H,P);P=e.code;var w=e.details;e=e.metadata}else P=2,w="Rpc failed due to xhr error. uri: "+String(H.xhr.N)+", error code: "+(H.xhr.W+", error: ")+H.xhr.getLastError(),e=Q;nt(H,Q);v2(H,Ma(new DJ(P,w,e),G))}})}; aYU=function(H,E,G){var P;return(P=H.L)==null?void 0:CA(P,function(){return Oy(H,E)},G,function(Q){var e; if(H.L instanceof Kt&&((e=E.w0)==null?0:e.I8))try{var w;(w=H.cache)==null||nvQ(w,Oy(H,E),Q,E.w0.Fs,H.C-120)}catch(t){H.reportError(new jg(24,"ELX:write",t))}})}; Oul=function(H){var E=E||0;return function(){return H.apply(this,Array.prototype.slice.call(arguments,0,E))}}; CT=function(H){if(H&&H.simpleText)return H.simpleText;var E="";if(H&&H.runs)for(var G=0;GG)Q=G;P+=E.length+1;return Na(H.slice(P,Q!==-1?Q:0))}; b3=function(H,E){var G="f"+(Math.floor(H/31)+1);H=1<0){O=new zt;for(var q=0;q=0&&(E in H.L||(H.L[E]=new uw),H.L[E].lA(G,P))}; vS=function(H){this.VN=tz(H,36)}; MN=function(H,E,G){var P=Jg(H.W.get(),"SLOT_TYPE_PLAYER_BYTES"),Q=[new r_(H.L,P)];H=[new Y7(H.L,P),new BQ(H.L,G)];return{slotId:P,slotType:"SLOT_TYPE_PLAYER_BYTES",slotPhysicalPosition:1,slotEntryTrigger:E,slotFulfillmentTriggers:Q,slotExpirationTriggers:H,f_:"core"}}; g.dm=function(H){var E=H.length;if(E>0){for(var G=Array(E),P=0;P=4E3}; nQ=function(H){return!!H.videoData.startSeconds&&isFinite(H.videoData.startSeconds)&&H.videoData.startSeconds>1E9}; a0=function(H){if(!H.userDisplayImage)return"";var E=H.userDisplayImage.split("/");if(E.length===5)return H=E[E.length-1].split("="),H[1]="s20-c",E[E.length-1]=H.join("="),E.join("/");if(E.length===8)return E.splice(7,0,"s20-c"),E.join("/");if(E.length===9)return E[7]+="-s20-c",E.join("/");g.p5(new g.LN("Profile image not a FIFE URL.",H.userDisplayImage));return H.userDisplayImage}; Op=function(H,E,G,P,Q,e){S_.call(this,H,{J:"div",Y:"ytp-ad-skip-ad-slot"},"skip-ad",E,G,P,Q);this.WF=e;this.D=!1;this.T=0;this.G=this.W=null;this.hide()}; FYs=function(H){var E=g.u0();if(H==="Internet Explorer"){if(Vyu())if((H=/rv: *([\d\.]*)/.exec(E))&&H[1])E=H[1];else{H="";var G=/MSIE +([\d\.]+)/.exec(E);if(G&&G[1])if(E=/Trident\/(\d.\d)/.exec(E),G[1]=="7.0")if(E&&E[1])switch(E[1]){case "4.0":H="8.0";break;case "5.0":H="9.0";break;case "6.0":H="10.0";break;case "7.0":H="11.0"}else H="7.0";else H=G[1];E=H}else E="";return E}var P=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");G=[];for(var Q;Q=P.exec(E);)G.push([Q[1],Q[2],Q[3]||void 0]); E=OWw(G);switch(H){case "Opera":if(J_())return E(["Version","Opera"]);if(Re()?ya("Opera"):ih("OPR"))return E(["OPR"]);break;case "Microsoft Edge":if(Re()?0:ih("Edge"))return E(["Edge"]);if(g01())return E(["Edg"]);break;case "Chromium":if(qQ())return E(["Chrome","CriOS","HeadlessChrome"])}return H==="Firefox"&&rH()||H==="Safari"&&BR()||H==="Android Browser"&&SUs()||H==="Silk"&&ih("Silk")?(E=G[2])&&E[1]||"":""}; KQ=function(H){this.L=this.W=0;this.alpha=Math.exp(Math.log(.5)/H)}; jL=function(H,E,G,P){P=P===void 0?!1:P;g.av.call(this,{J:"div",Y:"ytp-ad-persistent-progress-bar-container",V:[{J:"div",Y:"ytp-ad-persistent-progress-bar"}]});this.api=H;this.W=E;this.G=G;P&&this.element.classList.add("ytp-ad-persistent-progress-bar-container--clean-player");g.d(this,this.W);this.progressBar=this.HF("ytp-ad-persistent-progress-bar");this.L=-1;this.Z(H,"presentingplayerstatechange",this.onStateChange);this.hide();this.onStateChange()}; g.cS=function(H){return H.L?H.L.readyState:0}; ek=function(H){fY1(x0);var E=H.L;E=E==null||nnj&&E!=null&&E instanceof Uint8Array?E:typeof E==="string"?pYt(E):null;return E==null?E:H.L=E}; HNt=function(H){this.L=H;this.L_=this.z$=this.B=this.O7=this.D=this.T=this.p_=this.C=this.PF=this.N=this.T$=this.Jm=this.E7=this.WF=0;this.ticks={}}; xnM=function(H,E,G,P,Q){var e=!1;P=NN(H,P,Q,function(w){var t=Eit(w,G,E);e=t!==w&&t!=null;return t}); if(P!=null)return e&&!Bp(P)&&AO(H,E),P}; NN=function(H,E,G,P){if(E===-1)return null;var Q=E+(G?0:-1),e=H.length-1;if(!(e<1+(G?0:-1))){if(Q>=e){var w=H[e];if(w!=null&&typeof w==="object"&&w.constructor===Object){G=w[E];var t=!0}else if(Q===e)G=w;else return}else G=H[Q];if(P&&G!=null){P=P(G);if(P==null)return P;if(!Object.is(P,G))return t?w[E]=P:H[Q]=P,P}return G}}; GJT=function(H,E){for(var G={},P=0;P>>=1,G<<=1;while(--E>0);return G>>>1}; oiU=function(H,E){var G=[];for(E=E||0;E0&&H[H.length-1]!=null&&H[H.length-1].url!=null?g.mS(H[H.length-1].url)||"":"";this.L=new lJ(0,0,0,0);this.D=new g.P4(0,0);this.T=new g.P4(0,0);this.B=new lJ(0,0,0,0);this.frameOffset=new g.oG(0,0);this.C=0;this.N=!1;this.W=!(!md||!niw(md).zP);this.update(md)}; bG=function(H,E){this.G=!1;this.D=H;this.L_=E;this.T=0}; zu=function(H,E){this.W=H;this.subtleCrypto=E}; iq=function(H,E,G){Tu(H.L,E*8+G)}; RqQ=function(H){var E=new rf;by(H,function(G,P,Q){E[P]=WV(Q)}); E.uP=H.uP;return E}; VL=function(H,E,G,P,Q){P=P===void 0?!1:P;g.J.call(this);this.lJ=E;this.useCobaltWidevine=P;this.g5=Q;this.W=[];this.G={};this.L={};this.callback=null;this.T=!1;this.D=[];this.initialize(H,!G)}; SL=function(H){if(!H.s9)return{};var E=H.s9.NF(),G;E.d=(G=H.s9.PF)==null?void 0:G.hK();E.shost=H.rS;E.ty="o";return E}; tg=function(H,E,G,P,Q){var e=G.Bj,w,t;H[E]=function(k,W,I){return e(k,W,I,t||(t=w_(hg,$7,tg,P).BM),w||(w=Iq(P)),Q)}}; ONu=function(H){this.g5=H;this.L={}}; FP=function(H){if(!/^\w+$/.test(H))throw Error("ExpectedRegexMismatch: "+H);}; FAn=function(H,E){if(E!==null&&E!==void 0){if(typeof E!=="object"&&typeof E!=="function")throw new TypeError("Object expected.");if(G===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");var G=E[Symbol.dispose]}if(typeof G!=="function")throw new TypeError("Object not disposable.");H.stack.push({value:E,dispose:G,async:!1})}return E}; E$=function(){fQ.call(this);this.G=new pQ;this.eR=this.L_=this.E7=0;this.N=-1;this.s7=new pQ;this.T=new pQ;this.L=new Hj;this.C=this.D=-1;this.p_=new pQ;this.hm=2E3;this.O7=new B9;this.MZ=new B9;this.BF=new B9}; Kyl=function(H){var E=new g.av({J:"div",QN:["ytp-ad-text-overlay","ytp-ad-enhanced-overlay"],V:[{J:"div",Y:"ytp-ad-overlay-ad-info-button-container"},{J:"div",Y:"ytp-ad-overlay-close-container",V:[{J:"button",Y:"ytp-ad-overlay-close-button",V:[iL(OD)]}]},{J:"div",Y:"ytp-ad-overlay-text-image",V:[{J:"img",j:{src:"{{imageUrl}}"}}]},{J:"div",Y:"ytp-ad-overlay-title",iJ:"{{title}}"},{J:"div",Y:"ytp-ad-overlay-desc",iJ:"{{description}}"},{J:"div",QN:["ytp-ad-overlay-link-inline-block","ytp-ad-overlay-link"], iJ:"{{displayUrl}}"}]});H.Z(E.HF("ytp-ad-overlay-title"),"click",function(G){$2(H,E.element,G)}); H.Z(E.HF("ytp-ad-overlay-link"),"click",function(G){$2(H,E.element,G)}); H.Z(E.HF("ytp-ad-overlay-close-container"),"click",H.nF);H.Z(E.HF("ytp-ad-overlay-text-image"),"click",H.i0$);E.hide();return E}; i0=function(H){try{return!!H&&H.location.href!=null&&LJq(H,"foo")}catch(E){return!1}}; jSt=function(H){H.L>=0||(H.provider.Fo.getVisibilityState()===3?H.T=!0:(H.L=g.Gm(H.provider),H.delay.start()))}; JU=function(H,E,G,P,Q,e,w){g.J.call(this);this.policy=H;this.info=E;this.ou=G;this.gP=Q;this.logger=new g.Pj("sabr");this.Ty=new Qw(this);this.m0=new Z$(this);this.ZO=new s$(this);this.state=1;this.MJ=!1;this.LJ=0;this.clipId="";this.bA=-1;this.cX=0;this.Xs=-1;this.HH=this.WJ=this.Xl=this.nY=!1;this.policy.Oc?this.s9=new o2(this,e):this.s9=new en(this,e);this.Sy=this.policy.V8?E.rS:ce7(E,this.policy,P);this.Sy.set("rn",""+this.tR());this.Sy.set("alr","yes");Nnd(this.ZO,G,H);this.E9=new ww(this,this.policy, this.Sy,E.Du,this.s9,this.logger,P,w,this.policy.enableServerDrivenRequestCancellation);yed(this.E9);var t;if((t=this.policy)==null?0:t.Z7)g.d(this,this.ZO),g.d(this,this.E9);H=E.W;E={method:"POST",body:H};H&&(this.cX=H.length);try{this.xhr=h$(this.Sy,this.policy.N,this.s9,Fa,E),this.policy.XH&&Rr(this.s9,this.TU()),this.E9.W.start()}catch(k){g.p5(k)}}; bNu=function(H){return H?decodeURI(H):H}; t$=function(H){$S(H.Da.get())||H.L()}; Wj=function(H,E,G){g.J.call(this);this.position=iNU.clone();this.N0=this.y5();this.aT=-2;this.timeCreated=Date.now();this.h$=-1;this.Vm=E;this.ew=null;this.qz=!1;this.JP=null;this.opacity=-1;this.requestSource=G;this.AEZ=!1;this.q_=function(){}; this.Pa=function(){}; this.GT=new cdU;this.GT.JA=H;this.GT.L=H;this.Kd=!1;this.GG={HU:null,JB:null};this.iD=!0;this.IA=null;this.WE=this.bPx=!1;X9().C++;this.Fr=this.gY();this.Z_=-1;this.oM=null;this.hasCompleted=this.J7Z=!1;this.b4=new uT;qBd(this.b4);R8s(this);this.requestSource==1?kS(this.b4,"od",1):kS(this.b4,"od",0)}; Jej=function(H){var E=dd(H),G=I2(H,"position"),P=G=="fixed"||G=="absolute";for(H=H.parentNode;H&&H!=E;H=H.parentNode)if(H.nodeType==11&&H.host&&(H=H.host),G=I2(H,"position"),P=P&&G=="static"&&H!=E.documentElement&&H!=E.body,!P&&(H.scrollWidth>H.clientWidth||H.scrollHeight>H.clientHeight||G=="fixed"||G=="absolute"||G=="relative"))return H;return null}; uc=function(H,E,G,P,Q,e,w,t,k,W,I){A$.call(this,H,E,G,P,Q,e,w,t,k,W);this.G=I;this.W=this.L=null;H=g.R(this.G);for(E=H.next();!E.done;E=H.next())E=E.value,mw(E.Za().clientMetadata,"metadata_type_survey_overlay")&&(this.W=E.Za().layoutId)}; vj=function(H,E,G,P){H.cT.yp(rev(P),E,G,void 0);H=g.R(H.W);for(var Q=H.next();!Q.done;Q=H.next())Q.value.u4(E,G,P)}; g.a2=function(H,E){var G=E.format||"JSON";H=BnQ(H,E);var P=YBT(H,E),Q=!1,e=XLv(H,function(k){if(!Q){Q=!0;t&&g.M9(t);var W=g.dw(k),I=null,A=400<=k.status&&k.status<500,m=500<=k.status&&k.status<600;if(W||A||m)I=ZNu(H,G,k,E.convertToSafeHtml);W&&(W=Cq1(G,k,I));I=I||{};A=E.context||g.lU;W?E.onSuccess&&E.onSuccess.call(A,k,I):E.onError&&E.onError.call(A,k,I);E.onFinish&&E.onFinish.call(A,k,I)}},E.method,P,E.headers,E.responseType,E.withCredentials,!1,E.onProgress); P=E.timeout||0;if(E.onTimeout&&P>0){var w=E.onTimeout;var t=g.bw(function(){Q||(Q=!0,e.abort(),g.M9(t),w.call(E.context||g.lU,e))},P)}return e}; O$=function(H){bG.call(this,"audio_audible",H)}; KB=function(){L5.call(this)}; giw=function(H,E,G,P,Q,e,w,t,k){P.every(function(I){return jn(I,[],["LAYOUT_TYPE_MEDIA"])})||xQ("Unexpect subLayout type for DAI composite layout"); E=dU(H.W.get(),"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",E);var W={layoutId:E,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",f_:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",w5:new Map,layoutExitNormalTriggers:[new cj(H.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:new ZN([new N9(G),new yw(t),new bc(P),new nn(Q),new ic(e),new Yj({}),new q9(k)]),O2:w(W)}}; Lyd=function(H){H&&(H.GB=void 0,H.Mi=!0);return R2(H)}; DY=function(H,E,G){g.J.call(this);this.S=H;this.C_=E;this.Da=G;this.listeners=[];this.fl=[];this.L=function(){xQ("Called 'doUnlockPreroll' before it's initialized.")}; E=new J$(this);G=new g.Z0(this);g.d(this,G);g.d(this,E);E.Z(H,"progresssync",this.TO7);E.Z(H,"presentingplayerstatechange",this.sMp);E.Z(H,"fullscreentoggled",this.onFullscreenToggled);E.Z(H,"onVolumeChange",this.onVolumeChange);E.Z(H,"minimized",this.gG);E.Z(H,"overlayvisibilitychange",this.AR);E.Z(H,"shortsadswipe",this.Bt);E.Z(H,"resize",this.h7);G.Z(H,g.Ya("appad"),this.oJ)}; lav=function(){this.D=this.G=this.L=this.timedOut=this.started=this.T=this.W=0}; Vt=function(H,E){return U5t(E.call(H))}; rw=function(H){H.onreadystatechange&&H.onreadystatechange.call(H)}; Bj=function(H,E){var G={};G[H]=E;return[G]}; o6=function(H,E){H.W||H.L!=2&&H.L!=3||x5l(H);H.D?H.D.next=E:H.W=E;H.D=E}; YS=function(){return"https://play.google.com/log?format=json&hasfast=true"}; z8Q=function(H){return g.ve(H.L,function(E){return E.info.video?E.info.video.projectionType==="MESH":!1})}; V0u=function(H,E){(0,g.D9)(E.L,function(G){H.add(G.W,G.L,TnT(G))})}; lUl=function(){}; Zg=function(H){H=H===void 0?!1:H;var E=X6(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(H)for(;E&&E.shadowRoot;)E=E.shadowRoot.fullscreenElement;return E?E:null}; g.gw=function(H){var E=CB(H);return E=="array"||E=="object"&&typeof H.length=="number"}; LB=function(H){H.W&&(H.W.disable(),H.hm=0,H.WF.style.removeProperty("transform"),H.progressBar.style.removeProperty("transform"),H.s7.style.removeProperty("height"),H.element.parentElement&&H.element.parentElement.style.removeProperty("height"))}; SBQ=function(H,E){return mw(H.clientMetadata,"metadata_ad_video_is_listed")?Zi(H.clientMetadata,"metadata_ad_video_is_listed"):E?E.isListed:(xQ("No layout metadata nor AdPlayback specified for ad video isListed"),!1)}; Fy1=function(H,E){H.G=H.D.animate([{offset:0,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)",opacity:E},{offset:1,opacity:1}],{duration:200,fill:"forwards"});H.G.addEventListener("finish",function(){H.G=void 0;H.C.start();H.L="lingering"})}; KJU=function(H,E){this.W=H;this.G=E;this.L=new WKn(H)}; EYj=function(H){H.WF=!1;var E=f2(X9().b4,"rmmt")==1,G=!!H.MA("isViewable");(E?!G:1)&&nC().setTimeout(da(524,function(){H.WF||(fad(H),lc(540,Error()),H.B="mt",H.fail("w"))}),500); pLM(H);U$(H,H.W.zP.AFMA_LIDAR,Hhn)}; G4v=function(H,E){var G=H.C[E],P=G==="End of video"||G==="End of playlist";G==="Off"&&(H.L="");H.S.getPlayerState()!==0&&H.S.getPlayerState()!==5||!P?(H.G=E,g.os.prototype.K0.call(H,E),H.nm(E),H.S.n_("onSleepTimerSettingsChanged",G)):H.S.n_("innertubeCommand",{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:"Video has already ended"}}}}})}; zeU=function(H){H.D||(H.D=new g.xS(H.W));return H.D}; oYq=function(H,E,G,P){H||(H=E&&PhM.hasOwnProperty(E)&&QeT.hasOwnProperty(E)?QeT[E]+"_"+PhM[E]:void 0);E=H;if(!E)return null;H=E.match(sej);if(!H||H.length!==5)return null;if(H=E.match(sej)){var Q=Number(H[3]),e=[7,8,10,5,6];H=!(Number(H[1])===1&&Q===8)&&e.indexOf(Q)>=0}else H=!1;return G||P||H?E:null}; eCu=function(H,E,G,P){if(H instanceof g.El)return y9w(H,E,G,P),!0;if(H)try{var Q=!!H.$goog_Thenable}catch(w){Q=!1}else Q=!1;if(Q)return H.then(E,G,P),!0;if(g.rW(H))try{var e=H.then;if(typeof e==="function")return acs(H,e,E,G,P),!0}catch(w){return G.call(P,w),!0}return!1}; zm=function(H){J$.call(this);this.L=H;this.Z(this.L,"onAdUxUpdate",this.T)}; Tm=function(H,E){return new g.cP(Math.max(0,H-5E3),E?0x8000000000000:H-1,{namespace:"childplayback",priority:9})}; do7=function(H,E){this.url=H;this.L=!!E;this.depth=null}; wRq=function(H,E,G){H.eq.get(E).onProgress=G}; $QU=function(H,E,G,P){var Q=H.ou,e=H.Fo.getVideoData(),w=H.gZ,t=AET({mZ:H.mZ,lJ:e.K(),Fo:H.Fo,Ko:H.Ko,nS:H.nS,rf:H.rf,Qt:H.Qt,Rt:H.Rt,uN:H.uN,EV:H.EV,B$:H.B$,tX:H.tX,sabrLicenseConstraint:e.sabrLicenseConstraint,tq:H.tq,Fl:H.Fl,CI:H.CI,cM:H.cM,G6p:!!w,authorizedFormats:e.authorizedFormats}),k=Vw(e,H.q7,H.nextRequestPolicy,H.Xx,H.UA,H.pJ,H.oB);G&&E&&(G=k.LU?k.LU.map(function(m){return m.type}):[],E("sabr",{stmctxt:G.join("_"), unsntctxt:k.Vd?k.Vd.join("_"):""}));E=H.pV;G=H.Wv;if(G===void 0&&E===void 0){var W;G=hCU(Q.T6,(W=H.g2)==null?void 0:W.video);var I;E=hCU(Q.T6,(I=H.g2)==null?void 0:I.audio)}if(e.H6)var A=e.H6;e={bd:t,J_:H.J_,pV:E,Wv:G,gZ:w,videoPlaybackUstreamerConfig:A,OW:k};P&&H.uT?H.uT.length>0&&(e.uT=H.uT):H.yW&&(e.yW=H.yW);e.i4=H.i4;e.Dn=Q.Yp;return e}; WT1=function(H,E,G){var P,Q,e,w;return g.L(function(t){if(t.L==1){if(!g.Xj("start_client_gcf"))return t.bJ(0);Sn(H,E);return(P=CN())?G?t.bJ(4):g.U(t,t_1(P),5):t.bJ(0)}t.L!=4&&(Q=t.W,G=(e=Q)==null?void 0:e.config);if(!G)return t.bJ(0);w=G.configData;return g.U(t,k4Q(G,E,w,P),0)})}; IBT=function(H){var E=H.mediaElement;F6()?H.l3.Z(E,"webkitpresentationmodechanged",H.NOp):window.document.pictureInPictureEnabled&&(H.l3.Z(E,"enterpictureinpicture",function(){H.KO(!0)}),H.l3.Z(E,"leavepictureinpicture",function(){H.KO(!1)})); fB&&(H.l3.Z(E,"webkitbeginfullscreen",function(){H.PA(3)}),H.l3.Z(E,"webkitendfullscreen",function(){H.PA(0)}))}; HK=function(H,E,G,P,Q,e,w){P=P===void 0?!1:P;Q=Q===void 0?!1:Q;w=w===void 0?!0:w;Q||(Q=H.api.K().D);var t=H.api.getVideoData();E=g.ct(g.pB[E]||"",P?{CPN:t.clientPlaybackNonce}:{}).split(/\$(BEGIN|END)_LINK/);P=[];e&&P.push({J:"h2",iJ:e});P.push(E[0]);w&&P.push({J:"br"});P.push({J:"a",j:{href:G,target:Q?"_blank":null},Y:"ytp-error-link",iJ:E[2]});H.G=!0;P.push(E[4]);return{J:"span",V:P}}; iT=function(H,E){if(!g.Xj("web_csi_action_sampling_enabled")||!zY(E).actionDisabled){var G=yv(E||"");zr(G.info,H);H.loadType&&(G=H.loadType,BP(E).loadType=G);zr(BfQ(E),H);G=TY(E);E=zY(E).cttAuthInfo;Eq().info(H,G,E)}}; G2=function(H){A_l();Z5s();H.timerName=""}; sq=function(H){var E=PK(H);H=PK(H);return Qe(E,H)}; mQv=function(H,E,G,P,Q,e){if(Array.isArray(G))for(var w=0;w0){for(var P=g.R(E),Q=P.next();!Q.done;Q=P.next())Q=Q.value,Q.startTime-=H.W,Q.endTime-=H.W;G.L-=H.W}else G.L=H.L.L;G.segments=E;return G}; BV=function(H){H=H[Y0];return H instanceof XL?H:null}; g.ux=function(H,E){var G=H.style[aBv(E)];return typeof G!=="undefined"?G:H.style[mB(H,E)]||""}; jeU=function(H,E,G,P){E=E===void 0?[]:E;H.Iu();var Q=[],e=[];E=g.R(E);for(var w=E.next();!w.done;w=E.next())w=w.value,g.X(w,Ohl)||g.X(w,KTT)?Q.push(w):e.push(w);Q=g.R(Q);for(E=Q.next();!E.done;E=Q.next())vK(H,E.value,G,P);e=g.R(e);for(Q=e.next();!Q.done;Q=e.next())vK(H,Q.value,G,P)}; c_t=function(H,E){if(E>=0)Tu(H,E);else{for(var G=0;G<9;G++)H.L.push(E&127|128),E>>=7;H.L.push(1)}}; NHs=function(H){var E=this;var G=G===void 0?0:G;var P=P===void 0?g.PY():P;this.G=G;this.scheduler=P;this.W=new g.M$;this.L=H;for(H={B9:0};H.B92?P[2]:"",Q.remoteClient=e,H.remoteContexts?H.remoteContexts.push(Q):H.remoteContexts=[Q],G=!0)}); return G}; r_M=function(H){var E=new g.KD(H.X,H.bW);H.cF.publish("initialvideodatacreated",E);return j4(H,1,E,!1)}; cK=function(H,E){var G=H.KH();H.expanded!==G&&(H.expanded=G,E===void 0||E?(H.s7.stop(),H.MZ.stop(),H.au.stop(),H.s7.start()):(H.G.BT(H.expanded),g.Bt(H.badge.element,"ytp-suggested-action-badge-expanded",H.expanded)),H.M0())}; ix=function(H,E,G){g.z7.call(this);this.videoData=H;this.experiments=E;this.T=G;this.W=[];this.wI=0;this.G=!0;this.D=!1;this.C=0;G=new BH1;H.latencyClass==="ULTRALOW"&&(G.N=!1);H.TP?G.G=3:g.eP(H)&&(G.G=2);H.latencyClass==="NORMAL"&&(G.T=!0);G.p_=ip(H);if(H.latencyClass==="LOW"||H.latencyClass==="ULTRALOW")G.T=!0;var P=g.hE(E,"html5_liveness_drift_proxima_override");if(N$(H)!==0&&P){G.L=P;var Q;((Q=H.L)==null?0:YFu(Q))&&G.L--}ip(H)&&E.xp("html5_sabr_parse_live_metadata_playback_boundaries")&&(G.WF= !0);if(g.aD("trident/")||g.aD("edge/"))Q=g.hE(E,"html5_platform_minimum_readahead_seconds")||3,G.D=Math.max(G.D,Q);g.hE(E,"html5_minimum_readahead_seconds")&&(G.D=g.hE(E,"html5_minimum_readahead_seconds"));g.hE(E,"html5_maximum_readahead_seconds")&&(G.L_=g.hE(E,"html5_maximum_readahead_seconds"));if(E=g.hE(E,"html5_liveness_drift_chunk_override"))G.L=E;ye(H)&&(G.L=(G.L+1)/5,H.latencyClass==="LOW"&&(G.L*=2));!ip(H)||H.latencyClass!=="ULTRALOW"&&H.latencyClass!=="LOW"||(G.B=3,G.C=25);this.policy=G; this.B=this.policy.G!==1;this.L=bx(this,XRv(this,isNaN(H.liveChunkReadahead)?3:H.liveChunkReadahead,H))}; IP=function(H){return H.U("web_settings_menu_surface_custom_playback")}; Rc=function(H,E,G,P){function Q(w){var t=!(w.status!==204&&w.status!==200&&!w.response),k;w={succ:""+ +t,rc:w.status,lb:((k=w.response)==null?void 0:k.byteLength)||0,rt:((0,g.ON)()-e).toFixed(),shost:g.mS(H),trigger:E};Zhw(w,H);G&&G(w);P&&!t&&P(new g.q$("pathprobe.net",w))} var e=(0,g.ON)();g.a2(H,{format:"RAW",responseType:"arraybuffer",timeout:1E4,onFinish:Q,onTimeout:Q})}; gYt=function(H){var E=H.D.querySelector(".ytp-seek-overlay-arrow-persistent").cloneNode(!0);E.classList.add("ytp-seek-overlay-arrow-additional");E.classList.remove("ytp-seek-overlay-arrow-persistent");H.D.appendChild(E);Chj(H,E,!0,!0).addEventListener("finish",function(){E.remove()})}; J2=function(H,E){var G=this;this.gP=H;this.requestNumber=++LT7;this.L=this.now();this.N=this.L_=NaN;this.B=this.L;this.G=this.V8=this.T=0;this.C=this.L;this.hm=this.WF=this.O7=this.ML=this.gt=this.E7=this.W=this.D=0;this.p_=this.isActive=!1;this.G6=this.au=0;this.kV={Sqw:function(){return G.KL}}; this.mZ=E.mZ;this.snapshot=df(this.mZ);this.policy=this.mZ.W;this.Sl=!!E.Sl;this.jN=E.jN;this.Gy=E.Gy||0;this.lk=E.lk||0;E.L9&&(this.PF=new M1);var P;this.KL=(P=E.KL)!=null?P:!1;this.Sl||lBl(this.mZ)}; xQn=function(H,E,G){G=G===void 0?H.K().schedule:G;var P,Q,e,w,t,k,W,I,A,m,u,v,n,O,q,N,r,B,l,S,z,Pt,eu,QM,$Q,En;return g.L(function(Dj){if(Dj.L==1)return E.fetchType="onesie",P=UQT(E,H.getPlayerSize(),H.getVisibilityState()),Q=new r1(H,P,G),g.U(Dj,Q.fetch(),2);e=Dj.W;w={player_response:e};E.loading=!1;t=H.O9.b3;if(Q.sM){k=g.R(Q.sM.entries());for(W=k.next();!W.done;W=k.next())I=W.value,A=g.R(I),m=A.next().value,u=A.next().value,v=m,n=u,t.L.set(v,n,180),v===E.videoId&&(O=n.S$(),E.Cv=O);t.TG=Q}q=g.R(Q.OS.entries()); for(N=q.next();!N.done;N=q.next())r=N.value,B=g.R(r),l=B.next().value,S=B.next().value,z=l,Pt=S,t.W.set(z,Pt,180);g.zN(E,w,!0);if(E.loading||UD(E))return Dj.return(Promise.resolve());t.L.removeAll();t.W.removeAll();E.Cv=[];eu={};QM="onesie.response";$Q=0;E.errorCode?(QM="auth",eu.ec=E.errorCode,eu.ed=E.errorDetail,eu.es=E.sF||"",$Q=2):(eu.successButUnplayable="1",eu.disposed=""+ +E.Iu(),eu.afmts=""+ +/adaptiveFormats/.test(e),eu.cpn=E.clientPlaybackNonce);En=new g.q$(QM,eu,$Q);return Dj.return(Promise.reject(En))})}; BK=function(H){if(H.W)return H.W;var E=Lu(lG).L;if(E)switch(E.getName()){case "nis":H.W="n";break;case "gsv":H.W="m"}H.W||(H.W="h");return H.W}; YA=function(H,E,G,P){this.durationMs=E;this.triggeringLayoutId=G;this.triggerType="TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=P||H(this.triggerType)}; vnq=function(H,E,G,P){var Q=this[hg],e=this[ej],w=X4(void 0,Q.BM,!1),t=RW(H);if(t){var k=!1,W=Q.extensions;if(W){Q=function(v,n,O){if(O.length!==0)if(W[n])for(v=g.R(O),n=v.next();!n.done;n=v.next()){n=zCn(n.value);try{k=!0,e(w,n)}finally{n.free()}}else P==null||P(H,n,O)}; if(E==null)by(t,Q);else if(t!=null){var I=t[E];I&&Q(t,E,I)}if(k){var A=H[c9]|0;if(A&2&&A&2048&&(G==null||!G.txN))throw Error();var m=dW(A),u=function(v,n){if(NN(H,v,m)!=null)switch(G==null?void 0:G.iva){case 1:return;default:throw Error();}n!=null&&(A=jP(H,A,v,n,m));delete t[v]}; E==null?Xo7(w,w[c9]|0,function(v,n){u(v,n)}):u(E,NN(w,E,m))}}}}; V_Q=function(H,E){return THj(H,E)}; ZK=function(H){this.VN=tz(H)}; g.CD=function(H){return{value:H,done:!1}}; g.SFj=function(H){this.data=H;this.L=0;this.D=!1;this.G=0;this.error=!1;this.register=this.W=0;if(g1.length===0){g1.length=288;g1.fill(8);for(H=144;H<280;H++)g1[H]=H<=255?9:7;LD.length=32;LD.fill(5);lx.length=286;lx.fill(0);for(H=261;H<285;H++)lx[H]=Math.floor((H-261)/4);Uq[257]=3;for(H=258;H<285;H++){var E=Uq[H-1];E+=1<0?" "+E:E))}}; pRw=function(H,E,G){var P=[];H=g.R(H);for(var Q=H.next();!Q.done;Q=H.next())if(Q=Q.value,g.X(Q,S4)){Q=F4(g.X(Q,S4),E,G);if(Q instanceof Xf)return new T(Q);P.push(Q.Gp)}return P}; LJq=function(H,E){try{return Ln(H[E]),!0}catch(G){}return!1}; Cq=function(H,E,G){E=E===void 0?!1:E;G=G===void 0?1048576:G;var P=MO(H);P=1/((H.B.BK()||0)*H.policy.p_+1/P);var Q=H.O7.BK();Q=Q>0?Q:1;var e=Math.max(P,Q);H.policy.T>0&&Q=602)}; uu7=function(H,E){var G=H.app;Iz(G.pS())&&G.XI.D[2]&&g.d3(H.logger,360717806,"SSTM lingering playback");H.api.AM();H.api.publish("serverstitchedvideochange",E.U9,E.wc)}; Af=function(H,E){this.C=E===void 0?!1:E;this.L=this.W=this.G=this.startTimestamp=0;this.D=!1;this.T=Math.ceil(H/1E3)}; g.SF=function(H){H.cursor.continue(void 0);return mh(H.request)}; vxU=function(){var H=g.lU.navigator;return H?H.connection:void 0}; MG=function(H,E,G){return ul(H)?new vG(Math.max(E,H.PT.startTimeMs/1E3),Math.min(G,H.PT.endTimeMs/1E3)):new vG(E,G)}; Mbu=function(H,E){var G=H.cF.getAvailablePlaybackRates();E=Number(E.toFixed(2));H=G[0];G=G[G.length-1];E<=H?E=H:E>=G?E=G:(H=Math.floor(E*100+.001)%5,E=H===0?E:Math.floor((E-H*.01)*100+.001)/100);return E}; dr=function(H,E){E=E===void 0?"":E;H=d7U(H)[0][D7T];var G;E=(G=E)!=null?G:"[signal]";H.debugName=E}; yO=function(H){Xu.call(this,H);var E=this,G={};this.E7=(G.TIMELY_ACTION_TRIGGER_TYPE_UNSPECIFIED=function(){return!1},G.TIMELY_ACTION_TRIGGER_TYPE_KEYBOARD_SEEK=function(P){return nxT(E,P)},G.TIMELY_ACTION_TRIGGER_TYPE_PROGRESS_BAR_SEEK=function(P){return nxT(E,P)},G.TIMELY_ACTION_TRIGGER_TYPE_PLAYER_CONTROLS_SHOWN=function(){return E.api.K().experiments.xp("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")?E.T&&E.N:E.T&&E.B},G.TIMELY_ACTION_TRIGGER_TYPE_SPEEDMASTER= function(){return E.Jm},G); this.Jm=this.N=this.B=this.T=!1;this.D={};this.events=new g.Z0(H);g.d(this,this.events);this.C=new g.DO(this.api.NZ().iE);g.d(this,this.C);this.api.U("enable_smart_skip_web_player_bar_hover_length_threshold")&&g.hE(this.api.K().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds")&&(G=g.hE(this.api.K().experiments,"smart_skip_web_player_bar_min_hover_length_milliseconds"),this.p_=new g.Wt(this.H3,G,this),g.d(this,this.p_));this.events.Z(H,"videodatachange",function(P,Q){if(P!=="dataupdated"|| Q.videoId!==E.videoId||!nO(E.timelyActions,a0n(Q)))E.onVideoDataChange(Q)}); this.events.Z(H,"presentingplayerstatechange",function(P){E.kx(P)}); H.U("enable_smart_skip_player_controls_shown_on_web")&&(this.events.Z(H,"onShowControls",function(){E.T=!0;E.H3()}),this.events.Z(H,"onHideControls",function(){E.T=!1}),this.C.subscribe("hoverstart",function(){E.B=!0; E.H3()},this),this.C.subscribe("hoverend",function(){E.B=!1},this),H.U("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&(this.events.Z(H,"progressBarHoverStart",function(){E.N=!0; if(E.api.U("enable_smart_skip_web_player_bar_hover_length_threshold")){var P;(P=E.p_)==null||g.J3(P)}else E.H3()}),this.events.Z(H,"progressBarHoverEnd",function(){E.N=!1; if(E.api.U("enable_smart_skip_web_player_bar_hover_length_threshold")){var P;(P=E.p_)==null||P.stop()}}))); H.U("enable_smart_skip_speedmaster_on_web")&&this.events.Z(H,"speedmasterchanged",function(P){(E.Jm=P)&&E.H3()}); this.events.Z(H,g.Ya("timelyAction"),function(P){E.onCueRangeEnter(P.getId())}); this.events.Z(H,g.XT("timelyAction"),function(P){E.onCueRangeExit(P.getId())}); H.U("web_enable_keyboard_shortcut_for_timely_actions")&&this.events.Z(H,"keyboardserviceglobalkeydown",function(P,Q){if((az?P.altKey:P.ctrlKey)&&P.keyCode===39&&E.L_&&E.L){var e;P=g.X((e=OM(E,E.L))==null?void 0:e.rendererContext,OT7);if(e=KO(P==null?void 0:P.onTap))E.api.n_("innertubeCommand",e),Q&&(Q.Xv=!0),Q=jq(),(e=KMn(Q))&&(P=g.ri(0))&&cG(Q.client,P,e,void 0)}},this); this.W=new g.D({J:"div",QN:["ytp-player-content","ytp-timely-actions-content"]});this.W.hide();We(H,"insertTimelyActionUi",function(P){E.W.element.children.length>0&&g.NG(E.W.element);P.classList.add("ytp-timely-actions-overlay");E.W.element.appendChild(P)}); g.d(this,this.W);this.U("web_player_overlay_positioned_layout")?this.events.Z(H,"basechromeinitialized",function(){E.api.lx(E.W.element,4,!0);E.W.element.setAttribute("data-overlay-order","10")}):g.as(this.api,this.W.element,4)}; ZNu=function(H,E,G,P){var Q=null;switch(E){case "JSON":try{var e=G.responseText}catch(w){throw P=Error("Error reading responseText"),P.params=H,Za(P),w;}H=G.getResponseHeader("Content-Type")||"";e&&H.indexOf("json")>=0&&(e.substring(0,5)===")]}'\n"&&(e=e.substring(5)),Q=JSON.parse(e));break;case "XML":if(H=(H=G.responseXML)?jLM(H):null)Q={},g.D9(H.getElementsByTagName("*"),function(w){Q[w.tagName]=cuU(w)})}P&&Ntq(Q); return Q}; bl=function(H,E,G){H.insertBefore(E,H.childNodes[G]||null)}; yud=function(H){return g.Xa(H,"UHD2")||g.Xa(H,"UHD2HDR")?"highres":g.Xa(H,"UHD1")||g.Xa(H,"UHD1HDR")?"hd2160":g.Xa(H,"HD")||g.Xa(H,"HDHDR")?"hd1080":g.Xa(H,"HD720")||g.Xa(H,"HD720HDR")?"hd720":"large"}; zY=function(H){return g.Un("ytcsi."+(H||"")+"data_")||rdl(H)}; bTn=function(H){if(H.X.storeUserVolume){H=g.pr("yt-player-volume")||{};var E=H.volume;H={volume:isNaN(E)?100:g.Mo(Math.floor(E),0,100),muted:!!H.muted}}else H={volume:100,muted:H.X.mute};return H}; iTU=function(H,E){E=H.L&&!E;return H.nj||E?new g.il(new g.qG({PV7:H.nj,zX:E})):new g.il}; g.qG=function(H){this.D=H.PV7||null;this.G=H.zX||!1;this.W=void 0}; g.ql1=function(H){if(H.info.uJ.qd())return H.info.duration;H.D===-1&&(H.D=Rz(H));return H.D||H.info.duration}; RbU=function(H){var E,G=(E=Zi(H.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:E.current;if(!G)return null;E=Zi(H.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var P=H.layoutId,Q=Zi(H.clientMetadata,"metadata_type_content_cpn"),e=Zi(H.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),w=Zi(H.clientMetadata,"metadata_type_player_underlay_renderer"),t=Zi(H.clientMetadata,"metadata_type_ad_placement_config"),k=Zi(H.clientMetadata,"metadata_type_video_length_seconds"); var W=mw(H.clientMetadata,"metadata_type_layout_enter_ms")&&mw(H.clientMetadata,"metadata_type_layout_exit_ms")?(Zi(H.clientMetadata,"metadata_type_layout_exit_ms")-Zi(H.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{ZL:P,contentCpn:Q,z7:G,vu:E,instreamAdPlayerOverlayRenderer:e,instreamAdPlayerUnderlayRenderer:w,adPlacementConfig:t,videoLengthSeconds:k,Kn:W,inPlayerLayoutId:Zi(H.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Zi(H.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; x5l=function(H){H.C||(H.C=!0,g.VP(H.QC,H))}; Kh=function(H){var E=H.data.getInt32(H.offset+H.L);H.L+=4;return E}; JuU=function(H,E,G){return(H=H.levels[E])?H.ZY(G):-1}; Jf=function(H){var E,G=(E=Zi(H.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:E.current;if(!G)return null;E=Zi(H.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref");var P=H.layoutId,Q=Zi(H.clientMetadata,"metadata_type_content_cpn"),e=Zi(H.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),w=Zi(H.clientMetadata,"metadata_type_player_overlay_layout_renderer"),t=Zi(H.clientMetadata,"metadata_type_player_underlay_renderer"),k=Zi(H.clientMetadata, "metadata_type_ad_placement_config"),W=Zi(H.clientMetadata,"metadata_type_video_length_seconds");var I=mw(H.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds")?Zi(H.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"):mw(H.clientMetadata,"metadata_type_layout_enter_ms")&&mw(H.clientMetadata,"metadata_type_layout_exit_ms")?(Zi(H.clientMetadata,"metadata_type_layout_exit_ms")-Zi(H.clientMetadata,"metadata_type_layout_enter_ms"))/1E3:void 0;return{ZL:P,contentCpn:Q,z7:G,vu:E,instreamAdPlayerOverlayRenderer:e, playerOverlayLayoutRenderer:w,instreamAdPlayerUnderlayRenderer:t,adPlacementConfig:k,videoLengthSeconds:W,Kn:I,inPlayerLayoutId:Zi(H.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Zi(H.clientMetadata,"metadata_type_linked_in_player_slot_id")}}; g.rr=function(H,E,G,P,Q){E=E===void 0?{}:E;G=G===void 0?ruT[H]:G;P=P===void 0?BtT[H]:P;Q=Q===void 0?Yln[H]:Q;g.LN.call(this,G,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:H},E));this.type=H;this.message=G;this.level=P;this.L=Q;Object.setPrototypeOf(this,g.rr.prototype)}; Xvq=function(H){if(H.timer===void 0){var E=Math.max(0,H.L+H.W-BG());H.timer=setTimeout(function(){try{H.callback()}finally{H.L=BG(),H.timer=void 0}},E)}}; gxw=function(H,E){var G,P,Q,e,w,t,k;return g.L(function(W){if(W.L==1){G=g.D0();var I=H.K(),A={context:g.Yy(H),playbackContext:{contentPlaybackContext:{ancestorOrigins:I.ancestorOrigins}}},m=I.getWebPlayerContextConfig();if(m==null?0:m.encryptedHostFlags)A.playbackContext.contentPlaybackContext.encryptedHostFlags=m.encryptedHostFlags;if(m==null?0:m.hideInfo)A.playerParams={showinfo:!1};m=I.embedConfig;var u=H.sZ;var v=E.docid||E.video_id||E.videoId||E.id;if(!v){v=E.raw_embedded_player_response;if(!v){var n= E.embedded_player_response;n&&(v=JSON.parse(n))}if(v){var O,q,N,r,B,l;v=((l=g.X((O=v)==null?void 0:(q=O.embedPreview)==null?void 0:(N=q.thumbnailPreviewRenderer)==null?void 0:(r=N.playButton)==null?void 0:(B=r.buttonRenderer)==null?void 0:B.navigationEndpoint,g.Xt))==null?void 0:l.videoId)||null}else v=null}O=(O=v)?O:void 0;q=H.playlistId?H.playlistId:E.list;N=E.listType;if(q){var S;N==="user_uploads"?S={username:q}:S={playlistId:q};ZTu(m,u,O,E,S,I.experiments);A.playlistRequest=S}else E.playlist? (S={templistVideoIds:E.playlist.toString().split(",")},ZTu(m,u,O,E,S,I.experiments),A.playlistRequest=S):O&&(S={videoId:O},u&&I.U("embeds_enable_per_video_embed_config")?S.serializedThirdPartyEmbedConfig=u:m&&(S.serializedThirdPartyEmbedConfig=m),A.singleVideoRequest=S);P=A;Q=g.ZO(CYd);g.EY(W,2);return g.U(W,g.CO(G,P,Q),4)}if(W.L!=2)return e=W.W,w=H.K(),E.raw_embedded_player_response=e,w.PF=gr(E,g.L3(w)),w.G=w.PF==="EMBEDDED_PLAYER_MODE_PFL",e&&(t=e,t.trackingParams&&LO(t.trackingParams)),W.return(new g.KD(w, E));k=g.vo(W);k instanceof Error||(k=Error("b259802748"));g.h3(k);return W.return(H)})}; l01=function(H){LMn(function(){for(var E=g.R(Object.keys(ll)),G=E.next();!G.done;G=E.next())xb(H,ll[G.value])})}; g.z1=function(H){g.UM.call(this,H);this.chrome=null;this.load()}; T1=function(H,E){if(H)for(var G in H)Object.prototype.hasOwnProperty.call(H,G)&&E(H[G],G,H)}; zsj=function(H,E,G){H=H.W;var P=g.eS(H,{HO:E},function(w,t){return w.HO-t.HO}); P=P<0?(P+2)*-1:P;if(P>=0)for(var Q=P;Q<=P+1&&Q=e.HO-G&&E<=e.gV+G)return e}}; VO=function(H,E){if(H){H=H.split("&");for(var G=0;G=0){var e=H[G].substring(0,P);Q=H[G].substring(P+1)}else e=H[G];E(e,Q?Na(Q):"")}}}; fO=function(H,E,G){Sq.call(this,H);this.D=E;this.L="w";this.W="z";Ft(this,G)}; pO=function(H,E,G,P){s9.call(this,H,{J:"span",Y:"ytp-ad-pod-index"},"ad-pod-index",E,G,P);this.api.K().W&&(this.element.classList.add("ytp-ad-pod-index--mweb"),r3&&this.element.classList.add("ytp-ad-pod-index--mweb-ios"));this.hide()}; U7v=function(H,E){H.Jm||(H.loader?isFinite(H.W)?H.Jm=H.loader.seek(H.W-H.timestampOffset,E):(oN(H.videoData),H.U("html5_unified_live_latency_reporting")&&(H.Fo.vH=0),H.Jm=Hm(H.loader),E0(H.videoData)||(H.W=H.loader.getCurrentTime()+H.timestampOffset)):H.Jm=g.GU(H.W-H.timestampOffset));return H.Jm}; x7w=function(H,E){var G=document.body||document;return g.Pm(G,"click",function(P){var Q=QK(P.target,function(e){return e===G||E(e)},!0); Q&&Q!==G&&!Q.disabled&&(P.currentTarget=Q,H.call(Q,P))})}; s0=function(H,E){typeof H=="number"&&(H=(E?Math.round(H):H)+"px");return H}; g.SH=function(H,E){if(H.E7)return function(){}; E.addEventListener("mouseover",H.T);E.addEventListener("focus",H.T);var G=H.env.U("player_tooltip_data_title_killswitch")?E.getAttribute("title"):E.getAttribute("data-tooltip-title");G&&!E.hasAttribute("aria-label")&&E.setAttribute("aria-label",G);return function(){H.L===E&&H.qf();E.removeEventListener("mouseover",H.T);E.removeEventListener("focus",H.T)}}; g.RS=function(H){return H.oauthToken||H.lJ.jt}; gvn=function(H,E,G,P,Q,e,w,t){P=P===void 0?{}:P;t=t===void 0?{value:0}:t;e=zbl(e);P=on(P,w,function(k){g.Xj("start_client_gcf")&&g.eD.c6(function(){return g.L(function(W){return g.U(W,Ttd(k),0)})}); t.value--;t.value||G()},function(){t.value--; t.value||G()},Q); P.headers["Content-Type"]="application/json+protobuf";P.postBodyFormat="JSPB";P.postBody=H;g.w9(E,e,"",P);hr=!1}; g.lK=function(H){return H==="EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT"||H==="EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"?!0:!1}; g.kC=function(H){g.J.call(this);this.callback=H;this.L=new $C(0,0,.4,0,.2,1,1,1);this.delay=new g.tr(this.next,window,this);g.d(this,this.delay)}; w1=function(){this.C=null;this.B=[];this.D=this.W=this.G=this.L=this.L_=0;this.T=null;this.N=0}; Wm=function(H,E,G){for(var P=g.R(Vb1),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var e=H.GH.get(Q);e&&(G||e.Eh(E))&&(g.Vq(e),H.GH.delete(Q))}H.S.publish("modulesDestroyed",E)}; In=function(H,E,G){this.triggeringLayoutId=E;this.slotId=G;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ACTIVE_AND_SLOT_ID_HAS_EXITED";this.triggerId=H(this.triggerType)}; uv=function(H,E,G,P){try{var Q=E.call(H.L.D,G);Slq(Q);if(!Q.done)return H.L.B=!1,Q;var e=Q.value}catch(w){return H.L.D=null,Ar(H.L,w),mk(H)}H.L.D=null;P.call(H.L,e);return mk(H)}; vm=function(){}; TJ=function(H){return H.kind==="AD_PLACEMENT_KIND_START"}; FMn=function(H){var E=!H.K().zc&&H.getPresentingPlayerType()!==3;return H.isFullscreen()||E}; d9=function(H,E){if(H.simpleText){a:{H=H.simpleText;if(E&&(E=f0q(H))){E=Ms("SPAN",null,E);break a}E=g.HL(H)}return E}var G=[];if(H.runs)for(var P=0;P0&&!Bm(H.videoData)||E||YC(H)||(H.seekTo(Infinity,{cO:"videoplayer_readying",seekSource:18}),H.isBackground()&&(H.QI=!0));E=H.eT;if(E.qoe){E=E.qoe;for(var G=E.provider.videoData, P=E.provider.X,Q=g.R(P.Mk),e=Q.next();!e.done;e=Q.next())XX(E,e.value);if(E.provider.U("html5_enable_qoe_cat_list"))for(Q=g.R(G.zR),e=Q.next();!e.done;e=Q.next())XX(E,e.value);else G.Mk&&XX(E,E.provider.videoData.Mk);G.T6()&&(Q=G.L,Bm(G)&&XX(E,"manifestless"),Q&&ZG(Q)&&XX(E,"live-segment-"+ZG(Q).toFixed(1)));ip(G)?XX(E,"sabr"):E.aD(N$(G));if(cy(G)||G.mV())G.mV()&&XX(E,"ssa"),XX(E,"lifa");Cd(G)&&XX(E,"cdm");E.provider.videoData.n1&&XX(E,"mvtile");G.gatewayExperimentGroup&&(Q=G.gatewayExperimentGroup, Q==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_EXPERIMENT"?Q="spkadtrt":Q==="EXPERIMENT_GROUP_SPIKY_AD_BREAK_CONTROL"&&(Q="spkadctrl"),XX(E,Q));P.p_!=="yt"&&E.L.set("len",[G.lengthSeconds.toFixed(2)]);G.cotn&&!g9(G)&&E.YP(!0);P.z6()&&(G=Q6v())&&E.g5("cblt",{m:G});if(P.U("html5_log_screen_diagonal")){P=E.g5;var w;G=((w=window.H5vccScreen)==null?0:w.GetDiagonal)?window.H5vccScreen.GetDiagonal():0;P.call(E,"cbltdiag",{v:G})}}H.publish("playbackready");HR("pl_c",H.HT.timerName)||(H.HT.tick("pl_c"),Ld("pl_c",void 0, "video_to_ad"));HR("pbr",H.HT.timerName)||(H.HT.tick("pbr"),Ld("pbr",void 0,"video_to_ad"))}}}; s6Q=function(H){this.VN=tz(H)}; xC=function(H,E,G){G=G===void 0?!1:G;return oD7(H,E.getCurrentTime(),(0,g.ON)(),U0(E),G)}; FX=function(H,E,G,P){this.X=E;this.V8=G;this.segments=[];this.experimentIds=[];this.BF=this.U2=this.isFinal=this.delayThresholdMet=this.G6=this.WO=this.autoplay=this.autonav=!1;this.jT="yt";this.C=[];this.B=this.L_=null;this.sendVisitorIdHeader=this.MZ=!1;this.N=this.pageId="";this.T=G==="watchtime";this.G=G==="playback";this.E7=G==="atr";this.lG=G==="engage";this.sendVisitorIdHeader=!1;this.uri=this.E7?"/api/stats/"+G:"//"+E.RO+"/api/stats/"+G;P&&(this.U2=P.fs,P.rtn&&(this.B=P.rtn),this.T?(this.playerState= P.state,P.rti>0&&(this.L_=P.rti)):(this.yS=P.mos,this.g6=P.volume,P.at&&(this.adType=P.at)),P.autonav&&(this.autonav=P.autonav),P.inview!=null&&(this.ML=P.inview),P.size&&(this.gt=P.size),P.playerwidth&&(this.UT=P.playerwidth),P.playerheight&&(this.Fa=P.playerheight));this.yG=g.sj(E.L);this.N=vQ(E.experiments,"html5_log_vss_extra_lr_cparams_freq");if(this.N==="all"||this.N==="once")this.dP=g.sj(E.G6);this.AT=E.yS;this.experimentIds=eSM(E.experiments);this.Yp=E.AG;this.jT=E.p_;this.region=E.region; this.userAge=E.userAge;this.au=E.bx;this.AG=U7();this.sendVisitorIdHeader=E.sendVisitorIdHeader;this.PF=E.U("vss_pings_using_networkless")||E.U("kevlar_woffle");this.n6=E.U("vss_final_ping_send_and_write");this.O7=E.U("vss_use_send_and_write");this.pageId=E.pageId;this.hC=E.U("vss_playback_use_send_and_write");E.livingRoomAppMode&&(this.livingRoomAppMode=E.livingRoomAppMode);g.L3(E)&&(this.z$=E.PF);g.lK(g.CW(E))&&this.C.push(1);this.accessToken=g.RS(H);H.b7[this.V8]?this.D=H.b7[this.V8]:H.b7.playback&& (this.D=H.b7.playback);this.adFormat=H.adFormat;this.adQueryId=H.adQueryId;this.autoplay=weu(H);this.G&&(this.WO=H.Sb&&zU(H)==="adunit"?!0:!1);this.autonav=H.isAutonav||this.autonav;this.contentVideoId=TU(H);this.clientPlaybackNonce=H.clientPlaybackNonce;this.G6=H.Xg;H.C&&(this.WF=H.C,this.FI=H.I2);H.mdxEnvironment&&(this.mdxEnvironment=H.mdxEnvironment);this.L=H.FI;this.Qm=H.Qm;H.W&&(this.cK=H.W.itag,H.D&&H.D.itag!==this.cK&&(this.s7=H.D.itag));H.L&&AU(H.L)&&(this.offlineDownloadUserChoice="1"); this.eventLabel=zU(H);this.BF=H.ML?!1:H.WO;this.b8=H.Le;if(E=VK(H))this.xW=E;this.qC=H.KB;this.partnerId=H.partnerId;this.eventId=H.eventId;this.playlistId=H.MN||H.playlistId;this.PP=H.PP;this.qI=H.qI;this.v$=H.v$;this.mf=H.mf;this.subscribed=H.subscribed;this.videoId=H.videoId;this.videoMetadata=H.videoMetadata;this.visitorData=H.visitorData;this.osid=H.osid;this.dw=H.dw;this.referrer=H.referrer;this.jV=H.v_||H.jV;this.hm=H.aO;this.lS=H.lS;this.userGenderAge=H.userGenderAge;this.VU=H.VU;this.embedsRct= H.embedsRct;this.embedsRctn=H.embedsRctn;g.L3(this.X)&&H.mutedAutoplay&&(H.mutedAutoplayDurationMode===2&&H.limitedPlaybackDurationInSeconds===0&&H.endSeconds===0?this.C.push(7):this.C.push(2));H.isEmbedsShortsMode(new g.P4(this.UT,this.Fa),!!this.playlistId)&&this.C.push(3);g.SD(H)&&this.C.push(4);this.eR=H.vc;H.compositeLiveIngestionOffsetToken&&(this.compositeLiveIngestionOffsetToken=H.compositeLiveIngestionOffsetToken)}; fd=function(H){g.D.call(this,{J:"button",QN:["ytp-watch-later-button","ytp-button"],j:{title:H.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","data-tooltip-image":"{{image}}","data-tooltip-opaque":String(g.L3(H.K()))},V:[{J:"div",Y:"ytp-watch-later-icon",iJ:"{{icon}}"},{J:"div",Y:"ytp-watch-later-title",iJ:"Watch later"}]});this.S=H;this.icon=null;this.visible=this.isRequestPending=this.L=!1;m1u(H);H.createClientVe(this.element,this,28665);this.listen("click", this.onClick,this);this.Z(H,"videoplayerreset",this.onReset);this.Z(H,"appresize",this.di);this.Z(H,"videodatachange",this.di);this.Z(H,"presentingplayerstatechange",this.di);this.di();H=this.S.K();var E=g.pr("yt-player-watch-later-pending");H.D&&E?(hSj(),$Aw(this)):this.r5(2);g.Bt(this.element,"ytp-show-watch-later-title",g.L3(H));M2(this.S,this.element,this)}; pd=function(H,E){this.G=H;this.D=E;this.W=0;this.L=null}; Ec=function(H){return g.HC(tU1(),H)}; PC=function(H,E,G){GA.call(this,null,H,E,G);this.N=H.isActive();this.B=0}; kl7=function(H,E){var G=H.W.indexOf(E);G>=0&&H.W.splice(G,1);H.G.delete(E.cpn);E.U9&&H.D.delete(E.U9)}; SV=function(H,E){E!==H.vE&&(H.vE=E,H.cF.GU("onMutedAutoplayChange",E))}; Iv1=function(H){return new Promise(function(E){var G=g.pu("SCRIPT");if(H){var P=Ip(H,6);P=P===null||P===void 0?null:WLl(P)}else P=null;G.textContent=t2(P);Qm(G);(g.lw("HEAD")[0]||document.documentElement).appendChild(G);g.LQ(G);E()})}; Qo=function(H,E){E=E===void 0?240:E;g.D.call(this,{J:"button",QN:["ytp-button","ytp-search-button"],j:{title:H.U("player_tooltip_data_title_killswitch")?"Search":"","data-tooltip-title":"Search","data-tooltip-opaque":String(g.L3(H.K()))},V:[{J:"div",Y:"ytp-search-icon",iJ:"{{icon}}"},{J:"div",Y:"ytp-search-title",iJ:"Search"}]});this.api=H;this.W=E;this.visible=!1;this.updateValue("icon",{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",Y:"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"}}]}); H.createClientVe(this.element,this,184945);this.listen("click",this.onClick);this.L();this.Z(H,"appresize",this.L);this.Z(H,"videodatachange",this.L);M2(H,this.element,this)}; ATt=function(H){var E=H.G;H.G=[];return E}; mAv=function(H){var E,G,P=(E=H.L)==null?void 0:(G=E.bannerData)==null?void 0:G.itemData,Q,e;if(!(P!=null&&P.priceReplacementText||H.S.U("web_player_enable_featured_product_banner_promotion_text_on_desktop"))&&(P==null?0:(Q=P.dealsData)==null?0:(e=Q.sales)==null?0:e.originalPrice)){var w,t;return P==null?void 0:(w=P.dealsData)==null?void 0:(t=w.sales)==null?void 0:t.originalPrice}return null}; sc=function(H){return oN(H)&&H.allowLiveDvr}; uh1=function(H){H.C=!0;H.D=!0;H.T=-1;OB(H,Infinity)}; ov=function(){return typeof BigInt==="function"}; MUT=function(H){var E=H.S.getVideoData();H=H.S.K();var G=g.vDj(),P=H.U("enable_spherical_kabuki"),Q=g.oa(H);if(g.eY(E))return G||P||Q;if(g.w8(E))return Q||G||P;if(g.hY(E))return Q||G||!1;if(g.$_(E))return Q||!1;G=E.W&&E.W.video&&E.W.video.isHdr();return Q&&!g.Ej(E)&&!G&&H.U("enable_webgl_noop")}; DAj=function(){return dA1.loaded||(dA1.loaded="loaded".replace(/\-([a-z])/g,function(H,E){return E.toUpperCase()}))}; g.WC=function(H,E,G){tY||k_.remove(""+H,E===void 0?"/":E,G===void 0?"youtube.com":G)}; vvd=function(H){switch(H){case 200:return 0;case 400:return 3;case 401:return 16;case 403:return 7;case 404:return 5;case 409:return 10;case 412:return 9;case 429:return 8;case 499:return 1;case 500:return 2;case 501:return 12;case 503:return 14;case 504:return 4;default:return 2}}; Ia=function(H,E,G){oq.call(this,H+", errorCode="+E);this.errorCode=E;this.xhr=G;this.name="PromiseAjaxError"}; ml=function(H){H=g.R(AY(H.L).gX.LW.values());for(var E=H.next();!E.done;E=H.next())if(E.value.layoutType==="LAYOUT_TYPE_MEDIA_BREAK")return!0;return!1}; uQ=function(){QD.apply(this,arguments)}; nDM=function(H){var E=[new vC(H.ZL),new Mc(H.z7),new nn(H.adPlacementConfig),new jU(H.videoLengthSeconds),new NA(H.Kn)];H.instreamAdPlayerOverlayRenderer&&E.push(new d8(H.instreamAdPlayerOverlayRenderer));H.playerOverlayLayoutRenderer&&E.push(new Du(H.playerOverlayLayoutRenderer));H.vu&&E.push(new nF(H.vu));return E}; avt=function(){return g.aD("(ps4; leanback shell)")||g.aD("ps4")&&g.aa()}; KLt=function(H){H.PL.style.removeProperty("height");for(var E=g.R(Object.keys(H.Yp)),G=E.next();!G.done;G=E.next())Onw(H,G.value);Oc(H);KF(H,H.p_,H.G6)}; j6U=function(H){return g.tJ(jY(H===void 0?0:H))}; sL7=function(){var H=H===void 0?window.location.href:H;if(g.Xj("kevlar_disable_theme_param"))return null;var E=ac(H);if(g.Xj("enable_dark_theme_only_on_shorts")&&E!=null&&E.startsWith("/shorts/"))return"USER_INTERFACE_THEME_DARK";try{var G=g.oz(H).theme;return cTQ.get(G)||null}catch(P){}return null}; g.H2=function(H,E,G,P){this.D=H;this.T=E;this.L=this.G=H;this.C=G||0;this.B=P||2}; cC=function(){this.T=this.G=null;this.W=this.L=0;this.D=[];this.C=!1}; Nc=function(H,E){g.Xj("use_event_time_ms_header")&&up(H)&&(E.headers||(E.headers={}),E.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,g.ON)())));return E}; mB=function(H,E){var G=NUu[E];if(!G){var P=aBv(E);G=P;H.style[P]===void 0&&(P=(g.E7?"Webkit":yo?"Moz":null)+Jd7(P),H.style[P]!==void 0&&(G=P));NUu[E]=G}return G}; bQ=function(H,E){this.name=H;this.options=E;this.G=!0;this.T=this.D=0}; yTQ=function(H,E){E.bounds=H.getBoundingClientRect();for(var G=g.R(["display","opacity","visibility","zIndex"]),P=G.next();!P.done;P=G.next())P=P.value,E[P]=iQ(H,P);E.hidden=!!H.hidden}; qc=function(H,E){return E===void 0||E===null?H:E.toString()}; qnd=function(H,E){E<100||Ql(bnQ,1)}; JY=function(H){H=H===void 0?md:H;Ra.call(this,new VV(H,2))}; g.g8=function(H){g.J.call(this);var E=this;this.provider=H;this.logger=new g.Pj("qoe");this.L=new Map;this.sequenceNumber=1;this.WF=NaN;this.jy="N";this.N=this.WS=this.g9=this.p_=this.W=0;this.gt=this.z$=this.C=this.Yp="";this.WO=this.eR=NaN;this.ML=0;this.AG=-1;this.ox=1;this.playTimeSecs=this.rebufferTimeSecs=0;this.G6=this.isEmbargoed=this.O7=this.isOffline=this.isBuffering=!1;this.qC=[];this.L_=null;this.FI=this.D=this.s7=this.PF=this.B=!1;this.G=-1;this.MZ=!1;this.yG=new g.Wt(this.ew_,750,this); this.KU=this.adCpn=this.E7=this.contentCpn="";this.adFormat=void 0;this.AT=0;this.au=new Set("cl fexp drm drm_system drm_product ns el adformat live cat shbpslc".split(" "));this.UT=new Set(["gd","pw","gp","gm","dd"]);this.serializedHouseBrandPlayerServiceLoggingContext="";this.dP=!1;this.jT=NaN;this.T$=0;this.U2=!1;this.remoteConnectedDevices=[];this.remoteControlMode=void 0;this.V8=!1;this.Fa=new Set;this.kV={YP:function(e){E.YP(e)}, rJ$:function(){return E.T}, VW:function(){return E.contentCpn}, JJa:function(){return E.E7}, reportStats:function(){E.reportStats()}, gXR:function(){return E.L.get("cat")||[]}, n9:function(e){return E.L.get(e)||[]}, pN_:function(){return E.L}, DAa:function(){return 0}, avF:function(){return{adCpn:E.adCpn,KU:E.KU,adFormat:E.adFormat}}}; this.Jm=this.provider.X.U("html5_qoe_relaxed_reporting");var G=g.hE(this.provider.X.experiments,"html5_qoe_proto_mock_length");G&&!r8.length&&(r8=inn(G));g.d(this,this.yG);try{var P,Q;(Q=(P=navigator).getBattery)==null||Q.call(P).then(function(e){E.L_=e})}catch(e){}g.BC(this,0,"vps",["N"]); H.X.z6()&&(this.T$=(0,g.ON)(),this.jT=g.Y_(function(){var e=(0,g.ON)(),w=e-E.T$;w>500&&E.g5("vmlock",{diff:w.toFixed()});E.T$=e},250)); this.provider.videoData.qI&&(this.remoteControlMode=q4l[this.provider.videoData.qI]||0);this.provider.videoData.v$&&(G=RSs(this.provider.videoData.v$),G==null?0:G.length)&&(this.remoteConnectedDevices=G);H.X.z6()&&(this.hm=new XV,g.d(this,this.hm));JTU(H.X)&&(this.BF=new CF,g.d(this,this.BF))}; LF=function(H){this.S=H}; Uc=function(H){var E;return!((E=lQ(H))==null||!E.isLocked)}; zA=function(H,E,G){return H.parseFromString(x_(E),G)}; g.TA=function(H){this.u3=H}; rTM=function(H,E,G){if(H.oM){H.oM.Fk();var P=H.oM.L_,Q=P.D,e=Q.L;if(P.C!=null){var w=P.G;H.JP=new g.oG(w.left-e.left,w.top-e.top)}e=H.ac()?Math.max(P.L,P.T):P.L;w={};Q.volume!==null&&(w.volume=Q.volume);Q=H.xL(P);H.ew=P;H.r5(e,E,G,!1,w,Q,P.N)}}; Vo=function(H,E){return Object.prototype.hasOwnProperty.call(H,E)}; BUl=function(H,E){H.pS().autonavState=E;g.Fj("yt-player-autonavstate",E);H.cF.publish("autonavchange",E)}; Y4s=function(H){this.L=H;H.rX("/client_streamz/bg/cec",SY("ec"),g.A3("mk"))}; FV=function(H){H.Qza=!0;return H}; ZnT=function(H){var E=[];H=H.match(XeM);for(var G=0;G=0}); var G=Pv(E,function(Q,e){return Math.max(Q,e.depth)},-1),P=CJd(G+2); P[0]=H;g.D9(E,function(Q){return P[Q.depth+1]=Q.L}); return P}; Ek=function(H,E){if(H.policy.useUmp&&E.Iu())return!1;try{var G=E.info.kp[0].uJ,P=G.info.video?H.videoTrack:H.audioTrack;if(H.ou.isManifestless&&P){H.C=0;P.C&&(E.Iu(),E.isComplete()||E.iB(),P.C=!1);E.hw()&&H.loader.Cl.ra(1,E.hw());var Q=E.t0(),e=E.f7();pF(H.ou,Q,e)}if(E.info.KL()&&!H3(E.info))for(var w=g.R(E.mQ()),t=w.next();!t.done;t=w.next())LLQ(P,t.value);for(H.loader.getCurrentTime();P.W.length&&P.W[0].state===4;){var k=P.W.shift();lvn(P,k);P.T$=k.eP()}P.W.length&&lvn(P,P.W[0]);var W=!!lQ(P);W&& E instanceof M5&&(G.info.VS()?UA1(H.timing):xAd(H.timing));return W}catch(I){E=E.Ce();E.origin="hrhs";a:{H=H.loader;G=I;if(G instanceof Error){E.msg||(E.msg=""+G.message);E.name||(E.name=""+G.name);if(G instanceof g.LN&&G.args)for(P=g.R(Object.entries(G.args)),Q=P.next();!Q.done;Q=P.next())e=g.R(Q.value),Q=e.next().value,e=e.next().value,E["arg"+Q]=""+e;g.p5(G);if(G.level==="WARNING"){H.Fo.YQ(E);break a}}H.handleError("fmt.unplayable",E,1)}return!1}}; zSQ=function(H){var E=H.W;H=H.L;return H===""?E:typeof H==="boolean"?H?E:"":Array.isArray(H)?H.length===0?E:E+"="+H.join():E+"="+(g.Xa(["mtos","tos","p"],E)?H:encodeURIComponent(H))}; G$=function(H){this.value=H}; sk=function(H){if(H instanceof P3)return H;H=String(H).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'");return QR(H)}; TUu=function(H){if(H.S.K().BF)return H.GH.get("ux")}; g.L=function(H){return VUv(new S4s(new FLu(H)))}; Cq1=function(H,E,G){if(E&&E.status===204)return!0;switch(H){case "JSON":return!!G;case "XML":return Number(G&&G.return_code)===0;case "RAW":return!0;default:return!!G}}; peu=function(H,E,G,P){var Q=this;P=P===void 0?{}:P;this.policy=E;this.gP=G;this.C=P;this.status=0;this.response=void 0;this.W=0;this.aborted=this.T=!1;this.errorMessage="";this.N=function(e){if(e)if(Q.status=e.status,e.ok&&e.body&&Q.status!==204)Q.status=Q.status||242,Q.G=e.body.getReader(),Q.Iu()?Q.G.cancel().catch(function(){}):(Q.responseHeaders=e.headers,Q.gP.CO(),fvd(Q)); else Q.onDone();else Q.onError(Error("null_response"))}; this.B=function(e){var w=(0,g.ON)();Q.Iu()||(e.done?(Q.G=void 0,Q.onDone()):(e=e.value,Q.W+=e.length,Q.L.append(e),fvd(Q),Q.gP.X0(w,Q.W)))}; this.onError=function(e){Q.errorMessage=String(e);Q.T=!0;Q.onDone()}; this.L=new hJ;this.D=window.AbortController?new AbortController:void 0;this.start(H)}; Ql=function(H,E){if(H!=null){var G;var P=(G=Hin)!=null?G:Hin={};G=P[H]||0;G>=E||(P[H]=G+1,H=Error(),Qqq(H,"incident"),Bv(H))}}; e$=function(H){g.J.call(this);this.QG=H;this.L=null;this.W=oJ;this.QG("ismp_i")}; GVT=function(H){H.Mi=!1;var E=H.GB,G=E!==void 0?E.TJ:H.producers;if(G!==void 0){if(Ir(H)){do G=E2u(G);while(G!==void 0)}E!==void 0?E.TJ=void 0:H.producers=void 0}}; srQ=function(H,E,G,P,Q,e,w,t,k){var W=wC(g.X(E,S4),k),I=G.oA,A=G.PD,m=Math.min(I+W.videoLengthSeconds*1E3,t);G.oA=m;G.PD++;G.lDJ.push(W.videoLengthSeconds);var u,v,n=(u=g.X(E,S4))==null?void 0:(v=u.playerOverlay)==null?void 0:v.instreamSurveyAdRenderer;if(W.adVideoId==="nPpU29QrbiU"&&n==null)throw new TypeError("Survey slate media has no survey overlay");return function(O){hm(W.playerVars,O);var q,N,r=W.videoLengthSeconds,B=W.playerVars,l=W.w5,S=W.kZ,z=W.instreamAdPlayerOverlayRenderer,Pt=W.playerOverlayLayoutRenderer, eu=W.adVideoId,QM=(q=g.X(E,S4))==null?void 0:q.adLayoutLoggingData;q=(N=g.X(E,S4))==null?void 0:N.sodarExtensionData;N=dU(P.W.get(),"LAYOUT_TYPE_MEDIA",H);var $Q={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",f_:"adapter"};O={layoutId:N,layoutType:"LAYOUT_TYPE_MEDIA",w5:l,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"adapter",clientMetadata:new ZN([new $L(w),new jU(r),new tm(B),new N9(I),new yw(m), new kL(A),new W3({current:null}),z&&new d8(z),Pt&&new Du(Pt),new nn(e),new IJ(eu),new hs(O),q&&new Am(q),n&&new mF(n),new Yj({}),new a6(S)].filter(PLl)),O2:Q($Q),adLayoutLoggingData:QM};r=Qr1(g.X(E,S4),e,w,O.layoutId,P);return{nA:O,Pxx:r}}}; tbt=function(H){return H?H.dataset?H.dataset[DAj()]:H.getAttribute("data-loaded"):null}; o2M=function(H){var E=1;H=H.split(":");for(var G=[];E>0&&H.length;)G.push(H.shift()),E--;H.length&&G.push(H.join(":"));return G}; XY1=function(H){switch(H){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}}; wLu=function(H){H.CONN=iR(uE("0"));H.WT=iR(function(){return Date.now().toString()})}; uU=function(H){var E=H.JR,G;do{var P=H.va-H.y8-H.J7;if(H.J7>=E+(E-262)){v3.Xn(H.window,H.window,E,E,0);H.eK-=E;H.J7-=E;H.KR-=E;var Q=G=H.W0;do{var e=H.head[--Q];H.head[Q]=e>=E?e-E:0}while(--G);Q=G=E;do e=H.Py[--Q],H.Py[Q]=e>=E?e-E:0;while(--G);P+=E}if(H.ey.bV===0)break;Q=H.ey;G=H.window;e=H.J7+H.y8;var w=Q.bV;w>P&&(w=P);w===0?G=0:(Q.bV-=w,v3.Xn(G,Q.input,Q.t6,w,e),Q.state.wrap===1?Q.b1=M6(Q.b1,G,w,e):Q.state.wrap===2&&(Q.b1=dC(Q.b1,G,w,e)),Q.t6+=w,Q.bN+=w,G=w);H.y8+=G;if(H.y8+H.OR>=3)for(P=H.J7-H.OR, H.fS=H.window[P],H.fS=(H.fS<H.D.length;)P= void 0,(P=H.thumbnails.pop())==null||P.dispose();for(;H.thumbnails.lengthG.length;)P=void 0,(P=H.W.pop())==null||P.dispose(); for(;H.W.length-1&&H.splice(E,1)}; KOt=function(H){var E=new CX;E=l0(E,1,H.W);var G=DbM(H);E=n2n(E,G,ae1);G=[];for(var P=[],Q=g.R(H.L.keys()),e=Q.next();!e.done;e=Q.next())P.push(e.value.split(","));for(Q=0;Q>>13;P-=Q;P-=G;P^=G<<8;Q-=G;Q-=P;Q^=P>>>13;G-=P;G-=Q;G^=Q>>>12;P-=Q;P-=G;P^=G<<16;Q-=G;Q-=P;Q^=P>>>5;G-=P;G-=Q;G^=Q>>>3;P-=Q;P-=G;P^=G<<10;Q-=G;Q-=P;Q^=P>>>15} H=biu(H);for(var G=2654435769,P=2654435769,Q=314159265,e=H.length,w=e,t=0;w>=12;w-=12,t+=12)G+=mL(H,t),P+=mL(H,t+4),Q+=mL(H,t+8),E();Q+=e;switch(w){case 11:Q+=H[t+10]<<24;case 10:Q+=H[t+9]<<16;case 9:Q+=H[t+8]<<8;case 8:P+=H[t+7]<<24;case 7:P+=H[t+6]<<16;case 6:P+=H[t+5]<<8;case 5:P+=H[t+4];case 4:G+=H[t+3]<<24;case 3:G+=H[t+2]<<16;case 2:G+=H[t+1]<<8;case 1:G+=H[t+0]}E();return iiU.toString(Q)}; RRl=function(H,E){var G;((G=H.T.get(E))!=null?G:[]).forEach(function(P){H.L===0&&H.M4.En("transitiondetector",P);if(H.L===1){var Q=H.G,e;(e=Q.L.get(P))==null||e.delay.dispose();Q.L.delete(P)}}); H.T.delete(E)}; S$=function(H,E,G){T$.push({payloadName:H,payload:G,UAo:void 0,options:E});VR||(VR=J3d())}; jy=function(H,E,G,P,Q,e,w,t){g.J.call(this);this.Da=H;this.L=E;this.W=P;this.C_=Q;this.D=e;this.G=w;this.JG=t}; Ijd=function(H){Fn(H);return H.data.map(function(E){return E.value})}; m2T=function(H,E,G,P){var Q=(P=P===void 0?!1:P)?16:8;P=fX({cttAuthInfo:pX(E)||void 0,endOfSequence:P},E);G={csn:E,ve:G.getAsJson(),eventType:Q};E==="UNDEFINED_CSN"?S$("visualElementHidden",P,G):H?Hg("visualElementHidden",G,H,P):g.HY("visualElementHidden",G,P)}; g.E5=function(H){if(g.Rp(H.S.K()))return H.GH.get("unplugged")}; r3t=function(H,E,G){H.L="The stream is broken @"+H.W+". Error: "+G+". With input:\n"+E;throw Error(H.L);}; Kd=function(){var H=this;this.s5=this.Fn=U1T;this.promise=new g.El(function(E,G){H.Fn=E;H.s5=G})}; GR=function(H,E,G,P,Q){Q=Q===void 0?!1:Q;if(H.policy.Cv)return Math.ceil(H.policy.Cv*E);H.policy.Vf&&(P=Math.abs(P));P/=H.playbackRate;var e=1/Cq(H.mZ);G=Math.max(.9*(P-3),vz(H.mZ)+H.mZ.W.L*e)/e*.8/(E+G);G=Math.min(G,P);H.policy.zo>0&&Q&&(G=Math.max(G,H.policy.zo));return B3U(H,G,E)}; Yjt=function(H){H.videoData.T$.clear();if(H.videoData.sabrContextUpdates.size>0)for(var E=g.R(H.videoData.sabrContextUpdates.keys()),G=E.next();!G.done;G=E.next()){G=G.value;var P=void 0;((P=H.videoData.sabrContextUpdates.get(G))==null?0:P.sendByDefault)&&H.videoData.T$.add(G)}if(H.policy.p_&&H.L.length)for(E=g.R(H.L),G=E.next();!G.done;G=E.next())(G=G.value.uy())&&G.type&&G.sendByDefault&&H.videoData.T$.add(G.type)}; g.Qb=function(H){H=Xk7(H);return Pg(H)}; ZiU=function(H,E,G){if(E.endpoint==="log_event"){s5(void 0,E);var P=of(E,!0),Q=new Map;Q.set(P,[sp(E.payload)]);G&&(Vg=new G);return new g.El(function(e){Vg&&Vg.isReady()?LYQ(Q,Vg,e,{bypassNetworkless:!0},!0,et(H)):e()})}}; CLT=function(){try{var H=g.Un("yt.ads.biscotti.getId_");return H?H():Vkn()}catch(E){return R6(E)}}; wI=function(H,E){this.W=[];this.D=[];this.T=[];this.G=[];this.L=[];this.C=H.ugw;this.B=E;this.xhr=H.xhr;this.C&&g2M(this)}; $c=function(H){g.nw.call(this,H,{J:"div",Y:"ytp-overflow-panel",j:{id:hG(),role:"dialog"},V:[{J:"div",Y:"ytp-overflow-panel-content",V:[{J:"div",Y:"ytp-overflow-panel-action-buttons",iJ:"{{buttons}}"}]},{J:"button",QN:["ytp-overflow-panel-close","ytp-button"],j:{"data-tooltip-title":"Close",title:H.K().U("player_tooltip_data_title_killswitch")?"Close":""},V:[g.jK()]}]},250);this.actionButtons=[];this.L=this.HF("ytp-overflow-panel-content");this.closeButton=this.HF("ytp-overflow-panel-close");this.Z(this.closeButton, "click",this.t7);M2(H,this.closeButton,this);this.listen("click",this.rC);this.Z(H,"videoplayerreset",this.hide);this.Z(H,"fullscreentoggled",this.onFullscreenToggled);this.hide()}; mh=function(H){return tG(H).then(function(E){return E?new kc(H,E):null})}; LOu=function(H){H.W.length?H.L=g.Q3(g.Q3(H.W).info.kp):H.G.W.length?H.L=H.G.Hy().info:H.L=Wg(H)}; lev=function(H,E){var G=!g.T2(H,E);g.Bt(H,E,G)}; Ubv=function(H){var E;H=H==null?void 0:(E=H.error)==null?void 0:E.code;return!(H!==400&&H!==415)}; rL=function(H){if(yS){var E;return(E=H[If])!=null?E:H[If]=new Map}if(If in H)return H[If];E=new Map;Object.defineProperty(H,If,{value:E});return E}; u1=function(H){g.J.call(this);var E=this;this.G=new g.M$;this.D=0;this.W=void 0;this.state=2;this.aM=H.aM;this.TG=H.TG;this.jO=Object.assign({},xbM,H.jO||{});this.logger=H.aM.M1();var G;this.onError=(G=H.onError)!=null?G:function(){}; this.yr=H.yr||!1;if(zRQ(H)){var P=this.aM;this.T=function(){return T31(P).catch(function(w){w=E.reportError(new jg(E.L?20:32,"TRG:Disposed",w));E.W=w;var t;(t=E.L)==null||t.dispose();E.L=void 0;E.G.reject(w)})}; VKl(P,function(){return void AG(E)}); P.N===2&&AG(this)}else this.T=H.MNZ,AG(this);var Q=this.logger.share();Q.s0("o");var e=new mP(Q,"o");this.G.promise.then(function(){e.done();Q.WV();Q.dispose()},function(){return void Q.dispose()}); this.addOnDisposeCallback(function(){E.L?(E.L.dispose(),E.L=void 0):E.W?E.logger.WV():(E.W=E.reportError(new jg(32,"TNP:Disposed")),E.logger.WV(),E.G.reject(E.W))}); g.d(this,this.logger)}; FOw=function(H,E){this.logger=E;try{var G=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(P){G=!1}G&&(this.index=Sju(H))}; pk1=function(){this.L={};var H=eX();vg(this,H,document);var E=fe7();try{if("1"==E){for(var G=H.parent;G!=H.top;G=G.parent)vg(this,G,G.document);vg(this,H.top,H.top.document)}}catch(P){}}; vaQ=function(H){return!!H.ib||!!H.rh||!!H.WP||!!H.BD||H.Fh}; Hmv=function(H,E){if(H.MA("getState")==="loading")return new g.P4(-1,-1);E=H.MA(E);if(!E)return new g.P4(-1,-1);H=parseInt(E.width,10);E=parseInt(E.height,10);return isNaN(H)||isNaN(E)?new g.P4(-1,-1):new g.P4(H,E)}; Ml=function(H,E,G){if(!H.done&&(H.W.cancel(),E.length!=0)){H.G=null;try{$5l();var P=Yv();X9().T=P;if(Lu(lG).L!=null)for(var Q=0;Q=0?H.KR:-1,P=H.J7-H.KR,Q=0;if(H.level>0){H.ey.Ro===2&&(H.ey.Ro=GN1(H));dI(H,H.oI);dI(H,H.kd);POw(H,H.Jv,H.oI.AZ);POw(H,H.E$,H.kd.AZ);dI(H,H.We);for(Q=18;Q>=3&&H.B6[Qvd[Q]*2+1]===0;Q--);H.sY+=3*(Q+1)+5+5+4;var e=H.sY+3+7>>>3;var w=H.nt+3+7>>>3;w<=e&&(e=w)}else e=w=P+5;if(P+4<=e&&G!==-1)XB(H,E?1:0,3),svQ(H,G,P);else if(H.strategy===4||w===e)XB(H,2+(E?1:0),3),ojn(H,DS,nz);else{XB(H,4+(E?1:0),3);G=H.oI.AZ+1;P=H.kd.AZ+1;Q+=1;XB(H,G-257,5);XB(H,P-1,5);XB(H,Q-4,4);for(e=0;eG.height?k>I?(P=k,Q=W):(P=I,Q=A):kE?1:0}; DBT=function(){ZS||(ZS=Cz(g.tJ("WORKER_SERIALIZATION_URL")));return ZS||void 0}; mD=function(){return g.gI&&g.aD("version/")}; g.NB=function(H,E,G,P,Q,e){g.J.call(this);this.element=H;this.state=null;G||H.hide();this.W=E;this.G=P===void 0?E:P;this.L=e;this.onHidden=Q;this.delay=new g.Wt(this.e8,0,this);g.d(this,this.delay)}; hW7=function(H){g.kM("yt.ads.biscotti.lastId_",H)}; a9l=function(H,E,G){if(!H||!E)return!1;E=Lz(H.clone(),-E.left,-E.top);H=(E.left+E.right)/2;E=(E.top+E.bottom)/2;i0(window.top)&&window.top&&window.top.document&&(window=window.top);if(!njj())return!1;H=window.document.elementFromPoint(H,E);if(!H)return!1;E=(E=(E=dd(G))&&E.defaultView&&E.defaultView.frameElement)&&PYu(E,H);var P=H===G;H=!P&&H&&QK(H,function(Q){return Q===G}); return!(E||P||H)}; OmQ=function(H){var E=H.T$.toString(10).padStart(2,"0");E=""+H.dP+E;H.T$<99&&H.T$++;return E}; l1=function(H,E,G,P,Q){return E>=400?(H.lastError="net.badstatus",!0):(Q===void 0?0:Q)?(H.lastError="ump.spsrejectfailure",!0):G||P!==void 0&&P?!1:(H.lastError=E===204?"net.nocontent":"net.connect",!0)}; Kes=function(H){H=U5(H);var E=[];g.kn(H,function(G,P){P in Object.prototype||typeof G!="undefined"&&E.push([P,":",G].join(""))}); return E}; WJv=function(){var H;return((H=navigator.connection)==null?void 0:H.type)||""}; xc=function(H){var E=[];g.kn(H,function(G,P){var Q=g.Bo(P);g.D9(Array.isArray(G)?G:[G],function(e){e==""?E.push(Q):E.push(Q+"="+g.Bo(e))})}); return E.join("&")}; Na7=function(H,E,G){if(H.forEach&&typeof H.forEach=="function")H.forEach(E,G);else if(g.gw(H)||typeof H==="string")Array.prototype.forEach.call(H,E,G);else for(var P=jvq(H),Q=cHM(H),e=Q.length,w=0;w>>0;RN=E;Js=(H-E)/4294967296>>>0}; Au=function(H){this.C=H}; St=function(H){this.value=H}; Fp=function(H,E,G){var P=0;return function(Q){g.lU.clearTimeout(P);var e=arguments;P=g.lU.setTimeout(function(){H.apply(G,e)},E)}}; fz=function(H){if(H.S.K().xx)return H.GH.get("remote")}; Hu=function(H,E){E?H.N||(H.element.removeAttribute("aria-disabled"),H.N=new g.DO(H.progressBar,!0),H.api.U("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&H.N.subscribe("hoverstart",H.lOw,H),H.N.subscribe("hovermove",H.PGJ,H),H.N.subscribe("hoverend",H.b6F,H),H.N.subscribe("dragstart",H.um_,H),H.N.subscribe("dragmove",H.d4o,H),H.N.subscribe("dragend",H.m4F,H),H.api&&H.api.U("delhi_modern_web_player")&&H.api.U("delhi_modern_web_player_cutout")&&(H.yS=new g.DO(H.progressBar, !0),H.yS.subscribe("hoverstart",function(){H.hC=!0;pz(H)},H),H.yS.subscribe("hoverend",function(){H.hC=!1; pz(H)},H)),H.yA=H.listen("keydown",H.I3)):H.N&&(H.element.setAttribute("aria-disabled","true"),H.Sq(H.yA),H.N.cancel(),H.N.dispose(),H.N=null)}; Ed=function(){}; g.$6=function(H){return(!("button"in H)||typeof H.button!=="number"||H.button===0)&&!("shiftKey"in H&&H.shiftKey)&&!("altKey"in H&&H.altKey)&&!("metaKey"in H&&H.metaKey)&&!("ctrlKey"in H&&H.ctrlKey)}; YDt=function(H){if(!H)return"";var E=document.createElement("div").style;iml(H).forEach(function(G){var P=g.E7&&G in qDv?G:G.replace(/^-(?:apple|css|epub|khtml|moz|mso?|o|rim|wap|webkit|xv)-(?=[a-z])/i,"");QQ(P,"--")||QQ(P,"var")||(G=RwT(JHl,H,H.getPropertyValue?"getPropertyValue":"getAttribute",[G])||"",G=rHd(G),G!=null&&RwT(BaT,E,E.setProperty?"setProperty":"setAttribute",[P,G]))}); return E.cssText||""}; Gg=function(H){return H.tagName=="A"&&H.hasAttribute("href")||H.tagName=="INPUT"||H.tagName=="TEXTAREA"||H.tagName=="SELECT"||H.tagName=="BUTTON"?!H.disabled&&(!H.hasAttribute("tabindex")||XMd(H)):H.hasAttribute("tabindex")&&XMd(H)}; Zm1=function(H){H=H.api.K();return g.qt(H)&&H.W}; COM=function(H){this.data=H}; Leu=function(H,E){H.callback=E;H.D=[];Pu(H.lJ.experiments)?Q2(H):gjj(H)}; e1=function(){this.isInitialized=!1;this.L=this.W=null;var H={};this.B=(H.start=this.N5u,H.firstquartile=this.ymZ,H.midpoint=this.hw7,H.thirdquartile=this.KxR,H.complete=this.fam,H.error=this.vpN,H.pause=this.tF,H.resume=this.fu,H.skip=this.MR_,H.viewable_impression=this.BR,H.mute=this.Xp,H.unmute=this.Xp,H.fullscreen=this.npp,H.exitfullscreen=this.jux,H.fully_viewable_audible_half_duration_impression=this.BR,H.measurable_impression=this.BR,H.abandon=this.tF,H.engagedview=this.BR,H.impression=this.BR, H.creativeview=this.BR,H.progress=this.Xp,H.custom_metric_viewable=this.BR,H.bufferstart=this.tF,H.bufferfinish=this.fu,H.audio_measurable=this.BR,H.audio_audible=this.BR,H);H={};this.N=(H.overlay_resize=this.xZN,H.abandon=this.Yy,H.close=this.Yy,H.collapse=this.Yy,H.overlay_unmeasurable_impression=function(E){return sd(E,"overlay_unmeasurable_impression",ou())},H.overlay_viewable_immediate_impression=function(E){return sd(E,"overlay_viewable_immediate_impression",ou())},H.overlay_unviewable_impression= function(E){return sd(E,"overlay_unviewable_impression",ou())},H.overlay_viewable_end_of_session_impression=function(E){return sd(E,"overlay_viewable_end_of_session_impression",ou())},H); X9().W=3;l9T(this);this.G=null}; hx=function(){var H=g.Un("yt.networklessRequestController.instance");H||(H=new wP,g.kM("yt.networklessRequestController.instance",H),g.Xj("networkless_logging")&&g.De().then(function(E){H.rO=E;VS1(H);H.G.resolve();H.FP&&Math.random()<=H.rr&&H.rO&&UB7(H.rO);g.Xj("networkless_immediately_drop_sw_health_store")&&xB1(H)})); return H}; tx=function(H){g.$f.call(this,H,"ytp-settings-menu");var E=this;this.Xa=new g.GY(this.S);this.uL=this.xb=this.settingsButton=null;this.isInitialized=this.Zh=!1;g.d(this,this.Xa);this.hide();g.kQ(this,this.Xa);H.createClientVe(this.element,this,108341,!0);this.subscribe("show",function(Q){E.JC(Q)}); this.Z(H,"highlightSettingsMenu",function(){E.Zh=!0;E.Yt()}); this.Z(H,"openSettingsMenuItem",function(Q){if(Q&&(E.Zh=!0,E.Yt(),Q==="menu_item_video_quality_advanced")){var e;(e=E.xb)==null||e.open()}}); H.U("html5_enable_voice_boost")&&(this.Z(H,"onPlaybackAudioChange",this.TW),this.Z(H,"videodatachange",this.TW));var G,P;((G=this.S.K())==null?0:(P=G.getWebPlayerContextConfig())==null?0:P.enableFullscreenComponentsFeature)&&this.Z(this.element,"wheel",function(Q){Q.stopPropagation()})}; zwq=function(H){var E=g.kf(H,"Content-Type");if(!E)return null;E=E.toLowerCase();return E.startsWith("application/json")?E.startsWith("application/json+protobuf")?new cC:new Wu:E.startsWith("application/x-protobuf")?(H=g.kf(H,"Content-Transfer-Encoding"))?H.toLowerCase()=="base64"?new h2:null:new w1:null}; VaU=function(H,E){if(H.disable)return new XP;E=E?TaU(E):[];H={MI:H.MI,Ek:H.Tr,Vj:H.FlJ,Hr:H.Hr,dk:H.dk,h3:H.h3};E=E===void 0?[]:E;return new Iu(H,E)}; g.Y_=function(H,E){typeof H==="function"&&(H=g.NL(H));return window.setInterval(H,E)}; f9d=function(H,E){var G,P,Q,e,w,t,k,W,I,A,m;return g.L(function(u){switch(u.L){case 1:G=E.isAd(),P=!G,Q=G?1:3,e=0;case 2:if(!(e0)){u.bJ(5);break}return g.U(u,Ax(5E3),6);case 6:w=new g.LN("Retrying OnePlatform request",{attempt:e}),g.p5(w);case 5:return g.EY(u,7),g.U(u,SDv(H,E),9);case 9:return u.return();case 7:t=g.vo(u);k=ms(t);W=k.errorCode;I=H.K();A=I.U("html5_use_network_error_code_enums")?401:"401";P&&W==="manifest.net.badstatus"&&k.details.rc===A&&(P=!1,e===Q-1&&(Q+= 1));if(e===Q-1)return m=FeU(G,k.details),m.details.backend="op",m.details.originec=W,u.return(Promise.reject(m));if(W==="auth"||W==="manifest.net.retryexhausted")return u.return(Promise.reject(k));H.handleError(k);if(uN(k.severity)){u.bJ(4);break}case 3:e++;u.bJ(2);break;case 4:return u.return(Promise.reject(FeU(G,{backend:"op"})))}})}; pMU=function(H,E){var G=E.params||{};H={urlParams:{a:"logerror",t:"jserror",type:E.name,msg:E.message.substr(0,250),line:E.lineNumber,level:H,"client.name":G.name},postParams:{url:g.tJ("PAGE_NAME",window.location.href),file:E.fileName},method:"POST"};G.version&&(H["client.version"]=G.version);if(H.postParams){E.stack&&(H.postParams.stack=E.stack);E=g.R(Object.keys(G));for(var P=E.next();!P.done;P=E.next())P=P.value,H.postParams["client."+P]=G[P];if(G=g.tJ("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(E= g.R(Object.keys(G)),P=E.next();!P.done;P=E.next())P=P.value,H.postParams[P]=G[P];(G=g.tJ("LAVA_VERSION"))&&(H.postParams["lava.version"]=G);G=g.tJ("SERVER_NAME");E=g.tJ("SERVER_VERSION");G&&E&&(H.postParams["server.name"]=G,H.postParams["server.version"]=E)}g.a2(g.tJ("ECATCHER_REPORT_HOST","")+"/error_204",H)}; H2l=function(H){Object.keys(H).forEach(function(E){var G=H[E];if(typeof G(void 0,{type:vu})==="undefined")throw Error('The slice reducer for key "'+E+"\" 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 G(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+M0()})==="undefined")throw Error('The slice reducer for key "'+ E+"\" returned undefined when probed with a random type. Don't try to handle '"+(vu+'\' 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.'));})}; cz=function(H){return H}; dP=function(H,E,G,P,Q,e,w,t){Xm.call(this,H,E,G,P);this.SR=Q;this.aq=e;this.C=t;this.Zr=!0;this.D=null;this.T=Zi(G.clientMetadata,"metadata_type_linked_player_bytes_layout_id");IS(this.aq(),this);H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; GYj=function(H,E){var G=globalThis.sessionStorage.getItem(H);if(!G)return["m"];try{var P=D5(G);EbQ(P,E)}catch(Q){return globalThis.sessionStorage.removeItem(H),["c"]}for(E=4;E<7&&P[E]===0;)E++;for(G=0;G=G?(globalThis.sessionStorage.removeItem(H),["e"]):["a",new Uint8Array(P.buffer,E+4)]}; n7=function(H,E){g.rr.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:E,foundObjectStores:H},ruT.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,n7.prototype)}; g.Od=function(H){H.isActive()&&g.au(H)}; PHM=function(H){var E=H.raw_player_response;if(!E){var G=H.player_response;G&&(E=JSON.parse(G))}delete H.player_response;delete H.raw_player_response;if(E){H.raw_player_response={streamingData:E.streamingData,playerConfig:E.playerConfig};var P;if((P=E.playbackTracking)==null?0:P.qoeUrl)H.raw_player_response=Object.assign({},H.raw_player_response,{playbackTracking:{qoeUrl:E.playbackTracking.qoeUrl}});E.videoDetails&&(E.videoDetails.videoId||E.videoDetails.lengthSeconds)&&(G={},E.videoDetails.videoId&& (G.videoId=E.videoDetails.videoId),E.videoDetails.lengthSeconds&&(G.lengthSeconds=E.videoDetails.lengthSeconds),H.raw_player_response=Object.assign({},H.raw_player_response,{videoDetails:G}))}}; S4s=function(H){this.next=function(E){K7(H.L);H.L.D?E=uv(H,H.L.D.next,E,H.L.N):(H.L.N(E),E=mk(H));return E}; this.throw=function(E){K7(H.L);H.L.D?E=uv(H,H.L.D["throw"],E,H.L.N):(Ar(H.L,E),E=mk(H));return E}; this.return=function(E){return Qpu(H,E)}; this[Symbol.iterator]=function(){return this}}; spu=function(){j1==null&&(j1=new cu);return j1}; Ax=function(H,E){var G=null;return(new g.El(function(P,Q){G=g.N0(function(){P(E)},H); G==-1&&Q(Error("Failed to schedule timer."))})).KW(function(P){g.lU.clearTimeout(G); throw P;})}; obU=function(H){return{eb:hU(H,1),im5:hU(H,2)}}; y2=function(H,E,G){G=G===void 0?!1:G;var P=H.T();if(P){for(;H.D=E)return G}H=g.R(H.W.values());for(G=H.next();!G.done;G=H.next())if(G=G.value,G.start<=E&&G.end>=E)return G}; Z5=function(H){Kr(H);H=PM(H);QU(H)?H=String(H):(rd(H),H=tPu());return H}; C7=function(H){var E=H.S.getRootNode();return H.S.U("web_watch_pip")||H.S.U("web_shorts_pip")?dd(E):document}; gP=function(H){var E=H.toString();H.name&&E.indexOf(H.name)==-1&&(E+=": "+H.name);H.message&&E.indexOf(H.message)==-1&&(E+=": "+H.message);if(H.stack)a:{H=H.stack;var G=E;try{H.indexOf(G)==-1&&(H=G+"\n"+H);for(var P;H!=P;)P=H,H=H.replace(/((https?:\/..*\/)[^\/:]*:\d+(?:.|\n)*)\2/,"$1");E=H.replace(/\n */g,"\n");break a}catch(Q){E=G;break a}E=void 0}return E}; L7=function(){this.keys=[];this.values=[]}; g.lN=function(H,E,G){if(E instanceof g.oG){var P=E.x;E=E.y}else P=E,E=G;H.style.left=s0(P,!1);H.style.top=s0(E,!1)}; aXs=function(H,E,G){H.L&&H.L.dispose();H.L=new g.Wt(H.NG7,E,H);g.d(H,H.L);var P;E=((P=G.U2)==null?void 0:P.trackingParams)||null;H.S.setTrackingParams(H.element,E);var Q;var e,w;if(G==null?0:(e=G.U2)==null?0:(w=e.title)==null?0:w.content){var t;P=(Q=G.U2)==null?void 0:(t=Q.title)==null?void 0:t.content;var k,W;if((k=G.U2)==null?0:(W=k.bodyText)==null?0:W.content)P+=" \u2022 ";Q=P}else Q="";var I,A;G=((I=G.U2)==null?void 0:(A=I.bodyText)==null?void 0:A.content)||"";H.update({text:Q+G,chevron:g.sx()})}; g.O2w=function(H){H=(H=H.getVideoData())&&H.W;return!!H&&!(!H.audio||!H.video)&&H.mimeType!=="application/x-mpegURL"}; KDj=function(H,E){E=E||{};E.dZa=!0;E=new Ud(E);E.push(H,!0);if(E.err)throw E.msg||xf[E.err];return E.result}; FW=function(H){this.VN=tz(H)}; NeQ=function(H,E,G){G=G===void 0?jpd:G;H=SB(H,E);E=typeof H;H=H==null?H:E==="bigint"?sD(ea(64,H)):Kr(H)?E==="string"?$2d(H):c07(H):void 0;return H!=null?H:G}; V2=function(H){var E={ns:H.jT,el:H.eventLabel,cpn:H.clientPlaybackNonce,ver:2,cmt:H.W(H.L),fmt:H.cK,fs:H.U2?"1":"0",rt:H.W(H.ox),adformat:H.adFormat,content_v:H.contentVideoId,euri:H.AT,lact:H.AG,live:H.xW,cl:(818902666).toString(),mos:H.yS,state:H.playerState,volume:H.g6};H.subscribed&&(E.subscribed="1");Object.assign(E,H.yG);H.N==="all"?Object.assign(E,H.dP):H.N==="once"&&H.G&&Object.assign(E,H.dP);H.autoplay&&(E.autoplay="1");H.WO&&(E.sautoplay="1");H.G6&&(E.dni="1");!H.T&&H.z$&&(E.epm=y01[H.z$]); H.isFinal&&(E["final"]="1");H.BF&&(E.splay="1");H.Qm&&(E.delay=H.Qm);H.Yp&&(E.hl=H.Yp);H.region&&(E.cr=H.region);H.userGenderAge&&(E.uga=H.userGenderAge);H.userAge!==void 0&&H.au&&(E.uga=H.au+H.userAge);H.T$!==void 0&&(E.len=H.W(H.T$));!H.T&&H.experimentIds.length>0&&(E.fexp=H.experimentIds.toString());H.B!==null&&(E.rtn=H.W(H.B));H.jV&&(E.feature=H.jV);H.qI&&(E.ctrl=H.qI);H.v$&&(E.ytr=H.v$);H.s7&&(E.afmt=H.s7);H.offlineDownloadUserChoice&&(E.ODUC=H.offlineDownloadUserChoice);H.p_&&(E.lio=H.W(H.p_)); H.T?(E.idpj=H.b8,E.ldpj=H.qC,H.delayThresholdMet&&(E.dtm="1"),H.L_!=null&&(E.rti=H.W(H.L_)),H.VU&&(E.ald=H.VU),H.compositeLiveIngestionOffsetToken&&(E.clio=H.compositeLiveIngestionOffsetToken)):H.adType!==void 0&&(E.at=H.adType);H.gt&&(H.G||H.T)&&(E.size=H.gt);H.G&&H.C.length&&(E.pbstyle=H.C.join(","));H.ML!=null&&(H.G||H.T)&&(E.inview=H.W(H.ML));H.T&&(E.volume=zg(H,g.wH(H.segments,function(P){return P.volume})),E.st=zg(H,g.wH(H.segments,function(P){return P.startTime})),E.et=zg(H,g.wH(H.segments, function(P){return P.endTime})),YZ(H.segments,function(P){return P.playbackRate!==1})&&(E.rate=zg(H,g.wH(H.segments,function(P){return P.playbackRate}))),YZ(H.segments,function(P){return P.L!=="-"})&&(E.als=g.wH(H.segments,function(P){return P.L}).join(",")),YZ(H.segments,function(P){return P.previouslyEnded})&&(E.pe=g.wH(H.segments,function(P){return""+ +P.previouslyEnded}).join(","))); E.muted=zg(H,g.wH(H.segments,function(P){return P.muted?1:0})); YZ(H.segments,function(P){return P.visibilityState!==0})&&(E.vis=zg(H,g.wH(H.segments,function(P){return P.visibilityState}))); YZ(H.segments,function(P){return P.connectionType!==0})&&(E.conn=zg(H,g.wH(H.segments,function(P){return P.connectionType}))); YZ(H.segments,function(P){return P.W!==0})&&(E.blo=zg(H,g.wH(H.segments,function(P){return P.W}))); YZ(H.segments,function(P){return!!P.D})&&(E.blo=g.wH(H.segments,function(P){return P.D}).join(",")); YZ(H.segments,function(P){return!!P.compositeLiveStatusToken})&&(E.cbs=g.wH(H.segments,function(P){return P.compositeLiveStatusToken}).join(",")); YZ(H.segments,function(P){return!!P.heartbeatLoggingToken})&&(E.hb_data=g.wH(H.segments,function(P){return P.heartbeatLoggingToken}).join(",")); YZ(H.segments,function(P){return P.G!=="-"})&&(E.cc=g.wH(H.segments,function(P){return P.G}).join(",")); YZ(H.segments,function(P){return P.clipId!=="-"})&&(E.clipid=g.wH(H.segments,function(P){return P.clipId}).join(",")); if(YZ(H.segments,function(P){return!!P.audioId})){var G="au"; H.G&&(G="au_d");E[G]=g.wH(H.segments,function(P){return P.audioId}).join(",")}Tg()&&H.WF&&(E.ctt=H.WF,E.cttype=H.FI,E.mdx_environment=H.mdxEnvironment); H.lG&&(E.etype=H.Jm!==void 0?H.Jm:0);H.hm&&(E.uoo=H.hm);H.livingRoomAppMode&&H.livingRoomAppMode!=="LIVING_ROOM_APP_MODE_UNSPECIFIED"&&(E.clram=b2d[H.livingRoomAppMode]||H.livingRoomAppMode);H.D?i21(H,E):(E.docid=H.videoId,E.referrer=H.referrer,E.ei=H.eventId,E.of=H.dw,E.osid=H.osid,E.vm=H.videoMetadata,H.adQueryId&&(E.aqi=H.adQueryId),H.autonav&&(E.autonav="1"),H.playlistId&&(E.list=H.playlistId),H.mf&&(E.ssrt="1"),H.lS&&(E.upt=H.lS));H.G&&(H.embedsRct&&(E.rct=H.embedsRct),H.embedsRctn&&(E.rctn= H.embedsRctn),H.compositeLiveIngestionOffsetToken&&(E.clio=H.compositeLiveIngestionOffsetToken));H.eR&&(E.host_cpn=H.eR);return E}; g.S1=function(H){g.J.call(this);this.W=H;this.L={}}; qOT=function(H){this.X=H;this.G=this.W=this.mediaTime=NaN;this.D=this.L=!1;this.T=.001;g.vV(H)&&(this.T=.01)}; RZ1=function(H){return H.E_&&!H.pU}; U5=function(H){var E={},G=g.Fy(H.L,function(P){return P.L}); g.kn(G,function(P,Q){P=H.G[Q]!==void 0?String(H.G[Q]):P.L&&P.W!==null?String(P.W):"";P.length>0&&(E[Q]=P)},H); return E}; J0s=function(){return!!(window.MediaSource||window.ManagedMediaSource||window.WebKitMediaSource||window.HTMLMediaElement&&HTMLMediaElement.prototype.webkitSourceAddId)}; Slq=function(H){if(!(H instanceof Object))throw new TypeError("Iterator result "+H+" is not an object");}; r0Q=function(H){var E=E===void 0?!0:E;this.L=new f7;H!==void 0&&V0u(this.L,H);E&&this.L.add("v","unreleased",-16)}; dH=function(H,E){var G=p7(H);if(G===1){for(E=G=0;E<7;E++)G=G*256+p7(H);return G}for(var P=128,Q=0;Q<6&&P>G;Q++)G=G*256+p7(H),P*=128;return E?G-P:G}; P3=function(H){this.L=H}; YOU=function(H){var E=E===void 0?LKu:E;var G=H.c5?void 0:eX();G?lcl(G,E).then(function(P){H.uach=Bev(P!=null?P:"[]");P=Hn(H);Lt(P,ER,9,H.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)}; CH1=function(H,E,G){var P,Q,e;g.L(function(w){if(w.L==1)return P={context:g.$y(),settingItemId:E,newValue:G},Q=g.ZO(Xyu),g.U(w,g.CO(H,P,Q),2);e=w.W;if(!e||e.errorMetadata)return Z2n("SetSettingRequest",e),w.return(void 0);g.P2(w)})}; Gn=function(H,E,G,P,Q,e){this.videoData=H;this.L=E;this.reason=G;this.W=P;this.token=Q;this.videoId=e}; gbu=function(){var H=g.tJ("csn-to-ctt-auth-info");H||(H={},bT("csn-to-ctt-auth-info",H));return H}; LDt=function(H,E,G){var P=H.split("#",2);H=P[0];P=P.length>1?"#"+P[1]:"";var Q=H.split("?",2);H=Q[0];Q=W9(Q[1]||"");for(var e in E)if(G||!g.Fe(Q,e))Q[e]=E[e];return g.eB(H,Q)+P}; lXl=function(H,E){if(E=E.content&&E.content.adFeedbackRenderer||null)H.W=new Pn(H.api,H.layoutId,H.interactionLoggingClientData,H.vF),g.d(H,H.W),H.W.init(PL("ad-feedback-dialog"),E,H.macros),H.W.mx(H.PF),H.W.subscribe("a",function(){return H.publish("c")})}; Utq=function(H){H.audioTrack.L_=[];H.videoTrack.L_=[]}; o9=function(H){this.Da=H;this.W=new Map;this.L=new Map;this.G=new Map}; xtq=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"M 12,26 16,26 16,10 12,10 z M 21,26 25,26 25,10 21,10 z"}}]}}; zZM=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);We(this.api,"isLifaAdPlaying",function(){return E.api.isLifaAdPlaying()}); this.events.Z(H,"serverstitchedvideochange",function(){var G;(G=E.api.getVideoData())!=null&&G.mV()&&(E.api.isLifaAdPlaying()?(E.playbackRate=E.api.getPlaybackRate(),E.api.setPlaybackRate(1)):E.api.setPlaybackRate(E.playbackRate))}); this.playbackRate=1}; Te7=function(H){if(H.L==null)H.callback.Om(H.slot);else try{H.L.cancel(),H.L=null,H.callback.Om(H.slot)}catch(E){H.L=null,Qd(H.callback,H.slot,new T(E,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANCEL_SLOT_FULFILLMENT_FAILURE"),"ADS_CLIENT_ERROR_TYPE_CANCEL_FULFILL_SLOT_FAILED")}}; VFv=function(H,E,G){for(var P="",Q=0;Q>6|192:((Q&64512)===55296&&P+1>18|240,E[G++]=Q>>12&63|128):E[G++]=Q>>12|224,E[G++]=Q>>6&63|128),E[G++]=Q&63|128)}return G}; Dz=function(H,E){if(H.P$()===H.YH.length-1)H.Dc++,rC(H.Ou,H.layout,"normal"),H.uG()||d$(H.l4.get());else a:{if(H.P$()===-1&&(H.callback.nP(H.slot,H.layout),E>0)){xQ("Invalid index for playLayoutAtIndexOrExit when no ad has played yet.",H.slot,H.layout,{indexToPlay:E,layoutId:H.layout.layoutId});break a}H.Dc=E;E=H.AC();if(H.P$()>0&&!H.uG()){var G=H.l4.get();G.W=!1;var P={};G.L&&G.videoId&&(P.cttAuthInfo={token:G.L,videoId:G.videoId});B2("ad_to_ad",P)}G=g.X(E.Za().renderingContent,M3);if(G==null?0: G.isEligibleToBeSkippedWhenNoEngagementOnLayoutId){var Q;G=!((Q=H.q4.get().fru.get(G.isEligibleToBeSkippedWhenNoEngagementOnLayoutId))!=null&&Q)}else G=!1;G?Dz(H,H.P$()+1):H.F5(E)}}; t3s=function(H,E){var G=H.L;E=Math.min(E,G.W.totalLength);if(E===G.W.totalLength)return H.L=null,G;G=$3U(G,E);H.L=G[1];return G[0]}; Blj=function(H,E,G,P){for(var Q=0,e=H.length,w;Q>>1),k=void 0;G?k=E.call(void 0,H[t],t,H):k=E(P,H[t]);k>0?Q=t+1:(e=t,w=!k)}return w?Q:-Q-1}; a7=function(){if(!nV.instance){var H=g.Un("yt.networkRequestMonitor.instance")||new nV;g.kM("yt.networkRequestMonitor.instance",H);nV.instance=H}return nV.instance}; OR=function(H,E){g.D.call(this,{J:"button",QN:["ytp-button","ytp-jump-button"],j:{title:H.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}","aria-keyshortcuts":"{{aria-keyshortcuts}}","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[E>0?{J:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",QN:["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"}}, {J:"text",QN:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"7.05",y:"15.05"}}]}:{J:"svg",j:{height:"100%",mlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",QN:["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"}}, {J:"text",QN:["ytp-jump-button-text","ytp-svg-fill"],j:{x:"6.5",y:"15"}}]}]});var G=this;this.S=H;this.L=E;this.W=new g.Wt(function(){G.G?(G.G=!1,G.W.start()):G.element.classList.remove("ytp-jump-spin","backwards")},250); this.G=!1;(E=E>0)?this.S.createClientVe(this.element,this,36843):this.S.createClientVe(this.element,this,36844);var P=g.ct(E?"Seek forward $SECONDS seconds. (\u2192)":"Seek backwards $SECONDS seconds. (\u2190)",{SECONDS:Math.abs(this.L).toString()});this.S.U("player_tooltip_data_title_killswitch")?this.update({title:P,"data-title-no-tooltip":P,"aria-keyshortcuts":E?"\u2192":"\u2190"}):this.update({"tooltip-title":P,"data-title-no-tooltip":P,"aria-keyshortcuts":E?"\u2192":"\u2190"});this.D=this.element.querySelector(".ytp-jump-button-text"); this.D.textContent=Math.abs(this.L).toString();this.listen("click",this.onClick,this);M2(H,this.element,this)}; Iyn=function(H,E){H.HT.tick("vta");Ld("vta",void 0,"video_to_ad");H.getCurrentTime()>0&&kc1(H.tG,H.getCurrentTime());H.mediaElement.activate(E);H.Am&&rm(4);!H.videoData.N&&H.playerState.isOrWillBePlaying()&&H.W3.start();if(WSs(H)){var G;if(E=(G=H.mediaElement)==null?void 0:G.audioTracks())E.onchange=function(){H.publish("internalaudioformatchange",H.videoData,!0)}}}; nN=function(H,E,G){G=G===void 0?!1:G;if(H.rP){var P=H.rP.qV(),Q=q1(P,E),e=NaN,w=Wg(H);w&&(e=q1(P,w.uJ.index.getStartTime(w.U7)));if(Q===e&&H.L&&H.L.W&&AvM(KV(H),0))return E}H=jl(H,E,G);return H>=0?H:NaN}; m3n=function(H,E,G){return H.call.apply(H.bind,arguments)}; cn=function(H,E,G){Ml(gx,[H],!ou());uBd(H,G);G!=4&&vZq(H.Jm,G,H.y5);return sd(H,E,ou())}; ygn=function(H,E,G){var P=[];for(E=M3U(H,E);EG)break}return P}; NH=function(H,E,G,P,Q){this.name=H;this.methodType="unary";this.requestType=E;this.responseType=G;this.L=P;this.W=Q}; d3M=function(H){var E=W9(H.playerVars),G=Number(E.length_seconds);isNaN(G)&&(G=0,xQ("Expected valid length seconds in player vars but got NaN"));return{playerVars:E,DC:H.playerVars,Gp:G}}; nZ1=function(H,E,G){return new Promise(function(P,Q){function e(){m||(m=new D3j(w.result,{closed:A}));return m} var w=E!==void 0?self.indexedDB.open(H,E):self.indexedDB.open(H);var t=G.blocked,k=G.blocking,W=G.Q3a,I=G.upgrade,A=G.closed,m;w.addEventListener("upgradeneeded",function(u){try{if(u.newVersion===null)throw Error("Invariant: newVersion on IDbVersionChangeEvent is null");if(w.transaction===null)throw Error("Invariant: transaction on IDbOpenDbRequest is null");u.dataLoss&&u.dataLoss!=="none"&&yd("IDB_DATA_CORRUPTED",{reason:u.dataLossMessage||"unknown reason",dbName:b5(H)});var v=e(),n=new i5(w.transaction); I&&I(v,function(O){return u.oldVersion=O},n); n.done.catch(function(O){Q(O)})}catch(O){Q(O)}}); w.addEventListener("success",function(){var u=w.result;k&&u.addEventListener("versionchange",function(){k(e())}); u.addEventListener("close",function(){yd("IDB_UNEXPECTEDLY_CLOSED",{dbName:b5(H),dbVersion:u.version});W&&W()}); P(e())}); w.addEventListener("error",function(){Q(w.error)}); t&&w.addEventListener("blocked",function(){t()})})}; qH=function(H,E){this.W=H>>>0;this.L=E>>>0}; ayt=function(H,E){R7(H);E=JZ(H,E);return H.L.has(E)}; OAM=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{J:"path",La:!0,j:{d:"M2,14 L5,11 L5,3 L2,0 L9,0 L9,14 L2,14 L2,14 Z",fill:"#eaeaea"}}]}}; r$=function(H){this.VN=tz(H)}; LO=function(H){var E=jq();g.NL(function(){var G=g.Bn(H);Yw(E,G);return G})()}; XG=function(H){return H=="\r"||H=="\n"||H==" "||H=="\t"}; qWu=function(H,E){var G=E&2147483648;G&&(H=~H+1>>>0,E=~E>>>0,H==0&&(E=E+1>>>0));H=Qe(H,E);return typeof H==="number"?G?-H:H:G?"-"+H:H}; Zz=function(H){return H.getVideoData().enableServerStitchedDai&&!!H.xq}; CV=function(H,E,G,P){if(P.substring(0,2)==="{{")H.hj[P]=[E,G];else return P}; g$=function(H,E){var G;E=(G=H.C_.get().jX.get(E))!=null?G:null;if(E===null)return xQ("Expected ad video start time on playback timeline"),0;H=H.S.getCurrentTime(2,!0);return H0)Q(e);else{a:{if(e&&typeof e.length=="number"){if(g.rW(e)){var w=typeof e.item=="function"||typeof e.item=="string";break a}if(typeof e==="function"){w=typeof e.item=="function";break a}}w=!1}g.D9(w?g.dm(e):e,Q)}}}; LV=function(H){this.VN=tz(H)}; l5=function(H){this.VN=tz(H)}; g.UR=function(H){var E=fz(H.lm());return H.app.mB&&!H.isFullscreen()||H.getPresentingPlayerType()===3&&E&&E.wU()&&E.vR()||!!H.getPlaylist()}; jbQ=function(H){xw[H]=H in xw?xw[H]+1:0;return xw[H]}; Sl=function(H){Xu.call(this,H);var E=this;this.C=this.L=this.W=0;this.N=null;this.B=this.D=0;this.isEnded=!1;this.L_=null;var G=new g.Z0(H);g.d(this,G);this.Jm=g.hE(this.api.K().experiments,"web_player_default_peeking_px");this.O7=this.api.U("delhi_modern_player_enable_pause_peeking");this.T$=g.hE(this.api.K().experiments,"delhi_modern_player_pause_thumbnail_percentage");this.z$=this.api.U("web_player_imax_theater_mode");this.G=this.api.U("web_player_enable_fullscreen_grid_components");this.PF=this.api.U("web_player_enable_more_videos_button"); this.E7=this.api.U("web_player_use_external_grid_component");g.aG(this.api.getRootNode(),"ytp-grid-scrollable");G.Z(H,"fullscreentoggled",function(){zn(E)}); G.Z(H,"videodatachange",function(){if(E.G){var P=E.api.getVideoData(1);E.videoData!==P&&E.W===2&&(g.Tn(E.api.getRootNode(),"ytp-grid-scrolling"),Vd(E,1,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"));E.videoData=P}},this); G.Z(H,"sizestylechange",function(){E.G&&zn(E)}); We(this.api,"setFullscreenQuickActions",function(P){E.setFullscreenQuickActions(P)}); We(this.api,"setPlayerOverlayVideoDetailsRenderer",function(P){E.setPlayerOverlayVideoDetailsRenderer(P)}); this.E7&&We(this.api,"setFullscreenGrid",function(P){E.setFullscreenGrid(P)}); this.G&&cv1(this,G,H)}; dt=function(H,E,G,P){this.Gg=H;this.pm=E;this.L=G;this.D=P;this.G=void 0;this.W=new Map;H.GS||(H.GS={});H.GS=Object.assign({},Nzl,H.GS)}; yvv=function(H,E){var G,P;return g.L(function(Q){return Q.L==1?(G=[],g.U(Q,g.HC(FG,E),2)):Q.L!=3?(P=Q.W,g.U(Q,g.fV(P,["databases"],{Iq:!0,mode:"readonly"},function(e){G.length=0;return g.V1(e.objectStore("databases"),{},function(w){H(w.getValue())&&G.push(w.getValue());return g.SF(w)})}),3)):Q.return(G)})}; bAs=function(H){pV(H.videoData,"html5_set_debugging_opt_in")&&(H=g.UF(),H.A7(183)||(b3(183,!0),H.save()))}; Es=function(H){var E=H.api.K();H.HT.MW("pot_ist");H.W||iAn(H);H.U("html5_bandaid_attach_content_po_token")||(H.U("html5_generate_session_po_token")&&(Ha(H),qSn(H)),E=g.hE(E.experiments,"html5_session_po_token_interval_time_ms")||0,E>0&&(H.N=g.Y_(function(){Ha(H)},E)),H.B=!0)}; tL=function(H,E){return H.uJ===E.uJ?H.range&&E.range?H.range.start+H.L+H.W===E.range.start+E.L:H.U7===E.U7?H.L+H.W===E.L:H.U7+1===E.U7&&E.L===0&&H.G:!1}; Gb=function(H,E,G){return H+G*(E-H)}; g.Pa=function(H){var E=g.c4.apply(1,arguments);if(E.length===0)return Pg(H[0]);for(var G=H[0],P=0;P 0?(P.onesie="0",H.handleError(new g.q$("html5.missingapi",P)),!1):!0}; Wk=function(H,E){return E>=H.Ev()-Ba(H)}; ZM=function(H,E){var G=Y$(E);if(H.W[G])return H.W[G];var P=Object.keys(H.store)||[];if(P.length<=1&&Y$(E)===P[0])return P;for(var Q=[],e=0;e=0?Q=E:Q=g0(H,E,G);Q&&(P?G?Q.tabIndex>P.tabIndex&&(P=Q):Q.tabIndex=480;return P}; $al=function(H,E,G,P,Q){if(!H.ge){var e=H.AC();if(e){e.Za().layoutId!==G.layoutId&&xQ("SubLayout mismatch in exitSubLayout",E,G,{exitingSubLayout:G.layoutId,activeSubLayout:e.Za().layoutId});H.ge=!0;e.Ka(e.Za(),P);e=Object.assign({},SO(H),{layoutId:G.layoutId,layoutExitReason:P});var w=e.layoutId,t=e.layoutExitReason;if(e.t2){var k={};Gq(e.vY,"wrsx",(k.xc=w,k.ler=t,k.ctp=Q6(w),k))}H.eL(E,G,P);H.ge=!1;H.Az?(H.Az(),H.uG()||d$(H.l4.get())):Q()}else xQ("No active adapter when exitSubLayout in PlayerBytesVodCompositeLayoutRenderingAdapter. This should never happen.", E,G)}}; TR=function(H){return H.localStorage===void 0?new FC("yt-client-location"):H.localStorage}; g.Pm=function(H,E,G,P){P=P===void 0?{}:P;if(!H||!H.addEventListener&&!H.attachEvent)return"";var Q=tg1(H,E,G,P);if(Q)return Q;Q=++ktu.count+"";var e=!(E!="mouseenter"&&E!="mouseleave"||!H.addEventListener||"onmouseenter"in document);var w=e?function(t){t=new f_(t);if(!QK(t.relatedTarget,function(k){return k==H},!0))return t.currentTarget=H,t.type=E,G.call(H,t)}:function(t){t=new f_(t); t.currentTarget=H;return G.call(H,t)}; w=g.NL(w);H.addEventListener?(E=="mouseenter"&&e?E="mouseover":E=="mouseleave"&&e?E="mouseout":E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"),WZq()||typeof P==="boolean"?H.addEventListener(E,w,P):H.addEventListener(E,w,!!P.capture)):H.attachEvent("on"+E,w);p_[Q]=[H,E,G,w,P];return Q}; IJu=function(H,E){return(H==null?void 0:H.maxWidth)>(E==null?void 0:E.maxWidth)||(H==null?void 0:H.maxHeight)>(E==null?void 0:E.maxHeight)}; Hb=function(H,E,G){E.match(Abv);return H(E,G).then(function(P){var Q=g.mau(P.xhr);return Q?Hb(H,Q,G):P.xhr})}; uWl=function(H,E){H=g.eS(H,{startTimeMs:E},function(G,P){return G.startTimeMs-P.startTimeMs}); return H>=0?H:-H-2}; rn=function(H){return H.S.K().experiments.xp("html5_cuepoint_identifier_logging")}; Mgq=function(H,E){E?vGu.test(H):(H=g.oz(H),Object.keys(H).includes("cpn"))}; Em=function(H,E,G,P,Q){s9.call(this,H,{J:"span",Y:Q?"ytp-ad-badge--clean-player":"ytp-ad-badge"},"ad-badge",E,G,P);this.W=Q;this.adBadgeText=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);this.adBadgeText.mx(this.element);g.d(this,this.adBadgeText);Q?(this.adBadgeText.element.classList.add("ytp-ad-badge__text--clean-player"),r3&&this.adBadgeText.element.classList.add("ytp-ad-badge--stark-clean-player-ios")):this.adBadgeText.element.classList.add("ytp-ad-badge__text");this.hide()}; g.jK=function(){return{J:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",j:{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z",fill:"#fff"}}]}}; g.GI=function(H,E){for(var G in H)if(H[G]==E)return!0;return!1}; Dal=function(H){return"getAllKeys"in IDBObjectStore.prototype?tG(H.L.getAllKeys(void 0,void 0)):daw(H)}; d7U=function(H){function E(){a:{if(Pb)throw Error("");if(QH!==null){var P=QH.GB;if(P===void 0||P.pH!==G){var Q=void 0,e=QH.Mi;if(e&&(Q=P!==void 0?P.TJ:QH.producers,Q!==void 0&&Q.pH===G)){QH.GB=Q;Q.Iuu=G.version;break a}var w=G.yu,t;if(!(t=w===void 0||w.Cc!==QH)){if(e){b:{t=QH;e=t.GB;if(e!==void 0){t=t.producers;do{if(t===w){e=!0;break b}if(t===e)break;t=t.TJ}while(t!==void 0)}e=!1}e=!e}t=e}t&&(e=Ir(QH),Q={pH:G,Cc:QH,TJ:Q,qx:w,Iuu:G.version,Eq:void 0},QH.GB=Q,P!==void 0?P.TJ=Q:QH.producers=Q,e&&nGv(G, Q))}}}return G.value} var G=Object.create(aJn);G.value=H;E[D7T]=G;return[E,function(P){return OtT(G,P)}, function(P){if(!KZn())throw Error();OtT(G,P(G.value))}]}; jM1=function(H){var E=H.url;H=H.jtZ;this.W=E;this.D=H;this.G=(new Date).getTime()-17040672E5;this.L={};for(var G=/[?&]([^&=]+)=([^&]*)/g;H=G.exec(E);)this.L[H[1]]=H[2]}; sm=function(H){this.data=window.Float32Array?new Float32Array(H):Array(H);this.W=this.L=H-1}; oo=function(H,E,G){return arguments.length<=2?Array.prototype.slice.call(H,E):Array.prototype.slice.call(H,E,G)}; eh=function(H,E){this.adPodIndex=H;this.L=E.length;this.adBreakLengthSeconds=E.reduce(function(P,Q){return P+Q},0); var G=0;for(H+=1;HG+1&&E0?G.heartbeatRequestParams.unpluggedParams.freePreviewUsageDetails= E.freePreviewUsageDetails:G.heartbeatRequestParams.unpluggedParams.freePreviewWatchedDuration={seconds:""+E.freePreviewWatchedDuration}}); We(H,"setFreePreviewWatchedDuration",function(G){E.freePreviewWatchedDuration=G}); We(H,"setFreePreviewUsageDetails",function(G){E.freePreviewUsageDetails=G})}; N_=function(H,E){this.callback=H;this.slot=E}; xQ=function(H,E,G,P,Q){P=P===void 0?{}:P;if(!Q||Math.random()<5E-4){E=E||null;G=G||null;H=H instanceof Error?H:new g.LN(H);if(H.args)for(var e=g.R(H.args),w=e.next();!w.done;w=e.next())w=w.value,w instanceof Object&&(P=Object.assign({},w,P));P.category="H5 Ads Control Flow";E&&(P.slot=E?"slot: "+E.slotType:"");G&&(P.layout=yH(G),P.layoutId=G.layoutId);Q&&(P.known_error_aggressively_sampled=!0);H.args=[P];g.p5(H)}}; VgT=function(H,E,G){if(E){var P=E.adLayoutLoggingData;g.GQ(g.PY(),function(){H.W!=null&&P&&g.HY("adsSeenClientLogging",{serializedAdServingDataEntry:P.serializedAdServingDataEntry})},G!=null?G:0)}}; FZj=function(H,E){var G=0,P=!1;E=g.R(E);for(var Q=E.next();!Q.done;Q=E.next()){Q=Q.value;if(g.X(Q,Syl)){Q=g.X(Q,Syl);var e={startTime:NaN,title:null,onActiveCommand:void 0},w=Q.title;e.title=w?g.b_(w):"";w=Q.timeRangeStartMillis;w!=null&&(e.startTime=w);e.onActiveCommand=Q.onActiveCommand;Q=e;G===0&&Q.startTime!==0&&(H.L[G].startTime=0,H.L[G].title="",H.L[G].onActiveCommand=Q.onActiveCommand,G++,P=!0);H.L.length<=G&&(e=new i_,H.L.push(e),g.d(H,e),e.mx(H.au,H.au.children.length));H.L[G].startTime= Q.startTime;H.L[G].title=Q.title?Q.title:"";H.L[G].onActiveCommand=Q.onActiveCommand;H.L[G].index=P?G-1:G}G++}for(;G=1024)throw Error("pvtlmt");for(var k in t)e= +k,e1024)throw Error("spvt");Q=Q&-16760833|(k&1023)<<14}}}Q|=64;P===0&&(Q|=2048);k0(H,Q);return H}; oS=function(H,E,G){G!==void 0&&($G(H,E*8+2),E=G.length,$G(H,E),fH(H,E),H.L.set(G,H.pos),H.pos+=E)}; var Gut=function(H){return pH[h[7]](this,1,H)}; PwU=function(H){H.W=!0;return H}; hwn=function(H){H.P6>8?HT(H,H.Pt):H.P6>0&&(H.JK[H.pending++]=H.Pt);H.Pt=0;H.P6=0}; GF=function(H){this.provider=H;this.B=!1;this.L=0;this.D=-1;this.Vm=NaN;this.G=0;this.segments=[];this.C=this.T=0;this.previouslyEnded=!1;this.L_=this.provider.Fo.getVolume();this.N=this.provider.Fo.isMuted()?1:0;this.W=E1(this.provider)}; PT=function(H,E,G){var P=H.eR;pn||G||H.N==-1||(P+=E-H.N);return P}; Qp=function(H,E,G){if(!E)return H.length>=1?H[H.length-1]:null;for(var P=g.R(H),Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,Q.width&&Q.height&&(G&&Q.width>=E||!G&&Q.height>=E))return Q;for(E=H.length-1;E>=0;E--)if(G&&H[E].width||!G&&H[E].height)return H[E];return H[0]}; KZn=function(){var H;return((H=QH)==null?void 0:H.AU)!==!1}; g.tU=function(H,E,G){E=E===void 0?{}:E;G=G===void 0?!1:G;var P=g.tJ("EVENT_ID");P&&(E.ei||(E.ei=P));E&&s1(H,E);G||(oI(H),g.Q0v(H))}; o6n=function(H,E){E.inlineMetricEnabled&&(H.inlineMetricEnabled=!0);E.playback_progress_0s_url&&(H.BD=new s0l(E));if(E=E.video_masthead_ad_quartile_urls)H.rh=E.quartile_0_url,H.D$=E.quartile_25_url,H.Jn=E.quartile_50_url,H.Hc=E.quartile_75_url,H.P_=E.quartile_100_url,H.WP=E.quartile_0_urls,H.jW=E.quartile_25_urls,H.yD=E.quartile_50_urls,H.hF=E.quartile_75_urls,H.fq=E.quartile_100_urls}; ee=function(H){var E;(E=H.C)==null||E.dispose();H.C=null}; pF=function(H,E,G){for(var P in H.L){var Q=H.L[P].index,e=E,w=G;Q.xi&&(e&&(Q.jl=Math.max(Q.jl,e)),w&&(Q.XG=Math.max(Q.XG||0,w)))}G&&(H.Jm=G/1E3)}; eQM=function(H,E){return wq(H)?E!==1&&E!==2&&E!==0?"AUTOPLAY_STATUS_UNAVAILABLE":H.M6?"AUTOPLAY_STATUS_BLOCKED":"AUTOPLAY_STATUS_OCCURRED":"AUTOPLAY_STATUS_NOT_ATTEMPTED"}; wSu=function(H,E){E=E===void 0?!1:E;if(H.loader){H.videoData.enableServerStitchedDai&&Utq(H.loader);var G=H.getCurrentTime()-H.YV();H.loader.seek(G,{FV:E}).KW(function(){})}else hp(H)}; ce=function(){$4.apply(this,arguments)}; hQU=function(H){return gr(H,!1)==="EMBEDDED_PLAYER_MODE_PFL"}; U4=function(H,E,G){var P=H.L.get(E);P?P.push(G):H.L.set(E,[G])}; WT=function(H,E,G){if(E<=0){G=tp();E="muted";var P=0}else G=G?{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!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"}}]}:{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!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"}}]},P=Math.floor(E),E=P+"volume";k4(H,G,E,P+"%")}; II=function(H,E,G,P,Q,e,w){S_.call(this,H,{J:"span",Y:w?"ytp-ad-duration-remaining--clean-player":"ytp-ad-duration-remaining"},"ad-duration-remaining",E,G,P,Q);this.videoAdDurationSeconds=e;this.W=null;w&&this.api.K().W&&(this.element.classList.add("ytp-ad-duration-remaining--mweb"),r3&&this.element.classList.add("ytp-ad-duration-remaining--mweb-ios"));this.hide()}; kuU=function(H,E){E=E===void 0?{}:E;var G=up(H),P=g.tJ("INNERTUBE_CLIENT_NAME"),Q=g.Xj("web_ajax_ignore_global_headers_if_set"),e;for(e in $NM){var w=g.tJ($NM[e]),t=e==="X-Goog-AuthUser"||e==="X-Goog-PageId";e!=="X-Goog-Visitor-Id"||w||(w=g.tJ("VISITOR_DATA"));var k;if(!(k=!w)){if(!(k=G||(g.mS(H)?!1:!0))){k=H;var W;if(W=g.Xj("add_auth_headers_to_remarketing_google_dot_com_ping")&&e==="Authorization"&&(P==="TVHTML5"||P==="TVHTML5_UNPLUGGED"||P==="TVHTML5_SIMPLY")&&tLU(k))k=ac(k)||"",k=k.split("/"), k="/"+(k.length>1?k[1]:""),W=k==="/pagead";k=W?!0:!1}k=!k}k||Q&&E[e]!==void 0||P==="TVHTML5_UNPLUGGED"&&t||(E[e]=w)}"X-Goog-EOM-Visitor-Id"in E&&"X-Goog-Visitor-Id"in E&&delete E["X-Goog-Visitor-Id"];if(G||!g.mS(H))E["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(G||!g.mS(H)){try{var I=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(A){}I&&(E["X-YouTube-Time-Zone"]=I)}document.location.hostname.endsWith("youtubeeducation.com")||!G&&g.mS(H)||(E["X-YouTube-Ad-Signals"]= xc(jk()));return E}; SS=function(H,E,G,P,Q){var e=H.eT,w=H.videoData;w.W=G;var t=g.Ap(H);G=new Gn(w,G,E,t?t.itag:"",P);H.X.experiments.xp("html5_refactor_sabr_video_format_selection_logging")?(G.videoId=Q,H.S5=G):e.qoe&&WET(e.qoe,G);Q=H.VA;Q.W=0;Q.L=0;H.publish("internalvideoformatchange",w,E==="m")}; IlM=function(H,E,G,P,Q,e){e=e===void 0?!0:e;var w=H.JT();if(!w)return e&&H.getVideoData().isLivePlayback&&H.d9.push({id:E,gja:G,ptp:P}),!1;e=w-H.getCurrentTime();return mG(H,E,G-e,P-e,void 0,void 0,Q)}; mNl=function(H,E,G){G=G.opt_configurable_tracking_events;H.L!=null&&Array.isArray(G)&&AUQ(H,G,E)}; zQ=function(){var H=gx;H.C||(H.C=!0,uPl(H,function(){return H.D.apply(H,g.EC(g.c4.apply(0,arguments)))}),H.D())}; g.u8=function(H,E,G,P){g.NL(v6v)(void 0,H,E,G,P,void 0)}; ML7=function(){PV={contentCpn:"",oV:new Map}}; xj=function(H,E){var G=E.raw_watch_next_response;if(!G){var P=E.watch_next_response;P&&(G=JSON.parse(P))}if(G){H.Jm=G;var Q=H.Jm.playerCueRangeSet;Q&&g.vT(H,Q);var e=H.Jm.playerOverlays;if(e){var w=e.playerOverlayRenderer;if(w){var t=w.autonavToggle;t&&(H.autoplaySwitchButtonRenderer=g.X(t,dN1),H.U("web_player_autonav_use_server_provided_state")&&M4(H)&&(H.autonavState=H.autoplaySwitchButtonRenderer.enabled?2:1));var k=w.videoDetails;if(k){var W=k.embeddedPlayerOverlayVideoDetailsRenderer;var I=k.playerOverlayVideoDetailsRenderer; I&&(I.title&&(E.title=g.b_(I.title)),I.subtitle&&(E.subtitle=g.b_(I.subtitle)))}g.nb(H.lJ)&&(H.gt=!!w.addToMenu);DNj(H,w.shareButton);w.startPosition&&w.endPosition&&(H.progressBarStartPosition=w.startPosition,H.progressBarEndPosition=w.endPosition);var A=w.gatedActionsOverlayRenderer;A&&(H.Uc=g.X(A,n61));var m,u,v,n=g.X((m=H.getWatchNextResponse())==null?void 0:(u=m.playerOverlays)==null?void 0:(v=u.playerOverlayRenderer)==null?void 0:v.infoPanel,alU);if(n){H.yn=Number(n==null?void 0:n.durationMs)|| NaN;if(n==null?0:n.infoPanelOverviewViewModel)H.U2=n==null?void 0:n.infoPanelOverviewViewModel;if(n==null?0:n.infoPanelDetailsViewModel)H.lG=n==null?void 0:n.infoPanelDetailsViewModel}H.showSeekingControls=!!w.showSeekingControls}}var O,q,N=(O=H.getWatchNextResponse())==null?void 0:(q=O.contents)==null?void 0:q.twoColumnWatchNextResults;if(N){var r=N.desktopOverlay&&g.X(N.desktopOverlay,OQs);r&&(r.suppressShareButton&&(H.showShareButton=!1),r.suppressWatchLaterButton&&(H.gt=!1))}W&&KE1(H,E,W);var B= dq(0,E.autoplay_count),l=H.getWatchNextResponse(),S,z=(S=l.contents)==null?void 0:S.twoColumnWatchNextResults,Pt,eu,QM,$Q=(Pt=l.playerOverlays)==null?void 0:(eu=Pt.playerOverlayRenderer)==null?void 0:(QM=eu.autoplay)==null?void 0:QM.playerOverlayAutoplayRenderer,En=j0U(H),Dj,gl=(Dj=l.contents)==null?void 0:Dj.singleColumnWatchNextResults;if(gl){var oD;if(((oD=gl.autoplay)==null?0:oD.autoplay)&&!gl.playlist){var GZ=gl.autoplay.autoplay.sets,qT={},c=new Dm(H.K()),FR=null,y3;if(GZ){for(var jH=g.R(GZ), E9=jH.next();!E9.done;E9=jH.next()){var zZ=E9.value.autoplayVideoRenderer;if(zZ&&zZ.compactVideoRenderer){FR=zZ.compactVideoRenderer;break}}if(y3=GZ[0].autoplayVideo){var hd=y3.clickTrackingParams;hd&&(qT.itct=hd);qT.autonav="1";qT.playnext=String(B)}}else qT.feature="related-auto";var bK=g.X(y3,g.Xt);if(FR){c.videoId=FR.videoId;var K=FR.shortBylineText;K&&(c.author=g.b_(K));var Ht=FR.title;Ht&&(c.title=g.b_(Ht))}else bK!=null&&bK.videoId&&(c.videoId=bK.videoId);c.pQ=qT;H.suggestions=[];H.To=c}}if(En){for(var DR= [],wf=g.R(En),Fd=wf.next();!Fd.done;Fd=wf.next()){var tE=Fd.value,F1=void 0,pw=null;if(tE.endScreenVideoRenderer){var jS=tE.endScreenVideoRenderer,b=jS.title;pw=new Dm(H.K());pw.videoId=jS.videoId;pw.lengthSeconds=jS.lengthInSeconds||0;var a=jS.publishedTimeText;a&&(pw.publishedTimeText=g.b_(a));var y=jS.shortBylineText;y&&(pw.author=g.b_(y));var Y=jS.shortViewCountText;Y&&(pw.shortViewCount=g.b_(Y));if(b){pw.title=g.b_(b);var V=b.accessibility;if(V){var wl=V.accessibilityData;wl&&wl.label&&(pw.ariaLabel= wl.label)}}var f=jS.navigationEndpoint;if(f){F1=f.clickTrackingParams;var x=g.X(f,g.Xt),Z=g.X(f,g.nR);x?pw.tI=x:Z!=null&&(pw.watchUrl=Z.url)}var iU=jS.thumbnailOverlays;if(iU)for(var Rs=g.R(iU),dl=Rs.next();!dl.done;dl=Rs.next()){var yM=dl.value.thumbnailOverlayTimeStatusRenderer;if(yM)if(yM.style==="LIVE"){pw.isLivePlayback=!0;break}else if(yM.style==="UPCOMING"){pw.isUpcoming=!0;break}}pw.BL=aI(jS.thumbnail)}else if(tE.endScreenPlaylistRenderer){var Po=tE.endScreenPlaylistRenderer,NT=Po.navigationEndpoint; if(!NT)continue;var gf=g.X(NT,g.Xt);if(!gf)continue;var JE=gf.videoId;pw=new O1(H.K());pw.playlistId=Po.playlistId;pw.playlistLength=Number(Po.videoCount)||0;pw.L=JE||null;pw.videoId=JE;var fW=Po.title;fW&&(pw.title=g.b_(fW));var bU=Po.shortBylineText;bU&&(pw.author=g.b_(bU));F1=NT.clickTrackingParams;pw.BL=aI(Po.thumbnail)}pw&&(F1&&(pw.sessionData={itct:F1}),DR.push(pw))}H.suggestions=DR}if($Q){H.gT=!!$Q.preferImmediateRedirect;H.au=H.au||!!$Q.webShowNewAutonavCountdown;H.n6=H.n6||!!$Q.webShowBigThumbnailEndscreen; if(H.au||H.n6){var lk=z||null,Jd=new Dm(H.K());Jd.videoId=$Q.videoId;var D$=$Q.videoTitle;if(D$){Jd.title=g.b_(D$);var Cw=D$.accessibility;if(Cw){var ka=Cw.accessibilityData;ka&&ka.label&&(Jd.ariaLabel=ka.label)}}var OC=$Q.byline;OC&&(Jd.author=g.b_(OC));var pW=$Q.publishedTimeText;pW&&(Jd.publishedTimeText=g.b_(pW));var GE=$Q.shortViewCountText;GE&&(Jd.shortViewCount=g.b_(GE));var gu=$Q.thumbnailOverlays;if(gu)for(var JJ=g.R(gu),Di=JJ.next();!Di.done;Di=JJ.next()){var y6=Di.value.thumbnailOverlayTimeStatusRenderer; if(y6)if(y6.style==="LIVE"){Jd.isLivePlayback=!0;break}else if(y6.style==="UPCOMING"){Jd.isUpcoming=!0;break}else if(y6.style==="DEFAULT"&&y6.text){Jd.lengthText=g.b_(y6.text);var eV=y6.text.accessibility;if(eV){var wi=eV.accessibilityData;wi&&wi.label&&(Jd.FN=wi.label||"")}break}}Jd.BL=aI($Q.background);var Lb=$Q.nextButton;if(Lb){var lR=Lb.buttonRenderer;if(lR){var s7=lR.navigationEndpoint;if(s7){var MF=g.X(s7,g.Xt);MF&&(Jd.tI=MF)}}}if($Q.topBadges){var UY=$Q.topBadges[0];if(UY){var xa=g.X(UY,cU7); xa&&xa.style==="BADGE_STYLE_TYPE_PREMIUM"&&(Jd.ssu=!0)}}var zy=$Q.alternativeTitle;zy&&(Jd.Rf=g.b_(zy));var gL={autonav:"1",playnext:String(B)};Jd.playlistId&&(gL.autoplay="1");if(lk){var qL,RP,WD,Ty,IG=(qL=lk.autoplay)==null?void 0:(RP=qL.autoplay)==null?void 0:(WD=RP.sets)==null?void 0:(Ty=WD[0])==null?void 0:Ty.autoplayVideo;if(IG){var Va=IG.clickTrackingParams;Va&&(gL.itct=Va);var SX=g.X(IG,g.Xt);SX&&(Jd.sG=SX)}}else if($Q){var FT,nq,fb,Lq=(FT=$Q.nextButton)==null?void 0:(nq=FT.buttonRenderer)== null?void 0:(fb=nq.navigationEndpoint)==null?void 0:fb.clickTrackingParams;Lq&&(gL.itct=Lq)}gL.itct||(gL.feature="related-auto");Jd.pQ=gL;H.suggestions||(H.suggestions=[]);H.To=Jd}$Q.countDownSecs!=null&&(H.N6=$Q.countDownSecs*1E3);$Q.countDownSecsForFullscreen!=null&&(H.sV=$Q.countDownSecsForFullscreen>=0?$Q.countDownSecsForFullscreen*1E3:-1);H.U("web_autonav_color_transition")&&$Q.watchToWatchTransitionRenderer&&(H.watchToWatchTransitionRenderer=g.X($Q.watchToWatchTransitionRenderer,Nmw))}var Az= j0U(H);if(Az){var yQ,t_,Xe,e0=Az==null?void 0:(yQ=Az[0])==null?void 0:(t_=yQ.endScreenVideoRenderer)==null?void 0:(Xe=t_.navigationEndpoint)==null?void 0:Xe.clickTrackingParams,kY=g.KR(H);e0&&kY&&(kY.sessionData={itct:e0})}H.Jm.currentVideoThumbnail&&(H.BL=aI(H.Jm.currentVideoThumbnail));var WR,ZX,C2,ge,L2,Ie=(WR=H.Jm)==null?void 0:(ZX=WR.contents)==null?void 0:(C2=ZX.twoColumnWatchNextResults)==null?void 0:(ge=C2.results)==null?void 0:(L2=ge.results)==null?void 0:L2.contents;if(Ie&&Ie[0]){var Nb= Ie[0].videoPrimaryInfoRenderer;Nb&&Nb&&Nb.subtitle&&(H.cV=g.b_(Nb.subtitle))}if(Ie&&Ie[1]){var je,Dg,cT,Zu,bL=(je=Ie[1].videoSecondaryInfoRenderer)==null?void 0:(Dg=je.owner)==null?void 0:(cT=Dg.videoOwnerRenderer)==null?void 0:(Zu=cT.thumbnail)==null?void 0:Zu.thumbnails;bL&&bL.length&&(H.profilePicture=bL[bL.length-1].url)}var hw=lO(E),nB,iOj=(nB=H.getWatchNextResponse())==null?void 0:nB.onResponseReceivedEndpoints;if(iOj)for(var qMq=g.R(iOj),CG=qMq.next();!CG.done;CG=qMq.next()){var gh=CG.value; g.X(gh,yp)&&(H.OA=g.X(gh,yp));var tw=g.X(gh,yU7),Rld=void 0;if((Rld=tw)==null?0:Rld.entityKeys)H.AD=tw.entityKeys||[],tw.visibleOnLoadKeys&&(H.visibleOnLoadKeys=tw.visibleOnLoadKeys)}if(H.U("web_key_moments_markers")){var Mms=g.b8.getState().entities,dww=g.i8("visibility_override","markersVisibilityOverrideEntity");var N4=q4(Mms,"markersVisibilityOverrideEntity",dww);H.O7=(N4==null?void 0:N4.videoId)===(H.videoId||hw)&&(N4==null?0:N4.visibilityOverrideMarkersKey)?N4.visibilityOverrideMarkersKey:H.visibleOnLoadKeys; H.visibleOnLoadKeys=[].concat(g.EC(H.O7))}}}; Wv=function(){}; bQT=function(H){var E=H===void 0?{}:H;H=E.De;var G=E.Gc;var P=E.lk;var Q=E.vO;E=E.IY;this.De=H;this.Gc=G;this.lk=P;this.vO=Q;this.IY=E}; MB=function(H,E,G,P){return RI(X9().L.L,function(){var Q=g.c4.apply(0,arguments);return THj(H,function(){return E.apply(G,Q)},P)})}; D8=function(H,E,G,P,Q){P===0||G.includes(P);var e=rL(H),w=J9(e,H,E,G,Q);w!==P&&(w&&(E=jP(H,E,w,void 0,Q)),e.set(G,P));return E}; qps=function(H,E,G){if(G!=null){switch(typeof G){case "string":iQQ(G)}iq(H,E,1);switch(typeof G){case "number":H=H.L;iM(G);Jp(H,RN);Jp(H,Js);break;case "bigint":G=BigInt.asUintN(64,G);G=new qH(Number(G&BigInt(4294967295)),Number(G>>BigInt(32)));H=H.L;E=G.L;Jp(H,G.W);Jp(H,E);break;default:G=iQQ(G),H=H.L,E=G.L,Jp(H,G.W),Jp(H,E)}}}; RQu=function(H,E){return H.C.has(E)?void 0:H.W.get(E)}; Y4=function(H){if(H.jA()&&!H.api.isEmbedsShortsMode()&&H.W6){var E=H.api.U("web_player_hide_overflow_button_if_empty_menu");!H.XZ||E&&!JUq(H.XZ)||rq(H.W6,H.XZ);!H.shareButton||E&&!BT(H.shareButton)||rq(H.W6,H.shareButton);!H.copyLinkButton||E&&!rUU(H.copyLinkButton)||rq(H.W6,H.copyLinkButton)}else{E=H.api.K().getWebPlayerContextConfig();if(H.W6){for(var G=H.W6,P=g.R(G.actionButtons),Q=P.next();!Q.done;Q=P.next())Q.value.detach();G.actionButtons=[]}H.searchButton&&!g.wa(H.bk.element,H.searchButton.element)&& H.searchButton.mx(H.bk.element);!H.XZ||(E==null?0:E.hideTopWatchNextButton)||g.wa(H.bk.element,H.XZ.element)||H.XZ.mx(H.bk.element);!H.shareButton||(E==null?0:E.hideTopShareButton)||g.wa(H.bk.element,H.shareButton.element)||H.shareButton.mx(H.bk.element);H.copyLinkButton&&!g.wa(H.bk.element,H.copyLinkButton.element)&&H.copyLinkButton.mx(H.bk.element)}}; Ypn=function(H,E,G,P){var Q=Hyu(cY,G);Q!==null&&Q.R3!==E&&(H.Xi(Q),Q=null);Q||(E=H.yK(G,Yv(),!1,E),cY.W.length==0&&(X9().G=79463069),BmM([E]),Q=E,Q.D=BK(H),P&&(Q.BF=P));return Q}; XQ=function(H){this.cz=3;this.mM=H;this.defaultValue=0;this.oL="double"}; Zm=function(H){this.value=H}; XS1=function(H){if(navigator.mediaSession.setPositionState)if(H.api.U("web_player_media_session_infinity")&&H.api.getVideoData().isLivePlayback)try{navigator.mediaSession.setPositionState({duration:Infinity})}catch(P){}else{var E=H.api.getProgressState().seekableEnd,G=Math.min(H.api.getCurrentTime(),E);E&&Number.isFinite(G)&&navigator.mediaSession.setPositionState({duration:E,playbackRate:H.api.getPlaybackRate(),position:G})}}; CR=function(){$4.apply(this,arguments)}; Du=function(H){this.value=H}; LR=function(H){g.E4.call(this);var E=this;this.T=this.W=0;this.UZ=H!=null?H:{c6:function(Q,e){return setTimeout(Q,e)}, gU:function(Q){clearTimeout(Q)}}; var G,P;this.L=(P=(G=window.navigator)==null?void 0:G.onLine)!=null?P:!0;this.G=function(){return g.L(function(Q){return g.U(Q,gq(E),0)})}; window.addEventListener("offline",this.G);window.addEventListener("online",this.G);this.T||this.Wo()}; X4=function(H,E,G){return H=tz(H,E[0],E[1],G?1:2)}; nO=function(H,E){if(H===E)H=!0;else if(Array.isArray(H)&&Array.isArray(E))H=g.l8(H,E,nO);else if(g.rW(H)&&g.rW(E))a:if(g.Gz(H).length!=g.Gz(E).length)H=!1;else{for(var G in H)if(!nO(H[G],E[G])){H=!1;break a}H=!0}else H=!1;return H}; U1=function(H,E){var G=H.W[E];G&&G.forEach(function(P){try{P()}catch(Q){}}); (G=H.L[E])&&G.forEach(function(P){P()}); H.L[E]=[]}; g.x4=function(H){var E=new wu(new hJ([D5(decodeURIComponent(H))]));H=zb(E,2);E=hU(E,4);var G=ZQw[E];if(typeof G==="undefined")throw H=new g.LN("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:E}),g.h3(H),H;return{JS:E,entityType:G,entityId:H}}; zF=function(H){this.value=H}; jV=function(H,E,G){var P=g.TF(H,{playerType:G});P&&(E=P.dV(E),G&&H.getPresentingPlayerType()!==G||Vp(H,"cuerangesremoved",E))}; Se=function(H,E,G,P){Mm.call(this);var Q=this;this.G=-1;this.L={};this.D=new g.Wt(this.T,0,this);g.d(this,this.D);this.W=new g.Wt(function(){Q.Iu()||(Q.D.start(Math.random()*G),Q.W.start(E))},H,this); g.d(this,this.W);P.subscribe("fairplay_next_need_key_info",this.C,this)}; FQ=function(H){this.VN=tz(H)}; fR=function(H){for(;H.L.length&&H.L[0].IW(H.mj());){var E=H.L.shift();Cwu(H,E)}H.L.length&&Cwu(H,H.L[0])}; Chj=function(H,E,G,P){G=G===void 0?!1:G;P=P===void 0?!1:P;var Q=[];Q.push({offset:0,transform:"translateX("+(H.W===-1?20:-20)+"px)",opacity:G?"0":"1"});G&&Q.push({offset:.5,opacity:"1"});Q.push({offset:1,transform:"translateX(0)",opacity:"1"});G=E.animate(Q,{duration:400,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"});E=E.querySelector("path");Q=[];var e={offset:0,d:H.W===-1?'path("M 18 4 L 18 16 L 18 28")':'path("M 4 4 L 4 16 L 4 28")'};P&&(e.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))");Q.push(e); P&&Q.push({offset:.8,filter:"drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.8))"});H={offset:1,d:H.W===-1?'path("M 18 4 L 6 16 L 18 28")':'path("M 4 4 L 16 16 L 4 28")'};P&&(H.filter="drop-shadow(0 0 0.5px rgba(0, 0, 0, 0))");Q.push(H);E.animate(Q,{duration:333,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)",fill:"forwards"});return G}; JJj=function(H){return aiq(H,!0)}; UN1=function(H,E){var G=E.cancelRenderer&&E.cancelRenderer.buttonRenderer||null;G&&(H.L=new uO(H.api,H.layoutId,H.interactionLoggingClientData,H.vF,["ytp-ad-feedback-dialog-close-button"],"button"),g.d(H,H.L),H.L.init(PL("button"),G,H.macros),H.L.listen("click",H.lO,H),H.L.mx(H.element));E.title&&(G=g.b_(E.title),H.updateValue("title",G));E.reasonsTitle&&(G=g.b_(E.reasonsTitle),H.updateValue("reasonsTitle",G));E.reasons&&g6u(H,E.reasons);E.cancelLabel&&(G=g.b_(E.cancelLabel),H.updateValue("cancelLabel", G),g.Pm(H.T,"click",function(){return H.lO()})); E.confirmLabel&&(G=g.b_(E.confirmLabel),H.updateValue("confirmLabel",G),g.Pm(H.N,"click",function(){return LEl(H)})); E.undoRenderer&&lll(H,E.undoRenderer)}; g.pR=function(){var H=xNw();if(!H)return{};try{var E=H.get("yt-player-lv");return JSON.parse(E||"{}")}catch(G){return{}}}; g.H$=function(H,E){H=g.R(H.Yp);for(var G=H.next();!G.done;G=H.next())if(G=G.value,E>=G.start&&E<=G.end)return!0;return!1}; ca=function(){}; g.Ey=function(H){H.L=Math.min(H.T,H.L*H.B);H.G=Math.min(H.T,H.L+(H.C?Math.round(H.C*(Math.random()-.5)*2*H.L):0));H.W++}; Tml=function(H,E,G){G=G===void 0?{}:G;return zQv(H,E,!1,G)}; VLq=function(H){H=Number(H.driftRecoveryMs);return isNaN(H)||H<=0?null:H}; E8=function(H,E,G){return new cL(H,E,G)}; mk=function(H){for(;H.L.L;)try{var E=H.W(H.L);if(E)return H.L.B=!1,{value:E.value,done:!1}}catch(G){H.L.W=void 0,Ar(H.L,G)}H.L.B=!1;if(H.L.G){E=H.L.G;H.L.G=null;if(E.RW)throw E.uc;return{value:E.return,done:!0}}return{value:void 0,done:!0}}; var SpM=function(){return pH[h[7]](this,48)}; Gk=function(H,E,G){this.L=H;this.reason=E;this.token=G;this.videoId=void 0}; AG=function(H){var E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n;return g.L(function(O){switch(O.L){case 1:E=void 0;H.D++;G=new g.M$;H.aM instanceof P$&&H.aM.D.push(G.promise);if(!H.yr){O.bJ(2);break}P=new g.M$;setTimeout(function(){return void P.resolve()}); return g.U(O,P.promise,2);case 2:return Q=H.logger.share(),g.EY(O,4,5),H.state=5,e={},w=[],g.U(O,fA(H.aM.snapshot({mY:e,Ba:w}),H.jO.L8p,function(){return Promise.reject(new jg(15,"MDA:Timeout"))}),7); case 7:t=O.W;if(H.Iu())throw new jg(H.L?20:32,"MDA:Disposed");k=w[0];H.state=6;return g.U(O,fA(FEt(H.TG,Q,t),H.jO.zr,function(){return Promise.reject(new jg(10,"BWB:Timeout"))}),8); case 8:W=O.W;if(H.Iu())throw new jg(H.L?20:32,"BWB:Disposed");H.state=7;E=$$(Q,function(){var N=flM(H,W,G,k);N.G.promise.then(function(){return void H.T()}); return N},"i"); case 5:g.ED(O);Q.dispose();g.GN(O,6);break;case 4:I=g.vo(O);(A=E)==null||A.dispose();if(!H.W){m=pSv(H,I);G.resolve();var q;if(q=H.aM instanceof P$&&H.D<2)a:if(I instanceof jg)q=I.code!==32&&I.code!==20&&I.code!==10;else{if(I instanceof DJ)switch(I.code){case 2:case 13:case 14:case 4:break;default:q=!1;break a}q=!0}if(q)return u=(1+Math.random()*.25)*(H.L?6E4:1E3),v=setTimeout(function(){return void H.T()},u),H.addOnDisposeCallback(function(){return void clearTimeout(v)}),O.return(); H.W=m}Q.IF(H.L?13:14);H.G.reject(H.W);return O.return();case 6:H.state=8,H.D=0,(n=H.L)==null||n.dispose(),H.L=E,H.G.resolve(),g.P2(O)}})}; g.Q$=function(H,E,G){G=G===void 0?350:G;g.D.call(this,{J:"div",QN:["ytp-time-display","notranslate"],j:{"aria-label":"{{timeDisplayAriaLabel}}",tabindex:"0"},V:[{J:"span",Y:"ytp-time-wrapper",V:[{J:"div",Y:"ytp-time-contents",V:[{J:"span",Y:"ytp-time-clip-icon",iJ:"{{clipicon}}",j:{"aria-label":"Clip"}},{J:"span",Y:"ytp-time-current",iJ:"{{currenttime}}"},{J:"span",Y:"ytp-time-separator",iJ:" / "},{J:"span",Y:"ytp-time-duration",iJ:"{{duration}}"}]}]},{J:"span",Y:"ytp-clip-watch-full-video-button-separator", iJ:"\u2022"},{J:"span",Y:"ytp-clip-watch-full-video-button",iJ:"{{watchfullvideo}}"}]});var P=this;this.api=H;this.p_=G;this.liveBadge=new g.D({J:"button",QN:["ytp-live-badge","ytp-button"],j:{disabled:"true"},iJ:"{{content}}"});this.L=null;this.iZ=this.W=!1;this.N=this.B=this.C=null;this.isPremiere=!1;this.T=this.D=null;this.G=!1;this.PT=this.liveIndicatorText=null;this.WF=this.HF("ytp-clip-watch-full-video-button");this.liveBadge.setContent("Live");g.d(this,this.liveBadge);this.api.U("web_player_updated_entrypoint")|| this.api.U("delhi_modern_web_player")?this.liveBadge.mx(this.HF("ytp-time-contents")):this.liveBadge.mx(this.element);this.tooltip=E.Zi();this.liveBadge.listen("click",this.onClick.bind(this));this.api.U("delhi_modern_web_player")&&(E=this.HF("ytp-time-wrapper"),this.Z(E,"click",this.xCJ),E.classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown()));this.Z(this.WF,"click",this.Ezm);this.Z(this.api,"serverstitchedvideochange",function(){HBn(P,P.api.getProgressState().isAtLiveHead)}); this.Z(H,"presentingplayerstatechange",this.Ix);this.Z(H,"appresize",this.Ix);this.Z(H,"onLoopRangeChange",this.onLoopRangeChange);this.Z(H,"videodatachange",this.onVideoDataChange);(E=H.getVideoData())&&this.updateVideoData(E);this.Ix();ESM(this,H.getLoopRange())}; GmM=function(H,E,G){gi&&gi.measure&&(H.startsWith("measure_")||(H="measure_"+H),G?gi.measure(H,E,G):E?gi.measure(H,E):gi.measure(H))}; Gy=function(H){this.L=H||g.lU.document||document}; s8=function(){this.W={};this.L=null}; o1=function(H){this.value=H}; wp=function(H,E,G){E=E===void 0?-1:E;G=G===void 0?Infinity:G;for(var P=E,Q=G,e=g.R(H.T),w=e.next();!w.done;w=e.next()){var t=g.R(w.value);w=t.next().value;t=t.next().value;t.tD>=P&&t.target&&t.target.gV<=Q&&(H.L.removeCueRange(w),H.T.delete(w))}P=E;Q=G;e=[];w=g.R(H.W);for(t=w.next();!t.done;t=w.next())if(t=t.value,t.HO>=P&&t.gV<=Q){var k=H;k.B===t&&WS(k);TV(k,t)&&k.app.sj()}else e.push(t);H.W=e;P=Mb(H,E/1E3);E=P.ud;P=P.nK;E&&(P*=1E3,Pcl(H,E,P,E.gV===E.HO+E.durationMs?E.HO+P:E.gV));(E=Mb(H,G/1E3).ud)&& eN(H,"Invalid clearEndTimeMs="+G+" that falls during playback={timelinePlaybackId="+(E.U9+" video_id="+E.playerVars.video_id+" durationMs="+E.durationMs+" enterTimeMs="+E.HO+" parentReturnTimeMs="+E.gV+"}.Child playbacks can only have duration updated not their start."))}; $J=function(H,E){return!H.api.isInline()&&!Q2d(H,hD(E))&&g.$6(E)}; tD=function(H){this.L=H;this.W=null}; s2n=function(H){g.D.call(this,{J:"div",Y:"ytp-gated-actions-overlay",V:[{J:"div",Y:"ytp-gated-actions-overlay-background",V:[{J:"div",Y:"ytp-gated-actions-overlay-background-overlay"}]},{J:"button",QN:["ytp-gated-actions-overlay-miniplayer-close-button","ytp-button"],j:{"aria-label":"Close"},V:[g.jK()]},{J:"div",Y:"ytp-gated-actions-overlay-bar",V:[{J:"div",Y:"ytp-gated-actions-overlay-text-container",V:[{J:"div",Y:"ytp-gated-actions-overlay-title",iJ:"{{title}}"},{J:"div",Y:"ytp-gated-actions-overlay-subtitle", iJ:"{{subtitle}}"}]},{J:"div",Y:"ytp-gated-actions-overlay-button-container"}]}]});var E=this;this.api=H;this.background=this.HF("ytp-gated-actions-overlay-background");this.W=this.HF("ytp-gated-actions-overlay-button-container");this.L=[];this.Z(this.HF("ytp-gated-actions-overlay-miniplayer-close-button"),"click",function(){E.api.n_("onCloseMiniplayer")}); this.hide()}; oS1=function(H,E,G){for(var P=H.B,Q=H.L[0],e=H.L[1],w=H.L[2],t=H.L[3],k=H.L[4],W=H.L[5],I=H.L[6],A=H.L[7],m,u,v,n=0;n<64;)n<16?(P[n]=v=E[G]<<24|E[G+1]<<16|E[G+2]<<8|E[G+3],G+=4):(m=P[n-2],u=P[n-15],v=P[n-7]+P[n-16]+((m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),P[n]=v),m=A+kJ[n]+v+((k>>>6|k<<26)^(k>>>11|k<<21)^(k>>>25|k<<7))+(k&W^~k&I),u=((Q>>>2|Q<<30)^(Q>>>13|Q<<19)^(Q>>>22|Q<<10))+(Q&e^Q&w^e&w),A=m+u,t+=m,n++,n<16?(P[n]=v=E[G]<<24|E[G+1]<<16|E[G+2]<<8|E[G+3],G+=4):(m= P[n-2],u=P[n-15],v=P[n-7]+P[n-16]+((m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),P[n]=v),m=I+kJ[n]+v+((t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7))+(t&k^~t&W),u=((A>>>2|A<<30)^(A>>>13|A<<19)^(A>>>22|A<<10))+(A&Q^A&e^Q&e),I=m+u,w+=m,n++,n<16?(P[n]=v=E[G]<<24|E[G+1]<<16|E[G+2]<<8|E[G+3],G+=4):(m=P[n-2],u=P[n-15],v=P[n-7]+P[n-16]+((m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),P[n]=v),m=W+kJ[n]+v+((w>>>6|w<<26)^(w>>>11|w<<21)^(w>>>25|w<<7))+(w&t^ ~w&k),u=((I>>>2|I<<30)^(I>>>13|I<<19)^(I>>>22|I<<10))+(I&A^I&Q^A&Q),W=m+u,e+=m,n++,n<16?(P[n]=v=E[G]<<24|E[G+1]<<16|E[G+2]<<8|E[G+3],G+=4):(m=P[n-2],u=P[n-15],v=P[n-7]+P[n-16]+((m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10)+((u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3),P[n]=v),m=k+kJ[n]+v+((e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7))+(e&w^~e&t),u=((W>>>2|W<<30)^(W>>>13|W<<19)^(W>>>22|W<<10))+(W&I^W&A^I&A),v=A,A=t,t=v,v=I,I=w,w=v,v=W,W=e,e=v,k=Q+m,Q=m+u,n++;H.L[0]=Q+H.L[0]|0;H.L[1]=e+H.L[1]|0;H.L[2]=w+H.L[2]|0;H.L[3]= t+H.L[3]|0;H.L[4]=k+H.L[4]|0;H.L[5]=W+H.L[5]|0;H.L[6]=I+H.L[6]|0;H.L[7]=A+H.L[7]|0}; W$=function(H){iG.call(this,"measurable_impression",H)}; g.ees=function(H,E,G){var P=G.T,Q=[],e=[],w=G.U("html5_shorts_onesie_mismatched_fix");H=H.hE();var t=I1.concat(e6T);w&&(t=I1.concat(wjq));G.U("html5_early_media_for_drm")&&(t=t.concat(h6U),G.U("allow_vp9_1080p_mq_enc")&&t.push($9M));var k=[].concat(g.EC(tnl));G.U("html5_iamf_audio_onesie_fmt")&&k.push(["773"]);t=g.R(t);for(var W=t.next();!W.done;W=t.next()){W=g.R(W.value);for(var I=W.next();!I.done;I=W.next()){I=I.value;var A=Vl(I,H&&w);if(A&&A.video){var m=g.hE(G.experiments,"html5_drm_byterate_soft_cap"); if(!(m>0&&kmM(A)&&A.Xo>m)&&Sk(E,A,P)===!0){Q.push({videoCodec:$Ot[AD[I]],maxWidth:A.video.width,maxHeight:A.video.height,maxFramerate:A.video.fps});break}}}}w=g.R(k);for(H=w.next();!H.done;H=w.next())for(H=g.R(H.value),k=H.next();!k.done;k=H.next())if(k=k.value,(t=Wwj(k))&&t.audio&&(G.U("html5_onesie_51_audio")||!mi(t)&&!us(t))&&Sk(E,t,P)===!0){e.push({audioCodec:wzl[AD[k]],numChannels:t.audio.numChannels});break}return{videoFormatCapabilities:Q,audioFormatCapabilities:e}}; nW=function(){var H=/Chrome\/(\d+)/.exec(g.u0());return H?parseFloat(H[1]):NaN}; v$=function(H){return H.width*H.height}; MW=function(H){H.readyState=4;H.D=null;H.G=null;H.B=null;rw(H)}; dp=function(H){H=Igj(H);Ra.call(this,H.length?H[H.length-1]:new VV(md,0));this.G=H;this.W=null}; hp=function(H){for(var E=H.videoData.L,G=g.R(Object.entries({cpn:H.videoData.clientPlaybackNonce,c:H.X.L.c,cver:H.X.L.cver})),P=G.next();!P.done;P=G.next()){var Q=g.R(P.value);P=Q.next().value;Q=Q.next().value;for(var e=g.R(Object.values(E.L)),w=e.next();!w.done;w=e.next())A$T(w.value.Du,P,Q);e=void 0;(e=E.L_)==null||A$T(e,P,Q)}P=H.X;G=H.videoData;Q=H.mZ;Q=Q===void 0?P.schedule:Q;E=new g.m9U(P);e=u6v({hasSubfragmentedFmp4:G.hasSubfragmentedFmp4,KQ:G.KQ});E.N=e;e=Q;e=e===void 0?P.schedule:e;E.PF=G.maxReadAheadMediaTimeMs/ 1E3||E.PF;e.G.BK()===e.policy.G?E.U2=10:E.U2=G.minReadAheadMediaTimeMs/1E3||E.U2;E.yA=G.readAheadGrowthRateMs/1E3||E.yA;G.SO&&(E.C=!0,E.hm=!0);E.hH=!Dn();g.vV(P)||!Dn()?(E.eR=8388608,E.s7=524288,E.RO=5,E.Yp=1048576,E.kc=1.5,E.Xo=4587520,nU()&&(E.Xo=786432),E.L_*=1.1,E.Jm*=1.1,E.bx=!0):P.W&&(E.L_*=1.3,E.Jm*=1.3);g.pC&&g.aD("crkey")&&(e=P.L.cmodel==="CHROMECAST/ANCHOVY",E.eR=20971520,E.s7=1572864,e&&(E.Xo=812500,E.hC=1E3,E.Pc=5,E.Yp=2097152));g.a1&&(E.bx=!0);P.supportsGaplessAudio()||(E.ql=!1);KW&& (E.qC=!0);e=Q;e=e===void 0?P.schedule:e;E.n6=P.U("html5_peak_shave");G.fetchType==="onesie"&&P.U("html5_disable_peak_shave_for_onesie")&&(E.n6=!1);var t;Q=(t=G.L)==null?void 0:O8(t);if(Bm(G)){E.PL=!0;E.fL||(E.o2=!0);E.WO=!0;E.BD=!0;E.hV=!0;if(G.latencyClass==="ULTRALOW"||G.latencyClass==="LOW"&&!P.U("html5_disable_low_pipeline"))E.e2=2,E.CU=4;E.De=G.defraggedFromSubfragments;g.eP(G)&&(E.G6=!1);E.j2=g.KU(P)}G.isAd()&&(E.sZ=0,E.zo=0);E.jd=P.U("html5_ultra_low_latency_subsegment_readahead")&&G.latencyClass=== "ULTRALOW";E.G=P.z6();t=0;P.U("html5_live_use_alternate_bandwidth_window_sizes")&&(t=e.policy.L,G.isLivePlayback&&(t=g.hE(P.experiments,G.latencyClass==="ULTRALOW"?"html5_live_ultra_low_latency_bandwidth_window":G.isLowLatencyLiveStream?"html5_live_low_latency_bandwidth_window":"html5_live_normal_latency_bandwidth_window")||t));w=t;e.W.D=Bm(G)?.5:0;if(!e.policy.W&&w&&(t=e.G,e=Math.round(w*t.resolution),e!==t.L)){w=Array(e);var k=Math.min(e,t.G?t.L:t.W),W=t.W-k;W<0&&(W+=t.L);for(var I=0;I0&&(E.hj=G.zc));E.Eu=G.P9;E.lV=jN(P,{},G.G||void 0,c$(G));E.au=As(G)&&(g.qt(P)||g.NW(P));ip(G)&&(E.T=!0,E.PW=P.U("html5_estimate_live_partial_slice_duration"),g.vV(P)&&!g.aa()&&P.U("html5_force_audio_to_cover_video_keyframe")?E.dP=!1:E.dP=!0,t=P.experiments.Bo(), E.Kz||G.isLivePlayback||!t.L.A7(Mn1)||(E.uX=!0,t=t.L.A7(d9w),E.yw=t),P.U("html5_sabr_report_partial_segment_estimated_duration")&&(E.Wm=!0),E.L=!0,E.P_=P.U("html5_trigger_loader_when_idle_network"),E.y_=P.U("html5_sabr_parse_live_metadata_playback_boundaries"),E.xZ=P.U("html5_consume_onesie_next_request_policy_for_sabr"),E.mH=P.U("html5_sabr_report_next_ad_break_time"),E.CZ=P.U("html5_log_high_res_buffer_timeline")&&P.z6(),E.Ll=P.U("html5_remove_stuck_slices_beyond_max_buffer_limits"),E.Le=P.U("html5_gapless_sabr_btl_last_slice")&& OV(G),E.uZ=P.U("html5_reset_last_appended_slice_on_seek")&&OV(G),Bm(G)?(E.Fh=!0,E.KZ=P.U("html5_disable_variability_tracker_for_live"),E.MZ=!0,P.U("html5_simplified_backup_timeout_sabr_live")&&(E.vD=!0,E.hC=E.YE)):E.AG=P.U("html5_probe_request_on_sabr_request_progress"),E.kG=P.U("html5_serve_start_seconds_seek_for_post_live_sabr"),E.AT=P.U("html5_flush_index_on_updated_timestamp_offset"),E.p_=ip(G),E.CL=P.U("html5_ignore_partial_segment_from_live_readahead"),P.U("html5_include_partial_segment_for_jumbo_ll")&& ye(G)&&(E.CL=!1),E.bX=P.U("html5_use_non_active_broadcast_for_post_live"),E.T$=P.U("html5_use_centralized_player_time"),E.jT=P.U("html5_log_centralized_player_time"),E.v6=P.U("html5_consume_onesie_sabr_seek"),E.WF=P.U("html5_enable_sabr_seek_loader_refactor"),E.OA=g.hE(P.experiments,"html5_sabr_quota_exceeded_retry_buffer_health_secs"),E.Hc=P.U("html5_update_segment_start_time_from_media_header"),G.enableServerStitchedDai&&(E.W=!0,E.YJ=P.U("html5_reset_server_stitch_state_for_non_sabr_seek"),E.wi= P.U("html5_remove_ssdai_append_pause")&&!G.mV(),E.gt=P.U("html5_ssdai_log_ssevt_in_loader")||P.U("html5_ssdai_log_ssevt_in_loader_200ms")||P.U("html5_ssdai_log_ssevt_in_loader_timers")||P.U("html5_ssdai_log_ssevt_in_loader_cuerange"),P.U("html5_ssdai_log_ssevt_in_loader_timers")?E.FI=1:P.U("html5_ssdai_log_ssevt_in_loader_200ms")?E.FI=3:P.U("html5_ssdai_log_ssevt_in_loader_cuerange")&&(E.FI=0)),E.AA=P.z6()||G.mV(),E.N6=G.T6()&&P.U("html5_prebuffer_instream_media_live")&&P.U("html5_report_prefetch_requests"), E.Kb=!G.T6()&&P.U("html5_prebuffer_instream_media_vod")&&P.U("html5_report_prefetch_requests"));E.Fa=g.D9n(G);xb(P.T,ll.BITRATE)&&(E.Xo=NaN);if(t=g.hE(P.experiments,"html5_request_size_max_kb"))E.Yp=t*1024;P.T.G?E.JD="; "+ll.EXPERIMENTAL.name+"=allowed":P.U("html5_enable_cobalt_tunnel_mode")&&g.aa()&&(P=ll.TUNNELMODE,E.JD="; "+P.name+"="+P.valid);G=G.serverPlaybackStartConfig;(G==null?0:G.enable)&&(G==null?0:G.playbackStartPolicy)&&(E.vt=!0,y$(E,G.playbackStartPolicy,2));G=nSl(H);H.RQ.removeAll(); a:{P=H.O9.b3;if(t=H.videoData.videoId)if(Q=P.L.get(t)){P.L.remove(t);P=Q;break a}P=void 0}H.loader=new g.bs(H,H.mZ,E,H.videoData.L,H.videoData.G,is(H),G,H.videoData.enableServerStitchedDai,P,H.videoData.L_);E=H.videoData.U("html5_disable_preload_for_ssdai_with_preroll")&&H.videoData.isLivePlayback&&H.EZ()?!0:H.a5&&qW(H);H.loader.initialize(H.getCurrentTime(),is(H),E);H.videoData.probeUrl&&(H.loader.au=H.videoData.probeUrl);if(H.qE.length||H.a5)H.videoData.cotn||R1(H,!1);JD(H.tG,H.loader);H.ze&&(agQ(H.loader, new g.rp(H.ze)),H.g5("sdai",{sdl:1}));g.B$(H.videoData)&&(H=H.loader,H.policy.To=H.policy.yP)}; Vyu=function(){return Re()?!1:ih("Trident")||ih("MSIE")}; OBq=function(H){var E={};var G=g.Gl()-H.T;E=(E.ptlt=G,E);(G=H.W)&&(E.pnk=G);(G=H.G)&&(E.pnc=G);(G=H.D)&&(E.pnmm=G);(H=H.L)&&(E.pns=H);return E}; YJ=function(H,E,G,P,Q,e){Q=Q===void 0?[]:Q;e=e===void 0?"toggle-button":e;var w=PL("ytp-ad-toggle-button-input"),t={role:"button","aria-label":"{{tooltipText}}"};H.K().experiments.xp("fix_h5_toggle_button_a11y")&&(t.tabindex="0");t.role="checkbox";s9.call(this,H,{J:"div",QN:["ytp-ad-toggle-button"].concat(Q),V:[{J:"label",Y:"ytp-ad-toggle-button-label",j:{"for":w},V:[{J:"span",Y:"ytp-ad-toggle-button-icon",j:t,V:[{J:"span",Y:"ytp-ad-toggle-button-untoggled-icon",iJ:"{{untoggledIconTemplateSpec}}"}, {J:"span",Y:"ytp-ad-toggle-button-toggled-icon",iJ:"{{toggledIconTemplateSpec}}"}]},{J:"input",Y:"ytp-ad-toggle-button-input",j:{id:w,type:"checkbox"}},{J:"span",Y:"ytp-ad-toggle-button-text",iJ:"{{buttonText}}"},{J:"span",Y:"ytp-ad-toggle-button-tooltip",iJ:"{{tooltipText}}"}]}]},e,E,G,P);this.D=this.HF("ytp-ad-toggle-button");this.L=this.HF("ytp-ad-toggle-button-input");this.W=this.HF("ytp-ad-toggle-button-icon");this.N=this.HF("ytp-ad-toggle-button-untoggled-icon");this.T=this.HF("ytp-ad-toggle-button-toggled-icon"); this.PF=this.HF("ytp-ad-toggle-button-text");this.G=null;this.WF=!1;this.hide()}; Xz=function(H,E){return g.VS(H.L,function(G){return G.R3==E})}; g.CU=function(H){g.D.call(this,{J:"div",Y:"ytp-more-videos-view",j:{tabIndex:"-1"}});var E=this;this.api=H;this.W=!0;this.G=new g.Z0(this);this.L=[];this.suggestionData=[];this.columns=this.containerWidth=this.B=this.D=this.scrollPosition=0;this.title=new g.D({J:"h2",Y:"ytp-related-title",iJ:"{{title}}"});this.previous=new g.D({J:"button",QN:["ytp-button","ytp-previous"],j:{"aria-label":"Show previous suggested videos"},V:[g.Zn()]});this.C=new g.kC(function(G){E.suggestions.element.scrollLeft=-G}); this.next=new g.D({J:"button",QN:["ytp-button","ytp-next"],j:{"aria-label":"Show more suggested videos"},V:[g.sx()]});g.d(this,this.G);this.T=H.K().D;g.d(this,this.title);this.title.mx(this.element);this.suggestions=new g.D({J:"div",Y:"ytp-suggestions"});g.d(this,this.suggestions);this.suggestions.mx(this.element);g.d(this,this.previous);this.previous.mx(this.element);this.previous.listen("click",this.Nh,this);g.d(this,this.C);Kwn(this);g.d(this,this.next);this.next.mx(this.element);this.next.listen("click", this.Mh,this);this.G.Z(this.api,"appresize",this.h7);this.G.Z(this.api,"fullscreentoggled",this.C4);this.G.Z(this.api,"videodatachange",this.onVideoDataChange);this.h7(this.api.NZ().getPlayerSize());this.onVideoDataChange()}; gp=function(H,E,G){PC.call(this,H,E,G)}; j2t=function(H,E,G,P){var Q=E*2,e=G*2;return H[Q]0&&pU<=2.3;k=E?E.useNativeControls:H.use_native_controls; this.B=g.L3(this)&&this.W;W=this.W&&!this.B;k=g.HZ(this)||!t&&BY(W,k)?"3":"1";this.disableOrganicUi=!(E==null||!E.disableOrganicUi);W=E?E.controlsType:H.controls;this.controlsType=this.disableOrganicUi||W==="0"||W===0?"0":k;this.CL=this.W;this.color=Eh("red",E?E.progressBarColor:H.color,r$U);this.WN=this.controlsType==="3";this.U2=!this.D;this.Vf=(k=!this.U2&&!Fz(this)&&!this.WF&&!this.C&&!SN(this))&&!this.WN&&this.controlsType==="1";this.ox=g.nb(this)&&k&&this.controlsType==="0"&&!this.Vf&&!(E== null?0:E.embedsEnableEmc3ds);this.e2=this.Cv=t;this.ML=(this.controlsType==="3"||this.W||BY(!1,H.use_media_volume))&&!this.B;this.X7=fB&&!g.Gp(601)?!1:!0;this.KZ=this.D||!1;this.yS=Fz(this)?"":(this.loaderUrl||H.post_message_origin||"").substring(0,128);this.widgetReferrer=qc("",E?E.widgetReferrer:H.widget_referrer);var I;E?E.disableCastApi&&(I=!1):I=H.enablecastapi;I=!this.N||BY(!0,I);t=!0;E&&E.disableMdxCast&&(t=!1);this.xx=this.U("enable_cast_for_web_unplugged")&&g.Rp(this)&&t||g.qt(this)&&t|| I&&t&&this.controlsType==="1"&&!this.W&&(Fz(this)||g.nb(this)||g.PZ(this));this.cV=!!window.document.pictureInPictureEnabled||F6();I=E?!!E.supportsAutoplayOverride:BY(!1,H.autoplayoverride);this.PL=!(this.W&&!g.L3(this))&&!g.aD("nintendo wiiu")||I;this.hj=(E?!!E.enableMutedAutoplay:BY(!1,H.mutedautoplay))&&!1;I=(Fz(this)||SN(this))&&this.playerStyle==="blazer";this.zc=E?!!E.disableFullscreen:!BY(!0,H.fs);t=g.lK(g.CW(this))&&g.L3(this);this.au=!this.zc&&(I||g.Qu())&&!t;this.PW=this.U("html5_picture_in_picture_logging_onresize"); var A;this.tN=(A=g.hE(this.experiments,"html5_picture_in_picture_logging_onresize_ratio"))!=null?A:.33;this.wH=this.U("html5_picture_in_picture_blocking_onresize");this.F2=this.U("html5_picture_in_picture_blocking_ontimeupdate");this.AA=this.U("html5_picture_in_picture_blocking_document_fullscreen");this.Le=this.U("html5_picture_in_picture_blocking_standard_api");A=du()&&xJ(58)&&!mD();I=r3||typeof MediaSource==="undefined";this.cD=this.U("uniplayer_block_pip")&&(A||I)||this.wH||this.F2||this.Le;A= g.L3(this)&&!this.jh;var m;E?E.disableRelatedVideos!==void 0&&(m=!E.disableRelatedVideos):m=H.rel;this.WO=A||BY(!this.C,m);this.CZ=BY(!1,E?E.enableContentOwnerRelatedVideos:H.co_rel);this.L_=mD()&&pU>0&&pU<=4.4?"_top":"_blank";this.g6=g.PZ(this);this.zo=BY(this.playerStyle==="blazer",E?E.enableCsiLogging:H.enablecsi);switch(this.playerStyle){case "blogger":m="bl";break;case "discover-ads":m="dd";break;case "gmail":m="gm";break;case "gac":m="ga";break;case "ads-preview":m="ap";break;case "books":m= "gb";break;case "docs":case "flix":m="gd";break;case "duo":m="gu";break;case "google-live":m="gl";break;case "google-one":m="go";break;case "play":case "play-ads":m="gp";break;case "chat":m="hc";break;case "hangouts-meet":m="hm";break;case "photos-edu":case "picasaweb":m="pw";break;default:m="yt"}this.p_=m;this.E7=qc("",E?E.authorizedUserIndex:H.authuser);this.dP=g.L3(this)&&(this.V8||!Bws()||this.eR);var u;E?E.disableWatchLater!==void 0&&(u=!E.disableWatchLater):u=H.showwatchlater;this.gt=((m=!this.dP)|| !!this.E7&&m)&&BY(!this.WF,this.N?u:void 0);this.Fa=E?E.isMobileDevice||!!E.disableKeyboardControls:BY(!1,H.disablekb);this.loop=BY(!1,H.loop);this.pageId=qc("",E?E.initialDelegatedSessionId:H.pageid);this.YE=BY(!0,H.canplaylive);this.L1=2;this.TP=BY(!1,H.livemonitor);this.disableSharing=BY(this.C,E?E.disableSharing:H.ss);this.sV=ufq(E&&this.U("fill_video_container_size_override_from_wpcc")?E.videoContainerOverride:H.video_container_override);this.mute=E?!!E.startMuted:BY(!1,H.mute);this.storeUserVolume= !this.mute&&BY(this.controlsType!=="0",E?E.storeUserVolume:H.store_user_volume);u=E?E.annotationsLoadPolicy:H.iv_load_policy;this.annotationsLoadPolicy=this.controlsType==="3"?3:Eh(void 0,u,sh);this.captionsLanguagePreference=E?E.captionsLanguagePreference||"":qc("",H.cc_lang_pref);u=Eh(2,E?E.captionsLanguageLoadPolicy:H.cc_load_policy,sh);this.controlsType==="3"&&u===2&&(u=3);this.sZ=u;this.AG=E?E.hl||"en_US":qc("en_US",H.hl);this.region=E?E.contentRegion||"US":qc("US",H.cr);this.hostLanguage=E? E.hostLanguage||"en":qc("en",H.host_language);this.yw=!this.V8&&Math.random()=2?w[1]:"";var t=S$1.test(E),k=Fwu.exec(E);k=k!=null&&k.length>=2?k[1]:"";var W=fgt.exec(E);W=W!=null&&W.length>=2&&!Number.isNaN(Number(W[1]))?Number(W[1]):1;var I=pjt.exec(E);I=I!=null&&I.length>=2?I[1]:"0";var A=aV(H.player.K().Yx),m=H.player.getVideoData(1),u=g.$y(m.p_,!0),v="BISCOTTI_ID"in G?G.BISCOTTI_ID:"";HD1(H,u,E,v.toString(),H.player.K(), m);m={splay:!1,lactMilliseconds:G.LACT.toString(),playerHeightPixels:Math.trunc(G.P_H),playerWidthPixels:Math.trunc(G.P_W),vis:Math.trunc(G.VIS),signatureTimestamp:20374,autonavState:Oh(H.player.K())};P&&(P={},J_Q(P,G.YT_REMOTE)&&(m.mdxContext=P));if(P=EAs.includes(A)?void 0:g.cb("PREF")){for(var n=P.split(RegExp("[:&]")),O=0,q=n.length;O1&&N[1].toUpperCase()==="TRUE"){u.user.lockedSafetyMode=!0;break}}m.autoCaptionsDefaultOn= Ua1(P)}E=G2j.exec(E);(E=E!=null&&E.length>=2?E[1]:"")&&k&&(u.user.credentialTransferTokens=[{token:E,scope:"VIDEO"}]);E={contentPlaybackContext:m};w={adBlock:Math.trunc(G.AD_BLOCK),params:w,breakIndex:W,breakPositionMs:I,clientPlaybackNonce:G.CPN,topLevelDomain:A,isProxyAdTagRequest:t,context:u,adSignalsInfoString:xc(jk(v.toString())),overridePlaybackContext:E};Q!==void 0&&(w.cueProcessedMs=Math.round(Q).toString());k&&(w.videoId=k);G.LIVE_TARGETING_CONTEXT&&(w.liveTargetingParams=G.LIVE_TARGETING_CONTEXT); G.AD_BREAK_LENGTH&&(w.breakLengthMs=Math.trunc(G.AD_BREAK_LENGTH*1E3).toString());e&&(w.driftFromHeadMs=e.toString());w.currentMediaTimeMs=Math.round(H.player.getCurrentTime(1)*1E3);(H=H.player.getGetAdBreakContext())&&(w.getAdBreakContext=H);return w}; Qc7=function(H,E,G,P,Q){this.uo=E;this.L=G;this.visible=P;this.layoutId=Q;this.triggerType="TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED";this.triggerId=H(this.triggerType)}; scM=function(H){H.T=0;H.L="hidden";H.W=void 0;H.D=void 0;H.C.stop();H.G=void 0}; jv=function(H,E,G,P,Q,e,w){H=H===void 0?-1:H;E=E===void 0?"":E;G=G===void 0?"":G;P=P===void 0?!1:P;Q=Q===void 0?"":Q;g.J.call(this);this.logSource=H;this.componentId=E;e?E=e:(H=new K1(H,"0"),H.componentId=E,g.d(this,H),G!==""&&(H.Hr=G),P&&(H.G=!0),Q&&oAw(H,Q),w&&e0s(H,w),E=H.build());this.L=E}; wKM=function(H){var E=/codecs="([^"]*)"/.exec(H.mimeType);return E&&E[1]?E[1]+" ("+H.itag+")":H.itag}; h0t=function(H,E){var G=0;H=H.L.L.get(E);if(!H)return 0;H=g.R(H);for(E=H.next();!E.done;E=H.next())E=E.value,E.durationMs!==0&&E.gV!==E.HO&&G++;return G}; cZ=function(H){return!!H.L||!!H.W}; Kq=function(H){if(H.prerendering)return 3;var E;return(E={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[H.visibilityState||H.webkitVisibilityState||H.mozVisibilityState||""])!=null?E:0}; $$Q=function(H,E){var G;BL(H.SR.get(),"ads_imp","acpn."+((G=xn(H.C_.get(),2))==null?void 0:G.clientPlaybackNonce)+";clr."+E)}; Nz=function(H,E,G,P,Q,e,w,t,k){this.U7=H;this.startTime=E;this.duration=G;this.ingestionTime=P;this.sourceURL=Q;this.kt=k;this.endTime=E+G;this.L=w||0;this.range=e||null;this.pending=t||!1;this.kt=k||null}; t4q=function(H){if(H.X.z6()){H.Kg.sort(function(P,Q){return+P.rt-+Q.rt}); for(var E=g.R(H.Kg),G=E.next();!G.done;G=E.next())G=G.value,H.g5("vpe",Object.assign({t:G.rt},G));H.Kg=[];H.WX=0}}; Ms=function(H,E,G){var P=arguments,Q=document,e=P[1],w=hz(Q,String(P[0]));e&&(typeof e==="string"?w.className=e:Array.isArray(e)?w.className=e.join(" "):sl(w,e));P.length>2&&KSj(Q,w,P,2);return w}; k2n=function(H,E){if(E)return E=H.videoData,E=XRv(H,isNaN(E.liveChunkReadahead)?3:E.liveChunkReadahead,E),bx(H,E);if(H.W.length){if(Math.min.apply(null,H.W)>1)return bx(H,H.L-1);if(H.policy.N)return bx(H,H.L+1)}return H.L}; g.WBM=function(){var H;return(H=(H=g.Un("yt.aba.att2"))?H:yu.instance!==void 0?yu.instance.D.bind(yu.instance):null)?H():Promise.resolve(!1)}; IKQ=function(H){if(H.name==="JavaException")return!0;H=H.stack;return H.includes("chrome://")||H.includes("-extension://")||H.includes("webkit-masked-url://")}; A2l=function(H,E){if(!H.jm){var G=void 0;H.e7&&(G=H.L.EQ({cpn:H.e7}));if(!G){G=b3q(H,E*1E3);var P,Q=(P=G)==null?void 0:P.cpn;H.e7?Q&&H.e7!==Q&&H.LP({cpcnm:Q+"_"+H.e7,cmt:E.toFixed(3)}):H.LP({cpcna:Q,cmt:E.toFixed(3)})}var e;return(e=G)==null?void 0:e.videoData}}; u47=function(H){var E=H.W.find(function(Q){return TV(H,Q)}); if(E){var G=H.app.jR();WS(H);var P=new g.bb(8);E=m$v(H,E)/1E3;ib(H,E,{},P,"_force");G.g5("forceParentTransition",{childPlayback:1});H.L.g5("forceParentTransition",{parentPlayback:1})}}; vAM=function(H,E,G){E==2?H.G.call(H.context,G):H.W&&H.W.call(H.context,G)}; M4v=function(H){var E=H.VA;H=H.videoData;var G=qz(E,H);E.U("html5_disable_client_autonav_cap_for_onesie")||G.compose(RV(E,H));return G}; iAn=function(H){var E=H.api.K(),G=d$v(E);G=D$l(G);var P=G.IL.bind(G);G.IL=function(t){var k;return g.L(function(W){if(W.L==1)return g.U(W,P(t),2);k=W.W;H.api.g5("itr",{});return W.return(k)})}; try{var Q=nAU({TG:G,jO:{maxAttempts:5},BE:{MI:"CLEn",disable:E.experiments.xp("html5_web_po_disable_remote_logging"),Tr:vQs(E.experiments),h3:function(t){var k=aKu.get(t);k||(k=new ODU(t),k=new g.Jo(k),aKu.set(t,k));return k}, FlJ:H.U("wpo_dis_lfdms")?0:1E3},wOF:g.p5});var e=new u1({aM:Q,TG:G,onError:g.p5});KBq(e.zM()).then(function(){H.L=!0;H.T.resolve()}); H.U("html5_web_po_token_disable_caching")||e.nN(150);g.d(H,Q);g.d(H,e);H.W=e}catch(t){g.p5(t);var w;(w=Q)==null||w.dispose()}}; rG=function(H,E){eF.call(this,"Autoplay",g.td.Vr);this.S=H;this.Ru=E;this.L=!1;this.W=[];this.Z(H,"presentingplayerstatechange",this.ow);this.subscribe("select",this.onSelect,this);H.createClientVe(this.element,this,113682);this.ow()}; BZ=function(H){H=H.VN;return Bz(H,H[c9]|0,jcd)}; c2u=function(H,E){if(!isNaN(H.dP)){var G=Date.now()-H.dP;G<1E4&&H.g5("bfaswtch",{ep:G,sk:E!==void 0?"1":"0",sr:E||""})}}; g.Y1=function(H){this.u3=H}; y27=function(H,E,G){if(H.L){var P=ac(OW(E,"key"))||"/UNKNOWN_PATH";H.L.start(P)}H=G;g.Xj("wug_networking_gzip_request")&&(H=N17(G));return new window.Request(E,H)}; LBu=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v){for(var n=[],O=g.R(H),q=O.next();!q.done;q=O.next())if(q=q.value,!p9U(q)&&!bDs(q)){var N=X_(q)&&!!q.slotEntryTrigger.beforeContentVideoIdStartedTrigger,r=k.uG(N),B=Hu7(q,W,P,G.m8,r);if(B instanceof T)return B;var l=void 0,S={slotId:q.adSlotMetadata.slotId,slotType:q.adSlotMetadata.slotType,slotPhysicalPosition:(l=q.adSlotMetadata.slotPhysicalPosition)!=null?l:1,f_:"core",slotEntryTrigger:B.slotEntryTrigger,slotFulfillmentTriggers:B.slotFulfillmentTriggers, slotExpirationTriggers:B.slotExpirationTriggers},z=g.X(q.fulfillmentContent.fulfilledLayout,Z9);if(z){if(!Cm(z))return new T("Invalid PlayerBytesAdLayoutRenderer");l=A&&!(X_(q)&&q.slotEntryTrigger.beforeContentVideoIdStartedTrigger);B=B.slotFulfillmentTriggers.some(function(Pt){return Pt instanceof i3}); r=l?iDv(S,q.adSlotMetadata.triggerEvent,z,G,P,e,W,H,r,m,B,u):qqt(S,q.adSlotMetadata.triggerEvent,z,E,G,P,Q,e,w,t,k,W,H,I,r,q.adSlotMetadata.triggeringSourceLayoutId);if(r instanceof T)return r;B=[];v?B.push(new XE({current:v})):B.push(new XE({current:null}));X_(q)&&B.push(new Zx({Vn:X_(q)&&!!q.slotEntryTrigger.beforeContentVideoIdStartedTrigger}));l&&B.push(new Yj({}));G.T6&&B.push(new CR({}));B.push(new C1(N));q=Object.assign({},S,{clientMetadata:new ZN(B),fulfilledLayout:r.layout,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData}); n.push.apply(n,g.EC(r.TH));n.push(q)}else if(N=g.X(q.fulfillmentContent.fulfilledLayout,F9)){if(!R0T(N))return new T("Invalid PlayerUnderlayAdLayoutRenderer");N=J2n(N,P,G.m8,e,S,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof T)return N;q=Object.assign({},S,{clientMetadata:new ZN([]),fulfilledLayout:N,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});n.push(q)}else if(N=g.X(q.fulfillmentContent.fulfilledLayout,r2U)){if(!TN(N.adLayoutMetadata)||!g.X(N.renderingContent, gG))return new T("Invalid InPlayerOrganicOverlayAdLayoutRenderer");N=N.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PLAYER_ORGANIC_BANNER_OVERLAY"?B1Q(N,P,G.m8,e,S):new T("LayoutType ["+N.adLayoutMetadata.layoutType+"] is invalid for InPlayerOrganicOverlaySlot");if(N instanceof T)return N;q=Object.assign({},S,{clientMetadata:new ZN([]),fulfilledLayout:N,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});n.push(q)}else if(N=g.X(q.fulfillmentContent.fulfilledLayout,YqM)){if(!XKQ(N))return new T("Invalid AboveFeedAdLayoutRenderer"); N=ZDq(N,P,G.m8,e,S,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId);if(N instanceof T)return N;q=Object.assign({},S,{clientMetadata:new ZN([]),fulfilledLayout:N,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});n.push(q)}else if(N=g.X(q.fulfillmentContent.fulfilledLayout,Cxq)){if(!TN(N.adLayoutMetadata)||!g.X(N.renderingContent,L1))return new T("Invalid BelowPlayerAdLayoutRenderer");N=ZDq(N,P,G.m8,e,S,q.adSlotMetadata.triggerEvent,q.adSlotMetadata.triggeringSourceLayoutId); if(N instanceof T)return N;q=Object.assign({},S,{clientMetadata:new ZN([]),fulfilledLayout:N,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});n.push(q)}else if(N=g.X(q.fulfillmentContent.fulfilledLayout,lb)){if(!Sa(N))return new T("Invalid PlayerBytesSequenceItemAdLayoutRenderer");N=gAT(N,P,G.m8,e,S,q.adSlotMetadata.triggerEvent);if(N instanceof T)return N;q=Object.assign({},S,{clientMetadata:new ZN([]),fulfilledLayout:N,adSlotLoggingData:q.adSlotMetadata.adSlotLoggingData});n.push(q)}else return new T("Unable to retrieve a client slot ["+ S.slotType+"] from a given AdSlotRenderer")}return n}; Uh=function(H,E){E=E===void 0?2:E;g.z7.call(this);this.api=H;this.L=null;this.handler=new J$(this);g.d(this,this.handler);this.W=lKl;this.handler.Z(this.api,"presentingplayerstatechange",this.xa);this.L=this.handler.Z(this.api,"progresssync",this.Ix);this.aG=E;this.aG===1&&this.Ix()}; g.x1=function(H,E){for(var G=1;G=0;)H[E]=0}; U$u=function(H){if(!H.L)return!1;H=H.W.get(H.L);return H&&H.event!=="predictStart"&&H.LR===5?(H==null?0:H.vp)&&Date.now()-(H==null?NaN:H.vp)>1E4?(H.LR=1,!1):!0:!1}; x$t=function(H,E){return H.L.length===0?!1:(H=H.L[H.L.length-1])&&H.buffer===E.buffer&&H.byteOffset+H.length===E.byteOffset}; z0T=function(H){try{return(new Blob(H.split(""))).size}catch(E){return Za(E),null}}; T1t=function(H){function E(w,t){H.QW(w,t)} function G(w){H.s2&&Tp(H);Vu(H)!==H.zC&&H.resize();H.app.K().U("web_enable_smart_zoom")&&H.V2&&(w.state.isPaused()?H.V2.pause():g.Sv(w,8)&&H.V2.playState==="paused"&&H.V2.play())} function P(w){w.getVideoData()&&H.updateVideoData(w.getVideoData())} function Q(){H.F9=new g.Yn(0,0,0,0);H.Lt=new g.Yn(0,0,0,0)} var e=H.app.cF;e.addEventListener("initializingmode",Q);e.addEventListener("videoplayerreset",P);e.addEventListener("videodatachange",E);e.addEventListener("presentingplayerstatechange",G);H.addOnDisposeCallback(function(){e.removeEventListener("initializingmode",Q);e.removeEventListener("videoplayerreset",P);e.removeEventListener("videodatachange",E);e.removeEventListener("presentingplayerstatechange",G)})}; g.bY=function(H){return Object.prototype.hasOwnProperty.call(H,F_)&&H[F_]||(H[F_]=++V4T)}; f1=function(H){H.G||(H.G=Sqq())}; HI=function(H,E){p1.call(this);this.metrics=H;this.MI=E}; fKT=function(H,E,G){E=EI(E);G=EI(G);for(var P=H.data,Q=H.output,e=H.G,w=H.register,t=H.L,k=H.W;;){if(t<15){if(k>P.length){H.error=!0;break}w|=(P[k+1]<<8)+P[k]<>=7;W<0;)W=E[(w&1)-W],w>>=1;else w>>=W&15;t-=W&15;W>>=4;if(W<256)Q[e++]=W;else if(H.register=w,H.L=t,H.W=k,W>256){w=Uq[W];w+=pT(H,lx[W]);k=aUq(H,G);t=z2[k];t+=pT(H,xA[k]);if(FBu&&w>BigInt(32)));AH(H.L,G.W,G.L);break;default:G=JOn(E),AH(H.L,G.W,G.L)}}}; DGv=function(H,E,G){var P;(P=H.L.get(G))==null||P.delay.dispose();H.L.delete(G);return new Promise(function(Q){Q={id:G,mediaTime:E,delay:new g.Wt(function(){}), resolve:Q};H.L.set(G,Q);A7(H,Q)})}; nyn=function(H){H.z$=H.L+H.snapshot.delay*1E3;H.FI=!1}; DFU=function(H){gn(H,g.tJ("RAW_HOT_CONFIG_GROUP"));H.lT(g.tJ("SERIALIZED_HOT_HASH_DATA"))}; mI=function(H){bG.call(this,"fully_viewable_audible_half_duration_impression",H)}; uB=function(H,E){this.version=H;this.args=E}; wGj=function(H,E,G,P,Q,e,w){return[aOj(H,e,P,function(t){var k=t.slotId;t=w(t);k=dU(E.W.get(),"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",k);var W={layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",f_:"core"};return{layoutId:k,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w5:new Map,layoutExitNormalTriggers:[new BQ(E.L,e)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:new ZN([new d8(Q), new nn(G)]),O2:t(W),adLayoutLoggingData:Q.adLayoutLoggingData}})]}; w$=function(H){if(window.crypto&&window.crypto.getRandomValues)try{var E=Array(H),G=new Uint8Array(H);window.crypto.getRandomValues(G);for(var P=0;P0&&t.set(Q,k),(g.Xj("web_fp_via_jspb_and_json")&&G.writeThenSend||!g.Xj("web_fp_via_jspb_and_json"))&& delete am[Q];LYQ(t,w,H,G,!1,e)}else{t=g.R(Object.keys(am));for(W=t.next();!W.done;W=t.next())W=W.value,I=g.Xj("enable_web_tiered_gel")?OI().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:W,tier:Q},{isJspb:!1,cttAuthInfo:W}],sizeLimit:1E3}):OI().extractMatchingEntries({isJspb:!1,cttAuthInfo:W}),I.length>0&&k.set(W,I),(g.Xj("web_fp_via_jspb_and_json")&&G.writeThenSend||!g.Xj("web_fp_via_jspb_and_json"))&&delete am[W];YMU(k,w,H,E,G,!1,e)}}; CN=function(){return g.Un("ytglobal.idbToken_")||void 0}; XGu=function(H){if(H.Bm!==void 0){var E=Pb;Pb=!0;try{for(var G=H.Bm;G!==void 0;G=G.Eq){var P=G.Cc;P.Tp||(H=void 0,P.Tp=!0,XGu(P),(H=P.r3)==null||H.call(P,P))}}finally{Pb=E}}}; Clj=function(H,E,G,P,Q,e){var w=ZOj++;return new KL({veType:H,veCounter:w,elementIndex:G,dataElement:E,youtubeData:P,jspbYoutubeData:Q,loggingDirectives:e})}; WDs=function(H,E,G,P,Q,e,w,t,k,W,I,A,m){H=j5(H,E,G,Q,e,w,t,k,A,cI(H,G,P.layoutId,"createSubLayoutVodSkippableMediaBreakLayoutForEndcap"),m);E=H.G2;G=new Zm(H.Y$);P=H.layoutExitSkipTriggers;W>0&&(E.push(G),E.push(new By(W)),P=[]);E.push(new Yb(I));return{HK:{layoutId:H.layoutId,layoutType:H.layoutType,w5:H.w5,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:H.f_,clientMetadata:new ZN(E),O2:H.O2, adLayoutLoggingData:H.adLayoutLoggingData},vA:P,W$:H.layoutExitMuteTriggers,Hk:H.layoutExitUserInputSubmittedTriggers,JI:H.layoutExitUserCancelledTriggers,CS:H.CS}}; gyj=function(H){switch(H){case "equirectangular":return"EQUIRECTANGULAR";case "equirectangular_threed_top_bottom":return"EQUIRECTANGULAR_THREED_TOP_BOTTOM";case "mesh":return"MESH";case "rectangular":return"RECTANGULAR";default:return"UNKNOWN"}}; Lhw=function(H,E){for(var G=H.L.length,P=0,Q=g.R(H.L),e=Q.next();!e.done;e=Q.next())if(e=e.value,e.width!==0)if(E>e.width)E-=e.width,E-=ND(H),P++;else break;return P===G?G-1:P}; xmQ=function(){var H=[],E=X9();H.push(Lu(Sy));f2(E.b4,"mvp_lv")&&H.push(Lu(oc));E=[new JY,new yJ];E.push(new dp(H));E.push(new bB(md));return E}; qD=function(H){var E=H.U("web_player_use_cinematic_label_2")?"Ambient mode":"Cinematic lighting";eF.call(this,E,g.td.L2);var G=this;this.S=H;this.L=!1;this.W=new g.Wt(function(){g.Tn(G.element,"ytp-menuitem-highlighted")},0); this.Ru=H.TA();H=H.U("delhi_modern_web_player_icons")?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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(H);this.subscribe("select",this.G,this);this.listen(iB,this.D);g.d(this,this.W)}; OV=function(H){return H.hE()&&H.K().supportsGaplessShorts()}; fJu=function(H,E,G,P){H.Ca(5);var Q=!!H.Yx&&lOq.includes(g.mS(H.Yx)||"");try{var e=new Gt({program:E,globalName:G,BE:{disable:!g.Xj("att_web_record_metrics")||!g.Xj("att_skip_metrics_for_cookieless_domains_ks")&&Q,MI:"aGIf"}});e.l_.then(function(){H.Ca(6);P&&P(E)}); H.fJ(e)}catch(w){H.Ca(7),w instanceof Error&&g.p5(w)}}; BI=function(H,E){g.D.call(this,{J:"div",Y:"ytp-fine-scrubbing",V:[{J:"div",Y:"ytp-fine-scrubbing-draggable",V:[{J:"div",Y:"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}}"}}]},{J:"div",j:{"aria-hidden":"true"},Y:"ytp-fine-scrubbing-cursor"},{J:"div",Y:"ytp-fine-scrubbing-seek-time",j:{"aria-hidden":"true"}, iJ:"{{seekTime}}"},{J:"div",Y:"ytp-fine-scrubbing-play",V:[H.U("delhi_modern_web_player_icons")?Rm():J7()],j:{title:"Play from this position",role:"button"}},{J:"div",Y:"ytp-fine-scrubbing-dismiss",V:[g.jK()],j:{title:"Exit precise seeking",role:"button"}}]});var G=this;this.api=H;this.T=this.HF("ytp-fine-scrubbing-thumbnails");this.dismissButton=this.HF("ytp-fine-scrubbing-dismiss");this.Jm=this.HF("ytp-fine-scrubbing-draggable");this.playButton=this.HF("ytp-fine-scrubbing-play");this.thumbnails= [];this.W=[];this.T$=this.L=0;this.O7=void 0;this.p_=NaN;this.z$=this.N=this.G=this.B=0;this.D=[];this.interval=this.frameCount=0;this.C=160;this.scale=1;this.eR=0;this.isEnabled=this.PF=!1;rQ(this,this.api.getCurrentTime());this.addOnDisposeCallback(g.SH(E,this.dismissButton));this.addOnDisposeCallback(g.SH(E,this.playButton));this.E7=new g.DO(this.Jm,!0);this.E7.subscribe("dragstart",this.j5,this);this.E7.subscribe("dragmove",this.vj,this);this.E7.subscribe("dragend",this.ol,this);this.Z(H,"SEEK_COMPLETE", this.eZ);H.U("web_fix_fine_scrubbing_false_play")&&this.Z(H,"rootnodemousedown",function(P){G.WF=P}); this.T.addEventListener("keydown",function(){}); g.d(this,this.E7);this.api.createClientVe(this.element,this,153154);this.api.createClientVe(this.T,this,152789);this.api.createClientVe(this.dismissButton,this,153156);this.api.createClientVe(this.playButton,this,153155)}; xGM=function(H){var E={},G={};H=g.R(H);for(var P=H.next();!P.done;P=H.next()){var Q=P.value,e=Q.split("|");Q.match(g.UGs)?(P=Number(e.pop()),isNaN(P)?G[Q]="?":(e=e.join("|"),(Q=E[e])?(e=Q[Q.length-1],P===e.end+1?e.end=P:Q.push({start:P,end:P})):E[e]=[{start:P,end:P}])):G[Q]="?"}H=g.R(Object.keys(E));for(P=H.next();!P.done;P=H.next())P=P.value,G[P]=E[P].map(function(w){return w.start+"-"+w.end}).join(","); return G}; zll=function(H){H=this.G=H;var E=(0,g.co)(this.Mqw,this);H.D=E;H=this.G;E=(0,g.co)(this.pK5,this);H.B=E;this.W={};this.L={}}; YN=function(H){return Array.from(H.L.keys())}; g.X3=function(H){return(H=j6U(H===void 0?0:H))?new KL({veType:H,youtubeData:void 0,jspbYoutubeData:void 0}):null}; ZH=function(){$4.apply(this,arguments)}; Vqq=function(H){H=g.R(g.CL(H,!0));for(var E=H.next();!E.done;E=H.next())if(Trn(E.value))return!0;return!1}; SMv=function(H){if(!Be(H,440786851,!0))return null;var E=H.pos;dH(H,!1);var G=dH(H,!0)+H.pos-E;H.pos=E+G;if(!Be(H,408125543,!1))return null;dH(H,!0);if(!Be(H,357149030,!0))return null;var P=H.pos;dH(H,!1);var Q=dH(H,!0)+H.pos-P;H.pos=P+Q;if(!Be(H,374648427,!0))return null;var e=H.pos;dH(H,!1);var w=dH(H,!0)+H.pos-e,t=new Uint8Array(G+12+Q+w),k=new DataView(t.buffer);t.set(new Uint8Array(H.L.buffer,H.L.byteOffset+E,G));k.setUint32(G,408125543);k.setUint32(G+4,33554431);k.setUint32(G+8,4294967295); t.set(new Uint8Array(H.L.buffer,H.L.byteOffset+P,Q),G+12);t.set(new Uint8Array(H.L.buffer,H.L.byteOffset+e,w),G+12+Q);return t}; gQ=function(H,E,G){if(G&&G!==H.slotType)return!1;E=g.R(E);for(G=E.next();!G.done;G=E.next())if(!mw(H.clientMetadata,G.value))return!1;return!0}; ECU=function(H,E,G,P,Q,e,w,t,k){var W=Vjw(H,e,e+Q);H.N&&H.LP({adaftto:1});G||H.LP({missadcon:1,enter:e,len:Q,aid:t});H.D&&!H.D.X8&&(H.D.X8=t);H.jm&&H.LP({adfbk:1,enter:e,len:Q,aid:t});var I=H.playback;e>w&&LL(H,{reason:"enterTime_greater_than_return",HO:e,gV:w});var A=I.MC()*1E3;eI&&LL(H,{reason:"parent_return_greater_than_content_duration",gV:w,kdR:I});(I=KvU(H.L,e))&&I.gV>e&&FhT(H,E.video_id|| "",e,w,I);if(W&&I)for(A=0;A=0?Yv()-Cu:-1,t=Yv();Q.L.qY==-1&&(w=t);var k=ZY(),W=X9(),I=U5(W.b4),A=yV();try{if(A.length>0){var m=k.L;m&&(I.bs=[Nl(m),m.getHeight()]);var u=k.T;u&&(I.ps=[u.width,u.height]);md.screen&&(I.scs=[md.screen.width,md.screen.height])}else I.url=encodeURIComponent(md.location.href.substring(0,512)),e.referrer&&(I.referrer=encodeURIComponent(e.referrer.substring(0,512))); I.tt=w;I.pt=Cu;I.bin=W.W;md.google_osd_load_pub_page_exp!==void 0&&(I.olpp=md.google_osd_load_pub_page_exp);I.deb=[1,Q.L.ZV,Q.L.At,Q.L.w3,Q.L.qY,0,Q.W.W,Q.L.OJ,Q.L.IB,Q.L.zE,Q.L.DIa,-1].join(";");I.tvt=Icd(Q,t);k.W&&(I.inapp=1);if(md!==null&&md!=md.top){A.length>0&&(I.iframe_loc=encodeURIComponent(md.location.href.substring(0,512)));var v=k.B;I.is=[Nl(v),v.getHeight()]}}catch(n){I.error=1}gx.G=I}m=g.sj(gx.G);u=X9().L;f2(u.G,"prf")==1?(v=new T9,Q=u.L,e=0,Q.L>-1&&(e=Q.G.L.now()-Q.L),v=VJ(v,1,l3(Q.D+ e),0),Q=u.L,v=VJ(v,5,p2(Q.L>-1?Q.W+1:Q.W),0),v=VJ(v,2,J0(u.W.L.G()),"0"),v=VJ(v,3,J0(u.W.L.W()),"0"),u=VJ(v,4,J0(u.W.L.L()),"0"),v={},u=(v.pf=g.H4(u.G()),v)):u={};g.S5(m,u);g.S5(E,P,G,m,H())}])}; Gq=function(H,E,G){H.S.g5(E,G);Qn1(H)}; BmM=function(H){var E=[];g.D9(H,function(G){YZ(cY.L,function(P){return P.GT.JA===G.GT.JA&&P.R3===G.R3})||(cY.L.push(G),E.push(G))})}; G1=function(H){H=g.AL(H);return mK(null,null,null,null,H[5],H[6],H[7])}; ojn=function(H,E,G){var P=0;if(H.wX!==0){do{var Q=H.JK[H.Mz+P*2]<<8|H.JK[H.Mz+P*2+1];var e=H.JK[H.YB+P];P++;if(Q===0)Zy(H,e,E);else{var w=F3[e];Zy(H,w+256+1,E);var t=fL[w];t!==0&&(e-=pL[w],XB(H,e,t));Q--;w=Q<256?HF[Q]:HF[256+(Q>>>7)];Zy(H,w,G);t=Et[w];t!==0&&(Q-=GG[w],XB(H,Q,t))}}while(P=5)){Q=[];for(var e=g.R(kUd),w=e.next();!w.done;w=e.next()){w=w.value;try{w()&&Q.push(w())}catch(n){}}Q=[].concat(g.EC(Wkw),g.EC(Q));var t=QAu(H);e=t.message||"Unknown Error";w=t.name||"UnknownError";var k=t.stack||H.W||"Not available";if(k.startsWith(w+": "+e)){var W=k.split("\n");W.shift();k=W.join("\n")}W=t.lineNumber||"Not available";t=t.fileName||"Not available";var I=0;if(H.hasOwnProperty("args")&& H.args&&H.args.length)for(var A=0;A=500);A++);else if(H.hasOwnProperty("params")&&H.params){var m=H.params;if(typeof H.params==="object")for(A in m){if(m[A]){var u="params."+A,v=uq(m[A]);G[u]=v;I+=u.length+v.length;if(I>500)break}}else G.params=uq(m)}if(Q.length)for(A=0;A=500);A++);navigator.vendor&&!G.hasOwnProperty("vendor")&&(G["device.vendor"]=navigator.vendor);G={message:e,name:w,lineNumber:W, fileName:t,stack:k,params:G,sampleWeight:1};A=Number(H.columnNumber);isNaN(A)||(G.lineNumber=G.lineNumber+":"+A);if(H.level==="IGNORED")H=0;else a:{H=AB();A=g.R(H.v5);for(Q=A.next();!Q.done;Q=A.next())if(Q=Q.value,G.message&&G.message.match(Q.f1)){H=Q.weight;break a}H=g.R(H.W5);for(A=H.next();!A.done;A=H.next())if(A=A.value,A.callback(G)){H=A.weight;break a}H=1}G.sampleWeight=H;H=g.R(Ar7);for(A=H.next();!A.done;A=H.next())if(A=A.value,A.y9[G.name])for(e=g.R(A.y9[G.name]),Q=e.next();!Q.done;Q=e.next())if(w= Q.value,Q=G.message.match(w.nW)){G.params["params.error.original"]=Q[0];e=w.groups;w={};for(W=0;W10&&Ib.shift()))}; n0=function(H,E){if(E){if(H==="fullwidth")return Infinity;if(H==="fullheight")return 0}return H&&(E=H.match(nCn))&&(H=Number(E[2]),E=Number(E[1]),!isNaN(H)&&!isNaN(E)&&H>0)?E/H:NaN}; aGj=function(H,E){g.aC(H.api.lm())&&H.api.setOption("captions","sampleSubtitles",E)}; mGt=function(H){return H.linearAd!=null&&H.adVideoStart!=null}; Ot=function(H,E,G,P,Q,e){Q=Q===void 0?0:Q;e=e===void 0?!1:e;g.J.call(this);this.W=H;this.G=!1;this.L_=P;this.p_=e;this.C=!1;this.L=null;E>0&&(this.L=new g.Wt(this.Vv,E,this),g.d(this,this.L));this.T=new g.Wt(this.Vv,G,this);g.d(this,this.T);this.N=Odj(this.W,Q,1,P);g.d(this,this.N);this.B=Odj(this.W,0,P,1);g.d(this,this.B);this.D=new J$;g.d(this,this.D)}; Kkd=function(H){H=new K0(H.data,H.offset,H.size,H.type,H.W);var E=j7(H);H.skip(7);var G=ae(H);if(E===0){E=ae(H);var P=ae(H)}else E=OF(H),P=OF(H);H.skip(2);for(var Q=nh(H),e=[],w=[],t=0;t0&&v&&m&&(I=[w,G],B=m.concat(v).filter(function(l){return l})); if(B.length&&!E.rH){b7(B,I);if(k){k=[];E=g.R(B);for(P=E.next();!P.done;P=E.next())k.push(P.value.itag);e({hbdfmt:k.join(".")})}return jD(new NZ(B,Q,W,H))}B=Y0u(E);B=g.VS(B,t);if(!B){if(A[w])return e=A[w],b7(e),jD(new NZ(e,Q,W,H));k&&e({novideo:1});return $0()}E.ox&&(B==="1"||B==="1h")&&A[G]&&(w=m6(A[B]),I=m6(A[G]),I>w?B=G:I===w&&Xmw(A[G])&&(B=G));B==="9"&&A.h&&m6(A.h)>m6(A["9"])&&(B="h");E.FI&&P.isLive&&B==="("&&A.H&&m6(A["("])<1440&&(B="H");k&&e({vfmly:i7(B)});E=A[B];if(!E.length)return k&&e({novfmly:i7(B)}), $0();b7(E);return jD(new NZ(E,Q,W,H))}; jP=function(H,E,G,P,Q){var e=G+(Q?0:-1),w=H.length-1;if(w>=1+(Q?0:-1)&&e>=w){var t=H[w];if(t!=null&&typeof t==="object"&&t.constructor===Object)return t[G]=P,E}if(e<=w)return H[e]=P,E;if(P!==void 0){var k;w=((k=E)!=null?k:E=H[c9]|0)>>14&1023||536870912;G>=w?P!=null&&(e={},H[w+(Q?0:-1)]=(e[G]=P,e)):H[e]=P}return E}; CvU=function(H){var E=g.mO("html5-video-player");E&&g.Bt(E,"ytp-ad-display-override",H)}; RC=function(H,E,G){var P=P===void 0?qZ:P;var Q=gCd(H,E);return Q?new g.El(function(e,w){var t,k,W,I,A;return g.L(function(m){switch(m.L){case 1:return g.U(m,Q,2);case 2:t=m.W;k=t.T(E,G,P);if(!k){w(new g.LN("Error: Failed to build request for command.",E));m.bJ(0);break}oI(k.input);I=((W=k.hA)==null?void 0:W.mode)==="cors"?"cors":void 0;if(H.L.e6){A=Lks(H,k.config,I);m.bJ(4);break}return g.U(m,lGn(H,k.config,I),5);case 5:A=m.W;case 4:e(Usv(H,k,A)),g.P2(m)}})}):R6(new g.LN("Error: No request builder found for command.", E))}; MO=function(H){H=H.G.BK();return H>0?H:1}; xs1=function(H){var E=Dw(H);return E&&E.text?g.b_(E.text):H.paidContentOverlayText}; z$v=function(H){this.VN=tz(H)}; GUj=function(H){xN.n5=function(E){g.D9(H,function(G){G(E)})}}; VDq=function(H,E){if(JB(H,rb)||H.api.isMinimized())return!1;var G=BF(E.title),P=BF(E.description);if(g.xm(G)||g.xm(P))return!1;H.createServerVe(H.W.element,E.trackingParams||null);H.W.updateValue("title",BF(E.title));H.W.updateValue("description",BF(E.description));H.W.updateValue("displayUrl",BF(E.displayUrl));H.W.updateValue("imageUrl",T9n(E.image));E.navigationEndpoint&&g.x1(H.N,E.navigationEndpoint);H.BF=E.imageNavigationEndpoint||null;H.W.show();H.T$.start();H.logVisibility(H.W.element,!0);H.Z(H.W.element, "mouseover",function(){H.WF++}); return!0}; ID=function(H){this.B=H;this.L=null;this.D=0;this.C=null;this.T=0;this.W=[];for(H=0;H<4;H++)this.W.push(0);this.G=0;this.WF=g.Pm(window,"mousemove",(0,g.co)(this.L_,this));this.N=g.Y_((0,g.co)(this.p_,this),25)}; S0n=function(H,E,G){if(G){H.isActive();G=new YE(H);var P=new zll(G)}return new wI({xhr:H,ugw:P},E)}; O5=function(H){this.VN=tz(H)}; XZ=function(H){this.VN=tz(H)}; ra=function(H,E){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED";this.triggerId=E||H(this.triggerType)}; Z2=function(H){switch(H){case "AD_PLACEMENT_KIND_START":return"LATENCY_AD_BREAK_TYPE_PREROLL";case "AD_PLACEMENT_KIND_MILLISECONDS":case "AD_PLACEMENT_KIND_COMMAND_TRIGGERED":case "AD_PLACEMENT_KIND_CUE_POINT_TRIGGERED":return"LATENCY_AD_BREAK_TYPE_MIDROLL";case "AD_PLACEMENT_KIND_END":return"LATENCY_AD_BREAK_TYPE_POSTROLL";default:return"LATENCY_AD_BREAK_TYPE_UNKNOWN"}}; C0=function(H,E,G,P,Q,e,w,t){this.D=H;this.B=E;this.G=G;this.C=P;this.L=Q;this.T=e;this.W=w;this.N=t}; gb=function(H,E,G){var P=[E];if(H!=E||G!=E)P.unshift(H),P.push(G);return P}; L0=function(H,E,G){H.T=3;H.L_="The stream is broken @"+H.G+"/"+G+". With input:\n"+E;throw Error(H.L_);}; wq=function(H){return H.WO||H.n0||H.mutedAutoplay}; FkM=function(H,E,G){var P=Array(16),Q=0,e;for(e=1;e<=15;e++)P[e]=Q=Q+G[e-1]<<1;for(G=0;G<=E;G++)Q=H[G*2+1],Q!==0&&(H[G*2]=sSn(P[Q]++,Q))}; g.Qn=function(H,E,G){g.NL(iT)(H,E,G===void 0?!1:G)}; g.Is=function(H,E){H.updateValue("label",E)}; iqw=function(H,E,G){return G===void 0||G?g.W2(H,function(P,Q){return g.Xa(E,Q)}):g.wH(E,function(P,Q,e){return H.slice(Q>0?e[Q-1]+1:0,P+1).reduce(function(w,t){return w+t},0)})}; fGv=function(H){return!!H.L&&H.L.U7!==-1&&H.L.U70&&(H.G=null,H.L.set(JZ(H,E),g.dm(G)),H.W=H.W+G.length)}; mw=function(H,E){return H.L.has(E)}; GAv=function(H){var E=E===void 0?!1:E;var G,P,Q,e,w;return g.L(function(t){if(t.L==1)return(G=H.GH.get("asmjs"))&&!E?t.return(G):(P=Ut.get("asmjs"))!=null?(Q=P,t.bJ(2)):g.U(t,new Promise(function(k,W){E_u(H,"asmjs",function(){var I=Ut.get("asmjs");I?k(I):W("cannot load module asmjs")},W)}),3); t.L!=2&&(Q=t.W);e=Q;if(!e)return t.return(Promise.reject("cannot load module asmjs"));w=new e(H.S);H.GH.set("asmjs",w);w.create();return t.return(w)})}; PQl=function(H,E){if(H.length>E.length)return!1;if(H.lengthQ)return!1;if(P0?G:0;G=P?Date.now()+P*1E3:0;if((P=P?g.LU.OP():g.LU.m9())&&window.JSON){typeof E!=="string"&&(E=JSON.stringify(E,void 0));try{P.set(H,E,G)}catch(Q){P.remove(H)}}}; g.xE=function(H,E){function G(){} G.prototype=E.prototype;H.j7=E.prototype;H.prototype=new G;H.prototype.constructor=H;H.AE=function(P,Q,e){for(var w=Array(arguments.length-2),t=2;tE&&(E=G.length);return 3997-E-H.G.length-1}; kL=function(H){this.value=H}; g.S7=function(H,E,G){g.J.call(this);this.D=G!=null?H.bind(G):H;this.nM=E;this.G=null;this.L=!1;this.W=0;this.Zj=null}; f0=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-ad-grid-card-text",V:[{J:"div",Y:"ytp-ad-grid-card-text__metadata",V:[{J:"div",Y:"ytp-ad-grid-card-text__metadata__headline"},{J:"div",Y:"ytp-ad-grid-card-text__metadata__description",V:[{J:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"},{J:"div",Y:"ytp-ad-grid-card-text__metadata__description__line"}]}]},{J:"div",Y:"ytp-ad-grid-card-text__button"}]},"ad-grid-card-text",E,G,P);this.headline=new uy(this.api,this.layoutId,this.interactionLoggingClientData, this.vF);g.d(this,this.headline);this.headline.mx(this.HF("ytp-ad-grid-card-text__metadata__headline"));this.moreInfoButton=new FZ(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,!0);g.d(this,this.moreInfoButton);this.moreInfoButton.mx(this.HF("ytp-ad-grid-card-text__button"))}; p0=function(H){var E;return((E=H.audio)==null?void 0:E.W)===!0}; ePT=function(H){H=(H.renderer.linearAdSequenceRenderer||{}).linearAds;return H!=null&&H.length?H.filter(function(E){var G,P;return((G=g.X(E,S4))==null?void 0:(P=G.playerOverlay)==null?void 0:P.instreamSurveyAdRenderer)!=null}).length:0}; wCd=function(H,E,G){G=G===void 0?2:G;$G(H,E*8+2);H.W.push(H.pos);H.W.push(G);H.pos+=G}; XMd=function(H){H=H.tabIndex;return typeof H==="number"&&H>=0&&H<32768}; HA=function(){return{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}}; jvq=function(H){if(H.cR&&typeof H.cR=="function")return H.cR();if(!H.KX||typeof H.KX!="function"){if(typeof Map!=="undefined"&&H instanceof Map)return Array.from(H.keys());if(!(typeof Set!=="undefined"&&H instanceof Set)){if(g.gw(H)||typeof H==="string"){var E=[];H=H.length;for(var G=0;G0?{associatedSlotId:G}:{},P.length>0?{slots:P}:{})); return E}; qcu=function(H){g.D9(H.L,function(E){E.W=0})}; dk=function(H,E){if((H=H.L.get(E))==null)H=void 0;else{H=H.buffer;for(E=[];H.W!==H.L;)H.W=(H.W+1)%H.data.length,E.push(H.data[H.W]);H=E}return H||[]}; JY7=function(H){if(g.Xj("enable_web_tiered_gel")){H=RPd[H||""];var E,G,P,Q=hu().resolve(new HG(DF))==null?void 0:(E=nE())==null?void 0:(G=E.loggingHotConfig)==null?void 0:(P=G.eventLoggingConfig)==null?void 0:P.payloadPolicies;if(Q)for(E=0;E>>0;E=G>>>3;G&=7;if(!(G>=0&&G<=5))throw Error();if(E<1)throw Error();H.G=E;H.W=G;return!0}; Oo=function(){g.z7.call(this);var H=this;this.fullscreen=0;this.D=this.G=this.pictureInPicture=this.L=this.W=this.inline=!1;this.T=function(){H.JC()}; B8T(this.T);this.C=this.getVisibilityState(this.w6(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.tE(),this.HE(),this.tZ(),this.St())}; MYq=function(H){if(H.length!==0){var E=[];H=g.R(H);for(var G=H.next();!G.done;G=H.next())(G=KO(G.value))&&E.push(G);return{commandExecutorCommand:{commands:E}}}}; KE=function(H,E,G){return(G<0||G===H.C)&&!isNaN(H.B)?H.B:E}; cA=function(H,E){var G=G===void 0?jr:G;return new cL(H,E,G)}; OU=function(H,E,G,P,Q){g.J.call(this);this.W=E;this.d5=G;this.C_=P;this.Yq=Q;this.listeners=[];var e=new J$(this);g.d(this,e);e.Z(H,"internalAbandon",this.JTJ);this.addOnDisposeCallback(function(){g.hH(e)})}; Tk=function(){var H=sY();try{var E=H.muted;H.muted=!E;return H.muted!==E}catch(G){}return!1}; TnT=function(H){switch(Math.trunc(H.G)){case -16:return-16;case -8:return-8;case 0:return 0;case 8:return 8;case 16:return 16;default:return 16}}; g.iv=function(H){g.J.call(this);this.cF=H;this.W=new Ycj;this.G=null;this.T=[];this.N=[]}; QP=function(H,E){var G=[];if(!E.length)return G;for(var P=0;P>>=0;H>>>=0;if(E<=2097151)var G=""+(4294967296*E+H);else ov()?G=""+(BigInt(E)<>>24|E<<8)&16777215,E=E>>16&65535,H=(H&16777215)+G*6777216+E*6710656,G+=E*8147497,E*=2,H>=1E7&&(G+=H/1E7>>>0,H%=1E7),G>=1E7&&(E+=G/1E7>>>0,G%=1E7),G=E+zPu(G)+zPu(H));return G}; BA=function(H,E){H.L||(H.yN.fP(E),H.L=!0)}; VYU=function(H){return{kt:$M(H,1,T81),trackType:hU(H,2),Fu:hU(H,3),timeRange:$M(H,4,Glw)}}; Yl=function(H,E){var G=H.U("web_fix_annotations")?"Annotated Overlays":"Annotations";eF.call(this,G,g.td.xI);this.S=H;this.Ru=E;this.L=!1;H.U("web_settings_menu_icons")&&(E=H.U("delhi_modern_web_player_icons")?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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(E));this.Z(H,"videodatachange",this.r5);this.Z(H,"onApiChange",this.r5);this.subscribe("select",this.onSelect,this);this.r5()}; FlU=function(H){if(Zi(H.slot.clientMetadata,"metadata_type_prefetch_metadata")){var E=Scw(H,H.slot);Tv(H.L.get(),"OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",function(){return[E]})}}; fuQ=function(H){return new Xl(function(E){g.N0(E,H)})}; ZF=function(H){return Math.round(H.width)+"x"+Math.round(H.height)}; g.Bn=function(H){return new KL({trackingParams:H})}; D$l=function(H){var E=new pC7,G={},P=(G["X-Goog-Api-Key"]="AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw",G);return new Y6(E,H,function(){return P})}; Q6v=function(){var H=window.H5vccPlatformService,E="";if(H&&H.has("dev.cobalt.coat.clientloginfo")&&(H=H.open("dev.cobalt.coat.clientloginfo",function(){}))){var G=H.send(new ArrayBuffer(0)); G&&(E=String.fromCharCode.apply(String,g.EC(new Uint8Array(G))));H.close()}return E}; ogQ=function(){kE.instance||(kE.instance=new kE);return kE.instance}; aJ=function(H,E){return Math.floor(E/(H.columns*H.rows))}; CE=function(H,E,G){A9.call(this,"display-underlay-text-grid-cards",H,{},E,G);this.interactionLoggingClientData=G}; LE=function(H,E){var G;gk(H.SR.get(),{driftRecoveryInfo:Object.assign({},{contentCpn:(G=H.C_.get().uE)==null?void 0:G.clientPlaybackNonce,adClientData:H.layout.O2.adClientDataEntry},E)})}; HXQ=function(H,E,G){var P=[],Q=[];if((Array.isArray(G)?2:1)==1)return Q=[E,H],g.D9(P,function(t){Q.push(t)}),Jvt(Q.join(" ")); var e=[],w=[];g.D9(G,function(t){w.push(t.key);e.push(t.value)}); G=Math.floor((new Date).getTime()/1E3);Q=e.length==0?[G,E,H]:[e.join(":"),G,E,H];g.D9(P,function(t){Q.push(t)}); H=Jvt(Q.join(" "));H=[G,H];w.length==0||H.push(w.join(""));return H.join("_")}; lL=function(H,E){tb(H,1,E.itag);tb(H,2,E.lmt);Uj(H,3,E.xtags)}; z6=function(){if(!lu&&!g.Uo){if(xl)return xl;var H;xl=(H=window.crypto)==null?void 0:H.subtle;var E,G,P;if(((E=xl)==null?0:E.importKey)&&((G=xl)==null?0:G.sign)&&((P=xl)==null?0:P.encrypt))return xl;xl=void 0}}; g.ED=function(H,E,G,P){P?H.L_[P]=H.G:H.L_=[H.G];H.C=E||0;H.T=G||0}; EL1=function(){var H=g.c4.apply(0,arguments);return function(E){return function(G,P){function Q(){throw Error("Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.");} G=E(G,P);var e={getState:G.getState,dispatch:function(w){return Q.apply(null,[w].concat(g.EC(g.c4.apply(1,arguments))))}}; P=H.map(function(w){return w(e)}); Q=EmU.apply(null,g.EC(P))(G.dispatch);return Object.assign({},G,{dispatch:Q})}}}; G$M=function(H){this.VN=tz(H)}; g.bO=function(H,E,G){return H!==null&&E in H?H[E]:G}; Fl=function(H){Cn(H);H.setLoopVideo(!1);H.setLoopRange(null);H.cF.publish("legacyadtrackingpingreset");H.gS={};H.d9=[];X2l(H.HT);if(H.xq){var E=H.xq,G=H.qZ();G.getPlayerType();T6(E,!1);Vr(E);PEw(E);E.playback=G}E=H.ze;H=H.qZ();H.getPlayerType()!==1&&eN(E,"invalidParentVideoPlayerType");Sr(E,!1);wp(E);E.L=H}; vil=function(H){if(!H)return null;H=Ip(H,4);return H===null||H===void 0?null:Pg(H)}; M_=function(H){var E=fE(H.L,H.pos);++H.pos;if(E<128)return E;for(var G=E&127,P=1;E>=128;)E=fE(H.L,H.pos),++H.pos,P*=128,G+=(E&127)*P;return G}; HN=function(H,E){E=E===void 0?NaN:E;if(isNaN(E))var G=H.size;else for(G=H.L;G0));H.z6()&&k$7();Error.stackTraceLimit=50;var Q=g.hE(E,"html5_idle_rate_limit_ms");Q&&Object.defineProperty(window,"requestIdleCallback",{value:function(e){return window.setTimeout(e,Q)}}); l01(H.T);WFv(G("html5_use_ump_request_slicer"));IQj(G("html5_record_now"));G("html5_disable_streaming_xhr")&&(Fa=!1);G("html5_byterate_constraints")&&(wN=!0);G("html5_use_non_active_broadcast_for_post_live")&&(ha=!0);G("html5_enable_encrypted_av1")&&($e=!0);YyT(g.hE(H.experiments,"html5_sticky_duration_mos"))}; m6n=function(){return{J:"svg",j:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{J:"path",j:{d:"M 18 6 L 9 6 C 8.20 6 7.44 6.31 6.87 6.87 C 6.31 7.44 6 8.20 6 9 L 6 27 C 6 27.79 6.31 28.55 6.87 29.12 C 7.44 29.68 8.20 30 9 30 L 18 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 18 6 C 18 30 18 30 18 30 C 18 30 18 30 18 30 Z M 27 6 L 18 6 C 18 6 18 6 18 6 C 18 6 18 6 18 6 V 30 C 18 30 18 30 18 30 C 18 30 18 30 18 30 L 27 30 C 27.79 30 28.55 29.68 29.12 29.12 C 29.68 28.55 30 27.79 30 27 V 9 L 30 9 C 30 8.20 29.68 7.44 29.12 6.87 C 28.55 6.31 27.79 6 27 6 Z", fill:"white"}}]}}; unu=function(H){g.J.call(this);var E=this;this.hG=H;this.L=new Map;ta(this,"commandExecutorCommand",function(G,P,Q){jeU(E,G.commands,P,Q)}); ta(this,"clickTrackingParams",function(){})}; g.vLv=function(H,E,G){eCu(H,E,G,null)||g.VP(g.iK(E,H))}; D6U=function(H,E,G){try{if(H.Iu())throw new jg(21,"BNT:disposed");if(!H.L&&H.W)throw H.W;var P,Q;return(Q=(P=aYU(H,E,G))!=null?P:M$t(H,E,G))!=null?Q:d6l(H,E,G)}catch(e){if(!E.VE)throw SxT(H,e);return pQM(H,G,e)}}; aQv=function(H,E,G,P,Q,e,w){var t=new g.il;nLd.push(t);E&&t.listen("complete",E);t.So("ready",t.Pd);e&&(t.p_=Math.max(0,e));w&&(t.B=w);t.send(H,G,P,Q)}; ke=function(H,E){if(H.L){H.C&&(clearTimeout(H.C),H.C=null);var G=H.L;H.L=null;E||H.dispatchEvent("ready");try{G.onreadystatechange=null}catch(P){}}}; OXQ=function(H){var E=yl(H.L)>>>0;return mmu(H.L,E)}; KFl=function(H,E,G){function P(){if(I)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 t} function Q(u){if(typeof u!=="function")throw Error("Expected the listener to be a function. Instead, received: '"+typeof u+"'");if(I)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 v=!0;W===k&&(W=k.slice());W.push(u);return function(){if(v){if(I)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."); v=!1;W===k&&(W=k.slice());W.splice(W.indexOf(u),1);k=null}}} function e(u){if(typeof u!=="object"||u===null)var v=!1;else{for(v=u;Object.getPrototypeOf(v)!==null;)v=Object.getPrototypeOf(v);v=Object.getPrototypeOf(u)===v}if(!v)throw Error("Actions must be plain objects. Instead, the actual type was: '"+typeof u+"'. 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 u.type==="undefined")throw Error('Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(I)throw Error("Reducers may not dispatch actions.");try{I=!0,t=w(t,u)}finally{I=!1}v=k=W;for(var n=0;n0&&H.api.getPlayerSize().width<=e;H.api.U("delhi_modern_web_player")?E=H.api.getPlayerSize().width<=528?e?56:64:H.T?e?72:96:e?56:72:H.T?E=54:g.L3(Q)&& !Q.W&&(E=40);H.Jm=E}}}; svQ=function(H,E,G){hwn(H);HT(H,G);HT(H,~G);v3.Xn(H.JK,H.window,E,G,H.pending);H.pending+=G}; Aa=function(H,E){ki.call(this,H,2,E)}; RUd=function(H,E,G){G!=null&&G.FV||(H.gs=[]);H.policy.F2?(E=g.eS(H.i4,{startTimeMs:E*1E3},function(P,Q){return P.startTimeMs-Q.startTimeMs}),H.L!==E&&(H.L=-1,H.G=void 0)):(qkl(H,!0),H.L=uWl(H.i4,E*1E3))}; yE=function(H,E,G){g.Z0.call(this);var P=this;this.S=H;this.Jm=E;this.C6=G;this.hm=NaN;this.WF=this.eR=this.playButton=this.D=this.T=this.z$=this.O7=this.p_=this.L_=this.muteButton=this.B=this.Yp=this.Er=this.MZ=null;this.G=new tx(this.S);this.progressBar=new g.tK(this.S,this.Jm);this.S2=new g.Q$(this.S,this.Jm);this.BF=new mQ(this.S,this.Jm);this.N=new g.tr(this.yX,null,this);G=H.K();this.C6.subscribe("autohideupdate",this.hZ,this);var Q=!H.getPlayerStateObject().isCued(),e;(this.s7=!H.U("delhi_modern_web_player")&& H.K().U("html5_player_dynamic_bottom_gradient"))?this.Yp=e=new uP(H):e=new g.D({J:"div",Y:"ytp-gradient-bottom"});g.d(this,e);g.as(H,e.element,9);this.PF=new g.NB(e,250,Q,100);g.d(this,this.PF);this.L=new g.D({J:"div",Y:"ytp-chrome-bottom",V:[{J:"div",Y:"ytp-chrome-controls"}]});g.d(this,this.L);g.as(H,this.L.element,9);this.E7=new g.NB(this.L,250,Q,100);g.d(this,this.E7);this.T$=this.L.element.children[0];g.d(this,this.G);g.as(H,this.G.element,6);this.G.subscribe("show",function(W){P.S.Hv(!W);H.rB(P.G, W)}); g.d(this,this.progressBar);this.progressBar.mx(this.L.element,0);Q=new Jr(H,E);g.d(this,Q);g.as(H,Q.element,4);Q=new g.vN({J:"div",Y:"ytp-left-controls"});g.d(this,Q);Q.mx(this.T$);H.U("delhi_modern_web_player")||(e=new g.MY(H,E,!1),g.d(this,e),e.mx(Q.element));H.U("web_render_jump_buttons")&&(this.L_=new OR(H,-10),g.d(this,this.L_),this.L_.mx(Q.element));G.z$||(this.playButton=new g.Hz(H,E),g.d(this,this.playButton),this.playButton.mx(Q.element));H.U("web_render_jump_buttons")&&(this.p_=new OR(H, 10),g.d(this,this.p_),this.p_.mx(Q.element));H.U("delhi_modern_web_player_remove_nav_buttons")||(H.U("delhi_modern_web_player")&&(e=new g.MY(H,E,!1),g.d(this,e),e.mx(Q.element)),e=new g.MY(H,E,!0),g.d(this,e),e.mx(Q.element));if(!H.U("delhi_modern_web_player")||H.U("delhi_modern_web_player_horizontal_volume_controls"))if(e=new g.D({J:"span",Y:"ytp-volume-area"}),g.d(this,e),e.mx(Q.element),!G.ML&&(this.muteButton=new dN(H,E),g.d(this,this.muteButton),this.muteButton.mx(e.element),G.O7&&!G.B)){var w= new Dd(H,this.L.element);this.eR=w;g.d(this,w);w.mx(e.element);e=new g.DO(e.element);g.d(this,e);e.subscribe("hoverstart",function(){var W;(W=P.eR)==null||JmU(W,!0)}); e=new g.DO(Q.element);g.d(this,e);e.subscribe("hoverend",function(){var W;(W=P.eR)==null||JmU(W,!1)})}H.U("delhi_modern_web_player_lhs_volume_controls")&&!H.U("delhi_modern_web_player_horizontal_volume_controls")&&(Q.element.classList.add("ytp-left-controls-with-volume"),this.muteButton=new dN(H,E),g.d(this,this.muteButton),this.muteButton.mx(Q.element),this.muteButton.element.classList.add("ytp-standalone-mute-button")); g.d(this,this.S2);this.S2.mx(Q.element);this.O7=new zV(H,this.progressBar);g.d(this,this.O7);this.O7.mx(Q.element);G.U("web_key_moments_markers")&&(this.z$=new nZ(H,this.progressBar),g.d(this,this.z$),this.z$.mx(Q.element));H.U("delhi_modern_web_player")?this.W=new g.vN({J:"div",Y:"ytp-right-controls",V:[{J:"div",Y:ay.RIGHT_CONTROLS_LEFT},{J:"div",Y:ay.RIGHT_CONTROLS_RIGHT}]}):this.W=new g.vN({J:"div",Y:"ytp-right-controls"});g.d(this,this.W);this.W.mx(this.T$);H.U("delhi_modern_web_player")&&(this.B= new OE(H),g.d(this,this.B),this.B.mx(this.W.HF(ay.RIGHT_CONTROLS_LEFT)),H.U("delhi_modern_web_player_lhs_volume_controls")||H.U("delhi_modern_web_player_horizontal_volume_controls")||(this.muteButton=new dN(H,E),g.d(this,this.muteButton),this.muteButton.mx(this.W.HF(ay.RIGHT_CONTROLS_LEFT))));this.au=new rz(H,E);g.d(this,this.au);KZ(this,this.au,"RIGHT_CONTROLS_LEFT");this.settingsButton=new j9(H,this.G);g.d(this,this.settingsButton);rmq(this.G,this.settingsButton);KZ(this,this.settingsButton,"RIGHT_CONTROLS_LEFT"); Q=H.getVideoData();if(G.Vf||Q.Xg&&G.controlsType==="1")this.T=new cN(H,E),g.d(this,this.T),this.T.mx(this.W.element);G.showMiniplayerButton&&!H.U("web_player_miniplayer_in_context_menu")&&(this.D=new NY(H),g.d(this,this.D),KZ(this,this.D,"RIGHT_CONTROLS_RIGHT"));G.xx&&(E=new ds(H,this.G),g.d(this,E),KZ(this,E,"RIGHT_CONTROLS_RIGHT"));G.kS&&(E=new WZ(H),g.d(this,E),KZ(this,E,"RIGHT_CONTROLS_RIGHT"));g.d(this,this.BF);KZ(this,this.BF,"RIGHT_CONTROLS_RIGHT");g.d(this,this.N);this.Z(H,"appresize",this.h7); this.Z(H,"fullscreentoggled",this.h7);var t;(t=this.B)==null||t.subscribe("small-mode-expand-right-bottom-controls",function(){BCj(P)}); var k;(k=this.B)==null||k.subscribe("small-mode-collapse-right-bottom-controls",function(){BCj(P)}); this.Z(H,"presentingplayerstatechange",this.on);this.Z(H,"videodatachange",this.onVideoDataChange);this.h7()}; bP=function(H){this.value=H}; g.iP=function(H){return H instanceof g.TE?H.clone():new g.TE(H)}; g.S5=function(H,E){for(var G,P,Q=1;Q>3==1){E=(E%G[h[4]]+G[h[4]])%G[h[4]];var P=G[0];G[0]=G[E];G[E]=P;var Q=[E,G]}if((H-5|24)>=H&&H+4>>1>>0&255);H.L.push(E>>>8&255);H.L.push(E>>>16&255);H.L.push(E>>>24&255)}; AG1=function(H,E){if(H.Wr.W.currentState<2){var G=Hx(E,H.Da);G==="error"?H.callback.f6(H.slot,H.layout,new Xf("Player transition with error during SSAP composite layout.",{playerErrorCode:"non_video_expired",transitionReason:E},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):rC(H.Ou,H.layout,G)}}; fNQ=function(H){function E(){for(;P=H.stack.pop();)try{if(!P.async&&Q===1)return Q=0,H.stack.push(P),Promise.resolve().then(E);if(P.dispose){var e=P.dispose.call(P.value);if(P.async)return Q|=2,Promise.resolve(e).then(E,function(w){G(w);return E()})}else Q|=1}catch(w){G(w)}if(Q===1)return H.hasError?Promise.reject(H.error):Promise.resolve(); if(H.hasError)throw H.error;} function G(e){H.error=H.hasError?new SuppressedError(e,H.error,"An error was suppressed during disposal."):e;H.hasError=!0} var P,Q=0;E()}; JE7=function(){var H=window.location.protocol,E=gi.getEntriesByType("resource");E=g.W2(E,function(G){return G.name.indexOf(H+"//fonts.gstatic.com/s/")===0}); (E=Pv(E,function(G,P){return P.duration>G.duration?P:G},{duration:0}))&&E.startTime>0&&E.responseEnd>0&&(Zc("wffs",E2(E.startTime)),Zc("wffe",E2(E.responseEnd)))}; mlT=function(H){for(var E=g.R(H.W),G=E.next();!G.done;G=E.next())G=G.value,G.detach(),g.Vq(G);H.W=[]}; Px=function(H,E){E=E?E.nZ:!1;H.D||(H.D=G0(32,H.W,E));return H.D}; upQ=function(H,E){var G={};if(E=H.app.PY(E===void 0?1:E)){E=E.getVideoData();if(Q9(E))return{};G.video_id=E.videoId;G.author=E.author;G.title=E.title;G.isPlayable=s2(E);G.errorCode=E.errorCode;if(E.W&&E.W.video){G.video_quality=E.W.video.quality;E=E.W.video;var P=[];E.fps>32&&P.push("hfr");E.isHdr()&&P.push("hdr");E.primaries==="bt2020"&&P.push("wcg");G.video_quality_features=P}}if(H=H.getPlaylistId())G.list=H;return G}; o8=function(H,E,G){G=G===void 0?null:G;var P=P===void 0?0:P;return new Af(g.hE(H.X.experiments,E)||P,G?H.X.U(G):!1)}; eE=function(){return g.Un("yt.gcf.config.coldConfigGroup")}; tu=function(H){this.L=H}; vcv=function(H,E,G,P){E={P4:E,H4:G,uI:H.playback.getCurrentTime(),wLR:P};w4(H,E)}; hi=function(H,E){var G={sv:"968"};lq!==null&&(G.v=lq);G.cb=Mtj;G.nas=cY.L.length;G.msg=H;E!==void 0&&(H=iru(E))&&(G.e=Zl[H]);return G}; dlt=function(H){var E;return g.L(function(G){if(G.L==1){if(!H.aM.wpc)throw new jg(30,"NWA");return H.L?G.return(H.L):g.U(G,H.aM.wpc(),2)}E=G.W;H.L=new oh(E);return G.return(H.L)})}; Dlu=function(H){var E=g.tf("LOGGED_IN",function(G){H.apply(void 0,arguments);g.$O(E)})}; Bp=function(H,E){return E===void 0?H.L!==qq&&!!(2&(H.VN[c9]|0)):!!(2&E)&&H.L!==qq}; g.i8=function(H,E){var G=G===void 0?0:G;var P=new ncM;oS(P,2,ti(H));H=aSq[E];if(typeof H==="undefined")throw G=new g.LN("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:E}),g.h3(G),G;tb(P,4,H);tb(P,5,1);E=new Uint8Array(P.L.buffer,P.L.byteOffset,P.pos);return encodeURIComponent(g.H4(E,G))}; uBd=function(H,E){vZq(H.L,E,function(){return{WBN:0,wN:void 0,aI:-1,jw:-1,bF:-1,VV:-1,yV:-1,OT:-1,sX:-1,xU:-1,ju:-1,position:void 0,Zc:void 0,q0:[]}}); H.L[E]=Ozd(H)}; rm=function(H){var E=g.Un("yt.scheduler.instance.setPriorityThreshold");E&&E(H)}; jfn=function(H,E,G,P,Q,e,w){E=G-E;Q?(Q instanceof g.rr&&(Q.type==="QUOTA_EXCEEDED"||Q.type==="QUOTA_MAYBE_EXCEEDED")&&yd("QUOTA_EXCEEDED",{dbName:b5(H.L.name),objectStoreNames:e,transactionCount:H.transactionCount,transactionMode:w.mode}),Q instanceof g.rr&&Q.type==="UNKNOWN_ABORT"&&(G-=H.G,G<0&&G>=2147483648&&(G=0),yd("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:e,transactionDuration:E,transactionCount:H.transactionCount,dbDuration:G}),H.W=!0),KPn(H,!1,P,e,E,w.tag),D2(Q)):KPn(H,!0,P,e,E, w.tag)}; Wx=function(){this.done=!1;this.L={ZV:0,At:0,DbN:0,w3:0,qY:-1,OJ:0,IB:0,zE:0,DIa:0};this.T=null;this.C=!1;this.G=null;this.B=0;this.W=new kO(this)}; cGq=function(H,E){return H.lJ.U("html5_use_network_error_code_enums")&&E.details.rc===403||E.details.rc==="403"?(H=E.errorCode,H==="net.badstatus"||H==="manifest.net.retryexhausted"):!1}; g.vx=function(H,E,G,P,Q,e){Q=Q===void 0?!1:Q;e=e===void 0?{}:e;Object.assign(e,fX({cttAuthInfo:pX(E)||void 0},E));for(var w=g.R(P),t=w.next();!t.done;t=w.next()){t=t.value;var k=t.getAsJson();(g.ZR(k)||!k.trackingParams&&!k.veType)&&g.p5(Error("Child VE logged with no data"));if(g.Xj("no_client_ve_attach_unless_shown")){var W=CZ(t,E);if(k.veType&&!I8.has(W)&&!Ai.has(W)&&!Q){if(!g.Xj("il_attach_cache_limit")||m5.size<1E3){m5.set(W,[H,E,G,t]);return}g.Xj("il_attach_cache_limit")&&m5.size>1E3&&g.p5(new g.LN("IL Attach cache exceeded limit"))}t= CZ(G,E);m5.has(t)?uj(G,E):Ai.set(t,!0)}}P=P.filter(function(I){I.csn!==E?(I.csn=E,I=!0):I=!1;return I}); G={csn:E,parentVe:G.getAsJson(),childVes:g.wH(P,function(I){return I.getAsJson()})}; E==="UNDEFINED_CSN"?S$("visualElementAttached",e,G):H?Hg("visualElementAttached",G,H,e):g.HY("visualElementAttached",G,e)}; tb=function(H,E,G){G!==void 0&&($G(H,E*8),$G(H,G))}; Ft=function(H,E){var G=setTimeout(function(){H.G.resolve()},E); H.addOnDisposeCallback(function(){return void clearTimeout(G)})}; lB=function(H){H.N=!1;H.B.isActive()&&UI(H);H.B.stop();H.YX(!1)}; Tg=function(H){H||(H=document.location.href);H=g.AL(H)[1]||null;return H!==null&&H==="https"}; bx=function(H,E){E=Math.max(Math.max(1,Math.ceil(H.policy.D/Mh(H))),E);return Math.min(Math.min(8,Math.floor(H.policy.L_/Mh(H))),E)}; d4=function(H){var E=(0,g.ON)();H.yj=E}; DL=function(H){return H!=null&&H>=0&&H<=1}; g.rl=function(H,E){if(H.classList)Array.prototype.forEach.call(E,function(Q){g.aG(H,Q)}); else{var G={};Array.prototype.forEach.call(Nr(H),function(Q){G[Q]=!0}); Array.prototype.forEach.call(E,function(Q){G[Q]=!0}); E="";for(var P in G)E+=E.length>0?" "+P:P;g.Ve(H,E)}}; dW=function(H){return H&128?bp:void 0}; NIM=function(){return"av.default_js".includes("ima_html5_sdk")?{PR:"ima",E0:null}:"av.default_js".includes("ima_native_sdk")?{PR:"nima",E0:null}:"av.default_js".includes("admob-native-video-javascript")?{PR:"an",E0:null}:"youtube.player.web_20251013_21_RC00".includes("cast_js_sdk")?{PR:"cast",E0:kw()}:"youtube.player.web_20251013_21_RC00".includes("youtube.player.web")?{PR:"yw",E0:kw()}:"youtube.player.web_20251013_21_RC00".includes("outstream_web_client")?{PR:"out",E0:kw()}:"youtube.player.web_20251013_21_RC00".includes("drx_rewarded_web")? {PR:"r",E0:kw()}:"youtube.player.web_20251013_21_RC00".includes("gam_native_web_video")?{PR:"n",E0:kw()}:"youtube.player.web_20251013_21_RC00".includes("admob_interstitial_video")?{PR:"int",E0:kw()}:{PR:"j",E0:null}}; yGs=function(H){return H===-0x8000000000000?"BEFORE_MEDIA_START":H===0?"MEDIA_START":H===0x7ffffffffffff?"MEDIA_END":H===0x8000000000000?"AFTER_MEDIA_END":H.toString()}; a8=function(H,E,G,P){function Q(){return e.W} g.J.call(this);var e=this;H.K().experiments.xp("html5_dispose_of_manager_before_dependency")?(this.L=$n7(Q,H,E,G,P),this.W=(new nc(this.L)).G(),g.d(this,this.W),g.d(this,this.L)):(this.L=$n7(Q,H,E,G,P),g.d(this,this.L),this.W=(new nc(this.L)).G(),g.d(this,this.W))}; cj=function(H,E){this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED";this.triggerId=E||H(this.triggerType)}; edv=function(H){var E=bzw(H);H=H.defaultView;return new g.oG((H==null?void 0:H.pageXOffset)||E.scrollLeft,(H==null?void 0:H.pageYOffset)||E.scrollTop)}; izv=function(H,E){var G,P;BL(H.SR.get(),"ads_imp","cpn."+Zi(H.layout.clientMetadata,"metadata_type_content_cpn")+";acpn."+((G=xn(H.C_.get(),2))==null?void 0:G.clientPlaybackNonce)+";clr."+E+";skp."+!!g.X((P=Zi(H.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"))==null?void 0:P.skipOrPreviewRenderer,O2))}; q5j=function(H,E){tb(H,1,E.videoCodec);tb(H,3,E.maxHeight);tb(H,4,E.maxWidth);tb(H,11,E.maxFramerate);tb(H,12,E.maxBitrateBps);Kc(H,15,E.is10BitSupported)}; jE=function(H){var E=PK(H),G=PK(H);H=(G>>31)*2+1;var P=G>>>20&2047;E=4294967296*(G&1048575)+E;return P==2047?E?NaN:H*Infinity:P==0?H*4.9E-324*E:H*Math.pow(2,P-1075)*(E+4503599627370496)}; iY=function(){return!(!md||!md.performance)}; g.rp=function(H){this.ze=H}; cx=function(){return jX||cD?!!N2&&!!N2.platform:!1}; b7=function(H,E){E=E===void 0?[]:E;g.nT(H,function(G,P){var Q=P.Xo-G.Xo;if(!G.dO()||!P.dO())return Q;var e=P.video.height*P.video.width-G.video.height*G.video.width;!e&&E&&E.length>0&&(G=E.indexOf(G.K_)+1,P=E.indexOf(P.K_)+1,e=G===0||P===0?P||-1:G-P);e||(e=Q);return e})}; RmM=function(H,E,G){E=Wk(H,E);G||E?E&&(H.G=!0):H.G=!1;H.B=H.policy.G===2||H.policy.G===3&&H.G}; WQ=function(H){switch(H.W){case 0:H.W!=0?WQ(H):Nh(H.L);break;case 1:H=H.L;EV(H,H.L+8);break;case 2:if(H.W!=2)WQ(H);else{var E=yl(H.L)>>>0;H=H.L;EV(H,H.L+E)}break;case 5:H=H.L;EV(H,H.L+4);break;case 3:E=H.G;do{if(!Ii7(H))throw Error();if(H.W==4){if(H.G!=E)throw Error();break}WQ(H)}while(1);break;default:throw Error();}}; g.y9=function(H){var E=[];if(H.displayName)E.push(H.displayName);else{var G=H.languageName||"";E.push(G);H.kind==="asr"&&G.indexOf("(")===-1&&E.push(" (Automatic Captions)");H.name&&E.push(" - "+H.name)}H.translationLanguage&&E.push(" >> "+H.translationLanguage.languageName);return E.join("")}; bj=function(H){return H&&"status"in H?H.status:-1}; JGU=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"standardControlsInitialized",function(){var G=new ij(H);g.d(E,G);H.Vq(G,"RIGHT_CONTROLS_LEFT")})}; rGQ=function(H,E,G,P){H.L&&H.L.dispose();H.L=new g.Wt(H.t7,E,H);g.d(H,H.L);P=Dw(P);E=P==null?void 0:P.navigationEndpoint;var Q;P=P==null?void 0:(Q=P.icon)==null?void 0:Q.iconType;var e;Q=(e=g.X(E,g.nR))==null?void 0:e.url;H.S.setTrackingParams(H.element,(E==null?void 0:E.clickTrackingParams)||null);E&&!Q?(H.innertubeCommand=E,Q="#!"):H.innertubeCommand=null;var w;H.W.update({href:(w=Q)!=null?w:"#",text:G,icon:P==="MONEY_HAND"?{J:"svg",j:{fill:"none",height:"100%",viewBox:"0 0 24 24",width:"100%"}, V:[{J:"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:Q||H.innertubeCommand?g.sx():null})}; BIM=function(H){if(!H.D){var E=H.L[H.W];H.D=new DataView(E.buffer,E.byteOffset,E.length)}return H.D}; zQv=function(H,E,G,P){var Q,e,w,t,k,W;return g.L(function(I){switch(I.L){case 1:return e=(Q=Error().stack)!=null?Q:"",g.U(I,g.De(),2);case 2:w=I.W;if(!w)throw t=g.Xs("openDbImpl",H,E),g.Xj("ytidb_async_stack_killswitch")||(t.stack=t.stack+"\n"+e.substring(e.indexOf("\n")+1)),D2(t),t;ni(H);k=G?{actualName:H,publicName:H,userIdentifier:void 0}:Y5t(H);g.EY(I,3);return g.U(I,Xg1(k,w),5);case 5:return g.U(I,ZzT(k.actualName,E,P),6);case 6:return I.return(I.W);case 3:return W=g.vo(I),g.EY(I,7),g.U(I,qh(k.actualName, w),9);case 9:g.pA(I,8);break;case 7:g.vo(I);case 8:throw W;}})}; xLw=function(){return{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{d:"M20 20C20.26 20 20.51 19.89 20.70 19.70C20.89 19.51 21 19.26 21 19V5C21 4.73 20.89 4.48 20.70 4.29C20.51 4.10 20.26 4 20 4C19.73 4 19.48 4.10 19.29 4.29C19.10 4.48 19 4.73 19 5V19C19 19.26 19.10 19.51 19.29 19.70C19.48 19.89 19.73 20 20 20ZM5.04 19.77L18 12L5.04 4.22C4.84 4.10 4.60 4.03 4.36 4.03C4.12 4.03 3.89 4.09 3.68 4.21C3.47 4.32 3.30 4.49 3.18 4.70C3.06 4.91 2.99 5.14 3 5.38V18.61C2.99 18.85 3.06 19.08 3.18 19.29C3.30 19.50 3.47 19.67 3.68 19.79C3.89 19.90 4.12 19.96 4.36 19.96C4.60 19.96 4.84 19.89 5.04 19.77Z", fill:"white"}}]}}; C1t=function(H){var E=R8(H.audioTrack,!0)*1E3;H=R8(H.videoTrack,!0)*1E3;return{lL:E,IU:H}}; Ji=function(H){gcw.call(this,Error(H),{message:H})}; Mr=function(H,E){var G={type:E.slotType,controlFlowManagerLayer:LPt.get(E.f_)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};E.slotEntryTrigger&&(G.entryTriggerType=E.slotEntryTrigger.triggerType);E.slotPhysicalPosition!==1&&(G.slotPhysicalPosition=E.slotPhysicalPosition);if(H){G.debugData={slotId:E.slotId};if(H=E.slotEntryTrigger)G.debugData.slotEntryTriggerData=r4(H);H=E.slotFulfillmentTriggers;G.debugData.fulfillmentTriggerData=[];H=g.R(H);for(var P=H.next();!P.done;P=H.next())G.debugData.fulfillmentTriggerData.push(r4(P.value)); E=E.slotExpirationTriggers;G.debugData.expirationTriggerData=[];E=g.R(E);for(H=E.next();!H.done;H=E.next())G.debugData.expirationTriggerData.push(r4(H.value))}return G}; lSd=function(H){return H.S.K().experiments.xp("enable_progres_commands_lr_feeds")}; YO=function(H,E,G){for(G=G===void 0?!1:G;H.D1)throw new dQ;H=H.id;hW7(H);hO=jD(H);$ow(18E5,2);return H}; xlq=function(H,E){if(E.title){var G=g.b_(E.title);H.updateValue("title",G)}if(E.dialogMessages){G=g.R(E.dialogMessages);for(var P=G.next();!P.done;P=G.next())P=d9(P.value),H.WF.appendChild(P)}E.cancelLabel&&(G=g.b_(E.cancelLabel),H.updateValue("cancelLabel",G),H.L.Z(H.D,"click",function(Q){return H.DF(Q)})); E.confirmLabel&&(E=g.b_(E.confirmLabel),H.updateValue("confirmLabel",E),H.L.Z(H.T,"click",function(Q){return H.Ut(Q)})); H.L.Z(H.N,"click",function(Q){return H.Sa(Q)})}; ZL=function(H,E,G){if(H==null)throw new TypeError("The 'this' value for String.prototype."+G+" must not be null or undefined");if(E instanceof RegExp)throw new TypeError("First argument to String.prototype."+G+" must not be a regular expression");return H+""}; TI1=function(H){for(var E=H.suggestionData.length,G=0;G=H.L.byteLength}; lj=function(H){this.VN=tz(H)}; U2=function(H){this.u3=H}; ER=function(H){this.VN=tz(H)}; VtT=function(H){var E,G;H=(E=H.L)==null?void 0:(G=E.bannerData)==null?void 0:G.itemData;var P,Q,e;return(H==null||!H.affiliateDisclaimer)&&(H==null?0:(P=H.exclusivesData)==null?0:P.exclusiveOfferLabelText)&&(H==null?0:(Q=H.exclusivesData)==null?0:Q.expirationTimestampMs)&&(H==null?0:(e=H.exclusivesData)==null?0:e.exclusiveOfferCountdownText)?!0:!1}; g.xO=function(){}; S5Q=function(H,E,G){this.layoutId=E;this.offsetMs=G;this.triggerType="TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER";this.triggerId=H(this.triggerType)}; pgs=function(H,E,G){var P={mZ:H.mZ,jN:function(k,W){H.Fo.ZJ(k,W)}, KL:H.policy.KZ,L9:H.policy.G};H.mZ.W.C&&(P.Gy=(H.videoTrack.uJ.info.Xo||0)+(H.audioTrack.uJ.info.Xo||0));H.policy.fL&&(P.lk=H.audioTrack.uJ.index.fQ(),P.KL=!1);var Q=FPt(E,H.policy,H.D)?2:1;Q!==H.WF&&(H.WF=Q,Yjt(H));G=fSj(H,G);if(H.policy.p_&&H.policy.G&&G.Xx){for(var e=Q="",w=g.R(G.Xx),t=w.next();!t.done;t=w.next())t=t.value,H.videoData.sabrContextUpdates.has(t)||H.policy.p_&&G.pJ&&G.pJ.type===t?Q+="_"+t:e+="_"+t;H.loader.g5("sabrbldrqs",{ctxts:Q,misctxts:e})}!E.setData(G,H.policy,H.D)&&H.policy.p_&& H.loader.handleError("player.exception",{reason:"buildsabrrequestdatafailed"},1);P=new JU(H.policy,E,H.ou,H.D,H,P,H.loader.nT());z0(H.timing);H.policy.B&&H.loader.g5("sabrcrq",{rn:P.tR(),probe:E.C1()});return P}; c9q=function(H){return H.map(function(E){return new T0(E.id,"application/x-mpegURL",{CP:E.CP})})}; V9=function(H){g.D.call(this,{J:"div",QN:["ytp-more-videos-button","ytp-button"],j:{title:"{{title}}",role:"button",tabindex:"0","aria-hidden":"true"},V:[{J:"div",Y:"ytp-more-videos-button-thumbnail"},{J:"span",Y:"ytp-more-videos-button-title",iJ:"{{title}}"}]});this.S=H;this.W=this.HF("ytp-more-videos-button-thumbnail");this.G=this.HF("ytp-more-videos-button-title");this.L=new g.Z0(this);g.d(this,this.L);this.L.Z(this.S,"videodatachange",this.Pu);this.Pu();this.listen("click",this.onClick);H7M(this, 0);this.hide()}; PNu=function(H,E){function G(e){return P.p_!=="yt"&&(Q.partnerId===38&&P.playerStyle==="books"||Q.partnerId===30&&P.playerStyle==="docs"||Q.partnerId===33&&P.playerStyle==="google-live")?Efn(H,Q,e):f9d(H,Q).then(function(){P.U("embeds_enable_shorts")&&H.K().xZ&&Q.isEmbedsShortsMode(new g.P4(0,0),!!Q.playlistId)?Ggq(H,Q):SE(H,Q)},function(w){SE(H,Q,!0); throw w;})} E=E===void 0?H.K().schedule:E;var P=H.K(),Q=H.getVideoData();Q.Iu();Q.loading=!0;return ppv(H)?xQn(H,Q,E).then(function(){SE(H,Q)},function(e){e=ms(e); if(uN(e.severity))return SE(H,Q,!0),Promise.reject(e);e.errorCode==="onesie.response.badproxystatus"&&""+e.details.st==="3"&&(fyu=!0);H.handleError(e);return G("onesie")}):G("gvi")}; wuU=function(H){var E;if(!QuM.test("div"))throw Error("");if(sus.indexOf("DIV")!==-1)throw Error("");var G="":(H=HWw(E.map(function(P){return P instanceof P3?P:sk(String(P))})),G+=">"+H.toString()+""); return QR(G)}; fc=function(H,E,G){for(var P=[],Q=[],e=0;eG||(P.push(Math.max(E,H.start(e))-E),Q.push(Math.min(G,H.end(e))-E));return FK(P,Q)}; Tt=function(H){this.VN=tz(H)}; pc=function(){j$.apply(this,arguments)}; C5=function(H,E){return H>E?1:H>6|192;else{if(e>=55296&&e<=57343){if(e<=56319&&Q=56320&&w<=57343){e=(e-55296)*1024+ w-56320+65536;P[G++]=e>>18|240;P[G++]=e>>12&63|128;P[G++]=e>>6&63|128;P[G++]=e&63|128;continue}else Q--}if(E)throw Error("Found an unpaired surrogate");e=65533}P[G++]=e>>12|224;P[G++]=e>>6&63|128}P[G++]=e&63|128}}H=G===P.length?P:P.subarray(0,G)}return H}; Hh=function(H){this.VN=tz(H)}; kg7=function(H,E){H.W[E]||(H.W[E]=new EJ);return H.W[E]}; Gd=function(H){an.call(this,H===void 0?"none":H);this.L=null;this.G=10;this.transitions=[{from:"none",to:"application_navigating",action:this.T},{from:"application_navigating",to:"none",action:this.C},{from:"application_navigating",to:"application_navigating",action:function(){}}, {from:"none",to:"none",action:function(){}}]}; Ph=function(H,E,G){for(;Tz(H,E);){var P=VQ(H,E);if(P.type===G)return P;E+=P.size}return null}; var Wsv=function(H){return qF[h[7]](this,26,H)}; I5Q=function(H,E,G,P,Q){this.Fg=H;this.SR=E;this.aq=G;this.L=P;this.im=Q}; Axu=function(H){if(!H.stack)return!0;var E=!H.stack.includes("\n");return E&&H.stack.includes("ErrorType: ")||E&&H.stack.includes("Anonymous function (Unknown script")||H.stack.toLowerCase()==="not available"||H.fileName==="user-script"||H.fileName.startsWith("user-script:")?!0:!1}; QT=function(H){return[H.top,H.left,H.bottom,H.right]}; D5=function(H){var E=H.length,G=E*3/4;G%3?G=Math.floor(G):g.f3("=.",H[E-1])&&(G=g.f3("=.",H[E-2])?G-2:G-1);var P=new Uint8Array(G),Q=0;m0q(H,function(e){P[Q++]=e}); return Q!==G?P.subarray(0,Q):P}; wK=function(H,E,G){var P=H.videoData.W,Q=H.videoData.D,e=H.lJ.U("html5_disable_codec_fallback_for_drm")&&H.videoData.Gq();OV(H.Fo.getVideoData())&&H.lJ.U("html5_gapless_fallback_on_qoe_restart")&&uyT(H.Fo,"pe");if((E==="progressive.net.retryexhausted"||E==="fmt.unplayable"||E==="fmt.decode")&&!H.Fo.VA.T&&P&&P.itag==="22")return H.Fo.VA.T=!0,H.Di("qoe.restart",{reason:"fmt.unplayable.22"}),H.Fo.Nn(),!0;var w=!1;if(H.videoData.isExternallyHostedPodcast){if(w=H.videoData.N_)G.mimeType=w.type,H.g5("3pp", {url:w.url});G.ns="3pp";H.Fo.kq(E,1,"VIDEO_UNAVAILABLE",gt((new g.q$(E,G,1)).details));return!0}var t=H.du+3E4<(0,g.ON)()||H.L.isActive();if(H.lJ.U("html5_empty_src")&&H.videoData.isAd()&&E==="fmt.unplayable"&&/Empty src/.test(""+G.msg))return G.origin="emptysrc",H.Di("auth",G),!0;t||vfw(H.Fo.Rs())||(G.nonfg="paused",t=!0,H.Fo.pauseVideo());(E==="fmt.decode"||E==="fmt.unplayable")&&(Q==null?0:mi(Q)||us(Q))&&(n7v(H.lJ.T,Q.K_),G.acfallexp=Q.K_,w=t=!0);!t&&H.G>0&&(H.L.start(),t=!0,G.delayed="1",--H.G); Q=H.Fo.loader;t||!((P==null?0:GV(P))||(P==null?0:uh(P)))||e||(n7v(H.lJ.T,P.K_),w=t=!0,G.cfallexp=P.K_);if(!t)return M17(H,G);e=!1;H.T?H.du=(0,g.ON)():e=H.T=!0;t=H.videoData;if(t.PF){t=t.PF.YL();var k=Date.now()/1E3+1800;t=t1)H.D=!0;if((Q===void 0?0:Q)||isNaN(H.W))H.W=E;if(H.L)E!==H.mediaTime&&(H.L=!1);else if(E>0&&H.mediaTime===E){Q=1500;if(H.X.U("html5_buffer_underrun_transition_fix")){Q=g.hE(H.X.experiments,"html5_min_playback_advance_for_steady_state_secs");var e=g.hE(H.X.experiments,"html5_min_underrun_buffered_pre_steady_state_ms");Q=Q>0&&e>0&&Math.abs(E-H.W)(P||!H.D?Q:400)}H.mediaTime=E;H.G=G;return!1}; nfU=function(H,E,G){H.noneOfTheAbove=new hy(H.api,H.layoutId,H.interactionLoggingClientData,H.vF);H.noneOfTheAbove.mx(H.answers);H.noneOfTheAbove.init(PL("survey-none-of-the-above"),E,G)}; O7j=function(H){return $K(function(){var E;return(E=H.GH.get("asmjs"))!=null?E:a5l(H)})}; ty=function(H){return H.zT?H.zT-(H.N||H.timestampOffset):0}; AB=function(){if(!kK){var H=kK=new Ks7;H.v5.length=0;H.W5.length=0;juv(H,cxq)}return kK}; WLl=function(H){var E=Wh();H=E?E.createScript(H):H;return new $A(H)}; Ix=function(H,E,G){H.cpn&&(E=g.eB(E,{cpn:H.cpn}));G&&(E=g.eB(E,{paired:G}));return E}; NPQ=function(H){return{Gv:hU(H,1),X6:hU(H,2),minReadaheadMs:hU(H,3)}}; i7s=function(H,E){E.push('"',H.replace(yx1,function(G){var P=b7T[G];P||(P="\\u"+(G.charCodeAt(0)|65536).toString(16).slice(1),b7T[G]=P);return P}),'"')}; Iu=function(H,E){E=E===void 0?[]:E;var G={MI:H.MI||"_",Ek:H.Ek||[],Vj:H.Vj|0,Hr:H.Hr,dk:H.dk||function(){}, h3:H.h3||function(e,w){return qds(e,w,G.dk,G.Hr)}},P=G.h3("51",G.Ek.concat(E)); HI.call(this,{F8R:new Rzn(P),errorCount:new Y4s(P),eventCount:new Jx7(P),Ew:new eZw(P),DM5:new rxQ(P),HW_:new $lM(P),Wd:new npQ(P),JRa:new BPv(P)},G.MI);var Q=this;this.kV={Bk:function(){return Q.options.Ek.concat(Q.D).sort(function(e,w){return e-w})}}; this.options=G;this.service=P;this.G=!H.h3;this.L=new Ydn(function(){return void Q.service.Rc()},G.Vj); this.addOnDisposeCallback(function(){Q.L.dispose();Q.G&&Q.service.dispose()}); g.nT(this.D=E.slice())}; EQq=function(H){return Ay.includes("en")?H?HA():{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:H?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24", width:"24"},V:[{J:"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"}}]}:{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{d:"M5,11h2v2H5V11z M15,15H5v2h10V15z M19,15h-2v2h2V15z M19,11H9v2h10V11z M22,6H2v14h20V6z M3,7h18v12H3V7z",fill:"white"}}]}}; kx=function(H){return function(){return new H}}; mz=function(H,E){var G=hG();g.nw.call(this,H,{J:"div",Y:"ytp-info-panel-detail-skrim",V:[{J:"div",Y:"ytp-info-panel-detail",j:{role:"dialog",id:G},V:[{J:"div",Y:"ytp-info-panel-detail-header",V:[{J:"div",Y:"ytp-info-panel-detail-title",iJ:"{{title}}"},{J:"button",QN:["ytp-info-panel-detail-close","ytp-button"],j:{"aria-label":"Close"},V:[g.jK()]}]},{J:"div",Y:"ytp-info-panel-detail-body",iJ:"{{body}}"},{J:"div",Y:"ytp-info-panel-detail-items"}]}]},250);var P=this;this.L=E;this.items=this.HF("ytp-info-panel-detail-items"); this.W=new g.Z0(this);this.itemData=[];this.G=G;this.Z(this.HF("ytp-info-panel-detail-close"),"click",this.t7);this.Z(this.HF("ytp-info-panel-detail-skrim"),"click",this.t7);this.Z(this.HF("ytp-info-panel-detail"),"click",function(Q){Q.stopPropagation()}); this.Z(this.S,"infopaneldetaildismissed",function(){H.U("embeds_enable_info_panel_dismissal")&&P.t7()}); g.d(this,this.W);this.S.createServerVe(this.element,this,!0);this.Z(H,"videodatachange",this.onVideoDataChange);this.onVideoDataChange("newdata",H.getVideoData());this.hide()}; IUn=function(H,E){return!!E&&H.getAvailablePlaybackRates()[H.getAvailablePlaybackRates().length-1]<=2}; fY1=function(H){if(H!==x0)throw Error("illegal external caller");}; XuM=function(H){H=H.charCodeAt(0);return"%"+(H>>4&15).toString(16)+(H&15).toString(16)}; uY=function(){}; Tr=function(H,E){g.kM("ytglobal.timing"+(E||"")+"ready_",H)}; l5u=function(H,E,G,P,Q){if(H.Kd)return{"if":0,vs:0};var e=H.OC().clone().round(),w=H.oM?H.oM.G:null,t=ZY(),k=X9(),W=H.Tc(),I=H.oM?H.oM.getName():"ns",A={};A["if"]=t.G?1:void 0;A.sdk=H.D?H.D:void 0;A.t=H.timeCreated;A.p=[e.top,e.left,e.bottom,e.right];e&&w&&!ud(w,e)&&(e=w.round(),A.cp=[e.top,e.left,e.bottom,e.right]);A.tos=vh(W.W,!1);A.mtos=Md(W);A.mcvt=W.Yp.G;A.ps=void 0;e=PT(W,Yv(),H.Sf());A.vht=e;A.mut=W.s7.G;A.a=dK(H.Fr.volume);A.mv=dK(W.C);A.fs=H.WE?1:0;A.ft=W.p_.L;A.at=W.T.L;A.as=W.D>0?1:0;A.atos= vh(W.L);A.ssb=vh(W.au,!1);A.amtos=hDj(W.L,!1);A.uac=H.FI;A.vpt=W.G.L;I=="nio"&&(A.nio=1,A.avms="nio");A.gmm="4";A.gdr=N7(H,W.G.L,!0)?1:0;A.efpf=H.U2;if(I=="gsv"||I=="nis")I=H.oM,I.B>0&&(A.nnut=I.B);A.tcm=Z7u(H);A.nmt=H.eR;A.bt=H.O7;A.pst=H.Yp;A.vpaid=H.L_;A.dur=H.G;A.vmtime=H.p_;A.is=H.eA.G;H.L.length>=1&&(A.i0=H.L[0].wN,A.a0=[H.L[0].bF],A.c0=[H.L[0].OT],A.ss0=[H.L[0].ju],I=H.L[0].position,e=H.L[0].Zc,A.p0=I?QT(I):void 0,I&&e&&!ud(e,I)&&(A.cp0=QT(e)));H.L.length>=2&&(A.i1=H.L[1].wN,A.a1=gb(H.L[1].aI, H.L[1].bF,H.L[1].jw),A.c1=gb(H.L[1].VV,H.L[1].OT,H.L[1].yV),A.ss1=gb(H.L[1].sX,H.L[1].ju,H.L[1].xU),I=H.L[1].position,e=H.L[1].Zc,A.p1=I?QT(I):void 0,I&&e&&!ud(e,I)&&(A.cp1=QT(e)),A.mtos1=H.L[1].q0);H.L.length>=3&&(A.i2=H.L[2].wN,A.a2=gb(H.L[2].aI,H.L[2].bF,H.L[2].jw),A.c2=gb(H.L[2].VV,H.L[2].OT,H.L[2].yV),A.ss2=gb(H.L[2].sX,H.L[2].ju,H.L[2].xU),I=H.L[2].position,e=H.L[2].Zc,A.p2=I?QT(I):void 0,I&&e&&!ud(e,I)&&(A.cp2=QT(e)),A.mtos2=H.L[2].q0);H.L.length>=4&&(A.i3=H.L[3].wN,A.a3=gb(H.L[3].aI,H.L[3].bF, H.L[3].jw),A.c3=gb(H.L[3].VV,H.L[3].OT,H.L[3].yV),A.ss3=gb(H.L[3].sX,H.L[3].ju,H.L[3].xU),I=H.L[3].position,e=H.L[3].Zc,A.p3=I?QT(I):void 0,I&&e&&!ud(e,I)&&(A.cp3=QT(e)),A.mtos3=H.L[3].q0);A.cs=CNU(H.eA);E&&(A.ic=gft(H.eA),A.dvpt=W.G.W,A.dvs=DA(W.W,.5),A.dfvs=DA(W.W,1),A.davs=DA(W.L,.5),A.dafvs=DA(W.L,1),G&&(W.G.W=0,qcu(W.W),qcu(W.L)),H.Ap()&&(A.dtos=W.E7,A.dav=W.L_,A.dtoss=H.FA+1,G&&(W.E7=0,W.L_=0,H.FA++)),A.dat=W.T.W,A.dft=W.p_.W,G&&(W.T.W=0,W.p_.W=0));A.ps=[t.T.width,t.T.height];A.bs=[Nl(t.L), t.L.getHeight()];A.scs=[t.D.width,t.D.height];A.dom=t.domain;H.qs&&(A.vds=H.qs);if(H.C.length>0||H.Zx)E=g.dm(H.C),H.Zx&&E.push(H.Zx),A.pings=g.wH(E,function(m){return m.toString()}); E=g.wH(g.W2(H.C,function(m){return m.C()}),function(m){return m.getId()}); kol(E);A.ces=E;H.W&&(A.vmer=H.W);H.N&&(A.vmmk=H.N);H.E7&&(A.vmiec=H.E7);A.avms=H.oM?H.oM.getName():"ns";H.oM&&g.S5(A,H.oM.UC());P?(A.c=Yg(H.Fr.OT,2),A.ss=Yg(H.Fr.ju,2)):A.tth=Yv()-Ls1;A.mc=Yg(W.WF,2);A.nc=Yg(W.B,2);A.mv=dK(W.C);A.nv=dK(W.D);A.lte=Yg(H.aT,2);P=n9(H,Q);Md(W);A.qmtos=Md(P);A.qnc=Yg(P.B,2);A.qmv=dK(P.C);A.qnv=dK(P.D);A.qas=P.D>0?1:0;A.qi=H.R3;A.avms||(A.avms="geo");A.psm=W.O7.L;A.psv=W.O7.getValue();A.psfv=W.MZ.getValue();A.psa=W.BF.getValue();k=Kes(k.b4);k.length&&(A.veid=k);H.T&&g.S5(A, OBq(H.T));A.avas=H.Ok();A.vs=H.py();A.co=OmQ(H);A.tm=W.T$;A.tu=W.z$;return A}; U0t=function(){return new Promise(function(H){var E=window;E.ntpevasrs!==void 0?H(new ax(E.ntpevasrs)):(E.ntpqfbel===void 0&&(E.ntpqfbel=[]),E.ntpqfbel.push(function(G){H(new ax(G))}))})}; x0s=function(H,E){this.layoutId=E;this.triggerType="TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME";this.triggerId=H(this.triggerType)}; TPu=function(H){var E=zzd(H);if(E)return H.videoData.getAvailableAudioTracks().find(function(G){return G.CP.getName()===E})}; jR=function(H){if(H.trendingOfferEntityKey){var E=g.b8.getState().entities;if(E=q4(E,"trendingOfferEntity",H.trendingOfferEntityKey)){var G,P,Q;E.encodedSkuId!==((G=H.L)==null?void 0:(P=G.bannerData)==null?void 0:(Q=P.itemData)==null?void 0:Q.encodedOfferSkuId)?OJ(H):(H.W.update({trendingOffer:E.shortLabel+" \u2022 "+E.countLabel}),H.W.show(),H.banner.update({vendor:K9(H)}))}else OJ(H)}else OJ(H)}; Nd=function(H,E){if(typeof H==="string")return new ch(pYt(H),E);if(Array.isArray(H))return new ch(new Uint8Array(H),E);if(H.constructor===Uint8Array)return new ch(H,!1);if(H.constructor===ArrayBuffer)return H=new Uint8Array(H),new ch(H,!1);if(H.constructor===UW)return E=ek(H)||new Uint8Array(0),new ch(E,!0,H);if(H instanceof Uint8Array)return H=H.constructor===Uint8Array?H:new Uint8Array(H.buffer,H.byteOffset,H.byteLength),new ch(H,!1);throw Error();}; gt=function(H){var E=[];if(H){H=g.R(Object.entries(H));for(var G=H.next();!G.done;G=H.next()){var P=g.R(G.value);G=P.next().value;P=P.next().value;P!==void 0&&(P=typeof P==="boolean"?""+ +P:(""+P).replace(/[:,=]/g,"_"),E.push(G+"."+P))}}return E.join(";")}; V1u=function(H){return H.info.uJ.info.wV()&&fE(H.W,0)===160}; bd=function(H,E,G,P,Q,e,w,t,k,W){this.width=H;this.height=E;this.W=t;this.quality=e||yT(H,E);this.qualityOrdinal=g.lF[this.quality];this.fps=G||0;this.stereoLayout=!Q||P!=null&&P!=="UNKNOWN"&&P!=="RECTANGULAR"?0:Q;this.projectionType=P?P==="EQUIRECTANGULAR"&&Q===2?"EQUIRECTANGULAR_THREED_TOP_BOTTOM":P:"UNKNOWN";(H=w)||(H=g.lF[this.quality],H===0?H="Auto":(E=this.fps,G=this.projectionType,H=H.toString()+(G==="EQUIRECTANGULAR"||G==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||G==="MESH"?"s":"p")+(E>55?"60": E>49?"50":E>39?"48":"")));this.qualityLabel=H;this.L=k||"";this.primaries=W||""}; Sdl=function(H,E,G,P,Q){this.videoId=H;this.Aw=E;this.W=G;this.bytesDownloaded=P;this.L=Q}; Fs1=function(H){for(var E=0,G=0;G2){var P=Array.prototype.slice.call(arguments,2);return function(){var Q=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(Q,P);return H.apply(E,Q)}}return function(){return H.apply(E,arguments)}}; id=function(H,E,G){c2u(H,G.cO||"unknown");H.Fo.seekTo(E,G)}; xv=function(H,E){g.Xa(H.T,E)||(H.T.push(E),E.k9(H.L),E.fd(H.D),E.TO()&&(H.L_=!0))}; g.qd=function(H){H=H===void 0?{}:H;this.languageCode=H.languageCode||"";this.languageName=H.languageName||null;this.kind=H.kind||"";this.name=H.name===void 0?null:H.name;this.displayName=H.displayName||null;this.id=H.id||null;this.L=H.is_servable||!1;this.isTranslateable=H.is_translateable||!1;this.url=H.url||null;this.vssId=H.vss_id||"";this.isDefault=H.is_default||!1;this.translationLanguage=H.translationLanguage||null;this.xtags=H.xtags||"";this.captionId=H.captionId||""}; f5U=function(H,E){Rx(g.Jy(H.S.K()),"wl_button",function(){hSj({videoId:E});window.location.reload()})}; Kt=function(H,E,G,P){Sq.call(this,H);this.D=E;this.C=G;this.L="m";this.W="x";this.T=0;Ft(this,P)}; rK=function(){this.currentState=1;this.L="unknown"}; PL=function(H){var E=":"+(bH.getInstance().L++).toString(36);return H+E}; HVU=function(H){X9().D=!!H.MA("isViewable");U$(H,"viewableChange",puM);H.MA("getState")==="loading"?U$(H,"ready",uk1):vYM(H)}; Bh=function(H){return H.keySystem==="com.microsoft.playready"}; Ew7=function(H,E){var G=Zi(H.clientMetadata,"metadata_type_ad_placement_config");return new Ae(H.w5,E,G,H.layoutId)}; g.Xb=function(H,E,G){if(zL(E.K())&&E.getPresentingPlayerType()!==2){if(g.$6(G))return E.isFullscreen()&&!E.K().externalFullscreen&&E.toggleFullscreen(),G.preventDefault(),!0}else{var P=g.$6(G);P&&E.pauseVideo();g.tU(H,void 0,!0);P&&(g.YK(H),G.preventDefault())}return!1}; Cpq=function(H){return H.end==null?{start:String(H.start)}:{start:String(H.start),end:String(H.end)}}; Zi=function(H,E){H=H.L.get(E);if(H!==void 0)return H.get()}; g.or=function(H){var E=YCn;if(I2(H,"display")!="none")return E(H);var G=H.style,P=G.display,Q=G.visibility,e=G.position;G.visibility="hidden";G.position="absolute";G.display="inline";H=E(H);G.display=P;G.position=e;G.visibility=Q;return H}; Gnn=function(H,E){if(H.L==0)if(H.G){var G=H.G;if(G.W){for(var P=0,Q=null,e=null,w=G.W;w&&(w.D||(P++,w.L==H&&(Q=w),!(Q&&P>1)));w=w.next)Q||(e=w);Q&&(G.L==0&&P==1?Gnn(G,E):(e?(P=e,P.next==G.D&&(G.D=P),P.next=P.next.next):P5U(G),Q7Q(G,Q,3,E)))}H.G=null}else Hv(H,3,E)}; g.mu=function(H){this.config_=null;H?this.config_=H:s7l()&&(this.config_=g.YG())}; ZA=function(H,E){var G=new Uint8Array(H.L.buffer,H.L.byteOffset+H.pos,E);H.pos+=E;return G}; Nn=function(H){g.J3(H.gt)}; Xg1=function(H,E){var G;return g.L(function(P){if(P.L==1)return g.U(P,g.HC(FG,E),2);G=P.W;return P.return(g.fV(G,["databases"],{Iq:!0,mode:"readwrite"},function(Q){var e=Q.objectStore("databases");return e.get(H.actualName).then(function(w){if(w?H.actualName!==w.actualName||H.publicName!==w.publicName||H.userIdentifier!==w.userIdentifier:1)return g.C9(e,H).then(function(){})})}))})}; IV=function(H,E){H.checked=E;H.element.setAttribute("aria-checked",String(H.checked))}; g.Qu=function(){return!!X6(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)}; ob=function(H){return QQ(H,"custom_metric_viewable")}; L9=function(H,E,G,P){P=P===void 0?0:P;g.gK.call(this,G.t1());var Q=this;this.ze=H;this.videoData=E;this.duration=P;this.L=this.startTimeSecs=0;this.W=this.G=!0;this.D=new ONu(function(e,w){return void Q.g5(e,w)})}; xG=function(){for(var H=[],E=g.tJ("EXPERIMENTS_FORCED_FLAGS",{}),G=g.R(Object.keys(E)),P=G.next();!P.done;P=G.next())P=P.value,H.push({key:P,value:String(E[P])});G=g.tJ("EXPERIMENT_FLAGS",{});P=g.R(Object.keys(G));for(var Q=P.next();!Q.done;Q=P.next())Q=Q.value,Q.startsWith("force_")&&E[Q]===void 0&&H.push({key:Q,value:String(G[Q])});return H}; ld=function(H,E){var G,P;return(P=(G=H.G)!=null?G:E.priority)!=null?P:0}; owM=function(H){H.provider.videoData.youtubeRemarketingUrl&&!H.E7&&(vZ(H,H.provider.videoData.youtubeRemarketingUrl),H.E7=!0)}; Kn=function(){$4.apply(this,arguments)}; U8=function(H,E){return E&&E.test(H)?!0:!1}; s5=function(H,E){var G=g.Un("yt.logging.transport.enableScrapingForTest"),P=ro("il_payload_scraping");P=(P!==void 0?String(P):"")==="enable_il_payload_scraping";if(!G)if(P)UJ=[],g.kM("yt.logging.transport.enableScrapingForTest",!0),g.kM("yt.logging.transport.scrapedPayloadsForTesting",UJ),g.kM("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),g.kM("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"), g.kM("yt.logging.transport.scrapeClientEvent",!0);else return;G=g.Un("yt.logging.transport.scrapedPayloadsForTesting");P=g.Un("yt.logging.transport.payloadToScrape");E&&(E=E.payload,(E=g.Un("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(E)())&&G.push(E));E=g.Un("yt.logging.transport.scrapeClientEvent");if(P&&P.length>=1)for(var Q=0;QH.Xt)return I.return();H.potentialEsfErrorCounter++;if(((W=E)==null?void 0:W.id)===void 0){I.bJ(8);break}return E.sendCount1E5||++E.D})}; qqt=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n){var O=LA(G,e,Q.m8);if(O instanceof T)return O;if(g.X(G.renderingContent,S4)){k=Iz7([G],Q,k);if(k instanceof T)return k;if(k.length!==1)return new T("Only expected one media layout.");H=AZt(H,E,G,O,k[0],void 0,"core",P,e,w,t,W,m,u,v,Q.m8,A,void 0,n);return H instanceof T?H:{layout:H.layout,TH:H.CS?[H.CS]:[]}}var q=g.X(G.renderingContent,Fb);if(q){if(!TN(G.adLayoutMetadata))return new T("Invalid ad layout metadata");if(!Lm(q))return new T("Invalid sequential layout"); q=q.sequentialLayouts.map(function(N){return N.playerBytesAdLayoutRenderer}); H=mHj(H,E,G.adLayoutMetadata,O,q,P,e,Q,k,w,t,W,I,A,v,m,u,n);return H instanceof T?H:{layout:H.oo,TH:H.TH}}return new T("Not able to convert a sequential layout")}; uG7=function(H){H=H===void 0?null:H;return H!=null&&(H=H.thumbnail,H!=null&&H.thumbnails!=null&&H.thumbnails.length!=0&&H.thumbnails[0].width!=null&&H.thumbnails[0].height!=null)?new g.P4(H.thumbnails[0].width||0,H.thumbnails[0].height||0):new g.P4(0,0)}; Ml1=function(H,E){E=E===void 0?!1:E;return H9(U8(H,vwq),H,E,"Captions URL")}; dHM=function(){try{return+(window.localStorage&&window.localStorage["yt-player-av1-pref"])||0}catch(H){return 0}}; g.g_=function(H,E){var G=E.type;G in H.listeners&&g.Ih(H.listeners[G],E)&&(Vn(E),H.listeners[G].length==0&&(delete H.listeners[G],H.L--))}; g.eK=function(H,E){H=A9v(H);E=A9v(E);return new g.oG(H.x-E.x,H.y-E.y)}; ki=function(H,E,G){this.W=H;this.D=E;this.fields=G||[];this.L=new Map}; DHw=function(H){var E=document.querySelectorAll('[data-tooltip-target-id="'+H.tooltipRenderer.targetId+'"]');E=E.length>0?E[0]:null;var G=g.mO("ytp-chrome-bottom"),P=g.mO("ytp-ad-module");H.G=!(G==null||!G.contains(E));H.C=!(P==null||!P.contains(E));H.B=!(E==null||!E.hasAttribute("data-tooltip-target-fixed"));return E}; azs=function(H,E,G){var P,Q=E==null?void 0:(P=E.text)==null?void 0:P.simpleText;Q&&nwl(H,G,Q,E==null?void 0:E.icon).listen("click",function(){var e;(E==null?void 0:(e=E.icon)==null?void 0:e.iconType)==="HIDE"?H.S.publish("featuredproductdismissed"):E.serviceEndpoint&&H.S.n_("innertubeCommand",E.serviceEndpoint);H.hide()},H)}; OVU=function(H){var E=H.layoutId,G=H.eE,P=H.vY;H.t2&&(H={},Gq(P,"sleo",(H.xc=E,H.is=G,H.ctp=Q6(E),H)),Qn1(P))}; j7M=function(H,E,G){var P=Zi(E.clientMetadata,"metadata_type_sodar_extension_data");if(P)try{Kpd(G,P)}catch(Q){xQ("Unexpected error when loading Sodar",H,E,{error:Q})}}; cZv=function(H,E,G,P,Q){this.callback=H;this.slot=E;this.layout=G;this.SR=P;this.Ou=Q;H=Zi(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; Gcs=function(){return{J:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path",j:{d:"M7.41,8.59L12,13.17l4.59-4.58L18,10l-6,6l-6-6L7.41,8.59z",fill:"#fff"}}]}}; rbT=function(H,E){return E?M0j(E):H?Iv1(H):Promise.resolve()}; so=function(H){this.L=H||{cookie:""}}; N$n=function(H){switch(H){case 0:return"OK";case 1:return"CANCELLED";case 2:return"UNKNOWN";case 3:return"INVALID_ARGUMENT";case 4:return"DEADLINE_EXCEEDED";case 5:return"NOT_FOUND";case 6:return"ALREADY_EXISTS";case 7:return"PERMISSION_DENIED";case 16:return"UNAUTHENTICATED";case 8:return"RESOURCE_EXHAUSTED";case 9:return"FAILED_PRECONDITION";case 10:return"ABORTED";case 11:return"OUT_OF_RANGE";case 12:return"UNIMPLEMENTED";case 13:return"INTERNAL";case 14:return"UNAVAILABLE";case 15:return"DATA_LOSS"; default:return""}}; g.f9=function(H,E){E>=H.uU()&&H.nU();var G=aJ(H,E),P=H.columns*H.rows,Q=E%P;E=Q%H.columns;Q=Math.floor(Q/H.columns);var e=H.nU()+1-P*G;if(et){v.bJ(2);break}m=W+E;u=A-m;u=-50&&(H-1&8)<8&&(G=(G%E[h[4]]+E[h[4]])%E[h[4]],E[h[9]](G,1));H+2>>1=H&&(P=E[h[32]]?E[h[32]][h[22]](h[12]):E[h[16]]===h[12]);return P}; I4=function(H){g.D.call(this,{J:"button",QN:["ytp-size-button","ytp-button"],j:{title:H.U("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}}"},iJ:"{{icon}}"});this.api=H;this.St=null;this.transition=new V3;g.d(this,this.transition);this.Z(H,"sizestylechange",this.r5);this.Z(H,"fullscreentoggled",this.r5);this.Z(H,"presentingplayerstatechange",this.r5);H.createClientVe(this.element, this,139116);this.r5();this.listen("click",this.onClick);M2(H,this.element,this)}; g.AE=function(H,E,G){if(typeof E==="string")(E=mB(H,E))&&(H.style[E]=G);else for(var P in E){G=H;var Q=E[P],e=mB(G,P);e&&(G.style[e]=Q)}}; JB=function(H,E){var G=H.api.NZ().sR(),P=H.api.qS(!0,!1);return(E=AR(G,G.height-(P.height+P.top),E))?(H.z$&&E&&(G=g.sj(H.macros),G.ERRORCODE=E.XX.toString(),G.ERROR_MSG=E.errorMessage,H.layoutId?w3(H.vF,H.z$,H.layoutId,G):g.h3(Error("Missing layoutId for invideo_overlay_ad."))),!0):!1}; tPu=function(){var H=RN,E=Js;E&2147483648?ov()?H=""+(BigInt(E|0)<>>0)):(E=g.R(qm(H,E)),H=E.next().value,E=E.next().value,H="-"+rk(H,E)):H=rk(H,E);return H}; mj=function(H,E,G){var P=H.api.getCurrentTime()*1E3=H&&H-8<<2=H&&(H+5^22)>2>=9&&(H^54)<12){for(var Q=64,e=[];++Q-e[h[4]]-32;)switch(Q){case 46:Q=95;default:e[h[36]](String[h[20]](Q));case 94:case 95:case 96:break;case 123:Q-=76;case 92:case 93:continue;case 58:Q=44;case 91:}P=e}return P}; vs=function(H,E){H.eq.has(E)&&(p3?H.eq.get(E).Ov.clear():H.eq.get(E).OM=new hJ,Ly(H,E),H.G=!0)}; T7=function(){Mu.apply(this,arguments)}; SRw=function(){var H=this;this.L=new Map;this.G=new Map;this.W=new Map;this.kV={ehZ:function(){return new Map(H.L)}}}; Fp1=function(H,E){if(H.S.K().O7){var G=g.dv(H.S,"Mute","m"),P=g.dv(H.S,"Unmute","m");G=E?P:G;H.S.K().U("player_tooltip_data_title_killswitch")?H.updateValue("title",G):H.update({"tooltip-title":G,"aria-label":G});H.update({"data-title-no-tooltip":E?"Unmute":"Mute"});H.tooltip.aP()}}; fzs=function(H,E,G,P,Q,e,w){g.cP.call(this,E,G,{id:H,namespace:"ad",priority:Q,visible:P,associatedClipId:e,markerPositionMs:w})}; g.GQ=function(H,E,G){return iw(E,0,G)}; g.pnU=function(H,E){if(H.L!=null&&g.D6(E,H.L)&&H.L.L.rawcc!=null)return!0;if(!H.T6())return!1;E=!!H.L&&H.L.isManifestless&&Object.values(H.L.L).some(function(G){return g.nl(G,"386")}); H=!!H.L&&!H.L.isManifestless&&g.X4t(H.L);return E||H}; a4=function(H){for(var E=dH(H,!0),G=p7(H),P=1;P0?QM:-1;else if(Dj= g.X(En,M3)){En=A0M(H,E,G,Dj,e,n,t,z,QM);if(En instanceof T){u=En;break a}En=En(m);O.push(En.HK);q=[].concat(g.EC(En.vA),g.EC(q));N=[].concat(g.EC(En.W$),g.EC(N));En.CS&&(eu=[En.CS].concat(g.EC(eu)))}else if(Dj=g.X(En,Nu)){if(u===void 0){u=new T("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:Dj});break a}En=E$q(H,E,G,e,Dj,S,t,u,n,WI(I,"supports_multi_step_on_desktop"));if(En instanceof T){u=En;break a}En=En(m);O.push(En.HK);En.CS&&eu.push(En.CS); q=[].concat(g.EC(En.vA),g.EC(q));N=[].concat(g.EC(En.W$),g.EC(N));r=[].concat(g.EC(En.Hk),g.EC(r));B=[].concat(g.EC(En.JI),g.EC(B));l=[S].concat(g.EC(l))}else if(En=g.X(En,yi)){En=Gbd(H,E,G,e,En,S,t,n);if(En instanceof T){u=En;break a}En=En(m);O.push(En.HK);En.CS&&eu.push(En.CS);N=[].concat(g.EC(En.W$),g.EC(N))}else{u=new T("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}u={EF:O,layoutExitSkipTriggers:q,layoutExitUserInputSubmittedTriggers:r,layoutExitUserCancelledTriggers:B,layoutExitMuteTriggers:N, G2:l,TH:eu}}}else a:if(n=pRw(P,G,I),n instanceof T)u=n;else{O=0;q=[];N=[];r=[];B=[];l=[];S=[];z=new zF({current:null});Pt=new nF({current:null});eu=!1;$Q=[];QM=-1;v=g.R(P);for(En=v.next();!En.done;En=v.next())if(En=En.value,g.X(En,cs)){En=H_u(E,G,g.X(En,cs),t);if(En instanceof T){u=En;break a}En=En(m);q.push(En.HK);N=[].concat(g.EC(En.vA),g.EC(N));r=[].concat(g.EC(En.W$),g.EC(r));En.CS&&($Q=[En.CS].concat(g.EC($Q)))}else if(g.X(En,S4)){QM=F4(g.X(En,S4),G,I);if(QM instanceof Xf){u=new T(QM);break a}En= new eh(O,n);En=Mjt(E,QM.layoutId,QM.kQ,G,jM(QM.playerVars,QM.DC,w,W,En),QM.Gp,e,En,t(m),Pt,k.get(QM.kQ.externalVideoId),void 0,A);O++;q.push(En.HK);N=[].concat(g.EC(En.vA),g.EC(N));r=[].concat(g.EC(En.W$),g.EC(r));eu||(S.push(Pt),eu=!0);QM=(QM=QM.kQ.adPodSkipTarget)&&QM>0?QM:-1}else if(g.X(En,M3)){En=A0M(H,E,G,g.X(En,M3),e,O,t,Pt,QM);if(En instanceof T){u=En;break a}En=En(m);q.push(En.HK);N=[].concat(g.EC(En.vA),g.EC(N));r=[].concat(g.EC(En.W$),g.EC(r));En.CS&&($Q=[En.CS].concat(g.EC($Q)))}else if(g.X(En, Nu)){if(u===void 0){u=new T("Composite Survey must already have a Survey Bundle with required metadata.",{instreamSurveyAdRenderer:g.X(En,Nu)});break a}En=E$q(H,E,G,e,g.X(En,Nu),z,t,u,O,WI(I,"supports_multi_step_on_desktop"));if(En instanceof T){u=En;break a}En=En(m);q.push(En.HK);En.CS&&$Q.push(En.CS);N=[].concat(g.EC(En.vA),g.EC(N));r=[].concat(g.EC(En.W$),g.EC(r));B=[].concat(g.EC(En.Hk),g.EC(B));l=[].concat(g.EC(En.JI),g.EC(l));S=[z].concat(g.EC(S))}else if(g.X(En,yi)){En=Gbd(H,E,G,e,g.X(En,yi), z,t,O);if(En instanceof T){u=En;break a}En=En(m);q.push(En.HK);En.CS&&$Q.push(En.CS);r=[].concat(g.EC(En.W$),g.EC(r))}else{u=new T("Unsupported linearAd found in LinearAdSequenceRenderer.");break a}u={EF:q,layoutExitSkipTriggers:N,layoutExitUserInputSubmittedTriggers:B,layoutExitUserCancelledTriggers:l,layoutExitMuteTriggers:r,G2:S,TH:$Q}}u instanceof T?m=u:(l=m.slotId,n=u.EF,O=u.layoutExitSkipTriggers,q=u.layoutExitMuteTriggers,N=u.layoutExitUserInputSubmittedTriggers,r=u.G2,m=t(m),B=Q?Q.layoutType: "LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",l=Q?Q.layoutId:dU(E.W.get(),B,l),S={layoutId:l,layoutType:B,f_:"core"},m={layout:{layoutId:l,layoutType:B,w5:new Map,layoutExitNormalTriggers:[new be(E.L,l)],layoutExitSkipTriggers:O,layoutExitMuteTriggers:q,layoutExitUserInputSubmittedTriggers:N,layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:new ZN([new bc(n)].concat(g.EC(r))),O2:m(S)},TH:u.TH});return m}}; sXn=function(H,E){var G=lQ(H);return G&&G.info.type!==6?!QXv(E,H,G.info.U7):!1}; ie=function(H,E){E&&oQQ(H,E)}; eMl=function(){if(tYd()&&!qu){var H=function(G){G=G.data;if(G.op==="gzippedGelBatch"){var P=R4.get(G.key);P&&(o$u(G.gzippedBatch,P.latencyPayload,P.url,P.options,P.sendFn),R4.delete(G.key))}},E=Gu(); E&&(E.addEventListener("message",H),E.onerror=function(){R4.clear()},qu=!0)}}; OJ=function(H){H.W.hide();H.banner.update({vendor:K9(H)})}; JR=function(H,E,G){this.L=E;this.triggerType="TRIGGER_TYPE_CLOSE_REQUESTED";this.triggerId=G||H(this.triggerType)}; wav=function(H){var E=H.L;E&&E.U7===-1&&(H=H.G.Hy())&&rv(H.info)&&(H=H.info.U7,E.C="updateLastSliceRequested",E.U7=H)}; hMT=function(H){this.triggerType="TRIGGER_TYPE_DURATION_AFTER_MEDIA_PAUSED";this.triggerId=H(this.triggerType)}; $gs=function(H,E,G){var P=[];G=g.R(G);for(var Q=G.next();!Q.done;Q=G.next())if((Q=Q.value)&&Q.url){var e=N5(Q.type,"medium","0");P.push(new yf(e,Q.url))}return bq(H.T,P,Bs(H,E),!1)}; tOt=function(H){this.S=H}; K1=function(H,E){E=E===void 0?"0":E;g.J.call(this);this.logSource=H;this.sessionIndex=E;this.Hr="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.G=!1;this.network=null;this.componentId="";this.L=this.n4=null;this.W=!1;this.pageId=null}; Wfv=function(){var H=null;CLT().then(function(E){return H=E},function(E){return H=kbw(E)}); return H}; IMQ=function(H,E){E=E===void 0?!1:E;var G=Ys(H);if(G===1){E=-1;for(G=0;G<7;G++){var P=Ys(H);E===-1&&P!==255&&(E=0);E>-1&&(E=E*256+P)}return E}P=128;for(var Q=0;Q<6&&P>G;Q++)G=G*256+Ys(H),P*=128;return E?G:G-P}; Cl=function(H){var E,G;var P=!!H.L_&&!((E=H.api.getVideoData())==null?0:E.isLivePlayback)&&!H.api.WY()&&H.api.getPresentingPlayerType()!==2&&!g.F(H.api.getPlayerStateObject(),2)&&!((G=g.X0(H.api))==null?0:G.jA())&&!H.api.isEmbedsShortsMode()&&vfw(H.api.Rs());H.D!==P&&(H.D=P,H.D?H.L.subscribe("dragstart",H.WF,H):(H.L.unsubscribe("dragstart",H.WF,H),H.L.unsubscribe("dragmove",H.C,H),H.L.unsubscribe("dragend",H.T,H),Z6(H)))}; xp=function(H,E){if(H=UV(E)[H])return typeof H==="number"?H:H[H.length-1]}; Aqj=function(H){var E=cY;H=g.W2(H,function(G){return!Hyu(E,G.GT.JA)}); E.L.push.apply(E.L,g.EC(H))}; J3d=function(){var H=mg1,E=uCv(function(G){H.apply(void 0,arguments);v$1(E)}); return E}; bV=function(H,E,G,P){this.Da=H;this.SR=E;this.Ou=G;this.im=P}; oGn=function(H,E){return H.T?new lJ(Math.max(E.top+H.T.top,E.top),Math.min(E.left+H.T.right,E.right),Math.min(E.top+H.T.bottom,E.bottom),Math.max(E.left+H.T.left,E.left)):E.clone()}; GQ7=function(H,E){var G=[];G.push(new nn(US(H)));G.push(new vC(E.layoutId));(H=Zi(E.clientMetadata,"metadata_type_player_bytes_callback_ref"))&&G.push(new W3(H));(H=Zi(E.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))&&G.push(new nF(H));(H=Zi(E.clientMetadata,"metadata_type_remote_slots_data"))&&G.push(new gv(H));(H=Zi(E.clientMetadata,"metadata_type_ad_next_params"))&&G.push(new Ll(H));(H=Zi(E.clientMetadata,"metadata_type_ad_video_clickthrough_endpoint"))&&G.push(new le(H));(H= Zi(E.clientMetadata,"metadata_type_ad_pod_info"))&&G.push(new hs(H));(E=Zi(E.clientMetadata,"metadata_type_ad_video_id"))&&G.push(new IJ(E));return G}; Jv=function(H,E,G,P,Q){this.W=H;this.L=E;this.G=G;this.reason=P;this.Xo=Q===void 0?0:Q}; MOT=function(H){return{bitrate:hU(H,6),width:hU(H,7),height:hU(H,8),fps:hU(H,25),averageBitrate:hU(H,31),audioSampleRate:hU(H,45),audioChannels:hU(H,46),qualityOrdinal:hU(H,56)}}; M$t=function(H,E,G){var P;if((P=E.w0)!=null&&P.Mp)try{var Q,e=(Q=H.cache)==null?void 0:dgn(Q,Oy(H,E),E.w0.Fs);return e?G?$$(H.logger,function(){return g.H4(e,2)},"a"):e:void 0}catch(w){H.reportError(new jg(23,"RXO:read",w))}}; UA=function(H,E,G,P,Q,e,w,t){Xm.call(this,H,E,G,P);this.SR=Q;this.aq=e;this.C=t;this.Zr=!0;this.D=null;this.T=Zi(G.clientMetadata,"metadata_type_linked_player_bytes_layout_id");IS(this.aq(),this);H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; Aq=function(H,E,G,P,Q,e,w,t,k){g.J.call(this);this.D=H;this.C=E;this.T=G;this.G=P;this.L=Q;this.W=e;this.VF=w;this.Da=t;this.C_=k;this.Zr=!0}; Dgs=function(H,E){for(var G=0,P=g.R(H),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;if(E=Q.timeRangeStartMillis&&E0}; aMu=function(H,E,G,P,Q){var e=H[E];if(e==null||!e[G])return H;P=g.Ps(e[G],P,Q==="REPEATED_FIELDS_MERGE_OPTION_APPEND");Q={};e={};return Object.assign({},H,(e[E]=Object.assign({},H[E],(Q[G]=P,Q)),e))}; YBT=function(H,E){var G=g.tJ("XSRF_FIELD_NAME"),P=g.tJ("XSRF_TOKEN"),Q=E.postBody||"",e=E.postParams,w=g.tJ("XSRF_FIELD_NAME"),t;E.headers&&(t=E.headers["Content-Type"]);E.excludeXsrf||g.mS(H)&&!E.withCredentials&&g.mS(H)!==document.location.hostname||E.method!=="POST"||t&&t!=="application/x-www-form-urlencoded"||E.postParams&&E.postParams[w]||(e||(e={}),e[G]=P);(g.Xj("ajax_parse_query_data_only_when_filled")&&e&&Object.keys(e).length>0||e)&&typeof Q==="string"&&(Q=W9(Q),g.S5(Q,e),Q=E.postBodyFormat&& E.postBodyFormat==="JSON"?JSON.stringify(Q):g.zX(Q));e=Q||e&&!g.ZR(e);!O_l&&e&&E.method!=="POST"&&(O_l=!0,g.OS(Error("AJAX request with postData should use POST")));return Q}; TX=function(H,E,G){G=G===void 0?1:G;if(E.zU()){var P=j4(H,G,E,!1);H.cancelPlayback(4,G);H.PV(P);P.r9();G===1&&(H.UV(1),g.L3(H.X)&&!s2(E)?(E.dispose(),H.qZ().dispose()):YNt(H))}else E.dispose(),(E=H.EQ({playerType:G}))&&E.dispose(),Iz(H.pS())&&G===2&&H.AM()}; Rm=function(){return{J:"svg",j:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{J:"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"}}]}}; Kfq=function(H){if(!(H.length<=28))for(var E=(0,g.Vi)([60,0,75,0,73,0,68,0,62,0]),G=28;GH.L.length&&(fH(H,E),E=MH(G,H.L.subarray(H.pos))),H.pos+=E,rqt(H))}; Xm=function(H,E,G,P){g.z7.call(this);this.callback=H;this.G=P;this.L=[];this.W=new zHd(H,E,G)}; hD=function(H){H=H||window.event;var E;H.composedPath&&typeof H.composedPath==="function"?E=H.composedPath():E=H.path;E&&E.length?H=E[0]:(H=H||window.event,H=H.target||H.srcElement,H.nodeType==3&&(H=H.parentNode));return H}; M2=function(H,E,G){H=g.SH(H.Zi(),E);return G?(G.addOnDisposeCallback(H),null):H}; Ysq=function(H,E){var G;if(E=E==null?void 0:(G=E.watchEndpointSupportedOnesieConfig)==null?void 0:G.html5PlaybackOnesieConfig)H.rk=new B0M(E)}; GC=function(H,E){E.forEach(function(G){EH(H,G)})}; Z_s=function(H,E,G){var P=PH(E.googleRemarketingUrl);P&&(H.googleRemarketingUrl=P);if(P=PH(E.youtubeRemarketingUrl))H.youtubeRemarketingUrl=P;if(P=E.heartbeatLoggingToken)H.heartbeatLoggingToken=P;P={};var Q=PH(E.ptrackingUrl);if(Q){Q=QZ(Q);var e=Q.oid;e&&(H.wF=e);if(e=Q.pltype)H.FB=e;if(e=Q.ptchn)H.q2=e;if(e=Q.ptk)H.vQ=encodeURIComponent(e);if(Q=Q.m)H.W4=Q}if(Q=PH(E.qoeUrl)){Q=g.oz(Q);e=g.R(Object.keys(Q));for(var w=e.next();!w.done;w=e.next()){w=w.value;var t=Q[w];Q[w]=Array.isArray(t)?t.join(","): t}H.g3=Q;if(e=Q.cat)H.U("html5_enable_qoe_cat_list")?H.zR=H.zR.concat(e.split(",")):H.Mk=e;if(e=Q.live)H.kB=e;if(Q=Q.drm_product)H.drmProduct=Q}if(Q=PH(E.videostatsPlaybackUrl)){Q=QZ(Q);if(e=Q.adformat)if(G.adformat=e,w=H.K(),w=oYq(e,H.Oo,w.D,w.N))H.adFormat=w;if(w=Q.aqi)G.ad_query_id=w;if(G=Q.autoplay)H.n0=G=="1",H.Sb=G=="1";if(G=Q.autonav)H.isAutonav=G=="1";if(G=Q.delay)H.Qm=EN(G);if(G=Q.ei)H.eventId=G;if(G=sH(Q.adcontext))try{var k=Xav(G);k&&(H.YD=k)}catch(W){g.p5(Error("Malformed adContext"))}if(G|| e)H.n0=!0;if(k=Q.feature)H.jV=k;if(k=Q.list)H.playlistId=k;if(k=Q.of)H.dw=k;if(k=Q.osid)H.osid=k;if(k=Q.referrer)H.referrer=k;if(k=Q.sdetail)H.PP=k;if(k=Q.sourceid)H.gE7=k;if(k=Q.ssrt)H.mf=k=="1";if(k=Q.subscribed)H.subscribed=k=="1";if(k=Q.uga)H.userGenderAge=k;if(k=Q.upt)H.lS=k;if(k=Q.vm)H.videoMetadata=k;P.playback=Q}if(k=PH(E.videostatsWatchtimeUrl)){k=QZ(k);if(G=k.ald)H.VU=G;P.watchtime=k}if(k=PH(E.atrUrl))k=QZ(k),P.atr=k;if(k=PH(E.engageUrl))k=QZ(k),P.engage=k;H.b7=P;E.promotedPlaybackTracking&& (E=E.promotedPlaybackTracking,E.startUrls&&(H.WP=E.startUrls),E.firstQuartileUrls&&(H.jW=E.firstQuartileUrls),E.secondQuartileUrls&&(H.yD=E.secondQuartileUrls),E.thirdQuartileUrls&&(H.hF=E.thirdQuartileUrls),E.completeUrls&&(H.fq=E.completeUrls),E.engagedViewUrls&&(E.engagedViewUrls.length>1&&g.p5(new g.LN("There are more than one engaged_view_urls.")),H.ib=E.engagedViewUrls[0]))}; CVt=function(){this.L=1;this.W=new rK}; oj=function(H,E){this.breakDurationMs=H;this.triggerType="TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED";this.triggerId=E||""}; lMu=function(H){H.eT.onProgress();if(oN(H.videoData)&&Date.now()>H.vH+6283){if(H.U("html5_unified_live_latency_reporting")){var E=H.eT;E.qoe&&g$v(E.qoe)}else!H.isAtLiveHead()||H.videoData.L&&aN(H.videoData.L)||(E=H.eT,E.qoe&&g$v(E.qoe));E=g.KU(H.X);var G=H.U("html5_always_log_rawlat");(E||G)&&H.g5("rawlat",{l:eI(H.Lj,"rawlivelatency").toFixed(3)});H.vH=Date.now()}H.videoData.W&&wB(H.videoData.W)&&(E=H.AJ())&&E.videoHeight!==H.ZI&&(H.ZI=E.videoHeight,SS(H,"a",LfU(H,H.videoData.PF)))}; x7=function(H){return!!(H.playlist||H.list||H.api)}; xgt=function(H,E,G){G=G===void 0?{}:G;var P=new Image,Q=""+UgQ++;$h[Q]=P;P.onload=P.onerror=function(){E&&$h[Q]&&E();delete $h[Q]}; G.scrubReferrer&&(P.referrerPolicy="no-referrer");P.src=H}; RwT=function(H,E,G,P){if(H)return H.apply(E,P);if(g.kh&&document.documentMode<10){if(!E[G].call)throw Error("IE Clobbering detected");}else if(typeof E[G]!="function")throw Error("Clobbering detected");return E[G].apply(E,P)}; WH=function(H,E,G,P){G=G===void 0?"":G;var Q;return(Q=gH(SB(H,E,P)))!=null?Q:G}; Ij=function(H){H.D=void 0;H.W=0;H.G=0}; juv=function(H,E){E.v5&&H.v5.push.apply(H.v5,E.v5);E.W5&&H.W5.push.apply(H.W5,E.W5)}; g.PY=function(){Aw.instance||(Aw.instance=new Aw);return Aw.instance}; n2n=function(H,E,G){K3(H);var P=H.VN,Q=P[c9]|0;if(E==null)return jP(P,Q,3),H;if(!Array.isArray(E))throw ao();var e=E===Bb?7:E[c9]|0,w=e,t=tO(e),k=t||Object.isFrozen(E);t||(e=0);k||(E=WV(E),w=0,e=IT(e,Q),k=!1);e|=5;t=4&e?512&e?512:1024&e?1024:0:void 0;t=t!=null?t:0;for(var W=0;W0&&Q>0&&(G.width+=Q,g.AE(E.element,"width",G.width+"px")));H.size=G}}; Am=function(H){this.value=H}; Re1=function(){if(gi.getEntriesByType){var H=gi.getEntriesByType("paint");if(H=g.VS(H,function(G){return G.name==="first-paint"}))return E2(H.startTime)}var E; g.Xj("csi_use_performance_navigation_timing")?E=gi.getEntriesByType("first-paint")[0].startTime:E=gi.timing.v1x;return E?Math.max(0,E):0}; EH1=function(H,E){var G;return g.L(function(P){if(P.L==1)return g.U(P,Ec(E),2);G=P.W;return P.return(G.delete("LogsRequestsStore",H))})}; GIs=function(H){var E=[],G=H.sandwichedLinearAdRenderer&&H.sandwichedLinearAdRenderer.linearAd&&g.X(H.sandwichedLinearAdRenderer.linearAd,S4);if(G)return E.push(G),E;if(H.instreamVideoAdRenderer)return E.push(H.instreamVideoAdRenderer),E;if(H.linearAdSequenceRenderer&&H.linearAdSequenceRenderer.linearAds){H=g.R(H.linearAdSequenceRenderer.linearAds);for(G=H.next();!G.done;G=H.next())G=G.value,g.X(G,S4)&&E.push(g.X(G,S4));return E}return null}; Ke=function(H,E,G){return H.split(E).EH.split(G).iW}; hK=function(H,E){for(var G in E)if(wk(E[G])){if(G in H&&!wk(H[G]))throw Error("Cannot merge an object into a non-object.");G in H||(H[G]={});hK(H[G],E[G])}else if(xK(E[G])){if(G in H&&!xK(H[G]))throw Error("Cannot merge an array into a non-array.");G in H||(H[G]=[]);P_d(H[G],E[G])}else H[G]=E[G];return H}; jI=function(H,E){H.L[E.info.id]=E;H.G.set(Jq(E,H.T6),E)}; EyQ=function(H,E,G,P,Q,e,w,t){return E===null?new T("Invalid slot type when get discovery companion fromTopBannerImageTextIconButtonedLayoutViewModel",{slotType:E,TopBannerImageTextIconButtonedLayoutViewModel:P}):[hmv(H,E,w,e,function(k){var W=k.slotId;k=t(k);var I=P.adLayoutLoggingData,A=new ZN([new e5(P),new nn(Q)]);W=dU(G.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",W);var m={layoutId:W,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f_:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON", w5:new Map,layoutExitNormalTriggers:[new BQ(G.L,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:A,O2:k(m),adLayoutLoggingData:I}})]}; g.GY=function(H,E,G,P,Q,e){E=E===void 0?null:E;var w={role:"menu"};E&&(w.id=E);E=new g.av({J:"div",Y:"ytp-panel-menu",j:w});sO.call(this,H,E,G,P,Q,e);this.menuItems=E;this.items=[];g.d(this,this.menuItems)}; Qoq=function(H,E,G,P,Q){var e=Jg(H.W.get(),"SLOT_TYPE_IN_PLAYER");G=new In(H.L,P,G);P=[new r_(H.L,e)];H=[new BQ(H.L,E)];return{slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:P,slotExpirationTriggers:H,f_:"core",clientMetadata:new ZN([new Cr(Q({slotId:e,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f_:"core",slotEntryTrigger:G,slotFulfillmentTriggers:P,slotExpirationTriggers:H}))])}}; cH=function(H,E){E={current:E/1E3,duration:H.vk()/1E3};H.hG.get().rW("onAdPlaybackProgress",E)}; jq=function(){NU.instance||(NU.instance=new NU);return NU.instance}; g.TE=function(H){this.L=this.N=this.T="";this.G=null;this.C=this.W="";this.B=!1;var E;H instanceof g.TE?(this.B=H.B,g.el(this,H.T),this.N=H.N,g.yZ(this,H.L),g.bg(this,H.G),this.W=H.W,ig(this,H.D.clone()),this.C=H.C):H&&(E=g.AL(String(H)))?(this.B=!1,g.el(this,E[1]||"",!0),this.N=o7(E[2]||""),g.yZ(this,E[3]||"",!0),g.bg(this,E[4]),this.W=o7(E[5]||"",!0),ig(this,E[6]||"",!0),this.C=o7(E[7]||"")):(this.B=!1,this.D=new qU(null,this.B))}; gq=function(H,E){return H.D?H.D:H.D=new Promise(function(G){var P,Q,e,w;return g.L(function(t){switch(t.L){case 1:return P=window.AbortController?new window.AbortController:void 0,e=(Q=P)==null?void 0:Q.signal,w=!1,g.EY(t,2,3),P&&(H.W=H.UZ.c6(function(){P.abort()},E||2E4)),g.U(t,fetch("/generate_204",{method:"HEAD", signal:e}),5);case 5:w=!0;case 3:g.ED(t);H.D=void 0;H.W&&(H.UZ.gU(H.W),H.W=0);w!==H.L&&(H.L=w,H.L?H.dispatchEvent("networkstatus-online"):H.dispatchEvent("networkstatus-offline"));G(w);g.GN(t,0);break;case 2:g.vo(t),w=!1,t.bJ(3)}})})}; so7=function(H){if(H.S.K().showMiniplayerUiWhenMinimized)return H.GH.get("miniplayer")}; efd=function(H,E){E=oHt(H,E);if(!E)return null;var G;E.Kn=(G=Zi(H.clientMetadata,"metadata_type_ad_pod_info"))==null?void 0:G.adBreakRemainingLengthSeconds;return E}; wbv=function(H,E,G){return G.triggeringSlotId!=null&&G.triggeringSlotId===H?G.clone(E):G}; Zc=function(H,E,G){if(!g.Xj("web_csi_action_sampling_enabled")||!zY(G).actionDisabled){var P=TY(G),Q;if(Q=g.Xj("web_csi_debug_sample_enabled")&&P){(hu().resolve(new HG(DF))==null?0:nE())&&!hfs&&(hfs=!0,Zc("gcfl",(0,g.ON)(),G));var e,w,t;Q=(hu().resolve(new HG(DF))==null?void 0:(e=nE())==null?void 0:(w=e.loggingHotConfig)==null?void 0:(t=w.csiConfig)==null?void 0:t.debugSampleWeight)||0;if(e=Q!==0)b:{e=$_q();if(e.length>0)for(w=0;wH.T.L3+100)&&H.T){var Q=H.T;G=Q.isAd;P=P*1E3-Q.L3;H.SK=E*1E3-Q.Omp-P-Q.GW$;Q=(0,g.ON)()-P;E=H.SK;P=H.provider.videoData;var e=P.isAd();if(G||e){e=(G?"ad":"video")+"_to_"+(e?"ad":"video");var w={};P.C&&(w.cttAuthInfo={token:P.C,videoId:P.videoId});w.startTime= Q-E;B2(e,w);g.Qn({targetVideoId:P.videoId,targetCpn:P.clientPlaybackNonce},e);KT("pbs",Q,e)}else Q=H.provider.Fo.Nf(),Q.C!==P.clientPlaybackNonce?(Q.T=P.clientPlaybackNonce,Q.W=E):P.hE()||g.p5(new g.LN("CSI timing logged before gllat",{cpn:P.clientPlaybackNonce}));H.g5("gllat",{l:H.SK.toFixed(),prev_ad:+G});delete H.T}}; gft=function(H){var E=g.Gz(H.W),G=0,P;for(P in H.L)g.Xa(E,P)&&H.L[P]==1&&(G+=H.W[P][1],H.L[P]=2);return G}; IwU=function(H,E,G,P,Q,e){this.displayName=H;this.vssId=E;this.languageCode=G;this.kind=P===void 0?"":P;this.xtags=Q===void 0?"":Q;this.id=e===void 0?"":e}; A4U=function(H){if(H!==z_)throw Error();}; eww=function(H,E,G){var P,Q=-1,e=E[1],w=0,t=7,k=4;e===0&&(t=138,k=3);for(P=0;P<=G;P++){var W=e;e=E[(P+1)*2+1];if(!(++w0&&Q=0;P--)if(H.L[P].width>0){ok(H.L[P],0);var Q=Math.floor(H.L[P].width);H.L[P].width=Q;qb(H.L[P],Q+"px");break}H.L[G].width=0;qb(H.L[G],"0")}else G===H.L.length-1?(P=Math.floor(H.L[G].width+E),H.L[G].width=P,qb(H.L[G],P+"px")):(E=H.L[G].width+E,P=Math.round(E),E-=P,H.L[G].width=P,qb(H.L[G],P+"px"));G=0;if(H.D.length===H.L.length)for(E=0;E< H.D.length;E++)P=H.L[E].width,H.D[E].element.style.width=P+"px",H.D[E].element.style.left=G+"px",G+=P+ND(H);H.api.U("delhi_modern_web_player")&&(H.L.length===1?H.L[0].W.classList.add("ytp-progress-bar-start","ytp-progress-bar-end"):(H.L[0].W.classList.remove("ytp-progress-bar-end"),H.L[0].W.classList.add("ytp-progress-bar-start"),H.L[H.L.length-1].W.classList.add("ytp-progress-bar-end")))}; GJ=function(H,E,G,P,Q){bu.call(this,H,E,G,P,"survey-question-multi-select");this.WF=Q;this.noneOfTheAbove=null;this.submitEndpoints=[];this.T=null;this.hide()}; T6j=function(H){if(!H)throw Error("Fetching Attestation challenge returned falsy");if(!H.challenge)throw Error("Missing Attestation challenge");var E=H.challenge,G=ez(E);if("c1a"in G&&(!H.bgChallenge||!H.bgChallenge.program))throw Error("Expected bg challenge but missing.");return Object.assign({},H,{O0m:E,ziu:G})}; Vhu=function(H,E){var G=arguments.length==2?oiU(arguments[1],0):oiU(arguments,1);return MA(H,G)}; Smq=function(){var H=g.Un("ytcsi.reference");if(H)return H;w2();return g.Un("ytcsi.reference")}; F61=function(H){this.L=H}; hh=function(H,E){bQ.call(this,H,E);this.options=E;ni(H)}; fwM=function(H,E){tb(H,1,E.deviceInterface);Uj(H,2,E.deviceVersion);Kc(H,3,E.isSleeping)}; $8=function(H){this.value=H}; $S=function(H){var E;return(E=H.S.getVideoData(1)==null?void 0:!1)!=null?E:!1}; q$Q=function(H){return(H=pbq&&pbq.exec(H))?H[0]:""}; q2=function(H){H.L.update();H=H.L;H.segments.length&&H.L===H.G||th(H);var E=H.segments;H.segments=[];return E}; HRl=function(H){var E,G;g.L(function(P){if(P.L==1)return cg(H,"swpo_i"),f1(H),Ha(H),g.U(P,k8(),2);if(P.L!=3)return E=P.W,cg(H,"swpo_co"),g.U(P,dlt(E),3);G=P.W;H.U("html5_web_po_token_disable_caching")||G.nN(150);H.W=G;cg(H,"swpo_cc");KBq(G.zM()).then(function(){H.L=!0;H.T.resolve();cg(H,"swpo_re")}); g.bw(function(){Es(H);cg(H,"swpo_si")},0); g.P2(P)})}; pPM=function(H){if(WU()){H.HT=H.api.Nf();H.L=new Kd;H.G=2;var E=g.hE(H.api.K().experiments,"html5_d6de4_defer_timeout_ms");H.HT.MW("pt_pish");E?g.bw(function(){Ik(H)},E):H.api.U("html5_enable_d6de4_idle_priority_job")&&window.requestIdleCallback?window.requestIdleCallback(function(){Ik(H)}):Ik(H)}}; Ah=function(H){this.L_=this.B=this.T=this.G=0;this.N=this.C=!1;this.L=H;this.W=H.clone()}; E47=function(H){H.G>=0||(H.provider.X.AT||H.provider.Fo.getVisibilityState()!==3?H.G=g.Gm(H.provider):H.MZ=!0)}; P8n=function(H,E,G,P,Q){return GFs(H,E,G,P,function(e,w){return new Qc7(H.L,G,e,w,Q)})}; mH=function(H){this.SR=H}; sIq=function(H,E,G){var P,Q=((P=G.adSlots)!=null?P:[]).map(function(t){return g.X(t,uI)}); if(G.Ms)if(Zi(E.clientMetadata,"metadata_type_allow_pause_ad_break_request_slot_reschedule"))Tv(H.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},E.slotId); else{if(H.Da.get().S.K().U("h5_check_forecasting_renderer_for_throttled_midroll")){var e=G.Nb.filter(function(t){var k;return((k=t.renderer)==null?void 0:k.clientForecastingAdRenderer)!=null}); e.length!==0?QIv(H.G,e,Q,E.slotId,G.ssdaiAdsConfig):Tv(H.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},E.slotId)}else Tv(H.L.get(),"OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",function(){return[]},E.slotId); gLt(H.D,E)}else{var w;P={pZ:Math.round(((e=Zi(E.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:e.pZ)||0),LZ:(w=Zi(E.clientMetadata,"metadata_type_ad_break_request_data"))==null?void 0:w.LZ};e=Zi(E.clientMetadata,"metadata_type_cue_point");QIv(H.G,G.Nb,Q,E.slotId,G.ssdaiAdsConfig,P,e)}}; vU=function(H,E){return E&&g.vV(H.X)?E.some(function(G){return G.video.fps>32}):!1}; MI=function(H,E){H=RM(H,E);if(E=H.layout!=null)a:switch(H.L){case "rendering":case "rendering_stop_requested":E=!0;break a;default:E=!1}return E}; ak=function(H,E,G,P){P.info.uJ.Dr();var Q=P.info.uJ.L;if(!Q||!G.Ip()||G.U$()===Q)return!1;var e=Q,w=G.Y5();if(H.policy.HM&&w&&G.isView()&&g.MQ(P.info.uJ.info)){var t=new DataView(Q.buffer,Q.byteOffset,Q.byteLength);(w=o4v(t,w))?e=new Uint8Array(w.buffer,w.byteOffset,w.byteLength):H.g5("fenc",{})}H.policy.p8&&(w=eET(H,P,new hJ([e])))&&(e=vA(w));var k;(w=P.info.uJ.oY(0,P.info.clipId))&&(k=w.kp[0]);if(P===H.ML){if(H.O7+=1,H.Fo.getVideoData().U("html5_shorts_gapless_restart_on_init_seg_retries")&&H.O7> 5)return H.O7=0,H.Fo.YQ({initSegStuck:1,as:P.info.PO()}),!0}else H.O7=0,H.ML=P;H.policy.mO&&(G.abort(),(w=E.N)!=null&&(d2(w,4),w.flush()));Q=wTU(H,G,e,k,Q);(E=E.N)!=null&&(E.flush(),E.W=k,d2(E,3,Q));if(Q!==0)return H.policy.Zs&&OV(H.Fo.getVideoData())?(H.Fo.Qj()||D4(H,"sepInit",Q,P.info),uyT(H.Fo,"sie")):D4(H,"sepInit",Q,P.info),!0;P.info.dO()?(k=H.timing,k.O7||(k.O7=(0,g.ON)(),g.ng("vis_a",k.O7,k.L))):(k=H.timing,k.B||(k.B=(0,g.ON)(),g.ng("ais_a",k.B,k.L)));(P=P.info.uJ.Xh)&&H.Fo.Uq(new Ch(P.key, P.type));return G.pX()}; Ob=function(H,E,G,P){P=P===void 0?!1:P;if(G.indexOf(E)>-1)throw Error("Deps cycle for: "+E);if(H.W.has(E))return H.W.get(E);if(!H.L.has(E)){if(P)return;throw Error("No provider for: "+E);}P=H.L.get(E);G.push(E);if(P.e4!==void 0)var Q=P.e4;else if(P.w6_)Q=P[EM]?hEv(H,P[EM],G):[],Q=P.w6_.apply(P,g.EC(Q));else if(P.Eo){Q=P.Eo;var e=Q[EM]?hEv(H,Q[EM],G):[];Q=new (Function.prototype.bind.apply(Q,[null].concat(g.EC(e))))}else throw Error("Could not resolve providers for: "+E);G.pop();P.ANu||H.W.set(E,Q); return Q}; jz=function(H,E){return Kg(H,E)>=0}; BN=function(H){H=fz(H.hT);return!!H&&H.loaded}; b1=function(H){return H?function(){try{return H.apply(this,arguments)}catch(E){g.h3(E)}}:H}; $4T=function(H,E){if(!H||!H.state||E>5||E<0)return H?cU(H,-2):-2;var G=H.state;if(!H.output||!H.input&&H.bV!==0||G.status===666&&E!==4)return cU(H,H.NV===0?-5:-2);G.ey=H;var P=G.UD;G.UD=E;if(G.status===42)if(G.wrap===2)H.b1=0,J4(G,31),J4(G,139),J4(G,8),G.Ho?(J4(G,(G.Ho.text?1:0)+(G.Ho.hJ?2:0)+(G.Ho.extra?4:0)+(G.Ho.name?8:0)+(G.Ho.comment?16:0)),J4(G,G.Ho.time&255),J4(G,G.Ho.time>>8&255),J4(G,G.Ho.time>>16&255),J4(G,G.Ho.time>>24&255),J4(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),J4(G,G.Ho.os& 255),G.Ho.extra&&G.Ho.extra.length&&(J4(G,G.Ho.extra.length&255),J4(G,G.Ho.extra.length>>8&255)),G.Ho.hJ&&(H.b1=dC(H.b1,G.JK,G.pending,0)),G.bu=0,G.status=69):(J4(G,0),J4(G,0),J4(G,0),J4(G,0),J4(G,0),J4(G,G.level===9?2:G.strategy>=2||G.level<2?4:0),J4(G,3),G.status=113);else{var Q=8+(G.j4-8<<4)<<8;Q|=(G.strategy>=2||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6;G.J7!==0&&(Q|=32);G.status=113;cM(G,Q+(31-Q%31));G.J7!==0&&(cM(G,H.b1>>>16),cM(G,H.b1&65535));H.b1=1}if(G.status===69)if(G.Ho.extra){for(Q= G.pending;G.bu<(G.Ho.extra.length&65535)&&(G.pending!==G.WD||(G.Ho.hJ&&G.pending>Q&&(H.b1=dC(H.b1,G.JK,G.pending-Q,Q)),af(H),Q=G.pending,G.pending!==G.WD));)J4(G,G.Ho.extra[G.bu]&255),G.bu++;G.Ho.hJ&&G.pending>Q&&(H.b1=dC(H.b1,G.JK,G.pending-Q,Q));G.bu===G.Ho.extra.length&&(G.bu=0,G.status=73)}else G.status=73;if(G.status===73)if(G.Ho.name){Q=G.pending;do{if(G.pending===G.WD&&(G.Ho.hJ&&G.pending>Q&&(H.b1=dC(H.b1,G.JK,G.pending-Q,Q)),af(H),Q=G.pending,G.pending===G.WD)){var e=1;break}e=G.buQ&&(H.b1=dC(H.b1,G.JK,G.pending-Q,Q));e===0&&(G.bu=0,G.status=91)}else G.status=91;if(G.status===91)if(G.Ho.comment){Q=G.pending;do{if(G.pending===G.WD&&(G.Ho.hJ&&G.pending>Q&&(H.b1=dC(H.b1,G.JK,G.pending-Q,Q)),af(H),Q=G.pending,G.pending===G.WD)){e=1;break}e=G.buQ&&(H.b1=dC(H.b1,G.JK,G.pending-Q,Q));e===0&&(G.status=103)}else G.status= 103;G.status===103&&(G.Ho.hJ?(G.pending+2>G.WD&&af(H),G.pending+2<=G.WD&&(J4(G,H.b1&255),J4(G,H.b1>>8&255),H.b1=0,G.status=113)):G.status=113);if(G.pending!==0){if(af(H),H.NV===0)return G.UD=-1,0}else if(H.bV===0&&(E<<1)-(E>4?9:0)<=(P<<1)-(P>4?9:0)&&E!==4)return cU(H,-5);if(G.status===666&&H.bV!==0)return cU(H,-5);if(H.bV!==0||G.y8!==0||E!==0&&G.status!==666){P=G.strategy===2?xqd(G,E):G.strategy===3?G7u(G,E):NI[G.level].func(G,E);if(P===3||P===4)G.status=666;if(P===1||P===3)return H.NV===0&&(G.UD= -1),0;if(P===2&&(E===1?(XB(G,2,3),Zy(G,256,DS),G.P6===16?(HT(G,G.Pt),G.Pt=0,G.P6=0):G.P6>=8&&(G.JK[G.pending++]=G.Pt&255,G.Pt>>=8,G.P6-=8)):E!==5&&(XB(G,0,3),svQ(G,0,0),E===3&&(yY(G.head),G.y8===0&&(G.J7=0,G.KR=0,G.OR=0))),af(H),H.NV===0))return G.UD=-1,0}if(E!==4)return 0;if(G.wrap<=0)return 1;G.wrap===2?(J4(G,H.b1&255),J4(G,H.b1>>8&255),J4(G,H.b1>>16&255),J4(G,H.b1>>24&255),J4(G,H.bN&255),J4(G,H.bN>>8&255),J4(G,H.bN>>16&255),J4(G,H.bN>>24&255)):(cM(G,H.b1>>>16),cM(G,H.b1&65535));af(H);G.wrap>0&& (G.wrap=-G.wrap);return G.pending!==0?0:1}; tet=function(H){var E,G,P,Q;return g.L(function(e){switch(e.L){case 1:return H.L.L&&typeof((E=navigator.mediaCapabilities)==null?void 0:E.decodingInfo)==="function"?g.U(e,Promise.resolve(),2):e.return(Promise.resolve());case 2:G=g.R(H.L.videoInfos),P=G.next();case 3:if(P.done){e.bJ(0);break}Q=P.value;return g.U(e,C_j(Q),4);case 4:P=G.next(),e.bJ(3)}})}; kFn=function(H,E,G,P){var Q=eU(null,null,null);Q.L=new g.El(function(e,w){Q.G=E?function(t){try{var k=E.call(P,t);e(k)}catch(W){w(W)}}:e; Q.W=G?function(t){try{var k=G.call(P,t);k===void 0&&t instanceof DH?w(t):e(k)}catch(W){w(W)}}:w}); Q.L.G=H;o6(H,Q);return Q.L}; KAT=function(H){if(typeof H!=="number")throw ao("int32");if(!Ox(H))throw ao("int32");return H|0}; bI=function(H,E,G){if(H.Xm(G)&&(G=G.getVideoData(),!Zz(H))){H=H.ze;for(var P=g.R(H.W),Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,G.U9===Q.U9){E+=Q.HO/1E3;break}P=E;H=g.R(H.W);for(Q=H.next();!Q.done;Q=H.next()){Q=Q.value;if(G.U9===Q.U9)break;var e=Q.HO/1E3;if(e=0?1:H.indexOf("/webm")>=0?2:H.indexOf("/x-flv")>=0?3:H.indexOf("/vtt")>=0?4:0}; k0=function(H,E){yS||c9 in H||VBM(H,SW1);H[c9]=E}; n4w=function(H){Vt(H,function(){var E=this;return function P(){var Q,e,w,t,k,W,I,A,m;return SK(P,function(u){switch(u.L){case 1:g.Fq(u,2);E.HT.tick("wasm_s");Q=Cg(E.hT)?function(v){return bk(O7j(E.hT),function(n){return n.FZa(v)})}:void 0; e=g.hE(E.X.experiments,"html5_wasm_initialization_delay_ms");w=E.U("html5_wasm_initialization_disable_sync");t=E.U("html5_wasm_initialization_wait_for_idle");if(!(e>0)){u.bJ(4);break}k=fi;return pi(u,HM(fuQ(e)),5);case 5:k(u.W);case 4:if(!t){u.bJ(6);break}W=fi;return pi(u,HM(Meu()),7);case 7:W(u.W);case 6:return g.EY(u,8),I=d41(E.webPlayerContextConfig.wasmModuleUrl,Q,E.VD.bind(E),w),A=fi,pi(u,HM(I),10);case 10:m=A(u.W);E.HT.tick(m.L?"wasm_fa":"wasm_fw");D4d(E.X,m);g.pA(u,2);break;case 8:g.vo(u), E.HT.tick("wasm_ferr");case 2:g.ED(u),g.GN(u,0)}})}()})}; ORu=function(H,E,G,P,Q,e,w){G=aml(H,E,G,P);if(G instanceof T)return G;w=w({slotId:G.slotId,slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,slotEntryTrigger:G.slotEntryTrigger,slotFulfillmentTriggers:G.slotFulfillmentTriggers,slotExpirationTriggers:G.slotExpirationTriggers,f_:G.f_});if(w instanceof T)return w;P=[new C1(TJ(E)),new Cr(w.layout),new Zx({Vn:H.Vn(E)})];e&&P.push(new CR({}));return{f4:{slotId:G.slotId,slotType:G.slotType,slotPhysicalPosition:G.slotPhysicalPosition,slotEntryTrigger:S0(H, E,G.slotId,G.slotEntryTrigger),slotFulfillmentTriggers:MU(H,E,G.slotId,G.slotFulfillmentTriggers),slotExpirationTriggers:G.slotExpirationTriggers,f_:G.f_,clientMetadata:new ZN(P),adSlotLoggingData:Q},TH:w.TH}}; g2=function(H){BD.call(this,H,!1,!0);this.isCounterfactual=this.W=this.isVisible=this.isInitialized=this.shouldShowOverflowButton=this.shouldHideDismissButton=!1;this.B=!0;this.overflowButton=new g.D({J:"button",QN:["ytp-featured-product-overflow-icon","ytp-button"],j:{"aria-haspopup":"true"}});this.overflowButton.hide();g.d(this,this.overflowButton);this.badge.element.classList.add("ytp-suggested-action");this.thumbnailImage=new g.D({J:"img",Y:"ytp-suggested-action-badge-img",j:{src:"{{url}}"}}); this.thumbnailImage.hide();g.d(this,this.thumbnailImage);this.thumbnailIcon=new g.D({J:"div",Y:"ytp-suggested-action-badge-icon"});this.thumbnailIcon.hide();g.d(this,this.thumbnailIcon);this.banner=new g.D({J:"a",Y:"ytp-suggested-action-container",V:[this.thumbnailImage,this.thumbnailIcon,{J:"div",Y:"ytp-suggested-action-details",V:[{J:"text",Y:"ytp-suggested-action-title",iJ:"{{title}}"},{J:"text",Y:"ytp-suggested-action-subtitle",iJ:"{{subtitle}}"},{J:"text",Y:"ytp-suggested-action-metadata-text", iJ:"{{metadata}}"}]},this.dismissButton,this.overflowButton]});g.d(this,this.banner);this.banner.mx(this.G.element);this.Z(this.S,"videodatachange",this.onVideoDataChange);this.Z(this.S,g.Ya("suggested_action_view_model"),this.q9a);this.Z(this.S,g.XT("suggested_action_view_model"),this.FVR);this.Z(this.overflowButton.element,"click",this.lR);this.Z(H,"featuredproductdismissed",this.tA);this.S.createServerVe(this.banner.element,this.banner,!0)}; Lg=function(H,E,G){this.VN=tz(H,E,G)}; lI=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-ad-survey",V:[{J:"div",Y:"ytp-ad-survey-questions"}]},"survey",E,G,P);this.questions=[];this.W=[];this.conditioningRules=[];this.L=0;this.T=this.HF("ytp-ad-survey-questions");this.api.K().U("fix_survey_color_contrast_on_destop")&&this.HF("ytp-ad-survey").classList.add("color-contrast-fix");this.api.K().U("web_enable_speedmaster")&&this.HF("ytp-ad-survey").classList.add("relative-positioning-survey");this.hide()}; Ub=function(H,E,G,P){(P===void 0?0:P)?IA(H,1,"seek"):E>0&&Math.abs(E-G)>=5&&H.W===4&&IA(H,5,"sk2t")}; x8=function(H,E,G,P,Q){this.mZ$=H;this.NPp=E;this.HaJ=G;this.MTJ=P;this.func=Q}; ze=function(H){g.D.call(this,{J:"div",Y:"ytp-seek-overlay",V:[{J:"div",QN:["ytp-seek-overlay-animation","ytp-seek-overlay-animation-back"],V:[{J:"div",QN:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{J:"svg",j:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{J:"path",j:{d:"M 18 4 L 6 16 L 18 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]},{J:"div",Y:"ytp-seek-overlay-duration",iJ:"{{durationBack}}"}]},{J:"div",QN:["ytp-seek-overlay-animation", "ytp-seek-overlay-animation-forward"],V:[{J:"div",Y:"ytp-seek-overlay-duration",iJ:"{{durationForward}}"},{J:"div",QN:["ytp-seek-overlay-arrow","ytp-seek-overlay-arrow-persistent"],V:[{J:"svg",j:{viewBox:"0 0 22 32",width:"22",height:"24"},V:[{J:"path",j:{d:"M 4 4 L 16 16 L 4 28",stroke:"white","stroke-width":"4","stroke-linecap":"round",fill:"none"}}]}]}]},{J:"div",Y:"ytp-seek-overlay-message",V:[{J:"div",Y:"ytp-seek-overlay-message-icon",iJ:"{{icon}}"},{J:"div",Y:"ytp-seek-overlay-message-text", iJ:"{{text}}"}]}]});var E=this;this.S=H;this.T=0;this.L="hidden";this.B=this.HF("ytp-seek-overlay-animation-back");this.N=this.HF("ytp-seek-overlay-animation-forward");this.p_=this.HF("ytp-seek-overlay-message");this.C=new g.Wt(function(){FFT(E)},g.hE(this.S.K().experiments,"web_player_seek_overlay_linger_duration")||1E3); g.d(this,this.C);this.S.createClientVe(this.N,this,28240);this.S.createClientVe(this.B,this,28239);this.S.logVisibility(this.N,!0);this.S.logVisibility(this.B,!0);this.hide()}; KGw=function(H,E,G){this.Fg=H;this.SR=E;this.L=G}; Te=function(H,E){var G=0,P=-1;H=g.R(H);for(var Q=H.next();!Q.done;Q=H.next())if(Q=Q.value,!(Q.startTimeMs+Q.durationMsE||P>=0&&Q.pW>P+1)break;G=Math.max(G,Q.startTimeMs+Q.durationMs);P=Math.max(P,Q.N4)}return Math.max(0,G-E)}; Sz=function(H){YM.call(this,"onesie");this.Te=H;this.L={};this.D=!0;this.G=null;this.queue=new VY(this);this.T={}}; FY=function(H,E){H.S.sendVideoStatsEngageEvent(E,void 0,2)}; WI=function(H,E){return H.S.K().U(E)}; jIM=function(H){g.fg(H.Nx);PR(H)||(H.Nx=g.Y_(function(){return PR(H)},100))}; IJ=function(){$4.apply(this,arguments)}; $tq=function(H){var E;return!((E=H.BO)==null||!E.pP)}; qBd=function(H){vP(H,"od",cpw);vP(H,"opac",ML).L=!0;vP(H,"sbeos",ML).L=!0;vP(H,"prf",ML).L=!0;vP(H,"mwt",ML).L=!0;vP(H,"iogeo",ML)}; g.Gz=function(H){var E=[],G=0,P;for(P in H)E[G++]=P;return E}; Nqs=function(H,E){$H(H.api.K())&&(E?H.T.show():H.T.hide())}; Bdw=function(H){try{var E=pg('video/mp4; codecs="avc1.42001E"')||pg('video/webm; codecs="vp9"');return(pg('audio/mp4; codecs="mp4a.40.2"')||pg('audio/webm; codecs="opus"'))&&(E||!H)||H5('video/mp4; codecs="avc1.42001E, mp4a.40.2"')?null:"fmt.noneavailable"}catch(G){return"html5.missingapi"}}; et=function(H){return H==="gelDebuggingEvent"}; E3=function(H){g.D.call(this,{J:"button",QN:["ytp-pip-button","ytp-button"],j:{title:H.U("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"},V:[we()]});var E=this;this.api=H;this.listen("click",this.onClick);var G=this.api.Rs(),P=G.subscribe("visibilitystatechange",function(){E.r5(G.tE())}); this.addOnDisposeCallback(function(){G.fm(P)}); M2(H,this.element,this);this.r5(G.tE())}; g.G8=function(H){if(H.simpleText)return H=document.createTextNode(H.simpleText),H;var E=[];if(H.runs)for(var G=0;GE||G>10||(H.play(),g.bw(function(){Jpu(H,H.getCurrentTime(),G+1)},500))}; Bql=function(H){var E=new Uint8Array(32),G=64-H.W;H.W>55&&(G+=64);var P=new Uint8Array(G);P[0]=128;for(var Q=H.D*8,e=1;e<9;e++){var w=Q%256;P[G-e]=w;Q=(Q-w)/256}H.update(P);for(G=0;G<8;G++)E[G*4]=H.L[G]>>>24,E[G*4+1]=H.L[G]>>>16&255,E[G*4+2]=H.L[G]>>>8&255,E[G*4+3]=H.L[G]&255;rpw(H);return E}; Y1u=function(H,E,G){var P=new Promise(function(Q,e){try{var w=E(H);G&&H.commit();w.then(function(t){Q(t)}).catch(e)}catch(t){e(t),H.abort()}}); return Promise.all([P,H.done]).then(function(Q){return g.R(Q).next().value})}; XTQ=function(H,E){H=H.app.jR();var G=H.getPlayerState();E.isOrWillBePlaying()&&!G.isOrWillBePlaying()?H.playVideo():E.isPaused()&&!G.isPaused()&&H.pauseVideo()}; C87=function(H,E){var G=0;ZRU(H,function(P,Q){E.call(void 0,P,Q,H)&&g.Fh(H,Q)&&G++})}; oi=function(H,E){try{navigator.mediaSession.setActionHandler(H,E)}catch(G){}}; w_=function(H,E,G,P){var Q=P[H];if(Q)return Q;Q={};Q.LA=P;Q.BM=g4M(P[0]);var e=P[1],w=1;e&&e.constructor===Object&&(Q.extensions=e,e=P[++w],typeof e==="function"&&(Q.qj=!0,k7!=null||(k7=e),te!=null||(te=P[w+1]),e=P[w+=2]));for(var t={};e&&Array.isArray(e)&&e.length&&typeof e[0]==="number"&&e[0]>0;){for(var k=0;k=1E3?Q():P>=H?W5||(W5=kl(function(){Q();W5=void 0},0)):e-t>=10&&($Ls(E,G.tier),w.D=e)}; Ii=function(H){H.L=null;H.Q8.clear();H.W&&H.W.stop();H.T&&H.T.stop();var E;(E=H.G)==null||E.stop();delete H.G}; DF=function(){var H=this;this.T=!1;this.G=this.D=0;this.C=new Al;this.kV={P3a:function(){H.T=!0}, DlR:function(){return H.L}, Thm:function(E){gn(H,E)}, lT:function(E){H.lT(E)}, bvN:function(E){mx(H,E)}, jB:function(){return H.coldHashData}, K$:function(){return H.hotHashData}, CMJ:function(){return H.W}, Tp$:function(){return eE()}, SCR:function(){return Yi()}, t$$:function(){return g.Un("yt.gcf.config.coldHashData")}, Ulu:function(){return g.Un("yt.gcf.config.hotHashData")}, f9m:function(){S1q(H)}, WRJ:function(){H.lT(void 0);Sn(H);delete DF.instance}, dbx:function(E){H.G=E}, dlF:function(){return H.G}}}; u2=function(){this.listeners=new Set}; MJ=function(H){v5.call(this,!0);this.L=H}; FGU=function(H,E,G,P,Q){var e=g.Gm(H.provider);E!==1&&E!==3&&E!==5||g.BC(H,e,"vps",[H.jy]);U4(H,"xvt","t."+e.toFixed(3)+";m."+Q.toFixed(3)+";g.2;tt."+E+";np.0;c."+G+";d."+P)}; LpM=function(H){if(H.playlist&&(g.nb(H.X)||H.X.Jm==="background_audio_playback")&&H.Pl()){var E=H.X.U("html5_player_autonav_logging");H.nextVideo(!1,E);return!0}return!1}; HUd=function(H,E,G,P,Q){var e=H.ou;var w=H.policy.L,t=!1,k=-1,W;for(W in e.L){var I=wU(e.L[W].info.mimeType)||e.L[W].info.dO();if(P===I)if(I=e.L[W].index,I.Pn(E.U7)){t=I;var A=E,m=t.R2(A.U7);m&&m.startTime!==A.startTime?(t.segments=[],t.B_(A),t=!0):t=!1;t?k=E.U7:!E.pending&&w&&(A=I.getDuration(E.U7),A!==E.duration&&(e.publish("clienttemp","mfldurUpdate",{itag:e.L[W].info.itag,seg:E.U7,od:A,nd:E.duration},!1),I.B_(E),t=!0))}else I.B_(E),t=!0}k>=0&&(w={},e.publish("clienttemp","resetMflIndex",(w[P? "v":"a"]=k,w),!1));e=t;fmU(H.PK,E,P,e);if(H.policy.hm&&H.policy.W&&(k=E.kt||null)){var u;w=(u=H.W)==null?void 0:fj1(u).requestNumber;var v;(v=H.WF)==null||pT1(v,k,w,E.U7)}H.G.tP(E,G,P,Q);E.U7===H.ou.iG&&e&&ty(H.ou)&&E.startTime>ty(H.ou)&&(H.ou.zT=E.startTime+(isNaN(H.timestampOffset)?0:H.timestampOffset),H.PK.isSeeking()&&H.PK.targetTimeH.nS.Xo?!1:!G.has(P.id)}); $Wj(H.L)&&(E=g.W2(E,function(P){return P.video.width<=854&&P.video.height<=480})); return E}; Yj=function(H){this.value=H}; i2=function(H,E,G,P,Q){for(var e=[],w=g.R(H.Q8.values()),t=w.next();!t.done;t=w.next()){var k=t=t.value,W=k.trigger;k=k.slot;if(W.triggerType===E){if(W instanceof i3||W instanceof oj||W instanceof b2){if(Q&&W.breakDurationMs!==G)continue;if(!Q&&W.breakDurationMs===G)continue;if(P.has(k.slotId))continue}e.push(t)}}e.length>0&&xY(H.C(),e)}; qJ=function(H,E,G,P,Q){S_.call(this,H,{J:"div",Y:"ytp-ad-timed-pie-countdown-container",V:[{J:"svg",Y:"ytp-ad-timed-pie-countdown",j:{viewBox:"0 0 20 20"},V:[{J:"circle",Y:"ytp-ad-timed-pie-countdown-background",j:{r:"10",cx:"10",cy:"10"}},{J:"circle",Y:"ytp-ad-timed-pie-countdown-inner",j:{r:"5",cx:"10",cy:"10"}},{J:"circle",Y:"ytp-ad-timed-pie-countdown-outer",j:{r:"10",cx:"10",cy:"10"}}]}]},"timed-pie-countdown",E,G,P,Q);this.D=this.HF("ytp-ad-timed-pie-countdown-container");this.G=this.HF("ytp-ad-timed-pie-countdown-inner"); this.T=this.HF("ytp-ad-timed-pie-countdown-outer");this.W=Math.ceil(2*Math.PI*5);this.hide()}; Ri=function(H){this.value=H}; Wit=function(H){return{Ii:ue(H,1,kkn)}}; XP=function(){p1.apply(this,arguments)}; VS1=function(H){uR(H)&&!H.aV&&(H.L=!0,H.FP&&Math.random()<=H.rr&&H.zW.b5(H.rO),H.zx(),H.pm.Lm()&&H.Ns(),H.pm.listen(H.Hw,H.Ns.bind(H)),H.pm.listen(H.dg,H.Dk.bind(H)))}; Ins=function(H){Jl=H}; mWM=function(H,E){Qf(H,1,E.bd,sB,3);if(E.Dn)for(var G=0;G32?Math.min(P,Q.video.width):P},Infinity); G32||P.video.width0)){v.bJ(5);break}return g.U(v,Ax(5E3),6);case 6:I={playerretry:k,playerretrysrc:G},w||(I.recover="embedded"),W=Oq(e,I);case 5:return g.U(v,nJd(E,W).then(Q,P),7);case 7:if(A=v.W)return v.return();k++;v.bJ(2);break;case 4:m=w?"auth":"manifest.net.retryexhausted";u=w?2:1;if(!w&&Math.random()< 1E-4)try{g.p5(new g.LN("b/152131571",btoa(e)))}catch(O){}return v.return(Promise.reject(new g.q$(m,{backend:"gvi"},u)))}})}; Zt=function(H,E,G,P,Q,e){S_.call(this,H,{J:"div",Y:"ytp-ad-preview-slot"},"ad-preview",E,G,P,Q);var w=this;this.BF=-1;this.D=this.api.K().experiments.xp("enable_modern_skip_button_on_web");this.W=new g.av({J:"span",Y:"ytp-ad-preview-container"});this.D&&this.W.element.classList.add("ytp-ad-preview-container-detached");g.d(this,this.W);this.G=this.D?new aj(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,"ytp-ad-preview-text-modern"):new aj(this.api,this.layoutId,this.interactionLoggingClientData, this.vF,"ytp-ad-preview-text");g.d(this,this.G);this.G.mx(this.W.element);this.PF=this.D?new g.av({J:"span",Y:"ytp-ad-preview-image-modern"}):new g.av({J:"span",Y:"ytp-ad-preview-image"});g.d(this,this.PF);this.T=new ne(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);g.d(this,this.T);this.T.mx(this.PF.element);this.PF.mx(this.W.element);this.W.mx(this.element);this.WF=new g.NB(this.W,400,!1,100,function(){return w.hide()}); g.d(this,this.WF);this.T$=0;this.eR=!1;this.hm=e;this.hide()}; vfw=function(H){return!(H.isMinimized()||H.isInline()||H.isBackground()||H.tE()||H.HE()||H.tZ()||H.St())}; Lo=function(H,E,G,P,Q){Co.call(this,H,E,G,P,Q,{J:"div",Y:"ytp-display-underlay-text-grid-cards",V:[{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container",V:[{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header",V:[{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar"},{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__header__headline"}]},{J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"}, {J:"div",Y:"ytp-display-underlay-text-grid-cards__content_container__ad_button"}]}]},"display-underlay-text-grid-cards");this.adGridCardCollection=new gA(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);g.d(this,this.adGridCardCollection);this.adGridCardCollection.mx(this.HF("ytp-display-underlay-text-grid-cards__content_container__ad_grid_card_collection"));this.adButton=new FZ(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);g.d(this,this.adButton);this.adButton.mx(this.HF("ytp-display-underlay-text-grid-cards__content_container__ad_button")); this.G=this.HF("ytp-display-underlay-text-grid-cards__content_container");this.D=this.HF("ytp-display-underlay-text-grid-cards__content_container__header")}; OHn=function(H){var E=new l2(function(G,P,Q,e){return new U3(H.L.HL,G,P,Q,e,H.L.Da)},new Set(anT(H.L.HL).concat(H.L.listeners)),H.L.cT,H.L.Da); g.d(H,E);return E}; Uy=function(){return g.tJ("EXPERIMENTS_TOKEN","")}; h8=function(H){g.J.call(this);this.L=H}; xF=function(H,E){var G=H.W[E],P=G[1];H.G+=G[0];P>0&&H.L[E]==0&&(H.L[E]=1)}; rq=function(H,E){H.actionButtons.includes(E)||(H.actionButtons.push(E),H.updateValue("buttons",H.actionButtons))}; OU1=function(H){return(sc(H.videoData)||!!H.videoData.liveUtcStartSeconds)&&(!!H.videoData.liveUtcStartSeconds||nQ(H))&&!!H.videoData.L}; KiM=function(H){return new Uint8Array(H.data.buffer,H.offset+H.data.byteOffset,H.size)}; z8=function(H){H.E7=[];H.hg();H.S.dV("featured_product")}; j1d=function(H,E){return E.reduce(function(G,P){return function(Q){return P.intercept(Q,G)}},H)}; Kwn=function(H){for(var E={Fz:0};E.Fz<16;E={Fz:E.Fz},++E.Fz){var G=new g.D({J:"a",Y:"ytp-suggestion-link",j:{href:"{{link}}",target:H.api.K().L_,"aria-label":"{{aria_label}}"},V:[{J:"div",Y:"ytp-suggestion-image"},{J:"div",Y:"ytp-suggestion-overlay",j:{style:"{{blink_rendering_hack}}","aria-hidden":"{{aria_hidden}}"},V:[{J:"div",Y:"ytp-suggestion-title",iJ:"{{title}}"},{J:"div",Y:"ytp-suggestion-author",iJ:"{{author_and_views}}"},{J:"div",j:{"data-is-live":"{{is_live}}"},Y:"ytp-suggestion-duration", iJ:"{{duration}}"}]}]});g.d(H,G);var P=G.HF("ytp-suggestion-link");g.AE(P,"transitionDelay",E.Fz/20+"s");H.G.Z(P,"click",function(Q){return function(e){var w=Q.Fz;if(H.W){var t=H.suggestionData[w],k=t.sessionData;H.T&&H.api.U("web_player_log_click_before_generating_ve_conversion_params")?(H.api.logClick(H.L[w].element),w=t.Sd(),t={},g.T8(H.api,t),w=g.eB(w,t),g.Xb(w,H.api,e)):g.k6(e,H.api,H.T,k||void 0)&&H.api.OF(t.videoId,k,t.playlistId)}else e.preventDefault(),document.activeElement.blur()}}(E)); G.mx(H.suggestions.element);H.L.push(G);H.api.createServerVe(G.element,G)}}; HJ=function(H,E){if(E.Iu()||H.Iu())H.policy.MP||(H.policy.T?Nn(H.loader):H.loader.Wo());else{if(H.policy.G&&E.isComplete()&&E instanceof JU){var G=H.loader,P=G.g5,Q,e,w=Object.assign(E.s9.NF(),{rst:E.state,strm:E.xhr.gh(),d:(Q=E.s9.PF)==null?void 0:Q.hK(),cncl:E.xhr&&E.E9.T?1:0,rqb:E.cX,cwt:E.E9.G,swt:(e=E.CH)==null?void 0:e.yc});Q=Object.assign(cDn(E.info),w);P.call(G,"rqs",Q)}if(E.isComplete()&&E.C1()&&E instanceof JU)H.policy.AG?E.Lk()?(E.dispose(),H.L.length===0?H.loader.Wo():(H=H.L[0],H instanceof JU&&H.mA()&&H.HW())):E.LX()&&H.loader.handleError(E.Sx(),E.Ce()):(E.dispose(),H.loader.Wo());else{if(E.w8())E instanceof JU&&h8q(H.timing,E),Yjt(H),fR(H);else if(E.LX())if(G=H.Fo.I5(),E instanceof JU&&VA(E.info)&&G&&H.loader.HN(G),E instanceof JU&&NpM(E)){var t;(t=H.loader.mq)==null||S6(t)}else E instanceof r1?H.L.pop():(t=1,E.canRetry()&&Fv(H.loader)&&(yDw(H,E),t=0),H.loader.handleError(E.Sx(),E.Ce(),t));else{if(H.loader.isSuspended&&!E.isComplete())return;fR(H)}E.Iu()||E instanceof r1||(E.isComplete()? t=d1Q(E,H.policy,H.D):(t=hc7(E,H.policy,H.D),t===1&&(H.hm=!0)),t!==0&&(G=new fo(1,E.info.Du),G.V0=t===2,pgs(H,G)));H.policy.ox&&!E.isComplete()?po(H.loader):H.loader.Wo()}}}; inn=function(H){for(var E=[],G=0;G1){for(var E=[H[0]],G=1;G0))return!1;var w=((0,g.ON)()-H.D)/1E3;H.D=(0,g.ON)();G=G.getVideoPlaybackQuality();if(!G)return!1;var t=G.droppedVideoFrames-H.C,k=G.totalVideoFrames-H.N;H.C=G.droppedVideoFrames;H.N=G.totalVideoFrames;var W=G.displayCompositedVideoFrames===0?0:G.displayCompositedVideoFrames||-1;e&&H.X.z6()&&H.Fo.g5("ddf",{dr:G.droppedVideoFrames, de:G.totalVideoFrames,comp:W});if(P)return H.L=0,!1;if((k-t)/w>H.L_||!Q||g.vV(H.X))return!1;H.L=(k>60?t/k:0)>Q?H.L+1:0;if(H.L!==3)return!1;Css(H,E.videoData.W);H.Fo.g5("dfd",Object.assign({dr:G.droppedVideoFrames,de:G.totalVideoFrames},sPQ()));return!0}; g.ws=function(H){var E=dd(H),G=new g.oG(0,0);if(H==(E?dd(E):document).documentElement)return G;H=Go(H);E=PD(E);E=edv(E.L);G.x=H.left+E.x;G.y=H.top+E.y;return G}; mg1=function(H){if(T$){for(var E=g.R(T$),G=E.next();!G.done;G=E.next())G=G.value,G.payload&&(G.payload.csn=H.csn,g.HY(G.payloadName,G.payload,G.options));T$.length=0}VR=0}; sr=function(H){this.L=new U2(H)}; fC=function(H){var E=H.getVideoData();if(!E.s_){E=H.X.ML?1:Liu(E);var G=H.mediaElement;G.IN(H.CM.muted);try{G.setVolume(H.CM.volume*E/100)}catch(P){g.p5(new g.LN("b183742307","multiplier: "+E+", volume: "+H.CM.volume))}}}; Ja=function(H){g.J.call(this);this.provider=H;this.C="paused";this.T=NaN;this.B=[10,10,10,40];this.L_=this.N=0;this.WF=this.E7=this.Jm=this.p_=this.G=!1;this.W=this.D=NaN;this.logger=new g.Pj("vss");this.L=new GF(H)}; lnw=function(H,E){var G;return g.L(function(P){if(P.L==1)return g.U(P,Ec(E),2);G=P.W;return P.return(g.fV(G,["LogsRequestsStore"],{mode:"readwrite",Iq:!0},function(Q){var e=Q.objectStore("LogsRequestsStore");return e.get(H).then(function(w){if(w)return w.status="QUEUED",g.C9(e,w).then(function(){return w})})}))})}; S3=function(){s8.instance||(s8.instance=new s8);return s8.instance}; EH=function(H,E){UW1(H,E).then(function(G){g.iN(E,void 0,void 0,G)})}; xWT=function(H,E){if(JB(H,rb)||H.api.isMinimized())return!1;var G=BF(E.title),P=BF(E.description);if(g.xm(G)||g.xm(P))return!1;H.createServerVe(H.G.element,E.trackingParams||null);H.G.updateValue("title",BF(E.title));H.G.updateValue("description",BF(E.description));H.G.updateValue("displayUrl",BF(E.displayUrl));E.navigationEndpoint&&g.x1(H.N,E.navigationEndpoint);H.G.show();H.T$.start();H.logVisibility(H.G.element,!0);H.Z(H.G.element,"mouseover",function(){H.WF++}); return!0}; g.oR=function(H,E,G){H.L.createIndex(E,G,{unique:!1})}; g.Ih=function(H,E){E=zhd(H,E);var G;(G=E>=0)&&g.Fh(H,E);return G}; VNt=function(H,E,G,P,Q){var e=H.provider.X.L.cbrver;H.provider.X.L.cbr==="Chrome"&&/^96[.]/.test(e)&&G==="net.badstatus"&&/rc\.500/.test(Q)&&xD(H,3);H.provider.X.U("html5_use_ump")&&/b248180278/.test(Q)&&xD(H,4);e=H.provider.getCurrentTime(H.adCpn||H.provider.videoData.clientPlaybackNonce);P=P===1?"fatal":"";G=[G,P,e.toFixed(3)];P&&(Q+=";a6s."+Zd());Q&&G.push(Tp7(Q));g.BC(H,E,"error",G);H.D=!0}; ef=function(H,E){g.D.call(this,{J:"div",Y:"ytp-user-info-panel",j:{"aria-label":"User info"},V:H.K().E7&&!H.U("embeds_web_always_enable_signed_out_state")?[{J:"div",Y:"ytp-user-info-panel-icon",iJ:"{{icon}}"},{J:"div",Y:"ytp-user-info-panel-content",V:[{J:"div",Y:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable}}",role:"text"},iJ:"{{watchingAsUsername}}"},{J:"div",Y:"ytp-user-info-panel-info",j:{tabIndex:"{{userInfoFocusable2}}",role:"text"},iJ:"{{watchingAsEmail}}"}]}]:[{J:"div",Y:"ytp-user-info-panel-icon", iJ:"{{icon}}"},{J:"div",Y:"ytp-user-info-panel-content",V:[{J:"div",V:[{J:"text",j:{tabIndex:"{{userInfoFocusable}}"},iJ:"Signed out"}]},{J:"div",Y:"ytp-user-info-panel-login",V:[{J:"a",j:{tabIndex:"{{userInfoFocusable2}}",role:"button"},iJ:H.K().dP?"":"Sign in on YouTube"}]}]}]});this.cF=H;this.sourceElement=E;H.K().E7||H.K().dP||this.Z(this.HF("ytp-user-info-panel-login"),"click",this.IE);this.closeButton=new g.D({J:"button",QN:["ytp-collapse","ytp-button"],j:{title:"Close"},V:[g.op()]});this.closeButton.mx(this.element); g.d(this,this.closeButton);this.Z(window,"blur",this.hide);this.Z(document,"click",this.UU);this.r5()}; D5u=function(){return(jX||cD)&&N2?N2.mobile:!x6()&&(ih("iPod")||ih("iPhone")||ih("Android")||ih("IEMobile"))}; wk=function(H){return typeof H==="object"&&!Array.isArray(H)}; Qw=function(H){this.gP=H;this.L=new hJ}; ey=function(H,E){var G=this;this.W=H;this.Da=E;this.L=function(P){return wM(G.W.get(),P)}}; iHd=function(H,E){var G=E.onError?E.onError:function(){}; E.onError=function(Q,e){a7().requestComplete(H,!1);G(Q,e)}; var P=E.onSuccess?E.onSuccess:function(){}; E.onSuccess=function(Q,e){a7().requestComplete(H,!0);P(Q,e)}}; vA=function(H,E,G){H=ZVd(H,E===void 0?0:E,G===void 0?-1:G);return new Uint8Array(H.buffer,H.byteOffset,H.byteLength)}; wQ=function(H){this.value=H}; hc=function(H){H.xV="rendering_start_requested";H.D7(-1)}; S8T=function(H){if(H.QB()){if(!Be(H,408125543))return!1;dH(H,!0)}return!0}; FiM=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 14 14",width:"100%"},V:[{J:"path",j:{d:"M14,14 L14,0 L0,0 L0,14 L14,14 Z"}},{J:"path",j:{d:"M7.15,8.35 L9.25,10.45 L10.65,9.05 L8.55,6.95 L10.7,4.8 L9.3,3.4 L7.15,5.55 L5,3.4 L3.6,4.8 L5.75,6.95 L3.65,9.05 L5.05,10.45 L7.15,8.35 Z",fill:"#fff"}}]}}; he=function(H,E){if(E.Mb)for(var G=0;G0&&(G=((0,g.ON)()-H.loader.yj)/1E3,E=Math.min(E,H.policy.U2+H.policy.yA*G));E=H.loader.getCurrentTime()+E;return H.policy.M6&&(G=Gp7(H.loader)+H.policy.M6,G=G.HO-1E3&&P<=Q+G.durationMs+1E3){P=G;break a}}P=void 0}G={ud:P,nK:E}}else G=mE(H,E),((P=G)==null?0:P.ud)||(G=mE(H,E,1));var e;return(e=G)==null?void 0:e.ud}; g.Np=function(H,E,G,P){G=G===void 0?!1:G;P=P===void 0?0:P;if(H.isLocked||E.isLocked||!tL(H.info,E.info)||H.info.G)return null;if(P){if(H.W.totalLength+E.W.totalLength>P)return null}else if(G&&(G=H.W,P=E.W,G=!(P.L.length?x$t(G,P.L[0]):1)),G)return null;G=new jf(H.info.type,H.info.uJ,H.info.range,H.info.C,H.info.U7,H.info.startTime,H.info.duration,H.info.L,H.info.W,H.info.G,H.info.xj,H.info.clipId);P=E.info;G.W+=P.W;G.range&&(G.B+=P.B);G.T=P.T;G.G=P.G;P=new hJ;HV(P,H.W);HV(P,E.W);G=new cJ(G,P);G.L!= null&&E.L!=null&&g.d3("dash",414627957,"merged slice emsg overridden; prev: "+G.L.j$()+" next: "+E.L.j$());G.L=E.L||H.L;G.G=H.G!==-1?H.G:E.G;G.D=H.D!==-1?H.D:E.D;return G}; kpT=function(H,E){E=g.lF[E];return H.W<=E&&(!H.L||H.L>=E)}; g.y8=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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"}}]}}; WUt=function(H,E,G){return H.policy.L?R8(H,!0)E&&H.T=H&&(H-2^27)1E5||++E.G})}; KUs=function(H){H=["object"==typeof globalThis&&globalThis,H,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var E=0;EE&&G.push(pl(P,1))}); return G}; g.xz=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!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"}}]}}; cot=function(H,E){E=E===void 0?{}:E;var G;return g.L(function(P){if(P.L==1)return g.U(P,g.De(),2);if(P.L!=3){G=P.W;if(!G)return P.return();ni(H);return g.U(P,zf(H,E),3)}return g.U(P,qh(H,G),0)})}; GN1=function(H){var E=4093624447,G;for(G=0;G<=31;G++,E>>>=1)if(E&1&&H.Jv[G*2]!==0)return 0;if(H.Jv[18]!==0||H.Jv[20]!==0||H.Jv[26]!==0)return 1;for(G=32;G<256;G++)if(H.Jv[G*2]!==0)return 1;return 0}; g.XI=function(H){var E=g.$y(),G=E.client||{};if(H.forcedExperiments){var P=H.forcedExperiments.split(","),Q=[];P=g.R(P);for(var e=P.next();!e.done;e=P.next())Q.push(Number(e.value));G.experimentIds=Q}if(Q=H.homeGroupInfo)G.homeGroupInfo=JSON.parse(Q);if(Q=H.getPlayerType())G.playerType=Q;if(Q=H.L.ctheme)G.theme=Q;if(Q=H.livingRoomAppMode)G.tvAppInfo=Object.assign({},G.tvAppInfo,{livingRoomAppMode:Q});Q=H.deviceYear;H.U("html5_propagate_device_year")&&Q&&(G.tvAppInfo=Object.assign({},G.tvAppInfo,{deviceYear:Q})); if(Q=H.livingRoomPoTokenId)G.tvAppInfo=Object.assign({},G.tvAppInfo,{livingRoomPoTokenId:Q});E.client=G;Q=E.user||{};H.enableSafetyMode&&(Q=Object.assign({},Q,{enableSafetyMode:!0}));var w;((w=G.tvAppInfo)==null?0:w.usePageidAsHeader)||!H.pageId||(Q=Object.assign({},Q,{onBehalfOfUser:H.pageId}));E.user=Q;return E}; NGn=function(H,E){xQ(E+": undefined adapter",H.slot,H.layout)}; YE=function(H){this.L=H;this.W=null;this.T=this.G=0;this.L_=!1;this.D=this.B=this.C=null;this.N=new g.S1(this);this.N.listen(this.L,"readystatechange",this.p_)}; Tf=function(H,E){H.G.Au=E;g.Bt(H.api.getRootNode(),"ytp-probably-keyboard-focus",E);g.Bt(H.contextMenu.element,"ytp-probably-keyboard-focus",E)}; V8=function(H,E,G,P){P=new g.D({J:"div",QN:["ytp-linked-account-popup-button"],iJ:P,j:{role:"button",tabindex:"0"}});E=new g.D({J:"div",Y:"ytp-linked-account-popup",j:{role:"dialog","aria-modal":"true",tabindex:"-1"},V:[{J:"div",Y:"ytp-linked-account-popup-title",iJ:E},{J:"div",Y:"ytp-linked-account-popup-description",iJ:G},{J:"div",Y:"ytp-linked-account-popup-buttons",V:[P]}]});g.nw.call(this,H,{J:"div",Y:"ytp-linked-account-popup-container",V:[E]},100);var Q=this;this.dialog=E;g.d(this,this.dialog); P.listen("click",function(){Q.t7()}); g.d(this,P);g.as(this.S,this.element,4);this.hide()}; ekw=function(H,E,G,P){if(dt.instance!==void 0){if(P=dt.instance,H=[H!==P.Gg,E!==P.pm,G!==P.L,!1,!1,!1,void 0!==P.G],H.some(function(Q){return Q}))throw new g.LN("InnerTubeTransportService is already initialized",H); }else dt.instance=new dt(H,E,G,P)}; Sf=function(H){H.S.cueVideoByPlayerVars({videoId:"empty_video"},2)}; yow=function(H,E){H=H===void 0?{}:H;switch(E.type){case "ENTITY_LOADED":return E.payload.reduce(function(P,Q){var e,w=(e=Q.options)==null?void 0:e.persistenceOption;if(w&&w!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&w!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return P;if(!Q.entityKey)return g.h3(Error("Missing entity key")),P;if(Q.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!Q.payload)return Q=new g.LN("REPLACE entity mutation is missing a payload",{entityKey:Q.entityKey}),g.h3(Q),P;var t=g.Fc(Q.payload); return fI(P,t,Q.entityKey,Q.payload[t])}if(Q.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{Q=Q.entityKey;try{var k=g.x4(Q).entityType;t=fI(P,k,Q);break a}catch(A){if(A instanceof Error){Q=new g.LN("Failed to deserialize entity key",{entityKey:Q,originalMessage:A.message});g.h3(Q);t=P;break a}throw A;}t=void 0}return t}if(Q.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!Q.payload)return Q=new g.LN("UPDATE entity mutation is missing a payload",{entityKey:Q.entityKey}),g.h3(Q),P;t=g.Fc(Q.payload);var W,I;return aMu(P, t,Q.entityKey,Q.payload[t],(W=Q.fieldMask)==null?void 0:(I=W.mergeOptions)==null?void 0:I.repeatedFieldsMergeOption)}return P},H); case "REPLACE_ENTITY":var G=E.payload;return fI(H,G.entityType,G.key,G.DE);case "REPLACE_ENTITIES":return Object.keys(E.payload).reduce(function(P,Q){var e=E.payload[Q];return Object.keys(e).reduce(function(w,t){return fI(w,Q,t,e[t])},P)},H); case "UPDATE_ENTITY":return G=E.payload,aMu(H,G.entityType,G.key,G.DE,G.AAx);default:return H}}; i1d=function(H,E){if(E.authorizedFormats)for(var G=0;G1E9}; H3=function(H){return!PX(H.kp[H.kp.length-1])}; wB=function(H){return H.mimeType==="application/x-mpegURL"}; Pl7=function(H,E,G,P,Q){var e=Jg(H.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");P=[new $8({getAdBreakUrl:P.getAdBreakUrl,pZ:0,LZ:0}),new QN(!0)];H=E.pauseDurationMs?E.lactThresholdMs?{slotId:e,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:2,slotEntryTrigger:new BM(H.L,e),slotFulfillmentTriggers:[new hMT(H.L)],slotExpirationTriggers:[new BQ(H.L,Q),new Y7(H.L,e)],f_:"core",clientMetadata:new ZN(P),adSlotLoggingData:G}:new T("AdPlacementConfig for Pause Ads is missing lact_threshold_ms"):new T("AdPlacementConfig for Pause Ads is missing pause_duration_ms"); return H instanceof T?H:[H]}; SO=function(H){return{vY:H.C_.get(),eE:!1,t2:H.uG()}}; Man=function(H,E,G,P){return E&&G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"&&H instanceof hB?new Vf(function(Q){return wM(P,Q)},G.adSlotMetadata.slotId):H}; vC=function(H){this.value=H}; YhT=function(H,E){if(E.playerLegacyDesktopYpcTrailerRenderer){var G=E.playerLegacyDesktopYpcTrailerRenderer;H.us=G.trailerVideoId||"";var P=(P=E.playerLegacyDesktopYpcTrailerRenderer.ypcTrailer)&&P.ypcTrailerRenderer}else if(E.playerLegacyDesktopYpcOfferRenderer)G=E.playerLegacyDesktopYpcOfferRenderer;else if(E.ypcTrailerRenderer){P=E.ypcTrailerRenderer;E=P.fullVideoMessage;H.GL=E?g.b_(E):"";var Q,e;H.us=((Q=g.X(P,rol))==null?void 0:(e=Q.videoDetails)==null?void 0:e.videoId)||""}G&&(H.DY=G.itemTitle|| "",G.itemUrl&&(H.e5=G.itemUrl),G.itemBuyUrl&&(H.CF=G.itemBuyUrl),H.cj=G.itemThumbnail||"",H.A4=G.offerHeadline||"",H.JQ=G.offerDescription||"",H.gi=G.offerId||"",H.rM=G.offerButtonText||"",H.hW=G.offerButtonFormattedText||null,H.H_=G.overlayDurationMsec||NaN,H.GL=G.fullVideoMessage||"",H.U_=!0);P&&((G=g.X(P,rol))?H.Wc={raw_player_response:G}:(G=g.X(P,BGq),H.Wc=G?W9(G):null),H.U_=!0)}; g.iN=function(H,E,G,P,Q,e,w){Q=Q===void 0?"":Q;e=e===void 0?!1:e;w=w===void 0?!1:w;if(H)if(G&&!g.aa())Za(new g.LN("Legacy referrer-scrubbed ping detected")),H&&xgt(H,void 0,{scrubReferrer:!0});else if(Q)sL(H,E,"POST",Q,P);else if(g.tJ("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||P||w)sL(H,E,"GET","",P,void 0,e,w);else{b:{try{c:{var t=new jM1({url:H});if(t.L.dsh==="1")var k=null;else{var W=t.L.ae;if(W==="1"){var I=t.L.adurl;if(I)try{k={version:3,Nc:decodeURIComponent(I),s3:vp(t.W,"act=1","ri=1",jTv(t))}; break c}catch(u){}}k=W==="2"?{version:4,Nc:vp(t.W,"dct=1","suid="+t.G,"ri=1"),s3:vp(t.W,"act=1","ri=1","suid="+t.G)}:null}}if(k){var A=ac(H);var m=!(!A||!A.endsWith("/aclk")||DN(H,"ri")!=="1");break b}}catch(u){}m=!1}m?XZU(H)?(E&&E(),G=!0):G=!1:G=!1;G||xgt(H,E)}}; pz=function(H,E){H.api.getPresentingPlayerType()!==1?H.au.style.removeProperty("clip-path"):(E||(E=Wz(H,H.p_,IW(H))),H.au.style.clipPath='path("'+(H.hC?Z1M(H,8,E,H.T?50:36,0,6):Z1M(H,4,E,H.T?34:24,2,3))+'")')}; $Aw=function(H){if(!H.isRequestPending){H.isRequestPending=!0;H.r5(3);var E=H.S.getVideoData();E=H.L?E.removeFromWatchLaterCommand:E.addToWatchLaterCommand;var G=H.S.Km(),P=H.L?function(){H.L=!1;H.isRequestPending=!1;H.r5(2);H.S.K().N&&H.S.n_("WATCH_LATER_VIDEO_REMOVED")}:function(){H.L=!0; H.isRequestPending=!1;H.r5(1);H.S.K().W&&H.S.EW(H.element);H.S.K().N&&H.S.n_("WATCH_LATER_VIDEO_ADDED")}; RC(G,E).then(P,function(){H.isRequestPending=!1;H.r5(4,"An error occurred. Please try again later.");H.S.K().N&&H.S.n_("WATCH_LATER_ERROR","An error occurred. Please try again later.")})}}; rv=function(H){return H.type===3||H.type===6}; Cbw=function(H,E){YZ(H.C,function(G){return G.D==E.D})||H.C.push(E)}; oF=function(H){return function(){return fEv[H].apply(this,arguments)}}; g1j=function(H){H.position===0&&(H.l4.get(),H=Zi(H.layout.clientMetadata,"metadata_type_ad_placement_config").kind,H={adBreakType:Z2(H)},KT("ad_bl"),g.Qn(H))}; pi=function(H,E,G){E=g.R(E);var P=E.next();Slq(P);if(P.done)H.W=P.value,H.L=G;else return H.D=E,g.U(H,P.value,G)}; eW=function(H){if(document.createRange){var E=document.createRange();E&&(E.selectNodeContents(H),H=window.getSelection())&&(H.removeAllRanges(),H.addRange(E))}}; LUl=function(H){H.Z(H.S,g.Ya("shopping_overlay_visible"),function(){H.JC(!0)}); H.Z(H.S,g.XT("shopping_overlay_visible"),function(){H.JC(!1)}); H.Z(H.S,g.Ya("shopping_overlay_expanded"),function(){H.WF=!0;cK(H)}); H.Z(H.S,g.XT("shopping_overlay_expanded"),function(){H.WF=!1;cK(H)}); H.Z(H.S,g.Ya("shopping_overlay_preview_collapsed"),function(){H.L=!0;wy(H)}); H.Z(H.S,g.XT("shopping_overlay_preview_collapsed"),function(){H.L=!1;wy(H)}); H.Z(H.S,g.Ya("shopping_overlay_preview_expanded"),function(){H.W=!0;wy(H)}); H.Z(H.S,g.XT("shopping_overlay_preview_expanded"),function(){H.W=!1;wy(H)})}; hC=function(H,E,G,P,Q,e){e=e===void 0?!1:e;H.O7.ra(E,G/E);H.C=(0,g.ON)();Q||H.L_.ra(1,E-P);e||(H.T=0);H.WF>-1&&(0,g.ON)()-H.WF>3E4&&(lxM(df(H)),H.WF=(0,g.ON)(),H.p_=!0)}; jO=function(H){g.J.call(this);this.L=H;this.Q8=new Map}; F6=function(){var H=sY();return!(!H.webkitSupportsPresentationMode||typeof H.webkitSetPresentationMode!=="function")}; g.eY=function(H){return!!H.L&&z8Q(H.L)}; $d=function(H){var E={};E.itag=H.uJ.info.itag;E.type=""+H.type;E.src=""+H.source;E.segsrc=H.C;E.seg=String(H.U7);H.range&&(E.range=H.range.start+H.L+"-"+(H.range.start+H.L+H.W-1));E.time=H.D.toFixed(1)+"-"+(H.D+H.B).toFixed(1);E.off=String(H.L);E.len=String(H.W);H.G&&(E.end="1");H.Uv()&&(E.eos="1");H.clipId&&(E.cid=H.clipId);return E}; tC=function(H,E){var G=H.sendVisitorIdHeader?H.visitorData:void 0;return g.Ns(H.X,H.accessToken).then(function(P){return mU(H.uri,H.X,H.pageId,G,P,E)})}; czU=function(H,E){var G=E.raw_embedded_player_response;if(!G){var P=E.embedded_player_response;P&&(G=JSON.parse(P))}G&&(H.QA=G);if(H.QA){H.embeddedPlayerConfig=H.QA.embeddedPlayerConfig||null;if(G=H.QA.videoFlags)G.playableInEmbed&&(H.allowEmbed=!0),G.isPrivate&&(H.isPrivate=!0),G.userDisplayName&&(E.user_display_name=G.userDisplayName),G.userDisplayImage&&(E.user_display_image=G.userDisplayImage);if(G=H.QA.embedPreview){G=G.thumbnailPreviewRenderer;UzU(H,G.controlBgHtml);if(P=G.defaultThumbnail)H.BL= aI(P);H.U("embeds_web_enable_search_button")&&G.searchButton&&(P=g.X(G.searchButton,g.rI))&&(H.Ch=g.X(P.navigationEndpoint,g.kd));(P=g.X(G==null?void 0:G.videoDetails,xzl))&&KE1(H,E,P);P=g.X(G==null?void 0:G.videoDetails,zTM);H.gt=!!G.addToWatchLaterButton;DNj(H,G.shareButton);if(P==null?0:P.musicVideoType)H.musicVideoType=P.musicVideoType;var Q,e,w,t,k;if(P=g.X((Q=H.getEmbeddedPlayerResponse())==null?void 0:(e=Q.embedPreview)==null?void 0:(w=e.thumbnailPreviewRenderer)==null?void 0:(t=w.playButton)== null?void 0:(k=t.buttonRenderer)==null?void 0:k.navigationEndpoint,g.Xt))Ysq(H,P),H.videoId=P.videoId||H.videoId;G.videoDurationSeconds&&(H.lengthSeconds=EN(G.videoDurationSeconds));G.webPlayerActionsPorting&&TG1(H,G.webPlayerActionsPorting);if(Q=g.X(G==null?void 0:G.playlist,Vvw)){H.g6=!0;e=[];w=Number(Q.currentIndex);if(Q.contents)for(t=0,k=Q.contents.length;t122)return!1}return!0}; PBv=function(H,E){Uj(H,1,E.token)}; AC=function(H){var E=H.pos;H.pos=0;var G=1E6;mT(H,[408125543,357149030,2807729])&&(G=a4(H));H.pos=E;return G}; qhv=function(H,E){var G;if((G=H.questions)==null||!G.length||!H.playbackCommands||(E===void 0||!E)&&H.questions.length!==1)return!1;H=g.R(H.questions);for(E=H.next();!E.done;E=H.next()){E=E.value;var P=G=void 0,Q=((G=g.X(E,O9))==null?void 0:G.surveyAdQuestionCommon)||((P=g.X(E,aW))==null?void 0:P.surveyAdQuestionCommon);if(!GkT(Q))return!1}return!0}; m1=function(H,E,G){return gB(H,H.state|E,null,G===void 0?null:G)}; EJ=function(){this.L=[];this.W=null;this.C=0;this.G=[];this.T=!1;this.B="";this.D=-1}; iBv=function(H){var E=E===void 0?!1:E;return H9(U8(H,Qmq),H,E,"Trusted Ad Domain URL")}; smU=function(H){if(H.Fo.getVideoData().isLivePlayback)return!1;var E=H.Fo.xt();if(!E)return!1;E=E.getDuration();if(H.Am&&H.Am.L&&H.Am.W){var G=H.getCurrentTime(),P=H.Am.L.qV();H=H.Am.W.qV();P=P?q1(P,G):G;G=H?q1(H,G):G;G=Math.min(P,G);E=isNaN(G)?!1:G>=E-.01}else E=!1;return E}; K0=function(H,E,G,P,Q){Q=Q===void 0?!1:Q;this.data=H;this.offset=E;this.size=G;this.type=P;this.L=(this.W=Q)?0:8;this.dataOffset=this.offset+this.L}; Ns7=function(H,E){if(E=E.raw_reel_item_watch_response)H.reelItemWatchResponse=E}; Xu=function(H){g.J.call(this);this.api=H}; oNT=function(H){Xu.call(this,H);var E=this;H.addEventListener("settingsMenuInitialized",function(){E.menuItem||(E.menuItem=new uW(E.api),g.d(E,E.menuItem))}); H.addEventListener("videodatachange",function(G,P){G=E.api.getPresentingPlayerType()===2;var Q;(Q=E.menuItem)==null||Q.BT(!P.isLivePlayback&&!G)})}; e2U=function(H){switch(H){case "multiview.ustreamer_disabled":case "sabr.live_no_max_sq":case "sabr.live_unauthorized_request":case "sabr.malformed_config":case "sabr.media_serving_enforcement_id_error":case "sabr.metadata_fetcher_error":case "sabr.no_audio_selected":case "sabr.no_available_formats":case "sabr.no_redirect_url":case "sabr.no_video_selected":case "sabr.too_many_chunk_reader_error_retries":return H;default:return"sabr.config"}}; vX=function(){g.J.call(this);this.H0=!1;this.Du=null;this.N=this.B=!1;this.D=new g.E4;this.C=this.Fo=null;g.d(this,this.D)}; $Dj=function(H){var E;g.L(function(G){if(G.L==1)return g.Xj("start_client_gcf")||g.Xj("delete_gcf_config_db")?g.Xj("start_client_gcf")?g.U(G,g.De(),3):G.bJ(2):G.return();G.L!=2&&((E=G.W)&&g.Mi()&&!g.Xj("delete_gcf_config_db")?(H.T=!0,S1q(H)):(wIj(H),DFU(H)));return g.Xj("delete_gcf_config_db")?g.U(G,h2v(),0):G.bJ(0)})}; g.gm=function(H,E,G){this.name=H;this.id=E;this.isDefault=G}; dy=function(H){return/(opus|mp4a|dtse|ac-3|ec-3|iamf)/.test(H)}; ZCn=function(H,E){return yvv(function(G){return G.publicName===H&&G.userIdentifier!==void 0},E)}; g.z7=function(H){H=H===void 0?!1:H;g.J.call(this);this.yG=new g.DD(H);g.d(this,this.yG)}; ww=function(H,E,G,P,Q,e,w,t,k){k=k===void 0?!1:k;g.J.call(this);this.gP=H;this.policy=E;this.Sy=G;this.Du=P;this.timing=Q;this.logger=e;this.D=w;this.ZB=t;this.C=k;this.lastError=null;this.L=0;this.T=!1;this.G=0;this.W=new g.Wt(this.P87,this.policy.hC,this)}; Cr=function(H){this.value=H}; t5T=function(H,E,G,P,Q){var e=G.Jc;var w=G.ER;var t=H.player.K().yA,k=0;G.cueProcessedMs&&w&&!e&&(G=w.end-w.start,G>0&&(k=Math.floor(G/1E3)));var W={AD_BLOCK:Q,AD_BREAK_LENGTH:e?e.Po:k,AUTONAV_STATE:Oh(H.player.K()),CA_TYPE:"image",CPN:H.player.getVideoData(1).clientPlaybackNonce,DRIFT_FROM_HEAD_MS:H.player.XR()*1E3,LACT:U7(),LIVE_INDEX:e?H.G++:1,LIVE_TARGETING_CONTEXT:e&&e.context?e.context:"",MIDROLL_POS:w?Math.round(w.start/1E3):0,MIDROLL_POS_MS:w?Math.round(w.start):0,VIS:H.player.getVisibilityState(), P_H:H.player.NZ().sR().height,P_W:H.player.NZ().sR().width,YT_REMOTE:t?t.join(","):""},I=aA(DU);Object.keys(I).forEach(function(A){I[A]!=null&&(W[A.toUpperCase()]=I[A].toString())}); P!==""&&(W.BISCOTTI_ID=P);P={};nJ(E)&&(P.sts="20374",(H=H.player.K().forcedExperiments)&&(P.forced_experiments=H));return Oq(g.iO(E,W),P)}; g.aF=function(H,E,G){g.NL(cG)(void 0,H,E,G,void 0)}; O8=function(H){return g.ve(H.L,function(E){return!!E.info.QF})}; k9d=function(H){return new jf(H.type,H.uJ,H.range,"getEmptyStubBefore"+H.C,H.U7,H.startTime,0,H.L,0)}; WIq=function(H){if(H==null||typeof H=="string"||H instanceof UW)return H}; cv=function(H,E){return Qi(H,E,function(G){return G.L})}; Jq=function(H,E){return OL(g.KJ(H.info,E))}; IHd=function(H){var E=H.adTimeOffset||{};H=E.offsetEndMilliseconds;E=Number(E.offsetStartMilliseconds);if(isNaN(E))throw new TypeError("Expected valid start offset");H=Number(H);if(isNaN(H))throw new TypeError("Expected valid end offset");return{DA:E,lc:H}}; aBv=function(H){return String(H).replace(/\-([a-z])/g,function(E,G){return G.toUpperCase()})}; jW=function(H,E,G,P,Q,e,w,t,k){Xm.call(this,H,E,G,P);this.d5=Q;this.SR=e;this.C=w;this.T=t;this.Da=k;this.D=!1;this.B=Zi(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; g.il=function(H){g.E4.call(this);this.headers=new Map;this.PF=H||null;this.G=!1;this.L=null;this.N="";this.W=0;this.D="";this.T=this.Jm=this.L_=this.WF=!1;this.p_=0;this.C=null;this.E7="";this.B=!1}; A7U=function(H,E,G,P){var Q,e,w;return g.L(function(t){switch(t.L){case 1:if(H.L){t.bJ(2);break}return g.U(t,P.importKey("raw",H.W,{name:"HMAC",hash:"SHA-256"},!1,["sign"]),3);case 3:H.L=t.W;case 2:return Q=new Uint8Array(E.length+G.length),Q.set(E),Q.set(G,E.length),e={name:"HMAC",hash:"SHA-256"},g.U(t,P.sign(e,H.L,Q),4);case 4:return w=t.W,t.return(new Uint8Array(w))}})}; g.yZ=function(H,E,G){H.L=G?o7(E,!0):E}; g.cX=function(H){H=H===void 0?{}:H;g.E4.call(this);var E=this;this.L=this.D=0;this.W=mD1();var G=g.Un("yt.networkStatusManager.instance.listen").bind(this.W);G&&(H.rateLimit?(this.rateLimit=H.rateLimit,G("networkstatus-online",function(){AHv(E,"publicytnetworkstatus-online")}),G("networkstatus-offline",function(){AHv(E,"publicytnetworkstatus-offline")})):(G("networkstatus-online",function(){E.dispatchEvent("publicytnetworkstatus-online")}),G("networkstatus-offline",function(){E.dispatchEvent("publicytnetworkstatus-offline")})))}; zz=function(H){return!(!H||!H[u3U])}; of=function(H,E){var G="";if(H.dangerousLogToVisitorSession)G="visitorOnlyApprovedKey";else if(H.cttAuthInfo){if(E===void 0?0:E){E=H.cttAuthInfo.token;G=H.cttAuthInfo;var P=new JH;G.videoId?P.setVideoId(G.videoId):G.playlistId&&VW(P,2,Ni,n3(G.playlistId));ft[E]=P}else E=H.cttAuthInfo,G={},E.videoId?G.videoId=E.videoId:E.playlistId&&(G.playlistId=E.playlistId),yN[H.cttAuthInfo.token]=G;G=H.cttAuthInfo.token}return G}; bW=function(H,E,G,P,Q,e,w,t){Xm.call(this,H,E,G,P);this.SR=Q;this.aq=e;this.C=t;this.Zr=!0;this.D=null;this.T=Zi(G.clientMetadata,"metadata_type_linked_player_bytes_layout_id");IS(this.aq(),this);H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; QIv=function(H,E,G,P,Q,e,w){G=G===void 0?[]:G;P=P===void 0?"":P;Q=Q===void 0?"":Q;var t=AY(H.L).aF,k=H.player.getVideoData(1);k&&k.getPlayerResponse();k&&k.T6();G=vNw(E,G,t,AY(H.L).fG);PKQ(AY(H.L).l1,P,G.fg,G.fY,E,Q,e,w)}; g.iW=function(H,E,G){G=g.eS(H,E,G);G<0&&g.nH(H,-(G+1),0,E)}; $_q=function(){var H,E,G,P;return((P=hu().resolve(new HG(DF))==null?void 0:(H=nE())==null?void 0:(E=H.loggingHotConfig)==null?void 0:(G=E.csiConfig)==null?void 0:G.debugTicks)!=null?P:[]).map(function(Q){return Object.values(Q)[0]})}; nU=function(){return g.aD("(ps3; leanback shell)")||g.aD("ps3")&&g.aa()}; M5T=function(H){for(var E={},G=0;G0?P:Q);for(P=E.next();!P.done;P=E.next())P=P.value,Q=P.minReadaheadMs||0,G<(P.minBandwidthBytesPerSec||0)||H>Q&&(H=Q);return He?{width:E.width,height:E.width/Q,aspectRatio:Q}:QQ?H.width=H.height*G:G0}; pJ=function(H,E,G){H.T[E.Yz()]=E;H.W=E;G&&(H.C=E);fJ(H)}; q07=function(H,E){for(var G=new Map,P=g.R(H.L.keys()),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var e=Q.split("_")[0];E.has(e)||G.set(Q,H.L.get(Q))}H.L=G}; oc=function(){VV.call(this,md,2,"mraid");this.O7=0;this.WF=this.Jm=!1;this.B=null;this.W=niw(this.G);this.D.L=new lJ(0,0,0,0);this.T$=!1}; R2n=function(H){var E,G,P;return g.L(function(Q){if(Q.L==1)return g.U(Q,Promise.race([H.L,null]),2);E=Q.W;var e=HW(H);H.L=e;(G=E)==null||(P=G.aM)==null||P.dispose();g.P2(Q)})}; Gj=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n,O){g.J.call(this);var q=this;this.nz=H;this.slot=E;this.layout=G;this.SR=P;this.im=Q;this.C_=e;this.d5=w;this.l4=t;this.ST=k;this.D7=W;this.position=A;this.C=m;this.Da=u;this.R5=v;this.Cm=n;this.context=O;this.Zr=!0;this.T=!1;this.xV="not_rendering";this.W=!1;this.G=new rK;H=Zi(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId);var N;H=((N=Ew(this))==null?void 0:N.progressCommands)||[];this.D=new hq1(k, H,G.layoutId,function(){return q.vk()}); this.L=new J7T({adCpn:this.layout.layoutId,fM:O.fM,PmR:this.R5,dO:this.layout.layoutType==="LAYOUT_TYPE_MEDIA"})}; r71=function(H){H.Wt=H.vk();H.Pg(H.Wt/1E3,!0);cH(H,H.Wt)}; BQn=function(H){H.length===1||g.fF(H,function(G){return!!G.range}); for(var E=1;E=H.L.length)return!1;var P=H.C-ND(H)*H.T$;return Math.abs(E-H.L[G].startTime/1E3)/H.G.L*P<4}; sY=function(){var H=g.Un("yt.player.utils.videoElement_");H||(H=g.pu("VIDEO"),g.kM("yt.player.utils.videoElement_",H));return H}; zPu=function(H){H=String(H);return"0000000".slice(H.length)+H}; pt=function(H){this.VN=tz(H)}; szv=function(H,E,G,P,Q,e,w){if(!G.prefetchModeConfig)return new T("AdPlacementConfig for Live Prefetch is missing prefetch_config");G=G.prefetchModeConfig;P*=1E3;var t=[];if(!G.breakLengthMs)return new T("AdPlacementConfig for Live Prefetch is missing break_length_ms");for(var k=g.R(G.breakLengthMs),W=k.next();!W.done;W=k.next())if(W=W.value,Number(W)>0){var I=P+Number(G.startTimeOffsetMs),A=I+Number(G.cacheFetchSmearingDurationMs);W={A2:new WM(A,A+Number(W)),eV:!1,Ij:new WM(Math.floor(I+Math.random()* Number(G.cacheFetchSmearingDurationMs)),A),cueProcessedMs:P?P:I};I=[];I.push(new o1({}));A=[];A.push(new PW(H.L));A.push(new XIt(H.L));w&&I.push(new Yj({}));t.push(Qx(H,E,Q,W,e,I,A))}return t}; ZLl=function(H,E){return H.B?oo(H.B.D,E):H.E7.length?oo(H.E7,E):[]}; g.od=function(H,E){this.L=H[g.lU.Symbol.iterator]();this.W=E}; yn=function(H){for(var E=[],G=g.R(H.L.keys()),P=G.next();!P.done;P=G.next()){P=P.value;var Q=H.L.get(P);E.push(P+"_"+Q.maxWidth+"_"+Q.maxHeight)}return E.join(".")}; Ew=function(H){return Zi(H.layout.clientMetadata,"METADATA_TYPE_INTERACTIONS_AND_PROGRESS_LAYOUT_COMMANDS")}; g.tJ=function(H,E){return H in lY?lY[H]:E}; wc=function(H){ei.call(this,H.nz,H.slot,H.HK,H.SR,H.im,H.C_,H.d5,H.l4,H.hG,H.ST,H.D7,H.xw,H.PD,H.nV,H.Da,H.R5,H.Cm,H.context)}; CBv=function(H){return YZ(H,function(E){return"FORMAT_STREAM_TYPE_OTF"===E.type})?"FORMAT_STREAM_TYPE_OTF":"FORMAT_STREAM_TYPE_UNKNOWN"}; U$=function(H,E,G){H.MA("addEventListener",E,G)}; Jf7=function(H){H.N||(H.N=YS());try{return(new URL(H.N)).toString()}catch(E){return(new URL(H.N,eX().location.origin)).toString()}}; P_d=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next())G=G.value,wk(G)?H.push(hK({},G)):xK(G)?H.push(P_d([],G)):H.push(G);return H}; gNl=function(){var H=this;this.proc_exit=function(){}; this.fd_write=function(E,G,P){if(!H.exports)return 1;E=new Uint32Array(H.exports.memory.buffer,G,P*2);G=[];for(var Q=0;Q0))return H}; Qd=function(H,E,G,P){xQ(G,E,void 0,void 0,G.Kv);G.NS?H.cT.zy(P,G.NS,E):xQ("adsClientErrorMessage is missing.",E);uM(H,E,!0)}; tk=function(H,E,G,P,Q,e,w,t,k){this.slot=E;this.W=G;this.SR=w;this.d5=t;this.Ge=k;this.L=new LIs(H,E,P,Q,e)}; cr1=function(H,E,G,P,Q,e,w){if(H.L)return H.L;var t={},k=new Set,W={};if(AU(P)){for(var I in P.L)P.L.hasOwnProperty(I)&&(H=P.L[I],W[H.info.K_]=[H.info]);return W}I=tvd(E,P,t);e&&Q({aftsrt:cF(I)});for(var A={},m=g.R(Object.keys(I)),u=m.next();!u.done;u=m.next()){u=u.value;for(var v=g.R(I[u]),n=v.next();!n.done;n=v.next()){n=n.value;var O=n.itag,q=void 0,N=u+"_"+(((q=n.video)==null?void 0:q.fps)||0);A.hasOwnProperty(N)?A[N]===!0?W[u].push(n):t[O]=A[N]:(q=Sk(E,n,G,P.isLive,k),q!==!0?(w.add(u),t[O]=q, q==="disablevp9hfr"&&(A[N]="disablevp9hfr")):(W[u]=W[u]||[],W[u].push(n),A[N]=!0))}}e&&Q({bfflt:cF(W)});for(var r in W)W.hasOwnProperty(r)&&(P=r,W[P]&&W[P][0].dO()&&(W[P]=W[P],W[P]=lH1(E,W[P],t),W[P]=uzU(W[P],t)));e&&Object.keys(t).length>0&&Q({rjr:gt(t)});E=g.R(k.values());for(P=E.next();!P.done;P=E.next())(P=G.D.get(P.value))&&--P.vX;e&&Q({aftflt:cF(W)});H.L=g.Fy(W,function(B){return!!B.length}); return H.L}; w2=function(){var H=g.Un("ytcsi.debug");H||(H=[],g.kM("ytcsi.debug",H),g.kM("ytcsi.reference",{}));return H}; Id=function(H,E){var G,P=(G=H.U2[E])==null?void 0:G.chapters;P&&(FZj(H,P),H.api.getVideoData().ox=H.L,UDQ(H));var Q;if((G=(Q=H.U2[E])==null?void 0:Q.markers)&&E!=="HEATSEEKER"){k5(H);Q=g.R(G);for(G=Q.next();!G.done;G=Q.next())if(P=G.value,G=new WW,P=g.X(P,g.xDt)){var e=void 0;G.title=((e=P.title)==null?void 0:e.simpleText)||"";e=void 0;G.timeRangeStartMillis=(e=P.timeRangeStartMillis)!=null?e:NaN;var w=e=void 0;G.onActiveCommand=(w=(e=P)==null?void 0:e.onActiveCommand)!=null?w:void 0;E7s(H,G)}mJ(H, H.B);Q=H.B;G=H.xH;P=[];for(e=0;e=w&&n<=I&&e.push(m)}k>0&&(H.WF.style.height=k+"px");w=H.D[P];I=e;m=Q;v=k;n=P===0;n=n===void 0?!1:n;FIj(w,v);A=I;u=w.W;n=n===void 0?!1:n;var O=1E3/A.length,q=[];q.push({x:0,y:100});for(var N=0;N0&&(G=e[e.length-1])}g.q_(H);t=[];E=g.R(E.heatMarkersDecorations||[]);for(Q=E.next();!Q.done;Q=E.next())if(Q=g.X(Q.value,fH7))k=Q.label,P=G=W=void 0,t.push({visibleTimeRangeStartMillis:(W=Q.visibleTimeRangeStartMillis)!=null?W:-1,visibleTimeRangeEndMillis:(G=Q.visibleTimeRangeEndMillis)!=null?G:-1,decorationTimeMillis:(P=Q.decorationTimeMillis)!=null?P:NaN,label:k?g.b_(k):""});H.heatMarkersDecorations=t}}; Ak=function(H){this.W=H}; pIQ=function(H,E){return Kz(H,2,E)}; m4=function(H){var E=E===void 0?!1:E;return H9(U8(H,H0d),H,E,"Trusted Stream URL")}; EEt=function(H){for(var E=g.R("loadstart loadedmetadata play playing progress pause ended suspend seeking seeked timeupdate durationchange ratechange error waiting resize".split(" ")),G=E.next();!G.done;G=E.next())H.sW.Z(H.mediaElement,G.value,H.K3,H);H.X.kS&&H.mediaElement.hN()&&(H.sW.Z(H.mediaElement,"webkitplaybacktargetavailabilitychanged",H.Qxw,H),H.sW.Z(H.mediaElement,"webkitcurrentplaybacktargetiswirelesschanged",H.Ttm,H))}; vW=function(H,E){return new g.uo("https://"+E+H.X.jT.baseUrl)}; nn=function(H){this.value=H}; Kf=function(H,E,G){G=G===void 0?0:G;var P=H.mimeType||"",Q=H.itag;var e=H.xtags;Q=Q?Q.toString():"";e&&(Q+=";"+e);e=Q;if(Mj(P)){var w=H.width||640;Q=H.height||360;var t=H.fps,k=H.qualityLabel,W=H.qualityOrdinal,I=H.colorInfo,A=H.projectionType,m;H.stereoLayout&&(m=GGU[H.stereoLayout]);var u=P7n(H)||void 0;if(I==null?0:I.primaries)var v=QCT[I.primaries]||void 0;w=new bd(w,Q,t,A,m,void 0,k,W&&sC1[W],u,v);P=dc(P,w,AD[H.itag||""]);DW&&(P+="; enableflushduringseek=true");nf&&(P+="; enableresetaudiodecoder=true")}var n; if(dy(P)){var O=H.audioSampleRate;m=H.audioTrack;O=new ad(O?+O:void 0,H.audioChannels,H.spatialAudioType,H.isDrc,H.loudnessDb,H.trackAbsoluteLoudnessLkfs,H.audioQuality||"AUDIO_QUALITY_UNKNOWN",H.isVb);m&&(v=m.displayName,Q=m.id,m=m.audioIsDefault,v&&(n=new g.gm(v,Q||"",!!m)))}var q;H.captionTrack&&(k=H.captionTrack,m=k.displayName,v=k.vssId,Q=k.languageCode,t=k.kind,k=k.id,m&&v&&Q&&(q=new IwU(m,v,Q,t,H.xtags,k)));m=Number(H.bitrate)/8;v=Number(H.contentLength);Q=Number(H.lastModified);k=H.drmFamilies; t=H.type;G=G&&v?v/G:0;H=Number(H.approxDurationMs);if(E&&k){var N={};k=g.R(k);for(W=k.next();!W.done;W=k.next())(W=Ow[W.value])&&(N[W]=E[W])}return new T0(e,P,{audio:O,video:w,CP:n,QF:N,Xo:m,Rd:G,contentLength:v,lastModified:Q,captionTrack:q,streamType:t,approxDurationMs:H})}; ji=function(H,E){if(H.length<2)return!1;var G=E(H[0]);return H.some(function(P){return E(P)!==G})}; UA1=function(H){H.Jm||(H.Jm=(0,g.ON)(),g.ng("oafs_rp",H.Jm,H.L))}; qO=function(H){return H}; g.E4=function(){g.J.call(this);this.y6=new XL(this);this.BG=this;this.E5=null}; eqj=function(H){var E;if(((E=H.adVideoOffset)==null?void 0:E.kind)!=="AD_VIDEO_PROGRESS_KIND_PERCENT")return!1;var G;return((G=H.adVideoOffset)==null?void 0:G.percent)!=null}; cW=function(H,E){uB.call(this,1,arguments);this.timer=E}; C1=function(H){this.value=H}; Nj=function(H,E,G,P,Q,e,w,t){this.callback=H;this.slot=E;this.layout=G;this.d5=P;this.SR=Q;this.Da=e;this.im=w;this.C_=t;this.L=!1;H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; cv1=function(H,E,G){E.Z(G,"keyboardserviceglobalkeydown",function(P,Q){H.G&&P.keyCode===86&&!P.repeat&&H.W!==0&&(Q&&(Q.bq=!0),H.gf("INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS"))}); E.Z(H.api.getRootNode(),"wheel",function(P){if(!H.L_){var Q;if(H.G&&(Q=H.T)!=null&&Q.element&&!g.F(H.api.getPlayerStateObject(),2)&&H.W!==0&&yx(H))if(g.aG(H.api.getRootNode(),"ytp-grid-scrolling"),H.D===0&&(H.D=window.innerHeight),H.W===1)H.D!==0&&(H.L+=P.deltaY/H.D,H.L=g.Mo(H.L,0,.7),t0(H),oEd(H,H.B/H.D+H.L>=.7,2));else if(H.W===2){Q=P.deltaY<0;var e,w,t=((w=(e=H.T)==null?void 0:e.W)==null?void 0:w.scrollTop)===0;e=H.L!==0;Q&&t||e&&!Q?H.D!==0&&(H.L=Math.max(0,H.L-P.deltaY/H.D),t0(H),oEd(H,H.B/H.D+ Math.abs(H.L)>=.7,1)):H.L!==0&&(H.L=0,t0(H))}}},H,!0); E.Z(G,"standardControlsInitialized",function(){if(!H.T){H.T=new bo(H.api,H.UZu.bind(H));H.PF&&(H.p_=new V9(H.api),g.d(H,H.p_),H.p_.element.setAttribute("data-overlay-order","12"),H.api.lx(H.p_.element,4),H.p_.listen("click",H.gf,H));g.d(H,H.T);var P=H.api.getRootNode().querySelector(".ytp-chrome-bottom");P&&P.parentNode&&P.parentNode.insertBefore(H.T.element,P.nextSibling);UHq(H)}}); E.Z(G,"presentingplayerstatechange",function(){io(H)}); E.Z(G,"autonavvisibility",function(){io(H)}); H.api.Rs().subscribe("visibilitystatechange",function(){io(H)}); xHq(H,H.W)}; e9w=function(H,E){this.request=H;this.cursor=E}; g.ct=function(H,E){for(var G=g.R(Object.keys(E)),P=G.next(),Q={};!P.done;Q={placeholder:void 0},P=G.next())P=P.value,Q.placeholder=E[P],H=H.replace(new RegExp("\\$"+P,"gi"),function(e){return function(){return e.placeholder}}(Q)); return H}; DM=function(H){g.J.call(this);this.L=H;this.Zr=!0;this.Q8=new Map;this.T=new Set;this.G=new Set;this.D=new Set;this.C=new Set;this.W=new Set}; i_7=function(H){for(var E=0;E0||H.yG.clientWidth>0?(e=E.clientWidth/G,H=-1*H.Fa.clientWidth/G):(e/=G,H=-1*H.L[Q].element.offsetLeft/G),g.AE(E,"background-size",e+"px"),g.AE(E,"background-position-x",H+"px"))}; qj=function(){var H=/WebKit\/([0-9]+)/.exec(g.u0());return!!(H&&parseInt(H[1],10)>=600)}; Rd=function(H,E){g.Tn(H.S.getRootNode(),E)}; Qzj=function(H,E,G,P,Q,e,w){E=$Zq(E,e,Number(P.prefetchMilliseconds)||0,w);H=E instanceof T?E:Qx(H,P,Q,E,G);return H instanceof T?H:[H]}; t7v=function(H,E){if(H.L){var G=H.L.kt.Po-(E.startTime+H.N-H.L.kt.startSecs);G<=0||(G=new Iv(H.L.kt.startSecs-(isNaN(H.N)?0:H.N),G,H.L.kt.context,H.L.kt.identifier,"stop",H.L.kt.L+E.duration*1E3),H.g5("cuepointdiscontinuity",{segNum:E.U7}),Jk(H,G,E.U7))}}; X_=function(H){return H.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"}; hRM=function(H){return g.ve(H.L,function(E){return E.info.video?E.info.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM":!1})}; Tl=function(H){g.Xj("transport_use_scheduler")?g.eD.gU(H):g.M9(H)}; uu=function(H,E){var G=0;H=g.R(H);for(var P=H.next();!(P.done||P.value.startTime>E);P=H.next())G++;return G===0?G:G-1}; kG1=function(H,E){if(H.oM){if(E.getName()===H.oM.getName())return;H.oM.dispose();H.oM=null}E=E.create(H.GT.L,H.b4,H.TO());if(E=E!=null&&E.observe()?E:null)H.oM=E}; uVl=function(){rc||(rc=new Gd);return rc}; g.Y5=function(H){var E,G=E=0,P=!1;H=H.split(Wut);for(var Q=0;Q.4?-1:1;return(E==0?null:E)==-1?"rtl":"ltr"}; FUM=function(H){return(H=H.hj)&&H.showError?H.showError:!1}; b17=function(H,E){tb(H,1,E.trackType);Kc(H,2,E.isHdr)}; hTv=function(H){return/.*(\.c\.youtube\.com|.*\.googlevideo\.com)/.test(H)}; Xx=function(H,E,G,P,Q,e,w,t,k){G_(H,"impression")&&(e?(e=Q-P,e=e>=-1&&e<=2):e=Math.abs(P-Q)<=1,mm(H,E,e?P:Q,G,P,w,t&&e),e&&!k&&H.fP("complete"))}; uZ7=function(H,E){return H===E}; yEQ=function(H){function E(e,w,t){w=w.match("_rid")?w.split("_rid")[0]:w;typeof t==="number"&&(t=JSON.stringify(t));e.requestIds?e.requestIds.push({endpoint:w,id:t}):e.requestIds=[{endpoint:w,id:t}]} var G={};H=g.R(Object.entries(H));for(var P=H.next();!P.done;P=H.next()){var Q=g.R(P.value);P=Q.next().value;Q=Q.next().value;switch(P){case "GetBrowse_rid":E(G,P,Q);break;case "GetGuide_rid":E(G,P,Q);break;case "GetHome_rid":E(G,P,Q);break;case "GetPlayer_rid":E(G,P,Q);break;case "GetSearch_rid":E(G,P,Q);break;case "GetSettings_rid":E(G,P,Q);break;case "GetTrending_rid":E(G,P,Q);break;case "GetWatchNext_rid":E(G,P,Q);break;case "yt_red":G.isRedSubscriber=!!Q;break;case "yt_ad":G.isMonetized=!!Q}}return G}; A7=function(H,E){var G=ZW(H);Pp(H.Fo.getPlayerState())&&(G>=E.mediaTime?(E.resolve([E.mediaTime,E.id]),H.L.delete(E.id)):(E.delay.dispose(),G=(E.mediaTime-G)*1E3/H.Fo.getPlaybackRate(),E.delay=new g.Wt(function(){A7(H,E)},G/2),E.delay.start()))}; ADs=function(H,E){Qf(H,1,E.formatId,lL,3);tb(H,2,E.xj);tb(H,3,E.sequenceNumber);Qf(H,4,E.Uk,rM,1);tb(H,5,E.Px);tb(H,6,E.HJ)}; DZs=function(H,E){var G=[];E=Array.from(E.getElementsByTagName("SegmentTimeline"));E=g.R(E);for(var P=E.next();!P.done;P=E.next()){P=P.value;var Q=P.parentNode.parentNode,e=null;Q.nodeName==="Period"?e=vE1(H):Q.nodeName==="AdaptationSet"?(Q=Q.getAttribute("id")||Q.getAttribute("mimetype")||"",e=kg7(H,Q)):Q.nodeName==="Representation"&&(Q=Q.getAttribute("id")||"",e=M7w(H,Q));if(e==null)return;e.update(P);g.x1(G,ATt(e))}g.x1(H.D,G);dZj(H.D,function(w){return w.startSecs*1E3+w.L})}; AR=function(H,E,G){G=G===void 0?Cf:G;G.widthH.width*H.height*.2)return{Y8:3,XX:501,errorMessage:"ad("+ZF(G)+") to container("+ZF(H)+") ratio exceeds limit."};if(G.height>H.height/3-E)return{Y8:3,XX:501,errorMessage:"ad("+ZF(G)+") covers container("+ZF(H)+") center."}}; rs=function(H,E,G){return u5(49,E?Px(H,G):H.L)}; J4l=function(H){var E=H.api.getRootNode(),G,P=H.api.getWebPlayerContextConfig().embedsEnableEmc3ds?((G=E.parentElement)==null?void 0:G.parentElement)||E:E;H.L=new Lf(P,function(Q){Q!=null&&(H.api.K().AD=Q,H.api.K().Yi="EMBEDDED_PLAYER_VISIBILITY_FRACTION_SOURCE_INTERSECTION_OBSERVER")}); g.d(H,H.L);H.events.Z(H.api,"videoStatsPingCreated",function(Q){var e=H.L;e=e.L==null?null:Math.round(e.L*100)/100;Q.inview=e!=null?e:void 0;e=H.api.getPlayerSize();if(e.height>0&&e.width>0){e=[Math.round(e.width),Math.round(e.height)];var w=g.lo();w>1&&e.push(w);e=e.join(":")}else e=void 0;Q.size=e})}; nEn=function(){this.L=10;this.W=Date.now()}; XW=function(H){this.VN=tz(H)}; zj=function(H,E,G,P){if(G==="child"){g.NG(E);var Q;P===void 0?Q=void 0:Q=!Array.isArray(P)||P&&typeof P.J==="string"?[P]:P;G=E01(H,Q);G=g.R(G);for(H=G.next();!H.done;H=G.next())E.appendChild(H.value)}else G==="style"?g.AE(E,"cssText",P?P:""):P===null||P===void 0?E.removeAttribute(G):(H=P.toString(),G==="href"&&(H=g.Uw(g.x5(H))),E.setAttribute(G,H))}; U_U=function(H){return H.O9.K().U("html5_gapless_no_clear_buffer_timeline")&&H.T===1&&ip(H.L.getVideoData())}; O0d=function(H,E,G){if(G!==z_)throw Error();this.typeName=H;this.L=E;if(G!==z_)throw Error();a2Q.set(H,this)}; Ae=function(H,E,G,P,Q){Q=Q===void 0?null:Q;this.G=H;this.SR=E;this.layoutId=P;this.D=0;this.C=null;this.T=void 0;this.L=new Set;this.W=Array.from(this.G.get("progress")||[]);this.W.sort(function(e,w){return(e.offsetMilliseconds||0)-(w.offsetMilliseconds||0)}); this.B={adPlacementConfig:G,vx:Q}}; g.mau=function(H){var E;H.responseType&&H.responseType!=="text"?H.responseType==="arraybuffer"&&(E=pE(new Uint8Array(H.response))):E=H.responseText;return!E||E.length>2048?"":E.indexOf("https://")===0?E:""}; g.Q1=function(H,E,G,P){H=H===void 0?{}:H;E=E===void 0?[]:E;G=G===void 0?!1:G;P=P===void 0?!1:P;E.push("ytp-menuitem");var Q=H;"role"in Q||(Q.role="menuitem");G||(Q=H,"tabindex"in Q||(Q.tabindex="0"));H={J:G?"a":"div",QN:E,j:H,V:[{J:"div",Y:"ytp-menuitem-icon",iJ:"{{icon}}"},{J:"div",Y:"ytp-menuitem-label",iJ:"{{label}}"},{J:"div",Y:"ytp-menuitem-content",iJ:"{{content}}"}]};P&&H.V.push({J:"div",Y:"ytp-menuitem-secondary-icon",iJ:"{{secondaryIcon}}"});return H}; i7=function(H){switch(H){case "*":return"v8e";case "(":return"v9e";case "(h":return"v9he";default:return H}}; Tj=function(H,E){this.L=E;this.slotType="SLOT_TYPE_IN_PLAYER";this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED";this.triggerId=H(this.triggerType)}; A2=function(H,E){var G=y3l(H.provider);Object.assign(G,{state:H.C});E=new FX(H.provider.videoData,H.provider.X,E,G);E.L=H.provider.Fo.WK();G=H.provider.videoData.clientPlaybackNonce;E.L=H.provider.Fo.Nu(G);H.provider.videoData.isLivePlayback||(E.T$=H.provider.Fo.getDuration(G));H.provider.videoData.L&&(G=H.provider.videoData.L.JT(E.L))&&(E.p_=G-E.L,Cd(H.provider.videoData)&&(E.L+=H.provider.Fo.YV(),E.p_-=H.provider.Fo.YV()));E.ox=g.Gm(H.provider);E.segments=[E1(H.provider)];return E}; dWq=function(){KuM=Vx=Jl=Si=null}; g.ff=function(H,E,G){return g.fV(H,[E],{mode:"readwrite",Iq:!0,commit:Fx()},function(P){return g.C9(P.objectStore(E),G)})}; pf=function(H,E){if(!H.O7[E.id]){var G=H.ou.L[E.id].index.n7(H.E7,15);G=E.Rd&&H.G&&H.G.index.isLoaded()?G||E.Rd:G||E.Xo;H.O7[E.id]=G}G=H.O7[E.id];H.eR.has(E.itag)&&(G*=1.5);return G*=Math.max(1,H.MZ.BK()||0)}; cBT=function(H){var E=[],G=[].concat(g.EC(H.gs));H.i4.forEach(function(w){E.push(Object.assign({},w))}); for(var P=H.L,Q=g.R(H.B.ai()),e=Q.next();!e.done;e=Q.next())P=jC1(H,E,G,e.value,P);E.forEach(function(w){w.startTimeMs&&(w.startTimeMs+=H.timestampOffset*1E3)}); return{i4:E,gs:G}}; g.ZO=function(H){return"/youtubei/v1/"+Nb7(H)}; A$T=function(H,E,G){H.L.set(E,G);H.W.set(E,G);H.D&&H.D.set(E,G)}; H8=function(H){this.VN=tz(H)}; g.sW=function(H){var E=g.Jy(H);yBM.includes(E)&&(E="www.youtube.com");return H.protocol+"://"+E}; N_1=function(H){return H.array.slice(M3U(H,0x7ffffffffffff),H.array.length)}; kO=function(H){this.G=H;this.W=0;this.L=null}; D4d=function(H,E){H.Eu=E;var G,P;(G=H.jT)!=null&&(P=G.L)!=null&&(P.L=new EQ(E,P.W,P.G),g.d(P,P.L))}; b0U=function(H,E,G,P){var Q=Jg(H.W.get(),"SLOT_TYPE_IN_PLAYER");G=new yr(H.L,G);var e=[new r_(H.L,Q)],w=[new Y7(H.L,Q),new BQ(H.L,E)];e={slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f_:"core",slotEntryTrigger:G,slotFulfillmentTriggers:e,slotExpirationTriggers:w};return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:[new r_(H.L,Q)],slotExpirationTriggers:[new BQ(H.L,E),new Y7(H.L,Q)],f_:"core",clientMetadata:new ZN([new Cr(P(e))])}}; nYs=function(H){var E;if(E=H.provider.videoData.isLoaded()&&H.provider.videoData.Qm&&H.G&&!H.Jm)E=H.L,E=E.T+E.WK()-E.G>=H.provider.videoData.Qm;return!!E}; AZt=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n,O,q,N){if(!Cm(G))return new T("Invalid PlayerBytesAdLayoutRenderer");var r=Gx(G);if(r instanceof T)return r;w={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,f_:w};a:{var B=G.adLayoutMetadata.layoutId,l=g.X(G.renderingContent,S4);if(l&&P8(l)){var S=[];if(u)S.push(new nn(US(E)));else{b:{t=g.R(t);for(E=t.next();!E.done;E=t.next()){E=E.value;var z=GIs(E.renderer)||[],Pt=g.R(z);for(z=Pt.next();!z.done;z=Pt.next())if(z=z.value, z.associatedPlayerBytesLayoutId===B){z.associatedPlayerBytesLayoutId?(t=z.playerOverlay,Pt=t!==void 0&&t.playerOverlayLayoutRenderer!==void 0&&t.playerOverlayLayoutRenderer.inPlayerSlotId!==void 0&&t.playerOverlayLayoutRenderer.inPlayerLayoutId!==void 0,t=t!==void 0&&t.instreamAdPlayerOverlayRenderer!==void 0&&t.instreamAdPlayerOverlayRenderer.inPlayerSlotId!==void 0&&t.instreamAdPlayerOverlayRenderer.inPlayerLayoutId!==void 0||Pt):t=!1;E=t?{instreamVideoAdRenderer:z,adPlacementConfig:E.config.adPlacementConfig}: new T("Invalid InPlayer shim");break b}}E=new T("Not able to find associated InPlayer slot")}if(E instanceof T){e=E;break a}t=E.instreamVideoAdRenderer.playerOverlay.instreamAdPlayerOverlayRenderer;z=E.instreamVideoAdRenderer.playerOverlay.playerOverlayLayoutRenderer;var eu;Pt=(eu=t==null?void 0:t.inPlayerSlotId)!=null?eu:z==null?void 0:z.inPlayerSlotId;var QM;eu=(QM=t==null?void 0:t.inPlayerLayoutId)!=null?QM:z==null?void 0:z.inPlayerLayoutId;if(Pt===void 0){e=new T("InPlayer shim slot id is undefined"); break a}if(eu===void 0){e=new T("InPlayer shim layout id is undefined");break a}S.push(new Zm(eu),new QC(Pt),new kL(Q.WR.adPodIndex),new nn(E.adPlacementConfig));t&&S.push(new d8(t));z&&S.push(new Du(z))}S.push(new hs(Q.WR),new IJ(l.externalVideoId),new $L(k),new ce({impressionCommands:l.impressionCommands,abandonCommands:l.onAbandonCommands,completeCommands:l.completeCommands,progressCommands:l.adVideoProgressCommands}),new tm(Q.Pm),new W3({current:null}),new jU(Q.vzJ.Gp),new a6(O4(l.pings)),new Yb(Q.WR.adPodIndex)); N&&S.push(new vC(N));(Q=Dzj(B,m))&&S.push(new bP(Q));e&&S.push(new sQ(e.Pm));l.adNextParams&&S.push(new Ll(l.adNextParams));l.clickthroughEndpoint&&S.push(new le(l.clickthroughEndpoint));l.legacyInfoCardVastExtension&&S.push(new ZH(l.legacyInfoCardVastExtension));l.sodarExtensionData&&S.push(new Am(l.sodarExtensionData));q&&l.adPodSkipTarget&&l.adPodSkipTarget>0&&(S.push(q),S.push(new By(l.adPodSkipTarget)));(e=W.get(l.externalVideoId))&&S.push(new gv(e));e=S}else e=new T("Invalid vod media renderer")}if(e instanceof T)return e;H=Object.assign({},w,P,{w5:r,renderingContent:G.renderingContent,clientMetadata:new ZN(e),O2:xZ(I,H)(w),adLayoutLoggingData:G.adLayoutMetadata.adLayoutLoggingData});G=g.X(G.renderingContent,S4);if(!G||!P8(G))return new T("Invalid meida renderer");A=oQ(A,G.externalVideoId);A.instreamVideoAdRenderer=G;A.FJ="AD_PLACEMENT_KIND_START";return u?(k=zc(m,H,k,n,I,O,v,q,!1),k instanceof T?k:Dzj(H.layoutId,m)&&k?{layout:Object.assign({},H,{clientMetadata:new ZN(e.concat(new es(k)))})}:{layout:H,CS:k}): {layout:H}}; pQ=function(){this.W=this.G=this.D=this.L=0}; g.Uw=function(H){if(H instanceof d6)return H.L;throw Error("");}; i07=function(H,E,G){if(H.W!==0&&G&&E.kp[0].dO()){var P=E.kp[0].U7,Q=E.kp[0].D;E=E.isDecorated();zWj(H,P,Q,E,G)}}; qt7=function(){wj.instance||(wj.instance=new wj);return wj.instance}; g.HZ=function(H){return H.U("html5_local_playsinline")?fB&&!g.Gp(602)&&!("playsInline"in sY()):fB&&!H.KB||g.aD("nintendo wiiu")?!0:!1}; R9w=function(H){var E,G,P=H.length,Q=0;for(E=0;E>>6:(e<65536?t[G++]=224|e>>>12:(t[G++]=240|e>>>18,t[G++]=128|e>>>12&63),t[G++]=128|e>>> 6&63),t[G++]=128|e&63);return t}; nF=function(H){this.value=H}; dq=function(H,E){return E===void 0||E===null?H:Number(E)}; ebl=function(){var H=vxU();if(H!=null&&H.effectiveType)return JBw.hasOwnProperty(H.effectiveType)?JBw[H.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"}; rBl=function(H){if(Re()&&H!=="Silk"){var E=N2.brands.find(function(G){return G.brand===H}); if(!E||!E.version)return NaN;E=E.version.split(".")}else{E=FYs(H);if(E==="")return NaN;E=E.split(".")}return E.length===0?NaN:Number(E[0])}; R0T=function(H){if(!TN(H.adLayoutMetadata))return!1;if(g.X(H.renderingContent,Bb1)||g.X(H.renderingContent,gG))return!0;var E=g.X(H.renderingContent,BJ);return g.X(H.renderingContent,h1)||g.X(E==null?void 0:E.sidePanel,Ytl)||g.X(E==null?void 0:E.sidePanel,XFw)||g.X(E==null?void 0:E.sidePanel,Z0n)?!0:!1}; C7q=function(H,E){return H.uJ!==E.uJ?!1:H.range&&E.range?H.range.start+H.L>=E.range.start+E.L&&H.range.start+H.L+H.W<=E.range.start+E.L+E.W:H.U7===E.U7&&H.L>=E.L&&(H.L+H.W<=E.L+E.W||E.G)}; gEn=function(H,E,G,P,Q){Q=sDd(Q,E);VW(H,G,P,Q);Q&&!Bp(Q)&&AO(H.VN);return H}; l2M=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next())if(G=G.value.playerAnnotationsUrlsRenderer){G.adsOnly&&(H.iL=!0);if(E=G.loadPolicy)H.annotationsLoadPolicy=Luj[E];if(E=G.invideoUrl)H.BA=$o(E);H.oT=!0;break}}; g.$O=function(H){var E=g.t1();E&&(typeof H==="number"?H=[H]:typeof H==="string"&&(H=[parseInt(H,10)]),g.D9(H,function(G){E.unsubscribeByKey(G);delete ko[G]}))}; UZs=function(){var H=["metadata_type_invideo_overlay_ad_renderer"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY","LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY"]}}; xZM=function(H){H.P$()===H.YH.length-1&&xQ("Unexpected skip with target requested during the last sublayout")}; W8=function(H,E){var G=H.C[E.sessionId];!G&&H.D&&(G=H.D,H.D=null,G.sessionId=E.sessionId,H.C[E.sessionId]=G);return G}; A_=function(H,E){this.L=H;this.pos=0;this.start=E||0}; TbT=function(H,E){var G=KV(H.videoTrack).find(function(P){return P.startTime>=E&&z91(H,P.startTime,!1)}); return G&&G.startTime=P.start&&E<=P.end)return;if(E===P.end+1){P.end+=1;return}}H.Yp.push(new HAw(E))}}; kp=function(H){return H.U7+(H.G?1:0)}; Pus=function(H,E,G){G=H.L.DX(G);var P=H.W;P.L.exports.AES128CTRCipher_setCounter(P.cipher,G.byteOffset);H.L.free(G.byteOffset);E=H.L.DX(E);H.W.encrypt(E);return E}; v8=function(H){this.VN=tz(H)}; MS=function(H,E,G){H.L[E]||(H.g5("huli-sdai-err",G),H.L[E]=!0)}; dj=function(H,E,G,P){(P===void 0?0:P)>1?E=E.zam:(G=Jz(G,rs(H,H.V0(E,G),E)),E=Math.max(H.T,G.timedOut)+E.Cw*(H.G-H.T)+.25*H.B,E=E>3?1E3*Math.pow(1.6,E-3):0);return E===0?!0:H.L_+E<(0,g.ON)()}; Qhn=function(H){var E,G,P=(E=H.L)==null?void 0:(G=E.bannerData)==null?void 0:G.itemData;if(P==null?0:P.priceReplacementText)return P==null?void 0:P.priceReplacementText;if((P==null?0:P.promotionText)&&H.S.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var Q;return(P==null?void 0:P.price)+" "+(P==null?void 0:(Q=P.promotionText)==null?void 0:Q.content)}var e,w;if(P==null?0:(e=P.dealsData)==null?0:(w=e.sales)==null?0:w.originalPrice){var t,k;return P==null?void 0:(t=P.dealsData)== null?void 0:(k=t.sales)==null?void 0:k.salesPriceAccessibilityLabel}var W,I;if(P==null?0:(W=P.dealsData)==null?0:(I=W.priceDrop)==null?0:I.referencePrice){var A,m;return(P==null?void 0:P.price)+" "+(P==null?void 0:(A=P.dealsData)==null?void 0:(m=A.priceDrop)==null?void 0:m.referencePrice)}return P==null?void 0:P.price}; JZ=function(H,E){E=String(E);H.D&&(E=E.toLowerCase());return E}; BU=function(H,E,G){this.triggeringLayoutId=E;this.triggerType="TRIGGER_TYPE_SKIP_REQUESTED";this.triggerId=G||H(this.triggerType)}; g.oln=function(H){var E=Ph(H,0,1701671783);if(!E)return null;var G=sht(E),P=G.zgp;G=Dk(G.nk);if(H=Ph(H,E.offset+E.size,1701671783))if(H=sht(H),H=Dk(H.nk),G&&H){E=g.R(Object.keys(H));for(var Q=E.next();!Q.done;Q=E.next())Q=Q.value,G[Q]=H[Q]}return G?new Ko(G,P):null}; nK=function(H,E){H.L.delete(E.jI())||xQ("Trying to unregister a AdErrorInfoSupplier that has not been registered yet.")}; erj=function(H,E){return H.GE.G?!1:H.WE.W?!1:typeof H.Ltypeof E.L?!1:H.L=E)){for(var G=H.L.length*2;G>2];w=E[(w&3)<<4|t>>4];t=E[(t&15)<<2|k>>6];k=E[k&63];G[e++]=""+W+w+t+k}W=0;k=P;switch(H.length-Q){case 2:W=H[Q+1],k=E[(W&15)<<2]||P;case 1:H=H[Q],G[e]=""+E[H>>2]+E[(H&3)<<4|W>>4]+k+P}return G.join("")}; W2n=function(H,E){var G,P,Q,e;return g.L(function(w){if(w.L==1)return g.EY(w,2),G=aQ(E),P={context:g.Yy(H),playerRequest:{videoId:H.videoId},disablePlayerResponse:!0},Q=g.ZO(k6n),g.U(w,g.CO(G,P,Q),4);if(w.L!=2)return e=w.W,!e||"error"in e&&e.error||g.zN(H,{raw_reel_item_watch_response:e}),g.pA(w,0);g.vo(w);g.P2(w)})}; U3=function(H,E,G,P,Q,e){g.J.call(this);this.HL=H;this.G=E;this.T=G;this.D=P;this.W=Q;this.Da=e;this.L=new Map}; k4Q=function(H,E,G,P,Q){var e,w,t;return g.L(function(k){switch(k.L){case 1:return e={config:H,hashData:E,configData:G,timestamp:Q!==void 0?Q:(0,g.ON)()},g.U(k,OQ(P),2);case 2:return w=k.W,g.U(k,w.clear("coldConfigStore"),3);case 3:return g.U(k,g.ff(w,"coldConfigStore",e),4);case 4:return t=k.W,k.return(t)}})}; Lt=function(H,E,G,P,Q){P=sDd(P,E);Nm(H,G,P,Q);P&&!Bp(P)&&AO(H.VN);return H}; R7=function(H){H.L||(H.L=new Map,H.W=0,H.G&&VO(H.G,function(E,G){H.add(Na(E),G)}))}; py=function(H){return new Uint8Array(ek(H)||0)}; KK=function(H){if(!H.provider.X.U("html5_qoe_no_len_check")){for(var E=0,G=g.R(H.L.entries()),P=G.next();!P.done;P=G.next()){var Q=g.R(P.value);P=Q.next().value;Q=Q.next().value;E+=P.length+Number(Pv(Q,function(e,w){return e+w.length},0))}E>96E3&&(new g.Wt(H.reportStats,0,H)).start()}}; US=function(H){switch(H){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"}}}; IFn=function(H){this.triggerType="TRIGGER_TYPE_PLAYBACK_MINIMIZED";this.triggerId=H(this.triggerType)}; AKl=function(H,E){E.name!=="InvalidStateError"&&E.name!=="AbortError"&&(E.name==="NotAllowedError"?(H.L.Jp(),js(H.W,H.element,!1)):g.h3(E))}; vll=function(H){return{ozw:hU(H,1),itag:zb(H,3),GD:$M(H,4,mrM),lmt:hU(H,5),nZo:hU(H,7),xtags:zb(H,15),XTp:$M(H,23,uls),OD:$M(H,34,c8)}}; g.Mn=function(H){return H.flavor==="fairplay"}; drq=function(H,E,G){G=G===void 0?{}:G;H=MrT(Lu(NS),E,G,H);return thq(H)}; B8T=function(H){var E=fnM();E&&document.addEventListener(E,H,!1)}; q0=function(H,E,G,P,Q,e,w,t){var k={layoutId:E,layoutType:e,f_:"core"};return{layoutId:E,layoutType:e,w5:new Map,layoutExitNormalTriggers:[new WX(H.L,G)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:new ZN([new nn(P)].concat(g.EC(w))),O2:Q(k),adLayoutLoggingData:t}}; Drt=function(H,E){H=H.itag.toString();E!==null&&(H+=E.itag.toString());return H}; aF7=function(H){if(!(yC(H.info)&&H.info.KL()&&H.policy.n6&&H.Pf)||H.info.Du.G>=2||ZU()>0||!nlj())return!1;var E=H.Sy.get("aitags");if(!E)return!1;E=Na(E).split(",");for(var G=[],P=g.R(H.Pf),Q=P.next();!Q.done;Q=P.next())Q=Q.value,g.Xa(E,Q)&&G.push(Q);if(!G.length)return!1;H.Sy.set("altitags",g.Bo(G.join(",")));return!0}; K2u=function(H,E){U7v(H,E).then(void 0,function(){bz(H)}); iz(H,E).then(function(G){qS(H,G)},function(){bz(H)}); H.Fo.Lp(E);if(H.X.z6()||OEl(H))E=H.NL(),E["native"]=""+ +H.WF,E.tgt=""+H.W,E.otgt=""+(H.W+H.timestampOffset),E.maxst=""+H.VG(),H.L&&H.U("html5_high_res_seek_logging")&&(E.tht=""+H.L.T(),E.ht=""+H.L.Ev(),E.adft=""+Ba(H.L)),H.U("html5_sabr_parse_live_metadata_playback_boundaries")&&H.videoData.L&&ip(H.videoData)&&(E.minst=""+H.videoData.L.FX,E.cminst=""+(H.videoData.L.MC()+H.timestampOffset),E.maxst=""+H.videoData.L.Qd,E.hts=""+H.videoData.L.Jm,E.cmaxst=""+(H.videoData.L.VG()+H.timestampOffset)),H.Fo.g5("startSeek", E)}; jhq=function(){var H=["metadata_type_top_banner_image_text_icon_buttoned_layout_view_model"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; lE=function(H){this.VN=tz(H)}; uq=function(H){try{return(typeof H==="string"?H:String(JSON.stringify(H))).substr(0,500)}catch(E){return"unable to serialize "+typeof H+" ("+E.message+")"}}; cKq=function(H){var E,G;return g.L(function(P){if(P.L==1)return g.U(P,Ec(H),2);E=P.W;G=(0,g.ON)()-2592E6;return g.U(P,g.fV(E,["LogsRequestsStore"],{mode:"readwrite",Iq:!0},function(Q){return g.V1(Q.objectStore("LogsRequestsStore"),{},function(e){if(e.getValue().timestamp<=G)return e.delete().then(function(){return g.SF(e)})})}),0)})}; g.RQ=function(H,E){return(E||document).querySelectorAll("."+H)}; qo=function(H,E){H=g.R(H.L.values());for(var G=H.next();!G.done;G=H.next()){G=g.R(G.value);for(var P=G.next();!P.done;P=G.next())if(P=P.value,P.layoutId===E)return P}xQ("Trying to retrieve an unknown layout",void 0,void 0,{isEmpty:String(g.xm(E)),layoutId:E})}; kEd=function(H){var E,G,P,Q=(E=H.playerResponse)==null?void 0:(G=E.playerConfig)==null?void 0:(P=G.compositeVideoConfig)==null?void 0:P.sourceConfigs,e,w,t;H=(e=H.playerResponse)==null?void 0:(w=e.playerConfig)==null?void 0:(t=w.compositeVideoConfig)==null?void 0:t.defaultActiveSourceVideoId;if(!Q||!Q.length)return"";H||(H=Q[0].videoId||"");Q=g.R(Q);for(e=Q.next();!e.done;e=Q.next())if(e=e.value,e.videoId===H&&e.audioTracks)for(e=g.R(e.audioTracks),w=e.next();!w.done;w=e.next())if(w=w.value,w.isDefaultForSource)return w.id|| "";return""}; yKs=function(){if(J1!==void 0)return J1;db=!0;return J1=Nkv().then(function(H){db=!1;var E;if((E=rj())!=null&&E.L){var G;E={hasSucceededOnce:((G=zI())==null?void 0:G.hasSucceededOnce)||H};var P;(P=rj())==null||P.set("LAST_RESULT_ENTRY_KEY",E,2592E3,!0)}return H})}; jn=function(H,E,G){if(G&&!G.includes(H.layoutType))return!1;E=g.R(E);for(G=E.next();!G.done;G=E.next())if(!mw(H.clientMetadata,G.value))return!1;return!0}; cDn=function(H){var E={},G=[],P=[];if(!H.data)return E;for(var Q=0;Q10&&(H.U("html5_sky_skip_pause_jump")? H.Fo.g5("skipPauseJump",{evt:P,cmt:H.getCurrentTime(),lpt:H.B}):H.seekTo(H.B,{cO:"pauseJump"})),P!=="pause"&&P!=="play"&&P!=="playing"&&P!=="progress"&&(H.B=0))}; CF=function(H,E,G){H=H===void 0?100:H;E=E===void 0?100:E;G=G===void 0?ZEj:G;g.J.call(this);this.sampleInterval=H;this.maxBufferSize=E;this.T=G;this.encoder=new M1;this.L=[];this.G=0;Cun(this)}; AOq=function(H){H=Je(H);var E=EA();H=E?E.get(H):void 0;return H&&H.stringValue?H.stringValue:""}; Xr=function(H,E){g.$f.call(this,H);this.IM=E;this.W=new g.Z0(this);this.B=new g.Wt(this.ueu,1E3,this);this.N=this.BO=null;g.d(this,this.W);g.d(this,this.B);E=this.S.K();H.createClientVe(this.element,this,28656);g.aG(this.element,"ytp-contextmenu");this.S.K().experiments.xp("delhi_modern_web_player")&&g.sn(E)&&g.aG(this.element,"ytp-delhi-modern-contextmenu");gl1(this);this.hide()}; Cy=function(H,E){Uj(H,1,E.url);if(E.a9)for(var G=0;G-1)return E.apply(null,g.EC(G));try{return H.L=H.G.L.now(),E.apply(null,g.EC(G))}finally{H.D+=H.G.L.now()-H.L,H.L=-1,H.W+=1}}}; xo=function(H,E){this.W=H;this.L=E+"::"}; zx=function(H){var E=H(),G=E&127;if(E<128)return G;E=H();G|=(E&127)<<7;if(E<128)return G;E=H();G|=(E&127)<<14;if(E<128)return G;E=H();return E<128?G|(E&127)<<21:Infinity}; N6n=function(H,E){if(H.endpoint==="log_event"){s5(H);var G=of(H),P=Tkn(H.payload)||"",Q=JY7(P),e=200;if(Q){if(Q.enabled===!1&&!g.Xj("web_payload_policy_disabled_killswitch"))return;e=Vrv(Q.tier);if(e===400){c4u(H,E);return}}am[G]=!0;G={cttAuthInfo:G,isJspb:!1,tier:e};OI().storePayload(G,H.payload);Ven(E,!1,G,et(P))}}; eL=function(H,E,G){G=G===void 0?{sampleRate:.1}:G;Math.random()0||H.N)return!0;H=nC().W.isVisible();var E=Kq(Fr)===0;return H||E}; aml=function(H,E,G,P){E=qn(H,E,G,P);return E instanceof T?E:MN(H,E,G)}; G_l=function(H,E,G){if(!H.Iu())if(E){nr(H,{onkmtyp:G});H.status="km";switch(G){case "license-renewal":case "license-request":case "license-release":break;case "individualization-request":I9Q(H,E);return;default:H.publish("ctmp","message_type",{t:G,l:E.byteLength})}H.WF||(KT("drm_gk_f",void 0,H.videoData.L_),H.WF=!0,H.publish("newsession",H));if(Bh(H.W)&&(E=fFT(E),!E))return;E=new pAw(E,++H.requestNumber,H.videoData.L_);HZ1(E,function(P){Eed(H,P)},function(P,Q,e){if(!H.Iu()){var w=0; P.L.W>=3&&(w=1,Q="drm.net.retryexhausted");nr(H,{onlcsrqerr:Q,info:e});H.error(Q,w,e);H.shouldRetry(uN(w),P)&&wkw(H,P)}}); g.d(H,E);eRt(H,E)}else H.error("drm.unavailable",1,"km.empty")}; N$=function(H){if(!H.isProximaLatencyEligible)return 0;var E=fq();return PPj(H)?2:E===1?1:H.U("html5_enable_proxima")?2:0}; Qyu=function(H){if(H.policy.hj&&H.policy.kC)for(var E=g.R(H.policy.hj),G=E.next(),P={};!G.done;P={Io:void 0,Nv:void 0},G=E.next())if(G=g.oz(G.value),P.Io=+G.clen,P.Nv=+G.csz,P.Io>0&&P.Nv>0&&H.policy.D===G.docid&&H.L.info.id===G.fmtid&&H.L.info.lastModified===+G.lmt)return H={},H.clen=P.Io,H.csz=P.Nv,H.ck=G.ck,H.civ=G.civ,H}; xJ=function(H){return g.ry(syl,H)>=0}; k$7=function(){var H,E,G,P=(H=window.h5vcc)==null?void 0:(E=H.settings)==null?void 0:(G=E.getPersistentSettingAsString)==null?void 0:G.call(E,"cpu_usage_tracker_intervals");if(P!=null){var Q;H=(Q=JSON.parse(P))!=null?Q:[];Q=H.filter(function(W){return W.type==="total"}).map(function(W){return W.seconds}); E=g.R(oew);for(G=E.next();!G.done;G=E.next())G=G.value,Q.indexOf(G)===-1&&H.push({type:"total",seconds:G});var e,w;(e=window.h5vcc)==null||(w=e.settings)==null||w.set("cpu_usage_tracker_intervals_enabled",1);var t,k;(t=window.h5vcc)==null||(k=t.settings)==null||k.set("cpu_usage_tracker_intervals",JSON.stringify(H))}}; eAt=function(H){var E=Number(getComputedStyle(H.D).opacity),G;(G=H.G)==null||G.cancel();H.G=void 0;return E}; Ur=function(H){this.VN=tz(H)}; rN=function(H,E,G){this.videoData=H;this.X=E;this.Fo=G;this.L=void 0}; fK=function(H,E,G){var P=[];P.push(new Tj(H.L,G));E&&P.push(E);return P}; g.Eb=function(H){var E=E===void 0?!1:E;return H9(U8(H,wNQ),H,E,"Trusted Image URL")}; tSQ=function(H,E){for(var G=g.R(E.keys()),P=G.next();!P.done;P=G.next())if(P=E.get(P.value),P.length!==0){g.nT(P,function(t,k){return k.maxFramerate-t.maxFramerate}); for(var Q=[P[0]],e=0,w=1;wP&&IdQ(H,Q,G)===!0&&(P=e)}return P}; mYn=function(H){if(!H.api.K().dP){var E=H.api.getVideoData(),G=new g.FE("Subscribe",null,"Subscribed",null,!0,!1,E.t_,E.subscribed,"channel_avatar",null,H.api,!0);H.api.createServerVe(G.element,H);var P;H.api.setTrackingParams(G.element,((P=E.subscribeButtonRenderer)==null?void 0:P.trackingParams)||null);H.Z(G.element,"click",function(){H.api.logClick(G.element)}); H.subscribeButton=G;g.d(H,H.subscribeButton);H.subscribeButton.mx(H.element)}}; u7w=function(H,E){E=E===void 0?"":E;var G=sH(E)||void 0;if(!E||!G){var P;H.LP({adcfg:(P=E)==null?void 0:P.length,dcfg:G==null?void 0:G.length})}return G}; veT=function(H){if(!WSs(H))return!1;var E;H=(E=H.mediaElement)==null?void 0:E.audioTracks();return!!(H&&H.length>1)}; g.sz=function(H){H&&(typeof H=="string"&&(H=[H]),g.D9(H,function(E){if(E in p_){var G=p_[E],P=G[0],Q=G[1],e=G[3];G=G[4];P.removeEventListener?WZq()||typeof G==="boolean"?P.removeEventListener(Q,e,G):P.removeEventListener(Q,e,!!G.capture):P.detachEvent&&P.detachEvent("on"+Q,e);delete p_[E]}}))}; M97=function(H,E){if(H.api.isMinimized())return!1;var G=uG7(E.image),P=G;G.width0&&(H.W=E,H.B.style.height=H.W+"px")}; OZM=function(H){var E;(E=H.dP)==null||E.stop();H.countdownTimer.hide()}; Q6=function(H){var E;return(E=PV.oV.get(H))!=null?E:"u"}; jod=function(H,E){return H.T$?E?function(){E().then(function(){H.flush()})}:function(){H.flush()}:function(){}}; bWt=function(H,E){(0,g.ON)();var G;if((G=H.L.L)==null)var P=void 0;else a:{H=H.iv;try{var Q=Pus(G,E,H),e=G.L.DX(H),w=G.L,t=G.D,k=new Uint8Array(w.exports.memory.buffer,w.malloc(32),32);w.exports.Sha256Hmac(t.byteOffset,t.byteLength,e.byteOffset,e.byteLength,Q.byteOffset,Q.byteLength,k.byteOffset);G.L.free(e.byteOffset);P={Qx:G.L.vM(Q),signature:G.L.vM(k)};break a}catch(W){g.p5(Error("ocwceas: wasm encryptAndSign failed: "+W))}P=void 0}return P}; jN=function(H,E,G,P){E=E===void 0?{}:E;if(P===void 0?0:P)return E.disabled=1,0;if(xb(H.T,ll.AV1_CODECS)&&xb(H.T,ll.HEIGHT)&&xb(H.T,ll.BITRATE))return E.isCapabilityUsable=1,8192;try{var Q=dHM();if(Q&&!H.U("disable_av1_setting"))return E.localPref=Q}catch(t){}P=1080;Q=navigator.hardwareConcurrency;Q<=2&&(P=480);E.coreCount=Q;if(Q=g.hE(H.experiments,"html5_default_av1_threshold"))P=E["default"]=Q;if(H=H.T.WF)E.mcap=H,P=Math.max(P,H);if(G){var e,w;if(H=(e=G.videoInfos.find(function(t){return GV(t)}))== null?void 0:(w=e.W)==null?void 0:w.powerEfficient)P=8192,E.isEfficient=1; G=G.videoInfos[0].video;e=Math.min(wT("1",G.fps),wT("1",30));E.perfCap=e;P=Math.min(P,e);G.isHdr()&&!H&&(E.hdr=1,P*=.75)}else G=wT("1",30),E.perfCap30=G,P=Math.min(P,G),G=wT("1",60),E.perfCap60=G,P=Math.min(P,G);return E.av1Threshold=P}; $B=function(H,E,G,P,Q,e){s9.call(this,H,{J:"div",Y:"ytp-ad-player-overlay",V:[{J:"div",Y:"ytp-ad-player-overlay-flyout-cta"},{J:"div",Y:"ytp-ad-player-overlay-instream-info"},{J:"div",Y:"ytp-ad-player-overlay-skip-or-preview"},{J:"div",Y:"ytp-ad-player-overlay-progress-bar"},{J:"div",Y:"ytp-ad-player-overlay-instream-user-sentiment"},{J:"div",Y:"ytp-ad-player-overlay-ad-disclosure-banner"}]},"player-overlay",E,G,P);this.N=e;this.T=this.HF("ytp-ad-player-overlay-flyout-cta");this.T.classList.add("ytp-ad-player-overlay-flyout-cta-rounded"); this.L=this.HF("ytp-ad-player-overlay-instream-info");this.D=null;Zm1(this)&&(H=Ms("div"),g.aG(H,"ytp-ad-player-overlay-top-bar-gradients"),E=this.L,E.parentNode&&E.parentNode.insertBefore(H,E),(E=this.api.getVideoData(2))&&E.isListed&&E.title&&(G=new ht(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),G.mx(H),G.init(PL("ad-title"),{text:E.title},this.macros),g.d(this,G)),this.D=H);this.G=null;this.z$=this.HF("ytp-ad-player-overlay-skip-or-preview");this.T$=this.HF("ytp-ad-player-overlay-progress-bar"); this.PF=this.HF("ytp-ad-player-overlay-instream-user-sentiment");this.WF=this.HF("ytp-ad-player-overlay-ad-disclosure-banner");this.W=Q;g.d(this,this.W);this.hide()}; Xz1=function(H){var E=xp("_start",H),G=Y9v(H),P=!KQQ;E&&G&&P&&(Tx(jy7,new cW(Math.round(G-E),H)),KQQ=!0)}; tt=function(H){this.T=new Uint8Array(64);this.G=new Uint8Array(64);this.D=0;this.C=new Uint8Array(64);this.W=0;this.T.set(H);this.G.set(H);for(H=0;H<64;H++)this.T[H]^=92,this.G[H]^=54;this.reset()}; caw=function(){this.D=[];this.L=null;this.W={};this.G={}}; v2s=function(H){return Xn(H.slot,H.Da.get())?new k2(H):new kB(H)}; yaM=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u){for(var v=0,n="",O=g.R(H),q=O.next();!q.done;q=O.next())q=q.value,n||(n=q.itag),q.audioChannels&&q.audioChannels>v&&(v=q.audioChannels,n=q.itag);Q=new T0(Q,"application/x-mpegURL",{audio:new ad(0,v),video:new bd(e,w,t,null,void 0,W,void 0,void 0,m),QF:A,Ft:n});H=new NNn(H,E,G?[G]:[],P,!!u);H.D=I?I:1369843;return new WE(Q,H,k)}; I5=function(H,E){if(!E.L.L)return H.T?new Jv(0,360,!1,"b"):q3;for(var G=!1,P=!1,Q=g.R(E.L.videoInfos),e=Q.next();!e.done;e=Q.next())GV(e.value)?G=!0:P=!0;G=G&&P;P=0;Q=g.hE(H.X.experiments,"html5_performance_cap_floor");Q=H.X.W?240:Q;E=g.R(E.L.videoInfos);for(e=E.next();!e.done;e=E.next()){var w=e.value;if(!G||!GV(w))if(e=wT(w.K_,w.video.fps,H.G),w=w.video.qualityOrdinal,Math.max(e,Q)>=w){P=w;break}}return new Jv(0,P,!1,"b")}; g.$_=function(H){return!!H.L&&bZn(H.L)}; iZU=function(H,E,G,P,Q){A9.call(this,"banner-image",H,E,G,P,Q)}; qEU=function(H,E,G){var P=g.Gm(H.provider);VNt(H,P,E,0,G);At(H,P);KK(H)}; rau=function(H,E,G,P,Q){var e=window;var w=w===void 0?!1:w;var t;G?t=(w===void 0?0:w)?"//ep1.adtrafficquality.google/bg/"+YD(G)+".js":"//pagead2.googlesyndication.com/bg/"+YD(G)+".js":t="";w=w===void 0?!1:w;G=e.document;var k={};E&&(k._scs_=E);k._bgu_=t;k._bgp_=P;k._li_="v_h.3.0.0.0";Q&&(k._upb_=Q);(E=e.GoogleTyFxhY)&&typeof E.push=="function"||(E=e.GoogleTyFxhY=[]);E.push(k);E=PD(G).createElement("SCRIPT");E.type="text/javascript";E.async=!0;H=(w===void 0?0:w)?g.Pa(RAv,YD(H)+".js"):g.Pa(Jad,YD(H)+ ".js");g.sN(E,H);(e=(e.GoogleTyFxhYEET||{})[E.src])?e():G.getElementsByTagName("head")[0].appendChild(E)}; XNd=function(H){if(H.S.isEmbedsShortsMode())return!1;H=H.S;var E=H.K();if(E.G)return!1;var G;if(((G=E.getWebPlayerContextConfig())==null?0:G.embedsEnableEmc3ds)||E.controlsType==="3")return!1;if(E.playerStyle==="creator-endscreen-editor")return!0;G=H.getVideoData();return!!G&&(!!g.BN7(G)||!!g.YEM(G))}; ZZl=function(H,E,G,P){A9.call(this,"player-overlay-layout",H,{},G,P);this.videoAdDurationSeconds=E;this.interactionLoggingClientData=P}; qp=function(H){return H?H.Uv():!1}; g.X=function(H,E){if(H)return H[E.name]}; CPn=function(H){return{Cp:zb(H,1),action:hU(H,2),xm:$M(H,3,lY1)}}; eq=function(){if(!g.lU.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return g.lU.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":g.lU.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":g.lU.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":g.lU.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(H){return"WEB_DISPLAY_MODE_UNKNOWN"}}; g.ge1=function(H){var E=xNw();E&&(H=JSON.stringify(H),E.set("yt-player-lv",H))}; g.U=function(H,E,G){H.L=G;return{value:E}}; ld7=function(H,E){return H?E?xLw():ck():E?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:LQQ()}; UY1=function(H,E,G,P,Q,e,w,t){t=t===void 0?!1:t;if(E.cK&&w&&w.length>1&&!(E.lV>0||E.N)){for(var k=E.W||!!Q,W=k&&E.jT?e:void 0,I=tvd(E,P),A=[],m=[],u={},v=0;v1){G=pe(H,E.G,!0);for(var P=0,Q=0;Q0&&(P+=H.L[Q].width,P+=ND(H));G=(H.L[G].startTime+(E.G-P)/H.L[G].width*((G===H.L.length-1?H.G.L*1E3:H.L[G+1].startTime)-H.L[G].startTime))/1E3||0}return G}; JT=function(H,E){var G=g.sj(E),P;return(new g.El(function(Q,e){G.onSuccess=function(w){g.dw(w)?Q(new pNw(w)):e(new Ia("Request failed, status="+bj(w),"net.badstatus",w))}; G.onError=function(w){e(new Ia("Unknown request error","net.unknown",w))}; G.onTimeout=function(w){e(new Ia("Request timed out","net.timeout",w))}; P=g.a2(H,G)})).KW(function(Q){if(Q instanceof DH){var e; (e=P)==null||e.abort()}return R6(Q)})}; nP=function(H,E,G,P,Q,e){Xm.call(this,H,E,G,P);this.SR=Q;this.aq=e;this.Zr=!0;IS(this.aq(),this);H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; Hcw=function(H){H.isChecked=H.isChecked;H.HF("ytp-autonav-toggle-button").setAttribute("aria-checked",String(H.isChecked));var E=H.isChecked?"Autoplay is on":"Autoplay is off";H.S.K().U("player_tooltip_data_title_killswitch")?H.update({title:E,label:E}):H.update({"data-tooltip-title":E,label:E});H.S.aP()}; g.d3=function(H,E){EO1.apply(null,[5,H instanceof g.Pj?H.tag:H,E].concat(g.EC(g.c4.apply(2,arguments))))}; a5=function(H){var E=Zg(!0);return E&&(E===H.template.element||H.mediaElement&&E===H.mediaElement.E2())?E:null}; g.Oz=function(H){return zU(H)==="shortspage"}; jzt=function(H){g.kn(H.L,function(E){E.L>1E5||++E.L})}; b3q=function(H,E){var G="";(E=nbU(H,E))&&(G=E.getId());return G?H.L.EQ({cpn:G}):void 0}; G0M=function(H,E){function G(){var P=g.c4.apply(0,arguments);H.removeEventListener("playing",G);E.apply(null,g.EC(P))} H.addEventListener("playing",G)}; m$v=function(H,E){TV(H,E)||eN(H,"childPlaybackIsNotPresenting");return E.gV===E.HO+E.durationMs?E.HO+H.app.jR().getCurrentTime()*1E3:E.gV}; hu=function(){KP||(KP=new SRw);return KP}; Wp=function(H){g.h3(H)}; Pju=function(H,E,G){if(!H.ew||H.Vm==-1||E.W===-1||H.ew.W===-1)return 0;H=E.W-H.ew.W;return H>G?0:H}; sJ=function(){var H=d5n();return!(!H||H==="visible")}; Bpw=function(H,E){if(H.loader.isSeeking())return E;var G=H.Fo.xt();if(!G)return E;G=G.AK();if(G.length===0||jz(G,E))return E;if(!H.videoTrack.z9(E)&&!H.audioTrack.z9(E))return H.loader.g5("sundrn",{b:0,lt:E}),E;for(var P=E,Q=Infinity,e=0;eE)){var w=E-G.end(e);w=20)?(H.loader.handleError("player.exception",{reason:"bufferunderrunexceedslimit"}),E):P}; bT=function(){var H=arguments,E=lY;H.length>1?E[H[0]]=H[1]:H.length===1&&Object.assign(E,H[0])}; Q8U=function(){var H;return(H=g.pr("yt-player-audio-quality-setting"))!=null?H:2}; Yf=function(H,E){this.X=H;this.timerName="";this.G=!1;this.W=NaN;this.D=new Fuq;this.L=E||null;this.G=!1}; bdM=function(H){var E=["o","a","A"];H.O7===1&&(H.D&&(E=["mac3","MAC3"].concat(E)),H.T&&(E=["meac3","MEAC3"].concat(E)),H.V8&&(E=["i","I"].concat(E)));H.p_&&(E=["so","sa"].concat(E));!H.WO||H.T$||H.G||H.qC||E.unshift("a");H.G&&(E=(s8l[H.G]||[H.G]).concat(E));return E}; y4=function(H,E,G,P,Q,e,w,t,k){return YL(G,lmu())||G.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.X(G.renderingContent,Dy)!==void 0?new C3(H,E,G,P,Q,e,w,t,k):YL(G,{LS:["metadata_type_player_overlay_layout_renderer","metadata_type_player_bytes_callback","metadata_type_linked_player_bytes_layout_id","METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"],yF:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})||G.layoutType==="LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"&&g.X(G.renderingContent,nA)!==void 0? new jW(H,E,G,P,Q,e,w,t,k):YL(G,oOU())||G.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.X(G.renderingContent,M3)!==void 0?new jZ(H,E,G,P,e):YL(G,evw())?new cE(E,G,H,P,Q,k):YL(G,{LS:["metadata_type_instream_ad_player_overlay_renderer"],yF:["LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY"]})?new N8(H,E,G,P,Q,t):G.layoutType==="LAYOUT_TYPE_ENDCAP"&&g.X(G.renderingContent,dz)!==void 0?new pK(H,E,G,P,e):null}; eSM=function(H){if(H.L)return H.L;if(H.experimentIds.length<=1)return H.L=H.experimentIds,H.L;var E=[].concat(g.EC(H.experimentIds)).map(function(P){return Number(P)}); E.sort();for(var G=E.length-1;G>0;--G)E[G]-=E[G-1];H.L=E.map(function(P){return P.toString()}); H.L.unshift("v1");return H.L}; XZU=function(H,E){try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(H,E===void 0?"":E))return!0}catch(G){}return!1}; wxt=function(H){H=g.mS(H);return H!==null?H.split(".").reverse():null}; hvl=function(H,E,G,P){return ZY().G?!1:Nl(H)<=0||H.getHeight()<=0?!0:G&&P?V_Q(208,function(){return a9l(H,E,G)}):!1}; $h1=function(H,E){var G=H.AC();if(G){var P=G.Za().layoutId,Q=H.P$()+1;H.XV()?bS(H,G,E):G.Ka(G.Za(),E);Q>=0&&Q127;)H.L.push(E&127|128),E>>>=7;H.L.push(E)}; ZW=function(H){var E,G;return(G=(E=H.Fo.xt())==null?void 0:E.getCurrentTime())!=null?G:H.Fo.getCurrentTime()}; DhU=function(H){var E=[];H.L.forEach(function(G){G=g.R(G.values());for(var P=G.next();!P.done;P=G.next())E.push(P.value.slot)}); return E}; nOq=function(H){var E=g.mO("html5-video-player");E&&g.Bt(E,"ytp-ad-display-override",H)}; aLv=function(){this.D=this.L=this.G=this.W=this.T=0}; WE=function(H,E,G){this.L=H;this.W=E;this.expiration=G;this.Du=null}; Oc7=function(H,E){E.sort(function(G,P){return G.toString().localeCompare(P.toString(),H.lJ.hostLanguage)})}; Yi=function(){return g.Un("yt.gcf.config.hotConfigGroup")}; Tkn=function(H){H=Object.keys(H);H=g.R(H);for(var E=H.next();!E.done;E=H.next())if(E=E.value,RPd[E])return E}; rf=function(){}; HdU=function(H,E,G){var P;(P=H.app.UR().T[E.clientPlaybackNonce]||null)==null||P.dispose();E=new L9(H,E,H.playback,G/1E3);H.E7.set(E.Yz(),E);H.app.UR().T[E.Yz()]=E}; K5u=function(H){H.W&&(H.W.dispose(),H.W=void 0)}; ciu=function(H,E,G,P,Q,e){P=P===void 0?[]:P;var w=qo(H.W.get(),E);if(w){var t=H.im.get().Z5(E,G),k=RD(H,ru(w),w,Q,e);P.forEach(function(W,I){W.baseUrl&&(H.G.send(W.baseUrl,k,t,W.attributionSrcMode),W.serializedAdPingMetadata&&H.cT.B5("ADS_CLIENT_EVENT_TYPE_PING_DISPATCHED",void 0,void 0,void 0,void 0,w,new j8Q(W,I),void 0,void 0,w.adLayoutLoggingData))})}else xQ("Trying to track from an unknown layout.",void 0,void 0,{layoutId:E, trackingType:G})}; lS=function(H){H.T.textContent=LP(H,H.L)+"x"}; btv=function(H,E,G){H=new tt(H.L);H.update(E);H.update(G);E=Bql(H);H.update(H.T);H.update(E);E=Bql(H);H.reset();return E}; o2=function(H,E){J2.call(this,H,E);this.T$=!0;this.Jm=!1;this.eR=this.z$=0;this.Yp=NaN}; N41=function(){return{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}}; Asu=function(H){H=o0d(H);var E=H[0].Bj;if(H=H[1]){var G=Iq(H),P=w_(hg,$7,tg,H).BM;return function(Q,e,w){return E(Q,e,w,P,G)}}return E}; bcv=function(H,E,G){if(H.wG())return"qie";if(H.L==null||H.L.Iu()||H.L.getVideoData()==null)return"qpd";if(E.videoId!==H.L.mj())return"vinm";if(yiw(H)<=0)return"ivd";if(G!==1)return"upt";if((G=H.G)==null)H=void 0;else if(G.getStatus().status!==5)H="niss";else if(Qt(G.policy,G.L,G.W,G.tD)!=null)H="pge";else{E=QY(G);H=E.jc;var P=E.gK;E=g.hE(G.O9.K().experiments,"html5_shorts_gapless_next_buffer_in_seconds");var Q=G.C+E;G.O9.K().experiments.xp("html5_pseudogapless_shorts")&&(Q=Gi(G).Lg+E);G=jz(P.qV(), Q);H=jz(H.qV(),Q);H=!(E>0)||G&&H?null:"neb"}return H!=null?H:null}; var icl=function(H,E){return I0[h[7]](this,2,H,E)}; Aw=function(){Uz.apply(this,arguments)}; Xf=function(H,E,G,P){P=P===void 0?!1:P;oq.call(this,H);this.NS=G;this.Kv=P;this.args=[];E&&this.args.push(E)}; dI=function(H,E){var G=E.L7,P=E.Lv.t$,Q=E.Lv.O6,e=E.Lv.RB,w,t=-1;H.SE=0;H.sf=573;for(w=0;w>1;w>=1;w--)xB(H,G,w);k=e;do w=H.Tq[1],H.Tq[1]=H.Tq[H.SE--],xB(H,G,1),P=H.Tq[1],H.Tq[--H.sf]=w,H.Tq[--H.sf]=P,G[k*2]=G[w*2]+G[P*2],H.depth[k]=(H.depth[w]>=H.depth[P]?H.depth[w]:H.depth[P])+1,G[w*2+1]=G[P*2+1]=k,H.Tq[1]=k++,xB(H,G,1);while(H.SE>= 2);H.Tq[--H.sf]=H.Tq[1];w=E.L7;k=E.AZ;P=E.Lv.t$;Q=E.Lv.O6;e=E.Lv.SB;var W=E.Lv.tS,I=E.Lv.KZ7,A,m=0;for(A=0;A<=15;A++)H.gx[A]=0;w[H.Tq[H.sf]*2+1]=0;for(E=H.sf+1;E<573;E++){var u=H.Tq[E];A=w[w[u*2+1]*2+1]+1;A>I&&(A=I,m++);w[u*2+1]=A;if(!(u>k)){H.gx[A]++;var v=0;u>=W&&(v=e[u-W]);var n=w[u*2];H.sY+=n*(A+v);Q&&(H.nt+=n*(P[u*2+1]+v))}}if(m!==0){do{for(A=I-1;H.gx[A]===0;)A--;H.gx[A]--;H.gx[A+1]+=2;H.gx[I]--;m-=2}while(m>0);for(A=I;A!==0;A--)for(u=H.gx[A];u!==0;)P=H.Tq[--E],P>k||(w[P*2+1]!==A&&(H.sY+=(A- w[P*2+1])*w[P*2],w[P*2+1]=A),u--)}FkM(G,t,H.gx)}; g.zh=function(H,E,G){H=H.L.createObjectStore(E,G);return new Ce(H)}; ggj=function(H){var E;return H==null?void 0:(E=H.activeViewTracking)==null?void 0:E.identifier}; QQ=function(H,E){return H.lastIndexOf(E,0)==0}; Uz=function(){this.L=new WeakMap}; q2s=function(H,E){var G=g.DB(H,0,1952868452);H=g.DB(H,0,1953658222);if(G&&H){G.skip(1);var P=j7(G)<<16|nh(G);G.skip(4);P&1&&G.skip(8);P&2&&G.skip(4);if(P&8){P=G.L;var Q=ae(G);G.data.setUint32(G.offset+P,E>1?Math.ceil(Q*E):Math.floor(Q*E))}H.skip(1);G=j7(H)<<16|nh(H);if(G&256){P=G&1;Q=G&4;var e=G&512,w=G&1024,t=G&2048;G=ae(H);P&&H.skip(4);Q&&H.skip(4);P=(e?4:0)+(w?4:0)+(t?4:0);for(Q=0;Q1?Math.ceil(w*E):Math.floor(w*E)),H.skip(P)}}}; h2v=function(){return g.L(function(H){return g.U(H,gpn("ytGcfConfig"),0)})}; Th=function(H){var E,G=(E=H.config)==null?void 0:E.adPlacementConfig;H=H.renderer;return!(!G||G.kind==null||!H)}; Kl=function(H){return H.S.K().experiments.xp("html5_preload_ads")}; Rvt=function(H){if(H.range)return H.G;H=H.kp[0];return Math.round(H.B*H.uJ.info.Xo)}; x6=function(){return(jX||cD)&&N2?!N2.mobile&&(ih("iPad")||ih("Android")||ih("Silk")):ih("iPad")||ih("Android")&&!ih("Mobile")||ih("Silk")}; SZ=function(H){V4.call(this,function(){return H}); this.G=H}; tLU=function(H){H=wxt(H);return H===null?!1:H[1]==="google"?!0:H[2]==="google"?H[0]==="au"&&H[1]==="com"?!0:H[0]==="uk"&&H[1]==="co"?!0:!1:!1}; lyQ=function(H){H.G&&g.au(H.G);H.D&&g.au(H.D)}; sS=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){G=G.value;var P=G[1];G[0]===1?H.B(g.Ya(P.namespace),P):H.B(g.XT(P.namespace),P)}}; FS=function(H,E,G){return new g.cP(H*1E3,E*1E3,{priority:9,namespace:G})}; Jit=function(H){var E=dH(H,!0);return pE(ZA(H,E))}; fP=function(H){g.J.call(this);this.L=H;this.Q8=new Map}; hEv=function(H,E,G){return E?E.map(function(P){return P instanceof HG?Ob(H,P.key,G,!0):Ob(H,P,G)}):[]}; zfd=function(H,E){var G=0,P=!1,Q=H.L.length,e=H.G.L*1E3;e===0&&(e=H.api.getProgressState().seekableEnd*1E3);if(e>0&&H.C>0){for(var w=H.C-ND(H)*H.T$,t=H.dP===0?3:w*H.dP,k=g.R(H.L),W=k.next();!W.done;W=k.next())W.value.width=0;for(;G1);W=(e===0?0:k/e*w)+H.L[G].width;if(W>t)H.L[G].width=W;else{H.L[G].width=0;var I=H,A=G,m=I.L[A-1];m!==void 0&&m.width>0? m.width+=W:AH.dP&&(H.dP=k/e),P=!0)}G++}}return P}; pP=function(H){return!H.keySystemAccess&&!!Qa()&&H.keySystem==="com.apple.fps.1_0"}; ri7=function(H,E){var G=H.subarray(4);G=new Uint16Array(G.buffer,G.byteOffset,G.byteLength/2);G=String.fromCharCode.apply(null,G).match(/ek=([0-9a-f]+)/)[1];for(var P="",Q=0;Q0?E:null}; d$=function(H){H.W=!1;var E={};H.L&&H.videoId&&(E.cttAuthInfo={token:H.L,videoId:H.videoId});B2("ad_to_video",E);gOs(H)}; ZBM=function(H){return H.L.cmodel==="CHROMECAST ULTRA/STEAK"||H.L.cmodel==="CHROMECAST/STEAK"}; gOs=function(H){if(H.G)if(H.D==="AD_PLACEMENT_KIND_START"&&H.actionType==="video_to_ad")jb("video_to_ad");else{var E={adBreakType:Z2(H.D),playerType:"LATENCY_PLAYER_HTML5",playerInfo:{preloadType:"LATENCY_PLAYER_PRELOAD_TYPE_PREBUFFER"},videoStreamType:H.videoStreamType};H.actionType==="ad_to_video"?(H.contentCpn&&(E.targetCpn=H.contentCpn),H.videoId&&(E.targetVideoId=H.videoId)):(H.adCpn&&(E.targetCpn=H.adCpn),H.adVideoId&&(E.targetVideoId=H.adVideoId));H.adFormat&&(E.adType=H.adFormat);H.contentCpn&& (E.clientPlaybackNonce=H.contentCpn);H.videoId&&(E.videoId=H.videoId);H.adCpn&&(E.adClientPlaybackNonce=H.adCpn);H.adVideoId&&(E.adVideoId=H.adVideoId);g.Qn(E,H.actionType);H.S.K().experiments.xp("html5_ads_csi_qoes")&&(E=H.S.sB(H.actionType==="ad_to_video"?1:2),E=(0,g.ON)()-1E3*E,i1("qoes",E,H.actionType))}}; hf=function(H){var E=[],G=0,P;for(P in H)E[G++]=H[P];return E}; CH=function(H){var E=H.api.K().U("enable_linear_program_progress"),G=H.api.getPresentingPlayerType()===2;return H.iZ&&!Zw(H)&&(!E||!H.W)&&!G}; ec=function(H,E,G){H.L&&(HV(H.L,E),E=H.L,H.L=null);for(var P=0,Q=0,e=g.R(H.kp),w=e.next();!w.done;w=e.next())if(w=w.value,w.range&&P+w.W<=H.W)P+=w.W;else{if(PX(w)&&!G&&H.W+E.totalLength-Q>>0}; VEQ=function(H,E){E=E===void 0?H.K().schedule:E;H.QG("vir");H.QG("ps_s");Ld("vir",void 0,"video_to_ad");E=PNu(H,E);E.then(function(){H.QG("virc");Ld("virc",void 0,"video_to_ad");H.QG("ps_r");Ld("ps_r",void 0,"video_to_ad")},function(){H.QG("virc"); Ld("virc",void 0,"video_to_ad")}); return E}; fLq=function(H,E,G,P,Q,e,w,t){Q=Q===void 0?G.schedule:Q;var k,W,I;return g.L(function(A){if(A.L==1)return k=g.Z8(H,Cy),g.U(A,S27(E,k),2);if(A.L!=3)return W=A.W,g.U(A,F5d(E,W),3);I=A.W;return A.return(gW({un:W,V$:I},E,G,P,!!H.Dg,Q,e,w,t))})}; mZ=function(H){var E=H.getStatus();a:switch(E){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var G=!0;break a;default:G=!1}if(!G){if(E=E===0)H=g.AL(String(H.N))[1]||null,!H&&g.lU.self&&g.lU.self.location&&(H=g.lU.self.location.protocol.slice(0,-1)),E=!pxT.test(H?H.toLowerCase():"");G=E}return G}; zMQ=function(H,E,G,P,Q,e,w,t,k,W,I){H=v7u(H,E,"core",G,P,Q,e,w,t,k,W,void 0,I);return{layoutId:H.layoutId,layoutType:H.layoutType,w5:H.w5,layoutExitNormalTriggers:H.layoutExitNormalTriggers,layoutExitSkipTriggers:H.layoutExitSkipTriggers,layoutExitMuteTriggers:H.layoutExitMuteTriggers,layoutExitUserInputSubmittedTriggers:H.layoutExitUserInputSubmittedTriggers,layoutExitUserCancelledTriggers:H.layoutExitUserCancelledTriggers,f_:H.f_,clientMetadata:new ZN(H.Tj),O2:H.O2,adLayoutLoggingData:H.adLayoutLoggingData}}; H9s=function(){try{var H,E;return!!((H=window)==null?0:(E=H.top)==null?0:E.location.href)&&!1}catch(G){return!0}}; kV=function(){this.OT=0;this.L=!1;this.W=-1;this.Mo=!1;this.ju=0}; yiw=function(H){var E;return((E=H.G)==null?void 0:E.currentVideoDuration)||-1}; EKs=function(H){for(var E=g.R(H.eq),G=E.next();!G.done;G=E.next()){var P=g.R(G.value);G=P.next().value;P=P.next().value;P.G_||vs(H,G)}}; g.kf=function(H,E){return H.L?H.L.getResponseHeader(E):null}; g.HL=function(H){return document.createTextNode(String(H))}; RSs=function(H){return Gdt(H).map(function(E){return{deviceInterface:Pdt[Qxq[E.lD]]||0,deviceVersion:E.deviceVersion||"",isSleeping:E.Y6}})}; var sxl=function(H,E,G,P,Q,e,w,t,k){return RT[h[7]](this,9,H,E,G,P,Q,e,w,t,k)}; oKT=function(H,E){return E?!!H.L.get(E):!1}; lP=function(){this.B=!1;this.D=null;this.W=void 0;this.L=1;this.T=this.C=0;this.L_=this.G=null}; pLM=function(H){var E=f2(X9().b4,"sneio")==1,G=H.W.zP.AFMA_LIDAR_EXP_1!==void 0,P=H.W.zP.AFMA_LIDAR_EXP_2!==void 0;(E=E&&P)&&(H.W.zP.AFMA_LIDAR_EXP_2=!0);G&&(H.W.zP.AFMA_LIDAR_EXP_1=!E)}; BY=function(H,E){return E===void 0||E===null?H:E==="1"||E===!0||E===1||E==="True"?!0:!1}; eOl=function(H){if(!H||!H.adPlacements&&!H.adSlots)return!1;for(var E=g.R(H.adPlacements||[]),G=E.next();!G.done;G=E.next())if(G=G.value)if(G=G.adPlacementRenderer,G!=null&&(G.config&&G.config.adPlacementConfig&&G.config.adPlacementConfig.kind)==="AD_PLACEMENT_KIND_START")return!0;H=g.R(H.adSlots||[]);for(E=H.next();!E.done;E=H.next()){var P=G=void 0;if(((G=g.X(E.value,uI))==null?void 0:(P=G.adSlotMetadata)==null?void 0:P.triggerEvent)==="SLOT_TRIGGER_EVENT_BEFORE_CONTENT")return!0}return!1}; Ozd=function(H){var E=Yg(H.Fr.OT,2),G=H.eA.G,P=H.Fr,Q=n9(H),e=dK(Q.D),w=dK(Q.C),t=dK(P.volume),k=Yg(Q.B,2),W=Yg(Q.WF,2),I=Yg(P.OT,2),A=Yg(Q.Jm,2),m=Yg(Q.PF,2);P=Yg(P.ju,2);var u=H.OC().clone().round();H=H.oM&&H.oM.G?(H.oM?H.oM.G:null).clone().round():null;Q=Md(Q,!1);return{WBN:E,wN:G,aI:e,jw:w,bF:t,VV:k,yV:W,OT:I,sX:A,xU:m,ju:P,position:u,Zc:H,q0:Q}}; whu=function(H){return new jf(H.type,H.uJ,H.range,"getEmptyStubAfter"+H.C,H.U7,H.startTime+H.duration,0,H.L+H.W,0)}; nGv=function(H,E){var G=H.yu,P=Ir(H);G!==void 0?(E.Eq=G.Eq,G.Eq=E):(E.Eq=void 0,H.Bm=E);E.qx=G;H.yu=E;if(!P)for(H=H.producers;H!==void 0;H=H.TJ)nGv(H.pH,H)}; hOw=function(H){g.D.call(this,{J:"div",Y:"ytp-shorts-title-channel",V:[{J:"a",Y:"ytp-shorts-title-channel-logo",j:{href:"{{channelLink}}",target:H.K().L_,"aria-label":"{{channelLogoLabel}}"}},{J:"div",Y:"ytp-shorts-title-expanded-heading",V:[{J:"div",Y:"ytp-shorts-title-expanded-title",V:[{J:"a",iJ:"{{expandedTitle}}",j:{href:"{{channelTitleLink}}",target:H.K().L_,tabIndex:"0"}}]}]}]});var E=this;this.api=H;this.L=this.HF("ytp-shorts-title-channel-logo");this.channelName=this.HF("ytp-shorts-title-expanded-title"); this.subscribeButton=null;H.createClientVe(this.L,this,36925);this.Z(this.L,"click",function(G){E.api.logClick(E.L);g.Wd(window,wol(E));G.preventDefault()}); H.createClientVe(this.channelName,this,37220);this.Z(this.channelName,"click",function(G){E.api.logClick(E.channelName);g.Wd(window,wol(E));G.preventDefault()}); mYn(this);this.Z(H,"videodatachange",this.r5);this.Z(H,"videoplayerreset",this.r5);this.r5()}; DNj=function(H,E){H.showShareButton=!!E;var G,P,Q=((G=g.X(E,g.rI))==null?void 0:G.navigationEndpoint)||((P=g.X(E,g.rI))==null?void 0:P.command);Q&&(H.yA=!!g.X(Q,$dQ))}; zDt=function(H,E,G,P){P=P===void 0?{}:P;H.W.add(P.layer||0);H.D=function(){Tsw(H,E,G,P);var w=g.X3(P.layer);if(w){for(var t=g.R(H.B),k=t.next();!k.done;k=t.next())k=k.value,Yw(H,k[0],k[1]||w,P.layer);w=g.R(H.N);for(t=w.next();!t.done;t=w.next())t=t.value,tR7(H,t[0],t[1])}}; G||g.ri(P.layer)||H.D();if(P.XU)for(var Q=g.R(P.XU),e=Q.next();!e.done;e=Q.next())kdu(H,e.value,P.layer);else g.h3(Error("Delayed screen needs a data promise."))}; iRt=function(H,E,G){if(sE){var P;XK(H.mediaElement,{l:"mswssb",sr:(P=H.mediaElement.Fo)==null?void 0:P.u8()},!1);E.QY(H.B,H);G.QY(H.B,H)}H.L=E;H.W=G;g.d(H,E);g.d(H,G)}; g.IK=function(H,E){Ut.get(H);Ut.set(H,E)}; g.Wz7=function(H){var E={client:{hl:H.Lh,gl:H.FS,clientName:H.wY,clientVersion:H.innertubeContextClientVersion,configInfo:H.P0}};navigator.userAgent&&(E.client.userAgent=String(navigator.userAgent));var G=g.lU.devicePixelRatio;G&&G!=1&&(E.client.screenDensityFloat=String(G));G=Uy();G!==""&&(E.client.experimentsToken=G);G=xG();G.length>0&&(E.request={internalExperimentFlags:G});qUU(H,void 0,E);RsU(void 0,E);J8M(void 0,E);r8w(H,void 0,E);Bxu(void 0,E);g.Xj("start_client_gcf")&&YUM(void 0,E);g.tJ("DELEGATED_SESSION_ID")&& !g.Xj("pageid_as_header_web")&&(E.user={onBehalfOfUser:g.tJ("DELEGATED_SESSION_ID")});!g.Xj("fill_delegate_context_in_gel_killswitch")&&(H=g.tJ("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(E.user=Object.assign({},E.user,{serializedDelegationContext:H}));H=g.tJ("INNERTUBE_CONTEXT");var P;if(g.Xj("enable_persistent_device_token")&&(H==null?0:(P=H.client)==null?0:P.rolloutToken)){var Q;E.client.rolloutToken=H==null?void 0:(Q=H.client)==null?void 0:Q.rolloutToken}P=Object;Q=P.assign;H=E.client; G={};for(var e=g.R(Object.entries(W9(g.tJ("DEVICE","")))),w=e.next();!w.done;w=e.next()){var t=g.R(w.value);w=t.next().value;t=t.next().value;w==="cbrand"?G.deviceMake=t:w==="cmodel"?G.deviceModel=t:w==="cbr"?G.browserName=t:w==="cbrver"?G.browserVersion=t:w==="cos"?G.osName=t:w==="cosver"?G.osVersion=t:w==="cplatform"&&(G.platform=t)}E.client=Q.call(P,H,G);return E}; Nh=function(H){for(var E=0,G=H.L,P=G+10,Q=H.W;G=Q.D?(Q.g5("sdai",{haltrq:e+1,est:Q.D}),P=!1):P=Q.W!==2;if(!P||!dj(E.L?E.L.uJ.Du:E.uJ.Du,H.policy,H.D,H.loader.wW)||H.loader.isSuspended&&(!Dl(H.schedule)||H.loader.Rp))return!1;if(H.policy.D&&uZ>=5)return g.J3(H.loader.CK),!1;if(H.ou.isManifestless){if(E.W.length>0&&E.L&&E.L.U7===-1||E.W.length>=H.policy.e2||!H.policy.pw&&E.W.length>0&&!H.policy.N.Gc)return!1;if(E.C)return!H.ou.isLive|| !isNaN(H.RP)}if(vK7(E))return!1;if(!E.L){if(!E.uJ.Dr())return!1;OB(E,H.loader.getCurrentTime())}if(lQ(E)&&(E.Hy()!==lQ(E)||H.loader.isSuspended))return!1;Q=(P=H.policy.v_)&&!E.W.length&&R8(E,!0)=H.policy.CU)return!1;P=E.L;if(!P)return!0;P.type===4&&P.uJ.Dr()&&(E.L=g.Q3(P.uJ.PS(P)),P=E.L);if(!P.Uv()&&!P.uJ.Zv(P))return!1;e=H.ou.tT||H.ou.D;if(H.ou.isManifestless&& e){e=E.uJ.index.vO();var w=G.uJ.index.vO();e=Math.min(e,w);if(E.uJ.index.t0()>0&&e>0&&P.U7>=e)return E.E7=e,G.E7=e,!1}if(P.uJ.info.audio&&P.type===4||P.Uv())return!1;e=!E.D&&!G.D;if(Q=!Q)Q=P.T,Q=!!(G.L&&!qp(G.L)&&G.L.TPbu(H,E)?(Pbu(H,E),!1):(H=E.rP)&&H.isLocked()?!1:!0}; EI=function(H){for(var E=[],G=g.R(H),P=G.next();!P.done;P=G.next())P=P.value,E[P]||(E[P]=0),E[P]++;var Q=E[0]=0;G=[];var e=0;P=0;for(var w=1;w7&&(e+=E[w]);for(Q=1;Q>k&1;t=e<<4|w;if(w<=7)for(k=1<<7-w;k--;)P[k<>=7;w--;){P[k]||(P[k]=-E,E+=2);var W=Q&1;Q>>=1;k=W-P[k]}P[k]=t}}return P}; bEj=function(H){var E;(E=!H)||(E=H.adSlotMetadata,E=!((E==null?void 0:E.slotId)!==void 0&&(E==null?void 0:E.slotType)!==void 0));if(E||!(p9U(H)||H.slotEntryTrigger&&H.slotFulfillmentTriggers&&H.slotExpirationTriggers))return!1;var G;H=(G=H.fulfillmentContent)==null?void 0:G.fulfilledLayout;return(G=g.X(H,Z9))?Cm(G):(G=g.X(H,F9))?R0T(G):(G=g.X(H,Evs))?Jgn(G):(G=g.X(H,YqM))?XKQ(G):(G=g.X(H,Cxq))?TN(G.adLayoutMetadata)?g.X(G.renderingContent,L1)?!0:!1:!1:(G=g.X(H,lb))?Sa(G):(H=g.X(H,r2U))?TN(H.adLayoutMetadata)? g.X(H.renderingContent,gG)?!0:!1:!1:!1}; vd=function(H,E,G){H.state.L.hasOwnProperty(E)||We(H,E,G);H.app.K().N&&(H.state.N[E]=function(){return G.apply(H,g.c4.apply(0,arguments))},H.state.C.add(E))}; tg1=function(H,E,G,P){P=P===void 0?{}:P;H.addEventListener&&(E!="mouseenter"||"onmouseenter"in document?E!="mouseleave"||"onmouseenter"in document?E=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(E="MozMousePixelScroll"):E="mouseout":E="mouseover");return e3(p_,function(Q){var e=typeof Q[4]==="boolean"&&Q[4]==!!P,w=g.rW(Q[4])&&g.rW(P)&&g.aP(Q[4],P);return!!Q.length&&Q[0]==H&&Q[1]==E&&Q[2]==G&&(e||w)})}; ULQ=function(){return{J:"svg",j:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 0 48 48",width:"100%"},V:[{J:"path",j:{d:"M0 0h48v48H0z",fill:"none"}},{J:"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"}}]}}; ddv=function(H,E){var G=E.totalLength,P=!1;switch(H.G){case 0:H.RK(E,H.D).then(function(Q){var e=H.Te;e.QG("oprr");e.playerResponse=Q;e.FW||(e.X1=!1);m3(e)},function(Q){H.Te.fail(Q)}); break;case 2:H.QG("ormk");E=vA(E);H.queue.decrypt(E);break;default:P=!0}H.Te.V6&&H.Te.g5("ombup","id.11;pt."+H.G+";len."+G+(P?";ignored.1":""));H.G=null}; aAn=function(H){var E=Ddv(H);if(E.binP)return E.binP;E.binP=Promise.resolve().then(function(){return fetch(H)}).then(function(G){if(!G.ok)throw Error("HTTP"+G.statusText); return G.arrayBuffer()}); E.binP.then(function(G){E.bin=G},function(){nKT(H)}); return E.binP}; t8=function(){this.L=new Map}; O9M=function(H){var E=g.DB(H,0,1937011556);if(!E)return null;var G=H.getUint32(E.dataOffset+12);if(G!==1701733217&&G!==1701733238)return null;E=Ph(H,E.offset+24+(G===1701733217?28:78),1936289382);if(!E)return null;G=Ph(H,E.offset+8,1935894637);if(!G||H.getUint32(G.offset+12)!==1667392371)return null;E=Ph(H,E.offset+8,1935894633);if(!E)return null;E=Ph(H,E.offset+8,1952804451);if(!E)return null;G=new Uint8Array(16);for(var P=0;P<16;P++)G[P]=H.getInt8(E.offset+16+P);return G}; jxv=function(H,E){var G=4320;!H.X.W||g.nb(H.X)||H.X.U("hls_for_vod")||H.X.U("mweb_remove_360p_cap")||(G=g.lF.medium);var P=g.hE(H.X.experiments,"html5_default_quality_cap");P&&E.L.L&&(H.X.U("html5_always_apply_default_quality_cap")||!E.videoData.qI&&!E.videoData.QF)&&(G=Math.min(G,P));P=g.hE(H.X.experiments,"html5_random_playback_cap");var Q=/[a-h]$/;P&&Q.test(E.videoData.clientPlaybackNonce)&&(G=Math.min(G,P));if(Q=P=g.hE(H.X.experiments,"html5_hfr_quality_cap"))a:{Q=E.L;if(Q.L){Q=g.R(Q.videoInfos); for(var e=Q.next();!e.done;e=Q.next())if(e.value.video.fps>32){Q=!0;break a}}Q=!1}Q&&(G=Math.min(G,P));(P=g.hE(H.X.experiments,"html5_live_quality_cap"))&&E.videoData.isLivePlayback&&(G=Math.min(G,P));G=Kzs(H,E,G);H=g.hE(H.X.experiments,"html5_byterate_soft_cap");return new Jv(0,G===4320?0:G,!1,"d",H)}; cyt=function(H){return new Promise(function(E,G){n_M(H,E,G)})}; ME=function(H,E,G){KT("pbs",E!=null?E:(0,g.ON)(),G!=null?G:H.timerName)}; yyU=function(H,E,G){var P=E.xF,Q=E.getMetadata(),e=iTU(H,!0);H=NKU(H,Q,e,G+P.getName());G=S0n(e,P.W,!1);Dqs(G,Q["X-Goog-Encode-Response-If-Executable"]==="base64");E=P.L(E.rL);e.send(H,"POST",E);return G}; aV=function(H){var E=g.mS(H);return(H=Number(g.AL(H)[4]||null)||null)?E+":"+H:E}; Zw=function(H){return!!H.PT&&!!H.PT.postId&&H.api.getPresentingPlayerType()!==2&&(!H.PT.type||H.PT.type==="clips")}; u5=function(H,E,G){if((H>>1&7)>=0&&(H^24)<5){var P=E[h[24]](h[19],12),Q=E[h[24]](h[19],P+1);P>0&&Q>0?(G[h[8]]=E[h[17]](0,Q),E=E[h[17]](Q+1)):(G[h[8]]=E,E=h[2]);var e=[E,G]}(H+1&15)==2&&($n(21,E),e=E[h[10]]);if((H|2)>>4<1&&(H-4&11)>=1){if(!(m4(E[h[32]])||E[h[32]][h[22]](h[12])||E[h[32]][h[22]](h[21])||E[h[32]][h[22]](h[1])))throw new g.LN(h[70],E[h[32]]);P=g.iP(E[h[32]]);E[h[16]]=P[h[35]];E[h[10]]=P[h[6]]+(P[h[10]]!=null?h[58]+P[h[10]]:h[2]);Q=P[h[32]];if(Q[h[22]](h[15]))E[h[8]]=h[15],Q=Q[h[17]](14); else if(Q[h[22]](h[39]))E[h[8]]=h[39],Q=Q[h[17]](13);else if(Q[h[22]](h[86])){var w=u5(24,Q,E);Q=w[0];E=w[1]}else E[h[8]]=Q,Q=h[2];w=E[h[6]];E[h[6]]=G0(16,Q);Object[h[30]](E[h[6]],G0(2,P[h[66]][h[34]]()));Object[h[30]](E[h[6]],w);E[h[6]][h[49]]===h[87]&&(delete E[h[6]][h[49]],E[h[8]]+=h[96]);E[h[32]]=h[2];E[h[26]]=h[2];E[h[66]]&&(P=ts(6,E),E=P[0]);e=[E]}if((H|72)==H)a:if(P=E[h[37]](h[2]),Q=[441926,680193918,1333618258,-691711201,-351733150,104133696,-2134433766,Wsv,-420260536,h[31],sxl,SpM,-1096198515, P,P,b9Q,-108684223,360713075,i9U,h[0],719513037,-920278185,qIn,-1124169174,qJQ,148092744,-1847862842,1293883448,-184403894,-1327478449,566724834,sbl,-1260419084,-396939640,-1068225360,h[0],1154012986,851748058,-235941147,2025034106,null,-2096587215,1747063830,1056907346,1255366240,ROj,function(W,I,A){var m=A[h[4]];W[h[38]](function(u,v,n){this[h[36]](n[v]=A[(A[h[24]](u)-A[h[24]](this[v])+v+m--)%A[h[4]]])},I[h[37]](h[2]))}, -1633627207,JyT,-1700950943,1306352119,-1154186806,-150307843,P,-262959719,rys,h[94],1479378573,BKs,pz1,-308183832,1617745894,84899049,783207235,-259396620,546516883,656093837,icl,YJ7,1766589989,h[18],-1695795528,DQq,Xhv,-1239630057,null,Z9v,-1477101227,197272861,v0j,-973964629,-721750278,-101867567,670225809,1358013615,322311786,function(W,I){W=(W%I[h[4]]+I[h[4]])%I[h[4]];I[h[9]](-W)[h[0]]()[h[38]](function(A){I[h[73]](A)})}, null,883595623,960789434,1503774502],Q[40]=Q,Q[75]=Q,Q[87]=Q,typeof CdM===h[60])e=E;else{try{try{Q[25]>-2&&(Q[50]===1?(0,Q[15])(((0,Q[15])((0,Q[15])((0,Q[46])(Q[13],Q[19],(0,Q[76])()),Q[46],Q[53],Q[9],(0,Q[11])()),Q[48],Q[83],Q[53]),Q[67])(Q[53],Q[5]),Q[55],Q[30],Q[14]):((((0,Q[48])(Q[12],Q[53]),Q[46])(Q[14],Q[9],(0,Q[59])()),Q[55])(Q[41],Q[14]),Q[15])((0,Q[55])(Q[8],Q[13]),Q[7],Q[40]))}catch(W){(0,Q[68])(Q[50])}finally{Q[47]>=-10&&(Q[25]<=-1?(0,Q[11])((((0,Q[75])((0,Q[35])(Q[54],Q[76]),Q[44],Q[37], Q[81],(0,Q[79])()),(0,Q[83])(Q[37]),Q[44])(Q[76],Q[81],(0,Q[31])()),Q[23])(Q[77],Q[6]),Q[75],(0,Q[18])(Q[37]),Q[44],Q[37],Q[81],(0,Q[59])()):((0,Q[4])(Q[new Date(h[48])/1E3],Q[3]),((0,Q[66])(Q[75],Q[74]),(0,Q[12])((0,Q[12])((0,Q[45])(Q[4],Q[31]),Q[70],Q[1],Q[14]),Q[70],Q[6],Q[14]),Q[70])(Q[new Date(h[85])/1E3],Q[43]),Q[55])(Q[78],Q[66]))}try{var t=qF(5,Q,Date);Q=t[0];Date=t[1]}catch(W){var k=Ic(13,Q);Q=k[0]}}catch(W){e=h[44]+E;break a}e=P[h[51]](h[2])}(H&43)==H&&(t=E[h[37]](h[2]),dR[h[80]](t,33), dR[h[79]](t,47),dR[h[68]](t,1),dR[h[80]](t,45),e=t[h[51]](h[2]));return e}; g.Mi=function(){try{return g.GO(),!0}catch(H){return!1}}; T31=function(H){var E;return g.L(function(G){if(H.Iu())throw Error("Already disposed");(E=H.L)!=null&&(E.endTimeMs=0,E.Fn(1));return g.U(G,H.G.promise,0)})}; g.Ds=function(H,E){var G=g.pR();E!==G[H]&&(E!==0?G[H]=E:delete G[H],g.ge1(G))}; gKw=function(H){H.suggestedActions={};H.S.dV("suggested_action_button_visible")}; go=function(H){this.VN=tz(H)}; LzT=function(H,E,G){if(E==null)G.push("null");else{if(typeof E=="object"){if(Array.isArray(E)){var P=E;E=P.length;G.push("[");for(var Q="",e=0;eH.NV&&(G=H.NV);G!==0&&(v3.Xn(H.output,E.JK,E.l7,G,H.jK),H.jK+=G,E.l7+=G,H.Pq+=G,H.NV-=G,E.pending-=G,E.pending===0&&(E.l7=0))}; VRM=function(H){H.indexOf("watchtime")!==-1&&g.HY("gelDebuggingEvent",{vss3debuggingEvent:{vss2Ping:H}})}; Fzl=function(H,E,G){var P=g.hE(E.experiments,"bg_vm_reinit_threshold");(!na||(0,g.ON)()-na>P)&&SJt(H,G).then(function(Q){Q&&(Q=Q.botguardData)&&g.$m(Q,E)},function(Q){H.Iu()||(Q=ms(Q),H.g5("attf",Q.details))})}; TiQ=function(){return{J:"svg",j:{viewBox:"0 0 24 24"},V:[{J:"path",j:{d:"M0 0h24v24H0z",fill:"none"}},{J:"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"}}]}}; Hls=function(H,E){var G=H.eq.get(E),P=fAw(H,E),Q=!P&&!!G.bytesReceived;if(p3){var e;if((e=H.ou)==null?0:e.T6){H=g.R(G.Ov.values());for(E=H.next();!E.done;E=H.next())if(!E.value.No)return!1;return Q}}else if(e=H.nG(E),Q&&H.W&&e!==void 0)return e;return(Q||G.bytesReceived===P)&&G.LT+phw(H,E)===G.bytesReceived}; g.Est=function(H,E){E=aK(E);E=eU(E,E);E.D=!0;o6(H,E);return H}; j8Q=function(H,E){this.L=H;this.index=E}; GXu=function(){var H=["metadata_type_banner_image_layout_view_model","metadata_type_linked_player_bytes_layout_id"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_COMPANION_WITH_IMAGE"]}}; Q4l=function(H){var E=E===void 0?5:E;return H?Peq[H]||E:E}; s4w=function(H){H=H.getAttribute("aria-label");return H==null||H==void 0?"":String(H)}; nI=function(H){return Jz(H.D,u5(81,H.Sy.AE))}; var YJ7=function(H,E){return RM7[h[7]](this,1,H,E)}; Ov=function(H,E){return RM(H,E)!=null}; WET=function(H,E){var G=g.Gm(H.provider);if(!H.provider.X.experiments.xp("html5_refactor_sabr_video_format_selection_logging")||E.L.id!==H.Yp){var P=[E.L.id,E.W,H.Yp,E.reason];H.provider.X.Bo().L.A7(g.Ka)&&!H.PF&&P.push(osd(H,E));E.token&&P.push(E.token);g.BC(H,G,"vfs",P);H.Yp=E.L.id;P=H.provider.Fo.getPlayerSize();if(P.width>0&&P.height>0){P=[Math.round(P.width),Math.round(P.height)];var Q=g.lo();Q>1&&P.push(Q);g.BC(H,G,"view",P)}H.PF||(H.provider.X.z6()&&XX(H,"rqs2"),H.provider.videoData.L&&AU(H.provider.videoData.L)&& H.L.set("preload",["1"]));H.PF=!0;H.D=!0}E.reason==="m"&&++H.AT===100&&xD(H,2);g.BC(H,G,"vps",[H.jy]);H.Jm||H.reportStats(G)}; hjw=function(H,E,G,P,Q){if(E&&typeof E==="object"){var e=function(w){return ejn(H,w,G,P,Q)}; if(jc(E))return E.then(e);if(wsd(E))return bk(E,e)}return ejn(H,E,G,P,Q)}; $u1=function(H,E,G,P,Q,e,w,t,k,W,I,A){g.J.call(this);this.Uh=H;this.slot=E;this.layout=G;this.ET=P;this.DO=Q;this.C_=e;this.Ge=w;this.JG=t;this.aq=k;this.d5=W;this.params=A;this.Zr=!0;H=Jm(I);if(!H)throw Error("Invalid params for sublayout");this.jq=H}; tM1=function(H){Xu.call(this,H);var E=this;We(this.api,"getAudioTrackState",function(){return E.api.qB(0)})}; wv1=function(){var H=kXt(),E=(0,g.ON)()-H.G;if(!(H.G!==0&&E1&&A[1]){W=t[h[6]];var m=W[h[65]](/^[^.]*/,h[2]);g.yZ(t,(W[h[24]](h[25])===0?h[25]:h[64])+I+h[57]+A[1]+m);t=new g.uo(t[h[34]]());t[h[28]](h[76],h[40]);k=t}else G?(t=E[h[13]](),t[h[28]](h[76],h[40]),k=t):(I=t[h[6]][h[54]](h[33]),t[h[6]][h[54]](h[81])? (g.yZ(t,h[62]),W=t[h[34]]()):t[h[6]][h[54]](h[69])?(g.yZ(t,h[72]),W=t[h[34]]()):(t=I6t(W),m4(t)&&(W=t)),t=new g.uo(W),t[h[28]](h[67],h[40]),I&&t[h[28]](h[84],h[92]),k=t)}if((H^30)>>3==1){t=E[h[37]](h[19]);W=0;t[0]||W++;for(I={};W=H&&H+1>>2G.lV)){var n=g.hE(H.K().experiments,"html5_drm_byterate_soft_cap");n>0&&kmM(v)&&v.Xo>n||(m?(w.push(u),mus(u,w,H)):(v=Sk(G,v,Q),v===!0?(m=!0,w.push(u),mus(u,w,H)):k[u]=v))}}}I=g.R(I);for(W=I.next();!W.done;W=I.next())for(W=g.R(W.value),m=W.next();!m.done;m=W.next())if(m=m.value,(A=Wwj(m))&&A.audio&&(H.U("html5_onesie_51_audio")||!mi(A)&&!us(A)))if(A=Sk(G,A,Q),A===!0){t.push(m);mus(m,t,H);break}else k[m]=A;if(!H.U("html5_enable_audio_quality_setting"))for(H= g.R(["141","774"]),I=H.next();!I.done;I=H.next())I=I.value,t.includes(I)&&(g.Ih(t,I),k[I]="blkhqa");G.W&&E("orfmts",k);if(P)return Q.W&&(Q.W=!1,cd=NE=void 0),e?cd={video:w,audio:t}:NE={video:w,audio:t};NE={video:w,audio:t};Q.W=!1;return NE}; ti=function(H){if(vn)return vn.encode(H);var E=new Uint8Array(Math.ceil(H.length*1.2)),G=MH(H,E);E.lengthG&&(E=E.subarray(0,G));return E}; ne=function(H,E,G,P,Q,e){e=e===void 0?!1:e;s9.call(this,H,{J:"img",Y:"ytp-ad-image"},"ad-image",E,G,P,Q===void 0?null:Q);this.L=e;this.hide()}; jl=function(H,E,G){G=G===void 0?!1:G;if(!H.L||!H.L.W)return NaN;H=KV(H);a:{E+=.02;var P=G;P=P===void 0?!1:P;for(var Q=-1,e=0;e=E){E=e;break a}}E=Q}return E<0?NaN:AvM(H,G?E:0)?H[E].startTime:NaN}; u0w=function(H,E,G,P,Q){Q=Q===void 0?!1:Q;E!==H.Xe&&(Q||H.Fo.g5("ssevt",{tag:H.L===0?"sstd-cr":H.L===1?"sstd-tm":H.L===2?"sstd-poll":H.L===3?"sstd-poll100":"sstd-unknown",ad:H.cpn!==E,cpn:E,st:G.toFixed(3),late:Math.round((P-G)*1E3)}),H.Xe=E,H.Fo.publish("playbackstarted",E,G+H.Fo.YV(),Q))}; vsM=function(H){this.value=H}; g01=function(){return Re()?ya("Microsoft Edge"):ih("Edg/")}; wYt=function(H){H.Iu()||(H.G.resolve(),H.G=new g.M$)}; MMl=function(H){return function(E){for(var G=0;G=5)return g.p5(Error("Failed to fetch attestation challenge after "+(E+" attempts; not retrying for 24h."))),KjT(H,864E5),v.return({challenge:"",fX:{},aM:void 0,bgChallenge:void 0});k=1E3*Math.pow(2,E-1)+Math.random()*1E3;return v.return(new Promise(function(n){g.GQ(0, function(){n(HW(H,E))},k)})); case 3:W=Number(e.t)||7200;KjT(H,W*1E3);I=void 0;if(!("c1a"in e&&P.bgChallenge)){v.bJ(10);break}A=j4t(P.bgChallenge);g.EY(v,11);return g.U(v,esM(S3(),A),13);case 13:g.pA(v,12);break;case 11:return m=g.vo(v),g.p5(m),v.return({challenge:Q,fX:e,aM:I,bgChallenge:A});case 12:return g.EY(v,14),I=new Gt({challenge:A,BE:{MI:"aGIf"}}),g.U(v,I.l_,16);case 16:g.pA(v,10);break;case 14:u=g.vo(v),g.p5(u),I=void 0;case 10:return v.return({challenge:Q,fX:e,aM:I,bgChallenge:A})}})}; kZ=function(H,E){var G=this;this.handleError=H;this.L=E;this.W=!1;self.document===void 0||self.addEventListener("beforeunload",function(){G.W=!0}); this.G=Math.random()<=.2}; RK=function(H,E){return H.S.getPlayerStateObject(E)}; aOj=function(H,E,G,P){var Q=Jg(H.W.get(),"SLOT_TYPE_IN_PLAYER"),e=new hB(H.L,E),w=[new BM(H.L,Q)];H=[new BQ(H.L,E),new Y7(H.L,Q)];return{slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:e,slotFulfillmentTriggers:w,slotExpirationTriggers:H,f_:"core",clientMetadata:new ZN([new Cr(P({slotId:Q,slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,f_:"core",slotEntryTrigger:e,slotFulfillmentTriggers:w,slotExpirationTriggers:H}))]),adSlotLoggingData:G}}; Nvj=function(H,E,G,P,Q){var e=(E=H.L?H.W[E]:H.C[E])&&E.quality,w=E&&E.qualityLabel;w=w?w:"Auto";P&&(w="("+w);H=cR7(H,w,e||"",Q);P&&H.V.push(")");(P=(P=E&&E.paygatedQualityDetails)&&P.paygatedIndicatorText)&&G&&H.V.push({J:"div",Y:"ytp-premium-label",iJ:P});return H}; D0l=function(H,E){H.T=!0;g.VP(function(){H.T&&yRj.call(null,E)})}; nMn=function(H,E,G){this.L=H;this.W=E;this.G=G}; blt=function(H,E,G,P){P=new J5(H.api,H.layoutId,H.interactionLoggingClientData,H.vF,P,H.PF);P.mx(H.answers);P.init(PL("survey-answer"),E,G);H.N&&(E=H.questionText.getAttribute("id"),E!=null&&(P.L!==null?P.L.W.setAttribute("aria-describedby",E):P.answer.getElementsByTagName("button")[0].setAttribute("aria-describedby",E)));H.W.push(P)}; z2q=function(H,E){return new g.cP(H,E,{namespace:"timedMarkerCueRange",priority:9,id:"tm_"+H})}; $Wj=function(H){return H.C&&yA(H).size>0}; ild=function(H){H={next:H};H[Symbol.iterator]=function(){return this}; return H}; kmM=function(H){return H.K_==="("||H.K_==="(h"||H.K_==="H"||$e&&H.K_==="1e"}; Rju=function(H,E,G,P){E.isLiveDefaultBroadcast&&(H.isLiveDefaultBroadcast=!0);E.isUpcoming&&(H.isUpcoming=!0);if(E.isPostLiveDvr){H.tT=!0;if(P=E.latencyClass)H.latencyClass=qAw[P]||"UNKNOWN";E.isLowLatencyLiveStream&&(H.isLowLatencyLiveStream=!0)}else{var Q=!1;H.TP?(H.allowLiveDvr=rR()?!0:Bd&&YV<5?!1:!0,H.isLivePlayback=!0):E.isLive?(P.livestream="1",H.allowLiveDvr=E.isLiveDvrEnabled?rR()?!0:Bd&&YV<5?!1:!0:!1,H.partnerId=27,Q=!0):E.isUpcoming&&(Q=!0);if(E.isLive||H.TP){E.isLowLatencyLiveStream&&(H.isLowLatencyLiveStream= !0);var e=E.latencyClass;e&&(H.latencyClass=qAw[e]||"UNKNOWN");if(E=E.liveChunkReadahead)H.liveChunkReadahead=E;if(E=G&&G.livePlayerConfig){E.hasSubfragmentedFmp4&&(H.hasSubfragmentedFmp4=!0);E.hasSubfragmentedWebm&&(H.KQ=!0);E.defraggedFromSubfragments&&(H.defraggedFromSubfragments=!0);if(G=E.liveExperimentalContentId)H.liveExperimentalContentId=Number(G);E=E.isLiveHeadPlayable;H.U("html5_live_head_playable")&&E!=null&&(H.isLiveHeadPlayable=E)}}Q&&(H.isLivePlayback=!0,P.adformat&&P.adformat.split("_")[1]!== "8"||H.fW.push("heartbeat"))}}; zf=function(H,E){E=E===void 0?{}:E;var G,P,Q,e;return g.L(function(w){if(w.L==1)return g.EY(w,2),G=self.indexedDB.deleteDatabase(H),P=E,(Q=P.blocked)&&G.addEventListener("blocked",function(){Q()}),g.U(w,cyt(G),4); if(w.L!=2)return g.pA(w,0);e=g.vo(w);throw PE(e,H,"",-1);})}; X$=function(H,E){if(H.policy.hQ)return!1;var G=E.getResponseHeader("content-type"),P=E.m4();H=!P||P<=H.policy.cg;return(!E.gh()||!G||G.indexOf("text/plain")!==-1)&&H}; ejn=function(H,E,G,P,Q){var e=(0,g.ON)(),w=Q?Q(E):void 0,t;Q=(t=w==null?void 0:w.wh)!=null?t:1;if(Q!==0){var k;t=(k=w==null?void 0:w.profile)!=null?k:G;Txw(H,t,e-P,Q)}return E}; rRd=function(H,E){g.D.call(this,{J:"div",Y:"ytp-cards-teaser",V:[{J:"div",Y:"ytp-cards-teaser-box"},{J:"div",Y:"ytp-cards-teaser-text",V:H.K().U("player_new_info_card_format")?[{J:"button",Y:"ytp-cards-teaser-info-icon",j:{"aria-label":"Show cards","aria-haspopup":"true"},V:[JRj()]},{J:"img",Y:"ytp-cards-teaser-channel-avatar",j:{alt:"","aria-hidden":"true"}},{J:"span",Y:"ytp-cards-teaser-label",iJ:"{{text}}"},{J:"button",Y:"ytp-cards-teaser-close-button",j:{"aria-label":"Close"},V:[g.jK()]}]:[{J:"span", Y:"ytp-cards-teaser-label",iJ:"{{text}}"}]}]});var G=this;this.S=H;this.r6=E;this.fade=new g.NB(this,250,!1,250);this.L=null;this.C=new g.Wt(this.UVu,300,this);this.T=new g.Wt(this.ST5,2E3,this);this.D=[];this.G=null;this.B=new g.Wt(function(){G.element.style.margin="0"},250); this.onClickCommand=this.W=null;g.d(this,this.fade);g.d(this,this.C);g.d(this,this.T);g.d(this,this.B);H.K().U("player_new_info_card_format")?(g.aG(H.getRootNode(),"ytp-cards-teaser-dismissible"),this.Z(this.HF("ytp-cards-teaser-close-button"),"click",this.TQ),this.Z(this.HF("ytp-cards-teaser-info-icon"),"click",this.Gk),this.Z(this.HF("ytp-cards-teaser-label"),"click",this.Gk)):this.listen("click",this.Gk);this.Z(E.element,"mouseover",this.EG);this.Z(E.element,"mouseout",this.dD);this.Z(H,"cardsteasershow", this.W1m);this.Z(H,"cardsteaserhide",this.t7);this.Z(H,"cardstatechange",this.dA);this.Z(H,"presentingplayerstatechange",this.dA);this.Z(H,"appresize",this.mE);this.Z(H,"onShowControls",this.mE);this.Z(H,"onHideControls",this.d2);this.listen("mouseenter",this.Sz)}; Mvv=function(H){H.channel.classList.remove("ytp-title-show-collapsed");H.channel.classList.remove("ytp-title-show-expanded")}; TG1=function(H,E){E.subscribeCommand&&(H.subscribeCommand=E.subscribeCommand);E.unsubscribeCommand&&(H.unsubscribeCommand=E.unsubscribeCommand);E.addToWatchLaterCommand&&(H.addToWatchLaterCommand=E.addToWatchLaterCommand);E.removeFromWatchLaterCommand&&(H.removeFromWatchLaterCommand=E.removeFromWatchLaterCommand);E.getSharePanelCommand&&(H.getSharePanelCommand=E.getSharePanelCommand)}; bB=function(H){H=H===void 0?md:H;Ra.call(this,new VV(H,2))}; g.oa=function(H){return(H.deviceIsAudioOnly||!g.pC||r3||H.controlsType==="3"?!1:g.gI?H.D&&g.Gp(51):!0)||(H.deviceIsAudioOnly||!g.a1||r3||H.controlsType==="3"?!1:g.gI?H.D&&g.Gp(48):g.Gp(38))||(H.deviceIsAudioOnly||!g.zk||r3||H.controlsType==="3"?!1:g.gI?H.D&&g.Gp(37):g.Gp(27))||!H.deviceIsAudioOnly&&g.Zs&&!Bvw()&&g.Gp(11)||!H.deviceIsAudioOnly&&g.Ez&&g.Gp("604.4")}; po=function(H){H.policy.ox&&H.policy.Kz&&Math.min(YAj(H.videoTrack),YAj(H.audioTrack))*1E3>H.policy.XY?g.J3(H.jT):H.Wo()}; RV=function(H,E,G){if(H.X.experiments.xp("html5_disable_client_autonav_cap_for_onesie")&&E.fetchType==="onesie"||g.vV(H.X)&&(ZU(-1)>=1080||E.osid))return q3;var P=g.hE(H.X.experiments,"html5_autonav_quality_cap"),Q=g.hE(H.X.experiments,"html5_autonav_cap_idle_secs");return P&&E.isAutonav&&U7()/1E3>Q?(G&&(P=Kzs(H,G,P)),new Jv(0,P,!1,"e")):q3}; xY=function(H,E){E.sort(function(e,w){function t(k){xQ("TriggerCategoryOrder enum does not contain trigger category: "+k)} return e.category===w.category?e.trigger.triggerId.localeCompare(w.trigger.triggerId):hAT(e.category,t)-hAT(w.category,t)}); var G=new Map;E=g.R(E);for(var P=E.next();!P.done;P=E.next())if(P=P.value,Ov(H.L,P.slot))if(RM(H.L,P.slot).C)RM(H.L,P.slot).N.push(P);else{H.cT.Hu("ADS_CLIENT_EVENT_TYPE_TRIGGER_ACTIVATED",P.slot,P,P.layout);var Q=G.get(P.category);Q||(Q=[]);Q.push(P);G.set(P.category,Q)}E=g.R(XsT);for(P=E.next();!P.done;P=E.next())Q=g.R(P.value),P=Q.next().value,Q=Q.next().value,(P=G.get(P))&&Zld(H,P,Q);(E=G.get("TRIGGER_CATEGORY_SLOT_EXPIRATION"))&&xTl(H,E);(E=G.get("TRIGGER_CATEGORY_SLOT_FULFILLMENT"))&&Ceu(H, E);(G=G.get("TRIGGER_CATEGORY_SLOT_ENTRY"))&&gsv(H,G)}; g.Pj=function(H){this.tag=H}; js=function(H,E,G){H.TT()?H.t7():H.Yt(E,G)}; Lju=function(H){var E;g.L(function(G){switch(G.L){case 1:return g.EY(G,2),g.U(G,H.D,4);case 4:g.pA(G,3);break;case 2:g.vo(G);case 3:(E=H.G)==null||E.disconnect(),g.P2(G)}})}; UU=function(){var H=[new bB(md)],E=Lu(lG);E.W=H;zcq(E,function(){l6s("i")})?gx.done||(TdM(),zQ()):l6s("i")}; Uu1=function(H){return H.L.flavor==="widevine"&&H.videoData.U("html5_drm_cpi_license_key")}; N0v=function(H){var E=g.c4.apply(1,arguments);H.args||(H.args=[]);Array.isArray(H.args)&&H.args.push.apply(H.args,g.EC(E))}; g.YF=function(){this.count=0;this.L=1;this.W=!1;this.offsets=new Float64Array(128);this.startTicks=new Float64Array(128)}; Ca=function(H){return{itag:hU(H,1),lmt:hU(H,2),xtags:zb(H,3)}}; xuT=function(H,E,G,P,Q){try{if(G){var e=Ut.get(E);if(e)return new e(H.S);E_u(H,E,P,Q)}else xd(H,E)}catch(w){xd(H,E),g.h3(w)}return null}; zjj=function(H,E,G){A9.call(this,"ad-message",H,void 0,E,G)}; TvU=function(){g.J.apply(this,arguments);this.L=null}; Ry=function(H,E){H.element.classList.toggle("ytp-volume-popover-hovering",E);H.isVisible=E;(H=H.element.closest(".ytp-chrome-bottom"))&&H.classList.toggle("ytp-volume-popover-showing",E)}; fad=function(H){H.MA("removeEventListener",H.W.zP.AFMA_LIDAR,Hhn);H.Jm=!1}; VMU=function(){}; hGn=function(H,E,G,P,Q){g.J.call(this);var e=this,w=sU(function(){return new o9(e.Da)}); g.d(this,w);var t=sU(function(){return new ey(w,e.Da)}); g.d(this,t);var k=sU(function(){return new wx}); g.d(this,k);var W=sU(function(){return new h8(H)}); g.d(this,W);var I=sU(function(){return new $v(w,t,e.Da)}); g.d(this,I);var A=sU(function(){return new t8}); g.d(this,A);this.yY=sU(function(){return new tOt(E)}); g.d(this,this.yY);this.Fg=sU(function(){return new tq(E)}); g.d(this,this.Fg);this.ST=sU(function(){return new kv(Q)}); g.d(this,this.ST);this.l4=sU(function(){return new WY(E)}); g.d(this,this.l4);this.Dj=sU(function(){return new I9(E)}); g.d(this,this.Dj);this.JG=sU(function(){return new A8(E)}); g.d(this,this.JG);this.hG=sU(function(){return new mY(E)}); g.d(this,this.hG);this.Da=sU(function(){return new uG(E)}); g.d(this,this.Da);var m=sU(function(){return new k$(P)}); g.d(this,m);var u=sU(function(){return new Tq(e.Da)}); g.d(this,u);this.SA=sU(function(){return new t9(E)}); g.d(this,this.SA);this.C_=sU(function(){return new Mq(E,A,e.Da)}); g.d(this,this.C_);var v=dx({C_:this.C_,Da:this.Da,VF:u}),n=v.context,O=v.Cm;this.cT=v.cT;this.Yq=sU(function(){return new Rh(E,e.Da,e.SR)}); g.d(this,this.Yq);this.Ge=sU(function(){return new K_(E)}); g.d(this,this.Ge);this.d5=sU(function(){return new DY(E,e.C_,e.Da)}); g.d(this,this.d5);this.q4=sU(function(){return new Wa}); g.d(this,this.q4);v=sU(function(){return new vY(w,I,t,e.Da,u,null,e.d5,e.dG,e.Iw,3)}); g.d(this,v);this.zH=sU(function(){return new IX(e.Da)}); this.im=sU(function(){return new nu(e.d5,E,e.Da)}); g.d(this,this.im);this.SR=sU(function(){return new a9(E,k,e.im,e.C_,e.cT,e.Da,O)}); g.d(this,this.SR);this.u1=new sC(W,v,G,this.Da,H,this.C_,this.d5,this.l4);g.d(this,this.u1);var q=new OU(E,this.u1,this.d5,this.C_,this.Yq);this.m1=sU(function(){return q}); this.oD=q;this.Av=new Aq(efd,mf,function(N,r,B,l){return SAj(t.get(),N,r,B,l)},W,I,t,u,this.Da,this.C_); g.d(this,this.Av);this.dG=new gR(W,I,this.m1,this.Yq,this.d5,this.Da,this.SR,this.Ge);g.d(this,this.dG);this.oP=new Ku(W,I,this.Dj,this.m1,n);g.d(this,this.oP);this.l1=new jy(this.Da,W,I,v,this.C_,this.oP,G,this.JG);g.d(this,this.l1);this.FR=sU(function(){return new va(m,t,u,e.Da,e.SR,e.d5,e.Ge)}); g.d(this,this.FR);this.p6=sU(function(){return new Mg}); g.d(this,this.p6);this.kz=new d0(H,this.Fg,this.Da);g.d(this,this.kz);this.vT=new DM(H);g.d(this,this.vT);this.md=new n_(H,this.m1,n);g.d(this,this.md);this.cY=new aX(H,this.Dj,this.d5,this.C_,n);g.d(this,this.cY);this.gb=new La(H,this.C_);g.d(this,this.gb);this.Iw=new lZ(H,this.Yq,this.d5,this.SR,this.m1,this.dG);g.d(this,this.Iw);this.DO=new R0(H);g.d(this,this.DO);this.c$=new Os(H);g.d(this,this.c$);this.ET=new jO(H);g.d(this,this.ET);this.RM=sU(function(){return new ca}); g.d(this,this.RM);this.YM=sU(function(){return new Ng(e.d5)}); g.d(this,this.YM);this.w7=sU(function(){return new ys(e.l1,W,w)}); g.d(this,this.w7);this.H$=sU(function(){return new bV(e.Da,e.SR,e.DO,e.im)}); g.d(this,this.H$);this.rU=sU(function(){return new FjM(H,e.ET,e.DO,e.C_,e.Ge,e.d5,e.q4,e.SR,A,e.Yq,e.im,e.zH,e.JG,e.Dj,e.l4,e.hG,e.ST,e.SA,e.Da,k,n,O)}); g.d(this,this.rU);this.Ml=sU(function(){return new f61(e.Fg,e.d5,e.SR,k,e.yY,G,e.Da,e.C_)}); g.d(this,this.Ml);this.HL={Xz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l1],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.dG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Av],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.u1],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),TV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.FR],["SLOT_TYPE_FORECASTING",this.p6],["SLOT_TYPE_IN_PLAYER",this.p6],["SLOT_TYPE_PLAYER_BYTES",this.p6]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED", this.kz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.md],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED", this.cY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.cY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.DO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.md],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.c$],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ET],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Iw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED", this.Iw],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Iw],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Iw],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Iw]]),qA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RM],["SLOT_TYPE_FORECASTING",this.RM],["SLOT_TYPE_IN_PLAYER",this.RM],["SLOT_TYPE_PLAYER_BYTES",this.YM]]),gW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.w7],["SLOT_TYPE_FORECASTING",this.H$],["SLOT_TYPE_PLAYER_BYTES",this.rU],["SLOT_TYPE_IN_PLAYER",this.Ml]])};this.listeners=[k.get()]; this.zw={l1:this.l1,aF:this.Da.get(),vF:this.ST.get(),w4:this.d5.get(),u1:this.u1,fG:w.get(),T5:null,oG:this.kz,gX:k.get(),vY:this.C_.get()}}; Uv=function(){uQ.apply(this,arguments)}; cuU=function(H){var E="";g.D9(H.childNodes,function(G){E+=G.nodeValue}); return E}; zO=function(H){g.D.call(this,{J:"div",Y:xV.TITLE,V:[{J:"div",QN:[xV.TEXT,H.U("enable_larger_title_line_height")?"ytp-title-text-larger-line-height":""],V:[{J:"a",QN:[xV.LINK,xV.SESSIONLINK],j:{target:H.K().L_,href:"{{url}}","data-sessionlink":"feature=player-title",tabIndex:"{{channelTitleFocusable}}"},iJ:"{{title}}"},{J:"div",Y:xV.SUBTEXT,V:["{{subtextElement}}"]}]}]});this.api=H;this.L=null;this.link=this.HF(xV.LINK);H.createClientVe(this.element,this,23851);this.Z(H,"videodatachange",this.r5); this.Z(H,"videoplayerreset",this.r5);this.r5()}; psl=function(H,E){oS(H,2,E.gR);oS(H,5,E.encryptedClientKey);oS(H,6,E.iv);oS(H,7,E.V$);Kc(H,10,E.BGw);Kc(H,13,E.qc);Kc(H,14,E.p7);oS(H,16,E.xIF);Kc(H,17,E.FBR)}; Heu=function(H){return mi(H)||us(H)}; Ehq=function(H){var E={cpn:H.clientPlaybackNonce,c:H.lJ.L.c,cver:H.lJ.L.cver};H.vQ&&(E.ptk=H.vQ,E.oid=H.wF,E.ptchn=H.q2,E.pltype=H.FB,H.W4&&(E.m=H.W4));return E}; GCQ=function(){var H=["metadata_type_ads_engagement_panel_renderer","metadata_type_linked_player_bytes_layout_id"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_PANEL_TEXT_ICON_IMAGE_TILES_BUTTON"]}}; PgU=function(H){(H=H.AC())&&H.KT()}; Qjt=function(H,E){return new g.t4(new TO(function(G,P){function Q(){var e=H?E(H):null;e?e.then(function(w){H=w;Q()},P):G()} Q()}))}; sjv=function(H){this.api=H;this.L={}}; g.YEM=function(H){return H.e2?null:H.playerResponse&&H.playerResponse.endscreen&&H.playerResponse.endscreen.endscreenRenderer||null}; NZ=function(H,E,G,P){this.videoInfos=H;this.L=E;this.audioTracks=[];this.W=P||[];if(this.L){H=new Set;G==null||G({ainfolen:this.L.length});E=g.R(this.L);for(P=E.next();!P.done;P=E.next())if(P=P.value,!P.CP||H.has(P.CP.id)){var Q=void 0,e=void 0,w=void 0;(w=G)==null||w({atkerr:!!P.CP,itag:P.itag,xtag:P.L,lang:((Q=P.CP)==null?void 0:Q.name)||"",langid:((e=P.CP)==null?void 0:e.id)||""})}else Q=new g.oK(P.id,P.CP),H.add(P.CP.id),this.audioTracks.push(Q);G==null||G({atklen:this.audioTracks.length})}}; sH=function(H){try{return D5(H)}catch(E){return null}}; oh7=function(H,E){for(var G=H.element.getElementsByTagName("a"),P=0;P0:H.ML?!1:H.lJ.PL||H.lJ.hj||!g.L3(H.lJ)?!0:!1:(H.ML?0:H.WO)&&g.L3(H.lJ)?!0:!1;H.U("html5_log_detailpage_autoplay")&&zU(H)==="detailpage"&&H.g5("autoplay_info",{autoplay:H.n0,autonav:H.isAutonav,wasDompaused:H.ML,result:E});return E}; g.kF=function(H,E){H=ro(H);return H===void 0&&E!==void 0?E:Number(H||0)}; $Uq=function(H,E,G){var P=E.formats;if(P){for(var Q=[],e=g.R(P),w=e.next();!w.done;w=e.next())w=w.value,Q.push(w.itag+"/"+w.width+"x"+w.height);H.CC=Q.join(",");Q=[];P=g.R(P);for(e=P.next();!e.done;e=P.next()){w=e.value;e={itag:w.itag,type:w.mimeType,quality:w.quality};var t=w.url;t&&(e.url=t);w=IN(8,w);t=w.Op;var k=w.tV,W=w.s;w.m$&&(e.url=t,e.sp=k,e.s=W);Q.push(g.zX(e))}H.Ta=Q.join(",")}if(e=E.hlsFormats){Q={};if(G&&(G=G.audioPairingConfig)&&G.pairs)for(G=g.R(G.pairs),P=G.next();!P.done;P=G.next())P= P.value,w=P.videoItag,Q[w]||(Q[w]=[]),Q[w].push(P.audioItag);G={};P=g.R(e);for(w=P.next();!w.done;w=P.next())w=w.value,G[w.itag]=w.bitrate;P=[];e=g.R(e);for(w=e.next();!w.done;w=e.next()){w=w.value;t={itag:w.itag,type:w.mimeType,url:w.url,bitrate:w.bitrate,width:w.width,height:w.height,fps:w.fps};if(k=w.audioTrack)if(W=k.displayName)t.name=W,t.audio_track_id=k.id,k.audioIsDefault&&(t.is_default="1");if(w.drmFamilies){k=[];W=g.R(w.drmFamilies);for(var I=W.next();!I.done;I=W.next())k.push(Ow[I.value]); t.drm_families=k.join(",")}(k=Q[w.itag])&&k.length&&(t.audio_itag=k.join(","),(k=G[k[0]])&&(t.bitrate+=k));(k=P7n(w))&&(t.eotf=k);w.audioChannels&&(t.audio_channels=w.audioChannels);P.push(g.zX(t))}H.hlsFormats=P.join(",")}if((G=E.licenseInfos)&&G.length>0){Q={};G=g.R(G);for(P=G.next();!P.done;P=G.next())e=P.value,P=e.drmFamily,e=e.url,P&&e&&(Q[Ow[P]]=e);H.QF=Q}if(Q=E.drmParams)H.drmParams=Q;if(Q=E.dashManifestUrl)H.iH=g.eB(Q,{cpn:H.clientPlaybackNonce});if(Q=E.hlsManifestUrl)H.hlsvp=Q;if(Q=E.probeUrl)H.probeUrl= $o(g.eB(Q,{cpn:H.clientPlaybackNonce}));if(E=E.serverAbrStreamingUrl)H.pU=new g.uo(E,!0)}; j4t=function(H){var E=new pa;if(H.interpreterJavascript){var G=tIw(H.interpreterJavascript);G=t2(G).toString();var P=new z$;l0(P,6,G);Lt(E,z$,1,P,bp)}else H.interpreterUrl&&(G=Cz(H.interpreterUrl),G=P9(G).toString(),P=new H_,l0(P,4,G),Lt(E,H_,2,P,bp));H.interpreterHash&&Kz(E,3,H.interpreterHash,bp);H.program&&Kz(E,4,H.program,bp);H.globalName&&Kz(E,5,H.globalName,bp);H.clientExperimentsStateBlob&&Kz(E,7,H.clientExperimentsStateBlob,bp);return E}; kCU=function(){kV.call(this);this.fullscreen=!1;this.volume=void 0;this.paused=!1;this.mediaTime=-1}; cF=function(H){var E=[],G;for(G in H)if(H.hasOwnProperty(G)){var P=G;E.push(i7(P));P=g.R(H[P]);for(var Q=P.next();!Q.done;Q=P.next())E.push(Q.value.itag)}return E.join(".")}; sO=function(H,E,G,P,Q,e){var w={J:"div",Y:"ytp-panel"};if(G){var t="ytp-panel-back-button";var k="ytp-panel-title";var W={J:"div",Y:"ytp-panel-header",V:[{J:"div",QN:["ytp-panel-back-button-container"],V:[{j:{"aria-label":"Back to previous menu"},J:"button",QN:["ytp-button",t]}]},{J:"span",QN:[k],j:H.U("web_enable_a11y_header_role_in_panel")?{role:"heading","aria-level":"2"}:void 0,V:[G]}]};if(Q){var I="ytp-panel-options";W.V.push({J:"button",QN:["ytp-button",I],V:[P]})}w.V=[W]}P=!1;e&&(e={J:"div", Y:"ytp-panel-footer",V:[e]},P=!0,w.V?w.V.push(e):w.V=[e]);g.av.call(this,w);this.content=E;P&&w.V?E.mx(this.element,w.V.length-1):E.mx(this.element);this.Ql=!1;this.E6=P;G&&(this.backButton=this.HF(t),G=this.HF(k),this.Z(this.backButton,"click",this.DQ),this.Z(G,"click",this.DQ),this.Ql=!0,Q&&this.Z(this.HF(I),"click",Q));E.subscribe("size-change",this.bO,this);this.Z(H,"fullscreentoggled",this.bO);this.S=H}; kB=function(H){t3.call(this,H.Uh,H.C_,H.Ge,H.JG,H.d5,H.q4,H.l4,H.yB,H.slot,H.layout,H.ET,H.Ou,H.aq,H.Da)}; g.Cc=function(H,E){var G=Math.abs(Math.floor(H)),P=Math.floor(G/86400),Q=Math.floor(G%86400/3600),e=Math.floor(G%3600/60);G=Math.floor(G%60);if(E){E="";P>0&&(E+=" "+P+" Days");if(P>0||Q>0)E+=" "+Q+" Hours";E+=" "+e+" Minutes";E+=" "+G+" Seconds";P=E.trim()}else{E="";P>0&&(E+=P+":",Q<10&&(E+="0"));if(P>0||Q>0)E+=Q+":",e<10&&(E+="0");E+=e+":";G<10&&(E+="0");P=E+G}return H>=0?P:"-"+P}; g.MQ=function(H){return H.containerType===1}; zL=function(H){return Fz(H)&&!g.Rp(H)}; E_=function(H){g.J.call(this);this.G=H;this.L=new Map;this.W=new g.Wt(this.sample,250,this);g.d(this,this.W);this.start()}; W8l=function(H,E){E=E===void 0?0:E;var G=g.tJ("client-screen-nonce-store");G||(G={},bT("client-screen-nonce-store",G));G[E]=H}; Ihv=function(H,E){iq(H,E,2);E=H.L.end();oA(H,E);E.push(H.W);return E}; Awu=function(H){if(!Array.isArray(H))for(var E=H.length-1;E>=0;E--)delete H[E];H.length=0}; vh7=function(H,E){if(E){var G=E.background;G&&g.X(G,mUn)&&(G=(G=g.X(G,mUn).image)&&BS(G)||"",g.xm(G)?g.p5(Error("Found ThumbnailDetails without valid image URL")):g.AE(H.T$,"backgroundImage","url("+G+")"));if(E.durationMilliseconds==null||E.durationMilliseconds===void 0||E.durationMilliseconds===0)H=Error("durationMilliseconds unset or 0 for SurveyAdQuestionCommon: "+JSON.stringify(E)),g.h3(H);else{H.G=g.Gl();H.L=new GK(H.api,E.durationMilliseconds);g.d(H,H.L);if(H.L&&E.instreamAdPlayerOverlay&&g.X(E.instreamAdPlayerOverlay, uI1))try{var P=new P_(H.api,H.layoutId,H.interactionLoggingClientData,H.vF,H.L);P.mx(H.playerOverlay);P.init(PL("survey-player-overlay"),g.X(E.instreamAdPlayerOverlay,uI1),H.macros);H.D=P;g.d(H,P);H.zD()}catch(Q){P=Error("ISAPOR had an error when initializing. Error: "+(Q+" SurveyAdQuestionCommon: "+JSON.stringify(E))),g.h3(P)}else P=Error("ISAPOR was not present in renderer. SurveyAdQuestionCommon: "+JSON.stringify(E)),g.h3(P);H.L&&E.durationMilliseconds&&E.durationMilliseconds>0?(E=new jL(H.api, H.L),E.mx(H.playerOverlay),g.d(H,E)):(H=Error("Survey progress bar was not added. SurveyAdQuestionCommon: "+JSON.stringify(E)),g.h3(H))}}else g.h3(Error("addCommonComponents() needs to be called before starting countdown."))}; rQ=function(H,E){var G=g.Cc(E),P=g.ct("Seek to $PROGRESS",{PROGRESS:g.Cc(E,!0)});H.update({ariamin:0,ariamax:Math.floor(H.api.getDuration()),arianow:Math.floor(E),arianowtext:P,seekTime:G})}; MIU=function(){var H={};var E=H.url;var G=H.interval;H=H.retries;this.url=E;this.interval=G;this.retries=H}; dUl=function(H,E,G,P,Q,e,w,t,k,W){this.Fg=H;this.d5=E;this.SR=G;this.D=P;this.im=Q;this.W=e;this.G=w;this.ST=t;this.Da=k;this.L=W}; g.qt=function(H){return uk(H)==="WEB_REMIX"}; DUd=function(){var H=["metadata_type_shopping_companion_carousel_renderer","metadata_type_linked_player_bytes_layout_id"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_COMPANION_WITH_SHOPPING"]}}; e_=function(H,E){this.W=H>>>0;this.L=E>>>0}; nhu=function(H){return{aZ:hU(H,3),Xc:hU(H,4),yc:hU(H,5),nz$:Qz(H,8),HO5:hU(H,10),NK:hU(H,12),Kk:hU(H,13),A8:hU(H,14),YF:hU(H,15),Ao:hU(H,16)}}; g.s_=function(H,E,G){H=H.L.openCursor(E.query===void 0?null:E.query,E.direction===void 0?"next":E.direction);return mh(H).then(function(P){return Qjt(P,G)})}; R2=function(H){var E=QH;QH=H;return E}; ahQ=function(H,E,G,P,Q,e){H=G.inPlayerLayoutId?G.inPlayerLayoutId:dU(e,"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",H);var w,t,k=G.instreamAdPlayerOverlayRenderer?(w=G.instreamAdPlayerOverlayRenderer)==null?void 0:w.adLayoutLoggingData:(t=G.playerOverlayLayoutRenderer)==null?void 0:t.adLayoutLoggingData;w={layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",f_:E};return{layoutId:H,layoutType:"LAYOUT_TYPE_MEDIA_LAYOUT_PLAYER_OVERLAY",w5:new Map,layoutExitNormalTriggers:[new WX(function(W){return wM(e, W)},G.ZL)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:E,clientMetadata:P,O2:Q(w),adLayoutLoggingData:k}}; oO=function(){g2.apply(this,arguments)}; Gt=function(H){function E(v,n,O,q){if(!P.logger.Iu()){var N="k";n?N="h":O&&(N="u");N!=="k"?q!==0&&(P.logger.s0(N),P.logger.GJ(N,v)):P.W<=0?(P.logger.s0(N),P.logger.GJ(N,v),P.W=Math.floor(Math.random()*200)):P.W--}} function G(v,n,O,q){Promise.resolve().then(function(){k.done();t.WV();t.dispose();w.resolve({XK:v,RgR:n,CkJ:O,DPa:q})})} g.J.call(this);var P=this;this.W=Math.floor(Math.random()*200);this.L=new yK;if("challenge"in H&&OeT(H.challenge)){var Q=WH(H.challenge,4,void 0,bp);var e=WH(H.challenge,5,void 0,bp);WH(H.challenge,7,void 0,bp)&&(this.L=K8n(WH(H.challenge,7,void 0,bp)))}else Q=H.program,e=H.globalName;this.addOnDisposeCallback(function(){var v,n,O;return g.L(function(q){if(q.L==1)return g.U(q,P.G,2);v=q.W;n=v.RgR;(O=n)==null||O();g.P2(q)})}); this.logger=VaU(H.BE||{},this.L);g.d(this,this.logger);var w=new g.M$;this.G=w.promise;this.logger.s0("t");var t=this.logger.share(),k=new mP(t,"t");if(!g.lU[e])throw this.logger.IF(25),Error("EGOU");if(!g.lU[e].a)throw this.logger.IF(26),Error("ELIU");try{var W=g.lU[e].a;e=[];for(var I=[],A=TaU(this.L),m=0;mQ)return new T("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:H,offsetEndMs:Q},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",Q===E&&H-500<=Q);P={A2:new WM(H,Q),eV:P};if(G!=null){H=Math.max(0,H-G);if(H===Q)return P;P.Ij=new WM(H,Q)}return P; default:return new T("AdPlacementKind not supported in convertToRange.",{kind:Q,adPlacementConfig:H})}}; HT=function(H,E){H.JK[H.pending++]=E&255;H.JK[H.pending++]=E>>>8&255}; ieT=function(H,E,G,P,Q,e){g.z7.call(this);var w=this;this.loader=H;this.ou=E;this.policy=G;this.videoTrack=P;this.audioTrack=Q;this.p_=this.L=null;this.C=this.B=NaN;this.N=0;this.L_=NaN;this.G=null;this.E7=this.Jm=NaN;this.PF=new Map;this.WF=this.T=this.D=NaN;this.kV={Rhw:function(){return w.W}}; this.W=e?1:0}; qHj=function(){}; Rpu=function(){this.L=new Map}; x2=function(H,E,G,P){g.D.call(this,{J:"div",Y:"ytp-chapter-container",V:[{J:"button",QN:["ytp-chapter-title","ytp-button"],V:[{J:"span",j:{"aria-hidden":"true"},Y:"ytp-chapter-title-prefix",iJ:"\u2022"},{J:"div",Y:"ytp-chapter-title-content",iJ:"{{chapterTitle}}",j:{"aria-label":"{{ariaLabel}}","aria-live":"polite",title:H.U("player_tooltip_data_title_killswitch")?P:"","data-tooltip-title":P}},{J:"div",Y:"ytp-chapter-title-chevron",V:[{J:"svg",j:{height:"100%",viewBox:"0 0 24 24",width:"100%"},V:[{J:"path", j:{d:"M9.71 18.71l-1.42-1.42 5.3-5.29-5.3-5.29 1.42-1.42 6.7 6.71z",fill:"#fff"}}]}]}]}]});this.S=H;this.D=E;this.C="";this.currentIndex=0;this.W=void 0;this.G=!0;this.Jm=this.HF("ytp-chapter-container");this.L=this.HF("ytp-chapter-title");this.T=this.HF("ytp-chapter-title-content");this.N();this.updateVideoData("newdata",this.S.getVideoData());this.Z(H,"videodatachange",this.updateVideoData);this.Z(H,"resize",this.N);this.Z(this.Jm,"click",this.onClick);this.Z(H,g.Ya(G),this.Ix);this.Z(H,"onLoopRangeChange", this.Ix);this.Z(H,"innertubeCommand",this.onClickCommand);(H=g.PZ(this.S.K()))&&g.Bt(this.L,"ytp-profile-page",!0);g.L3(this.S.K())||H||M2(this.S,this.T,this)}; g.au=function(H){H.stop();H.qX()}; QC=function(H){this.value=H}; JwT=function(H,E){var G;return E&&H.X.cD&&!((G=H.getVideoData())==null?0:G.backgroundable)}; HM=function(H){return function G(){return SK(G,function(P){if(P.L==1)return g.Fq(P,2),g.U(P,{BB:cV(H)},4);if(P.L!=2)return P.return(P.W);g.ED(P);return g.GN(P,0)})}()}; rws=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u){A$.call(this,H,E,G,P,Q,w,t,k,W,A);this.YS=e;this.zH=I;this.im=m;this.Da=u;this.U9=this.xV=null}; DH=function(H){oq.call(this,H)}; RL=function(H){var E=new tB(H);sO.call(this,H,E,"Custom");g.d(this,E)}; BG=function(){var H,E,G;return(G=(H=globalThis.performance)==null?void 0:(E=H.now)==null?void 0:E.call(H))!=null?G:Date.now()}; var Z9v=function(){return $n[h[7]](this,1)}; zd=function(H){try{return O0(H)==="open"}catch(E){return!1}}; nV=function(){this.L=new Map;this.W=!1}; BBw=function(H){H.C6.By();if(H.iS&&H.vz)H.vz=!1;else if(!H.api.K().z$&&!H.Jp()){var E=H.api.getPlayerStateObject();g.F(E,2)&&g.wg(H.api)||H.dZ(E);!H.api.K().au||E.isCued()||g.F(E,1024)?H.If():H.pF.isActive()?(H.MY(),H.pF.stop()):H.pF.start()}}; m0q=function(H,E){function G(k){for(;P>4);w!=64&&(E(e<<4&240|w>>2),t!=64&&E(w<<6&192|t))}}; OB=function(H,E,G){H.uJ.Dr();var P=jl(H,E);if(P>=0)return P;var Q;(Q=H.B)==null||RUd(Q,E,G);P=Math;Q=P.min;var e=H.G;if(e.C)if(e=e.C,e.BY&&e.BY.type===3)e=e.BY.startTime;else if(e.G>0){var w=e.L.index;w=g.eS(w.offsets.subarray(0,w.count),e.G*e.chunkSize);e=e.L.index.getStartTime(w>=0?w:Math.max(0,-w-2))}else e=0;else e=Infinity;E=Q.call(P,E,e);H.L=H.policy.WF?null:H.uJ.e$(E).kp[0];$r(H)&&(H.policy.L8&&(G==null?void 0:G.seekSource)===60||H.rP&&H.rP.abort(),H.policy.uZ&&(G=H.B)!=null&&(G.G=void 0)); H.O7=0;return H.L?H.L.startTime:E}; g.nw=function(H,E,G,P){P=P===void 0?!1:P;g.av.call(this,E);var Q=this;this.S=H;this.p_=P;this.T=new g.Z0(this);this.fade=new g.NB(this,G,!0,void 0,void 0,function(){Q.US()}); g.d(this,this.T);g.d(this,this.fade)}; YHT=function(H){this.L=H}; Zen=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"videodatachange",function(){var G=E.api.getRootNode(),P=E.api.K();g.aG(G,"ytp-delhi-modern");P.U("delhi_modern_web_player_icons")&&g.aG(G,"ytp-delhi-modern-icons");P.U("delhi_modern_web_player_horizontal_volume_controls")&&g.aG(G,"ytp-delhi-horizontal-volume-controls");P.U("delhi_modern_web_player_compact_controls")&&g.aG(G,"ytp-delhi-modern-compact-controls");switch(vQ(P.experiments,"delhi_modern_web_player_blending_mode")){case "luminosity":g.aG(G, "ytp-delhi-modern-with-luminosity");break;case "difference":g.aG(G,"ytp-delhi-modern-with-difference");break;case "exclusion":g.aG(G,"ytp-delhi-modern-with-exclusion")}G=E.api.isHdr()||E.api.U("delhi_modern_web_player_disable_frosted_glass")?"none":"initial";E.api.getRootNode().style.setProperty("--yt-frosted-glass-backdrop-filter-override",G);XHn(E)}); this.events.Z(H,"resize",function(){XHn(E)})}; qQ=function(){return Re()?ya("Chromium"):(ih("Chrome")||ih("CriOS"))&&!(Re()?0:ih("Edge"))||ih("Silk")}; Zuw=function(){var H=g.tJ("BATCH_CLIENT_COUNTER")||0;H||(H=Math.floor(Math.random()*65535/2));H++;H>65535&&(H=1);bT("BATCH_CLIENT_COUNTER",H);return H}; pNw=function(H){this.xhr=H}; Mq=function(H,E,G){g.J.call(this);this.S=H;this.YS=E;this.Da=G;this.listeners=[];this.M_=null;this.jX=new Map;E=new g.Z0(this);g.d(this,E);E.Z(H,"videodatachange",this.Pku);E.Z(H,"serverstitchedvideochange",this.aOa);this.uE=xn(this)}; Cgw=function(){return cx()?N2.platform==="Windows":ih("Windows")}; j9s=function(H){H=yW[H]!==void 0?yW[H].toString():null;return H!=null&&/^[A-Fa-f0-9]+$/.test(H)?parseInt(H,16):null}; g.tI=function(H,E,G,P){return new Jv(g.lF[H]||0,g.lF[E]||0,G,P)}; di=function(){L5.call(this)}; kr=function(H,E,G,P){this.uo=E;this.visible=G;this.triggerType="TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED";this.triggerId=P||H(this.triggerType)}; W_=function(){var H=window;this.events=[];this.W=H||g.lU;var E=null;H&&(H.google_js_reporting_queue=H.google_js_reporting_queue||[],this.events=H.google_js_reporting_queue,E=H.google_measure_js_timing);this.L=PQ()||(E!=null?E:Math.random()<1)}; IF=function(H){this.value=H}; g.ght=function(H,E){var G;return g.L(function(P){var Q=g.Un("yt.aba.att");return(G=Q?Q:yu.instance!==void 0?yu.instance.G.bind(yu.instance):null)?P.return(G("ENGAGEMENT_TYPE_PLAYBACK",H,E)):P.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})}; L8Q=function(H){var E,G;return!!((E=H.playerResponse)==null?0:(G=E.playerConfig)==null?0:G.granularVariableSpeedConfig)}; lhl=function(H){H.Bn=!H.Bn;H.Df=!0;H.element.classList.toggle("ytp-retro-player",H.Bn);H.resize();H.Df=!1;H.app.cF.n_("onRetroModeChanged",H.Bn)}; Usv=function(H,E,G,P){P=P===void 0?function(){}:P; var Q,e,w,t,k,W,I,A,m,u,v,n,O,q,N,r,B,l,S,z,Pt,eu,QM,$Q,En,Dj,gl,oD,GZ,qT;return g.L(function(c){switch(c.L){case 1:c.bJ(2);break;case 3:if((Q=c.W)&&!Q.isExpired())return c.return(Promise.resolve(Q.L()));case 2:if(!((e=E)==null?0:(w=e.MO)==null?0:w.context)){c.bJ(4);break}t=E.MO.context;c.bJ(5);break;case 5:k=g.R([]),W=k.next();case 8:if(W.done){c.bJ(4);break}I=W.value;return g.U(c,I.LRp(t),9);case 9:W=k.next();c.bJ(8);break;case 4:if((A=H.G)==null||!A.z47(E.input,E.MO)){c.bJ(12);break}return g.U(c, H.G.C35(E.input,E.MO),13);case 13:return m=c.W,UU7(H,m,E),c.return(m);case 12:return(n=(v=E.config)==null?void 0:v.requestKey)&&H.W.has(n)?u=H.W.get(n):(O=JSON.stringify(E.MO),r=(N=(q=E.hA)==null?void 0:q.headers)!=null?N:{},E.hA=Object.assign({},E.hA,{headers:Object.assign({},r,G)}),B=Object.assign({},E.hA),E.hA.method==="POST"&&(B=Object.assign({},B,{body:O})),((l=E.config)==null?0:l.mfx)&&KT(E.config.mfx),S=function(){return H.pm.fetch(E.input,B,E.config)},u=S(),n&&H.W.set(n,u)),g.U(c,u,14); case 14:(z=c.W)&&g.Xj("web_streaming_player")&&Array.isArray(z)&&(z=z[0].playerResponse);if(z&&"error"in z&&((Pt=z)==null?0:(eu=Pt.error)==null?0:eu.details))for(QM=z.error.details,$Q=g.R(QM),En=$Q.next();!En.done;En=$Q.next())Dj=En.value,(gl=Dj["@type"])&&xUM.indexOf(gl)>-1&&(delete Dj["@type"],z=Dj);n&&H.W.has(n)&&H.W.delete(n);((oD=E.config)==null?0:oD.TGo)&&KT(E.config.TGo);if(z||(GZ=H.G)==null||!GZ.G3u(E.input,E.MO)){c.bJ(15);break}return g.U(c,H.G.o1N(E.input,E.MO),16);case 16:z=c.W;case 15:return UU7(H, z,E),((qT=E.config)==null?0:qT.sPp)&&KT(E.config.sPp),P(),c.return(z||void 0)}})}; uW=function(H){eF.call(this,"Loop",g.td.xf);this.S=H;var E=H.U("delhi_modern_web_player_icons")?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:CRd();this.setIcon(E);this.subscribe("select",this.W,this);H.createClientVe(this.element,this,28661);this.Z(H,"settingsMenuVisibilityChanged",this.L);this.listen("click",this.logClick);this.Z(H,"onLoopChange",this.onLoopChange);IV(this,H.getLoopVideo());H.TA().Rq(this)}; T81=function(H){return{type:hU(H,1),event:hU(H,2),Cxw:N8t(H,3),Do:N8t(H,4),jQ:zb(H,5),identifier:zb(H,6),pW:hU(H,9)}}; zpd=function(H,E,G){E&&(H.q_=E);G&&(H.Pa=G)}; lg=function(H,E){this.intervalMs=H;this.callback=E;this.enabled=!1;this.L=function(){return g.Gl()}; this.W=this.L()}; SHT=function(H,E){g.Bt(H.element,"ytp-preview",E>=0);if(!(E<0||E===H.D)){H.D=E;E=243*H.scale;var G=141*H.scale,P=TBU(H.W,H.D,E);VIM(H.bg,P,E,G,!0);H.WF.start()}}; F8u=function(H){if(!H.Iu()&&H.G){H.C="paused";var E=IO(H);E.isFinal=!0;E.send();H.dispose()}}; g.fg=function(H){window.clearInterval(H)}; AI=function(){g.J.apply(this,arguments);this.W=1}; pHl=function(H){for(var E=new uA(H),G=-1,P=0,Q=0;!P||!Q;){var e=fht(E),w=e.id;e=e.size;if(w<0)return;if(w===176){if(e!==2)return;P=E.Nd()}else if(w===186){if(e!==2)return;Q=E.Nd()}w===374648427?G=E.Nd()+e:w!==408125543&&w!==174&&w!==224&&E.skip(e)}E=v_(H,0,G);G=new DataView(E.buffer);G.setUint16(P,3840);G.setUint16(Q,2160);P=new hJ([E]);HV(P,H);return P}; o1M=function(H){return typeof H==="undefined"?"-1":String(Math.ceil(H/1048576))}; tG=function(H){return new g.t4(new TO(function(E,G){n_M(H,E,G)}))}; yz7=function(H,E){H.fflags=qc(H.fflags,E.fflags);var G=E.iv_invideo_url;G&&(H.BA=$o(G));H.iL=BY(H.iL,E.iv_ads_only);if(G=E.cta_conversion_urls)H.I1=G;H.isPharma=BY(H.isPharma,E.is_pharma);H.author=qc(H.author,E.author);H.G6=Hgt(E.ttsurl)||H.G6;H.PL=BY(H.PL,E.cc_asr);H.z$=qc(H.z$,E.channel_path);if(G=E.profile_picture)H.profilePicture=qc(H.profilePicture,G);H.videoCountText=qc(H.videoCountText,E.video_count_text);H.autonavState=Eh(H.autonavState,E.autonav_state,E87);H.clientPlaybackNonce=qc(H.clientPlaybackNonce, E.cpn);H.subscribed=BY(H.subscribed,E.subscribed);H.rawViewCount=dq(H.rawViewCount,E.view_count);H.shortViewCount=qc(H.shortViewCount,E.short_view_count_text);H.publishedTimeText=qc(H.publishedTimeText||"",E.publishedTimeText);H.lengthText=qc(H.lengthText||"",E.lengthText);H.FN=qc(H.FN||"",E.FN);H.Rf=qc(H.Rf||"",E.Rf);H.title=qc(H.title,E.title);H.subtitle=qc(H.subtitle,E.subtitle);H.expandedTitle=qc(H.expandedTitle,E.expanded_title);H.expandedSubtitle=qc(H.expandedSubtitle,E.expanded_subtitle);H.ypcPreview= qc(H.ypcPreview,E.ypc_preview);H.rI=qc(H.rI,E.ypc_origin);H.qC=BY(H.qC,E.ypc_is_premiere_trailer);H.W_=qc(H.W_,E.ypc_clickwrap_message);H.paygated=BY(H.paygated,E.paygated);H.yU=BY(H.yU,E.requires_purchase);H.showShareButton=!BY(!H.showShareButton,E.ss);H.gt=BY(H.gt,E.showwatchlater);H.hC=BY(H.hC,E.shownotifybutton);H.yA=BY(H.yA,E.copy_share);if(G=E.el)H.eventLabel=G;if(G=E.keywords)H.keywords=GeQ(G.split(","));if(G=E.rvs)H.suggestions=PIs(G).map(function(P){return P.playlist||P.list||P.api?new O1(H.lJ, P):new Dm(H.lJ,P)}); H.contentCheckOk=BY(H.contentCheckOk,E.cco);H.racyCheckOk=BY(H.racyCheckOk,E.rco);H.isLivingRoomDeeplink=BY(H.isLivingRoomDeeplink,E.is_living_room_deeplink);H.oauthToken=qc(H.oauthToken,E.oauth_token);H.MZ=qc(H.MZ,E.kpt);H.visitorData=qc(H.visitorData,E.visitor_data);if(G=E.session_data)H.sessionData=LZ(G,"&");H.q6=qc(H.q6,E.endscreen_ad_tracking_data);H.NN=BY(H.NN,E.wait_for_vast_info_cards_xml);H.e2=BY(H.e2,E.suppress_creator_endscreen);H.HM=BY(H.HM,E.is_trueview_action);H.MN=qc(H.MN,E.tracking_list); o6n(H,E)}; ODU=function(H){var E=new l5;var G=new Qk7;G=l0(G,1,"botguard");H=l0(G,2,H);this.L=gEn(E,Qk7,1,skn,H)}; Lwt=function(H,E){H=H===void 0?{}:H;E=E===void 0?{}:E;g.J.call(this);var G=this;this.values=H;this.h0=E;this.W={};this.G=this.L=0;this.D=new g.Wt(function(){o8U(G)},1E4); g.d(this,this.D)}; q8s=function(){var H=document;return g.VS(["fullscreenerror","webkitfullscreenerror","mozfullscreenerror","MSFullscreenError"],function(E){return"on"+E.toLowerCase()in H})}; $Y=function(H){return H.K_==="9h"||H.K_==="(h"}; xB=function(H,E,G){for(var P=H.Tq[G],Q=G<<1;Q<=H.SE;){Q=0}; h1U=function(H){this.offset=0;this.data=new DataView(new ArrayBuffer(H))}; Dr=function(H,E){Array.isArray(E)&&(E=E.join(" "));E===""||E==void 0?($Iq||(E={},$Iq=(E.atomic=!1,E.autocomplete="none",E.dropeffect="none",E.haspopup=!1,E.live="off",E.multiline=!1,E.multiselectable=!1,E.orientation="vertical",E.readonly=!1,E.relevant="additions text",E.required=!1,E.sort="none",E.busy=!1,E.disabled=!1,E.hidden=!1,E.invalid="false",E)),E=$Iq,"label"in E?H.setAttribute("aria-label",E.label):H.removeAttribute("aria-label")):H.setAttribute("aria-label",E)}; I4v=function(H,E){H.loader.i$(E);var G=Rvt(E),P=H.loader.h5();G={mZ:H.schedule,SI:G,Pw:Wdd(H.T,G),KL:PX(E.kp[0]),Sl:I0(47,E.Du.L),L9:H.policy.G,jN:function(w,t){H.loader.ZJ(w,t)}}; if(H.schedule.W.C){var Q,e;G.Gy=(((Q=H.videoTrack.uJ)==null?void 0:Q.info.Xo)||0)+(((e=H.audioTrack.uJ)==null?void 0:e.info.Xo)||0)}H.iA&&(G.U7=E.kp[0].U7,G.RP=E.RP,G.iA=H.iA);P={sx:Uds(E,H.loader.getCurrentTime()),Pf:H.policy.n6&&yC(E)&&E.kp[0].uJ.info.video?uRl(H.G):void 0,zs:H.policy.O7,poToken:H.loader.J2(),ZB:H.loader.nT(),cf:H.cf,l8:isNaN(H.l8)?null:H.l8,H6:H.H6,wS:H.wS,qO:H.qO,q7:P};return new dn(H.policy,E,G,H.D,function(w,t){try{a:{var k=w.info.kp[0].uJ,W=k.info.video?H.videoTrack:H.audioTrack; if(!(w.state>=2)||w.isComplete()||w.mA()||!(!H.loader.Am||H.loader.isSuspended||R8(W)>3)){var I=hc7(w,H.policy,H.D);I===1&&(H.Jm=!0);tzw(H,w,I);if(w.isComplete()||w.Iu()&&t<3){if(H.policy.G){var A=w.timing.NF();A.rst=w.state;A.strm=w.xhr.gh();A.cncl=w.xhr&&w.E9.T?1:0;H.loader.g5("rqs",A)}w.Vi&&H.loader.g5("sbwe3",{},!0)}if(!H.Iu()&&w.state>=2){h8q(H.timing,w,k);var m=H.loader;H.l8&&w.T1&&m&&(H.l8=NaN,H.loader.Zf(w.T1),H.loader.z_(),H.loader.g5("cabrUtcSeek",{mediaTimeSeconds:w.T1}));w.El&&H.l8&&w.El&& !w.El.action&&(H.loader.HN(H.l8),H.l8=NaN,H.loader.g5("cabrUtcSeekFallback",{targetUtcTimeSeconds:H.l8}));w.eb&&H.loader.zd(w.eb);H.policy.b8&&(H.qO=w.qO);if(w.state===3){np(W,w);yC(w.info)&&aO(H,W,k,!0);if(H.W){var u=w.info.Y9();u&&H.W.EB(w.info.kp[0].U7,k.info.id,u)}H.loader.Wo()}else if(w.isComplete()&&w.info.kp[0].type===5){if(w.state!==4)w.LX()&&H.loader.handleError(w.Sx(),w.Ce());else{var v=(w.info.kp[0].uJ.info.video?H.videoTrack:H.audioTrack).W[0]||null;v&&v instanceof dn&&v.mA()&&v.HW()}w.dispose()}else{if(!w.LX()&& w.sD&&w.state>=2&&w.state!==3){var n=w.xhr.getResponseHeader("X-Response-Itag");if(n){var O=keU(H.G,n),q=w.info.G;if(q){var N=q-O.Ls();O.G=!0;w.info.kp[0].uJ.G=!1;var r=O.oY(N);w.info=r;if(w.wO){var B=w.wO,l=r.kp;(l.length!==B.kp.length||l.length=H.policy.gT&&H.W&&w.info.isDecorated()&&Dj==="net.badstatus"&&H.W.Ef(GZ,oD))){var qT=(En.info.video&&En.Du.G>1||w.tK===410||w.tK===500||w.tK===503)&&!(yA(H.G.T).size>0)&&!I0(27,En.Du.L),c=w.Ce(),FR=En.info.video?H.videoTrack:H.audioTrack;qT&&(c.stun="1");H.loader.handleError(Dj,c);H.Iu()||(qT&&eR(H.G,En),np(FR,w),H.loader.Wo())}}else O=1,H.W&&w.info.isDecorated()&& Dj==="net.badstatus"&&H.W.Ef(GZ,oD)&&(O=0),H.ou.isLive&&w.Sx()==="net.badstatus"&&H.C<=H.policy.To*2?(WHv(H.ou),H.ou.tT||H.ou.isPremiere?id(H.loader,0,{cO:"badStatusWorkaround"}):H.ou.D?id(H.loader,H.ou.zT,{cO:"badStatusWorkaround",NB:!0}):Hm(H.loader)):H.loader.handleError(Dj,w.Ce(),O);isNaN(H.l8)||(H.loader.HN(H.l8),H.l8=NaN)}H.policy.ox&&!w.isComplete()?po(H.loader):H.loader.Wo();var y3=d1Q(w,H.policy,H.D);tzw(H,w,y3)}}}}}catch(jH){Dj=H.WF?1:0,H.WF=!0,w=uN(Dj),Dj=ms(jH,Dj),H.loader.handleError(Dj.errorCode, Dj.details,Dj.severity),w||H.loader.ZD()}},P)}; ho=function(H){return/web/i.test(uk(H))}; AhM=function(H,E){var G=(E-H.L)/(H.W-H.L);if(G<=0)return 0;if(G>=1)return 1;for(var P=0,Q=1,e=0,w=0;w<8;w++){e=l7(H,G);var t=(l7(H,G+1E-6)-e)/1E-6;if(Math.abs(e-E)<1E-6)return G;if(Math.abs(t)<1E-6)break;else e1E-6&&w<8;w++)e=H.W&&G.yA&&!G.Xg&&!H.api.isEmbedsShortsMode()&&!E}; mI7=function(H,E,G){G=G===void 0?0:G;var P=H.type;var Q=H.itag;var e=H.xtags;e&&(Q=H.itag+";"+e);if(Mj(P)){var w=(H.size||"640x360").split("x");w=new bd(+w[0],+w[1],+H.fps,H.projection_type,+H.stereo_layout,void 0,H.quality_label,+H.quality_ordinal,H.eotf,H.primaries);P=dc(P,w,AD[H.itag]);DW&&(P+="; enableflushduringseek=true");nf&&(P+="; enableresetaudiodecoder=true")}var t;if(dy(P)){var k=new ad(+H.audio_sample_rate||void 0,+H.audio_channels||0,H.spatial_audio_type,!!H.drc);H.name&&(t=new g.gm(H.name, H.audio_track_id,H.isDefault==="1"))}var W;H.caption_display_name&&H.caption_vss_id&&H.caption_language_code&&(W=new IwU(H.caption_display_name,H.caption_vss_id,H.caption_language_code,H.caption_kind,H.xtags,H.caption_id));e=Number(H.bitrate)/8;var I=Number(H.clen),A=Number(H.lmt);G=G&&I?I/G:0;if(E&&H.drm_families){var m={};for(var u=g.R(H.drm_families.split(",")),v=u.next();!v.done;v=u.next())v=v.value,m[v]=E[v]}return new T0(Q,P,{audio:k,video:w,CP:t,QF:m,Xo:e,Rd:G,contentLength:I,lastModified:A, captionTrack:W,streamType:H.stream_type,approxDurationMs:Number(H.approx_duration_ms)})}; uYU=function(H,E){return H.W.some(function(G){return G.info.U7===E})}; Kp=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-image-background",V:[{J:"img",Y:"ytp-image-background-image"}]},"image-background",E,G,P);this.hide()}; v8t=function(H){this.triggerId=H;this.triggerType="TRIGGER_TYPE_MEDIA_RESUMED"}; dIU=function(H,E){var G=hG(),P=H.K();G={J:"div",Y:"ytp-share-panel",j:{id:hG(),role:"dialog","aria-labelledby":G},V:[{J:"div",Y:"ytp-share-panel-inner-content",V:[{J:"div",Y:"ytp-share-panel-title",j:{id:G},iJ:"Share"},{J:"a",QN:["ytp-share-panel-link","ytp-no-contextmenu"],j:{href:"{{link}}",target:P.L_,title:"Share link","aria-label":"{{shareLinkWithUrl}}"},iJ:"{{linkText}}"},{J:"label",Y:"ytp-share-panel-include-playlist",V:[{J:"input",Y:"ytp-share-panel-include-playlist-checkbox",j:{type:"checkbox", checked:"true"}},"Include playlist"]},{J:"div",Y:"ytp-share-panel-loading-spinner",V:[VT()]},{J:"div",Y:"ytp-share-panel-service-buttons",iJ:"{{buttons}}"},{J:"div",Y:"ytp-share-panel-error",iJ:"An error occurred while retrieving sharing information. Please try again later."}]},{J:"button",QN:["ytp-share-panel-close","ytp-button"],j:{title:"Close"},V:[g.jK()]}]};g.nw.call(this,H,G,250);var Q=this;this.moreButton=null;this.api=H;this.tooltip=E.Zi();this.W=[];this.D=this.HF("ytp-share-panel-inner-content"); this.closeButton=this.HF("ytp-share-panel-close");this.Z(this.closeButton,"click",this.t7);this.addOnDisposeCallback(g.SH(this.tooltip,this.closeButton));this.G=this.HF("ytp-share-panel-include-playlist-checkbox");this.Z(this.G,"click",this.r5);this.L=this.HF("ytp-share-panel-link");this.addOnDisposeCallback(g.SH(this.tooltip,this.L));this.api.createClientVe(this.L,this,164503);this.Z(this.L,"click",function(e){e.preventDefault();Q.api.logClick(Q.L);var w=Q.api.getVideoUrl(!0,!0,!1,!1);w=Mzd(Q,w); g.Xb(w,Q.api,e)&&Q.api.n_("SHARE_CLICKED")}); this.listen("click",this.ZN);this.Z(H,"videoplayerreset",this.hide);this.Z(H,"fullscreentoggled",this.onFullscreenToggled);this.Z(H,"onLoopRangeChange",this.y7m);this.hide()}; nt=function(H,E){for(var G=0;G0){if(E<604800){var w,t,k,W;G=(w=H.L)==null?void 0:(t=w.bannerData)==null?void 0:(k=t.itemData)==null?void 0:(W=k.exclusivesData)==null?void 0:W.exclusiveOfferCountdownText;if(G!==void 0)for(w=Date.now(),t=g.R(G),k=t.next();!k.done;k=t.next())if(k=k.value,k!==void 0&&k.text!==void 0&&(W=Number(k.textDisplayStartTimestampMs), !isNaN(W)&&w>=W)){k.insertCountdown?(E=k.text.replace(/\$0/,String(Su({seconds:E}))),H.C.setContent(E)):H.C.setContent(k.text);H.C.show();break}}var I,A,m,u;H.T.update({exclusive:(I=H.L)==null?void 0:(A=I.bannerData)==null?void 0:(m=A.itemData)==null?void 0:(u=m.exclusivesData)==null?void 0:u.exclusiveOfferLabelText});H.T.show();OJ(H);var v;(v=H.jT)==null||v.start()}else a4M(H)}; bc=function(H){this.value=H}; KHv=function(H){Xu.call(this,H);var E=this;this.loaded=!1;this.overlay=null;this.events=new g.Z0(H);g.d(this,this.events);this.L=new g.Z0(H);g.d(this,this.L);this.events.Z(H,"modulesCreated",function(){E.lB()&&E.load()}); this.events.Z(H,"modulesDestroyed",function(G){var P=!0;switch(G){case 2:case 3:P=!1;break;case 4:P=E.api.getPresentingPlayerType()===1}P&&E.unload()})}; jk1=function(H){this.VN=tz(H,500)}; lAw=function(H){this.L=H}; us=function(H){return H.K_==="MAC3"||H.K_==="MEAC3"||H.K_==="M"||H.K_==="I"}; g.pr=function(H){var E=g.LU.m9(),G=g.LU.OP();if(!E&&!G||!window.JSON)return null;try{var P=E.get(H)}catch(Q){}if(typeof P!=="string")try{P=G.get(H)}catch(Q){}if(typeof P!=="string")return null;try{P=JSON.parse(P,void 0)}catch(Q){}return P}; Qpu=function(H,E){K7(H.L);var G=H.L.D;if(G)return uv(H,"return"in G?G["return"]:function(P){return{value:P,done:!0}},E,H.L.return); H.L.return(E);return mk(H)}; chd=function(H){return new Xl(function(E,G){G(H)})}; es=function(H){this.value=H}; N2v=function(H,E){H.Sf()?E=0:H.Vm==-1?E=0:(E-=H.Vm,E=E>Math.max(1E4,H.G/3)?0:E);var G=H.B(H)||{};G=G.currentTime!==void 0?G.currentTime:H.p_;var P=G-H.p_,Q=0;P>=0?(H.WF+=E,H.O7+=Math.max(E-P,0),Q=Math.min(P,H.WF)):H.eR+=Math.abs(P);P!=0&&(H.WF=0);H.Yp==-1&&P>0&&(H.Yp=c_>=0?Yv()-c_:-1);H.p_=G;return Q}; yhd=function(H,E,G){var P=this;G=G===void 0?{}:G;this.gP=E;this.W=this.status=0;this.Iu=this.L=!1;this.xhr=new XMLHttpRequest;this.xhr.open(G.method||"GET",H);if(G.headers){H=G.headers;E=g.R(Object.keys(H));for(var Q=E.next();!Q.done;Q=E.next())Q=Q.value,this.xhr.setRequestHeader(Q,H[Q])}this.xhr.responseType="arraybuffer";this.xhr.withCredentials=!0;this.xhr.onreadystatechange=function(e){P.N7(e)}; H=b1(function(e){P.onDone(e)}); this.xhr.addEventListener("load",H,!1);this.xhr.addEventListener("error",H,!1);G.body?this.xhr.send(G.body):this.xhr.send();this.xhr.addEventListener("progress",b1(function(e){P.onProgress(e)}),!1)}; Y2v=function(H){return!!(H.G&&H.G.videoInfos&&H.G.videoInfos.length)}; uV=function(H,E,G,P,Q){var e=nDM(P);return ahQ(E,G,P,new ZN(e),Q,H.W.get())}; K7=function(H){if(H.B)throw new TypeError("Generator is already running");H.B=!0}; Ny=function(H){return H.Rj?H.Rj-(H.N||H.timestampOffset):0}; Ddv=function(H){var E=window;E.ywc||(E.ywc={});var G=E.ywc[H];if(G)return G;G={};return E.ywc[H]=G}; var ROj=function(H,E,G,P,Q,e){return ts[h[7]](this,32,H,E,G,P,Q,e)}; pX=function(H){return gbu()[H]}; Rhq=function(H){return g.VS(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(E){return"on"+E.toLowerCase()in H})}; cV=function(H){return wsd(H)?H:jc(H)?new Xl(function(E,G){H.then(E,G)}):new Xl(function(E){E(H)})}; yz=function(H,E){this.triggeringSlotId=E;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY";this.triggerId=H(this.triggerType)}; bgT=function(H){if(!H)throw Error();throw H;}; g.aD=function(H){var E=g.u0();return E?E.toLowerCase().indexOf(H)>=0:!1}; igw=function(H,E,G){switch(E){case "EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT":G>30?H.limitedPlaybackDurationInSeconds=30:G<30&&G>10&&(H.limitedPlaybackDurationInSeconds=10);break;case "EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT":H.limitedPlaybackDurationInSeconds=G*.2}}; qbs=function(H,E){Uj(H,1,E.hl);Uj(H,12,E.deviceMake);Uj(H,13,E.deviceModel);tb(H,16,E.clientName);Uj(H,17,E.clientVersion);Uj(H,18,E.osName);Uj(H,19,E.osVersion)}; H_=function(H){this.VN=tz(H)}; bA=function(){g.DD.call(this);this.T=new Map}; R1t=function(H,E){var G,P,Q,e,w,t,k,W;return g.L(function(I){if(I.L==1){G=vW(H,"redirector.googlevideo.com");G.set("alr","yes");G.set("id",""+Math.round(Math.random()*1E5));if(E===1||E===2)G.set("cmo=sensitive_content","yes"),G.set("sc","yes");E===2&&G.set("cmo=td","c.youtube.com");P={format:"RAW",timeout:5E3};return g.U(I,JT(G.TU(),P),2)}Q=I.W;if(Q.xhr.status!==200||!Q.xhr.responseText)return I.return(Promise.reject(new g.LN("b204258371_no_host",G.TU(),Q.xhr.status)));e=new g.uo(Q.xhr.responseText); w=u5(17,e);t=e.get("ms");k=vW(H,w);W=e.get("mm");k.set("ms",t);k.set("mm",W);return w&&hTv(w)?E!==2||r0(w)?I.return(k):I.return(Promise.reject(new g.LN("b204258371_untrusted",w,t))):I.return(Promise.reject(new g.LN("b204258371_invalid",w,t)))})}; qy=function(){g.E4.call(this);var H=this;this.W=!1;this.L=mcl();this.L.listen("networkstatus-online",function(){if(H.W&&g.Xj("offline_error_handling")){var E=iA().get("errors",!0);if(E){for(var G in E)if(E[G]){var P=new g.LN(G,"sent via offline_errors");P.name=E[G].name;P.stack=E[G].stack;P.level=E[G].level;g.OS(P)}iA().set("errors",{},2592E3,!0)}}})}; Jhl=function(H,E,G,P,Q,e){var w=this;e=e===void 0?[]:e;this.loader=H;this.Jm=E;this.policy=G;this.ou=P;this.C=Q;this.hm=e;this.logger=new g.Pj("dash/abr");this.L=q3;this.G=this.B=null;this.L_=-1;this.T$=!1;this.nextVideo=this.W=null;this.D=[];this.eR=new Set;this.O7={};this.MZ=new KQ(1);this.N=0;this.Yp=this.WF=this.p_=!1;this.E7=0;this.BF=!1;this.PF=new Set;this.z$=!1;this.kV={Ku:function(){RO(w)}}; this.T=new VE(this.policy,Q,function(t,k){w.loader.g5(t,k)})}; rhq=function(H){g.fg(H.C);H.C=NaN}; z0=function(H){H.WF||(H.WF=(0,g.ON)(),g.ng("mb_s",H.WF,H.L))}; g.C9=function(H,E,G){return tG(H.L.put(E,G))}; B2M=function(H,E,G){H.L&&H.videoTrack.T!==-1&&H.audioTrack.T!==-1&&(H.L=!1,H.targetTime=E,id(H.loader,E+.1,{v9:!0,cO:"chunkSelectorSynchronize",NB:!0,seekSource:G}))}; NwM=function(H,E){E.androidOsExperience&&(H.L.caoe=""+E.androidOsExperience);E.androidPlayServicesVersion&&(H.L.capsv=""+E.androidPlayServicesVersion);E.brand&&(H.L.cbrand=E.brand);E.browser&&(H.L.cbr=E.browser);E.browserVersion&&(H.L.cbrver=E.browserVersion);E.cobaltReleaseVehicle&&(H.L.ccrv=""+E.cobaltReleaseVehicle);H.L.c=E.interfaceName||"WEB";H.L.cver=E.interfaceVersion||"html5";E.interfaceTheme&&(H.L.ctheme=E.interfaceTheme);H.L.cplayer=E.interfacePlayerType||"UNIPLAYER";E.model&&(H.L.cmodel= E.model);E.network&&(H.L.cnetwork=E.network);E.os&&(H.L.cos=E.os);E.osVersion&&(H.L.cosver=E.osVersion);E.platform&&(H.L.cplatform=E.platform);var G=vQ(H.experiments,"html5_log_vss_extra_lr_cparams_freq");if(G==="all"||G==="once")E.chipset&&(H.G6.cchip=E.chipset),E.cobaltAppVersion&&(H.G6.ccappver=E.cobaltAppVersion),E.firmwareVersion&&(H.G6.cfrmver=E.firmwareVersion),E.deviceYear&&(H.G6.crqyear=E.deviceYear)}; g.pu=function(H){return hz(document,H)}; kdu=function(H,E,G){G=G===void 0?0:G;g.NL(function(){E.then(function(P){H.W.has(G)&&H.D&&H.D();var Q=g.ri(G),e=g.X3(G);if(Q&&e){var w={automatedLogEventSource:3},t;(P==null?0:(t=P.response)==null?0:t.trackingParams)&&g.IC(H.client,Q,e,g.Bn(P.response.trackingParams),!1,w);var k;(P==null?0:(k=P.playerResponse)==null?0:k.trackingParams)&&g.IC(H.client,Q,e,g.Bn(P.playerResponse.trackingParams),!1,w)}})})()}; JI=function(H,E,G,P){return gB(H,(H.state|E)&~G,null,P===void 0?null:P)}; LXl=function(H,E){if(!H.Iu()){H.uV({onInitData:1});if(H.X.U("html5_eme_loader_sync")&&H.videoData.G&&H.videoData.G.L){var G=H.B.get(E.initData);E=H.C.get(E.initData);if(!G||!E)return;E=G;G=E.initData;H.C.remove(G);H.B.remove(G)}H.uV({initd:E.initData.length,ct:E.contentType});if(H.L.flavor==="widevine")if(H.PF&&!H.videoData.isLivePlayback)rg(H);else{if(!(H.X.U("vp9_drm_live")&&H.videoData.isLivePlayback&&E.wV)){H.PF=!0;G=E.cryptoPeriodIndex;var P=E.L;BuM(E);E.wV||(P&&E.L!==P?H.publish("ctmp","cpsmm", {emsg:P,pssh:E.L}):G&&E.cryptoPeriodIndex!==G&&H.publish("ctmp","cpimm",{emsg:G,pssh:E.cryptoPeriodIndex}));H.publish("widevine_set_need_key_info",E)}}else H.jM(E)}}; YbQ=function(){}; VJ=function(H,E,G,P,Q){K3(H);var e=H.VN;jP(e,e[c9]|0,E,(P==="0"?Number(G)===0:G===P)?void 0:G,Q);return H}; XUv=function(H,E,G,P,Q){this.callback=H;this.slot=E;this.layout=G;this.SR=P;this.Ou=Q;H=Zi(this.layout.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; Zgq=function(H){return!!(H.WZw&&H.slot&&H.layout)}; N3=function(H){this.VN=tz(H,8)}; ES=function(H,E){var G=[];if(!E.length)return G;E.sort(g.v9);E=g.R(E);for(var P=E.next();!P.done;P=E.next())P=P.value,H.W.splice(H.W.indexOf(P),1),G.push([2,P]);return G}; CIt=function(H){return{cP:hU(H,1),EO:hU(H,2),seekSource:hU(H,3)}}; g8u=function(){return ih("iPhone")&&!ih("iPod")&&!ih("iPad")}; PP=function(H){return{downloadedEndTime:Math.round(H.BY?H.BY.T:0),maxKnownEndTime:Math.round(H.L.index.bH()),averageByteRate:Math.round(H.L.info.Rd)}}; LHl=function(H){var E=H.videoTrack.uJ.index;H.iA=new bQT({De:H.policy.De,Gc:H.policy.N.Gc,lk:E.fQ(),vO:function(){return E.vO()}, IY:function(){return E.IY()}})}; Dd=function(H,E){g.D.call(this,{J:"div",Y:"ytp-volume-panel",j:{title:H.U("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"},V:[{J:"div",Y:"ytp-volume-slider",V:[{J:"div",Y:"ytp-volume-slider-handle"}]}]});var G=this;this.api=H;this.C=E;this.Su=!1;this.p_=this.volume=0;this.T=null;this.W=this.L=this.isDragging=!1;this.C=E;this.G=H.FM(); this.N=H.U("web_player_use_screen_width_for_big_mode");this.B=this.HF("ytp-volume-slider");this.WF=this.HF("ytp-volume-slider-handle");this.D=new g.DO(this.B,!0);g.d(this,this.D);this.D.subscribe("dragstart",this.wYF,this);this.D.subscribe("dragmove",this.f2,this);this.D.subscribe("dragend",this.qMw,this);this.Z(H,"onVolumeChange",this.onVolumeChange);this.Z(H,"appresize",this.ot_);this.Z(H,"fullscreentoggled",this.C4);this.Z(H,"onShowControls",this.d3);this.Z(H,"onHideControls",this.d3);this.Z(this.element, "keydown",this.jZ);this.Z(this.element,"focus",function(){B_(G,G.L,G.isDragging,!0,G.api.Su())}); this.Z(this.element,"blur",function(){B_(G,G.L,G.isDragging,!1,G.api.Su())}); YYl(this,H.NZ().getPlayerSize());EE(this,H.getVolume(),H.isMuted());M2(H,this.element,this)}; $L=function(H){this.value=H}; l4M=function(H,E,G){(0,g.D9)(H.G,function(P){var Q=H.L;if(!P.L&&(P.G(E,G),P.D())){P.L=!0;var e=P.W(),w=new f7;w.add("id","av-js");w.add("type","verif");w.add("vtype",P.T);P=Lu(sJ1);w.add("i",P.L++);w.add("adk",Q);hR(w,e);Q=new r0Q(w);jaj(Q)}})}; bDs=function(H){var E;return(H==null?void 0:(E=H.adSlotMetadata)==null?void 0:E.slotType)==="SLOT_TYPE_IN_PLAYER"}; wVt=function(H,E,G){if(H.W.length!==0&&(G||H.W.some(function(e){return e.info.D=0;)H[E]=0}; Yr=function(H,E,G){H=new H.constructor(E);G&&(H.L=qq);H.W=qq;return H}; Zr=function(H,E){H.L.has(E)?(H.L.delete(E),delete X8().L[E]):xQ("Unexpected unregistration of layout in LidarApi")}; uls=function(H){return{videoId:zb(H,2)}}; g.aC=function(H){return H.GH.get("captions")}; UIt=function(H,E){E&&!H.D&&(R7(H),H.G=null,H.L.forEach(function(G,P){var Q=P.toLowerCase();P!=Q&&(this.remove(P),g.HFt(this,Q,G))},H)); H.D=E}; cJ=function(H,E){this.info=H;this.W=E;this.L=null;this.D=this.G=-1;this.timestampOffset=0;this.isLocked=this.C=!1;this.T=this.info.uJ.Tw()&&!this.info.L}; Sbj=function(H){if(H.isExternallyHostedPodcast)return $0();var E=Cp(H.Ta,H.CC);if(H.hlsvp){var G=H.hlsvp,P;if((P=H.lJ.Bo())==null?0:P.L.A7(xIt))G=z1w(G);G=T2l(G,H.clientPlaybackNonce,H.hx);E.push(G)}return Vzv(H.lJ,H.isAd(),E,Ehq(H)).then(function(Q){gg(H,Q)})}; g.ve=function(H,E,G){for(var P in H)if(E.call(G,H[P],P,H))return!0;return!1}; k1d=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n){H=Jg(H,"SLOT_TYPE_PLAYER_BYTES");P=FHn(E,w,P,Q,H,W,I);if(P instanceof T)return P;var O;w=(O=Zi(P.clientMetadata,"metadata_type_fulfilled_layout"))==null?void 0:O.layoutId;if(!w)return new T("Invalid adNotify layout");E=Eld(w,E,G,Q,e,k,t,W,A,m,u,v,n);return E instanceof T?E:[P].concat(g.EC(E))}; ofv=function(H){for(var E="",G=Object.keys(H),P=0;P0}; w5v=function(H,E){return(H=H.flags.get(""+E))?H.toString():""}; J_=function(){return Re()?!1:ih("Opera")}; h4M=function(){this.L=new Map}; d6l=function(H,E,G){var P={stack:[],error:void 0,hasError:!1};try{if(!E.kF)throw new jg(29,"SDF:notready");return CA(FAn(P,new U_(H.logger,0,H.state)),function(){return Oy(H,E)},G)}catch(Q){P.error=Q,P.hasError=!0}finally{fNQ(P)}}; nJd=function(H,E){function G(O){if(!H.Iu()){O=O?O.status:-1;var q=0,N=((0,g.ON)()-I).toFixed();N=Q.U("html5_use_network_error_code_enums")?{backend:"gvi",rc:O,rt:N}:{backend:"gvi",rc:""+O,rt:N};var r="manifest.net.connect";O===429?(r="auth",q=2):O>200&&(r="manifest.net.badstatus",O===400&&(q=2));return Promise.reject(new g.q$(r,N,q))}} function P(O){return G(O.xhr)} var Q,e,w,t,k,W,I,A,m,u,v,n;return g.L(function(O){if(O.L==1){H.fetchType="gvi";Q=H.K();var q={};H.YE&&(q.ytrext=H.YE);(t=g.ZR(q)?void 0:q)?(e={format:"RAW",method:"POST",withCredentials:!0,timeout:3E4,postParams:t},w=Oq(E,{action_display_post:1})):(e={format:"RAW",method:"GET",withCredentials:!0,timeout:3E4},w=E);k={};Q.sendVisitorIdHeader&&H.visitorData&&(k["X-Goog-Visitor-Id"]=H.visitorData);(W=vQ(Q.experiments,"debug_sherlog_username"))&&(k["X-Youtube-Sherlog-Username"]=W);Object.keys(k).length> 0&&(e.headers=k);I=(0,g.ON)();return g.U(O,Hb(JT,w,e).then(void 0,P),2)}A=O.W;if(!A||!A.responseText)return O.return(G(A));H.loading=!1;m=W9(A.responseText);g.zN(H,m,!0);if(H.errorCode)return u={ec:H.errorCode,ed:H.errorDetail,es:H.sF||""},O.return(Promise.reject(new g.q$("auth",u,2)));if(!H.loading&&!UD(H))return v=H.isAd()?"auth":"manifest.net.retryexhausted",n=H.isAd()?2:1,O.return(Promise.reject(new g.q$(v,{successButUnplayable:"1"},n)));g.P2(O)})}; k8T=function(H,E,G,P,Q){E=$Jd(E,P);E!=null&&(G=Ihv(H,G),Q(E,H),t6s(H,G))}; KF=function(H,E,G){H.p_=E;H.G6=G;var P=IW(H),Q=H.G.L,e=fd7(H.G,H.p_),w=g.ct("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Cc(e,!0),DURATION:g.Cc(Q,!0)}),t=uu(H.L,e*1E3);t=H.L[t].title;H.update({ariamin:Math.floor(H.G.W),ariamax:Math.floor(Q),arianow:Math.floor(e),arianowtext:t?t+" "+w:w});Q=H.clipStart;e=H.clipEnd;H.PT&&H.api.getPresentingPlayerType()!==2&&(Q=H.PT.startTimeMs/1E3,e=H.PT.endTimeMs/1E3);Q=ql(H.G,Q,0);t=ql(H.G,e,1);w=H.api.getVideoData();e=g.Mo(E,Q,t);G=(w==null?0:g.B$(w))?1:g.Mo(G, Q,t);E=Wz(H,E,P);g.AE(H.jd,"transform","translateX("+E+"px)");H.api.U("delhi_modern_web_player")&&H.api.U("delhi_modern_web_player_cutout")&&pz(H,E);HU(H,P,Q,e,"PLAY_PROGRESS");(w==null?0:Iy(w))?(E=H.api.getProgressState().seekableEnd)&&HU(H,P,e,ql(H.G,E),"LIVE_BUFFER"):HU(H,P,Q,G,"LOAD_PROGRESS");if(H.api.U("web_player_heat_map_played_bar")){var k;(k=H.D[0])!=null&&k.C.setAttribute("width",(e*100).toFixed(2)+"%")}}; g.N3s=function(H){var E=H.vssId;H.translationLanguage&&E&&(E="t"+E+"."+g.xr(H));return E}; YH=function(H,E){2&E&&(H|=2);return H|1}; zK=function(H,E,G,P,Q){s9.call(this,H,{J:"div",Y:"ytp-ad-player-overlay-layout",V:[{J:"div",Y:"ytp-ad-player-overlay-layout__player-card-container"},{J:"div",Y:"ytp-ad-player-overlay-layout__ad-info-container"},{J:"div",Y:"ytp-ad-player-overlay-layout__skip-or-preview-container"},{J:"div",Y:"ytp-ad-player-overlay-layout__ad-disclosure-banner-container"}]},"player-overlay-layout",E,G,P);this.W=Q;this.PF=this.HF("ytp-ad-player-overlay-layout__player-card-container");this.L=this.HF("ytp-ad-player-overlay-layout__ad-info-container"); this.N=this.HF("ytp-ad-player-overlay-layout__skip-or-preview-container");this.WF=this.HF("ytp-ad-player-overlay-layout__ad-disclosure-banner-container");this.hide()}; Ycj=function(){this.W=[];this.L=[]}; ItT=function(H,E,G){var P=H.d5.get().getCurrentTimeSec(1,!1);H.Da.get().S.K().z6()&&BL(H.SR.get(),"sdai","onopp.1;evt."+G.event+";start."+G.startSecs.toFixed(3)+";d."+G.Po.toFixed(3));Tv(H.W.get(),"OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",function(){var Q=H.G.get(),e=E.adPlacementRenderer.renderer.adBreakServiceRenderer,w=E.contentCpn,t=E.adPlacementRenderer.adSlotLoggingData;TK(H.Da.get());var k=H.SR;var W=Q.Da.get();W=g.hE(W.S.K().experiments,"max_prefetch_window_sec_for_livestream_optimization"); var I=Q.Da.get();var A=g.hE(I.S.K().experiments,"min_prefetch_offset_sec_for_livestream_optimization");I=G.startSecs*1E3;I={A2:new WM(I,I+G.Po*1E3),eV:!1,cueProcessedMs:P*1E3};var m=G.startSecs+G.Po;if(P===0)I.Ij=new WM(0,m*1E3);else{A=G.startSecs-A;var u=A-P;I.Ij=u<=0?new WM(A*1E3,m*1E3):new WM(Math.floor(P+Math.random()*Math.min(u,W))*1E3,m*1E3)}e=Qx(Q,e,w,I,t,[new Wx1(G)]);rn(Q.Da.get())&&BL(k.get(),"abrsm","cpi."+G.identifier+";cps."+G.startSecs+";cpd."+G.Po+";cts."+P+";rbf."+I.Ij.start);k.get().S.Z0(G.startSecs- P,I.Ij.start/1E3-P);return[e]})}; Sr=function(H,E){H.p_=NaN;H.L_=null;H.N.stop();H.D&&E&&H.D.Of();H.C=null;H.D=null}; Alt=function(H,E){this.opportunityType="OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED";this.associatedSlotId=E;this.triggerType="TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED";this.triggerId=H(this.triggerType)}; mJ7=function(H,E,G,P,Q,e,w,t){Xm.call(this,H,E,G,P);this.SR=Q;this.aq=e;this.C=t;this.Zr=!0;this.D=null;this.T=Zi(G.clientMetadata,"metadata_type_linked_player_bytes_layout_id");IS(this.aq(),this);H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; g.Gp=function(H){return uvq(H,function(){return g.ry(vFq,H)>=0})}; VD=function(H,E){var G=(E?E:H.pS()).XH;H.HT.tick("ep_pr_r");if(G!=null&&(M6u(H.playlist,G),H.xA))H.playlist.onReady(function(){Sj(H,E)})}; MyU=function(H,E){for(var G=0;G Q&&(Q=t.width,e="url("+t.url+")")}G.background.style.backgroundImage=e;B_s(G,P.actionButtons||[]);G.show()}else G.hide()}); g.as(this.api,this.L.element,4)}; S2=function(H){if(H.S.K().v6)return H.GH.get("offline")}; lL1=function(H,E){var G=E.indexOf("?");if(G>0){var P=G0(3,E.substring(G+1));g.kn(P,function(Q,e){this.set(e,Q)},H); E=E.substring(0,G)}E=G0(17,E);g.kn(E,function(Q,e){this.set(e,Q)},H)}; Y0u=function(H){if(H.Yp)return["f"];if(g.aD("appletv5"))return"h 9h 9 8 H (h ( *".split(" ");var E=["9h","9","h","8"];H.AG&&E.push("1e");E=E.concat(["(h","(","H","*"]);H.PF&&(E.unshift("1"),E.unshift("1h"));H.rH&&E.unshift("h");H.L_&&(E=(s8l[H.L_]||[H.L_]).concat(E));return E}; nFv=function(H){Xu.call(this,H);We(H,"isEmbedsShortsMode",function(){return H.isEmbedsShortsMode()}); We(H,"getReelItemWatchResponse",function(){var E,G;return(G=(E=H.getVideoData(1))==null?void 0:E.getReelItemWatchResponse())!=null?G:null})}; sI=function(H){this.value=H}; atw=function(H){if(H.isManifestless)for(var E in H.L)H.L[E].index.segments=[]}; g.rA=function(H,E){if("textContent"in H)H.textContent=E;else if(H.nodeType==3)H.data=String(E);else if(H.firstChild&&H.firstChild.nodeType==3){for(;H.lastChild!=H.firstChild;)H.removeChild(H.lastChild);H.firstChild.data=String(E)}else g.NG(H),H.appendChild(dd(H).createTextNode(String(E)))}; Lf=function(H,E){g.J.call(this);var G=this;this.L=null;this.G=E;E=[];for(var P=0;P<=100;P++)E.push(P/100);E={threshold:E,trackVisibility:!0,delay:1E3};(this.W=window.IntersectionObserver?new IntersectionObserver(function(Q){Q=Q[Q.length-1];var e=null;typeof Q.isVisible==="undefined"?document.visibilityState==="visible"&&Q.isIntersecting&&Q.intersectionRatio>0?e=Q.intersectionRatio:document.visibilityState==="hidden"?e=0:e=null:e=Q.isVisible?Q.intersectionRatio:0;e!=null&&(e=Math.max(e,0),e=Math.min(e, 1));G.L=e;typeof G.G==="function"&&G.G(G.L)},E):null)&&this.W.observe(H)}; VW=function(H,E,G,P){K3(H);var Q=H.VN,e=Q[c9]|0;if(P==null){var w=rL(Q);if(J9(w,Q,e,G)===E)w.set(G,0);else return H}else e=D8(Q,e,G,E);jP(Q,e,E,P);return H}; Oos=function(H){G_(H,"impression")&&!G_(H,"seek")&&H.Z5("active_view_fully_viewable_audible_half_duration")}; Kxu=function(H){H=Math.trunc(H)||0;H<0&&(H+=this.length);if(!(H<0||H>=this.length))return this[H]}; g.l8=function(H,E,G){if(!g.gw(H)||!g.gw(E)||H.length!=E.length)return!1;var P=H.length;G=G||uZ7;for(var Q=0;Q=H&&(H-5|88)=0?(G=h[45]+P[h[17]](0,Q),P=P[h[17]](Q+1)):(Q=P[h[24]](h[3]))>=0&&(G=h[45]+P[h[17]](0,Q),P=P[h[17]](Q+3))}E[G]=P}if(H>>1<38&&(H<<2&31)>=25){Q=64;for(var e=[];++Q-e[h[4]]-32;)switch(Q){case 58:Q=96;continue;case 91:Q=44;break;case 65:Q=47;continue;case 46:Q=153;case 123:Q-=58;default:e[h[36]](String[h[20]](Q))}var w=e}(H<<1&11)==2&&E[h[0]]();(H+2&11)==3&&((E[44]===new G(h[95])/1E3||(((((((0,E[84])(E[18],E[20]),(0,E[84])(E[34], E[7]),E[5])(E[62],E[77]),E[85])(E[48],E[23]),E[5])(E[17],E[7]),(0,E[84])(E[91],E[48]),E[46])((0,E[66])(E[10],E[20]),E[43],E[16],E[10-Math[h[63]](2,new G(h[50])/1E3)- -65]),E[56])(E[0],E[36]),(0,E[new G(h[56])/1E3])(E[7],E[76],(0,E[52])()),0))&&(0,E[10])((0,E[65])(E[58],E[11],(0,E[35])()),(0,E[5])((0,E[66])((0,E[66])((0,E[13])(E[7]),E[44],(0,E[65])(E[new G(h[43])/1E3],E[11],(0,E[9])()),E[24],E[45]),E[44],(0,E[63])(E[23],E[6]),E[58],E[57]),E[65],E[58],E[76],(0,E[35])()),E[5],(0,E[44])(E[36],E[20])>> (0,E[65])(E[6],E[76],(0,E[35])()),E[44],E[7],E[22]),E[new G(h[74])/1E3]!==-4&&(E[73]<=1||(((0,E[13])(E[24]),(0,E[44])(E[58],E[47]),E[56])(E[60],E[71]),void 0))&&((0,E[5])((0,E[63])(E[54],E[58]),E[43],E[49],E[7]),E[63])(E[83],E[36]),E[78]==4&&((((0,E[49])(E[26],E[84]),E[30])(E[85],E[48]),E[49])(E[17],E[84]),-6)||(0,E[new G(h[75])/1E3])(E[19],E[84])&(0,E[42])(E[32],E[22])^(0,E[30])(E[84],E[new G(h[61])/1E3]),E[58]>=1&&(0,E[37])(E[29],(0,E[11])(E[65],E[85]),(0,E[42])(E[3],E[10]),(0,E[new G(h[52])/1E3])(E[85]), E[45],E[84]),(E[54]<=new G(h[23])/1E3||((((0,E[80])(E[42],(0,E[42])(E[81],E[57]),(0,E[49])(E[63],E[22]),(0,E[83])(E[33],E[2]),(0,E[49])(E[5],E[44]),E[39],E[10]),E[25])(E[22]),(0,E[61])(E[47],E[18]),E[91])(E[71],E[6]),0))&&((((0,E[0])((0,E[80])(E[8],E[7]),E[61],E[7],E[76]),E[42])(E[9],E[69]),(0,E[66])(E[69]),(0,E[40])(E[47],E[12],(0,E[4])()),E[61])(E[34],E[41]),E[49])(E[27],E[81])!==(0,E[80])(E[87],E[6]),w=[E,G]);if((H^61)>>5<2&&(H>>1&15)>=13)for(Q=E[h[4]];Q;)E[h[36]](E[h[9]](--Q,1)[0]);return w}; a0n=function(H){if(H=H.getWatchNextResponse()){var E,G;H=(E=H.playerOverlays)==null?void 0:(G=E.playerOverlayRenderer)==null?void 0:G.timelyActionsOverlayViewModel;E=g.X(H,Y3s);if(E!=null&&E.timelyActions)return E==null?void 0:E.timelyActions.map(function(P){return g.X(P,X51)}).filter(function(P){return!!P})}}; Hq=function(H,E){return UN(H.segments,function(G){return E-G.U7})}; var BKs=function(H,E,G,P,Q,e,w){return IN[h[7]](this,2,H,E,G,P,Q,e,w)}; h7=function(H){this.value=H}; Zo1=function(H){var E=H.eR||H.Yp;return E?H.snapshot.delay+Math.min(H.lk,(H.N-H.L_)/1E3)+E:H.U2}; C2j=function(){return g.Un("ytPubsub2Pubsub2Instance")}; d$v=function(H){var E=vQ(H.experiments,"html5_web_po_request_key");return E?E:g.vV(H)?"Z1elNkAKLpSR3oPOUMSN":"O43z0dpjhgX20SCx4KAo"}; Ea=function(H,E,G){G=G===void 0?0:G;return g.hE(H.lJ.experiments,E)||G}; gFj=function(H){H.policy.AL&&H.CH&&!H.WJ?H.WJ=!0:H.s9.BN()}; LT=function(H,E){var G=H.started+H.L*4;E&&(G+=H.G);G=Math.max(0,G-3);return Math.pow(1.6,G)}; LxT=function(H){var E=H.G[H.D];if(E){var G=H.B[E];E=G.playerVars;G=G.playerType;H.L=!0;H.D++;var P=H.api.getVideoData(1);E=Object.assign({oauth_token:P.oauthToken},E);H.api.loadVideoByPlayerVars(E,!0,G,!0);H.L=!1}}; lt7=function(H,E){var G=!!H.L;H.L=E;H.L?(G||(H.events.Z(H.api,"videodatachange",function(){lt7(H,H.api.XM())}),H.events.Z(H.api,"progresssync",H.onProgress),H.events.Z(H.api,"appresize",H.D)),H.frameIndex=NaN,UJT(H),H.fade.show(200)):(G&&g.hH(H.events),H.fade.hide(),H.fade.stop())}; xJ7=function(H,E){g.D.call(this,{J:"div",Y:"ytp-info-panel-preview",j:{"aria-live":"assertive","aria-atomic":"true","aria-owns":E.getId(),"aria-haspopup":"true","data-tooltip-opaque":String(g.L3(H.K()))},V:[{J:"div",Y:"ytp-info-panel-preview-text",iJ:"{{text}}"},{J:"div",Y:"ytp-info-panel-preview-chevron",iJ:"{{chevron}}"}]});var G=this;this.S=H;this.jy=this.L=this.videoId=null;this.isDismissed=this.G=this.showControls=this.W=!1;this.Z(this.element,"click",function(){H.logClick(G.element);H.Jp(); js(E)}); this.fade=new g.NB(this,250,!1,100);g.d(this,this.fade);this.S.createServerVe(this.element,this,!0);this.Z(H,"videodatachange",this.onVideoDataChange);this.Z(H,"presentingplayerstatechange",this.ez);this.Z(this.S,"paidcontentoverlayvisibilitychange",this.P2);this.Z(this.S,"infopaneldetailvisibilitychange",this.P2);var P=H.getVideoData()||{};Ucd(P)&&JK(this,P);this.Z(H,"onShowControls",this.Cr);this.Z(H,"onHideControls",this.oE);this.Z(this.S,"infopaneldetaildismissed",function(){H.U("embeds_enable_info_panel_dismissal")&& (G.isDismissed=!0,G.hide())})}; V6l=function(H,E,G){if(G.length==0)throw new T("No "+z4n.get(E)+" triggers found for slot.",void 0,TAj(E));G=g.R(G);for(var P=G.next();!P.done;P=G.next())if(P=P.value,!H.HL.Sh.get(P.triggerType))throw new T("No trigger adapter registered for "+E+" trigger of type: "+P.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; MSq=function(H,E){H.B=E;H.L=g.ct("Custom ($CURRENT_CUSTOM_SPEED)",{CURRENT_CUSTOM_SPEED:E.toString()});E=H.D.map(WP);E.unshift(H.L);H.W&&E.push(H.W);H.MS(E)}; eF=function(H,E){g.h9.call(this,g.Q1({role:"menuitemcheckbox","aria-checked":"false"}),E,H,{J:"div",Y:"ytp-menuitem-toggle-checkbox"});this.checked=!1;this.enabled=!0;this.listen("click",this.onClick)}; Dv=function(H){var E,G;return new Map([["impression",H.impressionPings||[]],["error",H.errorPings||[]],["mute",H.mutePings||[]],["unmute",H.unmutePings||[]],["pause",H.pausePings||[]],["rewind",H.rewindPings||[]],["resume",H.resumePings||[]],["skip",H.skipPings||[]],["swipe",H.swipePings||[]],["close",H.closePings||[]],["progress",H.progressPings||[]],["clickthrough",H.clickthroughPings||[]],["fullscreen",H.fullscreenPings||[]],["active_view_viewable",H.activeViewViewablePings||[]],["active_view_measurable", H.activeViewMeasurablePings||[]],["active_view_fully_viewable_audible_half_duration",H.activeViewFullyViewableAudibleHalfDurationPings||[]],["audio_audible",((E=H.activeViewTracking)==null?void 0:E.activeViewAudioAudiblePings)||[]],["audio_measurable",((G=H.activeViewTracking)==null?void 0:G.activeViewAudioMeasurablePings)||[]],["end_fullscreen",H.endFullscreenPings||[]],["channel_clickthrough",H.channelClickthroughPings||[]],["abandon",H.abandonPings||[]],["start",H.startPings||[]],["first_quartile", H.firstQuartilePings||[]],["midpoint",H.secondQuartilePings||[]],["third_quartile",H.thirdQuartilePings||[]],["complete",H.completePings||[]],["unmuted_impression",H.unmutedImpressionPings||[]],["unmuted_error",H.unmutedErrorPings||[]],["unmuted_mute",H.unmutedMutePings||[]],["unmuted_unmute",H.unmutedUnmutePings||[]],["unmuted_pause",H.unmutedPausePings||[]],["unmuted_resume",H.unmutedResumePings||[]],["unmuted_close",H.unmutedClosePings||[]],["unmuted_progress",H.unmutedProgressPings||[]],["unmuted_clickthrough", H.unmutedClickthroughPings||[]],["unmuted_fullscreen",H.unmutedFullscreenPings||[]],["unmuted_end_fullscreen",H.unmutedEndFullscreenPings||[]],["unmuted_abandon",H.unmutedAbandonPings||[]],["unmuted_start",H.unmutedStartPings||[]],["unmuted_first_quartile",H.unmutedFirstQuartilePings||[]],["unmuted_midpoint",H.unmutedSecondQuartilePings||[]],["unmuted_third_quartile",H.unmutedThirdQuartilePings||[]],["unmuted_complete",H.unmutedCompletePings||[]],["unmuted_skip",H.unmutedSkipPings||[]]])}; GP=function(H,E,G){g.os.call(this,"Audio track",g.td.AUDIO,H,E);this.S=H;this.L=G;this.tracks={};g.aG(this.element,"ytp-audio-menu-item");this.countLabel=new g.D({J:"div",V:[{J:"span",iJ:"Audio track"},{J:"span",Y:"ytp-menuitem-label-count",iJ:"{{content}}"}]});H.U("web_settings_menu_icons")&&!this.S.U("html5_enable_new_audio_settings_menu")&&(E=H.U("delhi_modern_web_player_icons")?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{d:"M19.4 .2C19.29 .27 19.20 .37 19.13 .49C19.07 .60 19.02 .72 19.01 .85C18.99 .98 18.99 1.12 19.03 1.24C19.06 1.37 19.12 1.49 19.2 1.6L20.8 .4C20.64 .18 20.40 .04 20.14 .01C19.87 -0.02 19.61 .04 19.4 .2ZM20.8 .4L20 1L19.2 1.59C20.37 3.16 21.00 5.06 21.00 7.01C20.99 8.97 20.35 10.87 19.17 12.42C19.01 12.64 18.94 12.90 18.98 13.16C19.02 13.43 19.16 13.66 19.37 13.83C19.58 13.99 19.84 14.05 20.11 14.02C20.37 13.98 20.61 13.84 20.77 13.63C22.21 11.73 22.99 9.41 23 7.02C23.00 4.63 22.23 2.31 20.8 .4ZM10 2C8.67 2 7.40 2.52 6.46 3.46C5.52 4.40 5 5.67 5 7C5 8.32 5.52 9.59 6.46 10.53C7.40 11.47 8.67 12 10 12C11.32 12 12.59 11.47 13.53 10.53C14.47 9.59 15 8.32 15 7C15 5.67 14.47 4.40 13.53 3.46C12.59 2.52 11.32 2 10 2ZM16.17 2.29C15.97 2.48 15.86 2.73 15.86 2.99C15.85 3.26 15.95 3.51 16.14 3.71C16.98 4.58 17.44 5.68 17.49 6.80L17.5 7.02C17.49 8.22 17.01 9.40 16.10 10.32C15.92 10.51 15.83 10.77 15.83 11.03C15.84 11.29 15.95 11.53 16.13 11.71C16.32 11.90 16.57 12.00 16.83 12.00C17.09 12.00 17.34 11.90 17.53 11.72C18.78 10.44 19.49 8.77 19.5 7.03L19.49 6.71C19.42 5.09 18.74 3.53 17.58 2.32C17.49 2.23 17.38 2.15 17.26 2.10C17.14 2.05 17.01 2.02 16.88 2.01C16.75 2.01 16.62 2.03 16.49 2.08C16.37 2.13 16.26 2.20 16.17 2.29ZM10 4C10.39 4 10.78 4.07 11.14 4.22C11.51 4.37 11.84 4.60 12.12 4.87C12.39 5.15 12.62 5.48 12.77 5.85C12.92 6.21 13 6.60 13 7C13 7.39 12.92 7.78 12.77 8.14C12.62 8.51 12.39 8.84 12.12 9.12C11.84 9.39 11.51 9.62 11.14 9.77C10.78 9.92 10.39 10 10 10C9.20 10 8.44 9.68 7.87 9.12C7.31 8.55 7 7.79 7 7C7 6.20 7.31 5.44 7.87 4.87C8.44 4.31 9.20 4 10 4ZM10.39 13.01L10 13C8.01 12.99 6.10 13.73 4.63 15.06L4.34 15.34C3.60 16.08 3.01 16.96 2.60 17.93C2.20 18.90 1.99 19.94 2 21C2 21.26 2.10 21.51 2.29 21.70C2.48 21.89 2.73 22 3 22C3.26 22 3.51 21.89 3.70 21.70C3.89 21.51 4 21.26 4 21C4.00 19.40 4.63 17.88 5.75 16.75L5.97 16.55C7.07 15.55 8.51 15 10 15L10.29 15.00C11.78 15.08 13.18 15.70 14.24 16.75L14.44 16.97C15.44 18.07 16 19.51 16 21C16 21.26 16.10 21.51 16.29 21.70C16.48 21.89 16.73 22 17 22C17.26 22 17.51 21.89 17.70 21.70C17.89 21.51 18 21.26 18 21C18.00 19.01 17.26 17.10 15.93 15.63L15.65 15.34C14.25 13.93 12.37 13.10 10.39 13.01Z", fill:"white"}}]}:N41(),this.setIcon(E));g.d(this,this.countLabel);g.Is(this,this.countLabel);H.createClientVe(this.element,this,273318);this.listen("click",this.onClick);this.Z(H,"videodatachange",this.r5);this.Z(H,"onPlaybackAudioChange",this.r5);this.r5()}; S3j=function(H){H=H.W;return H.requestAnimationFrame||H.webkitRequestAnimationFrame||H.mozRequestAnimationFrame||H.oRequestAnimationFrame||H.msRequestAnimationFrame||null}; Fxj=function(H,E,G){var P=0;H=H.L.L.get(G);if(!H)return-1;H=g.R(H);for(G=H.next();!G.done;G=H.next()){if(G.value.cpn===E)return P;P++}return-1}; q9=function(H){this.value=H}; kkn=function(H){return{videoId:zb(H,1),formatId:$M(H,2,Ca),debugInfo:ue(H,3,bFM)}}; fA=function(H,E,G){var P,Q=new Promise(function(e){P=setTimeout(e,E)}); return Promise.race([H.finally(function(){return void clearTimeout(P)}), Q.then(G)])}; CX=function(H){this.VN=tz(H)}; Sqq=function(){var H=0,E;return function(G){E||(E=new XP);var P=new U_(E,H,1),Q=CA(P,function(){return pm(G)},!0); P.dispose();H++;return Q}}; ftt=function(){kE.apply(this,arguments);this.requestHeaders={}}; B61=function(H,E){if(E>=H.L.length)return H.C;for(var G=0,P=0;P=t&&GP}; Ezd=function(H,E,G){var P=H.getVideoData(),Q=E.getVideoData();if(!P.K().supportsGaplessShorts())return{nq:"env"};if((!G.L_||P.n0&&!P.isAd()||Q.n0&&!Q.isAd())&&(!G.W||P.n0&&!P.isAd()||Q.n0)&&(!G.G||Q.n0&&!Q.isAd()||P.n0)&&(P.n0||Q.n0))return{nq:"autoplay"};if(P.endSeconds>0)return{nq:"endcr"};if(!P.B)return{nq:"client"};if(!H.wG())return{nq:"no-empty"};H=Qt(G,H,E,Infinity);return H!=null?{nq:H.msg}:null}; ncM=function(H){this.pos=0;this.W=[];this.L=wAT(H===void 0?4096:H);this.view=new DataView(this.L.buffer,this.L.byteOffset,this.L.byteLength)}; Gfu=function(H,E){for(var G=new Uint8Array(270),P=0;P<135;P++)G[P*2]=''.charCodeAt(P);H=H.G.createSession("video/mp4",E,G);return new m8(null,null,null,null,H)}; Pnj=function(H){return{startMinReadaheadPolicy:ue(H,1,Uqd),resumeMinReadaheadPolicy:ue(H,2,Uqd)}}; QRq=function(H){var E={"Content-Type":"application/json"};g.tJ("EOM_VISITOR_DATA")?E["X-Goog-EOM-Visitor-Id"]=g.tJ("EOM_VISITOR_DATA"):g.tJ("VISITOR_DATA")&&(E["X-Goog-Visitor-Id"]=g.tJ("VISITOR_DATA"));E["X-Youtube-Bootstrap-Logged-In"]=g.tJ("LOGGED_IN",!1);g.tJ("DEBUG_SETTINGS_METADATA")&&(E["X-Debug-Settings-Metadata"]=g.tJ("DEBUG_SETTINGS_METADATA"));if(H!=="cors"){var G=g.tJ("INNERTUBE_CONTEXT_CLIENT_NAME");G&&(E["X-Youtube-Client-Name"]=G);(G=g.tJ("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(E["X-Youtube-Client-Version"]= G);(G=g.tJ("CHROME_CONNECTED_HEADER"))&&(E["X-Youtube-Chrome-Connected"]=G);(G=g.tJ("DOMAIN_ADMIN_STATE"))&&(E["X-Youtube-Domain-Admin-State"]=G)}g.tJ("SEND_LAVA_HEADER_UNCONDITIONALLY",!1)?(H=g.tJ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(E["X-YouTube-Lava-Device-Context"]=H):H!=="cors"&&g.tJ("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(H=g.tJ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(E["X-YouTube-Lava-Device-Context"]=H);return E}; sRu=function(H,E){return H.uJ!==E.uJ?!1:H.type===4&&E.type===3&&H.uJ.Dr()?(H=H.uJ.PS(H),YZ(H,function(G){return sRu(G,E)})):H.U7===E.U7&&!!E.W&&E.L+E.W>H.L&&E.L+E.W<=H.L+H.W}; Sov=function(H){var E,G,P,Q,e,w,t,k,W;return g.L(function(I){if(I.L==1){if(H.Iu())return I.return(Promise.reject(Error(H.status.error||"disposed")));H.timeout.start();return g.U(I,H.Aq,2)}E=H.L.xt();if(E.isEnded())return H.xz("ended_in_finishTransition"),I.return(Promise.reject(Error(H.status.error||"")));if(!H.D||!zd(H.D))return H.xz("next_mse_closed"),I.return(Promise.reject(Error(H.status.error||"")));if(H.W.x7()!==H.D)return H.xz("next_mse_mismatch"),I.return(Promise.reject(Error(H.status.error|| "")));G=Gi(H);P=G.Lg;Q=G.NT;e=G.wq;H.L.ix(!1,!0);w=bo1(E,P,e,!H.W.getVideoData().isAd());H.W.setMediaElement(w);(t=H.L.zV())&&H.W.VQ(t.g9,t.WS);H.N&&(H.policy.L||H.W.seekTo(H.W.getCurrentTime()+.001,{v9:!0,lq:3,cO:"gapless_pseudo"}),w.play());k=E.NL();k.cpn=H.L.getVideoData().clientPlaybackNonce;k.st=""+P;k.et=""+e;H.W.g5("gapless",k);H.L.g5("gaplessTo",{cpn:H.W.getVideoData().clientPlaybackNonce});W=H.L.getPlayerType()===H.W.getPlayerType();H.L.Ag(Q,!0,!1,W,H.W.getVideoData().clientPlaybackNonce); H.W.Ag(H.W.getCurrentTime(),!0,!0,W,H.L.getVideoData().clientPlaybackNonce);H.W.z8();g.VP(function(){!H.W.getVideoData().N&&H.W.getPlayerState().isOrWillBePlaying()&&H.W.hL()}); PU(H,6);H.dispose();return I.return(Promise.resolve())})}; Hn=function(H){var E=yP(H.L,m0,1);E||(E=new m0,KA(H,E));H=E;E=yP(H,Qh,11);E||(E=new Qh,Lt(H,Qh,11,E));return E}; ozq=function(H,E){var G={};E=g.R(E);for(var P=E.next();!P.done;P=E.next())if((P=P.value)&&P.video){var Q=P.video.qualityOrdinal,e=G[Q],w=e&&GV(e)&&e.video.qualityOrdinal>H.policy.lV,t=Q<=H.policy.lV?GV(P):uh(P);if(!e||w||t)G[Q]=P}return G}; eoj=function(){var H=X9().G,E=Cu>=0?Yv()-Cu:-1,G=pn?Yv()-Hk:-1,P=c_>=0?Yv()-c_:-1;if(H==947190542)return 100;if(H==79463069)return 200;H=[2E3,4E3];var Q=[250,500,1E3];lc(637,Error(),.001);var e=E;G!=-1&&G1500&&P<4E3?500:w}; phw=function(H,E){if(p3){var G=0;H=H.eq.get(E);if(H==null||!H.Ov)return 0;H=g.R(H.Ov.values());for(E=H.next();!E.done;E=H.next())G+=E.value.data.totalLength;return G}return((G=H.eq.get(E))==null?void 0:G.OM.totalLength)||0}; oP=function(H,E,G){G=G===void 0?!1:G;E.then(function(P){H.p_.delete(E);(G||P===4)&&H.N.resolve(P)},function(P){H.N.reject(P)})}; g.De=function(){var H=CN();return H?Promise.resolve(H):yKs().then(function(E){(E=E?wJU:void 0)&&g.kM("ytglobal.idbToken_",E);return E})}; gv=function(H){this.value=H}; ho7=function(H){H=g.Fu(H,1886614376);for(var E=g.R(H),G=E.next();!G.done;G=E.next());return g.wH(H,function(P){return KiM(P)})}; o0=function(H){this.VN=tz(H,500)}; Vv=function(H){return g.NL(function(){return HR("_start",H)})()}; vb=function(H,E){var G=H.W;for(H.W=-1;H.pos+1<=H.L.totalLength;){G<0&&(G=M_(H));var P=G>>3,Q=G&7;if(P===E)return!0;if(P>E){H.W=G;break}G=-1;switch(Q){case 0:M_(H);break;case 1:H.pos+=8;break;case 2:P=M_(H);H.pos+=P;break;case 5:H.pos+=4}}return!1}; HG=function(H){this.key=H}; q6=function(H,E,G,P,Q){this.L=E;this.slotType=G;this.layoutType=P;this.triggerType="TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED";this.triggerId=Q||H(this.triggerType)}; g.Jt=function(H,E){this.state=H;this.oldState=E}; Ju=function(H){gM.call(this,H.getAvailablePlaybackRates()[0],H.getAvailablePlaybackRates()[H.getAvailablePlaybackRates().length-1],.05,H.getPlaybackRate(),{J:"div",Y:"ytp-speedslider-indicator-container",V:[{J:"div",Y:"ytp-speedslider-badge"},{J:"p",Y:"ytp-speedslider-text"}]});this.S=H;this.p_=Fp(this.Jm,50,this);g.aG(this.W,"ytp-speedslider");this.N=this.HF("ytp-speedslider-text");this.WF=this.HF("ytp-speedslider-badge");$pU(this);this.Z(this.W,"change",this.E7)}; g.$f=function(H,E){g.nw.call(this,H,{J:"div",QN:["ytp-popup",E||""],V:[{J:"div",Y:"ytp-focus-trap-before",j:{tabindex:"0"}},{J:"div",Y:"ytp-popup-content"},{J:"div",Y:"ytp-focus-trap-after",j:{tabindex:"0"}}]},100,!0);this.L=[];this.D=this.G=null;this.maxHeight=this.maxWidth=0;this.size=new g.P4(0,0);this.content=this.HF("ytp-popup-content");this.listen("keydown",this.I3);this.Z(this.HF("ytp-focus-trap-before"),"focus",this.poZ);this.Z(this.HF("ytp-focus-trap-after"),"focus",this.LVo)}; kbw=function(H){return H.isTimeout?"NO_BID":"ERR_BID"}; KE1=function(H,E,G){var P=G.channelThumbnail;P&&(P=P.thumbnails)&&(P=P[0])&&(E.profile_picture=P.url);var Q;if(P=g.X((Q=g.X(G==null?void 0:G.channelThumbnailEndpoint,tfT))==null?void 0:Q.urlEndpoint,g.nR))E.channel_path=P.url;if(Q=G.collapsedRenderer)if(Q=g.X(Q,kfn)){if(P=Q.title)E.title=g.b_(P);if(Q=Q.subtitle)E.subtitle=g.b_(Q)}if(G=G.expandedRenderer)if(G=g.X(G,Wmv)){if(Q=G.title)E.expanded_title=g.b_(Q);if(Q=G.subtitle)E.expanded_subtitle=g.b_(Q);if(G=G.subscribeButton)H.subscribeButtonRenderer= g.X(G,g.sa),H.subscribeButtonRenderer&&(E.ucid=H.subscribeButtonRenderer.channelId,E.subscribed=H.subscribeButtonRenderer.subscribed,H.hC=!!H.subscribeButtonRenderer.notificationPreferenceToggleButton,H.subscribeButtonRenderer.notificationPreferenceToggleButton&&H.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer&&(E=H.subscribeButtonRenderer.notificationPreferenceToggleButton.toggleButtonRenderer,E.isToggled?(H.zS=E.toggledServiceEndpoint||null,H.O_=E.defaultServiceEndpoint|| null):(H.zS=E.defaultServiceEndpoint||null,H.O_=E.toggledServiceEndpoint||null)))}}; wT=function(H,E,G){H=""+H+(E>49?"p60":E>32?"p48":"");E=LH()[H];if(E!=null&&E>0)return E;E=Xh.get(H);if(E!=null&&E>0)return E;G=G==null?void 0:G.get(H);return G!=null&&G>0?G:8192}; DJ=function(H,E,G){G=G===void 0?{}:G;E=Error.call(this,E);this.message=E.message;"stack"in E&&(this.stack=E.stack);this.code=H;this.metadata=G;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)}; IqM=function(H,E,G){typeof H==="string"&&(H={mediaContentUrl:H,startSeconds:E,suggestedQuality:G});a:{if((E=H.mediaContentUrl)&&(E=/\/([ve]|embed)\/([^#?]+)/.exec(E))&&E[2]){E=E[2];break a}E=null}H.videoId=E;return ot(H)}; Act=function(H,E){H.Tt=!0;var G=E.heartbeatToken;G&&(H.drmSessionId=E.drmSessionId||"",H.heartbeatToken=G,H.GI=Number(E.intervalMilliseconds),H.zt=Number(E.maxRetries),H.oW=!!E.softFailOnError,H.Mj=!!E.useInnertubeHeartbeatsForDrm);H.heartbeatServerData=E.heartbeatServerData;var P;H.bz=!((P=E.heartbeatAttestationConfig)==null||!P.requiresAttestation)}; g.Xy=function(H,E,G,P,Q,e,w,t,k,W,I){k=k===void 0?H.schedule:k;W=W===void 0?new g.KD(H):W;I=I===void 0?!0:I;g.z7.call(this);var A=this;this.X=H;this.playerType=E;this.HT=G;this.BS=P;this.getVisibilityState=e;this.visibility=w;this.O9=t;this.mZ=k;this.videoData=W;this.i5=I;this.logger=new g.Pj("VideoPlayer");this.KS=null;this.RQ=new L7;this.Dx=null;this.P7=!0;this.Am=this.loader=null;this.qE=[];this.wx=new bJ;this.L6=this.Hf=null;this.FD=new bJ;this.Mx=null;this.v1=this.a5=!1;this.Nx=NaN;this.gL=!1; this.playerState=new g.bb;this.k$=[];this.sW=new g.Z0;this.mediaElement=null;this.QI=this.pg=!1;this.h6=NaN;this.JM=!1;this.N$=0;this.df=!1;this.Cn=NaN;this.du=0;this.loop=!1;this.playbackRate=1;this.vH=0;this.RC=!1;this.Kg=[];this.ZI=this.WX=0;this.HZ=this.Sk=!1;this.D9=this.Oh=0;this.TX=!1;this.lF=this.S5=this.Hp=this.ze=null;this.JC=function(){var m=A.eT;m.provider.X.AT||m.provider.Fo.getVisibilityState()===3||(m.provider.X.AT=!0);m.lE();if(m.W){var u=m.W;u.T&&u.L<0&&u.provider.Fo.getVisibilityState()!== 3&&jSt(u)}m.qoe&&(m=m.qoe,m.MZ&&m.G<0&&m.provider.X.AT&&E47(m),m.D&&At(m));A.loader&&eC(A);wE(A)}; this.kV={LB:function(m){A.LB(m)}, EEF:function(m){A.KS=m}, YC7:function(){return A.eT}, x7:function(){return A.Am}, qhx:function(){return A.K5}, wVF:function(){return A.Vk}, hW$:function(){}, K:function(){return A.X}, xt:function(){return A.mediaElement}, xAm:function(m){A.K3(m)}, wrx:function(){return A.BS}}; this.kM=new mpM(this);this.W3=new g.Wt(this.liF,15E3,this);this.Lj=new E_(new Map([["bufferhealth",function(){return ucs(A.tG)}], ["bandwidth",function(){return A.ye()}], ["networkactivity",function(){return A.mZ.Jm}], ["livelatency",function(){return A.isAtLiveHead()&&A.isPlaying()?vzU(A):NaN}], ["rawlivelatency",function(){return vzU(A)}]])); this.tG=new MfT(this);this.Yk=new g.Wt(this.Epw,0,this);this.ljo=[this.sW,this.Yk,this.W3,this.Lj];this.Qy=new qOT(this.X);this.VA=new $a(this.X,this.BS,this,this.mZ);this.M4=new g.hS(this,function(m,u){m!==g.Ya("endcr")||g.F(A.playerState,32)||A.NA();Q(m,u,A.playerType);if(m===g.Ya("transitiondetector")&&(m=A.loader)!=null&&(m=m.BF)!=null){var v=g.R(dpM(u.id));v.next();v=v.next().value;u0w(m,v,u.start/1E3-m.Fo.YV(),ZW(m.G))}}); g.d(this,this.M4);g.d(this,this.tG);Dp7(this,W);this.videoData.subscribe("dataupdated",this.mWN,this);this.videoData.subscribe("dataloaded",this.Q2,this);this.videoData.subscribe("dataloaderror",this.handleError,this);this.videoData.subscribe("ctmp",this.g5,this);this.videoData.subscribe("ctmpstr",this.Kq,this);!this.eT||this.eT.Iu();this.eT=new g.$9(new rN(this.videoData,this.X,this));B8T(this.JC);this.visibility.subscribe("visibilitystatechange",this.JC);this.K5=new g.Wt(this.AY,g.hE(this.X.experiments, "html5_player_att_initial_delay_ms")||4500,this);this.Vk=new g.Wt(this.AY,g.hE(this.X.experiments,"html5_player_att_retry_delay_ms")||4500,this);this.rF=new g.S7(this.QwZ,350,this);g.d(this,this.rF)}; nz7=function(H){var E=Math,G=E.round,P=Math.min((0,g.ON)()-H.G,H.W);E=G.call(E,(H.W-P)/1E3);H.updateValue("duration",Su({seconds:E}));E<=0&&H.L?H.stopTimer():H.L&&H.L.start()}; Iy=function(H){return!(!H.isLivePlayback||!H.hasProgressBarBoundaries())}; g.CW=function(H){var E,G;if(!((E=H.webPlayerContextConfig)==null?0:(G=E.embedsHostFlags)==null?0:G.enableLiteUx)||H.V8||H.C||H.G||H.PF==="EMBEDDED_PLAYER_MODE_PFP")return"EMBEDDED_PLAYER_LITE_MODE_NONE";H=g.hE(H.experiments,"embeds_web_lite_mode");return H===void 0?"EMBEDDED_PLAYER_LITE_MODE_UNKNOWN":H>=0&&H24&&window.matchMedia("(color-gamut: p3)").matches)))return"dhdr";if(P==="338"&&!(g.pC?xJ(53):g.a1&&xJ(64)))return"dopus";var e=G;e=e===void 0?1: e;G={};E.video&&(E.video.width&&(G[ll.WIDTH.name]=E.video.width),E.video.height&&(G[ll.HEIGHT.name]=E.video.height),E.video.fps&&(G[ll.FRAMERATE.name]=E.video.fps*e),E.video.L&&(G[ll.EOTF.name]=E.video.L),E.Xo&&(G[ll.BITRATE.name]=E.Xo*8*e),E.K_==="("&&(G[ll.CRYPTOBLOCKFORMAT.name]="subsample"),E.video.projectionType==="EQUIRECTANGULAR"||E.video.projectionType==="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||E.video.projectionType==="MESH")&&(G[ll.DECODETOTEXTURE.name]="true");var w;((w=E.audio)==null?0:w.numChannels)&& E.K_!=="i"&&E.K_!=="I"&&(G[ll.CHANNELS.name]=E.audio.numChannels);H.G&&uh(E)&&(G[ll.EXPERIMENTAL.name]="allowed");w=g.R(Object.keys(ll));for(e=w.next();!e.done;e=w.next()){e=ll[e.value];var t;if(t=G[e.name])if(t=!(e===ll.EOTF&&E.mimeType.indexOf("vp09.02")>0)){t=e;var k=E;t=!(H.experiments.xp("html5_ignore_h264_framerate_cap")&&t===ll.FRAMERATE&&Kmj(k))}if(t)if(xb(H,e))if(H.C){if(H.C[e.name]1080&&E.QF&&(Q+="; hdcp=2.2");return P==="227"?"hqcenc":P!=="585"&&P!=="588"&&P!=="583"&&P!=="586"&&P!=="584"&&P!=="587"&&P!=="591"&&P!=="592"||H.experiments.xp("html5_enable_new_hvc_enc")?Q_()&&tS()>=21&&g.aD("appletv5")&&(P==="410"||P==="845")?!0:H.isTypeSupported(Q)?!0:"tpus":"newhvc"}; vY=function(H,E,G,P,Q,e,w,t,k,W){this.D=H;this.W=E;this.L=G;this.Da=P;this.VF=Q;this.G=e;this.d5=w;this.dG=t;this.Iw=k;this.loadPolicy=W===void 0?1:W}; ycQ=function(H,E){E=E===void 0?"":E;H.state=1;H.T$=(0,g.ON)();return jRt(E||H.sourceUrl).then(function(G){if(!H.Iu()){H.tK=G.status;G=G.responseText;var P=new DOMParser;G=zA(P,ocu(G),"text/xml").getElementsByTagName("MPD")[0];H.WF=cct(k9(G,"minimumUpdatePeriod"))*1E3||Infinity;b:{if(G.attributes){P=g.R(G.attributes);for(var Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,Q.value==="http://youtube.com/yt/2012/10/10"){P=Q.name.split(":")[1];break b}}P=""}H.C=P;H.isLive=H.WF2147483647?-1:g.lU.setTimeout(H,E||0)}; uM=function(H,E,G){if(Ov(H.L,E)){a:switch(RM(H.L,E).L){case "exit_requested":var P=!0;break a;default:P=!1}if(!P)a:switch(RM(H.L,E).L){case "rendering_stop_requested":P=!0;break a;default:P=!1}if(P&&(RM(H.L,E).T=!0,!G))return;if(Wq(RM(H.L,E)))RM(H.L,E).T=!0,Jc7(H,E,G);else{a:switch(RM(H.L,E).D){case "fill_requested":G=!0;break a;default:G=!1}if(G)RM(H.L,E).T=!0,Ov(H.L,E)&&(H.cT.Xu("ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",E),E=RM(H.L,E),E.D="fill_cancel_requested",E.B.Gl());else{G= Ws(H.L,E);(P=H.Da.get().S.K().experiments.xp("h5_enable_layout_unscheduling_events"))&&(G?H.Rw(E,G):xQ(Error("Layout is null for LayoutUnscheduled event."),E,G,void 0,!1));H.cT.Xu("ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",E);var Q=RM(H.L,E),e=E.slotEntryTrigger,w=Q.Jm.get(e.triggerId);w&&(w.nR(e),Q.Jm.delete(e.triggerId));e=g.R(E.slotFulfillmentTriggers);for(w=e.next();!w.done;w=e.next()){w=w.value;var t=Q.p_.get(w.triggerId);t&&(t.nR(w),Q.p_.delete(w.triggerId))}e=g.R(E.slotExpirationTriggers); for(w=e.next();!w.done;w=e.next())if(w=w.value,t=Q.L_.get(w.triggerId))t.nR(w),Q.L_.delete(w.triggerId);Q.layout!=null&&(e=Q.layout,It(Q,e.layoutExitNormalTriggers),It(Q,e.layoutExitSkipTriggers),It(Q,e.layoutExitMuteTriggers),It(Q,e.layoutExitUserInputSubmittedTriggers),It(Q,e.layoutExitUserCancelledTriggers));Q.B=void 0;Q.W!=null&&(Q.W.release(),Q.W=void 0);Q.G!=null&&(Q.G.release(),Q.G=void 0);Q=H.L;RM(Q,E)&&(Q=qa(Q,E.slotType+"_"+E.slotPhysicalPosition))&&Q.delete(E.slotId);H.cT.Xu("ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED", E);H=g.R(H.W);for(Q=H.next();!Q.done;Q=H.next())Q=Q.value,Q.D5(E),G&&!P&&Q.Rw(E,G)}}}}; rcQ=function(H){return H!=null}; P_=function(H,E,G,P,Q){s9.call(this,H,{J:"div",Y:"ytp-ad-survey-player-overlay",V:[{J:"div",Y:"ytp-ad-survey-player-overlay-instream-info"},{J:"div",Y:"ytp-ad-survey-player-overlay-skip-preview-submit",V:[{J:"div",Y:"ytp-ad-survey-player-overlay-skip-or-preview"},{J:"div",Y:"ytp-ad-survey-player-overlay-submit"}]},{J:"div",Y:"ytp-ad-survey-player-overlay-instream-user-sentiment"}]},"survey-player-overlay",E,G,P);this.D=Q;this.W=this.L=null;this.G=this.HF("ytp-ad-survey-player-overlay-instream-info"); this.skipOrPreview=this.HF("ytp-ad-survey-player-overlay-skip-or-preview");this.submitButton=this.HF("ytp-ad-survey-player-overlay-submit");g.d(this,this.D);this.hide()}; AS=function(H,E,G,P){H.L=3;H.C="The stream is broken @"+H.L_+"/"+G+". Error: "+P+". With input:\n"+E;throw Error(H.C);}; BMt=function(H){g.UM.prototype.load.call(H);var E=AY(H.L).aF;try{H.player.getRootNode().classList.add("ad-created")}catch(k){xQ(k instanceof Error?k:String(k))}var G=H.player.getVideoData(1),P=G&&G.videoId||"",Q=G&&G.getPlayerResponse()||{},e=(Q&&Q.adPlacements||[]).map(function(k){return k.adPlacementRenderer}),w=((Q==null?void 0:Q.adSlots)||[]).map(function(k){return g.X(k,uI)}); Q=Q.playerConfig&&Q.playerConfig.daiConfig&&Q.playerConfig.daiConfig.enableDai||!1;G&&G.T6();e=vNw(e,w,E,AY(H.L).fG);w=G&&G.clientPlaybackNonce||"";G=G&&G.qb||!1;if(Rv(E,!0)&&G){var t;E={};(t=H.player.getVideoData())==null||t.g5("p_cpb",(E.cc=w,E))}t=1E3*H.player.getDuration(1);DW7(H);H.L.L.oD.r7(w,t,G,e.fg,e.fY,e.fg,Q,P)}; XJd=function(H,E){H.XV()&&!Yrl(H.Wr.W)||H.callback.u4(H.slot,H.layout,E)}; oI=function(H){H&&(H.startsWith("https://accounts.google.com/AddSession")?ZIt():H.startsWith("https://accounts.google.com/ServiceLogin")?ZIt():H.startsWith("https://myaccount.google.com")&&g.iP(H).W.endsWith("/youtubeoptions")&&ZIt());if(g.tJ("LOGGED_IN",!0)&&CnT()){var E=g.tJ("VALID_SESSION_TEMPDATA_DOMAINS",[]);var G=g.mS(window.location.href);G&&E.push(G);G=g.mS(H);g.Xa(E,G)||!G&&QQ(H,"/")?(E=G1(H),(E=GEQ(E))?(E=ISQ(E),E=(E=g.cb(E)||null)?W9(E):{}):E=null):E=null;E==null&&(E={});G=E;var P=void 0; CnT()?(P||(P=g.tJ("LOGIN_INFO")),P?(G.session_logininfo=P,G=!0):G=!1):G=!1;G&&s1(H,E)}}; Gbd=function(H,E,G,P,Q,e,w,t){function k(A,m){var u=A.slotId;A=w(A);u=dU(E.W.get(),"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",u);return q0(E,u,m,G,A,"LAYOUT_TYPE_VIDEO_INTERSTITIAL_BUTTONED_LEFT",[new St(Q),e],Q.adLayoutLoggingData)} function W(A){return IXj(H,A,P,k)} if(!gzq(Q))return new T("Received invalid SurveyTextInterstitialRenderer.",{SurveyTextInterstitialRenderer:Q});var I=Q.timeoutSeconds*1E3;return function(A){var m=A.slotId,u={impressionCommands:Q.impressionCommands,completeCommands:Q.timeoutCommands,skipCommands:Q.dismissCommands};A=w(A);m=j5(E,m,G,I,u,new Map,A,W,void 0,cI(E,G,Q.layoutId,"createSubLayoutVodMediaBreakLayoutForSurveyInterstitial"));u=new Zm(m.Y$);A=new Yb(t);return{HK:{layoutId:m.layoutId,layoutType:m.layoutType,w5:m.w5,layoutExitNormalTriggers:[], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:m.f_,clientMetadata:new ZN([].concat(g.EC(m.G2),[u,A])),O2:m.O2,adLayoutLoggingData:m.adLayoutLoggingData},vA:[],W$:m.layoutExitMuteTriggers,Hk:m.layoutExitUserInputSubmittedTriggers,JI:m.layoutExitUserCancelledTriggers,CS:m.CS}}}; Ac=function(H,E,G){return H1/6&&(o8U(G),G.G=G.L);E.au.start()},1E4); g.d(this,this.p_);g.d(this,this.O7);g.d(this,this.Yp);g.d(this,this.dP);g.d(this,this.au)}; dE=function(H,E,G,P,Q,e){e=e===void 0?0:e;B5.call(this,H,E,P,void 0);this.T=G;this.g7=e;this.index=Q||new g.MC}; EnQ=function(H,E){var G;return function(){G||(G=new hh(H,E));return G}}; Rv=function(H,E){E=E===void 0?!1:E;return H.S.K().U("html5_ssap_force_ads_ctmp")?!0:(E||H.S.K().z6())&&H.S.K().U("html5_ssap_pacf_qoe_ctmp")}; Vfd=function(H){H.Zj=g.N0(function(){H.Zj=null;H.L&&!H.W&&(H.L=!1,Vfd(H))},H.nM); var E=H.G;H.G=null;H.D.apply(null,E)}; Jzs=function(H,E){H.D(E);H.W<100&&(H.W++,E.next=H.L,H.L=E)}; pe=function(H,E,G){var P=0;(G===void 0?0:G)&&(E-=Lhw(H,E)*ND(H));G=g.R(H.L);for(var Q=G.next();!Q.done;Q=G.next()){Q=Q.value;if(E>Q.width)E-=Q.width;else break;P++}return P===H.L.length?P-1:P}; $7T=function(H){var E=document.createElement("a");g.HQ(E,H);H=E.href.replace(/^[a-zA-Z]+:\/\//,"//");return"js-"+pZ(H)}; Qk7=function(H){this.VN=tz(H)}; QNs=function(H){var E={},G=H.S.getVideoData(1);E.ASR=iR(function(){var P;return(P=G==null?void 0:G.wT)!=null?P:null}); E.EI=iR(function(){var P;return(P=G==null?void 0:G.eventId)!=null?P:null}); return E}; g.Q0v=function(H){var E=E===void 0?{}:E;var G=G===void 0?"":G;var P=P===void 0?window:P;H=g.eB(H,E);oI(H);G=g.x5(H+G);P=P.location;G=pb(G);G!==void 0&&(P.href=G)}; qC=function(H){g.J.call(this);this.features=[];var E=this.L,G=new Srv(H),P=new AT(H),Q=new Do(H),e=new n6(H);var w=g.KU(H.K())?void 0:new AZ(H);var t=new at(H),k=new tFU(H),W=new Fmv(H),I=new Oa(H);var A=g.KU(H.K())?new Tod(H):void 0;var m;var u=(m=H.K().getWebPlayerContextConfig())!=null&&m.cinematicSettingsAvailable?new fqn(H):void 0;m=new K6(H);var v=H.U("enable_courses_player_overlay_purchase")?new DJn(H):void 0;var n=g.sn(H.K())?new pJ7(H):void 0;var O=new HH(H);var q=H.K().D?new HJt(H):void 0; var N=g.L3(H.K())?new nFv(H):void 0;var r=H.U("web_player_move_autonav_toggle")&&H.K().yG?new JGU(H):void 0;var B=g.sn(H.K())?new Edd(H):void 0;var l=H.U("web_enable_speedmaster")&&g.sn(H.K())?new jC(H):void 0;var S=H.K().vt?void 0:new Giq(H);var z=H.U("report_pml_debug_signal")?new PWj(H):void 0;var Pt=new Av(H),eu=new cq(H);var QM=g.qt(H.K())?new QFn(H):void 0;var $Q=navigator.mediaSession&&window.MediaMetadata&&H.K().hH?new NC(H):void 0;var En=H.U("html5_enable_drc")&&!H.K().C?new VC(H):void 0; var Dj=new sFq(H);var gl=g.sn(H.K())?new odt(H):void 0;var oD=H.U("html5_enable_d6de4")?new Y2(H):void 0;var GZ=g.sn(H.K())&&H.U("web_sleep_timer")?new yh(H):void 0;var qT=g.L3(H.K())?new r4Q(H):void 0;var c=new tR(H),FR=new eyM(H),y3=new zZM(H);var jH=H.U("enable_sabr_snackbar_message")?new wXq(H):void 0;var E9=H.U("web_enable_timely_actions")?new yO(H):void 0;var zZ=new iZ(H);var hd,bK;var K=((hd=H.K())==null?0:(bK=hd.getWebPlayerContextConfig())==null?0:bK.enableFullscreenComponentsFeature)?new Sl(H): void 0;hd=new b$(H);bK=H.U("web_player_loop_settings_menu")&&H.K().o2?new oNT(H):void 0;var Ht=g.KU(H.K())?void 0:new hyd(H);var DR=new $iU(H),wf=new i$(H),Fd=new KHv(H),tE=new tM1(H);var F1=g.sn(H.K())&&H.K().U("delhi_modern_web_player")?new Zen(H):void 0;var pw=H.K().G?void 0:new tWn(H);E.call(this,G,P,Q,e,w,t,k,W,I,A,u,m,v,n,O,q,N,r,B,l,S,z,Pt,eu,QM,void 0,$Q,En,Dj,void 0,gl,oD,GZ,qT,void 0,c,FR,y3,void 0,jH,E9,zZ,K,hd,void 0,bK,void 0,Ht,DR,wf,Fd,tE,F1,pw,new Mkq(H))}; kin=function(H,E){return function(G,P){var Q={Gb:!0};P&&Object.assign(Q,P);G=zCn(G,void 0,void 0,Q);try{var e=new H,w=e.VN;Iq(E)(w,G);var t=e}finally{G.free()}return t}}; g4M=function(H){switch(typeof H){case "boolean":return W1d||(W1d=[0,void 0,!0]);case "number":return H>0?void 0:H===0?ID1||(ID1=[0,void 0]):[-H,void 0];case "string":return[0,H];case "object":return H}}; a5l=function(H){var E,G;return g.L(function(P){if(P.L==1)return g.U(P,GAv(H),2);G=E=P.W;return P.return(G)})}; ACu=function(H){return isNaN(H)?0:Math.max((Date.now()-H)/1E3-30,0)}; vt=function(H,E,G){H.JK[H.Mz+H.wX*2]=E>>>8&255;H.JK[H.Mz+H.wX*2+1]=E&255;H.JK[H.YB+H.wX]=G&255;H.wX++;E===0?H.Jv[G*2]++:(H.matches++,E--,H.Jv[(F3[G]+256+1)*2]++,H.E$[(E<256?HF[E]:HF[256+(E>>>7)])*2]++);return H.wX===H.Ur-1}; Zq=function(H,E){this.Du=H;this.L=E===void 0?!1:E;this.W=!1}; Pq=function(H){return mX(H)/H.playbackRate}; lp=function(H){this.value=H}; Ucd=function(H){var E,G,P,Q;return!!((E=H.U2)==null?0:(G=E.title)==null?0:G.content)||!!((P=H.U2)==null?0:(Q=P.bodyText)==null?0:Q.content)}; bn=function(H){var E=H.G.Hy();return E?E.info:Wg(H)}; mij=function(H,E){ta(H,E.lH(),function(G,P,Q){E.Br(G,P,Q)})}; g.R=function(H){var E=typeof Symbol!="undefined"&&Symbol.iterator&&H[Symbol.iterator];if(E)return E.call(H);if(typeof H.length=="number")return{next:SYn(H)};throw Error(String(H)+" is not an iterable or ArrayLike");}; PH=function(H){return H&&H.baseUrl||""}; t3=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u){g.J.call(this);this.callback=H;this.C_=E;this.Ge=G;this.JG=P;this.d5=Q;this.q4=e;this.l4=w;this.yB=t;this.slot=k;this.layout=W;this.ET=I;this.Ou=A;this.aq=m;this.Da=u;this.Zr=!0;this.j1=!1;this.YH=[];this.Dc=-1;this.ge=!1;this.Wr=new CVt}; uiM=function(H){var E=Zi(H.clientMetadata,"metadata_type_ad_placement_config").kind,G=Zi(H.clientMetadata,"metadata_type_linked_in_player_layout_type");return{cpn:H.layoutId,adType:Zqv(G),adBreakType:Z2(E)}}; Rz=function(H){g.MQ(H.info.uJ.info)||H.info.uJ.info.wV();if(H.L&&H.info.type===6)return H.L.g7;if(g.MQ(H.info.uJ.info)){var E=g.h_(H);var G=0;E=g.Fu(E,1936286840);E=g.R(E);for(var P=E.next();!P.done;P=E.next())P=Kkd(P.value),G+=P.Wq[0]/P.timescale;G=G||NaN;if(!(G>=0))a:{G=g.h_(H);E=H.info.uJ.L;for(var Q=P=0,e=0;Tz(G,P);){var w=VQ(G,P);if(w.type===1836476516)Q=g.j_(w);else if(w.type===1836019558){!Q&&E&&(Q=Rt(E));if(!Q){G=NaN;break a}var t=Ph(w.data,w.dataOffset,1953653094),k=t;t=Q;var W=Ph(k.data, k.dataOffset,1952868452);k=Ph(k.data,k.dataOffset,1953658222);var I=Kh(W);Kh(W);I&2&&Kh(W);W=I&8?Kh(W):0;var A=Kh(k),m=A&1;I=A&4;var u=A&256,v=A&512,n=A&1024;A&=2048;var O=ae(k);m&&Kh(k);I&&Kh(k);for(var q=m=0;q0?(H="sms:"+H[0],P.messageText&&(H+="?&body="+encodeURI(P.messageText))):H="",this.zU=!0,g.HQ(this.button,g.x5(H,[Ryd]))):(G=g.X(G,JC1))&&!this.W&&(H=G.phoneNumber? "tel:"+G.phoneNumber:"",this.zU=!0,g.HQ(this.button,g.x5(H,[rCv])));this.S.U("embeds_enable_info_panel_dismissal")&&!H&&(G=g.X(E==null?void 0:E.onTap,ab),P=g.X(G,Byd))&&(this.zU=!0,this.L=G,this.feedbackToken=P.feedbackToken);var Q;if(G=(Q=E.disclaimerText)==null?void 0:Q.content){this.button.style.borderBottom="1px solid white";this.button.style.paddingBottom="16px";var e,w;this.update({label:(e=E.bodyText)==null?void 0:e.content,icon:this.S.U("embeds_enable_info_panel_dismissal")?YLM((w=E.icon)== null?void 0:w.iconType):Ki(),disclaimer:G})}else{this.disclaimer.style.display="none";var t,k;this.update({label:(t=E.bodyText)==null?void 0:t.content,icon:this.S.U("embeds_enable_info_panel_dismissal")?YLM((k=E.icon)==null?void 0:k.iconType):Ki()})}this.S.setTrackingParams(this.element,E.trackingParams||null);this.zU&&(this.G={externalLinkData:{url:H}})}; z1w=function(H){try{var E=(new g.uo(H,!0)).get("n");if(E){var G=H.match(/\/n\/([^/]+)/);if(G&&G[1]&&G[1]!==E)return H.replace("/n/"+G[1],"/n/"+E)}}catch(P){g.p5(P)}return H}; ZJT=function(H,E){if(E.itagDenylist)for(var G=0;G0)E=lFM(H,P);else if(!H.U("html5_deprecate_adaptive_formats_string")){H.g5("pafmtstr",{s:H.adaptiveFormats.substring(0,50)});if((P=H.adaptiveFormats)&&!Zk(H)){H.lJ.T.G&&(CK=!0);P=Cp(P);E=H.QF;var Q=H.lengthSeconds,e=H.isLivePlayback;G=H.tT;var w=H.lJ,t=CWd(P);if(e||G){w=w==null?void 0:w.experiments;Q=new gj("",w,!0);Q.T6=!0;Q.isManifestless=!0;Q.W=!G;Q.isLive=!G; Q.tT=G;e=g.R(P);for(t=e.next();!t.done;t=e.next()){var k=t.value;t=mI7(k,E);var W=LK(k.url,k.sp,k.s),I=W.get("id");I&&I.includes("%7E")&&(Q.p_=!0);var A=void 0;I=(A=w)==null?void 0:A.xp("html5_max_known_end_time_rebase");A=Number(k.target_duration_sec)||5;k=Number(k.max_dvr_duration_sec)||14400;var m=Number(W.get("mindsq")||W.get("min_sq")||"0"),u=Number(W.get("maxdsq")||W.get("max_sq")||"0")||Infinity;Q.iG=Q.iG||m;Q.LM=Q.LM||u;var v=!wU(t.mimeType);W&&jI(Q,new lz(W,t,{g7:A,xi:v,G9:k,iG:m,LM:u,r4:300, tT:G,kJ:I}))}E=Q}else if(t==="FORMAT_STREAM_TYPE_OTF"){Q=Q===void 0?0:Q;G=new gj("",w==null?void 0:w.experiments,!1);G.duration=Q||0;w=g.R(P);for(Q=w.next();!Q.done;Q=w.next())if(W=Q.value,Q=mI7(W,E,G.duration),e=LK(W.url,W.sp,W.s))Q.streamType==="FORMAT_STREAM_TYPE_OTF"?jI(G,new UQ(e,Q,"sq/0")):(t=$5(W.init),W=$5(W.index),jI(G,new Xv(e,Q,t,W)));G.isOtf=!0;E=G}else{Q=Q===void 0?0:Q;G=new gj("",w==null?void 0:w.experiments,!1);G.duration=Q||0;w=g.R(P);for(Q=w.next();!Q.done;Q=w.next())W=Q.value,Q= mI7(W,E,G.duration),e=$5(W.init),t=$5(W.index),(W=LK(W.url,W.sp,W.s))&&jI(G,new Xv(W,Q,e,t));E=G}P.length>0&&(P=P[0],H.K().playerStyle==="hangouts-meet"&&P.url&&(P=g.oz(P.url),H.xx=H.xx||Number(P.expire)));P=H.isLivePlayback&&!H.tT&&!H.IJ&&!H.isPremiere;H.U("html5_live_head_playable")&&(!oN(H)&&P&&H.g5("missingLiveHeadPlayable",{}),H.lJ.p_==="yt"&&(E.z$=!0))}else E=null;H.g5("pafmts",{isManifestFilled:!!E})}if(!E)return!1;R5(H,E);return!0}; K6=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);We(this.api,"updateFullerscreenEduButtonSubtleModeState",function(P){E.updateFullerscreenEduButtonSubtleModeState(P)}); We(this.api,"updateFullerscreenEduButtonVisibility",function(P){E.updateFullerscreenEduButtonVisibility(P)}); var G=H.K();H.U("external_fullscreen_with_edu")&&G.externalFullscreen&&zL(G)&&G.controlsType==="1"&&this.events.Z(H,"standardControlsInitialized",function(){E.L=new hZ(H);g.d(E,E.L);H.Vq(E.L)})}; vSw=function(H){for(var E=Array(H.L),G=0;G2147483647?"0":String(H)}; jst=function(H,E){zyj(H.program,E.Wdm)&&(Ld("bg_i",void 0,"player_att"),g.Q4.initialize(H,function(){Ld("bg_l",void 0,"player_att");na=(0,g.ON)()},E.cspNonce,E.Yx))}; B3=function(H,E,G,P,Q,e,w){g.J.call(this);this.callback=H;this.JG=E;this.d5=G;this.l4=P;this.jq=Q;this.aq=e;this.Da=w;this.Zr=!0;this.j1=!1}; g.hS=function(H,E){g.J.call(this);this.Fo=H;this.B=E;this.G=NaN;this.T=this.C=this.started=!1;this.W=[];this.N=new g.Wt(this.sync,250,this);g.d(this,this.N);this.D=new g.Wt(this.sync,0,this);g.d(this,this.D);this.L=new zqn}; Tyn=function(H){for(var E=new Uint8Array(H.length),G=0;G>31));tb(H,16,E.ULp);tb(H,17,E.detailedNetworkType);tb(H,18,E.Ia);tb(H,19,E.UK);tb(H,21,E.iMJ);tb(H,23,E.w1);tb(H,28,E.Cq);tb(H,29,E.OMN);tb(H,34,E.visibility);G=E.playbackRate;if(G!==void 0){var P=new ArrayBuffer(4);(new Float32Array(P))[0]=G;G=(new Uint32Array(P))[0];if(G!==void 0)for($G(H,285),fH(H,4),P=0;P<4;)H.view.setUint8(H.pos,G&255),G>>=8,H.pos+=1,P+=1}tb(H,36,E.sJ); Qf(H,38,E.mediaCapabilities,SLM,3);tb(H,39,E.IDo);tb(H,40,E.LQ);tb(H,44,E.playerState);Kc(H,46,E.aB);tb(H,48,E.tq);tb(H,50,E.Rt);tb(H,51,E.uN);tb(H,54,E.EV);if(E.aC)for(G=0;G-1&&(0,g.ON)()-P.L_>=7}}; IWj=function(H,E){!E.info.uJ.qd()&&E.info.L===0&&(g.MQ(E.info.uJ.info)||E.info.uJ.info.wV())&&kjq(E);if(E.info.type===1)try{CkU(H,E),W4u(H,E)}catch(Q){g.h3(Q);var G=$d(E.info);G.hms="1";H.loader.handleError("fmt.unparseable",G||{},1)}G=E.info.uJ;G.o9(E);H.C&&vmd(H.C,E);if(G.Dr()&&H.policy.L)a:{H=H.loader.ou;E=E.info.clipId;G=g.KJ(G.info,H.T6);if(E){var P=OL({itag:G.itag,lmt:H.T6?0:G.lmt||0,xtags:G.xtags});if(H.BF[P])break a;H.BF[P]=E}H.Yp.push(G)}}; QA=function(H,E,G,P){g.z7.call(this);var Q=this;this.Rx=H;this.start=E;this.end=G;this.isActive=P;this.appendWindowStart=0;this.appendWindowEnd=Infinity;this.timestampOffset=0;this.b$={error:function(){!Q.Iu()&&Q.isActive&&Q.publish("error",Q)}, updateend:function(){!Q.Iu()&&Q.isActive&&Q.publish("updateend",Q)}}; this.Rx.QY(this.b$);this.F8=this.isActive}; Akq=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",j:{d:"m 14.8,21.9 -4.2,-4.2 -1.4,1.4 5.6,5.6 12,-12 -1.4,-1.4 -10.6,10.6 z",fill:"#fff"}}]}}; mjw=function(H,E){H.L.has(E.jI())?xQ("Trying to register an existing AdErrorInfoSupplier."):H.L.set(E.jI(),E)}; uxs=function(H,E){z8(H);if(E){var G=g.b8.getState().entities;G=q4(G,"featuredProductsEntity",E);if(G!=null&&G.productsData){E=[];G=g.R(G.productsData);for(var P=G.next();!P.done;P=G.next()){P=P.value;var Q=void 0;if((Q=P)!=null&&Q.identifier&&P.featuredSegments){H.E7.push(P);var e=void 0;Q=g.R((e=P)==null?void 0:e.featuredSegments);for(e=Q.next();!e.done;e=Q.next()){var w=e.value;e=$Hw(w.startTimeSec);e!==void 0&&(w=$Hw(w.endTimeSec),E.push(new g.cP(e*1E3,w===void 0?0x7ffffffffffff:w*1E3,{id:P.identifier, namespace:"featured_product"})))}}}H.S.MV(E)}}}; v5T=function(H,E){H.Fo.g5("sdai",{adj4t:E.toFixed(3)});H.T$=E;E+=1;H.W=E;H.G=E;iz(H).then(function(G){qS(H,G)},function(){bz(H)})}; x9=function(H){return H===void 0||H.startSec===void 0||H.endSec===void 0?!1:!0}; Meu=function(){var H=H===void 0?2E3:H;var E=E===void 0?15:E;var G=G===void 0?5:G;var P=P===void 0?2:P;return window&&"requestIdleCallback"in window?new Xl(function(Q){requestIdleCallback(function(){Q()},{timeout:H})}):yZ1(H,E,G,P)}; g.dv=function(H,E,G){return H.app.K().Fa?E:g.ct("$DESCRIPTION ($SHORTCUT)",{DESCRIPTION:E,SHORTCUT:G})}; MiT=function(H,E){var G=E.filter(function(Q){return ld(H,Q)===10}),P=E.filter(function(Q){return ld(H,Q)!==10}); return H.D.oEm?function(){var Q=g.c4.apply(0,arguments);return g.L(function(e){if(e.L==1)return g.U(e,H.UfF.apply(H,[G].concat(g.EC(Q))),2);H.wL.apply(H,[P].concat(g.EC(Q)));g.P2(e)})}:function(){var Q=g.c4.apply(0,arguments); H.I5p.apply(H,[G].concat(g.EC(Q)));H.wL.apply(H,[P].concat(g.EC(Q)))}}; djl=function(H,E){if(E!==H.icon){switch(E){case 3:var G=VT();break;case 1:G=Akq();break;case 2:G={J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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 M16,19.02 L16,12.00 L18,12.00 L18,17.86 L23.10,20.81 L22.10,22.54 L16,19.02 Z"}}]};break;case 4:G={J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path", La:!0,j:{d:"M7,27.5h22L18,8.5L7,27.5z M19,24.5h-2v-2h2V24.5z M19,20.5h-2V16.5h2V20.5z",fill:"#fff"}}]}}H.updateValue("icon",G);H.icon=E}}; DjQ=function(H,E){var G="";E=E.x$();E.totalLength<=H.policy.cg&&(H=vA(E),H=pE(H),G=m4(H)?H:"");return G}; hm=function(H,E){E.L>=2&&(H.slot_pos=E.adPodIndex);H.autoplay="1"}; zP=function(H,E,G,P){(new Uint8Array(H.data.buffer,H.offset,P)).set(new Uint8Array(E.buffer,G+E.byteOffset,P));H.offset+=P}; TP=function(H,E,G,P,Q){Q=Q===void 0?!1:Q;A9.call(this,"player-overlay",H,{},E,P);this.videoAdDurationSeconds=G;this.interactionLoggingClientData=P;this.N1=Q}; LP=function(H,E){H=Number(g.Mo(E,H.W,H.G).toFixed(2));E=Math.floor((H+.001)*100%5+2E-15);var G=H;E!==0&&(G=H-E*.01);return Number(G.toFixed(2))}; K4d=function(H){H.loading=!0;H.AG=!1;if(yC1(H))g.n5M(H.videoId).then(function(P){var Q;if((Q=H.playerResponse)!=null&&Q.streamingData){Q=[];P=g.R(P);for(var e=P.next();!e.done;e=P.next())e=Object.assign({},e.value),e.signatureCipher="",Q.push(e);Q.length<2&&H.g5("offmlf",{len:Q.length});Q=lFM(H,Q);As(H)&&aWl(Q,!1);R5(H,Q);H.g5("dlr",{})}else H.g5("offsdm",{cotn:H.tN?H.tN.cotn:"0",cpn:H.clientPlaybackNonce})}).then(function(){H.M7()}); else{m4(H.iH)||g.p5(new g.LN("DASH MPD Origin invalid: ",H.iH));var E=H.iH,G;E&&((G=H.lJ.Bo())==null?0:G.L.A7(xIt))&&(E=z1w(E));G=g.hE(H.lJ.experiments,"dash_manifest_version")||4;E=g.eB(E,{mpd_version:G});H.isLowLatencyLiveStream&&H.latencyClass!=="NORMAL"||(E=g.eB(E,{pacing:0}));Ofw(E,H.lJ.experiments,H.isLivePlayback).then(function(P){H.Iu()||(R5(H,P,!0),KT("mrc",void 0,H.L_),H.M7())},function(P){H.Iu()||(H.loading=!1,H.publish("dataloaderror",new g.q$("manifest.net.retryexhausted",{backend:"manifest", rc:P.status},1)))}); KT("mrs",void 0,H.L_)}}; o4v=function(H,E){var G=g.DB(H,0,1937011556),P=g.DB(H,0,1953654136);if(!G||!P||H.getUint32(G.offset+12)>=2)return null;var Q=new DataView(E.buffer,E.byteOffset,E.length),e=g.DB(Q,0,1937011556);if(!e)return null;E=Q.getUint32(e.dataOffset+8);P=Q.getUint32(e.dataOffset+12);if(P!==1701733217&&P!==1701733238)return null;P=new h1U(H.byteLength+E);zP(P,H,0,G.offset+12);P.data.setInt32(P.offset,2);P.offset+=4;zP(P,H,G.offset+16,G.size-16);zP(P,Q,Q.byteOffset+e.dataOffset+8,E);zP(P,H,G.offset+G.size,H.byteLength- (G.offset+G.size));G=g.R([1836019574,1953653099,1835297121,1835626086,1937007212,1937011556]);for(Q=G.next();!Q.done;Q=G.next())Q=g.DB(H,0,Q.value),P.data.setUint32(Q.offset,Q.size+E);H=g.DB(P.data,0,1953654136);P.data.setUint32(H.offset+16,2);return P.data}; aWl=function(H,E){if(!H.L["0"]){var G=new T0("0","fakesb",{video:new bd(0,0,0,void 0,void 0,"auto")});H.L["0"]=E?new dE(new g.uo("http://www.youtube.com/videoplayback"),G,"fake"):new Xv(new g.uo("http://www.youtube.com/videoplayback"),G,new xi(0,0),new xi(0,0))}}; Vh=function(){wc.apply(this,arguments)}; FM=function(H){var E=null;E={J:"button",QN:["ytp-sfn-close","html5-video-info-panel-close","ytp-button"],j:{title:"close"},iJ:"[X]"};g.D.call(this,{J:"div",QN:["html5-video-info-panel","ytp-sfn"],V:[E,{J:"div",QN:["html5-video-info-panel-content","ytp-sfn-content"],V:[{J:"div",V:[{J:"div",iJ:"Video ID / sCPN"},{J:"span",iJ:"{{video_id_and_cpn}}",Y:"ytp-sfn-cpn"}]},{J:"div",V:[{J:"div",iJ:"Viewport / Frames"},{J:"span",iJ:"{{dims_and_frames}}"}]},{J:"div",V:[{J:"div",iJ:"Current / Optimal Res"},{J:"span", iJ:"{{resolution}}"}]},{J:"div",V:[{J:"div",iJ:"Volume / Normalized"},{J:"span",iJ:"{{volume}}"}]},{J:"div",V:[{J:"div",iJ:"Codecs"},{J:"span",iJ:"{{codecs}}"}]},{J:"div",j:{style:"{{shader_info_style}}"},V:[{J:"div",iJ:"Shader Info"},{J:"span",iJ:"{{shader_info}}"}]},{J:"div",j:{style:"{{color_style}}"},V:[{J:"div",iJ:"Color"},{J:"span",iJ:"{{color}}"}]},{J:"div",j:{style:"{{drm_style}}"},V:[{J:"div",iJ:"Protected"},{J:"span",iJ:"{{drm}}"}]},{J:"div",j:{style:"{{bandwidth_style}}"},V:[{J:"div",iJ:"Connection Speed"}, {J:"span",V:[{J:"span",iJ:"{{bandwidth_chart}}"},{J:"span",iJ:"{{bandwidth_kbps}}"}]}]},{J:"div",j:{style:"{{network_activity_style}}"},V:[{J:"div",iJ:"Network Activity"},{J:"span",V:[{J:"span",iJ:"{{network_activity_chart}}"},{J:"span",iJ:"{{network_activity_bytes}}"}]}]},{J:"div",V:[{J:"div",iJ:"Buffer Health"},{J:"span",V:[{J:"span",iJ:"{{buffer_health_chart}}"},{J:"span",iJ:"{{buffer_health_seconds}}"}]}]},{J:"div",j:{style:"{{live_latency_style}}"},V:[{J:"div",iJ:"Live Latency"},{J:"span",V:[{J:"span", iJ:"{{live_latency_chart}}"},{J:"span",iJ:"{{live_latency_secs}}"}]}]},{J:"div",j:{style:"{{live_mode_style}}"},V:[{J:"div",iJ:"Live Mode"},{J:"span",iJ:"{{live_mode}}"}]},{J:"div",j:{style:"{{playback_categories_style}}"},V:[{J:"div",iJ:"Playback Categories"},{J:"span",iJ:"{{playback_categories}}"}]},{J:"div",j:{style:"{{fmt_debug_info_style}}"},V:[{J:"div",iJ:"Format Debug Info"},{J:"span",iJ:"{{fmt_debug_info}}"}]},{J:"div",V:[{J:"div",iJ:"Mystery Text"},{J:"span",iJ:"{{debug_info}}"}]},{J:"div", j:{style:"{{extra_debug_info_style}}"},V:[{J:"div",iJ:""},{J:"span",V:[{J:"span",iJ:"{{extra_debug_info}}"}]}]},{J:"div",V:[{J:"div",iJ:"Date"},{J:"span",iJ:"{{date}}"}]},{J:"div",j:{style:"{{cotn_and_local_media_style}}"},V:[{J:"div",iJ:"COTN / Local Media"},{J:"span",iJ:"{{cotn_and_local_media}}"}]},{J:"div",j:{style:"{{release_style}}"},V:[{J:"div",iJ:"Player Release"},{J:"span",iJ:"{{release_name}}"}]}]}]});this.cF=H;this.position=0;this.T=!0;E?this.Z(this.HF("ytp-sfn-close"),"click",this.hide): this.Z(this.element,"click",this.hide);H=[0,18750,37500,81250,128E3,256E3,512E3,2048E3,8192E3,32768E3,131072E3];E="#000 #d53e4f #f46d43 #fdae61 #fee08b #e6f598 #abdda4 #66c2a5 #3288bd #124588 #fff".split(" ");var G=H.map(function(P){return P/4}); this.B={};this.L=new SC(300,1,150,H,E);g.d(this,this.L);this.updateValue("bandwidth_chart",this.L);this.G=new SC(300,1,150,[0,3,10,15,30,60,90],"#000 #66c2a5 #abdda4 #e6f598 #fdae61 #f46d43 #a8330f".split(" "));g.d(this,this.G);this.updateValue("live_latency_chart",this.G);this.W=new SC(300,1,150,[0,15,30,60,90,120],"#000 #fdae61 #e6f598 #66c2a5 #3288bd #fff".split(" "));g.d(this,this.W);this.updateValue("buffer_health_chart",this.W);this.C=new SC(300,1,150,G,E);g.d(this,this.C);this.updateValue("network_activity_chart", this.C);this.delay=new g.Wt(this.r5,500,this);g.d(this,this.delay);this.D=new g.Wt(this.N,2E4,this);g.d(this,this.D)}; jdU=function(H){H.removeCueRange(H.Dx);H.Dx=null}; ckM=function(){}; Ncq=function(H,E,G){var P=H.index.x5(E),Q=H.index.getStartTime(E),e=H.index.getDuration(E);G?e=G=0:G=H.info.Xo*e;return new f6([new jf(3,H,void 0,"otfCreateRequestInfoForSegment",E,Q,e,0,G)],P)}; ykl=function(H,E,G){for(var P=!1,Q=g.R(H.LW.entries()),e=Q.next();!e.done;e=Q.next())e=g.R(e.value).next().value,e.slotType==="SLOT_TYPE_PLAYER_BYTES"&&e.f_==="core"&&(P=!0);if(P){a:if(!G){H=g.R(H.LW.entries());for(G=H.next();!G.done;G=H.next())if(P=g.R(G.value),G=P.next().value,P=P.next().value,G.slotType==="SLOT_TYPE_IN_PLAYER"&&G.f_==="core"){G=P.layoutId;break a}G=void 0}G?E.Cs(G):xQ("No triggering layout ID available when attempting to mute.")}}; p6=function(H,E,G){var P=Zi(H.Za().clientMetadata,"metadata_type_linked_in_player_layout_id");return P?P:(xQ("Tried to retrieve Linked InPlayer LayoutId but missing ClientMetadata",H.Zu(),H.Za(),{requestingSlot:E,requestingLayout:G}),null)}; Hw=function(H){return!(!H.L||H.L.uJ===H.uJ)}; bfU=function(H,E){var G={initDataTypes:["cenc","webm"],audioCapabilities:[],videoCapabilities:[]};if(H.U("html5_enable_vp9_fairplay")&&h4(E))return G.audioCapabilities.push({contentType:'audio/mp4; codecs="mp4a.40.5"'}),G.videoCapabilities.push({contentType:'video/mp4; codecs="avc1.4d400b"'}),[G];Bh(E)&&(G.initDataTypes=["keyids","cenc"]);for(var P=g.R(Object.keys(H.L[E.flavor])),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var e=Q.indexOf("audio/")===0,w=e?G.audioCapabilities:G.videoCapabilities;E.flavor!== "widevine"||H.T?w.push({contentType:Q}):e?w.push({contentType:Q,robustness:"SW_SECURE_CRYPTO"}):(g.pC&&g.aD("windows nt")&&!H.U("html5_drm_enable_moho")||w.push({contentType:Q,robustness:"HW_SECURE_ALL"}),e=Q,H.lJ.T.G&&Q.includes("vp09")&&(e=Q+"; experimental=allowed"),w.push({contentType:e,robustness:"SW_SECURE_DECODE"}),uk(H.lJ)==="MWEB"&&(mD()||du())&&(H.g5("swcrypto",{}),w.push({contentType:Q,robustness:"SW_SECURE_CRYPTO"})))}return[G]}; g.ah=function(H){return!!(H.iH||H.Ta||H.xW||H.hlsvp||H.Ac())}; ifs=function(H){this.slot=H;this.Jm=new Map;this.p_=new Map;this.L_=new Map;this.WF=new Map;this.G=this.layout=this.W=this.B=void 0;this.C=this.T=!1;this.N=[];this.L="not_scheduled";this.D="not_filled"}; zcq=function(H,E){function G(P,Q){E(P,Q)} if(H.W==null)return!1;H.L=g.VS(H.W,function(P){return P!=null&&P.X_()}); H.L&&(H.L.init(G)?Knw(H.L.L):E(H.L.L.Zz(),H.L));return H.L!=null}; g9=function(H){return!(!H.CL||!H.lJ.N)&&H.Ac()}; qww=function(H,E,G){var P=G.reason==="m"||G.reason==="s";H.policy.C5&&az&&g.Ez&&(!P||G.L<1080)&&(E=E.filter(function(W){return W.video&&(!W.W||W.W.powerEfficient)})); if(E.length>0)if(Pk()){var Q=ozq(H,E);E=E.filter(function(W){return!!W&&!!W.video&&W.K_===Q[W.video.qualityOrdinal].K_})}else{var e,w,t=(e=E[0])==null?void 0:(w=e.video)==null?void 0:w.qualityOrdinal; if(t){G=E.filter(function(W){return!!W&&!!W.video&&W.video.qualityOrdinal===t}); var k=ozq(H,G)[t].K_;E=E.filter(function(W){return!!W&&!!W.video&&W.K_===k})}}return E}; rkM=function(H,E){if(E=E.playerControlsOverlayRenderer)UzU(H,E.controlBgHtml),E.mutedAutoplay?(E=g.X(E.mutedAutoplay,RLw))&&E.endScreen&&(E=g.X(E.endScreen,Jks))&&E.text&&(H.Re=g.b_(E.text)):H.mutedAutoplay=!1}; g.uo=function(H,E){return pH[h[7]](this,23,H,E)}; g.Eg=function(H,E,G,P){this.level=H;this.D=E;this.loaded=new Set;this.level=H;this.D=E;H=G.split("#");this.width=Math.floor(Number(H[0]));this.height=Math.floor(Number(H[1]));this.frameCount=Math.floor(Number(H[2]));this.columns=Math.floor(Number(H[3]));this.rows=Math.floor(Number(H[4]));this.L=Math.floor(Number(H[5]));this.G=H[6];this.signature=H[7];this.videoLength=P}; Bcj=function(H){var E;switch((E=H.X.playerCanaryStage)==null?void 0:E.toLowerCase()){case "xsmall":return"HTML5_PLAYER_CANARY_STAGE_XSMALL";case "small":return"HTML5_PLAYER_CANARY_STAGE_SMALL";case "medium":return"HTML5_PLAYER_CANARY_STAGE_MEDIUM";case "large":return"HTML5_PLAYER_CANARY_STAGE_LARGE";default:return"HTML5_PLAYER_CANARY_STAGE_UNSPECIFIED"}}; aO=function(H,E,G,P){if(!(G.Dr()||G.Tw()||G.G||!dj(G.Du,H.policy,H.D,H.loader.wW)||G.info.K_==="f"||H.policy.L)){if(P){P=H.T;var Q=G.info;P=B3U(P,Q.video?P.policy.Pc:P.policy.RO,Q.Xo)}else P=0;P=G.oY(P);H=I4v(H,P);H3(P)&&YwT(E,H);G.G=!0}}; LA=function(H,E,G){for(var P=[],Q=g.R(H.layoutExitNormalTriggers||[]),e=Q.next();!e.done;e=Q.next()){e=Yc(e.value,E,G);if(e instanceof T)return e;P.push(e)}Q=[];e=g.R(H.layoutExitSkipTriggers||[]);for(var w=e.next();!w.done;w=e.next()){w=Yc(w.value,E,G);if(w instanceof T)return w;Q.push(w)}e=[];w=g.R(H.layoutExitMuteTriggers||[]);for(var t=w.next();!t.done;t=w.next()){t=Yc(t.value,E,G);if(t instanceof T)return t;e.push(t)}w=[];H=g.R(H.layoutExitUserInputSubmittedTriggers||[]);for(t=H.next();!t.done;t= H.next()){t=Yc(t.value,E,G);if(t instanceof T)return t;w.push(t)}return{layoutExitNormalTriggers:P,layoutExitSkipTriggers:Q,layoutExitMuteTriggers:e,layoutExitUserInputSubmittedTriggers:w,layoutExitUserCancelledTriggers:[]}}; XWM=function(H,E){var G=E.getAudioTrack();return G.id!=="und"?g.W2(H,function(P){var Q;return((Q=P.CP)==null?void 0:Q.name)===G.getLanguageInfo().name}):H}; Zfn=function(H){var E={};g.D9(H,function(G){var P=G.event,Q=E[P];E.hasOwnProperty(P)?Q!==null&&(G.equals(Q)||(E[P]=null)):E[P]=G}); C87(H,function(G){return E[G.event]===null})}; g.BC=function(H,E,G,P){U4(H,G,E.toFixed(3)+":"+P.join(":"))}; E0=function(H){var E;if(!(E=Fa&&H.T6()&&H.Gq()&&(H.drmProduct==="1"?!1:!0)&&H.U("html5_sabr_live_drm_streaming_xhr"))){E=H.T6()&&!H.Gq()&&Fa;var G=H.T6()&&H.latencyClass!=="ULTRALOW"&&!H.isLowLatencyLiveStream&&H.U("html5_sabr_live_normal_latency_streaming_xhr"),P=H.isLowLatencyLiveStream&&H.U("html5_sabr_live_low_latency_streaming_xhr"),Q=H.latencyClass==="ULTRALOW"&&H.U("html5_sabr_live_ultra_low_latency_streaming_xhr");E=E&&(G||P||Q)}G=E;E=H.enableServerStitchedDai&&G&&H.U("html5_enable_sabr_ssdai_streaming_xhr"); G=!H.enableServerStitchedDai&&G;P=H.T6()&&!Fa&&H.U("html5_enable_sabr_live_non_streaming_xhr");H=Fa&&(H.mV()||cy(H)&&H.U("html5_enable_sabr_for_lifa_eligible_streams"));return E||G||P||H}; Cod=function(H){H.L&&(H.L.dispose(),H.QG("ismp_d"))}; g.sn=function(H){return uk(H).toUpperCase()==="WEB"}; g51=function(H){for(var E in H)return H[E]}; zt=function(H){this.VN=tz(H)}; x1u=function(){if(g.Xj("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("Biscotti id fetching has been disabled entirely.");if(!$F())return Error("User has not consented - not fetching biscotti id.");var H=g.tJ("PLAYER_VARS",{});if(g.bO(H,"privembed",!1)=="1")return Error("Biscotti ID is not available in private embed mode");if(hQU(H))return Error("Biscotti id fetching has been disabled for pfl.")}; GM=function(H,E,G){jeU(H.L(),E,G)}; mT=function(H,E){for(var G=0;G=0?Q:-1;this.startTime=e||0;this.duration=w||0;this.L=t||0;this.W=k>=0?k:this.range?this.range.length:NaN;this.G=this.range?this.L+this.W===this.range.length:W===void 0?!!this.W:W;this.range?(this.D=this.startTime+this.duration*this.L/this.range.length,this.B=this.duration*this.W/this.range.length, this.T=this.D+this.B):bm1(this)}; lWw=function(H){if(H==null)return H;var E=typeof H;if(E==="bigint")return String(L4t(64,H));if(Kr(H)){if(E==="string")return Kr(H),E=PM(Number(H)),QU(E)&&E>=0?H=String(E):(E=H.indexOf("."),E!==-1&&(H=H.substring(0,E)),H[0]==="-"?E=!1:(E=H.length,E=E<20?!0:E===20&&H<="18446744073709551615"),E||(Ex(H),H=rk(RN,Js))),H;if(E==="number")return Kr(H),H=PM(H),H>=0&&QU(H)||(rd(H),H=Qe(RN,Js)),H}}; on=function(H,E,G,P,Q){H={retry:!0,onSuccess:G,onError:P,networklessOptions:H,dangerousLogToVisitorSession:E,iZJ:!!Q,headers:{},postBodyFormat:"",postBody:"",compress:g.Xj("compress_gel")||g.Xj("compress_gel_lr")};HS()&&(H.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,g.ON)())));return H}; g.KD=function(H,E){g.z7.call(this);var G=this;this.lJ=H;this.adaptiveFormats="";this.wT=this.adQueryId=this.JD=null;this.Vf={start:NaN,end:NaN};this.cueRanges=this.QF=null;this.Z7=new Map;this.drmProduct=this.drmParams="";this.eventLabel=null;this.allowEmbed=!0;this.allowLiveDvr=this.offlineable=this.backgroundable=!1;this.BA="";this.iL=!1;this.AL=null;this.AN=this.U_=this.oT=!1;this.D=null;this.KY=this.s_=!1;this.yQ=NaN;this.applyStatefulNormalization=this.preserveStatefulLoudnessTarget=!1;this.maxStatefulTimeThresholdSec= 0;this.PJ=NaN;this.loudnessTargetLkfs=Infinity;this.minimumLoudnessTargetLkfs=-Infinity;this.bx=0;this.bz=!1;this.cycToken=null;this.author="";this.M6=!1;this.FI=0;this.PL=!1;this.wH=null;this.ej=[];this.qb=this.yw=!1;this.clientScreenNonce=this.playerResponseCpn=this.clientPlaybackNonce=this.videoCountText=this.z$=this.G6="";this.contentCheckOk=!1;this.limitedPlaybackDurationInSeconds=this.endSeconds=this.Qm=0;this.Lb=this.nX=this.W=null;this.CC="";this.loading=!1;this.hx=this.Le=0;this.hn=this.pipable= this.Sb=this.isAutonav=!1;this.paidContentOverlayDurationMs=0;this.mutedAutoplay=this.n0=!1;this.mutedAutoplayDurationMode=0;this.isLiveHeadPlayable=this.isLivePlayback=this.TP=this.isPrivate=this.isListed=this.ML=!1;this.kB="";this.isLowLatencyLiveStream=this.isLivingRoomDeeplink=this.isLiveDefaultBroadcast=this.WN=this.IJ=this.tT=!1;this.latencyClass="UNKNOWN";this.wi=this.wp=this.EX=this.xG=this.hH=this.p9=this.X$=this.gx_=this.SO=this.enableServerStitchedDai=this.Xm=this.isMdxPlayback=this.isUpcoming= this.isPremiere=!1;this.mdxControlMode=null;this.isPharma=this.showSeekingControls=!1;this.Yp=0;this.reloadReason="";this.uZ=this.WO=!1;this.keywords={};this.MZ="";this.AA=0;this.cg=!1;this.unpluggedFilterModeType=0;this.liveChunkReadahead=NaN;this.cD=null;this.KB=this.lengthSeconds=0;this.playerParams=this.musicVideoType=null;this.Fh=this.paygated=!1;this.Ff=[];this.g6=!1;this.fW=[];this.H6=null;this.hQ=this.racyCheckOk=!1;this.p8={};this.isProximaLatencyEligible=!1;this.qU=0;this.G=null;this.autonavState= 1;this.sG=null;this.shortDescription="";this.N=this.xC=!1;this.tH=this.eR=this.startSeconds=0;this.vD=this.Kb=this.jh=q3;this.To=this.suggestions=null;this.vt=this.jd=void 0;this.isExternallyHostedPodcast=!1;this.xW=null;this.cV=this.expandedSubtitle=this.expandedTitle=this.subtitle=this.title="";this.O7=[];this.ox=[];this.hlsFormats=this.Ta="";this.eh=this.fL=this.Fa=this.hm=this.PF=this.jt=this.AT=null;this.I2="vvt";this.qC=!1;this.hW=null;this.kC="";this.H_=NaN;this.us=this.e5=this.DY=this.cj= this.CF=this.gi=this.GL=this.A4=this.JQ=this.rM="";this.Wc=null;this.yU=!1;this.clipStart=0;this.clipEnd=Infinity;this.Tt=!1;this.heartbeatToken="";this.zt=this.GI=NaN;this.V8=this.xH=this.AG=this.Mj=this.oW=!1;this.Yh=!0;this.BL={};this.captionTracks=[];this.JU=[];this.He=0;this.uv=[];this.Co=[];this.z1=!1;this.zo={};this.UT=new g.oK("und",new g.gm("Default","und",!0));this.PW=0;this.T=null;this.Eu=[];this.KZ=!1;this.Oo=this.jT="";this.slotPosition=-1;this.breakType=0;this.embeddedPlayerConfig=this.reelItemWatchResponse= this.Jm=this.tN=this.JJ=this.playerResponse=this.XH=this.Yi=this.hj=this.QA=null;this.xZ=!1;this.s7=null;this.isInlinePlaybackNoAd=this.P9=this.nZ=this.useCobaltWidevine=this.GX=this.PE=!1;this.gQ=!0;this.Nl=this.yz=NaN;this.defraggedFromSubfragments=this.KQ=this.hasSubfragmentedFmp4=!1;this.liveExperimentalContentId=NaN;this.T$=new Set;this.sabrContextUpdates=new Map;this.L$=!1;this.gatewayExperimentGroup="";this.kS=this.E7=this.It=!1;this.interstitials=[];this.Xg=this.iC=!1;this.U0="";this.allowImaMonetization= !1;this.Re="";this.CZ=!1;this.Mk="";this.zR=[];this.Cv=[];this.U9="";this.CU=this.B=this.mH=!1;this.W_="";this.dj=this.uh=this.pI=this.readAheadGrowthRateMs=this.minReadAheadMediaTimeMs=this.maxReadAheadMediaTimeMs=NaN;this.showShareButton=!0;this.yA=!1;this.hC=this.gt=!0;this.errorDetail=this.userGenderAge="";this.O_=this.zS=this.getSharePanelCommand=this.removeFromWatchLaterCommand=this.addToWatchLaterCommand=this.unsubscribeCommand=this.subscribeCommand=this.contextParams=this.sF=this.errorReason= this.errorCode=null;this.CL=!1;this.zc=[];this.CB=this.zT=this.Rj=this.LM=this.iG=0;this.fetchType=null;this.gT=!0;this.transitionEndpointAtEndOfStream=void 0;this.sV=this.N6=-1;this.n6=this.au=!1;this.dP=null;this.L_="";this.watchUrl=null;this.AD=[];this.visibleOnLoadKeys=[];this.y_=[];this.inlineMetricEnabled=this.yS=!1;this.sZ=this.embedsRctn=this.embedsRct="";this.yn=NaN;this.authorizedFormats=[];this.L8=(0,g.ON)();this.zb=this.xx=0;this.VB=null;this.mLp=this.jD=this.E_=this.kc=!1;this.b7={}; this.hV=!1;this.YJ=.25;this.rj=2;this.K8=this.n1=!1;this.BF=this.lJ.experiments.xp("html5_use_triple_equals");this.n8=g.hE(this.lJ.experiments,"html5_gapless_loop_seek_offset_in_milli");this.kV={setData:function(P){G.setData(P)}, M7:function(){G.M7()}, jr:function(P){G.jr(P)}}; this.au=this.U("web_new_autonav_countdown");this.n6=this.U("web_new_big_thumbnail_endscreen");this.hV=this.lJ.experiments.xp("html5_audio_gain_null_coalescing");this.lJ.eh&&(this.p_=this.lJ.eh);this.setData(E);this.o2=new TvU;g.d(this,this.o2)}; Iz=function(H){return H.p9&&H.enableServerStitchedDai}; Lh=function(H,E,G){iq(H,E,2);Tu(H.L,G.length);oA(H,H.L.end());oA(H,G)}; Ujn=function(H,E,G){g.Ns(H.provider.X,g.RS(H.provider.videoData)).then(function(P){var Q=!1;E.includes("&dt=")||E.includes("&cotn=")?Q=!0:H.provider.X.U("qoe_with_networkless")&&(Q=!0);var e=H.provider.X.U("qoe_send_and_write"),w=H.provider.X;P=mU(E,w,H.provider.X.pageId,H.provider.X.sendVisitorIdHeader?H.provider.videoData.visitorData:void 0,P);w.U("html5_simplify_pings")&&(P=P||{});P?(P.method="POST",P.postBody=G,ub(E,P,{token:H.provider.videoData.C,uq:H.provider.videoData.I2,mdxEnvironment:H.provider.videoData.mdxEnvironment}, w,void 0,Q,e&&H.O7)):Q?(Q=H.provider.X.U("networkless_ajax"),w={method:"POST",postBody:G},e&&H.O7?hx().sendAndWrite(E,w):Q?g.a2(E,{method:"POST",postBody:G}):hx().sendThenWrite(E,w)):(e=G,e=e===void 0?"":e,XZU(E,e)||g.iN(E,void 0,void 0,void 0,e))})}; Tcd=function(H){if(!H.element)return!1;var E=H.element,G=H.W.L.G,P=X9().L.L;H.D=new G.IntersectionObserver(RI(P,function(Q){return Tb(H,Q)}),xjM); P=RI(P,function(){H.D.unobserve(E);H.D.observe(E);Tb(H,zLt(H))}); G.ResizeObserver?(H.N=new G.ResizeObserver(P),H.N.observe(E)):G.MutationObserver&&(H.B=new g.lU.MutationObserver(P),H.B.observe(E,{attributes:!0,childList:!0,characterData:!0,subtree:!0}));H.D.observe(E);Tb(H,zLt(H));return!0}; oN=function(H){return H.U("html5_live_head_playable")&&Bm(H)&&H.lJ.p_==="yt"?H.isLiveHeadPlayable:H.isLivePlayback}; N7=function(H,E,G){return E>=15E3?!0:H.MZ?(G===void 0?0:G)?!0:H.G>0?E>=H.G/2:H.PF>0?E>=H.PF:!1:!1}; QX=function(H){for(;H.L.length&&!H.L[0].isEncrypted;){var E=H.L.shift(),G=E.videoId,P=E.ym,Q=E.formatId,e=E.buffer;E=E.rR;if(e)E=void 0,(E=Pw(H.pL.Te,G))==null||EW(E,P,Q,e);else if(E)H.pL.Te.pB(G,P,Q);else if(P=H.pL,P.L[Q].d8=!0,G=Pw(P.Te,G),G==null?0:G.eq.has(Q))G==null||Ly(G,Q)}}; g.IC=function(H,E,G,P,Q,e){e=e===void 0?{}:e;g.vx(H,E,G,[P],Q===void 0?!1:Q,e)}; Vi7=function(H,E){if(H.xM()===0||H.hasError())return!1;var G=H.getCurrentTime()>0;return E>=0&&(H=H.hI(),H.length||!G)?jz(H,E):G}; Sw1=function(H,E){this.location=H;this.L=E}; g.av=function(H){g.D.call(this,H);this.MZ=new g.z7;g.d(this,this.MZ)}; g.$9=function(H,E){g.J.call(this);var G=this;this.provider=H;this.G=new Map;this.jy=new g.bb;this.kV={xlw:function(){return G.qoe}, GdF:function(){return G.L}, IKp:function(){return G.W}}; this.provider.videoData.zU()&&!this.provider.videoData.xW&&(this.L=new Ja(this.provider),this.L.W=0,g.d(this,this.L),this.qoe=new g.g8(this.provider,E),g.d(this,this.qoe),this.provider.videoData.enableServerStitchedDai&&(this.Xe=this.provider.videoData.clientPlaybackNonce)&&this.G.set(this.Xe,this.L));if(H.X.playerCanaryState==="canary"||H.X.playerCanaryState==="holdback")this.W=new sg(this.provider),g.d(this,this.W)}; nJ=function(H){H=wxt(H);return H===null?!1:H[0]==="com"&&H[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1}; tO=function(H){return!!(2&H)&&!!(4&H)||!!(256&H)}; F47=function(H,E,G,P,Q){Q=Q===void 0?!1:Q;var e="https://youtubei.googleapis.com/youtubei/"+E.jd.innertubeApiVersion+"/player",w=[{name:"Content-Type",value:"application/json"}];P&&w.push({name:"Authorization",value:"Bearer "+P});w.push({name:"User-Agent",value:g.u0()});g.tJ("EOM_VISITOR_DATA")?w.push({name:"X-Goog-EOM-Visitor-Id",value:g.tJ("EOM_VISITOR_DATA")}):(G=G.visitorData||g.tJ("VISITOR_DATA"))&&w.push({name:"X-Goog-Visitor-Id",value:G});(G=g.tJ("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&w.push({name:"X-YouTube-Lava-Device-Context", value:G});(E=vQ(E.experiments,"debug_sherlog_username"))&&w.push({name:"X-Youtube-Sherlog-Username",value:E});H=ti(JSON.stringify(H));return{url:e,a9:w,postBody:H,RiR:Q,Dg:Q}}; e0s=function(H,E){H.network=E;return H}; l$=function(H){Kr(H);var E=PM(Number(H));if(QU(E))return String(E);E=H.indexOf(".");E!==-1&&(H=H.substring(0,E));return kvq(H)}; s1=function(H,E){var G=G===void 0?!0:G;var P=g.tJ("VALID_SESSION_TEMPDATA_DOMAINS",[]),Q=g.mS(window.location.href);Q&&P.push(Q);Q=g.mS(H);if(g.Xa(P,Q)||!Q&&QQ(H,"/"))if(P=document.createElement("a"),g.HQ(P,H),H=P.href)if(H=G1(H),H=GEQ(H))if(G&&!E.csn&&(E.itct||E.ved)&&(E=Object.assign({csn:g.ri()},E)),e){var e=parseInt(e,10);isFinite(e)&&e>0&&fWq(H,E,e)}else fWq(H,E)}; o3=function(H){return H.GH.get("creatorendscreen")}; g.eQ=function(){}; pWq=function(H,E,G,P,Q,e){s9.call(this,H,{J:"div",Y:"ytp-ad-action-interstitial",j:{tabindex:"0"},V:[{J:"div",Y:"ytp-ad-action-interstitial-background-container"},{J:"div",Y:"ytp-ad-action-interstitial-slot",V:[{J:"div",Y:"ytp-ad-action-interstitial-instream-info"},{J:"div",Y:"ytp-ad-action-interstitial-card",V:[{J:"div",Y:"ytp-ad-action-interstitial-image-container"},{J:"div",Y:"ytp-ad-action-interstitial-headline-container"},{J:"div",Y:"ytp-ad-action-interstitial-description-container"},{J:"div", Y:"ytp-ad-action-interstitial-action-button-container"}]}]}]},"ad-action-interstitial",E,G,P);this.Nm=Q;this.N1=e;this.navigationEndpoint=this.L=this.skipButton=this.W=this.actionButton=null;this.z$=this.HF("ytp-ad-action-interstitial-instream-info");this.T$=this.HF("ytp-ad-action-interstitial-image-container");this.N=new ne(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,"ytp-ad-action-interstitial-image");g.d(this,this.N);this.N.mx(this.T$);this.PF=this.HF("ytp-ad-action-interstitial-headline-container"); this.T=new aj(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,"ytp-ad-action-interstitial-headline");g.d(this,this.T);this.T.mx(this.PF);this.WF=this.HF("ytp-ad-action-interstitial-description-container");this.G=new aj(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,"ytp-ad-action-interstitial-description");g.d(this,this.G);this.G.mx(this.WF);this.hm=this.HF("ytp-ad-action-interstitial-background-container");this.eR=new ne(this.api,this.layoutId,this.interactionLoggingClientData, this.vF,"ytp-ad-action-interstitial-background",!0);g.d(this,this.eR);this.eR.mx(this.hm);this.BF=this.HF("ytp-ad-action-interstitial-action-button-container");this.slot=this.HF("ytp-ad-action-interstitial-slot");this.S7=this.HF("ytp-ad-action-interstitial-card");this.D=new J$;g.d(this,this.D);this.hide()}; HE=function(H){return H.policy.N6||H.policy.Kb}; EoT=function(H,E){H.timestampOffset>0&&(E-=H.timestampOffset);var G=g.wD(H)+E;HKd(H,G);H.timestampOffset=E}; BL=function(H,E,G){typeof G==="string"?H.S.getVideoData(1).Kq(E,G):H.S.getVideoData(1).g5(E,G)}; R6=function(H){return new g.El(function(E,G){G(H)})}; fI=function(H,E,G,P){if(P===void 0)return P=Object.assign({},H[E]||{}),G=(delete P[G],P),P={},Object.assign({},H,(P[E]=G,P));var Q={},e={};return Object.assign({},H,(e[E]=Object.assign({},H[E],(Q[G]=P,Q)),e))}; SAj=function(H,E,G,P,Q){var e=nDM(P);e.push(new ug(P.vG));e.push(new PF(P.nw));return ahQ(E,G,P,new ZN(e),Q,H.W.get())}; Gxw=function(H){if(H.Fo.Rs().isInline())return q3;H=l_[ZU()];return g.tI("auto",H,!1,"s")}; QQd=function(H){g.J.call(this);this.counter=[0,0,0,0];this.W=new Uint8Array(16);this.L=16;if(!Pzv){var E,G=new Uint8Array(256),P=new Uint8Array(256);var Q=1;for(E=0;E<256;E++)G[Q]=E,P[E]=Q,Q^=Q<<1^(Q>>7&&283);hQ=new Uint8Array(256);$t=Bu(256);tQ=Bu(256);kt=Bu(256);Ww=Bu(256);for(var e=0;e<256;e++){Q=e?P[255^G[e]]:0;Q^=Q<<1^Q<<2^Q<<3^Q<<4;Q=Q&255^Q>>>8^99;hQ[e]=Q;E=Q<<1^(Q>>7&&283);var w=E^Q;$t[e]=E<<24|Q<<16|Q<<8|w;tQ[e]=w<<24|$t[e]>>>8;kt[e]=Q<<24|tQ[e]>>>8;Ww[e]=Q<<24|kt[e]>>>8}Pzv=!0}Q=Bu(44); for(G=0;G<4;G++)Q[G]=H[4*G]<<24|H[4*G+1]<<16|H[4*G+2]<<8|H[4*G+3];for(P=1;G<44;G++)H=Q[G-1],G%4||(H=(hQ[H>>16&255]^P)<<24|hQ[H>>8&255]<<16|hQ[H&255]<<8|hQ[H>>>24],P=P<<1^(P>>7&&283)),Q[G]=Q[G-4]^H;this.key=Q}; Nl=function(H){return H.right-H.left}; sQq=function(H,E){for(var G=g.R(Object.keys(H)),P=G.next();!P.done;P=G.next()){P=P.value;var Q=H[P][0];if(!Q.width&&Q.QF===E.QF&&!Q.audioChannels)return P}return""}; t6s=function(H,E){var G=E.pop();for(G=H.W+H.L.length()-G;G>127;)E.push(G&127|128),G>>>=7,H.W++;E.push(G);H.W++}; ooU=function(H,E,G,P,Q){this.W=Q;this.L=H||0;this.pitch=E||0;this.yaw=G||0;this.roll=P||0;this.crc=Q.getUint32(4)}; mOw=function(H,E){var G=0,P=vA(E.W);if(H.D=P.length)return;if(G<0)throw Error("Missing data");H.D=H.G;H.W=0}for(Q={};G0)return 2;if(E<0)return 1;G=H.vO();return E0)E=H.byterate,this.p_= !0;else{var Q;G=(((Q=navigator.connection)==null?void 0:Q.downlink)||0)*64*1024;G>0&&(E=G,this.p_=!0)}this.G.ra(this.policy.C,E);H.delay>0&&this.N.ra(1,Math.min(H.delay,2));H.stall>0&&this.B.ra(1,H.stall);H.init>0&&(this.T$=Math.min(H.init,this.T$));H.interruptions&&(this.D=this.D.concat(H.interruptions),this.D.length>16&&this.D.pop());this.WF=(0,g.ON)();this.policy.B>0&&(this.z$=new g.Wt(this.Yp,this.policy.B,this),g.d(this,this.z$),this.z$.start())}; g.Jx=function(H,E){H.style.display=E?"":"none"}; PPj=function(H){var E;return!((E=H.lJ.getWebPlayerContextConfig())==null||!E.enableProximaLowLatency)}; CJ=function(H){Kr(H);H=PM(H);QU(H)||(rd(H),H=qWu(RN,Js));return H}; L6=function(H,E){H.message&&g.p5(Error(E+"_"+H.message))}; ESM=function(H,E){var G=H.PT!==E;H.PT=E;G&&g6(H)}; vw=function(H,E,G,P,Q){g.uf.call(this);this.W=H;this.T=E;this.C=G;this.D=P;this.B=Array.isArray(Q)?Q:[Q]}; j0U=function(H){var E,G,P=(E=H.getWatchNextResponse())==null?void 0:(G=E.contents)==null?void 0:G.twoColumnWatchNextResults,Q,e,w,t,k;H=(Q=H.getWatchNextResponse())==null?void 0:(e=Q.playerOverlays)==null?void 0:(w=e.playerOverlayRenderer)==null?void 0:(t=w.endScreen)==null?void 0:(k=t.watchNextEndScreenRenderer)==null?void 0:k.results;if(!H){var W,I;H=P==null?void 0:(W=P.endScreen)==null?void 0:(I=W.endScreen)==null?void 0:I.results}return H}; g.d=function(H,E){H.addOnDisposeCallback(g.iK(g.Vq,E))}; SLM=function(H,E){if(E.videoFormatCapabilities)for(var G=0;G6E4&&delete n4[Q];H&&(H.L=0)},5E3)); return G.count>5?(G.count===6&&Math.random()*1E5<1&&(G=new g.LN("CSI data exceeded logging limit with key",E.split("_")),E.indexOf("plev")>=0||g.p5(G)),!0):!1}; j4=function(H,E,G,P,Q){H=g.Dts(H,E,G,Q);H=new g.gK(H);P&&H.r9();return H}; Pk=function(){return window.SourceBuffer?!!SourceBuffer.prototype.changeType:!1}; RB7=function(H,E,G,P){H.L&&xQ("Currently active request ongoing for slot. This should never happen",H.slot);H.L=E();H.L.then(function(Q){H.L=null;P&&P(Q);var e=Q.Ms?"LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE":"LAYOUT_TYPE_AD_BREAK_RESPONSE",w=H.W.get(),t=H.slot.slotId,k=xZ(H.VF.get(),{slotId:H.slot.slotId,slotType:H.slot.slotType,slotPhysicalPosition:H.slot.slotPhysicalPosition,f_:H.slot.f_,slotEntryTrigger:H.slot.slotEntryTrigger,slotFulfillmentTriggers:H.slot.slotFulfillmentTriggers,slotExpirationTriggers:H.slot.slotExpirationTriggers}), W=dU(w.W.get(),e,t),I={layoutId:W,layoutType:e,f_:"core"};Q={layoutId:W,layoutType:e,w5:new Map,layoutExitNormalTriggers:[new Alt(w.L,t)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:new ZN([new vF(Q)]),O2:k(I)};qQM(H.callback,H.slot,Q)},function(Q){H.L=null; G&&G();Q instanceof DH||Qd(H.callback,H.slot,new T(Q,void 0,"ADS_CLIENT_ERROR_MESSAGE_AD_BREAK_REQUEST_ERROR",!0),"ADS_CLIENT_ERROR_TYPE_FULFILL_SLOT_FAILED")})}; P2w=function(H){this.VN=tz(H)}; s7l=function(){return"INNERTUBE_API_KEY"in lY&&"INNERTUBE_API_VERSION"in lY}; J1t=function(H){p1.call(this);var E=this;this.logger=H;this.kV={PMN:function(){return E.logger}, Bk:function(){return E.logger.kV.Bk()}}; this.addOnDisposeCallback(function(){return void E.logger.dispose()})}; WX=function(H,E,G){this.triggeringLayoutId=E;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_EXITED";this.triggerId=G||H(this.triggerType)}; X8=function(){if(r1l===null){r1l=new Bju;Lu(NS).W="b";var H=Lu(NS),E=BK(H)=="h"||BK(H)=="b",G=!(X9(),!1);E&&G&&(H.T=!0,H.C=new pk1)}return r1l}; YQM=function(H,E,G){var P,Q=(P=H.ou)==null?void 0:P.G.get(E);if(!Q)return[];if(G.QB){var e;return((e=Q.oY(0,G.clipId))==null?void 0:e.kp)||[]}if(Q.qd()){var w=G.startMs,t=G.durationMs;P=1E3;var k;if(((k=H.nS)==null?0:k.L)&&G.timeRange){var W;w=(W=G.timeRange.startTicks)!=null?W:-1;var I;t=(I=G.timeRange.RV)!=null?I:-1;var A;P=(A=G.timeRange.timescale)!=null?A:-1}if(G.TB<0||G.Fu<0||t<0||w<0||G.HV<0||P<0)return vs(H,E),[];H=$p(G.TB,G.HV);E=G.Dh||0;return[new jf(3,Q,H,"makeSliceInfosMediaBytes",G.Fu- 1,w/P,t/P,E,H.length-E,void 0,G.xj,G.clipId)]}if(G.Fu<0)return vs(H,E),[];var m;return((m=H.ou)==null?0:m.T6)?(E=Q.g7,k=E*Q.info.Xo,W=G.Dh,(((w=H.nS)==null?0:w.Hc)&&H.L.J1()!=="ONESIE"||H.L.OX())&&G.timeRange&&!W&&(t=G.timeRange.startTicks/G.timeRange.timescale),[new jf(3,Q,void 0,"makeSliceInfosMediaBytes",G.Fu,t,E,W,k,!0,G.xj,G.clipId)]):[]}; g.KJ=function(H,E){return{itag:+H.itag,lmt:E?0:H.lastModified,xtags:H.L||""}}; QY=function(H){return{jc:H.G.L.Rx,gK:H.G.W.Rx}}; sd=function(H,E,G){var P=H.rA[E];if(P!=null)return P;P=QWq(H,E);var Q=e3(wz,function(e){return e==E}); H=l5u(H,P,P,G,X8Q[wz[Q]]);E=="fully_viewable_audible_half_duration_impression"&&(H.std="csm");return H}; lkQ=function(H,E){if(H.Am&&H.Am.W){if(H.policy.Ch){var G=ZKt(H.audioTrack);if(G&&G.VS()){var P=H.Fo;if(P.Hp&&(P.Hp.L=G,G=P.eT,G.qoe)){G=G.qoe;P=P.Hp;var Q=g.Gm(G.provider);Czt(G,Q,P)}}}H.policy.eH&&(G=ZKt(H.videoTrack))&&G.dO()&&(P=H.Fo,P.S5&&(P.S5.L=G,G=P.eT,G.qoe&&WET(G.qoe,P.S5)));E-=isNaN(H.timestampOffset)?0:H.timestampOffset;H.getCurrentTime()!==E&&H.resume();H.PK.isSeeking()&&H.Am&&!H.Am.f0()&&(P=H.getCurrentTime()<=E&&EQ&&w.Mq(I,Q-P);return I}; xSu=function(H,E){var G={type:E.layoutType,controlFlowManagerLayer:LPt.get(E.f_)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};H&&(G.debugData={layoutId:E.layoutId});return G}; a3=function(H,E,G){return H?!0:(g.p5(new g.LN("Assertion: "+E,G)),!1)}; JLn=function(H,E){return H.slice(E.length).replace(/_[a-z]/g,function(G){return G.toUpperCase().replace("_","")}).replace("Dot",".")}; zBw=function(H){var E=H.api.K(),G=g.F(H.api.getPlayerStateObject(),128);return E.D&&G&&!H.api.isFullscreen()}; wQl=function(H,E,G,P,Q){g.J.call(this);var e=this,w=sU(function(){return new o9(e.Da)}); g.d(this,w);var t=sU(function(){return new ey(w,e.Da)}); g.d(this,t);var k=sU(function(){return new wx}); g.d(this,k);var W=sU(function(){return new h8(H)}); g.d(this,W);var I=sU(function(){return new $v(w,t,e.Da)}); g.d(this,I);var A=sU(function(){return new t8}); g.d(this,A);this.yY=sU(function(){return new tOt(E)}); g.d(this,this.yY);this.Fg=sU(function(){return new tq(E)}); g.d(this,this.Fg);this.ST=sU(function(){return new kv(Q)}); g.d(this,this.ST);this.l4=sU(function(){return new WY(E)}); g.d(this,this.l4);this.Dj=sU(function(){return new I9(E)}); g.d(this,this.Dj);this.JG=sU(function(){return new A8(E)}); g.d(this,this.JG);this.hG=sU(function(){return new mY(E)}); g.d(this,this.hG);this.Da=sU(function(){return new uG(E)}); g.d(this,this.Da);var m=sU(function(){return new k$(P)}); g.d(this,m);var u=sU(function(){return new Tq(e.Da)}); g.d(this,u);var v=sU(function(){return new vY(w,I,t,e.Da,u,null,null,null,null)}); g.d(this,v);this.SA=sU(function(){return new t9(E)}); g.d(this,this.SA);this.C_=sU(function(){return new Mq(E,A,e.Da)}); g.d(this,this.C_);var n=dx({C_:this.C_,Da:this.Da,VF:u}),O=n.context,q=n.Cm;this.cT=n.cT;this.d5=sU(function(){return new DY(E,e.C_,e.Da)}); g.d(this,this.d5);this.q4=sU(function(){return new Wa}); g.d(this,this.q4);this.im=sU(function(){return new nu(e.d5,E,e.Da)}); g.d(this,this.im);this.SR=sU(function(){return new a9(E,k,e.im,e.C_,e.cT,e.Da,q)}); g.d(this,this.SR);this.zH=sU(function(){return new IX(e.Da)}); g.d(this,this.zH);this.Av=new Aq(Tjs,mf,function(r,B,l,S){return SAj(t.get(),r,B,l,S)},W,I,t,u,this.Da,this.C_); g.d(this,this.Av);this.u1=new sC(W,v,G,this.Da,H,this.C_,this.d5,this.l4);g.d(this,this.u1);var N=new OU(E,this.u1,this.d5,this.C_);this.m1=sU(function(){return N}); this.oD=N;this.oP=new Ku(W,I,this.Dj,this.m1,O);g.d(this,this.oP);this.l1=new jy(this.Da,W,I,v,this.C_,this.oP,G,this.JG);g.d(this,this.l1);this.FR=sU(function(){return new va(m,t,u,e.Da,e.SR,e.d5)}); g.d(this,this.FR);this.p6=sU(function(){return new Mg}); g.d(this,this.p6);this.kz=new d0(H,this.Fg,this.Da);g.d(this,this.kz);this.vT=new DM(H);g.d(this,this.vT);this.md=new n_(H,this.m1,O);g.d(this,this.md);this.cY=new aX(H,this.Dj,this.d5,this.C_,O);g.d(this,this.cY);this.DO=new R0(H);g.d(this,this.DO);this.c$=new Os(H);g.d(this,this.c$);this.Ge=sU(function(){return new K_(E)}); g.d(this,this.Ge);this.ET=new jO(H);g.d(this,this.ET);this.RM=sU(function(){return new ca}); g.d(this,this.RM);this.YM=sU(function(){return new Ng(e.d5)}); g.d(this,this.YM);this.w7=sU(function(){return new ys(e.l1,W,w)}); g.d(this,this.w7);this.H$=sU(function(){return new bV(e.Da,e.SR,e.DO,e.im)}); g.d(this,this.H$);this.rU=sU(function(){return new iV(H,e.ET,e.DO,e.SR,e.im,e.zH,e.JG,e.C_,e.d5,e.q4,e.Dj,e.l4,e.hG,e.ST,e.SA,e.Da,e.Ge,O,q)}); g.d(this,this.rU);this.ZR=sU(function(){return new Vss(e.Fg,e.d5,e.SR,k,e.yY,G,e.C_)}); g.d(this,this.ZR);this.HL={Xz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l1],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Av],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.u1],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),TV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.FR],["SLOT_TYPE_FORECASTING",this.p6],["SLOT_TYPE_IN_PLAYER",this.p6],["SLOT_TYPE_PLAYER_BYTES",this.p6]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.kz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED", this.vT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vT],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.md],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.cY],["TRIGGER_TYPE_MEDIA_TIME_RANGE", this.cY],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.DO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.md],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.c$],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ET]]),qA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RM],["SLOT_TYPE_FORECASTING",this.RM],["SLOT_TYPE_IN_PLAYER",this.RM],["SLOT_TYPE_PLAYER_BYTES",this.YM]]),gW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.w7],["SLOT_TYPE_FORECASTING",this.H$],["SLOT_TYPE_IN_PLAYER",this.ZR],["SLOT_TYPE_PLAYER_BYTES", this.rU]])};this.listeners=[k.get()];this.zw={l1:this.l1,aF:this.Da.get(),vF:this.ST.get(),w4:this.d5.get(),u1:this.u1,fG:w.get(),T5:null,oG:this.kz,gX:k.get(),vY:this.C_.get()}}; Zk=function(H){return Q_()?!$z(H):qj()?!(!H.nX||!H.U("html5_enable_safari_fairplay")&&rR()):!1}; SQq=function(H,E){return E+1>>8|w<<24,w+=e|0,w^=t+38293,e=e<<3|e>>>29,e^=w,k=k>>>8|k<<24,k+=t|0,k^=W+38293,t=t<<3|t>>>29,t^=k;e=[e,w];H[Q]^=e[0];Q+10)if(G.info.U7===H.D.U7&&G.info.L=0&&H.D.U7>=0&&!tL(H.D,G.info))throw new g.LN("improper_continuation",H.D.PO(),G.info.PO());Fqq(H.D,G.info)||fkn(H,"d")}else if(G.info.L>0)throw new g.LN("continuation_of_null",G.info.PO());H.D=G.info;H.uJ=G.info.uJ;if(G.info.L===0){if(H.L)if(!H.loader.isOffline()||H.policy.eh)H.loader.g5("slice_not_fully_processed", {buffered:H.L.info.PO(),push:G.info.PO()});else throw new g.LN("slice_not_fully_processed",H.L.info.PO(),G.info.PO());Og(H);H.O7=P}else{if(H.O7&&P&&H.O7!==P)throw H=new g.LN("lmt_mismatch",G.info.U7,H.O7,P),H.level="WARNING",H;!G.info.uJ.qd()&&H.T&&(P=G.info,Q=H.T.bA,P.C="updateWithEmsg",P.U7=Q)}if(H.L){P=g.Np(H.L,G);if(!P)throw new g.LN("failed_to_merge",H.L.info.PO(),G.info.PO());H.L=P}else H.L=G;a:{G=g.MQ(H.L.info.uJ.info);if(H.L.info.type!==3){if(!H.L.info.G)break a;H.L.info.type===6?p8n(H,E, H.L):IWj(H,H.L);H.L=null}for(;H.L;){P=H.L.W.totalLength;if(H.WF<=0&&H.N===0){var e=H.L.W,w=-1;Q=-1;if(G){for(var t=0;t+80))break;if(A!==408125543)if(A===524531317)t=!0,I>=0&&(Q=e.Nd()+I,k=!0);else{if(t&&(A===160||A===163)&&(w<0&&(w=W),k))break;A===163&&(w=Math.max(0,w),Q=e.Nd()+I);if(A===160){w<0&&(Q=w= e.Nd()+I);break}e.skip(I)}}w<0&&(Q=-1)}if(w<0)break;H.WF=w;H.N=Q-w}if(H.WF>P)break;H.WF?(P=t3s(H,H.WF),P.T&&CkU(H,P),p8n(H,E,P),HP7(H,P),H.WF=0):H.N&&(P=t3s(H,H.N<0?Infinity:H.N),H.N-=P.W.totalLength,HP7(H,P))}}H.L&&H.L.info.G&&(HP7(H,H.L),H.L=null)}; pb=function(H){return H instanceof d6?g.Uw(H):pUM(H)}; g.w8=function(H){return!!H.L&&GhT(H.L)}; PSQ=function(H){var E=[],G=[];g.kn(H,function(P,Q){if(!(Q in Object.prototype)&&typeof P!="undefined")switch(Array.isArray(P)&&(P=P.join(",")),P=[Q,"=",P].join(""),Q){case "adk":case "r":case "tt":case "error":case "mtos":case "tos":case "p":case "bs":E.unshift(P);break;case "req":case "url":case "referrer":case "iframe_loc":G.push(P);break;default:E.push(P)}}); return E.concat(G)}; s5u=function(H,E){var G=E||Q5l(H)||H.isExternallyHostedPodcast;if(!H.L||G)return H.g5("skipDash",{dm:!!H.L,air:E,dd:H.yw,mss:rR(),"3pp":H.isExternallyHostedPodcast}),$0();As(H)&&aWl(H.L,H.isLivePlayback);return jD().then(function(){return UY1(H.o2,g.zo(H),H.lJ.T,H.L,H.T,function(P){return H.publish("ctmp","fmtflt",P)},H.Cv,xg(H)).then(function(P){H.jr(P); H.o2.L=null;/^av/.test(H.clientPlaybackNonce)&&H.dP&&H.g5("av1",H.dP.L)})})}; TL=function(H,E){H.playlist&&(g.Vq(H.playlist),H.playlist=null);E&&(H.mB&&(E.fetch=0),H.playlist=new oBl(H.X,E))}; hkQ=function(H){H=H||"";var E=Smq();E[H]&&delete E[H];var G=w2(),P={timerName:H,info:{},tick:{},span:{},jspbInfo:[]};G.push(P);E[H]=P}; eJ1=function(H,E,G,P,Q){var e,w,t;return g.L(function(k){if(k.L==1)return g.U(k,g.De(),2);if(k.L!=3){e=k.W;if(!e)throw g.Xs("rc");return g.U(k,g.K4(e),3)}w=k.W;t=g.fV(w,["media"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRM"},function(W){var I=""+H+"|"+E+"|"+G+"|"+String(P).padStart(10,"0");return W.objectStore("media").get(I)}); return Q?k.return(t.then(function(W){if(W===void 0)throw Error("No data from indexDb");return Hov(Q,W)}).catch(function(W){throw new g.LN("Error while reading chunk: "+W.name+", "+W.message); })):k.return(t)})}; vzU=function(H){if(!oN(H.videoData))return NaN;var E=0;H.loader&&H.videoData.L&&(E=Bm(H.videoData)?H.loader.Cl.BK()||0:H.videoData.L.PF);return(0,g.ON)()/1E3-H.JT()-E}; wEq=function(H,E){var G=[];H=H.L.L.get(E);if(!H)return[];H=g.R(H);for(E=H.next();!E.done;E=H.next())E=E.value,E.cpn&&G.push(E.cpn);return G}; lxM=function(H){g.Fj("yt-player-bandwidth",H,2592E3)}; var i9U=function(H,E,G,P,Q,e,w,t){return ts[h[7]](this,1,H,E,G,P,Q,e,w,t)}; hJw=function(H,E){E=(E.Po+1)*1E3;var G=void 0;H=g.R(H.Q8.values());for(var P=H.next();!P.done;P=H.next()){var Q=P.value;P=Q.trigger;Q=Q.slot;P instanceof i3&&P.breakDurationMs<=E&&(!G||P.breakDurationMs>G.trigger.breakDurationMs)&&(G={slot:Q,trigger:P})}return G}; w2Q=function(H){this.experiments=H;this.L=17;this.G=13E4;this.C=.5;this.D=this.W=!1;this.WF=this.U("html5_use_histogram_for_bandwidth");this.T=g.hE(this.experiments,"html5_auxiliary_estimate_weight");this.p_=g.hE(this.experiments,"html5_stall_factor")||1;this.B=g.hE(this.experiments,"html5_check_for_idle_network_interval_ms");this.N=this.experiments.xp("html5_trigger_loader_when_idle_network");this.L_=this.experiments.xp("html5_sabr_fetch_on_idle_network_preloaded_players")}; jQ=function(H){g.J.call(this);this.app=H;this.T=this.D=this.W=this.L=null;this.G=1;this.events=new g.Z0(this);this.events.Z(this.app.cF,g.XT("gaplessshortslooprange"),this.N);g.d(this,this.events)}; iDv=function(H,E,G,P,Q,e,w,t,k,W,I,A){if((A==null?void 0:A.pZ)===void 0||(A==null?void 0:A.LZ)===void 0)return new T("Cached ad break range from cue point is missing");var m=LA(G,Q,P.m8);if(m instanceof T)return m;m={layoutExitMuteTriggers:[],layoutExitNormalTriggers:m.layoutExitNormalTriggers,layoutExitSkipTriggers:[],layoutExitUserCancelledTriggers:[],layoutExitUserInputSubmittedTriggers:[]};if(g.X(G.renderingContent,S4))return H=$8U(H,E,G,m,Q,e,t,k,P.m8,w,A.pZ,A.LZ),H instanceof T?H:H.CS===void 0? new T("Expecting associatedInPlayerSlot for single DAI media layout"):{layout:H.layout,TH:[H.CS]};var u=g.X(G.renderingContent,Fb);if(u){if(!TN(G.adLayoutMetadata))return new T("Invalid ad layout metadata");if(!Lm(u))return new T("Invalid sequential layout");u=u.sequentialLayouts.map(function(v){return v.playerBytesAdLayoutRenderer}); H=tZq(H,E,G,m,u,Q,P,e,w,k,t,W,A.pZ,A.LZ,I);return H instanceof T?H:{layout:H.oo,TH:H.TH}}return new T("Not able to convert a sequential layout")}; nu=function(H,E,G){this.d5=H;this.S=E;this.Da=G;this.W=new Set;this.L=new Map;X8().subscribe("adactiveviewmeasurable",this.Oj,this);X8().subscribe("adfullyviewableaudiblehalfdurationimpression",this.ID,this);X8().subscribe("adviewableimpression",this.zJ,this);X8().subscribe("adaudioaudible",this.SG,this);X8().subscribe("adaudiomeasurable",this.Uj,this)}; g.oT=function(H,E,G){return H.state.L[E].apply(H.state.L,g.EC(G))}; khv=function(H){return(H.C-H.L)/1E3}; g6u=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){var P=G.value;G=P.reason;if(G==null)g.p5(Error("AdFeedbackReason.reason was not set."));else if(P=P.endpoint,P==null)g.p5(Error("AdFeedbackReason.endpoint was not set."));else{G=new Td(G,P);g.d(H,G);P=H.WF;var Q=G.E2();P.appendChild(Q);H.D.push(G)}}}; VK=function(H){var E="";if(H.kB)return H.kB;H.isLivePlayback&&(E=H.allowLiveDvr?"dvr":H.isPremiere?"lp":H.IJ?"window":"live");H.tT&&(E="post");return E}; WWl=function(H,E){a:{if(H.L_>0){var G=Math.floor((0,g.ON)()/1E4);if(G===E.sE){if(E.Qf>=H.L_){E.Qf===H.L_&&(G={reason:"toomanyrequests"},G.limit=E.Qf,H.loader.handleError("player.exception",G),E.Qf+=1);E=!1;break a}}else E.sE=G,E.Qf=0}E=!0}if(!E||H.loader.isSuspended&&H.loader.Rp)return!1;if(H.p_&&(0,g.ON)()0)||H.policy.p_&&H.L.length===1&&H.L[0].Wz()?!0:!1){var P;E=(P=H.ou.L_)!=null&&dj(P,H.policy,H.D,H.loader.wW)?!0:!1}return E?!0:!1}; ZKt=function(H){if((H=H.B)==null)H=void 0;else if(H.i4.length===0||H.policy.F2&&H.L<0)H=null;else{var E=H.i4[H.L]?H.i4[H.L].formatId:null;H=E?(H=H.ou.G.get(OL(E)))?H.info:null:null}return H||null}; f7=function(){this.G=0;this.L=[];this.W=!1}; Ttd=function(H){var E,G,P,Q,e,w,t,k,W,I;return g.L(function(A){return A.L==1?(P=(E=H)==null?void 0:(G=E.responseContext)==null?void 0:G.globalConfigGroup,Q=g.X(P,IPQ),w=(e=P)==null?void 0:e.hotHashData,t=g.X(P,Atq),W=(k=P)==null?void 0:k.coldHashData,(I=hu().resolve(new HG(DF)))?w?Q?g.U(A,m8w(I,w,Q),2):g.U(A,m8w(I,w),2):A.bJ(2):A.return()):W?t?g.U(A,WT1(I,W,t),0):g.U(A,WT1(I,W),0):A.bJ(0)})}; vBQ=function(H){return Xn(H.slot,H.Da.get())?new Vh(H):new uSw(H)}; mG=function(H,E,G,P,Q,e,w){E={id:E,namespace:w!=null?w:"appapi"};e==="chapter"?(E.style=UE.CHAPTER_MARKER,E.visible=!0):isNaN(Q)||(e==="ad"?E.style=UE.AD_MARKER:(E.style=UE.TIME_MARKER,E.color=Q),E.visible=!0);H.XD([new g.cP(G*1E3,P*1E3,E)],1);return!0}; MXv=function(H){return H.displayName||H.name||"unknown type name"}; MZj=function(H,E,G,P,Q,e,w){var t=E.config.adPlacementConfig,k=IHd(t),W=k.DA,I=k.lc;k=(E.renderer.linearAdSequenceRenderer||{}).linearAds;if(k==null||!k.length)throw new TypeError("Expected linear ads");var A=[],m={oA:W,PD:0,lDJ:A};k=k.map(function(v){return srQ(H,v,m,G,P,t,Q,I,w)}).map(function(v,n){n=new eh(n,A); return v(n)}); var u=k.map(function(v){return v.nA}); return{yR:giw(G,H,W,u,t,VLq(E),P,I,e),mI$:k.map(function(v){return v.Pxx})}}; g.KU=function(H){return g.Rp(H)||uk(H)==="TV_UNPLUGGED_CAST"||cw(H)}; Nnd=function(H,E,G){H.ou=E;H.nS=G;E=g.R(H.eq);for(G=E.next();!G.done;G=E.next()){var P=g.R(G.value);G=P.next().value;P=P.next().value;for(var Q=g.R(P.TK),e=Q.next();!e.done;e=Q.next()){e=e.value;var w=YQM(H,G,e);TwT(H,e.ym,P,w)}}}; mU=function(H,E,G,P,Q,e){var w={format:"RAW"},t={};if(up(H)&&Tg()){var k=g.tJ("EOM_VISITOR_DATA");k?t["X-Goog-EOM-Visitor-Id"]=k:P?t["X-Goog-Visitor-Id"]=P:g.tJ("VISITOR_DATA")&&(t["X-Goog-Visitor-Id"]=g.tJ("VISITOR_DATA"));G&&(t["X-Goog-PageId"]=G);(P=E.E7)&&!cw(E)&&(t["X-Goog-AuthUser"]=P);Q&&(t.Authorization="Bearer "+Q);E.U("enable_datasync_id_header_in_web_vss_pings")&&E.JD&&E.datasyncId&&(t["X-YouTube-DataSync-Id"]=E.datasyncId);if(E.U("enable_rollout_token_header")){var W,I,A=(W=g.tJ("INNERTUBE_CONTEXT"))== null?void 0:(I=W.client)==null?void 0:I.rolloutToken;A&&(t["X-YouTube-Rollout-Token"]=A)}k||t["X-Goog-Visitor-Id"]||Q||G||P?w.withCredentials=!0:E.U("html5_send_cpn_with_options")&&vGu.test(H)&&(w.withCredentials=!0)}Object.keys(t).length>0&&(w.headers=t);e&&(w.onFinish=e);return Object.keys(w).length>1?w:null}; gl1=function(H){g.hH(H.W);var E=H.S.K();E.playerStyle==="gvn"||E.W||E.eR||(E=H.S.NZ(),H.W.Z(E,"contextmenu",H.yGu),H.W.Z(E,"touchstart",H.onTouchStart,null,!0),H.W.Z(E,"touchmove",H.M2,null,!0),H.W.Z(E,"touchend",H.M2,null,!0))}; kNM=function(H,E,G,P,Q,e){e=e===void 0?{}:e;var w=E.substring(0,E.length-Q.name.length),t,k=(t=e)==null?void 0:t.signal;return j1d(function(W){return new Promise(function(I,A){if(k==null?0:k.aborted){var m=new DJ(1,"Aborted");m.cause=k.reason;A(m)}else{var u={},v=yyU(H,W,w);WK(v,"error",function(n){return void A(n)}); WK(v,"metadata",function(n){u=n}); WK(v,"data",function(n){var O=u;O=O===void 0?{}:O;I(new Xi(n,O))}); k&&k.addEventListener("abort",function(){v.cancel();var n=new DJ(1,"Aborted");n.cause=k.reason;A(n)})}})},H.GF).call(H,Q.B(G,P)).then(function(W){return W.Qsx})}; d8d=function(H,E){H=new Set(H.map(E));H.delete(void 0);return H.size>=2}; g.A0=function(H){g.Z0.call(this);var E=this;this.api=H;this.Li=!1;this.dH=null;this.fN=!1;this.d6=null;this.vz=this.iS=!1;this.dJ=this.EL=null;this.iK=NaN;this.mL=this.Vy=!1;this.xK=0;this.AO=[];this.mT=!1;this.lW={height:0,width:0};this.J$=480;this.bWF=["ytp-player-content","html5-endscreen","ytp-overlay"];this.RI={g4:!1};this.Z1=null;var G=H.K(),P=H.NZ();this.lW=H.getPlayerSize();this.XO=new g.Wt(this.tB,0,this);g.d(this,this.XO);G.disableOrganicUi||(this.VY=new g.LI(H),g.d(this,this.VY),g.as(H, this.VY.element,4));this.api.U("web_player_overlay_positioned_layout")&&(this.Z1=new D8Q(this.api),g.d(this,this.Z1));if(u1l(this)){var Q=new SR(H);g.d(this,Q);Q=Q.element;g.as(H,Q,4)}var e=H.getVideoData();this.C6=new nBs(P,H,function(t){return E.Od(t)},e,G.CL,!1); g.d(this,this.C6);this.C6.subscribe("autohideupdate",this.hZ,this);NP(this.C6);if(!G.disablePaidContentOverlay){var w=new C_(H);g.d(this,w);this.Z1?this.Z1.lx(w.element,g.iH(G)?3:1):g.as(H,w.element,4)}this.tW=new Hp(H);g.d(this,this.tW);g.as(this.api,this.tW.element,2);this.h1=this.api.isMutedByMutedAutoplay();this.Z(H,"onMutedAutoplayChange",this.onMutedAutoplayChange);this.pF=new g.Wt(this.If,200,this);g.d(this,this.pF);this.ma=e.videoId;this.BX=new g.Wt(function(){E.xK=0},350); g.d(this,this.BX);this.wr=new g.Wt(function(){E.mL||BBw(E)},350,this); g.d(this,this.wr);e=H.getRootNode();e.setAttribute("aria-label","YouTube Video Player");switch(G.color){case "white":g.aG(e,"ytp-color-white")}this.Z(H,"appresize",this.h7);this.Z(H,"presentingplayerstatechange",this.kx);this.Z(H,"videodatachange",this.onVideoDataChange);this.Z(H,"videoplayerreset",this.YTR);this.Z(H,"autonavvisibility",function(){E.vy()}); this.Z(H,"sizestylechange",function(){E.vy()}); this.Z(P,"click",this.BO5,this);this.Z(P,"dblclick",this.Z6N,this);this.Z(P,"mousedown",this.jwN,this);G.au&&(this.Z(P,"gesturechange",this.fOp,this),this.Z(P,"gestureend",this.vWa,this));this.nI=[P.iE];this.VY&&this.nI.push(this.VY.element);Q&&this.nI.push(Q);this.api.U("web_player_fullscreen_double_click_ve")&&(this.api.createClientVe(P.element,this,247482),this.api.logVisibility(P.element,!0))}; Cd=function(H){var E,G,P;return((E=H.playerResponse)==null?void 0:(G=E.playerConfig)==null?void 0:(P=G.compositeVideoConfig)==null?void 0:P.compositeBroadcastType)==="COMPOSITE_BROADCAST_TYPE_COMPRESSED_DOMAIN_COMPOSITE"}; d2=function(H,E,G){var P=[],Q=H.track.rP;if(Q){Q=Q.qV();for(var e=0;ee?Q=0:P[w]>H.buffered[w]&&(w===e-1?Q=2:w===e-2&&P[w+1]>H.buffered[w+1]&&(Q=3))}H.L.add(E<<3|(G&&4)|Q);E=Math.ceil(H.track.sB()*1E3);H.L.add(E-H.T);H.T=E;if(Q===1)for(H.L.add(e),w=E=0;w=2&&H.L.add(P[e- 1]-H.buffered[e-1]);G&&H.L.add(G);H.buffered=P}; ic=function(H){this.value=H}; yX=function(H,E,G){aPd(H.mZ,E);H.PF&&(H.PF.add(Math.ceil(E)-Math.ceil(H.B)),H.PF.add(Math.max(0,Math.ceil(G/1024)-Math.ceil(H.T/1024))));var P=E-H.B,Q=G-H.T;H.V8=Q;H.hm=Math.max(H.hm,Q/(P+.01)*1E3);H.B=E;H.T=G;H.E7&&G>H.E7&&OPQ(H)}; Fqq=function(H,E){return H.U7!==E.U7&&E.U7!==H.U7+1||H.type!==E.type?!1:tL(H,E)?!0:Math.abs(H.D-E.D)<=1E-6&&H.U7===E.U7?!1:OKw(H,E)}; l2=function(H,E,G,P){g.J.call(this);this.W=E;this.cT=G;this.Da=P;this.L=H(this,this,this,this,this);g.d(this,this.L);H=g.R(E);for(E=H.next();!E.done;E=H.next())g.d(this,E.value)}; KWu=function(H,E,G,P,Q,e){this.slot=E;this.L=G;this.W=new LIs(H,E,P,Q,e)}; g.ctt=function(H){H.cursor.continue(void 0);return j5T(H.request)}; NTw=function(H){var E;return((E=((H==null?void 0:H.messageRenderers)||[]).find(function(G){return!!G.timeCounterRenderer}))==null?void 0:E.timeCounterRenderer)||null}; VOl=function(H,E,G,P,Q,e){G=new ZN([new bf(G),new nn(P)]);E=dU(H.W.get(),"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",E);P={layoutId:E,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",f_:"core"};return{layoutId:E,layoutType:"LAYOUT_TYPE_UNDERLAY_TEXT_ICON_BUTTON",w5:new Map,layoutExitNormalTriggers:[new WX(function(w){return wM(H.W.get(),w)},Q)], layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:G,O2:e(P),adLayoutLoggingData:void 0}}; Ail=function(H){var E=H.baseUrl;yt1(E)||H.error("drm.net",2,"t.x");if(!DN(E,"fexp")){var G=["23898307","23914062","23916106","23883098"].filter(function(Q){return H.X.experiments.experiments[Q]}); G.length>0&&(H.T.fexp=G.join())}G=g.R(Object.keys(H.T));for(var P=G.next();!P.done;P=G.next())P=P.value,E=AJd(E,P,H.T[P]);return E}; ot=function(H,E,G){if(typeof H==="string")return{videoId:H,startSeconds:E,suggestedQuality:G};E={};G=g.R(bPv);for(var P=G.next();!P.done;P=G.next())P=P.value,H[P]&&(E[P]=H[P]);if(H=H.embedConfig||H.embed_config)if(typeof H==="string")E.embed_config=H;else if(g.rW(H))try{var Q=JSON.stringify(H);E.embed_config=Q}catch(e){console.error("Invalid embedConfig JSON",e)}return E}; yA=function(H){for(var E=g.R(H.G.entries()),G=E.next();!G.done;G=E.next()){var P=g.R(G.value);G=P.next().value;P=P.next().value;P<(0,g.ON)()&&H.G.delete(G)}return H.G}; hyd=function(H){Xu.call(this,H);var E=this;this.L=null;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"applicationvideodatachange",function(){E.Tv()})}; iPv=function(){this.L=new iJs}; dgn=function(H,E,G){var P=g.R(H.index?$$(H.logger,function(){return GYj(Ien(E),G)},"R"):["u"]),Q=P.next().value; P=P.next().value;H.logger.YU(Q);return P}; qz1=function(H,E,G,P,Q){var e=H.T.get(G);if(!e){if(e=KI(H,E))return e;E=H.x9(G-1,P!=null?P:2);if(Q)return H.LP({misscue:Q,sq:G,type:P,prevsstate:E==null?void 0:E.N5,prevrecord:H.T.has(G-1)}),H.T.get(G-1);if((E==null?void 0:E.N5)===2)return H.LP({adnf:1,sq:G,type:P,prevrecord:H.T.has(G-1)}),H.T.get(G-1)}return e}; XM=function(H,E,G){E&&(E=g.TF(H,{playerType:G}))&&E===H.qZ()&&(E.getVideoData().WO=!0)}; RJs=function(H){var E=H.cpn,G=H.vY;H=H.eE;var P=G.VW(),Q={};Gq(G,"ce",(Q.ec=E,Q.ia=E!==P,Q.r=PV.oV.has(E),Q.is=H,Q.ctp=Q6(E),Q))}; rtu=function(H,E){var G=document.createElement("img");H.crossOrigin&&(G.crossOrigin=H.crossOrigin);G.src=H.levels[E.m7].TU(E.XL);G.onload=function(){var P=E.m7,Q=E.XL;H.L!==null&&(H.L.onload=null,H.L=null);P=H.levels[P];P.loaded.add(Q);JtM(H);var e=P.columns*P.rows;Q*=e;P=Math.min(Q+e-1,P.rz()-1);Q=[Q,P];H.publish("l",Q[0],Q[1])}; return G}; RW=function(H){var E=cz(NO);return E?H[E]:void 0}; Cn=function(H){(H=Ye(H.lm()))&&H.created&&H.destroy()}; Aew=function(H){this.itag=H.itag;this.url=H.url;this.codecs=H.codecs;this.width=H.width;this.height=H.height;this.fps=H.fps;this.bitrate=H.bitrate;var E;this.W=((E=H.audioItag)==null?void 0:E.split(","))||[];this.w9=H.w9;this.QF=H.QF||"";this.CP=H.CP;this.audioChannels=H.audioChannels;this.L=""}; BTw=function(H,E){return new FI(H.B,H.G,E||H.L.reason)}; uA=function(H){this.L=H;this.offset=0}; idw=function(H){H=g.R(H);for(var E=H.next();!E.done;E=H.next())if(E.value.audio.audioQuality==="AUDIO_QUALITY_HIGH")return!0;return!1}; g.tf=function(H,E,G){var P=g.t1();if(P&&E){var Q=P.subscribe(H,function(){function e(){ko[Q]&&E.apply&&typeof E.apply=="function"&&E.apply(G||window,w)} var w=arguments;try{g.qP[H]?e():g.bw(e,0)}catch(t){g.OS(t)}},G); ko[Q]=!0;Bq[H]||(Bq[H]=[]);Bq[H].push(Q);return Q}return 0}; YzT=function(H,E,G){E.pz().currentState<2&&(G=Hx(G,H.Da),E.Ka(E.Za(),G));G=E.pz().L;H.eL(H.slot,E.Za(),G)}; G9=function(H,E,G,P,Q,e,w,t,k){Q?oQ(H,Q).f5.push({qYx:E,qN:G,isContentVideoCompanion:P,ZF:w,associatedCompositePlayerBytesLayoutId:e,adSlotLoggingData:t,hU:k}):xQ("Companion AdPlacementSupportedRenderer without adVideoId")}; XE7=function(H){H.policy.UT=!1;try{H.Fp()}catch(E){g.h3(E)}}; R3=function(H,E,G,P,Q,e){G=G===void 0?!0:G;var w=g.TF(H,{playerType:Q});if(!w||(w.getPlayerType()!==2||H.Xm(w))&&!g.eP(w.getVideoData())){var t=H.XI.pM;t?t.seekTo(E,{aN:!G,Tk:P,cO:"application",seekSource:e}):(w&&w===H.qZ()&&H.PT&&!ZPM(H,E)&&H.setLoopRange(null),H.seekTo(E,G,P,Q,e,"_request"))}}; g.Fh=function(H,E){return Array.prototype.splice.call(H,E,1).length==1}; vgn=function(H,E,G){E=g.R(E);for(var P=E.next();!P.done;P=E.next()){P=P.value;var Q=void 0,e=Number((Q=P.playbackRelativePosition)==null?void 0:Q.utcTimeMs)/1E3,w=void 0;Q=e+Number((w=P.duration)==null?void 0:w.seconds);w="stations:"+G+":"+e;H.W.has(w)||(H.W.add(w),P.onEnter&&(H.L[w]=P.onEnter),H.api.addUtcCueRange(w,e,Q,G,!1))}}; CSM=function(H){/[^a-zA-Z0-9;.!_-]/.test(H)&&(H=H.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return H}; g.WA7=function(H){return H.data["Serialized-State"]?H.data["Serialized-State"]:""}; gBl=function(H,E){if(H=H.flags.get(""+E))if(H=H.replace(/\[ *(.*?) *\]/,"$1"))return H.split(",").map(Number);return[]}; Eq=function(){oX.instance||(oX.instance=new oX);return oX.instance}; It=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){G=G.value;var P=H.WF.get(G.triggerId);P&&(P.nR(G),H.WF.delete(G.triggerId))}}; LWQ=function(H,E){if(H.iA&&H.U7!==void 0&&H.RP!==void 0){var G=Math,P=G.min,Q=H.Jm;var e=H.iA;var w=H.L;if(B$U(e,H.U7))e=E;else{var t=0;e.Gc&&(t=.2);e=w+(e.lk+t)*1E3}H.Jm=P.call(G,Q,e);G=Math;P=G.min;Q=H.T$;e=H.iA;w=H.L;t=kx1(e,H.U7,H.RP);t!==2&&(E=t?E:w+e.lk*1E3,e.Gc&&(E+=e.lk*1E3));H.T$=P.call(G,Q,E);H.Jm<=H.L?nyn(H):(H.z$=H.Jm,H.FI=!0)}}; G4=function(H,E){return E>H.mediaTime+H.T&&E0||(G.Xo=16E3);Object.assign(this,G);H=g.R(this.id.split(";"));this.itag=H.next().value;this.L=H.next().value;this.containerType=Z4(E);this.K_=AD[this.itag]||""}; Vz=function(H,E,G){return typeof H==="string"?(H=encodeURI(H).replace(E,XuM),G&&(H=H.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),H):null}; lPs=function(H,E,G,P,Q){s9.call(this,H,{J:"div",Y:"ytp-ad-instream-user-sentiment-container"},"instream-user-sentiment",E,G,P,Q===void 0?null:Q);var e=this;this.L=null;this.G=new YJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,["ytp-ad-instream-user-sentiment-like-button"]);g.d(this,this.G);this.G.mx(this.element);this.W=new YJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,["ytp-ad-instream-user-sentiment-dislike-button"]);g.d(this,this.W);this.W.mx(this.element); this.D=new g.NB(this,400,!1,500,function(){return e.hide()}); g.d(this,this.D);this.hide()}; zJ7=function(H,E,G,P){P=P===void 0?null:P;g.z7.call(this);this.element=H;this.videoData=E;this.X=G;this.mediaElement=P;this.G=[];this.T$=2;this.z$=this.PF=!1;this.heartbeatParams=null;this.E7=this.L_=!1;this.T=null;this.O7=!1;this.L=this.videoData.T;this.drmSessionId=this.videoData.drmSessionId||g.EZM();this.W=new Map;this.C=new L7;this.B=new L7;this.WF=new g.Z0(this);this.Jm=this.X.U("html5_eme_ignore_teardown_errors");(H=this.element)&&(H.addKey||H.webkitAddKey)||Qa()||Pu(G.experiments);this.X.U("html5_enable_vp9_fairplay")&& d_(this.L)?G=U8t:(G=this.videoData.P9,G=this.L.flavor==="fairplay"||G?q3:U8t);this.N=G;this.D=new JQ(this.element,this.L,this.Jm);g.d(this,this.D);rD(this.L)&&(this.p_=new JQ(this.element,this.L,this.Jm),g.d(this,this.p_));g.d(this,this.WF);G=this.element;this.L.keySystemAccess?this.WF.Z(G,"encrypted",this.R0Z):Om(this.WF,G,rD(this.L)?["msneedkey"]:["needkey","webkitneedkey"],this.OS7);x8M(this);a:switch(G=this.L,H=this.X.experiments,E=this.W,G.flavor){case "fairplay":tS()>19.2999?(H=G.t5,G=G.Tg, G>=H&&(G=H*.75),E=(H-G)*.5,G=new Se(E,H,H-E-G,this)):G=null;break a;case "widevine":G=new Bw(E,this,H);break a;default:G=null}if(this.T=G)g.d(this,this.T),this.T.subscribe("rotated_need_key_info_ready",this.jM,this),this.T.subscribe("log_qoe",this.uV,this);Pu(this.X.experiments);this.uV({cks:this.L.getInfo()})}; f61=function(H,E,G,P,Q,e,w,t){this.Fg=H;this.d5=E;this.SR=G;this.W=P;this.yY=Q;this.L=e;this.Da=w;this.C_=t}; uQ1=function(H,E){var G=[];E=g.R(E);for(var P=E.next();!P.done;P=E.next()){P=P.value;var Q=TTl[P]||0;H.L&&Q>H.L||G.push(P)}return G}; fd7=function(H,E){return H.W+E*(H.L-H.W)}; Szq=function(H){if(!g.Xj("universal_csi_network_ticks"))return function(){}; var E=gHw[H];return E?(i1(E),function(){var G=g.Xj("universal_csi_network_ticks")?(G=VZd[H])?i1(G):!1:!1;return G}):function(){}}; g.GN=function(H,E,G){G=H.L_.splice(G||0)[0];(G=H.G=H.G||G)?G.RW?H.L=H.C||H.T:G.bJ!=void 0&&H.T60&&!g.vV(H.X)?new Jv(0,360,!1,"v"):q3}; fPq=function(H,E){switch(E){case "ad":return X7(H);case "annotations_module":return H.S.isEmbedsShortsMode()?H=!1:(E=H.S,H=E.K(),E=E.getVideoData(),H=H.G||E.HM||H.controlsType==="3"?!1:H.T$.isEmpty()&&H.playerStyle!=="annotation-editor"&&H.playerStyle!=="live-dashboard"?!!E.BA||!!g.Yt(E)||!!g.Ho(E):!0),H;case "asmjs":return Cg(H);case "creatorendscreen":return XNd(H);case "embed":return g.L3(H.S.K());case "endscreen":return g.d21(H);case "heartbeat":return H.nJ();case "kids":return Xk(H.S.K());case "remote":return H.S.K().xx; case "miniplayer":return H.S.K().showMiniplayerUiWhenMinimized;case "offline":return H.S.K().v6;case "captions":return FWt(H);case "unplugged":return g.Rp(H.S.K());case "ux":return H.S.K().BF;case "webgl":return MUT(H);case "ypc":return H.Pv();default:return g.h3(Error("Module descriptor "+E+" does not match")),!1}}; pEs=function(H,E){return n2n(H,E,KAT)}; Qx=function(H,E,G,P,Q,e,w){e=e===void 0?[]:e;var t=Jg(H.W.get(),"SLOT_TYPE_AD_BREAK_REQUEST");w||(w=[],P.Ij&&P.Ij.start!==P.A2.start&&w.push(new Rq(H.L,G,new WM(P.Ij.start,P.A2.start),!1)),w.push(new Rq(H.L,G,new WM(P.A2.start,P.A2.end),P.eV)));P={getAdBreakUrl:E.getAdBreakUrl,pZ:P.A2.start,LZ:P.A2.end,cueProcessedMs:P.cueProcessedMs};E=new XH(H.L,t);e=[new $8(P)].concat(g.EC(e));return{slotId:t,slotType:"SLOT_TYPE_AD_BREAK_REQUEST",slotPhysicalPosition:1,slotEntryTrigger:E,slotFulfillmentTriggers:w, slotExpirationTriggers:[new BQ(H.L,G),new Y7(H.L,t),new yz(H.L,t)],f_:"core",clientMetadata:new ZN(e),adSlotLoggingData:Q}}; HaU=function(H,E){H.L||(H.W=E,H.G=(0,g.ON)(),H.L=new g.tr(function(){nz7(H)},null),nz7(H))}; oV=function(H,E,G){G=G===void 0?!1:G;H.s7=qc(H.s7,E.video_id);H.qC=qc(H.qC,E.eventid);H.qC&&(vI=H.qC);for(var P=[],Q=g.R(Object.keys(EV7)),e=Q.next();!e.done;e=Q.next()){e=EV7[e.value];var w=E[e];w!=null&&(w!==H.L[e]&&P.push(e),H.L[e]=w)}!G&&P.length>0&&H.wp&&(P.sort(),g.p5(new g.LN("Player client parameters changed after startup",P)));H.userAge=dq(H.userAge,E.user_age);H.xH=qc(H.xH,E.user_display_email);H.userDisplayImage=qc(H.userDisplayImage,E.user_display_image);g.Eb(H.userDisplayImage)||(H.userDisplayImage= "");H.userDisplayName=qc(H.userDisplayName,E.user_display_name);H.bx=qc(H.bx,E.user_gender);H.csiPageType=qc(H.csiPageType,E.csi_page_type);H.csiServiceName=qc(H.csiServiceName,E.csi_service_name);H.zo=BY(H.zo,E.enablecsi);H.pageId=qc(H.pageId,E.pageid);if(G=E.enabled_engage_types)H.enabledEngageTypes=new Set(G.split(","));E.living_room_session_po_token&&(H.xW=E.living_room_session_po_token.toString())}; GO7=function(H){var E=g.h_(H);var G=(G=g.DB(E,0,1936286840))?G.data.getUint32(G.dataOffset+8):NaN;isNaN(G)&&(H=H.info.uJ.L,G=(E=g.DB(E,0,1836476516))?g.j_(E):H?Rt(H):NaN);return G}; MNT=function(H){Vx=H}; Ys=function(H){if(H.offset>=H.L.totalLength)throw Error();return fE(H.L,H.offset++)}; mn=function(H,E,G,P){K3(H);var Q=H.VN,e=Q[c9]|0;if(P==null)return jP(Q,e,G),H;if(!Array.isArray(P))throw ao();for(var w=P===Bb?7:P[c9]|0,t=w,k=tO(w),W=k||Object.isFrozen(P),I=!0,A=!0,m=0;m1&&!H.policy.E7){if(!H.policy.xx){var G=g.VS(E,function(P){return P.audio.audioQuality!=="AUDIO_QUALITY_HIGH"}); G&&(H.W=H.ou.L[G.id])}G=!1;if(G=H.policy.qC?!0:H.L.isLocked()?H.L.L<240:HIv(H,H.W))H.W=H.ou.L[g.Q3(E).id]}}}; H5=function(H){var E=sY();return!!(E&&E.canPlayType&&E.canPlayType(H))}; Io=function(H,E){E?H.requestHeaders.Authorization="Bearer "+E:delete H.requestHeaders.Authorization}; g.gD=function(H){for(var E=g.R(H.items),G=E.next();!G.done;G=E.next())G.value.unsubscribe("size-change",H.kO,H);H.items=[];try{g.NG(H.menuItems.element)}catch(e){var P,Q;g.p5(new g.LN("Failed to remove menu items from panel menu.",{error:e.message,originalStack:e.stack,childToBeRemoved:(Q=(P=H.menuItems.element.firstChild)==null?void 0:P.textContent)!=null?Q:"child element not found"}))}H.menuItems.publish("size-change")}; $Ew=function(H,E,G){if(H.logger){for(var P=[],Q=0;Q=3&&H.S.getPresentingPlayerType()!==2}; L4=function(H,E){return H.map(function(G){return OL(g.KJ(G,E))})}; cU=function(H,E){H.msg=xf[E];return E}; lf=function(H,E){H=H.element.element;E?H.setAttribute("aria-hidden","true"):H.removeAttribute("aria-hidden")}; O3=function(H,E){return Number(H.data[E])||0}; Isl=function(H,E){var G=W$M(H,E);G||xQ("Expected subLRA found by layout ID",H.slot,H.layout,{layoutId:E});H.L={cA:G};G?G.startRendering(G.Za()):E===H.W&&xQ("Failed to find rendering adapter for survey media layout",H.slot,H.layout,{surveyMediaLayoutId:E})}; XQU=function(H){this.VN=tz(H)}; awv=function(H){H.W!==void 0&&(H.G.forEach(function(E){var G;(G=H.W)==null||G.removeEventListener(E,H.D)}),H.W=void 0)}; A5U=function(H){this.L=H;this.iv=(0,g.Vi)(w$(16))}; cm=function(H){this.L=H===void 0?null:H;this.G=0;this.W=null}; KA=function(H,E){Lt(H.L,m0,1,E);w6(E,1)||K61(E);H.c5||(E=Hn(H),WH(E,5)||l0(E,5,H.locale));H.uach&&(E=Hn(H),yP(E,ER,9)||Lt(E,ER,9,H.uach))}; u6v=function(H){var E=H===void 0?{}:H;H=E.hasSubfragmentedFmp4===void 0?!1:E.hasSubfragmentedFmp4;E=E.KQ===void 0?!1:E.KQ;var G=new mEn;G.Gc=H||E;return G}; iV=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n,O,q,N){this.aq=H;this.ET=E;this.Ou=G;this.SR=P;this.im=Q;this.zH=e;this.JG=w;this.C_=t;this.d5=k;this.q4=W;this.Dj=I;this.l4=A;this.hG=m;this.ST=u;this.SA=v;this.Da=n;this.Ge=O;this.context=q;this.Cm=N}; u$l=function(H){var E;return((E=H.audio)==null?void 0:E.audioQuality)==="AUDIO_QUALITY_HIGH"}; Bkn=function(H,E){H.L=E}; vVQ=function(H){if(H.instreamVideoAdRenderer===void 0)return xQ("AdPlacementSupportedRenderers without matching InstreamVideoAdRenderer"),!1;for(var E=g.R(H.f5),G=E.next();!G.done;G=E.next()){G=G.value;if(G.hU===void 0)return!1;if(G.ZF===void 0)return xQ("AdPlacementConfig for AdPlacementSupportedRenderers that matches an InstreamVideoAdRenderer is undefined"),!1;if(H.FJ===void 0||G.qN===void 0||H.FJ!==G.qN&&G.qN!=="AD_PLACEMENT_KIND_SELF_START")return!1;if(H.instreamVideoAdRenderer.elementId===void 0)return xQ("InstreamVideoAdRenderer has no elementId", void 0,void 0,{kind:H.FJ,"matching APSR kind":G.qN}),!1}return!0}; g.lo=function(){return window.devicePixelRatio>1?window.devicePixelRatio:1}; Fv=function(H){return H.wW0&&H.C--)}; UQ=function(H,E,G){B5.call(this,H,E);this.T=G;H=this.index=new g.MC;H.W=!1;H.G="d"}; g.PZ=function(H){return H.Jm==="profilepage"}; dEQ=function(H,E,G,P,Q){try{if(H.state.status!=="REJECTED")throw Error("calling handleReject before the promise is rejected.");var e=G(H.state.reason);e instanceof g.t4?Mcs(H,E,e,P,Q):P(e)}catch(w){Q(w)}}; RsU=function(H,E){var G=g.Un("yt.embedded_player.embed_url");G&&(H?(E=yP(H,xt,7)||new xt,l0(E,4,G),Lt(H,xt,7,E)):E&&(E.thirdParty={embedUrl:G}))}; DEU=function(H){return{token:zb(H,1)}}; IQj=function(H){nVl=H}; cHM=function(H){if(H.KX&&typeof H.KX=="function")return H.KX();if(typeof Map!=="undefined"&&H instanceof Map||typeof Set!=="undefined"&&H instanceof Set)return Array.from(H.values());if(typeof H==="string")return H.split("");if(g.gw(H)){for(var E=[],G=H.length,P=0;P=0?E:g.Gm(H.provider);var G=H.provider.Fo.Bl(),P=G.Oh-(H.eR||0);P>0&&g.BC(H,E,"bwm",[P,(G.D9-(H.WO||0)).toFixed(3)]);isNaN(H.eR)&&G.Oh&&H.isOffline&&H.YP(!1);H.eR=G.Oh;H.WO=G.D9;isNaN(G.bandwidthEstimate)||g.BC(H,E,"bwe",[G.bandwidthEstimate.toFixed(0)]);H.provider.X.z6()&&Object.keys(G.L).length!==0&&H.g5("bwinfo",G.L);if(H.provider.X.z6()||H.provider.X.U("html5_log_meminfo"))P=Yvw(),Object.values(P).some(function(e){return e!==void 0})&&H.g5("meminfo",P); if(H.provider.X.z6()){var Q;(P=(Q=H.hm)==null?void 0:XdQ(Q))&&Object.values(P).some(function(e){return e!=null})&&H.g5("cpuinfo",P)}H.BF&&H.g5("jsprof",H.BF.flush()); H.L_&&g.BC(H,E,"bat",[H.L_.level,H.L_.charging?"1":"0"]);Q=H.provider.Fo.getVisibilityState();H.AG!==Q&&(g.BC(H,E,"vis",[Q]),H.AG=Q);BH(H,E);(Q=Zal(H.provider))&&Q!==H.ML&&(g.BC(H,E,"conn",[Q]),H.ML=Q);CZ1(H,E,G)}; K$M=function(H,E){if(E.J==="path")return E.j.d;if(E.V)for(var G=0;GP)return mx(H,e.config),lsw(H,e.configData),Sn(H,e.hashData),t.return(eE());case 2:wIj(H);if(!(G&&H.L&&H.coldHashData&&H.configData)){t.bJ(4);break}return g.U(t,k4Q(H.L, H.coldHashData,H.configData,G,P),4);case 4:return H.L?t.return(eE()):(w=new g.LN("Config not available in ytConfig"),Za(w),t.return(Promise.reject(w)))}})}; HfU=function(H){var E={duration:null,preview:null,text:null,title:null,"tooltip-title":null,url:null,"data-title-no-tooltip":null,"aria-keyshortcuts":null},G=H.playlist!=null&&H.playlist.wU();G=g.UR(H.S)&&(!H.L||G);var P=H.L&&g.F8(H.S),Q=pKl(H),e=H.L&&H.S.getPresentingPlayerType()===5,w=g.dv(H.S,"Next","SHIFT+n"),t=g.dv(H.S,"Previous","SHIFT+p");if(e)E.title="Start video",E["tooltip-title"]="Start video";else if(H.G)E.title="Replay",E["tooltip-title"]="Replay";else if(G){var k=null;H.playlist&&(k= g.qg(H.playlist,H.L?UEn(H.playlist):xEn(H.playlist)));if(k){if(k.videoId){var W=H.playlist.listId;E.url=H.S.K().getVideoUrl(k.videoId,W?W.toString():void 0)}E.text=k.title;E.duration=k.lengthText?k.lengthText:k.lengthSeconds?g.Cc(k.lengthSeconds):null;E.preview=k.QM("mqdefault.jpg")}H.L?(E.title=w,E["tooltip-title"]=w,E["data-title-no-tooltip"]="Next",E["aria-keyshortcuts"]="SHIFT+n"):(E.title=t,E["tooltip-title"]=t,E["data-title-no-tooltip"]="Previous",E["aria-keyshortcuts"]="SHIFT+p")}else if(P){if(t= (k=H.videoData)==null?void 0:g.KR(k))E.url=t.Sd(),E.text=t.title,E.duration=t.lengthText?t.lengthText:t.lengthSeconds?g.Cc(t.lengthSeconds):null,E.preview=t.QM("mqdefault.jpg");E.title=w;E["tooltip-title"]=w;E["data-title-no-tooltip"]="Next";E["aria-keyshortcuts"]="SHIFT+n"}E.disabled=!P&&!G&&!Q&&!e;H.update(E);H.C=!!E.url;P||G||H.G||Q||e?H.W||(H.W=g.SH(H.tooltip,H.element),H.T=H.listen("click",H.onClick,H)):H.W&&(H.W(),H.W=null,H.Sq(H.T),H.T=null);H.tooltip.aP();g.Bt(H.element,"ytp-playlist-ui", H.L&&(G||H.S.U("web_hide_next_button")))}; HOl=function(H,E,G,P,Q,e,w,t){return E===null?new T("Invalid slot type when get discovery companion fromActionCompanionAdRenderer",{slotType:E,ActionCompanionAdRenderer:P}):[hmv(H,E,w,e,function(k){var W=k.slotId;k=t(k);var I=P.adLayoutLoggingData,A=new ZN([new om(P),new nn(Q)]);W=dU(G.W.get(),"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",W);var m={layoutId:W,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",f_:"core"};return{layoutId:W,layoutType:"LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON",w5:new Map, layoutExitNormalTriggers:[new BQ(G.L,w)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:A,O2:k(m),adLayoutLoggingData:I}})]}; ZG=function(H){if(!isNaN(H.O7))return H.O7;var E=H.L,G;for(G in E){var P=E[G].index;if(P.isLoaded()&&!wU(E[G].info.mimeType)){E=0;for(G=P.gH();G<=P.vO();G++)E+=P.getDuration(G);E/=P.yb();E=Math.round(E/.5)*.5;P.yb()>10&&(H.O7=E);return E}if(H.isLive&&(P=E[G],P.g7))return P.g7}return NaN}; zis=function(H){return{targetAudioReadaheadMs:hU(H,1),targetVideoReadaheadMs:hU(H,2),backoffTimeMs:hU(H,4),playbackCookie:eH(H,7),videoId:zb(H,8)}}; TRw=function(H,E,G){H instanceof String&&(H=String(H));for(var P=H.length,Q=0;Q0)G=!0;else{for(var P=g.R(H.G.values()),Q=P.next();!Q.done;Q=P.next())if(Q.value.cryptoPeriodIndex===G){G=!0;break a}G=!1}}H.publish("log_qoe",{wvagt:"reqnews",canskip:G});G||H.publish("rotated_need_key_info_ready",E)}; VV=function(H,E,G){this.G=H;this.z$=G===void 0?"na":G;this.T=[];this.isInitialized=!1;this.D=new un(-1,!0,this);this.L=this;this.N=E;this.p_=this.L_=!1;this.PF="uk";this.E7=!1;this.C=!0}; H_u=function(H,E,G,P){if(!G.playerVars)return new T("No playerVars available in AdIntroRenderer.");var Q=W9(G.playerVars);Q.autoplay="1";return function(e){var w=e.slotId;e=P(e);w=dU(H.W.get(),"LAYOUT_TYPE_MEDIA",w);var t={layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",f_:"adapter"};return{HK:{layoutId:w,layoutType:"LAYOUT_TYPE_MEDIA",w5:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"adapter", clientMetadata:new ZN([new VX({}),new nn(E),new W3({current:null}),new tm(Q)]),O2:e(t)},vA:[new lH(H.L,w,["error"])],W$:[],Hk:[],JI:[]}}}; fsn=function(H,E){this.L=H;this.Da=E}; sW7=function(){var H=g.pr("yt-player-quality");if(H instanceof Object&&H.quality&&H.previousQuality){if(H.quality>H.previousQuality)return 1;if(H.quality2?H.L.statusText:""}catch(G){E=""}H.D=E+" ["+H.getStatus()+"]";wPj(H)}}finally{ke(H)}}}; g.Gs=function(H,E,G,P){g.J.call(this);var Q=this;this.api=H;this.X=E;this.playback=G;this.app=P;this.WF=new g.CQ;this.W=new Map;this.V8=new Map;this.E7=new Map;this.O7=null;this.dP=NaN;this.s7=this.G6=null;this.FI=new g.Wt(function(){vrv(Q,Q.dP,Q.G6||void 0)}); this.events=new g.Z0(this);this.MZ=15E3;this.B=new g.Wt(function(){Q.N=!0;Q.playback.HP(Q.MZ);UI(Q);if(Q.playback.getVideoData().mV()){var e;Q.LP({togab:(e=Q.C)==null?void 0:e.identifier})}Q.YX(!1)},this.MZ); this.N=!1;this.T=new Map;this.Yp=[];this.C=null;this.qC=new Set;this.L_=[];this.hm=[];this.ox=[];this.ML=[];this.z$=new Set;this.cN=0;this.p_=!1;this.WO=new Set;this.yG=new Set;this.AG=new Set;this.au=new Set;this.gt=this.H9=0;this.jm=this.jT=!1;this.e7=this.G="";this.Jm=null;this.logger=new g.Pj("dai");this.AT="";this.eR=!0;this.T$=new Map;this.U2=new Map;this.kV={k35:function(){return Q.W}, C7:function(){return Q.L.kV.C7()}, Lvw:function(){return Q.G}, YhZ:function(e){Q.onCueRangeEnter(Q.W.get(e))}, yH5:function(e){Q.onCueRangeExit(Q.W.get(e))}, l9Z:function(e,w){Q.W.set(e,w)}, Poo:function(e){Q.e7=e}, FZ:function(){return Q.FZ()}, V2J:function(e){return Q.L.L.get(e)}, FvJ:function(){return Q.Jm}, oi:function(){return Q.L.kV.oi()}, GO:function(e,w){Q.GO(e,w)}, HdJ:function(){return Q.V8}, DP:function(e){Q.DP(e)}}; this.playback.getPlayerType();this.L=new M2v(this.X);this.playback.hY(this);this.BF=this.X.z6();g.d(this,this.FI);g.d(this,this.events);g.d(this,this.B);this.lG=this.X.U("html5_use_new_ssdai_transition_detector");this.UT=this.playback.getVideoData().SO;this.lG?this.playback.subscribe("playbackstarted",this.GO,this):(this.events.Z(this.api,g.Ya("serverstitchedcuerange"),this.onCueRangeEnter),this.events.Z(this.api,g.XT("serverstitchedcuerange"),this.onCueRangeExit));this.Fa=this.X.U("html5_ssdai_report_stitch_error_after_skip_ad"); pJ(this.app.UR(),this.playback,!1)}; PB=function(H,E,G){zm.call(this,H);this.api=H;this.vF=E;this.components={};H=new g.D({J:"div",QN:["video-ads","ytp-ad-module"]});g.d(this,H);KW&&g.aG(H.element,"ytp-ads-tiny-mode");this.D=new MJ(H.element);g.d(this,this.D);g.as(this.api,H.element,4);vH(G)&&(G=new g.D({J:"div",QN:["ytp-ad-underlay"]}),g.d(this,G),this.W=new MJ(G.element),g.d(this,this.W),g.as(this.api,G.element,0));g.d(this,spu())}; g.dyT=function(H,E,G,P){var Q=H.C!==G,e=H.T!==P;H.zc=E;H.C=G;H.T=P;$l(H)&&(E=H.W)!=null&&(E.scale=P?1.5:1);KLt(H);H.L.length===1&&(H.L[0].width=G||0);Q&&g.q_(H);H.W&&e&&$l(H)&&(H.W.isEnabled&&(G=H.T?135:90,P=G-H.Jm,H.s7.style.height=G+"px",g.AE(H.WF,"transform","translateY("+-P+"px)"),g.AE(H.progressBar,"transform","translateY("+-P+"px)")),kV1(H.W))}; g.lw=function(H,E){return(E||document).getElementsByTagName(String(H))}; Dyd=function(H,E){H.Wr.L===2&&E!==H.VW()&&xQ("onClipEntered: unknown cpn",H.slot,H.layout,{cpn:E})}; nrs=function(H,E,G){HS()||(H.requestTimeMs=String(E));g.Xj("unsplit_gel_payloads_in_logs")&&(H.unsplitGelPayloadsInLogs=!0);!G&&(E=g.tJ("EVENT_ID"))&&(G=Zuw(),H.serializedClientEventId={serializedEventId:E,clientCounter:String(G)})}; xM=function(){return["metadata_type_ad_placement_config"]}; Wg=function(H){var E=H.rP&&H.rP.ZT();if(H.policy.Le){if((H=H.B)==null)H=void 0;else{var G;H=(G=H.G)==null?void 0:G.info}return H||null}return E}; ApM=function(H){return window.PressureObserver&&new window.PressureObserver(H)}; arU=function(H,E){E=Array.prototype.splice.call(H,E,1);Array.prototype.splice.call(H,0,0,E[0])}; OpT=function(H){if(!H)return null;H=g.R(H);for(var E=H.next();!E.done;E=H.next()){var G=void 0,P=void 0;if(E=(G=E.value.adPlacementRenderer)==null?void 0:(P=G.renderer)==null?void 0:P.videoAdTrackingRenderer)return E}return null}; QF=function(H,E,G){H.L_&&H.L_.UM(E,G)}; g.Y9=function(H){return g.pR()[H]||0}; cIM=function(H,E){var G=Date.now()/1E3,P=G-H.startTimeSecs,Q=G-H.C,e=Q>=H.policy.D$,w=!1;if(e){var t=0;!isNaN(E)&&E>H.T&&(t=E-H.T,H.T=E);t/Q=H.policy.wH&&!H.G;if(!e&&!G&&Kbn(H,E))return NaN;G&&(H.G=!0);a:{P=w;G=(0,g.ON)()/1E3-(H.Dz.BK()||0)-H.B.L-H.policy.yG;e=H.W.startTime;G=e+G;if(P){if(isNaN(E)){sT(H,NaN,"n",E);e=NaN;break a}P=E-H.policy.jh;P=0?H.start(E):NaN}; W$M=function(H,E){return E==null?null:H.G.find(function(G){return G.Za().layoutId===E})||null}; Eh=function(H,E,G){for(var P in G)if(G[P]==E)return G[P];return H}; Iz7=function(H,E,G){for(var P=[],Q=g.R(H),e=Q.next();!e.done;e=Q.next())if(e=g.X(e.value.renderingContent,S4)){if(!P8(e))return new T("Invalid vod media renderer");P.push(d3M(e))}Q=P.map(function(A){return A.Gp}); e=[];for(var w=0,t=0;t=H.data.length)return H.error=!0,0;H.register|=H.data[H.W++]<>=E;H.L-=E;return G}; X_v=function(H,E,G){var P=E.errorScreen;if(!(P&&(P.playerLegacyDesktopYpcOfferRenderer||P.playerLegacyDesktopYpcTrailerRenderer||P.ypcTrailerRenderer)||G&&G.isUpcoming||["OK","LIVE_STREAM_OFFLINE","FULLSCREEN_ONLY"].includes(E.status))){H.errorCode=Shu(E.errorCode)||"auth";if(G=P&&P.playerErrorMessageRenderer){H.playerErrorMessageRenderer=G;var Q=G.reason;Q&&(H.errorReason=g.b_(Q));if(G=G.subreason)H.sF=g.b_(G),H.SY=G}else H.errorReason=E.reason||null;G=E.status;if(G==="LOGIN_REQUIRED")H.errorDetail= "1";else if(G==="CONTENT_CHECK_REQUIRED")H.errorDetail="2";else if(G==="AGE_CHECK_REQUIRED")E=(E=E.errorScreen)&&E.playerKavRenderer,H.errorDetail=E&&E.kavUrl?"4":"3";else{var e,w,t;P=(t=P==null?void 0:(e=P.playerErrorMessageRenderer)==null?void 0:(w=e.proceedButton)==null?void 0:w.buttonRenderer)==null?void 0:t.command;if(E.isBlockedInRestrictedMode)H.errorDetail="5";else{var k;((k=g.X(P,Y_l))==null?void 0:k.signal)==="RELOAD_PAGE"?H.errorDetail="7":H.errorDetail="0"}}}}; Zpw=function(H){H.au.add(H.G);H.G="";H.p_=!1}; CA7=function(H,E,G){var P=Xz(cY,E);P||(P=G.opt_nativeTime||-1,P=VN(H,E,BK(H),P),G.opt_osdId&&(P.BF=G.opt_osdId));return P}; LEl=function(H){var E=H.D.filter(function(G){return G.isChecked()}); E.length!==0&&(E=E[0].getCommand(),H.layoutId?H.vF.executeCommand(E,H.layoutId):g.h3(Error("Missing layoutId for ad feedback dialog.")),H.api.onAdUxClicked("ad-feedback-dialog-confirm-button",H.layoutId),H.publish("a"),H.hide())}; grs=function(H){H.L.enabled||H.L.start();H.D++;H.D>=H.G&&H.Rc()}; Lbn=function(H){We(H,"getInternalApiInterface",H.getInternalApiInterface);We(H,"addEventListener",H.ND);We(H,"removeEventListener",H.Dfx);We(H,"cueVideoByPlayerVars",H.Bd);We(H,"loadVideoByPlayerVars",H.Y2x);We(H,"preloadVideoByPlayerVars",H.MAw);We(H,"getAdState",H.getAdState);We(H,"sendAbandonmentPing",H.sendAbandonmentPing);We(H,"setLoopRange",H.setLoopRange);We(H,"getLoopRange",H.getLoopRange);We(H,"setAutonavState",H.setAutonavState);We(H,"seekTo",H.cjJ);We(H,"seekBy",H.oHF);We(H,"seekToLiveHead", H.seekToLiveHead);We(H,"requestSeekToWallTimeSeconds",H.requestSeekToWallTimeSeconds);We(H,"seekToStreamTime",H.seekToStreamTime);We(H,"prefetchKeyPlay",H.prefetchKeyPlay);We(H,"startSeekCsiAction",H.startSeekCsiAction);We(H,"getStreamTimeOffset",H.getStreamTimeOffset);We(H,"getVideoData",H.G$N);We(H,"setInlinePreview",H.setInlinePreview);We(H,"getAppState",H.getAppState);We(H,"updateLastActiveTime",H.updateLastActiveTime);We(H,"setBlackout",H.setBlackout);We(H,"setUserEngagement",H.setUserEngagement); We(H,"updateSubtitlesUserSettings",H.updateSubtitlesUserSettings);We(H,"getPresentingPlayerType",H.Xb);We(H,"canPlayType",H.canPlayType);We(H,"updatePlaylist",H.updatePlaylist);We(H,"updateVideoData",H.updateVideoData);We(H,"updateEnvironmentData",H.updateEnvironmentData);We(H,"sendVideoStatsEngageEvent",H.YR7);We(H,"productsInVideoVisibilityUpdated",H.productsInVideoVisibilityUpdated);We(H,"setSafetyMode",H.setSafetyMode);We(H,"isAtLiveHead",function(E){return H.isAtLiveHead(void 0,E)}); We(H,"getVideoAspectRatio",H.getVideoAspectRatio);We(H,"getPreferredQuality",H.getPreferredQuality);We(H,"getPlaybackQualityLabel",H.getPlaybackQualityLabel);We(H,"setPlaybackQualityRange",H.xfx);We(H,"onAdUxClicked",H.onAdUxClicked);We(H,"getFeedbackProductData",H.getFeedbackProductData);We(H,"getStoryboardFrame",H.getStoryboardFrame);We(H,"getStoryboardFrameIndex",H.getStoryboardFrameIndex);We(H,"getStoryboardLevel",H.getStoryboardLevel);We(H,"getNumberOfStoryboardLevels",H.getNumberOfStoryboardLevels); We(H,"getCaptionWindowContainerId",H.getCaptionWindowContainerId);We(H,"getAvailableQualityLabels",H.getAvailableQualityLabels);We(H,"addCueRange",H.addCueRange);We(H,"addUtcCueRange",H.addUtcCueRange);We(H,"showAirplayPicker",H.showAirplayPicker);We(H,"dispatchReduxAction",H.dispatchReduxAction);We(H,"getPlayerResponse",H.R$);We(H,"getWatchNextResponse",H.lax);We(H,"getHeartbeatResponse",H.NQ);We(H,"getCurrentTime",H.yC);We(H,"getDuration",H.As);We(H,"getPlayerState",H.getPlayerState);We(H,"getPlayerStateObject", H.qQ);We(H,"getVideoLoadedFraction",H.getVideoLoadedFraction);We(H,"getProgressState",H.getProgressState);We(H,"getVolume",H.getVolume);We(H,"setVolume",H.xo);We(H,"isMuted",H.isMuted);We(H,"mute",H.wf);We(H,"unMute",H.uS);We(H,"loadModule",H.loadModule);We(H,"unloadModule",H.unloadModule);We(H,"getOption",H.K7);We(H,"getOptions",H.getOptions);We(H,"setOption",H.setOption);We(H,"loadVideoById",H.Ug);We(H,"loadVideoByUrl",H.Ie);We(H,"playVideo",H.I0);We(H,"loadPlaylist",H.loadPlaylist);We(H,"nextVideo", H.nextVideo);We(H,"previousVideo",H.previousVideo);We(H,"playVideoAt",H.playVideoAt);We(H,"getDebugText",H.getDebugText);We(H,"getWebPlayerContextConfig",H.getWebPlayerContextConfig);We(H,"notifyShortsAdSwipeEvent",H.notifyShortsAdSwipeEvent);We(H,"getVideoContentRect",H.getVideoContentRect);We(H,"setSqueezeback",H.setSqueezeback);We(H,"toggleSubtitlesOn",H.toggleSubtitlesOn);We(H,"isSubtitlesOn",H.isSubtitlesOn);We(H,"getAudioTrack",H.AS);We(H,"setAudioTrack",H.Zmo);We(H,"getAvailableAudioTracks", H.ZE);We(H,"reportPlaybackIssue",H.reportPlaybackIssue);We(H,"setAutonav",H.setAutonav);We(H,"isNotServable",H.isNotServable);We(H,"channelSubscribed",H.channelSubscribed);We(H,"channelUnsubscribed",H.channelUnsubscribed);We(H,"togglePictureInPicture",H.togglePictureInPicture);We(H,"supportsGaplessAudio",H.supportsGaplessAudio);We(H,"supportsGaplessShorts",H.supportsGaplessShorts);We(H,"enqueueVideoByPlayerVars",function(E){return void H.enqueueVideoByPlayerVars(E)}); We(H,"clearQueue",H.clearQueue);We(H,"getMaxPlaybackQuality",H.getMaxPlaybackQuality);We(H,"getUserPlaybackQualityPreference",H.getUserPlaybackQualityPreference);We(H,"getSubtitlesUserSettings",H.getSubtitlesUserSettings);We(H,"resetSubtitlesUserSettings",H.resetSubtitlesUserSettings);We(H,"setMinimized",H.setMinimized);We(H,"setOverlayVisibility",H.setOverlayVisibility);We(H,"confirmYpcRental",H.confirmYpcRental);We(H,"queueNextVideo",H.queueNextVideo);We(H,"handleExternalCall",H.handleExternalCall); We(H,"logApiCall",H.logApiCall);We(H,"isExternalMethodAvailable",H.isExternalMethodAvailable);We(H,"setScreenLayer",H.setScreenLayer);We(H,"getCurrentPlaylistSequence",H.getCurrentPlaylistSequence);We(H,"getPlaylistSequenceForTime",H.getPlaylistSequenceForTime);We(H,"shouldSendVisibilityState",H.shouldSendVisibilityState);We(H,"syncVolume",H.syncVolume);We(H,"highlightSettingsMenuItem",H.highlightSettingsMenuItem);We(H,"openSettingsMenuItem",H.openSettingsMenuItem);We(H,"getEmbeddedPlayerResponse", H.getEmbeddedPlayerResponse);We(H,"getVisibilityState",H.getVisibilityState);We(H,"isMutedByMutedAutoplay",H.isMutedByMutedAutoplay);We(H,"isMutedByEmbedsMutedAutoplay",H.isMutedByEmbedsMutedAutoplay);We(H,"setGlobalCrop",H.setGlobalCrop);We(H,"setInternalSize",H.setInternalSize);We(H,"setFauxFullscreen",H.setFauxFullscreen);We(H,"setAppFullscreen",H.setAppFullscreen)}; W9=function(H){H.charAt(0)==="?"&&(H=H.substring(1));return LZ(H,"&")}; g.Jo=function(H){g.J.call(this);this.B=H;this.D=0;this.G=100;this.T=!1;this.W=new Map;this.C=new Set;this.flushInterval=3E4;this.L=new g.Pe(this.flushInterval);this.L.listen("tick",this.Rc,!1,this);g.d(this,this.L)}; rpw=function(H){H.L=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];H.B=[];H.B.length=64;H.D=0;H.W=0}; lrQ=function(H,E,G,P,Q){var e=TV(H,E);if(!e){E.playerVars.prefer_gapless=!0;var w=new g.KD(H.X,E.playerVars);w.U9=E.U9;H.api.D0(w,E.playerType)}w=H.app.jR();e||w.addCueRange(E.Pr.ER);w.seekTo(G,Object.assign({},{cO:"application_timelinemanager"},P));XTQ(H,Q)}; cqU=function(H,E,G,P,Q,e,w,t){var k=Uy7(),W=new KL({veType:E,youtubeData:e,jspbYoutubeData:void 0});e=fX({},k);Q&&(e.cttAuthInfo=Q);Q={csn:k,pageVe:W.getAsJson()};g.Xj("expectation_logging")&&t&&t.screenCreatedLoggingExpectations&&(Q.screenCreatedLoggingExpectations=t.screenCreatedLoggingExpectations);G&&G.visualElement?(Q.implicitGesture={parentCsn:G.clientScreenNonce,gesturedVe:G.visualElement.getAsJson()},w&&(Q.implicitGesture.gestureType=w)):G&&g.p5(new g.LN("newScreen() parent element does not have a VE - rootVe", E));P&&(Q.cloneCsn=P);H?Hg("screenCreated",Q,H,e):g.HY("screenCreated",Q,e);Tx(xys,new Jw(k));m5.clear();I8.clear();Ai.clear();return k}; X6=function(H,E){var G;YZ(H,function(P){G=E[P];return!!G}); return G}; UL=function(H,E){return Math.abs(zIT*E-H)<1||Math.abs(zIT/H-E)<1?zIT:H/E}; Om=function(H,E,G,P){for(var Q=0;Q0&&(S_t(H)?(this.range=BQn(H),this.G=this.range.length):(this.range=this.kp[this.kp.length-1].range,this.G=Fb7(H)))}; g.Rp=function(H){return uk(H)==="WEB_UNPLUGGED"}; frs=function(H){G_(H,"impression")&&!G_(H,"seek")&&H.Z5("audio_measurable")}; CZ1=function(H,E,G){if(!isNaN(G.sx)){var P=G.sx;G.W=MP(w)+t):E=H.getDuration()>=w.getDuration(),E=!E;E&&P$s(G)&&(E=H.Jm,e9?(t=GO7(G),w=1/t,t=MP(H,t),E=MP(E)+w-t):E=E.getDuration()- H.getDuration(),E=1+E/G.info.duration,q2s(g.h_(G),E))}else{w=!1;H.T||(kjq(G),G.L&&(H.T=G.L,w=!0,Q=G.info,e=G.L.bA,Q.C="updateWithEmsg",Q.U7=e,Q=G.L,Q.Uv&&(e=H.uJ.index,e.W=!Q.Uv,e.G="emsg"),Q=G.info.uJ.info,e=g.h_(G),g.MQ(Q)?ZD(e,1701671783):Q.wV()&&vR([408125543],307544935,e)));a:if((Q=SW(G,H.policy.WO))&&V1u(G))t=Qt7(H,G),H.B+=t,Q-=t,H.L_+=Q,H.G=H.policy.BD?H.G+Q:NaN;else{if(H.policy.hV){if(e=k=H.loader.NB(g.wD(G),1),H.G>=0&&G.info.type!==6){if(H.policy.BD&&isNaN(H.eR)){g.p5(new g.LN("Missing duration while processing previous chunk", G.info.PO()));H.loader.isOffline()&&!H.policy.eh||stU(H,G,e);fkn(H,"m");break a}P=k-H.G;var W=P-H.B,I=G.info.U7,A=H.PF?H.PF.U7:-1,m=H.BF,u=H.eR,v=H.policy.zS&&P>H.policy.zS,n=Math.abs(W)>10,O=Math.abs(H.G-e)<1E-7;if(Math.abs(W)>1E-4){H.T$+=1;var q=(t=H.T)==null?void 0:tju(t);t={audio:""+ +H.VS(),sq:I.toFixed(),sliceStart:k,lastSq:A.toFixed(),lastSliceStart:m,lastSliceDuration:u,totalDrift:(P*1E3).toFixed(),segDrift:(W*1E3).toFixed(),skipRewrite:""+ +(v||n)};if(q==null?0:q.length)t.adCpn=q[0];H.loader.handleError("qoe.avsync", t);H.Yp=I}v||n||O||(e=H.G);t=Qt7(H,G,k);Q-=t;H.B=P+t}}else e=isNaN(H.G)?G.info.startTime:H.G;stU(H,G,e)&&(H.L_+=Q,H.G=e+Q,H.policy.O_&&H.T$>=H.policy.O_&&(H.T$=0,H.loader.YQ({resetForRewrites:"count"})))}H.PF=G.info;H.eR=Rz(G);G.G>=0&&(H.BF=G.G);if(w&&H.T){w=o9M(H,!0);e77(G.info,w);H.L&&e77(H.L.info,w);E=g.R(E);for(t=E.next();!t.done;t=E.next())t=t.value,Q=void 0,H.policy.T&&t.U7!==((Q=H.T)==null?void 0:Q.bA)||e77(t,w);(G.info.G||H.L&&H.L.info.G)&&G.info.type!==6||(H.p_=w,H.policy.W?(E=Ags(H.T),H.loader.tP(H.uJ, w,E)):(E=H.loader,E.ou.isManifestless&&HUd(E,w,null,!!H.uJ.info.video)),H.policy.PL||DL7(H))}}W4u(H,G);H.timestampOffset&&EoT(G,H.timestampOffset)}; Ggq=function(H,E){var G,P,Q,e;g.L(function(w){if(w.L==1)return G=H.K(),P=g.Ns(G,g.RS(E)),P.L?g.U(w,P.L,3):(Q=P.getValue(),w.bJ(2));w.L!=2&&(Q=w.W);e=Q;return w.return(W2n(E,e))})}; $Ss=function(H){var E=1,G=g.hE(H.lJ.experiments,"html5_default_ad_gain");G&&H.isAd()&&(E=G);if(H.hV){var P,Q;G=((P=H.D)==null?void 0:P.audio.G)!=null?(Q=H.D)==null?void 0:Q.audio.G:H.yQ}else{var e;G=((e=H.D)==null?void 0:e.audio.G)||H.yQ}isNaN(G)||(H.bx=1);return Math.min(1,Math.pow(10,-G/20))||E}; h7Q=function(H){H.mediaElement&&H.mediaElement.w6()&&(H.Cn=(0,g.ON)());H.X.rh?g.bw(function(){wqU(H)},0):wqU(H)}; cN=function(H,E){var G=H.K(),P=["ytp-youtube-button","ytp-button","yt-uix-sessionlink"];G.G&&P.push("no-link");var Q={title:H.U("player_tooltip_data_title_killswitch")?"{{title}}":"","data-tooltip-title":"{{tooltip-title}}",target:G.L_,"data-priority":"6","data-sessionlink":"feature=player-button"};G.G||(Q.href="{{url}}");g.D.call(this,{J:"a",QN:P,j:Q,iJ:"{{logoSvg}}"});this.L=null;this.api=H;this.visible=!1;G.G||(this.L=this.listen("click",this.onClick));this.Z(H,"videodatachange",this.onVideoDataChange); this.Z(H,"videoplayerreset",this.onVideoDataChange);this.Z(H,"onLoopRangeChange",this.onVideoDataChange);this.Z(H,"appresize",this.h7);this.onVideoDataChange();G.G||this.addOnDisposeCallback(g.SH(E.Zi(),this.element));this.h7()}; $Cd=function(H){xQ("Received layout exit signal when not in layout exit flow.",H.slot,H.layout)}; jqt=function(H){H.L||(H.L=!0,H.api.logVisibility(H.element,!0))}; tC1=function(H,E){var G=G===void 0?{}:G;H={method:E===void 0?"POST":E,mode:up(H)?"same-origin":"cors",credentials:up(H)?"same-origin":"include"};E={};for(var P=g.R(Object.keys(G)),Q=P.next();!Q.done;Q=P.next())Q=Q.value,G[Q]&&(E[Q]=G[Q]);Object.keys(E).length>0&&(H.headers=E);return H}; O1d=function(){return{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}}; kPl=function(H){H.playlist&&H.playlist.unsubscribe("shuffle",H.onVideoDataChange,H)}; fMj=function(H,E){for(var G=[],P=g.R(H.Q8.values()),Q=P.next();!Q.done;Q=P.next())Q=Q.value,Q.trigger.triggerType===E&&G.push(Q);G.length>0&&xY(H.C(),G)}; aS=function(H,E){if(H.policy.WF&&H.T$&&!H.aj)return H.policy.OA;if(H.T$&&!H.aj)return 3;if(H.isSuspended)return 1;var G;if((G=H.Am)==null?0:G.Am&&G.Am.streaming===!1)return 4;G=(E.uJ.info.audio?H.policy.s7:H.policy.eR)/(E.Xo*H.policy.qF);if(H.policy.rI>0&&H.Am&&zd(H.Am)&&(E=E.uJ.info.video?H.Am.W:H.Am.L)&&!E.pX()){E=E.qV();var P=Kg(E,H.getCurrentTime());P>=0&&(E=H.getCurrentTime()-E.start(P),G+=Math.max(0,Math.min(E-H.policy.rI,H.policy.U1)))}H.policy.PF>0&&(G=Math.min(G,H.policy.PF));return G}; g.CO=function(H,E,G,P,Q){function e(){} Q=Q===void 0?{kE:{identity:qZ}}:Q;var w=w===void 0?!0:w;e=Szq(L6q(G));E.context||(E.context=g.$y(P,w));return new g.El(function(t){var k,W,I,A,m;return g.L(function(u){if(u.L==1)return k=PG(G),W=up(k)?"same-origin":"cors",H.L.e6?(I=Lks(H,Q,W),u.bJ(2)):g.U(u,lGn(H,Q,W),3);u.L!=2&&(I=u.W);A=Wr1(PG(G));m={input:A,hA:tC1(A),MO:E,config:Q};t(Usv(H,m,I,e));g.P2(u)})})}; LSj=function(H,E,G,P,Q){var e=(4-(yR.length+G.length)%4)%4,w=new Uint8Array(4+e+yR.length+4+G.length),t=new DataView(w.buffer),k=0;t.setUint32(k,Math.random()*4294967295);k=k+4+e;w.set(yR,k);k+=yR.length;t.setUint32(k,Q);w.set(G,k+4);EbQ(w,P);return H.OR(E,function(W){return void globalThis.sessionStorage.removeItem(W)})?dnv(E,g.H4(w))?"s":"t":"i"}; Wz=function(H,E,G){var P=E*H.G.L*1E3;for(var Q=-1,e=g.R(H.L),w=e.next();!w.done;w=e.next())w=w.value,P>w.startTime&&w.width>0&&Q++;P=Q<0?0:Q;Q=G.L-ND(H)*H.T$;return E*Q+ND(H)*P+G.D}; hN=function(H,E){H.add(E==null||isNaN(E)?0:E+1)}; buM=function(H){this.VN=tz(H)}; xOd=function(H,E,G){var P;return g.L(function(Q){switch(Q.L){case 1:var e=H.L;var w=z6();e=w?new zu(e.W,w):void 0;P=e;if(!P){Q.bJ(2);break}g.EY(Q,3);return g.U(Q,P.encrypt(E,G),5);case 5:return Q.return(Q.W);case 3:g.vo(Q);case 2:return Q.return(Io7(H,E,G))}})}; g.ASU=function(H,E){return H.Yx+"timedtext_video?ref=player&v="+E.videoId}; Zld=function(H,E,G){E=g.R(E);for(var P=E.next();!P.done;P=E.next())P=P.value,P.layout&&MI(H.L,P.slot)&&mCT(H,P.slot,P.layout,G)}; uMt=function(H){if(H.S.U("web_player_rtr_ctrls")&&H.S.NZ().Bn)return 0;var E=H.S.FM(),G=H.S.getVideoData().Xg,P=0;H.S.FM()&&H.S.isEmbedsShortsMode()&&(P=(H.S.NZ().getPlayerSize().width-H.S.getVideoContentRect().width)/2);return 12*(G?0:E?2:1)+P}; g.nl=function(H,E){return wU(H.info.mimeType)?E?H.info.itag===E:!0:!1}; SNU=function(){X9();var H=ZY();return H.G||H.W?0:2}; MC7=function(H){var E=H.getVideoData(),G=H.hT;Km(G)||G.jL();!v9Q&&G.S.U("html5_allow_asmjs")&&a5l(G);Wn(G,"embed");Wn(G,"kids");Wn(G,"remote");Wn(G,"miniplayer");Wn(G,"offline");Wn(G,"unplugged");Wn(G,"ypc",!1,!0);Wn(G,"webgl",!1,!0);oZ1(G)||(Wn(G,"captions",!0),Wn(G,"endscreen"),G.hM(),Wn(G,"creatorendscreen",!0));G.Be();G.S.publish("modulesCreated");H.cF.publish("videoready",E)}; GZU=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){var P=G.value;if(P.slotType==="SLOT_TYPE_PLAYER_BYTES"&&P.fulfilledLayout)if(G=void 0,P.fulfilledLayout.renderingContent)G=Zi(P.fulfilledLayout.clientMetadata,"metadata_type_player_vars");else{if(P.fulfilledLayout.EF){P=g.R(P.fulfilledLayout.EF);for(var Q=P.next();!Q.done&&(Q=Q.value,!Q.renderingContent||!(G=Zi(Q.clientMetadata,"metadata_type_player_vars")));Q=P.next());}}else G=void 0;if(G){H.JG.get().S.preloadVideoByPlayerVars(G, 2,300);break}}}; dCs=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){G=G.value;var P=void 0,Q=Number((P=G.playbackPosition)==null?void 0:P.utcTimeMillis)/1E3,e=void 0;P=Q+Number((e=G.duration)==null?void 0:e.seconds);e="embargo_"+Q;H.api.addUtcCueRange(e,Q,P,"embargo",!1);G.onEnter&&(H.L[e]=G.onEnter.filter(H.W))}}; HEM=function(H,E,G,P,Q){E=pFd(H,E);H=MN(H,E,G);Q=Q({slotId:H.slotId,slotType:H.slotType,slotPhysicalPosition:H.slotPhysicalPosition,slotEntryTrigger:H.slotEntryTrigger,slotFulfillmentTriggers:H.slotFulfillmentTriggers,slotExpirationTriggers:H.slotExpirationTriggers,f_:H.f_});return Q instanceof T?Q:{f4:Object.assign({},H,{clientMetadata:new ZN([new Cr(Q.layout)]),adSlotLoggingData:P}),TH:Q.TH}}; $3=function(H,E){return gB(H,H.state&~E,null,null)}; wM=function(H,E){if(iJ(H.Da.get())){var G=H.G.get(E)||0;G++;H.G.set(E,G);return E+"_"+G}return g.qA(16)}; clM=function(H){var E=zSQ;H.W&&(g.nT(H.L,function(G,P){return erj(P,G)?1:erj(G,P)?-1:0}),H.W=!1); return Pv(H.L,function(G,P){P=E(P);return""+G+(G!=""&&P!=""?"&":"")+P},"")}; ZRU=function(H,E){var G=H.length,P=typeof H==="string"?H.split(""):H;for(--G;G>=0;--G)G in P&&E.call(void 0,P[G],G,H)}; Og=function(H){H.L=null;H.WF=-1;H.N=0;H.T=null;H.E7=NaN;H.L_=0;H.p_=null}; sg=function(H){g.J.call(this);var E=this;this.provider=H;this.L=-1;this.T=!1;this.W=-1;this.playerState=new g.bb;this.networkErrorCount=this.rebufferTimeSecs=this.playTimeSecs=this.D=0;this.encounteredSabrFallback=!1;this.seekCount=this.nonNetworkErrorCount=0;this.delay=new g.Wt(this.send,6E4,this);this.G=!1;this.jsErrorCount=0;this.kV={x3:function(){E.x3()}}; this.x3=function(){E.jsErrorCount++}; g.d(this,this.delay);window.addEventListener("error",this.x3);window.addEventListener("unhandledrejection",this.x3)}; DC1=function(H){this.VN=tz(H)}; Ceu=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){G=G.value;a:switch(RM(H.L,G.slot).D){case "not_filled":var P=!0;break a;default:P=!1}P&&(H.cT.Xu("ADS_CLIENT_EVENT_TYPE_FULFILL_SLOT_REQUESTED",G.slot),H.L.Gh(G.slot))}}; g.oz=function(H){return H.indexOf("?")!==-1?(H=(H||"").split("#")[0],H=H.split("?",2),W9(H.length>1?H[1]:H[0])):{}}; n9n=function(H,E){return(H=nbU(H,E*1E3))?E-H.start/1E3:E}; aou=function(H){this.VN=tz(H)}; g.Wd=function(H,E,G,P){E=pb(E);return E!==void 0?H.open(E,G,P):null}; O6U=function(H){if(!(H.W<0)){var E=g.Gm(H.provider),G=E-H.D;H.D=E;H.playerState.state===8?H.playTimeSecs+=G:H.playerState.isBuffering()&&!g.F(H.playerState,16)&&(H.rebufferTimeSecs+=G)}}; lsw=function(H,E){H.configData=E;g.kM("yt.gcf.config.coldConfigData",H.configData||null)}; Kr7=function(H,E){var G=this;this.L=H;this.gP=E;this.loaded=this.status=0;this.error="";H=$5(this.L.get("range")||"");if(!H)throw Error("bad range");this.range=H;this.W=new hJ;this.run().then(function(){G.gP.cn()},function(P){G.error=""+P||"unknown_err"; G.gP.cn()})}; lGn=function(H,E,G){var P,Q,e,w,t,k,W;return g.L(function(I){if(I.L==1){e=((P=E)==null?void 0:(Q=P.kE)==null?void 0:Q.identity)||qZ;k=(w=E)==null?void 0:(t=w.kE)==null?void 0:t.sessionIndex;var A=g.GU(H.L.bC(e,{sessionIndex:k}));return g.U(I,A,2)}W=I.W;return I.return(Promise.resolve(Object.assign({},QRq(G),W)))})}; $D=function(H,E){this.type=H||"";this.id=E||""}; N17=function(H){var E=E===void 0?!1:E;var G=G===void 0?!1:G;var P=(0,g.ON)(),Q={startTime:P,ticks:{},infos:{}},e=E?g.Un("yt.logging.gzipForFetch",!1):!0;if(tN&&e){if(!H.body)return H;try{var w=G?H.body:typeof H.body==="string"?H.body:JSON.stringify(H.body);e=w;if(!G&&typeof w==="string"){var t=z0T(w);if(t!=null&&(t>jtT||t=yS1)if(b6t++,g.Xj("abandon_compression_after_N_slow_zips_lr")){E=b6t/k3;var W=i61/g.kF("compression_disable_point");k3>0&&k3%g.kF("compression_disable_point")===0&&E>=W&&(tN=!1)}else tN=!1;k_d(Q)}}H.headers=Object.assign({},{"Content-Encoding":"gzip"},H.headers||{});H.body=e;return H}catch(I){return Za(I),H}}else return H}; Dm=function(H,E){this.lJ=H;this.Rf=this.author="";this.pQ=null;this.isUpcoming=this.isLivePlayback=!1;this.lengthSeconds=0;this.FN=this.lengthText="";this.sessionData=null;this.BL={};this.title="";if(E){this.ariaLabel=E.aria_label||void 0;this.author=E.author||"";this.Rf=E.Rf||"";if(H=E.endscreen_autoplay_session_data)this.pQ=LZ(H,"&");this.tI=E.tI;this.isLivePlayback=E.live_playback==="1";this.isUpcoming=!!E.isUpcoming;if(H=E.length_seconds)this.lengthSeconds=typeof H==="string"?Number(H):H;this.lengthText= E.lengthText||"";this.FN=E.FN||"";this.publishedTimeText=E.publishedTimeText||void 0;if(H=E.session_data)this.sessionData=LZ(H,"&");this.shortViewCount=E.short_view_count_text||void 0;this.BL=fe(E);this.title=E.title||"";this.videoId=E.docid||E.video_id||E.videoId||E.id||void 0;this.watchUrl=E.watchUrl||void 0}}; qau=function(H,E){if(E.LX()||E.Iu()){var G=H.loader,P=G.g5,Q=E.state;H=H.mj();var e,w;if((E=(e=E.sM)==null?void 0:e.get(H))==null)E=void 0;else{e=0;H=E.S$();for(var t=0;t0)&&G&&ha&&(this.W=!1,this.G="postLive");this.kJ=E}; rS1=function(){if(typeof MessageChannel!=="undefined"){var H=new MessageChannel,E={},G=E;H.port1.onmessage=function(){if(E.next!==void 0){E=E.next;var P=E.u6;E.u6=null;P()}}; return function(P){G.next={u6:P};G=G.next;H.port2.postMessage(0)}}return function(P){g.lU.setTimeout(P,0)}}; g.xr=function(H){return H.translationLanguage?H.translationLanguage.languageCode:H.languageCode}; Ok=function(H,E){H.WF&&(H.WF.g4=!0);H.update({seekTime:g.Cc(E)});var G=H.C*H.scale;E=E=0?H.end(E):NaN}; BE7=function(H,E){if(H.removed)H=!0;else{E=new nD(E,this);var G=H.listener,P=H.handler||H.src;H.S0&&Ge(H);H=G.call(P,E)}return H}; AN=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-ad-details-line"},"ad-details-line",E,G,P);this.L=[];this.hide()}; hPM=function(H,E,G){var P=String(g.lU.location.href);return P&&H&&E?[E,HXQ(pVq(P),H,G||null)].join(" "):null}; mx=function(H,E){H.L=E;g.kM("yt.gcf.config.coldConfigGroup",H.L||null)}; zGt=function(H){var E=H.VN,G=E[c9]|0;return Bp(H,G)?Ol(H,E,G)?Yr(H,E,!0):new H.constructor(R9(E,G,!1)):H}; cI=function(H,E,G,P){if(H.Da.get().uG(E.kind==="AD_PLACEMENT_KIND_START"))if(G===void 0)xQ("Expected SSAP layout ID in renderer",void 0,void 0,{caller:P});else return G}; Yau=function(H,E){if(E+1<=H.totalLength){var G=fE(H,E);G=G<128?1:G<192?2:G<224?3:G<240?4:5}else G=0;if(G<1||!(E+G<=H.totalLength))return[-1,E];if(G===1)H=fE(H,E++);else if(G===2)G=fE(H,E++),H=fE(H,E++),H=(G&63)+64*H;else if(G===3){G=fE(H,E++);var P=fE(H,E++);H=fE(H,E++);H=(G&31)+32*(P+256*H)}else if(G===4){G=fE(H,E++);P=fE(H,E++);var Q=fE(H,E++);H=fE(H,E++);H=(G&15)+16*(P+256*(Q+256*H))}else G=E+1,H.focus(G),TC(H,G,4)?H=BIM(H).getUint32(G-H.G,!0):(P=fE(H,G+2)+256*fE(H,G+3),H=fE(H,G)+256*(fE(H,G+1)+ 256*P)),E+=5;return[H,E]}; mo=function(H,E){g.E4.call(this);this.Jm=H;this.C=E;this.T=void 0;this.status=this.readyState=0;this.responseType=this.responseText=this.response=this.statusText="";this.onreadystatechange=this.responseXML=null;this.L_=new Headers;this.W=null;this.WF="GET";this.p_="";this.L=!1;this.B=this.G=this.D=null;this.N=new AbortController}; tju=function(H){return H.data["Stitched-Video-Cpn"]?H.data["Stitched-Video-Cpn"].split(",").slice(0,-1):[]}; B2=function(H,E){E=E===void 0?{}:E;g.NL(function(){$1s(H);var G=E.sampleRate;if(!g.Xj("web_csi_action_sampling_enabled")||G===void 0||G<=1)G=!1;else{var P=TY(H);G=Fs1(P)%G!==0}G&&(zY(H).actionDisabled=!0);yv(H||"").info.actionType=H;E.cttAuthInfo&&(zY(H).cttAuthInfo=E.cttAuthInfo);bT(H+"TIMING_ACTION",H);g.NL(CC)(E.startTime,H);G={actionType:JL(H)};E.eW7&&(G.previousAction=JL(g.tJ("TIMING_ACTION")));(P=g.ri())&&P!=="UNDEFINED_CSN"&&(G.clientScreenNonce=P);g.Qn(G,H);Tr(!0,H)})()}; XqQ=function(H,E){this.videoData=H;this.L=E}; Z6M=function(H){var E,G;if((E=H.p_)==null?0:(G=E.OD)==null?0:G.itagDenylist){var P;H.Q9((P=H.p_)==null?void 0:P.OD.itagDenylist)}var Q;if((Q=H.p_)==null?0:Q.playbackStartPolicy){var e,w;y$(H.policy,(e=H.p_)==null?void 0:e.playbackStartPolicy,3,(w=H.p_)==null?void 0:w.tR())}if(H.policy.xZ){E=H.mj();var t;(G=E?(t=H.p_)==null?void 0:t.Fd.get(E):void 0)&&H.W.Wy(G,-1)}if(!H.ou.p_){var k;t=(k=H.p_)==null?void 0:k.Tm;(t==null?0:t.aZ)&&(t==null?0:t.Xc)&&H.ou.T6&&pF(H.ou,t.aZ,t.Xc)}var W;((W=H.p_)==null?0: W.eF)&&(k=H.p_.eF.get(H.mj()||""))&&H.ou&&k.formatId&&(H=H.ou.G.get(OL(k.formatId)))&&(H.info.debugInfo=k.debugInfo)}; PW=function(H,E){this.triggerType="TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED";this.triggerId=E||H(this.triggerType)}; uX=function(H,E,G,P,Q,e,w,t,k,W){C3.call(this,H,E,G,P,Q,e,w,k);this.yY=t;this.C_=W}; m8w=function(H,E,G){var P,Q,e;return g.L(function(w){switch(w.L){case 1:if(!g.Xj("start_client_gcf")){w.bJ(0);break}G&&gn(H,G);H.lT(E);P=CN();if(!P){w.bJ(3);break}if(G){w.bJ(4);break}return g.U(w,dFM(P),5);case 5:Q=w.W,G=(e=Q)==null?void 0:e.config;case 4:return g.U(w,n0U(G,E,P),3);case 3:if(G)for(var t=G,k=g.R(H.C.L),W=k.next();!W.done;W=k.next())W=W.value,W(t);g.P2(w)}})}; Yos=function(H){if(H.L_){var E;if((E=H.videoData.v6)==null?0:E.o_)H.L_=!1;else if(g.eP(H.videoData))H.L_=!1;else{E="ss";var G=0,P;((P=H.videoData.L)==null?0:P.isManifestless)&&H.videoData.eR&&!nQ(H)&&(E="mss",G=H.videoData.eR);(H.videoData.IJ?H.U("html5_prioritize_windowed_st_start_seconds"):H.U("html5_prioritize_st_start_seconds"))&&!G&&H.videoData.tH&&(E="stss",G=H.videoData.tH);!G&&OU1(H)&&(G=H.videoData.liveUtcStartSeconds||H.videoData.eR,E="utc",G=H.VG()-H.JT(H.VG())+G);!G&&H.videoData.T6()&& H.videoData.tH&&(E="stss",G=H.videoData.tH);P={};if(G){if(G>H.VG()||GG.time?E:G},H[0])}; Vzv=function(H,E,G,P){var Q=[];G=g.R(G);for(var e=G.next();!e.done;e=G.next()){var w=e.value;if(w.url){e=new g.uo(w.url,!0);if(w.s){var t=e,k=w.sp,W=u5(8,decodeURIComponent(w.s));t[h[28]](k,encodeURIComponent(W))}t=g.R(Object.keys(P));for(k=t.next();!k.done;k=t.next())k=k.value,e.set(k,P[k]);w=N5(w.type,w.quality,w.itag,w.width,w.height);Q.push(new u7(w,e))}}return bq(H.T,Q,Bs(H,E),!1)}; yv=function(H){H=H||"";var E=Smq();if(E[H])return E[H];var G=w2(),P={timerName:H,info:{},tick:{},span:{},jspbInfo:[]};G.push(P);return E[H]=P}; MK=function(H,E){if(H.heightPx===-1){var G=null;try{G=g.pu("CANVAS"),H.W=G.getContext("2d")}catch(t){}if(H.W){var P=H.L*H.sampleCount;H.G=G;H.G.width=P;H.G.style.width=P+"px";H.element.appendChild(H.G)}else for(H.sampleCount=Math.floor(H.sampleCount/4),H.L*=4,G=0;G1?2:1,H.G.height=H.heightPx*G,H.G.style.height= H.heightPx+"px",H.W.scale(1,G)));E=g.R(E);for(P=E.next();!P.done;P=E.next()){G=H;var Q=H.index,e=P.value;for(P=0;P+2>=E}; dZj=function(H,E){var G=C5;g.nT(H,function(P,Q){return G(E(P),E(Q))})}; aPd=function(H,E){if(H.T){var G=E-H.T;if(G<6E4){if(G>1E3){var P=H.interruptions;P.push(Math.ceil(G));P.sort(function(Q,e){return e-Q}); P.length>16&&P.pop()}H.E7+=G}}H.T=E}; eD7=function(H,E,G){return Vt(H,function(){var P=this;return function e(){var w,t,k,W,I,A,m,u,v;return SK(e,function(n){switch(n.L){case 1:g.Fq(n,2);w=[];t=function(){return"wasm.ps.c: ["+w.map(function(O){return'"'+O+'"'}).join(", ")+"]"}; k=Ddv(E);if(k.mod)return n.return(k.mod);if(!k.modP){n.bJ(4);break}g.EY(n,5);W=fi;return pi(n,HM(k.modP),7);case 7:return n.return(W(n.W));case 5:g.vo(n),w.unshift("pcm");case 4:if((I=k.bin)||!k.binP){n.bJ(8);break}g.EY(n,9);A=fi;return pi(n,HM(k.binP),11);case 11:I=A(n.W);g.pA(n,8);break;case 9:g.vo(n),w.unshift("pfb");case 8:if(I){n.bJ(12);break}g.EY(n,13);m=fi;return pi(n,HM(aAn(E)),15);case 15:I=m(n.W);g.pA(n,12);break;case 13:throw g.vo(n),P.W=!1,w.unshift("fb"),t();case 12:if(P.L&&!G)try{return n.return(new WebAssembly.Module(I))}catch(O){P.L= !1,w.unshift("cs")}g.EY(n,16);u=fi;return pi(n,HM(WebAssembly.compile(I)),18);case 18:return n.return(u(n.W));case 16:v=g.vo(n),nKT(E),w.unshift("ca: "+v);case 17:throw t();case 2:g.ED(n),g.GN(n,0)}})}()})}; Lrj=function(H){return Kql()===2?g.W2(H,p0):H}; XH=function(H,E){this.triggeringSlotId=E;this.triggerType="TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY";this.triggerId=H(this.triggerType)}; Hm=function(H){H.ZD();H.PK.isSeeking();H.N&&loM(H.N,H.videoTrack.uJ);Nn(H);return UCw(H.PK)}; g.FE=function(H,E,G,P,Q,e,w,t,k,W,I,A){H=H.charAt(0)+H.substring(1).toLowerCase();G=G.charAt(0)+G.substring(1).toLowerCase();if(E==="0"||E==="-1")E=null;if(P==="0"||P==="-1")P=null;var m=I.K(),u=m.userDisplayName&&g.nb(m);g.D.call(this,{J:"div",QN:["ytp-button","ytp-sb"],V:[{J:"div",Y:"ytp-sb-subscribe",j:u?{title:I.K().U("player_tooltip_data_title_killswitch")?g.ct("Subscribe as $USER_NAME",{USER_NAME:m.userDisplayName}):"","data-tooltip-title":g.ct("Subscribe as $USER_NAME",{USER_NAME:m.userDisplayName}), "aria-label":"Subscribe to channel","data-tooltip-image":a0(m),"data-tooltip-opaque":String(g.L3(m)),tabindex:"0",role:"button"}:{"aria-label":"Subscribe to channel"},V:[{J:"div",Y:"ytp-sb-text",V:[{J:"div",Y:"ytp-sb-icon"},H]},E?{J:"div",Y:"ytp-sb-count",iJ:E}:""]},{J:"div",Y:"ytp-sb-unsubscribe",j:u?{title:I.U("player_tooltip_data_title_killswitch")?g.ct("Subscribed as $USER_NAME",{USER_NAME:m.userDisplayName}):"","data-tooltip-title":g.ct("Subscribed as $USER_NAME",{USER_NAME:m.userDisplayName}), "aria-label":"Unsubscribe to channel","data-tooltip-image":a0(m),"data-tooltip-opaque":String(g.L3(m)),tabindex:"0",role:"button"}:{"aria-label":"Unsubscribe to channel"},V:[{J:"div",Y:"ytp-sb-text",V:[{J:"div",Y:"ytp-sb-icon"},G]},P?{J:"div",Y:"ytp-sb-count",iJ:P}:""]}],j:{"aria-live":"polite"}});var v=this;this.channelId=w;this.S=I;this.G=A;var n=this.HF("ytp-sb-subscribe"),O=this.HF("ytp-sb-unsubscribe");e&&g.aG(this.element,"ytp-sb-classic");if(Q){t?this.L():this.W();var q=function(){if(m.E7){var r= v.channelId;if(k||W){var B={c:r};var l;g.Q4.isInitialized()&&(l=WQj(B));B=l||"";if(l=I.getVideoData())if(l=l.subscribeCommand){var S=I.Km();S?(RC(S,l,{botguardResponse:B,feature:k}),I.n_("SUBSCRIBE",r)):g.h3(Error("No innertube service available when updating subscriptions."))}else g.h3(Error("No subscribe command in videoData."));else g.h3(Error("No video data available when updating subscription."))}O.focus();O.removeAttribute("aria-hidden");n.setAttribute("aria-hidden","true")}else Rx(g.Jy(v.S.K()), "sb_button",v.D)},N=function(){var r=v.channelId; if(k||W){var B=I.getVideoData();RC(I.Km(),B.unsubscribeCommand,{feature:k});I.n_("UNSUBSCRIBE",r)}n.focus();n.removeAttribute("aria-hidden");O.setAttribute("aria-hidden","true")}; this.Z(n,"click",q);this.Z(O,"click",N);this.Z(n,"keypress",function(r){r.keyCode===13&&q(r)}); this.Z(O,"keypress",function(r){r.keyCode===13&&N(r)}); this.Z(I,"SUBSCRIBE",this.L);this.Z(I,"UNSUBSCRIBE",this.W);this.G&&u&&(m1u(I),M2(I,n,this),M2(I,O,this))}else g.aG(n,"ytp-sb-disabled"),g.aG(O,"ytp-sb-disabled")}; g.D7=function(H,E,G){var P=H.length,Q=typeof H==="string"?H.split(""):H;for(--P;P>=0;P--)if(P in Q&&E.call(G,Q[P],P,H))return P;return-1}; g.Ab=function(H,E,G,P,Q){if(P&&P.once)return xx(H,E,G,P,Q);if(Array.isArray(E)){for(var e=0;e=Q-e||!G.Ke()?G=P=400&&t.status<500)?t.json().then(W,function(){W(null)}):W(null)}}).catch(function(){E.onError&&E.onError.call(Q,{},{})}); H=E.timeout||0;E.onFetchTimeout&&H>0&&(w=g.bw(function(){e||(e=!0,g.M9(w),E.onFetchTimeout.call(E.context||g.lU))},H))}else g.a2(H,E)}; $3U=function(H,E){E=Math.min(E,H.info.W);var G=H.W.split(E),P=G.EH;G=new cJ(new jf(H.info.type,H.info.uJ,H.info.range,H.info.C,H.info.U7,H.info.startTime,H.info.duration,H.info.L,E,!1,H.info.xj,H.info.clipId),G.iW);G.D=H.D;G.G=H.G;E=new cJ(new jf(H.info.type,H.info.uJ,H.info.range,H.info.C,H.info.U7,H.info.startTime,H.info.duration,H.info.L+E,H.info.W-E,H.info.G,H.info.xj,H.info.clipId),P);E.D=H.D;E.G=H.G;return[G,E]}; EU=function(H){return H.Jm==="leanback"}; Su=function(H){var E=H.hours||0;var G=H.minutes||0,P=H.seconds||0;E=P+G*60+E*3600+(H.days||0)*86400+(H.weeks||0)*604800+(H.months||0)*2629800+(H.years||0)*31557600;E<=0?E={hours:0,minutes:0,seconds:0}:(H=E,E=Math.floor(H/3600),H%=3600,G=Math.floor(H/60),P=Math.floor(H%60),E={hours:E,minutes:G,seconds:P});var Q=E.hours===void 0?0:E.hours;G=E.minutes===void 0?0:E.minutes;H=E.seconds===void 0?0:E.seconds;P=Q>0;E=[];if(P){Q=(new Intl.NumberFormat("en-u-nu-latn")).format(Q);var e=["fr"],w="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(" "); Q="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(OT)?Q.replace(",","\u00a0"):e.includes(OT)?Q.replace(",","\u202f"):w.includes(OT)?Q.replace(",","."):Q;E.push(Q)}P=P===void 0?!1:P;G=(["af","be","lt"].includes(OT)||P)&&G<10?Wnn().format(G):(new Intl.NumberFormat("en-u-nu-latn")).format(G);E.push(G);G=Wnn().format(H);E.push(G);G=":";"da fi id si sr sr-Latn".split(" ").includes(OT)&&(G=".");return E.join(G)}; pT1=function(H,E,G,P,Q){if(H.W.has(E.identifier)){var e=H.W.get(E.identifier);P>e.Qa&&(e.startTimeSecs=E.startSecs,e.Po=E.Po,e.event==="predictStart"&&e.LR===5&&E.event!=="predictStart"&&(e.vp=Date.now()),e.event=E.event)}else e={event:E.event,startTimeSecs:E.startSecs,Po:E.Po,Lo:[],Qa:P,LR:0},H.W.set(E.identifier,e);Q&&e.LR===0&&(Q.F7(E)?e.LR=5:(e.LR=2,e.Jh=""),e.vp=Date.now(),e.Qa=P);P>e.Qa&&(Q==null||Q.F7(E),e.Qa=P);H.T&&G>-1&&G200&&(B="manifest.net.badstatus",v===400&&(q=2)),eu.return(Promise.reject(new g.q$(B,r,q)));E.loading=!1;g.zN(E,{raw_player_response:O},!0); l=O;g.nb(E.K())&&l&&l.trackingParams&&LO(l.trackingParams);if(E.errorCode)return S={ec:E.errorCode,ed:E.errorDetail,es:E.sF||""},eu.return(Promise.reject(new g.q$("auth",S,2)));if(!E.loading&&!UD(E))return z=E.isAd()?"auth":"manifest.net.retryexhausted",Pt=E.isAd()?2:1,eu.return(Promise.reject(new g.q$(z,{successButUnplayable:"1",hasMedia:g.ah(E)?"1":"0"},Pt)));g.P2(eu)}})}; $Pl=function(H,E,G,P){if(E&&(H=H.W.get(E),P||H!=null&&H.Jh)){E={cuepointId:E};if(H==null?0:H.Jh)E.adsConfig=sH(H.Jh)||void 0;if(H==null?0:H.Lo)E.Mb=H.Lo;if(H==null?0:H.QZ)E.ZC=H.QZ;G&&(E.rJ=EN(G.split(";")[0]),E.Yu=G.split(";")[1]||"");P&&(E.LR=(H==null?void 0:H.LR)||0);return E}}; tQd=function(H){H.updateValue("icon",Akq());if(H.api.K().W)H.tooltip.EW(H.element,"Link copied to clipboard");else{H.updateValue("title-attr","Link copied to clipboard");H.updateValue("tooltip-title","Link copied to clipboard");H.tooltip.aP();H.tooltip.EW(H.element);var E=H.listen("mouseleave",function(){H.Sq(E);H.r5();H.tooltip.Zq()})}}; Vr=function(H){var E=E===void 0?-1:E;var G=G===void 0?Infinity:G;kMq(H,E,G);for(var P=g.R(H.W.values()),Q=P.next();!Q.done;Q=P.next())Q=Q.value,Q.start>=E&&Q.end<=G&&(H.playback.removeCueRange(Q),H.W.delete(Q.getId()),H.LP({rmAdCR:1}));P=mE(H,E/1E3);E=P.ud;P=P.nK;E&&(P=P*1E3-E.HO,z6n(H,E,P,E.HO+P),P=H.W.get(E.cpn))&&(P.start=E.HO,P.end=E.HO+E.durationMs);if(E=mE(H,G/1E3).ud){var e;P="playback_timelinePlaybackId_"+E.U9+"_video_id_"+((e=E.videoData)==null?void 0:e.videoId)+"_durationMs_"+E.durationMs+ "_enterTimeMs_"+E.HO+"_parentReturnTimeMs_"+E.gV;H.IF("Invalid_clearEndTimeMs_"+G+"_that_falls_during_"+P+"._Child_playbacks_can_only_have_duration_updated_not_their_start.")}}; HKd=function(H,E){g.MQ(H.info.uJ.info)||H.info.uJ.info.wV();H.G=E;if(g.MQ(H.info.uJ.info)){var G=g.h_(H);H=H.info.uJ.L;for(var P=NaN,Q=NaN,e=0;Tz(G,e);){var w=VQ(G,e);isNaN(P)&&(w.type===1936286840?P=w.data.getUint32(w.dataOffset+8):w.type===1836476516&&(P=g.j_(w)));if(w.type===1952867444){!P&&H&&(P=Rt(H));var t=g.W9t(w);isNaN(Q)&&(Q=Math.round(E*P)-t);var k=w;t+=Q;if(k.data.getUint8(k.dataOffset)){var W=k.data;k=k.dataOffset+4;W.setUint32(k,Math.floor(t/4294967296));W.setUint32(k+4,t&4294967295)}else k.data.setUint32(k.dataOffset+ 4,t)}e=Sb(w.type)?e+8:e+w.size}return!0}G=new A_(g.h_(H));H=H.T?G:new A_(new DataView(H.info.uJ.L.buffer));P=AC(H);H=G.pos;G.pos=0;if(dg(G)&&Be(G,231))if(Q=dH(G,!0),E=Math.floor(E*1E9/P),Math.ceil(Math.log(E)/Math.log(2)/8)>Q)E=!1;else{for(P=Q-1;P>=0;P--)G.L.setUint8(G.pos+P,E&255),E>>>=8;G.pos=H;E=!0}else E=!1;return E}; hB=function(H,E,G){this.uo=E;this.triggerType="TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED";this.triggerId=G||H(this.triggerType)}; AQd=function(H,E,G,P,Q,e,w){IZ7(H,E,new g.Jt(G,new g.bb),P,Q,w,!1,e)}; W3=function(H){this.value=H}; dc=function(H,E,G){bX===null&&(bX=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(mPQ&&window.MediaSource&&MediaSource.isTypeSupported!==void 0)return bX||G!=="9"&&G!=="("?bX||G!=="9h"&&G!=="(h"||(H='video/webm; codecs="vp9.2"'):H='video/webm; codecs="vp9"',H;if(!bX&&!CK||H!=='video/webm; codecs="vp9"'&&H!=='video/webm; codecs="vp9.2"')return H; G="00";var P="08",Q="01",e="01",w="01";H==='video/webm; codecs="vp9.2"'&&(G="02",P="10",E.primaries==="bt2020"&&(w=Q="09"),E.L==="smpte2084"&&(e="16"),E.L==="arib-std-b67"&&(e="18"));return'video/webm; codecs="'+["vp09",G,"51",P,"01",Q,e,w,"00"].join(".")+'"'}; g.fp=function(H,E,G,P){P=P===void 0?!1:P;vX.call(this);this.mediaElement=H;this.start=E;this.end=G;this.L=P}; vts=function(H,E,G){this.vY=H;this.L=E;this.SR=G;$x(hu(),{xv:uHq,Eo:Rpu})}; Dnq=function(H,E){if(H.C)return!!H.C[E.name];if(E===ll.BITRATE&&H.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=2000000')&&!H.isTypeSupported('video/webm; codecs="vp9"; width=3840; height=2160; bitrate=20000000'))return!1;if(E===ll.AV1_CODECS)return H.isTypeSupported("video/mp4; codecs="+E.valid)&&!H.isTypeSupported("video/mp4; codecs="+E.sH);if(E.video){var G='video/webm; codecs="vp9"';H.isTypeSupported(G)||(G='video/mp4; codecs="avc1.4d401e"')}else G='audio/webm; codecs="opus"', H.isTypeSupported(G)||(G='audio/mp4; codecs="mp4a.40.2"');return H.isTypeSupported(G+"; "+E.name+"="+E.valid)&&!H.isTypeSupported(G+"; "+E.name+"="+E.sH)}; j5T=function(H){return tG(H).then(function(E){return E?new e9w(H,E):null})}; MQn=function(H,E){return JwT(H,E)?(H.YY?H.YY.start():H.JX(),!0):!1}; njj=function(){var H=window.document;return H&&typeof H.elementFromPoint==="function"}; dPU=function(){return{J:"svg",j:{fill:"none",height:"36",viewBox:"0 0 36 36",width:"36"},V:[{J:"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"}}]}}; La=function(H,E){g.J.call(this);var G=this;this.D=H;this.W=new Map;this.G=new Map;this.L=null;E.get().addListener(this);this.addOnDisposeCallback(function(){E.Iu()||E.get().removeListener(G)}); var P;this.L=((P=E.get().uE)==null?void 0:P.slotId)||null}; E$q=function(H,E,G,P,Q,e,w,t,k,W){W=W===void 0?!1:W;var I=pI(Q);if(!qhv(Q,W))return new T("Received invalid InstreamSurveyAdRenderer for VOD composite survey.",{InstreamSurveyAdRenderer:Q});if(I<=0)return new T("InstreamSurveyAdRenderer should have valid duration.",{instreamSurveyAdRenderer:Q});var A=RT1(H,E,Q,e,G,P,w);return A instanceof T?A:function(m){return T4Q(E,m.slotId,G,I,Q,HX(Q),w(m),A,t,k)}}; g.iX=function(H){g.J.call(this);this.X=H;this.videoData=this.playerState=null}; DPj=function(H){switch(H){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:dA(H,"unknown transitionReason")}}; XdQ=function(H){var E={},G=window.h5vcc;E.hwConcurrency=navigator.hardwareConcurrency;H.L&&(E.cpe=H.L.message);H.W&&(E.cpt=H.W.time,E.cps=H.W.state);if(G==null?0:G.cVal)E.cb2s=G.cVal.getValue("CPU.Total.Usage.IntervalSeconds.2"),E.cb5s=G.cVal.getValue("CPU.Total.Usage.IntervalSeconds.5"),E.cb30s=G.cVal.getValue("CPU.Total.Usage.IntervalSeconds.30");return E}; qh=function(H,E){var G;return g.L(function(P){if(P.L==1)return H?g.U(P,g.HC(FG,E),2):P.return();G=P.W;return P.return(G.delete("databases",H))})}; ntQ=function(H,E,G,P,Q){A9.call(this,"shopping-companion",H,E,G,P,Q)}; ZN=function(H){var E=new Map;H.forEach(function(G){E.set(G.L(),G)}); this.L=E}; RE=function(H,E,G,P){var Q=g.aC(H.api.lm());if(Q&&Q.loaded){var e=H.api.getSubtitlesUserSettings();Q=void 0;for(var w=0;w0&&(0,g.ON)()-H.C<5E3&&(H.logger&&H.logger({dend:P.info.PO()}),G=W6w(G,Q,Q+.01))}H.policy.F2&&H.logger&&H.logger({cbri:""+H.L});P=[];for(var e=Q=0;Q=w){var I=Object.assign({},H.i4[e]),A=H.ou.G.get(OL(H.i4[e].formatId)),m=Math.max(k,w);w=A.index.Is(m+H.W/ 1E3);k=A.index.getStartTime(w);var u=w+ +(Math.abs(k-m)>H.W/1E3);m=u+H.D;u=A.index.getStartTime(u)*1E3;e!==H.L||E?(I.pW=m,I.startTimeMs=u):(H.logger&&H.logger({pEvict:"1",og:I.startTimeMs,adj:k*1E3}),I.pW=w+H.D,I.startTimeMs=k*1E3);w=void 0;k=((w=H.G)==null?void 0:w.info.duration)||11;e===H.L&&tH.W/1E3);w=k+H.D;A=A.index.aL(k)*1E3;I.N4=w;I.durationMs=A-I.startTimeMs;I.pW<=I.N4&&P.push(I)}W1&&W.set(I[0].toString(),decodeURIComponent(I[1].toString()))}); W.has("bid")&&(k.bid=W.get("bid"));k.params=[];cQ1.forEach(function(I){W.has(I)&&(I={key:I,value:W.get(I)},k.params.push(I))}); NDv(H,k);E.adSignalsInfo=k}E.client.unpluggedAppInfo||(E.client.unpluggedAppInfo={});E.client.unpluggedAppInfo.enableFilterMode=!1;G=Q.L.cosver;G!=null&&G!=="cosver"&&(E.client.osVersion=G);G=Q.L.cplatform;G!=null&&G!=="cplatform"&&G!==""&&(E.client.platform=G);G=Q.L.cmodel;G!=null&&G!=="cmodel"&&(E.client.deviceModel=G);G=Q.L.cplayer;G!=null&&G!=="cplayer"&&(E.client.playerType=G);G=Q.L.cbrand;G!=null&&G!=="cbrand"&&(E.client.deviceMake=G);E.user||(E.user={});E.user.lockedSafetyMode=!1;g.nb(Q)&& m_d(E,e,H.player.getPlayerState(1));if(H=Q.livingRoomPoTokenId)E.client.tvAppInfo=Object.assign({},E.client.tvAppInfo,{livingRoomPoTokenId:H})}; c4u=function(H,E){if(H.endpoint==="log_event"){g.Xj("more_accurate_gel_parser")&&OI().storePayload({isJspb:!1},H.payload);s5(H);var G=of(H),P=new Map;P.set(G,[H.payload]);var Q=Tkn(H.payload)||"";E&&(Vg=new E);return new g.El(function(e,w){Vg&&Vg.isReady()?YMU(P,Vg,e,w,{bypassNetworkless:!0},!0,et(Q)):e()})}}; kMq=function(H,E,G){yQj(H.L,function(P){return P.HO>=E&&P.gV<=G})}; b4w=function(H,E){return g.V1(H,{query:E},function(G){return G.delete().then(function(){return g.SF(G)})}).then(function(){})}; i4u=function(H){H=H.hI();return H.length<1?NaN:H.end(H.length-1)}; BT=function(H){var E=H.api.K(),G=H.api.getVideoData(),P=g.L3(E)&&g.UR(H.api)&&g.F(H.api.getPlayerStateObject(),128);E=E.G||E.disableSharing&&H.api.getPresentingPlayerType()!==2||!G.showShareButton||G.yA||P||G.Xg||!1;P=H.api.NZ().getPlayerSize().width;return!!G.videoId&&P>=H.G&&!E}; Je=function(H){var E=(484).toString();H&&(E=(483).toString());return E}; Xp1=function(){function H(t,k){return t==null?k:t} var E=JO(),G=Math.max(E.length-1,0),P=a$T(E);E=P.L;var Q=P.W,e=P.G,w=[];e&&w.push(new wL([e.url,e.L?2:0],H(e.depth,1)));Q&&Q!=e&&w.push(new wL([Q.url,2],0));E.url&&E!=e&&w.push(new wL([E.url,0],H(E.depth,G)));P=g.wH(w,function(t,k){return w.slice(0,w.length-k)}); !E.url||(e||Q)&&E!=e||(Q=s3w(E.url))&&P.push([new wL([Q,1],H(E.depth,G))]);P.push([]);return g.wH(P,function(t){return gDU(G,t)})}; bpq=function(H,E,G,P,Q,e){if(!e)for(E=g.R(E),e=E.next();!e.done;e=E.next())e=e.value,t7(H,e.renderer,e.config.adPlacementConfig.kind);H=Array.from(H.values()).filter(function(I){return vVQ(I)}); E=[];e=g.R(H);for(var w=e.next(),t={};!w.done;t={LG:void 0},w=e.next()){t.LG=w.value;w=g.R(t.LG.f5);for(var k=w.next(),W={};!k.done;W={nL:void 0},k=w.next())W.nL=k.value,k=function(I,A){return function(m){return I.nL.hU(m,A.LG.instreamVideoAdRenderer.elementId,I.nL.ZF)}}(W,t),W.nL.isContentVideoCompanion?E.push(hh7(G,P,Q,t.LG.instreamVideoAdRenderer.elementId,W.nL.associatedCompositePlayerBytesLayoutId,W.nL.adSlotLoggingData,k)):H.length>1?E.push(W5j(G,P,Q,t.LG.instreamVideoAdRenderer.elementId,W.nL.adSlotLoggingData, function(I,A){return function(m){return I.nL.hU(m,A.LG.instreamVideoAdRenderer.elementId,I.nL.ZF,I.nL.associatedCompositePlayerBytesLayoutId)}}(W,t))):E.push(W5j(G,P,Q,t.LG.instreamVideoAdRenderer.elementId,W.nL.adSlotLoggingData,k))}return E}; qgn=function(H,E){var G;return(G=E.onEnter)==null?void 0:G.some(H.T)}; RxM=function(H){var E=H.sR(),G=1,P=!1,Q=jm1(H,E,H.getVideoAspectRatio()),e=H.app.K(),w=e.U("enable_desktop_player_underlay"),t=Bvw(),k=g.hE(e.experiments,"player_underlay_min_player_width");k=w&&H.cw&&H.getPlayerSize().width>k;if(Vu(H)){var W=Xxw(H);var I=isNaN(W)||g.Uo||az&&g.Ez||k;r3&&!g.Gp(601)?W=Q.aspectRatio:I=I||e.controlsType==="3";I?k?(I=e.U("place_shrunken_video_on_left_of_player")?16:H.getPlayerSize().width-E.width-16,W=Math.max((H.getPlayerSize().height-E.height)/2,0),I=new g.Yn(I,W,E.width, E.height),H.s2.style.setProperty("border-radius","12px")):I=new g.Yn(0,0,E.width,E.height):(G=Q.aspectRatio/W,I=new g.Yn((E.width-Q.width/G)/2,(E.height-Q.height)/2,Q.width/G,Q.height),G===1&&g.Ez&&(W=I.width-E.height*W,W>0&&(I.width+=W,I.height+=W)));g.Bt(H.element,"ytp-fit-cover-video",Math.max(I.width-Q.width,I.height-Q.height)<1);if(t||H.W8)H.s2.style.display="";H.zC=!0}else{I=-E.height;r3?I*=window.devicePixelRatio:g.Zs&&(I-=window.screen.height);I=new g.Yn(0,I,E.width,E.height);if(t||H.W8)H.s2.style.display= "none";H.zC=!1}iF(H.F9,I)||(H.F9=I,g.Rp(e)?(H.s2.style.setProperty("width",I.width+"px","important"),H.s2.style.setProperty("height",I.height+"px","important")):g.sR(H.s2,I.getSize()),P=new g.oG(I.left,I.top),g.lN(H.s2,Math.round(P.x),Math.round(P.y)),P=!0);E=new g.Yn((E.width-Q.width)/2,(E.height-Q.height)/2,Q.width,Q.height);iF(H.Lt,E)||(H.Lt=E,P=!0);g.AE(H.s2,"transform",G===1?"":"scaleX("+G+")");w&&k!==H.V9&&(k&&(H.s2.addEventListener(iB,H.Cg),H.s2.addEventListener("transitioncancel",H.Cg),H.s2.classList.add(g.JN.VIDEO_CONTAINER_TRANSITIONING)), H.V9=k,H.app.cF.publish("playerUnderlayVisibilityChange",H.V9?"transitioning":"hidden"));return P}; rO=function(H,E){switch(E){case "normal":H.fP("complete");break;case "skipped":H.fP("skip");break;case "abandoned":G_(H.yN,"impression")&&H.fP("abandon")}}; JQj=function(H,E,G){if(!H.isSeeking())return-1;G=(G?H.videoTrack:H.audioTrack).uJ.index;var P=G.Is(H.targetTime);return(G.Pn(H.ou.iG)||E.U7===H.ou.iG)&&P=k&&H.loader.g5("invalidSabrCmt",{cmt:G,vd:k})}var W,I;k=H.mZ;var A=H.Fo,m=H.ou,u=H.W,v=H.videoData.T$,n=H.policy, O=H.loader.yj,q=Gp7(H.loader)*1E3,N=(W=H.z$)==null?void 0:W.Rt;W=(I=H.z$)==null?void 0:I.uN;var r;I=Number((r=H.G.D)==null?void 0:r.info.itag)||0;var B;r=Number((B=H.G.T)==null?void 0:B.info.itag)||0;B=H.EV;var l=H.Fo.xY();var S=(E==null?0:E.B$)?E.B$:H.loader.isSuspended?4:void 0;G={mZ:k,Fo:A,ou:m,i4:e,J_:w,Ko:G,nextRequestPolicy:u,Xx:v,nS:n,rf:O,Qt:q,Rt:N,uN:W,EV:B,OPp:I,S2$:r,q7:t,oB:l,B$:S};e=H.loader.J2();w=sH(e);e&&(G.UA=w);if(E=HE(H.loader)&&(E==null?0:E.Sw)?E.Kt:H.Fo.I5())G.tq=E*1E3;var z; E=H.G;e=E.p_;if(((z=E.nS)==null?0:To(z))&&!e)for(z=g.R(E.G),w=z.next();!w.done;w=z.next())if(w.value.CP){e=!0;break}z=To(E.nS)&&!e?[]:rQu(E,E.G);G.pV=z;z=H.G;To(z.nS)&&!z.WF?z=[]:(E=tNM(z),E.length===0&&(E=z.C),z=rQu(z,E));G.Wv=z;G.gZ=X5(H)?[H.C]:void 0;H.policy.zf&&(G.CI=jXs(H.loader,H.audioTrack),G.cM=jXs(H.loader,H.videoTrack));if(H.policy.W){z=H.loader.getCurrentTime();P=Z7(H,P.i4,z);Q=Z7(H,Q.i4,z);Q=Math.min(P,Q);X5(H)&&(P=Z7(H,H.T,z),H.Fo.z6()&&P0&&H.L[0].Wz()&&(G.pJ=H.L[0].uy());return G}; bk=function(H,E,G){var P=YgM(),Q=P.BB,e=P.resolve,w=P.reject;H.W.push(function(t){if(E)try{var k=E(t);e(k)}catch(W){w(W)}else e(t)}); H.G.push(function(t){if(G)try{var k=G(t);e(k)}catch(W){w(W)}else w(t)}); Xwu(H);return Q}; Z4U=function(H){this.L=H}; VKl=function(H,E){var G=H.Um;H.Um=function(){G();E()}}; g.Jy=function(H){H=aV(H.Yx);return H==="www.youtube-nocookie.com"?"www.youtube.com":H}; Cfj=function(){return{J:"svg",j:{height:"24px",version:"1.1",viewBox:"-2 -2 24 24",width:"24px"},V:[{J:"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"}},{J:"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"}}]}}; kc1=function(H,E){H.G=E}; Ck=function(H,E){E=E===void 0?NaN:E;var G=g.Gm(H.provider);E=isNaN(E)?G:E;E=Math.ceil(E);var P=H.B[H.N];H.N+11E3;!(e.length>1)&&e[0].isEmpty()||t||(w.B=Ck(H,Q));w.send();H.L_++}},(Q-G)*1E3); return H.D=Q}; Ku=function(H,E,G,P,Q){g.J.call(this);var e=this;this.W=H;this.G=E;this.Dj=G;this.context=Q;this.L=new Map;P.get().addListener(this);this.addOnDisposeCallback(function(){P.Iu()||P.get().removeListener(e)})}; gtM=function(){}; gO=function(H){this.VN=tz(H)}; yx=function(H){return H.api.isFullscreen()||H.z$&&H.api.St()}; i$=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);var G=this.api.U("html5_enable_audio_quality_setting_feature");We(this.api,"getUserAudioQualitySetting",function(){return G?E.getUserAudioQualitySetting():2}); We(this.api,"setUserAudioQualitySetting",function(P){G&&E.setUserAudioQualitySetting(P)}); We(this.api,"hasHqaAudioTrack",function(){return G?E.hasHqaAudioTrack():!1}); We(this.api,"getAudioQualitySettingState",function(){return G?E.api.qB(4):1}); this.L1=Q8U();this.updateEnvironmentData()}; L9U=function(H){if(g.aD("cobalt")&&g.aD("nintendo switch")){var E=!window.matchMedia("screen and (max-height: 720px) and (min-resolution: 200dpi)").matches;H.g5("nxdock",{d:E})}}; lZ=function(H,E,G,P,Q,e){g.J.call(this);var w=this;this.C=H;this.Yq=E;this.d5=G;this.SR=P;this.dG=e;this.L=null;this.D=!1;this.Zr=!0;this.Q8=new Map;E.get().addListener(this);this.addOnDisposeCallback(function(){E.Iu()||E.get().removeListener(w)}); Q.get().addListener(this);this.addOnDisposeCallback(function(){Q.Iu()||Q.get().removeListener(w)})}; t$7=function(H){lZd=H}; Sk=function(H,E,G,P,Q){Q=Q===void 0?new Set:Q;if(E.K_==="")return"unkn";if((E.itag==="304"||E.itag==="266")&&H.WF)return"blk2khfr";if(H.C&&E.video&&E.video.qualityOrdinal>H.C)return"max"+H.C;if(H.hm&&E.K_==="h"&&E.video&&E.video.qualityOrdinal>1080)return"blkhigh264";if(E.K_==="(h"&&!G.B)return"enchdr";if((P===void 0?0:P)&&us(E)&&!H.z$)return"blk51live";if((E.K_==="MAC3"||E.K_==="mac3")&&!H.D)return"blkac3";if((E.K_==="MEAC3"||E.K_==="meac3")&&!H.T)return"blkeac3";if(E.K_==="M"||E.K_==="m")return"blkaac51"; if((E.K_==="so"||E.K_==="sa")&&!H.p_)return"blkamb";if(!H.U2&&UPt(E)&&(!G.T||E.K_!=="1e"))return"cbc";if(!G.T&&UPt(E)&&E.K_==="1e")return"cbcav1";if((E.K_==="i"||E.K_==="I")&&!H.V8)return"blkiamf";var e;if(H.dP&&((e=E.audio)==null?void 0:e.W)===!0)return"blkvbcabr";var w,t;if(H.BF&&(E.K_==="1"||E.K_==="1h"||G.T&&E.K_==="1e")&&((w=E.video)==null?0:w.qualityOrdinal)&&((t=E.video)==null?void 0:t.qualityOrdinal)>H.BF)return"av1cap";P=G.D.get(E.K_);if(!H.G6&&P&&P.vX>0)return Q.add(E.K_),"byerr";var k; if((k=E.video)==null?0:k.fps>32){if(!G.E7&&!xb(G,ll.FRAMERATE))return"capHfr";if(H.MZ&&E.video.qualityOrdinal>=4320)return"blk8khfr";if(uh(E)&&H.Fa&&E.QF&&E.video.qualityOrdinal>=1440)return"disablevp9hfr"}if(H.Xo&&E.Xo>H.Xo)return"ratecap";if(H.Jm>0&&E.dO()&&E.video.height>H.Jm)return"mvhcap";H=IdQ(G,E);return H!==!0?H:!0}; xPQ=function(H){if(H.layout.renderingContent){var E;return(E=Zi(H.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:E.current}return Zi(H.layout.clientMetadata,"metadata_type_player_bytes_callback")}; zxv=function(H,E,G){this.callback=H;this.slot=E;this.d5=G}; pGj=function(H,E){g.iW(H.W,E,function(G,P){return G.HO===P.HO?G.durationMs-P.durationMs:G.HO-P.HO}); H.G.set(E.cpn,E);E.U9&&!H.T&&H.D.set(E.U9,E);E.qM&&TDj(H,E.qM,E)}; Bs=function(H,E){return!H.C&&du()&&xJ(55)&&H.controlsType==="3"&&!E}; Lk=function(H,E,G){var P=H.api.getCurrentTime(),Q=xiq(H,P);H=xiq(H,P+E);return{startMediaTimeMs:Q,endMediaTimeMs:H,seekSource:G}}; VQt=function(){var H=navigator;return new Promise(function(E,G){var P;(P=H.webkitTemporaryStorage)!=null&&P.queryUsageAndQuota?H.webkitTemporaryStorage.queryUsageAndQuota(function(Q,e){E({usage:Q,quota:e})},function(Q){G(Q)}):G(Error("webkitTemporaryStorage is not supported."))})}; F9u=function(H,E,G){var P=E.L?E.L.uJ.Du:E.uJ.Du;var Q=H.D,e;(e=!H.policy.SS)||(e=u5(49,P.L)===u5(97,P.W));e?P=!1:(Q=Jz(Q,u5(49,P.W)),e=6E4*Math.pow(Q.D,1.6),(0,g.ON)()0)return G[0]}return null}; sEt=function(H){G_(H,"impression")&&!G_(H,"seek")&&H.Z5("audio_audible")}; wn=function(H,E){Qf(H,1,E.clientInfo,qbs,3);oS(H,2,E.UA);oS(H,3,E.playbackCookie);oS(H,4,E.VB);if(E.LU)for(var G=0;G=t,k=H.ou.isManifestless,w){var W;if(((W=H.L)==null?void 0:W.kt.event)==="predictStart"&&H.L.U7=e)jfn(H,k,u,w,v,E.join(),Q),t=v;O.bJ(2);break;case 4:return O.return(Promise.reject(t))}})}; g.Ts=function(H,E,G){g.iv.call(this,H);this.videoData=E;this.audioTrack=G;this.L=null;this.D=!1;this.T=E.Co;this.N=E.uv;this.D=g.Oz(E)}; a7w=function(H){this.L=H}; YWs=function(H){var E=g.DB(H,0,1937011556);if(!E)return null;E=Ph(H,E.dataOffset+8,1635148593)||Ph(H,E.dataOffset+8,1635135537);if(!E)return null;var G=Ph(H,E.dataOffset+78,1936995172),P=Ph(H,E.dataOffset+78,1937126244);if(!P)return null;E=null;if(G)switch(G.skip(4),j7(G)){default:E=0;break;case 1:E=2;break;case 2:E=1;break;case 3:E=255}var Q=G=null,e=null;if(P=Ph(H,P.dataOffset,1886547818)){var w=Ph(H,P.dataOffset,1886546020),t=Ph(H,P.dataOffset,2037673328);if(!t&&(t=Ph(H,P.dataOffset,1836279920), !t))return null;w&&(w.skip(4),G=Kh(w)/65536,e=Kh(w)/65536,Q=Kh(w)/65536);H=KiM(t);H=new DataView(H.buffer,H.byteOffset+8,H.byteLength-8);return new ooU(E,G,e,Q,H)}return null}; kIw=function(H,E){E<0||(H.W.forEach(function(G){EoT(G,E)}),H.timestampOffset=E)}; Kou=function(H,E){if(H.L&&H.loader){var G=!1;E?G=!0:H.videoData.isLowLatencyLiveStream||H.videoData.latencyClass==="LOW"||H.videoData.latencyClass==="ULTRALOW"?G=Oku(H.L):H.hm&&(H.hm=!1,G=Oku(H.L,!0));G&&(E=H.Fo.eT,G=H.L,G=Mh(G)*G.L,E.qoe&&(E=E.qoe,g.BC(E,g.Gm(E.provider),"lra",[G]),E.g5("live-readahead-seconds",{v:G})));E=H.loader;G=H.L.L;H=H.L;H=(H.L-1+H.policy.L)*Mh(H);var P=NaN,Q=E.WO;Q===2||Q===-1?ye(E.Fo.getVideoData())&&(P=E.policy.PU):--G;G=Math.max(G,0);Q=E.C;Q.RP=G;Q.L_=P;E.N&&(E.N.p_=H)}}; fX=function(H,E){g.Xj("log_sequence_info_on_gel_web")&&(H.sequenceGroup=E);return H}; Vss=function(H,E,G,P,Q,e,w){this.Fg=H;this.d5=E;this.SR=G;this.W=P;this.yY=Q;this.L=e;this.C_=w}; var JyT=function(H,E){return IN[h[7]](this,5,H,E)}; sFq=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(this);g.d(this,this.events);this.L=new sjv(this.api);this.events.Z(this.api,"legacyadtrackingpingreset",function(){E.L.L={}}); this.events.Z(this.api,"legacyadtrackingpingchange",function(G){var P=E.L;oE(P,"part2viewed",1,0x8000000000000);oE(P,"engagedview",Math.max(1,G.Qm*1E3),0x8000000000000);if(!G.isLivePlayback){var Q=G.lengthSeconds*1E3;OV(G)&&P.api.U("html5_shorts_gapless_ads_duration_fix")&&(Q=P.api.getProgressState().seekableEnd*1E3-G.n8);oE(P,"videoplaytime25",Q*.25,Q);oE(P,"videoplaytime50",Q*.5,Q);oE(P,"videoplaytime75",Q*.75,Q);oE(P,"videoplaytime100",Q,0x8000000000000);oE(P,"conversionview",Q,0x8000000000000); oE(P,"videoplaybackstart",1,Q);oE(P,"videoplayback2s",2E3,Q);oE(P,"videoplayback10s",1E4,Q)}}); this.events.Z(this.api,g.Ya("appad"),this.W);this.events.Z(this.api,g.XT("appad"),this.W)}; XB=function(H,E,G){H.P6>16-G?(H.Pt|=E<>16-H.P6,H.P6+=G-16):(H.Pt|=E<1.5&&H.loader.g5("overshoot",{sq:E.U7,br:G,max:P}))}}; cg1=function(H){return g.F(H.Fo.getPlayerState(),2)?0x8000000000000:H.Fo.getCurrentTime()*1E3}; NOQ=function(H,E,G,P,Q,e,w,t){Xm.call(this,H,E,G,P);this.SR=Q;this.aq=e;this.C=t;this.Zr=!0;this.D=null;this.T=Zi(G.clientMetadata,"metadata_type_linked_player_bytes_layout_id");IS(this.aq(),this);this.adPlacementConfig=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,this.adPlacementConfig,G.layoutId)}; yNu=function(H,E){if(!cGq(H,E)&&!H.W)return!1;E.details.sts="20374";if(QDv(H))return uN(E.severity)&&(E=Object.assign({e:E.errorCode},E.details),E=new g.q$("qoe.restart",E)),H.Di(E.errorCode,E.details),d07(H),!0;(0,g.ON)()-H.lJ.n6>6048E5&&A1(H,"signature");return!1}; g.orl=function(H){for(;!H.D&&!H.error;){var E=H;E.D=!!pT(E,1);switch(pT(E,2)){case 2:var G=[],P=[];P.length=19;P.fill(0);var Q=pT(E,5)+257;var e=pT(E,5)+1;for(var w=pT(E,4)+4,t=0;t0;k--)G.push(t)}G.length!==w?E.error=!0:(e=G.slice(-e),G.length=Q,fKT(E,G,e));break;case 1:fKT(E,g1,LD);break;case 0:fT(E, E.L&7);G=pT(E,16);Q=pT(E,16);(G^Q)!==65535&&(E.error=!0);E.output.set(E.data.subarray(E.W,E.W+G),E.G);E.W+=G;E.G+=G;break;default:E.error=!0}H.G>H.output.length&&(H.output=new Uint8Array(H.G*2),H.G=0,H.W=0,H.D=!1,H.L=0,H.register=0)}H.output.length!==H.G&&(H.output=H.output.subarray(0,H.G));return H.error?new Uint8Array(0):H.output}; Ha=function(H){var E,G,P,Q;g.L(function(e){if(!H.U("html5_generate_session_po_token")||H.useLivingRoomPoToken)return e.return();E=H.api.K();G=g.tJ("EOM_VISITOR_DATA")||g.tJ("VISITOR_DATA");P=E.JD?E.datasyncId:G;Q=vQ(E.experiments,"html5_mock_content_binding_for_session_token")||E.livingRoomPoTokenId||P;E.xW=SA(H,Q);g.P2(e)})}; cJt=function(H){return H in ikt?ikt[H]:ikt[H]="on"+H}; qTv=function(H){for(var E=H.key,G=H.counter[0]^E[0],P=H.counter[1]^E[1],Q=H.counter[2]^E[2],e=H.counter[3]^E[3],w=3;w>=0&&!(H.counter[w]=-~H.counter[w]);w--);for(var t,k,W=4;W<40;)w=$t[G>>>24]^tQ[P>>16&255]^kt[Q>>8&255]^Ww[e&255]^E[W++],t=$t[P>>>24]^tQ[Q>>16&255]^kt[e>>8&255]^Ww[G&255]^E[W++],k=$t[Q>>>24]^tQ[e>>16&255]^kt[G>>8&255]^Ww[P&255]^E[W++],e=$t[e>>>24]^tQ[G>>16&255]^kt[P>>8&255]^Ww[Q&255]^E[W++],G=w,P=t,Q=k;H=H.W;w=E[40];H[0]=hQ[G>>>24]^w>>>24;H[1]=hQ[P>>16&255]^w>>16&255;H[2]=hQ[Q>>8&255]^ w>>8&255;H[3]=hQ[e&255]^w&255;w=E[41];H[4]=hQ[P>>>24]^w>>>24;H[5]=hQ[Q>>16&255]^w>>16&255;H[6]=hQ[e>>8&255]^w>>8&255;H[7]=hQ[G&255]^w&255;w=E[42];H[8]=hQ[Q>>>24]^w>>>24;H[9]=hQ[e>>16&255]^w>>16&255;H[10]=hQ[G>>8&255]^w>>8&255;H[11]=hQ[P&255]^w&255;w=E[43];H[12]=hQ[e>>>24]^w>>>24;H[13]=hQ[G>>16&255]^w>>16&255;H[14]=hQ[P>>8&255]^w>>8&255;H[15]=hQ[Q&255]^w&255}; F5=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout",j:{tabindex:"0"},V:[{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content",V:[{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container"},{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup",V:[{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"},{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__headline-container"}, {J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container"},{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"}]}]},{J:"div",Y:"ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container"}]},"video-interstitial-buttoned-centered",E,G,P);this.W=null;this.D=this.HF("ytp-video-interstitial-buttoned-centered-layout__content__instream-info-container");this.G=new J$;g.d(this,this.G);this.hide()}; Rgu=function(H,E,G){H.api.isFullscreen()?G<1-E&&H.api.toggleFullscreen():G>1+E&&H.api.toggleFullscreen()}; eL1=function(H,E){var G={slotId:Jg(E,"SLOT_TYPE_IN_PLAYER"),slotType:"SLOT_TYPE_IN_PLAYER",slotPhysicalPosition:1,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],slotExpirationTriggers:[],f_:"surface",clientMetadata:new ZN([])},P=Object,Q=P.assign;E=dU(E,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",G.slotId);E={layoutId:E,layoutType:"LAYOUT_TYPE_TEXT_BANNER_OVERLAY",w5:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[], f_:"surface",clientMetadata:new ZN([]),O2:JNU(!1,G.slotId,G.slotType,G.slotPhysicalPosition,G.f_,G.slotEntryTrigger,G.slotFulfillmentTriggers,G.slotExpirationTriggers,E,"LAYOUT_TYPE_TEXT_BANNER_OVERLAY","surface")};return Q.call(P,{},H,{WZw:!0,slot:G,layout:E})}; rNU=function(H,E){var G=H.S.K();g.HZ(G)||G.controlsType!=="3"||H.S.NZ().ZH(E)}; fq=function(){var H=g.pr("yt-player-proxima-pref");return H==null?null:H}; jRt=function(H){return Hb(function(E,G){return g.yb(E,G,4,1E3)},H,{format:"RAW", method:"GET",withCredentials:!0})}; BOl=function(H,E){for(var G in H.L)if(H.L[G].type===E)return H.L[G].status}; YTu=function(H){if(!H)return"unknown";switch(H){case 5:return"predictStart";case 1:return"start";case 2:return"continue";case 3:return"stop";default:return"unknown"}}; Xmw=function(H){H=g.R(H);for(var E=H.next();!E.done;E=H.next())if(E=E.value,E.itag&&XBn.has(E.itag))return!0;return!1}; aX=function(H,E,G,P,Q){g.J.call(this);var e=this;this.W=H;this.Dj=E;this.d5=G;this.C_=P;this.context=Q;this.Zr=!0;this.Q8=new Map;this.L=new Set;G.get().addListener(this);this.addOnDisposeCallback(function(){G.Iu()||G.get().removeListener(e)})}; bu=function(H,E,G,P,Q,e){e=e===void 0?function(){}:e; s9.call(this,H,{J:"div",Y:"ytp-ad-survey-question",V:[{J:"div",QN:["ytp-ad-survey-question-text","ytp-ad-survey-question-foreground"]},{J:"div",QN:["ytp-ad-survey-answers","ytp-ad-survey-question-foreground"]},{J:"div",QN:["ytp-ad-survey-question-player-overlay","ytp-ad-survey-question-foreground"]},{J:"div",Y:"ytp-ad-survey-question-background"}]},Q,E,G,P);this.PF=e;this.D=null;this.W=[];this.L=null;this.N=this.api.K().experiments.xp("a11y_h5_associate_survey_question");this.question=this.HF("ytp-ad-survey-question"); this.T$=this.HF("ytp-ad-survey-question-background");this.questionText=this.HF("ytp-ad-survey-question-text");this.answers=this.HF("ytp-ad-survey-answers");this.playerOverlay=this.HF("ytp-ad-survey-question-player-overlay");this.G=Date.now()}; rIj=function(){if(g.Xj("bg_st_hr"))return"havuokmhhs-0";var H,E=((H=globalThis.performance)==null?void 0:H.timeOrigin)||0;return"havuokmhhs-"+Math.floor(E)}; M5=function(H,E,G,P,Q){nk.call(this,G,Q);var e=this;this.policy=H;this.formatId=E;this.ZO=P;this.lastError=null;this.onProgress=function(){e.Iu()||(e.ZO.eq.has(e.formatId)?(e.isComplete()||e.L.start(),fk(e.ZO,e.formatId)&&e.yJ(2),e.ZO.f0(e.formatId)&&(Hls(e.ZO,e.formatId)?e.Ca(4):(e.lastError="net.closed",e.Ca(5)))):(e.lastError="player.exception",e.Ca(5)))}; this.L=new g.Wt(function(){e.isComplete()||(e.lastError="net.timeout",e.Ca(5))},1E3); this.L.start();wRq(this.ZO,this.formatId,this.onProgress);g.VP(this.onProgress)}; Yw=function(H,E,G,P){P=P===void 0?0:P;return g.NL(function(){if(H.W.has(P))return H.B.push([E,G]),!0;var Q=g.ri(P),e=G||g.X3(P);if(Q&&e){if(g.Xj("combine_ve_grafts")){var w=H.G.get(e.toString());w?w.push(E):(H.C.set(e.toString(),e),H.G.set(e.toString(),[E]));H.p_||(H.p_=g.GQ(0,function(){SM(H,Q)},1200))}else g.IC(H.client,Q,e,E); return!0}return!1})()}; g.mO=function(H,E){var G=E||document;G.getElementsByClassName?H=G.getElementsByClassName(H)[0]:(G=document,H=H?(E||G).querySelector(H?"."+H:""):g.V_(G,"*",H,E)[0]||null);return H||null}; XKQ=function(H){if(!TN(H.adLayoutMetadata))return!1;H=H.renderingContent;return g.X(H,L1)||g.X(H,Jc)||g.X(H,RR)||g.X(H,Zk7)||g.X(H,CX1)||g.X(H,g3u)?!0:!1}; eC=function(H){if(H.videoData.G&&H.videoData.G.L){var E=is(H);if(H.loader&&(H=H.loader,!H.Iu()))if(H.policy.L){var G=H.D;if(E.isLocked()&&G.L.W||G.W===void 0||!E.equals(G.W)){G=H.D.W;Lov(H.D,E);var P,Q;if(Q=E.isLocked()&&E.reason==="m"){Q=H.D;var e=(P=Q.D)==null?void 0:P.info.video.qualityOrdinal;Q=Q.Jm?!0:Q.D?E.L!==e?!0:!Q.L.W||Q.nS.UF&&Q.L.L===Q.D.info.itag?!1:!0:!1}P=Q;Q=H.policy.Eu&&E.reason==="l";G=G.L>E.L&&E.reason==="b";P||Q||G?(H.Fo.YQ({reattachOnConstraint:P?"u":Q?"drm":"perf",lo:E.W,up:E.L}), H.policy.UF||(H.D.L.W=!1)):(H.policy.UF&&(H.D.L.W=!1),Nn(H))}}else!l7l(H.L,E)&&H.videoTrack&&(Q=H.L.L,UKU(H,xKj(H.L,E)),pXl(H),G=E.isLocked()&&E.reason==="m"&&H.L.WF,P=H.policy.Eu&&E.reason==="l"&&Hw(H.videoTrack),E=Q.L>E.L&&E.reason==="b",Q=H.L.BF&&!Pk(),G||P||E||Q?H.Fo.YQ({reattachOnConstraint:G?"u":P?"drm":Q?"codec":"perf"}):Nn(H))}}; iI=function(){$4.apply(this,arguments)}; CRd=function(){return{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{d:"M7 7H17V10L21 6L17 2V5H5V11H7V7ZM17 17H7V14L3 18L7 22V19H19V13H17V17Z",fill:"white"}}]}}; VAv=function(H,E){if(zgQ(H)){E=TOn(H,E);H.L.push(E);var G;(G=H.E7)==null||SgQ(G,H.ou.L_);H.L_>0&&H.T$.Qf++}}; t7=function(H,E,G){if(E=GIs(E)){E=g.R(E);for(var P=E.next();!P.done;P=E.next())if((P=P.value)&&P.externalVideoId){var Q=oQ(H,P.externalVideoId);Q.instreamVideoAdRenderer||(Q.instreamVideoAdRenderer=P,Q.FJ=G)}else xQ("InstreamVideoAdRenderer without externalVideoId")}}; Fmv=function(H){Xu.call(this,H);var E=this;bN(this.api,"getPlaybackRate",function(){return E.api.getPlaybackRate()}); bN(this.api,"setPlaybackRate",function(G){typeof G==="number"&&E.api.setPlaybackRate(G)})}; STl=function(H,E){for(var G;;){if(H.y8<262){uU(H);if(H.y8<262&&E===0)return 1;if(H.y8===0)break}G=0;H.y8>=3&&(H.fS=(H.fS<=3)if(G=vt(H,H.J7-H.eK,H.Fm-3),H.y8-=H.Fm,H.Fm<=H.s4&&H.y8>=3){H.Fm--;do H.J7++,H.fS=(H.fS<G&&(E=m$v(H,E)/1E3,G=H.app.jR().getPlayerState(),ib(H,E,{},G,"_update"))}; Gdt=function(H){var E=[];H=g.R(H.split(","));for(var G=H.next();!G.done;G=H.next()){var P=G.value;P&&((G=P.startsWith("!"))&&(P=P.substring(1)),P=P.split("-"),P.length<3||E.push({lD:P[0],platform:P[1],deviceVersion:P[2],Y6:G}))}return E}; P$=function(H){g.J.call(this);var E=this;this.options=H;this.C=new g.M$;this.l_=this.C.promise;this.T=new g.M$;this.N=1;this.G=new g.M$;this.D=[];this.Um=H.Um||function(){}; this.logger=new J1t(VaU(H.BE||{}));tyQ(this,H.TG,H.bOu,H.GaR,H.OvN,Object.assign({},pBU,H.jO||{}));this.addOnDisposeCallback(function(){return void ImT(E)})}; Euw=function(H,E){H.playbackData=E;H.videoData.isLivePlayback&&(H.N=new Hvj(function(){a:{if(H.playbackData&&H.playbackData.L.L){if(Bm(H.videoData)&&H.loader){var P=H.loader.Cl.BK()||0;break a}if(H.videoData.L){P=H.videoData.L.PF;break a}}P=0}return P}),H.L=new ix(H.videoData,H.X.experiments,function(){return H.VG(!0)})); if(YC(H.Fo)){var G;(G=H.videoData.v6)!=null&&G.o_||(E=CUQ(H),E.QT?(ip(H.videoData)&&H.iT(E.QT,E.startSeconds),H.G=E.startSeconds):E.startSeconds>0&&H.seekTo(E.startSeconds,{cO:"seektimeline_startPlayback",seekSource:15}));H.L_=!1}else nQ(H)||(H.G=H.G||H.videoData.startSeconds||0,H.videoData.isLivePlayback||(E=H.Fo.videoData.VG(),H.G>E&&(H.U("html5_sabr_log_invalid_sabr_current_time")&&H.Fo.g5("invalidSabrCmtStart",{rt:H.G,mst:E}),H.U("html5_sabr_vod_invalid_start_time_fallback")&&(H.G=0))))}; g.Ap=function(H){var E=is(H);return Rb(E)||!H.L6?null:g.VS(H.L6.L.videoInfos,function(G){return E.D(G)})}; aj=function(H,E,G,P,Q,e){s9.call(this,H,{J:"div",Y:"ytp-ad-text"},e===void 0?"ad-text":e,E,G,P,Q===void 0?null:Q);this.L=null;this.hide()}; Nkv=function(){var H,E,G,P;return g.L(function(Q){switch(Q.L){case 1:H=zI();if((E=H)==null?0:E.hasSucceededOnce)return Q.return(!0);if(r3&&qj()&&!WG()||g.Uo)return Q.return(!1);try{if(G=self,!(G.indexedDB&&G.IDBIndex&&G.IDBKeyRange&&G.IDBObjectStore))return Q.return(!1)}catch(e){return Q.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return Q.return(!1);g.EY(Q,2);P={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0}; return g.U(Q,Xg1(P,wJU),4);case 4:return g.U(Q,qh("yt-idb-test-do-not-use",wJU),5);case 5:return Q.return(!0);case 2:return g.vo(Q),Q.return(!1)}})}; Bxu=function(H,E){var G=ox1();G&&(H?Ct(H,61,GW7[G]):E&&(E.client.connectionType=G));g.Xj("web_log_effective_connection_type")&&(G=ebl())&&(H?Ct(H,94,Ptv[G]):E&&(E.client.effectiveConnectionType=G))}; agQ=function(H,E){H.T=E;H.G&&(H.G.G=E);H.T.vZ(H.videoTrack.uJ.info.wV());H.C.W=H.T;H.policy.W&&(H.W.B=H.T)}; ac=function(H){return bNu(g.AL(H)[5]||null)}; QH1=function(H){return new Promise(function(E){setTimeout(E,H)})}; JRj=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"m 17,23 h 2 V 17 H 17 Z 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 0,18 c -4.41,0 -8,-3.59 -8,-8 0,-4.41 3.59,-8 8,-8 4.41,0 8,3.59 8,8 0,4.41 -3.59,8 -8,8 z M 17,15 h 2 v -2 h -2 z"}}]}}; pvT=function(H,E){var G=null,P=H.text;E&&(P=f0q(P)||P);H.bold&&(G=Ms("B",null,G||P));H.italics&&(G=Ms("I",null,G||P));H.strikethrough&&(G=Ms("STRIKE",null,G||P));H.navigationEndpoint&&g.X(H.navigationEndpoint,g.nR)&&(E=g.X(H.navigationEndpoint,g.nR),G=Ms("A",null,G||P),g.HQ(G,E.url),E.target=="TARGET_NEW_WINDOW"&&(G.target="_blank"),H=H.navigationEndpoint.loggingUrls)&&(H=H.map(function(Q){return Q.baseUrl}),spu().register(G,H),g.aG(G,"ytp-ad-has-logging-urls")); return G||Ms("SPAN",null,P)}; uvq=function(H,E){var G=sH1;return Object.prototype.hasOwnProperty.call(G,H)?G[H]:G[H]=E(H)}; OiU=function(H){return H.fields.map(function(E){return E.fieldType})}; TOn=function(H,E){H.policy.B&&H.loader.g5("sabrcrq",{create:1});return pgs(H,new fo(0,H.ou.L_,H),E)}; Z1M=function(H,E,G,P,Q,e){var w=G-P/2;G+=P/2;E+=Q;return"M 0 "+Q+" L 0 "+(E+" L ")+(w+" "+E+" C ")+(w+e+" "+E+" "+(w+e)+" "+Q+" "+w+" "+Q+" L 0 ")+(Q+" M ")+(G+" "+Q+" L ")+(H.C+" "+Q+" L ")+(H.C+" "+E+" L ")+(G+" "+E+" C ")+(G-e+" "+E+" "+(G-e)+" "+Q+" "+G+" "+Q)}; S27=function(H,E){var G;return g.L(function(P){(0,g.ON)();if(H.L.L)return P.return(xOd(H,E,H.iv));G=zeU(H.L);return P.return(G.encrypt(E,H.iv))})}; ouQ=function(H,E,G,P,Q){E=g.X(E.renderingContent,S4);if(!E)return new T("Invalid rendering content for DAI media layout");H=[new $L(P),new jU(G.Vu.videoLengthSeconds),new tm(G.Vu.playerVars),new N9(G.oA),new yw(G.CD),new kL(G.PD),new nn(US(H)),new IJ(G.Vu.adVideoId),new hs(G.WR),E.sodarExtensionData&&new Am(E.sodarExtensionData),new W3({current:null}),new Yj({}),new a6(O4(E.pings))].filter(rcQ);Q!==void 0&&H.push(new ic(Q));return H}; cw=function(H){return uk(H)==="TVHTML5_UNPLUGGED"}; Bvw=function(){return g.aD("iemobile")||g.aD("windows phone")&&g.aD("edge")}; e5s=function(H){return H.action==="END_LINEAR_AD"||H.action==="END_LINEAR_AD_PLACEMENT"}; $61=function(H){wOt=H}; xi=function(H,E){this.start=H;this.end=E;this.length=E-H+1}; EZ=function(H,E){E=E===void 0?!1:E;if(!H.mediaElement||!H.videoData.G)return!1;var G=E;G=G===void 0?!1:G;var P=null;var Q;if((Q=H.videoData.G)==null?0:Q.L){P=cOn(H,G);var e;(e=H.loader)==null||e.resume()}else HO(H),H.videoData.PF&&(P=H.videoData.PF.Bc());Q=H.mediaElement.rT();G=!1;Q&&Q.equals(P)||(Iyn(H,P),G=!0);g.F(H.playerState,2)||(P=H.tG,E=E===void 0?!1:E,P.T||!(P.G>0)||P.mediaElement&&P.mediaElement.getCurrentTime()>0||(E={cO:"seektimeline_resumeTime",FV:E},P.videoData.N||(E.seekSource=15),P.seekTo(P.G, E)));a:{E=G;if(ip(H.videoData)){if(!H.videoData.Gq())break a}else if(!g.Ej(H.videoData))break a;if(H.mediaElement)if((P=H.videoData.T)&&H.mediaElement.hN()){Q=H.mediaElement.E2();if(H.KS)if(Q!==H.KS.element)sF(H);else if(E&&P.flavor==="fairplay"&&!Q_())sF(H);else break a;if(H.U("html5_report_error_for_unsupported_tvos_widevine")&&Q_()&&P.flavor==="widevine")H.kq("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.unspttvoswidevine");else{H.KS=new zJ7(Q,H.videoData,H.X,H.mediaElement);H.KS.subscribe("licenseerror", H.T8,H);H.KS.subscribe("qualitychange",H.uaR,H);H.KS.subscribe("heartbeatparams",H.BU,H);H.KS.subscribe("keystatuseschange",H.LB,H);H.KS.subscribe("ctmp",H.g5,H);E=g.R(H.RQ.keys);for(P=E.next();!P.done;P=E.next())P=H.RQ.get(P.value),H.KS.Uq(P);H.U("html5_eme_loader_sync")||H.RQ.removeAll()}}else H.kq("fmt.unplayable",1,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.updatedrm")}return G}; jC1=function(H,E,G,P,Q){if(!P.info.G){if(G.length===0)G.push(P);else{var e;(H=(e=G.pop())==null?void 0:g.Np(e,P))?G.push(H):G.push(P)}return Q}var w;(G=(w=G.pop())==null?void 0:g.Np(w,P))||(G=P);if(G.info.L)return H.logger&&H.logger({incompleteSegment:G.info.PO()}),Q;P=H.oZ(G);Q=P.U7;P={clipId:P.clipId,formatId:P.formatId,startTimeMs:P.startTimeMs,durationMs:P.VR,pW:Q,N4:Q};Q=uWl(E,P.startTimeMs);if(e=G=Q>=0?E[Q]:null){e=P;var t=Q;w=G.startTimeMs+G.durationMs;var k=e.startTimeMs+e.durationMs;if(e.startTimeMs- w>H.W)e=!1;else if(j3l(H,G.formatId,e.formatId))G.durationMs=Math.max(w,k)-G.startTimeMs,G.N4=Math.max(G.N4,e.N4),e=!0;else if(Math.abs(G.startTimeMs-e.startTimeMs)<=H.W)if(G.durationMs>e.durationMs+H.W){var W=G.formatId,I=G.pW;t=G.N4;G.formatId=e.formatId;G.durationMs=e.durationMs;G.pW=e.pW;G.N4=e.N4;e.formatId=W;e.startTimeMs=k;e.durationMs=w-k;e.pW=I;e.N4=t;e=!1}else G.formatId=e.formatId,e=!0;else w>e.startTimeMs&&(w>k&&(E.splice(t+1,0,{formatId:G.formatId,startTimeMs:k,durationMs:w-k,pW:e.N4+ 1,N4:G.N4}),H.logger&&H.logger({splitOldStart:(W=G.startTimeMs)==null?void 0:W.toFixed(3),splitOldEnd:w==null?void 0:w.toFixed(3),splitNewStart:(I=e.startTimeMs)==null?void 0:I.toFixed(3),splitNewEnd:k==null?void 0:k.toFixed(3)})),G.durationMs=e.startTimeMs-G.startTimeMs,G.N4=e.pW-1),e=!1}e?P=G:(Q+=1,E.splice(Q,0,P));W=0;for(I=Q+1;I=k+G.W?G=!0:t+G.W=H.WF}; g.DB=function(H,E,G){for(;Tz(H,E);){var P=VQ(H,E);if(P.type===G)return P;E=Sb(P.type)?E+8:E+P.size}return null}; h5M=function(H){var E=H.policy.Jm,G=Pq(H.Jm)/E-pf(H,H.W.info);E=g.D7(H.D,function(P){return pf(this,P)=0&&H.indexOf(E,G)==G}; anT=function(H){return N6(H.Xz).concat(N6(H.Sh)).concat(N6(H.TV)).concat(N6(H.qA)).concat(N6(H.gW))}; BQ=function(H,E,G){this.L=E;this.triggerType="TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID";this.triggerId=G||H(this.triggerType)}; Da=function(H){for(var E=g.R(H.W),G=E.next();!G.done;G=E.next())wO(H,G.value);H.W=[];H.L=null}; PGU=function(H,E){var G;return(G=H.layoutExitNormalTriggers.find(function(P){return P instanceof WX&&(P==null?void 0:P.triggeringLayoutId)!==E}))==null?void 0:G.triggeringLayoutId}; EO1=function(H,E,G){var P=g.c4.apply(3,arguments),Q=H===6?"ERROR":"WARNING",e="b"+G;g.h3(new (Function.prototype.bind.apply(g.LN,[null,e].concat(g.EC(P)))),Q);P.unshift(e);P=P.join(", ");Q=$M7.get(E);if(!Q){Q="ytplog."+E;e=5;try{window.localStorage&&!isNaN(+window.localStorage[Q])&&(e=+window.localStorage[Q]),window.sessionStorage&&!isNaN(+window.sessionStorage[Q])&&(e=+window.sessionStorage[Q])}catch(k){}$M7.set(E,e);Q=e}if(!(H0&&(Q.L=Math.min(Q.L+w,10),Q.W=e);Q.L>0?(Q.L--,Q=!0):Q=!1;if(Q)typeof P==="function"&&(P=P()),console.log("plyr."+E,P);else{var t;P=((t=kWj.get(E))!=null?t:0)+1;kWj.set(E,P);P%100===1&&console.warn("plyr","plyr."+E+" is chatty, dropping logs.")}}}; gcw=function(H,E,G){G=G===void 0?{}:G;this.error=H;this.meta=G;this.context=E.context;this.msg=E.message||"";this.id=E.id||"jserror"}; wt7=function(H){var E;if(((E=H.adVideoOffset)==null?void 0:E.kind)!=="AD_VIDEO_PROGRESS_KIND_MILLISECONDS")return!1;var G;return((G=H.adVideoOffset)==null?void 0:G.milliseconds)!=null&&!isNaN(Number(H.adVideoOffset.milliseconds))}; Mj=function(H){return/(vp9|vp09|vp8|avc1|av01)/.test(H)}; g.PO=function(H){return(H=g.GW(H.lm()))?H.M3():{}}; g.x$=function(H){if(!H.length)return"";try{if(Qc)return Qc.decode(H);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(H)}catch(w){}for(var E=0,G=[],P=H.length;E>10;e=56320|e&1023}sZ[Q++]=e}}e=String.fromCharCode.apply(String,sZ); Q<1024&&(e=e.substring(0,Q));G.push(e)}return G.join("")}; Mh=function(H){return H.videoData.L?ZG(H.videoData.L)||5:5}; g.cB=function(){Uv.apply(this,arguments)}; g.zX=function(H){var E=[],G;for(G in H)qN(G,H[G],E);return E.join("&")}; JNU=function(H,E,G,P,Q,e,w,t,k,W,I){return{adClientDataEntry:{slotData:Mr(H,{slotId:E,slotType:G,slotPhysicalPosition:P,f_:Q,slotEntryTrigger:e,slotFulfillmentTriggers:w,slotExpirationTriggers:t,clientMetadata:new ZN([])}),layoutData:xSu(H,{layoutId:k,layoutType:W,f_:I,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],w5:new Map,clientMetadata:new ZN([]),O2:{}})}}}; vJs=function(H){Si=H}; Qt7=function(H,E,G){var P=0;if(E.info.uJ.info.wV()&&!V1u(E))return 0;if(H.Jm&&!H.VS()){var Q=0;G&&g.MQ(E.info.uJ.info)?Q=G-H.G:E.info.uJ.info.wV()&&(Q=H.B);var e=E.info.U7;G=SW(E,H.policy.WO);var w=H.Jm;var t=w.Yp;w=w.B;var k=Math.abs(w-Q)>.02;if((e===t||e>t&&e>H.Yp)&&k){P=Math.max(.95,Math.min(1.05,(G-(w-Q))/G));if(g.MQ(E.info.uJ.info))q2s(g.h_(E),P);else if(E.info.uJ.info.wV()&&(e=Q-w,!g.MQ(E.info.uJ.info)&&(E.info.uJ.info.wV(),P=new A_(g.h_(E)),t=E.T?P:new A_(new DataView(E.info.uJ.L.buffer)), SW(E,!0)))){var W=e*1E3,I=AC(t);t=P.pos;P.pos=0;if(P.L.getUint8(P.pos)===160||dg(P))if(Be(P,160))if(dH(P,!0),Be(P,155)){if(e=P.pos,k=dH(P,!0),P.pos=e,W=W*1E9/I,I=a4(P),W=I+Math.max(-I*.7,Math.min(I,W)),W=Math.sign(W)*Math.floor(Math.abs(W)),!(Math.ceil(Math.log(W)/Math.log(2)/8)>k)){P.pos=e+1;for(e=k-1;e>=0;e--)P.L.setUint8(P.pos+e,W&255),W>>>=8;P.pos=t}}else P.pos=t;else P.pos=t;else P.pos=t}P=SW(E,H.policy.WO);P=G-P}P&&E.info.uJ.info.wV()&&H.loader.g5("webmDurationAdjustment",{durationAdjustment:P, videoDrift:Q+P,audioDrift:w})}return P}; Y$=function(H){return[H.auth===void 0?"undefined":H.auth,H.isJspb===void 0?"undefined":H.isJspb,H.cttAuthInfo===void 0?"undefined":H.cttAuthInfo,H.tier===void 0?"undefined":H.tier].join("/")}; AAv=function(H,E,G){if(H.api.U("web_player_nitrate_promo_tooltip")&&H.api.getPresentingPlayerType(!0)!==2){var P=H.api.getVideoData(1);if(P==null?0:P.tooltipRenderer){P=P.tooltipRenderer;var Q;if(Q=!H.SV){if(!(E=!E)){var e,w,t;E=((e=P.tooltipDisplayStrategy)==null?void 0:e.type)!=="TOOLTIP_DISPLAY_TYPE_DO_NOT_SHOW_IMMEDIATELY"&&((w=P.promoConfig)==null?void 0:w.promoId)!=="dtip-edu-player-iseecaptions"&&((t=P.promoConfig)==null?void 0:t.promoId)!=="dtip-edu-player-tc-m2"}Q=E}Q&&(H.SV=new W_s(P,H.api), g.d(H,H.SV),g.as(H.api,H.SV.element,9));var k;(k=H.SV)==null||II7(k,P,G)}}}; mMd=function(H,E){if(H.currentState>1){g.p5(new g.LN("Exit already started",{current:H.currentState}));var G=!1}else G=!0;if(!G)return!1;H.currentState=2;H.L=E;return!0}; uDU=function(H){rhq(H);H.C=g.Y_(function(){H.update()},100); H.Vm=g.Gm(H.provider);H.W=E1(H.provider)}; Oku=function(H,E){if(!H.W.length)return!1;var G=H.L;H.L=k2n(H,E===void 0?!1:E);if(E=G!==H.L)H.W=[],H.wI=0;return E}; i51=function(){var H=zY();H.info||(H.info={});return H.info}; Y$s=function(H,E){H.yn?(E=E.vss_host||"s.youtube.com",E==="s.youtube.com"&&(E=aV(H.Yx)||"www.youtube.com")):E="video.google.com";return E}; wqU=function(H){var E;if((E=H.Am)==null||!E.Rm()){if(H.mediaElement)try{H.Mx=H.mediaElement.playVideo()}catch(P){oH(H,"err."+P)}if(H.Mx){var G=H.Mx;G.then(void 0,function(P){if(!(g.F(H.playerState,4)||g.F(H.playerState,256)||H.Mx!==G||P&&P.name==="AbortError"&&P.message&&P.message.includes("load"))){var Q="promise";P&&P.name&&(Q+=";m."+P.name);oH(H,Q);H.RC=!0;H.videoData.ML=!0}})}}}; vuq=function(H){var E=new Set,G=new Map,P={};H=g.R(H);for(var Q=H.next();!Q.done;Q=H.next()){Q=Q.value;var e=Q.quality,w=Q.isPlayable,t=Q.qualityLabel;t&&e&&(w&&G.has(e)&&G.get(e)!==t?E.add(e):w&&G.set(e,t),P[t]||(P[t]=Q))}G=[];P=g.R(Object.values(P));for(H=P.next();!H.done;H=P.next())Q=H.value,(H=Q.quality)&&!E.has(H)&&(Q.formatId=void 0),G.push(Q);return G}; xov=function(H,E,G,P,Q){if(Q&&P){var e=P.kt,w=Q.F7(e);e.event==="predictStart"&&(H.WF=E);H.g5("sdai",{onqevt:e.event,sq:E,mt:G,gab:w,cst:e.startSecs,cueid:H.policy.n8&&(w||e.event==="start")?e.identifier:void 0},!0);if(w)e.event!=="predictStart"?(e.event==="start"&&H.WF===E-1&&H.g5("sdai",{gabonstart:E}),K0l(H,E,G,P,Q)):H.policy.xW?IA(H,3,"predict"):(E+=Math.max(Math.ceil(-e.L/5E3),1),e=Math.floor(G-e.L/1E3),H.policy.W?H.T=e:H.D=E,H.g5("sdai",{onpred:G,estsq:E,estmt:e.toFixed(3)}),yD(H.loader,e,e, E),H.L_=Date.now(),IA(H,3,"predict"),Q.q3(P.kt));else if(H.W===1){var t;((t=H.G)==null?0:t.Ds(G))?(yD(H.loader,G,G,E),IA(H,4,"sk2head")):IA(H,5,"nogab")}else e.event==="predictStart"?H.policy.W&&H.T>0?(G=Math.floor(G-e.L/1E3),H.T!==G&&H.g5("sdai",{updateSt:G,old:H.T}),H.T=G):H.D>0&&(G=E+Math.max(Math.ceil(-e.L/5E3),1),H.D!==G&&(H.g5("sdai",{updateSt:G,old:H.D}),H.D=G)):H.policy.xW&&H.W===3&&K0l(H,E,G,P,Q)}else H.g5("sdai",{nulldec:1,sq:E,mt:G.toFixed(3),evt:(P==null?void 0:(e=P.kt)==null?void 0:e.event)|| "none"})}; uCv=function(H){var E=xys,G=C2j();if(!G)return 0;var P=G.subscribe(E.toString(),function(Q,e){var w=g.Un("ytPubsub2Pubsub2SkipSubKey");w&&w==P||(w=function(){if(eo[P])try{if(e&&E instanceof NJ&&E!=Q)try{var t=E.L,k=e;if(!k.args||!k.version)throw Error("yt.pubsub2.Data.deserialize(): serializedData is incomplete.");try{if(!t.Se){var W=new t;t.Se=W.version}var I=t.Se}catch(A){}if(!I||k.version!=I)throw Error("yt.pubsub2.Data.deserialize(): serializedData version is incompatible.");try{e=Reflect.construct(t, g.dm(k.args))}catch(A){throw A.message="yt.pubsub2.Data.deserialize(): "+A.message,A;}}catch(A){throw A.message="yt.pubsub2.pubsub2 cross-binary conversion error for "+E.toString()+": "+A.message,A;}H.call(window,e)}catch(A){g.OS(A)}},Moq[E.toString()]?g.Sh()?g.eD.c6(w):g.bw(w,0):w())}); eo[P]=!0;wS[E.toString()]||(wS[E.toString()]=[]);wS[E.toString()].push(P);return P}; Zhw=function(H,E){var G;((G=window.performance)==null?0:G.getEntriesByName)&&(E=performance.getEntriesByName(E))&&E.length&&(E=E[0],H.pedns=(E.domainLookupEnd-E.startTime).toFixed(),H.pecon=(E.connectEnd-E.domainLookupEnd).toFixed(),H.perqs=(E.requestStart-E.connectEnd).toFixed(),nVl&&(H.perqsa=E.requestStart+(performance.timeOrigin||performance.timing.navigationStart)))}; dMw=function(H,E,G){G=G===void 0?null:G;var P=P===void 0?H.withCredentials:P;var Q={},e=new URL(Jf7(H));G&&(Q.Authorization=G);H.sessionIndex&&(Q["X-Goog-AuthUser"]=H.sessionIndex,e.searchParams.set("authuser",H.sessionIndex));H.pageId&&(Object.defineProperty(Q,"X-Goog-PageId",{value:H.pageId}),e.searchParams.set("pageId",H.pageId));return{url:e.toString(),body:E,pA:1,requestHeaders:Q,requestType:"POST",withCredentials:P,timeoutMillis:H.timeoutMillis}}; DMl=function(H,E){H=g.R(H.L_);for(var G=H.next();!G.done;G=H.next())if(G=G.value,G.bA===E)return G.GAx?2:1;return 0}; Vp=function(H,E,G){H.cF.publish(E,G);var P=g.vV(H.X)||g.Rp(H.X)||g.qt(H.X);if(G&&P){switch(E){case "cuerangemarkersupdated":var Q="onCueRangeMarkersUpdated";break;case "cuerangesadded":Q="onCueRangesAdded";break;case "cuerangesremoved":Q="onCueRangesRemoved"}Q&&H.cF.n_(Q,G.map(function(e){return{getId:function(){return this.id}, end:e.end,id:e.getId(),namespace:e.namespace==="ad"?"ad":"",start:e.start,style:e.style,visible:e.visible,markerPositionMs:e.markerPositionMs}}))}}; Rcd=function(H,E,G){this.uo=E;this.L=G;this.triggerType="TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE";this.triggerId=H(this.triggerType)}; OW=function(H,E){for(var G=H.search(c2),P=0,Q,e=[];(Q=YY(H,P,E,G))>=0;)e.push(H.substring(P,Q)),P=Math.min(H.indexOf("&",Q)+1||G,G);e.push(H.slice(P));return e.join("").replace(nuj,"$1")}; g.m9=function(H,E,G,P,Q){tY||k_.set(""+H,E,{maxAge:G,path:"/",domain:P===void 0?"youtube.com":P,secure:Q===void 0?!1:Q})}; aIt=function(H,E){return H.S.U("delhi_modern_web_player_icons")?E?{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{d:"M3.29 3.29C3.11 3.46 3.01 3.70 3.00 3.94C2.98 4.19 3.06 4.43 3.22 4.63L3.29 4.70L7.58 8.99H5C4.73 8.99 4.48 9.10 4.29 9.29C4.10 9.47 4 9.73 4 9.99C4 10.26 4.10 10.51 4.29 10.70C4.48 10.89 4.73 10.99 5 10.99H11V4.99C11 4.73 10.89 4.47 10.70 4.29C10.51 4.10 10.26 3.99 10 3.99C9.73 3.99 9.48 4.10 9.29 4.29C9.10 4.47 9 4.73 9 4.99V7.58L4.70 3.29L4.63 3.22C4.43 3.06 4.19 2.98 3.94 3.00C3.70 3.01 3.46 3.11 3.29 3.29ZM19 13H13V19C13 19.26 13.10 19.51 13.29 19.70C13.48 19.89 13.73 20 14 20C14.26 20 14.51 19.89 14.70 19.70C14.89 19.51 15 19.26 15 19V16.41L19.29 20.70L19.36 20.77C19.56 20.92 19.80 21.00 20.04 20.99C20.29 20.98 20.52 20.87 20.70 20.70C20.87 20.52 20.98 20.29 20.99 20.04C21.00 19.80 20.92 19.56 20.77 19.36L20.70 19.29L16.41 15H19C19.26 15 19.51 14.89 19.70 14.70C19.89 14.51 20 14.26 20 14C20 13.73 19.89 13.48 19.70 13.29C19.51 13.10 19.26 13 19 13Z", fill:"white"}}]}:{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{d:"M10 3H3V10C3 10.26 3.10 10.51 3.29 10.70C3.48 10.89 3.73 11 4 11C4.26 11 4.51 10.89 4.70 10.70C4.89 10.51 5 10.26 5 10V6.41L9.29 10.70L9.36 10.77C9.56 10.92 9.80 11.00 10.04 10.99C10.29 10.98 10.52 10.87 10.70 10.70C10.87 10.52 10.98 10.29 10.99 10.04C11.00 9.80 10.92 9.56 10.77 9.36L10.70 9.29L6.41 5H10C10.26 5 10.51 4.89 10.70 4.70C10.89 4.51 11 4.26 11 4C11 3.73 10.89 3.48 10.70 3.29C10.51 3.10 10.26 3 10 3ZM20 13C19.73 13 19.48 13.10 19.29 13.29C19.10 13.48 19 13.73 19 14V17.58L14.70 13.29L14.63 13.22C14.43 13.07 14.19 12.99 13.95 13.00C13.70 13.01 13.47 13.12 13.29 13.29C13.12 13.47 13.01 13.70 13.00 13.95C12.99 14.19 13.07 14.43 13.22 14.63L13.29 14.70L17.58 19H14C13.73 19 13.48 19.10 13.29 19.29C13.10 19.48 13 19.73 13 20C13 20.26 13.10 20.51 13.29 20.70C13.48 20.89 13.73 21 14 21H21V14C21 13.73 20.89 13.48 20.70 13.29C20.51 13.10 20.26 13 20 13Z", fill:"white"}}]}:E?{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"g",Y:"ytp-fullscreen-button-corner-2",V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"m 14,14 -4,0 0,2 6,0 0,-6 -2,0 0,4 0,0 z"}}]},{J:"g",Y:"ytp-fullscreen-button-corner-3",V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"m 22,14 0,-4 -2,0 0,6 6,0 0,-2 -4,0 0,0 z"}}]},{J:"g",Y:"ytp-fullscreen-button-corner-0",V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"m 20,26 2,0 0,-4 4,0 0,-2 -6,0 0,6 0,0 z"}}]},{J:"g",Y:"ytp-fullscreen-button-corner-1", V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"m 10,22 4,0 0,4 2,0 0,-6 -6,0 0,2 0,0 z"}}]}]}:{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"g",Y:"ytp-fullscreen-button-corner-0",V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"m 10,16 2,0 0,-4 4,0 0,-2 L 10,10 l 0,6 0,0 z"}}]},{J:"g",Y:"ytp-fullscreen-button-corner-1",V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"m 20,10 0,2 4,0 0,4 2,0 L 26,10 l -6,0 0,0 z"}}]},{J:"g",Y:"ytp-fullscreen-button-corner-2",V:[{J:"path",La:!0,Y:"ytp-svg-fill", j:{d:"m 24,24 -4,0 0,2 L 26,26 l 0,-6 -2,0 0,4 0,0 z"}}]},{J:"g",Y:"ytp-fullscreen-button-corner-3",V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"M 12,20 10,20 10,26 l 6,0 0,-2 -4,0 0,-4 0,0 z"}}]}]}}; kH=function(H){H.WF&&clearTimeout(H.WF);H.WF=void 0;H.L_=!1}; OvM=function(H,E,G,P,Q){this.t$=H;this.SB=E;this.tS=G;this.RB=P;this.KZ7=Q;this.O6=H&&H.length}; vh=function(H,E){return BWM(H,function(G){return G.L},E===void 0?!0:E)}; Kbn=function(H,E){return isNaN(E)?!0:isNaN(H.L)?!1:EE.video.height;if(P&&(H.Am.N=!0,pg('video/webm; codecs="vp09.00.50.08.01.01.01.01.00"; width=3840; height=2160')))return G=pHl(G),H.policy.G&&H.g5("sp4k",{s:!!G}),G}; rH=function(){return ih("Firefox")||ih("FxiOS")}; g.vDj=function(){return g.aa()&&(g.aD("ps4 vr")||g.aD("ps4 pro vr"))}; Ud=function(H){if(!(this instanceof Ud))return new Ud(H);H=this.options=v3.assign({level:-1,method:8,chunkSize:16384,cW:15,sqR:8,strategy:0,to:""},H||{});H.raw&&H.cW>0?H.cW=-H.cW:H.dZa&&H.cW>0&&H.cW<16&&(H.cW+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.ey=new NSq;this.ey.NV=0;var E=this.ey;var G=H.level,P=H.method,Q=H.cW,e=H.sqR,w=H.strategy;if(E){var t=1;G===-1&&(G=6);Q<0?(t=0,Q=-Q):Q>15&&(t=2,Q-=16);if(e<1||e>9||P!==8||Q<8||Q>15||G<0||G>9||w<0||w>4)E=cU(E,-2);else{Q===8&&(Q=9); var k=new w$7;E.state=k;k.ey=E;k.wrap=t;k.Ho=null;k.j4=Q;k.JR=1<>=7;e<30;e++)for(GG[e]=w<<7,Q=0;Q<1<=W.JR&&(E===0&&(yY(W.head),W.J7=0,W.KR=0,W.OR=0),G=new v3.Id(W.JR),v3.Xn(G,e,w-W.JR,W.JR,0),e=G,w=W.JR);G=H.bV;P=H.t6;Q=H.input;H.bV=w;H.t6=0;H.input=e;for(uU(W);W.y8>=3;){e=W.J7;w=W.y8-2;do W.fS=(W.fS<=((I=G.video)==null?void 0:I.height)){W=!1;break a}}W=!0}W&&(W=G.itag,E=w?w:{itag:W,K_:E,VS:e},e?E.numChannels=G.audio.numChannels:(e=G.video,E.maxWidth=e==null?void 0:e.width,E.maxHeight=e==null?void 0:e.height,E.maxFramerate=Q,xb(H,ll.BITRATE)&&(E.maxBitrateBps=G.Xo* 8),E.WM=e==null?void 0:e.isHdr()),H.L.set(P,E))}; XO7=function(H,E,G,P,Q,e){var w=E.cpn,t=E.docid||E.video_id||E.videoId||E.id,k=H.L;e=e===void 0?Q+P:e;if(Q>e)return eN(H,"enterAfterReturn enterTimeMs="+Q+" is greater than parentReturnTimeMs="+e.toFixed(3),w,t),"";var W=k.MC()*1E3;if(QW)return k="returnAfterDuration parentReturnTimeMs="+e.toFixed(3)+" is greater than parentDurationMs="+W+". And timestampOffset in seconds is "+ k.YV(),eN(H,k,w,t),"";W=null;for(var I=g.R(H.W),A=I.next();!A.done;A=I.next()){A=A.value;if(Q>=A.HO&&QA.HO)return eN(H,"overlappingReturn",w,t),"";if(e===A.HO)return eN(H,"outOfOrder",w,t),"";Q===A.gV&&(W=A)}w="cs_childplayback_"+YZj++;t={ER:Tm(P,!0),tD:Infinity,target:null};var m={U9:w,playerVars:E,playerType:G,durationMs:P,HO:Q,gV:e,Pr:t};H.W=H.W.concat(m).sort(function(n,O){return n.HO-O.HO}); W?f7U(H,W,{ER:Tm(W.durationMs,!0),tD:W.Pr.tD,target:m}):(E={ER:Tm(Q,!1),tD:Q,target:m},H.T.set(E.ER,E),k.addCueRange(E.ER));E=!0;if(H.L===H.app.jR()&&(k=k.getCurrentTime()*1E3,k>=m.HO&&k0&&(H=E.split(",").filter(function(Q){return lI7.includes(Q)}).join(",")),G.qoe_cat=H; PHM(G)}else for(H=g.R(UMn),P=H.next();!P.done;P=H.next())P=P.value,E.hasOwnProperty(P)&&(G[P]=E[P]);return G}; var Xhv=function(H,E){return RT[h[7]](this,49,H,E)}; z5Q=function(H,E,G){G=nX(H,G);for(var P,Q;G>=0;G--)if(P=H.levels[G],Q=aJ(P,E),!P.isLoaded(Q)){P=H;var e=G,w=e+"-"+Q;P.C.has(w)||(P.C.add(w),P.G.enqueue(e,{m7:e,XL:Q}))}JtM(H)}; bIu=function(H,E,G){var P,Q,e,w,t;return g.L(function(k){if(k.L==1){g.EY(k,2);P=aQ(G);var W=E.K(),I=g.UF(),A={context:g.Yy(E),videoId:E.videoId,racyCheckOk:E.racyCheckOk,contentCheckOk:E.contentCheckOk,autonavState:"STATE_NONE"};zU(E)==="adunit"&&(A.isAdPlayback=!0);W.embedConfig&&(A.serializedThirdPartyEmbedConfig=W.embedConfig);W.CZ&&(A.showContentOwnerOnly=!0);E.hQ&&(A.showShortsOnly=!0);I.A7(141)&&(A.autonavState=I.A7(140)?"STATE_OFF":"STATE_ON");if(g.sn(W)){I=I.A7(65);I=I!=null?!I:!1;var m=!!g.pr("yt-player-sticky-caption"); A.captionsRequested=I&&m}var u;if(W=(u=W.getWebPlayerContextConfig())==null?void 0:u.encryptedHostFlags)A.playbackContext={encryptedHostFlags:W};Q=A;e=g.ZO(TSn);H.QG("wn_s");return g.U(k,g.CO(P,Q,e),4)}if(k.L!=2)return w=k.W,H.QG("wn_r"),!w||"error"in w&&w.error||(t=w,g.nb(E.K())&&t.trackingParams&&LO(t.trackingParams),g.zN(E,{raw_watch_next_response:w},!1)),g.pA(k,0);g.vo(k);g.P2(k)})}; VH=function(H){H=H===void 0?document:H;var E,G;H=(G=(E=H).querySelector)==null?void 0:G.call(E,"script[nonce]");return H==null?"":H.nonce||H.getAttribute("nonce")||""}; yw=function(H){this.value=H}; k9=function(H,E,G){for(;H;H=H.parentNode)if(H.attributes&&(!G||H.nodeName===G)){var P=H.getAttribute(E);if(P)return P}return""}; bz=function(H){H.W=NaN;H.C=NaN;H.z$=NaN;H.D=null;H.Jm=null;H.T=null;H.PF=!1;H.WF=!1;H.eR=0;H.O7.stop();H.Yp.stop()}; WO=function(H){g.J.call(this);var E=this;this.X=H;this.L=new Map;this.D=[];this.W=!z6();this.L_=g.hE(this.X.experiments,"html5_onesie_prewarm_interval_ms");this.N=new g.Wt(this.B,this.L_,this);this.C=-1;this.kV={zhm:function(){return E.L}, AJm:function(){return E.T}, oXo:function(){return Vov}}; g.d(this,this.N);ZFw(this,g.pr("yt-player-bandaid-host"));this.T=this.load();this.L_&&this.T.then(function(){E.B()})}; qY=function(H){var E=H.isMuted()?0:H.getVolume();gM.call(this,0,100,1,E,void 0,!0);this.S=H;this.p_=Fp(this.Jm,10,this);this.N=!1;this.Z(H,"onVolumeChange",this.onVolumeChange);this.Z(this.element,"wheel",this.WF)}; K1u=function(H,E,G){G=G===void 0?{}:G;var P={};g.tJ("EOM_VISITOR_DATA")?P={"X-Goog-EOM-Visitor-Id":g.tJ("EOM_VISITOR_DATA")}:P={"X-Goog-Visitor-Id":G.visitorData||g.tJ("VISITOR_DATA","")};if(E&&E.includes("www.youtube-nocookie.com"))return P;E=G.kD||g.tJ("AUTHORIZATION");E||(H?E="Bearer "+g.Un("gapi.auth.getToken")().access_token:(H=ogQ().bC(qZ),g.Xj("pageid_as_header_web")||delete H["X-Goog-PageId"],P=Object.assign({},P,H)));E&&(P.Authorization=E);return P}; SZn=function(){this.endTime=this.startTime=-1;this.G="-";this.playbackRate=1;this.visibilityState=0;this.audioId="";this.volume=this.connectionType=this.W=0;this.muted=!1;this.L=this.clipId="-";this.previouslyEnded=!1}; WU=function(){return window.android&&window.android.webview&&window.android.webview.getExperimentalMediaIntegrityTokenProvider}; fIw=function(H,E,G,P,Q,e){return E.jd&&E.dP&&G===3?new F_u(H,E,P,Q,e):null}; bS=function(H,E,G){E.pz().currentState>=2||(E.Ka(E.Za(),G),Yrl(E.pz())&&(vj(H.yB,H.slot,E.Za(),G),H.bG=void 0))}; pOT=function(H,E,G,P,Q){P=P===void 0?Infinity:P;Q=Q===void 0?0:Q;var e=H.jR();G=G||e.getPlayerType();(e=gU(H,G,E,!0))||(e=j4(H,G,E,!0));E=H.qZ();G===2&&E&&(G=e.getVideoData(),E.g0(G.clientPlaybackNonce,G.jT||"",G.breakType||0,G.yQ,G.videoId||""));H.DT(e,P,0,Q)}; Ra=function(H){this.T=!1;this.L=H;this.D=function(){}}; OLw=function(H,E,G){var P=[];G=g.R(G);for(var Q=G.next();!Q.done;Q=G.next()){var e=P,w=e.push;var t=H;var k=E;Q=Q.value;t=Q.triggeringSlotId!=null&&Q.triggeringSlotId===t?Q.clone(k):Q;w.call(e,t)}return P}; lvn=function(H,E){if(E.iB()){var G=E.mQ();G=g.R(G);for(var P=G.next();!P.done;P=G.next())P=P.value,H.policy.G&&E instanceof M5&&H.g5("omblss",{s:P.info.PO()}),H$1(H,E.info.kp,P,E.by())}}; EWt=function(H){(H===void 0?0:H)?(H=lV().filter(function(E){return E.startsWith("1")}),g.Fj("yt-player-performance-cap-active-set",H,2592E3)):g.Fj("yt-player-performance-cap-active-set",[],2592E3)}; GHw=function(H,E,G,P,Q,e,w){Xm.call(this,G,H,E,P);this.D=Q;this.d5=e;this.Da=w}; Tp=function(H){var E=H.app.K().controlsType==="3"&&!H.D4&&Vu(H)&&!H.app.vE||!1;H.s2.controls=E;H.s2.tabIndex=E?0:-1;H.app.K().D&&(H.s2.ariaHidden="true");E?H.s2.removeEventListener("focus",H.rg):H.s2.addEventListener("focus",H.rg)}; PDT=function(H){return isNaN(H.cryptoPeriodIndex)?g.H4(H.initData):""+H.cryptoPeriodIndex}; g.QYq=function(H){var E=this;this.videoData=H;H={};this.L=(H.c1a=function(){var G=[];if(g.Q4.isInitialized()){var P="";E.videoData&&E.videoData.F0&&(P=E.videoData.F0+("&r1b="+E.videoData.clientPlaybackNonce));var Q={};P=(Q.atr_challenge=P,Q);Ld("bg_v",void 0,"player_att");(P=WQj(P))?(Ld("bg_s",void 0,"player_att"),G.push("r1a="+P)):(Ld("bg_e",void 0,"player_att"),G.push("r1c=2"))}else Ld("bg_e",void 0,"player_att"),window.trayride||window.botguard?G.push("r1c=1"):G.push("r1c=4");G.push("r1d="+g.Q4.getState()); return G.join("&")},H.c6a=function(G){return"r6a="+(Number(G.c)^Zd())},H.c6b=function(G){return"r6b="+(Number(G.c)^Number(g.tJ("CATSTAT",0)))},H); this.videoData&&this.videoData.F0?this.fX=W9(this.videoData.F0):this.fX={}}; XIt=function(H){this.triggerType="TRIGGER_TYPE_CUE_BREAK_IDENTIFIED";this.triggerId=H(this.triggerType)}; JAn=function(H,E){this.L7=H;this.AZ=0;this.Lv=E}; g.qA=function(H){H=w$(H);for(var E=[],G=0;G=0;){var P=H.levels[G];if(P.isLoaded(aJ(P,E))&&(P=g.f9(P,E)))return P;G--}return g.f9(H.levels[0],E)}; sYu=function(H,E){H.N&&(clearTimeout(H.N),H.N=null);H.D=0;H.G&&H.W!==0&&(E?Vd(H,E):Math.abs(H.L)>=.15&&H.gf("INTERACTION_LOGGING_GESTURE_TYPE_SCROLL_BEGAN_DRAGGING"),H.L=0,t0(H),g.Tn(H.api.getRootNode(),"ytp-grid-scrolling"))}; AA=function(){g.J.call(this);this.L=new IH(5,null);g.d(this,this.L);this.W=new IH(15,null);g.d(this,this.W)}; oWQ=function(H,E){var G={i4:[],J_:[]},P;if((H=H.B)==null)H=void 0;else{$Ew(H,H.i4,"og");qkl(H,E);$Ew(H,H.i4,"trim");var Q=cBT(H);E=Q.i4;Q=Q.gs;for(var e=[],w=0;w0){var m=Kg(A,k);m>=0&&(I=(A.end(m)-k+.1)*1E3)}e.push({formatId:g.KJ(t.info.uJ.info,H.ou.T6), xj:t.info.xj,sequenceNumber:t.info.U7+H.D,Uk:W,Px:t.info.W,HJ:I})}H={i4:E,J_:e}}return(P=H)!=null?P:G}; eVu=function(H,E){bG.call(this,H,E)}; wiQ=function(H){var E=g.mO("html5-video-player");E&&g.Bt(E,"ytp-ad-display-override",H)}; Ppj=function(H){if(!H.L){var E=g.iK(function(P){var Q=(0,g.ON)();P&&Q<=631152E6&&(H.Fo.g5("ytnerror",{issue:28799967,value:""+Q}),Q=(new Date).getTime()+2);return Q},H.X.U("html5_validate_yt_now")),G=E(); H.L=function(){return Math.round(E()-G)/1E3}; H.Fo.FE()}return H.L}; v_=function(H,E,G){H=vA(H,E===void 0?0:E,G===void 0?-1:G);E=new Uint8Array(H.length);try{E.set(H)}catch(P){for(G=0;G0:!1}; D8Q=function(H){g.D.call(this,{J:"div",QN:["ytp-overlays-container"],V:[{J:"div",Y:"ytp-overlay-top-left"},{J:"div",Y:"ytp-overlay-top-right"},{J:"div",Y:"ytp-overlay-bottom-left"},{J:"div",Y:"ytp-overlay-bottom-right"}]});this.G=this.HF("ytp-overlay-top-left");this.D=this.HF("ytp-overlay-top-right");this.L=this.HF("ytp-overlay-bottom-left");this.W=this.HF("ytp-overlay-bottom-right");g.as(H,this.element,4)}; xEn=function(H){var E=H.index-1;return E<0?H.length-1:E}; g.zE=function(H){return H==null?"":String(H)}; g.D6=function(H,E){var G;return H.K().U("safari_live_drm_captions_fix")&&((G=H.getVideoData())==null?0:G.Gq())?!1:g.KU(H.K())&&!E.isManifestless}; m_=function(H){return H&&H.length?H.end(H.length-1):NaN}; wr=function(){this.L={};if(this.W=Bws()){var H=g.cb("CONSISTENCY");H&&DST(this,{encryptedTokenJarContents:H})}}; zyj=function(H,E){if(H){var G;g.Q4.isLoading()?G=!1:G=!na||(0,g.ON)()-na>E;H=G}else H=!1;return H}; P$s=function(H){return H.info.uJ.qd()&&H.info.U7===H.info.uJ.index.vO()}; W_s=function(H,E){g.D.call(this,{J:"div",Y:"ytp-promotooltip-wrapper",V:[{J:"div",Y:"ytp-promotooltip-container",V:[{J:"div",Y:"ytp-promotooltip-content",V:[{J:"div",Y:"ytp-promotooltip-title",iJ:"{{title}}"},{J:"div",Y:"ytp-promotooltip-details",iJ:"{{details}}"}]},{J:"div",Y:"ytp-promotooltip-buttons",V:[{J:"div",Y:"ytp-promotooltip-dismiss-button",iJ:"{{dismissButtonText}}",j:{tabindex:"0"}},{J:"div",Y:"ytp-promotooltip-accept-button",iJ:"{{acceptButtonText}}",j:{tabindex:"0","aria-haspopup":"true"}}]}]}, {J:"div",Y:"ytp-promotooltip-pointer"}]});var G=this;this.tooltipRenderer=H;this.S=E;this.L=this.sourceElement=null;this.title=this.HF("ytp-promotooltip-title");this.details=this.HF("ytp-promotooltip-details");this.acceptButton=this.HF("ytp-promotooltip-accept-button");this.dismissButton=this.HF("ytp-promotooltip-dismiss-button");this.W=this.D=!1;this.G=!0;this.N=this.T=this.B=this.C=!1;this.kV={i_:function(P){G.i_(P)}}; this.BT(!1);H=this.tooltipRenderer.trackingParams||null;if(this.W=!!H)this.S.createServerVe(this.element,this,!0),this.S.setTrackingParams(this.element,H);this.Z(E,"onShowControls",this.Yf);this.Z(E,"onHideControls",this.Aa);this.Z(E,"resize",this.h7);this.Z(this.acceptButton,"click",this.P4w);this.Z(this.dismissButton,"click",this.keJ);this.Z(document,"click",this.Bh)}; TM=function(){zs.apply(this,arguments)}; MA=function(H,E){if(!E)return H;var G=H.indexOf("#");G<0&&(G=H.length);var P=H.indexOf("?");if(P<0||P>G){P=G;var Q=""}else Q=H.substring(P+1,G);H=[H.slice(0,P),Q,H.slice(G)];G=H[1];H[1]=E?G?G+"&"+E:E:G;return H[0]+(H[1]?"?"+H[1]:"")+H[2]}; $fd=function(H,E){var G=C1t(H),P=G.lL;G=G.IU;if(H.policy.g6){var Q=Te(H.PF.i4,E);H=Te(H.O7.i4,E)}else Q=P,H=G;return{x_:Q,k_:H,lL:P,IU:G}}; txM=function(H,E){H.startSec+=E;H.endSec+=E}; mCT=function(H,E,G,P){if(Ov(H.L,E)){var Q=H.cT,e=Q.yp,w;var t=((w=kHl.get(P))==null?void 0:w.wb)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";e.call(Q,t,E,G);H=RM(H.L,E);H.L!=="rendering"&&Qs(H.slot,H.L,"exitLayout");H.L="rendering_stop_requested";H.G.Ka(G,P)}}; W7u=function(){return{get opener(){return null},get closed(){return!0},get location(){MFU()},get document(){MFU()},postMessage:function(){}, close:function(){}, focus:function(){}}}; g.IVn=function(H){if(H instanceof V4||H instanceof Ak||H instanceof SZ)return H;if(typeof H.next=="function")return new V4(function(){return H}); if(typeof H[Symbol.iterator]=="function")return new V4(function(){return H[Symbol.iterator]()}); if(typeof H.CX=="function")return new V4(function(){return H.CX()}); throw Error("Not an iterator or iterable.");}; qds=function(H,E,G,P){H=PwU(e0s(oAw(new K1(1828,"0"),H),new vm)).WB();E.length&&IYd(H,pEs(new G$M,E));P!==void 0&&(H.Hr=P);var Q=new jv(1828,"","",!1,"",H.build());g.d(Q,H);var e=new g.Jo({flush:function(w){try{Q.flush(w)}catch(t){G(t)}}}); e.addOnDisposeCallback(function(){setTimeout(function(){try{e.Rc()}finally{Q.dispose()}})}); e.G=1E5;e.flushInterval=3E4;e.L.setInterval(3E4);return e}; j$=function(H){this.L=H}; Po1=function(H,E){this.statusCode=H;this.message=E;this.W=this.heartbeatParams=this.errorMessage=null;this.L={};this.nextFairplayKeyId=null}; APQ=function(H){H.W&&H.W.send();if(H.qoe){var E=H.qoe;if(E.D){E.jy==="PL"&&(E.jy="N");var G=g.Gm(E.provider);g.BC(E,G,"vps",[E.jy]);E.B||(E.G>=0&&E.L.set("user_intent",[E.G.toString()]),E.B=!0);E.provider.X.z6()&&E.g5("finalized",{});E.O7=!0;E.reportStats(G)}}if(H.provider.videoData.enableServerStitchedDai)for(E=g.R(H.G.values()),G=E.next();!G.done;G=E.next())F8u(G.value);else H.L&&F8u(H.L);H.dispose()}; ut=function(H){var E;g.Qu()?Zg()==H&&(E=document):E=H;return E&&(H=X6(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],E))?(E=H.call(E),E instanceof Promise?E:Promise.resolve()):Promise.resolve()}; aI=function(H){var E={};if(!H||!H.thumbnails)return E;H=H.thumbnails.filter(function(t){return!!t.url}); H.sort(function(t,k){return t.width-k.width||t.height-k.height}); for(var G=g.R(Object.keys(mfv)),P=G.next();!P.done;P=G.next()){var Q=Number(P.value);P=mfv[Q];for(var e=g.R(H),w=e.next();!w.done;w=e.next())if(w=w.value,w.width>=Q){Q=V2U(w.url);g.Eb(Q)&&(E[P]=Q);break}}(H=H.pop())&&H.width>=1280&&(H=V2U(H.url),g.Eb(H)&&(E["maxresdefault.jpg"]=H));return E}; wAT=function(H,E){H=new Uint8Array(H);E&&H.set(E);return H}; sD=function(H){var E=H;if(qvs(E)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(E))throw Error(String(E));}else if(u2t(E)&&!Number.isSafeInteger(E))throw Error(String(E));return vO?BigInt(H):H=vWj(H)?H?"1":"0":qvs(H)?H.trim()||"0":String(H)}; Mxv=function(H,E){E=E===void 0?null:E;if(H.L.keySystemAccess){var G,P;if(((G=E)==null?0:G.C)&&((P=E.Fo)==null?0:P.u8())){var Q;H.W=(Q=E)==null?void 0:Q.C;return Promise.resolve()}return H.L.keySystemAccess.createMediaKeys().then(function(w){if(!H.Iu()){H.W=w;var t;(t=H.element)==null||t.setMediaKeys(w);var k;E&&((k=E.Fo)==null?0:k.u8())&&(E.C=w)}})}if(rD(H.L))H.G=new (Qa())(H.L.keySystem); else if(pP(H.L)){H.G=new (Qa())(H.L.keySystem);var e;(e=H.element)==null||e.webkitSetMediaKeys(H.G)}else fod(H);return null}; dx=function(H){var E=H.C_,G=H.Da;H=H.VF;var P=new h4M,Q={fM:new y4Q(E.get(),G),Da:G};return{cT:new c5(G,H,E,Q),context:Q,Cm:P}}; MM=function(H,E,G){G&&H.W&&H.W(E.value)}; dfQ=function(H,E){H=g.R(H.kp);for(var G=H.next();!G.done;G=H.next())if(G=G.value,G.type===3&&E>=G.D&&E<=G.T)return!0;return!1}; Dfv=function(H,E,G,P,Q){this.D=H;this.T=E;this.L=G;this.W=P;this.G=Q}; aVq=function(H){g.D.call(this,{J:"div",QN:["html5-video-player"],j:{tabindex:H.K().disableOrganicUi?"":"-1",id:H.webPlayerContextConfig.rootElementId},V:[{J:"div",Y:g.JN.VIDEO_CONTAINER,j:{"data-layer":"0"}}]});var E=this;this.app=H;this.iE=this.HF(g.JN.VIDEO_CONTAINER);this.Lt=new g.Yn(0,0,0,0);this.s2=null;this.F9=new g.Yn(0,0,0,0);this.Ue=this.iY=this.WU=NaN;this.D4=this.V9=this.cw=this.Pe=!1;this.Bz=NaN;this.zC=!1;this.o7=null;this.xD=new g.Wt(function(){E.app.K().U("web_enable_smart_zoom")&& E.app.cF.getInternalApi().isAutocropEnabled()||E.resize()},100); this.rg=function(){E.element.focus({preventScroll:!0})}; this.Cg=function(){E.app.cF.publish("playerUnderlayVisibilityChange","visible");E.s2.classList.remove(g.JN.VIDEO_CONTAINER_TRANSITIONING);E.s2.removeEventListener(iB,E.Cg);E.s2.removeEventListener("transitioncancel",E.Cg)}; this.Df=this.Bn=!1;var G=this.element.addEventListener,P=this.element.removeEventListener;this.addEventListener=function(e,w,t){G.apply(E.element,[e,w,t])}; this.removeEventListener=function(e,w,t){P.apply(E.element,[e,w,t])}; var Q=H.K();Q.transparentBackground&&this.Vw("ytp-transparent");Q.controlsType==="0"&&this.Vw("ytp-hide-controls");g.aG(this.element,"ytp-exp-bottom-control-flexbox");g.aG(this.element,"ytp-modern-caption");Q.U("enable_new_paid_product_placement")&&!g.iH(Q)&&g.aG(this.element,"ytp-exp-ppp-update");g.aG(this.element,"ytp-livebadge-color");nWQ(this.element,fQ1(H));this.W8=!1;this.J0=new g.P4(NaN,NaN);T1t(this);this.Z(H.cF,"onMutedAutoplayChange",this.onMutedAutoplayChange);g.d(this,this.xD)}; mus=function(H,E,G){var P=O$T[H]||[];G.U("html5_shorts_onesie_mismatched_fix")&&(P=K7T[H]||[]);E.push.apply(E,g.EC(P));G.U("html5_early_media_for_drm")&&E.push.apply(E,g.EC(jYj[H]||[]))}; $p=function(H,E){return new xi(H,H+E-1)}; cP7=function(){var H=XMLHttpRequest.prototype.fetch;return!!H&&H.length===3}; fQ1=function(H){var E=H.webPlayerContextConfig.trustedJsUrl;return E?Cz(E).toString():H.webPlayerContextConfig.jsUrl}; urM=function(H){if(!H.ou.T6)return!0;var E=H.Fo.getVideoData();if(H.Fo.EZ())return H.g5("ombpa",{}),!1;var G,P;if(!!((G=H.p_)==null?0:(P=G.Tm)==null?0:P.nz$)!==H.ou.tT)return H.g5("ombplmm",{}),!1;G=E.eR||E.liveUtcStartSeconds||E.tH;if(H.ou.tT&&G)return H.g5("ombplst",{}),!1;if(H.ou.p_)return H.g5("ombab",{}),!1;G=Date.now();return jF(H.ou)&&!isNaN(H.PF)&&G-H.PF>H.policy.Me*1E3?(H.g5("ombttl",{}),!1):H.ou.iG&&H.ou.D||N$(E)!==0&&!H.policy.L||E.U("html5_disable_onesie_media_for_mosaic")&&pq(E)||E.U("html5_disable_onesie_media_for_lifa_eligible")&& cy(E)?!1:!0}; UEn=function(H){var E=H.index+1;return E>=H.length?0:E}; g.dS=function(H){return H.U("enable_wn_infocards")}; NVj=function(H,E,G,P,Q){if(!Cm(E))return new T("Invalid PlayerBytesAdLayoutRenderer");var e=g.X(E.renderingContent,M3);if(!e||e.durationMilliseconds===void 0)return new T("Invalid endcap renderer");var w={layoutId:E.adLayoutMetadata.layoutId,layoutType:E.adLayoutMetadata.layoutType,f_:"adapter"};P=[new Jh(e.durationMilliseconds),new ce({impressionCommands:void 0,abandonCommands:e.abandonCommands?[{commandExecutorCommand:e.abandonCommands}]:void 0,completeCommands:e.completionCommands}),new nn(P), new r2("LAYOUT_TYPE_ENDCAP")];if(Q){P.push(new Yb(Q.WR.adPodIndex-1));P.push(new kL(Q.WR.adPodIndex));var t;P.push(new By((t=Q.adPodSkipTarget)!=null?t:-1))}return Object.assign({},w,DI,{renderingContent:E.renderingContent,clientMetadata:new ZN(P),w5:e.skipPings?new Map([["skip",e.skipPings]]):new Map,O2:xZ(G,H)(w),adLayoutLoggingData:E.adLayoutMetadata.adLayoutLoggingData})}; pZ=function(H){for(var E=0,G=0;G>>0;return E}; yPM=function(H,E){if(H.Am){H.Am.uB(E);var G;(G=H.loader)!=null&&G.policy.T$&&(G.B=E)}}; ln=function(H,E,G){var P=H.VN;return XJ(H,P,P[c9]|0,E,G,void 0===rJ7?2:4,void 0,!1,!0)}; Qe=function(H,E){var G=E*4294967296+(H>>>0);return Number.isSafeInteger(G)?G:rk(H,E)}; qs=function(H,E){return LDt(H,E||{},!0)}; J2n=function(H,E,G,P,Q,e,w){if(H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISMISSABLE_PANEL_TEXT_PORTRAIT_IMAGE")a:{var t=g.X(H.renderingContent,BJ),k=g.X(H.renderingContent,gG);w=new Map;if(t){w=g.X(t.sidePanel,XFw);if(!w){H=new T("DismissablePanelTextPortraitImageRenderer is missing");break a}w=new Map([["impression",w.impressionPings||[]],["resume",w.resumePings||[]]])}else if(!k){H=new T("AdsEngagementPanelSectionListViewModel is missing");break a}t={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType, f_:"core"};E=LA(H,E,G);H=E instanceof T?E:Object.assign({},t,{renderingContent:H.renderingContent,w5:w},E,{O2:xZ(P,Q)(t),clientMetadata:new ZN([new nn(US(e))]),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData})}else H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_TRACKING"?g.X(H.renderingContent,Bb1)?(w={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,f_:"core"},E=LA(H,E,G),H=E instanceof T?E:Object.assign({},w,{renderingContent:H.renderingContent,w5:new Map}, E,{O2:xZ(P,Q)(w),clientMetadata:new ZN([new nn(US(e))]),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData})):H=new T("CounterfactualRenderer is missing"):H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE"?H=new T("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_PANEL_QR_CODE_CAROUSEL"?H=new T("PlayerUnderlaySlot cannot be created because adUxReadyApiProvider is null"):H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"? g.X(H.renderingContent,h1)?(e={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,f_:"core"},E=LA(H,E,G),H=E instanceof T?E:w?Object.assign({},e,{renderingContent:H.renderingContent,w5:new Map},E,{O2:xZ(P,Q)(e),clientMetadata:new ZN([new vC(w)]),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData}):new T("Not able to parse an SDF PlayerUnderlay layout because the triggeringMediaLayoutId in AdSlotMetadata is missing")):H=new T("DisplayUnderlayTextGridCardsLayoutViewModel is missing"): H.adLayoutMetadata.layoutType==="LAYOUT_TYPE_VIDEO_AD_INFO"?g.X(H.renderingContent,gG)?(e={layoutId:H.adLayoutMetadata.layoutId,layoutType:H.adLayoutMetadata.layoutType,f_:"core"},E=LA(H,E,G),H=E instanceof T?E:Object.assign({},e,{renderingContent:H.renderingContent,w5:new Map([])},E,{O2:xZ(P,Q)(e),adLayoutLoggingData:H.adLayoutMetadata.adLayoutLoggingData,clientMetadata:new ZN([])})):H=new T("AdsEngagementPanelSectionListViewModel is missing"):H=new T("LayoutType ["+H.adLayoutMetadata.layoutType+ "] is invalid for PlayerUnderlaySlot");return H}; g.bs=function(H,E,G,P,Q,e,w,t,k,W){t=t===void 0?!1:t;g.J.call(this);var I=this;this.Fo=H;this.schedule=E;this.policy=G;this.ou=P;this.Jm=k;this.qC=W;this.mq=this.Am=null;this.eR=this.Yp=this.z$=this.E7=0;this.aj=this.Rp=this.isSuspended=!1;this.au="";this.Fa={};this.dP=NaN;this.G6=this.wW=0;this.T=null;this.V8=this.T$=!1;this.yj=0;this.s7=!1;this.O7=this.FI=0;this.ML=null;this.Xk=!1;this.sB=function(){return I.Fo.sB()}; this.timing=new HNt(this.qC);this.L_=new eb(this.schedule,this.policy);this.gt=new g.Wt(this.Wo,0,this);this.jT=new g.Wt(this.Wo,this.policy.ox,this);this.CK=new g.Wt(this.Wo,1E3,this);this.yG=new g.Wt(this.Wo,void 0,this);this.hm=new g.Wt(function(){I.isSuspended||I.Wo()},1E4,this); this.ox=new g.Wt(this.yKu,250,this);this.B=this.currentTime=NaN;this.Cl=new KQ(5);this.PF=this.timestampOffset=NaN;this.logger=new g.Pj("dash");this.AG=Infinity;this.kV={id_:function(){return I.PK}, uko:function(){return I.G}, getAudioTrack:function(){return I.audioTrack}, iOa:function(){return I.videoTrack}, mlZ:function(){return I.WF}, getManifest:function(){return I.ou}, s5R:function(){return I.W}, Wo:function(){I.Wo()}, Fp:function(){I.E7=0;I.Fp()}, wNp:function(m){return nv(I,I.videoTrack,I.Am.W,m)}}; H=k&&k.S$();k&&(Nnd(k,this.ou,this.policy),this.PF=Date.now());this.L=new Jhl(this,this.L_,G,this.ou,Q,H);G=b$s(this.L,e,w&&w.id);this.audioTrack=new aH(this,this.policy,G.audio,this.timing);this.videoTrack=new aH(this,this.policy,G.video,this.timing);this.videoTrack.G.Jm=this.audioTrack.Fx();this.MZ={updateend:this.GQ,error:this.UC_};g.d(this,this.gt);g.d(this,this.jT);g.d(this,this.CK);g.d(this,this.yG);g.d(this,this.hm);G=this.policy.mMm&&this.policy.De?!Kmj(this.videoTrack.uJ.info):!1;this.WO= Owl({Gc:this.policy.N.Gc||G,De:this.policy.De&&!G,Kz:this.policy.Kz});this.N=fIw(this,this.policy,this.WO,this.schedule,this.Cl,function(m,u){return z91(I,m,u)}); this.G=new ieT(this,this.ou,this.policy,this.videoTrack,this.audioTrack,t);this.policy.hm&&this.policy.W&&(this.WF=new i$v(this.policy.C,function(m,u){I.g5(m,u)})); this.PK=new FH(this,this.ou,this.videoTrack,this.audioTrack,this.policy);t=this.policy.rj?this.Fo.getVideoData().H6:null;this.C=new OZ(this,this.policy,this.videoTrack,this.audioTrack,this.Fa,this.G,this.timing,this.L_,this.schedule,this.ou,this.L,this.N,G,t);g.d(this,this.C);this.D=new S9(this,this.policy,this.videoTrack,this.audioTrack,this.ou,Q,As(this.Fo.getVideoData()),w==null?void 0:w.id);g.d(this,this.D);Lov(this.D,e);this.W=new wb(this.Fo,this,this.policy,this.audioTrack,this.videoTrack,this.ou, this.schedule,this.L,this.D,this.timing,this.G,this.WF);g.d(this,this.W);this.p_=this.Fo.O9.b3.TG;this.policy.T||Z6M(this);if(this.policy.gt){var A;this.BF=new Kv(this.videoTrack.uJ.index,(A=this.Fo.getVideoData().clientPlaybackNonce)!=null?A:"",this.Fo,this.policy.FI);this.policy.FI===3&&(this.U2=new g.Wt(this.Hd,200,this),this.U2.start(),g.d(this,this.U2))}}; P5U=function(H){var E=null;H.W&&(E=H.W,H.W=E.next,E.next=null);H.W||(H.D=null);return E}; Pp=function(H){return H.isPlaying()&&!g.F(H,16)&&!g.F(H,32)}; qeT=function(H,E){H.isContentForward=E;g.Bt(H.badge.element,"ytp-suggested-action-badge-content-forward",E)}; jo=function(H,E){g.J.call(this);this.OZ=E;this.OZ.get().addListener(this)}; r2=function(H){this.value=H}; Yc=function(H,E,G){if(H.beforeContentVideoIdStartedTrigger)H=H.beforeContentVideoIdStartedTrigger?new hB(kg,E,H.id):new T("Not able to create BeforeContentVideoIdStartedTrigger");else{if(H.layoutIdExitedTrigger){var P;E=(P=H.layoutIdExitedTrigger)!=null&&P.triggeringLayoutId?new WX(kg,H.layoutIdExitedTrigger.triggeringLayoutId,H.id):new T("Not able to create LayoutIdExitedTrigger")}else{if(H.layoutExitedForReasonTrigger){var Q,e;((Q=H.layoutExitedForReasonTrigger)==null?0:Q.triggeringLayoutId)&&((e= H.layoutExitedForReasonTrigger)==null?0:e.layoutExitReason)?(E=RVv(H.layoutExitedForReasonTrigger.layoutExitReason),H=E instanceof T?E:new lH(kg,H.layoutExitedForReasonTrigger.triggeringLayoutId,[E],H.id)):H=new T("Not able to create LayoutIdExitedForReasonTrigger")}else{if(H.onLayoutSelfExitRequestedTrigger){var w;E=(w=H.onLayoutSelfExitRequestedTrigger)!=null&&w.triggeringLayoutId?new be(kg,H.onLayoutSelfExitRequestedTrigger.triggeringLayoutId,H.id):new T("Not able to create OnLayoutSelfExitRequestedTrigger")}else{if(H.onNewPlaybackAfterContentVideoIdTrigger)H= H.onNewPlaybackAfterContentVideoIdTrigger?new BQ(kg,E,H.id):new T("Not able to create OnNewPlaybackAfterContentVideoIdTrigger");else{if(H.skipRequestedTrigger){var t;E=(t=H.skipRequestedTrigger)!=null&&t.triggeringLayoutId?new BU(kg,H.skipRequestedTrigger.triggeringLayoutId,H.id):new T("Not able to create SkipRequestedTrigger")}else if(H.slotIdEnteredTrigger){var k;E=(k=H.slotIdEnteredTrigger)!=null&&k.triggeringSlotId?new r_(kg,H.slotIdEnteredTrigger.triggeringSlotId,H.id):new T("Not able to create SlotIdEnteredTrigger")}else if(H.slotIdExitedTrigger){var W; E=(W=H.slotIdExitedTrigger)!=null&&W.triggeringSlotId?new Y7(kg,H.slotIdExitedTrigger.triggeringSlotId,H.id):new T("Not able to create SkipRequestedTrigger")}else if(H.surveySubmittedTrigger){var I;E=(I=H.surveySubmittedTrigger)!=null&&I.triggeringLayoutId?new EL(kg,H.surveySubmittedTrigger.triggeringLayoutId,H.id):new T("Not able to create SurveySubmittedTrigger")}else{if(H.mediaResumedTrigger)H=H.mediaResumedTrigger&&H.id?new v8t(H.id):new T("Not able to create MediaResumedTrigger");else{if(H.closeRequestedTrigger){var A; E=(A=H.closeRequestedTrigger)!=null&&A.triggeringLayoutId?new JR(kg,H.closeRequestedTrigger.triggeringLayoutId,H.id):new T("Not able to create CloseRequestedTrigger")}else if(H.slotIdScheduledTrigger){var m;E=(m=H.slotIdScheduledTrigger)!=null&&m.triggeringSlotId?new BM(kg,H.slotIdScheduledTrigger.triggeringSlotId,H.id):new T("Not able to create SlotIdScheduledTrigger")}else{if(H.mediaTimeRangeTrigger){var u;P=Number((u=H.mediaTimeRangeTrigger)==null?void 0:u.offsetStartMilliseconds);var v;w=Number((v= H.mediaTimeRangeTrigger)==null?void 0:v.offsetEndMilliseconds);isFinite(P)&&isFinite(w)?(v=w,v===-1&&(v=G),G=P>v?new T("AD_PLACEMENT_KIND_MILLISECONDS endMs needs to be >= startMs.",{offsetStartMs:P,offsetEndMs:v},"ADS_CLIENT_ERROR_MESSAGE_AD_PLACEMENT_END_SHOULD_GREATER_THAN_START",v===G&&P-500<=v):new WM(P,v),H=G instanceof T?G:new Rq(kg,E,G,!1,H.id)):H=new T("Not able to create MediaTimeRangeTrigger")}else if(H.contentVideoIdEndedTrigger)H=H.contentVideoIdEndedTrigger?new kr(kg,E,!1,H.id):new T("Not able to create ContentVideoIdEndedTrigger"); else{if(H.layoutIdEnteredTrigger){var n;E=(n=H.layoutIdEnteredTrigger)!=null&&n.triggeringLayoutId?new yr(kg,H.layoutIdEnteredTrigger.triggeringLayoutId,H.id):new T("Not able to create LayoutIdEnteredTrigger")}else if(H.timeRelativeToLayoutEnterTrigger){var O;E=(O=H.timeRelativeToLayoutEnterTrigger)!=null&&O.triggeringLayoutId?new YA(kg,Number(H.timeRelativeToLayoutEnterTrigger.durationMs),H.timeRelativeToLayoutEnterTrigger.triggeringLayoutId,H.id):new T("Not able to create TimeRelativeToLayoutEnterTrigger")}else if(H.onDifferentLayoutIdEnteredTrigger){var q; E=(q=H.onDifferentLayoutIdEnteredTrigger)!=null&&q.triggeringLayoutId&&H.onDifferentLayoutIdEnteredTrigger.slotType&&H.onDifferentLayoutIdEnteredTrigger.layoutType?new q6(kg,H.onDifferentLayoutIdEnteredTrigger.triggeringLayoutId,H.onDifferentLayoutIdEnteredTrigger.slotType,H.onDifferentLayoutIdEnteredTrigger.layoutType,H.id):new T("Not able to create CloseRequestedTrigger")}else{if(H.liveStreamBreakStartedTrigger)H=H.liveStreamBreakStartedTrigger&&H.id?new ra(kg,H.id):new T("Not able to create LiveStreamBreakStartedTrigger"); else if(H.liveStreamBreakEndedTrigger)H=H.liveStreamBreakEndedTrigger&&H.id?new cj(kg,H.id):new T("Not able to create LiveStreamBreakEndedTrigger");else{if(H.liveStreamBreakScheduledDurationMatchedTrigger){var N;E=(N=H.liveStreamBreakScheduledDurationMatchedTrigger)!=null&&N.breakDurationMs?new i3(Number(H.liveStreamBreakScheduledDurationMatchedTrigger.breakDurationMs||"0")||0,H.id):new T("Not able to create LiveStreamBreakScheduledDurationMatchedTrigger")}else if(H.liveStreamBreakScheduledDurationNotMatchedTrigger){var r; E=(r=H.liveStreamBreakScheduledDurationNotMatchedTrigger)!=null&&r.breakDurationMs?new oj(Number(H.liveStreamBreakScheduledDurationNotMatchedTrigger.breakDurationMs||"0")||0,H.id):new T("Not able to create LiveStreamBreakScheduledDurationNotMatchedTrigger")}else if(H.newSlotScheduledWithBreakDurationTrigger){var B;E=(B=H.newSlotScheduledWithBreakDurationTrigger)!=null&&B.breakDurationMs?new b2(Number(H.newSlotScheduledWithBreakDurationTrigger.breakDurationMs||"0")||0,H.id):new T("Not able to create NewSlotScheduledWithBreakDurationTrigger")}else E= H.prefetchCacheExpiredTrigger?new PW(kg,H.id):new T("Not able to convert an AdsControlflowTrigger.");H=E}E=H}H=E}E=H}H=E}E=H}H=E}E=H}H=E}E=H}H=E}return H}; Qh=function(H){this.VN=tz(H)}; $4=function(H){this.value=H}; cO=function(H,E,G,P){this.flavor=H;this.keySystem=E;this.W=G;this.experiments=P;this.L={};this.nX=this.keySystemAccess=null;this.Tg=this.t5=-1;this.Lb=null;this.G=!!P&&P.xp("edge_nonprefixed_eme");P&&P.xp("html5_enable_vp9_fairplay")}; KMn=function(H){var E={veType:253246};return g.NL(function(){if(!E.veType)return Wp(new g.LN("Error: Trying to graft a client VE without a veType.")),null;if(E.visibilityTypes){var G=E.visibilityTypes.reduce(function(P,Q){return P|Q}); G={visibility:{types:String(G)}}}G=Clj(E.veType,E.visualElement,E.elementIndex,E.clientYouTubeData,void 0,G);return Yw(H,G)?G:null})()}; NM=function(H){HO(H);H.L6=null;var E=JPq(H.X,H.videoData,H.w6());H.Hf=E;H.Hf.then(function(G){rP1(H,G)},function(G){H.Iu()||(G=ms(G),H.visibility.isBackground()?(oH(H,"vp_none_avail"),H.Hf=null,H.wx.reset()):(H.wx.finished=!0,H.kq(G.errorCode,G.severity,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",gt(G.details))))}); return E}; sss=function(H,E,G,P){var Q=Math.min(H.wJ,300*H.scale);H.element.style.maxWidth=E?"":Q+"px";H.O7.jG(H.element,H.L,G,H.type===1,P);H.element.style.top?g.aG(H.element,"ytp-bottom"):H.element.style.bottom&&g.aG(H.element,"ytp-top");H.type===3&&H.Jm.start()}; yJ=function(H){H=H===void 0?md:H;Ra.call(this,new VV(H,2))}; iQ=function(H,E){var G=dd(H);return G.defaultView&&G.defaultView.getComputedStyle&&(H=G.defaultView.getComputedStyle(H,null))?H[E]||H.getPropertyValue(E)||"":""}; yc=function(H,E){H.T!=E&&(H.T=E,H.B&&H.B())}; p3q=function(H,E){H.W=E}; BVu=function(H,E){return""+H+"|"+(E?"v":"a")}; g.bt=function(H){H&=16777215;var E=[(H&16711680)>>16,(H&65280)>>8,H&255];H=E[0];var G=E[1];E=E[2];H=Number(H);G=Number(G);E=Number(E);if(H!=(H&255)||G!=(G&255)||E!=(E&255))throw Error('"('+H+","+G+","+E+'") is not a valid RGB color');G=H<<16|G<<8|E;return H<16?"#"+(16777216|G).toString(16).slice(1):"#"+G.toString(16)}; Yed=function(H,E){E=uu(H,E)+1;return E=2?H.L.getAllResponseHeaders()||"":"").split("\r\n");for(var G=0;GH.G.W,e=H.G.L>0&&P=0);g.Bt(H.element,"ytp-scroll-max",E<=G)}; OZ=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u){u=u===void 0?null:u;g.J.call(this);var v=this;this.loader=H;this.policy=E;this.videoTrack=G;this.audioTrack=P;this.D=Q;this.L=e;this.timing=w;this.T=t;this.schedule=k;this.ou=W;this.G=I;this.p_=A;this.wS=m;this.H6=u;this.WF=!1;this.cf="";this.iA=null;this.RP=NaN;this.Jm=!1;this.W=null;this.l8=this.L_=NaN;this.qO=this.C=0;this.logger=new g.Pj("dash");this.kV={TC:function(n,O){return v.TC(n,O)}}; this.policy.vc>0&&(this.cf=g.qA(this.policy.vc));this.policy.jt&&(this.N=new e7(this.loader,this.policy,this.schedule),g.d(this,this.N))}; lVn=function(H){H.menuItem||(H.menuItem=new qD(H.api),g.d(H,H.menuItem),H.menuItem.r5(H.L))}; xfv=function(H,E){var G=H.XI.pM;if(G)return eM(G.getPlayerState());if(H.getVideoData().enableServerStitchedDai&&E===2){var P,Q,e;return(H.X.Bo().L.A7(Uft)?(e=(P=H.XI.W)==null?void 0:P.isAd())!=null&&e:(Q=H.xq)==null?0:q_Q(Q,H.getCurrentTime()))?H.Q5:-1}return E!==2||H.Xm()?H.Q5:H.SF}; OKw=function(H,E){return tL(H,E)||Math.abs(H.T-E.D)<=1E-6||H.U7+1===E.U7&&E.L===0&&H.G?!0:!1}; bo=function(H,E){g.D.call(this,{J:"div",QN:["ytp-fullscreen-grid"],V:[{J:"button",QN:["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"},V:["{{icon}}"]},{J:"div",Y:"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"}},{J:"div",Y:"ytp-fullscreen-grid-main-content",V:[{J:"div",Y:"ytp-fullscreen-grid-stills-container"}]}]});this.player=H;this.stills=[];this.videoData=null;this.currentState=0;this.T=this.player.U("web_player_use_external_grid_component");this.W=this.HF("ytp-fullscreen-grid-main-content");this.D=this.HF("ytp-fullscreen-grid-stills-container");this.T&&(this.D.style.display="none");this.G=new g.Z0(this);g.d(this,this.G);this.B=E;if(this.W&&this.D){if(H=this.HF("ytp-fullscreen-grid-hover-overlay"))this.Z(H, "click",this.C),M2(this.player,H,this);if(H=this.HF("ytp-fullscreen-grid-expand-button"))this.Z(H,"click",this.C),M2(this.player,H,this);if(H=this.player.getVideoData(1))this.videoData=H;this.player.createClientVe(this.W,this,223051);this.G.Z(this.player,"videodatachange",this.onVideoDataChange)}}; zVT=function(H){for(var E=0;E0}; fVq=function(H,E){return function(){H.X.U("html5_simplify_pings")?(H.L=H.T$,H.ox=E(),H.AG=0,H.send()):tC(H).then(function(G){var P=V2(H);P.cmt=P.len;P.lact="0";var Q=E().toFixed(3);P.rt=Number(Q).toString();P=g.eB(H.uri,P);H.X.U("vss_through_gel_double")&&VRM(P);H.PF?(G==null&&(G={}),H.O7?hx().sendAndWrite(P,G):hx().sendThenWrite(P,G)):G?g.a2(P,G):g.iN(P)})}}; S_t=function(H){for(var E=1;E1&&H.g5("trBug",{af:""+g.KJ(H.audioTrack.uJ.info,!1),vf:""+g.KJ(H.videoTrack.uJ.info,!1),a:""+E,v:""+G}))}; Dk=function(H){var E={};H=H.split("\r\n");for(var G=0;G=H.D);if(H.W===1||H.W===2)return!1;if(H.W!==0&&E===H.audioTrack){if(H.policy.W)return oIU(H.videoTrack,G)||oIU(H.videoTrack,G+1);H=bn(H.videoTrack);if(G>(H?H.U7:-1))return!1}return!0}; Wa=function(){g.J.apply(this,arguments);this.fru=new Map}; eFu=function(H){KT("drm_pb_s",void 0,H.L_);H.nX||H.L&&O8(H.L);var E={};H.L&&(E=cr1(H.o2,g.zo(H),H.lJ.T,H.L,function(G){return H.publish("ctmp","fmtflt",G)},!0,new Set)); E=new VL(E,H.lJ,H.GX,H.useCobaltWidevine?Q_()?$z(H):!1:!1,function(G,P){H.g5(G,P)}); g.d(H,E);H.xH=!1;H.loading=!0;Leu(E,function(G){KT("drm_pb_f",void 0,H.L_);for(var P=g.R(G),Q=P.next();!Q.done;Q=P.next())switch(Q=Q.value,Q.flavor){case "fairplay":Q.nX=H.nX;Q.t5=H.t5;Q.Tg=H.Tg;break;case "widevine":Q.Lb=H.Lb}H.Eu=G;if(H.Eu.length>0&&(H.T=H.Eu[0],H.lJ.z6())){G={};P=g.R(Object.entries(H.T.L));for(Q=P.next();!Q.done;Q=P.next()){var e=g.R(Q.value);Q=e.next().value;e=e.next().value;var w="unk";(Q=Q.match(/(.*)codecs="(.*)"/))&&(w=Q[2]);G[w]=e}H.g5("drmProbe",G)}H.M7()})}; w6w=function(H){this.W=H;this.L=NaN;this.buffer=new sm(100)}; WSs=function(H){var E;return!!(H.U("html5_native_audio_track_switching")&&g.Ez&&((E=H.videoData.W)==null?0:wB(E)))}; O3q=function(H){return Array.prototype.map.call(H,function(E){E=E.toString(16);return E.length>1?E:"0"+E}).join("")}; rS=function(H,E,G,P,Q,e){Xm.call(this,H,E,G,P);this.SR=Q;this.D=e;this.T=Zi(this.layout.clientMetadata,"metadata_type_linked_player_bytes_layout_id")}; JDu=function(H){var E=new unu(H.L.hG);g.d(H,E);H=[new On(H.L.SR),new LF(H.L.S),new mH(H.L.SR),new u_(H.L.gX,H.L.oG),new L_,new vts(H.L.vY,H.L.aF,H.L.SR),new hFM,new $k7];H=g.R(H);for(var G=H.next();!G.done;G=H.next())mij(E,G.value);H=g.R(["adInfoDialogEndpoint","adFeedbackEndpoint"]);for(G=H.next();!G.done;G=H.next())ta(E,G.value,function(){}); return E}; mi=function(H){return H.K_==="mac3"||H.K_==="meac3"||H.K_==="m"||H.K_==="i"}; Zyv=function(H,E){this.L=H;this.duration=E}; hCU=function(H,E){return E?[g.KJ(E.info,H)]:[]}; tTn=function(H){H.offsets.length4&&H.Jm.shift()}; CC=function(H,E){Zc("_start",H,E)}; Yu=function(H,E,G,P,Q,e,w,t){E?E.test(G)?(H.Di(Q,E,w),E.C||e()):(!E.W||E.D?G=!1:(G=(0,g.ON)(),P?E.L||(E.L=G):E.L=0,e=!P&&G-E.W>3E4,G=E.L&&G-E.L>1E3||e?E.D=!0:!1),G&&(t=Object.assign({},H.NL(E),t),t.wn=w,t.we=Q,t.wsuc=P,H.Fo.g5("workaroundReport",t),P&&(E.reset(),H.G[Q]=!1))):H.Fo.kq("auth",2,"BROWSER_OR_EXTENSION_ERROR",gt({source:"watchdog",name:w}))}; uN7=function(H){H.G.read().then(H.S7N.bind(H)).catch(H.pn.bind(H))}; VZ=function(H,E,G,P,Q){Q=Q===void 0?!1:Q;var e={startTime:(0,g.ON)(),ticks:{},infos:{}};if(tN)try{var w=z0T(E);if(w!=null&&(w>jtT||w=yS1&&(b6t++,tN=!1);k_d(E);P.headers||(P.headers={});P.headers["Content-Encoding"]="gzip";P.postBody=H;P.postParams=void 0;Q(G,P)}; oEd=function(H,E,G){H.N&&clearTimeout(H.N);H.L===0&&g.Tn(H.api.getRootNode(),"ytp-grid-scrolling");E?sYu(H,G):H.L<.1&&(H.N=window.setTimeout(function(){sYu(H)},1E3))}; qfv=function(H,E,G){for(var P=[],Q=0;Q=Q.W&&G50&&Q.W.shift())),Q=H.L,RmM(Q,G,E===void 0?!0:E),MV1(Q,G),E&&zou(H,!0));P!==H.U2&&(E=H.getCurrentTime()-H.s7<=500,G=H.G6>=1E3,E||G||(E=H.Fo.eT,E.qoe&&(E=E.qoe,G=g.Gm(E.provider), g.BC(E,G,"lh",[P?"1":"0"])),H.U2=P,H.G6++,H.s7=H.getCurrentTime()))}; evw=function(){return{LS:["metadata_type_valid_ad_message_renderer"],yF:["LAYOUT_TYPE_TEXT_BANNER_OVERLAY"]}}; rg=function(H){if(H.z$&&H.L_&&!H.E7){for(;H.G.length;){var E=H.G[0],G=Uu1(H)?PDT(E):g.H4(E.initData);if(d_(H.L)&&!E.W)H.G.shift();else{if(H.W.get(G))if(H.L.flavor!=="fairplay"||d_(H.L)){H.G.shift();continue}else H.W.delete(G);BuM(E);break}}H.G.length&&H.createSession(H.G[0])}}; oHt=function(H,E){var G,P=(G=Zi(H.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:G.current;if(!P)return null;G=SBQ(H,E);return{vG:CCq(H,E),adPlacementConfig:Zi(H.clientMetadata,"metadata_type_ad_placement_config"),nw:G,contentCpn:Zi(H.clientMetadata,"metadata_type_content_cpn"),inPlayerLayoutId:Zi(H.clientMetadata,"metadata_type_linked_in_player_layout_id"),inPlayerSlotId:Zi(H.clientMetadata,"metadata_type_linked_in_player_slot_id"),instreamAdPlayerOverlayRenderer:Zi(H.clientMetadata, "metadata_type_instream_ad_player_overlay_renderer"),playerOverlayLayoutRenderer:void 0,instreamAdPlayerUnderlayRenderer:void 0,Kn:void 0,z7:P,ZL:H.layoutId,videoLengthSeconds:Zi(H.clientMetadata,"metadata_type_video_length_seconds")}}; y$=function(H,E,G,P){H.vt&&(H.playbackStartPolicy=E,H.Jr=G,H.iQ=P)}; gIQ=function(H,E,G){G=G===void 0?!1:G;g.h3(E);H.E9.lastError="player.exception";H.errorMessage=E.name+"_"+E.message;G?g.VP(function(){Cv(H.E9)}):Cv(H.E9)}; niw=function(H){var E=H!==H.top,G=H.top===ysU(H),P=-1,Q=0;if(E&&G&&H.top.mraid){P=3;var e=H.top.mraid}else P=(e=H.mraid)?E?G?2:1:0:-1;e&&(e.IS_GMA_SDK||(Q=2),n1t(Lgn,function(w){return typeof e[w]==="function"})||(Q=1)); return{zP:e,compatibility:Q,qR5:P}}; hld=function(H,E,G,P,Q,e,w,t){w=w===void 0?!1:w;var k=[];try{var W=[];if(G.renderer.linearAdSequenceRenderer)var I=function(O){O=MZj(O.slotId,G,E,Q(O),P,e,w);W=O.mI$;return O.yR}; else if(G.renderer.instreamVideoAdRenderer)I=function(O){var q=O.slotId;O=Q(O);var N=w,r=G.config.adPlacementConfig,B=IHd(r),l=B.DA,S=B.lc;B=G.renderer.instreamVideoAdRenderer;var z;if(B==null?0:(z=B.playerOverlay)==null?0:z.instreamSurveyAdRenderer)throw new TypeError("Survey overlay should not be set on single video.");var Pt=wC(B,N);z=Math.min(l+Pt.videoLengthSeconds*1E3,S);N=new eh(0,[Pt.videoLengthSeconds]);S=Pt.videoLengthSeconds;var eu=Pt.playerVars,QM=Pt.instreamAdPlayerOverlayRenderer,$Q= Pt.playerOverlayLayoutRenderer,En=Pt.adVideoId,Dj=VLq(G),gl=Pt.w5;Pt=Pt.kZ;var oD=B==null?void 0:B.adLayoutLoggingData;B=B==null?void 0:B.sodarExtensionData;q=dU(E.W.get(),"LAYOUT_TYPE_MEDIA",q);var GZ={layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",f_:"core"};return{layoutId:q,layoutType:"LAYOUT_TYPE_MEDIA",w5:gl,layoutExitNormalTriggers:[new cj(E.L)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:new ZN([new $L(P), new jU(S),new tm(eu),new N9(l),new yw(z),QM&&new d8(QM),$Q&&new Du($Q),new nn(r),new IJ(En),new hs(N),new ic(Dj),B&&new Am(B),new W3({current:null}),new Yj({}),new a6(Pt)].filter(PLl)),O2:O(GZ),adLayoutLoggingData:oD}}; else throw new TypeError("Expected valid AdPlacementRenderer for DAI");var A=Obj(H,P,G.adSlotLoggingData,I,t);k.push(A);for(var m=g.R(W),u=m.next();!u.done;u=m.next()){var v=u.value,n=v(H,Q);if(n instanceof T)return n;k.push.apply(k,g.EC(n))}}catch(O){return new T(O,{errorMessage:O.message,AdPlacementRenderer:G,numberOfSurveyRenderers:ePT(G)})}return k}; gS=function(H,E){for(var G in H.L)if(H.L[G].status==="usable"&&H.L[G].type===E)return!0;return!1}; var b9Q=function(H,E,G,P,Q){return RM7[h[7]](this,2,H,E,G,P,Q)}; kc=function(H,E){this.request=H;this.cursor=E}; g.Lv=function(H){return(new L$Q).hK(H)}; cR7=function(H,E,G,P){E={J:"span",QN:P,V:[E]};var Q;P="ytp-swatch-color";if(H.G||H.L)P="ytp-swatch-color-white";G==="highres"?Q="8K":G==="hd2880"?Q="5K":G==="hd2160"?Q="4K":G.indexOf("hd")===0&&G!=="hd720"&&(Q="HD");Q&&(E.V.push(" "),E.V.push({J:"sup",Y:P,iJ:Q}));return E}; l_t=function(H,E,G){H.button==null?g.h3(Error("AdInfoHoverTextButton.button was expected but it was not created.")):(H.W&&g.aG(H.W.element,"ytp-ad-info-hover-text-short"),(E=E&&E.serviceEndpoint&&g.X(E.serviceEndpoint,vjn)||null)?(wpj(H,E,G),H.button.listen("click",function(){H.L&&!H.L.pP&&(H.L.show(),FoU(H))})):H.button.listen("click",function(){return FoU(H)}))}; lt=function(H,E){H.L!==E&&(H.L=E,H.W=!0)}; Ukl=function(H,E,G){var P,Q=E==null?void 0:(P=E.text)==null?void 0:P.simpleText;Q&&(G=nwl(H,G,Q,E==null?void 0:E.icon,E==null?void 0:E.secondaryIcon),E.navigationEndpoint&&G.listen("click",function(){H.S.n_("innertubeCommand",E.navigationEndpoint);H.hide()},H))}; v2=function(H,E){for(var G=0;GE.yz/1E3&&G= 2)){var e=window.sessionStorage.getItem("session_logininfo");if(e){var w;(w=E.contentWindow)==null||w.postMessage({loginInfo:e},P)}}}}catch(t){}}; K9=function(H){if(H.S.U("web_player_enable_featured_product_banner_promotion_text_on_desktop")){var E,G,P;return H.W.pP?null:(E=H.L)==null?void 0:(G=E.bannerData)==null?void 0:(P=G.itemData)==null?void 0:P.vendorName}var Q,e,w,t,k,W;return H.W.pP||H.T.pP||((Q=H.L)==null?0:(e=Q.bannerData)==null?0:(w=e.itemData)==null?0:w.affiliateDisclaimer)?null:(t=H.L)==null?void 0:(k=t.bannerData)==null?void 0:(W=k.itemData)==null?void 0:W.vendorName}; tZq=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v){var n=PaU(Q,m,u);if(n instanceof T)return n;var O=[],q=[];n=g.R(n);for(var N=n.next();!N.done;N=n.next()){var r=N.value;N=H;var B=Q[r.PD],l=r,S=E;r=e;var z=w,Pt=t,eu=k,QM=W,$Q=I,En=Gx(B);if(En instanceof T)N=En;else{var Dj={layoutId:B.adLayoutMetadata.layoutId,layoutType:B.adLayoutMetadata.layoutType,f_:"adapter"};l=ouQ(S,B,l,r);l instanceof T?N=l:(N=Object.assign({},Dj,DI,{w5:En,renderingContent:B.renderingContent,clientMetadata:new ZN(l),O2:xZ(Pt,N)(Dj), adLayoutLoggingData:B.adLayoutMetadata.adLayoutLoggingData}),N=(B=zc($Q,N,r,z.m8,Pt,eu,QM,void 0,!0))?B instanceof T?B:{layout:N,CS:B}:new T("Expecting associatedInPlayerSlot"))}if(N instanceof T)return N;O.push(N.layout);q.push(N.CS)}Q={layoutId:G.adLayoutMetadata.layoutId,layoutType:G.adLayoutMetadata.layoutType,f_:"core"};E=[new ic(Number(G.driftRecoveryMs)),new N9(m),new yw(u),new nn(US(E)),new q9(A),new Yj({})];v&&E.push(new o1({}));return{oo:Object.assign({},Q,P,{EF:O,w5:new Map,clientMetadata:new ZN(E), O2:xZ(t,H)(Q)}),TH:q}}; nX=function(H,E){var G=H.D.get(E);if(G)return G;G=H.levels.length;for(var P=0;P=E)return H.D.set(E,P),P;H.D.set(E,G-1);return G-1}; odt=function(H){Xu.call(this,H);this.L=new oO(this.api);g.d(this,this.L);g.as(this.api,this.L.element,4)}; Hj=function(H){this.W=H=H===void 0?QZ1:H;this.L=g.wH(this.W,function(){return new pQ})}; g.V1=function(H,E,G){H=H.L.openCursor(E.query,E.direction);return mh(H).then(function(P){return Qjt(P,G)})}; SC=function(H,E,G,P,Q){g.D.call(this,{J:"div",Y:"ytp-horizonchart"});this.C=E;this.sampleCount=G;this.D=P;this.T=Q;this.index=0;this.heightPx=-1;this.G=this.W=null;this.L=Math.round(H/G);this.element.style.width=this.L*this.sampleCount+"px";this.element.style.height=this.C+"em"}; Jx7=function(H){this.L=H;H.rX("/client_streamz/bg/ec",g.A3("en"),g.A3("mk"))}; nol=function(H){this.W=H===void 0?15:H;this.values=new Float64Array(176);this.L=new Float64Array(11);this.G=new Float64Array(16)}; Zx=function(H){this.value=H}; sZU=function(H,E){var G=null;H.G&&(G=(E?[H.G.defaultServiceEndpoint,H.G.defaultNavigationEndpoint]:[H.G.toggledServiceEndpoint]).filter(function(P){return P!=null})); return G||[]}; Css=function(H,E){var G=E.K_,P=E.video.fps,Q=E.video.qualityOrdinal-1,e=H.G;E=""+G+(P>49?"p60":P>32?"p48":"");G=wT(G,P,e);Q>0&&(G=Math.min(G,Q));if(!zW.has(E)&&lV().includes(E)){var w=G;G=LH();+G[E]>0&&(w=Math.min(+G[E],w));G[E]!==w&&(G[E]=w,g.Fj("yt-player-performance-cap",G,2592E3))}else if(zW.has(E)||e==null){a:{w=w===void 0?!0:w;P=lV().slice();if(w){if(P.includes(E))break a;P.push(E)}else{if(!P.includes(E))break a;P.splice(P.indexOf(E),1)}g.Fj("yt-player-performance-cap-active-set",P,2592E3)}Xh.set(E, G)}else zW.add(E),e==null||e.set(E,G);H.Fo.Mn()}; O7=function(){this.data=[];this.L=-1}; Hbv=function(H,E){var G=H.Bx,P=H.J7,Q=H.HA,e=H.gF,w=H.J7>H.JR-262?H.J7-(H.JR-262):0,t=H.window,k=H.Ux,W=H.Py,I=H.J7+258,A=t[P+Q-1],m=t[P+Q];H.HA>=H.g8&&(G>>=2);e>H.y8&&(e=H.y8);do{var u=E;if(t[u+Q]===m&&t[u+Q-1]===A&&t[u]===t[P]&&t[++u]===t[P+1]){P+=2;for(u++;t[++P]===t[++u]&&t[++P]===t[++u]&&t[++P]===t[++u]&&t[++P]===t[++u]&&t[++P]===t[++u]&&t[++P]===t[++u]&&t[++P]===t[++u]&&t[++P]===t[++u]&&PQ){H.eK=E;Q=u;if(u>=e)break;A=t[P+Q-1];m=t[P+Q]}}}while((E=W[E&k])>w&&--G!== 0);return Q<=H.y8?Q:H.y8}; io=function(H){if(H.G)if(g.Tn(H.api.getRootNode(),"ytp-grid-scrolling"),H.api.getPresentingPlayerType()===2||H.api.WY()||H.api.isMinimized())Vd(H,0);else{var E=g.F(H.api.getPlayerStateObject(),2);if(E)Vd(H,2,"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED");else if(H.isEnded&&!E){var G=yx(H)?1:0;H.isEnded=E;Vd(H,G)}else yx(H)?H.W!==2&&Vd(H,1):Vd(H,0);H.isEnded=E}}; XE=function(H){this.value=H}; okQ=function(H,E,G){H.G=!1;throw Error("The stream is broken @"+H.W+". Error: "+G+". With input:\n"+E);}; wy1=function(H){var E=H.getVideoData(),G=H.xt(),P=G.E2(),Q=H.K(),e=H.My(),w=e.J8*8/1024,t=e.bK/1024,k=e.Hx,W=e.Xh,I=e.playerState.state.toString(16),A=G.getCurrentTime().toFixed(2),m=Kk(G.AK(),",",3),u="";if(E.isDaiEnabled()){E.enableServerStitchedDai&&(u+=E.EX?"DS":"SS");u=E.mV()?u+"LIFA, ":u+"DAI, ";var v=e.j6;v&&(u+=v)}cy(E)&&!E.mV()&&(u+="LIFAE, ");ip(E)&&(u+="SABR, ");if(E.fetchType){switch(E.fetchType){case "onesie":v="o";break;case "gp":v="gp";break;default:v="gvi"}u+="vd:"+v+", "}(Q=Q.Eu)&& (u=Q.L?u+"wa, ":u+"w, ");u+="s:"+I+" t:"+A+" b:"+m+" ";G.isSeeking()&&(u+="S");G.isPaused()&&(u+="P");G.isEnded()&&(u+="E");H.isOrchestrationLeader()&&(u+=" L");(G=e.SK)&&(u+=" l:"+G.toFixed());G=e.currentTime;I=E.Vf;G&&G>I.start&&G>=5;n+=q}Q=n.substr(0,4)+" "+n.substr(4,4)+" "+n.substr(8,4)+" "+(n.substr(12,4)+" "+n.substr(16,4))}else Q="";w={video_id_and_cpn:String(E.videoId)+" / "+Q,codecs:"",dims_and_frames:"",bandwidth_kbps:w.toFixed(0)+" Kbps",buffer_health_seconds:k.toFixed(2)+ " s",date:""+(new Date).toString(),drm_style:W?"":"display:none",drm:W,debug_info:G,extra_debug_info:"",bandwidth_style:m,network_activity_style:m,network_activity_bytes:t.toFixed(0)+" KB",shader_info:A,shader_info_style:A?"":"display:none",playback_categories:""};t=P.clientWidth+"x"+P.clientHeight+(I>1?"*"+I.toFixed(2):"");k="-";e.totalVideoFrames&&(k=(e.droppedVideoFrames||0)+" dropped of "+e.totalVideoFrames);w.dims_and_frames=t+" / "+k;H=H.getVolume();t=Liu(E);var r;if((r=E.D)==null?0:r.audio.W)r= "VB";else{var B;r=((B=E.D)==null?0:B.audio.L)?"DRC":Math.round(H*t)+"%"}B=Math.round(H)+"% / "+r;r=E.yQ.toFixed(1);isFinite(Number(r))&&(B+=" (content loudness "+r+"dB)");w.volume=B;w.resolution=P.videoWidth+"x"+P.videoHeight;if(P=E.W){if(B=P.video)r=B.fps,r>1&&(w.resolution+="@"+r),(r=e.Xd)&&r.video&&(w.resolution+=" / "+r.video.width+"x"+r.video.height,r.video.fps>1&&(w.resolution+="@"+r.video.fps)),w.codecs=wKM(P),!E.D||P.audio&&P.video?P.Ft&&(w.codecs+=" / "+P.Ft+"A"):w.codecs+=" / "+wKM(E.D), B.L||B.primaries?(r=B.L||"unknown",r==="smpte2084"?r+=" (PQ)":r==="arib-std-b67"&&(r+=" (HLG)"),w.color=r+" / "+(B.primaries||"unknown"),w.color_style=""):w.color_style="display:none";if(P.debugInfo)for(w.fmt_debug_info="",P=g.R(P.debugInfo),B=P.next();!B.done;B=P.next())B=B.value,w.fmt_debug_info+=B.label+":"+B.text+" ";w.fmt_debug_info_style=w.fmt_debug_info&&w.fmt_debug_info.length>0?"":"display:none"}P=E.isLivePlayback;B=E.tT;w.live_mode_style=P||B?"":"display:none";w.live_latency_style=P?"": "display:none";if(B)w.live_mode="Post-Live"+(Bm(E)?" Manifestless":"");else if(P){B=e.lK;w.live_latency_secs=B.toFixed(2)+"s";P=Bm(E)?"Manifestless, ":"";E.IJ&&(P+="Windowed, ");r="Uncertain";if(B>=0&&B<120)if(E.latencyClass&&E.latencyClass!=="UNKNOWN")switch(E.latencyClass){case "NORMAL":r="Optimized for Normal Latency";break;case "LOW":r="Optimized for Low Latency";break;case "ULTRALOW":r="Optimized for Ultra Low Latency";break;default:r="Unknown Latency Setting"}else r=E.isLowLatencyLiveStream? "Optimized for Low Latency":"Optimized for Smooth Streaming";P+=r;(B=e.Ji)&&(P+=", seq "+B.sequence);w.live_mode=P}!e.isGapless||OV(E)&&e.wG||(w.playback_categories+="Gapless ");w.playback_categories_style=w.playback_categories?"":"display:none";w.bandwidth_samples=e.Lc;w.network_activity_samples=e.qK;w.live_latency_samples=e.QE;w.buffer_health_samples=e.wI;e=g.B$(E);if(E.cotn||e)w.cotn_and_local_media=(E.cotn?E.cotn:"null")+" / "+e;w.cotn_and_local_media_style=w.cotn_and_local_media?"":"display:none"; pV(E,"web_player_release_debug")?(w.release_name=h[46],w.release_style=""):w.release_style="display:none";w.debug_info&&u.length>0&&w.debug_info.length+u.length<=60?w.debug_info+=" "+u:w.extra_debug_info=u;w.extra_debug_info_style=w.extra_debug_info&&w.extra_debug_info.length>0?"":"display:none";return w}; qr=function(H,E){this.W=H;this.G=E===void 0?!1:E;this.L={}}; TW=function(H){g.D.call(this,{J:"div",QN:["ytp-player-content","ytp-iv-player-content"],V:[{J:"div",Y:"ytp-free-preview-countdown-timer",V:[{J:"span",iJ:"{{label}}"},{J:"span",Y:"ytp-free-preview-countdown-timer-separator",iJ:"\u2022"},{J:"span",iJ:"{{duration}}"}]}]});this.api=H;this.L=null;this.G=this.W=0;this.Z(this.api,"videodatachange",this.onVideoDataChange);this.api.createClientVe(this.element,this,191284)}; pm=function(H){return globalThis.TextEncoder?(new TextEncoder).encode(H):g.Vc(H)}; tYd=function(){return typeof Worker==="function"&&DBT()?!0:!1}; yf=function(H,E){this.L=H;this.W=E}; e_n=function(H){var E,G=(E=lQ(H))==null?void 0:E.info;return!G||H.z9(Math.min(G.D+go1,G.T))}; wcs=function(H){g.NL(GmM)("action_finished",H,void 0)}; fqn=function(H){Xu.call(this,H);var E=this;this.L=!1;H.addEventListener("settingsMenuInitialized",function(){lVn(E)}); H.addEventListener("highlightSettingsMenu",function(G){lVn(E);var P=E.menuItem;G==="menu_item_cinematic_lighting"&&(g.aG(P.element,"ytp-menuitem-highlighted"),g.aG(P.element,"ytp-menuitem-highlight-transition-enabled"),P.W.start())}); We(H,"updateCinematicSettings",function(G){E.updateCinematicSettings(G)})}; h_U=function(H,E){var G=Zi(E.clientMetadata,"metadata_type_ad_video_id"),P=Zi(E.clientMetadata,"metadata_type_legacy_info_card_vast_extension");G&&P&&H.SA.get().S.K().T$.add(G,{e0:P});(E=Zi(E.clientMetadata,"metadata_type_sodar_extension_data"))&&Kpd(H.zH.get(),E);rNU(H.d5.get(),!1)}; Eo=function(H){var E=H.SR.get();return RD(E,H.B)}; g.u3=function(H){try{return H.L?H.L.responseText:""}catch(E){return""}}; g.$x1=function(H,E){if(H.suggestion!==E){H.suggestion=E;var G=H.api.K(),P="hqdefault.jpg";E.QM("sddefault.jpg")&&(P="sddefault.jpg");g.So(H,E,P);g.L3(G)&&!H.api.U("web_player_log_click_before_generating_ve_conversion_params")&&(G=E.Sd(),P={},g.oT(H.api,"addEmbedsConversionTrackingParams",[P]),G=g.eB(G,P),H.updateValue("url",G));(E=(E=E.sessionData)&&E.itct)&&H.api.setTrackingParams(H.element,E)}}; jU=function(H){this.value=H}; t81=function(H,E,G){if(H.P$()===H.YH.length-1){var P,Q;xQ("Unexpected skip requested during the last sublayout",(P=H.AC())==null?void 0:P.Zu(),(Q=H.AC())==null?void 0:Q.Za(),{requestingSlot:E,requestingLayout:G})}}; ez=function(H){var E={};H=H.split("&");H=g.R(H);for(var G=H.next();!G.done;G=H.next())G=G.value.split("="),G.length===2&&(E[G[0]]=G[1]);return E}; oBl=function(H,E){g.z7.call(this);this.lJ=H;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.BL={};this.W=0;if(H=E.session_data)this.sessionData=LZ(H,"&");this.index=Math.max(0,Number(E.index)||0);this.loop=!!E.loop;this.startSeconds=Number(E.startSeconds)||0;this.title=E.playlist_title||"";this.description=E.playlist_description||"";this.author= E.author||E.playlist_author||"";E.video_id&&(this.items[this.index]=E);if(H=E.api)typeof H==="string"&&H.length===16?E.list="PL"+H:E.playlist=H;if(H=E.list)switch(E.listType){case "user_uploads":this.listId=new $D("UU","PLAYER_"+H);break;default:var G=E.playlist_length;G&&(this.length=Number(G)||0);this.listId=tT(H);if(H=E.video)this.items=H.slice(0),this.loaded=!0}else if(E.playlist){H=E.playlist.toString().split(",");this.index>0&&(this.items=[]);H=g.R(H);for(G=H.next();!G.done;G=H.next())(G=G.value)&& this.items.push({video_id:G});this.length=this.items.length;if(H=E.video)this.items=H.slice(0),this.loaded=!0}this.setShuffle(!!E.shuffle);if(H=E.suggestedQuality)this.quality=H;this.BL=fe(E,"playlist_");this.G=(E=E.thumbnail_ids)?E.split(","):[]}; k3l=function(H){BD.call(this,H,!1);var E=this;this.suggestedActions={};this.element.setAttribute("data-overlay-order","7");this.Z(this.S,"videodatachange",this.onVideoDataChange);this.Z(this.S,g.Ya("suggested_action_button_visible"),function(G){bRn(E,G.id);E.enabled=!0;E.JC()}); this.Z(this.S,g.XT("suggested_action_button_visible"),function(G){E.enabled=!1;E.JC();E.S.removeCueRange(G.id)}); this.Z(H,"presentingplayerstatechange",this.onStateChange)}; JtM=function(H){if(!H.L&&!H.G.isEmpty()){var E=H.G.remove();H.L=rtu(H,E)}}; Wan=function(H,E){var G;E&&(G=g.VS(H.D.L,function(Q){return Q.id===E})); if(!G&&(G=g.VS(H.D.L,function(Q){var e;return!((e=Q.CP)==null||!e.isDefault)}),E)){var P; H.g5("iaf",{id:E,sid:(P=G)==null?void 0:P.id})}return G}; IZ7=function(H,E,G,P,Q,e,w,t){w=w===void 0?!0:w;IR(G)&&Ac(Q,0,null)&&(!G_(H,"impression")&&t&&t(),H.fP("impression"));G_(H,"impression")&&(g.Sv(G,4)&&!g.Sv(G,2)&&H.Z5("pause"),xs(G,4)<0&&!(xs(G,2)<0)&&H.Z5("resume"),g.Sv(G,16)&&Q>=.5&&H.Z5("seek"),w&&g.Sv(G,2)&&Xx(H,G.state,E,P,Q,e))}; uPl=function(H,E){if(!H.T){E=MB(142,E);nC();var G;Fr.visibilityState?G="visibilitychange":Fr.mozVisibilityState?G="mozvisibilitychange":Fr.webkitVisibilityState&&(G="webkitvisibilitychange");G&&Xd(Fr,G,E,{capture:!1})&&(H.T=E)}}; Ips=function(H,E){if(E==null||E=="")return new H;E=JSON.parse(E);if(!Array.isArray(E))throw Error("dnarr");J8(E,32);return new H(E)}; ru=function(H){var E=Zi(H.clientMetadata,"metadata_type_ad_placement_config");H=Zi(H.clientMetadata,"metadata_type_media_sub_layout_index");return{adPlacementConfig:E,vx:H}}; nWQ=function(H,E){H.dataset.version=E}; SA=function(H,E){if(!H.W){if(H.G)try{return H.G(E)}catch(e){g.p5(e)}return""}try{H.HT.MW(H.L?"pot_cms":"pot_csms");var G={kF:!0,VE:!0,mY:E};H.U("html5_web_po_token_disable_caching")||(G.w0={Fs:E,Mp:!0,I8:!0});var P=H.W.Z6(G);H.HT.MW(H.L?"pot_cmf":"pot_csmf");if(H.L){var Q;(Q=H.D)==null||Q.resolve();H.D=null;H.C&&(H.C=!1,H.api.app.jR().J6(!1))}return P}catch(e){return g.p5(e),""}}; qQM=function(H,E,G){if(Ov(H.L,E))if(RM(H.L,E).D=G?"filled":"not_filled",G===null){H.cT.yp("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_EMPTY",E);G=g.R(H.W);for(var P=G.next();!P.done;P=G.next())P.value.i8(E);uM(H,E,!1)}else{H.cT.yp("ADS_CLIENT_EVENT_TYPE_SLOT_FULFILLED_NON_EMPTY",E,G);H.cT.yp("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",E,G);var Q,e=(Q=G.EF)!=null?Q:Zi(G.clientMetadata,"metadata_type_sub_layouts");if(e)for(Q=g.R(e),e=Q.next();!e.done;e=Q.next())H.cT.yp("ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED", E,e.value);Q=g.R(H.W);for(e=Q.next();!e.done;e=Q.next())e.value.GW(E);if(Ov(H.L,E))if(RM(H.L,E).T)uM(H,E,!1);else{H.cT.yp("ADS_CLIENT_EVENT_TYPE_SCHEDULE_LAYOUT_REQUESTED",E,G);try{P=H.L;if(!RM(P,E))throw new Xf("Unknown slotState for onLayout",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_STATE_IS_NULL");if(!P.HL.gW.get(E.slotType))throw new Xf("No LayoutRenderingAdapterFactory registered for slot of type: "+E.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_CANNOT_FIND_MATCHING_LAYOUT_RENDERING_ADAPTER_FACTORY"); if(G.layoutExitNormalTriggers.length==0&&G.layoutExitSkipTriggers.length==0&&G.layoutExitMuteTriggers.length==0&&G.layoutExitUserInputSubmittedTriggers.length==0&&G.layoutExitUserCancelledTriggers.length==0)throw new Xf("Layout has no exit triggers.",void 0,"ADS_CLIENT_ERROR_MESSAGE_EMPTY_LAYOUT_EXIT_TRIGGER");FD(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",G.layoutExitNormalTriggers);FD(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",G.layoutExitSkipTriggers);FD(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED", G.layoutExitMuteTriggers);FD(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",G.layoutExitUserInputSubmittedTriggers);FD(P,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",G.layoutExitUserCancelledTriggers)}catch(W){W instanceof Xf?H.f6(E,G,W,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):H.f6(E,G,new Xf("Unexpected error: "+W,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");uM(H,E,!0);return}RM(H.L,E).C=!0;try{var w=H.L,t=RM(w,E),k=w.HL.gW.get(E.slotType).get().build(w.D, w.W,E,G);k.init();t.layout=G;if(t.G)throw new Xf("Already had LayoutRenderingAdapter registered for slot",void 0,"ADS_CLIENT_ERROR_MESSAGE_BUILD_DUPLICATE_LAYOUT_RENDERING_ADAPTER");t.G=k;My(w,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_NORMAL",G.layoutExitNormalTriggers);My(w,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_SKIPPED",G.layoutExitSkipTriggers);My(w,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_MUTED",G.layoutExitMuteTriggers);My(w,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_INPUT_SUBMITTED",G.layoutExitUserInputSubmittedTriggers); My(w,t,"TRIGGER_CATEGORY_LAYOUT_EXIT_USER_CANCELLED",G.layoutExitUserCancelledTriggers)}catch(W){Ajq(H,E);W instanceof Xf?H.f6(E,G,W,"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED"):H.f6(E,G,new Xf("Unexpected error: "+W,void 0,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR"),"ADS_CLIENT_ERROR_TYPE_SCHEDULE_LAYOUT_FAILED");uM(H,E,!0);return}H.cT.yp("ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",E,G);P=g.R(H.W);for(w=P.next();!w.done;w=P.next())w.value.yM(E,G);Ajq(H,E);mxM(H,E)}else H=H.Da.get(),g.KU(H.S.K())|| ho(H.S.K())||g.vV(H.S.K())?H=!0:(xQ("Composite VOD on legacy path."),H=!1),H&&xQ("slot is unscheduled after been fulfilled.",E,G)}}; F4=function(H,E,G){if(!H.playerVars)return new Xf("No playerVars available in InstreamVideoAdRenderer.");var P,Q;if(H.elementId==null||H.playerVars==null||H.playerOverlay==null||((P=H.playerOverlay)==null?void 0:P.instreamAdPlayerOverlayRenderer)==null&&((Q=H.playerOverlay)==null?void 0:Q.playerOverlayLayoutRenderer)==null||H.pings==null||H.externalVideoId==null)return new Xf("Received invalid VOD InstreamVideoAdRenderer",{instreamVideoAdRenderer:H});P=W9(H.playerVars);Q=Number(P.length_seconds); isNaN(Q)&&(Q=0,xQ("Expected valid length seconds in player vars but got NaN"));if(G.uG(E.kind==="AD_PLACEMENT_KIND_START")){if(H.layoutId===void 0)return new Xf("Expected server generated layout ID in instreamVideoAdRenderer");E=H.layoutId}else E=H.elementId;return{layoutId:E,kQ:H,playerVars:P,DC:H.playerVars,Gp:Q}}; uot=function(H){switch(H.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}}; vkn=function(H,E,G){G=G===void 0?!1:G;E.video.qualityOrdinal>1080&&!H.hn&&(H.eR=36700160,H.s7=5242880,H.Yp=Math.max(4194304,H.Yp),H.hn=!0);E.video.qualityOrdinal>2160&&!H.xG&&(H.eR=104857600,H.Xo=13107200,H.xG=!0);g.hE(H.lJ.experiments,"html5_samsung_kant_limit_max_bitrate")!==0?E.isEncrypted()&&g.aa()&&g.aD("samsung")&&(g.aD("kant")||g.aD("muse"))&&(H.Xo=g.hE(H.lJ.experiments,"html5_samsung_kant_limit_max_bitrate")):E.isEncrypted()&&g.aa()&&g.aD("kant")&&(H.Xo=1310720);H.JJ!==0&&E.isEncrypted()&& (H.Xo=H.JJ);H.yn!==0&&E.isEncrypted()&&G&&(H.Xo=H.yn);E.Xo&&(H.iC=Math.max(H.Yi,Math.min(H.Yp,5*E.Xo)))}; jC=function(H){Xu.call(this,H);var E=this;this.D=this.G=!1;this.W=new g.Z0(H);g.d(this,this.W);this.L_="2x";this.speedmasterUserEdu=new Ti(H,this.L_);g.d(this,this.speedmasterUserEdu);g.as(this.api,this.speedmasterUserEdu.element,4);this.L=new g.DO(this.api.NZ().iE,!0,null,!1,!0);g.d(this,this.L);this.delay=new g.Wt(this.E7,500,this);g.d(this,this.delay);this.W.Z(H,"videodatachange",function(){Cl(E)},this); this.W.Z(H,"presentingplayerstatechange",function(){Cl(E)},this); this.W.Z(H,"autonavvisibility",function(){Cl(E)},this); this.api.Rs().subscribe("visibilitystatechange",function(){Cl(E)}); this.W.Z(H,"rootnodemousedown",function(G){E.B=G}); this.U("web_speedmaster_spacebar_control")&&(this.W.Z(H,"keyboardserviceglobalkeydown",function(G,P){E.p_=P;M8n(E,G,P.Au,!0)},this),this.W.Z(H,"keyboardserviceglobalkeyup",function(G){M8n(E,G,!1,!1)},this))}; Hx=function(H,E){if(WI(E.get(),"html5_ssap_pass_transition_reason"))switch(H){case 2:return"normal";case 4:case 6:case 7:return"error";case 5:return aNt(H),"abandoned";case 3:case 1:return aNt(H),"error";default:dA(H,"unexpected transition reason")}else switch(H){case 2:return"normal";case 4:return"error";case 5:case 3:case 1:case 6:case 7:return xQ("getExitReason: unexpected reason",void 0,void 0,{reason:H}),"error";default:dA(H,"unexpected transition reason")}}; Ejt=function(H){if(H.qz&&H.IA){var E=f2(H.b4,"od")==1,G=ZY().L,P=H.IA,Q=H.oM?H.oM.getName():"ns",e=H.JP,w=new g.P4(Nl(G),G.getHeight());G=H.ac();H={HM_:Q,JP:e,iWx:w,ac:G,OT:H.Fr.OT,LBR:E};if(E=P.W){E.Fk();Q=E.L_;e=Q.D.L;var t=w=null;Q.C!=null&&e&&(w=Q.G,w=new g.oG(w.left-e.left,w.top-e.top),t=new g.P4(e.right-e.left,e.bottom-e.top));Q=G?Math.max(Q.L,Q.T):Q.L;G={HM_:E.getName(),JP:w,iWx:t,ac:G,LBR:!1,OT:Q}}else G=null;G&&l4M(P,H,G)}}; fv=function(H,E){g.D.call(this,{J:"button",QN:["ytp-button","ytp-overflow-button"],j:{title:H.U("player_tooltip_data_title_killswitch")?"More":"","data-tooltip-title":"More","aria-haspopup":"true","aria-owns":E.element.id},V:[{J:"div",Y:"ytp-overflow-icon",V:[{J:"svg",j:{height:"100%",viewBox:"-5 -5 36 36",width:"100%"},V:[{J:"path",j:{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z",fill:"#fff"}}]}]}]}); var G=this;this.S=H;this.W6=E;this.visible=!1;H.createClientVe(this.element,this,16499);this.Z(H,"videoplayerreset",this.r5);this.Z(H,"appresize",this.r5);this.Z(H,"fullscreentoggled",this.r5);this.Z(H,"presentingplayerstatechange",this.r5);this.r5();M2(H,this.element,this);this.listen("click",function(){H.logClick(G.element);js(E,G.element,!1)}); this.Z(E.closeButton,"click",function(){G.focus()})}; Bm=function(H){return!(!H.L||!H.L.isManifestless)}; pv=function(H,E){for(var G=[],P=g.R(H.Q8.values()),Q=P.next();!Q.done;Q=P.next())Q=Q.value,Q.trigger.L===E.layoutId&&G.push(Q);G.length&&xY(H.L(),G)}; tc=function(H,E,G,P){g.NL(zr1)(void 0,H,E,G,P,void 0)}; UT=function(H,E){this.L=H;this.cipher=this.L.exports.AES128CTRCipher_create(E.byteOffset)}; Y8Q=function(H){return g.HC(dxT(),H)}; mxM=function(H,E){if(Ov(H.L,E)&&Wq(RM(H.L,E))&&Ws(H.L,E)&&!MI(H.L,E)){var G;H.cT.yp("ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",E,(G=Ws(H.L,E))!=null?G:void 0);H=RM(H.L,E);H.L!=="entered"&&Qs(H.slot,H.L,"enterLayoutForSlot");H.L="rendering";H.G.startRendering(H.layout)}}; vrv=function(H,E,G){var P=H.s7||H.app.jR().getPlayerState();T6(H,!0);H.playback.seekTo(E,G);H=H.app.jR();E=H.getPlayerState();P.isOrWillBePlaying()&&!E.isOrWillBePlaying()?H.playVideo():P.isPaused()&&!E.isPaused()&&H.pauseVideo()}; $pU=function(H){H.N.textContent=H.L.toFixed(2)+"x";var E=H.L>2&&H.S.U("enable_web_premium_varispeed");H.WF.classList.toggle("ytp-speedslider-premium-badge",E);H.WF.setAttribute("aria-label",E?"Premium":"")}; g.Hi=function(H){try{if(!H.L)return null;if("response"in H.L)return H.L.response;switch(H.E7){case "":case "text":return H.L.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in H.L)return H.L.mozResponseArrayBuffer}return null}catch(E){return null}}; gW=function(H,E,G,P,Q,e,w,t,k){e=e===void 0?G.schedule:e;var W=H.un,I=H.V$;H=H.Mta;var A=W!==void 0&&I!==void 0,m=P.getVideoData(),u,v=E.L.encryptedClientKey;E=A?E.iv:void 0;A=e;A=A===void 0?G.schedule:A;A=Cq(A,!0);Q=Q||!!z6()&&A>1572864;return{innertubeRequest:{xIF:H,gR:W,V$:I,encryptedClientKey:v,iv:E,BGw:!0,qc:!0,p7:"DecompressionStream"in window||!Q,FBR:G.experiments.xp("html5_use_jsonformatter_to_parse_player_response")},bd:AET({mZ:e,lJ:G,Fo:P,Ko:m.startSeconds*1E3}),onesieUstreamerConfig:w, VB:t,OW:Vw(m),reloadPlaybackParams:(u=m.v6)==null?void 0:u.reloadPlaybackParams,ia5:k}}; g.Pi=function(H,E,G,P){g.J.call(this);var Q=this;this.logger=new g.Pj("App");this.vE=this.mB=!1;this.gS={};this.d9=[];this.yl=!1;this.ph=null;this.intentionalPlayback=!1;this.Vz=!0;this.xA=!1;this.Er=this.Gm=this.jH=null;this.Og=!0;this.mediaElement=this.PT=null;this.uY=NaN;this.Jg=!1;this.rV=this.FH=this.xq=this.screenLayer=this.playlist=null;this.I6=[];this.XS=0;this.kV={UR:function(){return Q.XI}, qC5:function(){return Q.xq}}; if(!G)throw Error("b/179532961");this.bW=(E==null?void 0:E.args)||{};this.webPlayerContextConfig=G;E=this.bW;this.X=new k1(E,G,G.canaryState,P,this);g.d(this,this.X);Amw(this.X);G=rLn(this.X);this.X.z6()&&this.VD("h5vcc",G);this.X.experiments.xp("jspb_serialize_with_worker")&&Wlw();this.X.experiments.xp("gzip_gel_with_worker")&&eMl();this.X.W&&!Dxv&&(window.addEventListener(bE?"touchstart":"click",kyu,{capture:!0,passive:!0}),Dxv=!0);this.U("html5_onesie")&&(this.ZB=new WO(this.X),g.d(this,this.ZB)); this.Bo().L.A7(nkl)&&(this.mZ=new $1(htd(g.vV(this.X),this.X.hx,this.X.experiments),new to(this.X.experiments),void 0,function(){return void Q.hp()}),g.d(this,this.mZ)); this.D_=BY(Fz(this.X)&&!0,E.enablesizebutton);this.IT=BY(!1,E.player_wide);this.visibility=new Oo;g.d(this,this.visibility);this.U("web_log_theater_mode_visibility")&&this.ev(BY(!1,E.player_wide));this.mB=BY(!1,E.external_list);this.events=new g.Z0(this);g.d(this,this.events);this.U("start_client_gcf")&&($x(hu(),{xv:DF,e4:kXt()}),this.t9=hu().resolve(DF),$Dj(this.t9));this.XKp=new bA;g.d(this,this.XKp);this.UY=new yFt;G=new apU;this.cF=new g.NK(this,G);g.d(this,this.cF);this.template=new aVq(this); g.d(this,this.template);this.appState=1;this.CM=bTn(this);g.d(this,G);G={};this.M$=(G.internalvideodatachange=this.Tv,G.playbackready=this.Ijm,G.playbackstarted=this.Oa_,G.statechange=this.z0Z,G);this.I$=new qC(this.cF);this.hT=Hzd(this);G=this.X.C;!1!==G&&this.VD("badps",{hbp:G,hostname:window.location.hostname,ps:this.X.playerStyle});this.HT=new Yf(this.X,this.hT);this.cF.publish("csiinitialized");(this.webPlayerContextConfig.wasmModuleUrl||Cg(this.hT))&&n4w(this);G=10;g.vV(this.X)&&(G=3);cw(this.X)&& (G=g.hE(this.X.experiments,"tvhtml5_unplugged_preload_cache_size"));this.XI=new g.Ee(this.cF,G);G=r_M(this);this.XI.BP(G);EF7(this);G={};this.b0=(G.airplayactivechange=this.ZS$,G.airplayavailabilitychange=this.fiJ,G.beginseeking=this.yTp,G.sabrCaptionsDataLoaded=this.wo5,G.endseeking=this.hnR,G.internalAbandon=this.MyJ,G.internalaudioformatchange=this.vq_,G.internalvideodatachange=this.i6o,G.internalvideoformatchange=this.D4m,G.liveviewshift=this.NVa,G.playbackstalledatstart=this.WjF,G.progresssync= this.Rnm,G.onAbnormalityDetected=this.BVR,G.onSnackbarMessage=this.gW_,G.onLoadProgress=this.KVN,G.SEEK_COMPLETE=this.FjN,G.SEEK_TO=this.LjR,G.onVideoProgress=this.JCo,G.onLoadedMetadata=this.kUm,G.onAutoplayBlocked=this.jMo,G.onPlaybackPauseAtStart=this.VyR,G.playbackready=this.Xo$,G.statechange=this.C3,G.newelementrequired=this.oH,G.heartbeatparams=this.xVm,G.videoelementevent=this.GH_,G.drmoutputrestricted=this.nqw,G.signatureexpired=this.pYF,G.nonfatalerror=this.aiw,G.reloadplayer=this.qTx,G); this.l3=new g.Z0(this);g.d(this,this.l3);this.b3=new AA;g.d(this,this.b3);this.SF=this.Q5=-1;this.Ic=new g.Wt(this.template.resize,16,this.template);g.d(this,this.Ic);this.ze=new MD(this.cF,this.X,this.qZ(),this);this.D1=new QO(this);g.d(this,this.D1);this.Uo=new jQ(this);g.d(this,this.Uo);EDM(this.X.L.c);this.events.Z(this.cF,g.Ya("appapi"),this.tq_);this.events.Z(this.cF,g.XT("appapi"),this.S9$);this.events.Z(this.cF,g.Ya("appprogressboundary"),this.EWF);this.events.Z(this.cF,g.XT("applooprange"), this.er);this.events.Z(this.cF,"presentingplayerstatechange",this.kx);this.events.Z(this.cF,"resize",this.rCx);this.template.mx(km(document,H));this.events.Z(this.cF,"offlineslatestatechange",this.oqa);this.events.Z(this.cF,"sabrCaptionsTrackChanged",this.x4N);this.events.Z(this.cF,"sabrCaptionsBufferedRangesUpdated",this.hBx);this.hT.S.K().v6&&Wn(this.hT,"offline");this.X.BF&&g.IK("ux",g.z1);H=g.hE(this.X.experiments,"html5_defer_fetch_att_ms");this.Np=new g.Wt(this.pLN,H,this);g.d(this,this.Np); this.pS().zU()&&(g.GH()&&this.pS().fW.push("mdx"),Fl(this));this.HT.tick("fs");Z3d(this);this.X.BF&&Wn(this.hT,"ux",!0);g.L3(this.hT.S.K())&&Wn(this.hT,"embed");this.U("web_player_sentinel_is_uniplayer")||g.p5(new g.LN("Player experiment flags missing","web_player_sentinel_is_uniplayer"));H=this.U("web_player_sentinel_yt_experiments_sync");G=g.Xj("web_player_sentinel_yt_experiments_sync");H!==G&&g.p5(new g.LN("b/195699950",{yt:H,player:G}));this.DR=ajq(this);if(H=g.hE(this.X.experiments,"html5_block_pip_safari_delay"))this.YY= new g.Wt(this.JX,H,this),g.d(this,this.YY);tY=this.X.V8;this.cF.publish("applicationInitialized")}; MrT=function(H,E,G,P){G=G===void 0?{}:G;var Q={};g.S5(Q,{opt_adElement:void 0,opt_fullscreen:void 0},G);var e=H.V5(E,G);G=e?e.SW:H.xr();if(Q.opt_bounds)return G.L(hi("ol",P));if(P!==void 0)if(iru(P)!==void 0)if(TQ)H=hi("ue",P);else if(VPu(H),Qj=="i")H=hi("i",P),H["if"]=0;else if(E=H.V5(E,Q)){b:{Qj=="i"&&(E.Kd=!0);e=Q.opt_fullscreen;e!==void 0&&Ug(E,!!e);var w;if(e=!ZY().W)(e=zG(g.u0(),"CrKey")&&!(zG(g.u0(),"CrKey")&&zG(g.u0(),"SmartSpeaker"))||zG(g.u0(),"PlayStation")||zG(g.u0(),"Roku")||CEq()||zG(g.u0(), "Xbox"))||(e=g.u0(),e=zG(e,"AppleTV")||zG(e,"Apple TV")||zG(e,"CFNetwork")||zG(e,"tvOS")),e||(e=g.u0(),e=zG(e,"sdk_google_atv_x86")||zG(e,"Android TV")),e=!e;e&&(nC(),e=Kq(Fr)===0);if(w=e){switch(E.Yw()){case 1:NAQ(E,"pv");break;case 2:H.R0(E)}l6s("pv")}e=P.toLowerCase();if(w=!w)w=f2(X9().b4,"ssmol")&&e==="loaded"?!1:g.Xa(OGU,e);if(w&&E.OB==0){Qj!="i"&&(gx.done=!1);w=Q!==void 0?Q.opt_nativeTime:void 0;c_=w=typeof w==="number"?w:Yv();E.qz=!0;var t=ou();E.OB=1;E.GA={};E.GA.start=!1;E.GA.firstquartile= !1;E.GA.midpoint=!1;E.GA.thirdquartile=!1;E.GA.complete=!1;E.GA.resume=!1;E.GA.pause=!1;E.GA.skip=!1;E.GA.mute=!1;E.GA.unmute=!1;E.GA.viewable_impression=!1;E.GA.measurable_impression=!1;E.GA.fully_viewable_audible_half_duration_impression=!1;E.GA.fullscreen=!1;E.GA.exitfullscreen=!1;E.FA=0;t||(E.Tc().N=w);Ml(gx,[E],!t)}(w=E.Sj[e])&&xF(E.eA,w);f2(X9().b4,"fmd")||g.Xa(KaQ,e)&&E.Zx&&E.Zx.W(E,null);switch(E.Yw()){case 1:var k=ob(e)?H.B.custom_metric_viewable:H.B[e];break;case 2:k=H.N[e]}if(k&&(P=k.call(H, E,Q,P),f2(X9().b4,"fmd")&&g.Xa(KaQ,e)&&E.Zx&&E.Zx.W(E,null),P!==void 0)){Q=hi(void 0,e);g.S5(Q,P);P=Q;break b}P=void 0}E.OB==3&&H.Xi(E);H=P}else H=hi("nf",P);else H=void 0;else TQ?H=hi("ue"):e?(H=hi(),g.S5(H,l5u(e,!0,!1,!1))):H=hi("nf");return typeof H==="string"?G.L():G.L(H)}; jZM=function(H,E){if(!H.Iu())if(g.F(E.state,2)||g.F(E.state,512)){if(H.C="paused",g.Sv(E,2)||g.Sv(E,512))g.Sv(E,2)&&(H.L.previouslyEnded=!0),H.G&&(PJ(H),IO(H).send(),H.D=NaN)}else if(g.F(E.state,8)){H.C="playing";var G=H.G&&isNaN(H.T)?Ck(H):NaN;if(!isNaN(G)&&(xs(E,64)<0||xs(E,512)<0)){var P=RG(H,!1);P.B=G;P.send()}g.Sv(E,16)&&E.state.seekSource===58&&(H.L.previouslyEnded=!0)}else H.C="paused"}; Cun=function(H){var E=H.sampleInterval,G=H.maxBufferSize;if(E>0&&G>0&&!H.W&&H.G<1E7)try{H.D=H.T({sampleInterval:E,maxBufferSize:G});var P;(P=H.D)==null||P.addEventListener("samplebufferfull",function(){return g.L(function(Q){if(Q.L==1)return g.U(Q,H.stop(),2);Cun(H);g.P2(Q)})})}catch(Q){H.W=CSM(Q.message)}}; UH=function(H){H.G.isFinal=!0;H.flush();H.G.isFinal=!1}; T0u=function(H,E,G,P){var Q=Jg(H.W.get(),"SLOT_TYPE_PLAYER_UNDERLAY");G=new yr(H.L,G);var e=[new r_(H.L,Q)];H=[new BQ(H.L,E),new Y7(H.L,Q)];return{slotId:Q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,slotEntryTrigger:G,slotFulfillmentTriggers:e,slotExpirationTriggers:H,f_:"core",clientMetadata:new ZN([new Cr(P({slotId:Q,slotType:"SLOT_TYPE_PLAYER_UNDERLAY",slotPhysicalPosition:1,f_:"core",slotEntryTrigger:G,slotFulfillmentTriggers:e,slotExpirationTriggers:H}))])}}; l7l=function(H,E){var G;return H.L.equals(E)&&(!H.T.L||!H.L.isLocked()||((G=H.nextVideo)==null?void 0:G.info.id)===H.T.L)}; g.tr=function(H,E,G){g.J.call(this);this.L=null;this.D=!1;this.C=H;this.T=G;this.W=E||window;this.G=(0,g.co)(this.Lr,this)}; o71=function(H,E,G,P,Q){g.J.call(this);var e=this,w=sU(function(){return new o9(e.Da)}); g.d(this,w);var t=sU(function(){return new ey(w,e.Da)}); g.d(this,t);var k=sU(function(){return new wx}); g.d(this,k);var W=sU(function(){return new h8(H)}); g.d(this,W);var I=sU(function(){return new $v(w,t,e.Da)}); g.d(this,I);var A=sU(function(){return new t8}); g.d(this,A);this.Fg=sU(function(){return new tq(E)}); g.d(this,this.Fg);this.ST=sU(function(){return new kv(Q)}); g.d(this,this.ST);this.l4=sU(function(){return new WY(E)}); g.d(this,this.l4);this.Dj=sU(function(){return new I9(E)}); g.d(this,this.Dj);this.JG=sU(function(){return new A8(E)}); g.d(this,this.JG);this.hG=sU(function(){return new mY(E)}); g.d(this,this.hG);this.Da=sU(function(){return new uG(E)}); g.d(this,this.Da);var m=sU(function(){return new k$(P)}); g.d(this,m);var u=sU(function(){return new Tq(e.Da)}); g.d(this,u);var v=sU(function(){return new vY(w,I,t,e.Da,u,null,null,e.dG,e.Iw)}); g.d(this,v);this.SA=sU(function(){return new t9(E)}); g.d(this,this.SA);this.OZ=sU(function(){return new u2}); g.d(this,this.OZ);this.C_=sU(function(){return new Mq(E,A,e.Da)}); g.d(this,this.C_);var n=dx({C_:this.C_,Da:this.Da,VF:u}),O=n.context,q=n.Cm;this.cT=n.cT;this.Yq=sU(function(){return new Rh(E,e.Da,e.SR)}); this.d5=sU(function(){return new DY(E,e.C_,e.Da)}); g.d(this,this.d5);this.q4=sU(function(){return new Wa}); g.d(this,this.q4);this.im=sU(function(){return new nu(e.d5,E,e.Da)}); g.d(this,this.im);this.SR=sU(function(){return new a9(E,k,e.im,e.C_,e.cT,e.Da,q)}); g.d(this,this.SR);this.zH=sU(function(){return new IX(e.Da)}); g.d(this,this.zH);this.Av=new Aq(Jf,mf,function(r,B,l,S){return uV(t.get(),r,B,l,S)},W,I,t,u,this.Da,this.C_); g.d(this,this.Av);this.u1=new sC(W,v,G,this.Da,H,this.C_,this.d5,this.l4);g.d(this,this.u1);var N=new OU(E,this.u1,this.d5,this.C_,this.Yq);this.m1=sU(function(){return N}); this.oD=N;this.dG=new gR(W,I,this.m1,this.Yq,this.d5,this.Da,this.SR);g.d(this,this.dG);this.oP=new Ku(W,I,this.Dj,this.m1,O);g.d(this,this.oP);this.l1=new jy(this.Da,W,I,v,this.C_,this.oP,G,this.JG);g.d(this,this.l1);this.FR=sU(function(){return new va(m,t,u,e.Da,e.SR,e.d5)}); g.d(this,this.FR);this.p6=sU(function(){return new Mg}); g.d(this,this.p6);this.kz=new d0(H,this.Fg,this.Da);g.d(this,this.kz);this.vT=new DM(H);g.d(this,this.vT);this.W9=new fP(H);g.d(this,this.W9);this.md=new n_(H,this.m1,O);g.d(this,this.md);this.cY=new aX(H,this.Dj,this.d5,this.C_,O);g.d(this,this.cY);this.DO=new R0(H);g.d(this,this.DO);this.c$=new Os(H);g.d(this,this.c$);this.lN=new no(H);g.d(this,this.lN);this.Ge=sU(function(){return new K_(E)}); g.d(this,this.Ge);this.ET=new jO(H);g.d(this,this.ET);this.Iw=new lZ(H,this.Yq,this.d5,this.SR,this.m1,this.dG);g.d(this,this.Iw);this.RM=sU(function(){return new ca}); g.d(this,this.RM);this.YM=sU(function(){return new Ng(e.d5)}); g.d(this,this.YM);this.w7=sU(function(){return new ys(e.l1,W,w)}); g.d(this,this.w7);this.H$=sU(function(){return new bV(e.Da,e.SR,e.DO,e.im)}); g.d(this,this.H$);this.Ml=sU(function(){return new dUl(e.Fg,e.d5,e.SR,k,e.im,e.W9,e.lN,e.ST,e.Da,G)}); g.d(this,this.Ml);this.rU=sU(function(){return new iV(H,e.ET,e.DO,e.SR,e.im,e.zH,e.JG,e.C_,e.d5,e.q4,e.Dj,e.l4,e.hG,e.ST,e.SA,e.Da,e.Ge,O,q)}); g.d(this,this.rU);this.Bu=new jo(H,this.OZ,w);g.d(this,this.Bu);this.HL={Xz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l1],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.dG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Av],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.u1],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),TV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.FR],["SLOT_TYPE_FORECASTING",this.p6],["SLOT_TYPE_IN_PLAYER",this.p6], ["SLOT_TYPE_PLAYER_BYTES",this.p6]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.kz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vT],["TRIGGER_TYPE_SLOT_ID_ENTERED",this.vT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vT], ["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vT],["TRIGGER_TYPE_CLOSE_REQUESTED",this.W9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.md],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.cY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.cY],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.cY],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.DO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID",this.md],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.c$],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER", this.lN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ET],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Iw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Iw],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Iw],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Iw],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Iw]]),qA:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.RM],["SLOT_TYPE_FORECASTING",this.RM],["SLOT_TYPE_IN_PLAYER",this.RM],["SLOT_TYPE_PLAYER_BYTES",this.YM]]), gW:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.w7],["SLOT_TYPE_FORECASTING",this.H$],["SLOT_TYPE_IN_PLAYER",this.Ml],["SLOT_TYPE_PLAYER_BYTES",this.rU]])};this.listeners=[k.get()];this.zw={l1:this.l1,aF:this.Da.get(),vF:this.ST.get(),w4:this.d5.get(),u1:this.u1,fG:w.get(),T5:this.OZ.get(),oG:this.kz,gX:k.get(),vY:this.C_.get()}}; UJT=function(H){var E=H.L,G=H.api.getCurrentTime(),P=H.api.NZ().getPlayerSize(),Q=nX(E,P.width);Q=JuU(E,Q,G);H.update({timestamp:g.Cc(G)});Q!==H.frameIndex&&(H.frameIndex=Q,z5Q(E,Q,P.width),E=TBU(E,Q,P.width),VIM(H.W,E,P.width,P.height))}; lH1=function(H,E,G){return E=E.filter(function(P){if(P.video.qualityOrdinal<=H.gt)return!0;G[P.itag]="maxquality";return!1})}; ZTu=function(H,E,G,P,Q,e){P.index&&(Q.playlistIndex=String(Number(P.index)+1));Q.videoId=G?G:"";E&&e.xp("embeds_enable_per_video_embed_config")?Q.serializedThirdPartyEmbedConfig=E:H&&(Q.serializedThirdPartyEmbedConfig=H)}; se=function(H,E){var G=H.jR();return E===H.qZ()&&H.Xm(E)&&H.Xm(G)?G:E}; JPq=function(H,E,G){return E.Pp(G).then(function(){return jD(new XqQ(E,E.G))},function(P){P instanceof Error&&g.p5(P); var Q=H5('video/mp4; codecs="avc1.42001E, mp4a.40.2"'),e=pg('audio/mp4; codecs="mp4a.40.2"'),w=Q||e,t=E.isLivePlayback&&!g.tiv(H.T,!0);P="fmt.noneavailable";t?P="html5.unsupportedlive":w||(P="html5.missingapi");w=t||!w?2:1;Q={buildRej:"1",a:E.Ac(),d:!!E.iH,drm:E.Gq(),f18:E.Ta.indexOf("itag=18")>=0,c18:Q};E.L&&(E.Gq()?(Q.f142=!!E.L.L["142"],Q.f149=!!E.L.L["149"],Q.f279=!!E.L.L["279"]):(Q.f133=!!E.L.L["133"],Q.f140=!!E.L.L["140"],Q.f242=!!E.L.L["242"]),Q.cAAC=e,Q.cAVC=pg('video/mp4; codecs="avc1.42001E"'), Q.cVP9=pg('video/webm; codecs="vp9"'));E.T&&(Q.drmsys=E.T.keySystem,e=0,E.T.L&&(e=Object.keys(E.T.L).length),Q.drmst=e);return new g.q$(P,Q,w)})}; E5u=function(H,E,G){var P=this;this.policy=H;this.L=E;this.E7=G;this.D=this.W=0;this.BY=null;this.p_=new Set;this.L_=[];this.indexRange=this.initRange=null;this.N=new Kd;this.WF=this.Jm=!1;this.kV={hh$:function(){return P.G}, GVZ:function(){return P.chunkSize}, RTo:function(){return P.B}, sfp:function(){return P.C}}; (E=Qyu(this))?(this.chunkSize=E.csz,this.G=Math.floor(E.clen/E.csz),this.B=E.ck,this.C=E.civ):(this.chunkSize=H.K8,this.G=0,this.B=g.qA(16),this.C=g.qA(16));this.T=new Uint8Array(this.chunkSize);this.B&&this.C&&(this.crypto=new cjU(this.B,this.C))}; Jc7=function(H,E,G){if(Ov(H.L,E)&&Wq(RM(H.L,E))){var P=Ws(H.L,E);if(P&&MI(H.L,E))mCT(H,E,P,G?"error":"abandoned");else{H.cT.Xu("ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",E);try{var Q=RM(H.L,E);if(!Q)throw new T("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");Q.L!=="enter_requested"&&Q.L!=="entered"&&Q.L!=="rendering"&&Qs(Q.slot,Q.L,"exitSlot");Q.L="exit_requested";if(Q.W===void 0)throw Q.L="scheduled",new T("Cannot exit slot because adapter is not defined", void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");Q.W.bI()}catch(e){e instanceof T&&e.NS?(H.cT.zy("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",e.NS,E),xQ(e,E,void 0,void 0,e.Kv)):(H.cT.zy("ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",E),xQ(e,E))}}}}; g.Yt=function(H){var E,G,P,Q;return(g.dS(H)?(E=H.Jm)==null?void 0:(G=E.cards)==null?void 0:G.cardCollectionRenderer:(P=H.playerResponse)==null?void 0:(Q=P.cards)==null?void 0:Q.cardCollectionRenderer)||null}; kjq=function(H){if(!H.L){g.MQ(H.info.uJ.info)||H.info.uJ.info.wV();if(g.MQ(H.info.uJ.info))var E=g.oln(g.h_(H));else{E=new A_(g.h_(H));var G=E.pos;E.pos=0;var P=null,Q=null;if(mT(E,[408125543,307544935]))for(var e=E.pos+dH(E,!0);E.pos>>0,Js=Number(H>>BigInt(32)&BigInt(4294967295));else{var E=+(H[0]==="-");Js=RN=0;for(var G=H.length,P=0+E,Q=(G-E)%6+E;Q<=G;P=Q,Q+=6)P=Number(H.slice(P,Q)),Js*=1E6,RN=RN*1E6+P,RN>=4294967296&&(Js+=Math.trunc(RN/4294967296),Js>>>=0,RN>>>=0);E&&(E=g.R(qm(RN,Js)),H=E.next().value,E=E.next().value,RN=H,Js=E)}}; K61=function(H){return Ct(H,1,1)}; THj=function(H,E,G){var P=xN;return RI(X9().L.L,function(){try{if(P.Zj&&P.Zj.L){var Q=P.Zj.start(H.toString(),3);var e=E();P.Zj.end(Q)}else e=E()}catch(t){var w=P.a6;try{W3t(Q),w=P.W(H,new Ji(gP(t)),void 0,G)}catch(k){P.RT(217,k)}if(!w)throw t;}return e})()}; JL=function(H){return bGs[H]||"LATENCY_ACTION_UNKNOWN"}; II7=function(H,E,G){if(!H.D){if(E){H.tooltipRenderer=E;E=H.tooltipRenderer.text;var P=!1,Q;(E==null?0:(Q=E.runs)==null?0:Q.length)&&E.runs[0].text&&(H.update({title:E.runs[0].text.toString()}),P=!0);g.Jx(H.title,P);E=H.tooltipRenderer.detailsText;Q=!1;var e;if((E==null?0:(e=E.runs)==null?0:e.length)&&E.runs[0].text){P=E.runs[0].text.toString();e=P.indexOf("$TARGET_ICON");if(e>-1)if(H.tooltipRenderer.targetId){E=[];P=P.split("$TARGET_ICON");var w=new g.vN({J:"span",Y:"ytp-promotooltip-details-icon", V:[iGM[H.tooltipRenderer.targetId]]});g.d(H,w);for(var t=[],k=g.R(P),W=k.next();!W.done;W=k.next())W=new g.vN({J:"span",Y:"ytp-promotooltip-details-component",iJ:W.value}),g.d(H,W),t.push(W);P.length===2?(E.push(t[0].element),E.push(w.element),E.push(t[1].element)):P.length===1&&(e===0?(E.push(w.element),E.push(t[0].element)):(E.push(t[0].element),E.push(w.element)));e=E.length?E:null}else e=null;else e=P;if(e){if(typeof e!=="string")for(g.NG(H.details),Q=g.R(e),e=Q.next();!e.done;e=Q.next())H.details.appendChild(e.value); else H.update({details:e});Q=!0}}g.Jx(H.details,Q);Q=H.tooltipRenderer.acceptButton;e=!1;var I,A,m;((I=g.X(Q,g.rI))==null?0:(A=I.text)==null?0:(m=A.runs)==null?0:m.length)&&g.X(Q,g.rI).text.runs[0].text&&(H.update({acceptButtonText:g.X(Q,g.rI).text.runs[0].text.toString()}),e=!0);g.Jx(H.acceptButton,e);I=H.tooltipRenderer.dismissButton;A=!1;var u,v,n;((u=g.X(I,g.rI))==null?0:(v=u.text)==null?0:(n=v.runs)==null?0:n.length)&&g.X(I,g.rI).text.runs[0].text&&(H.update({dismissButtonText:g.X(I,g.rI).text.runs[0].text.toString()}), A=!0);g.Jx(H.dismissButton,A)}G&&(H.sourceElement=G);H.L=DHw(H);H.T=!1;H.S.K().U("web_player_hide_nitrate_promo_tooltip")||H.BT(!0);jt(H);H.pP&&!H.N&&(H.N=!0,H.kV.i_(0));H.W&&H.S.logVisibility(H.element,H.pP)}}; q6U=function(H){return{u0:hU(H,1),items:ue(H,2,NPQ),qO:hU(H,3)}}; vB=function(H,E){this.triggeringSlotId=E;this.triggerType="TRIGGER_TYPE_SLOT_ID_UNSCHEDULED";this.triggerId=H(this.triggerType)}; h0=function(){return{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{"clip-rule":"evenodd",d:"M2 12C2 6.48 6.48 2 12 2C17.52 2 22 6.48 22 12C22 17.52 17.52 22 12 22C6.48 22 2 17.52 2 12ZM13 16V18H11V16H13ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM8 10C8 7.79 9.79 6 12 6C14.21 6 16 7.79 16 10C16 11.28 15.21 11.97 14.44 12.64C13.71 13.28 13 13.90 13 15H11C11 13.17 11.94 12.45 12.77 11.82C13.42 11.32 14 10.87 14 10C14 8.9 13.1 8 12 8C10.9 8 10 8.9 10 10H8Z", fill:"white","fill-rule":"evenodd"}}]}}; LL=function(H,E,G){H.playback.ub(E,G)}; g.R_q=function(H){var E=H.creation;H=H.expiration;return!!H&&Hg.Gl()}; VUv=function(H){function E(P){return H.next(P)} function G(P){return H.throw(P)} return new Promise(function(P,Q){function e(w){w.done?P(w.value):Promise.resolve(w.value).then(E,G).then(e,Q)} e(H.next())})}; oY=function(H,E,G){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(G===void 0?0:G)&&Symbol.for&&H?Symbol.for(H):H!=null?Symbol(H):Symbol():E}; y11=function(){try{var H=window.navigator;if(H.getAutoplayPolicy&&typeof H.getAutoplayPolicy==="function"){var E=document.getElementsByClassName(g.JN.dnx);var G=E.length>0&&E[0]?H.getAutoplayPolicy(E[0]):H.getAutoplayPolicy("mediaelement");if(JjQ[G])return JjQ[G]}}catch(P){}return"AUTOPLAY_BROWSER_POLICY_UNSPECIFIED"}; rjM=function(H){return g.fF(H.info.kp,function(E){return E.type===3})}; Qq=function(H,E){return E?"&"+H+"="+encodeURIComponent(E):""}; Bh1=function(H){for(var E=[],G=[],P=g.R(H.W),Q=P.next();!Q.done;Q=P.next())Q=Q.value,Q.bitrate<=H.D?E.push(Q):G.push(Q);E.sort(function(e,w){return w.bitrate-e.bitrate}); G.sort(function(e,w){return e.bitrate-w.bitrate}); H.W=E.concat(G)}; g.KR=function(H){var E;return H.To||((E=H.suggestions)==null?void 0:E[0])||null}; a4M=function(H){var E;(E=H.jT)==null||E.stop();H.C.hide();H.T.hide();jR(H)}; Gh=function(H,E){var G=Error.call(this);this.message=G.message;"stack"in G&&(this.stack=G.stack);this.index=H;this.objectStore=E;Object.setPrototypeOf(this,Gh.prototype)}; Y6Q=function(H,E){H=uEn(H.L,function(P){return P.index.isLoaded()}); if(!H)return NaN;H=H.index;var G=H.Is(E);return H.getStartTime(G)===E?E:G0)){t.bJ(5);break}Q.FU=1E3*Math.pow(2,P-1)+Math.random()*1E3;return g.U(t,new Promise(function(k){return function(W){g.GQ(0,function(){W(void 0)},k.FU)}}(Q)),5); case 5:return g.EY(t,7),g.U(t,qE(H,E),9);case 9:return e=t.W,t.return(T6j(e));case 7:G=w=g.vo(t),w instanceof Error&&g.p5(w);case 8:P++;Q={FU:void 0};t.bJ(2);break;case 4:throw G;}})}; j7=function(H){var E=H.data.getUint8(H.offset+H.L);H.L+=1;return E}; AYU=function(H){if(H.L.length===0){var E=new i_;H.L.push(E);g.d(H,E);E.mx(H.au,0)}for(;H.L.length>1;)H.L.pop().dispose();qb(H.L[0],"100%");H.L[0].startTime=0;H.L[0].title=""}; f7U=function(H,E,G){var P=E.Pr;E.Pr=G;TV(H,E)&&(G=H.app.jR(),P.ER===H.G&&WS(H),G.removeCueRange(P.ER),G.addCueRange(E.Pr.ER))}; yr1=function(H,E){var G=!(!H.m&&!H.M),P=!(!H.mac3&&!H.MAC3),Q=!(!H.meac3&&!H.MEAC3);H=!(!H.i&&!H.I);E.b8=H;return G||P||Q||H}; F1n=function(H,E){tb(H,1,E.defaultPolicy);tb(H,2,E.smooth);tb(H,3,E.visibility);tb(H,4,E.Gr);tb(H,5,E.performance);tb(H,6,E.speed)}; mFl=function(H,E,G){bVT([{settingItemId:E,settingOptionValue:G}]);bk(H.Km(),function(P){CH1(P,E,G)})}; v$1=function(H){var E=C2j();E&&(typeof H==="number"&&(H=[H]),g.D9(H,function(G){E.unsubscribeByKey(G);delete eo[G]}))}; z_w=function(H,E,G){G=G===void 0?0:G;var P,Q;return g.L(function(e){if(e.L==1)return P=[],P.push(E.load()),G>0&&P.push(QH1(G)),g.U(e,Promise.race(P),2);Q=ywv(H,E);return e.return(Q)})}; V8v=function(H,E){mlT(H);for(var G=E.links||E.shareTargets,P=0,Q={},e=0;e0&&!S&&!B?(r.length===2&&(r=["noreferrer"]),g.Wd(u,n,m,r[0]),u=W7u()):(O=N.join(","),x3()&&u.navigator&&u.navigator.standalone&&m&&m!="_self"?(O=g.pu("A"),g.HQ(O,n),O.target=m,q&&(O.rel="noreferrer"),((v=v.attributionsrc)||v==="")&&O.setAttribute("attributionsrc",v),v=document.createEvent("MouseEvent"), v.initMouseEvent("click",!0,!0,u,1),O.dispatchEvent(v),u=W7u()):q?(u=g.Wd(u,"",m,O),v=g.Uw(n),u&&(u.opener=null,v===""&&(v="javascript:''"),v='',v=QR(v),(n=u.document)&&n.write&&(n.write(x_(v)),n.close()))):((u=g.Wd(u,n,m,O))&&v.noopener&&(u.opener=null),u&&v.noreferrer&&(u.opener=null)));u&&(u.opener||(u.opener=window),u.focus());A.preventDefault()}}}(Q)); Q.HD.addOnDisposeCallback(g.SH(H.tooltip,Q.HD.element));t==="Facebook"?H.api.createClientVe(Q.HD.element,Q.HD,164504):t==="Twitter"&&H.api.createClientVe(Q.HD.element,Q.HD,164505);H.Z(Q.HD.element,"click",function(I){return function(){H.api.logClick(I.HD.element)}}(Q)); H.api.logVisibility(Q.HD.element,!0);H.W.push(Q.HD);P++}}var k=E.more||E.moreLink,W=new g.D({J:"a",QN:["ytp-share-panel-service-button","ytp-button"],V:[{J:"span",Y:"ytp-share-panel-service-button-more",V:[{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 38 38",width:"100%"},V:[{J:"rect",j:{fill:"#fff",height:"34",width:"34",x:"2",y:"2"}},{J:"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:k,target:"_blank",title:"More"}});W.listen("click",function(I){var A=k;H.api.logClick(H.moreButton.element);A=Mzd(H,A);g.Xb(A,H.api,I)&&H.api.n_("SHARE_CLICKED")}); W.addOnDisposeCallback(g.SH(H.tooltip,W.element));H.api.createClientVe(W.element,W,164506);H.Z(W.element,"click",function(){H.api.logClick(W.element)}); H.api.logVisibility(W.element,!0);H.W.push(W);H.moreButton=W;H.updateValue("buttons",H.W)}; $W=function(H){var E,G,P,Q,e;return!((E=H.get("active_view_viewable"))==null||!E.length)||!((G=H.get("active_view_measurable"))==null||!G.length)||!((P=H.get("active_view_fully_viewable_audible_half_duration"))==null||!P.length)||!((Q=H.get("audio_audible"))==null||!Q.length)||!((e=H.get("audio_measurable"))==null||!e.length)}; H$1=function(H,E,G,P){P=P===void 0?0:P;isNaN(H.p_)||(H.g5("aswm",{sq:E[0].U7,id:E[0].uJ.info.itag,xtag:E[0].uJ.info.L,ep:Date.now()-H.p_}),H.p_=NaN);switch(G.info.type){case 1:case 2:LLQ(H,G);break;case 4:var Q=G.info.uJ,e=Q.Gi(G),w;((w=H.L)==null?0:w.type===4)&&C7q(G.info,H.L)&&(H.L=Q.PS(H.L).pop());G=g.R(e);for(Q=G.next();!Q.done;Q=G.next())H$1(H,E,Q.value,P);break;case 3:G.info.uJ.info.video?(Q=H.timing,Q.PF||(Q.PF=(0,g.ON)(),g.ng("fvb_r",Q.PF,Q.L))):(Q=H.timing,Q.C||(Q.C=(0,g.ON)(),g.ng("fab_r", Q.C,Q.L)));EBs(H.G,E,G,P);H.policy.L&&LOu(H);break;case 6:EBs(H.G,E,G,P),H.L=G.info}}; b$=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);var G=this.api.U("html5_enable_voice_boost");G&&this.events.Z(H,"settingsMenuInitialized",function(){Du1(E)}); We(this.api,"getVoiceBoostUserPreference",function(){return G?E.getVoiceBoostUserPreference():0}); We(this.api,"setVoiceBoostUserPreference",function(Q){G&&E.setVoiceBoostUserPreference(Q)}); We(this.api,"getVoiceBoostState",function(){return G?E.getVoiceBoostState():1}); var P;this.L=(P=Kql())!=null?P:0;this.updateEnvironmentData()}; S6u=function(H,E,G){E=g.wH(E,function(P){return new QaU(P,G,P.id)}); H.S.n_("onAdUxUpdate",E)}; g.as=function(H,E,G){H=H.NZ().element;var P=UN(H.children,function(Q){Q=Number(Q.getAttribute("data-layer"));return G-Q||1}); P<0&&(P=-(P+1));bl(H,E,P);E.setAttribute("data-layer",String(G))}; NY=function(H){var E=H.U("web_enable_pip_on_miniplayer");g.D.call(this,{J:"button",QN:["ytp-miniplayer-button","ytp-button"],j:{title:H.U("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"},V:["{{icon}}"]});this.S=H;this.visible=!1;this.listen("click",this.onClick);this.Z(H,"fullscreentoggled",this.r5);this.S.U("player_tooltip_data_title_killswitch")? this.update({title:g.dv(H,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:Faq(this,E)}):this.update({"tooltip-title":g.dv(H,"Miniplayer","i"),"data-title-no-tooltip":"Miniplayer",icon:Faq(this,E)});M2(H,this.element,this);H.createClientVe(this.element,this,62946);this.r5()}; LW=function(H){return H.vE&&H.getVideoData().mutedAutoplay}; mpM=function(H){g.J.call(this);var E=this;this.Fo=H;this.du=0;this.C=this.W=this.T=!1;this.D=0;this.lJ=this.Fo.K();this.videoData=this.Fo.getVideoData();this.G=g.hE(this.lJ.experiments,"html5_delayed_retry_count");this.L=new g.Wt(function(){E.Fo.kH()},g.hE(this.lJ.experiments,"html5_delayed_retry_delay_ms")); g.d(this,this.L)}; fpd=function(H,E){var G=Xz(cY,E);G||(G=VN(H,E,"h",-1));return G}; TC=function(H,E,G){H.isFocused(E);return E-H.G+G<=H.L[H.W].length}; tP=function(H,E,G,P,Q,e,w,t,k,W,I,A,m){Xm.call(this,e,H,E,Q);this.SR=G;this.D=w;this.N=t;this.d5=k;this.ST=W;this.Da=I;this.C=A;this.T=m;this.yN=Ew7(E,G)}; g.kW=function(H,E){var G=g.c4.apply(2,arguments);H=H===void 0?0:H;g.LN.call(this,E,G);this.errorType=H;Object.setPrototypeOf(this,this.constructor.prototype)}; g.Wi=function(H,E,G){if(g.ZR(G))return H;G=g.jGt(G);if(typeof H==="string")return aT(H,g.Bo(E),G);g.MZ(H,E,G);return H}; Sju=function(H){var E=globalThis.sessionStorage.getItem("iU5q-!O9@$");if(!E)return new JS(H);var G=E.split(",");if(G.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new JS(H);E=G.slice(1);E.length===1&&E[0]===""&&(E=[]);G=Number(G[0]);return isNaN(G)||G<0||G>E.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new JS(H)):new JS(H,G,E)}; IM=function(H){var E;return((E=H.audio)==null?void 0:E.L)===!0}; IY=function(H){var E=dH(H,!0),G=0;E===4?G=H.L.getFloat32(H.pos):E===8&&(G=H.L.getFloat64(H.pos));H.pos+=E;return G}; Un1=function(H){if(H.S.U("delhi_modern_web_player_icons"))return H=Ay.includes("en")?AP(H)&&H.isEnabled()?{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:HA():AP(H)&&H.isEnabled()?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:O1d()}; pcl=function(H,E){if(H.policy.BF&&H.Am){var G,P,Q=E?(G=H.Am)==null?void 0:G.L:(P=H.Am)==null?void 0:P.W;G=E?H.audioTrack:H.videoTrack;E=lQ(G);if(E==null?0:E.isLocked){H.Fo.K().z6()&&H.g5("eosl",{unlock:E.info.PO()});var e;(e=G.PF)==null||e.stop();E.isLocked=!1;G.d0(E);cN7(H.L,E.info);Q=Q==null?void 0:Q.ZT();(Q==null?void 0:Q.PO())!==E.info.PO()&&H.g5("oue",{bls:Q==null?void 0:Q.PO(),tls:E.info.PO()})}}}; x37=function(H,E,G,P){H.G.dispose();H.G=null;g.aG(H.element,"ytp-popup-animating");P?(g.aG(E.element,"ytp-panel-animate-forward"),g.Tn(G.element,"ytp-panel-animate-back")):(g.aG(E.element,"ytp-panel-animate-back"),g.Tn(G.element,"ytp-panel-animate-forward"));g.sR(H.element,H.size);H.D=new g.Wt(function(){g.Tn(H.element,"ytp-popup-animating");E.detach();g.YQ(E.element,["ytp-panel-animate-back","ytp-panel-animate-forward"]);H.D.dispose();H.D=null},250,H); H.D.start()}; ad=function(H,E,G,P,Q,e,w,t){this.sampleRate=H===void 0?0:H;this.numChannels=E===void 0?0:E;this.spatialAudioType=G===void 0?"SPATIAL_AUDIO_TYPE_NONE":G;this.L=P===void 0?!1:P;this.G=Q;this.D=e;this.audioQuality=w===void 0?"AUDIO_QUALITY_UNKNOWN":w;this.W=t===void 0?!1:t}; KX=function(){g.D.call(this,{J:"div",Y:"ytp-fine-scrubbing-chapter-title",V:[{J:"div",Y:"ytp-fine-scrubbing-chapter-title-content",iJ:"{{chapterTitle}}"}]})}; S6=function(H,E){(E===void 0||E)&&Cod(H);H.L=null}; HSs=function(H){var E={};E[H.status]=m7(H)?IkQ(H,"."):H.D.join(".");return E}; uD=function(H,E,G){if(!E&&!G)return null;var P=E?String(E).toUpperCase():null;return QK(H,function(Q){return(!P||Q.nodeName==P)&&(!G||typeof Q.className==="string"&&g.Xa(Q.className.split(/\s+/),G))},!0)}; uh=function(H){return H.K_==="9"||H.K_==="("||H.K_==="9h"||H.K_==="(h"}; pV=function(H,E){return H.U(E)?!0:(H.fflags||"").includes(E+"=true")}; voM=function(H,E){var G=Jq(E.uJ,H.ou.T6),P,Q=((P=H.Jm)==null?void 0:P.Hn(G))||[];if(Q.length===0)return H.g5("ombmsi",{}),!1;P=new f6(Q);if((!H.policy.WF||isFinite(H.getCurrentTime())||H.Fo.I5())&&!dfQ(P,H.getCurrentTime()))return H.g5("ostmf",{ct:H.getCurrentTime(),a:E.uJ.info.VS()}),!1;(H=H.Jm)!=null&&(H.eq.get(G).G_=!0);return!0}; vi=function(H,E){H.S.setOption("captions","track",E)}; R8=function(H,E){E=E===void 0?!1:E;var G=H.loader.getCurrentTime(),P=H.G.Hy(),Q=(P==null?void 0:P.info.T)||0;if((P==null?0:P.info.uJ.lr())&&!P.info.G)if(H.policy.CL)Q=P.info.D;else if(H.policy.PW){var e=P.info;Q=e.range?e.T:Math.min(e.startTime+Math.min(e.duration*e.L/e.uJ.info.Xo,e.duration)+(e.range?e.B:Math.min(e.duration,e.duration*e.W/e.uJ.info.Xo)),e.startTime+e.duration)}if(!H.rP)return H.policy.L&&E&&!isNaN(G)&&P?Q-G:0;if((e=Wg(H))&&qp(e))return e.T;var w=H.rP.qV(!0);if(E&&P)return e=0,H.policy.L&& (e=RA(w,Q+.02)),e+Q-G;E=RA(w,G);H.policy.yU&&e&&(P=Kg(w,G),w=Kg(w,e.D-.02),P===w&&(G=e.T-G,H.policy.G&&G>E+.02&&H.g5("abh",{bh:E,bhtls:G}),E=Math.max(E,G)));return E}; EPs=function(H){switch(H){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:dA(H,"unknown result type")}}; Tjs=function(H,E){return oHt(H,E)}; Gau=function(H,E){var G=new g.uo(E);(E=G.get("req_id"))&&H.set("req_id",E);g.kn(H.L,function(P,Q){G["set"](Q,null)}); return G}; be=function(H,E,G){this.layoutId=E;this.triggerType="TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED";this.triggerId=G||H(this.triggerType)}; xh7=function(){return{J:"svg",j:{height:"100%",viewBox:"0 0 36 36",width:"100%"},V:[{J:"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"}}]}}; Gc=function(H,E){var G=[];H=g.R(H.array);for(var P=H.next();!P.done&&!(P=P.value,P.contains(E)&&G.push(P),P.start>E);P=H.next());return G}; g.t1=function(){return g.lU.ytPubsubPubsubInstance}; eU=function(H,E,G){var P=Ir7.get();P.G=H;P.W=E;P.context=G;return P}; Pij=function(H){var E=H.api.getPresentingPlayerType()===2&&(H.api.NZ().D4||H.api.K().disableOrganicUi)&&H.api.K().W&&DE&&YV>=11;H=H.api.K().B&&DE;return!(!E&&!H)}; QUt=function(H,E){if(!H.index.isLoaded()){var G=[],P=E.D;E=E.T.split(",").filter(function(I){return I.length>0}); for(var Q=0,e=0,w=0,t=/^(\d+)/,k=/r=(\d+)/,W=0;W=0&&nN(H.audioTrack,H.targetTime)>=0&&e?((H.videoTrack.D||H.audioTrack.D)&&H.loader.g5("iterativeSeeking",{status:"done",count:H.seekCount}),H.videoTrack.D=!1,H.audioTrack.D=!1):P&&g.VP(function(){if(H.L||!H.policy.G6)Mf(H);else{var w=E.startTime,t=E.duration;if(!H.policy.T){var k=H.videoTrack.T!==-1&&H.audioTrack.T!==-1,W=!H.videoTrack.WF&&!H.audioTrack.WF;(G?H.videoTrack.D:H.audioTrack.D)&&k&&W&&(H.targetTime>= w&&H.targetTime=E&&P.video.qualityOrdinal<=G})}; eH=function(H,E){if(vb(H,E)){E=M_(H);var G=vA(H.L,H.pos,E);H.pos+=E;return G}}; HYU=function(H){return YY(H,0,"gclid",H.search(c2))>=0||YY(H,0,"gad_source",H.search(c2))>=0}; esM=function(H,E){return Bow(H,yP(E,z$,1,bp),yP(E,H_,2,bp),WH(E,3,void 0,bp))}; Mzd=function(H,E){var G={};g.L3(H.api.K())&&(g.oT(H.api,"addEmbedsConversionTrackingParams",[G]),E=g.eB(E,G));return E}; U2T=function(H,E){var G=H.S.K(),P=H.S.getPresentingPlayerType()===2,Q=!P||E.isListed;Q=!G.WF&&!!E.videoId&&Q;G.playerStyle!=="play"?G="https://support.google.com/youtube/?p=report_playback":(G={contact_type:"playbackissue",html5:1,ei:E.eventId,v:E.videoId,p:"movies_playback"},E.W&&(G.fmt=E.W.itag),E.clientPlaybackNonce&&(G.cpn=E.clientPlaybackNonce),E.partnerId&&(G.partnerid=E.partnerId),G=g.eB("//support.google.com/googleplay/",G));H.Lz.BT(Q&&E.allowEmbed);H.getVideoUrl.BT(Q);H.uu.BT(Q&&!E.isLivePlayback); H.Kp.setContent(G,"href");var e;(e=H.WA)==null||e.BT(!E.isLivePlayback&&!P);L0d(H);var w;(w=H.dX)==null||w.BT(!P)}; sUv=function(H,E){var G;if((G=H.api.getVideoData())==null?0:G.mutedAutoplay){var P,Q;if((P=E.target)==null?0:(Q=P.className)==null?0:Q.includes("ytp-info-panel"))return!1}return g.$6(E)&&H.api.isMutedByMutedAutoplay()?(H.api.unMute(),H.api.getPresentingPlayerType()===2&&H.api.playVideo(),E=H.api.getPlayerStateObject(),!g.F(E,4)||g.F(E,8)||g.F(E,2)||H.If(),!0):!1}; T9n=function(H){H=H===void 0?null:H;return H!=null&&(H=H.thumbnail,H!=null&&H.thumbnails!=null&&H.thumbnails.length!=0&&H.thumbnails[0].url!=null)?g.zE(H.thumbnails[0].url):""}; yDw=function(H,E){H.policy.p_?H.L.splice(H.L.indexOf(E)).forEach(function(G){G.dispose()}):(H.L.pop(),E==null||E.dispose())}; JD=function(H,E){(H.loader=E)?Kou(H,!0):bz(H)}; dB1=function(H,E,G,P){return E&&G.adSlotMetadata.slotType==="SLOT_TYPE_PLAYER_BYTES"?H.map(function(Q){return Q instanceof r_?new BM(function(e){return wM(P,e)},G.adSlotMetadata.slotId):Q}):H}; cq=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"standardControlsInitialized",function(){E.createButton()}); g.sn(this.api.K())&&(this.U("web_watch_pip")||this.U("web_shorts_pip"))&&We(this.api,"setDocumentPictureInPicture",function(G){E.setDocumentPictureInPicture(G)})}; QKU=function(H){switch(H){case "spatial_audio_type_ambisonics_5_1":return"SPATIAL_AUDIO_TYPE_AMBISONICS_5_1";case "spatial_audio_type_ambisonics_quad":return"SPATIAL_AUDIO_TYPE_AMBISONICS_QUAD";case "spatial_audio_type_foa_with_non_diegetic":return"SPATIAL_AUDIO_TYPE_FOA_WITH_NON_DIEGETIC";default:return"SPATIAL_AUDIO_TYPE_NONE"}}; wy=function(H){var E=H.isContentForward&&!H.KH();g.Bt(H.badge.element,"ytp-suggested-action-badge-preview-collapsed",E&&H.L);g.Bt(H.badge.element,"ytp-suggested-action-badge-preview-expanded",E&&H.W)}; Ar=function(H,E){H.G={uc:E,RW:!0};H.L=H.C||H.T}; cQ=function(H,E,G){for(var P in H.L){var Q=wU(H.L[P].info.mimeType)||H.L[P].info.dO();if(G===Q&&(Q=H.L[P].index)!=null){var e=Hq(Q,E);e>=0&&Q.segments.splice(e,1)}}}; VTs=function(H,E){return H.nS.TPR&&E.reason==="l"||H.nS.q6?!1:H.nS.dT?!0:E.reason==="l"||E.reason==="b"||E.reason==="o"}; O_=function(H,E,G,P){(P===void 0?0:P)&&!E.z$&&(Pk()||(P=E.rP)&&!P.s$(G.info)&&H.Fo.kH(),E.z$=!0);E.uJ!==G&&(E.uJ=G)}; oPM=function(H,E,G){isNaN(G)||(H.Jm+=G);isNaN(E)||(H.eR+=E)}; eXt=function(H){return{qD:dV(H,2),videoId:zb(H,3),Bq:hU(H,4)}}; DV=function(H,E,G){var P=G.kZ,Q=G.RA,e=G.listener,w=G.Ys;G=G.t2===void 0?!1:G.t2;if(H.L.has(E))xQ("Unexpected registration of layout in LidarApi");else{if(w){if(H.W.has(w))return;H.W.add(w)}H.L.set(E,e);kS(X9().b4,"fmd",1);HrM(Lu(NS),P);var t=G?E:void 0;wrv(X8(),E,{Ve:function(){if(!Q)return{};var k=H.S.getPresentingPlayerType(!0),W;return(W=H.S.getVideoData(k))!=null&&W.isAd()?{currentTime:H.d5.get().getCurrentTimeSec(k,!1,t),duration:Q,isPlaying:RK(H.d5.get(),k).isPlaying(),isVpaid:!1,isYouTube:!0, volume:H.d5.get().isMuted()?0:H.d5.get().getVolume()/100}:{}}})}}; g.gK=function(H){g.J.call(this);var E=this;this.Fo=H;this.kV={t1:function(){return E.Fo}}}; qSn=function(H){H.W&&(H.D=new Kd,H.T.promise.then(function(){H.HT.MW("pot_if");Ha(H)}))}; rHd=function(H){H=KN(H);if(H=="")return null;var E=String(H.slice(0,4)).toLowerCase();if(("url("1||H&&H.split(")"),null;if(H.indexOf("(")>0){if(/"|'/.test(H))return null;E=/([\-\w]+)\(/g;for(var G;G=E.exec(H);)if(!(G[1].toLowerCase()in hXn))return null}return H}; $vj=function(H,E){H.api.U("html5_enable_d6de4_cold_start_and_error")&&(E.RO={coldStartInfo:{clientState:H.G}})}; twq=function(H){var E=H.api.getPlayerSize();return g.L3(H.api.K())&&E.width>=524}; Z7=function(H,E,G){H=H.loader.YV()||0;return Te(E,(G+H)*1E3)/1E3+G}; Faq=function(H,E){return H.S.U("delhi_modern_web_player_icons")?gaQ():E?{J:"svg",j:{fill:"#fff",height:"100%",version:"1.1",viewBox:"0 -960 960 960",width:"100%"},V:[{J:"g",j:{transform:"translate(96, -96) scale(0.8)"},V:[{J:"path",La:!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"}}]}]}:we()}; d8=function(H){this.value=H}; Vrv=function(H){switch(H){case "DELAYED_EVENT_TIER_UNSPECIFIED":return 0;case "DELAYED_EVENT_TIER_DEFAULT":return 100;case "DELAYED_EVENT_TIER_DISPATCH_TO_EMPTY":return 200;case "DELAYED_EVENT_TIER_FAST":return 300;case "DELAYED_EVENT_TIER_IMMEDIATE":return 400;default:return 200}}; qa=function(H,E){return(H=H.L.get(E))?H:new Map}; M17=function(H,E){if(H.videoData.N)return!1;H.lJ.FI+=1;if(H.lJ.FI<=10)return!1;E.exiled=""+H.lJ.FI;H.Di("qoe.start15s",E);H.Fo.publish("playbackstalledatstart");return!0}; h$=function(H,E,G,P,Q){if(I0(31,H.AE))return new Kr7(H,G);H=H.TU();return P?cP7()?new tsq(H,E,G,Q):new peu(H,E,G,Q):new yhd(H,G,Q)}; V6=function(H){if(H==null)return H;if(typeof H==="string"&&H)H=+H;else if(typeof H!=="number")return;return Ox(H)?H>>>0:void 0}; kad=function(H){H.L.forEach(function(E){E.delay.dispose()}); H.L.clear()}; n$=function(H,E,G,P){for(var Q=Number(E.getAttribute("data-overlay-order"))||0,e=0,w=null,t=g.R(G.children),k=t.next();!k.done;k=t.next()){k=k.value;if(P&&k.classList.contains("ytp-overlay-inline-container")){w=k;break}if(Q<(Number(k.getAttribute("data-overlay-order"))||0))break;e++}w?n$(H,E,w,!1):P?(H=document.createElement("div"),H.classList.add("ytp-overlay-inline-container"),H.setAttribute("data-overlay-order",""+Q),w=H,w.appendChild(E),bl(G,w,e)):bl(G,E,e)}; nv=function(H,E,G,P){var Q=Wg(E);!Q||Q.G||tL(Q,P)||(G.abort(),H.policy.Le&&(Q=E.B)!=null&&(Q.G=void 0),(E=E.N)!=null&&(d2(E,4),E.flush()));if(!G.SU()||Pk())try{H.policy.SuJ?G.VK(P.uJ.info.containerType,P.uJ.info.K_)&&G.UL(P.uJ.info.containerType,P.uJ.info.K_,P.uJ.info.mimeType):G.S4(P.uJ.info.containerType,P.uJ.info.mimeType)}catch(e){return G=e,g.p5(G),H.g5("ctexp",{name:G.name,msg:G.message}),!1}else P.uJ.info.containerType!==G.SU()&&H.g5("ctu",{ct:Pk(),prev_c:G.SU(),curr_c:P.uJ.info.containerType}); E=P.uJ.D;H.policy.ql&&E&&(P=0+E.duration,E=-E.L,0===G.lC()&&P===G.Iv()||G.OO(0,P),E!==G.YV()&&(G.Zb(E),e9&&kIw(H.audioTrack.Fx(),G.Ee())));return!0}; eyM=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"applicationvideodatachange",function(G,P){P=P.clipConfig;G==="dataloaded"&&P&&P.startTimeMs!=null&&P.endTimeMs!=null&&E.api.setLoopRange({startTimeMs:Math.floor(Number(P.startTimeMs)),endTimeMs:Math.floor(Number(P.endTimeMs)),postId:P.postId,type:"clips"})})}; nd=function(H){var E=NB1();switch(E){case 1:e2.h5vcc.traceEvent.traceBegin("YTLR",H);break;case 2:e2.performance.mark(H+"-start");break;case 0:break;default:dA(E,"unknown trace type")}}; Ic=function(H,E){if((H&23)==H){$n(22,E);var G=decodeURIComponent(E[h[41]](h[11])||h[2])[h[37]](h[78]);var P=E[h[8]]===h[15]&&G[h[4]]>1&&!!G[1]}((H^55)&7)==2&&(((0,E[61])(E[81],E[63]),E[61])(E[69],E[79]),(0,E[91])(E[23],E[7]),(0,E[0])((0,E[40])(E[47],E[2],(0,E[4])()),E[61],E[7],E[21]),P=[E]);((H^25)&6)<4&&H-1>=26&&E[h[0]]();return P}; Hvj=function(H){this.T=H;this.G=this.W=0;this.D=new sm(50)}; F_u=function(H,E,G,P,Q){this.loader=H;this.policy=E;this.schedule=G;this.Dz=P;this.L_=Q;this.p_=NaN;this.W=this.B=this.D=null;this.L=this.T=this.C=this.startTimeSecs=NaN;this.G=!1;this.N=NaN}; UPt=function(H){return!!H.QF&&!!H.QF.fairplay&&(H.K_==="("||H.K_==="(h"||H.K_==="A"||H.K_==="MEAC3")||$e&&!!H.QF&&H.K_==="1e"}; d_=function(H){return H.keySystem==="com.youtube.fairplay.sbdl"}; WVl=function(H,E){Qf(H,2,E.bd,sB,3);Qf(H,3,E.innertubeRequest,psl,3);oS(H,4,E.onesieUstreamerConfig);oS(H,9,E.VB);Qf(H,10,E.OW,wn,3);Qf(H,15,E.reloadPlaybackParams,PBv,3);Uj(H,18,E.ia5)}; g.n5M=function(H){var E,G;return g.L(function(P){if(P.L==1)return g.U(P,g.De(),2);if(P.L!=3){E=P.W;if(!E)throw g.Xs("ri");return g.U(P,g.K4(E),3)}G=P.W;return P.return(g.fV(G,["index"],{mode:"readonly",tag:"IDB_TRANSACTION_TAG_LMRI"},function(Q){var e=IDBKeyRange.bound(H+"|",H+"~");return Q.objectStore("index").getAll(e).then(function(w){return w.map(function(t){return t?t.format:{}})})}))})}; Gp7=function(H){var E=H.tj().filter(function(P){return P.namespace==="ad"}); E=g.R(E);for(var G=E.next();!G.done;G=E.next())if(G=G.value,G.start/1E3>H.getCurrentTime())return G.start/1E3;return Infinity}; I3l=function(H,E,G,P,Q){A9.call(this,"action-companion",H,E,G,P,Q)}; E2=function(H){return Math.round(Yp()+H)}; du=function(){return g.aD("android")&&g.aD("chrome")&&!(g.aD("trident/")||g.aD("edge/"))&&!g.aD("cobalt")}; AV7=function(H){var E=Zi(H.layout.clientMetadata,"metadata_type_layout_enter_ms"),G=Zi(H.layout.clientMetadata,"metadata_type_layout_exit_ms");H=H.Yq.get();E=jAv(H.G,E,G);return Math.min(G,E!==null?E:Infinity)}; BCj=function(H){H.L.element.classList.toggle("ytp-xsmall-width-right-controls-expanded",H.B.isExpanded())}; w4=function(H,E){H.G||H.p_||y1(H,H.e7);var G=E.P4,P=E.H4;if(P.cpn===H.e7)H.LP({igtranssame:1,enter:P.cpn,exit:G.cpn});else{var Q=H.p_,e=!!H.G;H.G="";var w=E.uI,t=G.playerType===2?G.HO/1E3+G.videoData.FI:H.FZ().videoData.FI;H.api.U("html5_ssdai_enable_media_end_cue_range")&&(e||Q||G.playerType!==2?(Q||e)&&H.LP({mecr:0,seek:Q,skip:e}):H.api.JN(G.cpn));if(G.playerType===2&&P.playerType===2)e?H.LP({igtransskip:1,enter:P.cpn,exit:G.cpn,seek:Q,skip:H.G}):Vlu(H,G,P,t,w,Q,e);else{H.e7=P.cpn;H.ZK(P.cpn,P.startTimeSecs|| w);E=E.wLR;if(G.playerType===1&&P.playerType===2){H.cN=0;uu7(H,P);var k=ks(H,"c2a",P);H.LP(k);H.H9++}else if(G.playerType===2&&P.playerType===1){H.api.publish("serverstitchedvideochange");k=ks(H,"a2c");H.LP(k);H.H9=0;H.cN=t;k=G.cpn;var W=H.cN;if(k!==H.playback.Yz()){var I=H.E7.get(k);I?I.L=W:H.LP({nop_e:k})}H.DP(G.qM)}H.playback.fp(G,P,t,w,Q,e,E)}Zpw(H)}}; B_=function(H,E,G,P,Q){var e=H.L||H.isDragging||H.W||H.Su;H.L=E;H.isDragging=G;H.W=P;H.Su=Q;E=H.L||H.isDragging||H.W||H.Su;e!==E&&(E?H.T=H.Z(H.element,"wheel",H.Zl):(H.Sq(H.T),H.T=null),g.Bt(H.C,"ytp-volume-slider-active",E))}; ei=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n,O,q){Gj.call(this,H,E,G,P,Q,e,w,t,W,I,A,m,u,v,n,O,q);var N=this;this.hG=k;this.xw=A;this.UX=!0;this.xB=this.Wt=0;this.j0=gs(function(){Uls(me(N));N.nz.nP(N.slot,N.layout)}); this.Yn=gs(function(){OVU(me(N));N.xV!=="rendering_stop_requested"&&N.xw(N);N.layoutExitReason?N.nz.u4(N.slot,N.layout,N.layoutExitReason):$Cd(N)}); this.timer=new g.Pe(200);this.timer.listen("tick",function(){N.Ix()}); g.d(this,this.timer)}; mvM=function(H,E,G,P,Q,e,w,t){Xm.call(this,H,E,G,P);this.SR=Q;this.aq=e;this.C=t;this.Zr=!0;this.D=null;this.T=Zi(G.clientMetadata,"metadata_type_linked_player_bytes_layout_id");IS(this.aq(),this);H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,this.SR,H,G.layoutId)}; S7M=function(H,E){E||(E=Math.ceil(Math.log(H+2)/Math.log(2)/7));for(var G=1<<8-E,P=[];P.length1&&P?(H=AaQ(H.X.T,E.L.videoInfos,G),new Jv(0,H,!0,"o")):new Jv(0,0,!1,"o")}; Rf=function(H,E,G,P,Q){Q||H.api.K().W?E.style.width=G+"px":g.AE(E,"transform","scalex("+(P?G/P:0)+")")}; g.So=function(H,E,G){g.Bt(H.element,"ytp-suggestion-set",!!E.videoId);var P=E.playlistId;G=E.QM(G?G:"mqdefault.jpg");var Q=null,e=null;E instanceof Dm&&(E.lengthText?(Q=E.lengthText||null,e=E.FN||null):E.lengthSeconds&&(Q=g.Cc(E.lengthSeconds),e=g.Cc(E.lengthSeconds,!0)));var w=!!P;P=w&&tT(P).type==="RD";var t=E instanceof Dm?E.isLivePlayback:null,k=E instanceof Dm?E.isUpcoming:null,W=E.author,I=E.shortViewCount,A=E.publishedTimeText,m=[],u=[];W&&m.push(W);I&&(m.push(I),u.push(I));A&&u.push(A);G= {title:E.title,author:W,author_and_views:m.join(" \u2022 "),aria_label:E.ariaLabel||g.ct("Watch $TITLE",{TITLE:E.title}),duration:Q,timestamp:e,url:E.Sd(),is_live:t,is_upcoming:k,is_list:w,is_mix:P,background:G?"background-image: url("+G+")":"",views_and_publish_time:u.join(" \u2022 "),autoplayAlternativeHeader:E.Rf};E instanceof O1&&(G.playlist_length=E.playlistLength);H.update(G)}; Dvd=function(H){H.Z5("active_view_measurable")}; nPu=function(H,E){if(H.L){E=Math.floor(E*.4);E=Math.max(E,47);var G=E+2;if(H.G!==G){H.G=G;H.W.height=G;H.L.clearRect(0,0,1,G);var P=H.L.createLinearGradient(0,2,0,2+E),Q=E-42;P.addColorStop(0,"rgba(0, 0, 0, 0)");P.addColorStop(Q/E,"rgba(0, 0, 0, 0.3)");P.addColorStop(1,"rgba(0, 0, 0, 0.68)");H.L.fillStyle=P;H.L.fillRect(0,2,1,E);H.element.style.height=G+"px";try{H.element.style.backgroundImage="url("+H.W.toDataURL()+")"}catch(e){}}}}; nL=function(H,E,G,P){var Q=Q===void 0?!1:Q;G=MB(P,G);Xd(H,E,G,{capture:Q})}; qW=function(H){return g.vV(H.X)&&H.videoData.isLivePlayback&&(!H.X.U("html5_allow_multiview_tile_preload")||!H.videoData.n1)}; Srv=function(H){Xu.call(this,H);We(H,"createClientVe",this.createClientVe.bind(this));We(H,"createServerVe",this.createServerVe.bind(this));We(H,"destroyVe",this.destroyVe.bind(this));We(H,"hasVe",this.hasVe.bind(this));We(H,"logClick",this.logClick.bind(this));We(H,"logVisibility",this.logVisibility.bind(this));We(H,"setTrackingParams",this.setTrackingParams.bind(this))}; Kg=function(H,E){if(!H)return-1;try{for(var G=0;G=E)return G}catch(P){}return-1}; a3n=function(H,E,G){return T0u(H.L.get(),E.contentCpn,E.ZL,function(P){return VOl(H.W.get(),P.slotId,G,E.adPlacementConfig,E.ZL,xZ(H.VF.get(),P))})}; y$M=function(H){return uk(H)==="TVHTML5_SIMPLY_EMBEDDED_PLAYER"}; OSn=function(H,E,G){!H.X.U("html5_tv_ignore_capable_constraint")&&g.vV(H.X)&&(G=G.compose(H.nQ(E)));return G}; g.x5=function(H,E){E=E===void 0?KVM:E;a:if(E=E===void 0?KVM:E,!(H instanceof d6)){for(var G=0;G0&&(w.playerWidthPixels=Math.round(O));if(E=E.height)w.playerHeightPixels= Math.round(E);G!==0&&(w.vis=G);if(G=e.widgetReferrer)w.widgetReferrer=G.substring(0,128);g.L3(e)&&w&&(w.ancestorOrigins=e.ancestorOrigins);H.defaultActiveSourceVideoId&&(w.compositeVideoContext={defaultActiveSourceVideoId:H.defaultActiveSourceVideoId});if(e=e.getWebPlayerContextConfig())w.encryptedHostFlags=e.encryptedHostFlags;P={videoId:P,context:Q,playbackContext:{contentPlaybackContext:w}};if(H.v6){var N;P.playbackContext.reloadPlaybackContext={reloadPlaybackParams:(N=H.v6)==null?void 0:N.reloadPlaybackParams}}H.contentCheckOk&& (P.contentCheckOk=!0);if(N=H.clientPlaybackNonce)P.cpn=N;if(N=H.playerParams)P.params=N;if(N=H.playlistId)P.playlistId=N;H.racyCheckOk&&(P.racyCheckOk=!0);N=H.K();Q=N.embedConfig;H.sZ&&N.U("embeds_enable_per_video_embed_config")?P.serializedThirdPartyEmbedConfig=H.sZ:Q&&(P.serializedThirdPartyEmbedConfig=Q);P.captionParams={};Q=g.UF().A7(65);H.deviceCaptionsOn!=null?P.captionParams.deviceCaptionsOn=H.deviceCaptionsOn:g.sn(N)&&(P.captionParams.deviceCaptionsOn=Q!=null?!Q:!1);H.V_&&(P.captionParams.deviceCaptionsLangPref= H.V_);H.ej.length?P.captionParams.viewerSelectedCaptionLangs=H.ej:g.sn(N)&&(Q=g.zi(),Q==null?0:Q.length)&&(P.captionParams.viewerSelectedCaptionLangs=Q);Q=H.fetchType==="onesie"&&H.U("html5_onesie_attach_po_token");w=H.fetchType!=="onesie"&&H.U("html5_non_onesie_attach_po_token");if(Q||w)Q=H.K(),Q.xW&&(P.serviceIntegrityDimensions={},P.serviceIntegrityDimensions.poToken=Q.xW);N.U("fetch_att_independently")&&(P.attestationRequest={omitBotguardData:!0});P.playbackContext||(P.playbackContext={});P.playbackContext.devicePlaybackCapabilities= qKn(H);P.playbackContext.devicePlaybackCapabilities.supportsVp9Encoding===!1&&H.g5("noVp9",{});return P}; pE=function(H){return H.length?Qc?Qc.decode(H):String.fromCharCode.apply(null,H):""}; WMt=function(H,E,G,P){P=P===void 0?null:P;var Q=g.pu("SCRIPT");Q.id=E;Q.onload=function(){G&&setTimeout(G,0)}; Q.onreadystatechange=function(){switch(Q.readyState){case "loaded":case "complete":Q.onload()}}; P&&Q.setAttribute("nonce",P);g.sN(Q,typeof H==="string"?g.Qb(H):H);H=document.getElementsByTagName("head")[0]||document.body;H.insertBefore(Q,H.firstChild);return Q}; Us=function(H,E,G){E=RXl[E];var P,Q,e={detected:H===0,source:""+E.W+((P=G.triggerContext)!=null?P:"")+((Q=G.yh)!=null?Q:""),detectionStates:G.states,durationMs:G.jS};G.metadata&&(e.contentCpn=G.metadata.contentCpn,e.adCpn=G.metadata.adCpn);g.HY("biscottiBasedDetection",e);E.L!==void 0&&(G=Number(g.tJ("CATSTAT",0)),E.L!==void 0?(E=E.L,H=EPs(H),H=G&~(3<0){E=g.R(E.kp);for(var G=E.next();!G.done;G=E.next()){var P=void 0;H+=((P=G.value.range)==null?void 0:P.length)||0}return H}if(E.YK.length>0)for(G=g.R(E.YK),P=G.next();!P.done;P=G.next())H+=P.value.HV||0;return H+E.v7}; FB=function(H,E){H.N=E;var G,P;(P=(G=H.options).NWo)==null||P.call(G,E)}; bZn=function(H){return g.ve(H.L,function(E){return E.info.video?E.info.video.stereoLayout===1:!1})}; YKM=function(H,E,G){var P=[];return g.s_(H,{query:E},function(Q){if(!(G!==void 0&&P.length>=G))return P.push(Q.getValue()),g.SF(Q)}).then(function(){return P})}; wXq=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"onSnackbarMessage",function(G){switch(G){case 1:E.api.getPlayerStateObject().isBuffering()&&E.api.n_("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"}})}})}; Xrs=function(H,E){if(H.S.isLifaAdPlaying()){var G=H.S.qS(!0,!0);H.Q4(E,G.width*.5*1.1,G.height*.25*1.1,G.width*.5*.9,G.height*.5*.9)}}; hL=function(H,E){g.Y9(H.policy.D)!==4&&(g.Ds(H.policy.D,4),g.p5(E),H.N.reject(new w0(E.message)))}; aM=function(H){var E={},G=g.Z$d(H.xhr);Object.keys(G).forEach(function(P){E[P]=G[P]}); return E}; lc=function(H,E,G,P){xN.RT(H,E,G,P)}; nxT=function(H,E){return H.G===void 0?!1:E.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(E.seekLengthMilliseconds)===5E3?H.G===72:E.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_FORWARD"&&Number(E.seekLengthMilliseconds)===1E4?H.G===74:E.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(E.seekLengthMilliseconds)===5E3?H.G===71:E.seekDirection==="TIMELY_ACTION_TRIGGER_DIRECTION_BACKWARD"&&Number(E.seekLengthMilliseconds)===1E4?H.G===73:!1}; $r=function(H){var E;!(E=H.uJ.info.K_==="f")&&(E=H.policy.D)&&(E=H.G,E=!!E.C&&Gr(E.C));if(E)return!0;E=Wg(H);if(!E)return!1;var G=qp(E)&&E.G;return H.isManifestless&&H.E7>0?G||E.U7>=H.E7:G}; ZS7=function(H){iG.call(this,"audio_measurable",H)}; Ci7=function(H){if(!$Gj(H))return!1;H=g.X(H.adStart,kN);return H?Zgq(H)?!0:(xQ("Invalid LASR with notify"),!1):!1}; Gvu=function(H){var E={},G,P=(G=H.AV)==null?void 0:G.Wt/1E3;P!=null&&(E.SURVEY_ELAPSED_MS=iR(function(){return Math.round(P*1E3).toString()})); E.SURVEY_LOCAL_TIME_EPOCH_S=iR(function(){return Math.round(Date.now()/1E3).toString()}); return E}; NP=function(H){return H.api.U("allow_autohide_on_paused_videos")?!(H.W&-129):!H.W}; gPU=function(H,E){H=g.R(g.CL(H,!0));for(var G=H.next();!G.done;G=H.next())if(G=G.value,Trn(G)){var P={potc:"1",pot:E};G.url&&(G.url=qs(G.url,P))}}; M3U=function(H,E){H=UN(H.array,function(G){return E-G.start||1}); return H<0?-(H+1):H}; i$v=function(H,E){var G=this;this.D=H;this.g5=E;this.L="";this.G=new Set;this.W=new Map;this.kV={lK5:function(){return G.G}}}; aY=function(H){return H?g.b_(H):""}; LV1=function(H){var E,G,P=(G=(E=H.Fo.xt())==null?void 0:E.getCurrentTime())!=null?G:H.Fo.getCurrentTime(),Q=H.D.Is(P);p5n(H,Q,P,!0);H.isSeeking=!1;Array.from(H.W.keys()).sort(function(e,w){return e-w}).forEach(function(e){e>Q?MAq(H,e,H.W.get(e)):e===Q&&MAq(H,e,H.W.get(e),P-H.D.getStartTime(e))})}; Jk=function(H,E,G){E.startSecs+=isNaN(H.N)?0:H.N;H=H.ou;H.E7.push(E);H.publish("cuepointsadded",G)}; l3Q=function(H){if(!H)return null;switch(H.iconType){case "ACCOUNT_CIRCLE":return{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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 h0();case "HIDE":return{J:"svg",j:{"enable-background":"new 0 0 24 24",fill:"#fff",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"g",V:[{J:"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 Ki()}}; Dp7=function(H,E){if(H.playerType===2||H.X.ql)E.uZ=!0;var G=oYq(E.jT,E.Oo,H.X.D,H.X.N);G&&(E.adFormat=G);H.playerType===2&&(E.n0=!0);if(H.isFullscreen()||H.X.D)G=g.pr("yt-player-autonavstate"),E.autonavState=G||(H.X.D?2:H.videoData.autonavState);E.endSeconds&&E.endSeconds>E.startSeconds&&Oe(H,E.endSeconds)}; K$=function(H,E){H=g.lU[H];return H&&H.prototype?(E=Object.getOwnPropertyDescriptor(H.prototype,E))&&E.get||null:null}; $o=function(H){H=new g.TE(H);g.el(H,document.location.protocol);return H.toString()}; FD7=function(H,E){tb(H,1,E.clientState);Qf(H,2,E.f0w,w8s,1)}; g.bw=function(H,E){typeof H==="function"&&(H=g.NL(H));return window.setTimeout(H,E)}; UvQ=function(){}; $G=function(H,E){if(E>268435455){fH(H,4);for(var G=E&1073741823,P=0;P<4;P++)H.view.setUint8(H.pos,G&127|128),G>>=7,H.pos+=1;E=Math.floor(E/268435456)}for(fH(H,4);E>127;)H.view.setUint8(H.pos,E&127|128),E>>=7,H.pos+=1;H.view.setUint8(H.pos,E);H.pos+=1}; xvu=function(H){var E=H.api.getVideoData().interstitials,G=[];E=g.R(E);for(var P=E.next();!P.done;P=E.next()){P=P.value;var Q=G,e=Q.push,w=H,t=P.playerVars,k=P.aG,W=P.time,I="yto-"+w.N++;W=new g.cP(W,W,{id:I,priority:7,namespace:"yto"});w.B[I]={playerVars:t,playerType:k};e.call(Q,W);Q=H.api.getVideoData(1);Q=Object.assign({oauth_token:Q.oauthToken},P.playerVars);H.api.preloadVideoByPlayerVars(Q,P.aG)}H.api.MV(G,1)}; VE=function(H,E,G){g.J.call(this);this.policy=H;this.D=E;this.g5=G;this.G=new Map;this.T=0;this.C=!1;this.L="";this.W=!1}; O4=function(H){var E,G;return(G=H==null?void 0:(E=H.activeViewTracking)==null?void 0:E.trafficType)!=null?G:"ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"}; PLl=function(H){return H!=null}; iXv=function(H){var E;if((E=H.api.getVideoData())==null||!Iy(E)){E=IW(H);HU(H,E,H.p_,Math.max(E.W,H.p_),"HOVER_PROGRESS");for(var G=pe(H,E.L*H.p_,!0),P=pe(H,E.G,!0),Q=G;Q<=P;Q++)g.Bt(H.L[Q].G,"ytp-hover-progress-light",E.W>H.p_);g.Bt(H.PL,"ytp-scrubber-button-hover",G===P&&H.L.length>1);if(H.api.U("web_player_heat_map_played_bar")){var e;(e=H.D[0])!=null&&e.L.setAttribute("width",(E.W*100).toFixed(2)+"%")}}}; V3M=function(H){return zX1[H]||""}; Cwu=function(H,E){E instanceof JU&&(H.eR=E);var G=new Set(E.S$(H.mj()));G=g.R(G);for(var P=G.next();!P.done;P=G.next()){var Q=P.value;if(!(P=!(E instanceof r1))){P=H.G;var e=P.ou.T6,w=L4(P.videoInfos,e);e=TXq(P,Q,e);var t=w.includes(Q);!P.nS.Xj||e||t||P.loader.g5("sabrcpf",{fid:""+Q,vfids:""+w.join("."),said:P.N||""});P=e||w.includes(Q)}if(P&&(P=E.Hn(Q,H.mj()),w=H.policy.Fa&&wU(P[0].uJ.info.mimeType),E.iB(Q,H.mj())))for(Q=E.mQ(Q,H.mj()),Q=g.R(Q),e=Q.next();!e.done;e=Q.next())if(e=e.value,H.policy.G&& E instanceof r1&&H.loader.g5("omblss",{s:e.info.PO()}),w)t=H.timing,t.p_||(t.p_=(0,g.ON)(),g.ng("fcb_r",t.p_,t.L)),t=H,t.videoData.T6()&&t.C&&OL(t.C)===OL(g.KJ(e.info.uJ.info,t.ou.T6))&&t.Fo.publish("sabrCaptionsDataLoaded",e,t.zK.bind(t));else{t=e.info.uJ.info.VS();var k=e.info.uJ;if(t){var W=void 0;var I=H.G,A=(W=E.DZ(H.mj()))==null?void 0:W.token;I.B&&k!==I.T?W=!0:(I.B=!1,k!==I.T&&(I.T=k,I.Em(k,I.audioTrack,A)),W=!1);if(W)continue}else W=void 0,wgq(H.G,k,(W=E.DZ(H.mj()))==null?void 0:W.token); W=t?H.audioTrack:H.videoTrack;E instanceof r1&&(W.C=!1,E instanceof r1&&(t?UA1(H.timing):xAd(H.timing)));try{H$1(W,P,e)}catch(m){e=ms(m),H.loader.handleError(e.errorCode,e.details,e.severity),W.ZD(),H.G3(!1,"pushSlice"),Nn(H.loader)}}}}; keU=function(H,E){H=uEn(H.ou.L,function(G){return G.info.itag===E}); if(!H)throw Error("Itag "+E+" from server not known.");return H}; Vwq=function(H){G_(H,"impression")&&!G_(H,"seek")&&H.Z5("active_view_viewable")}; hVs=function(H,E){if(E>H.vO())H.segments=[];else{var G=$g(H.segments,function(P){return P.U7>=E},H); G>0&&H.segments.splice(0,G)}}; hgv=function(H,E,G){var P=gbu();(G=g.ri(G))&&delete P[G];E&&(P[H]=E)}; YM=function(H){this.W={};this.logger=new g.Pj(H)}; nZ=function(H,E){x2.call(this,H,E,"timedMarkerCueRange","View key moments");this.Z(H,g.XT("timedMarkerCueRange"),this.Ix);this.Z(H,"updatemarkervisibility",this.updateVideoData)}; FEt=function(H,E,G){return H instanceof Y6?Wej(H,G,E,1):H.IL(G)}; SKs=function(H,E){return E.priority-H.priority}; Yo=function(H,E){if(H.D)if(H.videoData.isLivePlayback&&H.videoData.G&&!H.videoData.G.L&&H.mediaElement&&H.mediaElement.xM()>0&&i4u(H.mediaElement)>0&&(H.W=wd(H,H.W,!1)),E=H.U("html5_pseudogapless_shorts_seek_to_next_start")&&(E==null?void 0:E.seekSource)===60,!H.mediaElement||!FVu(H,E))H.dP.start(750);else if(!isNaN(H.W)&&isFinite(H.W)&&(E=H.z$-(H.W-H.timestampOffset),!(E===0||Math.abs(E)<.005)))if(E=H.mediaElement.getCurrentTime()-H.W,Math.abs(E)<=H.eR||Math.abs(E)<.005)UTn(H);else{if(H.videoData.hH)H.videoData.hH= !1;else if(!oN(H.videoData)&&H.W>=H.VG()-.1){H.W=H.VG();H.D.resolve(H.VG());H.X.z6()&&H.Fo.g5("setEndedInSeek",{tgt:""+H.W,maxst:""+H.VG()});H.Fo.NA();return}try{var G=H.W-H.timestampOffset;H.mediaElement.seekTo(G);H.p_.L=G;H.z$=G;H.G=H.W;H.WF=!1}catch(P){}}}; e77=function(H,E){var G=E.U7;H.C="updateWithSegmentInfo";H.U7=G;if(H.startTime!==E.startTime||H.duration!==E.duration)H.startTime=E.startTime+0,H.duration=E.duration,bm1(H)}; squ=function(H,E,G,P,Q){g.J.call(this);var e=this,w=sU(function(){return new o9(e.Da)}); g.d(this,w);var t=sU(function(){return new ey(w,e.Da)}); g.d(this,t);var k=sU(function(){return new wx}); g.d(this,k);var W=sU(function(){return new h8(H)}); g.d(this,W);var I=sU(function(){return new $v(w,t,e.Da)}); g.d(this,I);var A=sU(function(){return new t8}); g.d(this,A);this.Fg=sU(function(){return new tq(E)}); g.d(this,this.Fg);this.ST=sU(function(){return new kv(Q)}); g.d(this,this.ST);this.l4=sU(function(){return new WY(E)}); g.d(this,this.l4);this.Dj=sU(function(){return new I9(E)}); g.d(this,this.Dj);this.JG=sU(function(){return new A8(E)}); g.d(this,this.JG);this.hG=sU(function(){return new mY(E)}); g.d(this,this.hG);this.Da=sU(function(){return new uG(E)}); g.d(this,this.Da);var m=sU(function(){return new k$(P)}); g.d(this,m);var u=sU(function(){return new Tq(e.Da)}); g.d(this,u);this.SA=sU(function(){return new t9(E)}); g.d(this,this.SA);this.OZ=sU(function(){return new u2}); g.d(this,this.OZ);this.C_=sU(function(){return new Mq(E,A,e.Da)}); g.d(this,this.C_);var v=dx({C_:this.C_,Da:this.Da,VF:u}),n=v.context,O=v.Cm;this.cT=v.cT;this.Yq=sU(function(){return new Rh(E,e.Da,e.SR)}); g.d(this,this.Yq);this.Ge=sU(function(){return new K_(E)}); g.d(this,this.Ge);this.d5=sU(function(){return new DY(E,e.C_,e.Da)}); g.d(this,this.d5);this.q4=sU(function(){return new Wa}); g.d(this,this.q4);v=sU(function(){return new vY(w,I,t,e.Da,u,"SLOT_TYPE_ABOVE_FEED",e.d5,e.dG,e.Iw)}); g.d(this,v);this.zH=sU(function(){return new IX(e.Da)}); this.im=sU(function(){return new nu(e.d5,E,e.Da)}); g.d(this,this.im);this.SR=sU(function(){return new a9(E,k,e.im,e.C_,e.cT,e.Da,O)}); g.d(this,this.SR);this.Av=new Aq(Jf,mf,function(N,r,B,l){return uV(t.get(),N,r,B,l)},W,I,t,u,this.Da,this.C_); g.d(this,this.Av);this.u1=new sC(W,v,G,this.Da,H,this.C_,this.d5,this.l4);g.d(this,this.u1);var q=new OU(E,this.u1,this.d5,this.C_,this.Yq);this.m1=sU(function(){return q}); this.oD=q;this.dG=new gR(W,I,this.m1,this.Yq,this.d5,this.Da,this.SR,this.Ge);g.d(this,this.dG);this.oP=new Ku(W,I,this.Dj,this.m1,n);g.d(this,this.oP);this.l1=new jy(this.Da,W,I,v,this.C_,this.oP,G,this.JG);g.d(this,this.l1);this.FR=sU(function(){return new va(m,t,u,e.Da,e.SR,e.d5,e.Ge)}); g.d(this,this.FR);this.p6=sU(function(){return new Mg}); g.d(this,this.p6);this.kz=new d0(H,this.Fg,this.Da);g.d(this,this.kz);this.vT=new DM(H);g.d(this,this.vT);this.W9=new fP(H);g.d(this,this.W9);this.md=new n_(H,this.m1,n);g.d(this,this.md);this.cY=new aX(H,this.Dj,this.d5,this.C_,n);g.d(this,this.cY);this.gb=new La(H,this.C_);g.d(this,this.gb);this.Iw=new lZ(H,this.Yq,this.d5,this.SR,this.m1,this.dG);g.d(this,this.Iw);this.DO=new R0(H);g.d(this,this.DO);this.ET=new jO(H);g.d(this,this.ET);this.c$=new Os(H);g.d(this,this.c$);this.lN=new no(H);g.d(this, this.lN);this.ET=new jO(H);g.d(this,this.ET);this.RM=sU(function(){return new ca}); g.d(this,this.RM);this.YM=sU(function(){return new Ng(e.d5)}); g.d(this,this.YM);this.rD=sU(function(){return new I5Q(e.Fg,e.SR,H,k,e.im)}); g.d(this,this.rD);this.w7=sU(function(){return new ys(e.l1,W,w)}); g.d(this,this.w7);this.H$=sU(function(){return new bV(e.Da,e.SR,e.DO,e.im)}); g.d(this,this.H$);this.rU=sU(function(){return new FjM(H,e.ET,e.DO,e.C_,e.Ge,e.d5,e.q4,e.SR,A,e.Yq,e.im,e.zH,e.JG,e.Dj,e.l4,e.hG,e.ST,e.SA,e.Da,k,n,O)}); g.d(this,this.rU);this.O5=sU(function(){return new pm1(e.d5,e.SR,e.ST,e.Da,e.im,e.C_)}); g.d(this,this.O5);this.Ml=sU(function(){return new B4u(e.Fg,e.d5,e.SR,k,e.im,e.W9,e.lN,e.ST,e.Da,G)}); g.d(this,this.Ml);this.Jk=sU(function(){return new KGw(e.Fg,e.SR,k)}); g.d(this,this.Jk);this.Bu=new jo(H,this.OZ,w);g.d(this,this.Bu);this.HL={Xz:new Map([["OPPORTUNITY_TYPE_AD_BREAK_SERVICE_RESPONSE_RECEIVED",this.l1],["OPPORTUNITY_TYPE_LIVE_STREAM_BREAK_SIGNAL",this.dG],["OPPORTUNITY_TYPE_PLAYER_BYTES_MEDIA_LAYOUT_ENTERED",this.Av],["OPPORTUNITY_TYPE_PLAYER_RESPONSE_RECEIVED",this.u1],["OPPORTUNITY_TYPE_THROTTLED_AD_BREAK_REQUEST_SLOT_REENTRY",this.oP]]),TV:new Map([["SLOT_TYPE_AD_BREAK_REQUEST",this.FR],["SLOT_TYPE_ABOVE_FEED",this.p6],["SLOT_TYPE_FORECASTING",this.p6], ["SLOT_TYPE_IN_PLAYER",this.p6],["SLOT_TYPE_PLAYER_BYTES",this.p6],["SLOT_TYPE_PLAYER_UNDERLAY",this.p6],["SLOT_TYPE_PLAYBACK_TRACKING",this.p6],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.p6]]),Sh:new Map([["TRIGGER_TYPE_SKIP_REQUESTED",this.kz],["TRIGGER_TYPE_SURVEY_SUBMITTED",this.kz],["TRIGGER_TYPE_LAYOUT_ID_ENTERED",this.vT],["TRIGGER_TYPE_LAYOUT_ID_EXITED",this.vT],["TRIGGER_TYPE_LAYOUT_EXITED_FOR_REASON",this.vT],["TRIGGER_TYPE_ON_DIFFERENT_LAYOUT_ID_ENTERED",this.vT],["TRIGGER_TYPE_SLOT_ID_ENTERED", this.vT],["TRIGGER_TYPE_SLOT_ID_EXITED",this.vT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_EMPTY",this.vT],["TRIGGER_TYPE_SLOT_ID_FULFILLED_NON_EMPTY",this.vT],["TRIGGER_TYPE_SLOT_ID_SCHEDULED",this.vT],["TRIGGER_TYPE_SLOT_ID_UNSCHEDULED",this.vT],["TRIGGER_TYPE_ON_DIFFERENT_SLOT_ID_ENTER_REQUESTED",this.vT],["TRIGGER_TYPE_CLOSE_REQUESTED",this.W9],["TRIGGER_TYPE_BEFORE_CONTENT_VIDEO_ID_STARTED",this.md],["TRIGGER_TYPE_PROGRESS_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER",this.cY],["TRIGGER_TYPE_SEEK_FORWARD_PAST_MEDIA_TIME_WITH_OFFSET_RELATIVE_TO_LAYOUT_ENTER", this.cY],["TRIGGER_TYPE_SEEK_BACKWARD_BEFORE_LAYOUT_ENTER_TIME",this.cY],["TRIGGER_TYPE_CONTENT_VIDEO_ID_ENDED",this.cY],["TRIGGER_TYPE_MEDIA_TIME_RANGE",this.cY],["TRIGGER_TYPE_MEDIA_TIME_RANGE_ALLOW_REACTIVATION_ON_USER_CANCELLED",this.cY],["TRIGGER_TYPE_NOT_IN_MEDIA_TIME_RANGE",this.cY],["TRIGGER_TYPE_LIVE_STREAM_BREAK_STARTED",this.gb],["TRIGGER_TYPE_LIVE_STREAM_BREAK_ENDED",this.gb],["TRIGGER_TYPE_ON_LAYOUT_SELF_EXIT_REQUESTED",this.DO],["TRIGGER_TYPE_ON_NEW_PLAYBACK_AFTER_CONTENT_VIDEO_ID", this.md],["TRIGGER_TYPE_ON_OPPORTUNITY_TYPE_RECEIVED",this.c$],["TRIGGER_TYPE_TIME_RELATIVE_TO_LAYOUT_ENTER",this.lN],["TRIGGER_TYPE_AD_BREAK_STARTED",this.ET],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",this.Iw],["TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",this.Iw],["TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",this.Iw],["TRIGGER_TYPE_PREFETCH_CACHE_EXPIRED",this.Iw],["TRIGGER_TYPE_CUE_BREAK_IDENTIFIED",this.Iw]]),qA:new Map([["SLOT_TYPE_ABOVE_FEED",this.RM], ["SLOT_TYPE_AD_BREAK_REQUEST",this.RM],["SLOT_TYPE_FORECASTING",this.RM],["SLOT_TYPE_IN_PLAYER",this.RM],["SLOT_TYPE_PLAYER_BYTES",this.YM],["SLOT_TYPE_PLAYER_UNDERLAY",this.RM],["SLOT_TYPE_PLAYBACK_TRACKING",this.RM],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM",this.RM]]),gW:new Map([["SLOT_TYPE_ABOVE_FEED",this.rD],["SLOT_TYPE_AD_BREAK_REQUEST",this.w7],["SLOT_TYPE_FORECASTING",this.H$],["SLOT_TYPE_PLAYER_BYTES",this.rU],["SLOT_TYPE_PLAYBACK_TRACKING",this.O5],["SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM", this.O5],["SLOT_TYPE_IN_PLAYER",this.Ml],["SLOT_TYPE_PLAYER_UNDERLAY",this.Jk]])};this.listeners=[k.get()];this.zw={l1:this.l1,aF:this.Da.get(),vF:this.ST.get(),w4:this.d5.get(),u1:this.u1,fG:w.get(),T5:this.OZ.get(),oG:this.kz,gX:k.get(),vY:this.C_.get()}}; f3n=function(H){var E;return((E=xn(H.C_.get(),2))==null?void 0:E.clientPlaybackNonce)||""}; VY=function(H){this.pL=H;this.W=!1;this.L=[]}; wR=function(H){this.AE=H;this.L={};this.url=""}; pru=function(H){return H.currentTime+H.timestampOffset}; Hxl=function(H,E,G){return G.layoutId!==p6(H,E,G)?(xQ("onSkipRequested for a PlayerBytes layout that is not currently active",H.Zu(),H.Za()),!1):!0}; Eq1=function(H){var E=g.lU.CSSStyleDeclaration;return E&&E.prototype&&E.prototype[H]||null}; P9u=function(H){var E=E===void 0?!1:E;return H9(U8(H,GD7),H,E,"Trusted Promoted Video Domain URL")}; Q_j=function(H){for(var E=new Set,G=g.R(Object.values(H)),P=G.next();!P.done;P=G.next())P=P.value,P.length&&(P=P[0],P.height&&P.codecs.startsWith("vp09")&&E.add(P.height));G=[];if(E.size){P=g.R(Object.keys(H));for(var Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,H[Q].length){var e=H[Q][0];e.height&&E.has(e.height)&&!e.codecs.startsWith("vp09")&&G.push(Q)}}E=g.R(G);for(G=E.next();!G.done;G=E.next())delete H[G.value]}; FhT=function(H,E,G,P,Q){var e;E={reason:"overlapping_playbacks",n1F:E,HO:G,gV:P,vZw:Q.U9,jf7:((e=Q.videoData)==null?void 0:e.videoId)||"",B0N:Q.durationMs,ZZ5:Q.HO,fvm:Q.gV};LL(H,E)}; s_Q=function(H,E,G,P){if(Math.random()<(P||H.L))try{if(G instanceof Vb)var Q=G;else Q=new Vb,T1(G,function(w,t){var k=Q,W=k.D++;w=Bj(t,w);k.L.push(W);k.W[W]=w}); var e=Q.TU(H.W,"pagead2.googlesyndication.com","/pagead/gen_204?id="+E+"&");e&&(nC(),Kld(e))}catch(w){}}; oqj=function(H,E,G){if(H.policy.BF&&Uc(E))return!1;if(G.WH())return!0;if(!G.Ip())return!1;var P=lQ(E);if(!P||P.info.type===6)return!1;var Q;if(H.policy.wi||((Q=H.G)==null?0:QXv(Q,E,P.info.U7)))H.eR=0;else return H.PK.isSeeking()&&Nn(H),H.eR=H.eR||(0,g.ON)(),!1;if(!nv(H,E,G,P.info))return!1;if(H.ou.W&&P.info.L===0){if(G.U$()==null){Q=Wg(E);var e;if(!(e=!Q||Q.uJ!==P.info.uJ)){b:if(Q=Q.N,e=P.info.N,Q.length!==e.length)Q=!1;else{for(var w=0;we)return H.policy.L&&(E===H.videoTrack?H.Yp=H.Yp||(0,g.ON)():H.z$=H.z$||(0,g.ON)()),H.policy.Ll&&wVt(E.G,e,!1),!1;E===H.videoTrack?H.Yp=0:H.z$=0;var t;H.policy.lG&&G===((t=H.Am)==null?void 0:t.L)&&H.s7&&(G.Rv()===0?(H.s7=!1,H.policy.lG=!1):H.FI=G.Rv());a:{t=H.policy.ML?(0,g.ON)():0;w=P.T&&P.info.uJ.L||void 0;e=P.W;P.T&&(e=eET(H,P,e)||e);var k=vA(e);e=H.policy.ML?(0,g.ON)():0;G=wTU(H,G,k,P.info,w);(w=E.N)!=null&&(k=P.info,t=e-t,e=(0,g.ON)()-e,!w.W||Fqq(w.W, k)&&w.W.U7===k.U7||w.flush(),w.D+=t,w.G+=e,t=1,!w.W&&k.L&&(t=2),d2(w,t,G),e=Math.ceil(k.L/1024),t===2&&w.L.add(e),w.L.add(Math.ceil((k.L+k.W)/1024)-e),w.W=k);H.O7=0;if(G===0)H.T$&&(H.T$=!1,H.V8=!1),H.G6=0,G=!0;else{if(G===2||G===5)D4(H,"checked",G,P.info);else{if(G===1){if(!H.T$){H.T$=!0;G=!1;break a}if(!H.V8){H.V8=!0;H.Fo.seekTo(H.getCurrentTime(),{cO:"quotaExceeded",NB:!0});G=!1;break a}P.info.dO()?(t=H.policy,t.eR=Math.floor(t.eR*.8),t.PF=Math.floor(t.PF*.8)):(t=H.policy,t.s7=Math.floor(t.s7*.8), t.PF=Math.floor(t.PF*.8));H.policy.L?ox(H.D.L,P.info.uJ,!1):eR(H.L,P.info.uJ)}H.Fo.YQ({reattachOnAppend:G})}G=!1}}if(!G)return!1;H.policy.BF&&P.info.Uv()?(H.Fo.K().z6()&&H.g5("eosl",{ls:P.info.PO()}),P.isLocked=!0):(E.d0(P),cN7(H.L,P.info));Q&&(E=P.info.uJ.Xh)&&H.Fo.Uq(new Ch(E.key,E.type));return!0}; at=function(H){Xu.call(this,H);var E=this;this.W=new Map;this.D=this.L=void 0;this.compositeVideoState=null;this.G=void 0;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"modulecreated",function(G){var P;a:{var Q,e,w,t=(Q=E.api.getVideoData())==null?void 0:(e=Q.getPlayerResponse())==null?void 0:(w=e.overlay)==null?void 0:w.playerControlsOverlayRenderer;if(t&&(Q=g.X(t.compositeVideoOverlay,eYT),Q==null?0:(P=Q.sources)==null?0:P.length))for(P=g.R(Q==null?void 0:Q.sources),Q=P.next();!Q.done;Q= P.next())if(Q=Q.value,Q.isActive){P=Q;break a}P=void 0}G==="captions"&&(P==null?void 0:P.topLeftCornerX)!==void 0&&(P==null?void 0:P.topLeftCornerY)!==void 0&&(P==null?void 0:P.width)!==void 0&&(P==null?void 0:P.height)!==void 0&&E.api.bS({top:P.topLeftCornerY,right:1-P.topLeftCornerX-P.width,bottom:1-P.topLeftCornerY-P.height,left:P.topLeftCornerX})}); this.events.Z(H,"videodatachange",function(G){var P=E.api.getVideoData();E.L=void 0;E.W.clear();E.api.dV("compositeembargo",1);var Q=P==null?void 0:P.Z7.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(Q==null?0:Q.length)?w1v(E,Q.filter(function(e){return qgn(E,e)})):(P==null?0:P.cueRanges)&&w1v(E,P.cueRanges.filter(function(e){return qgn(E,e)})); G==="dataupdated"&&(P==null?void 0:P.compositeLiveStatusToken)!==E.D&&(E.D=P==null?void 0:P.compositeLiveStatusToken,E.api.z3())}); this.events.Z(H,g.Ya("compositeembargo"),function(G){var P;if(((P=E.L)==null?void 0:P.id)!==G.id&&(E.api.y0(!0),E.W.has(G.id))){var Q=E.W.get(G.id);P=E.api.getVideoData();Q=g.R(Q);for(var e=Q.next();!e.done;e=Q.next()){var w=void 0;e=(w=e.value.compositeEmbargo)==null?void 0:w.embargoStatusToken;P.F2!==e&&(P.F2=e,E.api.z3());F0q(E,G)}}}); this.events.Z(H,g.XT("compositeembargo"),function(G){var P;if(((P=E.L)==null?void 0:P.id)===G.id&&(E.api.y0(!1),E.W.has(G.id))){if(G=E.api.getVideoData())G.F2=void 0;E.api.z3();F0q(E)}}); this.events.Z(H,"heartbeatRequest",function(G){E.compositeVideoState!==null&&(G.playbackState||(G.playbackState={}),G.playbackState.compositeVideoState=E.compositeVideoState)}); this.events.Z(H,"internalaudioformatchange",function(G,P){var Q=E.api.getVideoData(void 0,!0);Q==null||Q.g5("atrkchg",{id:G,m:P});if(Q&&pq(Q))for(P=E.api.getAvailableAudioTracks(),P=g.R(P),Q=P.next();!Q.done;Q=P.next())if(Q.value.getLanguageInfo().getId()===G){E.api.K().MZ=G;break}}); this.events.Z(H,"onPlaybackAudioChange",function(){E.api.z3();var G=H.getVideoData();if(G==null?0:G.K().U("html5_preload_on_mosaic_audio_track_change")){if(G==null)G=void 0;else{var P,Q,e,w;G=(w=(P=G.playerResponse)==null?void 0:(Q=P.playerConfig)==null?void 0:(e=Q.compositeVideoConfig)==null?void 0:e.sourceConfigs)!=null?w:[]}if(Q=G)for(P=H.getAudioTrack().CP.getId(),Q=g.R(Q),e=Q.next();!e.done;e=Q.next())for(e=e.value,G=void 0,w=g.R((G=e.audioTracks)!=null?G:[]),G=w.next();!G.done;G=w.next())G.value.id=== P&&H.preloadVideoByPlayerVars({videoId:e.videoId,n1:!0},1)}}); We(H,"setCompositeParam",function(G){E.compositeVideoState=G}); this.api.U("web_watch_enable_multiview_manager")&&We(H,"setCompositeVideoOverlayRendererComponent",function(G){E.setCompositeVideoOverlayRendererComponent(G)})}; hYt=function(H){return H.S.K().U("web_player_autonav_use_server_provided_state")&&M4(H.pS())}; oOU=function(){var H=["metadata_type_ad_action_interstitial_renderer"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_ENDCAP"]}}; $wM=function(){var H=["metadata_type_client_forecasting_ad_renderer"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_FORECASTING"]}}; wj=function(){}; Lks=function(H,E,G){var P,Q=(E==null?void 0:(P=E.kE)==null?void 0:P.identity)||qZ,e;E=E==null?void 0:(e=E.kE)==null?void 0:e.sessionIndex;H=H.L.bC(Q,{sessionIndex:E});return Object.assign({},QRq(G),H)}; Ngn=function(H){var E=new Map;H=g.R(H);for(var G=H.next();!G.done;G=H.next())(G=G.value.renderer.remoteSlotsRenderer)&&G.hostElementId&&E.set(G.hostElementId,G);return E}; cR=function(H){if(!H.C){if(g.MQ(H.info.uJ.info)){var E=g.h_(H);var G=Ph(E,0,1836019574);if(G){G=G.offset+G.size;var P=new Uint8Array(G);P.set(new Uint8Array(E.buffer,E.byteOffset,G));E=P}else E=null}else E=SMv(new A_(g.h_(H)));E&&(H.info.uJ.L=E,H.C=!0)}}; g.jx=function(H,E){H.appendChild(E)}; fJ=function(H){var E=[{cpn:H.G.Yz()}];H.W&&E.push({cpn:H.W.Yz()});H.api.publish("playbackChange",{szx:E})}; IXj=function(H,E,G,P){var Q=Jg(H.W.get(),"SLOT_TYPE_IN_PLAYER");return O4s(H,Q,E,G,P)}; H5U=function(H){H.L===-1&&(H.L=H.data.reduce(function(E,G,P){return E+(G?Math.pow(2,P):0)},0)); return H.L}; gkq=function(H){if(!H.Iu())if(H.X.U("html5_drm_set_server_cert")||d_(H.L)){var E=H.D.setServerCertificate();E?E.then(b1(function(G){H.X.z6()&&H.publish("ctmp","ssc",{success:G})}),b1(function(G){H.publish("ctmp","ssce",{n:G.name, m:G.message})})).then(b1(function(){tmq(H)})):tmq(H)}else tmq(H)}; kDT=function(H){var E=(0,g.ON)(),G=H.getCurrentTime();H=H.getVideoData();G=1E3*(G-H.startSeconds);H.isLivePlayback&&(G=0);return E-Math.max(G,0)}; Wx1=function(H){this.value=H}; g.Tn=function(H,E){H.classList?H.classList.remove(E):g.T2(H,E)&&g.Ve(H,Array.prototype.filter.call(Nr(H),function(G){return G!=E}).join(" "))}; ci=function(H,E,G){if(Rv(H.params.fM.Da.get(),!0)){var P=G.flush,Q={};qNt(H,E,(Q.cts=G.currentTimeSec,Q.f=P,Q))}}; WP=function(H){return H.toString()}; TdM=function(){var H=Lu(lG);if(H.L!=null){var E=H.L;g.D9(yV(),function(G){return kG1(G,E)})}}; Wcl=function(H){H.isInitialized&&(H.enabled=H.isVisible,H.WF=H.isVisible,cK(H),H.aJ(),H.thumbnailImage.BT(H.isVisible),H.shouldHideDismissButton||H.dismissButton.BT(H.isVisible),H.shouldShowOverflowButton&&H.overflowButton.BT(H.isVisible))}; Kpd=function(H,E){var G=E.bgp&&E.bgub,P=!!E.upb;E.siub&&E.scs&&(G||P)&&(P&&WI(H.Da.get(),"html5_export_sodar_snapshot")&&IaQ(function(Q){var e;return g.L(function(w){if(w.L==1)return g.U(w,k8(),2);e=w.W;return w.return(e.snapshot(Q))})}),rau(E.siub,E.scs,E.bgub,E.bgp,E.upb))}; Wht=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u){E=PVn(H,E,G,Q,e,w,k,W,I,A,m,u);f2M(Q)?(Q=aml(H,G,w,t),Q instanceof T?H=Q:(t=Jg(H.W.get(),"SLOT_TYPE_IN_PLAYER"),k=dU(H.W.get(),"LAYOUT_TYPE_SURVEY",t),w=[].concat(g.EC(Q.slotExpirationTriggers),[new JR(H.L,k)]),t=E({slotId:Q.slotId,slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,f_:Q.f_,slotEntryTrigger:Q.slotEntryTrigger,slotFulfillmentTriggers:Q.slotFulfillmentTriggers,slotExpirationTriggers:w},{slotId:t,layoutId:k}),H=t instanceof T?t:{f4:{slotId:Q.slotId, slotType:Q.slotType,slotPhysicalPosition:Q.slotPhysicalPosition,slotEntryTrigger:S0(H,G,Q.slotId,Q.slotEntryTrigger),slotFulfillmentTriggers:MU(H,G,Q.slotId,Q.slotFulfillmentTriggers),slotExpirationTriggers:w,f_:Q.f_,clientMetadata:new ZN([new C1(TJ(G)),new Cr(t.layout),new Zx({Vn:H.Vn(G)})]),adSlotLoggingData:P},TH:t.TH})):H=ORu(H,G,w,t,P,k.T6,E);return H instanceof T?H:H.TH.concat(H.f4)}; Ifu=function(H,E){return E.reduce(function(G,P){return function(Q){return P.intercept(Q,G)}},H)}; B0M=function(H){if(H=H.commonConfig)this.url=H.url,this.urlQueryOverride=H.urlQueryOverride,H.ustreamerConfig&&(this.VB=sH(H.ustreamerConfig)||void 0)}; AMU=function(H){var E=H.getVideoData().s_,G=H.X.hm,P=H.isInline()&&!H.getVideoData().gQ,Q=H.mediaElement;E||G||P?Q.LC():(Q.Jw(),HD(H,H.CM))}; rP1=function(H,E){if(!H.Iu()&&!E.videoData.Iu()){H.L6=E;Euw(H.tG,H.L6);if(H.videoData.isLivePlayback){var G=oKT(H.O9.b3,H.videoData.videoId)||H.loader&&!isNaN(H.loader.PF);G=H.U("html5_onesie_live")&&G;YC(H)||H.videoData.eR>0&&!Bm(H.videoData)||G||H.seekTo(H.VG(),{cO:"videoplayer_playbackData",seekSource:18})}if(H.videoData.G.L){if(RZ1(H.videoData)){H.kq("fmt.missing",2,"BROWSER_OR_EXTENSION_ERROR",gt({missabrurl:1}));return}H.loader?g.p5(Error("Duplicated Loader")):(G=g.hE(H.X.experiments,"html5_onesie_defer_content_loader_ms"))&& H.EZ()&&oKT(H.O9.b3,H.videoData.C5)?g.bw(function(){H.Iu()||H.loader||hp(H)},G):hp(H)}else!H.videoData.G.L&&g9(H.videoData)&&H.rb(new gE(H.videoData.videoId||"",4)); H.fB();tet(E).then(function(){var P={};H.Mn(P);H.X.z6()&&H.U("html5_log_media_perf_info")&&H.g5("av1Info",P);eC(H)})}}; NKU=function(H,E,G,P){E["Content-Type"]="application/json+protobuf";E["X-User-Agent"]="grpc-web-javascript/0.1";var Q=E.Authorization;if(Q&&mwl.has(Q.split(" ")[0])||H.withCredentials)G.B=!0;if(H.c8)P=g.Wi(P,"$httpHeaders",E);else for(H=g.R(Object.keys(E)),Q=H.next();!Q.done;Q=H.next())Q=Q.value,G.headers.set(Q,E[Q]);return P}; b_s=function(H){for(var E=g.R(Object.values(uOQ)),G=E.next();!G.done;G=E.next())if(g.ri(G.value)===H)return!0;return!1}; Nf=function(){function H(){throw Error();} Object.setPrototypeOf(H,H.prototype);return H}; DZ=function(){var H=this;this.store={};this.L=0;this.W={};this.kV={EXo:function(){return H.L}}}; we=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!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"}}]}}; Dwu=function(H){var E;return(((E=Ew(H))==null?void 0:E.progressCommands)||[]).findIndex(function(G){return!!g.X(G==null?void 0:G.command,vqw)})!==-1}; elM=function(H,E,G,P,Q,e,w,t){H=JsM(H,G,e,w,P,function(k,W){var I=k.slotId;k=t(k);var A=Q.contentSupportedRenderer;A?A.textOverlayAdContentRenderer?(A=dU(E.W.get(),"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",I),W=qI(E,A,"LAYOUT_TYPE_IN_VIDEO_TEXT_OVERLAY",Q,G,k,fK(E,W,I))):A.enhancedTextOverlayAdContentRenderer?(A=dU(E.W.get(),"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",I),W=qI(E,A,"LAYOUT_TYPE_IN_VIDEO_ENHANCED_TEXT_OVERLAY",Q,G,k,fK(E,W,I))):A.imageOverlayAdContentRenderer?(A=dU(E.W.get(),"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY", I),W=fK(E,W,I),W.push(new YA(E.L,45E3,A)),W=qI(E,A,"LAYOUT_TYPE_IN_VIDEO_IMAGE_OVERLAY",Q,G,k,W)):W=new Xf("InvideoOverlayAdRenderer without appropriate sub renderer"):W=new Xf("InvideoOverlayAdRenderer without contentSupportedRenderer");return W}); return H instanceof T?H:[H]}; stU=function(H,E,G){if(!HKd(E,G))return E=$d(E.info),E.smst="1",H.loader.handleError("fmt.unparseable",E||{},1),!1;isNaN(H.E7)&&(H.E7=G);return!0}; nqq=function(H,E,G,P){P=P===void 0?!1:P;H.set("cpn",E.clientPlaybackNonce);H.set("opr","1");var Q=E.K();H.set("por","1");z6()||H.set("onem","1");E.startSeconds>0&&H.set("osts",""+E.startSeconds);P||(Q.U("html5_onesie_disable_partial_segments")&&H.set("oses","1"),E=Q.U("html5_gapless_onesie_no_media_bytes")&&OV(E)&&E.V8,G&&!E?(E=G.audio,H.set("pvi",G.video.join(",")),Q.U("html5_onesie_disable_audio_bytes")||H.set("pai",E.join(",")),Fa||H.set("osh","1")):(H.set("oad","0"),H.set("ovd","0"),H.set("oaad", "0"),H.set("oavd","0")))}; yj=function(H){this.d5=H;this.L=!1}; ZY=function(){return Lu(aaU)}; Cm=function(H){if(!TN(H.adLayoutMetadata))return!1;H=H.renderingContent;var E=g.X(H,Fb);return E?Lm(E):(E=g.X(H,S4))?P8(E):(E=g.X(H,cs))?E.playerVars!==void 0:(E=g.X(H,M3))?E.durationMilliseconds!==void 0:g.X(H,Nu)||g.X(H,yi)?!0:!1}; M_n=function(H){H.i4=[];H.gs=[];H.T.clear();H.L=-1;H.G=void 0}; afw=function(H,E){E=g.b_(E);g.rA(H.questionText,E);H.N&&H.questionText.setAttribute("id",PL("survey-question-text"))}; zLt=function(H){return H.D&&H.D.takeRecords?H.D.takeRecords():[]}; SN=function(H){return H.Jm==="adunit"||H.playerStyle==="gvn"}; fr=function(H){var E=H.qZ();if(g.F(E.getPlayerState(),128))return!1;E=E.getVideoData();Ff(H)&&H.X.hj&&(tH.length&&H.vE?(HD(H,{muted:!1,volume:H.CM.volume},!1),SV(H,!1)):tH.length||H.CM.muted||(HD(H,{muted:!0,volume:H.CM.volume},!1),SV(H,!0)));Ff(H)&&g.L3(H.X)&&E.mutedAutoplay&&(HD(H,{muted:!0,volume:H.CM.volume},!1),SV(H,!0));E.KY&&HD(H,{muted:!0,volume:H.CM.volume},!1);gU(H,1,E,!1);var G=H.qZ();H.cF.publish("initializingmode");H.PV(G);H.UV(3);var P;if(!(P=!H.X.X7)){if(P=H.rV){P=H.rV;var Q=H.mediaElement; P=!!Q&&Q===P.mediaElement}P=P&&H.yl}P&&(H.ix(),Ux(H),G.setMediaElement(H.mediaElement));G.vS();if(g.F(G.getPlayerState(),128))return!1;E.yS||o4(H,3);return H.yl=!0}; Ox7=function(H,E){var G;a:if((G=E.L)&&G.videoInfos.length){for(var P=g.R(G.videoInfos),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var e=void 0;if((e=Q.W)==null?0:e.smooth){G=Q.video.qualityOrdinal;break a}}G=G.videoInfos[0].video.qualityOrdinal}else G=0;(g.aD("armv7")||g.aD("aarch64")||g.aD("android"))&&!g.vV(H.X)&&uh(E.L.videoInfos[0])&&(G=Math.min(G,g.lF.large));P=g.hE(H.X.experiments,"html5_chipset_soft_cap");P>0&&(G=Math.min(G,P));if(P=g.hE(H.X.experiments,"html5_max_vertical_resolution")){Q=4320; for(e=0;eP&&(Q=Math.min(Q,w.video.qualityOrdinal))}if(Q<4320){for(w=e=0;w=240&&!P.isAd()&&P.gt&&!Q&&!P.Xg&&!H.S.isEmbedsShortsMode()&&!e}; VQ=function(H,E){var G=H.getUint32(E),P=H.getUint32(E+4);return new K0(H,E,G,P)}; f$l=function(H,E,G){if(H&&E!==null&&E!=E.top){if(!E.top)return new g.P4(-12245933,-12245933);E=E.top}try{return(G===void 0?0:G)?(new g.P4(E.innerWidth,E.innerHeight)).round():Gyw(E||window).round()}catch(P){return new g.P4(-12245933,-12245933)}}; OA=function(H){return H.S.K().experiments.xp("html5_load_ads_instead_of_cue")}; Edd=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);We(this.api,"seekToChapterWithAnimation",function(G){E.seekToChapterWithAnimation(G)}); We(this.api,"seekToTimeWithAnimation",function(G,P){E.seekToTimeWithAnimation(G,P)}); We(this.api,"renderChapterSeekingAnimation",function(G,P,Q){E.api.renderChapterSeekingAnimation(G,P,Q)}); We(this.api,"setMacroMarkers",function(G){E.setMacroMarkers(H,G)}); We(this.api,"changeMarkerVisibility",function(G,P,Q){E.changeMarkerVisibility(G,P,Q)}); We(this.api,"isSameMarkerTypeVisible",function(G){return E.isSameMarkerTypeVisible(G)})}; TXq=function(H,E,G){if(H.N){var P=g.W2(H.G,function(Q){return Q.id===H.N}); return L4(P,G).includes(E)}P=g.W2(H.G,function(Q){var e;return!((e=Q.CP)==null||!e.isDefault)}); return P.length>0?L4(P,G).includes(E):L4(H.G,G).includes(E)}; yQj=function(H,E){for(var G=[],P=g.R(H.W),Q=P.next();!Q.done;Q=P.next())Q=Q.value,E(Q)||G.push(Q);if(H.X.U("html5_sstm_fixes"))for(P=g.R(H.W),Q=P.next();!Q.done;Q=P.next())Q=Q.value,E(Q)&&(H.G.delete(Q.cpn),Q.U9&&H.D.delete(Q.U9));H.W=G}; vv=function(){}; g2M=function(H){zC(H.C,"data",function(E){if("1"in E){var G=E["1"];try{var P=H.B(G)}catch(Q){v2(H,new DJ(13,"Error when deserializing response data; error: "+Q+(", response: "+G)))}P&&MyU(H,P)}if("2"in E)for(E=dqw(H,E["2"]),G=0;G0&&(this.W=G.jD)}; yfw=function(H){g.kn(H.L,function(E){E.W>1E5||++E.W})}; gaQ=function(){return{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{d:"M21.20 3.01C21.66 3.05 22.08 3.26 22.41 3.58C22.73 3.91 22.94 4.33 22.98 4.79L23 5V19C23.00 19.49 22.81 19.97 22.48 20.34C22.15 20.70 21.69 20.93 21.20 20.99L21 21H3L2.79 20.99C2.30 20.93 1.84 20.70 1.51 20.34C1.18 19.97 .99 19.49 1 19V13H3V19H21V5H11V3H21L21.20 3.01ZM1.29 3.29C1.10 3.48 1.00 3.73 1.00 4C1.00 4.26 1.10 4.51 1.29 4.70L5.58 9H3C2.73 9 2.48 9.10 2.29 9.29C2.10 9.48 2 9.73 2 10C2 10.26 2.10 10.51 2.29 10.70C2.48 10.89 2.73 11 3 11H9V5C9 4.73 8.89 4.48 8.70 4.29C8.51 4.10 8.26 4 8 4C7.73 4 7.48 4.10 7.29 4.29C7.10 4.48 7 4.73 7 5V7.58L2.70 3.29C2.51 3.10 2.26 3.00 2 3.00C1.73 3.00 1.48 3.10 1.29 3.29ZM19.10 11.00L19 11H12L11.89 11.00C11.66 11.02 11.45 11.13 11.29 11.29C11.13 11.45 11.02 11.66 11.00 11.89L11 12V17C10.99 17.24 11.09 17.48 11.25 17.67C11.42 17.85 11.65 17.96 11.89 17.99L12 18H19L19.10 17.99C19.34 17.96 19.57 17.85 19.74 17.67C19.90 17.48 20.00 17.24 20 17V12L19.99 11.89C19.97 11.66 19.87 11.45 19.70 11.29C19.54 11.13 19.33 11.02 19.10 11.00ZM13 16V13H18V16H13Z", fill:"white"}}]}}; IOn=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u){E=Sst(H,E,G,Q,e,t,k,W,I,A,m,u);if(E instanceof T)return E;H=ORu(H,G,e,w,P,t.T6,E);return H instanceof T?H:H.TH.concat(H.f4)}; Czt=function(H,E,G){if(H.provider.X.experiments.xp("html5_refactor_sabr_audio_format_selection_logging")){E=G.L;var P=[E.audio&&E.video?E.Ft?E.Ft:"":E.id];E.CP&&E.CP.id&&P.push(E.CP.id);E=P.join(";");E!==H.C&&(P=[E,H.C,G.reason],H.provider.X.Bo().L.A7(g.Ka)&&G.reason==="i"&&P.push(osd(H,G)),G.token&&P.push(G.token),g.BC(H,g.Gm(H.provider),"afs",P),H.C=E)}else G.L.id!==H.C&&(P=[G.L.id,H.C,G.reason],H.provider.X.Bo().L.A7(g.Ka)&&G.reason==="i"&&P.push(osd(H,G)),G.token&&P.push(G.token),g.BC(H,E,"afs", P),H.C=G.L.id)}; b$s=function(H,E,G){Zo(H,E);E=Wan(H.T,G);G||E||(E=j_u(H));E=E||H.C.L[0];H.W=H.ou.L[E.id];RO(H);H.B=H.W;h5M(H);FSQ(H);H.G=H.nextVideo;H.B=H.W;return Rfs(H)}; R37=function(){function H(){var A=[],m=I*8;W<56?G(t,56-W):G(t,64-(W-56));for(var u=63;u>=56;u--)e[u]=m&255,m>>>=8;P(e);for(u=m=0;u<5;u++)for(var v=24;v>=0;v-=8)A[m++]=Q[u]>>v&255;return A} function E(){Q[0]=1732584193;Q[1]=4023233417;Q[2]=2562383102;Q[3]=271733878;Q[4]=3285377520;I=W=0} function G(A,m){if(typeof A==="string"){A=unescape(encodeURIComponent(A));for(var u=[],v=0,n=A.length;v>>31)&4294967295;A=Q[0];var v=Q[1],n=Q[2],O=Q[3],q=Q[4];for(u=0;u<80;u++){if(u<40)if(u<20){var N=O^v&(n^O);var r=1518500249}else N=v^n^O,r=1859775393;else u<60?(N=v&n|O&(v|n),r=2400959708):(N=v^n^O,r=3395469782);N=((A<<5|A>>>27)&4294967295)+N+q+r+m[u]&4294967295;q=O;O=n;n=(v<<30|v>>>2)&4294967295;v=A;A=N}Q[0]=Q[0]+A&4294967295;Q[1]=Q[1]+v&4294967295;Q[2]= Q[2]+n&4294967295;Q[3]=Q[3]+O&4294967295;Q[4]=Q[4]+q&4294967295} for(var Q=[],e=[],w=[],t=[128],k=1;k<64;++k)t[k]=0;var W,I;E();return{reset:E,update:G,digest:H,Mc:function(){for(var A=H(),m="",u=0;u=0&&E.push(G);return parseFloat(E.join("."))}; GhT=function(H){return g.ve(H.L,function(E){return E.info.video?E.info.video.projectionType==="EQUIRECTANGULAR":!1})}; Yu1=function(H){if(H.layout.renderingContent){var E;return(E=Zi(H.layout.clientMetadata,"metadata_type_player_bytes_callback_ref"))==null?void 0:E.current}return Zi(H.layout.clientMetadata,"metadata_type_player_bytes_callback")}; sPQ=function(){return de(LH(),function(H){return""+H})}; d1=function(H,E){var G;return(G=E.priority)!=null?G:H.G}; X1T=function(H){BD.call(this,H);this.W=this.L=this.isContentForward=this.C=!1;this.element.setAttribute("data-overlay-order","8");LUl(this);this.Z(this.S,"changeProductsInVideoVisibility",this.H6_);this.Z(this.S,"videodatachange",this.onVideoDataChange)}; d41=function(H,E,G,P){P=P===void 0?!1:P;var Q=Q===void 0?!0:Q;return Vt(void 0,function(){return function w(){var t,k,W,I,A,m,u,v,n,O,q,N,r,B,l,S,z,Pt,eu;return SK(w,function(QM){switch(QM.L){case 1:g.Fq(QM,2);t=f4.UW();k=H&&v9Q;if(!k&&!E)return I={},(W=G)==null||W("wasmns",(I.p=H?"1":"0",I.a=E?"1":"0",I.s=v9Q?"1":"0",I)),QM.return(chd(Error("wasm.wm.ns")));A=new Dkt;if(!k){QM.bJ(4);break}g.EY(QM,5);m=fi;return pi(QM,HM(wDT(A,H,P)),7);case 7:return u=m(QM.W),v=new EO(u,A,!1,Q),f4.Ib("winit",t),(n= G)==null||n("wasmsw",{}),QM.return(v);case 5:if(O=g.vo(QM),N={},(q=G)==null||q("wasmerrw",(N.e=""+O,N)),!E)throw Error("wasm.wm.iw: "+O);case 4:if(!E)throw Error("wasm.wm.xx");g.EY(QM,8);r=fi;return pi(QM,HM(E(A)),10);case 10:return B=r(QM.W),l=new EO({exports:B},A,!0,Q),f4.Ib("winitjs",t),(S=G)==null||S("wasmsa",{}),QM.return(l);case 8:throw z=g.vo(QM),eu={},(Pt=G)==null||Pt("wasmerra",(eu.e=""+z,eu)),Error("wasm.wm.ia: "+z);case 2:g.ED(QM),g.GN(QM,0)}})}()})}; p7=function(H){return H.L.getUint8(H.pos++)}; X7=function(H){if(H.S.K().G)return!1;if(H=H.S.getVideoData(1).getPlayerResponse()){var E=H.adPlacements;if(E)for(var G=0;G=0;w--){var t=Q.W[w];t.info.U7>=E&&(Q.W.pop(),Q.G-=SW(t,Q.policy.WO),e=t.info)}e&&(Q.D=Q.W.length>0?Q.W[Q.W.length-1].info:Q.z$,Q.W.length!==0||Q.D||fkn(Q,"r"));Q.loader.g5("mdstm",{rollbk:1,itag:e?e.uJ.info.itag:"",popped:e?e.U7:-1,sq:E,lastslc:Q.D?Q.D.U7:-1,lastfraget:Q.G.toFixed(3)});if(H.policy.L)return H.L=null,!0;P>G?OB(H,P):H.L=H.uJ.fZ(E-1,!1).kp[0]}catch(k){return E=ms(k),E.details.reason= "rollbkerr",H.loader.handleError(E.errorCode,E.details,E.severity),!1}return!0}; gqt=function(H){H=H.L;for(var E in H){var G=H[E].index;if(G.isLoaded())return G.vO()+1}return 0}; Qm=function(H){var E=VH(H.ownerDocument);E&&H.setAttribute("nonce",E)}; zM=function(H,E,G,P,Q,e,w){g.D.call(this,{J:"div",Y:"ytp-slider-section",j:{role:"slider","aria-valuemin":"{{minvalue}}","aria-valuemax":"{{maxvalue}}","aria-valuenow":"{{valuenow}}","aria-valuetext":"{{valuetext}}",tabindex:"0"},V:[{J:"div",Y:"ytp-slider",V:[{J:"div",Y:"ytp-slider-handle"}]}]});this.B=H;this.N=E;this.W=G;this.G=P;this.p_=Q;this.PF=e;this.range=this.G-this.W;this.O7=this.HF("ytp-slider-section");this.D=this.HF("ytp-slider");this.WF=this.HF("ytp-slider-handle");this.C=new g.DO(this.D, !0);this.L=w?w:G;g.d(this,this.C);this.C.subscribe("dragmove",this.Ab,this);this.Z(this.element,"keydown",this.Ya);this.Z(this.element,"wheel",this.rl);this.init()}; hbM=function(H){var E=this;this.W=void 0;this.L=!1;H.addEventListener("beforeinstallprompt",function(G){G.preventDefault();E.W=G}); H.addEventListener("appinstalled",function(){E.L=!0},{once:!0})}; N9s=function(H,E,G,P,Q,e){var w={},t={};g.kn(E,function(k,W){k=k.filter(function(I){var A=I.itag;if(!I.QF)return t[A]="noenc",!1;if(e.U2&&I.K_==="(h"&&e.s7)return t[A]="lichdr",!1;if(!H.T&&I.K_==="1e")return t[A]="noav1enc",!1;if(I.K_==="("||I.K_==="(h"){if(H.G&&G&&G.flavor==="widevine"){var m=I.mimeType+"; experimental=allowed";(m=!!I.QF[G.flavor]&&!!G.L[m])||(t[A]=I.QF[G.flavor]?"unspt":"noflv");return m}if(!xb(H,ll.CRYPTOBLOCKFORMAT)&&!H.PF||H.Jm)return t[A]=H.Jm?"disvp":"vpsub",!1}return G&&I.QF[G.flavor]&& G.L[I.mimeType]?!0:(t[A]=G?I.QF[G.flavor]?"unspt":"noflv":"nosys",!1)}); k.length&&(w[W]=k)}); P&&Object.entries(t).length&&Q({rjr:gt(t)});return w}; r4=function(H,E){var G={type:H.triggerType};E!=null&&(G.category=E);H.triggeringSlotId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedSlotId=H.triggeringSlotId);H.triggeringLayoutId!=null&&(G.triggerSourceData||(G.triggerSourceData={}),G.triggerSourceData.associatedLayoutId=H.triggeringLayoutId);return G}; xB1=function(H){var E;g.L(function(G){if(!H.rO)throw E=g.Xs("clearSWHealthLogsDb"),E;return G.return(X$Q(H.rO).catch(function(P){H.handleError(P)}))})}; BP=function(H){H=zY(H);H.metadata||(H.metadata={});return H.metadata}; fQ=function(){this.W=new Hj;this.z$=this.T$=0;this.Yp=new pQ;this.WF=this.B=-1;this.hm=1E3;this.au=new Hj([1,.9,.8,.7,.6,.5,.4,.3,.2,.1,0]);this.PF=this.Jm=-1}; tlj=function(H){var E;return(H=H==null?void 0:(E=H.error)==null?void 0:E.code)&&H>=400&&H<=599?!1:!0}; Lcw=function(H,E){switch(E.oL){case "bool":return H.xp(E.mM);case "int":return H=REd(H,E.mM),sD(H);case "double":return REd(H,E.mM);case "string":return w5v(H,E.mM);case "int32_list":return gBl(H,E.mM);case "int64_list":return gBl(H,E.mM).map(function(G){return sD(G)}); case "string_list":throw Error("String list flags are not supported in WPCC");default:throw Error("Unknown flag type");}}; zYd=function(H,E,G){if(!(G in E))return!1;E=E[G];Array.isArray(E)||(E=[E]);E=g.R(E);for(G=E.next();!G.done;G=E.next()){G=G.value;var P={CPN:H.api.getVideoData().clientPlaybackNonce};G=g.iO(G,P);P=void 0;P=P===void 0?!1:P;(P=H9(U8(G,lfQ),G,P,"Active View 3rd Party Integration URL"))||(P=void 0,P=P===void 0?!1:P,P=H9(U8(G,Uw7),G,P,"Google/YouTube Brand Lift URL"));P||(P=void 0,P=P===void 0?!1:P,P=H9(U8(G,xwQ),G,P,"Nielsen OCR URL"));g.iN(G,void 0,P)}return!0}; Lqs=function(H,E){if(!H.isSeeking&&H.p_!==E&&!isNaN(H.N)){H.p_=E;var G=H.C?H.L_:H.D.Is(E);(G!==H.L_||H.C)&&p5n(H,G,E)}}; Sn=function(H,E){H.coldHashData=E;g.kM("yt.gcf.config.coldHashData",H.coldHashData||null)}; ye=function(H){return H.BF?H.isLowLatencyLiveStream&&H.L!=null&&ZG(H.L)>=5:H.isLowLatencyLiveStream&&H.L!=void 0&&ZG(H.L)>=5}; TJ7=function(H){H=H.WF&&H.WF.adRendererCommands;return(H&&H.clickCommand&&g.X(H.clickCommand,g.qf)&&g.X(H.clickCommand,g.qf).commands||[]).some(function(E){return E.adLifecycleCommand?e5s(E.adLifecycleCommand):!1})}; tA=function(H){g.Bt(H.badge.element,"ytp-suggested-action-badge-with-controls",H.Jm||!H.B)}; Vmw=function(){var H=null;try{H=g.lU.sessionStorage||null}catch(E){}tD.call(this,H)}; $s=function(H){var E;if((E=EA())==null?0:E.size){var G;bk(q5(H.api.K(),(G=H.api.getVideoData())==null?void 0:g.RS(G)),function(P){(P=AOq(P))&&I8M(H,P)&&(H.api.K().MZ=P)})}}; QZ=function(H){H=g.oz(H);for(var E=g.R(Object.keys(H)),G=E.next();!G.done;G=E.next()){G=G.value;var P=H[G];H[G]=Array.isArray(P)?P[0]:P}return H}; xKj=function(H,E){if(l7l(H,E))return null;if(E.reason==="m"&&E.isLocked())return Zo(H,E),H.N=H.D.length-1,RO(H),C6(H),H.WF=H.WF||H.G!==H.nextVideo,H.G=H.nextVideo,new FI(H.W,H.G,E.reason);E.reason==="r"&&(H.L_=-1);Zo(H,E);C6(H);if(E.reason==="r"&&H.nextVideo===H.G)return new FI(H.W,H.nextVideo,E.reason);H.G&&H.nextVideo&&pf(H,H.G.info)Math.max(w.maxWidth||0,w.maxHeight||0)?t:w,E={itag:G.itag,K_:E,VS:e,maxWidth:Math.max(t.maxWidth||0,w.maxWidth|| 0),maxHeight:Math.max(t.maxHeight||0,w.maxHeight||0),maxFramerate:Q,WM:G.WM},xb(H,ll.BITRATE)&&(E.maxBitrateBps=G.maxBitrateBps),H.L.set(P,E)):H.L.set(P,w)}; Eed=function(H,E){if(!H.Iu())if(nr(H,{onlcsrsp:1}),H.status="rr",E.statusCode!==0)H.error("drm.auth",1,"t.f;c."+E.statusCode,E.errorMessage||void 0);else{KT("drm_kr_s",void 0,H.videoData.L_);if(E.heartbeatParams&&E.heartbeatParams.url&&H.videoData.U("outertube_streaming_data_always_use_staging_license_service")){var G=H.W.W.match(/(.*)youtube.com/g);G&&(E.heartbeatParams.url=G[0]+E.heartbeatParams.url)}E.heartbeatParams&&H.publish("newlicense",E.heartbeatParams);E.W&&(H.D=E.W,H.videoData.KZ||H.publish("newlicense", new MIU),H.videoData.KZ=!0,H.B=YZ(H.D,function(P){return P.includes("HDR")})); E.L&&(H.X.U("html5_enable_vp9_fairplay")&&d_(H.W)?(G=g.H4(D1w(H.fairplayKeyId),4),H.L[G]={type:E.L[G],status:"unknown"}):H.L=de(E.L,function(P){return{type:P,status:"unknown"}})); h4(H.W)&&(E.message=Tyn(g.H4(E.message)));H.G&&(nr(H,{updtks:1}),H.status="ku",H.G.update(E.message).then(function(){KT("drm_kr_f",void 0,H.videoData.L_);m7(H)||(nr(H,{ksApiUnsup:1}),H.publish("keystatuseschange",H))},function(P){P="msuf.req."+H.requestNumber+";msg."+g.pN(P.message,3); H.error("drm.keyerror",1,P)})); g.Mn(H.W)&&H.publish("fairplay_next_need_key_info",H.baseUrl,E.nextFairplayKeyId);H.X.U("html5_enable_vp9_fairplay")&&d_(H.W)&&H.publish("qualitychange",yud(H.D));E.sabrLicenseConstraint&&H.publish("sabrlicenseconstraint",E.sabrLicenseConstraint)}}; w3=function(H,E,G,P){(H=H.L())||xQ("Could not initiate a command router instance.");vK(H,E,G,P)}; fy=function(H,E,G,P,Q){var e=H.VN,w=e[c9]|0;P=Bp(H,w)?1:P;Q=!!Q||P===3;P===2&&rx(H)&&(e=H.VN,w=e[c9]|0);H=r6(e,E);var t=H===Bb?7:H[c9]|0,k=YH(t,w);var W=4&k?!1:!0;if(W){4&k&&(H=WV(H),t=0,k=IT(k,w),w=jP(e,w,E,H));for(var I=0,A=0;I0||ox(H.D.L,P.uJ,!1):!P.uJ.info.video||yA(H.L.T).size>0||eR(H.L,P.uJ)):G===2&&(H.G6<15?(H.G6++,Q="html5.invalidstate",e=0):Q="fmt.unplayable");P=$d(P);var w;P.mrs=(w=H.Am)==null?void 0:O0(w);P.origin=E;P.reason=G;P.trg="appenderr";H.handleError(Q,P,e)}; Sg=function(H,E,G,P){var Q=P;K3(H);P=H.VN;H=XJ(H,P,P[c9]|0,G,E,2,void 0,!0);Q=Q!=null?Fm(Q,G):new G;H.push(Q);E=G=H===Bb?7:H[c9]|0;(Q=Bp(Q))?(G&=-9,H.length===1&&(G&=-4097)):G|=4096;G!==E&&k0(H,G);Q||AO(P)}; WOq=function(H,E){return[qrn(H,0,H.length>>1,E),qrn(H,H.length>>1)]}; ffu=function(H,E){H.attestationResponse&&tC(H).then(function(G){G=G||{};G.method="POST";G.postParams={atr:H.attestationResponse};H.PF?H.O7?hx().sendAndWrite(E,G):hx().sendThenWrite(E,G):g.a2(E,G)})}; p1T=function(H,E){H.L&&(g.F(E,8)?(H.W=!0,H.Yt(),H.L.start()):(g.F(E,2)||g.F(E,64))&&H.videoId&&(H.videoId=null))}; eR=function(H,E,G){ox(H.T,E,G===void 0?!1:G);H.L_=-1;Zo(H,H.L)}; H8l=function(H,E){H=g.R(E);for(E=H.next();!E.done;E=H.next())if((E=E.value.renderer)&&(E.instreamVideoAdRenderer||E.linearAdSequenceRenderer||E.sandwichedLinearAdRenderer||E.instreamSurveyAdRenderer)){KT("ad_i");g.Qn({isMonetized:!0});break}}; ETM=function(H,E){if(H.X.z6()&&H.mediaElement){var G=H.mediaElement.NL();G.omt=(H.mediaElement.getCurrentTime()+H.YV()).toFixed(3);G.ps=H.playerState.state.toString(16);G.rt=(g.Gm(H.eT.provider)*1E3).toFixed();G.e=E;H.Kg[H.WX++%5]=G}}; GSn=function(H,E){E=E?{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"ytp-svg-fill",j:{d:"M 17,24 V 12 l -8.5,6 8.5,6 z m .5,-6 8.5,6 V 12 l -8.5,6 z"}}]}:bLv();var G=H.S.getPlaybackRate(),P=g.ct("Speed is $RATE",{RATE:String(G)});k4(H,E,P,G+"x")}; P6v=function(H,E,G){g.h3(G);H.G&&(G instanceof DOMException&&(E+=";n."+G.name+";m."+G.message),H.G(E))}; c8=function(H){return{itagDenylist:dV(H,1)}}; Qsv=function(H,E){H.env.U("delhi_modern_web_player")&&H.scale!==.6&&(H.scale=E?.8:1)}; UU7=function(H,E,G){var P;if(E&&!(E==null?0:(P=E.sequenceMetaData)==null?0:P.skipProcessing)&&H.D){P=g.R(Qln);for(var Q=P.next();!Q.done;Q=P.next())Q=Q.value,H.D[Q]&&H.D[Q].handleResponse(E,G)}}; jb=function(H){rdl(H);slQ();HGw();H||(g.tJ("TIMING_ACTION")&&bT("PREVIOUS_ACTION",g.tJ("TIMING_ACTION")),bT("TIMING_ACTION",""))}; Ld=function(H,E,G){g.NL(function(){if(!Vv(G)||HR(H,G))return!1;KT(H,E,G);return!0})()}; g.zo=function(H){var E=H.B;H.U("html5_gapless_unlimit_format_selection")&&OV(H)&&(E=!1);var G=!!H.L&&H.L.T6,P=H.lJ,Q=H.DI(),e=As(H),w=H.E7,t=E,k=H.isOtf();E=H.gr();var W=H.TP,I=H.getUserAudio51Preference(),A=c$(H),m=Cd(H),u=new SnM(P);if(P.z6()||P.U("html5_logging_format_selection"))u.W=!0;u.Yp=e;u.E7=w&&P.N;u.O7=I;g.aD("windows nt 5.1")&&!g.a1&&(u.rH=!0);if(e=Q)e=g.oa(P)?oTM(P):!1;e&&(u.p_=!0);t&&(u.rH=!0,u.WO=!0);k&&!P.U("html5_otf_prefer_vp9")&&(u.rH=!0);P.playerStyle==="picasaweb"&&(k&&(u.rH= !1),u.WF=!1);W&&(u.rH=!0);xb(P.T,ll.CHANNELS)&&(P.U("html5_enable_ac3")&&(u.D=!0),P.U("html5_enable_eac3")&&(u.T=!0),P.U("html5_enable_ac3_gapless")&&(u.T$=!0));P.U("html5_block_8k_hfr")&&(u.MZ=!0);u.C=g.hE(P.experiments,"html5_max_selectable_quality_ordinal");u.B=g.hE(P.experiments,"html5_min_selectable_quality_ordinal");KW&&(u.gt=480);if(G||Q)u.WF=!1;u.hm=!1;u.disableAv1=A;G=jN(P,u.L,void 0,u.disableAv1);G>0&&G<2160&&(Pk()||P.U("html5_format_hybridization"))&&(u.L.supportsChangeType=+Pk(),u.lV= G);G>=2160&&(u.PF=!0);dHM()&&!P.U("disable_av1_setting")&&(u.L.serveVp9OverAv1IfHigherRes=0,u.ox=!1);u.gr=E;u.eR=g.Uo||wo()&&!E?!1:!0;u.N=P.U("html5_format_hybridization");u.FI=P.U("html5_disable_encrypted_vp9_live_non_2k_4k");u.G6=m;ip(H)&&(u.ML=H.U("html5_prefer_language_over_codec"));Q_()&&H.playerResponse&&H.playerResponse.playerConfig&&H.playerResponse.playerConfig.webPlayerConfig&&H.playerResponse.playerConfig.webPlayerConfig.useCobaltTvosDogfoodFeatures&&(u.D=!0,u.T=!0);H.B&&H.isAd()&&(H.jd&& (u.L_=H.jd),H.vt&&(u.G=H.vt));H.hE()&&(u.Jm=g.hE(H.lJ.experiments,"html5_hard_cap_max_vertical_resolution_for_shorts"));u.z$=H.isLivePlayback&&H.Gq()&&H.lJ.U("html5_drm_live_audio_51");u.s7=H.nZ;u.dP=!ip(H);return H.dP=u}; euQ=function(H,E,G){var P={};P.isHdr=E.includes("HDR");switch(E.replace("HDR","").replace("720","")){case "AUDIO":P.trackType=1;break;case "SD":P.trackType=2;break;case "HD":P.trackType=3;break;case "UHD1":P.trackType=4;break;case "UHD2":P.trackType=5;break;default:P.trackType=0}!P.trackType||G[E]||m7(H)&&!gS(H,E)||(H.authorizedFormats.push(P),G[E]=!0)}; wfQ=function(){var H=null;try{H=g.lU.localStorage||null}catch(E){}tD.call(this,H)}; dK=function(H){return H===void 0?H:Number(H)?Yg(H,3):0}; hun=function(H,E){gk(H.SR.get(),{cuepointTrigger:{event:o37(E.event),cuepointId:E.identifier,totalCueDurationMs:E.Po*1E3,playheadTimeMs:E.L,cueStartTimeMs:E.startSecs*1E3,cuepointReceivedTimeMs:Date.now(),contentCpn:H.S.getVideoData(1).clientPlaybackNonce}})}; zn=function(H){var E=yx(H);g.Bt(H.api.getRootNode(),"ytp-full-bleed-player",E);H.WF&&g.Jx(H.WF,E);H.playerOverlayVideoDetailsRenderer&&g.Jx(H.playerOverlayVideoDetailsRenderer,E);H.G&&io(H)}; M2v=function(H){var E=this;this.X=H;this.W=[];this.G=new Map;this.D=new Map;this.L=new Map;this.kV={C7:function(){return E.G}, XVa:function(){return E.D}, oi:function(){return E.W}}; this.T=this.X.U("html5_huli_ssdai_deprecate_playback_timeline_id")}; dqw=function(H,E){var G=2,P={};try{var Q=$Xj(E);G=pl(Q,1);var e=Q.getMessage();ln(Q,lj,3).length&&(P["grpc-web-status-details-bin"]=E)}catch(w){H.xhr&&H.xhr.getStatus()===404?(G=5,e="Not Found: "+String(H.xhr.N)):(G=14,e="Unable to parse RpcStatus: "+w)}return{code:G,details:e,metadata:P}}; Qn1=function(H){if(H.VW()!==PV.contentCpn){var E={};E=(E.c=PV.contentCpn,E);H.S.g5("ccm",E)}}; tGw=function(H){return WI(H,"html5_ssap_play_cached_preroll")}; kSM=function(H){H.provider.videoData.googleRemarketingUrl&&!H.WF&&(vZ(H,H.provider.videoData.googleRemarketingUrl),H.WF=!0)}; I3=function(H){this.VN=tz(H)}; qKn=function(H){var E=!(H==null?0:H.gr())&&(H==null?void 0:H.T6())&&wo(),G;if(!(G=H==null)){G=g.zo(H);H=H.K().T;var P=Vl("243");G=!(P&&Sk(G,P,H,!0)===!0)}return{supportsVp9Encoding:!(G||E),supportXhr:Fa}}; FjM=function(H,E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n,O,q,N,r,B,l){this.aq=H;this.ET=E;this.Ou=G;this.C_=P;this.Ge=Q;this.d5=e;this.q4=w;this.SR=t;this.YS=k;this.Yq=W;this.im=I;this.zH=A;this.JG=m;this.Dj=u;this.l4=v;this.hG=n;this.ST=O;this.SA=q;this.Da=N;this.L=r;this.context=B;this.Cm=l}; BM=function(H,E,G){this.triggeringSlotId=E;this.triggerType="TRIGGER_TYPE_SLOT_ID_SCHEDULED";this.triggerId=G||H(this.triggerType)}; H1s=function(H,E){if(E<0)return"0";H=Math.floor(Math.min(E,H.api.getDuration())*1E3);return H>2147483647?"0":String(H)}; g.HC=function(H,E){if(!E)throw g.Xs("openWithToken",b5(H.name));return H.open()}; Za=function(H,E,G,P,Q){var e=g.Un("yt.logging.errors.log");e?e(H,"WARNING",E,G,P,void 0,Q):(e=g.tJ("ERRORS",[]),e.push([H,"WARNING",E,G,P,void 0,Q]),bT("ERRORS",e))}; fkn=function(H,E){E={rst4disc:E,cd:H.B.toFixed(3),sq:H.PF?H.PF.U7:-1};H.G=NaN;H.B=0;H.Yp=-1;H.PF=null;H.BF=NaN;H.eR=NaN;H.z$=null;H.loader.g5("mdstm",E)}; t_1=function(H){var E,G;return g.L(function(P){return P.L==1?g.U(P,OQ(H),2):P.L!=3?(E=P.W,G=void 0,g.U(P,g.fV(E,["coldConfigStore"],{mode:"readwrite",Iq:!0},function(Q){return g.s_(Q.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(e){G=e.getValue()})}),3)):P.return(G)})}; M8n=function(H,E,G,P){G||(P?E.keyCode!==32||E.repeat||H.G||!H.D||g.J3(H.delay):Z6(H))}; CCq=function(H,E){return mw(H.clientMetadata,"metadata_type_ad_info_ad_metadata")?Zi(H.clientMetadata,"metadata_type_ad_info_ad_metadata"):E?{channelId:E.t_,channelThumbnailUrl:E.profilePicture,channelTitle:E.author,videoTitle:E.title}:(xQ("No layout metadata nor AdPlayback specified for AdMetaData"),{channelId:"",channelThumbnailUrl:"",channelTitle:"",videoTitle:""})}; Jg=function(H,E){if(iJ(H.Da.get())){var G=H.W.get(E)||0;G++;H.W.set(E,G);return E+"_"+G}return g.qA(16)}; jM=function(H,E,G,P,Q){H.iv_load_policy=P;E=W9(E);if(E.cta_conversion_urls)try{H.cta_conversion_urls=JSON.parse(E.cta_conversion_urls)}catch(e){xQ(e)}G.qI&&(H.ctrl=G.qI);G.v$&&(H.ytr=G.v$);G.Ah&&(H.ytrcc=G.Ah);G.isMdxPlayback&&(H.mdx="1");H.vvt&&(H.vss_credentials_token=H.vvt,G.I2&&(H.vss_credentials_token_type=G.I2),G.mdxEnvironment&&(H.mdx_environment=G.mdxEnvironment));hm(H,Q);return H}; WNu=function(H,E){if(typeof E!=="number"||E<0||E>=H.length)throw Error();}; Vu=function(H){if(H.app.getAppState()===1)return!1;if(H.app.getAppState()===6)return!0;var E=H.app.jR();if(!E||E.FG())return!1;H=H.app.cF.getPlayerStateObject();E=!g.F(H,2)||E&&E.getVideoData().B;var G=g.F(H,1024);return H&&E&&!G&&!H.isCued()}; Sq=function(H){g.J.call(this);this.logger=H;this.G=new g.M$}; l9T=function(H){Pvq(function(){var E=Oyt();H.W!=null&&(E.sdk=H.W);var G=Lu(lG);G.L!=null&&(E.avms=G.L.getName());return E})}; Ibw=function(H,E){H.L&&(g.F(E,8)&&H.G?(H.G=!1,H.Yt(),H.L.start()):(g.F(E,2)||g.F(E,64))&&H.videoId&&(H.videoId=null))}; Ik=function(H){if(WU()){H.HT=H.api.Nf();var E=g.hE(H.api.K().experiments,"html5_d6de4_cloud_project_number");H.HT.MW("pt_pis");try{window.android.webview.getExperimentalMediaIntegrityTokenProvider({cloudProjectNumber:E}).then(function(P){H.W=P;var Q;(Q=H.L)==null||Q.resolve();H.HT.MW("pt_pif")}).catch(function(P){L6(P,"player_start"); H.HT.MW("pt_pie");var Q;(Q=H.L)==null||Q.reject(P)})}catch(P){L6(P,"player_start_catch"); H.api.g5("pfes",{});var G;(G=H.L)==null||G.reject(P)}}}; g.YK=function(H,E,G,P,Q){Q=Q===void 0?!1:Q;G&&s1(H,G);G=g.x5(H);var e=g.Uw(G);H!=e&&Za(Error("Unsafe window.open URL: "+H));H=e;E=E||pZ(H).toString(36);try{if(Q)return Q=H,Q=mKq(Q),oI(Q),g.Wd(window,Q,E,"attributionsrc")}catch(w){g.OS(w)}oI(H);return g.Wd(window,G,E,P)}; A6M=function(H){H=H.api.getPlayerStateObject();H=H.isCued()||H.isError()?"none":H.isOrWillBePlaying()?"playing":"paused";navigator.mediaSession.playbackState=H}; daw=function(H){var E=[];return g.p6q(H,{query:void 0},function(G){E.push(G.cursor.primaryKey);return g.ctt(G)}).then(function(){return E})}; V3=function(){g.J.call(this);this.W=null;this.startTime=this.duration=0;this.delay=new g.tr(this.L,null,this);g.d(this,this.delay)}; Cg=function(H){return H.S.K().U("html5_allow_asmjs")}; g.Vc=function(H){for(var E=[],G=0,P=0;P>6|192:((Q&64512)==55296&&P+1>18|240,E[G++]=Q>>12&63|128):E[G++]=Q>>12|224,E[G++]=Q>>6&63|128),E[G++]=Q&63|128)}return E}; TU=function(H){if(H.isAd()&&(H.BF?H.videoId!==H.lJ.s7:H.videoId!=H.lJ.s7))return H.lJ.s7}; mX7=function(H){return H.S.K().experiments.xp("html5_load_empty_player_in_media_break_sub_lra")}; pSv=function(H,E){if(!(E instanceof jg))if(E instanceof DJ){var G=Error(E.toString());G.stack=E.stack;E=new jg(11,"EBH:Error",G)}else E=new jg(12,"BSO:Unknown",E);return H.reportError(E)}; BnQ=function(H,E){E.includeDomain&&(H=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+H);var G=g.tJ("XSRF_FIELD_NAME");if(E=E.urlParams)E[G]&&delete E[G],H=qs(H,E);return H}; g.GH=function(){return g.pr("yt-remote-session-screen-id")}; g.LQ=function(H){return H&&H.parentNode?H.parentNode.removeChild(H):null}; ugq=function(H){var E=(H.U("html5_generate_session_po_token")||H.U("html5_generate_content_po_token"))&&!H.useLivingRoomPoToken;try{if(H.U("html5_use_shared_owl_instance"))HRl(H);else if(E){H.HT.MW("pot_isc");var G=g.hE(H.api.K().experiments,"html5_webpo_kaios_defer_timeout_ms");G?(f1(H),g.bw(function(){Es(H)},G)):H.U("html5_webpo_idle_priority_job")?(f1(H),g.GQ(g.PY(),function(){Es(H)})):Es(H)}}catch(P){P instanceof Error&&g.p5(P)}}; Bws=function(){if(g.Xj("embeds_web_enable_cookie_detection_fix")){if(!g.lU.navigator.cookieEnabled)return!1}else if(!k_.isEnabled())return!1;if(!k_.isEmpty())return!0;g.Xj("embeds_web_enable_cookie_detection_fix")?k_.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):k_.set("TESTCOOKIESENABLED","1",{maxAge:60});if(k_.get("TESTCOOKIESENABLED")!=="1")return!1;k_.remove("TESTCOOKIESENABLED");return!0}; vTt=function(H,E,G,P){H.G=P;P=E.U9;var Q=E.playerVars,e=E.playerType;H.B=E;Q&&H.api.enqueueVideoByPlayerVars(Q,e,G,P)}; Ajq=function(H,E){if(Ov(H.L,E)){RM(H.L,E).C=!1;var G=xY;E=RM(H.L,E);var P=[].concat(g.EC(E.N));Awu(E.N);G(H,P)}}; JmU=function(H,E){g.Bt(H.element,"ytp-volume-control-hover",E);B_(H,E,H.isDragging,H.W,H.api.Su())}; c$=function(H){return H.lJ.U("html5_disable_av1")?!0:!1}; Hhn=function(H,E){try{var G=Lu(oc);G.WF=!0;var P=H?new lJ(H.y,H.x+H.width,H.y+H.height,H.x):new lJ(0,0,0,0);var Q=Yv(),e=ou();var w=new un(Q,e,G);w.L=P;w.volume=E;G.fd(w)}catch(t){lc(542,t)}}; C6=function(H){if(!H.nextVideo||!H.policy.D)if(H.L.isLocked())H.nextVideo=H.L.L<=360?H.ou.L[H.D[0].id]:H.ou.L[g.Q3(H.D).id];else{for(var E=Math.min(H.N,H.D.length-1),G=Pq(H.Jm),P=pf(H,H.W.info),Q=G/H.policy.Jm-P;E>0&&!(pf(H,H.D[E])<=Q);E--);for(G=G/H.policy.L_-P;E=G);E++);H.nextVideo=H.ou.L[H.D[E].id];H.N=E}}; g.Wt=function(H,E,G){g.J.call(this);this.L=H;this.nM=E||0;this.W=G;this.G=(0,g.co)(this.qX,this)}; xe=function(H,E){g.J.call(this);var G=this;this.S=H;this.D=E;this.xd={};this.L={};this.W=null;this.G=new Set;this.T=new g.Z0(this);this.kV={Xru:function(){return G.D}}; this.C=this.S.U("web_player_defer_modules");this.GH=new Map;g.d(this,this.T);this.T.Z(H,"videodatachange",this.onVideoDataChange)}; Iv=function(H,E,G,P,Q,e){this.startSecs=H;this.Po=E;this.context=G;this.identifier=P;this.event=Q;this.L=e}; FD=function(H,E,G){G=g.R(G);for(var P=G.next();!P.done;P=G.next())if(P=P.value,!H.HL.Sh.get(P.triggerType))throw new Xf("No trigger adapter registered for "+z4n.get(E)+" trigger of type: "+P.triggerType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_TRIGGER_ADAPTER_REGISTERED_FOR_TYPE");}; XDT=function(){var H=document.queryCommandSupported&&document.queryCommandSupported("copy");rBl("Chromium")>=43&&(H=!0);rBl("Firefox")<=40&&(H=!1);return H}; vH=function(H){return H.S.K().experiments.xp("enable_desktop_player_underlay")}; gA=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-ad-grid-card-collection"},"ad-grid-card-collection",E,G,P);this.L=[]}; Odj=function(H,E,G,P){return new vw(H,E,{opacity:G},{opacity:P},{property:"opacity",duration:E,timing:"ease-in",delay:0})}; N9=function(H){this.value=H}; w1v=function(H,E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){var P=G.value,Q=void 0;G=Number((Q=P.playbackRelativePosition)==null?void 0:Q.utcTimeMs)/1E3;var e=void 0;Q=G+Number((e=P.duration)==null?void 0:e.seconds);e="composite_embargo_"+G;P.onEnter&&(P=P.onEnter.filter(H.T),P.length&&(H.W.set(e,P),H.api.addUtcCueRange(e,G,Q,"compositeembargo",!1)))}}; k5=function(H){for(;H.B.length;)H.B.pop().dispose()}; aR=function(H,E,G,P,Q,e){Q=Q===void 0?[]:Q;s9.call(this,H,{J:"div",QN:["ytp-ad-confirm-dialog-background"],V:[{J:"div",Y:"ytp-ad-confirm-dialog-container",V:[{J:"div",QN:["ytp-ad-confirm-dialog"].concat(Q),j:{role:"dialog",tabindex:"-1"},V:[{J:"div",Y:"ytp-ad-confirm-dialog-title",iJ:"{{title}}"},{J:"div",Y:"ytp-ad-confirm-dialog-messages"},{J:"div",Y:"ytp-ad-confirm-dialog-confirm-container",V:[{J:"button",Y:"ytp-ad-confirm-dialog-cancel-button",iJ:"{{cancelLabel}}"},{J:"button",Y:"ytp-ad-confirm-dialog-confirm-button", iJ:"{{confirmLabel}}"}]}]}]},{J:"button",QN:["ytp-ad-confirm-dialog-close-overlay-button","ytp-ad-button","ytp-ad-button-link"],V:[{J:"span",Y:"ytp-ad-button-icon",V:[g.jK()]}]}]},e===void 0?"confirm-dialog":e,E,G,P);this.N=this.HF("ytp-ad-confirm-dialog-close-overlay-button");this.D=this.HF("ytp-ad-confirm-dialog-cancel-button");this.T=this.HF("ytp-ad-confirm-dialog-confirm-button");this.WF=this.HF("ytp-ad-confirm-dialog-messages");this.G=null;this.L=new J$;g.d(this,this.L);this.W=null;this.hide()}; pI=function(H){var E=0;H=g.R(H.questions);for(var G=H.next();!G.done;G=H.next())if(G=G.value,G=g.X(G,O9)||g.X(G,aW)){var P=void 0;E+=((P=G.surveyAdQuestionCommon)==null?void 0:P.durationMilliseconds)||0}return E}; MGv=function(H,E){H.timestampOffset!==E&&(H.timestampOffset=E,H.policy.AT&&atw(H.ou),H.G.N=H.timestampOffset,H.Fo.G7(H.timestampOffset),H.ou.isManifestless&&(H.ou.timestampOffset=H.timestampOffset),H.videoTrack.Zb(H.timestampOffset),H.audioTrack.Zb(H.timestampOffset))}; IH=function(H,E){g.J.call(this);var G=this;this.data=[];this.G=H||NaN;this.W=E||null;this.L=new g.Wt(function(){Fn(G);DX(G)}); g.d(this,this.L)}; Zb1=function(){return{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",Y:"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"}}]}}; Bw=function(H,E){Mm.call(this);var G=this;this.G=H;this.L=[];this.W=new g.Wt(function(){G.publish("log_qoe",{wvagt:"timer",reqlen:G.L?G.L.length:-1});if(G.L){if(G.L.length>0){var P=G.L.shift();F$U(G,P.info)}G.L.length>0&&(P=G.L[0].time-(0,g.ON)(),G.W.start(Math.max(0,P)))}},0); g.d(this,this.W);E.subscribe("widevine_set_need_key_info",this.D,this)}; yT=function(H,E){var G=Math.max(H,E);H=Math.min(H,E);E=RY[0];for(var P=0;P=Math.floor(e*16/9)*1.3||H>=e*1.3)return E;E=Q}return"tiny"}; gj=function(H,E,G){H=H===void 0?"":H;E=E===void 0?null:E;G=G===void 0?!1:G;g.z7.call(this);var P=this;this.sourceUrl=H;this.isLivePlayback=G;this.eR=this.duration=0;this.isPremiere=this.tT=this.D=this.isLiveHeadPlayable=this.isLive=this.W=!1;this.LM=this.iG=0;this.isOtf=this.T6=!1;this.T$=(0,g.ON)();this.WF=Infinity;this.L={};this.G=new Map;this.state=this.tK=0;this.B=null;this.isManifestless=!1;this.E7=[];this.T=null;this.PF=0;this.C="";this.O7=NaN;this.zT=this.Rj=this.timestampOffset=this.N=0;this.Qd= this.FX=NaN;this.CB=0;this.z$=this.p_=!1;this.Yp=[];this.BF={};this.Jm=NaN;this.kV={w5x:function(t){jI(P,t)}}; var Q;this.MZ=(Q=E)==null?void 0:Q.xp("html5_use_network_error_code_enums");mPQ=!!E&&E.xp("html5_modern_vp9_mime_type");var e;DW=!((e=E)==null||!e.xp("html5_enable_flush_during_seek"))&&g.aa();var w;nf=!((w=E)==null||!w.xp("html5_enable_reset_audio_decoder"))&&g.aa()}; ql=function(H,E,G){return H.L-H.W?g.Mo((E-H.W)/(H.L-H.W),0,1):G!=null?G:Infinity}; dXq=function(H,E){g.os.call(this,"Sleep timer",g.td.SLEEP_TIMER,H,E);this.S=H;this.C={};this.G=this.fT("Off");this.D=this.L="";H.U("web_settings_menu_icons")&&(E=H.U("delhi_modern_web_player_icons")?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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(E)); this.W=new g.D({J:"div",QN:["ytp-menuitem-label-wrapper"],V:[{J:"div",iJ:"End of video"},{J:"div",QN:["ytp-menuitem-sublabel"],iJ:"{{content}}"}]});g.d(this,this.W);this.listen("click",this.onClick);this.Z(H,"videodatachange",this.onVideoDataChange);this.Z(H,"presentingplayerstatechange",this.r5);this.Z(H,"settingsMenuVisibilityChanged",this.bR);H.createClientVe(this.element,this,218889);this.r5();this.S.n_("onSleepTimerFeatureAvailable")}; DXQ=function(H){function E(){return H.charCodeAt(P++)} var G=H.length,P=0;do{var Q=zx(E);if(Q===Infinity)break;var e=Q>>3;switch(Q&7){case 0:Q=zx(E);if(e===2)return Q;break;case 1:if(e===2)return;P+=8;break;case 2:Q=zx(E);if(e===2)return H.substr(P,Q);P+=Q;break;case 5:if(e===2)return;P+=4;break;default:return}}while(P1&&(this.T=H[1]==="2")}; Cp=function(H,E){H=PIs(H);var G={};if(E){E=g.R(E.split(","));for(var P=E.next();!P.done;P=E.next())(P=P.value.match(/^([0-9]+)\/([0-9]+)x([0-9]+)(\/|$)/))&&(G[P[1]]={width:P[2],height:P[3]})}E=g.R(H);for(P=E.next();!P.done;P=E.next()){P=P.value;var Q=G[P.itag];Q&&(P.width=Q.width,P.height=Q.height)}return H}; jlw=function(H){if(vK7(H.videoTrack))return"ssf";if(H.policy.BF&&Uc(H.videoTrack)&&Uc(H.audioTrack))return"updateEnd";if(JP(H.audioTrack)||JP(H.videoTrack)&&H.videoTrack.uJ.info.K_!=="f")return"";if(H.PK.isSeeking()){var E=H.L_;var G=H.videoTrack;var P=H.audioTrack;if(E.policy.L){var Q=E.policy.cD;BE(E.policy)&&(Q=JC(E,!1,Pq(E)));E=Q;G=R8(P,!0)>=E&&R8(G,!0)>=E}else G.W.length||P.W.length?(Q=G.uJ.info.Xo+P.uJ.info.Xo,Q=10*(1-Pq(E)/Q),E=Math.max(Q,E.policy.cD),G=R8(P,!0)>=E&&R8(G,!0)>=E):G=!0;if(!G)return"abr"; G=H.videoTrack;if(G.W.length>0&&G.G.W.length===1&&xrw(G.G).info.B360);if(!H.aj||G)return"";G=H.policy.sZ;BE(H.policy)&&(G=JC(H.L_,H.aj,Pq(H.L_)));G=WUt(H.videoTrack,H.getCurrentTime(),G)||WUt(H.audioTrack,H.getCurrentTime(),G);return BE(H.policy)?G?"mbnm":"":(H.videoTrack.W.length>0||H.audioTrack.W.length>0|| MRw(H.C,H.videoTrack,H.audioTrack)||MRw(H.C,H.audioTrack,H.videoTrack))&&G?"nord":""}; yu=function(H,E,G){var P=this;this.network=H;this.options=E;this.W=G;this.L=null;if(E.yNR){var Q=new g.M$;this.L=Q.promise;g.lU.ytAtRC&&iw(function(){var e,w;return g.L(function(t){if(t.L==1){if(!g.lU.ytAtRC)return t.return();e=Kb(null);return g.U(t,qE(P,e),2)}w=t.W;g.lU.ytAtRC&&g.lU.ytAtRC(JSON.stringify(w));g.P2(t)})},2); U0t().then(function(e){var w,t,k,W;return g.L(function(I){if(I.L==1)return e.bindInnertubeChallengeFetcher(function(A){return qE(P,Kb(A))}),g.U(I,k8(),2); w=I.W;t=e.getLatestChallengeResponse();k=t.challenge;if(!k)throw Error("BGE_MACIL");W={challenge:k,fX:ez(k),aM:w,bgChallenge:new pa};Q.resolve(W);e.registerChallengeFetchedCallback(function(A){A=A.challenge;if(!A)throw Error("BGE_MACR");A={challenge:A,fX:ez(A),aM:w,bgChallenge:new pa};P.L=Promise.resolve(A)}); g.P2(I)})})}else E.preload&&iUw(this,new Promise(function(e){g.GQ(0,function(){e(HW(P))},0)}))}; Io7=function(H,E,G){var P,Q=(P=H.L.L)==null?void 0:P.encrypt(E,G);return Q?Q:(new g.er(H.L.W)).encrypt(E,G)}; np=function(H,E){var G;for(G=0;G0?Math.min(Q,m):m;return w(I).then(function(){e&&e(A,W-1);return t(JT(H,E),W-1,u)})})} Q=Q===void 0?-1:Q;return t(JT(H,E),G-1,P)}; XVj=function(H){var E=new A_(H);E.QB();if(mT(E,[408125543,374648427,174,224]))E=rU(E);else return null;for(var G=H=null;!Lc(E);){var P=dH(E,!1);if(P===21432)switch(a4(E)){default:H=0;break;case 1:H=1;break;case 3:H=2;break;case 15:H=255}else P===30320?G=rU(E):WB(E)}if(!G)return null;for(var Q,e=P=E=null;!Lc(G);)switch(dH(G,!1)){case 30321:if(a4(G)!==3)return null;break;case 30324:E=IY(G);break;case 30323:e=IY(G);break;case 30325:P=IY(G);break;case 30322:Q=dH(G,!0);Q=ZA(G,Q);Q=new DataView(Q.buffer, Q.byteOffset,Q.byteLength);break;default:WB(G)}return Q?new ooU(H,E,e,P,Q):null}; g.GW=function(H){return H.GH.get("webgl")}; GK=function(H,E){g.z7.call(this);this.api=H;this.durationMs=E;this.L=null;this.handler=new J$(this);g.d(this,this.handler);this.W=lKl;this.handler.Z(this.api,"presentingplayerstatechange",this.gC);this.L=this.handler.Z(this.api,"onAdPlaybackProgress",this.Ix)}; uFQ=function(H,E){var G,P;return(G=q4(H,"macroMarkersListEntity",E))==null?void 0:(P=G.markersList)==null?void 0:P.markerType}; Ba=function(H){var E=H.policy.L;H.D||(E=Math.max(E-1,0));return E*Mh(H)}; N7v=function(H,E,G,P,Q){P=P===void 0?0:P;Q=Q===void 0?0:Q;H.wG()||Ss(H);H.D=new Kd;H.L=E;var e=G,w=Q===0;w=w===void 0?!0:w;var t=H.app.jR(),k=t.getVideoData().isLivePlayback?Infinity:t.Q0(!0)*1E3;e>k&&(e=k-200,H.N=!0);w&&t.getCurrentTime()>=e/1E3?H.B():(H.W=t,w&&(w=e,e=H.W,H.app.cF.addEventListener(g.Ya("vqueued"),H.B),w=isFinite(w)||w/1E3>e.getDuration()?w:0x8000000000000,H.C=new g.cP(w,0x8000000000000,{namespace:"vqueued"}),e.addCueRange(H.C)));w=P/=1E3;e=E.getVideoData().L;P&&e&&H.W&&(t=P,k=0, E.getVideoData().isLivePlayback&&(w=Math.min(G/1E3,H.W.Q0(!0)),k=Math.max(0,w-H.W.getCurrentTime()),t=Math.min(P,E.Q0()+k)),w=Y6Q(e,t)||P,w!==P&&H.L.g5("qvaln",{st:P,at:w,rm:k,ct:t}));E=w;P=H.L;P.getVideoData().V8=!0;P.getVideoData().B=!0;P.T3(!0);e={};H.W&&(e=H.W.sB(),w=H.W.getVideoData().clientPlaybackNonce,e={crt:(e*1E3).toFixed(),cpn:w});P.g5("queued",e);E!==0&&P.seekTo(E+.01,{v9:!0,lq:3,cO:"videoqueuer_queued"});H.G=new c6t(H.T,H.app.jR(),H.L,G,H.app,Q);G=H.G;G.status.status!==Infinity&&(PU(G, 1),G.L.subscribe("internalvideodatachange",G.MB,G),G.W.subscribe("internalvideodatachange",G.MB,G),G.O9.K().U("html5_gapless_use_format_info_fix")&&(G.L.subscribe("internalvideoformatchange",G.MB,G),G.W.subscribe("internalvideoformatchange",G.MB,G)),G.L.subscribe("mediasourceattached",G.MB,G),G.W.subscribe("statechange",G.F_,G),G.L.subscribe("newelementrequired",G.QH,G),G.MB());return H.D}; cL=function(H,E,G){this.Bj=H;this.ZW=E;H=cz(jr);this.L=!!H&&G===H||!1}; Rt=function(H){H=new DataView(H.buffer,H.byteOffset,H.byteLength);return(H=g.DB(H,0,1836476516))?g.j_(H):NaN}; cG=function(H,E,G,P,Q){zr1(H,E,G,void 0,P,Q)}; Qf=function(H,E,G,P,Q){G&&(wCd(H,E,Q===void 0?3:Q),P(H,G),rqt(H))}; g.W9t=function(H){if(H.data.getUint8(H.dataOffset)){var E=H.data;H=H.dataOffset+4;E=E.getUint32(H)*4294967296+E.getUint32(H+4)}else E=H.data.getUint32(H.dataOffset+4);return E}; bf=function(H){this.value=H}; z91=function(H,E,G){if(!(H.videoTrack.uJ.Dr()&&H.audioTrack.uJ.Dr()&&H.Am&&H.Am.W&&H.Am.L))return!1;if(G&&H.ou.isManifestless&&(H.videoTrack.T===-1||H.audioTrack.T===-1))return!0;var P=nN(H.videoTrack,E,G);if(isNaN(P))return!1;H=nN(H.audioTrack,H.policy.dP?E:P,G);return isNaN(H)?!1:!0}; o8U=function(H){var E=Njw();if(E.values){E=E.values;for(var G={},P=g.R(Object.keys(H.values)),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;E[Q]&&H.W[Q]&&(H.values[Q]+=E[Q]-H.W[Q]);var e=H,w=e;if(!w.values[Q]){var t=Njw();w.values=t.values||{};w.h0=t.halfLives||{};w.W=t.values?Object.assign({},t.values):{}}G[Q]=e.values[Q]&&e.h0[Q]?e.values[Q]/Math.pow(2,e.L/e.h0[Q]):0}H.W=G}E=H.h0;G={};G.values=H.W;G.halfLives=E;g.Fj("yt-player-memory",G,2592E3)}; nBs=function(H,E,G,P,Q,e){g.z7.call(this);var w=this;this.target=H;this.api=E;this.Od=G;this.W=0;this.C=!1;this.D=new g.oG(NaN,NaN);this.L=new g.Z0(this);this.E7=this.G=this.B=null;g.d(this,this.L);E=Q||e?g.hE(this.api.K().experiments,"web_player_touch_idle_wait_time_ms",4E3):g.hE(this.api.K().experiments,"web_player_mouse_idle_wait_time_ms",3E3);this.L_=new g.Wt(function(){JA(w,1,!1)},E,this); g.d(this,this.L_);this.p_=new g.Wt(function(){JA(w,2,!1)},E,this); g.d(this,this.p_);this.WF=new g.Wt(function(){JA(w,2048,!1)},E,this); g.d(this,this.WF);this.Jm=new g.Wt(function(){JA(w,512,!1)},E,this); g.d(this,this.Jm);this.PF=3E3;Q||(this.G=this.L.Z(H,"mouseover",this.P3),this.L.Z(H,"mousemove",this.mS),this.L.Z(H,"mouseleave",this.Wl_));this.api.U("web_player_enable_fullscreen_grid_components")&&this.L.Z(H,"wheel",this.l1p,this,!0);yo?this.L.Z(H,"keypress",this.Qqw):this.L.Z(H,"focusin",this.C$);this.T=this.L.Z(H,"mousedown",this.Pi);this.N=this.L.Z(H,"touchstart",this.mC,void 0,!0);JA(this,640,!0)}; y6t=function(H,E){g.D.call(this,{J:"button",QN:["ytp-button","ytp-cards-button"],j:{"aria-label":"Show cards","aria-owns":"iv-drawer","aria-haspopup":"true","data-tooltip-opaque":String(g.L3(H.K()))},V:[{J:"span",Y:"ytp-cards-button-icon-default",V:[{J:"div",Y:"ytp-cards-button-icon",V:[H.K().U("player_new_info_card_format")?JRj():{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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"}}]}]}, {J:"div",Y:"ytp-cards-button-title",iJ:"Info"}]},{J:"span",Y:"ytp-cards-button-icon-shopping",V:[{J:"div",Y:"ytp-cards-button-icon",V:[{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",Y:"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"}},{J:"path",Y:"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"}},{J:"path",Y:"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"}}]}]},{J:"div", Y:"ytp-cards-button-title",iJ:"Shopping"}]}]});this.S=H;this.W=E;this.L=null;this.fade=new g.NB(this,250,!0,100);g.d(this,this.fade);g.Bt(this.W,"ytp-show-cards-title",g.L3(H.K()));this.hide();this.listen("click",this.onClicked);this.listen("mouseover",this.onHover);this.Hv(!0)}; osd=function(H,E){var G=H.provider;H=G.Fo;G=G.videoData;g.B$(G)?E=4:H.PH()?E=3:(E=E.L.VS()?G.Ll:G.Wm,E=E!=null?E:0);H="sms."+E;if(E===3||E===4)H+="_1";return H}; pJ7=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"basechromeinitialized",function(){E.L=new TW(H);g.d(E,E.L);g.as(H,E.L.element,4);E.L.hide()})}; YFu=function(H){return g.ve(H.L,function(E){return!!E.info.video&&E.info.video.qualityOrdinal>=2160})}; b87=function(H,E,G,P){$al(H,E,G,"skipped",function(){Dz(H,P)})}; FVu=function(H,E){E=E===void 0?!1:E;if(!H.mediaElement||H.mediaElement.xM()===0||H.mediaElement.hasError())return!1;var G=H.mediaElement.getCurrentTime()>0;return H.videoData.G&&H.videoData.G.L||H.videoData.isLivePlayback||!H.videoData.Gq()?H.W>=0&&!E&&(E=H.mediaElement.hI(),E.length||!G)?jz(E,H.W-H.timestampOffset):G:G}; yh=function(H){Xu.call(this,H);var E=this;H.addEventListener("settingsMenuInitialized",function(){E.menuItem||(E.menuItem=new dXq(E.api,E.api.TA()),g.d(E,E.menuItem))}); H.addEventListener("openSettingsMenuItem",function(G){if(G==="menu_item_sleep_timer"){if(!E.menuItem){var P;(P=E.api.TA())==null||P.Yt()}E.menuItem.open()}}); We(H,"resetSleepTimerMenuSettings",function(){E.resetSleepTimerMenuSettings()}); We(H,"setSleepTimerTimeLeft",function(G){E.setSleepTimerTimeLeft(G)}); We(H,"setVideoTimeLeft",function(G){E.setVideoTimeLeft(G)})}; i8u=function(H,E){var G=E.manifestlessWindowedLiveConfig;if(G){var P=Number(G.minDvrSequence),Q=Number(G.maxDvrSequence),e=Number(G.minDvrMediaTimeMs),w=Number(G.maxDvrMediaTimeMs);G=Number(G.startWalltimeMs);P&&(H.iG=P);e&&(H.zT=e/1E3,H.U("html5_sabr_parse_live_metadata_playback_boundaries")&&ip(H)&&(H.FX=e/1E3));Q&&(H.LM=Q);w&&(H.Rj=w/1E3,H.U("html5_sabr_parse_live_metadata_playback_boundaries")&&ip(H)&&(H.Qd=w/1E3));G&&(H.CB=G/1E3);(P||e)&&(Q||w)&&(H.IJ=!0,H.isLivePlayback=!0,H.allowLiveDvr=!0, H.tT=!1)}if(P=E.daiConfig){if(P.enableDai){H.Xm=!0;if(Q=P.enableServerStitchedDai)H.enableServerStitchedDai=Q;if(Q=P.enablePreroll)H.p9=Q}var t;if(P.daiType==="DAI_TYPE_SS_DISABLED"||((t=P.debugInfo)==null?0:t.isDisabledUnpluggedChannel))H.EX=!0;P.daiType==="DAI_TYPE_CLIENT_STITCHED"&&(H.X$=!0);P.allowUstreamerRequestAdconfig&&(H.SO=!0);P.sendSsdaiMissingAdBreakReasons&&(H.gx_=!0)}if(t=E.audioConfig){P=t.loudnessDb;P!=null&&(H.yQ=P);P=t.trackAbsoluteLoudnessLkfs;P!=null&&(H.PJ=P);P=t.loudnessTargetLkfs; P!=null&&(H.loudnessTargetLkfs=P);t.audioMuted&&(H.s_=!0);t.muteOnStart&&(H.KY=!0);if(P=t.loudnessNormalizationConfig)P.applyStatefulNormalization&&(H.applyStatefulNormalization=!0),P.preserveStatefulLoudnessTarget&&(H.preserveStatefulLoudnessTarget=!0),Q=P.minimumLoudnessTargetLkfs,Q!=null&&(H.minimumLoudnessTargetLkfs=Q),P=P.maxStatefulTimeThresholdSec,P!=null&&(H.maxStatefulTimeThresholdSec=P);t.playAudioOnly&&(H.It=!0)}if(P=E.playbackEndConfig)t=P.endSeconds,P=P.limitedPlaybackDurationInSeconds, H.mutedAutoplay&&(t&&(H.endSeconds=t),P&&(H.limitedPlaybackDurationInSeconds=P));if(t=E.fairPlayConfig){if(P=t.certificate)H.nX=sH(P);P=Number(t.keyRotationPeriodMs);P>0&&(H.t5=P);t=Number(t.keyPrefetchMarginMs);t>0&&(H.Tg=t)}if(t=E.playbackStartConfig){H.dj=Number(t.startSeconds);Q=t.liveUtcStartSeconds;P=!!H.liveUtcStartSeconds&&H.liveUtcStartSeconds>0;Q&&!P&&(H.liveUtcStartSeconds=Number(Q));if(Q=t.startPosition)if((e=Q.utcTimeMillis)&&!P&&(H.liveUtcStartSeconds=Number(e)*.001),P=Q.streamTimeMillis)H.tH= Number(P)*.001;H.progressBarStartPosition=t.progressBarStartPosition;H.progressBarEndPosition=t.progressBarEndPosition}else if(t=E.skippableSegmentsConfig){if(P=t.introSkipDurationMs)H.pI=Number(P)/1E3;if(t=t.outroSkipDurationMs)H.uh=Number(t)/1E3}if(P=E.skippableIntroConfig)t=Number(P.startMs),P=Number(P.endMs),isNaN(t)||isNaN(P)||(H.yz=t,H.Nl=P);if(t=E.streamSelectionConfig)H.hx=Number(t.maxBitrate);if(t=E.vrConfig)H.PE=t.partialSpherical=="1";if(t=E.webDrmConfig){t.skipWidevine&&(H.GX=!0);if(P= t.widevineServiceCert)H.Lb=sH(P);t.useCobaltWidevine&&(H.useCobaltWidevine=!0);t.startWithNoQualityConstraint&&(H.P9=!0)}if(t=E.mediaCommonConfig){if(P=t.dynamicReadaheadConfig){H.maxReadAheadMediaTimeMs=P.maxReadAheadMediaTimeMs||NaN;H.minReadAheadMediaTimeMs=P.minReadAheadMediaTimeMs||NaN;H.readAheadGrowthRateMs=P.readAheadGrowthRateMs||NaN;var k;if(P=t==null?void 0:(k=t.mediaUstreamerRequestConfig)==null?void 0:k.videoPlaybackUstreamerConfig)H.H6=sH(P);if((k=t==null?void 0:t.sabrContextUpdates)&& k.length>0)for(k=g.R(k),P=k.next();!P.done;P=k.next())P=P.value,P.type&&P.value&&(Q={type:P.type,scope:P.scope,value:sH(P.value)||void 0,sendByDefault:P.sendByDefault},H.sabrContextUpdates.set(P.type,Q))}if(k=t.serverPlaybackStartConfig)H.serverPlaybackStartConfig=k;t.useServerDrivenAbr&&(H.E_=!0);if(k=t.requestPipeliningConfig)H.requestPipeliningConfig=k}if(k=E.inlinePlaybackConfig)H.gQ=!!k.showAudioControls;if(k=E.embeddedPlayerConfig){H.embeddedPlayerConfig=k;if(t=k.embeddedPlayerMode)P=H.K(), P.PF=t,P.G=t==="EMBEDDED_PLAYER_MODE_PFL";if(k=k.permissions)H.allowImaMonetization=!!k.allowImaMonetization}if(k=E.ssapConfig)H.L$=k.ssapPrerollEnabled||!1;if(E=E.webPlayerConfig)E.gatewayExperimentGroup&&(H.gatewayExperimentGroup=E.gatewayExperimentGroup),E.isProximaEligible&&(H.isProximaLatencyEligible=!0)}; qiU=function(H,E,G){var P=!(!E||E.uJ!==H.uJ||E.type!==H.type||E.U7!==H.U7);return G?P&&!!E&&(H.range&&E.range?E.range.end===H.range.end:E.range===H.range)&&E.L+E.W===H.L+H.W:P}; Ruw=function(H,E,G,P,Q){A9.call(this,"ads-engagement-panel",H,E,G,P,Q)}; Kv=function(H,E,G,P){var Q=this;this.D=H;this.cpn=E;this.Fo=G;this.L=P;this.W=new Map;this.T=new Map;this.L_=this.N=NaN;this.C=!1;this.B=this.Xe="";this.isSeeking=!1;this.p_=0;this.G=new nIu(G);this.M4=G.M4;this.Fo.subscribe("statechange",this.WF,this);this.Fo.subscribe("SEEK_TO",function(){Q.Lp()}); this.Fo.subscribe("SEEK_COMPLETE",function(){LV1(Q)}); this.Xe=this.B=this.cpn}; Oq=function(H,E){return LDt(H,E||{},!1)}; Fx=function(){return g.Xj("idb_immediate_commit")}; J6l=function(H,E,G,P){A9.call(this,"invideo-overlay",H,E,G,P);this.interactionLoggingClientData=P}; r6n=function(H){H.L.forEach(function(E){A7(H,E)})}; Kld=function(H){var E=!1;E=E===void 0?!1:E;md.google_image_requests||(md.google_image_requests=[]);var G=Br1("IMG",md.document);E&&(G.attributionSrc="");G.src=H;md.google_image_requests.push(G)}; B77=function(H,E){var G=NaN;H=g.R(H.array);for(var P=H.next();!P.done;P=H.next())if(P=P.value,P.contains(E)&&(isNaN(G)||P.endE&&(isNaN(G)||P.start>5<4&&(H-6&15)>=11&&(W=E(w,t,k));if(H>>1<15&&H+7>=10){var I;$n(28,E);if(I=E[h[6]][h[29]]||null)I=Xfv[0](I),E[h[28]](h[29],I);W=[E]}((H^21)&13)>=5&&(H<<2&16)<6&&(W=G(Q,e,w));(H|64)==H&&($n(30,E),W=g.ve(E[h[6]],Gut));return W}; oy1=function(H,E,G,P,Q,e,w,t){H=JKM(H,G,e,w,P,function(k){var W=k.slotId;k=t(k);W=dU(E.W.get(),"LAYOUT_TYPE_FORECASTING",W);var I={layoutId:W,layoutType:"LAYOUT_TYPE_FORECASTING",f_:"core"},A=new Map,m=Q.impressionUrls;m&&A.set("impression",m);return{layoutId:W,layoutType:"LAYOUT_TYPE_FORECASTING",w5:A,layoutExitNormalTriggers:[new be(E.L,W)],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],f_:"core",clientMetadata:new ZN([new Ri(Q), new nn(G)]),O2:k(I)}}); return H instanceof T?H:[H]}; fe=function(H,E){for(var G={},P=g.R(Object.keys(Z8j)),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var e=E?E+Q:Q;e=H[e+"_webp"]||H[e];g.Eb(e)&&(G[Z8j[Q]]=e)}return G}; Zv=function(H,E){return H+"_"+E.videoId+"_"+E.U9+"_"+ +E.isAutonav+ +E.Sb}; tq=function(H){g.J.call(this);this.S=H;this.listeners=[];this.L=new J$(this);g.d(this,this.L);this.L.Z(this.S,"aduxclicked",this.onAdUxClicked);this.L.Z(this.S,"aduxmouseover",this.QO);this.L.Z(this.S,"aduxmouseout",this.Et);this.L.Z(this.S,"muteadaccepted",this.EtN)}; dn=function(H,E,G,P,Q,e){var w=e===void 0?{}:e;var t=w.Pf===void 0?[]:w.Pf;var k=w.zs===void 0?!1:w.zs;var W=w.sx===void 0?0:w.sx;var I=w.poToken===void 0?"":w.poToken;var A=w.ZB===void 0?void 0:w.ZB;var m=w.cf===void 0?"":w.cf;var u=w.l8===void 0?0:w.l8;var v=w.H6===void 0?new Uint8Array(0):w.H6;var n=w.wS===void 0?!1:w.wS;e=w.qO===void 0?0:w.qO;w=w.q7===void 0?void 0:w.q7;nk.call(this,E,Q);var O=this;this.policy=H;this.logger=new g.Pj("dash/request");this.Dz=this.tK=0;this.Vi=!1;this.XG=this.jl= null;this.U6=!1;this.H6=this.l8=null;this.Hj=this.Wa=!1;this.T1=null;this.qO=this.bM=0;this.Xl=!1;this.kV={Ca:function(N){O.Ca(N)}, aKR:function(){return O.wO}, Ubx:function(N){O.wO=N}, SxZ:function(N){O.tK=N}, teF:function(N){O.E9.lastError=N}, S9:function(){return O.xhr}}; this.timing=new en(this,G);this.zs=k;this.l8=u;this.H6=v;this.Sy=g.h5(this.info,this.policy,P);this.Sy.set("rn",this.tR().toString());this.Sy.set("rbuf",(W*1E3).toFixed().toString());this.zs&&this.Sy.set("smb","1");this.policy.sV&&I&&this.Sy.set("pot",I);m&&this.Sy.set("bbs",m);this.policy.useUmp&&!I0(43,this.Sy.AE)&&(this.Ty=new Qw(this),this.Sy.set("ump","1"),this.Sy.set("srfvp","1"));if(H=this.policy.Kz?this.policy.FF&&!isNaN(this.info.RP)&&this.info.RP>this.policy.dl?!1:!0:!1)E=null,this.policy.vxJ&& this.policy.De?E=[1]:n&&(E=[]),E!=null&&(this.policy.O3&&E.push(2),this.Sy.set("defsel",E.join(",")));this.E9=new ww(this,this.policy,this.Sy,this.info.Du,this.timing,this.logger,P,A);this.Pf=t||null;this.sD=aF7(this);yed(this.E9);P=void 0;if(this.policy.uu$||this.Ty||this.policy.z$)P={method:"POST"},t=(0,g.Vi)([120,0]),A={},this.policy.Uc&&w&&(w=Vw(void 0,w),A.OW=w),this.policy.rj&&this.H6&&(A.videoPlaybackUstreamerConfig=this.H6),this.policy.z$&&(w=this.info.D)&&Object.assign(A,w),Object.keys(A).length> 0?P.body=g.Z8(A,g.$i):P.body=t;if(this.l8&&this.H6){this.Sy.set("iwts","1");P={method:"POST"};w={tq:this.l8*1E3};var q;t=(q=this.info.D)==null?void 0:q.yW;q=g.Z8({bd:w,yW:t||void 0,videoPlaybackUstreamerConfig:this.H6},g.$i);P.body=q}try{this.xhr=h$(this.Sy,this.policy.N,this.timing,H,P),this.E9.W.start(),e&&(this.QQ=new g.Wt(this.fk,e,this),this.QQ.start(e+(this.timing.mZ.N.BK()||0)*1E3)),this.policy.XH&&Rr(this.timing,this.TU()),g.VP(function(){})}catch(N){gIQ(this,N,!0)}}; C6u=function(H,E){g.h9.call(this,g.Q1({"aria-haspopup":"true"},["ytp-audio-settings-menu-item"]),g.td.a_);this.S=H;this.Ru=E;g.aG(this.element,"ytp-audio-settings-menu-item");this.BO=new g.GY(H,void 0,"Audio");this.countLabel=new g.D({J:"div",V:[{J:"span",iJ:"Audio"},{J:"span",Y:"ytp-menuitem-label-count",iJ:"{{content}}"}]});H.U("web_settings_menu_icons")&&this.setIcon({J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"path",j:{d:"M17.5,12c0,2.14-1.5,3.92-3.5,4.38v-1.04c1.44-0.43,2.5-1.76,2.5-3.34c0-1.58-1.06-2.9-2.5-3.34V7.62 C16,8.08,17.5,9.86,17.5,12z M12,4.07v15.86L6.16,15H3V9h3.16L12,4.07z M11,6.22L6.52,10H4v4h2.52L11,17.78V6.22z M21,12 c0,4.08-3.05,7.44-7,7.93v-1.01c3.39-0.49,6-3.4,6-6.92s-2.61-6.43-6-6.92V4.07C17.95,4.56,21,7.92,21,12z", fill:"white"}}]});this.RR=new GP(H,this.Ru,this);g.d(this,this.RR);this.Z(H,"settingsMenuInitialized",this.ow.bind(this));this.Z(H,"videodatachange",this.ow.bind(this));g.d(this,this.countLabel);g.Is(this,this.countLabel);this.Ru.Rq(this);this.Z(H,"onPlaybackAudioChange",this.TW);this.listen("keydown",this.I3);this.listen("click",this.open)}; sF=function(H){H.KS&&(H.KS.dispose(),H.KS=null)}; gTs=function(H,E){E?H.element.classList.add("ytp-jump-button-enabled"):H.element.classList.remove("ytp-jump-button-enabled");H.S.logVisibility(H.element,E);H.S.aP()}; LNs=function(H){G_(H,"impression")&&H.Z5("clickthrough")}; Vf=function(H,E){this.slotId=E;this.triggerType="TRIGGER_TYPE_AD_BREAK_STARTED";this.triggerId=H(this.triggerType)}; g.AL=function(H){return H.match(lbv)}; ND=function(H){return H.api.U("delhi_modern_web_player")?4:H.T?3:2}; UXt=function(H,E){if(!H)return{Nb:[],adSlots:[],Ms:!0,ssdaiAdsConfig:void 0};H.trackingParams&&LO(H.trackingParams);if(H.adThrottled)return{Nb:[],adSlots:[],Ms:!0,ssdaiAdsConfig:void 0};var G,P=(G=H.adSlots)!=null?G:[],Q;G=(Q=H.playerAds)!=null?Q:[];if(!(G&&G.length||P.length))return{Nb:[],adSlots:P,Ms:!1,ssdaiAdsConfig:void 0};Q=G.map(function(w){return w.adPlacementRenderer}).filter(function(w){return!(!w||!w.renderer)}); if(!Q.length&&!P.length)return{Nb:[],adSlots:P,Ms:!1,ssdaiAdsConfig:void 0};if(E.end>0){var e=E.end.toString();Q.forEach(function(w){(w=w.config&&w.config.adPlacementConfig)&&w.kind==="AD_PLACEMENT_KIND_MILLISECONDS"&&w.adTimeOffset&&w.adTimeOffset.offsetEndMilliseconds==="-1"&&w.adTimeOffset.offsetEndMilliseconds!==e&&(w.adTimeOffset.offsetEndMilliseconds=e)}); P.map(function(w){return g.X(w,uI)}).forEach(function(w){var t; (w=w==null?void 0:(t=w.slotEntryTrigger)==null?void 0:t.mediaTimeRangeTrigger)&&w.offsetEndMilliseconds==="-1"&&(w.offsetEndMilliseconds=e)})}return{Nb:Q, adSlots:P,Ms:!1,ssdaiAdsConfig:H.ssdaiAdsConfig}}; X5=function(H){return H.policy.Fa&&!!H.C}; fk=function(H,E){H=H.eq.get(E);if(p3){if(H==null||!H.G_)return!1;E=H.Ov.size>0;return H.ll.length>0||E}return!(H==null||!H.G_)&&!(H==null||!H.OM.totalLength)}; gE=function(H,E,G){var P=G===void 0?{}:G;G=P.videoDuration===void 0?0:P.videoDuration;var Q=P.TR===void 0?void 0:P.TR;P=P.Jo===void 0?!1:P.Jo;this.videoId=H;this.status=E;this.videoDuration=G;this.TR=Q;this.Jo=P}; JG=function(H,E,G,P,Q,e,w){rV.call(this,H,E,G,P,e===void 0?!0:e,!0,["ytp-ad-info-hover-text-button"],"ad-info-hover-text-button",w===void 0?!1:w);this.L=null;this.D=Q;this.hide()}; g.INv=function(H){switch(H.data["Is-Ad-Break-Finished"]){case "true":return 1;case "false":return 2;default:return 0}}; $Gj=function(H){return H.linearAds!=null&&TN(H.adLayoutMetadata)}; wG=function(H,E,G){this.experiments=H;this.E7=E;this.PF=G===void 0?!1:G;this.L_=!!g.Un("cast.receiver.platform.canDisplayType");this.N={};this.p_=!1;this.D=new Map;this.B=!0;this.W=this.G=!1;this.L=new Map;this.WF=0;this.Jm=this.experiments.xp("html5_disable_vp9_encrypted");this.T=this.experiments.xp("html5_enable_encrypted_av1");H=g.Un("cast.receiver.platform.getValue");this.C=!this.L_&&H&&H("max-video-resolution-vpx")||null;sT7(this);this.G=!!(Q_()&&tS()>=21)}; Bi=function(H,E){H.jk&&!H.pm.Lm()?H.jk(E):H.handleError(E)}; xXs=function(H,E){H=g.bO(H.components,E.id,null);H==null&&g.p5(Error("Component not found for element id: "+E.id));return H||null}; n_=function(H,E,G){g.J.call(this);var P=this;this.L=H;this.context=G;this.Q8=new Map;E.get().addListener(this);this.addOnDisposeCallback(function(){E.Iu()||E.get().removeListener(P)})}; T77=function(H){return zuU.then(H)}; jHd=function(){this.state=1;this.aM=null;this.Yx=void 0}; zgQ=function(H){if(!WWl(H,H.T$)||JP(H.audioTrack)&&JP(H.videoTrack))return!1;if(H.policy.W)if(H.policy.C){var E;if((E=H.N)==null?0:U$u(E))return!1}else{E=!1;if(H.Jm.W===2)E=!0;else if(H.Jm.W===3){Q8(H);H.loader.YV();var G=oWQ(H.audioTrack,H.loader.isSeeking()).i4;var P=oWQ(H.videoTrack,H.loader.isSeeking()).i4;var Q=H.loader.getCurrentTime()||0;G=Z7(H,G,Q);P=Z7(H,P,Q);P=Math.min(G,P);Q=H.Jm;P>=Q.T?(Q.g5("sdai",{haltrq:P,est:Q.T}),P=!0):P=!1;P&&(E=!0)}E&&H.policy.B&&H.loader.g5("sabrcrq",{waitad:1}); if(E)return!1}H.policy.g6&&(H.PF=Y3(H,H.audioTrack),H.O7=Y3(H,H.videoTrack));if(!H.W)return H.policy.B&&H.loader.g5("sabrcrq",{nopolicy:1}),!0;if(H.Fo.I5())return H.policy.B&&H.loader.g5("sabrcrq",{utc:1}),!0;if(H.G.B)return H.policy.B&&H.loader.g5("sabrcrq",{audio:1}),!0;if(!H.W.targetAudioReadaheadMs||!H.W.targetVideoReadaheadMs)return H.policy.B&&H.loader.g5("sabrcrq",{noreadahead:1}),!0;if(H.policy.T&&H.loader.D6())return H.policy.B&&H.loader.g5("sabrcrq",{seekToHead:1}),!0;E=Math.min(aS(H.loader, H.audioTrack)*1E3,H.W.targetAudioReadaheadMs);P=Math.min(aS(H.loader,H.videoTrack)*1E3,H.W.targetVideoReadaheadMs);var e=Math.min(E,P),w=H.Fo.getCurrentTime()*1E3,t=$fd(H,w);Q=t.x_;G=t.k_;var k=t.lL;t=t.IU;var W=Q1)return 6;w.PF=new g.Wt(function(){var t=lQ(w);H.Iu()||t==null||!t.isLocked?H.Fo.K().z6()&&H.g5("eosl",{delayA:t==null?void 0:t.info.PO()}):e_n(w)?(H.Fo.K().z6()&&H.g5("eosl",{dunlock:t==null?void 0:t.info.PO()}),pcl(H,w===H.audioTrack)):(H.g5("nue",{ls:t.info.PO()}),t.info.L_+=1,H.Am&&H.Fp())},1E4,H); H.Fo.K().z6()&&H.g5("eosl",{delayS:P.PO()});w.PF.start()}H.policy.bX&&(P==null?void 0:P.uJ)instanceof dE&&P.Uv()&&H.g5("poseos",{itag:P.uJ.info.itag,seg:P.U7,lseg:P.uJ.index.vO(),es:P.uJ.index.G});E.appendBuffer(G,P,Q)}catch(t){if(t instanceof DOMException){if(t.code===11)return 2;if(t.code===12)return 5;if(t.code===22||t.message.indexOf("Not enough storage")===0)return E=Object.assign({name:"QuotaExceededError",buffered:Kk(E.qV()).replace(/,/g,"_"),vheap:u$(H.videoTrack),aheap:u$(H.audioTrack),message:g.pN(t.message, 3),track:H.Am?E===H.Am.W?"v":"a":"u"},Yvw()),H.handleError("player.exception",E),1;g.h3(t)}return 4}return H.Am.f0()?3:0}; HMw=function(H,E,G){H.cT.yp("ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",E,G,void 0);H=g.R(H.W);for(var P=H.next();!P.done;P=H.next())P.value.nP(E,G)}; Tv=function(H,E,G,P){H.L().UQ(E,P);G=G();H=H.L();H.cT.YC("ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",E,P,G);E=g.R(G);for(G=E.next();!G.done;G=E.next())a:{P=H;G=G.value;P.cT.Xu("ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",G);P.cT.Xu("ADS_CLIENT_EVENT_TYPE_SCHEDULE_SLOT_REQUESTED",G);try{var Q=P.L;if(g.xm(G.slotId))throw new T("Slot ID was empty",void 0,"ADS_CLIENT_ERROR_MESSAGE_INVALID_SLOT");if(RM(Q,G))throw new T("Duplicate registration for slot.",{slotId:G.slotId,slotEntryTriggerType:G.slotEntryTrigger.triggerType}, "ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");if(!Q.HL.TV.has(G.slotType))throw new T("No fulfillment adapter factory registered for slot of type: "+G.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_FULFILLMENT_ADAPTER_REGISTERED");if(!Q.HL.qA.has(G.slotType))throw new T("No SlotAdapterFactory registered for slot of type: "+G.slotType,void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");V6l(Q,"TRIGGER_CATEGORY_SLOT_ENTRY",G.slotEntryTrigger?[G.slotEntryTrigger]:[]);V6l(Q,"TRIGGER_CATEGORY_SLOT_FULFILLMENT", G.slotFulfillmentTriggers);V6l(Q,"TRIGGER_CATEGORY_SLOT_EXPIRATION",G.slotExpirationTriggers);var e=P.L,w=G.slotType+"_"+G.slotPhysicalPosition,t=qa(e,w);if(RM(e,G))throw new T("Duplicate slots not supported",void 0,"ADS_CLIENT_ERROR_MESSAGE_DUPLICATE_SLOT");t.set(G.slotId,new ifs(G));e.L.set(w,t)}catch(Pt){Pt instanceof T&&Pt.NS?(P.cT.zy("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED",Pt.NS,G),xQ(Pt,G,void 0,void 0,Pt.Kv)):(P.cT.zy("ADS_CLIENT_ERROR_TYPE_REGISTER_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR", G),xQ(Pt,G));break a}RM(P.L,G).C=!0;try{var k=P.L,W=RM(k,G),I=G.slotEntryTrigger,A=k.HL.Sh.get(I.triggerType);A&&(A.Ze("TRIGGER_CATEGORY_SLOT_ENTRY",I,G,null),W.Jm.set(I.triggerId,A));for(var m=g.R(G.slotFulfillmentTriggers),u=m.next();!u.done;u=m.next()){var v=u.value,n=k.HL.Sh.get(v.triggerType);n&&(n.Ze("TRIGGER_CATEGORY_SLOT_FULFILLMENT",v,G,null),W.p_.set(v.triggerId,n))}for(var O=g.R(G.slotExpirationTriggers),q=O.next();!q.done;q=O.next()){var N=q.value,r=k.HL.Sh.get(N.triggerType);r&&(r.Ze("TRIGGER_CATEGORY_SLOT_EXPIRATION", N,G,null),W.L_.set(N.triggerId,r))}var B=k.HL.TV.get(G.slotType).get().build(k.G,G);W.B=B;var l=k.HL.qA.get(G.slotType).get().build(k.T,G);l.init();W.W=l}catch(Pt){Pt instanceof T&&Pt.NS?(P.cT.zy("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED",Pt.NS,G),xQ(Pt,G,void 0,void 0,Pt.Kv)):(P.cT.zy("ADS_CLIENT_ERROR_TYPE_SCHEDULE_SLOT_FAILED","ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",G),xQ(Pt,G));uM(P,G,!0);break a}P.cT.Xu("ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",G);P.L.OQ(G);for(var S=g.R(P.W),z=S.next();!z.done;z= S.next())z.value.OQ(G);Ajq(P,G)}}; Bju=function(){g.z7.call(this);var H=this;this.L={};this.addOnDisposeCallback(function(){for(var E=g.R(Object.keys(H.L)),G=E.next();!G.done;G=E.next())delete H.L[G.value]})}; zzd=function(H){var E;if(H=(E=H.mediaElement)==null?void 0:E.audioTracks())for(E=0;E0&&(H[E]=Math.floor(G*1E3))}; sT=function(H,E,G,P){var Q=H.D.Ce();Q.ssr_sk=(E*1E3).toFixed(0);Q.ssr_t=(H.L*1E3).toFixed(0);Q.ssr_r=G;Q.ssr_st=(H.startTimeSecs*1E3).toFixed(0);Q.ssr_n=(0,g.ON)().toFixed(0);Q.ssr_f=(H.B.L*1E3).toFixed(0);Q.ssr_fa=H.G?"1":"0";Q.ssr_o=(H.Dz.BK()*1E3||0).toFixed(0);Q.ssr_v=(P*1E3).toFixed(0);E=H.W.uJ.index;E.Pn(H.W.U7,!0)&&(Q.ssr_ist=(E.getStartTime(H.W.U7)*1E3).toFixed(0),Q.ssr_id=(E.getDuration(H.W.U7)*1E3).toFixed(0));H.loader.g5("ssr",Q)}; IGn=function(H,E,G,P){if(H)if(Array.isArray(H)){var Q=P;for(P=0;P500));P++);P=Q}else if(typeof H==="object")for(Q in H){if(H[Q]){var e=Q;var w=H[Q],t=E,k=G;e=typeof w!=="string"||e!=="clickTrackingParams"&&e!=="trackingParams"?0:(w=DXQ(atob(w.replace(/-/g,"+").replace(/_/g,"/"))))?vL(e+".ve",w,t,k):0;P+=e;P+=vL(Q,H[Q],E,G);if(P>500)break}}else G[E]=uq(H),P+=G[E].length;else G[E]=uq(H),P+=G[E].length;return P}; tp=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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"}}]}}; ZVd=function(H,E,G){E=E===void 0?0:E;G=G===void 0?-1:G;if(!H.totalLength||!G)return new DataView(new ArrayBuffer(0));G<0&&(G=H.totalLength-E);H.focus(E);if(!TC(H,E,G)){var P=H.W,Q=H.G;H.focus(E+G-1);Q=new Uint8Array(H.G+H.L[H.W].length-Q);for(var e=0,w=P;w<=H.W;w++)Q.set(H.L[w],e),e+=H.L[w].length;H.L.splice(P,H.W-P+1,Q);Ij(H);H.focus(E)}P=H.L[H.W];return new DataView(P.buffer,P.byteOffset+E-H.G,G)}; rmq=function(H,E){H.settingsButton=E;H.element.id=E.element.getAttribute("aria-controls")}; r8w=function(H,E,G){if(H.appInstallData)if(E){var P;G=(P=yP(E,go,62))!=null?P:new go;l0(G,6,H.appInstallData);Lt(E,go,62,G)}else G&&(G.client.configInfo=G.client.configInfo||{},G.client.configInfo.appInstallData=H.appInstallData)}; yr=function(H,E,G){this.triggeringLayoutId=E;this.triggerType="TRIGGER_TYPE_LAYOUT_ID_ENTERED";this.triggerId=G||H(this.triggerType)}; $Rd=function(H){return H.U("web_settings_menu_surface_custom_playback")&&H.U("web_settings_use_input_slider")}; SM=function(H,E){if(E===void 0)for(var G=tdM(),P=0;Pthis.policy.Xo)return!1;var t=this.ou.L[w.id];return yA(this.T).get(w.id)>P||t.Du.G>4||t.C>4?!1:this.PF.has(+w.itag)?!1:!0},H); $Wj(H.T)&&(G=g.W2(G,function(w){return w.video.width<=854&&w.video.height<=480}))}G.length||(G=H.C.videoInfos); var Q=G;H.policy.rh&&(Q=qww(H,Q,E));Q=g.W2(Q,E.D,E);if(H.L.isLocked()&&H.T.L){var e=g.VS(G,function(w){return w.id===H.T.L}); e?Q=[e]:lt(H.T,"")}H.policy.rh||(Q=qww(H,Q,E));Q.length||(Q=[G[0]]);Q.sort(function(w,t){return pf(H,w)-pf(H,t)}); E={};for(G=1;GE.R1.video.width?(g.Fh(Q,G),G--):pf(H,E.eX)*H.policy.L_>pf(H,E.R1)&&(g.Fh(Q,G-1),G--);E=Q[Q.length-1];H.BF=!!H.G&&!!H.G.info&&H.G.info.K_!==E.K_;H.D=Q;H.eR.clear();G=!1;for(e=0;e=1080&&(G=!0);vkn(H.policy,E,H.ou.T6)}; Ad=function(H,E){g.os.call(this,"Auto-translate",0,H,E);this.S=H;this.languages={};H.createClientVe(this.element,this,127301);H.logVisibility(this.element,!0)}; BH1=function(){this.D=0;this.L_=Infinity;this.N=!0;this.W=this.L=2;this.G=1;this.T=!1;this.C=10;this.WF=!1;this.B=1;this.p_=!1}; wE=function(H,E){E=E===void 0?!0:E;H.X.JJ&&!H.videoData.backgroundable&&H.mediaElement&&!H.w6()&&(H.isBackground()&&H.mediaElement.rT()?(H.g5("bgmobile",{suspend:1}),H.fR(!0,!0)):!H.isBackground()&&E&&EZ(H)&&H.g5("bgmobile",{resume:1}))}; kB1=function(H,E,G,P){if(H.X.U("html5_ssdai_log_ssevt_in_loader")||H.X.U("html5_ssdai_log_ssevt_in_loader_200ms")||H.X.U("html5_ssdai_log_ssevt_in_loader_timers")||H.X.U("html5_ssdai_log_ssevt_in_loader_cuerange"))P=H.p_?0:Math.round((P-G)*1E3),H.playback.g5("ssevt",{tag:"sstme",ad:E!==H.playback.Yz(),cpn:E,st:(G-H.playback.Ax()).toFixed(3),late:P})}; NC=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"videodatachange",function(){E.updateMetadata()}); this.events.Z(H,"presentingplayerstatechange",function(){A6M(E)}); this.events.Z(H,"SEEK_COMPLETE",function(){XS1(E)})}; g.TF=function(H,E){return H.X.experiments.Bo().L.A7(WRU)?H.XI.EQ(E)||H.XI.L:H.EQ(E)}; q5=function(H,E){E=E===void 0?"":E;return H.JD?cV(!0):NF(bk(cV(g.Ns(H,E)),function(G){return cV(!!G)}),function(){return cV(!1)})}; gV=function(H,E,G,P){var Q=["ytp-ad-survey-submit-button"];Q.push("ytp-ad-survey-submit-button-rounded");uO.call(this,H,E,G,P,Q,"survey-submit")}; g.xm=function(H){return/^[\s\xa0]*$/.test(H)}; Mf=function(H){var E=H.videoTrack.T!==-1,G=H.audioTrack.T!==-1;if(!E||!G)if(E=!E&&lQ(H.videoTrack),G=!G&&lQ(H.audioTrack),E||G){G=E?H.videoTrack:H.audioTrack;E=E?H.audioTrack:H.videoTrack;G.T=lQ(G).info.U7;if(H.policy.T){var P;E.T=((P=lQ(E))==null?void 0:P.info.U7)||E.T}if(E.T!==-1){var Q=Math.max(E.uJ.index.getStartTime(E.T),G.uJ.index.getStartTime(G.T));ty(H.ou)&&Math.abs(Q-ty(H.ou))>432E3&&qyM(H.ou);H.W&&(Q=H.W,H.W=0);g.VP(function(){H.policy.T||B2M(H,Q,102)}); H.loader.g5("initManifestlessSync",{st:Q,ost:Q+H.loader.YV(),a:H.audioTrack.T,v:H.videoTrack.T});H.G&&(H.G.resolve(Q+.1),H.G=null);H.policy.T&&B2M(H,Q,102)}}}; oIU=function(H,E){var G;return!((G=H.B)==null||!G.T.has(E))||uYU(H.G,E)}; ZPM=function(H,E){if(!H.PT)return!1;var G=H.PT.startTimeMs*.001-1,P=H.PT.endTimeMs*.001;H.PT.type==="repeatChapter"&&P--;return Math.abs(E-G)<=1E-6||Math.abs(E-P)<=1E-6||E>=G&&E<=P}; AnM=function(H,E){var G,P,Q;E=g.X((G=E.getWatchNextResponse())==null?void 0:(P=G.playerOverlays)==null?void 0:(Q=P.playerOverlayRenderer)==null?void 0:Q.decoratedPlayerBarRenderer,BX);if(E==null?0:E.progressColor)for(G=0;G.5}; bq=function(H,E,G,P){if(G)return $0();G={};var Q=sY();E=g.R(E);for(var e=E.next();!e.done;e=E.next())if(e=e.value,H.canPlayType(Q,e.getInfo().mimeType)||P){var w=e.L.video.quality;if(!G[w]||G[w].getInfo().wV())G[w]=e}H=[];G.auto&&H.push(G.auto);P=g.R(RY);for(Q=P.next();!Q.done;Q=P.next())(Q=G[Q.value])&&H.push(Q);return H.length?jD(H):$0()}; p9=function(H){return window.navigator.msPointerEnabled?"MSPointer"+H.charAt(0).toUpperCase()+H.substring(1):"mouse"+H}; g.Ee=function(H,E){g.J.call(this);var G=this;this.api=H;this.D={};this.pM=null;this.T={};this.C=this.W=null;E=new IH(E,function(P){P!==G.EQ({playerType:P.getPlayerType()})&&P.dispose()}); g.d(this,E);this.G=this.N=this.L=new g.iX(H.K());this.B=E}; KV=function(H){var E=[],G=Wg(H);G&&E.push(G);E=g.Nq(E,H.G.Hn());G=g.R(H.W);for(var P=G.next();!P.done;P=G.next()){P=P.value;for(var Q=g.R(P.info.kp),e=Q.next(),w={};!e.done;w={ag:void 0},e=Q.next())w.ag=e.value,P.j9&&(E=g.W2(E,function(t){return function(k){return!C7q(k,t.ag)}}(w))),(rv(w.ag)||w.ag.type===4)&&E.push(w.ag)}H.L&&!qiU(H.L,g.Q3(E),H.L.uJ.qd())&&E.push(H.L); return E}; vUj=function(H){function E(G){return{toString:function(){return G()}}} H.macros.SURVEY_LOCAL_TIME_EPOCH_S=E(function(){var G=new Date;return(Math.round(G.valueOf()/1E3)+-1*G.getTimezoneOffset()*60).toString()}); H.macros.SURVEY_ELAPSED_MS=E(function(){return(Date.now()-H.G).toString()})}; is=function(H){if(H.L6){var E=H.VA;var G=H.L6;H=H.O$();var P=Gxw(E);if(Rb(P)){if(P=E.nQ(G).compose(Ox7(E,G)).compose(jxv(E,G)).compose(qz(E,G.videoData)).compose(RV(E,G.videoData,G)).compose(I5(E,G)).compose(dvT(E,G)),Rb(H)||E.U("html5_apply_pbr_cap_for_drm"))P=P.compose(g7U(E,G))}else E.U("html5_perf_cap_override_sticky")&&(P=P.compose(I5(E,G))),E.U("html5_ustreamer_cap_override_sticky")&&(P=P.compose(g7U(E,G)));P=P.compose(dvT(E,G));E=G.videoData.vD.compose(P).compose(G.videoData.Kb).compose(H)}else E= q3;return E}; tdM=function(){return Object.values(g.tJ("client-screen-nonce-store",{})).filter(function(H){return H!==void 0})}; Pn=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-ad-feedback-dialog-background",V:[{J:"div",Y:"ytp-ad-feedback-dialog-container",V:[{J:"div",Y:"ytp-ad-feedback-dialog-form",j:{role:"dialog",tabindex:"-1"},V:[{J:"div",Y:"ytp-ad-feedback-dialog-title",V:[{J:"span",iJ:"{{title}}"}]},{J:"span",Y:"ytp-ad-info-dialog-feedback-options-title",iJ:"{{reasonsTitle}}"},{J:"div",Y:"ytp-ad-info-dialog-feedback-options"},{J:"div",Y:"ytp-ad-feedback-dialog-confirm-container",V:[{J:"button",Y:"ytp-ad-feedback-dialog-cancel-button", iJ:"{{cancelLabel}}"},{J:"button",Y:"ytp-ad-feedback-dialog-confirm-button",iJ:"{{confirmLabel}}"}]}]}]}]},"ad-info-dialog",E,G,P);this.D=[];this.L=null;this.T=this.HF("ytp-ad-feedback-dialog-cancel-button");this.N=this.HF("ytp-ad-feedback-dialog-confirm-button");this.WF=this.HF("ytp-ad-info-dialog-feedback-options");this.PF=this.HF("ytp-ad-feedback-dialog-title");this.G=this.W=null;this.hide()}; G81=function(H,E){return Kz(H,1,E)}; $$=function(H,E,G){var P=BG();E=E();H.GJ(G,BG()-P);return E}; TFl=function(H,E){var G=H.L.L;if(G){H.videoInfos=H.C;var P=g.VS(H.videoInfos,function(Q){return Q.id===G}); P&&P.video.qualityOrdinal===E?H.videoInfos=[P]:(P=H.videoInfos.map(function(Q){return Q.id}),H.loader.g5("sabrpf",{pfid:""+G, vfids:""+P.join(".")}),SfM(H,E,E),lt(H.L,""))}else SfM(H,E,E)}; MdM=function(H){return H.B||H.U("web_player_media_session_infinity")&&H.isLivePlayback}; rEv=function(H,E){H=document.querySelector(H);if(!H)return!1;var G="",P=H.nodeName;P==="SCRIPT"?(G=H.src,G||(G=H.getAttribute("data-timing-href"))&&(G=window.location.protocol+G)):P==="LINK"&&(G=H.href);VH(document)&&H.setAttribute("nonce",VH(document));return G?(H=gi.getEntriesByName(G))&&H[0]&&(H=H[0],G=Yp(),Zc("rsf_"+E,G+Math.round(H.fetchStart)),Zc("rse_"+E,G+Math.round(H.responseEnd)),H.transferSize!==void 0&&H.transferSize===0)?!0:!1:!1}; fnM=function(){if(document.visibilityState)var H="visibilitychange";else{if(!document[Up+"VisibilityState"])return"";H=Up+"visibilitychange"}return H}; gzq=function(H){if(isNaN(Number(H.timeoutSeconds))||!H.text||!H.ctaButton||!g.X(H.ctaButton,g.rI)||!H.brandImage)return!1;var E;return H.backgroundImage&&g.X(H.backgroundImage,L$)&&((E=g.X(H.backgroundImage,L$))==null?0:E.landscape)?!0:!1}; HJt=function(H){Xu.call(this,H);var E=this;this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"initialvideodatacreated",function(G){kb(jq(),16623);E.L=g.ri();var P=H.K().PL&&!G.ML;if(n1(G)&&P){kb(jq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"});if(G.getWatchNextResponse()){var Q,e=(Q=G.getWatchNextResponse())==null?void 0:Q.trackingParams;e&&LO(e)}if(G.getPlayerResponse()){var w;(G=(w=G.getPlayerResponse())==null?void 0:w.trackingParams)&&LO(G)}}else kb(jq(), 32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"}),G.getEmbeddedPlayerResponse()&&(w=(e=G.getEmbeddedPlayerResponse())==null?void 0:e.trackingParams)&&LO(w)}); this.events.Z(H,"loadvideo",function(){kb(jq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:E.L})}); this.events.Z(H,"cuevideo",function(G){H.U("html5_embed_no_ads_cue_video_logging")&&G!==1||kb(jq(),32594,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED",parentCsn:E.L})}); this.events.Z(H,"largeplaybuttonclicked",function(G){kb(jq(),27240,G.visualElement)}); this.events.Z(H,"playlistnextbuttonclicked",function(G){kb(jq(),27240,G.visualElement)}); this.events.Z(H,"playlistprevbuttonclicked",function(G){kb(jq(),27240,G.visualElement)}); this.events.Z(H,"playlistautonextvideo",function(){kb(jq(),27240,void 0,{implicitGestureType:"INTERACTION_LOGGING_GESTURE_TYPE_AUTOMATED"})})}; dRM=function(H){var E=H.S.NZ().sR();H=H.S.qS(!0,!0);return E.height-(H.height+H.top)}; NDv=function(H,E){H=H.player.K();if($H(H)||cw(H)){H=g.tJ("INNERTUBE_CONTEXT");var G,P;(H==null?0:(G=H.adSignalsInfo)==null?0:G.advertisingId)&&typeof(H==null?void 0:(P=H.adSignalsInfo)==null?void 0:P.limitAdTracking)!=="undefined"&&(E.advertisingId=H.adSignalsInfo.advertisingId,E.advertisingIdSignalType="DEVICE_ID_TYPE_CONNECTED_TV_IFA",E.limitAdTracking=H.adSignalsInfo.limitAdTracking)}}; sL=function(H,E,G,P,Q,e,w,t,k){function W(){(I&&"readyState"in I?I.readyState:0)===4&&E&&g.NL(E)(I)} G=G===void 0?"GET":G;P=P===void 0?"":P;t=t===void 0?!1:t;var I=Pks();if(!I)return null;"onloadend"in I?I.addEventListener("loadend",W,!1):I.onreadystatechange=W;g.Xj("debug_forward_web_query_parameters")&&(H=ihs(H));I.open(G,H,!0);e&&(I.responseType=e);w&&(I.withCredentials=!0);G=G==="POST"&&(window.FormData===void 0||!(P instanceof FormData));if(Q=kuU(H,Q))for(var A in Q)I.setRequestHeader(A,Q[A]),"content-type"===A.toLowerCase()&&(G=!1);G&&I.setRequestHeader("Content-Type","application/x-www-form-urlencoded"); k&&"onprogress"in I&&(I.onprogress=function(){k(I.responseText)}); if(t&&"setAttributionReporting"in XMLHttpRequest.prototype){H={eventSourceEligible:!0,triggerEligible:!1};try{I.setAttributionReporting(H)}catch(m){Za(m)}}I.send(P);return I}; Ofw=function(H,E,G){return ycQ(new gj(H,E,G),H)}; nUn=function(H,E){var G,P=(G=window.screen)==null?void 0:G.orientation;if(H.X.B&&P&&P.lock&&(!g.pC||!DRt))if(E){E=P.type.indexOf("portrait")===0;G=H.template.getVideoAspectRatio();var Q=E;G<1?Q=!0:G>1&&(Q=!1);H.Jg&&Q===E||(P=P.lock(Q?"portrait":"landscape"),P!=null&&P.catch(function(){}),H.Jg=!0)}else H.Jg&&(H.Jg=!1,P.unlock())}; Nb7=function(H){var E=E===void 0?"UNKNOWN_INTERFACE":E;if(H.length===1)return H[0];var G=aCM[E];if(G){G=new RegExp(G);for(var P=g.R(H),Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,G.exec(Q))return Q}var e=[];Object.entries(aCM).forEach(function(w){var t=g.R(w);w=t.next().value;t=t.next().value;E!==w&&e.push(t)}); G=new RegExp(e.join("|"));H.sort(function(w,t){return w.length-t.length}); P=g.R(H);for(Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,!G.exec(Q))return Q;return H[0]}; OMM=function(H,E){for(var G=[],P=g.R(H.Q8.values()),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var e=Q.trigger;e instanceof EL&&e.triggeringLayoutId===E&&G.push(Q)}G.length?xY(H.JO(),G):xQ("Survey is submitted but no registered triggers can be activated.")}; wrv=function(H,E,G){H.L[E]=G}; Fn=function(H){var E=(0,g.ON)();H.data.forEach(function(G){G.expire=0||E.Du.n9("defrag")==="1"||E.Du.n9("otf")==="1"){E=null;break a}Q=$p(0,4096)}Q=new f6([new jf(5,P.uJ,Q,"createProbeRequestInfo"+P.C,P.U7)],E.W);Q.V0=G;Q.L=E.L;E=Q}E&&I4v(H,E)}}; g.T8=function(H,E){g.oT(H,"addEmbedsConversionTrackingParams",[E])}; Ue=function(H,E){var G={};g.D.call(this,{J:"button",QN:["ytp-playlist-menu-button","ytp-button"],j:(G.title=H.U("player_tooltip_data_title_killswitch")?"{{title}}":"",G["data-tooltip-title"]="{{tooltip-title}}",G["aria-owns"]=String(E.element.id),G["aria-haspopup"]="true",G["aria-label"]="Playlist",G["data-overlay-order"]="3",G),V:[{J:"div",Y:"ytp-playlist-menu-button-icon",V:[{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!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"}}]}]},{J:"div",Y:"ytp-playlist-menu-button-title",iJ:"{{playlistTitle}}"},{J:"div",Y:"ytp-playlist-menu-button-text",iJ:"{{text}}"}]});var P=this;this.api=H;this.playlist=null;this.visible=!1;H.createClientVe(this.element,this,70344);this.Z(H,"videodatachange",this.L);this.Z(H,"videoplayerreset",this.L);this.Z(H,"onPlaylistUpdate",this.L);this.Z(H,"presentingplayerstatechange",this.r5);this.Z(H,"appresize",this.r5);this.hide();this.L();M2(H,this.element,this);this.listen("click",function(){H.logClick(P.element); H.U("delhi_web_player_use_external_playlist_panel")?H.n_("onToggleExternalPlaylistPanel"):js(E,P.element,!1)})}; rV=function(H,E,G,P,Q,e,w,t,k){e=e===void 0?!1:e;w=w===void 0?[]:w;k=k===void 0?!1:k;s9.call(this,H,{J:"span",QN:["ytp-ad-hover-text-button"].concat(w)},t===void 0?"ad-hover-text-button":t,E,G,P);this.button=this.W=null;this.N=e;this.T=Q;this.G=k;this.hide()}; cnQ=function(H){H.L&&H.L.listen("click",H.FO,H);g.Pm(H.N,"click",function(){return H.FO()})}; NZd=function(H,E,G,P,Q){try{if(H.state.status!=="FULFILLED")throw Error("calling handleResolve before the promise is fulfilled.");var e=G(H.state.value);e instanceof g.t4?Mcs(H,E,e,P,Q):P(e)}catch(w){Q(w)}}; UKU=function(H,E){E&&f5(H.Fo,new Gk(E.video,E.reason));H.L.Yp&&(E=BTw(H.L,"a"),H.Fo.eG(new Gk(E.audio,E.reason)))}; NU=function(){this.B=[];this.N=[];this.L=[];this.WF=[];this.T=[];this.L_=[];this.G=new Map;this.C=new Map;this.W=new Set;this.Jm=new Map}; ynl=function(H,E){H.L&&L17(H.L,E)}; c6t=function(H,E,G,P,Q,e){e=e===void 0?0:e;g.J.call(this);var w=this;this.policy=H;this.L=E;this.W=G;this.O9=Q;this.T=e;this.D=this.G=null;this.currentVideoDuration=this.C=-1;this.B=!1;this.Aq=new Kd;this.tD=P-E.YV()*1E3;this.Aq.then(void 0,function(){}); this.timeout=new g.Wt(function(){w.xz("timeout")},1E4); g.d(this,this.timeout);this.N=isFinite(P)||this.O9.K().experiments.xp("html5_pseudogapless_shorts")&&OV(E.getVideoData());this.status={status:0,error:null}}; g.xW=function(H){var E=H.K(),G=g.pC||g.zk?{style:"will-change: opacity"}:void 0,P=E.D,Q=["ytp-modern-videowall-still"];E.W&&Q.push("ytp-videowall-show-text");g.D.call(this,{J:"a",QN:Q,j:{href:"{{url}}",target:P?E.L_:"","aria-label":"{{aria_label}}","data-is-live":"{{is_live}}","data-is-list":"{{is_list}}","data-is-mix":"{{is_mix}}"},V:[{J:"div",Y:"ytp-modern-videowall-still-image",j:{style:"{{background}}"},V:[{J:"span",Y:"ytp-modern-videowall-still-info-duration",iJ:"{{duration}}"}]},{J:"span",Y:"ytp-modern-videowall-still-info", j:{"aria-hidden":"true"},V:[{J:"span",Y:"ytp-modern-videowall-still-info-bg",V:[{J:"span",Y:"ytp-modern-videowall-still-info-content",j:G,V:[{J:"span",Y:"ytp-modern-videowall-still-info-title",iJ:"{{title}}"},{J:"span",Y:"ytp-modern-videowall-still-info-author",iJ:"{{author}}"},{J:"span",Y:"ytp-modern-videowall-still-view-count-and-date-info",iJ:"{{views_and_publish_time}}"},{J:"span",Y:"ytp-modern-videowall-still-info-live",iJ:"Live"}]}]}]},{J:"span",QN:["ytp-modern-videowall-still-listlabel-regular", "ytp-modern-videowall-still-listlabel"],j:{"aria-hidden":"true"},V:[{J:"span",Y:"ytp-modern-videowall-still-listlabel-icon"},"Playlist",{J:"span",Y:"ytp-modern-videowall-still-listlabel-length",V:[" (",{J:"span",iJ:"{{playlist_length}}"},")"]}]},{J:"span",QN:["ytp-modern-videowall-still-listlabel-mix","ytp-modern-videowall-still-listlabel"],j:{"aria-hidden":"true"},V:[{J:"span",Y:"ytp-modern-videowall-still-listlabel-mix-icon"},"Mix",{J:"span",Y:"ytp-modern-videowall-still-listlabel-length",iJ:" (50+)"}]}]}); this.suggestion=null;this.W=P;this.api=H;this.L=new g.Z0(this);g.d(this,this.L);this.listen("click",this.onClick);this.listen("keypress",this.onKeyPress);this.L.Z(H,"videodatachange",this.onVideoDataChange);H.createServerVe(this.element,this);this.onVideoDataChange()}; jLM=function(H){return H?(H=("responseXML"in H?H.responseXML:H).getElementsByTagName("root"))&&H.length>0?H[0]:null:null}; zH=function(H,E,G,P){Rc("https://"+E+"/videoplayback?probe=1",G,function(Q){!P.U("html5_onesie_host_racing")||P.videoData.isLivePlayback||P.U("html5_onesie_probe_ec_hosts")||P.TI||P.A1();H.D.push(Q)},function(Q){H.D.push(Q.details)})}; rD=function(H){return H.G?!1:!H.keySystemAccess&&!!Qa()&&H.keySystem==="com.microsoft.playready"}; bMl=function(){g.NL(function(){var H=TY();requestAnimationFrame(function(){setTimeout(function(){H===TY()&&KT("ftl",void 0,void 0)},0)})})()}; TH=function(H,E,G){return H.protocol+"://i1.ytimg.com/vi/"+E+"/"+(G||"hqdefault.jpg")}; wC=function(H,E){if(!H)throw new TypeError("Expected instream video ad renderer");if(!H.playerVars)throw new TypeError("Expected player vars in url encoded string");var G=W9(H.playerVars),P=Number(G.length_seconds);if(isNaN(P))throw new TypeError("Expected valid length seconds in player vars");var Q=Number(H.trimmedMaxNonSkippableAdDurationMs);P=isNaN(Q)?P:Math.min(P,Q/1E3);Q=H.playerOverlay||{};Q=Q.instreamAdPlayerOverlayRenderer===void 0?null:Q.instreamAdPlayerOverlayRenderer;var e=H.playerOverlay|| {};e=e.playerOverlayLayoutRenderer===void 0?null:e.playerOverlayLayoutRenderer;var w=G.video_id;w||(w=(w=H.externalVideoId)?w:void 0);if(!w)throw new TypeError("Expected valid video id in IVAR");if(E&&P===0){var t;E=(t=iMU[w])!=null?t:P}else E=P;return{playerVars:G,videoLengthSeconds:E,instreamAdPlayerOverlayRenderer:Q,playerOverlayLayoutRenderer:e,adVideoId:w,w5:H.pings?Dv(H.pings):new Map,kZ:O4(H.pings)}}; Y3=function(H,E){Q8(H);H.loader.YV();return oWQ(E,H.loader.isSeeking())}; qGu=function(H,E){var G;if((G=lQ(E))!=null&&G.isLocked&&e_n(E)){if(H.Fo.K().z6()){var P;H.g5("eosl",{munlock:(P=lQ(E))==null?void 0:P.info.PO()})}pcl(H,E===H.audioTrack)}}; RKn=function(H,E){var G;g.sn(H.K())&&(G={J:"div",Y:"ytp-panel-footer-content",V:[{J:"span",iJ:"Adjust download quality from your "},{J:"a",Y:"ytp-panel-footer-content-link",iJ:"Settings",j:{href:"/account_downloads"}}]});g.os.call(this,"Quality",g.td.WG,H,E,void 0,void 0,G);this.S=H;this.WF={};this.C={};this.W={};this.Jm=new Set;this.L=this.G=!1;this.D="unknown";this.B="";this.N=new g.cX;g.d(this,this.N);this.G=this.S.U("web_player_use_new_api_for_quality_pullback");this.L=this.S.U("web_player_enable_premium_hbr_playback_cap"); H.U("web_settings_menu_icons")&&(E=H.U("delhi_modern_web_player_icons")?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:{J:"svg",j:{height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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(E));g.aG(this.BO.element,"ytp-quality-menu");this.Z(H,"videodatachange",this.ow);this.Z(H,"videoplayerreset",this.ow);this.Z(H,"onPlaybackQualityChange",this.Rn);this.ow();H.createClientVe(this.element,this,137721)}; g.YG=function(){return{innertubeApiKey:g.tJ("INNERTUBE_API_KEY"),innertubeApiVersion:g.tJ("INNERTUBE_API_VERSION"),P0:g.tJ("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),wY:g.tJ("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),x6:g.tJ("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:g.tJ("INNERTUBE_CONTEXT_CLIENT_VERSION"),Lh:g.tJ("INNERTUBE_CONTEXT_HL"),FS:g.tJ("INNERTUBE_CONTEXT_GL"),Nj:g.tJ("INNERTUBE_HOST_OVERRIDE")||"",Ky:!!g.tJ("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),wFF:!!g.tJ("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT", !1),appInstallData:g.tJ("SERIALIZED_CLIENT_CONFIG_DATA")}}; SEn=function(H,E,G,P){if(g.rW(H)&&!Array.isArray(H)){E="playlist list listType index startSeconds suggestedQuality".split(" ");G={};for(P=0;P0)for(E=g.R(H.sabrContextUpdates.values()),G=E.next();!G.done;G=E.next())fbn(t,G.value,P);ip(H)&&e&&fbn(t,e,P);P=H.K().L;t.clientInfo={clientName:BZ1[P.c.toUpperCase()]||0};P.cbrand&&(t.clientInfo.deviceMake=P.cbrand);P.cmodel&&(t.clientInfo.deviceModel= P.cmodel);P.cver&&(t.clientInfo.clientVersion=P.cver);P.cos&&(t.clientInfo.osName=P.cos);P.cosver&&(t.clientInfo.osVersion=P.cosver);P=H.K();P.U("html5_sabr_enable_server_xtag_selection")&&P.AG&&(t.clientInfo.hl=P.AG);H.VB&&(t.VB=H.VB);return t}; Vl=function(H,E){E=E===void 0?!1:E;var G=AD[H],P=wFt[G],Q=YGQ[H];if(!Q||!P)return null;E=new bd(E?Q.height:Q.width,E?Q.width:Q.height,Q.fps);P=dc(P,E,G);return new T0(H,P,{video:E,Xo:Q.bitrate/8})}; ul=function(H){var E;return!((E=H.PT)==null||!E.postId)&&H.api.getPresentingPlayerType()!==2}; g.ng=function(H,E,G){HR(H,G)||Ld(H,E,G);HR(H,"video_to_ad")||Ld(H,E,"video_to_ad");HR(H,"ad_to_video")||Ld(H,E,"ad_to_video");HR(H,"ad_to_ad")||Ld(H,E,"ad_to_ad")}; Tp7=function(H){/[^a-zA-Z0-9;.!_-]/.test(H)&&(H=H.replace(/[+]/g,"-").replace(/[^a-zA-Z0-9;.!_-]/g,"_"));return H}; vJ=function(){}; aH=function(H,E,G,P){g.J.call(this);var Q=this;this.loader=H;this.policy=E;this.uJ=G;this.timing=P;this.logger=new g.Pj("dash");this.W=[];this.Jm=[];this.L=this.rP=null;this.z$=!1;this.O7=this.T$=0;this.T=-1;this.WF=!1;this.E7=-1;this.PF=null;this.p_=NaN;this.L_=[];this.kV={Fx:function(){return Q.G}, yJx:function(){return Q.W}, prR:function(){return Q.B}}; this.G=new Gjj(H,E,G);this.policy.L&&(this.B=new yMv(this.G,this.loader.getManifest(),this.policy,function(e){Q.policy.CZ&&Q.g5("buftl",e)})); this.policy.ML&&(this.N=new dL(this));this.Xo=G.info.Xo;this.C=this.policy.WF?!1:G.lr();this.isManifestless=G.lr();this.D=this.C;g.d(this,this.PF)}; G9n=function(H,E,G,P,Q){return O4s(H,E,G,P,Q)}; X7v=function(){}; tmq=function(H){H.Iu()||(H.L_=!0,H.uV({onmdkrdy:1}),rg(H))}; uE=function(H){return function(){return H}}; KjT=function(H,E){function G(){var Q;return g.L(function(e){Q=P-Date.now();return Q<1E3?g.U(e,R2n(H),0):(iw(G,0,Math.min(Q,6E4)),e.bJ(0))})} var P=Date.now()+E;G()}; ZMM=function(H){switch(H){case "audio_audible":return"adaudioaudible";case "audio_measurable":return"adaudiomeasurable";case "fully_viewable_audible_half_duration_impression":return"adfullyviewableaudiblehalfdurationimpression";case "measurable_impression":return"adactiveviewmeasurable";case "overlay_unmeasurable_impression":return"adoverlaymeasurableimpression";case "overlay_unviewable_impression":return"adoverlayunviewableimpression";case "overlay_viewable_end_of_session_impression":return"adoverlayviewableendofsessionimpression"; case "overlay_viewable_immediate_impression":return"adoverlayviewableimmediateimpression";case "viewable_impression":return"adviewableimpression";default:return null}}; Do=function(H){Xu.call(this,H);var E=this;We(H,"getAvailableQualityData",function(){return E.getAvailableQualityData()}); We(H,"getAvailableQualityDataAndMessaging",function(){return E.getAvailableQualityDataAndMessaging()})}; hy=function(H,E,G,P){s9.call(this,H,{J:"div",Y:"ytp-ad-survey-none-of-the-above"},"survey-none-of-the-above",E,G,P);this.button=null;this.L=this.HF("ytp-ad-survey-none-of-the-above");this.hide()}; yd=function(H,E){db||(tv?tv.logEvent(H,E):(Ib.push({type:"EVENT",eventType:H,payload:E}),Ib.length>10&&Ib.shift()))}; Z2n=function(H,E){E?E.errorMetadata&&g.p5(new g.LN(H+" failed with status "+E.errorMetadata.status)):g.p5(new g.LN(H+" failed with empty response"))}; Vj=function(H){return H.W.every(function(E){return E.hasOwnProperty("offsetMilliseconds")})}; Sx=function(H,E,G,P,Q,e,w,t,k,W,I,A){Xm.call(this,e,H,E,Q);this.SR=G;this.D=w;this.d5=t;this.ST=k;this.Da=W;this.C=I;this.T=A;this.yN=Ew7(E,G)}; gUl=function(H,E,G,P,Q,e,w){if(!(r3||qj()||Q_()))return $0();var t={},k=Cr7(G),W=m5M(G,H.U("html5_filter_fmp4_in_hls"),H.T.B,t);if(!W)return w({noplst:1}),$0();Q_j(W);G={};var I=(G.fairplay="https://youtube.com/api/drm/fps?ek=uninitialized",G),A;G=[];var m=[],u=[],v=null,n="";P=P&&P.match(/hls_timedtext_playlist/)?new Aew({itag:"0",url:P,codecs:"vtt",width:0,height:0,fps:0,bitrate:0,CP:new g.gm("English","en",!1)}):null;for(var O=g.R(Object.keys(W)),q=O.next();!q.done;q=O.next())if(q=q.value,!H.U("html5_disable_drm_hfr_1080")|| q!=="383"&&q!=="373"){q=g.R(W[q]);for(var N=q.next();!N.done;N=q.next())if(N=N.value,N.width){for(var r=g.R(N.W),B=r.next();!B.done;B=r.next())if(B=B.value,W[B]){N.L=B;break}N.L||(N.L=sQq(W,N));if(r=W[N.L])if(G.push(N),N.QF==="fairplay"&&(A=I),B="",N.w9==="PQ"?B="smpte2084":N.w9==="HLG"&&(B="arib-std-b67"),B&&(n=B),u.push(yaM(r,[N],P,e,N.itag,N.width,N.height,N.fps,k,void 0,void 0,A,B)),!v||N.width*N.height*N.fps>v.width*v.height*v.fps)v=N}else m.push(N)}else t[q]="disdrmhfr";u.reduce(function(l, S){return S.getInfo().isEncrypted()&&l},!0)&&(A=I); Q=Math.max(Q,0);I=v||{};W=I.fps===void 0?0:I.fps;v=I.width===void 0?0:I.width;I=I.height===void 0?0:I.height;O=H.U("html5_native_audio_track_switching");u.push(yaM(m,G,P,e,"93",v,I,W,k,"auto",Q,A,n,O));Object.entries(t).length&&w(t);return bq(H.T,u,Bs(H,E),!1)}; PaU=function(H,E,G){H=H.map(function(k){return wC(g.X(k.renderingContent,S4),!1)}); var P=H.map(function(k){return k.videoLengthSeconds}),Q=P.map(function(k,W){return new eh(W,P)}),e=E,w=G,t=[]; H.forEach(function(k,W){w=Math.min(e+k.videoLengthSeconds*1E3,G);hm(k.playerVars,Q[W]);t.push({Vu:k,oA:e,CD:w,PD:W,WR:Q[W]});e=w}); return t}; k4=function(H,E,G,P){P=P===void 0?"":P;H.updateValue("label",G===void 0?"":G);H.updateValue("icon",E);g.Od(H.L);H.W.start();H.updateValue("title",P);g.Bt(H.element,"ytp-bezel-text-hide",!P)}; JP=function(H){var E;return $r(H)||qp((E=H.G.Hy())==null?void 0:E.info)}; HP7=function(H,E){if(E.info.G){H.MZ=E.info;if(H.T){var G=H.T,P=o9M(H,!1);G=Ags(G);H.loader.tP(H.uJ,P,G);H.p_||H.policy.PL||DL7(H);H.p_=null}Og(H)}H.C&&vmd(H.C,E);if(P=H.Hy())if(P=g.Np(P,E,H.policy.Ei,H.policy.yS)){H.W.pop();H.W.push(P);return}H.W.push(E)}; oTM=function(H){if(g.nb(H)&&fU)return!1;if(g.a1){if(!g.Gp(47)||!g.Gp(52)&&g.Gp(51))return!1}else if(g.Ez)return!1;return window.AudioContext||window.webkitAudioContext?!0:!1}; Rb=function(H){if(wN&&H.Xo)return!1;var E=g.lF.auto;return H.W===E&&H.L===E}; mW=function(H){H=aK(H);LRQ||(LRQ=rS1());LRQ(H)}; I0u=function(H){H&&(H.dataset?H.dataset[DAj()]="true":iyT(H))}; g.Ev=function(H){var E=new wfQ;return E.isAvailable()?H?new xo(E,H):E:null}; rKl=function(H,E){var G=[];E?E.isTrusted===!0?G.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED"):E.isTrusted===!1?G.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_NOT_TRUSTED"):G.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_TRUSTED_PROPERTY_UNDEFINED"):G.push("BISCOTTI_BASED_DETECTION_STATE_AS_SEEK_EVENT_UNDEFINED");Us(0,"a.s_",{metadata:H,states:G});bT("ASDSTAT",0)}; Cr7=function(H){H=g.R(H);for(var E=H.next();!E.done;E=H.next())if(E=E.value,E.url&&(E=E.url.split("expire/"),!(E.length<=1)))return+E[1].split("/")[0];return NaN}; Kmj=function(H){return H.K_==="H"||H.K_==="h"}; J$=function(H){g.J.call(this);this.C=[];this.FI=H||this}; JTU=function(H){var E;return!((E=H.webPlayerContextConfig)==null||!E.enableSelfProfilingLogging)}; w7l=function(H){var E={};return xc((E.dlt=H.downloadedEndTime.toString(),E.mket=H.maxKnownEndTime.toString(),E.avbr=H.averageByteRate.toString(),E))}; F2=function(H){H.BT(!1);H.W&&H.S.logVisibility(H.element,H.pP)}; d0=function(H,E,G){wV.call(this,H);var P=this;this.Da=G;E.get().addListener(this);this.addOnDisposeCallback(function(){E.Iu()||E.get().removeListener(P)})}; wBU=function(H){return g.tJ("client-screen-nonce-store",{})[H===void 0?0:H]}; ni=function(H){if(H.indexOf(":")>=0)throw Error("Database name cannot contain ':'");}; lCu=function(H){H.au&&!H.isSuspended&&Dl(H.schedule)&&(KgU(H,H.au),H.au="")}; xRv=function(H){return Object.values(URt).includes(H)}; zK7=function(H){var E=H.qZ();if(!(g.F(E.getPlayerState(),64)&&H.pS().isLivePlayback&&H.PT.startTimeMs<5E3)){if(H.PT.type==="repeatChapter"){var G,P=(G=TUu(H.lm()))==null?void 0:G.d7(),Q;G=(Q=H.getVideoData())==null?void 0:Q.ox;P instanceof g.A0&&G&&(Q=G[uu(G,H.PT.startTimeMs)],P.renderChapterSeekingAnimation(0,Q.title));isNaN(Number(H.PT.loopCount))?H.PT.loopCount=0:H.PT.loopCount++;H.PT.loopCount===1&&H.cF.n_("innertubeCommand",H.getVideoData().Zs)}P={cO:"application_loopRangeStart"};if(H.PT.type=== "clips"||H.PT.type==="shortsLoop")P.seekSource=58;E.seekTo(H.PT.startTimeMs*.001,P)}}; TZM=function(H){if(!g.F(H.playerState,128))if(H.videoData.isLoaded(),H.qE=g.dm(H.videoData.fW),g.ah(H.videoData)){H.HT.tick("bpd_s");NM(H).then(function(){H.HT.tick("bpd_c");if(!H.Iu()){H.a5&&(H.wP(m1(m1(H.playerState,512),1)),EZ(H));var P=H.videoData;P.endSeconds&&P.endSeconds>P.startSeconds&&Oe(H,P.endSeconds);H.wx.finished=!0;X2(H,"dataloaded");H.FD.sC()&&lv(H);opu(H.VA,H.L6)}}); H.U("html5_log_media_perf_info")&&H.g5("loudness",{v:H.videoData.yQ.toFixed(3)},!0);var E,G=(E=H.mediaElement)==null?void 0:E.E2();if(G&&"disablePictureInPicture"in G&&H.X.Le)try{G.disablePictureInPicture=H.X.cD&&!H.videoData.backgroundable}catch(P){g.p5(P)}bAs(H);H.lF=new s4(H.videoData)}else X2(H,"dataloaded")}; iz=function(H,E){var G=H.D;G||(H.D=new Kd,G=H.D,Yo(H,E));return G}; n6=function(H){Xu.call(this,H);var E=this;this.useLivingRoomPoToken=!1;this.T=new g.M$;this.L=!1;this.HT=null;this.B=!1;this.D=null;this.C=!1;var G=H.K().getWebPlayerContextConfig();this.events=new g.Z0(H);g.d(this,this.events);this.events.Z(H,"spsumpreject",function(Q,e,w){E.C=e;Q&&E.B&&!E.D&&(E.U("html5_generate_content_po_token")&&w?E.dI(w):E.U("html5_generate_session_po_token")&&qSn(E));E.D||E.api.g5("stp",{s:+E.B,b:+E.C})}); this.events.Z(H,"poTokenVideoBindingChange",function(Q){E.dI(Q)}); if(this.U("html5_web_po_on_demand_init"))var P=this.events.Z(H,"videodatachange",function(Q,e){e.K8&&!E.B&&(ugq(E),E.events.Sq(P))}); this.useLivingRoomPoToken=!(G==null||!G.useLivingRoomPoToken);H.addEventListener("csiinitialized",function(){E.HT=H.Nf();E.U("html5_web_po_on_demand_init")?E.G=Sqq():ugq(E)}); H.addEventListener("trackListLoaded",this.zA.bind(this));H.YA(this)}; Sej=function(H){if(H.Am)if(H.mI(),H.Am.T)try{H.X.z6()&&H.g5("rms",{l:"vprms",sr:H.u8(),rs:O0(H.Am)});H.Am.clear();var E;(E=H.mediaElement)!=null&&(E.W=H.Am);H.Am=null}catch(G){E=new g.LN("Error while clearing Media Source in VideoPlayer: "+G.name+", "+G.message),E=ms(E),H.handleError(E),H.mp()}else H.mp()}; $Ls=function(H,E){function G(){SU({writeThenSend:!0},H,E)} H=H===void 0?!1:H;E=E===void 0?200:E;var P=zl(H,E),Q=P===qRl||P===JZl?5E3:Vdw;g.Xj("web_gel_timeout_cap")&&!P.L&&(Q=kl(function(){G()},Q),P.L=Q); Tl(P.W);Q=g.tJ("LOGGING_BATCH_TIMEOUT",g.kF("web_gel_debounce_ms",1E4));g.Xj("shorten_initial_gel_batch_timeout")&&hr&&(Q=SGj);Q=kl(function(){g.kF("gel_min_batch_size")>0?OI().getSequenceCount({cttAuthInfo:void 0,isJspb:H,tier:E})>=FRT&&G():G()},Q); P.W=Q}; nh=function(H){var E=H.data.getUint16(H.offset+H.L);H.L+=2;return E}; L5v=function(H,E,G,P){return new jf(H.type,H.uJ,H.range,"reslice"+H.C,H.U7,H.startTime,H.duration,E,G,P,H.xj,H.clipId)}; g.fCn=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,j:{d:"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 M25,13 L11,13 L11,14.63 C14.96,15.91 18.09,19.04 19.37,23 L25,23 L25,13 L25,13 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 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", fill:"#fff"}}]}}; Ux=function(H){H.mediaElement=H.X.deviceIsAudioOnly?new g.kj(g.pu("AUDIO")):tH.pop()||new g.kj(g.pu("VIDEO"));g.d(H,H.mediaElement);H.jR().setMediaElement(H.mediaElement);try{H.X.ML?(H.FH&&H.events.Sq(H.FH),H.FH=H.events.Z(H.mediaElement,"volumechange",H.TVo)):(H.mediaElement.IN(H.CM.muted),H.mediaElement.setVolume(H.CM.volume/100))}catch(Q){H.xz("html5.missingapi",2,"UNSUPPORTED_DEVICE","setvolume.1;emsg."+(Q&&typeof Q==="object"&&"message"in Q&&typeof Q.message==="string"&&Q.message.replace(/[;:,]/g, "_")));return}g.hH(H.l3);IBT(H);var E=H.template,G=H.mediaElement.E2();E.s2=G;E.D4=!1;E.s2.parentNode||bl(E.iE,E.s2,0);E.F9=new g.Yn(0,0,0,0);RxM(E);Tp(E);G=E.s2;g.aG(G,"video-stream");g.aG(G,g.JN.MAIN_VIDEO);var P=E.app.K();P.zc&&G.setAttribute("data-no-fullscreen","true");P.U("html5_local_playsinline")?"playsInline"in sY()&&(G.playsInline=!0):P.KB&&(G.setAttribute("webkit-playsinline",""),G.setAttribute("playsinline",""));P.Cv&&E.s2&&E.Z(G,"click",G.play,G);try{H.mediaElement.activate()}catch(Q){H.xz("html5.missingapi", 2,"UNSUPPORTED_DEVICE","activate.1;emsg."+(Q&&typeof Q==="object"&&"message"in Q&&typeof Q.message==="string"&&Q.message.replace(/[;:,]/g,"_")))}}; xn=function(H,E){var G=H.S.getVideoData(E);return G?H.Pp(G,E||H.S.getPresentingPlayerType(!0)):null}; Oe=function(H,E){H.Dx&&jdU(H);H.Dx=new g.cP(E*1E3,0x7ffffffffffff);H.Dx.namespace="endcr";H.addCueRange(H.Dx)}; p7Q=function(H,E){if(E&&H.hlsvp)return $0();if(H.hlsFormats){E=Cp(H.hlsFormats);var G;if(((G=H.dP)==null?0:G.W)&&E){G=[];for(var P=g.R(E),Q=P.next();!Q.done;Q=P.next())G.push(Q.value.itag);H.g5("hlsfmt",{itags:G.join(".")})}H.AT=CjQ(H.lJ,E);H.AT&&Oc7(H,H.AT);G=H.clientPlaybackNonce;var e,w,t,k;return gUl(H.lJ,H.isAd(),E,(k=(e=H.playerResponse)==null?void 0:(w=e.captions)==null?void 0:(t=w.playerCaptionsRenderer)==null?void 0:t.baseUrl)!=null?k:null,H.hx,G,function(W){return H.publish("ctmp","hlsflt", W)}).then(function(W){for(var I=0,A=[],m=g.R(W),u=m.next();!u.done;u=m.next()){u=u.value; var v=void 0;A.push((v=u.getInfo())==null?void 0:v.itag);var n=v=void 0;((v=u.getInfo())==null?void 0:(n=v.audio)==null?void 0:n.numChannels)>I&&(I=u.getInfo().audio.numChannels)}I>2&&H.g5("hlschl",{mn:I});var O;((O=H.dP)==null?0:O.W)&&H.g5("hlsfmtaf",{itags:A.join(".")});var q;if(H.U("html5_enable_vp9_fairplay")&&((q=H.T)==null?0:d_(q)))for(H.g5("drm",{sbdlfbk:1}),I=g.R(H.Eu),A=I.next();!A.done;A=I.next())if(A=A.value,h4(A)){H.T=A;break}gg(H,W)})}return $0()}; Jh=function(H){this.value=H}; Hs1=function(H){for(var E=g.R(Object.values(H.T)),G=E.next();!G.done;G=E.next())G.value.dispose();H.T={};H.W=null;H.C=null;fJ(H)}; SUs=function(){return ih("Android")&&!(qQ()||rH()||J_()||ih("Silk"))}; T6=function(H,E){H.dP=NaN;H.G6=null;H.FI.stop();H.O7&&E&&H.O7.Of();H.s7=null;H.O7=null}; yq=function(H,E,G,P,Q){P=P===void 0?!1:P;Q=Q===void 0?!1:Q;VM.call(this,G);this.isLive=P;this.B=!!Q;this.levels=this.W(H,E);this.D=new Map;this.levels.length>1&&this.levels[0].isDefault()&&this.levels.splice(0,1)}; l6s=function(H){gx.W.cancel();Qj=H;gx.done=!0}; cAu=function(H){var E;H=LZ((E=H.serializedClientExperimentFlags)!=null?E:"","&");this.flags=new Map(Object.entries(H).map(function(G){var P=g.R(G);G=P.next().value;P=P.next().value;return typeof P==="string"?[G,P]:[G,P[0]]}))}; AP=function(H){return g.aC(H.S.lm())!=null?g.aC(H.S.lm()).Mm()?!!H.S.getOption("captions","tracklist",{includeAsr:!0}).length:!0:!1}; a6=function(){$4.apply(this,arguments)}; Cv=function(H){if(H.lastError==="ump.spsrejectfailure")H.timing.p_||SuU(H.Du,!1,H.Sy,H.policy,H.D);else{if(H.lastError==="net.timeout")H.timing.G8((0,g.ON)());else{var E=H.timing;yX(E,(0,g.ON)(),E.T)}if(H.lastError==="net.nocontent")++H.Du.B;else{if((E=H.lastError==="net.timeout"||H.lastError==="net.connect"||H.lastError==="net.closed")&&!I0(30,H.Sy.AE)){var G=nI(H);G.timedOut+=1}else G=nI(H),G.L+=1;H.timing.p_||SuU(H.Du,E,H.Sy,H.policy,H.D)}}H.gP.Ca(5)}; FI=function(H,E,G){this.audio=H;this.video=E;this.reason=G}; fWq=function(H,E,G){H=ISQ(H);E=E?g.zX(E):"";G=G||5;$F()&&g.m9(H,E,G)}; PEw=function(H){H.WF.clearAll();H.W.clear();H.L.clear();H.T.clear();H.Yp=[];H.C=null;H.qC.clear();H.z$.clear();H.L_=[];H.hm=[];H.ox=[];H.ML=[];H.WO.clear();H.yG.clear();H.AG.clear();H.au.clear();H.N=!1;H.cN=0;H.p_=!1;H.eR=!1;H.H9=0;H.gt=0;H.jT=!1;H.jm=!1;H.G="";Hs1(H.app.UR());pJ(H.app.UR(),H.playback,!1);H.E7.clear();H.B.isActive()&&lB(H)}; OE=function(H){g.av.call(this,{J:"button",QN:["ytp-expand-right-bottom-section-button","ytp-button"],j:{title:"{{title}}","aria-pressed":"{{pressed}}","data-priority":"1","data-title-no-tooltip":"{{data-title-no-tooltip}}"},V:[g.sx()]});this.L=!1;this.listen("click",this.W);H.createClientVe(this.element,this,276954)}; rM=function(H,E){tb(H,1,E.startTicks);tb(H,2,E.RV);tb(H,3,E.timescale)}; FWt=function(H){var E=H.S.getVideoData();return!!E.G6||!!E.captionTracks.length||g.pnU(E,H.S)}; g.m9U=function(H){this.lJ=H;this.N=new mEn;this.xG=this.hn=!1;this.CU=2;this.eR=20971520;this.s7=8388608;this.PF=120;this.kc=this.RO=this.Pc=2;this.vD=this.hH=!1;this.YE=1E3;this.U2=15;this.yA=1;this.L_=1.15;this.Jm=1.05;this.qF=1;this.o2=this.bx=!1;this.sZ=6;this.G=!1;this.Jn=100;this.To=10;this.yP=6;this.jd=!1;this.e2=1;this.De=this.n6=!1;this.AD=2;this.KB=this.hV=this.Eu=!1;this.G6=!0;this.UT=this.xx=this.E7=this.qC=!1;this.ql=!0;this.HM=!1;this.D="";this.hj=[];this.j2=this.ML=!1;this.lV=0;this.JD= "";this.xZ=this.P_=this.CZ=this.mH=this.xH=this.zc=this.T=this.q6=this.vt=this.L=this.au=this.O7=this.uZ=this.Le=this.p_=this.PL=this.L8=!1;this.lG=!0;this.kG=this.PW=this.CL=this.KZ=this.y_=this.W=this.MZ=!1;this.BF=!0;this.Fa=this.YJ=this.WF=this.v6=this.jT=this.T$=!1;this.OA=3;this.uX=this.Fh=this.AT=this.AG=this.Hc=this.wi=this.Wm=this.bX=!1;this.yw=0;this.gt=this.AA=this.Ll=!1;this.FI=1;this.Kb=this.N6=this.C=this.WN=!1;this.rI=g.hE(this.lJ.experiments,"html5_min_readbehind_secs");this.U1=g.hE(this.lJ.experiments, "html5_min_readbehind_cap_secs");this.eh=this.lJ.U("html5_offline_reset_media_stream_on_unresumable_slices");this.Xo=NaN;this.Yi=Ea(this,"html5_request_size_min_kb",64)*1024;this.Yp=2097152;this.v_=Ea(this,"html5_bypass_contention_secs");this.iC=1048576;this.hC=Ea(this,"html5_repredict_interval_ms",1800);this.Jb=Ea(this,"html5_head_miss_secs",5);this.jz=Ea(this,"html5_min_upgrade_health_secs",10);this.O1=Ea(this,"html5_min_seconds_between_format_selections",8);this.GY=Ea(this,"html5_max_buffer_health_for_downgrade_secs", 15);this.Kz=Fa;this.cD=g.hE(this.lJ.experiments,"html5_min_startup_buffered_media_duration_secs");this.M6=g.hE(this.lJ.experiments,"html5_post_interrupt_readahead");this.hQ=this.lJ.U("html5_disable_classic_alr");this.V_=g.hE(this.lJ.experiments,"html5_probe_primary_delay_base_ms")||5E3;this.gT=Ea(this,"html5_ssdai_failure_retry_limit",3);this.nZ=this.lJ.experiments.xp("html5_clone_original_for_fallback_location");this.yG=g.hE(this.lJ.experiments,"html5_subsegment_readahead_target_buffer_health_secs"); this.wH=g.hE(this.lJ.experiments,"html5_subsegment_readahead_timeout_secs");this.wKN=g.hE(this.lJ.experiments,"html5_subsegment_readahead_min_buffer_health_secs");this.jh=g.hE(this.lJ.experiments,"html5_subsegment_readahead_min_buffer_health_secs_on_timeout");this.SR_=g.hE(this.lJ.experiments,"html5_subsegment_readahead_min_load_speed");this.D$=g.hE(this.lJ.experiments,"html5_subsegment_readahead_load_speed_check_interval");this.XLx=g.hE(this.lJ.experiments,"html5_subsegment_readahead_seek_latency_fudge"); this.zo=Ea(this,"html5_hopeless_secs",15);this.FF=this.lJ.U("html5_restrict_streaming_xhr_on_sqless_requests");this.dl=g.hE(this.lJ.experiments,"html5_max_headm_for_streaming_xhr");this.pw=this.lJ.U("html5_pipeline_manifestless_allow_nonstreaming");this.E3=this.lJ.U("html5_prefer_server_bwe3");this.qQN=this.lJ.U("html5_last_slice_transition");this.wTJ=this.lJ.U("html5_store_xhr_headers_readable");this.zS=g.hE(this.lJ.experiments,"html5_max_drift_per_track_secs");this.fb=this.lJ.U("html5_no_placeholder_rollbacks"); this.JGJ=this.lJ.U("html5_subsegment_readahead_enable_mffa");this.dP=this.lJ.U("html5_allow_video_keyframe_without_audio");this.KB=g.vV(this.lJ)&&!g.aa()&&this.lJ.U("html5_adjust_media_time_for_non_cobalt_tv");this.wC=this.lJ.U("html5_enable_vp9_fairplay");this.K8=1048576;this.kC=this.lJ.U("html5_woffle_resume");this.Vf=this.lJ.U("html5_abs_buffer_health");this.N_=this.lJ.U("html5_interruption_resets_seeked_time");this.tb=g.hE(this.lJ.experiments,"html5_max_live_dvr_window_plus_margin_secs")||46800; this.QJ7=this.lJ.U("html5_report_captions_ctmp_qoe");this.tN=this.lJ.U("html5_explicitly_dispose_xhr");this.Ei=!this.lJ.U("html5_encourage_array_coalescing");this.lJ.U("html5_limit_media_merge_size")?Fa?tS()<21?this.yS=786432:this.yS=8388608:this.yS=262144:this.yS=0;this.C5=this.lJ.U("html5_filter_non_efficient_formats_for_safari");this.lJ.U("html5_format_hybridization");this.mO=this.lJ.U("html5_abort_before_separate_init");this.Dp=WG();this.k$$=this.lJ.U("html5_serialize_server_stitched_ad_request"); this.sV=this.lJ.U("html5_attach_po_token_to_bandaid");this.cg=g.hE(this.lJ.experiments,"html5_max_redirect_response_length")||8192;this.BD=this.lJ.U("html5_rewrite_timestamps_for_webm");this.WO=this.lJ.U("html5_only_media_duration_for_discontinuities");this.Cw=g.hE(this.lJ.experiments,"html5_resource_bad_status_delay_scaling")||1;this.lJ.U("html5_onesie_live");this.Me=g.hE(this.lJ.experiments,"html5_onesie_live_ttl_secs")||8;this.vc=g.hE(this.lJ.experiments,"html5_attach_num_random_bytes_to_bandaid"); this.SuJ=this.lJ.U("html5_update_container_type_on_codec_family_change");this.lJ.U("html5_apply_ssap_slice_info_adjustment");this.V8=this.lJ.U("html5_enable_sabr_host_fallback");this.Zs=this.lJ.U("html5_gapless_fallback_on_append_error");this.dLm=this.lJ.U("html5_shorts_stop_request_when_buffer_to_end");this.dM_=this.lJ.U("html5_vod_stop_request_when_buffer_to_end");this.z$=this.lJ.U("html5_ssdai_use_post_for_media")&&this.lJ.U("gab_return_sabr_ssdai_config");this.uu$=this.lJ.U("html5_use_post_for_media"); this.b8=this.lJ.U("html5_use_live_ump_heartbeat");this.useUmp=this.lJ.U("html5_use_ump");this.bQ=this.lJ.hC;this.oR=this.lJ.U("html5_reset_primary_stats_on_redirector_failure");this.SS=this.lJ.U("html5_remap_to_original_host_when_redirected");this.kS=this.lJ.U("html5_use_network_error_code_enums");this.xC=this.lJ.U("html5_disable_overlapping_requests");this.enableServerDrivenRequestCancellation=this.lJ.U("html5_enable_server_driven_request_cancellation");this.Oc=this.lJ.U("html5_enable_sabr_request_timing"); this.SX=this.lJ.U("html5_enable_lawnmower");this.jt=this.lJ.z6()?g.hE(this.lJ.experiments,"html5_continuous_goodput_probe_interval_ms"):0;this.PU=g.hE(this.lJ.experiments,"html5_jumbo_ull_nonstreaming_mffa_ms")||NaN;this.mMm=this.lJ.U("html5_live_defrag_only_h264_playbacks");this.vxJ=this.lJ.U("html5_live_defrag_only_h264_formats");this.XH=this.lJ.U("html5_record_now");this.JJ=g.hE(this.lJ.experiments,"html5_drm_byterate_soft_cap");this.yn=g.hE(this.lJ.experiments,"html5_drm_live_byterate_soft_cap"); this.B=this.lJ.U("html5_sabr_log_request_creation");this.g6=this.lJ.U("html5_use_buffer_timeline_for_sabr_request_creation");this.cK=this.lJ.U("html5_sabr_report_request_cancellation_info");this.p8=this.lJ.U("html5_spoof_4k");this.ej=Ea(this,"html5_min_media_duration_for_cabr_slice");this.SZ=Ea(this,"html5_sabr_min_media_bytes_factor_to_append_for_stream")||.01;this.O3=this.lJ.U("html5_remove_defrag_without_frame_level_streaming");this.j8=this.lJ.U("html5_consume_all_buffered_bytes_one_poll");this.NN= this.lJ.U("html5_disable_urgent_adaptation");this.dT=this.lJ.U("html5_apply_constraints_in_client_for_sabr");this.rj=this.lJ.U("html5_send_video_playback_ustreamer_config");this.O_=Ea(this,"html5_max_discontinuity_rewrite_count");this.Cv=Ea(this,"html5_fixed_media_duration_for_request");this.X7=this.lJ.U("html5_apply_fix_for_missing_seg_info_without_logger");this.xx=this.lJ.U("html5_enable_audio_quality_setting");this.lJ.U("html5_enable_audio_quality_setting_feature");this.aO=Ea(this,"html5_sabr_request_limit_per_period"); this.xN=Ea(this,"html5_sabr_request_limit_per_period_for_low_latency");this.PJw=Ea(this,"html5_sabr_request_limit_per_period_for_ultra_low_latency");this.Z7=this.lJ.U("html5_sabr_dispose_media_objects");this.UF=this.lJ.U("html5_fix_hbr_reselection_qoe_restart_for_sabr");this.Uc=this.lJ.U("html5_enable_d6de4");this.lJ.U("html5_high_res_seek_logging");this.MP=this.lJ.U("html5_disable_chunk_synchronization_sabr_seek");this.lJ.U("html5_enable_ssap_multi_audio_format_filtering");this.jD=g.hE(this.lJ.experiments, "html5_override_micro_discontinuities_threshold_ms");this.rh=this.lJ.U("html5_byterate_constraints");this.Ch=this.lJ.U("html5_refactor_sabr_audio_format_selection_logging");this.zn=this.lJ.U("enable_sabr_snackbar_message");this.lJ.U("html5_reinit_source_buffer_by_new_element");this.eH=this.lJ.U("html5_refactor_sabr_video_format_selection_logging");this.wA=this.lJ.U("html5_log_slice_info_in_sbu");this.ox=Ea(this,"html5_paced_poll_ms");this.XY=Ea(this,"html5_paced_poll_min_health_ms");this.MN=this.lJ.U("html5_disable_sabr_fallback"); this.F2=this.lJ.U("html5_track_current_buffered_range_at_sync");this.zam=g.vV(this.lJ)?500:2E3;this.fL=this.lJ.U("html5_sabr_live_timing");this.yU=this.lJ.U("html5_count_updating_slice_for_buffer_health");this.zf=this.lJ.U("html5_report_max_buffer_bytes_limit_to_sabr");this.AL=this.lJ.U("html5_sabr_live_audio_early_return_fix");this.g1=g.hE(this.lJ.experiments,"html5_platform_max_buffer_health_oversend_duration_secs");this.n8=this.lJ.U("html5_cuepoint_identifier_logging");this.wp=this.lJ.U("html5_new_sabr_ssdai_cuepoint_logic"); this.Xj=this.lJ.U("html5_sabr_log_server_xtag_selection_onesie_mismatch");this.TPR=this.lJ.U("html5_skip_client_drm_license_constraint");this.xW=this.lJ.U("html5_ssdai_not_block_on_predict_start");this.L8=this.lJ.U("html5_pseudogapless_shorts_skip_abort_on_transition");this.EjF=this.lJ.U("html5_live_metadata_resets_timeout");this.WN=this.lJ.U("html5_sabr_log_invalid_sabr_current_time");this.hm=this.lJ.U("html5_ssdai_new_decoration_logic");this.o1=this.lJ.U("html5_enable_smooth_audio_offset");this.cV= this.lJ.U("html5_enable_playback_cookie_logging");this.j35=this.lJ.Bo().L.A7(ERv);this.I1=this.lJ.Bo().L.A7(g.Ka);this.cG=this.lJ.Bo().L.A7(Gwu)}; V51=function(H){var E=E===void 0?NaN:E;var G=new I7Q(H.api);H.D.push(G);g.d(H,G);G.mx(H.WF);E>=0&&(G.element.style.width=E+"px")}; g.ri=function(H){H=wBU(H===void 0?0:H);if(!H&&!g.tJ("USE_CSN_FALLBACK",!0))return null;H||(H="UNDEFINED_CSN");return H?H:null}; p1=function(){AI.apply(this,arguments);this.kV={Bk:function(){return[]}}}; P4q=function(H){this.VN=tz(H,4)}; g.Fq=function(H,E){H.C=0;H.T=E||0}; qE=function(H,E){var G;return g.L(function(P){G=H.W;if(!G||G.Lm())return P.return(qE(H.network,E));Ld("att_pna",void 0,"attestation_challenge_fetch");return P.return(new Promise(function(Q){G.So("publicytnetworkstatus-online",function(){qE(H.network,E).then(Q)})}))})}; sOq=function(H){var E,G,P,Q,e,w,t,k,W;return g.L(function(I){switch(I.L){case 1:if(!QOU)throw Error("DecompressionStream is not supported");E=f4.UW();G=new DecompressionStream("gzip");P=G.writable.getWriter();P.write(H);P.close();Q=G.readable.getReader();e=new hJ([]);case 2:return g.U(I,Q.read(),5);case 5:w=I.W;t=w.value;if(k=w.done){I.bJ(4);break}e.append(t);I.bJ(2);break;case 4:return W=vA(e),f4.Ib("gznb",E,Math.ceil(W.byteLength/16)),I.return(W)}})}; QgT=function(H){H.D1E5||++E.L})}; g.Fy=function(H,E,G){var P={},Q;for(Q in H)E.call(G,H[Q],Q,H)&&(P[Q]=H[Q]);return P}; jZ=function(H,E,G,P,Q){Xm.call(this,H,E,G,P);H=Zi(G.clientMetadata,"metadata_type_ad_placement_config");this.yN=new Ae(G.w5,Q,H,G.layoutId)}; sgn=function(H,E){H=g.R(H.itemData);for(var G=H.next();!G.done;G=H.next())G=G.value,G.S.logVisibility(G.element,E)}; eNw=function(H,E,G,P){var Q=Q_(),e=(G=Q||G&&qj())?["com.youtube.fairplay"]:["com.widevine.alpha"];E&&e.unshift("com.youtube.widevine.l3");Q&&P&&e.unshift("com.youtube.fairplay.sbdl");return G?e:H?[].concat(g.EC(e),g.EC(oRw.playready)):[].concat(g.EC(oRw.playready),g.EC(e))}; w07=function(H,E,G){var P=Xz(cY,E);P||(P=VN(H,E,"n",G.opt_nativeTime||-1));return P}; hNw=function(H){H.Am&&H.Am.f0()&&H.mI()}; Nl1=function(H,E,G){var P=new iu(H.api,H.layoutId,H.interactionLoggingClientData,H.vF,H.D.bind(H));P.mx(H.T);P.init(PL("survey-question-single-select"),E,G);H.api.K().U("supports_multi_step_on_desktop")?H.G=P:H.questions.push(P);g.d(H,P)}; qS=function(H,E){H.T&&(H.T.resolve(E),H.Fo.gw(),H.X.z6()||OEl(H))&&(E=H.NL(),E["native"]=""+ +H.WF,E.otgt=""+(H.W+H.timestampOffset),H.Fo.g5("seekEnd",E));bz(H)}; XHn=function(H){var E=H.api.U("delhi_modern_web_player_compact_controls"),G=g.hE(H.api.K().experiments,"delhi_modern_web_player_responsive_compact_controls_threshold");E=E||G>0&&H.api.getPlayerSize().width<=G;H=H.api.getRootNode();H.classList.toggle("ytp-delhi-modern-compact-controls",E);G=E?"8px":"12px";var P=E?"56px":"72px",Q=E?"56px":"64px",e=E?"48px":"56px",w=E?"12px":"20px",t=E?"72px":"96px";H.style.setProperty("--yt-delhi-pill-height",E?"40px":"48px");H.style.setProperty("--yt-delhi-pill-top-height", G);H.style.setProperty("--yt-delhi-bottom-controls-height",P);H.style.setProperty("--yt-delhi-bottom-controls-height-xsmall-width-mode",Q);H.style.setProperty("--yt-delhi-big-mode-pill-height",e);H.style.setProperty("--yt-delhi-big-mode-pill-top-height",w);H.style.setProperty("--yt-delhi-big-mode-bottom-controls-height",t)}; $eu=function(H,E){H.languages=g.yL(E,H.L,H);H.MS(g.wH(E,H.L))}; tJv=function(){var H=["metadata_type_action_companion_ad_renderer","metadata_type_linked_player_bytes_layout_id"];xM().forEach(function(E){H.push(E)}); return{LS:H,yF:["LAYOUT_TYPE_COMPANION_WITH_ACTION_BUTTON"]}}; g.j_=function(H){var E=H.data.getUint8(H.dataOffset)?20:12;return H.data.getUint32(H.dataOffset+E)}; Oy=function(H,E){return E.HB?E.HB:E.mY?$$(H.logger,function(){return E.HB=pm(E.mY)},"c"):[]}; ub=function(H,E,G,P,Q,e,w,t){Tg()&&G.token&&(H=qs(H,{ctt:G.token,cttype:G.uq,mdx_environment:G.mdxEnvironment}));P.U("net_pings_low_priority")&&(E||(E={}),E.priority="low");e||t&&P.U("nwl_skip_retry")?(E==null?E={}:Mgq(H,P.U("html5_assert_cpn_with_regex")),w?hx().sendAndWrite(H,E):hx().sendThenWrite(H,E,t)):E?(Mgq(H,P.U("html5_assert_cpn_with_regex")),VCQ(H,E)):g.iN(H,Q)}; kwn=function(){this.G=!1}; $v=function(H,E,G){var P=this;this.W=H;this.G=E;this.Da=G;this.L=function(Q){return wM(P.W.get(),Q)}}; $iU=function(H){Xu.call(this,H);var E=this;this.loaded=!1;this.N=0;this.L=!1;this.B={};this.G=[];this.D=0;this.C=!1;this.events=new g.Z0(H);g.d(this,this.events);this.W=new g.Z0(H);g.d(this,this.W);this.events.Z(H,"modulesCreated",function(){E.lB()&&E.load()}); this.events.Z(H,"modulesDestroyed",function(G){var P=E.api.getPresentingPlayerType();switch(G){case 2:case 3:G=P!==1&&!(P===5||P===6||P===7);break;case 4:G=!E.L;break;default:G=!0}G&&E.unload()})}; hZl=function(H,E){var G=$tq(H);H.BO||(H.BO=new FM(H.api),g.d(H,H.BO),g.as(H.api,H.BO.element,4));H.BO.BT(E);var P=fz(H.api.lm());P&&P.loaded&&G!==E&&P.Hq();E&&H.api.g5("sfn",{},!0)}; Wh=function(){Wtl===void 0&&(Wtl=byt());return Wtl}; ITw=function(H){var E=H.layoutId,G=H.eE;if(H.t2){var P={};Gq(H.vY,"slse",(P.ec=E,P.is=G,P.ctp=Q6(E),P))}}; LQQ=function(){return{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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"}}]}}; fEv=[];F$=typeof Object.defineProperties=="function"?Object.defineProperty:function(H,E,G){if(H==Array.prototype||H==Object.prototype)return H;H[E]=G.value;return H}; g.Sc=KUs(this);Zj="Int8 Uint8 Uint8Clamped Int16 Uint16 Int32 Uint32 Float32 Float64".split(" ");g.Sc.BigInt64Array&&(Zj.push("BigInt64"),Zj.push("BigUint64"));ie("Symbol",function(H){function E(e,w){this.L=e;F$(this,"description",{configurable:!0,writable:!0,value:w})} function G(e){if(this instanceof G)throw new TypeError("Symbol is not a constructor");return new E(P+(e||"")+"_"+Q++,e)} if(H)return H;E.prototype.toString=function(){return this.L}; var P="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",Q=0;return G}); ie("Symbol.iterator",function(H){if(H)return H;H=Symbol("Symbol.iterator");F$(Array.prototype,H,{configurable:!0,writable:!0,value:function(){return ild(SYn(this))}}); return H}); var FvU=typeof Object.create=="function"?Object.create:function(H){function E(){} E.prototype=H;return new E},AXU=function(){function H(){function G(){} new G;Reflect.construct(G,[],function(){}); return new G instanceof G} if(typeof Reflect!="undefined"&&Reflect.construct){if(H())return Reflect.construct;var E=Reflect.construct;return function(G,P,Q){G=E(G,P);Q&&Reflect.setPrototypeOf(G,Q.prototype);return G}}return function(G,P,Q){Q===void 0&&(Q=G); Q=FvU(Q.prototype||Object.prototype);return Function.prototype.apply.call(G,Q,P)||Q}}(),meu; if(typeof Object.setPrototypeOf=="function")meu=Object.setPrototypeOf;else{var uUT;a:{var vRn={a:!0},MJT={};try{MJT.__proto__=vRn;uUT=MJT.a;break a}catch(H){}uUT=!1}meu=uUT?function(H,E){H.__proto__=E;if(H.__proto__!==E)throw new TypeError(H+" is not extensible");return H}:null}var gd=meu,deU=typeof Object.assign=="function"?Object.assign:function(H,E){if(H==null)throw new TypeError("No nullish arg"); H=Object(H);for(var G=1;G0&&G>0;)if(P[--G]!=E[--Q])return!1;return Q<=0}}); ie("Array.prototype.find",function(H){return H?H:function(E,G){return TRw(this,E,G).Tb}}); ie("Array.prototype.entries",function(H){return H?H:function(){return U9(this,function(E,G){return[E,G]})}}); ie("Array.prototype.keys",function(H){return H?H:function(){return U9(this,function(E){return E})}}); ie("String.prototype.startsWith",function(H){return H?H:function(E,G){var P=ZL(this,E,"startsWith");E+="";var Q=P.length,e=E.length;G=Math.max(0,Math.min(G|0,P.length));for(var w=0;w=e}}); ie("Number.isFinite",function(H){return H?H:function(E){return typeof E!=="number"?!1:!isNaN(E)&&E!==Infinity&&E!==-Infinity}}); ie("String.prototype.repeat",function(H){return H?H:function(E){var G=ZL(this,null,"repeat");if(E<0||E>1342177279)throw new RangeError("Invalid count value");E|=0;for(var P="";E;)if(E&1&&(P+=G),E>>>=1)G+=G;return P}}); ie("Object.entries",function(H){return H?H:function(E){var G=[],P;for(P in E)Vo(E,P)&&G.push([P,E[P]]);return G}}); ie("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}); ie("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991}); ie("Array.from",function(H){return H?H:function(E,G,P){G=G!=null?G:function(t){return t}; var Q=[],e=typeof Symbol!="undefined"&&Symbol.iterator&&E[Symbol.iterator];if(typeof e=="function"){E=e.call(E);for(var w=0;!(e=E.next()).done;)Q.push(G.call(P,e.value,w++))}else for(e=E.length,w=0;w>>0;if(E===0)return 32;var G=0;(E&4294901760)===0&&(E<<=16,G+=16);(E&4278190080)===0&&(E<<=8,G+=8);(E&4026531840)===0&&(E<<=4,G+=4);(E&3221225472)===0&&(E<<=2,G+=2);(E&2147483648)===0&&G++;return G}}); ie("Number.isNaN",function(H){return H?H:function(E){return typeof E==="number"&&isNaN(E)}}); ie("Array.prototype.values",function(H){return H?H:function(){return U9(this,function(E,G){return G})}}); ie("Array.prototype.fill",function(H){return H?H:function(E,G,P){var Q=this.length||0;G<0&&(G=Math.max(0,Q+G));if(P==null||P>Q)P=Q;P=Number(P);P<0&&(P=Math.max(0,Q+P));for(G=Number(G||0);G0&&G?G.repeat(Math.ceil(E/G.length)).substring(0,E):"")+P}}); ie("Array.prototype.findIndex",function(H){return H?H:function(E,G){return TRw(this,E,G).qy}}); ie("Promise.prototype.finally",function(H){return H?H:function(E){return this.then(function(G){return Promise.resolve(E()).then(function(){return G})},function(G){return Promise.resolve(E()).then(function(){throw G; })})}}); ie("Math.imul",function(H){return H?H:function(E,G){E=Number(E);G=Number(G);var P=E&65535,Q=G&65535;return P*Q+((E>>>16&65535)*Q+P*(G>>>16&65535)<<16>>>0)|0}}); ie("Math.sign",function(H){return H?H:function(E){E=Number(E);return E===0||isNaN(E)?E:E>0?1:-1}}); ie("WeakSet",function(H){function E(G){this.L=new WeakMap;if(G){G=g.R(G);for(var P;!(P=G.next()).done;)this.add(P.value)}} if(function(){if(!H||!Object.seal)return!1;try{var G=Object.seal({}),P=Object.seal({}),Q=new H([G]);if(!Q.has(G)||Q.has(P))return!1;Q.delete(G);Q.add(P);return!Q.has(G)&&Q.has(P)}catch(e){return!1}}())return H; E.prototype.add=function(G){this.L.set(G,!0);return this}; E.prototype.has=function(G){return this.L.has(G)}; E.prototype.delete=function(G){return this.L.delete(G)}; return E}); ie("Array.prototype.copyWithin",function(H){function E(G){G=Number(G);return G===Infinity||G===-Infinity?G:G|0} return H?H:function(G,P,Q){var e=this.length;G=E(G);P=E(P);Q=Q===void 0?e:E(Q);G=G<0?Math.max(e+G,0):Math.min(G,e);P=P<0?Math.max(e+P,0):Math.min(P,e);Q=Q<0?Math.max(e+Q,0):Math.min(Q,e);if(GP;)--Q in this?this[--G]=this[Q]:delete this[--G];return this}}); Lw("copyWithin",function(H){return H?H:Array.prototype.copyWithin}); ie("Array.prototype.at",function(H){return H?H:Kxu}); Lw("at",function(H){return H?H:Kxu}); ie("String.prototype.at",function(H){return H?H:Kxu}); ie("Array.prototype.findLastIndex",function(H){return H?H:function(E,G){return FJn(this,E,G).qy}}); Lw("findLastIndex",function(H){return H?H:function(E,G){return FJn(this,E,G).qy}}); ie("Number.parseInt",function(H){return H||parseInt});var myq,F_,V4T;myq=myq||{};g.lU=this||self;F_="closure_uid_"+(Math.random()*1E9>>>0);V4T=0;g.xE(oq,Error);oq.prototype.name="CustomError";var Cyt;var zhd,Pv,YZ;zhd=Array.prototype.indexOf?function(H,E){return Array.prototype.indexOf.call(H,E,void 0)}:function(H,E){if(typeof H==="string")return typeof E!=="string"||E.length!=1?-1:H.indexOf(E,0); for(var G=0;G=0;G--)if(G in H&&H[G]===E)return G;return-1}; g.D9=Array.prototype.forEach?function(H,E,G){Array.prototype.forEach.call(H,E,G)}:function(H,E,G){for(var P=H.length,Q=typeof H==="string"?H.split(""):H,e=0;e=.3:this.OT>=.5};var ML={w$$:0,n7x:1},nm1={NONE:0,oiJ:1,aqp:2};var Ykv="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");L5.prototype.getValue=function(){return this.W}; g.C(ly,L5);ly.prototype.G=function(H){this.W===null&&g.GI(this.D,H)&&(this.W=H)}; g.C(di,L5);di.prototype.G=function(H){this.W===null&&typeof H==="number"&&(this.W=H)}; g.C(KB,L5);KB.prototype.G=function(H){this.W===null&&typeof H==="string"&&(this.W=H)};uT.prototype.disable=function(){this.W=!1}; uT.prototype.enable=function(){this.W=!0}; uT.prototype.isEnabled=function(){return this.W}; uT.prototype.reset=function(){this.L={};this.W=!0;this.G={}};var Fr=document,md=window;var nRw=TZ(1,!0),jX=TZ(610401301,!1);TZ(899588437,!1);var aTQ=TZ(772657768,!1),Osd=TZ(513659523,!1),KtU=TZ(568333945,!0),Thd=TZ(1331761403,!1);TZ(651175828,!1);TZ(722764542,!1);TZ(748402145,!1);TZ(748402146,!1);var HQn=TZ(748402147,!0);TZ(333098724,!1);TZ(2147483644,!1);TZ(2147483645,!1);TZ(2147483646,nRw);TZ(2147483647,!0);var cD=!!g.Un("yt.config_.EXPERIMENTS_FLAGS.html5_enable_client_hints_override");var KN=String.prototype.trim?function(H){return H.trim()}:function(H){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(H)[1]},p4d=/&/g,HCQ=//g,Grj=/"/g,PTU=/'/g,QPv=/\x00/g,fU7=/[\x00&<>"']/;var N2,jg1=g.lU.navigator;N2=jg1?jg1.userAgentData||null:null;var yOt=globalThis.trustedTypes,Wtl;lAw.prototype.toString=function(){return this.L+""};d6.prototype.toString=function(){return this.L}; var jUu=new d6("about:invalid#zClosurez");var rCv=bM("tel"),Ryd=bM("sms"),KVM=[bM("data"),bM("http"),bM("https"),bM("mailto"),bM("ftp"),new ym(function(H){return/^[^:]*([/?#]|$)/.test(H)})],KRs=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;P3.prototype.toString=function(){return this.L+""};$A.prototype.toString=function(){return this.L+""};K5.prototype.toString=function(){return this.L};var oL={};g.cXs=String.prototype.repeat?function(H,E){return H.repeat(E)}:function(H,E){return Array(E+1).join(H)};Ln[" "]=function(){};var yo,az,DRt,N5s,yXq,bsw,bE,KW,ist;g.zk=J_();g.kh=Vyu();g.Uo=ih("Edge");g.Zs=g.Uo||g.kh;yo=ih("Gecko")&&!(zG(g.u0(),"WebKit")&&!ih("Edge"))&&!(ih("Trident")||ih("MSIE"))&&!ih("Edge");g.E7=zG(g.u0(),"WebKit")&&!ih("Edge");az=Jls();DRt=Cgw();g.gI=U4U();N5s=g8u();yXq=ih("iPad");bsw=ih("iPod");bE=x3();KW=zG(g.u0(),"KaiOS"); a:{var qPT="",RN7=function(){var H=g.u0();if(yo)return/rv:([^\);]+)(\)|;)/.exec(H);if(g.Uo)return/Edge\/([\d\.]+)/.exec(H);if(g.kh)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(H);if(g.E7)return/WebKit\/(\S+)/.exec(H);if(g.zk)return/(?:Version)[ \/]?(\S+)/.exec(H)}(); RN7&&(qPT=RN7?RN7[1]:"");if(g.kh){var f$,JXv=g.lU.document;f$=JXv?JXv.documentMode:void 0;if(f$!=null&&f$>parseFloat(qPT)){ist=String(f$);break a}}ist=qPT}var vFq=ist,sH1={};var fB,Bd;g.a1=rH();fB=g8u()||ih("iPod");Bd=ih("iPad");g.V$=SUs();g.pC=qQ();g.Ez=BR()&&!x3();var OIM=!g.kh&&!BR();g.M=g.oG.prototype;g.M.clone=function(){return new g.oG(this.x,this.y)}; g.M.equals=function(H){return H instanceof g.oG&&W4(this,H)}; g.M.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this}; g.M.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this}; g.M.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this}; g.M.scale=function(H,E){this.x*=H;this.y*=typeof E==="number"?E:H;return this};g.M=g.P4.prototype;g.M.clone=function(){return new g.P4(this.width,this.height)}; g.M.aspectRatio=function(){return this.width/this.height}; g.M.isEmpty=function(){return!v$(this)}; g.M.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this}; g.M.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this}; g.M.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this}; g.M.scale=function(H,E){this.width*=H;this.height*=typeof E==="number"?E:H;return this};tZ.prototype.toString=function(){return this.L}; var $w={};new tZ($w,"");var QuM=/^[a-z][a-z\d-]*$/i,sus="APPLET BASE EMBED IFRAME LINK MATH META OBJECT SCRIPT STYLE SVG TEMPLATE".split(" "),ezn="AREA BR COL COMMAND HR IMG INPUT KEYGEN PARAM SOURCE TRACK WBR".split(" "),f4Q=["action","formaction","href"];var PF1={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.M=Gy.prototype;g.M.E2=function(H){return km(this.L,H)}; g.M.getElementsByTagName=function(H,E){return(E||this.L).getElementsByTagName(String(H))}; g.M.HF=function(H){return g.mO(H,this.L)}; g.M.setProperties=sl;g.M.createElement=function(H){return hz(this.L,H)}; g.M.appendChild=g.jx;g.M.append=function(H,E){KSj(dd(H),H,arguments,1)}; g.M.canHaveChildren=function(H){if(H.nodeType!=1)return!1;switch(H.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.M.removeNode=g.LQ;g.M.getChildren=function(H){return H.children!=void 0?H.children:Array.prototype.filter.call(H.childNodes,function(E){return E.nodeType==1})}; g.M.contains=g.wa;g.M.isFocusable=Gg;uJ.prototype.now=function(){return 0}; uJ.prototype.W=function(){return 0}; uJ.prototype.G=function(){return 0}; uJ.prototype.L=function(){return 0};g.C(q7,uJ);q7.prototype.now=function(){return iY()&&md.performance.now?md.performance.now():uJ.prototype.now.call(this)}; q7.prototype.W=function(){return iY()&&md.performance.memory?md.performance.memory.totalJSHeapSize||0:uJ.prototype.W.call(this)}; q7.prototype.G=function(){return iY()&&md.performance.memory?md.performance.memory.usedJSHeapSize||0:uJ.prototype.G.call(this)}; q7.prototype.L=function(){return iY()&&md.performance.memory?md.performance.memory.jsHeapSizeLimit||0:uJ.prototype.L.call(this)};var jDQ=function(){if(!g.lU.addEventListener||!Object.defineProperty)return!1;var H=!1,E=Object.defineProperty({},"passive",{get:function(){H=!0}}); try{var G=function(){}; g.lU.addEventListener("test",G,E);g.lU.removeEventListener("test",G,E)}catch(P){}return H}();var v1v=f8s("AnimationEnd"),iB=f8s("TransitionEnd");g.M=lJ.prototype;g.M.getHeight=function(){return this.bottom-this.top}; g.M.clone=function(){return new lJ(this.top,this.right,this.bottom,this.left)}; g.M.contains=function(H){return this&&H?H instanceof lJ?H.left>=this.left&&H.right<=this.right&&H.top>=this.top&&H.bottom<=this.bottom:H.x>=this.left&&H.x<=this.right&&H.y>=this.top&&H.y<=this.bottom:!1}; g.M.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.M.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.M.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.M.scale=function(H,E){E=typeof E==="number"?E:H;this.left*=H;this.right*=H;this.top*=E;this.bottom*=E;return this};g.M=g.Yn.prototype;g.M.clone=function(){return new g.Yn(this.left,this.top,this.width,this.height)}; g.M.contains=function(H){return H instanceof g.oG?H.x>=this.left&&H.x<=this.left+this.width&&H.y>=this.top&&H.y<=this.top+this.height:this.left<=H.left&&this.left+this.width>=H.left+H.width&&this.top<=H.top&&this.top+this.height>=H.top+H.height}; g.M.getSize=function(){return new g.P4(this.width,this.height)}; g.M.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.M.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.M.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.M.scale=function(H,E){E=typeof E==="number"?E:H;this.left*=H;this.width*=H;this.top*=E;this.height*=E;return this};var NUu={};var Azv=$Z(function(){var H=!1;try{var E=Object.defineProperty({},"passive",{get:function(){H=!0}}); g.lU.addEventListener("test",null,E)}catch(G){}return H});lUl.prototype.isVisible=function(){return Kq(Fr)===1};var DoQ=RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)");Vb.prototype.TU=function(H,E,G){H=H+"//"+E+G;var P=o_1(this)-G.length;if(P<0)return"";this.L.sort(function(W,I){return W-I}); G=null;E="";for(var Q=0;Q=k.length){P-=k.length;H+=k;E=this.G;break}G=G==null?e:G}}P="";G!=null&&(P=""+E+"trn="+G);return H+P};var u2t=FV(function(H){return typeof H==="number"}),qvs=FV(function(H){return typeof H==="string"}),vWj=FV(function(H){return typeof H==="boolean"}),jc=FV(function(H){return H!=null&&typeof H==="object"&&typeof H.then==="function"}),rXs=FV(function(H){return!!H&&(typeof H==="object"||typeof H==="function")});var CQs={ZWx:"allow-forms",f1x:"allow-modals",vj7:"allow-orientation-lock",jJF:"allow-pointer-lock",yRa:"allow-popups",nja:"allow-popups-to-escape-sandbox",hpx:"allow-presentation",xMR:"allow-same-origin",MdN:"allow-scripts",N7x:"allow-top-navigation",KBw:"allow-top-navigation-by-user-activation"},OYM=$Z(function(){return g_1()});yg.prototype.setInterval=function(H,E){return md.setInterval(H,E)}; yg.prototype.clearInterval=function(H){md.clearInterval(H)}; yg.prototype.setTimeout=function(H,E){return md.setTimeout(H,E)}; yg.prototype.clearTimeout=function(H){md.clearTimeout(H)};var sy=void 0,QW,kQn=typeof TextDecoder!=="undefined",t1u,$07=typeof String.prototype.isWellFormed==="function",hzM=typeof TextEncoder!=="undefined";var trs={},hI=null,KXt=yo||g.E7||typeof g.lU.btoa=="function";var nnj=typeof Uint8Array!=="undefined",z3w=!g.kh&&typeof btoa==="function",Tzl=/[-_.]/g,zX1={"-":"+",_:"/",".":"="},x0={};UW.prototype.isEmpty=function(){return this.L==null}; UW.prototype.sizeBytes=function(){var H=ek(this);return H?H.length:0}; var qCl;var Hin=void 0;var yS=typeof Symbol==="function"&&typeof Symbol()==="symbol",B5v=oY("jas",void 0,!0),If=oY(void 0,"1oa"),NO=oY(void 0,Symbol()),YPq=oY(void 0,"0ub"),bnQ=oY(void 0,"0ubs"),CKu=oY(void 0,"0ubsb"),Si1=oY(void 0,"0actk"),Lp=oY("m_m","YqN",!0),V7v=oY(void 0,"vps"),X0w=oY();Math.max.apply(Math,g.EC(Object.values({VhR:1,a7_:2,ko5:4,MfZ:8,wyo:16,BHo:32,sFw:64,iLJ:128,NXo:256,Cg_:512,kyR:1024,Gow:2048,ZzZ:4096,RQR:8192})));var SW1={LZ$:{value:0,configurable:!0,writable:!0,enumerable:!1}},VBM=Object.defineProperties,c9=yS?B5v:"LZ$",Bb,Zsl=[];k0(Zsl,7);Bb=Object.freeze(Zsl);var lA={},qq={},rJ7=Object.freeze({}),z_={},bp={};var vO=typeof g.lU.BigInt==="function"&&typeof g.lU.BigInt(0)==="bigint";var uL=FV(function(H){return vO?H>=C4n&&H<=gR7:H[0]==="-"?PQl(H,Ltn):PQl(H,lTM)}),Ltn=Number.MIN_SAFE_INTEGER.toString(),C4n=vO?BigInt(Number.MIN_SAFE_INTEGER):void 0,lTM=Number.MAX_SAFE_INTEGER.toString(),gR7=vO?BigInt(Number.MAX_SAFE_INTEGER):void 0;var Pq1=typeof Uint8Array.prototype.slice==="function",RN=0,Js=0,e1s;var ea=typeof BigInt==="function"?BigInt.asIntN:void 0,L4t=typeof BigInt==="function"?BigInt.asUintN:void 0,QU=Number.isSafeInteger,Ox=Number.isFinite,PM=Math.trunc,K3u=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var Stq={};var UeM={txN:!0};var iy;var W1d,ID1;var jpd=sD(0),FL={};sA.prototype.init=function(H,E,G,P){var Q=P===void 0?{}:P;P=Q.po===void 0?!1:Q.po;Q=Q.Gb===void 0?!1:Q.Gb;this.po=P;this.Gb=Q;H&&(H=Nd(H,this.Gb),this.W=H.buffer,this.T=H.L,this.D=E||0,this.G=G!==void 0?this.D+G:this.W.length,this.L=this.D)}; sA.prototype.free=function(){this.clear();A5.length<100&&A5.push(this)}; sA.prototype.clear=function(){this.W=null;this.T=!1;this.L=this.G=this.D=0;this.po=!1}; sA.prototype.reset=function(){this.L=this.D}; var A5=[];Qr.prototype.free=function(){this.L.clear();this.W=this.G=-1;PA.length<100&&PA.push(this)}; Qr.prototype.reset=function(){this.L.reset();this.D=this.L.L;this.W=this.G=-1}; var PA=[];var MEn,Rav;zR.prototype.length=function(){return this.L.length}; zR.prototype.end=function(){var H=this.L;this.L=[];return H};var jr=Nf(),xel=Nf(),zN7=Nf(),T5M=Nf(),VJT=Nf(),SPq=Nf(),Ft1=Nf(),fTw=Nf(),p07=Nf(),Hjd=Nf(),EX1=Nf();Lg.prototype.toJSON=function(){return sp(this)}; Lg.prototype.hK=function(H){return JSON.stringify(sp(this,H))}; Lg.prototype.clone=function(){var H=this.VN,E=H[c9]|0;return Ol(this,H,E)?Yr(this,H,!0):new this.constructor(R9(H,E,!1))}; Lg.prototype[Lp]=lA;Lg.prototype.toString=function(){return this.VN.toString()};var LGj=cA(function(H,E,G,P,Q){if(H.W!==2)return!1;bF(H,Mw1(E,P,G),Q);return!0},k8T),tBl=cA(function(H,E,G,P,Q){if(H.W!==2)return!1; bF(H,Mw1(E,P,G),Q);return!0},k8T),Ag=Symbol(),hg=Symbol(),ej=Symbol(),Fnt=Symbol(),umw=Symbol(),k7,te;var GTv=OO(function(H,E,G){if(H.W!==1)return!1;WN(E,G,jE(H.L));return!0},wUq,p07),Pmu=OO(function(H,E,G){if(H.W!==1)return!1; H=jE(H.L);WN(E,G,H===0?void 0:H);return!0},wUq,p07),QBl=OO(function(H,E,G,P){if(H.W!==1)return!1; ny(E,G,P,jE(H.L));return!0},wUq,p07),sBU=OO(function(H,E,G){if(H.W!==0)return!1; WN(E,G,oe(H.L));return!0},Im,Ft1),oX1=OO(function(H,E,G){if(H.W!==0)return!1; H=oe(H.L);WN(E,G,H===0?void 0:H);return!0},Im,Ft1),end=OO(function(H,E,G,P){if(H.W!==0)return!1; ny(E,G,P,oe(H.L));return!0},Im,Ft1),wlq=OO(function(H,E,G){if(H.W!==0)return!1; WN(E,G,yl(H.L));return!0},cFt,T5M),hnu=OO(function(H,E,G){if(H.W!==0)return!1; H=yl(H.L);WN(E,G,H===0?void 0:H);return!0},cFt,T5M),$Vq=OO(function(H,E,G,P){if(H.W!==0)return!1; ny(E,G,P,yl(H.L));return!0},cFt,T5M),tp7=OO(function(H,E,G){if(H.W!==1)return!1; WN(E,G,sq(H.L));return!0},function(H,E,G){qps(H,G,lWw(E))},fTw),kT7=E8(function(H,E,G){if(H.W!==1&&H.W!==2)return!1; E=aE(E,E[c9]|0,G);if(H.W==2)for(G=yl(H.L)>>>0,G=H.L.L+G;H.L.L>>0);return!0},function(H,E,G){E=V6(E); E!=null&&E!=null&&(iq(H,G,0),Tu(H.L,E))},VJT),Qy=OO(function(H,E,G){if(H.W!==0)return!1; WN(E,G,yl(H.L));return!0},function(H,E,G){E=rE(E); E!=null&&(E=parseInt(E,10),iq(H,G,0),c_t(H.L,E))},EX1);var a2Q=new Map;g.C(O0d,A4U);Zrv.prototype.register=function(){Ln(this)};g.C(T9,Lg);T9.prototype.G=Dms([0,Pmu,oX1,-2,hnu]);jWv.prototype.A7=function(H){var E=this.L[H.key];if(H.valueType==="proto"){try{var G=JSON.parse(E);if(Array.isArray(G))return G}catch(P){}return H.defaultValue}return typeof E===typeof H.defaultValue?E:H.defaultValue};var aRv={HeR:1,IR:2,oQp:3,1:"POSITION",2:"VISIBILITY",3:"MONITOR_VISIBILITY"};cEl.prototype.AF=function(H){if(typeof H==="string"&&H.length!=0){var E=this.b4;if(E.W){H=H.split("&");for(var G=H.length-1;G>=0;G--){var P=H[G].split("="),Q=decodeURIComponent(P[0]);P.length>1?(P=decodeURIComponent(P[1]),P=/^[0-9]+$/g.exec(P)?parseInt(P,10):P):P=1;(Q=E.L[Q])&&Q.G(P)}}}};var sf=null;var GL=g.lU.performance,dVv=!!(GL&&GL.mark&&GL.measure&&GL.clearMarks),PQ=$Z(function(){var H;if(H=dVv){var E=E===void 0?window:E;if(sf===null){sf="";try{H="";try{H=E.top.location.hash}catch(P){H=E.location.hash}if(H){var G=H.match(/\bdeid=([\d,]+)/);sf=G?G[1]:""}}catch(P){}}E=sf;H=!!E.indexOf&&E.indexOf("1337")>=0}return H}); W_.prototype.disable=function(){this.L=!1;this.events!==this.W.google_js_reporting_queue&&(PQ()&&g.D9(this.events,W3t),this.events.length=0)}; W_.prototype.start=function(H,E){if(!this.L)return null;var G=DiU()||vbd();H=new $mj(H,E,G);E="goog_"+H.label+"_"+H.uniqueId+"_start";GL&&PQ()&&GL.mark(E);return H}; W_.prototype.end=function(H){if(this.L&&typeof H.value==="number"){var E=DiU()||vbd();H.duration=E-H.value;E="goog_"+H.label+"_"+H.uniqueId+"_end";GL&&PQ()&&GL.mark(E);!this.L||this.events.length>2048||this.events.push(H)}};var lbv=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$"),c2=/#|$/,nuj=/[?&]($|#)/;D_n.prototype.RT=function(H,E,G,P,Q){Q=Q||this.Js;try{var e=new Vb;e.L.push(1);e.W[1]=Bj("context",H);E.error&&E.meta&&E.id||(E=new Ji(gP(E)));if(E.msg){var w=E.msg.substring(0,512);e.L.push(2);e.W[2]=Bj("msg",w)}var t=E.meta||{};if(this.n5)try{this.n5(t)}catch(u){}if(P)try{P(t)}catch(u){}P=[t];e.L.push(3);e.W[3]=P;var k=a$T();if(k.W){var W=k.W.url||"";e.L.push(4);e.W[4]=Bj("top",W)}var I={url:k.L.url||""};if(k.L.url){var A=g.AL(k.L.url);var m=mK(A[1],null,A[3],A[4])}else m="";W=[I,{url:m}];e.L.push(5); e.W[5]=W;s_Q(this.L,Q,e,G)}catch(u){try{s_Q(this.L,Q,{context:"ecmserr",rctx:H,msg:gP(u),url:k&&k.L.url},G)}catch(v){}}return this.a6}; g.C(Ji,gcw);var z9,xN,uK=new W_;z9=new function(){var H="https:";md&&md.location&&md.location.protocol==="http:"&&(H="http:");this.W=H;this.L=.01}; xN=new D_n;md&&md.document&&(md.document.readyState=="complete"?mTs():uK.L&&Xd(md,"load",function(){mTs()}));var ues=Date.now(),Hk=-1,Cu=-1,Ls1,c_=-1,pn=!1;un.prototype.equals=function(H,E){return!!H&&(!(E===void 0?0:E)||this.volume==H.volume)&&this.G==H.G&&ud(this.L,H.L)&&!0};C0.prototype.E2=function(){return this.B}; C0.prototype.equals=function(H,E){return this.D.equals(H.D,E===void 0?!1:E)&&this.B==H.B&&ud(this.G,H.G)&&ud(this.C,H.C)&&this.L==H.L&&this.T==H.T&&this.W==H.W&&this.N==H.N};var DVT={currentTime:1,duration:2,isVpaid:4,volume:8,isYouTube:16,isPlaying:32},wz={lQ:"start",E1:"firstquartile",kf:"midpoint",PG:"thirdquartile",COMPLETE:"complete",ERROR:"error",Kr:"metric",PAUSE:"pause",Gf:"resume",HG:"skip",U3:"viewable_impression",VP:"mute",Qh:"unmute",QX:"fullscreen",Pb:"exitfullscreen",q8:"bufferstart",R_:"bufferfinish",TY:"fully_viewable_audible_half_duration_impression",Ne:"measurable_impression",nf:"abandon",Hb:"engagedview",Il:"impression",Wb:"creativeview",LOADED:"loaded", PdF:"progress",CLOSE:"close",aeo:"collapse",Xnu:"overlay_resize",sGm:"overlay_unmeasurable_impression",Reo:"overlay_unviewable_impression",wnp:"overlay_viewable_immediate_impression",qZ_:"overlay_viewable_end_of_session_impression",ip:"custom_metric_viewable",N8:"audio_audible",kI:"audio_measurable",Kf:"audio_impression"},OGU="start firstquartile midpoint thirdquartile resume loaded".split(" "),KaQ=["start","firstquartile","midpoint","thirdquartile"],Pys=["abandon"],Zl={UNKNOWN:-1,lQ:0,E1:1,kf:2, PG:3,COMPLETE:4,Kr:5,PAUSE:6,Gf:7,HG:8,U3:9,VP:10,Qh:11,QX:12,Pb:13,TY:14,Ne:15,nf:16,Hb:17,Il:18,Wb:19,LOADED:20,ip:21,q8:22,R_:23,Kf:27,kI:28,N8:29};var Lgn={zpm:"addEventListener",XAw:"getMaxSize",smJ:"getScreenSize",R6J:"getState",qHa:"getVersion",xOm:"removeEventListener",XDZ:"isViewable"};aaU.prototype.update=function(H){H&&H.document&&(this.B=He(!1,H,this.isMobileDevice),this.L=He(!0,H,this.isMobileDevice),OqU(this,H),bOs(this,H))};kO.prototype.cancel=function(){nC().clearTimeout(this.L);this.L=null}; kO.prototype.schedule=function(){var H=this,E=nC(),G=X9().L.L;this.L=E.setTimeout(RI(G,da(143,function(){H.W++;H.G.sample()})),eoj())};g.M=VV.prototype;g.M.eD=function(){return!1}; g.M.initialize=function(){return this.isInitialized=!0}; g.M.Zz=function(){return this.L.PF}; g.M.NH=function(){return this.L.p_}; g.M.fail=function(H,E){if(!this.p_||(E===void 0?0:E))this.p_=!0,this.PF=H,this.N=0,this.L!=this||Ua(this)}; g.M.getName=function(){return this.L.z$}; g.M.UC=function(){return this.L.vJ()}; g.M.vJ=function(){return{}}; g.M.QL=function(){return this.L.N}; g.M.ke=function(){var H=ZY();H.L=He(!0,this.G,H.isMobileDevice)}; g.M.Vo=function(){bOs(ZY(),this.G)}; g.M.wQ=function(){return this.D.L}; g.M.sample=function(){}; g.M.isActive=function(){return this.L.C}; g.M.k9=function(H){var E=this.L;this.L=H.QL()>=this.N?H:this;E!==this.L?(this.C=this.L.C,Ua(this)):this.C!==this.L.C&&(this.C=this.L.C,Ua(this))}; g.M.fd=function(H){if(H.W===this.L){var E=!this.D.equals(H,this.L_);this.D=H;E&&usv(this)}}; g.M.TO=function(){return this.L_}; g.M.dispose=function(){this.E7=!0}; g.M.Iu=function(){return this.E7};g.M=GA.prototype;g.M.observe=function(){return!0}; g.M.unobserve=function(){}; g.M.Q4=function(H){this.T=H}; g.M.dispose=function(){if(!this.Iu()){var H=this.W;g.Ih(H.T,this);H.L_&&this.TO()&&yHl(H);this.unobserve();this.Jm=!0}}; g.M.Iu=function(){return this.Jm}; g.M.UC=function(){return this.W.UC()}; g.M.QL=function(){return this.W.QL()}; g.M.Zz=function(){return this.W.Zz()}; g.M.NH=function(){return this.W.NH()}; g.M.k9=function(){}; g.M.fd=function(){this.Fk()}; g.M.TO=function(){return this.E7};g.M=Ra.prototype;g.M.QL=function(){return this.L.QL()}; g.M.Zz=function(){return this.L.Zz()}; g.M.NH=function(){return this.L.NH()}; g.M.create=function(H,E,G){var P=null;this.L&&(P=this.C8(H,E,G),xv(this.L,P));return P}; g.M.X_=function(){return this.ri()}; g.M.ri=function(){return!1}; g.M.init=function(H){return this.L.initialize()?(xv(this.L,this),this.D=H,!0):!1}; g.M.k9=function(H){H.QL()==0&&this.D(H.Zz(),this)}; g.M.fd=function(){}; g.M.TO=function(){return!1}; g.M.dispose=function(){this.T=!0}; g.M.Iu=function(){return this.T}; g.M.UC=function(){return{}};f7.prototype.add=function(H,E,G){++this.G;H=new cbt(H,E,G);this.L.push(new cbt(H.W,H.L,H.G+this.G/4096));this.W=!0;return this};r0Q.prototype.toString=function(){var H="//pagead2.googlesyndication.com//pagead/gen_204",E=clM(this.L);E.length>0&&(H+="?"+E);return H};g.J.prototype.b8=!1;g.J.prototype.Iu=function(){return this.b8}; g.J.prototype.dispose=function(){this.b8||(this.b8=!0,this.G$())}; g.J.prototype[Symbol.dispose]=function(){this.dispose()}; g.J.prototype.addOnDisposeCallback=function(H,E){this.b8?E!==void 0?H.call(E):H():(this.cK||(this.cK=[]),E&&(H=H.bind(E)),this.cK.push(H))}; g.J.prototype.G$=function(){if(this.cK)for(;this.cK.length;)this.cK.shift()()};var nXs=[0,sBU,WCj,-1];pQ.prototype.update=function(H,E,G){H&&(this.L+=E,this.W+=E,this.D+=E,this.G=Math.max(this.G,this.D));if(G===void 0?!H:G)this.D=0};var QZ1=[1,.75,.5,.3,0];Hj.prototype.update=function(H,E,G,P,Q,e){e=e===void 0?!0:e;E=Q?Math.min(H,E):E;for(Q=0;Q0&&E>=w;w=!(H>0&&H>=w)||G;this.L[Q].update(e&&t,P,!e||w)}};fQ.prototype.update=function(H,E,G,P){this.B=this.B!=-1?Math.min(this.B,E.OT):E.OT;this.WF=Math.max(this.WF,E.OT);this.Jm=this.Jm!=-1?Math.min(this.Jm,E.ju):E.ju;this.PF=Math.max(this.PF,E.ju);this.au.update(E.ju,G.ju,E.L,H,P);this.T$+=H;E.OT===0&&(this.z$+=H);this.W.update(E.OT,G.OT,E.L,H,P);G=P||G.Mo!=E.Mo?G.isVisible()&&E.isVisible():G.isVisible();E=!E.isVisible()||E.L;this.Yp.update(G,H,E)}; fQ.prototype.Ap=function(){return this.Yp.G>=this.hm};if(Fr&&Fr.URL){var a1u=Fr.URL,Ojd;a:{if(a1u){var KCj=RegExp(".*[&#?]google_debug(=[^&]*)?(&.*)?$");try{var ow=KCj.exec(decodeURIComponent(a1u));if(ow){Ojd=ow[1]&&ow[1].length>1?ow[1].substring(1):"true";break a}}catch(H){}}Ojd=""}xN.a6=!(Ojd.length>0)};var jBd=new lJ(0,0,0,0);var iNU=new lJ(0,0,0,0);g.C(Wj,g.J);g.M=Wj.prototype; g.M.G$=function(){if(this.GT.L){if(this.GG.HU){var H=this.GT.L;typeof H.removeEventListener==="function"&&H.removeEventListener("mouseover",this.GG.HU,Ym());this.GG.HU=null}this.GG.JB&&(H=this.GT.L,typeof H.removeEventListener==="function"&&H.removeEventListener("mouseout",this.GG.JB,Ym()),this.GG.JB=null)}this.IA&&this.IA.dispose();this.oM&&this.oM.dispose();delete this.N0;delete this.q_;delete this.Pa;delete this.GT.JA;delete this.GT.L;delete this.GG;delete this.IA;delete this.oM;delete this.b4; g.J.prototype.G$.call(this)}; g.M.OC=function(){return this.oM?this.oM.L:this.position}; g.M.AF=function(H){X9().AF(H)}; g.M.TO=function(){return!1}; g.M.y5=function(){return new fQ}; g.M.Tc=function(){return this.N0}; g.M.xL=function(H){return Pju(this,H,1E4)}; g.M.r5=function(H,E,G,P,Q,e,w){this.Kd||(this.qz&&(H=this.wE(H,G,Q,w),P=P&&this.Fr.OT>=(this.Mo()?.3:.5),this.OL(e,H,P),this.Vm=E,H.OT>0&&-1===this.Z_&&(this.Z_=E),this.h$==-1&&this.Ap()&&(this.h$=E),this.aT==-2&&(this.aT=Kw(this.OC())?H.OT:-1),this.Fr=H),this.q_(this))}; g.M.OL=function(H,E,G){this.Tc().update(H,E,this.Fr,G)}; g.M.gY=function(){return new kV}; g.M.wE=function(H,E,G,P){G=this.gY();G.L=E;E=nC().W;E=Kq(Fr)===0?-1:E.isVisible()?0:1;G.W=E;G.OT=this.CN(H);G.Mo=this.Mo();G.ju=P;return G}; g.M.CN=function(H){return this.opacity===0&&f2(this.b4,"opac")===1?0:H}; g.M.Mo=function(){return!1}; g.M.ac=function(){return this.J7Z||this.bPx}; g.M.P3=function(){Yv()}; g.M.fK=function(){Yv()}; g.M.J1=function(){return this.requestSource}; g.M.Yw=function(){return 0}; g.M.Ap=function(){return this.N0.Ap()}; g.M.py=function(){var H=this.qz;H=(this.hasCompleted||this.Iu())&&!H;var E=X9().W!==2||this.AEZ;return this.Kd||E&&H?2:this.Ap()?4:3}; g.M.Ok=function(){return 0};g.eQ.prototype.next=function(){return g.eT}; g.eT={done:!0,value:void 0};g.eQ.prototype.CX=function(){return this};g.C(kCU,kV);var wF=MMl([void 0,1,2,3,4,8,16]),hF=MMl([void 0,4,8,16]),cWM={sv:"sv",v:"v",cb:"cb",e:"e",nas:"nas",msg:"msg","if":"if",sdk:"sdk",p:"p",p0:IQ("p0",hF),p1:IQ("p1",hF),p2:IQ("p2",hF),p3:IQ("p3",hF),cp:"cp",tos:"tos",mtos:"mtos",amtos:"amtos",mtos1:hT("mtos1",[0,2,4],!1,hF),mtos2:hT("mtos2",[0,2,4],!1,hF),mtos3:hT("mtos3",[0,2,4],!1,hF),mcvt:"mcvt",ps:"ps",scs:"scs",bs:"bs",vht:"vht",mut:"mut",a:"a",a0:IQ("a0",hF),a1:IQ("a1",hF),a2:IQ("a2",hF),a3:IQ("a3",hF),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:IQ("c0",hF),c1:IQ("c1",hF),c2:IQ("c2",hF),c3:IQ("c3",hF),mc:"mc",nc:"nc",mv:"mv",nv:"nv",qmt:IQ("qmtos",wF),qnc:IQ("qnc",wF),qmv:IQ("qmv",wF),qnv:IQ("qnv",wF), 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:IQ("ss0",hF),ss1:IQ("ss1",hF),ss2:IQ("ss2",hF),ss3:IQ("ss3",hF),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"},NYQ=Object.assign({},cWM,{avid:uE("audio"),avas:"avas",vs:"vs"}),yWq={atos:"atos",avt:hT("atos",[2]),davs:"davs",dafvs:"dafvs",dav:"dav",ss:function(H,E){return function(G){return G[H]===void 0&&E!==void 0?E:G[H]}}("ss",0), t:"t"};B9.prototype.getValue=function(){return this.W}; B9.prototype.update=function(H,E){H>=32||(this.L&1<=.5;DL(E.volume)&&(this.D=this.D!=-1?Math.min(this.D,E.volume):E.volume,this.C=Math.max(this.C,E.volume));e&&(this.E7+=H,this.L_+=Q?H:0);this.L.update(E.OT,G.OT,E.L,H,P,Q);this.G.update(!0,H);this.T.update(Q,H);this.p_.update(G.fullscreen,H);this.s7.update(Q&&!e,H);H=Math.floor(E.mediaTime/1E3);this.O7.update(H,E.isVisible());this.MZ.update(H,E.OT>=1);this.BF.update(H, Fi(E))}};kwn.prototype.W=function(H){this.G||(this.L(H)?(H=$bt(this.L_,this.D,H),this.T|=H,H=H==0):H=!1,this.G=H)};g.C(bG,kwn);bG.prototype.L=function(){return!0}; bG.prototype.C=function(){return!1}; bG.prototype.getId=function(){var H=this,E=e3(wz,function(G){return G==H.D}); return Zl[E].toString()}; bG.prototype.toString=function(){var H="";this.C()&&(H+="c");this.G&&(H+="s");this.T>0&&(H+=":"+this.T);return this.getId()+H};g.C(iG,bG);iG.prototype.W=function(H,E){E=E===void 0?null:E;E!=null&&this.B.push(E);bG.prototype.W.call(this,H)};g.C(fw,YS7);fw.prototype.W=function(){return null}; fw.prototype.G=function(){return[]};g.C(Xc,GA);g.M=Xc.prototype;g.M.pN=function(){if(this.element){var H=this.element,E=this.W.L.G;try{try{var G=etQ(H.getBoundingClientRect())}catch(W){G=new lJ(0,0,0,0)}var P=G.right-G.left,Q=G.bottom-G.top,e=UOd(H,E),w=e.x,t=e.y;var k=new lJ(Math.round(t),Math.round(w+P),Math.round(t+Q),Math.round(w))}catch(W){k=jBd.clone()}this.G=k;this.L=oGn(this,this.G)}}; g.M.Gj=function(){this.C=this.W.D.L}; g.M.s6=function(H){var E=f2(this.b4,"od")==1;return hvl(H,this.C,this.element,E)}; g.M.DM=function(){this.timestamp=Yv()}; g.M.Fk=function(){this.DM();this.pN();if(this.element&&typeof this.element.videoWidth==="number"&&typeof this.element.videoHeight==="number"){var H=this.element;var E=new g.P4(H.videoWidth,H.videoHeight);H=this.L;var G=Nl(H),P=H.getHeight(),Q=E.width;E=E.height;Q<=0||E<=0||G<=0||P<=0||(Q/=E,E=G/P,H=H.clone(),Q>E?(G/=Q,P=(P-G)/2,P>0&&(P=H.top+P,H.top=Math.round(P),H.bottom=Math.round(P+G))):(P*=Q,G=Math.round((G-P)/2),G>0&&(G=H.left+G,H.left=Math.round(G),H.right=Math.round(G+P))));this.L=H}this.Gj(); H=this.L;G=this.C;H=H.left<=G.right&&G.left<=H.right&&H.top<=G.bottom&&G.top<=H.bottom?new lJ(Math.max(H.top,G.top),Math.min(H.right,G.right),Math.min(H.bottom,G.bottom),Math.max(H.left,G.left)):new lJ(0,0,0,0);G=H.top>=H.bottom||H.left>=H.right?new lJ(0,0,0,0):H;H=this.W.D;E=Q=P=0;if((this.L.bottom-this.L.top)*(this.L.right-this.L.left)>0)if(this.s6(G))G=new lJ(0,0,0,0);else{P=ZY().D;E=new lJ(0,P.height,P.width,0);var e;P=ju(G,(e=this.T)!=null?e:this.L);Q=ju(G,ZY().L);E=ju(G,E)}e=G.top>=G.bottom|| G.left>=G.right?new lJ(0,0,0,0):Lz(G,-this.L.left,-this.L.top);ou()||(Q=P=0);this.L_=new C0(H,this.element,this.L,e,P,Q,this.timestamp,E)}; g.M.getName=function(){return this.W.getName()};var bjl=new lJ(0,0,0,0);g.C(PC,Xc);g.M=PC.prototype;g.M.observe=function(){this.D();return!0}; g.M.fd=function(){Xc.prototype.Fk.call(this)}; g.M.DM=function(){}; g.M.pN=function(){}; g.M.Fk=function(){this.D();Xc.prototype.Fk.call(this)}; g.M.k9=function(H){H=H.isActive();H!==this.N&&(H?this.D():(ZY().L=new lJ(0,0,0,0),this.L=new lJ(0,0,0,0),this.C=new lJ(0,0,0,0),this.timestamp=-1));this.N=H};var $I={},X8Q=($I.firstquartile=0,$I.midpoint=1,$I.thirdquartile=2,$I.complete=3,$I);g.C(CI,Wj);g.M=CI.prototype;g.M.TO=function(){return!0}; g.M.Sf=function(){return this.OB==2}; g.M.xL=function(H){return Pju(this,H,Math.max(1E4,this.G/3))}; g.M.r5=function(H,E,G,P,Q,e,w){var t=this,k=this.B(this)||{};g.S5(k,Q);this.G=k.duration||this.G;this.L_=k.isVpaid||this.L_;this.z$=k.isYouTube||this.z$;nC();this.au=!1;Q=N2v(this,E);Z7u(this)===1&&(e=Q);Wj.prototype.r5.call(this,H,E,G,P,k,e,w);this.Zx&&this.Zx.G&&g.D9(this.C,function(W){W.W(t)})}; g.M.OL=function(H,E,G){Wj.prototype.OL.call(this,H,E,G);n9(this).update(H,E,this.Fr,G);this.hm=Fi(this.Fr)&&Fi(E);this.PF==-1&&this.MZ&&(this.PF=this.Tc().G.L);this.eA.G=0;H=this.Ap();E.isVisible()&&xF(this.eA,"vs");H&&xF(this.eA,"vw");DL(E.volume)&&xF(this.eA,"am");Fi(E)?xF(this.eA,"a"):xF(this.eA,"mut");this.WE&&xF(this.eA,"f");E.W!=-1&&(xF(this.eA,"bm"),E.W==1&&(xF(this.eA,"b"),Fi(E)&&xF(this.eA,"umutb")));Fi(E)&&E.isVisible()&&xF(this.eA,"avs");this.hm&&H&&xF(this.eA,"avw");E.OT>0&&xF(this.eA, "pv");N7(this,this.Tc().G.L,!0)&&xF(this.eA,"gdr");kD(this.Tc().W,1)>=2E3&&xF(this.eA,"pmx");this.au&&xF(this.eA,"tvoff")}; g.M.y5=function(){return new E$}; g.M.Tc=function(){return this.N0}; g.M.gY=function(){return new kCU}; g.M.wE=function(H,E,G,P){H=Wj.prototype.wE.call(this,H,E,G,P===void 0?-1:P);H.fullscreen=this.WE;H.paused=this.Sf();H.volume=G.volume;DL(H.volume)||(this.FI++,E=this.Fr,DL(E.volume)&&(H.volume=E.volume));G=G.currentTime;H.mediaTime=G!==void 0&&G>=0?G:-1;return H}; g.M.CN=function(H){return ZY(),this.WE?1:Wj.prototype.CN.call(this,H)}; g.M.Yw=function(){return 1}; g.M.getDuration=function(){return this.G}; g.M.py=function(){return this.Kd?2:tkj(this)?5:this.Ap()?4:3}; g.M.Ok=function(){return this.s7?this.Tc().T.G>=2E3?4:3:2}; g.M.Q4=function(H){this.oM&&this.oM.Q4(H)};var ijs=g.Gl();NQd.prototype.reset=function(){this.L=[];this.W=[]}; var cY=Lu(NQd);g.C(dp,Ra);g.M=dp.prototype;g.M.getName=function(){return(this.W?this.W:this.L).getName()}; g.M.UC=function(){return(this.W?this.W:this.L).UC()}; g.M.QL=function(){return(this.W?this.W:this.L).QL()}; g.M.init=function(H){var E=!1;(0,g.D9)(this.G,function(G){G.initialize()&&(E=!0)}); E&&(this.D=H,xv(this.L,this));return E}; g.M.dispose=function(){(0,g.D9)(this.G,function(H){H.dispose()}); Ra.prototype.dispose.call(this)}; g.M.X_=function(){return YZ(this.G,function(H){return H.eD()})}; g.M.ri=function(){return YZ(this.G,function(H){return H.eD()})}; g.M.C8=function(H,E,G){return new Xc(H,this.L,E,G)}; g.M.fd=function(H){this.W=H.W};var xjM={threshold:[0,.3,.5,.75,1]};g.C(mq,Xc);g.M=mq.prototype;g.M.observe=function(){var H=this;this.WF||(this.WF=Yv());if(V_Q(298,function(){return Tcd(H)}))return!0; this.W.fail("msf");return!1}; g.M.unobserve=function(){if(this.D&&this.element)try{this.D.unobserve(this.element),this.N?(this.N.unobserve(this.element),this.N=null):this.B&&(this.B.disconnect(),this.B=null)}catch(H){}}; g.M.Fk=function(){var H=zLt(this);H.length>0&&Tb(this,H);Xc.prototype.Fk.call(this)}; g.M.pN=function(){}; g.M.s6=function(){return!1}; g.M.Gj=function(){}; g.M.UC=function(){var H={};return Object.assign(this.W.UC(),(H.niot_obs=this.WF,H.niot_cbk=this.p_,H))}; g.M.getName=function(){return"nio"};g.C(bB,Ra);bB.prototype.getName=function(){return"nio"}; bB.prototype.ri=function(){return!ZY().W&&this.L.L.G.IntersectionObserver!=null}; bB.prototype.C8=function(H,E,G){return new mq(H,this.L,E,G)};g.C(Sy,VV);Sy.prototype.wQ=function(){return ZY().L}; Sy.prototype.eD=function(){var H=SNU();this.N!==H&&(this.L!=this&&H>this.L.N&&(this.L=this,Ua(this)),this.N=H);return H==2};Wx.prototype.sample=function(){Ml(this,yV(),!1)}; Wx.prototype.D=function(){var H=ou(),E=Yv();H?(pn||(Hk=E,g.D9(cY.L,function(G){var P=G.Tc();P.eR=PT(P,E,G.OB!=1)})),pn=!0):(this.B=Icd(this,E),pn=!1,Ls1=E,g.D9(cY.L,function(G){G.qz&&(G.Tc().N=E)})); Ml(this,yV(),!H)}; var gx=Lu(Wx);var lit=null,Qj="",TQ=!1;var Mtj=NIM().PR,lq=NIM().E0;var Hq1={h6J:"visible",Ptx:"audible",rqF:"time",Aqa:"timetype"},Eg7={visible:function(H){return/^(100|[0-9]{1,2})$/.test(H)}, audible:function(H){return H=="0"||H=="1"}, timetype:function(H){return H=="mtos"||H=="tos"}, time:function(H){return/^(100|[0-9]{1,2})%$/.test(H)||/^([0-9])+ms$/.test(H)}}; PfQ.prototype.setTime=function(H,E,G){E=="ms"?(this.G=H,this.D=-1):(this.G=-1,this.D=H);this.T=G===void 0?"tos":G;return this};g.C(Nt,bG);Nt.prototype.getId=function(){return this.B}; Nt.prototype.C=function(){return!0}; Nt.prototype.L=function(H){var E=H.Tc(),G=H.getDuration();return YZ(this.N,function(P){if(P.L!=void 0)var Q=Rkt(P,E);else b:{switch(P.T){case "mtos":Q=P.W?E.T.G:E.G.L;break b;case "tos":Q=P.W?E.T.L:E.G.L;break b}Q=0}Q==0?P=!1:(P=P.G!=-1?P.G:G!==void 0&&G>0?P.D*G:-1,P=P!=-1&&Q>=P);return P})};g.C(fu,gtM);fu.prototype.L=function(H){var E=new o5n;E.L=AQ(H,cWM);E.W=AQ(H,yWq);return E};g.C(mI,bG);mI.prototype.L=function(H){return tkj(H)};g.C(j$,YS7);g.C(eVu,bG);eVu.prototype.L=function(H){return H.Tc().Ap()};g.C(W$,iG);W$.prototype.L=function(H){var E=g.Xa(this.B,f2(X9().b4,"ovms"));return!H.Kd&&(H.OB!=0||E)};g.C(c3,j$);c3.prototype.W=function(){return new W$(this.L)}; c3.prototype.G=function(){return[new eVu("viewable_impression",this.L),new mI(this.L)]};g.C(mr,PC);mr.prototype.D=function(){var H=g.Un("ima.admob.getViewability"),E=f2(this.b4,"queryid");typeof H==="function"&&E&&H(E)}; mr.prototype.getName=function(){return"gsv"};g.C(JY,Ra);JY.prototype.getName=function(){return"gsv"}; JY.prototype.ri=function(){var H=ZY();X9();return H.W&&!1}; JY.prototype.C8=function(H,E,G){return new mr(this.L,E,G)};g.C(gp,PC);gp.prototype.D=function(){var H=this,E=g.Un("ima.bridge.getNativeViewability"),G=f2(this.b4,"queryid");typeof E==="function"&&G&&E(G,function(P){g.ZR(P)&&H.B++;var Q=P.opt_nativeViewVisibleBounds||{},e=P.opt_nativeViewHidden;H.L=tVq(P.opt_nativeViewBounds||{});var w=H.W.D;w.L=e?bjl.clone():tVq(Q);H.timestamp=P.opt_nativeTime||-1;ZY().L=w.L;P=P.opt_nativeVolume;P!==void 0&&(w.volume=P)})}; gp.prototype.getName=function(){return"nis"};g.C(yJ,Ra);yJ.prototype.getName=function(){return"nis"}; yJ.prototype.ri=function(){var H=ZY();X9();return H.W&&!1}; yJ.prototype.C8=function(H,E,G){return new gp(this.L,E,G)};g.C(oc,VV);g.M=oc.prototype;g.M.eD=function(){return this.W.zP!=null}; g.M.vJ=function(){var H={};this.O7&&(H.mraid=this.O7);this.Jm&&(H.mlc=1);H.mtop=this.W.qR5;this.B&&(H.mse=this.B);this.T$&&(H.msc=1);H.mcp=this.W.compatibility;return H}; g.M.MA=function(H){var E=g.c4.apply(1,arguments);try{return this.W.zP[H].apply(this.W.zP,E)}catch(G){lc(538,G,.01,function(P){P.method=H})}}; g.M.initialize=function(){var H=this;if(this.isInitialized)return!this.NH();this.isInitialized=!0;if(this.W.compatibility===2)return this.B="ng",this.fail("w"),!1;if(this.W.compatibility===1)return this.B="mm",this.fail("w"),!1;ZY().N=!0;this.G.document.readyState&&this.G.document.readyState=="complete"?HVU(this):nL(this.G,"load",function(){nC().setTimeout(da(292,function(){return HVU(H)}),100)},292); return!0}; g.M.ke=function(){var H=ZY(),E=Hmv(this,"getMaxSize");H.L=new lJ(0,E.width,E.height,0)}; g.M.Vo=function(){ZY().D=Hmv(this,"getScreenSize")}; g.M.dispose=function(){fad(this);VV.prototype.dispose.call(this)};var qXv=new function(H,E){this.key=H;this.defaultValue=E===void 0?!1:E;this.valueType="boolean"}("45378663");g.M=e1.prototype;g.M.Xi=function(H){Ug(H,!1);axM(H)}; g.M.V5=function(){}; g.M.yK=function(H,E,G,P){var Q=this;H=new CI(md,H,G?E:-1,7,this.xr(),this.ZM());H.R3=P;cYT(H.b4);kS(H.b4,"queryid",H.R3);H.AF("");zpd(H,function(){return Q.Jz.apply(Q,g.EC(g.c4.apply(0,arguments)))},function(){return Q.Z_u.apply(Q,g.EC(g.c4.apply(0,arguments)))}); (P=Lu(lG).L)&&kG1(H,P);this.G&&(H.Q4(this.G),this.G=null);H.GT.JA&&Lu(krt);return H}; g.M.k9=function(H){switch(H.QL()){case 0:if(H=Lu(lG).L)H=H.L,g.Ih(H.T,this),H.L_&&this.TO()&&yHl(H);UU();break;case 2:zQ()}}; g.M.fd=function(){}; g.M.TO=function(){return!1}; g.M.Z_u=function(H,E){H.Kd=!0;switch(H.Yw()){case 1:NAQ(H,E);break;case 2:this.R0(H)}}; g.M.N5u=function(H){var E=H.B(H);E&&(E=E.volume,H.s7=DL(E)&&E>0);uBd(H,0);return sd(H,"start",ou())}; g.M.Xp=function(H,E,G){Ml(gx,[H],!ou());return this.BR(H,E,G)}; g.M.BR=function(H,E,G){return sd(H,G,ou())}; g.M.ymZ=function(H){return cn(H,"firstquartile",1)}; g.M.hw7=function(H){H.MZ=!0;return cn(H,"midpoint",2)}; g.M.KxR=function(H){return cn(H,"thirdquartile",3)}; g.M.fam=function(H){var E=cn(H,"complete",4);lX(H);return E}; g.M.vpN=function(H){H.OB=3;return sd(H,"error",ou())}; g.M.fu=function(H,E,G){E=ou();if(H.Sf()&&!E){var P=H.Tc(),Q=Yv();P.N=Q}Ml(gx,[H],!E);H.Sf()&&(H.OB=1);return sd(H,G,E)}; g.M.MR_=function(H,E){E=this.Xp(H,E||{},"skip");lX(H);return E}; g.M.npp=function(H,E){Ug(H,!0);return this.Xp(H,E||{},"fullscreen")}; g.M.jux=function(H,E){Ug(H,!1);return this.Xp(H,E||{},"exitfullscreen")}; g.M.tF=function(H,E,G){E=H.Tc();var P=Yv();E.eR=PT(E,P,H.OB!=1);Ml(gx,[H],!ou());H.OB==1&&(H.OB=2);return sd(H,G,ou())}; g.M.xZN=function(H){Ml(gx,[H],!ou());return H.W()}; g.M.Yy=function(H){Ml(gx,[H],!ou());this.oX(H);lX(H);return H.W()}; g.M.Jz=function(){}; g.M.R0=function(){}; g.M.oX=function(){}; g.M.sb=function(){}; g.M.Mv=function(){}; g.M.ZM=function(){this.L||(this.L=this.Mv());return this.L==null?new fw:new c3(this.L)}; g.M.xr=function(){return new fu};g.C(O$,bG);O$.prototype.L=function(H){return H.Ok()==4};g.C(ZS7,iG);ZS7.prototype.L=function(H){H=H.Ok();return H==3||H==4};g.C(pc,j$);pc.prototype.W=function(){return new ZS7(this.L)}; pc.prototype.G=function(){return[new O$(this.L)]};g.C(VMU,gtM);VMU.prototype.L=function(H){H&&(H.e===28&&(H=Object.assign({},H,{avas:3})),H.vs===4||H.vs===5)&&(H=Object.assign({},H,{vs:3}));var E=new o5n;E.L=AQ(H,NYQ);E.W=AQ(H,yWq);return E};a7w.prototype.W=function(){return g.Un(this.L)};g.C(NS,e1);g.M=NS.prototype;g.M.V5=function(H,E){var G=this,P=Lu(lG);if(P.L!=null)switch(P.L.getName()){case "nis":var Q=w07(this,H,E);break;case "gsv":Q=CA7(this,H,E);break;case "exc":Q=fpd(this,H)}Q||(E.opt_overlayAdElement?Q=void 0:E.opt_adElement&&(Q=Ypn(this,H,E.opt_adElement,E.opt_osdId)));Q&&Q.Yw()==1&&(Q.B==g.jB&&(Q.B=function(e){return G.sb(e)}),mNl(this,Q,E)); return Q}; g.M.sb=function(H){H.W=0;H.E7=0;if(H.D=="h"||H.D=="n"){X9();H.BF&&(X9(),BK(this)!="h"&&BK(this));var E=g.Un("ima.common.getVideoMetadata");if(typeof E==="function")try{var G=E(H.R3)}catch(Q){H.W|=4}else H.W|=2}else if(H.D=="b")if(E=g.Un("ytads.bulleit.getVideoMetadata"),typeof E==="function")try{G=E(H.R3)}catch(Q){H.W|=4}else H.W|=2;else if(H.D=="ml")if(E=g.Un("ima.common.getVideoMetadata"),typeof E==="function")try{G=E(H.R3)}catch(Q){H.W|=4}else H.W|=2;else H.W|=1;H.W||(G===void 0?H.W|=8:G===null? H.W|=16:g.ZR(G)?H.W|=32:G.errorCode!=null&&(H.E7=G.errorCode,H.W|=64));G==null&&(G={});E=G;H.N=0;for(var P in DVT)E[P]==null&&(H.N|=DVT[P]);hKl(E,"currentTime");hKl(E,"duration");DL(G.volume)&&DL()&&(G.volume*=NaN);return G}; g.M.Mv=function(){X9();BK(this)!="h"&&BK(this);var H=G6Q(this);return H!=null?new a7w(H):null}; g.M.R0=function(H){!H.L&&H.Kd&&DQ(this,H,"overlay_unmeasurable_impression")&&(H.L=!0)}; g.M.oX=function(H){H.iD&&(H.Ap()?DQ(this,H,"overlay_viewable_end_of_session_impression"):DQ(this,H,"overlay_unviewable_impression"),H.iD=!1)}; g.M.Jz=function(){}; g.M.yK=function(H,E,G,P){if(X9().flags.A7(qXv)){var Q=f2(X9().b4,"mm"),e={};(Q=(e[Dc.M8]="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO",e[Dc.VIDEO]="ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO",e)[Q])&&HrM(this,Q);this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_UNSPECIFIED"&&lc(1044,Error())}H=e1.prototype.yK.call(this,H,E,G,P);this.T&&(E=this.C,H.T==null&&(H.T=new aLv),E.L[H.R3]=H.T,H.T.T=ijs);return H}; g.M.Xi=function(H){H&&H.Yw()==1&&this.T&&delete this.C.L[H.R3];return e1.prototype.Xi.call(this,H)}; g.M.ZM=function(){this.L||(this.L=this.Mv());return this.L==null?new fw:this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new pc(this.L):new c3(this.L)}; g.M.xr=function(){return this.D==="ACTIVE_VIEW_TRAFFIC_TYPE_AUDIO"?new VMU:new fu}; g.M.Q4=function(H,E,G,P,Q){E=new lJ(G,E+P,G+Q,E);(H=Xz(cY,H))?H.Q4(E):this.G=E}; var Rnd=MB(193,drq,void 0,Oyt);g.kM("Goog_AdSense_Lidar_sendVastEvent",Rnd);var JWT=da(194,function(H,E){E=E===void 0?{}:E;H=MrT(Lu(NS),H,E);return thq(H)}); g.kM("Goog_AdSense_Lidar_getViewability",JWT);var rWv=MB(195,function(){return f_U()}); g.kM("Goog_AdSense_Lidar_getUrlSignalsArray",rWv);var BYT=da(196,function(){return JSON.stringify(f_U())}); g.kM("Goog_AdSense_Lidar_getUrlSignalsList",BYT);var RAv=g.m$(["//ep2.adtrafficquality.google/sodar/",""]),Jad=g.m$(["//tpc.googlesyndication.com/sodar/",""]);g.C(jg,Error);g.C(oh,g.J);oh.prototype.zM=function(){return this.wpc.f()}; oh.prototype.nN=function(H){this.wpc.c(H)}; oh.prototype.dW=function(H){return this.wpc.m(r9v(H))}; oh.prototype.Z6=function(H){return this.wpc.mws(r9v(H))}; g.C(Le,g.J);Le.prototype.snapshot=function(H){return this.aM.s(Object.assign({},H.mY&&{c:H.mY},H.kA&&{s:H.kA},H.X3!==void 0&&{p:H.X3}))}; Le.prototype.jJ=function(H){this.aM.e(H)}; Le.prototype.M1=function(){return this.aM.l()};g.C(AI,g.J);AI.prototype.share=function(){if(this.Iu())throw Error("E:AD");this.W++;return this}; AI.prototype.dispose=function(){--this.W||g.J.prototype.dispose.call(this)};Rzn.prototype.lA=function(H,E){this.L.lA("/client_streamz/bg/frs",H,E)}; rxQ.prototype.lA=function(H,E,G,P,Q,e){this.L.lA("/client_streamz/bg/wrl",H,E,G,P,Q,e)}; Jx7.prototype.UM=function(H,E){this.L.OH("/client_streamz/bg/ec",H,E)}; eZw.prototype.lA=function(H,E,G){this.L.lA("/client_streamz/bg/el",H,E,G)}; Y4s.prototype.UM=function(H,E){this.L.OH("/client_streamz/bg/cec",H,E)}; $lM.prototype.UM=function(H,E){this.L.OH("/client_streamz/bg/po/csc",H,E)}; npQ.prototype.UM=function(H,E){this.L.OH("/client_streamz/bg/po/ctav",H,E)}; BPv.prototype.UM=function(H,E){this.L.OH("/client_streamz/bg/po/cwsc",H,E)};g.C(G$M,Lg);g.C(lE,Lg);var Uk=[1,2,3];var YXq=[0,Uk,uAw,$Vq,AW1];var Xln=[0,H6,[0,GTv,sBU]];g.C(UO,Lg);var gC=[1,2,3];var Zj1=[0,gC,end,QBl,G5,Xln];g.C(LX,Lg);var CmT=[0,H6,YXq,Zj1];var gXu=[0,p$];g.C(Qk7,Lg);var LCn=[0,p$,-1,I1d];var l1Q=[0,p$,-1,wlq,I1d];g.C(l5,Lg);var skn=[1,2,3];var UVs=[0,skn,G5,LCn,G5,l1Q,G5,gXu];g.C(CX,Lg);CX.prototype.lH=function(){var H=fy(this,3,gH,3,!0);WNu(H);return H[void 0]};CX.prototype.G=Dms([0,p$,UVs,mVv,H6,CmT,tp7,kT7]);g.C(T_s,Lg);g.M=so.prototype;g.M.isEnabled=function(){if(!g.lU.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.M.set=function(H,E,G){var P=!1;if(typeof G==="object"){var Q=G.sameSite;P=G.secure||!1;var e=G.domain||void 0;var w=G.path||void 0;var t=G.maxAge}if(/[;=\s]/.test(H))throw Error('Invalid cookie name "'+H+'"');if(/[;\r\n]/.test(E))throw Error('Invalid cookie value "'+E+'"');t===void 0&&(t=-1);G=e?";domain="+e:"";w=w?";path="+w:"";P=P?";secure":"";t=t<0?"":t==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+t*1E3)).toUTCString();this.L.cookie=H+"="+E+G+w+t+P+(Q!=null? ";samesite="+Q:"")}; g.M.get=function(H,E){for(var G=H+"=",P=(this.L.cookie||"").split(";"),Q=0,e;Q=0;E--)this.remove(H[E])}; var k_=new so(typeof document=="undefined"?null:document);YbQ.prototype.compress=function(H){var E,G,P,Q;return g.L(function(e){switch(e.L){case 1:return E=new CompressionStream("gzip"),G=(new Response(E.readable)).arrayBuffer(),P=E.writable.getWriter(),g.U(e,P.write((new TextEncoder).encode(H)),2);case 2:return g.U(e,P.close(),3);case 3:return Q=Uint8Array,g.U(e,G,4);case 4:return e.return(new Q(e.W))}})}; YbQ.prototype.isSupported=function(H){return H<1024?!1:typeof CompressionStream!=="undefined"};g.C(gO,Lg);lg.prototype.setInterval=function(H){this.intervalMs=H;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()}; lg.prototype.start=function(){var H=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){H.tick()},this.intervalMs),this.W=this.L())}; lg.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)}; lg.prototype.tick=function(){var H=this;if(this.enabled){var E=Math.max(this.L()-this.W,0);E0?G:void 0));G=Nm(G,4,p2(Q>0?Q:void 0));G=Nm(G,5,p2(e>0?e:void 0));Q=G.VN;e=Q[c9]|0;G=Bp(G,e)?G:Ol(G,Q,e)?Yr(G,Q):new G.constructor(R9(Q,e,!0));Lt(w,FQ,10,G)}w=this.L.clone();G=Date.now().toString();w=Nm(w,4,J0(G));H=mn(w,vS,3,H.slice());P&&(w=new XZ,P=Nm(w,13,p2(P)),w=new ZK, P=Lt(w,XZ,2,P),w=new P4q,P=Lt(w,ZK,1,P),P=Ct(P,2,9),Lt(H,P4q,18,P));E&&Ep(H,14,E);return H};g.H2.prototype.W=0;g.H2.prototype.reset=function(){this.L=this.G=this.D;this.W=0}; g.H2.prototype.getValue=function(){return this.G};g.C(N3,Lg);var xVd=iD(N3);g.C(XQU,Lg);var tF;tF=new Zrv;g.C(xh,g.J);g.M=xh.prototype;g.M.G$=function(){UH(this);this.W.stop();this.O7.stop();g.J.prototype.G$.call(this)}; g.M.dispatch=function(H){if(H instanceof vS)this.log(H);else try{var E=new vS,G=H.hK();var P=l0(E,8,G);this.log(P)}catch(Q){QF(this,4,1)}}; g.M.log=function(H){QF(this,2,1);if(this.T$){H=H.clone();var E=this.Yp++;H=Ep(H,21,E);this.componentId&&l0(H,26,this.componentId);E=H;var G=SB(E,1);var P=P===void 0?!1:P;var Q=typeof G;P=G==null?G:Q==="bigint"?String(ea(64,G)):Kr(G)?Q==="string"?l$(G):P?Z5(G):CJ(G):void 0;P==null&&(P=Date.now(),P=Number.isFinite(P)?P.toString():"0",Nm(E,1,J0(P)));P=SB(E,15);P!=null&&(typeof P==="bigint"?uL(P)?P=Number(P):(P=ea(64,P),P=uL(P)?Number(P):String(P)):P=Kr(P)?typeof P==="number"?CJ(P):l$(P):void 0);P!=null|| Ep(E,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(P=this.experimentIds.clone(),Lt(E,gO,16,P));QF(this,1,1);E=this.L.length-1E3+1;E>0&&(this.L.splice(0,E),this.D+=E,QF(this,3,E));this.L.push(H);this.Kl||this.W.enabled||this.W.start()}}; g.M.flush=function(H,E){var G=this;if(this.L.length===0)H&&H();else if(this.PF&&this.p_)this.G.W=3,wnQ(this);else{var P=Date.now();if(this.eR>P&&this.E70&&(G.E7=Date.now(),G.eR=G.E7+m);m=cz(NO);var n;yS&&m&&((n=u.VN[m])==null?void 0:n[175237375])!=null&&Ql(YPq,3);a:{var O=O===void 0?!1:O;if(cz(X0w)&&cz(NO)&&void 0===X0w){n=u.VN;m=n[NO];if(!m)break a;if(m=m.uP)try{m(n,175237375,UeM);break a}catch(q){Bv(q)}}O&&(O=u.VN, (n=cz(NO))&&n in O&&(O=O[n])&&delete O[175237375])}O=tF.L?tF.W(u,tF.L,175237375,tF.G):tF.W(u,175237375,null,tF.G);if(O=O===null?void 0:O)O=pl(O,1,-1),O!==-1&&(G.T=new g.H2(O<1?1:O,3E5,.1),G.W.setInterval(G.T.getValue()))}}H&&H();G.C=0},I=function(m,u){var v=ln(e,vS,3); var n=Number(NeQ(e,14));g.Ey(G.T);G.W.setInterval(G.T.getValue());m===401&&w&&(G.z$=w);n&&(G.D+=n);u===void 0&&(u=G.isRetryable(m));u&&(G.L=v.concat(G.L),G.Kl||G.W.enabled||G.W.start());QF(G,7,1);E&&E("net-send-failed",m);++G.C},A=function(){G.network&&G.network.send(k,W,I)}; t?t.then(function(m){QF(G,5,Q);k.requestHeaders["Content-Encoding"]="gzip";k.requestHeaders["Content-Type"]="application/binary";k.body=m;k.pA=2;A()},function(){QF(G,6,Q); A()}):A()}}}}; g.M.isRetryable=function(H){return 500<=H&&H<600||H===401||H===0};oUM.prototype.send=function(H,E,G){var P=this,Q,e,w,t,k,W,I,A,m,u;return g.L(function(v){switch(v.L){case 1:return e=(Q=P.eS?new AbortController:void 0)?setTimeout(function(){Q.abort()},H.timeoutMillis):void 0,g.EY(v,2,3),w=Object.assign({},{method:H.requestType, headers:Object.assign({},H.requestHeaders)},H.body&&{body:H.body},H.withCredentials&&{credentials:"include"},{signal:H.timeoutMillis&&Q?Q.signal:null}),g.U(v,fetch(H.url,w),5);case 5:t=v.W;if(t.status!==200){(k=G)==null||k(t.status);v.bJ(3);break}if((W=E)==null){v.bJ(7);break}return g.U(v,t.text(),8);case 8:W(v.W);case 7:case 3:g.ED(v);clearTimeout(e);g.GN(v,0);break;case 2:I=g.vo(v);switch((A=I)==null?void 0:A.name){case "AbortError":(m=G)==null||m(408);break;default:(u=G)==null||u(400)}v.bJ(3)}})}; oUM.prototype.k5=function(){return 4};g.C(K1,g.J);K1.prototype.WB=function(){this.D=!0;return this}; K1.prototype.build=function(){this.network||(this.network=new oUM);var H=new xh({logSource:this.logSource,ob:this.ob?this.ob:akl,sessionIndex:this.sessionIndex,quN:this.Hr,c5:this.G,Kl:!1,WB:this.D,wD:this.wD,network:this.network});g.d(this,H);if(this.buildLabel){var E=this.buildLabel,G=Hn(H.G);l0(G,7,E)}H.B=new YbQ;this.componentId&&(H.componentId=this.componentId);this.n4&&(H.n4=this.n4);this.pageId&&(H.pageId=this.pageId);this.L&&((G=this.L)?(H.experimentIds||(H.experimentIds=new gO),E=H.experimentIds, G=G.hK(),l0(E,4,G)):H.experimentIds&&Nm(H.experimentIds,4));this.W&&(H.PF=H.p_);YOU(H.G);this.network.Dm&&this.network.Dm(this.logSource);this.network.Kdp&&this.network.Kdp(H);return H};g.C(jv,g.J);jv.prototype.flush=function(H){H=H||[];if(H.length){for(var E=new T_s,G=[],P=0;P-1?(E=H[w],G||(E.S0=!1)):(E=new GB7(E,this.src,e,!!P,Q),E.S0=G,H.push(E));return E}; g.M.remove=function(H,E,G,P){H=H.toString();if(!(H in this.listeners))return!1;var Q=this.listeners[H];E=a_M(Q,E,G,P);return E>-1?(Vn(Q[E]),g.Fh(Q,E),Q.length==0&&(delete this.listeners[H],this.L--),!0):!1}; g.M.removeAll=function(H){H=H&&H.toString();var E=0,G;for(G in this.listeners)if(!H||G==H){for(var P=this.listeners[G],Q=0;Q-1?H[Q]:null}; g.M.hasListener=function(H,E){var G=H!==void 0,P=G?H.toString():"",Q=E!==void 0;return g.ve(this.listeners,function(e){for(var w=0;w>>0);g.xE(g.E4,g.J);g.E4.prototype[u3U]=!0;g.M=g.E4.prototype;g.M.addEventListener=function(H,E,G,P){g.Ab(this,H,E,G,P)}; g.M.removeEventListener=function(H,E,G,P){EJq(this,H,E,G,P)}; g.M.dispatchEvent=function(H){var E=this.E5;if(E){var G=[];for(var P=1;E;E=E.E5)G.push(E),++P}E=this.BG;P=H.type||H;if(typeof H==="string")H=new g.DK(H,E);else if(H instanceof g.DK)H.target=H.target||E;else{var Q=H;H=new g.DK(P,E);g.S5(H,Q)}Q=!0;var e;if(G)for(e=G.length-1;!H.W&&e>=0;e--){var w=H.currentTarget=G[e];Q=Lr(w,P,!0,H)&&Q}H.W||(w=H.currentTarget=E,Q=Lr(w,P,!0,H)&&Q,H.W||(Q=Lr(w,P,!1,H)&&Q));if(G)for(e=0;!H.W&&e0){this.W--;var H=this.L;this.L=H.next;H.next=null}else H=this.G();return H};var LRQ;ph.prototype.add=function(H,E){var G=rzn.get();G.set(H,E);this.W?this.W.next=G:this.L=G;this.W=G}; ph.prototype.remove=function(){var H=null;this.L&&(H=this.L,this.L=this.L.next,this.L||(this.W=null),H.next=null);return H}; var rzn=new pd(function(){return new NRj},function(H){return H.reset()}); NRj.prototype.set=function(H,E){this.L=H;this.scope=E;this.next=null}; NRj.prototype.reset=function(){this.next=this.scope=this.L=null};var Tc,Hy=!1,RDM=new ph;SVj.prototype.reset=function(){this.context=this.W=this.G=this.L=null;this.D=!1}; var Ir7=new pd(function(){return new SVj},function(H){H.reset()}); g.El.prototype.then=function(H,E,G){return kFn(this,aK(typeof H==="function"?H:null),aK(typeof E==="function"?E:null),G)}; g.El.prototype.$goog_Thenable=!0;g.M=g.El.prototype;g.M.finally=function(H){var E=this;H=aK(H);return new g.El(function(G,P){y9w(E,function(Q){H();G(Q)},function(Q){H(); P(Q)})})}; g.M.KW=function(H,E){return kFn(this,null,aK(H),E)}; g.M.catch=g.El.prototype.KW;g.M.cancel=function(H){if(this.L==0){var E=new DH(H);g.VP(function(){Gnn(this,E)},this)}}; g.M.nxZ=function(H){this.L=0;Hv(this,2,H)}; g.M.hx7=function(H){this.L=0;Hv(this,3,H)}; g.M.QC=function(){for(var H;H=P5U(this);)Q7Q(this,H,this.L,this.B);this.C=!1}; var yRj=Bv;g.xE(DH,oq);DH.prototype.name="cancel";g.xE(g.Pe,g.E4);g.M=g.Pe.prototype;g.M.enabled=!1;g.M.Zj=null;g.M.setInterval=function(H){this.nM=H;this.Zj&&this.enabled?(this.stop(),this.start()):this.Zj&&this.stop()}; g.M.UIF=function(){if(this.enabled){var H=g.Gl()-this.D3;H>0&&H0&&(this.getStatus(),this.C=setTimeout(this.FY.bind(this), this.p_)),this.getStatus(),this.L_=!0,this.L.send(H),this.L_=!1}catch(w){this.getStatus(),VWU(this,w)}}; g.M.FY=function(){typeof myq!="undefined"&&this.L&&(this.D="Timed out after "+this.p_+"ms, aborting",this.W=8,this.getStatus(),this.dispatchEvent("timeout"),this.abort(8))}; g.M.abort=function(H){this.L&&this.G&&(this.getStatus(),this.G=!1,this.T=!0,this.L.abort(),this.T=!1,this.W=H||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ke(this))}; g.M.G$=function(){this.L&&(this.G&&(this.G=!1,this.T=!0,this.L.abort(),this.T=!1),ke(this,!0));g.il.j7.G$.call(this)}; g.M.Al=function(){this.Iu()||(this.Jm||this.L_||this.T?u87(this):this.U4J())}; g.M.U4J=function(){u87(this)}; g.M.isActive=function(){return!!this.L}; g.M.isComplete=function(){return g.cS(this)==4}; g.M.getStatus=function(){try{return g.cS(this)>2?this.L.status:-1}catch(H){return-1}}; g.M.getResponseHeader=function(H){if(this.L&&this.isComplete())return H=this.L.getResponseHeader(H),H===null?void 0:H}; g.M.getLastError=function(){return typeof this.D==="string"?this.D:String(this.D)};vm.prototype.send=function(H,E,G){E=E===void 0?function(){}:E; G=G===void 0?function(){}:G; aQv(H.url,function(P){P=P.target;mZ(P)?E(g.u3(P)):G(P.getStatus())},H.requestType,H.body,H.requestHeaders,H.timeoutMillis,H.withCredentials)}; vm.prototype.k5=function(){return 1};mP.prototype.done=function(){this.logger.GJ(this.event,BG()-this.startTime)}; g.C(p1,AI);g.C(XP,p1);g.M=XP.prototype;g.M.I7=function(){}; g.M.s0=function(){}; g.M.GJ=function(){}; g.M.IF=function(){}; g.M.WV=function(){}; g.M.Or=function(H,E,G,P){return P}; g.M.fn=function(){}; g.M.YU=function(){}; g.M.Z4=function(){}; g.C(J1t,p1);g.M=J1t.prototype;g.M.update=function(H){this.logger.dispose();this.logger=H}; g.M.s0=function(H){this.logger.s0(H)}; g.M.GJ=function(H,E){this.logger.GJ(H,E)}; g.M.IF=function(H){this.logger.IF(H)}; g.M.WV=function(){this.logger.WV()}; g.M.Or=function(H,E,G,P){return this.logger.Or(H,E,G,P)}; g.M.fn=function(H){this.logger.fn(H)}; g.M.YU=function(H){this.logger.YU(H)}; g.M.Z4=function(H){this.logger.Z4(H)}; g.M.I7=function(H){this.logger.I7(H)}; g.C(Ydn,g.J);g.C(HI,p1);g.M=HI.prototype;g.M.I7=function(H){this.metrics.F8R.lA(H,this.MI)}; g.M.s0=function(H){this.metrics.eventCount.UM(H,this.MI)}; g.M.GJ=function(H,E){this.metrics.Ew.lA(E,H,this.MI)}; g.M.IF=function(H){this.metrics.errorCount.UM(H,this.MI)}; g.M.Or=function(H,E,G,P){function Q(t){if(!e.Iu()){var k=BG()-w;e.metrics.DM5.lA(k,H,G,t,E,e.MI)}} var e=this,w=BG();P.then(function(){return void Q(0)},function(t){return void Q(t instanceof DJ?t.code:-1)}); return P}; g.M.fn=function(H){this.metrics.HW_.UM(H,this.MI)}; g.M.YU=function(H){this.metrics.Wd.UM(H,this.MI)}; g.M.Z4=function(H){this.metrics.JRa.UM(H,this.MI)}; g.C(Iu,HI);Iu.prototype.WV=function(){Xvq(this.L)};g.C(z$,Lg);g.C(H_,Lg);g.C(pa,Lg);var QiQ=iD(pa),OeT=function(H){return FV(function(E){return E instanceof H&&!Bp(E)})}(pa); pa.messageId="bfkj";g.C(Ur,Lg);g.C(yK,Lg);var K8n=iD(yK);g.C(Gt,g.J);Gt.prototype.snapshot=function(H){if(this.Iu())throw Error("Already disposed");this.logger.s0("n");var E=this.logger.share();return this.G.then(function(G){var P=G.XK;return new Promise(function(Q){var e=new mP(E,"n");P(function(w){e.done();E.I7(w.length);E.WV();E.dispose();Q(w)},[H.mY, H.kA,H.Ba,H.X3])})})}; Gt.prototype.uD=function(H){var E=this;if(this.Iu())throw Error("Already disposed");this.logger.s0("n");var G=$$(this.logger,function(){return E.D([H.mY,H.kA,H.Ba,H.X3])},"n"); this.logger.I7(G.length);this.logger.WV();return G}; Gt.prototype.jJ=function(H){this.G.then(function(E){var G;(G=E.CkJ)==null||G(H)})}; Gt.prototype.M1=function(){return this.logger.share()};g.C(P2w,Lg);g.C(O5,Lg);Y6.prototype.IL=function(H){return Wej(this,H,new XP,0)};g.C(P$,g.J);P$.prototype.snapshot=function(H){var E=this;return g.L(function(G){switch(G.L){case 1:if(E.Iu())throw Error("Already disposed");if(E.W||E.B){G.bJ(2);break}return g.U(G,E.T.promise,2);case 2:if(!E.W){G.bJ(4);break}return g.U(G,E.W.snapshot(H),5);case 5:return G.return(G.W);case 4:throw E.B;}})}; P$.prototype.jJ=function(H){var E,G;(E=this.W)==null||(G=E.jJ)==null||G.call(E,H)}; P$.prototype.handleError=function(H){if(!this.Iu()){this.B=H;this.T.resolve();var E,G;(G=(E=this.options).wOF)==null||G.call(E,H)}}; P$.prototype.M1=function(){return this.logger.share()}; var pBU={gH_:432E5,B8:3E5,nD:10,UJ:1E4,Ow:3E4,r7o:3E4,Vx$:6E4,le:1E3,ue:6E4,m6:6E5,dR:.25,HI:2,maxAttempts:10};var Vps,Rov=(Vps=Math.imul)!=null?Vps:function(H,E){return H*E|0},yR=[196, 200,224,18];JS.prototype.hK=function(){return String(this.L)+","+this.W.join()}; JS.prototype.OR=function(H,E){var G=void 0;if(this.W[this.L]!==H){var P=this.W.indexOf(H);P!==-1?(this.W.splice(P,1),P0;)E[G++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(H%62),H=Math.floor(H/62);return E.join("")}};g.C(Sq,g.J);Sq.prototype.Z6=function(H,E){var G=this.dW(H);E==null||E(G);return $$(this.logger,function(){return g.H4(G,2)},this.W)}; g.C(Kt,Sq);Kt.prototype.dW=function(H,E){var G=this;this.logger.s0(this.L);++this.T>=this.C&&this.G.resolve();var P=H();H=$$(this.logger,function(){return G.D(P)},"C"); if(H===void 0)throw new jg(17,"YNJ:Undefined");if(!(H instanceof Uint8Array))throw new jg(18,"ODM:Invalid");E==null||E(H);return H}; g.C(wA,Sq);wA.prototype.dW=function(){return this.D}; g.C(fO,Sq);fO.prototype.dW=function(){var H=this;return $$(this.logger,function(){return D5(H.D)},"d")}; fO.prototype.Z6=function(){return this.D}; g.C(gz,Sq);gz.prototype.dW=function(){if(this.D)return this.D;this.D=qYv(this,function(H){return"_"+qj1(H)}); return qYv(this,function(H){return H})}; g.C(U_,Sq);U_.prototype.dW=function(){var H=Math.floor(Date.now()/1E3),E=[Math.random()*255,Math.random()*255],G=E.concat([this.D&255,this.clientState],[H>>24&255,H>>16&255,H>>8&255,H&255]);H=new Uint8Array(2+G.length);H[0]=34;H[1]=G.length;H.set(G,2);G=H.subarray(2);for(var P=E=E.length;P150))try{this.cache=new FOw(H,this.logger)}catch(E){this.reportError(new jg(22,"GBJ:init",E))}}; g.M.reportError=function(H){this.logger.IF(H.code);this.onError(H);return H}; var zRQ=function(H){return FV(function(E){if(!rXs(E))return!1;for(var G=g.R(Object.entries(H)),P=G.next();!P.done;P=G.next()){var Q=g.R(P.value);P=Q.next().value;Q=Q.next().value;if(!(P in E)){if(Q.tNN===!0)continue;return!1}if(!Q(E[P]))return!1}return!0})}({aM:function(H){return FV(function(E){return E instanceof H})}(P$)},"");var pDM=(new Date).getTime();g.C(Hh,Lg);var SXn=iD(Hh);y7d.prototype.getMetadata=function(){return this.metadata};Xi.prototype.getMetadata=function(){return this.metadata}; Xi.prototype.getStatus=function(){return this.status};NH.prototype.B=function(H,E){E=E===void 0?{}:E;return new y7d(H,this,E)}; NH.prototype.getName=function(){return this.name};var FCT=new NH("/google.internal.waa.v1.Waa/Create",P2w,Hh,function(H){return H.hK()},SXn);g.C(v8,Lg);var tas=new NH("/google.internal.waa.v1.Waa/GenerateIT",O5,v8,function(H){return H.hK()},iD(v8));var mwl=new Set(["SAPISIDHASH","APISIDHASH"]);g.C(lj,Lg);lj.prototype.getValue=function(){var H=SB(this,2);if(Array.isArray(H)||H instanceof Lg)throw Error("Cannot access the Any.value field on Any protos encoded using the jspb format, call unpackJspb instead");return HP(this,2)};g.C(aou,Lg);aou.prototype.getMessage=function(){return WH(this,2)}; var $Xj=iD(aou);wI.prototype.removeListener=function(H,E){H==="data"?ZQ(this.W,E):H==="metadata"?ZQ(this.D,E):H==="status"?ZQ(this.T,E):H==="end"?ZQ(this.G,E):H==="error"&&ZQ(this.L,E);return this}; wI.prototype.cancel=function(){this.xhr.abort()}; g.C(Bil,Error);g.xE(g.qG,VXQ);g.qG.prototype.L=function(){var H=new mo(this.D,this.G);this.W&&H.setCredentialsMode(this.W);return H}; g.qG.prototype.setCredentialsMode=function(H){this.W=H}; g.xE(mo,g.E4);g.M=mo.prototype;g.M.open=function(H,E){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.WF=H;this.p_=E;this.readyState=1;rw(this)}; g.M.send=function(H){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.N.signal.aborted)throw this.abort(),Error("Request was aborted.");this.L=!0;var E={headers:this.L_,method:this.WF,credentials:this.T,cache:void 0,signal:this.N.signal};H&&(E.body=H);(this.Jm||g.lU).fetch(new Request(this.p_,E)).then(this.Y7Z.bind(this),this.pn.bind(this))}; g.M.abort=function(){this.response=this.responseText="";this.L_=new Headers;this.status=0;this.N.abort("Request was aborted.");this.G&&this.G.cancel("Request was aborted.").catch(function(){}); this.readyState>=1&&this.L&&this.readyState!=4&&(this.L=!1,MW(this));this.readyState=0}; g.M.Y7Z=function(H){if(this.L&&(this.D=H,this.W||(this.status=this.D.status,this.statusText=this.D.statusText,this.W=H.headers,this.readyState=2,rw(this)),this.L&&(this.readyState=3,rw(this),this.L)))if(this.responseType==="arraybuffer")H.arrayBuffer().then(this.rmw.bind(this),this.pn.bind(this));else if(typeof g.lU.ReadableStream!=="undefined"&&"body"in H){this.G=H.body.getReader();if(this.C){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.'); this.response=[]}else this.response=this.responseText="",this.B=new TextDecoder;uN7(this)}else H.text().then(this.Am_.bind(this),this.pn.bind(this))}; g.M.S7N=function(H){if(this.L){if(this.C&&H.value)this.response.push(H.value);else if(!this.C){var E=H.value?H.value:new Uint8Array(0);if(E=this.B.decode(E,{stream:!H.done}))this.response=this.responseText+=E}H.done?MW(this):rw(this);this.readyState==3&&uN7(this)}}; g.M.Am_=function(H){this.L&&(this.response=this.responseText=H,MW(this))}; g.M.rmw=function(H){this.L&&(this.response=H,MW(this))}; g.M.pn=function(){this.L&&MW(this)}; g.M.setRequestHeader=function(H,E){this.L_.append(H,E)}; g.M.getResponseHeader=function(H){return this.W?this.W.get(H.toLowerCase())||"":""}; g.M.getAllResponseHeaders=function(){if(!this.W)return"";for(var H=[],E=this.W.entries(),G=E.next();!G.done;)G=G.value,H.push(G[0]+": "+G[1]),G=E.next();return H.join("\r\n")}; g.M.setCredentialsMode=function(H){this.T=H}; Object.defineProperty(mo.prototype,"withCredentials",{get:function(){return this.T==="include"}, set:function(H){this.setCredentialsMode(H?"include":"same-origin")}});g.TE.prototype.toString=function(){var H=[],E=this.T;E&&H.push(Vz(E,f1v,!0),":");var G=this.L;if(G||E=="file")H.push("//"),(E=this.N)&&H.push(Vz(E,f1v,!0),"@"),H.push(g.Bo(G).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),G=this.G,G!=null&&H.push(":",String(G));if(G=this.W)this.L&&G.charAt(0)!="/"&&H.push("/"),H.push(Vz(G,G.charAt(0)=="/"?plT:HwZ,!0));(G=this.D.toString())&&H.push("?",G);(G=this.C)&&H.push("#",Vz(G,EQW));return H.join("")}; g.TE.prototype.resolve=function(H){var E=this.clone(),G=!!H.T;G?g.el(E,H.T):G=!!H.N;G?E.N=H.N:G=!!H.L;G?g.yZ(E,H.L):G=H.G!=null;var P=H.W;if(G)g.bg(E,H.G);else if(G=!!H.W){if(P.charAt(0)!="/")if(this.L&&!this.W)P="/"+P;else{var Q=E.W.lastIndexOf("/");Q!=-1&&(P=E.W.slice(0,Q+1)+P)}Q=P;if(Q==".."||Q==".")P="";else if(g.f3(Q,"./")||g.f3(Q,"/.")){P=QQ(Q,"/");Q=Q.split("/");for(var e=[],w=0;w1||e.length==1&&e[0]!="")&&e.pop(), P&&w==Q.length&&e.push("")):(e.push(t),P=!0)}P=e.join("/")}else P=Q}G?E.W=P:G=H.D.toString()!=="";G?ig(E,H.D.clone()):G=!!H.C;G&&(E.C=H.C);return E}; g.TE.prototype.clone=function(){return new g.TE(this)}; var f1v=/[#\/\?@]/g,HwZ=/[#\?:]/g,plT=/[#\?]/g,dJu=/[#\?@]/g,EQW=/#/g;g.M=qU.prototype;g.M.add=function(H,E){R7(this);this.G=null;H=JZ(this,H);var G=this.L.get(H);G||this.L.set(H,G=[]);G.push(E);this.W=this.W+1;return this}; g.M.remove=function(H){R7(this);H=JZ(this,H);return this.L.has(H)?(this.G=null,this.W=this.W-this.L.get(H).length,this.L.delete(H)):!1}; g.M.clear=function(){this.L=this.G=null;this.W=0}; g.M.isEmpty=function(){R7(this);return this.W==0}; g.M.forEach=function(H,E){R7(this);this.L.forEach(function(G,P){G.forEach(function(Q){H.call(E,Q,P,this)},this)},this)}; g.M.cR=function(){R7(this);for(var H=Array.from(this.L.values()),E=Array.from(this.L.keys()),G=[],P=0;P0?String(H[0]):E}; g.M.toString=function(){if(this.G)return this.G;if(!this.L)return"";for(var H=[],E=Array.from(this.L.keys()),G=0;G>>3;e.G!=1&&e.G!=2&&e.G!=15&&AS(e,w,t,"unexpected tag");e.L=1;e.W=0;e.D=0} function Q(k){e.T[e.N++]=k;e.N==e.W&&E()} for(var e=this,w=H instanceof Array?H:new Uint8Array(H),t=0;t0?H:null};h2.prototype.isInputValid=function(){return this.L===null}; h2.prototype.K6=function(){return this.L}; h2.prototype.aS=function(){return!1}; h2.prototype.parse=function(H){this.L!==null&&r3t(this,H,"stream already broken");var E=null;try{var G=this.G;G.G||okQ(G,H,"stream already broken");G.L+=H;var P=Math.floor(G.L.length/4);if(P==0)var Q=null;else{try{var e=bxv(G.L.slice(0,P*4))}catch(w){okQ(G,G.L,w.message)}G.W+=P*4;G.L=G.L.slice(P*4);Q=e}E=Q===null?null:this.D.parse(Q)}catch(w){r3t(this,H,w.message)}this.W+=H.length;return E};var PUJ={INIT:0,Rk:1,Tn:2,xl:3,G0:4,iX:5,STRING:6,Ec:7,Qv:8,IC:9,OG:10,zi:11,xu:12,MG:13,NG:14,Kj:15,Ti:16,SM:17,UG:18,qe:19,Qk:20};g.M=Wu.prototype;g.M.isInputValid=function(){return this.T!=3}; g.M.K6=function(){return this.L_}; g.M.done=function(){return this.T===2}; g.M.aS=function(){return!1}; g.M.parse=function(H){function E(){var v=w.pop();return v!=null?v:k.Rk} function G(v){e.W>1||(v||(v=A===-1?e.D+H.substring(I,m):H.substring(A,m)),e.p_?e.C.push(v):e.C.push(JSON.parse(v)),A=m)} function P(){for(var v;;){v=H[m++];if(!v)break;e.G++;switch(e.L){case k.INIT:v==="{"?e.L=k.Tn:v==="["?e.L=k.G0:XG(v)||L0(e,H,m);continue;case k.Ec:case k.Tn:if(XG(v))continue;if(e.L===k.Ec)w.push(k.Qv);else if(v==="}"){G("{}");e.L=E();continue}else w.push(k.xl);v==='"'?e.L=k.STRING:L0(e,H,m);continue;case k.Qv:case k.xl:if(XG(v))continue;v===":"?(e.L===k.xl&&(w.push(k.xl),e.W++),e.L=k.Rk):v==="}"?(e.W--,G(),e.L=E()):v===","?(e.L===k.xl&&w.push(k.xl),e.L=k.Ec):L0(e,H,m);continue;case k.G0:case k.Rk:if(XG(v))continue; if(e.L===k.G0)if(e.W++,e.L=k.Rk,v==="]"){e.W--;if(e.W===0){e.L=k.iX;return}G("[]");e.L=E();continue}else w.push(k.iX);v==='"'?e.L=k.STRING:v==="{"?e.L=k.Tn:v==="["?e.L=k.G0:v==="t"?e.L=k.IC:v==="f"?e.L=k.xu:v==="n"?e.L=k.Ti:v!=="-"&&("0123456789".indexOf(v)!==-1?e.L=k.Qk:L0(e,H,m));continue;case k.iX:if(v===",")w.push(k.iX),e.L=k.Rk,e.W===1&&(A=m);else if(v==="]"){e.W--;if(e.W===0)return;G();e.L=E()}else if(XG(v))continue;else L0(e,H,m);continue;case k.STRING:var n=m;a:for(;;){for(;e.N>0;)if(v=H[m++], e.N===4?e.N=0:e.N++,!v)break a;if(v==='"'&&!e.B){e.L=E();break}if(v==="\\"&&!e.B&&(e.B=!0,v=H[m++],!v))break;if(e.B)if(e.B=!1,v==="u"&&(e.N=1),v=H[m++])continue;else break;t.lastIndex=m;v=t.exec(H);if(!v){m=H.length+1;break}m=v.index+1;v=H[v.index];if(!v)break}e.G+=m-n;continue;case k.IC:if(!v)continue;v==="r"?e.L=k.OG:L0(e,H,m);continue;case k.OG:if(!v)continue;v==="u"?e.L=k.zi:L0(e,H,m);continue;case k.zi:if(!v)continue;v==="e"?e.L=E():L0(e,H,m);continue;case k.xu:if(!v)continue;v==="a"?e.L=k.MG: L0(e,H,m);continue;case k.MG:if(!v)continue;v==="l"?e.L=k.NG:L0(e,H,m);continue;case k.NG:if(!v)continue;v==="s"?e.L=k.Kj:L0(e,H,m);continue;case k.Kj:if(!v)continue;v==="e"?e.L=E():L0(e,H,m);continue;case k.Ti:if(!v)continue;v==="u"?e.L=k.SM:L0(e,H,m);continue;case k.SM:if(!v)continue;v==="l"?e.L=k.UG:L0(e,H,m);continue;case k.UG:if(!v)continue;v==="l"?e.L=E():L0(e,H,m);continue;case k.qe:v==="."?e.L=k.Qk:L0(e,H,m);continue;case k.Qk:if("0123456789.eE+-".indexOf(v)!==-1)continue;else m--,e.G--,e.L= E();continue;default:L0(e,H,m)}}} function Q(){for(;m0?(u=e.C,e.C=[],u):null}return null};cC.prototype.isInputValid=function(){return this.T===null}; cC.prototype.K6=function(){return this.T}; cC.prototype.aS=function(){return!1}; cC.prototype.parse=function(H){function E(k){e.W=6;e.T="The stream is broken @"+e.L+"/"+w+". Error: "+k+". With input:\n";throw Error(e.T);} function G(){e.G=new Wu({pVw:!0,h9:!0})} function P(k){if(k)for(var W=0;W1)&&E("extra status: "+k);e.C=!0;var W={};W[2]=k[0];e.D.push(W)}} for(var e=this,w=0;w0?(H=e.D,e.D=[],H):null};YE.prototype.S9=function(){return this.L}; YE.prototype.getStatus=function(){return this.T}; YE.prototype.p_=function(H){H=H.target;try{if(H==this.L)a:{var E=g.cS(this.L),G=this.L.W,P=this.L.getStatus(),Q=g.u3(this.L);H=[];if(g.Hi(this.L)instanceof Array){var e=g.Hi(this.L);e.length>0&&e[0]instanceof Uint8Array&&(this.L_=!0,H=e)}if(!(E<3||E==3&&!Q&&H.length==0))if(P=P==200||P==206,E==4&&(G==8?yc(this,7):G==7?yc(this,8):P||yc(this,3)),this.W||(this.W=zwq(this.L),this.W==null&&yc(this,5)),this.T>2)kA(this);else{if(H.length>this.G){var w=H.length;G=[];try{if(this.W.aS())for(var t=0;tthis.G){t=Q.slice(this.G);this.G=Q.length;try{var W=this.W.parse(t);W!=null&&this.D&&this.D(W)}catch(I){yc(this,5);kA(this);break a}}E==4?(Q.length!= 0||this.L_?yc(this,2):yc(this,4),kA(this)):yc(this,1)}}}catch(I){yc(this,6),kA(this)}};g.M=zll.prototype;g.M.addListener=function(H,E){zC(this,H,E);return this}; g.M.removeListener=function(H,E){var G=this.W[H];G&&g.Ih(G,E);(H=this.L[H])&&g.Ih(H,E);return this}; g.M.once=function(H,E){var G=this.L[H];G||(G=[],this.L[H]=G);G.push(E);return this}; g.M.Mqw=function(H){var E=this.W.data;E&&GJT(H,E);(E=this.L.data)&&GJT(H,E);this.L.data=[]}; g.M.pK5=function(){switch(this.G.getStatus()){case 1:U1(this,"readable");break;case 5:case 6:case 4:case 7:case 3:U1(this,"error");break;case 8:U1(this,"close");break;case 2:U1(this,"end")}};nHU.prototype.serverStreaming=function(H,E,G,P){var Q=this,e=H.substring(0,H.length-P.name.length);return Ifu(function(w){var t=w.xF,k=w.getMetadata(),W=iTU(Q,!1);k=NKU(Q,k,W,e+t.getName());var I=S0n(W,t.W,!0);w=t.L(w.rL);W.send(k,"POST",w);return I},this.o8).call(this,P.B(E,G))};pC7.prototype.create=function(H,E,G){var P=this.L,Q=this.W+"/$rpc/google.internal.waa.v1.Waa/Create";E=E||{};G=G===void 0?{}:G;return kNM(P,Q,H,E,FCT,G)};var nkl,xIt,Vu7,zFd,Gwu,ERv,cLT,ssD,Mn1,d9w,Uft,WRU;nkl=new M8(45724570);xIt=new M8(45730569);g.Ka=new M8(45728572);g.Qsd=new M8(45728933);Vu7=new M8(45731083);zFd=new M8(45728553);Gwu=new M8(45731831);ERv=new M8(45731202);cLT=new M8(45725537);ssD=new M8(45727949);Mn1=new M8(45728333);d9w=new XQ(45728334);Uft=new M8(45728181);WRU=new M8(45729215);var Rd7=new XQ(45725542),qVt=new XQ(45725543),yLj=new XQ(45725539),iCl=new XQ(45725541),bCT=new XQ(45725540),Niv=new XQ(45725538),jPs=new function(H,E,G,P){this.cz=H;this.mM=E;this.defaultValue=P;this.oL="int"}(3,45721421,"h5vcc_set_prefer_minimal_post_processing",sD("0"));var Ynq="://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(" "),Xtu=/\bocr\b/;var D2t=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;g.C(jk1,Lg);g.C(hil,Lg);g.C(I3,Lg);I3.prototype.getName=function(){return WH(this,1)}; I3.prototype.getOptions=function(){return yP(this,hil,3)}; I3.prototype.clearOptions=function(){return Nm(this,3)};g.C(jwM,Lg);g.M=jwM.prototype;g.M.getName=function(){return WH(this,1)}; g.M.getOptions=function(){return yP(this,jk1,3)}; g.M.clearOptions=function(){return Nm(this,3)}; g.M.Rs=function(){return w6(this,6)}; g.M.BT=function(H){Ct(this,6,H)};var GRs=function(H){return function(E){E=JSON.parse(E);if(!Array.isArray(E))throw Error("Expected jspb data to be an array, got "+CB(E)+": "+E);J8(E,34);return new H(E)}}(jwM);var Ecq=Symbol();var quM=Symbol();Object.assign({},{attributes:{},handleError:function(H){throw H;}},{t2o:!0, UPF:!0,Ivo:!1,OZN:Osd,zTN:KtU,oZo:!1,CT7:!1,gZ5:!1,ShR:!0,eTo:aTQ,T0R:!1,M2x:!1,zWa:!1});var QH=null,Pb=!1,Xid=1,D7T=Symbol("SIGNAL"),kI={version:0,I0R:0,Tp:!1,producers:void 0,GB:void 0,Bm:void 0,yu:void 0,Mi:!1,AU:!1,Yr:!1,kind:"unknown",dL:function(){return!1}, Ey:function(){}, r3:function(){}, PTJ:function(){}};var W6=Symbol("UNSET"),Iw=Symbol("COMPUTING"),AF=Symbol("ERRORED");Object.assign({},kI,{value:W6,Tp:!0,error:null,gN:Er,kind:"computed",dL:function(H){return H.value===W6||H.value===Iw}, Ey:function(H){if(H.value===Iw)throw Error("");var E=H.value;H.value=Iw;var G=Lyd(H),P=!1;try{var Q=H.TE();R2(null);P=E!==W6&&E!==AF&&Q!==AF&&H.gN(E,Q)}catch(e){Q=AF,H.error=e}finally{R2(G),H&&GVT(H)}P?H.value=E:(H.value=Q,H.version++)}});Object.assign({},kI,{Yr:!0,AU:!0,Tp:!0,kind:"effect"});var aJn=Object.assign({},kI,{gN:Er,value:void 0,kind:"signal"});Object.assign({},kI,{value:W6,Tp:!0,error:null,gN:Er,kind:"linkedSignal",dL:function(H){return H.value===W6||H.value===Iw}, Ey:function(H){if(H.value===Iw)throw Error("");var E=H.value;H.value=Iw;var G=Lyd(H);try{var P=H.source();var Q=H.TE(P,E===W6||E===AF?void 0:{source:H.p6w,value:E});H.p6w=P}catch(e){Q=AF,H.error=e}finally{R2(G),H&&GVT(H)}E!==W6&&Q!==AF&&H.gN(E,Q)?H.value=E:(H.value=Q,H.version++)}});Object.assign({},kI,{Yr:!0,AU:!1,r3:function(H){H.schedule!==null&&H.schedule(H.pWw)}, JH5:function(){}});g.C(LR,g.E4);LR.prototype.dispose=function(){window.removeEventListener("offline",this.G);window.removeEventListener("online",this.G);this.UZ.gU(this.T);delete LR.instance}; LR.prototype.Lm=function(){return this.L}; LR.prototype.Wo=function(){var H=this;this.T=this.UZ.c6(function(){var E;return g.L(function(G){if(G.L==1)return H.L?((E=window.navigator)==null?0:E.onLine)?G.bJ(3):g.U(G,gq(H),3):g.U(G,gq(H),3);H.Wo();g.P2(G)})},3E4)};g.C(z$v,Lg);var Xav=kin(z$v,[0,Qy,nXs,wlq,Qy,-2,wlq,sBU]);O7.prototype.set=function(H,E){E=E===void 0?!0:E;0<=H&&H<52&&Number.isInteger(H)&&this.data[H]!==E&&(this.data[H]=E,this.L=-1)}; O7.prototype.get=function(H){return!!this.data[H]};var $Iq;g.xE(g.tr,g.J);g.M=g.tr.prototype;g.M.start=function(){this.stop();this.D=!1;var H=S3j(this),E=Skw(this);H&&!E&&this.W.mozRequestAnimationFrame?(this.L=g.Ab(this.W,"MozBeforePaint",this.G),this.W.mozRequestAnimationFrame(null),this.D=!0):this.L=H&&E?H.call(this.W,this.G):this.W.setTimeout(Oul(this.G),20)}; g.M.stop=function(){if(this.isActive()){var H=S3j(this),E=Skw(this);H&&!E&&this.W.mozRequestAnimationFrame?Ge(this.L):H&&E?E.call(this.W,this.L):this.W.clearTimeout(this.L)}this.L=null}; g.M.isActive=function(){return this.L!=null}; g.M.Lr=function(){this.D&&this.L&&Ge(this.L);this.L=null;this.C.call(this.T,g.Gl())}; g.M.G$=function(){this.stop();g.tr.j7.G$.call(this)};g.xE(g.Wt,g.J);g.M=g.Wt.prototype;g.M.An=0;g.M.G$=function(){g.Wt.j7.G$.call(this);this.stop();delete this.L;delete this.W}; g.M.start=function(H){this.stop();this.An=g.N0(this.G,H!==void 0?H:this.nM)}; g.M.stop=function(){this.isActive()&&g.lU.clearTimeout(this.An);this.An=0}; g.M.isActive=function(){return this.An!=0}; g.M.qX=function(){this.An=0;this.L&&this.L.call(this.W)};g.C(g.S7,g.J);g.M=g.S7.prototype;g.M.c_=function(H){this.G=arguments;this.Zj||this.W?this.L=!0:Vfd(this)}; g.M.stop=function(){this.Zj&&(g.lU.clearTimeout(this.Zj),this.Zj=null,this.L=!1,this.G=null)}; g.M.pause=function(){this.W++}; g.M.resume=function(){this.W--;this.W||!this.L||this.Zj||(this.L=!1,Vfd(this))}; g.M.G$=function(){g.J.prototype.G$.call(this);this.stop()};g.od.prototype[Symbol.iterator]=function(){return this}; g.od.prototype.next=function(){var H=this.L.next();return{value:H.done?void 0:this.W.call(void 0,H.value),done:H.done}};g.xE(g.uf,g.E4);g.M=g.uf.prototype;g.M.isPlaying=function(){return this.L==1}; g.M.isPaused=function(){return this.L==-1}; g.M.HQ=function(){this.Xf("begin")}; g.M.K1=function(){this.Xf("end")}; g.M.onFinish=function(){this.Xf("finish")}; g.M.onStop=function(){this.Xf("stop")}; g.M.Xf=function(H){this.dispatchEvent(H)};var oQM=$Z(function(){var H=g.pu("DIV"),E=g.E7?"-webkit":yo?"-moz":null,G="transition:opacity 1s linear;";E&&(G+=E+"-transition:opacity 1s linear;");E=wuU({style:G});if(H.nodeType===1&&/^(script|style)$/i.test(H.tagName))throw Error("");H.innerHTML=x_(E);return g.ux(H.firstChild,"transition")!=""});g.xE(vw,g.uf);g.M=vw.prototype;g.M.play=function(){if(this.isPlaying())return!1;this.HQ();this.Xf("play");this.startTime=g.Gl();this.L=1;if(oQM())return g.AE(this.W,this.C),this.G=g.N0(this.Z07,void 0,this),!0;this.Gn(!1);return!1}; g.M.Z07=function(){g.or(this.W);fcw(this.W,this.B);g.AE(this.W,this.D);this.G=g.N0((0,g.co)(this.Gn,this,!1),this.T*1E3)}; g.M.stop=function(){this.isPlaying()&&this.Gn(!0)}; g.M.Gn=function(H){g.AE(this.W,"transition","");g.lU.clearTimeout(this.G);g.AE(this.W,this.D);this.endTime=g.Gl();this.L=0;if(H)this.onStop();else this.onFinish();this.K1()}; g.M.G$=function(){this.stop();vw.j7.G$.call(this)}; g.M.pause=function(){};var hXn={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};K$("Element","attributes")||K$("Node","attributes");K$("Element","innerHTML")||K$("HTMLElement","innerHTML");K$("Node","nodeName");K$("Node","nodeType");K$("Node","parentNode");K$("Node","childNodes");K$("HTMLElement","style")||K$("Element","style");K$("HTMLStyleElement","sheet");var JHl=Eq1("getPropertyValue"),BaT=Eq1("setProperty");K$("Element","namespaceURI")||K$("Node","namespaceURI");var qDv={"-webkit-border-horizontal-spacing":!0,"-webkit-border-vertical-spacing":!0};var AB7,zml,I2t,Wut,mZ7;AB7=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]");zml=RegExp("^[\u0591-\u06ef\u06fa-\u08ff\u200f\ud802-\ud803\ud83a-\ud83b\ufb1d-\ufdff\ufe70-\ufefc]");g.eq$=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.BW=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]");I2t=/^http:\/\/.*/;g.wtZ=RegExp("^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)","i");Wut=/\s+/;mZ7=/[\d\u06f0-\u06f9]/;V4.prototype.CX=function(){return new Ak(this.W())}; V4.prototype[Symbol.iterator]=function(){return new SZ(this.W())}; V4.prototype.L=function(){return new SZ(this.W())}; g.C(Ak,g.eQ);Ak.prototype.next=function(){return this.W.next()}; Ak.prototype[Symbol.iterator]=function(){return new SZ(this.W)}; Ak.prototype.L=function(){return new SZ(this.W)}; g.C(SZ,V4);SZ.prototype.next=function(){return this.G.next()};$C.prototype.clone=function(){return new $C(this.L,this.B,this.G,this.T,this.D,this.C,this.W,this.N)}; $C.prototype.equals=function(H){return this.L==H.L&&this.B==H.B&&this.G==H.G&&this.T==H.T&&this.D==H.D&&this.C==H.C&&this.W==H.W&&this.N==H.N};WM.prototype.clone=function(){return new WM(this.start,this.end)};(function(){if(DRt){var H=/Windows NT ([0-9.]+)/;return(H=H.exec(g.u0()))?H[1]:"0"}return az?(H=/1[0|1][_.][0-9_.]+/,(H=H.exec(g.u0()))?H[0].replace(/_/g,"."):"10"):g.gI?(H=/Android\s+([^\);]+)(\)|;)/,(H=H.exec(g.u0()))?H[1]:""):N5s||yXq||bsw?(H=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(H=H.exec(g.u0()))?H[1].replace(/_/g,"."):""):""})();var syl=function(){if(g.a1)return Pd(/Firefox\/([0-9.]+)/);if(g.kh||g.Uo||g.zk)return vFq;if(g.pC){if(x3()||Jls()){var H=Pd(/CriOS\/([0-9.]+)/);if(H)return H}return Pd(/Chrome\/([0-9.]+)/)}if(g.Ez&&!x3())return Pd(/Version\/([0-9.]+)/);if(fB||Bd){if(H=/Version\/(\S+).*Mobile\/(\S+)/.exec(g.u0()))return H[1]+"."+H[2]}else if(g.V$)return(H=Pd(/Android\s+([0-9.]+)/))?H:Pd(/Version\/([0-9.]+)/);return""}();g.xE(g.DD,g.J);g.M=g.DD.prototype;g.M.subscribe=function(H,E,G){var P=this.W[H];P||(P=this.W[H]=[]);var Q=this.C;this.L[Q]=H;this.L[Q+1]=E;this.L[Q+2]=G;this.C=Q+3;P.push(Q);return Q}; g.M.unsubscribe=function(H,E,G){if(H=this.W[H]){var P=this.L;if(H=H.find(function(Q){return P[Q+1]==E&&P[Q+2]==G}))return this.fm(H)}return!1}; g.M.fm=function(H){var E=this.L[H];if(E){var G=this.W[E];this.D!=0?(this.G.push(H),this.L[H+1]=function(){}):(G&&g.Ih(G,H),delete this.L[H],delete this.L[H+1],delete this.L[H+2])}return!!E}; g.M.publish=function(H,E){var G=this.W[H];if(G){var P=Array(arguments.length-1),Q=arguments.length,e;for(e=1;e0&&this.D==0)for(;G=this.G.pop();)this.fm(G)}}return e!=0}return!1}; g.M.clear=function(H){if(H){var E=this.W[H];E&&(E.forEach(this.fm,this),delete this.W[H])}else this.L.length=0,this.W={}}; g.M.G$=function(){g.DD.j7.G$.call(this);this.clear();this.G.length=0};g.TA.prototype.set=function(H,E){E===void 0?this.u3.remove(H):this.u3.set(H,g.Lv(E))}; g.TA.prototype.get=function(H){try{var E=this.u3.get(H)}catch(G){return}if(E!==null)try{return JSON.parse(E)}catch(G){throw"Storage: Invalid value was encountered";}}; g.TA.prototype.remove=function(H){this.u3.remove(H)};g.xE(fD,g.TA);fD.prototype.set=function(H,E){fD.j7.set.call(this,H,BAu(E))}; fD.prototype.Ny=function(H){H=fD.j7.get.call(this,H);if(H===void 0||H instanceof Object)return H;throw"Storage: Invalid value was encountered";}; fD.prototype.get=function(H){if(H=this.Ny(H)){if(H=H.data,H===void 0)throw"Storage: Invalid value was encountered";}else H=void 0;return H};g.xE(U2,fD);U2.prototype.set=function(H,E,G){if(E=BAu(E)){if(G){if(G=G.length)return g.eT;var Q=G.key(E++);if(H)return g.CD(Q);Q=G.getItem(Q);if(typeof Q!=="string")throw"Storage mechanism: Invalid value was encountered";return g.CD(Q)}; return P}; g.M.clear=function(){Yx(this);this.L.clear()}; g.M.key=function(H){Yx(this);return this.L.key(H)};g.xE(wfQ,tD);g.xE(Vmw,tD);g.xE(xo,XS);xo.prototype.set=function(H,E){this.W.set(this.L+H,E)}; xo.prototype.get=function(H){return this.W.get(this.L+H)}; xo.prototype.remove=function(H){this.W.remove(this.L+H)}; xo.prototype.CX=function(H){var E=this.W[Symbol.iterator](),G=this,P=new g.eQ;P.next=function(){var Q=E.next();if(Q.done)return Q;for(Q=Q.value;Q.slice(0,G.L.length)!=G.L;){Q=E.next();if(Q.done)return Q;Q=Q.value}return g.CD(H?Q.slice(G.L.length):G.W.get(Q))}; return P};Zh.prototype.getValue=function(){return this.W}; Zh.prototype.clone=function(){return new Zh(this.L,this.W)};g.M=Mu.prototype;g.M.OR=function(H,E){var G=this.L;G.push(new Zh(H,E));H=G.length-1;E=this.L;for(G=E[H];H>0;){var P=H-1>>1;if(E[P].L>G.L)E[H]=E[P],H=P;else break}E[H]=G}; g.M.remove=function(){var H=this.L,E=H.length,G=H[0];if(!(E<=0)){if(E==1)H.length=0;else{H[0]=H.pop();H=0;E=this.L;for(var P=E.length,Q=E[H];H

>1;){var e=H*2+1,w=H*2+2;e=wQ.L)break;E[H]=E[e];H=e}E[H]=Q}return G.getValue()}}; g.M.KX=function(){for(var H=this.L,E=[],G=H.length,P=0;P>>16&65535|0;for(var e;G!==0;){e=G>2E3?2E3:G;G-=e;do Q=Q+E[P++]|0,H=H+Q|0;while(--e);Q%=65521;H%=65521}return Q|H<<16|0};for(var dC={},mg,Wvu=[],uC=0;uC<256;uC++){mg=uC;for(var IjJ=0;IjJ<8;IjJ++)mg=mg&1?3988292384^mg>>>1:mg>>>1;Wvu[uC]=mg}dC=function(H,E,G,P){G=P+G;for(H^=-1;P>>8^Wvu[(H^E[P])&255];return H^-1};var xf={};xf={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 fL=[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],Et=[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],R5M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Qvd=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],DS=Array(576);zp(DS);var nz=Array(60);zp(nz);var HF=Array(512);zp(HF);var F3=Array(256);zp(F3);var pL=Array(29);zp(pL);var GG=Array(30);zp(GG);var bvM,ivj,qZw,yAj=!1;var NI;NI=[new x8(0,0,0,0,function(H,E){var G=65535;for(G>H.WD-5&&(G=H.WD-5);;){if(H.y8<=1){uU(H);if(H.y8===0&&E===0)return 1;if(H.y8===0)break}H.J7+=H.y8;H.y8=0;var P=H.KR+G;if(H.J7===0||H.J7>=P)if(H.y8=H.J7-P,H.J7=P,MT(H,!1),H.ey.NV===0)return 1;if(H.J7-H.KR>=H.JR-262&&(MT(H,!1),H.ey.NV===0))return 1}H.OR=0;if(E===4)return MT(H,!0),H.ey.NV===0?3:4;H.J7>H.KR&&MT(H,!1);return 1}), new x8(4,4,8,4,STl),new x8(4,5,16,8,STl),new x8(4,6,32,32,STl),new x8(4,4,16,16,Xq),new x8(8,16,32,32,Xq),new x8(8,16,128,128,Xq),new x8(8,32,128,256,Xq),new x8(32,128,258,1024,Xq),new x8(32,258,258,4096,Xq)];var NSq={};NSq=function(){this.input=null;this.bN=this.bV=this.t6=0;this.output=null;this.Pq=this.NV=this.jK=0;this.msg="";this.state=null;this.Ro=2;this.b1=0};var rA7=Object.prototype.toString; Ud.prototype.push=function(H,E){var G=this.ey,P=this.options.chunkSize;if(this.ended)return!1;var Q=E===~~E?E:E===!0?4:0;typeof H==="string"?G.input=R9w(H):rA7.call(H)==="[object ArrayBuffer]"?G.input=new Uint8Array(H):G.input=H;G.t6=0;G.bV=G.input.length;do{G.NV===0&&(G.output=new v3.Id(P),G.jK=0,G.NV=P);H=$4T(G,Q);if(H!==1&&H!==0)return this.K1(H),this.ended=!0,!1;if(G.NV===0||G.bV===0&&(Q===4||Q===2))if(this.options.to==="string"){var e=v3.KJ(G.output,G.jK);E=e;e=e.length;if(e<65537&&(E.subarray&& k7u||!E.subarray))E=String.fromCharCode.apply(null,v3.KJ(E,e));else{for(var w="",t=0;t0||G.NV===0)&&H!==1);if(Q===4)return(G=this.ey)&&G.state?(P=G.state.status,P!==42&&P!==69&&P!==73&&P!==91&&P!==103&&P!==113&&P!==666?H=cU(G,-2):(G.state=null,H=P===113?cU(G,-3):0)):H=-2,this.K1(H),this.ended=!0,H===0;Q===2&&(this.K1(0),G.NV=0);return!0}; Ud.prototype.K1=function(H){H===0&&(this.result=this.options.to==="string"?this.chunks.join(""):v3.ES(this.chunks));this.chunks=[];this.err=H;this.msg=this.ey.msg};var vu="@@redux/INIT"+M0(),jJt="@@redux/REPLACE"+M0();var cm7=typeof Symbol==="function"&&Symbol.observable||"@@observable";var AdH=[0,vXM,-3,P6];g.C(s6Q,Lg);var RWl=kin(s6Q,[0,Qy,Mps,p$,vXM,p$,-1,P6,vXM,P6,-1,Qy,P6,Mps,H6,AdH,p$,-1,P6]);var CdM=-1958000789;var mTD=function(H,E){return function(){var G=new O0d(H,E,z_);return function(){return G}}()}("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 vjn=new g.FJ("adInfoDialogEndpoint");var KTT=new g.FJ("adPingingEndpoint");var vqw=new g.FJ("crossDeviceProgressCommand");var L1=new g.FJ("actionCompanionAdRenderer");var M3=new g.FJ("adActionInterstitialRenderer");var u1u=new g.FJ("adDurationRemainingRenderer");var Li=new g.FJ("adHoverTextButtonRenderer");var e3l=new g.FJ("adInfoDialogRenderer");var kN=new g.FJ("adMessageRenderer");var SQ=new g.FJ("adPreviewRenderer");var RR=new g.FJ("adsEngagementPanelRenderer");var XFw=new g.FJ("dismissablePanelTextPortraitImageRenderer");var gG=new g.FJ("adsEngagementPanelSectionListViewModel");var vQD=new g.FJ("flyoutCtaRenderer");var Jc=new g.FJ("imageCompanionAdRenderer");var Dy=new g.FJ("instreamAdPlayerOverlayRenderer");var mUn=new g.FJ("instreamSurveyAdBackgroundImageRenderer");var uI1=new g.FJ("instreamSurveyAdPlayerOverlayRenderer");var Nu=new g.FJ("instreamSurveyAdRenderer"),aW=new g.FJ("instreamSurveyAdSingleSelectQuestionRenderer"),O9=new g.FJ("instreamSurveyAdMultiSelectQuestionRenderer"),v6=new g.FJ("instreamSurveyAdAnswerRenderer"),MuD=new g.FJ("instreamSurveyAdAnswerNoneOfTheAboveRenderer");var S4=new g.FJ("instreamVideoAdRenderer");var dTK=new g.FJ("textOverlayAdContentRenderer"),DTM=new g.FJ("enhancedTextOverlayAdContentRenderer"),nQC=new g.FJ("imageOverlayAdContentRenderer");var nA=new g.FJ("playerOverlayLayoutRenderer");var dz=new g.FJ("videoInterstitialButtonedCenteredLayoutRenderer");var YqM=new g.FJ("aboveFeedAdLayoutRenderer");var Cxq=new g.FJ("belowPlayerAdLayoutRenderer");var Evs=new g.FJ("inPlayerAdLayoutRenderer");var r2U=new g.FJ("inPlayerOrganicOverlayAdLayoutRenderer");var Z9=new g.FJ("playerBytesAdLayoutRenderer");var lb=new g.FJ("playerBytesSequenceItemAdLayoutRenderer");var F9=new g.FJ("playerUnderlayAdLayoutRenderer");var cs=new g.FJ("adIntroRenderer");var Fb=new g.FJ("playerBytesSequentialLayoutRenderer");var cMj=new g.FJ("slidingTextPlayerOverlayRenderer");var yi=new g.FJ("surveyTextInterstitialRenderer");var VU=new g.FJ("videoAdTrackingRenderer");var RGu=new g.FJ("videoInterstitialCenteredLayoutViewModel");var ajW=new g.FJ("simpleAdBadgeRenderer");var O2=new g.FJ("skipAdRenderer"),Owu=new g.FJ("skipButtonRenderer");var uI=new g.FJ("adSlotRenderer");var BJ=new g.FJ("squeezebackPlayerSidePanelRenderer");var KvK=new g.FJ("timedPieCountdownRenderer");var Ze=new g.FJ("adAvatarViewModel");var Ci=new g.FJ("adBadgeViewModel");var g3=new g.FJ("adButtonViewModel");var jso=new g.FJ("adDetailsLineViewModel");var cdK=new g.FJ("adDisclosureBannerViewModel");var NlR=new g.FJ("adPodIndexViewModel");var ydZ=new g.FJ("imageBackgroundViewModel");var bwD=new g.FJ("adGridCardCollectionViewModel");var iwd=new g.FJ("adGridCardTextViewModel");var qnJ=new g.FJ("adPreviewViewModel");var RqM=new g.FJ("playerAdAvatarLockupCardButtonedViewModel");var JdZ=new g.FJ("skipAdButtonViewModel");var rdu=new g.FJ("skipAdViewModel");var Bl$=new g.FJ("timedPieCountdownViewModel");var YnW=new g.FJ("visitAdvertiserLinkViewModel");var Zk7=new g.FJ("bannerImageLayoutViewModel");var CX1=new g.FJ("topBannerImageTextIconButtonedLayoutViewModel");var g3u=new g.FJ("adsEngagementPanelLayoutViewModel");var h1=new g.FJ("displayUnderlayTextGridCardsLayoutViewModel");g.kd=new g.FJ("browseEndpoint");var XtH=new g.FJ("confirmDialogEndpoint");var OT7=new g.FJ("commandContext");var Atq=new g.FJ("rawColdConfigGroup");var IPQ=new g.FJ("rawHotConfigGroup");g.qf=new g.FJ("commandExecutorCommand");g.C(DC1,Lg);var V9d={FA7:0,PHN:1,zK$:32,ApN:61,yp$:67,Z1N:103,BxR:86,O1m:42,o4x:60,dEp:62,rp_:73,cp_:76,fxo:88,v4J:90,n4_:99,UE7:98,j4F:100,eKw:102,hK5:41,xE7:69,ME7:70,NxJ:71,fb7:2,vQu:27,ANDROID:3,Vd_:54,XtR:14,iRF:91,sJo:55,RpR:24,qvu:20,wt$:18,Lym:21,p$R:104,DSZ:30,uR5:29,lex:28,JpR:101,bR7:34,GTx:36,Fyo:38,IOS:5,cD7:15,yD_:92,eQN:40,ADu:25,YFR:17,Bs_:19,ZL5:64,f7J:66,vi5:26,hQJ:22,xBo:33,Mhu:68,Ns$:35,j2F:53,ni_:37,rDF:39,nS5:7,hPN:57,xFJ:43,Ncw:59,MbR:93,HR5:74,Kpm:75,kOZ:85,aLx:65,XyR:80,sOw:8,jOm:10, qVF:58,RPm:63,Vbo:72,JvF:23,axN:11,VEp:13,NUR:12,yqa:16,Ixp:56,YY5:31,A25:77,wAZ:84,CHo:87,Lc_:89,Fc$:94,QGF:95};g.C(go,Lg);go.prototype.jB=function(){return WH(this,3)}; go.prototype.K$=function(){return WH(this,5)}; go.prototype.lT=function(H){return l0(this,5,H)};g.C(eA,Lg);g.C(IA1,Lg);g.C(ZJ,Lg);g.M=ZJ.prototype;g.M.getDeviceId=function(){return WH(this,6)}; g.M.Bk=function(H){var E=fy(this,9,rE,3,!0);WNu(E,H);return E[H]}; g.M.getPlayerType=function(){return w6(this,36)}; g.M.setHomeGroupInfo=function(H){return Lt(this,IA1,81,H)}; g.M.clearLocationPlayabilityToken=function(){return Nm(this,89)};g.C(Tt,Lg);Tt.prototype.getValue=function(){return WH(this,B4(this,iu7,2))}; var iu7=[2,3,4,5,6];g.C(H8,Lg);H8.prototype.setTrackingParams=function(H){return Nm(this,1,aiq(H,!1))};g.C(zt,Lg);g.C(xt,Lg);xt.prototype.Bk=function(H){var E=fy(this,5,V6,3,!0);WNu(E,H);return E[H]};g.C(pt,Lg);pt.prototype.getToken=function(){return Ip(this,2)}; pt.prototype.setToken=function(H){return l0(this,2,H)};g.C(FW,Lg);FW.prototype.setSafetyMode=function(H){return Ct(this,5,H)};g.C(XW,Lg);XW.prototype.Gs=function(H){return Lt(this,ZJ,1,H)};var L$=new g.FJ("thumbnailLandscapePortraitRenderer");g.ZwZ=new g.FJ("changeEngagementPanelVisibilityAction");var csl=new g.FJ("continuationCommand");g.CUM=new g.FJ("openPopupAction");var Y_l=new g.FJ("signalAction");g.Mk=new g.FJ("webCommandMetadata");var cU7=new g.FJ("metadataBadgeRenderer");var jNM=new g.FJ("signalServiceEndpoint");var ab=new g.FJ("innertubeCommand");var PZ1=new g.FJ("loggingDirectives");var y5w={CA$:"EMBEDDED_PLAYER_MODE_UNKNOWN",OXp:"EMBEDDED_PLAYER_MODE_DEFAULT",o7o:"EMBEDDED_PLAYER_MODE_PFP",z67:"EMBEDDED_PLAYER_MODE_PFL"};var tfT=new g.FJ("channelThumbnailEndpoint");var fx1=new g.FJ("embeddedPlayerErrorMessageRenderer");var xzl=new g.FJ("embeddedPlayerOverlayVideoDetailsRenderer"),kfn=new g.FJ("embeddedPlayerOverlayVideoDetailsCollapsedRenderer"),Wmv=new g.FJ("embeddedPlayerOverlayVideoDetailsExpandedRenderer");var alU=new g.FJ("embedsInfoPanelRenderer");var Byd=new g.FJ("feedbackEndpoint");var gQC=new g.FJ("callToActionButtonViewModel");var LvW=new g.FJ("interactionLoggingCommandMetadata");var QEn={SY7:"WEB_DISPLAY_MODE_UNKNOWN",E4$:"WEB_DISPLAY_MODE_BROWSER",Tx_:"WEB_DISPLAY_MODE_MINIMAL_UI",tEJ:"WEB_DISPLAY_MODE_STANDALONE",Q45:"WEB_DISPLAY_MODE_FULLSCREEN"};g.C(r$,Lg);r$.prototype.getPlayerType=function(){return w6(this,7)}; r$.prototype.mj=function(){return WH(this,19)}; r$.prototype.setVideoId=function(H){return l0(this,19,H)};g.C(LV,Lg);g.C(Lmq,Lg);g.C(o0,Lg); var ljR=[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,531];var UTC=new g.FJ("loggingContext");g.C(hv,Lg);g.C(JH,Lg);JH.prototype.mj=function(){return Ip(this,B4(this,Ni,1))}; JH.prototype.setVideoId=function(H){return VW(this,1,Ni,n3(H))}; JH.prototype.getPlaylistId=function(){return Ip(this,B4(this,Ni,2))}; var Ni=[1,2];g.C(buM,Lg);var yp=new g.FJ("changeKeyedMarkersVisibilityCommand");var xTu=new g.FJ("changeMarkersVisibilityCommand");var yU7=new g.FJ("loadMarkersCommand");var zqC=new g.FJ("suggestedActionDataViewModel");var X51=new g.FJ("timelyActionViewModel");var Y3s=new g.FJ("timelyActionsOverlayViewModel");var Q1n=new g.FJ("productListItemRenderer");var TlJ=new g.FJ("shoppingOverlayRenderer");var zTM=new g.FJ("musicEmbeddedPlayerOverlayVideoDetailsRenderer");var VuZ=new g.FJ("adFeedbackEndpoint");var Sn3=new g.FJ("menuEndpoint");var JC1=new g.FJ("phoneDialerEndpoint");var qLn=new g.FJ("sendSmsEndpoint");var $dQ=new g.FJ("copyTextEndpoint");var FvK=new g.FJ("shareEndpoint"),fjR=new g.FJ("shareEntityEndpoint"),ptM=new g.FJ("shareEntityServiceEndpoint"),HWW=new g.FJ("webPlayerShareEntityServiceEndpoint");g.nR=new g.FJ("urlEndpoint");g.Xt=new g.FJ("watchEndpoint");var EMW=new g.FJ("watchPlaylistEndpoint");g.GZK=new g.FJ("offlineOrchestrationActionCommand");var eYT=new g.FJ("compositeVideoOverlayRenderer");var PKM=new g.FJ("miniplayerRenderer");var ksT=new g.FJ("paidContentOverlayRenderer");var RLw=new g.FJ("playerMutedAutoplayOverlayRenderer"),Jks=new g.FJ("playerMutedAutoplayEndScreenRenderer");var mLQ=new g.FJ("unserializedPlayerResponse"),rol=new g.FJ("unserializedPlayerResponse");var QDd=new g.FJ("playlistEditEndpoint");var dF;g.rI=new g.FJ("buttonRenderer");dF=new g.FJ("toggleButtonRenderer");var Bb1=new g.FJ("counterfactualRenderer");var sDJ=new g.FJ("resolveUrlCommandMetadata");var oMR=new g.FJ("modifyChannelNotificationPreferenceEndpoint");var Ohl=new g.FJ("pingingEndpoint");var eWC=new g.FJ("unsubscribeEndpoint");g.sa=new g.FJ("subscribeButtonRenderer");var wou=new g.FJ("subscribeEndpoint");var rgu=new g.FJ("buttonViewModel");var Ytl=new g.FJ("qrCodeRenderer");var Cc1={J27:"LIVING_ROOM_APP_MODE_UNSPECIFIED",izx:"LIVING_ROOM_APP_MODE_MAIN",WqJ:"LIVING_ROOM_APP_MODE_KIDS",GPw:"LIVING_ROOM_APP_MODE_MUSIC",Dnw:"LIVING_ROOM_APP_MODE_UNPLUGGED",gQ7:"LIVING_ROOM_APP_MODE_GAMING"};var dN1=new g.FJ("autoplaySwitchButtonRenderer");var BX,QwT,nNQ,Syl;BX=new g.FJ("decoratedPlayerBarRenderer");QwT=new g.FJ("chapteredPlayerBarRenderer");nNQ=new g.FJ("multiMarkersPlayerBarRenderer");Syl=new g.FJ("chapterRenderer");g.xDt=new g.FJ("markerRenderer");var IC1=new g.FJ("decoratedPlayheadRenderer");var OQs=new g.FJ("desktopOverlayConfigRenderer");var Z0n=new g.FJ("engagementPanelSectionListRenderer");var n61=new g.FJ("gatedActionsOverlayViewModel");var SIt=new g.FJ("heatMarkerRenderer");var TQq=new g.FJ("heatmapRenderer");var Nmw=new g.FJ("watchToWatchTransitionRenderer");var Vvw=new g.FJ("playlistPanelRenderer");var hWZ=new g.FJ("productUpsellSuggestedActionViewModel");var $oW=new g.FJ("suggestedActionTimeRangeTrigger"),tHR=new g.FJ("suggestedActionsRenderer"),kZ3=new g.FJ("suggestedActionRenderer");var fH7=new g.FJ("timedMarkerDecorationRenderer");var lj1=new g.FJ("cipher");var ujU=new g.FJ("playerVars");var BGq=new g.FJ("playerVars");var D_=g.lU.window,WdJ,I$C,lY=(D_==null?void 0:(WdJ=D_.yt)==null?void 0:WdJ.config_)||(D_==null?void 0:(I$C=D_.ytcfg)==null?void 0:I$C.data_)||{};g.kM("yt.config_",lY);var QS=[];var ial=/^[\w.]*$/,U6s={q:!0,search_query:!0},lQ1=String(LZ);var DU=new function(){var H=window.document;this.L=window;this.W=H}; g.kM("yt.ads_.signals_.getAdSignalsString",function(H){return xc(jk(H))});g.Gl();var Gqq="XMLHttpRequest"in g.lU?function(){return new XMLHttpRequest}:null;var AJJ="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" ");g.EC(AJJ);var $NM={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"},bhj="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.EC(AJJ)),O_l=!1,XLv=sL;g.C(Ia,oq);cm.prototype.then=function(H,E,G){return this.L?this.L.then(H,E,G):this.G===1&&H?(H=H.call(G,this.W))&&typeof H.then==="function"?H:jD(H):this.G===2&&E?(H=E.call(G,this.W))&&typeof H.then==="function"?H:$0(H):this}; cm.prototype.getValue=function(){return this.W}; cm.prototype.$goog_Thenable=!0;var tY=!1;var r3=fB||Bd;var nCn=/^([0-9\.]+):([0-9\.]+)$/;g.C(wW,oq);wW.prototype.name="BiscottiError";g.C(dQ,oq);dQ.prototype.name="BiscottiMissingError";var zku={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0},hO=null;var iwv=g.m$(["data-"]),dA1={};var moD=0,Up=g.E7?"webkit":yo?"moz":g.kh?"ms":g.zk?"o":"",uRu=g.Un("ytDomDomGetNextId")||function(){return++moD}; g.kM("ytDomDomGetNextId",uRu);var n$q={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};f_.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())}; f_.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())}; f_.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var p_=g.lU.ytEventsEventsListeners||{};g.kM("ytEventsEventsListeners",p_);var ktu=g.lU.ytEventsEventsCounter||{count:0};g.kM("ytEventsEventsCounter",ktu);var HTt=$Z(function(){var H=!1;try{var E=Object.defineProperty({},"passive",{get:function(){H=!0}}); window.addEventListener("test",null,E)}catch(G){}return H}),WZq=$Z(function(){var H=!1; try{var E=Object.defineProperty({},"capture",{get:function(){H=!0}}); window.addEventListener("test",null,E)}catch(G){}return H});var nY;nY=window;g.ON=nY.ytcsi&&nY.ytcsi.now?nY.ytcsi.now:nY.performance&&nY.performance.timing&&nY.performance.now&&nY.performance.timing.navigationStart?function(){return nY.performance.timing.navigationStart+nY.performance.now()}:function(){return(new Date).getTime()};g.xE(ID,g.J);ID.prototype.L_=function(H){H.L===void 0&&EtM(H);var E=H.L;H.W===void 0&&EtM(H);this.L=new g.oG(E,H.W)}; ID.prototype.OC=function(){return this.L||new g.oG}; ID.prototype.p_=function(){if(this.L){var H=(0,g.ON)();if(this.D!=0){var E=this.C,G=this.L,P=E.x-G.x;E=E.y-G.y;P=Math.sqrt(P*P+E*E)/(H-this.D);this.W[this.G]=Math.abs((P-this.T)/this.T)>.5?1:0;for(G=E=0;G<4;G++)E+=this.W[G]||0;E>=3&&this.B();this.T=P}this.D=H;this.C=this.L;this.G=(this.G+1)%4}}; ID.prototype.G$=function(){g.fg(this.N);g.sz(this.WF)};g.C(J$,g.J);J$.prototype.Z=function(H,E,G,P,Q){G=g.NL((0,g.co)(G,P||this.FI));G={target:H,name:E,callback:G};var e;Q&&HTt()&&(e={passive:!0});H.addEventListener(E,G.callback,e);this.C.push(G);return G}; J$.prototype.Sq=function(H){for(var E=0;E=l.hD)||O.L.version>=S||O.L.objectStoreNames.contains(B)||N.push(B)}k=N;if(k.length===0){n.bJ(5);break}W=Object.keys(G.options.ME); I=t.objectStoreNames();if(G.TG.options.version+1)throw m.close(),G.G=!1,V$M(G,u);return n.return(m);case 8:throw E(), A instanceof Error&&!g.Xj("ytidb_async_stack_killswitch")&&(A.stack=A.stack+"\n"+w.substring(w.indexOf("\n")+1)),PE(A,G.name,"",(v=G.options.version)!=null?v:-1);}})} function E(){G.L===P&&(G.L=void 0)} var G=this;if(!this.G)throw V$M(this);if(this.L)return this.L;var P,Q={blocking:function(e){e.close()}, closed:E,Q3a:E,upgrade:this.options.upgrade};return this.L=P=H()};var FG=new bQ("YtIdbMeta",{ME:{databases:{hD:1}},upgrade:function(H,E){E(1)&&g.zh(H,"databases",{keyPath:"actualName"})}});var J1,wJU=new function(){}(new function(){});new g.M$;g.C(hh,bQ);hh.prototype.W=function(H,E,G){G=G===void 0?{}:G;return(this.options.shared?wwv:Tml)(H,E,Object.assign({},G))}; hh.prototype.delete=function(H){H=H===void 0?{}:H;return(this.options.shared?cot:Bgl)(this.name,H)};var jDM={},bav=g.bR("ytGcfConfig",{ME:(jDM.coldConfigStore={hD:1},jDM.hotConfigStore={hD:1},jDM),shared:!1,upgrade:function(H,E){E(1)&&(g.oR(g.zh(H,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),g.oR(g.zh(H,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))}, version:1});g.C(Al,g.J);Al.prototype.G$=function(){for(var H=g.R(this.W),E=H.next();!E.done;E=H.next()){var G=this.L;E=G.indexOf(E.value);E>=0&&G.splice(E,1)}this.W.length=0;g.J.prototype.G$.call(this)};DF.prototype.lT=function(H){this.hotHashData=H;g.kM("yt.gcf.config.hotHashData",this.hotHashData||null)};var cJo=typeof TextEncoder!=="undefined"?new TextEncoder:null,NEl=cJo?function(H){return cJo.encode(H)}:function(H){H=g.Vc(H); for(var E=new Uint8Array(H.length),G=0;G=E?!1:!0}; g.M.zx=function(){var H=this;if(!uR(this))throw Error("IndexedDB is not supported: retryQueuedRequests");this.zW.Mr("QUEUED",this.rO).then(function(E){E&&!H.Sr(E,H.Sg)?H.UZ.c6(function(){return g.L(function(G){if(G.L==1)return E.id===void 0?G.bJ(2):g.U(G,H.zW.GK(E.id,H.rO),2);H.zx();g.P2(G)})}):H.pm.Lm()&&H.Ns()})};var BB;var RPd={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,creationOrchestrationEvent:531};var yJd={},dxT=g.bR("ServiceWorkerLogsDatabase",{ME:(yJd.SWHealthLog={hD:1},yJd),shared:!0,upgrade:function(H,E){E(1)&&g.oR(g.zh(H,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])}, version:1});var $h={},UgQ=0;var Frq;nV.prototype.requestComplete=function(H,E){E&&(this.W=!0);H=this.removeParams(H);this.L.get(H)||this.L.set(H,E)}; nV.prototype.isEndpointCFR=function(H){H=this.removeParams(H);return(H=this.L.get(H))?!1:H===!1&&this.W?!0:null}; nV.prototype.removeParams=function(H){return H.split("?")[0]}; nV.prototype.removeParams=nV.prototype.removeParams;nV.prototype.isEndpointCFR=nV.prototype.isEndpointCFR;nV.prototype.requestComplete=nV.prototype.requestComplete;nV.getInstance=a7;g.C(qy,g.E4);g.M=qy.prototype;g.M.Lm=function(){return this.L.Lm()}; g.M.Ej=function(H){this.L.L=H}; g.M.b_u=function(){var H=window.navigator.onLine;return H===void 0?!0:H}; g.M.w2=function(){this.W=!0}; g.M.listen=function(H,E){return this.L.listen(H,E)}; g.M.Yo=function(H){H=gq(this.L,H);H.then(function(E){g.Xj("use_cfr_monitor")&&a7().requestComplete("generate_204",E)}); return H}; qy.prototype.sendNetworkCheckRequest=qy.prototype.Yo;qy.prototype.listen=qy.prototype.listen;qy.prototype.enableErrorFlushing=qy.prototype.w2;qy.prototype.getWindowStatus=qy.prototype.b_u;qy.prototype.networkStatusHint=qy.prototype.Ej;qy.prototype.isNetworkAvailable=qy.prototype.Lm;qy.getInstance=mD1;g.C(g.cX,g.E4);g.cX.prototype.Lm=function(){var H=g.Un("yt.networkStatusManager.instance.isNetworkAvailable");return H?H.bind(this.W)():!0}; g.cX.prototype.Ej=function(H){var E=g.Un("yt.networkStatusManager.instance.networkStatusHint").bind(this.W);E&&E(H)}; g.cX.prototype.Yo=function(H){var E=this,G;return g.L(function(P){G=g.Un("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(E.W);return g.Xj("skip_network_check_if_cfr")&&a7().isEndpointCFR("generate_204")?P.return(new Promise(function(Q){var e;E.Ej(((e=window.navigator)==null?void 0:e.onLine)||!0);Q(E.Lm())})):G?P.return(G(H)):P.return(!0)})};var eZ;g.C(wP,vD);wP.prototype.writeThenSend=function(H,E){E||(E={});E=Nc(H,E);g.Mi()||(this.L=!1);vD.prototype.writeThenSend.call(this,H,E)}; wP.prototype.sendThenWrite=function(H,E,G){E||(E={});E=Nc(H,E);g.Mi()||(this.L=!1);vD.prototype.sendThenWrite.call(this,H,E,G)}; wP.prototype.sendAndWrite=function(H,E){E||(E={});E=Nc(H,E);g.Mi()||(this.L=!1);vD.prototype.sendAndWrite.call(this,H,E)}; wP.prototype.awaitInitialization=function(){return this.G.promise};var jFq=g.lU.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:!1};g.kM("ytNetworklessLoggingInitializationOptions",jFq);g.mu.prototype.isReady=function(){!this.config_&&s7l()&&(this.config_=g.YG());return!!this.config_};var bWo,ko,Bq;bWo=g.lU.ytPubsubPubsubInstance||new g.DD;ko=g.lU.ytPubsubPubsubSubscribedKeys||{};Bq=g.lU.ytPubsubPubsubTopicToKeys||{};g.qP=g.lU.ytPubsubPubsubIsSynchronous||{};g.DD.prototype.subscribe=g.DD.prototype.subscribe;g.DD.prototype.unsubscribeByKey=g.DD.prototype.fm;g.DD.prototype.publish=g.DD.prototype.publish;g.DD.prototype.clear=g.DD.prototype.clear;g.kM("ytPubsubPubsubInstance",bWo);g.kM("ytPubsubPubsubTopicToKeys",Bq);g.kM("ytPubsubPubsubIsSynchronous",g.qP); g.kM("ytPubsubPubsubSubscribedKeys",ko);var kzd={};g.C(v5,g.J);v5.prototype.append=function(H){if(!this.W)throw Error("This does not support the append operation");H=H.E2();this.E2().appendChild(H)}; g.C(MJ,v5);MJ.prototype.E2=function(){return this.L};g.C(No,g.J);No.prototype.onTouchStart=function(H){this.B=!0;this.W=H.touches.length;this.L.isActive()&&(this.L.stop(),this.T=!0);H=H.touches;this.C=gGl(this,H)||H.length!=1;var E=H.item(0);this.C||!E?this.L_=this.N=Infinity:(this.N=E.clientX,this.L_=E.clientY);for(E=this.G.length=0;E=0)}if(E||H&&Math.pow(H.clientX-this.N,2)+Math.pow(H.clientY-this.L_,2)>25)this.D=!0}; No.prototype.onTouchEnd=function(H){var E=H.changedTouches;E&&this.B&&this.W==1&&!this.D&&!this.T&&!this.C&&gGl(this,E)&&(this.p_=H,this.L.start());this.W=H.touches.length;this.W===0&&(this.D=this.B=!1,this.G.length=0);this.T=!1};var vI=Date.now().toString();var kKU={};var EM=Symbol("injectionDeps");Gf.prototype.toString=function(){return"InjectionToken("+this.name+")"}; SRw.prototype.resolve=function(H){return H instanceof HG?Ob(this,H.key,[],!0):Ob(this,H,[])};var KP;var e2=window;var DG=g.Xj("web_enable_lifecycle_monitoring")&&NB1()!==0,BFw=g.Xj("web_enable_lifecycle_monitoring");NHs.prototype.cancel=function(){for(var H=g.R(this.L),E=H.next();!E.done;E=H.next())E=E.value,E.jobId===void 0||E.LH||this.scheduler.gU(E.jobId),E.LH=!0;this.W.resolve()};g.M=an.prototype;g.M.install=function(H){this.plugins.push(H);return this}; g.M.uninstall=function(){var H=this;g.c4.apply(0,arguments).forEach(function(E){E=H.plugins.indexOf(E);E>-1&&H.plugins.splice(E,1)})}; g.M.transition=function(H,E){var G=this;DG&&KIj(this.state);var P=this.transitions.find(function(e){return Array.isArray(e.from)?e.from.find(function(w){return w===G.state&&e.to===H}):e.from===G.state&&e.to===H}); if(P){this.W&&(jnl(this.W),this.W=void 0);Yfd(this,H,E);this.state=H;DG&&nd(this.state);P=P.action.bind(this);var Q=this.plugins.filter(function(e){return e[H]}).map(function(e){return e[H]}); P(MiT(this,Q),E)}else throw Error("no transition specified from "+this.state+" to "+H);}; g.M.I5p=function(H){var E=g.c4.apply(1,arguments);g.PY();for(var G=g.R(H),P=G.next(),Q={};!P.done;Q={tL:void 0},P=G.next())Q.tL=P.value,OFs(function(e){return function(){e6(e.tL.name);zvQ(function(){return e.tL.callback.apply(e.tL,g.EC(E))}); lW(e.tL.name)}}(Q))}; g.M.UfF=function(H){var E=g.c4.apply(1,arguments),G,P,Q,e;return g.L(function(w){w.L==1&&(g.PY(),G=g.R(H),P=G.next(),Q={});if(w.L!=3){if(P.done)return w.bJ(0);Q.Gd=P.value;Q.G1=void 0;e=function(t){return function(){e6(t.Gd.name);var k=zvQ(function(){return t.Gd.callback.apply(t.Gd,g.EC(E))}); jc(k)?t.G1=g.Xj("web_lifecycle_error_handling_killswitch")?k.then(function(){lW(t.Gd.name)}):k.then(function(){lW(t.Gd.name)},function(W){ZUl(W); lW(t.Gd.name)}):lW(t.Gd.name)}}(Q); OFs(e);return Q.G1?g.U(w,Q.G1,3):w.bJ(3)}Q={Gd:void 0,G1:void 0};P=G.next();return w.bJ(2)})}; g.M.wL=function(H){var E=g.c4.apply(1,arguments),G=this,P=H.map(function(Q){return{cH:function(){e6(Q.name);zvQ(function(){return Q.callback.apply(Q,g.EC(E))}); lW(Q.name)}, priority:ld(G,Q)}}); P.length&&(this.W=new NHs(P))}; g.Sc.Object.defineProperties(an.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var rc;g.C(Gd,an);Gd.prototype.T=function(H,E){var G=this;this.L=g.GQ(0,function(){G.currentState==="application_navigating"&&G.transition("none")},5E3); H(E==null?void 0:E.event)}; Gd.prototype.C=function(H,E){this.L&&(g.eD.gU(this.L),this.L=null);H(E==null?void 0:E.event)};var UJ=[];g.kM("yt.logging.transport.getScrapedGelPayloads",function(){return UJ});DZ.prototype.storePayload=function(H,E){H=Y$(H);this.store[H]?this.store[H].push(E):(this.W={},this.store[H]=[E]);this.L++;g.Xj("more_accurate_gel_parser")&&(E=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(E));return H}; DZ.prototype.smartExtractMatchingEntries=function(H){if(!H.keys.length)return[];for(var E=ZM(this,H.keys.splice(0,1)[0]),G=[],P=0;P=0){P=!1;break a}}P=!0}P&&(E=KO(E))&&this.wj(E)}}; g.M.Qi=function(H){return H}; g.M.onTouchStart=function(H){this.Jm.onTouchStart(H)}; g.M.onTouchMove=function(H){this.Jm.onTouchMove(H)}; g.M.onTouchEnd=function(H){if(this.Jm)this.Jm.onTouchEnd(H)}; g.M.wj=function(H){this.layoutId?this.vF.executeCommand(H,this.layoutId):(H=new g.LN("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.h3(H))}; g.M.createServerVe=function(H,E){this.api.createServerVe(H,this);this.api.setTrackingParams(H,E)}; g.M.logVisibility=function(H,E){this.api.hasVe(H)&&this.api.logVisibility(H,E,this.interactionLoggingClientData)}; g.M.G$=function(){this.clear(null);this.Sq(this.au);for(var H=g.R(this.E7),E=H.next();!E.done;E=H.next())this.Sq(E.value);g.av.prototype.G$.call(this)};g.C(uO,s9); uO.prototype.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);this.L=E;if(E.text==null&&E.icon==null)g.p5(Error("ButtonRenderer did not have text or an icon set."));else{switch(E.style||null){case "STYLE_UNKNOWN":H="ytp-ad-button-link";break;default:H=null}H!=null&&g.aG(this.element,H);E.text!=null&&(H=g.b_(E.text),g.xm(H)||(this.element.setAttribute("aria-label",H),this.G=new g.av({J:"span",Y:"ytp-ad-button-text",iJ:H}),g.d(this,this.G),this.G.mx(this.element)));E.accessibilityData&&E.accessibilityData.accessibilityData&& E.accessibilityData.accessibilityData.label&&!g.xm(E.accessibilityData.accessibilityData.label)&&this.element.setAttribute("aria-label",E.accessibilityData.accessibilityData.label);E.icon!=null&&(E=iL(E.icon,this.D),E!=null&&(this.W=new g.av({J:"span",Y:"ytp-ad-button-icon",V:[E]}),g.d(this,this.W)),this.T?bl(this.element,this.W.element,0):this.W.mx(this.element))}}; uO.prototype.clear=function(){this.hide()}; uO.prototype.onClick=function(H){s9.prototype.onClick.call(this,H);H=g.R(bXw(this));for(var E=H.next();!E.done;E=H.next())E=E.value,this.layoutId?this.vF.executeCommand(E,this.layoutId):g.h3(Error("Missing layoutId for button."));this.api.onAdUxClicked(this.componentType,this.layoutId)};g.C(cu,g.J);cu.prototype.G$=function(){this.W&&g.sz(this.W);this.L.clear();j1=null;g.J.prototype.G$.call(this)}; cu.prototype.register=function(H,E){E&&this.L.set(H,E)}; var j1=null;g.C(rV,s9); rV.prototype.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);H=E.hoverText||null;E=E.button&&g.X(E.button,g.rI)||null;E==null?g.h3(Error("AdHoverTextButtonRenderer.button was not set in response.")):(this.button=new uO(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,void 0,void 0,void 0,void 0,this.G),g.d(this,this.button),this.button.init(PL("button"),E,this.macros),H&&this.button.element.setAttribute("aria-label",g.b_(H)),this.button.mx(this.element),this.N&&!g.T2(this.button.element, "ytp-ad-clickable")&&g.aG(this.button.element,"ytp-ad-clickable"),this.G&&g.aG(this.button.element,"ytp-ad-hover-text-button--clean-player"),H&&(this.W=new g.av({J:"div",Y:"ytp-ad-hover-text-container"}),this.T&&(E=new g.av({J:"div",Y:"ytp-ad-hover-text-callout"}),E.mx(this.W.element),g.d(this,E)),g.d(this,this.W),this.W.mx(this.element),E=d9(H),bl(this.W.element,E,0)),this.show())}; rV.prototype.hide=function(){this.button&&this.button.hide();this.W&&this.W.hide();s9.prototype.hide.call(this)}; rV.prototype.show=function(){this.button&&this.button.show();s9.prototype.show.call(this)};g.C(ne,s9); ne.prototype.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);G=(H=E.thumbnail)&&BS(H)||"";g.xm(G)?Math.random()<.01&&g.p5(Error("Found AdImage without valid image URL")):(this.L?g.AE(this.element,"backgroundImage","url("+G+")"):sl(this.element,{src:G}),sl(this.element,{alt:H&&H.accessibility&&H.accessibility.label||""}),E&&E.adRendererCommands&&E.adRendererCommands.clickCommand?this.element.classList.add("ytp-ad-clickable-element"):this.element.classList.remove("ytp-ad-clickable-element"),this.show())}; ne.prototype.clear=function(){this.hide()};g.C(aR,s9);g.M=aR.prototype;g.M.hide=function(){s9.prototype.hide.call(this);this.G&&this.G.focus()}; g.M.show=function(){this.G=document.activeElement;s9.prototype.show.call(this);this.D.focus()}; g.M.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);this.W=E;E.dialogMessages||E.title!=null?E.confirmLabel==null?g.h3(Error("ConfirmDialogRenderer.confirmLabel was not set.")):E.cancelLabel==null?g.h3(Error("ConfirmDialogRenderer.cancelLabel was not set.")):xlq(this,E):g.h3(Error("Neither ConfirmDialogRenderer.title nor ConfirmDialogRenderer.dialogMessages were set."))}; g.M.clear=function(){g.hH(this.L);this.hide()}; g.M.Sa=function(){this.hide()}; g.M.DF=function(){var H=this.W.cancelEndpoint;H&&(this.layoutId?this.vF.executeCommand(H,this.layoutId):g.h3(Error("Missing layoutId for confirm dialog.")));this.hide()}; g.M.Ut=function(){var H=this.W.confirmNavigationEndpoint||this.W.confirmEndpoint;H&&(this.layoutId?this.vF.executeCommand(H,this.layoutId):g.h3(Error("Missing layoutId for confirm dialog.")));this.hide()};g.C(YJ,s9);g.M=YJ.prototype; g.M.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);this.G=E;if(E.defaultText==null&&E.defaultIcon==null)g.h3(Error("ToggleButtonRenderer must have either text or icon set."));else if(E.defaultIcon==null&&E.toggledIcon!=null)g.h3(Error("ToggleButtonRenderer cannot have toggled icon set without a default icon."));else{if(E.style){switch(E.style.styleType){case "STYLE_UNKNOWN":case "STYLE_DEFAULT":H="ytp-ad-toggle-button-default-style";break;default:H=null}H!=null&&g.aG(this.D,H)}H={};E.defaultText? (G=g.b_(E.defaultText),g.xm(G)||(H.buttonText=G,this.api.K().experiments.xp("a11y_h5_associate_survey_question")||this.L.setAttribute("aria-label",G),this.api.K().experiments.xp("fix_h5_toggle_button_a11y")&&this.W.setAttribute("aria-label",G))):g.Jx(this.PF,!1);E.defaultTooltip&&(H.tooltipText=E.defaultTooltip,this.L.hasAttribute("aria-label")||this.W.setAttribute("aria-label",E.defaultTooltip));E.defaultIcon?(G=iL(E.defaultIcon),this.updateValue("untoggledIconTemplateSpec",G),E.toggledIcon?(this.WF= !0,G=iL(E.toggledIcon),this.updateValue("toggledIconTemplateSpec",G)):(g.Jx(this.N,!0),g.Jx(this.T,!1)),g.Jx(this.L,!1)):g.Jx(this.W,!1);g.ZR(H)||this.update(H);E.isToggled&&(g.aG(this.D,"ytp-ad-toggle-button-toggled"),this.toggleButton(E.isToggled));rP(this);this.Z(this.element,"change",this.w_);this.show()}}; g.M.onClick=function(H){this.E7.length>0&&(this.toggleButton(!this.isToggled()),this.w_());s9.prototype.onClick.call(this,H)}; g.M.w_=function(){g.Bt(this.D,"ytp-ad-toggle-button-toggled",this.isToggled());for(var H=g.R(sZU(this,this.isToggled())),E=H.next();!E.done;E=H.next())E=E.value,this.layoutId?this.vF.executeCommand(E,this.layoutId):g.h3(Error("Missing layoutId for toggle button."));if(this.isToggled())this.api.onAdUxClicked("toggle-button",this.layoutId);rP(this)}; g.M.clear=function(){this.hide()}; g.M.toggleButton=function(H){g.Bt(this.D,"ytp-ad-toggle-button-toggled",H);this.L.checked=H;rP(this)}; g.M.isToggled=function(){return this.L.checked};g.C(zm,J$);zm.prototype.T=function(H){if(Array.isArray(H)){H=g.R(H);for(var E=H.next();!E.done;E=H.next())E=E.value,E instanceof QaU&&this.G(E)}};g.C(Pn,s9);g.M=Pn.prototype;g.M.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);E.reasons?E.confirmLabel==null?g.h3(Error("AdFeedbackRenderer.confirmLabel was not set.")):(E.cancelLabel==null&&g.p5(Error("AdFeedbackRenderer.cancelLabel was not set.")),E.title==null&&g.p5(Error("AdFeedbackRenderer.title was not set.")),UN1(this,E)):g.h3(Error("AdFeedbackRenderer.reasons were not set."))}; g.M.clear=function(){aZU(this.T);aZU(this.N);this.D.length=0;this.hide()}; g.M.hide=function(){this.L&&this.L.hide();this.W&&this.W.hide();s9.prototype.hide.call(this);this.G&&this.G.focus()}; g.M.show=function(){this.L&&this.L.show();this.W&&this.W.show();this.G=document.activeElement;s9.prototype.show.call(this);this.T.focus()}; g.M.lO=function(){this.api.onAdUxClicked("ad-feedback-dialog-close-button",this.layoutId);this.publish("a");this.hide()}; g.M.b0J=function(){this.hide()}; Td.prototype.E2=function(){return this.L.element}; Td.prototype.getCommand=function(){return this.W}; Td.prototype.isChecked=function(){return this.G.checked};g.C(Or,aR);Or.prototype.Sa=function(H){aR.prototype.Sa.call(this,H);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Or.prototype.DF=function(H){aR.prototype.DF.call(this,H);this.api.onAdUxClicked("ad-mute-confirm-dialog-close-button")}; Or.prototype.Ut=function(H){aR.prototype.Ut.call(this,H);this.api.onAdUxClicked("ad-mute-confirm-dialog-confirm-button");this.publish("b")};g.C(mp,s9);g.M=mp.prototype; g.M.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);this.T=E;if(E.dialogMessage==null&&E.title==null)g.h3(Error("Neither AdInfoDialogRenderer.dialogMessage nor AdInfoDialogRenderer.title was set."));else{E.confirmLabel==null&&g.p5(Error("AdInfoDialogRenderer.confirmLabel was not set."));if(H=E.closeOverlayRenderer&&g.X(E.closeOverlayRenderer,g.rI)||null)this.L=new uO(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,["ytp-ad-info-dialog-close-button"],"ad-info-dialog-close-button"), g.d(this,this.L),this.L.init(PL("button"),H,this.macros),this.L.mx(this.element);E.title&&(H=g.b_(E.title),this.updateValue("title",H));if(E.adReasons)for(H=E.adReasons,G=0;G=this.T$?(this.WF.hide(),this.eR=!0,this.publish("i")):this.G&&this.G.isTemplated()&&(H=Math.max(0,Math.ceil((this.T$-H)/1E3)),H!=this.BF&&(nTn(this.G,{TIME_REMAINING:String(H)}),this.BF=H)))}};g.C(OH,S_);g.M=OH.prototype; g.M.init=function(H,E,G){S_.prototype.init.call(this,H,E,G);if(E.image&&E.image.thumbnail)if(E.headline)if(E.description)if((H=E.actionButton&&g.X(E.actionButton,g.rI))&&H.navigationEndpoint){var P=this.api.getVideoData(2);if(P!=null)if(E.image&&E.image.thumbnail){var Q=E.image.thumbnail.thumbnails;Q!=null&&Q.length>0&&g.xm(g.zE(Q[0].url))&&(Q[0].url=P.profilePicture)}else g.p5(Error("FlyoutCtaRenderer does not have image.thumbnail."));this.G.init(PL("ad-image"),E.image,G);this.T.init(PL("ad-text"), E.headline,G);this.D.init(PL("ad-text"),E.description,G);this.W.init(PL("button"),H,G);G=s4w(this.W.element);Dr(this.W.element,G+" This link opens in new tab");this.WF=H.navigationEndpoint;this.api.ED()||this.show();this.api.addEventListener("playerUnderlayVisibilityChange",this.LY.bind(this));this.PF=E.startMs||0;VF(this)}else g.h3(Error("FlyoutCtaRenderer has no valid action button."));else g.h3(Error("FlyoutCtaRenderer has no description AdText."));else g.h3(Error("FlyoutCtaRenderer has no headline AdText.")); else g.p5(Error("FlyoutCtaRenderer has no image."))}; g.M.onClick=function(H){S_.prototype.onClick.call(this,H);this.api.pauseVideo();!g.wa(this.W.element,H.target)&&this.WF&&(this.layoutId?this.vF.executeCommand(this.WF,this.layoutId):g.h3(Error("Missing layoutId for flyout cta.")))}; g.M.uA=function(){if(this.L){var H=this.L.getProgressState();(H&&H.current||this.T$)&&1E3*H.current>=this.PF&&(gN(this),g.Tn(this.element,"ytp-flyout-cta-inactive"),this.W.element.removeAttribute("tabIndex"))}}; g.M.Go=function(){this.clear()}; g.M.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.LY.bind(this))}; g.M.show=function(){this.W&&this.W.show();S_.prototype.show.call(this)}; g.M.hide=function(){this.W&&this.W.hide();S_.prototype.hide.call(this)}; g.M.LY=function(H){H=="hidden"?this.show():this.hide()};g.C(lPs,s9);g.M=lPs.prototype; g.M.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);this.L=E;if(this.L.rectangle)for(H=this.L.likeButton&&g.X(this.L.likeButton,dF),E=this.L.dislikeButton&&g.X(this.L.dislikeButton,dF),this.G.init(PL("toggle-button"),H,G),this.W.init(PL("toggle-button"),E,G),this.Z(this.element,"change",this.pY),this.D.show(100),this.show(),G=g.R(this.L&&this.L.impressionCommands||[]),H=G.next();!H.done;H=G.next())H=H.value,this.layoutId?this.vF.executeCommand(H,this.layoutId):g.h3(Error("Missing layoutId for instream user sentiment."))}; g.M.clear=function(){this.hide()}; g.M.hide=function(){this.G.hide();this.W.hide();s9.prototype.hide.call(this)}; g.M.show=function(){this.G.show();this.W.show();s9.prototype.show.call(this)}; g.M.pY=function(){lev(this.element,"ytp-ad-instream-user-sentiment-selected");this.L.postMessageAction&&this.api.n_("onYtShowToast",this.L.postMessageAction);this.D.hide()}; g.M.onClick=function(H){this.E7.length>0&&this.pY();s9.prototype.onClick.call(this,H)};g.C(Ot,g.J);g.M=Ot.prototype;g.M.G$=function(){this.reset();g.J.prototype.G$.call(this)}; g.M.reset=function(){g.hH(this.D);this.C=!1;this.L&&this.L.stop();this.T.stop();this.G&&(this.G=!1,this.B.play())}; g.M.start=function(){this.reset();this.D.Z(this.W,"mouseover",this.Wi,this);this.D.Z(this.W,"mouseout",this.gD,this);this.p_&&(this.D.Z(this.W,"focusin",this.Wi,this),this.D.Z(this.W,"focusout",this.gD,this));this.L?this.L.start():(this.C=this.G=!0,g.AE(this.W,{opacity:this.L_}))}; g.M.Wi=function(){this.G&&(this.G=!1,this.B.play());this.T.stop();this.L&&this.L.stop()}; g.M.gD=function(){this.C?this.T.start():this.L&&this.L.start()}; g.M.Vv=function(){this.G||(this.G=!0,this.N.play(),this.C=!0)};var RXl=[new bv("b.f_",0),new bv("j.s_",2),new bv("r.s_",4),new bv("e.h_",6),new bv("i.s_",8),new bv("s.t_",10),new bv("p.h_",12),new bv("s.i_",14),new bv("f.i_",16),new bv("a.b_",18),new bv("a.o_"),new bv("g.o_",22),new bv("p.i_",24),new bv("p.m_"),new bv("n.k_",20),new bv("i.f_"),new bv("a.s_"),new bv("m.c_"),new bv("n.h_",26),new bv("o.p_"),new bv("m.p_",28),new bv("o.a_"),new bv("d.p_"),new bv("e.i_")].reduce(function(H,E){H[E.W]=E;return H},{});g.C(vE,S_);g.M=vE.prototype; g.M.init=function(H,E,G){S_.prototype.init.call(this,H,E,G);this.WF=E;(this.PF=TJ7(this))&&g.p5(Error("hasAdControlInClickCommands_ is true."));if(!E||g.ZR(E))g.h3(Error("SkipButtonRenderer was not specified or empty."));else if(!E.message||g.ZR(E.message))g.h3(Error("SkipButtonRenderer.message was not specified or empty."));else if(H=this.T?{iconType:"SKIP_NEXT_NEW"}:{iconType:"SKIP_NEXT"},E=this.api.K().U("delhi_modern_web_player_icons"),E=iL(H,!1,!1,E),E==null?g.h3(Error("Icon for SkipButton was unable to be retrieved. Icon.IconType: "+H.iconType+ ".")):(this.api.K().U("disable_touch_events_on_skip_button")&&(E.j=Object.assign({},E.j,{"aria-hidden":"true",N0x:"false"})),this.G=new g.av({J:"button",QN:[this.T?"ytp-ad-skip-button-modern":"ytp-ad-skip-button","ytp-button"],V:[{J:"span",Y:this.T?"ytp-ad-skip-button-icon-modern":"ytp-ad-skip-button-icon",V:[E]}]}),g.d(this,this.G),this.G.mx(this.D.element),this.W=new aj(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,"ytp-ad-skip-button-text"),this.T&&this.W.element.classList.add("ytp-ad-skip-button-text-centered"), this.W.init(PL("ad-text"),this.WF.message,G),g.d(this,this.W),bl(this.G.element,this.W.element,0)),!this.api.K().U("disable_touch_events_on_skip_button")){var P=P===void 0?null:P;G=this.api.K();!(this.E7.length>0)&&G.W&&(KW?0:"ontouchstart"in document.documentElement&&(D5u()||x6()))&&(this.Sq(this.au),P&&this.Sq(P),this.E7=[this.Z(this.element,"touchstart",this.onTouchStart,this),this.Z(this.element,"touchmove",this.onTouchMove,this),this.Z(this.element,"touchend",this.onTouchEnd,this)])}}; g.M.clear=function(){this.T$.reset();this.hide()}; g.M.hide=function(){this.D.hide();this.W&&this.W.hide();gN(this);S_.prototype.hide.call(this)}; g.M.onClick=function(H){if(this.G!=null){if(H){var E=H||window.event;E.returnValue=!1;E.preventDefault&&E.preventDefault()}var G;if(QMu(H,{contentCpn:((G=this.api.getVideoData(1))==null?void 0:G.clientPlaybackNonce)||""})===0)this.api.n_("onAbnormalityDetected");else if(S_.prototype.onClick.call(this,H),this.publish("j"),this.api.n_("onAdSkip"),this.eR||!this.PF)this.api.onAdUxClicked(this.componentType,this.layoutId)}}; g.M.Qi=function(H){if(!this.eR)return this.PF&&xQ("SkipButton click commands not pruned while ALC exist"),H;var E,G=(E=g.X(H,g.qf))==null?void 0:E.commands;if(!G)return H;H=[];for(E=0;E=this.T&&p_l(this,!0)};g.C(vM,uO);vM.prototype.init=function(H,E,G){uO.prototype.init.call(this,H,E,G);H=!1;E.text!=null&&(H=g.b_(E.text),H=!g.xm(H));H?E.navigationEndpoint==null?g.p5(Error("No visit advertiser clickthrough provided in renderer,")):E.style!=="STYLE_UNKNOWN"?g.p5(Error("Button style was not a link-style type in renderer,")):this.show():g.p5(Error("No visit advertiser text was present in the renderer."))};g.C(pD,s9); pD.prototype.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);H=E.text;g.xm(BF(H))?g.p5(Error("SimpleAdBadgeRenderer has invalid or empty text")):(H&&H.text&&(E=H.text,this.G&&!this.W&&(E=this.api.K(),E=H.text+" "+(E&&E.W?"\u2022":"\u00b7")),E={text:E,isTemplated:H.isTemplated},H.style&&(E.style=H.style),H.targetId&&(E.targetId=H.targetId),H=new aj(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),H.init(PL("simple-ad-badge"),E,G),H.mx(this.element),g.d(this,H)),this.show())}; pD.prototype.clear=function(){this.hide()};g.C(TP,A9);g.C(GK,g.z7);g.M=GK.prototype;g.M.ov=function(){return this.durationMs}; g.M.stop=function(){this.L&&this.handler.Sq(this.L)}; g.M.Ix=function(H){this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:H.current};this.publish("h")}; g.M.getProgressState=function(){return this.W}; g.M.gC=function(H){g.Sv(H,2)&&this.publish("g")};g.C(bD,g.z7);g.M=bD.prototype;g.M.ov=function(){return this.durationMs}; g.M.start=function(){this.L||(this.L=!0,this.timer.start())}; g.M.stop=function(){this.L&&(this.L=!1,this.timer.stop())}; g.M.Ix=function(){this.Wt+=100;var H=!1;this.Wt>this.durationMs&&(this.Wt=this.durationMs,this.timer.stop(),H=!0);this.W={seekableStart:0,seekableEnd:this.durationMs/1E3,current:this.Wt/1E3};this.publish("h");H&&this.publish("g")}; g.M.getProgressState=function(){return this.W};g.C(II,S_);g.M=II.prototype;g.M.init=function(H,E,G){S_.prototype.init.call(this,H,E,G);var P;if(E==null?0:(P=E.templatedCountdown)==null?0:P.templatedAdText){H=E.templatedCountdown.templatedAdText;if(!H.isTemplated){g.p5(Error("AdDurationRemainingRenderer has no templated ad text."));return}this.W=new aj(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);this.W.init(PL("ad-text"),H,{});this.W.mx(this.element);g.d(this,this.W)}this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){gN(this);S_.prototype.hide.call(this)}; g.M.Go=function(){this.hide()}; g.M.uA=function(){if(this.L!=null){var H=this.L.getProgressState();if(H!=null&&H.current!=null&&this.W){var E=this.L instanceof GK?this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:H.seekableEnd:this.videoAdDurationSeconds!==void 0?this.videoAdDurationSeconds:this.L instanceof bD?H.seekableEnd:this.api.getDuration(2,!1);H=H.current;var G,P,Q=((G=this.api.getVideoData())==null?0:(P=G.mV)==null?0:P.call(G))?Math.max(E-H,0):E-H;nTn(this.W,{FORMATTED_AD_DURATION_REMAINING:String(g.Cc(Q)), TIME_REMAINING:String(Math.ceil(Q))})}}}; g.M.show=function(){VF(this);S_.prototype.show.call(this)};g.C(ht,aj);ht.prototype.onClick=function(H){aj.prototype.onClick.call(this,H);this.api.onAdUxClicked(this.componentType)};g.C(uy,s9);uy.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});if(H=E.content){g.rA(this.element,H);var G,P;E=((G=E.interaction)==null?void 0:(P=G.accessibility)==null?void 0:P.label)||H;this.element.setAttribute("aria-label",E)}else g.h3(Error("AdSimpleAttributedString does not have text content"))}; uy.prototype.clear=function(){this.hide()}; uy.prototype.onClick=function(H){s9.prototype.onClick.call(this,H)};g.C(Em,s9); Em.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});(H=E.label)&&H.content&&!g.xm(H.content)?(this.adBadgeText.init(PL("ad-simple-attributed-string"),new ZZ(H)),(E=E.adPodIndex)&&E.content&&!g.xm(E.content)&&(this.L=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),this.L.mx(this.element),g.d(this,this.L),this.L.element.classList.add("ytp-ad-badge__pod-index"),this.L.init(PL("ad-simple-attributed-string"),new ZZ(E))),this.element.classList.add(this.W?"ytp-ad-badge--stark-clean-player": "ytp-ad-badge--stark"),this.show()):g.h3(Error("No label is returned in AdBadgeViewModel."))}; Em.prototype.show=function(){this.adBadgeText.show();var H;(H=this.L)==null||H.show();s9.prototype.show.call(this)}; Em.prototype.hide=function(){this.adBadgeText.hide();var H;(H=this.L)==null||H.hide();s9.prototype.hide.call(this)};g.C(pO,s9);pO.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});(H=E.adPodIndex)&&H.content&&!g.xm(H.content)&&(this.L=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),this.L.mx(this.element),g.d(this,this.L),this.L.init(PL("ad-simple-attributed-string"),new ZZ(H)),E.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()}; pO.prototype.show=function(){var H;(H=this.L)==null||H.show();s9.prototype.show.call(this)}; pO.prototype.hide=function(){var H;(H=this.L)==null||H.hide();s9.prototype.hide.call(this)};g.C(oW,s9); oW.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});if(E!=null&&E.text){var G;if(((G=E.text)==null?0:G.content)&&!g.xm(E.text.content)){this.L=new g.av({J:"div",Y:"ytp-ad-disclosure-banner__text",iJ:E.text.content});g.d(this,this.L);this.L.mx(this.element);if(this.api.K().U("enable_ad_disclosure_banner_a11y_fix")){var P,Q,e=(P=E.interaction)==null?void 0:(Q=P.accessibility)==null?void 0:Q.label;e||(e=E.text.content+" This link opens in new tab");Dr(this.element,e)}else{var w;P=((e= E.interaction)==null?void 0:(w=e.accessibility)==null?void 0:w.label)||E.text.content;this.element.setAttribute("aria-label",P)}var t;if((t=E.interaction)==null?0:t.onTap)this.W=new g.av({J:"div",Y:"ytp-ad-disclosure-banner__chevron",V:[g.sx()]}),g.d(this,this.W),this.W.mx(this.element),this.api.K().U("enable_ad_disclosure_banner_a11y_fix")&&(re(this.element),this.element.setAttribute("tabindex","0"),this.listen("keydown",this.I3));this.show()}}else g.h3(Error("No banner text found in AdDisclosureBanner."))}; oW.prototype.I3=function(H){if(H.key==="Enter"||H.key===" ")H.preventDefault(),this.element.click()}; oW.prototype.clear=function(){this.hide()};g.C(jL,g.av);jL.prototype.Ix=function(){var H=this.W.getProgressState(),E=H.seekableEnd;this.api.getPresentingPlayerType()===2&&(E=this.G?this.G/1E3:H.seekableEnd);this.progressBar.style.width=ql(new vG(H.seekableStart,E),H.current,0)*100+"%"}; jL.prototype.onStateChange=function(){g.Rp(this.api.K())||(this.api.getPresentingPlayerType()===2?this.L===-1&&(this.show(),this.L=this.W.subscribe("h",this.Ix,this),this.Ix()):this.L!==-1&&(this.hide(),this.W.fm(this.L),this.L=-1))};g.C($B,s9); $B.prototype.init=function(H,E,G,P){s9.prototype.init.call(this,H,E,G);if(E.skipOrPreviewRenderer){if(H=g.X(E.skipOrPreviewRenderer,O2))G=new Op(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.W,this.N),G.mx(this.z$),G.init(PL("skip-button"),H,this.macros),g.d(this,G);if(H=g.X(E.skipOrPreviewRenderer,O2))var Q=H.skipOffsetMilliseconds}E.brandInteractionRenderer&&(H=E.brandInteractionRenderer.brandInteractionRenderer,G=new lPs(this.api,this.layoutId,this.interactionLoggingClientData,this.vF), G.mx(this.PF),G.init(PL("instream-user-sentiment"),H,this.macros),g.d(this,G));if(H=g.X(E,vQD))if(H=g.X(H,vQD))G=new OH(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.W,!!E.showWithoutLinkedMediaLayout),g.d(this,G),G.mx(this.T),G.init(PL("flyout-cta"),H,this.macros);P=P&&P.videoAdDurationSeconds;E.adBadgeRenderer&&(G=E.adBadgeRenderer,H=g.X(G,Ci),H!=null?(G=new Em(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,!1),g.d(this,G),G.mx(this.L),G.init(PL("ad-badge"), H,this.macros),this.G=G.element):(H=G.simpleAdBadgeRenderer,H==null&&(H={text:{text:"Ad",isTemplated:!1}}),G=new pD(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,!0),g.d(this,G),G.mx(this.L),G.init(PL("simple-ad-badge"),H,this.macros)));E.adPodIndex&&(H=g.X(E.adPodIndex,NlR),H!=null&&(G=new pO(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,G),G.mx(this.L),G.init(PL("ad-pod-index"),H)));E.adDurationRemaining&&!E.showWithoutLinkedMediaLayout&&(H=E.adDurationRemaining.adDurationRemainingRenderer, H==null&&(H={templatedCountdown:{templatedAdText:{text:"{FORMATTED_AD_DURATION_REMAINING}",isTemplated:!0}}}),P=new II(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.W,P,!1),g.d(this,P),P.mx(this.L),P.init(PL("ad-duration-remaining"),H,this.macros));E.adInfoRenderer&&(P=g.X(E.adInfoRenderer,Li))&&(H=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.element,void 0,!1),g.d(this,H),this.G!==null?this.L.insertBefore(H.element,this.G.nextSibling):H.mx(this.L), H.init(PL("ad-info-hover-text-button"),P,this.macros));E.visitAdvertiserRenderer&&(H=g.X(E.visitAdvertiserRenderer,g.rI))&&(G=Zm1(this)&&this.D?this.D:this.L)&&(P=new vM(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,P),P.mx(G),P.init(PL("visit-advertiser"),H,this.macros),re(P.element),H=s4w(P.element),Dr(P.element,H+" This link opens in new tab"));!(P=this.api.K())||g.HZ(P)||g.L3(P)||P.controlsType!="3"&&!P.disableOrganicUi||(Q=new jL(this.api,this.W,Q,!1),Q.mx(this.T$), g.d(this,Q));E.adDisclosureBannerRenderer&&(E=g.X(E.adDisclosureBannerRenderer,cdK))&&(Q=new oW(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),Q.mx(this.WF),Q.init(PL("ad-disclosure-banner"),E),g.d(this,Q));this.api.K().U("enable_updated_html5_player_focus_style")&&g.aG(this.element,"ytp-ad-player-overlay-updated-focus-style");this.show()}; $B.prototype.clear=function(){this.hide()};g.xO.prototype.flush=function(H,E){H=H===void 0?[]:H;E=E===void 0?!1:E;if(g.Xj("enable_client_streamz_web")){H=g.R(H);for(var G=H.next();!G.done;G=H.next())G=KOt(G.value),this.L&&Lt(G,l5,2,this.L),G={serializedIncrementBatch:g.H4(G.G())},g.HY("streamzIncremented",G,{sendIsolatedPayload:E})}}; g.C(ODU,g.xO);var aKu=new Map;sr.prototype.set=function(H,E,G){G=G!==void 0?Date.now()+G:void 0;this.L.set(H,E,G)}; sr.prototype.get=function(H){return this.L.get(H)}; sr.prototype.remove=function(H){this.L.remove(H)};var G3s=null;var Si=null,Jl=null,Vx=null,KuM=null;g.kM("yt.www.ads.eventcache.getLastCompanionData",function(){return Si}); g.kM("yt.www.ads.eventcache.getLastPlaShelfData",function(){return null}); g.kM("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction",function(){return Jl}); g.kM("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction",function(){return Vx}); g.kM("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand",function(){return KuM});var cTQ=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);wr.prototype.handleResponse=function(H,E){if(!E)throw Error("request needs to be passed into ConsistencyService");var G,P;E=((G=E.MO.context)==null?void 0:(P=G.request)==null?void 0:P.consistencyTokenJars)||[];var Q;(H=(Q=H.responseContext)==null?void 0:Q.consistencyTokenJar)&&this.replace(E,H)}; wr.prototype.replace=function(H,E){H=g.R(H);for(var G=H.next();!G.done;G=H.next())delete this.L[G.value.encryptedTokenJarContents];DST(this,E)};var Bu3=window.location.hostname.split(".").slice(-2).join("."),Nk;M7.getInstance=function(){Nk=g.Un("yt.clientLocationService.instance");Nk||(Nk=new M7,g.kM("yt.clientLocationService.instance",Nk));return Nk}; g.M=M7.prototype; g.M.setLocationOnInnerTubeContext=function(H){H.client||(H.client={});if(this.L)H.client.locationInfo||(H.client.locationInfo={}),H.client.locationInfo.latitudeE7=Math.floor(this.L.coords.latitude*1E7),H.client.locationInfo.longitudeE7=Math.floor(this.L.coords.longitude*1E7),H.client.locationInfo.horizontalAccuracyMeters=Math.round(this.L.coords.accuracy),H.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.G||this.locationPlayabilityToken)H.client.locationPlayabilityToken=this.G|| this.locationPlayabilityToken}; g.M.handleResponse=function(H){var E;H=(E=H.responseContext)==null?void 0:E.locationPlayabilityToken;H!==void 0&&(this.locationPlayabilityToken=H,this.L=void 0,g.tJ("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=TR(this))&&this.localStorage.set("yt-location-playability-token",H,15552E3):g.m9("YT_CL",JSON.stringify({loctok:H}),15552E3,Bu3,!0))}; g.M.clearLocationPlayabilityToken=function(H){H==="TVHTML5"?(this.localStorage=TR(this))&&this.localStorage.remove("yt-location-playability-token"):g.WC("YT_CL");this.G=void 0;this.W!==-1&&(clearTimeout(this.W),this.W=-1)}; g.M.getCurrentPositionFromGeolocation=function(){var H=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("Geolocation unsupported"));var E=!1,G=1E4;g.tJ("INNERTUBE_CLIENT_NAME")==="MWEB"&&(E=!0,G=15E3);return new Promise(function(P,Q){navigator.geolocation.getCurrentPosition(function(e){H.L=e;P(e)},function(e){Q(e)},{enableHighAccuracy:E, maximumAge:0,timeout:G})})}; g.M.createUnpluggedLocationInfo=function(H){var E={};H=H.coords;if(H==null?0:H.latitude)E.latitudeE7=Math.floor(H.latitude*1E7);if(H==null?0:H.longitude)E.longitudeE7=Math.floor(H.longitude*1E7);if(H==null?0:H.accuracy)E.locationRadiusMeters=Math.round(H.accuracy);return E}; g.M.createLocationInfo=function(H){var E={};H=H.coords;if(H==null?0:H.latitude)E.latitudeE7=Math.floor(H.latitude*1E7);if(H==null?0:H.longitude)E.longitudeE7=Math.floor(H.longitude*1E7);return E};g.M=SCu.prototype;g.M.contains=function(H){return Object.prototype.hasOwnProperty.call(this.L,H)}; g.M.get=function(H){if(this.contains(H))return this.L[H]}; g.M.set=function(H,E){this.L[H]=E}; g.M.cR=function(){return Object.keys(this.L)}; g.M.remove=function(H){delete this.L[H]};kG.prototype.getModuleId=function(H){return H.serviceId.getModuleId()}; kG.prototype.get=function(H){a:{var E=this.mappings.get(H.toString());switch(E.type){case "mapping":H=E.value;break a;case "factory":E=E.value();this.mappings.set(H.toString(),{type:"mapping",value:E});H=E;break a;default:H=dA(E)}}return H}; kG.prototype.registerService=function(H,E){this.mappings.set(H.toString(),{type:"mapping",value:E});return H}; new kG;var yy={},aCM=(yy.WEB_UNPLUGGED="^unplugged/",yy.WEB_UNPLUGGED_ONBOARDING="^unplugged/",yy.WEB_UNPLUGGED_OPS="^unplugged/",yy.WEB_UNPLUGGED_PUBLIC="^unplugged/",yy.WEB_CREATOR="^creator/",yy.WEB_KIDS="^kids/",yy.WEB_EXPERIMENTS="^experiments/",yy.WEB_MUSIC="^music/",yy.WEB_REMIX="^music/",yy.WEB_MUSIC_EMBEDDED_PLAYER="^music/",yy.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",yy);X7v.prototype.T=function(H,E,G){E=E===void 0?{}:E;G=G===void 0?qZ:G;var P={context:g.$y(H.clickTrackingParams,!1,this.D)};var Q=this.W(H);if(Q){this.L(P,Q,E);var e;E=g.ZO(this.G());(Q=(e=g.X(H.commandMetadata,g.Mk))==null?void 0:e.apiUrl)&&(E=Q);e=Wr1(PG(E));H=Object.assign({},{command:H},void 0);P={input:e,hA:tC1(e),MO:P,config:H};P.config.kE?P.config.kE.identity=G:P.config.kE={identity:G};return P}G=new g.LN("Error: Failed to create Request from Command.",H);g.h3(G)}; g.Sc.Object.defineProperties(X7v.prototype,{D:{configurable:!0,enumerable:!0,get:function(){return!1}}}); g.C(Yh,X7v);g.C(oC,Yh);oC.prototype.T=function(){return{input:"/getDatasyncIdsEndpoint",hA:tC1("/getDatasyncIdsEndpoint","GET"),MO:{}}}; oC.prototype.G=function(){return[]}; oC.prototype.W=function(){}; oC.prototype.L=function(){};var YCC={},Nzl=(YCC.GET_DATASYNC_IDS=kx(oC),YCC);var bC={},XoZ=(bC["analytics.explore"]="LATENCY_ACTION_CREATOR_ANALYTICS_EXPLORE",bC["artist.analytics"]="LATENCY_ACTION_CREATOR_ARTIST_ANALYTICS",bC["artist.events"]="LATENCY_ACTION_CREATOR_ARTIST_CONCERTS",bC["artist.presskit"]="LATENCY_ACTION_CREATOR_ARTIST_PROFILE",bC["asset.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_CLAIMED_VIDEOS",bC["asset.composition"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION",bC["asset.composition_ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_OWNERSHIP", bC["asset.composition_policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_COMPOSITION_POLICY",bC["asset.embeds"]="LATENCY_ACTION_CREATOR_CMS_ASSET_EMBEDS",bC["asset.history"]="LATENCY_ACTION_CREATOR_CMS_ASSET_HISTORY",bC["asset.issues"]="LATENCY_ACTION_CREATOR_CMS_ASSET_ISSUES",bC["asset.licenses"]="LATENCY_ACTION_CREATOR_CMS_ASSET_LICENSES",bC["asset.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_METADATA",bC["asset.ownership"]="LATENCY_ACTION_CREATOR_CMS_ASSET_OWNERSHIP",bC["asset.policy"]="LATENCY_ACTION_CREATOR_CMS_ASSET_POLICY", bC["asset.references"]="LATENCY_ACTION_CREATOR_CMS_ASSET_REFERENCES",bC["asset.shares"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SHARES",bC["asset.sound_recordings"]="LATENCY_ACTION_CREATOR_CMS_ASSET_SOUND_RECORDINGS",bC["asset_group.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_ASSETS",bC["asset_group.campaigns"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CAMPAIGNS",bC["asset_group.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_CLAIMED_VIDEOS",bC["asset_group.metadata"]="LATENCY_ACTION_CREATOR_CMS_ASSET_GROUP_METADATA", bC["song.analytics"]="LATENCY_ACTION_CREATOR_SONG_ANALYTICS",bC.creator_channel_dashboard="LATENCY_ACTION_CREATOR_CHANNEL_DASHBOARD",bC["channel.analytics"]="LATENCY_ACTION_CREATOR_CHANNEL_ANALYTICS",bC["channel.comments"]="LATENCY_ACTION_CREATOR_CHANNEL_COMMENTS",bC["channel.content"]="LATENCY_ACTION_CREATOR_POST_LIST",bC["channel.content.promotions"]="LATENCY_ACTION_CREATOR_PROMOTION_LIST",bC["channel.copyright"]="LATENCY_ACTION_CREATOR_CHANNEL_COPYRIGHT",bC["channel.editing"]="LATENCY_ACTION_CREATOR_CHANNEL_EDITING", bC["channel.monetization"]="LATENCY_ACTION_CREATOR_CHANNEL_MONETIZATION",bC["channel.music"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC",bC["channel.music_storefront"]="LATENCY_ACTION_CREATOR_CHANNEL_MUSIC_STOREFRONT",bC["channel.playlists"]="LATENCY_ACTION_CREATOR_CHANNEL_PLAYLISTS",bC["channel.translations"]="LATENCY_ACTION_CREATOR_CHANNEL_TRANSLATIONS",bC["channel.videos"]="LATENCY_ACTION_CREATOR_CHANNEL_VIDEOS",bC["channel.live_streaming"]="LATENCY_ACTION_CREATOR_LIVE_STREAMING",bC["dialog.copyright_strikes"]= "LATENCY_ACTION_CREATOR_DIALOG_COPYRIGHT_STRIKES",bC["dialog.video_copyright"]="LATENCY_ACTION_CREATOR_DIALOG_VIDEO_COPYRIGHT",bC["dialog.uploads"]="LATENCY_ACTION_CREATOR_DIALOG_UPLOADS",bC.owner="LATENCY_ACTION_CREATOR_CMS_DASHBOARD",bC["owner.allowlist"]="LATENCY_ACTION_CREATOR_CMS_ALLOWLIST",bC["owner.analytics"]="LATENCY_ACTION_CREATOR_CMS_ANALYTICS",bC["owner.art_tracks"]="LATENCY_ACTION_CREATOR_CMS_ART_TRACKS",bC["owner.assets"]="LATENCY_ACTION_CREATOR_CMS_ASSETS",bC["owner.asset_groups"]= "LATENCY_ACTION_CREATOR_CMS_ASSET_GROUPS",bC["owner.bulk"]="LATENCY_ACTION_CREATOR_CMS_BULK_HISTORY",bC["owner.campaigns"]="LATENCY_ACTION_CREATOR_CMS_CAMPAIGNS",bC["owner.channel_invites"]="LATENCY_ACTION_CREATOR_CMS_CHANNEL_INVITES",bC["owner.channels"]="LATENCY_ACTION_CREATOR_CMS_CHANNELS",bC["owner.claimed_videos"]="LATENCY_ACTION_CREATOR_CMS_CLAIMED_VIDEOS",bC["owner.claims"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",bC["owner.claims.manual"]="LATENCY_ACTION_CREATOR_CMS_MANUAL_CLAIMING",bC["owner.delivery"]= "LATENCY_ACTION_CREATOR_CMS_CONTENT_DELIVERY",bC["owner.delivery_templates"]="LATENCY_ACTION_CREATOR_CMS_DELIVERY_TEMPLATES",bC["owner.issues"]="LATENCY_ACTION_CREATOR_CMS_ISSUES",bC["owner.licenses"]="LATENCY_ACTION_CREATOR_CMS_LICENSES",bC["owner.pitch_music"]="LATENCY_ACTION_CREATOR_CMS_PITCH_MUSIC",bC["owner.policies"]="LATENCY_ACTION_CREATOR_CMS_POLICIES",bC["owner.releases"]="LATENCY_ACTION_CREATOR_CMS_RELEASES",bC["owner.reports"]="LATENCY_ACTION_CREATOR_CMS_REPORTS",bC["owner.videos"]="LATENCY_ACTION_CREATOR_CMS_VIDEOS", bC["playlist.videos"]="LATENCY_ACTION_CREATOR_PLAYLIST_VIDEO_LIST",bC["post.comments"]="LATENCY_ACTION_CREATOR_POST_COMMENTS",bC["post.edit"]="LATENCY_ACTION_CREATOR_POST_EDIT",bC["promotion.edit"]="LATENCY_ACTION_CREATOR_PROMOTION_EDIT",bC["video.analytics"]="LATENCY_ACTION_CREATOR_VIDEO_ANALYTICS",bC["video.claims"]="LATENCY_ACTION_CREATOR_VIDEO_CLAIMS",bC["video.comments"]="LATENCY_ACTION_CREATOR_VIDEO_COMMENTS",bC["video.copyright"]="LATENCY_ACTION_CREATOR_VIDEO_COPYRIGHT",bC["video.edit"]="LATENCY_ACTION_CREATOR_VIDEO_EDIT", bC["video.editor"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR",bC["video.editor_async"]="LATENCY_ACTION_CREATOR_VIDEO_EDITOR_ASYNC",bC["video.live_settings"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_SETTINGS",bC["video.live_streaming"]="LATENCY_ACTION_CREATOR_VIDEO_LIVE_STREAMING",bC["video.monetization"]="LATENCY_ACTION_CREATOR_VIDEO_MONETIZATION",bC["video.policy"]="LATENCY_ACTION_CREATOR_VIDEO_POLICY",bC["video.rights_management"]="LATENCY_ACTION_CREATOR_VIDEO_RIGHTS_MANAGEMENT",bC["video.translations"]="LATENCY_ACTION_CREATOR_VIDEO_TRANSLATIONS", bC),iC={},bGs=(iC.auto_search="LATENCY_ACTION_AUTO_SEARCH",iC.ad_to_ad="LATENCY_ACTION_AD_TO_AD",iC.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",iC.app_startup="LATENCY_ACTION_APP_STARTUP",iC.browse="LATENCY_ACTION_BROWSE",iC.cast_splash="LATENCY_ACTION_CAST_SPLASH",iC.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",iC.channels="LATENCY_ACTION_CHANNELS",iC.chips="LATENCY_ACTION_CHIPS",iC.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",iC.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK", iC.editor="LATENCY_ACTION_EDITOR",iC.embed="LATENCY_ACTION_EMBED",iC.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",iC.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",iC.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",iC.explore="LATENCY_ACTION_EXPLORE",iC.favorites="LATENCY_ACTION_FAVORITES",iC.home="LATENCY_ACTION_HOME",iC.inboarding="LATENCY_ACTION_INBOARDING",iC.landing="LATENCY_ACTION_LANDING",iC.learning="LATENCY_ACTION_LEARNING", iC.learning_journey_browse="LATENCY_ACTION_LEARNING_JOURNEY_BROWSE",iC.learning_journey_watch="LATENCY_ACTION_LEARNING_JOURNEY_WATCH",iC.library="LATENCY_ACTION_LIBRARY",iC.live="LATENCY_ACTION_LIVE",iC.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",iC.management="LATENCY_ACTION_MANAGEMENT",iC.mini_app="LATENCY_ACTION_MINI_APP_PLAY",iC.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",iC.onboarding="LATENCY_ACTION_ONBOARDING",iC.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS", iC.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",iC.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",iC.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",iC.prebuffer="LATENCY_ACTION_PREBUFFER",iC.prefetch="LATENCY_ACTION_PREFETCH",iC.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",iC.profile_switcher="LATENCY_ACTION_LOGIN",iC.projects="LATENCY_ACTION_PROJECTS",iC.reel_watch="LATENCY_ACTION_REEL_WATCH",iC.results="LATENCY_ACTION_RESULTS",iC.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE", iC.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",iC.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",iC.review="LATENCY_ACTION_REVIEW",iC.search_overview_answer="LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",iC.search_ui="LATENCY_ACTION_SEARCH_UI",iC.search_suggest="LATENCY_ACTION_SUGGEST",iC.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",iC.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",iC.seek="LATENCY_ACTION_PLAYER_SEEK",iC.settings="LATENCY_ACTION_SETTINGS",iC.store="LATENCY_ACTION_STORE", iC.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",iC.tenx="LATENCY_ACTION_TENX",iC.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",iC.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",iC.watch="LATENCY_ACTION_WATCH",iC.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",iC["watch,watch7"]="LATENCY_ACTION_WATCH",iC["watch,watch7_html5"]="LATENCY_ACTION_WATCH",iC["watch,watch7ad"]="LATENCY_ACTION_WATCH",iC["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",iC.wn_comments="LATENCY_ACTION_LOAD_COMMENTS", iC.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",iC.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",iC.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",iC.networkless_performance="LATENCY_ACTION_NETWORKLESS_PERFORMANCE",iC.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",iC.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",iC.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",iC);Object.assign(bGs,XoZ);g.C(cW,uB);var jy7=new NJ("aft-recorded",cW);var ZWd=g.lU.ytLoggingGelSequenceIdObj_||{};g.kM("ytLoggingGelSequenceIdObj_",ZWd);var n4=g.lU.ytLoggingLatencyUsageStats_||{};g.kM("ytLoggingLatencyUsageStats_",n4);oX.prototype.tick=function(H,E,G,P){Rj(this,"tick_"+H+"_"+E)||g.HY("latencyActionTicked",{tickName:H,clientActionNonce:E},{timestamp:G,cttAuthInfo:P})}; oX.prototype.info=function(H,E,G){var P=Object.keys(H).join("");Rj(this,"info_"+P+"_"+E)||(H=Object.assign({},H),H.clientActionNonce=E,g.HY("latencyActionInfo",H,{cttAuthInfo:G}))}; oX.prototype.jspbInfo=function(H,E,G){for(var P="",Q=0;Q=Q.length?(E.append(Q),H-=Q.length):H?(E.append(new Uint8Array(Q.buffer,Q.byteOffset,H)),G.append(new Uint8Array(Q.buffer,Q.byteOffset+H,Q.length-H)),H=0):G.append(Q);return{iW:E,EH:G}}; hJ.prototype.isFocused=function(H){return H>=this.G&&H=64&&(this.C.set(H.subarray(0,64-this.W),this.W),E=64-this.W,this.W=0,oS1(this,this.C,0));for(;E+64<=G;E+=64)oS1(this,H,E);E=this.start&&(H=2&&G.ssdaiAdsConfig&&xQ("Unexpected ad placement renderers length",H.slot,null,{length:P.length});var Q;((Q=G.adSlots)==null?0:Q.some(function(e){var w,t;return((w=g.X(e,uI))==null?void 0:(t=w.adSlotMetadata)==null?void 0:t.slotType)==="SLOT_TYPE_PLAYER_BYTES"}))||P.some(function(e){var w,t,k,W; return!!((w=e.renderer)==null?0:(t=w.linearAdSequenceRenderer)==null?0:(k=t.linearAds)==null?0:k.length)||!((W=e.renderer)==null||!W.instreamVideoAdRenderer)})||IxQ(H)})}; tk.prototype.Gl=function(){Te7(this.L)};KWu.prototype.Gh=function(){var H=this;RB7(this.W,function(){var E=Zi(H.slot.clientMetadata,"metadata_type_ad_break_request_data");return E.cueProcessedMs?H.L.get().fetch({cq:E.getAdBreakUrl,ao:new g.cP(E.pZ,E.LZ),cueProcessedMs:E.cueProcessedMs}):H.L.get().fetch({cq:E.getAdBreakUrl,ao:new g.cP(E.pZ,E.LZ)})})}; KWu.prototype.Gl=function(){Te7(this.W)};N_.prototype.Gh=function(){var H=this.slot.clientMetadata,E,G=(E=this.slot.fulfilledLayout)!=null?E:Zi(H,"metadata_type_fulfilled_layout");qQM(this.callback,this.slot,G)}; N_.prototype.Gl=function(){Qd(this.callback,this.slot,new T("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")};Xcq.prototype.build=function(H,E){return E.fulfilledLayout||m2(E,{LS:["metadata_type_fulfilled_layout"]})?new N_(H,E):this.G(H,E)};g.C(va,Xcq); va.prototype.G=function(H,E){if(m2(E,{LS:["metadata_type_ad_break_request_data","metadata_type_cue_point"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new tk(H,E,this.L,this.W,this.VF,this.Da,this.SR,this.d5,this.Ge);if(m2(E,{LS:["metadata_type_ad_break_request_data"],slotType:"SLOT_TYPE_AD_BREAK_REQUEST"}))return new KWu(H,E,this.L,this.W,this.VF,this.Da);throw new T("Unsupported slot with type: "+E.slotType+" and client metadata: "+YN(E.clientMetadata)+" in AdBreakRequestSlotFulfillmentAdapterFactory.");};g.C(Mg,Xcq);Mg.prototype.G=function(H,E){throw new T("Unsupported slot with type: "+E.slotType+" and client metadata: "+YN(E.clientMetadata)+" in DefaultFulfillmentAdapterFactory.");};g.M=hBv.prototype;g.M.Zu=function(){return this.slot}; g.M.Za=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(H){if(H.layoutId!==this.layout.layoutId)this.callback.f6(this.slot,H,new Xf("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 E=Zi(H.clientMetadata,"metadata_type_ad_break_response_data");this.slot.slotType==="SLOT_TYPE_AD_BREAK_REQUEST"?(this.callback.nP(this.slot,H),sIq(this.G, this.slot,E)):xQ("Unexpected slot type in AdBreakResponseLayoutRenderingAdapter - this should never happen",this.slot,H)}}; g.M.Ka=function(H,E){H.layoutId!==this.layout.layoutId?this.callback.f6(this.slot,H,new Xf("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.u4(this.slot,H,E),TEQ(this),FlU(this))};g.C(Xm,g.z7);g.M=Xm.prototype;g.M.Zu=function(){return this.W.slot}; g.M.Za=function(){return this.W.layout}; g.M.init=function(){this.G.get().addListener(this)}; g.M.release=function(){this.G.get().removeListener(this);this.dispose()}; g.M.Cs=function(){}; g.M.zz=function(){}; g.M.Oe=function(){}; g.M.wz=function(){}; g.M.startRendering=function(H){var E=this;pqw(this.W,H,function(){return void E.Vs()})}; g.M.Vs=function(){this.G.get().Vs(this.L)}; g.M.Ka=function(H,E){var G=this;pqw(this.W,H,function(){var P=G.G.get();S6u(P,G.L,3);G.L=[];G.callback.u4(G.slot,H,E)})}; g.M.G$=function(){this.G.Iu()||this.G.get().removeListener(this);g.z7.prototype.G$.call(this)}; g.Sc.Object.defineProperties(Xm.prototype,{slot:{configurable:!0,enumerable:!0,get:function(){return this.W.slot}}, layout:{configurable:!0,enumerable:!0,get:function(){return this.W.layout}}});Ae.prototype.Z5=function(H,E){E=E===void 0?!1:E;var G=(this.G.get(H)||[]).concat();if(E=E&&DsM(H)){var P=this.G.get(E);P&&G.push.apply(G,g.EC(P))}Bx(this,H,G);this.L.add(H);E&&this.L.add(E)}; Ae.prototype.fP=function(H,E){E=E===void 0?!1:E;if(!this.L.has(H)){var G=E&&DsM(H);G&&(E=!this.L.has(G));this.Z5(H,E)}};g.C(ANs,A9);g.C(mvM,Xm);g.M=mvM.prototype;g.M.kW=function(H,E){hA("ads-engagement-panel-layout",H,this.C.get().LW,this.SR.get(),this.D,this.T,this.Zu(),this.Za(),E)}; g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),g.X(this.Za().renderingContent,g3u),this.callback,"metadata_type_ads_engagement_panel_layout_view_model",function(E,G,P,Q,e){return new ANs(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(H,E){this.T===E.layoutId&&(this.D===null?this.D=this.SR.get().sQ():xQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)};g.C(iZU,A9);g.C(uS,Xm);g.M=uS.prototype;g.M.kW=function(H,E){hA("banner-image",H,this.C.get().LW,this.SR.get(),this.D,this.T,this.Zu(),this.Za(),E)}; g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),g.X(this.Za().renderingContent,Zk7),this.callback,"metadata_type_banner_image_layout_view_model",function(E,G,P,Q,e){return new iZU(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(H,E){this.T===E.layoutId&&(this.D===null?this.D=this.SR.get().sQ():xQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)};g.C(I3l,A9);g.C(bW,Xm);g.M=bW.prototype;g.M.kW=function(H,E){hA("action-companion",H,this.C.get().LW,this.SR.get(),this.D,this.T,this.Zu(),this.Za(),E)}; g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),g.X(this.Za().renderingContent,L1),this.callback,"metadata_type_action_companion_ad_renderer",function(E,G,P,Q,e){return new I3l(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(H,E){E.layoutId===this.layout.layoutId?this.yN.fP("impression"):this.T===E.layoutId&&(this.D===null?this.D=this.SR.get().sQ():xQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)};g.C($ss,A9);g.C(dP,Xm);g.M=dP.prototype;g.M.kW=function(H,E){hA("image-companion",H,this.C.get().LW,this.SR.get(),this.D,this.T,this.Zu(),this.Za(),E)}; g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),g.X(this.Za().renderingContent,Jc),this.callback,"metadata_type_image_companion_ad_renderer",function(E,G,P,Q,e){return new $ss(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(H,E){E.layoutId===this.layout.layoutId?this.yN.fP("impression"):this.T===E.layoutId&&(this.D===null?this.D=this.SR.get().sQ():xQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)};g.C(ntQ,A9);g.C(mJ7,Xm);g.M=mJ7.prototype;g.M.kW=function(H,E){hA("shopping-companion",H,this.C.get().LW,this.SR.get(),this.D,this.T,this.Zu(),this.Za(),E)}; g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),void 0,this.callback,"metadata_type_shopping_companion_carousel_renderer",function(E,G,P,Q,e){return new ntQ(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(H,E){E.layoutId===this.layout.layoutId?this.yN.fP("impression"):this.T===E.layoutId&&(this.D===null?this.D=this.SR.get().sQ():xQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)};g.C(my,Xm);g.M=my.prototype;g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),void 0,this.callback,"metadata_type_action_companion_ad_renderer",function(E,G,P,Q,e){return new I3l(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(){}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)}; g.M.kW=function(){};g.M=H6w.prototype;g.M.Zu=function(){return this.slot}; g.M.Za=function(){return this.layout}; g.M.init=function(){this.d5.get().addListener(this);this.d5.get().fl.push(this);var H=Zi(this.layout.clientMetadata,"metadata_type_video_length_seconds"),E=Zi(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");$W(this.layout.w5)&&DV(this.im.get(),this.layout.layoutId,{kZ:E,RA:H,listener:this})}; g.M.release=function(){this.d5.get().removeListener(this);DKM(this.d5.get(),this);$W(this.layout.w5)&&Zr(this.im.get(),this.layout.layoutId)}; g.M.startRendering=function(H){this.callback.nP(this.slot,H)}; g.M.Ka=function(H,E){sns(this.Da.get())&&!this.L&&(this.yN.fP("abandon"),this.L=!0);this.callback.u4(this.slot,H,E)}; g.M.oJ=function(H){switch(H.id){case "part2viewed":this.yN.fP("start");this.yN.fP("impression");break;case "videoplaytime25":this.yN.fP("first_quartile");break;case "videoplaytime50":this.yN.fP("midpoint");break;case "videoplaytime75":this.yN.fP("third_quartile");break;case "videoplaytime100":sns(this.Da.get())?this.L||(this.yN.fP("complete"),this.L=!0):this.yN.fP("complete");Vj(this.yN)&&YO(this.yN,Infinity,!0);lSd(this.Da.get())&&y2(this.W,Infinity,!0);break;case "engagedview":Vj(this.yN)||this.yN.fP("progress"); break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break;default:xQ("Cue Range ID unknown in DiscoveryLayoutRenderingAdapter",this.slot,this.layout)}}; g.M.onVolumeChange=function(){}; g.M.NI=function(){}; g.M.gG=function(){}; g.M.AR=function(){}; g.M.onFullscreenToggled=function(){}; g.M.IP=function(){}; g.M.Uu=function(){}; g.M.IK=function(H){lSd(this.Da.get())&&y2(this.W,H*1E3,!1);Vj(this.yN)&&YO(this.yN,H*1E3,!1)}; g.M.Bt=function(){}; g.M.Oj=function(){this.yN.fP("active_view_measurable")}; g.M.zJ=function(){this.yN.fP("active_view_viewable")}; g.M.ID=function(){this.yN.fP("active_view_fully_viewable_audible_half_duration")}; g.M.Uj=function(){this.yN.fP("audio_measurable")}; g.M.SG=function(){this.yN.fP("audio_audible")};g.C(N8,Xm);g.M=N8.prototype;g.M.init=function(){Xm.prototype.init.call(this);var H=Zi(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),E={adsClientData:this.layout.O2};this.L.push(new TP(H,this.layout.layoutId,Zi(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),E,!0))}; g.M.wd=function(){this.D||this.d5.get().resumeVideo(1)}; g.M.startRendering=function(H){Xm.prototype.startRendering.call(this,H);RH(this.d5.get(),"ad-showing");this.callback.nP(this.slot,H);this.T.NP=this}; g.M.Ka=function(H,E){Xm.prototype.Ka.call(this,H,E);Rd(this.d5.get(),"ad-showing");C$(this.T,this)}; g.M.kW=function(H){switch(H){case "ad-info-icon-button":(this.D=this.d5.get().Sf(1))||this.d5.get().pauseVideo();break;case "visit-advertiser":this.d5.get().pauseVideo()}}; g.M.G$=function(){Xm.prototype.G$.call(this)};g.C(eiw,A9);g.C(nP,Xm);g.M=nP.prototype;g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),void 0,this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(E,G,P,Q,e){return new eiw(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(){}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)}; g.M.kW=function(){};g.C(CE,A9);g.C(rS,Xm);rS.prototype.init=function(){Xm.prototype.init.call(this);this.L.push(new CE(g.X(this.layout.renderingContent,h1),this.layout.layoutId,{adsClientData:this.layout.O2}))}; rS.prototype.kW=function(){fa(this.D.get(),this.T)&&FY(this.SR.get(),3)}; rS.prototype.startRendering=function(H){Xm.prototype.startRendering.call(this,H);this.callback.nP(this.slot,H)}; rS.prototype.G$=function(){Xm.prototype.G$.call(this)};g.C(Dh,A9);g.C(jZ,Xm);jZ.prototype.init=function(){Xm.prototype.init.call(this);var H=g.X(this.layout.renderingContent,M3)||Zi(this.layout.clientMetadata,"metadata_type_ad_action_interstitial_renderer"),E=Eo(this.yN);this.L.push(new Dh(H,E,this.layout.layoutId,{adsClientData:this.layout.O2},!0,!0))}; jZ.prototype.startRendering=function(H){Xm.prototype.startRendering.call(this,H);this.callback.nP(this.slot,H)}; jZ.prototype.kW=function(H,E){if(E===this.layout.layoutId)switch(H){case "skip-button":var G;(H=(G=Zi(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:G.current)&&H.Wf(this.Zu(),this.layout)}}; jZ.prototype.G$=function(){Xm.prototype.G$.call(this)};ys.prototype.build=function(H,E,G,P){if(YL(P,{LS:["metadata_type_ad_break_response_data"],yF:["LAYOUT_TYPE_AD_BREAK_RESPONSE","LAYOUT_TYPE_THROTTLED_AD_BREAK_RESPONSE"]}))return new hBv(H,G,P,this.W,this.G,this.L);throw new Xf("Unsupported layout with type: "+P.layoutType+" and client metadata: "+YN(P.clientMetadata)+" in AdBreakRequestLayoutRenderingAdapterFactory.");};g.C(Ruw,A9);g.C(UA,Xm);g.M=UA.prototype;g.M.kW=function(H,E){hA("ads-engagement-panel",H,this.C.get().LW,this.SR.get(),this.D,this.T,this.Zu(),this.Za(),E)}; g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),g.X(this.Za().renderingContent,RR),this.callback,"metadata_type_ads_engagement_panel_renderer",function(E,G,P,Q,e){return new Ruw(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(H,E){E.layoutId===this.layout.layoutId?this.yN.fP("impression"):this.T===E.layoutId&&(this.D===null?this.D=this.SR.get().sQ():xQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)};g.C(NOQ,Xm);g.M=NOQ.prototype;g.M.kW=function(H,E){hA("top-banner-image-text-icon-buttoned",H,this.C.get().LW,this.SR.get(),this.D,this.T,this.Zu(),this.Za(),E)}; g.M.startRendering=function(H){G6(this.yN,this.Zu(),this.Za(),g.X(this.Za().renderingContent,CX1),this.callback,"metadata_type_top_banner_image_text_icon_buttoned_layout_view_model",function(E,G,P,Q,e){return new eiw(E,G,P,Q,e)},this.L); Xm.prototype.startRendering.call(this,H)}; g.M.nP=function(H,E){this.T===E.layoutId&&(this.D===null?this.D=this.SR.get().sQ():xQ("OnLayoutEntered should set engagePingCallback, but it was not null",this.slot,this.layout))}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.G$=function(){Yz(this.aq(),this);Xm.prototype.G$.call(this)};I5Q.prototype.build=function(H,E,G,P){if(YL(P,GCQ())||g.X(P.renderingContent,RR)!==void 0)return new UA(H,G,P,this.Fg,this.SR,this.aq,this.im,this.L);if(YL(P,tJv())||g.X(P.renderingContent,L1)!==void 0)return new bW(H,G,P,this.Fg,this.SR,this.aq,this.im,this.L);if(YL(P,fRQ())||g.X(P.renderingContent,Jc)!==void 0)return new dP(H,G,P,this.Fg,this.SR,this.aq,this.im,this.L);if(YL(P,DUd()))return new mJ7(H,G,P,this.Fg,this.SR,this.aq,this.im,this.L);if(YL(P,qoQ()))return new my(H,G,P,this.Fg,this.SR, this.aq,this.im,this.L);if(YL(P,GXu())||g.X(P.renderingContent,Zk7)!==void 0)return new uS(H,G,P,this.Fg,this.SR,this.aq,this.im,this.L);if(YL(P,mbq())||g.X(P.renderingContent,CX1)!==void 0)return new NOQ(H,G,P,this.Fg,this.SR,this.aq,this.im,this.L);if(YL(P,jhq()))return new nP(H,G,P,this.Fg,this.SR,this.aq,this.im,this.L);if(YL(P,nQn())||g.X(P.renderingContent,g3u)!==void 0)return new mvM(H,G,P,this.Fg,this.SR,this.aq,this.im,this.L);throw new Xf("Unsupported layout with type: "+P.layoutType+" and client metadata: "+ YN(P.clientMetadata)+" in DesktopAboveFeedLayoutRenderingAdapterFactory.");};KGw.prototype.build=function(H,E,G,P){if(YL(P,{LS:["metadata_type_linked_player_bytes_layout_id"],yF:["LAYOUT_TYPE_DISPLAY_UNDERLAY_TEXT_GRID_CARDS"]}))return new rS(H,G,P,this.Fg,this.SR,this.L);throw new Xf("Unsupported layout with type: "+P.layoutType+" and client metadata: "+YN(P.clientMetadata)+" in DesktopPlayerUnderlayLayoutRenderingAdapterFactory.");};g.M=cZv.prototype;g.M.Zu=function(){return this.slot}; g.M.Za=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(H){H.layoutId!==this.layout.layoutId?this.callback.f6(this.slot,H,new Xf("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.nP(this.slot,H),this.yN.fP("impression"),rC(this.Ou,H,"normal"))}; g.M.Ka=function(H,E){H.layoutId!==this.layout.layoutId?this.callback.f6(this.slot,H,new Xf("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.u4(this.slot,H,E)};g.M=XUv.prototype;g.M.Zu=function(){return this.slot}; g.M.Za=function(){return this.layout}; g.M.init=function(){}; g.M.release=function(){}; g.M.startRendering=function(H){H.layoutId!==this.layout.layoutId?this.callback.f6(this.slot,H,new Xf("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.nP(this.slot,H),this.yN.fP("impression"),rC(this.Ou,H,"normal"))}; g.M.Ka=function(H,E){H.layoutId!==this.layout.layoutId?this.callback.f6(this.slot,H,new Xf("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.u4(this.slot,H,E)};bV.prototype.build=function(H,E,G,P){if(!this.Da.get().S.K().U("h5_optimize_forcasting_slot_layout_creation_with_trimmed_metadata")){if(YL(P,$wM()))return new cZv(H,G,P,this.SR,this.Ou)}else if(YL(P,{LS:[],yF:["LAYOUT_TYPE_FORECASTING"]}))return new XUv(H,G,P,this.SR,this.Ou);throw new Xf("Unsupported layout with type: "+P.layoutType+" and client metadata: "+YN(P.clientMetadata)+" in ForecastingLayoutRenderingAdapterFactory.");};g.C(ZZl,A9);g.C(jW,Xm);g.M=jW.prototype;g.M.init=function(){Xm.prototype.init.call(this);var H=g.X(this.layout.renderingContent,nA)||Zi(this.layout.clientMetadata,"metadata_type_player_overlay_layout_renderer"),E={adsClientData:this.layout.O2};this.L.push(new ZZl(H,Zi(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),this.layout.layoutId,E))}; g.M.wd=function(){this.D||this.d5.get().resumeVideo(2)}; g.M.startRendering=function(H){Xm.prototype.startRendering.call(this,H);this.callback.nP(this.slot,H);this.T.NP=this}; g.M.Ka=function(H,E){Xm.prototype.Ka.call(this,H,E);C$(this.T,this)}; g.M.kW=function(H,E){if(!WI(this.Da.get(),"stop_handling_click_for_non_rendering_overlay_layout")||E===this.layout.layoutId){if(fa(this.C.get(),this.B))switch(H){case "visit-advertiser-link":FY(this.SR.get(),3)}switch(H){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.d5.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.d5.get().Sf(2))||this.d5.get().pauseVideo();break; case "visit-advertiser-link":this.d5.get().pauseVideo();Yu1(this).Tx();break;case "skip-button":if(H=Yu1(this),this.layout.renderingContent&&!mw(this.layout.clientMetadata,"metadata_type_dai")||!H||!H.UX){var G;(H=(G=Zi(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:G.current)&&H.Wf(this.Zu(),this.layout)}else xQ("Requesting to skip by LegacyPlayerBytes when components enabled"),H.Yv(this.Zu(),this.layout)}}}; g.M.G$=function(){Xm.prototype.G$.call(this)};g.C(C3,Xm);g.M=C3.prototype;g.M.init=function(){Xm.prototype.init.call(this);var H=g.X(this.layout.renderingContent,Dy)||Zi(this.layout.clientMetadata,"metadata_type_instream_ad_player_overlay_renderer"),E={adsClientData:this.layout.O2},G;(G=!!this.layout.renderingContent)||(G=xPQ(this),G=!(G&&G.UX));this.L.push(new TP(H,this.layout.layoutId,Zi(this.layout.clientMetadata,"METADATA_TYPE_MEDIA_LAYOUT_DURATION_seconds"),E,G))}; g.M.wd=function(){this.D||this.d5.get().resumeVideo(2)}; g.M.startRendering=function(H){Xm.prototype.startRendering.call(this,H);this.callback.nP(this.slot,H);this.T.NP=this}; g.M.Ka=function(H,E){Xm.prototype.Ka.call(this,H,E);C$(this.T,this)}; g.M.kW=function(H,E){if(!this.Da||!WI(this.Da.get(),"stop_handling_click_for_non_rendering_overlay_layout")||E===this.layout.layoutId){if(fa(this.C.get(),this.B))switch(H){case "visit-advertiser":FY(this.SR.get(),3)}switch(H){case "ad-mute-confirm-dialog-close-button":case "ad-feedback-undo-mute-button":case "ad-info-dialog-close-button":this.D||this.d5.get().resumeVideo(2);break;case "ad-info-icon-button":case "ad-player-overflow-button":(this.D=this.d5.get().Sf(2))||this.d5.get().pauseVideo();break; case "visit-advertiser":this.d5.get().pauseVideo();xPQ(this).Tx();break;case "skip-button":if(H=xPQ(this),this.layout.renderingContent&&!mw(this.layout.clientMetadata,"metadata_type_dai")||!H||!H.UX){var G;(H=(G=Zi(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:G.current)&&H.Wf(this.Zu(),this.layout)}else xQ("Requesting to skip by LegacyPlayerBytes"),H.Yv(this.Zu(),this.layout)}}}; g.M.G$=function(){Xm.prototype.G$.call(this)};g.C(zjj,A9);g.C(cE,Xm);g.M=cE.prototype;g.M.startRendering=function(H){var E=this;pqw(this.W,H,function(){E.L.push(new zjj(Zi(E.layout.clientMetadata,"metadata_type_valid_ad_message_renderer"),H.layoutId,H.O2));E.Vs();E.callback.nP(E.slot,H);g.F(RK(E.d5.get(),1),512)&&E.callback.f6(E.Zu(),E.Za(),new Xf("player is stuck during adNotify",void 0,"ADS_CLIENT_ERROR_MESSAGE_PLAYER_STUCK_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")})}; g.M.Uu=function(){}; g.M.IP=function(H){if(H.state.isError()){var E;this.callback.f6(this.Zu(),this.Za(),new Xf("A player error happened during adNotify",{playerErrorCode:(E=H.state.Qp)==null?void 0:E.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR_DURING_ADNOTIFY"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}}; g.M.onFullscreenToggled=function(){}; g.M.gG=function(){}; g.M.AR=function(){}; g.M.NI=function(){}; g.M.onVolumeChange=function(){}; g.M.oJ=function(){}; g.M.Bt=function(){}; g.M.kW=function(){};g.C(r5U,A9);g.C(pK,Xm);pK.prototype.init=function(){Xm.prototype.init.call(this);var H=g.X(this.layout.renderingContent,dz),E=Eo(this.yN);this.L.push(new r5U(H,E,this.layout.layoutId,{adsClientData:this.layout.O2}))}; pK.prototype.startRendering=function(H){Xm.prototype.startRendering.call(this,H);this.callback.nP(this.slot,H)}; pK.prototype.kW=function(H,E){if(E===this.layout.layoutId)switch(H){case "skip-button":var G;(H=(G=Zi(this.layout.clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))==null?void 0:G.current)&&H.Wf(this.Zu(),this.layout)}}; pK.prototype.G$=function(){Xm.prototype.G$.call(this)};SS1.prototype.build=function(H,E,G,P){if(H=y4(H,G,P,this.Fg,this.d5,this.SR,this.W,this.L,this.Da))return H;throw new Xf("Unsupported layout with type: "+P.layoutType+" and client metadata: "+YN(P.clientMetadata)+" in OtherWebInPlayerLayoutRenderingAdapterFactory.");};g.M=Nj.prototype;g.M.Zu=function(){return this.slot}; g.M.Za=function(){return this.layout}; g.M.init=function(){this.d5.get().addListener(this);this.d5.get().fl.push(this);if(this.layout.renderingContent){var H=this.C_.get();H=xn(H,1).pu/1E3}else H=Zi(this.layout.clientMetadata,"metadata_type_video_length_seconds");var E=g.X(this.layout.renderingContent,VU),G=E?O4(E.pings):Zi(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");E=E?ggj(E.pings):Zi(this.layout.clientMetadata,"metadata_type_active_view_identifier");$W(this.layout.w5)&&DV(this.im.get(),this.layout.layoutId, {kZ:G,RA:H,listener:this,Ys:E})}; g.M.release=function(){this.d5.get().removeListener(this);DKM(this.d5.get(),this);$W(this.layout.w5)&&Zr(this.im.get(),this.layout.layoutId)}; g.M.startRendering=function(H){this.callback.nP(this.slot,H)}; g.M.Ka=function(H,E){BA(this,"abandon");this.callback.u4(this.slot,H,E)}; g.M.oJ=function(H){switch(H.id){case "part2viewed":this.yN.fP("start");this.yN.fP("impression");break;case "videoplaytime25":this.yN.fP("first_quartile");break;case "videoplaytime50":this.yN.fP("midpoint");break;case "videoplaytime75":this.yN.fP("third_quartile");break;case "videoplaytime100":BA(this,"complete");Vj(this.yN)&&YO(this.yN,Infinity,!0);break;case "engagedview":Vj(this.yN)||this.yN.fP("progress");break;case "conversionview":case "videoplaybackstart":case "videoplayback2s":case "videoplayback10s":break; default:xQ("Cue Range ID unknown in ShortsPlaybackTrackingLayoutRenderingAdapter",this.slot,this.layout)}}; g.M.onVolumeChange=function(){}; g.M.NI=function(){}; g.M.gG=function(){}; g.M.AR=function(){}; g.M.onFullscreenToggled=function(){}; g.M.IP=function(H){this.L||(g.Sv(H,4)&&!g.Sv(H,2)?n2(this.yN,"pause"):xs(H,4)<0&&!(xs(H,2)<0)&&n2(this.yN,"resume"))}; g.M.Uu=function(){}; g.M.IK=function(H){Vj(this.yN)&&YO(this.yN,H*1E3,!1)}; g.M.Bt=function(){BA(this,"swipe")}; g.M.Oj=function(){this.yN.fP("active_view_measurable")}; g.M.zJ=function(){this.yN.fP("active_view_viewable")}; g.M.ID=function(){this.yN.fP("active_view_fully_viewable_audible_half_duration")}; g.M.Uj=function(){this.yN.fP("audio_measurable")}; g.M.SG=function(){this.yN.fP("audio_audible")};pm1.prototype.build=function(H,E,G,P){if(G.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"&&g.X(P.renderingContent,VU)!==void 0)return new Nj(H,G,P,this.d5,this.SR,this.Da,this.im,this.C_);E=["metadata_type_ad_placement_config"];for(var Q=g.R(xM()),e=Q.next();!e.done;e=Q.next())E.push(e.value);if(YL(P,{LS:E,yF:["LAYOUT_TYPE_DISCOVERY_PLAYBACK_TRACKER"]}))return G.slotType==="SLOT_TYPE_PLAYER_BYTES_SEQUENCE_ITEM"?new Nj(H,G,P,this.d5,this.SR,this.Da,this.im,this.C_):new H6w(H,G,P,this.d5,this.SR, this.ST,this.Da,this.im);throw new Xf("Unsupported layout with type: "+P.layoutType+" and client metadata: "+YN(P.clientMetadata)+" in PlaybackTrackingLayoutRenderingAdapterFactory.");};var PV={contentCpn:"",oV:new Map};y4Q.prototype.LP=function(H,E){var G={};E=Object.assign({},E,(G.cc=this.vY.VW(),G));this.vY.S.g5(H,E)};var GEM,B6; GEM={kco:"ALREADY_PINNED_ON_A_DEVICE",AUTHENTICATION_EXPIRED:"AUTHENTICATION_EXPIRED",dS_:"AUTHENTICATION_MALFORMED",EMw:"AUTHENTICATION_MISSING",SBp:"BAD_REQUEST",ej7:"CAST_SESSION_DEVICE_MISMATCHED",rvo:"CAST_SESSION_VIDEO_MISMATCHED",AvN:"CAST_TOKEN_EXPIRED",YBZ:"CAST_TOKEN_FAILED",BU5:"CAST_TOKEN_MALFORMED",ZRJ:"CGI_PARAMS_MALFORMED",fe$:"CGI_PARAMS_MISSING",J_p:"DEVICE_FALLBACK",YHZ:"GENERIC_WITH_LINK_AND_CPN",BX_:"ERROR_HDCP",ZXo:"LICENSE",v7R:"VIDEO_UNAVAILABLE",Mmu:"FORMAT_UNAVAILABLE",Vm_:"GEO_FAILURE", l75:"HTML5_AUDIO_RENDERER_ERROR",bLx:"GENERIC_WITHOUT_LINK",PBx:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK",mB$:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK",dBo:"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT",EiF:"HTML5_SPS_UMP_STATUS_REJECTED",CBx:"INVALID_DRM_MESSAGE",Ew$:"PURCHASE_NOT_FOUND",QjF:"PURCHASE_REFUNDED",Mlo:"RENTAL_EXPIRED",sjx:"RETRYABLE_ERROR",WpJ:"SERVER_ERROR",mF5:"SIGNATURE_EXPIRED",UFo:"STOPPED_BY_ANOTHER_PLAYBACK",ILZ:"STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED",OBw:"STREAMING_NOT_ALLOWED", zPR:"STREAM_LICENSE_NOT_FOUND",Bca:"TOO_MANY_REQUESTS",ZBN:"TOO_MANY_REQUESTS_WITH_LINK",fLw:"TOO_MANY_STREAMS_PER_ENTITLEMENT",vS_:"TOO_MANY_STREAMS_PER_USER",UNSUPPORTED_DEVICE:"UNSUPPORTED_DEVICE",i1m:"VIDEO_FORBIDDEN",G97:"VIDEO_NOT_FOUND",oMo:"BROWSER_OR_EXTENSION_ERROR"};B6={}; g.pB=(B6.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.",B6.DEVICE_FALLBACK="Sorry, this video is not available on this device.",B6.GENERIC_WITH_LINK_AND_CPN="An error occurred. Please try again later. (Playback ID: $CPN) $BEGIN_LINKLearn More$END_LINK",B6.LICENSE="Sorry, there was an error licensing this video.",B6.VIDEO_UNAVAILABLE= "Video unavailable",B6.FORMAT_UNAVAILABLE="This video isn't available at the selected quality. Please try again later.",B6.GEO_FAILURE="This video isn't available in your country.",B6.HTML5_AUDIO_RENDERER_ERROR="Audio renderer error. Please restart your computer.",B6.GENERIC_WITHOUT_LINK="An error occurred. Please try again later.",B6.HTML5_NO_AVAILABLE_FORMATS_FALLBACK="This video format is not supported.",B6.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", B6.HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT="Your browser can't play this video. $BEGIN_LINKLearn more$END_LINK",B6.HTML5_SPS_UMP_STATUS_REJECTED="Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",B6.INVALID_DRM_MESSAGE="The DRM system specific message is invalid.",B6.PURCHASE_NOT_FOUND="This video requires payment.",B6.PURCHASE_REFUNDED="This video's purchase has been refunded.",B6.RENTAL_EXPIRED="This video's rental has expired.",B6.CAST_SESSION_DEVICE_MISMATCHED= "The device in the cast session doesn't match the requested one.",B6.CAST_SESSION_VIDEO_MISMATCHED="The video in the cast session doesn't match the requested one.",B6.CAST_TOKEN_FAILED="Cast session not available. Please refresh or try again later.",B6.CAST_TOKEN_EXPIRED="Cast session was expired. Please refresh.",B6.CAST_TOKEN_MALFORMED="Invalid cast session. Please refresh or try again later.",B6.SERVER_ERROR="There was an internal server error. Please try again later.",B6.STOPPED_BY_ANOTHER_PLAYBACK= "Your account is playing this video in another location. Please reload this page to resume watching.",B6.STREAM_LICENSE_NOT_FOUND="Video playback interrupted. Please try again.",B6.STREAMING_DEVICES_QUOTA_PER_24H_EXCEEDED="Too many devices/IP addresses have been used over the 24 hour period.",B6.STREAMING_NOT_ALLOWED="Playback not allowed because this video is pinned on another device.",B6.RETRYABLE_ERROR="There was a temporary server error. Please try again later.",B6.TOO_MANY_REQUESTS="Please log in to watch this video.", B6.TOO_MANY_REQUESTS_WITH_LINK="Please $BEGIN_LINKclick here$END_LINK to watch this video on YouTube.",B6.TOO_MANY_STREAMS_PER_USER="Playback stopped because too many videos belonging to the same account are playing.",B6.TOO_MANY_STREAMS_PER_ENTITLEMENT="Playback stopped because this video has been played on too many devices.",B6.UNSUPPORTED_DEVICE="Playback isn't supported on this device.",B6.VIDEO_FORBIDDEN="Access to this video is forbidden.",B6.VIDEO_NOT_FOUND="This video can not be found.",B6.BROWSER_OR_EXTENSION_ERROR= "Something went wrong. Refresh or try again later. $BEGIN_LINKLearn more$END_LINK",B6);var PyD;var QWW=g.u0(),sWZ=QWW.match(/\((iPad|iPhone|iPod)( Simulator)?;/);if(!sWZ||sWZ.length<2)PyD=void 0;else{var omW=QWW.match(/\((iPad|iPhone|iPod)( Simulator)?; (U; )?CPU (iPhone )?OS (\d+_\d)[_ ]/);PyD=omW&&omW.length===6?Number(omW[5].replace("_",".")):0}var YV=PyD,DE=YV>=0;g.C(g.Z0,J$);g.Z0.prototype.Z=function(H,E,G,P,Q){return J$.prototype.Z.call(this,H,E,G,P,Q)};var YI={},Ow=(YI.FAIRPLAY="fairplay",YI.PLAYREADY="playready",YI.WIDEVINE="widevine",YI.CLEARKEY=null,YI.FLASHACCESS=null,YI.UNKNOWN=null,YI.WIDEVINE_CLASSIC=null,YI);ad.prototype.isMultiChannelAudio=function(){return this.numChannels>2};var XN={},ll=(XN.WIDTH={name:"width",video:!0,valid:640,sH:99999},XN.HEIGHT={name:"height",video:!0,valid:360,sH:99999},XN.FRAMERATE={name:"framerate",video:!0,valid:30,sH:9999},XN.BITRATE={name:"bitrate",video:!0,valid:3E5,sH:2E9},XN.EOTF={name:"eotf",video:!0,valid:"bt709",sH:"catavision"},XN.CHANNELS={name:"channels",video:!1,valid:2,sH:99},XN.CRYPTOBLOCKFORMAT={name:"cryptoblockformat",video:!0,valid:"subsample",sH:"invalidformat"},XN.DECODETOTEXTURE={name:"decode-to-texture",video:!0,valid:"false", sH:"nope"},XN.AV1_CODECS={name:"codecs",video:!0,valid:"av01.0.05M.08",sH:"av99.0.05M.08"},XN.EXPERIMENTAL={name:"experimental",video:!0,valid:"allowed",sH:"invalid"},XN.TUNNELMODE={name:"tunnelmode",video:!0,valid:"true",sH:"false"},XN);var eeD=["h","H"],wzu=["9","("],heD=["9h","(h"],$Oo=["8","*"],tSM=["a","A"],kEJ=["o","O"],WJd=["m","M"],IR$=["mac3","MAC3"],AEo=["meac3","MEAC3"],Z_={},s8l=(Z_.h=eeD,Z_.H=eeD,Z_["9"]=wzu,Z_["("]=wzu,Z_["9h"]=heD,Z_["(h"]=heD,Z_["8"]=$Oo,Z_["*"]=$Oo,Z_.a=tSM,Z_.A=tSM,Z_.o=kEJ,Z_.O=kEJ,Z_.m=WJd,Z_.M=WJd,Z_.mac3=IR$,Z_.MAC3=IR$,Z_.meac3=AEo,Z_.MEAC3=AEo,Z_),mOW=new Set("o O a ah A m M mac3 MAC3 meac3 MEAC3 so sa".split(" ")),R$s=new Set("m M mac3 MAC3 meac3 MEAC3".split(" "));var p={},AD=(p["0"]="f",p["160"]="h",p["133"]="h",p["134"]="h",p["135"]="h",p["136"]="h",p["137"]="h",p["264"]="h",p["266"]="h",p["138"]="h",p["298"]="h",p["299"]="h",p["304"]="h",p["305"]="h",p["214"]="h",p["216"]="h",p["374"]="h",p["375"]="h",p["140"]="a",p["141"]="a",p["327"]="sa",p["258"]="m",p["380"]="mac3",p["328"]="meac3",p["161"]="H",p["142"]="H",p["143"]="H",p["144"]="H",p["222"]="H",p["223"]="H",p["145"]="H",p["224"]="H",p["225"]="H",p["146"]="H",p["226"]="H",p["227"]="H",p["147"]="H",p["384"]= "H",p["376"]="H",p["385"]="H",p["377"]="H",p["149"]="A",p["261"]="M",p["381"]="MAC3",p["329"]="MEAC3",p["598"]="9",p["278"]="9",p["242"]="9",p["243"]="9",p["244"]="9",p["775"]="9",p["776"]="9",p["777"]="9",p["778"]="9",p["779"]="9",p["780"]="9",p["781"]="9",p["782"]="9",p["783"]="9",p["247"]="9",p["248"]="9",p["353"]="9",p["355"]="9",p["356"]="9",p["271"]="9",p["577"]="9",p["313"]="9",p["579"]="9",p["272"]="9",p["302"]="9",p["303"]="9",p["407"]="9",p["408"]="9",p["308"]="9",p["315"]="9",p["330"]= "9h",p["331"]="9h",p["332"]="9h",p["333"]="9h",p["334"]="9h",p["335"]="9h",p["336"]="9h",p["337"]="9h",p["338"]="so",p["600"]="o",p["250"]="o",p["251"]="o",p["774"]="o",p["194"]="*",p["195"]="*",p["220"]="*",p["221"]="*",p["196"]="*",p["197"]="*",p["279"]="(",p["280"]="(",p["317"]="(",p["318"]="(",p["273"]="(",p["274"]="(",p["357"]="(",p["358"]="(",p["275"]="(",p["359"]="(",p["360"]="(",p["276"]="(",p["583"]="(",p["584"]="(",p["314"]="(",p["585"]="(",p["561"]="(",p["277"]="(",p["361"]="(h",p["362"]= "(h",p["363"]="(h",p["364"]="(h",p["365"]="(h",p["366"]="(h",p["591"]="(h",p["592"]="(h",p["367"]="(h",p["586"]="(h",p["587"]="(h",p["368"]="(h",p["588"]="(h",p["562"]="(h",p["409"]="(",p["410"]="(",p["411"]="(",p["412"]="(",p["557"]="(",p["558"]="(",p["394"]="1",p["395"]="1",p["396"]="1",p["397"]="1",p["398"]="1",p["399"]="1",p["720"]="1",p["721"]="1",p["400"]="1",p["401"]="1",p["571"]="1",p["402"]="1",p["694"]="1h",p["695"]="1h",p["696"]="1h",p["697"]="1h",p["698"]="1h",p["699"]="1h",p["700"]="1h", p["701"]="1h",p["702"]="1h",p["703"]="1h",p["386"]="3",p["387"]="w",p["406"]="6",p["787"]="1",p["788"]="1",p["548"]="1e",p["549"]="1e",p["550"]="1e",p["551"]="1e",p["809"]="1e",p["810"]="1e",p["552"]="1e",p["811"]="1e",p["812"]="1e",p["553"]="1e",p["813"]="1e",p["814"]="1e",p["554"]="1e",p["815"]="1e",p["816"]="1e",p["555"]="1e",p["817"]="1e",p["818"]="1e",p["572"]="1e",p["556"]="1e",p["645"]="(",p["646"]="(",p["647"]="(",p["648"]="(",p["649"]="(",p["650"]="(",p["651"]="(",p["652"]="(",p["653"]="(", p["654"]="(",p["655"]="(",p["656"]="(",p["657"]="(",p["658"]="(",p["659"]="(",p["660"]="(",p["661"]="(",p["662"]="(",p["663"]="(",p["664"]="(",p["665"]="(",p["666"]="(",p["667"]="(",p["668"]="(",p["669"]="(",p["670"]="(",p["671"]="(",p["672"]="(",p["673"]="(",p["674"]="(h",p["675"]="(h",p["676"]="(h",p["677"]="(h",p["678"]="(h",p["679"]="(h",p["680"]="(h",p["681"]="(h",p["682"]="(h",p["683"]="(h",p["684"]="(h",p["685"]="(h",p["686"]="(h",p["687"]="(h",p["688"]="A",p["689"]="A",p["690"]="A",p["691"]= "MEAC3",p["773"]="i",p["806"]="I",p["805"]="I",p["829"]="9",p["830"]="9",p["831"]="9",p["832"]="9",p["833"]="9",p["834"]="9",p["835"]="9",p["836"]="9",p["892"]="9",p["893"]="9",p["837"]="9",p["838"]="9",p["839"]="9",p["840"]="9",p["841"]="(",p["842"]="(",p["843"]="(",p["844"]="(",p["845"]="(",p["846"]="(",p["847"]="(",p["848"]="(",p["894"]="(",p["895"]="(",p["849"]="(",p["850"]="(",p["851"]="(",p["852"]="(",p["865"]="9",p["866"]="9",p["867"]="9",p["868"]="9",p["869"]="9",p["870"]="9",p["871"]="9", p["872"]="9",p["896"]="9",p["897"]="9",p["873"]="9",p["874"]="9",p["875"]="9",p["876"]="9",p["877"]="(",p["878"]="(",p["879"]="(",p["880"]="(",p["881"]="(",p["882"]="(",p["883"]="(",p["884"]="(",p["898"]="(",p["899"]="(",p["885"]="(",p["886"]="(",p["887"]="(",p["888"]="(",p["900"]="2",p["901"]="2",p["902"]="2",p["903"]="2",p["904"]="2",p["905"]="2",p["906"]="2",p["907"]="2",p["908"]="2",p);var CY={},GGU=(CY.STEREO_LAYOUT_UNKNOWN=0,CY.STEREO_LAYOUT_LEFT_RIGHT=1,CY.STEREO_LAYOUT_TOP_BOTTOM=2,CY);var URt={vww:0,OeZ:124,IG7:144,CdN:220,owN:240,eI_:340,cxw:360,rxp:480,Y0R:588,AxR:608,Bd_:720,Ze7:740,tla:1080,S07:1100,UOm:1440,zIZ:2160,fGx: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 gF,l_,LY,sC1;gF={};g.lF=(gF.auto=0,gF.tiny=144,gF.light=144,gF.small=240,gF.medium=360,gF.large=480,gF.hd720=720,gF.hd1080=1080,gF.hd1440=1440,gF.hd2160=2160,gF.hd2880=2880,gF.highres=4320,gF);l_={0:"auto",144:"tiny",240:"small",360:"medium",480:"large",720:"hd720",1080:"hd1080",1440:"hd1440",2160:"hd2160",2880:"hd2880",4320:"highres"};LY={}; sC1=(LY.QUALITY_ORDINAL_UNKNOWN=0,LY.QUALITY_ORDINAL_144P_SAVER=124,LY.QUALITY_ORDINAL_144P=144,LY.QUALITY_ORDINAL_240P_SAVER=220,LY.QUALITY_ORDINAL_240P=240,LY.QUALITY_ORDINAL_360P_SAVER=340,LY.QUALITY_ORDINAL_360P=360,LY.QUALITY_ORDINAL_480P=480,LY.QUALITY_ORDINAL_608P_SAVER=588,LY.QUALITY_ORDINAL_608P=608,LY.QUALITY_ORDINAL_720P=720,LY.QUALITY_ORDINAL_720P_ENHANCED=740,LY.QUALITY_ORDINAL_1080P=1080,LY.QUALITY_ORDINAL_1080P_ENHANCED=1100,LY.QUALITY_ORDINAL_1440P=1440,LY.QUALITY_ORDINAL_2160P=2160, LY.QUALITY_ORDINAL_HIGHRES=9999,LY);var RY="highres hd2880 hd2160 hd1440 hd1080 hd720 large medium small tiny".split(" ");bd.prototype.isHdr=function(){return this.L==="smpte2084"||this.L==="arib-std-b67"};T0.prototype.wV=function(){return this.containerType===2}; T0.prototype.isEncrypted=function(){return!!this.QF}; T0.prototype.VS=function(){return!!this.audio}; T0.prototype.dO=function(){return!!this.video}; var $e=!1;g.C(QA,g.z7);g.M=QA.prototype;g.M.appendBuffer=function(H,E,G){if(this.Rx.lC()!==this.appendWindowStart+this.start||this.Rx.Iv()!==this.appendWindowEnd+this.start||this.Rx.YV()!==this.timestampOffset+this.start)this.Rx.supports(1),this.Rx.OO(this.appendWindowStart+this.start,this.appendWindowEnd+this.start),this.Rx.Zb(this.timestampOffset+this.start);this.Rx.appendBuffer(H,E,G)}; g.M.abort=function(){this.Rx.abort()}; g.M.remove=function(H,E){this.Rx.remove(H+this.start,E+this.start)}; g.M.removeAll=function(){this.remove(this.appendWindowStart,this.appendWindowEnd)}; g.M.clear=function(){this.Rx.clear()}; g.M.OO=function(H,E){this.appendWindowStart=H;this.appendWindowEnd=E}; g.M.Ee=function(){return this.timestampOffset+this.start}; g.M.lC=function(){return this.appendWindowStart}; g.M.Iv=function(){return this.appendWindowEnd}; g.M.Zb=function(H){this.timestampOffset=H}; g.M.YV=function(){return this.timestampOffset}; g.M.qV=function(H){H=this.Rx.qV(H===void 0?!1:H);return fc(H,this.start,this.end)}; g.M.pX=function(){return this.Rx.pX()}; g.M.Rv=function(){return this.Rx.Rv()}; g.M.Rm=function(){return this.Rx.Rm()}; g.M.WH=function(){return this.Rx.WH()}; g.M.gy=function(){this.Rx.gy()}; g.M.s$=function(H){return this.Rx.s$(H)}; g.M.U$=function(){return this.Rx.U$()}; g.M.Y5=function(){return this.Rx.Y5()}; g.M.S4=function(H,E,G){this.Rx.S4(H,E,G)}; g.M.UL=function(H,E,G){this.Rx.UL(H,E,G)}; g.M.VK=function(H,E){return this.Rx.VK(H,E)}; g.M.supports=function(H){return this.Rx.supports(H)}; g.M.ZT=function(){return this.Rx.ZT()}; g.M.isView=function(){return!0}; g.M.Ip=function(){return this.Rx.Ip()?this.isActive:!1}; g.M.isLocked=function(){return this.F8&&!this.isActive}; g.M.NL=function(H){H=this.Rx.NL(H);H.vw=this.start+"-"+this.end;return H}; g.M.B4=function(){return this.Rx.B4()}; g.M.SU=function(){return this.Rx.SU()}; g.M.H1=function(){return this.Rx.H1()}; g.M.G$=function(){this.Rx.mR(this.b$);g.z7.prototype.G$.call(this)};var e9=!1;g.C(ai,g.z7);g.M=ai.prototype;g.M.appendBuffer=function(H,E,G){this.Up=!1;G&&(this.PM=G);if(H.length){var P;((P=this.rP)==null?0:P.appendBuffer)?this.rP.appendBuffer(H):this.rP?this.rP.append(H):this.Jj&&this.Jj.webkitSourceAppend(this.id,H)}E&&(E.isEncrypted()&&(this.fh=this.PM),E.type===3&&(this.BY=E),this.bZ.push(E.PO()),this.bZ.length>4&&this.bZ.shift());this.mw&&(this.mw.length>=2||H.length>1048576?delete this.mw:this.mw.push(H))}; g.M.abort=function(){try{this.rP?this.rP.abort():this.Jj&&this.Jj.webkitSourceAbort(this.id)}catch(E){if(w3T){var H=new g.LN("Error while abort the source buffer: "+E.name+", "+E.message);g.h3(H)}}this.PM=this.BY=null}; g.M.remove=function(H,E,G){this.Up=!1;var P;if((P=this.rP)==null?0:P.remove)G&&G({b:Kk(this.qV()),s:H,e:E}),this.rP.remove(H,E)}; g.M.removeAll=function(){this.remove(this.lC(),this.Iv())}; g.M.clear=function(){this.Rm()||(this.abort(),this.removeAll(),this.fh=this.PM=this.BY=null,this.appendWindowStart=this.timestampOffset=0,this.LN=FK([],[]),this.Up=!1,this.mw=oy?[]:void 0,this.Yd=!0)}; g.M.lC=function(){if(e9&&this.dO)return this.appendWindowStart;var H;return((H=this.rP)==null?void 0:H.appendWindowStart)||0}; g.M.Iv=function(){var H;return((H=this.rP)==null?void 0:H.appendWindowEnd)||0}; g.M.OO=function(H,E){this.rP&&(e9&&this.dO?(this.appendWindowStart=H,this.rP.appendWindowEnd=E):H>this.lC()?(this.rP.appendWindowEnd=E,this.rP.appendWindowStart=H):(this.rP.appendWindowStart=H,this.rP.appendWindowEnd=E))}; g.M.Ee=function(){return this.timestampOffset}; g.M.Zb=function(H){e9?this.timestampOffset=H:this.supports(1)&&(this.rP.timestampOffset=H)}; g.M.YV=function(){return e9?this.timestampOffset:this.supports(1)?this.rP.timestampOffset:0}; g.M.qV=function(H){if(H===void 0?0:H)return this.Up||this.pX()||(this.LN=this.qV(!1),this.Up=!0),this.LN;try{return this.rP?this.rP.buffered:this.Jj?this.Jj.webkitSourceBuffered(this.id):FK([0],[Infinity])}catch(E){return FK([],[])}}; g.M.pX=function(){var H;return((H=this.rP)==null?void 0:H.updating)||!1}; g.M.Rm=function(){return this.Yd}; g.M.WH=function(){return!this.Yd&&this.pX()}; g.M.gy=function(){this.Yd=!1}; g.M.s$=function(H){var E=H==null?void 0:H.K_;H=H==null?void 0:H.containerType;return!E&&!H||E===this.K_&&H===this.containerType}; g.M.U$=function(){return this.PM}; g.M.Y5=function(){return this.fh}; g.M.VK=function(H,E){return this.containerType!==H||this.K_!==E}; g.M.S4=function(H,E,G){if(this.containerType!==H||G&&this.VK(H,G))this.supports(4),Pk()&&this.rP.changeType(E),G&&(this.K_=G);this.containerType=H}; g.M.UL=function(H,E,G){this.containerType&&this.VK(H,E)&&Pk()&&this.rP.changeType(G);this.containerType=H;this.K_=E}; g.M.ZT=function(){return this.BY}; g.M.isView=function(){return!1}; g.M.supports=function(H){switch(H){case 1:var E;return((E=this.rP)==null?void 0:E.timestampOffset)!==void 0;case 0:var G;return!((G=this.rP)==null||!G.appendBuffer);case 2:var P;return!((P=this.rP)==null||!P.remove);case 3:var Q,e;return!!(((Q=this.rP)==null?0:Q.addEventListener)&&((e=this.rP)==null?0:e.removeEventListener));case 4:return!(!this.rP||!this.rP.changeType);default:return!1}}; g.M.Ip=function(){return!this.pX()}; g.M.isLocked=function(){return!1}; g.M.NL=function(H){H.to=this.YV();H.up=this.pX();var E,G=((E=this.rP)==null?void 0:E.appendWindowStart)||0,P;E=((P=this.rP)==null?void 0:P.appendWindowEnd)||Infinity;H.aw=G.toFixed(3)+"-"+E.toFixed(3);return H}; g.M.Rv=function(){var H;return((H=this.rP)==null?void 0:H.writeHead)||0}; g.M.B4=function(){for(var H={},E=0;E=7&&(!E||((P=this.Fo)==null?0:P.U("mweb_ios_allow_playback_workaround_when_ready")))&&G0M(this,function(){g.bw(function(){Jpu(H,H.getCurrentTime(),0)},500)})}return E}; g.M.seekTo=function(H){this.xM()>0&&(DE&&YV<4&&(H=Math.max(.1,H)),this.setCurrentTime(H))}; g.M.fR=function(){if(!this.W&&this.Am)if(this.Am.T)try{var H;XK(this,{l:"mer",sr:(H=this.Fo)==null?void 0:H.u8(),rs:O0(this.Am)});this.Am.clear();this.W=this.Am;this.Am=void 0}catch(E){H=new g.LN("Error while clearing Media Source in MediaElement: "+E.name+", "+E.message),g.h3(H),this.stopVideo()}else this.stopVideo()}; g.M.stopVideo=function(){var H=this;if(!this.W){var E;(E=this.Am)==null||PXn(E);if(PN){if(!this.G){var G=new Kd;G.then(void 0,function(){}); this.G=G;oLs&&this.pause();g.bw(function(){H.G===G&&(Bk(H),G.resolve())},200)}}else Bk(this)}}; g.M.dU=function(){var H=this.AK();return EF(H)&&this.getDuration()?q1(H,this.getCurrentTime()):0}; g.M.zG=function(){var H=this.getDuration();return H===Infinity?1:H?this.dU()/H:0}; g.M.NL=function(){try{var H=this.getSize();return{vct:this.getCurrentTime().toFixed(3),vd:this.getDuration().toFixed(3),vpl:Kk(this.CG(),",",3),vbu:Kk(this.AK()),vbs:Kk(this.hI()),vpa:""+ +this.isPaused(),vsk:""+ +this.isSeeking(),ven:""+ +this.isEnded(),vpr:""+this.getPlaybackRate(),vrs:""+this.xM(),vns:""+this.jY(),vec:""+this.Sx(),vemsg:this.K6(),vvol:""+this.getVolume(),vdom:""+ +this.GC(),vsrc:""+ +!!this.Vp(),vw:""+H.width,vh:""+H.height}}catch(E){return{}}}; g.M.hasError=function(){return this.Sx()>0}; g.M.addEventListener=function(H,E){this.D.listen(H,E,!1,this);this.PB(H)}; g.M.removeEventListener=function(H,E){this.D.Sq(H,E,!1,this)}; g.M.dispatchEvent=function(H){if(this.G&&H.type==="pause")return!1;if(QE){var E,G=((E=H.L)==null?void 0:E.timeStamp)||Infinity;E=G>performance.now()?G-Date.now()+performance.now():G;G=this.W||this.Am;if((G==null?0:G.Rm())||E<=((G==null?void 0:G.C)||0)){var P;XK(this,{l:"mede",sr:(P=this.Fo)==null?void 0:P.u8(),et:H.type});return!1}if(this.H0)return XK(this,{l:"medes",et:H.type}),G&&H.type==="seeking"&&(G.C=performance.now(),this.H0=!1),!1}return this.D.dispatchEvent(H)}; g.M.Jw=function(){this.B=!1}; g.M.LC=function(){this.B=!0;this.IN(!0)}; g.M.EK=function(){this.B&&!this.v4()&&this.IN(!0)}; g.M.equals=function(H){return!!H&&H.E2()===this.E2()}; g.M.G$=function(){this.N&&this.removeEventListener("volumechange",this.EK);PN&&Bk(this);g.J.prototype.G$.call(this)}; var PN=!1,oLs=!1,QE=!1,eUu=!1;g.M=g.bb.prototype;g.M.isPaused=function(){return g.F(this,4)}; g.M.isPlaying=function(){return g.F(this,8)&&!g.F(this,512)&&!g.F(this,64)&&!g.F(this,2)}; g.M.isOrWillBePlaying=function(){return g.F(this,8)&&!g.F(this,2)&&!g.F(this,1024)}; g.M.isCued=function(){return g.F(this,64)&&!g.F(this,8)&&!g.F(this,4)}; g.M.isBuffering=function(){return g.F(this,1)&&!g.F(this,2)}; g.M.isError=function(){return g.F(this,128)}; g.M.isSuspended=function(){return g.F(this,512)}; g.M.kX=function(){return g.F(this,64)&&g.F(this,4)}; g.M.toString=function(){return"PSt."+this.state.toString(16)}; var lC={},Uf=(lC.BUFFERING="buffering-mode",lC.CUED="cued-mode",lC.ENDED="ended-mode",lC.PAUSED="paused-mode",lC.PLAYING="playing-mode",lC.SEEKING="seeking-mode",lC.UNSTARTED="unstarted-mode",lC);g.C(Gj,g.J);g.M=Gj.prototype;g.M.pz=function(){return this.G}; g.M.Zu=function(){return this.slot}; g.M.Za=function(){return this.layout}; g.M.init=function(){var H=Zi(this.layout.clientMetadata,"metadata_type_video_length_seconds"),E=Zi(this.layout.clientMetadata,"metadata_type_active_view_traffic_type");$W(this.layout.w5)&&DV(this.im.get(),this.layout.layoutId,{kZ:E,RA:H,listener:this,t2:this.uG()});mjw(this.SR.get(),this);H=this.Cm;E=this.layout.layoutId;var G={t2:this.uG()};H.L.set(E,G);this.uW()}; g.M.Gw=function(){}; g.M.release=function(){$W(this.layout.w5)&&Zr(this.im.get(),this.layout.layoutId);nK(this.SR.get(),this);this.Cm.L.delete(this.layout.layoutId);this.XN()}; g.M.R4=function(){}; g.M.Dv=function(){}; g.M.startRendering=function(H){ITw(me(this));if(fZ(this,H)){var E=this.L;Rv(E.params.fM.Da.get(),!0)&&qNt(E,"p_sr",{});hc(this);this.Je(H);this.uG()||this.bL(!1)}}; g.M.nP=function(H,E){if(E.layoutId===this.layout.layoutId){this.xV="rendering";this.W=this.d5.get().isMuted()||this.d5.get().getVolume()===0;this.fP("impression");this.fP("start");if(this.d5.get().isMuted()){ap(this,"mute");var G;H=((G=Ew(this))==null?void 0:G.muteCommands)||[];GM(this.ST.get(),H,this.layout.layoutId)}if(this.d5.get().isFullscreen()){this.Z5("fullscreen");var P;G=((P=Ew(this))==null?void 0:P.fullscreenCommands)||[];GM(this.ST.get(),G,this.layout.layoutId)}this.uG()||(P=this.l4.get(), P.G&&!P.W&&(P.T=!1,P.W=!0,P.actionType!=="ad_to_video"&&(Ld("pbs",void 0,P.actionType),g.Xj("finalize_all_timelines")&&$1s(P.actionType))));this.D7(1);this.yO(E);var Q;E=((Q=Ew(this))==null?void 0:Q.impressionCommands)||[];GM(this.ST.get(),E,this.layout.layoutId)}}; g.M.WQ=function(H,E,G){this.B={Y8:3,XX:H==="load_timeout"?402:400,errorMessage:E.message};this.fP("error");var P;H=((P=Ew(this))==null?void 0:P.errorCommands)||[];GM(this.ST.get(),H,this.layout.layoutId);this.uG()||this.nz.f6(this.slot,this.layout,E,G)}; g.M.sN=function(){if(this.xV==="rendering"){ap(this,"pause");var H,E=((H=Ew(this))==null?void 0:H.pauseCommands)||[];GM(this.ST.get(),E,this.layout.layoutId);this.D7(2)}}; g.M.qw=function(){if(this.xV==="rendering"){ap(this,"resume");var H,E=((H=Ew(this))==null?void 0:H.resumeCommands)||[];GM(this.ST.get(),E,this.layout.layoutId)}}; g.M.Pg=function(H,E){E=E===void 0?!1:E;if(this.xV==="rendering"){var G={currentTimeSec:H,flush:E};ci(this.L,"p_ip",G);YO(this.yN,H*1E3,E);this.W||YO(this.yN,H*1E3,E===void 0?!1:E);var P=this.vk();if(P){P/=1E3;if(H>=P*.25||E)this.fP("first_quartile"),ci(this.L,"p_fq",G);if(H>=P*.5||E)this.fP("midpoint"),ci(this.L,"p_sq",G);if(H>=P*.75||E)this.fP("third_quartile"),ci(this.L,"p_tq",G);this.Da.get().S.K().experiments.xp("enable_progress_command_flush_on_kabuki")?y2(this.D,H*1E3,E):y2(this.D,H*1E3,Dwu(this)? E:!1)}}}; g.M.VW=function(){var H;return((H=xn(this.C_.get(),1))==null?void 0:H.clientPlaybackNonce)||""}; g.M.Qq=function(H,E){H.layoutId!==this.layout.layoutId?this.nz.f6(this.slot,H,new Xf("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"):E()}; g.M.u4=function(H,E,G){if(E.layoutId===this.layout.layoutId)switch(this.xV="not_rendering",this.layoutExitReason=void 0,this.uG()||(H=G!=="normal"||this.position+1===this.C)&&this.bL(H),this.X4(G),this.D7(0),G){case "abandoned":if(G_(this.yN,"impression")){var P,Q=((P=Ew(this))==null?void 0:P.abandonCommands)||[];GM(this.ST.get(),Q,this.layout.layoutId)}break;case "normal":P=((Q=Ew(this))==null?void 0:Q.completeCommands)||[];GM(this.ST.get(),P,this.layout.layoutId);break;case "skipped":var e;P=((e= Ew(this))==null?void 0:e.skipCommands)||[];GM(this.ST.get(),P,this.layout.layoutId)}}; g.M.jI=function(){return this.layout.layoutId}; g.M.fC=function(){return this.B}; g.M.Oj=function(){if(this.xV==="rendering"){this.yN.fP("active_view_measurable");var H,E=((H=Ew(this))==null?void 0:H.activeViewMeasurableCommands)||[];GM(this.ST.get(),E,this.layout.layoutId)}}; g.M.ID=function(){if(this.xV==="rendering"){this.yN.fP("active_view_fully_viewable_audible_half_duration");var H,E=((H=Ew(this))==null?void 0:H.activeViewFullyViewableAudibleHalfDurationCommands)||[];GM(this.ST.get(),E,this.layout.layoutId)}}; g.M.zJ=function(){if(this.xV==="rendering"){this.yN.fP("active_view_viewable");var H,E=((H=Ew(this))==null?void 0:H.activeViewViewableCommands)||[];GM(this.ST.get(),E,this.layout.layoutId)}}; g.M.SG=function(){if(this.xV==="rendering"){this.yN.fP("audio_audible");var H,E=((H=Ew(this))==null?void 0:H.activeViewAudioAudibleCommands)||[];GM(this.ST.get(),E,this.layout.layoutId)}}; g.M.Uj=function(){if(this.xV==="rendering"){this.yN.fP("audio_measurable");var H,E=((H=Ew(this))==null?void 0:H.activeViewAudioMeasurableCommands)||[];GM(this.ST.get(),E,this.layout.layoutId)}}; g.M.bL=function(H){this.l4.get().bL(Zi(this.layout.clientMetadata,"metadata_type_ad_placement_config").kind,H,this.position,this.C,!1)}; g.M.onFullscreenToggled=function(H){if(this.xV==="rendering")if(H){this.Z5("fullscreen");var E,G=((E=Ew(this))==null?void 0:E.fullscreenCommands)||[];GM(this.ST.get(),G,this.layout.layoutId)}else this.Z5("end_fullscreen"),E=((G=Ew(this))==null?void 0:G.endFullscreenCommands)||[],GM(this.ST.get(),E,this.layout.layoutId)}; g.M.onVolumeChange=function(){if(this.xV==="rendering")if(this.d5.get().isMuted()){ap(this,"mute");var H,E=((H=Ew(this))==null?void 0:H.muteCommands)||[];GM(this.ST.get(),E,this.layout.layoutId)}else ap(this,"unmute"),H=((E=Ew(this))==null?void 0:E.unmuteCommands)||[],GM(this.ST.get(),H,this.layout.layoutId)}; g.M.gG=function(){}; g.M.AR=function(){}; g.M.NI=function(){}; g.M.oJ=function(){}; g.M.Bt=function(){}; g.M.Z5=function(H){this.yN.Z5(H,!this.W)}; g.M.fP=function(H){this.yN.fP(H,!this.W)}; g.M.uG=function(){var H=Zi(this.slot.clientMetadata,"metadata_type_eligible_for_ssap");return H===void 0?(xQ("Expected SSAP eligibility for PlayerBytes sub layout",this.slot,this.layout),!1):this.Da.get().uG(H)};g.C(ei,Gj);g.M=ei.prototype;g.M.uW=function(){}; g.M.XN=function(){var H=this.SR.get();H.AV===this&&(H.AV=null);this.timer.stop()}; g.M.R4=function(){this.timer.stop();Gj.prototype.sN.call(this)}; g.M.Dv=function(){Mp(this);Gj.prototype.qw.call(this)}; g.M.vk=function(){return Zi(this.Za().clientMetadata,"METADATA_TYPE_MEDIA_BREAK_LAYOUT_DURATION_MILLISECONDS")}; g.M.Ka=function(H,E){var G=this;this.Qq(H,function(){G.xV!=="rendering_stop_requested"&&(G.xV="rendering_stop_requested",G.layoutExitReason=E,rO(G,E),G.timer.stop())})}; g.M.Ix=function(){var H=Date.now(),E=H-this.xB;this.xB=H;this.Wt+=E;this.Wt>=this.vk()?this.W7():(this.Pg(this.Wt/1E3),cH(this,this.Wt))}; g.M.X4=function(){}; g.M.Uu=function(){}; g.C(uSw,ei);g.M=uSw.prototype;g.M.IP=function(H){if(this.xV!=="not_rendering"){H=rT(this,H);var E=this.d5.get().getPresentingPlayerType()===2;this.xV==="rendering_start_requested"?E&&IR(H)&&this.j0():E?g.Sv(H,2)?xQ("Receive player ended event during MediaBreak",this.Zu(),this.Za()):dD(this,H):this.KT()}}; g.M.Je=function(){g1j(this);Sf(this.d5.get());this.SR.get().AV=this;HR("pbp")||HR("pbs")||Ld("pbp");HR("pbp","watch")||HR("pbs","watch")||Ld("pbp",void 0,"watch");this.j0()}; g.M.yO=function(H){this.l4.get();var E=Zi(H.clientMetadata,"metadata_type_ad_placement_config").kind,G=this.position===0;H=Zi(H.clientMetadata,"metadata_type_linked_in_player_layout_type");H={adBreakType:Z2(E),adType:Zqv(H)};var P=void 0;G?E!=="AD_PLACEMENT_KIND_START"&&(P="video_to_ad"):P="ad_to_ad";KT("ad_mbs",void 0,P);g.Qn(H,P);Mp(this)}; g.M.KT=function(){this.Yn()}; g.M.W7=function(){r71(this);this.Yn()}; g.C(wc,ei);g.M=wc.prototype;g.M.IP=function(H){this.xV!=="not_rendering"&&(H=rT(this,H),dD(this,H))}; g.M.Je=function(){xQ("Not used in SSAP")}; g.M.yO=function(){Mp(this)}; g.M.KT=function(){xQ("Not used in SSAP")}; g.M.W7=function(){r71(this);this.nz.lz(this.Zu(),this.Za(),"normal")}; g.C(Vh,wc);Vh.prototype.Ka=function(H,E){var G=this;this.Qq(H,function(){mMd(G.G,E)&&(G.xV="rendering_stop_requested",G.layoutExitReason=E,rO(G,E),G.timer.stop())})}; Vh.prototype.startRendering=function(H){ITw(me(this));fZ(this,H)&&(hc(this),this.SR.get().AV=this)};g.C(eO,Gj);g.M=eO.prototype;g.M.KT=function(){this.Yn()}; g.M.IP=function(H){if(this.xV!=="not_rendering"){H=rT(this,H);var E=this.d5.get().getPresentingPlayerType()===2;this.xV==="rendering_start_requested"?E&&IR(H)&&this.j0():!E||g.Sv(H,2)?this.Yn():dD(this,H)}}; g.M.uW=function(){Zi(this.Za().clientMetadata,"metadata_type_player_bytes_callback_ref").current=this;this.shrunkenPlayerBytesConfig=Zi(this.Za().clientMetadata,"metadata_type_shrunken_player_bytes_config")}; g.M.XN=function(){Zi(this.Za().clientMetadata,"metadata_type_player_bytes_callback_ref").current=null;if(this.VM){var H=this.context.fM,E=this.VM,G=this.Za().layoutId;if(Rv(H.Da.get(),!0)){var P={};H.LP("mccru",(P.cid=E,P.p_ac=G,P))}this.Dj.get().removeCueRange(this.VM)}this.VM=void 0;var Q;(Q=this.kU)==null||Q.dispose();this.Y3&&this.Y3.dispose()}; g.M.Je=function(H){var E=OA(this.Da.get()),G=Kl(this.Da.get());if(E&&G&&!this.uG()){G=Zi(H.clientMetadata,"metadata_type_preload_player_vars");var P=this.Da.get();P=g.hE(P.S.K().experiments,"html5_preload_wait_time_secs");G&&this.Y3&&this.Y3.start(P*1E3)}h_U(this,H);g1j(this);E?(G=this.JG.get(),H=Zi(H.clientMetadata,"metadata_type_player_vars"),G.S.loadVideoByPlayerVars(H,!1,2)):fDn(this.JG.get(),Zi(H.clientMetadata,"metadata_type_player_vars"));var Q;(Q=this.kU)==null||Q.start();E||this.JG.get().S.playVideo(2)}; g.M.yO=function(){var H;(H=this.kU)==null||H.stop();this.Kh();(this.adCpn=f3n(this))||xQ("Media layout confirmed started, but ad CPN not set.");this.hG.get().rW("onAdStart",this.adCpn);this.ZS=Date.now()}; g.M.vk=function(){var H;return(H=xn(this.C_.get(),2))==null?void 0:H.pu}; g.M.Tx=function(){this.yN.Z5("clickthrough")}; g.M.Ka=function(H,E){var G=this;this.Qq(H,function(){if(G.xV!=="rendering_stop_requested"){G.xV="rendering_stop_requested";G.layoutExitReason=E;rO(G,E);var P;(P=G.kU)==null||P.stop();G.Y3&&G.Y3.stop();Zv1(G)}})}; g.M.onCueRangeEnter=function(H){if(H!==this.VM)xQ("Received CueRangeEnter signal for unknown layout.",this.Zu(),this.Za(),{cueRangeId:H});else{var E=this.context.fM,G=this.Za().layoutId;if(Rv(E.Da.get(),!0)){var P={};E.LP("mccre",(P.cid=H,P.p_ac=G,P))}this.Dj.get().removeCueRange(this.VM);this.VM=void 0;WI(this.context.Da.get(),"html5_ssap_flush_at_stop_rendering")&&this.uG()||(H=Zi(this.Za().clientMetadata,"metadata_type_video_length_seconds"),this.Pg(H,!0),this.fP("complete"))}}; g.M.X4=function(H){H!=="abandoned"&&this.hG.get().rW("onAdComplete");this.hG.get().rW("onAdEnd",this.adCpn)}; g.M.Kh=function(){this.VM="adcompletioncuerange:"+this.Za().layoutId;this.Dj.get().addCueRange(this.VM,0x7ffffffffffff,0x8000000000000,!1,this,2,2);var H=this.context.fM,E=this.VM,G=this.Za().layoutId;if(Rv(H.Da.get(),!0)){var P={};H.LP("mccr",(P.cid=E,P.p_ac=G,P))}}; g.M.onCueRangeExit=function(){}; g.M.Uu=function(H){this.xV==="rendering"&&(this.shrunkenPlayerBytesConfig&&this.shrunkenPlayerBytesConfig.shouldRequestShrunkenPlayerBytes&&H>=(this.shrunkenPlayerBytesConfig.playerProgressOffsetSeconds||0)&&this.d5.get().OV(!0),this.Pg(H))}; g.M.Pg=function(H,E){Gj.prototype.Pg.call(this,H,E===void 0?!1:E);E=Date.now()-this.ZS;var G=H*1E3,P={contentCpn:this.VW(),adCpn:f3n(this)};if(H-this.gq>=5){var Q=E=2||(this.jq.Ka(this.layout,E),H=WI(this.params.context.Da.get(),"html5_ssap_pass_transition_reason")&&E==="abandoned",this.mN()&&!H&&(WI(this.params.context.Da.get(),"html5_ssap_pass_transition_reason")&&(["normal","skipped","muted","user_input_submitted"].includes(E)||xQ("Single stopRendering: unexpected exit reason",this.slot,this.layout,{exitReason:E})),this.Ge.get().finishSegmentByCpn(this.layout.layoutId, xn(this.C_.get(),1).clientPlaybackNonce,Dt(E,this.params.context.Da))),this.d5.get().removeListener(this),this.XV()&&Yrl(this.jq.pz())&&this.Uh.u4(this.slot,this.layout,this.jq.pz().L))}; g.M.kK=function(H,E,G){eWn({cpn:H,vY:this.C_.get(),eE:!0});this.Za().layoutId!==H||WI(this.params.context.Da.get(),"html5_ssap_pass_transition_reason")&&G===5||(this.jq.pz().currentState<2&&(H=Hx(G,this.params.context.Da),H==="error"?this.Uh.f6(this.slot,this.layout,new Xf("Player transition with error during SSAP single layout.",{playerErrorCode:"non_video_expired",transitionReason:G},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_TRANSITION_WITH_ERROR"),"ADS_CLIENT_ERROR_TYPE_ERROR_DURING_RENDERING"):rC(this.DO, this.layout,H)),WI(this.params.context.Da.get(),"html5_ssap_exit_without_waiting_for_transition")||this.Uh.u4(this.slot,this.layout,this.jq.pz().L))};g.C(t3,g.J);g.M=t3.prototype;g.M.Zu=function(){return this.slot}; g.M.Za=function(){return this.layout}; g.M.SJ=function(){}; g.M.AC=function(){return this.YH[this.Dc]}; g.M.P$=function(){return this.Dc}; g.M.R4=function(H,E){var G=this.AC();E.layoutId!==p6(G,H,E)?xQ("pauseLayout for a PlayerBytes layout that is not currently active",H,E):G.R4()}; g.M.Dv=function(H,E){var G=this.AC();E.layoutId!==p6(G,H,E)?xQ("resumeLayout for a PlayerBytes layout that is not currently active",H,E):G.Dv()}; g.M.Yv=function(H,E){var G=this.AC();t81(this,H,E);Hxl(G,H,E)&&this.m2(G.Zu(),G.Za(),"skipped")}; g.M.Wf=function(H,E){var G=this.AC();xZM(this);FNU(G,H,E)&&(H=lwt(this,G,H,E),H!==void 0&&(this.uG()?xQ("Should not happen. Should delete"):b87(this,G.Zu(),G.Za(),H)))}; g.M.yH=function(H,E){var G=Object.assign({},SO(this),{layoutId:E.layoutId}),P=G.layoutId,Q=G.eE;if(G.t2){var e={};Gq(G.vY,"wrse",(e.ec=P,e.is=Q,e.ctp=Q6(P),e))}HMw(this.yB,H,E)}; g.M.nP=function(H,E){var G;(G=this.AC())==null||G.nP(H,E)}; g.M.u4=function(H,E,G){E.layoutId===this.Za().layoutId&&(this.j1=!1,Yz(this.aq(),this));var P;(P=this.AC())==null||P.u4(H,E,G)}; g.M.Uu=function(H){var E;(E=this.AC())==null||E.Uu(H)}; g.M.F6=function(H,E,G){this.P$()===-1&&(this.callback.nP(this.slot,this.layout),this.Dc++);var P=this.AC();P?(P.WQ(H,E,G),this.uG()&&this.callback.f6(this.slot,this.layout,E,G)):xQ("No active adapter found onLayoutError in PlayerBytesVodCompositeLayoutRenderingAdapter",void 0,void 0,{activeSubLayoutIndex:String(this.P$()),layoutId:this.Za().layoutId})}; g.M.onFullscreenToggled=function(H){var E;(E=this.AC())==null||E.onFullscreenToggled(H)}; g.M.gG=function(H){var E;(E=this.AC())==null||E.gG(H)}; g.M.NI=function(H){var E;(E=this.AC())==null||E.NI(H)}; g.M.onVolumeChange=function(){var H;(H=this.AC())==null||H.onVolumeChange()}; g.M.eL=function(H,E,G){vj(this.yB,H,E,G)}; g.M.F5=function(H){H.startRendering(H.Za())}; g.M.init=function(){var H=Zi(this.Za().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");H&&(H.current=this);if(this.YH.length<1)throw new T("Invalid sub layout rendering adapter length when scheduling composite layout.",{length:String(this.YH.length)});if(H=Zi(this.Za().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))H.current=this;H=g.R(this.YH);for(var E=H.next();!E.done;E=H.next())E=E.value,E.init(),C$n(this.yB,this.slot,E.Za()),AIq(this.yB,this.slot,E.Za()); if(this.uG())for(this.C_.get().addListener(this),FXQ(Tqt(this),this.C_.get()),H=Tqt(this),H=g.R(H),E=H.next();!E.done;E=H.next())this.hO(E.value)}; g.M.hO=function(H){var E=Zi(H.clientMetadata,"metadata_type_player_vars");E?(H.layoutType!=="LAYOUT_TYPE_MEDIA"&&xQ("Non-video ad contains playerVars",this.slot,H),this.JG.get().addPlayerResponseForAssociation({playerVars:E})):(H=uiM(H),this.JG.get().addPlayerResponseForAssociation({yx:H}))}; g.M.release=function(){var H=Zi(this.Za().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");H&&(H.current=null);if(H=Zi(this.Za().clientMetadata,"metadata_type_ad_pod_skip_target_callback_ref"))H.current=null;H=g.R(this.YH);for(var E=H.next();!E.done;E=H.next())E=E.value,tcd(this.yB,this.slot,E.Za()),E.release();this.uG()&&(this.C_.get().removeListener(this),ML7())}; g.M.Qq=function(H){return H.layoutId!==this.Za().layoutId?(this.callback.f6(this.Zu(),H,new Xf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Za().layoutId+("and LayoutType: "+this.Za().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"),!1):!0}; g.M.Fi=function(){this.d5.get().addListener(this);IS(this.aq(),this)}; g.M.IP=function(H){if(H.state.isError()){var E,G;this.F6((E=H.state.Qp)==null?void 0:E.errorCode,new Xf("There was a player error during this media layout.",{playerErrorCode:(G=H.state.Qp)==null?void 0:G.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else(E=this.AC())&&E.IP(H)}; g.M.uG=function(){var H=Zi(this.Zu().clientMetadata,"metadata_type_eligible_for_ssap");return H===void 0?(xQ("Expected SSAP eligibility in PlayerBytes slots",this.Zu(),this.Za()),!1):this.Da.get().uG(H)}; g.M.AR=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.oJ=function(){}; g.M.Bt=function(){}; g.C(kB,t3);g.M=kB.prototype;g.M.x0=function(H,E,G){this.m2(H,E,G)}; g.M.n3=function(H,E){this.m2(H,E,"error")}; g.M.m2=function(H,E,G){var P=this;$al(this,H,E,G,function(){Dz(P,P.P$()+1)})}; g.M.startRendering=function(H){this.Qq(H)&&(this.Fi(),y8n(this.l4.get()),mX7(this.Da.get())||Sf(this.d5.get()),this.P$()===-1&&Dz(this,this.P$()+1))}; g.M.Ka=function(H,E){var G=this;this.j1=!0;this.P$()===this.YH.length?this.callback.u4(this.slot,this.layout,E):(H=this.AC(),H.Ka(H.Za(),E),this.Az=function(){G.callback.u4(G.slot,G.layout,E)}); this.d5.get().S.sj();fDn(this.JG.get(),{});H=RK(this.d5.get(),1);H.isPaused()&&!g.F(H,2)&&this.d5.get().playVideo();this.d5.get().removeListener(this);this.j1&&PgU(this)}; g.M.kK=function(){}; g.M.KI=function(){}; g.M.lz=function(){}; g.C(k2,t3);g.M=k2.prototype;g.M.x0=function(H,E,G){H=Object.assign({},SO(this),{layoutId:E.layoutId,layoutExitReason:G});E=H.layoutId;G=H.layoutExitReason;var P={};Gq(H.vY,"prse",(P.xc=E,P.ler=G,P.ctp=Q6(E),P))}; g.M.n3=function(){xQ("onSubLayoutError in SSAP")}; g.M.m2=function(){xQ("exitSubLayoutAndPlayNext in SSAP")}; g.M.AC=function(){return this.bG}; g.M.P$=function(){var H=this;return this.YH.findIndex(function(E){var G;return E.Za().layoutId===((G=H.bG)==null?void 0:G.Za().layoutId)})}; g.M.F5=function(H){a3(this.bG===void 0,"replacing another adapter");this.bG=H;H.startRendering(H.Za())}; g.M.eL=function(H,E,G){vj(this.yB,H,E,G);var P;a3(E.layoutId===((P=this.bG)==null?void 0:P.Za().layoutId),"currentAdapter does not match exiting layout",{slot:H?"slot: "+H.slotType:"",subLayout:yH(E)})&&(this.bG=void 0)}; g.M.release=function(){t3.prototype.release.call(this);a3(this.bG===void 0,"currentAdapter is still active during release");this.bG=void 0}; g.M.mN=function(){return this.d5.get().getPresentingPlayerType()===2}; g.M.Ka=function(H,E){function G(){iS(this)&&(["normal","error","skipped","muted","user_input_submitted"].includes(E)||xQ("Composite stopRendering: Unexpected layout exit reason",this.slot,H,{layoutExitReason:E}))} function P(){this.bG&&bS(this,this.bG,E);if(this.mN()&&(!iS(this)||E!=="abandoned")){G.call(this);var e;var w=((e=this.C_.get().S.getVideoData())==null?void 0:e.clientPlaybackNonce)||"";e=xn(this.C_.get(),1).clientPlaybackNonce;this.Ge.get().finishSegmentByCpn(w,e,Dt(E,this.Da))}XJd(this,E)} function Q(){if(this.bG){var e=this.bG;e.pz().currentState<2&&e.Ka(e.Za(),E);e=iS(this)&&E==="abandoned";this.mN()&&!e&&(G.call(this),this.Ge.get().finishSegmentByCpn(this.bG.Za().layoutId,xn(this.C_.get(),1).clientPlaybackNonce,Dt(E,this.Da)))}} a3(H.layoutId===this.Za().layoutId,"StopRendering for wrong layout")&&mMd(this.Wr.W,E)&&(this.XV()?P.call(this):Q.call(this))}; g.M.u4=function(H,E,G){t3.prototype.u4.call(this,H,E,G);E.layoutId===this.Za().layoutId&&this.d5.get().removeListener(this)}; g.M.VW=function(){return xn(this.C_.get(),1).clientPlaybackNonce}; g.M.kK=function(H,E,G){eWn(Object.assign({},SO(this),{cpn:H}));if(!iS(this)||G!==5)if(this.XV()){if(this.bG&&this.bG.Za().layoutId!==E){var P=this.bG.Za().layoutId;P!==H&&xQ("onClipExited: mismatched exiting cpn",this.slot,void 0,{layoutId:P,exitingCpn:H,enteringCpn:E});H=Hx(G,this.Da);bS(this,this.bG,H)}else this.bG&&xQ("onClipExited: active layout is entering again");E===this.VW()&&AG1(this,G)}else{if(this.bG&&this.bG.Za().layoutId===H)YzT(this,this.bG,G);else{var Q;xQ("Exiting cpn does not match active cpn", this.slot,(P=this.bG)==null?void 0:P.Za(),{exitingCpn:H,transitionReason:G,activeCpn:(Q=this.bG)==null?void 0:Q.Za().layoutId})}E===this.VW()&&(this.bG!==void 0&&(xQ("active adapter is not properly exited",this.slot,this.layout,{activeLayout:yH(this.bG.Za())}),YzT(this,this.bG,G)),AG1(this,G),XJd(this,this.Wr.W.L))}}; g.M.XV=function(){return WI(this.Da.get(),"html5_ssap_exit_without_waiting_for_transition")}; g.M.startRendering=function(H){this.Qq(H)&&(H=this.Wr,a3(H.L===1,"tickStartRendering: state is not initial"),H.L=2,this.Fi())}; g.M.KI=function(H){RJs(Object.assign({},SO(this),{cpn:H}));var E=this.YH.find(function(G){return G.Za().layoutId===H}); E?(this.Wr.L!==2&&(TWQ(this.ET,this.slot.slotId),a3(this.Wr.L===2,"Expect started"),this.callback.nP(this.slot,this.layout)),this.F5(E),HMw(this.yB,this.slot,E.Za())):Dyd(this,H)}; g.M.Yv=function(H,E){t81(this,H,E);var G=this.AC();G?Hxl(G,H,E)&&$h1(this,"skipped"):NGn(this,"onSkipRequested")}; g.M.Wf=function(H,E){var G;a:{if(G=this.AC()){if(xZM(this),FNU(G,H,E)&&(H=lwt(this,G,H,E),H!==void 0)){G={Ar:G,dIJ:this.YH[H]};break a}}else NGn(this,"SkipWithAdPodSkip");G=void 0}if(H=G)G=H.Ar,E=H.dIJ,H=G.Za().layoutId,this.XV()?bS(this,G,"skipped"):G.Ka(G.Za(),"skipped"),G=E.Za().layoutId,this.Ge.get().finishSegmentByCpn(H,G,Dt("skipped",this.Da))}; g.M.yH=function(){xQ("Not used in html5_ssap_fix_layout_exit")}; g.M.IP=function(H){var E;(E=this.AC())==null||E.IP(H)}; g.M.F6=function(){xQ("Not used in html5_ssap_fix_layout_exit")}; g.M.lz=function(H,E,G){var P;if(((P=this.AC())==null?void 0:P.Za().layoutId)!==E.layoutId)return void xQ("requestToExitSubLayout: wrong layout");$h1(this,G)};g.C(B3,g.J);g.M=B3.prototype;g.M.Zu=function(){return this.jq.Zu()}; g.M.Za=function(){return this.jq.Za()}; g.M.init=function(){var H=Zi(this.Za().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");H&&(H.current=this);this.uW()}; g.M.uW=function(){this.jq.init()}; g.M.release=function(){var H=Zi(this.Za().clientMetadata,"metadata_type_player_bytes_layout_controls_callback_ref");H&&(H.current=null);this.XN()}; g.M.XN=function(){this.jq.release()}; g.M.R4=function(){this.jq.R4()}; g.M.Dv=function(){this.jq.Dv()}; g.M.Yv=function(H,E){xQ("Unexpected onSkipRequested from PlayerBytesVodSingleLayoutRenderingAdapter. Skip should be handled by Triggers",this.Zu(),this.Za(),{requestingSlot:H,requestingLayout:E})}; g.M.startRendering=function(H){H.layoutId!==this.Za().layoutId?this.callback.f6(this.Zu(),H,new Xf("Tried to start rendering an unknown layout, this adapter requires LayoutId: "+this.Za().layoutId+("and LayoutType: "+this.Za().layoutType),void 0,"ADS_CLIENT_ERROR_MESSAGE_UNKNOWN_LAYOUT"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED"):(this.d5.get().addListener(this),IS(this.aq(),this),y8n(this.l4.get()),mX7(this.Da.get())||Sf(this.d5.get()),this.jq.startRendering(H))}; g.M.Ka=function(H,E){this.j1=!0;this.jq.Ka(H,E);this.d5.get().S.sj();fDn(this.JG.get(),{});H=RK(this.d5.get(),1);H.isPaused()&&!g.F(H,2)&&this.d5.get().playVideo();this.d5.get().removeListener(this);this.j1&&this.jq.KT()}; g.M.nP=function(H,E){this.jq.nP(H,E)}; g.M.u4=function(H,E,G){E.layoutId===this.Za().layoutId&&(this.j1=!1,Yz(this.aq(),this));this.jq.u4(H,E,G);E.layoutId===this.Za().layoutId&&d$(this.l4.get())}; g.M.Uu=function(H){this.jq.Uu(H)}; g.M.IP=function(H){if(H.state.isError()){var E,G;this.F6((E=H.state.Qp)==null?void 0:E.errorCode,new Xf("There was a player error during this media layout.",{playerErrorCode:(G=H.state.Qp)==null?void 0:G.errorCode},"ADS_CLIENT_ERROR_MESSAGE_PLAYER_ERROR"),"ADS_CLIENT_ERROR_TYPE_ENTER_LAYOUT_FAILED")}else this.jq.IP(H)}; g.M.F6=function(H,E,G){this.jq.WQ(H,E,G)}; g.M.onFullscreenToggled=function(H){this.jq.onFullscreenToggled(H)}; g.M.gG=function(H){this.jq.gG(H)}; g.M.NI=function(H){this.jq.NI(H)}; g.M.onVolumeChange=function(){this.jq.onVolumeChange()}; g.M.AR=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.oJ=function(){}; g.M.Bt=function(){};g.M=A$.prototype;g.M.Zu=function(){return this.slot}; g.M.Za=function(){return this.layout}; g.M.init=function(){this.Yq.get().addListener(this);this.d5.get().addListener(this);var H=Zi(this.layout.clientMetadata,"metadata_type_layout_enter_ms");var E=Zi(this.layout.clientMetadata,"metadata_type_layout_exit_ms");if(this.D){var G=this.Yq.get().kh.slice(-1)[0];G!==void 0&&(H=G.startSecs*1E3,E=(G.startSecs+G.Po)*1E3)}this.Gw(H,E);var P;G=(P=this.C_.get().uE)==null?void 0:P.clientPlaybackNonce;P=this.layout.O2.adClientDataEntry;gk(this.SR.get(),{daiStateTrigger:{filledAdsDurationMs:E-H,contentCpn:G, adClientData:P}});var Q=this.Yq.get();Q=jAv(Q.G,H,E);Q!==null&&(gk(this.SR.get(),{daiStateTrigger:{filledAdsDurationMs:Q-H,contentCpn:G,cueDurationChange:"DAI_CUE_DURATION_CHANGE_SHORTER",adClientData:P}}),this.Ge.get().pT(Q,E))}; g.M.release=function(){this.XN();this.Yq.get().removeListener(this);this.d5.get().removeListener(this)}; g.M.startRendering=function(){this.Je();this.callback.nP(this.slot,this.layout)}; g.M.Ka=function(H,E){this.UN(E);this.driftRecoveryMs!==null&&(LE(this,{driftRecoveryMs:this.driftRecoveryMs.toString(),breakDurationMs:Math.round(AV7(this)-Zi(this.layout.clientMetadata,"metadata_type_layout_enter_ms")).toString(),driftFromHeadMs:Math.round(this.d5.get().S.XR()*1E3).toString()}),this.driftRecoveryMs=null);this.callback.u4(this.slot,this.layout,E)}; g.M.XW=function(){return!1}; g.M.Ot=function(H){var E=Zi(this.layout.clientMetadata,"metadata_type_layout_enter_ms"),G=Zi(this.layout.clientMetadata,"metadata_type_layout_exit_ms");H*=1E3;if(E<=H&&H0&&xY(this.L(),E)}; g.M.D5=function(H){this.T.delete(H.slotId);for(var E=[],G=g.R(this.Q8.values()),P=G.next();!P.done;P=G.next()){P=P.value;var Q=P.trigger;Q instanceof vB&&Q.triggeringSlotId===H.slotId&&E.push(P)}E.length>0&&xY(this.L(),E)}; g.M.WL=function(H){for(var E=[],G=g.R(this.Q8.values()),P=G.next();!P.done;P=G.next()){P=P.value;var Q=P.trigger;Q instanceof Tj&&Q.slotType===H.slotType&&Q.L!==H.slotId&&E.push(P)}E.length>0&&xY(this.L(),E)}; g.M.EM=function(H){this.G.add(H.slotId);for(var E=[],G=g.R(this.Q8.values()),P=G.next();!P.done;P=G.next())P=P.value,P.trigger instanceof r_&&H.slotId===P.trigger.triggeringSlotId&&E.push(P);E.length>0&&xY(this.L(),E)}; g.M.QS=function(H){this.G.delete(H.slotId);this.D.add(H.slotId);for(var E=[],G=g.R(this.Q8.values()),P=G.next();!P.done;P=G.next())if(P=P.value,P.trigger instanceof Y7)H.slotId===P.trigger.triggeringSlotId&&E.push(P);else if(P.trigger instanceof In){var Q=P.trigger;H.slotId===Q.slotId&&this.W.has(Q.triggeringLayoutId)&&E.push(P)}E.length>0&&xY(this.L(),E)}; g.M.i8=function(H){for(var E=[],G=g.R(this.Q8.values()),P=G.next();!P.done;P=G.next())P=P.value,P.trigger instanceof yz&&H.slotId===P.trigger.triggeringSlotId&&E.push(P);E.length>0&&xY(this.L(),E)}; g.M.GW=function(H){for(var E=[],G=g.R(this.Q8.values()),P=G.next();!P.done;P=G.next())P=P.value,P.trigger instanceof XH&&H.slotId===P.trigger.triggeringSlotId&&E.push(P);E.length>0&&xY(this.L(),E)}; g.M.yM=function(H,E){this.C.add(E.layoutId)}; g.M.Rw=function(H,E){this.C.delete(E.layoutId)}; g.M.nP=function(H,E){this.W.add(E.layoutId);for(var G=[],P=g.R(this.Q8.values()),Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,Q.trigger instanceof yr)E.layoutId===Q.trigger.triggeringLayoutId&&G.push(Q);else if(Q.trigger instanceof q6){var e=Q.trigger;H.slotType===e.slotType&&E.layoutType===e.layoutType&&E.layoutId!==e.L&&G.push(Q)}else Q.trigger instanceof In&&(e=Q.trigger,E.layoutId===e.triggeringLayoutId&&this.D.has(e.slotId)&&G.push(Q));G.length>0&&xY(this.L(),G)}; g.M.u4=function(H,E,G){this.W.delete(E.layoutId);H=[];for(var P=g.R(this.Q8.values()),Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,Q.trigger instanceof WX&&E.layoutId===Q.trigger.triggeringLayoutId&&H.push(Q),Q.trigger instanceof lH){var e=Q.trigger;E.layoutId===e.triggeringLayoutId&&e.L.includes(G)&&H.push(Q)}H.length>0&&xY(this.L(),H)}; g.M.UQ=function(){}; g.M.r7=function(){this.D.clear()}; g.M.LL=function(){};g.C(fP,g.J);fP.prototype.Ze=function(H,E,G,P){if(this.Q8.has(E.triggerId))throw new T("Tried to register duplicate trigger for slot.");if(!(E instanceof JR))throw new T("Incorrect TriggerType: Tried to register trigger of type "+E.triggerType+" in CloseRequestedTriggerAdapter");this.Q8.set(E.triggerId,new qB(H,E,G,P))}; fP.prototype.nR=function(H){this.Q8.delete(H.triggerId)};g.C(n_,g.J);n_.prototype.Ze=function(H,E,G,P){if(this.Q8.has(E.triggerId))throw new T("Tried to register duplicate trigger for slot.");if(!(E instanceof hB||E instanceof BQ))throw new T("Incorrect TriggerType: Tried to register trigger of type "+E.triggerType+" in ContentPlaybackLifecycleTriggerAdapter");this.Q8.set(E.triggerId,new qB(H,E,G,P))}; n_.prototype.nR=function(H){this.Q8.delete(H.triggerId)}; n_.prototype.r7=function(H){for(var E=[],G=E.push,P=G.apply,Q=[],e=g.R(this.Q8.values()),w=e.next();!w.done;w=e.next())w=w.value,w.trigger instanceof hB&&w.trigger.uo===H&&Q.push(w);P.call(G,E,g.EC(Q));G=E.push;P=G.apply;Q=[];e=g.R(this.Q8.values());for(w=e.next();!w.done;w=e.next())w=w.value,w.trigger instanceof BQ&&w.trigger.L!==H&&Q.push(w);P.call(G,E,g.EC(Q));E.length&&xY(this.L(),E)}; n_.prototype.LL=function(H){for(var E=[],G=E.push,P=G.apply,Q=[],e=g.R(this.Q8.values()),w=e.next();!w.done;w=e.next()){w=w.value;var t=w.trigger;t instanceof BQ&&t.L===H&&Q.push(w)}P.call(G,E,g.EC(Q));E.length&&xY(this.L(),E)};g.C(aX,g.J);g.M=aX.prototype;g.M.Ze=function(H,E,G,P){if(this.Q8.has(E.triggerId))throw new T("Tried to register duplicate trigger for slot.");var Q="adtriggercuerange:"+E.triggerId;if(E instanceof Rq)aEn(this,H,E,G,P,Q,E.L.start,E.L.end,E.uo,E.visible);else if(E instanceof kr)aEn(this,H,E,G,P,Q,0x7ffffffffffff,0x8000000000000,E.uo,E.visible);else throw new T("Incorrect TriggerType: Tried to register trigger of type "+E.triggerType+" in CueRangeTriggerAdapter");}; g.M.nR=function(H){var E=this.Q8.get(H.triggerId);E&&this.Dj.get().removeCueRange(E.cueRangeId);this.Q8.delete(H.triggerId)}; g.M.onCueRangeEnter=function(H){var E=CtM(this,H);if(E&&(E=this.Q8.get(E)))if(g.F(RK(this.d5.get()),32))this.L.add(E.cueRangeId);else{var G=E==null?void 0:E.T_.trigger;if(G instanceof Rq||G instanceof kr){if(Rv(this.context.Da.get())){var P=E.T_.slot,Q=E.T_.layout,e={};this.context.fM.LP("cre",(e.ca=E.T_.category,e.tt=G.triggerType,e.st=P.slotType,e.lt=Q==null?void 0:Q.layoutType,e.cid=H,e))}xY(this.W(),[E.T_])}}}; g.M.onCueRangeExit=function(H){(H=CtM(this,H))&&(H=this.Q8.get(H))&&this.L.delete(H.cueRangeId)}; g.M.IP=function(H){if(xs(H,16)<0){H=g.R(this.L);for(var E=H.next();!E.done;E=H.next())this.onCueRangeEnter(E.value,!0);this.L.clear()}}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.nP=function(){}; g.M.u4=function(){}; g.M.UQ=function(){}; g.M.Uu=function(){}; g.M.onFullscreenToggled=function(){}; g.M.gG=function(){}; g.M.AR=function(){}; g.M.NI=function(){}; g.M.onVolumeChange=function(){}; g.M.oJ=function(){}; g.M.Bt=function(){};g.C(La,g.J);g.M=La.prototype; g.M.Ze=function(H,E,G,P){if(this.W.has(E.triggerId)||this.G.has(E.triggerId))throw new T("Tried to re-register the trigger.");H=new qB(H,E,G,P);if(H.trigger instanceof ra)this.W.set(H.trigger.triggerId,H);else if(H.trigger instanceof cj)this.G.set(H.trigger.triggerId,H);else throw new T("Incorrect TriggerType: Tried to register trigger of type "+H.trigger.triggerType+" in LiveStreamBreakTransitionTriggerAdapter");this.W.has(H.trigger.triggerId)&&H.slot.slotId===this.L&&xY(this.D(),[H])}; g.M.nR=function(H){this.W.delete(H.triggerId);this.G.delete(H.triggerId)}; g.M.SJ=function(H){H=H.slotId;if(this.L!==H){var E=[];this.L!=null&&E.push.apply(E,g.EC(ARq(this.G,this.L)));H!=null&&E.push.apply(E,g.EC(ARq(this.W,H)));this.L=H;E.length&&xY(this.D(),E)}}; g.M.kK=function(){}; g.M.KI=function(){};g.C(R0,g.J);g.M=R0.prototype;g.M.Ze=function(H,E,G,P){if(this.Q8.has(E.triggerId))throw new T("Tried to register duplicate trigger for slot.");if(!(E instanceof be))throw new T("Incorrect TriggerType: Tried to register trigger of type "+E.triggerType+" in OnLayoutSelfRequestedTriggerAdapter");this.Q8.set(E.triggerId,new qB(H,E,G,P))}; g.M.nR=function(H){this.Q8.delete(H.triggerId)}; g.M.nP=function(){}; g.M.u4=function(){}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){};g.C(Os,g.J);g.M=Os.prototype;g.M.UQ=function(H,E){for(var G=[],P=g.R(this.Q8.values()),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var e=Q.trigger;e.opportunityType===H&&(e.associatedSlotId&&e.associatedSlotId!==E||G.push(Q))}G.length&&xY(this.L(),G)}; g.M.Ze=function(H,E,G,P){if(this.Q8.has(E.triggerId))throw new T("Tried to register duplicate trigger for slot.");if(!(E instanceof Alt))throw new T("Incorrect TriggerType: Tried to register trigger of type "+E.triggerType+" in OpportunityEventTriggerAdapter");this.Q8.set(E.triggerId,new qB(H,E,G,P))}; g.M.nR=function(H){this.Q8.delete(H.triggerId)}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.nP=function(){}; g.M.u4=function(){};g.C(lZ,g.J);g.M=lZ.prototype;g.M.Ze=function(H,E,G,P){H=new qB(H,E,G,P);if(E instanceof i3||E instanceof b2||E instanceof oj||E instanceof PW||E instanceof XIt){if(this.Q8.has(E.triggerId))throw new T("Tried to register duplicate trigger for slot.");this.Q8.set(E.triggerId,H)}else throw new T("Incorrect TriggerType: Tried to register trigger of type "+E.triggerType+" in PrefetchTriggerAdapter");}; g.M.nR=function(H){this.Q8.delete(H.triggerId)}; g.M.OQ=function(H){var E=H.slotFulfillmentTriggers.find(function(G){return G instanceof i3}); E&&(i2(this,"TRIGGER_TYPE_NEW_SLOT_SCHEDULED_WITH_BREAK_DURATION",E.breakDurationMs,new Set([H.slotId]),!0),BL(this.SR.get(),"ads_css","sid."+H.slotId+";bd."+E.breakDurationMs))}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.nP=function(){}; g.M.u4=function(){}; g.M.UQ=function(){}; g.M.XW=function(H){var E=this;if(!this.L)return BL(this.SR.get(),"ads_nfi","a.pta"),!1;this.W&&this.W.stop();this.T&&g.J3(this.T);var G=hJw(this,H);if(!G){var P=c8v(this),Q=this.B!==void 0&&Date.now()<=this.B+1E4;BL(this.SR.get(),"ads_ncfs","cid."+H.identifier+";cd."+H.Po.toFixed(3)+";ccs."+Q+";cfa."+this.D+";bdc."+P.length+";"+P.slice(0,6).map(function(e){return";bd."+e}).join("")); return Q?(ItT(this.dG,this.L,H),!0):!1}(P=Zi(G.slot.clientMetadata,"metadata_type_triggering_cue_point"))?P.current=H:xQ("Expected triggering cue point ref to be available",G.slot);(new g.Wt(function(){var e=G.trigger,w=G.slot;i2(E,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_MATCHED",e.breakDurationMs,new Set,!0);i2(E,"TRIGGER_TYPE_LIVE_STREAM_BREAK_SCHEDULED_DURATION_NOT_MATCHED",e.breakDurationMs,new Set,!1);for(var t=0,k=g.R(E.Q8.values()),W=k.next();!W.done;W=k.next()){W=W.value;var I= W.trigger;W.slot.slotId===w.slotId&&(E.Q8.delete(I.triggerId),t++)}BL(E.SR.get(),"ads_csf","sid."+w.slotId+";bd."+e.breakDurationMs+";dt."+t)},10)).start(); return!0}; g.M.Ot=function(){}; g.M.r7=function(H){var E=this;this.D=!1;this.B=Date.now();if(this.L&&this.L.contentCpn!==H)xQ("Fetch instructions carried over from previous content video",void 0,void 0,{contentCpn:H,fetchInstructionsCpn:this.L.contentCpn}),Ii(this);else{this.G=new g.Wt(function(){if(E.D)delete E.G;else{var P=E.d5.get().getGetAdBreakContext(),Q;if(Number(P==null?void 0:(Q=P.livePlaybackPosition)==null?void 0:Q.utcTimeMillis)>0)delete E.G,paq(E);else{var e;(e=E.G)==null||e.start()}}},200); var G;(G=this.G)==null||G.start()}}; g.M.LL=function(H){this.L&&this.L.contentCpn!==H&&xQ("Expected content video of the current fetch instructions to end",void 0,void 0,{contentCpn:H,fetchInstructionsCpn:this.L.contentCpn},!0);Ii(this)}; g.M.cU=function(H){var E=this;if(this.L)xQ("Unexpected multiple fetch instructions for the current content");else{this.L=H;H=Kc1(H);this.W=new g.Wt(function(){paq(E)},H?H:6E5); this.W.start();this.T=new g.Wt(function(){E.L&&(E.W&&(E.W.stop(),E.W.start()),fMj(E,"TRIGGER_TYPE_CUE_BREAK_IDENTIFIED"))},yYj(this.L)); H=this.d5.get().getCurrentTimeSec(1,!1);for(var G=g.R(this.Yq.get().kh),P=G.next();!P.done;P=G.next())P=P.value,BL(this.SR.get(),"nocache","ct."+Date.now()+";cmt."+H+";d."+P.Po.toFixed(3)+";tw."+(P.startSecs-H)+";cid."+P.identifier+";")}}; g.M.G$=function(){g.J.prototype.G$.call(this);Ii(this)};g.C(no,g.J);g.M=no.prototype;g.M.Ze=function(H,E,G,P){if(this.Q8.has(E.triggerId))throw new T("Tried to register duplicate trigger for slot.");if(!(E instanceof YA))throw new T("Incorrect TriggerType: Tried to register trigger of type "+E.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");this.Q8.set(E.triggerId,new qB(H,E,G,P));H=this.L.has(E.triggeringLayoutId)?this.L.get(E.triggeringLayoutId):new Set;H.add(E);this.L.set(E.triggeringLayoutId,H)}; g.M.nR=function(H){this.Q8.delete(H.triggerId);if(!(H instanceof YA))throw new T("Incorrect TriggerType: Tried to unregister trigger of type "+H.triggerType+" in TimeRelativeToLayoutEnterTriggerAdapter");var E=this.W.get(H.triggerId);E&&(E.dispose(),this.W.delete(H.triggerId));if(E=this.L.get(H.triggeringLayoutId))E.delete(H),E.size===0&&this.L.delete(H.triggeringLayoutId)}; g.M.OQ=function(){}; g.M.D5=function(){}; g.M.WL=function(){}; g.M.EM=function(){}; g.M.QS=function(){}; g.M.i8=function(){}; g.M.GW=function(){}; g.M.yM=function(){}; g.M.Rw=function(){}; g.M.UQ=function(){}; g.M.nP=function(H,E){var G=this;if(this.L.has(E.layoutId)){H=this.L.get(E.layoutId);H=g.R(H);var P=H.next();for(E={};!P.done;E={DW:void 0},P=H.next())E.DW=P.value,P=new g.Wt(function(Q){return function(){var e=G.Q8.get(Q.DW.triggerId);xY(G.G(),[e])}}(E),E.DW.durationMs),P.start(),this.W.set(E.DW.triggerId,P)}}; g.M.u4=function(){};g.C(jO,g.J);jO.prototype.Ze=function(H,E,G,P){if(this.Q8.has(E.triggerId))throw new T("Tried to register duplicate trigger for slot.");if(!(E instanceof Vf))throw new T("Incorrect TriggerType: Tried to register trigger of type "+E.triggerType+" in VideoTransitionTriggerAdapter.");this.Q8.set(E.triggerId,new qB(H,E,G,P))}; jO.prototype.nR=function(H){this.Q8.delete(H.triggerId)};$v.prototype.Vn=function(H){return H.kind==="AD_PLACEMENT_KIND_START"};g.C(j6,g.J);g.M=j6.prototype;g.M.logEvent=function(H){this.B5(H)}; g.M.Xu=function(H,E,G){this.B5(H,void 0,void 0,void 0,E,void 0,void 0,void 0,E.adSlotLoggingData,void 0,void 0,G)}; g.M.yp=function(H,E,G,P){this.B5(H,void 0,void 0,void 0,E,G?G:void 0,void 0,void 0,E.adSlotLoggingData,G?G.adLayoutLoggingData:void 0,void 0,P);E=hu().resolve(new HG(DF))==null?void 0:nE();H=E==null?void 0:E.adsSeenHotConfig;E=E==null?void 0:E.adsHotConfig;(H==null?0:H.logOnAdsSeen)&&(E==null?0:E.webEnablePremiumAdsSeenLogging)&&VgT(this,G?G:void 0,P)}; g.M.Hu=function(H,E,G,P){WI(this.Da.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+H,"trigger:",G,"slot:",E,"layout:",P);H4w(this.L.get())&&this.B5(H,void 0,void 0,void 0,E,P?P:void 0,void 0,G,E.adSlotLoggingData,P?P.adLayoutLoggingData:void 0)}; g.M.YC=function(H,E,G,P,Q){this.B5(H,E,G,P,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Q)}; g.M.zy=function(H,E,G,P){this.B5("ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,G,P,void 0,void 0,G.adSlotLoggingData,P?P.adLayoutLoggingData:void 0,{errorType:H,errorMessage:E})}; g.M.B5=function(H,E,G,P,Q,e,w,t,k,W,I,A){var m=this;A=A===void 0?0:A;WI(this.Da.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+H,"slot:",Q,"layout:",e,"ping:",w,"Opportunity:",{opportunityType:E,associatedSlotId:G,Yx5:P,Zvo:t,adSlotLoggingData:k,adLayoutLoggingData:W});try{var u=function(){if(!m.Da.get().S.K().U("html5_disable_client_tmp_logs")&&H!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){H||xQ("Empty PACF event type",Q,e);var v=H4w(m.L.get()),n={eventType:H,eventOrder:++m.eventCount},O= {};Q&&(O.slotData=Mr(v,Q));e&&(O.layoutData=xSu(v,e));w&&(O.pingData={pingDispatchStatus:"ADS_CLIENT_PING_DISPATCH_STATUS_SUCCESS",serializedAdPingMetadata:w.L.serializedAdPingMetadata,pingIndex:w.index});t&&(O.triggerData=r4(t.trigger,t.category));E&&(O.opportunityData=iFu(v,E,G,P));v={organicPlaybackContext:{contentCpn:xn(m.C_.get(),1).clientPlaybackNonce}};v.organicPlaybackContext.isLivePlayback=xn(m.C_.get(),1).T6;var q;v.organicPlaybackContext.isMdxPlayback=(q=xn(m.C_.get(),1))==null?void 0: q.isMdxPlayback;var N;if((N=xn(m.C_.get(),1))==null?0:N.daiEnabled)v.organicPlaybackContext.isDaiContent=!0;var r;if(q=(r=xn(m.C_.get(),2))==null?void 0:r.clientPlaybackNonce)v.adVideoPlaybackContext={adVideoCpn:q};v&&(O.externalContext=v);n.adClientData=O;k&&(n.serializedSlotAdServingData=k.serializedSlotAdServingDataEntry);W&&(n.serializedAdServingData=W.serializedAdServingDataEntry);I&&(n.errorInfo=I);g.HY("adsClientStateChange",{adsClientEvent:n})}}; A&&A>0?g.GQ(g.PY(),function(){return u()},A):u()}catch(v){WI(this.Da.get(),"html5_log_pacf_logging_errors")&&g.GQ(g.PY(),function(){xQ(v instanceof Error?v:String(v),Q,e,{pacf_message:"exception during pacf logging"})})}};var vmJ=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.C(c5,j6);g.M=c5.prototype; g.M.Xu=function(H,E,G){j6.prototype.Xu.call(this,H,E,G);Rv(this.Da.get())&&(G={},this.context.fM.LP("pacf",(G.et=H,G.st=E.slotType,G.si=E.slotId,G)))}; g.M.yp=function(H,E,G,P){var Q=vmJ.has(H);j6.prototype.yp.call(this,H,E,G,P);Rv(this.Da.get(),Q)&&(P={},this.context.fM.LP("pacf",(P.et=H,P.st=E.slotType,P.si=E.slotId,P.lt=G==null?void 0:G.layoutType,P.li=G==null?void 0:G.layoutId,P.p_ac=G==null?void 0:G.layoutId,P)))}; g.M.YC=function(H,E,G,P,Q){j6.prototype.YC.call(this,H,E,G,P,Q);Rv(this.Da.get())&&(G={},this.context.fM.LP("pacf",(G.et=H,G.ot=E,G.ss=P==null?void 0:P.length,G)))}; g.M.Hu=function(H,E,G,P){j6.prototype.Hu.call(this,H,E,G,P);if(Rv(this.Da.get())){var Q={};this.context.fM.LP("pacf",(Q.et=H,Q.tt=G.trigger.triggerType,Q.tc=G.category,Q.st=E.slotType,Q.si=E.slotId,Q.lt=P==null?void 0:P.layoutType,Q.li=P==null?void 0:P.layoutId,Q.p_ac=P==null?void 0:P.layoutId,Q))}}; g.M.zy=function(H,E,G,P){j6.prototype.zy.call(this,H,E,G,P);if(Rv(this.Da.get(),!0)){var Q={};this.context.fM.LP("perror",(Q.ert=H,Q.erm=E,Q.st=G.slotType,Q.si=G.slotId,Q.lt=P==null?void 0:P.layoutType,Q.li=P==null?void 0:P.layoutId,Q.p_ac=P==null?void 0:P.layoutId,Q))}}; g.M.B5=function(H,E,G,P,Q,e,w,t,k,W,I){var A=this.Da.get();g.vV(A.S.K())?(A=this.Da.get(),A=g.hE(A.S.K().experiments,"H5_async_logging_delay_ms")):A=void 0;j6.prototype.B5.call(this,H,E,G,P,Q,e,w,t,k,W,I,A)};t8.prototype.clear=function(){this.L.clear()};Xl.prototype.state=function(){return this.L==="fulfilled"?{state:"fulfilled",value:this.result}:this.L==="rejected"?{state:"rejected",reason:this.error}:{state:"pending"}}; Xl.prototype.D=function(H){jc(H)||wsd(H)?bk(cV(H),this.D.bind(this),this.reject.bind(this)):(this.L="fulfilled",this.result=H,Xwu(this))}; Xl.prototype.reject=function(H){this.L="rejected";this.error=H;Xwu(this)}; var wsd=FV(function(H){return rXs(H)?H instanceof Xl:!1});var OT=window.s4_||"en";CP.prototype.Gs=function(H){this.client=H}; CP.prototype.L=function(){this.clear();this.csn=g.ri()}; CP.prototype.clear=function(){this.G.clear();this.W.clear();this.D.clear();this.csn=null};F0.prototype.Gs=function(H){g.NL(fl().Gs).bind(fl())(H)}; F0.prototype.clear=function(){g.NL(fl().clear).bind(fl())()};g.M=NU.prototype;g.M.Gs=function(H){this.client=H}; g.M.ji=function(H,E){var G=this;E=E===void 0?{}:E;g.NL(function(){var P,Q,e,w=((P=g.X(H==null?void 0:H.commandMetadata,g.Mk))==null?void 0:P.rootVe)||((Q=g.X(H==null?void 0:H.commandMetadata,LvW))==null?void 0:(e=Q.screenVisualElement)==null?void 0:e.uiType);if(w){P=g.X(H==null?void 0:H.commandMetadata,sDJ);if(P==null?0:P.parentTrackingParams){var t=g.Bn(P.parentTrackingParams);if(P.parentCsn)var k=P.parentCsn}else E.clickedVisualElement?t=E.clickedVisualElement:H.clickTrackingParams&&(t=g.Bn(H.clickTrackingParams)); a:{P=g.X(H,g.Xt);Q=g.X(H,EMW);if(P){if(Q=e$U(P,"VIDEO")){P={token:Q,videoId:P.videoId};break a}}else if(Q&&(P=e$U(Q,"PLAYLIST"))){P={token:P,playlistId:Q.playlistId};break a}P=void 0}E=Object.assign({},{cttAuthInfo:P,parentCsn:k},E);if(g.Xj("expectation_logging")){var W;E.loggingExpectations=((W=g.X(H==null?void 0:H.commandMetadata,LvW))==null?void 0:W.loggingExpectations)||void 0}kb(G,w,t,E)}else g.p5(new g.LN("Error: Trying to create a new screen without a rootVeType",H))})()}; g.M.clickCommand=function(H,E,G){H=H.clickTrackingParams;G=G===void 0?0:G;H?(G=g.ri(G===void 0?0:G))?(cG(this.client,G,g.Bn(H),E),E=!0):E=!1:E=!1;return E}; g.M.stateChanged=function(H,E,G){this.visualElementStateChanged(g.Bn(H),E,G===void 0?0:G)}; g.M.visualElementStateChanged=function(H,E,G){G=G===void 0?0:G;G===0&&this.W.has(G)?this.N.push([H,E]):tR7(this,H,E,G)};wj.prototype.fetch=function(H,E,G){var P=this,Q=sVt(H,E,G);return new Promise(function(e,w){function t(){if(G==null?0:G.H5)try{var W=P.handleResponse(H,Q.status,Q.response,G);e(W)}catch(I){w(I)}else e(P.handleResponse(H,Q.status,Q.response,G))} Q.onerror=t;Q.onload=t;var k;Q.send((k=E.body)!=null?k:null)})}; wj.prototype.handleResponse=function(H,E,G,P){G=G.replace(")]}'","");try{var Q=JSON.parse(G)}catch(e){g.p5(new g.LN("JSON parsing failed after XHR fetch",H,E,G));if((P==null?0:P.H5)&&G)throw new g.kW(1,"JSON parsing failed after XHR fetch");Q={}}E!==200&&(g.p5(new g.LN("XHR API fetch failed",H,E,G)),Q=Object.assign({},Q,{errorMetadata:{status:E}}));return Q};vJ.getInstance=function(){var H=g.Un("ytglobal.storage_");H||(H=new vJ,g.kM("ytglobal.storage_",H));return H}; vJ.prototype.estimate=function(){var H,E,G;return g.L(function(P){H=navigator;return((E=H.storage)==null?0:E.estimate)?P.return(H.storage.estimate()):((G=H.webkitTemporaryStorage)==null?0:G.queryUsageAndQuota)?P.return(VQt()):P.return()})}; g.kM("ytglobal.storageClass_",vJ);kZ.prototype.IF=function(H){this.handleError(H)}; kZ.prototype.logEvent=function(H,E){switch(H){case "IDB_DATA_CORRUPTED":g.Xj("idb_data_corrupted_killswitch")||this.L("idbDataCorrupted",E);break;case "IDB_UNEXPECTEDLY_CLOSED":this.L("idbUnexpectedlyClosed",E);break;case "IS_SUPPORTED_COMPLETED":g.Xj("idb_is_supported_completed_killswitch")||this.L("idbIsSupportedCompleted",E);break;case "QUOTA_EXCEEDED":eT1(this,E);break;case "TRANSACTION_ENDED":this.G&&Math.random()<=.1&&this.L("idbTransactionEnded",E);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":H= Object.assign({},E,{hasWindowUnloaded:this.W}),this.L("idbTransactionAborted",H)}};var xI={},rFw=g.bR("yt-player-local-media",{ME:(xI.index={hD:2},xI.media={hD:2},xI.captions={hD:5},xI),shared:!1,upgrade:function(H,E){E(2)&&(g.zh(H,"index"),g.zh(H,"media"));E(5)&&g.zh(H,"captions");E(6)&&(HB(H,"metadata"),HB(H,"playerdata"))}, version:5});var MSW={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},z5;a:{var T5=g.u0();T5=T5.toLowerCase();if(g.f3(T5,"android")){var dO3=T5.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);if(dO3){var DOo=parseFloat(dO3[1]);if(DOo<100){z5=DOo;break a}}var nmR=T5.match("("+Object.keys(MSW).join("|")+")");z5=nmR?MSW[nmR[0]]:0}else z5=void 0}var pU=z5,fU=pU>=0;var O8q=$Z(function(){var H,E;return(E=(H=window).matchMedia)==null?void 0:E.call(H,"(prefers-reduced-motion: reduce)").matches});var na;g.Q4=new $u;na=0;var Fa=cP7()?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!g.Uo?!0:!1;var dR={gp:function(H,E){var G=H[0];H[0]=H[E%H[h[4]]];H[E%H[h[4]]]=G}, Ox:function(H,E){H[h[9]](0,E)}, o5:function(H){H[h[0]]()}};var a6n={Yv_:"adunit",Ddx:"detailpage",SHZ:"editpage",IqN:"embedded",Fqw:"leanback",u2F:"previewpage",be5:"profilepage",Tf:"unplugged",DOZ:"playlistoverview",SVa:"sponsorshipsoffer",u7_:"shortspage",gi_:"handlesclaiming",Ts_:"immersivelivepage",g7J:"creatormusic",thw:"immersivelivepreviewpage",oj7:"admintoolyurt",HB7:"shortsaudiopivot",RjR:"consumption",TUR:"background_audio_playback"};var bqu=2592E3;var Vy,aRd,ay;Vy={};g.JN=(Vy.STOP_EVENT_PROPAGATION="html5-stop-propagation",Vy.IV_DRAWER_ENABLED="ytp-iv-drawer-enabled",Vy.IV_DRAWER_OPEN="ytp-iv-drawer-open",Vy.MAIN_VIDEO="html5-main-video",Vy.VIDEO_CONTAINER="html5-video-container",Vy.VIDEO_CONTAINER_TRANSITIONING="html5-video-container-transitioning",Vy.HOUSE_BRAND="house-brand",Vy);aRd={};ay=(aRd.RIGHT_CONTROLS_LEFT="ytp-right-controls-left",aRd.RIGHT_CONTROLS_RIGHT="ytp-right-controls-right",aRd);var JjQ={allowed:"AUTOPLAY_BROWSER_POLICY_ALLOWED","allowed-muted":"AUTOPLAY_BROWSER_POLICY_ALLOWED_MUTED",disallowed:"AUTOPLAY_BROWSER_POLICY_DISALLOWED"};var Pdt={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},Qxq={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"},q4l={"mdx-pair":1,"mdx-dial":2,"mdx-cast":3,"mdx-voice":4,"mdx-inappdial":5};var E87={DISABLED:1,ENABLED:2,PAUSED:3,1:"DISABLED",2:"ENABLED",3:"PAUSED"};g.uo[h[27]][h[28]]=function(H,E){this[h[6]][H]!==E&&(this[h[6]][H]=E,this[h[26]]=h[2])}; g.uo[h[27]][h[41]]=function(H){$n(31,this);return this[h[6]][H]||null}; g.uo[h[27]][h[93]]=function(){this[h[26]]||(this[h[26]]=IN(22,this));return this[h[26]]}; g.uo[h[27]][h[13]]=function(){var H=new g.uo(this[h[32]],this[h[66]]);H[h[16]]=this[h[16]];H[h[8]]=this[h[8]];H[h[10]]=this[h[10]];H[h[6]]=g.sj(this[h[6]]);H[h[26]]=this[h[26]];return H}; var Xfv=[h3M];g.oK.prototype.getLanguageInfo=function(){return this.CP}; g.oK.prototype.getXtags=function(){if(!this.xtags){var H=this.id.split(";");H.length>1&&(this.xtags=H[1])}return this.xtags}; g.oK.prototype.toString=function(){return this.CP.name}; g.oK.prototype.getLanguageInfo=g.oK.prototype.getLanguageInfo;Jv.prototype.equals=function(H){return this.W===H.W&&this.L===H.L&&this.G===H.G&&this.reason===H.reason&&(!wN||this.Xo===H.Xo)}; Jv.prototype.isLocked=function(){return this.G&&!!this.W&&this.W===this.L}; Jv.prototype.compose=function(H){if(H.G&&Rb(H))return q3;if(H.G||Rb(this))return H;if(this.G||Rb(H))return this;var E=this.W&&H.W?Math.max(this.W,H.W):this.W||H.W,G=this.L&&H.L?Math.min(this.L,H.L):this.L||H.L;E=Math.min(E,G);var P=0;wN&&(P=this.Xo!==0&&H.Xo!==0?Math.min(this.Xo,H.Xo):this.Xo===0?H.Xo:this.Xo);return wN&&E===this.W&&G===this.L&&P===this.Xo||!wN&&E===this.W&&G===this.L?this:wN?new Jv(E,G,!1,G===this.L&&P===this.Xo?this.reason:H.reason,P):new Jv(E,G,!1,G===this.L?this.reason:H.reason)}; Jv.prototype.D=function(H){return!H.video||wN&&this.Xo!==0&&this.Xo=0}; g.M.bH=function(){var H=this.segments[this.segments.length-1];return H?H.endTime:NaN}; g.M.MC=function(){return this.segments[0].startTime}; g.M.yb=function(){return this.segments.length}; g.M.Nd=function(){return 0}; g.M.Is=function(H){return(H=this.Uf(H))?H.U7:-1}; g.M.x5=function(H){return(H=this.R2(H))?H.sourceURL:""}; g.M.getStartTime=function(H){return(H=this.R2(H))?H.startTime:0}; g.M.aL=function(H){return this.getStartTime(H)+this.getDuration(H)}; g.M.K9=oF(1);g.M.isLoaded=function(){return this.segments.length>0}; g.M.R2=function(H){if(this.L&&this.L.U7===H)return this.L;H=g.eS(this.segments,new Nz(H,0,0,0,""),function(E,G){return E.U7-G.U7}); return this.L=H>=0?this.segments[H]:null}; g.M.Uf=function(H){if(this.L&&this.L.startTime<=H&&H=0?this.segments[H]:this.segments[Math.max(0,-H-2)]}; g.M.append=function(H){if(H.length)if(H=g.dm(H),this.segments.length){var E=this.segments.length?g.Q3(this.segments).endTime:0,G=H[0].U7-this.vO();G>1&&Awu(this.segments);for(G=G>0?0:-G+1;GH.U7&&this.index.gH()<=H.U7+1}; g.M.update=function(H,E,G){this.index.append(H);hVs(this.index,G);H=this.index;H.W=E;H.G="update"}; g.M.Dr=function(){return this.Tw()?!0:B5.prototype.Dr.call(this)}; g.M.fZ=function(H,E){var G=this.index.x5(H),P=this.index.getStartTime(H),Q=this.index.getDuration(H),e;E?Q=e=0:e=this.info.Xo>0?this.info.Xo*Q:1E3;return new f6([new jf(3,this,void 0,"liveCreateRequestInfoForSegment",H,P,Q,0,e,!E)],G)}; g.M.Ls=function(){return this.Tw()?0:this.initRange.length}; g.M.U5=function(){return!1};EJ.prototype.update=function(H){var E=void 0;this.W&&(E=this.W);var G=new EJ,P=Array.from(H.getElementsByTagName("S"));if(P.length){var Q=+k9(H,"timescale")||1,e=(+P[0].getAttribute("t")||0)/Q,w=+k9(H,"startNumber")||0;G.D=e;var t=E?E.startSecs+E.Po:0,k=Date.parse(NMu(k9(H,"yt:segmentIngestTime")))/1E3;G.T=H.parentElement.tagName==="SegmentTemplate";G.T&&(G.B=k9(H,"media"));H=E?w-E.U7:1;G.C=H>0?0:-H+1;H=g.R(P);for(P=H.next();!P.done;P=H.next()){P=P.value;for(var W=+P.getAttribute("d")/Q,I=(+P.getAttribute("yt:sid")|| 0)/Q,A=+P.getAttribute("r")||0,m=0;m<=A;m++)if(E&&w<=E.U7)w++;else{var u=new Qfj(w,t,W,k+I,e);G.L.push(u);var v=P;var n=Q,O=u.startSecs;u=v.getAttribute("yt:cuepointTimeOffset");var q=v.getAttribute("yt:cuepointDuration");if(u&&q){u=Number(u);O=-u/n+O;n=Number(q)/n;q=v.getAttribute("yt:cuepointContext")||null;var N=v.getAttribute("yt:cuepointIdentifier")||"";v=v.getAttribute("yt:cuepointEvent")||"";v=new Iv(O,n,q,N,KJK[v]||"unknown",u)}else v=null;v&&G.G.push(v);w++;t+=W;e+=W;k+=W+I}}G.L.length&& (G.W=g.Q3(G.L))}this.C=G.C;this.W=G.W||this.W;g.x1(this.L,G.L);g.x1(this.G,G.G);this.T=G.T;this.B=G.B;this.D===-1&&(this.D=G.getStreamTimeOffset())}; EJ.prototype.getStreamTimeOffset=function(){return this.D===-1?0:this.D};g.C(IE,g.MC);g.M=IE.prototype;g.M.fQ=function(){return this.lk}; g.M.Pn=function(H,E){H=Hq(this,H);return H>=0&&(E||!this.segments[H].pending)}; g.M.gH=function(){return this.xi?this.segments.length?this.Uf(this.MC()).U7:-1:g.MC.prototype.gH.call(this)}; g.M.MC=function(){if(this.tT)return 0;if(!this.xi)return g.MC.prototype.MC.call(this);if(!this.segments.length)return 0;var H=Math.max(g.Q3(this.segments).endTime-this.G9,0);return this.iG>0&&this.Uf(H).U70)return this.XG/1E3;if(!this.segments.length)return g.MC.prototype.bH.call(this);var H=this.vO();if(!this.xi||H<=this.segments[this.segments.length-1].U7)H=this.segments[this.segments.length-1];else{var E=this.segments[this.segments.length-1];H=new Nz(H,Math.max(0,E.startTime-(E.U7-H)*this.lk),this.lk,0,"sq/"+H,void 0,void 0,!0)}return this.tT?Math.min(this.G9,H.endTime):H.endTime}; g.M.yb=function(){return this.xi?this.segments.length?this.vO()-this.gH()+1:0:g.MC.prototype.yb.call(this)}; g.M.vO=function(){var H=Math.min(this.LM,Math.max(g.MC.prototype.vO.call(this),this.jl)),E=this.G9*1E3;E=this.XG>0&&this.XG0&&this.jl>0&&!E&&(E=this.Uf(this.G9))&&(H=Math.min(E.U7-1,H));return H}; g.M.IY=function(){return this.segments.length?this.segments[this.segments.length-1]:null}; g.M.B_=function(H){var E=Hq(this,H.U7);if(E>=0)this.segments[E]=H;else if(this.segments.splice(-(E+1),0,H),this.r4&&H.U7%(300/this.lk)===0){var G=this.segments[0].U7,P=Math.floor(this.r4/this.lk);H=H.U7-P;E=-(E+1)-P;E>0&&H>G&&(this.segments=this.segments.slice(E))}}; g.M.t0=function(){return this.jl}; g.M.JL=function(H){return ha?!this.W&&H>=0&&this.vO()<=H:g.MC.prototype.JL.call(this,H)}; g.M.Uf=function(H){if(!this.xi)return g.MC.prototype.Uf.call(this,H);if(!this.segments.length)return null;var E=this.segments[this.segments.length-1];if(H=E.endTime)E=E.U7+Math.floor((H-E.endTime)/this.lk+1);else{E=UN(this.segments,function(P){return H=P.endTime?1:0}); if(E>=0)return this.segments[E];var G=-(E+1);E=this.segments[G-1];G=this.segments[G];E=Math.floor((H-E.endTime)/((G.startTime-E.endTime)/(G.U7-E.U7-1))+1)+E.U7}return this.R2(E)}; g.M.R2=function(H){if(!this.xi)return g.MC.prototype.R2.call(this,H);if(!this.segments.length)return null;var E=Hq(this,H);if(E>=0)return this.segments[E];var G=-(E+1);E=this.lk;if(G===0)var P=Math.max(0,this.segments[0].startTime-(this.segments[0].U7-H)*E);else G===this.segments.length?(P=this.segments[this.segments.length-1],P=P.endTime+(H-P.U7-1)*E):(P=this.segments[G-1],E=this.segments[G],E=(E.startTime-P.endTime)/(E.U7-P.U7-1),P=P.endTime+(H-P.U7-1)*E);return new Nz(H,P,E,0,"sq/"+H,void 0,void 0, !0)}; var ha=!1;g.C(lz,dE);g.M=lz.prototype;g.M.lr=function(){return!0}; g.M.Dr=function(){return!0}; g.M.Zv=function(H){return this.KG()&&H.W&&!H.G||!H.uJ.index.JL(H.U7)}; g.M.oY=function(){}; g.M.e$=function(H,E){return typeof H!=="number"||isFinite(H)?dE.prototype.e$.call(this,H,E===void 0?!1:E):new f6([new jf(3,this,void 0,"mlLiveGetReqInfoStubForTime",-1,void 0,this.g7,void 0,this.g7*this.info.Xo)],"")}; g.M.fZ=function(H,E){var G=G===void 0?!1:G;if(this.index.Pn(H))return dE.prototype.fZ.call(this,H,E);var P=this.index.getStartTime(H),Q=Math.round(this.g7*this.info.Xo),e=this.g7;E&&(e=Q=0);return new f6([new jf(G?6:3,this,void 0,"mlLiveCreateReqInfoForSeg",H,P,e,void 0,Q,!E)],H>=0?"sq/"+H:"")};g.C(UQ,B5);g.M=UQ.prototype;g.M.qd=function(){return!1}; g.M.KG=function(){return!1}; g.M.lr=function(){return!1}; g.M.oY=function(){return new f6([new jf(1,this,void 0,"otfInit")],this.T)}; g.M.yq=function(){return null}; g.M.YG=function(H){this.Zv(H);return Ncq(this,kp(H),!1)}; g.M.e$=function(H,E){E=E===void 0?!1:E;H=this.index.Is(H);E&&(H=Math.min(this.index.vO(),H+1));return Ncq(this,H,!0)}; g.M.o9=function(H){H.info.type===1&&(this.L||(this.L=v_(H.W)),H.L&&H.L.uri==="http://youtube.com/streaming/otf/durations/112015"&&QUt(this,H.L))}; g.M.Zv=function(H){return H.W===0?!0:this.index.vO()>H.U7&&this.index.gH()<=H.U7+1}; g.M.Ls=function(){return 0}; g.M.U5=function(){return!1};var $M7=new Map,kWj=new Map,tot=new function(){var H=this;this.L=new Map;this.kV={LM7:function(){return H.L}}};g.M=g.YF.prototype;g.M.Pn=function(H){return H<=this.vO()}; g.M.Nd=function(H){return this.offsets[H]}; g.M.getStartTime=function(H){return this.startTicks[H]/this.L}; g.M.aL=function(H){return this.getStartTime(H)+this.getDuration(H)}; g.M.K9=oF(0);g.M.JT=function(){return NaN}; g.M.getDuration=function(H){H=this.rQ(H);return H>=0?H/this.L:-1}; g.M.rQ=function(H){return H+1=0}; g.M.bH=function(){return this.W?this.startTicks[this.count]/this.L:NaN}; g.M.MC=function(){return 0}; g.M.yb=function(){return this.count}; g.M.x5=function(){return""}; g.M.Is=function(H){H=g.eS(this.startTicks.subarray(0,this.count),H*this.L);return H>=0?H:Math.max(0,-H-2)}; g.M.isLoaded=function(){return this.vO()>=0}; g.M.n7=function(H,E){if(H>=this.vO())return 0;var G=0;for(E=this.getStartTime(H)+E;Hthis.getStartTime(H);H++)G=Math.max(G,SQq(this,H)/this.getDuration(H));return G}; g.M.resize=function(H){H+=2;var E=this.offsets;this.offsets=new Float64Array(H+1);var G=this.startTicks;this.startTicks=new Float64Array(H+1);for(H=0;H0&&H&&(G=G.range.end+1,H=Math.min(H,this.info.contentLength-G),H>0&&P.push(new jf(4,this,$p(G,H),"tbdRange",void 0,void 0,void 0,void 0,void 0,void 0,void 0,E)));return new f6(P)}; g.M.o9=function(H){if(H.info.type===1){if(this.L)return;this.L=v_(H.W)}else if(H.info.type===2){if(this.T||this.index.vO()>=0)return;if(g.MQ(this.info)){var E=this.index,G=g.h_(H);H=H.info.range.start;var P=g.DB(G,0,1936286840);G=Kkd(P);E.L=G.timescale;var Q=G.XF;E.offsets[0]=G.o$+H+P.size;E.startTicks[0]=Q;E.W=!0;H=G.Wq.length;for(P=0;P0&&H===e[0].ZP)for(H=0;H=E+G)break}Q.length||(H=new g.LN("b189619593",""+H,""+E,""+G),g.h3(H));return new f6(Q)}; g.M.Gi=function(H){for(var E=this.PS(H.info),G=H.info.range.start+H.info.L,P=[],Q=0;Q=this.index.Nd(G+1);)G++;return this.Yc(G,E,H.W).kp}; g.M.Zv=function(H){H.Uv();return this.Dr()?!0:H.range.end+1this.info.contentLength&&(E=new xi(E.start,this.info.contentLength-1)),new f6([new jf(4,H.uJ,E,"getNextRequestInfoByLength",void 0,void 0,void 0,void 0,void 0,void 0,void 0,H.clipId)]);H.type===4&&(H=this.PS(H),H=H[H.length-1]);var G=0,P=H.range.start+H.L+H.W;H.type===3&&(H.Uv(),G=H.U7,P===H.range.end+1&&(G+=1));return this.Yc(G,P,E)}; g.M.YG=function(){return null}; g.M.e$=function(H,E){E=E===void 0?!1:E;H=this.index.Is(H);E&&(H=Math.min(this.index.vO(),H+1));return this.Yc(H,this.index.Nd(H),0,void 0)}; g.M.qd=function(){return!0}; g.M.KG=function(){return!0}; g.M.lr=function(){return!1}; g.M.Ls=function(){return this.indexRange.length+this.initRange.length}; g.M.U5=function(){return this.indexRange&&this.initRange&&this.initRange.end+1===this.indexRange.start?!0:!1};var FN={},QCT=(FN.COLOR_PRIMARIES_BT709="bt709",FN.COLOR_PRIMARIES_BT2020="bt2020",FN.COLOR_PRIMARIES_UNKNOWN=null,FN.COLOR_PRIMARIES_UNSPECIFIED=null,FN),fY={},k0M=(fY.COLOR_TRANSFER_CHARACTERISTICS_BT709="bt709",fY.COLOR_TRANSFER_CHARACTERISTICS_BT2020_10="bt2020",fY.COLOR_TRANSFER_CHARACTERISTICS_SMPTEST2084="smpte2084",fY.COLOR_TRANSFER_CHARACTERISTICS_ARIB_STD_B67="arib-std-b67",fY.COLOR_TRANSFER_CHARACTERISTICS_UNKNOWN=null,fY.COLOR_TRANSFER_CHARACTERISTICS_UNSPECIFIED=null,fY);g.gm.prototype.getName=function(){return this.name}; g.gm.prototype.getId=function(){return this.id}; g.gm.prototype.getIsDefault=function(){return this.isDefault}; g.gm.prototype.toString=function(){return this.name}; g.gm.prototype.getName=g.gm.prototype.getName;g.gm.prototype.getId=g.gm.prototype.getId;g.gm.prototype.getIsDefault=g.gm.prototype.getIsDefault;var Abv=/action_display_post/;var mPQ,DW,nf;g.C(gj,g.z7);g.M=gj.prototype;g.M.isLoading=function(){return this.state===1}; g.M.LX=function(){return this.state===3}; g.M.Ir$=function(H){var E=H.getElementsByTagName("Representation");if(H.getElementsByTagName("SegmentList").length>0||H.getElementsByTagName("SegmentTemplate").length>0){this.T6=this.W=!0;this.B||(this.B=new caw);DZs(this.B,H);this.publish("refresh");for(H=0;H=0?I=$5(m):A=A+"?range="+m}k.call(t,new Nz(W.U7,W.startSecs,W.Po,W.L,A,I,W.W))}P=Q}G.update(P,this.isLive,this.eR)}mtU(this.B);return!0}this.duration=cct(k9(H,"mediaPresentationDuration"));a:{for(H= 0;H0))return this.VG()-H}}H=this.L;for(var E in H){var G=H[E].index;if(G.isLoaded()&&!wU(H[E].info.mimeType))return G.MC()}return 0}; g.M.getStreamTimeOffset=function(){return this.N}; g.M.JT=function(H){for(var E in this.L){var G=this.L[E].index;if(G.isLoaded()){var P=G.Is(H),Q=G.JT(P);if(Q)return Q+H-G.getStartTime(P)}}return NaN}; var bX=null,jWd,CK=!((jWd=navigator.mediaCapabilities)==null||!jWd.decodingInfo),sKd={commentary:1,alternate:2,dub:3,main:4};var zW=new Set,Xh=new Map;cO.prototype.clone=function(H){return new cO(this.flavor,H,this.W,this.experiments)}; cO.prototype.NL=function(){return{flavor:this.flavor,keySystem:this.keySystem}}; cO.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 cEu={},oRw=(cEu.playready=["com.youtube.playready","com.microsoft.playready"],cEu.widevine=["com.youtube.widevine.l3","com.widevine.alpha"],cEu),pY={},xkw=(pY.widevine="DRM_SYSTEM_WIDEVINE",pY.fairplay="DRM_SYSTEM_FAIRPLAY",pY.playready="DRM_SYSTEM_PLAYREADY",pY),Hc={},NfJ=(Hc.widevine=1,Hc.fairplay=2,Hc.playready=3,Hc);var q8;g.C(VL,g.J); VL.prototype.initialize=function(H,E){for(var G=this,P=g.R(Object.keys(H)),Q=P.next();!Q.done;Q=P.next()){Q=g.R(H[Q.value]);for(var e=Q.next();!e.done;e=Q.next())if(e=e.value,e.QF)for(var w=g.R(Object.keys(e.QF)),t=w.next();!t.done;t=w.next()){var k=t.value;t=k;k=oRw[k];!k&&this.U("html5_enable_vp9_fairplay")&&t==="fairplay"&&(k=["com.youtube.fairplay.sbdl"]);if(k){k=g.R(k);for(var W=k.next();!W.done;W=k.next())W=W.value,this.G[W]=this.G[W]||new cO(t,W,e.QF[t],this.lJ.experiments),this.L[t]=this.L[t]|| {},this.L[t][e.mimeType]=!0}}}Q_()&&(this.G["com.youtube.fairplay"]=new cO("fairplay","com.youtube.fairplay","",this.lJ.experiments),this.U("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.W=eNw(E,this.useCobaltWidevine,this.U("html5_enable_safari_fairplay")&&!0,this.U("html5_enable_vp9_fairplay")).filter(function(I){return!!G.G[I]})}; VL.prototype.U=function(H){return this.lJ.experiments.xp(H)};var yEM={"":"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"};to.prototype.U=function(H){return this.experiments.xp(H)};var r$U={RED:"red",KAZ:"white"};cAu.prototype.A7=function(H){if(H.cz!==3)throw Error("WpccFlagRetriever only supports WPCC flags");return Lcw(this,H)}; cAu.prototype.xp=function(H){return this.flags.get(""+H)==="true"};ls.prototype.Bo=function(){return this.G}; ls.prototype.eU=function(){return this.W}; ls.prototype.xp=function(H){H=this.A7(H);JSON.stringify(H);return H==="true"}; ls.prototype.A7=function(H){return this.flags[H]};var zuU=Promise.resolve(),LMn=window.queueMicrotask?window.queueMicrotask.bind(window):T77;wG.prototype.canPlayType=function(H,E){H=H.canPlayType?H.canPlayType(E):!1;r3?H=H||b5W[E]:pU===2.2?H=H||i5R[E]:du()&&(H=H||q9$[E]);return!!H}; wG.prototype.isTypeSupported=function(H){return this.L_?window.cast.receiver.platform.canDisplayType(H):pg(H)}; var i5R={'video/mp4; codecs="avc1.42001E, mp4a.40.2"':"maybe"},q9$={"application/x-mpegURL":"maybe"},b5W={"application/x-mpegURL":"maybe"};g.C(ev,g.z7);ev.prototype.add=function(H,E){if(!this.items[H]&&(E.e0||E.Pz||E.a8)){var G=this.items,P=E;Object.isFrozen&&!Object.isFrozen(E)&&(P=Object.create(E),Object.freeze(P));G[H]=P;this.publish("vast_info_card_add",H)}}; ev.prototype.remove=function(H){var E=this.get(H);delete this.items[H];return E}; ev.prototype.get=function(H){return this.items[H]||null}; ev.prototype.isEmpty=function(){return g.ZR(this.items)};UT.prototype.encrypt=function(H){this.L.exports.AES128CTRCipher_encrypt(this.cipher,H.byteOffset,H.byteLength);return H}; UT.prototype.Iu=function(){return this.cipher===0}; UT.prototype.dispose=function(){this.L.exports.AES128CTRCipher_release(this.cipher);this.cipher=0};uw.prototype.lA=function(H,E){E=E===void 0?1:E;this.wh+=E;this.W+=H;H/=E;for(var G=0;G0)P+="."+sb[Q].toFixed(0)+"_"+G.L[Q].toFixed(0);else break;G=P}G&&(H[E]=G)}this.L=new iJs;return H}; g.M.toString=function(){return""};g.M=ckM.prototype;g.M.isActive=function(){return!1}; g.M.k6=function(){}; g.M.UW=function(){}; g.M.Ib=function(){}; g.M.Ni=function(H,E){E()}; g.M.Q1=function(){return{}}; g.M.toString=function(){return""};var ReR=new ckM,JEZ=!!+Ul("html5_enable_profiler"),rEd=!!+Ul("html5_onesie_enable_profiler"),E6=JEZ||rEd?new iPv:ReR,F2t=JEZ?E6:ReR,f4=rEd?E6:ReR;qHj.prototype.emscripten_notify_memory_growth=function(){};g.M=EO.prototype;g.M.malloc=function(H){return this.exports.malloc(H)}; g.M.free=function(H){this.exports.free(H)}; g.M.realloc=function(H,E){return this.exports.realloc(H,E)}; g.M.DX=function(H){if(H.buffer!==this.exports.memory.buffer){var E=this.malloc(H.byteLength);E=new Uint8Array(this.exports.memory.buffer,E,H.byteLength);E.set(H);return E}}; g.M.vM=function(H){if(H.buffer===this.exports.memory.buffer){var E=H.slice();this.free(H.byteOffset);return E}}; var oaw=new function(){this.L=this.W="WebAssembly"in window},v9Q="WebAssembly"in window&&("instantiateStreaming"in window.WebAssembly||"instantiate"in window.WebAssembly); f4.k6(EO,{DX:function(H){return{profile:"copyj2w",wh:H===void 0?0:Math.ceil(H.byteLength/16)}}, vM:function(H){return{profile:"copyw2j",wh:H===void 0?0:Math.ceil(H.byteLength/16)}}});EQ.prototype.encrypt=function(H,E){try{return this.L.vM(Pus(this,H,E))}catch(G){g.p5(Error("ocwce: wasm encrypt failed: "+G))}}; EQ.prototype.Iu=function(){return this.G}; EQ.prototype.dispose=function(){this.Iu()||(g.Vq(this.W),this.L.free(this.D.byteOffset),this.G=!0)};g.C(yld,g.J);g.C(gSn,g.J);var wv;M1.prototype.add=function(H){if(this.pos+20>this.data.length){var E=new Uint8Array(this.data.length*2);E.set(this.data);this.data=E}for(;H>31;)this.data[this.pos++]=wv[(H&31)+32],H>>=5;this.data[this.pos++]=wv[H|0]}; M1.prototype.hK=function(){return g.x$(this.data.subarray(0,this.pos))}; M1.prototype.reset=function(){this.pos=0};KQ.prototype.ra=function(H,E){var G=Math.pow(this.alpha,H);this.L=E*(1-G)+G*this.L;this.W+=H}; KQ.prototype.BK=function(){return this.L/(1-Math.pow(this.alpha,this.W))};nol.prototype.ra=function(H,E){for(var G=0;G<10;G++){var P=this.L[G],Q=P+(G===0?H:0),e=1*Math.pow(2,G);if(Q<=e)break;P=Math.min(1,(Q-e*.5)/P);for(Q=0;Q<16;Q++)e=this.values[G*16+Q]*P,this.values[(G+1)*16+Q]+=e,this.L[G+1]+=e,this.values[G*16+Q]-=e,this.L[G]-=e}P=G=0;Q=8192;E>8192&&(G=Math.ceil(Math.log(E/8192)/Math.log(2)),P=8192*Math.pow(2,G-1),Q=P*2);G+2>16?this.values[15]+=H:(E=(E-P)/(Q-P),this.values[G]+=H*(1-E),this.values[G+1]+=H*E);this.L[0]+=H}; nol.prototype.BK=function(){var H=H===void 0?this.W:H;var E=E===void 0?.02:E;var G=G===void 0?.98:G;for(var P=this.G,Q=0;Q<16;Q++)P[Q]=this.values[Q];Q=this.L[0];for(var e=1;e<11;e++){var w=this.L[e];if(w===0)break;for(var t=Math.min(1,(H-Q)/w),k=0;k<16;k++)P[k]+=this.values[e*16+k]*t;Q+=w*t;if(t<1)break}for(e=H=w=0;e<16;e++){t=w+P[e]/Q;H+=Math.max(0,Math.min(t,G)-Math.max(w,E))*(e>0?8192*Math.pow(2,e-1):0);if(t>G)break;w=t}return H/(G-E)};WJ.prototype.ra=function(H,E){H=Math.min(this.L,Math.max(1,Math.round(H*this.resolution)));H+this.W>=this.L&&(this.G=!0);for(;H--;)this.values[this.W]=E,this.W=(this.W+1)%this.L;this.Tp=!0}; WJ.prototype.percentile=function(H){var E=this;if(!this.G&&this.W===0)return 0;this.Tp&&(g.nT(this.T,function(G,P){return E.values[G]-E.values[P]}),this.Tp=!1); return this.values[this.T[Math.round(H*((this.G?this.L:this.W)-1))]]||0}; WJ.prototype.BK=function(){return this.C?(this.percentile(this.D-this.C)+this.percentile(this.D)+this.percentile(this.D+this.C))/3:this.percentile(this.D)};g.C($1,g.J);$1.prototype.Yp=function(){var H;(H=this.z$)==null||H.start();Dl(this)&&this.policy.N&&(this.O9?this.O9.hp():this.BF())};w2Q.prototype.U=function(H){return this.experiments.xp(H)};g.C(Lwt,g.J);var J$u="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(" "),EV7={gMJ:"caoe",WyN:"capsv",ORR:"cbrand",zja:"cbr",CtN:"cbrver",jFw:"cchip",Ky5:"ccappver",kT$:"ccrv",xdo:"cfrmver",UB$:"c",zQx:"cver",OL_:"ctheme",I7p:"cplayer",zeJ:"cmodel",sU:"cnetwork",Vfm:"cos",OS_VERSION:"cosver",pR_:"cplatform",kpZ:"crqyear"};g.C(k1,g.J);g.M=k1.prototype;g.M.U=function(H){return this.experiments.xp(H)}; g.M.Bo=function(){return this.experiments.Bo()}; g.M.eU=function(){return this.experiments.eU()}; g.M.getWebPlayerContextConfig=function(){return this.webPlayerContextConfig}; g.M.getVideoUrl=function(H,E,G,P,Q,e,w){E={list:E};G&&(Q?E.time_continue=G:E.t=G);G=w?"music.youtube.com":g.Jy(this);Q=G==="www.youtube.com";!e&&P&&Q?e="https://youtu.be/"+H:g.Rp(this)?(e="https://"+G+"/fire",E.v=H):(e&&Q?(e=this.protocol+"://"+G+"/shorts/"+H,P&&(E.feature="share")):(e=this.protocol+"://"+G+"/watch",E.v=H),r3&&(H=Fdt())&&(E.ebc=H));return g.eB(e,E)}; g.M.getVideoEmbedCode=function(H,E,G,P){E="https://"+g.Jy(this)+"/embed/"+E;P&&(E=g.eB(E,{list:P}));P=G.width;G=G.height;E=YD(E);H=YD(H!=null?H:"YouTube video player");return'')}; g.M.supportsGaplessAudio=function(){return g.pC&&!r3&&nW()>=74||g.a1&&g.Gp(68)?!0:!1}; g.M.supportsGaplessShorts=function(){return!this.U("html5_enable_short_gapless")||this.eR||g.Ez?!1:!0}; g.M.getPlayerType=function(){return this.L.cplayer}; g.M.z6=function(){return this.lG}; var yBM=["www.youtube-nocookie.com","youtube.googleapis.com","www.youtubeeducation.com","youtubeeducation.com"],aqQ=["EMBEDDED_PLAYER_LITE_MODE_UNKNOWN","EMBEDDED_PLAYER_LITE_MODE_NONE","EMBEDDED_PLAYER_LITE_MODE_FIXED_PLAYBACK_LIMIT","EMBEDDED_PLAYER_LITE_MODE_DYNAMIC_PLAYBACK_LIMIT"],Mus=[19];var G3={},h9Q=(G3["140"]={numChannels:2},G3["141"]={numChannels:2},G3["251"]={audioSampleRate:48E3,numChannels:2},G3["774"]={audioSampleRate:48E3,numChannels:2},G3["380"]={numChannels:6},G3["328"]={numChannels:6},G3["773"]={},G3),Pc={},wFt=(Pc["1"]='video/mp4; codecs="av01.0.08M.08"',Pc["1h"]='video/mp4; codecs="av01.0.12M.10.0.110.09.16.09.0"',Pc["1e"]='video/mp4; codecs="av01.0.08M.08"',Pc["9"]='video/webm; codecs="vp9"',Pc["("]='video/webm; codecs="vp9"',Pc["9h"]='video/webm; codecs="vp09.02.51.10.01.09.16.09.00"', Pc.h='video/mp4; codecs="avc1.64001e"',Pc.H='video/mp4; codecs="avc1.64001e"',Pc.o='audio/webm; codecs="opus"',Pc.a='audio/mp4; codecs="mp4a.40.2"',Pc.ah='audio/mp4; codecs="mp4a.40.2"',Pc.mac3='audio/mp4; codecs="ac-3"; channels=6',Pc.meac3='audio/mp4; codecs="ec-3"; channels=6',Pc.i='audio/mp4; codecs="iamf.001.001.Opus"',Pc),QG={},YGQ=(QG["337"]={width:3840,height:2160,bitrate:3E7,fps:30},QG["336"]={width:2560,height:1440,bitrate:15E6,fps:30},QG["335"]={width:1920,height:1080,bitrate:75E5,fps:30}, QG["702"]={width:7680,height:4320,bitrate:4E7,fps:60},QG["701"]={width:3840,height:2160,bitrate:2E7,fps:60},QG["700"]={width:2560,height:1440,bitrate:1E7,fps:60},QG["412"]={width:1920,height:1080,bitrate:85E5,fps:60,cryptoblockformat:"subsample"},QG["359"]={width:1920,height:1080,bitrate:8E6,fps:30,cryptoblockformat:"subsample"},QG["411"]={width:1920,height:1080,bitrate:3316E3,fps:60,cryptoblockformat:"subsample"},QG["410"]={width:1280,height:720,bitrate:4746E3,fps:60,cryptoblockformat:"subsample"}, QG["409"]={width:1280,height:720,bitrate:1996E3,fps:60,cryptoblockformat:"subsample"},QG["360"]={width:1920,height:1080,bitrate:5331E3,fps:30,cryptoblockformat:"subsample"},QG["358"]={width:1280,height:720,bitrate:3508E3,fps:30,cryptoblockformat:"subsample"},QG["357"]={width:1280,height:720,bitrate:3206E3,fps:30,cryptoblockformat:"subsample"},QG["274"]={width:1280,height:720,bitrate:1446E3,fps:30,cryptoblockformat:"subsample"},QG["315"]={width:3840,height:2160,bitrate:2E7,fps:60},QG["308"]={width:2560, height:1440,bitrate:1E7,fps:60},QG["303"]={width:1920,height:1080,bitrate:5E6,fps:60},QG["302"]={width:1280,height:720,bitrate:25E5,fps:60},QG["299"]={width:1920,height:1080,bitrate:75E5,fps:60},QG["298"]={width:1280,height:720,bitrate:35E5,fps:60},QG["571"]={width:7680,height:4320,bitrate:3E7,fps:60},QG["401"]={width:3840,height:2160,bitrate:15E6,fps:60},QG["400"]={width:2560,height:1440,bitrate:75E5,fps:60},QG["399"]={width:1920,height:1080,bitrate:2E6,fps:60},QG["398"]={width:1280,height:720,bitrate:1E6, fps:60},QG["397"]={width:854,height:480,bitrate:4E5,fps:30},QG["396"]={width:640,height:360,bitrate:25E4,fps:30},QG["787"]={width:1080,height:608,bitrate:2E5,fps:30},QG["788"]={width:1080,height:608,bitrate:4E5,fps:30},QG["572"]={width:7680,height:4320,bitrate:3E7,fps:60},QG["555"]={width:3840,height:2160,bitrate:15E6,fps:60},QG["554"]={width:2560,height:1440,bitrate:75E5,fps:60},QG["553"]={width:1920,height:1080,bitrate:2E6,fps:60},QG["552"]={width:1280,height:720,bitrate:1E6,fps:60},QG["551"]={width:854, height:480,bitrate:4E5,fps:30},QG["550"]={width:640,height:360,bitrate:25E4,fps:30},QG["313"]={width:3840,height:2160,bitrate:8E6,fps:30},QG["271"]={width:2560,height:1440,bitrate:4E6,fps:30},QG["248"]={width:1920,height:1080,bitrate:2E6,fps:30},QG["247"]={width:1280,height:720,bitrate:15E5,fps:30},QG["244"]={width:854,height:480,bitrate:52E4,fps:30},QG["243"]={width:640,height:360,bitrate:28E4,fps:30},QG["137"]={width:1920,height:1080,bitrate:4E6,fps:30},QG["136"]={width:1280,height:720,bitrate:3E6, fps:30},QG["135"]={width:854,height:480,bitrate:1E6,fps:30},QG["385"]={width:1920,height:1080,bitrate:6503313,fps:60},QG["376"]={width:1280,height:720,bitrate:5706960,fps:60},QG["384"]={width:1280,height:720,bitrate:3660979,fps:60},QG["225"]={width:1280,height:720,bitrate:5805E3,fps:30},QG["224"]={width:1280,height:720,bitrate:453E4,fps:30},QG["145"]={width:1280,height:720,bitrate:2682052,fps:30},QG);g.M=dO.prototype;g.M.getInfo=function(){return this.L}; g.M.Bc=function(){return null}; g.M.YL=function(){var H=this.Bc();return H?(H=g.oz(H.Du),Number(H.expire)):NaN}; g.M.UO=function(){}; g.M.getHeight=function(){return this.L.video.height};NNn.prototype.build=function(){Bh1(this);var H=["#EXTM3U","#EXT-X-INDEPENDENT-SEGMENTS"],E={};a:if(this.L)var G=this.L;else{G="";for(var P=g.R(this.G),Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,Q.CP){if(Q.CP.getIsDefault()){G=Q.CP.getId();break a}G||(G=Q.CP.getId())}}P=g.R(this.G);for(Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,this.C||!Q.CP||Q.CP.getId()===G)E[Q.itag]||(E[Q.itag]=[]),E[Q.itag].push(Q);G=g.R(this.W);for(P=G.next();!P.done;P=G.next())if(P=P.value,Q=E[P.L]){Q=g.R(Q);for(var e=Q.next();!e.done;e= Q.next()){var w=H,t=w.push;e=e.value;var k="#EXT-X-MEDIA:TYPE=AUDIO,",W="YES",I="audio";if(e.CP){I=e.CP;var A=I.getId().split(".")[0];A&&(k+='LANGUAGE="'+A+'",');(this.L?this.L===I.getId():I.getIsDefault())||(W="NO");I=I.getName()}A="";P!==null&&(A=P.itag.toString());A=Ix(this,e.url,A);k=k+('NAME="'+I+'",DEFAULT='+(W+',AUTOSELECT=YES,GROUP-ID="'))+(Drt(e,P)+'",URI="'+(A+'"'));t.call(w,k)}}G=g.R(this.T);for(P=G.next();!P.done;P=G.next())P=P.value,Q=BfM,P=(w=P.CP)?'#EXT-X-MEDIA:URI="'+Ix(this,P.url)+ '",TYPE=SUBTITLES,GROUP-ID="'+Q+'",LANGUAGE="'+w.getId()+'",NAME="'+w.getName()+'",DEFAULT=NO,AUTOSELECT=YES':void 0,P&&H.push(P);G=this.T.length>0?BfM:void 0;P=g.R(this.W);for(Q=P.next();!Q.done;Q=P.next())Q=Q.value,t=E[Q.L],w=void 0,((w=t)==null?void 0:w.length)>0&&(w=Q,t=t[0],t="#EXT-X-STREAM-INF:BANDWIDTH="+(w.bitrate+t.bitrate)+',CODECS="'+(w.codecs+","+t.codecs+'",RESOLUTION=')+(w.width+"x"+w.height+',AUDIO="')+(Drt(t,w)+'",')+(G?'SUBTITLES="'+G+'",':"")+"CLOSED-CAPTIONS=NONE",w.fps>1&&(t+= ",FRAME-RATE="+w.fps),w.w9&&(t+=",VIDEO-RANGE="+w.w9),H.push(t),H.push(Ix(this,Q.url,"")));return H.join("\n")}; var BfM="text";g.C(WE,dO);WE.prototype.YL=function(){return this.expiration}; WE.prototype.Bc=function(){if(!this.Du||this.Du.Iu()){var H=this.W.build();H="data:application/x-mpegurl;charset=utf-8,"+encodeURIComponent(H);this.Du=new Zq(H)}return this.Du};g.C(u7,dO);u7.prototype.Bc=function(){return new Zq(this.W.TU())}; u7.prototype.UO=function(){this.W=G0(36,this.W)};g.C(yf,dO);yf.prototype.Bc=function(){return new Zq(this.W)};var s6={},c1s=(s6.PLAYABILITY_ERROR_CODE_VIDEO_BLOCK_BY_MRM="mrm.blocked",s6.PLAYABILITY_ERROR_CODE_PERMISSION_DENIED="auth",s6.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_DENIED="embedder.identity.denied",s6.PLAYABILITY_ERROR_CODE_EMBEDDER_IDENTITY_MISSING_REFERRER="embedder.identity.missing.referrer",s6);g.M=g.qd.prototype;g.M.getId=function(){return this.id}; g.M.getName=function(){return this.name}; g.M.isServable=function(){return this.L}; g.M.TU=function(){return this.url}; g.M.getXtags=function(){return this.xtags}; g.M.toString=function(){return this.languageCode+": "+g.y9(this)+" - "+this.vssId+" - "+(this.captionId||"")}; g.M.equals=function(H){return H?this.toString()===H.toString():!1}; g.M.zU=function(){return!(!this.languageCode||this.translationLanguage&&!this.translationLanguage.languageCode)};var PhM={"ad-trueview-indisplay-pv":6,"ad-trueview-insearch":7},QeT={"ad-trueview-indisplay-pv":2,"ad-trueview-insearch":2},sej=/^(\d*)_((\d*)_?(\d*))$/;var Z8j={iurl:"default.jpg",iurlmq:"mqdefault.jpg",iurlhq:"hqdefault.jpg",iurlsd:"sddefault.jpg",iurlpop1:"pop1.jpg",iurlpop2:"pop2.jpg",iurlhq720:"hq720.jpg",iurlmaxres:"maxresdefault.jpg"},mfv={120:"default.jpg",320:"mqdefault.jpg",480:"hqdefault.jpg",560:"pop1.jpg",640:"sddefault.jpg",854:"pop2.jpg",1280:"hq720.jpg"};var oZ={},Luj=(oZ.ALWAYS=1,oZ.BY_REQUEST=3,oZ.UNKNOWN=void 0,oZ),e8={},qAw=(e8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_UNKNOWN="UNKNOWN",e8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_NORMAL="NORMAL",e8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_LOW="LOW",e8.MDE_STREAM_OPTIMIZATIONS_RENDERER_LATENCY_ULTRA_LOW="ULTRALOW",e8);var Rrd; Rrd=function(H){for(var E=Object.keys(H),G={},P=0;PP-E?-1:H}; g.M.nU=function(){return this.W.vO()}; g.M.uU=function(){return this.W.gH()}; g.M.DS=function(H){this.W=H};g.C(bh,yq);bh.prototype.W=function(H,E){return yq.prototype.W.call(this,"$N|"+H,E)}; bh.prototype.T=function(H,E,G){return new dkw(H,E,G,this.isLive)};g.C(g.KD,g.z7);g.M=g.KD.prototype; g.M.setData=function(H){var E=this;H=H||{};var G=H.errordetail;G!=null&&(this.errorDetail=G);var P=H.errorcode;P!=null?this.errorCode=P:H.status==="fail"&&(this.errorCode="auth");var Q=H.reason;Q!=null&&(this.errorReason=Q);var e=H.subreason;e!=null&&(this.sF=e);this.clientPlaybackNonce||(this.clientPlaybackNonce=H.cpn||(this.lJ.z6()?"r"+g.qA(15):g.qA(16)));this.TP=BY(this.lJ.TP,H.livemonitor);czU(this,H);var w=H.raw_player_response;if(w)this.tN=w;else{var t=H.player_response;t&&(w=JSON.parse(t))}w&& (this.playerResponse=w);if(this.playerResponse){var k=this.playerResponse.annotations;k&&l2M(this,k);var W=this.playerResponse.attestation;W&&pZn(this,W);var I=this.playerResponse.cotn;I&&(this.cotn=I);var A=this.playerResponse.heartbeatParams;A&&Act(this,A);var m=this.playerResponse.messages;m&&Gsu(this,m);var u=this.playerResponse.overlay;u&&rkM(this,u);var v=this.playerResponse.playabilityStatus;if(v){s$Q(this,v);var n=v.errorScreen;n&&YhT(this,n)}var O=this.playerResponse.playbackTracking;O&& Z_s(this,O,H);var q=this.playerResponse.playerCueRanges;q&&q.length>0&&(this.cueRanges=q);var N=this.playerResponse.playerCueRangeSet;N&&g.vT(this,N);var r=OpT(this.playerResponse.adPlacements);O&&O.promotedPlaybackTracking&&r&&g.p5(new g.LN("Player Response with both promotedPlaybackTracking and videoAdTrackingRenderer"));if(r||iEs(this.playerResponse.adSlots))this.Fh=!0;var B=this.playerResponse.playerAds;B&&TNs(this,B,H);var l=this.playerResponse.playerConfig;l&&i8u(this,l);var S=this.playerResponse.streamingData; S&&$Uq(this,S,l||null);var z=this.playerResponse.trackingParams;z&&(this.p_=z);var Pt=this.playerResponse.videoDetails;if(Pt){gus(this,Pt,H);Rju(this,Pt,l||null,H);var eu=Pt.isPrivate;eu!==void 0&&(this.isPrivate=BY(this.isPrivate,eu))}v&&X_v(this,v,Pt||null);var QM=this.playerResponse.interstitialPods;QM&&vpM(this,QM);this.BA&&this.eventId&&(this.BA=Oq(this.BA,{ei:this.eventId}));var $Q=this.playerResponse.captions;$Q&&$Q.playerCaptionsTracklistRenderer&&jQ7(this,$Q.playerCaptionsTracklistRenderer); (this.clipConfig=this.playerResponse.clipConfig)&&this.clipConfig.startTimeMs!=null&&(this.dj=Number(this.clipConfig.startTimeMs)*.001);this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.webPlayerConfig&&this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting&&TG1(this,this.playerResponse.playerConfig.webPlayerConfig.webPlayerActionsPorting);var En;this.compositeLiveIngestionOffsetToken=(En=this.playerResponse.playbackTracking)==null?void 0:En.compositeLiveIngestionOffsetToken; var Dj;this.compositeLiveStatusToken=(Dj=this.playerResponse.playbackTracking)==null?void 0:Dj.compositeLiveStatusToken;this.U("html5_fill_default_mosaic_audio_track_id")&&pq(this)&&(this.lJ.MZ=kEd(this));var gl,oD,GZ=(gl=this.playerResponse.playerConfig)==null?void 0:(oD=gl.granularVariableSpeedConfig)==null?void 0:oD.minimumPlaybackRate,qT,c,FR=(qT=this.playerResponse.playerConfig)==null?void 0:(c=qT.granularVariableSpeedConfig)==null?void 0:c.maximumPlaybackRate;GZ&&FR&&(this.YJ=GZ/100,this.rj= FR/100);this.U("html5_web_po_on_demand_init")&&this.playerResponse.onResponseReceivedActions&&this.playerResponse.onResponseReceivedActions.forEach(function(yQ){var t_;((t_=g.X(yQ,Y_l))==null?void 0:t_.signal)==="INIT_ATT_SERVICE"&&(E.K8=!0)})}xj(this,H); Ns7(this,H);H.queue_info&&(this.queueInfo=H.queue_info);var y3=H.hlsdvr;y3!=null&&(this.allowLiveDvr=Number(y3)===1?rR()?!0:Bd&&YV<5?!1:!0:!1);this.adQueryId=H.ad_query_id||null;this.wT||(this.wT=H.encoded_ad_safety_reason||null);this.s_=BY(this.s_,H.infringe||H.muted);this.Oc=H.authkey;this.SX=H.authuser;this.mutedAutoplay=BY(this.mutedAutoplay,H&&H.playmuted);this.mutedAutoplayDurationMode=dq(this.mutedAutoplayDurationMode,H&&H.muted_autoplay_duration_mode);this.CZ=BY(this.CZ,H&&H.mutedautoplay); var jH=H.length_seconds;jH&&(this.lengthSeconds=typeof jH==="string"?EN(jH):jH);this.isAd()||this.g6||!g.lK(g.CW(this.lJ))?this.endSeconds=dq(this.endSeconds,this.uh||H.end||H.endSeconds):igw(this,g.CW(this.lJ),this.lengthSeconds);this.p_=qc(this.p_,H.itct);this.WN=BY(this.WN,H.is_live_destination);this.isLivePlayback=BY(this.isLivePlayback,H.live_playback);this.enableServerStitchedDai=this.enableServerStitchedDai&&this.T6();H.isUpcoming&&(this.isUpcoming=BY(this.isUpcoming,H.isUpcoming));this.tT= BY(this.tT,H.post_live_playback);this.IJ&&(this.tT=!1);this.isMdxPlayback=BY(this.isMdxPlayback,H.mdx);var E9=H.mdx_control_mode;E9&&(this.mdxControlMode=typeof E9==="number"?E9:EN(E9));this.isInlinePlaybackNoAd=BY(this.isInlinePlaybackNoAd,H.is_inline_playback_no_ad);this.Yp=dq(this.Yp,H.reload_count);this.reloadReason=qc(this.reloadReason,H.reload_reason);this.Yh=BY(this.Yh,H.show_content_thumbnail);this.cycToken=H.cyc||null;var zZ=fe(H);Object.keys(zZ).length>0&&(this.BL=zZ);this.WF=qc(this.WF, H.vvt);this.mdxEnvironment=qc(this.mdxEnvironment,H.mdx_environment);H.source_container_playlist_id&&(this.sourceContainerPlaylistId=H.source_container_playlist_id);H.serialized_mdx_metadata&&(this.serializedMdxMetadata=H.serialized_mdx_metadata);this.o1=H.osig;this.eventId||(this.eventId=H.eventid);this.osid||(this.osid=H.osid);this.playlistId=qc(this.playlistId,H.list);H.index&&(this.playlistIndex=this.playlistIndex===void 0?dq(0,H.index):dq(this.playlistIndex,H.index));this.uX=H.pyv_view_beacon_url; this.mO=H.pyv_quartile25_beacon_url;this.dT=H.pyv_quartile50_beacon_url;this.Ei=H.pyv_quartile75_beacon_url;this.Pc=H.pyv_quartile100_beacon_url;var hd=H.session_data;!this.v_&&hd&&(this.v_=LZ(hd,"&").feature);this.isFling=dq(this.isFling?1:0,H.is_fling)===1;this.vnd=dq(this.vnd,H.vnd);this.forceAdsUrl=qc(this.forceAdsUrl,H.force_ads_url);this.qI=qc(this.qI,H.ctrl);this.v$=qc(this.v$,H.ytr);this.Ah=H.ytrcc;this.j8=H.ytrexp;this.YE=H.ytrext;this.jT=qc(this.jT,H.adformat);this.Oo=qc(this.Oo,H.attrib); this.slotPosition=dq(this.slotPosition,H.slot_pos);this.breakType=H.break_type;this.mf=BY(this.mf,H.ssrt);this.videoId=lO(H)||this.videoId;this.C=qc(this.C,H.vss_credentials_token);this.I2=qc(this.I2,H.vss_credentials_token_type);this.It=BY(this.It,H.audio_only);this.E7=BY(this.E7,H.aac_high);this.kS=BY(this.kS,H.prefer_low_quality_audio);this.CU=BY(this.CU,H.uncap_inline_quality);this.U("html5_enable_qoe_cat_list")?H.qoe_cat&&(this.zR=this.zR.concat(H.qoe_cat.split(","))):this.Mk=qc(this.Mk,H.qoe_cat); this.CL=BY(this.CL,H.download_media);this.B=L3U(this,H.prefer_gapless);eOl(this.playerResponse)&&this.fW.push("ad");var bK=H.adaptive_fmts;bK&&(this.adaptiveFormats=bK,this.g5("adpfmts",{},!0));var K=H.allow_embed;K&&(this.allowEmbed=Number(K)===1);var Ht=H.backgroundable;Ht&&(this.backgroundable=Number(Ht)===1);var DR=H.autonav;DR&&(this.isAutonav=Number(DR)===1);var wf=H.autoplay;wf&&(this.n0=this.Sb=Number(wf)===1);var Fd=H.iv_load_policy;Fd&&(this.annotationsLoadPolicy=Eh(this.annotationsLoadPolicy, Fd,sh));var tE=H.cc_lang_pref;tE&&(this.captionsLanguagePreference=qc(tE,this.captionsLanguagePreference));var F1=H.cc_load_policy;F1&&(this.wH=Eh(this.wH,F1,sh));var pw;this.deviceCaptionsOn=(pw=H.device_captions_on)!=null?pw:void 0;var jS;this.V_=(jS=H.device_captions_lang_pref)!=null?jS:"";var b;this.ej=(b=H.viewer_selected_caption_langs)!=null?b:[];var a=H.cached_load;a&&(this.qb=BY(this.qb,a));if(H.dash==="0"||H.dash===0||H.dash===!1)this.yw=!0;var y=H.dashmpd;y&&(this.iH=g.eB(y,{cpn:this.clientPlaybackNonce})); var Y=H.delay;Y&&(this.Qm=EN(Y));var V=this.uh||H.end;if(this.BF?V!=null:V!=void 0)this.clipEnd=dq(this.clipEnd,V);var wl=H.fmt_list;wl&&(this.CC=wl);H.heartbeat_preroll&&this.fW.push("heartbeat");Y9d&&(this.Le=-Math.floor(Math.random()*10),this.KB=-Math.floor(Math.random()*40));var f=H.is_listed;f&&(this.isListed=BY(this.isListed,f));var x=H.is_private;x&&(this.isPrivate=BY(this.isPrivate,x));var Z=H.is_dni;Z&&(this.Xg=BY(this.Xg,Z));var iU=H.dni_color;iU&&(this.U0=qc(this.U0,iU));var Rs=H.pipable; Rs&&(this.pipable=BY(this.pipable,Rs));this.xC=(this.hn=this.pipable&&this.lJ.cV)&&!this.lJ.showMiniplayerButton;var dl=H.paid_content_overlay_duration_ms;dl&&(this.paidContentOverlayDurationMs=EN(dl));var yM=H.paid_content_overlay_text;yM&&(this.paidContentOverlayText=yM);var Po=H.url_encoded_fmt_stream_map;Po&&(this.Ta=Po);var NT=H.hls_formats;NT&&(this.hlsFormats=NT);var gf=H.hlsvp;gf&&(this.hlsvp=gf);var JE=H.live_start_walltime;JE&&(this.zn=typeof JE==="number"?JE:EN(JE));var fW=H.live_manifest_duration; fW&&(this.cD=typeof fW==="number"?fW:EN(fW));var bU=H.player_params;bU&&(this.playerParams=bU);var lk=H.partnerid;lk&&(this.partnerId=dq(this.partnerId,lk));var Jd=H.probe_url;Jd&&(this.probeUrl=$o(g.eB(Jd,{cpn:this.clientPlaybackNonce})));var D$=H.pyv_billable_url;D$&&P9u(D$)&&(this.ib=D$);var Cw=H.pyv_conv_url;Cw&&P9u(Cw)&&(this.bX=Cw);o6n(this,H);this.startSeconds>0?this.U("html5_log_start_seconds_inconsistency")&&this.startSeconds!==(this.dj||this.pI||H.start||H.startSeconds)&&this.g5("lss",{css:this.startSeconds, pcss:this.dj,iss:this.pI,ps:H.start||void 0,pss:H.startSeconds||void 0}):this.eR=this.startSeconds=dq(this.startSeconds,this.dj||this.pI||H.start||H.startSeconds);if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var ka=H.live_utc_start;ka!=null?this.liveUtcStartSeconds=Number(ka):Joj(this.startSeconds)&&(this.liveUtcStartSeconds=this.startSeconds)}if(!(this.liveUtcStartSeconds&&this.liveUtcStartSeconds>0)){var OC=H.utc_start_millis;OC&&(this.liveUtcStartSeconds=Number(OC)*.001)}var pW= H.stream_time_start_millis;pW&&(this.tH=Number(pW)*.001);var GE=this.pI||H.start;(this.BF?GE==null||Number(H.resume)===1:GE==void 0||H.resume=="1")||this.isLivePlayback||(this.clipStart=dq(this.clipStart,GE));var gu=H.url_encoded_third_party_media;gu&&(this.xW=PIs(gu));var JJ=H.ypc_offer_button_formatted_text;if(JJ){var Di=JSON.parse(JJ);this.hW=Di!=null?Di:null;this.kC=JJ}var y6=H.ypc_offer_button_text;y6&&(this.rM=y6);var eV=H.ypc_offer_description;eV&&(this.JQ=eV);var wi=H.ypc_offer_headline;wi&& (this.A4=wi);var Lb=H.ypc_full_video_message;Lb&&(this.GL=Lb);var lR=H.ypc_offer_id;lR&&(this.gi=lR);var s7=H.ypc_buy_url;s7&&(this.CF=s7);var MF=H.ypc_item_thumbnail;MF&&(this.cj=MF);var UY=H.ypc_item_title;UY&&(this.DY=UY);var xa=H.ypc_item_url;xa&&(this.e5=xa);var zy=H.ypc_vid;zy&&(this.us=zy);H.ypc_overlay_timeout&&(this.H_=Number(H.ypc_overlay_timeout));var gL=H.ypc_trailer_player_vars;gL&&(this.Wc=W9(gL));var qL=H.ypc_original_itct;qL&&(this.PU=qL);this.t_=qc(this.t_,H.ucid);this.fL=H.storyboard_spec|| null;this.eh=H.live_storyboard_spec||null;this.AL=H.iv_endscreen_url||null;this.oT=BY(this.oT,H.iv3_module);this.U_=BY(this.U_,H.ypc_module);this.AN=BY(this.AN,H.ypc_clickwrap_module);this.U_&&this.fW.push("ypc");this.AN&&this.fW.push("ypcRentalActivation");this.p8={video_id:H.video_id,eventid:H.eventid,cbrand:H.cbrand,cbr:H.cbr,cbrver:H.cbrver,c:H.c,cver:H.cver,ctheme:H.ctheme,cplayer:H.cplayer,cmodel:H.cmodel,cnetwork:H.cnetwork,cos:H.cos,cosver:H.cosver,cplatform:H.cplatform,user_age:H.user_age, user_display_image:H.user_display_image,user_display_name:H.user_display_name,user_gender:H.user_gender,csi_page_type:H.csi_page_type,csi_service_name:H.csi_service_name,enablecsi:H.enablecsi,enabled_engage_types:H.enabled_engage_types};yz7(this,H);var RP=H.cotn;RP&&(this.cotn=RP);Q5l(this)?Zk(this)&&(this.isLivePlayback&&this.iH&&(this.AG=!0),this.nX&&(this.xH=!0)):yC1(this)?this.AG=!0:gdw(this)?this.enableServerStitchedDai=this.enableServerStitchedDai&&Bm(this):this.iH&&(this.lJ.p_==="yt"&&this.T6()&& this.U("drm_manifestless_unplugged")&&this.U("html5_deprecate_manifestful_fallback")?this.g5("deprecateMflFallback",{}):this.AG=!0);var WD=H.adpings;WD&&(this.JD=WD?W9(WD):null);var Ty=H.feature;Ty&&(this.jV=Ty);var IG=H.referrer;IG&&(this.referrer=IG);this.clientScreenNonce=qc(this.clientScreenNonce,H.csn);this.qU=dq(this.qU,H.root_ve_type);this.AA=dq(this.AA,H.kids_age_up_mode);this.BF||H.kids_app_info==void 0||(this.kidsAppInfo=H.kids_app_info);this.BF&&H.kids_app_info!=null&&(this.kidsAppInfo= H.kids_app_info);this.cg=BY(this.cg,H.upg_content_filter_mode);this.unpluggedFilterModeType=dq(this.unpluggedFilterModeType,H.unplugged_filter_mode_type);var Va=H.unplugged_location_info;Va&&(this.s7=Va);var SX=H.unplugged_partner_opt_out;SX&&(this.aO=qc("",SX));this.xZ=BY(this.xZ,H.disable_watch_next);this.ql=qc(this.ql,H.internal_ip_override);this.iC=!!H.is_yto_interstitial;this.interstitials.length&&this.fW.push("playableSequences");var FT=H.Ff;FT&&(this.Ff=FT);this.L_=qc(this.L_,H.csi_timer); H.watchUrl&&(this.watchUrl=H.watchUrl);var nq=H.watch_endpoint;this.U("html5_attach_watch_endpoint_ustreamer_config")&&nq&&Ysq(this,nq);if(nq==null?0:nq.ustreamerConfig)this.VB=sH(nq.ustreamerConfig);var fb,Lq,Az=nq==null?void 0:(fb=nq.loggingContext)==null?void 0:(Lq=fb.qoeLoggingContext)==null?void 0:Lq.serializedContextData;Az&&(this.eH=Az);g.L3(this.lJ)&&this.lJ.BD&&(this.embedsRct=qc(this.embedsRct,H.rct),this.embedsRctn=qc(this.embedsRctn,H.rctn));H.embed_config&&(this.sZ=H.embed_config);this.yS= this.yS||!!H.pause_at_start;H.default_active_source_video_id&&(this.defaultActiveSourceVideoId=H.default_active_source_video_id);this.n1=this.n1||!!H.n1}; g.M.K=function(){return this.lJ}; g.M.U=function(H){return this.lJ.U(H)}; g.M.vK=function(){return!this.isLivePlayback||this.allowLiveDvr}; g.M.hasSupportedAudio51Tracks=function(){var H;return!((H=this.dP)==null||!H.au)}; g.M.getUserAudio51Preference=function(){var H=1;cw(this.lJ)&&this.U("html5_ytv_surround_toggle_default_off")?H=0:$H(this.lJ)&&this.isLivePlayback&&this.Gq()&&(H=0);var E;return(E=g.pr("yt-player-audio51"))!=null?E:H}; g.M.mP=function(){this.Iu()||(this.L.W||this.L.unsubscribe("refresh",this.mP,this),this.mX(-1))}; g.M.mX=function(H){if(!this.isLivePlayback||!this.T||this.T.flavor!=="fairplay"){var E=ZLl(this.L,this.PW);if(E.length>0){for(var G=g.R(E),P=G.next();!P.done;P=G.next())P=P.value,P.startSecs=Math.max(P.startSecs,this.MC()),this.U("html5_cuepoint_identifier_logging")&&P.event==="start"&&this.g5("cuepoint",{pubCue:P.identifier,segNum:H});this.publish("cuepointupdated",E,H);this.PW+=E.length;if(Bm(this)&&this.lJ.z6())for(E=g.R(E),G=E.next();!G.done;G=E.next())G=G.value,this.g5("cuepoint",{segNum:H,event:G.event, startSecs:G.startSecs,id:G.identifier.slice(-16)}),G.event==="start"&&(G=G.startSecs,this.Vf.start=this.FI,this.Vf.end=G+3)}}}; g.M.M7=function(){this.Iu()||(this.loading=!1,this.publish("dataloaded"))}; g.M.Gq=function(){return this.UF!==void 0?this.UF:this.UF=!!this.QF||!!this.L&&O8(this.L)}; g.M.Pp=function(H){var E=this;if(this.Iu())return $0();this.hm=this.PF=this.G=null;pV(this,"html5_high_res_logging_always")&&(this.lJ.lG=!0);return s5u(this,H).then(void 0,function(){return p7Q(E,H)}).then(void 0,function(){return iIw(E)}).then(void 0,function(){return Sbj(E)})}; g.M.jr=function(H){this.G=H;Oc7(this,this.G.getAvailableAudioTracks());if(this.G){H=g.R(this.G.videoInfos);for(var E=H.next();!E.done;E=H.next()){E=E.value;var G=E.containerType;G!==0&&(this.zo[G]=E.id)}}H=this.getAvailableAudioTracks();H=H.concat(this.UT);for(E=0;E0?this.G.getAvailableAudioTracks():this.AT||[]:[]}; g.M.getAudioTrack=function(){var H=this;if(this.D&&!wB(this.D)){var E=g.VS(this.getAvailableAudioTracks(),function(Q){return Q.id===H.D.id}),G; if(!E&&((G=this.D.CP)==null?0:G.id)){var P=this.D.CP.id;E=g.VS(this.getAvailableAudioTracks(),function(Q){return Q.CP.id===P}); this.g5("nat",{id:this.D.id,track:!!E})}return E||this.UT}if(this.AT){if(!this.jt)for(E=g.R(this.AT),G=E.next();!G.done;G=E.next())if(G=G.value,G.CP.getIsDefault()){this.jt=G;break}return this.jt||this.UT}return this.UT}; g.M.getPlayerResponse=function(){return this.playerResponse}; g.M.getWatchNextResponse=function(){return this.Jm}; g.M.getReelItemWatchResponse=function(){return this.reelItemWatchResponse}; g.M.getHeartbeatResponse=function(){return this.JJ}; g.M.Sd=function(){return this.watchUrl?this.watchUrl:this.lJ.getVideoUrl(this.videoId)}; g.M.DI=function(){return!!this.L&&(GhT(this.L)||hRM(this.L)||z8Q(this.L))}; g.M.getEmbeddedPlayerResponse=function(){return this.QA}; g.M.hE=function(){return(this.eventLabel||this.lJ.Jm)==="shortspage"}; g.M.isAd=function(){return this.kc||!!this.adFormat}; g.M.isDaiEnabled=function(){return!!(this.playerResponse&&this.playerResponse.playerConfig&&this.playerResponse.playerConfig.daiConfig&&this.playerResponse.playerConfig.daiConfig.enableDai)}; g.M.mV=function(){var H,E,G;return this.isDaiEnabled()&&this.enableServerStitchedDai&&!!((H=this.playerResponse)==null?0:(E=H.playerConfig)==null?0:(G=E.daiConfig)==null?0:G.ssaEnabledPlayback)}; g.M.nJ=function(){return this.Tt}; g.M.Pv=function(){return this.U_||this.qC}; g.M.gr=function(){return pV(this,"html5_samsung_vp9_live")}; g.M.g5=function(H,E,G){this.publish("ctmp",H,E,G)}; g.M.Kq=function(H,E,G){this.publish("ctmpstr",H,E,G)}; g.M.hasProgressBarBoundaries=function(){return!(!this.progressBarStartPosition||!this.progressBarEndPosition)}; g.M.getGetAdBreakContext=function(H,E){H=H===void 0?NaN:H;E=E===void 0?NaN:E;var G={isSabr:ip(this)},P,Q=(P=this.getHeartbeatResponse())==null?void 0:P.adBreakHeartbeatParams;Q&&(G.adBreakHeartbeatParams=Q);if(this.U("enable_ltc_param_fetch_from_innertube")&&this.isLivePlayback&&this.L&&!isNaN(H)&&!isNaN(E)){E=H-E;for(var e in this.L.L)if(P=this.L.L[e],P.info.dO()||P.info.VS())if(P=P.index,P.isLoaded()){e=P.Is(E);P=P.JT(e)+E-P.getStartTime(e);this.g5("gabc",{t:H.toFixed(3),mt:E.toFixed(3),sg:e,igt:P.toFixed(3)}); G.livePlaybackPosition={utcTimeMillis:""+(P*1E3).toFixed(0)};break}}return G}; g.M.isEmbedsShortsMode=function(H,E){if(!g.L3(this.lJ)||(this.lJ.PF||"EMBEDDED_PLAYER_MODE_DEFAULT")!=="EMBEDDED_PLAYER_MODE_DEFAULT"||E)return!1;if(this.U("embeds_enable_shorts")){var G,P;return!!((G=this.embeddedPlayerConfig)==null?0:(P=G.embeddedPlayerFlags)==null?0:P.isShortsExperienceEligible)}var Q,e;return!!(((Q=this.embeddedPlayerConfig)==null?0:(e=Q.embeddedPlayerFlags)==null?0:e.isShortsExperienceEligible)&&H.width<=H.height)}; g.M.fH=function(H,E){E?this.Ll||(this.Ll=H):this.Wm||(this.Wm=H)}; g.M.G$=function(){g.z7.prototype.G$.call(this);this.JD=null;delete this.I1;delete this.accountLinkingConfig;delete this.L;this.G=this.JJ=this.playerResponse=this.Jm=null;this.Ta=this.adaptiveFormats="";delete this.botguardData;this.O7=this.suggestions=this.To=null;this.sabrContextUpdates.clear()}; var Y9d=!0;var bSv={phone:"SMALL_FORM_FACTOR",tablet:"LARGE_FORM_FACTOR"},iSd={desktop:"DESKTOP",phone:"MOBILE",tablet:"TABLET"},NX1={preroll:"BREAK_PREROLL",midroll:"BREAK_MIDROLL",postroll:"BREAK_POSTROLL"},uJl={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"},Mhs={0:"MDX_CONTROL_MODE_UNKNOWN",1:"MDX_CONTROL_MODE_REMOTE",2:"MDX_CONTROL_MODE_VOICE"},vH7={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"},yVw={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.C(QD,g.J);g.M=QD.prototype;g.M.handleExternalCall=function(H,E,G){var P=this.state.B[H],Q=this.state.N[H],e=P;if(Q)if(G&&U8(G,EmK))e=Q;else if(!P)throw Error('API call from an untrusted origin: "'+G+'"');this.logApiCall(H,G);if(e){G=!1;P=g.R(E);for(Q=P.next();!Q.done;Q=P.next())if(String(Q.value).includes("javascript:")){G=!0;break}G&&g.p5(Error('Dangerous call to "'+H+'" with ['+E+"]."));return e.apply(this,E)}throw Error('Unknown API method: "'+H+'".');}; g.M.logApiCall=function(H,E,G){var P=this.app.K();P.yw&&!this.state.L_.has(H)&&(this.state.L_.add(H),g.HY("webPlayerApiCalled",{callerUrl:P.loaderUrl,methodName:H,origin:E||void 0,playerStyle:P.playerStyle||void 0,embeddedPlayerMode:P.PF,errorCode:G}))}; g.M.publish=function(H){var E=g.c4.apply(1,arguments);this.state.G.publish.apply(this.state.G,[H].concat(g.EC(E)));if(H==="videodatachange"||H==="resize"||H==="cardstatechange")this.state.W.publish.apply(this.state.W,[H].concat(g.EC(E))),this.state.D.publish.apply(this.state.D,[H].concat(g.EC(E)))}; g.M.n_=function(H){var E=g.c4.apply(1,arguments);this.state.G.publish.apply(this.state.G,[H].concat(g.EC(E)));this.state.W.publish.apply(this.state.W,[H].concat(g.EC(E)))}; g.M.GU=function(H){var E=g.c4.apply(1,arguments);this.state.G.publish.apply(this.state.G,[H].concat(g.EC(E)));this.state.W.publish.apply(this.state.W,[H].concat(g.EC(E)));this.state.D.publish.apply(this.state.D,[H].concat(g.EC(E)))}; g.M.tC=function(H){var E=g.c4.apply(1,arguments);this.state.G.publish.apply(this.state.G,[H].concat(g.EC(E)));this.state.W.publish.apply(this.state.W,[H].concat(g.EC(E)));this.state.D.publish.apply(this.state.D,[H].concat(g.EC(E)));this.state.T.publish.apply(this.state.T,[H].concat(g.EC(E)))}; g.M.U=function(H){return this.app.K().U(H)}; g.M.G$=function(){if(this.state.element){var H=this.state.element,E;for(E in this.state.L)this.state.L.hasOwnProperty(E)&&(H[E]=null);this.state.element=null}g.J.prototype.G$.call(this)};g.C(bA,g.DD);bA.prototype.publish=function(H){var E=g.c4.apply(1,arguments);if(this.T.has(H))return this.T.get(H).push(E),!0;var G=!1;try{for(E=[E],this.T.set(H,E);E.length;)G=g.DD.prototype.publish.call.apply(g.DD.prototype.publish,[this,H].concat(g.EC(E.shift())))}finally{this.T.delete(H)}return G};g.C(apU,g.J);apU.prototype.G$=function(){this.T.dispose();this.D.dispose();this.W.dispose();this.G.dispose();this.L_=this.L=this.N=this.B=this.C=void 0};var bPv=new Set("endSeconds startSeconds mediaContentUrl suggestedQuality videoId rct rctn playmuted muted_autoplay_duration_mode".split(" "));g.C(uQ,QD);g.M=uQ.prototype;g.M.getApiInterface=function(){return Array.from(this.state.C)}; g.M.Kw=function(H,E){this.state.T.subscribe(H,E)}; g.M.Jjp=function(H,E){this.state.T.unsubscribe(H,E)}; g.M.getPlayerState=function(H){return xfv(this.app,H)}; g.M.wR=function(){return xfv(this.app)}; g.M.ega=function(H,E,G){UC(this)&&(XM(this.app,!0,1),R3(this.app,H,E,G,1))}; g.M.getCurrentTime=function(H,E,G){var P=this.getPlayerState(H);if(this.app.getAppState()===2&&P===5){var Q;return((Q=this.app.getVideoData())==null?void 0:Q.startSeconds)||0}return this.U("web_player_max_seekable_on_ended")&&P===0?KC(this.app,H):H?this.app.getCurrentTime(H,E,G):this.app.getCurrentTime(H)}; g.M.n$=function(){return this.app.getCurrentTime(1)}; g.M.a$=function(){var H=this.app.JT(1);return isNaN(H)?this.getCurrentTime(1):H}; g.M.MQ=function(){return this.app.getDuration(1)}; g.M.xo=function(H,E){H=g.Mo(Math.floor(H),0,100);isFinite(H)&&HD(this.app,{volume:H,muted:this.isMuted()},E)}; g.M.a55=function(H){this.xo(H,!1)}; g.M.wf=function(H){HD(this.app,{muted:!0,volume:this.getVolume()},H)}; g.M.Gep=function(){this.wf(!1)}; g.M.uS=function(H){HD(this.app,{muted:!1,volume:Math.max(5,this.getVolume())},H)}; g.M.yEp=function(){LW(this.app)||this.uS(!1)}; g.M.getPlayerMode=function(){var H={};this.app.getVideoData().Xg&&(H.pfp={enableIma:this.app.pS().allowImaMonetization,autoplay:n1(this.app.pS()),mutedAutoplay:this.app.pS().mutedAutoplay});return H}; g.M.I0=function(){var H=this.app.getPresentingPlayerType();if(H===2&&!this.app.Xm()){var E=Ye(this.app.lm());if(!(Nos(E)||g.L3(this.app.K())&&g.F(this.app.jR().getPlayerState(),1024))||ml(E))return}(E=this.app.UR().pM)?E.playVideo():this.app.playVideo(H)}; g.M.B6o=function(){XM(this.app,!0,1);this.I0()}; g.M.pauseVideo=function(H){var E=this.app.getPresentingPlayerType();if(E!==2||this.app.Xm()||Nos(Ye(this.app.lm()))){var G=this.app.UR().pM;G?G.pauseVideo():this.app.pauseVideo(E,H)}}; g.M.JE$=function(){var H=this.app,E=!1;H.X.U2&&(H.cF.publish("pageTransition"),E=!0);H.stopVideo(E)}; g.M.clearVideo=function(){}; g.M.getAvailablePlaybackRates=function(){var H=this.app.K();if(H.enableSpeedOptions){if(["https://admin.youtube.com","https://viacon.corp.google.com","https://yurt.corp.google.com"].includes(H.D?H.ancestorOrigins[0]:window.location.origin)||H.nZ)return iWd;var E=this.app.getVideoData();if(L8Q(E)){var G=E.YJ,P=E.rj;return JJ$.filter(function(Q){return Q>=G&&Q<=P})}return H.supportsVarispeedExtendedFeatures?qCu:H.U("web_remix_allow_up_to_3x_playback_rate")&&g.qt(H)?RWu:c6}return[1]}; g.M.getPlaybackQuality=function(H){return(H=this.app.PY(H))?H.getPlaybackQuality():"unknown"}; g.M.hgx=function(){}; g.M.getAvailableQualityLevels=function(H){return(H=this.app.PY(H))?(H=g.wH(H.ws(),function(E){return E.quality}),H.length&&(H[0]==="auto"&&H.shift(),H=H.concat(["auto"])),H):[]}; g.M.f$=function(){return this.getAvailableQualityLevels(1)}; g.M.Wxo=function(){return this.Ly()}; g.M.i_$=function(){return 1}; g.M.getVideoLoadedFraction=function(H){return this.app.getVideoLoadedFraction(H)}; g.M.Ly=function(){return this.getVideoLoadedFraction()}; g.M.JmJ=function(){return 0}; g.M.getSize=function(){var H=this.app.NZ().getPlayerSize();return{width:H.width,height:H.height}}; g.M.setSize=function(){this.app.NZ().resize()}; g.M.loadVideoById=function(H,E,G,P){if(!H)return!1;H=ot(H,E,G);return this.app.loadVideoByPlayerVars(H,P)}; g.M.A7J=function(H,E,G){H=this.loadVideoById(H,E,G,1);XM(this.app,H,1)}; g.M.cueVideoById=function(H,E,G,P){H=ot(H,E,G);this.app.cueVideoByPlayerVars(H,P)}; g.M.YN=function(H,E,G){this.cueVideoById(H,E,G,1)}; g.M.loadVideoByUrl=function(H,E,G,P){H=IqM(H,E,G);return this.app.loadVideoByPlayerVars(H,P)}; g.M.ZPN=function(H,E,G){H=this.loadVideoByUrl(H,E,G,1);XM(this.app,H,1)}; g.M.cueVideoByUrl=function(H,E,G,P){H=IqM(H,E,G);this.app.cueVideoByPlayerVars(H,P)}; g.M.fA=function(H,E,G){this.cueVideoByUrl(H,E,G,1)}; g.M.uoF=function(){var H=this.app.K();if(H.WF)return"";var E=this.app.pS(),G=void 0;E.isLivePlayback||(G=Math.floor(this.app.getCurrentTime(1)));return H.getVideoUrl(E.videoId,this.getPlaylistId()||void 0,G)}; g.M.xg=function(){return this.app.getDebugText()}; g.M.getVideoEmbedCode=function(){var H=this.app.K();if(H.WF)return"";var E=this.app.pS();return H.getVideoEmbedCode(E.isPrivate?"":E.title,this.app.pS().videoId,this.app.NZ().getPlayerSize(),this.getPlaylistId()||void 0)}; g.M.MD=function(H,E,G){return mG(this.app,H,E,G)}; g.M.removeCueRange=function(H){return this.app.En(H)}; g.M.loadPlaylist=function(H,E,G,P){this.app.loadPlaylist(H,E,G,P)}; g.M.eaR=function(H,E,G,P){this.loadPlaylist(H,E,G,P);XM(this.app,!0,1)}; g.M.cuePlaylist=function(H,E,G,P){this.app.cuePlaylist(H,E,G,P)}; g.M.nextVideo=function(H,E){this.app.nextVideo(H,E)}; g.M.DCo=function(){this.nextVideo();XM(this.app,!0,1)}; g.M.previousVideo=function(H){this.app.previousVideo(H)}; g.M.kqw=function(){this.previousVideo();XM(this.app,!0,1)}; g.M.playVideoAt=function(H){this.app.playVideoAt(H)}; g.M.YQN=function(H){this.playVideoAt(H);XM(this.app,!0,1)}; g.M.setShuffle=function(H){var E=this.app.getPlaylist();E&&E.setShuffle(H)}; g.M.setLoop=function(H){var E=this.app.getPlaylist();E&&(E.loop=H)}; g.M.LxZ=function(){var H=this.app.getPlaylist();if(!H)return null;for(var E=[],G=0;G=400)if(H=this.pS(),this.S.K().U("client_respect_autoplay_switch_button_renderer"))H=!!H.autoplaySwitchButtonRenderer;else{var E,G,P,Q;H=!!((E=H.getWatchNextResponse())==null?0:(G=E.contents)==null?0:(P=G.twoColumnWatchNextResults)==null?0:(Q=P.autoplay)==null?0:Q.autoplay)!==!1}H?this.L||(this.L=!0,this.BT(this.L),E=this.pS(),this.Jt(E.autonavState),this.S.logVisibility(this.element,this.L)): (this.L=!1,this.BT(this.L))}; g.M.Jt=function(H){hYt(this)?this.isChecked=H!==1:((H=H!==1)||(H=g.UF(),H=g.Xj("web_autonav_allow_off_by_default")&&!H.A7(141)&&g.tJ("AUTONAV_OFF_BY_DEFAULT")?!1:!H.A7(140)),this.isChecked=H);Hcw(this)}; g.M.onClick=function(){this.isChecked=!this.isChecked;this.S.tY(this.isChecked?2:1);Hcw(this);if(hYt(this)){var H=this.pS().autoplaySwitchButtonRenderer;this.isChecked&&(H==null?0:H.onEnabledCommand)?this.S.n_("innertubeCommand",H.onEnabledCommand):!this.isChecked&&(H==null?0:H.onDisabledCommand)&&this.S.n_("innertubeCommand",H.onDisabledCommand)}this.S.logClick(this.element)}; g.M.getValue=function(){return this.isChecked}; g.M.pS=function(){return this.S.getVideoData(1)};g.C(JGU,Xu);g.C(qD,eF);qD.prototype.r5=function(H){H?this.L||(this.Ru.Rq(this),this.L=!0):this.L&&(this.Ru.HY(this),this.L=!1);this.L&&IV(this,KNw())}; qD.prototype.D=function(){g.Tn(this.element,"ytp-menuitem-highlight-transition-enabled")}; qD.prototype.G=function(H){var E=KNw();H!==E&&(E=g.UF(),b3(190,H),b3(192,!0),E.save(),this.S.n_("cinematicSettingsToggleChange",H))}; qD.prototype.G$=function(){this.L&&this.Ru.HY(this);eF.prototype.G$.call(this)};g.C(fqn,Xu);fqn.prototype.updateCinematicSettings=function(H){this.L=H;var E;(E=this.menuItem)==null||E.r5(H);this.api.publish("onCinematicSettingsVisibilityChange",H)};g.C(eyM,Xu);g.C(iZ,Xu);iZ.prototype.setCreatorEndscreenVisibility=function(H){var E;(E=o3(this.api.lm()))==null||E.BT(H)}; iZ.prototype.L=function(H){function E(P){P==="creatorendscreen"&&(P=o3(G.api.lm()))&&P.yjN(G.hideButton)} var G=this;this.hideButton=H;this.events.Z(this.api,"modulecreated",E);E("creatorendscreen")};g.C(Zen,Xu);g.C(Ao,eF);Ao.prototype.T=function(H){this.D(H?1:0)}; Ao.prototype.ow=function(){if(this.enableNewAudioSettingsMenu||this.G){var H=this.S.getPresentingPlayerType();H===2||H===3?this.L&&(this.L=!1,this.Ru.HY(this)):(H=this.getDrcState(),H!==1?(H===0?(IV(this,this.W()===1),this.setEnabled(!0)):(IV(this,!1),this.setEnabled(!1)),this.L||(this.Ru.Rq(this),this.L=!0)):this.L&&(this.Ru.HY(this),this.L=!1))}else{H=this.hasDrcAudioTrack();var E=this.W()===1&&H;IV(this,E);this.setEnabled(H)}}; Ao.prototype.G$=function(){this.Ru.HY(this);eF.prototype.G$.call(this)}; Ao.prototype.C=function(){this.S.logClick(this.element)};g.C(VC,Xu);g.M=VC.prototype;g.M.getDrcUserPreference=function(){return this.L}; g.M.setDrcUserPreference=function(H){this.api.g5("drc_set",{pref:H});g.Fj("yt-player-drc-pref",H,31536E3);H!==this.L&&(this.L=H,this.updateEnvironmentData(),this.ZZ()&&this.api.Nn(),this.api.TW())}; g.M.updateEnvironmentData=function(){this.api.K().hC=this.L===1}; g.M.ZZ=function(){var H,E,G=(H=this.api.getVideoData())==null?void 0:(E=H.G)==null?void 0:E.L;if(!G)return!1;if(this.api.getAvailableAudioTracks().length>1&&this.api.U("mta_drc_mutual_exclusion_removal")){var P,Q,e=(P=this.api.z2())==null?void 0:(Q=P.CP)==null?void 0:Q.id;return YZ(G,function(w){var t;return w.audio.L&&((t=w.CP)==null?void 0:t.id)===e})}return YZ(G,function(w){var t; return((t=w.audio)==null?void 0:t.L)===!0})}; g.M.getDrcState=function(){return this.api.qB(3)};g.C(AZ,Xu);AZ.prototype.onVideoDataChange=function(){var H=this,E=this.api.getVideoData();this.api.dV("embargo",1);var G=E==null?void 0:E.Z7.get("PLAYER_CUE_RANGE_SET_IDENTIFIER_EMBARGO");(G==null?0:G.length)?dCs(this,G.filter(function(P){return yjM(H,P)})):(E==null?0:E.cueRanges)&&dCs(this,E.cueRanges.filter(function(P){return yjM(H,P)}))}; AZ.prototype.W=function(H){return H.embargo!==void 0}; AZ.prototype.G$=function(){Xu.prototype.G$.call(this);this.L={}};g.C(HH,Xu); HH.prototype.addEmbedsConversionTrackingParams=function(H){var E=this.api.K(),G=E.widgetReferrer,P=E.yS,Q=this.L,e="",w=E.getWebPlayerContextConfig();w&&(e=w.embedsIframeOriginParam||"");G.length>0&&(H.embeds_widget_referrer=G);P.length>0&&(H.embeds_referring_euri=P);E.D&&e.length>0&&(H.embeds_referring_origin=e);w&&w.embedsFeature&&(H.feature=w.embedsFeature);Q.length>0&&(E.U("embeds_web_enable_lite_experiment_control_arm_logging")?Q.unshift(28572):g.lK(g.CW(E))&&Q.unshift(159628),E=Q.join(","),E= g.aa()?E:g.pN(E,4),H.source_ve_path=E);this.L.length=0};g.C(nFv,Xu);g.C(HJt,Xu);g.C(Lf,g.J);Lf.prototype.G$=function(){g.J.prototype.G$.call(this);this.L=null;this.W&&this.W.disconnect()};g.C(r4Q,Xu);g.C(TW,g.D);TW.prototype.show=function(){g.D.prototype.show.call(this);this.api.logVisibility(this.element,!0)}; TW.prototype.stopTimer=function(){this.L&&(this.L.dispose(),this.L=null)}; TW.prototype.onVideoDataChange=function(H){var E,G,P=(E=this.api.getVideoData())==null?void 0:(G=E.getPlayerResponse())==null?void 0:G.playabilityStatus;P&&(E=NTw(P),g.F(this.api.getPlayerStateObject(),128)||H==="dataloaderror"||!E?(this.W=0,this.stopTimer(),this.hide()):(H=(E.remainingTimeSecs||0)*1E3,H>0&&(this.show(),this.updateValue("label",CT(E.label)),HaU(this,H))))}; TW.prototype.G$=function(){this.stopTimer();g.D.prototype.G$.call(this)};g.C(pJ7,Xu);g.C(hZ,g.D);hZ.prototype.onClick=function(){this.cF.logClick(this.element);this.cF.n_("onFullerscreenEduClicked")}; hZ.prototype.r5=function(){this.cF.isFullscreen()?this.L?this.fade.hide():this.fade.show():this.hide();this.cF.logVisibility(this.element,this.cF.isFullscreen()&&!this.L)};g.C(K6,Xu);K6.prototype.updateFullerscreenEduButtonSubtleModeState=function(H){var E;(E=this.L)!=null&&(g.Bt(E.element,"ytp-fullerscreen-edu-button-subtle",H),H&&!E.W&&(E.cF.U("player_tooltip_data_title_killswitch")?E.element.setAttribute("title","Scroll for details"):E.element.setAttribute("data-tooltip-title","Scroll for details"),M2(E.cF,E.element,E),E.W=!0))}; K6.prototype.updateFullerscreenEduButtonVisibility=function(H){var E;(E=this.L)!=null&&(E.L=H,E.r5())};g.C(s2n,g.D);g.C(DJn,Xu);g.C(Oa,Xu);Oa.prototype.getSphericalProperties=function(){var H=g.GW(this.api.lm());return H?H.getSphericalProperties():{}}; Oa.prototype.setSphericalProperties=function(H){if(H){var E=g.GW(this.api.lm());E&&E.setSphericalProperties(H,!0)}};g.C(Srv,Xu);g.M=Srv.prototype;g.M.createClientVe=function(H,E,G,P){this.api.createClientVe(H,E,G,P===void 0?!1:P)}; g.M.createServerVe=function(H,E,G){this.api.createServerVe(H,E,G===void 0?!1:G)}; g.M.setTrackingParams=function(H,E){this.api.setTrackingParams(H,E)}; g.M.logClick=function(H,E){this.api.logClick(H,E)}; g.M.logVisibility=function(H,E,G){this.api.logVisibility(H,E,G)}; g.M.hasVe=function(H){return this.api.hasVe(H)}; g.M.destroyVe=function(H){this.api.destroyVe(H)};var hj={},NLw=(hj[0]=function(H){return d8d(H,function(E){var G;return(G=E.CP)==null?void 0:G.id})},hj[2]=function(H){return ji(H,Heu)},hj[3]=function(H){return ji(H,IM)},hj[4]=function(H){return ji(H,u$l)},hj[1]=function(H){return ji(H,p0)},hj); s4.prototype.qB=function(H){return this.G[H]}; s4.prototype.TW=function(){for(var H=this.W,E={},G=g.R(Qg),P=G.next();!P.done;P=G.next())if(P=P.value,this.L[P]){H=XzR[P].Dy(H,this.videoData);for(var Q=g.R(Qg),e=Q.next();!e.done;e=Q.next())e=e.value,E[e]!==void 0||YZ(H,XzR[e].VZ)||(E[e]=XzR[P].RZ);E[P]===void 0&&(E[P]=0)}else E[P]=1;this.G=E}; var Qg=[0,1,2,3,4],$k={},XzR=($k[0]={RZ:2,VZ:CDl,Dy:XWM},$k[2]={RZ:4,VZ:Heu,Dy:hpv},$k[3]={RZ:5,VZ:IM,Dy:u9u},$k[1]={RZ:3,VZ:p0,Dy:Lrj},$k[4]={RZ:6,VZ:u$l,Dy:Hpd},$k);var nVl=!1;eb.prototype.setPlaybackRate=function(H){this.playbackRate=Math.max(1,H)}; eb.prototype.getPlaybackRate=function(){return this.playbackRate};yMv.prototype.oZ=function(H){var E=g.KJ(H.info.uJ.info,this.ou.T6),G=H.info.U7+this.D,P=H.info.startTime*1E3;if(this.policy.MZ)try{P=this.policy.MZ?g.wD(H)*1E3:H.info.startTime*1E3}catch(w){Math.random()>.99&&this.logger&&(P=v_(H.W).slice(0,1E3),this.logger&&this.logger({parserErrorSliceInfo:H.info.PO(),encodedDataView:g.H4(P,4)})),P=H.info.startTime*1E3}var Q=H.info.clipId,e=this.policy.MZ?g.ql1(H)*1E3:H.info.duration*1E3;this.policy.MZ&&(P<0||e<0)&&(this.logger&&(this.logger({missingSegInfo:H.info.PO(), startTimeMs:P,durationMs:e}),this.policy.X7||(P<0&&(P=H.info.startTime*1E3),e<0&&(e=H.info.duration*1E3))),this.policy.X7&&(P<0&&(P=H.info.startTime*1E3),e<0&&(e=H.info.duration*1E3)));return{formatId:E,U7:G,startTimeMs:P,clipId:Q,VR:e}}; yMv.prototype.Zb=function(H){this.timestampOffset=H};FH.prototype.seek=function(H,E){H!==this.targetTime&&(this.seekCount=0);this.targetTime=H;var G=this.videoTrack.L,P=this.audioTrack.L,Q=this.audioTrack.rP,e=$FQ(this,this.videoTrack,H,this.videoTrack.rP,E);E=$FQ(this,this.audioTrack,this.policy.dP?H:e,Q,E);H=Math.max(H,e,E);this.D=!0;this.ou.isManifestless&&(Fc7(this,this.videoTrack,G),Fc7(this,this.audioTrack,P));return H}; FH.prototype.isSeeking=function(){return this.D}; FH.prototype.Zf=function(H){this.W=H}; var han=2/24;var LT7=0;g.M=J2.prototype;g.M.CO=function(){this.L_=this.now();aPd(this.mZ,this.L_);this.gP.CO()}; g.M.X0=function(H,E){var G=this.policy.W?(0,g.ON)():0;yX(this,H,E);H-this.C<10&&this.W>0||this.xE(H,E);this.gP.X0(H,E);this.policy.W&&(H=(0,g.ON)()-G,this.G6+=H,this.au=Math.max(H,this.au))}; g.M.xE=function(H,E){var G=(H-this.C)/1E3,P=E-this.G;this.Sl||(oPM(this.mZ,G,P),this.jN(G,P));this.C=H;this.G=E}; g.M.cn=function(){this.E7&&OPQ(this);this.gP.cn()}; g.M.a4=function(H){this.E7||(this.E7=this.T-this.V8+H,this.gt=this.T,this.ML=this.B)}; g.M.BN=function(H,E){H=H===void 0?this.B:H;E=E===void 0?this.T:E;this.W>0||(this.N=H,this.W=E,this.p_=this.isActive=!0)}; g.M.f9=function(){return this.lk||2}; g.M.IX=function(){}; g.M.NF=function(){var H,E={rn:this.requestNumber,rt:(this.B-this.L).toFixed(),lb:this.T,stall:(1E3*this.D).toFixed(),ht:(this.L_-this.L).toFixed(),elt:(this.N-this.L).toFixed(),elb:this.W,d:(H=this.PF)==null?void 0:H.hK()};this.url&&Zhw(E,this.url);this.policy.W&&(E.mph=this.au.toFixed(),E.tph=this.G6.toFixed());E.ulb=this.O7;E.ult=this.WF;return E}; g.M.now=function(){return(0,g.ON)()}; g.M.deactivate=function(){this.isActive&&(this.isActive=!1)};g.C(en,J2);g.M=en.prototype;g.M.NF=function(){var H=J2.prototype.NF.call(this);H.pb=this.SI;H.pt=(1E3*this.U2).toFixed();H.se=this.jT;return H}; g.M.O0=function(){var H=this.gP;this.BF||(this.BF=H.O0?H.O0():1);return this.BF}; g.M.U4=function(){return this.iA?this.O0()!==1:!1}; g.M.bY=function(H,E,G){if(!this.dP){this.dP=!0;if(!this.Sl){yX(this,H,E);this.xE(H,E);var P=this.O0();this.jT=G;if(!this.Sl)if(P===2){P=H-this.N0)||T4(this,P,E),this.W>0&&ZV(this.mZ,E,this.D));H=(H-this.L)/ 1E3||.01;this.policy.N&&!(this.W>0)||hC(this.mZ,H,this.G,Zo1(this),this.KL)}this.deactivate()}}; g.M.Oq=function(H,E,G){G&&(this.BF=2);H<0&&this.lk&&(H=this.lk);E?this.Yp+=H:this.eR+=H}; g.M.f9=function(){return this.eR||this.Yp||J2.prototype.f9.call(this)}; g.M.xE=function(H,E){var G=(H-this.C)/1E3,P=E-this.G,Q=this.O0();this.isActive?Q===1&&((P>0||this.policy.T)&&(G>.2||P<1024)?(this.D+=G,P>0&&G>.2&&T4(this,this.Gy?G:.05,P),this.s7=!0):P>0&&(T4(this,G,P),this.s7=!0)):E&&E>=this.policy.L&&this.BN(H,E);J2.prototype.xE.call(this,H,E)}; g.M.G8=function(H){if(!this.Sl){yX(this,H,this.T);var E=(H-this.L)/1E3;this.O0()!==2&&this.W>0&&(this.D+=(H-this.C)/1E3,ZV(this.mZ,this.G,this.D));hC(this.mZ,E,this.G,Zo1(this),this.KL,!0);H=(H-this.C)/1E3;oPM(this.mZ,H,0);this.jN(H,0)}}; g.M.BN=function(H,E){H=H===void 0?this.B:H;E=E===void 0?this.T:E;if(!(this.W>0)&&(J2.prototype.BN.call(this,H,E),this.O0()===1)){E=(this.L_-this.L)/1E3;var G=(H-this.L_)/1E3;this.iA&&LWQ(this,this.now());this.FI||this.Sl||(this.lk&&(G=Math.max(0,G-this.lk)),H=this.mZ,H.N.ra(1,E),H.PF.ra(1,G))}}; g.M.V1=function(){this.iA&&LWQ(this,this.now());return this.z$}; g.M.kT=function(){var H;if(H=this.G>this.Pw)H=(H=this.G)?H>=this.policy.L:!1;return H}; g.M.iy=function(){return this.MZ}; g.M.ww=function(H){H=H===void 0?this.now():H;if(this.iA){LWQ(this,H);if(this.BF?this.U4():this.Jm!==this.T$){var E=this.T$;if(H0?G+H:G+Math.max(H,E)}; g.M.C9=function(){return this.now()-this.N}; g.M.Gz=function(){return(this.G-this.W)*1E3/this.C9()||0}; g.M.sS=function(){return this.N};Qw.prototype.feed=function(H){HV(this.L,H);this.Wo()}; Qw.prototype.Wo=function(){if(this.D){if(!this.L.totalLength)return;var H=this.L.split(this.G-this.W),E=H.iW;H=H.EH;if(!this.gP.a4(this.D,E,this.W,this.G))return;this.W+=E.totalLength;this.L=H;this.W===this.G&&(this.D=this.G=this.W=void 0)}for(;;){var G=0;H=g.R(Yau(this.L,G));E=H.next().value;G=H.next().value;G=g.R(Yau(this.L,G));H=G.next().value;G=G.next().value;if(E<0||H<0)break;if(!(G+H<=this.L.totalLength)){if(!(this.gP.a4&&G+1<=this.L.totalLength))break;G=this.L.split(G).EH;this.gP.a4(E,G,0, H)&&(this.D=E,this.W=G.totalLength,this.G=H,this.L=new hJ([]));break}H=this.L.split(G).EH.split(H);G=H.EH;this.gP.VJ(E,H.iW);this.L=G}}; Qw.prototype.dispose=function(){this.L=new hJ};g.M=nk.prototype;g.M.hw=function(){return 0}; g.M.t0=function(){return null}; g.M.f7=function(){return null}; g.M.sC=function(){return this.state>=1}; g.M.isComplete=function(){return this.state>=3}; g.M.LX=function(){return this.state===5}; g.M.onStateChange=function(){}; g.M.Ca=function(H){var E=this.state;this.state=H;this.onStateChange(E);this.callback&&this.callback(this,E)}; g.M.yJ=function(H){H&&this.state=this.xhr.HEADERS_RECEIVED}; g.M.getResponseHeader=function(H){try{return this.xhr.getResponseHeader(H)}catch(E){return""}}; g.M.m4=function(){return+this.getResponseHeader("content-length")}; g.M.Md=function(){return this.W}; g.M.Nk=function(){return this.status>=200&&this.status<300&&!!this.W}; g.M.I4=function(){return this.L.totalLength>0}; g.M.iN=function(){var H=this.L;this.L=new hJ;return H}; g.M.x$=function(){return this.L}; g.M.abort=function(){this.Iu=!0;this.xhr.abort()}; g.M.gh=function(){return!0}; g.M.DH=function(){return this.G}; g.M.K6=function(){return""};g.M=Kr7.prototype; g.M.run=function(){var H=this,E,G,P,Q,e,w,t,k,W,I,A,m,u,v,n;return g.L(function(O){if(O.L==1){H.status=200;E=H.L.get("docid");G=Na(H.L.get("fmtid")||"");P=H.L.get("lmt")||"0";Q=+(H.L.get("csz")||0);if(!E||!G||!Q)throw Error("Invalid local URL");H.L.get("ck")&&H.L.get("civ")&&(e=new cjU(H.L.get("ck"),H.L.get("civ")));w=H.range;t=Math.floor(w.start/Q);k=Math.floor(w.end/Q);W=t}if(O.L!=5)return W<=k?g.U(O,eJ1(E,G,P,W,e),5):O.bJ(0);I=O.W;if(I===void 0)throw Error("invariant: data is undefined");A=W*Q; m=(W+1)*Q;u=Math.max(0,w.start-A);v=Math.min(w.end+1,m)-(u+A);n=new Uint8Array(I.buffer,u,v);H.W.append(n);H.loaded+=v;H.loaded=200&&this.status<300&&!!this.W}; g.M.I4=function(){return!!this.L.totalLength}; g.M.iN=function(){var H=this.L;this.L=new hJ;return H}; g.M.x$=function(){return this.L}; g.M.Iu=function(){return this.aborted}; g.M.abort=function(){this.G&&this.G.cancel().catch(function(){}); this.D&&this.D.abort();this.aborted=!0}; g.M.gh=function(){return!0}; g.M.DH=function(){return this.T}; g.M.K6=function(){return this.errorMessage};g.M=yhd.prototype;g.M.onDone=function(){if(!this.Iu){this.status=this.xhr.status;try{this.response=this.xhr.response,this.W=this.response.byteLength}catch(H){}this.L=!0;this.gP.cn()}}; g.M.N7=function(){this.xhr.readyState===2&&this.gP.CO()}; g.M.onProgress=function(H){this.Iu||(this.status=this.xhr.status,this.L||(this.W=H.loaded),this.gP.X0((0,g.ON)(),H.loaded))}; g.M.vr=function(){return this.xhr.readyState>=2}; g.M.getResponseHeader=function(H){try{return this.xhr.getResponseHeader(H)}catch(E){return g.p5(Error("Could not read XHR header "+H)),""}}; g.M.m4=function(){return+this.getResponseHeader("content-length")}; g.M.Md=function(){return this.W}; g.M.Nk=function(){return this.status>=200&&this.status<300&&this.L&&!!this.W}; g.M.I4=function(){return this.L&&!!this.response&&!!this.response.byteLength}; g.M.iN=function(){var H=this.response;this.response=void 0;return new hJ([new Uint8Array(H)])}; g.M.x$=function(){return new hJ([new Uint8Array(this.response)])}; g.M.abort=function(){this.Iu=!0;this.xhr.abort()}; g.M.gh=function(){return!1}; g.M.DH=function(){return!1}; g.M.K6=function(){return""};g.C(Dx,g.J);Dx.prototype.mQ=function(){if(!this.OM.length)return[];var H=this.OM;this.OM=[];this.G=g.Q3(H).info;return H}; Dx.prototype.u7=function(){return this.OM}; Dx.prototype.G$=function(){g.J.prototype.G$.call(this);this.L=null;this.OM.length=0;this.kp.length=0;this.G=null};g.C(ww,g.J);g.M=ww.prototype; g.M.P87=function(){if(!this.Iu()){var H=(0,g.ON)(),E=!1;if(this.policy.vD){var G=this.timing.W>0?this.timing.N:this.timing.L;this.policy.EjF&&this.G&&(G=this.G);H=H-G-(this.policy.uX?this.policy.yw:this.timing.f9()*1E3);G=LT(nI(this),!1);H>=2E3*G?E=!0:H>=this.policy.YE*G&&(this.L=this.policy.AD)}else if(this.timing.W>0){if(this.C){this.policy.AG&&(this.L=0);return}H=this.timing.iy();this.timing.ww();this.timing.iy()-H>=this.policy.hC*.8?(this.L++,E=this.L>=5):this.L=0}else E=H-this.timing.V1(),this.policy.AD&& E>0&&(this.L+=1),H=LT(nI(this),!1)*this.policy.Jb,E=E>H*1E3;this.L>0&&this.gP.e9();E?this.HW():this.W.start()}}; g.M.HW=function(){this.T=!0;this.gP.M5();this.lastError="net.timeout";Cv(this)}; g.M.canRetry=function(H){var E=nI(this);H=H?this.policy.gT:this.policy.To;return E.timedOut0&&(E=fE(E.L,0),H.ubyte=E,G===1&&E===0&&(H.b248180278=!0))}this.tK&&(H.rc=this.policy.kS?this.tK:this.tK.toString());this.policy.b8&&this.yg&&(H.tr=this.yg);H.itag=this.info.kp[0].uJ.info.itag;H.ml=""+ +this.info.kp[0].uJ.Dr();H.sq=""+this.info.kp[0].U7;this.Sy&&(H.ifi=""+ +Ic(3,this.info.Du.W));this.tK!==410&&this.tK!==500&&this.tK!==503||(H.fmt_unav="true");var P;(G=this.errorMessage||((P=this.xhr)==null? void 0:P.K6()))&&(H.msg=G);this.zs&&(H.smb="1");this.info.isDecorated()&&(H.sdai="1");return H}; g.M.eP=function(){return khv(this.timing)}; g.M.K6=function(){return this.xhr.K6()||""}; g.M.kT=function(){return this.isComplete()||this.timing.kT()}; g.M.X0=function(){!this.Iu()&&this.xhr&&(this.tK=this.xhr.status,this.policy.ej&&this.wO&&this.k7(!1),this.iB()?this.yJ(2):!this.U6&&this.kT()&&(this.yJ(),this.U6=!0))}; g.M.CO=function(){if(!this.Iu()&&this.xhr){if(!this.Dz&&this.xhr.vr()&&this.xhr.getResponseHeader("X-Walltime-Ms")){var H=Number(this.xhr.getResponseHeader("X-Walltime-Ms"));this.Dz=((0,g.ON)()-H)/1E3}this.xhr.vr()&&this.xhr.getResponseHeader("X-Restrict-Formats-Hint")&&this.policy.wTJ&&!nlj()&&g.Fj("yt-player-headers-readable",!0,2592E3);H=Number(this.xhr.getResponseHeader("X-Head-Seqnum"));var E=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")),G;(G=this.QQ)==null||G.stop();this.jl=H||this.jl; this.XG=E||this.XG}}; g.M.cn=function(){var H=this.xhr;if(!this.Iu()&&H){this.tK=H.status;H=this.B1(H);if(this.policy.b8){var E;(E=this.QQ)==null||E.stop()}H===5?Cv(this.E9):this.Ca(H);this.E9.W.stop()}}; g.M.B1=function(H){Y7T(this);if(l1(this.E9,this.xhr.status,this.bM?this.timing.p_||this.Hj:this.xhr.Nk(),!1,this.Xl))return 5;var E="";X$(this.E9,this.xhr)&&(E=DjQ(this.E9,this.xhr));if(E)return Dq(nI(this.E9)),this.info.EB(this.Sy,E),3;E=H.Md();if(this.Ty){this.k7(!0);Y7T(this);if(l1(this.E9,this.xhr.status,this.timing.p_||this.Hj,!1,this.Xl))return 5;if(!this.Wa){if(this.Hj)return Dq(nI(this.E9)),3;this.E9.lastError="net.closed";return 5}}else{if(l1(this.E9,this.xhr.status,this.xhr.Nk(),!1,this.Xl))return 5; var G=this.info.G;if(G&&G!==E||H.DH())return this.E9.lastError="net.closed",5;this.k7(!0)}G=rjM(this)?H.getResponseHeader("X-Bandwidth-Est"):0;if(H=rjM(this)?H.getResponseHeader("X-Bandwidth-Est3"):0)this.Vi=!0,this.policy.E3&&(G=H);$zQ(this.E9,E,G?Number(G):0,this.info.kp[0].type===5);return 4}; g.M.canRetry=function(){this.Iu();var H=this.info.isDecorated();return this.E9.canRetry(H)}; g.M.onStateChange=function(){this.isComplete()&&(this.policy.tN?this.M5():this.timing.deactivate())}; g.M.HW=function(){this.E9.HW()}; g.M.e9=function(){this.callback&&this.callback(this,this.state)}; g.M.mA=function(){return this.E9.mA()}; g.M.dispose=function(){nk.prototype.dispose.call(this);this.E9.dispose();var H;(H=this.QQ)==null||H.dispose();this.policy.tN||this.M5()}; g.M.M5=function(){this.xhr&&this.xhr.abort();this.timing.deactivate()}; g.M.mQ=function(){if(!this.u7().length)return[];this.j9=!0;return this.wO.mQ()}; g.M.iB=function(){if(this.state<1)return!1;if(this.wO&&this.wO.OM.length)return!0;var H;return((H=this.xhr)==null?0:H.I4())?!0:!1}; g.M.u7=function(){this.k7(!1);return this.wO?this.wO.u7():[]}; g.M.k7=function(H){try{if(H||this.xhr.vr()&&this.xhr.I4()&&!X$(this.E9,this.xhr)&&!this.sD)this.wO||(this.wO=new Dx(this.policy,this.info.kp)),this.xhr.I4()&&(this.Ty?this.Ty.feed(this.xhr.iN()):ec(this.wO,this.xhr.iN(),H&&!this.xhr.I4()))}catch(E){this.Ty?gIQ(this,E):g.p5(E)}}; g.M.VJ=function(H,E){switch(H){case 21:H=E.split(1).EH;fZ7(this,H);break;case 22:this.Wa=!0;ec(this.wO,new hJ([]),!0);break;case 43:if(H=zb(new wu(E),1))this.info.EB(this.Sy,H),this.Hj=!0;break;case 45:E=CIt(new wu(E));H=E.cP;E=E.EO;H&&E&&(this.T1=H/E);break;case 44:this.El=CPn(new wu(E));var G,P,Q;!this.timing.p_&&((G=this.El)==null?void 0:G.action)===4&&((P=this.El)==null?0:(Q=P.xm)==null?0:Q.bM)&&(this.bM=this.El.xm.bM);break;case 53:this.policy.b8&&(H=q6U(new wu(E)).qO)&&(this.QQ||(this.qO=H, this.QQ=new g.Wt(this.fk,H,this)),this.QQ.start());break;case 60:this.OD=c8(new wu(E));break;case 58:if(H=obU(new wu(E)))this.eb=H,H.eb===3&&(this.Xl=!0)}}; g.M.a4=function(H,E,G,P){G||this.timing.a4(P);if(H!==21)return!1;if(H=this.policy.ej)if(H*=this.info.kp[0].uJ.info.Xo,E.totalLength+G!==P&&E.totalLength0)return!1;if(!this.xhr.vr())return!0;if(this.Ty)var H=!this.info.G;else this.xhr.m4()?H=!1:(H=this.xhr.getResponseHeader("content-type"),H=H==="audio/mp4"||H==="video/mp4"||H==="video/webm");if(!H)return!1;if(isNaN(this.info.RP)){H=this.xhr.getResponseHeader("x-head-seqnum");var E=this.timing.policy.B?1:0;if(H&&Number(H)>this.info.kp[0].U7+E)return!1}return!0}; g.M.by=function(){return+this.xhr.getResponseHeader("X-Segment-Lmt")||0}; g.M.t0=function(){this.xhr&&(this.jl=Number(this.xhr.getResponseHeader("X-Head-Seqnum")));return this.jl}; g.M.f7=function(){this.xhr&&(this.XG=Number(this.xhr.getResponseHeader("X-Head-Time-Millis")));return this.XG}; g.M.Sx=function(){return this.E9.Sx()}; g.M.fk=function(){if(!this.Iu()&&this.xhr){this.yg="heartbeat";var H=this.E9;H.L+=2;this.e9()}};g.C(o2,J2);g.M=o2.prototype;g.M.xE=function(H,E){var G=(H-this.C)/1E3,P=E-this.G;this.W>0?P>0&&(this.Jm&&(G>.2||P<1024?(this.D+=G,G>.2&&Oaw(this,.05,P)):Oaw(this,G,P)),this.T$&&(this.z$+=P,this.eR+=G)):E>this.policy.L&&this.BN(H,E);J2.prototype.xE.call(this,H,E)}; g.M.bY=function(H,E){yX(this,H,E);this.xE(H,E);this.Jm&&(E=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.W>0&&ZV(this.mZ,this.z$,this.D),H=(H-this.L)/1E3||.01,this.policy.N&&!(this.W>0)||hC(this.mZ,H,this.G,E,!1))}; g.M.G8=function(H){yX(this,H,this.T);var E=(H-this.C)/1E3;oPM(this.mZ,E,0);this.jN(E,0);!this.Jm&&this.W>0||(E=this.G*this.snapshot.stall+this.G/this.snapshot.byterate,this.W>0&&(this.D+=(H-this.C)/1E3,ZV(this.mZ,this.z$,this.D)),hC(this.mZ,(H-this.L)/1E3||.01,this.G,E,!1,!0))}; g.M.i7=function(H){H=H.q$||2147483647;(H&2)!==2&&(this.T$=!1);(H&1)===1&&(this.Jm=!0)}; g.M.a7=function(H){H=H.q$||2147483647;(H&2)===2&&(this.T$=!1);(H&1)===1&&(this.Jm=!1)}; g.M.sS=function(){return this.N}; g.M.C9=function(){var H=this.T$?this.now()-this.C:0;return Math.max(this.eR*1E3+H,1)}; g.M.Gz=function(){return this.z$*1E3/this.C9()}; g.M.BN=function(H,E){H=H===void 0?this.B:H;E=E===void 0?this.T:E;this.W>0||(J2.prototype.BN.call(this,H,E),E=this.mZ,H=(H-this.L_)/1E3,E.N.ra(1,(this.L_-this.L)/1E3),E.PF.ra(1,H))}; g.M.IX=function(H){this.Yp=H}; g.M.NF=function(){var H=J2.prototype.NF.call(this);H.rbw=this.Gz();H.rbe=+this.T$;H.gbe=+this.Jm;H.ackt=(this.Yp-this.L).toFixed();return H}; g.M.ww=function(){}; g.M.iy=function(){return NaN}; g.M.V1=function(){return this.L+this.snapshot.delay*1E3};YM.prototype.VJ=function(H,E){switch(H){case 20:H=new wu(E);H={ym:hU(H,1),videoId:zb(H,2),itag:hU(H,3),lmt:hU(H,4),xtags:zb(H,5),TB:hU(H,6),QB:Qz(H,8),Fu:hU(H,9),EZN:hU(H,10),startMs:hU(H,11),durationMs:hU(H,12),HV:hU(H,14),timeRange:$M(H,15,Glw),xj:hU(H,16),Dh:hU(H,17),clipId:zb(H,1E3)};this.Na(H);break;case 21:this.xO(E,!1);break;case 22:this.pB(E);break;case 31:H=ZI(E,nhu);this.SN(H);break;case 52:H=ZI(E,VG1);this.KK(H);break;default:this.Ci(H,E)}}; YM.prototype.Na=function(){}; YM.prototype.Ci=function(){};var Z5D=new Set([53,49,50]);g.C(Z$,YM);g.M=Z$.prototype;g.M.Ci=function(H,E){NpM(this.gP)&&!Z5D.has(H)?this.L.push({id:H,data:E}):S97(this,H,E)}; g.M.gj=function(H){H=new wu(H);H={Hva:ue(H,1,Ca),JNJ:ue(H,2,Ca)};this.gP.gj(H)}; g.M.qg=function(H){var E=new wu(H);H=dV(E,1);var G=dV(E,2);E=dV(E,3);this.gP.qg(H,G,E)}; g.M.DL=function(H){H=CIt(new wu(H));this.gP.DL(H)}; g.M.F1=function(H){H=ZI(H,Pnj);this.gP.F1(H)}; g.M.AB=function(H){H=new wu(H);H={videoId:zb(H,1),formatId:$M(H,2,Ca),endTimeMs:hU(H,3),AHx:hU(H,4),mimeType:zb(H,5),jn:$M(H,6,Vx7),indexRange:$M(H,7,Vx7),Aw:$M(H,8,MOT)};this.gP.AB(H)}; g.M.A6=function(H){H=new wu(H);H={type:hU(H,1),scope:hU(H,2),value:eH(H,3),sendByDefault:Qz(H,4),writePolicy:hU(H,5)};this.gP.A6(H)}; g.M.R7=function(){this.gP.R7()}; g.M.Wy=function(H){H=zis(new wu(H));this.gP.Wy(H)}; g.M.qa=function(H){H=q6U(new wu(H));this.gP.qa(H)}; g.M.wu=function(H){H=CPn(new wu(H));this.gP.wu(H)}; g.M.Lq=function(H){H={redirectUrl:zb(new wu(H),1)};this.gP.Lq(H)}; g.M.xO=function(H){var E=fE(H,0);if(H.totalLength!==1){H=H.split(1).EH;var G=this.W[E]||null;G&&EW(this.gP.ZO,E,G,H)}}; g.M.pB=function(H){H=fE(H,0);var E=this.W[H]||null;E&&this.gP.pB(H,E)}; g.M.KK=function(H){this.gP.KK(H)}; g.M.Na=function(H){var E=H.ym,G=H.QB,P=H.TB,Q=H.Dh,e=H.xj,w=H.Fu,t=H.startMs,k=H.durationMs,W=H.timeRange,I=H.HV,A=H.clipId,m=OL(H);H=mOW.has(AD[""+H.itag]);this.W[E]=m;this.gP.Oq(m,H,{ym:E,QB:!!G,TB:P!=null?P:-1,Fu:w!=null?w:-1,startMs:t!=null?t:-1,durationMs:k!=null?k:-1,HV:I,Dh:Q,xj:e,clipId:A,timeRange:W})}; g.M.i7=function(H){H={q$:hU(new wu(H),1)};this.gP.i7(H)}; g.M.a7=function(H){H={q$:hU(new wu(H),1)};this.gP.a7(H)}; g.M.SN=function(H){this.gP.SN(H)}; g.M.zd=function(H){H=obU(new wu(H));this.gP.zd(H)}; g.M.VL=function(H){H={LI:$M(new wu(H),1,Wit)};this.gP.VL(H)}; g.M.onSnackbarMessage=function(H){H=hU(new wu(H),1);this.gP.onSnackbarMessage(H)}; g.M.NE=function(H){H={N9:ue(new wu(H),1,VYU)};this.gP.NE(H)}; g.M.Va=function(H){H=new wu(H);H={reloadPlaybackParams:$M(H,1,DEU),o_:Qz(H,2)};this.gP.Va(H)}; g.M.Yb=function(){for(var H=g.R(this.L),E=H.next();!E.done;E=H.next())E=E.value,S97(this,E.id,E.data);this.L=[]};g.C(s$,g.J);g.M=s$.prototype;g.M.S$=function(){return Array.from(this.eq.keys())}; g.M.d0=function(H){H=this.eq.get(H);var E=H.OM;H.LT+=E.totalLength;H.OM=new hJ;return E}; g.M.f0=function(H){return this.eq.get(H).f0}; g.M.nG=function(H){return this.eq.get(H).nG}; g.M.Oq=function(H,E,G){this.eq.get(H)||this.eq.set(H,{OM:new hJ,LT:0,bytesReceived:0,v7:0,Bw:!1,f0:!1,nG:!1,VS:E,TK:[],kp:[],YK:[],G_:!1,Ov:new Map,Ts:new Map,ll:[]});E=this.eq.get(H);this.ou?(H=YQM(this,H,G),TwT(this,G.ym,E,H)):(G.QB?E.v7=G.HV:E.YK.push(G),E.TK.push(G))}; g.M.Hn=function(H){var E;return((E=this.eq.get(H))==null?void 0:E.kp)||[]}; g.M.yJ=function(){for(var H=g.R(this.eq.values()),E=H.next();!E.done;E=H.next())if(E=E.value,E.Bw){if(E.onProgress)E.onProgress();E.Bw=!1}}; g.M.pB=function(H,E){E=this.eq.get(E);p3?E&&!E.f0&&(E.Ov.get(H)?E.Ov.get(H).No=!0:E.Ov.set(H,{data:new hJ,Qu:0,No:!0}),E.nG=!0):E&&!E.nG&&(E.nG=!0)}; g.M.mQ=function(H){if(p3){var E=this.eq.get(H);if(E)for(var G=g.R(E.Ov),P=G.next();!P.done;P=G.next()){var Q=g.R(P.value);P=Q.next().value;Q=Q.next().value;var e=E.Ts.get(P);if(PX(e[0])){if(!Q.No)continue;var w=Q.data,t=0,k=[];e=g.R(e);for(var W=e.next();!W.done;W=e.next()){W=W.value;var I=W.W,A=Ke(w,t,I);t+=I;k.push(new cJ(W,A))}E.ll.push.apply(E.ll,g.EC(k))}else if(Q.data.totalLength>0||!e[0].range&&Q.No)w=void 0,t=e[0],k=Q.Qu,e=Q.data,t.range||(w=Q.No),w=new cJ(L5v(t,t.L+k,e.totalLength,w),e), Q.Qu+=w.info.W,E.ll.push(w);E.Ov.get(P).data=new hJ;Q.No&&E.Ov.delete(P)}H=this.eq.get(H);if(!H)return[];E=H.ll;H.ll=[];G=g.R(E);for(P=G.next();!P.done;P=G.next())H.LT+=P.value.info.W;return E||[]}G=(E=this.eq.get(H))==null?void 0:E.wO;if(!G)return[];this.k7(H,G);return G.mQ()}; g.M.iB=function(H){if(p3)return fk(this,H);var E,G,P;return!!((G=(E=this.eq.get(H))==null?void 0:E.wO)==null?0:(P=G.u7())==null?0:P.length)||fk(this,H)}; g.M.k7=function(H,E){for(;fk(this,H);){var G=this.d0(H);var P=H;P=this.eq.get(P).f0&&!phw(this,P);ec(E,G,P&&Hls(this,H))}}; g.M.G$=function(){g.J.prototype.G$.call(this);for(var H=g.R(this.eq.keys()),E=H.next();!E.done;E=H.next())Ly(this,E.value);var G;if((G=this.nS)==null?0:G.Z7)for(H=g.R(this.eq.values()),E=H.next();!E.done;E=H.next())E=E.value,E.Ov.clear(),E.Ts.clear(),E.ll.length=0,E.kp.length=0,E.TK.length=0,E.YK.length=0;this.eq.clear()}; var p3=!1;var Cyo=new Set([2]);g.C(JU,g.J);g.M=JU.prototype;g.M.X0=function(){!this.Iu()&&this.xhr&&(this.k7(!1),HJ(this.gP,this))}; g.M.CO=function(){}; g.M.cn=function(){if(!this.Iu()&&this.xhr){var H=this.B1();H===5?Cv(this.E9):this.Ca(H);this.E9.W.stop();var E;(E=this.kP)==null||E.stop()}}; g.M.B1=function(){var H="";X$(this.E9,this.xhr)&&(H=DjQ(this.E9,this.xhr));if(H)return this.info.Du.EB(this.Sy,H),3;this.k7(!0);if(l1(this.E9,this.xhr.status,this.xhr.Nk(),this.info.C1(),this.Xl))return 5;if(this.MJ)return 3;$zQ(this.E9,this.xhr.Md(),0,this.C1());this.policy.cK&&PCQ(this.gP);return 4}; g.M.k7=function(H){var E=this.xhr;!H&&X$(this.E9,this.xhr)||!E.I4()||(H=E.iN(),this.Ty.feed(H))}; g.M.VJ=function(H,E){this.xhr.gh()&&H===21&&gFj(this);this.m0.VJ(H,E)}; g.M.a4=function(H,E,G,P){G||(this.s9.a4(P),this.policy.AL&&H===21&&gFj(this));if(H!==21)return!1;this.s9.p_=!0;H=E.totalLength;G||(this.Xs=fE(E,0),E=E.split(1).EH);var Q=this.policy.SZ,e=this.m0.W[this.Xs],w=this.ou.G.get(e);if(Q&&w&&(Q*=w.info.Xo,H+G!==P&&H0){this.policy.vD&&this.E9.W.stop();H=this.s9.C9();E=this.s9.Gz();var G=GKw(this,H);if(!(E>G.X6||G.D8>0&&this.info.KC()>G.D8)){this.LJ=(0,g.ON)();var P;(P=this.kP)==null||P.stop();this.policy.cK&&(P=this.gP,H={Rt:Math.round(E*H/1E3),uN:H},P.policy.cK&&(P.z$=H,P.EV++));this.HW()}}}}; g.M.HW=function(){this.E9.HW()}; g.M.wu=function(H){this.gP.wu(H,this.tR())}; g.M.Lq=function(H){this.MJ=!0;this.info.Du.EB(this.Sy,H.redirectUrl)}; g.M.i7=function(H){this.s9 instanceof o2&&this.s9.i7(H)}; g.M.a7=function(H){this.s9 instanceof o2&&this.s9.a7(H)}; g.M.AB=function(H){var E=H.formatId,G=OL({itag:E.itag,lmt:E.lmt,xtags:E.xtags}),P,Q,e=new xi(((P=H.jn)==null?void 0:P.first)||0,((Q=H.jn)==null?void 0:Q.pk)||0),w,t;P=new xi(((w=H.indexRange)==null?void 0:w.first)||0,((t=H.indexRange)==null?void 0:t.pk)||0);this.ou.G.get(G)||(G=H.Aw||{},G.mimeType=H.mimeType,G.itag=E.itag,G.lastModified=""+(E.lmt||0),G.xtags=E.xtags,H=this.ou,E=LK(""),G=Kf(G,null),jI(H,new Xv(E,G,e,P)))}; g.M.DL=function(H){this.gP.DL(H,this.tR())}; g.M.onSnackbarMessage=function(H){if(this.policy.zn)this.gP.onSnackbarMessage(H)}; g.M.NE=function(H){this.policy.C&&this.gP.NE(H,this.tR())}; g.M.SN=function(H){this.CH=H;this.E9.G=(0,g.ON)();this.gP.SN(H)}; g.M.qg=function(H,E,G){this.gP.qg(H,E,G)}; g.M.A6=function(H){H.scope===2&&(this.PZ=H);this.gP.A6(H)}; g.M.R7=function(){this.nY=!0;this.gP.R7()}; g.M.gj=function(H){this.policy.zc&&this.gP.gj(H)}; g.M.F1=function(H){this.gP.F1(H,this.tR())}; g.M.zd=function(H){H.eb===3&&(this.Xl=!0);this.gP.zd(H)}; g.M.VL=function(H){this.gP.VL(H)}; g.M.Va=function(H){this.gP.Va(H)}; g.M.canRetry=function(){this.Iu();return this.E9.canRetry(!1)}; g.M.dispose=function(){if(!this.Iu()){g.J.prototype.dispose.call(this);this.E9.dispose();var H;(H=this.kP)==null||H.dispose();this.Ca(-1);this.M5()}}; g.M.Ca=function(H){this.state=H;HJ(this.gP,this)}; g.M.C1=function(){return this.info.C1()}; g.M.Wz=function(){return this.nY}; g.M.uy=function(){return this.PZ}; g.M.Oq=function(H,E,G){G.clipId&&(this.clipId=G.clipId);this.policy.W&&!E&&(this.bA=G.Fu);if(this.info.isDecorated()){var P=this.info,Q,e;var w=((Q=P.data)==null?0:(e=Q.yW)==null?0:e.ZC)?P.data.yW.ZC:-1;w>=0&&w>G.Fu&&this.gP.loader.g5("sdai",{skpsqmismatch:"1",stsq:w,rcvsq:G.Fu,a:E})}this.ZO.Oq(H,E,G);this.policy.fL&&this.CH&&this.s9 instanceof en&&(w=this.CH.aZ,this.s9.Oq(G.durationMs/1E3,E,w>0&&G.Fu+1>=w));this.ZO.eq.get(H).G_=!0;this.policy.I1&&this.gP.fH(2,E)}; g.M.pB=function(H,E){this.ZO.pB(H,E)}; g.M.KK=function(H){this.requestIdentifier=H}; g.M.mQ=function(H){return this.ZO.mQ(H)}; g.M.Hn=function(H){return this.ZO.Hn(H)}; g.M.iB=function(H){return this.ZO.iB(H)}; g.M.S$=function(){return this.ZO.S$()}; g.M.O0=function(){return 1}; g.M.tR=function(){return this.s9.requestNumber}; g.M.DZ=function(){return this.requestIdentifier}; g.M.TU=function(){return this.Sy.TU()}; g.M.iO=function(){this.M5()}; g.M.M5=function(){this.s9.deactivate();var H;(H=this.xhr)==null||H.abort()}; g.M.isComplete=function(){return this.state>=3}; g.M.w8=function(){return this.state===3}; g.M.LX=function(){return this.state===5}; g.M.Lk=function(){return this.state===4}; g.M.IW=function(){return this.isComplete()}; g.M.sC=function(){return this.state>=1}; g.M.mA=function(){return this.policy.AG?this.E9.mA():0}; g.M.e9=function(){this.policy.AG&&HJ(this.gP,this)}; g.M.Ri=function(){return Y8(this.info)}; g.M.Yb=function(){this.OX()&&!this.HH&&(this.HH=!0,this.m0.Yb())}; g.M.OX=function(){var H,E;var G=(H=this.info.L)==null?void 0:(E=H.bd)==null?void 0:E.B$;return!!G&&Cyo.has(G)}; g.M.J1=function(){return"SABR"}; g.M.Sx=function(){return this.E9.Sx()}; g.M.Ce=function(){var H=Nhj(this.E9);Object.assign(H,cDn(this.info));H.req="sabr";H.rn=this.tR();var E;if((E=this.xhr)==null?0:E.status)H.rc=this.policy.kS?this.xhr.status:this.xhr.status.toString();var G;(E=(G=this.xhr)==null?void 0:G.K6())&&(H.msg=E);this.LJ&&(G=GKw(this,this.LJ-this.s9.sS()),H.letm=G.tT7,H.mrbps=G.X6,H.mram=G.D8);return H};HNt.prototype.tick=function(H,E){this.ticks[H]=E?window.performance.timing.navigationStart+E:(0,g.ON)()};g.C(ieT,g.z7);g.M=ieT.prototype; g.M.tP=function(H,E,G,P){if(this.policy.wp&&this.policy.W){var Q=H.kt||null;Q?(xov(this,H.U7,KE(this,H.startTime,H.U7),{kt:Q,U7:H.U7,j$:!!E,dO:G},this.G),P&&this.G&&this.G.aQ(H.U7,H.startTime,this.W,(E==null?void 0:E.L)||[],(E==null?void 0:E.W)||[],(E==null?void 0:E.D)||[],G,(E==null?void 0:E.N5)||0,(E==null?void 0:E.G)||void 0)):this.W===1&&IA(this,5,"noad")}else{var e=!1;this.policy.W&&(e=G?this.E7===H.U7:this.Jm===H.U7);if(this.G&&P&&!e){P=[];e=[];var w=[],t=void 0,k=0;E&&(P=E.L,e=E.W,w=E.D,t= E.G,k=E.N5,this.g5("sdai",{sq:H.U7,ssvicpns:P.join("."),ssvid:e.join(".")}));this.policy.W&&(G?this.E7=H.U7:this.Jm=H.U7);this.G.aQ(H.U7,H.startTime,this.W,P,e,w,G,k,t)}this.policy.W?G&&(this.W===1&&IA(this,5,"noad"),H.U7!==((Q=this.L)==null?void 0:Q.U7)&&(egj(this,H,E,G),isNaN(H.startTime)||zWj(this,H.U7,KE(this,H.startTime,H.U7),!!E,this.G))):G&&egj(this,H,E)}}; g.M.Ki=function(H,E,G){var P=this.videoTrack.uJ.index.vO()<=E;this.L={kt:H,U7:E,j$:G};P&&Jk(this,H,E)}; g.M.e1=function(){this.G&&this.G.e1()}; g.M.g5=function(H,E,G){(H!=="sdai"||this.policy.AA||(G===void 0?0:G))&&this.loader.g5(H,E)}; g.M.bB=function(H,E){var G=this.videoTrack.uJ.index.Is(H);if(G>=0){var P;var Q=((P=E.ze.x9(G,2))==null?void 0:P.bE)||"";if(this.policy.W||Q)return E.oO(H,G),yD(this.loader,H,H,G),this.g5("sdai",{cmskpad:1,t:H.toFixed(3),sq:G}),!0}this.g5("sdai",{cmskpad:0,t:H.toFixed(3),sq:G});return!1};g.M=i$v.prototype;g.M.mJ=function(H,E,G){var P=H||this.L;this.g5("clsdai",{setadcfg:1,ocid:H,cid:P,acpn:G,acfglen:(E==null?void 0:E.length)||0});this.W.has(P)||(this.g5("clsdai",{setadcfg:"noentry",cid:P}),this.W.set(P,{event:"unknown",startTimeSecs:0,Po:0,Lo:[],vp:Date.now(),Qa:-1,LR:6}));(H=this.W.get(P))?E?(H.LR=6,H.Lo.push(G),H.Jh=E):H.LR=2:this.g5("clsdai",{setadcfg:"notfound",cid:P})}; g.M.nO=function(H){H=H||this.L;var E=this.W.get(H);E?(E.Jh="",E.LR=4):this.g5("clsdai",{rmadcfg:"notfound",cid:H})}; g.M.NE=function(H,E,G){var P;if(!((((P=H.N9)==null?void 0:P.length)||0)<=0)&&(H=H.N9[0],H.kt)){var Q;P=-(((Q=H.kt)==null?void 0:Q.Do)||0);H.timeRange&&(P+=(H.timeRange.startTicks||0)/(H.timeRange.timescale||1));var e,w,t,k,W;Q=new Iv(P,((e=H.kt)==null?void 0:e.Cxw)||0,((w=H.kt)==null?void 0:w.jQ)||"",((t=H.kt)==null?void 0:t.identifier)||"",YTu((k=H.kt)==null?void 0:k.event),(((W=H.kt)==null?void 0:W.Do)||0)*1E3);pT1(this,Q,E,H.Fu||0,G)}}; g.M.oO=function(H,E,G){var P=H;this.D&&(P+=G);this.Nq(P);P=this.W.get(this.L);if(!P||P.QZ)return this.g5("clsdai",{skipadfail:1,cid:this.L,sn:E,mt:H.toFixed(3),of:G.toFixed(3),skipsq:(P==null?void 0:P.QZ)||-1}),!1;this.g5("clsdai",{skipadsuc:1,cid:this.L,sn:E,mt:H.toFixed(3),of:G.toFixed(3)});P.QZ=E;return!0}; g.M.sA=function(){this.g5("clsdai",{rstskipad:1});for(var H=g.R(this.W.values()),E=H.next();!E.done;E=H.next())E.value.QZ=NaN}; g.M.Nq=function(H,E){E&&(this.T=E);if(this.L&&(E=this.W.get(this.L))&&E.startTimeSecs<=H&&H<=E.startTimeSecs+E.Po)return;E=this.L||"";a:{for(var G="",P=g.R(this.W.entries()),Q=P.next();!Q.done;Q=P.next()){var e=g.R(Q.value);Q=e.next().value;e=e.next().value;var w=void 0,t=void 0,k=void 0;if(((w=e)==null?void 0:w.startTimeSecs)<=H&&H<=((t=e)==null?void 0:t.startTimeSecs)+((k=e)==null?void 0:k.Po)){H=Q;break a}t=w=void 0;G+=Q+":"+((w=e)==null?void 0:w.startTimeSecs.toFixed(3))+":"+((t=e)==null?void 0: t.Po.toFixed(3))+";"}this.g5("clsdai",{no_cid:1,mt:H.toFixed(3),adConfigMap:G.substring(0,1024)});H=""}this.L=H;this.g5("clsdai",{updateccid:1,cid:this.L,ocid:E})};g.C(VE,g.J);VE.prototype.Mn=function(H,E,G){G=G===void 0?{}:G;this.policy.lV=jN(H,G,this.D,E===void 0?!1:E)};Jhl.prototype.Q9=function(H){var E=this;if(this.policy.SX){var G=new Set(H);G.size===this.PF.size&&[].concat(g.EC(G)).every(function(P){return E.PF.has(P)})||(this.loader.g5("lwnmow",{itagDenylist:[].concat(g.EC(H)).join(",")}),this.loader.qk(!!G.size),this.L_=-1,this.PF=G,Zo(this,this.L),this.z$=!0)}}; Jhl.prototype.Mn=function(H,E,G){G=G===void 0?{}:G;var P=this.policy.lV;this.T.Mn(H,E===void 0?!1:E,G);if(P!==this.policy.lV){Zo(this,this.L);C6(this);var Q,e;P>this.policy.lV&&((Q=this.G)==null?0:GV(Q.info))&&((e=this.nextVideo)==null||!GV(e.info))&&(this.p_=!0)}};var oJ={Kt:-1,Sw:!1,B$:0};g.C(e$,g.J);e$.prototype.G$=function(){this.W=oJ;S6(this);g.J.prototype.G$.call(this)};dL.prototype.Zb=function(H){this.timestampOffset=H;this.flush()}; dL.prototype.flush=function(){if(this.L.pos>0){var H={a:this.track.VS(),u:this.L.hK(),pd:Math.round(this.D),ad:Math.round(this.G)},E=this.W;if(E){var G=E.uJ.info;H.itag=G.itag;G.L&&(H.xtags=G.L);H.sq=E.U7;H.st=E.startTime;H.sd=E.duration;this.track.policy.wA&&(H.si=E.PO());E.G&&(H.esl=E.L+E.W);E.Uv()&&(H.eos=1)}isNaN(this.timestampOffset)||(H.to=this.timestampOffset);var P;if(E=(P=this.track.rP)==null?void 0:P.NL({})){for(var Q in E)this.C[Q]!==E[Q]&&(H["sb_"+Q]=E[Q]);this.C=E}this.track.g5("sbu", H);this.L.reset();this.buffered=[];this.T=this.G=this.D=0;this.timestampOffset=this.W=void 0}};E5u.prototype.dispose=function(){this.WF=!0}; E5u.prototype.Iu=function(){return this.WF}; g.C(w0,Error);uA.prototype.skip=function(H){this.offset+=H}; uA.prototype.Nd=function(){return this.offset};g.M=Gjj.prototype;g.M.ai=function(){return this.W}; g.M.Hy=function(){return this.W.length?this.W[this.W.length-1]:null}; g.M.ZD=function(){this.W=[];Og(this);ee(this)}; g.M.d0=function(H){this.z$=this.W.shift().info;H.info.equals(this.z$)}; g.M.Hn=function(){return g.wH(this.W,function(H){return H.info})}; g.M.VS=function(){return!!this.uJ.info.audio}; g.M.isDrm=function(){return!!this.uJ.info.QF}; g.M.getDuration=function(){return this.uJ.index.bH()};g.C(M5,nk);g.M=M5.prototype;g.M.onStateChange=function(){this.Iu()&&(vs(this.ZO,this.formatId),this.L.dispose())}; g.M.Ce=function(){var H=fAw(this.ZO,this.formatId),E;var G=((E=this.ZO.eq.get(this.formatId))==null?void 0:E.bytesReceived)||0;var P;E=((P=this.ZO.eq.get(this.formatId))==null?void 0:P.LT)||0;return{expected:H,received:G,bytesShifted:E,sliceLength:phw(this.ZO,this.formatId),isAnyMediaEndReceived:this.ZO.nG(this.formatId)}}; g.M.eP=function(){return 0}; g.M.kT=function(){return!0}; g.M.mQ=function(){return this.ZO.mQ(this.formatId)}; g.M.u7=function(){return[]}; g.M.iB=function(){return this.ZO.iB(this.formatId)}; g.M.Sx=function(){return this.lastError}; g.M.mA=function(){return 0};g.C(aH,g.J);g.M=aH.prototype;g.M.VS=function(){return!!this.uJ.info.audio}; g.M.Hy=function(){return this.G.Hy()}; g.M.d0=function(H){this.G.d0(H);var E;(E=this.B)!=null&&(E.T.add(H.info.U7),E.L=jC1(E,E.i4,E.gs,H,E.L),E.G=H,E.C=(0,g.ON)());this.Xo=Math.max(this.Xo,H.info.uJ.info.Xo||0)}; g.M.getDuration=function(){return this.uJ.index.bH()}; g.M.ZD=function(){Da(this);this.G.ZD()}; g.M.Fx=function(){return this.G}; g.M.z9=function(H){return this.rP?jz(this.rP.qV(),H):!0}; g.M.isRequestPending=function(H){return this.W.length?H===this.W[this.W.length-1].info.kp[0].U7:!1}; g.M.Zb=function(H){var E;(E=this.B)==null||E.Zb(H);var G;(G=this.N)==null||G.Zb(H)}; g.M.g5=function(H,E){this.loader.g5(H,E)}; g.M.sB=function(){return this.loader.sB()}; g.M.dispose=function(){var H;(H=this.N)==null||H.flush();g.J.prototype.dispose.call(this)};g.C(e7,g.J);e7.prototype.G=function(){this.W++>15||(this.L=!this.L,new rnn(this.loader,this.policy,this.mZ,this.Du,this.L),this.delay.start())}; g.M=rnn.prototype;g.M.CO=function(){}; g.M.X0=function(){}; g.M.cn=function(){if(!this.done)if(this.done=!0,this.xhr.status===200&&this.xhr.Md()===this.size)this.loader.g5("rqs",this.getInfo());else{var H="net.connect";this.xhr.status>200?H="net.badstatus":this.xhr.vr()&&(H="net.closed");this.onError(H)}}; g.M.onError=function(H){var E=this;this.loader.handleError(H,this.getInfo());Rc("https://www.gstatic.com/ytlr/img/sign_in_avatar_default.png?rn="+this.timing.requestNumber,"gp",function(G){E.loader.g5("pathprobe",G)},function(G){E.loader.handleError(G.errorCode,G.details)})}; g.M.getInfo=function(){var H=this.timing.NF();H.shost=u5(81,this.location.AE);H.pb=this.size;return H};g.C(OZ,g.J); OZ.prototype.B=function(H,E){if(H.C){this.ou.isLive?(H=this.ou.iG&&this.ou.D?H.uJ.fZ(this.ou.iG,!1):H.uJ.e$(Infinity),H.RP=this.RP):H=H.uJ.fZ(0,!1);if(this.p_){var G=this.p_;H.RP===0&&(H.T=G.N)}else H.T=this.L_;return H}G=H.L;if(!G.uJ.Dr())return G.uJ.qd()?(H=GR(this.T,H.uJ.info.Xo,E.uJ.info.Xo,0),H=G.uJ.yq(G,H)):H=G.uJ.YG(G),H;var P=G.T-this.loader.getCurrentTime(),Q=!G.range||G.W===0&&G.L===0?0:G.range.length-(G.L+G.W),e=G.uJ;this.TC(H,P)&&Q===0&&(this.ou.isManifestless?e=H.uJ:(e=G.startTime+go1, G.W&&(e+=G.duration),OB(H,e),G=H.L,e=G.uJ));e.qd()?(Q=this.G,E=GR(this.T,e.info.Xo,E.uJ.info.Xo,P,Q.D.length>0&&Q.N===0&&this.loader.aj),P=Hw(H),H=G.uJ.yq(G,E),(E=H.G)&&H.kp.length>1&&(P||H.Du.G||H.kp[0].uJ!==G.uJ?H=G.uJ.yq(G,H.kp[0].W):(P=H.kp[H.kp.length-1],e=P.W/E,!P.G&&e<.4&&(H=G.uJ.yq(G,E-P.W))))):(G.U7<0&&(E=$d(G),E.pr=""+H.W.length,this.loader.isSeeking()&&(E.sk="1"),E.snss=G.C,this.loader.g5("nosq",E)),H=e.YG(G));if(this.policy.O7)for(G=g.R(H.kp),E=G.next();!E.done;E=G.next())E.value.type= 6;return H}; OZ.prototype.TC=function(H,E){if(!Hw(H)||!H.uJ.Dr())return!1;var G;(G=this.G.z$)||(G=Hw(H)&&H.uJ.Dr()&&H.L.uJ.info.Xo=E)return P.return();(G=H.L.get(0))&&TV1(H,G);g.P2(P)})}; var Vov={lG7:0,py_:1,yxo:2,gS7:3,Gy_:4,0:"PRIMARY",1:"SECONDARY",2:"RANDOM",3:"SENSITIVE_CONTENT",4:"C_YOUTUBE"};VY.prototype.decrypt=function(H){var E=this,G,P,Q,e,w,t;return g.L(function(k){switch(k.L){case 1:if(E.L.length&&!E.L[0].isEncrypted)return k.return();E.W=!0;E.pL.QG("omd_s");G=new Uint8Array(16);z6()?P=new g.xS(H):Q=new g.er(H);case 2:if(!E.L.length||!E.L[0].isEncrypted){k.bJ(4);break}e=E.L.shift();if(!P){w=Q.decrypt(vA(e.buffer),G);k.bJ(5);break}return g.U(k,P.decrypt(vA(e.buffer),G),6);case 6:w=k.W;case 5:t=w;for(var W=0;W=4)){var E=SL(this),G=this.xhr;E.rc=G.status;H&&(E.ab=!0);if(G.K6()){var P="onesie.net";E.msg=G.K6()}else G.status>=400?P="onesie.net.badstatus":G.Nk()?this.Sn||(P="onesie.response.noplayerresponse"):P=G.status===204?"onesie.net.nocontent":"onesie.net.connect";P?this.fail(new g.q$(P,E)):(this.QG("or_fs"),this.s9.bY((0,g.ON)(),G.Md(),0),this.Ca(4),this.V6&&this.g5("rqs",E));this.V6&&this.g5("ombre","ok."+ +!P);this.X1=!1;m3(this); jEw(this.pL);if(!this.KV){this.DJ.stop();var Q;(Q=this.eJ)==null||Q.stop()}var e;if(H=(e=this.Rb)==null?void 0:ZGt(e))for(e=0;e1E3){var H;(H=this.s9)==null||H.G8((0,g.ON)());H=SL(this);if(this.X.z6()&&this.xhr instanceof tsq){var E=this.xhr;H.xrs=E.xhr.readyState;H.xpb=E.L.totalLength;H.xdc=E.D}this.fail(new g.q$("net.timeout",H))}}else(0,g.ON)()-this.s9.L>1E4&&((E=this.s9)==null||E.G8((0,g.ON)()),this.A1());this.isComplete()||this.EE.start()}}; g.M.A1=function(){this.X1=!1;if(!m3(this)){var H=SL(this);H.timeout="1";this.fail(new g.q$("onesie.request",H))}}; g.M.fail=function(H){var E=this;H=ms(H);this.JZ?this.Fo.Di(H):(this.Aq.reject(H),this.JZ=!0);jEw(this.pL);this.KV||this.DJ.stop();this.QG("or_fe");var G,P;(G=this.Rb)==null||(P=ZGt(G))==null||P.forEach(function(Q){E.g5("pathprobe",Q)}); this.Ca(5);this.dispose()}; g.M.isComplete=function(){return this.state>=3}; g.M.Lk=function(){return this.state===4}; g.M.IW=function(H){var E,G;return this.isComplete()||!!((E=this.sM)==null?0:(G=E.get(H))==null?0:G.W)}; g.M.w8=function(){return!1}; g.M.LX=function(){return this.state===5}; g.M.notifySubscribers=function(H){for(var E=0;E102400&&!this.aW&&(this.QG("or100k"),this.aW=!0);if(H.I4()){var E=H.iN(),G=E.totalLength;this.V6&&this.g5("ombrss","len."+G);this.Ty.feed(E)}if(this.sM)for(var P=g.R(this.sM.keys()),Q=P.next();!Q.done;Q=P.next()){var e=Q.value;H=void 0;(H=this.sM.get(e))==null||H.yJ();this.notifySubscribers(e)}}catch(w){this.fail(w)}}; g.M.tR=function(){return this.s9.requestNumber}; g.M.DZ=function(H){return this.eg.get(H)}; g.M.OX=function(){return!1}; g.M.J1=function(){return"ONESIE"};g.C(wb,g.J);g.M=wb.prototype;g.M.G3=function(H,E){this.p_=void 0;PCQ(this);qfv(this,H,E)}; g.M.E4=function(H){if(this.L.length===0)return!1;var E=this.L[0];return E instanceof r1?H===this.loader.getCurrentTime()*1E3:!(E instanceof JU&&VA(E.info))&&Math.abs(E.Ri()-H)<50}; g.M.Wy=function(H,E){this.W=H;this.policy.cV&&this.policy.W&&!H.playbackCookie&&this.loader.g5("sbrnocookie",{rn:E!=null?E:-1});this.p_=(0,g.ON)()+(H.backoffTimeMs||0)}; g.M.wu=function(H,E){if(H.action===void 0){var G=this.Fo.I5();G!==void 0&&this.loader.HN(G)}else if(H.action!==0||!this.Yp)if(H.action===0&&this.policy.MN&&(H.action=2),H.Cp==="sabr.malformed_config"&&this.BF++<3)this.loader.handleError("sabr.malformed_config",{action:H.action,rn:E,retry:this.BF},0);else switch(H.Cp==="sabr.malformed_config"&&(H.action=2),G={},G.reason=H.Cp,G.action=H.action,G.rn=E,H.action){case 1:this.policy.W&&this.B&&this.B.Ef(void 0,void 0,G);break;case 0:this.Yp=!0;this.videoData.mV()&& this.policy.W&&this.B&&this.B.Ef(void 0,void 0,G,!1);this.loader.pC(G);break;case 2:e2U(H.Cp)!=="sabr.config"&&delete G.reason;this.loader.handleError(e2U(H.Cp),G,1);break;case 3:this.policy.V8&&((H=this.ou.L_)!=null&&(H.N=!0),this.loader.handleError("sabr.hostfallback",G))}}; g.M.A6=function(H){H&&(this.loader.g5("sabrctxt",{onsbrctxt:H.type,scp:H.scope,dflt:H.sendByDefault}),H.type&&H.sendByDefault&&this.videoData.T$.add(H.type),H.scope!==2&&(H.type&&this.videoData.sabrContextUpdates.set(H.type,H),this.Fo.A6(H)))}; g.M.R7=function(){}; g.M.DL=function(H,E){if(this.loader.Xk)this.loader.g5("sdai",{ignSabrSeek:1,smt:H==null?void 0:H.cP,rn:E});else if(H.cP!==void 0&&H.EO){var G=H.cP/H.EO;this.audioTrack.C=!1;this.videoTrack.C=!1;if(this.policy.WF||this.policy.v6||this.policy.MP)this.loader.PK.L=!1;var P=this.loader.NB(G,1);this.policy.hm&&this.policy.W&&this.loader.Nq(P,E);this.Fo.getCurrentTime()!==G&&(E={cO:"sabr_seek",FV:!0,VI:!0},H.seekSource&&(E.seekSource=H.seekSource),id(this.loader,G+.1,E))}}; g.M.onSnackbarMessage=function(H){this.Fo.publish("onSnackbarMessage",H)}; g.M.NE=function(H,E){this.policy.C&&!BDM(this.videoData)&&this.loader.NE(H,E)}; g.M.SN=function(H){H.aZ&&H.Xc&&pF(this.ou,H.aZ,H.Xc);this.policy.y_&&(H.NK&&H.Kk&&(this.ou.FX=H.NK/H.Kk),H.A8&&H.YF&&(this.ou.Qd=H.A8/H.YF));sc(this.videoData)&&!this.videoData.IJ&&H.Xc&&this.loader.NB(H.Xc,1E3);H.Ao!=null&&this.Fo.aD(H.Ao);H.yc&&(H=((0,g.ON)()-H.yc)/1E3,this.loader.Cl.ra(1,H))}; g.M.zd=function(H){this.loader.zd(H)}; g.M.QJ=function(H){return this.videoData.T$.has(H)}; g.M.qg=function(H,E,G){this.policy.G&&this.loader.g5("sabrctxtplc",{start:H?H.join("_"):"",stop:E?E.join("_"):"",discard:G?G.join("_"):""});if(H){H=g.R(H);for(var P=H.next();!P.done;P=H.next())this.videoData.T$.add(P.value)}if(E)for(E=g.R(E),H=E.next();!H.done;H=E.next())H=H.value,this.videoData.T$.has(H)&&this.videoData.T$.delete(H);if(G)for(G=g.R(G),E=G.next();!E.done;E=G.next())if(E=E.value,this.videoData.sabrContextUpdates.has(E)&&this.videoData.sabrContextUpdates.delete(E),this.policy.p_&&this.L.length)for(H= g.R(this.L),P=H.next();!P.done;P=H.next())if(P=P.value,!(P instanceof r1)){var Q=void 0;((Q=P.PZ)==null?void 0:Q.type)===E&&(P.PZ=void 0)}}; g.M.gj=function(){}; g.M.F4=function(H){this.C=H}; g.M.zK=function(H){this.T=H}; g.M.F1=function(H,E){y$(this.policy,H,4,E)}; g.M.VL=function(H){if(H==null?0:H.LI)if(H=H.LI.Ii){H=g.R(H);for(var E=H.next();!E.done;E=H.next())if(E=E.value,E.formatId){var G=this.ou.G.get(OL(E.formatId));G&&G.info&&(G.info.debugInfo=E.debugInfo)}}}; g.M.Va=function(H){this.Fo.publish("reloadplayer",H)}; g.M.mj=function(){return this.Fo.mj()||""}; g.M.KC=function(){var H=C1t(this);return Math.min(H.lL,H.IU)}; g.M.LP=function(H,E){this.loader.g5(H,E)}; g.M.i$=function(H){UKU(this.loader,cCv(this.au,H))}; g.M.fH=function(H,E){this.videoData.fH(H,E)}; g.M.G$=function(){g.J.prototype.G$.call(this);this.W=void 0;qfv(this,!0,"i");this.L=[]};Kv.prototype.WF=function(H){Pp(H.state)&&r6n(this.G)}; Kv.prototype.clear=function(){kad(this.G);this.T.clear();this.W.clear();this.L_=this.N=NaN;this.C=!1}; Kv.prototype.Lp=function(){this.isSeeking=!0;this.L===1&&kad(this.G);this.L===0&&this.M4.dV("transitiondetector");this.C=!1;this.N=NaN;this.B=this.Xe};F_u.prototype.Wo=function(H,E){if(this.D)return cIM(this,E);if(E=lQ(H)){var G=E.L;G&&G.G&&G.L&&(H=H.W.length?H.W[0]:null)&&H.state>=2&&!H.LX()&&H.info.RP===0&&(this.D=H,this.B=G,this.W=E.info,this.C=this.startTimeSecs=Date.now()/1E3,this.T=this.W.startTime)}return NaN}; F_u.prototype.clear=function(){this.W=this.B=this.D=null;this.L=this.T=this.C=this.startTimeSecs=NaN;this.G=!1};g.C(XV,g.J);XV.prototype.G$=function(){Lju(this);g.J.prototype.G$.call(this)};var vGu=/[?&]cpn=/;g.C(CF,g.J);CF.prototype.flush=function(){var H={};this.W&&(H.pe=this.W);this.L.length>0&&(H.pt=this.L.join("."));this.L=[];return H}; CF.prototype.stop=function(){var H=this,E,G,P;return g.L(function(Q){if(Q.L==1)return g.EY(Q,2),g.U(Q,(E=H.D)==null?void 0:E.stop(),4);if(Q.L!=2)return(G=Q.W)&&H.logTrace(G),g.pA(Q,0);P=g.vo(Q);H.W=CSM(P.message);g.P2(Q)})}; CF.prototype.logTrace=function(H){this.encoder.reset();this.encoder.add(1);this.encoder.add(H.resources.length);for(var E=g.R(H.resources),G=E.next();!G.done;G=E.next()){G=G.value.replace("https://www.youtube.com/s/","");this.encoder.add(G.length);for(var P=0;P=0?H:g.Gm(this.provider),this.Jm?gmM.has(this.jy)&&(this.L.size||(this.jy==="PL"?H>=this.W+30:H<=this.p_+30||H>=this.W+1200&&H<=this.p_+86400))&&(g.BC(this,H,"vps",[this.jy]),this.W=H):["PL","B","S"].indexOf(this.jy)>-1&&(this.L.size||H>=this.W+30)&&(g.BC(this,H,"vps",[this.jy]),this.W=H),this.L.size)){this.sequenceNumber===7E3&&g.p5(Error("Sent over 7000 pings"));if(!(this.sequenceNumber>=7E3)){At(this,H);var E=this.provider.Fo.jF(); E=g.R(E);for(var G=E.next();!G.done;G=E.next())G=G.value,this.g5(G.key,G.value);E=H;G=this.provider.Fo.y$();var P=G.droppedVideoFrames||0,Q=G.totalVideoFrames||0,e=P-this.g9,w=Q&&!this.WS;P>G.totalVideoFrames||e>5E3?qEU(this,"html5.badframedropcount","df."+P+";tf."+G.totalVideoFrames):(e>0||w)&&g.BC(this,E,"df",[e]);this.g9=P;this.WS=Q;this.N>0&&(g.BC(this,H,"glf",[this.N]),this.N=0);E6.isActive()&&(H=E6.Q1(),Object.keys(H).length>0&&this.g5("profile",H));this.U2&&XX(this,"lwnmow");this.provider.X.z6()&& this.provider.U("html5_record_now")&&this.g5("now",{wt:(0,g.ON)()});H={};this.provider.videoData.W&&(H.fmt=this.provider.videoData.W.itag,(E=this.provider.videoData.D)&&E.itag!==H.fmt&&(H.afmt=E.itag));H.cpn=this.provider.videoData.clientPlaybackNonce;this.adCpn&&(H.adcpn=this.adCpn);this.KU&&(H.addocid=this.KU);this.contentCpn&&(H.ccpn=this.contentCpn);this.E7&&(H.cdocid=this.E7);this.provider.videoData.cotn&&(H.cotn=this.provider.videoData.cotn);H.el=zU(this.provider.videoData);H.content_v=TU(this.provider.videoData); H.ns=this.provider.X.p_;H.fexp=eSM(this.provider.X.experiments).toString();H.cl=(818902666).toString();(E=this.provider.videoData.adFormat||this.adFormat)&&(H.adformat=E);(E=VK(this.provider.videoData))&&(H.live=E);this.provider.videoData.Gq()&&(H.drm=1,this.provider.videoData.T&&(H.drm_system=NfJ[this.provider.videoData.T.flavor]||0),this.provider.videoData.drmProduct&&(H.drm_product=this.provider.videoData.drmProduct));Tg()&&this.provider.videoData.C&&(H.ctt=this.provider.videoData.C,H.cttype=this.provider.videoData.I2, this.provider.videoData.mdxEnvironment&&(H.mdx_environment=this.provider.videoData.mdxEnvironment));this.provider.videoData.isDaiEnabled()?(H.dai=this.provider.videoData.enableServerStitchedDai?"ss":"cs",this.provider.videoData.wp&&(H.dai_fallback="1")):this.provider.videoData.U9?H.dai="cs":this.provider.videoData.EX&&(H.dai="disabled");H.seq=this.sequenceNumber++;if(this.provider.videoData.g3){if(E=this.provider.videoData.g3,H&&E)for(E.ns==="3pp"&&(H.ns="3pp"),this.UT.has(E.ns)&&XX(this,"hbps"), E.shbpslc&&(this.serializedHouseBrandPlayerServiceLoggingContext=E.shbpslc),this.provider.X.experiments.xp("html5_use_server_qoe_el_value")&&this.au.delete("el"),G=g.R(Object.keys(E)),P=G.next();!P.done;P=G.next())P=P.value,this.au.has(P)||(H[P]=E[P])}else H.event="streamingstats",H.docid=this.provider.videoData.videoId,H.ei=this.provider.videoData.eventId;this.isEmbargoed&&(H.embargoed="1");Object.assign(H,this.provider.X.L);if(E=H.seq)E={cpn:this.provider.videoData.clientPlaybackNonce,sequenceNumber:+E, serializedWatchEndpointLoggingContext:this.provider.videoData.eH},this.serializedHouseBrandPlayerServiceLoggingContext&&(E.serializedHouseBrandPlayerServiceLoggingContext=D5(this.serializedHouseBrandPlayerServiceLoggingContext)||void 0),this.provider.videoData.playerResponseCpn&&(E.playerResponseCpn=this.provider.videoData.playerResponseCpn),r8.length&&(E.decoderInfo=r8),this.remoteControlMode&&(E.remoteControlMode=this.remoteControlMode),this.remoteConnectedDevices.length&&(E.remoteConnectedDevices= this.remoteConnectedDevices),E=g.Z8(E,hLt),E=g.H4(E,4),this.L.set("qclc",[E]);H=g.eB("//"+this.provider.X.RO+"/api/stats/qoe",H);G=E="";P=g.R(this.L.entries());for(Q=P.next();!Q.done;Q=P.next())e=g.R(Q.value),Q=e.next().value,e=e.next().value,w=void 0,(w=e)!=null&&w.join&&(Q="&"+Q+"="+e.join(","),Q.length>100?G+=Q:E+=Q);Ujn(this,H+E,G.replace(/ /g,"%20"))}this.L.clear()}}; g.M.qk=function(H){this.U2=H}; g.M.qJ=function(){if(this.provider.videoData.T){var H=this.provider.videoData.T;XX(this,"eme-"+(H.keySystemAccess?"final":rD(H)?"ms":h4(H)?"ytfp":pP(H)?"safarifp":"nonfinal"))}}; g.M.Dq=oF(53);g.M.y0=function(H){this.isEmbargoed=H}; g.M.cL=oF(30);g.M.rG=oF(36);g.M.onPlaybackRateChange=function(H){var E=g.Gm(this.provider);H&&H!==this.ox&&(g.BC(this,E,"rate",[H]),this.ox=H);this.Jm||this.reportStats(E)}; g.M.KM=oF(24);g.M.getPlayerState=function(H){if(g.F(H,128))return"ER";if(g.F(H,2048))return"B";if(g.F(H,512))return"SU";if(g.F(H,16)||g.F(H,32))return"S";if(H.isOrWillBePlaying()&&g.F(H,64))return"B";var E=LJW[eM(H)];g.vV(this.provider.X)&&E==="B"&&this.provider.Fo.getVisibilityState()===3&&(E="SU");E==="B"&&g.F(H,4)&&(E="PB");return E}; g.M.Vt=function(H,E){var G=g.Gm(this.provider);g.BC(this,G,"vfi",[H==="A"?"":""+(E!=null?E:0),H])}; g.M.G$=function(){g.J.prototype.G$.call(this);g.fg(this.WF);g.fg(this.jT)}; g.M.YP=function(H){this.isOffline=H;g.BC(this,g.Gm(this.provider),"is_offline",[this.isOffline?"1":"0"])}; g.M.g5=function(H,E,G){var P=this.qC.indexOf(H)!==-1;P||this.qC.push(H);if(!G||!P){E=typeof E!=="string"?gt(E):E;E=Tp7(E);if(!G&&!/^t[.]/.test(E)){var Q=g.Gm(this.provider)*1E3;E="t."+Q.toFixed()+";"+E}U4(this,"ctmp",H+":"+E);KK(this);return Q}}; g.M.fO=function(H,E,G){this.T={Omp:Number(this.g5("glrem",{nst:H.toFixed(),rem:E.toFixed(),ca:+G})),L3:H,GW$:E,isAd:G}}; g.M.g0=function(H,E,G){g.BC(this,g.Gm(this.provider),"ad_playback",[H,E,G])}; g.M.Z0=function(H,E){var G=g.Gm(this.provider)*1E3;U4(this,"daism","t."+G.toFixed(0)+";smw."+(H*1E3).toFixed(0)+";smo."+(E*1E3).toFixed(0))}; g.M.resume=function(){var H=this;isNaN(this.WF)?wml(this):this.WF=g.Y_(function(){H.reportStats()},1E4)}; var vc={},LJW=(vc[5]="N",vc[-1]="N",vc[3]="B",vc[0]="EN",vc[2]="PA",vc[1]="PL",vc[-1E3]="ER",vc[1E3]="N",vc),gmM=new Set(["PL","B","S"]),r8=[];g.C(g.bs,g.J);g.M=g.bs.prototype;g.M.initialize=function(H,E,G){H=H||0;this.policy.L||(E=BTw(this.L),f5(this.Fo,new Gk(E.video,E.reason)),this.Fo.eG(new Gk(E.audio,E.reason)));this.policy.L&&d4(this);this.ou.isManifestless&&LHl(this.C);this.N&&loM(this.N,this.videoTrack.uJ);E=isNaN(this.getCurrentTime())?0:this.getCurrentTime();var P=!this.ou.isManifestless;this.policy.kG&&(P=P||this.ou.tT);if(!this.policy.T$||this.policy.jT)this.currentTime=P?H:E;this.policy.WF&&this.seek(this.getCurrentTime(),{}).KW(function(){}); if(this.policy.L){var Q;((Q=this.p_)==null?0:xxM(Q,this.mj()||""))&&urM(this)&&voM(this,this.videoTrack)&&voM(this,this.audioTrack)&&(qau(this.W,this.p_),this.policy.T&&Z6M(this))}else this.Jm&&(Mss(this,this.videoTrack),Mss(this,this.audioTrack),EKs(this.Jm),delete this.Jm);G?(Vcj(this,!1),g.J3(this.CK)):(H=this.getCurrentTime()===0,aO(this.C,this.videoTrack,this.videoTrack.uJ,H),aO(this.C,this.audioTrack,this.audioTrack.uJ,H),this.policy.L&&VAv(this.W,{B$:1}),this.policy.WF||this.seek(this.getCurrentTime(), {}).KW(function(){}),this.timing.tick("gv")); (this.ou.iG||this.ou.LM||this.ou.zT||this.ou.Rj||this.ou.CB)&&this.Fo.Bf(this.ou)}; g.M.resume=function(){if(this.isSuspended||this.aj){this.Rp=this.aj=this.isSuspended=!1;try{this.Wo()}catch(H){g.h3(H)}}}; g.M.xT=function(){return!this.policy.UT}; g.M.mI=function(H,E){H=H===void 0?!1:H;E=E===void 0?!1:E;E97(this);this.Fo.u8()&&(this.B=NaN);H?(this.policy.z$&&this.g5("loader",{setsmb:1}),this.policy.O7=!0,this.ZD()):(Vcj(this,!1),E||this.ZD())}; g.M.setAudioTrack=function(H,E,G){G=G===void 0?!1:G;if(!this.Iu()){var P=!isNaN(E);G&&P&&(this.audioTrack.p_=Date.now(),this.policy.lG&&(this.s7=!0));G=this.Fo.u8()&&!this.Fo.getVideoData().N;if(this.policy.L){var Q=this.D.Ku(H.id,P);this.Fo.eG(Q)}else Q=this.L,Q.W=Q.ou.L[H.id],Q.B=Q.W,Q=new FI(Q.B,Q.G,P?"t":"m"),this.Fo.eG(new Gk(Q.audio,Q.reason));P?(this.dP=Date.now(),P=this.audioTrack.uJ.index.Is(E),this.g5("setAudio",{id:H.id,cmt:E,sq:P}),P>=0&&(H=this.policy.o1?P+1:P,this.policy.L&&this.G3(!0, "mosaic"),jj(this.audioTrack,H,NaN,NaN),!this.policy.AT&&this.ou.isLive&&cQ(this.ou,H,!1))):G||this.Fo.YQ()}}; g.M.setPlaybackRate=function(H){H!==this.L_.getPlaybackRate()&&this.L_.setPlaybackRate(H)}; g.M.Ct=function(H){var E=this.W.C;this.W.F4(H);this.g5("scfidc",{curr:OL(E),"new":OL(H)});H&&OL(H)!==OL(E)&&(this.G3(!0,"caption change"),this.Wo())}; g.M.oN=function(H){this.W.zK(H)}; g.M.Em=function(H){H.L.info.VS()?this.Fo.eG(H):f5(this.Fo,H)}; g.M.i$=function(H){rv(H.kp[H.kp.length-1])&&UKU(this,cCv(this.L,H.kp[0].uJ))}; g.M.J2=function(){return this.Fo.J2()}; g.M.h5=function(){return this.Fo.h5()}; g.M.zd=function(H){this.Fo.K().z6()&&this.g5("sps",{status:H.eb||""});if(H.eb===1)this.wW=0;else if(H.eb===2||H.eb===3){var E=!1;if(H.eb===3){var G;this.AG=(G=H.im5)!=null?G:Infinity;this.wW+=1;(E=Fv(this))&&this.J6(!0)}this.Fo.Ww(!0,E)}}; g.M.nT=function(){return this.Fo.nT()}; g.M.tj=function(){return this.Fo.tj()}; g.M.D2=function(H){this.Fo.D2(H)}; g.M.yKu=function(){var H,E=(H=this.Fo.xt())==null?void 0:H.getCurrentTime();E?this.Fo.g5("rms",{cta:E}):g.J3(this.ox)}; g.M.Wo=function(){hNw(this);if(this.Am&&zd(this.Am)&&!this.Am.pX()&&(!this.policy.T$||isFinite(this.getCurrentTime()))){var H=Wg(this.videoTrack);H=this.policy.qQN&&H&&H.Uv();this.ou.isManifestless&&this.ou.D&&Ny(this.ou)?(this.B=Ny(this.ou),this.Am.uB(this.B)):jF(this.ou)&&!H?isNaN(this.B)?(this.B=this.getCurrentTime()+3600,this.Am.uB(this.B)):this.B<=this.getCurrentTime()+1800&&(this.B=Math.max(this.B+1800,this.getCurrentTime()+3600),this.Am.uB(this.B)):this.Am.isView||(H=Math.max(this.audioTrack.getDuration(), this.videoTrack.getDuration()),(!isFinite(this.B)||this.B!==H)&&H>0&&(this.Am.uB(H),this.B=H))}if(!this.Iu())if(aN(this.ou)&&this.ou.LX()){var E=this.ou;this.handleError("manifest.net.retryexhausted",E.MZ?{rc:E.tK}:{rc:E.tK.toString()},1)}else if(this.policy.L)a:{try{if(HE(this)&&this.mq){var G=this.W,P=this.mq,Q=P.L;if(Q){var e=G.Fo.I5(),w=!0;e||(e=G.loader.getCurrentTime(),w=!1);E=e;var t=w?G.Fo.Db(E):E;if(G.loader.z9(t))var k=!1;else{var W={t:E.toFixed(3),isUtc:w};c:{var I=G.Fo.mj();if(I){for(var A= g.R([G.audioTrack,G.videoTrack]),m=A.next();!m.done;m=A.next()){var u=Jq(m.value.uJ,G.ou.T6);e=void 0;var v=((e=Q)==null?void 0:e.Hn(u,I))||[];if(v.length===0||!dfQ(new f6(v),t)){var n=!1;break c}}n=!0}else n=!1}if(n)G.loader.g5("prebuffer",Object.assign(W,{inrange:1})),k=!0;else{if(VA(Q.info)){var O;if(O=w){var q,N;O=(((q=Q.info.L)==null?void 0:(N=q.bd)==null?void 0:N.tq)||0)===E*1E3}var r=O}else r=!w&&Y8(Q.info)===E*1E3;r?(G.loader.g5("prebuffer",Object.assign(W,{match:1})),k=!0):k=!1}}if(k){G.Fo.QG("ismp_c"); G.L.push(Q);var B;(B=G.E7)==null||SgQ(B,Q.info.Du);Q.Yb();S6(P,!1)}}}fR(this.W);this.ou.isManifestless&&this.policy.T&&Mf(this.PK);var l;((l=this.Am)==null?0:cZ(l))&&this.Fp();VAv(this.W);if(HE(this)&&this.mq){var S=this.W,z=this.mq,Pt=z.W.Kt;if(Pt!==void 0&&Pt>=0){S.Fo.QG("ismp_a");var eu=z.W;var QM=eu.Kt;if(QM===void 0)var $Q=!1;else{var En=eu.Sw?S.Fo.Db(QM):QM,Dj;if(Dj=!S.loader.z9(En)&&WWl(S,S.MZ)){var gl=S.Fo.getCurrentTime()*1E3,oD=$fd(S,gl),GZ=oD.k_;Dj=oD.x_>=7E3&&GZ>=7E3}$Q=Dj}if($Q){var qT= TOn(S,eu);S.policy.aO>0&&S.MZ.Qf++;qT&&(z.L!==qT&&(Cod(z),z.L=qT,z.W=oJ),S.Fo.QG("ismp_rc"))}}}}catch(c){g.p5(c);E=c;if(E.message.includes("changeType")){this.g5("ctype",{exp:E.name,msg:E.message,s:E.stack});break a}this.handleError("fmt.unplayable",{exp:E.name,msg:E.message,s:E.stack,trg:"sabrslicerqt"},1)}lCu(this);g.J3(this.hm)}else if(!this.ou.W||!fGv(this.videoTrack)&&!fGv(this.audioTrack)||(this.videoTrack.D||this.audioTrack.D)&&this.policy.G6?G=!1:(this.ZD(),this.Fo.seekTo(Infinity,{cO:"checkLoaderTracksSync", NB:!0}),G=!0),!G){hNw(this);this.ou.isManifestless&&(wav(this.videoTrack),wav(this.audioTrack),Mf(this.PK),(G=lQ(this.videoTrack))&&G.L&&(G=G.L.G&&!this.policy.De,this.g5(G===this.policy.N.Gc?"strm":"strmbug",{strm:G,sfmp4:this.policy.N.Gc,dfs:this.policy.De},!0)));if(this.Am)this.Fp();else if(this.policy.D){G=!1;if(this.policy.j8)for(P=g.R([this.videoTrack,this.audioTrack]),Q=P.next();!Q.done;Q=P.next()){k=Q.value;for(Q=lQ(k);Q&&k.Hy()!==Wg(k);Q=lQ(k))k.d0(Q);G=G||!!Q}else(E=lQ(this.videoTrack))&& this.videoTrack.d0(E),(w=lQ(this.audioTrack))&&this.audioTrack.d0(w);$r(this.videoTrack)&&$r(this.audioTrack)||(E||w||G)&&Nn(this)}pXl(this);aO(this.C,this.videoTrack,this.videoTrack.uJ,!1);aO(this.C,this.audioTrack,this.audioTrack.uJ,!1);if(!this.policy.NN&&(E=this.videoTrack,P=this.audioTrack,(!this.Am||zd(this.Am)&&!this.policy.hH)&&!this.PK.isSeeking()&&(this.policy.L||Hw(E)&&E.uJ.Dr()&&this.L.p_)))a:{if(w=this.getCurrentTime(),G=this.L_,P=GR(G,E.uJ.info.Xo,P.uJ.info.Xo,0),Q=vz(G.mZ)+P/Cq(G.mZ), w+=Math.max(Q,Q+G.policy.jz-P/E.uJ.info.Xo),E.W.length){if(E.W[0].info.kp[0].startTime<=w)break a;Da(E)}G=E.G;for(P=G.W.length-1;P>=0;P--)G.W[P].info.startTime>w&&G.W.pop();LOu(E);E.L&&w5&&t.L_.shift();E=E.U7;var k;if((k=this.Fo.getVideoData())==null?0:k.enableServerStitchedDai)k=DMl(this.audioTrack,E),G=DMl(this.videoTrack,E),k!==0&&G!==0&&k!==G&&this.handleError("ssdai.avsync",{sq:E,a:k,v:G},0)}}; g.M.Ki=function(H,E,G,P){H.info.video&&this.G.Ki(E,G,P)}; g.M.Q9=function(H){this.L.Q9(H)}; g.M.vl=oF(12);g.M.Hd=function(){if(g.F(this.Fo.getPlayerState(),8)){var H,E,G=(E=(H=this.Fo.xt())==null?void 0:H.getCurrentTime())!=null?E:this.Fo.getCurrentTime(),P;(P=this.BF)==null||Lqs(P,G)}var Q;(Q=this.U2)==null||g.J3(Q)}; g.M.D6=function(){return this.videoTrack.C||this.audioTrack.C}; g.M.seek=function(H,E){if(this.Iu())return R6();if(this.D6())return R6("seeking to head");if(this.policy.WF&&!isFinite(H))return UCw(this.PK),g.GU(Infinity);hNw(this);$YM(this,H,!1,E.seekSource);d4(this);this.policy.L||pXl(this,H);this.Am&&this.Am.L&&this.Am.W&&!this.Fo.getVideoData().xG&&(this.Am.L.isLocked()||this.Am.W.isLocked())&&this.Fo.YQ({reattachOnLockedBuffer:1,vsb:""+this.Am.W.isLocked(),asb:""+this.Am.L.isLocked()});var G=this.getCurrentTime(),P=this.PK.seek(H,E);if(!this.policy.T$||this.policy.jT)this.currentTime= P;Ub(this.G,H,G,this.policy.YJ&&!E.FV);Nn(this);return g.GU(P)}; g.M.E4=function(H){return this.policy.L&&this.W.E4(H)}; g.M.QJ=function(H){return this.W.QJ(H)}; g.M.G3=function(H,E){this.W.G3(H,E)}; g.M.getCurrentTime=function(){if(this.policy.T$){var H=this.YV()||0;return this.Fo.getCurrentTime(!0)-H}return this.currentTime}; g.M.Mu=function(){return this.audioTrack.uJ.info}; g.M.zp=function(){return this.videoTrack.uJ.info}; g.M.eI=function(){return this.audioTrack.uJ.info.K_}; g.M.AI=function(){return this.videoTrack.uJ.info.K_}; g.M.G$=function(){try{this.mI(),Da(this.audioTrack),Da(this.videoTrack),e4(this.audioTrack),e4(this.videoTrack),this.audioTrack.dispose(),this.videoTrack.dispose(),g.J.prototype.G$.call(this)}catch(H){g.h3(H)}}; g.M.handleError=function(H,E,G){G=G===void 0?0:G;var P=uN(G);H==="fmt.unplayable"&&this.ou.isLive&&(this.policy.Kz=!1,atw(this.ou));E=new g.q$(H,E,G);g.bY(this);gt(E.details);this.Fo.handleError(E);H!=="html5.invalidstate"&&E.errorCode!=="fmt.unplayable"&&H!=="fmt.unparseable"&&P&&this.dispose()}; g.M.NL=function(){var H=Wg(this.audioTrack),E=Wg(this.videoTrack);H={lct:this.getCurrentTime().toFixed(3),lsk:this.PK.isSeeking(),lmf:this.L.L.isLocked(),lbw:MO(this.schedule).toFixed(3),lhd:vz(this.schedule).toFixed(3),lst:((this.schedule.B.BK()||0)*1E9).toFixed(3),laa:H?H.PO():"",lva:E?E.PO():"",lar:this.audioTrack.L?this.audioTrack.L.PO():"",lvr:this.videoTrack.L?this.videoTrack.L.PO():"",laq:""+u$(this.audioTrack),lvq:""+u$(this.videoTrack)};this.Am&&!this.Am.f0()&&this.Am.L&&this.Am.W&&(H.lab= Kk(this.Am.L.qV()),H.lvb=Kk(this.Am.W.qV()));this.E7&&(H.lapt=((0,g.ON)()-this.E7).toFixed(0),H.lapr=jlw(this));this.z$&&(H.lapmabht=((0,g.ON)()-this.z$).toFixed(0),H.lapmabh=aS(this,this.audioTrack).toFixed(0));this.Yp&&(H.lapmvbht=((0,g.ON)()-this.Yp).toFixed(0),H.lapmvbh=aS(this,this.videoTrack).toFixed(0));this.eR&&(H.lapsdai=((0,g.ON)()-this.eR).toFixed(0));return H}; g.M.ZD=function(){try{this.policy.L&&this.W.G3(!1,"pending"),this.audioTrack.ZD(),this.videoTrack.ZD()}catch(H){g.h3(H)}this.policy.D=""}; g.M.z9=function(H){return this.videoTrack&&this.audioTrack?this.videoTrack.z9(H)&&this.audioTrack.z9(H):!0}; g.M.ye=function(){return mX(this.L_)}; g.M.g5=function(H,E,G){this.Fo.g5(H,E,G===void 0?!1:G)}; g.M.mj=function(){return this.Fo.mj()}; g.M.NB=function(H,E){H/=E;isNaN(this.timestampOffset)&&MGv(this,H-Math.min(H,this.policy.tb));return(H-this.timestampOffset)*E}; g.M.YV=function(){return this.timestampOffset}; g.M.isSeeking=function(){return this.PK.isSeeking()}; g.M.e1=function(){this.G.e1()}; g.M.Mn=function(H,E,G){E=E===void 0?!1:E;G=G===void 0?{}:G;this.policy.L?this.D.Mn(H,E,G):this.L.Mn(H,E,G)}; g.M.bB=function(H,E){if(this.policy.W&&(this.Xk||this.isSeeking()))return this.g5("sdai",{ignoreSkip:"1",isSkip:this.Xk,isSeek:this.isSeeking(),t:H.toFixed(3)}),!1;var G=this.policy.W&&(this.policy.C||this.policy.hm),P=this.videoTrack.uJ.index.Is(H),Q=!1;if(G){var e;if(Q=!((e=this.WF)==null||!e.oO(H,P,this.timestampOffset)))if(yD(this,H,H,P),this.T){var w;(w=this.T)==null||w.oO(H,P)}}else this.T&&(Q=!!this.G.bB(H,this.T));if(!Q)return this.handleError("ad.skipfailed",{dec:!!this.T,t:H.toFixed(3), sq:P}),!1;this.policy.W&&(this.g5("sdai",{skipAdStd:"1"}),this.Xk=!0);if(this.policy.gt){var t;(t=this.BF)==null||t.clear()}MGv(this,this.timestampOffset-E);Nn(this);this.policy.W&&(atw(this.ou),e4(this.audioTrack),e4(this.videoTrack),this.ZD());return!0}; g.M.getManifest=function(){return this.ou}; g.M.isOffline=function(){return!!this.Fo.getVideoData().cotn}; g.M.ZJ=function(H,E){this.Fo.ZJ(H,E)}; g.M.iT=function(H,E){if(this.policy.L)$YM(this,H,!0,E),this.W.G3(!0,"utc"),this.Wo();else if(E=this.Fo.getVideoData().H6){var G=this.C;G.l8=H;G.H6=E;Hm(this)}}; g.M.HN=function(H){this.videoTrack.C=!1;this.audioTrack.C=!1;this.PK.L=!1;this.Fo.HN(H)}; g.M.Zf=function(H){this.PK.Zf(H-this.YV())}; g.M.z_=function(){this.Fo.z_()}; g.M.J6=function(H){H!==this.policy.xH&&((this.policy.xH=H)||this.Wo())}; g.M.YQ=function(H){this.Fo.YQ(H)}; g.M.qk=function(H){this.Fo.qk(H)}; g.M.mJ=function(H,E,G){var P;(P=this.WF)==null||P.mJ(H,E,G);this.policy.C&&(this.W.p_=void 0,this.Wo())}; g.M.nO=function(H){var E;(E=this.WF)==null||E.nO(H)}; g.M.Nq=function(H,E){var G;(G=this.WF)==null||G.Nq(H,E)}; g.M.NE=function(H,E){if(this.policy.C){var G,P=(G=H.N9)==null?void 0:G[0],Q,e,w;this.g5("clidai",{onqlst:1,len:((Q=H.N9)==null?void 0:Q.length)||0,rn:E,evt:YTu(P==null?void 0:(e=P.kt)==null?void 0:e.event),cid:(P==null?void 0:(w=P.kt)==null?void 0:w.identifier)||"null",sq:(P==null?void 0:P.Fu)||-1,trk:(P==null?void 0:P.trackType)||"null"});var t;(t=this.WF)==null||t.NE(H,E,this.T||void 0)}}; g.M.prefetchKeyPlay=function(H,E){var G=this;HE(this)&&(this.mq||(this.mq=new e$(function(P){G.Fo.QG(P)}),g.d(this,this.mq)),uau(this.mq,{Kt:H, Sw:E,B$:2}),this.Wo())};g.M=g.rp.prototype;g.M.Y9=function(H,E,G,P,Q,e){return this.ze.Y9(H,E,G,P,Q,e)}; g.M.XP=function(H,E,G,P,Q,e){return this.ze.XP(H,E,G,P,Q,e)}; g.M.P1=function(H){return this.ze.P1(H)}; g.M.q3=function(H){this.ze.q3(H)}; g.M.Ef=function(H,E,G,P){return this.ze.Ef(H,E,G,P)}; g.M.e1=function(){this.ze.e1()}; g.M.oO=function(H,E){this.ze.oO(H,E)}; g.M.sA=function(){this.ze.sA()}; g.M.dN=oF(56);g.M.EB=function(H,E,G){this.ze.EB(H,E,G)}; g.M.dh=oF(59);g.M.aQ=function(H,E,G,P,Q,e,w,t,k){this.ze.aQ(H,E,G,P,Q,e,w,t,k)}; g.M.vZ=function(H){this.ze.vZ(H)}; g.M.F7=function(H){return this.ze.F7(H)}; g.M.Q7=function(H){return this.ze.Q7(H)}; g.M.Ds=function(H){return this.ze.Ds(H)};g.C(Mm,g.z7);g.C(Se,Mm);Se.prototype.C=function(H,E){if(H&&E){var G=Number(DN(H,"cpi"))*1+1;isNaN(G)||G<=0||Gthis.G&&(this.G=G,g.ZR(this.L)||(this.L={},this.D.stop(),this.W.stop())),this.L[E]=H,g.J3(this.W))}}; Se.prototype.T=function(){for(var H=g.R(Object.keys(this.L)),E=H.next();!E.done;E=H.next()){var G=E.value;E=this.publish;for(var P=this.G,Q=g.AL(this.L[G]),e=[],w=g.R(Q[6].split("&")),t=w.next();!t.done;t=w.next())t=t.value,t.indexOf("cpi=")===0?e.push("cpi="+P.toString()):t.indexOf("ek=")===0?e.push("ek="+g.Bo(G)):e.push(t);Q[6]="?"+e.join("&");G="skd://"+Q.slice(2).join("");Q=G.length*2;P=new Uint8Array(Q+4);P[0]=Q%256;P[1]=(Q-P[0])/256;for(Q=0;Q0)for(var G=g.R(this.L),P=G.next();!P.done;P=G.next())if(E===P.value.info.cryptoPeriodIndex){E=!0;break a}E=!1}if(!E){E=(0,g.ON)();a:{G=H.cryptoPeriodIndex;if(!isNaN(G)){P=g.R(this.G.values());for(var Q=P.next();!Q.done;Q=P.next())if(Math.abs(Q.value.cryptoPeriodIndex-G)<=1){G=!0;break a}}G=!1}G?(G=H.L,G=Math.max(0,Math.random()*((isNaN(G)?120:G)-30))*1E3):G=0;this.publish("log_qoe",{wvagt:"delay."+G,cpi:H.cryptoPeriodIndex,reqlen:this.L.length}); G<=0?F$U(this,H):(this.L.push({time:E+G,info:H}),g.J3(this.W,G))}}; Bw.prototype.G$=function(){this.L=[];Mm.prototype.G$.call(this)};var Mx={},Qdv=(Mx.DRM_TRACK_TYPE_AUDIO="AUDIO",Mx.DRM_TRACK_TYPE_SD="SD",Mx.DRM_TRACK_TYPE_HD="HD",Mx.DRM_TRACK_TYPE_UHD1="UHD1",Mx);g.C(pAw,g.J);g.C(aq,g.z7);g.M=aq.prototype;g.M.LB=function(H){var E=this;if(!(this.Iu()||H.size<=0)){var G={};H.forEach(function(P,Q){var e=Bh(E.W)?Q:P;Q=new Uint8Array(Bh(E.W)?P:Q);Bh(E.W)&&qx1(Q);P=g.H4(Q,4);qx1(Q);Q=g.H4(Q,4);E.L[P]?E.L[P].status=e:E.L[Q]?E.L[Q].status=e:E.L[P]={type:"",status:e};euQ(E,E.L[P].type,G)}); IkQ(this,",");nr(this,{onkeystatuschange:1});this.status="kc";this.publish("keystatuseschange",this)}}; g.M.error=function(H,E,G,P){this.Iu()||(this.publish("licenseerror",H,E,G,P),H==="drm.provision"&&(H=(Date.now()-this.C)/1E3,this.C=NaN,this.publish("ctmp","provf",{et:H.toFixed(3)})));uN(E)&&this.dispose()}; g.M.shouldRetry=function(H,E){return!H&&this.requestNumber===E.requestNumber}; g.M.G$=function(){this.L={};g.z7.prototype.G$.call(this)}; g.M.NL=function(){var H={ctype:this.N.contentType||"",length:this.N.initData.length,requestedKeyIds:this.Jm,cryptoPeriodIndex:this.cryptoPeriodIndex};this.G&&(H.keyStatuses=this.L);return H}; g.M.getInfo=function(){var H=this.D.join();if(m7(this)){var E=new Set,G;for(G in this.L)this.L[G].status!=="usable"&&E.add(this.L[G].type);H+="/UKS."+Array.from(E)}return H+="/"+this.cryptoPeriodIndex}; g.M.TU=function(){return this.url};g.C(m8,g.J);g.M=m8.prototype;g.M.DN=function(H){if(this.T){var E=H.messageType||"license-request";this.T(new Uint8Array(H.message),E)}}; g.M.LB=function(){this.B&&this.B(this.L.keyStatuses)}; g.M.onClosed=function(){this.Iu()||g.aD("xboxone")&&this.G&&this.G("closedShouldNotRetry")}; g.M.zN=function(H){this.T&&this.T(H.message,"license-request")}; g.M.Oz=function(H){if(this.G){if(this.W){var E=this.W.error.code;H=this.W.error.systemCode}else E=H.errorCode,H=H.systemCode;this.G("t.prefixedKeyError;c."+E+";sc."+H,E,H)}}; g.M.IH=function(){this.C&&this.C()}; g.M.update=function(H){var E=this;if(this.L)return this.L.update(H).then(null,b1(function(G){P6v(E,"t.update",G)})); this.W?this.W.update(H):this.element.addKey?this.element.addKey(this.N.keySystem,H,this.initData,this.sessionId):this.element.webkitAddKey&&this.element.webkitAddKey(this.N.keySystem,H,this.initData,this.sessionId);return jD()}; g.M.G$=function(){this.L&&(this.L_?this.L.close().catch(g.p5):this.L.close());this.element=null;g.J.prototype.G$.call(this)};g.C(JQ,g.J);g.M=JQ.prototype;g.M.setServerCertificate=function(){return this.W.setServerCertificate?this.L.flavor==="widevine"&&this.L.Lb?this.W.setServerCertificate(this.L.Lb):d_(this.L)&&this.L.nX?this.W.setServerCertificate(this.L.nX):null:null}; g.M.createSession=function(H,E){var G=H.initData;if(this.L.keySystemAccess){E&&E("createsession");var P=this.W.createSession();h4(this.L)?G=ri7(G,this.L.nX):d_(this.L)&&(G=Kfq(G)||new Uint8Array(0));E&&E("genreq");H=P.generateRequest(H.contentType,G);var Q=new m8(null,null,null,P,null,this.B);H.then(function(){E&&E("genreqsuccess")},b1(function(w){P6v(Q,"t.generateRequest",w)})); return Q}if(rD(this.L))return Gfu(this,G);if(pP(this.L))return hIU(this,G);if((P=this.element)==null?0:P.generateKeyRequest)this.element.generateKeyRequest(this.L.keySystem,G);else{var e;(e=this.element)==null||e.webkitGenerateKeyRequest(this.L.keySystem,G)}return this.D=new m8(this.element,this.L,G,null,null,this.B)}; g.M.uR=function(H){var E=W8(this,H);E&&E.zN(H)}; g.M.Hh=function(H){var E=W8(this,H);E&&E.Oz(H)}; g.M.Ja=function(H){var E=W8(this,H);E&&E.IH(H)}; g.M.getMetrics=function(){var H=null;if(this.W&&this.W.getMetrics)try{H=this.W.getMetrics()}catch(E){}return H}; g.M.G$=function(){this.G=this.W=null;var H;(H=this.D)==null||H.dispose();H=g.R(Object.values(this.C));for(var E=H.next();!E.done;E=H.next())E.value.dispose();this.C={};g.J.prototype.G$.call(this);delete this.element};g.M=L7.prototype;g.M.get=function(H){H=this.findIndex(H);return H!==-1?this.values[H]:null}; g.M.remove=function(H){H=this.findIndex(H);H!==-1&&(this.keys.splice(H,1),this.values.splice(H,1))}; g.M.removeAll=function(){this.keys=[];this.values=[]}; g.M.set=function(H,E){var G=this.findIndex(H);G!==-1?this.values[G]=E:(this.keys.push(H),this.values.push(E))}; g.M.findIndex=function(H){return g.D7(this.keys,function(E){return g.l8(H,E)})};g.C(zJ7,g.z7);g.M=zJ7.prototype;g.M.R0Z=function(H){this.uV({onecpt:1});H.initData&&l8w(this,new Uint8Array(H.initData),H.initDataType)}; g.M.OS7=function(H){this.uV({onndky:1});l8w(this,H.initData,H.contentType)}; g.M.Uq=function(H){this.uV({onneedkeyinfo:1});this.X.U("html5_eme_loader_sync")&&(this.B.get(H.initData)||this.B.set(H.initData,H));LXl(this,H)}; g.M.jM=function(H){this.G.push(H);rg(this)}; g.M.createSession=function(H){var E=Uu1(this)?PDT(H):g.H4(H.initData);this.W.get(E);this.E7=!0;H=new aq(this.videoData,this.X,H,this.drmSessionId);this.W.set(E,H);H.subscribe("ctmp",this.Jl,this);H.subscribe("keystatuseschange",this.LB,this);H.subscribe("licenseerror",this.T8,this);H.subscribe("newlicense",this.TN,this);H.subscribe("newsession",this.SC,this);H.subscribe("sessionready",this.v2,this);H.subscribe("fairplay_next_need_key_info",this.dF,this);this.X.U("html5_enable_vp9_fairplay")&&H.subscribe("qualitychange", this.Cj,this);H.subscribe("sabrlicenseconstraint",this.M7_,this);uKd(H,this.D)}; g.M.TN=function(H){this.Iu()||(this.uV({onnelcswhb:1}),H&&!this.heartbeatParams&&(this.heartbeatParams=H,this.publish("heartbeatparams",H)))}; g.M.SC=function(){this.Iu()||(this.uV({newlcssn:1}),this.G.shift(),this.E7=!1,rg(this))}; g.M.v2=function(){if(rD(this.L)&&(this.uV({onsnrdy:1}),this.T$--,this.T$===0)){var H=this.p_,E,G;(E=H.element)==null||(G=E.msSetMediaKeys)==null||G.call(E,H.G)}}; g.M.LB=function(H){if(!this.Iu()){this.O7||(this.O7=!0,this.X.z6()&&Riu(this));this.uV({onksch:1});var E=this.Cj;if(!m7(H)&&g.Uo&&H.W.keySystem==="com.microsoft.playready"&&navigator.requestMediaKeySystemAccess)var G="large";else{G=[];var P=!0;if(m7(H))for(var Q=g.R(Object.keys(H.L)),e=Q.next();!e.done;e=Q.next())e=e.value,H.L[e].status==="usable"&&G.push(H.L[e].type),H.L[e].status!=="unknown"&&(P=!1);if(!m7(H)||P)G=H.D;G=yud(G)}E.call(this,G);if(!m7(H))for(E={},G=g.R(H.D),P=G.next();!P.done;P=G.next())euQ(H, P.value,E);this.videoData.authorizedFormats=H.authorizedFormats;this.publish("keystatuseschange",H)}}; g.M.Jl=function(H,E){this.Iu()||this.publish("ctmp",H,E)}; g.M.dF=function(H,E){this.Iu()||this.publish("fairplay_next_need_key_info",H,E)}; g.M.T8=function(H,E,G,P){this.Iu()||(this.videoData.U("html5_log_drm_metrics_on_error")&&Riu(this),this.publish("licenseerror",H,E,G,P))}; g.M.O$=function(){return this.N}; g.M.Cj=function(H){var E=g.tI("auto",H,!1,"l");if(this.videoData.P9){if(this.N.equals(E))return}else if(kpT(this.N,H))return;this.N=E;this.publish("qualitychange");this.uV({updtlq:H})}; g.M.M7_=function(H){this.videoData.sabrLicenseConstraint=H}; g.M.G$=function(){var H,E;this.L.keySystemAccess&&this.element&&!((H=this.mediaElement)==null?0:(E=H.Fo)==null?0:E.u8())&&(this.Jm?this.element.setMediaKeys(null).catch(g.p5):this.element.setMediaKeys(null));this.element=null;this.G=[];H=g.R(this.W.values());for(E=H.next();!E.done;E=H.next())E=E.value,E.unsubscribe("ctmp",this.Jl,this),E.unsubscribe("keystatuseschange",this.LB,this),E.unsubscribe("licenseerror",this.T8,this),E.unsubscribe("newlicense",this.TN,this),E.unsubscribe("newsession",this.SC, this),E.unsubscribe("sessionready",this.v2,this),E.unsubscribe("fairplay_next_need_key_info",this.dF,this),this.X.U("html5_enable_vp9_fairplay")&&E.unsubscribe("qualitychange",this.Cj,this),E.dispose();this.W.clear();this.C.removeAll();this.B.removeAll();this.heartbeatParams=null;g.z7.prototype.G$.call(this)}; g.M.NL=function(){for(var H={systemInfo:this.L.NL(),sessions:[]},E=g.R(this.W.values()),G=E.next();!G.done;G=E.next())H.sessions.push(G.value.NL());return H}; g.M.getInfo=function(){return this.W.size<=0?"no session":""+this.W.values().next().value.getInfo()+(this.T?"/KR":"")}; g.M.uV=function(H,E){E=E===void 0?!1:E;this.Iu()||(gt(H),(this.X.z6()||E)&&this.publish("ctmp","drmlog",H))};var wOt=!1,lZd=!1;g.C(mpM,g.J);g.M=mpM.prototype;g.M.gz=function(){return!!this.du}; g.M.RY=function(){return this.W}; g.M.handleError=function(H){var E=this;t21(this,H);var G;if(G=!((H.errorCode==="html5.invalidstate"||H.errorCode==="fmt.unplayable"||H.errorCode==="fmt.unparseable")&&wK(this,H.errorCode,H.details)))if(G=!yNu(this,H))this.videoData.errorDetail==="7"&&g.vV(this.lJ)?(A1(this,"innertube_player_reload_required"),G=!0):G=!1,G=!G;if(G)if(this.lJ.p_!=="yt"&&cGq(this,H)&&this.videoData.xx&&(0,g.ON)()/1E3>this.videoData.xx&&this.lJ.p_==="hm"&&(G=Object.assign({e:H.errorCode},H.details),G.stalesigexp="1",G.expire= this.videoData.xx,G.init=this.videoData.L8/1E3,G.now=(0,g.ON)()/1E3,G.systelapsed=((0,g.ON)()-this.videoData.L8)/1E3,H=new g.q$(H.errorCode,G,2),this.Fo.kq(H.errorCode,2,"SIGNATURE_EXPIRED",gt(H.details))),uN(H.severity)){var P;G=(P=this.Fo.loader)==null?void 0:P.L.L;if(this.lJ.U("html5_use_network_error_code_enums"))if(Saq(H)&&G&&G.isLocked())var Q="FORMAT_UNAVAILABLE";else if(this.lJ.C||H.errorCode!=="auth"||H.details.rc!==429)H.errorCode==="ump.spsrejectfailure"&&(Q="HTML5_SPS_UMP_STATUS_REJECTED"); else{Q="TOO_MANY_REQUESTS";var e="6"}else Saq(H)&&G&&G.isLocked()?Q="FORMAT_UNAVAILABLE":this.lJ.C||H.errorCode!=="auth"||H.details.rc!=="429"?H.errorCode==="ump.spsrejectfailure"&&(Q="HTML5_SPS_UMP_STATUS_REJECTED"):(Q="TOO_MANY_REQUESTS",e="6");this.Fo.kq(H.errorCode,H.severity,Q,gt(H.details),e)}else this.Fo.publish("nonfatalerror",H),P=/^pp/.test(this.videoData.clientPlaybackNonce),this.Di(H.errorCode,H.details),P&&H.errorCode==="manifest.net.connect"&&(H="https://www.youtube.com/generate_204?cpn="+ this.videoData.clientPlaybackNonce+"&t="+(0,g.ON)(),Rc(H,"manifest",function(w){E.C=!0;E.g5("pathprobe",w)},function(w){E.Di(w.errorCode,w.details)}))}; g.M.g5=function(H,E){this.Fo.eT.g5(H,E)}; g.M.Di=function(H,E){E=gt(E);this.Fo.eT.Di(H,E)};$a.prototype.vB=function(H){var E=Gxw(this);if(!H)return{Lu:q3,sK:q3,H8:q3,Ak:q3,GZ:q3,bD:q3,S6:E};var G=q3;if(Rb(E)||this.U("html5_perf_cap_override_sticky"))G=I5(this,H);return{Lu:G,sK:jxv(this,H),H8:Ox7(this,H),Ak:qz(this,H.videoData),GZ:RV(this,H.videoData,H),bD:dvT(this,H),S6:E}}; $a.prototype.nQ=function(H){if(g.vV(this.X)&&xb(this.X.T,ll.HEIGHT))var E=H.L.videoInfos[0].video.qualityOrdinal;else{var G=this.zg(!!H.L.L);As(H.videoData)||g9(H.videoData);H=H.L.videoInfos;if(H.length){var P=.85,Q=H[0].video;Q.projectionType!=="MESH"&&Q.projectionType!=="EQUIRECTANGULAR"&&Q.projectionType!=="EQUIRECTANGULAR_THREED_TOP_BOTTOM"||fU||(P=.45);Q=g.hE(this.X.experiments,"html5_viewport_undersend_maximum");for(var e=0;e=0,stateAtSend:E,joinLatencySecs:e,jsErrorCount:this.jsErrorCount,playTimeSecs:this.playTimeSecs,rebufferTimeSecs:this.rebufferTimeSecs,seekCount:this.seekCount,networkErrorCount:this.networkErrorCount,nonNetworkErrorCount:this.nonNetworkErrorCount,playerCanaryType:P,playerCanaryStage:Q,isAd:this.provider.videoData.isAd(),liveMode:G,hasDrm:!!g.Ej(this.provider.videoData),isGapless:this.provider.videoData.B,isServerStitchedDai:this.provider.videoData.enableServerStitchedDai, encounteredSabrFallback:this.encounteredSabrFallback,isSabr:ip(this.provider.videoData)};H||g.HY("html5PlayerHealthEvent",E);this.G=!0;this.dispose()}}; sg.prototype.G$=function(){this.G||this.send();window.removeEventListener("error",this.x3);window.removeEventListener("unhandledrejection",this.x3);g.J.prototype.G$.call(this)}; var lRD=/\bnet\b/;GF.prototype.update=function(){if(this.B){var H=this.WK()||0,E=g.Gm(this.provider);H>=this.provider.Fo.getDuration()-.1&&(this.previouslyEnded=!0);if(H!==this.L||uwq(this,H,E)){var G;if(!(G=HE-this.Vm+2||uwq(this,H,E))){G=this.provider.Fo.getVolume();var P=G!==this.L_,Q=this.provider.Fo.isMuted()?1:0;Q!==this.N?(this.N=Q,G=!0):(!P||this.D>=0||(this.L_=G,this.D=E),G=E-this.D,this.D>=0&&G>2?(this.D=-1,G=!0):G=!1)}G&&(th(this),this.G=H);this.Vm=E;this.L=H}}}; GF.prototype.WK=function(){var H=this.provider.Fo.WK();return Cd(this.provider.videoData)?H+this.provider.Fo.YV():H};FX.prototype.send=function(H){var E=this;if(!this.MZ){var G=V2(this),P=g.eB(this.uri,G);this.X.U("vss_through_gel_double")&&VRM(P);this.E7&&!this.X.U("html5_simplify_pings")?ffu(this,P):tC(this,H).then(function(Q){E.X.U("html5_switch_vss_to_post")&&(Q=Q||{},Q.method="POST");E.E7&&(Q=Q||{},Q.method="POST",Q.postParams={atr:E.attestationResponse});ub(P,Q,{token:E.WF,uq:E.FI,mdxEnvironment:E.mdxEnvironment},E.X,H,E.PF,E.isFinal&&E.n6||E.O7||E.G&&E.hC)}); this.MZ=!0}}; FX.prototype.W=function(H){H===void 0&&(H=NaN);return Number(H.toFixed(3)).toString()}; var dh={},b2d=(dh.LIVING_ROOM_APP_MODE_UNSPECIFIED=0,dh.LIVING_ROOM_APP_MODE_MAIN=1,dh.LIVING_ROOM_APP_MODE_KIDS=2,dh.LIVING_ROOM_APP_MODE_MUSIC=3,dh.LIVING_ROOM_APP_MODE_UNPLUGGED=4,dh.LIVING_ROOM_APP_MODE_GAMING=5,dh),Dp={},y01=(Dp.EMBEDDED_PLAYER_MODE_UNKNOWN=0,Dp.EMBEDDED_PLAYER_MODE_DEFAULT=1,Dp.EMBEDDED_PLAYER_MODE_PFP=2,Dp.EMBEDDED_PLAYER_MODE_PFL=3,Dp);g.C(Ja,g.J);g.M=Ja.prototype; g.M.GO=function(){if(!this.G){this.provider.videoData.qU===16623&&g.p5(Error("Playback for EmbedPage"));var H=A2(this,"playback");this.B=XPd(this);uDU(this.L);H.B=Ck(this);this.W>0&&(H.L-=this.W);H.send();if(this.provider.videoData.vQ){H=this.provider.X;var E=this.provider.videoData,G={html5:"1",video_id:E.videoId,cpn:E.clientPlaybackNonce,ei:E.eventId,ptk:E.vQ,oid:E.wF,ptchn:E.q2,pltype:E.FB,content_v:TU(E)};E.W4&&Object.assign(G,{m:E.W4});H=g.eB(H.Yx+"ptracking",G);vZ(this,H)}this.provider.videoData.Qm|| (owM(this),kSM(this));this.G=!0;H=this.L;H.L=H.WK();H.Vm=g.Gm(H.provider);!(H.G===0&&H.L<5)&&H.L-H.G>2&&(H.G=H.L);H.B=!0}}; g.M.onProgress=function(){this.L.update();nYs(this)&&(owM(this),kSM(this))}; g.M.G$=function(){g.J.prototype.G$.call(this);PJ(this);rhq(this.L)}; g.M.NL=function(){return V2(A2(this,"playback"))}; g.M.sQ=function(H){var E=A2(this,"engage");E.Jm=H;return fVq(E,Ppj(this.provider))};SZn.prototype.isEmpty=function(){return this.endTime===this.startTime};rN.prototype.U=function(H){return this.X.U(H)}; rN.prototype.getCurrentTime=function(){return this.Fo.getCurrentTime()}; rN.prototype.WK=function(){return this.Fo.WK()}; var L7d={other:1,none:2,wifi:3,cellular:7,ethernet:30};g.C(g.$9,g.J);g.M=g.$9.prototype;g.M.GO=function(){this.L&&this.L.GO();this.W&&this.W.GO()}; g.M.onProgress=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Xe){var H;(H=this.G.get(this.Xe))==null||H.onProgress()}else if(this.L)this.L.onProgress()}; g.M.y0=function(H){this.qoe&&this.qoe.y0(H)}; g.M.cL=oF(29);g.M.rG=oF(35);g.M.Z0=function(H,E){this.qoe&&this.qoe.Z0(H,E)}; g.M.lE=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Xe){var H;(H=this.G.get(this.Xe))!=null&&th(H.L)}else this.L&&th(this.L.L)}; g.M.Di=function(H,E){this.qoe&&qEU(this.qoe,H,E);if(this.W)this.W.onError(H)}; g.M.Vt=function(H,E){switch(H){case "M":var G;(G=this.qoe)==null||G.Vt(H,E);break;case "A":var P;(P=this.qoe)==null||P.Vt(H)}}; g.M.onPlaybackRateChange=function(H){if(this.qoe)this.qoe.onPlaybackRateChange(H);this.L&&th(this.L.L)}; g.M.Dq=oF(52);g.M.g5=function(H,E,G){this.qoe&&this.qoe.g5(H,E,G)}; g.M.fO=function(H,E,G){this.qoe&&this.qoe.fO(H,E,G)}; g.M.aD=function(H){var E;(E=this.qoe)==null||E.aD(H)}; g.M.Bf=function(H){var E;(E=this.qoe)==null||E.Bf(H)}; g.M.vN=function(H,E,G,P){var Q;(Q=this.qoe)==null||Q.vN(H,E,G,P)}; g.M.qk=function(H){this.qoe&&this.qoe.qk(H)}; g.M.g0=function(H,E,G){this.qoe&&this.qoe.g0(H,E,G)}; g.M.KM=oF(23);g.M.UP=function(){if(this.qoe)return this.qoe.UP()}; g.M.NL=function(){if(this.provider.videoData.enableServerStitchedDai&&this.Xe){var H,E;return(E=(H=this.G.get(this.Xe))==null?void 0:H.NL())!=null?E:{}}return this.L?this.L.NL():{}}; g.M.zV=function(){var H;return(H=this.qoe)==null?void 0:H.zV()}; g.M.VQ=function(H,E){var G;(G=this.qoe)==null||G.VQ(H,E)}; g.M.sQ=function(H){return this.L?this.L.sQ(H):function(){}}; g.M.getVideoData=function(){return this.provider.videoData}; g.M.resume=function(){this.qoe&&this.qoe.resume()};g.C(g.hS,g.J);g.M=g.hS.prototype;g.M.MV=function(H,E){this.sync();E&&this.L.array.length>=2E3&&this.Qz("captions",1E4);E=this.L;if(H.length>1&&H.length>E.array.length)E.array=E.array.concat(H),E.array.sort(E.L);else{H=g.R(H);for(var G=H.next();!G.done;G=H.next())G=G.value,!E.array.length||E.L(G,E.array[E.array.length-1])>0?E.array.push(G):g.iW(E.array,G,E.L)}this.G=NaN;this.sync()}; g.M.hR=function(H){H.length>1E4&&g.p5(new g.LN("Over 10k cueRanges removal occurs with a sample: ",H[0]));if(!this.Iu()){var E=new Set(H);this.W=this.W.filter(function(G){return!E.has(G)}); NJd(this.L,E);this.sync()}}; g.M.En=function(H,E){if(!this.Iu()){var G=this.tj().find(function(P){return P.id===E&&P.namespace===H}); G&&this.hR([G])}}; g.M.Qz=function(H,E){var G=(isNaN(this.G)?cg1(this):this.G)-E;E=this.tj().filter(function(P){return P.namespace===H&&P.endthis.L,e=g.F(G,8)&&g.F(G,16),w=this.Fo.Rs().isBackground()||G.isSuspended();Yu(this,this.BF,e&&!w,Q,"qoe.slowseek",function(){},"timeout"); var t=isFinite(this.L);t=e&&t&&Vi7(E,this.L);var k=!P||Math.abs(P-this.L)>10,W=this.X.U("html5_exclude_initial_sabr_live_dvr_seek_in_watchdog"),I=P===0&&this.W&&[11,10].includes(this.W);Yu(this,this.MZ,t&&k&&!w&&(!W||!I),Q,"qoe.slowseek",function(){E.seekTo(H.L)},"set_cmt"); k=t&&jz(E.AK(),this.L);var A=this.Fo.loader;t=!A||A.xT();var m=function(){E.seekTo(H.L+.001)}; Yu(this,this.O7,k&&t&&!w,Q,"qoe.slowseek",m,"jiggle_cmt");t=function(){return H.Fo.kH()}; Yu(this,this.z$,k&&!w,Q,"qoe.slowseek",t,"new_elem");var u=Pp(G);I=G.isBuffering();var v=E.AK(),n=Kg(v,P),O=n>=0&&v.end(n)>P+5;k=u&&I&&O;W=this.Fo.getVideoData();Yu(this,this.T$,P<.002&&this.L<.002&&e&&g.vV(this.X)&&g.Oz(W)&&!w,Q,"qoe.slowseek",t,"slow_seek_shorts");Yu(this,this.L_,W.hE()&&e&&!w&&!W.N,Q,"qoe.slowseek",t,"slow_seek_gapless_shorts");Yu(this,this.p_,k&&!w,u&&!I,"qoe.longrebuffer",m,"jiggle_cmt");Yu(this,this.WF,k&&!w,u&&!I,"qoe.longrebuffer",t,"new_elem_nnr");if(A){var q=A.getCurrentTime(); e=E.CG();e=JI7(e,q);e=!A.isSeeking()&&P===e;Yu(this,this.dP,u&&I&&e&&!w,u&&!I&&!e,"qoe.longrebuffer",function(){E.seekTo(q)},"seek_to_loader")}e={}; m=Kg(v,Math.max(P-3.5,0));var N=m>=0&&P>v.end(m)-1.1,r=m>=0&&m+1=0&&N&&r<11;e.close2edge=N;e.gapsize=r;e.buflen=v.length;this.W&&(e.seekSour=this.W);Yu(this,this.Jm,u&&I&&!w,u&&!I,"qoe.longrebuffer",function(){},"timeout",e); e=G.isSuspended();e=this.Fo.EZ()&&!e;Yu(this,this.B,e,!e,"qoe.start15s",function(){H.Fo.Aj("ad")},"ads_preroll_timeout"); e=this.X.experiments.xp("html5_use_playback_rate_in_skip_slow_ad")?this.Fo.getPlaybackRate()*1E3:1E3;n=P-this.D5;Yu(this,this.Yp,g.Oz(W)&&A,u&&!I,"qoe.longrebuffer",function(){H.Fo.YQ()},"reset_media_source"); Yu(this,this.eR,g.Oz(W)&&A,u&&!I,"qoe.longrebuffer",t,"reset_media_element");this.D===0&&(this.C=P);A=I&&this.L===0&&P>1&&P===this.C;Yu(this,this.PF,g.Oz(W)&&A,u&&!I,"qoe.slowseek",function(){E.seekTo(0)},"reseek_after_time_jump"); w=G.isOrWillBePlaying()&&!w;O=this.Fo.Q0()-P<6&&!O&&this.Fo.o4();Yu(this,this.N,W.hE()&&w&&I&&O,u&&!I,"qoe.longrebuffer",function(){H.Fo.kH(!1,!0)},"handoff_end_long_buffer_reload"); w=this.W===104||this.Fo.TX;G=OV(W)&&W.isAd()&&!W.N&&w&&(I||g.F(G,8)&&g.F(G,16));Yu(this,this.hm,G,Q,"qoe.start15s",t,"gapless_ad_slow_start");G=OV(W)&&!W.N&&w&&k;Yu(this,this.au,G,Q,"qoe.longrebuffer",t,"gapless_slow_start");this.D=P;this.T.start()}}; vq.prototype.Di=function(H,E,G){E=this.NL(E);E.wn=G;E.wdup=this.G[H]?"1":"0";this.Fo.Di(new g.q$(H,E));this.G[H]=!0}; vq.prototype.NL=function(H){H=Object.assign(this.Fo.NL(!0),H.NL());this.L&&(H.stt=this.L.toFixed(3));this.Fo.getVideoData().isLivePlayback&&(H.ct=this.Fo.getCurrentTime().toFixed(3),H.to=this.Fo.YV().toFixed(3));delete H.uga;delete H.euri;delete H.referrer;delete H.fexp;delete H.vm;return H}; Af.prototype.reset=function(){this.L=this.W=this.G=this.startTimestamp=0;this.D=!1}; Af.prototype.test=function(H){if(!this.T||this.W)return!1;if(!H)return this.reset(),!1;H=(0,g.ON)();if(!this.startTimestamp)this.startTimestamp=H,this.G=0;else if(this.G>=this.T)return this.W=H,!0;this.G+=1;return!1}; Af.prototype.NL=function(){var H={},E=(0,g.ON)();this.startTimestamp&&(H.wsd=(E-this.startTimestamp).toFixed());this.W&&(H.wtd=(E-this.W).toFixed());this.L&&(H.wssd=(E-this.L).toFixed());return H};g.C(MfT,g.J);g.M=MfT.prototype;g.M.setMediaElement=function(H){(this.mediaElement=H)?(this.mediaElement&&(this.T||this.G||!this.mediaElement.WZ()||this.seekTo(.01,{cO:"seektimeline_setupMediaElement"})),Yo(this)):bz(this)}; g.M.getCurrentTime=function(H){H=H===void 0?!1:H;if(YC(this.Fo)){if(this.U("html5_use_centralized_player_time")&&!H&&!isNaN(this.C))return this.C;if(!isNaN(this.W))return this.W}else{if(this.U("html5_use_centralized_player_time")&&!H&&!isNaN(this.C)&&isFinite(this.C))return this.C;if(!isNaN(this.W)&&isFinite(this.W))return this.W}return this.mediaElement&&FVu(this)?this.mediaElement.getCurrentTime()+this.timestampOffset:this.G||0}; g.M.I5=function(){return this.MZ}; g.M.WK=function(){return this.getCurrentTime()-this.YV()}; g.M.Ev=function(){return this.L?this.L.Ev():Infinity}; g.M.isAtLiveHead=function(H){if(!this.L)return!1;H===void 0&&(H=this.getCurrentTime());return Wk(this.L,H)}; g.M.Ke=function(){return!!this.L&&this.L.Ke()}; g.M.seekTo=function(H,E){var G=E===void 0?{}:E;E=G.aN===void 0?!1:G.aN;var P=G.Tk===void 0?0:G.Tk;var Q=G.v9===void 0?!1:G.v9;var e=G.lq===void 0?0:G.lq;var w=G.cO===void 0?"":G.cO;var t=G.seekSource===void 0?void 0:G.seekSource;var k=G.NB===void 0?!1:G.NB;var W=G.FV===void 0?!1:G.FV;G=G.VI===void 0?!1:G.VI;k&&(H+=this.YV());ip(this.videoData)&&t===29&&(this.MZ=void 0);k=H=this.VG())||!g.eP(this.videoData),n||(O={st:O,mst:this.VG()},this.L&&this.U("html5_high_res_seek_logging")&&(O.ht=this.L.Ev(),O.adft=Ba(this.L)),this.Fo.g5("seeknotallowed",O)),O=n));if(!O)return this.D&&(this.D=null,iz(this)),g.GU(this.getCurrentTime());O=.005;W&&this.U("html5_sabr_seek_no_shift_tolerance")&&(O=0);if(Math.abs(H-this.W)<=O&&this.PF)return this.T;w&&(O=H,this.X.z6()||this.U("html5_log_seek_reasons"))&& (w={reason:w,tgt:O},this.U("html5_sabr_csdai_seek_log")&&(w.source=t),this.Fo.g5("seekreason",w));t&&(this.p_.W=t);this.PF&&bz(this);this.T||(this.T=new Kd);H&&!isFinite(H)&&Kou(this,!1);(w=G||k)||(w=H,w=!(this.videoData.isLivePlayback&&this.videoData.G&&!this.videoData.G.L&&!(this.mediaElement&&this.mediaElement.xM()>0&&i4u(this.mediaElement)>0)||Bm(this.videoData)&&this.MC()===this.VG(!1)?0:isFinite(w)||!Bm(this.videoData)));w||(H=wd(this,H,Q));H&&!isFinite(H)&&Kou(this,!1);this.U("html5_use_centralized_player_time")? this.C=H:this.W=this.G=H;this.eR=e;this.B=0;this.L&&(Q=this.L,e=H,RmM(Q,e,!1),MV1(Q,e));Q=this.Fo;e=H;w={aN:E,seekSource:t};Q.tG.G=e;G=Q.Qy;G.mediaTime=e;G.L=!0;w.aN&&Q.yd(w);w=e>Q.videoData.endSeconds&&e>Q.videoData.limitedPlaybackDurationInSeconds;Q.Dx&&w&&isFinite(e)&&jdU(Q);eE.start&&jdU(this.Fo);return this.T}; g.M.VG=function(H){if(!this.videoData.isLivePlayback)return this.Fo.videoData.VG();var E;return Iy(this.videoData)&&((E=this.mediaElement)==null?0:E.isPaused())&&this.videoData.L?(H=this.getCurrentTime(),ACu(this.JT(H)*1E3)+H):this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&ip(this.videoData)&&this.videoData.L?H?this.videoData.L.Jm||0:this.videoData.L.Qd||0:Bm(this.videoData)&&this.videoData.IJ&&this.videoData.L?this.videoData.L.VG()+this.timestampOffset:this.videoData.G&&this.videoData.G.L? !H&&this.L?this.L.Ev():this.Fo.videoData.VG()+this.timestampOffset:this.mediaElement?Q_()?ACu(this.mediaElement.AQ().getTime()):i4u(this.mediaElement)+this.timestampOffset||this.timestampOffset:this.timestampOffset}; g.M.MC=function(){if(this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&ip(this.videoData)){var H;return((H=this.videoData.L)==null?void 0:H.FX)||0}H=this.videoData?this.videoData.MC()+this.timestampOffset:this.timestampOffset;if(Iy(this.videoData)&&this.videoData.L){var E,G=Number((E=this.videoData.progressBarStartPosition)==null?void 0:E.utcTimeMillis)/1E3;if(!isNaN(G)&&(E=this.Db(G),!isNaN(E)))return Math.max(H,E)}return H}; g.M.cB=function(){this.T||this.seekTo(this.G,{cO:"seektimeline_forceResumeTime_singleMediaSourceTransition",seekSource:15})}; g.M.D6=function(){return this.PF&&!isFinite(this.W)}; g.M.G$=function(){JD(this,null);this.p_.dispose();g.J.prototype.G$.call(this)}; g.M.NL=function(){var H={};this.loader&&Object.assign(H,this.loader.NL());this.mediaElement&&Object.assign(H,this.mediaElement.NL());return H}; g.M.G7=function(H){this.timestampOffset=H}; g.M.getStreamTimeOffset=function(){return Bm(this.videoData)?0:this.videoData.L?this.videoData.L.getStreamTimeOffset():0}; g.M.YV=function(){return this.timestampOffset}; g.M.JT=function(H){return this.videoData&&this.videoData.L?this.videoData.L.JT(H-this.timestampOffset):NaN}; g.M.zG=function(){if(!this.mediaElement)return 0;if(sc(this.videoData)){var H=this.mediaElement,E=H.AK();H=(EF(E)&&H.getDuration()?E.end(E.length-1):0)+this.timestampOffset-this.MC();E=this.VG()-this.MC();return Math.max(0,Math.min(1,H/E))}return this.mediaElement.zG()}; g.M.eG=function(H){this.N&&(this.N.L=H)}; g.M.iT=function(H,E,G){this.Fo.g5("requestUtcSeek",{time:H});ip(this.videoData)&&(this.MZ=H);var P;(P=this.loader)==null||P.iT(H,G);E&&(this.E7=E)}; g.M.HN=function(H){ip(this.videoData)&&(this.MZ=void 0);this.E7?(this.Fo.g5("utcSeekingFallback",{source:"streamTime",timeSeconds:this.E7}),this.Fo.seekTo(this.E7,{cO:"utcSeekingFallback_streamTime"}),this.E7=0):(H=this.Db(H),isNaN(H)||(this.Fo.g5("utcSeekingFallback",{source:"estimate",timeSeconds:H}),this.Fo.seekTo(H,{cO:"utcSeekingFallback_estimate"})))}; g.M.z_=function(){this.E7=0}; g.M.Db=function(H){var E=this.getCurrentTime();if(isNaN(E))return NaN;var G=this.JT(E);return isNaN(G)?NaN:H-(G-E)}; g.M.U=function(H){return this.X&&this.X.U(H)};g.C(E_,g.J);E_.prototype.start=function(){this.W.start()}; E_.prototype.stop=function(){this.W.stop()}; E_.prototype.clear=function(){for(var H=g.R(this.L.values()),E=H.next();!E.done;E=H.next())E.value.clear()}; E_.prototype.sample=function(){for(var H=g.R(this.G),E=H.next();!E.done;E=H.next()){var G=g.R(E.value);E=G.next().value;G=G.next().value;this.L.has(E)||this.L.set(E,new w6w(UOJ.has(E)));this.L.get(E).update(G())}this.W.start()}; var UOJ=new Set(["networkactivity"]);w6w.prototype.update=function(H){this.W?(this.buffer.add(H-this.L||0),this.L=H):this.buffer.add(H)}; w6w.prototype.clear=function(){this.buffer.clear();this.L=0};bJ.prototype.sC=function(){return this.started}; bJ.prototype.start=function(){this.started=!0}; bJ.prototype.reset=function(){this.finished=this.started=!1};var fyu=!1;g.C(g.Xy,g.z7);g.M=g.Xy.prototype;g.M.G$=function(){g.fg(this.Nx);p$u(this.JC);this.visibility.unsubscribe("visibilitystatechange",this.JC);APQ(this.eT);g.Vq(this.eT);HO(this);g.eD.gU(this.h6);this.ix();this.L6=null;g.Vq(this.videoData);g.Vq(this.kM);g.Vq(this.K5);g.Vq(this.Vk);g.dT(this.ljo);this.Dx=null;g.z7.prototype.G$.call(this)}; g.M.g0=function(H,E,G,P,Q){if(this.X.U("html5_log_ad_playback_docid")){var e=this.eT;if(e.qoe){e=e.qoe;var w=this.X.p_||"yt";g.BC(e,g.Gm(e.provider),"ad_playback",[H,E,G,Q,w])}}else this.eT.g0(H,E,G);this.U("html5_log_media_perf_info")&&this.g5("adloudness",{ld:P.toFixed(3),cpn:H})}; g.M.eI=function(){var H;return(H=this.loader)==null?void 0:H.eI()}; g.M.AI=function(){var H;return(H=this.loader)==null?void 0:H.AI()}; g.M.zp=function(){var H;return(H=this.loader)==null?void 0:H.zp()}; g.M.Mu=function(){var H;return(H=this.loader)==null?void 0:H.Mu()}; g.M.Gq=function(){return this.videoData.Gq()}; g.M.u8=function(){return this.U("html5_not_reset_media_source")}; g.M.r9=function(){this.videoData.B&&(this.videoData.vt=this.videoData.vt||this.O9.jR().eI(),this.videoData.jd=this.videoData.jd||this.O9.jR().AI());if(FUM(this.videoData)||!s2(this.videoData)){var H=this.videoData.errorDetail;this.kq(this.videoData.errorCode||"auth",2,unescape(this.videoData.errorReason),H,H,this.videoData.sF||void 0)}this.U("html5_generate_content_po_token")&&this.dI();this.U("html5_enable_d6de4")&&this.xJ()}; g.M.getVideoData=function(){return this.videoData}; g.M.K=function(){return this.X}; g.M.vB=function(){return this.VA.vB(this.L6)}; g.M.Rs=function(){return this.visibility}; g.M.AJ=function(){return this.mediaElement&&this.mediaElement.hN()?this.mediaElement.E2():null}; g.M.xt=function(){return this.mediaElement}; g.M.gm=function(){if(this.videoData.errorCode)return!1;this.K().C&&this.K().houseBrandUserStatus&&this.g5("hbut",{status:this.K().houseBrandUserStatus},!0);if(this.videoData.zU())return!0;this.kq("api.invalidparam",2,void 0,"invalidVideodata.1");return!1}; g.M.T3=function(H){(H=H===void 0?!1:H)||RFq(this.eT);this.a5=H;!this.gm()||this.wx.sC()?qW(this)&&this.wx.sC()&&!this.wx.finished&&!this.a5&&this.Q2():(this.wx.start(),H=this.eT,g.Gm(H.provider),H.qoe&&wml(H.qoe),this.Q2())}; g.M.Q2=function(){if(this.videoData.isLoaded()){var H=this.kM;g.hE(H.lJ.experiments,"html5_player_min_build_cl")>0&&g.hE(H.lJ.experiments,"html5_player_min_build_cl")>818902666&&A1(H,"oldplayer");TZM(this)}else this.videoData.AG||this.videoData.xH?this.a5&&qW(this)||(this.videoData.AG?K4d(this.videoData):(H=this.eT,H.qoe&&(H=H.qoe,XX(H,"protected"),H.provider.videoData.T?H.qJ():H.provider.videoData.subscribe("dataloaded",H.qJ,H)),eFu(this.videoData))):!this.videoData.loading&&this.i5&&X6q(this)}; g.M.hY=function(H){this.ze=H;this.loader&&(agQ(this.loader,new g.rp(H)),this.g5("sdai",{sdsstm:1}))}; g.M.mJ=function(H,E,G){var P;(P=this.loader)==null||P.mJ(H,E,G)}; g.M.nO=function(H){var E;(E=this.loader)==null||E.nO(H)}; g.M.Wn=oF(8);g.M.isFullscreen=function(){return this.visibility.isFullscreen()}; g.M.isBackground=function(){return this.visibility.isBackground()}; g.M.Nn=function(){var H=this;NM(this).then(function(){return EZ(H)}); this.playerState.isOrWillBePlaying()&&this.playVideo()}; g.M.vS=function(){this.mediaElement&&this.mediaElement.activate();this.T3();this.gm()&&!g.F(this.playerState,128)&&(this.FD.sC()||(this.FD.start(),this.videoData.yS?this.wP(m1(this.playerState,4)):this.wP(m1(m1(this.playerState,8),1))),lv(this))}; g.M.aY=function(){return this.wx.finished}; g.M.sendAbandonmentPing=function(){g.F(this.getPlayerState(),128)||(this.publish("internalAbandon"),this.AY(!0),APQ(this.eT),g.Vq(this.eT),g.eD.gU(this.h6))}; g.M.NA=function(H,E,G){H=H===void 0?!0:H;(E===void 0||E)&&this.mediaElement&&this.mediaElement.pause();H&&G&&this.loader&&Bm(this.videoData)&&this.loader.vN(G);this.wP(H?new g.bb(14):new g.bb)}; g.M.z3=function(){this.eT.lE()}; g.M.kq=function(H,E,G,P,Q,e){var w,t;g.GI(GEM,G)?w=G:G?t=G:w="GENERIC_WITHOUT_LINK";P=(P||"")+(";a6s."+Zd());if(H==="auth"||H==="drm.auth"||H==="heartbeat.stop")G&&(P+=";r."+G.replaceAll(" ","_")),e&&(P+="sr."+e.replaceAll(" ","_"));E={errorCode:H,errorDetail:Q,errorMessage:t||g.pB[w]||"",E8:w,sF:e||"",Gx:P,lI:E,cpn:this.videoData.clientPlaybackNonce};this.videoData.errorCode=H;X2(this,"dataloaderror");this.wP(gB(this.playerState,128,E));g.eD.gU(this.h6);HO(this);this.fR()}; g.M.Aj=function(H){this.qE=this.qE.filter(function(E){return H!==E}); this.FD.sC()&&lv(this)}; g.M.FG=function(){var H;(H=!!this.qE.length)||(H=this.M4.L.array[0],H=!!H&&H.start<=-0x8000000000000);return H}; g.M.Ke=function(){return this.tG.Ke()}; g.M.isPlaying=function(){return this.playerState.isPlaying()}; g.M.kX=function(){return this.playerState.kX()&&this.videoData.yS}; g.M.getPlayerState=function(){return this.playerState}; g.M.Ct=function(H){var E;(E=this.loader)==null||E.Ct(H)}; g.M.oN=function(H){var E;(E=this.loader)==null||E.oN(H)}; g.M.getPlayerType=function(){return this.playerType}; g.M.getPreferredQuality=function(){if(this.L6){var H=this.L6;H=H.videoData.vD.compose(H.videoData.Kb);H=Um(H)}else H="auto";return H}; g.M.rd=oF(16);g.M.isGapless=function(){return!!this.mediaElement&&this.mediaElement.isView()}; g.M.setMediaElement=function(H){if(this.mediaElement&&H.E2()===this.mediaElement.E2()&&(H.isView()||this.mediaElement.isView())){if(H.isView()||!this.mediaElement.isView())this.J3(),this.mediaElement=H,this.mediaElement.Fo=this,EEt(this),this.tG.setMediaElement(this.mediaElement)}else{this.mediaElement&&this.ix();if(!this.playerState.isError()){var E=$3(this.playerState,512);g.F(E,8)&&!g.F(E,2)&&(E=m1(E,1));H.isView()&&(E=$3(E,64));this.wP(E)}this.mediaElement=H;this.mediaElement.Fo=this;!g.vV(this.X)&& this.mediaElement.setLoop(this.loop);this.mediaElement.setPlaybackRate(this.playbackRate);EEt(this);this.tG.setMediaElement(this.mediaElement);this.U("html5_prewarm_media_source")&&!this.kM.gz()&&BRT(this.mediaElement)}}; g.M.ix=function(H,E,G){H=H===void 0?!1:H;E=E===void 0?!1:E;G=G===void 0?!1:G;if(this.mediaElement){var P=this.getCurrentTime();P>0&&(this.tG.G=P);this.tG.setMediaElement(null);!H&&this.u8()?Sej(this):this.mp(G);this.loader&&(Nn(this.loader),R1(this,E));this.W3.stop();if(this.mediaElement&&(!this.FD.sC()&&!this.EZ()||this.playerState.isError()||g.F(this.playerState,2)||this.wP(m1(this.playerState,512)),this.mediaElement)){this.J3();if(H||!this.mediaElement.isView())this.HT.Ga("mesv_s"),this.mediaElement.stopVideo(), sF(this);this.mediaElement=this.mediaElement.Fo=null}}}; g.M.playVideo=function(H,E){H=H===void 0?!1:H;E=E===void 0?!1:E;var G=this,P,Q,e,w,t,k;return g.L(function(W){if(W.L==1){var I=window.google_image_requests;I&&I.length>10&&(window.google_image_requests=I.slice(-10));if(g.F(G.playerState,128))return W.return();if(G.kM.RY())return G.publish("signatureexpired"),W.return();G.mediaElement&&RFq(G.eT);G.vS();(g.F(G.playerState,64)||H)&&G.wP(m1(G.playerState,8));return G.FD.finished&&G.mediaElement?G.L6||!G.Hf?W.bJ(2):g.U(W,G.Hf,3):W.return()}if(W.L!=2&& g.F(G.playerState,128))return W.return();if(!G.videoData.G)return G.videoData.isLivePlayback&&!g.tiv(G.X.T,!0)?(P="html5.unsupportedlive",Q=2):(P=G.videoData.Gq()?"fmt.unplayable":"fmt.noneavailable",Q=1),g.p5(Error("selectableFormats")),G.kq(P,Q,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK","trg.selectableFormats"),W.return();if(G.w6()&&G.videoData.G.L)return W.return(NM(G));if(YC(G))I=G.tG,oN(I.videoData)&&!I.isAtLiveHead(I.getCurrentTime())&&I.Ke()&&I.Fo.seekTo(Infinity,{cO:"seektimeline_peggedToLive", seekSource:34});else if(oN(G.videoData)&&(e=G.getCurrentTime()w;if(!t||!w){Q&&t&&(e=Math.max(e,Q));var k;Q=vU(E,(k=P.L)==null?void 0:k.videoInfos);k=E.Fo.getPlaybackRate();k>1&&Q&&(k=AaQ(E.X.T,P.L.videoInfos,k),H.L!==0&&k=480;if(E.U("html5_perf_cap_override_sticky")){W=E.G;E=E.U("html5_perserve_av1_perf_cap");E=E===void 0?!1:E;if(E===void 0?0:E){I=LH();H=g.R(Object.keys(I));for(e=H.next();!e.done;e=H.next())e=e.value,e.indexOf("1")!==0&&delete I[e];g.Fj("yt-player-performance-cap",I,2592E3)}else g.yF("yt-player-performance-cap");EWt(E);if(E){E=g.R(Xh.keys());for(I=E.next();!I.done;I=E.next())I=I.value,I.startsWith("1")|| Xh.delete(I);E=g.R(zW.values());for(I=E.next();!I.done;I=E.next())I=I.value,I.startsWith("1")||zW.delete(I);E=g.R(W.keys());for(I=E.next();!I.done;I=E.next())I=I.value,I.startsWith("1")||W.delete(I)}else Xh.clear(),zW.clear(),W.clear()}}}}this.loader&&(E=this.loader,G=G||"",E.policy.L?lt(E.D.L,G):lt(E.L.T,G));this.fB()}; g.M.getUserPlaybackQualityPreference=function(){return this.videoData.G&&!this.videoData.G.L?Um(this.videoData.vD):l_[ZU()]}; g.M.hasSupportedAudio51Tracks=function(){return this.videoData.hasSupportedAudio51Tracks()}; g.M.setUserAudio51Preference=function(H,E){this.getUserAudio51Preference()!==H&&(this.g5("toggle51",{pref:H}),g.Fj("yt-player-audio51",H,E?31536E3:2592E3),this.Nn())}; g.M.getUserAudio51Preference=function(){return this.videoData.getUserAudio51Preference()}; g.M.setProximaLatencyPreference=function(H){var E=this.getProximaLatencyPreference();this.g5("proxima",{pref:H});g.Fj("yt-player-proxima-pref",H,31536E3);E!==H&&(H=this.tG,H.hm=!0,H.Fo.seekTo(Infinity,{cO:"seektimeline_proximaSeekToHead",seekSource:34}))}; g.M.getProximaLatencyPreference=function(){var H;return(H=fq())!=null?H:0}; g.M.isProximaLatencyEligible=function(){return this.videoData.isProximaLatencyEligible}; g.M.dI=function(){this.videoData.videoId?this.O9.dI(this.videoData):this.g5("povid",{})}; g.M.xJ=function(){this.videoData.videoId?this.O9.xJ(this.videoData):this.g5("piavid",{})}; g.M.fB=function(){if(!this.Iu()&&!g.F(this.playerState,128)&&this.videoData.G){if(this.videoData.G.L)eC(this);else{var H=is(this),E=this.videoData;a:{var G=this.videoData.hm;if(H.L){for(var P=g.R(G),Q=P.next();!Q.done;Q=P.next()){Q=Q.value;var e=Q.getInfo(),w=g.lF[e.video.quality];if((!H.G||e.video.quality!=="auto")&&w<=H.L){G=Q;break a}}G=G[G.length-1]}else G=G[0]}E.PF=G;SS(this,H.reason,LfU(this,this.videoData.PF))}if(this.U("html5_check_unstarted")?this.playerState.isOrWillBePlaying():this.isPlaying())this.tG.L_= !1,this.playVideo()}}; g.M.mD=function(H,E){if(this.Iu()||g.F(this.playerState,128))return!1;var G,P=!((G=this.videoData.G)==null||!G.L);G=P&&E?this.getCurrentTime()-this.YV():NaN;if(H.CP&&H.CP.id){var Q=this.eT;if(Q.qoe){Q=Q.qoe;var e=[H.CP.id,isNaN(G)?"m":"t"];g.BC(Q,g.Gm(Q.provider),"afi",e)}}if(P)return E&&(P=ucs(this.tG),this.g5("aswh",{id:H.id,xtags:H.xtags,bh:P.toFixed(3)})),this.loader.setAudioTrack(H,G,E),!0;if(veT(this)){a:{E=this.mediaElement.audioTracks();for(P=0;Pe.Am.getDuration()&&yPM(e,w)):yPM(e,W);var I=e.loader,A=e.Am;t=t===void 0?!1:t;k=k===void 0?!1:k;I.policy.O7&&(I.policy.z$&&I.g5("loader",{setsmb:0}),I.ZD(),I.policy.O7=!1);E97(I,k);if(!cZ(A)){var m=lQ(I.videoTrack),u=lQ(I.audioTrack),v=(m?m.info.uJ:I.videoTrack.uJ).info,n=(u?u.info.uJ:I.audioTrack.uJ).info,O=I.policy.JD, q=v.mimeType+(O===void 0?"":O),N=n.mimeType,r=v.K_,B=n.K_,l;A.p_=(l=A.Am)==null?void 0:l.addSourceBuffer(N);var S;A.WF=q.split(";")[0]==="fakesb"?void 0:(S=A.Am)==null?void 0:S.addSourceBuffer(q);A.Jj&&(A.Jj.webkitSourceAddId("0",N),A.Jj.webkitSourceAddId("1",q));var z=new ai(A.p_,A.Jj,"0",Z4(N),B,!1),Pt=new ai(A.WF,A.Jj,"1",Z4(q),r,!0);iRt(A,z,Pt)}m=t;u=k;m=m===void 0?!1:m;u=u===void 0?!1:u;rB(I.videoTrack,A.W||null,u);rB(I.audioTrack,A.L||null,u);I.Am=A;I.Am.D=!0;m||I.resume();A.L.QY(I.MZ,I);A.W.QY(I.MZ, I);try{I.Wo()}catch(eu){g.h3(eu)}e.publish("mediasourceattached")}}catch(eu){g.p5(eu),e.handleError(new g.q$("fmt.unplayable",{msi:"1",ename:eu&&typeof eu==="object"&&"name"in eu?String(eu.name):void 0,trg:"setmediasrc"},1))}} var e=this;E=E===void 0?!1:E;G=G===void 0?!1:G;wSu(this,P===void 0?!1:P);this.Am=H;this.u8()&&O0(this.Am)==="open"?Q(this.Am):hHv(this.Am,Q)}; g.M.Uq=function(H){this.RQ.set(H.initData,H);this.KS&&(this.KS.Uq(H),this.U("html5_eme_loader_sync")||this.RQ.remove(H.initData))}; g.M.D2=function(H){this.videoData.jh=g.tI("auto",H,!1,"u");eC(this)}; g.M.eG=function(H){var E=H.reason,G=H.L.info,P=H.token,Q=H.videoId,e=this.eT,w=this.videoData;if(G!==w.D){var t=!w.D;w.D=G;E!=="m"&&E!=="t"&&(E=t?"i":"a");var k=E==="m"||E==="t";this.X.experiments.xp("html5_refactor_sabr_audio_format_selection_logging")?this.Hp=new Gn(w,G,E,"",P,Q):(E=new Gn(w,G,E,"",P),e.qoe&&(e=e.qoe,G=g.Gm(e.provider),Czt(e,G,E)));this.publish("internalaudioformatchange",w,!t&&k)}this.tG.eG(H.L.index)}; g.M.rb=function(H){this.publish("localmediachange",H)}; g.M.Mn=function(H){H=H===void 0?{}:H;var E;(E=this.loader)==null||E.Mn(this.X,c$(this.videoData),H)}; g.M.RY=function(){return this.kM.RY()}; g.M.bb=function(H){this.Di(new g.q$("staleconfig",{reason:H}))}; g.M.handleError=function(H){this.kM.handleError(H)}; g.M.gz=function(){return this.kM.gz()}; g.M.HN=function(H){this.tG.HN(H)}; g.M.kH=function(H,E){H=H===void 0?!1:H;E=E===void 0?!1:E;var G=this,P,Q,e;return g.L(function(w){if(w.L==1){G.loader&&G.loader.e1();G.loader&&G.loader.Iu()&&HO(G);if(G.U("html5_enable_vp9_fairplay")&&G.Gq()&&(P=G.videoData.L)!=null)for(var t in P.L)P.L.hasOwnProperty(t)&&(P.L[t].L=null,P.L[t].G=!1);G.wP(m1(G.playerState,2048));G.publish("newelementrequired");return H?g.U(w,NM(G),2):w.bJ(2)}G.videoData.T6()&&((Q=G.loader)==null?0:Q.PF)&&!YC(G)&&((e=G.isAtLiveHead())&&oN(G.videoData)?G.seekTo(Infinity, {cO:"videoPlayer_getNewElement"}):G.videoData.tT&&G.loader&&(t=G.loader,t.ou.T6&&(t.ou.tT||t.ou.D||t.ou.isPremiere?(t.seek(0,{cO:"loader_resetSqless"}),t.videoTrack.C=!0,t.audioTrack.C=!0,t.videoTrack.D=!0,t.audioTrack.D=!0):jF(t.ou)&&Hm(t))));E&&G.seekTo(0,{seekSource:105});g.F(G.playerState,8)&&G.playVideo();g.P2(w)})}; g.M.c9=function(H){this.g5("hgte",{ne:+H});this.videoData.B=!1;H&&this.kH();this.loader&&XE7(this.loader)}; g.M.Ln=function(H){this.g5("newelem",{r:H});this.kH()}; g.M.pauseVideo=function(H){H=H===void 0?!1:H;if((g.F(this.playerState,64)||g.F(this.playerState,2))&&!H)if(g.F(this.playerState,8))this.wP(JI(this.playerState,4,8));else if(this.kX())EZ(this);else return;g.F(this.playerState,128)||(H?this.wP(m1(this.playerState,256)):this.wP(JI(this.playerState,4,8)));this.mediaElement&&this.mediaElement.pause();g.eP(this.videoData)&&this.loader&&R1(this,!1)}; g.M.stopVideo=function(){this.pauseVideo();this.loader&&(R1(this,!1),this.loader.ZD())}; g.M.fR=function(H,E){H=H===void 0?!1:H;E=E===void 0?!1:E;if(this.u8()&&E){var G;(G=this.mediaElement)==null||G.fR()}else{var P;(P=this.mediaElement)==null||P.stopVideo()}sF(this);HO(this);g.F(this.playerState,128)||(H?this.wP($3($3(m1(this.playerState,4),8),16)):this.wP(gB(this.playerState)));this.videoData.videoId&&this.X.T$.remove(this.videoData.videoId)}; g.M.seekTo=function(H,E){E=E===void 0?{}:E;g.F(this.playerState,2)&&EZ(this);E.rA$&&this.wP(m1(this.playerState,2048));if((E.seekSource===58||E.seekSource===60)&&this.U("html5_update_vss_during_gapless_seeking")){var G=this.eT;G.L&&(G=G.L,E.seekSource===58?G.L.update():G.G&&(PJ(G),IO(G).send(),G.D=NaN))}this.tG.seekTo(H,E);this.M4.sync()}; g.M.yd=function(H){this.HT.D.W=(0,g.ON)();g.F(this.playerState,32)||(this.wP(m1(this.playerState,32,H==null?void 0:H.seekSource)),g.F(this.playerState,8)&&this.pauseVideo(!0),this.publish("beginseeking"));this.Ix()}; g.M.Of=function(H){H=H==null?void 0:H.seekSource;g.F(this.playerState,32)?(this.wP(JI(this.playerState,16,32,H)),this.publish("endseeking")):g.F(this.playerState,2)||this.wP(m1(this.playerState,16,H));H=this.HT.D;var E=this.videoData,G=this.playerState.isPaused();if(E.clientPlaybackNonce&&!isNaN(H.L)){if(Math.random()<.01){G=G?"pbp":"pbs";var P={startTime:H.L};E.C&&(P.cttAuthInfo={token:E.C,videoId:E.videoId});B2("seek",P);g.Qn({clientPlaybackNonce:E.clientPlaybackNonce},"seek");isNaN(H.W)||KT("pl_ss", H.W,"seek");KT(G,(0,g.ON)(),"seek")}H.reset()}}; g.M.Lp=function(H){this.Of(H)}; g.M.gw=function(){this.publish("SEEK_COMPLETE")}; g.M.A6=function(H){var E=this.O9,G=this.videoData.clientPlaybackNonce,P=this.playerType;if(H.scope===4){var Q=H.type;if(Q){var e=E.qZ(),w=e.getVideoData().clientPlaybackNonce;P===1&&(w=G);if(P=FTw(E,w)){if(G=P.getVideoData())H.writePolicy===2&&G.sabrContextUpdates.has(Q)||(H.sendByDefault&&G.T$.add(Q),G.sabrContextUpdates.set(Q,H)),E.U("html5_enable_t1_enf_on_sabr")&&(H=Q===5,Q=eOl(G.playerResponse),H?(H=Q?1:0,Us(H,"m.p_",{}),bT("MBSTAT",H)):H=1,H===0&&E.cF.n_("onAbnormalityDetected"))}else e.g5("scuset", {ncpf:"1",ccpn:w,crcpn:G})}else g.p5(Error("b/380308491: contextUpdateType is undefined"))}}; g.M.xY=function(){if(this.playerType===2)return this.O9.xY("")}; g.M.getCurrentTime=function(H){return this.tG.getCurrentTime(H===void 0?!1:H)}; g.M.I5=function(){return this.tG.I5()}; g.M.WK=function(){return this.tG.WK()}; g.M.Nu=function(){return this.WK()}; g.M.Ev=function(){return this.tG.Ev()}; g.M.getPlaylistSequenceForTime=function(H){return this.videoData.getPlaylistSequenceForTime(H-this.YV())}; g.M.dU=function(){var H=NaN;this.mediaElement&&(H=this.mediaElement.dU());return H>=0?H:this.getCurrentTime()}; g.M.JT=function(){var H;return((H=this.videoData.L)==null?0:H.JT)?this.videoData.L.JT(this.getCurrentTime()-this.YV()):this.mediaElement&&(H=this.mediaElement.AQ())&&(H=H.getTime(),!isNaN(H))?H/1E3+this.getCurrentTime():NaN}; g.M.getDuration=function(){return this.videoData.lengthSeconds?this.videoData.lengthSeconds+this.YV():this.VG()?this.VG():0}; g.M.Bl=function(){var H=new ipl;if(this.loader){var E=this.mZ,G=this.X.z6();G=G===void 0?!1:G;H.Oh=E.Jm;H.D9=E.eR;H.bandwidthEstimate=Cq(E);if(G){G=(E.N.BK()*1E3).toFixed();var P=(E.PF.BK()*1E3).toFixed(),Q=vz(E).toFixed(2),e=((E.B.BK()||0)*1E9).toFixed(2),w=E.G.BK().toFixed(0),t=E.O7.BK().toFixed(0),k=E.L_.percentile(.5).toFixed(2),W=E.L_.percentile(.92).toFixed(2),I=E.L_.percentile(.96).toFixed(2),A=E.L_.percentile(.98).toFixed(2);E.L?E.L.reset():E.L=new M1;E.L.add(E.E7);E.L.add(E.interruptions.length); for(var m=0,u=E.interruptions.length-1;u>=0;u--){var v=E.interruptions[u];E.L.add(v-m);m=v}m=0;for(u=E.D.length-1;u>=0;u--){v=E.D[u];var n=v.stamp/36E5;E.L.add(n-m);m=n;E.L.add(v.net/1E3);E.L.add(v.max)}E=E.L.hK();H.L={ttr:G,ttm:P,d:Q,st:e,bw:w,abw:t,v50:k,v92:W,v96:I,v98:A,"int":E}}E=this.loader;E.Am&&E.Am.D&&!E.Am.f0()&&(H.sx=R8(E.videoTrack),H.W=R8(E.audioTrack),E.policy.G&&(G=u$(E.videoTrack),P=u$(E.audioTrack),Q=Kk(E.Am.W.qV(),"_",5),e=Kk(E.Am.L.qV(),"_",5),Object.assign(H.L,{lvq:G,laq:P,lvb:Q, lab:e})));H.bandwidthEstimate=mX(E.L_);var O;(O=E.audioTrack.N)==null||O.flush();var q;(q=E.videoTrack.N)==null||q.flush()}else this.mediaElement&&(H.sx=U0(this.mediaElement));H.Oh=this.Oh;H.D9=this.D9;H.G=this.isAtLiveHead()&&this.isPlaying()?vzU(this):NaN;O=this.tG;O=O.L?Ba(O.L):0;H.D=O;return H}; g.M.ZJ=function(H,E){this.D9+=H;this.Oh+=E}; g.M.zG=function(){return this.mediaElement?g.eP(this.videoData)?1:sc(this.videoData)?this.isAtLiveHead()||this.Ke()?1:this.tG.zG():this.mediaElement.zG():0}; g.M.My=function(){var H=this.Lj,E=eI(H,"bandwidth"),G=eI(H,"bufferhealth"),P=eI(H,"livelatency"),Q=eI(H,"networkactivity"),e=dk(H,"bandwidth"),w=dk(H,"bufferhealth"),t=dk(H,"livelatency");H=dk(H,"networkactivity");var k=this.y$(),W=k.droppedVideoFrames;k=k.totalVideoFrames;var I=this.getCurrentTime();if(this.KS){var A="IT/"+(this.KS.L.getInfo()+"/"+Um(this.O$()));A+="/"+this.KS.getInfo()}else A="";var m=this.isGapless(),u=this.wG(),v=this.UP(),n=g.Ap(this),O=this.getPlayerState(),q=this.getPlaylistSequenceForTime(this.getCurrentTime()); a:{var N=0;var r="";if(this.ze){if(this.ze.jm){r="D,";break a}N=this.ze.H9;r=this.ze.e7.substring(0,4)}N>0?(N="AD"+N+", ",r&&(N+=r+", "),r=N):r=""}return{Lc:e,wI:w,currentTime:I,Xh:A,droppedVideoFrames:W,isGapless:m,wG:u,SK:v,J8:E,Hx:G,lK:P,bK:Q,QE:t,qK:H,Xd:n,playerState:O,Ji:q,j6:r,totalVideoFrames:k}}; g.M.NL=function(H){var E={};if(H===void 0?0:H){Object.assign(E,this.eT.NL());this.mediaElement&&(Object.assign(E,this.mediaElement.NL()),H=this.y$(),E.dvf=H.droppedVideoFrames,E.tvf=H.totalVideoFrames);this.loader&&Object.assign(E,this.loader.NL());this.KS&&(E.drm=JSON.stringify(this.KS.NL()));E.state=this.playerState.state.toString(16);g.F(this.playerState,128)&&(E.debug_error=JSON.stringify(this.playerState.Qp));this.FG()&&(E.prerolls=this.qE.join(","));this.videoData.hx&&(E.ismb=this.videoData.hx); this.videoData.latencyClass!=="UNKNOWN"&&(E.latency_class=this.videoData.latencyClass);this.videoData.isLowLatencyLiveStream&&(E.lowlatency="1");if(this.videoData.defaultActiveSourceVideoId||this.videoData.compositeLiveStatusToken||this.videoData.compositeLiveIngestionOffsetToken)E.is_mosaic=1;this.videoData.cotn&&(E.is_offline=1,E.cotn=this.videoData.cotn);this.videoData.playerResponseCpn&&(E.playerResponseCpn=this.videoData.playerResponseCpn);this.O9.isOrchestrationLeader()&&(E.leader=1);this.videoData.isLivePlayback&& (this.videoData.L&&ZG(this.videoData.L)&&(E.segduration=ZG(this.videoData.L)),H=this.tG,E.lat=H.N?Uin(H.N.D):0,E.liveutcstart=this.videoData.liveUtcStartSeconds);E.relative_loudness=this.videoData.yQ.toFixed(3);if(H=g.Ap(this))E.optimal_format=H.video.qualityLabel;E.user_qual=ZU();E.release_version=h[46]}E.debug_videoId=this.videoData.videoId;return E}; g.M.addCueRange=function(H){this.XD([H])}; g.M.removeCueRange=function(H){this.M4.hR([H])}; g.M.PQ=function(){var H=this.M4;if(H.Fo.K().U("html5_sort_cueranges_on_update")&&!(H.tj().length<=0||H.Iu())){var E=H.L;E.array.sort(E.L)}H.sync()}; g.M.Qz=function(H,E){return this.M4.Qz(H,E)}; g.M.XD=function(H,E){this.M4.MV(H,E)}; g.M.RD=function(H){this.M4.hR(H)}; g.M.tj=function(){return this.M4.tj()||[]}; g.M.A5=function(){return this.df}; g.M.w6=function(){return this.visibility.w6()}; g.M.fz=function(){this.mediaElement&&this.mediaElement.fz()}; g.M.mWN=function(){X2(this)}; g.M.togglePictureInPicture=function(){this.mediaElement&&this.mediaElement.togglePictureInPicture()}; g.M.J3=function(){g.hH(this.sW)}; g.M.QwZ=function(){this.Ix();this.publish("onLoadProgress",this.zG())}; g.M.K3=function(H){var E=H.target.Vp();if(this.mediaElement&&this.mediaElement.Vp()&&this.mediaElement.Vp()===E){ETM(this,H.type);switch(H.type){case "error":var G=Rk(this.mediaElement)||"",P=this.mediaElement.K6();if(G==="capability.changed"){this.U("html5_restart_on_capability_change")?(this.g5("capchg",{msg:P}),this.kH(!0)):NM(this);return}if(this.mediaElement.hasError()&&wK(this.kM,G,{msg:P,trg:"elementevt"}))return;if(this.isBackground()&&this.mediaElement.Sx()===4){this.fR();oH(this,"unplayable"); return}break;case "durationchange":G=this.mediaElement.getDuration();isFinite(G)&&(!this.Am||G>0)&&G!==1&&this.uB(G);break;case "ratechange":this.loader&&this.loader.setPlaybackRate(this.mediaElement.getPlaybackRate());G=this.M4;G.started=!0;G.sync();this.eT.onPlaybackRateChange(this.getPlaybackRate());break;case "loadedmetadata":this.Bo().L.A7(ssD)&&wE(this,!0);L9U(this);this.publish("onLoadedMetadata");jIM(this);G=this.JT();this.videoData.zb&&(this.videoData.zb=G);break;case "loadstart":jIM(this); break;case "progress":case "suspend":this.rF.c_();break;case "seeked":(G=this.loader)!=null&&G.policy.W&&G.Xk&&(G.g5("sdai",{skipAdSked:"1"}),G.Xk=!1);break;case "playing":this.Bo().L.A7(ssD)&&wE(this,!0);this.HT.Ga("plev");this.QI&&!YC(this)&&(this.QI=!1,this.isAtLiveHead()||this.seekTo(Infinity,{cO:"videoplayer_onPlaying"}));break;case "timeupdate":this.Bo().L.A7(ssD)&&wE(this,!0);G=this.mediaElement&&!this.mediaElement.getCurrentTime();P=this.mediaElement&&this.mediaElement.xM()===0;if(G&&(!this.pg|| P))return;this.pg=this.pg||!!this.mediaElement.getCurrentTime();PR(this);this.Ix();if(!this.mediaElement||this.mediaElement.Vp()!==E)return;this.publish("onVideoProgress",this.getCurrentTime());break;case "waiting":if(this.mediaElement.CG().length>0&&this.mediaElement.AK().length===0&&this.mediaElement.getCurrentTime()>0&&this.mediaElement.getCurrentTime()<5&&this.loader)return;this.U("html5_ignore_unexpected_waiting_cfl")&&(this.mediaElement.isPaused()||this.mediaElement.xM()>2||!this.mediaElement.isSeeking()&& jz(this.mediaElement.AK(),this.mediaElement.getCurrentTime()))&&(G=this.mediaElement.NL(),G.bh=U0(this.mediaElement).toFixed(3),this.g5("uwe",G));break;case "resize":L9U(this);this.videoData.W&&this.videoData.W.video.quality==="auto"&&this.publish("internalvideoformatchange",this.videoData,!1);break;case "pause":if(this.RC&&g.F(this.playerState,8)&&!g.F(this.playerState,1024)&&this.getCurrentTime()===0&&g.Ez){oH(this,"safari_autoplay_disabled");return}}if(this.mediaElement&&this.mediaElement.Vp()=== E){XAq(this.tG,H);this.publish("videoelementevent",H);E=this.playerState;P=this.Qy;var Q=this.mediaElement;G=this.videoData.clientPlaybackNonce;if(!g.F(E,128)){var e=E.state;Q=Q?Q:H.target;var w=Q.getCurrentTime();if(!g.F(E,64)||H.type!=="ended"&&H.type!=="pause"){var t=Q.getDuration();t=Q.isEnded()||w>1&&Math.abs(w-t)<1.1;var k=H.type==="pause"&&Q.isEnded();w=H.type==="ended"||H.type==="waiting"||H.type==="timeupdate"&&!g.F(E,4)&&!G4(P,w);if(k||t&&w)Q.jY()>0&&Q.Vp()&&(e=14);else switch(H.type){case "error":Rk(Q)&& (e|=128);break;case "pause":g.F(E,256)?(e^=256)||(e=64):g.F(E,32)||g.F(E,2)||g.F(E,4)||(e=4,g.F(E,1)&&g.F(E,8)&&(e|=1));break;case "playing":w=e;e=(e|8)&-1093;w&4?(e|=1,xC(P,Q,!0)):G4(P,Q.getCurrentTime())&&(e&=-2);g.F(E,1)&&xC(P,Q)&&(e|=1);break;case "seeking":e|=16;g.F(E,8)&&(e|=1);e&=-3;break;case "seeked":e&=-17;xC(P,Q,!0);break;case "waiting":g.F(E,2)||(e|=1);xC(P,Q);break;case "timeupdate":w=g.F(E,16),t=g.F(E,4),(g.F(E,8)||w)&&!t&&G4(P,Q.getCurrentTime())&&(e=8),xC(P,Q)&&(e|=1)}}P=e;e=null; P&128&&(e=H.target,Q=Rk(e),w=1,Q?(Q==="capability.changed"&&(w=2),t="GENERIC_WITHOUT_LINK",k=e.NL(),k.mediaElem="1",k.trg="melem",/AUDIO_RENDERER/.test(e.K6())&&(t="HTML5_AUDIO_RENDERER_ERROR"),e={errorCode:Q,errorMessage:g.pB[t]||"",E8:t,Gx:gt(k),lI:w,cpn:E.Qp?E.Qp.cpn:""}):e=null,e&&(e.cpn=G));E=gB(E,P,e)}!g.F(this.playerState,1)&&g.F(E,1)&&hq(this,"evt"+H.type);this.wP(E)}}}; g.M.Qxw=function(H){H=H.L.availability==="available";H!==this.df&&(this.df=H,this.publish("airplayavailabilitychange"))}; g.M.Ttm=function(){var H=(0,g.ON)(),E=this.mediaElement.w6();this.g5("airplay",{ia:E});!E&&!isNaN(this.Cn)&&H-this.Cn<2E3||(this.Cn=H,E!==this.w6()&&(H=this.visibility,H.L!==E&&(H.L=E,H.JC()),this.g5("airplay",{rbld:E}),this.Nn()),this.publish("airplayactivechange"))}; g.M.YX=function(H){if(this.loader){var E=this.loader,G=E.G,P=E.getCurrentTime(),Q=Date.now()-G.L_;G.L_=NaN;G.g5("sdai",{adfetchdone:H,d:Q});H&&!isNaN(G.B)&&G.W!==3&&yD(G.loader,P,G.B,G.C);G.policy.W?G.T=NaN:G.D=NaN;IA(G,4,G.W===3?"adfps":"adf");Nn(E)}}; g.M.hL=function(){g.fg(this.Nx);this.W3.stop();this.videoData.N=!0;this.X.j2=!0;this.X.FI=0;var H=this.kM;if(H.videoData.W){var E=H.lJ.T,G=H.videoData.W.K_;E.D.has(G)&&(E.D.delete(G),E.W=!0)}H.L.stop();this.IV();g.F(this.playerState,8)&&this.wP($3(this.playerState,65));this.a5=!1;this.eT.GO();g.J3(this.K5);this.publish("playbackstarted");(H=g.Un("yt.scheduler.instance.clearPriorityThreshold"))?H():rm(0)}; g.M.IV=function(){var H=this.O9.pS(),E={},G={};!HR("pbs",this.HT.timerName)&&gi.measure&&gi.getEntriesByName&&(gi.getEntriesByName("mark_nr")[0]?wcs("mark_nr"):wcs());H.videoId&&(E.videoId=H.videoId);H.clientPlaybackNonce&&!this.U("web_player_early_cpn")&&(E.clientPlaybackNonce=H.clientPlaybackNonce);this.mediaElement&&this.mediaElement.isPaused()&&(G.isPausedOnLoad=!0);G.itag=H.W?Number(H.W.itag):-1;H.V8&&(G.preloadType=String(this.v1?2:1));E.liveStreamMode=yEM[VK(H)];E.playerInfo=G;this.HT.infoGel(E); if(this.loader){H=this.loader.timing;window&&window.performance&&window.performance.getEntriesByName&&(H.G&&(E=window.performance.getEntriesByName(H.G),E.length&&(E=E[0],H.tick("vri",E.fetchStart),H.tick("vdns",E.domainLookupEnd),H.tick("vreq",E.requestStart),H.tick("vrc",E.responseEnd))),H.W&&(E=window.performance.getEntriesByName(H.W),E.length&&(E=E[0],H.tick("ari",E.fetchStart),H.tick("adns",E.domainLookupEnd),H.tick("areq",E.requestStart),H.tick("arc",E.responseEnd))));H=H.ticks;for(var P in H)H.hasOwnProperty(P)&& this.HT.tick(P,H[P])}}; g.M.Ix=function(H){var E=this;H=H===void 0?!1:H;if(this.mediaElement&&this.videoData){ZYs(this.tG,this.isPlaying());var G=this.getCurrentTime();if(this.loader&&(g.F(this.playerState,4)&&g.eP(this.videoData)||g.F(this.playerState,32)&&ip(this.videoData)||lkQ(this.loader,G),this.U("html5_log_centralized_player_time")&&Math.abs(this.getCurrentTime()-pru(this.loader))>10)){var P;this.g5("sabrSeekRefactorCmt",{cmt:this.getCurrentTime(),loaderCmt:(P=this.loader)==null?void 0:pru(P)},!0)}G>5&&(this.tG.G= G);(P=g.Sh())?g.eD.gU(this.h6):g.M9(this.h6);var Q=this.mediaElement.isPaused();if((this.playerState.isBuffering()||!Q||Iy(this.videoData))&&!g.F(this.playerState,128)){var e=function(){if(E.mediaElement&&!g.F(E.playerState,128)){E.X.z6()&&ETM(E,"pfx");var w=E.getCurrentTime();E.U("html5_buffer_underrun_transition_fix")&&(w-=E.YV());var t=U0(E.mediaElement),k=g.F(E.playerState,8),W=G4(E.Qy,w),I=oD7(E.Qy,w,(0,g.ON)(),t);k&&W?E.wP($3(E.playerState,1)):k&&I?(k=E.getDuration(),W=oN(E.videoData),k&&Math.abs(k- w)<1.1?(E.g5("setended",{ct:w,bh:t,dur:k,live:W}),E.mediaElement.GP()?E.seekTo(0,{cO:"videoplayer_loop",seekSource:37}):E.NA()):(E.playerState.isBuffering()||hq(E,"progress_fix"),E.wP(m1(E.playerState,1)))):(k&&!W&&!I&&w>0&&(k=(Date.now()-E.du)/1E3,W=E.getDuration(),w>W-1&&E.g5("misspg",{t:w.toFixed(2),d:W.toFixed(2),r:k.toFixed(2),bh:t.toFixed(2)})),E.playerState.isPaused()&&E.playerState.isBuffering()&&U0(E.mediaElement)>5&&E.wP($3(E.playerState,1)));E.Ix()}}; this.mediaElement.CG().length===0?this.h6=P?g.eD.c6(e,100):g.bw(e,100):this.h6=P?g.eD.c6(e,500):g.bw(e,500)}this.videoData.FI=G;!H&&this.isPlaying()&&lMu(this);gJj(this.VA,this.L6,this.xt(),this.isBackground())&&eC(this);this.publish("progresssync",H);Q&&Iy(this.videoData)&&this.publish("onVideoProgress",this.getCurrentTime())}}; g.M.Epw=function(){this.kq("ad.rebuftimeout",2,"RETRYABLE_ERROR","vps."+this.playerState.state.toString(16))}; g.M.UP=function(){return this.eT.UP()}; g.M.ye=function(){return this.loader?this.loader.ye():Cq(this.mZ,!0)}; g.M.wP=function(H){if(!g.s3(this.playerState,H)){var E=new g.Jt(H,this.playerState);this.playerState=H;t4q(this);var G=!this.k$.length;this.k$.push(E);var P=this.mediaElement&&this.mediaElement.isSeeking();g.Sv(E,1)&&this.loader&&c2u(this.loader);P=E.oldState.state===8&&!P;if(g.Sv(E,1)&&P&&g.F(this.playerState,8)&&!g.F(this.playerState,64)&&this.loader){P=this.loader;P.aj=!0;if(P.policy.ML&&P.Am){var Q,e,w,t;P.g5("lr_rb",{c:P.getCurrentTime(),s:P.isSeeking(),ab:Kk(P.Am.L.qV()),ala:(Q=Wg(P.audioTrack))== null?void 0:Q.PO(),alr:(e=P.audioTrack.L)==null?void 0:e.PO(),vb:Kk(P.Am.W.qV()),vla:(w=Wg(P.videoTrack))==null?void 0:w.PO(),vlr:(t=P.videoTrack.L)==null?void 0:t.PO()})}P.wW!==0&&P.g5("sps_rebuffer",{c:P.getCurrentTime()});this.mediaElement&&U0(this.mediaElement)>=5&&(Q=this.VA,e=this.L6,!e.videoData.W||Q.U("html5_disable_performance_downgrade")?Q=!1:(Date.now()-Q.B>6E4&&(Q.W=0),Q.W++,Q.B=Date.now(),Q.W!==4?Q=!1:(Css(Q,e.videoData.W),Q=!0)),Q&&eC(this))}(Q=g.hE(this.X.experiments,"html5_ad_timeout_ms"))&& this.videoData.isAd()&&g.F(H,1)&&(g.F(H,8)||g.F(H,16))?this.Yk.start(Q):this.Yk.stop();(xs(E,8)<0||g.Sv(E,1024))&&this.W3.stop();!g.Sv(E,8)||this.videoData.N||g.F(E.state,1024)||this.W3.start();g.F(E.state,8)&&xs(E,16)<0&&!g.F(E.state,32)&&!g.F(E.state,2)&&this.playVideo();g.F(E.state,2)&&sc(this.videoData)&&(this.uB(this.getCurrentTime()),this.Ix(!0));g.Sv(E,2)&&(this.AY(!0),this.X.z6()&&this.U("html5_sabr_parse_live_metadata_playback_boundaries")&&ip(this.videoData)&&this.videoData.L&&(H={minst:""+ this.videoData.L.FX,cminst:""+(this.videoData.L.MC()+this.YV()),maxst:""+this.videoData.L.Qd,hts:""+this.videoData.L.Jm,cmaxst:""+(this.videoData.L.VG()+this.YV())},this.g5("sabrSeekableBoundaries",H)));g.Sv(E,128)&&this.fR();this.videoData.L&&this.videoData.isLivePlayback&&!this.Sk&&(xs(E,8)<0?(H=this.videoData.L,H.T&&H.T.stop()):g.Sv(E,8)&&this.videoData.L.resume());H=this.tG;g.J3(H.p_.T);if(H.mediaElement)if(E.oldState.state===8&&Pp(E.state)&&E.state.isBuffering()){var k=H.mediaElement.getCurrentTime(); Q=H.mediaElement.AK();e=H.U("manifestless_post_live_ufph")||H.U("manifestless_post_live")?Kg(Q,Math.max(k-3.5,0)):Kg(Q,k-3.5);e>=0&&k>Q.end(e)-1.1&&e+10?(Oe(H.Fo,H.getCurrentTime()+H.videoData.limitedPlaybackDurationInSeconds), H.BF=!0):H.videoData.isLivePlayback&&H.videoData.endSeconds>0&&(Oe(H.Fo,H.getCurrentTime()+H.videoData.endSeconds),H.BF=!0));k=this.eT;if(g.Sv(E,1024)||g.Sv(E,512)||g.Sv(E,4))k.W&&(H=k.W,H.W>=0||(H.L=-1,H.delay.stop())),k.qoe&&(H=k.qoe,H.B||(H.G=-1));if(k.provider.videoData.enableServerStitchedDai&&k.Xe){var W;(W=k.G.get(k.Xe))==null||jZM(W,E)}else k.L&&jZM(k.L,E);k.qoe&&(W=k.qoe,H=E.state,Q=g.Gm(W.provider),e=W.getPlayerState(H),w=H.seekSource||void 0,e!==W.jy&&(W.Jm||Q=10&&W.playTimeSecs<=180&&(W.L.set("qoealert",["1"]),W.G6=!0)),e!=="B"||W.jy!=="PL"&&W.jy!=="PB"||(W.isBuffering=!0),W.W=Q),W.jy==="PL"&&(e==="B"||e==="S")||W.provider.X.z6()?At(W,Q):(W.dP||e!=="PL"||(W.dP=!0,CZ1(W,Q,W.provider.Fo.Bl())),BH(W,Q)),e==="PL"&&g.J3(W.yG),t=[e],e==="S"&&w&&t.push("ss."+w),g.BC(W,Q,"vps",t),W.jy=e,W.p_=Q,W.W=Q,W.D=!0),e=H.Qp,g.F(H,128)&&e&&(e.Gx=e.Gx||"",VNt(W,Q,e.errorCode, e.lI,e.Gx)),(g.F(H,2)||g.F(H,128))&&W.reportStats(Q),H.isPlaying()&&!W.B&&(W.G>=0&&W.L.set("user_intent",[W.G.toString()]),W.B=!0),KK(W));k.W&&(W=k.W,O6U(W),W.playerState=E.state,W.W>=0&&g.Sv(E,16)&&W.seekCount++,E.state.isError()&&W.send());if(G&&!this.Iu())try{for(var I=g.R(this.k$),A=I.next();!A.done;A=I.next()){var m=A.value,u=this.M4;if(u.started&&(u.sync(),g.F(m.oldState,16))){E=u;var v=B77(E.L,Math.max(E.G-2E3,0));!isNaN(v)&&v<0x7ffffffffffff&&E.D.start()}this.publish("statechange",m)}}finally{this.k$.length= 0}}}; g.M.FE=function(){this.HT.tick("qoes")}; g.M.cB=function(){this.tG.cB()}; g.M.T8=function(H,E,G,P){a:{var Q=this.kM;P=P===void 0?"LICENSE":P;G=G.substring(0,256);var e=uN(E);H==="drm.keyerror"&&this.KS&&this.KS.W.keys.length>1&&Q.D<96&&(H="drm.sessionlimitexhausted",e=!1);var w=Q.lJ.experiments.xp("html5_retry_on_drm_unavailable"),t=Q.lJ.experiments.xp("html5_retry_on_drm_key_error"),k=/^(closedShouldNotRetry|t\.prefixedKeyError)(.*)/;if(w&&H==="drm.unavailable"||t&&H==="drm.keyerror"&&!G.match(k))Q.Di("qoe.restart",{retryOnDrmError:1,e:H,detail:G}),Q.Fo.kH(!0);else{if(e)if(Q.videoData.W&& Q.videoData.W.video.isHdr())pfs(Q,H);else{if(Q.Fo.kq(H,E,P,G),M17(Q,{detail:G}))break a}else Q.Di(H,{detail:G});H==="drm.sessionlimitexhausted"&&(Q.g5("retrydrm",{sessionLimitExhausted:1}),Q.D++,NW1(Q.Fo))}}}; g.M.uaR=function(){var H=this,E=g.hE(this.X.experiments,"html5_license_constraint_delay"),G=wo();E&&G?(E=new g.Wt(function(){H.fB();X2(H)},E),g.d(this,E),E.start()):(this.fB(),X2(this))}; g.M.BU=function(H){this.publish("heartbeatparams",H)}; g.M.LB=function(H){this.g5("keystatuses",HSs(H));var E="auto",G=!1;this.videoData.W&&(E=this.videoData.W.video.quality,G=this.videoData.W.video.isHdr());a:{switch(E){case "highres":case "hd2880":E="UHD2";break;case "hd2160":case "hd1440":E="UHD1";break;case "hd1080":case "hd720":E="HD";break;case "large":case "medium":case "small":case "light":case "tiny":E="SD";break;default:E="";break a}G&&(E+="HDR")}E=m7(H)?gS(H,E):H.D.includes(E);if(this.U("html5_enable_vp9_fairplay")){if(G)if(H.B){var P;if((P= this.KS)==null?0:d_(P.L))if((G=this.KS)==null)G=0;else{for(var Q=P=void 0,e=g.R(G.W.values()),w=e.next();!w.done;w=e.next())w=w.value,P||(P=BOl(w,"SD")),Q||(Q=BOl(w,"AUDIO"));G.uV({sd:P,audio:Q});G=P==="output-restricted"||Q==="output-restricted"}else G=!E;if(G){this.g5("drm",{dshdr:1});pfs(this.kM);return}}else{this.videoData.nZ||(this.videoData.nZ=!0,this.g5("drm",{dphdr:1}),this.kH(!0));return}var t;if((t=this.KS)==null?0:d_(t.L))return}else if(t=H.B&&E,G&&!t){pfs(this.kM);return}E||gS(H,"AUDIO")&& gS(H,"SD")||(H=HSs(H),this.HZ?(this.publish("drmoutputrestricted"),this.U("html5_report_fatal_drm_restricted_error_killswitch")||this.kq("drm.keyerror",2,void 0,"info."+H)):(this.HZ=!0,this.Di(new g.q$("qoe.restart",Object.assign({},{retrydrm:1},H))),eC(this),NW1(this)))}; g.M.liF=function(){if(!this.videoData.N&&this.mediaElement&&!this.isBackground()){var H="0";this.mediaElement.xM()>0&&U0(this.mediaElement)>=5&&this.videoData.G&&this.videoData.G.L&&(this.wP(m1(this.playerState,1)),hq(this,"load_soft_timeout"),this.publish("playbackstalledatstart"),H="1");t4q(this);var E=this.videoData.G;H={restartmsg:H,mfmt:!Y2v(this.videoData),mdrm:!(!(E&&E.videoInfos&&E.videoInfos.length&&E.videoInfos[0].QF)||this.KS),mfmtinfo:!this.videoData.W,prerolls:this.FG()?this.qE.join(","): "0"};if(this.KS){E=this.KS;if(E.W.size<=0){var G="ns;";E.L_||(G+="nr;");E=G+="ql."+E.G.length}else E=HSs(E.W.values().next().value),E=gt(E);H.drmp=E}var P;Object.assign(H,((P=this.loader)==null?void 0:P.NL())||{});var Q;Object.assign(H,((Q=this.mediaElement)==null?void 0:Q.NL())||{});this.eT.Di("qoe.start15s",gt(H));this.publish("loadsofttimeout")}}; g.M.uB=function(H){this.videoData.lengthSeconds!==H&&(this.videoData.lengthSeconds=H,X2(this))}; g.M.AY=function(H,E){var G=this;H=H===void 0?!1:H;if(!this.JM)if(HR("att_s","player_att")||Ld("att_s",void 0,"player_att"),this.U("use_rta_for_player"))(function(){var Q,e,w,t;return g.L(function(k){switch(k.L){case 1:if(!(Q=H)){k.bJ(2);break}return g.U(k,g.WBM(),3);case 3:Q=!k.W;case 2:if(Q)return k.return();g.EY(k,4);e=lpQ(G.eT);if(!e)throw Error();w={};return g.U(k,g.ght((w.cpn=G.videoData.clientPlaybackNonce,w.encryptedVideoId=G.videoData.videoId||"",w),3E4),6);case 6:t=k.W;if(G.JM)throw Error(); if(!t.challenge)throw g.p5(Error("Not sending attestation ping; no attestation challenge string")),Error();G.JM=!0;var W=[t.challenge];if(t.error){var I=mTD();I=RYn(I).get(t.error)||0;W.push("r1c="+I)}else t.webResponse&&W.push("r1a="+t.webResponse);var A;((A=t.adblockReporting)==null?void 0:A.reportingStatus)!==void 0&&W.push("r6a="+t.adblockReporting.reportingStatus);var m;((m=t.adblockReporting)==null?void 0:m.broadSpectrumDetectionResult)!==void 0&&W.push("r6b="+t.adblockReporting.broadSpectrumDetectionResult); e(W.join("&"));Ld("att_f",void 0,"player_att");g.pA(k,0);break;case 4:g.vo(k),Ld("att_e",void 0,"player_att"),g.P2(k)}})})().then(function(){E==null||E()}); else{var P=new g.QYq(this.videoData);if("c1a"in P.fX&&!g.Q4.isInitialized()){Ld("att_wb",void 0,"player_att");this.N$===2&&Math.random()<.01&&g.p5(Error("Botguard not available after 2 attempts"));if(H)return;if(this.N$<5){g.J3(this.Vk);this.N$++;return}}(P=g.wHs(P))?(Ld("att_f",void 0,"player_att"),ynl(this.eT,P),this.JM=!0):Ld("att_e",void 0,"player_att")}}; g.M.Q0=function(H){H=H===void 0?!1:H;return oN(this.videoData)&&(this.isAtLiveHead()&&!this.playerState.isPaused()||this.Ke()||g.eP(this.videoData))?this.getCurrentTime():this.VG(H)}; g.M.P5=function(){return this.MC()}; g.M.VG=function(H){return this.tG.VG(H===void 0?!1:H)}; g.M.MC=function(){return this.tG.MC()}; g.M.YV=function(){return this.tG?this.tG.YV():0}; g.M.getStreamTimeOffset=function(){return this.tG?this.tG.getStreamTimeOffset():0}; g.M.Ax=function(){return this.getStreamTimeOffset()===0?this.YV():this.getStreamTimeOffset()}; g.M.setPlaybackRate=function(H){var E;this.playbackRate!==H&&vU(this.VA,(E=this.videoData.G)==null?void 0:E.videoInfos)&&(this.playbackRate=H,eC(this));this.playbackRate=H;this.mediaElement&&this.mediaElement.setPlaybackRate(H)}; g.M.getPlaybackRate=function(){return this.playbackRate}; g.M.getPlaybackQuality=function(){var H="unknown";if(this.videoData.W&&(H=this.videoData.W.video.quality,H==="auto"&&this.mediaElement)){var E=this.AJ();E&&E.videoHeight>0&&(H=yT(E.videoWidth,E.videoHeight))}return H}; g.M.isHdr=function(){return!!(this.videoData.W&&this.videoData.W.video&&this.videoData.W.video.isHdr())}; g.M.sendVideoStatsEngageEvent=function(H,E){var G=this.eT;G.L?(G=A2(G.L,"engage"),G.Jm=H,G.send(E)):E&&E()}; g.M.sQ=function(H){return this.eT.sQ(H)}; g.M.isAtLiveHead=function(H,E){E=E===void 0?!1:E;return oN(this.videoData)&&(this.P7||E)?this.tG.isAtLiveHead(H):!1}; g.M.XR=function(){var H=this.VG(),E=this.getCurrentTime(),G;(G=!oN(this.videoData))||(G=this.tG,G=!(G.L&&G.L.G));return G||this.Ke()||isNaN(H)||isNaN(E)?0:Math.max(0,H-E)}; g.M.m_=function(H){(this.P7=H)||this.W3.stop();if(this.videoData.L)if(H)this.videoData.L.resume();else{var E=this.videoData.L;E.T&&E.T.stop()}this.loader&&(E=this.videoData.U("html5_disable_preload_for_ssdai_with_preroll")&&this.EZ()&&this.videoData.isLivePlayback,H&&!E?this.loader.resume():R1(this,!0));g.F(this.playerState,2)||H?g.F(this.playerState,512)&&H&&this.wP($3(this.playerState,512)):this.wP(m1(this.playerState,512));E=this.eT;E.qoe&&(E=E.qoe,g.BC(E,g.Gm(E.provider),"stream",[H?"A":"I"]))}; g.M.m3=function(H){this.eT.Di("player.exception",gt({n:H.name,m:H.message}))}; g.M.KM=oF(22);g.M.Dq=oF(51);g.M.y0=function(H){this.eT.y0(H)}; g.M.aD=function(H){this.eT.aD(H)}; g.M.qk=function(H){this.eT.qk(H)}; g.M.cL=oF(28);g.M.rG=oF(34);g.M.Bf=function(H){this.eT.Bf(H)}; g.M.vN=function(H,E,G,P){this.eT.vN(H,E,G,P)}; g.M.v0=function(){this.g5("hidden",{},!0)}; g.M.y$=function(){return this.mediaElement?this.mediaElement.getVideoPlaybackQuality():{}}; g.M.xT=function(){return this.loader?this.loader.xT():!0}; g.M.setLoop=function(H){this.loop=H;this.mediaElement&&!g.vV(this.X)&&this.mediaElement.setLoop(H)}; g.M.GP=function(){return this.mediaElement&&!g.vV(this.X)?this.mediaElement.GP():this.loop}; g.M.G7=function(H){this.g5("timestamp",{o:H.toString()});this.tG.G7(H)}; g.M.QG=function(H){this.HT.tick(H)}; g.M.MW=function(H){return this.HT.MW(H)}; g.M.Ga=function(H){this.HT.Ga(H)}; g.M.g5=function(H,E,G){this.eT.g5(H,E,G===void 0?!1:G)}; g.M.Kq=function(H,E,G){this.eT.g5(H,E,G===void 0?!1:G)}; g.M.Di=function(H){this.eT.Di(H.errorCode,gt(H.details));H=H.errorCode;if(this.videoData.isLivePlayback&&(H==="qoe.longrebuffer"||H==="qoe.slowseek")||H==="qoe.restart"){H=this.loader?M5T(this.loader.videoTrack):{};var E,G;this.g5("lasoe",Object.assign(this.loader?M5T(this.loader.audioTrack):{},(E=this.Am)==null?void 0:(G=E.L)==null?void 0:G.B4()));var P,Q;this.g5("lvsoe",Object.assign(H,(P=this.Am)==null?void 0:(Q=P.W)==null?void 0:Q.B4()))}if(this.U("html5_log_centralized_player_time")){var e;this.g5("sabrSeekRefactorCmt", {cmt:this.getCurrentTime(),loaderCmt:(e=this.loader)==null?void 0:pru(e)})}}; g.M.fO=function(H,E,G){this.eT.fO(H,E,G)}; g.M.fp=function(H,E,G,P,Q,e,w,t){var k;if((k=this.videoData.L)!=null&&k.isLive){var W=E.playerType===2?E:H,I=H.videoData.videoId,A=E.videoData.videoId;if(I&&A){k=this.eT;if(k.qoe){var m=k.qoe,u=H.cpn,v=E.cpn,n=W.videoData.jT,O=m.provider.videoData.clientPlaybackNonce,q=m.provider.videoData.videoId,N=v!==O&&A!==q;O=u!==O&&I!==q;m.reportStats();m.adCpn&&m.adCpn!==u||(m.adCpn=O?u:"",m.KU=O?I:"",m.adFormat=O?n:void 0,FGU(m,e?4:Q?2:0,v,A,P),m.reportStats(),m.adCpn=N?v:"",m.KU=N?A:"",m.adFormat=N?n:void 0, FGU(m,e?5:Q?3:1,u,I,G),m.reportStats())}G=H.cpn;if(k.G.has(G)){if(Q=k.G.get(G),IO(Q,!0).send(),PJ(Q),G!==k.provider.videoData.clientPlaybackNonce){F8u(Q);var r;(r=k.L)==null||q2(r);k.G.delete(G)}}else k.Xe=k.provider.videoData.clientPlaybackNonce,k.Xe&&k.L&&(k.G.set(k.Xe,k.L),IO(k.L).send(),PJ(k.L));r=E.cpn;W=W.videoData;P-=this.Ax();if(k.G.has(r)){P=k.G.get(r);var B=P.G&&isNaN(P.T)?Ck(P):NaN;P=RG(P,!1);isNaN(B)||(P.B=B);P.send()}else P=ZX1(k,k.provider,W,P),k.G.set(r,P),jZM(P,new g.Jt(m1(new g.bb, 8),new g.bb)),P.GO(),(B=k.L)==null||PJ(B);k.Xe=r;if(this.U("html5_unify_csi_server_stitched_transition_logging")){if(k=this.HT,B=E.cpn,P=this.videoData.clientPlaybackNonce,E=E.videoData,H=(H.cpn===P?"video":"ad")+"_to_"+(B===P?"video":"ad"),H!=="video_to_ad"){P=H==="ad_to_video"?void 0:E;W=P==null?void 0:P.yx;r={};if(E==null?0:E.C)r.cttAuthInfo={token:E.C,videoId:E.videoId};w&&(r.startTime=w);B2(H,r);var l,S,z;w={targetVideoId:(l=E==null?void 0:E.videoId)!=null?l:"empty_video",targetCpn:B,adVideoId:(S= P==null?void 0:P.videoId)!=null?S:"empty_video",adClientPlaybackNonce:(z=W==null?void 0:W.cpn)!=null?z:P==null?void 0:P.clientPlaybackNonce};W&&(w.adBreakType=W.adBreakType,w.adType=W.adType);g.Qn(w,H);ME(k,t,H)}}else l=this.HT,z=this.videoData.clientPlaybackNonce,S=E.videoData,z=(H.cpn===z?"video":"ad")+"_to_"+(E.cpn===z?"video":"ad"),H={},S.C&&(H.cttAuthInfo={token:S.C,videoId:S.videoId}),w&&(H.startTime=w),B2(z,H),g.Qn({targetVideoId:S.videoId,targetCpn:E.cpn,isSsdai:!0},z),w||ME(l,t,z)}}else g.d3(this.logger, 360717806,"SSTEvent for nonSS")}; g.M.jF=function(){var H=this.O9,E=H.I6;H.I6=[];return E}; g.M.pC=function(H){this.videoData.wi=!0;this.Di(new g.q$("sabr.fallback",H));this.kH(!0)}; g.M.q9=function(H,E){this.videoData.wp=!0;if(E===void 0||E)this.Di(new g.q$("qoe.restart",H)),this.kH(!0)}; g.M.HP=function(H){this.g5("sdai",{aftimeout:H});this.Di(new g.q$("ad.fetchtimeout",{timeout:H}))}; g.M.ub=function(H,E){this.g5("timelineerror",H);H=new g.q$("dai.timelineerror",H);E?this.kq("dai.timelineerror",1,"RETRYABLE_ERROR",gt(H.details)):this.Di(H)}; g.M.sB=function(){return g.Gm(this.eT.provider)}; g.M.getPlayerSize=function(){return this.BS.getPlayerSize()}; g.M.sR=function(){return this.BS.sR()}; g.M.Nf=function(){return this.HT}; g.M.EY=function(){return this.O9.EY()}; g.M.getVolume=function(){return this.O9.getVolume()}; g.M.NO=function(){return this.O9.NO()}; g.M.isMuted=function(){return this.O9.isMuted()}; g.M.CT=function(){return this.O9.CT()}; g.M.vP=function(){this.Sk=!0}; g.M.U=function(H){return this.X.U(H)}; g.M.Bo=function(){return this.X.Bo()}; g.M.Ag=function(H,E,G,P,Q){this.g5("xvt",{m:H,g:E?1:0,tt:G?1:0,np:P?1:0,c:Q})}; g.M.On=function(){var H;(H=this.loader)==null||H.resume()}; g.M.EZ=function(){return g.Xa(this.qE,"ad")}; g.M.bB=function(){var H=this.getCurrentTime(),E=H-this.YV();var G=this.mediaElement?m_(this.mediaElement.AK()):0;G=Math.floor(Math.max(G-E,0))+100;var P;return((P=this.loader)==null?0:P.bB(E,G))?(this.g5("sdai",{skipad:1,ct:E.toFixed(3),adj:G.toFixed(3)}),ip(this.videoData)&&this.loader.seek(E+G,{seekSource:89,cO:"videoplayer_skipServerStitchedAd"}),v5T(this.tG,H),!0):!1}; g.M.z6=function(){return this.X.z6()}; g.M.J2=function(){if(this.U("html5_generate_content_po_token"))return this.videoData.kG||"";this.O9.zk();return this.X.xW||""}; g.M.h5=function(){if(this.videoData.videoId)return this.videoData.RO}; g.M.mj=function(){return this.videoData.videoId}; g.M.nT=function(){return this.O9.ZB}; g.M.d4=function(){return this.a5}; g.M.o4=function(){return this.O9.o4()}; g.M.iT=function(H,E,G){this.wP(m1(this.playerState,16,G));this.tG.iT(H,E,G)}; g.M.prefetchKeyPlay=function(H,E){var G;(G=this.loader)==null||G.prefetchKeyPlay(H,E)}; g.M.Db=function(H){return this.tG.Db(H)}; g.M.z_=function(){this.tG.z_()}; g.M.Ww=function(H,E){var G=this.U("html5_generate_content_po_token")?this.videoData:void 0;this.O9.Ww(H,E,G)}; g.M.VQ=function(H,E){this.eT.VQ(H,E)}; g.M.zV=function(){return this.eT.zV()}; g.M.wG=function(){return this.O9.wG()}; g.M.Qj=function(){return this.O9.Qj(this)}; g.M.z8=function(){this.TX=!0}; g.M.J6=function(H){var E;(E=this.loader)==null||E.J6(H)}; g.M.PH=function(){return this.videoData.V8&&this.v1};g.C(zZM,Xu);g.C(uW,eF);uW.prototype.L=function(H){H&&IV(this,this.S.getLoopVideo());this.S.logVisibility(this.element,H)}; uW.prototype.logClick=function(){this.S.logClick(this.element)}; uW.prototype.onLoopChange=function(H){IV(this,H)}; uW.prototype.W=function(H){this.S.setLoopVideo(H)};g.C(oNT,Xu);g.C(Edd,Xu);g.M=Edd.prototype;g.M.seekToChapterWithAnimation=function(H){var E=this;if(g.X0(this.api)&&!(H<0)){var G=this.api.getVideoData(),P=G.ox;if(P&&H=0)return;E=~E;g.nH(this.items,E,0,H);bl(this.menuItems.element,H.element,E)}H.subscribe("size-change",this.kO,this);this.menuItems.publish("size-change")}; g.M.TZ=function(){tAs(this)||this.items[0].focus();return!0}; g.M.SP=function(){this.items[this.items.length-1].focus();return!0}; g.M.HY=function(H){H.unsubscribe("size-change",this.kO,this);this.Iu()||(g.Ih(this.items,H),this.menuItems.element.removeChild(H.element),this.menuItems.publish("size-change"))}; g.M.kO=function(){this.menuItems.publish("size-change")}; g.M.focus=function(){for(var H=0,E=0;E1&&g.p4(this)}; g.M.RN=function(){lyQ(this);this.pP&&(U3w(this),g.sR(this.element,this.size))}; g.M.Xr=function(){var H=this.L.pop();Jb(this,H,this.L[this.L.length-1],!0)}; g.M.I3=function(H){if(!H.defaultPrevented)switch(H.keyCode){case 27:this.t7();H.preventDefault();break;case 37:this.L.length>1&&this.Xr();H.preventDefault();break;case 39:H.preventDefault()}}; g.M.focus=function(){this.L.length&&this.L[this.L.length-1].focus()}; g.M.G$=function(){g.nw.prototype.G$.call(this);this.G&&this.G.dispose();this.D&&this.D.dispose()};g.C(YB,g.$f);YB.prototype.open=function(H,E){this.initialize(H.items)&&this.Yt(E,!!E)}; YB.prototype.initialize=function(H){g.gD(this.Xa);if(H===void 0||H.length===0)return!1;var E=H.length;H=g.R(H);for(var G=H.next();!G.done;G=H.next())this.Rq(G.value,E--);return!0}; YB.prototype.Rq=function(H,E){H.menuNavigationItemRenderer?Ukl(this,H.menuNavigationItemRenderer,E):H.menuServiceItemRenderer&&azs(this,H.menuServiceItemRenderer,E)};g.C(g2,BD);g.M=g2.prototype;g.M.Mg=function(H){H.target!==this.dismissButton.element&&H.target!==this.overflowButton.element&&(this.ul(),this.onClickCommand&&this.S.n_("innertubeCommand",this.onClickCommand))}; g.M.tA=function(){this.enabled=!1;this.N.hide()}; g.M.Rz=function(){return!!this.L&&this.enabled}; g.M.onVideoDataChange=function(H,E){this.XB(E);if(this.L){this.RX();a:if(!this.isCounterfactual){var G,P,Q;this.banner.update({title:(G=this.L)==null?void 0:G.title,subtitle:(P=this.L)==null?void 0:P.subtitle,metadata:(Q=this.L)==null?void 0:Q.metadataText});var e;this.onClickCommand=g.X((e=this.L)==null?void 0:e.onTap,ab);var w;if(H=g.X((w=this.L)==null?void 0:w.onOverflow,ab))this.C=g.X(H,Sn3);var t;if((t=this.L)==null?0:t.thumbnailImage){var k,W;w=((k=this.L)==null?void 0:(W=k.thumbnailImage)== null?void 0:W.sources)||[];if(w.length===0)break a;this.thumbnailImage.update({url:w[0].url})}else{var I;if((I=this.L)==null?0:I.thumbnailIconName){var A;this.thumbnailIcon.update({icon:(A=this.L)==null?void 0:A.thumbnailIconName})}}var m;this.shouldShowOverflowButton=!((m=this.L)==null||!m.shouldShowOverflowButton);var u;this.shouldHideDismissButton=!((u=this.L)==null||!u.shouldHideDismissButton)}var v;this.banner.element.setAttribute("aria-label",((v=this.L)==null?void 0:v.a11yLabel)||"");var n; this.Yp=(n=this.L)==null?void 0:n.dismissButtonA11yLabel;this.dismissButton.hide();this.overflowButton.hide();this.isInitialized=!0;Wcl(this)}}; g.M.q9a=function(){this.isVisible=!0;Wcl(this)}; g.M.FVR=function(){this.isVisible=!1;Wcl(this)}; g.M.M0=function(){BD.prototype.M0.call(this);this.W&&this.S.logVisibility(this.banner.element,this.isVisible)}; g.M.ul=function(){BD.prototype.ul.call(this,!1);this.W&&this.S.logClick(this.banner.element)}; g.M.lR=function(H){this.T||(this.T=new YB(this.S),g.d(this,this.T));var E,G;if((E=this.C)==null?0:(G=E.menu)==null?0:G.menuRenderer)this.T.open(this.C.menu.menuRenderer,H.target),H.preventDefault()}; g.M.XB=function(){}; g.M.RX=function(){}; g.M.G$=function(){this.S.dV("suggested_action_view_model");BD.prototype.G$.call(this)};g.C(oO,g2); oO.prototype.XB=function(H){var E,G,P;this.productUpsellSuggestedActionViewModel=g.X((E=H.getWatchNextResponse())==null?void 0:(G=E.playerOverlays)==null?void 0:(P=G.playerOverlayRenderer)==null?void 0:P.suggestedActionViewModel,hWZ);var Q;if((Q=this.productUpsellSuggestedActionViewModel)==null?0:Q.content){var e;this.L=g.X((e=this.productUpsellSuggestedActionViewModel)==null?void 0:e.content,zqC)}var w,t;if(this.W=!!((w=this.productUpsellSuggestedActionViewModel)==null?0:(t=w.loggingDirectives)==null? 0:t.trackingParams)){var k,W;this.S.setTrackingParams(this.banner.element,((k=this.productUpsellSuggestedActionViewModel)==null?void 0:(W=k.loggingDirectives)==null?void 0:W.trackingParams)||null)}var I;this.isCounterfactual=!((I=this.productUpsellSuggestedActionViewModel)==null||!I.isCounterfactualServing)}; oO.prototype.RX=function(){var H=[],E,G=g.R(((E=this.productUpsellSuggestedActionViewModel)==null?void 0:E.ranges)||[]);for(E=G.next();!E.done;E=G.next()){var P=E.value;P&&(E=Number(P.startTimeMilliseconds),P=Number(P.endTimeMilliseconds),isNaN(E)||isNaN(P)||H.push(new g.cP(E,P,{id:"product_upsell",namespace:"suggested_action_view_model"})))}this.S.MV(H)};g.C(odt,Xu);g.C(tR,Xu);tR.prototype.onVideoDataChange=function(H,E){var G=this;if(!pq(E)&&(H==="newdata"&&$s(this),this.L&&H==="dataloaded")){this.L=!1;var P;NF(bk(q5(this.api.K(),(P=this.api.getVideoData())==null?void 0:g.RS(P)),function(Q){GMw(G,Q)}),function(){G.L=!0})}}; tR.prototype.Km=function(){var H=this;if(g.vV(this.api.K())){var E,G=g.Ns(this.api.K(),(E=this.api.getVideoData())==null?void 0:g.RS(E));return bk(cV(G),function(P){var Q=Wb();Io(Q,P);return H.api.Km(Q)})}return cV(this.api.Km())};g.C(g.os,g.h9);g.M=g.os.prototype;g.M.open=function(){g.kQ(this.Ru,this.BO)}; g.M.nm=function(H){Jnv(this);var E=this.options[H];E&&(E.element.setAttribute("aria-checked","true"),this.setContent(this.RJ(H)),this.T=H)}; g.M.MS=function(H){g.gD(this.BO);for(var E={},G=!1,P=0;P=0?this.L.playbackRate:1}catch(H){return 1}}; g.M.setPlaybackRate=function(H){this.getPlaybackRate()!==H&&(this.L.playbackRate=H);return H}; g.M.GP=function(){return this.L.loop}; g.M.setLoop=function(H){this.L.loop=H}; g.M.canPlayType=function(H,E){return this.L.canPlayType(H,E)}; g.M.isPaused=function(){return this.L.paused}; g.M.isSeeking=function(){return this.L.seeking}; g.M.isEnded=function(){return this.L.ended}; g.M.v4=function(){return this.L.muted}; g.M.IN=function(H){Tk();this.L.muted=H}; g.M.CG=function(){return this.L.played||FK([],[])}; g.M.AK=function(){try{var H=this.L.buffered}catch(E){}return H||FK([],[])}; g.M.hI=function(){return this.L.seekable||FK([],[])}; g.M.AQ=function(){var H=this.L;return H.getStartDate?H.getStartDate():null}; g.M.getCurrentTime=function(){return this.L.currentTime}; g.M.setCurrentTime=function(H){this.L.currentTime=H}; g.M.getDuration=function(){return this.L.duration}; g.M.load=function(){var H=this.L.playbackRate;try{this.L.load()}catch(E){}this.L.playbackRate=H}; g.M.pause=function(){this.L.pause()}; g.M.play=function(){var H=this.L.play();if(!H||!H.then)return null;H.then(void 0,function(){}); return H}; g.M.xM=function(){return this.L.readyState}; g.M.jY=function(){return this.L.networkState}; g.M.Sx=function(){return this.L.error?this.L.error.code:null}; g.M.K6=function(){return this.L.error?this.L.error.message:""}; g.M.getVideoPlaybackQuality=function(){if(window.HTMLVideoElement&&this.L instanceof window.HTMLVideoElement&&this.L.getVideoPlaybackQuality)return this.L.getVideoPlaybackQuality();if(this.L){var H=this.L,E=H.webkitDroppedFrameCount;if(H=H.webkitDecodedFrameCount)return{droppedVideoFrames:E||0,totalVideoFrames:H}}return{}}; g.M.w6=function(){return!!this.L.webkitCurrentPlaybackTargetIsWireless}; g.M.fz=function(){return!!this.L.webkitShowPlaybackTargetPicker()}; g.M.togglePictureInPicture=function(){var H=this.L,E=window.document;window.document.pictureInPictureEnabled?this.L!==E.pictureInPictureElement?H.requestPictureInPicture():E.exitPictureInPicture():F6()&&H.webkitSetPresentationMode(H.webkitPresentationMode==="picture-in-picture"?"inline":"picture-in-picture")}; g.M.OC=function(){var H=this.L;return new g.oG(H.offsetLeft,H.offsetTop)}; g.M.getSize=function(){return g.or(this.L)}; g.M.setSize=function(H){g.sR(this.L,H)}; g.M.getVolume=function(){return this.L.volume}; g.M.setVolume=function(H){Tk();this.L.volume=H}; g.M.PB=function(H){this.T[H]||(this.L.addEventListener(H,this.listener),this.T[H]=this.listener)}; g.M.setAttribute=function(H,E){this.L.setAttribute(H,E)}; g.M.removeAttribute=function(H){this.L.removeAttribute(H)}; g.M.hasAttribute=function(H){return this.L.hasAttribute(H)}; g.M.uF=oF(61);g.M.eO=oF(63);g.M.rZ=oF(65);g.M.Wk=oF(67);g.M.Wl=function(){return ut(this.L)}; g.M.Vw=function(H){g.aG(this.L,H)}; g.M.Zy=function(H){return g.ux(this.L,H)}; g.M.GC=function(){return g.wa(document.body,this.L)}; g.M.audioTracks=function(){var H=this.L;if("audioTracks"in H)return H.audioTracks}; g.M.G$=function(){for(var H=g.R(Object.keys(this.T)),E=H.next();!E.done;E=H.next())E=E.value,this.L.removeEventListener(E,this.T[E]);vX.prototype.G$.call(this)}; g.M.CJ=function(H){this.L.disableRemotePlayback=H};g.C(SC,g.D);g.C(FM,g.D);FM.prototype.show=function(){g.D.prototype.show.call(this);this.r5()}; FM.prototype.hide=function(){g.D.prototype.hide.call(this);this.delay.stop();this.D.stop()}; FM.prototype.r5=function(){var H=(0,g.ON)(),E=wy1(this.cF);MK(this.L,E.bandwidth_samples);MK(this.C,E.network_activity_samples);MK(this.G,E.live_latency_samples);MK(this.W,E.buffer_health_samples);var G={};E=g.R(Object.entries(E));for(var P=E.next();!P.done;P=E.next()){var Q=g.R(P.value);P=Q.next().value;Q=Q.next().value;this.B[P]!==Q&&(G[P]=" "+String(Q));this.B[P]=Q}this.update(G);H=(0,g.ON)()-H>25?5E3:500;this.delay.start(H)}; FM.prototype.N=function(){this.T?(this.position+=1,this.position>15&&(this.T=!1)):(--this.position,this.position<=0&&(this.T=!0));this.element.style.left=this.position+"%";this.element.style.top=this.position+"%";this.D.start(2E4)};g.C(tFU,Xu);g.C(V3,g.J);V3.prototype.L=function(){var H=(0,g.ON)()-this.startTime;H=Hthis.D[H])&&(this.L=H,this.H3())}; g.M.onCueRangeExit=function(H){var E=Ztt(this,H);E&&this.L===H&&this.api.n_("innertubeCommand",E);kH(this);this.L=void 0}; g.M.Lp=function(H){this.G=H}; g.M.gw=function(){this.H3();this.G=void 0}; g.M.H3=function(){if(this.L!==void 0){var H=(H=OM(this,this.L))&&H.onCueRangeEnter?KO(H.onCueRangeEnter):void 0;var E=OM(this,this.L);a:if(E&&E.additionalTrigger){var G=g.R(E.additionalTrigger);for(var P=G.next();!P.done;P=G.next())if(P=P.value,P.type){var Q=void 0,e=void 0;if((Q=this.E7[P.type])==null?0:Q((e=P.args)!=null?e:{})){G=!0;break a}}G=!1}else G=!0;H&&G&&(this.api.n_("innertubeCommand",H),C3l(this,E),this.D[this.L]!==void 0&&this.D[this.L]++,this.L_=!0)}}; g.M.G$=function(){this.timelyActions=this.G=this.L=this.videoId=void 0;this.D={};this.hR();kH(this);Xu.prototype.G$.call(this)};g.C(Fmv,Xu);g.C(y_,eF);y_.prototype.D=function(H){this.G(H?2:1)}; y_.prototype.ow=function(){var H=this.S.getPresentingPlayerType();H===2||H===3?this.L&&(this.L=!1,this.Ru.HY(this)):(H=this.getVoiceBoostState(),H!==1?(H===0?(IV(this,this.W()===2),this.setEnabled(!0)):(IV(this,!1),this.setEnabled(!1)),this.L||(this.Ru.Rq(this),this.L=!0)):this.L&&(this.Ru.HY(this),this.L=!1))}; y_.prototype.G$=function(){this.Ru.HY(this);eF.prototype.G$.call(this)};g.C(b$,Xu);b$.prototype.getVoiceBoostUserPreference=function(){return this.L}; b$.prototype.setVoiceBoostUserPreference=function(H){this.api.g5("vb_set",{pref:H});g.Fj("yt-player-voice-boost",H);H!==this.L&&(this.L=H,this.updateEnvironmentData(),this.getVoiceBoostState()!==1&&this.api.Nn(),this.api.TW())}; b$.prototype.getVoiceBoostState=function(){return this.api.qB(1)}; b$.prototype.updateEnvironmentData=function(){this.api.K().qF=this.L};g.C(n6,Xu);n6.prototype.G$=function(){this.N&&(g.fg(this.N),this.N=void 0);Xu.prototype.G$.call(this)}; n6.prototype.zk=function(){(this.W?!this.L:this.G)&&Ha(this)}; n6.prototype.zA=function(H,E,G){var P=this;if(Vqq(H)){var Q=G||"";if(this.L)E=SA(this,Q),gPU(H,E);else{var e=new g.M$;E.push(e.promise);this.T.promise.then(function(){var w=SA(P,Q);gPU(H,w);e.resolve()})}}}; n6.prototype.dI=function(H){var E=this;if(this.W||this.G)H.kG=SA(this,H.videoId),this.L||(this.D=new Kd,this.T.promise.then(function(){E.HT.MW("pot_if");H.kG=SA(E,H.videoId)}))};g.C(g.xW,g.D);g.xW.prototype.select=function(){this.api.OF(this.suggestion.videoId,this.suggestion.sessionData,this.suggestion.playlistId,void 0,void 0,this.suggestion.tI||void 0)&&this.api.logClick(this.element)}; g.xW.prototype.onClick=function(H){if(g.L3(this.api.K())&&this.api.U("web_player_log_click_before_generating_ve_conversion_params")){this.api.logClick(this.element);var E=this.suggestion.Sd(),G={};g.T8(this.api,G);E=g.eB(E,G);g.Xb(E,this.api,H)}else g.k6(H,this.api,this.W,this.suggestion.sessionData||void 0)&&this.select()}; g.xW.prototype.onKeyPress=function(H){switch(H.keyCode){case 13:case 32:H.defaultPrevented||(this.select(),H.preventDefault())}}; g.xW.prototype.onVideoDataChange=function(){var H=this.api.getVideoData(),E=this.api.K();this.W=H.Xg?!1:E.D};g.C(bo,g.D);bo.prototype.G$=function(){this.hide();g.hH(this.G);g.dT(this.stills);this.stills.length=0;this.L&&(this.L.remove(),this.L=void 0);g.D.prototype.G$.call(this)}; bo.prototype.C=function(H){this.B&&this.B(H)}; bo.prototype.onVideoDataChange=function(){if(!this.T){this.videoData=this.player.getVideoData(1);var H,E,G,P,Q;var e=(((H=this.videoData)==null?0:(E=H.suggestions)==null?0:E.length)?(G=this.videoData)==null?void 0:G.suggestions:((P=this.videoData)==null?0:g.KR(P))?[(Q=this.videoData)==null?void 0:g.KR(Q)]:[]).slice(0,18);if((H=this.D)&&this.W)if(g.NG(H),e.length)for(this.stills.length>e.length&&g.dT(this.stills.splice(e.length)),this.stills.length=e.length,E=0;E=0;H--)this.features[H].dispose();this.features.length=0;g.J.prototype.G$.call(this)};Fuq.prototype.reset=function(){this.L=this.W=NaN};g.M=Yf.prototype;g.M.reset=function(){jb(this.timerName)}; g.M.tick=function(H,E){KT(H,E,this.timerName)}; g.M.MW=function(H){return i1(H,void 0,this.timerName)}; g.M.Ga=function(H){g.ng(H,void 0,this.timerName)}; g.M.infoGel=function(H){g.Qn(H,this.timerName)};g.C(oBl,g.z7);g.M=oBl.prototype;g.M.wU=function(H){return this.loop||!!H||this.index+1=0}; g.M.setShuffle=function(H){this.shuffle=H;H=this.order&&this.order[this.index]!=null?this.order[this.index]:this.index;this.order=[];for(var E=0;E=E.top&&H.right<=E.right&&H.bottom<=E.bottom&&H.left>=E.left))return}JA(this,2,!1)}; g.M.P3=function(H){var E=new g.oG(H.pageX,H.pageY);W4(E,this.D)||(this.D=E,(H=H.target)&&this.Od(H)&&(JA(this,4,!0),this.L.Sq(this.G),this.G=this.L.Z(this.target,"mouseover",this.fK),this.B=this.L.Z(this.target,"mouseout",this.fK)))}; g.M.fK=function(H){H=H.relatedTarget;H&&this.Od(H)||(this.D=new g.oG(NaN,NaN),G51(this))}; g.M.Qqw=function(){JA(this,1,!0)}; g.M.C$=function(H){H=H.target;H instanceof Element&&!(H.tabIndex>0)||JA(this,1,!0)}; g.M.Pi=function(){this.C=!0;this.L.Sq(this.T);this.T=this.L.Z(document,"mouseup",this.dC)}; g.M.dC=function(){this.C=!1;JA(this,8,!1);this.L.Sq(this.T);this.T=this.L.Z(this.target,"mousedown",this.Pi)}; g.M.mC=function(H){if(H=(H=H.changedTouches)&&H[0])this.E7=H.identifier,this.L.Sq(this.N),this.N=this.L.Z(this.target,"touchend",this.EU,void 0,!0),JA(this,1024,!0)}; g.M.EU=function(H){if(H=H.changedTouches)for(var E=0;E1280||Q>720)if(E=P.QM("maxresdefault.jpg"))break;if(e>640||Q>480)if(E=P.QM("maxresdefault.jpg"))break;if(e>320||Q>180)if(E=P.QM("sddefault.jpg")||P.QM("hqdefault.jpg")||P.QM("mqdefault.jpg"))break;if(E=P.QM("default.jpg"))break}g.iH(H)&&(H=new Image,H.addEventListener("load", function(){bMl()}),H.src=E?E:"",this.api.Nf().tick("ftr")); this.D.style.backgroundImage=E?"url("+E+")":""};g.C(g.K2,g.D);g.K2.prototype.resize=function(){}; g.K2.prototype.W=function(H){var E=this;this.G=!1;zVT(this);var G=H.E8,P=this.api.K();G!=="GENERIC_WITHOUT_LINK"||P.C?G==="TOO_MANY_REQUESTS"?(P=this.api.getVideoData(),this.setContent(HK(this,"TOO_MANY_REQUESTS_WITH_LINK",P.Sd(),void 0,void 0,void 0,!1))):G!=="HTML5_NO_AVAILABLE_FORMATS_FALLBACK"||P.C?this.api.K().U("html5_enable_bandaid_error_screen")&&G==="HTML5_SPS_UMP_STATUS_REJECTED"&&!P.C?(P=P.hostLanguage,H="//support.google.com/youtube?p=videoError",P&&(H=g.eB(H,{hl:P})),this.setContent(HK(this, "HTML5_SPS_UMP_STATUS_REJECTED",H))):this.api.K().U("enable_adb_handling_in_sabr")&&G==="BROWSER_OR_EXTENSION_ERROR"&&!P.C?(P=P.hostLanguage,H="//support.google.com/youtube/answer/3037019#zippy=%2Cupdate-your-browser-and-check-your-extensions",P&&(H=g.eB(H,{hl:P})),this.setContent(HK(this,"BROWSER_OR_EXTENSION_ERROR",H))):this.setContent(g.XD(H.errorMessage)):this.setContent(HK(this,"HTML5_NO_AVAILABLE_FORMATS_FALLBACK_WITH_LINK_SHORT","//www.youtube.com/supported_browsers")):(H=P.hostLanguage,G= "//support.google.com/youtube/?p=player_error1",H&&(G=g.eB(G,{hl:H})),this.setContent(HK(this,"GENERIC_WITH_LINK_AND_CPN",G,!0)),P.U2&&!P.D&&oh7(this,function(e){if(g.k6(e,E.api,!zL(E.api.K()))){e={as3:!1,html5:!0,player:!0,cpn:E.api.getVideoData().clientPlaybackNonce};var w=E.api;w.GU("onFeedbackArticleRequest",{articleId:3037019,helpContext:"player_error",productData:e});w.isFullscreen()&&w.toggleFullscreen()}})); if(this.G){var Q=this.HF("ytp-error-link");Q&&(this.api.createClientVe(Q,this,216104),this.api.logVisibility(Q,!0),oh7(this,function(){E.api.logClick(Q)}))}}; var JFt=/([^<>]+)<\/a>/;g.C(D8Q,g.D);D8Q.prototype.lx=function(H,E,G){G=G===void 0?!1:G;switch(E){case 1:n$(this,H,this.G,G);break;case 2:n$(this,H,this.D,G);break;case 3:n$(this,H,this.L,G);break;case 4:n$(this,H,this.W,G)}};g.C(C_,g.D);g.M=C_.prototype;g.M.onClick=function(H){this.innertubeCommand?(this.S.n_("innertubeCommand",this.innertubeCommand),H.preventDefault()):g.k6(H,this.S,!0);this.S.logClick(this.element)}; g.M.onVideoDataChange=function(H,E){Ayt(this,E);this.jy&&Ibw(this,this.jy)}; g.M.QP=function(H){var E=this.S.getVideoData();this.videoId!==E.videoId&&Ayt(this,E);this.L&&Ibw(this,H.state);this.jy=H.state}; g.M.Yt=function(){this.fade.show();this.S.publish("paidcontentoverlayvisibilitychange",!0);this.S.logVisibility(this.element,!0)}; g.M.t7=function(){this.fade.hide();this.S.publish("paidcontentoverlayvisibilitychange",!1);this.S.logVisibility(this.element,!1)};g.C(SR,g.D);SR.prototype.hide=function(){this.L.stop();this.message.style.display="none";g.D.prototype.hide.call(this)}; SR.prototype.onStateChange=function(H){this.Ca(H.state)}; SR.prototype.Ca=function(H){if(g.F(H,128)||this.api.d4())var E=!1;else{var G;E=this.api.U("web_watch_enable_multiview_manager")&&((G=this.api.getVideoData())==null?0:pq(G))?!1:g.F(H,16)||g.F(H,1)?!0:!1}E?this.L.start():this.hide()}; SR.prototype.W=function(){this.message.style.display="block"};g.C(Hp,g.nw);Hp.prototype.onMutedAutoplayChange=function(H){this.W&&(H?(jqt(this),this.Yt()):(this.L&&this.logClick(),this.t7()))}; Hp.prototype.kx=function(H){this.api.isMutedByMutedAutoplay()&&g.Sv(H,2)&&this.t7()}; Hp.prototype.onClick=function(){this.api.unMute();this.logClick()}; Hp.prototype.logClick=function(){this.clicked||(this.clicked=!0,this.api.logClick(this.element))};g.C(g.A0,g.Z0);g.M=g.A0.prototype;g.M.init=function(){var H=this.api,E=H.getPlayerStateObject();this.lW=H.getPlayerSize();this.wP(E);this.vy();this.h7();this.api.publish("basechromeinitialized",this);this.dY()&&this.api.publish("standardControlsInitialized")}; g.M.onVideoDataChange=function(H,E){var G=this.ma!==E.videoId;if(G||H==="newdata")H=this.api,H.isFullscreen()||(this.lW=H.getPlayerSize());G&&(this.ma=E.videoId,G=this.C6,G.PF=3E3,JA(G,512,!0),this.vy());this.api.U("web_render_jump_buttons")&&E.showSeekingControls&&(this.J$=572)}; g.M.YTR=function(){this.onVideoDataChange("newdata",this.api.getVideoData())}; g.M.A3=function(){var H=this.api.pR()&&this.api.DG(),E=this.api.II();return this.fN||H||this.h1||E}; g.M.Ex=function(){var H=!this.A3();g.Bt(this.api.getRootNode(),"ytp-menu-shown",!H)}; g.M.Od=function(H){try{if(!g.wa(this.api.getRootNode(),H))return!1}catch(E){return!1}for(;H&&!Gg(H);)H=H===this.api.getRootNode()?null:H.parentElement||null;return!!H}; g.M.hZ=function(H){var E=this.api.getRootNode();g.Bt(E,"ytp-autohide",H);g.Bt(E,"ytp-autohide-active",!0);this.XO.start(H?250:100);H&&(this.iS=!1,g.Tn(E,"ytp-touch-mode"));this.vz=!H;this.api.ZH(!H);this.api.U("web_player_enable_fullscreen_grid_components")&&this.api.publish("autohideupdate",H)}; g.M.tB=function(){var H=this.api.getRootNode();g.Bt(H,"ytp-autohide-active",!1)}; g.M.nWp=function(){this.mL=!0}; g.M.yCo=function(H){if(this.api.K().U("player_doubletap_to_seek")||this.api.K().B)this.mL=!1,this.dJ&&this.Sq(this.dJ),this.xK===0&&$J(this,H)?(this.MY(),this.wr.start(),this.dJ=this.Z(this.api.NZ(),"touchmove",this.nWp,void 0,!0)):this.wr.stop();Pij(this)&&$J(this,H)&&!this.api.K().B&&BBw(this);var E=this.tW.TT();if(!g.L3(this.api.K())&&bE&&sUv(this,H))E&&H.preventDefault();else if(this.iS=!0,g.aG(this.api.getRootNode(),"ytp-touch-mode"),this.C6.By(),this.api.K().U("player_doubletap_to_seek")||this.api.K().B)if(E= this.api.getPlayerStateObject(),!(!this.api.vK()||g.F(E,2)&&g.wg(this.api)||g.F(E,64))){E=Date.now()-this.iK;this.xK+=1;if(E<=350){this.Vy=!0;E=this.api.getPlayerSize().width/3;var G=this.api.getRootNode().getBoundingClientRect(),P=H.targetTouches[0].clientX-G.left;G=H.targetTouches[0].clientY-G.top;var Q=(this.xK-1)*10;P>0&&PE*2&&P=650,P=H.width<528;this.C6.resize();if(this.api.U("web_player_use_screen_width_for_big_mode")){var Q,e=H.width>=((Q=g.hE(this.api.K().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?Q:2E3);g.Bt(E,"ytp-big-mode",e)}g.Bt(E,"ytp-fullscreen",this.api.isFullscreen());g.Bt(E,"ytp-large-width-mode",G);this.api.U("delhi_modern_web_player")?g.Bt(E,"ytp-xsmall-width-mode",P):g.Bt(E,"ytp-small-mode",this.jA()); g.Bt(E,"ytp-tiny-mode",this.zI());g.Bt(E,"ytp-big-mode",this.FM());this.d6&&this.d6.resize(H)}; g.M.kx=function(H){this.wP(H.state);this.vy()}; g.M.Ol=oF(3);g.M.s8=function(){var H=!!this.ma&&!this.api.WY()&&!this.mT,E=this.api.getPresentingPlayerType()===2,G=this.api.K();if(E)return G=Ye(this.api.lm()),H&&(G&&G.player?H=(H=G.player.getVideoData(2))?H.isListed&&!g.KU(G.player.K()):!1:(xQ("showInfoBarDuringAd: this is null"),H=!1)),H;E=G.U("web_player_imax_theater_mode")&&this.api.St()&&!this.api.isInline();return H&&(G.aO||E||this.api.isFullscreen()||G.vt)}; g.M.vy=function(){var H=this.s8();this.dH!==H&&(this.dH=H,g.Bt(this.api.getRootNode(),"ytp-hide-info-bar",!H))}; g.M.wP=function(H){var E=H.isCued()||this.api.FG()&&this.api.getPresentingPlayerType()!==3;E!==this.isCued&&(this.isCued=E,this.EL&&this.Sq(this.EL),this.EL=this.Z(this.api.NZ(),"touchstart",this.yCo,void 0,E));var G=this.C6,P=H.isPlaying()&&!g.F(H,32)||this.api.G5();JA(G,128,!P);G=this.C6;P=this.api.getPresentingPlayerType()===3;JA(G,256,P);G=this.api.getRootNode();g.F(H,2)?P=[Uf.ENDED]:(P=[],g.F(H,8)?P.push(Uf.PLAYING):g.F(H,4)&&P.push(Uf.PAUSED),g.F(H,1)&&!g.F(H,32)&&P.push(Uf.BUFFERING),g.F(H, 32)&&P.push(Uf.SEEKING),g.F(H,64)&&P.push(Uf.UNSTARTED));g.l8(this.AO,P)||(g.YQ(G,this.AO),this.AO=P,g.rl(G,P));P=this.api.K();var Q=g.F(H,2);a:{var e=this.api.K();var w=e.controlsType;switch(w){case "2":case "0":e=!1;break a}e=w==="3"&&!g.F(H,2)||this.isCued||(this.api.getPresentingPlayerType()!==2?0:ml(Ye(this.api.lm())))||this.api.II()||g.L3(e)&&this.api.getPresentingPlayerType()===2?!1:!0}g.Bt(G,"ytp-hide-controls",!e);g.Bt(G,"ytp-native-controls",P.controlsType==="3"&&!E&&!Q&&!this.h1);g.F(H, 128)&&!g.L3(P)?(this.d6||(this.d6=new g.K2(this.api),g.d(this,this.d6),g.as(this.api,this.d6.element,4)),this.d6.W(H.Qp),this.d6.show()):this.d6&&(this.d6.dispose(),this.d6=null)}; g.M.Jp=function(){return this.api.pR()&&this.api.DG()?(this.api.Sv(!1,!1),!0):this.api.WY()?(g.hP(this.api,!0),!0):!1}; g.M.onMutedAutoplayChange=function(H){this.h1=H;this.Ex()}; g.M.FM=function(){return!1}; g.M.jA=function(){return!this.FM()&&(this.api.getPlayerSize().width=0&&E.left>=0&&E.bottom>E.top&&E.right>E.left?E:null;E=this.size;H=H.clone();E=E.clone();P&&(w=E,Q=5,(Q&65)==65&&(H.x=P.right)&&(Q&=-2),(Q&132)==132&&(H.y=P.bottom)&&(Q&=-5),H.xP.right&&(w.width=Math.min(P.right-H.x,e+w.width-P.left),w.width=Math.max(w.width,0))),H.x+w.width>P.right&&Q&1&&(H.x=Math.max(P.right-w.width,P.left)),H.yP.bottom&&(w.height=Math.min(P.bottom-H.y,e+w.height-P.top),w.height=Math.max(w.height,0))),H.y+w.height>P.bottom&&Q&4&&(H.y=Math.max(P.bottom-w.height,P.top)));P=new g.Yn(0,0,0,0);P.left=H.x;P.top=H.y;P.width= E.width;P.height=E.height;g.lN(this.element,new g.oG(P.left,P.top));g.hH(this.W);this.W.Z(C7(this),"contextmenu",this.ajw);this.W.Z(this.S,"fullscreentoggled",this.onFullscreenToggled);this.W.Z(this.S,"pageTransition",this.OU)}; g.M.ajw=function(H){if(!H.defaultPrevented){var E=hD(H);g.wa(this.element,E)||this.t7();this.S.K().disableNativeContextMenu&&H.preventDefault()}}; g.M.onFullscreenToggled=function(){this.t7();P3j(this)}; g.M.OU=function(){this.t7()};g.C(lM,g.D);lM.prototype.onClick=function(){var H=this,E,G,P,Q;return g.L(function(e){if(e.L==1)return E=H.api.K(),G=H.api.getVideoData(),P=H.api.getPlaylistId(),Q=E.getVideoUrl(G.videoId,P,void 0,!0),g.U(e,pit(H,Q),2);e.W&&tQd(H);H.api.logClick(H.element);g.P2(e)})}; lM.prototype.r5=function(){this.updateValue("icon",{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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=rUU(this);g.Bt(this.element, "ytp-copylink-button-visible",this.visible);this.BT(this.visible);this.tooltip.aP();this.api.logVisibility(this.element,this.visible&&this.L_)}; lM.prototype.qL=function(H){g.D.prototype.qL.call(this,H);this.api.logVisibility(this.element,this.visible&&H)}; lM.prototype.G$=function(){g.D.prototype.G$.call(this);g.Tn(this.element,"ytp-copylink-button-visible")};g.C(gT,g.D);g.M=gT.prototype;g.M.show=function(){g.D.prototype.show.call(this);g.J3(this.W)}; g.M.hide=function(){this.D.stop();this.G=0;this.HF("ytp-seek-icon").style.display="none";this.updateValue("seekIcon","");g.Tn(this.element,"ytp-chapter-seek");g.Tn(this.element,"ytp-time-seeking");g.D.prototype.hide.call(this)}; g.M.HS=function(H,E,G,P){this.G=H===this.C?this.G+P:P;this.C=H;var Q=H===-1?this.N:this.B;Q&&this.S.logClick(Q);this.T?this.W.stop():g.Od(this.W);this.D.start();this.element.setAttribute("data-side",H===-1?"back":"forward");var e=3*this.S.NZ().getPlayerSize().height;Q=this.S.NZ().getPlayerSize();Q=Q.width/3-3*Q.height;this.L.style.width=e+"px";this.L.style.height=e+"px";H===1?(this.L.style.left="",this.L.style.right=Q+"px"):H===-1&&(this.L.style.right="",this.L.style.left=Q+"px");var w=e*2.5;e=w/ 2;var t=this.HF("ytp-doubletap-ripple");t.style.width=w+"px";t.style.height=w+"px";H===1?(H=this.S.NZ().getPlayerSize().width-E+Math.abs(Q),t.style.left="",t.style.right=H-e+"px"):H===-1&&(H=Math.abs(Q)+E,t.style.right="",t.style.left=H-e+"px");t.style.top="calc((33% + "+Math.round(G)+"px) - "+e+"px)";if(G=this.HF("ytp-doubletap-ripple"))G.classList.remove("ytp-doubletap-ripple"),G.classList.add("ytp-doubletap-ripple");dht(this,this.T?this.G:P)}; g.M.dc=function(H,E,G){if(G=G===void 0?null:G){var P=H===-1?this.N.visualElement:this.B.visualElement;G={seekData:G};var Q=g.ri();Q&&tc(Q,P,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",G)}this.G=H===this.C?this.G+E:E;this.C=H;P=this.S.NZ().getPlayerSize();this.T?this.W.stop():g.Od(this.W);this.D.start();this.element.setAttribute("data-side",H===-1?"back":"forward");g.aG(this.element,"ytp-time-seeking");this.L.style.width="110px";this.L.style.height="110px";G=P.width*.1-15;H===1?this.p_?(this.L.style.right= G+"px",this.L.style.left=""):(this.L.style.right="",this.L.style.left=P.width*.8-30+"px"):H===-1&&(this.p_?(this.L.style.right="",this.L.style.left=G+"px"):(this.L.style.right="",this.L.style.left=P.width*.1-15+"px"));this.L.style.top=P.height*.5+15+"px";dht(this,this.T?this.G:E)}; g.M.NU=function(H,E,G){G=G===void 0?null:G;g.Od(this.W);this.D.start();switch(H){case -1:H="back";break;case 1:H="forward";break;default:H=""}this.element.setAttribute("data-side",H);this.L.style.width="0";this.L.style.height="0";g.aG(this.element,"ytp-chapter-seek");this.updateValue("seekText",E);this.updateValue("seekTime","");E=this.HF("ytp-seek-icon");if(G){a:if(G){switch(G){case "PREMIUM_STANDALONE":G=Cfj();break a;case "PREMIUM_STANDALONE_CAIRO":G=rlQ();break a}G=void 0}else G=null;this.updateValue("seekIcon", G);E.style.display="inline-block"}else E.style.display="none"};g.C(ZE,BD);g.M=ZE.prototype;g.M.zQ=function(H){this.T$||(this.T$=new YB(this.S),g.d(this,this.T$));var E,G;if((E=this.FI)==null?0:(G=E.menu)==null?0:G.menuRenderer)this.T$.open(this.FI.menu.menuRenderer,H.target),H.preventDefault()}; g.M.Rz=function(){return!!this.L}; g.M.KH=function(){return!!this.L}; g.M.Mg=function(H){H.target===this.overflowButton.element?H.preventDefault():(this.ML&&this.S.n_("innertubeCommand",this.ML),this.ul(!1))}; g.M.tA=function(){this.ul(!0);var H,E;((H=this.L)==null?0:(E=H.bannerData)==null?0:E.dismissedStatusKey)&&this.U2.push(this.L.bannerData.dismissedStatusKey);this.hg()}; g.M.Hi=function(){this.hg();z8(this)}; g.M.jsF=function(H){var E=this,G;if(H.id!==((G=this.L)==null?void 0:G.identifier)){this.hg();G=g.R(this.E7);for(var P=G.next();!P.done;P=G.next()){var Q=P.value,e=void 0,w=void 0;if((P=(e=Q)==null?void 0:(w=e.bannerData)==null?void 0:w.itemData)&&Q.identifier===H.id){w=e=void 0;var t=((e=Q)==null?void 0:(w=e.bannerData)==null?void 0:w.dismissedStatusKey)||"";if(this.U2.includes(t))return;this.L=Q;this.banner.element.setAttribute("aria-label",P.accessibilityLabel||"");P.trackingParams&&(this.D=!0, this.S.setTrackingParams(this.badge.element,P.trackingParams));this.show();this.N.show();cK(this);this.PF.BT(!P.stayInApp);OZM(this);a4M(this);jR(this);this.ML=g.X(P.onTapCommand,ab);if(Q=g.X(P.menuOnTap,ab))this.FI=g.X(Q,Sn3);Q=void 0;this.banner.update({thumbnail:(Q=(P.thumbnailSources||[])[0])==null?void 0:Q.url,title:P.productTitle,price:P.priceReplacementText?P.priceReplacementText:P.price,salesOriginalPrice:mAv(this),priceDropReferencePrice:dD7(this),promotionText:T$7(this),priceA11yText:Qhn(this), affiliateDisclaimer:P.affiliateDisclaimer,vendor:K9(this)});t=w=e=Q=void 0;((Q=P)==null?0:(e=Q.hiddenProductOptions)==null?0:e.showDropCountdown)&&((w=P)==null?0:(t=w.hiddenProductOptions)==null?0:t.dropTimestampMs)&&(this.dP=new g.Wt(function(){$T7(E)},1E3),this.PF.hide(),this.countdownTimer.show(),$T7(this)); this.S.U("web_player_enable_featured_product_banner_exclusives_on_desktop")&&VtT(this)&&(this.jT=new g.Wt(function(){OgQ(E)},1E3),OgQ(this))}}this.S.getRootNode()&&g.aG(this.S.getRootNode(),"ytp-featured-product-shown")}}; g.M.hg=function(){this.L&&(this.L=void 0,this.aJ(),this.S.getRootNode()&&g.Tn(this.S.getRootNode(),"ytp-featured-product-shown"))}; g.M.onVideoDataChange=function(H,E){var G=this;H==="dataloaded"&&z8(this);var P,Q,e;H=g.X((P=E.getWatchNextResponse())==null?void 0:(Q=P.playerOverlays)==null?void 0:(e=Q.playerOverlayRenderer)==null?void 0:e.productsInVideoOverlayRenderer,TlJ);this.overflowButton.show();this.dismissButton.hide();var w=H==null?void 0:H.featuredProductsEntityKey;this.trendingOfferEntityKey=H==null?void 0:H.trendingOfferEntityKey;this.E7.length||(uxs(this,w),jR(this));var t;(t=this.WO)==null||t.call(this);this.WO=g.b8.subscribe(function(){uxs(G, w);jR(G)})}; g.M.G$=function(){z8(this);OZM(this);a4M(this);BD.prototype.G$.call(this)};g.C(XX1,g.D);XX1.prototype.onClick=function(){this.S.logClick(this.element,this.G);if(this.S.U("embeds_enable_info_panel_dismissal")&&this.L&&this.feedbackToken){var H=this.S.Km();if(H==null?0:Ndv(this.L,H.Gg))RC(H,this.L,{feedbackTokens:[this.feedbackToken]}),this.S.publish("infopaneldetaildismissed")}};g.C(mz,g.nw);g.M=mz.prototype;g.M.show=function(){g.nw.prototype.show.call(this);this.S.publish("infopaneldetailvisibilitychange",!0);this.S.logVisibility(this.element,!0);sgn(this,!0)}; g.M.hide=function(){g.nw.prototype.hide.call(this);this.S.publish("infopaneldetailvisibilitychange",!1);this.S.logVisibility(this.element,!1);sgn(this,!1)}; g.M.getId=function(){return this.G}; g.M.h_=function(){return this.itemData.length}; g.M.onVideoDataChange=function(H,E){if(E){var G,P,Q,e;this.update({title:((G=E.lG)==null?void 0:(P=G.title)==null?void 0:P.content)||"",body:((Q=E.lG)==null?void 0:(e=Q.bodyText)==null?void 0:e.content)||""});var w;H=((w=E.lG)==null?void 0:w.trackingParams)||null;this.S.setTrackingParams(this.element,H);w=g.R(this.itemData);for(H=w.next();!H.done;H=w.next())H.value.dispose();this.itemData=[];var t;if((t=E.lG)==null?0:t.ctaButtons)for(E=g.R(E.lG.ctaButtons),t=E.next();!t.done;t=E.next())if(t=g.X(t.value, gQC))t=new XX1(this.S,t,this.L),t.zU&&(this.itemData.push(t),t.mx(this.items))}}; g.M.G$=function(){this.hide();g.nw.prototype.G$.call(this)};g.C(xJ7,g.D);g.M=xJ7.prototype;g.M.onVideoDataChange=function(H,E){JK(this,E);this.jy&&p1T(this,this.jy)}; g.M.ez=function(H){var E=this.S.getVideoData();this.videoId!==E.videoId&&JK(this,E);p1T(this,H.state);this.jy=H.state}; g.M.P2=function(H){(this.G=H)?this.hide():this.L&&!this.isDismissed&&this.show()}; g.M.Cr=function(){this.W||this.Yt();this.showControls=!0}; g.M.oE=function(){this.W||this.t7();this.showControls=!1}; g.M.Yt=function(){if(!this.isDismissed){var H,E=(H=this.S)==null?void 0:H.getPlayerSize();H=E.width<380;var G;E=E.height<(((G=this.S)==null?0:G.isEmbedsShortsMode())?400:280);var P,Q;(((P=this.S)==null?0:P.getPlayerStateObject().isCued())||((Q=this.S)==null?0:g.F(Q.getPlayerStateObject(),1024)))&&H&&E||!this.L||this.G||(this.fade.show(),this.S.publish("infopanelpreviewvisibilitychange",!0),this.S.logVisibility(this.element,!0))}}; g.M.t7=function(){this.L&&!this.G&&(this.fade.hide(),this.S.publish("infopanelpreviewvisibilitychange",!1),this.S.logVisibility(this.element,!1))}; g.M.NG7=function(){this.W=!1;this.showControls||this.t7()};var VSR={"default":0,monoSerif:1,propSerif:2,monoSans:3,propSans:4,casual:5,cursive:6,smallCaps:7};Object.keys(VSR).reduce(function(H,E){H[VSR[E]]=E;return H},{}); var S9Z={none:0,raised:1,depressed:2,uniform:3,dropShadow:4};Object.keys(S9Z).reduce(function(H,E){H[S9Z[E]]=E;return H},{}); var FJC={normal:0,bold:1,italic:2,bold_italic:3};Object.keys(FJC).reduce(function(H,E){H[FJC[E]]=E;return H},{});var fRM,pzR;fRM=[{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"}];pzR=[{option:0,text:ET(0)},{option:.25,text:ET(.25)},{option:.5,text:ET(.5)},{option:.75,text:ET(.75)},{option:1,text:ET(1)}]; g.qK=[{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:fRM},{option:"fontSizeIncrement",text:"Font size",options:[{option:-2,text:ET(.5)},{option:-1,text:ET(.75)},{option:0,text:ET(1)},{option:1,text:ET(1.5)},{option:2, text:ET(2)},{option:3,text:ET(3)},{option:4,text:ET(4)}]},{option:"background",text:"Background color",options:fRM},{option:"backgroundOpacity",text:"Background opacity",options:pzR},{option:"windowColor",text:"Window color",options:fRM},{option:"windowOpacity",text:"Window opacity",options:pzR},{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:ET(.25)},{option:.5,text:ET(.5)},{option:.75,text:ET(.75)},{option:1,text:ET(1)}]}];var H3D=[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.C(lDU,g.Z0);g.M=lDU.prototype; g.M.H7=function(H){H.repeat||(this.G.Xv=!1);var E=!1,G=H.keyCode,P=hD(H),Q=!H.altKey&&!H.ctrlKey&&!H.metaKey&&(!this.api.isMutedByEmbedsMutedAutoplay()||H3D.includes(G)),e=!1,w=!1,t=this.api.K();H.defaultPrevented?(Q=!1,w=!0):t.Fa&&!this.api.isMutedByEmbedsMutedAutoplay()&&(Q=!1);if(G===9)E=!0;else{if(P)switch(G){case 32:case 13:if(P.tagName==="BUTTON"||P.tagName==="A"||P.tagName==="INPUT")E=!0,Q=!1;else if(Q){var k=P.getAttribute("role");!k||k!=="option"&&k!=="button"&&k.indexOf("menuitem")!==0|| (E=!0,P.click(),e=!0)}break;case 37:case 39:case 36:case 35:E=P.getAttribute("role")==="slider";break;case 38:case 40:k=P.getAttribute("role"),P=G===38?P.previousSibling:P.nextSibling,k==="slider"?E=!0:Q&&(k==="option"?(P&&P.getAttribute("role")==="option"&&P.focus(),e=E=!0):k&&k.indexOf("menuitem")===0&&(P&&P.hasAttribute("role")&&P.getAttribute("role").indexOf("menuitem")===0&&P.focus(),e=E=!0))}if(Q&&!e)switch(G){case 38:e=Math.min(this.api.getVolume()+5,100);WT(this.IM,e,!1);this.api.setVolume(e); w=e=!0;break;case 40:e=Math.max(this.api.getVolume()-5,0);WT(this.IM,e,!0);this.api.setVolume(e);w=e=!0;break;case 36:this.api.vK()&&(this.api.startSeekCsiAction(),this.api.seekTo(0,void 0,void 0,void 0,79),w=e=!0);break;case 35:this.api.vK()&&(this.api.startSeekCsiAction(),this.api.seekTo(Infinity,void 0,void 0,void 0,80),w=e=!0)}}E&&Tf(this,!0);(E||w)&&this.C6.By();(e||Q&&this.handleGlobalKeyDown(G,H.shiftKey,H.ctrlKey,H.altKey,H.metaKey,H.key,H.code,H.repeat))&&H.preventDefault();t.N&&(H={keyCode:H.keyCode, altKey:H.altKey,ctrlKey:H.ctrlKey,metaKey:H.metaKey,shiftKey:H.shiftKey,handled:H.defaultPrevented,fullscreen:this.api.isFullscreen()},this.api.tC("onKeyPress",H))}; g.M.u$=function(H){var E=H.keyCode;!this.G.Au&&this.handleGlobalKeyUp(E,H.shiftKey,H.ctrlKey,H.altKey,H.metaKey,H.key,H.code)&&H.preventDefault()}; g.M.handleGlobalKeyUp=function(H,E,G,P,Q,e,w){this.api.publish("keyboardserviceglobalkeyup",{keyCode:H,shiftKey:E,ctrlKey:G,altKey:P,metaKey:Q,key:e,code:w});E=!1;if(this.G.Xv)return E;(e=g.GW(this.api.lm()))&&(e=e.Qw)&&e.pP&&(e.Dw(H),E=!0);switch(H){case 9:Tf(this,!0);E=!0;break;case 32:if(this.api.U("web_speedmaster_spacebar_control")&&!this.api.K().Fa){var t,k;H=(t=this.progressBar)==null?void 0:(k=t.W)==null?void 0:k.isEnabled;E=this.If(H)}break;case 39:(this.api.U("web_player_chapter_seeking_keyboard_shortcut_killswitch")|| !(Q||G&&P))&&(az?P:G)&&this.api.vK()&&this.api.U("web_enable_keyboard_shortcut_for_timely_actions")&&(this.api.startSeekCsiAction(),t=(t=this.api.getVideoData())?t.ox:[],k=Yed(t,this.api.getCurrentTime()*1E3),k!==-1&&this.L!=null&&(this.L.NU(1,t[k].title),this.api.seekTo(t[k].startTime/1E3,void 0,void 0,void 0,52),E=!0))}return E}; g.M.handleGlobalKeyDown=function(H,E,G,P,Q,e,w,t){t||(this.G.Xv=!1);var k=!1,W=this.api.K();if(W.Fa&&!this.api.isMutedByEmbedsMutedAutoplay())return k;var I=g.GW(this.api.lm());if(I&&(I=I.Qw)&&I.pP)switch(H){case 65:case 68:case 87:case 83:case 107:case 221:case 109:case 219:k=I.Gt(H)}W.C||k||(k=e||String.fromCharCode(H).toLowerCase(),this.W+=k,"awesome".indexOf(this.W)===0||this.api.U("web_player_rtr_ctrls")&&"bday".indexOf(this.W)===0?(k=!0,4===this.W.length&&this.W==="bday"&&this.api.U("web_player_rtr_ctrls")&& (lhl(this.T),this.C6.By()),7===this.W.length&&this.W==="awesome"&&lev(this.api.getRootNode(),"ytp-color-party")):(this.W=k,k="awesome".indexOf(this.W)===0||"bday".indexOf(this.W)===0));if(!k&&(!this.api.isMutedByEmbedsMutedAutoplay()||H3D.includes(H))){var A=this.api.getVideoData(),m,u;I=(m=this.progressBar)==null?void 0:(u=m.W)==null?void 0:u.isEnabled;m=A?A.ox:[];u=az?P:G;switch(H){case 80:E&&!W.z$&&(k4(this.IM,LQQ(),"Previous"),this.api.previousVideo(),k=!0);break;case 78:E&&!W.z$&&(k4(this.IM, ck(),"Next"),this.api.nextVideo(),k=!0);break;case 74:this.api.vK()&&(this.api.startSeekCsiAction(),this.L?this.api.U("enable_key_press_seek_logging")?(k=Lk(this,-10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_10S"),this.L.dc(-1,10,k)):this.L.dc(-1,10):k4(this.IM,{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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),k=!0);break;case 76:this.api.vK()&&(this.api.startSeekCsiAction(),this.L?this.api.U("enable_key_press_seek_logging")?(k=Lk(this,10*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_10S"),this.L.dc(1,10,k)):this.L.dc(1,10):k4(this.IM,{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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),k=!0);break;case 37:if(this.api.vK())if(this.api.startSeekCsiAction(),u){if(this.api.U("web_player_chapter_seeking_keyboard_shortcut_killswitch")||!(Q||G&&P))u=BXw(m,this.api.getCurrentTime()*1E3),u!==-1&&this.L!=null&&(this.L.NU(-1,m[u].title),this.api.seekTo(m[u].startTime/1E3,void 0,void 0,void 0,53),k=!0)}else this.L?this.api.U("enable_key_press_seek_logging")?(k=Lk(this,-5*this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_BACKWARD_5S"), this.L.dc(-1,5,k)):this.L.dc(-1,5):k4(this.IM,{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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),k=!0;break;case 39:this.api.vK()&&(this.api.startSeekCsiAction(),u?this.api.U("web_enable_keyboard_shortcut_for_timely_actions")||!this.api.U("web_player_chapter_seeking_keyboard_shortcut_killswitch")&&(Q||G&&P)||(u=Yed(m,this.api.getCurrentTime()*1E3),u!==-1&&this.L!=null&&(this.L.NU(1,m[u].title),this.api.seekTo(m[u].startTime/1E3,void 0,void 0,void 0,52),k=!0)):(this.L!=null?this.api.U("enable_key_press_seek_logging")?(k=Lk(this,5* this.api.getPlaybackRate(),"SEEK_SOURCE_SEEK_FORWARD_5S"),this.L.dc(1,5,k)):this.L.dc(1,5):k4(this.IM,{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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),k=!0));break;case 77:this.api.isMuted()?(this.api.unMute(),WT(this.IM,this.api.getVolume(),!1)):(this.api.mute(),WT(this.IM,0,!0));k=!0;break;case 32:k=this.api.U("web_speedmaster_spacebar_control")?!this.api.K().z$:this.If(I);break;case 75:k=this.If(I);break;case 190:E?W.enableSpeedOptions&&q77(this)&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k+.25,!0),GSn(this.IM,!1),k=!0):this.api.vK()&&(this.step(1),k=!0);break;case 188:E? W.enableSpeedOptions&&q77(this)&&(k=this.api.getPlaybackRate(),this.api.setPlaybackRate(k-.25,!0),GSn(this.IM,!0),k=!0):this.api.vK()&&(this.step(-1),k=!0);break;case 70:FMn(this.api)&&(this.api.toggleFullscreen().catch(function(){}),k=!0); break;case 27:I?(this.progressBar.S1(),k=!0):this.B()&&(k=!0)}if(W.controlsType!=="3")switch(H){case 67:g.aC(this.api.lm())&&(W=this.api.getOption("captions","track"),this.api.toggleSubtitles(),iLU(this.IM,!W||W&&!W.displayName),k=!0);break;case 79:RE(this,"textOpacity");break;case 87:RE(this,"windowOpacity");break;case 187:case 61:RE(this,"fontSizeIncrement",!1,!0);break;case 189:case 173:RE(this,"fontSizeIncrement",!0,!0)}var v;E||G||P||(H>=48&&H<=57?v=H-48:H>=96&&H<=105&&(v=H-96));v!=null&&this.api.vK()&& !this.api.U("web_player_disable_keyboard_seek_percent")&&(this.api.startSeekCsiAction(),W=this.api.getProgressState(),this.api.seekTo(v/10*(W.seekableEnd-W.seekableStart)+W.seekableStart,void 0,void 0,void 0,81),k=!0);k&&this.C6.By()}this.G.bq=!1;this.api.publish("keyboardserviceglobalkeydown",{keyCode:H,shiftKey:E,ctrlKey:G,altKey:P,metaKey:Q,key:e,code:w,repeat:t},this.G);this.G.bq&&(k=!0,this.C6.By());return k}; g.M.step=function(H){this.api.vK();if(this.api.getPlayerStateObject().isPaused()){var E=this.api.getVideoData().W;E&&(E=E.video)&&this.api.seekBy(H/(E.fps||30),void 0,void 0,H>0?77:78)}}; g.M.If=function(H){if(!this.api.K().z$){var E;var G,P=(E=this.api.getVideoData())==null?void 0:(G=E.getPlayerResponse())==null?void 0:G.playabilityStatus;if(P){var Q;E=((Q=g.X(P.miniplayer,PKM))==null?void 0:Q.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"}else E=!1;E&&this.api.n_("onExpandMiniplayer");H?this.progressBar.O8():(H=!this.api.getPlayerStateObject().isOrWillBePlaying(),this.IM.dZ(H),H?this.api.playVideo():this.api.pauseVideo());return!0}return!1}; g.M.G$=function(){g.Od(this.D);g.Z0.prototype.G$.call(this)};g.C(fv,g.D);fv.prototype.r5=function(){var H=this.S.K(),E=H.G||this.S.U("web_player_hide_overflow_button_if_empty_menu")&&this.W6.isEmpty();H=g.L3(H)&&g.UR(this.S)&&g.F(this.S.getPlayerStateObject(),128);var G=this.S.getPlayerSize();this.visible=this.S.jA()&&!H&&G.width>=240&&!this.S.getVideoData().Xg&&!E&&!this.S.isEmbedsShortsMode();g.Bt(this.element,"ytp-overflow-button-visible",this.visible);this.BT(this.visible);this.visible&&this.S.aP();this.S.logVisibility(this.element,this.visible&&this.L_)}; fv.prototype.qL=function(H){g.D.prototype.qL.call(this,H);this.S.logVisibility(this.element,this.visible&&H)}; fv.prototype.G$=function(){g.D.prototype.G$.call(this);g.Tn(this.element,"ytp-overflow-button-visible")};g.C($c,g.nw);g.M=$c.prototype;g.M.rC=function(H){H=hD(H);g.wa(this.element,H)&&(g.wa(this.L,H)||g.wa(this.closeButton,H)||js(this))}; g.M.t7=function(){g.nw.prototype.t7.call(this);this.S.Zq(this.element)}; g.M.show=function(){this.pP&&this.S.publish("OVERFLOW_PANEL_OPENED");g.nw.prototype.show.call(this);this.element.setAttribute("aria-modal","true");ILT(this,!0)}; g.M.hide=function(){g.nw.prototype.hide.call(this);this.element.removeAttribute("aria-modal");ILT(this,!1)}; g.M.onFullscreenToggled=function(H){!H&&this.TT()&&js(this)}; g.M.isEmpty=function(){return this.actionButtons.length===0}; g.M.focus=function(){for(var H=g.R(this.actionButtons),E=H.next();!E.done;E=H.next())if(E=E.value,E.pP){E.focus();break}};g.C(RX,g.D);RX.prototype.onClick=function(H){g.k6(H,this.api)&&this.api.playVideoAt(this.index)};g.C(duU,g.nw);g.M=duU.prototype;g.M.show=function(){g.nw.prototype.show.call(this);this.L.Z(this.api,"videodatachange",this.dE);this.L.Z(this.api,"onPlaylistUpdate",this.dE);this.dE()}; g.M.hide=function(){g.nw.prototype.hide.call(this);g.hH(this.L);this.updatePlaylist(null)}; g.M.dE=function(){this.updatePlaylist(this.api.getPlaylist());this.api.K().G&&(this.HF("ytp-playlist-menu-title-name").removeAttribute("href"),this.W&&(this.Sq(this.W),this.W=null))}; g.M.Un=function(){var H=this.playlist,E=H.author,G=E?"by $AUTHOR \u2022 $CURRENT_POSITION/$PLAYLIST_LENGTH":"$CURRENT_POSITION/$PLAYLIST_LENGTH",P={CURRENT_POSITION:String(H.index+1),PLAYLIST_LENGTH:String(H.length)};E&&(P.AUTHOR=E);this.update({title:H.title,subtitle:g.ct(G,P),playlisturl:this.api.getVideoUrl(!0)});E=H.W;if(E===this.G)this.selected.element.setAttribute("aria-checked","false"),this.selected=this.playlistData[H.index];else{G=g.R(this.playlistData);for(P=G.next();!P.done;P=G.next())P.value.dispose(); G=H.length;this.playlistData=[];for(P=0;P=this.W&&!H.G&&!E.isAd()&&!this.api.isEmbedsShortsMode()}else H=!1;this.visible=H;this.BT(this.visible);g.Bt(this.element,"ytp-search-button-visible",this.visible);g.Bt(this.element,"ytp-show-search-title",!this.api.jA());this.api.logVisibility(this.element,this.visible&&this.L_)}; Qo.prototype.qL=function(H){g.D.prototype.qL.call(this,H);this.api.logVisibility(this.element,this.visible&&H)};g.C(ze,g.D); ze.prototype.trigger=function(H,E,G,P){this.show();if(this.W&&H!==this.W){var Q=1;this.G&&(Q=eAt(this));FFT(this,Q,!1);scM(this)}this.W=H;this.D=this.W===-1?this.B:this.N;H="";E?(this.W===-1&&this.S.getCurrentTime()<=E?this.T=E:this.T+=E,H=(this.W===-1?"\u2212":"+")+" "+this.T):this.T=0;this.updateValue(this.W===-1?"durationBack":"durationForward",H);if(this.L==="hidden"||this.L==="fading-out")E=0,this.L==="fading-out"&&(E=eAt(this),gYt(this)),Fy1(this,E),this.L!=="fading-out"&&Chj(this,this.D.querySelector(".ytp-seek-overlay-arrow-persistent")), this.L="fading-in";else if(this.L==="fading-in"||this.L==="lingering")E=this.D.querySelector(".ytp-seek-overlay-duration"),H=g.hE(this.S.K().experiments,"web_player_seek_overlay_duration_bump_scale")||.9,E.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("+H+")"},{offset:1,transform:"scale(1)"}],{duration:184}),gYt(this),this.L==="lingering"&&(this.C.stop(),this.C.start());G&&E3w(this, G,P)}; ze.prototype.HS=function(H,E,G,P){this.trigger(H,P)}; ze.prototype.dc=function(H,E,G){this.trigger(H,E);G&&(H=H===-1?this.N.visualElement:this.B.visualElement,G={seekData:G},(E=g.ri())&&tc(E,H,"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS",G))}; ze.prototype.NU=function(H,E,G){this.trigger(H,void 0,E,G)};g.C(TG,g.D);TG.prototype.onClick=function(){var H=this,E=this.api.K(),G=this.api.getVideoData(this.api.getPresentingPlayerType()),P=this.api.getPlaylistId();E=this.api.U("enable_share_button_url_fix")?this.api.getVideoUrl(!0,!0,!0):E.getVideoUrl(G.videoId,P,void 0,!0);if(navigator.share)try{var Q=navigator.share({title:G.title,url:E});Q instanceof Promise&&Q.catch(function(e){AKl(H,e)})}catch(e){e instanceof Error&&AKl(this,e)}else this.L.Jp(),js(this.W,this.element,!1); this.api.logClick(this.element)}; TG.prototype.r5=function(){var H=this.api.K(),E=this.api.isEmbedsShortsMode();g.Bt(this.element,"ytp-show-share-title",g.L3(H)&&!E);this.L.FM()&&E?(H=(this.api.NZ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.AE(this.element,"right",H+"px")):E&&g.AE(this.element,"right","0px");this.updateValue("icon",{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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=BT(this);g.Bt(this.element,"ytp-share-button-visible",this.visible);this.BT(this.visible);this.tooltip.aP();this.api.logVisibility(this.element,BT(this)&&this.L_)}; TG.prototype.qL=function(H){g.D.prototype.qL.call(this,H);this.api.logVisibility(this.element,this.visible&&H)}; TG.prototype.G$=function(){g.D.prototype.G$.call(this);g.Tn(this.element,"ytp-share-button-visible")};g.C(dIU,g.nw);g.M=dIU.prototype;g.M.ZN=function(H){H=hD(H);g.wa(this.D,H)||g.wa(this.closeButton,H)||js(this)}; g.M.t7=function(){g.nw.prototype.t7.call(this);this.tooltip.Zq(this.element);this.api.logVisibility(this.L,!1);for(var H=g.R(this.W),E=H.next();!E.done;E=H.next())E=E.value,this.api.hasVe(E.element)&&this.api.logVisibility(E.element,!1)}; g.M.show=function(){var H=this.pP;g.nw.prototype.show.call(this);this.r5();H||this.api.n_("onSharePanelOpened")}; g.M.y7m=function(){this.pP&&this.r5()}; g.M.r5=function(){var H=this;g.aG(this.element,"ytp-share-panel-loading");g.Tn(this.element,"ytp-share-panel-fail");var E=this.api.getVideoData(),G=this.api.getPlaylistId()&&this.G.checked;E.getSharePanelCommand&&RC(this.api.Km(),E.getSharePanelCommand,{includeListId:G}).then(function(P){H.Iu()||(g.Tn(H.element,"ytp-share-panel-loading"),V8v(H,P))}); E=this.api.getVideoUrl(!0,!0,!1,!1);this.updateValue("link",E);this.updateValue("linkText",E);this.updateValue("shareLinkWithUrl",g.ct("Share link $URL",{URL:E}));eW(this.L);this.api.logVisibility(this.L,!0)}; g.M.onFullscreenToggled=function(H){!H&&this.TT()&&js(this)}; g.M.focus=function(){this.L.focus()}; g.M.G$=function(){g.nw.prototype.G$.call(this);mlT(this)};g.C(X1T,BD);g.M=X1T.prototype;g.M.G$=function(){GX(this);BD.prototype.G$.call(this)}; g.M.Mg=function(H){H.target!==this.dismissButton.element&&(this.ul(!1),this.S.n_("innertubeCommand",this.onClickCommand))}; g.M.tA=function(){this.BF=!0;this.ul(!0);this.aJ()}; g.M.H6_=function(H){this.C=H;this.aJ()}; g.M.onVideoDataChange=function(H,E){if(H=!!E.videoId&&this.videoId!==E.videoId)this.videoId=E.videoId,this.BF=!1,this.Jm=!0,this.B=this.WF=!1,GX(this),qeT(this,!1),this.W=this.L=!1,wy(this),ymT(this);if(H||!E.videoId)this.p_=this.D=!1;var G,P;if(E==null?0:(G=E.getPlayerResponse())==null?0:(P=G.videoDetails)==null?0:P.isLiveContent)this.JC(!1);else{var Q,e,w;E=g.X((Q=E.getWatchNextResponse())==null?void 0:(e=Q.playerOverlays)==null?void 0:(w=e.playerOverlayRenderer)==null?void 0:w.productsInVideoOverlayRenderer, TlJ);this.C=this.enabled=!1;if(E){if(Q=E==null?void 0:E.featuredProductsEntityKey){e=g.b8.getState().entities;var t;if((t=q4(e,"featuredProductsEntity",Q))==null?0:t.productsData){this.JC(!1);return}}if(!E.text||!E.onClickCommand||!E.timing){this.JC(!1);return}this.enabled=!0;if(!this.D){var k;t=(k=E.badgeInteractionLogging)==null?void 0:k.trackingParams;(this.D=!!t)&&this.S.setTrackingParams(this.badge.element,t||null)}if(!this.p_){var W;if(this.p_=!((W=E.dismissButton)==null||!W.trackingParams)){var I; this.S.setTrackingParams(this.dismissButton.element,((I=E.dismissButton)==null?void 0:I.trackingParams)||null)}}E.isContentForward&&(k=E.productsData,qeT(this,!0),ymT(this),k=s1l(this,k),W=[],k.length>0&&W.push(k[0]),k.length>1&&(I=new g.D({J:"div",Y:"ytp-suggested-action-more-products-icon"}),g.d(this,I),W.push(I),W.push.apply(W,g.EC(k.slice(1)))),this.T=new g.D({J:"div",V:W,Y:"ytp-suggested-action-content-forward-container"}),g.d(this,this.T),this.O7.element.append(this.T.element));this.text=g.b_(E.text); var A;if(k=(A=E.dismissButton)==null?void 0:A.a11yLabel)this.Yp=g.b_(k);this.onClickCommand=E.onClickCommand;this.timing=E.timing;this.MV()}yp7(this);cK(this);this.aJ()}}; g.M.Rz=function(){return!this.C&&this.enabled&&!this.BF&&!this.S.jA()&&!this.G6&&(this.B||this.Jm)}; g.M.lw=function(H){BD.prototype.lw.call(this,H);if(this.L||this.W)this.timing&&x9(this.timing.preview)&&(this.L=!1,wy(this),this.W=!1,wy(this),this.S.dV("shopping_overlay_preview_collapsed"),this.S.dV("shopping_overlay_preview_expanded"),H=FS(this.timing.preview.startSec,this.timing.preview.endSec,"shopping_overlay_expanded"),x9(this.timing.expanded)&&this.timing.preview.endSec===this.timing.expanded.startSec&&(this.S.dV("shopping_overlay_expanded"),H.end=this.timing.expanded.endSec*1E3),this.S.MV([H])), this.WF=!0,cK(this);wy(this)}; g.M.JC=function(H){(this.B=H)?(tA(this),cK(this,!1)):(GX(this),this.z$.start());this.aJ()}; g.M.MV=function(H){var E=this.timing;H=(H===void 0?0:H)+this.S.getCurrentTime();var G=[],P=E.visible,Q=E.preview;E=E.expanded;x9(P)&&(txM(P,H),G.push(FS(P.startSec,P.endSec,"shopping_overlay_visible")));x9(Q)&&(txM(Q,H),P=Q.startSec+1,G.push(FS(Q.startSec,P,"shopping_overlay_preview_collapsed")),G.push(FS(P,Q.endSec,"shopping_overlay_preview_expanded")));x9(E)&&(txM(E,H),G.push(FS(E.startSec,E.endSec,"shopping_overlay_expanded")));this.S.MV(G)}; g.M.aJ=function(){BD.prototype.aJ.call(this);this.S.getRootNode()&&g.Bt(this.S.getRootNode(),"ytp-shopping-pill-shown",this.Rz())};g.C(hOw,g.D); hOw.prototype.r5=function(){var H=this.api.K();this.BT(g.L3(H)&&this.api.isEmbedsShortsMode());this.subscribeButton&&this.api.logVisibility(this.subscribeButton.element,this.pP);var E=this.api.getVideoData(),G=!1;this.api.getPresentingPlayerType()===2?G=!!E.videoId&&!!E.isListed&&!!E.author&&!!E.z$&&!!E.profilePicture:g.L3(H)&&(G=!!E.videoId&&!!E.z$&&!!E.profilePicture&&!E.Xg&&!H.G&&!(H.B&&this.api.getPlayerSize().width<200));var P=E.profilePicture;H=g.L3(H)?E.expandedTitle:E.author;P=P===void 0? "":P;H=H===void 0?"":H;G?(this.W!==P&&(this.L.style.backgroundImage="url("+P+")",this.W=P),this.updateValue("channelLogoLabel",g.ct("Photo image of $CHANNEL_NAME",{CHANNEL_NAME:H})),g.aG(this.api.getRootNode(),"ytp-title-enable-channel-logo")):g.Tn(this.api.getRootNode(),"ytp-title-enable-channel-logo");this.api.logVisibility(this.L,G&&this.L_);this.api.logVisibility(this.channelName,G&&this.L_);this.subscribeButton&&(this.subscribeButton.channelId=E.t_);this.updateValue("expandedTitle",E.expandedTitle)};g.C(UZ,g.nw);UZ.prototype.show=function(){g.nw.prototype.show.call(this);this.L.start()}; UZ.prototype.hide=function(){g.nw.prototype.hide.call(this);this.L.stop()}; UZ.prototype.QW=function(H,E){H==="dataloaded"&&((this.yz=E.yz,this.Nl=E.Nl,isNaN(this.yz)||isNaN(this.Nl))?this.W&&(this.S.dV("intro"),this.S.removeEventListener(g.Ya("intro"),this.B),this.S.removeEventListener(g.XT("intro"),this.D),this.S.removeEventListener("onShowControls",this.G),this.hide(),this.W=!1):(this.S.addEventListener(g.Ya("intro"),this.B),this.S.addEventListener(g.XT("intro"),this.D),this.S.addEventListener("onShowControls",this.G),H=new g.cP(this.yz,this.Nl,{priority:9,namespace:"intro"}), this.S.MV([H]),this.W=!0))};g.C(WZ,g.D);WZ.prototype.onClick=function(){this.S.fz()}; WZ.prototype.r5=function(){var H=!0;g.L3(this.S.K())&&(H=H&&this.S.NZ().getPlayerSize().width>=480);this.BT(H);H=this.updateValue;var E=this.S.U("delhi_modern_web_player_icons"),G=E?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!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"}}]};E=E?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!0,Y:"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"}}]};H.call(this,"icon",this.S.w6()?G:E)};g.C(uP,g.D);uP.prototype.G$=function(){this.L=null;g.D.prototype.G$.call(this)};g.C(x2,g.D);x2.prototype.onClick=function(){this.S.n_("innertubeCommand",this.W)}; x2.prototype.N=function(){if(this.S.U("delhi_modern_web_player")){var H=this.S.getPlayerSize();H.width&&(this.element.style.maxWidth=H.width*.25+"px")}}; x2.prototype.WF=function(H){H!==this.C&&(this.update({chapterTitle:H,ariaLabel:H}),this.C=H);H?this.show():this.hide()}; x2.prototype.p_=function(){this.L.disabled=this.W==null;g.Bt(this.L,"ytp-chapter-container-disabled",this.L.disabled);this.Ix()};g.C(zV,x2);zV.prototype.onClickCommand=function(H){g.X(H,yp)&&this.Ix()}; zV.prototype.updateVideoData=function(H,E){var G,P,Q;H=g.X((G=E.getWatchNextResponse())==null?void 0:(P=G.playerOverlays)==null?void 0:(Q=P.playerOverlayRenderer)==null?void 0:Q.decoratedPlayerBarRenderer,BX);G=g.X(H==null?void 0:H.playerBarActionButton,g.rI);if(this.S.U("web_player_updated_entrypoint")){this.B=CT(G==null?void 0:G.text);var e;P=(e=G==null?void 0:G.tooltip)!=null?e:"View chapter";this.T.setAttribute("title",P)}this.W=G==null?void 0:G.command;x2.prototype.p_.call(this)}; zV.prototype.Ix=function(){var H=this.B,E=this.D.L,G,P=((G=this.S.getLoopRange())==null?void 0:G.type)==="clips";if(E.length>1&&!P){H=this.S.getProgressState().current*1E3;G=uu(E,H);H=E[G].title||"Chapters";if(G!==this.currentIndex||this.G)this.S.n_("innertubeCommand",E[G].onActiveCommand),this.currentIndex=G;this.G=!1}else this.G=!0;x2.prototype.WF.call(this,H)};g.C(OE,g.av);OE.prototype.W=function(){var H;(H=this.element.parentElement)==null||H.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")}; OE.prototype.isExpanded=function(){return this.L};g.C(Jr,g.D);Jr.prototype.G=function(H){g.F(H.state,32)?lt7(this,this.api.XM()):this.pP&&(g.F(H.state,16)||g.F(H.state,1))||this.fade.hide()}; Jr.prototype.onProgress=function(){var H=this.api.getPlayerStateObject();(g.F(H,32)||g.F(H,16))&&UJT(this)}; Jr.prototype.D=function(){this.frameIndex=NaN;UJT(this)}; Jr.prototype.hide=function(){this.L&<7(this,null);g.D.prototype.hide.call(this)};g.C(mQ,g.D);g.M=mQ.prototype;g.M.onClick=function(){var H=this;if(this.S.K().au||this.S.K().B){this.S.logClick(this.element);try{this.S.toggleFullscreen().catch(function(E){H.MH(E)})}catch(E){this.MH(E)}}else js(this.message,this.element,!0)}; g.M.MH=function(H){String(H).includes("fullscreen error")?g.p5(H):g.h3(H);this.YO()}; g.M.YO=function(){this.disable();this.message.Yt(this.element,!0)}; g.M.C4=function(){Zg()===this.S.getRootNode()?this.G.start():(this.G.stop(),this.message&&this.message.hide())}; g.M.u5=function(){if(window.screen&&window.outerWidth&&window.outerHeight){var H=window.screen.width*.9,E=window.screen.height*.9,G=Math.max(window.outerWidth,window.innerWidth),P=Math.max(window.outerHeight,window.innerHeight);if(G>P!==H>E){var Q=G;G=P;P=Q}H>G&&E>P&&this.YO()}}; g.M.disable=function(){var H=this;if(!this.message){var E=(X6(["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.nw(this.S,{J:"div",QN:["ytp-popup","ytp-generic-popup"],j:{role:"alert",tabindex:"0"},V:[E[0],{J:"a",j:{href:"https://support.google.com/youtube/answer/6276924", target:this.S.K().L_},iJ:E[2]},E[4]]},100,!0);this.message.hide();g.d(this,this.message);this.message.subscribe("show",function(G){H.W.Fv(H.message,G)}); g.as(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.M.r5=function(){var H=FMn(this.S),E=this.S.K().B&&this.S.getPlayerSize().width<250;this.BT(H&&!E);this.S.logVisibility(this.element,this.pP)}; g.M.PA=function(H){if(H){var E=g.dv(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(G){g.p5(G)})}else E=g.dv(this.S,"Full screen","f"),this.update({"data-title-no-tooltip":"Full screen"}); H=aIt(this,H);E=this.message?null:E;this.S.K().U("player_tooltip_data_title_killswitch")?this.update({title:E,icon:H}):this.update({"tooltip-title":E,"aria-label":E,icon:H});this.W.Zi().aP()}; g.M.G$=function(){this.message||((0,this.L)(),this.L=null);g.D.prototype.G$.call(this)}; g.M.qL=function(H){g.D.prototype.qL.call(this,H)};g.C(OR,g.D);OR.prototype.onClick=function(){this.S.logClick(this.element);this.S.seekBy(this.L,!0);var H=this.L>0?1:-1,E=Math.abs(this.L),G=this.S.d7().uM;G&&G.dc(H,E);this.W.isActive()?this.G=!0:(H=["ytp-jump-spin"],this.L<0&&H.push("backwards"),this.element.classList.add.apply(this.element.classList,g.EC(H)),g.J3(this.W))};g.C(nZ,x2);nZ.prototype.onClickCommand=function(H){g.X(H,xTu)&&this.Ix()}; nZ.prototype.updateVideoData=function(){var H,E;this.W=(H=w_q(this))==null?void 0:(E=H.onTap)==null?void 0:E.innertubeCommand;x2.prototype.p_.call(this)}; nZ.prototype.Ix=function(){var H="",E=this.D.B,G,P=(G=w_q(this))==null?void 0:G.headerTitle;G=P?g.b_(P):"";var Q;P=((Q=this.S.getLoopRange())==null?void 0:Q.type)==="clips";E.length>1&&!P&&(H=this.S.getProgressState().current*1E3,Q=Dgs(E,H),H=Q!=null?E[Q].title:G,Q!=null&&Q!==this.currentIndex&&(this.S.n_("innertubeCommand",E[Q].onActiveCommand),this.currentIndex=Q));x2.prototype.WF.call(this,H)};g.C(NY,g.D);NY.prototype.onClick=function(){this.S.n_("onCollapseMiniplayer");this.S.logClick(this.element)}; NY.prototype.r5=function(){this.visible=!this.S.isFullscreen();this.BT(this.visible);this.S.logVisibility(this.element,this.visible&&this.L_)}; NY.prototype.qL=function(H){g.D.prototype.qL.call(this,H);this.S.logVisibility(this.element,this.visible&&H)};g.C(gM,g.D);gM.prototype.init=function(){this.update({minvalue:this.G,maxvalue:this.T,stepvalue:this.B,slidervalue:this.L,ariaValueNow:this.L,ariaMinValue:this.G,ariaMaxValue:this.T});mdn(this,this.L)}; gM.prototype.D=function(){j2(this,Number(this.W.value));this.W.focus()}; gM.prototype.C=function(H){if(!H.defaultPrevented){switch(H.code){case "ArrowDown":H=-this.B;break;case "ArrowUp":H=this.B;break;default:return}j2(this,Math.min(this.T,Math.max(Number((this.L+H).toFixed(2)),this.G)))}};g.C(qY,gM);qY.prototype.onVolumeChange=function(H){if(this.N)this.N=!1;else{var E=H.volume;E===0||H.muted?j2(this,0):j2(this,E)}}; qY.prototype.D=function(){gM.prototype.D.call(this);this.p_(this.L)}; qY.prototype.WF=function(H){var E=-H.deltaY;E=H.deltaMode===WheelEvent.DOM_DELTA_LINE||H.deltaMode===WheelEvent.DOM_DELTA_PAGE?g.Mo(this.L+E,0,100):g.Mo(this.L+g.Mo(E/10,-10,10),0,100);E===0?j2(this,0):j2(this,E);this.p_(E);H.preventDefault();H.stopPropagation()}; qY.prototype.Jm=function(H,E){this.N=!0;H===0||E?this.S.mute():(this.S.isMuted()&&this.S.unMute(),this.S.setVolume(H))};g.C(X3v,g.D);g.C(dN,g.D);g.M=dN.prototype;g.M.Vc=function(){if(!this.S.Su()){this.updateValue("dataTooltipOffsetY",-120);var H;(H=this.L)!=null&&Ry(H,!0);var E;(E=this.L)!=null&&E.L.stop()}}; g.M.Cy=function(){var H;(H=this.L)!=null&&H.L.start()}; g.M.X5=function(H){this.visible=H.width>=300||this.T$;this.BT(this.visible);this.S.logVisibility(this.element,this.visible&&this.L_)}; g.M.VO=function(){this.S.K().O7?this.S.isMuted()?this.S.unMute():this.S.mute():js(this.message,this.element,!0);this.S.logClick(this.element)}; g.M.dWw=function(H){if(this.S.K().O7&&this.L)if(H.target===this.G){var E;if(!this.S.Su()||((E=this.L)==null?0:E.isVisible))this.VO();else{var G;(G=this.L)!=null&&Ry(G,!0)}}else{var P;(P=this.L)!=null&&Ry(P,!0)}else this.VO()}; g.M.onVolumeChange=function(H){this.setVolume(H.volume,H.muted)}; g.M.setVolume=function(H,E){var G=this,P=E?0:H/100;H=P===0?1:H>50?1:0;if(this.N!==H){var Q=this.B;isNaN(Q)?TKn(this,H):jKj(this.O7,function(w){TKn(G,Q+(G.N-Q)*w)},250); this.N=H}P=P===0?1:0;if(this.C!==P){var e=this.Jm;isNaN(e)?Q$Q(this,P):jKj(this.E7,function(w){Q$Q(G,e+(G.C-e)*w)},250); this.C=P}Fp1(this,E)}; g.M.qL=function(H){g.D.prototype.qL.call(this,H);this.S.logVisibility(this.element,this.visible&&H)}; var xd1=["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"],zOn=["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.C(g.Hz,g.D);g.M=g.Hz.prototype;g.M.onStateChange=function(H){this.Ca(H.state)}; g.M.Ca=function(H){var E=g.eP(this.S.getVideoData()),G=!1;H.isOrWillBePlaying()?H=E?4:2:g.F(H,2)?(H=3,G=E):H=1;this.element.disabled=G;if(this.L!==H){E=null;switch(H){case 2:E=g.dv(this.S,"Pause","k");this.update({"data-title-no-tooltip":"Pause"});break;case 3:E="Replay";this.update({"data-title-no-tooltip":"Replay"});break;case 1:E=g.dv(this.S,"Play","k");this.update({"data-title-no-tooltip":"Play"});break;case 4:E="Stop live playback",this.update({"data-title-no-tooltip":"Stop live playback"})}H=== 3?this.S.K().U("player_tooltip_data_title_killswitch")?this.update({title:E,icon:LaU(this,H)}):this.update({"tooltip-title":E,icon:LaU(this,H)}):(this.S.U("player_tooltip_data_title_killswitch")?this.update({title:E}):this.update({"tooltip-title":E}),(E=LaU(this,H))&&this.L&&this.L!==3?c5t(this.transition,this.element,E):this.updateValue("icon",E));this.tooltip.aP();this.L=H}}; g.M.onVideoDataChange=function(){g.Bt(this.element,"ytp-play-button-playlist",g.UR(this.S))}; g.M.If=function(H){this.S.logClick(this.element);if(this.S.getPlayerStateObject().isOrWillBePlaying())this.S.pauseVideo();else{if(this.S.isMinimized()&&this.S.getPlayerStateObject().isCued()){var E={},G;if((G=this.S.getVideoData())==null?0:G.C)E.cttAuthInfo={token:this.S.getVideoData().C,videoId:this.S.getVideoData().videoId};B2("direct_playback",E);this.S.Nf().timerName="direct_playback"}this.S.playVideo()}this.S.isMinimized()&&(H==null?void 0:H.type)==="click"&&this.element.blur()}; g.M.qL=function(H){g.D.prototype.qL.call(this,H)};g.C(g.MY,g.D);g.M=g.MY.prototype;g.M.onVideoDataChange=function(){kPl(this);this.D&&(this.Sq(this.D),this.D=null);this.videoData=this.S.getVideoData(1);if(this.playlist=this.S.getPlaylist())this.playlist.subscribe("shuffle",this.onVideoDataChange,this),this.D=this.Z(this.S,"progresssync",this.zY);this.G=kOT(this);HfU(this);this.fF(this.S.NZ().getPlayerSize())}; g.M.fF=function(H){H=H===void 0?this.S.NZ().getPlayerSize():H;var E,G=((E=this.S.getLoopRange())==null?void 0:E.type)==="clips";E=g.UR(this.S)||this.L&&g.F8(this.S)&&!this.S.U("web_hide_next_button")||pKl(this);var P=!this.L&&H.width<400;H=this.S.U("delhi_modern_web_player_horizontal_volume_controls")&&H.width<640;G=E&&!G&&!P&&!H;this.BT(G);this.S.logVisibility(this.element,G)}; g.M.onClick=function(H){this.S.logClick(this.element);var E=!0;this.C?E=g.k6(H,this.S):H.preventDefault();E&&(this.L&&this.S.getPresentingPlayerType()===5?this.S.publish("ytoprerollinternstitialnext"):this.L?(G2(this.S.Nf()),this.S.publish("playlistnextbuttonclicked",this.element),this.S.nextVideo(!0)):this.G?this.S.seekTo(0):(G2(this.S.Nf()),this.S.publish("playlistprevbuttonclicked",this.element),this.S.previousVideo(!0)))}; g.M.zY=function(){var H=kOT(this);H!==this.G&&(this.G=H,HfU(this))}; g.M.G$=function(){this.W&&(this.W(),this.W=null);kPl(this);g.D.prototype.G$.call(this)};g.C(BI,g.D);g.M=BI.prototype;g.M.C2=function(H){this.j5(H.pageX);this.vj(H.pageX+H.deltaX);aL(this)}; g.M.j5=function(H){this.p_=H-this.T$}; g.M.vj=function(H){H-=this.T$;!isNaN(this.p_)&&this.thumbnails.length>0&&(this.N=H-this.p_,this.thumbnails.length>0&&this.N!==0&&(this.G=this.B+this.N,H=C0U(this,this.G),this.G<=this.L/2&&this.G>=diu(this)?(this.api.seekTo(H,!1,void 0,void 0,25),g.AE(this.Jm,"transform","translateX("+(this.G-this.L/2)+"px)"),rQ(this,H)):this.G=this.B))}; g.M.ol=function(){this.WF&&(this.WF.g4=!0);var H=(0,g.ON)()-this.eR<300;if(Math.abs(this.N)<5&&!H){this.eR=(0,g.ON)();H=this.p_+this.N;var E=this.L/2-H;this.j5(H);this.vj(H+E);aL(this);this.api.logClick(this.T)}aL(this)}; g.M.eZ=function(){Ok(this,this.api.getCurrentTime())}; g.M.play=function(H){this.api.seekTo(C0U(this,this.G),void 0,void 0,void 0,26);this.api.playVideo();H&&this.api.logClick(this.playButton)}; g.M.onExit=function(H){this.api.seekTo(this.z$,void 0,void 0,void 0,63);this.api.playVideo();H&&this.api.logClick(this.dismissButton)}; g.M.h7=function(H,E){this.T$=H;this.L=E;Ok(this,this.api.getCurrentTime())}; g.M.enable=function(){this.isEnabled||(this.isEnabled=!0,this.z$=this.api.getCurrentTime(),rQ(this,this.z$),g.Bt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled),this.O7=this.Z(this.element,"wheel",this.C2),this.logVisibility(this.isEnabled))}; g.M.disable=function(){this.isEnabled=!1;this.hide();g.Bt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.isEnabled);this.O7&&this.Sq(this.O7);this.logVisibility(this.isEnabled)}; g.M.reset=function(){this.disable();this.D=[];this.PF=!1}; g.M.logVisibility=function(H){this.api.logVisibility(this.element,H);this.api.logVisibility(this.T,H);this.api.logVisibility(this.dismissButton,H);this.api.logVisibility(this.playButton,H)}; g.M.G$=function(){for(;this.W.length;){var H=void 0;(H=this.W.pop())==null||H.dispose()}g.D.prototype.G$.call(this)}; g.C(tKq,g.D);g.C(KX,g.D);g.C(I7Q,g.D);g.C(i_,g.D);i_.prototype.E2=function(H){return H==="PLAY_PROGRESS"?this.B:H==="LOAD_PROGRESS"?this.C:H==="LIVE_BUFFER"?this.T:this.G};Ius.prototype.update=function(H,E,G,P){G=G===void 0?0:G;this.width=E;this.D=G;this.L=E-G-(P===void 0?0:P);this.position=g.Mo(H,G,G+this.L);this.G=this.position-G;this.W=this.G/this.L};g.C(WW,g.D);g.C(g.tK,g.av);g.M=g.tK.prototype; g.M.TF=function(){var H=!1,E=this.api.getVideoData();if(!E)return H;this.api.dV("timedMarkerCueRange");k5(this);for(var G=g.R(E.O7),P=G.next();!P.done;P=G.next()){P=P.value;var Q=void 0,e=(Q=this.BF[P])==null?void 0:Q.markerType,w=void 0;Q=(w=this.BF[P])==null?void 0:w.markers;if(!Q)break;if(e==="MARKER_TYPE_TIMESTAMPS"){H=g.R(Q);for(e=H.next();!e.done;e=H.next()){w=e.value;e=new WW;var t=void 0;e.title=((t=w.title)==null?void 0:t.simpleText)||"";e.timeRangeStartMillis=Number(w.startMillis);e.L=Number(w.durationMillis); var k=t=void 0;e.onActiveCommand=(k=(t=w.onActive)==null?void 0:t.innertubeCommand)!=null?k:void 0;E7s(this,e)}mJ(this,this.B);H=this.B;e=this.xH;w=[];t=null;for(k=0;kW&&(t.end=W);W=z2q(W,W+A);w.push(W);t=W;e[W.id]=H[k].onActiveCommand}}this.api.MV(w);a:{H=g.R(Q);for(Q=H.next();!Q.done;Q=H.next())if(Q.value.sourceType==="SOURCE_TYPE_SMART_SKIP"){H=!1;break a}H=!0}H&&(this.v6= this.BF[P]);H=!0}else if(e==="MARKER_TYPE_HEATMAP"){P=this.BF[P];I=W=e=k=t=w=void 0;if(P&&P.markers){Q=(e=(I=P.markersMetadata)==null?void 0:(W=I.heatmapMetadata)==null?void 0:W.minHeightDp)!=null?e:0;e=(w=(k=P.markersMetadata)==null?void 0:(t=k.heatmapMetadata)==null?void 0:t.maxHeightDp)!=null?w:60;w=this.L.length;t=null;for(k=0;k=I&&v<=A&&W.push(u)}e>0&&(this.WF.style.height=e+"px");I=this.D[k];A=W;u=Q;var n=e,O=k===0;O=O===void 0?!1:O;FIj(I,n);m=A;v=I.W;O=O===void 0?!1:O;var q=1E3/m.length,N=[];N.push({x:0,y:100});for(var r=0;r0&&(t=W[W.length-1])}g.q_(this)}e=void 0;Q=[];if(P=(e=P.markersDecoration)==null?void 0:e.timedMarkerDecorations)for(P=g.R(P),e=P.next();!e.done;e=P.next())e=e.value,k=t=w=void 0,Q.push({visibleTimeRangeStartMillis:(w=e.visibleTimeRangeStartMillis)!=null?w:-1,visibleTimeRangeEndMillis:(t= e.visibleTimeRangeEndMillis)!=null?t:-1,decorationTimeMillis:(k=e.decorationTimeMillis)!=null?k:NaN,label:e.label?g.b_(e.label):""});P=Q;this.heatMarkersDecorations=P}}E.y_=this.B;g.Bt(this.element,"ytp-timed-markers-enabled",H);return H}; g.M.h7=function(){g.q_(this);Ro(this);mJ(this,this.B);if(this.W){var H=g.ws(this.element).x||0;this.W.h7(H,this.C)}}; g.M.YMJ=function(){var H=this.api.getVideoData();H&&AnM(this,H)}; g.M.onClickCommand=function(H){if(H=g.X(H,yp)){var E=H.key;H.isVisible&&E&&Id(this,E)}}; g.M.DW$=function(H){this.api.n_("innertubeCommand",this.xH[H.id])}; g.M.Ix=function(){Ro(this);var H=this.api.getCurrentTime();(Hthis.clipEnd)&&this.dS()}; g.M.I3=function(H){if(!H.defaultPrevented){var E=!1;switch(H.keyCode){case 36:this.api.seekTo(0,void 0,void 0,void 0,79);E=!0;break;case 35:this.api.seekTo(Infinity,void 0,void 0,void 0,80);E=!0;break;case 34:this.api.seekBy(-60,void 0,void 0,76);E=!0;break;case 33:this.api.seekBy(60,void 0,void 0,75);E=!0;break;case 38:this.api.U("enable_key_press_seek_logging")&&kz(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);E=!0;break;case 40:this.api.U("enable_key_press_seek_logging")&&kz(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),E=!0}E&&H.preventDefault()}}; g.M.QW=function(H,E){this.updateVideoData(E,H==="newdata")}; g.M.CJm=function(){this.QW("newdata",this.api.getVideoData())}; g.M.updateVideoData=function(H,E){E=E===void 0?!1:E;var G=!!H&&H.zU();G&&(Iy(H)||ul(this)?this.bx=!1:this.bx=H.allowLiveDvr,g.Bt(this.api.getRootNode(),"ytp-enable-live-buffer",!(H==null||!Iy(H))),AnM(this,H));Hu(this,this.api.vK());if(E){if(G){E=H.clipEnd;this.clipStart=H.clipStart;this.clipEnd=E;Oc(this);for(KF(this,this.p_,this.G6);this.D.length>0;)this.D.pop().dispose();this.heatMarkersDecorations=[];this.U2={};var P;(P=this.W)==null||P.reset();LB(this);g.Bt(this.api.getRootNode(),"ytp-fine-scrubbing-exp", $l(this))}else this.dS();this.qf()}if(H){var Q;P=((Q=this.PT)==null?void 0:Q.type)==="clips";if(Q=!H.isLivePlayback){Q=this.api.getVideoData();E=g.Yd(Q);G=swT(Q);var e;Q=E!=null||G!=null&&G.length>0||((e=Q.AD)==null?void 0:e.length)>0}if(Q&&!P){e=this.api.getVideoData();P=g.Yd(e);Q=!1;if(P==null?0:P.markersMap){Q=this.api.getVideoData();var w;Q.j2=((w=P.visibleOnLoad)==null?void 0:w.key)||Q.j2;w=g.R(P.markersMap);for(P=w.next();!P.done;P=w.next())P=P.value,P.key&&P.value&&(this.U2[P.key]=P.value, P.value.onChapterRepeat&&(Q.Zs=P.value.onChapterRepeat));Q.j2!=null&&Id(this,Q.j2);Q=!0}var t;if(((t=e.AD)==null?void 0:t.length)>0){t=g.b8.getState().entities;w=g.R(e.AD);for(P=w.next();!P.done;P=w.next()){P=P.value;G=void 0;E=(G=q4(t,"macroMarkersListEntity",P))==null?void 0:G.markersList;var k=G=void 0;if(((G=E)==null?void 0:G.markerType)==="MARKER_TYPE_TIMESTAMPS"||((k=E)==null?void 0:k.markerType)==="MARKER_TYPE_HEATMAP")this.BF[P]=E}Q=this.TF()||Q}!Q&&(t=swT(e))&&(FZj(this,t),e.ox=this.L,UDQ(this)); auu(this,null);H.OA&&this.D.length===0&&(H=H.OA,t=H.key,H.isVisible&&t&&Id(this,t))}else AYU(this),k5(this)}Ro(this)}; g.M.cm$=function(H){this.N&&!g.F(H.state,32)&&this.api.getPresentingPlayerType()!==3&&this.N.cancel();var E;((E=this.W)==null?0:E.isEnabled)&&g.F(H.state,8)&&this.api.pauseVideo();H=this.api.getPresentingPlayerType()===2||!this.api.vK()||this.api.getPlayerState()===-1&&this.api.getCurrentTime()===0;g.Bt(this.PL,"ytp-hide-scrubber-button",H)}; g.M.sL=function(H){var E=!!this.PT!==!!H,G=this.PT;this.PT=H;auu(this,G);(H==null?void 0:H.type)!=="clips"&&H||(H?(this.updateValue("clipstarticon",LAt()),this.updateValue("clipendicon",LAt()),this.updateValue("clipstarttitle",null),this.updateValue("clipendtitle",null)):(this.updateValue("clipstarticon",WpU()),this.updateValue("clipendicon",OAM()),this.updateValue("clipstarttitle","Watch full video"),this.updateValue("clipendtitle","Watch full video")),E&&(this.updateVideoData(this.api.getVideoData(), !0),g.q_(this)),Oc(this));KF(this,this.p_,this.G6)}; g.M.lOw=function(){this.api.publish("progressBarHoverStart")}; g.M.PGJ=function(H,E,G){var P=g.ws(this.element),Q=IW(this).L,e=G?G.getAttribute("data-tooltip"):void 0,w=G?G.getAttribute("data-position"):void 0,t=G?G.getAttribute("data-offset-y"):void 0;t=t?Number(t):0;w&&(H=ql(this.G,Number(G.getAttribute("data-position")),0)*Q+g.ws(this.progressBar).x);this.FI.x=H-P.x;this.FI.y=E-P.y;H=IW(this);G=DP(this,H);E=0;var k;if((k=this.api.getVideoData())==null?0:Iy(k))(k=this.api.getProgressState().seekableEnd)&&G>k&&(G=k,H.position=ql(this.G,k)*IW(this).L),E=this.G.W; ul(this)&&(E=this.G.W);k=e||g.Cc(this.bx?G-this.G.L:G-E);E=H.position+this.zc;G-=this.api.YV();var W;if((W=this.W)==null||!W.isEnabled)if(this.api.XM()){if(this.L.length>1){W=pe(this,this.FI.x,!0);if(!this.PT)for(P=0;P1)for(P=0;P0)for(W=this.FI.x,P=g.R(this.B),Q=P.next();!Q.done;Q=P.next())Q=Q.value,w=Wz(this,Q.timeRangeStartMillis/ (this.G.L*1E3),IW(this)),g.Bt(Q.element,"ytp-timed-marker-hover",w<=W&&w+6>=W);P=this.tooltip.scale;W=this.api.U("delhi_modern_web_player")?67:45;t=(isNaN(t)?0:t)-W*P;this.api.U("web_key_moments_markers")?this.v6?(W=Dgs(this.B,G*1E3),W=W!=null?this.B[W].title:""):(W=uu(this.L,G*1E3),W=this.L[W].title):(W=uu(this.L,G*1E3),W=this.L[W].title);W||(t+=16*P);this.tooltip.scale===.6&&(g.sn(this.api.K())?(t=this.api.NZ().getPlayerSize().height-225,P=this.api.U("delhi_modern_web_player")?70:110,t=W?t+P:t+ P+16):t=W?110:126);P=uu(this.L,G*1E3);this.O7=YIj(this,G,P)?P:YIj(this,G,P+1)?P+1:-1;g.Bt(this.api.getRootNode(),"ytp-progress-bar-snap",this.O7!==-1&&this.L.length>1);P=!1;Q=g.R(this.heatMarkersDecorations);for(w=Q.next();!w.done;w=Q.next()){w=w.value;var I=G*1E3;I>=w.visibleTimeRangeStartMillis&&I<=w.visibleTimeRangeEndMillis&&(W=w.label,k=g.Cc(w.decorationTimeMillis/1E3),this.api.U("web_heat_marker_use_current_time")&&(k=g.Cc(DP(this,H))),P=!0)}this.n6!==P&&(this.n6=P,this.api.logVisibility(this.lG, this.n6));g.Bt(this.api.getRootNode(),"ytp-progress-bar-decoration",P);P=160*this.tooltip.scale*2;Q=W.length*(this.T?8.55:5.7);Q=Q<=P?Q:P;w=Q<160*this.tooltip.scale;P=3;!w&&Q/2>H.position&&(P=1);!w&&Q/2>this.C-H.position&&(P=2);this.api.K().B&&(t-=10);this.D.length&&this.D[0].zU&&(t-=14*(this.T?2:1),this.eR||(this.eR=!0,this.api.logVisibility(this.WF,this.eR)));var A;if($l(this)&&(((A=this.W)==null?0:A.isEnabled)||this.hm>0)){var m;t-=((m=this.W)==null?0:m.isEnabled)?(this.T?135:90)-this.Jm:this.hm}A= void 0;$l(this)&&!this.api.U("web_player_hide_fine_scrubbing_edu")&&(A="Pull up for precise seeking",this.z$||(this.z$=!0,this.api.logVisibility(this.AT,this.z$)));this.tooltip.X9(E,G,k,!!e,t,W,P,A)}else this.tooltip.X9(E,G,k,!!e,t);g.aG(this.api.getRootNode(),"ytp-progress-bar-hover");iXv(this)}; g.M.b6F=function(){this.qf();g.Tn(this.api.getRootNode(),"ytp-progress-bar-hover");this.eR&&(this.eR=!1,this.api.logVisibility(this.WF,this.eR));this.z$&&(this.z$=!1,this.api.logVisibility(this.AT,this.z$));this.api.U("enable_smart_skip_player_controls_shown_on_web_increased_triggering_sensitivity")&&this.api.publish("progressBarHoverEnd")}; g.M.um_=function(H,E){var G=g.ws(this.element);this.AG=H-G.x;$l(this)&&this.W&&(this.W.PF?Ok(this.W,this.api.getCurrentTime()):kV1(this.W),this.W.show(),g.Bt(this.api.getRootNode(),"ytp-fine-scrubbing-enable",this.W.isEnabled));this.g6&&(this.g6.dispose(),this.g6=null);this.vt=E;this.xW=this.api.getCurrentTime();this.L.length>1&&this.O7!==-1?this.api.seekTo(this.L[this.O7].startTime/1E3,!1,void 0,void 0,7):this.api.seekTo(DP(this,IW(this)),!1,void 0,void 0,7);g.aG(this.element,"ytp-drag");(this.Eu= this.api.getPlayerStateObject().isOrWillBePlaying())&&this.api.pauseVideo()}; g.M.m4F=function(){if($l(this)&&this.W){var H=(this.T?135:90)-this.Jm;this.hm>=H*.5?(this.W.enable(),Ok(this.W,this.api.getCurrentTime()),l$u(this,H)):LB(this)}if(g.F(this.api.getPlayerStateObject(),32)||this.api.getPresentingPlayerType()===3){var E;if((E=this.W)==null?0:E.isEnabled)this.api.pauseVideo();else{this.api.startSeekCsiAction();if(this.L.length>1&&this.O7!==-1)this.api.U("html5_enable_progress_bar_slide_seek_logging")&&kz(this,this.xW,this.L[this.O7].startTime/1E3,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR_CHAPTER", "INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK"),this.api.seekTo(this.L[this.O7].startTime/1E3,void 0,void 0,void 0,7);else{H=DP(this,IW(this));this.api.U("html5_enable_progress_bar_slide_seek_logging")&&kz(this,this.xW,H,"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR","INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");this.api.seekTo(H,void 0,void 0,void 0,7);E=g.R(this.heatMarkersDecorations);for(var G=E.next();!G.done;G=E.next())G=G.value,H*1E3>=G.visibleTimeRangeStartMillis&&H*1E3<=G.visibleTimeRangeEndMillis&& this.api.logClick(this.lG)}g.Tn(this.element,"ytp-drag");this.PF&&(this.E7.src=this.PF);this.Eu&&!g.F(this.api.getPlayerStateObject(),2)&&this.api.playVideo()}}}; g.M.d4o=function(H,E){var G=this,P=IW(this),Q=DP(this,P);this.api.NZ().Bn||(P.position>this.AG+2?this.WO&&(this.E7.src=this.WO):P.position1);this.BT(H&&this.S.NZ().getPlayerSize().width>=400);this.S.logVisibility(this.element,this.pP);var E=1;H&&this.isActive()&&(E=2);if(this.L!==E){this.L=E;H=this.S.U("delhi_modern_web_player_icons");switch(E){case 1:this.updateValue("icon",H?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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"}}]}:{J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 36 36",width:"100%"},V:[{J:"path",La:!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", H?{J:"svg",j:{fill:"none",height:"24",viewBox:"0 0 24 24",width:"24"},V:[{J:"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.fCn())}g.Bt(this.element,"ytp-remote-button-active",this.isActive())}}; ds.prototype.W=function(){if(this.S.getOption("remote","quickCast"))this.S.setOption("remote","quickCast",!0);else{var H=this.Ru,E=this.element;if(H.TT())H.t7();else{H.initialize();a:{var G=g.R(H.Xa.items);for(var P=G.next();!P.done;P=G.next())if(P=P.value,P.priority===1){G=P;break a}G=null}G&&(G.open(),H.Yt(E));H.Yt(E)}}this.S.logClick(this.element)};g.C(j9,g.D);j9.prototype.L=function(H){var E=this.S.K(),G=400;E.C?G=300:E.B&&(G=200);H=this.W&&H.width>=G;this.BT(H);this.S.logVisibility(this.element,H)}; j9.prototype.G=function(){if(this.Ru.pP)this.Ru.t7();else{var H=g.aC(this.S.lm());H&&!H.loaded&&(H.Mf("tracklist",{includeAsr:!0}).length||H.load());this.S.logClick(this.element);this.Ru.Yt(this.element)}}; j9.prototype.updateBadge=function(){var H=this.S.isHdr(),E=this.S.getPresentingPlayerType(),G=E!==2&&E!==3,P=g.PO(this.S),Q=G&&!!g.GW(this.S.lm());E=Q&&P.displayMode===1;P=Q&&P.displayMode===2;G=(Q=E||P)||!G?null:this.S.getPlaybackQuality();g.Bt(this.element,"ytp-hdr-quality-badge",H);g.Bt(this.element,"ytp-hd-quality-badge",!H&&(G==="hd1080"||G==="hd1440"));g.Bt(this.element,"ytp-4k-quality-badge",!H&&G==="hd2160");g.Bt(this.element,"ytp-5k-quality-badge",!H&&G==="hd2880");g.Bt(this.element,"ytp-8k-quality-badge", !H&&G==="highres");g.Bt(this.element,"ytp-3d-badge-grey",!H&&Q&&E);g.Bt(this.element,"ytp-3d-badge",!H&&Q&&P)};g.C(GP,g.os);g.M=GP.prototype;g.M.r5=function(){var H=this.S.getAvailableAudioTracks();if(H.length>1){this.MS(g.wH(H,this.yT));this.tracks=g.yL(H,this.yT,this);this.countLabel.setContent(H.length?" ("+H.length+")":"");this.publish("size-change");H=this.yT(this.S.getAudioTrack());this.nm(H);if(this.S.U("html5_enable_new_audio_settings_menu")){var E;(E=this.L)!=null&&E.setContent(H.toString())}this.enable(!0)}else{if(this.S.U("html5_enable_new_audio_settings_menu")){var G;(G=this.L)!=null&&G.setContent("")}this.enable(!1)}}; g.M.K0=function(H){g.os.prototype.K0.call(this,H);this.S.setAudioTrack(this.tracks[H]);this.Ru.Xr()}; g.M.yT=function(H){return H.toString()}; g.M.vV=function(H){this.S.U("html5_enable_new_audio_settings_menu")?this.L&&(H?this.L.Rq(this):this.L.HY(this)):g.os.prototype.vV.call(this,H)}; g.M.onClick=function(){this.S.logClick(this.element)};g.C(C6u,g.h9);g.M=C6u.prototype;g.M.TW=function(){this.S.TW()}; g.M.open=function(){this.BO.h_()>0&&g.kQ(this.Ru,this.BO)}; g.M.ow=function(){this.BO.h_()>0&&this.S.getPresentingPlayerType()!==2&&this.S.getPresentingPlayerType()!==3?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")}; g.M.I3=function(H){H.defaultPrevented||(this.open(),H.preventDefault())}; g.M.Rq=function(H){this.BO.Rq(H)}; g.M.HY=function(H){this.BO.HY(H)};g.C(rG,eF); rG.prototype.ow=function(){var H=this.S.getPresentingPlayerType();if(H!==2&&H!==3&&g.F8(this.S))this.L||(this.Ru.Rq(this),this.L=!0,this.W.push(this.Z(this.S,"videodatachange",this.ow)),this.W.push(this.Z(this.S,"videoplayerreset",this.ow)),this.W.push(this.Z(this.S,"onPlaylistUpdate",this.ow)),this.W.push(this.Z(this.S,"autonavchange",this.G)),H=this.S.getVideoData(),this.G(H.autonavState),this.S.logVisibility(this.element,this.L));else if(this.L){this.Ru.HY(this);this.L=!1;H=g.R(this.W);for(var E= H.next();!E.done;E=H.next())this.Sq(E.value)}}; rG.prototype.G=function(H){IV(this,H!==1)}; rG.prototype.onSelect=function(H){this.S.tY(H?2:1);this.L&&(this.S.logVisibility(this.element,this.L),this.S.logClick(this.element))}; rG.prototype.G$=function(){this.L&&this.Ru.HY(this);eF.prototype.G$.call(this)};g.C(rVn,g.h9);rVn.prototype.onClick=function(H){H.preventDefault();var E,G;(E=g.X0(this.S))==null||(G=E.TA())==null||G.t7();var P,Q;(P=g.X0(this.S))==null||(Q=P.cJ())==null||Q.Yt(H.target)};g.C(RKn,g.os);g.M=RKn.prototype; g.M.ow=function(){var H=this.S.getPresentingPlayerType();if(H!==2&&H!==3){this.WF=this.S.ws();var E=this.S.getAvailableQualityLevels();if(this.L){this.W={};H=g.oT(this.S,"getAvailableQualityData",[]);H=g.R(H);for(var G=H.next();!G.done;G=H.next())G=G.value,this.W[G.qualityLabel]=G;H=Object.keys(this.W);E[E.length-1]==="auto"&&H.push("auto");this.Jm=new Set(E)}else if(this.G){G=g.oT(this.S,"getAvailableQualityData",[]);H=[];G=g.R(G);for(var P=G.next();!P.done;P=G.next())P=P.value,this.C[P.quality]= P,P.quality&&H.push(P.quality);E[E.length-1]==="auto"&&H.push("auto")}else H=E;g.O2w(this.S)&&this.S.Ac()&&H.unshift("missing-qualities");E=this.S.app.jR();G=E.getVideoData();if(!G.W||!G.W.video||G.W.video.qualityOrdinal<1080||G.mH)E=!1;else{P=/^qsa/.test(G.clientPlaybackNonce);var Q="r";G.W.id.indexOf(";")>=0&&(P=/^[a-p]/.test(G.clientPlaybackNonce),Q="x");P?(E.g5("iqss",{trigger:Q},!0),E=!0):E=!1}E&&H.unshift("inline-survey");this.MS(H);E=this.S.getVideoData().cotn?!0:!1;G=this.N.Lm();G=!g.sn(this.S.K())|| !(E===void 0?0:E)||!(G===void 0||G);E=this.BO;G=G===void 0?!1:G;E.E6&&g.Bt(E.HF("ytp-panel-footer"),"ytp-panel-hide-footer",G===void 0?!1:G);if(H.length){this.Rn();this.enable(!0);return}}this.enable(!1)}; g.M.Rn=function(){if(this.L){var H=this.S.getPreferredQuality();this.Jm.has(H)&&(this.D=this.S.getPlaybackQuality(),this.B=this.S.getPlaybackQualityLabel(),H==="auto"?(this.nm(H),this.setContent(this.RJ(H))):this.nm(this.B))}else H=this.S.getPreferredQuality(),this.options[H]&&(this.D=this.S.getPlaybackQuality(),this.nm(H),H==="auto"&&this.setContent(this.RJ(H)))}; g.M.K0=function(H){if(H!=="missing-qualities"){g.os.prototype.K0.call(this,H);var E=this.L?this.W[H]:this.C[H];var G=E==null?void 0:E.quality,P=E==null?void 0:E.formatId,Q=E==null?void 0:E.paygatedQualityDetails;E=Q==null?void 0:Q.endpoint;if(Q){var e;Q=(e=this.options[H])==null?void 0:e.element;this.S.logClick(Q)}if(this.L){var w,t;if((w=g.X(E,g.CUM))==null?0:(t=w.popup)==null?0:t.notificationActionRenderer)this.S.n_("innertubeCommand",E);else if(E){this.S.n_("innertubeCommand",E);return}P?this.S.setPlaybackQuality(G, P):this.S.setPlaybackQuality(G)}else{if(this.G){var k,W;if((k=g.X(E,g.CUM))==null?0:(W=k.popup)==null?0:W.notificationActionRenderer)this.S.n_("innertubeCommand",E);else if(E){this.S.n_("innertubeCommand",E);return}}this.S.setPlaybackQuality(H)}this.Ru.t7();this.ow()}}; g.M.open=function(){for(var H=g.R(Object.values(this.options)),E=H.next();!E.done;E=H.next()){E=E.value;var G=void 0;this.S.hasVe((G=E)==null?void 0:G.element)&&(G=void 0,this.S.logVisibility((G=E)==null?void 0:G.element,!0))}g.os.prototype.open.call(this);this.S.logClick(this.element)}; g.M.Fc=function(H,E,G){var P=this;if(H==="missing-qualities")return new g.h9({J:"a",QN:["ytp-menuitem"],j:{href:"https://support.google.com/youtube/?p=missing_quality",target:this.S.K().L_,tabindex:"0",role:"menuitemradio"},V:[{J:"div",QN:["ytp-menuitem-label"],iJ:"{{label}}"}]},E,this.RJ(H));if(H!=="inline-survey"){var Q,e=(Q=this.L?this.W[H]:this.C[H])==null?void 0:Q.paygatedQualityDetails;Q=e==null?void 0:e.veType;e=e==null?void 0:e.trackingParams;E=g.os.prototype.Fc.call(this,H,E,G);e?(this.S.createServerVe(E.element, this,!0),this.S.setTrackingParams(E.element,e)):Q&&this.S.createClientVe(E.element,this,Q,!0);return E}H=[{J:"span",iJ:"Looks good?"}];G=g.R([!0,!1]);e=G.next();for(Q={};!e.done;Q={V7:void 0},e=G.next())Q.V7=e.value,e=new g.D({J:"span",Y:"ytp-menuitem-inline-survey-response",V:[Q.V7?zdu():TiQ()],j:{tabindex:"0",role:"button"}}),e.listen("click",function(w){return function(){var t=P.S.app.jR();t.g5("iqsr",{tu:w.V7});t.getVideoData().mH=!0;P.Ru.t7();P.ow()}}(Q)),H.push(e); return new g.h9({J:"div",Y:"ytp-menuitem",j:{"aria-disabled":"true"},V:[{J:"div",QN:["ytp-menuitem-label"],V:H}]},E)}; g.M.RJ=function(H,E){E=E===void 0?!1:E;if(H==="missing-qualities")return{J:"div",iJ:"Missing options?"};if(H==="inline-survey")return"";var G=this.G||this.L?[Nvj(this,H,E,!1)]:[UxM(this,H)];var P=this.S.getPreferredQuality();E||P!=="auto"||H!=="auto"||(G.push(" "),this.L?G.push(Nvj(this,this.B,E,!0,["ytp-menu-label-secondary"])):this.G?G.push(Nvj(this,this.D,E,!0,["ytp-menu-label-secondary"])):G.push(UxM(this,this.D,["ytp-menu-label-secondary"])));return{J:"div",V:G}};g.C(Ju,gM);Ju.prototype.D=function(){gM.prototype.D.call(this);this.N&&$pU(this)}; Ju.prototype.E7=function(){this.p_()}; Ju.prototype.Jm=function(){this.S.setPlaybackRate(this.L,!0)}; Ju.prototype.C=function(H){gM.prototype.C.call(this,H);this.p_();$pU(this);H.preventDefault()};g.C(zM,g.D);g.M=zM.prototype;g.M.init=function(){this.Wg(this.L);this.updateValue("minvalue",this.W);this.updateValue("maxvalue",this.G)}; g.M.Ya=function(H){if(!H.defaultPrevented){switch(H.keyCode){case 37:case 40:var E=-this.B;break;case 39:case 38:E=this.B;break;default:return}this.Wg(this.L+E);H.preventDefault()}}; g.M.rl=function(H){var E=this.L;E+=(H.deltaX||-H.deltaY)<0?-this.N:this.N;this.Wg(E);H.preventDefault()}; g.M.Ab=function(H){H=(H-g.ws(this.D).x)/this.p_*this.range+this.W;this.Wg(H)}; g.M.Wg=function(H,E){E=E===void 0?"":E;H=g.Mo(H,this.W,this.G);E===""&&(E=H.toString());this.updateValue("valuenow",H);this.updateValue("valuetext",E);this.WF.style.left=(H-this.W)/this.range*(this.p_-this.PF)+"px";this.L=H}; g.M.focus=function(){this.O7.focus()};g.C($E,zM);$E.prototype.Jm=function(){this.S.setPlaybackRate(this.L,!0)}; $E.prototype.Wg=function(H){zM.prototype.Wg.call(this,H,LP(this,H).toString());this.T&&(lS(this),this.E7())}; $E.prototype.updateValues=function(){var H=this.S.getPlaybackRate();LP(this,this.L)!==H&&(this.Wg(H),lS(this))};g.C(tB,g.av);tB.prototype.focus=function(){this.L.focus()};g.C(RL,sO);g.C(rt,g.os);g.M=rt.prototype;g.M.onVideoDataChange=function(H,E){H==="dataloaded"&&L8Q(E)&&(H=this.S.getAvailablePlaybackRates(),g.l8(this.D,H)||(this.D=H,this.G.dispose(),this.G=new Ju(this.S)),this.r5())}; g.M.RJ=function(H){return H==="1"?"Normal":H.toLocaleString()}; g.M.r5=function(){var H,E=(H=this.S.getVideoData())==null?void 0:H.mV();H=this.S.getPresentingPlayerType(E);this.enable(H!==2&&H!==3);dOM(this)}; g.M.MS=function(H){g.os.prototype.MS.call(this,H);this.G&&this.G.W.focus()}; g.M.vV=function(H){g.os.prototype.vV.call(this,H);H?(this.WF=this.Z(this.S,"onPlaybackRateChange",this.onPlaybackRateChange),dOM(this),d_q(this,this.S.getPlaybackRate()),this.S.U("enable_web_premium_varispeed_upsell")&&(this.S.logVisibility(this.element,!0),this.W&&this.S.logVisibility(this.N.element,!0))):(this.Sq(this.WF),this.WF=null)}; g.M.onPlaybackRateChange=function(H){var E=this.S.getPlaybackRate();!this.C&&this.D.includes(E)||MSq(this,E);d_q(this,H)}; g.M.Fc=function(H,E,G){return H===this.L&&$Rd(this.S)?g.os.prototype.Fc.call(this,H,E,G,{J:"div",Y:"ytp-speed-slider-menu-footer",V:[this.G]}):H===this.W&&IUn(this.S,this.Jm)?LdU(this,H,E,G):g.os.prototype.Fc.call(this,H,E,G)}; g.M.K0=function(H){g.os.prototype.K0.call(this,H);H===this.W?(this.S.logClick(this.N.element),this.S.n_("innertubeCommand",this.Jm)):H===this.L?this.S.setPlaybackRate(this.B,!0):this.S.setPlaybackRate(Number(H),!0);(!$Rd(this.S)||H!==this.L&&H!==this.W)&&this.Ru.Xr()}; g.M.f8=function(H){var E=H===this.L;this.C=!1;E&&IP(this.S)&&!$Rd(this.S)?(H=new RL(this.S),g.kQ(this.Ru,H)):g.os.prototype.f8.call(this,H)};g.C(Vs,g.os);g.M=Vs.prototype;g.M.nm=function(H){g.os.prototype.nm.call(this,H)}; g.M.qG=function(H){return H.option.toString()}; g.M.getOption=function(H){return this.settings[H]}; g.M.RJ=function(H){return this.getOption(H).text||""}; g.M.K0=function(H){g.os.prototype.K0.call(this,H);this.publish("settingChange",this.setting,this.settings[H].option)};g.C(G7,g.GY);G7.prototype.DD=function(H){for(var E=g.R(Object.keys(H)),G=E.next();!G.done;G=E.next()){var P=G.value;if(G=this.PN[P]){var Q=H[P].toString();P=!!H[P+"Override"];G.options[Q]&&(G.nm(Q),G.W.element.setAttribute("aria-checked",String(!P)),G.L.element.setAttribute("aria-checked",String(P)))}}}; G7.prototype.CR=function(H,E){this.publish("settingChange",H,E)};g.C(Ad,g.os);Ad.prototype.L=function(H){return H.languageCode}; Ad.prototype.RJ=function(H){return this.languages[H].languageName||""}; Ad.prototype.K0=function(H){this.publish("select",H);this.S.logClick(this.element);g.p4(this.Ru)};g.C(mv,g.os);g.M=mv.prototype;g.M.mu=function(H){return g.ZR(H)?"__off__":H.displayName}; g.M.RJ=function(H){return H==="__off__"?"Off":H==="__translate__"?"Auto-translate":H==="__contribute__"?"Add subtitles/CC":H==="__correction__"?"Suggest caption corrections":(H==="__off__"?{}:this.tracks[H]).displayName}; g.M.K0=function(H){if(H==="__translate__")this.L.open();else if(H==="__contribute__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var E=g.ASU(this.S.K(),this.S.getVideoData());g.YK(E)}else if(H==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();var G=Wy(this);vi(this,G);g.os.prototype.K0.call(this,this.mu(G));var P,Q;G=(E=this.S.getVideoData().getPlayerResponse())==null?void 0:(P=E.captions)==null?void 0:(Q=P.playerCaptionsTracklistRenderer)== null?void 0:Q.openTranscriptCommand;this.S.n_("innertubeCommand",G);this.Ru.Xr();this.W&&this.S.logClick(this.W)}else{if(H==="__correction__"){this.S.pauseVideo();this.S.isFullscreen()&&this.S.toggleFullscreen();E=Wy(this);vi(this,E);g.os.prototype.K0.call(this,this.mu(E));var e,w;E=(G=this.S.getVideoData().getPlayerResponse())==null?void 0:(e=G.captions)==null?void 0:(w=e.playerCaptionsTracklistRenderer)==null?void 0:w.openTranscriptCommand;this.S.n_("innertubeCommand",E)}else this.S.logClick(this.element), vi(this,H==="__off__"?{}:this.tracks[H]),g.os.prototype.K0.call(this,H);this.Ru.Xr()}}; g.M.r5=function(){var H=this.S.getOptions();H=H&&H.indexOf("captions")!==-1;var E=this.S.getVideoData(),G=E&&E.z1,P,Q=!((P=this.S.getVideoData())==null||!g.B$(P));P={};if(H||G){var e;if(H){var w=this.S.getOption("captions","track");P=this.S.getOption("captions","tracklist",{includeAsr:!0});var t=Q?[]:this.S.getOption("captions","translationLanguages");this.tracks=g.yL(P,this.mu,this);Q=g.wH(P,this.mu);var k,W;Wy(this)&&((e=E.getPlayerResponse())==null?0:(k=e.captions)==null?0:(W=k.playerCaptionsTracklistRenderer)== null?0:W.openTranscriptCommand)&&Q.push("__correction__");if(t.length&&!g.ZR(w)){if((e=w.translationLanguage)&&e.languageName){var I=e.languageName;e=t.findIndex(function(A){return A.languageName===I}); arU(t,e)}$eu(this.L,t);Q.push("__translate__")}e=this.mu(w)}else this.tracks={},Q=[],e="__off__";Q.unshift("__off__");this.tracks.__off__={};G&&Q.unshift("__contribute__");this.tracks[e]||(this.tracks[e]=w,Q.push(e));this.MS(Q);this.nm(e);w&&w.translationLanguage?this.L.nm(this.L.L(w.translationLanguage)):Jnv(this.L);H&&this.G.DD(this.S.getSubtitlesUserSettings());this.countLabel.setContent(P&&P.length?" ("+P.length+")":"");this.publish("size-change");this.S.logVisibility(this.element,!0);this.enable(!0)}else this.enable(!1)}; g.M.Bb=function(H){var E=this.S.getOption("captions","track");E=g.sj(E);E.translationLanguage=this.L.languages[H];vi(this,E)}; g.M.CR=function(H,E){if(H==="reset")this.S.resetSubtitlesUserSettings();else{var G={};G[H]=E;this.S.updateSubtitlesUserSettings(G)}Hw7(this,!0);this.D.start();this.G.DD(this.S.getSubtitlesUserSettings())}; g.M.XYo=function(H){H||g.Od(this.D)}; g.M.G$=function(){g.Od(this.D);g.os.prototype.G$.call(this)}; g.M.open=function(){g.os.prototype.open.call(this);this.options.__correction__&&!this.W&&(this.W=this.options.__correction__.element,this.S.createClientVe(this.W,this,167341),this.S.logVisibility(this.W,!0))};g.C(tx,g.$f);g.M=tx.prototype; g.M.initialize=function(){if(!this.isInitialized){var H=this.S.K();this.isInitialized=!0;try{this.xb=new RKn(this.S,this)}catch(G){g.p5(Error("QualityMenuItem creation failed"))}g.d(this,this.xb);var E=new mv(this.S,this);g.d(this,E);H.enableSpeedOptions&&(E=new rt(this.S,this),g.d(this,E));(g.L3(H)||H.C)&&(H.W||H.eR)&&(E=new rVn(this.S,this),g.d(this,E));H.yG&&!H.U("web_player_move_autonav_toggle")&&(E=new rG(this.S,this),g.d(this,E));H.U("html5_enable_new_audio_settings_menu")?(this.uL=new C6u(this.S, this),g.d(this,this.uL)):(H=new GP(this.S,this),g.d(this,H));this.S.publish("settingsMenuInitialized");xH(this.settingsButton,this.Xa.h_())}}; g.M.Rq=function(H){this.initialize();this.Xa.Rq(H);xH(this.settingsButton,this.Xa.h_())}; g.M.HY=function(H){this.Iu()||(this.pP&&this.Xa.h_()<=1&&this.hide(),this.Xa.HY(H),xH(this.settingsButton,this.Xa.h_()))}; g.M.Yt=function(H){this.initialize();this.Xa.h_()>0&&g.$f.prototype.Yt.call(this,H)}; g.M.t7=function(){this.Zh?this.Zh=!1:g.$f.prototype.t7.call(this)}; g.M.show=function(){g.$f.prototype.show.call(this);g.aG(this.S.getRootNode(),"ytp-settings-shown")}; g.M.hide=function(){g.$f.prototype.hide.call(this);g.Tn(this.S.getRootNode(),"ytp-settings-shown")}; g.M.JC=function(H){this.S.logVisibility(this.element,H);this.S.publish("settingsMenuVisibilityChanged",H)}; g.M.TW=function(){this.S.TW()};g.C(rz,g.D);g.M=rz.prototype;g.M.onClick=function(){if(AP(this)&&(this.S.toggleSubtitles(),this.S.logClick(this.element),!this.isEnabled())){var H=!1,E=g.UF().A7(65);g.sn(this.S.K())&&E!=null&&(H=!E);H&&this.S.K().U("web_player_nitrate_promo_tooltip")&&this.S.publish("showpromotooltip",this.element)}}; g.M.H0m=function(H){var E,G;(E=g.X0(this.S))==null||(G=E.TA())==null||G.Yt(H)}; g.M.isEnabled=function(){var H=this.S.getOption("captions","track");return!(!H||!H.displayName)}; g.M.r5=function(){var H=AP(this),E=300;this.S.K().B&&(E=480);this.S.U("delhi_modern_web_player_icons")&&this.updateValue("icon",Un1(this));if(this.S.K().C){this.updateValue("title",g.dv(this.S,"Subtitles/closed captions","c"));this.update({"tooltip-title":g.dv(this.S,"Subtitles/closed captions","c")});this.update({"data-title-no-tooltip":"Subtitles/closed captions"});var G=H}else{if(H)(G=this.HF("ytp-subtitles-button-icon"))==null||G.setAttribute("fill-opacity","1"),this.S.K().U("player_tooltip_data_title_killswitch")? this.updateValue("title",g.dv(this.S,"Subtitles/closed captions","c")):this.update({"tooltip-title":g.dv(this.S,"Subtitles/closed captions","c")}),this.update({"data-title-no-tooltip":"Subtitles/closed captions"});else{if(this.S.U("delhi_modern_web_player_icons")){var P;(P=this.HF("ytp-subtitles-button-icon"))==null||P.getElementsByTagName("svg")[0].setAttribute("fill-opacity","0.3")}else{var Q;(Q=this.HF("ytp-subtitles-button-icon"))==null||Q.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"})}G=!0}this.tooltip.aP();G=G&&this.S.NZ().getPlayerSize().width>=E;this.BT(G);this.S.logVisibility(this.element,G);H?this.updateValue("pressed",this.isEnabled()):this.updateValue("pressed",!1)}; g.M.qL=function(H){g.D.prototype.qL.call(this,H)};g.C(g.Q$,g.D);g.M=g.Q$.prototype;g.M.canShowCountdown=function(){return!Zw(this)&&!CH(this)}; g.M.Ix=function(){var H=this.api.NZ().getPlayerSize().width,E=this.p_;this.api.K().B&&(E=400);E=H>=E&&(!CH(this)||!g.F(this.api.getPlayerStateObject(),64));this.BT(E);g.Bt(this.element,"ytp-time-display-allow-autohide",E&&H<400);H=this.api.getProgressState();if(E){var G=this.api.getPresentingPlayerType();E=this.api.getCurrentTime(G,!1);this.W&&(E-=H.airingStart);Zw(this)&&(E-=this.PT.startTimeMs/1E3);this.canShowCountdown()&&this.G&&(E-=this.api.getDuration(G,!1));var P=g.Cc(E);this.D!==P&&(this.updateValue("currenttime", P),this.D=P);G=Zw(this)?(this.PT.endTimeMs-this.PT.startTimeMs)/1E3:this.api.getDuration(G,!1);P=g.Cc(G);this.T!==P&&(this.updateValue("duration",P),this.T=P,E&&(E=g.ct("$PLAY_PROGRESS of $DURATION",{PLAY_PROGRESS:g.Cc(E,!0),DURATION:g.Cc(G,!0)}),this.updateValue("timeDisplayAriaLabel",E)))}HBn(this,H.isAtLiveHead);ESM(this,this.api.getLoopRange())}; g.M.onLoopRangeChange=function(H){var E=this.PT!==H;this.PT=H;E&&(this.Ix(),g6(this))}; g.M.Ezm=function(){this.api.setLoopRange(null)}; g.M.xCJ=function(){this.G=!this.G;this.Ix()}; g.M.onVideoDataChange=function(H,E,G){this.updateVideoData((this.api.K().U("enable_topsoil_wta_for_halftime")||this.api.K().U("enable_topsoil_wta_for_halftime_live_infra"))&&G===2?this.api.getVideoData(1):E);this.Ix();g6(this)}; g.M.updateVideoData=function(H){this.iZ=H.isLivePlayback&&!H.TP;this.W=Iy(H);this.isPremiere=H.isPremiere;var E,G,P;this.liveIndicatorText=(H=(E=H.getWatchNextResponse())==null?void 0:(G=E.playerOverlays)==null?void 0:(P=G.playerOverlayRenderer)==null?void 0:P.liveIndicatorText)?CT(H):null;g.Bt(this.element,"ytp-live",CH(this));this.api.U("delhi_modern_web_player")&&this.HF("ytp-time-wrapper").classList.toggle("ytp-time-wrapper-delhi",this.canShowCountdown())}; g.M.onClick=function(H){H.target===this.liveBadge.element&&(this.api.seekTo(Infinity,void 0,void 0,void 0,33),this.api.playVideo())}; g.M.G$=function(){this.L&&this.L();g.D.prototype.G$.call(this)};g.C(Dd,g.D);g.M=Dd.prototype;g.M.C4=function(){QJn(this)}; g.M.ot_=function(H){YYl(this,H);this.N&&QJn(this)}; g.M.jZ=function(H){if(!H.defaultPrevented){var E=H.keyCode,G=null;E===37?G=this.volume-5:E===39?G=this.volume+5:E===36?G=0:E===35&&(G=100);G!==null&&(G=g.Mo(G,0,100),G===0?this.api.mute():(this.api.isMuted()&&this.api.unMute(),this.api.setVolume(G)),H.preventDefault())}}; g.M.Zl=function(H){var E=H.deltaX||-H.deltaY;H.deltaMode?this.api.setVolume(this.volume+(E<0?-10:10)):this.api.setVolume(this.volume+g.Mo(E/10,-10,10));H.preventDefault();var G,P;((G=this.api.K())==null?0:(P=G.getWebPlayerContextConfig())==null?0:P.enableFullscreenComponentsFeature)&&H.stopPropagation()}; g.M.wYF=function(){B_(this,this.L,!0,this.W,this.api.Su());this.p_=this.volume;this.api.isMuted()&&this.api.unMute()}; g.M.f2=function(H){var E=this.G?78:52,G=this.G?18:12;H-=g.ws(this.B).x;G=g.Mo((H-G/2)/(E-G),0,1);this.N&&(G=g.Mo(H/E,0,1));E=G;E=this.api.U("web_player_non_linear_volume_controls")?E<=.25?E/.25*.1:.1+(E-.25)/.75*.9:E;this.api.setVolume(E*100)}; g.M.qMw=function(){B_(this,this.L,!1,this.W,this.api.Su());this.volume===0&&(this.api.mute(),this.api.setVolume(this.p_))}; g.M.onVolumeChange=function(H){EE(this,H.volume,H.muted)}; g.M.d3=function(){B_(this,this.L,this.isDragging,this.W,this.api.Su())}; g.M.G$=function(){g.D.prototype.G$.call(this);g.Tn(this.C,"ytp-volume-slider-active")};g.C(cN,g.D); cN.prototype.onVideoDataChange=function(){var H=this.api.K();this.h7();this.visible=!!this.api.getVideoData().videoId&&!this.api.getVideoData(1).Xg;this.BT(this.visible);this.api.logVisibility(this.element,this.visible&&this.L_);if(this.visible){var E=this.api.getVideoUrl(!0,!1,!1,!0);this.updateValue("url",E)}H.G&&(this.L&&(this.Sq(this.L),this.L=null),this.element.removeAttribute("href"),this.element.removeAttribute("title"),this.element.removeAttribute("aria-label"),g.aG(this.element,"no-link")); E=this.api.K();H=this.api.getVideoData();var G="";E.G||(E=g.Jy(E),E.indexOf("www.")===0&&(E=E.substring(4)),G=g.SD(H)?"Watch on YouTube Music":E==="youtube.com"?"Watch on YouTube":g.ct("Watch on $WEBSITE",{WEBSITE:E}));this.api.U("player_tooltip_data_title_killswitch")?this.updateValue("title",G):this.updateValue("tooltip-title",G)}; cN.prototype.onClick=function(H){this.api.U("web_player_log_click_before_generating_ve_conversion_params")&&this.api.logClick(this.element);var E=this.api.K(),G=this.api.getVideoUrl(!g.$6(H),!1,!0,!0);if(g.L3(E)){var P={};g.L3(E)&&g.oT(this.api,"addEmbedsConversionTrackingParams",[P]);G=g.eB(G,P)}g.Xb(G,this.api,H);this.api.U("web_player_log_click_before_generating_ve_conversion_params")||this.api.logClick(this.element)}; cN.prototype.h7=function(){var H={J:"svg",j:{height:"100%",version:"1.1",viewBox:"0 0 67 36",width:"100%"},V:[{J:"path",La:!0,Y:"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 "}}]}, E=28666,G=this.api.getVideoData();this.api.isEmbedsShortsMode()?H={J:"svg",j:{fill:"none",height:"100%",viewBox:"-10 -8 67 36",width:"100%"},V:[{J:"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.SD(G)&&(H={J:"svg",j:{fill:"none",height:"25",viewBox:"0 0 140 25",width:"140"},V:[{J:"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"}},{J:"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"}},{J:"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"}},{J:"path",j:{d:"M59.64 20.91V6.16H62.68V4.11H53.99V6.16H57.03V20.91H59.64Z",fill:"white"}},{J:"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"}},{J:"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"}},{J:"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"}},{J:"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"}},{J:"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"}},{J:"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"}},{J:"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"}},{J:"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"}}]},E=216163);g.SD(G)?g.aG(this.element,"ytp-youtube-music-button"):g.Tn(this.element,"ytp-youtube-music-button");H.j=Object.assign({},H.j,{"aria-hidden":"true"});this.updateValue("logoSvg",H);this.api.hasVe(this.element)&&this.api.destroyVe(this.element);this.api.createClientVe(this.element,this,E,!0)}; cN.prototype.qL=function(H){g.D.prototype.qL.call(this,H);this.api.logVisibility(this.element,this.visible&&H)};g.C(yE,g.Z0);g.M=yE.prototype;g.M.onProgress=function(){if(this.S.U("web_player_max_seekable_on_ended")||!g.F(this.S.getPlayerStateObject(),2))NP(this.C6),this.progressBar.Ix(),this.S2.Ix()}; g.M.hZ=function(){this.on();if(NP(this.C6))this.progressBar.qf();else this.onProgress()}; g.M.yX=function(){this.onProgress();this.N.start()}; g.M.on=function(){var H;if(H=!this.S.K().W){H=this.progressBar;var E=2*g.lo()*H.C,G=H.G;H=(G.L-G.W)*1E3/H.api.getPlaybackRate()/E<300}H=H&&this.S.getPlayerStateObject().isPlaying()&&!!window.requestAnimationFrame;E=!H;NP(this.C6)&&(H=E=!1);E?this.WF||(this.WF=this.Z(this.S,"progresssync",this.onProgress)):this.WF&&(this.Sq(this.WF),this.WF=null);H?this.N.isActive()||this.N.start():this.N.stop()}; g.M.h7=function(){var H=this.S.FM(),E=this.S.NZ().getPlayerSize(),G=this.S.NZ().Bn,P=uMt(this),Q=mRl(this),e=Math.max(E.width-P*2,100);if(this.hm!==E.width||this.MZ!==H||this.S.U("web_player_rtr_ctrls")&&this.Er!==G)this.hm=E.width,this.MZ=H,this.Er=G,this.L.element.style.width=Q+"px",this.L.element.style.left=P+"px",g.dyT(this.progressBar,P,Q,H),this.S.Zi().wJ=Q;G=this.G;e=Math.min(570*(H?1.5:1),e);H=Math.min(413*(H?1.5:1),Math.round((E.height-UB(this))*.82));G.maxWidth=e;G.maxHeight=H;G.RN();this.on(); this.s7&&nPu(this.Yp,E.height)}; g.M.onVideoDataChange=function(){var H=this.S.getVideoData();this.T$.style.background=H.Xg?H.U0:"";this.p_&&gTs(this.p_,H.showSeekingControls);this.L_&&gTs(this.L_,H.showSeekingControls)}; g.M.E2=function(){return this.L.element};g.C(k3l,BD);g.M=k3l.prototype;g.M.Mg=function(H){H.target!==this.dismissButton.element&&(this.onClickCommand&&this.S.n_("innertubeCommand",this.onClickCommand),this.tA())}; g.M.tA=function(){this.enabled=!1;this.N.hide()}; g.M.onVideoDataChange=function(H,E){H==="dataloaded"&&gKw(this);H=[];var G,P,Q,e;if(E=(e=g.X((G=E.getWatchNextResponse())==null?void 0:(P=G.playerOverlays)==null?void 0:(Q=P.playerOverlayRenderer)==null?void 0:Q.suggestedActionsRenderer,tHR))==null?void 0:e.suggestedActions)for(G=g.R(E),P=G.next();!P.done;P=G.next())(P=g.X(P.value,kZ3))&&g.X(P.trigger,$oW)&&H.push(P);if(H.length!==0){G=[];H=g.R(H);for(P=H.next();!P.done;P=H.next())if(P=P.value,Q=g.X(P.trigger,$oW)){e=(e=P.title)?g.b_(e):"View Chapters"; E=Q.timeRangeStartMillis;var w=Q.timeRangeEndMillis;Q=Q.onlyTriggersOnPlayerPause;P.tapCommand&&(E!=null&&w!=null&&G.push(new g.cP(E,w,{priority:9,namespace:"suggested_action_button_visible",id:e})),E!=null&&w!=null||Q)&&(this.suggestedActions[e]=P)}this.S.MV(G)}}; g.M.Rz=function(){return this.enabled}; g.M.JC=function(){this.enabled?this.z$.start():tA(this);this.aJ()}; g.M.onStateChange=function(H){for(var E=g.R(Object.keys(this.suggestedActions)),G=E.next();!G.done;G=E.next()){G=G.value;var P=void 0;if((P=g.X(this.suggestedActions[G].trigger,$oW))==null?0:P.onlyTriggersOnPlayerPause){H.state.isPaused()?(bRn(this,G),this.enabled=!0,this.JC()):H.oldState.isPaused()&&(this.enabled=!1,this.JC());break}}}; g.M.G$=function(){gKw(this);BD.prototype.G$.call(this)};var j8={},xV=(j8.CHANNEL_NAME="ytp-title-channel-name",j8.FULLERSCREEN_LINK="ytp-title-fullerscreen-link",j8.LINK="ytp-title-link",j8.SESSIONLINK="yt-uix-sessionlink",j8.SUBTEXT="ytp-title-subtext",j8.TEXT="ytp-title-text",j8.TITLE="ytp-title",j8);g.C(zO,g.D);zO.prototype.onClick=function(H){this.api.logClick(this.element);var E=this.api.K(),G=this.api.getVideoUrl(!g.$6(H),!1,!0);g.L3(E)&&(E={},g.oT(this.api,"addEmbedsConversionTrackingParams",[E]),G=g.eB(G,E));g.Xb(G,this.api,H)}; zO.prototype.r5=function(){var H=this.api.getVideoData(),E=this.api.K();this.updateValue("title",H.title);var G={J:"a",Y:xV.CHANNEL_NAME,j:{href:"{{channelLink}}",target:"_blank"},iJ:"{{channelName}}"};this.api.K().G?G={J:"span",Y:xV.CHANNEL_NAME,iJ:"{{channelName}}",j:{tabIndex:"{{channelSubtextFocusable}}"}}:H.cV&&(G={J:"span",Y:xV.SUBTEXT,iJ:H.cV});this.updateValue("subtextElement",G);x6n(this);this.api.getPresentingPlayerType()===2&&(G=this.api.getVideoData(),G.videoId&&G.isListed&&G.author&& G.z$&&G.profilePicture?(this.updateValue("channelLink",G.z$),this.updateValue("channelName",G.author),this.updateValue("channelTitleFocusable","0")):x6n(this));G=E.externalFullscreen||!this.api.isFullscreen()&&E.vt;g.Bt(this.link,xV.FULLERSCREEN_LINK,G);E.WF||!H.videoId||G||H.Xg||E.G?this.L&&(this.updateValue("url",null),this.Sq(this.L),this.L=null):(this.updateValue("url",this.api.getVideoUrl(!0)),this.L||(this.L=this.Z(this.link,"click",this.onClick)));E.G&&(this.element.classList.add("ytp-no-link"), this.updateValue("channelName",g.L3(E)?H.expandedTitle:H.author),this.updateValue("channelTitleFocusable","0"),this.updateValue("channelSubtextFocusable","0"))};g.C(g.iE,g.D);g.M=g.iE.prototype;g.M.setEnabled=function(H){if(this.type!=null)if(H)switch(this.type){case 3:case 2:X1(this);this.fade.show();break;default:this.fade.show()}else this.fade.hide();this.C=H}; g.M.X9=function(H,E,G,P,Q,e,w,t){if(!this.E7||this.env.B){this.type===3&&this.qf();this.type!==1&&(g.Ve(this.element,"ytp-tooltip ytp-bottom"),this.type=1,this.C&&this.fade.show(),this.W&&this.W.dispose(),(this.W=this.api.XM())&&this.W.subscribe("l",this.Ez,this));if(t){var k=g.or(this.bg).height||141;this.PF.style.bottom=k+2+"px"}else this.PF.style.display="none";this.env.U("delhi_modern_web_player")?(this.update({pillTimeStamp:G,pillTitle:e!=null?e:"",eduText:t!=null?t:""}),g.aG(this.element,"ytp-tooltip-progress-bar-style")): (this.update({text:G,title:e!=null?e:"",eduText:t!=null?t:""}),g.Bt(this.bottomText,"ytp-tooltip-text-no-title",this.type===1&&!e));this.api.isInline()&&g.aG(this.bottomText,"ytp-modern-tooltip-text");g.Bt(this.element,"ytp-text-detail",!!P);G=-1;this.W&&(G=nX(this.W,243*this.scale),this.env.U("web_l3_storyboard")&&this.W.levels.length===4&&(G=this.W.levels.length-1),G=JuU(this.W,G,E));SHT(this,G);if(w)switch(E=g.or(this.element).width,w){case 1:this.title.style.right="0";this.title.style.textAlign= "left";break;case 2:this.title.style.right=E+"px";this.title.style.textAlign="right";break;case 3:this.title.style.right=E/2+"px",this.title.style.textAlign="center"}sss(this,!!P,H,Q)}}; g.M.Ks=function(){this.type===1&&this.qf()}; g.M.EW=function(H,E){if(this.type)if(this.type===3)this.qf();else return;A3M(this,H,3,E)}; g.M.aP=function(){this.L&&!this.B&&(this.env.U("player_tooltip_data_title_killswitch")?this.L.hasAttribute("title")&&(this.G=this.L.getAttribute("title")||"",this.L.removeAttribute("title"),this.C&&X1(this)):this.L.hasAttribute("data-tooltip-title")&&(this.G=this.L.getAttribute("data-tooltip-title")||"",this.L.removeAttribute("data-tooltip-title"),this.C&&X1(this)))}; g.M.Ez=function(H,E){H<=this.D&&this.D<=E&&(H=this.D,this.D=NaN,SHT(this,H))}; g.M.c75=function(){z5Q(this.W,this.D,243*this.scale)}; g.M.qf=function(){switch(this.type){case 2:var H=this.L;H.removeEventListener("mouseout",this.N);H.addEventListener("mouseover",this.T);H.removeEventListener("blur",this.N);H.addEventListener("focus",this.T);K9l(this);break;case 3:K9l(this);break;case 1:this.W&&(this.W.unsubscribe("l",this.Ez,this),this.W=null),this.api.removeEventListener("videoready",this.p_),this.WF.stop()}this.type=null;this.C&&this.fade.hide()}; g.M.Zq=function(){if(this.L)for(var H=0;H=0;E--)if(this.Td[E]===H){this.Td.splice(E,1);break}JA(this.C6,64,this.Td.length>0)}; g.M.A3=function(){this.api.pR()&&this.api.DG();return!!this.hh||zBw(this)||g.A0.prototype.A3.call(this)}; g.M.Ex=function(){var H=!this.A3(),E=H&&this.api.pR()&&!g.F(this.api.getPlayerStateObject(),2)&&!this.api.getVideoData().Xg&&!this.api.K().G&&!this.api.isEmbedsShortsMode(),G=this.OY&&g.UR(this.api)&&g.F(this.api.getPlayerStateObject(),128);H||G?(this.gM.show(),this.Wj.show()):(this.gM.hide(),this.Wj.hide(),this.api.Zq(this.JE.element));E?this.r6.Yt():this.r6.t7();this.zq&&JVn(this.zq,this.UWo||!H);this.api.U("web_player_hide_overflow_button_if_empty_menu")&&Y4(this);g.A0.prototype.Ex.call(this)}; g.M.jG=function(H,E,G,P,Q){H.style.left="";H.style.top="";H.style.bottom="";var e=g.or(H),w=P||this.zq&&g.wa(this.zq.E2(),E),t=P=null;G!=null&&w||(P=g.or(E),t=g.eK(E,this.api.getRootNode()),G==null&&(G=t.x+P.width/2));G-=e.width/2;w?(E=this.zq,P=uMt(E),t=mRl(E),w=this.api.NZ().getPlayerSize().height,G=g.Mo(G,P,P+t-e.width),e=w-UB(E)-e.height):g.wa(this.JE.element,E)?(E=this.api.NZ().getPlayerSize().width,G=g.Mo(G,12,E-e.width-12),e=this.FM()?this.tU:this.Tl,this.api.K().playerStyle==="gvn"&&(e+=20), this.OY&&(e-=this.FM()?26:18)):(E=this.api.NZ().getPlayerSize(),G=g.Mo(G,12,E.width-e.width-12),e=t.y>(E.height-P.height)/2?t.y-e.height-12:t.y+P.height+12);H.style.top=e+(Q||0)+"px";H.style.left=G+"px"}; g.M.hZ=function(H){H&&(this.api.Zq(this.JE.element),this.zq&&this.api.Zq(this.zq.E2()));this.QV&&(g.Bt(this.contextMenu.element,"ytp-autohide",H),g.Bt(this.contextMenu.element,"ytp-autohide-active",!0));g.A0.prototype.hZ.call(this,H)}; g.M.tB=function(){g.A0.prototype.tB.call(this);this.QV&&(g.Bt(this.contextMenu.element,"ytp-autohide-active",!1),this.QV&&(this.contextMenu.hide(),this.W6&&this.W6.hide()))}; g.M.qS=function(H,E){var G=this.api.NZ().getPlayerSize();G=new g.Yn(0,0,G.width,G.height);if(H||!NP(this.C6)&&!this.A3()){if(this.api.K().aO||E)H=this.FM()?this.tU:this.Tl,G.top+=H,G.height-=H;this.zq&&(G.height-=UB(this.zq))}return G}; g.M.C4=function(H){var E=this.api.getRootNode();H?E.parentElement?(E.setAttribute("aria-label","YouTube Video Player in Fullscreen"),this.api.K().externalFullscreen||(E.parentElement.insertBefore(this.uC.element,E),E.parentElement.insertBefore(this.Hl.element,E.nextSibling))):g.h3(Error("Player not in DOM.")):(E.setAttribute("aria-label","YouTube Video Player"),this.uC.detach(),this.Hl.detach());this.h7();this.vy()}; g.M.FM=function(){if(this.api.U("web_player_use_screen_width_for_big_mode")){var H;return this.api.NZ().getPlayerSize().width>=((H=g.hE(this.api.K().experiments,"web_player_big_mode_screen_width_cutoff"))!=null?H:2E3)}H=this.api.K();return this.api.isFullscreen()&&!H.B||!1}; g.M.showControls=function(H){this.fN=!H;this.Ex()}; g.M.h7=function(){var H=this.FM();this.tooltip.scale=H?1.5:1;this.contextMenu&&g.Bt(this.contextMenu.element,"ytp-big-mode",H);this.Ex();this.api.U("web_player_hide_overflow_button_if_empty_menu")||Y4(this);this.vy();var E=this.api.isEmbedsShortsMode();E&&H?(H=(this.api.NZ().getPlayerSize().width-this.api.getVideoContentRect().width)/2,g.AE(this.JE.element,"padding-left",H+"px"),g.AE(this.JE.element,"padding-right",H+"px")):E&&(g.AE(this.JE.element,"padding-left",""),g.AE(this.JE.element,"padding-right", ""));g.A0.prototype.h7.call(this)}; g.M.s8=function(){if(zBw(this)&&!g.UR(this.api))return!1;var H=this.api.getVideoData();return!g.L3(this.api.K())||this.api.getPresentingPlayerType()===2||!this.QA||((H=this.QA||H.QA)?(H=H.embedPreview)?(H=H.thumbnailPreviewRenderer,H=H.videoDetails&&g.X(H.videoDetails,xzl)||null):H=null:H=null,H&&H.collapsedRenderer&&H.expandedRenderer)?g.A0.prototype.s8.call(this):!1}; g.M.vy=function(){g.A0.prototype.vy.call(this);this.api.logVisibility(this.title.element,!!this.dH);this.v3&&this.v3.qL(!!this.dH);this.channelAvatar.qL(!!this.dH);this.overflowButton&&this.overflowButton.qL(this.jA()&&!!this.dH);this.shareButton&&this.shareButton.qL(!this.jA()&&!!this.dH);this.XZ&&this.XZ.qL(!this.jA()&&!!this.dH);this.searchButton&&this.searchButton.qL(!this.jA()&&!!this.dH);this.copyLinkButton&&this.copyLinkButton.qL(!this.jA()&&!!this.dH);if(!this.dH){this.api.Zq(this.JE.element); for(var H=0;H5&&E.g5("glrs",{cmt:G});E.seekTo(0,{seekSource:58});E.g5("glrre",{cmt:G})}}; jQ.prototype.G$=function(){this.L=null;g.J.prototype.G$.call(this)};g.C(g.fp,vX);g.M=g.fp.prototype;g.M.isView=function(){return!0}; g.M.WZ=function(){var H=this.mediaElement.getCurrentTime();if(H1;jz(H.qV(),P-.01)&&!Q&&(PU(this,4),G.isActive=!1,G.F8=G.F8||G.isActive,(this.T===1?this.L:this.W).g5("sbh",{}),E.isActive=!0,E.F8=E.F8||E.isActive,this.T!==0&&(this.L.getVideoData().xG=!0));H=this.D.W;if(this.D.L.isActive&&H.isActive&&(PU(this,5),this.T!==0)){H=this.W.zp();G=this.L.zp(); this.L.g5("sbs",{citag:G==null?void 0:G.itag,nitag:H==null?void 0:H.itag});this.W.g5("gitags",{pitag:G==null?void 0:G.itag,citag:H==null?void 0:H.itag});var e;(e=this.W)==null||e.gk()}}}; g.M.QH=function(){this.o4()&&this.xz("player-reload-after-handoff")}; g.M.xz=function(H,E){E=E===void 0?{}:E;if(!this.Iu()&&this.status.status!==6){var G=this.status.status>=4&&H!=="player-reload-after-handoff";this.status={status:Infinity,error:H};if(this.L&&this.W){var P=this.W.getVideoData().clientPlaybackNonce;this.L.Di(new g.q$("dai.transitionfailure",Object.assign(E,{cpn:P,transitionTimeMs:this.tD,msg:H})));this.L.c9(G)}this.Aq.reject(H);this.dispose()}}; g.M.o4=function(){return this.status.status>=4&&this.status.status<6}; g.M.G$=function(){NxU(this);this.L.unsubscribe("newelementrequired",this.QH,this);if(this.G){var H=this.G.W;this.G.L.Rx.unsubscribe("updateend",this.Ae,this);H.Rx.unsubscribe("updateend",this.Ae,this)}g.J.prototype.G$.call(this)}; g.M.F_=function(H){g.Sv(H,128)&&this.xz("player-error-event")};g.C(QO,g.J);QO.prototype.clearQueue=function(H,E){H=H===void 0?!1:H;E=E===void 0?!1:E;this.D&&this.D.reject("Queue cleared");this.app.K().U("html5_gapless_fallback_on_qoe_restart_v2")||E&&this.W&&this.W.c9(!1);Ss(this,H)}; QO.prototype.wG=function(){return!this.L}; QO.prototype.o4=function(){var H;return((H=this.G)==null?void 0:H.o4())||!1}; QO.prototype.G$=function(){Ss(this);g.J.prototype.G$.call(this)};g.C(Oo,g.z7);g.M=Oo.prototype;g.M.getVisibilityState=function(H,E,G,P,Q,e,w,t){return H?4:Q&&lZd?7:wOt&&!(sJ()||document.hasFocus&&document.hasFocus())||sJ()?3:E?2:G?1:P?5:Q&&!lZd?7:e?8:w?9:t?10:0}; g.M.PA=function(H){this.fullscreen!==H&&(this.fullscreen=H,this.JC())}; g.M.setMinimized=function(H){this.W!==H&&(this.W=H,this.JC())}; g.M.setInline=function(H){this.inline!==H&&(this.inline=H,this.JC())}; g.M.KO=function(H){this.pictureInPicture!==H&&(this.pictureInPicture=H,this.JC())}; g.M.setSqueezeback=function(H){this.G!==H&&(this.G=H,this.JC())}; g.M.ev=function(H){this.D!==H&&(this.D=H,this.JC())}; g.M.w6=function(){return this.L}; g.M.NO=function(){return this.fullscreen!==0}; g.M.isFullscreen=function(){return this.fullscreen!==0&&this.fullscreen!==4}; g.M.Th=function(){return this.fullscreen}; g.M.isMinimized=function(){return this.W}; g.M.isInline=function(){return this.inline}; g.M.isBackground=function(){return sJ()}; g.M.tE=function(){return this.pictureInPicture}; g.M.HE=function(){return!1}; g.M.tZ=function(){return this.G}; g.M.St=function(){return this.D}; g.M.JC=function(){this.publish("visibilitychange");var H=this.getVisibilityState(this.w6(),this.isFullscreen(),this.isMinimized(),this.isInline(),this.tE(),this.HE(),this.tZ(),this.St());H!==this.C&&this.publish("visibilitystatechange");this.C=H}; g.M.G$=function(){p$u(this.T);g.z7.prototype.G$.call(this)};g.C(g.iX,g.J);g.M=g.iX.prototype;g.M.G$=function(){this.videoData=this.playerState=null;g.J.prototype.G$.call(this)}; g.M.addCueRange=function(){}; g.M.XD=function(){}; g.M.IV=function(){}; g.M.gm=function(){return!1}; g.M.AX=function(){return!1}; g.M.lE=function(){}; g.M.q9=function(){}; g.M.Qz=function(){return[]}; g.M.TW=function(){}; g.M.Of=function(){}; g.M.qB=function(){return 1}; g.M.getAudioTrack=function(){return this.getVideoData().UT}; g.M.z2=function(){return null}; g.M.getAvailableAudioTracks=function(){return[]}; g.M.ws=function(){return[]}; g.M.uH=function(){return[]}; g.M.Yz=function(){return""}; g.M.tj=function(){return[]}; g.M.eI=function(){}; g.M.WK=function(){return 0}; g.M.getCurrentTime=function(){return 0}; g.M.AI=function(){}; g.M.zp=function(){}; g.M.NL=function(){return{}}; g.M.getDuration=function(){return 0}; g.M.Ev=function(){return 0}; g.M.JT=function(){return 0}; g.M.A5=function(){return!1}; g.M.XR=function(){return 0}; g.M.dU=function(){return 0}; g.M.Wn=oF(7);g.M.sB=function(){return 0}; g.M.GP=function(){return!1}; g.M.Q0=function(){return 0}; g.M.xt=function(){return null}; g.M.x7=function(){return null}; g.M.MC=function(){return 0}; g.M.P5=function(){return 0}; g.M.kH=function(){return g.L(function(H){g.P2(H)})}; g.M.rd=oF(15);g.M.getPlaybackQuality=function(){return"auto"}; g.M.getPlaybackRate=function(){return 1}; g.M.getPlayerState=function(){this.playerState||(this.playerState=new g.bb);return this.playerState}; g.M.getPlayerType=function(){return 0}; g.M.getPlaylistSequenceForTime=function(){return null}; g.M.sQ=function(){return function(){}}; g.M.J2=function(){return""}; g.M.getPreferredQuality=function(){return"unknown"}; g.M.zV=function(){}; g.M.getProximaLatencyPreference=function(){return 0}; g.M.N3=function(){return q3}; g.M.XM=function(){return null}; g.M.getStoryboardFormat=function(){return null}; g.M.getStreamTimeOffset=function(){return 0}; g.M.Ax=function(){return 0}; g.M.YV=function(){return 0}; g.M.My=function(){return{Lc:[],wI:[],currentTime:0,Xh:"",droppedVideoFrames:0,isGapless:!1,wG:!0,SK:0,J8:0,Hx:0,lK:0,bK:0,QE:[],qK:[],Xd:null,playerState:this.getPlayerState(),Ji:null,j6:"",totalVideoFrames:0}}; g.M.getUserAudio51Preference=function(){return 0}; g.M.getUserPlaybackQualityPreference=function(){return""}; g.M.getVideoData=function(){this.videoData||(this.videoData=new g.KD(this.X),g.d(this,this.videoData));return this.videoData}; g.M.t1=function(){return null}; g.M.AJ=function(){return null}; g.M.mj=function(){}; g.M.getVideoLoadedFraction=function(){return 0}; g.M.YX=function(){}; g.M.handleError=function(){}; g.M.c9=function(){}; g.M.Ln=function(){}; g.M.ZG=oF(40);g.M.FG=function(){return!1}; g.M.hasSupportedAudio51Tracks=function(){return!1}; g.M.isAd=function(){return!1}; g.M.EZ=function(){return!1}; g.M.w6=function(){return!1}; g.M.isAtLiveHead=function(){return!1}; g.M.xT=function(){return!0}; g.M.isGapless=function(){return!1}; g.M.isHdr=function(){return!1}; g.M.kX=function(){return!1}; g.M.aY=function(){return!1}; g.M.d4=function(){return!1}; g.M.isProximaLatencyEligible=function(){return!1}; g.M.wG=function(){return!0}; g.M.QJ=function(){return!1}; g.M.RY=function(){return!1}; g.M.v0=function(){}; g.M.J6=function(){}; g.M.gk=function(){}; g.M.hp=function(){}; g.M.hL=function(){}; g.M.PQ=function(){}; g.M.m3=function(){}; g.M.Dq=oF(50);g.M.KM=oF(21);g.M.z8=function(){}; g.M.pauseVideo=function(){}; g.M.prefetchKeyPlay=function(){}; g.M.playVideo=function(){return g.L(function(H){return H.return()})}; g.M.g0=function(){}; g.M.cL=oF(27);g.M.rG=oF(33);g.M.Ag=function(){}; g.M.g5=function(){}; g.M.y0=function(){}; g.M.Z0=function(){}; g.M.fO=function(){}; g.M.Di=function(){}; g.M.HP=function(){}; g.M.ub=function(){}; g.M.fp=function(){}; g.M.Oy=function(){}; g.M.bb=function(){}; g.M.fR=function(){}; g.M.removeCueRange=function(){}; g.M.RD=function(){}; g.M.dV=function(){return[]}; g.M.mp=function(){}; g.M.ix=function(){}; g.M.J3=function(){}; g.M.nO=function(){}; g.M.Ym=function(){}; g.M.On=function(){}; g.M.iT=function(){}; g.M.seekTo=function(){}; g.M.sendAbandonmentPing=function(){}; g.M.sendVideoStatsEngageEvent=function(){}; g.M.NA=function(){}; g.M.setLoop=function(){}; g.M.vP=function(){}; g.M.setMediaElement=function(){}; g.M.Ul=function(){}; g.M.setPlaybackRate=function(){}; g.M.kq=function(){}; g.M.VQ=function(){}; g.M.Aj=function(){}; g.M.setProximaLatencyPreference=function(){}; g.M.oN=function(){}; g.M.Ct=function(){}; g.M.mJ=function(){}; g.M.r9=function(){}; g.M.hY=function(){}; g.M.setUserAudio51Preference=function(){}; g.M.u_=function(){}; g.M.u8=function(){return!1}; g.M.fz=function(){}; g.M.bB=function(){return!1}; g.M.T3=function(){}; g.M.vS=function(){}; g.M.yd=function(){}; g.M.stopVideo=function(){}; g.M.subscribe=function(){return NaN}; g.M.QY=function(){}; g.M.togglePictureInPicture=function(){}; g.M.JN=function(){return 0}; g.M.MU=function(){}; g.M.unsubscribe=function(){return!1}; g.M.mR=function(){}; g.M.mD=function(){return!1}; g.M.fB=function(){}; g.M.m_=function(){}; g.M.Nn=function(){};g.C(IH,g.J);g.M=IH.prototype;g.M.get=function(H){Fn(this);var E=this.data.find(function(G){return G.key===H}); return E?E.value:null}; g.M.set=function(H,E,G){this.remove(H,!0);Fn(this);H={key:H,value:E,expire:Infinity};G&&isFinite(G)&&(G*=1E3,H.expire=(0,g.ON)()+G);for(this.data.push(H);this.data.length>this.G;)(G=this.data.shift())&&MM(this,G,!0);DX(this)}; g.M.remove=function(H,E){E=E===void 0?!1:E;var G=this.data.find(function(P){return P.key===H}); G&&(MM(this,G,E),g.fn(this.data,function(P){return P.key===H}),DX(this))}; g.M.removeAll=function(H){if(H=H===void 0?!1:H)for(var E=g.R(this.data),G=E.next();!G.done;G=E.next())MM(this,G.value,H);this.data=[];DX(this)}; g.M.G$=function(){var H=this;g.J.prototype.G$.call(this);this.data.forEach(function(E){MM(H,E,!0)}); this.data=[]};g.C(g.Ee,g.J);g.M=g.Ee.prototype;g.M.G$=function(){for(var H=g.R(Object.values(this.D)),E=H.next();!E.done;E=H.next())E.value.dispose();Hs1(this);this.L.dispose();g.J.prototype.G$.call(this)}; g.M.PY=function(H){return H?H===1?this.N:this.G.getVideoData().enableServerStitchedDai&&H===2?this.G.getVideoData().p9?this.D[2]||this.G:this.G:this.D[H]||null:this.G}; g.M.EQ=function(H){var E=H.cpn;H=H.playerType;if(E)a:{H=g.R(Object.values(this.D));for(var G=H.next();!G.done;G=H.next())if(G=G.value,G.Yz()===E){E=G;break a}E=this.T[E]||null}else E=H?this.PY(H):this.G;return E}; g.M.qZ=function(){return this.N}; g.M.BP=function(H){this.N=H}; g.M.jR=function(){return this.G}; g.M.PV=function(H){this.G=H;fJ(this)}; g.M.JV=oF(46);g.M.xP=oF(48);g.C(L9,g.gK);g.M=L9.prototype;g.M.Fb=function(){}; g.M.Yz=function(){return this.videoData.clientPlaybackNonce}; g.M.getVideoData=function(){if(g.gK.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){var H=A2l(this.ze,g.gK.prototype.getCurrentTime.call(this))||g.gK.prototype.getVideoData.call(this);this.videoData.clientPlaybackNonce!==H.clientPlaybackNonce&&MS(this.D,"cpn",{cpn:this.videoData.clientPlaybackNonce,ref:H.clientPlaybackNonce});return this.videoData}return A2l(this.ze,g.gK.prototype.getCurrentTime.call(this))||g.gK.prototype.getVideoData.call(this)}; g.M.getCurrentTime=function(H){var E=g.gK.prototype.getCurrentTime.call(this);if(g.gK.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){this.L===0?H||(E-=this.startTimeSecs,g.gK.prototype.getVideoData.call(this).U("html5_ssdai_log_missed_ad_impressions")&&this.W&&this.G&&E>1&&this.g5("sdai-admiss",{cpn:this.Yz(),ct:E.toFixed(3),pfs:this.G}),this.W=!1):H&&(E=this.L);var G=H?this.ze.cN||g.gK.prototype.getCurrentTime.call(this):n9n(this.ze,g.gK.prototype.getCurrentTime.call(this)); E!==G&&MS(this.D,"time"+(H!=null?H:!1),{time:E,ref:G,ct:H!=null?H:!1})}else E=H?this.ze.cN||E:n9n(this.ze,E);return E}; g.M.getDuration=function(){if(g.gK.prototype.getVideoData.call(this).U("html5_huli_ssdai_use_playback_state")){var H=i3t(this.ze,g.gK.prototype.getCurrentTime.call(this));this.duration!==H&&MS(this.D,"duration",{dur:this.duration,ref:H});return this.duration}return i3t(this.ze,g.gK.prototype.getCurrentTime.call(this))}; g.M.uB=function(H){this.duration=H};g.CQ.prototype.x9=function(H,E){if(E===1)return this.L.get(H);if(E===2)return this.G.get(H);if(E===3)return this.W.get(H)}; g.CQ.prototype.dh=oF(58);g.CQ.prototype.aQ=function(H,E,G,P){G={bE:P,N5:G};E?this.G.set(H,G):this.L.set(H,G)}; g.CQ.prototype.clearAll=function(){this.L.clear();this.G.clear();this.W.clear()}; M2v.prototype.clear=function(){this.W=[];this.G.clear();this.D.clear();this.L.clear()}; M2v.prototype.EQ=function(H){var E=H.cpn;H=H.U9;if(E&&(E=this.G.get(E))||H&&(E=(this.T?this.G:this.D).get(H)))return E}; g.C(g.Gs,g.J);g.M=g.Gs.prototype;g.M.onCueRangeEnter=function(H){var E=H.getId();this.LP({oncueEnter:1,cpn:E,start:H.start,end:H.end,ct:(this.playback.getCurrentTime()||0).toFixed(3),cmt:(this.playback.WK()||0).toFixed(3)});var G=this.L.EQ({cpn:E});this.LP({enterAdCueRange:1});var P=this.e7||this.FZ().cpn,Q;P=(Q=this.L.EQ({cpn:P}))!=null?Q:this.FZ();G&&(Q=this.playback.getCurrentTime(),G.startTimeSecs=H.start/1E3,G={P4:P,H4:G,uI:Q},kB1(this,E,H.start/1E3,Q),w4(this,G));this.eR=!1}; g.M.GO=function(H,E,G){if(H&&E)if((this.app.UR().T[H]||null)===null){var P;this.LP({nocpn:H,active:(P=this.app.UR().W)==null?void 0:P.Yz()})}else{this.eR=G!=null?G:!1;var Q;G=((Q=this.app.UR().W)==null?void 0:Q.Yz())||this.playback.Yz();var e;Q=(e=this.L.EQ({cpn:G}))!=null?e:this.FZ();var w;e=(w=this.L.EQ({cpn:H}))!=null?w:this.FZ();e.startTimeSecs=E;e.playerType===2&&(e.wc=e.wc!=null?Math.min(e.wc,E):E);w=this.playback.getCurrentTime();kB1(this,G,E,w);w4(this,{P4:Q,H4:e,uI:w});if(this.playback.getVideoData().mV()&& H===this.playback.Yz())if(E=this.U2.get(G)){var t;H=g.R((t=this.T$.get(E))!=null?t:[]);for(t=H.next();!t.done;t=H.next()){t=t.value;w=this.app.UR();if(G=w.T[t])w.W===G&&(w.W=null),w.C===G&&(w.C=null),delete w.T[t];this.E7.delete(t);this.U2.delete(t)}this.T$.delete(E)}else this.LP({no_abid:H})}}; g.M.ZK=function(H,E){if(H===this.playback.Yz())pJ(this.app.UR(),this.playback,!1);else{var G=this.E7.get(H);G?(H=!this.eR,G.L=0,G.startTimeSecs=E,G.G=H===void 0?!0:H,G.W=!0,pJ(this.app.UR(),G,!0)):this.LP({nop_s:H})}}; g.M.onCueRangeExit=function(H){for(var E=this.playback.getCurrentTime()*1E3,G=H.getId(),P=g.R(this.W.values()),Q=P.next();!Q.done;Q=P.next())if(Q=Q.value,Q.getId()!==G&&E>=Q.start&&E<=Q.end)return;if(G=this.L.EQ({cpn:G}))E=this.playback.getCurrentTime(),P=this.FZ(),P.startTimeSecs=H.end/1E3,G={P4:G,H4:P,uI:E},kB1(this,this.playback.Yz(),H.end/1E3,E),w4(this,G)}; g.M.FZ=function(){return{cpn:this.playback.Yz(),durationMs:0,HO:0,playerType:1,gV:0,videoData:this.playback.getVideoData(),errorCount:0,qM:""}}; g.M.seekTo=function(H,E,G,P){H=H===void 0?0:H;E=E===void 0?{}:E;G=G===void 0?!1:G;P=P===void 0?null:P;y1(this,this.e7);if(this.playback.getVideoData().mV()&&H<=this.cN)this.playback.pauseVideo(),this.cN=0,ubd(this,H);else if(this.eR=this.p_=!0,G)vrv(this,H,E);else{G=this.app.jR();var Q=G===this.O7?this.s7:null;T6(this,!1);this.dP=H;this.G6=E;P!=null&&this.FI.start(P);G&&(this.s7=Q||G.getPlayerState(),G.yd(E),this.O7=G)}}; g.M.G$=function(){T6(this,!1);Vr(this);PEw(this);g.J.prototype.G$.call(this)}; g.M.vZ=function(H){this.jT=H;this.LP({swebm:H})}; g.M.EB=function(H,E,G){if(G&&E){var P=this.T.get(H);if(P){P.locations||(P.locations=new Map);var Q=Number(E.split(";")[0]);G=new g.uo(G);this.LP({hdlredir:1,itag:E,seg:H,hostport:u5(65,G)});P.locations.set(Q,G)}}}; g.M.XP=function(H,E,G,P,Q,e){var w=P===3,t=Wo1(this,H,E,P,G,e);if(!t){uz(this,E,w);var k=g.H$(this,E)?"undec":"ncp";this.LP({gvprp:k,mt:H,seg:E,tt:P,itag:G,ce:e});return null}w||this.T.set(E,t);e=t.qM;var W;P=((W=this.x9(E-1,P,Q))==null?void 0:W.bE)||"";P===""&&this.LP({eds:1});W=u7w(this,t.ssdaiAdsConfig);Q=this.playback.getVideoData();var I;w=((I=Q.W)==null?void 0:I.containerType)||0;I=Q.zo[w];t=t.vn&&E>=t.vn?t.vn:void 0;I={Mb:e?wEq(this,e):[],adsConfig:W,bE:P,ZC:t,rJ:EN(I.split(";")[0]),Yu:I.split(";")[1]|| ""};t={yW:I};this.BF&&(H={gvprpro:"v",sq:E,mt:H.toFixed(3),itag:G,acpns:((k=I.Mb)==null?void 0:k.join("_"))||"none",abid:e},this.LP(H));return t}; g.M.P1=function(H){a:{if(!this.jm){var E=KI(this,H);if(!(this.playback.getVideoData().mV()&&(E==null?0:E.FL)))break a}E=void 0}var G=E;if(!G)return this.LP({gvprp:"ncp",mt:H}),null;E=G.qM;var P=u7w(this,G.ssdaiAdsConfig);G=G.vn&&G.R6&&H>=G.R6?G.vn:void 0;var Q=this.playback.getVideoData(),e,w=((e=Q.W)==null?void 0:e.containerType)||0;e=Q.zo[w];e={Mb:E?wEq(this,E):[],adsConfig:P,ZC:G,rJ:EN(e.split(";")[0]),Yu:e.split(";")[1]||""};var t;H={gvprpro:"v",mt:H.toFixed(3),acpns:((t=e.Mb)==null?void 0:t.join("_"))|| "none",abid:E};this.LP(H);return e}; g.M.Y9=function(H,E,G,P,Q,e){var w=Number(G.split(";")[0]),t=P===3;H=Wo1(this,H,E,P,G,e);this.LP({gdu:1,seg:E,itag:w,pb:""+!!H});if(!H)return uz(this,E,t),null;H.locations||(H.locations=new Map);if(!H.locations.has(w)){var k,W;e=(k=H.videoData.getPlayerResponse())==null?void 0:(W=k.streamingData)==null?void 0:W.adaptiveFormats;if(!e)return this.LP({gdu:"noadpfmts",seg:E,itag:w}),uz(this,E,t),null;k=e.find(function(m){return m.itag===w}); if(!k||!k.url){var I=H.videoData.videoId;H=[];var A=g.R(e);for(P=A.next();!P.done;P=A.next())H.push(P.value.itag);this.LP({gdu:"nofmt",seg:E,vid:I,itag:w,fullitag:G,itags:H.join(",")});uz(this,E,t);return null}H.locations.set(w,new g.uo(k.url,!0))}e=H.locations.get(w);if(!e)return this.LP({gdu:"nourl",seg:E,itag:w}),uz(this,E,t),null;e=new wR(e);this.jT&&(e.get("dvc")?this.LP({dvc:e.get("dvc")||""}):e.set("dvc","webm"));(P=(A=this.x9(E-1,P,Q))==null?void 0:A.bE)&&e.set("daistate",P);H.vn&&E>=H.vn&& e.set("skipsq",""+H.vn);(A=this.playback.getVideoData().clientPlaybackNonce)&&e.set("cpn",A);A=[];H.qM&&(A=wEq(this,H.qM),A.length>0&&e.set("acpns",A.join(",")));t||this.T.set(E,H);t=null;t=e.get("aids");P=e.TU();(P==null?void 0:P.length)>2048&&this.LP({urltoolong:1,sq:E,itag:w,len:P.length});this.BF&&(P&&(e=H.cpn,Q=H.qM,BLt(this,e,Q),Q&&!this.AG.has(Q)&&(e=Fxj(this,e,Q),k=h0t(this,Q),this.LP({iofa:e}),this.LP({noawnzd:k-e}),this.LP({acpns:A.join("."),aids:(I=t)==null?void 0:I.replace(/,/g,".")}), this.AG.add(Q))),this.LP({gdu:"v",seg:E,itag:G,ast:H.HO.toFixed(3),alen:H.durationMs.toFixed(3),acpn:H.cpn,avid:H.videoData.videoId}));return P}; g.M.oO=function(H,E,G){G=G===void 0?!1:G;var P=qz1(this,H,E);if(P){this.Fa&&(this.PF=P);var Q=void 0,e=P.qM;if(e){this.LP({skipadonsq:E,sts:G,abid:e,acpn:P.cpn,avid:P.videoData.videoId});G=this.L.L.get(e);if(!G)return;G=g.R(G);for(e=G.next();!e.done;e=G.next())e=e.value,e.vn=E,e.R6=H,e.HO>P.HO&&(Q=e)}y1(this,this.e7);this.G=P.cpn;k5t(this);this.api.U("html5_ssdai_enable_media_end_cue_range")&&this.playback.MU(this.G);H=this.playback.getCurrentTime();Vlu(this,P,Q,H,H,!1,!0);Zpw(this)}}; g.M.sA=function(){for(var H=g.R(this.L.W),E=H.next();!E.done;E=H.next())E=E.value,E.vn=NaN,E.R6=NaN;k5t(this);this.LP({rsac:"resetSkipAd",sac:this.G});this.au.delete(this.G);this.G="";this.Fa&&(this.PF=void 0)}; g.M.x9=function(H,E,G){return this.WF.x9(H,E,G)}; g.M.dh=oF(57); g.M.aQ=function(H,E,G,P,Q,e,w,t,k){P.length>0&&this.LP({onssinfo:1,sq:H,start:E.toFixed(3),cpns:P.join(","),ds:Q.join(","),isVideo:w?1:0});if(this.Fa&&this.PF&&this.PF.vn&&P.length>0){G=g.R(P);for(var W=G.next();!W.done;W=G.next())if(W=W.value,W===this.PF.cpn){this.AT!==W&&(this.LP({skiperror:1,sq:H,acpn:this.PF.cpn,skipsq:this.PF.vn||0}),this.AT=W);break}}k&&this.WF.aQ(H,w,t,k);if(w){if(P.length&&Q.length)for(this.au.has(P[0])&&this.LP({skipfail:1,sq:H,acpn:P[0]}),H=E+this.Ax(),w=0;w0&&(this.H9=0,this.e7="",this.X.U("html5_huli_ssdai_use_playback_state")&&this.ZK(this.playback.Yz(),0),this.api.publish("serverstitchedvideochange"));this.playback.q9(G,P);return!0}; g.M.e1=function(){this.LP({rstdaist:1});this.WF.clearAll()}; g.M.Iz=function(H){var E;if(H!==((E=this.C)==null?void 0:E.identifier))this.LP({ignorenoad:H});else{this.qC.add(H);this.LP({noadrcv:H});var G;((G=this.C)==null?void 0:G.identifier)===H&&lB(this)}}; g.M.F7=function(H){if(this.jm)return this.LP({dai_disabled:H.event}),!1;if(this.playback.getVideoData().mV()&&(H.event==="continue"||H.event==="stop"))return!1;var E=Ye(this.api.lm());if(E=E?E.F7(H):!1)this.D={KN:H.identifier,RS:H.startSecs};else if(this.D&&this.D.KN===H.identifier&&H.startSecs>this.D.RS+1){this.LP({cueStChg:H.identifier,oldSt:this.D.RS.toFixed(3),newSt:H.startSecs.toFixed(3),abid:this.D.X8});if(this.D.X8){var G=H.startSecs-this.D.RS,P=this.L.L.get(this.D.X8);if(P){P=g.R(P);for(var Q= P.next();!Q.done;Q=P.next())Q=Q.value,Q.HO>=0&&(Q.HO+=G*1E3,this.X.U("html5_ssdai_update_timeline_on_start_time_change")&&(Q.gV+=G*1E3),this.LP({newApEt:Q.HO,newApPrt:Q.gV,acpn:Q.cpn}))}}this.D.RS=H.startSecs}E?this.z$.add(H.identifier):this.z$.has(H.identifier)&&this.z$.delete(H.identifier);return E}; g.M.Q7=function(H){var E="";H?H.event==="unknown"?E="unknown":this.z$.has(H.identifier)?this.D&&this.D.KN===H.identifier?this.D.KN===H.identifier?E="pending":YZ(this.hm,function(G){return G.identifier===H.identifier})||(E="noAdsAdded"):E="wrongAdBreakInfo":E="unscheduled":E="noCuepoint"; return E}; g.M.Ds=function(H){return this.jm?!1:!!KI(this,H)}; g.M.sO=function(H){var E=this;if(this.X.U("html5_lifa_ignore_multiple_skips")&&this.Jm)return this.LP({ufs_ad:this.G,ufs_cur:this.e7,ufs_cont:this.FZ().cpn}),!1;y1(this,this.e7);this.playback.pauseVideo();var G=this.playback.getCurrentTime(),P=this.L.EQ({cpn:this.e7});if(!P)return this.LP({skipFail:G}),!1;this.G=this.e7;this.p_=!1;this.api.U("html5_ssdai_enable_media_end_cue_range")&&this.playback.MU(this.G);this.DP(P.qM);vcv(this,P,this.FZ(),H);ubd(this,G,{seekSource:89,cO:"lifa_skip"});this.Jm|| (this.Jm=this.events.Z(this.api,"progresssync",function(){ME(E.api.Nf(),(0,g.ON)(),"ad_to_video");E.Jm&&(E.events.Sq(E.Jm),E.Jm=null)})); return!0}; g.M.DP=function(H){if(this.playback.getVideoData().mV()){var E=this.L.L.get(H);if(E){E=g.R(E);for(var G=E.next();!G.done;G=E.next()){G=G.value;var P=this.W.get(G.cpn);this.W.delete(G.cpn);P&&this.playback.removeCueRange(P);kl7(this.L,G)}this.T.clear();E=this.L;var Q;G=(Q=E.L.get(H))!=null?Q:[];Q=g.R(G);for(G=Q.next();!G.done;G=Q.next())kl7(E,G.value);E.L.delete(H);(H=this.V8.get(H))&&this.UT&&this.playback.nO(H)}}}; g.M.LP=function(H,E){((E===void 0?0:E)||this.BF||this.playback.getVideoData().mV())&&this.playback.g5("sdai",H)}; var fOQ=0;g.C(MD,g.J);g.M=MD.prototype;g.M.onCueRangeEnter=function(H){if(this.L===this.app.jR()){var E=this.T.get(H);E?vTt(this,E.target,E.tD,H):this.Di("dai.transitionfailure",{e:"unexpectedCueRangeTriggered",cr:H.toString()})}else if(E=this.W.find(function(Q){return Q.Pr.ER===H})){var G=E.Pr,P=G.target; G=G.tD;P?vTt(this,P,G,H):ALs(this,E.gV,G,H)}}; g.M.onQueuedVideoLoaded=function(){var H=this.B;WS(this);if(H){if(!TV(this,H)){var E=this.app.jR();this.Di("dai.transitionfailure",{e:"unexpectedPresentingPlayer",pcpn:E==null?void 0:E.getVideoData().clientPlaybackNonce,ccpn:""+H.playerVars.cpn})}this.app.jR().addCueRange(H.Pr.ER)}}; g.M.seekTo=function(H,E,G,P){H=H===void 0?0:H;E=E===void 0?{}:E;P=P===void 0?null:P;if(G===void 0?0:G)OOw(this,H,E);else{G=this.app.jR()||null;var Q=G===this.D?this.C:null;Sr(this,!1);this.p_=H;this.L_=E;P!=null&&this.N.start(P);G&&(this.C=Q||G.getPlayerState(),G.yd(),this.D=G)}}; g.M.kx=function(H){g.Sv(H,128)&&u47(this)}; g.M.isManifestless=function(){return Bm(this.L.getVideoData())}; g.M.G$=function(){Sr(this,!1);wp(this);g.J.prototype.G$.call(this)}; g.M.Di=function(H,E){this.L.Di(new g.q$(H,E))}; var YZj=0;var Hnl="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_APPS 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.C(AA,g.J);AA.prototype.eY=function(H){if(H)return this.W.get(H)}; AA.prototype.G$=function(){this.L.removeAll();this.W.removeAll();g.J.prototype.G$.call(this)};g.EnM=$Z(function(){var H=window.AudioContext||window.webkitAudioContext;try{return new H}catch(E){return E.name}});g.C(aVq,g.D);g.M=aVq.prototype;g.M.Vw=function(){g.rl(this.element,g.c4.apply(0,arguments))}; g.M.ix=function(){this.s2&&(this.s2.removeEventListener("focus",this.rg),g.LQ(this.s2),this.s2=null)}; g.M.qv=function(){this.Iu();var H=this.app.K();H.X7||this.Vw("tag-pool-enabled");H.C&&this.Vw(g.JN.HOUSE_BRAND);H.playerStyle==="gvn"&&(this.Vw("ytp-gvn"),this.element.style.backgroundColor="transparent");H.U2&&(this.Bz=g.tf("yt-dom-content-change",this.resize,this));this.Z(window,"orientationchange",this.resize,this);this.Z(window,"resize",this.resize,this)}; g.M.ZH=function(H){g.HZ(this.app.K());this.D4=!H;Tp(this)}; g.M.resize=function(){if(this.s2){var H=this.sR();if(!H.isEmpty()){this.app.cF.isFullscreen()&&du()&&this.xD.start();var E=!g.n5(H,this.Lt.getSize()),G=RxM(this);E&&(this.Lt.width=H.width,this.Lt.height=H.height);H=this.app.K();(G||E||this.Df||H.U2)&&this.app.cF.publish("resize",this.getPlayerSize())}}}; g.M.QW=function(H,E){this.updateVideoData(E)}; g.M.updateVideoData=function(H){if(this.s2){var E=this.app.K();r3&&(this.s2.setAttribute("x-webkit-airplay","allow"),H.title?this.s2.setAttribute("title",H.title):this.s2.removeAttribute("title"));this.s2.setAttribute("controlslist","nodownload");E.e2&&H.videoId&&(this.s2.poster=H.QM("default.jpg"))}E=g.KH(H,"yt:bgcolor");this.iE.style.backgroundColor=E?E:"";this.WU=n0(g.KH(H,"yt:stretch"));this.iY=n0(g.KH(H,"yt:crop"),!0);g.Bt(this.element,"ytp-dni",H.Xg);this.resize()}; g.M.setGlobalCrop=function(H){this.Ue=n0(H,!0);this.resize()}; g.M.setCenterCrop=function(H){this.Pe=H;this.resize()}; g.M.PA=function(){}; g.M.getPlayerSize=function(){var H=this.app.K(),E=this.app.cF.isFullscreen(),G=H.externalFullscreen&&g.L3(H);if(E&&du()&&!G)return new g.P4(window.outerWidth,window.outerHeight);G=!isNaN(this.J0.width)&&!isNaN(this.J0.height);var P=this.app.K().U("kevlar_player_enable_squeezeback_fullscreen_sizing")||this.app.K().U("web_watch_enable_fs_squeezeback_panels");if(E&&!G&&P)return new g.P4(this.element.clientWidth,this.element.clientHeight);if(E||H.KZ){if(window.matchMedia){H="(width: "+window.innerWidth+ "px) and (height: "+window.innerHeight+"px)";this.o7&&this.o7.media===H||(this.o7=window.matchMedia(H));var Q=this.o7&&this.o7.matches}if(Q)return new g.P4(window.innerWidth,window.innerHeight)}else if(G)return this.J0.clone();return new g.P4(this.element.clientWidth,this.element.clientHeight)}; g.M.sR=function(){var H=this.app.K().U("enable_desktop_player_underlay"),E=this.getPlayerSize(),G=g.hE(this.app.K().experiments,"player_underlay_min_player_width");return H&&this.cw&&E.width>G?(H=g.hE(this.app.K().experiments,"player_underlay_video_width_fraction"),new g.P4(Math.min(E.height*this.getVideoAspectRatio(),E.width*H),Math.min(E.height,E.width*H/this.getVideoAspectRatio()))):E}; g.M.getVideoAspectRatio=function(){return isNaN(this.WU)?Xxw(this):this.WU}; g.M.getVideoContentRect=function(H){var E=this.sR();H=jm1(this,E,this.getVideoAspectRatio(),H);return new g.Yn((E.width-H.width)/2,(E.height-H.height)/2,H.width,H.height)}; g.M.OV=function(H){this.cw=H;this.resize()}; g.M.ED=function(){return this.V9}; g.M.onMutedAutoplayChange=function(){Tp(this)}; g.M.setInternalSize=function(H){g.n5(this.J0,H)||(this.J0=H,this.resize())}; g.M.G$=function(){this.Bz&&g.$O(this.Bz);this.ix();g.D.prototype.G$.call(this)};g.M=yFt.prototype;g.M.click=function(H,E){this.elements.has(H);this.L.has(H);var G=g.ri();G&&H.visualElement&&g.aF(G,H.visualElement,E)}; g.M.createClientVe=function(H,E,G,P){var Q=this;P=P===void 0?!1:P;this.elements.has(H);this.elements.add(H);G=Clj(G);H.visualElement=G;var e=g.ri(),w=g.X3();e&&w&&(g.Xj("combine_ve_grafts")?Yw(jq(),G,w):g.NL(g.IC)(void 0,e,w,G));E.addOnDisposeCallback(function(){Q.elements.has(H)&&Q.destroyVe(H)}); P&&this.W.add(H)}; g.M.createServerVe=function(H,E,G){var P=this;G=G===void 0?!1:G;this.elements.has(H);this.elements.add(H);E.addOnDisposeCallback(function(){P.destroyVe(H)}); G&&this.W.add(H)}; g.M.destroyVe=function(H){this.elements.has(H);this.elements.delete(H);this.G.delete(H);this.L.delete(H);this.W.delete(H)}; g.M.ji=function(H,E){this.clientPlaybackNonce!==E&&(this.clientPlaybackNonce=E,kb(jq(),H),h$v(this))}; g.M.setTrackingParams=function(H,E){this.elements.has(H);E&&(H.visualElement=g.Bn(E))}; g.M.BT=function(H,E,G){this.elements.has(H);E?this.L.add(H):this.L.delete(H);var P=g.ri(),Q=H.visualElement;this.W.has(H)?P&&Q&&(E?g.LJ(P,[Q]):g.nm(P,[Q])):E&&!this.G.has(H)&&(P&&Q&&g.u8(P,Q,void 0,G),this.G.add(H))}; g.M.hasVe=function(H){return this.elements.has(H)};g.C(g.Pi,g.J);g.Pi.create=function(H,E,G,P){try{var Q=typeof H==="string"?H:"player"+g.bY(H),e=cc[Q];if(e){try{e.dispose()}catch(t){g.h3(t)}cc[Q]=null}var w=new g.Pi(H,E,G,P);w.addOnDisposeCallback(function(){cc[Q]=null;w.DR&&w.DR()}); return cc[Q]=w}catch(t){throw g.h3(t),(t&&t instanceof Error?t:Error(String(t))).stack;}}; g.M=g.Pi.prototype;g.M.Rs=function(){return this.visibility}; g.M.BP=function(H){var E=this.qZ();if(H!==E){H.getVideoData().autonavState=E.getVideoData().autonavState;E.mR(this.M$,this);var G=E.getPlaybackRate();E.dispose();this.XI.BP(H);H.setPlaybackRate(G);H.QY(this.M$,this);Fl(this)}}; g.M.Km=function(){this.ph||(this.ph=g.D0(Wb(),qt7()));return this.ph}; g.M.ix=function(H){if(this.mediaElement){this.FH&&(this.events.Sq(this.FH),this.FH=null);g.hH(this.l3);this.jR().ix(!0,!1,H);this.template.ix();try{this.U("html5_use_async_stopVideo")?this.mediaElement.dispose():this.mediaElement.Qs()}catch(E){g.p5(E)}this.mediaElement=null}}; g.M.PV=function(H,E,G){if(H!==this.jR()){var P=null;if(G===void 0||!G){G=this.jR();P=G.getPlayerState();Wm(this.hT,3);Vp(this,"cuerangesremoved",G.tj());this.D1&&!H.isGapless()&&G.isGapless()&&this.mediaElement&&this.mediaElement.stopVideo();G=H.u8()&&G.u8();this.HT.Ga("iv_s");G=G===void 0?!0:G;var Q;if(Q=this.rV){Q=this.rV;var e=this.mediaElement;Q=!!e&&e===Q.mediaElement}Q&&(this.ix(),Ux(this));Q=this.jR();Q.ix(!G);Q.mR(this.b0,this);Q.getPlayerType()!==1&&Q.dispose();G=this.XI;G.G=G.L;fJ(G)}H.getPlayerType()=== 1&&this.BP(H);G=H.getPlayerType();Q=this.XI.D[G]||null;H!==this.qZ()&&H!==Q&&(Q==null||Q.dispose(),this.XI.D[G]=H);this.XI.PV(H);this.mediaElement&&H.setMediaElement(this.mediaElement);H.QY(this.b0,this);H.RY()?dG(this,"setPresenting",!1):(this.QW("newdata",H,H.getVideoData()),P&&!g.s3(P,H.getPlayerState())&&this.C3(new g.Jt(H.getPlayerState(),P)),E=E&&H.getPlayerType()===1,H.aY()&&!E&&this.QW("dataloaded",H,H.getVideoData()),(E=(E=H.getVideoData().W)&&E.video)&&this.cF.tC("onPlaybackQualityChange", E.quality),Vp(this,"cuerangesadded",H.tj()),E=H.getPlayerState(),g.F(E,2)?lz7(this):g.F(E,8)?H.playVideo():H.kX()&&H.pauseVideo(),E=this.qZ(),H.getPlayerType()===2&&(H.getVideoData().vc=E.getVideoData().clientPlaybackNonce),H.getPlayerType()!==2||this.Xm()||(H=H.getVideoData(),E.g0(H.clientPlaybackNonce,H.jT||"",H.breakType||0,H.yQ,H.videoId||"")))}}; g.M.sj=function(){this.qZ()!==this.jR()&&this.PV(this.qZ())}; g.M.UR=function(){return this.XI}; g.M.EQ=function(H){return this.XI.EQ(H)}; g.M.PY=function(H){return this.XI.PY(H)}; g.M.qZ=function(){return this.XI.qZ()}; g.M.jR=function(){return this.XI.jR()}; g.M.yy=oF(44);g.M.Ijm=function(){BN(this)||this.UV(5)}; g.M.Xo$=function(){if(!BN(this)){fC(this);var H=this.jR(),E=H.getPlayerState();H.kX()?this.pauseVideo():E.isOrWillBePlaying()&&this.playVideo()}}; g.M.canPlayType=function(H){return H5(H)}; g.M.K=function(){return this.X}; g.M.getVideoData=function(){return this.jR().getVideoData()}; g.M.vl=oF(11);g.M.pS=function(){return this.qZ().getVideoData()}; g.M.getVideoLoadedFraction=function(H){return(H=g.TF(this,{playerType:H}))?H.getVideoLoadedFraction():this.XI.L.getVideoLoadedFraction()}; g.M.NZ=function(){return this.template}; g.M.lm=function(){return this.hT}; g.M.Nf=function(){return this.HT}; g.M.zB=function(H,E,G){(E=g.TF(this,{playerType:E===void 0?1:E}))&&E.NA(H,void 0,G)}; g.M.EY=function(){var H=this.hT.EY();this.cF.publish("videoStatsPingCreated",H);return H}; g.M.getVolume=function(){return Math.round(this.cF.getVolume())}; g.M.isMuted=function(){return this.cF.isMuted()}; g.M.CT=function(){if(this.qZ()===this.jR()&&this.PT)return this.PT.postId}; g.M.pLN=function(){var H=this;this.U("use_rta_for_player")||(g.vV(this.X)?g.Ns(this.X,g.RS(this.getVideoData())).then(function(E){Io(Wb(),E);Fzl(H.getVideoData(),H.X,H.Km())}):Fzl(this.getVideoData(),this.X,this.Km()))}; g.M.dI=function(H){this.cF.publish("poTokenVideoBindingChange",H)}; g.M.xJ=function(H){this.cF.publish("d6de4videobindingchange",H)}; g.M.zk=function(){this.HX&&this.HX.zk()}; g.M.YA=function(H){this.HX=H}; g.M.Ig=function(H){if(H===1){this.HT.tick("vr");var E=this.jR();E.IV();F7T(this.HT,E.getVideoData(),kDT(this));I7(this.hT)}E=this.X;if(EU(E)&&E.N||g.Rp(E)){var G;(((G=this.jR().getVideoData())==null?0:G.enableServerStitchedDai)||!this.Xm())&&this.cF.tC("onAdStateChange",H)}}; g.M.setLoopVideo=function(H){var E=this.jR();E===this.qZ()&&E.GP()!==H&&(E.setLoop(H),this.cF.n_("onLoopChange",H))}; g.M.getLoopVideo=function(){return this.jR().GP()}; g.M.setLoopRange=function(H){var E=!1;!!this.PT!==!!H?E=!0:this.PT&&H&&(E=this.PT.startTimeMs!==H.startTimeMs||this.PT.endTimeMs!==H.endTimeMs||this.PT.postId!==H.postId||this.PT.type!==H.type);if(E){E=this.jR();OV(E.getVideoData())&&E.g5("slr",{et:(H==null?void 0:H.endTimeMs)||-1});E=this.qZ();E.dV("applooprange");if(H){var G=new g.cP(H.startTimeMs,H.endTimeMs,{id:"looprange",namespace:"applooprange"});E.addCueRange(G)}else{this.pS().clipConfig=void 0;var P;((G=this.PT)==null?void 0:G.type)!=="repeatChapter"|| isNaN(Number((P=this.PT)==null?void 0:P.loopCount))||(G={loopCount:String(this.PT.loopCount),cpn:this.getVideoData().clientPlaybackNonce},g.HY("repeatChapterLoopEvent",G))}this.PT=H;this.cF.n_("onLoopRangeChange",H||void 0);this.qZ()===this.jR()&&(this.er(),E.lE())}}; g.M.getLoopRange=function(){return this.PT}; g.M.er=function(){var H="",E=this.qZ();this.PT?E!==this.jR()?H="pnea":ZPM(this,E.getCurrentTime())&&(this.PT.loopCount=0,H="ilr"):H="nlr";var G=this.jR();if(OV(G.getVideoData()))if(this.U("html5_gapless_log_loop_range_info")){var P,Q;G.g5("slrre",{rej:H,ct:E.getCurrentTime(),lst:(P=this.PT)==null?void 0:P.startTimeMs,let:(Q=this.PT)==null?void 0:Q.endTimeMs})}else G.g5("slrre",{});H||zK7(this)}; g.M.setPlaybackRate=function(H,E){if(!isNaN(H)){H=Mbu(this,H);var G=this.qZ();G.getPlaybackRate()!==H&&(G.setPlaybackRate(H),E&&!this.X.D&&g.Fj("yt-player-playback-rate",H),this.cF.tC("onPlaybackRateChange",H))}}; g.M.getCurrentTime=function(H,E){E=E===void 0?!0:E;var G=this.XI.pM;if(G)return G.getCurrentTime();var P=H===2&&this.getVideoData().enableServerStitchedDai;G=null;P?G=this.jR():G=g.TF(this,{playerType:H});return G?P&&this.xq?(H=this.XI.C)?H.getCurrentTime(E):G.getCurrentTime():E?(E=se(this,G),bI(this,E.getCurrentTime(),E)):G.getCurrentTime():this.XI.L.getCurrentTime()}; g.M.dU=function(){var H=g.TF(this,{playerType:void 0});if(!H)return this.XI.L.dU();H=se(this,H);return bI(this,H.dU(),H)}; g.M.getDuration=function(H,E){E=E===void 0?!0:E;var G=this.XI.pM;if(G)return G.getDuration();G=this.getVideoData();var P=H===2&&G.enableServerStitchedDai,Q=null;P?Q=this.jR():Q=g.TF(this,{playerType:H});if(!Q)return this.XI.L.getDuration();if(G.hasProgressBarBoundaries()&&!P){var e,w=Number((e=G.progressBarStartPosition)==null?void 0:e.utcTimeMillis),t;e=Number((t=G.progressBarEndPosition)==null?void 0:t.utcTimeMillis);if(!isNaN(w)&&!isNaN(e))return(e-w)/1E3}if(OV(G)&&!G.isLivePlayback)return KC(this, H);if(E)return H=jh(this,Q),bI(this,H.getDuration(),H);if(P&&this.xq){if(this.U("html5_huli_ssdai_use_playback_state"))return H=this.XI,H=H.W===H.C?H.W:null,(H==null?void 0:H.getDuration())||0;var k;return((k=this.XI.C)==null?void 0:k.getDuration())||0}return Q.getDuration()}; g.M.JT=function(H){var E=g.TF(this,{playerType:H});return E?this.Xm(E)?(E=jh(this,E),E.JT()-E.getCurrentTime()+this.getCurrentTime(H)):E.JT():this.XI.L.JT()}; g.M.finishSegmentByCpn=function(){return[]}; g.M.qv=function(){this.template.qv();var H=this.cF;H.state.element=this.template.element;var E=H.state.element,G;for(G in H.state.L)H.state.L.hasOwnProperty(G)&&(E[G]=H.state.L[G]);(H=Rhq(this.template.element))&&this.events.Z(this.template,H,this.onFullscreenChange)}; g.M.getDebugText=function(H){var E=this.qZ().NL(H),G=this.jR();if(G!==this.qZ()){G=G.NL(H);for(var P=g.R(Object.keys(G)),Q=P.next();!Q.done;Q=P.next())Q=Q.value,E["ad"+Q]=G[Q];if(H){G=E;P={};if(Q=km(document,"movie_player"))P.bounds=Q.getBoundingClientRect(),P["class"]=Q.className;Q={};var e=g.mO("video-ads");e?(yTQ(e,Q),Q.html=e.outerHTML):Q.missing=1;e={};var w=g.mO("videoAdUiSkipContainer"),t=g.mO("ytp-ad-skip-button-container"),k=g.mO("ytp-skip-ad-button"),W=w||t||k;W?(yTQ(W,e),e.ima=w?1:0,e.bulleit= t?1:0,e.component=k?1:0):e.missing=1;P=JSON.stringify({player:P,videoAds:Q,skipButton:e});G.ad_skipBtnDbgInfo=P}}H&&this.mediaElement&&(E["0sz"]=""+(+v$(this.mediaElement.getSize())===0),E.op=this.mediaElement.Zy("opacity"),G=this.mediaElement.OC().y+this.mediaElement.getSize().height,E.yof=""+(+G<=0),E.dis=this.mediaElement.Zy("display"));H&&((H=(0,g.WF)())&&(E.gpu=H),(H=this.X.playerStyle)&&(E.ps=H),this.X.eR&&(E.webview=1),(H=this.webPlayerContextConfig.jsUrl)&&(E.js=H));E.debug_playbackQuality= this.cF.getPlaybackQuality(1);E.debug_date=(new Date).toString();E.origin=window.origin;E.timestamp=Date.now();delete E.uga;delete E.q;return JSON.stringify(E,null,2)}; g.M.getFeedbackProductData=function(){var H={player_debug_info:this.getDebugText(!0),player_experiment_ids:this.K().experiments.experimentIds.join(", "),player_release:h[46]},E=this.getPlayerStateObject().Qp;E&&(H.player_error_code=E.errorCode,H.player_error_details=JSON.stringify(E.errorDetail));return H}; g.M.getPresentingPlayerType=function(H){if(this.appState===1)return 1;if(BN(this))return 3;var E,G,P;return(H&&this.X.Bo().L.A7(Uft)?(P=(E=this.XI.W)==null?void 0:E.isAd())!=null&&P:(G=this.xq)==null?0:q_Q(G,this.getCurrentTime()))?2:this.jR().getPlayerType()}; g.M.II=function(){return!1}; g.M.getPlayerStateObject=function(H){var E=this.XI.pM;return E?E.getPlayerState():g.TF(this,{playerType:H}).getPlayerState()}; g.M.getAppState=function(){return this.appState}; g.M.GH_=function(H){switch(H.type){case "loadedmetadata":this.Ic.start();H=g.R(this.d9);for(var E=H.next();!E.done;E=H.next())E=E.value,IlM(this,E.id,E.gja,E.ptp,void 0,!1);this.d9=[];break;case "loadstart":this.HT.Ga("gv");break;case "progress":case "timeupdate":m_(H.target.AK())>=2&&this.HT.Ga("l2s");break;case "playing":g.Zs&&this.Ic.start();if(g.vV(this.X))H=!1;else{E=g.GW(this.lm());H=this.mediaElement.Zy("display")==="none"||v$(this.mediaElement.getSize())===0;var G=Vu(this.template),P=this.jR().getVideoData(), Q=g.qt(this.X);P=As(P);E=!G||E||Q||P||this.X.hm;H=H&&!E}H&&(H=this.jR(),H.v0(),this.getVideoData().Yp||(this.getVideoData().Yp=1,this.oH(),H.playVideo()))}}; g.M.KVN=function(H){this.cF.GU("onLoadProgress",H)}; g.M.WjF=function(){this.cF.publish("playbackstalledatstart")}; g.M.wo5=function(H,E){this.cF.publish("sabrCaptionsDataLoaded",H,E)}; g.M.x4N=function(H){this.jR().Ct(H)}; g.M.hBx=function(H){this.jR().oN(H)}; g.M.JCo=function(H){H=se(this,this.jR());H=bI(this,H.getCurrentTime(),H);this.cF.tC("onVideoProgress",H);this.X.F2&&JwT(this,this.visibility.tE())&&this.pauseVideo()}; g.M.jMo=function(){this.cF.tC("onAutoplayBlocked");var H=this.jR().getVideoData();H&&(H.M6=!0);g.L3(this.X)&&(H={autoplayBrowserPolicy:y11(),autoplayIntended:wq(this.getVideoData()),autoplayStatus:"AUTOPLAY_STATUS_BLOCKED",cpn:this.getVideoData().clientPlaybackNonce,intentionalPlayback:this.intentionalPlayback},g.HY("embedsAutoplayStatusChanged",H))}; g.M.Rnm=function(){this.cF.publish("progresssync")}; g.M.VyR=function(){this.cF.GU("onPlaybackPauseAtStart")}; g.M.z0Z=function(H){if(this.getPresentingPlayerType()===1){g.Sv(H,1)&&!g.F(H.state,64)&&this.pS().isLivePlayback&&this.qZ().isAtLiveHead()&&this.cF.getPlaybackRate()>1&&this.setPlaybackRate(1,!0);if(g.Sv(H,2)){if(this.PT&&this.PT.endTimeMs>=(this.getDuration()-1)*1E3){zK7(this);return}lz7(this)}if(g.F(H.state,128)){var E=H.state;this.cancelPlayback(5);E=E.Qp;JSON.stringify({errorData:E,debugInfo:this.getDebugText(!0)});this.cF.tC("onError",Q4l(E.errorCode));this.cF.GU("onDetailedError",{errorCode:E.errorCode, errorDetail:E.errorDetail,message:E.errorMessage,messageKey:E.E8,cpn:E.cpn});(0,g.ON)()-this.X.n6>6048E5&&this.cF.GU("onReloadRequired")}E={};if(H.state.isPlaying()&&!H.state.isBuffering()&&!HR("pbresume","ad_to_video")&&HR("_start","ad_to_video")){var G=this.getVideoData();E.clientPlaybackNonce=G.clientPlaybackNonce;G.videoId&&(E.videoId=G.videoId);g.Qn(E,"ad_to_video");KT("pbresume",void 0,"ad_to_video");I7(this.hT)}this.cF.publish("applicationplayerstatechange",H)}}; g.M.C3=function(H){this.XI.pM||this.cF.publish("presentingplayerstatechange",H)}; g.M.kx=function(H){o4(this,eM(H.state));g.F(H.state,1024)&&this.cF.isMutedByMutedAutoplay()&&(HD(this,{muted:!1,volume:this.CM.volume},!1),SV(this,!1))}; g.M.onPlayerRequestSent=function(H){this.cF.n_("onPlayerRequestSent",H)}; g.M.Tv=function(H,E){H==="newdata"&&Fl(this);this.cF.publish("applicationvideodatachange",H,E)}; g.M.vq_=function(H,E){this.U("html5_afmt_change_update_volume")&&fC(this);this.cF.GU("onPlaybackAudioChange",this.cF.getAudioTrack().CP.name);this.cF.publish("internalaudioformatchange",this.cF.getAudioTrack().CP.id,E)}; g.M.D4m=function(H){var E=this.jR().getVideoData();H===E&&this.cF.tC("onPlaybackQualityChange",H.W.video.quality)}; g.M.AM=function(){var H=this.XI.D[2]||null;H&&(H=H.getVideoData(),this.jR().g5("ssdai",{cleanaply:1,acpn:H==null?void 0:H.clientPlaybackNonce,avid:H.videoId,isDai:this.pS().enableServerStitchedDai?1:0}),delete this.XI.D[2])}; g.M.i6o=function(H,E){this.QW(H,this.jR(),E)}; g.M.QW=function(H,E,G){this.X.z6()&&E.g5("vdc",{type:H,vid:G.videoId||"",cpn:G.clientPlaybackNonce||""});E===this.qZ()&&(this.X.jt=G.oauthToken);E===this.qZ()&&(this.getVideoData().enableServerStitchedDai&&!this.xq?(this.qZ().g5("sdai",{initSstm:1}),this.xq=new g.Gs(this.cF,this.X,this.qZ(),this)):!this.getVideoData().enableServerStitchedDai&&this.xq&&(this.xq.dispose(),this.xq=null));if(H==="newdata")Wm(this.hT,2),this.cF.publish("videoplayerreset",E);else{if(!this.mediaElement)return;if(H==="dataloaded")if(this.qZ()=== this.jR()){if(oV(G.lJ,G.p8),!this.qZ().getPlayerState().isError()){var P=BN(this);this.pS().isLoaded();P&&this.UV(6);MC7(this);Km(this.hT)||Mz(this)}}else MC7(this);if(E.getPlayerType()===1&&(this.X.O7&&AMU(this),this.getVideoData().isLivePlayback&&!this.X.YE&&this.xz("html5.unsupportedlive",2,"DEVICE_FALLBACK"),G.isLoaded()&&((vaQ(G)||this.getVideoData().JD)&&this.cF.publish("legacyadtrackingpingchange",this.getVideoData()),G.hasProgressBarBoundaries()))){var Q;P=Number((Q=this.getVideoData().progressBarEndPosition)== null?void 0:Q.utcTimeMillis)/1E3;!isNaN(P)&&(Q=this.JT())&&(Q-=this.getCurrentTime(),P=(P-Q)*1E3,Q=this.gS.progressEndBoundary,(Q==null?void 0:Q.start)!==P&&(Q&&this.RD([Q]),P=new g.cP(P,0x7ffffffffffff,{id:"progressEndBoundary",namespace:"appprogressboundary"}),this.qZ().addCueRange(P),this.gS.progressEndBoundary=P))}this.cF.publish("videodatachange",H,G,E.getPlayerType())}this.cF.tC("onVideoDataChange",{type:H,playertype:E.getPlayerType()});this.er();(H=G.qU)?this.UY.ji(H,G.clientPlaybackNonce): h$v(this.UY)}; g.M.UE=function(){TL(this,null);this.cF.GU("onPlaylistUpdate")}; g.M.EWF=function(H){delete this.gS[H.getId()];this.qZ().removeCueRange(H);a:{H=this.getVideoData();var E,G,P,Q,e,w,t,k,W,I,A=((E=H.Jm)==null?void 0:(G=E.contents)==null?void 0:(P=G.singleColumnWatchNextResults)==null?void 0:(Q=P.autoplay)==null?void 0:(e=Q.autoplay)==null?void 0:e.sets)||((w=H.Jm)==null?void 0:(t=w.contents)==null?void 0:(k=t.twoColumnWatchNextResults)==null?void 0:(W=k.autoplay)==null?void 0:(I=W.autoplay)==null?void 0:I.sets);if(A)for(E=g.R(A),G=E.next();!G.done;G=E.next())if(G= G.value,Q=P=void 0,G=G.autoplayVideo||((P=G.autoplayVideoRenderer)==null?void 0:(Q=P.autoplayEndpointRenderer)==null?void 0:Q.endpoint),P=g.X(G,g.Xt),e=Q=void 0,G!=null&&((Q=P)==null?void 0:Q.videoId)===H.videoId&&((e=P)==null?0:e.continuePlayback)){H=G;break a}H=null}(E=g.X(H,g.Xt))&&this.cF.n_("onPlayVideo",{sessionData:{autonav:"1",itct:H==null?void 0:H.clickTrackingParams},videoId:E.videoId,watchEndpoint:E})}; g.M.UV=function(H){H!==this.appState&&(H===2&&this.getPresentingPlayerType()===1&&(o4(this,-1),o4(this,5)),this.appState=H,this.cF.publish("appstatechange",H))}; g.M.xz=function(H,E,G,P,Q){this.qZ().kq(H,E,G,P,Q)}; g.M.zO=oF(13);g.M.isAtLiveHead=function(H,E){E=E===void 0?!1:E;var G=g.TF(this,{playerType:H});if(!G)return this.XI.L.isAtLiveHead();H=jh(this,G);G=se(this,G);return H!==G?H.isAtLiveHead(bI(this,G.getCurrentTime(),G),!0):H.isAtLiveHead(void 0,E)}; g.M.XR=function(){var H=g.TF(this,{playerType:void 0});return H?jh(this,H).XR():this.XI.L.XR()}; g.M.seekTo=function(H,E,G,P,Q,e){E=E!==!1;if(P=g.TF(this,{playerType:P}))if(this.appState===2&&fr(this),this.Xm(P))Zz(this)?this.xq.seekTo(H,{seekSource:Q},E,G):this.ze.seekTo(H,{seekSource:Q},E,G);else{this.U("html5_sabr_csdai_seek_log")||(e="");var w;P.seekTo(H,{aN:!E,Tk:G,cO:"application"+((w=e)!=null?w:""),seekSource:Q})}}; g.M.seekBy=function(H,E,G,P){this.seekTo(this.getCurrentTime()+H,E,G,P,void 0,"_by")}; g.M.FjN=function(){this.cF.tC("SEEK_COMPLETE")}; g.M.BVR=function(){this.cF.n_("onAbnormalityDetected")}; g.M.gW_=function(H){this.cF.n_("onSnackbarMessage",H)}; g.M.LjR=function(H){var E=this.jR(),G=E.getVideoData();if(this.appState===1||this.appState===2)G.startSeconds=H;this.appState===2?g.F(E.getPlayerState(),512)||fr(this):this.cF.tC("SEEK_TO",H)}; g.M.ZS$=function(){this.cF.publish("airplayactivechange")}; g.M.fiJ=function(){this.cF.publish("airplayavailabilitychange")}; g.M.showAirplayPicker=function(){this.jR().fz()}; g.M.yTp=function(){this.cF.publish("beginseeking")}; g.M.hnR=function(){this.cF.publish("endseeking")}; g.M.getStoryboardFormat=function(H){return(H=g.TF(this,{playerType:H}))?jh(this,H).getStoryboardFormat():this.XI.L.getStoryboardFormat()}; g.M.XM=function(H){return(H=g.TF(this,{playerType:H}))?jh(this,H).getVideoData().XM():this.XI.L.XM()}; g.M.Xm=function(H){H=(H||this.jR()).getVideoData();if(Zz(this))H=H===this.xq.playback.getVideoData();else a:{var E=this.ze;if(H===E.L.getVideoData()&&E.W.length)H=!0;else{E=g.R(E.W);for(var G=E.next();!G.done;G=E.next())if(H.U9===G.value.U9){H=!0;break a}H=!1}}return H}; g.M.Hm=function(H,E,G,P,Q,e,w,t){var k=Zz(this);this.jR().g5("appattl",{sstm:this.xq?1:0,ssenable:this.getVideoData().enableServerStitchedDai,susstm:k});k?(G=ECU(this.xq,H,E,G,P,Q,e,w,t),H=(G==null?void 0:G.U9)||"",(this.U("html5_ssdai_new_decoration_logic")||this.qZ().getVideoData().SO)&&this.qZ().mJ(t||"",E,(G==null?void 0:G.clientPlaybackNonce)||"")):H=XO7(this.ze,H,G,P,Q,e);return H}; g.M.qH=function(H,E,G,P,Q,e,w,t){if(Zz(this)){var k;(k=this.xq)==null||ECU(k,H,E,G,P,Q,e,w,t)}}; g.M.Iz=function(H){(this.U("html5_ssdai_new_decoration_logic")||this.qZ().getVideoData().SO)&&this.qZ().mJ(H,"","");var E;(E=this.xq)==null||E.Iz(H)}; g.M.pT=function(H,E){H=H===void 0?-1:H;E=E===void 0?Infinity:E;Zz(this)||wp(this.ze,H,E)}; g.M.Mq=function(H,E,G){if(Zz(this)){var P=this.xq,Q=P.L.EQ({U9:H});Q?(G===void 0&&(G=Q.gV),z6n(P,Q,E,G)):P.IF("Invalid_timelinePlaybackId_"+H+"_specified")}else{P=this.ze;Q=null;for(var e=g.R(P.W),w=e.next();!w.done;w=e.next())if(w=w.value,w.U9===H){Q=w;break}Q?(G===void 0&&(G=Q.gV),Pcl(P,Q,E,G)):eN(P,"InvalidTimelinePlaybackId timelinePlaybackId="+H)}}; g.M.enqueueVideoByPlayerVars=function(H,E,G,P){G=G===void 0?Infinity:G;P=P===void 0?"":P;this.Xm();H=new g.KD(this.X,H);P&&(H.U9=P);pOT(this,H,E,G)}; g.M.queueNextVideo=function(H,E,G,P,Q){G=G===void 0?NaN:G;H=this.preloadVideoByPlayerVars(H,E===void 0?1:E,G,P===void 0?"":P,Q===void 0?"":Q);E=this.jR();H&&(this.U("html5_check_queue_on_data_loaded")?this.K().supportsGaplessShorts()&&E.getVideoData().B&&(G=this.Uo,P=this.D1.T,G.D!==H&&(G.W=E,G.D=H,G.G=1,G.L=H.getVideoData(),G.T=P,G.L.isLoaded()?G.C():G.L.subscribe("dataloaded",G.C,G))):(G=Ezd(E,H,this.D1.T),G!=null?(E.g5("sgap",G),E.getVideoData().B&&E.c9(!1)):(H=H.getVideoData(),E=this.Uo,E.L!== H&&(E.L=H,E.G=1,H.isLoaded()?E.B():E.L.subscribe("dataloaded",E.B,E)))))}; g.M.DT=function(H,E,G,P){var Q=this;G=G===void 0?0:G;P=P===void 0?0:P;jh(this,this.jR()).vP();N7v(this.D1,H,E,G,P).then(function(){Q.cF.GU("onQueuedVideoLoaded")},function(){})}; g.M.wG=function(){return this.D1.wG()}; g.M.Qj=function(H){var E=this.D1.L;return E?E.AX(H):!1}; g.M.clearQueue=function(H,E){this.D1.clearQueue(H===void 0?!1:H,E===void 0?!1:E)}; g.M.loadVideoByPlayerVars=function(H,E,G,P,Q,e){E=E===void 0?1:E;var w=this.qZ();if(E===2&&this.pS().enableServerStitchedDai&&w&&!w.EZ())return w.g5("lvonss",{vid:(H==null?void 0:H.videoId)||"",ptype:E}),!1;var t=!1;w=new g.KD(this.X,H);w.v6=e;g.iH(this.X)&&!w.n0&&G2(this.HT);var k;e=this.HT;var W=(k=w.L_)!=null?k:"";e.timerName=W;this.HT.MW("pl_i");this.U("web_player_early_cpn")&&w.clientPlaybackNonce&&this.HT.infoGel({clientPlaybackNonce:w.clientPlaybackNonce});qKn(w).supportsVp9Encoding===!1&& this.jR().g5("noVp9enc",{});if(this.K().supportsGaplessShorts()){k=bcv(this.D1,w,E);if(k==null){o4(this,-1);var I;((I=this.D1.L)==null?0:I.getVideoData().isAd())||Cn(this);H=this.D1;H.app.K().U("html5_gapless_new_slr")?jV(H.app,"gaplessshortslooprange"):H.app.setLoopRange(null);H.app.getVideoData().hH=!0;var A;(A=H.L)==null||A.On();var m;(m=H.L)==null||m.Oy();G={cO:"gapless_to_next_video",seekSource:60,VI:H.T.L};P=g.hE(H.app.K().experiments,"html5_gapless_seek_offset");Q=yiw(H);if(H.T.L){var u;w= ((u=H.G)==null?void 0:Gi(u))||{};u=w.Kc;w=w.Lg;w!=null&&u!=null&&(Q=w-u+.001)}var v;(v=H.app.jR())==null||v.seekTo(Q+P,G);if(!H.app.getPlayerStateObject(E).isPlaying()){var n;(n=H.app.jR())==null||n.playVideo(!0)}var O;(O=H.app.jR())==null||O.J3();H.B();return!0}v=this.U("html5_shorts_gapless_preload_fallback");n=this.D1.L;v&&n&&!n.Iu()&&(O=n.getVideoData(),this.XI.B.set(Zv(E,O),n,3600));this.D1.clearQueue(v);this.jR().g5("sgap",{f:k})}if(Q){for(;w.Ff.length&&w.Ff[0].isExpired();)w.Ff.shift();v=w.Ff.length- 1;t=v>0&&Q.W(w.Ff[v])&&Q.W(w.Ff[v-1]);w.Ff.push(Q)}G||(H&&x7(H)?(zL(this.X)&&!this.mB&&(H.fetch=0),TL(this,H)):this.playlist&&TL(this,null),H&&(this.mB=BY(!1,H.external_list)));this.cF.publish("loadvideo");v=this.D0(w,E,P);t&&this.xz("player.fatalexception",1,"GENERIC_WITH_LINK_AND_CPN",("loadvideo.1;emsg."+w.Ff.join()).replace(/[;:,]/g,"_"));return v}; g.M.preloadVideoByPlayerVars=function(H,E,G,P,Q){E=E===void 0?1:E;G=G===void 0?NaN:G;Q=Q===void 0?"":Q;P=E;var e=Q,w=lO(H);if(P=this.XI.B.get(P+"_"+w+"_"+e+"_"+ +(H.autonav==="1"||H.autonav===!0)+ +(H.autoplay==="1"||H.autoplay===!0||H.autoplay===1))||null)return P;H=new g.KD(this.X,H);Q&&(H.U9=Q);Q=Zv(E,H);P=this.jR();e=Zv(P.getPlayerType(),P.getVideoData());Q===e?(P.T3(!0),H.dispose(),G=null):(H.V8=!0,P=j4(this,E,H,!0),(E!==1||!cw(this.X)||this.X.U("html5_allow_multiview_tile_preload")&&H.n1)&& P.T3(!0),this.XI.B.set(Q,P,G||3600),G=P);return G}; g.M.setMinimized=function(H){this.visibility.setMinimized(H);(H=so7(this.hT))&&(this.isMinimized()?H.load():H.unload());this.cF.publish("minimized")}; g.M.setInline=function(H){this.visibility.setInline(H)}; g.M.setInlinePreview=function(H){this.visibility.setInline(H)}; g.M.KO=function(H){MQn(this,H)||this.visibility.KO(H)}; g.M.setSqueezeback=function(H){this.visibility.setSqueezeback(H)}; g.M.JX=function(){var H,E=(H=this.mediaElement)==null?void 0:H.E2();E&&(this.X.AA&&NF($K(function(){return document.exitFullscreen()}),function(){}),NF($K(function(){return ut(E)}),function(){}))}; g.M.NOp=function(){this.mediaElement.E2();this.mediaElement.E2().webkitPresentationMode==="picture-in-picture"?this.KO(!0):this.KO(!1)}; g.M.togglePictureInPicture=function(){this.jR().togglePictureInPicture()}; g.M.D0=function(H,E,G){var P=this;E=E===void 0?1:E;HR("_start",this.HT.timerName)||g.NL(CC)(void 0,this.HT.timerName);var Q=!1,e=gU(this,E,H,!1);e?(Q=!0,H.dispose()):(e=j4(this,E,H,!0,G),(this.U("html5_onesie")||this.U("html5_load_before_stop"))&&e.gm()&&e.T3(),this.Ic.stop(),E===1&&E!==this.getPresentingPlayerType()&&this.cancelPlayback(4),this.cancelPlayback(4,E),this.PV(e));e===this.qZ()&&(this.X.jt=H.oauthToken);if(!e.gm())return!1;if(e===this.qZ()){this.UV(1);if(this.X.U("html5_allow_multiview_tile_preload")&& Q&&e.getVideoData().n1)return e.g5("app_lv",{pdl:e.aY()}),e.aY()?sGd(this,e):e.subscribe("internalvideodatachange",function(w){w==="dataloaded"&&sGd(P,e)},this),!0; H=fr(this);Q&&this.U("html5_player_preload_ad_fix")&&e.getPlayerType()===1&&e.aY()&&this.QW("dataloaded",e,e.getVideoData());return H}e.vS();return!0}; g.M.cueVideoByPlayerVars=function(H,E){var G=this;E=E===void 0?1:E;var P=this.qZ();if(this.pS().enableServerStitchedDai&&P&&!P.EZ()&&H&&Object.keys(H).length>0)P.g5("qvonss",{vid:(H==null?void 0:H.videoId)||"",ptype:E});else if(H&&x7(H))if(this.Vz=!0,TL(this,H),(H=g.qg(this.playlist))&&H.zU())TX(this,H,E);else this.playlist.onReady(function(){Sj(G)}); else{E||(E=this.getPresentingPlayerType());E===1&&this.UE();P=new g.KD(this.X,H);var Q=g.L3(this.X)&&!this.X.WF&&E===1&&!P.isAd()&&!P.jT;this.cF.publish("cuevideo",E);Q?(this.jR().getVideoData().loading=!0,gxw(P,H?H:{}).then(function(e){TX(G,e,E)}),P.dispose()):TX(this,P,E)}}; g.M.OF=function(H,E,G,P,Q,e,w){if(!H&&!G)throw Error("Playback source is invalid");if(Fz(this.X)||g.KU(this.X))return E=E||{},E.lact=U7(),E.vis=this.cF.getVisibilityState(),this.cF.n_("onPlayVideo",{videoId:H,watchEndpoint:e,sessionData:E,listId:G}),!1;X2l(this.HT);this.HT.reset();H={video_id:H};P&&(H.autoplay="1");P&&(H.autonav="1");e&&(H.player_params=e.playerParams);w&&(H.oauth_token=w);G?(H.list=G,this.loadPlaylist(H)):this.loadVideoByPlayerVars(H,1);return!0}; g.M.cuePlaylist=function(H,E,G,P){this.Vz=!0;FQ7(this,H,E,G,P)}; g.M.loadPlaylist=function(H,E,G,P){this.Vz=!1;FQ7(this,H,E,G,P)}; g.M.Pl=function(){return this.cF.isMutedByMutedAutoplay()?!1:this.XI.pM?!0:!(!this.playlist||!this.playlist.wU())}; g.M.tJ=oF(5); g.M.nextVideo=function(H,E){var G=g.KR(this.qZ().getVideoData());g.F8(this.cF)&&G?this.OF(G.videoId,E?G.pQ:G.sessionData,G.playlistId,E,void 0,G.sG||void 0):this.mB?this.cF.GU("onPlaylistNext"):this.getPresentingPlayerType()===3?fz(this.hT).nextVideo():!this.playlist||zL(this.X)&&!this.cF.isFullscreen()||(this.playlist.wU(H)&&Gv(this.playlist,UEn(this.playlist)),this.playlist.loaded?(H=E&&this.X.U("html5_player_autonav_logging"),E&&this.cF.publish("playlistautonextvideo"),this.D0(g.qg(this.playlist,void 0, E,H),1)):this.Vz=!1)}; g.M.previousVideo=function(H){this.mB?this.cF.GU("onPlaylistPrevious"):this.getPresentingPlayerType()===3?fz(this.hT).wk():!this.playlist||zL(this.X)&&!this.cF.isFullscreen()||(this.playlist.vR(H)&&Gv(this.playlist,xEn(this.playlist)),this.playlist.loaded?this.D0(g.qg(this.playlist),1):this.Vz=!1)}; g.M.playVideoAt=function(H){this.mB?this.cF.GU("onPlaylistIndex",H):this.playlist&&(this.playlist.loaded?this.D0(g.qg(this.playlist,H),1):this.Vz=!1,Gv(this.playlist,H))}; g.M.getPlaylist=function(){return this.playlist}; g.M.CQ=oF(19);g.M.En=function(H){this.d9=g.W2(this.d9,function(e){return e.id!==H}); for(var E=this.qZ(),G=E.tj(),P=0;P0&&(k=Math.floor(W/1E3))}k=E?E.Po:k;var I={AD_BLOCK:this.L++,AD_BREAK_LENGTH:k,AUTONAV_STATE:Oh(this.player.K()),CA_TYPE:"image",CPN:t.clientPlaybackNonce,DRIFT_FROM_HEAD_MS:this.player.XR()*1E3,LACT:U7(),LIVE_INDEX:E?this.G++:1,LIVE_TARGETING_CONTEXT:E&&E.context?E.context:"",MIDROLL_POS:e? Math.round(e.start/1E3):0,MIDROLL_POS_MS:e?Math.round(e.start):0,VIS:this.player.getVisibilityState(),P_H:this.player.NZ().sR().height,P_W:this.player.NZ().sR().width,YT_REMOTE:Q?Q.join(","):""},A=aA(DU);Object.keys(A).forEach(function(u){A[u]!=null&&(I[u.toUpperCase()]=A[u].toString())}); G!==""&&(I.BISCOTTI_ID=G);G={};nJ(H)&&(G.sts="20374",(E=this.player.K().forcedExperiments)&&(G.forced_experiments=E));var m=Oq(g.iO(H,I),G);return m.split("?").length!==2?R6(Error("Invalid AdBreakInfo URL")):g.Ns(this.player.K(),t==null?void 0:t.oauthToken).then(function(u){if(u&&Tg()){var v=Wb();Io(v,u)}u=P.player.Km(v);v=Pxv(P,m,I,t.isMdxPlayback,w);return g.CO(u,v,"/youtubei/v1/player/ad_break").then(function(n){return n})})}; XY.prototype.reset=function(){this.G=this.L=1};g.C(K_Q,XY); K_Q.prototype.W=function(H,E,G){E=E===void 0?{}:E;var P=E.Jc;var Q=E.ER;var e=E.cueProcessedMs;G=G===void 0?"":G;E=this.L;this.L++;var w=this.player.K().U("h5_disable_macro_substitution_in_get_ad_break")?H:t5T(this,H,{Jc:P,ER:Q,cueProcessedMs:e},G,E);if(w.split("?").length!==2)return Math.random()<.1&&g.p5(Error("Invalid AdBreakInfo URL")),R6(Error("Invalid AdBreakInfo URL"));var t=this.player.getVideoData(1).isMdxPlayback,k=G;G=VnT.exec(w);G=G!=null&&G.length>=2?G[1]:"";H=S$1.test(w);var W=Fwu.exec(w); W=W!=null&&W.length>=2?W[1]:"";var I=fgt.exec(w);I=I!=null&&I.length>=2&&!Number.isNaN(Number(I[1]))?Number(I[1]):1;var A=pjt.exec(w);A=A!=null&&A.length>=2?A[1]:"0";var m=aV(this.player.K().Yx),u=g.$y(this.player.getVideoData(1).p_,!0);HD1(this,u,w,k===""?"":k,this.player.K(),this.player.getVideoData(1));k={splay:!1,lactMilliseconds:String(U7()),playerHeightPixels:Math.trunc(this.player.NZ().sR().height),playerWidthPixels:Math.trunc(this.player.NZ().sR().width),vis:Math.trunc(this.player.getVisibilityState()), signatureTimestamp:20374,autonavState:Oh(this.player.K())};if(t){t={};var v=this.player.K().yA;J_Q(t,v?v.join(","):"")&&(k.mdxContext=t)}if(t=EAs.includes(m)?void 0:g.cb("PREF")){v=t.split(RegExp("[:&]"));for(var n=0,O=v.length;n1&&q[1].toUpperCase()==="TRUE"){u.user.lockedSafetyMode=!0;break}}k.autoCaptionsDefaultOn=Ua1(t)}w=G2j.exec(w);(w=w!=null&&w.length>=2?w[1]:"")&&W&&(u.user.credentialTransferTokens= [{token:w,scope:"VIDEO"}]);w={contentPlaybackContext:k};k=this.player.getVideoData(1).getGetAdBreakContext();t=this.player.getVideoData(1).clientPlaybackNonce;v=e!==void 0?Math.round(e).toString():void 0;n=(P==null?0:P.context)?P.context:void 0;O=0;e&&Q&&!P&&(Q=Q.end-Q.start,Q>0&&(O=Math.floor(Q/1E3)));P=(P=Math.trunc((P?P.Po:O)*1E3))?String(P):void 0;Q=this.player.XR()*1E3;Q=Number.isNaN(Q)?0:Math.trunc(Q);E={adBlock:E,params:G,breakIndex:I,breakPositionMs:A,clientPlaybackNonce:t,topLevelDomain:m, isProxyAdTagRequest:H,context:u,overridePlaybackContext:w,cueProcessedMs:v,videoId:W?W:void 0,liveTargetingParams:n,breakLengthMs:P,driftFromHeadMs:Q?String(Q):void 0,currentMediaTimeMs:String(Math.round(this.player.getCurrentTime(1)*1E3)),getAdBreakContext:k?k:void 0};return LZ7(this,E)};var PM3={Ndx:"replaceUrlMacros",Kq5:"onAboutThisAdPopupClosed",y_5:"executeCommand"};On.prototype.lH=function(){return"adPingingEndpoint"}; On.prototype.Br=function(H,E,G){DTQ(this.SR.get(),H,E,G)};LF.prototype.lH=function(){return"changeEngagementPanelVisibilityAction"}; LF.prototype.Br=function(H){this.S.n_("changeEngagementPanelVisibility",{changeEngagementPanelVisibilityAction:H})};mH.prototype.lH=function(){return"loggingUrls"}; mH.prototype.Br=function(H,E,G){H=g.R(H);for(var P=H.next();!P.done;P=H.next())P=P.value,DTQ(this.SR.get(),P.baseUrl,E,G,P.attributionSrcMode)};g.C(rDt,g.J);g.C(OU,g.J);g.M=OU.prototype;g.M.addListener=function(H){this.listeners.push(H)}; g.M.removeListener=function(H){this.listeners=this.listeners.filter(function(E){return E!==H})}; g.M.r7=function(H,E,G,P,Q,e,w,t){if(H==="")xQ("Received empty content video CPN in DefaultContentPlaybackLifecycleApi");else if(H!==this.L||G){this.L=H;this.d5.get().r7(H,E,G,P,Q,e,w,t);this.C_.get().r7(H,E,G,P,Q,e,w,t);var k;(k=this.Yq)==null||k.get().r7(H,E,G,P,Q,e,w,t);this.W.r7(H,E,G,P,Q,e,w,t);k=g.R(this.listeners);for(var W=k.next();!W.done;W=k.next())W.value.r7(H,E,G,P,Q,e,w,t)}else xQ("Duplicate content video loaded signal")}; g.M.JTJ=function(){this.L&&this.LL(this.L)}; g.M.LL=function(H){this.L=void 0;for(var E=g.R(this.listeners),G=E.next();!G.done;G=E.next())G.value.LL(H)};WY.prototype.bL=function(H,E,G,P,Q){AFt(this);this.T=!E&&G===0;var e=this.S.getVideoData(1),w=this.S.getVideoData(2);e&&(this.contentCpn=e.clientPlaybackNonce,this.videoId=e.videoId,this.L=e.C);w&&(this.adCpn=w.clientPlaybackNonce,this.adVideoId=w.videoId,this.adFormat=w.adFormat);this.D=H;P<=0?(AFt(this),this.T=!E&&G===0):(this.actionType=this.T?E?"unknown_type":"video_to_ad":E?"ad_to_video":"ad_to_ad",this.videoStreamType=Q?"VIDEO_STREAM_TYPE_LIVE":"VIDEO_STREAM_TYPE_VOD",this.actionType!=="unknown_type"&& (this.G=!0,HR("_start",this.actionType)&&gOs(this)))}; WY.prototype.reset=function(){return new WY(this.S)};g.C(I9,g.J);I9.prototype.addCueRange=function(H,E,G,P,Q,e,w,t,k){e=e===void 0?3:e;w=w===void 0?1:w;this.L.has(H)?xQ("Tried to register duplicate cue range",void 0,void 0,{CueRangeID:H}):(H=new fzs(H,E,G,P,e,t,k),this.L.set(H.id,{ER:H,listener:Q,aG:w}),this.S.MV([H],w))}; I9.prototype.removeCueRange=function(H){var E=this.L.get(H);E?(this.S.hR([E.ER],E.aG),this.L.delete(E.ER.id)):xQ("Requested to remove unknown cue range",void 0,void 0,{CueRangeID:H})}; I9.prototype.onCueRangeEnter=function(H){if(this.L.has(H.id))this.L.get(H.id).listener.onCueRangeEnter(H.id)}; I9.prototype.onCueRangeExit=function(H){if(this.L.has(H.id))this.L.get(H.id).listener.onCueRangeExit(H.id)}; g.C(fzs,g.cP);A8.prototype.addPlayerResponseForAssociation=function(H){this.S.addPlayerResponseForAssociation(H)};mY.prototype.Ig=function(H){this.S.Ig(H)}; mY.prototype.rW=function(H){var E=g.c4.apply(1,arguments);H==="onAdStart"||H==="onAdEnd"?this.S.tC.apply(this.S,[H].concat(g.EC(E))):this.S.n_.apply(this.S,[H].concat(g.EC(E)))};uG.prototype.uG=function(H){return H&&$S(this)};var r1l=null;g.C(Bju,g.z7);Bju.prototype.Ve=function(H){return this.L.hasOwnProperty(H)?this.L[H].Ve():{}}; g.kM("ytads.bulleit.getVideoMetadata",function(H){return X8().Ve(H)}); g.kM("ytads.bulleit.triggerExternalActivityEvent",function(H,E,G){var P=X8();G=ZMM(G);G!==null&&P.publish(G,{queryId:H,viewabilityString:E})});g.M=nu.prototype;g.M.Z5=function(H,E){if(!this.L.has(H))return{};if(E==="seek"){E=!1;E=E===void 0?!1:E;var G=Lu(NS).V5(H,{});G?lX(G):E&&(H=Lu(NS).yK(null,Yv(),!1,H),H.OB=3,BmM([H]));return{}}E=DIj(E);if(E===null)return{};var P=this.S.AJ();if(!P)return{};var Q=this.S.getPresentingPlayerType(!0);if((G=this.S.getVideoData(Q))==null||!G.isAd())return{};G={opt_adElement:P,opt_fullscreen:this.d5.get().isFullscreen()};return drq(E,H,G)}; g.M.Q4=function(H,E,G,P,Q){this.L.has(H)&&(P<=0||Q<=0||Lu(NS).Q4(H,E,G,P,Q))}; g.M.Oj=function(H){var E;(E=this.L.get(H.queryId))==null||E.Oj()}; g.M.ID=function(H){var E;(E=this.L.get(H.queryId))==null||E.ID()}; g.M.zJ=function(H){var E;(E=this.L.get(H.queryId))==null||E.zJ()}; g.M.SG=function(H){var E;(E=this.L.get(H.queryId))==null||E.SG()}; g.M.Uj=function(H){var E;(E=this.L.get(H.queryId))==null||E.Uj()};g9d.prototype.send=function(H,E,G,P){try{kYM(this,H,E,G,P===void 0?!1:P)}catch(Q){}};g.C(Dfv,g9d);fsn.prototype.send=function(H,E,G,P){var Q=!1;try{if(P==="ATTRIBUTION_SRC_MODE_LABEL_CHROME"||P==="ATTRIBUTION_SRC_MODE_XHR_OPTION")Q=!0,H=mKq(H);P=Q;var e=g.AL(H);if(e[1]==="https")var w=H;else e[1]="https",w=mK("https",e[2],e[3],e[4],e[5],e[6],e[7]);var t=Zw7(w);e=[];var k=tLU(w)&&this.Da.get().S.K().experiments.xp("add_auth_headers_to_remarketing_google_dot_com_ping");if(nJ(w)||k)e.push({headerType:"USER_AUTH"}),e.push({headerType:"PLUS_PAGE_ID"}),e.push({headerType:"VISITOR_ID"}),e.push({headerType:"EOM_VISITOR_ID"}), e.push({headerType:"AUTH_USER"}),e.push({headerType:"DATASYNC_ID"});this.L.send({baseUrl:w,scrubReferrer:t,headers:e},E,G,P)}catch(W){}};a9.prototype.sQ=function(){return this.S.sQ(1)};g.C(Mq,g.J);g.M=Mq.prototype;g.M.VW=function(){return this.S.getVideoData(1).clientPlaybackNonce}; g.M.addListener=function(H){this.listeners.push(H)}; g.M.removeListener=function(H){this.listeners=this.listeners.filter(function(E){return E!==H})}; g.M.r7=function(){this.jX.clear();this.M_=null;this.YS.get().clear()}; g.M.LL=function(){}; g.M.Pku=function(H,E,G,P,Q){E.videoId==="nPpU29QrbiU"&&this.S.g5("ads_ssm_vdc_s",{pt:G,dvt:H});TK(this.Da.get())&&H!=="dataloaded"||eBw(this,E,G);if($S(this.Da.get())&&H==="newdata"&&Q!==void 0){H=this.VW();var e=E.clientPlaybackNonce,w={};Gq(this,"rte",(w.ec=e,w.xc=P==null?void 0:P.clientPlaybackNonce,w.tr=Q,w.pt=G,w.ia=e!==H,w.ctp=Q6(e),w));E=E.clientPlaybackNonce;P=P==null?void 0:P.clientPlaybackNonce;Q=dK7(Q);if(Q!==1)if(P!==void 0)for(G=g.R(this.listeners),H=G.next();!H.done;H=G.next())H.value.kK(P, E,Q);else xQ("Expected exiting CPN for all non initial transitions",void 0,void 0,{enteringCpn:E,transitionReason:String(Q)});Q=g.R(this.listeners);for(P=Q.next();!P.done;P=Q.next())P.value.KI(E)}}; g.M.aOa=function(H,E){H!==void 0&&(this.M_=H,E===void 0?xQ("Expected ad video start time on SS video changed"):this.jX.set(H,E));var G=this.S.getPresentingPlayerType(!0),P=this.S.getVideoData(G),Q;H===void 0?Q=null:Q=this.YS.get().L.get(H)||null;this.S.getVideoData(1).g5("ads_ssvc",{pt:G,cpn:P==null?void 0:P.clientPlaybackNonce,crtt:this.S.getCurrentTime(1,!1),atlh:this.S.isAtLiveHead(),adstt:E,pid:H,slid:Q==null?void 0:Q.layoutId});P?eBw(this,P,G):xQ("Expected video data on server stitched video changed", void 0,void 0,{cpn:this.S.getVideoData(1).clientPlaybackNonce,timelinePlaybackId:H})}; g.M.Pp=function(H,E){var G=H.author,P=H.clientPlaybackNonce,Q=H.isListed,e=H.U9,w=H.title,t=H.qI,k=H.v$,W=H.isMdxPlayback,I=H.I2,A=H.mdxEnvironment,m=H.isAutonav,u=H.Sb,v=H.n0,n=H.qb,O=H.videoId||"",q=H.profilePicture||"",N=H.t_||"",r=H.hE()||!1,B=H.mV()||!1;H=H.Ah||void 0;e=this.YS.get().L.get(e)||{layoutId:null,slotId:null};var l=this.S.getVideoData(1),S=l.T6();l=l.getPlayerResponse();E=1E3*this.S.getDuration(E);var z=1E3*this.S.getDuration(1),Pt,eu,QM=(l==null?void 0:(Pt=l.playerConfig)==null? void 0:(eu=Pt.daiConfig)==null?void 0:eu.enableDai)||!1,$Q,En;Pt=(l==null?void 0:($Q=l.playerConfig)==null?void 0:(En=$Q.daiConfig)==null?void 0:En.enablePreroll)||!1;return Object.assign({},e,{videoId:O,author:G,clientPlaybackNonce:P,pu:E,m8:z,daiEnabled:QM,Vx:Pt,isListed:Q,T6:S,profilePicture:q,title:w,t_:N,qI:t,v$:k,Ah:H,isMdxPlayback:W,I2:I,mdxEnvironment:A,isAutonav:m,Sb:u,n0:v,qb:n,hE:r,mV:B})}; g.M.G$=function(){this.listeners.length=0;this.uE=null;g.J.prototype.G$.call(this)};g.C(DY,g.J);g.M=DY.prototype;g.M.r7=function(){var H=this;$S(this.Da.get())||(this.L=gs(function(){H.S.Iu()||H.S.Aj("ad",1)}))}; g.M.LL=function(){}; g.M.addListener=function(H){this.listeners.push(H)}; g.M.removeListener=function(H){this.listeners=this.listeners.filter(function(E){return E!==H})}; g.M.IK=function(){}; g.M.playVideo=function(){this.S.playVideo()}; g.M.pauseVideo=function(){this.S.pauseVideo()}; g.M.resumeVideo=function(H){this.Sf(H)&&this.S.playVideo()}; g.M.Sf=function(H){return this.S.getPlayerState(H)===2}; g.M.getCurrentTimeSec=function(H,E,G){var P=this.C_.get().M_;if(H===2&&!E&&P!==null)return g$(this,P);WI(this.Da.get(),"html5_ssap_use_cpn_to_get_time")||(G=void 0);return G!==void 0?this.S.getCurrentTime(H,E,G):this.S.getCurrentTime(H,E)}; g.M.getVolume=function(){return this.S.getVolume()}; g.M.isMuted=function(){return this.S.isMuted()}; g.M.getPresentingPlayerType=function(){return this.S.getPresentingPlayerType(!0)}; g.M.getPlayerState=function(H){return this.S.getPlayerState(H)}; g.M.getGetAdBreakContext=function(){return this.S.getGetAdBreakContext()}; g.M.isFullscreen=function(){return this.S.isFullscreen()}; g.M.isAtLiveHead=function(){return this.S.isAtLiveHead()}; g.M.OV=function(H){this.S.OV(H)}; g.M.TO7=function(){var H=this.S.getPresentingPlayerType(!0),E=this.getCurrentTimeSec(H,!1);if(H===2){H=g.R(this.listeners);for(var G=H.next();!G.done;G=H.next())G.value.Uu(E)}else if(H===1)for(H=g.R(this.fl),G=H.next();!G.done;G=H.next())G.value.IK(E)}; g.M.sMp=function(H){for(var E=g.R(this.listeners),G=E.next();!G.done;G=E.next())G.value.IP(H,this.getPresentingPlayerType())}; g.M.onFullscreenToggled=function(H){for(var E=g.R(this.listeners),G=E.next();!G.done;G=E.next())G.value.onFullscreenToggled(H)}; g.M.onVolumeChange=function(){for(var H=g.R(this.listeners),E=H.next();!E.done;E=H.next())E.value.onVolumeChange()}; g.M.gG=function(){for(var H=this.S.isMinimized(),E=g.R(this.listeners),G=E.next();!G.done;G=E.next())G.value.gG(H)}; g.M.AR=function(H){for(var E=g.R(this.listeners),G=E.next();!G.done;G=E.next())G.value.AR(H)}; g.M.h7=function(){for(var H=this.S.NZ().sR(),E=g.R(this.listeners),G=E.next();!G.done;G=E.next())G.value.NI(H)}; g.M.oJ=function(H){for(var E=g.R(this.listeners),G=E.next();!G.done;G=E.next())G.value.oJ(H)}; g.M.Bt=function(){for(var H=g.R(this.listeners),E=H.next();!E.done;E=H.next())E.value.Bt()};g.C(CMU,g.J);g.C(jo,g.J);jo.prototype.G$=function(){this.OZ.Iu()||this.OZ.get().removeListener(this);g.J.prototype.G$.call(this)};k$.prototype.fetch=function(H){var E=H.ao;return this.L.fetch(H.cq,{Jc:H.Jc===void 0?void 0:H.Jc,ER:E,cueProcessedMs:H.cueProcessedMs===void 0?0:H.cueProcessedMs}).then(function(G){return UXt(G,E)})};g.C(tq,g.J);g.M=tq.prototype;g.M.addListener=function(H){this.listeners.push(H)}; g.M.removeListener=function(H){this.listeners=this.listeners.filter(function(E){return E!==H})}; g.M.Vs=function(H){S6u(this,H,1)}; g.M.onAdUxClicked=function(H,E){AK(this,function(G){G.kW(H,E)})}; g.M.QO=function(H){AK(this,function(E){E.zz(H)})}; g.M.Et=function(H){AK(this,function(E){E.Oe(H)})}; g.M.EtN=function(H){AK(this,function(E){E.wz(H)})};qr.prototype.reduce=function(H){switch(H.event){case "unknown":return}var E=H.identifier;var G=this.L[E];G?E=G:(G={xn:null,uK:-Infinity},E=this.L[E]=G);G=H.startSecs+H.L/1E3;if(!(G=this.L.startSecs&&G.startSecs<=this.L.startSecs+this.L.Po)){var P=void 0;if(rn(this.Da.get())&&G.identifier!==((P=this.L)==null?void 0:P.identifier)){var Q=P=void 0,e=void 0,w=void 0;BL(this.SR.get(),"ocud","ccpi."+G.identifier+";ccpe."+G.event+";ccps."+G.startSecs+";\n ccpd."+G.Po+";pcpi."+((P=this.L)==null?void 0:P.identifier)+ ";pcpe."+((Q=this.L)==null?void 0:Q.event)+";\n pcps."+((e=this.L)==null?void 0:e.startSecs)+";pcpd."+((w=this.L)==null?void 0:w.Po)+";")}P=void 0;G.identifier!==((P=this.L)==null?void 0:P.identifier)&&xQ("Latest Endemic Live Web cue point overlaps with previous cue point")}else this.L=G,MBn(this,G)}}; g.M.G$=function(){this.W!=null&&(this.W.unsubscribe("cuepointupdated",this.zv,this),this.W=null);this.listeners.length=0;this.kh.length=0;g.J.prototype.G$.call(this)};g.M=K_.prototype;g.M.Hm=function(H,E,G,P,Q,e,w,t){return this.S.Hm(H,E,G,P,Q,e,w,t)}; g.M.pT=function(H,E){this.S.pT(H,E)}; g.M.Mq=function(H,E,G){this.S.Mq(H,E,G)}; g.M.Iz=function(H){this.S.Iz(H)}; g.M.qH=function(H,E,G,P,Q,e,w,t){this.S.qH(H,E,G,P,Q,e,w,t)}; g.M.bB=function(H){return this.S.bB(H)}; g.M.finishSegmentByCpn=function(H,E,G){G=DPj(G);this.S.finishSegmentByCpn(H,E,G)};g.C(Wa,g.J);g.C(squ,g.J);g.C(o71,g.J);g.C(eGU,g.J);g.C(wQl,g.J);g.C(hGn,g.J);g.C(a8,g.J);a8.prototype.G=function(){return this.W};g.C(JSl,zm); JSl.prototype.G=function(H){var E=H.content;if(E.componentType==="shopping-companion")switch(H.actionType){case 1:case 2:H=this.L.getVideoData(1);this.L.n_("updateKevlarOrC3Companion",{contentVideoId:H&&H.videoId,shoppingCompanionCarouselRenderer:E.renderer,layoutId:E.layoutId,macros:E.macros,onLayoutVisibleCallback:E.L,interactionLoggingClientData:E.interactionLoggingClientData});break;case 3:this.L.n_("updateKevlarOrC3Companion",{})}else if(E.componentType==="action-companion")switch(H.actionType){case 1:case 2:H=this.L.getVideoData(1); this.L.n_("updateKevlarOrC3Companion",{contentVideoId:H&&H.videoId,actionCompanionAdRenderer:E.renderer,layoutId:E.layoutId,macros:E.macros,onLayoutVisibleCallback:E.L,interactionLoggingClientData:E.interactionLoggingClientData});break;case 3:E.renderer&&(E=this.L.getVideoData(1),this.L.n_("updateKevlarOrC3Companion",{contentVideoId:E&&E.videoId})),this.L.n_("updateKevlarOrC3Companion",{})}else if(E.componentType==="image-companion")switch(H.actionType){case 1:case 2:H=this.L.getVideoData(1);this.L.n_("updateKevlarOrC3Companion", {contentVideoId:H&&H.videoId,imageCompanionAdRenderer:E.renderer,layoutId:E.layoutId,macros:E.macros,onLayoutVisibleCallback:E.L,interactionLoggingClientData:E.interactionLoggingClientData});break;case 3:E=this.L.getVideoData(1),this.L.n_("updateKevlarOrC3Companion",{contentVideoId:E&&E.videoId}),this.L.n_("updateKevlarOrC3Companion",{})}else if(E.componentType==="top-banner-image-text-icon-buttoned")switch(H.actionType){case 1:case 2:H=this.L.getVideoData(1);this.L.n_("updateKevlarOrC3Companion", {contentVideoId:H&&H.videoId,topBannerImageTextIconButtonedLayoutViewModel:E.renderer,layoutId:E.layoutId,macros:E.macros,onLayoutVisibleCallback:E.L,interactionLoggingClientData:E.interactionLoggingClientData});break;case 3:E.renderer&&(E=this.L.getVideoData(1),this.L.n_("updateKevlarOrC3Companion",{contentVideoId:E&&E.videoId})),this.L.n_("updateKevlarOrC3Companion",{})}else if(E.componentType==="banner-image")switch(H.actionType){case 1:case 2:H=this.L.getVideoData(1);this.L.n_("updateKevlarOrC3Companion", {contentVideoId:H&&H.videoId,bannerImageLayoutViewModel:E.renderer,layoutId:E.layoutId,macros:E.macros,onLayoutVisibleCallback:E.L,interactionLoggingClientData:E.interactionLoggingClientData});break;case 3:E=this.L.getVideoData(1),this.L.n_("updateKevlarOrC3Companion",{contentVideoId:E&&E.videoId}),this.L.n_("updateKevlarOrC3Companion",{})}else if(E.componentType==="ads-engagement-panel")switch(E=E.renderer,H.actionType){case 1:case 2:this.L.n_("updateEngagementPanelAction",E.addAction);this.L.n_("changeEngagementPanelVisibility", E.expandAction);break;case 3:this.L.n_("changeEngagementPanelVisibility",E.hideAction),this.L.n_("updateEngagementPanelAction",E.removeAction)}else if(E.componentType==="ads-engagement-panel-layout"){var G=E.renderer;switch(H.actionType){case 1:case 2:this.L.n_("updateEngagementPanelAction",{action:KO(G.addAction),layoutId:E.layoutId,onLayoutVisibleCallback:E.L,interactionLoggingClientData:E.interactionLoggingClientData});this.L.n_("changeEngagementPanelVisibility",KO(G.expandAction));break;case 3:this.L.n_("changeEngagementPanelVisibility", KO(G.hideAction)),this.L.n_("updateEngagementPanelAction",{action:KO(G.removeAction)})}}};g.C(qJ,S_);g.M=qJ.prototype;g.M.init=function(H,E,G){S_.prototype.init.call(this,H,E,G);g.AE(this.G,"stroke-dasharray","0 "+this.W);this.G.classList.add("ytp-ad-timed-pie-countdown-inner-light");this.T.classList.add("ytp-ad-timed-pie-countdown-outer-light");this.D.classList.add("ytp-ad-timed-pie-countdown-container-upper-right");this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){gN(this);S_.prototype.hide.call(this)}; g.M.show=function(){VF(this);S_.prototype.show.call(this)}; g.M.Go=function(){this.hide()}; g.M.uA=function(){if(this.L){var H=this.L.getProgressState();H!=null&&H.current!=null&&g.AE(this.G,"stroke-dasharray",H.current/H.seekableEnd*this.W+" "+this.W)}};g.C(pWq,s9);g.M=pWq.prototype; g.M.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);if(E.image&&E.image.thumbnail)if(E.headline)if(E.description)if(E.backgroundImage&&E.backgroundImage.thumbnail)if(E.actionButton&&g.X(E.actionButton,g.rI))if(H=E.durationMilliseconds||0,typeof H!=="number"||H<=0)g.h3(Error("durationMilliseconds was specified incorrectly in AdActionInterstitialRenderer with a value of: "+H));else if(E.navigationEndpoint){var P=this.api.getVideoData(2);if(P!=null){var Q=E.image.thumbnail.thumbnails;Q!=null&& Q.length>0&&g.xm(g.zE(Q[0].url))&&(Q[0].url=P.profilePicture,g.xm(g.zE(P.profilePicture))&&ZxM("VideoPlayer",239976093,"Expected non-empty profile picture."));Q=E.backgroundImage.thumbnail.thumbnails;Q!=null&&Q.length>0&&g.xm(g.zE(Q[0].url))&&(Q[0].url=P.QM());Q=E.headline;Q!=null&&g.xm(g.zE(Q.text))&&(Q.text=P.author)}this.N.init(PL("ad-image"),E.image,G);this.T.init(PL("ad-text"),E.headline,G);this.G.init(PL("ad-text"),E.description,G);this.eR.init(PL("ad-image"),E.backgroundImage,G);P=["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.T.element.classList.add("ytp-ad-action-interstitial-headline-light");this.G.element.classList.add("ytp-ad-action-interstitial-description-light");this.api.K().U("enable_default_mono_cta_migration_web_client")?P.push("ytp-ad-action-interstitial-action-button-mono-dark"):P.push("ytp-ad-action-interstitial-action-button-dark");this.api.K().W&&(P.push("ytp-ad-action-interstitial-action-button-mobile-companion-size"), this.api.K().U("enable_default_mono_cta_migration_web_client")?P.push("ytp-ad-action-interstitial-action-button-mono-dark"):P.push("ytp-ad-action-interstitial-action-button-dark"));this.api.K().U("enable_unified_action_endcap_on_web")&&!this.api.K().W&&(this.api.K().U("enable_default_mono_cta_migration_web_client")?P.push("ytp-ad-action-interstitial-action-button-unified-mono"):P.push("ytp-ad-action-interstitial-action-button-unified"),this.BF.classList.add("ytp-ad-action-interstitial-action-button-container-unified"), this.N.element.classList.add("ytp-ad-action-interstitial-image-unified"),this.hm.classList.add("ytp-ad-action-interstitial-background-container-unified"),this.S7.classList.add("ytp-ad-action-interstitial-card-unified"),this.WF.classList.add("ytp-ad-action-interstitial-description-container-unified"),this.G.element.classList.add("ytp-ad-action-interstitial-description-unified"),this.PF.classList.add("ytp-ad-action-interstitial-headline-container-unified"),this.T.element.classList.add("ytp-ad-action-interstitial-headline-unified"), this.T$.classList.add("ytp-ad-action-interstitial-image-container-unified"),this.z$.classList.add("ytp-ad-action-interstitial-instream-info-unified"),this.slot.classList.add("ytp-ad-action-interstitial-slot-unified"));this.actionButton=new uO(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,P);g.d(this,this.actionButton);this.actionButton.mx(this.BF);this.actionButton.init(PL("button"),g.X(E.actionButton,g.rI),G);re(this.actionButton.element);P=s4w(this.actionButton.element);Dr(this.actionButton.element, P+" This link opens in new tab");this.navigationEndpoint=E.navigationEndpoint;this.D.Z(this.T$,"click",this.Qe,this);this.D.Z(this.WF,"click",this.Qe,this);this.api.K().W||this.D.Z(this.PF,"click",this.Qe,this);this.L=this.Nm?new GK(this.api,H):new bD(H);g.d(this,this.L);if(E.skipButton){(H=g.X(E.skipButton,Owu))&&this.L&&(this.skipButton=new vE(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.L,this.N1),g.d(this,this.skipButton),this.skipButton.mx(this.element),this.skipButton.init(PL("skip-button"), H,G));if(G=E.adBadgeRenderer)if(G=g.X(G,ajW))H=new pD(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,!0,!0),H.mx(this.z$),H.init(PL("simple-ad-badge"),G,this.macros),g.d(this,H);if(G=E.adInfoRenderer)if(G=g.X(G,Li))H=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.element,void 0,!0),H.mx(this.z$),H.init(PL("ad-info-hover-text-button"),G,this.macros),g.d(this,H)}else E.nonskippableOverlayRenderer&&(H=g.X(E.nonskippableOverlayRenderer,SQ))&&this.L&&(this.W= new Zt(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.L,!1),g.d(this,this.W),this.W.mx(this.element),this.W.init(PL("ad-preview"),H,G));E.countdownRenderer&&(E=E.countdownRenderer,g.X(E,KvK)&&this.L&&(G=new qJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.L),g.d(this,G),G.mx(this.element),G.init(PL("timed-pie-countdown"),g.X(E,KvK),this.macros)));this.show();this.element.focus()}else g.h3(Error("AdActionInterstitialRenderer has no navigation endpoint.")); else g.h3(Error("AdActionInterstitialRenderer has no button."));else g.h3(Error("AdActionInterstitialRenderer has no background AdImage."));else g.h3(Error("AdActionInterstitialRenderer has no description AdText."));else g.h3(Error("AdActionInterstitialRenderer has no headline AdText."));else g.h3(Error("AdActionInterstitialRenderer has no image."))}; g.M.clear=function(){g.hH(this.D);this.hide()}; g.M.show=function(){wiQ(!0);this.actionButton&&this.actionButton.show();this.skipButton&&this.skipButton.show();this.W&&this.W.show();s9.prototype.show.call(this)}; g.M.hide=function(){wiQ(!1);this.actionButton&&this.actionButton.hide();this.skipButton&&this.skipButton.hide();this.W&&this.W.hide();s9.prototype.hide.call(this)}; g.M.Qe=function(){this.navigationEndpoint&&(this.layoutId?this.vF.executeCommand(this.navigationEndpoint,this.layoutId):g.h3(Error("Missing layoutId for ad action interstitial.")))};var OD={iconType:"CLOSE"},rb=new g.P4(320,63);g.C(dM,s9);g.M=dM.prototype; g.M.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);this.D=E;this.N=g.dm(this.D.onClickCommands||[]);this.z$=this.D.onErrorCommand||null;if(H=this.D.contentSupportedRenderer)H=this.D.contentSupportedRenderer,E=this.D.adInfoRenderer||null,g.X(H,dTK)?(this.T=g.mO("ytp-ad-overlay-ad-info-button-container",this.G.element),Bg(this,E),H=xWT(this,g.X(H,dTK))):g.X(H,DTM)?(this.T=g.mO("ytp-ad-overlay-ad-info-button-container",this.W.element),Bg(this,E),H=VDq(this,g.X(H,DTM))):g.X(H,nQC)?(this.T=g.mO("ytp-ad-overlay-ad-info-button-container", this.L.element),Bg(this,E),H=M97(this,g.X(H,nQC))):(g.h3(Error("InvideoOverlayAdRenderer content could not be initialized.")),H=!1);H&&(this.show(),C5l(this,!0))}; g.M.clear=function(){C5l(this,!1);this.T$.reset();this.WF=0;this.G.hide();this.logVisibility(this.G.element,!1);this.W.hide();this.logVisibility(this.W.element,!1);this.L.hide();this.logVisibility(this.L.element,!1);this.hide();this.dispose()}; g.M.i0$=function(){this.BF&&(this.layoutId?this.vF.executeCommand(this.BF,this.layoutId):g.h3(Error("Missing layoutId for invideo_overlay_ad.")));this.api.pauseVideo()}; g.M.nF=function(){a:{if(this.D&&this.D.closeButton&&this.D.closeButton.buttonRenderer){var H=this.D.closeButton.buttonRenderer;if(H.serviceEndpoint){H=[H.serviceEndpoint];break a}}H=[]}H=g.R(H);for(var E=H.next();!E.done;E=H.next())E=E.value,this.layoutId?this.vF.executeCommand(E,this.layoutId):g.h3(Error("Missing layoutId for invideo_overlay_ad."));this.api.onAdUxClicked("in_video_overlay_close_button",this.layoutId)}; g.M.mCZ=function(){this.eR||this.api.getPlayerState(1)!==2||this.api.playVideo()}; g.M.aK=function(){this.eR||this.api.getPlayerState(1)!==2||this.api.playVideo();this.api.aK("invideo-overlay")}; g.M.dCu=function(H){H.target===this.T&&g.mO("ytp-ad-button",this.hm.element).click()};g.C(xCU,S_);g.M=xCU.prototype;g.M.init=function(H,E,G){S_.prototype.init.call(this,H,E,G);H=E.durationMs;this.G=H==null||H===0?0:H+this.L.getProgressState().current*1E3;if(E.text)var P=E.text.templatedAdText;else E.staticMessage&&(P=E.staticMessage);this.messageText.init(PL("ad-text"),P,G);this.messageText.mx(this.W.element);this.D.show(100);this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){bJM(this,!1);S_.prototype.hide.call(this);this.W.hide();this.messageText.hide();gN(this)}; g.M.show=function(){bJM(this,!0);S_.prototype.show.call(this);VF(this);this.W.show();this.messageText.show()}; g.M.Go=function(){this.hide()}; g.M.uA=function(){if(this.L!=null){var H=this.L.getProgressState();H!=null&&H.current!=null&&(H=1E3*H.current,!this.WF&&H>=this.G?(this.D.hide(),this.WF=!0):this.messageText&&this.messageText.isTemplated()&&(H=Math.max(0,Math.ceil((this.G-H)/1E3)),H!==this.T&&(nTn(this.messageText,{TIME_REMAINING:String(H)}),this.T=H)))}};g.C(R4T,s9);g.M=R4T.prototype; g.M.init=function(H,E,G){s9.prototype.init.call(this,H,E,{});E.image&&E.image.thumbnail?E.headline?E.description?E.actionButton&&g.X(E.actionButton,g.rI)?(this.G.init(PL("ad-image"),E.image,G),this.W.init(PL("ad-text"),E.headline,G),this.D.init(PL("ad-text"),E.description,G),this.actionButton=new uO(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,["ytp-ad-underlay-action-button"]),E.backgroundColor&&g.AE(this.element,"background-color",g.bt(E.backgroundColor)),g.d(this,this.actionButton), this.actionButton.mx(this.T),this.actionButton.init(PL("button"),g.X(E.actionButton,g.rI),G),H=g.hE(this.api.K().experiments,"player_underlay_video_width_fraction"),this.api.K().U("place_shrunken_video_on_left_of_player")?(E=this.L,g.Tn(E,"ytp-ad-underlay-left-container"),g.aG(E,"ytp-ad-underlay-right-container"),g.AE(this.L,"margin-left",Math.round((H+.02)*100)+"%")):(E=this.L,g.Tn(E,"ytp-ad-underlay-right-container"),g.aG(E,"ytp-ad-underlay-left-container")),g.AE(this.L,"width",Math.round((1-H- .04)*100)+"%"),this.api.ED()&&this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.g_.bind(this)),this.api.addEventListener("resize",this.pE.bind(this))):g.h3(Error("InstreamAdPlayerUnderlayRenderer has no button.")):g.h3(Error("InstreamAdPlayerUnderlayRenderer has no description AdText.")):g.h3(Error("InstreamAdPlayerUnderlayRenderer has no headline AdText.")):g.h3(Error("InstreamAdPlayerUnderlayRenderer has no image."))}; g.M.show=function(){lqw(!0);this.actionButton&&this.actionButton.show();s9.prototype.show.call(this)}; g.M.hide=function(){lqw(!1);this.actionButton&&this.actionButton.hide();s9.prototype.hide.call(this)}; g.M.clear=function(){this.api.removeEventListener("playerUnderlayVisibilityChange",this.g_.bind(this));this.api.removeEventListener("resize",this.pE.bind(this));this.hide()}; g.M.onClick=function(H){s9.prototype.onClick.call(this,H);this.actionButton&&g.wa(this.actionButton.element,H.target)&&this.api.pauseVideo()}; g.M.g_=function(H){H==="transitioning"?(this.L.classList.remove("ytp-ad-underlay-clickable"),this.show()):H==="visible"?this.L.classList.add("ytp-ad-underlay-clickable"):H==="hidden"&&(this.hide(),this.L.classList.remove("ytp-ad-underlay-clickable"))}; g.M.pE=function(H){H.width>1200?(this.actionButton.element.classList.add("ytp-ad-underlay-action-button-large"),this.actionButton.element.classList.remove("ytp-ad-underlay-action-button-medium")):H.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.AE(this.W.element,"font-size",H.width/40+"px")};g.C(J5,s9); J5.prototype.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);E.toggledLoggingParams&&(this.toggledLoggingParams=E.toggledLoggingParams);E.answer&&g.X(E.answer,g.rI)?(H=new uO(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,["ytp-ad-survey-answer-button"],"survey-single-select-answer-button"),H.mx(this.answer),H.init(PL("ytp-ad-survey-answer-button"),g.X(E.answer,g.rI),G),H.show()):E.answer&&g.X(E.answer,dF)&&(this.L=new YJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vF, ["ytp-ad-survey-answer-toggle-button"]),this.L.mx(this.answer),g.d(this,this.L),this.L.init(PL("survey-answer-button"),g.X(E.answer,dF),G));this.show()}; J5.prototype.wj=function(H){this.layoutId?w3(this.vF,H,this.layoutId,this.macros):(H=new g.LN("There is undefined layoutId when calling the runCommand method.",{componentType:this.componentType}),g.h3(H))}; J5.prototype.onClick=function(H){s9.prototype.onClick.call(this,H);if(this.api.K().U("supports_multi_step_on_desktop")&&this.index!==null)this.onSelected(this.index)}; J5.prototype.clear=function(){this.hide()};g.C(hy,s9);hy.prototype.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);E.answer&&g.X(E.answer,dF)&&(this.button=new YJ(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,["ytp-ad-survey-answer-toggle-button","ytp-ad-survey-none-of-the-above-button"]),this.button.mx(this.L),this.button.init(PL("survey-none-of-the-above-button"),g.X(E.answer,dF),G));this.show()};g.C(gV,uO);gV.prototype.init=function(H,E,G){uO.prototype.init.call(this,H,E,G);H=!1;E.text&&(E=g.b_(E.text),H=!g.xm(E));H||g.p5(Error("No submit text was present in the renderer."))}; gV.prototype.onClick=function(H){this.publish("l");uO.prototype.onClick.call(this,H)};g.C(P_,s9); P_.prototype.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);if(H=E.skipOrPreviewRenderer)g.X(H,O2)?(H=g.X(H,O2),G=new Op(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.D,!0),G.mx(this.skipOrPreview),G.init(PL("skip-button"),H,this.macros),g.d(this,G),this.L=G):g.X(H,SQ)&&(H=g.X(H,SQ),G=new Zt(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.D,!1),G.mx(this.skipOrPreview),G.init(PL("ad-preview"),H,this.macros),G.WF.show(100),G.show(),g.d(this,G), this.L=G);this.L==null&&(H=Error("ISAPOR.skipOrPreviewRenderer was not initialized properly.ISAPOR: "+JSON.stringify(E)),g.h3(H));E.submitButton&&(H=E.submitButton,g.X(H,g.rI)&&(H=g.X(H,g.rI),G=new gV(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),G.mx(this.submitButton),G.init(PL("survey-submit"),H,this.macros),g.d(this,G),this.W=G));if(H=E.adBadgeRenderer)H=g.X(H,ajW),G=new pD(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,!0,!0,!0),G.mx(this.G),G.init(PL("simple-ad-badge"), H,this.macros),this.adBadge=G.element,g.d(this,G);if(H=E.adDurationRemaining)H=g.X(H,u1u),G=new II(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.D,void 0,!0),G.mx(this.G),G.init(PL("ad-duration-remaining"),H,this.macros),g.d(this,G);(E=E.adInfoRenderer)&&g.X(E,Li)&&(H=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.element,void 0,!0),g.d(this,H),this.adBadge!==void 0?this.G.insertBefore(H.element,this.adBadge.nextSibling):H.mx(this.G),H.init(PL("ad-info-hover-text-button"), g.X(E,Li),this.macros));this.show()}; P_.prototype.clear=function(){this.hide()};g.C(bu,s9);bu.prototype.init=function(H,E,G){s9.prototype.init.call(this,H,E,G);vUj(this)}; bu.prototype.show=function(){this.G=Date.now();s9.prototype.show.call(this)}; bu.prototype.zD=function(){};g.C(GJ,bu);g.M=GJ.prototype;g.M.init=function(H,E,G){var P=this;bu.prototype.init.call(this,H,E,G);E.questionText&&afw(this,E.questionText);E.answers&&E.answers.forEach(function(Q,e){g.X(Q,v6)&&blt(P,g.X(Q,v6),G,e)}); this.T=new Set(this.W.map(function(Q){return Q.L.L})); (H=E.noneOfTheAbove)&&(H=g.X(H,MuD))&&nfU(this,H,G);E.surveyAdQuestionCommon&&vh7(this,E.surveyAdQuestionCommon);E.submitEndpoints&&(this.submitEndpoints=E.submitEndpoints);this.Z(this.element,"change",this.onChange);this.show()}; g.M.zD=function(){oFt(this,!1);this.D.W.subscribe("l",this.gzw,this)}; g.M.onChange=function(H){H.target===this.noneOfTheAbove.button.L?e4n(this):this.T.has(H.target)&&(this.noneOfTheAbove.button.toggleButton(!1),oFt(this,!0))}; g.M.gzw=function(){var H=[],E=this.W.reduce(function(Q,e,w){var t=e.toggledLoggingParams;e.L&&e.L.isToggled()&&t&&(Q.push(t),H.push(w));return Q},[]).join("&"),G=this.submitEndpoints.map(function(Q){if(!Q.loggingUrls)return Q; Q=g.sM(Q);Q.loggingUrls=Q.loggingUrls.map(function(e){e.baseUrl&&(e.baseUrl=aT(e.baseUrl,E));return e}); return Q}); if(G){G=g.R(G);for(var P=G.next();!P.done;P=G.next())P=P.value,this.layoutId?w3(this.vF,P,this.layoutId,this.macros):g.h3(Error("Missing layoutId for multi_select_question."))}this.api.K().U("supports_multi_step_on_desktop")&&this.WF(H)}; g.M.clear=function(){this.api.K().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.C(iu,bu);iu.prototype.init=function(H,E,G){var P=this;bu.prototype.init.call(this,H,E,G);E.questionText&&afw(this,E.questionText);E.answers&&E.answers.forEach(function(Q,e){g.X(Q,v6)&&blt(P,g.X(Q,v6),G,e)}); E.surveyAdQuestionCommon?vh7(this,E.surveyAdQuestionCommon):Wp(Error("SurveyAdQuestionCommon was not sent.SingleSelectQuestionRenderer: "+JSON.stringify(E)));this.show()}; iu.prototype.clear=function(){this.api.K().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():this.dispose()};g.C(lI,s9);lI.prototype.init=function(H,E,G){var P=this;s9.prototype.init.call(this,H,E,G);if(this.api.K().U("supports_multi_step_on_desktop")){var Q;this.conditioningRules=(Q=E.conditioningRules)!=null?Q:[];var e;this.W=(e=E.questions)!=null?e:[];var w;((w=E.questions)==null?0:w.length)&&bws(this,0)}else(E.questions||[]).forEach(function(t){g.X(t,aW)?Nl1(P,g.X(t,aW),G):g.X(t,O9)&&yd7(P,g.X(t,O9),G)}); this.show()}; lI.prototype.clear=function(){this.api.K().U("enable_hide_on_clear_in_survey_question_bulleit")?this.hide():(this.hide(),this.dispose())}; lI.prototype.D=function(H){var E=this;if(this.api.K().U("supports_multi_step_on_desktop")){var G;if((G=this.conditioningRules)==null?0:G.length){var P;if(H.length===0)this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId);else if(this.conditioningRules.find(function(Q){return Q.questionIndex===E.L})==null)g.h3(Error("Expected conditioning rule(s) for survey question.")),this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId); else if(this.conditioningRules.forEach(function(Q){if(Q.questionIndex===E.L)switch(Q.condition){case "CONDITION_ALL_OF":var e;if((e=Q.answerIndices)==null?0:e.every(function(t){return H.includes(t)}))P=Q.nextQuestionIndex; break;case "CONDITION_ANY_OF":var w;if((w=Q.answerIndices)==null?0:w.some(function(t){return H.includes(t)}))P=Q.nextQuestionIndex; break;default:g.h3(Error("Expected specified condition in survey conditioning rules."))}}),P!=null)bws(this,P); else this.api.onAdUxClicked("ad-action-submit-survey",this.layoutId)}else this.questions.length>1&&g.h3(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.C(ku,s9); ku.prototype.init=function(H,E,G){var P=this;s9.prototype.init.call(this,H,E,G);H=E.timeoutSeconds||0;if(typeof H!=="number"||H<0)g.h3(Error("timeoutSeconds was specified incorrectly in SurveyTextInterstitialRenderer with a value of: "+H));else if(E.timeoutCommands)if(E.text)if(E.ctaButton&&g.X(E.ctaButton,g.rI))if(E.brandImage)if(E.backgroundImage&&g.X(E.backgroundImage,L$)&&g.X(E.backgroundImage,L$).landscape){this.layoutId||g.h3(Error("Missing layoutId for survey interstitial."));pws(this.interstitial,g.X(E.backgroundImage, L$).landscape);pws(this.logoImage,E.brandImage);g.rA(this.text,g.b_(E.text));var Q=["ytp-ad-survey-interstitial-action-button"];Q.push("ytp-ad-survey-interstitial-action-button-rounded");this.actionButton=new uO(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,Q);g.d(this,this.actionButton);this.actionButton.mx(this.W);this.actionButton.init(PL("button"),g.X(E.ctaButton,g.rI),G);this.actionButton.show();this.L=new GK(this.api,H*1E3);this.L.subscribe("g",function(){P.transition.hide()}); g.d(this,this.L);this.Z(this.element,"click",function(e){var w=e.target===P.interstitial;e=P.actionButton.element.contains(e.target);if(w||e)if(P.transition.hide(),w)P.api.onAdUxClicked(P.componentType,P.layoutId)}); this.transition.show(100)}else g.h3(Error("SurveyTextInterstitialRenderer has no landscape background image."));else g.h3(Error("SurveyTextInterstitialRenderer has no brandImage."));else g.h3(Error("SurveyTextInterstitialRenderer has no button."));else g.h3(Error("SurveyTextInterstitialRenderer has no text."));else g.h3(Error("timeoutSeconds was specified yet no timeoutCommands where specified"))}; ku.prototype.clear=function(){this.hide()}; ku.prototype.show=function(){CvU(!0);s9.prototype.show.call(this)}; ku.prototype.hide=function(){CvU(!1);s9.prototype.hide.call(this)};g.C(yU,S_);g.M=yU.prototype; g.M.init=function(H,E){S_.prototype.init.call(this,H,E,{});if(E.durationMilliseconds){if(E.durationMilliseconds<0){g.h3(Error("DurationMilliseconds was specified incorrectly in AdPreview with a value of: "+E.durationMilliseconds));return}this.W=E.durationMilliseconds}else this.W=this.L.ov();var G;if((G=E.previewText)==null||!G.text||g.xm(E.previewText.text))g.h3(Error("No text is returned for AdPreview."));else{this.T=E.previewText;E.previewText.isTemplated||g.rA(this.G,E.previewText.text);var P; if(((P=this.api.getVideoData(1))==null?0:P.Yh)&&E.previewImage){var Q,e;(H=((e=Qp(((Q=E.previewImage)==null?void 0:Q.sources)||[],52,!1))==null?void 0:e.url)||"")&&H.length?(this.previewImage=new g.av({J:"img",Y:"ytp-preview-ad__image",j:{src:"{{imageUrl}}"}}),this.previewImage.updateValue("imageUrl",H),g.d(this,this.previewImage),this.previewImage.mx(this.element)):g.h3(Error("Failed to get imageUrl in AdPreview."))}else this.G.classList.add("ytp-preview-ad__text--padding--wide")}}; g.M.clear=function(){this.hide()}; g.M.hide=function(){gN(this);S_.prototype.hide.call(this)}; g.M.show=function(){VF(this);S_.prototype.show.call(this)}; g.M.Go=function(){this.hide()}; g.M.uA=function(){if(this.L){var H=this.L.getProgressState();if(H!=null&&H.current)if(H=1E3*H.current,H>=this.W)this.transition.hide();else{var E;if((E=this.T)==null?0:E.isTemplated)if(E=Math.max(0,Math.ceil((this.W-H)/1E3)),E!==this.D){var G,P;(H=(G=this.T)==null?void 0:(P=G.text)==null?void 0:P.replace("{TIME_REMAINING}",String(E)))&&g.rA(this.G,H);this.D=E}}}};g.C(qi,s9); qi.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});var G,P;if((H=((P=Qp(((G=E.image)==null?void 0:G.sources)||[],uot(E),!0))==null?void 0:P.url)||"")&&H.length){G=this.HF("ytp-ad-avatar");G.src=H;var Q,e;if(P=(Q=E.interaction)==null?void 0:(e=Q.accessibility)==null?void 0:e.label)G.alt=P;switch(E.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(E.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.h3(Error("Failed to get imageUrl in AdAvatar."))}; qi.prototype.clear=function(){this.hide()}; qi.prototype.onClick=function(H){s9.prototype.onClick.call(this,H)};g.C(FZ,s9); FZ.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});var G;H=(G=E.label)==null?void 0:G.content;if((G=H!=null&&!g.xm(H))||E.iconImage){G&&(this.buttonText=new g.av({J:"span",Y:"ytp-ad-button-vm__text",iJ:H}),g.d(this,this.buttonText),this.buttonText.mx(this.element));var P,Q,e=((P=E.interaction)==null?0:(Q=P.accessibility)==null?0:Q.label)||G?H:"";e&&Dr(this.element,e+" This link opens in new tab");re(this.element);if(E.iconImage){P=void 0;if(E.iconImage){a:{Q=E.iconImage;if(Q.sources)for(Q= g.R(Q.sources),H=Q.next();!H.done;H=Q.next())if(H=H.value,e=void 0,(e=H.clientResource)==null?0:e.imageName){Q=H;break a}Q=void 0}if(Q){var w;P={iconType:(w=Q.clientResource)==null?void 0:w.imageName}}}w=iL(P,!1,this.W);w!=null&&(this.buttonIcon=new g.av({J:"span",Y:"ytp-ad-button-vm__icon",V:[w]}),g.d(this,this.buttonIcon),E.iconLeading?(bl(this.element,this.buttonIcon.element,0),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--leading")):G?(this.buttonIcon.mx(this.element),this.buttonIcon.element.classList.add("ytp-ad-button-vm__icon--trailing")): (this.buttonIcon.mx(this.element),this.element.classList.add("ytp-ad-button-vm--icon-only")))}switch(E.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.U("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(E.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.p5(Error("AdButton does not have label or an icon."))}; FZ.prototype.clear=function(){this.hide()}; FZ.prototype.onClick=function(H){s9.prototype.onClick.call(this,H)};g.C(RF,S_);g.M=RF.prototype; g.M.init=function(H,E){S_.prototype.init.call(this,H,E,{});if(H=g.X(E.avatar,Ze)){var G=E.headline;if(G){var P=E.description;if(P){var Q=g.X(E.button,g3);Q?(this.adAvatar.init(PL("ad-avatar"),H),this.headline.init(PL("ad-simple-attributed-string"),new ZZ(G)),this.description.init(PL("ad-simple-attributed-string"),new ZZ(P)),G.content&&G.content.length>20&&this.description.element.classList.add("ytp-ad-avatar-lockup-card__description--hidden--in--small--player"),this.adButton.init(PL("ad-button"),Q), this.startMilliseconds=E.startMs||0,this.api.ED()||this.show(),this.api.addEventListener("playerUnderlayVisibilityChange",this.WC.bind(this)),VF(this)):g.h3(Error("No AdButtonViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.h3(Error("No description is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.h3(Error("No headline is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}else g.h3(Error("No AdAvatarViewModel is returned in PlayerAdAvatarLockupCardButtonedViewModel."))}; g.M.uA=function(){if(this.L){var H=this.L.getProgressState();H&&H.current&&1E3*H.current>=this.startMilliseconds&&(gN(this),this.element.classList.remove("ytp-ad-avatar-lockup-card--inactive"))}}; g.M.Go=function(){this.clear()}; g.M.onClick=function(H){this.api.pauseVideo();S_.prototype.onClick.call(this,H)}; g.M.clear=function(){this.hide();this.api.removeEventListener("playerUnderlayVisibilityChange",this.WC.bind(this))}; g.M.show=function(){this.adAvatar.show();this.headline.show();this.description.show();this.adButton.show();S_.prototype.show.call(this)}; g.M.hide=function(){this.adAvatar.hide();this.headline.hide();this.description.hide();this.adButton.hide();S_.prototype.hide.call(this)}; g.M.WC=function(H){H==="hidden"?this.show():this.hide()};g.C(Fk,s9);g.M=Fk.prototype; g.M.init=function(H,E){s9.prototype.init.call(this,H,E,{});if(!E.label||g.xm(E.label))g.h3(Error("No label is returned for SkipAdButton."));else if(g.rA(this.D,E.label),H=iL({iconType:"SKIP_NEXT_NEW"},!1,!1,this.api.U("delhi_modern_web_player_icons")),H==null)g.h3(Error("Unable to retrieve icon for SkipAdButton"));else if(this.G=new g.av({J:"span",Y:"ytp-skip-ad-button__icon",V:[H]}),g.d(this,this.G),this.G.mx(this.element),this.api.K().experiments.xp("enable_skip_to_next_messaging")&&(E=g.zE(E.targetId)))this.W= !0,this.element.setAttribute("data-tooltip-target-id",E),this.element.setAttribute("data-tooltip-target-fixed","")}; g.M.onClick=function(H){H&&H.preventDefault();var E,G;QMu(H,{contentCpn:(G=(E=this.api.getVideoData(1))==null?void 0:E.clientPlaybackNonce)!=null?G:""})===0?this.api.n_("onAbnormalityDetected"):(s9.prototype.onClick.call(this,H),this.api.n_("onAdSkip"),this.api.onAdUxClicked(this.componentType,this.layoutId))}; g.M.clear=function(){this.L.reset();this.hide()}; g.M.hide=function(){s9.prototype.hide.call(this)}; g.M.show=function(){this.L.start();s9.prototype.show.call(this);this.W&&this.api.K().experiments.xp("enable_skip_to_next_messaging")&&this.api.publish("showpromotooltip",this.element)};g.C(fh,S_);g.M=fh.prototype; g.M.init=function(H,E){S_.prototype.init.call(this,H,E,{});H=g.X(E.preskipState,qnJ);var G;if((G=this.api.getVideoData())==null?0:G.isDaiEnabled()){if(!H){g.h3(Error("No AdPreviewViewModel is returned in SkipAdViewModel."));return}this.W=new yU(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.L);g.d(this,this.W);this.W.mx(this.element);var P;(P=this.W)==null||P.init(PL("preview-ad"),H);(G=this.W)!=null&&(G.transition.show(100),G.show())}(G=g.X(E.skippableState,JdZ))?(E.skipOffsetMilliseconds!= null?this.skipOffsetMilliseconds=E.skipOffsetMilliseconds:(g.p5(Error("No skipOffsetMilliseconds is returned in SkipAdViewModel.")),this.skipOffsetMilliseconds=5E3),this.G.init(PL("skip-button"),G),this.show()):g.h3(Error("No SkipAdButtonViewModel is returned in SkipAdViewModel."))}; g.M.show=function(){VF(this);S_.prototype.show.call(this)}; g.M.hide=function(){!this.isSkippable&&this.W?this.W.hide():this.G&&this.G.hide();gN(this);S_.prototype.hide.call(this)}; g.M.clear=function(){var H;(H=this.W)==null||H.clear();this.G&&this.G.clear();gN(this);S_.prototype.hide.call(this)}; g.M.Go=function(){this.hide()}; g.M.uA=function(){if(1E3*this.L.getProgressState().current>=this.skipOffsetMilliseconds&&!this.isSkippable){this.isSkippable=!0;var H;(H=this.W)!=null&&H.transition.hide();(H=this.G)!=null&&(H.transition.show(),H.show())}};g.C(lD,s9); lD.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});if(E.label){var G;((G=E.label)==null?0:G.content)&&!g.xm(E.label.content)&&(this.linkText=new g.av({J:"span",Y:"ytp-visit-advertiser-link__text",iJ:E.label.content}),g.d(this,this.linkText),this.linkText.mx(this.element));var P,Q;if((P=E.interaction)==null?0:(Q=P.accessibility)==null?0:Q.label)Dr(this.element,E.interaction.accessibility.label+" This link opens in new tab");else{var e;((e=E.label)==null?0:e.content)&&!g.xm(E.label.content)&&Dr(this.element, E.label.content+" This link opens in new tab")}re(this.element);this.element.setAttribute("tabindex","0");this.show()}else g.h3(Error("No label found in VisitAdvertiserLink."))}; lD.prototype.onClick=function(H){s9.prototype.onClick.call(this,H);this.api.onAdUxClicked(this.componentType,this.layoutId)}; lD.prototype.clear=function(){this.hide()};g.C(zK,s9); zK.prototype.init=function(H,E,G,P){s9.prototype.init.call(this,H,E,{});if(E.skipOrPreview){G=E.skipOrPreview;H=g.X(G,rdu);G=g.X(G,qnJ);if(H)this.oO=new fh(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.W),g.d(this,this.oO),this.oO.mx(this.N),this.oO.init(PL("skip-ad"),H);else{var Q;G&&((Q=this.api.getVideoData())==null?0:Q.isDaiEnabled())&&(this.D=new yU(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.W,1),g.d(this,this.D),this.D.mx(this.N),this.D.init(PL("ad-preview"), G),Q=this.D,Q.transition.show(100),Q.show())}if(Q=g.X(E.skipOrPreview,rdu))var e=Q.skipOffsetMilliseconds}E.playerAdCard&&(Q=g.X(E.playerAdCard,RqM))&&(this.playerAdCard=new RF(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.W),g.d(this,this.playerAdCard),this.playerAdCard.mx(this.PF),this.playerAdCard.init(PL("ad-avatar-lockup-card"),Q));E.adBadgeRenderer&&((Q=g.X(E.adBadgeRenderer,Ci))?(this.G=new Em(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,!0),g.d(this, this.G),this.G.mx(this.L),this.G.init(PL("ad-badge"),Q)):g.h3(Error("AdBadgeViewModel is not found in player overlay layout.")));E.adPodIndex&&(Q=g.X(E.adPodIndex,NlR))&&(this.adPodIndex=new pO(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.adPodIndex),this.adPodIndex.mx(this.L),this.adPodIndex.init(PL("ad-pod-index"),Q));E.adInfoRenderer&&((Q=g.X(E.adInfoRenderer,Li))?(this.adInfoButton=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.element, void 0,!0),g.d(this,this.adInfoButton),this.G!==void 0?this.L.insertBefore(this.adInfoButton.element,this.G.element.nextSibling):this.adInfoButton.mx(this.L),this.adInfoButton.init(PL("ad-info-hover-text-button"),Q,this.macros)):g.p5(Error("AdInfoRenderer is not found in player overlay layout.")));var w;Q=(w=this.api.getVideoData())==null?void 0:w.isDaiEnabled();E.adDurationRemaining&&Q&&(w=g.X(E.adDurationRemaining,u1u))&&(this.adDurationRemaining=new II(this.api,this.layoutId,this.interactionLoggingClientData, this.vF,this.W,P.videoAdDurationSeconds,!0),g.d(this,this.adDurationRemaining),this.adPodIndex!==void 0?this.L.insertBefore(this.adDurationRemaining.element,this.adPodIndex.element.nextSibling):this.adDurationRemaining.mx(this.L),this.adDurationRemaining.init(PL("ad-duration-remaining"),w,this.macros),this.adDurationRemaining.element.classList.add("ytp-ad-duration-remaining-autohide"));E.visitAdvertiserLink&&(P=g.X(E.visitAdvertiserLink,YnW))&&(this.visitAdvertiserLink=new lD(this.api,this.layoutId, this.interactionLoggingClientData,this.vF),g.d(this,this.visitAdvertiserLink),this.visitAdvertiserLink.mx(this.L),this.visitAdvertiserLink.init(PL("visit-advertiser-link"),P));E.adDisclosureBanner&&(E=g.X(E.adDisclosureBanner,cdK))&&(this.adDisclosureBanner=new oW(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.adDisclosureBanner),this.adDisclosureBanner.mx(this.WF),this.adDisclosureBanner.init(PL("ad-disclosure-banner"),E));this.T=new jL(this.api,this.W,e,!0);g.d(this, this.T);g.as(this.api,this.T.element,4);this.show()}; zK.prototype.clear=function(){this.hide()};g.C(f0,s9);g.M=f0.prototype; g.M.init=function(H,E){s9.prototype.init.call(this,H,E,{});if(E!=null&&E.title)if(H=E.title)if(this.headline.init(PL("ad-simple-attributed-string"),new ZZ(H)),H=g.X(E.moreInfoButton,g3)){if(this.moreInfoButton.init(PL("ad-button"),H),E.descriptions)E.descriptions.length>0&&(H=E.descriptions[0])&&(this.L=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.L),this.L.mx(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[0]),this.L.init(PL("ad-simple-attributed-string"), new ZZ(H))),E.descriptions.length>1&&(E=E.descriptions[1])&&(this.W=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.W),this.W.mx(this.element.getElementsByClassName("ytp-ad-grid-card-text__metadata__description__line")[1]),this.W.init(PL("ad-simple-attributed-string"),new ZZ(E)))}else g.h3(Error("No AdButtonViewModel is returned in AdGridCardText."));else g.h3(Error("No headline found in AdGridCardText."));else g.h3(Error("No headline found in AdGridCardText."))}; g.M.onClick=function(H){s9.prototype.onClick.call(this,H);this.api.pauseVideo();this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.M.clear=function(){this.hide();this.headline.clear();this.moreInfoButton.clear();var H;(H=this.L)==null||H.clear();var E;(E=this.W)==null||E.clear()}; g.M.hide=function(){this.headline.hide();this.moreInfoButton.hide();var H;(H=this.L)==null||H.hide();var E;(E=this.W)==null||E.hide();s9.prototype.hide.call(this)}; g.M.show=function(){s9.prototype.show.call(this);this.headline.show();this.moreInfoButton.show();var H;(H=this.L)==null||H.show();var E;(E=this.W)==null||E.show()};g.C(gA,s9);gA.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});if(E!=null&&E.gridCards)if(E.style!=="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN")g.h3(Error("Only single column style is currently supported in AdGridCardCollection."));else for(H=g.R(E.gridCards),E=H.next();!E.done;E=H.next()){if(E=g.X(E.value,iwd)){var G=new f0(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);g.d(this,G);G.mx(this.element);G.init(PL("ad-grid-card-text"),E);this.L.push(G)}}else g.h3(Error("No grid cards found in AdGridCardCollection."))}; gA.prototype.show=function(){for(var H=g.R(this.L),E=H.next();!E.done;E=H.next())E.value.show();s9.prototype.show.call(this)}; gA.prototype.clear=function(){this.hide();for(var H=g.R(this.L),E=H.next();!E.done;E=H.next())E.value.clear()}; gA.prototype.hide=function(){for(var H=g.R(this.L),E=H.next();!E.done;E=H.next())E.value.hide();s9.prototype.hide.call(this)};g.C(Co,S_);g.M=Co.prototype;g.M.init=function(H,E,G,P,Q){Q=Q===void 0?0:Q;S_.prototype.init.call(this,H,E,G,P);this.playerProgressOffsetMs=Q;VF(this);this.api.addEventListener("playerUnderlayVisibilityChange",this.l$.bind(this));this.api.addEventListener("resize",this.i9.bind(this));this.api.ED()?(this.W=!0,this.api.OV(!0),this.show()):this.hide()}; g.M.uA=function(){if(this.L){var H=this.L.getProgressState();H&&H.current&&!this.W&&1E3*H.current>=this.playerProgressOffsetMs&&(this.W=!0,this.api.OV(!0),this.show())}}; g.M.Go=function(){this.W&&this.api.OV(!1);this.hide()}; g.M.clear=function(){this.api.OV(!1);this.api.removeEventListener("playerUnderlayVisibilityChange",this.l$.bind(this));this.api.removeEventListener("resize",this.i9.bind(this));gN(this);this.hide()}; g.M.hide=function(){nOq(!1);S_.prototype.hide.call(this)}; g.M.show=function(){nOq(!0);S_.prototype.show.call(this)};g.C(Lo,Co);g.M=Lo.prototype; g.M.init=function(H,E,G,P){if(E!=null&&E.adGridCardCollection)if(E!=null&&E.adButton){var Q=Number(E.playerProgressOffsetMs||"0");isNaN(Q)?Co.prototype.init.call(this,H,E,G,P):Co.prototype.init.call(this,H,E,G,P,Q);H=E.headline;G=g.X(E.adAvatar,Ze);H&&G?(this.headline=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.headline),this.headline.mx(this.HF("ytp-display-underlay-text-grid-cards__content_container__header__headline")),this.headline.init(PL("ad-simple-attributed-string"),new ZZ(H)), this.adAvatar=new qi(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.adAvatar),this.adAvatar.mx(this.HF("ytp-display-underlay-text-grid-cards__content_container__header__ad_avatar")),this.adAvatar.init(PL("ad-avatar"),G)):this.D.classList.remove("ytp-display-underlay-text-grid-cards__content_container__header");H=g.X(E.adGridCardCollection,bwD);this.adGridCardCollection.init(PL("ad-grid-card-collection"),H);E=g.X(E.adButton,g3);this.adButton.init(PL("ad-button"),E); this.hide()}else g.h3(Error("No button found in DisplayUnderlayTextGridCardsLayout."));else g.h3(Error("No grid cards found in DisplayUnderlayTextGridCardsLayout."))}; g.M.onClick=function(H){(this.adButton&&g.wa(this.adButton.element,H.target)||this.adAvatar&&g.wa(this.adAvatar.element,H.target))&&this.api.pauseVideo();Co.prototype.onClick.call(this,H);this.api.onAdUxClicked(this.componentType,this.layoutId)}; g.M.i9=function(){}; g.M.clear=function(){this.hide();var H;(H=this.headline)==null||H.clear();var E;(E=this.adAvatar)==null||E.clear();this.adGridCardCollection.clear();this.adButton.clear();Co.prototype.clear.call(this)}; g.M.show=function(){var H;(H=this.headline)==null||H.show();var E;(E=this.adAvatar)==null||E.show();this.adGridCardCollection.show();this.adButton.show();Co.prototype.show.call(this)}; g.M.hide=function(){var H;(H=this.headline)==null||H.hide();var E;(E=this.adAvatar)==null||E.hide();this.adGridCardCollection.hide();this.adButton.hide();Co.prototype.hide.call(this)}; g.M.l$=function(H){H==="transitioning"?(this.G.classList.remove("ytp-ad-underlay-clickable"),this.show()):H==="visible"?this.G.classList.add("ytp-ad-underlay-clickable"):H==="hidden"&&(this.hide(),this.G.classList.remove("ytp-ad-underlay-clickable"))};g.C(AN,s9); AN.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});if(E.attributes===void 0)g.h3(Error("No attributes found in AdDetailsLineViewModel."));else if(E.style===void 0)g.h3(Error("No style found in AdDetailsLineViewModel."));else{H=g.R(E.attributes);for(var G=H.next();!G.done;G=H.next())if(G=G.value,G.text!==void 0){G=G.text;var P=E.style,Q=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);g.d(this,Q);Q.mx(this.element);a:switch(P){case "AD_DETAILS_LINE_STYLE_RESPONSIVE":P="ytp-ad-details-line__text--style-responsive"; break a;default:P="ytp-ad-details-line__text--style-standard"}Q.element.classList.add(P);Q.init(PL("ad-simple-attributed-string"),new ZZ(G));this.L.push(Q)}this.show()}}; AN.prototype.show=function(){this.L.forEach(function(H){H.show()}); s9.prototype.show.call(this)}; AN.prototype.clear=function(){this.hide()}; AN.prototype.hide=function(){this.L.forEach(function(H){H.hide()}); s9.prototype.hide.call(this)};g.C(Kp,s9);Kp.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});var G,P;(H=((P=Qp(((G=E.image)==null?void 0:G.sources)||[]))==null?void 0:P.url)||"")&&H.length?(G=this.HF("ytp-image-background-image"),g.AE(G,"backgroundImage","url("+H+")"),E.blurLevel!==void 0&&g.AE(G,"filter","blur("+E.blurLevel+"px)"),E.gradient!==void 0&&(E=new g.D({J:"div",QN:["ytp-image-background--gradient-vertical"]}),g.d(this,E),E.mx(this.element)),this.show()):g.h3(Error("Failed to get imageUrl in ImageBackground."))}; Kp.prototype.clear=function(){this.hide()};g.C(j$U,S_);g.M=j$U.prototype;g.M.init=function(H,E){S_.prototype.init.call(this,H,E,{});g.AE(this.G,"stroke-dasharray","0 "+this.W);this.show()}; g.M.clear=function(){this.hide()}; g.M.hide=function(){gN(this);S_.prototype.hide.call(this)}; g.M.show=function(){VF(this);S_.prototype.show.call(this)}; g.M.Go=function(){this.hide()}; g.M.uA=function(){if(this.L){var H=this.L.getProgressState();H!=null&&H.current!=null&&g.AE(this.G,"stroke-dasharray",H.current/H.seekableEnd*this.W+" "+this.W)}};g.C(F5,s9); F5.prototype.init=function(H,E){s9.prototype.init.call(this,H,E,{});if(Eaw(E)){this.adAvatar=new qi(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);g.d(this,this.adAvatar);this.adAvatar.mx(this.HF("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-avatar-container"));this.adAvatar.init(PL("ad-avatar"),g.X(E.adAvatar,Ze));this.headline=new uy(this.api,this.layoutId,this.interactionLoggingClientData,this.vF);g.d(this,this.headline);this.headline.mx(this.HF("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(PL("ad-simple-attributed-string"),new ZZ(E.headline));if(H=g.X(E.adDetailsLine,jso))this.detailsLine=new AN(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.detailsLine),this.detailsLine.mx(this.HF("ytp-video-interstitial-buttoned-centered-layout__content__lockup__details-line-container")),this.detailsLine.init(PL("ad-details-line"),H);this.adButton=new FZ(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,!0);g.d(this,this.adButton); this.adButton.mx(this.HF("ytp-video-interstitial-buttoned-centered-layout__content__lockup__ad-button-container"));this.adButton.init(PL("ad-button"),g.X(E.adButton,g3));this.adBadge=new Em(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,!0);g.d(this,this.adBadge);this.adBadge.mx(this.D);this.adBadge.init(PL("ad-badge"),g.X(E.adBadge,Ci));this.adInfoButton=new JG(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.element,void 0,!0);g.d(this,this.adInfoButton);this.adInfoButton.mx(this.D); this.adInfoButton.init(PL("ad-info-hover-text-button"),g.X(E.adInfoRenderer,Li),this.macros);if(H=g.X(E.skipAdButton,JdZ))this.skipAdButton=new Fk(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.skipAdButton),this.skipAdButton.mx(this.element),this.skipAdButton.init(PL("skip-button"),H);this.W=new bD(E.durationMilliseconds);g.d(this,this.W);if(H=g.X(E.countdownViewModel,Bl$))this.L=new j$U(this.api,this.layoutId,this.interactionLoggingClientData,this.vF,this.W),g.d(this, this.L),this.L.mx(this.HF("ytp-video-interstitial-buttoned-centered-layout__timed-pie-countdown-container")),this.L.init(PL("timed-pie-countdown"),H);if(E=g.X(E.imageBackground,ydZ))this.imageBackground=new Kp(this.api,this.layoutId,this.interactionLoggingClientData,this.vF),g.d(this,this.imageBackground),this.imageBackground.mx(this.element),this.imageBackground.element.classList.add("ytp-video-interstitial-buttoned-centered-layout__background-image-container"),this.imageBackground.init(PL("image-background"), E);this.show();this.element.focus()}}; F5.prototype.clear=function(){g.hH(this.G);this.hide()}; F5.prototype.show=function(){KKw(!0);this.adAvatar&&this.adAvatar.show();this.headline&&this.headline.show();this.adButton&&this.adButton.show();this.skipAdButton&&this.skipAdButton.show();s9.prototype.show.call(this)}; F5.prototype.hide=function(){KKw(!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();s9.prototype.hide.call(this)};g.C(Uh,g.z7);g.M=Uh.prototype;g.M.ov=function(){return 1E3*this.api.getDuration(this.aG,!1)}; g.M.stop=function(){this.L&&this.handler.Sq(this.L)}; g.M.Ix=function(){var H=this.api.getProgressState(this.aG);this.W={seekableStart:H.seekableStart,seekableEnd:H.seekableEnd,current:this.api.getCurrentTime(this.aG,!1)};this.publish("h")}; g.M.getProgressState=function(){return this.W}; g.M.xa=function(H){g.Sv(H,2)&&this.publish("g")};var QND="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.C(PB,zm); PB.prototype.G=function(H){var E=H.id,G=H.content,P=G.componentType;if(!QND.includes(P))switch(H.actionType){case 1:H=this.api;var Q=this.vF,e=G.layoutId,w=G.interactionLoggingClientData,t=G instanceof Dh?G.Nm:!1,k=G instanceof Dh||G instanceof TP?G.N1:!1;w=w===void 0?{}:w;t=t===void 0?!1:t;k=k===void 0?!1:k;switch(P){case "invideo-overlay":H=new dM(H,e,w,Q);break;case "player-overlay":H=new $B(H,e,w,Q,new Uh(H),k);break;case "player-overlay-layout":H=new zK(H,e,w,Q,new Uh(H));break;case "survey":H= new lI(H,e,w,Q);break;case "ad-action-interstitial":H=new pWq(H,e,w,Q,t,k);break;case "video-interstitial-buttoned-centered":H=new F5(H,e,w,Q);break;case "survey-interstitial":H=new ku(H,e,w,Q);break;case "ad-message":H=new xCU(H,e,w,Q,new Uh(H,1));break;case "player-underlay":H=new R4T(H,e,w,Q);break;case "display-underlay-text-grid-cards":H=new Lo(H,e,w,Q,new Uh(H));break;default:H=null}if(!H){g.p5(Error("No UI component returned from ComponentFactory for type: "+P));break}g.Fe(this.components, E)?g.p5(Error("Ad UI component already registered: "+E)):this.components[E]=H;H.bind(G);G instanceof CE?this.W?this.W.append(H.lP):g.p5(Error("Underlay view was not created but UnderlayRenderer was created")):this.D.append(H.lP);break;case 2:E=xXs(this,H);if(E==null)break;E.bind(G);break;case 3:G=xXs(this,H),G!=null&&(g.Vq(G),g.Fe(this.components,E)?(G=this.components,E in G&&delete G[E]):g.p5(Error("Ad UI component does not exist: "+E)))}}; PB.prototype.G$=function(){g.dT(Object.values(this.components));this.components={};zm.prototype.G$.call(this)};g.C(Ekw,g.UM);g.M=Ekw.prototype;g.M.create=function(){try{bel(this),this.load(),this.created=!0,bel(this)}catch(H){xQ(H instanceof Error?H:String(H))}}; g.M.load=function(){try{BMt(this)}finally{$S(AY(this.L).aF)&&this.player.Aj("ad",1)}}; g.M.destroy=function(){var H=this.player.getVideoData(1);this.L.L.oD.LL(H&&H.clientPlaybackNonce||"");this.unload();this.created=!1}; g.M.unload=function(){g.UM.prototype.unload.call(this);try{this.player.getRootNode().classList.remove("ad-created")}catch(E){xQ(E instanceof Error?E:String(E))}if(this.W!=null){var H=this.W;this.W=null;H.dispose()}this.G.reset()}; g.M.Eh=function(){return!1}; g.M.getAdState=function(){return-1}; g.M.getOptions=function(){return Object.values(PM3)}; g.M.Mf=function(H,E){E=E===void 0?{}:E;switch(H){case "replaceUrlMacros":return H=E,H.url?(E=sNt(this.player),Object.assign(E,H.FJ7),H=g.iO(H.url,E)):H=null,H;case "onAboutThisAdPopupClosed":this.wd(E);break;case "executeCommand":H=E;H.command&&H.layoutId&&this.executeCommand(H);break;default:return null}}; g.M.F7=function(H){var E;return!((E=this.L.L.Yq)==null||!E.get().F7(H))}; g.M.wd=function(H){H.isMuted&&ykl(AY(this.L).gX,AY(this.L).oG,H.layoutId);this.NP&&this.NP.wd()}; g.M.executeCommand=function(H){AY(this.L).vF.executeCommand(H.command,H.layoutId)};g.kM("yt.player.Application.create",g.Pi.create);g.kM("yt.player.Application.createAlternate",g.Pi.create);juv(AB(),GvH);var sNo=g.Un("ytcsi.tick");sNo&&sNo("pe");g.IK("ad",Ekw);g.C(g.kC,g.J);g.kC.prototype.start=function(H,E,G){this.config={from:H,to:E,duration:G,startTime:(0,g.ON)()};this.next()}; g.kC.prototype.stop=function(){this.delay.stop();this.config=void 0}; g.kC.prototype.next=function(){if(this.config){var H=this.config,E=H.from,G=H.to,P=H.duration;H=H.startTime;var Q=(0,g.ON)()-H;H=this.L;P=AhM(H,Q/P);if(P==0)H=H.B;else if(P==1)H=H.N;else{Q=Gb(H.B,H.T,P);var e=Gb(H.T,H.C,P);H=Gb(H.C,H.N,P);Q=Gb(Q,e,P);e=Gb(e,H,P);H=Gb(Q,e,P)}H=g.Mo(H,0,1);this.callback(E+(G-E)*H);H<1&&this.delay.start()}};g.C(g.CU,g.D);g.M=g.CU.prototype;g.M.hasSuggestions=function(){return this.suggestionData.length>0}; g.M.Mh=function(){this.W&&this.scrollTo(this.scrollPosition-this.containerWidth)}; g.M.show=function(){g.D.prototype.show.call(this);xc7(this)}; g.M.Nh=function(){this.W&&this.scrollTo(this.scrollPosition+this.containerWidth)}; g.M.C4=function(){this.h7(this.api.NZ().getPlayerSize())}; g.M.h7=function(H){var E=this.api.isEmbedsShortsMode()?.5625:16/9,G=this.api.FM();H=H.width-(G?112:58);G=Math.ceil(H/(G?320:192));var P=(H-G*8)/G;E=Math.floor(P/E);for(var Q=g.R(this.L),e=Q.next();!e.done;e=Q.next())e=e.value.HF("ytp-suggestion-image"),e.style.width=P+"px",e.style.height=E+"px";this.suggestions.element.style.height=E+"px";this.D=P;this.B=E;this.containerWidth=H;this.columns=G;this.scrollPosition=0;this.suggestions.element.scrollLeft=-0;g.g4(this)}; g.M.onVideoDataChange=function(){var H=this.api.K(),E=this.api.getVideoData();this.T=E.Xg?!1:H.D;this.suggestionData=E.suggestions?g.W2(E.suggestions,function(G){return G&&!G.playlistId}):[]; TI1(this);E.Xg?this.title.update({title:g.ct("More videos from $DNI_RELATED_CHANNEL",{DNI_RELATED_CHANNEL:E.author})}):this.title.update({title:this.api.isEmbedsShortsMode()?"More shorts":"More videos"})}; g.M.scrollTo=function(H){H=g.Mo(H,this.containerWidth-this.suggestionData.length*(this.D+8),0);this.C.start(this.scrollPosition,H,1E3);this.scrollPosition=H;g.g4(this);xc7(this)};})(_yt_player);